]>
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 | |
65d8ef1e VS |
163 | --enable-compat22 enable wxWindows 2.2 compatibility" |
164 | ac_help="$ac_help | |
165 | --disable-compat24 disable wxWindows 2.4 compatibility" | |
a0b9e27f MB |
166 | ac_help="$ac_help |
167 | --enable-rpath=DIR output the rpath flag from wx-config" | |
168 | ac_help="$ac_help | |
169 | --enable-intl use internationalization system" | |
170 | ac_help="$ac_help | |
171 | --enable-config use wxConfig (and derived) classes" | |
172 | ac_help="$ac_help | |
173 | --enable-protocols use wxProtocol and derived classes" | |
174 | ac_help="$ac_help | |
175 | --enable-ftp use wxFTP (requires wxProtocol" | |
176 | ac_help="$ac_help | |
177 | --enable-http use wxHTTP (requires wxProtocol" | |
178 | ac_help="$ac_help | |
179 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
180 | ac_help="$ac_help | |
181 | --enable-sockets use socket/network classes" | |
3bce6687 JS |
182 | ac_help="$ac_help |
183 | --enable-ole use OLE classes" | |
184 | ac_help="$ac_help | |
185 | --enable-dataobj use data object classes" | |
a0b9e27f MB |
186 | ac_help="$ac_help |
187 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
188 | ac_help="$ac_help | |
189 | --enable-cmdline use wxCmdLineParser class" | |
190 | ac_help="$ac_help | |
191 | --enable-datetime use wxDateTime class" | |
192 | ac_help="$ac_help | |
193 | --enable-timedate use obsolete wxDate/wxTime classes" | |
194 | ac_help="$ac_help | |
195 | --enable-stopwatch use wxStopWatch class" | |
196 | ac_help="$ac_help | |
197 | --enable-dialupman use dialup network classes" | |
198 | ac_help="$ac_help | |
199 | --enable-apple_ieee use the Apple IEEE codec" | |
200 | ac_help="$ac_help | |
201 | --enable-timer use wxTimer class" | |
202 | ac_help="$ac_help | |
203 | --enable-wave use wxWave class" | |
204 | ac_help="$ac_help | |
205 | --enable-fraction use wxFraction class" | |
206 | ac_help="$ac_help | |
207 | --enable-dynlib use wxLibrary class for DLL loading" | |
208 | ac_help="$ac_help | |
209 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
210 | ac_help="$ac_help | |
211 | --enable-longlong use wxLongLong class" | |
212 | ac_help="$ac_help | |
213 | --enable-geometry use geometry class" | |
214 | ac_help="$ac_help | |
215 | --enable-log use logging system" | |
216 | ac_help="$ac_help | |
217 | --enable-streams use wxStream etc classes" | |
218 | ac_help="$ac_help | |
219 | --enable-file use wxFile classes" | |
220 | ac_help="$ac_help | |
221 | --enable-ffile use wxFFile classes" | |
222 | ac_help="$ac_help | |
223 | --enable-textbuf use wxTextBuffer class" | |
224 | ac_help="$ac_help | |
225 | --enable-textfile use wxTextFile class" | |
226 | ac_help="$ac_help | |
227 | --enable-fontmap use font encodings conversion classes" | |
228 | ac_help="$ac_help | |
229 | --enable-unicode compile wxString with Unicode support" | |
230 | ac_help="$ac_help | |
231 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
232 | ac_help="$ac_help | |
233 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
234 | ac_help="$ac_help | |
235 | --enable-std_iostreams use standard C++ stream classes" | |
236 | ac_help="$ac_help | |
237 | --enable-filesystem use virtual file systems classes" | |
238 | ac_help="$ac_help | |
239 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
240 | ac_help="$ac_help | |
241 | --enable-fs_zip use virtual ZIP filesystems" | |
242 | ac_help="$ac_help | |
243 | --enable-zipstream use wxZipInputStream" | |
244 | ac_help="$ac_help | |
245 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" | |
246 | ac_help="$ac_help | |
247 | --enable-snglinst use wxSingleInstanceChecker class" | |
248 | ac_help="$ac_help | |
249 | --enable-mimetype use wxMimeTypesManager" | |
250 | ac_help="$ac_help | |
251 | --enable-sysoptions use wxSystemOptions" | |
252 | ac_help="$ac_help | |
253 | --enable-url use wxURL class" | |
254 | ac_help="$ac_help | |
255 | --enable-protocol use wxProtocol class" | |
256 | ac_help="$ac_help | |
257 | --enable-protocol-http HTTP support in wxProtocol" | |
258 | ac_help="$ac_help | |
259 | --enable-protocol-ftp FTP support in wxProtocol" | |
260 | ac_help="$ac_help | |
261 | --enable-protocol-file FILE support in wxProtocol" | |
262 | ac_help="$ac_help | |
263 | --enable-threads use threads" | |
264 | ac_help="$ac_help | |
265 | --enable-docview use document view architecture" | |
266 | ac_help="$ac_help | |
267 | --enable-help use help subsystem" | |
268 | ac_help="$ac_help | |
269 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
270 | ac_help="$ac_help | |
271 | --enable-html use wxHTML sub-library" | |
272 | ac_help="$ac_help | |
273 | --enable-htmlhelp use wxHTML-based help" | |
274 | ac_help="$ac_help | |
275 | --enable-constraints use layout-constraints system" | |
276 | ac_help="$ac_help | |
277 | --enable-printarch use printing architecture" | |
278 | ac_help="$ac_help | |
279 | --enable-mdi use multiple document interface architecture" | |
280 | ac_help="$ac_help | |
281 | --enable-loggui use standard GUI logger" | |
282 | ac_help="$ac_help | |
283 | --enable-logwin use wxLogWindow" | |
284 | ac_help="$ac_help | |
285 | --enable-logdialog use wxLogDialog" | |
286 | ac_help="$ac_help | |
287 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
288 | ac_help="$ac_help | |
289 | --enable-prologio use Prolog IO library" | |
290 | ac_help="$ac_help | |
291 | --enable-resources use wxWindows resources" | |
292 | ac_help="$ac_help | |
293 | --enable-xresources use X resources for save (default for gtk+)" | |
294 | ac_help="$ac_help | |
295 | --enable-clipboard use wxClipboard classes" | |
296 | ac_help="$ac_help | |
297 | --enable-dnd use Drag'n'Drop classes" | |
298 | ac_help="$ac_help | |
299 | --enable-metafile use win32 metafiles" | |
300 | ac_help="$ac_help | |
301 | --enable-treelayout use wxTreeLayout classes" | |
302 | ac_help="$ac_help | |
303 | --enable-controls use all usual controls" | |
304 | ac_help="$ac_help | |
305 | --enable-accel use accelerators" | |
306 | ac_help="$ac_help | |
307 | --enable-button use wxButton class" | |
308 | ac_help="$ac_help | |
309 | --enable-bmpbutton use wxBitmapButton class" | |
310 | ac_help="$ac_help | |
311 | --enable-calendar use wxCalendarCtrl class" | |
312 | ac_help="$ac_help | |
313 | --enable-caret use wxCaret class" | |
314 | ac_help="$ac_help | |
315 | --enable-checkbox use wxCheckBox class" | |
316 | ac_help="$ac_help | |
317 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
318 | ac_help="$ac_help | |
319 | --enable-choice use wxChoice class" | |
320 | ac_help="$ac_help | |
321 | --enable-combobox use wxComboBox classes" | |
322 | ac_help="$ac_help | |
323 | --enable-gauge use wxGauge class" | |
324 | ac_help="$ac_help | |
325 | --enable-grid use wxGrid class" | |
326 | ac_help="$ac_help | |
327 | --enable-newgrid use new wxGrid class" | |
328 | ac_help="$ac_help | |
329 | --enable-imaglist use wxImageList class" | |
330 | ac_help="$ac_help | |
331 | --enable-listbox use wxListBox class" | |
332 | ac_help="$ac_help | |
333 | --enable-listctrl use wxListCtrl class" | |
334 | ac_help="$ac_help | |
335 | --enable-notebook use wxNotebook class" | |
336 | ac_help="$ac_help | |
337 | --enable-propsheet use wxPropertySheet class" | |
338 | ac_help="$ac_help | |
339 | --enable-radiobox use wxRadioBox class" | |
340 | ac_help="$ac_help | |
341 | --enable-radiobtn use wxRadioButton class" | |
342 | ac_help="$ac_help | |
343 | --enable-sash use wxSashWindow class" | |
344 | ac_help="$ac_help | |
345 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
346 | ac_help="$ac_help | |
347 | --enable-slider use wxSlider class" | |
348 | ac_help="$ac_help | |
349 | --enable-spinbtn use wxSpinButton class" | |
350 | ac_help="$ac_help | |
351 | --enable-spinctrl use wxSpinCtrl class" | |
352 | ac_help="$ac_help | |
353 | --enable-splitter use wxSplitterWindow class" | |
354 | ac_help="$ac_help | |
355 | --enable-statbmp use wxStaticBitmap class" | |
356 | ac_help="$ac_help | |
357 | --enable-statbox use wxStaticBox class" | |
358 | ac_help="$ac_help | |
359 | --enable-statline use wxStaticLine class" | |
360 | ac_help="$ac_help | |
361 | --enable-stattext use wxStaticText class" | |
362 | ac_help="$ac_help | |
363 | --enable-statusbar use wxStatusBar class" | |
364 | ac_help="$ac_help | |
365 | --enable-tabdialog use wxTabControl class" | |
366 | ac_help="$ac_help | |
367 | --enable-textctrl use wxTextCtrl class" | |
368 | ac_help="$ac_help | |
369 | --enable-togglebtn use wxToggleButton class" | |
370 | ac_help="$ac_help | |
371 | --enable-toolbar use wxToolBar class" | |
372 | ac_help="$ac_help | |
373 | --enable-tbarnative use native wxToolBar class" | |
374 | ac_help="$ac_help | |
375 | --enable-tbarsmpl use wxToolBarSimple class" | |
376 | ac_help="$ac_help | |
377 | --enable-treectrl use wxTreeCtrl class" | |
378 | ac_help="$ac_help | |
379 | --enable-tipwindow use wxTipWindow class" | |
380 | ac_help="$ac_help | |
381 | --enable-popupwin use wxPopUpWindow class" | |
382 | ac_help="$ac_help | |
383 | --enable-commondlg use all common dialogs" | |
384 | ac_help="$ac_help | |
385 | --enable-choicedlg use wxChoiceDialog" | |
386 | ac_help="$ac_help | |
387 | --enable-coldlg use wxColourDialog" | |
388 | ac_help="$ac_help | |
389 | --enable-filedlg use wxFileDialog" | |
390 | ac_help="$ac_help | |
391 | --enable-finddlg use wxFindReplaceDialog" | |
392 | ac_help="$ac_help | |
393 | --enable-fontdlg use wxFontDialog" | |
394 | ac_help="$ac_help | |
395 | --enable-dirdlg use wxDirDialog" | |
396 | ac_help="$ac_help | |
397 | --enable-msgdlg use wxMessageDialog" | |
398 | ac_help="$ac_help | |
399 | --enable-numberdlg use wxNumberEntryDialog" | |
400 | ac_help="$ac_help | |
401 | --enable-splash use wxSplashScreen" | |
402 | ac_help="$ac_help | |
403 | --enable-textdlg use wxTextDialog" | |
404 | ac_help="$ac_help | |
405 | --enable-tipdlg use startup tips" | |
406 | ac_help="$ac_help | |
407 | --enable-progressdlg use wxProgressDialog" | |
408 | ac_help="$ac_help | |
409 | --enable-wizarddlg use wxWizard" | |
410 | ac_help="$ac_help | |
411 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" | |
412 | ac_help="$ac_help | |
413 | --enable-miniframe use wxMiniFrame class" | |
414 | ac_help="$ac_help | |
415 | --enable-tooltips use wxToolTip class" | |
416 | ac_help="$ac_help | |
417 | --enable-splines use spline drawing code" | |
418 | ac_help="$ac_help | |
419 | --enable-validators use wxValidator and derived classes" | |
420 | ac_help="$ac_help | |
421 | --enable-busyinfo use wxBusyInfo" | |
422 | ac_help="$ac_help | |
423 | --enable-joystick use wxJoystick (Linux only)" | |
424 | ac_help="$ac_help | |
425 | --enable-metafiles use wxMetaFile (Windows only)" | |
426 | ac_help="$ac_help | |
427 | --enable-dragimage use wxDragImage" | |
428 | ac_help="$ac_help | |
429 | --enable-palette use wxPalette class" | |
430 | ac_help="$ac_help | |
431 | --enable-image use wxImage class" | |
432 | ac_help="$ac_help | |
433 | --enable-gif use gif images (GIF file format)" | |
434 | ac_help="$ac_help | |
435 | --enable-pcx use pcx images (PCX file format)" | |
436 | ac_help="$ac_help | |
437 | --enable-iff use iff images (IFF file format)" | |
438 | ac_help="$ac_help | |
439 | --enable-pnm use pnm images (PNM file format)" | |
440 | ac_help="$ac_help | |
441 | --enable-xpm use xpm images (XPM file format)" | |
442 | ac_help="$ac_help | |
443 | --enable-icocur use Windows ICO and CUR formats" | |
444 | ac_help="$ac_help | |
445 | --disable-largefile omit support for large files" | |
446 | ac_help="$ac_help | |
447 | --disable-gtktest do not try to compile and run a test GTK+ program" | |
448 | ac_help="$ac_help | |
449 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
450 | ac_help="$ac_help | |
451 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
452 | ac_help="$ac_help | |
453 | --disable-gtktest Do not try to compile and run a test GTK program" | |
454 | ac_help="$ac_help | |
455 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
456 | ac_help="$ac_help | |
457 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
458 | ac_help="$ac_help | |
459 | --disable-gtktest Do not try to compile and run a test GTK program" | |
460 | ac_help="$ac_help | |
461 | --with-x use the X Window System" | |
462 | ac_help="$ac_help | |
463 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
464 | |
465 | # Initialize some variables set by options. | |
466 | # The variables have the same names as the options, with | |
467 | # dashes changed to underlines. | |
a0b9e27f MB |
468 | build=NONE |
469 | cache_file=./config.cache | |
10f2d63a | 470 | exec_prefix=NONE |
a0b9e27f | 471 | host=NONE |
10f2d63a | 472 | no_create= |
a0b9e27f | 473 | nonopt=NONE |
10f2d63a VZ |
474 | no_recursion= |
475 | prefix=NONE | |
476 | program_prefix=NONE | |
477 | program_suffix=NONE | |
478 | program_transform_name=s,x,x, | |
479 | silent= | |
480 | site= | |
481 | srcdir= | |
a0b9e27f | 482 | target=NONE |
10f2d63a VZ |
483 | verbose= |
484 | x_includes=NONE | |
485 | x_libraries=NONE | |
486 | bindir='${exec_prefix}/bin' | |
487 | sbindir='${exec_prefix}/sbin' | |
488 | libexecdir='${exec_prefix}/libexec' | |
489 | datadir='${prefix}/share' | |
490 | sysconfdir='${prefix}/etc' | |
491 | sharedstatedir='${prefix}/com' | |
492 | localstatedir='${prefix}/var' | |
493 | libdir='${exec_prefix}/lib' | |
494 | includedir='${prefix}/include' | |
495 | oldincludedir='/usr/include' | |
496 | infodir='${prefix}/info' | |
497 | mandir='${prefix}/man' | |
498 | ||
a0b9e27f MB |
499 | # Initialize some other variables. |
500 | subdirs= | |
501 | MFLAGS= MAKEFLAGS= | |
502 | SHELL=${CONFIG_SHELL-/bin/sh} | |
503 | # Maximum number of lines to put in a shell here document. | |
504 | ac_max_here_lines=12 | |
505 | ||
10f2d63a VZ |
506 | ac_prev= |
507 | for ac_option | |
508 | do | |
a0b9e27f | 509 | |
10f2d63a VZ |
510 | # If the previous option needs an argument, assign it. |
511 | if test -n "$ac_prev"; then | |
512 | eval "$ac_prev=\$ac_option" | |
513 | ac_prev= | |
514 | continue | |
515 | fi | |
516 | ||
a0b9e27f MB |
517 | case "$ac_option" in |
518 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
519 | *) ac_optarg= ;; | |
520 | esac | |
10f2d63a VZ |
521 | |
522 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
523 | ||
a0b9e27f | 524 | case "$ac_option" in |
10f2d63a VZ |
525 | |
526 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
527 | ac_prev=bindir ;; | |
528 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
a0b9e27f | 529 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
530 | |
531 | -build | --build | --buil | --bui | --bu) | |
a0b9e27f | 532 | ac_prev=build ;; |
10f2d63a | 533 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
a0b9e27f | 534 | build="$ac_optarg" ;; |
10f2d63a VZ |
535 | |
536 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
537 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
538 | ac_prev=cache_file ;; | |
539 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
540 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
a0b9e27f | 541 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
542 | |
543 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
544 | ac_prev=datadir ;; | |
545 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
546 | | --da=*) | |
a0b9e27f | 547 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
548 | |
549 | -disable-* | --disable-*) | |
a0b9e27f | 550 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 551 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
552 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
553 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
554 | fi | |
555 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
556 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
557 | |
558 | -enable-* | --enable-*) | |
a0b9e27f | 559 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 560 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
561 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
562 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
563 | fi | |
564 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
565 | case "$ac_option" in | |
566 | *=*) ;; | |
10f2d63a VZ |
567 | *) ac_optarg=yes ;; |
568 | esac | |
a0b9e27f | 569 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
570 | |
571 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
572 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
573 | | --exec | --exe | --ex) | |
574 | ac_prev=exec_prefix ;; | |
575 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
576 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
577 | | --exec=* | --exe=* | --ex=*) | |
a0b9e27f | 578 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
579 | |
580 | -gas | --gas | --ga | --g) | |
581 | # Obsolete; use --with-gas. | |
582 | with_gas=yes ;; | |
583 | ||
a0b9e27f MB |
584 | -help | --help | --hel | --he) |
585 | # Omit some internal or obsolete options to make the list less imposing. | |
586 | # This message is too long to be a string in the A/UX 3.1 sh. | |
587 | cat << EOF | |
588 | Usage: configure [options] [host] | |
589 | Options: [defaults in brackets after descriptions] | |
590 | Configuration: | |
591 | --cache-file=FILE cache test results in FILE | |
592 | --help print this message | |
593 | --no-create do not create output files | |
594 | --quiet, --silent do not print \`checking...' messages | |
595 | --version print the version of autoconf that created configure | |
596 | Directory and file names: | |
597 | --prefix=PREFIX install architecture-independent files in PREFIX | |
598 | [$ac_default_prefix] | |
599 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
600 | [same as prefix] | |
601 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
602 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
603 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
604 | --datadir=DIR read-only architecture-independent data in DIR | |
605 | [PREFIX/share] | |
606 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
607 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
608 | [PREFIX/com] | |
609 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
610 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
611 | --includedir=DIR C header files in DIR [PREFIX/include] | |
612 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
613 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
614 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
615 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
616 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
617 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
618 | --program-transform-name=PROGRAM | |
619 | run sed PROGRAM on installed program names | |
620 | EOF | |
621 | cat << EOF | |
622 | Host type: | |
623 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
624 | --host=HOST configure for HOST [guessed] | |
625 | --target=TARGET configure for TARGET [TARGET=HOST] | |
626 | Features and packages: | |
627 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
628 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
629 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
630 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
631 | --x-includes=DIR X include files are in DIR | |
632 | --x-libraries=DIR X library files are in DIR | |
633 | EOF | |
634 | if test -n "$ac_help"; then | |
635 | echo "--enable and --with options recognized:$ac_help" | |
636 | fi | |
637 | exit 0 ;; | |
10f2d63a VZ |
638 | |
639 | -host | --host | --hos | --ho) | |
a0b9e27f | 640 | ac_prev=host ;; |
10f2d63a | 641 | -host=* | --host=* | --hos=* | --ho=*) |
a0b9e27f | 642 | host="$ac_optarg" ;; |
10f2d63a VZ |
643 | |
644 | -includedir | --includedir | --includedi | --included | --include \ | |
645 | | --includ | --inclu | --incl | --inc) | |
646 | ac_prev=includedir ;; | |
647 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
648 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
a0b9e27f | 649 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
650 | |
651 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
652 | ac_prev=infodir ;; | |
653 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
a0b9e27f | 654 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
655 | |
656 | -libdir | --libdir | --libdi | --libd) | |
657 | ac_prev=libdir ;; | |
658 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
a0b9e27f | 659 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
660 | |
661 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
662 | | --libexe | --libex | --libe) | |
663 | ac_prev=libexecdir ;; | |
664 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
665 | | --libexe=* | --libex=* | --libe=*) | |
a0b9e27f | 666 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
667 | |
668 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
669 | | --localstate | --localstat | --localsta | --localst \ | |
670 | | --locals | --local | --loca | --loc | --lo) | |
671 | ac_prev=localstatedir ;; | |
672 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
673 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
674 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
a0b9e27f | 675 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
676 | |
677 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
678 | ac_prev=mandir ;; | |
679 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
a0b9e27f | 680 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
681 | |
682 | -nfp | --nfp | --nf) | |
683 | # Obsolete; use --without-fp. | |
684 | with_fp=no ;; | |
685 | ||
686 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
a0b9e27f | 687 | | --no-cr | --no-c) |
10f2d63a VZ |
688 | no_create=yes ;; |
689 | ||
690 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
691 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
692 | no_recursion=yes ;; | |
693 | ||
694 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
695 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
696 | | --oldin | --oldi | --old | --ol | --o) | |
697 | ac_prev=oldincludedir ;; | |
698 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
699 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
700 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
a0b9e27f | 701 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
702 | |
703 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
704 | ac_prev=prefix ;; | |
705 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
a0b9e27f | 706 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
707 | |
708 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
709 | | --program-pre | --program-pr | --program-p) | |
710 | ac_prev=program_prefix ;; | |
711 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
712 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
a0b9e27f | 713 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
714 | |
715 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
716 | | --program-suf | --program-su | --program-s) | |
717 | ac_prev=program_suffix ;; | |
718 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
719 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
a0b9e27f | 720 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
721 | |
722 | -program-transform-name | --program-transform-name \ | |
723 | | --program-transform-nam | --program-transform-na \ | |
724 | | --program-transform-n | --program-transform- \ | |
725 | | --program-transform | --program-transfor \ | |
726 | | --program-transfo | --program-transf \ | |
727 | | --program-trans | --program-tran \ | |
728 | | --progr-tra | --program-tr | --program-t) | |
729 | ac_prev=program_transform_name ;; | |
730 | -program-transform-name=* | --program-transform-name=* \ | |
731 | | --program-transform-nam=* | --program-transform-na=* \ | |
732 | | --program-transform-n=* | --program-transform-=* \ | |
733 | | --program-transform=* | --program-transfor=* \ | |
734 | | --program-transfo=* | --program-transf=* \ | |
735 | | --program-trans=* | --program-tran=* \ | |
736 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
a0b9e27f | 737 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
738 | |
739 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
740 | | -silent | --silent | --silen | --sile | --sil) | |
741 | silent=yes ;; | |
742 | ||
743 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
744 | ac_prev=sbindir ;; | |
745 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
746 | | --sbi=* | --sb=*) | |
a0b9e27f | 747 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
748 | |
749 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
750 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
751 | | --sharedst | --shareds | --shared | --share | --shar \ | |
752 | | --sha | --sh) | |
753 | ac_prev=sharedstatedir ;; | |
754 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
755 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
756 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
757 | | --sha=* | --sh=*) | |
a0b9e27f | 758 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
759 | |
760 | -site | --site | --sit) | |
761 | ac_prev=site ;; | |
762 | -site=* | --site=* | --sit=*) | |
a0b9e27f | 763 | site="$ac_optarg" ;; |
10f2d63a VZ |
764 | |
765 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
766 | ac_prev=srcdir ;; | |
767 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
a0b9e27f | 768 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
769 | |
770 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
771 | | --syscon | --sysco | --sysc | --sys | --sy) | |
772 | ac_prev=sysconfdir ;; | |
773 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
774 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
a0b9e27f | 775 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
776 | |
777 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
a0b9e27f | 778 | ac_prev=target ;; |
10f2d63a | 779 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
a0b9e27f | 780 | target="$ac_optarg" ;; |
10f2d63a VZ |
781 | |
782 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
783 | verbose=yes ;; | |
784 | ||
a0b9e27f MB |
785 | -version | --version | --versio | --versi | --vers) |
786 | echo "configure generated by autoconf version 2.13" | |
787 | exit 0 ;; | |
10f2d63a VZ |
788 | |
789 | -with-* | --with-*) | |
a0b9e27f | 790 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 791 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
792 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
793 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
794 | fi | |
10f2d63a | 795 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
a0b9e27f MB |
796 | case "$ac_option" in |
797 | *=*) ;; | |
10f2d63a VZ |
798 | *) ac_optarg=yes ;; |
799 | esac | |
a0b9e27f | 800 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
801 | |
802 | -without-* | --without-*) | |
a0b9e27f | 803 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 804 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
805 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
806 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
807 | fi | |
808 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
809 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
810 | |
811 | --x) | |
812 | # Obsolete; use --with-x. | |
813 | with_x=yes ;; | |
814 | ||
815 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
816 | | --x-incl | --x-inc | --x-in | --x-i) | |
817 | ac_prev=x_includes ;; | |
818 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
819 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
a0b9e27f | 820 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
821 | |
822 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
823 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
824 | ac_prev=x_libraries ;; | |
825 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
826 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
a0b9e27f | 827 | x_libraries="$ac_optarg" ;; |
10f2d63a | 828 | |
a0b9e27f | 829 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
830 | ;; |
831 | ||
832 | *) | |
a0b9e27f MB |
833 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
834 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
835 | fi | |
836 | if test "x$nonopt" != xNONE; then | |
837 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
838 | fi | |
839 | nonopt="$ac_option" | |
10f2d63a VZ |
840 | ;; |
841 | ||
842 | esac | |
843 | done | |
844 | ||
845 | if test -n "$ac_prev"; then | |
a0b9e27f | 846 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
8284b0c5 | 847 | fi |
8284b0c5 | 848 | |
a0b9e27f MB |
849 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
850 | ||
851 | # File descriptor usage: | |
852 | # 0 standard input | |
853 | # 1 file creation | |
854 | # 2 errors and warnings | |
855 | # 3 some systems may open it to /dev/tty | |
856 | # 4 used on the Kubota Titan | |
857 | # 6 checking for... messages and results | |
858 | # 5 compiler messages saved in config.log | |
859 | if test "$silent" = yes; then | |
860 | exec 6>/dev/null | |
861 | else | |
862 | exec 6>&1 | |
863 | fi | |
864 | exec 5>./config.log | |
865 | ||
866 | echo "\ | |
867 | This file contains any messages produced by compilers while | |
868 | running configure, to aid debugging if configure makes a mistake. | |
869 | " 1>&5 | |
8284b0c5 | 870 | |
a0b9e27f MB |
871 | # Strip out --no-create and --no-recursion so they do not pile up. |
872 | # Also quote any args containing shell metacharacters. | |
873 | ac_configure_args= | |
874 | for ac_arg | |
10f2d63a | 875 | do |
a0b9e27f MB |
876 | case "$ac_arg" in |
877 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
878 | | --no-cr | --no-c) ;; | |
879 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
880 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
881 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
882 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
883 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
884 | esac |
885 | done | |
886 | ||
a0b9e27f MB |
887 | # NLS nuisances. |
888 | # Only set these to C if already set. These must not be set unconditionally | |
889 | # because not all systems understand e.g. LANG=C (notably SCO). | |
890 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
891 | # Non-C LC_CTYPE values break the ctype check. | |
892 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
893 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
894 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
895 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
247f5006 | 896 | |
a0b9e27f MB |
897 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
898 | rm -rf conftest* confdefs.h | |
899 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
900 | echo > confdefs.h | |
10f2d63a | 901 | |
a0b9e27f MB |
902 | # A filename unique to this package, relative to the directory that |
903 | # configure is in, which we can look for to find out if srcdir is correct. | |
904 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
905 | |
906 | # Find the source files, if location was not specified. | |
907 | if test -z "$srcdir"; then | |
908 | ac_srcdir_defaulted=yes | |
909 | # Try the directory containing this script, then its parent. | |
a0b9e27f MB |
910 | ac_prog=$0 |
911 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
912 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
10f2d63a VZ |
913 | srcdir=$ac_confdir |
914 | if test ! -r $srcdir/$ac_unique_file; then | |
915 | srcdir=.. | |
916 | fi | |
917 | else | |
918 | ac_srcdir_defaulted=no | |
919 | fi | |
920 | if test ! -r $srcdir/$ac_unique_file; then | |
921 | if test "$ac_srcdir_defaulted" = yes; then | |
a0b9e27f | 922 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 923 | else |
a0b9e27f | 924 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
925 | fi |
926 | fi | |
a0b9e27f | 927 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
328a083c | 928 | |
10f2d63a VZ |
929 | # Prefer explicitly selected file to automatically selected ones. |
930 | if test -z "$CONFIG_SITE"; then | |
931 | if test "x$prefix" != xNONE; then | |
932 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
933 | else | |
934 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
935 | fi | |
936 | fi | |
937 | for ac_site_file in $CONFIG_SITE; do | |
938 | if test -r "$ac_site_file"; then | |
a0b9e27f | 939 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
940 | . "$ac_site_file" |
941 | fi | |
942 | done | |
943 | ||
944 | if test -r "$cache_file"; then | |
a0b9e27f MB |
945 | echo "loading cache $cache_file" |
946 | . $cache_file | |
10f2d63a | 947 | else |
a0b9e27f MB |
948 | echo "creating cache $cache_file" |
949 | > $cache_file | |
10f2d63a VZ |
950 | fi |
951 | ||
952 | ac_ext=c | |
a0b9e27f | 953 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 954 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
955 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
956 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
957 | cross_compiling=$ac_cv_prog_cc_cross | |
958 | ||
959 | ac_exeext= | |
960 | ac_objext=o | |
961 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
962 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
963 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
964 | ac_n= ac_c=' | |
965 | ' ac_t=' ' | |
966 | else | |
967 | ac_n=-n ac_c= ac_t= | |
968 | fi | |
969 | else | |
970 | ac_n= ac_c='\c' ac_t= | |
971 | fi | |
8284b0c5 MB |
972 | |
973 | ||
10f2d63a | 974 | |
7c66a493 VZ |
975 | ac_aux_dir= |
976 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
977 | if test -f $ac_dir/install-sh; then | |
978 | ac_aux_dir=$ac_dir | |
979 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
980 | break | |
981 | elif test -f $ac_dir/install.sh; then | |
982 | ac_aux_dir=$ac_dir | |
983 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
984 | break | |
247f5006 | 985 | fi |
7c66a493 VZ |
986 | done |
987 | if test -z "$ac_aux_dir"; then | |
a0b9e27f | 988 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 989 | fi |
a0b9e27f MB |
990 | ac_config_guess=$ac_aux_dir/config.guess |
991 | ac_config_sub=$ac_aux_dir/config.sub | |
992 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
698dcdb6 | 993 | |
8284b0c5 | 994 | |
a0b9e27f MB |
995 | # Do some error checking and defaulting for the host and target type. |
996 | # The inputs are: | |
997 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
998 | # | |
999 | # The rules are: | |
1000 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
1001 | # same time. | |
1002 | # 2. Host defaults to nonopt. | |
1003 | # 3. If nonopt is not specified, then host defaults to the current host, | |
1004 | # as determined by config.guess. | |
1005 | # 4. Target and build default to nonopt. | |
1006 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
1007 | |
1008 | # The aliases save the names the user supplied, while $host etc. | |
1009 | # will get canonicalized. | |
a0b9e27f MB |
1010 | case $host---$target---$nonopt in |
1011 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
1012 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
1013 | esac | |
1014 | ||
1015 | ||
1016 | # Make sure we can run config.sub. | |
1017 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1018 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1019 | fi | |
1020 | ||
1021 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
65d8ef1e | 1022 | echo "configure:1023: checking host system type" >&5 |
a0b9e27f MB |
1023 | |
1024 | host_alias=$host | |
1025 | case "$host_alias" in | |
1026 | NONE) | |
1027 | case $nonopt in | |
1028 | NONE) | |
1029 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1030 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1031 | fi ;; | |
1032 | *) host_alias=$nonopt ;; | |
1033 | esac ;; | |
1034 | esac | |
1035 | ||
1036 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1037 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1038 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1039 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1040 | echo "$ac_t""$host" 1>&6 | |
1041 | ||
1042 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
65d8ef1e | 1043 | echo "configure:1044: checking target system type" >&5 |
a0b9e27f MB |
1044 | |
1045 | target_alias=$target | |
1046 | case "$target_alias" in | |
1047 | NONE) | |
1048 | case $nonopt in | |
1049 | NONE) target_alias=$host_alias ;; | |
1050 | *) target_alias=$nonopt ;; | |
1051 | esac ;; | |
1052 | esac | |
1053 | ||
1054 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1055 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1056 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1057 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1058 | echo "$ac_t""$target" 1>&6 | |
1059 | ||
1060 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
65d8ef1e | 1061 | echo "configure:1062: checking build system type" >&5 |
a0b9e27f MB |
1062 | |
1063 | build_alias=$build | |
1064 | case "$build_alias" in | |
1065 | NONE) | |
1066 | case $nonopt in | |
1067 | NONE) build_alias=$host_alias ;; | |
1068 | *) build_alias=$nonopt ;; | |
1069 | esac ;; | |
1070 | esac | |
1071 | ||
1072 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1073 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1074 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1075 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1076 | echo "$ac_t""$build" 1>&6 | |
1077 | ||
1078 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1079 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1080 | NONENONEs,x,x, && | |
1081 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1082 | |
1083 | ||
a0b9e27f | 1084 | |
10f2d63a | 1085 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 VZ |
1086 | WX_MINOR_VERSION_NUMBER=5 |
1087 | WX_RELEASE_NUMBER=0 | |
10f2d63a | 1088 | |
10f2d63a | 1089 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1090 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1091 | |
978f1259 RL |
1092 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1093 | ||
34bed6d9 | 1094 | WX_CURRENT=0 |
6426998c RL |
1095 | WX_REVISION=0 |
1096 | WX_AGE=0 | |
1097 | ||
8284b0c5 MB |
1098 | |
1099 | ||
10f2d63a VZ |
1100 | USE_UNIX=1 |
1101 | USE_WIN32=0 | |
f9bc1684 | 1102 | USE_DOS=0 |
b12915c1 | 1103 | USE_BEOS=0 |
1216f52d | 1104 | USE_MAC=0 |
b12915c1 | 1105 | |
10f2d63a VZ |
1106 | USE_LINUX= |
1107 | USE_SGI= | |
1108 | USE_HPUX= | |
1109 | USE_SYSV= | |
1110 | USE_SVR4= | |
1111 | USE_AIX= | |
1112 | USE_SUN= | |
1113 | USE_SOLARIS= | |
1114 | USE_SUNOS= | |
1115 | USE_ALPHA= | |
1116 | USE_OSF= | |
1117 | USE_BSD= | |
f11bdd03 | 1118 | USE_DARWIN= |
10f2d63a | 1119 | USE_FREEBSD= |
95c8801c | 1120 | USE_OPENBSD= |
f6bcfd97 | 1121 | USE_NETBSD= |
10f2d63a VZ |
1122 | USE_VMS= |
1123 | USE_ULTRIX= | |
10f2d63a VZ |
1124 | USE_DATA_GENERAL= |
1125 | ||
ab9b9eab VZ |
1126 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1127 | ||
89e6bf6d | 1128 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a VZ |
1129 | |
1130 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1131 | DEFAULT_wxUSE_MAC=0 |
1132 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1133 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1134 | DEFAULT_wxUSE_MOTIF=0 |
1135 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1136 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1137 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1138 | |
1139 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1140 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1141 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1142 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1143 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1144 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1145 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1146 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1147 | |
d6a55c4b | 1148 | PROGRAM_EXT= |
3a922bb4 | 1149 | SO_SUFFIX=so |
d6a55c4b | 1150 | |
10f2d63a VZ |
1151 | case "${host}" in |
1152 | *-hp-hpux* ) | |
1153 | USE_HPUX=1 | |
1154 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1155 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1156 | SO_SUFFIX=sl |
a0b9e27f | 1157 | cat >> confdefs.h <<\EOF |
10f2d63a | 1158 | #define __HPUX__ 1 |
a0b9e27f | 1159 | EOF |
10f2d63a VZ |
1160 | |
1161 | ;; | |
1162 | *-*-linux* ) | |
1163 | USE_LINUX=1 | |
a0b9e27f | 1164 | cat >> confdefs.h <<\EOF |
10f2d63a | 1165 | #define __LINUX__ 1 |
a0b9e27f | 1166 | EOF |
10f2d63a VZ |
1167 | |
1168 | TMP=`uname -m` | |
1169 | if test "x$TMP" = "xalpha"; then | |
1170 | USE_ALPHA=1 | |
a0b9e27f | 1171 | cat >> confdefs.h <<\EOF |
10f2d63a | 1172 | #define __ALPHA__ 1 |
a0b9e27f | 1173 | EOF |
10f2d63a VZ |
1174 | |
1175 | fi | |
1176 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1177 | ;; | |
1178 | *-*-irix5* | *-*-irix6* ) | |
1179 | USE_SGI=1 | |
1180 | USE_SVR4=1 | |
a0b9e27f | 1181 | cat >> confdefs.h <<\EOF |
10f2d63a | 1182 | #define __SGI__ 1 |
a0b9e27f | 1183 | EOF |
10f2d63a | 1184 | |
a0b9e27f | 1185 | cat >> confdefs.h <<\EOF |
10f2d63a | 1186 | #define __SVR4__ 1 |
a0b9e27f | 1187 | EOF |
10f2d63a VZ |
1188 | |
1189 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1190 | ;; | |
1191 | *-*-solaris2* ) | |
1192 | USE_SUN=1 | |
1193 | USE_SOLARIS=1 | |
1194 | USE_SVR4=1 | |
a0b9e27f | 1195 | cat >> confdefs.h <<\EOF |
10f2d63a | 1196 | #define __SUN__ 1 |
a0b9e27f | 1197 | EOF |
10f2d63a | 1198 | |
a0b9e27f | 1199 | cat >> confdefs.h <<\EOF |
10f2d63a | 1200 | #define __SOLARIS__ 1 |
a0b9e27f | 1201 | EOF |
10f2d63a | 1202 | |
a0b9e27f | 1203 | cat >> confdefs.h <<\EOF |
10f2d63a | 1204 | #define __SVR4__ 1 |
a0b9e27f | 1205 | EOF |
10f2d63a VZ |
1206 | |
1207 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1208 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1209 | ;; |
1210 | *-*-sunos4* ) | |
1211 | USE_SUN=1 | |
1212 | USE_SUNOS=1 | |
1213 | USE_BSD=1 | |
a0b9e27f | 1214 | cat >> confdefs.h <<\EOF |
10f2d63a | 1215 | #define __SUN__ 1 |
a0b9e27f | 1216 | EOF |
10f2d63a | 1217 | |
a0b9e27f | 1218 | cat >> confdefs.h <<\EOF |
10f2d63a | 1219 | #define __SUNOS__ 1 |
a0b9e27f | 1220 | EOF |
10f2d63a | 1221 | |
a0b9e27f | 1222 | cat >> confdefs.h <<\EOF |
10f2d63a | 1223 | #define __BSD__ 1 |
a0b9e27f | 1224 | EOF |
10f2d63a VZ |
1225 | |
1226 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1227 | ;; | |
f6bcfd97 | 1228 | *-*-freebsd*) |
10f2d63a VZ |
1229 | USE_BSD=1 |
1230 | USE_FREEBSD=1 | |
a0b9e27f | 1231 | cat >> confdefs.h <<\EOF |
10f2d63a | 1232 | #define __FREEBSD__ 1 |
a0b9e27f | 1233 | EOF |
10f2d63a | 1234 | |
a0b9e27f | 1235 | cat >> confdefs.h <<\EOF |
10f2d63a | 1236 | #define __BSD__ 1 |
a0b9e27f | 1237 | EOF |
95c8801c VS |
1238 | |
1239 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1240 | ;; | |
1241 | *-*-openbsd*) | |
1242 | USE_BSD=1 | |
1243 | USE_OPENBSD=1 | |
a0b9e27f | 1244 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1245 | #define __OPENBSD__ 1 |
a0b9e27f | 1246 | EOF |
95c8801c | 1247 | |
a0b9e27f | 1248 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1249 | #define __BSD__ 1 |
a0b9e27f | 1250 | EOF |
f6bcfd97 BP |
1251 | |
1252 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1253 | ;; | |
1254 | *-*-netbsd*) | |
1255 | USE_BSD=1 | |
1256 | USE_NETBSD=1 | |
a0b9e27f | 1257 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1258 | #define __NETBSD__ 1 |
a0b9e27f | 1259 | EOF |
f6bcfd97 | 1260 | |
a0b9e27f | 1261 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1262 | #define __BSD__ 1 |
a0b9e27f | 1263 | EOF |
10f2d63a VZ |
1264 | |
1265 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1266 | ;; | |
1267 | *-*-osf* ) | |
1268 | USE_ALPHA=1 | |
1269 | USE_OSF=1 | |
a0b9e27f | 1270 | cat >> confdefs.h <<\EOF |
10f2d63a | 1271 | #define __ALPHA__ 1 |
a0b9e27f | 1272 | EOF |
10f2d63a | 1273 | |
a0b9e27f | 1274 | cat >> confdefs.h <<\EOF |
10f2d63a | 1275 | #define __OSF__ 1 |
a0b9e27f | 1276 | EOF |
10f2d63a VZ |
1277 | |
1278 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1279 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1280 | ;; |
1281 | *-*-dgux5* ) | |
1282 | USE_ALPHA=1 | |
1283 | USE_SVR4=1 | |
a0b9e27f | 1284 | cat >> confdefs.h <<\EOF |
10f2d63a | 1285 | #define __ALPHA__ 1 |
a0b9e27f | 1286 | EOF |
10f2d63a | 1287 | |
a0b9e27f | 1288 | cat >> confdefs.h <<\EOF |
10f2d63a | 1289 | #define __SVR4__ 1 |
a0b9e27f | 1290 | EOF |
10f2d63a VZ |
1291 | |
1292 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1293 | ;; | |
1294 | *-*-sysv5* ) | |
1295 | USE_SYSV=1 | |
1296 | USE_SVR4=1 | |
a0b9e27f | 1297 | cat >> confdefs.h <<\EOF |
10f2d63a | 1298 | #define __SYSV__ 1 |
a0b9e27f | 1299 | EOF |
10f2d63a | 1300 | |
a0b9e27f | 1301 | cat >> confdefs.h <<\EOF |
10f2d63a | 1302 | #define __SVR4__ 1 |
a0b9e27f | 1303 | EOF |
10f2d63a VZ |
1304 | |
1305 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1306 | ;; | |
1307 | *-*-aix* ) | |
1308 | USE_AIX=1 | |
1309 | USE_SYSV=1 | |
1310 | USE_SVR4=1 | |
2b5f62a0 | 1311 | SO_SUFFIX=a |
a0b9e27f | 1312 | cat >> confdefs.h <<\EOF |
10f2d63a | 1313 | #define __AIX__ 1 |
a0b9e27f | 1314 | EOF |
10f2d63a | 1315 | |
a0b9e27f | 1316 | cat >> confdefs.h <<\EOF |
10f2d63a | 1317 | #define __SYSV__ 1 |
a0b9e27f | 1318 | EOF |
10f2d63a | 1319 | |
a0b9e27f | 1320 | cat >> confdefs.h <<\EOF |
10f2d63a | 1321 | #define __SVR4__ 1 |
a0b9e27f | 1322 | EOF |
10f2d63a VZ |
1323 | |
1324 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1325 | ;; | |
1326 | ||
1c8183e2 | 1327 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1328 | SO_SUFFIX=dll |
cf27ef00 | 1329 | PROGRAM_EXT=".exe" |
7b7a7637 | 1330 | RESCOMP=windres |
10f2d63a VZ |
1331 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1332 | ;; | |
1333 | ||
f9bc1684 VS |
1334 | *-pc-msdosdjgpp ) |
1335 | USE_UNIX=0 | |
1336 | USE_DOS=1 | |
a0b9e27f | 1337 | cat >> confdefs.h <<\EOF |
f9bc1684 | 1338 | #define __DOS__ 1 |
a0b9e27f | 1339 | EOF |
f9bc1684 VS |
1340 | |
1341 | PROGRAM_EXT=".exe" | |
1342 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1343 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1344 | ;; |
1345 | ||
6fa882bd | 1346 | *-pc-os2_emx | *-pc-os2-emx ) |
a0b9e27f | 1347 | cat >> confdefs.h <<\EOF |
10f2d63a | 1348 | #define __EMX__ 1 |
a0b9e27f | 1349 | EOF |
10f2d63a | 1350 | |
cf27ef00 | 1351 | PROGRAM_EXT=".exe" |
e07802fc | 1352 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1353 | ;; |
1354 | ||
d08b457b GD |
1355 | powerpc-*-darwin* ) |
1356 | USE_BSD=1 | |
f11bdd03 | 1357 | USE_DARWIN=1 |
3a922bb4 | 1358 | SO_SUFFIX=dylib |
a0b9e27f | 1359 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1360 | #define __BSD__ 1 |
a0b9e27f | 1361 | EOF |
b4085ce6 | 1362 | |
a0b9e27f | 1363 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1364 | #define __DARWIN__ 1 |
a0b9e27f | 1365 | EOF |
d08b457b | 1366 | |
a0b9e27f | 1367 | cat >> confdefs.h <<\EOF |
d08b457b | 1368 | #define __POWERPC__ 1 |
a0b9e27f | 1369 | EOF |
b4085ce6 GD |
1370 | |
1371 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1372 | ;; | |
1373 | ||
b12915c1 VZ |
1374 | *-*-beos* ) |
1375 | USE_BEOS=1 | |
a0b9e27f | 1376 | cat >> confdefs.h <<\EOF |
b12915c1 | 1377 | #define __BEOS__ 1 |
a0b9e27f | 1378 | EOF |
b12915c1 VZ |
1379 | |
1380 | ;; | |
1381 | ||
10f2d63a | 1382 | *) |
a0b9e27f | 1383 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1384 | esac |
1385 | ||
8284b0c5 MB |
1386 | |
1387 | ||
1388 | ||
1389 | wx_arg_cache_file="configarg.cache" | |
1390 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1391 | rm -f ${wx_arg_cache_file}.tmp |
1392 | touch ${wx_arg_cache_file}.tmp | |
1393 | touch ${wx_arg_cache_file} | |
a0b9e27f | 1394 | |
10f2d63a VZ |
1395 | |
1396 | DEBUG_CONFIGURE=0 | |
1397 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1398 | DEFAULT_wxUSE_UNIVERSAL=no |
1399 | ||
d8356fa3 VZ |
1400 | DEFAULT_wxUSE_NANOX=no |
1401 | ||
10f2d63a VZ |
1402 | DEFAULT_wxUSE_THREADS=yes |
1403 | ||
1404 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1405 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1406 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1407 | DEFAULT_wxUSE_PROFILE=no |
1408 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1409 | DEFAULT_wxUSE_NO_RTTI=no |
1410 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1411 | DEFAULT_wxUSE_PERMISSIVE=no |
1412 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1413 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1414 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1415 | DEFAULT_wxUSE_MEM_TRACING=no | |
1416 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1417 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1418 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1419 | DEFAULT_wxUSE_APPLE_IEEE=no |
1420 | ||
1421 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1422 | DEFAULT_wxUSE_LOGWINDOW=no |
1423 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1424 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1425 | |
1426 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1427 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1428 | |
3e44f09d | 1429 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1430 | DEFAULT_wxUSE_ZLIB=no |
1431 | DEFAULT_wxUSE_LIBPNG=no | |
1432 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1433 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1434 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1435 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1436 | |
eb4efbdc | 1437 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1438 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1439 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1440 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1441 | DEFAULT_wxUSE_DATETIME=no | |
1442 | DEFAULT_wxUSE_TIMEDATE=no | |
1443 | DEFAULT_wxUSE_TIMER=no | |
1444 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1445 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1446 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1447 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1448 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1449 | DEFAULT_wxUSE_WAVE=no |
1450 | DEFAULT_wxUSE_INTL=no | |
1451 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1452 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1453 | DEFAULT_wxUSE_STREAMS=no |
1454 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
1455 | DEFAULT_wxUSE_OLE=no |
1456 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 1457 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 1458 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1459 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1460 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1461 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1462 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1463 | |
1464 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1465 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1466 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1467 | ||
1468 | DEFAULT_wxUSE_X_RESOURCES=no | |
1469 | DEFAULT_wxUSE_CLIPBOARD=no | |
1470 | DEFAULT_wxUSE_TOOLTIPS=no | |
1471 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1472 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1473 | DEFAULT_wxUSE_SPLINES=no |
1474 | ||
1475 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1476 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1477 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1478 | ||
1479 | DEFAULT_wxUSE_PROLOGIO=no | |
1480 | DEFAULT_wxUSE_RESOURCES=no | |
1481 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1482 | DEFAULT_wxUSE_IPC=no | |
1483 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1484 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1485 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1486 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1487 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1488 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1489 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1490 | DEFAULT_wxUSE_PROTOCOL=no | |
1491 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1492 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1493 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1494 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 1495 | |
10f2d63a | 1496 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1497 | DEFAULT_wxUSE_CHOICEDLG=no |
1498 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1499 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1500 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1501 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1502 | DEFAULT_wxUSE_FONTDLG=no |
1503 | DEFAULT_wxUSE_MSGDLG=no | |
1504 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1505 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1506 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1507 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1508 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1509 | DEFAULT_wxUSE_WIZARDDLG=no |
1510 | ||
1e6feb95 | 1511 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1512 | DEFAULT_wxUSE_MINIFRAME=no |
1513 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1514 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1515 | DEFAULT_wxUSE_FS_INET=no |
1516 | DEFAULT_wxUSE_FS_ZIP=no | |
1517 | DEFAULT_wxUSE_BUSYINFO=no | |
1518 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1519 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1520 | |
1521 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1522 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1523 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1524 | DEFAULT_wxUSE_CALCTRL=no |
1525 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1526 | DEFAULT_wxUSE_CHECKBOX=no |
1527 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1528 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1529 | DEFAULT_wxUSE_COMBOBOX=no |
1530 | DEFAULT_wxUSE_GAUGE=no | |
1531 | DEFAULT_wxUSE_GRID=no | |
1532 | DEFAULT_wxUSE_NEW_GRID=no | |
1533 | DEFAULT_wxUSE_IMAGLIST=no | |
1534 | DEFAULT_wxUSE_LISTBOX=no | |
1535 | DEFAULT_wxUSE_LISTCTRL=no | |
1536 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1537 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1538 | DEFAULT_wxUSE_RADIOBOX=no |
1539 | DEFAULT_wxUSE_RADIOBTN=no | |
1540 | DEFAULT_wxUSE_SASH=no | |
1541 | DEFAULT_wxUSE_SCROLLBAR=no | |
1542 | DEFAULT_wxUSE_SLIDER=no | |
1543 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1544 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1545 | DEFAULT_wxUSE_SPLITTER=no |
1546 | DEFAULT_wxUSE_STATBMP=no | |
1547 | DEFAULT_wxUSE_STATBOX=no | |
1548 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1549 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1550 | DEFAULT_wxUSE_STATUSBAR=yes |
1551 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1552 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1553 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1554 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1555 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1556 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1557 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1558 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1559 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1560 | |
1561 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1562 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1563 | DEFAULT_wxUSE_WCSRTOMBS=no |
1564 | ||
edae8572 | 1565 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1566 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1567 | DEFAULT_wxUSE_GIF=no |
1568 | DEFAULT_wxUSE_PCX=no | |
1569 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1570 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1571 | DEFAULT_wxUSE_XPM=no |
658974ae | 1572 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1573 | else |
1e6feb95 VZ |
1574 | DEFAULT_wxUSE_UNIVERSAL=no |
1575 | ||
d8356fa3 VZ |
1576 | DEFAULT_wxUSE_NANOX=no |
1577 | ||
10f2d63a VZ |
1578 | DEFAULT_wxUSE_THREADS=yes |
1579 | ||
1580 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1581 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1582 | DEFAULT_wxUSE_OPTIMISE=yes |
1583 | DEFAULT_wxUSE_PROFILE=no | |
1584 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1585 | DEFAULT_wxUSE_NO_RTTI=no |
1586 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1587 | DEFAULT_wxUSE_PERMISSIVE=no |
1588 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1589 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1590 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1591 | DEFAULT_wxUSE_MEM_TRACING=no | |
1592 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1593 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1594 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1595 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1596 | ||
1597 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1598 | DEFAULT_wxUSE_LOGWINDOW=yes |
1599 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1600 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1601 | |
1602 | DEFAULT_wxUSE_GUI=yes | |
1603 | ||
831b3152 | 1604 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1605 | DEFAULT_wxUSE_ZLIB=yes |
1606 | DEFAULT_wxUSE_LIBPNG=yes | |
1607 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1608 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1609 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1610 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1611 | |
eb4efbdc | 1612 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1613 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1614 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1615 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1616 | DEFAULT_wxUSE_DATETIME=yes | |
1617 | DEFAULT_wxUSE_TIMEDATE=no | |
1618 | DEFAULT_wxUSE_TIMER=yes | |
1619 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1620 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1621 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1622 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1623 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1624 | DEFAULT_wxUSE_WAVE=no |
1625 | DEFAULT_wxUSE_INTL=yes | |
1626 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1627 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1628 | DEFAULT_wxUSE_STREAMS=yes |
1629 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
1630 | DEFAULT_wxUSE_OLE=yes |
1631 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 1632 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 1633 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1634 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1635 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1636 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1637 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1638 | |
1639 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1640 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1641 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1642 | ||
1643 | DEFAULT_wxUSE_X_RESOURCES=no | |
1644 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1645 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1646 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1647 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1648 | DEFAULT_wxUSE_SPLINES=yes |
1649 | ||
1650 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1651 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1652 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1653 | ||
2b5f62a0 VZ |
1654 | DEFAULT_wxUSE_PROLOGIO=no |
1655 | DEFAULT_wxUSE_RESOURCES=no | |
10f2d63a VZ |
1656 | DEFAULT_wxUSE_CONSTRAINTS=yes |
1657 | DEFAULT_wxUSE_IPC=yes | |
1658 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1659 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1660 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1661 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1662 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1663 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1664 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1665 | DEFAULT_wxUSE_PROTOCOL=yes |
1666 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1667 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1668 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1669 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1670 | |
1671 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1672 | DEFAULT_wxUSE_CHOICEDLG=yes |
1673 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1674 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1675 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1676 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1677 | DEFAULT_wxUSE_FONTDLG=yes |
1678 | DEFAULT_wxUSE_MSGDLG=yes | |
1679 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1680 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1681 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1682 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1683 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1684 | DEFAULT_wxUSE_WIZARDDLG=yes |
1685 | ||
1e6feb95 | 1686 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1687 | DEFAULT_wxUSE_MINIFRAME=yes |
1688 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1689 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1690 | DEFAULT_wxUSE_FS_INET=yes |
1691 | DEFAULT_wxUSE_FS_ZIP=yes | |
1692 | DEFAULT_wxUSE_BUSYINFO=yes | |
1693 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1694 | DEFAULT_wxUSE_VALIDATORS=yes | |
1695 | ||
1696 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1697 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1698 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1699 | DEFAULT_wxUSE_CALCTRL=yes |
1700 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1701 | DEFAULT_wxUSE_CHECKBOX=yes |
1702 | DEFAULT_wxUSE_CHECKLST=yes | |
1703 | DEFAULT_wxUSE_CHOICE=yes | |
1704 | DEFAULT_wxUSE_COMBOBOX=yes | |
1705 | DEFAULT_wxUSE_GAUGE=yes | |
1706 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1707 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1708 | DEFAULT_wxUSE_IMAGLIST=yes |
1709 | DEFAULT_wxUSE_LISTBOX=yes | |
1710 | DEFAULT_wxUSE_LISTCTRL=yes | |
1711 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1712 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1713 | DEFAULT_wxUSE_RADIOBOX=yes |
1714 | DEFAULT_wxUSE_RADIOBTN=yes | |
1715 | DEFAULT_wxUSE_SASH=yes | |
1716 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1717 | DEFAULT_wxUSE_SLIDER=yes | |
1718 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1719 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1720 | DEFAULT_wxUSE_SPLITTER=yes |
1721 | DEFAULT_wxUSE_STATBMP=yes | |
1722 | DEFAULT_wxUSE_STATBOX=yes | |
1723 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1724 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1725 | DEFAULT_wxUSE_STATUSBAR=yes |
1726 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1727 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1728 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1729 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1730 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1731 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1732 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1733 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1734 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1735 | |
1736 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1737 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1738 | DEFAULT_wxUSE_WCSRTOMBS=no |
1739 | ||
edae8572 | 1740 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1741 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1742 | DEFAULT_wxUSE_GIF=yes |
1743 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1744 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1745 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1746 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1747 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1748 | fi |
1749 | ||
8284b0c5 MB |
1750 | |
1751 | ||
10f2d63a | 1752 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
1753 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
1754 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
1755 | has_toolkit_in_cache=1 |
1756 | eval "DEFAULT_$LINE" | |
1757 | eval "CACHE_$toolkit=1" | |
1758 | fi | |
1759 | done | |
1760 | ||
8284b0c5 MB |
1761 | |
1762 | ||
5005acfe VZ |
1763 | enablestring= |
1764 | echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6 | |
65d8ef1e | 1765 | echo "configure:1766: checking for --${enablestring:-enable}-gui" >&5 |
10f2d63a VZ |
1766 | no_cache=0 |
1767 | # Check whether --enable-gui or --disable-gui was given. | |
1768 | if test "${enable_gui+set}" = set; then | |
1769 | enableval="$enable_gui" | |
a0b9e27f | 1770 | |
10f2d63a VZ |
1771 | if test "$enableval" = yes; then |
1772 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1773 | else | |
1774 | ac_cv_use_gui='wxUSE_GUI=no' | |
1775 | fi | |
a0b9e27f | 1776 | |
10f2d63a | 1777 | else |
a0b9e27f | 1778 | |
10f2d63a VZ |
1779 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1780 | if test "x$LINE" != x ; then | |
1781 | eval "DEFAULT_$LINE" | |
1782 | else | |
1783 | no_cache=1 | |
1784 | fi | |
1785 | ||
1786 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
a0b9e27f MB |
1787 | |
1788 | fi | |
10f2d63a VZ |
1789 | |
1790 | ||
1791 | eval "$ac_cv_use_gui" | |
1792 | if test "$no_cache" != 1; then | |
1793 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1794 | fi | |
1795 | ||
1796 | if test "$wxUSE_GUI" = yes; then | |
a0b9e27f | 1797 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1798 | else |
a0b9e27f | 1799 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1800 | fi |
a0b9e27f | 1801 | |
10f2d63a | 1802 | |
b12915c1 | 1803 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1804 | |
8284b0c5 | 1805 | |
5005acfe VZ |
1806 | enablestring= |
1807 | echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6 | |
65d8ef1e | 1808 | echo "configure:1809: checking for --${enablestring:-enable}-universal" >&5 |
1e6feb95 VZ |
1809 | no_cache=0 |
1810 | # Check whether --enable-universal or --disable-universal was given. | |
1811 | if test "${enable_universal+set}" = set; then | |
1812 | enableval="$enable_universal" | |
a0b9e27f | 1813 | |
1e6feb95 VZ |
1814 | if test "$enableval" = yes; then |
1815 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1816 | else | |
1817 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1818 | fi | |
a0b9e27f | 1819 | |
1e6feb95 | 1820 | else |
a0b9e27f | 1821 | |
1e6feb95 VZ |
1822 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
1823 | if test "x$LINE" != x ; then | |
1824 | eval "DEFAULT_$LINE" | |
1825 | else | |
1826 | no_cache=1 | |
1827 | fi | |
1828 | ||
1829 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
a0b9e27f MB |
1830 | |
1831 | fi | |
1e6feb95 VZ |
1832 | |
1833 | ||
1834 | eval "$ac_cv_use_universal" | |
1835 | if test "$no_cache" != 1; then | |
1836 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1837 | fi | |
1838 | ||
1839 | if test "$wxUSE_UNIVERSAL" = yes; then | |
a0b9e27f | 1840 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 1841 | else |
a0b9e27f | 1842 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 1843 | fi |
a0b9e27f | 1844 | |
10f2d63a VZ |
1845 | # Check whether --with-gtk or --without-gtk was given. |
1846 | if test "${with_gtk+set}" = set; then | |
1847 | withval="$with_gtk" | |
1848 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1849 | fi |
10f2d63a VZ |
1850 | |
1851 | # Check whether --with-motif or --without-motif was given. | |
1852 | if test "${with_motif+set}" = set; then | |
1853 | withval="$with_motif" | |
1854 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1855 | fi |
10f2d63a | 1856 | |
b4085ce6 GD |
1857 | # Check whether --with-mac or --without-mac was given. |
1858 | if test "${with_mac+set}" = set; then | |
1859 | withval="$with_mac" | |
1860 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
a0b9e27f | 1861 | fi |
b4085ce6 | 1862 | |
10f2d63a VZ |
1863 | # Check whether --with-wine or --without-wine was given. |
1864 | if test "${with_wine+set}" = set; then | |
1865 | withval="$with_wine" | |
89e6bf6d | 1866 | wxUSE_WINE="$withval" CACHE_WINE=1 |
a0b9e27f | 1867 | fi |
10f2d63a | 1868 | |
77e13408 RL |
1869 | # Check whether --with-msw or --without-msw was given. |
1870 | if test "${with_msw+set}" = set; then | |
1871 | withval="$with_msw" | |
b4efce5e | 1872 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1873 | fi |
10f2d63a | 1874 | |
e07802fc VZ |
1875 | # Check whether --with-pm or --without-pm was given. |
1876 | if test "${with_pm+set}" = set; then | |
1877 | withval="$with_pm" | |
1878 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1879 | fi |
698dcdb6 | 1880 | |
1e6feb95 VZ |
1881 | # Check whether --with-mgl or --without-mgl was given. |
1882 | if test "${with_mgl+set}" = set; then | |
1883 | withval="$with_mgl" | |
6c657b52 | 1884 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1885 | fi |
1e6feb95 | 1886 | |
1725144d RR |
1887 | # Check whether --with-microwin or --without-microwin was given. |
1888 | if test "${with_microwin+set}" = set; then | |
1889 | withval="$with_microwin" | |
1890 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1891 | fi |
1725144d | 1892 | |
f79bd02d JS |
1893 | # Check whether --with-x11 or --without-x11 was given. |
1894 | if test "${with_x11+set}" = set; then | |
1895 | withval="$with_x11" | |
3c011993 | 1896 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1897 | fi |
10f2d63a | 1898 | |
a0b9e27f | 1899 | |
5005acfe VZ |
1900 | enablestring= |
1901 | echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6 | |
65d8ef1e | 1902 | echo "configure:1903: checking for --${enablestring:-enable}-nanox" >&5 |
d8356fa3 | 1903 | no_cache=0 |
ba875e66 VZ |
1904 | # Check whether --enable-nanox or --disable-nanox was given. |
1905 | if test "${enable_nanox+set}" = set; then | |
1906 | enableval="$enable_nanox" | |
a0b9e27f | 1907 | |
d8356fa3 | 1908 | if test "$enableval" = yes; then |
ba875e66 | 1909 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1910 | else |
ba875e66 | 1911 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 1912 | fi |
a0b9e27f | 1913 | |
d8356fa3 | 1914 | else |
a0b9e27f | 1915 | |
d8356fa3 VZ |
1916 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
1917 | if test "x$LINE" != x ; then | |
1918 | eval "DEFAULT_$LINE" | |
1919 | else | |
1920 | no_cache=1 | |
1921 | fi | |
1922 | ||
ba875e66 | 1923 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
a0b9e27f MB |
1924 | |
1925 | fi | |
d8356fa3 VZ |
1926 | |
1927 | ||
ba875e66 | 1928 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1929 | if test "$no_cache" != 1; then |
ba875e66 | 1930 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1931 | fi |
1932 | ||
1933 | if test "$wxUSE_NANOX" = yes; then | |
a0b9e27f | 1934 | echo "$ac_t""yes" 1>&6 |
d8356fa3 | 1935 | else |
a0b9e27f | 1936 | echo "$ac_t""no" 1>&6 |
d8356fa3 | 1937 | fi |
a0b9e27f | 1938 | |
8284b0c5 | 1939 | |
d74f4b5a | 1940 | |
5005acfe VZ |
1941 | enablestring= |
1942 | echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6 | |
65d8ef1e | 1943 | echo "configure:1944: checking for --${enablestring:-enable}-gtk2" >&5 |
d74f4b5a VZ |
1944 | no_cache=0 |
1945 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
1946 | if test "${enable_gtk2+set}" = set; then |
1947 | enableval="$enable_gtk2" | |
a0b9e27f | 1948 | |
d74f4b5a VZ |
1949 | if test "$enableval" = yes; then |
1950 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
1951 | else | |
1952 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
1953 | fi | |
a0b9e27f | 1954 | |
10f2d63a | 1955 | else |
a0b9e27f | 1956 | |
d74f4b5a VZ |
1957 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
1958 | if test "x$LINE" != x ; then | |
1959 | eval "DEFAULT_$LINE" | |
1960 | else | |
1961 | no_cache=1 | |
1962 | fi | |
1963 | ||
1964 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
a0b9e27f MB |
1965 | |
1966 | fi | |
52127426 | 1967 | |
328a083c | 1968 | |
d74f4b5a VZ |
1969 | eval "$ac_cv_use_gtk2" |
1970 | if test "$no_cache" != 1; then | |
1971 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
1972 | fi | |
1973 | ||
1974 | if test "$wxUSE_GTK2" = yes; then | |
a0b9e27f | 1975 | echo "$ac_t""yes" 1>&6 |
d74f4b5a | 1976 | else |
a0b9e27f | 1977 | echo "$ac_t""no" 1>&6 |
d74f4b5a | 1978 | fi |
a0b9e27f | 1979 | |
d74f4b5a | 1980 | |
5c6fa7d2 | 1981 | |
a0b9e27f | 1982 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
65d8ef1e | 1983 | echo "configure:1984: checking for --with-libpng" >&5 |
8284b0c5 | 1984 | no_cache=0 |
a0b9e27f | 1985 | # Check whether --with-libpng or --without-libpng was given. |
b12915c1 VZ |
1986 | if test "${with_libpng+set}" = set; then |
1987 | withval="$with_libpng" | |
a0b9e27f | 1988 | |
10f2d63a | 1989 | if test "$withval" = yes; then |
b12915c1 | 1990 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1991 | elif test "$withval" = no; then |
b12915c1 | 1992 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1993 | elif test "$withval" = sys; then |
1994 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1995 | elif test "$withval" = builtin; then |
1996 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1997 | else |
a0b9e27f | 1998 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1999 | fi |
a0b9e27f | 2000 | |
10f2d63a | 2001 | else |
a0b9e27f | 2002 | |
b12915c1 | 2003 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2004 | if test "x$LINE" != x ; then |
2005 | eval "DEFAULT_$LINE" | |
2006 | else | |
2007 | no_cache=1 | |
2008 | fi | |
2009 | ||
b12915c1 | 2010 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
a0b9e27f MB |
2011 | |
2012 | fi | |
10f2d63a VZ |
2013 | |
2014 | ||
b12915c1 | 2015 | eval "$ac_cv_use_libpng" |
10f2d63a | 2016 | if test "$no_cache" != 1; then |
b12915c1 | 2017 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2018 | fi |
2019 | ||
b12915c1 | 2020 | if test "$wxUSE_LIBPNG" = yes; then |
a0b9e27f | 2021 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2022 | elif test "$wxUSE_LIBPNG" = no; then |
a0b9e27f | 2023 | echo "$ac_t""no" 1>&6 |
422107f9 | 2024 | elif test "$wxUSE_LIBPNG" = sys; then |
a0b9e27f | 2025 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2026 | elif test "$wxUSE_LIBPNG" = builtin; then |
a0b9e27f | 2027 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2028 | else |
a0b9e27f | 2029 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2030 | fi |
a0b9e27f | 2031 | |
10f2d63a | 2032 | |
a0b9e27f | 2033 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
65d8ef1e | 2034 | echo "configure:2035: checking for --with-libjpeg" >&5 |
10f2d63a | 2035 | no_cache=0 |
a0b9e27f | 2036 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2037 | if test "${with_libjpeg+set}" = set; then |
2038 | withval="$with_libjpeg" | |
a0b9e27f | 2039 | |
10f2d63a | 2040 | if test "$withval" = yes; then |
b12915c1 | 2041 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2042 | elif test "$withval" = no; then |
b12915c1 | 2043 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2044 | elif test "$withval" = sys; then |
2045 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2046 | elif test "$withval" = builtin; then |
2047 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2048 | else |
a0b9e27f | 2049 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2050 | fi |
a0b9e27f | 2051 | |
10f2d63a | 2052 | else |
a0b9e27f | 2053 | |
b12915c1 | 2054 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2055 | if test "x$LINE" != x ; then |
2056 | eval "DEFAULT_$LINE" | |
2057 | else | |
2058 | no_cache=1 | |
2059 | fi | |
2060 | ||
b12915c1 | 2061 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
a0b9e27f MB |
2062 | |
2063 | fi | |
10f2d63a VZ |
2064 | |
2065 | ||
b12915c1 | 2066 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2067 | if test "$no_cache" != 1; then |
b12915c1 | 2068 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2069 | fi |
2070 | ||
b12915c1 | 2071 | if test "$wxUSE_LIBJPEG" = yes; then |
a0b9e27f | 2072 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2073 | elif test "$wxUSE_LIBJPEG" = no; then |
a0b9e27f | 2074 | echo "$ac_t""no" 1>&6 |
422107f9 | 2075 | elif test "$wxUSE_LIBJPEG" = sys; then |
a0b9e27f | 2076 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2077 | elif test "$wxUSE_LIBJPEG" = builtin; then |
a0b9e27f | 2078 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2079 | else |
a0b9e27f | 2080 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2081 | fi |
a0b9e27f | 2082 | |
10f2d63a | 2083 | |
a0b9e27f | 2084 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
65d8ef1e | 2085 | echo "configure:2086: checking for --with-libtiff" >&5 |
10f2d63a | 2086 | no_cache=0 |
a0b9e27f | 2087 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2088 | if test "${with_libtiff+set}" = set; then |
2089 | withval="$with_libtiff" | |
a0b9e27f | 2090 | |
10f2d63a | 2091 | if test "$withval" = yes; then |
b12915c1 | 2092 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2093 | elif test "$withval" = no; then |
b12915c1 | 2094 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2095 | elif test "$withval" = sys; then |
2096 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2097 | elif test "$withval" = builtin; then |
2098 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2099 | else |
a0b9e27f | 2100 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2101 | fi |
a0b9e27f | 2102 | |
10f2d63a | 2103 | else |
a0b9e27f | 2104 | |
b12915c1 | 2105 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2106 | if test "x$LINE" != x ; then |
2107 | eval "DEFAULT_$LINE" | |
2108 | else | |
2109 | no_cache=1 | |
2110 | fi | |
2111 | ||
b12915c1 | 2112 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
a0b9e27f MB |
2113 | |
2114 | fi | |
10f2d63a VZ |
2115 | |
2116 | ||
b12915c1 | 2117 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2118 | if test "$no_cache" != 1; then |
b12915c1 | 2119 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2120 | fi |
2121 | ||
b12915c1 | 2122 | if test "$wxUSE_LIBTIFF" = yes; then |
a0b9e27f | 2123 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2124 | elif test "$wxUSE_LIBTIFF" = no; then |
a0b9e27f | 2125 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2126 | elif test "$wxUSE_LIBTIFF" = sys; then |
a0b9e27f | 2127 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2128 | elif test "$wxUSE_LIBTIFF" = builtin; then |
a0b9e27f | 2129 | echo "$ac_t""builtin version" 1>&6 |
0dcf9893 | 2130 | else |
a0b9e27f | 2131 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2132 | fi |
a0b9e27f | 2133 | |
10f2d63a | 2134 | |
a0b9e27f | 2135 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
65d8ef1e | 2136 | echo "configure:2137: checking for --with-opengl" >&5 |
10f2d63a | 2137 | no_cache=0 |
a0b9e27f | 2138 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2139 | if test "${with_opengl+set}" = set; then |
2140 | withval="$with_opengl" | |
a0b9e27f | 2141 | |
10f2d63a | 2142 | if test "$withval" = yes; then |
b12915c1 | 2143 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2144 | else |
b12915c1 | 2145 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2146 | fi |
a0b9e27f | 2147 | |
10f2d63a | 2148 | else |
a0b9e27f | 2149 | |
b12915c1 | 2150 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2151 | if test "x$LINE" != x ; then |
2152 | eval "DEFAULT_$LINE" | |
2153 | else | |
2154 | no_cache=1 | |
2155 | fi | |
2156 | ||
b12915c1 | 2157 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
a0b9e27f MB |
2158 | |
2159 | fi | |
10f2d63a VZ |
2160 | |
2161 | ||
b12915c1 | 2162 | eval "$ac_cv_use_opengl" |
10f2d63a | 2163 | if test "$no_cache" != 1; then |
b12915c1 | 2164 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2165 | fi |
2166 | ||
b12915c1 | 2167 | if test "$wxUSE_OPENGL" = yes; then |
a0b9e27f | 2168 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2169 | else |
a0b9e27f | 2170 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2171 | fi |
a0b9e27f | 2172 | |
10f2d63a | 2173 | |
b12915c1 VZ |
2174 | fi |
2175 | ||
5c6fa7d2 | 2176 | |
a0b9e27f | 2177 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
65d8ef1e | 2178 | echo "configure:2179: checking for --with-dmalloc" >&5 |
8284b0c5 | 2179 | no_cache=0 |
a0b9e27f | 2180 | # Check whether --with-dmalloc or --without-dmalloc was given. |
b12915c1 VZ |
2181 | if test "${with_dmalloc+set}" = set; then |
2182 | withval="$with_dmalloc" | |
a0b9e27f | 2183 | |
c7a2bf27 | 2184 | if test "$withval" = yes; then |
b12915c1 | 2185 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2186 | else |
b12915c1 | 2187 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2188 | fi |
a0b9e27f | 2189 | |
c7a2bf27 | 2190 | else |
a0b9e27f | 2191 | |
b12915c1 | 2192 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2193 | if test "x$LINE" != x ; then |
2194 | eval "DEFAULT_$LINE" | |
2195 | else | |
2196 | no_cache=1 | |
2197 | fi | |
2198 | ||
b12915c1 | 2199 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
a0b9e27f MB |
2200 | |
2201 | fi | |
c7a2bf27 RR |
2202 | |
2203 | ||
b12915c1 | 2204 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2205 | if test "$no_cache" != 1; then |
b12915c1 | 2206 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2207 | fi |
2208 | ||
b12915c1 | 2209 | if test "$wxUSE_DMALLOC" = yes; then |
a0b9e27f | 2210 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2211 | else |
a0b9e27f | 2212 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2213 | fi |
a0b9e27f | 2214 | |
c7a2bf27 | 2215 | |
a0b9e27f | 2216 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
65d8ef1e | 2217 | echo "configure:2218: checking for --with-regex" >&5 |
3e44f09d | 2218 | no_cache=0 |
a0b9e27f | 2219 | # Check whether --with-regex or --without-regex was given. |
3e44f09d VZ |
2220 | if test "${with_regex+set}" = set; then |
2221 | withval="$with_regex" | |
a0b9e27f | 2222 | |
3e44f09d VZ |
2223 | if test "$withval" = yes; then |
2224 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2225 | elif test "$withval" = no; then | |
2226 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2227 | elif test "$withval" = sys; then | |
2228 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2229 | elif test "$withval" = builtin; then |
2230 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2231 | else |
a0b9e27f | 2232 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2233 | fi |
a0b9e27f | 2234 | |
3e44f09d | 2235 | else |
a0b9e27f | 2236 | |
3e44f09d VZ |
2237 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2238 | if test "x$LINE" != x ; then | |
2239 | eval "DEFAULT_$LINE" | |
2240 | else | |
2241 | no_cache=1 | |
2242 | fi | |
2243 | ||
2244 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
a0b9e27f MB |
2245 | |
2246 | fi | |
3e44f09d VZ |
2247 | |
2248 | ||
2249 | eval "$ac_cv_use_regex" | |
2250 | if test "$no_cache" != 1; then | |
2251 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2252 | fi | |
2253 | ||
2254 | if test "$wxUSE_REGEX" = yes; then | |
a0b9e27f | 2255 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 2256 | elif test "$wxUSE_REGEX" = no; then |
a0b9e27f | 2257 | echo "$ac_t""no" 1>&6 |
3e44f09d | 2258 | elif test "$wxUSE_REGEX" = sys; then |
a0b9e27f | 2259 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2260 | elif test "$wxUSE_REGEX" = builtin; then |
a0b9e27f | 2261 | echo "$ac_t""builtin version" 1>&6 |
3e44f09d | 2262 | else |
a0b9e27f | 2263 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2264 | fi |
a0b9e27f | 2265 | |
3e44f09d | 2266 | |
a0b9e27f | 2267 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
65d8ef1e | 2268 | echo "configure:2269: checking for --with-zlib" >&5 |
10f2d63a | 2269 | no_cache=0 |
a0b9e27f | 2270 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2271 | if test "${with_zlib+set}" = set; then |
2272 | withval="$with_zlib" | |
a0b9e27f | 2273 | |
10f2d63a | 2274 | if test "$withval" = yes; then |
b12915c1 | 2275 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2276 | elif test "$withval" = no; then |
b12915c1 | 2277 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2278 | elif test "$withval" = sys; then |
2279 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2280 | elif test "$withval" = builtin; then |
2281 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2282 | else |
a0b9e27f | 2283 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2284 | fi |
a0b9e27f | 2285 | |
10f2d63a | 2286 | else |
a0b9e27f | 2287 | |
b12915c1 | 2288 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2289 | if test "x$LINE" != x ; then |
2290 | eval "DEFAULT_$LINE" | |
2291 | else | |
2292 | no_cache=1 | |
2293 | fi | |
2294 | ||
b12915c1 | 2295 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
a0b9e27f MB |
2296 | |
2297 | fi | |
10f2d63a VZ |
2298 | |
2299 | ||
b12915c1 | 2300 | eval "$ac_cv_use_zlib" |
10f2d63a | 2301 | if test "$no_cache" != 1; then |
b12915c1 | 2302 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2303 | fi |
2304 | ||
b12915c1 | 2305 | if test "$wxUSE_ZLIB" = yes; then |
a0b9e27f | 2306 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2307 | elif test "$wxUSE_ZLIB" = no; then |
a0b9e27f | 2308 | echo "$ac_t""no" 1>&6 |
422107f9 | 2309 | elif test "$wxUSE_ZLIB" = sys; then |
a0b9e27f | 2310 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2311 | elif test "$wxUSE_ZLIB" = builtin; then |
a0b9e27f | 2312 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2313 | else |
a0b9e27f | 2314 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2315 | fi |
a0b9e27f | 2316 | |
10f2d63a | 2317 | |
a0b9e27f | 2318 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
65d8ef1e | 2319 | echo "configure:2320: checking for --with-odbc" >&5 |
10f2d63a | 2320 | no_cache=0 |
a0b9e27f | 2321 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2322 | if test "${with_odbc+set}" = set; then |
2323 | withval="$with_odbc" | |
a0b9e27f | 2324 | |
10f2d63a VZ |
2325 | if test "$withval" = yes; then |
2326 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2327 | else | |
2328 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2329 | fi | |
a0b9e27f | 2330 | |
10f2d63a | 2331 | else |
a0b9e27f | 2332 | |
10f2d63a VZ |
2333 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2334 | if test "x$LINE" != x ; then | |
2335 | eval "DEFAULT_$LINE" | |
2336 | else | |
2337 | no_cache=1 | |
2338 | fi | |
2339 | ||
2340 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
a0b9e27f MB |
2341 | |
2342 | fi | |
10f2d63a VZ |
2343 | |
2344 | ||
2345 | eval "$ac_cv_use_odbc" | |
2346 | if test "$no_cache" != 1; then | |
2347 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2348 | fi | |
2349 | ||
2350 | if test "$wxUSE_ODBC" = yes; then | |
a0b9e27f | 2351 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2352 | else |
a0b9e27f | 2353 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2354 | fi |
a0b9e27f | 2355 | |
52127426 | 2356 | |
8284b0c5 MB |
2357 | |
2358 | ||
5005acfe VZ |
2359 | enablestring= |
2360 | echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6 | |
65d8ef1e | 2361 | echo "configure:2362: checking for --${enablestring:-enable}-shared" >&5 |
10f2d63a VZ |
2362 | no_cache=0 |
2363 | # Check whether --enable-shared or --disable-shared was given. | |
2364 | if test "${enable_shared+set}" = set; then | |
2365 | enableval="$enable_shared" | |
a0b9e27f | 2366 | |
10f2d63a VZ |
2367 | if test "$enableval" = yes; then |
2368 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2369 | else | |
2370 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2371 | fi | |
a0b9e27f | 2372 | |
10f2d63a | 2373 | else |
a0b9e27f | 2374 | |
10f2d63a VZ |
2375 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2376 | if test "x$LINE" != x ; then | |
2377 | eval "DEFAULT_$LINE" | |
2378 | else | |
2379 | no_cache=1 | |
2380 | fi | |
2381 | ||
2382 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
a0b9e27f MB |
2383 | |
2384 | fi | |
10f2d63a VZ |
2385 | |
2386 | ||
2387 | eval "$ac_cv_use_shared" | |
2388 | if test "$no_cache" != 1; then | |
2389 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2390 | fi | |
2391 | ||
2392 | if test "$wxUSE_SHARED" = yes; then | |
a0b9e27f | 2393 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2394 | else |
a0b9e27f | 2395 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2396 | fi |
a0b9e27f | 2397 | |
10f2d63a | 2398 | |
5005acfe VZ |
2399 | enablestring= |
2400 | echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6 | |
65d8ef1e | 2401 | echo "configure:2402: checking for --${enablestring:-enable}-soname" >&5 |
00cf1208 | 2402 | no_cache=0 |
3a922bb4 RL |
2403 | # Check whether --enable-soname or --disable-soname was given. |
2404 | if test "${enable_soname+set}" = set; then | |
2405 | enableval="$enable_soname" | |
a0b9e27f | 2406 | |
00cf1208 | 2407 | if test "$enableval" = yes; then |
3a922bb4 | 2408 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2409 | else |
3a922bb4 | 2410 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2411 | fi |
a0b9e27f | 2412 | |
00cf1208 | 2413 | else |
a0b9e27f | 2414 | |
3a922bb4 | 2415 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2416 | if test "x$LINE" != x ; then |
2417 | eval "DEFAULT_$LINE" | |
2418 | else | |
2419 | no_cache=1 | |
2420 | fi | |
2421 | ||
3a922bb4 | 2422 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
a0b9e27f MB |
2423 | |
2424 | fi | |
00cf1208 RR |
2425 | |
2426 | ||
3a922bb4 | 2427 | eval "$ac_cv_use_soname" |
00cf1208 | 2428 | if test "$no_cache" != 1; then |
3a922bb4 | 2429 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2430 | fi |
2431 | ||
3a922bb4 | 2432 | if test "$wxUSE_SONAME" = yes; then |
a0b9e27f | 2433 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2434 | else |
a0b9e27f | 2435 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2436 | fi |
a0b9e27f | 2437 | |
00cf1208 | 2438 | |
5005acfe VZ |
2439 | enablestring= |
2440 | echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6 | |
65d8ef1e | 2441 | echo "configure:2442: checking for --${enablestring:-enable}-optimise" >&5 |
10f2d63a VZ |
2442 | no_cache=0 |
2443 | # Check whether --enable-optimise or --disable-optimise was given. | |
2444 | if test "${enable_optimise+set}" = set; then | |
2445 | enableval="$enable_optimise" | |
a0b9e27f | 2446 | |
10f2d63a VZ |
2447 | if test "$enableval" = yes; then |
2448 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2449 | else | |
2450 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2451 | fi | |
a0b9e27f | 2452 | |
10f2d63a | 2453 | else |
a0b9e27f | 2454 | |
10f2d63a VZ |
2455 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2456 | if test "x$LINE" != x ; then | |
2457 | eval "DEFAULT_$LINE" | |
2458 | else | |
2459 | no_cache=1 | |
2460 | fi | |
2461 | ||
2462 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
a0b9e27f MB |
2463 | |
2464 | fi | |
10f2d63a VZ |
2465 | |
2466 | ||
2467 | eval "$ac_cv_use_optimise" | |
2468 | if test "$no_cache" != 1; then | |
2469 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2470 | fi | |
2471 | ||
2472 | if test "$wxUSE_OPTIMISE" = yes; then | |
a0b9e27f | 2473 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2474 | else |
a0b9e27f | 2475 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2476 | fi |
a0b9e27f | 2477 | |
10f2d63a | 2478 | |
5005acfe VZ |
2479 | enablestring= |
2480 | echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6 | |
65d8ef1e | 2481 | echo "configure:2482: checking for --${enablestring:-enable}-debug" >&5 |
10f2d63a VZ |
2482 | no_cache=0 |
2483 | # Check whether --enable-debug or --disable-debug was given. | |
2484 | if test "${enable_debug+set}" = set; then | |
2485 | enableval="$enable_debug" | |
a0b9e27f | 2486 | |
10f2d63a VZ |
2487 | if test "$enableval" = yes; then |
2488 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2489 | else | |
2490 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2491 | fi | |
a0b9e27f | 2492 | |
10f2d63a | 2493 | else |
a0b9e27f | 2494 | |
10f2d63a VZ |
2495 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2496 | if test "x$LINE" != x ; then | |
2497 | eval "DEFAULT_$LINE" | |
2498 | else | |
2499 | no_cache=1 | |
2500 | fi | |
2501 | ||
2502 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
a0b9e27f MB |
2503 | |
2504 | fi | |
10f2d63a VZ |
2505 | |
2506 | ||
2507 | eval "$ac_cv_use_debug" | |
2508 | if test "$no_cache" != 1; then | |
2509 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2510 | fi | |
2511 | ||
2512 | if test "$wxUSE_DEBUG" = yes; then | |
a0b9e27f | 2513 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2514 | else |
a0b9e27f | 2515 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2516 | fi |
a0b9e27f | 2517 | |
52127426 | 2518 | |
8284b0c5 | 2519 | |
5005acfe VZ |
2520 | enablestring= |
2521 | echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6 | |
65d8ef1e | 2522 | echo "configure:2523: checking for --${enablestring:-enable}-precomp" >&5 |
683dccda GD |
2523 | no_cache=0 |
2524 | # Check whether --enable-precomp or --disable-precomp was given. | |
2525 | if test "${enable_precomp+set}" = set; then | |
2526 | enableval="$enable_precomp" | |
a0b9e27f | 2527 | |
683dccda GD |
2528 | if test "$enableval" = yes; then |
2529 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2530 | else | |
2531 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2532 | fi | |
a0b9e27f | 2533 | |
683dccda | 2534 | else |
a0b9e27f | 2535 | |
683dccda GD |
2536 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` |
2537 | if test "x$LINE" != x ; then | |
2538 | eval "DEFAULT_$LINE" | |
2539 | else | |
2540 | no_cache=1 | |
2541 | fi | |
2542 | ||
2543 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
a0b9e27f MB |
2544 | |
2545 | fi | |
683dccda GD |
2546 | |
2547 | ||
2548 | eval "$ac_cv_use_precomp" | |
2549 | if test "$no_cache" != 1; then | |
2550 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2551 | fi | |
2552 | ||
2553 | if test "$wxUSE_PRECOMP" = yes; then | |
a0b9e27f | 2554 | echo "$ac_t""yes" 1>&6 |
683dccda | 2555 | else |
a0b9e27f | 2556 | echo "$ac_t""no" 1>&6 |
683dccda | 2557 | fi |
a0b9e27f | 2558 | |
683dccda | 2559 | |
10f2d63a VZ |
2560 | if test "$wxUSE_DEBUG" = "yes"; then |
2561 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2562 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2563 | elif test "$wxUSE_DEBUG" = "no"; then | |
2564 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2565 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2566 | fi | |
2567 | ||
8284b0c5 | 2568 | |
5005acfe VZ |
2569 | enablestring= |
2570 | echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6 | |
65d8ef1e | 2571 | echo "configure:2572: checking for --${enablestring:-enable}-debug_flag" >&5 |
10f2d63a VZ |
2572 | no_cache=0 |
2573 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2574 | if test "${enable_debug_flag+set}" = set; then | |
2575 | enableval="$enable_debug_flag" | |
a0b9e27f | 2576 | |
10f2d63a VZ |
2577 | if test "$enableval" = yes; then |
2578 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2579 | else | |
2580 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2581 | fi | |
a0b9e27f | 2582 | |
10f2d63a | 2583 | else |
a0b9e27f | 2584 | |
10f2d63a VZ |
2585 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2586 | if test "x$LINE" != x ; then | |
2587 | eval "DEFAULT_$LINE" | |
2588 | else | |
2589 | no_cache=1 | |
2590 | fi | |
2591 | ||
2592 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
a0b9e27f MB |
2593 | |
2594 | fi | |
10f2d63a VZ |
2595 | |
2596 | ||
2597 | eval "$ac_cv_use_debug_flag" | |
2598 | if test "$no_cache" != 1; then | |
2599 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2600 | fi | |
2601 | ||
2602 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
a0b9e27f | 2603 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2604 | else |
a0b9e27f | 2605 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2606 | fi |
a0b9e27f | 2607 | |
10f2d63a | 2608 | |
5005acfe VZ |
2609 | enablestring= |
2610 | echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6 | |
65d8ef1e | 2611 | echo "configure:2612: checking for --${enablestring:-enable}-debug_info" >&5 |
10f2d63a VZ |
2612 | no_cache=0 |
2613 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2614 | if test "${enable_debug_info+set}" = set; then | |
2615 | enableval="$enable_debug_info" | |
a0b9e27f | 2616 | |
10f2d63a VZ |
2617 | if test "$enableval" = yes; then |
2618 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2619 | else | |
2620 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2621 | fi | |
a0b9e27f | 2622 | |
10f2d63a | 2623 | else |
a0b9e27f | 2624 | |
10f2d63a VZ |
2625 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2626 | if test "x$LINE" != x ; then | |
2627 | eval "DEFAULT_$LINE" | |
2628 | else | |
2629 | no_cache=1 | |
2630 | fi | |
2631 | ||
2632 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
a0b9e27f MB |
2633 | |
2634 | fi | |
10f2d63a VZ |
2635 | |
2636 | ||
2637 | eval "$ac_cv_use_debug_info" | |
2638 | if test "$no_cache" != 1; then | |
2639 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2640 | fi | |
2641 | ||
2642 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
a0b9e27f | 2643 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2644 | else |
a0b9e27f | 2645 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2646 | fi |
a0b9e27f | 2647 | |
10f2d63a | 2648 | |
5005acfe VZ |
2649 | enablestring= |
2650 | echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6 | |
65d8ef1e | 2651 | echo "configure:2652: checking for --${enablestring:-enable}-debug_gdb" >&5 |
10f2d63a VZ |
2652 | no_cache=0 |
2653 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2654 | if test "${enable_debug_gdb+set}" = set; then | |
2655 | enableval="$enable_debug_gdb" | |
a0b9e27f | 2656 | |
10f2d63a VZ |
2657 | if test "$enableval" = yes; then |
2658 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2659 | else | |
2660 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2661 | fi | |
a0b9e27f | 2662 | |
10f2d63a | 2663 | else |
a0b9e27f | 2664 | |
10f2d63a VZ |
2665 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2666 | if test "x$LINE" != x ; then | |
2667 | eval "DEFAULT_$LINE" | |
2668 | else | |
2669 | no_cache=1 | |
2670 | fi | |
2671 | ||
2672 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
a0b9e27f MB |
2673 | |
2674 | fi | |
10f2d63a VZ |
2675 | |
2676 | ||
2677 | eval "$ac_cv_use_debug_gdb" | |
2678 | if test "$no_cache" != 1; then | |
2679 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2680 | fi | |
2681 | ||
2682 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
a0b9e27f | 2683 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2684 | else |
a0b9e27f | 2685 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2686 | fi |
a0b9e27f | 2687 | |
10f2d63a | 2688 | |
5005acfe VZ |
2689 | enablestring= |
2690 | echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6 | |
65d8ef1e | 2691 | echo "configure:2692: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
10f2d63a VZ |
2692 | no_cache=0 |
2693 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2694 | if test "${enable_debug_cntxt+set}" = set; then | |
2695 | enableval="$enable_debug_cntxt" | |
a0b9e27f | 2696 | |
10f2d63a VZ |
2697 | if test "$enableval" = yes; then |
2698 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2699 | else | |
2700 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2701 | fi | |
a0b9e27f | 2702 | |
10f2d63a | 2703 | else |
a0b9e27f | 2704 | |
10f2d63a VZ |
2705 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2706 | if test "x$LINE" != x ; then | |
2707 | eval "DEFAULT_$LINE" | |
2708 | else | |
2709 | no_cache=1 | |
2710 | fi | |
2711 | ||
2712 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
a0b9e27f MB |
2713 | |
2714 | fi | |
10f2d63a VZ |
2715 | |
2716 | ||
2717 | eval "$ac_cv_use_debug_cntxt" | |
2718 | if test "$no_cache" != 1; then | |
2719 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2720 | fi | |
2721 | ||
2722 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
a0b9e27f | 2723 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2724 | else |
a0b9e27f | 2725 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2726 | fi |
a0b9e27f | 2727 | |
10f2d63a | 2728 | |
5005acfe VZ |
2729 | enablestring= |
2730 | echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6 | |
65d8ef1e | 2731 | echo "configure:2732: checking for --${enablestring:-enable}-mem_tracing" >&5 |
10f2d63a VZ |
2732 | no_cache=0 |
2733 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2734 | if test "${enable_mem_tracing+set}" = set; then | |
2735 | enableval="$enable_mem_tracing" | |
a0b9e27f | 2736 | |
10f2d63a VZ |
2737 | if test "$enableval" = yes; then |
2738 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2739 | else | |
2740 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2741 | fi | |
a0b9e27f | 2742 | |
10f2d63a | 2743 | else |
a0b9e27f | 2744 | |
10f2d63a VZ |
2745 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2746 | if test "x$LINE" != x ; then | |
2747 | eval "DEFAULT_$LINE" | |
2748 | else | |
2749 | no_cache=1 | |
2750 | fi | |
2751 | ||
2752 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
a0b9e27f MB |
2753 | |
2754 | fi | |
10f2d63a VZ |
2755 | |
2756 | ||
2757 | eval "$ac_cv_use_mem_tracing" | |
2758 | if test "$no_cache" != 1; then | |
2759 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2760 | fi | |
2761 | ||
2762 | if test "$wxUSE_MEM_TRACING" = yes; then | |
a0b9e27f | 2763 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2764 | else |
a0b9e27f | 2765 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2766 | fi |
a0b9e27f | 2767 | |
10f2d63a | 2768 | |
5005acfe VZ |
2769 | enablestring= |
2770 | echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6 | |
65d8ef1e | 2771 | echo "configure:2772: checking for --${enablestring:-enable}-profile" >&5 |
10f2d63a VZ |
2772 | no_cache=0 |
2773 | # Check whether --enable-profile or --disable-profile was given. | |
2774 | if test "${enable_profile+set}" = set; then | |
2775 | enableval="$enable_profile" | |
a0b9e27f | 2776 | |
10f2d63a VZ |
2777 | if test "$enableval" = yes; then |
2778 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2779 | else | |
2780 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2781 | fi | |
a0b9e27f | 2782 | |
10f2d63a | 2783 | else |
a0b9e27f | 2784 | |
10f2d63a VZ |
2785 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2786 | if test "x$LINE" != x ; then | |
2787 | eval "DEFAULT_$LINE" | |
2788 | else | |
2789 | no_cache=1 | |
2790 | fi | |
2791 | ||
2792 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
a0b9e27f MB |
2793 | |
2794 | fi | |
10f2d63a VZ |
2795 | |
2796 | ||
2797 | eval "$ac_cv_use_profile" | |
2798 | if test "$no_cache" != 1; then | |
2799 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2800 | fi | |
2801 | ||
2802 | if test "$wxUSE_PROFILE" = yes; then | |
a0b9e27f | 2803 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2804 | else |
a0b9e27f | 2805 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2806 | fi |
a0b9e27f | 2807 | |
10f2d63a | 2808 | |
5005acfe VZ |
2809 | enablestring= |
2810 | echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6 | |
65d8ef1e | 2811 | echo "configure:2812: checking for --${enablestring:-enable}-no_rtti" >&5 |
10f2d63a VZ |
2812 | no_cache=0 |
2813 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2814 | if test "${enable_no_rtti+set}" = set; then | |
2815 | enableval="$enable_no_rtti" | |
a0b9e27f | 2816 | |
10f2d63a VZ |
2817 | if test "$enableval" = yes; then |
2818 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2819 | else | |
2820 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2821 | fi | |
a0b9e27f | 2822 | |
10f2d63a | 2823 | else |
a0b9e27f | 2824 | |
10f2d63a VZ |
2825 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2826 | if test "x$LINE" != x ; then | |
2827 | eval "DEFAULT_$LINE" | |
2828 | else | |
2829 | no_cache=1 | |
2830 | fi | |
2831 | ||
2832 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
a0b9e27f MB |
2833 | |
2834 | fi | |
10f2d63a VZ |
2835 | |
2836 | ||
2837 | eval "$ac_cv_use_no_rtti" | |
2838 | if test "$no_cache" != 1; then | |
2839 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2840 | fi | |
2841 | ||
2842 | if test "$wxUSE_NO_RTTI" = yes; then | |
a0b9e27f | 2843 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2844 | else |
a0b9e27f | 2845 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2846 | fi |
a0b9e27f | 2847 | |
10f2d63a | 2848 | |
5005acfe VZ |
2849 | enablestring= |
2850 | echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6 | |
65d8ef1e | 2851 | echo "configure:2852: checking for --${enablestring:-enable}-no_exceptions" >&5 |
10f2d63a VZ |
2852 | no_cache=0 |
2853 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2854 | if test "${enable_no_exceptions+set}" = set; then | |
2855 | enableval="$enable_no_exceptions" | |
a0b9e27f | 2856 | |
10f2d63a VZ |
2857 | if test "$enableval" = yes; then |
2858 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2859 | else | |
2860 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2861 | fi | |
a0b9e27f | 2862 | |
10f2d63a | 2863 | else |
a0b9e27f | 2864 | |
10f2d63a VZ |
2865 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2866 | if test "x$LINE" != x ; then | |
2867 | eval "DEFAULT_$LINE" | |
2868 | else | |
2869 | no_cache=1 | |
2870 | fi | |
2871 | ||
2872 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
a0b9e27f MB |
2873 | |
2874 | fi | |
10f2d63a VZ |
2875 | |
2876 | ||
2877 | eval "$ac_cv_use_no_exceptions" | |
2878 | if test "$no_cache" != 1; then | |
2879 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2880 | fi | |
2881 | ||
2882 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
a0b9e27f | 2883 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2884 | else |
a0b9e27f | 2885 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2886 | fi |
a0b9e27f | 2887 | |
10f2d63a | 2888 | |
5005acfe VZ |
2889 | enablestring= |
2890 | echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6 | |
65d8ef1e | 2891 | echo "configure:2892: checking for --${enablestring:-enable}-permissive" >&5 |
10f2d63a VZ |
2892 | no_cache=0 |
2893 | # Check whether --enable-permissive or --disable-permissive was given. | |
2894 | if test "${enable_permissive+set}" = set; then | |
2895 | enableval="$enable_permissive" | |
a0b9e27f | 2896 | |
10f2d63a VZ |
2897 | if test "$enableval" = yes; then |
2898 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2899 | else | |
2900 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2901 | fi | |
a0b9e27f | 2902 | |
10f2d63a | 2903 | else |
a0b9e27f | 2904 | |
10f2d63a VZ |
2905 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2906 | if test "x$LINE" != x ; then | |
2907 | eval "DEFAULT_$LINE" | |
2908 | else | |
2909 | no_cache=1 | |
2910 | fi | |
2911 | ||
2912 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
a0b9e27f MB |
2913 | |
2914 | fi | |
10f2d63a VZ |
2915 | |
2916 | ||
2917 | eval "$ac_cv_use_permissive" | |
2918 | if test "$no_cache" != 1; then | |
2919 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2920 | fi | |
2921 | ||
2922 | if test "$wxUSE_PERMISSIVE" = yes; then | |
a0b9e27f | 2923 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2924 | else |
a0b9e27f | 2925 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2926 | fi |
a0b9e27f | 2927 | |
10f2d63a | 2928 | |
5005acfe VZ |
2929 | enablestring= |
2930 | echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6 | |
65d8ef1e | 2931 | echo "configure:2932: checking for --${enablestring:-enable}-no_deps" >&5 |
10f2d63a VZ |
2932 | no_cache=0 |
2933 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2934 | if test "${enable_no_deps+set}" = set; then | |
2935 | enableval="$enable_no_deps" | |
a0b9e27f | 2936 | |
10f2d63a VZ |
2937 | if test "$enableval" = yes; then |
2938 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2939 | else | |
2940 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2941 | fi | |
a0b9e27f | 2942 | |
10f2d63a | 2943 | else |
a0b9e27f | 2944 | |
10f2d63a VZ |
2945 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2946 | if test "x$LINE" != x ; then | |
2947 | eval "DEFAULT_$LINE" | |
2948 | else | |
2949 | no_cache=1 | |
2950 | fi | |
2951 | ||
2952 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
a0b9e27f MB |
2953 | |
2954 | fi | |
10f2d63a VZ |
2955 | |
2956 | ||
2957 | eval "$ac_cv_use_no_deps" | |
2958 | if test "$no_cache" != 1; then | |
2959 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2960 | fi | |
2961 | ||
2962 | if test "$wxUSE_NO_DEPS" = yes; then | |
a0b9e27f | 2963 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2964 | else |
a0b9e27f | 2965 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2966 | fi |
a0b9e27f | 2967 | |
52127426 | 2968 | |
8284b0c5 | 2969 | |
5005acfe VZ |
2970 | enablestring= |
2971 | echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6 | |
65d8ef1e | 2972 | echo "configure:2973: checking for --${enablestring:-enable}-compat20" >&5 |
54276ccf VZ |
2973 | no_cache=0 |
2974 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2975 | if test "${enable_compat20+set}" = set; then | |
2976 | enableval="$enable_compat20" | |
a0b9e27f | 2977 | |
54276ccf VZ |
2978 | if test "$enableval" = yes; then |
2979 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2980 | else | |
2981 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2982 | fi | |
a0b9e27f | 2983 | |
54276ccf | 2984 | else |
a0b9e27f | 2985 | |
54276ccf VZ |
2986 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
2987 | if test "x$LINE" != x ; then | |
2988 | eval "DEFAULT_$LINE" | |
2989 | else | |
2990 | no_cache=1 | |
2991 | fi | |
2992 | ||
2993 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
a0b9e27f MB |
2994 | |
2995 | fi | |
54276ccf VZ |
2996 | |
2997 | ||
2998 | eval "$ac_cv_use_compat20" | |
2999 | if test "$no_cache" != 1; then | |
3000 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3001 | fi | |
3002 | ||
3003 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
a0b9e27f | 3004 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3005 | else |
a0b9e27f | 3006 | echo "$ac_t""no" 1>&6 |
54276ccf | 3007 | fi |
a0b9e27f | 3008 | |
54276ccf | 3009 | |
65d8ef1e | 3010 | enablestring= |
5005acfe | 3011 | echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6 |
65d8ef1e | 3012 | echo "configure:3013: checking for --${enablestring:-enable}-compat22" >&5 |
54276ccf VZ |
3013 | no_cache=0 |
3014 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3015 | if test "${enable_compat22+set}" = set; then | |
3016 | enableval="$enable_compat22" | |
a0b9e27f | 3017 | |
54276ccf VZ |
3018 | if test "$enableval" = yes; then |
3019 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3020 | else | |
3021 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3022 | fi | |
a0b9e27f | 3023 | |
54276ccf | 3024 | else |
a0b9e27f | 3025 | |
54276ccf VZ |
3026 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3027 | if test "x$LINE" != x ; then | |
3028 | eval "DEFAULT_$LINE" | |
3029 | else | |
3030 | no_cache=1 | |
3031 | fi | |
3032 | ||
3033 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
a0b9e27f MB |
3034 | |
3035 | fi | |
54276ccf VZ |
3036 | |
3037 | ||
3038 | eval "$ac_cv_use_compat22" | |
3039 | if test "$no_cache" != 1; then | |
3040 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3041 | fi | |
3042 | ||
3043 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
a0b9e27f | 3044 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3045 | else |
a0b9e27f | 3046 | echo "$ac_t""no" 1>&6 |
54276ccf | 3047 | fi |
a0b9e27f | 3048 | |
54276ccf | 3049 | |
65d8ef1e VS |
3050 | enablestring=disable |
3051 | echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6 | |
3052 | echo "configure:3053: checking for --${enablestring:-enable}-compat24" >&5 | |
3053 | no_cache=0 | |
3054 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
3055 | if test "${enable_compat24+set}" = set; then | |
3056 | enableval="$enable_compat24" | |
3057 | ||
3058 | if test "$enableval" = yes; then | |
3059 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
3060 | else | |
3061 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
3062 | fi | |
3063 | ||
3064 | else | |
3065 | ||
3066 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
3067 | if test "x$LINE" != x ; then | |
3068 | eval "DEFAULT_$LINE" | |
3069 | else | |
3070 | no_cache=1 | |
3071 | fi | |
3072 | ||
3073 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
3074 | ||
3075 | fi | |
3076 | ||
3077 | ||
3078 | eval "$ac_cv_use_compat24" | |
3079 | if test "$no_cache" != 1; then | |
3080 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
3081 | fi | |
3082 | ||
3083 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
3084 | echo "$ac_t""yes" 1>&6 | |
3085 | else | |
3086 | echo "$ac_t""no" 1>&6 | |
3087 | fi | |
3088 | ||
3089 | ||
3bd8fb5f RD |
3090 | # Check whether --enable-rpath or --disable-rpath was given. |
3091 | if test "${enable_rpath+set}" = set; then | |
3092 | enableval="$enable_rpath" | |
3093 | wxRPATH_DIR="$enableval" | |
a0b9e27f MB |
3094 | fi |
3095 | ||
3bd8fb5f RD |
3096 | |
3097 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3098 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3099 | fi | |
3100 | ||
8284b0c5 MB |
3101 | |
3102 | ||
3103 | ||
5005acfe VZ |
3104 | enablestring= |
3105 | echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6 | |
65d8ef1e | 3106 | echo "configure:3107: checking for --${enablestring:-enable}-intl" >&5 |
10f2d63a VZ |
3107 | no_cache=0 |
3108 | # Check whether --enable-intl or --disable-intl was given. | |
3109 | if test "${enable_intl+set}" = set; then | |
3110 | enableval="$enable_intl" | |
a0b9e27f | 3111 | |
10f2d63a VZ |
3112 | if test "$enableval" = yes; then |
3113 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3114 | else | |
3115 | ac_cv_use_intl='wxUSE_INTL=no' | |
3116 | fi | |
a0b9e27f | 3117 | |
10f2d63a | 3118 | else |
a0b9e27f | 3119 | |
10f2d63a VZ |
3120 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3121 | if test "x$LINE" != x ; then | |
3122 | eval "DEFAULT_$LINE" | |
3123 | else | |
3124 | no_cache=1 | |
3125 | fi | |
3126 | ||
3127 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
a0b9e27f MB |
3128 | |
3129 | fi | |
10f2d63a VZ |
3130 | |
3131 | ||
3132 | eval "$ac_cv_use_intl" | |
3133 | if test "$no_cache" != 1; then | |
3134 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3135 | fi | |
3136 | ||
3137 | if test "$wxUSE_INTL" = yes; then | |
a0b9e27f | 3138 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3139 | else |
a0b9e27f | 3140 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3141 | fi |
a0b9e27f | 3142 | |
10f2d63a | 3143 | |
5005acfe VZ |
3144 | enablestring= |
3145 | echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6 | |
65d8ef1e | 3146 | echo "configure:3147: checking for --${enablestring:-enable}-config" >&5 |
10f2d63a VZ |
3147 | no_cache=0 |
3148 | # Check whether --enable-config or --disable-config was given. | |
3149 | if test "${enable_config+set}" = set; then | |
3150 | enableval="$enable_config" | |
a0b9e27f | 3151 | |
10f2d63a VZ |
3152 | if test "$enableval" = yes; then |
3153 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3154 | else | |
3155 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3156 | fi | |
a0b9e27f | 3157 | |
10f2d63a | 3158 | else |
a0b9e27f | 3159 | |
10f2d63a VZ |
3160 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3161 | if test "x$LINE" != x ; then | |
3162 | eval "DEFAULT_$LINE" | |
3163 | else | |
3164 | no_cache=1 | |
3165 | fi | |
3166 | ||
3167 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
a0b9e27f MB |
3168 | |
3169 | fi | |
10f2d63a VZ |
3170 | |
3171 | ||
3172 | eval "$ac_cv_use_config" | |
3173 | if test "$no_cache" != 1; then | |
3174 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3175 | fi | |
3176 | ||
3177 | if test "$wxUSE_CONFIG" = yes; then | |
a0b9e27f | 3178 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3179 | else |
a0b9e27f | 3180 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3181 | fi |
a0b9e27f | 3182 | |
52127426 | 3183 | |
8284b0c5 | 3184 | |
5005acfe VZ |
3185 | enablestring= |
3186 | echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6 | |
65d8ef1e | 3187 | echo "configure:3188: checking for --${enablestring:-enable}-protocols" >&5 |
a1622950 VZ |
3188 | no_cache=0 |
3189 | # Check whether --enable-protocols or --disable-protocols was given. | |
3190 | if test "${enable_protocols+set}" = set; then | |
3191 | enableval="$enable_protocols" | |
a0b9e27f | 3192 | |
a1622950 VZ |
3193 | if test "$enableval" = yes; then |
3194 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3195 | else | |
3196 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3197 | fi | |
a0b9e27f | 3198 | |
a1622950 | 3199 | else |
a0b9e27f | 3200 | |
a1622950 VZ |
3201 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3202 | if test "x$LINE" != x ; then | |
3203 | eval "DEFAULT_$LINE" | |
3204 | else | |
3205 | no_cache=1 | |
3206 | fi | |
3207 | ||
3208 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
3209 | |
3210 | fi | |
a1622950 VZ |
3211 | |
3212 | ||
3213 | eval "$ac_cv_use_protocols" | |
3214 | if test "$no_cache" != 1; then | |
3215 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3216 | fi | |
3217 | ||
3218 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 3219 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3220 | else |
a0b9e27f | 3221 | echo "$ac_t""no" 1>&6 |
a1622950 | 3222 | fi |
a0b9e27f | 3223 | |
a1622950 | 3224 | |
5005acfe VZ |
3225 | enablestring= |
3226 | echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6 | |
65d8ef1e | 3227 | echo "configure:3228: checking for --${enablestring:-enable}-ftp" >&5 |
a1622950 VZ |
3228 | no_cache=0 |
3229 | # Check whether --enable-ftp or --disable-ftp was given. | |
3230 | if test "${enable_ftp+set}" = set; then | |
3231 | enableval="$enable_ftp" | |
a0b9e27f | 3232 | |
a1622950 VZ |
3233 | if test "$enableval" = yes; then |
3234 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3235 | else | |
3236 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3237 | fi | |
a0b9e27f | 3238 | |
a1622950 | 3239 | else |
a0b9e27f | 3240 | |
a1622950 VZ |
3241 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3242 | if test "x$LINE" != x ; then | |
3243 | eval "DEFAULT_$LINE" | |
3244 | else | |
3245 | no_cache=1 | |
3246 | fi | |
3247 | ||
3248 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
3249 | |
3250 | fi | |
a1622950 VZ |
3251 | |
3252 | ||
3253 | eval "$ac_cv_use_ftp" | |
3254 | if test "$no_cache" != 1; then | |
3255 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3256 | fi | |
3257 | ||
3258 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 3259 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3260 | else |
a0b9e27f | 3261 | echo "$ac_t""no" 1>&6 |
a1622950 | 3262 | fi |
a0b9e27f | 3263 | |
a1622950 | 3264 | |
5005acfe VZ |
3265 | enablestring= |
3266 | echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6 | |
65d8ef1e | 3267 | echo "configure:3268: checking for --${enablestring:-enable}-http" >&5 |
a1622950 VZ |
3268 | no_cache=0 |
3269 | # Check whether --enable-http or --disable-http was given. | |
3270 | if test "${enable_http+set}" = set; then | |
3271 | enableval="$enable_http" | |
a0b9e27f | 3272 | |
a1622950 VZ |
3273 | if test "$enableval" = yes; then |
3274 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3275 | else | |
3276 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3277 | fi | |
a0b9e27f | 3278 | |
a1622950 | 3279 | else |
a0b9e27f | 3280 | |
a1622950 VZ |
3281 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3282 | if test "x$LINE" != x ; then | |
3283 | eval "DEFAULT_$LINE" | |
3284 | else | |
3285 | no_cache=1 | |
3286 | fi | |
3287 | ||
3288 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
3289 | |
3290 | fi | |
a1622950 VZ |
3291 | |
3292 | ||
3293 | eval "$ac_cv_use_http" | |
3294 | if test "$no_cache" != 1; then | |
3295 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3296 | fi | |
3297 | ||
3298 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 3299 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3300 | else |
a0b9e27f | 3301 | echo "$ac_t""no" 1>&6 |
a1622950 | 3302 | fi |
a0b9e27f | 3303 | |
a1622950 | 3304 | |
5005acfe VZ |
3305 | enablestring= |
3306 | echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6 | |
65d8ef1e | 3307 | echo "configure:3308: checking for --${enablestring:-enable}-fileproto" >&5 |
a1622950 VZ |
3308 | no_cache=0 |
3309 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3310 | if test "${enable_fileproto+set}" = set; then | |
3311 | enableval="$enable_fileproto" | |
a0b9e27f | 3312 | |
a1622950 VZ |
3313 | if test "$enableval" = yes; then |
3314 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3315 | else | |
3316 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3317 | fi | |
a0b9e27f | 3318 | |
a1622950 | 3319 | else |
a0b9e27f | 3320 | |
a1622950 VZ |
3321 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
3322 | if test "x$LINE" != x ; then | |
3323 | eval "DEFAULT_$LINE" | |
3324 | else | |
3325 | no_cache=1 | |
3326 | fi | |
3327 | ||
3328 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
3329 | |
3330 | fi | |
a1622950 VZ |
3331 | |
3332 | ||
3333 | eval "$ac_cv_use_fileproto" | |
3334 | if test "$no_cache" != 1; then | |
3335 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3336 | fi | |
3337 | ||
3338 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 3339 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3340 | else |
a0b9e27f | 3341 | echo "$ac_t""no" 1>&6 |
a1622950 | 3342 | fi |
a0b9e27f | 3343 | |
a1622950 | 3344 | |
5005acfe VZ |
3345 | enablestring= |
3346 | echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6 | |
65d8ef1e | 3347 | echo "configure:3348: checking for --${enablestring:-enable}-sockets" >&5 |
10f2d63a VZ |
3348 | no_cache=0 |
3349 | # Check whether --enable-sockets or --disable-sockets was given. | |
3350 | if test "${enable_sockets+set}" = set; then | |
3351 | enableval="$enable_sockets" | |
a0b9e27f | 3352 | |
10f2d63a VZ |
3353 | if test "$enableval" = yes; then |
3354 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3355 | else | |
3356 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3357 | fi | |
a0b9e27f | 3358 | |
10f2d63a | 3359 | else |
a0b9e27f | 3360 | |
10f2d63a VZ |
3361 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3362 | if test "x$LINE" != x ; then | |
3363 | eval "DEFAULT_$LINE" | |
3364 | else | |
3365 | no_cache=1 | |
3366 | fi | |
3367 | ||
3368 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
a0b9e27f MB |
3369 | |
3370 | fi | |
10f2d63a VZ |
3371 | |
3372 | ||
3373 | eval "$ac_cv_use_sockets" | |
3374 | if test "$no_cache" != 1; then | |
3375 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3376 | fi | |
3377 | ||
3378 | if test "$wxUSE_SOCKETS" = yes; then | |
a0b9e27f | 3379 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3380 | else |
a0b9e27f | 3381 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3382 | fi |
a0b9e27f | 3383 | |
8284b0c5 | 3384 | |
5005acfe VZ |
3385 | enablestring= |
3386 | echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6 | |
65d8ef1e | 3387 | echo "configure:3388: checking for --${enablestring:-enable}-ole" >&5 |
3bce6687 JS |
3388 | no_cache=0 |
3389 | # Check whether --enable-ole or --disable-ole was given. | |
3390 | if test "${enable_ole+set}" = set; then | |
3391 | enableval="$enable_ole" | |
3392 | ||
3393 | if test "$enableval" = yes; then | |
3394 | ac_cv_use_ole='wxUSE_OLE=yes' | |
3395 | else | |
3396 | ac_cv_use_ole='wxUSE_OLE=no' | |
3397 | fi | |
3398 | ||
3399 | else | |
3400 | ||
3401 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
3402 | if test "x$LINE" != x ; then | |
3403 | eval "DEFAULT_$LINE" | |
3404 | else | |
3405 | no_cache=1 | |
3406 | fi | |
3407 | ||
3408 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3409 | ||
3410 | fi | |
3411 | ||
3412 | ||
3413 | eval "$ac_cv_use_ole" | |
3414 | if test "$no_cache" != 1; then | |
3415 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
3416 | fi | |
3417 | ||
3418 | if test "$wxUSE_OLE" = yes; then | |
3419 | echo "$ac_t""yes" 1>&6 | |
3420 | else | |
3421 | echo "$ac_t""no" 1>&6 | |
3422 | fi | |
3423 | ||
3424 | ||
5005acfe VZ |
3425 | enablestring= |
3426 | echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6 | |
65d8ef1e | 3427 | echo "configure:3428: checking for --${enablestring:-enable}-dataobj" >&5 |
3bce6687 JS |
3428 | no_cache=0 |
3429 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
3430 | if test "${enable_dataobj+set}" = set; then | |
3431 | enableval="$enable_dataobj" | |
3432 | ||
3433 | if test "$enableval" = yes; then | |
3434 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
3435 | else | |
3436 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
3437 | fi | |
3438 | ||
3439 | else | |
3440 | ||
3441 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
3442 | if test "x$LINE" != x ; then | |
3443 | eval "DEFAULT_$LINE" | |
3444 | else | |
3445 | no_cache=1 | |
3446 | fi | |
3447 | ||
3448 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3449 | ||
3450 | fi | |
3451 | ||
3452 | ||
3453 | eval "$ac_cv_use_dataobj" | |
3454 | if test "$no_cache" != 1; then | |
3455 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
3456 | fi | |
3457 | ||
3458 | if test "$wxUSE_DATAOBJ" = yes; then | |
3459 | echo "$ac_t""yes" 1>&6 | |
3460 | else | |
3461 | echo "$ac_t""no" 1>&6 | |
3462 | fi | |
3463 | ||
3464 | ||
52127426 | 3465 | |
5005acfe VZ |
3466 | enablestring= |
3467 | echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6 | |
65d8ef1e | 3468 | echo "configure:3469: checking for --${enablestring:-enable}-ipc" >&5 |
10f2d63a | 3469 | no_cache=0 |
eb4efbdc VZ |
3470 | # Check whether --enable-ipc or --disable-ipc was given. |
3471 | if test "${enable_ipc+set}" = set; then | |
3472 | enableval="$enable_ipc" | |
a0b9e27f | 3473 | |
10f2d63a | 3474 | if test "$enableval" = yes; then |
eb4efbdc | 3475 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3476 | else |
eb4efbdc | 3477 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3478 | fi |
a0b9e27f | 3479 | |
10f2d63a | 3480 | else |
a0b9e27f | 3481 | |
eb4efbdc | 3482 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3483 | if test "x$LINE" != x ; then |
3484 | eval "DEFAULT_$LINE" | |
3485 | else | |
3486 | no_cache=1 | |
3487 | fi | |
3488 | ||
eb4efbdc | 3489 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
a0b9e27f MB |
3490 | |
3491 | fi | |
10f2d63a VZ |
3492 | |
3493 | ||
eb4efbdc | 3494 | eval "$ac_cv_use_ipc" |
10f2d63a | 3495 | if test "$no_cache" != 1; then |
eb4efbdc | 3496 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3497 | fi |
3498 | ||
eb4efbdc | 3499 | if test "$wxUSE_IPC" = yes; then |
a0b9e27f | 3500 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3501 | else |
a0b9e27f | 3502 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3503 | fi |
a0b9e27f | 3504 | |
52127426 | 3505 | |
8284b0c5 | 3506 | |
5005acfe VZ |
3507 | enablestring= |
3508 | echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6 | |
65d8ef1e | 3509 | echo "configure:3510: checking for --${enablestring:-enable}-cmdline" >&5 |
1e6feb95 VZ |
3510 | no_cache=0 |
3511 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3512 | if test "${enable_cmdline+set}" = set; then | |
3513 | enableval="$enable_cmdline" | |
a0b9e27f | 3514 | |
1e6feb95 VZ |
3515 | if test "$enableval" = yes; then |
3516 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3517 | else | |
3518 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3519 | fi | |
a0b9e27f | 3520 | |
1e6feb95 | 3521 | else |
a0b9e27f | 3522 | |
1e6feb95 VZ |
3523 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
3524 | if test "x$LINE" != x ; then | |
3525 | eval "DEFAULT_$LINE" | |
3526 | else | |
3527 | no_cache=1 | |
3528 | fi | |
3529 | ||
3530 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
a0b9e27f MB |
3531 | |
3532 | fi | |
1e6feb95 VZ |
3533 | |
3534 | ||
3535 | eval "$ac_cv_use_cmdline" | |
3536 | if test "$no_cache" != 1; then | |
3537 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3538 | fi | |
3539 | ||
3540 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
a0b9e27f | 3541 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3542 | else |
a0b9e27f | 3543 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3544 | fi |
a0b9e27f | 3545 | |
1e6feb95 | 3546 | |
5005acfe VZ |
3547 | enablestring= |
3548 | echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6 | |
65d8ef1e | 3549 | echo "configure:3550: checking for --${enablestring:-enable}-datetime" >&5 |
1e6feb95 VZ |
3550 | no_cache=0 |
3551 | # Check whether --enable-datetime or --disable-datetime was given. | |
3552 | if test "${enable_datetime+set}" = set; then | |
3553 | enableval="$enable_datetime" | |
a0b9e27f | 3554 | |
1e6feb95 VZ |
3555 | if test "$enableval" = yes; then |
3556 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3557 | else | |
3558 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3559 | fi | |
a0b9e27f | 3560 | |
1e6feb95 | 3561 | else |
a0b9e27f | 3562 | |
1e6feb95 VZ |
3563 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
3564 | if test "x$LINE" != x ; then | |
3565 | eval "DEFAULT_$LINE" | |
3566 | else | |
3567 | no_cache=1 | |
3568 | fi | |
3569 | ||
3570 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
a0b9e27f MB |
3571 | |
3572 | fi | |
1e6feb95 VZ |
3573 | |
3574 | ||
3575 | eval "$ac_cv_use_datetime" | |
3576 | if test "$no_cache" != 1; then | |
3577 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3578 | fi | |
3579 | ||
3580 | if test "$wxUSE_DATETIME" = yes; then | |
a0b9e27f | 3581 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3582 | else |
a0b9e27f | 3583 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3584 | fi |
a0b9e27f | 3585 | |
1e6feb95 | 3586 | |
5005acfe VZ |
3587 | enablestring= |
3588 | echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6 | |
65d8ef1e | 3589 | echo "configure:3590: checking for --${enablestring:-enable}-timedate" >&5 |
1e6feb95 VZ |
3590 | no_cache=0 |
3591 | # Check whether --enable-timedate or --disable-timedate was given. | |
3592 | if test "${enable_timedate+set}" = set; then | |
3593 | enableval="$enable_timedate" | |
a0b9e27f | 3594 | |
1e6feb95 VZ |
3595 | if test "$enableval" = yes; then |
3596 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3597 | else | |
3598 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3599 | fi | |
a0b9e27f | 3600 | |
1e6feb95 | 3601 | else |
a0b9e27f | 3602 | |
1e6feb95 VZ |
3603 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` |
3604 | if test "x$LINE" != x ; then | |
3605 | eval "DEFAULT_$LINE" | |
3606 | else | |
3607 | no_cache=1 | |
3608 | fi | |
3609 | ||
3610 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
a0b9e27f MB |
3611 | |
3612 | fi | |
1e6feb95 VZ |
3613 | |
3614 | ||
3615 | eval "$ac_cv_use_timedate" | |
3616 | if test "$no_cache" != 1; then | |
3617 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3618 | fi | |
3619 | ||
3620 | if test "$wxUSE_TIMEDATE" = yes; then | |
a0b9e27f | 3621 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3622 | else |
a0b9e27f | 3623 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3624 | fi |
a0b9e27f | 3625 | |
1e6feb95 | 3626 | |
5005acfe VZ |
3627 | enablestring= |
3628 | echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6 | |
65d8ef1e | 3629 | echo "configure:3630: checking for --${enablestring:-enable}-stopwatch" >&5 |
1e6feb95 VZ |
3630 | no_cache=0 |
3631 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3632 | if test "${enable_stopwatch+set}" = set; then | |
3633 | enableval="$enable_stopwatch" | |
a0b9e27f | 3634 | |
1e6feb95 VZ |
3635 | if test "$enableval" = yes; then |
3636 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3637 | else | |
3638 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3639 | fi | |
a0b9e27f | 3640 | |
1e6feb95 | 3641 | else |
a0b9e27f | 3642 | |
1e6feb95 VZ |
3643 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
3644 | if test "x$LINE" != x ; then | |
3645 | eval "DEFAULT_$LINE" | |
3646 | else | |
3647 | no_cache=1 | |
3648 | fi | |
3649 | ||
3650 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
a0b9e27f MB |
3651 | |
3652 | fi | |
1e6feb95 VZ |
3653 | |
3654 | ||
3655 | eval "$ac_cv_use_stopwatch" | |
3656 | if test "$no_cache" != 1; then | |
3657 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3658 | fi | |
3659 | ||
3660 | if test "$wxUSE_STOPWATCH" = yes; then | |
a0b9e27f | 3661 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3662 | else |
a0b9e27f | 3663 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3664 | fi |
a0b9e27f | 3665 | |
1e6feb95 | 3666 | |
5005acfe VZ |
3667 | enablestring= |
3668 | echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6 | |
65d8ef1e | 3669 | echo "configure:3670: checking for --${enablestring:-enable}-dialupman" >&5 |
10f2d63a | 3670 | no_cache=0 |
eb4efbdc VZ |
3671 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3672 | if test "${enable_dialupman+set}" = set; then | |
3673 | enableval="$enable_dialupman" | |
a0b9e27f | 3674 | |
10f2d63a | 3675 | if test "$enableval" = yes; then |
eb4efbdc | 3676 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3677 | else |
eb4efbdc | 3678 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3679 | fi |
a0b9e27f | 3680 | |
10f2d63a | 3681 | else |
a0b9e27f | 3682 | |
eb4efbdc | 3683 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3684 | if test "x$LINE" != x ; then |
3685 | eval "DEFAULT_$LINE" | |
3686 | else | |
3687 | no_cache=1 | |
3688 | fi | |
3689 | ||
eb4efbdc | 3690 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
a0b9e27f MB |
3691 | |
3692 | fi | |
10f2d63a VZ |
3693 | |
3694 | ||
eb4efbdc | 3695 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3696 | if test "$no_cache" != 1; then |
eb4efbdc | 3697 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3698 | fi |
3699 | ||
eb4efbdc | 3700 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
a0b9e27f | 3701 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3702 | else |
a0b9e27f | 3703 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3704 | fi |
a0b9e27f | 3705 | |
10f2d63a | 3706 | |
5005acfe VZ |
3707 | enablestring= |
3708 | echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6 | |
65d8ef1e | 3709 | echo "configure:3710: checking for --${enablestring:-enable}-apple_ieee" >&5 |
10f2d63a VZ |
3710 | no_cache=0 |
3711 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3712 | if test "${enable_apple_ieee+set}" = set; then | |
3713 | enableval="$enable_apple_ieee" | |
a0b9e27f | 3714 | |
10f2d63a VZ |
3715 | if test "$enableval" = yes; then |
3716 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3717 | else | |
3718 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3719 | fi | |
a0b9e27f | 3720 | |
10f2d63a | 3721 | else |
a0b9e27f | 3722 | |
10f2d63a VZ |
3723 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3724 | if test "x$LINE" != x ; then | |
3725 | eval "DEFAULT_$LINE" | |
3726 | else | |
3727 | no_cache=1 | |
3728 | fi | |
3729 | ||
3730 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
a0b9e27f MB |
3731 | |
3732 | fi | |
10f2d63a VZ |
3733 | |
3734 | ||
3735 | eval "$ac_cv_use_apple_ieee" | |
3736 | if test "$no_cache" != 1; then | |
3737 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3738 | fi | |
3739 | ||
3740 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
a0b9e27f | 3741 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3742 | else |
a0b9e27f | 3743 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3744 | fi |
a0b9e27f | 3745 | |
10f2d63a | 3746 | |
5005acfe VZ |
3747 | enablestring= |
3748 | echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6 | |
65d8ef1e | 3749 | echo "configure:3750: checking for --${enablestring:-enable}-timer" >&5 |
10f2d63a | 3750 | no_cache=0 |
1e6feb95 VZ |
3751 | # Check whether --enable-timer or --disable-timer was given. |
3752 | if test "${enable_timer+set}" = set; then | |
3753 | enableval="$enable_timer" | |
a0b9e27f | 3754 | |
10f2d63a | 3755 | if test "$enableval" = yes; then |
1e6feb95 | 3756 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3757 | else |
1e6feb95 | 3758 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3759 | fi |
a0b9e27f | 3760 | |
10f2d63a | 3761 | else |
a0b9e27f | 3762 | |
1e6feb95 | 3763 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3764 | if test "x$LINE" != x ; then |
3765 | eval "DEFAULT_$LINE" | |
3766 | else | |
3767 | no_cache=1 | |
3768 | fi | |
3769 | ||
1e6feb95 | 3770 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
a0b9e27f MB |
3771 | |
3772 | fi | |
10f2d63a VZ |
3773 | |
3774 | ||
1e6feb95 | 3775 | eval "$ac_cv_use_timer" |
10f2d63a | 3776 | if test "$no_cache" != 1; then |
1e6feb95 | 3777 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3778 | fi |
3779 | ||
1e6feb95 | 3780 | if test "$wxUSE_TIMER" = yes; then |
a0b9e27f | 3781 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3782 | else |
a0b9e27f | 3783 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3784 | fi |
a0b9e27f | 3785 | |
10f2d63a | 3786 | |
5005acfe VZ |
3787 | enablestring= |
3788 | echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6 | |
65d8ef1e | 3789 | echo "configure:3790: checking for --${enablestring:-enable}-wave" >&5 |
10f2d63a VZ |
3790 | no_cache=0 |
3791 | # Check whether --enable-wave or --disable-wave was given. | |
3792 | if test "${enable_wave+set}" = set; then | |
3793 | enableval="$enable_wave" | |
a0b9e27f | 3794 | |
10f2d63a VZ |
3795 | if test "$enableval" = yes; then |
3796 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3797 | else | |
3798 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3799 | fi | |
a0b9e27f | 3800 | |
10f2d63a | 3801 | else |
a0b9e27f | 3802 | |
10f2d63a VZ |
3803 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3804 | if test "x$LINE" != x ; then | |
3805 | eval "DEFAULT_$LINE" | |
3806 | else | |
3807 | no_cache=1 | |
3808 | fi | |
3809 | ||
3810 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
a0b9e27f MB |
3811 | |
3812 | fi | |
10f2d63a VZ |
3813 | |
3814 | ||
3815 | eval "$ac_cv_use_wave" | |
3816 | if test "$no_cache" != 1; then | |
3817 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3818 | fi | |
3819 | ||
3820 | if test "$wxUSE_WAVE" = yes; then | |
a0b9e27f | 3821 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3822 | else |
a0b9e27f | 3823 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3824 | fi |
a0b9e27f | 3825 | |
10f2d63a | 3826 | |
5005acfe VZ |
3827 | enablestring= |
3828 | echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6 | |
65d8ef1e | 3829 | echo "configure:3830: checking for --${enablestring:-enable}-fraction" >&5 |
10f2d63a VZ |
3830 | no_cache=0 |
3831 | # Check whether --enable-fraction or --disable-fraction was given. | |
3832 | if test "${enable_fraction+set}" = set; then | |
3833 | enableval="$enable_fraction" | |
a0b9e27f | 3834 | |
10f2d63a VZ |
3835 | if test "$enableval" = yes; then |
3836 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3837 | else | |
3838 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3839 | fi | |
a0b9e27f | 3840 | |
10f2d63a | 3841 | else |
a0b9e27f | 3842 | |
10f2d63a VZ |
3843 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3844 | if test "x$LINE" != x ; then | |
3845 | eval "DEFAULT_$LINE" | |
3846 | else | |
3847 | no_cache=1 | |
3848 | fi | |
3849 | ||
3850 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
a0b9e27f MB |
3851 | |
3852 | fi | |
10f2d63a VZ |
3853 | |
3854 | ||
3855 | eval "$ac_cv_use_fraction" | |
3856 | if test "$no_cache" != 1; then | |
3857 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3858 | fi | |
3859 | ||
3860 | if test "$wxUSE_FRACTION" = yes; then | |
a0b9e27f | 3861 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3862 | else |
a0b9e27f | 3863 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3864 | fi |
a0b9e27f | 3865 | |
10f2d63a | 3866 | |
5005acfe VZ |
3867 | enablestring= |
3868 | echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6 | |
65d8ef1e | 3869 | echo "configure:3870: checking for --${enablestring:-enable}-dynlib" >&5 |
10f2d63a VZ |
3870 | no_cache=0 |
3871 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3872 | if test "${enable_dynlib+set}" = set; then | |
3873 | enableval="$enable_dynlib" | |
a0b9e27f | 3874 | |
10f2d63a VZ |
3875 | if test "$enableval" = yes; then |
3876 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3877 | else | |
3878 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3879 | fi | |
a0b9e27f | 3880 | |
10f2d63a | 3881 | else |
a0b9e27f | 3882 | |
10f2d63a VZ |
3883 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3884 | if test "x$LINE" != x ; then | |
3885 | eval "DEFAULT_$LINE" | |
3886 | else | |
3887 | no_cache=1 | |
3888 | fi | |
3889 | ||
3890 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
a0b9e27f MB |
3891 | |
3892 | fi | |
10f2d63a VZ |
3893 | |
3894 | ||
3895 | eval "$ac_cv_use_dynlib" | |
3896 | if test "$no_cache" != 1; then | |
3897 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3898 | fi | |
3899 | ||
3900 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
a0b9e27f | 3901 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3902 | else |
a0b9e27f | 3903 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3904 | fi |
a0b9e27f | 3905 | |
10f2d63a | 3906 | |
5005acfe VZ |
3907 | enablestring= |
3908 | echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6 | |
65d8ef1e | 3909 | echo "configure:3910: checking for --${enablestring:-enable}-dynamicloader" >&5 |
0b9ab0bd RL |
3910 | no_cache=0 |
3911 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3912 | if test "${enable_dynamicloader+set}" = set; then | |
3913 | enableval="$enable_dynamicloader" | |
a0b9e27f | 3914 | |
0b9ab0bd RL |
3915 | if test "$enableval" = yes; then |
3916 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3917 | else | |
3918 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3919 | fi | |
a0b9e27f | 3920 | |
0b9ab0bd | 3921 | else |
a0b9e27f | 3922 | |
0b9ab0bd RL |
3923 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
3924 | if test "x$LINE" != x ; then | |
3925 | eval "DEFAULT_$LINE" | |
3926 | else | |
3927 | no_cache=1 | |
3928 | fi | |
3929 | ||
3930 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
a0b9e27f MB |
3931 | |
3932 | fi | |
0b9ab0bd RL |
3933 | |
3934 | ||
3935 | eval "$ac_cv_use_dynamicloader" | |
3936 | if test "$no_cache" != 1; then | |
3937 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3938 | fi | |
3939 | ||
3940 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
a0b9e27f | 3941 | echo "$ac_t""yes" 1>&6 |
0b9ab0bd | 3942 | else |
a0b9e27f | 3943 | echo "$ac_t""no" 1>&6 |
0b9ab0bd | 3944 | fi |
a0b9e27f | 3945 | |
0b9ab0bd | 3946 | |
5005acfe VZ |
3947 | enablestring= |
3948 | echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6 | |
65d8ef1e | 3949 | echo "configure:3950: checking for --${enablestring:-enable}-longlong" >&5 |
10f2d63a VZ |
3950 | no_cache=0 |
3951 | # Check whether --enable-longlong or --disable-longlong was given. | |
3952 | if test "${enable_longlong+set}" = set; then | |
3953 | enableval="$enable_longlong" | |
a0b9e27f | 3954 | |
10f2d63a VZ |
3955 | if test "$enableval" = yes; then |
3956 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3957 | else | |
3958 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3959 | fi | |
a0b9e27f | 3960 | |
10f2d63a | 3961 | else |
a0b9e27f | 3962 | |
10f2d63a VZ |
3963 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3964 | if test "x$LINE" != x ; then | |
3965 | eval "DEFAULT_$LINE" | |
3966 | else | |
3967 | no_cache=1 | |
3968 | fi | |
3969 | ||
3970 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
a0b9e27f MB |
3971 | |
3972 | fi | |
10f2d63a VZ |
3973 | |
3974 | ||
3975 | eval "$ac_cv_use_longlong" | |
3976 | if test "$no_cache" != 1; then | |
3977 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3978 | fi | |
3979 | ||
3980 | if test "$wxUSE_LONGLONG" = yes; then | |
a0b9e27f | 3981 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3982 | else |
a0b9e27f | 3983 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3984 | fi |
a0b9e27f | 3985 | |
10f2d63a | 3986 | |
5005acfe VZ |
3987 | enablestring= |
3988 | echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6 | |
65d8ef1e | 3989 | echo "configure:3990: checking for --${enablestring:-enable}-geometry" >&5 |
e8f65ba6 RR |
3990 | no_cache=0 |
3991 | # Check whether --enable-geometry or --disable-geometry was given. | |
3992 | if test "${enable_geometry+set}" = set; then | |
3993 | enableval="$enable_geometry" | |
a0b9e27f | 3994 | |
e8f65ba6 RR |
3995 | if test "$enableval" = yes; then |
3996 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3997 | else | |
3998 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3999 | fi | |
a0b9e27f | 4000 | |
e8f65ba6 | 4001 | else |
a0b9e27f | 4002 | |
e8f65ba6 RR |
4003 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
4004 | if test "x$LINE" != x ; then | |
4005 | eval "DEFAULT_$LINE" | |
4006 | else | |
4007 | no_cache=1 | |
4008 | fi | |
4009 | ||
4010 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
a0b9e27f MB |
4011 | |
4012 | fi | |
e8f65ba6 RR |
4013 | |
4014 | ||
4015 | eval "$ac_cv_use_geometry" | |
4016 | if test "$no_cache" != 1; then | |
4017 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
4018 | fi | |
4019 | ||
4020 | if test "$wxUSE_GEOMETRY" = yes; then | |
a0b9e27f | 4021 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 4022 | else |
a0b9e27f | 4023 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 4024 | fi |
a0b9e27f | 4025 | |
e8f65ba6 | 4026 | |
5005acfe VZ |
4027 | enablestring= |
4028 | echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6 | |
65d8ef1e | 4029 | echo "configure:4030: checking for --${enablestring:-enable}-log" >&5 |
10f2d63a VZ |
4030 | no_cache=0 |
4031 | # Check whether --enable-log or --disable-log was given. | |
4032 | if test "${enable_log+set}" = set; then | |
4033 | enableval="$enable_log" | |
a0b9e27f | 4034 | |
10f2d63a VZ |
4035 | if test "$enableval" = yes; then |
4036 | ac_cv_use_log='wxUSE_LOG=yes' | |
4037 | else | |
4038 | ac_cv_use_log='wxUSE_LOG=no' | |
4039 | fi | |
a0b9e27f | 4040 | |
10f2d63a | 4041 | else |
a0b9e27f | 4042 | |
10f2d63a VZ |
4043 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
4044 | if test "x$LINE" != x ; then | |
4045 | eval "DEFAULT_$LINE" | |
4046 | else | |
4047 | no_cache=1 | |
4048 | fi | |
4049 | ||
4050 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
a0b9e27f MB |
4051 | |
4052 | fi | |
10f2d63a VZ |
4053 | |
4054 | ||
4055 | eval "$ac_cv_use_log" | |
4056 | if test "$no_cache" != 1; then | |
4057 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4058 | fi | |
4059 | ||
4060 | if test "$wxUSE_LOG" = yes; then | |
a0b9e27f | 4061 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4062 | else |
a0b9e27f | 4063 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4064 | fi |
a0b9e27f | 4065 | |
10f2d63a | 4066 | |
5005acfe VZ |
4067 | enablestring= |
4068 | echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6 | |
65d8ef1e | 4069 | echo "configure:4070: checking for --${enablestring:-enable}-streams" >&5 |
10f2d63a VZ |
4070 | no_cache=0 |
4071 | # Check whether --enable-streams or --disable-streams was given. | |
4072 | if test "${enable_streams+set}" = set; then | |
4073 | enableval="$enable_streams" | |
a0b9e27f | 4074 | |
10f2d63a VZ |
4075 | if test "$enableval" = yes; then |
4076 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4077 | else | |
4078 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4079 | fi | |
a0b9e27f | 4080 | |
10f2d63a | 4081 | else |
a0b9e27f | 4082 | |
10f2d63a VZ |
4083 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
4084 | if test "x$LINE" != x ; then | |
4085 | eval "DEFAULT_$LINE" | |
4086 | else | |
4087 | no_cache=1 | |
4088 | fi | |
4089 | ||
4090 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
a0b9e27f MB |
4091 | |
4092 | fi | |
10f2d63a VZ |
4093 | |
4094 | ||
4095 | eval "$ac_cv_use_streams" | |
4096 | if test "$no_cache" != 1; then | |
4097 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4098 | fi | |
4099 | ||
4100 | if test "$wxUSE_STREAMS" = yes; then | |
a0b9e27f | 4101 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4102 | else |
a0b9e27f | 4103 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4104 | fi |
a0b9e27f | 4105 | |
10f2d63a | 4106 | |
5005acfe VZ |
4107 | enablestring= |
4108 | echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6 | |
65d8ef1e | 4109 | echo "configure:4110: checking for --${enablestring:-enable}-file" >&5 |
10f2d63a VZ |
4110 | no_cache=0 |
4111 | # Check whether --enable-file or --disable-file was given. | |
4112 | if test "${enable_file+set}" = set; then | |
4113 | enableval="$enable_file" | |
a0b9e27f | 4114 | |
10f2d63a VZ |
4115 | if test "$enableval" = yes; then |
4116 | ac_cv_use_file='wxUSE_FILE=yes' | |
4117 | else | |
4118 | ac_cv_use_file='wxUSE_FILE=no' | |
4119 | fi | |
a0b9e27f | 4120 | |
10f2d63a | 4121 | else |
a0b9e27f | 4122 | |
10f2d63a VZ |
4123 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4124 | if test "x$LINE" != x ; then | |
4125 | eval "DEFAULT_$LINE" | |
4126 | else | |
4127 | no_cache=1 | |
4128 | fi | |
4129 | ||
4130 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
a0b9e27f MB |
4131 | |
4132 | fi | |
10f2d63a VZ |
4133 | |
4134 | ||
4135 | eval "$ac_cv_use_file" | |
4136 | if test "$no_cache" != 1; then | |
4137 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4138 | fi | |
4139 | ||
4140 | if test "$wxUSE_FILE" = yes; then | |
a0b9e27f | 4141 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4142 | else |
a0b9e27f | 4143 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4144 | fi |
a0b9e27f | 4145 | |
10f2d63a | 4146 | |
5005acfe VZ |
4147 | enablestring= |
4148 | echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6 | |
65d8ef1e | 4149 | echo "configure:4150: checking for --${enablestring:-enable}-ffile" >&5 |
10f2d63a | 4150 | no_cache=0 |
1e6feb95 VZ |
4151 | # Check whether --enable-ffile or --disable-ffile was given. |
4152 | if test "${enable_ffile+set}" = set; then | |
4153 | enableval="$enable_ffile" | |
a0b9e27f | 4154 | |
10f2d63a | 4155 | if test "$enableval" = yes; then |
1e6feb95 | 4156 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4157 | else |
1e6feb95 | 4158 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4159 | fi |
a0b9e27f | 4160 | |
10f2d63a | 4161 | else |
a0b9e27f | 4162 | |
1e6feb95 | 4163 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4164 | if test "x$LINE" != x ; then |
4165 | eval "DEFAULT_$LINE" | |
4166 | else | |
4167 | no_cache=1 | |
4168 | fi | |
4169 | ||
1e6feb95 | 4170 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
a0b9e27f MB |
4171 | |
4172 | fi | |
10f2d63a VZ |
4173 | |
4174 | ||
1e6feb95 | 4175 | eval "$ac_cv_use_ffile" |
10f2d63a | 4176 | if test "$no_cache" != 1; then |
1e6feb95 | 4177 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4178 | fi |
4179 | ||
1e6feb95 | 4180 | if test "$wxUSE_FFILE" = yes; then |
a0b9e27f | 4181 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4182 | else |
a0b9e27f | 4183 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4184 | fi |
a0b9e27f | 4185 | |
10f2d63a | 4186 | |
5005acfe VZ |
4187 | enablestring= |
4188 | echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6 | |
65d8ef1e | 4189 | echo "configure:4190: checking for --${enablestring:-enable}-textbuf" >&5 |
a3a584a7 VZ |
4190 | no_cache=0 |
4191 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4192 | if test "${enable_textbuf+set}" = set; then | |
4193 | enableval="$enable_textbuf" | |
a0b9e27f | 4194 | |
a3a584a7 VZ |
4195 | if test "$enableval" = yes; then |
4196 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4197 | else | |
4198 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4199 | fi | |
a0b9e27f | 4200 | |
a3a584a7 | 4201 | else |
a0b9e27f | 4202 | |
a3a584a7 VZ |
4203 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4204 | if test "x$LINE" != x ; then | |
4205 | eval "DEFAULT_$LINE" | |
4206 | else | |
4207 | no_cache=1 | |
4208 | fi | |
4209 | ||
4210 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a0b9e27f MB |
4211 | |
4212 | fi | |
a3a584a7 VZ |
4213 | |
4214 | ||
4215 | eval "$ac_cv_use_textbuf" | |
4216 | if test "$no_cache" != 1; then | |
4217 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4218 | fi | |
4219 | ||
4220 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
a0b9e27f | 4221 | echo "$ac_t""yes" 1>&6 |
a3a584a7 | 4222 | else |
a0b9e27f | 4223 | echo "$ac_t""no" 1>&6 |
a3a584a7 | 4224 | fi |
a0b9e27f | 4225 | |
a3a584a7 | 4226 | |
5005acfe VZ |
4227 | enablestring= |
4228 | echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6 | |
65d8ef1e | 4229 | echo "configure:4230: checking for --${enablestring:-enable}-textfile" >&5 |
10f2d63a | 4230 | no_cache=0 |
1e6feb95 VZ |
4231 | # Check whether --enable-textfile or --disable-textfile was given. |
4232 | if test "${enable_textfile+set}" = set; then | |
4233 | enableval="$enable_textfile" | |
a0b9e27f | 4234 | |
10f2d63a | 4235 | if test "$enableval" = yes; then |
1e6feb95 | 4236 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4237 | else |
1e6feb95 | 4238 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4239 | fi |
a0b9e27f | 4240 | |
10f2d63a | 4241 | else |
a0b9e27f | 4242 | |
1e6feb95 | 4243 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4244 | if test "x$LINE" != x ; then |
4245 | eval "DEFAULT_$LINE" | |
4246 | else | |
4247 | no_cache=1 | |
4248 | fi | |
4249 | ||
1e6feb95 | 4250 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
a0b9e27f MB |
4251 | |
4252 | fi | |
10f2d63a VZ |
4253 | |
4254 | ||
1e6feb95 | 4255 | eval "$ac_cv_use_textfile" |
10f2d63a | 4256 | if test "$no_cache" != 1; then |
1e6feb95 | 4257 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4258 | fi |
4259 | ||
1e6feb95 | 4260 | if test "$wxUSE_TEXTFILE" = yes; then |
a0b9e27f | 4261 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4262 | else |
a0b9e27f | 4263 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4264 | fi |
a0b9e27f | 4265 | |
10f2d63a | 4266 | |
5005acfe VZ |
4267 | enablestring= |
4268 | echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6 | |
65d8ef1e | 4269 | echo "configure:4270: checking for --${enablestring:-enable}-fontmap" >&5 |
10f2d63a | 4270 | no_cache=0 |
1e6feb95 VZ |
4271 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4272 | if test "${enable_fontmap+set}" = set; then | |
4273 | enableval="$enable_fontmap" | |
a0b9e27f | 4274 | |
10f2d63a | 4275 | if test "$enableval" = yes; then |
1e6feb95 | 4276 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4277 | else |
1e6feb95 | 4278 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4279 | fi |
a0b9e27f | 4280 | |
10f2d63a | 4281 | else |
a0b9e27f | 4282 | |
1e6feb95 | 4283 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4284 | if test "x$LINE" != x ; then |
4285 | eval "DEFAULT_$LINE" | |
4286 | else | |
4287 | no_cache=1 | |
4288 | fi | |
4289 | ||
1e6feb95 | 4290 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
a0b9e27f MB |
4291 | |
4292 | fi | |
10f2d63a VZ |
4293 | |
4294 | ||
1e6feb95 | 4295 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4296 | if test "$no_cache" != 1; then |
1e6feb95 | 4297 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4298 | fi |
4299 | ||
1e6feb95 | 4300 | if test "$wxUSE_FONTMAP" = yes; then |
a0b9e27f | 4301 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4302 | else |
a0b9e27f | 4303 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4304 | fi |
a0b9e27f | 4305 | |
10f2d63a | 4306 | |
5005acfe VZ |
4307 | enablestring= |
4308 | echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6 | |
65d8ef1e | 4309 | echo "configure:4310: checking for --${enablestring:-enable}-unicode" >&5 |
10f2d63a | 4310 | no_cache=0 |
1e6feb95 VZ |
4311 | # Check whether --enable-unicode or --disable-unicode was given. |
4312 | if test "${enable_unicode+set}" = set; then | |
4313 | enableval="$enable_unicode" | |
a0b9e27f | 4314 | |
1e6feb95 VZ |
4315 | if test "$enableval" = yes; then |
4316 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4317 | else | |
4318 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4319 | fi | |
a0b9e27f | 4320 | |
1e6feb95 | 4321 | else |
a0b9e27f | 4322 | |
1e6feb95 VZ |
4323 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4324 | if test "x$LINE" != x ; then | |
4325 | eval "DEFAULT_$LINE" | |
4326 | else | |
4327 | no_cache=1 | |
4328 | fi | |
4329 | ||
4330 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
a0b9e27f MB |
4331 | |
4332 | fi | |
1e6feb95 VZ |
4333 | |
4334 | ||
4335 | eval "$ac_cv_use_unicode" | |
4336 | if test "$no_cache" != 1; then | |
4337 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4338 | fi | |
4339 | ||
4340 | if test "$wxUSE_UNICODE" = yes; then | |
a0b9e27f | 4341 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4342 | else |
a0b9e27f | 4343 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4344 | fi |
a0b9e27f | 4345 | |
1e6feb95 | 4346 | |
5005acfe VZ |
4347 | enablestring= |
4348 | echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6 | |
65d8ef1e | 4349 | echo "configure:4350: checking for --${enablestring:-enable}-mslu" >&5 |
a72a4bfa VS |
4350 | no_cache=0 |
4351 | # Check whether --enable-mslu or --disable-mslu was given. | |
4352 | if test "${enable_mslu+set}" = set; then | |
4353 | enableval="$enable_mslu" | |
a0b9e27f | 4354 | |
a72a4bfa VS |
4355 | if test "$enableval" = yes; then |
4356 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4357 | else | |
4358 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4359 | fi | |
a0b9e27f | 4360 | |
a72a4bfa | 4361 | else |
a0b9e27f | 4362 | |
a72a4bfa VS |
4363 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
4364 | if test "x$LINE" != x ; then | |
4365 | eval "DEFAULT_$LINE" | |
4366 | else | |
4367 | no_cache=1 | |
4368 | fi | |
4369 | ||
4370 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a0b9e27f MB |
4371 | |
4372 | fi | |
a72a4bfa VS |
4373 | |
4374 | ||
4375 | eval "$ac_cv_use_mslu" | |
4376 | if test "$no_cache" != 1; then | |
4377 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4378 | fi | |
4379 | ||
4380 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
a0b9e27f | 4381 | echo "$ac_t""yes" 1>&6 |
a72a4bfa | 4382 | else |
a0b9e27f | 4383 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 4384 | fi |
a0b9e27f | 4385 | |
a72a4bfa | 4386 | |
5005acfe VZ |
4387 | enablestring= |
4388 | echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6 | |
65d8ef1e | 4389 | echo "configure:4390: checking for --${enablestring:-enable}-wxprintfv" >&5 |
1e6feb95 VZ |
4390 | no_cache=0 |
4391 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4392 | if test "${enable_wxprintfv+set}" = set; then | |
4393 | enableval="$enable_wxprintfv" | |
a0b9e27f | 4394 | |
1e6feb95 | 4395 | if test "$enableval" = yes; then |
10f2d63a VZ |
4396 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4397 | else | |
4398 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4399 | fi | |
a0b9e27f | 4400 | |
10f2d63a | 4401 | else |
a0b9e27f | 4402 | |
10f2d63a VZ |
4403 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4404 | if test "x$LINE" != x ; then | |
4405 | eval "DEFAULT_$LINE" | |
4406 | else | |
4407 | no_cache=1 | |
4408 | fi | |
4409 | ||
4410 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
a0b9e27f MB |
4411 | |
4412 | fi | |
10f2d63a VZ |
4413 | |
4414 | ||
4415 | eval "$ac_cv_use_wxprintfv" | |
4416 | if test "$no_cache" != 1; then | |
4417 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4418 | fi | |
4419 | ||
4420 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
a0b9e27f | 4421 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4422 | else |
a0b9e27f | 4423 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4424 | fi |
a0b9e27f | 4425 | |
10f2d63a | 4426 | |
5005acfe VZ |
4427 | enablestring= |
4428 | echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6 | |
65d8ef1e | 4429 | echo "configure:4430: checking for --${enablestring:-enable}-std_iostreams" >&5 |
10f2d63a VZ |
4430 | no_cache=0 |
4431 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4432 | if test "${enable_std_iostreams+set}" = set; then | |
4433 | enableval="$enable_std_iostreams" | |
a0b9e27f | 4434 | |
10f2d63a VZ |
4435 | if test "$enableval" = yes; then |
4436 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4437 | else | |
4438 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4439 | fi | |
a0b9e27f | 4440 | |
10f2d63a | 4441 | else |
a0b9e27f | 4442 | |
10f2d63a VZ |
4443 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4444 | if test "x$LINE" != x ; then | |
4445 | eval "DEFAULT_$LINE" | |
4446 | else | |
4447 | no_cache=1 | |
4448 | fi | |
4449 | ||
4450 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
a0b9e27f MB |
4451 | |
4452 | fi | |
10f2d63a VZ |
4453 | |
4454 | ||
4455 | eval "$ac_cv_use_std_iostreams" | |
4456 | if test "$no_cache" != 1; then | |
4457 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4458 | fi | |
4459 | ||
4460 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
a0b9e27f | 4461 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4462 | else |
a0b9e27f | 4463 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4464 | fi |
a0b9e27f | 4465 | |
10f2d63a | 4466 | |
5005acfe VZ |
4467 | enablestring= |
4468 | echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6 | |
65d8ef1e | 4469 | echo "configure:4470: checking for --${enablestring:-enable}-filesystem" >&5 |
24528b0c VS |
4470 | no_cache=0 |
4471 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4472 | if test "${enable_filesystem+set}" = set; then | |
4473 | enableval="$enable_filesystem" | |
a0b9e27f | 4474 | |
24528b0c VS |
4475 | if test "$enableval" = yes; then |
4476 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4477 | else | |
4478 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4479 | fi | |
a0b9e27f | 4480 | |
24528b0c | 4481 | else |
a0b9e27f | 4482 | |
24528b0c VS |
4483 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4484 | if test "x$LINE" != x ; then | |
4485 | eval "DEFAULT_$LINE" | |
4486 | else | |
4487 | no_cache=1 | |
4488 | fi | |
4489 | ||
4490 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
a0b9e27f MB |
4491 | |
4492 | fi | |
24528b0c VS |
4493 | |
4494 | ||
4495 | eval "$ac_cv_use_filesystem" | |
4496 | if test "$no_cache" != 1; then | |
4497 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4498 | fi | |
4499 | ||
4500 | if test "$wxUSE_FILESYSTEM" = yes; then | |
a0b9e27f | 4501 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4502 | else |
a0b9e27f | 4503 | echo "$ac_t""no" 1>&6 |
24528b0c | 4504 | fi |
a0b9e27f | 4505 | |
24528b0c | 4506 | |
5005acfe VZ |
4507 | enablestring= |
4508 | echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6 | |
65d8ef1e | 4509 | echo "configure:4510: checking for --${enablestring:-enable}-fs_inet" >&5 |
10f2d63a VZ |
4510 | no_cache=0 |
4511 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4512 | if test "${enable_fs_inet+set}" = set; then | |
4513 | enableval="$enable_fs_inet" | |
a0b9e27f | 4514 | |
10f2d63a VZ |
4515 | if test "$enableval" = yes; then |
4516 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4517 | else | |
4518 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4519 | fi | |
a0b9e27f | 4520 | |
10f2d63a | 4521 | else |
a0b9e27f | 4522 | |
10f2d63a VZ |
4523 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4524 | if test "x$LINE" != x ; then | |
4525 | eval "DEFAULT_$LINE" | |
4526 | else | |
4527 | no_cache=1 | |
4528 | fi | |
4529 | ||
4530 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
a0b9e27f MB |
4531 | |
4532 | fi | |
10f2d63a VZ |
4533 | |
4534 | ||
4535 | eval "$ac_cv_use_fs_inet" | |
4536 | if test "$no_cache" != 1; then | |
4537 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4538 | fi | |
4539 | ||
4540 | if test "$wxUSE_FS_INET" = yes; then | |
a0b9e27f | 4541 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4542 | else |
a0b9e27f | 4543 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4544 | fi |
a0b9e27f | 4545 | |
10f2d63a | 4546 | |
5005acfe VZ |
4547 | enablestring= |
4548 | echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6 | |
65d8ef1e | 4549 | echo "configure:4550: checking for --${enablestring:-enable}-fs_zip" >&5 |
10f2d63a VZ |
4550 | no_cache=0 |
4551 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4552 | if test "${enable_fs_zip+set}" = set; then | |
4553 | enableval="$enable_fs_zip" | |
a0b9e27f | 4554 | |
10f2d63a VZ |
4555 | if test "$enableval" = yes; then |
4556 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4557 | else | |
4558 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4559 | fi | |
a0b9e27f | 4560 | |
10f2d63a | 4561 | else |
a0b9e27f | 4562 | |
10f2d63a VZ |
4563 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4564 | if test "x$LINE" != x ; then | |
4565 | eval "DEFAULT_$LINE" | |
4566 | else | |
4567 | no_cache=1 | |
4568 | fi | |
4569 | ||
4570 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
a0b9e27f MB |
4571 | |
4572 | fi | |
10f2d63a VZ |
4573 | |
4574 | ||
4575 | eval "$ac_cv_use_fs_zip" | |
4576 | if test "$no_cache" != 1; then | |
4577 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4578 | fi | |
4579 | ||
4580 | if test "$wxUSE_FS_ZIP" = yes; then | |
a0b9e27f | 4581 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4582 | else |
a0b9e27f | 4583 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4584 | fi |
a0b9e27f | 4585 | |
10f2d63a | 4586 | |
5005acfe VZ |
4587 | enablestring= |
4588 | echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6 | |
65d8ef1e | 4589 | echo "configure:4590: checking for --${enablestring:-enable}-zipstream" >&5 |
10f2d63a VZ |
4590 | no_cache=0 |
4591 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4592 | if test "${enable_zipstream+set}" = set; then | |
4593 | enableval="$enable_zipstream" | |
a0b9e27f | 4594 | |
10f2d63a VZ |
4595 | if test "$enableval" = yes; then |
4596 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4597 | else | |
4598 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4599 | fi | |
a0b9e27f | 4600 | |
10f2d63a | 4601 | else |
a0b9e27f | 4602 | |
10f2d63a VZ |
4603 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4604 | if test "x$LINE" != x ; then | |
4605 | eval "DEFAULT_$LINE" | |
4606 | else | |
4607 | no_cache=1 | |
4608 | fi | |
4609 | ||
4610 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
a0b9e27f MB |
4611 | |
4612 | fi | |
10f2d63a VZ |
4613 | |
4614 | ||
4615 | eval "$ac_cv_use_zipstream" | |
4616 | if test "$no_cache" != 1; then | |
4617 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4618 | fi | |
4619 | ||
4620 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
a0b9e27f | 4621 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4622 | else |
a0b9e27f | 4623 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4624 | fi |
a0b9e27f | 4625 | |
8284b0c5 | 4626 | |
52127426 | 4627 | |
5005acfe VZ |
4628 | enablestring= |
4629 | echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6 | |
65d8ef1e | 4630 | echo "configure:4631: checking for --${enablestring:-enable}-catch_segvs" >&5 |
eb4efbdc VZ |
4631 | no_cache=0 |
4632 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4633 | if test "${enable_catch_segvs+set}" = set; then | |
4634 | enableval="$enable_catch_segvs" | |
a0b9e27f | 4635 | |
eb4efbdc VZ |
4636 | if test "$enableval" = yes; then |
4637 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4638 | else | |
4639 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4640 | fi | |
a0b9e27f | 4641 | |
eb4efbdc | 4642 | else |
a0b9e27f | 4643 | |
eb4efbdc VZ |
4644 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4645 | if test "x$LINE" != x ; then | |
4646 | eval "DEFAULT_$LINE" | |
4647 | else | |
4648 | no_cache=1 | |
4649 | fi | |
4650 | ||
4651 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
a0b9e27f MB |
4652 | |
4653 | fi | |
eb4efbdc VZ |
4654 | |
4655 | ||
4656 | eval "$ac_cv_use_catch_segvs" | |
4657 | if test "$no_cache" != 1; then | |
4658 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4659 | fi | |
4660 | ||
4661 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
a0b9e27f | 4662 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4663 | else |
a0b9e27f | 4664 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4665 | fi |
a0b9e27f | 4666 | |
eb4efbdc | 4667 | |
5005acfe VZ |
4668 | enablestring= |
4669 | echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6 | |
65d8ef1e | 4670 | echo "configure:4671: checking for --${enablestring:-enable}-snglinst" >&5 |
4f3c5f06 VZ |
4671 | no_cache=0 |
4672 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4673 | if test "${enable_snglinst+set}" = set; then | |
4674 | enableval="$enable_snglinst" | |
a0b9e27f | 4675 | |
4f3c5f06 VZ |
4676 | if test "$enableval" = yes; then |
4677 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4678 | else | |
4679 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4680 | fi | |
a0b9e27f | 4681 | |
4f3c5f06 | 4682 | else |
a0b9e27f | 4683 | |
4f3c5f06 VZ |
4684 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4685 | if test "x$LINE" != x ; then | |
4686 | eval "DEFAULT_$LINE" | |
4687 | else | |
4688 | no_cache=1 | |
4689 | fi | |
4690 | ||
4691 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
a0b9e27f MB |
4692 | |
4693 | fi | |
4f3c5f06 VZ |
4694 | |
4695 | ||
4696 | eval "$ac_cv_use_snglinst" | |
4697 | if test "$no_cache" != 1; then | |
4698 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4699 | fi | |
4700 | ||
4701 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
a0b9e27f | 4702 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4703 | else |
a0b9e27f | 4704 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4705 | fi |
a0b9e27f | 4706 | |
52127426 | 4707 | |
8284b0c5 | 4708 | |
5005acfe VZ |
4709 | enablestring= |
4710 | echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6 | |
65d8ef1e | 4711 | echo "configure:4712: checking for --${enablestring:-enable}-mimetype" >&5 |
1e6feb95 VZ |
4712 | no_cache=0 |
4713 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4714 | if test "${enable_mimetype+set}" = set; then | |
4715 | enableval="$enable_mimetype" | |
a0b9e27f | 4716 | |
1e6feb95 VZ |
4717 | if test "$enableval" = yes; then |
4718 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4719 | else | |
4720 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4721 | fi | |
a0b9e27f | 4722 | |
1e6feb95 | 4723 | else |
a0b9e27f | 4724 | |
1e6feb95 VZ |
4725 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
4726 | if test "x$LINE" != x ; then | |
4727 | eval "DEFAULT_$LINE" | |
4728 | else | |
4729 | no_cache=1 | |
4730 | fi | |
4731 | ||
4732 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
a0b9e27f MB |
4733 | |
4734 | fi | |
1e6feb95 VZ |
4735 | |
4736 | ||
4737 | eval "$ac_cv_use_mimetype" | |
4738 | if test "$no_cache" != 1; then | |
4739 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4740 | fi | |
4741 | ||
4742 | if test "$wxUSE_MIMETYPE" = yes; then | |
a0b9e27f | 4743 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4744 | else |
a0b9e27f | 4745 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4746 | fi |
a0b9e27f | 4747 | |
1e6feb95 | 4748 | |
5005acfe VZ |
4749 | enablestring= |
4750 | echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6 | |
65d8ef1e | 4751 | echo "configure:4752: checking for --${enablestring:-enable}-system_options" >&5 |
3e44f09d VZ |
4752 | no_cache=0 |
4753 | # Check whether --enable-system_options or --disable-system_options was given. | |
4754 | if test "${enable_system_options+set}" = set; then | |
4755 | enableval="$enable_system_options" | |
a0b9e27f | 4756 | |
3e44f09d VZ |
4757 | if test "$enableval" = yes; then |
4758 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4759 | else | |
4760 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4761 | fi | |
a0b9e27f | 4762 | |
3e44f09d | 4763 | else |
a0b9e27f | 4764 | |
3e44f09d VZ |
4765 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
4766 | if test "x$LINE" != x ; then | |
4767 | eval "DEFAULT_$LINE" | |
4768 | else | |
4769 | no_cache=1 | |
4770 | fi | |
4771 | ||
4772 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
a0b9e27f MB |
4773 | |
4774 | fi | |
3e44f09d VZ |
4775 | |
4776 | ||
4777 | eval "$ac_cv_use_system_options" | |
4778 | if test "$no_cache" != 1; then | |
4779 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4780 | fi | |
4781 | ||
4782 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
a0b9e27f | 4783 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 4784 | else |
a0b9e27f | 4785 | echo "$ac_t""no" 1>&6 |
3e44f09d | 4786 | fi |
a0b9e27f | 4787 | |
8284b0c5 | 4788 | |
52127426 | 4789 | |
5005acfe VZ |
4790 | enablestring= |
4791 | echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6 | |
65d8ef1e | 4792 | echo "configure:4793: checking for --${enablestring:-enable}-url" >&5 |
4cdb0ab0 VS |
4793 | no_cache=0 |
4794 | # Check whether --enable-url or --disable-url was given. | |
4795 | if test "${enable_url+set}" = set; then | |
4796 | enableval="$enable_url" | |
a0b9e27f | 4797 | |
4cdb0ab0 VS |
4798 | if test "$enableval" = yes; then |
4799 | ac_cv_use_url='wxUSE_URL=yes' | |
4800 | else | |
4801 | ac_cv_use_url='wxUSE_URL=no' | |
4802 | fi | |
a0b9e27f | 4803 | |
4cdb0ab0 | 4804 | else |
a0b9e27f | 4805 | |
4cdb0ab0 VS |
4806 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
4807 | if test "x$LINE" != x ; then | |
4808 | eval "DEFAULT_$LINE" | |
4809 | else | |
4810 | no_cache=1 | |
4811 | fi | |
4812 | ||
4813 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
a0b9e27f MB |
4814 | |
4815 | fi | |
4cdb0ab0 VS |
4816 | |
4817 | ||
4818 | eval "$ac_cv_use_url" | |
4819 | if test "$no_cache" != 1; then | |
4820 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4821 | fi | |
4822 | ||
4823 | if test "$wxUSE_URL" = yes; then | |
a0b9e27f | 4824 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4825 | else |
a0b9e27f | 4826 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4827 | fi |
a0b9e27f | 4828 | |
4cdb0ab0 | 4829 | |
5005acfe VZ |
4830 | enablestring= |
4831 | echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6 | |
65d8ef1e | 4832 | echo "configure:4833: checking for --${enablestring:-enable}-protocol" >&5 |
4cdb0ab0 VS |
4833 | no_cache=0 |
4834 | # Check whether --enable-protocol or --disable-protocol was given. | |
4835 | if test "${enable_protocol+set}" = set; then | |
4836 | enableval="$enable_protocol" | |
a0b9e27f | 4837 | |
4cdb0ab0 VS |
4838 | if test "$enableval" = yes; then |
4839 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4840 | else | |
4841 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4842 | fi | |
a0b9e27f | 4843 | |
4cdb0ab0 | 4844 | else |
a0b9e27f | 4845 | |
4cdb0ab0 VS |
4846 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4847 | if test "x$LINE" != x ; then | |
4848 | eval "DEFAULT_$LINE" | |
4849 | else | |
4850 | no_cache=1 | |
4851 | fi | |
4852 | ||
4853 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
4854 | |
4855 | fi | |
4cdb0ab0 VS |
4856 | |
4857 | ||
4858 | eval "$ac_cv_use_protocol" | |
4859 | if test "$no_cache" != 1; then | |
4860 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4861 | fi | |
4862 | ||
4863 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 4864 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4865 | else |
a0b9e27f | 4866 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4867 | fi |
a0b9e27f | 4868 | |
4cdb0ab0 | 4869 | |
5005acfe VZ |
4870 | enablestring= |
4871 | echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6 | |
65d8ef1e | 4872 | echo "configure:4873: checking for --${enablestring:-enable}-protocol_http" >&5 |
4cdb0ab0 VS |
4873 | no_cache=0 |
4874 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4875 | if test "${enable_protocol_http+set}" = set; then | |
4876 | enableval="$enable_protocol_http" | |
a0b9e27f | 4877 | |
4cdb0ab0 VS |
4878 | if test "$enableval" = yes; then |
4879 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4880 | else | |
4881 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4882 | fi | |
a0b9e27f | 4883 | |
4cdb0ab0 | 4884 | else |
a0b9e27f | 4885 | |
4cdb0ab0 VS |
4886 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4887 | if test "x$LINE" != x ; then | |
4888 | eval "DEFAULT_$LINE" | |
4889 | else | |
4890 | no_cache=1 | |
4891 | fi | |
4892 | ||
4893 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
4894 | |
4895 | fi | |
4cdb0ab0 VS |
4896 | |
4897 | ||
4898 | eval "$ac_cv_use_protocol_http" | |
4899 | if test "$no_cache" != 1; then | |
4900 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4901 | fi | |
4902 | ||
4903 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 4904 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4905 | else |
a0b9e27f | 4906 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4907 | fi |
a0b9e27f | 4908 | |
4cdb0ab0 | 4909 | |
5005acfe VZ |
4910 | enablestring= |
4911 | echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6 | |
65d8ef1e | 4912 | echo "configure:4913: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
4cdb0ab0 VS |
4913 | no_cache=0 |
4914 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4915 | if test "${enable_protocol_ftp+set}" = set; then | |
4916 | enableval="$enable_protocol_ftp" | |
a0b9e27f | 4917 | |
4cdb0ab0 VS |
4918 | if test "$enableval" = yes; then |
4919 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4920 | else | |
4921 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4922 | fi | |
a0b9e27f | 4923 | |
4cdb0ab0 | 4924 | else |
a0b9e27f | 4925 | |
4cdb0ab0 VS |
4926 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4927 | if test "x$LINE" != x ; then | |
4928 | eval "DEFAULT_$LINE" | |
4929 | else | |
4930 | no_cache=1 | |
4931 | fi | |
4932 | ||
4933 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
4934 | |
4935 | fi | |
4cdb0ab0 VS |
4936 | |
4937 | ||
4938 | eval "$ac_cv_use_protocol_ftp" | |
4939 | if test "$no_cache" != 1; then | |
4940 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4941 | fi | |
4942 | ||
4943 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 4944 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4945 | else |
a0b9e27f | 4946 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4947 | fi |
a0b9e27f | 4948 | |
4cdb0ab0 | 4949 | |
5005acfe VZ |
4950 | enablestring= |
4951 | echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6 | |
65d8ef1e | 4952 | echo "configure:4953: checking for --${enablestring:-enable}-protocol_file" >&5 |
4cdb0ab0 VS |
4953 | no_cache=0 |
4954 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4955 | if test "${enable_protocol_file+set}" = set; then | |
4956 | enableval="$enable_protocol_file" | |
a0b9e27f | 4957 | |
4cdb0ab0 VS |
4958 | if test "$enableval" = yes; then |
4959 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4960 | else | |
4961 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4962 | fi | |
a0b9e27f | 4963 | |
4cdb0ab0 | 4964 | else |
a0b9e27f | 4965 | |
4cdb0ab0 VS |
4966 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4967 | if test "x$LINE" != x ; then | |
4968 | eval "DEFAULT_$LINE" | |
4969 | else | |
4970 | no_cache=1 | |
4971 | fi | |
4972 | ||
4973 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
4974 | |
4975 | fi | |
4cdb0ab0 VS |
4976 | |
4977 | ||
4978 | eval "$ac_cv_use_protocol_file" | |
4979 | if test "$no_cache" != 1; then | |
4980 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4981 | fi | |
4982 | ||
4983 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 4984 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4985 | else |
a0b9e27f | 4986 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4987 | fi |
a0b9e27f | 4988 | |
52127426 | 4989 | |
8284b0c5 MB |
4990 | |
4991 | ||
4992 | ||
5005acfe VZ |
4993 | enablestring= |
4994 | echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6 | |
65d8ef1e | 4995 | echo "configure:4996: checking for --${enablestring:-enable}-threads" >&5 |
10f2d63a VZ |
4996 | no_cache=0 |
4997 | # Check whether --enable-threads or --disable-threads was given. | |
4998 | if test "${enable_threads+set}" = set; then | |
4999 | enableval="$enable_threads" | |
a0b9e27f | 5000 | |
10f2d63a VZ |
5001 | if test "$enableval" = yes; then |
5002 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
5003 | else | |
5004 | ac_cv_use_threads='wxUSE_THREADS=no' | |
5005 | fi | |
a0b9e27f | 5006 | |
10f2d63a | 5007 | else |
a0b9e27f | 5008 | |
10f2d63a VZ |
5009 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
5010 | if test "x$LINE" != x ; then | |
5011 | eval "DEFAULT_$LINE" | |
5012 | else | |
5013 | no_cache=1 | |
5014 | fi | |
5015 | ||
5016 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
a0b9e27f MB |
5017 | |
5018 | fi | |
10f2d63a VZ |
5019 | |
5020 | ||
5021 | eval "$ac_cv_use_threads" | |
5022 | if test "$no_cache" != 1; then | |
5023 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5024 | fi | |
5025 | ||
5026 | if test "$wxUSE_THREADS" = yes; then | |
a0b9e27f | 5027 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5028 | else |
a0b9e27f | 5029 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5030 | fi |
a0b9e27f | 5031 | |
10f2d63a | 5032 | |
b12915c1 VZ |
5033 | if test "$wxUSE_GUI" = "yes"; then |
5034 | ||
8284b0c5 MB |
5035 | |
5036 | ||
5005acfe VZ |
5037 | enablestring= |
5038 | echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6 | |
65d8ef1e | 5039 | echo "configure:5040: checking for --${enablestring:-enable}-docview" >&5 |
10f2d63a VZ |
5040 | no_cache=0 |
5041 | # Check whether --enable-docview or --disable-docview was given. | |
5042 | if test "${enable_docview+set}" = set; then | |
5043 | enableval="$enable_docview" | |
a0b9e27f | 5044 | |
10f2d63a VZ |
5045 | if test "$enableval" = yes; then |
5046 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5047 | else | |
5048 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5049 | fi | |
a0b9e27f | 5050 | |
10f2d63a | 5051 | else |
a0b9e27f | 5052 | |
10f2d63a VZ |
5053 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5054 | if test "x$LINE" != x ; then | |
5055 | eval "DEFAULT_$LINE" | |
5056 | else | |
5057 | no_cache=1 | |
5058 | fi | |
5059 | ||
5060 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
a0b9e27f MB |
5061 | |
5062 | fi | |
10f2d63a VZ |
5063 | |
5064 | ||
5065 | eval "$ac_cv_use_docview" | |
5066 | if test "$no_cache" != 1; then | |
5067 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5068 | fi | |
5069 | ||
5070 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
a0b9e27f | 5071 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5072 | else |
a0b9e27f | 5073 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5074 | fi |
a0b9e27f | 5075 | |
10f2d63a | 5076 | |
5005acfe VZ |
5077 | enablestring= |
5078 | echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6 | |
65d8ef1e | 5079 | echo "configure:5080: checking for --${enablestring:-enable}-help" >&5 |
10f2d63a VZ |
5080 | no_cache=0 |
5081 | # Check whether --enable-help or --disable-help was given. | |
5082 | if test "${enable_help+set}" = set; then | |
5083 | enableval="$enable_help" | |
a0b9e27f | 5084 | |
10f2d63a VZ |
5085 | if test "$enableval" = yes; then |
5086 | ac_cv_use_help='wxUSE_HELP=yes' | |
5087 | else | |
5088 | ac_cv_use_help='wxUSE_HELP=no' | |
5089 | fi | |
a0b9e27f | 5090 | |
10f2d63a | 5091 | else |
a0b9e27f | 5092 | |
10f2d63a VZ |
5093 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5094 | if test "x$LINE" != x ; then | |
5095 | eval "DEFAULT_$LINE" | |
5096 | else | |
5097 | no_cache=1 | |
5098 | fi | |
5099 | ||
5100 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
a0b9e27f MB |
5101 | |
5102 | fi | |
10f2d63a VZ |
5103 | |
5104 | ||
5105 | eval "$ac_cv_use_help" | |
5106 | if test "$no_cache" != 1; then | |
5107 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5108 | fi | |
5109 | ||
5110 | if test "$wxUSE_HELP" = yes; then | |
a0b9e27f | 5111 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5112 | else |
a0b9e27f | 5113 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5114 | fi |
a0b9e27f | 5115 | |
10f2d63a | 5116 | |
5005acfe VZ |
5117 | enablestring= |
5118 | echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6 | |
65d8ef1e | 5119 | echo "configure:5120: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
29fd3c0c VS |
5120 | no_cache=0 |
5121 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5122 | if test "${enable_mshtmlhelp+set}" = set; then | |
5123 | enableval="$enable_mshtmlhelp" | |
a0b9e27f | 5124 | |
29fd3c0c VS |
5125 | if test "$enableval" = yes; then |
5126 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5127 | else | |
5128 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5129 | fi | |
a0b9e27f | 5130 | |
29fd3c0c | 5131 | else |
a0b9e27f | 5132 | |
29fd3c0c VS |
5133 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5134 | if test "x$LINE" != x ; then | |
5135 | eval "DEFAULT_$LINE" | |
5136 | else | |
5137 | no_cache=1 | |
5138 | fi | |
5139 | ||
5140 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
a0b9e27f MB |
5141 | |
5142 | fi | |
29fd3c0c VS |
5143 | |
5144 | ||
5145 | eval "$ac_cv_use_mshtmlhelp" | |
5146 | if test "$no_cache" != 1; then | |
5147 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5148 | fi | |
5149 | ||
5150 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
a0b9e27f | 5151 | echo "$ac_t""yes" 1>&6 |
29fd3c0c | 5152 | else |
a0b9e27f | 5153 | echo "$ac_t""no" 1>&6 |
29fd3c0c | 5154 | fi |
a0b9e27f | 5155 | |
29fd3c0c | 5156 | |
5005acfe VZ |
5157 | enablestring= |
5158 | echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6 | |
65d8ef1e | 5159 | echo "configure:5160: checking for --${enablestring:-enable}-html" >&5 |
3379ed37 VZ |
5160 | no_cache=0 |
5161 | # Check whether --enable-html or --disable-html was given. | |
5162 | if test "${enable_html+set}" = set; then | |
5163 | enableval="$enable_html" | |
a0b9e27f | 5164 | |
3379ed37 VZ |
5165 | if test "$enableval" = yes; then |
5166 | ac_cv_use_html='wxUSE_HTML=yes' | |
5167 | else | |
5168 | ac_cv_use_html='wxUSE_HTML=no' | |
5169 | fi | |
a0b9e27f | 5170 | |
3379ed37 | 5171 | else |
a0b9e27f | 5172 | |
3379ed37 VZ |
5173 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
5174 | if test "x$LINE" != x ; then | |
5175 | eval "DEFAULT_$LINE" | |
5176 | else | |
5177 | no_cache=1 | |
5178 | fi | |
5179 | ||
5180 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
a0b9e27f MB |
5181 | |
5182 | fi | |
3379ed37 VZ |
5183 | |
5184 | ||
5185 | eval "$ac_cv_use_html" | |
5186 | if test "$no_cache" != 1; then | |
5187 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5188 | fi | |
5189 | ||
5190 | if test "$wxUSE_HTML" = yes; then | |
a0b9e27f | 5191 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5192 | else |
a0b9e27f | 5193 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5194 | fi |
a0b9e27f | 5195 | |
3379ed37 | 5196 | |
5005acfe VZ |
5197 | enablestring= |
5198 | echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6 | |
65d8ef1e | 5199 | echo "configure:5200: checking for --${enablestring:-enable}-htmlhelp" >&5 |
3379ed37 VZ |
5200 | no_cache=0 |
5201 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5202 | if test "${enable_htmlhelp+set}" = set; then | |
5203 | enableval="$enable_htmlhelp" | |
a0b9e27f | 5204 | |
3379ed37 VZ |
5205 | if test "$enableval" = yes; then |
5206 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5207 | else | |
5208 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5209 | fi | |
a0b9e27f | 5210 | |
3379ed37 | 5211 | else |
a0b9e27f | 5212 | |
3379ed37 VZ |
5213 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5214 | if test "x$LINE" != x ; then | |
5215 | eval "DEFAULT_$LINE" | |
5216 | else | |
5217 | no_cache=1 | |
5218 | fi | |
5219 | ||
5220 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
a0b9e27f MB |
5221 | |
5222 | fi | |
3379ed37 VZ |
5223 | |
5224 | ||
5225 | eval "$ac_cv_use_htmlhelp" | |
5226 | if test "$no_cache" != 1; then | |
5227 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5228 | fi | |
5229 | ||
5230 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
a0b9e27f | 5231 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5232 | else |
a0b9e27f | 5233 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5234 | fi |
a0b9e27f | 5235 | |
3379ed37 | 5236 | |
5005acfe VZ |
5237 | enablestring= |
5238 | echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6 | |
65d8ef1e | 5239 | echo "configure:5240: checking for --${enablestring:-enable}-constraints" >&5 |
10f2d63a VZ |
5240 | no_cache=0 |
5241 | # Check whether --enable-constraints or --disable-constraints was given. | |
5242 | if test "${enable_constraints+set}" = set; then | |
5243 | enableval="$enable_constraints" | |
a0b9e27f | 5244 | |
10f2d63a VZ |
5245 | if test "$enableval" = yes; then |
5246 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5247 | else | |
5248 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5249 | fi | |
a0b9e27f | 5250 | |
10f2d63a | 5251 | else |
a0b9e27f | 5252 | |
10f2d63a VZ |
5253 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5254 | if test "x$LINE" != x ; then | |
5255 | eval "DEFAULT_$LINE" | |
5256 | else | |
5257 | no_cache=1 | |
5258 | fi | |
5259 | ||
5260 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
a0b9e27f MB |
5261 | |
5262 | fi | |
10f2d63a VZ |
5263 | |
5264 | ||
5265 | eval "$ac_cv_use_constraints" | |
5266 | if test "$no_cache" != 1; then | |
5267 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5268 | fi | |
5269 | ||
5270 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
a0b9e27f | 5271 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5272 | else |
a0b9e27f | 5273 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5274 | fi |
a0b9e27f | 5275 | |
10f2d63a | 5276 | |
5005acfe VZ |
5277 | enablestring= |
5278 | echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6 | |
65d8ef1e | 5279 | echo "configure:5280: checking for --${enablestring:-enable}-printarch" >&5 |
10f2d63a VZ |
5280 | no_cache=0 |
5281 | # Check whether --enable-printarch or --disable-printarch was given. | |
5282 | if test "${enable_printarch+set}" = set; then | |
5283 | enableval="$enable_printarch" | |
a0b9e27f | 5284 | |
10f2d63a VZ |
5285 | if test "$enableval" = yes; then |
5286 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5287 | else | |
5288 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5289 | fi | |
a0b9e27f | 5290 | |
10f2d63a | 5291 | else |
a0b9e27f | 5292 | |
10f2d63a VZ |
5293 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5294 | if test "x$LINE" != x ; then | |
5295 | eval "DEFAULT_$LINE" | |
5296 | else | |
5297 | no_cache=1 | |
5298 | fi | |
5299 | ||
5300 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
a0b9e27f MB |
5301 | |
5302 | fi | |
10f2d63a VZ |
5303 | |
5304 | ||
5305 | eval "$ac_cv_use_printarch" | |
5306 | if test "$no_cache" != 1; then | |
5307 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5308 | fi | |
5309 | ||
5310 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
a0b9e27f | 5311 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5312 | else |
a0b9e27f | 5313 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5314 | fi |
a0b9e27f | 5315 | |
10f2d63a | 5316 | |
5005acfe VZ |
5317 | enablestring= |
5318 | echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6 | |
65d8ef1e | 5319 | echo "configure:5320: checking for --${enablestring:-enable}-mdi" >&5 |
10f2d63a VZ |
5320 | no_cache=0 |
5321 | # Check whether --enable-mdi or --disable-mdi was given. | |
5322 | if test "${enable_mdi+set}" = set; then | |
5323 | enableval="$enable_mdi" | |
a0b9e27f | 5324 | |
10f2d63a VZ |
5325 | if test "$enableval" = yes; then |
5326 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5327 | else | |
5328 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5329 | fi | |
a0b9e27f | 5330 | |
10f2d63a | 5331 | else |
a0b9e27f | 5332 | |
10f2d63a VZ |
5333 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5334 | if test "x$LINE" != x ; then | |
5335 | eval "DEFAULT_$LINE" | |
5336 | else | |
5337 | no_cache=1 | |
5338 | fi | |
5339 | ||
5340 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
a0b9e27f MB |
5341 | |
5342 | fi | |
10f2d63a VZ |
5343 | |
5344 | ||
5345 | eval "$ac_cv_use_mdi" | |
5346 | if test "$no_cache" != 1; then | |
5347 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5348 | fi | |
5349 | ||
5350 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
a0b9e27f | 5351 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5352 | else |
a0b9e27f | 5353 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5354 | fi |
a0b9e27f | 5355 | |
698dcdb6 | 5356 | |
5005acfe VZ |
5357 | enablestring= |
5358 | echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6 | |
65d8ef1e | 5359 | echo "configure:5360: checking for --${enablestring:-enable}-loggui" >&5 |
1e6feb95 VZ |
5360 | no_cache=0 |
5361 | # Check whether --enable-loggui or --disable-loggui was given. | |
5362 | if test "${enable_loggui+set}" = set; then | |
5363 | enableval="$enable_loggui" | |
a0b9e27f | 5364 | |
1e6feb95 VZ |
5365 | if test "$enableval" = yes; then |
5366 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5367 | else | |
5368 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5369 | fi | |
a0b9e27f | 5370 | |
1e6feb95 | 5371 | else |
a0b9e27f | 5372 | |
1e6feb95 VZ |
5373 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
5374 | if test "x$LINE" != x ; then | |
5375 | eval "DEFAULT_$LINE" | |
5376 | else | |
5377 | no_cache=1 | |
5378 | fi | |
5379 | ||
5380 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
a0b9e27f MB |
5381 | |
5382 | fi | |
1e6feb95 VZ |
5383 | |
5384 | ||
5385 | eval "$ac_cv_use_loggui" | |
5386 | if test "$no_cache" != 1; then | |
5387 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5388 | fi | |
5389 | ||
5390 | if test "$wxUSE_LOGGUI" = yes; then | |
a0b9e27f | 5391 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5392 | else |
a0b9e27f | 5393 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5394 | fi |
a0b9e27f | 5395 | |
1e6feb95 | 5396 | |
5005acfe VZ |
5397 | enablestring= |
5398 | echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6 | |
65d8ef1e | 5399 | echo "configure:5400: checking for --${enablestring:-enable}-logwin" >&5 |
1e6feb95 VZ |
5400 | no_cache=0 |
5401 | # Check whether --enable-logwin or --disable-logwin was given. | |
5402 | if test "${enable_logwin+set}" = set; then | |
5403 | enableval="$enable_logwin" | |
a0b9e27f | 5404 | |
1e6feb95 VZ |
5405 | if test "$enableval" = yes; then |
5406 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5407 | else | |
5408 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5409 | fi | |
a0b9e27f | 5410 | |
1e6feb95 | 5411 | else |
a0b9e27f | 5412 | |
1e6feb95 VZ |
5413 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
5414 | if test "x$LINE" != x ; then | |
5415 | eval "DEFAULT_$LINE" | |
5416 | else | |
5417 | no_cache=1 | |
5418 | fi | |
5419 | ||
5420 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
a0b9e27f MB |
5421 | |
5422 | fi | |
1e6feb95 VZ |
5423 | |
5424 | ||
5425 | eval "$ac_cv_use_logwin" | |
5426 | if test "$no_cache" != 1; then | |
5427 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5428 | fi | |
5429 | ||
5430 | if test "$wxUSE_LOGWINDOW" = yes; then | |
a0b9e27f | 5431 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5432 | else |
a0b9e27f | 5433 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5434 | fi |
a0b9e27f | 5435 | |
1e6feb95 | 5436 | |
5005acfe VZ |
5437 | enablestring= |
5438 | echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6 | |
65d8ef1e | 5439 | echo "configure:5440: checking for --${enablestring:-enable}-logdialog" >&5 |
69d27ff7 MB |
5440 | no_cache=0 |
5441 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5442 | if test "${enable_logdialog+set}" = set; then | |
5443 | enableval="$enable_logdialog" | |
a0b9e27f | 5444 | |
69d27ff7 MB |
5445 | if test "$enableval" = yes; then |
5446 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5447 | else | |
5448 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5449 | fi | |
a0b9e27f | 5450 | |
69d27ff7 | 5451 | else |
a0b9e27f | 5452 | |
69d27ff7 MB |
5453 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
5454 | if test "x$LINE" != x ; then | |
5455 | eval "DEFAULT_$LINE" | |
5456 | else | |
5457 | no_cache=1 | |
5458 | fi | |
5459 | ||
5460 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
a0b9e27f MB |
5461 | |
5462 | fi | |
69d27ff7 MB |
5463 | |
5464 | ||
5465 | eval "$ac_cv_use_logdialog" | |
5466 | if test "$no_cache" != 1; then | |
5467 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5468 | fi | |
5469 | ||
5470 | if test "$wxUSE_LOGDIALOG" = yes; then | |
a0b9e27f | 5471 | echo "$ac_t""yes" 1>&6 |
69d27ff7 | 5472 | else |
a0b9e27f | 5473 | echo "$ac_t""no" 1>&6 |
69d27ff7 | 5474 | fi |
a0b9e27f | 5475 | |
8284b0c5 | 5476 | |
52127426 | 5477 | |
5005acfe VZ |
5478 | enablestring= |
5479 | echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6 | |
65d8ef1e | 5480 | echo "configure:5481: checking for --${enablestring:-enable}-postscript" >&5 |
10f2d63a VZ |
5481 | no_cache=0 |
5482 | # Check whether --enable-postscript or --disable-postscript was given. | |
5483 | if test "${enable_postscript+set}" = set; then | |
5484 | enableval="$enable_postscript" | |
a0b9e27f | 5485 | |
10f2d63a VZ |
5486 | if test "$enableval" = yes; then |
5487 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5488 | else | |
5489 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5490 | fi | |
a0b9e27f | 5491 | |
10f2d63a | 5492 | else |
a0b9e27f | 5493 | |
10f2d63a VZ |
5494 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5495 | if test "x$LINE" != x ; then | |
5496 | eval "DEFAULT_$LINE" | |
5497 | else | |
5498 | no_cache=1 | |
5499 | fi | |
5500 | ||
5501 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
a0b9e27f MB |
5502 | |
5503 | fi | |
10f2d63a VZ |
5504 | |
5505 | ||
5506 | eval "$ac_cv_use_postscript" | |
5507 | if test "$no_cache" != 1; then | |
5508 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5509 | fi | |
5510 | ||
5511 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
a0b9e27f | 5512 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5513 | else |
a0b9e27f | 5514 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5515 | fi |
a0b9e27f | 5516 | |
8284b0c5 MB |
5517 | |
5518 | ||
52127426 | 5519 | |
8284b0c5 | 5520 | |
5005acfe VZ |
5521 | enablestring= |
5522 | echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6 | |
65d8ef1e | 5523 | echo "configure:5524: checking for --${enablestring:-enable}-prologio" >&5 |
10f2d63a VZ |
5524 | no_cache=0 |
5525 | # Check whether --enable-prologio or --disable-prologio was given. | |
5526 | if test "${enable_prologio+set}" = set; then | |
5527 | enableval="$enable_prologio" | |
a0b9e27f | 5528 | |
10f2d63a VZ |
5529 | if test "$enableval" = yes; then |
5530 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5531 | else | |
5532 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5533 | fi | |
a0b9e27f | 5534 | |
10f2d63a | 5535 | else |
a0b9e27f | 5536 | |
10f2d63a VZ |
5537 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5538 | if test "x$LINE" != x ; then | |
5539 | eval "DEFAULT_$LINE" | |
5540 | else | |
5541 | no_cache=1 | |
5542 | fi | |
5543 | ||
5544 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
a0b9e27f MB |
5545 | |
5546 | fi | |
10f2d63a VZ |
5547 | |
5548 | ||
5549 | eval "$ac_cv_use_prologio" | |
5550 | if test "$no_cache" != 1; then | |
5551 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5552 | fi | |
5553 | ||
5554 | if test "$wxUSE_PROLOGIO" = yes; then | |
a0b9e27f | 5555 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5556 | else |
a0b9e27f | 5557 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5558 | fi |
a0b9e27f | 5559 | |
10f2d63a | 5560 | |
5005acfe VZ |
5561 | enablestring= |
5562 | echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6 | |
65d8ef1e | 5563 | echo "configure:5564: checking for --${enablestring:-enable}-resources" >&5 |
10f2d63a VZ |
5564 | no_cache=0 |
5565 | # Check whether --enable-resources or --disable-resources was given. | |
5566 | if test "${enable_resources+set}" = set; then | |
5567 | enableval="$enable_resources" | |
a0b9e27f | 5568 | |
10f2d63a VZ |
5569 | if test "$enableval" = yes; then |
5570 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5571 | else | |
5572 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5573 | fi | |
a0b9e27f | 5574 | |
10f2d63a | 5575 | else |
a0b9e27f | 5576 | |
10f2d63a VZ |
5577 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5578 | if test "x$LINE" != x ; then | |
5579 | eval "DEFAULT_$LINE" | |
5580 | else | |
5581 | no_cache=1 | |
5582 | fi | |
5583 | ||
5584 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
a0b9e27f MB |
5585 | |
5586 | fi | |
10f2d63a VZ |
5587 | |
5588 | ||
5589 | eval "$ac_cv_use_resources" | |
5590 | if test "$no_cache" != 1; then | |
5591 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5592 | fi | |
5593 | ||
5594 | if test "$wxUSE_RESOURCES" = yes; then | |
a0b9e27f | 5595 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5596 | else |
a0b9e27f | 5597 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5598 | fi |
a0b9e27f | 5599 | |
8284b0c5 | 5600 | |
52127426 | 5601 | |
5005acfe VZ |
5602 | enablestring= |
5603 | echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6 | |
65d8ef1e | 5604 | echo "configure:5605: checking for --${enablestring:-enable}-xresources" >&5 |
10f2d63a VZ |
5605 | no_cache=0 |
5606 | # Check whether --enable-xresources or --disable-xresources was given. | |
5607 | if test "${enable_xresources+set}" = set; then | |
5608 | enableval="$enable_xresources" | |
a0b9e27f | 5609 | |
10f2d63a VZ |
5610 | if test "$enableval" = yes; then |
5611 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5612 | else | |
5613 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5614 | fi | |
a0b9e27f | 5615 | |
10f2d63a | 5616 | else |
a0b9e27f | 5617 | |
10f2d63a VZ |
5618 | LINE=`grep "wxUSE_X_RESOURCES" ${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_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
a0b9e27f MB |
5626 | |
5627 | fi | |
10f2d63a VZ |
5628 | |
5629 | ||
5630 | eval "$ac_cv_use_xresources" | |
5631 | if test "$no_cache" != 1; then | |
5632 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5633 | fi | |
5634 | ||
5635 | if test "$wxUSE_X_RESOURCES" = 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 | |
8284b0c5 MB |
5641 | |
5642 | ||
52127426 | 5643 | |
5005acfe VZ |
5644 | enablestring= |
5645 | echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6 | |
65d8ef1e | 5646 | echo "configure:5647: checking for --${enablestring:-enable}-clipboard" >&5 |
10f2d63a VZ |
5647 | no_cache=0 |
5648 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5649 | if test "${enable_clipboard+set}" = set; then | |
5650 | enableval="$enable_clipboard" | |
a0b9e27f | 5651 | |
10f2d63a VZ |
5652 | if test "$enableval" = yes; then |
5653 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5654 | else | |
5655 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5656 | fi | |
a0b9e27f | 5657 | |
10f2d63a | 5658 | else |
a0b9e27f | 5659 | |
10f2d63a VZ |
5660 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5661 | if test "x$LINE" != x ; then | |
5662 | eval "DEFAULT_$LINE" | |
5663 | else | |
5664 | no_cache=1 | |
5665 | fi | |
5666 | ||
5667 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
a0b9e27f MB |
5668 | |
5669 | fi | |
10f2d63a VZ |
5670 | |
5671 | ||
5672 | eval "$ac_cv_use_clipboard" | |
5673 | if test "$no_cache" != 1; then | |
5674 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5675 | fi | |
5676 | ||
5677 | if test "$wxUSE_CLIPBOARD" = yes; then | |
a0b9e27f | 5678 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5679 | else |
a0b9e27f | 5680 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5681 | fi |
a0b9e27f | 5682 | |
10f2d63a | 5683 | |
5005acfe VZ |
5684 | enablestring= |
5685 | echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6 | |
65d8ef1e | 5686 | echo "configure:5687: checking for --${enablestring:-enable}-dnd" >&5 |
10f2d63a VZ |
5687 | no_cache=0 |
5688 | # Check whether --enable-dnd or --disable-dnd was given. | |
5689 | if test "${enable_dnd+set}" = set; then | |
5690 | enableval="$enable_dnd" | |
a0b9e27f | 5691 | |
10f2d63a VZ |
5692 | if test "$enableval" = yes; then |
5693 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5694 | else | |
5695 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5696 | fi | |
a0b9e27f | 5697 | |
10f2d63a | 5698 | else |
a0b9e27f | 5699 | |
10f2d63a VZ |
5700 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5701 | if test "x$LINE" != x ; then | |
5702 | eval "DEFAULT_$LINE" | |
5703 | else | |
5704 | no_cache=1 | |
5705 | fi | |
5706 | ||
5707 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
a0b9e27f MB |
5708 | |
5709 | fi | |
10f2d63a VZ |
5710 | |
5711 | ||
5712 | eval "$ac_cv_use_dnd" | |
5713 | if test "$no_cache" != 1; then | |
5714 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5715 | fi | |
5716 | ||
5717 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
a0b9e27f | 5718 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5719 | else |
a0b9e27f | 5720 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5721 | fi |
a0b9e27f | 5722 | |
10f2d63a | 5723 | |
5005acfe VZ |
5724 | enablestring= |
5725 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
65d8ef1e | 5726 | echo "configure:5727: checking for --${enablestring:-enable}-metafile" >&5 |
b64f0a5f RL |
5727 | no_cache=0 |
5728 | # Check whether --enable-metafile or --disable-metafile was given. | |
5729 | if test "${enable_metafile+set}" = set; then | |
5730 | enableval="$enable_metafile" | |
a0b9e27f | 5731 | |
b64f0a5f RL |
5732 | if test "$enableval" = yes; then |
5733 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5734 | else | |
5735 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5736 | fi | |
a0b9e27f | 5737 | |
b64f0a5f | 5738 | else |
a0b9e27f | 5739 | |
b64f0a5f RL |
5740 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5741 | if test "x$LINE" != x ; then | |
5742 | eval "DEFAULT_$LINE" | |
5743 | else | |
5744 | no_cache=1 | |
5745 | fi | |
5746 | ||
5747 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
5748 | |
5749 | fi | |
b64f0a5f RL |
5750 | |
5751 | ||
5752 | eval "$ac_cv_use_metafile" | |
5753 | if test "$no_cache" != 1; then | |
5754 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5755 | fi | |
5756 | ||
5757 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 5758 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5759 | else |
a0b9e27f | 5760 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5761 | fi |
a0b9e27f | 5762 | |
52127426 | 5763 | |
8284b0c5 | 5764 | |
5005acfe VZ |
5765 | enablestring= |
5766 | echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6 | |
65d8ef1e | 5767 | echo "configure:5768: checking for --${enablestring:-enable}-treelayout" >&5 |
10f2d63a | 5768 | no_cache=0 |
24176f2c GD |
5769 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5770 | if test "${enable_treelayout+set}" = set; then | |
5771 | enableval="$enable_treelayout" | |
a0b9e27f | 5772 | |
10f2d63a | 5773 | if test "$enableval" = yes; then |
24176f2c | 5774 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5775 | else |
24176f2c | 5776 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5777 | fi |
a0b9e27f | 5778 | |
10f2d63a | 5779 | else |
a0b9e27f | 5780 | |
24176f2c | 5781 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5782 | if test "x$LINE" != x ; then |
5783 | eval "DEFAULT_$LINE" | |
5784 | else | |
5785 | no_cache=1 | |
5786 | fi | |
5787 | ||
24176f2c | 5788 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
a0b9e27f MB |
5789 | |
5790 | fi | |
10f2d63a VZ |
5791 | |
5792 | ||
24176f2c | 5793 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5794 | if test "$no_cache" != 1; then |
24176f2c | 5795 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5796 | fi |
5797 | ||
24176f2c | 5798 | if test "$wxUSE_TREELAYOUT" = 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 | |
8284b0c5 | 5804 | |
52127426 | 5805 | |
8284b0c5 | 5806 | |
5005acfe VZ |
5807 | enablestring= |
5808 | echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6 | |
65d8ef1e | 5809 | echo "configure:5810: checking for --${enablestring:-enable}-controls" >&5 |
10f2d63a VZ |
5810 | no_cache=0 |
5811 | # Check whether --enable-controls or --disable-controls was given. | |
5812 | if test "${enable_controls+set}" = set; then | |
5813 | enableval="$enable_controls" | |
a0b9e27f | 5814 | |
10f2d63a VZ |
5815 | if test "$enableval" = yes; then |
5816 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5817 | else | |
5818 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5819 | fi | |
a0b9e27f | 5820 | |
10f2d63a | 5821 | else |
a0b9e27f | 5822 | |
10f2d63a VZ |
5823 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5824 | if test "x$LINE" != x ; then | |
5825 | eval "DEFAULT_$LINE" | |
5826 | else | |
5827 | no_cache=1 | |
5828 | fi | |
5829 | ||
5830 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
a0b9e27f MB |
5831 | |
5832 | fi | |
10f2d63a VZ |
5833 | |
5834 | ||
5835 | eval "$ac_cv_use_controls" | |
5836 | if test "$no_cache" != 1; then | |
5837 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5838 | fi | |
5839 | ||
5840 | if test "$wxUSE_CONTROLS" = yes; then | |
a0b9e27f | 5841 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5842 | else |
a0b9e27f | 5843 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5844 | fi |
a0b9e27f | 5845 | |
10f2d63a VZ |
5846 | |
5847 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5848 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5849 | DEFAULT_wxUSE_BMPBUTTON=yes |
5850 | DEFAULT_wxUSE_BUTTON=yes | |
5851 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5852 | DEFAULT_wxUSE_CARET=yes |
5853 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5854 | DEFAULT_wxUSE_CHECKBOX=yes |
5855 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5856 | DEFAULT_wxUSE_CHOICE=yes | |
5857 | DEFAULT_wxUSE_GAUGE=yes | |
5858 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5859 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5860 | DEFAULT_wxUSE_IMAGLIST=yes |
5861 | DEFAULT_wxUSE_LISTBOX=yes | |
5862 | DEFAULT_wxUSE_LISTCTRL=yes | |
5863 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5864 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5865 | DEFAULT_wxUSE_RADIOBOX=yes |
5866 | DEFAULT_wxUSE_RADIOBTN=yes | |
5867 | DEFAULT_wxUSE_SASH=yes | |
5868 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5869 | DEFAULT_wxUSE_SLIDER=yes | |
5870 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5871 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5872 | DEFAULT_wxUSE_SPLITTER=yes |
5873 | DEFAULT_wxUSE_STATBMP=yes | |
5874 | DEFAULT_wxUSE_STATBOX=yes | |
5875 | DEFAULT_wxUSE_STATLINE=yes | |
5876 | DEFAULT_wxUSE_STATUSBAR=yes | |
5877 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5878 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5879 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5880 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5881 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5882 | DEFAULT_wxUSE_TOOLTIPS=yes |
5883 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5884 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5885 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5886 | elif test "$wxUSE_CONTROLS" = "no"; then |
5887 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5888 | DEFAULT_wxUSE_BMPBUTTON=no |
5889 | DEFAULT_wxUSE_BUTTON=no | |
5890 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5891 | DEFAULT_wxUSE_CARET=no |
5892 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5893 | DEFAULT_wxUSE_CHECKBOX=no |
5894 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5895 | DEFAULT_wxUSE_CHOICE=no | |
5896 | DEFAULT_wxUSE_GAUGE=no | |
5897 | DEFAULT_wxUSE_GRID=no | |
5898 | DEFAULT_wxUSE_NEW_GRID=no | |
5899 | DEFAULT_wxUSE_IMAGLIST=no | |
5900 | DEFAULT_wxUSE_LISTBOX=no | |
5901 | DEFAULT_wxUSE_LISTCTRL=no | |
5902 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5903 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5904 | DEFAULT_wxUSE_RADIOBOX=no |
5905 | DEFAULT_wxUSE_RADIOBTN=no | |
5906 | DEFAULT_wxUSE_SASH=no | |
5907 | DEFAULT_wxUSE_SCROLLBAR=no | |
5908 | DEFAULT_wxUSE_SLIDER=no | |
5909 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5910 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5911 | DEFAULT_wxUSE_SPLITTER=no |
5912 | DEFAULT_wxUSE_STATBMP=no | |
5913 | DEFAULT_wxUSE_STATBOX=no | |
5914 | DEFAULT_wxUSE_STATLINE=no | |
5915 | DEFAULT_wxUSE_STATUSBAR=no | |
5916 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5917 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5918 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5919 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5920 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5921 | DEFAULT_wxUSE_TOOLTIPS=no |
5922 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5923 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5924 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5925 | fi |
5926 | ||
8284b0c5 | 5927 | |
5005acfe VZ |
5928 | enablestring= |
5929 | echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6 | |
65d8ef1e | 5930 | echo "configure:5931: checking for --${enablestring:-enable}-accel" >&5 |
10f2d63a VZ |
5931 | no_cache=0 |
5932 | # Check whether --enable-accel or --disable-accel was given. | |
5933 | if test "${enable_accel+set}" = set; then | |
5934 | enableval="$enable_accel" | |
a0b9e27f | 5935 | |
10f2d63a VZ |
5936 | if test "$enableval" = yes; then |
5937 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5938 | else | |
5939 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5940 | fi | |
a0b9e27f | 5941 | |
10f2d63a | 5942 | else |
a0b9e27f | 5943 | |
10f2d63a VZ |
5944 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5945 | if test "x$LINE" != x ; then | |
5946 | eval "DEFAULT_$LINE" | |
5947 | else | |
5948 | no_cache=1 | |
5949 | fi | |
5950 | ||
5951 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
a0b9e27f MB |
5952 | |
5953 | fi | |
10f2d63a VZ |
5954 | |
5955 | ||
5956 | eval "$ac_cv_use_accel" | |
5957 | if test "$no_cache" != 1; then | |
5958 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5959 | fi | |
5960 | ||
5961 | if test "$wxUSE_ACCEL" = yes; then | |
a0b9e27f | 5962 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5963 | else |
a0b9e27f | 5964 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5965 | fi |
a0b9e27f | 5966 | |
10f2d63a | 5967 | |
5005acfe VZ |
5968 | enablestring= |
5969 | echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6 | |
65d8ef1e | 5970 | echo "configure:5971: checking for --${enablestring:-enable}-button" >&5 |
10f2d63a | 5971 | no_cache=0 |
1e6feb95 VZ |
5972 | # Check whether --enable-button or --disable-button was given. |
5973 | if test "${enable_button+set}" = set; then | |
5974 | enableval="$enable_button" | |
a0b9e27f | 5975 | |
10f2d63a | 5976 | if test "$enableval" = yes; then |
1e6feb95 | 5977 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5978 | else |
1e6feb95 | 5979 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5980 | fi |
a0b9e27f | 5981 | |
10f2d63a | 5982 | else |
a0b9e27f | 5983 | |
1e6feb95 | 5984 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5985 | if test "x$LINE" != x ; then |
5986 | eval "DEFAULT_$LINE" | |
5987 | else | |
5988 | no_cache=1 | |
5989 | fi | |
5990 | ||
1e6feb95 | 5991 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
a0b9e27f MB |
5992 | |
5993 | fi | |
10f2d63a VZ |
5994 | |
5995 | ||
1e6feb95 | 5996 | eval "$ac_cv_use_button" |
10f2d63a | 5997 | if test "$no_cache" != 1; then |
1e6feb95 | 5998 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5999 | fi |
6000 | ||
1e6feb95 | 6001 | if test "$wxUSE_BUTTON" = yes; then |
a0b9e27f | 6002 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6003 | else |
a0b9e27f | 6004 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6005 | fi |
a0b9e27f | 6006 | |
10f2d63a | 6007 | |
5005acfe VZ |
6008 | enablestring= |
6009 | echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6 | |
65d8ef1e | 6010 | echo "configure:6011: checking for --${enablestring:-enable}-bmpbutton" >&5 |
10f2d63a VZ |
6011 | no_cache=0 |
6012 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6013 | if test "${enable_bmpbutton+set}" = set; then | |
6014 | enableval="$enable_bmpbutton" | |
a0b9e27f | 6015 | |
10f2d63a VZ |
6016 | if test "$enableval" = yes; then |
6017 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6018 | else | |
6019 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6020 | fi | |
a0b9e27f | 6021 | |
10f2d63a | 6022 | else |
a0b9e27f | 6023 | |
10f2d63a VZ |
6024 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
6025 | if test "x$LINE" != x ; then | |
6026 | eval "DEFAULT_$LINE" | |
6027 | else | |
6028 | no_cache=1 | |
6029 | fi | |
6030 | ||
6031 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
a0b9e27f MB |
6032 | |
6033 | fi | |
10f2d63a VZ |
6034 | |
6035 | ||
6036 | eval "$ac_cv_use_bmpbutton" | |
6037 | if test "$no_cache" != 1; then | |
6038 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6039 | fi | |
6040 | ||
6041 | if test "$wxUSE_BMPBUTTON" = yes; then | |
a0b9e27f | 6042 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6043 | else |
a0b9e27f | 6044 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6045 | fi |
a0b9e27f | 6046 | |
10f2d63a | 6047 | |
5005acfe VZ |
6048 | enablestring= |
6049 | echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6 | |
65d8ef1e | 6050 | echo "configure:6051: checking for --${enablestring:-enable}-calendar" >&5 |
1e6feb95 VZ |
6051 | no_cache=0 |
6052 | # Check whether --enable-calendar or --disable-calendar was given. | |
6053 | if test "${enable_calendar+set}" = set; then | |
6054 | enableval="$enable_calendar" | |
a0b9e27f | 6055 | |
1e6feb95 VZ |
6056 | if test "$enableval" = yes; then |
6057 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6058 | else | |
6059 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6060 | fi | |
a0b9e27f | 6061 | |
1e6feb95 | 6062 | else |
a0b9e27f | 6063 | |
1e6feb95 VZ |
6064 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6065 | if test "x$LINE" != x ; then | |
6066 | eval "DEFAULT_$LINE" | |
6067 | else | |
6068 | no_cache=1 | |
6069 | fi | |
6070 | ||
6071 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
a0b9e27f MB |
6072 | |
6073 | fi | |
1e6feb95 VZ |
6074 | |
6075 | ||
6076 | eval "$ac_cv_use_calendar" | |
6077 | if test "$no_cache" != 1; then | |
6078 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6079 | fi | |
6080 | ||
6081 | if test "$wxUSE_CALCTRL" = yes; then | |
a0b9e27f | 6082 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6083 | else |
a0b9e27f | 6084 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6085 | fi |
a0b9e27f | 6086 | |
1e6feb95 | 6087 | |
5005acfe VZ |
6088 | enablestring= |
6089 | echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6 | |
65d8ef1e | 6090 | echo "configure:6091: checking for --${enablestring:-enable}-caret" >&5 |
1e6feb95 VZ |
6091 | no_cache=0 |
6092 | # Check whether --enable-caret or --disable-caret was given. | |
6093 | if test "${enable_caret+set}" = set; then | |
6094 | enableval="$enable_caret" | |
a0b9e27f | 6095 | |
1e6feb95 VZ |
6096 | if test "$enableval" = yes; then |
6097 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6098 | else | |
6099 | ac_cv_use_caret='wxUSE_CARET=no' | |
6100 | fi | |
a0b9e27f | 6101 | |
1e6feb95 | 6102 | else |
a0b9e27f | 6103 | |
1e6feb95 VZ |
6104 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6105 | if test "x$LINE" != x ; then | |
6106 | eval "DEFAULT_$LINE" | |
6107 | else | |
6108 | no_cache=1 | |
6109 | fi | |
6110 | ||
6111 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
a0b9e27f MB |
6112 | |
6113 | fi | |
1e6feb95 VZ |
6114 | |
6115 | ||
6116 | eval "$ac_cv_use_caret" | |
6117 | if test "$no_cache" != 1; then | |
6118 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6119 | fi | |
6120 | ||
6121 | if test "$wxUSE_CARET" = yes; then | |
a0b9e27f | 6122 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6123 | else |
a0b9e27f | 6124 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6125 | fi |
a0b9e27f | 6126 | |
1e6feb95 | 6127 | |
5005acfe VZ |
6128 | enablestring= |
6129 | echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6 | |
65d8ef1e | 6130 | echo "configure:6131: checking for --${enablestring:-enable}-checkbox" >&5 |
10f2d63a VZ |
6131 | no_cache=0 |
6132 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6133 | if test "${enable_checkbox+set}" = set; then | |
6134 | enableval="$enable_checkbox" | |
a0b9e27f | 6135 | |
10f2d63a VZ |
6136 | if test "$enableval" = yes; then |
6137 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6138 | else | |
6139 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6140 | fi | |
a0b9e27f | 6141 | |
10f2d63a | 6142 | else |
a0b9e27f | 6143 | |
10f2d63a VZ |
6144 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6145 | if test "x$LINE" != x ; then | |
6146 | eval "DEFAULT_$LINE" | |
6147 | else | |
6148 | no_cache=1 | |
6149 | fi | |
6150 | ||
6151 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
a0b9e27f MB |
6152 | |
6153 | fi | |
10f2d63a VZ |
6154 | |
6155 | ||
6156 | eval "$ac_cv_use_checkbox" | |
6157 | if test "$no_cache" != 1; then | |
6158 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6159 | fi | |
6160 | ||
6161 | if test "$wxUSE_CHECKBOX" = yes; then | |
a0b9e27f | 6162 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6163 | else |
a0b9e27f | 6164 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6165 | fi |
a0b9e27f | 6166 | |
10f2d63a | 6167 | |
5005acfe VZ |
6168 | enablestring= |
6169 | echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6 | |
65d8ef1e | 6170 | echo "configure:6171: checking for --${enablestring:-enable}-checklst" >&5 |
10f2d63a VZ |
6171 | no_cache=0 |
6172 | # Check whether --enable-checklst or --disable-checklst was given. | |
6173 | if test "${enable_checklst+set}" = set; then | |
6174 | enableval="$enable_checklst" | |
a0b9e27f | 6175 | |
10f2d63a VZ |
6176 | if test "$enableval" = yes; then |
6177 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6178 | else | |
6179 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6180 | fi | |
a0b9e27f | 6181 | |
10f2d63a | 6182 | else |
a0b9e27f | 6183 | |
10f2d63a VZ |
6184 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6185 | if test "x$LINE" != x ; then | |
6186 | eval "DEFAULT_$LINE" | |
6187 | else | |
6188 | no_cache=1 | |
6189 | fi | |
6190 | ||
6191 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
a0b9e27f MB |
6192 | |
6193 | fi | |
10f2d63a VZ |
6194 | |
6195 | ||
6196 | eval "$ac_cv_use_checklst" | |
6197 | if test "$no_cache" != 1; then | |
6198 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6199 | fi | |
6200 | ||
6201 | if test "$wxUSE_CHECKLST" = yes; then | |
a0b9e27f | 6202 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6203 | else |
a0b9e27f | 6204 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6205 | fi |
a0b9e27f | 6206 | |
10f2d63a | 6207 | |
5005acfe VZ |
6208 | enablestring= |
6209 | echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6 | |
65d8ef1e | 6210 | echo "configure:6211: checking for --${enablestring:-enable}-choice" >&5 |
10f2d63a VZ |
6211 | no_cache=0 |
6212 | # Check whether --enable-choice or --disable-choice was given. | |
6213 | if test "${enable_choice+set}" = set; then | |
6214 | enableval="$enable_choice" | |
a0b9e27f | 6215 | |
10f2d63a VZ |
6216 | if test "$enableval" = yes; then |
6217 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6218 | else | |
6219 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6220 | fi | |
a0b9e27f | 6221 | |
10f2d63a | 6222 | else |
a0b9e27f | 6223 | |
10f2d63a VZ |
6224 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6225 | if test "x$LINE" != x ; then | |
6226 | eval "DEFAULT_$LINE" | |
6227 | else | |
6228 | no_cache=1 | |
6229 | fi | |
6230 | ||
6231 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
a0b9e27f MB |
6232 | |
6233 | fi | |
10f2d63a VZ |
6234 | |
6235 | ||
6236 | eval "$ac_cv_use_choice" | |
6237 | if test "$no_cache" != 1; then | |
6238 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6239 | fi | |
6240 | ||
6241 | if test "$wxUSE_CHOICE" = yes; then | |
a0b9e27f | 6242 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6243 | else |
a0b9e27f | 6244 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6245 | fi |
a0b9e27f | 6246 | |
10f2d63a | 6247 | |
5005acfe VZ |
6248 | enablestring= |
6249 | echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6 | |
65d8ef1e | 6250 | echo "configure:6251: checking for --${enablestring:-enable}-combobox" >&5 |
10f2d63a VZ |
6251 | no_cache=0 |
6252 | # Check whether --enable-combobox or --disable-combobox was given. | |
6253 | if test "${enable_combobox+set}" = set; then | |
6254 | enableval="$enable_combobox" | |
a0b9e27f | 6255 | |
10f2d63a VZ |
6256 | if test "$enableval" = yes; then |
6257 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6258 | else | |
6259 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6260 | fi | |
a0b9e27f | 6261 | |
10f2d63a | 6262 | else |
a0b9e27f | 6263 | |
10f2d63a VZ |
6264 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6265 | if test "x$LINE" != x ; then | |
6266 | eval "DEFAULT_$LINE" | |
6267 | else | |
6268 | no_cache=1 | |
6269 | fi | |
6270 | ||
6271 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
a0b9e27f MB |
6272 | |
6273 | fi | |
10f2d63a VZ |
6274 | |
6275 | ||
6276 | eval "$ac_cv_use_combobox" | |
6277 | if test "$no_cache" != 1; then | |
6278 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6279 | fi | |
6280 | ||
6281 | if test "$wxUSE_COMBOBOX" = yes; then | |
a0b9e27f | 6282 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6283 | else |
a0b9e27f | 6284 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6285 | fi |
a0b9e27f | 6286 | |
10f2d63a | 6287 | |
5005acfe VZ |
6288 | enablestring= |
6289 | echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6 | |
65d8ef1e | 6290 | echo "configure:6291: checking for --${enablestring:-enable}-gauge" >&5 |
10f2d63a VZ |
6291 | no_cache=0 |
6292 | # Check whether --enable-gauge or --disable-gauge was given. | |
6293 | if test "${enable_gauge+set}" = set; then | |
6294 | enableval="$enable_gauge" | |
a0b9e27f | 6295 | |
10f2d63a VZ |
6296 | if test "$enableval" = yes; then |
6297 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6298 | else | |
6299 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6300 | fi | |
a0b9e27f | 6301 | |
10f2d63a | 6302 | else |
a0b9e27f | 6303 | |
10f2d63a VZ |
6304 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6305 | if test "x$LINE" != x ; then | |
6306 | eval "DEFAULT_$LINE" | |
6307 | else | |
6308 | no_cache=1 | |
6309 | fi | |
6310 | ||
6311 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
a0b9e27f MB |
6312 | |
6313 | fi | |
10f2d63a VZ |
6314 | |
6315 | ||
6316 | eval "$ac_cv_use_gauge" | |
6317 | if test "$no_cache" != 1; then | |
6318 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6319 | fi | |
6320 | ||
6321 | if test "$wxUSE_GAUGE" = yes; then | |
a0b9e27f | 6322 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6323 | else |
a0b9e27f | 6324 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6325 | fi |
a0b9e27f | 6326 | |
10f2d63a | 6327 | |
5005acfe VZ |
6328 | enablestring= |
6329 | echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6 | |
65d8ef1e | 6330 | echo "configure:6331: checking for --${enablestring:-enable}-grid" >&5 |
10f2d63a VZ |
6331 | no_cache=0 |
6332 | # Check whether --enable-grid or --disable-grid was given. | |
6333 | if test "${enable_grid+set}" = set; then | |
6334 | enableval="$enable_grid" | |
a0b9e27f | 6335 | |
10f2d63a VZ |
6336 | if test "$enableval" = yes; then |
6337 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6338 | else | |
6339 | ac_cv_use_grid='wxUSE_GRID=no' | |
6340 | fi | |
a0b9e27f | 6341 | |
10f2d63a | 6342 | else |
a0b9e27f | 6343 | |
10f2d63a VZ |
6344 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6345 | if test "x$LINE" != x ; then | |
6346 | eval "DEFAULT_$LINE" | |
6347 | else | |
6348 | no_cache=1 | |
6349 | fi | |
6350 | ||
6351 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
a0b9e27f MB |
6352 | |
6353 | fi | |
10f2d63a VZ |
6354 | |
6355 | ||
6356 | eval "$ac_cv_use_grid" | |
6357 | if test "$no_cache" != 1; then | |
6358 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6359 | fi | |
6360 | ||
6361 | if test "$wxUSE_GRID" = yes; then | |
a0b9e27f | 6362 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6363 | else |
a0b9e27f | 6364 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6365 | fi |
a0b9e27f | 6366 | |
10f2d63a | 6367 | |
5005acfe VZ |
6368 | enablestring= |
6369 | echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6 | |
65d8ef1e | 6370 | echo "configure:6371: checking for --${enablestring:-enable}-newgrid" >&5 |
10f2d63a VZ |
6371 | no_cache=0 |
6372 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6373 | if test "${enable_newgrid+set}" = set; then | |
6374 | enableval="$enable_newgrid" | |
a0b9e27f | 6375 | |
10f2d63a VZ |
6376 | if test "$enableval" = yes; then |
6377 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6378 | else | |
6379 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6380 | fi | |
a0b9e27f | 6381 | |
10f2d63a | 6382 | else |
a0b9e27f | 6383 | |
10f2d63a VZ |
6384 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6385 | if test "x$LINE" != x ; then | |
6386 | eval "DEFAULT_$LINE" | |
6387 | else | |
6388 | no_cache=1 | |
6389 | fi | |
6390 | ||
6391 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
a0b9e27f MB |
6392 | |
6393 | fi | |
10f2d63a VZ |
6394 | |
6395 | ||
6396 | eval "$ac_cv_use_newgrid" | |
6397 | if test "$no_cache" != 1; then | |
6398 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6399 | fi | |
6400 | ||
6401 | if test "$wxUSE_NEW_GRID" = yes; then | |
a0b9e27f | 6402 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6403 | else |
a0b9e27f | 6404 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6405 | fi |
a0b9e27f | 6406 | |
10f2d63a | 6407 | |
5005acfe VZ |
6408 | enablestring= |
6409 | echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6 | |
65d8ef1e | 6410 | echo "configure:6411: checking for --${enablestring:-enable}-imaglist" >&5 |
10f2d63a VZ |
6411 | no_cache=0 |
6412 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6413 | if test "${enable_imaglist+set}" = set; then | |
6414 | enableval="$enable_imaglist" | |
a0b9e27f | 6415 | |
10f2d63a VZ |
6416 | if test "$enableval" = yes; then |
6417 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6418 | else | |
6419 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6420 | fi | |
a0b9e27f | 6421 | |
10f2d63a | 6422 | else |
a0b9e27f | 6423 | |
10f2d63a VZ |
6424 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6425 | if test "x$LINE" != x ; then | |
6426 | eval "DEFAULT_$LINE" | |
6427 | else | |
6428 | no_cache=1 | |
6429 | fi | |
6430 | ||
6431 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
a0b9e27f MB |
6432 | |
6433 | fi | |
10f2d63a VZ |
6434 | |
6435 | ||
6436 | eval "$ac_cv_use_imaglist" | |
6437 | if test "$no_cache" != 1; then | |
6438 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6439 | fi | |
6440 | ||
6441 | if test "$wxUSE_IMAGLIST" = yes; then | |
a0b9e27f | 6442 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6443 | else |
a0b9e27f | 6444 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6445 | fi |
a0b9e27f | 6446 | |
10f2d63a | 6447 | |
5005acfe VZ |
6448 | enablestring= |
6449 | echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6 | |
65d8ef1e | 6450 | echo "configure:6451: checking for --${enablestring:-enable}-listbox" >&5 |
10f2d63a VZ |
6451 | no_cache=0 |
6452 | # Check whether --enable-listbox or --disable-listbox was given. | |
6453 | if test "${enable_listbox+set}" = set; then | |
6454 | enableval="$enable_listbox" | |
a0b9e27f | 6455 | |
10f2d63a VZ |
6456 | if test "$enableval" = yes; then |
6457 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6458 | else | |
6459 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6460 | fi | |
a0b9e27f | 6461 | |
10f2d63a | 6462 | else |
a0b9e27f | 6463 | |
10f2d63a VZ |
6464 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6465 | if test "x$LINE" != x ; then | |
6466 | eval "DEFAULT_$LINE" | |
6467 | else | |
6468 | no_cache=1 | |
6469 | fi | |
6470 | ||
6471 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
a0b9e27f MB |
6472 | |
6473 | fi | |
10f2d63a VZ |
6474 | |
6475 | ||
6476 | eval "$ac_cv_use_listbox" | |
6477 | if test "$no_cache" != 1; then | |
6478 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6479 | fi | |
6480 | ||
6481 | if test "$wxUSE_LISTBOX" = yes; then | |
a0b9e27f | 6482 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6483 | else |
a0b9e27f | 6484 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6485 | fi |
a0b9e27f | 6486 | |
10f2d63a | 6487 | |
5005acfe VZ |
6488 | enablestring= |
6489 | echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6 | |
65d8ef1e | 6490 | echo "configure:6491: checking for --${enablestring:-enable}-listctrl" >&5 |
10f2d63a VZ |
6491 | no_cache=0 |
6492 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6493 | if test "${enable_listctrl+set}" = set; then | |
6494 | enableval="$enable_listctrl" | |
a0b9e27f | 6495 | |
10f2d63a VZ |
6496 | if test "$enableval" = yes; then |
6497 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6498 | else | |
6499 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6500 | fi | |
a0b9e27f | 6501 | |
10f2d63a | 6502 | else |
a0b9e27f | 6503 | |
10f2d63a VZ |
6504 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6505 | if test "x$LINE" != x ; then | |
6506 | eval "DEFAULT_$LINE" | |
6507 | else | |
6508 | no_cache=1 | |
6509 | fi | |
6510 | ||
6511 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
a0b9e27f MB |
6512 | |
6513 | fi | |
10f2d63a VZ |
6514 | |
6515 | ||
6516 | eval "$ac_cv_use_listctrl" | |
6517 | if test "$no_cache" != 1; then | |
6518 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6519 | fi | |
6520 | ||
6521 | if test "$wxUSE_LISTCTRL" = yes; then | |
a0b9e27f | 6522 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6523 | else |
a0b9e27f | 6524 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6525 | fi |
a0b9e27f | 6526 | |
10f2d63a | 6527 | |
5005acfe VZ |
6528 | enablestring= |
6529 | echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6 | |
65d8ef1e | 6530 | echo "configure:6531: checking for --${enablestring:-enable}-notebook" >&5 |
10f2d63a VZ |
6531 | no_cache=0 |
6532 | # Check whether --enable-notebook or --disable-notebook was given. | |
6533 | if test "${enable_notebook+set}" = set; then | |
6534 | enableval="$enable_notebook" | |
a0b9e27f | 6535 | |
10f2d63a VZ |
6536 | if test "$enableval" = yes; then |
6537 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6538 | else | |
6539 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6540 | fi | |
a0b9e27f | 6541 | |
10f2d63a | 6542 | else |
a0b9e27f | 6543 | |
10f2d63a VZ |
6544 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6545 | if test "x$LINE" != x ; then | |
6546 | eval "DEFAULT_$LINE" | |
6547 | else | |
6548 | no_cache=1 | |
6549 | fi | |
6550 | ||
6551 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
a0b9e27f MB |
6552 | |
6553 | fi | |
10f2d63a VZ |
6554 | |
6555 | ||
6556 | eval "$ac_cv_use_notebook" | |
6557 | if test "$no_cache" != 1; then | |
6558 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6559 | fi | |
6560 | ||
6561 | if test "$wxUSE_NOTEBOOK" = yes; then | |
a0b9e27f | 6562 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6563 | else |
a0b9e27f | 6564 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6565 | fi |
a0b9e27f | 6566 | |
10f2d63a | 6567 | |
5005acfe VZ |
6568 | enablestring= |
6569 | echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6 | |
65d8ef1e | 6570 | echo "configure:6571: checking for --${enablestring:-enable}-propsheet" >&5 |
24176f2c GD |
6571 | no_cache=0 |
6572 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6573 | if test "${enable_propsheet+set}" = set; then | |
6574 | enableval="$enable_propsheet" | |
a0b9e27f | 6575 | |
24176f2c GD |
6576 | if test "$enableval" = yes; then |
6577 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6578 | else | |
6579 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6580 | fi | |
a0b9e27f | 6581 | |
24176f2c | 6582 | else |
a0b9e27f | 6583 | |
24176f2c GD |
6584 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` |
6585 | if test "x$LINE" != x ; then | |
6586 | eval "DEFAULT_$LINE" | |
6587 | else | |
6588 | no_cache=1 | |
6589 | fi | |
6590 | ||
6591 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
a0b9e27f MB |
6592 | |
6593 | fi | |
24176f2c GD |
6594 | |
6595 | ||
6596 | eval "$ac_cv_use_propsheet" | |
6597 | if test "$no_cache" != 1; then | |
6598 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6599 | fi | |
6600 | ||
6601 | if test "$wxUSE_PROPSHEET" = yes; then | |
a0b9e27f | 6602 | echo "$ac_t""yes" 1>&6 |
24176f2c | 6603 | else |
a0b9e27f | 6604 | echo "$ac_t""no" 1>&6 |
24176f2c | 6605 | fi |
a0b9e27f | 6606 | |
24176f2c | 6607 | |
5005acfe VZ |
6608 | enablestring= |
6609 | echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6 | |
65d8ef1e | 6610 | echo "configure:6611: checking for --${enablestring:-enable}-radiobox" >&5 |
10f2d63a VZ |
6611 | no_cache=0 |
6612 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6613 | if test "${enable_radiobox+set}" = set; then | |
6614 | enableval="$enable_radiobox" | |
a0b9e27f | 6615 | |
10f2d63a VZ |
6616 | if test "$enableval" = yes; then |
6617 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6618 | else | |
6619 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6620 | fi | |
a0b9e27f | 6621 | |
10f2d63a | 6622 | else |
a0b9e27f | 6623 | |
10f2d63a VZ |
6624 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6625 | if test "x$LINE" != x ; then | |
6626 | eval "DEFAULT_$LINE" | |
6627 | else | |
6628 | no_cache=1 | |
6629 | fi | |
6630 | ||
6631 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
a0b9e27f MB |
6632 | |
6633 | fi | |
10f2d63a VZ |
6634 | |
6635 | ||
6636 | eval "$ac_cv_use_radiobox" | |
6637 | if test "$no_cache" != 1; then | |
6638 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6639 | fi | |
6640 | ||
6641 | if test "$wxUSE_RADIOBOX" = yes; then | |
a0b9e27f | 6642 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6643 | else |
a0b9e27f | 6644 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6645 | fi |
a0b9e27f | 6646 | |
10f2d63a | 6647 | |
5005acfe VZ |
6648 | enablestring= |
6649 | echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6 | |
65d8ef1e | 6650 | echo "configure:6651: checking for --${enablestring:-enable}-radiobtn" >&5 |
10f2d63a VZ |
6651 | no_cache=0 |
6652 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6653 | if test "${enable_radiobtn+set}" = set; then | |
6654 | enableval="$enable_radiobtn" | |
a0b9e27f | 6655 | |
10f2d63a VZ |
6656 | if test "$enableval" = yes; then |
6657 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6658 | else | |
6659 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6660 | fi | |
a0b9e27f | 6661 | |
10f2d63a | 6662 | else |
a0b9e27f | 6663 | |
10f2d63a VZ |
6664 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6665 | if test "x$LINE" != x ; then | |
6666 | eval "DEFAULT_$LINE" | |
6667 | else | |
6668 | no_cache=1 | |
6669 | fi | |
6670 | ||
6671 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
a0b9e27f MB |
6672 | |
6673 | fi | |
10f2d63a VZ |
6674 | |
6675 | ||
6676 | eval "$ac_cv_use_radiobtn" | |
6677 | if test "$no_cache" != 1; then | |
6678 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6679 | fi | |
6680 | ||
6681 | if test "$wxUSE_RADIOBTN" = yes; then | |
a0b9e27f | 6682 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6683 | else |
a0b9e27f | 6684 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6685 | fi |
a0b9e27f | 6686 | |
10f2d63a | 6687 | |
5005acfe VZ |
6688 | enablestring= |
6689 | echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6 | |
65d8ef1e | 6690 | echo "configure:6691: checking for --${enablestring:-enable}-sash" >&5 |
10f2d63a VZ |
6691 | no_cache=0 |
6692 | # Check whether --enable-sash or --disable-sash was given. | |
6693 | if test "${enable_sash+set}" = set; then | |
6694 | enableval="$enable_sash" | |
a0b9e27f | 6695 | |
10f2d63a VZ |
6696 | if test "$enableval" = yes; then |
6697 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6698 | else | |
6699 | ac_cv_use_sash='wxUSE_SASH=no' | |
6700 | fi | |
a0b9e27f | 6701 | |
10f2d63a | 6702 | else |
a0b9e27f | 6703 | |
10f2d63a VZ |
6704 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6705 | if test "x$LINE" != x ; then | |
6706 | eval "DEFAULT_$LINE" | |
6707 | else | |
6708 | no_cache=1 | |
6709 | fi | |
6710 | ||
6711 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
a0b9e27f MB |
6712 | |
6713 | fi | |
10f2d63a VZ |
6714 | |
6715 | ||
6716 | eval "$ac_cv_use_sash" | |
6717 | if test "$no_cache" != 1; then | |
6718 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6719 | fi | |
6720 | ||
6721 | if test "$wxUSE_SASH" = yes; then | |
a0b9e27f | 6722 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6723 | else |
a0b9e27f | 6724 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6725 | fi |
a0b9e27f | 6726 | |
10f2d63a | 6727 | |
5005acfe VZ |
6728 | enablestring= |
6729 | echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6 | |
65d8ef1e | 6730 | echo "configure:6731: checking for --${enablestring:-enable}-scrollbar" >&5 |
10f2d63a VZ |
6731 | no_cache=0 |
6732 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6733 | if test "${enable_scrollbar+set}" = set; then | |
6734 | enableval="$enable_scrollbar" | |
a0b9e27f | 6735 | |
10f2d63a VZ |
6736 | if test "$enableval" = yes; then |
6737 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6738 | else | |
6739 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6740 | fi | |
a0b9e27f | 6741 | |
10f2d63a | 6742 | else |
a0b9e27f | 6743 | |
10f2d63a VZ |
6744 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6745 | if test "x$LINE" != x ; then | |
6746 | eval "DEFAULT_$LINE" | |
6747 | else | |
6748 | no_cache=1 | |
6749 | fi | |
6750 | ||
6751 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
a0b9e27f MB |
6752 | |
6753 | fi | |
10f2d63a VZ |
6754 | |
6755 | ||
6756 | eval "$ac_cv_use_scrollbar" | |
6757 | if test "$no_cache" != 1; then | |
6758 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6759 | fi | |
6760 | ||
6761 | if test "$wxUSE_SCROLLBAR" = yes; then | |
a0b9e27f | 6762 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6763 | else |
a0b9e27f | 6764 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6765 | fi |
a0b9e27f | 6766 | |
10f2d63a | 6767 | |
5005acfe VZ |
6768 | enablestring= |
6769 | echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6 | |
65d8ef1e | 6770 | echo "configure:6771: checking for --${enablestring:-enable}-slider" >&5 |
10f2d63a VZ |
6771 | no_cache=0 |
6772 | # Check whether --enable-slider or --disable-slider was given. | |
6773 | if test "${enable_slider+set}" = set; then | |
6774 | enableval="$enable_slider" | |
a0b9e27f | 6775 | |
10f2d63a VZ |
6776 | if test "$enableval" = yes; then |
6777 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6778 | else | |
6779 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6780 | fi | |
a0b9e27f | 6781 | |
10f2d63a | 6782 | else |
a0b9e27f | 6783 | |
10f2d63a VZ |
6784 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6785 | if test "x$LINE" != x ; then | |
6786 | eval "DEFAULT_$LINE" | |
6787 | else | |
6788 | no_cache=1 | |
6789 | fi | |
6790 | ||
6791 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
a0b9e27f MB |
6792 | |
6793 | fi | |
10f2d63a VZ |
6794 | |
6795 | ||
6796 | eval "$ac_cv_use_slider" | |
6797 | if test "$no_cache" != 1; then | |
6798 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6799 | fi | |
6800 | ||
6801 | if test "$wxUSE_SLIDER" = yes; then | |
a0b9e27f | 6802 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6803 | else |
a0b9e27f | 6804 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6805 | fi |
a0b9e27f | 6806 | |
10f2d63a | 6807 | |
5005acfe VZ |
6808 | enablestring= |
6809 | echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6 | |
65d8ef1e | 6810 | echo "configure:6811: checking for --${enablestring:-enable}-spinbtn" >&5 |
10f2d63a VZ |
6811 | no_cache=0 |
6812 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6813 | if test "${enable_spinbtn+set}" = set; then | |
6814 | enableval="$enable_spinbtn" | |
a0b9e27f | 6815 | |
10f2d63a VZ |
6816 | if test "$enableval" = yes; then |
6817 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6818 | else | |
6819 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6820 | fi | |
a0b9e27f | 6821 | |
10f2d63a | 6822 | else |
a0b9e27f | 6823 | |
10f2d63a VZ |
6824 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6825 | if test "x$LINE" != x ; then | |
6826 | eval "DEFAULT_$LINE" | |
6827 | else | |
6828 | no_cache=1 | |
6829 | fi | |
6830 | ||
6831 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
a0b9e27f MB |
6832 | |
6833 | fi | |
10f2d63a VZ |
6834 | |
6835 | ||
6836 | eval "$ac_cv_use_spinbtn" | |
6837 | if test "$no_cache" != 1; then | |
6838 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6839 | fi | |
6840 | ||
6841 | if test "$wxUSE_SPINBTN" = yes; then | |
a0b9e27f | 6842 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6843 | else |
a0b9e27f | 6844 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6845 | fi |
a0b9e27f | 6846 | |
10f2d63a | 6847 | |
5005acfe VZ |
6848 | enablestring= |
6849 | echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6 | |
65d8ef1e | 6850 | echo "configure:6851: checking for --${enablestring:-enable}-spinctrl" >&5 |
56cfaa52 RR |
6851 | no_cache=0 |
6852 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6853 | if test "${enable_spinctrl+set}" = set; then | |
6854 | enableval="$enable_spinctrl" | |
a0b9e27f | 6855 | |
56cfaa52 RR |
6856 | if test "$enableval" = yes; then |
6857 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6858 | else | |
6859 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6860 | fi | |
a0b9e27f | 6861 | |
56cfaa52 | 6862 | else |
a0b9e27f | 6863 | |
56cfaa52 RR |
6864 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6865 | if test "x$LINE" != x ; then | |
6866 | eval "DEFAULT_$LINE" | |
6867 | else | |
6868 | no_cache=1 | |
6869 | fi | |
6870 | ||
6871 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
a0b9e27f MB |
6872 | |
6873 | fi | |
56cfaa52 RR |
6874 | |
6875 | ||
6876 | eval "$ac_cv_use_spinctrl" | |
6877 | if test "$no_cache" != 1; then | |
6878 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6879 | fi | |
6880 | ||
6881 | if test "$wxUSE_SPINCTRL" = yes; then | |
a0b9e27f | 6882 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6883 | else |
a0b9e27f | 6884 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6885 | fi |
a0b9e27f | 6886 | |
56cfaa52 | 6887 | |
5005acfe VZ |
6888 | enablestring= |
6889 | echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6 | |
65d8ef1e | 6890 | echo "configure:6891: checking for --${enablestring:-enable}-splitter" >&5 |
10f2d63a VZ |
6891 | no_cache=0 |
6892 | # Check whether --enable-splitter or --disable-splitter was given. | |
6893 | if test "${enable_splitter+set}" = set; then | |
6894 | enableval="$enable_splitter" | |
a0b9e27f | 6895 | |
10f2d63a VZ |
6896 | if test "$enableval" = yes; then |
6897 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6898 | else | |
6899 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6900 | fi | |
a0b9e27f | 6901 | |
10f2d63a | 6902 | else |
a0b9e27f | 6903 | |
10f2d63a VZ |
6904 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6905 | if test "x$LINE" != x ; then | |
6906 | eval "DEFAULT_$LINE" | |
6907 | else | |
6908 | no_cache=1 | |
6909 | fi | |
6910 | ||
6911 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
a0b9e27f MB |
6912 | |
6913 | fi | |
10f2d63a VZ |
6914 | |
6915 | ||
6916 | eval "$ac_cv_use_splitter" | |
6917 | if test "$no_cache" != 1; then | |
6918 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6919 | fi | |
6920 | ||
6921 | if test "$wxUSE_SPLITTER" = yes; then | |
a0b9e27f | 6922 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6923 | else |
a0b9e27f | 6924 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6925 | fi |
a0b9e27f | 6926 | |
10f2d63a | 6927 | |
5005acfe VZ |
6928 | enablestring= |
6929 | echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6 | |
65d8ef1e | 6930 | echo "configure:6931: checking for --${enablestring:-enable}-statbmp" >&5 |
10f2d63a VZ |
6931 | no_cache=0 |
6932 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6933 | if test "${enable_statbmp+set}" = set; then | |
6934 | enableval="$enable_statbmp" | |
a0b9e27f | 6935 | |
10f2d63a VZ |
6936 | if test "$enableval" = yes; then |
6937 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6938 | else | |
6939 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6940 | fi | |
a0b9e27f | 6941 | |
10f2d63a | 6942 | else |
a0b9e27f | 6943 | |
10f2d63a VZ |
6944 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6945 | if test "x$LINE" != x ; then | |
6946 | eval "DEFAULT_$LINE" | |
6947 | else | |
6948 | no_cache=1 | |
6949 | fi | |
6950 | ||
6951 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
a0b9e27f MB |
6952 | |
6953 | fi | |
10f2d63a VZ |
6954 | |
6955 | ||
6956 | eval "$ac_cv_use_statbmp" | |
6957 | if test "$no_cache" != 1; then | |
6958 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6959 | fi | |
6960 | ||
6961 | if test "$wxUSE_STATBMP" = yes; then | |
a0b9e27f | 6962 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6963 | else |
a0b9e27f | 6964 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6965 | fi |
a0b9e27f | 6966 | |
10f2d63a | 6967 | |
5005acfe VZ |
6968 | enablestring= |
6969 | echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6 | |
65d8ef1e | 6970 | echo "configure:6971: checking for --${enablestring:-enable}-statbox" >&5 |
10f2d63a VZ |
6971 | no_cache=0 |
6972 | # Check whether --enable-statbox or --disable-statbox was given. | |
6973 | if test "${enable_statbox+set}" = set; then | |
6974 | enableval="$enable_statbox" | |
a0b9e27f | 6975 | |
10f2d63a VZ |
6976 | if test "$enableval" = yes; then |
6977 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6978 | else | |
6979 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6980 | fi | |
a0b9e27f | 6981 | |
10f2d63a | 6982 | else |
a0b9e27f | 6983 | |
10f2d63a VZ |
6984 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6985 | if test "x$LINE" != x ; then | |
6986 | eval "DEFAULT_$LINE" | |
6987 | else | |
6988 | no_cache=1 | |
6989 | fi | |
6990 | ||
6991 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
a0b9e27f MB |
6992 | |
6993 | fi | |
10f2d63a VZ |
6994 | |
6995 | ||
6996 | eval "$ac_cv_use_statbox" | |
6997 | if test "$no_cache" != 1; then | |
6998 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6999 | fi | |
7000 | ||
7001 | if test "$wxUSE_STATBOX" = yes; then | |
a0b9e27f | 7002 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7003 | else |
a0b9e27f | 7004 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7005 | fi |
a0b9e27f | 7006 | |
10f2d63a | 7007 | |
5005acfe VZ |
7008 | enablestring= |
7009 | echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6 | |
65d8ef1e | 7010 | echo "configure:7011: checking for --${enablestring:-enable}-statline" >&5 |
10f2d63a VZ |
7011 | no_cache=0 |
7012 | # Check whether --enable-statline or --disable-statline was given. | |
7013 | if test "${enable_statline+set}" = set; then | |
7014 | enableval="$enable_statline" | |
a0b9e27f | 7015 | |
10f2d63a VZ |
7016 | if test "$enableval" = yes; then |
7017 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7018 | else | |
7019 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
7020 | fi | |
a0b9e27f | 7021 | |
10f2d63a | 7022 | else |
a0b9e27f | 7023 | |
10f2d63a VZ |
7024 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
7025 | if test "x$LINE" != x ; then | |
7026 | eval "DEFAULT_$LINE" | |
7027 | else | |
7028 | no_cache=1 | |
7029 | fi | |
7030 | ||
7031 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
a0b9e27f MB |
7032 | |
7033 | fi | |
10f2d63a VZ |
7034 | |
7035 | ||
7036 | eval "$ac_cv_use_statline" | |
7037 | if test "$no_cache" != 1; then | |
7038 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
7039 | fi | |
7040 | ||
7041 | if test "$wxUSE_STATLINE" = yes; then | |
a0b9e27f | 7042 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7043 | else |
a0b9e27f | 7044 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7045 | fi |
a0b9e27f | 7046 | |
10f2d63a | 7047 | |
5005acfe VZ |
7048 | enablestring= |
7049 | echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6 | |
65d8ef1e | 7050 | echo "configure:7051: checking for --${enablestring:-enable}-stattext" >&5 |
1e6feb95 VZ |
7051 | no_cache=0 |
7052 | # Check whether --enable-stattext or --disable-stattext was given. | |
7053 | if test "${enable_stattext+set}" = set; then | |
7054 | enableval="$enable_stattext" | |
a0b9e27f | 7055 | |
1e6feb95 VZ |
7056 | if test "$enableval" = yes; then |
7057 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7058 | else | |
7059 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7060 | fi | |
a0b9e27f | 7061 | |
1e6feb95 | 7062 | else |
a0b9e27f | 7063 | |
1e6feb95 VZ |
7064 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
7065 | if test "x$LINE" != x ; then | |
7066 | eval "DEFAULT_$LINE" | |
7067 | else | |
7068 | no_cache=1 | |
7069 | fi | |
7070 | ||
7071 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
a0b9e27f MB |
7072 | |
7073 | fi | |
1e6feb95 VZ |
7074 | |
7075 | ||
7076 | eval "$ac_cv_use_stattext" | |
7077 | if test "$no_cache" != 1; then | |
7078 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7079 | fi | |
7080 | ||
7081 | if test "$wxUSE_STATTEXT" = yes; then | |
a0b9e27f | 7082 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7083 | else |
a0b9e27f | 7084 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7085 | fi |
a0b9e27f | 7086 | |
1e6feb95 | 7087 | |
5005acfe VZ |
7088 | enablestring= |
7089 | echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6 | |
65d8ef1e | 7090 | echo "configure:7091: checking for --${enablestring:-enable}-statusbar" >&5 |
10f2d63a VZ |
7091 | no_cache=0 |
7092 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7093 | if test "${enable_statusbar+set}" = set; then | |
7094 | enableval="$enable_statusbar" | |
a0b9e27f | 7095 | |
10f2d63a VZ |
7096 | if test "$enableval" = yes; then |
7097 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7098 | else | |
7099 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7100 | fi | |
a0b9e27f | 7101 | |
10f2d63a | 7102 | else |
a0b9e27f | 7103 | |
10f2d63a VZ |
7104 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
7105 | if test "x$LINE" != x ; then | |
7106 | eval "DEFAULT_$LINE" | |
7107 | else | |
7108 | no_cache=1 | |
7109 | fi | |
7110 | ||
7111 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
a0b9e27f MB |
7112 | |
7113 | fi | |
10f2d63a VZ |
7114 | |
7115 | ||
7116 | eval "$ac_cv_use_statusbar" | |
7117 | if test "$no_cache" != 1; then | |
7118 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7119 | fi | |
7120 | ||
7121 | if test "$wxUSE_STATUSBAR" = yes; then | |
a0b9e27f | 7122 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7123 | else |
a0b9e27f | 7124 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7125 | fi |
a0b9e27f | 7126 | |
10f2d63a | 7127 | |
5005acfe VZ |
7128 | enablestring= |
7129 | echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6 | |
65d8ef1e | 7130 | echo "configure:7131: checking for --${enablestring:-enable}-tabdialog" >&5 |
10f2d63a VZ |
7131 | no_cache=0 |
7132 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7133 | if test "${enable_tabdialog+set}" = set; then | |
7134 | enableval="$enable_tabdialog" | |
a0b9e27f | 7135 | |
10f2d63a VZ |
7136 | if test "$enableval" = yes; then |
7137 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7138 | else | |
7139 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7140 | fi | |
a0b9e27f | 7141 | |
10f2d63a | 7142 | else |
a0b9e27f | 7143 | |
10f2d63a VZ |
7144 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7145 | if test "x$LINE" != x ; then | |
7146 | eval "DEFAULT_$LINE" | |
7147 | else | |
7148 | no_cache=1 | |
7149 | fi | |
7150 | ||
7151 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
a0b9e27f MB |
7152 | |
7153 | fi | |
10f2d63a VZ |
7154 | |
7155 | ||
7156 | eval "$ac_cv_use_tabdialog" | |
7157 | if test "$no_cache" != 1; then | |
7158 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7159 | fi | |
7160 | ||
7161 | if test "$wxUSE_TABDIALOG" = yes; then | |
a0b9e27f | 7162 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7163 | else |
a0b9e27f | 7164 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7165 | fi |
a0b9e27f | 7166 | |
10f2d63a | 7167 | |
5005acfe VZ |
7168 | enablestring= |
7169 | echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6 | |
65d8ef1e | 7170 | echo "configure:7171: checking for --${enablestring:-enable}-textctrl" >&5 |
1e6feb95 VZ |
7171 | no_cache=0 |
7172 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7173 | if test "${enable_textctrl+set}" = set; then | |
7174 | enableval="$enable_textctrl" | |
a0b9e27f | 7175 | |
1e6feb95 VZ |
7176 | if test "$enableval" = yes; then |
7177 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7178 | else | |
7179 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7180 | fi | |
a0b9e27f | 7181 | |
1e6feb95 | 7182 | else |
a0b9e27f | 7183 | |
1e6feb95 VZ |
7184 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
7185 | if test "x$LINE" != x ; then | |
7186 | eval "DEFAULT_$LINE" | |
7187 | else | |
7188 | no_cache=1 | |
7189 | fi | |
7190 | ||
7191 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
a0b9e27f MB |
7192 | |
7193 | fi | |
1e6feb95 VZ |
7194 | |
7195 | ||
7196 | eval "$ac_cv_use_textctrl" | |
7197 | if test "$no_cache" != 1; then | |
7198 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7199 | fi | |
7200 | ||
7201 | if test "$wxUSE_TEXTCTRL" = yes; then | |
a0b9e27f | 7202 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7203 | else |
a0b9e27f | 7204 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7205 | fi |
a0b9e27f | 7206 | |
1e6feb95 | 7207 | |
5005acfe VZ |
7208 | enablestring= |
7209 | echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6 | |
65d8ef1e | 7210 | echo "configure:7211: checking for --${enablestring:-enable}-togglebtn" >&5 |
1db8dc4a VZ |
7211 | no_cache=0 |
7212 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7213 | if test "${enable_togglebtn+set}" = set; then | |
7214 | enableval="$enable_togglebtn" | |
a0b9e27f | 7215 | |
1db8dc4a VZ |
7216 | if test "$enableval" = yes; then |
7217 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7218 | else | |
7219 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7220 | fi | |
a0b9e27f | 7221 | |
1db8dc4a | 7222 | else |
a0b9e27f | 7223 | |
1db8dc4a VZ |
7224 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7225 | if test "x$LINE" != x ; then | |
7226 | eval "DEFAULT_$LINE" | |
7227 | else | |
7228 | no_cache=1 | |
7229 | fi | |
7230 | ||
7231 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
a0b9e27f MB |
7232 | |
7233 | fi | |
1db8dc4a VZ |
7234 | |
7235 | ||
7236 | eval "$ac_cv_use_togglebtn" | |
7237 | if test "$no_cache" != 1; then | |
7238 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7239 | fi | |
7240 | ||
7241 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
a0b9e27f | 7242 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 7243 | else |
a0b9e27f | 7244 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 7245 | fi |
a0b9e27f | 7246 | |
1db8dc4a | 7247 | |
5005acfe VZ |
7248 | enablestring= |
7249 | echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6 | |
65d8ef1e | 7250 | echo "configure:7251: checking for --${enablestring:-enable}-toolbar" >&5 |
10f2d63a VZ |
7251 | no_cache=0 |
7252 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7253 | if test "${enable_toolbar+set}" = set; then | |
7254 | enableval="$enable_toolbar" | |
a0b9e27f | 7255 | |
10f2d63a VZ |
7256 | if test "$enableval" = yes; then |
7257 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7258 | else | |
7259 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7260 | fi | |
a0b9e27f | 7261 | |
10f2d63a | 7262 | else |
a0b9e27f | 7263 | |
10f2d63a VZ |
7264 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7265 | if test "x$LINE" != x ; then | |
7266 | eval "DEFAULT_$LINE" | |
7267 | else | |
7268 | no_cache=1 | |
7269 | fi | |
7270 | ||
7271 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
a0b9e27f MB |
7272 | |
7273 | fi | |
10f2d63a VZ |
7274 | |
7275 | ||
7276 | eval "$ac_cv_use_toolbar" | |
7277 | if test "$no_cache" != 1; then | |
7278 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7279 | fi | |
7280 | ||
7281 | if test "$wxUSE_TOOLBAR" = yes; then | |
a0b9e27f | 7282 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7283 | else |
a0b9e27f | 7284 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7285 | fi |
a0b9e27f | 7286 | |
10f2d63a | 7287 | |
5005acfe VZ |
7288 | enablestring= |
7289 | echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6 | |
65d8ef1e | 7290 | echo "configure:7291: checking for --${enablestring:-enable}-tbarnative" >&5 |
360d6699 VZ |
7291 | no_cache=0 |
7292 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7293 | if test "${enable_tbarnative+set}" = set; then | |
7294 | enableval="$enable_tbarnative" | |
a0b9e27f | 7295 | |
360d6699 VZ |
7296 | if test "$enableval" = yes; then |
7297 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7298 | else | |
7299 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7300 | fi | |
a0b9e27f | 7301 | |
360d6699 | 7302 | else |
a0b9e27f | 7303 | |
360d6699 VZ |
7304 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7305 | if test "x$LINE" != x ; then | |
7306 | eval "DEFAULT_$LINE" | |
7307 | else | |
7308 | no_cache=1 | |
7309 | fi | |
7310 | ||
7311 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
a0b9e27f MB |
7312 | |
7313 | fi | |
360d6699 VZ |
7314 | |
7315 | ||
7316 | eval "$ac_cv_use_tbarnative" | |
7317 | if test "$no_cache" != 1; then | |
7318 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7319 | fi | |
7320 | ||
7321 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
a0b9e27f | 7322 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7323 | else |
a0b9e27f | 7324 | echo "$ac_t""no" 1>&6 |
360d6699 | 7325 | fi |
a0b9e27f | 7326 | |
360d6699 | 7327 | |
5005acfe VZ |
7328 | enablestring= |
7329 | echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6 | |
65d8ef1e | 7330 | echo "configure:7331: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
360d6699 VZ |
7331 | no_cache=0 |
7332 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7333 | if test "${enable_tbarsmpl+set}" = set; then | |
7334 | enableval="$enable_tbarsmpl" | |
a0b9e27f | 7335 | |
360d6699 VZ |
7336 | if test "$enableval" = yes; then |
7337 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7338 | else | |
7339 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7340 | fi | |
a0b9e27f | 7341 | |
360d6699 | 7342 | else |
a0b9e27f | 7343 | |
360d6699 VZ |
7344 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7345 | if test "x$LINE" != x ; then | |
7346 | eval "DEFAULT_$LINE" | |
7347 | else | |
7348 | no_cache=1 | |
7349 | fi | |
7350 | ||
7351 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
a0b9e27f MB |
7352 | |
7353 | fi | |
360d6699 VZ |
7354 | |
7355 | ||
7356 | eval "$ac_cv_use_tbarsmpl" | |
7357 | if test "$no_cache" != 1; then | |
7358 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7359 | fi | |
7360 | ||
7361 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
a0b9e27f | 7362 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7363 | else |
a0b9e27f | 7364 | echo "$ac_t""no" 1>&6 |
360d6699 | 7365 | fi |
a0b9e27f | 7366 | |
360d6699 | 7367 | |
5005acfe VZ |
7368 | enablestring= |
7369 | echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6 | |
65d8ef1e | 7370 | echo "configure:7371: checking for --${enablestring:-enable}-treectrl" >&5 |
10f2d63a VZ |
7371 | no_cache=0 |
7372 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7373 | if test "${enable_treectrl+set}" = set; then | |
7374 | enableval="$enable_treectrl" | |
a0b9e27f | 7375 | |
10f2d63a VZ |
7376 | if test "$enableval" = yes; then |
7377 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7378 | else | |
7379 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7380 | fi | |
a0b9e27f | 7381 | |
10f2d63a | 7382 | else |
a0b9e27f | 7383 | |
10f2d63a VZ |
7384 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7385 | if test "x$LINE" != x ; then | |
7386 | eval "DEFAULT_$LINE" | |
7387 | else | |
7388 | no_cache=1 | |
7389 | fi | |
7390 | ||
7391 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
a0b9e27f MB |
7392 | |
7393 | fi | |
10f2d63a VZ |
7394 | |
7395 | ||
1e6feb95 VZ |
7396 | eval "$ac_cv_use_treectrl" |
7397 | if test "$no_cache" != 1; then | |
7398 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7399 | fi | |
7400 | ||
7401 | if test "$wxUSE_TREECTRL" = yes; then | |
a0b9e27f | 7402 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7403 | else |
a0b9e27f | 7404 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7405 | fi |
a0b9e27f | 7406 | |
1e6feb95 | 7407 | |
5005acfe VZ |
7408 | enablestring= |
7409 | echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6 | |
65d8ef1e | 7410 | echo "configure:7411: checking for --${enablestring:-enable}-tipwindow" >&5 |
9926e4a4 VZ |
7411 | no_cache=0 |
7412 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7413 | if test "${enable_tipwindow+set}" = set; then | |
7414 | enableval="$enable_tipwindow" | |
a0b9e27f | 7415 | |
9926e4a4 VZ |
7416 | if test "$enableval" = yes; then |
7417 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7418 | else | |
7419 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7420 | fi | |
a0b9e27f | 7421 | |
9926e4a4 | 7422 | else |
a0b9e27f | 7423 | |
9926e4a4 VZ |
7424 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
7425 | if test "x$LINE" != x ; then | |
7426 | eval "DEFAULT_$LINE" | |
7427 | else | |
7428 | no_cache=1 | |
7429 | fi | |
7430 | ||
7431 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
a0b9e27f MB |
7432 | |
7433 | fi | |
9926e4a4 VZ |
7434 | |
7435 | ||
7436 | eval "$ac_cv_use_tipwindow" | |
7437 | if test "$no_cache" != 1; then | |
7438 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7439 | fi | |
7440 | ||
7441 | if test "$wxUSE_TIPWINDOW" = yes; then | |
a0b9e27f | 7442 | echo "$ac_t""yes" 1>&6 |
9926e4a4 | 7443 | else |
a0b9e27f | 7444 | echo "$ac_t""no" 1>&6 |
9926e4a4 | 7445 | fi |
a0b9e27f | 7446 | |
9926e4a4 | 7447 | |
5005acfe VZ |
7448 | enablestring= |
7449 | echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6 | |
65d8ef1e | 7450 | echo "configure:7451: checking for --${enablestring:-enable}-popupwin" >&5 |
9f41d601 RR |
7451 | no_cache=0 |
7452 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7453 | if test "${enable_popupwin+set}" = set; then | |
7454 | enableval="$enable_popupwin" | |
a0b9e27f | 7455 | |
9f41d601 RR |
7456 | if test "$enableval" = yes; then |
7457 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7458 | else | |
7459 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7460 | fi | |
a0b9e27f | 7461 | |
9f41d601 | 7462 | else |
a0b9e27f | 7463 | |
9f41d601 RR |
7464 | LINE=`grep "wxUSE_POPUPWIN" ${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_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
a0b9e27f MB |
7472 | |
7473 | fi | |
9f41d601 RR |
7474 | |
7475 | ||
7476 | eval "$ac_cv_use_popupwin" | |
7477 | if test "$no_cache" != 1; then | |
7478 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7479 | fi | |
7480 | ||
7481 | if test "$wxUSE_POPUPWIN" = yes; then | |
a0b9e27f | 7482 | echo "$ac_t""yes" 1>&6 |
9f41d601 | 7483 | else |
a0b9e27f | 7484 | echo "$ac_t""no" 1>&6 |
9f41d601 | 7485 | fi |
a0b9e27f | 7486 | |
52127426 | 7487 | |
8284b0c5 MB |
7488 | |
7489 | ||
5005acfe VZ |
7490 | enablestring= |
7491 | echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6 | |
65d8ef1e | 7492 | echo "configure:7493: checking for --${enablestring:-enable}-commondlg" >&5 |
1e6feb95 VZ |
7493 | no_cache=0 |
7494 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7495 | if test "${enable_commondlg+set}" = set; then | |
7496 | enableval="$enable_commondlg" | |
a0b9e27f | 7497 | |
1e6feb95 VZ |
7498 | if test "$enableval" = yes; then |
7499 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7500 | else | |
7501 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7502 | fi | |
a0b9e27f | 7503 | |
1e6feb95 | 7504 | else |
a0b9e27f | 7505 | |
1e6feb95 VZ |
7506 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
7507 | if test "x$LINE" != x ; then | |
7508 | eval "DEFAULT_$LINE" | |
7509 | else | |
7510 | no_cache=1 | |
7511 | fi | |
7512 | ||
7513 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
a0b9e27f MB |
7514 | |
7515 | fi | |
1e6feb95 VZ |
7516 | |
7517 | ||
7518 | eval "$ac_cv_use_commondlg" | |
7519 | if test "$no_cache" != 1; then | |
7520 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7521 | fi | |
7522 | ||
7523 | if test "$wxUSE_COMMONDLGS" = yes; then | |
a0b9e27f | 7524 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7525 | else |
a0b9e27f | 7526 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7527 | fi |
a0b9e27f | 7528 | |
1e6feb95 | 7529 | |
5005acfe VZ |
7530 | enablestring= |
7531 | echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6 | |
65d8ef1e | 7532 | echo "configure:7533: checking for --${enablestring:-enable}-choicedlg" >&5 |
1e6feb95 VZ |
7533 | no_cache=0 |
7534 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7535 | if test "${enable_choicedlg+set}" = set; then | |
7536 | enableval="$enable_choicedlg" | |
a0b9e27f | 7537 | |
1e6feb95 VZ |
7538 | if test "$enableval" = yes; then |
7539 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7540 | else | |
7541 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7542 | fi | |
a0b9e27f | 7543 | |
1e6feb95 | 7544 | else |
a0b9e27f | 7545 | |
1e6feb95 VZ |
7546 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
7547 | if test "x$LINE" != x ; then | |
7548 | eval "DEFAULT_$LINE" | |
7549 | else | |
7550 | no_cache=1 | |
7551 | fi | |
7552 | ||
7553 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
a0b9e27f MB |
7554 | |
7555 | fi | |
1e6feb95 VZ |
7556 | |
7557 | ||
7558 | eval "$ac_cv_use_choicedlg" | |
7559 | if test "$no_cache" != 1; then | |
7560 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7561 | fi | |
7562 | ||
7563 | if test "$wxUSE_CHOICEDLG" = yes; then | |
a0b9e27f | 7564 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7565 | else |
a0b9e27f | 7566 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7567 | fi |
a0b9e27f | 7568 | |
1e6feb95 | 7569 | |
5005acfe VZ |
7570 | enablestring= |
7571 | echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6 | |
65d8ef1e | 7572 | echo "configure:7573: checking for --${enablestring:-enable}-coldlg" >&5 |
1e6feb95 VZ |
7573 | no_cache=0 |
7574 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7575 | if test "${enable_coldlg+set}" = set; then | |
7576 | enableval="$enable_coldlg" | |
a0b9e27f | 7577 | |
1e6feb95 VZ |
7578 | if test "$enableval" = yes; then |
7579 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7580 | else | |
7581 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7582 | fi | |
a0b9e27f | 7583 | |
1e6feb95 | 7584 | else |
a0b9e27f | 7585 | |
1e6feb95 VZ |
7586 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
7587 | if test "x$LINE" != x ; then | |
7588 | eval "DEFAULT_$LINE" | |
7589 | else | |
7590 | no_cache=1 | |
7591 | fi | |
7592 | ||
7593 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
a0b9e27f MB |
7594 | |
7595 | fi | |
1e6feb95 VZ |
7596 | |
7597 | ||
7598 | eval "$ac_cv_use_coldlg" | |
7599 | if test "$no_cache" != 1; then | |
7600 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7601 | fi | |
7602 | ||
7603 | if test "$wxUSE_COLOURDLG" = yes; then | |
a0b9e27f | 7604 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7605 | else |
a0b9e27f | 7606 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7607 | fi |
a0b9e27f | 7608 | |
1e6feb95 | 7609 | |
5005acfe VZ |
7610 | enablestring= |
7611 | echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6 | |
65d8ef1e | 7612 | echo "configure:7613: checking for --${enablestring:-enable}-filedlg" >&5 |
1e6feb95 VZ |
7613 | no_cache=0 |
7614 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7615 | if test "${enable_filedlg+set}" = set; then | |
7616 | enableval="$enable_filedlg" | |
a0b9e27f | 7617 | |
1e6feb95 VZ |
7618 | if test "$enableval" = yes; then |
7619 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7620 | else | |
7621 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7622 | fi | |
a0b9e27f | 7623 | |
1e6feb95 | 7624 | else |
a0b9e27f | 7625 | |
1e6feb95 VZ |
7626 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
7627 | if test "x$LINE" != x ; then | |
7628 | eval "DEFAULT_$LINE" | |
7629 | else | |
7630 | no_cache=1 | |
7631 | fi | |
7632 | ||
7633 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
a0b9e27f MB |
7634 | |
7635 | fi | |
1e6feb95 VZ |
7636 | |
7637 | ||
7638 | eval "$ac_cv_use_filedlg" | |
7639 | if test "$no_cache" != 1; then | |
7640 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7641 | fi | |
7642 | ||
7643 | if test "$wxUSE_FILEDLG" = yes; then | |
a0b9e27f | 7644 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7645 | else |
a0b9e27f | 7646 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7647 | fi |
a0b9e27f | 7648 | |
1e6feb95 | 7649 | |
5005acfe VZ |
7650 | enablestring= |
7651 | echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6 | |
65d8ef1e | 7652 | echo "configure:7653: checking for --${enablestring:-enable}-finddlg" >&5 |
8db37e06 | 7653 | no_cache=0 |
69d27ff7 MB |
7654 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7655 | if test "${enable_finddlg+set}" = set; then | |
7656 | enableval="$enable_finddlg" | |
a0b9e27f | 7657 | |
8db37e06 | 7658 | if test "$enableval" = yes; then |
69d27ff7 | 7659 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7660 | else |
69d27ff7 | 7661 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 7662 | fi |
a0b9e27f | 7663 | |
8db37e06 | 7664 | else |
a0b9e27f | 7665 | |
8db37e06 VZ |
7666 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
7667 | if test "x$LINE" != x ; then | |
7668 | eval "DEFAULT_$LINE" | |
7669 | else | |
7670 | no_cache=1 | |
7671 | fi | |
7672 | ||
69d27ff7 | 7673 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
a0b9e27f MB |
7674 | |
7675 | fi | |
8db37e06 VZ |
7676 | |
7677 | ||
69d27ff7 | 7678 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7679 | if test "$no_cache" != 1; then |
69d27ff7 | 7680 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7681 | fi |
7682 | ||
7683 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
a0b9e27f | 7684 | echo "$ac_t""yes" 1>&6 |
8db37e06 | 7685 | else |
a0b9e27f | 7686 | echo "$ac_t""no" 1>&6 |
8db37e06 | 7687 | fi |
a0b9e27f | 7688 | |
8db37e06 | 7689 | |
5005acfe VZ |
7690 | enablestring= |
7691 | echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6 | |
65d8ef1e | 7692 | echo "configure:7693: checking for --${enablestring:-enable}-fontdlg" >&5 |
1e6feb95 VZ |
7693 | no_cache=0 |
7694 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7695 | if test "${enable_fontdlg+set}" = set; then | |
7696 | enableval="$enable_fontdlg" | |
a0b9e27f | 7697 | |
1e6feb95 VZ |
7698 | if test "$enableval" = yes; then |
7699 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7700 | else | |
7701 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7702 | fi | |
a0b9e27f | 7703 | |
1e6feb95 | 7704 | else |
a0b9e27f | 7705 | |
1e6feb95 VZ |
7706 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
7707 | if test "x$LINE" != x ; then | |
7708 | eval "DEFAULT_$LINE" | |
7709 | else | |
7710 | no_cache=1 | |
7711 | fi | |
7712 | ||
7713 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
a0b9e27f MB |
7714 | |
7715 | fi | |
1e6feb95 VZ |
7716 | |
7717 | ||
7718 | eval "$ac_cv_use_fontdlg" | |
7719 | if test "$no_cache" != 1; then | |
7720 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7721 | fi | |
7722 | ||
7723 | if test "$wxUSE_FONTDLG" = yes; then | |
a0b9e27f | 7724 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7725 | else |
a0b9e27f | 7726 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7727 | fi |
a0b9e27f | 7728 | |
1e6feb95 | 7729 | |
5005acfe VZ |
7730 | enablestring= |
7731 | echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6 | |
65d8ef1e | 7732 | echo "configure:7733: checking for --${enablestring:-enable}-dirdlg" >&5 |
1e6feb95 VZ |
7733 | no_cache=0 |
7734 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7735 | if test "${enable_dirdlg+set}" = set; then | |
7736 | enableval="$enable_dirdlg" | |
a0b9e27f | 7737 | |
1e6feb95 VZ |
7738 | if test "$enableval" = yes; then |
7739 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7740 | else | |
7741 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7742 | fi | |
a0b9e27f | 7743 | |
1e6feb95 | 7744 | else |
a0b9e27f | 7745 | |
1e6feb95 VZ |
7746 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
7747 | if test "x$LINE" != x ; then | |
7748 | eval "DEFAULT_$LINE" | |
7749 | else | |
7750 | no_cache=1 | |
7751 | fi | |
7752 | ||
7753 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
a0b9e27f MB |
7754 | |
7755 | fi | |
1e6feb95 VZ |
7756 | |
7757 | ||
7758 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7759 | if test "$no_cache" != 1; then |
1e6feb95 | 7760 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7761 | fi |
7762 | ||
1e6feb95 | 7763 | if test "$wxUSE_DIRDLG" = yes; then |
a0b9e27f | 7764 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7765 | else |
a0b9e27f | 7766 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7767 | fi |
a0b9e27f | 7768 | |
698dcdb6 | 7769 | |
5005acfe VZ |
7770 | enablestring= |
7771 | echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6 | |
65d8ef1e | 7772 | echo "configure:7773: checking for --${enablestring:-enable}-msgdlg" >&5 |
10f2d63a | 7773 | no_cache=0 |
1e6feb95 VZ |
7774 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7775 | if test "${enable_msgdlg+set}" = set; then | |
7776 | enableval="$enable_msgdlg" | |
a0b9e27f | 7777 | |
10f2d63a | 7778 | if test "$enableval" = yes; then |
1e6feb95 | 7779 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7780 | else |
1e6feb95 | 7781 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7782 | fi |
a0b9e27f | 7783 | |
10f2d63a | 7784 | else |
a0b9e27f | 7785 | |
1e6feb95 | 7786 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7787 | if test "x$LINE" != x ; then |
7788 | eval "DEFAULT_$LINE" | |
7789 | else | |
7790 | no_cache=1 | |
7791 | fi | |
7792 | ||
1e6feb95 | 7793 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
a0b9e27f MB |
7794 | |
7795 | fi | |
10f2d63a VZ |
7796 | |
7797 | ||
1e6feb95 | 7798 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7799 | if test "$no_cache" != 1; then |
1e6feb95 | 7800 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7801 | fi |
7802 | ||
1e6feb95 | 7803 | if test "$wxUSE_MSGDLG" = yes; then |
a0b9e27f | 7804 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7805 | else |
a0b9e27f | 7806 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7807 | fi |
a0b9e27f | 7808 | |
10f2d63a | 7809 | |
5005acfe VZ |
7810 | enablestring= |
7811 | echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6 | |
65d8ef1e | 7812 | echo "configure:7813: checking for --${enablestring:-enable}-numberdlg" >&5 |
10f2d63a | 7813 | no_cache=0 |
1e6feb95 VZ |
7814 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7815 | if test "${enable_numberdlg+set}" = set; then | |
7816 | enableval="$enable_numberdlg" | |
a0b9e27f | 7817 | |
10f2d63a | 7818 | if test "$enableval" = yes; then |
1e6feb95 | 7819 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7820 | else |
1e6feb95 | 7821 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7822 | fi |
a0b9e27f | 7823 | |
10f2d63a | 7824 | else |
a0b9e27f | 7825 | |
1e6feb95 | 7826 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7827 | if test "x$LINE" != x ; then |
7828 | eval "DEFAULT_$LINE" | |
7829 | else | |
7830 | no_cache=1 | |
7831 | fi | |
7832 | ||
1e6feb95 | 7833 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
a0b9e27f MB |
7834 | |
7835 | fi | |
10f2d63a VZ |
7836 | |
7837 | ||
1e6feb95 | 7838 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7839 | if test "$no_cache" != 1; then |
1e6feb95 | 7840 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7841 | fi |
7842 | ||
1e6feb95 | 7843 | if test "$wxUSE_NUMBERDLG" = yes; then |
a0b9e27f | 7844 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7845 | else |
a0b9e27f | 7846 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7847 | fi |
a0b9e27f | 7848 | |
10f2d63a | 7849 | |
5005acfe VZ |
7850 | enablestring= |
7851 | echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6 | |
65d8ef1e | 7852 | echo "configure:7853: checking for --${enablestring:-enable}-splash" >&5 |
cbca9943 VZ |
7853 | no_cache=0 |
7854 | # Check whether --enable-splash or --disable-splash was given. | |
7855 | if test "${enable_splash+set}" = set; then | |
7856 | enableval="$enable_splash" | |
a0b9e27f | 7857 | |
cbca9943 VZ |
7858 | if test "$enableval" = yes; then |
7859 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7860 | else | |
7861 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7862 | fi | |
a0b9e27f | 7863 | |
cbca9943 | 7864 | else |
a0b9e27f | 7865 | |
cbca9943 VZ |
7866 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
7867 | if test "x$LINE" != x ; then | |
7868 | eval "DEFAULT_$LINE" | |
7869 | else | |
7870 | no_cache=1 | |
7871 | fi | |
7872 | ||
7873 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
a0b9e27f MB |
7874 | |
7875 | fi | |
cbca9943 VZ |
7876 | |
7877 | ||
7878 | eval "$ac_cv_use_splash" | |
7879 | if test "$no_cache" != 1; then | |
7880 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7881 | fi | |
7882 | ||
7883 | if test "$wxUSE_SPLASH" = yes; then | |
a0b9e27f | 7884 | echo "$ac_t""yes" 1>&6 |
cbca9943 | 7885 | else |
a0b9e27f | 7886 | echo "$ac_t""no" 1>&6 |
cbca9943 | 7887 | fi |
a0b9e27f | 7888 | |
cbca9943 | 7889 | |
5005acfe VZ |
7890 | enablestring= |
7891 | echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6 | |
65d8ef1e | 7892 | echo "configure:7893: checking for --${enablestring:-enable}-textdlg" >&5 |
10f2d63a VZ |
7893 | no_cache=0 |
7894 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7895 | if test "${enable_textdlg+set}" = set; then | |
7896 | enableval="$enable_textdlg" | |
a0b9e27f | 7897 | |
10f2d63a VZ |
7898 | if test "$enableval" = yes; then |
7899 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7900 | else | |
7901 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7902 | fi | |
a0b9e27f | 7903 | |
10f2d63a | 7904 | else |
a0b9e27f | 7905 | |
10f2d63a VZ |
7906 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7907 | if test "x$LINE" != x ; then | |
7908 | eval "DEFAULT_$LINE" | |
7909 | else | |
7910 | no_cache=1 | |
7911 | fi | |
7912 | ||
7913 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
a0b9e27f MB |
7914 | |
7915 | fi | |
10f2d63a VZ |
7916 | |
7917 | ||
7918 | eval "$ac_cv_use_textdlg" | |
7919 | if test "$no_cache" != 1; then | |
7920 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7921 | fi | |
7922 | ||
7923 | if test "$wxUSE_TEXTDLG" = yes; then | |
a0b9e27f | 7924 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7925 | else |
a0b9e27f | 7926 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7927 | fi |
a0b9e27f | 7928 | |
10f2d63a | 7929 | |
5005acfe VZ |
7930 | enablestring= |
7931 | echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6 | |
65d8ef1e | 7932 | echo "configure:7933: checking for --${enablestring:-enable}-tipdlg" >&5 |
10f2d63a VZ |
7933 | no_cache=0 |
7934 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7935 | if test "${enable_tipdlg+set}" = set; then | |
7936 | enableval="$enable_tipdlg" | |
a0b9e27f | 7937 | |
10f2d63a VZ |
7938 | if test "$enableval" = yes; then |
7939 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7940 | else | |
7941 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7942 | fi | |
a0b9e27f | 7943 | |
10f2d63a | 7944 | else |
a0b9e27f | 7945 | |
10f2d63a VZ |
7946 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7947 | if test "x$LINE" != x ; then | |
7948 | eval "DEFAULT_$LINE" | |
7949 | else | |
7950 | no_cache=1 | |
7951 | fi | |
7952 | ||
7953 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
a0b9e27f MB |
7954 | |
7955 | fi | |
10f2d63a VZ |
7956 | |
7957 | ||
7958 | eval "$ac_cv_use_tipdlg" | |
7959 | if test "$no_cache" != 1; then | |
7960 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7961 | fi | |
7962 | ||
7963 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
a0b9e27f | 7964 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7965 | else |
a0b9e27f | 7966 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7967 | fi |
a0b9e27f | 7968 | |
10f2d63a | 7969 | |
5005acfe VZ |
7970 | enablestring= |
7971 | echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6 | |
65d8ef1e | 7972 | echo "configure:7973: checking for --${enablestring:-enable}-progressdlg" >&5 |
10f2d63a VZ |
7973 | no_cache=0 |
7974 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7975 | if test "${enable_progressdlg+set}" = set; then | |
7976 | enableval="$enable_progressdlg" | |
a0b9e27f | 7977 | |
10f2d63a VZ |
7978 | if test "$enableval" = yes; then |
7979 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7980 | else | |
7981 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7982 | fi | |
a0b9e27f | 7983 | |
10f2d63a | 7984 | else |
a0b9e27f | 7985 | |
10f2d63a VZ |
7986 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7987 | if test "x$LINE" != x ; then | |
7988 | eval "DEFAULT_$LINE" | |
7989 | else | |
7990 | no_cache=1 | |
7991 | fi | |
7992 | ||
7993 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
a0b9e27f MB |
7994 | |
7995 | fi | |
10f2d63a VZ |
7996 | |
7997 | ||
7998 | eval "$ac_cv_use_progressdlg" | |
7999 | if test "$no_cache" != 1; then | |
8000 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
8001 | fi | |
8002 | ||
8003 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
a0b9e27f | 8004 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8005 | else |
a0b9e27f | 8006 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8007 | fi |
a0b9e27f | 8008 | |
10f2d63a | 8009 | |
5005acfe VZ |
8010 | enablestring= |
8011 | echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6 | |
65d8ef1e | 8012 | echo "configure:8013: checking for --${enablestring:-enable}-wizarddlg" >&5 |
b1f5d087 VZ |
8013 | no_cache=0 |
8014 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
8015 | if test "${enable_wizarddlg+set}" = set; then | |
8016 | enableval="$enable_wizarddlg" | |
a0b9e27f | 8017 | |
b1f5d087 VZ |
8018 | if test "$enableval" = yes; then |
8019 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
8020 | else | |
8021 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
8022 | fi | |
a0b9e27f | 8023 | |
b1f5d087 | 8024 | else |
a0b9e27f | 8025 | |
b1f5d087 VZ |
8026 | LINE=`grep "wxUSE_WIZARDDLG" ${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_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
a0b9e27f MB |
8034 | |
8035 | fi | |
b1f5d087 VZ |
8036 | |
8037 | ||
8038 | eval "$ac_cv_use_wizarddlg" | |
8039 | if test "$no_cache" != 1; then | |
8040 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
8041 | fi | |
8042 | ||
8043 | if test "$wxUSE_WIZARDDLG" = yes; then | |
a0b9e27f | 8044 | echo "$ac_t""yes" 1>&6 |
b1f5d087 | 8045 | else |
a0b9e27f | 8046 | echo "$ac_t""no" 1>&6 |
b1f5d087 | 8047 | fi |
a0b9e27f | 8048 | |
8284b0c5 MB |
8049 | |
8050 | ||
52127426 | 8051 | |
5005acfe VZ |
8052 | enablestring= |
8053 | echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6 | |
65d8ef1e | 8054 | echo "configure:8055: checking for --${enablestring:-enable}-menus" >&5 |
1e6feb95 VZ |
8055 | no_cache=0 |
8056 | # Check whether --enable-menus or --disable-menus was given. | |
8057 | if test "${enable_menus+set}" = set; then | |
8058 | enableval="$enable_menus" | |
a0b9e27f | 8059 | |
1e6feb95 VZ |
8060 | if test "$enableval" = yes; then |
8061 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8062 | else | |
8063 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8064 | fi | |
a0b9e27f | 8065 | |
1e6feb95 | 8066 | else |
a0b9e27f | 8067 | |
1e6feb95 VZ |
8068 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
8069 | if test "x$LINE" != x ; then | |
8070 | eval "DEFAULT_$LINE" | |
8071 | else | |
8072 | no_cache=1 | |
8073 | fi | |
8074 | ||
8075 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
a0b9e27f MB |
8076 | |
8077 | fi | |
1e6feb95 VZ |
8078 | |
8079 | ||
8080 | eval "$ac_cv_use_menus" | |
8081 | if test "$no_cache" != 1; then | |
8082 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8083 | fi | |
8084 | ||
8085 | if test "$wxUSE_MENUS" = yes; then | |
a0b9e27f | 8086 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8087 | else |
a0b9e27f | 8088 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8089 | fi |
a0b9e27f | 8090 | |
1e6feb95 | 8091 | |
5005acfe VZ |
8092 | enablestring= |
8093 | echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6 | |
65d8ef1e | 8094 | echo "configure:8095: checking for --${enablestring:-enable}-miniframe" >&5 |
10f2d63a VZ |
8095 | no_cache=0 |
8096 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8097 | if test "${enable_miniframe+set}" = set; then | |
8098 | enableval="$enable_miniframe" | |
a0b9e27f | 8099 | |
10f2d63a VZ |
8100 | if test "$enableval" = yes; then |
8101 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8102 | else | |
8103 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8104 | fi | |
a0b9e27f | 8105 | |
10f2d63a | 8106 | else |
a0b9e27f | 8107 | |
10f2d63a VZ |
8108 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
8109 | if test "x$LINE" != x ; then | |
8110 | eval "DEFAULT_$LINE" | |
8111 | else | |
8112 | no_cache=1 | |
8113 | fi | |
8114 | ||
8115 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
a0b9e27f MB |
8116 | |
8117 | fi | |
10f2d63a VZ |
8118 | |
8119 | ||
8120 | eval "$ac_cv_use_miniframe" | |
8121 | if test "$no_cache" != 1; then | |
8122 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8123 | fi | |
8124 | ||
8125 | if test "$wxUSE_MINIFRAME" = yes; then | |
a0b9e27f | 8126 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8127 | else |
a0b9e27f | 8128 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8129 | fi |
a0b9e27f | 8130 | |
10f2d63a | 8131 | |
5005acfe VZ |
8132 | enablestring= |
8133 | echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6 | |
65d8ef1e | 8134 | echo "configure:8135: checking for --${enablestring:-enable}-tooltips" >&5 |
10f2d63a VZ |
8135 | no_cache=0 |
8136 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8137 | if test "${enable_tooltips+set}" = set; then | |
8138 | enableval="$enable_tooltips" | |
a0b9e27f | 8139 | |
10f2d63a VZ |
8140 | if test "$enableval" = yes; then |
8141 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8142 | else | |
8143 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8144 | fi | |
a0b9e27f | 8145 | |
10f2d63a | 8146 | else |
a0b9e27f | 8147 | |
10f2d63a VZ |
8148 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
8149 | if test "x$LINE" != x ; then | |
8150 | eval "DEFAULT_$LINE" | |
8151 | else | |
8152 | no_cache=1 | |
8153 | fi | |
8154 | ||
8155 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
a0b9e27f MB |
8156 | |
8157 | fi | |
10f2d63a VZ |
8158 | |
8159 | ||
8160 | eval "$ac_cv_use_tooltips" | |
8161 | if test "$no_cache" != 1; then | |
8162 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8163 | fi | |
8164 | ||
8165 | if test "$wxUSE_TOOLTIPS" = yes; then | |
a0b9e27f | 8166 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8167 | else |
a0b9e27f | 8168 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8169 | fi |
a0b9e27f | 8170 | |
10f2d63a | 8171 | |
5005acfe VZ |
8172 | enablestring= |
8173 | echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6 | |
65d8ef1e | 8174 | echo "configure:8175: checking for --${enablestring:-enable}-splines" >&5 |
10f2d63a VZ |
8175 | no_cache=0 |
8176 | # Check whether --enable-splines or --disable-splines was given. | |
8177 | if test "${enable_splines+set}" = set; then | |
8178 | enableval="$enable_splines" | |
a0b9e27f | 8179 | |
10f2d63a VZ |
8180 | if test "$enableval" = yes; then |
8181 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8182 | else | |
8183 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8184 | fi | |
a0b9e27f | 8185 | |
10f2d63a | 8186 | else |
a0b9e27f | 8187 | |
10f2d63a VZ |
8188 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
8189 | if test "x$LINE" != x ; then | |
8190 | eval "DEFAULT_$LINE" | |
8191 | else | |
8192 | no_cache=1 | |
8193 | fi | |
8194 | ||
8195 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
a0b9e27f MB |
8196 | |
8197 | fi | |
10f2d63a VZ |
8198 | |
8199 | ||
8200 | eval "$ac_cv_use_splines" | |
8201 | if test "$no_cache" != 1; then | |
8202 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8203 | fi | |
8204 | ||
8205 | if test "$wxUSE_SPLINES" = yes; then | |
a0b9e27f | 8206 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8207 | else |
a0b9e27f | 8208 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8209 | fi |
a0b9e27f | 8210 | |
10f2d63a | 8211 | |
5005acfe VZ |
8212 | enablestring= |
8213 | echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6 | |
65d8ef1e | 8214 | echo "configure:8215: checking for --${enablestring:-enable}-validators" >&5 |
10f2d63a VZ |
8215 | no_cache=0 |
8216 | # Check whether --enable-validators or --disable-validators was given. | |
8217 | if test "${enable_validators+set}" = set; then | |
8218 | enableval="$enable_validators" | |
a0b9e27f | 8219 | |
10f2d63a VZ |
8220 | if test "$enableval" = yes; then |
8221 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8222 | else | |
8223 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8224 | fi | |
a0b9e27f | 8225 | |
10f2d63a | 8226 | else |
a0b9e27f | 8227 | |
10f2d63a VZ |
8228 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
8229 | if test "x$LINE" != x ; then | |
8230 | eval "DEFAULT_$LINE" | |
8231 | else | |
8232 | no_cache=1 | |
8233 | fi | |
8234 | ||
8235 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
a0b9e27f MB |
8236 | |
8237 | fi | |
10f2d63a VZ |
8238 | |
8239 | ||
8240 | eval "$ac_cv_use_validators" | |
8241 | if test "$no_cache" != 1; then | |
8242 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8243 | fi | |
8244 | ||
8245 | if test "$wxUSE_VALIDATORS" = yes; then | |
a0b9e27f | 8246 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8247 | else |
a0b9e27f | 8248 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8249 | fi |
a0b9e27f | 8250 | |
10f2d63a | 8251 | |
5005acfe VZ |
8252 | enablestring= |
8253 | echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6 | |
65d8ef1e | 8254 | echo "configure:8255: checking for --${enablestring:-enable}-busyinfo" >&5 |
10f2d63a VZ |
8255 | no_cache=0 |
8256 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8257 | if test "${enable_busyinfo+set}" = set; then | |
8258 | enableval="$enable_busyinfo" | |
a0b9e27f | 8259 | |
10f2d63a VZ |
8260 | if test "$enableval" = yes; then |
8261 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8262 | else | |
8263 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8264 | fi | |
a0b9e27f | 8265 | |
10f2d63a | 8266 | else |
a0b9e27f | 8267 | |
10f2d63a VZ |
8268 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8269 | if test "x$LINE" != x ; then | |
8270 | eval "DEFAULT_$LINE" | |
8271 | else | |
8272 | no_cache=1 | |
8273 | fi | |
8274 | ||
8275 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
a0b9e27f MB |
8276 | |
8277 | fi | |
10f2d63a VZ |
8278 | |
8279 | ||
8280 | eval "$ac_cv_use_busyinfo" | |
8281 | if test "$no_cache" != 1; then | |
8282 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8283 | fi | |
8284 | ||
8285 | if test "$wxUSE_BUSYINFO" = yes; then | |
a0b9e27f | 8286 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8287 | else |
a0b9e27f | 8288 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8289 | fi |
a0b9e27f | 8290 | |
10f2d63a | 8291 | |
5005acfe VZ |
8292 | enablestring= |
8293 | echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6 | |
65d8ef1e | 8294 | echo "configure:8295: checking for --${enablestring:-enable}-joystick" >&5 |
f6bcfd97 BP |
8295 | no_cache=0 |
8296 | # Check whether --enable-joystick or --disable-joystick was given. | |
8297 | if test "${enable_joystick+set}" = set; then | |
8298 | enableval="$enable_joystick" | |
a0b9e27f | 8299 | |
f6bcfd97 BP |
8300 | if test "$enableval" = yes; then |
8301 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8302 | else | |
8303 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8304 | fi | |
a0b9e27f | 8305 | |
f6bcfd97 | 8306 | else |
a0b9e27f | 8307 | |
f6bcfd97 BP |
8308 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8309 | if test "x$LINE" != x ; then | |
8310 | eval "DEFAULT_$LINE" | |
8311 | else | |
8312 | no_cache=1 | |
8313 | fi | |
8314 | ||
8315 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
a0b9e27f MB |
8316 | |
8317 | fi | |
f6bcfd97 BP |
8318 | |
8319 | ||
8320 | eval "$ac_cv_use_joystick" | |
8321 | if test "$no_cache" != 1; then | |
8322 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8323 | fi | |
8324 | ||
8325 | if test "$wxUSE_JOYSTICK" = yes; then | |
a0b9e27f | 8326 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8327 | else |
a0b9e27f | 8328 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8329 | fi |
a0b9e27f | 8330 | |
698dcdb6 | 8331 | |
5005acfe VZ |
8332 | enablestring= |
8333 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
65d8ef1e | 8334 | echo "configure:8335: checking for --${enablestring:-enable}-metafile" >&5 |
1e6feb95 VZ |
8335 | no_cache=0 |
8336 | # Check whether --enable-metafile or --disable-metafile was given. | |
8337 | if test "${enable_metafile+set}" = set; then | |
8338 | enableval="$enable_metafile" | |
a0b9e27f | 8339 | |
1e6feb95 VZ |
8340 | if test "$enableval" = yes; then |
8341 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8342 | else | |
8343 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8344 | fi | |
a0b9e27f | 8345 | |
1e6feb95 | 8346 | else |
a0b9e27f | 8347 | |
1e6feb95 VZ |
8348 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
8349 | if test "x$LINE" != x ; then | |
8350 | eval "DEFAULT_$LINE" | |
8351 | else | |
8352 | no_cache=1 | |
8353 | fi | |
8354 | ||
8355 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
8356 | |
8357 | fi | |
1e6feb95 VZ |
8358 | |
8359 | ||
8360 | eval "$ac_cv_use_metafile" | |
8361 | if test "$no_cache" != 1; then | |
8362 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8363 | fi | |
8364 | ||
8365 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 8366 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8367 | else |
a0b9e27f | 8368 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8369 | fi |
a0b9e27f | 8370 | |
1e6feb95 | 8371 | |
5005acfe VZ |
8372 | enablestring= |
8373 | echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6 | |
65d8ef1e | 8374 | echo "configure:8375: checking for --${enablestring:-enable}-dragimage" >&5 |
24fd6d87 VZ |
8375 | no_cache=0 |
8376 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8377 | if test "${enable_dragimage+set}" = set; then | |
8378 | enableval="$enable_dragimage" | |
a0b9e27f | 8379 | |
24fd6d87 VZ |
8380 | if test "$enableval" = yes; then |
8381 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8382 | else | |
8383 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8384 | fi | |
a0b9e27f | 8385 | |
24fd6d87 | 8386 | else |
a0b9e27f | 8387 | |
24fd6d87 VZ |
8388 | LINE=`grep "wxUSE_DRAGIMAGE" ${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_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
a0b9e27f MB |
8396 | |
8397 | fi | |
24fd6d87 VZ |
8398 | |
8399 | ||
8400 | eval "$ac_cv_use_dragimage" | |
8401 | if test "$no_cache" != 1; then | |
8402 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8403 | fi | |
8404 | ||
8405 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
a0b9e27f | 8406 | echo "$ac_t""yes" 1>&6 |
24fd6d87 | 8407 | else |
a0b9e27f | 8408 | echo "$ac_t""no" 1>&6 |
24fd6d87 | 8409 | fi |
a0b9e27f | 8410 | |
52127426 | 8411 | |
8284b0c5 MB |
8412 | |
8413 | ||
5005acfe VZ |
8414 | enablestring= |
8415 | echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6 | |
65d8ef1e | 8416 | echo "configure:8417: checking for --${enablestring:-enable}-palette" >&5 |
edae8572 VZ |
8417 | no_cache=0 |
8418 | # Check whether --enable-palette or --disable-palette was given. | |
8419 | if test "${enable_palette+set}" = set; then | |
8420 | enableval="$enable_palette" | |
a0b9e27f | 8421 | |
edae8572 VZ |
8422 | if test "$enableval" = yes; then |
8423 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8424 | else | |
8425 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8426 | fi | |
a0b9e27f | 8427 | |
edae8572 | 8428 | else |
a0b9e27f | 8429 | |
edae8572 VZ |
8430 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
8431 | if test "x$LINE" != x ; then | |
8432 | eval "DEFAULT_$LINE" | |
8433 | else | |
8434 | no_cache=1 | |
8435 | fi | |
8436 | ||
8437 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
a0b9e27f MB |
8438 | |
8439 | fi | |
edae8572 VZ |
8440 | |
8441 | ||
8442 | eval "$ac_cv_use_palette" | |
8443 | if test "$no_cache" != 1; then | |
8444 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8445 | fi | |
8446 | ||
8447 | if test "$wxUSE_PALETTE" = yes; then | |
a0b9e27f | 8448 | echo "$ac_t""yes" 1>&6 |
edae8572 | 8449 | else |
a0b9e27f | 8450 | echo "$ac_t""no" 1>&6 |
edae8572 | 8451 | fi |
a0b9e27f | 8452 | |
edae8572 | 8453 | |
5005acfe VZ |
8454 | enablestring= |
8455 | echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6 | |
65d8ef1e | 8456 | echo "configure:8457: checking for --${enablestring:-enable}-image" >&5 |
0046ff7c VS |
8457 | no_cache=0 |
8458 | # Check whether --enable-image or --disable-image was given. | |
8459 | if test "${enable_image+set}" = set; then | |
8460 | enableval="$enable_image" | |
a0b9e27f | 8461 | |
0046ff7c VS |
8462 | if test "$enableval" = yes; then |
8463 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8464 | else | |
8465 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8466 | fi | |
a0b9e27f | 8467 | |
0046ff7c | 8468 | else |
a0b9e27f | 8469 | |
0046ff7c VS |
8470 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8471 | if test "x$LINE" != x ; then | |
8472 | eval "DEFAULT_$LINE" | |
8473 | else | |
8474 | no_cache=1 | |
8475 | fi | |
8476 | ||
8477 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
a0b9e27f MB |
8478 | |
8479 | fi | |
0046ff7c VS |
8480 | |
8481 | ||
8482 | eval "$ac_cv_use_image" | |
8483 | if test "$no_cache" != 1; then | |
8484 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8485 | fi | |
8486 | ||
8487 | if test "$wxUSE_IMAGE" = yes; then | |
a0b9e27f | 8488 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8489 | else |
a0b9e27f | 8490 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8491 | fi |
a0b9e27f | 8492 | |
0046ff7c | 8493 | |
5005acfe VZ |
8494 | enablestring= |
8495 | echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6 | |
65d8ef1e | 8496 | echo "configure:8497: checking for --${enablestring:-enable}-gif" >&5 |
10f2d63a VZ |
8497 | no_cache=0 |
8498 | # Check whether --enable-gif or --disable-gif was given. | |
8499 | if test "${enable_gif+set}" = set; then | |
8500 | enableval="$enable_gif" | |
a0b9e27f | 8501 | |
10f2d63a VZ |
8502 | if test "$enableval" = yes; then |
8503 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8504 | else | |
8505 | ac_cv_use_gif='wxUSE_GIF=no' | |
8506 | fi | |
a0b9e27f | 8507 | |
10f2d63a | 8508 | else |
a0b9e27f | 8509 | |
10f2d63a VZ |
8510 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8511 | if test "x$LINE" != x ; then | |
8512 | eval "DEFAULT_$LINE" | |
8513 | else | |
8514 | no_cache=1 | |
8515 | fi | |
8516 | ||
8517 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
a0b9e27f MB |
8518 | |
8519 | fi | |
10f2d63a VZ |
8520 | |
8521 | ||
8522 | eval "$ac_cv_use_gif" | |
8523 | if test "$no_cache" != 1; then | |
8524 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8525 | fi | |
8526 | ||
8527 | if test "$wxUSE_GIF" = yes; then | |
a0b9e27f | 8528 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8529 | else |
a0b9e27f | 8530 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8531 | fi |
a0b9e27f | 8532 | |
10f2d63a | 8533 | |
5005acfe VZ |
8534 | enablestring= |
8535 | echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6 | |
65d8ef1e | 8536 | echo "configure:8537: checking for --${enablestring:-enable}-pcx" >&5 |
10f2d63a VZ |
8537 | no_cache=0 |
8538 | # Check whether --enable-pcx or --disable-pcx was given. | |
8539 | if test "${enable_pcx+set}" = set; then | |
8540 | enableval="$enable_pcx" | |
a0b9e27f | 8541 | |
10f2d63a VZ |
8542 | if test "$enableval" = yes; then |
8543 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8544 | else | |
8545 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8546 | fi | |
a0b9e27f | 8547 | |
10f2d63a | 8548 | else |
a0b9e27f | 8549 | |
10f2d63a VZ |
8550 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8551 | if test "x$LINE" != x ; then | |
8552 | eval "DEFAULT_$LINE" | |
8553 | else | |
8554 | no_cache=1 | |
8555 | fi | |
8556 | ||
8557 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
a0b9e27f MB |
8558 | |
8559 | fi | |
10f2d63a VZ |
8560 | |
8561 | ||
8562 | eval "$ac_cv_use_pcx" | |
8563 | if test "$no_cache" != 1; then | |
8564 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8565 | fi | |
8566 | ||
8567 | if test "$wxUSE_PCX" = yes; then | |
a0b9e27f | 8568 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8569 | else |
a0b9e27f | 8570 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8571 | fi |
a0b9e27f | 8572 | |
10f2d63a | 8573 | |
5005acfe VZ |
8574 | enablestring= |
8575 | echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6 | |
65d8ef1e | 8576 | echo "configure:8577: checking for --${enablestring:-enable}-iff" >&5 |
4b6b4dfc RR |
8577 | no_cache=0 |
8578 | # Check whether --enable-iff or --disable-iff was given. | |
8579 | if test "${enable_iff+set}" = set; then | |
8580 | enableval="$enable_iff" | |
a0b9e27f | 8581 | |
4b6b4dfc RR |
8582 | if test "$enableval" = yes; then |
8583 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8584 | else | |
8585 | ac_cv_use_iff='wxUSE_IFF=no' | |
8586 | fi | |
a0b9e27f | 8587 | |
4b6b4dfc | 8588 | else |
a0b9e27f | 8589 | |
4b6b4dfc RR |
8590 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
8591 | if test "x$LINE" != x ; then | |
8592 | eval "DEFAULT_$LINE" | |
8593 | else | |
8594 | no_cache=1 | |
8595 | fi | |
8596 | ||
8597 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
a0b9e27f MB |
8598 | |
8599 | fi | |
4b6b4dfc RR |
8600 | |
8601 | ||
8602 | eval "$ac_cv_use_iff" | |
8603 | if test "$no_cache" != 1; then | |
8604 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8605 | fi | |
8606 | ||
8607 | if test "$wxUSE_IFF" = yes; then | |
a0b9e27f | 8608 | echo "$ac_t""yes" 1>&6 |
4b6b4dfc | 8609 | else |
a0b9e27f | 8610 | echo "$ac_t""no" 1>&6 |
4b6b4dfc | 8611 | fi |
a0b9e27f | 8612 | |
4b6b4dfc | 8613 | |
5005acfe VZ |
8614 | enablestring= |
8615 | echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6 | |
65d8ef1e | 8616 | echo "configure:8617: checking for --${enablestring:-enable}-pnm" >&5 |
10f2d63a VZ |
8617 | no_cache=0 |
8618 | # Check whether --enable-pnm or --disable-pnm was given. | |
8619 | if test "${enable_pnm+set}" = set; then | |
8620 | enableval="$enable_pnm" | |
a0b9e27f | 8621 | |
10f2d63a VZ |
8622 | if test "$enableval" = yes; then |
8623 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8624 | else | |
8625 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8626 | fi | |
a0b9e27f | 8627 | |
10f2d63a | 8628 | else |
a0b9e27f | 8629 | |
10f2d63a VZ |
8630 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8631 | if test "x$LINE" != x ; then | |
8632 | eval "DEFAULT_$LINE" | |
8633 | else | |
8634 | no_cache=1 | |
8635 | fi | |
8636 | ||
8637 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
a0b9e27f MB |
8638 | |
8639 | fi | |
10f2d63a VZ |
8640 | |
8641 | ||
8642 | eval "$ac_cv_use_pnm" | |
8643 | if test "$no_cache" != 1; then | |
8644 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8645 | fi | |
8646 | ||
8647 | if test "$wxUSE_PNM" = yes; then | |
a0b9e27f | 8648 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8649 | else |
a0b9e27f | 8650 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8651 | fi |
a0b9e27f | 8652 | |
10f2d63a | 8653 | |
5005acfe VZ |
8654 | enablestring= |
8655 | echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6 | |
65d8ef1e | 8656 | echo "configure:8657: checking for --${enablestring:-enable}-xpm" >&5 |
0046ff7c | 8657 | no_cache=0 |
69d27ff7 MB |
8658 | # Check whether --enable-xpm or --disable-xpm was given. |
8659 | if test "${enable_xpm+set}" = set; then | |
8660 | enableval="$enable_xpm" | |
a0b9e27f | 8661 | |
0046ff7c | 8662 | if test "$enableval" = yes; then |
69d27ff7 | 8663 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8664 | else |
69d27ff7 | 8665 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8666 | fi |
a0b9e27f | 8667 | |
0046ff7c | 8668 | else |
a0b9e27f | 8669 | |
0046ff7c VS |
8670 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8671 | if test "x$LINE" != x ; then | |
8672 | eval "DEFAULT_$LINE" | |
8673 | else | |
8674 | no_cache=1 | |
8675 | fi | |
8676 | ||
69d27ff7 | 8677 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
a0b9e27f MB |
8678 | |
8679 | fi | |
0046ff7c VS |
8680 | |
8681 | ||
69d27ff7 | 8682 | eval "$ac_cv_use_xpm" |
0046ff7c | 8683 | if test "$no_cache" != 1; then |
69d27ff7 | 8684 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8685 | fi |
8686 | ||
8687 | if test "$wxUSE_XPM" = yes; then | |
a0b9e27f | 8688 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8689 | else |
a0b9e27f | 8690 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8691 | fi |
a0b9e27f | 8692 | |
0046ff7c | 8693 | |
5005acfe VZ |
8694 | enablestring= |
8695 | echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6 | |
65d8ef1e | 8696 | echo "configure:8697: checking for --${enablestring:-enable}-ico_cur" >&5 |
658974ae | 8697 | no_cache=0 |
c7206e64 VS |
8698 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8699 | if test "${enable_ico_cur+set}" = set; then | |
8700 | enableval="$enable_ico_cur" | |
a0b9e27f | 8701 | |
658974ae | 8702 | if test "$enableval" = yes; then |
c7206e64 | 8703 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8704 | else |
c7206e64 | 8705 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 8706 | fi |
a0b9e27f | 8707 | |
658974ae | 8708 | else |
a0b9e27f | 8709 | |
658974ae VS |
8710 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
8711 | if test "x$LINE" != x ; then | |
8712 | eval "DEFAULT_$LINE" | |
8713 | else | |
8714 | no_cache=1 | |
8715 | fi | |
8716 | ||
c7206e64 | 8717 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
a0b9e27f MB |
8718 | |
8719 | fi | |
658974ae VS |
8720 | |
8721 | ||
c7206e64 | 8722 | eval "$ac_cv_use_ico_cur" |
658974ae | 8723 | if test "$no_cache" != 1; then |
c7206e64 | 8724 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8725 | fi |
8726 | ||
8727 | if test "$wxUSE_ICO_CUR" = yes; then | |
a0b9e27f | 8728 | echo "$ac_t""yes" 1>&6 |
658974ae | 8729 | else |
a0b9e27f | 8730 | echo "$ac_t""no" 1>&6 |
658974ae | 8731 | fi |
a0b9e27f | 8732 | |
658974ae | 8733 | |
b12915c1 VZ |
8734 | fi |
8735 | ||
d558c907 VS |
8736 | case "${host}" in |
8737 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 MB |
8738 | PATH_IFS=';' |
8739 | LEX_STEM="lexyy" | |
d558c907 VS |
8740 | ;; |
8741 | *) | |
8742 | PATH_IFS=':' | |
8743 | LEX_STEM="lex.yy" | |
8744 | ;; | |
8745 | esac | |
8746 | ||
8284b0c5 MB |
8747 | |
8748 | ||
10f2d63a VZ |
8749 | echo "saving argument cache $wx_arg_cache_file" |
8750 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
a0b9e27f | 8751 | |
52127426 | 8752 | |
8284b0c5 | 8753 | |
a0b9e27f | 8754 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 |
65d8ef1e | 8755 | echo "configure:8756: checking for toolkit" >&5 |
89e6bf6d VZ |
8756 | |
8757 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
8758 | if test "$wxUSE_WINE" = "yes"; then | |
8759 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
8760 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
8761 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
8762 | fi | |
10f2d63a VZ |
8763 | |
8764 | if test "$wxUSE_GUI" = "yes"; then | |
8765 | ||
3a922bb4 | 8766 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 8767 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
3a922bb4 | 8768 | fi |
b12915c1 | 8769 | |
3a922bb4 RL |
8770 | if test "$TOOLKIT_GIVEN" = 1; then |
8771 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8772 | var=wxUSE_$toolkit | |
8773 | eval "value=\$${var}" | |
8774 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8775 | done | |
10f2d63a | 8776 | else |
3a922bb4 RL |
8777 | for toolkit in `echo $ALL_TOOLKITS`; do |
8778 | if test "$has_toolkit_in_cache" != 1; then | |
8779 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8780 | else | |
8781 | var=DEFAULT_wxUSE_$toolkit | |
8782 | fi | |
8783 | eval "wxUSE_$toolkit=\$${var}" | |
8784 | done | |
10f2d63a | 8785 | fi |
10f2d63a | 8786 | |
3a922bb4 | 8787 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
89e6bf6d | 8788 | + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8789 | |
d558c907 | 8790 | case "${host}" in |
6fa882bd | 8791 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8792 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8793 | esac |
10f2d63a | 8794 | |
3a922bb4 RL |
8795 | case "$NUM_TOOLKITS" in |
8796 | 1) | |
8797 | ;; | |
8798 | 0) | |
a0b9e27f | 8799 | { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; } |
3a922bb4 RL |
8800 | ;; |
8801 | *) | |
a0b9e27f | 8802 | { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; } |
3a922bb4 | 8803 | esac |
10f2d63a | 8804 | |
3a922bb4 RL |
8805 | for toolkit in `echo $ALL_TOOLKITS`; do |
8806 | var=wxUSE_$toolkit | |
8807 | eval "value=\$${var}" | |
8808 | if test "x$value" != x; then | |
8809 | cache_var=CACHE_$toolkit | |
8810 | eval "cache=\$${cache_var}" | |
8811 | if test "$cache" = 1; then | |
8812 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8813 | fi | |
8814 | if test "$value" = 1; then | |
8815 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
a0b9e27f | 8816 | echo "$ac_t""$toolkit_echo" 1>&6 |
3a922bb4 RL |
8817 | fi |
8818 | fi | |
8819 | done | |
10f2d63a | 8820 | else |
a0b9e27f | 8821 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8822 | fi |
8823 | ||
43d99b6d VS |
8824 | wants_win32=0 |
8825 | doesnt_want_win32=0 | |
17234b26 MB |
8826 | case "${host}" in |
8827 | *-*-cygwin*) | |
8828 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
8829 | wants_win32=1 |
8830 | else | |
8831 | doesnt_want_win32=1 | |
17234b26 MB |
8832 | fi |
8833 | ;; | |
8834 | *-*-mingw*) | |
43d99b6d | 8835 | wants_win32=1 |
17234b26 MB |
8836 | ;; |
8837 | esac | |
8838 | ||
89e6bf6d VZ |
8839 | if test "$wxUSE_WINE" = "yes"; then |
8840 | wants_win32=1 | |
8841 | CC=winegcc | |
8842 | CXX=wineg++ | |
8843 | RESCOMP=wrc | |
8844 | fi | |
8845 | ||
43d99b6d | 8846 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
8847 | USE_UNIX=0 |
8848 | USE_WIN32=1 | |
a0b9e27f | 8849 | cat >> confdefs.h <<\EOF |
17234b26 | 8850 | #define __WIN32__ 1 |
a0b9e27f | 8851 | EOF |
17234b26 | 8852 | |
a0b9e27f | 8853 | cat >> confdefs.h <<\EOF |
17234b26 | 8854 | #define __WIN95__ 1 |
a0b9e27f | 8855 | EOF |
17234b26 | 8856 | |
a0b9e27f | 8857 | cat >> confdefs.h <<\EOF |
17234b26 | 8858 | #define __WINDOWS__ 1 |
a0b9e27f | 8859 | EOF |
17234b26 | 8860 | |
a0b9e27f | 8861 | cat >> confdefs.h <<\EOF |
17234b26 | 8862 | #define __GNUWIN32__ 1 |
a0b9e27f | 8863 | EOF |
17234b26 | 8864 | |
a0b9e27f | 8865 | cat >> confdefs.h <<\EOF |
17234b26 | 8866 | #define STRICT 1 |
a0b9e27f | 8867 | EOF |
17234b26 | 8868 | |
a0b9e27f | 8869 | cat >> confdefs.h <<\EOF |
17234b26 | 8870 | #define WINVER 0x0400 |
a0b9e27f | 8871 | EOF |
17234b26 | 8872 | |
43d99b6d VS |
8873 | fi |
8874 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
8875 | USE_UNIX=1 |
8876 | USE_WIN32=0 | |
8877 | fi | |
8878 | ||
8879 | if test "$USE_UNIX" = 1 ; then | |
8880 | wxUSE_UNIX=yes | |
a0b9e27f | 8881 | cat >> confdefs.h <<\EOF |
17234b26 | 8882 | #define __UNIX__ 1 |
a0b9e27f | 8883 | EOF |
17234b26 MB |
8884 | |
8885 | fi | |
8886 | ||
8284b0c5 | 8887 | |
a0b9e27f | 8888 | cat > confcache <<\EOF |
10f2d63a VZ |
8889 | # This file is a shell script that caches the results of configure |
8890 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
8891 | # scripts and configure runs. It is not useful on other systems. |
8892 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8893 | # |
a0b9e27f MB |
8894 | # By default, configure uses ./config.cache as the cache file, |
8895 | # creating it if it does not exist already. You can give configure | |
8896 | # the --cache-file=FILE option to use a different cache file; that is | |
8897 | # what configure does when it calls configure scripts in | |
8898 | # subdirectories, so they share the cache. | |
8899 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8900 | # config.status only pays attention to the cache file if you give it the | |
8901 | # --recheck option to rerun configure. | |
10f2d63a | 8902 | # |
a0b9e27f | 8903 | EOF |
10f2d63a VZ |
8904 | # The following way of writing the cache mishandles newlines in values, |
8905 | # but we know of no workaround that is simple, portable, and efficient. | |
8906 | # So, don't put newlines in cache variables' values. | |
8907 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8908 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
8909 | (set) 2>&1 | |
8910 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8911 | *ac_space=\ *) | |
8912 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8913 | # turns \\\\ into \\, and sed turns \\ into \). | |
8914 | sed -n \ | |
8915 | -e "s/'/'\\\\''/g" \ | |
8916 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8917 | ;; | |
8918 | *) | |
8919 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8920 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8921 | ;; | |
8922 | esac >> confcache | |
8923 | if cmp -s $cache_file confcache; then | |
8924 | : | |
8925 | else | |
10f2d63a | 8926 | if test -w $cache_file; then |
a0b9e27f MB |
8927 | echo "updating cache $cache_file" |
8928 | cat confcache > $cache_file | |
10f2d63a VZ |
8929 | else |
8930 | echo "not updating unwritable cache $cache_file" | |
8931 | fi | |
8932 | fi | |
8933 | rm -f confcache | |
8934 | ||
a0b9e27f | 8935 | |
e59890c3 | 8936 | if test "$build" != "$host" ; then |
9d353d4a | 8937 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8938 | CC=$host_alias-gcc |
8939 | CXX=$host_alias-c++ | |
8940 | AR=$host_alias-ar | |
8941 | RANLIB=$host_alias-ranlib | |
8942 | DLLTOOL=$host_alias-dlltool | |
8943 | RESCOMP=$host_alias-windres | |
8944 | LD=$host_alias-ld | |
8945 | NM=$host_alias-nm | |
8946 | STRIP=$host_alias-strip | |
8947 | else | |
a0b9e27f | 8948 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } |
3a922bb4 | 8949 | fi |
10f2d63a VZ |
8950 | fi |
8951 | ||
ec603395 | 8952 | CFLAGS=${CFLAGS:=} |
a0b9e27f | 8953 | # Extract the first word of "gcc", so it can be a program name with args. |
8284b0c5 | 8954 | set dummy gcc; ac_word=$2 |
a0b9e27f | 8955 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
65d8ef1e | 8956 | echo "configure:8957: checking for $ac_word" >&5 |
a0b9e27f MB |
8957 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8958 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8959 | else |
8960 | if test -n "$CC"; then | |
8961 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8962 | else |
a0b9e27f MB |
8963 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8964 | ac_dummy="$PATH" | |
8965 | for ac_dir in $ac_dummy; do | |
8966 | test -z "$ac_dir" && ac_dir=. | |
8967 | if test -f $ac_dir/$ac_word; then | |
8968 | ac_cv_prog_CC="gcc" | |
8969 | break | |
8970 | fi | |
8971 | done | |
8972 | IFS="$ac_save_ifs" | |
10f2d63a | 8973 | fi |
6232543b | 8974 | fi |
a0b9e27f | 8975 | CC="$ac_cv_prog_CC" |
6232543b | 8976 | if test -n "$CC"; then |
a0b9e27f | 8977 | echo "$ac_t""$CC" 1>&6 |
247f5006 | 8978 | else |
a0b9e27f | 8979 | echo "$ac_t""no" 1>&6 |
247f5006 VZ |
8980 | fi |
8981 | ||
5c6fa7d2 RR |
8982 | if test -z "$CC"; then |
8983 | # Extract the first word of "cc", so it can be a program name with args. | |
8984 | set dummy cc; ac_word=$2 | |
a0b9e27f | 8985 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
65d8ef1e | 8986 | echo "configure:8987: checking for $ac_word" >&5 |
a0b9e27f MB |
8987 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8988 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 RR |
8989 | else |
8990 | if test -n "$CC"; then | |
8991 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8992 | else | |
a0b9e27f | 8993 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5c6fa7d2 | 8994 | ac_prog_rejected=no |
a0b9e27f MB |
8995 | ac_dummy="$PATH" |
8996 | for ac_dir in $ac_dummy; do | |
8997 | test -z "$ac_dir" && ac_dir=. | |
8998 | if test -f $ac_dir/$ac_word; then | |
8999 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
9000 | ac_prog_rejected=yes | |
9001 | continue | |
9002 | fi | |
9003 | ac_cv_prog_CC="cc" | |
9004 | break | |
9005 | fi | |
9006 | done | |
9007 | IFS="$ac_save_ifs" | |
328a083c RR |
9008 | if test $ac_prog_rejected = yes; then |
9009 | # We found a bogon in the path, so make sure we never use it. | |
9010 | set dummy $ac_cv_prog_CC | |
9011 | shift | |
a0b9e27f | 9012 | if test $# -gt 0; then |
328a083c | 9013 | # We chose a different compiler from the bogus one. |
1e487827 VS |
9014 | # However, it has the same basename, so the bogon will be chosen |
9015 | # first if we set CC to just the basename; use the full file name. | |
9016 | shift | |
a0b9e27f | 9017 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
9018 | shift |
9019 | ac_cv_prog_CC="$@" | |
703e0a69 | 9020 | fi |
1e487827 VS |
9021 | fi |
9022 | fi | |
9023 | fi | |
a0b9e27f | 9024 | CC="$ac_cv_prog_CC" |
1e487827 | 9025 | if test -n "$CC"; then |
a0b9e27f | 9026 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 9027 | else |
a0b9e27f | 9028 | echo "$ac_t""no" 1>&6 |
703e0a69 | 9029 | fi |
1e487827 | 9030 | |
a0b9e27f MB |
9031 | if test -z "$CC"; then |
9032 | case "`uname -s`" in | |
9033 | *win32* | *WIN32*) | |
9034 | # Extract the first word of "cl", so it can be a program name with args. | |
9035 | set dummy cl; ac_word=$2 | |
9036 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
65d8ef1e | 9037 | echo "configure:9038: checking for $ac_word" >&5 |
a0b9e27f MB |
9038 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
9039 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf VS |
9040 | else |
9041 | if test -n "$CC"; then | |
9042 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9043 | else | |
a0b9e27f MB |
9044 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9045 | ac_dummy="$PATH" | |
9046 | for ac_dir in $ac_dummy; do | |
9047 | test -z "$ac_dir" && ac_dir=. | |
9048 | if test -f $ac_dir/$ac_word; then | |
9049 | ac_cv_prog_CC="cl" | |
9050 | break | |
9051 | fi | |
9052 | done | |
9053 | IFS="$ac_save_ifs" | |
f09359cf VS |
9054 | fi |
9055 | fi | |
a0b9e27f | 9056 | CC="$ac_cv_prog_CC" |
f09359cf | 9057 | if test -n "$CC"; then |
a0b9e27f | 9058 | echo "$ac_t""$CC" 1>&6 |
f09359cf | 9059 | else |
a0b9e27f | 9060 | echo "$ac_t""no" 1>&6 |
247f5006 | 9061 | fi |
a0b9e27f MB |
9062 | ;; |
9063 | esac | |
8284b0c5 | 9064 | fi |
a0b9e27f | 9065 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
5c6fa7d2 | 9066 | fi |
1e487827 | 9067 | |
a0b9e27f | 9068 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
65d8ef1e | 9069 | echo "configure:9070: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
f09359cf | 9070 | |
a0b9e27f MB |
9071 | ac_ext=c |
9072 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9073 | ac_cpp='$CPP $CPPFLAGS' | |
9074 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9075 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9076 | cross_compiling=$ac_cv_prog_cc_cross | |
f09359cf | 9077 | |
a0b9e27f | 9078 | cat > conftest.$ac_ext << EOF |
247f5006 | 9079 | |
65d8ef1e | 9080 | #line 9081 "configure" |
a0b9e27f | 9081 | #include "confdefs.h" |
247f5006 | 9082 | |
a0b9e27f MB |
9083 | main(){return(0);} |
9084 | EOF | |
65d8ef1e | 9085 | if { (eval echo configure:9086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9086 | ac_cv_prog_cc_works=yes |
9087 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9088 | if (./conftest; exit) 2>/dev/null; then | |
9089 | ac_cv_prog_cc_cross=no | |
698dcdb6 | 9090 | else |
a0b9e27f | 9091 | ac_cv_prog_cc_cross=yes |
698dcdb6 | 9092 | fi |
7b4a847f | 9093 | else |
a0b9e27f MB |
9094 | echo "configure: failed program was:" >&5 |
9095 | cat conftest.$ac_ext >&5 | |
9096 | ac_cv_prog_cc_works=no | |
52127426 | 9097 | fi |
a0b9e27f MB |
9098 | rm -fr conftest* |
9099 | ac_ext=c | |
9100 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9101 | ac_cpp='$CPP $CPPFLAGS' | |
9102 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9103 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9104 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 9105 | |
a0b9e27f MB |
9106 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
9107 | if test $ac_cv_prog_cc_works = no; then | |
9108 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
9109 | fi | |
9110 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
65d8ef1e | 9111 | echo "configure:9112: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9112 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
9113 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 9114 | |
a0b9e27f | 9115 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
65d8ef1e | 9116 | echo "configure:9117: checking whether we are using GNU C" >&5 |
a0b9e27f MB |
9117 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
9118 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9119 | else |
a0b9e27f MB |
9120 | cat > conftest.c <<EOF |
9121 | #ifdef __GNUC__ | |
9122 | yes; | |
8284b0c5 | 9123 | #endif |
a0b9e27f | 9124 | EOF |
65d8ef1e | 9125 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f | 9126 | ac_cv_prog_gcc=yes |
5c6fa7d2 | 9127 | else |
a0b9e27f | 9128 | ac_cv_prog_gcc=no |
8284b0c5 MB |
9129 | fi |
9130 | fi | |
1e487827 | 9131 | |
a0b9e27f | 9132 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
f09359cf | 9133 | |
a0b9e27f MB |
9134 | if test $ac_cv_prog_gcc = yes; then |
9135 | GCC=yes | |
9136 | else | |
9137 | GCC= | |
9138 | fi | |
247f5006 | 9139 | |
a0b9e27f MB |
9140 | ac_test_CFLAGS="${CFLAGS+set}" |
9141 | ac_save_CFLAGS="$CFLAGS" | |
9142 | CFLAGS= | |
9143 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
65d8ef1e | 9144 | echo "configure:9145: checking whether ${CC-cc} accepts -g" >&5 |
a0b9e27f MB |
9145 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
9146 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9147 | else | |
9148 | echo 'void f(){}' > conftest.c | |
9149 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
9150 | ac_cv_prog_cc_g=yes |
9151 | else | |
a0b9e27f | 9152 | ac_cv_prog_cc_g=no |
10f2d63a | 9153 | fi |
a0b9e27f MB |
9154 | rm -f conftest* |
9155 | ||
10f2d63a | 9156 | fi |
a0b9e27f MB |
9157 | |
9158 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
f09359cf | 9159 | if test "$ac_test_CFLAGS" = set; then |
a0b9e27f | 9160 | CFLAGS="$ac_save_CFLAGS" |
f09359cf VS |
9161 | elif test $ac_cv_prog_cc_g = yes; then |
9162 | if test "$GCC" = yes; then | |
10f2d63a VZ |
9163 | CFLAGS="-g -O2" |
9164 | else | |
f09359cf | 9165 | CFLAGS="-g" |
10f2d63a | 9166 | fi |
5c0a20c3 | 9167 | else |
f09359cf VS |
9168 | if test "$GCC" = yes; then |
9169 | CFLAGS="-O2" | |
9170 | else | |
9171 | CFLAGS= | |
9172 | fi | |
10f2d63a VZ |
9173 | fi |
9174 | ||
9175 | ||
a0b9e27f | 9176 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
65d8ef1e | 9177 | echo "configure:9178: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
9178 | # On Suns, sometimes $CPP names a directory. |
9179 | if test -n "$CPP" && test -d "$CPP"; then | |
9180 | CPP= | |
9181 | fi | |
9182 | if test -z "$CPP"; then | |
a0b9e27f MB |
9183 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
9184 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9185 | else | |
9186 | # This must be in double quotes, not single quotes, because CPP may get | |
9187 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
9188 | CPP="${CC-cc} -E" | |
10f2d63a | 9189 | # On the NeXT, cc -E runs the code through the compiler's parser, |
a0b9e27f MB |
9190 | # not just through cpp. |
9191 | cat > conftest.$ac_ext <<EOF | |
65d8ef1e | 9192 | #line 9193 "configure" |
10f2d63a VZ |
9193 | #include "confdefs.h" |
9194 | #include <assert.h> | |
a0b9e27f MB |
9195 | Syntax Error |
9196 | EOF | |
9197 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
65d8ef1e | 9198 | { (eval echo configure:9199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9199 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9200 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9201 | : |
9202 | else | |
a0b9e27f MB |
9203 | echo "$ac_err" >&5 |
9204 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9205 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9206 | rm -rf conftest* |
9207 | CPP="${CC-cc} -E -traditional-cpp" | |
9208 | cat > conftest.$ac_ext <<EOF | |
65d8ef1e | 9209 | #line 9210 "configure" |
f09359cf | 9210 | #include "confdefs.h" |
a0b9e27f MB |
9211 | #include <assert.h> |
9212 | Syntax Error | |
9213 | EOF | |
9214 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
65d8ef1e | 9215 | { (eval echo configure:9216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9216 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9217 | if test -z "$ac_err"; then | |
9218 | : | |
247f5006 | 9219 | else |
a0b9e27f MB |
9220 | echo "$ac_err" >&5 |
9221 | echo "configure: failed program was:" >&5 | |
f09359cf | 9222 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9223 | rm -rf conftest* |
9224 | CPP="${CC-cc} -nologo -E" | |
9225 | cat > conftest.$ac_ext <<EOF | |
65d8ef1e | 9226 | #line 9227 "configure" |
10f2d63a VZ |
9227 | #include "confdefs.h" |
9228 | #include <assert.h> | |
a0b9e27f MB |
9229 | Syntax Error |
9230 | EOF | |
9231 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
65d8ef1e | 9232 | { (eval echo configure:9233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9233 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9234 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9235 | : |
9236 | else | |
a0b9e27f MB |
9237 | echo "$ac_err" >&5 |
9238 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9239 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9240 | rm -rf conftest* |
9241 | CPP=/lib/cpp | |
579d8138 | 9242 | fi |
a0b9e27f | 9243 | rm -f conftest* |
52127426 | 9244 | fi |
a0b9e27f | 9245 | rm -f conftest* |
8284b0c5 | 9246 | fi |
a0b9e27f MB |
9247 | rm -f conftest* |
9248 | ac_cv_prog_CPP="$CPP" | |
9249 | fi | |
9250 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 9251 | else |
a0b9e27f | 9252 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 9253 | fi |
a0b9e27f | 9254 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 9255 | |
a0b9e27f MB |
9256 | if test $ac_cv_prog_gcc = yes; then |
9257 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
65d8ef1e | 9258 | echo "configure:9259: checking whether ${CC-cc} needs -traditional" >&5 |
a0b9e27f MB |
9259 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
9260 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9261 | else |
9262 | ac_pattern="Autoconf.*'x'" | |
a0b9e27f | 9263 | cat > conftest.$ac_ext <<EOF |
65d8ef1e | 9264 | #line 9265 "configure" |
10f2d63a VZ |
9265 | #include "confdefs.h" |
9266 | #include <sgtty.h> | |
9267 | Autoconf TIOCGETP | |
a0b9e27f | 9268 | EOF |
10f2d63a VZ |
9269 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9270 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9271 | rm -rf conftest* |
10f2d63a VZ |
9272 | ac_cv_prog_gcc_traditional=yes |
9273 | else | |
a0b9e27f | 9274 | rm -rf conftest* |
10f2d63a VZ |
9275 | ac_cv_prog_gcc_traditional=no |
9276 | fi | |
9277 | rm -f conftest* | |
9278 | ||
8284b0c5 | 9279 | |
10f2d63a | 9280 | if test $ac_cv_prog_gcc_traditional = no; then |
a0b9e27f | 9281 | cat > conftest.$ac_ext <<EOF |
65d8ef1e | 9282 | #line 9283 "configure" |
10f2d63a VZ |
9283 | #include "confdefs.h" |
9284 | #include <termio.h> | |
9285 | Autoconf TCGETA | |
a0b9e27f | 9286 | EOF |
10f2d63a VZ |
9287 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9288 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9289 | rm -rf conftest* |
10f2d63a VZ |
9290 | ac_cv_prog_gcc_traditional=yes |
9291 | fi | |
9292 | rm -f conftest* | |
9293 | ||
9294 | fi | |
9295 | fi | |
a0b9e27f MB |
9296 | |
9297 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
9298 | if test $ac_cv_prog_gcc_traditional = yes; then |
9299 | CC="$CC -traditional" | |
9300 | fi | |
9301 | fi | |
9302 | ||
8284b0c5 MB |
9303 | |
9304 | ||
a0b9e27f MB |
9305 | ac_ext=C |
9306 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 9307 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
9308 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9309 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9310 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9311 | |
698dcdb6 | 9312 | |
ec603395 | 9313 | CXXFLAGS=${CXXFLAGS:=} |
a0b9e27f MB |
9314 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
9315 | do | |
9316 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9317 | set dummy $ac_prog; ac_word=$2 | |
9318 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
65d8ef1e | 9319 | echo "configure:9320: checking for $ac_word" >&5 |
a0b9e27f MB |
9320 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
9321 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9322 | else |
9323 | if test -n "$CXX"; then | |
9324 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
9325 | else | |
a0b9e27f MB |
9326 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9327 | ac_dummy="$PATH" | |
9328 | for ac_dir in $ac_dummy; do | |
9329 | test -z "$ac_dir" && ac_dir=. | |
9330 | if test -f $ac_dir/$ac_word; then | |
9331 | ac_cv_prog_CXX="$ac_prog" | |
9332 | break | |
9333 | fi | |
9334 | done | |
9335 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9336 | fi |
9337 | fi | |
a0b9e27f | 9338 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 9339 | if test -n "$CXX"; then |
a0b9e27f | 9340 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9341 | else |
a0b9e27f | 9342 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9343 | fi |
9344 | ||
a0b9e27f | 9345 | test -n "$CXX" && break |
10f2d63a | 9346 | done |
a0b9e27f | 9347 | test -n "$CXX" || CXX="gcc" |
f09359cf | 9348 | |
a0b9e27f MB |
9349 | |
9350 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
65d8ef1e | 9351 | echo "configure:9352: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
a0b9e27f MB |
9352 | |
9353 | ac_ext=C | |
9354 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9355 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9356 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9357 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9358 | cross_compiling=$ac_cv_prog_cxx_cross | |
9359 | ||
9360 | cat > conftest.$ac_ext << EOF | |
9361 | ||
65d8ef1e | 9362 | #line 9363 "configure" |
a0b9e27f MB |
9363 | #include "confdefs.h" |
9364 | ||
9365 | int main(){return(0);} | |
9366 | EOF | |
65d8ef1e | 9367 | if { (eval echo configure:9368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9368 | ac_cv_prog_cxx_works=yes |
9369 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9370 | if (./conftest; exit) 2>/dev/null; then | |
9371 | ac_cv_prog_cxx_cross=no | |
9372 | else | |
9373 | ac_cv_prog_cxx_cross=yes | |
9374 | fi | |
8284b0c5 | 9375 | else |
a0b9e27f MB |
9376 | echo "configure: failed program was:" >&5 |
9377 | cat conftest.$ac_ext >&5 | |
9378 | ac_cv_prog_cxx_works=no | |
8284b0c5 | 9379 | fi |
a0b9e27f MB |
9380 | rm -fr conftest* |
9381 | ac_ext=C | |
9382 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9383 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9384 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9385 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9386 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9387 | |
a0b9e27f MB |
9388 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
9389 | if test $ac_cv_prog_cxx_works = no; then | |
9390 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9391 | fi | |
9392 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
65d8ef1e | 9393 | echo "configure:9394: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9394 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9395 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9396 | |
a0b9e27f | 9397 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
65d8ef1e | 9398 | echo "configure:9399: checking whether we are using GNU C++" >&5 |
a0b9e27f MB |
9399 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9400 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9401 | else | |
9402 | cat > conftest.C <<EOF | |
9403 | #ifdef __GNUC__ | |
9404 | yes; | |
10f2d63a | 9405 | #endif |
a0b9e27f | 9406 | EOF |
65d8ef1e | 9407 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f MB |
9408 | ac_cv_prog_gxx=yes |
9409 | else | |
9410 | ac_cv_prog_gxx=no | |
9411 | fi | |
9412 | fi | |
10f2d63a | 9413 | |
a0b9e27f | 9414 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9415 | |
a0b9e27f MB |
9416 | if test $ac_cv_prog_gxx = yes; then |
9417 | GXX=yes | |
9418 | else | |
9419 | GXX= | |
9420 | fi | |
f09359cf | 9421 | |
a0b9e27f MB |
9422 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9423 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9424 | CXXFLAGS= | |
9425 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
65d8ef1e | 9426 | echo "configure:9427: checking whether ${CXX-g++} accepts -g" >&5 |
a0b9e27f MB |
9427 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9428 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9429 | else | |
9430 | echo 'void f(){}' > conftest.cc | |
9431 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9432 | ac_cv_prog_cxx_g=yes |
9433 | else | |
a0b9e27f | 9434 | ac_cv_prog_cxx_g=no |
10f2d63a | 9435 | fi |
a0b9e27f MB |
9436 | rm -f conftest* |
9437 | ||
10f2d63a | 9438 | fi |
a0b9e27f MB |
9439 | |
9440 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
f09359cf | 9441 | if test "$ac_test_CXXFLAGS" = set; then |
a0b9e27f | 9442 | CXXFLAGS="$ac_save_CXXFLAGS" |
f09359cf VS |
9443 | elif test $ac_cv_prog_cxx_g = yes; then |
9444 | if test "$GXX" = yes; then | |
10f2d63a VZ |
9445 | CXXFLAGS="-g -O2" |
9446 | else | |
f09359cf | 9447 | CXXFLAGS="-g" |
10f2d63a | 9448 | fi |
5c0a20c3 | 9449 | else |
f09359cf VS |
9450 | if test "$GXX" = yes; then |
9451 | CXXFLAGS="-O2" | |
9452 | else | |
9453 | CXXFLAGS= | |
9454 | fi | |
10f2d63a VZ |
9455 | fi |
9456 | ||
9457 | ||
10f2d63a | 9458 | ac_ext=c |
a0b9e27f | 9459 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9460 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
9461 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9462 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9463 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 MB |
9464 | |
9465 | ||
a0b9e27f MB |
9466 | # Extract the first word of "ranlib", so it can be a program name with args. |
9467 | set dummy ranlib; ac_word=$2 | |
9468 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
65d8ef1e | 9469 | echo "configure:9470: checking for $ac_word" >&5 |
a0b9e27f MB |
9470 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9471 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9472 | else |
9473 | if test -n "$RANLIB"; then | |
9474 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9475 | else | |
a0b9e27f MB |
9476 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9477 | ac_dummy="$PATH" | |
9478 | for ac_dir in $ac_dummy; do | |
9479 | test -z "$ac_dir" && ac_dir=. | |
9480 | if test -f $ac_dir/$ac_word; then | |
9481 | ac_cv_prog_RANLIB="ranlib" | |
9482 | break | |
9483 | fi | |
9484 | done | |
9485 | IFS="$ac_save_ifs" | |
9486 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9487 | fi |
9488 | fi | |
a0b9e27f | 9489 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9490 | if test -n "$RANLIB"; then |
a0b9e27f | 9491 | echo "$ac_t""$RANLIB" 1>&6 |
328a083c | 9492 | else |
a0b9e27f | 9493 | echo "$ac_t""no" 1>&6 |
328a083c RR |
9494 | fi |
9495 | ||
10f2d63a VZ |
9496 | |
9497 | # Extract the first word of "ar", so it can be a program name with args. | |
9498 | set dummy ar; ac_word=$2 | |
a0b9e27f | 9499 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
65d8ef1e | 9500 | echo "configure:9501: checking for $ac_word" >&5 |
a0b9e27f MB |
9501 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9502 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9503 | else |
9504 | if test -n "$AR"; then | |
9505 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9506 | else | |
a0b9e27f MB |
9507 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9508 | ac_dummy="$PATH" | |
9509 | for ac_dir in $ac_dummy; do | |
9510 | test -z "$ac_dir" && ac_dir=. | |
9511 | if test -f $ac_dir/$ac_word; then | |
9512 | ac_cv_prog_AR="ar" | |
9513 | break | |
9514 | fi | |
9515 | done | |
9516 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9517 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9518 | fi | |
9519 | fi | |
a0b9e27f | 9520 | AR="$ac_cv_prog_AR" |
10f2d63a | 9521 | if test -n "$AR"; then |
a0b9e27f | 9522 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9523 | else |
a0b9e27f | 9524 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9525 | fi |
9526 | ||
8284b0c5 | 9527 | |
6054113a | 9528 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9529 | # so one script is as good as another. But avoid the broken or |
9530 | # incompatible versions: | |
9531 | # SysV /etc/install, /usr/sbin/install | |
9532 | # SunOS /usr/etc/install | |
9533 | # IRIX /sbin/install | |
9534 | # AIX /bin/install | |
f09359cf | 9535 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
9536 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
9537 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9538 | # ./install, which can be erroneously created by make from ./install.sh. | |
a0b9e27f | 9539 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
65d8ef1e | 9540 | echo "configure:9541: checking for a BSD compatible install" >&5 |
10f2d63a | 9541 | if test -z "$INSTALL"; then |
a0b9e27f MB |
9542 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9543 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9544 | else | |
9545 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
9546 | for ac_dir in $PATH; do | |
9547 | # Account for people who put trailing slashes in PATH elements. | |
9548 | case "$ac_dir/" in | |
9549 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
9550 | *) | |
9551 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9552 | # Don't use installbsd from OSF since it installs stuff as root | |
9553 | # by default. | |
9554 | for ac_prog in ginstall scoinst install; do | |
9555 | if test -f $ac_dir/$ac_prog; then | |
9556 | if test $ac_prog = install && | |
9557 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
9558 | # AIX install. It has an incompatible calling convention. | |
9559 | : | |
9560 | else | |
9561 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9562 | break 2 | |
9563 | fi | |
9564 | fi | |
10f2d63a | 9565 | done |
a0b9e27f MB |
9566 | ;; |
9567 | esac | |
9568 | done | |
9569 | IFS="$ac_save_IFS" | |
10f2d63a VZ |
9570 | |
9571 | fi | |
9572 | if test "${ac_cv_path_install+set}" = set; then | |
a0b9e27f | 9573 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9574 | else |
9575 | # As a last resort, use the slow shell script. We don't cache a | |
9576 | # path for INSTALL within a source directory, because that will | |
9577 | # break other packages using the cache if that directory is | |
9578 | # removed, or if the path is relative. | |
a0b9e27f | 9579 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9580 | fi |
9581 | fi | |
a0b9e27f | 9582 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9583 | |
9584 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9585 | # It thinks the first close brace ends the variable substitution. | |
9586 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9587 | ||
a0b9e27f | 9588 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
f09359cf | 9589 | |
10f2d63a VZ |
9590 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9591 | ||
8284b0c5 | 9592 | |
1d1b75ac VZ |
9593 | case ${INSTALL} in |
9594 | /* ) # Absolute | |
9595 | ;; | |
3bd8fb5f | 9596 | *) |
1d1b75ac VZ |
9597 | INSTALL=`pwd`/${INSTALL} ;; |
9598 | esac | |
9599 | ||
8284b0c5 | 9600 | |
6054113a GD |
9601 | case "${host}" in |
9602 | ||
b5853384 | 9603 | powerpc-*-darwin* ) |
eb99ae0b GD |
9604 | INSTALL_PROGRAM="cp -fp" |
9605 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9606 | ;; |
9607 | *) | |
9608 | ;; | |
d6853540 | 9609 | esac |
698dcdb6 | 9610 | |
10f2d63a VZ |
9611 | # Extract the first word of "strip", so it can be a program name with args. |
9612 | set dummy strip; ac_word=$2 | |
a0b9e27f | 9613 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
65d8ef1e | 9614 | echo "configure:9615: checking for $ac_word" >&5 |
a0b9e27f MB |
9615 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9616 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9617 | else |
9618 | if test -n "$STRIP"; then | |
9619 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9620 | else | |
a0b9e27f MB |
9621 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9622 | ac_dummy="$PATH" | |
9623 | for ac_dir in $ac_dummy; do | |
9624 | test -z "$ac_dir" && ac_dir=. | |
9625 | if test -f $ac_dir/$ac_word; then | |
9626 | ac_cv_prog_STRIP="strip" | |
9627 | break | |
9628 | fi | |
9629 | done | |
9630 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9631 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9632 | fi | |
9633 | fi | |
a0b9e27f | 9634 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9635 | if test -n "$STRIP"; then |
a0b9e27f | 9636 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9637 | else |
a0b9e27f | 9638 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9639 | fi |
9640 | ||
5c6fa7d2 | 9641 | |
a0b9e27f | 9642 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
65d8ef1e | 9643 | echo "configure:9644: checking if make is GNU make" >&5 |
a0b9e27f MB |
9644 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9645 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9646 | else |
a0b9e27f | 9647 | |
414eab6d | 9648 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 9649 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9650 | wx_cv_prog_makeisgnu="yes" |
9651 | else | |
9652 | wx_cv_prog_makeisgnu="no" | |
9653 | fi | |
9654 | ||
9655 | fi | |
a0b9e27f MB |
9656 | |
9657 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
414eab6d VZ |
9658 | |
9659 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9660 | IF_GNU_MAKE="" | |
9661 | else | |
9662 | IF_GNU_MAKE="#" | |
9663 | fi | |
9664 | ||
8284b0c5 MB |
9665 | |
9666 | ||
414eab6d | 9667 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
a0b9e27f | 9668 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
65d8ef1e | 9669 | echo "configure:9670: checking if make supports VPATH" >&5 |
a0b9e27f MB |
9670 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9671 | echo $ac_n "(cached) $ac_c" 1>&6 | |
04e7a216 | 9672 | else |
a0b9e27f | 9673 | |
10f2d63a VZ |
9674 | cat - << EOF > confMake |
9675 | check : file | |
9676 | cp \$? \$@ | |
9677 | cp \$? final_file | |
9678 | EOF | |
9679 | ||
9680 | if test ! -d sub ; then | |
9681 | mkdir sub | |
9682 | fi | |
9683 | echo dummy > sub/file | |
f6bcfd97 | 9684 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9685 | RESULT=$? |
9686 | rm -f sub/file check final_file confMake | |
9687 | rmdir sub | |
9688 | if test "$RESULT" = 0; then | |
04e7a216 | 9689 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9690 | else |
04e7a216 VZ |
9691 | wx_cv_prog_makevpath="no" |
9692 | fi | |
9693 | ||
9694 | fi | |
a0b9e27f MB |
9695 | |
9696 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
04e7a216 VZ |
9697 | |
9698 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
a0b9e27f | 9699 | { echo "configure: error: |
5c6fa7d2 RR |
9700 | You need a make-utility that is able to use the variable |
9701 | VPATH correctly. | |
9702 | If your version of make does not support VPATH correctly, | |
9703 | please install GNU-make (possibly as gmake), and start | |
9704 | configure with the following command: | |
9705 | export MAKE=gmake; ./configure for sh-type shells | |
9706 | setenv MAKE gmake; ./configure for csh-type shells | |
9707 | Also please do remember to use gmake in this case every time | |
9708 | you are trying to compile. | |
a0b9e27f MB |
9709 | " 1>&2; exit 1; } |
9710 | fi fi | |
10f2d63a VZ |
9711 | for ac_prog in 'bison -y' byacc |
9712 | do | |
a0b9e27f | 9713 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9714 | set dummy $ac_prog; ac_word=$2 |
a0b9e27f | 9715 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
65d8ef1e | 9716 | echo "configure:9717: checking for $ac_word" >&5 |
a0b9e27f MB |
9717 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9718 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9719 | else |
9720 | if test -n "$YACC"; then | |
9721 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9722 | else | |
a0b9e27f MB |
9723 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9724 | ac_dummy="$PATH" | |
9725 | for ac_dir in $ac_dummy; do | |
9726 | test -z "$ac_dir" && ac_dir=. | |
9727 | if test -f $ac_dir/$ac_word; then | |
9728 | ac_cv_prog_YACC="$ac_prog" | |
9729 | break | |
9730 | fi | |
9731 | done | |
9732 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9733 | fi |
9734 | fi | |
a0b9e27f | 9735 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9736 | if test -n "$YACC"; then |
a0b9e27f | 9737 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9738 | else |
a0b9e27f | 9739 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9740 | fi |
9741 | ||
a0b9e27f | 9742 | test -n "$YACC" && break |
10f2d63a VZ |
9743 | done |
9744 | test -n "$YACC" || YACC="yacc" | |
9745 | ||
8284b0c5 | 9746 | |
a0b9e27f MB |
9747 | # Extract the first word of "flex", so it can be a program name with args. |
9748 | set dummy flex; ac_word=$2 | |
9749 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
65d8ef1e | 9750 | echo "configure:9751: checking for $ac_word" >&5 |
a0b9e27f MB |
9751 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9752 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9753 | else |
9754 | if test -n "$LEX"; then | |
9755 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9756 | else | |
a0b9e27f MB |
9757 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9758 | ac_dummy="$PATH" | |
9759 | for ac_dir in $ac_dummy; do | |
9760 | test -z "$ac_dir" && ac_dir=. | |
9761 | if test -f $ac_dir/$ac_word; then | |
9762 | ac_cv_prog_LEX="flex" | |
9763 | break | |
9764 | fi | |
9765 | done | |
9766 | IFS="$ac_save_ifs" | |
9767 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9768 | fi |
9769 | fi | |
a0b9e27f | 9770 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9771 | if test -n "$LEX"; then |
a0b9e27f | 9772 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9773 | else |
a0b9e27f | 9774 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9775 | fi |
9776 | ||
9777 | if test -z "$LEXLIB" | |
9778 | then | |
a0b9e27f MB |
9779 | case "$LEX" in |
9780 | flex*) ac_lib=fl ;; | |
9781 | *) ac_lib=l ;; | |
9782 | esac | |
9783 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
65d8ef1e | 9784 | echo "configure:9785: checking for yywrap in -l$ac_lib" >&5 |
a0b9e27f MB |
9785 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9786 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9787 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9788 | else | |
9789 | ac_save_LIBS="$LIBS" | |
9790 | LIBS="-l$ac_lib $LIBS" | |
9791 | cat > conftest.$ac_ext <<EOF | |
65d8ef1e | 9792 | #line 9793 "configure" |
247f5006 | 9793 | #include "confdefs.h" |
247f5006 | 9794 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 9795 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
9796 | builtin and then its argument prototype would still apply. */ |
9797 | char yywrap(); | |
10f2d63a | 9798 | |
a0b9e27f MB |
9799 | int main() { |
9800 | yywrap() | |
9801 | ; return 0; } | |
9802 | EOF | |
65d8ef1e | 9803 | if { (eval echo configure:9804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9804 | rm -rf conftest* |
9805 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9806 | else | |
9807 | echo "configure: failed program was:" >&5 | |
9808 | cat conftest.$ac_ext >&5 | |
9809 | rm -rf conftest* | |
9810 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9811 | fi |
a0b9e27f MB |
9812 | rm -f conftest* |
9813 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 9814 | |
10f2d63a | 9815 | fi |
a0b9e27f MB |
9816 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9817 | echo "$ac_t""yes" 1>&6 | |
9818 | LEXLIB="-l$ac_lib" | |
8284b0c5 | 9819 | else |
a0b9e27f | 9820 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9821 | fi |
9822 | ||
a0b9e27f | 9823 | fi |
10f2d63a VZ |
9824 | |
9825 | ||
a0b9e27f | 9826 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
65d8ef1e | 9827 | echo "configure:9828: checking whether ln -s works" >&5 |
a0b9e27f MB |
9828 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9829 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9830 | else |
a0b9e27f MB |
9831 | rm -f conftestdata |
9832 | if ln -s X conftestdata 2>/dev/null | |
9833 | then | |
9834 | rm -f conftestdata | |
9835 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9836 | else |
a0b9e27f | 9837 | ac_cv_prog_LN_S=ln |
10f2d63a | 9838 | fi |
a0b9e27f MB |
9839 | fi |
9840 | LN_S="$ac_cv_prog_LN_S" | |
9841 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9842 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9843 | else |
a0b9e27f | 9844 | echo "$ac_t""no" 1>&6 |
5c6fa7d2 | 9845 | fi |
5c6fa7d2 | 9846 | |
247f5006 | 9847 | |
2b5f62a0 VZ |
9848 | case "${host}" in |
9849 | *-pc-os2_emx | *-pc-os2-emx ) | |
9850 | LIBS="$LIBS -lstdcpp" | |
9851 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
9852 | echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6 | |
65d8ef1e | 9853 | echo "configure:9854: checking for drand48 in -lcExt" >&5 |
2b5f62a0 VZ |
9854 | ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'` |
9855 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9856 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9857 | else | |
9858 | ac_save_LIBS="$LIBS" | |
9859 | LIBS="-lcExt $LIBS" | |
9860 | cat > conftest.$ac_ext <<EOF | |
65d8ef1e | 9861 | #line 9862 "configure" |
2b5f62a0 VZ |
9862 | #include "confdefs.h" |
9863 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9864 | /* We use char because int might match the return type of a gcc2 | |
9865 | builtin and then its argument prototype would still apply. */ | |
9866 | char drand48(); | |
9867 | ||
9868 | int main() { | |
9869 | drand48() | |
9870 | ; return 0; } | |
9871 | EOF | |
65d8ef1e | 9872 | if { (eval echo configure:9873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
9873 | rm -rf conftest* |
9874 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9875 | else | |
9876 | echo "configure: failed program was:" >&5 | |
9877 | cat conftest.$ac_ext >&5 | |
9878 | rm -rf conftest* | |
9879 | eval "ac_cv_lib_$ac_lib_var=no" | |
9880 | fi | |
9881 | rm -f conftest* | |
9882 | LIBS="$ac_save_LIBS" | |
9883 | ||
9884 | fi | |
9885 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9886 | echo "$ac_t""yes" 1>&6 | |
9887 | LIBS="$LIBS -lcExt" | |
9888 | else | |
9889 | echo "$ac_t""no" 1>&6 | |
9890 | fi | |
9891 | ||
9892 | else | |
9893 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
9894 | fi | |
9895 | ;; | |
9896 | esac | |
9897 | ||
a0b9e27f MB |
9898 | |
9899 | if test "$wxUSE_MAC" != 1; then | |
9900 | for ac_hdr in strings.h | |
9901 | do | |
9902 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9903 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
65d8ef1e | 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 | |
65d8ef1e | 9909 | #line 9910 "configure" |
a0b9e27f MB |
9910 | #include "confdefs.h" |
9911 | #include <$ac_hdr> | |
9912 | EOF | |
9913 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
65d8ef1e | 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" | |
21d1c967 | 9925 | fi |
247f5006 | 9926 | rm -f conftest* |
19bc6aad | 9927 | fi |
a0b9e27f MB |
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 | ||
247f5006 | 9935 | else |
a0b9e27f | 9936 | echo "$ac_t""no" 1>&6 |
18dbb1f6 | 9937 | fi |
a0b9e27f | 9938 | done |
247f5006 | 9939 | |
90dd450c | 9940 | fi |
90dd450c | 9941 | |
a0b9e27f MB |
9942 | for ac_hdr in stdlib.h |
9943 | do | |
9944 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9945 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
65d8ef1e | 9946 | echo "configure:9947: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9947 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9948 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9949 | else | |
9950 | cat > conftest.$ac_ext <<EOF | |
65d8ef1e | 9951 | #line 9952 "configure" |
90dd450c | 9952 | #include "confdefs.h" |
a0b9e27f MB |
9953 | #include <$ac_hdr> |
9954 | EOF | |
9955 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
65d8ef1e | 9956 | { (eval echo configure:9957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9957 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9958 | if test -z "$ac_err"; then | |
9959 | rm -rf conftest* | |
9960 | eval "ac_cv_header_$ac_safe=yes" | |
9961 | else | |
9962 | echo "$ac_err" >&5 | |
9963 | echo "configure: failed program was:" >&5 | |
9964 | cat conftest.$ac_ext >&5 | |
9965 | rm -rf conftest* | |
9966 | eval "ac_cv_header_$ac_safe=no" | |
9967 | fi | |
9968 | rm -f conftest* | |
9969 | fi | |
9970 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9971 | echo "$ac_t""yes" 1>&6 | |
9972 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9973 | cat >> confdefs.h <<EOF | |
9974 | #define $ac_tr_hdr 1 | |
9975 | EOF | |
9976 | ||
8284b0c5 | 9977 | else |
a0b9e27f | 9978 | echo "$ac_t""no" 1>&6 |
21d1c967 | 9979 | fi |
a0b9e27f MB |
9980 | done |
9981 | ||
9982 | for ac_hdr in malloc.h | |
9983 | do | |
9984 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9985 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
65d8ef1e | 9986 | echo "configure:9987: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9987 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9988 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9989 | else | |
9990 | cat > conftest.$ac_ext <<EOF | |
65d8ef1e | 9991 | #line 9992 "configure" |
a0b9e27f MB |
9992 | #include "confdefs.h" |
9993 | #include <$ac_hdr> | |
9994 | EOF | |
9995 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
65d8ef1e | 9996 | { (eval echo configure:9997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9997 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9998 | if test -z "$ac_err"; then | |
9999 | rm -rf conftest* | |
10000 | eval "ac_cv_header_$ac_safe=yes" | |
10001 | else | |
10002 | echo "$ac_err" >&5 | |
10003 | echo "configure: failed program was:" >&5 | |
10004 | cat conftest.$ac_ext >&5 | |
10005 | rm -rf conftest* | |
10006 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10007 | fi |
a0b9e27f | 10008 | rm -f conftest* |
90dd450c | 10009 | fi |
a0b9e27f MB |
10010 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10011 | echo "$ac_t""yes" 1>&6 | |
10012 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10013 | cat >> confdefs.h <<EOF | |
10014 | #define $ac_tr_hdr 1 | |
10015 | EOF | |
10016 | ||
10017 | else | |
10018 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 10019 | fi |
a0b9e27f | 10020 | done |
247f5006 | 10021 | |
a0b9e27f MB |
10022 | for ac_hdr in unistd.h |
10023 | do | |
10024 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10025 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
65d8ef1e | 10026 | echo "configure:10027: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10027 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10028 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10029 | else | |
10030 | cat > conftest.$ac_ext <<EOF | |
65d8ef1e | 10031 | #line 10032 "configure" |
a0b9e27f MB |
10032 | #include "confdefs.h" |
10033 | #include <$ac_hdr> | |
10034 | EOF | |
10035 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
65d8ef1e | 10036 | { (eval echo configure:10037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10037 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10038 | if test -z "$ac_err"; then | |
10039 | rm -rf conftest* | |
10040 | eval "ac_cv_header_$ac_safe=yes" | |
10041 | else | |
10042 | echo "$ac_err" >&5 | |
10043 | echo "configure: failed program was:" >&5 | |
10044 | cat conftest.$ac_ext >&5 | |
10045 | rm -rf conftest* | |
10046 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 10047 | fi |
a0b9e27f MB |
10048 | rm -f conftest* |
10049 | fi | |
10050 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10051 | echo "$ac_t""yes" 1>&6 | |
10052 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10053 | cat >> confdefs.h <<EOF | |
10054 | #define $ac_tr_hdr 1 | |
10055 | EOF | |
10056 | ||
10057 | else | |
10058 | echo "$ac_t""no" 1>&6 | |
10059 | fi | |
10060 | done | |
90dd450c | 10061 | |
a0b9e27f | 10062 | for ac_hdr in wchar.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 | |
65d8ef1e | 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 | |
65d8ef1e | 10071 | #line 10072 "configure" |
4f14bcd8 | 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" | |
65d8ef1e | 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 | |
10084 | cat conftest.$ac_ext >&5 | |
10085 | rm -rf conftest* | |
10086 | eval "ac_cv_header_$ac_safe=no" | |
10087 | fi | |
10088 | rm -f conftest* | |
10089 | fi | |
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 | |
21d1c967 GD |
10099 | fi |
10100 | done | |
4f14bcd8 | 10101 | |
5c6fa7d2 | 10102 | |
a0b9e27f MB |
10103 | if test "$ac_cv_header_wchar_h" != "yes"; then |
10104 | for ac_hdr in wcstr.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 | |
65d8ef1e | 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 | |
65d8ef1e | 10113 | #line 10114 "configure" |
d4158b5d | 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" | |
65d8ef1e | 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 | |
d4158b5d | 10126 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10127 | rm -rf conftest* |
10128 | eval "ac_cv_header_$ac_safe=no" | |
d4158b5d | 10129 | fi |
a0b9e27f | 10130 | rm -f conftest* |
21d1c967 | 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 | |
d4158b5d | 10141 | fi |
21d1c967 | 10142 | done |
f6bcfd97 | 10143 | |
90dd450c | 10144 | fi |
90dd450c | 10145 | |
a0b9e27f | 10146 | for ac_hdr in fnmatch.h |
21d1c967 | 10147 | do |
a0b9e27f MB |
10148 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10149 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
65d8ef1e | 10150 | echo "configure:10151: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10151 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10152 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10153 | else | |
10154 | cat > conftest.$ac_ext <<EOF | |
65d8ef1e | 10155 | #line 10156 "configure" |
90dd450c | 10156 | #include "confdefs.h" |
a0b9e27f MB |
10157 | #include <$ac_hdr> |
10158 | EOF | |
10159 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
65d8ef1e | 10160 | { (eval echo configure:10161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10161 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10162 | if test -z "$ac_err"; then | |
10163 | rm -rf conftest* | |
10164 | eval "ac_cv_header_$ac_safe=yes" | |
10165 | else | |
10166 | echo "$ac_err" >&5 | |
10167 | echo "configure: failed program was:" >&5 | |
3a922bb4 | 10168 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10169 | rm -rf conftest* |
10170 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10171 | fi |
a0b9e27f | 10172 | rm -f conftest* |
4f14bcd8 | 10173 | fi |
a0b9e27f MB |
10174 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10175 | echo "$ac_t""yes" 1>&6 | |
10176 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10177 | cat >> confdefs.h <<EOF | |
10178 | #define $ac_tr_hdr 1 | |
10179 | EOF | |
10180 | ||
10181 | else | |
10182 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10183 | fi |
10184 | done | |
90dd450c | 10185 | |
5c6fa7d2 | 10186 | |
a0b9e27f MB |
10187 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
10188 | for ac_func in fnmatch | |
21d1c967 | 10189 | do |
a0b9e27f | 10190 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
65d8ef1e | 10191 | echo "configure:10192: checking for $ac_func" >&5 |
a0b9e27f MB |
10192 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10193 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10194 | else |
a0b9e27f | 10195 | cat > conftest.$ac_ext <<EOF |
65d8ef1e | 10196 | #line 10197 "configure" |
a0b9e27f MB |
10197 | #include "confdefs.h" |
10198 | /* System header to define __stub macros and hopefully few prototypes, | |
10199 | which can conflict with char $ac_func(); below. */ | |
10200 | #include <assert.h> | |
10201 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10202 | /* We use char because int might match the return type of a gcc2 | |
10203 | builtin and then its argument prototype would still apply. */ | |
10204 | char $ac_func(); | |
10205 | ||
10206 | int main() { | |
10207 | ||
10208 | /* The GNU C library defines this for functions which it implements | |
10209 | to always fail with ENOSYS. Some functions are actually named | |
10210 | something starting with __ and the normal name is an alias. */ | |
10211 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10212 | choke me | |
10213 | #else | |
10214 | $ac_func(); | |
10215 | #endif | |
10216 | ||
10217 | ; return 0; } | |
10218 | EOF | |
65d8ef1e | 10219 | if { (eval echo configure:10220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
10220 | rm -rf conftest* |
10221 | eval "ac_cv_func_$ac_func=yes" | |
8284b0c5 | 10222 | else |
a0b9e27f | 10223 | echo "configure: failed program was:" >&5 |
8284b0c5 | 10224 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10225 | rm -rf conftest* |
10226 | eval "ac_cv_func_$ac_func=no" | |
8284b0c5 | 10227 | fi |
a0b9e27f | 10228 | rm -f conftest* |
8284b0c5 | 10229 | fi |
32832908 | 10230 | |
a0b9e27f MB |
10231 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10232 | echo "$ac_t""yes" 1>&6 | |
10233 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10234 | cat >> confdefs.h <<EOF | |
10235 | #define $ac_tr_func 1 | |
10236 | EOF | |
10237 | ||
10238 | else | |
10239 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10240 | fi |
10241 | done | |
90dd450c | 10242 | |
a0b9e27f | 10243 | fi |
90dd450c | 10244 | |
a0b9e27f | 10245 | for ac_hdr in langinfo.h |
21d1c967 | 10246 | do |
a0b9e27f MB |
10247 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10248 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
65d8ef1e | 10249 | echo "configure:10250: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10250 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10251 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10252 | else | |
10253 | cat > conftest.$ac_ext <<EOF | |
65d8ef1e | 10254 | #line 10255 "configure" |
247f5006 | 10255 | #include "confdefs.h" |
a0b9e27f MB |
10256 | #include <$ac_hdr> |
10257 | EOF | |
10258 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
65d8ef1e | 10259 | { (eval echo configure:10260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10260 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10261 | if test -z "$ac_err"; then | |
10262 | rm -rf conftest* | |
10263 | eval "ac_cv_header_$ac_safe=yes" | |
10264 | else | |
10265 | echo "$ac_err" >&5 | |
10266 | echo "configure: failed program was:" >&5 | |
90dd450c | 10267 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10268 | rm -rf conftest* |
10269 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 10270 | fi |
a0b9e27f | 10271 | rm -f conftest* |
4f14bcd8 | 10272 | fi |
a0b9e27f MB |
10273 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10274 | echo "$ac_t""yes" 1>&6 | |
10275 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10276 | cat >> confdefs.h <<EOF | |
10277 | #define $ac_tr_hdr 1 | |
10278 | EOF | |
10279 | ||
10280 | else | |
10281 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10282 | fi |
10283 | done | |
3a922bb4 | 10284 | |
8284b0c5 | 10285 | |
a0b9e27f MB |
10286 | if test "$wxUSE_GUI" = "yes"; then |
10287 | if test "$wxUSE_UNIX" = "yes"; then | |
10288 | for ac_hdr in X11/XKBlib.h | |
21d1c967 | 10289 | do |
a0b9e27f MB |
10290 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10291 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
65d8ef1e | 10292 | echo "configure:10293: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10293 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10294 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10295 | else | |
10296 | cat > conftest.$ac_ext <<EOF | |
65d8ef1e | 10297 | #line 10298 "configure" |
90dd450c | 10298 | #include "confdefs.h" |
a0b9e27f MB |
10299 | #include <$ac_hdr> |
10300 | EOF | |
10301 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
65d8ef1e | 10302 | { (eval echo configure:10303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10303 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10304 | if test -z "$ac_err"; then | |
10305 | rm -rf conftest* | |
10306 | eval "ac_cv_header_$ac_safe=yes" | |
10307 | else | |
10308 | echo "$ac_err" >&5 | |
10309 | echo "configure: failed program was:" >&5 | |
90dd450c | 10310 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10311 | rm -rf conftest* |
10312 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10313 | fi |
a0b9e27f | 10314 | rm -f conftest* |
90dd450c | 10315 | fi |
a0b9e27f MB |
10316 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10317 | echo "$ac_t""yes" 1>&6 | |
10318 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10319 | cat >> confdefs.h <<EOF | |
10320 | #define $ac_tr_hdr 1 | |
10321 | EOF | |
10322 | ||
10323 | else | |
10324 | echo "$ac_t""no" 1>&6 | |
247f5006 | 10325 | fi |
247f5006 VZ |
10326 | done |
10327 | ||
a0b9e27f MB |
10328 | fi |
10329 | fi | |
247f5006 | 10330 | |
247f5006 | 10331 | |
a0b9e27f | 10332 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
65d8ef1e | 10333 | echo "configure:10334: checking for working const" >&5 |
a0b9e27f MB |
10334 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
10335 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10336 | else |
a0b9e27f | 10337 | cat > conftest.$ac_ext <<EOF |
65d8ef1e | 10338 | #line 10339 "configure" |
a0b9e27f MB |
10339 | #include "confdefs.h" |
10340 | ||
10341 | int main() { | |
10342 | ||
10343 | /* Ultrix mips cc rejects this. */ | |
10344 | typedef int charset[2]; const charset x; | |
10345 | /* SunOS 4.1.1 cc rejects this. */ | |
10346 | char const *const *ccp; | |
10347 | char **p; | |
10348 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
10349 | struct point {int x, y;}; | |
10350 | static struct point const zero = {0,0}; | |
10351 | /* AIX XL C 1.02.0.0 rejects this. | |
10352 | It does not let you subtract one const X* pointer from another in an arm | |
10353 | of an if-expression whose if-part is not a constant expression */ | |
10354 | const char *g = "string"; | |
10355 | ccp = &g + (g ? g-g : 0); | |
10356 | /* HPUX 7.0 cc rejects these. */ | |
10357 | ++ccp; | |
10358 | p = (char**) ccp; | |
10359 | ccp = (char const *const *) p; | |
10360 | { /* SCO 3.2v4 cc rejects this. */ | |
10361 | char *t; | |
10362 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
10363 | ||
10364 | *t++ = 0; | |
10365 | } | |
10366 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
10367 | int x[] = {25, 17}; | |
10368 | const int *foo = &x[0]; | |
10369 | ++foo; | |
10370 | } | |
10371 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
10372 | typedef const int *iptr; | |
10373 | iptr p = 0; | |
10374 | ++p; | |
10375 | } | |
10376 | { /* AIX XL C 1.02.0.0 rejects this saying | |
10377 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
10378 | struct s { int j; const int *ap[3]; }; | |
10379 | struct s *b; b->j = 5; | |
10380 | } | |
10381 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
10382 | const int foo = 10; | |
10383 | } | |
10384 | ||
10385 | ; return 0; } | |
10386 | EOF | |
65d8ef1e | 10387 | if { (eval echo configure:10388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10388 | rm -rf conftest* |
10389 | ac_cv_c_const=yes | |
247f5006 | 10390 | else |
a0b9e27f | 10391 | echo "configure: failed program was:" >&5 |
247f5006 | 10392 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10393 | rm -rf conftest* |
10394 | ac_cv_c_const=no | |
247f5006 | 10395 | fi |
a0b9e27f | 10396 | rm -f conftest* |
21d1c967 | 10397 | fi |
247f5006 | 10398 | |
a0b9e27f MB |
10399 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
10400 | if test $ac_cv_c_const = no; then | |
10401 | cat >> confdefs.h <<\EOF | |
10402 | #define const | |
10403 | EOF | |
10f2d63a | 10404 | |
90dd450c | 10405 | fi |
81809c07 | 10406 | |
a0b9e27f | 10407 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
65d8ef1e | 10408 | echo "configure:10409: checking for inline" >&5 |
a0b9e27f MB |
10409 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
10410 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8168de4c | 10411 | else |
a0b9e27f MB |
10412 | ac_cv_c_inline=no |
10413 | for ac_kw in inline __inline__ __inline; do | |
10414 | cat > conftest.$ac_ext <<EOF | |
65d8ef1e | 10415 | #line 10416 "configure" |
a0b9e27f MB |
10416 | #include "confdefs.h" |
10417 | ||
10418 | int main() { | |
10419 | } $ac_kw foo() { | |
10420 | ; return 0; } | |
10421 | EOF | |
65d8ef1e | 10422 | if { (eval echo configure:10423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10423 | rm -rf conftest* |
10424 | ac_cv_c_inline=$ac_kw; break | |
247f5006 | 10425 | else |
a0b9e27f | 10426 | echo "configure: failed program was:" >&5 |
247f5006 | 10427 | cat conftest.$ac_ext >&5 |
247f5006 | 10428 | fi |
a0b9e27f MB |
10429 | rm -f conftest* |
10430 | done | |
247f5006 VZ |
10431 | |
10432 | fi | |
10433 | ||
a0b9e27f MB |
10434 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
10435 | case "$ac_cv_c_inline" in | |
10436 | inline | yes) ;; | |
10437 | no) cat >> confdefs.h <<\EOF | |
10438 | #define inline | |
10439 | EOF | |
10440 | ;; | |
10441 | *) cat >> confdefs.h <<EOF | |
10442 | #define inline $ac_cv_c_inline | |
10443 | EOF | |
10444 | ;; | |
10445 | esac | |
247f5006 | 10446 | |
247f5006 | 10447 | |
a0b9e27f | 10448 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
65d8ef1e | 10449 | echo "configure:10450: checking size of char" >&5 |
a0b9e27f MB |
10450 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
10451 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10452 | else | |
10453 | if test "$cross_compiling" = yes; then | |
10454 | ac_cv_sizeof_char=1 | |
10455 | else | |
10456 | cat > conftest.$ac_ext <<EOF | |
65d8ef1e | 10457 | #line 10458 "configure" |
4f14bcd8 | 10458 | #include "confdefs.h" |
a0b9e27f | 10459 | #include <stdio.h> |
8d90d2f2 | 10460 | #include <sys/types.h> |
a0b9e27f | 10461 | main() |
247f5006 | 10462 | { |
a0b9e27f MB |
10463 | FILE *f=fopen("conftestval", "w"); |
10464 | if (!f) exit(1); | |
10465 | fprintf(f, "%d\n", sizeof(char)); | |
10466 | exit(0); | |
52127426 | 10467 | } |
a0b9e27f | 10468 | EOF |
8d90d2f2 | 10469 | if { (eval echo configure:10470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10470 | then |
10471 | ac_cv_sizeof_char=`cat conftestval` | |
247f5006 | 10472 | else |
a0b9e27f | 10473 | echo "configure: failed program was:" >&5 |
247f5006 | 10474 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10475 | rm -fr conftest* |
10476 | ac_cv_sizeof_char=0 | |
247f5006 | 10477 | fi |
a0b9e27f | 10478 | rm -fr conftest* |
247f5006 | 10479 | fi |
247f5006 VZ |
10480 | |
10481 | fi | |
a0b9e27f MB |
10482 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10483 | cat >> confdefs.h <<EOF | |
10484 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10485 | EOF | |
247f5006 | 10486 | |
247f5006 | 10487 | |
a0b9e27f | 10488 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
8d90d2f2 | 10489 | echo "configure:10490: checking size of short" >&5 |
a0b9e27f MB |
10490 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10491 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10492 | else |
a0b9e27f MB |
10493 | if test "$cross_compiling" = yes; then |
10494 | ac_cv_sizeof_short=2 | |
247f5006 | 10495 | else |
a0b9e27f | 10496 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 10497 | #line 10498 "configure" |
a0b9e27f MB |
10498 | #include "confdefs.h" |
10499 | #include <stdio.h> | |
8d90d2f2 | 10500 | #include <sys/types.h> |
a0b9e27f MB |
10501 | main() |
10502 | { | |
10503 | FILE *f=fopen("conftestval", "w"); | |
10504 | if (!f) exit(1); | |
10505 | fprintf(f, "%d\n", sizeof(short)); | |
10506 | exit(0); | |
10507 | } | |
10508 | EOF | |
8d90d2f2 | 10509 | if { (eval echo configure:10510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10510 | then |
10511 | ac_cv_sizeof_short=`cat conftestval` | |
247f5006 | 10512 | else |
a0b9e27f MB |
10513 | echo "configure: failed program was:" >&5 |
10514 | cat conftest.$ac_ext >&5 | |
10515 | rm -fr conftest* | |
10516 | ac_cv_sizeof_short=0 | |
247f5006 | 10517 | fi |
a0b9e27f | 10518 | rm -fr conftest* |
247f5006 VZ |
10519 | fi |
10520 | ||
247f5006 | 10521 | fi |
a0b9e27f MB |
10522 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10523 | cat >> confdefs.h <<EOF | |
10524 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10525 | EOF | |
247f5006 VZ |
10526 | |
10527 | ||
a0b9e27f | 10528 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
8d90d2f2 | 10529 | echo "configure:10530: checking size of void *" >&5 |
a0b9e27f MB |
10530 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
10531 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10532 | else | |
10533 | if test "$cross_compiling" = yes; then | |
10534 | ac_cv_sizeof_void_p=4 | |
247f5006 | 10535 | else |
a0b9e27f | 10536 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 10537 | #line 10538 "configure" |
247f5006 | 10538 | #include "confdefs.h" |
247f5006 | 10539 | #include <stdio.h> |
8d90d2f2 | 10540 | #include <sys/types.h> |
a0b9e27f | 10541 | main() |
247f5006 | 10542 | { |
a0b9e27f MB |
10543 | FILE *f=fopen("conftestval", "w"); |
10544 | if (!f) exit(1); | |
10545 | fprintf(f, "%d\n", sizeof(void *)); | |
10546 | exit(0); | |
5c6fa7d2 | 10547 | } |
a0b9e27f | 10548 | EOF |
8d90d2f2 | 10549 | if { (eval echo configure:10550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10550 | then |
10551 | ac_cv_sizeof_void_p=`cat conftestval` | |
10552 | else | |
10553 | echo "configure: failed program was:" >&5 | |
10554 | cat conftest.$ac_ext >&5 | |
10555 | rm -fr conftest* | |
10556 | ac_cv_sizeof_void_p=0 | |
10557 | fi | |
10558 | rm -fr conftest* | |
10559 | fi | |
8284b0c5 | 10560 | |
247f5006 | 10561 | fi |
a0b9e27f MB |
10562 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
10563 | cat >> confdefs.h <<EOF | |
10564 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
10565 | EOF | |
247f5006 | 10566 | |
247f5006 | 10567 | |
a0b9e27f | 10568 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
8d90d2f2 | 10569 | echo "configure:10570: checking size of int" >&5 |
a0b9e27f MB |
10570 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
10571 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10572 | else |
a0b9e27f MB |
10573 | if test "$cross_compiling" = yes; then |
10574 | ac_cv_sizeof_int=4 | |
10575 | else | |
10576 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 10577 | #line 10578 "configure" |
247f5006 | 10578 | #include "confdefs.h" |
a0b9e27f | 10579 | #include <stdio.h> |
8d90d2f2 | 10580 | #include <sys/types.h> |
a0b9e27f | 10581 | main() |
247f5006 | 10582 | { |
a0b9e27f MB |
10583 | FILE *f=fopen("conftestval", "w"); |
10584 | if (!f) exit(1); | |
10585 | fprintf(f, "%d\n", sizeof(int)); | |
10586 | exit(0); | |
247f5006 | 10587 | } |
a0b9e27f | 10588 | EOF |
8d90d2f2 | 10589 | if { (eval echo configure:10590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10590 | then |
10591 | ac_cv_sizeof_int=`cat conftestval` | |
6f72b082 | 10592 | else |
a0b9e27f MB |
10593 | echo "configure: failed program was:" >&5 |
10594 | cat conftest.$ac_ext >&5 | |
10595 | rm -fr conftest* | |
10596 | ac_cv_sizeof_int=0 | |
21d1c967 | 10597 | fi |
a0b9e27f | 10598 | rm -fr conftest* |
698dcdb6 | 10599 | fi |
4f14bcd8 | 10600 | |
21d1c967 | 10601 | fi |
a0b9e27f MB |
10602 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
10603 | cat >> confdefs.h <<EOF | |
10604 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10605 | EOF | |
4f14bcd8 | 10606 | |
5c6fa7d2 | 10607 | |
a0b9e27f | 10608 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
8d90d2f2 | 10609 | echo "configure:10610: checking size of long" >&5 |
a0b9e27f MB |
10610 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
10611 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10612 | else |
247f5006 | 10613 | if test "$cross_compiling" = yes; then |
a0b9e27f | 10614 | ac_cv_sizeof_long=4 |
247f5006 | 10615 | else |
a0b9e27f | 10616 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 10617 | #line 10618 "configure" |
247f5006 | 10618 | #include "confdefs.h" |
a0b9e27f | 10619 | #include <stdio.h> |
8d90d2f2 | 10620 | #include <sys/types.h> |
a0b9e27f | 10621 | main() |
247f5006 | 10622 | { |
a0b9e27f MB |
10623 | FILE *f=fopen("conftestval", "w"); |
10624 | if (!f) exit(1); | |
10625 | fprintf(f, "%d\n", sizeof(long)); | |
10626 | exit(0); | |
247f5006 | 10627 | } |
a0b9e27f | 10628 | EOF |
8d90d2f2 | 10629 | if { (eval echo configure:10630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10630 | then |
10631 | ac_cv_sizeof_long=`cat conftestval` | |
247f5006 | 10632 | else |
a0b9e27f MB |
10633 | echo "configure: failed program was:" >&5 |
10634 | cat conftest.$ac_ext >&5 | |
10635 | rm -fr conftest* | |
10636 | ac_cv_sizeof_long=0 | |
247f5006 | 10637 | fi |
a0b9e27f | 10638 | rm -fr conftest* |
247f5006 | 10639 | fi |
247f5006 | 10640 | |
5c6fa7d2 | 10641 | fi |
a0b9e27f MB |
10642 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
10643 | cat >> confdefs.h <<EOF | |
10644 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10645 | EOF | |
247f5006 | 10646 | |
a0b9e27f MB |
10647 | |
10648 | ||
10649 | case "${host}" in | |
10650 | arm-*-linux* ) | |
10651 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
8d90d2f2 | 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 | |
10655 | else | |
10656 | if test "$cross_compiling" = yes; then | |
10657 | ac_cv_sizeof_long_long=8 | |
10658 | else | |
10659 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 10660 | #line 10661 "configure" |
247f5006 | 10661 | #include "confdefs.h" |
a0b9e27f | 10662 | #include <stdio.h> |
8d90d2f2 | 10663 | #include <sys/types.h> |
a0b9e27f | 10664 | main() |
247f5006 | 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); | |
247f5006 | 10670 | } |
a0b9e27f | 10671 | EOF |
8d90d2f2 | 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` | |
7b4a847f | 10675 | else |
a0b9e27f MB |
10676 | echo "configure: failed program was:" >&5 |
10677 | cat conftest.$ac_ext >&5 | |
10678 | rm -fr conftest* | |
10679 | ac_cv_sizeof_long_long=0 | |
5c6fa7d2 | 10680 | fi |
a0b9e27f | 10681 | rm -fr conftest* |
5c6fa7d2 | 10682 | fi |
8284b0c5 | 10683 | |
a0b9e27f MB |
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 | ;; | |
4f57cf11 | 10692 | *-hp-hpux* ) |
a0b9e27f | 10693 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
8d90d2f2 | 10694 | echo "configure:10695: checking size of long long" >&5 |
a0b9e27f MB |
10695 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10696 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 MB |
10697 | else |
10698 | if test "$cross_compiling" = yes; then | |
a0b9e27f | 10699 | ac_cv_sizeof_long_long=0 |
8284b0c5 | 10700 | else |
a0b9e27f | 10701 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 10702 | #line 10703 "configure" |
8284b0c5 MB |
10703 | #include "confdefs.h" |
10704 | #include <stdio.h> | |
8d90d2f2 | 10705 | #include <sys/types.h> |
a0b9e27f | 10706 | main() |
8284b0c5 | 10707 | { |
a0b9e27f MB |
10708 | FILE *f=fopen("conftestval", "w"); |
10709 | if (!f) exit(1); | |
10710 | fprintf(f, "%d\n", sizeof(long long)); | |
10711 | exit(0); | |
8284b0c5 | 10712 | } |
a0b9e27f | 10713 | EOF |
8d90d2f2 | 10714 | if { (eval echo configure:10715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10715 | then |
10716 | ac_cv_sizeof_long_long=`cat conftestval` | |
5c6fa7d2 | 10717 | else |
a0b9e27f MB |
10718 | echo "configure: failed program was:" >&5 |
10719 | cat conftest.$ac_ext >&5 | |
10720 | rm -fr conftest* | |
5c6fa7d2 | 10721 | ac_cv_sizeof_long_long=0 |
52127426 | 10722 | fi |
a0b9e27f MB |
10723 | rm -fr conftest* |
10724 | fi | |
10725 | ||
4f57cf11 GD |
10726 | fi |
10727 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10728 | cat >> confdefs.h <<EOF | |
10729 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10730 | EOF | |
10731 | ||
10732 | ||
10733 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
10734 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
10735 | fi | |
10736 | ;; | |
10737 | * ) | |
10738 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
8d90d2f2 | 10739 | echo "configure:10740: checking size of long long" >&5 |
4f57cf11 GD |
10740 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10741 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10742 | else | |
10743 | if test "$cross_compiling" = yes; then | |
10744 | ac_cv_sizeof_long_long=0 | |
10745 | else | |
10746 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 10747 | #line 10748 "configure" |
4f57cf11 GD |
10748 | #include "confdefs.h" |
10749 | #include <stdio.h> | |
8d90d2f2 | 10750 | #include <sys/types.h> |
4f57cf11 GD |
10751 | main() |
10752 | { | |
10753 | FILE *f=fopen("conftestval", "w"); | |
10754 | if (!f) exit(1); | |
10755 | fprintf(f, "%d\n", sizeof(long long)); | |
10756 | exit(0); | |
10757 | } | |
10758 | EOF | |
8d90d2f2 | 10759 | if { (eval echo configure:10760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f57cf11 GD |
10760 | then |
10761 | ac_cv_sizeof_long_long=`cat conftestval` | |
10762 | else | |
10763 | echo "configure: failed program was:" >&5 | |
10764 | cat conftest.$ac_ext >&5 | |
10765 | rm -fr conftest* | |
10766 | ac_cv_sizeof_long_long=0 | |
10767 | fi | |
10768 | rm -fr conftest* | |
10769 | fi | |
10770 | ||
7b4a847f | 10771 | fi |
a0b9e27f MB |
10772 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10773 | cat >> confdefs.h <<EOF | |
21d1c967 | 10774 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
a0b9e27f | 10775 | EOF |
9e691f46 | 10776 | |
8284b0c5 | 10777 | |
21d1c967 GD |
10778 | esac |
10779 | ||
a0b9e27f | 10780 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
8d90d2f2 | 10781 | echo "configure:10782: checking size of wchar_t" >&5 |
a0b9e27f MB |
10782 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
10783 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 10784 | else |
a0b9e27f | 10785 | |
21d1c967 | 10786 | if test "$cross_compiling" = yes; then |
2b5f62a0 VZ |
10787 | |
10788 | case "${host}" in | |
10789 | *-pc-msdosdjgpp ) | |
10790 | wx_cv_sizeof_wchar_t=0 | |
10791 | ;; | |
10792 | * ) | |
10793 | wx_cv_sizeof_wchar_t=4 | |
10794 | ;; | |
10795 | esac | |
10796 | ||
a0b9e27f | 10797 | |
6f72b082 | 10798 | else |
a0b9e27f | 10799 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 10800 | #line 10801 "configure" |
6f72b082 | 10801 | #include "confdefs.h" |
21d1c967 | 10802 | |
2b5f62a0 VZ |
10803 | /* DJGPP only has fake wchar_t: */ |
10804 | #ifdef __DJGPP__ | |
10805 | # error "fake wchar_t" | |
10806 | #endif | |
21d1c967 GD |
10807 | #ifdef HAVE_WCHAR_H |
10808 | # ifdef __CYGWIN__ | |
10809 | # include <stddef.h> | |
10810 | # endif | |
10811 | # include <wchar.h> | |
10812 | #endif | |
10813 | #ifdef HAVE_STDLIB_H | |
10814 | # include <stdlib.h> | |
10815 | #endif | |
10816 | #include <stdio.h> | |
10817 | int main() | |
10818 | { | |
10819 | FILE *f=fopen("conftestval", "w"); | |
10820 | if (!f) exit(1); | |
10821 | fprintf(f, "%i", sizeof(wchar_t)); | |
10822 | exit(0); | |
10823 | } | |
a0b9e27f MB |
10824 | |
10825 | EOF | |
8d90d2f2 | 10826 | if { (eval echo configure:10827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10827 | then |
21d1c967 | 10828 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 10829 | else |
a0b9e27f MB |
10830 | echo "configure: failed program was:" >&5 |
10831 | cat conftest.$ac_ext >&5 | |
10832 | rm -fr conftest* | |
10833 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 10834 | fi |
a0b9e27f | 10835 | rm -fr conftest* |
6f72b082 | 10836 | fi |
6f72b082 | 10837 | |
a0b9e27f | 10838 | |
3f345b47 VZ |
10839 | fi |
10840 | ||
a0b9e27f MB |
10841 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
10842 | ||
10843 | cat >> confdefs.h <<EOF | |
21d1c967 | 10844 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
a0b9e27f | 10845 | EOF |
90dd450c | 10846 | |
8284b0c5 | 10847 | |
21d1c967 GD |
10848 | # Check whether --enable-largefile or --disable-largefile was given. |
10849 | if test "${enable_largefile+set}" = set; then | |
10850 | enableval="$enable_largefile" | |
a0b9e27f MB |
10851 | : |
10852 | fi | |
3f345b47 | 10853 | |
21d1c967 GD |
10854 | if test "$enable_largefile" != no; then |
10855 | wx_largefile=no | |
a0b9e27f MB |
10856 | |
10857 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
8d90d2f2 | 10858 | echo "configure:10859: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
a0b9e27f MB |
10859 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
10860 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10861 | else | |
10862 | ||
10863 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 10864 | #line 10865 "configure" |
90dd450c | 10865 | #include "confdefs.h" |
21d1c967 GD |
10866 | #define _FILE_OFFSET_BITS 64 |
10867 | #include <sys/types.h> | |
a0b9e27f | 10868 | int main() { |
21d1c967 GD |
10869 | typedef struct { |
10870 | unsigned int field: sizeof(off_t) == 8; | |
10871 | } wxlf; | |
10872 | ||
a0b9e27f MB |
10873 | ; return 0; } |
10874 | EOF | |
8d90d2f2 | 10875 | if { (eval echo configure:10876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10876 | rm -rf conftest* |
21d1c967 | 10877 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 10878 | else |
a0b9e27f MB |
10879 | echo "configure: failed program was:" >&5 |
10880 | cat conftest.$ac_ext >&5 | |
10881 | rm -rf conftest* | |
10882 | ac_cv_sys_file_offset_bits=no | |
5c6fa7d2 | 10883 | fi |
a0b9e27f MB |
10884 | rm -f conftest* |
10885 | ||
10886 | ||
247f5006 | 10887 | fi |
a0b9e27f MB |
10888 | |
10889 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
21d1c967 GD |
10890 | |
10891 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
10892 | wx_largefile=yes | |
a0b9e27f | 10893 | cat >> confdefs.h <<EOF |
21d1c967 | 10894 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
a0b9e27f | 10895 | EOF |
21d1c967 GD |
10896 | |
10897 | fi | |
10898 | ||
10899 | if test "x$wx_largefile" != "xyes"; then | |
a0b9e27f MB |
10900 | |
10901 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
8d90d2f2 | 10902 | echo "configure:10903: checking for _LARGE_FILES value needed for large files" >&5 |
a0b9e27f MB |
10903 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
10904 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10905 | else | |
10906 | ||
10907 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 10908 | #line 10909 "configure" |
f6bcfd97 | 10909 | #include "confdefs.h" |
21d1c967 GD |
10910 | #define _LARGE_FILES 1 |
10911 | #include <sys/types.h> | |
a0b9e27f | 10912 | int main() { |
21d1c967 GD |
10913 | typedef struct { |
10914 | unsigned int field: sizeof(off_t) == 8; | |
10915 | } wxlf; | |
10916 | ||
a0b9e27f MB |
10917 | ; return 0; } |
10918 | EOF | |
8d90d2f2 | 10919 | if { (eval echo configure:10920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10920 | rm -rf conftest* |
21d1c967 | 10921 | ac_cv_sys_large_files=1 |
f6bcfd97 | 10922 | else |
a0b9e27f MB |
10923 | echo "configure: failed program was:" >&5 |
10924 | cat conftest.$ac_ext >&5 | |
10925 | rm -rf conftest* | |
10926 | ac_cv_sys_large_files=no | |
5c6fa7d2 | 10927 | fi |
a0b9e27f MB |
10928 | rm -f conftest* |
10929 | ||
10930 | ||
247f5006 | 10931 | fi |
a0b9e27f MB |
10932 | |
10933 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
3f345b47 | 10934 | |
21d1c967 GD |
10935 | if test "$ac_cv_sys_large_files" != no; then |
10936 | wx_largefile=yes | |
a0b9e27f | 10937 | cat >> confdefs.h <<EOF |
21d1c967 | 10938 | #define _LARGE_FILES $ac_cv_sys_large_files |
a0b9e27f | 10939 | EOF |
90dd450c | 10940 | |
90dd450c VZ |
10941 | fi |
10942 | ||
90dd450c | 10943 | fi |
90dd450c | 10944 | |
a0b9e27f | 10945 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
8d90d2f2 | 10946 | echo "configure:10947: checking if large file support is available" >&5 |
21d1c967 | 10947 | if test "x$wx_largefile" = "xyes"; then |
a0b9e27f | 10948 | cat >> confdefs.h <<\EOF |
21d1c967 | 10949 | #define HAVE_LARGEFILE_SUPPORT 1 |
a0b9e27f | 10950 | EOF |
90dd450c | 10951 | |
90dd450c | 10952 | fi |
a0b9e27f | 10953 | echo "$ac_t""$wx_largefile" 1>&6 |
21d1c967 | 10954 | fi |
90dd450c | 10955 | |
8284b0c5 | 10956 | |
f02444d0 | 10957 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
10958 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
10959 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 10960 | else |
e26c13cf | 10961 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 10962 | fi |
e26c13cf | 10963 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
10964 | fi |
10965 | ||
a0b9e27f | 10966 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
8d90d2f2 | 10967 | echo "configure:10968: checking whether byte ordering is bigendian" >&5 |
a0b9e27f MB |
10968 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
10969 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 10970 | else |
21d1c967 GD |
10971 | ac_cv_c_bigendian=unknown |
10972 | # See if sys/param.h defines the BYTE_ORDER macro. | |
a0b9e27f | 10973 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 10974 | #line 10975 "configure" |
90dd450c | 10975 | #include "confdefs.h" |
21d1c967 GD |
10976 | #include <sys/types.h> |
10977 | #include <sys/param.h> | |
a0b9e27f | 10978 | int main() { |
21d1c967 GD |
10979 | |
10980 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10981 | bogus endian macros | |
10982 | #endif | |
a0b9e27f MB |
10983 | ; return 0; } |
10984 | EOF | |
8d90d2f2 | 10985 | if { (eval echo configure:10986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10986 | rm -rf conftest* |
21d1c967 | 10987 | # It does; now see whether it defined to BIG_ENDIAN or not. |
a0b9e27f | 10988 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 10989 | #line 10990 "configure" |
90dd450c | 10990 | #include "confdefs.h" |
21d1c967 GD |
10991 | #include <sys/types.h> |
10992 | #include <sys/param.h> | |
a0b9e27f | 10993 | int main() { |
21d1c967 GD |
10994 | |
10995 | #if BYTE_ORDER != BIG_ENDIAN | |
10996 | not big endian | |
10997 | #endif | |
a0b9e27f MB |
10998 | ; return 0; } |
10999 | EOF | |
8d90d2f2 | 11000 | if { (eval echo configure:11001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11001 | rm -rf conftest* |
21d1c967 | 11002 | ac_cv_c_bigendian=yes |
3f345b47 | 11003 | else |
a0b9e27f MB |
11004 | echo "configure: failed program was:" >&5 |
11005 | cat conftest.$ac_ext >&5 | |
11006 | rm -rf conftest* | |
11007 | ac_cv_c_bigendian=no | |
3f345b47 | 11008 | fi |
a0b9e27f | 11009 | rm -f conftest* |
3f345b47 | 11010 | else |
a0b9e27f MB |
11011 | echo "configure: failed program was:" >&5 |
11012 | cat conftest.$ac_ext >&5 | |
3f345b47 | 11013 | fi |
a0b9e27f | 11014 | rm -f conftest* |
21d1c967 GD |
11015 | if test $ac_cv_c_bigendian = unknown; then |
11016 | if test "$cross_compiling" = yes; then | |
11017 | ac_cv_c_bigendian=unknown | |
10f2d63a | 11018 | else |
a0b9e27f | 11019 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 11020 | #line 11021 "configure" |
90dd450c | 11021 | #include "confdefs.h" |
21d1c967 GD |
11022 | main () { |
11023 | /* Are we little or big endian? From Harbison&Steele. */ | |
11024 | union | |
11025 | { | |
11026 | long l; | |
11027 | char c[sizeof (long)]; | |
11028 | } u; | |
11029 | u.l = 1; | |
11030 | exit (u.c[sizeof (long) - 1] == 1); | |
11031 | } | |
a0b9e27f | 11032 | EOF |
8d90d2f2 | 11033 | if { (eval echo configure:11034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 11034 | then |
21d1c967 | 11035 | ac_cv_c_bigendian=no |
3f345b47 | 11036 | else |
a0b9e27f MB |
11037 | echo "configure: failed program was:" >&5 |
11038 | cat conftest.$ac_ext >&5 | |
11039 | rm -fr conftest* | |
11040 | ac_cv_c_bigendian=yes | |
247f5006 | 11041 | fi |
a0b9e27f | 11042 | rm -fr conftest* |
247f5006 | 11043 | fi |
a0b9e27f | 11044 | |
3f345b47 | 11045 | fi |
8168de4c | 11046 | fi |
a0b9e27f MB |
11047 | |
11048 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
247f5006 | 11049 | if test $ac_cv_c_bigendian = unknown; then |
a0b9e27f | 11050 | 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 |
11051 | fi |
11052 | if test $ac_cv_c_bigendian = yes; then | |
a0b9e27f | 11053 | cat >> confdefs.h <<\EOF |
247f5006 | 11054 | #define WORDS_BIGENDIAN 1 |
a0b9e27f | 11055 | EOF |
247f5006 VZ |
11056 | |
11057 | fi | |
11058 | ||
11059 | ||
a0b9e27f | 11060 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
8d90d2f2 | 11061 | echo "configure:11062: checking how to run the C++ preprocessor" >&5 |
247f5006 | 11062 | if test -z "$CXXCPP"; then |
a0b9e27f MB |
11063 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
11064 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11065 | else |
a0b9e27f MB |
11066 | ac_ext=C |
11067 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11068 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11069 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11070 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11071 | cross_compiling=$ac_cv_prog_cxx_cross | |
11072 | CXXCPP="${CXX-g++} -E" | |
11073 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 11074 | #line 11075 "configure" |
5c6fa7d2 | 11075 | #include "confdefs.h" |
a0b9e27f MB |
11076 | #include <stdlib.h> |
11077 | EOF | |
11078 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8d90d2f2 | 11079 | { (eval echo configure:11080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11080 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11081 | if test -z "$ac_err"; then | |
21d1c967 | 11082 | : |
698dcdb6 | 11083 | else |
a0b9e27f MB |
11084 | echo "$ac_err" >&5 |
11085 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 11086 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11087 | rm -rf conftest* |
11088 | CXXCPP=/lib/cpp | |
247f5006 | 11089 | fi |
a0b9e27f MB |
11090 | rm -f conftest* |
11091 | ac_cv_prog_CXXCPP="$CXXCPP" | |
11092 | ac_ext=C | |
11093 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11094 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11095 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11096 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11097 | cross_compiling=$ac_cv_prog_cxx_cross | |
328a083c | 11098 | fi |
90dd450c | 11099 | fi |
a0b9e27f MB |
11100 | CXXCPP="$ac_cv_prog_CXXCPP" |
11101 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e6feb95 | 11102 | |
1725144d | 11103 | |
21d1c967 | 11104 | if test "$cross_compiling" = "yes"; then |
a0b9e27f | 11105 | cat >> confdefs.h <<\EOF |
21d1c967 | 11106 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11107 | EOF |
ab9b9eab | 11108 | |
21d1c967 | 11109 | else |
a0b9e27f MB |
11110 | |
11111 | ac_ext=C | |
11112 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11113 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11114 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11115 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11116 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 11117 | |
247f5006 | 11118 | |
a0b9e27f | 11119 | for ac_hdr in iostream |
21d1c967 | 11120 | do |
a0b9e27f MB |
11121 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11122 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8d90d2f2 | 11123 | echo "configure:11124: checking for $ac_hdr" >&5 |
a0b9e27f MB |
11124 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11125 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11126 | else | |
11127 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 11128 | #line 11129 "configure" |
ab9b9eab | 11129 | #include "confdefs.h" |
a0b9e27f MB |
11130 | #include <$ac_hdr> |
11131 | EOF | |
11132 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8d90d2f2 | 11133 | { (eval echo configure:11134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11134 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11135 | if test -z "$ac_err"; then | |
11136 | rm -rf conftest* | |
11137 | eval "ac_cv_header_$ac_safe=yes" | |
11138 | else | |
11139 | echo "$ac_err" >&5 | |
11140 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 11141 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11142 | rm -rf conftest* |
11143 | eval "ac_cv_header_$ac_safe=no" | |
ab9b9eab | 11144 | fi |
a0b9e27f | 11145 | rm -f conftest* |
90dd450c | 11146 | fi |
a0b9e27f MB |
11147 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11148 | echo "$ac_t""yes" 1>&6 | |
11149 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11150 | cat >> confdefs.h <<EOF | |
11151 | #define $ac_tr_hdr 1 | |
11152 | EOF | |
11153 | ||
11154 | else | |
11155 | echo "$ac_t""no" 1>&6 | |
90dd450c | 11156 | fi |
21d1c967 | 11157 | done |
10f2d63a | 11158 | |
8284b0c5 | 11159 | |
21d1c967 GD |
11160 | if test "$ac_cv_header_iostream" = "yes" ; then |
11161 | : | |
11162 | else | |
a0b9e27f | 11163 | cat >> confdefs.h <<\EOF |
21d1c967 | 11164 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11165 | EOF |
788deba1 | 11166 | |
90dd450c | 11167 | fi |
ab9b9eab | 11168 | |
21d1c967 | 11169 | ac_ext=c |
a0b9e27f | 11170 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11171 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11172 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11173 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11174 | cross_compiling=$ac_cv_prog_cc_cross | |
ab9b9eab | 11175 | |
21d1c967 | 11176 | fi |
ab9b9eab | 11177 | |
52127426 | 11178 | |
8284b0c5 | 11179 | |
a0b9e27f | 11180 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
8d90d2f2 | 11181 | echo "configure:11182: checking if C++ compiler supports bool" >&5 |
a0b9e27f MB |
11182 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
11183 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11184 | else |
a0b9e27f MB |
11185 | |
11186 | ||
11187 | ac_ext=C | |
11188 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11189 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11190 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11191 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11192 | cross_compiling=$ac_cv_prog_cxx_cross | |
21d1c967 | 11193 | |
8284b0c5 | 11194 | |
a0b9e27f | 11195 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 11196 | #line 11197 "configure" |
ab9b9eab | 11197 | #include "confdefs.h" |
21d1c967 | 11198 | |
a0b9e27f MB |
11199 | |
11200 | int main() { | |
21d1c967 GD |
11201 | |
11202 | bool b = true; | |
11203 | ||
11204 | return 0; | |
a0b9e27f MB |
11205 | |
11206 | ; return 0; } | |
11207 | EOF | |
8d90d2f2 | 11208 | if { (eval echo configure:11209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11209 | rm -rf conftest* |
11210 | ||
21d1c967 | 11211 | wx_cv_cpp_bool=yes |
a0b9e27f | 11212 | |
698dcdb6 | 11213 | else |
a0b9e27f MB |
11214 | echo "configure: failed program was:" >&5 |
11215 | cat conftest.$ac_ext >&5 | |
11216 | rm -rf conftest* | |
11217 | ||
21d1c967 | 11218 | wx_cv_cpp_bool=no |
a0b9e27f MB |
11219 | |
11220 | ||
698dcdb6 | 11221 | fi |
a0b9e27f | 11222 | rm -f conftest* |
21d1c967 GD |
11223 | |
11224 | ac_ext=c | |
a0b9e27f | 11225 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11226 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11227 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11228 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11229 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11230 | |
a0b9e27f | 11231 | |
247f5006 | 11232 | fi |
a0b9e27f MB |
11233 | |
11234 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
21d1c967 GD |
11235 | |
11236 | if test "$wx_cv_cpp_bool" = "yes"; then | |
a0b9e27f | 11237 | cat >> confdefs.h <<\EOF |
21d1c967 | 11238 | #define HAVE_BOOL 1 |
a0b9e27f | 11239 | EOF |
ab9b9eab | 11240 | |
21d1c967 GD |
11241 | fi |
11242 | ||
52127426 | 11243 | |
8284b0c5 | 11244 | |
a0b9e27f | 11245 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 |
8d90d2f2 | 11246 | echo "configure:11247: checking if C++ compiler supports the explicit keyword" >&5 |
a0b9e27f MB |
11247 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then |
11248 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11249 | else |
a0b9e27f MB |
11250 | |
11251 | ||
11252 | ac_ext=C | |
11253 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11254 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11255 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11256 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11257 | cross_compiling=$ac_cv_prog_cxx_cross | |
986ecc86 | 11258 | |
8284b0c5 | 11259 | |
a0b9e27f | 11260 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 11261 | #line 11262 "configure" |
986ecc86 VZ |
11262 | #include "confdefs.h" |
11263 | ||
11264 | class Foo { public: explicit Foo(int) {} }; | |
a0b9e27f MB |
11265 | |
11266 | int main() { | |
986ecc86 VZ |
11267 | |
11268 | return 0; | |
a0b9e27f MB |
11269 | |
11270 | ; return 0; } | |
11271 | EOF | |
8d90d2f2 | 11272 | if { (eval echo configure:11273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11273 | rm -rf conftest* |
11274 | ||
11275 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 11276 | #line 11277 "configure" |
986ecc86 VZ |
11277 | #include "confdefs.h" |
11278 | ||
11279 | class Foo { public: explicit Foo(int) {} }; | |
11280 | static void TakeFoo(const Foo& foo) { } | |
a0b9e27f MB |
11281 | |
11282 | int main() { | |
986ecc86 VZ |
11283 | |
11284 | TakeFoo(17); | |
11285 | return 0; | |
a0b9e27f MB |
11286 | |
11287 | ; return 0; } | |
11288 | EOF | |
8d90d2f2 | 11289 | if { (eval echo configure:11290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11290 | rm -rf conftest* |
986ecc86 VZ |
11291 | wx_cv_explicit=no |
11292 | else | |
a0b9e27f MB |
11293 | echo "configure: failed program was:" >&5 |
11294 | cat conftest.$ac_ext >&5 | |
11295 | rm -rf conftest* | |
11296 | wx_cv_explicit=yes | |
11297 | ||
986ecc86 | 11298 | fi |
a0b9e27f MB |
11299 | rm -f conftest* |
11300 | ||
986ecc86 | 11301 | else |
a0b9e27f MB |
11302 | echo "configure: failed program was:" >&5 |
11303 | cat conftest.$ac_ext >&5 | |
11304 | rm -rf conftest* | |
11305 | wx_cv_explicit=no | |
11306 | ||
986ecc86 | 11307 | fi |
a0b9e27f | 11308 | rm -f conftest* |
986ecc86 VZ |
11309 | |
11310 | ac_ext=c | |
a0b9e27f | 11311 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
986ecc86 | 11312 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11313 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11314 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11315 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11316 | |
a0b9e27f | 11317 | |
247f5006 | 11318 | fi |
a0b9e27f MB |
11319 | |
11320 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
986ecc86 VZ |
11321 | |
11322 | if test "$wx_cv_explicit" = "yes"; then | |
a0b9e27f | 11323 | cat >> confdefs.h <<\EOF |
986ecc86 | 11324 | #define HAVE_EXPLICIT 1 |
a0b9e27f | 11325 | EOF |
986ecc86 VZ |
11326 | |
11327 | fi | |
11328 | ||
8284b0c5 MB |
11329 | |
11330 | ||
21d1c967 GD |
11331 | SEARCH_INCLUDE="\ |
11332 | /usr/local/include \ | |
11333 | \ | |
11334 | /usr/Motif-1.2/include \ | |
11335 | /usr/Motif-2.1/include \ | |
11336 | \ | |
11337 | /usr/include/Motif1.2 \ | |
11338 | /opt/xpm/include/X11 \ | |
11339 | /opt/GBxpm/include/ \ | |
11340 | /opt/GBxpm/X11/include/ \ | |
11341 | \ | |
11342 | /usr/Motif1.2/include \ | |
11343 | /usr/dt/include \ | |
11344 | /usr/openwin/include \ | |
11345 | \ | |
11346 | /usr/include/Xm \ | |
11347 | \ | |
11348 | /usr/X11R6/include \ | |
11349 | /usr/X11R6.4/include \ | |
11350 | /usr/X11R5/include \ | |
11351 | /usr/X11R4/include \ | |
11352 | \ | |
11353 | /usr/include/X11R6 \ | |
11354 | /usr/include/X11R5 \ | |
11355 | /usr/include/X11R4 \ | |
11356 | \ | |
11357 | /usr/local/X11R6/include \ | |
11358 | /usr/local/X11R5/include \ | |
11359 | /usr/local/X11R4/include \ | |
11360 | \ | |
11361 | /usr/local/include/X11R6 \ | |
11362 | /usr/local/include/X11R5 \ | |
11363 | /usr/local/include/X11R4 \ | |
11364 | \ | |
11365 | /usr/X11/include \ | |
11366 | /usr/include/X11 \ | |
11367 | /usr/local/X11/include \ | |
11368 | /usr/local/include/X11 \ | |
11369 | \ | |
11370 | /usr/X386/include \ | |
11371 | /usr/x386/include \ | |
11372 | /usr/XFree86/include/X11 \ | |
11373 | \ | |
11374 | X:/XFree86/include \ | |
11375 | X:/XFree86/include/X11 \ | |
11376 | \ | |
11377 | /usr/include/gtk \ | |
11378 | /usr/local/include/gtk \ | |
11379 | /usr/include/glib \ | |
11380 | /usr/local/include/glib \ | |
11381 | \ | |
11382 | /usr/include/qt \ | |
11383 | /usr/local/include/qt \ | |
11384 | \ | |
11385 | /usr/include/windows \ | |
11386 | /usr/include/wine \ | |
11387 | /usr/local/include/wine \ | |
11388 | \ | |
11389 | /usr/unsupported/include \ | |
11390 | /usr/athena/include \ | |
11391 | /usr/local/x11r5/include \ | |
11392 | /usr/lpp/Xamples/include \ | |
11393 | \ | |
2b5f62a0 | 11394 | /usr/openwin/share/include" |
21d1c967 GD |
11395 | |
11396 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
11397 | ||
8284b0c5 | 11398 | |
a0b9e27f | 11399 | cat > confcache <<\EOF |
21d1c967 GD |
11400 | # This file is a shell script that caches the results of configure |
11401 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
11402 | # scripts and configure runs. It is not useful on other systems. |
11403 | # If it contains results you don't want to keep, you may remove or edit it. | |
21d1c967 | 11404 | # |
a0b9e27f MB |
11405 | # By default, configure uses ./config.cache as the cache file, |
11406 | # creating it if it does not exist already. You can give configure | |
11407 | # the --cache-file=FILE option to use a different cache file; that is | |
11408 | # what configure does when it calls configure scripts in | |
11409 | # subdirectories, so they share the cache. | |
11410 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
11411 | # config.status only pays attention to the cache file if you give it the | |
11412 | # --recheck option to rerun configure. | |
21d1c967 | 11413 | # |
a0b9e27f | 11414 | EOF |
21d1c967 GD |
11415 | # The following way of writing the cache mishandles newlines in values, |
11416 | # but we know of no workaround that is simple, portable, and efficient. | |
11417 | # So, don't put newlines in cache variables' values. | |
11418 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11419 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
11420 | (set) 2>&1 | |
11421 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11422 | *ac_space=\ *) | |
11423 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11424 | # turns \\\\ into \\, and sed turns \\ into \). | |
11425 | sed -n \ | |
11426 | -e "s/'/'\\\\''/g" \ | |
11427 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11428 | ;; | |
11429 | *) | |
11430 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11431 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11432 | ;; | |
11433 | esac >> confcache | |
11434 | if cmp -s $cache_file confcache; then | |
11435 | : | |
11436 | else | |
21d1c967 | 11437 | if test -w $cache_file; then |
a0b9e27f MB |
11438 | echo "updating cache $cache_file" |
11439 | cat confcache > $cache_file | |
21d1c967 GD |
11440 | else |
11441 | echo "not updating unwritable cache $cache_file" | |
11442 | fi | |
ab9b9eab | 11443 | fi |
21d1c967 | 11444 | rm -f confcache |
ab9b9eab | 11445 | |
247f5006 | 11446 | |
a0b9e27f MB |
11447 | if test "$USE_LINUX" = 1; then |
11448 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
8d90d2f2 | 11449 | echo "configure:11450: checking for glibc 2.1 or later" >&5 |
a0b9e27f MB |
11450 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then |
11451 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11452 | else | |
11453 | ||
11454 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 11455 | #line 11456 "configure" |
ab9b9eab | 11456 | #include "confdefs.h" |
21d1c967 | 11457 | #include <features.h> |
a0b9e27f | 11458 | int main() { |
ab9b9eab | 11459 | |
21d1c967 GD |
11460 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
11461 | #error not glibc2.1 | |
11462 | #endif | |
a0b9e27f MB |
11463 | |
11464 | ; return 0; } | |
11465 | EOF | |
8d90d2f2 | 11466 | if { (eval echo configure:11467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11467 | rm -rf conftest* |
11468 | ||
21d1c967 | 11469 | wx_cv_lib_glibc21=yes |
a0b9e27f | 11470 | |
698dcdb6 | 11471 | else |
a0b9e27f MB |
11472 | echo "configure: failed program was:" >&5 |
11473 | cat conftest.$ac_ext >&5 | |
11474 | rm -rf conftest* | |
11475 | ||
21d1c967 | 11476 | wx_cv_lib_glibc21=no |
a0b9e27f MB |
11477 | |
11478 | ||
5c6fa7d2 | 11479 | fi |
a0b9e27f MB |
11480 | rm -f conftest* |
11481 | ||
247f5006 | 11482 | fi |
a0b9e27f MB |
11483 | |
11484 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 | |
21d1c967 | 11485 | if test "$wx_cv_lib_glibc21" = "yes"; then |
a0b9e27f | 11486 | cat >> confdefs.h <<\EOF |
21d1c967 | 11487 | #define wxHAVE_GLIBC2 1 |
a0b9e27f | 11488 | EOF |
1e487827 | 11489 | |
90dd450c | 11490 | fi |
ab9b9eab VZ |
11491 | fi |
11492 | ||
5c0a20c3 VZ |
11493 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
11494 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 11495 | cat >> confdefs.h <<\EOF |
5c0a20c3 | 11496 | #define _GNU_SOURCE 1 |
a0b9e27f | 11497 | EOF |
5c0a20c3 VZ |
11498 | |
11499 | fi | |
11500 | fi | |
11501 | ||
8284b0c5 MB |
11502 | |
11503 | ||
21d1c967 GD |
11504 | REGEX_INCLUDE= |
11505 | if test "$wxUSE_REGEX" != "no"; then | |
a0b9e27f | 11506 | cat >> confdefs.h <<\EOF |
21d1c967 | 11507 | #define wxUSE_REGEX 1 |
a0b9e27f | 11508 | EOF |
698dcdb6 | 11509 | |
8284b0c5 | 11510 | |
21d1c967 | 11511 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
a0b9e27f MB |
11512 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` |
11513 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
8d90d2f2 | 11514 | echo "configure:11515: checking for regex.h" >&5 |
a0b9e27f MB |
11515 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11516 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11517 | else | |
11518 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 11519 | #line 11520 "configure" |
247f5006 VZ |
11520 | #include "confdefs.h" |
11521 | #include <regex.h> | |
a0b9e27f MB |
11522 | EOF |
11523 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8d90d2f2 | 11524 | { (eval echo configure:11525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11525 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11526 | if test -z "$ac_err"; then | |
11527 | rm -rf conftest* | |
11528 | eval "ac_cv_header_$ac_safe=yes" | |
11529 | else | |
11530 | echo "$ac_err" >&5 | |
11531 | echo "configure: failed program was:" >&5 | |
21d1c967 | 11532 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11533 | rm -rf conftest* |
11534 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 11535 | fi |
a0b9e27f | 11536 | rm -f conftest* |
698dcdb6 | 11537 | fi |
a0b9e27f MB |
11538 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11539 | echo "$ac_t""yes" 1>&6 | |
11540 | for ac_func in regcomp | |
21d1c967 | 11541 | do |
a0b9e27f | 11542 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 11543 | echo "configure:11544: checking for $ac_func" >&5 |
a0b9e27f MB |
11544 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11545 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11546 | else |
a0b9e27f | 11547 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 11548 | #line 11549 "configure" |
a0b9e27f MB |
11549 | #include "confdefs.h" |
11550 | /* System header to define __stub macros and hopefully few prototypes, | |
11551 | which can conflict with char $ac_func(); below. */ | |
21d1c967 GD |
11552 | #include <assert.h> |
11553 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11554 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11555 | builtin and then its argument prototype would still apply. */ |
11556 | char $ac_func(); | |
11557 | ||
11558 | int main() { | |
11559 | ||
21d1c967 GD |
11560 | /* The GNU C library defines this for functions which it implements |
11561 | to always fail with ENOSYS. Some functions are actually named | |
11562 | something starting with __ and the normal name is an alias. */ | |
11563 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11564 | choke me | |
11565 | #else | |
a0b9e27f | 11566 | $ac_func(); |
21d1c967 | 11567 | #endif |
90dd450c | 11568 | |
a0b9e27f MB |
11569 | ; return 0; } |
11570 | EOF | |
8d90d2f2 | 11571 | if { (eval echo configure:11572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11572 | rm -rf conftest* |
11573 | eval "ac_cv_func_$ac_func=yes" | |
11574 | else | |
11575 | echo "configure: failed program was:" >&5 | |
11576 | cat conftest.$ac_ext >&5 | |
11577 | rm -rf conftest* | |
11578 | eval "ac_cv_func_$ac_func=no" | |
11579 | fi | |
11580 | rm -f conftest* | |
11581 | fi | |
5c6fa7d2 | 11582 | |
a0b9e27f MB |
11583 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11584 | echo "$ac_t""yes" 1>&6 | |
11585 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11586 | cat >> confdefs.h <<EOF | |
11587 | #define $ac_tr_func 1 | |
11588 | EOF | |
11589 | ||
11590 | else | |
11591 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 11592 | fi |
21d1c967 GD |
11593 | done |
11594 | ||
a0b9e27f MB |
11595 | else |
11596 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11597 | fi |
11598 | ||
8284b0c5 | 11599 | |
21d1c967 GD |
11600 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
11601 | if test "$wxUSE_REGEX" = "sys" ; then | |
a0b9e27f | 11602 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11603 | else |
a0b9e27f | 11604 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11605 | wxUSE_REGEX=builtin |
11606 | fi | |
11607 | else | |
11608 | wxUSE_REGEX=sys | |
11609 | fi | |
ab9b9eab | 11610 | fi |
90dd450c | 11611 | |
21d1c967 GD |
11612 | if test "$wxUSE_REGEX" = "builtin" ; then |
11613 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 11614 | fi |
21d1c967 | 11615 | fi |
90dd450c | 11616 | |
8284b0c5 | 11617 | |
21d1c967 GD |
11618 | ZLIB_INCLUDE= |
11619 | ZLIB_LINK= | |
11620 | if test "$wxUSE_ZLIB" != "no" ; then | |
a0b9e27f | 11621 | cat >> confdefs.h <<\EOF |
21d1c967 | 11622 | #define wxUSE_ZLIB 1 |
a0b9e27f | 11623 | EOF |
21d1c967 | 11624 | |
8284b0c5 | 11625 | |
21d1c967 | 11626 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
11627 | if test "$USE_DARWIN" = 1; then |
11628 | system_zlib_h_ok="yes" | |
11629 | else | |
11630 | echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6 | |
8d90d2f2 | 11631 | echo "configure:11632: checking for zlib.h >= 1.1.4" >&5 |
d643b80e VZ |
11632 | if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then |
11633 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11634 | else | |
11635 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 11636 | unset ac_cv_header_zlib_h |
d775acfa | 11637 | |
d643b80e VZ |
11638 | else |
11639 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 11640 | #line 11641 "configure" |
d643b80e VZ |
11641 | #include "confdefs.h" |
11642 | ||
d775acfa VZ |
11643 | #include <zlib.h> |
11644 | #include <stdio.h> | |
d643b80e | 11645 | |
d775acfa VZ |
11646 | |
11647 | int main() | |
11648 | { | |
11649 | FILE *f=fopen("conftestval", "w"); | |
11650 | if (!f) exit(1); | |
11651 | fprintf(f, "%s", | |
11652 | ZLIB_VERSION[0] == '1' && | |
11653 | (ZLIB_VERSION[2] > '1' || | |
11654 | (ZLIB_VERSION[2] == '1' && | |
11655 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
11656 | exit(0); | |
11657 | } | |
11658 | ||
d643b80e | 11659 | |
d643b80e | 11660 | EOF |
8d90d2f2 | 11661 | if { (eval echo configure:11662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
d643b80e VZ |
11662 | then |
11663 | ac_cv_header_zlib_h=`cat conftestval` | |
11664 | else | |
11665 | echo "configure: failed program was:" >&5 | |
11666 | cat conftest.$ac_ext >&5 | |
11667 | rm -fr conftest* | |
11668 | ac_cv_header_zlib_h=no | |
11669 | fi | |
11670 | rm -fr conftest* | |
11671 | fi | |
11672 | ||
d775acfa | 11673 | |
d643b80e VZ |
11674 | fi |
11675 | ||
11676 | echo "$ac_t""$ac_cv_header_zlib_h" 1>&6 | |
89e6bf6d VZ |
11677 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
11678 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
8d90d2f2 | 11679 | echo "configure:11680: checking for zlib.h" >&5 |
89e6bf6d VZ |
11680 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11681 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11682 | else | |
11683 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 11684 | #line 11685 "configure" |
89e6bf6d VZ |
11685 | #include "confdefs.h" |
11686 | #include <zlib.h> | |
11687 | EOF | |
11688 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8d90d2f2 | 11689 | { (eval echo configure:11690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
89e6bf6d VZ |
11690 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11691 | if test -z "$ac_err"; then | |
11692 | rm -rf conftest* | |
11693 | eval "ac_cv_header_$ac_safe=yes" | |
11694 | else | |
11695 | echo "$ac_err" >&5 | |
11696 | echo "configure: failed program was:" >&5 | |
11697 | cat conftest.$ac_ext >&5 | |
11698 | rm -rf conftest* | |
11699 | eval "ac_cv_header_$ac_safe=no" | |
11700 | fi | |
11701 | rm -f conftest* | |
11702 | fi | |
11703 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11704 | echo "$ac_t""yes" 1>&6 | |
11705 | : | |
11706 | else | |
11707 | echo "$ac_t""no" 1>&6 | |
11708 | fi | |
11709 | ||
d643b80e | 11710 | |
d775acfa VZ |
11711 | system_zlib_h_ok=$ac_cv_header_zlib_h |
11712 | fi | |
11713 | ||
11714 | if test "$system_zlib_h_ok" = "yes"; then | |
d643b80e | 11715 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
8d90d2f2 | 11716 | echo "configure:11717: checking for deflate in -lz" >&5 |
a0b9e27f MB |
11717 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
11718 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11719 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11720 | else |
a0b9e27f | 11721 | ac_save_LIBS="$LIBS" |
21d1c967 | 11722 | LIBS="-lz $LIBS" |
a0b9e27f | 11723 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 11724 | #line 11725 "configure" |
ab9b9eab | 11725 | #include "confdefs.h" |
21d1c967 GD |
11726 | /* Override any gcc2 internal prototype to avoid an error. */ |
11727 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11728 | builtin and then its argument prototype would still apply. */ |
11729 | char deflate(); | |
11730 | ||
11731 | int main() { | |
11732 | deflate() | |
11733 | ; return 0; } | |
11734 | EOF | |
8d90d2f2 | 11735 | if { (eval echo configure:11736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11736 | rm -rf conftest* |
11737 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11738 | else | |
11739 | echo "configure: failed program was:" >&5 | |
11740 | cat conftest.$ac_ext >&5 | |
11741 | rm -rf conftest* | |
11742 | eval "ac_cv_lib_$ac_lib_var=no" | |
90dd450c | 11743 | fi |
a0b9e27f MB |
11744 | rm -f conftest* |
11745 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 11746 | |
698dcdb6 | 11747 | fi |
a0b9e27f MB |
11748 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11749 | echo "$ac_t""yes" 1>&6 | |
11750 | ZLIB_LINK=" -lz" | |
11751 | else | |
11752 | echo "$ac_t""no" 1>&6 | |
11753 | fi | |
698dcdb6 | 11754 | |
d643b80e | 11755 | fi |
247f5006 | 11756 | |
21d1c967 GD |
11757 | if test "x$ZLIB_LINK" = "x" ; then |
11758 | if test "$wxUSE_ZLIB" = "sys" ; then | |
d643b80e | 11759 | { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11760 | else |
d643b80e | 11761 | echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2 |
21d1c967 GD |
11762 | wxUSE_ZLIB=builtin |
11763 | fi | |
11764 | else | |
11765 | wxUSE_ZLIB=sys | |
11766 | fi | |
11767 | fi | |
11768 | ||
11769 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11770 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11771 | fi | |
ab9b9eab VZ |
11772 | fi |
11773 | ||
8284b0c5 | 11774 | |
21d1c967 GD |
11775 | PNG_INCLUDE= |
11776 | PNG_LINK= | |
11777 | if test "$wxUSE_LIBPNG" != "no" ; then | |
a0b9e27f | 11778 | cat >> confdefs.h <<\EOF |
21d1c967 | 11779 | #define wxUSE_LIBPNG 1 |
a0b9e27f | 11780 | EOF |
90dd450c | 11781 | |
8284b0c5 | 11782 | |
21d1c967 | 11783 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
a0b9e27f | 11784 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11785 | wxUSE_LIBPNG=sys |
11786 | fi | |
90dd450c | 11787 | |
21d1c967 | 11788 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
a0b9e27f | 11789 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
21d1c967 GD |
11790 | wxUSE_LIBPNG=builtin |
11791 | fi | |
11792 | ||
11793 | if test "$wxUSE_MGL" != 1 ; then | |
11794 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
5d3f766d | 11795 | echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6 |
8d90d2f2 | 11796 | echo "configure:11797: checking for png.h > 0.90" >&5 |
5d3f766d VZ |
11797 | if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then |
11798 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11799 | else | |
11800 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 11801 | unset ac_cv_header_png_h |
5d3f766d VZ |
11802 | |
11803 | else | |
11804 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 11805 | #line 11806 "configure" |
5d3f766d VZ |
11806 | #include "confdefs.h" |
11807 | ||
11808 | #include <png.h> | |
11809 | #include <stdio.h> | |
11810 | ||
11811 | int main() | |
11812 | { | |
11813 | FILE *f=fopen("conftestval", "w"); | |
11814 | if (!f) exit(1); | |
11815 | fprintf(f, "%s", | |
11816 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
11817 | exit(0); | |
11818 | } | |
11819 | ||
11820 | EOF | |
8d90d2f2 | 11821 | if { (eval echo configure:11822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5d3f766d VZ |
11822 | then |
11823 | ac_cv_header_png_h=`cat conftestval` | |
11824 | else | |
11825 | echo "configure: failed program was:" >&5 | |
11826 | cat conftest.$ac_ext >&5 | |
11827 | rm -fr conftest* | |
11828 | ac_cv_header_png_h=no | |
11829 | fi | |
11830 | rm -fr conftest* | |
11831 | fi | |
11832 | ||
11833 | ||
11834 | fi | |
11835 | ||
11836 | echo "$ac_t""$ac_cv_header_png_h" 1>&6 | |
89e6bf6d VZ |
11837 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
11838 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
8d90d2f2 | 11839 | echo "configure:11840: checking for png.h" >&5 |
89e6bf6d VZ |
11840 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11841 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11842 | else | |
11843 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 11844 | #line 11845 "configure" |
89e6bf6d VZ |
11845 | #include "confdefs.h" |
11846 | #include <png.h> | |
11847 | EOF | |
11848 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8d90d2f2 | 11849 | { (eval echo configure:11850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
89e6bf6d VZ |
11850 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11851 | if test -z "$ac_err"; then | |
11852 | rm -rf conftest* | |
11853 | eval "ac_cv_header_$ac_safe=yes" | |
11854 | else | |
11855 | echo "$ac_err" >&5 | |
11856 | echo "configure: failed program was:" >&5 | |
11857 | cat conftest.$ac_ext >&5 | |
11858 | rm -rf conftest* | |
11859 | eval "ac_cv_header_$ac_safe=no" | |
11860 | fi | |
11861 | rm -f conftest* | |
11862 | fi | |
11863 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11864 | echo "$ac_t""yes" 1>&6 | |
11865 | : | |
11866 | else | |
11867 | echo "$ac_t""no" 1>&6 | |
11868 | fi | |
11869 | ||
5d3f766d VZ |
11870 | |
11871 | if test "$ac_cv_header_png_h" = "yes"; then | |
11872 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
8d90d2f2 | 11873 | echo "configure:11874: checking for png_check_sig in -lpng" >&5 |
a0b9e27f MB |
11874 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
11875 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11876 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11877 | else |
a0b9e27f | 11878 | ac_save_LIBS="$LIBS" |
21d1c967 | 11879 | LIBS="-lpng -lz -lm $LIBS" |
a0b9e27f | 11880 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 11881 | #line 11882 "configure" |
90dd450c | 11882 | #include "confdefs.h" |
21d1c967 GD |
11883 | /* Override any gcc2 internal prototype to avoid an error. */ |
11884 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11885 | builtin and then its argument prototype would still apply. */ |
11886 | char png_check_sig(); | |
90dd450c | 11887 | |
a0b9e27f MB |
11888 | int main() { |
11889 | png_check_sig() | |
11890 | ; return 0; } | |
11891 | EOF | |
8d90d2f2 | 11892 | if { (eval echo configure:11893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11893 | rm -rf conftest* |
11894 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11895 | else | |
11896 | echo "configure: failed program was:" >&5 | |
11897 | cat conftest.$ac_ext >&5 | |
11898 | rm -rf conftest* | |
11899 | eval "ac_cv_lib_$ac_lib_var=no" | |
11900 | fi | |
11901 | rm -f conftest* | |
11902 | LIBS="$ac_save_LIBS" | |
247f5006 | 11903 | |
90dd450c | 11904 | fi |
a0b9e27f MB |
11905 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11906 | echo "$ac_t""yes" 1>&6 | |
11907 | PNG_LINK=" -lpng" | |
11908 | else | |
11909 | echo "$ac_t""no" 1>&6 | |
11910 | fi | |
90dd450c | 11911 | |
5d3f766d | 11912 | fi |
247f5006 | 11913 | |
21d1c967 GD |
11914 | if test "x$PNG_LINK" = "x" ; then |
11915 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
0c98a14e | 11916 | { 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 | 11917 | else |
0c98a14e | 11918 | echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2 |
21d1c967 GD |
11919 | wxUSE_LIBPNG=builtin |
11920 | fi | |
11921 | else | |
2b5f62a0 | 11922 | wxUSE_LIBPNG=sys |
21d1c967 GD |
11923 | fi |
11924 | fi | |
11925 | fi | |
90dd450c | 11926 | |
21d1c967 GD |
11927 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
11928 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11929 | fi | |
90dd450c | 11930 | |
21d1c967 | 11931 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
11932 | fi |
11933 | ||
8284b0c5 | 11934 | |
21d1c967 GD |
11935 | JPEG_INCLUDE= |
11936 | JPEG_LINK= | |
11937 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
a0b9e27f | 11938 | cat >> confdefs.h <<\EOF |
21d1c967 | 11939 | #define wxUSE_LIBJPEG 1 |
a0b9e27f | 11940 | EOF |
90dd450c | 11941 | |
8284b0c5 | 11942 | |
21d1c967 | 11943 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
a0b9e27f | 11944 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11945 | wxUSE_LIBJPEG=sys |
11946 | fi | |
90dd450c | 11947 | |
21d1c967 GD |
11948 | if test "$wxUSE_MGL" != 1 ; then |
11949 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
a0b9e27f | 11950 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
8d90d2f2 | 11951 | echo "configure:11952: checking for jpeglib.h" >&5 |
a0b9e27f MB |
11952 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
11953 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11954 | else |
a0b9e27f | 11955 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 11956 | #line 11957 "configure" |
21d1c967 | 11957 | #include "confdefs.h" |
90dd450c | 11958 | |
21d1c967 GD |
11959 | #undef HAVE_STDLIB_H |
11960 | #include <stdio.h> | |
11961 | #include <jpeglib.h> | |
a0b9e27f MB |
11962 | |
11963 | int main() { | |
90dd450c | 11964 | |
a0b9e27f MB |
11965 | |
11966 | ; return 0; } | |
11967 | EOF | |
8d90d2f2 | 11968 | if { (eval echo configure:11969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11969 | rm -rf conftest* |
21d1c967 | 11970 | ac_cv_header_jpeglib_h=yes |
90dd450c | 11971 | else |
a0b9e27f MB |
11972 | echo "configure: failed program was:" >&5 |
11973 | cat conftest.$ac_ext >&5 | |
11974 | rm -rf conftest* | |
11975 | ac_cv_header_jpeglib_h=no | |
11976 | ||
90dd450c | 11977 | fi |
a0b9e27f MB |
11978 | rm -f conftest* |
11979 | ||
90dd450c VZ |
11980 | fi |
11981 | ||
a0b9e27f | 11982 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
90dd450c | 11983 | |
21d1c967 | 11984 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
a0b9e27f | 11985 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 |
8d90d2f2 | 11986 | echo "configure:11987: checking for jpeg_read_header in -ljpeg" >&5 |
a0b9e27f MB |
11987 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
11988 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11989 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11990 | else |
a0b9e27f | 11991 | ac_save_LIBS="$LIBS" |
21d1c967 | 11992 | LIBS="-ljpeg $LIBS" |
a0b9e27f | 11993 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 11994 | #line 11995 "configure" |
21d1c967 GD |
11995 | #include "confdefs.h" |
11996 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11997 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11998 | builtin and then its argument prototype would still apply. */ |
11999 | char jpeg_read_header(); | |
12000 | ||
12001 | int main() { | |
12002 | jpeg_read_header() | |
12003 | ; return 0; } | |
12004 | EOF | |
8d90d2f2 | 12005 | if { (eval echo configure:12006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12006 | rm -rf conftest* |
12007 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12008 | else | |
12009 | echo "configure: failed program was:" >&5 | |
12010 | cat conftest.$ac_ext >&5 | |
12011 | rm -rf conftest* | |
12012 | eval "ac_cv_lib_$ac_lib_var=no" | |
12013 | fi | |
12014 | rm -f conftest* | |
12015 | LIBS="$ac_save_LIBS" | |
12016 | ||
12017 | fi | |
12018 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12019 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 12020 | JPEG_LINK=" -ljpeg" |
a0b9e27f MB |
12021 | else |
12022 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
12023 | fi |
12024 | ||
21d1c967 | 12025 | fi |
90dd450c | 12026 | |
21d1c967 GD |
12027 | if test "x$JPEG_LINK" = "x" ; then |
12028 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
a0b9e27f | 12029 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 12030 | else |
a0b9e27f | 12031 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
12032 | wxUSE_LIBJPEG=builtin |
12033 | fi | |
12034 | else | |
12035 | wxUSE_LIBJPEG=sys | |
12036 | fi | |
12037 | fi | |
12038 | fi | |
90dd450c | 12039 | |
21d1c967 GD |
12040 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
12041 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
12042 | fi | |
12043 | fi | |
90dd450c | 12044 | |
8284b0c5 | 12045 | |
21d1c967 GD |
12046 | TIFF_INCLUDE= |
12047 | TIFF_LINK= | |
2b5f62a0 | 12048 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 12049 | if test "$wxUSE_LIBTIFF" != "no" ; then |
a0b9e27f | 12050 | cat >> confdefs.h <<\EOF |
21d1c967 | 12051 | #define wxUSE_LIBTIFF 1 |
a0b9e27f | 12052 | EOF |
21d1c967 | 12053 | |
8284b0c5 | 12054 | |
21d1c967 | 12055 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
12056 | if test "$wxUSE_LIBJPEG" = "sys"; then |
12057 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
12058 | fi | |
12059 | if test "$wxUSE_ZLIB" = "sys"; then | |
12060 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
12061 | fi | |
a0b9e27f MB |
12062 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
12063 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
8d90d2f2 | 12064 | echo "configure:12065: checking for tiffio.h" >&5 |
a0b9e27f MB |
12065 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12066 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12067 | else | |
12068 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 12069 | #line 12070 "configure" |
247f5006 VZ |
12070 | #include "confdefs.h" |
12071 | #include <tiffio.h> | |
a0b9e27f MB |
12072 | EOF |
12073 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8d90d2f2 | 12074 | { (eval echo configure:12075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12075 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12076 | if test -z "$ac_err"; then | |
12077 | rm -rf conftest* | |
12078 | eval "ac_cv_header_$ac_safe=yes" | |
12079 | else | |
12080 | echo "$ac_err" >&5 | |
12081 | echo "configure: failed program was:" >&5 | |
21d1c967 | 12082 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12083 | rm -rf conftest* |
12084 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 12085 | fi |
a0b9e27f | 12086 | rm -f conftest* |
21d1c967 | 12087 | fi |
a0b9e27f MB |
12088 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12089 | echo "$ac_t""yes" 1>&6 | |
12090 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
8d90d2f2 | 12091 | echo "configure:12092: checking for TIFFError in -ltiff" >&5 |
a0b9e27f MB |
12092 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
12093 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12094 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 12095 | else |
a0b9e27f | 12096 | ac_save_LIBS="$LIBS" |
2b5f62a0 | 12097 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
a0b9e27f | 12098 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 12099 | #line 12100 "configure" |
ab9b9eab VZ |
12100 | #include "confdefs.h" |
12101 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12102 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
12103 | builtin and then its argument prototype would still apply. */ |
12104 | char TIFFError(); | |
ab9b9eab | 12105 | |
a0b9e27f MB |
12106 | int main() { |
12107 | TIFFError() | |
12108 | ; return 0; } | |
12109 | EOF | |
8d90d2f2 | 12110 | if { (eval echo configure:12111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12111 | rm -rf conftest* |
12112 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12113 | else | |
12114 | echo "configure: failed program was:" >&5 | |
12115 | cat conftest.$ac_ext >&5 | |
12116 | rm -rf conftest* | |
12117 | eval "ac_cv_lib_$ac_lib_var=no" | |
12118 | fi | |
12119 | rm -f conftest* | |
12120 | LIBS="$ac_save_LIBS" | |
247f5006 | 12121 | |
21d1c967 | 12122 | fi |
a0b9e27f MB |
12123 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
12124 | echo "$ac_t""yes" 1>&6 | |
12125 | TIFF_LINK=" -ltiff" | |
12126 | else | |
12127 | echo "$ac_t""no" 1>&6 | |
12128 | fi | |
cd6d6d5b | 12129 | |
a0b9e27f MB |
12130 | |
12131 | else | |
12132 | echo "$ac_t""no" 1>&6 | |
12133 | fi | |
8284b0c5 | 12134 | |
247f5006 | 12135 | |
21d1c967 GD |
12136 | if test "x$TIFF_LINK" = "x" ; then |
12137 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
a0b9e27f | 12138 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } |
90dd450c | 12139 | else |
a0b9e27f | 12140 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
21d1c967 | 12141 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 12142 | fi |
d8356fa3 | 12143 | else |
21d1c967 | 12144 | wxUSE_LIBTIFF=sys |
d8356fa3 | 12145 | fi |
21d1c967 | 12146 | fi |
d8356fa3 | 12147 | |
21d1c967 GD |
12148 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
12149 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 12150 | fi |
21d1c967 | 12151 | fi |
10f2d63a | 12152 | |
8284b0c5 | 12153 | |
21d1c967 | 12154 | AFMINSTALL= |
2b5f62a0 | 12155 | WIN32INSTALL= |
90dd450c | 12156 | |
21d1c967 GD |
12157 | TOOLKIT= |
12158 | TOOLKIT_INCLUDE= | |
12159 | WIDGET_SET= | |
12160 | ||
12161 | if test "$USE_WIN32" = 1 ; then | |
a0b9e27f | 12162 | for ac_hdr in w32api.h |
21d1c967 | 12163 | do |
a0b9e27f MB |
12164 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12165 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8d90d2f2 | 12166 | echo "configure:12167: checking for $ac_hdr" >&5 |
a0b9e27f MB |
12167 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12168 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12169 | else | |
12170 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 12171 | #line 12172 "configure" |
247f5006 | 12172 | #include "confdefs.h" |
a0b9e27f MB |
12173 | #include <$ac_hdr> |
12174 | EOF | |
12175 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8d90d2f2 | 12176 | { (eval echo configure:12177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12177 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12178 | if test -z "$ac_err"; then | |
12179 | rm -rf conftest* | |
12180 | eval "ac_cv_header_$ac_safe=yes" | |
12181 | else | |
12182 | echo "$ac_err" >&5 | |
12183 | echo "configure: failed program was:" >&5 | |
f79bd02d | 12184 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12185 | rm -rf conftest* |
12186 | eval "ac_cv_header_$ac_safe=no" | |
f79bd02d | 12187 | fi |
a0b9e27f | 12188 | rm -f conftest* |
21d1c967 | 12189 | fi |
a0b9e27f MB |
12190 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12191 | echo "$ac_t""yes" 1>&6 | |
12192 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12193 | cat >> confdefs.h <<EOF | |
12194 | #define $ac_tr_hdr 1 | |
12195 | EOF | |
12196 | ||
12197 | else | |
12198 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
12199 | fi |
12200 | done | |
f79bd02d | 12201 | |
a0b9e27f MB |
12202 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
12203 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
8d90d2f2 | 12204 | echo "configure:12205: checking for windows.h" >&5 |
a0b9e27f MB |
12205 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12206 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12207 | else |
a0b9e27f | 12208 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 12209 | #line 12210 "configure" |
247f5006 VZ |
12210 | #include "confdefs.h" |
12211 | #include <windows.h> | |
a0b9e27f MB |
12212 | EOF |
12213 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8d90d2f2 | 12214 | { (eval echo configure:12215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12215 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12216 | if test -z "$ac_err"; then | |
12217 | rm -rf conftest* | |
12218 | eval "ac_cv_header_$ac_safe=yes" | |
12219 | else | |
12220 | echo "$ac_err" >&5 | |
12221 | echo "configure: failed program was:" >&5 | |
90dd450c | 12222 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12223 | rm -rf conftest* |
12224 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 12225 | fi |
a0b9e27f | 12226 | rm -f conftest* |
90dd450c | 12227 | fi |
a0b9e27f MB |
12228 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12229 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 12230 | : |
90dd450c | 12231 | else |
a0b9e27f | 12232 | echo "$ac_t""no" 1>&6 |
21d1c967 | 12233 | |
a0b9e27f MB |
12234 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
12235 | ||
5c6fa7d2 | 12236 | fi |
7b4a847f | 12237 | |
5c6fa7d2 | 12238 | |
a0b9e27f | 12239 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
8d90d2f2 | 12240 | echo "configure:12241: checking if w32api has good enough MSIE support" >&5 |
a0b9e27f MB |
12241 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
12242 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 12243 | else |
a0b9e27f MB |
12244 | |
12245 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 12246 | #line 12247 "configure" |
f79bd02d | 12247 | #include "confdefs.h" |
21d1c967 | 12248 | #include <w32api.h> |
a0b9e27f | 12249 | int main() { |
f79bd02d | 12250 | |
21d1c967 GD |
12251 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
12252 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
12253 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
12254 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
12255 | ||
12256 | #if !wxCHECK_W32API_VERSION(1,1) | |
12257 | #error You need w32api 1.1 or newer | |
12258 | #endif | |
a0b9e27f MB |
12259 | |
12260 | ; return 0; } | |
12261 | EOF | |
8d90d2f2 | 12262 | if { (eval echo configure:12263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
12263 | rm -rf conftest* |
12264 | ||
21d1c967 | 12265 | wx_cv_w32api_win32_ie=yes |
a0b9e27f | 12266 | |
f79bd02d | 12267 | else |
a0b9e27f MB |
12268 | echo "configure: failed program was:" >&5 |
12269 | cat conftest.$ac_ext >&5 | |
12270 | rm -rf conftest* | |
12271 | ||
21d1c967 | 12272 | wx_cv_w32api_win32_ie=no |
a0b9e27f | 12273 | |
5c6fa7d2 | 12274 | fi |
a0b9e27f MB |
12275 | rm -f conftest* |
12276 | ||
247f5006 | 12277 | fi |
a0b9e27f MB |
12278 | |
12279 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 | |
21d1c967 GD |
12280 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then |
12281 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
12282 | fi | |
f79bd02d | 12283 | |
21d1c967 GD |
12284 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
12285 | ||
12286 | case "${host}" in | |
12287 | *-*-cygwin* ) | |
12288 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
12289 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 12290 | esac |
f79bd02d | 12291 | |
21d1c967 GD |
12292 | if test "$wxUSE_ODBC" = "yes" ; then |
12293 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
12294 | fi | |
f79bd02d | 12295 | |
21d1c967 GD |
12296 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
12297 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
12298 | |
12299 | WIN32INSTALL=win32install | |
f79bd02d | 12300 | fi |
f79bd02d | 12301 | |
b2fee376 | 12302 | if test "$USE_DARWIN" = 1; then |
50bcbd3d | 12303 | if test "$wxUSE_PRECOMP" = "yes"; then |
b2fee376 GD |
12304 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
12305 | else | |
12306 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
12307 | fi | |
12308 | fi | |
12309 | ||
21d1c967 GD |
12310 | if test "$wxUSE_GUI" = "yes"; then |
12311 | USE_GUI=1 | |
f79bd02d | 12312 | |
21d1c967 | 12313 | GUI_TK_LIBRARY= |
f79bd02d | 12314 | |
21d1c967 GD |
12315 | WXGTK12= |
12316 | WXGTK127= | |
12317 | WXGTK20= | |
f79bd02d | 12318 | |
21d1c967 GD |
12319 | if test "$wxUSE_MSW" = 1 ; then |
12320 | TOOLKIT=MSW | |
12321 | GUIDIST=MSW_DIST | |
f79bd02d | 12322 | |
89e6bf6d | 12323 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" |
f79bd02d JS |
12324 | fi |
12325 | ||
21d1c967 | 12326 | if test "$wxUSE_GTK" = 1; then |
a0b9e27f | 12327 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
8d90d2f2 | 12328 | echo "configure:12329: checking for GTK+ version" >&5 |
21d1c967 GD |
12329 | |
12330 | gtk_version_cached=1 | |
a0b9e27f MB |
12331 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then |
12332 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f79bd02d | 12333 | else |
a0b9e27f | 12334 | |
21d1c967 | 12335 | gtk_version_cached=0 |
a0b9e27f | 12336 | echo "$ac_t""" 1>&6 |
f79bd02d | 12337 | |
21d1c967 GD |
12338 | GTK_MODULES= |
12339 | if test "$wxUSE_THREADS" = "yes"; then | |
12340 | GTK_MODULES=gthread | |
12341 | fi | |
f79bd02d | 12342 | |
2b5f62a0 | 12343 | wx_cv_lib_gtk= |
21d1c967 GD |
12344 | if test "x$wxUSE_GTK2" = "xyes"; then |
12345 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12346 | if test "${enable_gtktest+set}" = set; then | |
12347 | enableval="$enable_gtktest" | |
a0b9e27f | 12348 | : |
f79bd02d | 12349 | else |
21d1c967 | 12350 | enable_gtktest=yes |
a0b9e27f MB |
12351 | fi |
12352 | ||
f79bd02d | 12353 | |
21d1c967 GD |
12354 | pkg_config_args=gtk+-2.0 |
12355 | for module in . $GTK_MODULES | |
12356 | do | |
12357 | case "$module" in | |
a0b9e27f | 12358 | gthread) |
21d1c967 GD |
12359 | pkg_config_args="$pkg_config_args gthread-2.0" |
12360 | ;; | |
12361 | esac | |
12362 | done | |
12363 | ||
12364 | no_gtk="" | |
f79bd02d | 12365 | |
21d1c967 GD |
12366 | # Extract the first word of "pkg-config", so it can be a program name with args. |
12367 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 12368 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8d90d2f2 | 12369 | echo "configure:12370: checking for $ac_word" >&5 |
a0b9e27f MB |
12370 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
12371 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12372 | else |
a0b9e27f MB |
12373 | case "$PKG_CONFIG" in |
12374 | /*) | |
21d1c967 GD |
12375 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12376 | ;; | |
a0b9e27f MB |
12377 | ?:/*) |
12378 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
12379 | ;; | |
21d1c967 | 12380 | *) |
a0b9e27f MB |
12381 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12382 | ac_dummy="$PATH" | |
12383 | for ac_dir in $ac_dummy; do | |
12384 | test -z "$ac_dir" && ac_dir=. | |
12385 | if test -f $ac_dir/$ac_word; then | |
12386 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
12387 | break | |
12388 | fi | |
12389 | done | |
12390 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12391 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12392 | ;; | |
12393 | esac | |
f79bd02d | 12394 | fi |
a0b9e27f | 12395 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
21d1c967 | 12396 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 12397 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f79bd02d | 12398 | else |
a0b9e27f | 12399 | echo "$ac_t""no" 1>&6 |
f79bd02d JS |
12400 | fi |
12401 | ||
8284b0c5 | 12402 | |
21d1c967 GD |
12403 | if test x$PKG_CONFIG != xno ; then |
12404 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
12405 | : | |
12406 | else | |
12407 | echo *** pkg-config too old; version 0.7 or better required. | |
12408 | no_gtk=yes | |
12409 | PKG_CONFIG=no | |
12410 | fi | |
12411 | else | |
12412 | no_gtk=yes | |
12413 | fi | |
f79bd02d | 12414 | |
21d1c967 | 12415 | min_gtk_version=2.0.0 |
a0b9e27f | 12416 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 |
8d90d2f2 | 12417 | echo "configure:12418: checking for GTK+ - version >= $min_gtk_version" >&5 |
f79bd02d | 12418 | |
21d1c967 GD |
12419 | if test x$PKG_CONFIG != xno ; then |
12420 | ## don't try to run the test against uninstalled libtool libs | |
12421 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
12422 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
12423 | enable_gtktest=no | |
12424 | fi | |
f79bd02d | 12425 | |
21d1c967 GD |
12426 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
12427 | : | |
12428 | else | |
12429 | no_gtk=yes | |
12430 | fi | |
12431 | fi | |
f79bd02d | 12432 | |
21d1c967 GD |
12433 | if test x"$no_gtk" = x ; then |
12434 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
12435 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
12436 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12437 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12438 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12439 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12440 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12441 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12442 | if test "x$enable_gtktest" = "xyes" ; then | |
12443 | ac_save_CFLAGS="$CFLAGS" | |
12444 | ac_save_LIBS="$LIBS" | |
12445 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12446 | LIBS="$GTK_LIBS $LIBS" | |
12447 | rm -f conf.gtktest | |
12448 | if test "$cross_compiling" = yes; then | |
12449 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12450 | else |
a0b9e27f | 12451 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 12452 | #line 12453 "configure" |
f79bd02d | 12453 | #include "confdefs.h" |
f79bd02d | 12454 | |
21d1c967 GD |
12455 | #include <gtk/gtk.h> |
12456 | #include <stdio.h> | |
12457 | #include <stdlib.h> | |
f79bd02d | 12458 | |
a0b9e27f | 12459 | int |
21d1c967 GD |
12460 | main () |
12461 | { | |
12462 | int major, minor, micro; | |
12463 | char *tmp_version; | |
f79bd02d | 12464 | |
21d1c967 | 12465 | system ("touch conf.gtktest"); |
f79bd02d | 12466 | |
21d1c967 GD |
12467 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
12468 | tmp_version = g_strdup("$min_gtk_version"); | |
12469 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12470 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12471 | exit(1); | |
12472 | } | |
f79bd02d | 12473 | |
21d1c967 GD |
12474 | if ((gtk_major_version != $gtk_config_major_version) || |
12475 | (gtk_minor_version != $gtk_config_minor_version) || | |
12476 | (gtk_micro_version != $gtk_config_micro_version)) | |
12477 | { | |
a0b9e27f | 12478 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12479 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12480 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12481 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
12482 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12483 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12484 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12485 | printf("*** required on your system.\n"); | |
12486 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
12487 | printf("*** to point to the correct configuration files\n"); | |
a0b9e27f | 12488 | } |
21d1c967 GD |
12489 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
12490 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12491 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12492 | { | |
12493 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12494 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12495 | printf("*** library (version %d.%d.%d)\n", | |
12496 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12497 | } | |
12498 | else | |
12499 | { | |
12500 | if ((gtk_major_version > major) || | |
12501 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12502 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12503 | { | |
12504 | return 0; | |
12505 | } | |
12506 | else | |
12507 | { | |
12508 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12509 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12510 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12511 | major, minor, micro); | |
12512 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12513 | printf("***\n"); | |
12514 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12515 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
12516 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12517 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
12518 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
12519 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12520 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12521 | } | |
12522 | } | |
12523 | return 1; | |
12524 | } | |
f79bd02d | 12525 | |
a0b9e27f | 12526 | EOF |
8d90d2f2 | 12527 | if { (eval echo configure:12528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12528 | then |
21d1c967 | 12529 | : |
f79bd02d | 12530 | else |
a0b9e27f MB |
12531 | echo "configure: failed program was:" >&5 |
12532 | cat conftest.$ac_ext >&5 | |
12533 | rm -fr conftest* | |
12534 | no_gtk=yes | |
f79bd02d | 12535 | fi |
a0b9e27f | 12536 | rm -fr conftest* |
f79bd02d | 12537 | fi |
a0b9e27f | 12538 | |
21d1c967 GD |
12539 | CFLAGS="$ac_save_CFLAGS" |
12540 | LIBS="$ac_save_LIBS" | |
12541 | fi | |
12542 | fi | |
12543 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12544 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
12545 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 12546 | else |
a0b9e27f | 12547 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12548 | if test "$PKG_CONFIG" = "no" ; then |
12549 | echo "*** A new enough version of pkg-config was not found." | |
12550 | echo "*** See http://pkgconfig.sourceforge.net" | |
12551 | else | |
12552 | if test -f conf.gtktest ; then | |
12553 | : | |
12554 | else | |
12555 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
12556 | ac_save_CFLAGS="$CFLAGS" |
12557 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
12558 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
12559 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12560 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 12561 | #line 12562 "configure" |
f79bd02d | 12562 | #include "confdefs.h" |
21d1c967 GD |
12563 | |
12564 | #include <gtk/gtk.h> | |
12565 | #include <stdio.h> | |
f79bd02d | 12566 | |
a0b9e27f MB |
12567 | int main() { |
12568 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12569 | ; return 0; } | |
12570 | EOF | |
8d90d2f2 | 12571 | if { (eval echo configure:12572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12572 | rm -rf conftest* |
21d1c967 GD |
12573 | echo "*** The test program compiled, but did not run. This usually means" |
12574 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
12575 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
12576 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12577 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12578 | echo "*** is required on your system" | |
12579 | echo "***" | |
12580 | echo "*** If you have an old version installed, it is best to remove it, although" | |
a0b9e27f | 12581 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 12582 | else |
a0b9e27f MB |
12583 | echo "configure: failed program was:" >&5 |
12584 | cat conftest.$ac_ext >&5 | |
12585 | rm -rf conftest* | |
12586 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 12587 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 12588 | fi |
a0b9e27f | 12589 | rm -f conftest* |
21d1c967 GD |
12590 | CFLAGS="$ac_save_CFLAGS" |
12591 | LIBS="$ac_save_LIBS" | |
12592 | fi | |
12593 | fi | |
12594 | GTK_CFLAGS="" | |
12595 | GTK_LIBS="" | |
12596 | : | |
12597 | fi | |
a0b9e27f MB |
12598 | |
12599 | ||
21d1c967 | 12600 | rm -f conf.gtktest |
f79bd02d | 12601 | |
2b5f62a0 | 12602 | else |
a0b9e27f | 12603 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12604 | if test "${with_gtk_prefix+set}" = set; then |
12605 | withval="$with_gtk_prefix" | |
12606 | gtk_config_prefix="$withval" | |
12607 | else | |
12608 | gtk_config_prefix="" | |
a0b9e27f | 12609 | fi |
f79bd02d | 12610 | |
21d1c967 GD |
12611 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12612 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12613 | withval="$with_gtk_exec_prefix" | |
12614 | gtk_config_exec_prefix="$withval" | |
12615 | else | |
12616 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12617 | fi |
12618 | ||
21d1c967 GD |
12619 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12620 | if test "${enable_gtktest+set}" = set; then | |
12621 | enableval="$enable_gtktest" | |
a0b9e27f | 12622 | : |
21d1c967 GD |
12623 | else |
12624 | enable_gtktest=yes | |
a0b9e27f MB |
12625 | fi |
12626 | ||
21d1c967 GD |
12627 | |
12628 | for module in . $GTK_MODULES | |
12629 | do | |
12630 | case "$module" in | |
a0b9e27f | 12631 | gthread) |
21d1c967 GD |
12632 | gtk_config_args="$gtk_config_args gthread" |
12633 | ;; | |
12634 | esac | |
12635 | done | |
12636 | ||
12637 | if test x$gtk_config_exec_prefix != x ; then | |
12638 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12639 | if test x${GTK_CONFIG+set} != xset ; then | |
12640 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12641 | fi | |
12642 | fi | |
12643 | if test x$gtk_config_prefix != x ; then | |
12644 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12645 | if test x${GTK_CONFIG+set} != xset ; then | |
12646 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12647 | fi | |
12648 | fi | |
12649 | ||
12650 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12651 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12652 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8d90d2f2 | 12653 | echo "configure:12654: checking for $ac_word" >&5 |
a0b9e27f MB |
12654 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12655 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12656 | else |
a0b9e27f MB |
12657 | case "$GTK_CONFIG" in |
12658 | /*) | |
21d1c967 GD |
12659 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12660 | ;; | |
a0b9e27f MB |
12661 | ?:/*) |
12662 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12663 | ;; | |
21d1c967 | 12664 | *) |
a0b9e27f MB |
12665 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12666 | ac_dummy="$PATH" | |
12667 | for ac_dir in $ac_dummy; do | |
12668 | test -z "$ac_dir" && ac_dir=. | |
12669 | if test -f $ac_dir/$ac_word; then | |
12670 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12671 | break | |
12672 | fi | |
12673 | done | |
12674 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12675 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12676 | ;; | |
12677 | esac | |
12678 | fi | |
a0b9e27f | 12679 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12680 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12681 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12682 | else |
a0b9e27f | 12683 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12684 | fi |
12685 | ||
12686 | min_gtk_version=1.2.7 | |
a0b9e27f | 12687 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
8d90d2f2 | 12688 | echo "configure:12689: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12689 | no_gtk="" |
12690 | if test "$GTK_CONFIG" = "no" ; then | |
12691 | no_gtk=yes | |
12692 | else | |
12693 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12694 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12695 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12696 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12697 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12698 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12699 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12700 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12701 | if test "x$enable_gtktest" = "xyes" ; then | |
12702 | ac_save_CFLAGS="$CFLAGS" | |
12703 | ac_save_LIBS="$LIBS" | |
12704 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12705 | LIBS="$GTK_LIBS $LIBS" | |
12706 | rm -f conf.gtktest | |
12707 | if test "$cross_compiling" = yes; then | |
12708 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12709 | else |
a0b9e27f | 12710 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 12711 | #line 12712 "configure" |
f79bd02d JS |
12712 | #include "confdefs.h" |
12713 | ||
21d1c967 GD |
12714 | #include <gtk/gtk.h> |
12715 | #include <stdio.h> | |
12716 | #include <stdlib.h> | |
f79bd02d | 12717 | |
a0b9e27f | 12718 | int |
21d1c967 GD |
12719 | main () |
12720 | { | |
12721 | int major, minor, micro; | |
12722 | char *tmp_version; | |
12723 | ||
12724 | system ("touch conf.gtktest"); | |
12725 | ||
12726 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12727 | tmp_version = g_strdup("$min_gtk_version"); | |
12728 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12729 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12730 | exit(1); | |
12731 | } | |
90dd450c | 12732 | |
21d1c967 GD |
12733 | if ((gtk_major_version != $gtk_config_major_version) || |
12734 | (gtk_minor_version != $gtk_config_minor_version) || | |
12735 | (gtk_micro_version != $gtk_config_micro_version)) | |
12736 | { | |
a0b9e27f | 12737 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12738 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12739 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12740 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12741 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12742 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12743 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12744 | printf("*** required on your system.\n"); | |
12745 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12746 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12747 | printf("*** before re-running configure\n"); | |
a0b9e27f | 12748 | } |
21d1c967 GD |
12749 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12750 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12751 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12752 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12753 | { | |
12754 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12755 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12756 | printf("*** library (version %d.%d.%d)\n", | |
12757 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12758 | } | |
12759 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12760 | else | |
12761 | { | |
12762 | if ((gtk_major_version > major) || | |
12763 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12764 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12765 | { | |
12766 | return 0; | |
12767 | } | |
12768 | else | |
12769 | { | |
12770 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12771 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12772 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12773 | major, minor, micro); | |
12774 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12775 | printf("***\n"); | |
12776 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12777 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12778 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12779 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12780 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12781 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12782 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12783 | } | |
12784 | } | |
12785 | return 1; | |
12786 | } | |
12787 | ||
a0b9e27f | 12788 | EOF |
8d90d2f2 | 12789 | if { (eval echo configure:12790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12790 | then |
21d1c967 GD |
12791 | : |
12792 | else | |
a0b9e27f MB |
12793 | echo "configure: failed program was:" >&5 |
12794 | cat conftest.$ac_ext >&5 | |
12795 | rm -fr conftest* | |
12796 | no_gtk=yes | |
21d1c967 | 12797 | fi |
a0b9e27f | 12798 | rm -fr conftest* |
21d1c967 | 12799 | fi |
a0b9e27f | 12800 | |
21d1c967 GD |
12801 | CFLAGS="$ac_save_CFLAGS" |
12802 | LIBS="$ac_save_LIBS" | |
12803 | fi | |
12804 | fi | |
12805 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12806 | echo "$ac_t""yes" 1>&6 |
12807 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 12808 | else |
a0b9e27f | 12809 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12810 | if test "$GTK_CONFIG" = "no" ; then |
12811 | echo "*** The gtk-config script installed by GTK could not be found" | |
12812 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12813 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12814 | echo "*** full path to gtk-config." | |
12815 | else | |
12816 | if test -f conf.gtktest ; then | |
12817 | : | |
12818 | else | |
12819 | echo "*** Could not run GTK test program, checking why..." | |
12820 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12821 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12822 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 12823 | #line 12824 "configure" |
21d1c967 GD |
12824 | #include "confdefs.h" |
12825 | ||
12826 | #include <gtk/gtk.h> | |
12827 | #include <stdio.h> | |
12828 | ||
a0b9e27f MB |
12829 | int main() { |
12830 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12831 | ; return 0; } | |
12832 | EOF | |
8d90d2f2 | 12833 | if { (eval echo configure:12834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12834 | rm -rf conftest* |
21d1c967 GD |
12835 | echo "*** The test program compiled, but did not run. This usually means" |
12836 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12837 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12838 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12839 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12840 | echo "*** is required on your system" | |
12841 | echo "***" | |
12842 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12843 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12844 | echo "***" | |
12845 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12846 | echo "*** came with the system with the command" | |
12847 | echo "***" | |
a0b9e27f | 12848 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 12849 | else |
a0b9e27f MB |
12850 | echo "configure: failed program was:" >&5 |
12851 | cat conftest.$ac_ext >&5 | |
12852 | rm -rf conftest* | |
12853 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
12854 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
12855 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 12856 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 12857 | fi |
a0b9e27f | 12858 | rm -f conftest* |
21d1c967 GD |
12859 | CFLAGS="$ac_save_CFLAGS" |
12860 | LIBS="$ac_save_LIBS" | |
12861 | fi | |
12862 | fi | |
12863 | GTK_CFLAGS="" | |
12864 | GTK_LIBS="" | |
12865 | : | |
12866 | fi | |
a0b9e27f MB |
12867 | |
12868 | ||
21d1c967 GD |
12869 | rm -f conf.gtktest |
12870 | ||
21d1c967 | 12871 | |
2b5f62a0 VZ |
12872 | if test -z "$wx_cv_lib_gtk"; then |
12873 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
12874 | if test "${with_gtk_prefix+set}" = set; then |
12875 | withval="$with_gtk_prefix" | |
12876 | gtk_config_prefix="$withval" | |
12877 | else | |
12878 | gtk_config_prefix="" | |
a0b9e27f | 12879 | fi |
f79bd02d | 12880 | |
21d1c967 GD |
12881 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12882 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12883 | withval="$with_gtk_exec_prefix" | |
12884 | gtk_config_exec_prefix="$withval" | |
12885 | else | |
12886 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12887 | fi |
12888 | ||
21d1c967 GD |
12889 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12890 | if test "${enable_gtktest+set}" = set; then | |
12891 | enableval="$enable_gtktest" | |
a0b9e27f | 12892 | : |
90dd450c | 12893 | else |
21d1c967 | 12894 | enable_gtktest=yes |
a0b9e27f MB |
12895 | fi |
12896 | ||
21d1c967 GD |
12897 | |
12898 | for module in . $GTK_MODULES | |
12899 | do | |
12900 | case "$module" in | |
a0b9e27f | 12901 | gthread) |
21d1c967 GD |
12902 | gtk_config_args="$gtk_config_args gthread" |
12903 | ;; | |
12904 | esac | |
12905 | done | |
12906 | ||
12907 | if test x$gtk_config_exec_prefix != x ; then | |
12908 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12909 | if test x${GTK_CONFIG+set} != xset ; then | |
12910 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12911 | fi | |
12912 | fi | |
12913 | if test x$gtk_config_prefix != x ; then | |
12914 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12915 | if test x${GTK_CONFIG+set} != xset ; then | |
12916 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12917 | fi | |
12918 | fi | |
12919 | ||
12920 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12921 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12922 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8d90d2f2 | 12923 | echo "configure:12924: checking for $ac_word" >&5 |
a0b9e27f MB |
12924 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12925 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 12926 | else |
a0b9e27f MB |
12927 | case "$GTK_CONFIG" in |
12928 | /*) | |
21d1c967 GD |
12929 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12930 | ;; | |
a0b9e27f MB |
12931 | ?:/*) |
12932 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12933 | ;; | |
21d1c967 | 12934 | *) |
a0b9e27f MB |
12935 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12936 | ac_dummy="$PATH" | |
12937 | for ac_dir in $ac_dummy; do | |
12938 | test -z "$ac_dir" && ac_dir=. | |
12939 | if test -f $ac_dir/$ac_word; then | |
12940 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12941 | break | |
12942 | fi | |
12943 | done | |
12944 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12945 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12946 | ;; | |
12947 | esac | |
12948 | fi | |
a0b9e27f | 12949 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12950 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12951 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12952 | else |
a0b9e27f | 12953 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12954 | fi |
12955 | ||
12956 | min_gtk_version=1.2.3 | |
a0b9e27f | 12957 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
8d90d2f2 | 12958 | echo "configure:12959: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12959 | no_gtk="" |
12960 | if test "$GTK_CONFIG" = "no" ; then | |
12961 | no_gtk=yes | |
12962 | else | |
12963 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12964 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12965 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12966 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12967 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12968 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12969 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12970 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12971 | if test "x$enable_gtktest" = "xyes" ; then | |
12972 | ac_save_CFLAGS="$CFLAGS" | |
12973 | ac_save_LIBS="$LIBS" | |
12974 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12975 | LIBS="$GTK_LIBS $LIBS" | |
12976 | rm -f conf.gtktest | |
12977 | if test "$cross_compiling" = yes; then | |
12978 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12979 | else | |
a0b9e27f | 12980 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 12981 | #line 12982 "configure" |
f79bd02d | 12982 | #include "confdefs.h" |
21d1c967 GD |
12983 | |
12984 | #include <gtk/gtk.h> | |
12985 | #include <stdio.h> | |
12986 | #include <stdlib.h> | |
12987 | ||
a0b9e27f | 12988 | int |
21d1c967 GD |
12989 | main () |
12990 | { | |
12991 | int major, minor, micro; | |
12992 | char *tmp_version; | |
12993 | ||
12994 | system ("touch conf.gtktest"); | |
12995 | ||
12996 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12997 | tmp_version = g_strdup("$min_gtk_version"); | |
12998 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12999 | printf("%s, bad version string\n", "$min_gtk_version"); | |
13000 | exit(1); | |
13001 | } | |
13002 | ||
13003 | if ((gtk_major_version != $gtk_config_major_version) || | |
13004 | (gtk_minor_version != $gtk_config_minor_version) || | |
13005 | (gtk_micro_version != $gtk_config_micro_version)) | |
13006 | { | |
a0b9e27f | 13007 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
13008 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
13009 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13010 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
13011 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
13012 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
13013 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
13014 | printf("*** required on your system.\n"); | |
13015 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
13016 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
13017 | printf("*** before re-running configure\n"); | |
a0b9e27f | 13018 | } |
21d1c967 GD |
13019 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
13020 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
13021 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
13022 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
13023 | { | |
13024 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
13025 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
13026 | printf("*** library (version %d.%d.%d)\n", | |
13027 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13028 | } | |
13029 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
13030 | else | |
13031 | { | |
13032 | if ((gtk_major_version > major) || | |
13033 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
13034 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
13035 | { | |
13036 | return 0; | |
13037 | } | |
13038 | else | |
13039 | { | |
13040 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
13041 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13042 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
13043 | major, minor, micro); | |
13044 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
13045 | printf("***\n"); | |
13046 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
13047 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
13048 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
13049 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
13050 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
13051 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
13052 | printf("*** so that the correct libraries are found at run-time))\n"); | |
13053 | } | |
13054 | } | |
13055 | return 1; | |
13056 | } | |
13057 | ||
a0b9e27f | 13058 | EOF |
8d90d2f2 | 13059 | if { (eval echo configure:13060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 13060 | then |
21d1c967 GD |
13061 | : |
13062 | else | |
a0b9e27f MB |
13063 | echo "configure: failed program was:" >&5 |
13064 | cat conftest.$ac_ext >&5 | |
13065 | rm -fr conftest* | |
13066 | no_gtk=yes | |
21d1c967 | 13067 | fi |
a0b9e27f | 13068 | rm -fr conftest* |
21d1c967 | 13069 | fi |
a0b9e27f | 13070 | |
21d1c967 GD |
13071 | CFLAGS="$ac_save_CFLAGS" |
13072 | LIBS="$ac_save_LIBS" | |
13073 | fi | |
13074 | fi | |
13075 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
13076 | echo "$ac_t""yes" 1>&6 |
13077 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 13078 | else |
a0b9e27f | 13079 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
13080 | if test "$GTK_CONFIG" = "no" ; then |
13081 | echo "*** The gtk-config script installed by GTK could not be found" | |
13082 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
13083 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
13084 | echo "*** full path to gtk-config." | |
13085 | else | |
13086 | if test -f conf.gtktest ; then | |
13087 | : | |
13088 | else | |
13089 | echo "*** Could not run GTK test program, checking why..." | |
13090 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
13091 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 13092 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 13093 | #line 13094 "configure" |
21d1c967 GD |
13094 | #include "confdefs.h" |
13095 | ||
13096 | #include <gtk/gtk.h> | |
13097 | #include <stdio.h> | |
f79bd02d | 13098 | |
a0b9e27f MB |
13099 | int main() { |
13100 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
13101 | ; return 0; } | |
13102 | EOF | |
8d90d2f2 | 13103 | if { (eval echo configure:13104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13104 | rm -rf conftest* |
21d1c967 GD |
13105 | echo "*** The test program compiled, but did not run. This usually means" |
13106 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
13107 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
13108 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
13109 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
13110 | echo "*** is required on your system" | |
13111 | echo "***" | |
13112 | echo "*** If you have an old version installed, it is best to remove it, although" | |
13113 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
13114 | echo "***" | |
13115 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
13116 | echo "*** came with the system with the command" | |
13117 | echo "***" | |
a0b9e27f | 13118 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 13119 | else |
a0b9e27f MB |
13120 | echo "configure: failed program was:" >&5 |
13121 | cat conftest.$ac_ext >&5 | |
13122 | rm -rf conftest* | |
13123 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
13124 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
13125 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 13126 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 13127 | fi |
a0b9e27f | 13128 | rm -f conftest* |
21d1c967 GD |
13129 | CFLAGS="$ac_save_CFLAGS" |
13130 | LIBS="$ac_save_LIBS" | |
13131 | fi | |
13132 | fi | |
13133 | GTK_CFLAGS="" | |
13134 | GTK_LIBS="" | |
13135 | : | |
13136 | fi | |
a0b9e27f MB |
13137 | |
13138 | ||
21d1c967 | 13139 | rm -f conf.gtktest |
f79bd02d | 13140 | |
2b5f62a0 | 13141 | fi |
21d1c967 GD |
13142 | fi |
13143 | ||
13144 | if test -z "$wx_cv_lib_gtk"; then | |
13145 | wx_cv_lib_gtk=none | |
13146 | else | |
13147 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
13148 | wx_cv_libs_gtk=$GTK_LIBS | |
13149 | fi | |
a0b9e27f MB |
13150 | |
13151 | ||
5c6fa7d2 | 13152 | fi |
52127426 | 13153 | |
8284b0c5 | 13154 | |
21d1c967 | 13155 | if test "$gtk_version_cached" = 1; then |
a0b9e27f | 13156 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 |
21d1c967 GD |
13157 | fi |
13158 | ||
13159 | case "$wx_cv_lib_gtk" in | |
13160 | 2.0) WXGTK20=1 | |
2b5f62a0 | 13161 | TOOLKIT_VERSION=2 |
21d1c967 GD |
13162 | ;; |
13163 | 1.2.7) WXGTK127=1 | |
13164 | WXGTK12=1 | |
13165 | ;; | |
13166 | 1.2.3) WXGTK12=1 | |
13167 | ;; | |
a0b9e27f | 13168 | *) { echo "configure: error: |
247f5006 VZ |
13169 | Please check that gtk-config is in path, the directory |
13170 | where GTK+ libraries are installed (returned by | |
13171 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
13172 | equivalent variable and GTK+ is version 1.2.3 or above. | |
a0b9e27f | 13173 | " 1>&2; exit 1; } |
21d1c967 GD |
13174 | ;; |
13175 | esac | |
13176 | ||
b13cd66e VZ |
13177 | if test "$WXGTK20" = 1; then |
13178 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 13179 | |
f09359cf VS |
13180 | succeeded=no |
13181 | ||
13182 | if test -z "$PKG_CONFIG"; then | |
13183 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
13184 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 13185 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8d90d2f2 | 13186 | echo "configure:13187: checking for $ac_word" >&5 |
a0b9e27f MB |
13187 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
13188 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf | 13189 | else |
a0b9e27f MB |
13190 | case "$PKG_CONFIG" in |
13191 | /*) | |
f09359cf VS |
13192 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
13193 | ;; | |
a0b9e27f MB |
13194 | ?:/*) |
13195 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
13196 | ;; | |
f09359cf | 13197 | *) |
a0b9e27f MB |
13198 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
13199 | ac_dummy="$PATH" | |
13200 | for ac_dir in $ac_dummy; do | |
13201 | test -z "$ac_dir" && ac_dir=. | |
13202 | if test -f $ac_dir/$ac_word; then | |
13203 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
13204 | break | |
13205 | fi | |
13206 | done | |
13207 | IFS="$ac_save_ifs" | |
f09359cf VS |
13208 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
13209 | ;; | |
13210 | esac | |
13211 | fi | |
a0b9e27f | 13212 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
f09359cf | 13213 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 13214 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f09359cf | 13215 | else |
a0b9e27f | 13216 | echo "$ac_t""no" 1>&6 |
f09359cf VS |
13217 | fi |
13218 | ||
13219 | fi | |
13220 | ||
13221 | if test "$PKG_CONFIG" = "no" ; then | |
13222 | echo "*** The pkg-config script could not be found. Make sure it is" | |
13223 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
13224 | echo "*** to the full path to pkg-config." | |
13225 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
13226 | else | |
13227 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
13228 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
a0b9e27f | 13229 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 |
8d90d2f2 | 13230 | echo "configure:13231: checking for pangoft2" >&5 |
f09359cf VS |
13231 | |
13232 | if $PKG_CONFIG --exists "pangoft2" ; then | |
a0b9e27f | 13233 | echo "$ac_t""yes" 1>&6 |
f09359cf VS |
13234 | succeeded=yes |
13235 | ||
a0b9e27f | 13236 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 |
8d90d2f2 | 13237 | echo "configure:13238: checking PANGOFT2_CFLAGS" >&5 |
f09359cf | 13238 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
a0b9e27f | 13239 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 |
f09359cf | 13240 | |
a0b9e27f | 13241 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 |
8d90d2f2 | 13242 | echo "configure:13243: checking PANGOFT2_LIBS" >&5 |
f09359cf | 13243 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
a0b9e27f | 13244 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 |
f09359cf VS |
13245 | else |
13246 | PANGOFT2_CFLAGS="" | |
13247 | PANGOFT2_LIBS="" | |
a0b9e27f | 13248 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
13249 | ## do set a variable so people can do so. |
13250 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
a0b9e27f | 13251 | |
f09359cf VS |
13252 | fi |
13253 | ||
a0b9e27f MB |
13254 | |
13255 | ||
f09359cf VS |
13256 | else |
13257 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
13258 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
13259 | fi | |
13260 | fi | |
13261 | ||
13262 | if test $succeeded = yes; then | |
a0b9e27f | 13263 | |
b13cd66e VZ |
13264 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
13265 | LIBS="$LIBS $PANGOFT2_LIBS" | |
a0b9e27f | 13266 | |
f09359cf | 13267 | else |
a0b9e27f MB |
13268 | |
13269 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
b13cd66e | 13270 | wxUSE_PRINTING_ARCHITECTURE="no" |
a0b9e27f MB |
13271 | |
13272 | ||
f09359cf VS |
13273 | fi |
13274 | ||
b13cd66e | 13275 | fi |
2b5f62a0 VZ |
13276 | else |
13277 | if test "$wxUSE_UNICODE" = "yes"; then | |
13278 | echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2 | |
13279 | wxUSE_UNICODE=no | |
13280 | fi | |
13281 | fi | |
13282 | ||
13283 | if test "$USE_DARWIN" != 1; then | |
13284 | for ac_func in poll | |
13285 | do | |
13286 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
8d90d2f2 | 13287 | echo "configure:13288: checking for $ac_func" >&5 |
2b5f62a0 VZ |
13288 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13289 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13290 | else | |
13291 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 13292 | #line 13293 "configure" |
2b5f62a0 VZ |
13293 | #include "confdefs.h" |
13294 | /* System header to define __stub macros and hopefully few prototypes, | |
13295 | which can conflict with char $ac_func(); below. */ | |
13296 | #include <assert.h> | |
13297 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13298 | /* We use char because int might match the return type of a gcc2 | |
13299 | builtin and then its argument prototype would still apply. */ | |
13300 | char $ac_func(); | |
13301 | ||
13302 | int main() { | |
13303 | ||
13304 | /* The GNU C library defines this for functions which it implements | |
13305 | to always fail with ENOSYS. Some functions are actually named | |
13306 | something starting with __ and the normal name is an alias. */ | |
13307 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13308 | choke me | |
13309 | #else | |
13310 | $ac_func(); | |
13311 | #endif | |
13312 | ||
13313 | ; return 0; } | |
13314 | EOF | |
8d90d2f2 | 13315 | if { (eval echo configure:13316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
13316 | rm -rf conftest* |
13317 | eval "ac_cv_func_$ac_func=yes" | |
13318 | else | |
13319 | echo "configure: failed program was:" >&5 | |
13320 | cat conftest.$ac_ext >&5 | |
13321 | rm -rf conftest* | |
13322 | eval "ac_cv_func_$ac_func=no" | |
13323 | fi | |
13324 | rm -f conftest* | |
13325 | fi | |
13326 | ||
13327 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13328 | echo "$ac_t""yes" 1>&6 | |
13329 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13330 | cat >> confdefs.h <<EOF | |
13331 | #define $ac_tr_func 1 | |
13332 | EOF | |
13333 | ||
13334 | else | |
13335 | echo "$ac_t""no" 1>&6 | |
13336 | fi | |
13337 | done | |
13338 | ||
f09359cf VS |
13339 | fi |
13340 | ||
21d1c967 GD |
13341 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
13342 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
13343 | ||
13344 | AFMINSTALL=afminstall | |
13345 | TOOLKIT=GTK | |
13346 | GUIDIST=GTK_DIST | |
13347 | ||
a0b9e27f | 13348 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
8d90d2f2 | 13349 | echo "configure:13350: checking for gdk_im_open in -lgdk" >&5 |
a0b9e27f MB |
13350 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
13351 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13352 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13353 | else |
a0b9e27f | 13354 | ac_save_LIBS="$LIBS" |
21d1c967 | 13355 | LIBS="-lgdk $LIBS" |
a0b9e27f | 13356 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 13357 | #line 13358 "configure" |
90dd450c | 13358 | #include "confdefs.h" |
5c6fa7d2 | 13359 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 13360 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13361 | builtin and then its argument prototype would still apply. */ |
13362 | char gdk_im_open(); | |
13363 | ||
13364 | int main() { | |
13365 | gdk_im_open() | |
13366 | ; return 0; } | |
13367 | EOF | |
8d90d2f2 | 13368 | if { (eval echo configure:13369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13369 | rm -rf conftest* |
13370 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13371 | else | |
13372 | echo "configure: failed program was:" >&5 | |
13373 | cat conftest.$ac_ext >&5 | |
13374 | rm -rf conftest* | |
13375 | eval "ac_cv_lib_$ac_lib_var=no" | |
13376 | fi | |
13377 | rm -f conftest* | |
13378 | LIBS="$ac_save_LIBS" | |
13379 | ||
13380 | fi | |
13381 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13382 | echo "$ac_t""yes" 1>&6 | |
13383 | cat >> confdefs.h <<\EOF | |
21d1c967 | 13384 | #define HAVE_XIM 1 |
a0b9e27f | 13385 | EOF |
21d1c967 | 13386 | |
a0b9e27f MB |
13387 | else |
13388 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13389 | fi |
1e6feb95 | 13390 | |
21d1c967 | 13391 | fi |
1e6feb95 | 13392 | |
21d1c967 | 13393 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 13394 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
8d90d2f2 | 13395 | echo "configure:13396: checking for SciTech MGL library" >&5 |
21d1c967 | 13396 | if test "x$MGL_ROOT" = x ; then |
a0b9e27f MB |
13397 | echo "$ac_t""not found" 1>&6 |
13398 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
21d1c967 | 13399 | else |
a0b9e27f | 13400 | echo "$ac_t""$MGL_ROOT" 1>&6 |
21d1c967 GD |
13401 | fi |
13402 | ||
13403 | case "${host}" in | |
13404 | *-*-linux* ) | |
2b5f62a0 | 13405 | mgl_os="linux/gcc/glibc*" |
21d1c967 GD |
13406 | ;; |
13407 | *-pc-msdosdjgpp ) | |
13408 | mgl_os=dos32/dj2 | |
13409 | ;; | |
13410 | *) | |
a0b9e27f | 13411 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } |
21d1c967 | 13412 | esac |
1e6feb95 | 13413 | |
21d1c967 | 13414 | mgl_lib_type="" |
3fcdd07b | 13415 | |
21d1c967 GD |
13416 | if test "$wxUSE_DEBUG_FLAG" = yes ; then |
13417 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ | |
13418 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
13419 | mgl_lib_type=debug | |
13420 | fi | |
13421 | fi | |
13422 | if test "x$mgl_lib_type" = x ; then | |
13423 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ | |
13424 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
13425 | mgl_lib_type=release | |
13426 | else | |
a0b9e27f | 13427 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } |
21d1c967 | 13428 | fi |
90dd450c | 13429 | fi |
2224580a | 13430 | |
1d1b75ac VZ |
13431 | wxUSE_UNIVERSAL="yes" |
13432 | ||
21d1c967 GD |
13433 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
13434 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
13435 | ||
90dd450c | 13436 | AFMINSTALL=afminstall |
21d1c967 GD |
13437 | TOOLKIT=MGL |
13438 | GUIDIST=MGL_DIST | |
13439 | fi | |
dad6c0ea | 13440 | |
21d1c967 | 13441 | if test "$wxUSE_MICROWIN" = 1; then |
a0b9e27f | 13442 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 |
8d90d2f2 | 13443 | echo "configure:13444: checking for MicroWindows" >&5 |
21d1c967 | 13444 | if test "x$MICROWINDOWS" = x ; then |
a0b9e27f MB |
13445 | echo "$ac_t""not found" 1>&6 |
13446 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
21d1c967 | 13447 | else |
a0b9e27f | 13448 | echo "$ac_t""$MICROWINDOWS" 1>&6 |
21d1c967 | 13449 | fi |
f6bcfd97 | 13450 | |
21d1c967 | 13451 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
a0b9e27f | 13452 | echo "$ac_t""MicroWindows' libraries found." 1>&6 |
21d1c967 | 13453 | else |
a0b9e27f | 13454 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } |
90dd450c | 13455 | fi |
0b2effe9 | 13456 | |
21d1c967 GD |
13457 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
13458 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
13459 | ||
1d1b75ac VZ |
13460 | wxUSE_UNIVERSAL="yes" |
13461 | ||
21d1c967 GD |
13462 | AFMINSTALL=afminstall |
13463 | TOOLKIT=MICROWIN | |
13464 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
13465 | |
13466 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 13467 | fi |
f6bcfd97 | 13468 | |
21d1c967 | 13469 | if test "$wxUSE_X11" = 1; then |
a0b9e27f MB |
13470 | # If we find X, set shell vars x_includes and x_libraries to the |
13471 | # paths, otherwise set no_x=yes. | |
13472 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
13473 | # --without-x overrides everything else, but does not touch the cache. | |
13474 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
8d90d2f2 | 13475 | echo "configure:13476: checking for X" >&5 |
d8356fa3 | 13476 | |
21d1c967 GD |
13477 | # Check whether --with-x or --without-x was given. |
13478 | if test "${with_x+set}" = set; then | |
13479 | withval="$with_x" | |
a0b9e27f MB |
13480 | : |
13481 | fi | |
2224580a | 13482 | |
21d1c967 GD |
13483 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
13484 | if test "x$with_x" = xno; then | |
13485 | # The user explicitly disabled X. | |
13486 | have_x=disabled | |
13487 | else | |
13488 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
13489 | # Both variables are already set. | |
13490 | have_x=yes | |
13491 | else | |
a0b9e27f MB |
13492 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
13493 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 GD |
13494 | else |
13495 | # One or both of the vars are not set, and there is no cached value. | |
a0b9e27f MB |
13496 | ac_x_includes=NO ac_x_libraries=NO |
13497 | rm -fr conftestdir | |
13498 | if mkdir conftestdir; then | |
13499 | cd conftestdir | |
21d1c967 | 13500 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
a0b9e27f | 13501 | cat > Imakefile <<'EOF' |
21d1c967 GD |
13502 | acfindx: |
13503 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
a0b9e27f | 13504 | EOF |
21d1c967 GD |
13505 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
13506 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
13507 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
13508 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
13509 | for ac_extension in a so sl; do | |
13510 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
a0b9e27f | 13511 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
13512 | ac_im_usrlibdir=$ac_im_libdir; break |
13513 | fi | |
13514 | done | |
13515 | # Screen out bogus values from the imake configuration. They are | |
13516 | # bogus both because they are the default anyway, and because | |
13517 | # using them would break gcc on systems where it needs fixed includes. | |
a0b9e27f | 13518 | case "$ac_im_incroot" in |
21d1c967 | 13519 | /usr/include) ;; |
a0b9e27f | 13520 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
21d1c967 | 13521 | esac |
a0b9e27f | 13522 | case "$ac_im_usrlibdir" in |
21d1c967 | 13523 | /usr/lib | /lib) ;; |
a0b9e27f | 13524 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
21d1c967 GD |
13525 | esac |
13526 | fi | |
13527 | cd .. | |
a0b9e27f | 13528 | rm -fr conftestdir |
21d1c967 | 13529 | fi |
10f2d63a | 13530 | |
a0b9e27f MB |
13531 | if test "$ac_x_includes" = NO; then |
13532 | # Guess where to find include files, by looking for this one X11 .h file. | |
13533 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
13534 | ||
21d1c967 | 13535 | # First, try using that file with no special directory specified. |
a0b9e27f | 13536 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 13537 | #line 13538 "configure" |
21d1c967 | 13538 | #include "confdefs.h" |
a0b9e27f MB |
13539 | #include <$x_direct_test_include> |
13540 | EOF | |
13541 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8d90d2f2 | 13542 | { (eval echo configure:13543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
13543 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13544 | if test -z "$ac_err"; then | |
13545 | rm -rf conftest* | |
21d1c967 GD |
13546 | # We can compile using X headers with no special include directory. |
13547 | ac_x_includes= | |
90dd450c | 13548 | else |
a0b9e27f MB |
13549 | echo "$ac_err" >&5 |
13550 | echo "configure: failed program was:" >&5 | |
90dd450c | 13551 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
13552 | rm -rf conftest* |
13553 | # Look for the header file in a standard set of common directories. | |
13554 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13555 | for ac_dir in \ | |
13556 | /usr/X11/include \ | |
13557 | /usr/X11R6/include \ | |
13558 | /usr/X11R5/include \ | |
13559 | /usr/X11R4/include \ | |
13560 | \ | |
13561 | /usr/include/X11 \ | |
13562 | /usr/include/X11R6 \ | |
13563 | /usr/include/X11R5 \ | |
13564 | /usr/include/X11R4 \ | |
13565 | \ | |
13566 | /usr/local/X11/include \ | |
13567 | /usr/local/X11R6/include \ | |
13568 | /usr/local/X11R5/include \ | |
13569 | /usr/local/X11R4/include \ | |
13570 | \ | |
13571 | /usr/local/include/X11 \ | |
13572 | /usr/local/include/X11R6 \ | |
13573 | /usr/local/include/X11R5 \ | |
13574 | /usr/local/include/X11R4 \ | |
13575 | \ | |
13576 | /usr/X386/include \ | |
13577 | /usr/x386/include \ | |
13578 | /usr/XFree86/include/X11 \ | |
13579 | \ | |
13580 | /usr/include \ | |
13581 | /usr/local/include \ | |
13582 | /usr/unsupported/include \ | |
13583 | /usr/athena/include \ | |
13584 | /usr/local/x11r5/include \ | |
13585 | /usr/lpp/Xamples/include \ | |
13586 | \ | |
13587 | /usr/openwin/include \ | |
13588 | /usr/openwin/share/include \ | |
13589 | ; \ | |
13590 | do | |
13591 | if test -r "$ac_dir/$x_direct_test_include"; then | |
13592 | ac_x_includes=$ac_dir | |
13593 | break | |
13594 | fi | |
13595 | done | |
3a922bb4 | 13596 | fi |
a0b9e27f MB |
13597 | rm -f conftest* |
13598 | fi # $ac_x_includes = NO | |
10f2d63a | 13599 | |
a0b9e27f | 13600 | if test "$ac_x_libraries" = NO; then |
21d1c967 | 13601 | # Check for the libraries. |
a0b9e27f MB |
13602 | |
13603 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
13604 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
13605 | ||
21d1c967 GD |
13606 | # See if we find them without any special options. |
13607 | # Don't add to $LIBS permanently. | |
a0b9e27f MB |
13608 | ac_save_LIBS="$LIBS" |
13609 | LIBS="-l$x_direct_test_library $LIBS" | |
13610 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 13611 | #line 13612 "configure" |
3a922bb4 | 13612 | #include "confdefs.h" |
a0b9e27f MB |
13613 | |
13614 | int main() { | |
13615 | ${x_direct_test_function}() | |
13616 | ; return 0; } | |
13617 | EOF | |
8d90d2f2 | 13618 | if { (eval echo configure:13619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13619 | rm -rf conftest* |
13620 | LIBS="$ac_save_LIBS" | |
21d1c967 GD |
13621 | # We can link X programs with no special library path. |
13622 | ac_x_libraries= | |
3a922bb4 | 13623 | else |
a0b9e27f MB |
13624 | echo "configure: failed program was:" >&5 |
13625 | cat conftest.$ac_ext >&5 | |
13626 | rm -rf conftest* | |
13627 | LIBS="$ac_save_LIBS" | |
13628 | # First see if replacing the include by lib works. | |
13629 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13630 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
13631 | /usr/X11/lib \ | |
13632 | /usr/X11R6/lib \ | |
13633 | /usr/X11R5/lib \ | |
13634 | /usr/X11R4/lib \ | |
13635 | \ | |
13636 | /usr/lib/X11 \ | |
13637 | /usr/lib/X11R6 \ | |
13638 | /usr/lib/X11R5 \ | |
13639 | /usr/lib/X11R4 \ | |
13640 | \ | |
13641 | /usr/local/X11/lib \ | |
13642 | /usr/local/X11R6/lib \ | |
13643 | /usr/local/X11R5/lib \ | |
13644 | /usr/local/X11R4/lib \ | |
13645 | \ | |
13646 | /usr/local/lib/X11 \ | |
13647 | /usr/local/lib/X11R6 \ | |
13648 | /usr/local/lib/X11R5 \ | |
13649 | /usr/local/lib/X11R4 \ | |
13650 | \ | |
13651 | /usr/X386/lib \ | |
13652 | /usr/x386/lib \ | |
13653 | /usr/XFree86/lib/X11 \ | |
13654 | \ | |
13655 | /usr/lib \ | |
13656 | /usr/local/lib \ | |
13657 | /usr/unsupported/lib \ | |
13658 | /usr/athena/lib \ | |
13659 | /usr/local/x11r5/lib \ | |
13660 | /usr/lpp/Xamples/lib \ | |
13661 | /lib/usr/lib/X11 \ | |
13662 | \ | |
13663 | /usr/openwin/lib \ | |
13664 | /usr/openwin/share/lib \ | |
13665 | ; \ | |
21d1c967 GD |
13666 | do |
13667 | for ac_extension in a so sl; do | |
a0b9e27f | 13668 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
21d1c967 GD |
13669 | ac_x_libraries=$ac_dir |
13670 | break 2 | |
13671 | fi | |
13672 | done | |
13673 | done | |
3a922bb4 | 13674 | fi |
a0b9e27f MB |
13675 | rm -f conftest* |
13676 | fi # $ac_x_libraries = NO | |
90dd450c | 13677 | |
a0b9e27f | 13678 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
21d1c967 GD |
13679 | # Didn't find X anywhere. Cache the known absence of X. |
13680 | ac_cv_have_x="have_x=no" | |
13681 | else | |
13682 | # Record where we found X for the cache. | |
13683 | ac_cv_have_x="have_x=yes \ | |
13684 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 13685 | fi |
21d1c967 GD |
13686 | fi |
13687 | fi | |
13688 | eval "$ac_cv_have_x" | |
13689 | fi # $with_x != no | |
90dd450c | 13690 | |
21d1c967 | 13691 | if test "$have_x" != yes; then |
a0b9e27f | 13692 | echo "$ac_t""$have_x" 1>&6 |
21d1c967 GD |
13693 | no_x=yes |
13694 | else | |
13695 | # If each of the values was on the command line, it overrides each guess. | |
13696 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
13697 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
13698 | # Update the cache value to reflect the command line values. | |
13699 | ac_cv_have_x="have_x=yes \ | |
13700 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
a0b9e27f | 13701 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
21d1c967 | 13702 | fi |
90dd450c | 13703 | |
21d1c967 | 13704 | if test "$no_x" = yes; then |
90dd450c | 13705 | # Not all programs may use this symbol, but it does not hurt to define it. |
a0b9e27f | 13706 | cat >> confdefs.h <<\EOF |
90dd450c | 13707 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 13708 | EOF |
90dd450c VZ |
13709 | |
13710 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13711 | else | |
13712 | if test -n "$x_includes"; then | |
13713 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 13714 | fi |
3a922bb4 | 13715 | |
90dd450c VZ |
13716 | # It would also be nice to do this for all -L options, not just this one. |
13717 | if test -n "$x_libraries"; then | |
13718 | X_LIBS="$X_LIBS -L$x_libraries" | |
13719 | # For Solaris; some versions of Sun CC require a space after -R and | |
13720 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 13721 | case "`(uname -sr) 2>/dev/null`" in |
90dd450c | 13722 | "SunOS 5"*) |
a0b9e27f | 13723 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
8d90d2f2 | 13724 | echo "configure:13725: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
13725 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
13726 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 13727 | #line 13728 "configure" |
90dd450c VZ |
13728 | #include "confdefs.h" |
13729 | ||
a0b9e27f | 13730 | int main() { |
90dd450c | 13731 | |
a0b9e27f MB |
13732 | ; return 0; } |
13733 | EOF | |
8d90d2f2 | 13734 | if { (eval echo configure:13735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13735 | rm -rf conftest* |
90dd450c | 13736 | ac_R_nospace=yes |
3a922bb4 | 13737 | else |
a0b9e27f MB |
13738 | echo "configure: failed program was:" >&5 |
13739 | cat conftest.$ac_ext >&5 | |
13740 | rm -rf conftest* | |
13741 | ac_R_nospace=no | |
3a922bb4 | 13742 | fi |
a0b9e27f | 13743 | rm -f conftest* |
90dd450c | 13744 | if test $ac_R_nospace = yes; then |
a0b9e27f | 13745 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
13746 | X_LIBS="$X_LIBS -R$x_libraries" |
13747 | else | |
13748 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 13749 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 13750 | #line 13751 "configure" |
90dd450c | 13751 | #include "confdefs.h" |
3a922bb4 | 13752 | |
a0b9e27f | 13753 | int main() { |
6f754473 | 13754 | |
a0b9e27f MB |
13755 | ; return 0; } |
13756 | EOF | |
8d90d2f2 | 13757 | if { (eval echo configure:13758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13758 | rm -rf conftest* |
90dd450c VZ |
13759 | ac_R_space=yes |
13760 | else | |
a0b9e27f MB |
13761 | echo "configure: failed program was:" >&5 |
13762 | cat conftest.$ac_ext >&5 | |
13763 | rm -rf conftest* | |
13764 | ac_R_space=no | |
90dd450c | 13765 | fi |
a0b9e27f | 13766 | rm -f conftest* |
90dd450c | 13767 | if test $ac_R_space = yes; then |
a0b9e27f | 13768 | echo "$ac_t""yes" 1>&6 |
90dd450c VZ |
13769 | X_LIBS="$X_LIBS -R $x_libraries" |
13770 | else | |
a0b9e27f | 13771 | echo "$ac_t""neither works" 1>&6 |
90dd450c VZ |
13772 | fi |
13773 | fi | |
a0b9e27f | 13774 | LIBS="$ac_xsave_LIBS" |
90dd450c VZ |
13775 | esac |
13776 | fi | |
13777 | ||
13778 | # Check for system-dependent libraries X programs must link with. | |
13779 | # Do this before checking for the system-independent R6 libraries | |
13780 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 13781 | |
90dd450c VZ |
13782 | if test "$ISC" = yes; then |
13783 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13784 | else | |
a0b9e27f MB |
13785 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
13786 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
90dd450c | 13787 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 13788 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
8d90d2f2 | 13789 | echo "configure:13790: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
13790 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13791 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13792 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 13793 | else |
a0b9e27f | 13794 | ac_save_LIBS="$LIBS" |
247f5006 | 13795 | LIBS="-ldnet $LIBS" |
a0b9e27f | 13796 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 13797 | #line 13798 "configure" |
247f5006 | 13798 | #include "confdefs.h" |
247f5006 | 13799 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 13800 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13801 | builtin and then its argument prototype would still apply. */ |
13802 | char dnet_ntoa(); | |
13803 | ||
13804 | int main() { | |
13805 | dnet_ntoa() | |
13806 | ; return 0; } | |
13807 | EOF | |
8d90d2f2 | 13808 | if { (eval echo configure:13809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13809 | rm -rf conftest* |
13810 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13811 | else | |
13812 | echo "configure: failed program was:" >&5 | |
13813 | cat conftest.$ac_ext >&5 | |
13814 | rm -rf conftest* | |
13815 | eval "ac_cv_lib_$ac_lib_var=no" | |
13816 | fi | |
13817 | rm -f conftest* | |
13818 | LIBS="$ac_save_LIBS" | |
13819 | ||
13820 | fi | |
13821 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13822 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13823 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
13824 | else |
13825 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13826 | fi |
13827 | ||
90dd450c | 13828 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 13829 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
8d90d2f2 | 13830 | echo "configure:13831: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
13831 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13832 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13833 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13834 | else |
a0b9e27f | 13835 | ac_save_LIBS="$LIBS" |
90dd450c | 13836 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 13837 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 13838 | #line 13839 "configure" |
90dd450c VZ |
13839 | #include "confdefs.h" |
13840 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13841 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13842 | builtin and then its argument prototype would still apply. */ |
13843 | char dnet_ntoa(); | |
13844 | ||
13845 | int main() { | |
13846 | dnet_ntoa() | |
13847 | ; return 0; } | |
13848 | EOF | |
8d90d2f2 | 13849 | if { (eval echo configure:13850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13850 | rm -rf conftest* |
13851 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13852 | else | |
13853 | echo "configure: failed program was:" >&5 | |
13854 | cat conftest.$ac_ext >&5 | |
13855 | rm -rf conftest* | |
13856 | eval "ac_cv_lib_$ac_lib_var=no" | |
13857 | fi | |
13858 | rm -f conftest* | |
13859 | LIBS="$ac_save_LIBS" | |
13860 | ||
13861 | fi | |
13862 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13863 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13864 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
13865 | else |
13866 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13867 | fi |
13868 | ||
90dd450c | 13869 | fi |
978f1259 | 13870 | |
90dd450c VZ |
13871 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13872 | # to get the SysV transport functions. | |
a0b9e27f | 13873 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
13874 | # needs -lnsl. |
13875 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
13876 | # on Irix 5.2, according to dickey@clark.net. |
13877 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
8d90d2f2 | 13878 | echo "configure:13879: checking for gethostbyname" >&5 |
a0b9e27f MB |
13879 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13880 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13881 | else | |
13882 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 13883 | #line 13884 "configure" |
90dd450c VZ |
13884 | #include "confdefs.h" |
13885 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 13886 | which can conflict with char gethostbyname(); below. */ |
90dd450c VZ |
13887 | #include <assert.h> |
13888 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13889 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13890 | builtin and then its argument prototype would still apply. */ |
13891 | char gethostbyname(); | |
13892 | ||
13893 | int main() { | |
13894 | ||
90dd450c VZ |
13895 | /* The GNU C library defines this for functions which it implements |
13896 | to always fail with ENOSYS. Some functions are actually named | |
13897 | something starting with __ and the normal name is an alias. */ | |
13898 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13899 | choke me | |
13900 | #else | |
a0b9e27f | 13901 | gethostbyname(); |
90dd450c | 13902 | #endif |
978f1259 | 13903 | |
a0b9e27f MB |
13904 | ; return 0; } |
13905 | EOF | |
8d90d2f2 | 13906 | if { (eval echo configure:13907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13907 | rm -rf conftest* |
13908 | eval "ac_cv_func_gethostbyname=yes" | |
13909 | else | |
13910 | echo "configure: failed program was:" >&5 | |
13911 | cat conftest.$ac_ext >&5 | |
13912 | rm -rf conftest* | |
13913 | eval "ac_cv_func_gethostbyname=no" | |
13914 | fi | |
13915 | rm -f conftest* | |
13916 | fi | |
13917 | ||
13918 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
13919 | echo "$ac_t""yes" 1>&6 | |
13920 | : | |
13921 | else | |
13922 | echo "$ac_t""no" 1>&6 | |
13923 | fi | |
698dcdb6 | 13924 | |
90dd450c | 13925 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 13926 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
8d90d2f2 | 13927 | echo "configure:13928: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
13928 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13929 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13930 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13931 | else |
a0b9e27f | 13932 | ac_save_LIBS="$LIBS" |
90dd450c | 13933 | LIBS="-lnsl $LIBS" |
a0b9e27f | 13934 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 13935 | #line 13936 "configure" |
90dd450c VZ |
13936 | #include "confdefs.h" |
13937 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13938 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13939 | builtin and then its argument prototype would still apply. */ |
13940 | char gethostbyname(); | |
5c6fa7d2 | 13941 | |
a0b9e27f MB |
13942 | int main() { |
13943 | gethostbyname() | |
13944 | ; return 0; } | |
13945 | EOF | |
8d90d2f2 | 13946 | if { (eval echo configure:13947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13947 | rm -rf conftest* |
13948 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 13949 | else |
a0b9e27f MB |
13950 | echo "configure: failed program was:" >&5 |
13951 | cat conftest.$ac_ext >&5 | |
13952 | rm -rf conftest* | |
13953 | eval "ac_cv_lib_$ac_lib_var=no" | |
13954 | fi | |
13955 | rm -f conftest* | |
13956 | LIBS="$ac_save_LIBS" | |
247f5006 | 13957 | |
a0b9e27f MB |
13958 | fi |
13959 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13960 | echo "$ac_t""yes" 1>&6 | |
13961 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13962 | else | |
13963 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13964 | fi |
b12915c1 | 13965 | |
90dd450c VZ |
13966 | fi |
13967 | ||
13968 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
13969 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13970 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
13971 | # on later versions), says simon@lia.di.epfl.ch: it contains |
13972 | # gethostby* variants that don't use the nameserver (or something). | |
13973 | # -lsocket must be given before -lnsl if both are needed. | |
13974 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
13975 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
8d90d2f2 | 13976 | echo "configure:13977: checking for connect" >&5 |
a0b9e27f MB |
13977 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
13978 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13979 | else | |
13980 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 13981 | #line 13982 "configure" |
55e80573 | 13982 | #include "confdefs.h" |
90dd450c | 13983 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 13984 | which can conflict with char connect(); below. */ |
90dd450c VZ |
13985 | #include <assert.h> |
13986 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13987 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13988 | builtin and then its argument prototype would still apply. */ |
13989 | char connect(); | |
13990 | ||
13991 | int main() { | |
13992 | ||
90dd450c VZ |
13993 | /* The GNU C library defines this for functions which it implements |
13994 | to always fail with ENOSYS. Some functions are actually named | |
13995 | something starting with __ and the normal name is an alias. */ | |
13996 | #if defined (__stub_connect) || defined (__stub___connect) | |
13997 | choke me | |
13998 | #else | |
a0b9e27f | 13999 | connect(); |
90dd450c VZ |
14000 | #endif |
14001 | ||
a0b9e27f MB |
14002 | ; return 0; } |
14003 | EOF | |
8d90d2f2 | 14004 | if { (eval echo configure:14005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14005 | rm -rf conftest* |
14006 | eval "ac_cv_func_connect=yes" | |
14007 | else | |
14008 | echo "configure: failed program was:" >&5 | |
14009 | cat conftest.$ac_ext >&5 | |
14010 | rm -rf conftest* | |
14011 | eval "ac_cv_func_connect=no" | |
14012 | fi | |
14013 | rm -f conftest* | |
14014 | fi | |
14015 | ||
14016 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
14017 | echo "$ac_t""yes" 1>&6 | |
14018 | : | |
14019 | else | |
14020 | echo "$ac_t""no" 1>&6 | |
14021 | fi | |
55e80573 | 14022 | |
90dd450c | 14023 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 14024 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
8d90d2f2 | 14025 | echo "configure:14026: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
14026 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
14027 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14028 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14029 | else |
a0b9e27f | 14030 | ac_save_LIBS="$LIBS" |
90dd450c | 14031 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14032 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 14033 | #line 14034 "configure" |
90dd450c VZ |
14034 | #include "confdefs.h" |
14035 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14036 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14037 | builtin and then its argument prototype would still apply. */ |
14038 | char connect(); | |
14039 | ||
14040 | int main() { | |
14041 | connect() | |
14042 | ; return 0; } | |
14043 | EOF | |
8d90d2f2 | 14044 | if { (eval echo configure:14045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14045 | rm -rf conftest* |
14046 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14047 | else | |
14048 | echo "configure: failed program was:" >&5 | |
14049 | cat conftest.$ac_ext >&5 | |
14050 | rm -rf conftest* | |
14051 | eval "ac_cv_lib_$ac_lib_var=no" | |
14052 | fi | |
14053 | rm -f conftest* | |
14054 | LIBS="$ac_save_LIBS" | |
14055 | ||
14056 | fi | |
14057 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14058 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14059 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
14060 | else |
14061 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14062 | fi |
77e13408 | 14063 | |
90dd450c | 14064 | fi |
25d0687a | 14065 | |
a0b9e27f MB |
14066 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
14067 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
8d90d2f2 | 14068 | echo "configure:14069: checking for remove" >&5 |
a0b9e27f MB |
14069 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
14070 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14071 | else |
a0b9e27f | 14072 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 14073 | #line 14074 "configure" |
90dd450c VZ |
14074 | #include "confdefs.h" |
14075 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14076 | which can conflict with char remove(); below. */ |
90dd450c VZ |
14077 | #include <assert.h> |
14078 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14079 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14080 | builtin and then its argument prototype would still apply. */ |
14081 | char remove(); | |
14082 | ||
14083 | int main() { | |
14084 | ||
90dd450c VZ |
14085 | /* The GNU C library defines this for functions which it implements |
14086 | to always fail with ENOSYS. Some functions are actually named | |
14087 | something starting with __ and the normal name is an alias. */ | |
14088 | #if defined (__stub_remove) || defined (__stub___remove) | |
14089 | choke me | |
14090 | #else | |
a0b9e27f | 14091 | remove(); |
90dd450c | 14092 | #endif |
55e80573 | 14093 | |
a0b9e27f MB |
14094 | ; return 0; } |
14095 | EOF | |
8d90d2f2 | 14096 | if { (eval echo configure:14097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14097 | rm -rf conftest* |
14098 | eval "ac_cv_func_remove=yes" | |
14099 | else | |
14100 | echo "configure: failed program was:" >&5 | |
14101 | cat conftest.$ac_ext >&5 | |
14102 | rm -rf conftest* | |
14103 | eval "ac_cv_func_remove=no" | |
14104 | fi | |
14105 | rm -f conftest* | |
14106 | fi | |
14107 | ||
14108 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
14109 | echo "$ac_t""yes" 1>&6 | |
14110 | : | |
14111 | else | |
14112 | echo "$ac_t""no" 1>&6 | |
14113 | fi | |
10f2d63a | 14114 | |
90dd450c | 14115 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 14116 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
8d90d2f2 | 14117 | echo "configure:14118: checking for remove in -lposix" >&5 |
a0b9e27f MB |
14118 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
14119 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14120 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14121 | else |
a0b9e27f | 14122 | ac_save_LIBS="$LIBS" |
90dd450c | 14123 | LIBS="-lposix $LIBS" |
a0b9e27f | 14124 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 14125 | #line 14126 "configure" |
90dd450c VZ |
14126 | #include "confdefs.h" |
14127 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14128 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14129 | builtin and then its argument prototype would still apply. */ |
14130 | char remove(); | |
14131 | ||
14132 | int main() { | |
14133 | remove() | |
14134 | ; return 0; } | |
14135 | EOF | |
8d90d2f2 | 14136 | if { (eval echo configure:14137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14137 | rm -rf conftest* |
14138 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14139 | else | |
14140 | echo "configure: failed program was:" >&5 | |
14141 | cat conftest.$ac_ext >&5 | |
14142 | rm -rf conftest* | |
14143 | eval "ac_cv_lib_$ac_lib_var=no" | |
14144 | fi | |
14145 | rm -f conftest* | |
14146 | LIBS="$ac_save_LIBS" | |
14147 | ||
14148 | fi | |
14149 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14150 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14151 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
14152 | else |
14153 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14154 | fi |
f6bcfd97 | 14155 | |
6fa882bd RR |
14156 | fi |
14157 | ||
90dd450c | 14158 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 14159 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
8d90d2f2 | 14160 | echo "configure:14161: checking for shmat" >&5 |
a0b9e27f MB |
14161 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
14162 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14163 | else |
a0b9e27f | 14164 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 14165 | #line 14166 "configure" |
90dd450c VZ |
14166 | #include "confdefs.h" |
14167 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14168 | which can conflict with char shmat(); below. */ |
90dd450c VZ |
14169 | #include <assert.h> |
14170 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14171 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14172 | builtin and then its argument prototype would still apply. */ |
14173 | char shmat(); | |
14174 | ||
14175 | int main() { | |
14176 | ||
90dd450c VZ |
14177 | /* The GNU C library defines this for functions which it implements |
14178 | to always fail with ENOSYS. Some functions are actually named | |
14179 | something starting with __ and the normal name is an alias. */ | |
14180 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14181 | choke me | |
14182 | #else | |
a0b9e27f | 14183 | shmat(); |
90dd450c | 14184 | #endif |
10f2d63a | 14185 | |
a0b9e27f MB |
14186 | ; return 0; } |
14187 | EOF | |
8d90d2f2 | 14188 | if { (eval echo configure:14189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14189 | rm -rf conftest* |
14190 | eval "ac_cv_func_shmat=yes" | |
14191 | else | |
14192 | echo "configure: failed program was:" >&5 | |
14193 | cat conftest.$ac_ext >&5 | |
14194 | rm -rf conftest* | |
14195 | eval "ac_cv_func_shmat=no" | |
14196 | fi | |
14197 | rm -f conftest* | |
14198 | fi | |
14199 | ||
14200 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14201 | echo "$ac_t""yes" 1>&6 | |
14202 | : | |
14203 | else | |
14204 | echo "$ac_t""no" 1>&6 | |
14205 | fi | |
d08b457b | 14206 | |
90dd450c | 14207 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 14208 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
8d90d2f2 | 14209 | echo "configure:14210: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
14210 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
14211 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14212 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d08b457b | 14213 | else |
a0b9e27f | 14214 | ac_save_LIBS="$LIBS" |
90dd450c | 14215 | LIBS="-lipc $LIBS" |
a0b9e27f | 14216 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 14217 | #line 14218 "configure" |
90dd450c | 14218 | #include "confdefs.h" |
8284b0c5 | 14219 | /* Override any gcc2 internal prototype to avoid an error. */ |
90dd450c | 14220 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14221 | builtin and then its argument prototype would still apply. */ |
14222 | char shmat(); | |
14223 | ||
14224 | int main() { | |
14225 | shmat() | |
14226 | ; return 0; } | |
14227 | EOF | |
8d90d2f2 | 14228 | if { (eval echo configure:14229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14229 | rm -rf conftest* |
14230 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14231 | else | |
14232 | echo "configure: failed program was:" >&5 | |
14233 | cat conftest.$ac_ext >&5 | |
14234 | rm -rf conftest* | |
14235 | eval "ac_cv_lib_$ac_lib_var=no" | |
14236 | fi | |
14237 | rm -f conftest* | |
14238 | LIBS="$ac_save_LIBS" | |
14239 | ||
14240 | fi | |
14241 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14242 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14243 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
14244 | else |
14245 | echo "$ac_t""no" 1>&6 | |
d08b457b GD |
14246 | fi |
14247 | ||
d558c907 | 14248 | fi |
90dd450c | 14249 | fi |
3a922bb4 | 14250 | |
90dd450c | 14251 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 14252 | ac_save_LDFLAGS="$LDFLAGS" |
90dd450c VZ |
14253 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
14254 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14255 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14256 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14257 | # These have to be linked with before -lX11, unlike the other | |
14258 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
14259 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
14260 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
8d90d2f2 | 14261 | echo "configure:14262: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
14262 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
14263 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14264 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14265 | else | |
14266 | ac_save_LIBS="$LIBS" | |
f09359cf | 14267 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14268 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 14269 | #line 14270 "configure" |
9cfadba2 | 14270 | #include "confdefs.h" |
90dd450c VZ |
14271 | /* Override any gcc2 internal prototype to avoid an error. */ |
14272 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14273 | builtin and then its argument prototype would still apply. */ |
14274 | char IceConnectionNumber(); | |
14275 | ||
14276 | int main() { | |
14277 | IceConnectionNumber() | |
14278 | ; return 0; } | |
14279 | EOF | |
8d90d2f2 | 14280 | if { (eval echo configure:14281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14281 | rm -rf conftest* |
14282 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14283 | else | |
14284 | echo "configure: failed program was:" >&5 | |
14285 | cat conftest.$ac_ext >&5 | |
14286 | rm -rf conftest* | |
14287 | eval "ac_cv_lib_$ac_lib_var=no" | |
14288 | fi | |
14289 | rm -f conftest* | |
14290 | LIBS="$ac_save_LIBS" | |
14291 | ||
14292 | fi | |
14293 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14294 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14295 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
14296 | else |
14297 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 14298 | fi |
10f2d63a | 14299 | |
a0b9e27f | 14300 | LDFLAGS="$ac_save_LDFLAGS" |
90dd450c VZ |
14301 | |
14302 | fi | |
14303 | ||
8284b0c5 | 14304 | |
90dd450c | 14305 | if test "$no_x" = "yes"; then |
a0b9e27f | 14306 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
90dd450c VZ |
14307 | fi |
14308 | ||
14309 | GUI_TK_LIBRARY="$X_LIBS" | |
14310 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14311 | AFMINSTALL=afminstall | |
14312 | COMPILED_X_PROGRAM=0 | |
14313 | ||
21d1c967 | 14314 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 14315 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 |
8d90d2f2 | 14316 | echo "configure:14317: checking for MicroWindows/NanoX distribution" >&5 |
21d1c967 | 14317 | if test "x$MICROWIN" = x ; then |
a0b9e27f MB |
14318 | echo "$ac_t""not found" 1>&6 |
14319 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
90dd450c | 14320 | else |
a0b9e27f MB |
14321 | echo "$ac_t""$MICROWIN" 1>&6 |
14322 | cat >> confdefs.h <<\EOF | |
21d1c967 | 14323 | #define wxUSE_NANOX 1 |
a0b9e27f | 14324 | EOF |
21d1c967 | 14325 | |
90dd450c VZ |
14326 | fi |
14327 | fi | |
14328 | ||
14329 | xpm_link= | |
a0b9e27f | 14330 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
8d90d2f2 | 14331 | echo "configure:14332: checking for Xpm library" >&5 |
a0b9e27f | 14332 | |
90dd450c | 14333 | ac_find_libraries= |
2b5f62a0 | 14334 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
14335 | do |
14336 | for ac_extension in a so sl dylib; do | |
14337 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14338 | ac_find_libraries=$ac_dir | |
14339 | break 2 | |
14340 | fi | |
14341 | done | |
14342 | done | |
14343 | ||
14344 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 14345 | |
90dd450c VZ |
14346 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14347 | result=$? | |
14348 | if test $result = 0; then | |
14349 | ac_path_to_link="" | |
14350 | else | |
14351 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 14352 | fi |
90dd450c | 14353 | |
21d1c967 GD |
14354 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
14355 | xpm_link=" -lXpm" | |
a0b9e27f | 14356 | cat >> confdefs.h <<\EOF |
21d1c967 | 14357 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14358 | EOF |
90dd450c | 14359 | |
a0b9e27f | 14360 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14361 | else |
a0b9e27f | 14362 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 14363 | #line 14364 "configure" |
21d1c967 | 14364 | #include "confdefs.h" |
90dd450c | 14365 | |
21d1c967 | 14366 | #include <X11/xpm.h> |
a0b9e27f MB |
14367 | |
14368 | int main() { | |
6f72b082 | 14369 | |
21d1c967 GD |
14370 | int version; |
14371 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
14372 | |
14373 | ; return 0; } | |
14374 | EOF | |
8d90d2f2 | 14375 | if { (eval echo configure:14376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
14376 | rm -rf conftest* |
14377 | ||
21d1c967 | 14378 | xpm_link=" -lXpm" |
a0b9e27f | 14379 | cat >> confdefs.h <<\EOF |
21d1c967 | 14380 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14381 | EOF |
90dd450c | 14382 | |
a0b9e27f | 14383 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 14384 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 14385 | |
21d1c967 | 14386 | else |
a0b9e27f MB |
14387 | echo "configure: failed program was:" >&5 |
14388 | cat conftest.$ac_ext >&5 | |
14389 | rm -rf conftest* | |
14390 | ||
14391 | echo "$ac_t""no" 1>&6 | |
14392 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14393 | ||
14394 | ||
6f72b082 | 14395 | fi |
a0b9e27f | 14396 | rm -f conftest* |
21d1c967 | 14397 | fi |
90dd450c | 14398 | |
2b5f62a0 VZ |
14399 | if test "$wxUSE_UNICODE" = "yes"; then |
14400 | ||
14401 | succeeded=no | |
90dd450c | 14402 | |
2b5f62a0 VZ |
14403 | if test -z "$PKG_CONFIG"; then |
14404 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14405 | set dummy pkg-config; ac_word=$2 | |
14406 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8d90d2f2 | 14407 | echo "configure:14408: checking for $ac_word" >&5 |
2b5f62a0 | 14408 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
a0b9e27f MB |
14409 | echo $ac_n "(cached) $ac_c" 1>&6 |
14410 | else | |
2b5f62a0 VZ |
14411 | case "$PKG_CONFIG" in |
14412 | /*) | |
14413 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14414 | ;; | |
14415 | ?:/*) | |
14416 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14417 | ;; | |
14418 | *) | |
14419 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14420 | ac_dummy="$PATH" | |
14421 | for ac_dir in $ac_dummy; do | |
14422 | test -z "$ac_dir" && ac_dir=. | |
14423 | if test -f $ac_dir/$ac_word; then | |
14424 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14425 | break | |
14426 | fi | |
14427 | done | |
14428 | IFS="$ac_save_ifs" | |
14429 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14430 | ;; | |
14431 | esac | |
14432 | fi | |
14433 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14434 | if test -n "$PKG_CONFIG"; then | |
14435 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14436 | else | |
14437 | echo "$ac_t""no" 1>&6 | |
14438 | fi | |
14439 | ||
14440 | fi | |
14441 | ||
14442 | if test "$PKG_CONFIG" = "no" ; then | |
14443 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14444 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14445 | echo "*** to the full path to pkg-config." | |
14446 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14447 | else | |
14448 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14449 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14450 | echo $ac_n "checking for pangox""... $ac_c" 1>&6 | |
8d90d2f2 | 14451 | echo "configure:14452: checking for pangox" >&5 |
2b5f62a0 VZ |
14452 | |
14453 | if $PKG_CONFIG --exists "pangox" ; then | |
14454 | echo "$ac_t""yes" 1>&6 | |
14455 | succeeded=yes | |
14456 | ||
14457 | echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6 | |
8d90d2f2 | 14458 | echo "configure:14459: checking PANGOX_CFLAGS" >&5 |
2b5f62a0 VZ |
14459 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
14460 | echo "$ac_t""$PANGOX_CFLAGS" 1>&6 | |
14461 | ||
14462 | echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6 | |
8d90d2f2 | 14463 | echo "configure:14464: checking PANGOX_LIBS" >&5 |
2b5f62a0 VZ |
14464 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
14465 | echo "$ac_t""$PANGOX_LIBS" 1>&6 | |
14466 | else | |
14467 | PANGOX_CFLAGS="" | |
14468 | PANGOX_LIBS="" | |
14469 | ## If we have a custom action on failure, don't print errors, but | |
14470 | ## do set a variable so people can do so. | |
14471 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
14472 | ||
14473 | fi | |
14474 | ||
14475 | ||
14476 | ||
14477 | else | |
14478 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14479 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14480 | fi | |
14481 | fi | |
14482 | ||
14483 | if test $succeeded = yes; then | |
14484 | ||
14485 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
14486 | LIBS="$LIBS $PANGOX_LIBS" | |
14487 | ||
14488 | else | |
14489 | ||
14490 | { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; } | |
14491 | ||
14492 | ||
14493 | fi | |
14494 | ||
14495 | ||
14496 | succeeded=no | |
14497 | ||
14498 | if test -z "$PKG_CONFIG"; then | |
14499 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14500 | set dummy pkg-config; ac_word=$2 | |
14501 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8d90d2f2 | 14502 | echo "configure:14503: checking for $ac_word" >&5 |
2b5f62a0 VZ |
14503 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
14504 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14505 | else | |
14506 | case "$PKG_CONFIG" in | |
14507 | /*) | |
14508 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14509 | ;; | |
14510 | ?:/*) | |
14511 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14512 | ;; | |
14513 | *) | |
14514 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14515 | ac_dummy="$PATH" | |
14516 | for ac_dir in $ac_dummy; do | |
14517 | test -z "$ac_dir" && ac_dir=. | |
14518 | if test -f $ac_dir/$ac_word; then | |
14519 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14520 | break | |
14521 | fi | |
14522 | done | |
14523 | IFS="$ac_save_ifs" | |
14524 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14525 | ;; | |
14526 | esac | |
14527 | fi | |
14528 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14529 | if test -n "$PKG_CONFIG"; then | |
14530 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14531 | else | |
14532 | echo "$ac_t""no" 1>&6 | |
14533 | fi | |
14534 | ||
14535 | fi | |
14536 | ||
14537 | if test "$PKG_CONFIG" = "no" ; then | |
14538 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14539 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14540 | echo "*** to the full path to pkg-config." | |
14541 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14542 | else | |
14543 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14544 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14545 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 | |
8d90d2f2 | 14546 | echo "configure:14547: checking for pangoft2" >&5 |
2b5f62a0 VZ |
14547 | |
14548 | if $PKG_CONFIG --exists "pangoft2" ; then | |
14549 | echo "$ac_t""yes" 1>&6 | |
14550 | succeeded=yes | |
14551 | ||
14552 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 | |
8d90d2f2 | 14553 | echo "configure:14554: checking PANGOFT2_CFLAGS" >&5 |
2b5f62a0 VZ |
14554 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
14555 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 | |
14556 | ||
14557 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 | |
8d90d2f2 | 14558 | echo "configure:14559: checking PANGOFT2_LIBS" >&5 |
2b5f62a0 VZ |
14559 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
14560 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 | |
14561 | else | |
14562 | PANGOFT2_CFLAGS="" | |
14563 | PANGOFT2_LIBS="" | |
14564 | ## If we have a custom action on failure, don't print errors, but | |
14565 | ## do set a variable so people can do so. | |
14566 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
14567 | ||
14568 | fi | |
14569 | ||
14570 | ||
14571 | ||
14572 | else | |
14573 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14574 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14575 | fi | |
14576 | fi | |
14577 | ||
14578 | if test $succeeded = yes; then | |
14579 | ||
14580 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
14581 | LIBS="$LIBS $PANGOFT2_LIBS" | |
14582 | ||
14583 | else | |
14584 | ||
14585 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
14586 | wxUSE_PRINTING_ARCHITECTURE="no" | |
14587 | ||
14588 | ||
14589 | fi | |
14590 | ||
14591 | ||
14592 | succeeded=no | |
14593 | ||
14594 | if test -z "$PKG_CONFIG"; then | |
14595 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14596 | set dummy pkg-config; ac_word=$2 | |
14597 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8d90d2f2 | 14598 | echo "configure:14599: checking for $ac_word" >&5 |
2b5f62a0 VZ |
14599 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
14600 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14601 | else | |
14602 | case "$PKG_CONFIG" in | |
14603 | /*) | |
14604 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14605 | ;; | |
14606 | ?:/*) | |
14607 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14608 | ;; | |
14609 | *) | |
14610 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14611 | ac_dummy="$PATH" | |
14612 | for ac_dir in $ac_dummy; do | |
14613 | test -z "$ac_dir" && ac_dir=. | |
14614 | if test -f $ac_dir/$ac_word; then | |
14615 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14616 | break | |
14617 | fi | |
14618 | done | |
14619 | IFS="$ac_save_ifs" | |
14620 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14621 | ;; | |
14622 | esac | |
14623 | fi | |
14624 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14625 | if test -n "$PKG_CONFIG"; then | |
14626 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14627 | else | |
14628 | echo "$ac_t""no" 1>&6 | |
14629 | fi | |
14630 | ||
14631 | fi | |
14632 | ||
14633 | if test "$PKG_CONFIG" = "no" ; then | |
14634 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14635 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14636 | echo "*** to the full path to pkg-config." | |
14637 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14638 | else | |
14639 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14640 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14641 | echo $ac_n "checking for pangoxft""... $ac_c" 1>&6 | |
8d90d2f2 | 14642 | echo "configure:14643: checking for pangoxft" >&5 |
2b5f62a0 VZ |
14643 | |
14644 | if $PKG_CONFIG --exists "pangoxft" ; then | |
14645 | echo "$ac_t""yes" 1>&6 | |
14646 | succeeded=yes | |
14647 | ||
14648 | echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6 | |
8d90d2f2 | 14649 | echo "configure:14650: checking PANGOXFT_CFLAGS" >&5 |
2b5f62a0 VZ |
14650 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
14651 | echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6 | |
14652 | ||
14653 | echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6 | |
8d90d2f2 | 14654 | echo "configure:14655: checking PANGOXFT_LIBS" >&5 |
2b5f62a0 VZ |
14655 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
14656 | echo "$ac_t""$PANGOXFT_LIBS" 1>&6 | |
14657 | else | |
14658 | PANGOXFT_CFLAGS="" | |
14659 | PANGOXFT_LIBS="" | |
14660 | ## If we have a custom action on failure, don't print errors, but | |
14661 | ## do set a variable so people can do so. | |
14662 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
14663 | ||
14664 | fi | |
14665 | ||
14666 | ||
14667 | ||
14668 | else | |
14669 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14670 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14671 | fi | |
14672 | fi | |
14673 | ||
14674 | if test $succeeded = yes; then | |
14675 | ||
14676 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
14677 | LIBS="$LIBS $PANGOXFT_LIBS" | |
14678 | ||
14679 | else | |
14680 | ||
14681 | echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2 | |
14682 | ||
14683 | ||
14684 | fi | |
14685 | ||
14686 | fi | |
14687 | ||
14688 | wxUSE_UNIVERSAL="yes" | |
14689 | ||
14690 | if test "$wxUSE_NANOX" = "yes"; then | |
14691 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
14692 | 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" | |
14693 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
14694 | else | |
14695 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
14696 | fi | |
14697 | ||
14698 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
14699 | TOOLKIT=X11 | |
14700 | GUIDIST=X11_DIST | |
14701 | fi | |
14702 | ||
21d1c967 GD |
14703 | if test "$wxUSE_MOTIF" = 1; then |
14704 | if test "$no_x" = yes; then | |
14705 | # Not all programs may use this symbol, but it does not hurt to define it. | |
a0b9e27f | 14706 | cat >> confdefs.h <<\EOF |
21d1c967 | 14707 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 14708 | EOF |
21d1c967 GD |
14709 | |
14710 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
14711 | else | |
14712 | if test -n "$x_includes"; then | |
14713 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
14714 | fi |
14715 | ||
21d1c967 GD |
14716 | # It would also be nice to do this for all -L options, not just this one. |
14717 | if test -n "$x_libraries"; then | |
14718 | X_LIBS="$X_LIBS -L$x_libraries" | |
14719 | # For Solaris; some versions of Sun CC require a space after -R and | |
14720 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 14721 | case "`(uname -sr) 2>/dev/null`" in |
21d1c967 | 14722 | "SunOS 5"*) |
a0b9e27f | 14723 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
8d90d2f2 | 14724 | echo "configure:14725: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
14725 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
14726 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 14727 | #line 14728 "configure" |
21d1c967 GD |
14728 | #include "confdefs.h" |
14729 | ||
a0b9e27f | 14730 | int main() { |
21d1c967 | 14731 | |
a0b9e27f MB |
14732 | ; return 0; } |
14733 | EOF | |
8d90d2f2 | 14734 | if { (eval echo configure:14735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14735 | rm -rf conftest* |
21d1c967 | 14736 | ac_R_nospace=yes |
698dcdb6 | 14737 | else |
a0b9e27f MB |
14738 | echo "configure: failed program was:" >&5 |
14739 | cat conftest.$ac_ext >&5 | |
14740 | rm -rf conftest* | |
14741 | ac_R_nospace=no | |
10f2d63a | 14742 | fi |
a0b9e27f | 14743 | rm -f conftest* |
21d1c967 | 14744 | if test $ac_R_nospace = yes; then |
a0b9e27f | 14745 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
14746 | X_LIBS="$X_LIBS -R$x_libraries" |
14747 | else | |
14748 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 14749 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 14750 | #line 14751 "configure" |
21d1c967 | 14751 | #include "confdefs.h" |
10f2d63a | 14752 | |
a0b9e27f | 14753 | int main() { |
f0c87536 | 14754 | |
a0b9e27f MB |
14755 | ; return 0; } |
14756 | EOF | |
8d90d2f2 | 14757 | if { (eval echo configure:14758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14758 | rm -rf conftest* |
21d1c967 GD |
14759 | ac_R_space=yes |
14760 | else | |
a0b9e27f MB |
14761 | echo "configure: failed program was:" >&5 |
14762 | cat conftest.$ac_ext >&5 | |
14763 | rm -rf conftest* | |
14764 | ac_R_space=no | |
21d1c967 | 14765 | fi |
a0b9e27f | 14766 | rm -f conftest* |
21d1c967 | 14767 | if test $ac_R_space = yes; then |
a0b9e27f | 14768 | echo "$ac_t""yes" 1>&6 |
21d1c967 GD |
14769 | X_LIBS="$X_LIBS -R $x_libraries" |
14770 | else | |
a0b9e27f | 14771 | echo "$ac_t""neither works" 1>&6 |
21d1c967 GD |
14772 | fi |
14773 | fi | |
a0b9e27f | 14774 | LIBS="$ac_xsave_LIBS" |
21d1c967 GD |
14775 | esac |
14776 | fi | |
90dd450c | 14777 | |
21d1c967 GD |
14778 | # Check for system-dependent libraries X programs must link with. |
14779 | # Do this before checking for the system-independent R6 libraries | |
14780 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
14781 | ||
14782 | if test "$ISC" = yes; then | |
14783 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
14784 | else | |
a0b9e27f MB |
14785 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
14786 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
21d1c967 | 14787 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 14788 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
8d90d2f2 | 14789 | echo "configure:14790: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
14790 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14791 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14792 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 14793 | else |
a0b9e27f | 14794 | ac_save_LIBS="$LIBS" |
247f5006 | 14795 | LIBS="-ldnet $LIBS" |
a0b9e27f | 14796 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 14797 | #line 14798 "configure" |
247f5006 | 14798 | #include "confdefs.h" |
247f5006 | 14799 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 14800 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14801 | builtin and then its argument prototype would still apply. */ |
14802 | char dnet_ntoa(); | |
14803 | ||
14804 | int main() { | |
14805 | dnet_ntoa() | |
14806 | ; return 0; } | |
14807 | EOF | |
8d90d2f2 | 14808 | if { (eval echo configure:14809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14809 | rm -rf conftest* |
14810 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14811 | else | |
14812 | echo "configure: failed program was:" >&5 | |
14813 | cat conftest.$ac_ext >&5 | |
14814 | rm -rf conftest* | |
14815 | eval "ac_cv_lib_$ac_lib_var=no" | |
14816 | fi | |
14817 | rm -f conftest* | |
14818 | LIBS="$ac_save_LIBS" | |
14819 | ||
14820 | fi | |
14821 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14822 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14823 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
14824 | else |
14825 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 | 14826 | fi |
0fb0dd83 | 14827 | |
21d1c967 | 14828 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 14829 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
8d90d2f2 | 14830 | echo "configure:14831: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
14831 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14832 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14833 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14834 | else |
a0b9e27f | 14835 | ac_save_LIBS="$LIBS" |
21d1c967 | 14836 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 14837 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 14838 | #line 14839 "configure" |
21d1c967 GD |
14839 | #include "confdefs.h" |
14840 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14841 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14842 | builtin and then its argument prototype would still apply. */ |
14843 | char dnet_ntoa(); | |
14844 | ||
14845 | int main() { | |
14846 | dnet_ntoa() | |
14847 | ; return 0; } | |
14848 | EOF | |
8d90d2f2 | 14849 | if { (eval echo configure:14850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14850 | rm -rf conftest* |
14851 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14852 | else | |
14853 | echo "configure: failed program was:" >&5 | |
14854 | cat conftest.$ac_ext >&5 | |
14855 | rm -rf conftest* | |
14856 | eval "ac_cv_lib_$ac_lib_var=no" | |
14857 | fi | |
14858 | rm -f conftest* | |
14859 | LIBS="$ac_save_LIBS" | |
14860 | ||
14861 | fi | |
14862 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14863 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14864 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
14865 | else |
14866 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
14867 | fi |
14868 | ||
21d1c967 | 14869 | fi |
90dd450c | 14870 | |
21d1c967 GD |
14871 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
14872 | # to get the SysV transport functions. | |
a0b9e27f | 14873 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
14874 | # needs -lnsl. |
14875 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
14876 | # on Irix 5.2, according to dickey@clark.net. |
14877 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
8d90d2f2 | 14878 | echo "configure:14879: checking for gethostbyname" >&5 |
a0b9e27f MB |
14879 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
14880 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14881 | else | |
14882 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 14883 | #line 14884 "configure" |
21d1c967 GD |
14884 | #include "confdefs.h" |
14885 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14886 | which can conflict with char gethostbyname(); below. */ |
21d1c967 GD |
14887 | #include <assert.h> |
14888 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14889 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14890 | builtin and then its argument prototype would still apply. */ |
14891 | char gethostbyname(); | |
14892 | ||
14893 | int main() { | |
14894 | ||
21d1c967 GD |
14895 | /* The GNU C library defines this for functions which it implements |
14896 | to always fail with ENOSYS. Some functions are actually named | |
14897 | something starting with __ and the normal name is an alias. */ | |
14898 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
14899 | choke me | |
14900 | #else | |
a0b9e27f | 14901 | gethostbyname(); |
21d1c967 | 14902 | #endif |
90dd450c | 14903 | |
a0b9e27f MB |
14904 | ; return 0; } |
14905 | EOF | |
8d90d2f2 | 14906 | if { (eval echo configure:14907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14907 | rm -rf conftest* |
14908 | eval "ac_cv_func_gethostbyname=yes" | |
14909 | else | |
14910 | echo "configure: failed program was:" >&5 | |
14911 | cat conftest.$ac_ext >&5 | |
14912 | rm -rf conftest* | |
14913 | eval "ac_cv_func_gethostbyname=no" | |
14914 | fi | |
14915 | rm -f conftest* | |
14916 | fi | |
14917 | ||
14918 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
14919 | echo "$ac_t""yes" 1>&6 | |
14920 | : | |
14921 | else | |
14922 | echo "$ac_t""no" 1>&6 | |
14923 | fi | |
90dd450c | 14924 | |
21d1c967 | 14925 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 14926 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
8d90d2f2 | 14927 | echo "configure:14928: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
14928 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
14929 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14930 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14931 | else |
a0b9e27f | 14932 | ac_save_LIBS="$LIBS" |
21d1c967 | 14933 | LIBS="-lnsl $LIBS" |
a0b9e27f | 14934 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 14935 | #line 14936 "configure" |
21d1c967 GD |
14936 | #include "confdefs.h" |
14937 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14938 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14939 | builtin and then its argument prototype would still apply. */ |
14940 | char gethostbyname(); | |
5c6fa7d2 | 14941 | |
a0b9e27f MB |
14942 | int main() { |
14943 | gethostbyname() | |
14944 | ; return 0; } | |
14945 | EOF | |
8d90d2f2 | 14946 | if { (eval echo configure:14947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14947 | rm -rf conftest* |
14948 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 14949 | else |
a0b9e27f MB |
14950 | echo "configure: failed program was:" >&5 |
14951 | cat conftest.$ac_ext >&5 | |
14952 | rm -rf conftest* | |
14953 | eval "ac_cv_lib_$ac_lib_var=no" | |
14954 | fi | |
14955 | rm -f conftest* | |
14956 | LIBS="$ac_save_LIBS" | |
247f5006 | 14957 | |
a0b9e27f MB |
14958 | fi |
14959 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14960 | echo "$ac_t""yes" 1>&6 | |
14961 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
14962 | else | |
14963 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 14964 | fi |
90dd450c | 14965 | |
90dd450c VZ |
14966 | fi |
14967 | ||
21d1c967 GD |
14968 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
14969 | # socket/setsockopt and other routines are undefined under SCO ODT | |
14970 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
14971 | # on later versions), says simon@lia.di.epfl.ch: it contains |
14972 | # gethostby* variants that don't use the nameserver (or something). | |
14973 | # -lsocket must be given before -lnsl if both are needed. | |
14974 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
14975 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
8d90d2f2 | 14976 | echo "configure:14977: checking for connect" >&5 |
a0b9e27f MB |
14977 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
14978 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14979 | else | |
14980 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 14981 | #line 14982 "configure" |
21d1c967 GD |
14982 | #include "confdefs.h" |
14983 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14984 | which can conflict with char connect(); below. */ |
21d1c967 GD |
14985 | #include <assert.h> |
14986 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14987 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14988 | builtin and then its argument prototype would still apply. */ |
14989 | char connect(); | |
14990 | ||
14991 | int main() { | |
14992 | ||
21d1c967 GD |
14993 | /* The GNU C library defines this for functions which it implements |
14994 | to always fail with ENOSYS. Some functions are actually named | |
14995 | something starting with __ and the normal name is an alias. */ | |
14996 | #if defined (__stub_connect) || defined (__stub___connect) | |
14997 | choke me | |
14998 | #else | |
a0b9e27f | 14999 | connect(); |
21d1c967 | 15000 | #endif |
90dd450c | 15001 | |
a0b9e27f MB |
15002 | ; return 0; } |
15003 | EOF | |
8d90d2f2 | 15004 | if { (eval echo configure:15005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15005 | rm -rf conftest* |
15006 | eval "ac_cv_func_connect=yes" | |
15007 | else | |
15008 | echo "configure: failed program was:" >&5 | |
15009 | cat conftest.$ac_ext >&5 | |
15010 | rm -rf conftest* | |
15011 | eval "ac_cv_func_connect=no" | |
15012 | fi | |
15013 | rm -f conftest* | |
15014 | fi | |
15015 | ||
15016 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
15017 | echo "$ac_t""yes" 1>&6 | |
15018 | : | |
15019 | else | |
15020 | echo "$ac_t""no" 1>&6 | |
15021 | fi | |
1f8ae82f | 15022 | |
21d1c967 | 15023 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 15024 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
8d90d2f2 | 15025 | echo "configure:15026: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
15026 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
15027 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15028 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0fbb762e | 15029 | else |
a0b9e27f | 15030 | ac_save_LIBS="$LIBS" |
21d1c967 | 15031 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 15032 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 15033 | #line 15034 "configure" |
0fbb762e | 15034 | #include "confdefs.h" |
21d1c967 GD |
15035 | /* Override any gcc2 internal prototype to avoid an error. */ |
15036 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15037 | builtin and then its argument prototype would still apply. */ |
15038 | char connect(); | |
15039 | ||
15040 | int main() { | |
15041 | connect() | |
15042 | ; return 0; } | |
15043 | EOF | |
8d90d2f2 | 15044 | if { (eval echo configure:15045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15045 | rm -rf conftest* |
15046 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15047 | else | |
15048 | echo "configure: failed program was:" >&5 | |
15049 | cat conftest.$ac_ext >&5 | |
15050 | rm -rf conftest* | |
15051 | eval "ac_cv_lib_$ac_lib_var=no" | |
15052 | fi | |
15053 | rm -f conftest* | |
15054 | LIBS="$ac_save_LIBS" | |
15055 | ||
15056 | fi | |
15057 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15058 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15059 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
15060 | else |
15061 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15062 | fi |
90dd450c | 15063 | |
21d1c967 | 15064 | fi |
90dd450c | 15065 | |
a0b9e27f MB |
15066 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
15067 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
8d90d2f2 | 15068 | echo "configure:15069: checking for remove" >&5 |
a0b9e27f MB |
15069 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
15070 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15071 | else |
a0b9e27f | 15072 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 15073 | #line 15074 "configure" |
21d1c967 GD |
15074 | #include "confdefs.h" |
15075 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15076 | which can conflict with char remove(); below. */ |
21d1c967 GD |
15077 | #include <assert.h> |
15078 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15079 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15080 | builtin and then its argument prototype would still apply. */ |
15081 | char remove(); | |
15082 | ||
15083 | int main() { | |
15084 | ||
21d1c967 GD |
15085 | /* The GNU C library defines this for functions which it implements |
15086 | to always fail with ENOSYS. Some functions are actually named | |
15087 | something starting with __ and the normal name is an alias. */ | |
15088 | #if defined (__stub_remove) || defined (__stub___remove) | |
15089 | choke me | |
15090 | #else | |
a0b9e27f | 15091 | remove(); |
21d1c967 | 15092 | #endif |
90dd450c | 15093 | |
a0b9e27f MB |
15094 | ; return 0; } |
15095 | EOF | |
8d90d2f2 | 15096 | if { (eval echo configure:15097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15097 | rm -rf conftest* |
15098 | eval "ac_cv_func_remove=yes" | |
15099 | else | |
15100 | echo "configure: failed program was:" >&5 | |
15101 | cat conftest.$ac_ext >&5 | |
15102 | rm -rf conftest* | |
15103 | eval "ac_cv_func_remove=no" | |
15104 | fi | |
15105 | rm -f conftest* | |
15106 | fi | |
15107 | ||
15108 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
15109 | echo "$ac_t""yes" 1>&6 | |
15110 | : | |
15111 | else | |
15112 | echo "$ac_t""no" 1>&6 | |
15113 | fi | |
90dd450c | 15114 | |
21d1c967 | 15115 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 15116 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
8d90d2f2 | 15117 | echo "configure:15118: checking for remove in -lposix" >&5 |
a0b9e27f MB |
15118 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
15119 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15120 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15121 | else |
a0b9e27f | 15122 | ac_save_LIBS="$LIBS" |
21d1c967 | 15123 | LIBS="-lposix $LIBS" |
a0b9e27f | 15124 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 15125 | #line 15126 "configure" |
21d1c967 GD |
15126 | #include "confdefs.h" |
15127 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15128 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15129 | builtin and then its argument prototype would still apply. */ |
15130 | char remove(); | |
15131 | ||
15132 | int main() { | |
15133 | remove() | |
15134 | ; return 0; } | |
15135 | EOF | |
8d90d2f2 | 15136 | if { (eval echo configure:15137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15137 | rm -rf conftest* |
15138 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15139 | else | |
15140 | echo "configure: failed program was:" >&5 | |
15141 | cat conftest.$ac_ext >&5 | |
15142 | rm -rf conftest* | |
15143 | eval "ac_cv_lib_$ac_lib_var=no" | |
15144 | fi | |
15145 | rm -f conftest* | |
15146 | LIBS="$ac_save_LIBS" | |
15147 | ||
15148 | fi | |
15149 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15150 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15151 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
15152 | else |
15153 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15154 | fi |
19bc6aad | 15155 | |
90dd450c | 15156 | fi |
19bc6aad | 15157 | |
21d1c967 | 15158 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 15159 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
8d90d2f2 | 15160 | echo "configure:15161: checking for shmat" >&5 |
a0b9e27f MB |
15161 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
15162 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15163 | else |
a0b9e27f | 15164 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 15165 | #line 15166 "configure" |
21d1c967 GD |
15166 | #include "confdefs.h" |
15167 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15168 | which can conflict with char shmat(); below. */ |
21d1c967 GD |
15169 | #include <assert.h> |
15170 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15171 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15172 | builtin and then its argument prototype would still apply. */ |
15173 | char shmat(); | |
15174 | ||
15175 | int main() { | |
15176 | ||
21d1c967 GD |
15177 | /* The GNU C library defines this for functions which it implements |
15178 | to always fail with ENOSYS. Some functions are actually named | |
15179 | something starting with __ and the normal name is an alias. */ | |
15180 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
15181 | choke me | |
15182 | #else | |
a0b9e27f | 15183 | shmat(); |
21d1c967 | 15184 | #endif |
90dd450c | 15185 | |
a0b9e27f MB |
15186 | ; return 0; } |
15187 | EOF | |
8d90d2f2 | 15188 | if { (eval echo configure:15189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15189 | rm -rf conftest* |
15190 | eval "ac_cv_func_shmat=yes" | |
15191 | else | |
15192 | echo "configure: failed program was:" >&5 | |
15193 | cat conftest.$ac_ext >&5 | |
15194 | rm -rf conftest* | |
15195 | eval "ac_cv_func_shmat=no" | |
15196 | fi | |
15197 | rm -f conftest* | |
15198 | fi | |
15199 | ||
15200 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
15201 | echo "$ac_t""yes" 1>&6 | |
15202 | : | |
15203 | else | |
15204 | echo "$ac_t""no" 1>&6 | |
15205 | fi | |
19bc6aad | 15206 | |
21d1c967 | 15207 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 15208 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
8d90d2f2 | 15209 | echo "configure:15210: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
15210 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
15211 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15212 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 | 15213 | else |
a0b9e27f | 15214 | ac_save_LIBS="$LIBS" |
5c6fa7d2 | 15215 | LIBS="-lipc $LIBS" |
a0b9e27f | 15216 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 15217 | #line 15218 "configure" |
5c6fa7d2 | 15218 | #include "confdefs.h" |
5c6fa7d2 | 15219 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 15220 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
15221 | builtin and then its argument prototype would still apply. */ |
15222 | char shmat(); | |
15223 | ||
15224 | int main() { | |
15225 | shmat() | |
15226 | ; return 0; } | |
15227 | EOF | |
8d90d2f2 | 15228 | if { (eval echo configure:15229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15229 | rm -rf conftest* |
15230 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15231 | else | |
15232 | echo "configure: failed program was:" >&5 | |
15233 | cat conftest.$ac_ext >&5 | |
15234 | rm -rf conftest* | |
15235 | eval "ac_cv_lib_$ac_lib_var=no" | |
15236 | fi | |
15237 | rm -f conftest* | |
15238 | LIBS="$ac_save_LIBS" | |
15239 | ||
15240 | fi | |
15241 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15242 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15243 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
15244 | else |
15245 | echo "$ac_t""no" 1>&6 | |
9f8148b1 | 15246 | fi |
90dd450c | 15247 | |
90dd450c | 15248 | fi |
21d1c967 | 15249 | fi |
10f2d63a | 15250 | |
21d1c967 | 15251 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 15252 | ac_save_LDFLAGS="$LDFLAGS" |
21d1c967 GD |
15253 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
15254 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
15255 | # check for ICE first), but we must link in the order -lSM -lICE or | |
15256 | # we get undefined symbols. So assume we have SM if we have ICE. | |
15257 | # These have to be linked with before -lX11, unlike the other | |
15258 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
15259 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
15260 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
8d90d2f2 | 15261 | echo "configure:15262: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
15262 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
15263 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15264 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15265 | else | |
15266 | ac_save_LIBS="$LIBS" | |
f09359cf | 15267 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 15268 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 15269 | #line 15270 "configure" |
29fd3c0c | 15270 | #include "confdefs.h" |
21d1c967 GD |
15271 | /* Override any gcc2 internal prototype to avoid an error. */ |
15272 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15273 | builtin and then its argument prototype would still apply. */ |
15274 | char IceConnectionNumber(); | |
15275 | ||
15276 | int main() { | |
15277 | IceConnectionNumber() | |
15278 | ; return 0; } | |
15279 | EOF | |
8d90d2f2 | 15280 | if { (eval echo configure:15281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15281 | rm -rf conftest* |
15282 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15283 | else | |
15284 | echo "configure: failed program was:" >&5 | |
15285 | cat conftest.$ac_ext >&5 | |
15286 | rm -rf conftest* | |
15287 | eval "ac_cv_lib_$ac_lib_var=no" | |
15288 | fi | |
15289 | rm -f conftest* | |
15290 | LIBS="$ac_save_LIBS" | |
15291 | ||
15292 | fi | |
15293 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15294 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15295 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
15296 | else |
15297 | echo "$ac_t""no" 1>&6 | |
29fd3c0c | 15298 | fi |
21d1c967 | 15299 | |
a0b9e27f | 15300 | LDFLAGS="$ac_save_LDFLAGS" |
29fd3c0c | 15301 | |
10f2d63a VZ |
15302 | fi |
15303 | ||
8284b0c5 | 15304 | |
21d1c967 | 15305 | if test "$no_x" = "yes"; then |
a0b9e27f | 15306 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
21d1c967 GD |
15307 | fi |
15308 | ||
2b5f62a0 VZ |
15309 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
15310 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
15311 | AFMINSTALL=afminstall |
15312 | COMPILED_X_PROGRAM=0 | |
15313 | ||
a0b9e27f | 15314 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
8d90d2f2 | 15315 | echo "configure:15316: checking for Motif/Lesstif headers" >&5 |
a0b9e27f | 15316 | |
21d1c967 | 15317 | ac_find_includes= |
2b5f62a0 | 15318 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
15319 | do |
15320 | if test -f "$ac_dir/Xm/Xm.h"; then | |
15321 | ac_find_includes=$ac_dir | |
15322 | break | |
15323 | fi | |
15324 | done | |
15325 | ||
15326 | if test "$ac_find_includes" != "" ; then | |
a0b9e27f MB |
15327 | echo "$ac_t""found in $ac_find_includes" 1>&6 |
15328 | ||
2b5f62a0 | 15329 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
15330 | ac_path_to_include="" |
15331 | else | |
2b5f62a0 VZ |
15332 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
15333 | result=$? | |
15334 | if test $result = 0; then | |
15335 | ac_path_to_include="" | |
15336 | else | |
15337 | ac_path_to_include=" -I$ac_find_includes" | |
15338 | fi | |
dd0e4a90 VZ |
15339 | fi |
15340 | ||
15341 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 15342 | else |
a0b9e27f | 15343 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 15344 | #line 15345 "configure" |
10f2d63a | 15345 | #include "confdefs.h" |
21d1c967 GD |
15346 | |
15347 | #include <Xm/Xm.h> | |
a0b9e27f MB |
15348 | |
15349 | int main() { | |
21d1c967 GD |
15350 | |
15351 | int version; | |
15352 | version = xmUseVersion; | |
a0b9e27f MB |
15353 | |
15354 | ; return 0; } | |
15355 | EOF | |
8d90d2f2 | 15356 | if { (eval echo configure:15357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15357 | rm -rf conftest* |
15358 | ||
15359 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 15360 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 15361 | |
10f2d63a | 15362 | else |
a0b9e27f MB |
15363 | echo "configure: failed program was:" >&5 |
15364 | cat conftest.$ac_ext >&5 | |
15365 | rm -rf conftest* | |
15366 | ||
15367 | echo "$ac_t""no" 1>&6 | |
15368 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
15369 | ||
15370 | ||
10f2d63a | 15371 | fi |
a0b9e27f | 15372 | rm -f conftest* |
21d1c967 | 15373 | fi |
10f2d63a | 15374 | |
21d1c967 | 15375 | if test "$COMPILED_X_PROGRAM" = 0; then |
a0b9e27f | 15376 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 |
8d90d2f2 | 15377 | echo "configure:15378: checking for Motif/Lesstif library" >&5 |
a0b9e27f | 15378 | |
21d1c967 | 15379 | ac_find_libraries= |
2b5f62a0 | 15380 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15381 | do |
15382 | for ac_extension in a so sl dylib; do | |
15383 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
15384 | ac_find_libraries=$ac_dir | |
15385 | break 2 | |
15386 | fi | |
15387 | done | |
15388 | done | |
15389 | ||
15390 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15391 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15392 | |
a0b9e27f | 15393 | |
21d1c967 GD |
15394 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15395 | result=$? | |
15396 | if test $result = 0; then | |
15397 | ac_path_to_link="" | |
15398 | else | |
15399 | ac_path_to_link=" -L$ac_find_libraries" | |
15400 | fi | |
15401 | ||
21d1c967 | 15402 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 15403 | else |
dd0e4a90 VZ |
15404 | save_CFLAGS=$CFLAGS |
15405 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15406 | ||
a0b9e27f | 15407 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 15408 | #line 15409 "configure" |
d836ee96 | 15409 | #include "confdefs.h" |
21d1c967 GD |
15410 | |
15411 | #include <Xm/Xm.h> | |
a0b9e27f MB |
15412 | |
15413 | int main() { | |
21d1c967 GD |
15414 | |
15415 | int version; | |
15416 | version = xmUseVersion; | |
a0b9e27f MB |
15417 | |
15418 | ; return 0; } | |
15419 | EOF | |
8d90d2f2 | 15420 | if { (eval echo configure:15421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15421 | rm -rf conftest* |
15422 | ||
15423 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 15424 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 15425 | |
d836ee96 | 15426 | else |
a0b9e27f MB |
15427 | echo "configure: failed program was:" >&5 |
15428 | cat conftest.$ac_ext >&5 | |
15429 | rm -rf conftest* | |
15430 | ||
15431 | echo "$ac_t""no" 1>&6 | |
15432 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
15433 | ||
15434 | ||
d836ee96 | 15435 | fi |
a0b9e27f | 15436 | rm -f conftest* |
dd0e4a90 VZ |
15437 | |
15438 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15439 | fi |
15440 | fi | |
15441 | ||
15442 | xpm_link= | |
a0b9e27f | 15443 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
8d90d2f2 | 15444 | echo "configure:15445: checking for Xpm library" >&5 |
a0b9e27f | 15445 | |
21d1c967 | 15446 | ac_find_libraries= |
2b5f62a0 | 15447 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15448 | do |
15449 | for ac_extension in a so sl dylib; do | |
15450 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
15451 | ac_find_libraries=$ac_dir | |
15452 | break 2 | |
15453 | fi | |
15454 | done | |
15455 | done | |
15456 | ||
15457 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15458 | |
21d1c967 GD |
15459 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15460 | result=$? | |
15461 | if test $result = 0; then | |
15462 | ac_path_to_link="" | |
15463 | else | |
15464 | ac_path_to_link=" -L$ac_find_libraries" | |
15465 | fi | |
15466 | ||
15467 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 15468 | |
21d1c967 | 15469 | xpm_link=" -lXpm" |
a0b9e27f | 15470 | cat >> confdefs.h <<\EOF |
21d1c967 | 15471 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15472 | EOF |
90dd450c | 15473 | |
a0b9e27f | 15474 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15475 | else |
dd0e4a90 VZ |
15476 | save_CFLAGS=$CFLAGS |
15477 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15478 | ||
a0b9e27f | 15479 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 15480 | #line 15481 "configure" |
d836ee96 | 15481 | #include "confdefs.h" |
21d1c967 GD |
15482 | |
15483 | #include <X11/xpm.h> | |
a0b9e27f MB |
15484 | |
15485 | int main() { | |
21d1c967 GD |
15486 | |
15487 | int version; | |
15488 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
15489 | |
15490 | ; return 0; } | |
15491 | EOF | |
8d90d2f2 | 15492 | if { (eval echo configure:15493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15493 | rm -rf conftest* |
15494 | ||
21d1c967 | 15495 | xpm_link=" -lXpm" |
a0b9e27f | 15496 | cat >> confdefs.h <<\EOF |
21d1c967 | 15497 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15498 | EOF |
21d1c967 | 15499 | |
a0b9e27f | 15500 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 15501 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 15502 | |
d836ee96 | 15503 | else |
a0b9e27f MB |
15504 | echo "configure: failed program was:" >&5 |
15505 | cat conftest.$ac_ext >&5 | |
15506 | rm -rf conftest* | |
15507 | ||
15508 | echo "$ac_t""no" 1>&6 | |
15509 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
15510 | ||
15511 | ||
d836ee96 | 15512 | fi |
a0b9e27f | 15513 | rm -f conftest* |
dd0e4a90 VZ |
15514 | |
15515 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15516 | fi |
15517 | ||
a0b9e27f | 15518 | echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6 |
8d90d2f2 | 15519 | echo "configure:15520: checking if we need -lXp and/or -lSM -lICE" >&5 |
6a30f1c8 MB |
15520 | libp_link="" |
15521 | libsm_ice_link="" | |
15522 | libs_found=0 | |
15523 | for libp in "" " -lXp"; do | |
15524 | if test "$libs_found" = "0"; then | |
15525 | for libsm_ice in " -lSM -lICE"; do | |
e26c13cf | 15526 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
15527 | save_LIBS="$LIBS" |
15528 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
15529 | save_CFLAGS=$CFLAGS |
15530 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15531 | ||
a0b9e27f | 15532 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 15533 | #line 15534 "configure" |
6a30f1c8 | 15534 | #include "confdefs.h" |
17234b26 | 15535 | |
6a30f1c8 MB |
15536 | #include <Xm/Xm.h> |
15537 | #include <Xm/List.h> | |
a0b9e27f MB |
15538 | |
15539 | int main() { | |
6a30f1c8 MB |
15540 | |
15541 | XmString string = NULL; | |
15542 | Widget w = NULL; | |
15543 | int position = 0; | |
15544 | XmListAddItem(w, string, position); | |
a0b9e27f MB |
15545 | |
15546 | ; return 0; } | |
15547 | EOF | |
8d90d2f2 | 15548 | if { (eval echo configure:15549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15549 | rm -rf conftest* |
15550 | ||
6a30f1c8 MB |
15551 | libp_link="$libp" |
15552 | libsm_ice_link="$libsm_ice" | |
a0b9e27f | 15553 | echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6 |
6a30f1c8 | 15554 | libs_found=1 |
a0b9e27f | 15555 | |
6a30f1c8 | 15556 | else |
a0b9e27f MB |
15557 | echo "configure: failed program was:" >&5 |
15558 | cat conftest.$ac_ext >&5 | |
15559 | rm -rf conftest* | |
15560 | ||
15561 | ||
6a30f1c8 | 15562 | fi |
a0b9e27f | 15563 | rm -f conftest* |
dd0e4a90 | 15564 | |
6a30f1c8 | 15565 | LIBS="$save_LIBS" |
dd0e4a90 | 15566 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
15567 | fi |
15568 | done | |
15569 | fi | |
15570 | done | |
15571 | ||
15572 | if test "$libs_found" = "0"; then | |
a0b9e27f MB |
15573 | echo "$ac_t""can't find the right libraries" 1>&6 |
15574 | { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; } | |
6a30f1c8 MB |
15575 | fi |
15576 | ||
15577 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
21d1c967 GD |
15578 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
15579 | TOOLKIT=MOTIF | |
15580 | GUIDIST=MOTIF_DIST | |
15581 | fi | |
15582 | ||
15583 | if test "$wxUSE_MAC" = 1; then | |
0c98a14e | 15584 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" |
21d1c967 | 15585 | |
0c98a14e | 15586 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
15587 | TOOLKIT=MAC |
15588 | GUIDIST=MACX_DIST | |
15589 | fi | |
15590 | ||
15591 | if test "$wxUSE_PM" = 1; then | |
15592 | TOOLKIT=PM | |
15593 | GUIDIST=GTK_DIST | |
2b5f62a0 | 15594 | echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2 |
f657dbe7 MB |
15595 | wxUSE_PROLOGIO="yes" |
15596 | wxUSE_RESOURCES="yes" | |
2b5f62a0 | 15597 | echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2 |
f657dbe7 | 15598 | wxUSE_THREADS="no" |
21d1c967 GD |
15599 | fi |
15600 | ||
15601 | if test "$TOOLKIT" = "PM" ; then | |
15602 | TOOLKIT_DIR="os2" | |
15603 | else | |
15604 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
15605 | fi | |
15606 | ||
15607 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
15608 | ||
15609 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
15610 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
15611 | ||
15612 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
15613 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
15614 | ||
15615 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
15616 | if test "$wxUSE_X11" = 1; then | |
15617 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
15618 | else | |
15619 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
15620 | fi | |
15621 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
15622 | WIDGET_SET=univ | |
15623 | else | |
15624 | ALL_OBJECTS="\$(GUIOBJS)" | |
15625 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15626 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15627 | fi | |
15628 | ||
15629 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
15630 | ||
15631 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
15632 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
15633 | fi | |
15634 | ||
15635 | if test "$wxUSE_HTML" = "yes"; then | |
15636 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
15637 | fi | |
15638 | ||
15639 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
15640 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
15641 | fi | |
15642 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
15643 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
15644 | fi | |
15645 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
15646 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
15647 | fi | |
15648 | ||
15649 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
15650 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 15651 | else |
21d1c967 GD |
15652 | USE_GUI=0 |
15653 | ||
15654 | TOOLKIT_DIR="base" | |
15655 | ||
15656 | if test "$USE_WIN32" = 1 ; then | |
15657 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
15658 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
15659 | ||
15660 | TOOLKIT="MSW" | |
15661 | else | |
15662 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
15663 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
15664 | fi | |
15665 | ||
15666 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15667 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15668 | ||
15669 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
15670 | ||
15671 | GUIDIST="BASE_DIST" | |
15672 | DISTDIR="wxBase" | |
d836ee96 VZ |
15673 | fi |
15674 | ||
8284b0c5 | 15675 | |
21d1c967 GD |
15676 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
15677 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
6232543b | 15678 | fi |
21d1c967 GD |
15679 | |
15680 | if test "$wxUSE_REGEX" = "builtin" ; then | |
15681 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 15682 | fi |
21d1c967 GD |
15683 | if test "$wxUSE_ZLIB" = "builtin" ; then |
15684 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
15685 | fi |
15686 | ||
8284b0c5 | 15687 | |
21d1c967 GD |
15688 | if test "$wxUSE_OPENGL" = "yes"; then |
15689 | if test "$wxUSE_MAC" = 1; then | |
15690 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
15691 | elif test "$wxUSE_MSW" = 1; then | |
15692 | OPENGL_LIBS="-lopengl32 -lglu32" | |
15693 | else | |
a0b9e27f MB |
15694 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
15695 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
8d90d2f2 | 15696 | echo "configure:15697: checking for GL/gl.h" >&5 |
a0b9e27f MB |
15697 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15698 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15699 | else | |
15700 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 15701 | #line 15702 "configure" |
10f2d63a | 15702 | #include "confdefs.h" |
21d1c967 | 15703 | #include <GL/gl.h> |
a0b9e27f MB |
15704 | EOF |
15705 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8d90d2f2 | 15706 | { (eval echo configure:15707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
15707 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15708 | if test -z "$ac_err"; then | |
15709 | rm -rf conftest* | |
15710 | eval "ac_cv_header_$ac_safe=yes" | |
15711 | else | |
15712 | echo "$ac_err" >&5 | |
15713 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 15714 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
15715 | rm -rf conftest* |
15716 | eval "ac_cv_header_$ac_safe=no" | |
703e0a69 | 15717 | fi |
a0b9e27f | 15718 | rm -f conftest* |
698dcdb6 | 15719 | fi |
a0b9e27f MB |
15720 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15721 | echo "$ac_t""yes" 1>&6 | |
15722 | ||
15723 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
8d90d2f2 | 15724 | echo "configure:15725: checking for -lGL" >&5 |
a0b9e27f | 15725 | |
21d1c967 | 15726 | ac_find_libraries= |
2b5f62a0 | 15727 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15728 | do |
15729 | for ac_extension in a so sl dylib; do | |
15730 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
15731 | ac_find_libraries=$ac_dir | |
15732 | break 2 | |
15733 | fi | |
15734 | done | |
15735 | done | |
15736 | ||
15737 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15738 | |
21d1c967 GD |
15739 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15740 | result=$? | |
15741 | if test $result = 0; then | |
15742 | ac_path_to_link="" | |
15743 | else | |
15744 | ac_path_to_link=" -L$ac_find_libraries" | |
15745 | fi | |
15746 | ||
15747 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
15748 | LDFLAGS_GL="$LDFLAGS" | |
15749 | else | |
15750 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15751 | fi | |
15752 | OPENGL_LIBS="-lGL -lGLU" | |
a0b9e27f | 15753 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 15754 | else |
a0b9e27f MB |
15755 | echo "$ac_t""no" 1>&6 |
15756 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
8d90d2f2 | 15757 | echo "configure:15758: checking for -lMesaGL" >&5 |
a0b9e27f | 15758 | |
21d1c967 | 15759 | ac_find_libraries= |
2b5f62a0 | 15760 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15761 | do |
15762 | for ac_extension in a so sl dylib; do | |
15763 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
15764 | ac_find_libraries=$ac_dir | |
15765 | break 2 | |
15766 | fi | |
15767 | done | |
15768 | done | |
15769 | ||
15770 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15771 | |
21d1c967 GD |
15772 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15773 | result=$? | |
15774 | if test $result = 0; then | |
15775 | ac_path_to_link="" | |
15776 | else | |
15777 | ac_path_to_link=" -L$ac_find_libraries" | |
15778 | fi | |
15779 | ||
15780 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15781 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
a0b9e27f | 15782 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 15783 | else |
a0b9e27f | 15784 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
15785 | fi |
15786 | fi | |
a0b9e27f MB |
15787 | |
15788 | else | |
15789 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 15790 | fi |
52127426 | 15791 | |
8284b0c5 | 15792 | |
21d1c967 | 15793 | if test "x$OPENGL_LIBS" = "x"; then |
a0b9e27f | 15794 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } |
21d1c967 GD |
15795 | fi |
15796 | fi | |
90dd450c | 15797 | |
21d1c967 | 15798 | if test "$wxUSE_OPENGL" = "yes"; then |
a0b9e27f | 15799 | cat >> confdefs.h <<\EOF |
21d1c967 | 15800 | #define wxUSE_OPENGL 1 |
a0b9e27f | 15801 | EOF |
21d1c967 | 15802 | |
a0b9e27f | 15803 | cat >> confdefs.h <<\EOF |
21d1c967 | 15804 | #define wxUSE_GLCANVAS 1 |
a0b9e27f | 15805 | EOF |
21d1c967 GD |
15806 | |
15807 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
15808 | fi | |
10f2d63a | 15809 | fi |
21d1c967 GD |
15810 | |
15811 | if test -z "$TOOLKIT_VPATH" ; then | |
15812 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 15813 | fi |
21d1c967 GD |
15814 | |
15815 | if test -n "$TOOLKIT" ; then | |
15816 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
15817 | fi | |
15818 | ||
15819 | lib_unicode_suffix= | |
15820 | if test "$wxUSE_UNICODE" = "yes"; then | |
15821 | lib_unicode_suffix=u | |
90dd450c | 15822 | fi |
698dcdb6 | 15823 | |
21d1c967 GD |
15824 | lib_debug_suffix= |
15825 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
15826 | lib_debug_suffix=d | |
15827 | fi | |
698dcdb6 | 15828 | |
2b5f62a0 VZ |
15829 | WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
15830 | ||
15831 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
15832 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
15833 | |
15834 | if test "$cross_compiling" = "yes"; then | |
15835 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
15836 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
15837 | fi | |
15838 | ||
15839 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
15840 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
2b5f62a0 | 15841 | WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" |
21d1c967 GD |
15842 | |
15843 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
15844 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
15845 | ||
15846 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
15847 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15848 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
15849 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15850 | ||
15851 | case "${host}" in | |
15852 | *-*-cygwin* | *-*-mingw32* ) | |
15853 | ||
a0b9e27f MB |
15854 | |
15855 | ||
17234b26 | 15856 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
15857 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
15858 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
15859 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
15860 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15861 | else | |
15862 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15863 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15864 | fi | |
15865 | ;; | |
15866 | ||
15867 | *-*-darwin* ) | |
0c98a14e | 15868 | |
05159a27 GD |
15869 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
15870 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
15871 | ||
15872 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
15873 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15874 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
15875 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15876 | ||
21d1c967 | 15877 | if test "$wxUSE_MAC" = 1; then |
f346733b GD |
15878 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" |
15879 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
21d1c967 GD |
15880 | fi |
15881 | ;; | |
15882 | esac | |
15883 | ||
15884 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
15885 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
15886 | ||
15887 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
15888 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
15889 | ||
15890 | if test "$wxUSE_OPENGL" = "yes"; then | |
15891 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
15892 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
15893 | fi | |
15894 | ||
8284b0c5 MB |
15895 | |
15896 | ||
21d1c967 GD |
15897 | if test "$wxUSE_SHARED" = "yes"; then |
15898 | case "${host}" in | |
15899 | *-pc-os2_emx | *-pc-os2-emx | \ | |
15900 | *-pc-msdosdjgpp ) | |
15901 | wxUSE_SHARED=no | |
a0b9e27f | 15902 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 |
21d1c967 GD |
15903 | ;; |
15904 | esac | |
15905 | fi | |
15906 | ||
2b5f62a0 VZ |
15907 | if test "$wxUSE_SHARED" = "yes"; then |
15908 | ||
15909 | if test "$wxUSE_OPENGL" = "yes"; then | |
15910 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
15911 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
15912 | else | |
15913 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
15914 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
15915 | fi | |
15916 | ||
15917 | if test "$GCC" = "yes"; then | |
15918 | PIC_FLAG="-fPIC" | |
15919 | fi | |
15920 | ||
15921 | ||
15922 | ||
15923 | found_versioning=no | |
15924 | ||
b4eecb7e | 15925 | |
2b5f62a0 VZ |
15926 | if test $found_versioning = no ; then |
15927 | echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6 | |
8d90d2f2 | 15928 | echo "configure:15929: checking if the linker accepts --version-script" >&5 |
2b5f62a0 VZ |
15929 | if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then |
15930 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15931 | else | |
15932 | ||
15933 | echo "VER_1 { *; };" >conftest.sym | |
15934 | echo "int main() { return 0; }" >conftest.cpp | |
15935 | ||
15936 | if { ac_try=' | |
15937 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
8d90d2f2 | 15938 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:15939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then |
2b5f62a0 VZ |
15939 | if test -s conftest.stderr ; then |
15940 | wx_cv_version_script=no | |
15941 | else | |
15942 | wx_cv_version_script=yes | |
15943 | fi | |
15944 | else | |
15945 | wx_cv_version_script=no | |
15946 | fi | |
15947 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
15948 | ||
15949 | fi | |
15950 | ||
15951 | echo "$ac_t""$wx_cv_version_script" 1>&6 | |
15952 | if test $wx_cv_version_script = yes ; then | |
15953 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script" | |
15954 | fi | |
15955 | fi | |
21d1c967 | 15956 | |
21d1c967 GD |
15957 | |
15958 | SHARED_LD="${CXX} -shared -o" | |
15959 | ||
15960 | case "${host}" in | |
15961 | *-hp-hpux* ) | |
ad2622f1 | 15962 | if test "$GCC" = "yes"; then |
85d5e282 | 15963 | SHARED_LD="${CXX} -shared ${PIC_FLAG} -o" |
21d1c967 GD |
15964 | else |
15965 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
15966 | ||
15967 | SHARED_LD="${CXX} -b -o" | |
15968 | PIC_FLAG="+Z" | |
15969 | fi | |
15970 | ||
15971 | if test "$wxUSE_OPENGL" = "yes"; then | |
15972 | WX_ALL_INSTALLED="preinstall_gl" | |
15973 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
15974 | else | |
15975 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
15976 | fi | |
15977 | ;; | |
15978 | ||
15979 | *-*-linux* ) | |
15980 | if test "$GCC" != "yes"; then | |
a0b9e27f | 15981 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 |
8d90d2f2 | 15982 | echo "configure:15983: checking for Intel compiler" >&5 |
a0b9e27f MB |
15983 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
15984 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15985 | else | |
15986 | ||
15987 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 15988 | #line 15989 "configure" |
698dcdb6 | 15989 | #include "confdefs.h" |
90dd450c | 15990 | |
a0b9e27f | 15991 | int main() { |
90dd450c | 15992 | |
21d1c967 GD |
15993 | #ifndef __INTEL_COMPILER |
15994 | #error Not icc | |
15995 | #endif | |
a0b9e27f MB |
15996 | |
15997 | ; return 0; } | |
15998 | EOF | |
8d90d2f2 | 15999 | if { (eval echo configure:16000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16000 | rm -rf conftest* |
21d1c967 | 16001 | wx_cv_prog_icc=yes |
6232543b | 16002 | else |
a0b9e27f MB |
16003 | echo "configure: failed program was:" >&5 |
16004 | cat conftest.$ac_ext >&5 | |
16005 | rm -rf conftest* | |
16006 | wx_cv_prog_icc=no | |
16007 | ||
5c6fa7d2 | 16008 | fi |
a0b9e27f MB |
16009 | rm -f conftest* |
16010 | ||
247f5006 | 16011 | fi |
a0b9e27f MB |
16012 | |
16013 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
21d1c967 GD |
16014 | if test "$wx_cv_prog_icc" = "yes"; then |
16015 | PIC_FLAG="-KPIC" | |
16016 | fi | |
16017 | fi | |
16018 | ||
16019 | if test "$wxUSE_SONAME" = "yes" ; then | |
16020 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
16021 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
16022 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
16023 | fi | |
16024 | ;; | |
16025 | ||
16026 | *-*-solaris2* ) | |
16027 | if test "$GCC" = yes ; then | |
16028 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
16029 | else | |
16030 | SHARED_LD="${CXX} -G -o" | |
16031 | PIC_FLAG="-KPIC" | |
16032 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
16033 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
16034 | fi | |
16035 | ;; | |
16036 | ||
16037 | *-*-darwin* ) | |
b2fee376 GD |
16038 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL" |
16039 | CFLAGS="$CFLAGS -fno-common" | |
16040 | CXXFLAGS="$CXXFLAGS -fno-common" | |
21d1c967 GD |
16041 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" |
16042 | PIC_FLAG="-dynamic -fPIC" | |
f346733b | 16043 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}" |
05159a27 | 16044 | SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}" |
21d1c967 GD |
16045 | ;; |
16046 | ||
16047 | *-*-aix* ) | |
2b5f62a0 VZ |
16048 | if test "$GCC" != "yes"; then |
16049 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
321d2b14 | 16050 | set dummy makeC++SharedLib; ac_word=$2 |
a0b9e27f | 16051 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8d90d2f2 | 16052 | echo "configure:16053: checking for $ac_word" >&5 |
a0b9e27f MB |
16053 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then |
16054 | echo $ac_n "(cached) $ac_c" 1>&6 | |
321d2b14 VZ |
16055 | else |
16056 | if test -n "$AIX_CXX_LD"; then | |
16057 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
16058 | else | |
a0b9e27f MB |
16059 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16060 | ac_dummy="$PATH" | |
16061 | for ac_dir in $ac_dummy; do | |
16062 | test -z "$ac_dir" && ac_dir=. | |
16063 | if test -f $ac_dir/$ac_word; then | |
16064 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
16065 | break | |
16066 | fi | |
16067 | done | |
16068 | IFS="$ac_save_ifs" | |
321d2b14 VZ |
16069 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
16070 | fi | |
16071 | fi | |
a0b9e27f | 16072 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" |
321d2b14 | 16073 | if test -n "$AIX_CXX_LD"; then |
a0b9e27f | 16074 | echo "$ac_t""$AIX_CXX_LD" 1>&6 |
321d2b14 | 16075 | else |
a0b9e27f | 16076 | echo "$ac_t""no" 1>&6 |
321d2b14 VZ |
16077 | fi |
16078 | ||
8284b0c5 | 16079 | |
2b5f62a0 VZ |
16080 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" |
16081 | fi | |
21d1c967 GD |
16082 | ;; |
16083 | ||
16084 | *-*-cygwin* | *-*-mingw32* ) | |
21d1c967 GD |
16085 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
16086 | ||
16087 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
16088 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
16089 | ||
16090 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
16091 | ||
f657dbe7 MB |
16092 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
16093 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
16094 | ||
16095 | if test "$wxUSE_OPENGL" = "yes"; then | |
16096 | LIBS="${LIBS} ${OPENGL_LIBS}" | |
21d1c967 GD |
16097 | fi |
16098 | ;; | |
16099 | ||
16100 | *-*-beos* ) | |
16101 | SHARED_LD="${LD} -shared -o" | |
16102 | ;; | |
16103 | ||
2b5f62a0 VZ |
16104 | *-*-irix* ) |
16105 | if test "$GCC" != "yes"; then | |
16106 | PIC_FLAG="-KPIC" | |
16107 | fi | |
16108 | ;; | |
16109 | ||
21d1c967 GD |
16110 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
16111 | *-*-sunos4* | \ | |
21d1c967 GD |
16112 | *-*-osf* | \ |
16113 | *-*-dgux5* | \ | |
16114 | *-*-sysv5* ) | |
16115 | ;; | |
16116 | ||
16117 | *) | |
a0b9e27f | 16118 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
21d1c967 GD |
16119 | esac |
16120 | ||
16121 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
16122 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
16123 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
16124 | fi | |
16125 | ||
16126 | WX_TARGET_LIBRARY_TYPE="so" | |
16127 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 16128 | fi |
10f2d63a | 16129 | |
21d1c967 GD |
16130 | if test "$wxUSE_SHARED" = "no"; then |
16131 | ||
16132 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
16133 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
16134 | fi | |
16135 | ||
16136 | if test "$wxUSE_MAC" = 1; then | |
16137 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
16138 | fi | |
16139 | ||
16140 | if test "$wxUSE_OPENGL" = "yes"; then | |
16141 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
16142 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
16143 | else | |
16144 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
16145 | fi | |
16146 | ||
16147 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
16148 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
16149 | ||
16150 | WX_TARGET_LIBRARY_TYPE="a" | |
16151 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
16152 | |
16153 | STATIC_FLAG="yes" | |
16154 | else | |
16155 | STATIC_FLAG="no" | |
90dd450c | 16156 | fi |
1e487827 | 16157 | |
21d1c967 GD |
16158 | if test "$wxUSE_MAC" = 1; then |
16159 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
16160 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
16161 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
16162 | # Extract the first word of "Rez", so it can be a program name with args. | |
16163 | set dummy Rez; ac_word=$2 | |
a0b9e27f | 16164 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8d90d2f2 | 16165 | echo "configure:16166: checking for $ac_word" >&5 |
a0b9e27f MB |
16166 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
16167 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b93d0d08 | 16168 | else |
21d1c967 GD |
16169 | if test -n "$RESCOMP"; then |
16170 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 16171 | else |
a0b9e27f MB |
16172 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16173 | ac_dummy="$PATH" | |
16174 | for ac_dir in $ac_dummy; do | |
16175 | test -z "$ac_dir" && ac_dir=. | |
16176 | if test -f $ac_dir/$ac_word; then | |
16177 | ac_cv_prog_RESCOMP="Rez" | |
16178 | break | |
16179 | fi | |
16180 | done | |
16181 | IFS="$ac_save_ifs" | |
21d1c967 | 16182 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 16183 | fi |
b93d0d08 | 16184 | fi |
a0b9e27f | 16185 | RESCOMP="$ac_cv_prog_RESCOMP" |
21d1c967 | 16186 | if test -n "$RESCOMP"; then |
a0b9e27f | 16187 | echo "$ac_t""$RESCOMP" 1>&6 |
90dd450c | 16188 | else |
a0b9e27f | 16189 | echo "$ac_t""no" 1>&6 |
90dd450c | 16190 | fi |
b93d0d08 | 16191 | |
21d1c967 GD |
16192 | # Extract the first word of "DeRez", so it can be a program name with args. |
16193 | set dummy DeRez; ac_word=$2 | |
a0b9e27f | 16194 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8d90d2f2 | 16195 | echo "configure:16196: checking for $ac_word" >&5 |
a0b9e27f MB |
16196 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
16197 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3a922bb4 | 16198 | else |
21d1c967 GD |
16199 | if test -n "$DEREZ"; then |
16200 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 16201 | else |
a0b9e27f MB |
16202 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16203 | ac_dummy="$PATH" | |
16204 | for ac_dir in $ac_dummy; do | |
16205 | test -z "$ac_dir" && ac_dir=. | |
16206 | if test -f $ac_dir/$ac_word; then | |
16207 | ac_cv_prog_DEREZ="DeRez" | |
16208 | break | |
16209 | fi | |
16210 | done | |
16211 | IFS="$ac_save_ifs" | |
21d1c967 | 16212 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 16213 | fi |
90dd450c | 16214 | fi |
a0b9e27f | 16215 | DEREZ="$ac_cv_prog_DEREZ" |
21d1c967 | 16216 | if test -n "$DEREZ"; then |
a0b9e27f | 16217 | echo "$ac_t""$DEREZ" 1>&6 |
90dd450c | 16218 | else |
a0b9e27f | 16219 | echo "$ac_t""no" 1>&6 |
3a922bb4 | 16220 | fi |
698dcdb6 | 16221 | |
21d1c967 | 16222 | MACOSX_BUNDLE="bundle" |
2b5f62a0 VZ |
16223 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)" |
16224 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
21d1c967 GD |
16225 | else |
16226 | if test "$wxUSE_PM" = 1; then | |
16227 | LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)" | |
90dd450c | 16228 | fi |
4f14bcd8 | 16229 | fi |
10f2d63a | 16230 | |
8284b0c5 | 16231 | |
a0b9e27f | 16232 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
8d90d2f2 | 16233 | echo "configure:16234: checking for ANSI C header files" >&5 |
a0b9e27f MB |
16234 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
16235 | echo $ac_n "(cached) $ac_c" 1>&6 | |
52127426 | 16236 | else |
a0b9e27f | 16237 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 16238 | #line 16239 "configure" |
52127426 | 16239 | #include "confdefs.h" |
a0b9e27f MB |
16240 | #include <stdlib.h> |
16241 | #include <stdarg.h> | |
16242 | #include <string.h> | |
16243 | #include <float.h> | |
16244 | EOF | |
16245 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8d90d2f2 | 16246 | { (eval echo configure:16247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
16247 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16248 | if test -z "$ac_err"; then | |
16249 | rm -rf conftest* | |
16250 | ac_cv_header_stdc=yes | |
16251 | else | |
16252 | echo "$ac_err" >&5 | |
16253 | echo "configure: failed program was:" >&5 | |
16254 | cat conftest.$ac_ext >&5 | |
16255 | rm -rf conftest* | |
16256 | ac_cv_header_stdc=no | |
16257 | fi | |
16258 | rm -f conftest* | |
16259 | ||
16260 | if test $ac_cv_header_stdc = yes; then | |
16261 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
16262 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 16263 | #line 16264 "configure" |
a0b9e27f MB |
16264 | #include "confdefs.h" |
16265 | #include <string.h> | |
16266 | EOF | |
16267 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16268 | egrep "memchr" >/dev/null 2>&1; then | |
16269 | : | |
16270 | else | |
16271 | rm -rf conftest* | |
16272 | ac_cv_header_stdc=no | |
16273 | fi | |
16274 | rm -f conftest* | |
16275 | ||
16276 | fi | |
16277 | ||
16278 | if test $ac_cv_header_stdc = yes; then | |
16279 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
16280 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 16281 | #line 16282 "configure" |
a0b9e27f MB |
16282 | #include "confdefs.h" |
16283 | #include <stdlib.h> | |
16284 | EOF | |
16285 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16286 | egrep "free" >/dev/null 2>&1; then | |
16287 | : | |
7b4a847f | 16288 | else |
a0b9e27f MB |
16289 | rm -rf conftest* |
16290 | ac_cv_header_stdc=no | |
52127426 | 16291 | fi |
a0b9e27f MB |
16292 | rm -f conftest* |
16293 | ||
52127426 | 16294 | fi |
a0b9e27f MB |
16295 | |
16296 | if test $ac_cv_header_stdc = yes; then | |
16297 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
16298 | if test "$cross_compiling" = yes; then | |
247f5006 VZ |
16299 | : |
16300 | else | |
a0b9e27f | 16301 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 16302 | #line 16303 "configure" |
a0b9e27f MB |
16303 | #include "confdefs.h" |
16304 | #include <ctype.h> | |
16305 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
16306 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
16307 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
16308 | int main () { int i; for (i = 0; i < 256; i++) | |
16309 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
16310 | exit (0); } | |
247f5006 | 16311 | |
a0b9e27f | 16312 | EOF |
8d90d2f2 | 16313 | if { (eval echo configure:16314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
16314 | then |
16315 | : | |
16316 | else | |
16317 | echo "configure: failed program was:" >&5 | |
16318 | cat conftest.$ac_ext >&5 | |
16319 | rm -fr conftest* | |
16320 | ac_cv_header_stdc=no | |
16321 | fi | |
16322 | rm -fr conftest* | |
16323 | fi | |
16324 | ||
16325 | fi | |
16326 | fi | |
16327 | ||
16328 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
16329 | if test $ac_cv_header_stdc = yes; then | |
16330 | cat >> confdefs.h <<\EOF | |
16331 | #define STDC_HEADERS 1 | |
16332 | EOF | |
8284b0c5 MB |
16333 | |
16334 | fi | |
16335 | ||
a0b9e27f | 16336 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
8d90d2f2 | 16337 | echo "configure:16338: checking for mode_t" >&5 |
a0b9e27f MB |
16338 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
16339 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16340 | else |
a0b9e27f | 16341 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 16342 | #line 16343 "configure" |
8284b0c5 | 16343 | #include "confdefs.h" |
a0b9e27f MB |
16344 | #include <sys/types.h> |
16345 | #if STDC_HEADERS | |
16346 | #include <stdlib.h> | |
16347 | #include <stddef.h> | |
8284b0c5 | 16348 | #endif |
a0b9e27f MB |
16349 | EOF |
16350 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16351 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16352 | rm -rf conftest* | |
16353 | ac_cv_type_mode_t=yes | |
5c6fa7d2 | 16354 | else |
a0b9e27f MB |
16355 | rm -rf conftest* |
16356 | ac_cv_type_mode_t=no | |
16357 | fi | |
16358 | rm -f conftest* | |
16359 | ||
8284b0c5 | 16360 | fi |
a0b9e27f MB |
16361 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
16362 | if test $ac_cv_type_mode_t = no; then | |
16363 | cat >> confdefs.h <<\EOF | |
16364 | #define mode_t int | |
16365 | EOF | |
16366 | ||
8284b0c5 | 16367 | fi |
a0b9e27f MB |
16368 | |
16369 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
8d90d2f2 | 16370 | echo "configure:16371: checking for off_t" >&5 |
a0b9e27f MB |
16371 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
16372 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16373 | else | |
16374 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 16375 | #line 16376 "configure" |
a0b9e27f MB |
16376 | #include "confdefs.h" |
16377 | #include <sys/types.h> | |
16378 | #if STDC_HEADERS | |
16379 | #include <stdlib.h> | |
16380 | #include <stddef.h> | |
16381 | #endif | |
16382 | EOF | |
16383 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16384 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16385 | rm -rf conftest* | |
16386 | ac_cv_type_off_t=yes | |
247f5006 | 16387 | else |
a0b9e27f MB |
16388 | rm -rf conftest* |
16389 | ac_cv_type_off_t=no | |
16390 | fi | |
16391 | rm -f conftest* | |
247f5006 | 16392 | |
a0b9e27f MB |
16393 | fi |
16394 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
16395 | if test $ac_cv_type_off_t = no; then | |
16396 | cat >> confdefs.h <<\EOF | |
90dd450c | 16397 | #define off_t long |
a0b9e27f | 16398 | EOF |
10f2d63a | 16399 | |
90dd450c | 16400 | fi |
10f2d63a | 16401 | |
a0b9e27f | 16402 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
8d90d2f2 | 16403 | echo "configure:16404: checking for pid_t" >&5 |
a0b9e27f MB |
16404 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
16405 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 16406 | else |
a0b9e27f | 16407 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 16408 | #line 16409 "configure" |
10f2d63a | 16409 | #include "confdefs.h" |
a0b9e27f MB |
16410 | #include <sys/types.h> |
16411 | #if STDC_HEADERS | |
16412 | #include <stdlib.h> | |
16413 | #include <stddef.h> | |
8284b0c5 | 16414 | #endif |
a0b9e27f MB |
16415 | EOF |
16416 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16417 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16418 | rm -rf conftest* | |
90dd450c | 16419 | ac_cv_type_pid_t=yes |
698dcdb6 | 16420 | else |
a0b9e27f MB |
16421 | rm -rf conftest* |
16422 | ac_cv_type_pid_t=no | |
8284b0c5 | 16423 | fi |
a0b9e27f | 16424 | rm -f conftest* |
247f5006 | 16425 | |
a0b9e27f MB |
16426 | fi |
16427 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
16428 | if test $ac_cv_type_pid_t = no; then | |
16429 | cat >> confdefs.h <<\EOF | |
90dd450c | 16430 | #define pid_t int |
a0b9e27f | 16431 | EOF |
10f2d63a | 16432 | |
7b4a847f RR |
16433 | fi |
16434 | ||
a0b9e27f | 16435 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
8d90d2f2 | 16436 | echo "configure:16437: checking for size_t" >&5 |
a0b9e27f MB |
16437 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
16438 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 16439 | else |
a0b9e27f | 16440 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 16441 | #line 16442 "configure" |
7b4a847f | 16442 | #include "confdefs.h" |
a0b9e27f MB |
16443 | #include <sys/types.h> |
16444 | #if STDC_HEADERS | |
16445 | #include <stdlib.h> | |
16446 | #include <stddef.h> | |
8284b0c5 | 16447 | #endif |
a0b9e27f MB |
16448 | EOF |
16449 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16450 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16451 | rm -rf conftest* | |
90dd450c | 16452 | ac_cv_type_size_t=yes |
18dbb1f6 | 16453 | else |
a0b9e27f MB |
16454 | rm -rf conftest* |
16455 | ac_cv_type_size_t=no | |
52127426 | 16456 | fi |
a0b9e27f | 16457 | rm -f conftest* |
247f5006 | 16458 | |
a0b9e27f MB |
16459 | fi |
16460 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
16461 | if test $ac_cv_type_size_t = no; then | |
16462 | cat >> confdefs.h <<\EOF | |
90dd450c | 16463 | #define size_t unsigned |
a0b9e27f | 16464 | EOF |
90dd450c VZ |
16465 | |
16466 | fi | |
16467 | ||
a0b9e27f | 16468 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
8d90d2f2 | 16469 | echo "configure:16470: checking for uid_t in sys/types.h" >&5 |
a0b9e27f MB |
16470 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
16471 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a | 16472 | else |
a0b9e27f | 16473 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 16474 | #line 16475 "configure" |
b3e8d00a | 16475 | #include "confdefs.h" |
90dd450c | 16476 | #include <sys/types.h> |
a0b9e27f | 16477 | EOF |
90dd450c VZ |
16478 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
16479 | egrep "uid_t" >/dev/null 2>&1; then | |
a0b9e27f | 16480 | rm -rf conftest* |
90dd450c | 16481 | ac_cv_type_uid_t=yes |
b3e8d00a | 16482 | else |
a0b9e27f | 16483 | rm -rf conftest* |
90dd450c | 16484 | ac_cv_type_uid_t=no |
b3e8d00a | 16485 | fi |
90dd450c | 16486 | rm -f conftest* |
b3e8d00a | 16487 | |
4f14bcd8 | 16488 | fi |
247f5006 | 16489 | |
a0b9e27f MB |
16490 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
16491 | if test $ac_cv_type_uid_t = no; then | |
16492 | cat >> confdefs.h <<\EOF | |
90dd450c | 16493 | #define uid_t int |
a0b9e27f | 16494 | EOF |
247f5006 | 16495 | |
a0b9e27f | 16496 | cat >> confdefs.h <<\EOF |
90dd450c | 16497 | #define gid_t int |
a0b9e27f | 16498 | EOF |
4f14bcd8 | 16499 | |
b3e8d00a | 16500 | fi |
b3e8d00a | 16501 | |
8284b0c5 MB |
16502 | |
16503 | ||
a0b9e27f MB |
16504 | ac_ext=C |
16505 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 16506 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16507 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16508 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16509 | cross_compiling=$ac_cv_prog_cxx_cross | |
90dd450c | 16510 | |
a0b9e27f | 16511 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
8d90d2f2 | 16512 | echo "configure:16513: checking if size_t is unsigned int" >&5 |
a0b9e27f MB |
16513 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
16514 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 16515 | else |
a0b9e27f | 16516 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 16517 | #line 16518 "configure" |
10f2d63a | 16518 | #include "confdefs.h" |
90dd450c | 16519 | #include <stddef.h> |
a0b9e27f | 16520 | int main() { |
90dd450c VZ |
16521 | |
16522 | return 0; } | |
16523 | ||
16524 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
16525 | ||
16526 | int bar() { | |
a0b9e27f MB |
16527 | |
16528 | ; return 0; } | |
16529 | EOF | |
8d90d2f2 | 16530 | if { (eval echo configure:16531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16531 | rm -rf conftest* |
90dd450c | 16532 | wx_cv_size_t_is_uint=no |
698dcdb6 | 16533 | else |
a0b9e27f MB |
16534 | echo "configure: failed program was:" >&5 |
16535 | cat conftest.$ac_ext >&5 | |
16536 | rm -rf conftest* | |
16537 | wx_cv_size_t_is_uint=yes | |
16538 | ||
5c6fa7d2 | 16539 | fi |
a0b9e27f | 16540 | rm -f conftest* |
8284b0c5 | 16541 | |
247f5006 | 16542 | fi |
a0b9e27f MB |
16543 | |
16544 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
4f14bcd8 | 16545 | |
90dd450c | 16546 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
a0b9e27f | 16547 | cat >> confdefs.h <<\EOF |
90dd450c | 16548 | #define wxSIZE_T_IS_UINT 1 |
a0b9e27f | 16549 | EOF |
698dcdb6 | 16550 | |
90dd450c | 16551 | else |
a0b9e27f | 16552 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 |
8d90d2f2 | 16553 | echo "configure:16554: checking if size_t is unsigned long" >&5 |
a0b9e27f MB |
16554 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
16555 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 16556 | else |
a0b9e27f | 16557 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 16558 | #line 16559 "configure" |
10f2d63a | 16559 | #include "confdefs.h" |
90dd450c | 16560 | #include <stddef.h> |
a0b9e27f | 16561 | int main() { |
90dd450c VZ |
16562 | |
16563 | return 0; } | |
16564 | ||
16565 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
16566 | ||
16567 | int bar() { | |
a0b9e27f MB |
16568 | |
16569 | ; return 0; } | |
16570 | EOF | |
8d90d2f2 | 16571 | if { (eval echo configure:16572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16572 | rm -rf conftest* |
90dd450c | 16573 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 16574 | else |
a0b9e27f MB |
16575 | echo "configure: failed program was:" >&5 |
16576 | cat conftest.$ac_ext >&5 | |
16577 | rm -rf conftest* | |
16578 | wx_cv_size_t_is_ulong=yes | |
16579 | ||
5c6fa7d2 | 16580 | fi |
a0b9e27f MB |
16581 | rm -f conftest* |
16582 | ||
247f5006 | 16583 | fi |
a0b9e27f MB |
16584 | |
16585 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
10f2d63a | 16586 | |
90dd450c | 16587 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
a0b9e27f | 16588 | cat >> confdefs.h <<\EOF |
90dd450c | 16589 | #define wxSIZE_T_IS_ULONG 1 |
a0b9e27f | 16590 | EOF |
4f14bcd8 GD |
16591 | |
16592 | fi | |
90dd450c | 16593 | fi |
1e487827 | 16594 | |
90dd450c | 16595 | ac_ext=c |
a0b9e27f | 16596 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 16597 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
16598 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16599 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16600 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 16601 | |
5c6fa7d2 | 16602 | |
8284b0c5 | 16603 | |
a0b9e27f | 16604 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
8d90d2f2 | 16605 | echo "configure:16606: checking for pw_gecos in struct passwd" >&5 |
a0b9e27f MB |
16606 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
16607 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16608 | else |
a0b9e27f MB |
16609 | |
16610 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 16611 | #line 16612 "configure" |
4f14bcd8 | 16612 | #include "confdefs.h" |
90dd450c | 16613 | #include <pwd.h> |
a0b9e27f | 16614 | int main() { |
f6bcfd97 | 16615 | |
90dd450c VZ |
16616 | char *p; |
16617 | struct passwd *pw; | |
16618 | p = pw->pw_gecos; | |
a0b9e27f MB |
16619 | |
16620 | ; return 0; } | |
16621 | EOF | |
8d90d2f2 | 16622 | if { (eval echo configure:16623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
16623 | rm -rf conftest* |
16624 | ||
90dd450c | 16625 | wx_cv_struct_pw_gecos=yes |
a0b9e27f | 16626 | |
10f2d63a | 16627 | else |
a0b9e27f MB |
16628 | echo "configure: failed program was:" >&5 |
16629 | cat conftest.$ac_ext >&5 | |
16630 | rm -rf conftest* | |
16631 | ||
90dd450c | 16632 | wx_cv_struct_pw_gecos=no |
a0b9e27f MB |
16633 | |
16634 | ||
5c6fa7d2 | 16635 | fi |
a0b9e27f MB |
16636 | rm -f conftest* |
16637 | ||
247f5006 VZ |
16638 | |
16639 | fi | |
a0b9e27f MB |
16640 | |
16641 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
c521c494 | 16642 | |
90dd450c | 16643 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
a0b9e27f | 16644 | cat >> confdefs.h <<\EOF |
90dd450c | 16645 | #define HAVE_PW_GECOS 1 |
a0b9e27f | 16646 | EOF |
c521c494 | 16647 | |
90dd450c | 16648 | fi |
4f14bcd8 | 16649 | |
8284b0c5 | 16650 | |
d29b553b | 16651 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
a0b9e27f | 16652 | cat >> confdefs.h <<\EOF |
d74f4b5a | 16653 | #define wxUSE_WCHAR_T 1 |
a0b9e27f | 16654 | EOF |
d74f4b5a | 16655 | |
8284b0c5 | 16656 | |
d74f4b5a VZ |
16657 | WCSLEN_FOUND=0 |
16658 | WCHAR_LINK= | |
a0b9e27f | 16659 | for ac_func in wcslen |
7a30264c | 16660 | do |
a0b9e27f | 16661 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 16662 | echo "configure:16663: checking for $ac_func" >&5 |
a0b9e27f MB |
16663 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16664 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16665 | else | |
16666 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 16667 | #line 16668 "configure" |
4f14bcd8 | 16668 | #include "confdefs.h" |
7a30264c | 16669 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 16670 | which can conflict with char $ac_func(); below. */ |
7a30264c | 16671 | #include <assert.h> |
4f14bcd8 GD |
16672 | /* Override any gcc2 internal prototype to avoid an error. */ |
16673 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16674 | builtin and then its argument prototype would still apply. */ |
16675 | char $ac_func(); | |
16676 | ||
16677 | int main() { | |
16678 | ||
7a30264c VZ |
16679 | /* The GNU C library defines this for functions which it implements |
16680 | to always fail with ENOSYS. Some functions are actually named | |
16681 | something starting with __ and the normal name is an alias. */ | |
16682 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16683 | choke me | |
16684 | #else | |
a0b9e27f | 16685 | $ac_func(); |
7a30264c VZ |
16686 | #endif |
16687 | ||
a0b9e27f MB |
16688 | ; return 0; } |
16689 | EOF | |
8d90d2f2 | 16690 | if { (eval echo configure:16691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16691 | rm -rf conftest* |
16692 | eval "ac_cv_func_$ac_func=yes" | |
16693 | else | |
16694 | echo "configure: failed program was:" >&5 | |
16695 | cat conftest.$ac_ext >&5 | |
16696 | rm -rf conftest* | |
16697 | eval "ac_cv_func_$ac_func=no" | |
16698 | fi | |
16699 | rm -f conftest* | |
16700 | fi | |
16701 | ||
16702 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16703 | echo "$ac_t""yes" 1>&6 | |
16704 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16705 | cat >> confdefs.h <<EOF | |
16706 | #define $ac_tr_func 1 | |
16707 | EOF | |
d74f4b5a | 16708 | WCSLEN_FOUND=1 |
a0b9e27f MB |
16709 | else |
16710 | echo "$ac_t""no" 1>&6 | |
7a30264c VZ |
16711 | fi |
16712 | done | |
9d8deca0 | 16713 | |
8284b0c5 | 16714 | |
d74f4b5a | 16715 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 16716 | if test "$TOOLKIT" = "MSW"; then |
a0b9e27f | 16717 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
8d90d2f2 | 16718 | echo "configure:16719: checking for wcslen in -lmsvcrt" >&5 |
a0b9e27f MB |
16719 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
16720 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16721 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16722 | else |
a0b9e27f | 16723 | ac_save_LIBS="$LIBS" |
7a30264c | 16724 | LIBS="-lmsvcrt $LIBS" |
a0b9e27f | 16725 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 16726 | #line 16727 "configure" |
10f2d63a | 16727 | #include "confdefs.h" |
4f14bcd8 GD |
16728 | /* Override any gcc2 internal prototype to avoid an error. */ |
16729 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16730 | builtin and then its argument prototype would still apply. */ |
16731 | char wcslen(); | |
16732 | ||
16733 | int main() { | |
16734 | wcslen() | |
16735 | ; return 0; } | |
16736 | EOF | |
8d90d2f2 | 16737 | if { (eval echo configure:16738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16738 | rm -rf conftest* |
16739 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16740 | else | |
16741 | echo "configure: failed program was:" >&5 | |
16742 | cat conftest.$ac_ext >&5 | |
16743 | rm -rf conftest* | |
16744 | eval "ac_cv_lib_$ac_lib_var=no" | |
16745 | fi | |
16746 | rm -f conftest* | |
16747 | LIBS="$ac_save_LIBS" | |
16748 | ||
16749 | fi | |
16750 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16751 | echo "$ac_t""yes" 1>&6 | |
d74f4b5a | 16752 | WCHAR_OK=1 |
a0b9e27f MB |
16753 | else |
16754 | echo "$ac_t""no" 1>&6 | |
d29b553b | 16755 | fi |
698dcdb6 | 16756 | |
7a30264c | 16757 | else |
a0b9e27f | 16758 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
8d90d2f2 | 16759 | echo "configure:16760: checking for wcslen in -lw" >&5 |
a0b9e27f MB |
16760 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
16761 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16762 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 16763 | else |
a0b9e27f | 16764 | ac_save_LIBS="$LIBS" |
7a30264c | 16765 | LIBS="-lw $LIBS" |
a0b9e27f | 16766 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 16767 | #line 16768 "configure" |
95c8801c | 16768 | #include "confdefs.h" |
4f14bcd8 GD |
16769 | /* Override any gcc2 internal prototype to avoid an error. */ |
16770 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16771 | builtin and then its argument prototype would still apply. */ |
16772 | char wcslen(); | |
52127426 | 16773 | |
a0b9e27f MB |
16774 | int main() { |
16775 | wcslen() | |
16776 | ; return 0; } | |
16777 | EOF | |
8d90d2f2 | 16778 | if { (eval echo configure:16779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16779 | rm -rf conftest* |
16780 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16781 | else | |
16782 | echo "configure: failed program was:" >&5 | |
16783 | cat conftest.$ac_ext >&5 | |
16784 | rm -rf conftest* | |
16785 | eval "ac_cv_lib_$ac_lib_var=no" | |
16786 | fi | |
16787 | rm -f conftest* | |
16788 | LIBS="$ac_save_LIBS" | |
16789 | ||
16790 | fi | |
16791 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16792 | echo "$ac_t""yes" 1>&6 | |
16793 | ||
7a30264c | 16794 | WCHAR_LINK=" -lw" |
d74f4b5a | 16795 | WCSLEN_FOUND=1 |
a0b9e27f MB |
16796 | |
16797 | else | |
16798 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 16799 | fi |
10f2d63a | 16800 | |
7a30264c | 16801 | fi |
d29b553b | 16802 | fi |
95c8801c | 16803 | |
d74f4b5a | 16804 | if test "$WCSLEN_FOUND" = 1; then |
a0b9e27f | 16805 | cat >> confdefs.h <<\EOF |
d74f4b5a | 16806 | #define HAVE_WCSLEN 1 |
a0b9e27f | 16807 | EOF |
10f2d63a | 16808 | |
d74f4b5a | 16809 | fi |
52127426 | 16810 | |
a0b9e27f | 16811 | for ac_func in wcsrtombs |
eb4efbdc | 16812 | do |
a0b9e27f | 16813 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 16814 | echo "configure:16815: checking for $ac_func" >&5 |
a0b9e27f MB |
16815 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16816 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16817 | else | |
16818 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 16819 | #line 16820 "configure" |
eb4efbdc VZ |
16820 | #include "confdefs.h" |
16821 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16822 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
16823 | #include <assert.h> |
16824 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4f14bcd8 | 16825 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
16826 | builtin and then its argument prototype would still apply. */ |
16827 | char $ac_func(); | |
16828 | ||
16829 | int main() { | |
16830 | ||
10f2d63a VZ |
16831 | /* The GNU C library defines this for functions which it implements |
16832 | to always fail with ENOSYS. Some functions are actually named | |
16833 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 16834 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
16835 | choke me |
16836 | #else | |
a0b9e27f | 16837 | $ac_func(); |
10f2d63a VZ |
16838 | #endif |
16839 | ||
a0b9e27f MB |
16840 | ; return 0; } |
16841 | EOF | |
8d90d2f2 | 16842 | if { (eval echo configure:16843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16843 | rm -rf conftest* |
16844 | eval "ac_cv_func_$ac_func=yes" | |
16845 | else | |
16846 | echo "configure: failed program was:" >&5 | |
16847 | cat conftest.$ac_ext >&5 | |
16848 | rm -rf conftest* | |
16849 | eval "ac_cv_func_$ac_func=no" | |
16850 | fi | |
16851 | rm -f conftest* | |
16852 | fi | |
270a909e | 16853 | |
a0b9e27f MB |
16854 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16855 | echo "$ac_t""yes" 1>&6 | |
16856 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16857 | cat >> confdefs.h <<EOF | |
16858 | #define $ac_tr_func 1 | |
16859 | EOF | |
16860 | ||
16861 | else | |
16862 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 16863 | fi |
247f5006 | 16864 | done |
1e487827 | 16865 | |
af15babd | 16866 | else |
a0b9e27f | 16867 | echo "configure: warning: Wide character support is unavailable" 1>&2 |
7b4a847f | 16868 | fi |
52127426 | 16869 | |
8284b0c5 | 16870 | |
a0b9e27f MB |
16871 | ac_ext=C |
16872 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
247f5006 | 16873 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16874 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16875 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16876 | cross_compiling=$ac_cv_prog_cxx_cross | |
af15babd | 16877 | |
247f5006 VZ |
16878 | |
16879 | for ac_func in vsnprintf | |
16880 | do | |
a0b9e27f | 16881 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 16882 | echo "configure:16883: checking for $ac_func" >&5 |
a0b9e27f MB |
16883 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16884 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16885 | else | |
16886 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 16887 | #line 16888 "configure" |
af15babd | 16888 | #include "confdefs.h" |
247f5006 | 16889 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 16890 | which can conflict with char $ac_func(); below. */ |
247f5006 VZ |
16891 | #include <assert.h> |
16892 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16893 | #ifdef __cplusplus | |
16894 | extern "C" | |
16895 | #endif | |
16896 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16897 | builtin and then its argument prototype would still apply. */ |
16898 | char $ac_func(); | |
16899 | ||
16900 | int main() { | |
16901 | ||
247f5006 VZ |
16902 | /* The GNU C library defines this for functions which it implements |
16903 | to always fail with ENOSYS. Some functions are actually named | |
16904 | something starting with __ and the normal name is an alias. */ | |
16905 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16906 | choke me | |
16907 | #else | |
a0b9e27f | 16908 | $ac_func(); |
247f5006 | 16909 | #endif |
af15babd | 16910 | |
a0b9e27f MB |
16911 | ; return 0; } |
16912 | EOF | |
8d90d2f2 | 16913 | if { (eval echo configure:16914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16914 | rm -rf conftest* |
16915 | eval "ac_cv_func_$ac_func=yes" | |
16916 | else | |
16917 | echo "configure: failed program was:" >&5 | |
16918 | cat conftest.$ac_ext >&5 | |
16919 | rm -rf conftest* | |
16920 | eval "ac_cv_func_$ac_func=no" | |
16921 | fi | |
16922 | rm -f conftest* | |
16923 | fi | |
52127426 | 16924 | |
a0b9e27f MB |
16925 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16926 | echo "$ac_t""yes" 1>&6 | |
16927 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16928 | cat >> confdefs.h <<EOF | |
16929 | #define $ac_tr_func 1 | |
16930 | EOF | |
16931 | ||
16932 | else | |
16933 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 16934 | fi |
247f5006 | 16935 | done |
8284b0c5 | 16936 | |
4f14bcd8 | 16937 | |
8d90d2f2 VZ |
16938 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
16939 | echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6 | |
16940 | echo "configure:16941: checking for vsnprintf declaration" >&5 | |
16941 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then | |
16942 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16943 | else | |
16944 | ||
16945 | cat > conftest.$ac_ext <<EOF | |
16946 | #line 16947 "configure" | |
16947 | #include "confdefs.h" | |
16948 | ||
16949 | #include <stdio.h> | |
16950 | #include <stdarg.h> | |
16951 | ||
16952 | int main() { | |
16953 | ||
16954 | char *buf; | |
16955 | va_list ap; | |
16956 | vsnprintf(buf, 10u, "%s", ap); | |
16957 | ||
16958 | ; return 0; } | |
16959 | EOF | |
16960 | if { (eval echo configure:16961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16961 | rm -rf conftest* | |
16962 | wx_cv_func_vsnprintf_decl=yes | |
16963 | else | |
16964 | echo "configure: failed program was:" >&5 | |
16965 | cat conftest.$ac_ext >&5 | |
16966 | rm -rf conftest* | |
16967 | wx_cv_func_vsnprintf_decl=no | |
16968 | ||
16969 | fi | |
16970 | rm -f conftest* | |
16971 | ||
16972 | ||
16973 | fi | |
16974 | ||
16975 | echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6 | |
16976 | ||
16977 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
16978 | cat >> confdefs.h <<\EOF | |
16979 | #define HAVE_VSNPRINTF_DECL 1 | |
16980 | EOF | |
16981 | ||
16982 | fi | |
16983 | fi | |
16984 | ||
247f5006 | 16985 | if test "$wxUSE_UNICODE" = yes; then |
a0b9e27f | 16986 | for ac_func in fputwc wprintf vswprintf |
d74f4b5a | 16987 | do |
a0b9e27f | 16988 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 16989 | echo "configure:16990: checking for $ac_func" >&5 |
a0b9e27f MB |
16990 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16991 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16992 | else | |
16993 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 16994 | #line 16995 "configure" |
d74f4b5a VZ |
16995 | #include "confdefs.h" |
16996 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16997 | which can conflict with char $ac_func(); below. */ |
d74f4b5a VZ |
16998 | #include <assert.h> |
16999 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
17000 | #ifdef __cplusplus |
17001 | extern "C" | |
17002 | #endif | |
d74f4b5a | 17003 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17004 | builtin and then its argument prototype would still apply. */ |
17005 | char $ac_func(); | |
17006 | ||
17007 | int main() { | |
17008 | ||
d74f4b5a VZ |
17009 | /* The GNU C library defines this for functions which it implements |
17010 | to always fail with ENOSYS. Some functions are actually named | |
17011 | something starting with __ and the normal name is an alias. */ | |
17012 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17013 | choke me | |
17014 | #else | |
a0b9e27f | 17015 | $ac_func(); |
d74f4b5a VZ |
17016 | #endif |
17017 | ||
a0b9e27f MB |
17018 | ; return 0; } |
17019 | EOF | |
8d90d2f2 | 17020 | if { (eval echo configure:17021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17021 | rm -rf conftest* |
17022 | eval "ac_cv_func_$ac_func=yes" | |
17023 | else | |
17024 | echo "configure: failed program was:" >&5 | |
17025 | cat conftest.$ac_ext >&5 | |
17026 | rm -rf conftest* | |
17027 | eval "ac_cv_func_$ac_func=no" | |
17028 | fi | |
17029 | rm -f conftest* | |
17030 | fi | |
d74f4b5a | 17031 | |
a0b9e27f MB |
17032 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17033 | echo "$ac_t""yes" 1>&6 | |
17034 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17035 | cat >> confdefs.h <<EOF | |
17036 | #define $ac_tr_func 1 | |
17037 | EOF | |
17038 | ||
17039 | else | |
17040 | echo "$ac_t""no" 1>&6 | |
d74f4b5a VZ |
17041 | fi |
17042 | done | |
17043 | ||
8d90d2f2 | 17044 | |
79668cae | 17045 | echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6 |
8d90d2f2 | 17046 | echo "configure:17047: checking for _vsnwprintf" >&5 |
79668cae | 17047 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 17048 | #line 17049 "configure" |
79668cae MB |
17049 | #include "confdefs.h" |
17050 | #include <wchar.h> | |
17051 | int main() { | |
17052 | &_vsnwprintf; | |
17053 | ; return 0; } | |
17054 | EOF | |
8d90d2f2 | 17055 | if { (eval echo configure:17056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
79668cae MB |
17056 | rm -rf conftest* |
17057 | echo "$ac_t""yes" 1>&6 | |
17058 | cat >> confdefs.h <<\EOF | |
17059 | #define HAVE__VSNWPRINTF 1 | |
17060 | EOF | |
17061 | ||
17062 | else | |
17063 | echo "configure: failed program was:" >&5 | |
17064 | cat conftest.$ac_ext >&5 | |
17065 | rm -rf conftest* | |
17066 | echo "$ac_t""no" 1>&6 | |
17067 | fi | |
17068 | rm -f conftest*; | |
d74f4b5a VZ |
17069 | fi |
17070 | ||
247f5006 | 17071 | ac_ext=c |
a0b9e27f | 17072 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
247f5006 | 17073 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17074 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17075 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17076 | cross_compiling=$ac_cv_prog_cc_cross | |
247f5006 VZ |
17077 | |
17078 | ||
17079 | ||
17080 | ||
4f14bcd8 | 17081 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 17082 | |
8284b0c5 MB |
17083 | |
17084 | ||
a0b9e27f MB |
17085 | ac_ext=C |
17086 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 17087 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17088 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17089 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17090 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 17091 | |
52127426 | 17092 | |
a0b9e27f MB |
17093 | |
17094 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
17095 | if test "${with_libiconv_prefix+set}" = set; then |
17096 | withval="$with_libiconv_prefix" | |
a0b9e27f | 17097 | |
b040e242 VS |
17098 | for dir in `echo "$withval" | tr : ' '`; do |
17099 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
17100 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
17101 | done | |
a0b9e27f MB |
17102 | |
17103 | fi | |
b040e242 VS |
17104 | |
17105 | ||
a0b9e27f | 17106 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
8d90d2f2 | 17107 | echo "configure:17108: checking for iconv" >&5 |
a0b9e27f MB |
17108 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
17109 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 17110 | else |
a0b9e27f | 17111 | |
b040e242 VS |
17112 | am_cv_func_iconv="no, consider installing GNU libiconv" |
17113 | am_cv_lib_iconv=no | |
a0b9e27f | 17114 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 17115 | #line 17116 "configure" |
af15babd | 17116 | #include "confdefs.h" |
b040e242 | 17117 | #include <stdlib.h> |
4f14bcd8 | 17118 | #include <iconv.h> |
a0b9e27f | 17119 | int main() { |
b040e242 VS |
17120 | iconv_t cd = iconv_open("",""); |
17121 | iconv(cd,NULL,NULL,NULL,NULL); | |
17122 | iconv_close(cd); | |
a0b9e27f MB |
17123 | ; return 0; } |
17124 | EOF | |
8d90d2f2 | 17125 | if { (eval echo configure:17126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17126 | rm -rf conftest* |
b040e242 | 17127 | am_cv_func_iconv=yes |
af15babd | 17128 | else |
a0b9e27f MB |
17129 | echo "configure: failed program was:" >&5 |
17130 | cat conftest.$ac_ext >&5 | |
b040e242 | 17131 | fi |
a0b9e27f | 17132 | rm -f conftest* |
b040e242 VS |
17133 | if test "$am_cv_func_iconv" != yes; then |
17134 | am_save_LIBS="$LIBS" | |
17135 | LIBS="$LIBS -liconv" | |
a0b9e27f | 17136 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 17137 | #line 17138 "configure" |
b040e242 VS |
17138 | #include "confdefs.h" |
17139 | #include <stdlib.h> | |
17140 | #include <iconv.h> | |
a0b9e27f | 17141 | int main() { |
b040e242 VS |
17142 | iconv_t cd = iconv_open("",""); |
17143 | iconv(cd,NULL,NULL,NULL,NULL); | |
17144 | iconv_close(cd); | |
a0b9e27f MB |
17145 | ; return 0; } |
17146 | EOF | |
8d90d2f2 | 17147 | if { (eval echo configure:17148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17148 | rm -rf conftest* |
b040e242 VS |
17149 | am_cv_lib_iconv=yes |
17150 | am_cv_func_iconv=yes | |
17151 | else | |
a0b9e27f MB |
17152 | echo "configure: failed program was:" >&5 |
17153 | cat conftest.$ac_ext >&5 | |
af15babd | 17154 | fi |
a0b9e27f | 17155 | rm -f conftest* |
b040e242 VS |
17156 | LIBS="$am_save_LIBS" |
17157 | fi | |
a0b9e27f | 17158 | |
247f5006 | 17159 | fi |
247f5006 | 17160 | |
a0b9e27f MB |
17161 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
17162 | if test "$am_cv_func_iconv" = yes; then | |
17163 | cat >> confdefs.h <<\EOF | |
b040e242 | 17164 | #define HAVE_ICONV 1 |
a0b9e27f | 17165 | EOF |
b040e242 | 17166 | |
a0b9e27f | 17167 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
8d90d2f2 | 17168 | echo "configure:17169: checking if iconv needs const" >&5 |
a0b9e27f MB |
17169 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
17170 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b040e242 | 17171 | else |
a0b9e27f | 17172 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 17173 | #line 17174 "configure" |
b040e242 VS |
17174 | #include "confdefs.h" |
17175 | ||
17176 | #include <stdlib.h> | |
17177 | #include <iconv.h> | |
17178 | extern | |
17179 | #ifdef __cplusplus | |
17180 | "C" | |
17181 | #endif | |
17182 | #if defined(__STDC__) || defined(__cplusplus) | |
17183 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
17184 | #else | |
17185 | size_t iconv(); | |
17186 | #endif | |
a0b9e27f MB |
17187 | |
17188 | int main() { | |
af15babd | 17189 | |
a0b9e27f MB |
17190 | ; return 0; } |
17191 | EOF | |
8d90d2f2 | 17192 | if { (eval echo configure:17193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 17193 | rm -rf conftest* |
b7043674 | 17194 | wx_cv_func_iconv_const="no" |
b040e242 | 17195 | else |
a0b9e27f MB |
17196 | echo "configure: failed program was:" >&5 |
17197 | cat conftest.$ac_ext >&5 | |
17198 | rm -rf conftest* | |
17199 | wx_cv_func_iconv_const="yes" | |
17200 | ||
5c6fa7d2 | 17201 | fi |
a0b9e27f MB |
17202 | rm -f conftest* |
17203 | ||
247f5006 | 17204 | fi |
a0b9e27f MB |
17205 | |
17206 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 | |
b7043674 VZ |
17207 | |
17208 | iconv_const= | |
1c405bb5 | 17209 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
17210 | iconv_const="const" |
17211 | fi | |
17212 | ||
a0b9e27f | 17213 | cat >> confdefs.h <<EOF |
f09359cf | 17214 | #define ICONV_CONST $iconv_const |
a0b9e27f | 17215 | EOF |
b040e242 VS |
17216 | |
17217 | fi | |
17218 | LIBICONV= | |
17219 | if test "$am_cv_lib_iconv" = yes; then | |
17220 | LIBICONV="-liconv" | |
17221 | fi | |
a0b9e27f | 17222 | |
b040e242 VS |
17223 | |
17224 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 17225 | ac_ext=c |
a0b9e27f | 17226 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17227 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17228 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17229 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17230 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 17231 | |
5c6fa7d2 | 17232 | |
8284b0c5 | 17233 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 17234 | for ac_func in sigaction |
af15babd | 17235 | do |
a0b9e27f | 17236 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 17237 | echo "configure:17238: checking for $ac_func" >&5 |
a0b9e27f MB |
17238 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17239 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17240 | else | |
17241 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 17242 | #line 17243 "configure" |
af15babd VZ |
17243 | #include "confdefs.h" |
17244 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17245 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17246 | #include <assert.h> |
17247 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17248 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17249 | builtin and then its argument prototype would still apply. */ |
17250 | char $ac_func(); | |
17251 | ||
17252 | int main() { | |
17253 | ||
af15babd VZ |
17254 | /* The GNU C library defines this for functions which it implements |
17255 | to always fail with ENOSYS. Some functions are actually named | |
17256 | something starting with __ and the normal name is an alias. */ | |
17257 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17258 | choke me | |
17259 | #else | |
a0b9e27f | 17260 | $ac_func(); |
af15babd VZ |
17261 | #endif |
17262 | ||
a0b9e27f MB |
17263 | ; return 0; } |
17264 | EOF | |
8d90d2f2 | 17265 | if { (eval echo configure:17266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17266 | rm -rf conftest* |
17267 | eval "ac_cv_func_$ac_func=yes" | |
17268 | else | |
17269 | echo "configure: failed program was:" >&5 | |
17270 | cat conftest.$ac_ext >&5 | |
17271 | rm -rf conftest* | |
17272 | eval "ac_cv_func_$ac_func=no" | |
17273 | fi | |
17274 | rm -f conftest* | |
17275 | fi | |
7b4a847f | 17276 | |
a0b9e27f MB |
17277 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17278 | echo "$ac_t""yes" 1>&6 | |
17279 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17280 | cat >> confdefs.h <<EOF | |
17281 | #define $ac_tr_func 1 | |
17282 | EOF | |
17283 | ||
17284 | else | |
17285 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
17286 | fi |
17287 | done | |
17288 | ||
8284b0c5 | 17289 | |
4f14bcd8 | 17290 | if test "$ac_cv_func_sigaction" = "no"; then |
a0b9e27f | 17291 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
4f14bcd8 GD |
17292 | wxUSE_ON_FATAL_EXCEPTION=no |
17293 | fi | |
17294 | ||
17295 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a0b9e27f MB |
17296 | |
17297 | ac_ext=C | |
17298 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 17299 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17300 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17301 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17302 | cross_compiling=$ac_cv_prog_cxx_cross | |
7b4a847f | 17303 | |
5c6fa7d2 | 17304 | |
a0b9e27f | 17305 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
8d90d2f2 | 17306 | echo "configure:17307: checking for sa_handler type" >&5 |
a0b9e27f MB |
17307 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
17308 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 17309 | else |
a0b9e27f MB |
17310 | |
17311 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 17312 | #line 17313 "configure" |
af15babd | 17313 | #include "confdefs.h" |
4f14bcd8 | 17314 | #include <signal.h> |
a0b9e27f | 17315 | int main() { |
4f14bcd8 GD |
17316 | |
17317 | extern void testSigHandler(int); | |
17318 | ||
17319 | struct sigaction sa; | |
17320 | sa.sa_handler = testSigHandler; | |
a0b9e27f MB |
17321 | |
17322 | ; return 0; } | |
17323 | EOF | |
8d90d2f2 | 17324 | if { (eval echo configure:17325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17325 | rm -rf conftest* |
17326 | ||
4f14bcd8 | 17327 | wx_cv_type_sa_handler=int |
a0b9e27f | 17328 | |
af15babd | 17329 | else |
a0b9e27f MB |
17330 | echo "configure: failed program was:" >&5 |
17331 | cat conftest.$ac_ext >&5 | |
17332 | rm -rf conftest* | |
17333 | ||
4f14bcd8 | 17334 | wx_cv_type_sa_handler=void |
a0b9e27f | 17335 | |
5c6fa7d2 | 17336 | fi |
a0b9e27f MB |
17337 | rm -f conftest* |
17338 | ||
247f5006 | 17339 | fi |
a0b9e27f MB |
17340 | |
17341 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
4f14bcd8 GD |
17342 | |
17343 | ac_ext=c | |
a0b9e27f | 17344 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17345 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17346 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17347 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17348 | cross_compiling=$ac_cv_prog_cc_cross | |
579d8138 | 17349 | |
8284b0c5 | 17350 | |
a0b9e27f | 17351 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17352 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
a0b9e27f | 17353 | EOF |
af15babd | 17354 | |
4f14bcd8 GD |
17355 | fi |
17356 | fi | |
af15babd | 17357 | |
a1d22ad7 | 17358 | for ac_func in mkstemp mktemp |
af15babd | 17359 | do |
a0b9e27f | 17360 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 17361 | echo "configure:17362: checking for $ac_func" >&5 |
a0b9e27f MB |
17362 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17363 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17364 | else | |
17365 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 17366 | #line 17367 "configure" |
af15babd VZ |
17367 | #include "confdefs.h" |
17368 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17369 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17370 | #include <assert.h> |
17371 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17372 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17373 | builtin and then its argument prototype would still apply. */ |
17374 | char $ac_func(); | |
17375 | ||
17376 | int main() { | |
17377 | ||
af15babd VZ |
17378 | /* The GNU C library defines this for functions which it implements |
17379 | to always fail with ENOSYS. Some functions are actually named | |
17380 | something starting with __ and the normal name is an alias. */ | |
17381 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17382 | choke me | |
17383 | #else | |
a0b9e27f | 17384 | $ac_func(); |
af15babd VZ |
17385 | #endif |
17386 | ||
a0b9e27f MB |
17387 | ; return 0; } |
17388 | EOF | |
8d90d2f2 | 17389 | if { (eval echo configure:17390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17390 | rm -rf conftest* |
17391 | eval "ac_cv_func_$ac_func=yes" | |
17392 | else | |
17393 | echo "configure: failed program was:" >&5 | |
17394 | cat conftest.$ac_ext >&5 | |
17395 | rm -rf conftest* | |
17396 | eval "ac_cv_func_$ac_func=no" | |
17397 | fi | |
17398 | rm -f conftest* | |
17399 | fi | |
af15babd | 17400 | |
a0b9e27f MB |
17401 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17402 | echo "$ac_t""yes" 1>&6 | |
17403 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17404 | cat >> confdefs.h <<EOF | |
17405 | #define $ac_tr_func 1 | |
17406 | EOF | |
ade35f11 | 17407 | break |
a0b9e27f MB |
17408 | else |
17409 | echo "$ac_t""no" 1>&6 | |
ade35f11 VZ |
17410 | fi |
17411 | done | |
17412 | ||
8284b0c5 | 17413 | |
a0b9e27f | 17414 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
8d90d2f2 | 17415 | echo "configure:17416: checking for statfs" >&5 |
a0b9e27f MB |
17416 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
17417 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 17418 | else |
a0b9e27f | 17419 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 17420 | #line 17421 "configure" |
4f14bcd8 GD |
17421 | #include "confdefs.h" |
17422 | ||
17423 | #if defined(__BSD__) | |
17424 | #include <sys/param.h> | |
17425 | #include <sys/mount.h> | |
17426 | #else | |
17427 | #include <sys/vfs.h> | |
17428 | #endif | |
a0b9e27f MB |
17429 | |
17430 | int main() { | |
4f14bcd8 GD |
17431 | |
17432 | long l; | |
17433 | struct statfs fs; | |
17434 | statfs("/", &fs); | |
17435 | l = fs.f_bsize; | |
17436 | l += fs.f_blocks; | |
17437 | l += fs.f_bavail; | |
a0b9e27f MB |
17438 | |
17439 | ; return 0; } | |
17440 | EOF | |
8d90d2f2 | 17441 | if { (eval echo configure:17442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17442 | rm -rf conftest* |
17443 | ||
4f14bcd8 | 17444 | wx_cv_func_statfs=yes |
a0b9e27f | 17445 | |
4f14bcd8 | 17446 | else |
a0b9e27f MB |
17447 | echo "configure: failed program was:" >&5 |
17448 | cat conftest.$ac_ext >&5 | |
17449 | rm -rf conftest* | |
17450 | ||
4f14bcd8 | 17451 | wx_cv_func_statfs=no |
a0b9e27f MB |
17452 | |
17453 | ||
5c6fa7d2 | 17454 | fi |
a0b9e27f | 17455 | rm -f conftest* |
8284b0c5 | 17456 | |
247f5006 | 17457 | fi |
a0b9e27f MB |
17458 | |
17459 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
4f14bcd8 GD |
17460 | |
17461 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 17462 | wx_cv_type_statvfs_t="struct statfs" |
a0b9e27f | 17463 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17464 | #define HAVE_STATFS 1 |
a0b9e27f | 17465 | EOF |
4f14bcd8 GD |
17466 | |
17467 | else | |
a0b9e27f | 17468 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 |
8d90d2f2 | 17469 | echo "configure:17470: checking for statvfs" >&5 |
a0b9e27f MB |
17470 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
17471 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 17472 | else |
a0b9e27f | 17473 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 17474 | #line 17475 "configure" |
af15babd | 17475 | #include "confdefs.h" |
af15babd | 17476 | |
54ab82b3 VZ |
17477 | #include <stddef.h> |
17478 | #include <sys/statvfs.h> | |
a0b9e27f MB |
17479 | |
17480 | int main() { | |
af15babd | 17481 | |
54ab82b3 | 17482 | statvfs("/", NULL); |
a0b9e27f MB |
17483 | |
17484 | ; return 0; } | |
17485 | EOF | |
8d90d2f2 | 17486 | if { (eval echo configure:17487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 17487 | rm -rf conftest* |
54ab82b3 | 17488 | wx_cv_func_statvfs=yes |
af15babd | 17489 | else |
a0b9e27f MB |
17490 | echo "configure: failed program was:" >&5 |
17491 | cat conftest.$ac_ext >&5 | |
17492 | rm -rf conftest* | |
54ab82b3 | 17493 | wx_cv_func_statvfs=no |
a0b9e27f | 17494 | |
5c6fa7d2 | 17495 | fi |
a0b9e27f MB |
17496 | rm -f conftest* |
17497 | ||
247f5006 | 17498 | fi |
a0b9e27f MB |
17499 | |
17500 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 | |
af15babd | 17501 | |
4f14bcd8 | 17502 | if test "$wx_cv_func_statvfs" = "yes"; then |
54ab82b3 VZ |
17503 | |
17504 | ac_ext=C | |
17505 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17506 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17507 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17508 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17509 | cross_compiling=$ac_cv_prog_cxx_cross | |
17510 | ||
17511 | ||
17512 | echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6 | |
8d90d2f2 | 17513 | echo "configure:17514: checking for statvfs argument type" >&5 |
54ab82b3 VZ |
17514 | if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then |
17515 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17516 | else | |
17517 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 17518 | #line 17519 "configure" |
54ab82b3 VZ |
17519 | #include "confdefs.h" |
17520 | ||
17521 | #include <sys/statvfs.h> | |
17522 | ||
17523 | int main() { | |
17524 | ||
17525 | long l; | |
17526 | statvfs_t fs; | |
17527 | statvfs("/", &fs); | |
17528 | l = fs.f_bsize; | |
17529 | l += fs.f_blocks; | |
17530 | l += fs.f_bavail; | |
17531 | ||
17532 | ; return 0; } | |
17533 | EOF | |
8d90d2f2 | 17534 | if { (eval echo configure:17535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54ab82b3 VZ |
17535 | rm -rf conftest* |
17536 | wx_cv_type_statvfs_t=statvfs_t | |
17537 | else | |
17538 | echo "configure: failed program was:" >&5 | |
17539 | cat conftest.$ac_ext >&5 | |
17540 | rm -rf conftest* | |
17541 | ||
17542 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 17543 | #line 17544 "configure" |
54ab82b3 VZ |
17544 | #include "confdefs.h" |
17545 | ||
17546 | #include <sys/statvfs.h> | |
17547 | ||
17548 | int main() { | |
17549 | ||
17550 | long l; | |
65d8ef1e | 17551 | struct statvfs fs; |
54ab82b3 VZ |
17552 | statvfs("/", &fs); |
17553 | l = fs.f_bsize; | |
17554 | l += fs.f_blocks; | |
17555 | l += fs.f_bavail; | |
17556 | ||
17557 | ; return 0; } | |
17558 | EOF | |
8d90d2f2 | 17559 | if { (eval echo configure:17560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54ab82b3 VZ |
17560 | rm -rf conftest* |
17561 | wx_cv_type_statvfs_t="struct statvfs" | |
17562 | else | |
17563 | echo "configure: failed program was:" >&5 | |
17564 | cat conftest.$ac_ext >&5 | |
17565 | rm -rf conftest* | |
17566 | wx_cv_type_statvfs_t="unknown" | |
17567 | ||
17568 | fi | |
17569 | rm -f conftest* | |
17570 | ||
17571 | ||
17572 | fi | |
17573 | rm -f conftest* | |
17574 | ||
17575 | fi | |
17576 | ||
17577 | echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6 | |
17578 | ||
17579 | ac_ext=c | |
17580 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17581 | ac_cpp='$CPP $CPPFLAGS' | |
17582 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17583 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17584 | cross_compiling=$ac_cv_prog_cc_cross | |
17585 | ||
17586 | ||
17587 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
17588 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17589 | #define HAVE_STATVFS 1 |
a0b9e27f | 17590 | EOF |
af15babd | 17591 | |
54ab82b3 | 17592 | fi |
4f14bcd8 | 17593 | else |
54ab82b3 | 17594 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
17595 | fi |
17596 | fi | |
af15babd | 17597 | |
54ab82b3 VZ |
17598 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
17599 | cat >> confdefs.h <<EOF | |
17600 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
17601 | EOF | |
17602 | ||
17603 | else | |
17604 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
17605 | fi | |
17606 | ||
4f14bcd8 | 17607 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 17608 | for ac_func in fcntl flock |
af15babd | 17609 | do |
a0b9e27f | 17610 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 17611 | echo "configure:17612: checking for $ac_func" >&5 |
a0b9e27f MB |
17612 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17613 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17614 | else | |
17615 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 17616 | #line 17617 "configure" |
af15babd VZ |
17617 | #include "confdefs.h" |
17618 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17619 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17620 | #include <assert.h> |
17621 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd | 17622 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17623 | builtin and then its argument prototype would still apply. */ |
17624 | char $ac_func(); | |
17625 | ||
17626 | int main() { | |
17627 | ||
af15babd VZ |
17628 | /* The GNU C library defines this for functions which it implements |
17629 | to always fail with ENOSYS. Some functions are actually named | |
17630 | something starting with __ and the normal name is an alias. */ | |
17631 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17632 | choke me | |
17633 | #else | |
a0b9e27f | 17634 | $ac_func(); |
af15babd VZ |
17635 | #endif |
17636 | ||
a0b9e27f MB |
17637 | ; return 0; } |
17638 | EOF | |
8d90d2f2 | 17639 | if { (eval echo configure:17640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17640 | rm -rf conftest* |
17641 | eval "ac_cv_func_$ac_func=yes" | |
17642 | else | |
17643 | echo "configure: failed program was:" >&5 | |
17644 | cat conftest.$ac_ext >&5 | |
17645 | rm -rf conftest* | |
17646 | eval "ac_cv_func_$ac_func=no" | |
17647 | fi | |
17648 | rm -f conftest* | |
17649 | fi | |
17650 | ||
17651 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17652 | echo "$ac_t""yes" 1>&6 | |
17653 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17654 | cat >> confdefs.h <<EOF | |
17655 | #define $ac_tr_func 1 | |
17656 | EOF | |
4f14bcd8 | 17657 | break |
a0b9e27f MB |
17658 | else |
17659 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
17660 | fi |
17661 | done | |
17662 | ||
8284b0c5 | 17663 | |
4f14bcd8 | 17664 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
a0b9e27f | 17665 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f14bcd8 GD |
17666 | wxUSE_SNGLINST_CHECKER=no |
17667 | fi | |
17668 | fi | |
af15babd | 17669 | |
4f14bcd8 | 17670 | for ac_func in timegm |
af15babd | 17671 | do |
a0b9e27f | 17672 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 17673 | echo "configure:17674: checking for $ac_func" >&5 |
a0b9e27f MB |
17674 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17675 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17676 | else | |
17677 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 17678 | #line 17679 "configure" |
af15babd VZ |
17679 | #include "confdefs.h" |
17680 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17681 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17682 | #include <assert.h> |
17683 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17684 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17685 | builtin and then its argument prototype would still apply. */ |
17686 | char $ac_func(); | |
17687 | ||
17688 | int main() { | |
17689 | ||
af15babd VZ |
17690 | /* The GNU C library defines this for functions which it implements |
17691 | to always fail with ENOSYS. Some functions are actually named | |
17692 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
17693 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
17694 | choke me | |
17695 | #else | |
a0b9e27f | 17696 | $ac_func(); |
247f5006 VZ |
17697 | #endif |
17698 | ||
a0b9e27f MB |
17699 | ; return 0; } |
17700 | EOF | |
8d90d2f2 | 17701 | if { (eval echo configure:17702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17702 | rm -rf conftest* |
17703 | eval "ac_cv_func_$ac_func=yes" | |
17704 | else | |
17705 | echo "configure: failed program was:" >&5 | |
17706 | cat conftest.$ac_ext >&5 | |
17707 | rm -rf conftest* | |
17708 | eval "ac_cv_func_$ac_func=no" | |
17709 | fi | |
17710 | rm -f conftest* | |
17711 | fi | |
703e0a69 | 17712 | |
a0b9e27f MB |
17713 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17714 | echo "$ac_t""yes" 1>&6 | |
17715 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17716 | cat >> confdefs.h <<EOF | |
17717 | #define $ac_tr_func 1 | |
17718 | EOF | |
17719 | ||
17720 | else | |
17721 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
17722 | fi |
17723 | done | |
17724 | ||
8284b0c5 | 17725 | |
4f14bcd8 | 17726 | for ac_func in putenv setenv |
10f2d63a | 17727 | do |
a0b9e27f | 17728 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 17729 | echo "configure:17730: checking for $ac_func" >&5 |
a0b9e27f MB |
17730 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17731 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17732 | else | |
17733 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 17734 | #line 17735 "configure" |
af15babd VZ |
17735 | #include "confdefs.h" |
17736 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17737 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17738 | #include <assert.h> |
17739 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17740 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17741 | builtin and then its argument prototype would still apply. */ |
17742 | char $ac_func(); | |
17743 | ||
17744 | int main() { | |
17745 | ||
af15babd VZ |
17746 | /* The GNU C library defines this for functions which it implements |
17747 | to always fail with ENOSYS. Some functions are actually named | |
17748 | something starting with __ and the normal name is an alias. */ | |
17749 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17750 | choke me | |
17751 | #else | |
a0b9e27f | 17752 | $ac_func(); |
af15babd VZ |
17753 | #endif |
17754 | ||
a0b9e27f MB |
17755 | ; return 0; } |
17756 | EOF | |
8d90d2f2 | 17757 | if { (eval echo configure:17758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17758 | rm -rf conftest* |
17759 | eval "ac_cv_func_$ac_func=yes" | |
17760 | else | |
17761 | echo "configure: failed program was:" >&5 | |
17762 | cat conftest.$ac_ext >&5 | |
17763 | rm -rf conftest* | |
17764 | eval "ac_cv_func_$ac_func=no" | |
17765 | fi | |
17766 | rm -f conftest* | |
17767 | fi | |
17768 | ||
17769 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17770 | echo "$ac_t""yes" 1>&6 | |
17771 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17772 | cat >> confdefs.h <<EOF | |
17773 | #define $ac_tr_func 1 | |
17774 | EOF | |
4f14bcd8 | 17775 | break |
a0b9e27f MB |
17776 | else |
17777 | echo "$ac_t""no" 1>&6 | |
af15babd | 17778 | fi |
af15babd VZ |
17779 | done |
17780 | ||
8284b0c5 | 17781 | |
4f14bcd8 GD |
17782 | HAVE_SOME_SLEEP_FUNC=0 |
17783 | if test "$USE_BEOS" = 1; then | |
a0b9e27f | 17784 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17785 | #define HAVE_SLEEP 1 |
a0b9e27f | 17786 | EOF |
af15babd | 17787 | |
4f14bcd8 | 17788 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
17789 | fi |
17790 | ||
4f14bcd8 | 17791 | if test "$USE_DARWIN" = 1; then |
a0b9e27f | 17792 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17793 | #define HAVE_USLEEP 1 |
a0b9e27f | 17794 | EOF |
10f2d63a | 17795 | |
4f14bcd8 | 17796 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
17797 | fi |
17798 | ||
4f14bcd8 GD |
17799 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
17800 | POSIX4_LINK= | |
a0b9e27f | 17801 | for ac_func in nanosleep |
4f14bcd8 | 17802 | do |
a0b9e27f | 17803 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 17804 | echo "configure:17805: checking for $ac_func" >&5 |
a0b9e27f MB |
17805 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17806 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17807 | else | |
17808 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 17809 | #line 17810 "configure" |
10f2d63a | 17810 | #include "confdefs.h" |
4f14bcd8 | 17811 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17812 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 17813 | #include <assert.h> |
10f2d63a VZ |
17814 | /* Override any gcc2 internal prototype to avoid an error. */ |
17815 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17816 | builtin and then its argument prototype would still apply. */ |
17817 | char $ac_func(); | |
17818 | ||
17819 | int main() { | |
17820 | ||
4f14bcd8 GD |
17821 | /* The GNU C library defines this for functions which it implements |
17822 | to always fail with ENOSYS. Some functions are actually named | |
17823 | something starting with __ and the normal name is an alias. */ | |
17824 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17825 | choke me | |
17826 | #else | |
a0b9e27f | 17827 | $ac_func(); |
4f14bcd8 GD |
17828 | #endif |
17829 | ||
a0b9e27f MB |
17830 | ; return 0; } |
17831 | EOF | |
8d90d2f2 | 17832 | if { (eval echo configure:17833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17833 | rm -rf conftest* |
17834 | eval "ac_cv_func_$ac_func=yes" | |
17835 | else | |
17836 | echo "configure: failed program was:" >&5 | |
17837 | cat conftest.$ac_ext >&5 | |
17838 | rm -rf conftest* | |
17839 | eval "ac_cv_func_$ac_func=no" | |
17840 | fi | |
17841 | rm -f conftest* | |
17842 | fi | |
17843 | ||
17844 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17845 | echo "$ac_t""yes" 1>&6 | |
17846 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17847 | cat >> confdefs.h <<EOF | |
17848 | #define $ac_tr_func 1 | |
17849 | EOF | |
17850 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17851 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 17852 | EOF |
4f14bcd8 | 17853 | |
10f2d63a | 17854 | else |
a0b9e27f MB |
17855 | echo "$ac_t""no" 1>&6 |
17856 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
8d90d2f2 | 17857 | echo "configure:17858: checking for nanosleep in -lposix4" >&5 |
a0b9e27f MB |
17858 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
17859 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17860 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17861 | else |
a0b9e27f | 17862 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17863 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 17864 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 17865 | #line 17866 "configure" |
10f2d63a VZ |
17866 | #include "confdefs.h" |
17867 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17868 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17869 | builtin and then its argument prototype would still apply. */ |
17870 | char nanosleep(); | |
17871 | ||
17872 | int main() { | |
17873 | nanosleep() | |
17874 | ; return 0; } | |
17875 | EOF | |
8d90d2f2 | 17876 | if { (eval echo configure:17877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17877 | rm -rf conftest* |
17878 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17879 | else | |
17880 | echo "configure: failed program was:" >&5 | |
17881 | cat conftest.$ac_ext >&5 | |
17882 | rm -rf conftest* | |
17883 | eval "ac_cv_lib_$ac_lib_var=no" | |
17884 | fi | |
17885 | rm -f conftest* | |
17886 | LIBS="$ac_save_LIBS" | |
17887 | ||
17888 | fi | |
17889 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17890 | echo "$ac_t""yes" 1>&6 | |
17891 | ||
17892 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17893 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 17894 | EOF |
4f14bcd8 | 17895 | |
3d63bc3a | 17896 | POSIX4_LINK=" -lposix4" |
a0b9e27f | 17897 | |
10f2d63a | 17898 | else |
a0b9e27f | 17899 | echo "$ac_t""no" 1>&6 |
10f2d63a | 17900 | |
a0b9e27f | 17901 | for ac_func in usleep |
4f14bcd8 | 17902 | do |
a0b9e27f | 17903 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 17904 | echo "configure:17905: checking for $ac_func" >&5 |
a0b9e27f MB |
17905 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17906 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17907 | else | |
17908 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 17909 | #line 17910 "configure" |
10f2d63a | 17910 | #include "confdefs.h" |
4f14bcd8 | 17911 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17912 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17913 | #include <assert.h> |
17914 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17915 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17916 | builtin and then its argument prototype would still apply. */ |
17917 | char $ac_func(); | |
17918 | ||
17919 | int main() { | |
17920 | ||
4f14bcd8 GD |
17921 | /* The GNU C library defines this for functions which it implements |
17922 | to always fail with ENOSYS. Some functions are actually named | |
17923 | something starting with __ and the normal name is an alias. */ | |
17924 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17925 | choke me | |
17926 | #else | |
a0b9e27f | 17927 | $ac_func(); |
4f14bcd8 GD |
17928 | #endif |
17929 | ||
a0b9e27f MB |
17930 | ; return 0; } |
17931 | EOF | |
8d90d2f2 | 17932 | if { (eval echo configure:17933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17933 | rm -rf conftest* |
17934 | eval "ac_cv_func_$ac_func=yes" | |
17935 | else | |
17936 | echo "configure: failed program was:" >&5 | |
17937 | cat conftest.$ac_ext >&5 | |
17938 | rm -rf conftest* | |
17939 | eval "ac_cv_func_$ac_func=no" | |
17940 | fi | |
17941 | rm -f conftest* | |
17942 | fi | |
17943 | ||
17944 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17945 | echo "$ac_t""yes" 1>&6 | |
17946 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17947 | cat >> confdefs.h <<EOF | |
17948 | #define $ac_tr_func 1 | |
17949 | EOF | |
17950 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17951 | #define HAVE_USLEEP 1 |
a0b9e27f | 17952 | EOF |
4f14bcd8 | 17953 | |
698dcdb6 | 17954 | else |
a0b9e27f MB |
17955 | echo "$ac_t""no" 1>&6 |
17956 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
17957 | ||
10f2d63a | 17958 | fi |
4f14bcd8 | 17959 | done |
10f2d63a | 17960 | |
a0b9e27f MB |
17961 | |
17962 | ||
6232543b | 17963 | fi |
10f2d63a | 17964 | |
a0b9e27f MB |
17965 | |
17966 | ||
1e487827 | 17967 | fi |
4f14bcd8 | 17968 | done |
703e0a69 | 17969 | |
10f2d63a VZ |
17970 | fi |
17971 | ||
4f14bcd8 | 17972 | for ac_func in uname gethostname |
70846f0a | 17973 | do |
a0b9e27f | 17974 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 17975 | echo "configure:17976: checking for $ac_func" >&5 |
a0b9e27f MB |
17976 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17977 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17978 | else | |
17979 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 17980 | #line 17981 "configure" |
70846f0a VZ |
17981 | #include "confdefs.h" |
17982 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17983 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
17984 | #include <assert.h> |
17985 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17986 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17987 | builtin and then its argument prototype would still apply. */ |
17988 | char $ac_func(); | |
17989 | ||
17990 | int main() { | |
17991 | ||
70846f0a VZ |
17992 | /* The GNU C library defines this for functions which it implements |
17993 | to always fail with ENOSYS. Some functions are actually named | |
17994 | something starting with __ and the normal name is an alias. */ | |
17995 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17996 | choke me | |
17997 | #else | |
a0b9e27f | 17998 | $ac_func(); |
70846f0a VZ |
17999 | #endif |
18000 | ||
a0b9e27f MB |
18001 | ; return 0; } |
18002 | EOF | |
8d90d2f2 | 18003 | if { (eval echo configure:18004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18004 | rm -rf conftest* |
18005 | eval "ac_cv_func_$ac_func=yes" | |
18006 | else | |
18007 | echo "configure: failed program was:" >&5 | |
18008 | cat conftest.$ac_ext >&5 | |
18009 | rm -rf conftest* | |
18010 | eval "ac_cv_func_$ac_func=no" | |
18011 | fi | |
18012 | rm -f conftest* | |
18013 | fi | |
18014 | ||
18015 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18016 | echo "$ac_t""yes" 1>&6 | |
18017 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18018 | cat >> confdefs.h <<EOF | |
18019 | #define $ac_tr_func 1 | |
18020 | EOF | |
4f14bcd8 | 18021 | break |
a0b9e27f MB |
18022 | else |
18023 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
18024 | fi |
18025 | done | |
18026 | ||
8284b0c5 MB |
18027 | |
18028 | ||
a0b9e27f MB |
18029 | ac_ext=C |
18030 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 18031 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
18032 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18033 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18034 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 18035 | |
4f14bcd8 GD |
18036 | |
18037 | for ac_func in strtok_r | |
10f2d63a | 18038 | do |
a0b9e27f | 18039 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 18040 | echo "configure:18041: checking for $ac_func" >&5 |
a0b9e27f MB |
18041 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18042 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18043 | else | |
18044 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 18045 | #line 18046 "configure" |
10f2d63a | 18046 | #include "confdefs.h" |
4f14bcd8 | 18047 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18048 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18049 | #include <assert.h> |
18050 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18051 | #ifdef __cplusplus | |
18052 | extern "C" | |
18053 | #endif | |
18054 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18055 | builtin and then its argument prototype would still apply. */ |
18056 | char $ac_func(); | |
18057 | ||
18058 | int main() { | |
18059 | ||
4f14bcd8 GD |
18060 | /* The GNU C library defines this for functions which it implements |
18061 | to always fail with ENOSYS. Some functions are actually named | |
18062 | something starting with __ and the normal name is an alias. */ | |
18063 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18064 | choke me | |
18065 | #else | |
a0b9e27f | 18066 | $ac_func(); |
4f14bcd8 GD |
18067 | #endif |
18068 | ||
a0b9e27f MB |
18069 | ; return 0; } |
18070 | EOF | |
8d90d2f2 | 18071 | if { (eval echo configure:18072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18072 | rm -rf conftest* |
18073 | eval "ac_cv_func_$ac_func=yes" | |
18074 | else | |
18075 | echo "configure: failed program was:" >&5 | |
18076 | cat conftest.$ac_ext >&5 | |
18077 | rm -rf conftest* | |
18078 | eval "ac_cv_func_$ac_func=no" | |
18079 | fi | |
18080 | rm -f conftest* | |
18081 | fi | |
4f14bcd8 | 18082 | |
a0b9e27f MB |
18083 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18084 | echo "$ac_t""yes" 1>&6 | |
18085 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18086 | cat >> confdefs.h <<EOF | |
18087 | #define $ac_tr_func 1 | |
18088 | EOF | |
18089 | ||
18090 | else | |
18091 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
18092 | fi |
18093 | done | |
18094 | ||
8284b0c5 | 18095 | |
4f14bcd8 | 18096 | ac_ext=c |
a0b9e27f | 18097 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 18098 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
18099 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18100 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18101 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 18102 | |
5c6fa7d2 | 18103 | |
8284b0c5 | 18104 | INET_LINK= |
4f14bcd8 GD |
18105 | for ac_func in inet_addr |
18106 | do | |
a0b9e27f | 18107 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 18108 | echo "configure:18109: checking for $ac_func" >&5 |
a0b9e27f MB |
18109 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18110 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18111 | else | |
18112 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 18113 | #line 18114 "configure" |
10f2d63a | 18114 | #include "confdefs.h" |
4f14bcd8 | 18115 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18116 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18117 | #include <assert.h> |
10f2d63a VZ |
18118 | /* Override any gcc2 internal prototype to avoid an error. */ |
18119 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18120 | builtin and then its argument prototype would still apply. */ |
18121 | char $ac_func(); | |
18122 | ||
18123 | int main() { | |
18124 | ||
4f14bcd8 GD |
18125 | /* The GNU C library defines this for functions which it implements |
18126 | to always fail with ENOSYS. Some functions are actually named | |
18127 | something starting with __ and the normal name is an alias. */ | |
18128 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18129 | choke me | |
18130 | #else | |
a0b9e27f | 18131 | $ac_func(); |
4f14bcd8 GD |
18132 | #endif |
18133 | ||
a0b9e27f MB |
18134 | ; return 0; } |
18135 | EOF | |
8d90d2f2 | 18136 | if { (eval echo configure:18137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18137 | rm -rf conftest* |
18138 | eval "ac_cv_func_$ac_func=yes" | |
18139 | else | |
18140 | echo "configure: failed program was:" >&5 | |
18141 | cat conftest.$ac_ext >&5 | |
18142 | rm -rf conftest* | |
18143 | eval "ac_cv_func_$ac_func=no" | |
18144 | fi | |
18145 | rm -f conftest* | |
18146 | fi | |
18147 | ||
18148 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18149 | echo "$ac_t""yes" 1>&6 | |
18150 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18151 | cat >> confdefs.h <<EOF | |
18152 | #define $ac_tr_func 1 | |
18153 | EOF | |
18154 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18155 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 18156 | EOF |
10f2d63a VZ |
18157 | |
18158 | else | |
a0b9e27f MB |
18159 | echo "$ac_t""no" 1>&6 |
18160 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
8d90d2f2 | 18161 | echo "configure:18162: checking for inet_addr in -lnsl" >&5 |
a0b9e27f MB |
18162 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
18163 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18164 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18165 | else |
a0b9e27f | 18166 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18167 | LIBS="-lnsl $LIBS" |
a0b9e27f | 18168 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 18169 | #line 18170 "configure" |
10f2d63a VZ |
18170 | #include "confdefs.h" |
18171 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18172 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18173 | builtin and then its argument prototype would still apply. */ |
18174 | char inet_addr(); | |
18175 | ||
18176 | int main() { | |
18177 | inet_addr() | |
18178 | ; return 0; } | |
18179 | EOF | |
8d90d2f2 | 18180 | if { (eval echo configure:18181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18181 | rm -rf conftest* |
18182 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18183 | else | |
18184 | echo "configure: failed program was:" >&5 | |
18185 | cat conftest.$ac_ext >&5 | |
18186 | rm -rf conftest* | |
18187 | eval "ac_cv_lib_$ac_lib_var=no" | |
18188 | fi | |
18189 | rm -f conftest* | |
18190 | LIBS="$ac_save_LIBS" | |
18191 | ||
18192 | fi | |
18193 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18194 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 18195 | INET_LINK="nsl" |
10f2d63a | 18196 | else |
a0b9e27f MB |
18197 | echo "$ac_t""no" 1>&6 |
18198 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
8d90d2f2 | 18199 | echo "configure:18200: checking for inet_addr in -lresolv" >&5 |
a0b9e27f MB |
18200 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
18201 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18202 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18203 | else |
a0b9e27f | 18204 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18205 | LIBS="-lresolv $LIBS" |
a0b9e27f | 18206 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 18207 | #line 18208 "configure" |
7b4a847f | 18208 | #include "confdefs.h" |
5c6fa7d2 | 18209 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 18210 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18211 | builtin and then its argument prototype would still apply. */ |
18212 | char inet_addr(); | |
18213 | ||
18214 | int main() { | |
18215 | inet_addr() | |
18216 | ; return 0; } | |
18217 | EOF | |
8d90d2f2 | 18218 | if { (eval echo configure:18219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18219 | rm -rf conftest* |
18220 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18221 | else | |
18222 | echo "configure: failed program was:" >&5 | |
18223 | cat conftest.$ac_ext >&5 | |
18224 | rm -rf conftest* | |
18225 | eval "ac_cv_lib_$ac_lib_var=no" | |
18226 | fi | |
18227 | rm -f conftest* | |
18228 | LIBS="$ac_save_LIBS" | |
18229 | ||
18230 | fi | |
18231 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18232 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 18233 | INET_LINK="resolv" |
698dcdb6 | 18234 | else |
a0b9e27f MB |
18235 | echo "$ac_t""no" 1>&6 |
18236 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 | |
8d90d2f2 | 18237 | echo "configure:18238: checking for inet_addr in -lsocket" >&5 |
a0b9e27f MB |
18238 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
18239 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18240 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3c011993 | 18241 | else |
a0b9e27f | 18242 | ac_save_LIBS="$LIBS" |
3c011993 | 18243 | LIBS="-lsocket $LIBS" |
a0b9e27f | 18244 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 18245 | #line 18246 "configure" |
3c011993 VZ |
18246 | #include "confdefs.h" |
18247 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18248 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18249 | builtin and then its argument prototype would still apply. */ |
18250 | char inet_addr(); | |
4f14bcd8 | 18251 | |
a0b9e27f MB |
18252 | int main() { |
18253 | inet_addr() | |
18254 | ; return 0; } | |
18255 | EOF | |
8d90d2f2 | 18256 | if { (eval echo configure:18257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18257 | rm -rf conftest* |
18258 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18259 | else | |
18260 | echo "configure: failed program was:" >&5 | |
18261 | cat conftest.$ac_ext >&5 | |
18262 | rm -rf conftest* | |
18263 | eval "ac_cv_lib_$ac_lib_var=no" | |
8284b0c5 | 18264 | fi |
a0b9e27f MB |
18265 | rm -f conftest* |
18266 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 18267 | |
7b4a847f | 18268 | fi |
a0b9e27f MB |
18269 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18270 | echo "$ac_t""yes" 1>&6 | |
18271 | INET_LINK="socket" | |
18272 | ||
18273 | else | |
18274 | echo "$ac_t""no" 1>&6 | |
18275 | fi | |
579d8138 | 18276 | |
a0b9e27f | 18277 | |
5c6fa7d2 | 18278 | fi |
52127426 | 18279 | |
a0b9e27f MB |
18280 | |
18281 | fi | |
247f5006 | 18282 | |
a0b9e27f | 18283 | |
8284b0c5 | 18284 | |
698dcdb6 | 18285 | fi |
4f14bcd8 GD |
18286 | done |
18287 | ||
8284b0c5 | 18288 | |
4f14bcd8 GD |
18289 | for ac_func in inet_aton |
18290 | do | |
a0b9e27f | 18291 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 18292 | echo "configure:18293: checking for $ac_func" >&5 |
a0b9e27f MB |
18293 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18294 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18295 | else | |
18296 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 18297 | #line 18298 "configure" |
f6bcfd97 | 18298 | #include "confdefs.h" |
4f14bcd8 | 18299 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18300 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18301 | #include <assert.h> |
f6bcfd97 BP |
18302 | /* Override any gcc2 internal prototype to avoid an error. */ |
18303 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18304 | builtin and then its argument prototype would still apply. */ |
18305 | char $ac_func(); | |
18306 | ||
18307 | int main() { | |
18308 | ||
4f14bcd8 GD |
18309 | /* The GNU C library defines this for functions which it implements |
18310 | to always fail with ENOSYS. Some functions are actually named | |
18311 | something starting with __ and the normal name is an alias. */ | |
18312 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18313 | choke me | |
18314 | #else | |
a0b9e27f | 18315 | $ac_func(); |
4f14bcd8 GD |
18316 | #endif |
18317 | ||
a0b9e27f MB |
18318 | ; return 0; } |
18319 | EOF | |
8d90d2f2 | 18320 | if { (eval echo configure:18321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18321 | rm -rf conftest* |
18322 | eval "ac_cv_func_$ac_func=yes" | |
18323 | else | |
18324 | echo "configure: failed program was:" >&5 | |
18325 | cat conftest.$ac_ext >&5 | |
18326 | rm -rf conftest* | |
18327 | eval "ac_cv_func_$ac_func=no" | |
18328 | fi | |
18329 | rm -f conftest* | |
18330 | fi | |
18331 | ||
18332 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18333 | echo "$ac_t""yes" 1>&6 | |
18334 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18335 | cat >> confdefs.h <<EOF | |
18336 | #define $ac_tr_func 1 | |
18337 | EOF | |
18338 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18339 | #define HAVE_INET_ATON 1 |
a0b9e27f | 18340 | EOF |
4f14bcd8 | 18341 | |
10f2d63a | 18342 | else |
a0b9e27f MB |
18343 | echo "$ac_t""no" 1>&6 |
18344 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
8d90d2f2 | 18345 | echo "configure:18346: checking for inet_aton in -l$INET_LINK" >&5 |
a0b9e27f MB |
18346 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
18347 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18348 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 18349 | else |
a0b9e27f | 18350 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18351 | LIBS="-l$INET_LINK $LIBS" |
a0b9e27f | 18352 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 18353 | #line 18354 "configure" |
10f2d63a | 18354 | #include "confdefs.h" |
6232543b | 18355 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 18356 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18357 | builtin and then its argument prototype would still apply. */ |
18358 | char inet_aton(); | |
18359 | ||
18360 | int main() { | |
18361 | inet_aton() | |
18362 | ; return 0; } | |
18363 | EOF | |
8d90d2f2 | 18364 | if { (eval echo configure:18365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18365 | rm -rf conftest* |
18366 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18367 | else | |
18368 | echo "configure: failed program was:" >&5 | |
18369 | cat conftest.$ac_ext >&5 | |
18370 | rm -rf conftest* | |
18371 | eval "ac_cv_lib_$ac_lib_var=no" | |
18372 | fi | |
18373 | rm -f conftest* | |
18374 | LIBS="$ac_save_LIBS" | |
4f14bcd8 | 18375 | |
10f2d63a | 18376 | fi |
a0b9e27f MB |
18377 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18378 | echo "$ac_t""yes" 1>&6 | |
18379 | cat >> confdefs.h <<\EOF | |
18380 | #define HAVE_INET_ATON 1 | |
18381 | EOF | |
10f2d63a | 18382 | |
a0b9e27f MB |
18383 | else |
18384 | echo "$ac_t""no" 1>&6 | |
18385 | fi | |
247f5006 | 18386 | |
a0b9e27f | 18387 | |
10f2d63a | 18388 | fi |
4f14bcd8 | 18389 | done |
10f2d63a | 18390 | |
8284b0c5 | 18391 | |
4f14bcd8 | 18392 | if test "x$INET_LINK" != "x"; then |
a0b9e27f | 18393 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18394 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 18395 | EOF |
4f14bcd8 | 18396 | |
3d63bc3a | 18397 | INET_LINK=" -l$INET_LINK" |
6232543b | 18398 | fi |
10f2d63a | 18399 | |
1e487827 | 18400 | fi |
703e0a69 | 18401 | |
8284b0c5 | 18402 | |
a0b9e27f | 18403 | cat > confcache <<\EOF |
4f14bcd8 GD |
18404 | # This file is a shell script that caches the results of configure |
18405 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
18406 | # scripts and configure runs. It is not useful on other systems. |
18407 | # If it contains results you don't want to keep, you may remove or edit it. | |
4f14bcd8 | 18408 | # |
a0b9e27f MB |
18409 | # By default, configure uses ./config.cache as the cache file, |
18410 | # creating it if it does not exist already. You can give configure | |
18411 | # the --cache-file=FILE option to use a different cache file; that is | |
18412 | # what configure does when it calls configure scripts in | |
18413 | # subdirectories, so they share the cache. | |
18414 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
18415 | # config.status only pays attention to the cache file if you give it the | |
18416 | # --recheck option to rerun configure. | |
4f14bcd8 | 18417 | # |
a0b9e27f | 18418 | EOF |
4f14bcd8 GD |
18419 | # The following way of writing the cache mishandles newlines in values, |
18420 | # but we know of no workaround that is simple, portable, and efficient. | |
18421 | # So, don't put newlines in cache variables' values. | |
18422 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18423 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
18424 | (set) 2>&1 | |
18425 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18426 | *ac_space=\ *) | |
18427 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
18428 | # turns \\\\ into \\, and sed turns \\ into \). | |
18429 | sed -n \ | |
18430 | -e "s/'/'\\\\''/g" \ | |
18431 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
18432 | ;; | |
18433 | *) | |
18434 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18435 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
18436 | ;; | |
18437 | esac >> confcache | |
18438 | if cmp -s $cache_file confcache; then | |
18439 | : | |
18440 | else | |
4f14bcd8 | 18441 | if test -w $cache_file; then |
a0b9e27f MB |
18442 | echo "updating cache $cache_file" |
18443 | cat confcache > $cache_file | |
f6bcfd97 | 18444 | else |
4f14bcd8 | 18445 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 18446 | fi |
4f14bcd8 GD |
18447 | fi |
18448 | rm -f confcache | |
f6bcfd97 | 18449 | |
8284b0c5 | 18450 | |
a0b9e27f | 18451 | |
009fead0 | 18452 | CPP_MT_FLAG= |
4f14bcd8 GD |
18453 | if test "$TOOLKIT" != "MSW"; then |
18454 | ||
a0b9e27f | 18455 | |
7274f1c7 | 18456 | THREADS_LINK= |
009fead0 | 18457 | THREADS_CFLAGS= |
7274f1c7 RL |
18458 | |
18459 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 18460 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 18461 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
18462 | wxUSE_THREADS="no" |
18463 | fi | |
4f14bcd8 | 18464 | fi |
4f14bcd8 | 18465 | |
7274f1c7 | 18466 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f MB |
18467 | |
18468 | ||
009fead0 VZ |
18469 | THREAD_OPTS="-pthread" |
18470 | case "${host}" in | |
18471 | *-*-solaris2* | *-*-sunos4* ) | |
18472 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 18473 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
18474 | else |
18475 | THREAD_OPTS="-mt $THREAD_OPTS" | |
18476 | fi | |
18477 | ;; | |
18478 | *-*-freebsd*) | |
18479 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
18480 | ;; | |
17234b26 MB |
18481 | *-*-darwin* | *-*-cygwin* ) |
18482 | THREAD_OPTS="" | |
4101db81 | 18483 | ;; |
8f4a9a10 | 18484 | *-*-aix*) |
009fead0 VZ |
18485 | THREAD_OPTS="pthreads" |
18486 | ;; | |
009fead0 | 18487 | esac |
4f14bcd8 | 18488 | |
02a1dfba | 18489 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 18490 | |
009fead0 VZ |
18491 | THREADS_OK=no |
18492 | for flag in $THREAD_OPTS; do | |
18493 | case $flag in | |
18494 | none) | |
a0b9e27f | 18495 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 |
8d90d2f2 | 18496 | echo "configure:18497: checking whether pthreads work without any flags" >&5 |
009fead0 | 18497 | ;; |
698dcdb6 | 18498 | |
009fead0 | 18499 | -*) |
a0b9e27f | 18500 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 |
8d90d2f2 | 18501 | echo "configure:18502: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
18502 | THREADS_CFLAGS="$flag" |
18503 | ;; | |
698dcdb6 | 18504 | |
009fead0 | 18505 | *) |
a0b9e27f | 18506 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 |
8d90d2f2 | 18507 | echo "configure:18508: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
18508 | THREADS_LINK="-l$flag" |
18509 | ;; | |
18510 | esac | |
10f2d63a | 18511 | |
009fead0 VZ |
18512 | save_LIBS="$LIBS" |
18513 | save_CFLAGS="$CFLAGS" | |
18514 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 18515 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 18516 | |
a0b9e27f | 18517 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 18518 | #line 18519 "configure" |
009fead0 VZ |
18519 | #include "confdefs.h" |
18520 | #include <pthread.h> | |
a0b9e27f | 18521 | int main() { |
009fead0 | 18522 | pthread_create(0,0,0,0); |
a0b9e27f MB |
18523 | ; return 0; } |
18524 | EOF | |
8d90d2f2 | 18525 | if { (eval echo configure:18526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 18526 | rm -rf conftest* |
009fead0 | 18527 | THREADS_OK=yes |
10f2d63a | 18528 | else |
a0b9e27f MB |
18529 | echo "configure: failed program was:" >&5 |
18530 | cat conftest.$ac_ext >&5 | |
6232543b | 18531 | fi |
a0b9e27f | 18532 | rm -f conftest* |
698dcdb6 | 18533 | |
009fead0 VZ |
18534 | LIBS="$save_LIBS" |
18535 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 18536 | |
a0b9e27f | 18537 | echo "$ac_t""$THREADS_OK" 1>&6 |
009fead0 VZ |
18538 | if test "x$THREADS_OK" = "xyes"; then |
18539 | break; | |
18540 | fi | |
d9b9876f | 18541 | |
009fead0 VZ |
18542 | THREADS_LINK="" |
18543 | THREADS_CFLAGS="" | |
18544 | done | |
4f14bcd8 | 18545 | |
009fead0 VZ |
18546 | if test "x$THREADS_OK" != "xyes"; then |
18547 | wxUSE_THREADS=no | |
a0b9e27f | 18548 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
009fead0 | 18549 | else |
db82f09e VZ |
18550 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
18551 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 18552 | |
a0b9e27f | 18553 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
8d90d2f2 | 18554 | echo "configure:18555: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
18555 | flag=no |
18556 | case "${host}" in | |
2b5f62a0 VZ |
18557 | *-aix*) |
18558 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
18559 | flag="-D_THREAD_SAFE" | |
18560 | ;; | |
18561 | *-freebsd*) | |
009fead0 VZ |
18562 | flag="-D_THREAD_SAFE" |
18563 | ;; | |
06313569 GD |
18564 | *-hp-hpux* ) |
18565 | flag="-D_REENTRANT" | |
18566 | ;; | |
009fead0 VZ |
18567 | *solaris* | alpha*-osf*) |
18568 | flag="-D_REENTRANT" | |
18569 | ;; | |
18570 | esac | |
a0b9e27f | 18571 | echo "$ac_t""${flag}" 1>&6 |
009fead0 | 18572 | if test "x$flag" != xno; then |
04727afd | 18573 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
18574 | fi |
18575 | ||
009fead0 | 18576 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 18577 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
18578 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
18579 | fi | |
18580 | fi | |
4f14bcd8 | 18581 | fi |
4f14bcd8 | 18582 | |
7274f1c7 | 18583 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f | 18584 | for ac_func in thr_setconcurrency |
4f14bcd8 | 18585 | do |
a0b9e27f | 18586 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 18587 | echo "configure:18588: checking for $ac_func" >&5 |
a0b9e27f MB |
18588 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18589 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18590 | else | |
18591 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 18592 | #line 18593 "configure" |
d9b9876f | 18593 | #include "confdefs.h" |
4f14bcd8 | 18594 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18595 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18596 | #include <assert.h> |
18597 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18598 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18599 | builtin and then its argument prototype would still apply. */ |
18600 | char $ac_func(); | |
18601 | ||
18602 | int main() { | |
18603 | ||
4f14bcd8 GD |
18604 | /* The GNU C library defines this for functions which it implements |
18605 | to always fail with ENOSYS. Some functions are actually named | |
18606 | something starting with __ and the normal name is an alias. */ | |
18607 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18608 | choke me | |
18609 | #else | |
a0b9e27f | 18610 | $ac_func(); |
4f14bcd8 GD |
18611 | #endif |
18612 | ||
a0b9e27f MB |
18613 | ; return 0; } |
18614 | EOF | |
8d90d2f2 | 18615 | if { (eval echo configure:18616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18616 | rm -rf conftest* |
18617 | eval "ac_cv_func_$ac_func=yes" | |
18618 | else | |
18619 | echo "configure: failed program was:" >&5 | |
18620 | cat conftest.$ac_ext >&5 | |
18621 | rm -rf conftest* | |
18622 | eval "ac_cv_func_$ac_func=no" | |
18623 | fi | |
18624 | rm -f conftest* | |
18625 | fi | |
698dcdb6 | 18626 | |
a0b9e27f MB |
18627 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18628 | echo "$ac_t""yes" 1>&6 | |
18629 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18630 | cat >> confdefs.h <<EOF | |
18631 | #define $ac_tr_func 1 | |
18632 | EOF | |
18633 | ||
18634 | else | |
18635 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 18636 | fi |
4f14bcd8 | 18637 | done |
10f2d63a | 18638 | |
8284b0c5 | 18639 | |
a0b9e27f | 18640 | for ac_hdr in sched.h |
4f14bcd8 | 18641 | do |
a0b9e27f MB |
18642 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18643 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8d90d2f2 | 18644 | echo "configure:18645: checking for $ac_hdr" >&5 |
a0b9e27f MB |
18645 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18646 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18647 | else | |
18648 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 18649 | #line 18650 "configure" |
247f5006 | 18650 | #include "confdefs.h" |
a0b9e27f MB |
18651 | #include <$ac_hdr> |
18652 | EOF | |
18653 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8d90d2f2 | 18654 | { (eval echo configure:18655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
18655 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18656 | if test -z "$ac_err"; then | |
18657 | rm -rf conftest* | |
18658 | eval "ac_cv_header_$ac_safe=yes" | |
18659 | else | |
18660 | echo "$ac_err" >&5 | |
18661 | echo "configure: failed program was:" >&5 | |
4f14bcd8 | 18662 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
18663 | rm -rf conftest* |
18664 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 18665 | fi |
a0b9e27f | 18666 | rm -f conftest* |
10f2d63a | 18667 | fi |
a0b9e27f MB |
18668 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18669 | echo "$ac_t""yes" 1>&6 | |
18670 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18671 | cat >> confdefs.h <<EOF | |
18672 | #define $ac_tr_hdr 1 | |
18673 | EOF | |
18674 | ||
18675 | else | |
18676 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 18677 | fi |
4f14bcd8 | 18678 | done |
f6bcfd97 | 18679 | |
009fead0 | 18680 | if test "$ac_cv_header_sched_h" = "yes"; then |
a0b9e27f | 18681 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 |
8d90d2f2 | 18682 | echo "configure:18683: checking for sched_yield" >&5 |
a0b9e27f MB |
18683 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
18684 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 18685 | else |
a0b9e27f | 18686 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 18687 | #line 18688 "configure" |
4f14bcd8 | 18688 | #include "confdefs.h" |
009fead0 | 18689 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18690 | which can conflict with char sched_yield(); below. */ |
009fead0 | 18691 | #include <assert.h> |
4f14bcd8 GD |
18692 | /* Override any gcc2 internal prototype to avoid an error. */ |
18693 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18694 | builtin and then its argument prototype would still apply. */ |
18695 | char sched_yield(); | |
18696 | ||
18697 | int main() { | |
18698 | ||
009fead0 VZ |
18699 | /* The GNU C library defines this for functions which it implements |
18700 | to always fail with ENOSYS. Some functions are actually named | |
18701 | something starting with __ and the normal name is an alias. */ | |
18702 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
18703 | choke me | |
18704 | #else | |
a0b9e27f | 18705 | sched_yield(); |
009fead0 VZ |
18706 | #endif |
18707 | ||
a0b9e27f MB |
18708 | ; return 0; } |
18709 | EOF | |
8d90d2f2 | 18710 | if { (eval echo configure:18711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18711 | rm -rf conftest* |
18712 | eval "ac_cv_func_sched_yield=yes" | |
18713 | else | |
18714 | echo "configure: failed program was:" >&5 | |
18715 | cat conftest.$ac_ext >&5 | |
18716 | rm -rf conftest* | |
18717 | eval "ac_cv_func_sched_yield=no" | |
18718 | fi | |
18719 | rm -f conftest* | |
18720 | fi | |
18721 | ||
18722 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
18723 | echo "$ac_t""yes" 1>&6 | |
18724 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18725 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 18726 | EOF |
10f2d63a | 18727 | |
4f14bcd8 | 18728 | else |
a0b9e27f | 18729 | echo "$ac_t""no" 1>&6 |
009fead0 | 18730 | |
a0b9e27f | 18731 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 |
8d90d2f2 | 18732 | echo "configure:18733: checking for sched_yield in -lposix4" >&5 |
a0b9e27f MB |
18733 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
18734 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18735 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 18736 | else |
a0b9e27f | 18737 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18738 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 18739 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 18740 | #line 18741 "configure" |
4f14bcd8 GD |
18741 | #include "confdefs.h" |
18742 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18743 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18744 | builtin and then its argument prototype would still apply. */ |
18745 | char sched_yield(); | |
18746 | ||
18747 | int main() { | |
18748 | sched_yield() | |
18749 | ; return 0; } | |
18750 | EOF | |
8d90d2f2 | 18751 | if { (eval echo configure:18752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18752 | rm -rf conftest* |
18753 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18754 | else | |
18755 | echo "configure: failed program was:" >&5 | |
18756 | cat conftest.$ac_ext >&5 | |
18757 | rm -rf conftest* | |
18758 | eval "ac_cv_lib_$ac_lib_var=no" | |
18759 | fi | |
18760 | rm -f conftest* | |
18761 | LIBS="$ac_save_LIBS" | |
18762 | ||
18763 | fi | |
18764 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18765 | echo "$ac_t""yes" 1>&6 | |
18766 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18767 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 18768 | EOF |
3d63bc3a | 18769 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 18770 | else |
a0b9e27f MB |
18771 | echo "$ac_t""no" 1>&6 |
18772 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
18773 | ||
54276ccf VZ |
18774 | fi |
18775 | ||
a0b9e27f MB |
18776 | |
18777 | ||
4f14bcd8 | 18778 | fi |
698dcdb6 | 18779 | |
009fead0 | 18780 | fi |
10f2d63a | 18781 | |
7274f1c7 | 18782 | HAVE_PRIOR_FUNCS=0 |
a0b9e27f | 18783 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
8d90d2f2 | 18784 | echo "configure:18785: checking for pthread_attr_getschedpolicy" >&5 |
a0b9e27f MB |
18785 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
18786 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 18787 | else |
a0b9e27f | 18788 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 18789 | #line 18790 "configure" |
422107f9 | 18790 | #include "confdefs.h" |
009fead0 | 18791 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18792 | which can conflict with char pthread_attr_getschedpolicy(); below. */ |
009fead0 | 18793 | #include <assert.h> |
4f14bcd8 GD |
18794 | /* Override any gcc2 internal prototype to avoid an error. */ |
18795 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18796 | builtin and then its argument prototype would still apply. */ |
18797 | char pthread_attr_getschedpolicy(); | |
18798 | ||
18799 | int main() { | |
18800 | ||
009fead0 VZ |
18801 | /* The GNU C library defines this for functions which it implements |
18802 | to always fail with ENOSYS. Some functions are actually named | |
18803 | something starting with __ and the normal name is an alias. */ | |
18804 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
18805 | choke me | |
18806 | #else | |
a0b9e27f | 18807 | pthread_attr_getschedpolicy(); |
009fead0 VZ |
18808 | #endif |
18809 | ||
a0b9e27f MB |
18810 | ; return 0; } |
18811 | EOF | |
8d90d2f2 | 18812 | if { (eval echo configure:18813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18813 | rm -rf conftest* |
18814 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" | |
18815 | else | |
18816 | echo "configure: failed program was:" >&5 | |
18817 | cat conftest.$ac_ext >&5 | |
18818 | rm -rf conftest* | |
18819 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" | |
18820 | fi | |
18821 | rm -f conftest* | |
18822 | fi | |
18823 | ||
18824 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
18825 | echo "$ac_t""yes" 1>&6 | |
18826 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 | |
8d90d2f2 | 18827 | echo "configure:18828: checking for pthread_attr_setschedparam" >&5 |
a0b9e27f MB |
18828 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
18829 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 18830 | else |
a0b9e27f | 18831 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 18832 | #line 18833 "configure" |
a0b9e27f MB |
18833 | #include "confdefs.h" |
18834 | /* System header to define __stub macros and hopefully few prototypes, | |
18835 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
009fead0 | 18836 | #include <assert.h> |
422107f9 VZ |
18837 | /* Override any gcc2 internal prototype to avoid an error. */ |
18838 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18839 | builtin and then its argument prototype would still apply. */ |
18840 | char pthread_attr_setschedparam(); | |
18841 | ||
18842 | int main() { | |
18843 | ||
009fead0 VZ |
18844 | /* The GNU C library defines this for functions which it implements |
18845 | to always fail with ENOSYS. Some functions are actually named | |
18846 | something starting with __ and the normal name is an alias. */ | |
18847 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
18848 | choke me | |
18849 | #else | |
a0b9e27f | 18850 | pthread_attr_setschedparam(); |
009fead0 VZ |
18851 | #endif |
18852 | ||
a0b9e27f MB |
18853 | ; return 0; } |
18854 | EOF | |
8d90d2f2 | 18855 | if { (eval echo configure:18856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18856 | rm -rf conftest* |
18857 | eval "ac_cv_func_pthread_attr_setschedparam=yes" | |
18858 | else | |
18859 | echo "configure: failed program was:" >&5 | |
18860 | cat conftest.$ac_ext >&5 | |
18861 | rm -rf conftest* | |
18862 | eval "ac_cv_func_pthread_attr_setschedparam=no" | |
18863 | fi | |
18864 | rm -f conftest* | |
18865 | fi | |
18866 | ||
18867 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
18868 | echo "$ac_t""yes" 1>&6 | |
18869 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 | |
8d90d2f2 | 18870 | echo "configure:18871: checking for sched_get_priority_max" >&5 |
a0b9e27f MB |
18871 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
18872 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18873 | else | |
18874 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 18875 | #line 18876 "configure" |
422107f9 | 18876 | #include "confdefs.h" |
009fead0 VZ |
18877 | /* System header to define __stub macros and hopefully few prototypes |
18878 | else | |
a0b9e27f MB |
18879 | echo "$ac_t""no" 1>&6 |
18880 | which can conflict with char sched_get_priority_max(); below. */ | |
009fead0 | 18881 | #include <assert.h> |
4f14bcd8 GD |
18882 | /* Override any gcc2 internal prototype to avoid an error. */ |
18883 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18884 | builtin and then its argument prototype would still apply. */ |
18885 | char sched_get_priority_max(); | |
18886 | ||
18887 | int main() { | |
18888 | ||
009fead0 VZ |
18889 | /* The GNU C library defines this for functions which it implements |
18890 | to always fail with ENOSYS. Some functions are actually named | |
18891 | something starting with __ and the normal name is an alias. */ | |
18892 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
18893 | choke me | |
18894 | #else | |
a0b9e27f | 18895 | sched_get_priority_max(); |
009fead0 VZ |
18896 | #endif |
18897 | ||
a0b9e27f MB |
18898 | ; return 0; } |
18899 | EOF | |
8d90d2f2 | 18900 | if { (eval echo configure:18901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18901 | rm -rf conftest* |
18902 | eval "ac_cv_func_sched_get_priority_max=yes" | |
18903 | else | |
18904 | echo "configure: failed program was:" >&5 | |
18905 | cat conftest.$ac_ext >&5 | |
18906 | rm -rf conftest* | |
18907 | eval "ac_cv_func_sched_get_priority_max=no" | |
18908 | fi | |
18909 | rm -f conftest* | |
18910 | fi | |
18911 | ||
18912 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
18913 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
18914 | HAVE_PRIOR_FUNCS=1 |
18915 | else | |
a0b9e27f MB |
18916 | echo "$ac_t""no" 1>&6 |
18917 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
8d90d2f2 | 18918 | echo "configure:18919: checking for sched_get_priority_max in -lposix4" >&5 |
a0b9e27f MB |
18919 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
18920 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18921 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 18922 | else |
a0b9e27f | 18923 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18924 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 18925 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 18926 | #line 18927 "configure" |
422107f9 VZ |
18927 | #include "confdefs.h" |
18928 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18929 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18930 | builtin and then its argument prototype would still apply. */ |
18931 | char sched_get_priority_max(); | |
18932 | ||
18933 | int main() { | |
18934 | sched_get_priority_max() | |
18935 | ; return 0; } | |
18936 | EOF | |
8d90d2f2 | 18937 | if { (eval echo configure:18938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18938 | rm -rf conftest* |
18939 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18940 | else | |
18941 | echo "configure: failed program was:" >&5 | |
18942 | cat conftest.$ac_ext >&5 | |
18943 | rm -rf conftest* | |
18944 | eval "ac_cv_lib_$ac_lib_var=no" | |
18945 | fi | |
18946 | rm -f conftest* | |
18947 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 18948 | |
a0b9e27f MB |
18949 | fi |
18950 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18951 | echo "$ac_t""yes" 1>&6 | |
18952 | ||
7274f1c7 RL |
18953 | HAVE_PRIOR_FUNCS=1 |
18954 | POSIX4_LINK=" -lposix4" | |
a0b9e27f MB |
18955 | |
18956 | else | |
18957 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 18958 | fi |
463abc64 | 18959 | |
a0b9e27f | 18960 | |
328a083c | 18961 | fi |
463abc64 | 18962 | |
a0b9e27f MB |
18963 | |
18964 | else | |
18965 | echo "$ac_t""no" 1>&6 | |
7b4a847f | 18966 | fi |
579d8138 | 18967 | |
a0b9e27f | 18968 | |
5c6fa7d2 | 18969 | fi |
52127426 | 18970 | |
8284b0c5 | 18971 | |
7274f1c7 | 18972 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
a0b9e27f | 18973 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18974 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
a0b9e27f | 18975 | EOF |
463abc64 | 18976 | |
7274f1c7 | 18977 | else |
a0b9e27f | 18978 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
7274f1c7 | 18979 | fi |
463abc64 | 18980 | |
a0b9e27f | 18981 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
8d90d2f2 | 18982 | echo "configure:18983: checking for pthread_cancel" >&5 |
a0b9e27f MB |
18983 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
18984 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 18985 | else |
a0b9e27f | 18986 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 18987 | #line 18988 "configure" |
422107f9 | 18988 | #include "confdefs.h" |
009fead0 | 18989 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18990 | which can conflict with char pthread_cancel(); below. */ |
009fead0 | 18991 | #include <assert.h> |
422107f9 VZ |
18992 | /* Override any gcc2 internal prototype to avoid an error. */ |
18993 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18994 | builtin and then its argument prototype would still apply. */ |
18995 | char pthread_cancel(); | |
18996 | ||
18997 | int main() { | |
18998 | ||
009fead0 VZ |
18999 | /* The GNU C library defines this for functions which it implements |
19000 | to always fail with ENOSYS. Some functions are actually named | |
19001 | something starting with __ and the normal name is an alias. */ | |
19002 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
19003 | choke me | |
19004 | #else | |
a0b9e27f | 19005 | pthread_cancel(); |
009fead0 VZ |
19006 | #endif |
19007 | ||
a0b9e27f MB |
19008 | ; return 0; } |
19009 | EOF | |
8d90d2f2 | 19010 | if { (eval echo configure:19011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19011 | rm -rf conftest* |
19012 | eval "ac_cv_func_pthread_cancel=yes" | |
19013 | else | |
19014 | echo "configure: failed program was:" >&5 | |
19015 | cat conftest.$ac_ext >&5 | |
19016 | rm -rf conftest* | |
19017 | eval "ac_cv_func_pthread_cancel=no" | |
19018 | fi | |
19019 | rm -f conftest* | |
19020 | fi | |
19021 | ||
19022 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
19023 | echo "$ac_t""yes" 1>&6 | |
19024 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 19025 | #define HAVE_PTHREAD_CANCEL 1 |
a0b9e27f | 19026 | EOF |
4f14bcd8 | 19027 | |
698dcdb6 | 19028 | else |
a0b9e27f MB |
19029 | echo "$ac_t""no" 1>&6 |
19030 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
422107f9 VZ |
19031 | fi |
19032 | ||
5c6fa7d2 | 19033 | |
a0b9e27f | 19034 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
8d90d2f2 | 19035 | echo "configure:19036: checking for pthread_cleanup_push/pop" >&5 |
a0b9e27f MB |
19036 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
19037 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 19038 | else |
a0b9e27f MB |
19039 | |
19040 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 19041 | #line 19042 "configure" |
4f14bcd8 GD |
19042 | #include "confdefs.h" |
19043 | #include <pthread.h> | |
a0b9e27f | 19044 | int main() { |
4f14bcd8 | 19045 | |
7274f1c7 RL |
19046 | pthread_cleanup_push(NULL, NULL); |
19047 | pthread_cleanup_pop(0); | |
a0b9e27f MB |
19048 | |
19049 | ; return 0; } | |
19050 | EOF | |
8d90d2f2 | 19051 | if { (eval echo configure:19052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19052 | rm -rf conftest* |
19053 | ||
7274f1c7 | 19054 | wx_cv_func_pthread_cleanup_push=yes |
a0b9e27f | 19055 | |
4f14bcd8 | 19056 | else |
a0b9e27f MB |
19057 | echo "configure: failed program was:" >&5 |
19058 | cat conftest.$ac_ext >&5 | |
19059 | rm -rf conftest* | |
19060 | ||
7274f1c7 | 19061 | wx_cv_func_pthread_cleanup_push=no |
a0b9e27f | 19062 | |
5c6fa7d2 | 19063 | fi |
a0b9e27f MB |
19064 | rm -f conftest* |
19065 | ||
247f5006 | 19066 | fi |
a0b9e27f MB |
19067 | |
19068 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
4f14bcd8 | 19069 | |
7274f1c7 | 19070 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
a0b9e27f | 19071 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19072 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
a0b9e27f | 19073 | EOF |
c7a2bf27 | 19074 | |
7274f1c7 | 19075 | fi |
4f14bcd8 | 19076 | |
a0b9e27f MB |
19077 | |
19078 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
8d90d2f2 | 19079 | echo "configure:19080: checking for pthread_mutexattr_t" >&5 |
a0b9e27f MB |
19080 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
19081 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 19082 | else |
a0b9e27f MB |
19083 | |
19084 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 19085 | #line 19086 "configure" |
0dcf9893 | 19086 | #include "confdefs.h" |
4f14bcd8 | 19087 | #include <pthread.h> |
a0b9e27f | 19088 | int main() { |
4f14bcd8 | 19089 | |
7274f1c7 RL |
19090 | pthread_mutexattr_t attr; |
19091 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
a0b9e27f MB |
19092 | |
19093 | ; return 0; } | |
19094 | EOF | |
8d90d2f2 | 19095 | if { (eval echo configure:19096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19096 | rm -rf conftest* |
19097 | ||
7274f1c7 | 19098 | wx_cv_type_pthread_mutexattr_t=yes |
a0b9e27f | 19099 | |
3fed1840 | 19100 | else |
a0b9e27f MB |
19101 | echo "configure: failed program was:" >&5 |
19102 | cat conftest.$ac_ext >&5 | |
19103 | rm -rf conftest* | |
19104 | ||
7274f1c7 | 19105 | wx_cv_type_pthread_mutexattr_t=no |
a0b9e27f MB |
19106 | |
19107 | ||
5c6fa7d2 | 19108 | fi |
a0b9e27f MB |
19109 | rm -f conftest* |
19110 | ||
247f5006 | 19111 | fi |
a0b9e27f MB |
19112 | |
19113 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
4f14bcd8 | 19114 | |
7274f1c7 | 19115 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
a0b9e27f | 19116 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19117 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
a0b9e27f | 19118 | EOF |
4f14bcd8 | 19119 | |
7274f1c7 | 19120 | else |
a0b9e27f | 19121 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
8d90d2f2 | 19122 | echo "configure:19123: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
a0b9e27f MB |
19123 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
19124 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19125 | else | |
19126 | ||
19127 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 19128 | #line 19129 "configure" |
3fed1840 | 19129 | #include "confdefs.h" |
4f14bcd8 | 19130 | #include <pthread.h> |
a0b9e27f | 19131 | int main() { |
4f14bcd8 | 19132 | |
7274f1c7 | 19133 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
a0b9e27f MB |
19134 | |
19135 | ; return 0; } | |
19136 | EOF | |
8d90d2f2 | 19137 | if { (eval echo configure:19138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19138 | rm -rf conftest* |
19139 | ||
7274f1c7 | 19140 | wx_cv_type_pthread_rec_mutex_init=yes |
a0b9e27f | 19141 | |
698dcdb6 | 19142 | else |
a0b9e27f MB |
19143 | echo "configure: failed program was:" >&5 |
19144 | cat conftest.$ac_ext >&5 | |
19145 | rm -rf conftest* | |
19146 | ||
7274f1c7 | 19147 | wx_cv_type_pthread_rec_mutex_init=no |
a0b9e27f MB |
19148 | |
19149 | ||
5c6fa7d2 | 19150 | fi |
a0b9e27f MB |
19151 | rm -f conftest* |
19152 | ||
247f5006 | 19153 | fi |
a0b9e27f MB |
19154 | |
19155 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
7274f1c7 | 19156 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
a0b9e27f | 19157 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19158 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
a0b9e27f | 19159 | EOF |
3fed1840 | 19160 | |
7274f1c7 | 19161 | else |
a0b9e27f | 19162 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
7274f1c7 RL |
19163 | fi |
19164 | fi | |
7274f1c7 | 19165 | fi |
3fed1840 | 19166 | |
a0b9e27f MB |
19167 | else |
19168 | if test "$wxUSE_THREADS" = "yes" ; then | |
19169 | case "${host}" in | |
19170 | *-*-mingw32* ) | |
ca8e52b3 | 19171 | echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6 |
8d90d2f2 | 19172 | echo "configure:19173: checking if compiler supports -mthreads" >&5 |
ca8e52b3 VZ |
19173 | if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then |
19174 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19175 | else | |
19176 | ||
19177 | CFLAGS_OLD="$CFLAGS" | |
19178 | CFLAGS="$CFLAGS -mthreads" | |
19179 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 19180 | #line 19181 "configure" |
ca8e52b3 VZ |
19181 | #include "confdefs.h" |
19182 | ||
19183 | int main() { | |
19184 | ||
19185 | ; return 0; } | |
19186 | EOF | |
8d90d2f2 | 19187 | if { (eval echo configure:19188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ca8e52b3 VZ |
19188 | rm -rf conftest* |
19189 | wx_cv_cflags_mthread=yes | |
19190 | else | |
19191 | echo "configure: failed program was:" >&5 | |
19192 | cat conftest.$ac_ext >&5 | |
19193 | rm -rf conftest* | |
19194 | wx_cv_cflags_mthread=no | |
19195 | ||
19196 | fi | |
19197 | rm -f conftest* | |
19198 | ||
19199 | ||
19200 | fi | |
19201 | ||
19202 | echo "$ac_t""$wx_cv_cflags_mthread" 1>&6 | |
19203 | ||
19204 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
19205 | CXXFLAGS="$CXXFLAGS -mthreads" | |
19206 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
19207 | LDFLAGS="$LDFLAGS -mthreads" | |
19208 | else | |
19209 | CFLAGS="$CFLAGS_OLD" | |
19210 | fi | |
a0b9e27f MB |
19211 | ;; |
19212 | esac | |
19213 | fi | |
4f14bcd8 GD |
19214 | fi |
19215 | ||
19216 | if test "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 19217 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19218 | #define wxUSE_THREADS 1 |
a0b9e27f | 19219 | EOF |
7b6058cd | 19220 | |
8284b0c5 | 19221 | |
4f14bcd8 | 19222 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 19223 | else |
4f14bcd8 | 19224 | if test "$ac_cv_func_strtok_r" = "yes"; then |
a0b9e27f | 19225 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
8d90d2f2 | 19226 | echo "configure:19227: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
19227 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
19228 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
a0b9e27f | 19229 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 19230 | else |
a0b9e27f | 19231 | echo "$ac_t""no" 1>&6 |
4f14bcd8 GD |
19232 | fi |
19233 | fi | |
19234 | fi | |
19235 | ||
19236 | if test "$WXGTK20" = 1 ; then | |
a0b9e27f | 19237 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19238 | #define __WXGTK20__ $WXGTK20 |
a0b9e27f | 19239 | EOF |
4f14bcd8 GD |
19240 | |
19241 | WXGTK12=1 | |
10f2d63a | 19242 | fi |
4f14bcd8 GD |
19243 | |
19244 | if test "$WXGTK12" = 1 ; then | |
a0b9e27f | 19245 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19246 | #define __WXGTK12__ $WXGTK12 |
a0b9e27f | 19247 | EOF |
4f14bcd8 | 19248 | |
10f2d63a | 19249 | fi |
698dcdb6 | 19250 | |
4f14bcd8 | 19251 | if test "$WXGTK127" = 1 ; then |
a0b9e27f | 19252 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19253 | #define __WXGTK127__ $WXGTK127 |
a0b9e27f | 19254 | EOF |
4f14bcd8 | 19255 | |
698dcdb6 | 19256 | fi |
10f2d63a | 19257 | |
4f14bcd8 GD |
19258 | WXDEBUG= |
19259 | ||
19260 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
19261 | WXDEBUG="-g" | |
19262 | wxUSE_OPTIMISE=no | |
698dcdb6 | 19263 | fi |
4f14bcd8 GD |
19264 | |
19265 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
19266 | wxUSE_DEBUG_INFO=yes | |
19267 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
19268 | fi |
19269 | ||
4f14bcd8 | 19270 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
a0b9e27f | 19271 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19272 | #define WXDEBUG 1 |
a0b9e27f | 19273 | EOF |
4f14bcd8 GD |
19274 | |
19275 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 19276 | else |
4f14bcd8 GD |
19277 | if test "$wxUSE_GTK" = 1 ; then |
19278 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
19279 | fi | |
19280 | fi | |
19281 | ||
19282 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
a0b9e27f | 19283 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19284 | #define wxUSE_MEMORY_TRACING 1 |
a0b9e27f | 19285 | EOF |
4f14bcd8 | 19286 | |
a0b9e27f | 19287 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19288 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
a0b9e27f | 19289 | EOF |
4f14bcd8 | 19290 | |
a0b9e27f | 19291 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19292 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
a0b9e27f | 19293 | EOF |
4f14bcd8 GD |
19294 | |
19295 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
19296 | fi | |
19297 | ||
19298 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 19299 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
19300 | fi |
19301 | ||
19302 | PROFILE= | |
19303 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 19304 | PROFILE=" -pg" |
10f2d63a VZ |
19305 | fi |
19306 | ||
009fead0 VZ |
19307 | CODE_GEN_FLAGS= |
19308 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 19309 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
19310 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
19311 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 19312 | fi |
4f14bcd8 GD |
19313 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
19314 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
19315 | fi | |
19316 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
19317 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
19318 | fi | |
4f14bcd8 GD |
19319 | if test "$USE_WIN32" = 1 ; then |
19320 | # I'm not even really sure what this was ever added to solve, | |
19321 | # but someone added it for mingw native builds, so I guess | |
19322 | # they had a reason, right?? | |
19323 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
19324 | fi | |
1d1b75ac | 19325 | |
2b5f62a0 | 19326 | case "${host}" in |
1d1b75ac VZ |
19327 | powerpc*-*-aix* ) |
19328 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
19329 | ;; | |
2b5f62a0 VZ |
19330 | *-hppa* ) |
19331 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
19332 | ;; | |
1d1b75ac | 19333 | esac |
4f14bcd8 GD |
19334 | fi |
19335 | ||
4f14bcd8 GD |
19336 | if test "$wxUSE_OPTIMISE" = "no" ; then |
19337 | OPTIMISE= | |
19338 | else | |
19339 | if test "$GCC" = yes ; then | |
19340 | OPTIMISE="-O2" | |
19341 | case "${host}" in | |
19342 | i586-*-*|i686-*-* ) | |
19343 | OPTIMISE="${OPTIMISE} " | |
19344 | ;; | |
19345 | esac | |
19346 | else | |
19347 | OPTIMISE="-O" | |
19348 | fi | |
19349 | fi | |
19350 | ||
8d90d2f2 | 19351 | |
4f14bcd8 | 19352 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
a0b9e27f | 19353 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19354 | #define WXWIN_COMPATIBILITY_2 1 |
a0b9e27f | 19355 | EOF |
4f14bcd8 | 19356 | |
8284b0c5 | 19357 | |
4f14bcd8 GD |
19358 | WXWIN_COMPATIBILITY_2_2="yes" |
19359 | fi | |
19360 | ||
65d8ef1e | 19361 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
a0b9e27f | 19362 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19363 | #define WXWIN_COMPATIBILITY_2_2 1 |
a0b9e27f | 19364 | EOF |
4f14bcd8 | 19365 | |
8d90d2f2 VZ |
19366 | |
19367 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
19368 | fi |
19369 | ||
65d8ef1e VS |
19370 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
19371 | cat >> confdefs.h <<\EOF | |
19372 | #define WXWIN_COMPATIBILITY_2_4 1 | |
19373 | EOF | |
19374 | ||
19375 | fi | |
19376 | ||
8284b0c5 | 19377 | |
10f2d63a | 19378 | if test "$wxUSE_GUI" = "yes"; then |
a0b9e27f | 19379 | cat >> confdefs.h <<\EOF |
10f2d63a | 19380 | #define wxUSE_GUI 1 |
a0b9e27f | 19381 | EOF |
10f2d63a | 19382 | |
8284b0c5 | 19383 | |
10f2d63a | 19384 | else |
a0b9e27f | 19385 | cat >> confdefs.h <<\EOF |
10f2d63a | 19386 | #define wxUSE_NOGUI 1 |
a0b9e27f | 19387 | EOF |
10f2d63a VZ |
19388 | |
19389 | fi | |
19390 | ||
8284b0c5 | 19391 | |
10f2d63a | 19392 | if test "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 19393 | cat >> confdefs.h <<\EOF |
10f2d63a | 19394 | #define wxUSE_UNIX 1 |
a0b9e27f | 19395 | EOF |
10f2d63a VZ |
19396 | |
19397 | fi | |
19398 | ||
8284b0c5 | 19399 | |
10f2d63a | 19400 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
a0b9e27f | 19401 | cat >> confdefs.h <<\EOF |
10f2d63a | 19402 | #define wxUSE_APPLE_IEEE 1 |
a0b9e27f | 19403 | EOF |
10f2d63a VZ |
19404 | |
19405 | fi | |
19406 | ||
1e6feb95 | 19407 | if test "$wxUSE_TIMER" = "yes"; then |
a0b9e27f | 19408 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19409 | #define wxUSE_TIMER 1 |
a0b9e27f | 19410 | EOF |
1e6feb95 VZ |
19411 | |
19412 | fi | |
19413 | ||
10f2d63a | 19414 | if test "$wxUSE_WAVE" = "yes"; then |
a0b9e27f | 19415 | cat >> confdefs.h <<\EOF |
10f2d63a | 19416 | #define wxUSE_WAVE 1 |
a0b9e27f | 19417 | EOF |
10f2d63a VZ |
19418 | |
19419 | fi | |
19420 | ||
1e6feb95 | 19421 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
a0b9e27f | 19422 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19423 | #define wxUSE_CMDLINE_PARSER 1 |
a0b9e27f | 19424 | EOF |
1e6feb95 VZ |
19425 | |
19426 | fi | |
19427 | ||
19428 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
a0b9e27f | 19429 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19430 | #define wxUSE_STOPWATCH 1 |
a0b9e27f | 19431 | EOF |
1e6feb95 VZ |
19432 | |
19433 | fi | |
19434 | ||
19435 | if test "$wxUSE_DATETIME" = "yes"; then | |
a0b9e27f | 19436 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19437 | #define wxUSE_DATETIME 1 |
a0b9e27f | 19438 | EOF |
1e6feb95 VZ |
19439 | |
19440 | fi | |
19441 | ||
19442 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
a0b9e27f | 19443 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19444 | #define wxUSE_TIMEDATE 1 |
a0b9e27f | 19445 | EOF |
1e6feb95 VZ |
19446 | |
19447 | fi | |
19448 | ||
10f2d63a | 19449 | if test "$wxUSE_FILE" = "yes"; then |
a0b9e27f | 19450 | cat >> confdefs.h <<\EOF |
10f2d63a | 19451 | #define wxUSE_FILE 1 |
a0b9e27f | 19452 | EOF |
10f2d63a VZ |
19453 | |
19454 | fi | |
19455 | ||
1e6feb95 | 19456 | if test "$wxUSE_FFILE" = "yes"; then |
a0b9e27f | 19457 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19458 | #define wxUSE_FFILE 1 |
a0b9e27f | 19459 | EOF |
1e6feb95 VZ |
19460 | |
19461 | fi | |
19462 | ||
24528b0c | 19463 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
a0b9e27f | 19464 | cat >> confdefs.h <<\EOF |
24528b0c | 19465 | #define wxUSE_FILESYSTEM 1 |
a0b9e27f | 19466 | EOF |
24528b0c VS |
19467 | |
19468 | fi | |
19469 | ||
10f2d63a | 19470 | if test "$wxUSE_FS_INET" = "yes"; then |
a0b9e27f | 19471 | cat >> confdefs.h <<\EOF |
10f2d63a | 19472 | #define wxUSE_FS_INET 1 |
a0b9e27f | 19473 | EOF |
10f2d63a VZ |
19474 | |
19475 | fi | |
19476 | ||
19477 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
a0b9e27f | 19478 | cat >> confdefs.h <<\EOF |
10f2d63a | 19479 | #define wxUSE_FS_ZIP 1 |
a0b9e27f | 19480 | EOF |
10f2d63a VZ |
19481 | |
19482 | fi | |
19483 | ||
19484 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
a0b9e27f | 19485 | cat >> confdefs.h <<\EOF |
10f2d63a | 19486 | #define wxUSE_ZIPSTREAM 1 |
a0b9e27f | 19487 | EOF |
10f2d63a VZ |
19488 | |
19489 | fi | |
19490 | ||
eb4efbdc | 19491 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
a0b9e27f | 19492 | cat >> confdefs.h <<\EOF |
eb4efbdc | 19493 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
a0b9e27f | 19494 | EOF |
eb4efbdc VZ |
19495 | |
19496 | fi | |
19497 | ||
4f3c5f06 | 19498 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 19499 | cat >> confdefs.h <<\EOF |
4f3c5f06 | 19500 | #define wxUSE_SNGLINST_CHECKER 1 |
a0b9e27f | 19501 | EOF |
4f3c5f06 VZ |
19502 | |
19503 | fi | |
19504 | ||
10f2d63a | 19505 | if test "$wxUSE_BUSYINFO" = "yes"; then |
a0b9e27f | 19506 | cat >> confdefs.h <<\EOF |
10f2d63a | 19507 | #define wxUSE_BUSYINFO 1 |
a0b9e27f | 19508 | EOF |
10f2d63a VZ |
19509 | |
19510 | fi | |
19511 | ||
19512 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
a0b9e27f | 19513 | cat >> confdefs.h <<\EOF |
10f2d63a | 19514 | #define wxUSE_STD_IOSTREAM 1 |
a0b9e27f | 19515 | EOF |
10f2d63a VZ |
19516 | |
19517 | fi | |
19518 | ||
a3a584a7 | 19519 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
a0b9e27f | 19520 | cat >> confdefs.h <<\EOF |
a3a584a7 | 19521 | #define wxUSE_TEXTBUFFER 1 |
a0b9e27f | 19522 | EOF |
a3a584a7 VZ |
19523 | |
19524 | fi | |
19525 | ||
10f2d63a | 19526 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 19527 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
a0b9e27f | 19528 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 19529 | else |
a0b9e27f | 19530 | cat >> confdefs.h <<\EOF |
10f2d63a | 19531 | #define wxUSE_TEXTFILE 1 |
a0b9e27f | 19532 | EOF |
10f2d63a VZ |
19533 | |
19534 | fi | |
19535 | fi | |
19536 | ||
19537 | if test "$wxUSE_CONFIG" = "yes" ; then | |
19538 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
a0b9e27f | 19539 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 19540 | else |
a0b9e27f | 19541 | cat >> confdefs.h <<\EOF |
10f2d63a | 19542 | #define wxUSE_CONFIG 1 |
a0b9e27f | 19543 | EOF |
10f2d63a VZ |
19544 | |
19545 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
19546 | fi | |
19547 | fi | |
19548 | ||
19549 | if test "$wxUSE_INTL" = "yes" ; then | |
19550 | if test "$wxUSE_FILE" != "yes"; then | |
a0b9e27f | 19551 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 19552 | else |
a0b9e27f | 19553 | cat >> confdefs.h <<\EOF |
10f2d63a | 19554 | #define wxUSE_INTL 1 |
a0b9e27f | 19555 | EOF |
10f2d63a VZ |
19556 | |
19557 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 19558 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
19559 | fi |
19560 | fi | |
19561 | ||
19562 | if test "$wxUSE_LOG" = "yes"; then | |
a0b9e27f | 19563 | cat >> confdefs.h <<\EOF |
10f2d63a | 19564 | #define wxUSE_LOG 1 |
a0b9e27f | 19565 | EOF |
10f2d63a | 19566 | |
8284b0c5 | 19567 | |
d73be714 | 19568 | if test "$wxUSE_LOGGUI" = "yes"; then |
a0b9e27f | 19569 | cat >> confdefs.h <<\EOF |
d73be714 | 19570 | #define wxUSE_LOGGUI 1 |
a0b9e27f | 19571 | EOF |
d73be714 VZ |
19572 | |
19573 | fi | |
19574 | ||
19575 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
a0b9e27f | 19576 | cat >> confdefs.h <<\EOF |
d73be714 | 19577 | #define wxUSE_LOGWINDOW 1 |
a0b9e27f | 19578 | EOF |
69d27ff7 MB |
19579 | |
19580 | fi | |
19581 | ||
19582 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
a0b9e27f | 19583 | cat >> confdefs.h <<\EOF |
69d27ff7 | 19584 | #define wxUSE_LOG_DIALOG 1 |
a0b9e27f | 19585 | EOF |
d73be714 VZ |
19586 | |
19587 | fi | |
10f2d63a VZ |
19588 | fi |
19589 | ||
19590 | if test "$wxUSE_LONGLONG" = "yes"; then | |
a0b9e27f | 19591 | cat >> confdefs.h <<\EOF |
10f2d63a | 19592 | #define wxUSE_LONGLONG 1 |
a0b9e27f | 19593 | EOF |
10f2d63a VZ |
19594 | |
19595 | fi | |
19596 | ||
e8f65ba6 | 19597 | if test "$wxUSE_GEOMETRY" = "yes"; then |
a0b9e27f | 19598 | cat >> confdefs.h <<\EOF |
e8f65ba6 | 19599 | #define wxUSE_GEOMETRY 1 |
a0b9e27f | 19600 | EOF |
e8f65ba6 RR |
19601 | |
19602 | fi | |
19603 | ||
10f2d63a | 19604 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
a0b9e27f | 19605 | cat >> confdefs.h <<\EOF |
10f2d63a | 19606 | #define wxUSE_DIALUP_MANAGER 1 |
a0b9e27f | 19607 | EOF |
10f2d63a | 19608 | |
70f7a477 | 19609 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
19610 | fi |
19611 | ||
19612 | if test "$wxUSE_STREAMS" = "yes" ; then | |
a0b9e27f | 19613 | cat >> confdefs.h <<\EOF |
10f2d63a | 19614 | #define wxUSE_STREAMS 1 |
a0b9e27f | 19615 | EOF |
10f2d63a VZ |
19616 | |
19617 | fi | |
19618 | ||
5c6fa7d2 | 19619 | |
8284b0c5 | 19620 | if test "$wxUSE_DATETIME" = "yes"; then |
a0b9e27f | 19621 | for ac_func in strptime |
83307f33 | 19622 | do |
a0b9e27f | 19623 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 19624 | echo "configure:19625: checking for $ac_func" >&5 |
a0b9e27f MB |
19625 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19626 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19627 | else | |
19628 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 19629 | #line 19630 "configure" |
83307f33 VZ |
19630 | #include "confdefs.h" |
19631 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19632 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
19633 | #include <assert.h> |
19634 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19635 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19636 | builtin and then its argument prototype would still apply. */ |
19637 | char $ac_func(); | |
19638 | ||
19639 | int main() { | |
19640 | ||
83307f33 VZ |
19641 | /* The GNU C library defines this for functions which it implements |
19642 | to always fail with ENOSYS. Some functions are actually named | |
19643 | something starting with __ and the normal name is an alias. */ | |
19644 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19645 | choke me | |
19646 | #else | |
a0b9e27f | 19647 | $ac_func(); |
83307f33 VZ |
19648 | #endif |
19649 | ||
a0b9e27f MB |
19650 | ; return 0; } |
19651 | EOF | |
8d90d2f2 | 19652 | if { (eval echo configure:19653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19653 | rm -rf conftest* |
19654 | eval "ac_cv_func_$ac_func=yes" | |
19655 | else | |
19656 | echo "configure: failed program was:" >&5 | |
19657 | cat conftest.$ac_ext >&5 | |
19658 | rm -rf conftest* | |
19659 | eval "ac_cv_func_$ac_func=no" | |
19660 | fi | |
19661 | rm -f conftest* | |
19662 | fi | |
83307f33 | 19663 | |
a0b9e27f MB |
19664 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
19665 | echo "$ac_t""yes" 1>&6 | |
19666 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19667 | cat >> confdefs.h <<EOF | |
19668 | #define $ac_tr_func 1 | |
19669 | EOF | |
19670 | ||
19671 | else | |
19672 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
19673 | fi |
19674 | done | |
19675 | ||
5c6fa7d2 | 19676 | |
a0b9e27f | 19677 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
8d90d2f2 | 19678 | echo "configure:19679: checking for timezone variable in <time.h>" >&5 |
a0b9e27f MB |
19679 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
19680 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 19681 | else |
a0b9e27f MB |
19682 | |
19683 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 19684 | #line 19685 "configure" |
360d6699 VZ |
19685 | #include "confdefs.h" |
19686 | ||
b4085ce6 | 19687 | #include <time.h> |
a0b9e27f MB |
19688 | |
19689 | int main() { | |
360d6699 VZ |
19690 | |
19691 | int tz; | |
4f11a343 | 19692 | tz = timezone; |
a0b9e27f MB |
19693 | |
19694 | ; return 0; } | |
19695 | EOF | |
8d90d2f2 | 19696 | if { (eval echo configure:19697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19697 | rm -rf conftest* |
19698 | ||
4f11a343 | 19699 | wx_cv_var_timezone=timezone |
a0b9e27f | 19700 | |
360d6699 | 19701 | else |
a0b9e27f MB |
19702 | echo "configure: failed program was:" >&5 |
19703 | cat conftest.$ac_ext >&5 | |
19704 | rm -rf conftest* | |
19705 | ||
19706 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 19707 | #line 19708 "configure" |
360d6699 VZ |
19708 | #include "confdefs.h" |
19709 | ||
b4085ce6 | 19710 | #include <time.h> |
a0b9e27f MB |
19711 | |
19712 | int main() { | |
360d6699 VZ |
19713 | |
19714 | int tz; | |
19715 | tz = _timezone; | |
a0b9e27f MB |
19716 | |
19717 | ; return 0; } | |
19718 | EOF | |
8d90d2f2 | 19719 | if { (eval echo configure:19720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19720 | rm -rf conftest* |
19721 | ||
360d6699 | 19722 | wx_cv_var_timezone=_timezone |
a0b9e27f | 19723 | |
5357c8e8 | 19724 | else |
a0b9e27f MB |
19725 | echo "configure: failed program was:" >&5 |
19726 | cat conftest.$ac_ext >&5 | |
19727 | rm -rf conftest* | |
19728 | ||
19729 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 19730 | #line 19731 "configure" |
5357c8e8 VZ |
19731 | #include "confdefs.h" |
19732 | ||
b4085ce6 | 19733 | #include <time.h> |
a0b9e27f MB |
19734 | |
19735 | int main() { | |
5357c8e8 VZ |
19736 | |
19737 | int tz; | |
4f11a343 | 19738 | tz = __timezone; |
a0b9e27f MB |
19739 | |
19740 | ; return 0; } | |
19741 | EOF | |
8d90d2f2 | 19742 | if { (eval echo configure:19743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19743 | rm -rf conftest* |
19744 | ||
4f11a343 | 19745 | wx_cv_var_timezone=__timezone |
a0b9e27f | 19746 | |
360d6699 | 19747 | else |
a0b9e27f MB |
19748 | echo "configure: failed program was:" >&5 |
19749 | cat conftest.$ac_ext >&5 | |
19750 | rm -rf conftest* | |
19751 | ||
f9bc1684 | 19752 | if test "$USE_DOS" = 0 ; then |
a0b9e27f | 19753 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 | 19754 | fi |
a0b9e27f MB |
19755 | |
19756 | ||
328a083c | 19757 | fi |
a0b9e27f MB |
19758 | rm -f conftest* |
19759 | ||
19760 | ||
7b4a847f | 19761 | fi |
a0b9e27f MB |
19762 | rm -f conftest* |
19763 | ||
19764 | ||
5c6fa7d2 | 19765 | fi |
a0b9e27f MB |
19766 | rm -f conftest* |
19767 | ||
19768 | ||
247f5006 | 19769 | fi |
a0b9e27f MB |
19770 | |
19771 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
698dcdb6 | 19772 | |
f9bc1684 | 19773 | if test "x$wx_cv_var_timezone" != x ; then |
a0b9e27f | 19774 | cat >> confdefs.h <<EOF |
360d6699 | 19775 | #define WX_TIMEZONE $wx_cv_var_timezone |
a0b9e27f | 19776 | EOF |
360d6699 | 19777 | |
f9bc1684 | 19778 | fi |
698dcdb6 | 19779 | |
a0b9e27f | 19780 | for ac_func in localtime |
afc31813 | 19781 | do |
a0b9e27f | 19782 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 19783 | echo "configure:19784: checking for $ac_func" >&5 |
a0b9e27f MB |
19784 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19785 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19786 | else | |
19787 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 19788 | #line 19789 "configure" |
10f2d63a | 19789 | #include "confdefs.h" |
afc31813 | 19790 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19791 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
19792 | #include <assert.h> |
19793 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19794 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19795 | builtin and then its argument prototype would still apply. */ |
19796 | char $ac_func(); | |
19797 | ||
19798 | int main() { | |
19799 | ||
afc31813 VZ |
19800 | /* The GNU C library defines this for functions which it implements |
19801 | to always fail with ENOSYS. Some functions are actually named | |
19802 | something starting with __ and the normal name is an alias. */ | |
19803 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19804 | choke me | |
19805 | #else | |
a0b9e27f | 19806 | $ac_func(); |
afc31813 VZ |
19807 | #endif |
19808 | ||
a0b9e27f MB |
19809 | ; return 0; } |
19810 | EOF | |
8d90d2f2 | 19811 | if { (eval echo configure:19812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19812 | rm -rf conftest* |
19813 | eval "ac_cv_func_$ac_func=yes" | |
19814 | else | |
19815 | echo "configure: failed program was:" >&5 | |
19816 | cat conftest.$ac_ext >&5 | |
19817 | rm -rf conftest* | |
19818 | eval "ac_cv_func_$ac_func=no" | |
19819 | fi | |
19820 | rm -f conftest* | |
19821 | fi | |
afc31813 | 19822 | |
a0b9e27f MB |
19823 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
19824 | echo "$ac_t""yes" 1>&6 | |
19825 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19826 | cat >> confdefs.h <<EOF | |
19827 | #define $ac_tr_func 1 | |
19828 | EOF | |
19829 | ||
19830 | else | |
19831 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
19832 | fi |
19833 | done | |
19834 | ||
5c6fa7d2 | 19835 | |
8284b0c5 | 19836 | if test "$ac_cv_func_localtime" = "yes"; then |
a0b9e27f | 19837 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
8d90d2f2 | 19838 | echo "configure:19839: checking for tm_gmtoff in struct tm" >&5 |
a0b9e27f MB |
19839 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
19840 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19841 | else | |
19842 | ||
19843 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 19844 | #line 19845 "configure" |
0470b1e6 VZ |
19845 | #include "confdefs.h" |
19846 | ||
b4085ce6 | 19847 | #include <time.h> |
a0b9e27f MB |
19848 | |
19849 | int main() { | |
0470b1e6 VZ |
19850 | |
19851 | struct tm tm; | |
19852 | tm.tm_gmtoff++; | |
a0b9e27f MB |
19853 | |
19854 | ; return 0; } | |
19855 | EOF | |
8d90d2f2 | 19856 | if { (eval echo configure:19857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19857 | rm -rf conftest* |
19858 | ||
f03a98d8 | 19859 | wx_cv_struct_tm_has_gmtoff=yes |
a0b9e27f | 19860 | |
0470b1e6 | 19861 | else |
a0b9e27f MB |
19862 | echo "configure: failed program was:" >&5 |
19863 | cat conftest.$ac_ext >&5 | |
19864 | rm -rf conftest* | |
19865 | wx_cv_struct_tm_has_gmtoff=no | |
19866 | ||
5c6fa7d2 | 19867 | fi |
a0b9e27f MB |
19868 | rm -f conftest* |
19869 | ||
247f5006 | 19870 | fi |
a0b9e27f MB |
19871 | |
19872 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
19873 | fi |
19874 | ||
19875 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
a0b9e27f | 19876 | cat >> confdefs.h <<\EOF |
6232543b | 19877 | #define WX_GMTOFF_IN_TM 1 |
a0b9e27f | 19878 | EOF |
0470b1e6 | 19879 | |
3fcdd07b VZ |
19880 | fi |
19881 | ||
a0b9e27f | 19882 | for ac_func in gettimeofday ftime |
3fcdd07b | 19883 | do |
a0b9e27f | 19884 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 19885 | echo "configure:19886: checking for $ac_func" >&5 |
a0b9e27f MB |
19886 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19887 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19888 | else | |
19889 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 19890 | #line 19891 "configure" |
3fcdd07b VZ |
19891 | #include "confdefs.h" |
19892 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19893 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
19894 | #include <assert.h> |
19895 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19896 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19897 | builtin and then its argument prototype would still apply. */ |
19898 | char $ac_func(); | |
19899 | ||
19900 | int main() { | |
19901 | ||
3fcdd07b VZ |
19902 | /* The GNU C library defines this for functions which it implements |
19903 | to always fail with ENOSYS. Some functions are actually named | |
19904 | something starting with __ and the normal name is an alias. */ | |
19905 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19906 | choke me | |
19907 | #else | |
a0b9e27f | 19908 | $ac_func(); |
3fcdd07b VZ |
19909 | #endif |
19910 | ||
a0b9e27f MB |
19911 | ; return 0; } |
19912 | EOF | |
8d90d2f2 | 19913 | if { (eval echo configure:19914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19914 | rm -rf conftest* |
19915 | eval "ac_cv_func_$ac_func=yes" | |
19916 | else | |
19917 | echo "configure: failed program was:" >&5 | |
19918 | cat conftest.$ac_ext >&5 | |
19919 | rm -rf conftest* | |
19920 | eval "ac_cv_func_$ac_func=no" | |
19921 | fi | |
19922 | rm -f conftest* | |
19923 | fi | |
19924 | ||
19925 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19926 | echo "$ac_t""yes" 1>&6 | |
19927 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19928 | cat >> confdefs.h <<EOF | |
19929 | #define $ac_tr_func 1 | |
19930 | EOF | |
3fcdd07b | 19931 | break |
a0b9e27f MB |
19932 | else |
19933 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
19934 | fi |
19935 | done | |
19936 | ||
698dcdb6 | 19937 | |
8284b0c5 | 19938 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
a0b9e27f | 19939 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
8d90d2f2 | 19940 | echo "configure:19941: checking whether gettimeofday takes two arguments" >&5 |
a0b9e27f MB |
19941 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
19942 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19943 | else | |
19944 | ||
19945 | ||
19946 | ac_ext=C | |
19947 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 19948 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
19949 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19950 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19951 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 19952 | |
8284b0c5 | 19953 | |
a0b9e27f | 19954 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 19955 | #line 19956 "configure" |
10f2d63a | 19956 | #include "confdefs.h" |
afc31813 VZ |
19957 | |
19958 | #include <sys/time.h> | |
19959 | #include <unistd.h> | |
a0b9e27f MB |
19960 | |
19961 | int main() { | |
afc31813 VZ |
19962 | |
19963 | struct timeval tv; | |
776862b4 | 19964 | gettimeofday(&tv, NULL); |
a0b9e27f MB |
19965 | |
19966 | ; return 0; } | |
19967 | EOF | |
8d90d2f2 | 19968 | if { (eval echo configure:19969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19969 | rm -rf conftest* |
afc31813 | 19970 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 19971 | else |
a0b9e27f MB |
19972 | echo "configure: failed program was:" >&5 |
19973 | cat conftest.$ac_ext >&5 | |
19974 | rm -rf conftest* | |
19975 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 19976 | #line 19977 "configure" |
10f2d63a | 19977 | #include "confdefs.h" |
afc31813 VZ |
19978 | |
19979 | #include <sys/time.h> | |
19980 | #include <unistd.h> | |
a0b9e27f MB |
19981 | |
19982 | int main() { | |
afc31813 VZ |
19983 | |
19984 | struct timeval tv; | |
19985 | gettimeofday(&tv); | |
a0b9e27f MB |
19986 | |
19987 | ; return 0; } | |
19988 | EOF | |
8d90d2f2 | 19989 | if { (eval echo configure:19990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19990 | rm -rf conftest* |
afc31813 | 19991 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 19992 | else |
a0b9e27f MB |
19993 | echo "configure: failed program was:" >&5 |
19994 | cat conftest.$ac_ext >&5 | |
19995 | rm -rf conftest* | |
19996 | ||
19997 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
776862b4 | 19998 | wx_cv_func_gettimeofday_has_2_args=unknown |
a0b9e27f MB |
19999 | |
20000 | ||
10f2d63a | 20001 | fi |
a0b9e27f MB |
20002 | rm -f conftest* |
20003 | ||
10f2d63a | 20004 | fi |
a0b9e27f | 20005 | rm -f conftest* |
afc31813 | 20006 | ac_ext=c |
a0b9e27f | 20007 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 20008 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20009 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20010 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20011 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20012 | |
a0b9e27f | 20013 | |
247f5006 | 20014 | fi |
a0b9e27f MB |
20015 | |
20016 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 20017 | |
afc31813 | 20018 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
a0b9e27f | 20019 | cat >> confdefs.h <<\EOF |
afc31813 | 20020 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
a0b9e27f | 20021 | EOF |
afc31813 VZ |
20022 | |
20023 | fi | |
20024 | fi | |
20025 | ||
a0b9e27f | 20026 | cat >> confdefs.h <<\EOF |
afc31813 | 20027 | #define wxUSE_TIMEDATE 1 |
a0b9e27f | 20028 | EOF |
afc31813 VZ |
20029 | |
20030 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
20031 | fi | |
20032 | ||
8284b0c5 | 20033 | |
52127426 | 20034 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 20035 | if test "$wxUSE_MGL" = "1"; then |
a0b9e27f | 20036 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
20037 | wxUSE_SOCKETS="no" |
20038 | fi | |
0feee163 | 20039 | fi |
b089607b | 20040 | |
0feee163 VZ |
20041 | if test "$wxUSE_SOCKETS" = "yes"; then |
20042 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 20043 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
8d90d2f2 | 20044 | echo "configure:20045: checking for socket" >&5 |
a0b9e27f MB |
20045 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
20046 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 20047 | else |
a0b9e27f | 20048 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 20049 | #line 20050 "configure" |
c63c7106 VZ |
20050 | #include "confdefs.h" |
20051 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20052 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
20053 | #include <assert.h> |
20054 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20055 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20056 | builtin and then its argument prototype would still apply. */ |
20057 | char socket(); | |
20058 | ||
20059 | int main() { | |
20060 | ||
c63c7106 VZ |
20061 | /* The GNU C library defines this for functions which it implements |
20062 | to always fail with ENOSYS. Some functions are actually named | |
20063 | something starting with __ and the normal name is an alias. */ | |
20064 | #if defined (__stub_socket) || defined (__stub___socket) | |
20065 | choke me | |
20066 | #else | |
a0b9e27f | 20067 | socket(); |
c63c7106 VZ |
20068 | #endif |
20069 | ||
a0b9e27f MB |
20070 | ; return 0; } |
20071 | EOF | |
8d90d2f2 | 20072 | if { (eval echo configure:20073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20073 | rm -rf conftest* |
20074 | eval "ac_cv_func_socket=yes" | |
20075 | else | |
20076 | echo "configure: failed program was:" >&5 | |
20077 | cat conftest.$ac_ext >&5 | |
20078 | rm -rf conftest* | |
20079 | eval "ac_cv_func_socket=no" | |
20080 | fi | |
20081 | rm -f conftest* | |
20082 | fi | |
20083 | ||
20084 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
20085 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
20086 | : |
20087 | else | |
a0b9e27f MB |
20088 | echo "$ac_t""no" 1>&6 |
20089 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
8d90d2f2 | 20090 | echo "configure:20091: checking for socket in -lsocket" >&5 |
a0b9e27f MB |
20091 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
20092 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20093 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 20094 | else |
a0b9e27f | 20095 | ac_save_LIBS="$LIBS" |
c63c7106 | 20096 | LIBS="-lsocket $LIBS" |
a0b9e27f | 20097 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 20098 | #line 20099 "configure" |
c63c7106 VZ |
20099 | #include "confdefs.h" |
20100 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20101 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20102 | builtin and then its argument prototype would still apply. */ |
20103 | char socket(); | |
20104 | ||
20105 | int main() { | |
20106 | socket() | |
20107 | ; return 0; } | |
20108 | EOF | |
8d90d2f2 | 20109 | if { (eval echo configure:20110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20110 | rm -rf conftest* |
20111 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20112 | else | |
20113 | echo "configure: failed program was:" >&5 | |
20114 | cat conftest.$ac_ext >&5 | |
20115 | rm -rf conftest* | |
20116 | eval "ac_cv_lib_$ac_lib_var=no" | |
20117 | fi | |
20118 | rm -f conftest* | |
20119 | LIBS="$ac_save_LIBS" | |
20120 | ||
20121 | fi | |
20122 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20123 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
20124 | if test "$INET_LINK" != " -lsocket"; then |
20125 | INET_LINK="$INET_LINK -lsocket" | |
20126 | fi | |
c63c7106 | 20127 | else |
a0b9e27f | 20128 | echo "$ac_t""no" 1>&6 |
afc31813 | 20129 | |
a0b9e27f | 20130 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
3a922bb4 | 20131 | wxUSE_SOCKETS=no |
a0b9e27f MB |
20132 | |
20133 | ||
6232543b | 20134 | fi |
b089607b | 20135 | |
a0b9e27f | 20136 | |
1e487827 | 20137 | fi |
afc31813 | 20138 | |
3a922bb4 | 20139 | fi |
0feee163 | 20140 | fi |
51a9faba | 20141 | |
0feee163 VZ |
20142 | if test "$wxUSE_SOCKETS" = "yes" ; then |
20143 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 20144 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
8d90d2f2 | 20145 | echo "configure:20146: checking what is the type of the third argument of getsockname" >&5 |
a0b9e27f MB |
20146 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
20147 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20148 | else | |
20149 | ||
20150 | ||
20151 | ac_ext=C | |
20152 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 20153 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20154 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20155 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20156 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 20157 | |
8284b0c5 | 20158 | |
a0b9e27f | 20159 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 20160 | #line 20161 "configure" |
afc31813 | 20161 | #include "confdefs.h" |
51a9faba | 20162 | |
3a922bb4 RL |
20163 | #include <sys/types.h> |
20164 | #include <sys/socket.h> | |
a0b9e27f MB |
20165 | |
20166 | int main() { | |
51a9faba | 20167 | |
3a922bb4 RL |
20168 | socklen_t len; |
20169 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20170 | |
20171 | ; return 0; } | |
20172 | EOF | |
8d90d2f2 | 20173 | if { (eval echo configure:20174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20174 | rm -rf conftest* |
51a9faba | 20175 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 20176 | else |
a0b9e27f MB |
20177 | echo "configure: failed program was:" >&5 |
20178 | cat conftest.$ac_ext >&5 | |
20179 | rm -rf conftest* | |
20180 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 20181 | #line 20182 "configure" |
afc31813 | 20182 | #include "confdefs.h" |
51a9faba | 20183 | |
3a922bb4 RL |
20184 | #include <sys/types.h> |
20185 | #include <sys/socket.h> | |
a0b9e27f MB |
20186 | |
20187 | int main() { | |
51a9faba | 20188 | |
3a922bb4 RL |
20189 | size_t len; |
20190 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20191 | |
20192 | ; return 0; } | |
20193 | EOF | |
8d90d2f2 | 20194 | if { (eval echo configure:20195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20195 | rm -rf conftest* |
51a9faba | 20196 | wx_cv_type_getsockname3=size_t |
afc31813 | 20197 | else |
a0b9e27f MB |
20198 | echo "configure: failed program was:" >&5 |
20199 | cat conftest.$ac_ext >&5 | |
20200 | rm -rf conftest* | |
20201 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 20202 | #line 20203 "configure" |
afc31813 | 20203 | #include "confdefs.h" |
51a9faba | 20204 | |
3a922bb4 RL |
20205 | #include <sys/types.h> |
20206 | #include <sys/socket.h> | |
a0b9e27f MB |
20207 | |
20208 | int main() { | |
51a9faba | 20209 | |
3a922bb4 RL |
20210 | int len; |
20211 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20212 | |
20213 | ; return 0; } | |
20214 | EOF | |
8d90d2f2 | 20215 | if { (eval echo configure:20216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20216 | rm -rf conftest* |
51a9faba | 20217 | wx_cv_type_getsockname3=int |
afc31813 | 20218 | else |
a0b9e27f MB |
20219 | echo "configure: failed program was:" >&5 |
20220 | cat conftest.$ac_ext >&5 | |
20221 | rm -rf conftest* | |
20222 | wx_cv_type_getsockname3=unknown | |
20223 | ||
afc31813 | 20224 | fi |
a0b9e27f MB |
20225 | rm -f conftest* |
20226 | ||
afc31813 | 20227 | fi |
a0b9e27f MB |
20228 | rm -f conftest* |
20229 | ||
afc31813 | 20230 | fi |
a0b9e27f | 20231 | rm -f conftest* |
51a9faba | 20232 | |
3a922bb4 | 20233 | ac_ext=c |
a0b9e27f | 20234 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 20235 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20236 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20237 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20238 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20239 | |
a0b9e27f | 20240 | |
247f5006 | 20241 | fi |
a0b9e27f MB |
20242 | |
20243 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 20244 | |
3a922bb4 RL |
20245 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
20246 | wxUSE_SOCKETS=no | |
a0b9e27f | 20247 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
3a922bb4 | 20248 | else |
a0b9e27f | 20249 | cat >> confdefs.h <<EOF |
51a9faba | 20250 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
a0b9e27f | 20251 | EOF |
51a9faba | 20252 | |
3a922bb4 | 20253 | fi |
51a9faba VZ |
20254 | fi |
20255 | fi | |
afc31813 | 20256 | |
51a9faba | 20257 | if test "$wxUSE_SOCKETS" = "yes" ; then |
a0b9e27f | 20258 | cat >> confdefs.h <<\EOF |
afc31813 | 20259 | #define wxUSE_SOCKETS 1 |
a0b9e27f | 20260 | EOF |
afc31813 | 20261 | |
70f7a477 | 20262 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
20263 | fi |
20264 | ||
8284b0c5 | 20265 | |
dc3d889d VZ |
20266 | if test "$wxUSE_GUI" = "yes"; then |
20267 | ||
156b2523 | 20268 | if test "$TOOLKIT" = "MAC"; then |
a0b9e27f | 20269 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
20270 | wxUSE_JOYSTICK=no |
20271 | fi | |
20272 | if test "$TOOLKIT" = "MOTIF"; then | |
a0b9e27f | 20273 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 |
156b2523 | 20274 | wxUSE_JOYSTICK=no |
f79bd02d JS |
20275 | fi |
20276 | if test "$TOOLKIT" = "X11"; then | |
a0b9e27f | 20277 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 |
f79bd02d | 20278 | wxUSE_JOYSTICK=no |
156b2523 GD |
20279 | fi |
20280 | ||
3a922bb4 RL |
20281 | if test "$TOOLKIT" != "MSW"; then |
20282 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
a0b9e27f | 20283 | for ac_hdr in linux/joystick.h |
10f2d63a | 20284 | do |
a0b9e27f MB |
20285 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
20286 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8d90d2f2 | 20287 | echo "configure:20288: checking for $ac_hdr" >&5 |
a0b9e27f MB |
20288 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20289 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20290 | else | |
20291 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 20292 | #line 20293 "configure" |
247f5006 | 20293 | #include "confdefs.h" |
a0b9e27f MB |
20294 | #include <$ac_hdr> |
20295 | EOF | |
20296 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8d90d2f2 | 20297 | { (eval echo configure:20298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
20298 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20299 | if test -z "$ac_err"; then | |
20300 | rm -rf conftest* | |
20301 | eval "ac_cv_header_$ac_safe=yes" | |
20302 | else | |
20303 | echo "$ac_err" >&5 | |
20304 | echo "configure: failed program was:" >&5 | |
247f5006 | 20305 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
20306 | rm -rf conftest* |
20307 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 20308 | fi |
a0b9e27f | 20309 | rm -f conftest* |
10f2d63a | 20310 | fi |
a0b9e27f MB |
20311 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
20312 | echo "$ac_t""yes" 1>&6 | |
20313 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20314 | cat >> confdefs.h <<EOF | |
20315 | #define $ac_tr_hdr 1 | |
20316 | EOF | |
20317 | ||
20318 | else | |
20319 | echo "$ac_t""no" 1>&6 | |
247f5006 | 20320 | fi |
10f2d63a VZ |
20321 | done |
20322 | ||
3a922bb4 RL |
20323 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
20324 | wxUSE_JOYSTICK=no | |
a0b9e27f | 20325 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
20326 | fi |
20327 | fi | |
20328 | fi | |
b089607b | 20329 | |
3a922bb4 | 20330 | if test "$wxUSE_JOYSTICK" = "yes"; then |
a0b9e27f | 20331 | cat >> confdefs.h <<\EOF |
10f2d63a | 20332 | #define wxUSE_JOYSTICK 1 |
a0b9e27f | 20333 | EOF |
10f2d63a | 20334 | |
3a922bb4 RL |
20335 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
20336 | fi | |
dc3d889d VZ |
20337 | fi |
20338 | ||
8284b0c5 | 20339 | |
b089607b VZ |
20340 | if test "$TOOLKIT" != "MSW"; then |
20341 | ||
3a922bb4 RL |
20342 | HAVE_DL_FUNCS=0 |
20343 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 20344 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
20345 | if test "$USE_DARWIN" = 1; then |
20346 | HAVE_DL_FUNCS=1 | |
20347 | else | |
a0b9e27f | 20348 | for ac_func in dlopen |
10f2d63a | 20349 | do |
a0b9e27f | 20350 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 20351 | echo "configure:20352: checking for $ac_func" >&5 |
a0b9e27f MB |
20352 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20353 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20354 | else | |
20355 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 20356 | #line 20357 "configure" |
10f2d63a VZ |
20357 | #include "confdefs.h" |
20358 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20359 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
20360 | #include <assert.h> |
20361 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20362 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20363 | builtin and then its argument prototype would still apply. */ |
20364 | char $ac_func(); | |
20365 | ||
20366 | int main() { | |
20367 | ||
10f2d63a VZ |
20368 | /* The GNU C library defines this for functions which it implements |
20369 | to always fail with ENOSYS. Some functions are actually named | |
20370 | something starting with __ and the normal name is an alias. */ | |
20371 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20372 | choke me | |
20373 | #else | |
a0b9e27f | 20374 | $ac_func(); |
10f2d63a VZ |
20375 | #endif |
20376 | ||
a0b9e27f MB |
20377 | ; return 0; } |
20378 | EOF | |
8d90d2f2 | 20379 | if { (eval echo configure:20380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20380 | rm -rf conftest* |
20381 | eval "ac_cv_func_$ac_func=yes" | |
20382 | else | |
20383 | echo "configure: failed program was:" >&5 | |
20384 | cat conftest.$ac_ext >&5 | |
20385 | rm -rf conftest* | |
20386 | eval "ac_cv_func_$ac_func=no" | |
20387 | fi | |
20388 | rm -f conftest* | |
20389 | fi | |
20390 | ||
20391 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20392 | echo "$ac_t""yes" 1>&6 | |
20393 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20394 | cat >> confdefs.h <<EOF | |
20395 | #define $ac_tr_func 1 | |
20396 | EOF | |
20397 | ||
20398 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20399 | #define HAVE_DLOPEN 1 |
a0b9e27f | 20400 | EOF |
10f2d63a | 20401 | |
3a922bb4 | 20402 | HAVE_DL_FUNCS=1 |
a0b9e27f | 20403 | |
10f2d63a | 20404 | else |
a0b9e27f MB |
20405 | echo "$ac_t""no" 1>&6 |
20406 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
8d90d2f2 | 20407 | echo "configure:20408: checking for dlopen in -ldl" >&5 |
a0b9e27f MB |
20408 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
20409 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20410 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20411 | else |
a0b9e27f | 20412 | ac_save_LIBS="$LIBS" |
10f2d63a | 20413 | LIBS="-ldl $LIBS" |
a0b9e27f | 20414 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 20415 | #line 20416 "configure" |
10f2d63a VZ |
20416 | #include "confdefs.h" |
20417 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20418 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20419 | builtin and then its argument prototype would still apply. */ |
20420 | char dlopen(); | |
20421 | ||
20422 | int main() { | |
20423 | dlopen() | |
20424 | ; return 0; } | |
20425 | EOF | |
8d90d2f2 | 20426 | if { (eval echo configure:20427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20427 | rm -rf conftest* |
20428 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20429 | else | |
20430 | echo "configure: failed program was:" >&5 | |
20431 | cat conftest.$ac_ext >&5 | |
20432 | rm -rf conftest* | |
20433 | eval "ac_cv_lib_$ac_lib_var=no" | |
20434 | fi | |
20435 | rm -f conftest* | |
20436 | LIBS="$ac_save_LIBS" | |
20437 | ||
20438 | fi | |
20439 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20440 | echo "$ac_t""yes" 1>&6 | |
20441 | ||
20442 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20443 | #define HAVE_DLOPEN 1 |
a0b9e27f | 20444 | EOF |
10f2d63a | 20445 | |
3a922bb4 | 20446 | HAVE_DL_FUNCS=1 |
3d63bc3a | 20447 | DL_LINK=" -ldl$DL_LINK" |
a0b9e27f | 20448 | |
10f2d63a | 20449 | else |
a0b9e27f | 20450 | echo "$ac_t""no" 1>&6 |
10f2d63a | 20451 | |
a0b9e27f | 20452 | for ac_func in shl_load |
10f2d63a | 20453 | do |
a0b9e27f | 20454 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 20455 | echo "configure:20456: checking for $ac_func" >&5 |
a0b9e27f MB |
20456 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20457 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20458 | else | |
20459 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 20460 | #line 20461 "configure" |
10f2d63a VZ |
20461 | #include "confdefs.h" |
20462 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20463 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
20464 | #include <assert.h> |
20465 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20466 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20467 | builtin and then its argument prototype would still apply. */ |
20468 | char $ac_func(); | |
20469 | ||
20470 | int main() { | |
20471 | ||
10f2d63a VZ |
20472 | /* The GNU C library defines this for functions which it implements |
20473 | to always fail with ENOSYS. Some functions are actually named | |
20474 | something starting with __ and the normal name is an alias. */ | |
20475 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20476 | choke me | |
20477 | #else | |
a0b9e27f | 20478 | $ac_func(); |
10f2d63a VZ |
20479 | #endif |
20480 | ||
a0b9e27f MB |
20481 | ; return 0; } |
20482 | EOF | |
8d90d2f2 | 20483 | if { (eval echo configure:20484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20484 | rm -rf conftest* |
20485 | eval "ac_cv_func_$ac_func=yes" | |
20486 | else | |
20487 | echo "configure: failed program was:" >&5 | |
20488 | cat conftest.$ac_ext >&5 | |
20489 | rm -rf conftest* | |
20490 | eval "ac_cv_func_$ac_func=no" | |
20491 | fi | |
20492 | rm -f conftest* | |
20493 | fi | |
20494 | ||
20495 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20496 | echo "$ac_t""yes" 1>&6 | |
20497 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20498 | cat >> confdefs.h <<EOF | |
20499 | #define $ac_tr_func 1 | |
20500 | EOF | |
20501 | ||
20502 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20503 | #define HAVE_SHL_LOAD 1 |
a0b9e27f | 20504 | EOF |
10f2d63a | 20505 | |
3a922bb4 | 20506 | HAVE_SHL_FUNCS=1 |
a0b9e27f | 20507 | |
10f2d63a | 20508 | else |
a0b9e27f MB |
20509 | echo "$ac_t""no" 1>&6 |
20510 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
8d90d2f2 | 20511 | echo "configure:20512: checking for dld in -lshl_load" >&5 |
a0b9e27f MB |
20512 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
20513 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20514 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 20515 | else |
a0b9e27f | 20516 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 20517 | LIBS="-lshl_load $LIBS" |
a0b9e27f | 20518 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 20519 | #line 20520 "configure" |
f6bcfd97 | 20520 | #include "confdefs.h" |
8284b0c5 | 20521 | /* Override any gcc2 internal prototype to avoid an error. */ |
f6bcfd97 | 20522 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
20523 | builtin and then its argument prototype would still apply. */ |
20524 | char dld(); | |
20525 | ||
20526 | int main() { | |
20527 | dld() | |
20528 | ; return 0; } | |
20529 | EOF | |
8d90d2f2 | 20530 | if { (eval echo configure:20531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20531 | rm -rf conftest* |
20532 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20533 | else | |
20534 | echo "configure: failed program was:" >&5 | |
20535 | cat conftest.$ac_ext >&5 | |
20536 | rm -rf conftest* | |
20537 | eval "ac_cv_lib_$ac_lib_var=no" | |
20538 | fi | |
20539 | rm -f conftest* | |
20540 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 20541 | |
a0b9e27f MB |
20542 | fi |
20543 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20544 | echo "$ac_t""yes" 1>&6 | |
20545 | ||
3a922bb4 | 20546 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 20547 | DL_LINK=" -ldld$DL_LINK" |
a0b9e27f MB |
20548 | |
20549 | else | |
20550 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
20551 | fi |
20552 | ||
a0b9e27f | 20553 | |
10f2d63a VZ |
20554 | fi |
20555 | done | |
20556 | ||
a0b9e27f | 20557 | |
10f2d63a VZ |
20558 | fi |
20559 | ||
a0b9e27f | 20560 | |
10f2d63a VZ |
20561 | fi |
20562 | done | |
20563 | ||
5c6fa7d2 | 20564 | |
8284b0c5 | 20565 | if test "$HAVE_DL_FUNCS" = 1; then |
a0b9e27f | 20566 | for ac_func in dlerror |
f6bcfd97 | 20567 | do |
a0b9e27f | 20568 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8d90d2f2 | 20569 | echo "configure:20570: checking for $ac_func" >&5 |
a0b9e27f MB |
20570 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20571 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20572 | else | |
20573 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 20574 | #line 20575 "configure" |
f6bcfd97 BP |
20575 | #include "confdefs.h" |
20576 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20577 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
20578 | #include <assert.h> |
20579 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20580 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20581 | builtin and then its argument prototype would still apply. */ |
20582 | char $ac_func(); | |
20583 | ||
20584 | int main() { | |
20585 | ||
f6bcfd97 BP |
20586 | /* The GNU C library defines this for functions which it implements |
20587 | to always fail with ENOSYS. Some functions are actually named | |
20588 | something starting with __ and the normal name is an alias. */ | |
20589 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20590 | choke me | |
20591 | #else | |
a0b9e27f | 20592 | $ac_func(); |
f6bcfd97 BP |
20593 | #endif |
20594 | ||
a0b9e27f MB |
20595 | ; return 0; } |
20596 | EOF | |
8d90d2f2 | 20597 | if { (eval echo configure:20598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20598 | rm -rf conftest* |
20599 | eval "ac_cv_func_$ac_func=yes" | |
20600 | else | |
20601 | echo "configure: failed program was:" >&5 | |
20602 | cat conftest.$ac_ext >&5 | |
20603 | rm -rf conftest* | |
20604 | eval "ac_cv_func_$ac_func=no" | |
20605 | fi | |
20606 | rm -f conftest* | |
20607 | fi | |
20608 | ||
20609 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20610 | echo "$ac_t""yes" 1>&6 | |
20611 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20612 | cat >> confdefs.h <<EOF | |
20613 | #define $ac_tr_func 1 | |
20614 | EOF | |
20615 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 20616 | #define HAVE_DLERROR 1 |
a0b9e27f | 20617 | EOF |
f6bcfd97 BP |
20618 | |
20619 | else | |
a0b9e27f MB |
20620 | echo "$ac_t""no" 1>&6 |
20621 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
8d90d2f2 | 20622 | echo "configure:20623: checking for dlerror in -ldl" >&5 |
a0b9e27f MB |
20623 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
20624 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20625 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 20626 | else |
a0b9e27f | 20627 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 20628 | LIBS="-ldl $LIBS" |
a0b9e27f | 20629 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 20630 | #line 20631 "configure" |
f6bcfd97 BP |
20631 | #include "confdefs.h" |
20632 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20633 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20634 | builtin and then its argument prototype would still apply. */ |
20635 | char dlerror(); | |
20636 | ||
20637 | int main() { | |
20638 | dlerror() | |
20639 | ; return 0; } | |
20640 | EOF | |
8d90d2f2 | 20641 | if { (eval echo configure:20642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20642 | rm -rf conftest* |
20643 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20644 | else | |
20645 | echo "configure: failed program was:" >&5 | |
20646 | cat conftest.$ac_ext >&5 | |
20647 | rm -rf conftest* | |
20648 | eval "ac_cv_lib_$ac_lib_var=no" | |
20649 | fi | |
20650 | rm -f conftest* | |
20651 | LIBS="$ac_save_LIBS" | |
20652 | ||
20653 | fi | |
20654 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20655 | echo "$ac_t""yes" 1>&6 | |
20656 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 20657 | #define HAVE_DLERROR 1 |
a0b9e27f | 20658 | EOF |
f6bcfd97 | 20659 | |
a0b9e27f MB |
20660 | else |
20661 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
20662 | fi |
20663 | ||
20664 | fi | |
20665 | done | |
20666 | ||
3a922bb4 RL |
20667 | fi |
20668 | fi | |
f6bcfd97 | 20669 | |
3a922bb4 RL |
20670 | if test "$HAVE_DL_FUNCS" = 0; then |
20671 | if test "$HAVE_SHL_FUNCS" = 0; then | |
20672 | if test "$USE_UNIX" = 1; then | |
a0b9e27f | 20673 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
0b9ab0bd | 20674 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
20675 | wxUSE_DYNLIB_CLASS=no |
20676 | else | |
a0b9e27f | 20677 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
3a922bb4 RL |
20678 | fi |
20679 | fi | |
10f2d63a VZ |
20680 | fi |
20681 | fi | |
20682 | fi | |
20683 | ||
0b9ab0bd | 20684 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
a0b9e27f | 20685 | cat >> confdefs.h <<\EOF |
0b9ab0bd | 20686 | #define wxUSE_DYNAMIC_LOADER 1 |
a0b9e27f | 20687 | EOF |
0b9ab0bd RL |
20688 | |
20689 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
a0b9e27f | 20690 | cat >> confdefs.h <<\EOF |
10f2d63a | 20691 | #define wxUSE_DYNLIB_CLASS 1 |
a0b9e27f | 20692 | EOF |
10f2d63a VZ |
20693 | |
20694 | fi | |
20695 | ||
8284b0c5 | 20696 | |
1e6feb95 | 20697 | if test "$wxUSE_FONTMAP" = "yes" ; then |
a0b9e27f | 20698 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20699 | #define wxUSE_FONTMAP 1 |
a0b9e27f | 20700 | EOF |
1e6feb95 VZ |
20701 | |
20702 | fi | |
20703 | ||
10f2d63a | 20704 | if test "$wxUSE_UNICODE" = "yes" ; then |
a0b9e27f | 20705 | cat >> confdefs.h <<\EOF |
10f2d63a | 20706 | #define wxUSE_UNICODE 1 |
a0b9e27f | 20707 | EOF |
10f2d63a | 20708 | |
8284b0c5 | 20709 | |
bbc3925a VS |
20710 | if test "$wxUSE_MSW" != 1; then |
20711 | wxUSE_UNICODE_MSLU=no | |
20712 | fi | |
a72a4bfa VS |
20713 | |
20714 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
a0b9e27f | 20715 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 |
8d90d2f2 | 20716 | echo "configure:20717: checking for main in -lunicows" >&5 |
a0b9e27f MB |
20717 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
20718 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20719 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a72a4bfa | 20720 | else |
a0b9e27f | 20721 | ac_save_LIBS="$LIBS" |
a72a4bfa | 20722 | LIBS="-lunicows $LIBS" |
a0b9e27f | 20723 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 20724 | #line 20725 "configure" |
a72a4bfa VS |
20725 | #include "confdefs.h" |
20726 | ||
a0b9e27f MB |
20727 | int main() { |
20728 | main() | |
20729 | ; return 0; } | |
20730 | EOF | |
8d90d2f2 | 20731 | if { (eval echo configure:20732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20732 | rm -rf conftest* |
20733 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20734 | else | |
20735 | echo "configure: failed program was:" >&5 | |
20736 | cat conftest.$ac_ext >&5 | |
20737 | rm -rf conftest* | |
20738 | eval "ac_cv_lib_$ac_lib_var=no" | |
20739 | fi | |
20740 | rm -f conftest* | |
20741 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 20742 | |
a0b9e27f MB |
20743 | fi |
20744 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20745 | echo "$ac_t""yes" 1>&6 | |
20746 | ||
20747 | cat >> confdefs.h <<\EOF | |
a72a4bfa | 20748 | #define wxUSE_UNICODE_MSLU 1 |
a0b9e27f | 20749 | EOF |
a72a4bfa | 20750 | |
a0b9e27f | 20751 | |
a72a4bfa | 20752 | else |
a0b9e27f | 20753 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 20754 | |
a0b9e27f MB |
20755 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. |
20756 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
a72a4bfa | 20757 | wxUSE_UNICODE_MSLU=no |
a0b9e27f | 20758 | |
a72a4bfa VS |
20759 | fi |
20760 | ||
20761 | fi | |
10f2d63a VZ |
20762 | fi |
20763 | ||
10f2d63a | 20764 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
a0b9e27f | 20765 | cat >> confdefs.h <<\EOF |
10f2d63a | 20766 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
a0b9e27f | 20767 | EOF |
10f2d63a VZ |
20768 | |
20769 | fi | |
20770 | ||
8284b0c5 MB |
20771 | |
20772 | ||
10f2d63a VZ |
20773 | IODBC_C_SRC="" |
20774 | if test "$wxUSE_ODBC" = "yes" ; then | |
a0b9e27f | 20775 | cat >> confdefs.h <<\EOF |
10f2d63a | 20776 | #define wxUSE_ODBC 1 |
a0b9e27f | 20777 | EOF |
10f2d63a VZ |
20778 | |
20779 | WXODBCFLAG="-D_IODBC_" | |
20780 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
20781 | fi |
20782 | ||
8284b0c5 | 20783 | |
10f2d63a | 20784 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
a0b9e27f | 20785 | cat >> confdefs.h <<\EOF |
10f2d63a | 20786 | #define wxUSE_POSTSCRIPT 1 |
a0b9e27f | 20787 | EOF |
10f2d63a VZ |
20788 | |
20789 | fi | |
20790 | ||
a0b9e27f | 20791 | cat >> confdefs.h <<\EOF |
10f2d63a | 20792 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
a0b9e27f | 20793 | EOF |
10f2d63a | 20794 | |
8284b0c5 | 20795 | |
a0b9e27f | 20796 | cat >> confdefs.h <<\EOF |
10f2d63a | 20797 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
a0b9e27f | 20798 | EOF |
10f2d63a | 20799 | |
8284b0c5 MB |
20800 | |
20801 | ||
10f2d63a | 20802 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
a0b9e27f | 20803 | cat >> confdefs.h <<\EOF |
10f2d63a | 20804 | #define wxUSE_CONSTRAINTS 1 |
a0b9e27f | 20805 | EOF |
10f2d63a VZ |
20806 | |
20807 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
20808 | fi | |
20809 | ||
20810 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 20811 | |
8284b0c5 | 20812 | |
bb811f17 | 20813 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
a0b9e27f | 20814 | cat >> confdefs.h <<\EOF |
10f2d63a | 20815 | #define wxUSE_MDI_ARCHITECTURE 1 |
a0b9e27f | 20816 | EOF |
10f2d63a | 20817 | |
bb811f17 JS |
20818 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
20819 | fi | |
10f2d63a VZ |
20820 | fi |
20821 | ||
20822 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 20823 | cat >> confdefs.h <<\EOF |
10f2d63a | 20824 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
a0b9e27f | 20825 | EOF |
10f2d63a VZ |
20826 | |
20827 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
20828 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
20829 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
20830 | fi | |
20831 | fi | |
20832 | ||
20833 | if test "$wxUSE_HELP" = "yes"; then | |
a0b9e27f | 20834 | cat >> confdefs.h <<\EOF |
10f2d63a | 20835 | #define wxUSE_HELP 1 |
a0b9e27f | 20836 | EOF |
10f2d63a VZ |
20837 | |
20838 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 20839 | |
77e13408 | 20840 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 20841 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
a0b9e27f | 20842 | cat >> confdefs.h <<\EOF |
29fd3c0c | 20843 | #define wxUSE_MS_HTML_HELP 1 |
a0b9e27f | 20844 | EOF |
29fd3c0c | 20845 | |
3e44f09d | 20846 | fi |
3379ed37 | 20847 | fi |
031d8228 VS |
20848 | |
20849 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
20850 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 20851 | cat >> confdefs.h <<\EOF |
031d8228 | 20852 | #define wxUSE_WXHTML_HELP 1 |
a0b9e27f | 20853 | EOF |
031d8228 VS |
20854 | |
20855 | else | |
a0b9e27f | 20856 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 |
031d8228 VS |
20857 | wxUSE_WXHTML_HELP=no |
20858 | fi | |
20859 | fi | |
10f2d63a VZ |
20860 | fi |
20861 | ||
20862 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
20863 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 20864 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 20865 | else |
a0b9e27f | 20866 | cat >> confdefs.h <<\EOF |
10f2d63a | 20867 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
a0b9e27f | 20868 | EOF |
10f2d63a VZ |
20869 | |
20870 | fi | |
20871 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
20872 | fi | |
20873 | ||
20874 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
a0b9e27f | 20875 | cat >> confdefs.h <<\EOF |
10f2d63a | 20876 | #define wxUSE_PROLOGIO 1 |
a0b9e27f | 20877 | EOF |
10f2d63a | 20878 | |
2b5f62a0 | 20879 | ALL_OBJECTS="$ALL_OBJECTS parser.o" |
10f2d63a VZ |
20880 | fi |
20881 | ||
20882 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea | 20883 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 20884 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 |
2b5f62a0 VZ |
20885 | else |
20886 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20887 | #define wxUSE_RESOURCES 1 |
a0b9e27f | 20888 | EOF |
10f2d63a | 20889 | |
2b5f62a0 VZ |
20890 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
20891 | fi | |
20892 | if test "$wxUSE_PROLOGIO" != "yes" ; then | |
20893 | ALL_OBJECTS="$ALL_OBJECTS parser.o" | |
e334d0ea | 20894 | fi |
10f2d63a VZ |
20895 | fi |
20896 | ||
20897 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
a0b9e27f | 20898 | cat >> confdefs.h <<\EOF |
10f2d63a | 20899 | #define wxUSE_X_RESOURCES 1 |
a0b9e27f | 20900 | EOF |
10f2d63a VZ |
20901 | |
20902 | fi | |
20903 | ||
8284b0c5 | 20904 | |
77e13408 RL |
20905 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
20906 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
3bce6687 | 20907 | -o "$wxUSE_OLE" = "yes" \ |
77e13408 | 20908 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then |
a0b9e27f | 20909 | for ac_hdr in ole2.h |
10f2d63a | 20910 | do |
a0b9e27f MB |
20911 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
20912 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8d90d2f2 | 20913 | echo "configure:20914: checking for $ac_hdr" >&5 |
a0b9e27f MB |
20914 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20915 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20916 | else | |
20917 | cat > conftest.$ac_ext <<EOF | |
8d90d2f2 | 20918 | #line 20919 "configure" |
10f2d63a | 20919 | #include "confdefs.h" |
a0b9e27f MB |
20920 | #include <$ac_hdr> |
20921 | EOF | |
20922 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8d90d2f2 | 20923 | { (eval echo configure:20924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
20924 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20925 | if test -z "$ac_err"; then | |
20926 | rm -rf conftest* | |
20927 | eval "ac_cv_header_$ac_safe=yes" | |
20928 | else | |
20929 | echo "$ac_err" >&5 | |
20930 | echo "configure: failed program was:" >&5 | |
10f2d63a | 20931 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
20932 | rm -rf conftest* |
20933 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 20934 | fi |
a0b9e27f | 20935 | rm -f conftest* |
10f2d63a | 20936 | fi |
a0b9e27f MB |
20937 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
20938 | echo "$ac_t""yes" 1>&6 | |
20939 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20940 | cat >> confdefs.h <<EOF | |
20941 | #define $ac_tr_hdr 1 | |
20942 | EOF | |
20943 | ||
20944 | else | |
20945 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
20946 | fi |
20947 | done | |
20948 | ||
8284b0c5 | 20949 | |
2b9bdf71 VZ |
20950 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
20951 | if test "$GCC" = yes ; then | |
a0b9e27f MB |
20952 | |
20953 | ac_ext=C | |
20954 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8284b0c5 | 20955 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20956 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20957 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20958 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 MB |
20959 | |
20960 | ||
a0b9e27f | 20961 | echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6 |
8d90d2f2 | 20962 | echo "configure:20963: checking if g++ requires -fvtable-thunks" >&5 |
a0b9e27f | 20963 | cat > conftest.$ac_ext <<EOF |
8d90d2f2 | 20964 | #line 20965 "configure" |
8284b0c5 MB |
20965 | #include "confdefs.h" |
20966 | #include <windows.h> | |
20967 | #include <ole2.h> | |
a0b9e27f | 20968 | int main() { |
8284b0c5 | 20969 | |
a0b9e27f MB |
20970 | ; return 0; } |
20971 | EOF | |
8d90d2f2 | 20972 | if { (eval echo configure:20973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
20973 | rm -rf conftest* |
20974 | echo "$ac_t""no" 1>&6 | |
20975 | else | |
20976 | echo "configure: failed program was:" >&5 | |
20977 | cat conftest.$ac_ext >&5 | |
20978 | rm -rf conftest* | |
20979 | echo "$ac_t""yes" 1>&6 | |
8284b0c5 MB |
20980 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
20981 | fi | |
a0b9e27f | 20982 | rm -f conftest* |
8284b0c5 | 20983 | ac_ext=c |
a0b9e27f | 20984 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8284b0c5 | 20985 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20986 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20987 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20988 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20989 | |
2b9bdf71 | 20990 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 20991 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
a0b9e27f | 20992 | cat >> confdefs.h <<\EOF |
4f11a343 | 20993 | #define wxUSE_OLE 1 |
a0b9e27f | 20994 | EOF |
4f11a343 | 20995 | |
8284b0c5 | 20996 | |
2b9bdf71 VZ |
20997 | fi |
20998 | ||
a0b9e27f | 20999 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21000 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 21001 | EOF |
2b9bdf71 VZ |
21002 | |
21003 | else | |
a0b9e27f | 21004 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 |
2b9bdf71 VZ |
21005 | |
21006 | wxUSE_CLIPBOARD=no | |
21007 | wxUSE_DRAG_AND_DROP=no | |
21008 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
21009 | wxUSE_OLE=no |
21010 | fi | |
21011 | ||
21012 | if test "$wxUSE_METAFILE" = "yes"; then | |
21013 | cat >> confdefs.h <<\EOF | |
21014 | #define wxUSE_METAFILE 1 | |
21015 | EOF | |
21016 | ||
21017 | ||
21018 | cat >> confdefs.h <<\EOF | |
21019 | #define wxUSE_ENH_METAFILE 1 | |
21020 | EOF | |
21021 | ||
21022 | fi | |
21023 | fi | |
21024 | ||
2b9bdf71 VZ |
21025 | if test "$wxUSE_IPC" = "yes"; then |
21026 | if test "$wxUSE_SOCKETS" != "yes"; then | |
a0b9e27f | 21027 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
21028 | fi |
21029 | ||
a0b9e27f | 21030 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21031 | #define wxUSE_IPC 1 |
a0b9e27f | 21032 | EOF |
2b9bdf71 VZ |
21033 | |
21034 | fi | |
21035 | ||
21036 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 21037 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 21038 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
21039 | wxUSE_CLIPBOARD=no |
21040 | fi | |
21041 | ||
21042 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
a0b9e27f | 21043 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21044 | #define wxUSE_CLIPBOARD 1 |
a0b9e27f | 21045 | EOF |
2b9bdf71 | 21046 | |
8284b0c5 | 21047 | |
a0b9e27f | 21048 | cat >> confdefs.h <<\EOF |
673f4220 | 21049 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 21050 | EOF |
673f4220 | 21051 | |
6c657b52 | 21052 | fi |
2b9bdf71 VZ |
21053 | fi |
21054 | ||
21055 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
21056 | if test "$wxUSE_GTK" = 1; then | |
21057 | if test "$WXGTK12" != 1; then | |
a0b9e27f | 21058 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
21059 | wxUSE_DRAG_AND_DROP=no |
21060 | fi | |
21061 | fi | |
21062 | ||
2b9bdf71 | 21063 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 21064 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
21065 | wxUSE_DRAG_AND_DROP=no |
21066 | fi | |
21067 | ||
f79bd02d | 21068 | if test "$wxUSE_X11" = 1; then |
a0b9e27f | 21069 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 |
f79bd02d JS |
21070 | wxUSE_DRAG_AND_DROP=no |
21071 | fi | |
21072 | ||
6c657b52 | 21073 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 21074 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
21075 | wxUSE_DRAG_AND_DROP=no |
21076 | fi | |
21077 | ||
10f2d63a | 21078 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
a0b9e27f | 21079 | cat >> confdefs.h <<\EOF |
10f2d63a | 21080 | #define wxUSE_DRAG_AND_DROP 1 |
a0b9e27f | 21081 | EOF |
10f2d63a VZ |
21082 | |
21083 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
21084 | fi | |
21085 | ||
21086 | fi | |
21087 | ||
21088 | if test "$wxUSE_SPLINES" = "yes" ; then | |
a0b9e27f | 21089 | cat >> confdefs.h <<\EOF |
10f2d63a | 21090 | #define wxUSE_SPLINES 1 |
a0b9e27f | 21091 | EOF |
10f2d63a VZ |
21092 | |
21093 | fi | |
21094 | ||
8284b0c5 | 21095 | |
1e6feb95 VZ |
21096 | USES_CONTROLS=0 |
21097 | if test "$wxUSE_CONTROLS" = "yes"; then | |
21098 | USES_CONTROLS=1 | |
21099 | fi | |
21100 | ||
10f2d63a | 21101 | if test "$wxUSE_ACCEL" = "yes"; then |
a0b9e27f | 21102 | cat >> confdefs.h <<\EOF |
10f2d63a | 21103 | #define wxUSE_ACCEL 1 |
a0b9e27f | 21104 | EOF |
10f2d63a | 21105 | |
1e6feb95 VZ |
21106 | USES_CONTROLS=1 |
21107 | fi | |
21108 | ||
21109 | if test "$wxUSE_BUTTON" = "yes"; then | |
a0b9e27f | 21110 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21111 | #define wxUSE_BUTTON 1 |
a0b9e27f | 21112 | EOF |
1e6feb95 VZ |
21113 | |
21114 | USES_CONTROLS=1 | |
21115 | fi | |
21116 | ||
21117 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
a0b9e27f | 21118 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21119 | #define wxUSE_BMPBUTTON 1 |
a0b9e27f | 21120 | EOF |
1e6feb95 VZ |
21121 | |
21122 | USES_CONTROLS=1 | |
21123 | fi | |
21124 | ||
21125 | if test "$wxUSE_CALCTRL" = "yes"; then | |
a0b9e27f | 21126 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21127 | #define wxUSE_CALENDARCTRL 1 |
a0b9e27f | 21128 | EOF |
1e6feb95 VZ |
21129 | |
21130 | USES_CONTROLS=1 | |
21131 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
21132 | fi |
21133 | ||
21134 | if test "$wxUSE_CARET" = "yes"; then | |
a0b9e27f | 21135 | cat >> confdefs.h <<\EOF |
10f2d63a | 21136 | #define wxUSE_CARET 1 |
a0b9e27f | 21137 | EOF |
10f2d63a | 21138 | |
1e6feb95 | 21139 | USES_CONTROLS=1 |
10f2d63a VZ |
21140 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
21141 | fi | |
21142 | ||
21143 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
a0b9e27f | 21144 | cat >> confdefs.h <<\EOF |
10f2d63a | 21145 | #define wxUSE_COMBOBOX 1 |
a0b9e27f | 21146 | EOF |
10f2d63a | 21147 | |
1e6feb95 | 21148 | USES_CONTROLS=1 |
10f2d63a VZ |
21149 | fi |
21150 | ||
21151 | if test "$wxUSE_CHOICE" = "yes"; then | |
a0b9e27f | 21152 | cat >> confdefs.h <<\EOF |
10f2d63a | 21153 | #define wxUSE_CHOICE 1 |
a0b9e27f | 21154 | EOF |
10f2d63a | 21155 | |
1e6feb95 | 21156 | USES_CONTROLS=1 |
10f2d63a VZ |
21157 | fi |
21158 | ||
21159 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
a0b9e27f | 21160 | cat >> confdefs.h <<\EOF |
10f2d63a | 21161 | #define wxUSE_CHECKBOX 1 |
a0b9e27f | 21162 | EOF |
10f2d63a | 21163 | |
1e6feb95 | 21164 | USES_CONTROLS=1 |
10f2d63a VZ |
21165 | fi |
21166 | ||
21167 | if test "$wxUSE_CHECKLST" = "yes"; then | |
a0b9e27f | 21168 | cat >> confdefs.h <<\EOF |
10f2d63a | 21169 | #define wxUSE_CHECKLISTBOX 1 |
a0b9e27f | 21170 | EOF |
10f2d63a | 21171 | |
1e6feb95 | 21172 | USES_CONTROLS=1 |
10f2d63a VZ |
21173 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
21174 | fi | |
21175 | ||
21176 | if test "$wxUSE_GAUGE" = "yes"; then | |
a0b9e27f | 21177 | cat >> confdefs.h <<\EOF |
10f2d63a | 21178 | #define wxUSE_GAUGE 1 |
a0b9e27f | 21179 | EOF |
10f2d63a | 21180 | |
1e6feb95 | 21181 | USES_CONTROLS=1 |
10f2d63a VZ |
21182 | fi |
21183 | ||
d6a55c4b VZ |
21184 | if test "$wxUSE_NEW_GRID" = "yes"; then |
21185 | wxUSE_GRID="yes" | |
a0b9e27f | 21186 | cat >> confdefs.h <<\EOF |
d6a55c4b | 21187 | #define wxUSE_NEW_GRID 1 |
a0b9e27f | 21188 | EOF |
10f2d63a | 21189 | |
1e6feb95 | 21190 | USES_CONTROLS=1 |
d6a55c4b | 21191 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
21192 | fi |
21193 | ||
d6a55c4b | 21194 | if test "$wxUSE_GRID" = "yes"; then |
a0b9e27f | 21195 | cat >> confdefs.h <<\EOF |
d6a55c4b | 21196 | #define wxUSE_GRID 1 |
a0b9e27f | 21197 | EOF |
10f2d63a | 21198 | |
1e6feb95 | 21199 | USES_CONTROLS=1 |
d6a55c4b | 21200 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
21201 | fi |
21202 | ||
21203 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21204 | cat >> confdefs.h <<\EOF |
10f2d63a | 21205 | #define wxUSE_IMAGLIST 1 |
a0b9e27f | 21206 | EOF |
10f2d63a VZ |
21207 | |
21208 | fi | |
21209 | ||
21210 | if test "$wxUSE_LISTBOX" = "yes"; then | |
a0b9e27f | 21211 | cat >> confdefs.h <<\EOF |
10f2d63a | 21212 | #define wxUSE_LISTBOX 1 |
a0b9e27f | 21213 | EOF |
10f2d63a | 21214 | |
1e6feb95 | 21215 | USES_CONTROLS=1 |
10f2d63a VZ |
21216 | fi |
21217 | ||
21218 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
21219 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21220 | cat >> confdefs.h <<\EOF |
10f2d63a | 21221 | #define wxUSE_LISTCTRL 1 |
a0b9e27f | 21222 | EOF |
10f2d63a | 21223 | |
1e6feb95 | 21224 | USES_CONTROLS=1 |
10f2d63a VZ |
21225 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
21226 | else | |
a0b9e27f | 21227 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
21228 | fi |
21229 | fi | |
21230 | ||
21231 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
a0b9e27f | 21232 | cat >> confdefs.h <<\EOF |
10f2d63a | 21233 | #define wxUSE_NOTEBOOK 1 |
a0b9e27f | 21234 | EOF |
10f2d63a | 21235 | |
1e6feb95 | 21236 | USES_CONTROLS=1 |
10f2d63a VZ |
21237 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
21238 | fi | |
21239 | ||
24176f2c | 21240 | if test "$wxUSE_PROPSHEET" = "yes"; then |
a0b9e27f | 21241 | cat >> confdefs.h <<\EOF |
24176f2c | 21242 | #define wxUSE_PROPSHEET 1 |
a0b9e27f | 21243 | EOF |
24176f2c GD |
21244 | |
21245 | USES_CONTROLS=1 | |
21246 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
21247 | fi | |
21248 | ||
10f2d63a | 21249 | if test "$wxUSE_RADIOBOX" = "yes"; then |
a0b9e27f | 21250 | cat >> confdefs.h <<\EOF |
10f2d63a | 21251 | #define wxUSE_RADIOBOX 1 |
a0b9e27f | 21252 | EOF |
10f2d63a | 21253 | |
1e6feb95 | 21254 | USES_CONTROLS=1 |
10f2d63a VZ |
21255 | fi |
21256 | ||
21257 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
a0b9e27f | 21258 | cat >> confdefs.h <<\EOF |
10f2d63a | 21259 | #define wxUSE_RADIOBTN 1 |
a0b9e27f | 21260 | EOF |
10f2d63a | 21261 | |
1e6feb95 | 21262 | USES_CONTROLS=1 |
10f2d63a VZ |
21263 | fi |
21264 | ||
21265 | if test "$wxUSE_SASH" = "yes"; then | |
a0b9e27f | 21266 | cat >> confdefs.h <<\EOF |
10f2d63a | 21267 | #define wxUSE_SASH 1 |
a0b9e27f | 21268 | EOF |
10f2d63a VZ |
21269 | |
21270 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
21271 | fi | |
21272 | ||
21273 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
a0b9e27f | 21274 | cat >> confdefs.h <<\EOF |
10f2d63a | 21275 | #define wxUSE_SCROLLBAR 1 |
a0b9e27f | 21276 | EOF |
10f2d63a | 21277 | |
1e6feb95 | 21278 | USES_CONTROLS=1 |
741a9306 | 21279 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
21280 | fi |
21281 | ||
21282 | if test "$wxUSE_SLIDER" = "yes"; then | |
a0b9e27f | 21283 | cat >> confdefs.h <<\EOF |
10f2d63a | 21284 | #define wxUSE_SLIDER 1 |
a0b9e27f | 21285 | EOF |
10f2d63a | 21286 | |
1e6feb95 | 21287 | USES_CONTROLS=1 |
10f2d63a VZ |
21288 | fi |
21289 | ||
21290 | if test "$wxUSE_SPINBTN" = "yes"; then | |
a0b9e27f | 21291 | cat >> confdefs.h <<\EOF |
10f2d63a | 21292 | #define wxUSE_SPINBTN 1 |
a0b9e27f | 21293 | EOF |
10f2d63a | 21294 | |
1e6feb95 | 21295 | USES_CONTROLS=1 |
10f2d63a VZ |
21296 | fi |
21297 | ||
56cfaa52 | 21298 | if test "$wxUSE_SPINCTRL" = "yes"; then |
a0b9e27f | 21299 | cat >> confdefs.h <<\EOF |
56cfaa52 | 21300 | #define wxUSE_SPINCTRL 1 |
a0b9e27f | 21301 | EOF |
56cfaa52 | 21302 | |
1e6feb95 | 21303 | USES_CONTROLS=1 |
56cfaa52 RR |
21304 | fi |
21305 | ||
10f2d63a | 21306 | if test "$wxUSE_SPLITTER" = "yes"; then |
a0b9e27f | 21307 | cat >> confdefs.h <<\EOF |
10f2d63a | 21308 | #define wxUSE_SPLITTER 1 |
a0b9e27f | 21309 | EOF |
10f2d63a VZ |
21310 | |
21311 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
21312 | fi | |
21313 | ||
21314 | if test "$wxUSE_STATBMP" = "yes"; then | |
a0b9e27f | 21315 | cat >> confdefs.h <<\EOF |
10f2d63a | 21316 | #define wxUSE_STATBMP 1 |
a0b9e27f | 21317 | EOF |
10f2d63a | 21318 | |
1e6feb95 | 21319 | USES_CONTROLS=1 |
10f2d63a VZ |
21320 | fi |
21321 | ||
21322 | if test "$wxUSE_STATBOX" = "yes"; then | |
a0b9e27f | 21323 | cat >> confdefs.h <<\EOF |
10f2d63a | 21324 | #define wxUSE_STATBOX 1 |
a0b9e27f | 21325 | EOF |
10f2d63a | 21326 | |
1e6feb95 VZ |
21327 | USES_CONTROLS=1 |
21328 | fi | |
21329 | ||
21330 | if test "$wxUSE_STATTEXT" = "yes"; then | |
a0b9e27f | 21331 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21332 | #define wxUSE_STATTEXT 1 |
a0b9e27f | 21333 | EOF |
1e6feb95 VZ |
21334 | |
21335 | USES_CONTROLS=1 | |
10f2d63a VZ |
21336 | fi |
21337 | ||
21338 | if test "$wxUSE_STATLINE" = "yes"; then | |
89e6bf6d | 21339 | cat >> confdefs.h <<\EOF |
10f2d63a | 21340 | #define wxUSE_STATLINE 1 |
a0b9e27f | 21341 | EOF |
10f2d63a | 21342 | |
89e6bf6d | 21343 | USES_CONTROLS=1 |
10f2d63a VZ |
21344 | fi |
21345 | ||
21346 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
a0b9e27f | 21347 | cat >> confdefs.h <<\EOF |
10f2d63a | 21348 | #define wxUSE_STATUSBAR 1 |
a0b9e27f | 21349 | EOF |
10f2d63a | 21350 | |
1e6feb95 | 21351 | USES_CONTROLS=1 |
698dcdb6 | 21352 | |
2286341c | 21353 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
21354 | fi |
21355 | ||
21356 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
a0b9e27f | 21357 | cat >> confdefs.h <<\EOF |
10f2d63a | 21358 | #define wxUSE_TAB_DIALOG 1 |
a0b9e27f | 21359 | EOF |
10f2d63a VZ |
21360 | |
21361 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
21362 | fi | |
21363 | ||
1e6feb95 | 21364 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
a0b9e27f | 21365 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21366 | #define wxUSE_TEXTCTRL 1 |
a0b9e27f | 21367 | EOF |
1e6feb95 VZ |
21368 | |
21369 | USES_CONTROLS=1 | |
21370 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
21371 | fi | |
21372 | ||
1db8dc4a | 21373 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 | 21374 | if test "$wxUSE_MAC" = 1; then |
a0b9e27f | 21375 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
21376 | wxUSE_TOGGLEBTN=no |
21377 | fi | |
21378 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
a0b9e27f | 21379 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
21380 | wxUSE_TOGGLEBTN=no |
21381 | fi | |
21382 | ||
21383 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
a0b9e27f | 21384 | cat >> confdefs.h <<\EOF |
1db8dc4a | 21385 | #define wxUSE_TOGGLEBTN 1 |
a0b9e27f | 21386 | EOF |
1db8dc4a | 21387 | |
1e6feb95 | 21388 | USES_CONTROLS=1 |
a45d7ab7 | 21389 | fi |
1db8dc4a VZ |
21390 | fi |
21391 | ||
360d6699 | 21392 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
a0b9e27f | 21393 | cat >> confdefs.h <<\EOF |
360d6699 | 21394 | #define wxUSE_TOOLBAR_SIMPLE 1 |
a0b9e27f | 21395 | EOF |
360d6699 VZ |
21396 | |
21397 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 21398 | USES_CONTROLS=1 |
360d6699 VZ |
21399 | fi |
21400 | ||
10f2d63a | 21401 | if test "$wxUSE_TOOLBAR" = "yes"; then |
a0b9e27f | 21402 | cat >> confdefs.h <<\EOF |
10f2d63a | 21403 | #define wxUSE_TOOLBAR 1 |
a0b9e27f | 21404 | EOF |
10f2d63a | 21405 | |
1e6feb95 | 21406 | USES_CONTROLS=1 |
698dcdb6 | 21407 | |
360d6699 VZ |
21408 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
21409 | wxUSE_TOOLBAR_NATIVE="yes" | |
21410 | fi | |
21411 | ||
1e6feb95 | 21412 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
a0b9e27f | 21413 | cat >> confdefs.h <<\EOF |
360d6699 | 21414 | #define wxUSE_TOOLBAR_NATIVE 1 |
a0b9e27f | 21415 | EOF |
360d6699 | 21416 | |
1e6feb95 VZ |
21417 | USES_CONTROLS=1 |
21418 | fi | |
21419 | ||
21420 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
21421 | fi |
21422 | ||
10f2d63a VZ |
21423 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
21424 | if test "$wxUSE_MOTIF" = 1; then | |
a0b9e27f | 21425 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a | 21426 | else |
89e6bf6d VZ |
21427 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
21428 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 | |
10f2d63a | 21429 | else |
89e6bf6d | 21430 | cat >> confdefs.h <<\EOF |
10f2d63a | 21431 | #define wxUSE_TOOLTIPS 1 |
a0b9e27f | 21432 | EOF |
10f2d63a VZ |
21433 | |
21434 | fi | |
21435 | fi | |
21436 | fi | |
21437 | ||
21438 | if test "$wxUSE_TREECTRL" = "yes"; then | |
21439 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21440 | cat >> confdefs.h <<\EOF |
10f2d63a | 21441 | #define wxUSE_TREECTRL 1 |
a0b9e27f | 21442 | EOF |
10f2d63a | 21443 | |
1e6feb95 | 21444 | USES_CONTROLS=1 |
10f2d63a VZ |
21445 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
21446 | else | |
a0b9e27f | 21447 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
21448 | fi |
21449 | fi | |
21450 | ||
9f41d601 | 21451 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 21452 | if test "$wxUSE_MAC" = 1; then |
a0b9e27f | 21453 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 21454 | else |
485cf710 | 21455 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 21456 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 |
485cf710 | 21457 | else |
3c011993 | 21458 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 21459 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 21460 | else |
a0b9e27f | 21461 | cat >> confdefs.h <<\EOF |
9f41d601 | 21462 | #define wxUSE_POPUPWIN 1 |
a0b9e27f | 21463 | EOF |
9f41d601 | 21464 | |
8284b0c5 | 21465 | |
3c011993 VZ |
21466 | USES_CONTROLS=1 |
21467 | fi | |
485cf710 | 21468 | fi |
6abe4b65 | 21469 | fi |
9f41d601 RR |
21470 | fi |
21471 | ||
dd964dcc | 21472 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 21473 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 21474 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 21475 | else |
a0b9e27f | 21476 | cat >> confdefs.h <<\EOF |
dd964dcc | 21477 | #define wxUSE_TIPWINDOW 1 |
a0b9e27f | 21478 | EOF |
dd964dcc | 21479 | |
3c011993 | 21480 | fi |
dd964dcc VZ |
21481 | fi |
21482 | ||
1e6feb95 | 21483 | if test "$USES_CONTROLS" = 1; then |
a0b9e27f | 21484 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21485 | #define wxUSE_CONTROLS 1 |
a0b9e27f | 21486 | EOF |
10f2d63a | 21487 | |
10f2d63a VZ |
21488 | fi |
21489 | ||
8284b0c5 | 21490 | |
24176f2c | 21491 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
a0b9e27f | 21492 | cat >> confdefs.h <<\EOF |
24176f2c | 21493 | #define wxUSE_TREELAYOUT 1 |
a0b9e27f | 21494 | EOF |
24176f2c GD |
21495 | |
21496 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
21497 | fi | |
1e6feb95 | 21498 | |
24fd6d87 | 21499 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
a0b9e27f | 21500 | cat >> confdefs.h <<\EOF |
24fd6d87 | 21501 | #define wxUSE_DRAGIMAGE 1 |
a0b9e27f | 21502 | EOF |
24fd6d87 VZ |
21503 | |
21504 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
21505 | fi | |
21506 | ||
1e6feb95 | 21507 | if test "$wxUSE_MENUS" = "yes"; then |
a0b9e27f | 21508 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21509 | #define wxUSE_MENUS 1 |
a0b9e27f | 21510 | EOF |
10f2d63a | 21511 | |
1e6feb95 | 21512 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
21513 | fi |
21514 | ||
1e6feb95 | 21515 | if test "$wxUSE_METAFILE" = "yes"; then |
a0b9e27f | 21516 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21517 | #define wxUSE_METAFILE 1 |
a0b9e27f | 21518 | EOF |
10f2d63a | 21519 | |
10f2d63a VZ |
21520 | fi |
21521 | ||
1e6feb95 | 21522 | if test "$wxUSE_MIMETYPE" = "yes"; then |
a0b9e27f | 21523 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21524 | #define wxUSE_MIMETYPE 1 |
a0b9e27f | 21525 | EOF |
10f2d63a | 21526 | |
10f2d63a VZ |
21527 | fi |
21528 | ||
3e44f09d | 21529 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
a0b9e27f | 21530 | cat >> confdefs.h <<\EOF |
3e44f09d | 21531 | #define wxUSE_SYSTEM_OPTIONS 1 |
a0b9e27f | 21532 | EOF |
3e44f09d | 21533 | |
321d2b14 VZ |
21534 | if test "$TOOLKIT" = "MSW"; then |
21535 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
21536 | fi | |
21537 | ||
3e44f09d VZ |
21538 | fi |
21539 | ||
4cdb0ab0 | 21540 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca | 21541 | if test "$wxUSE_SOCKETS" != "yes"; then |
a0b9e27f | 21542 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 |
3954f9ca VS |
21543 | wxUSE_PROTOCOL=no |
21544 | fi | |
21545 | ||
21546 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
a0b9e27f | 21547 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21548 | #define wxUSE_PROTOCOL 1 |
a0b9e27f | 21549 | EOF |
4cdb0ab0 | 21550 | |
8284b0c5 | 21551 | |
3954f9ca | 21552 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
a0b9e27f | 21553 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21554 | #define wxUSE_PROTOCOL_HTTP 1 |
a0b9e27f | 21555 | EOF |
4cdb0ab0 | 21556 | |
3954f9ca VS |
21557 | fi |
21558 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
a0b9e27f | 21559 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21560 | #define wxUSE_PROTOCOL_FTP 1 |
a0b9e27f | 21561 | EOF |
4cdb0ab0 | 21562 | |
3954f9ca VS |
21563 | fi |
21564 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
a0b9e27f | 21565 | cat >> confdefs.h <<\EOF |
3954f9ca | 21566 | #define wxUSE_PROTOCOL_FILE 1 |
a0b9e27f | 21567 | EOF |
3954f9ca VS |
21568 | |
21569 | fi | |
4cdb0ab0 | 21570 | fi |
3954f9ca VS |
21571 | fi |
21572 | ||
21573 | if test "$wxUSE_URL" = "yes"; then | |
21574 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
a0b9e27f | 21575 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 |
3954f9ca VS |
21576 | wxUSE_URL=no |
21577 | fi | |
21578 | if test "$wxUSE_URL" = "yes"; then | |
a0b9e27f | 21579 | cat >> confdefs.h <<\EOF |
3954f9ca | 21580 | #define wxUSE_URL 1 |
a0b9e27f | 21581 | EOF |
4cdb0ab0 VS |
21582 | |
21583 | fi | |
21584 | fi | |
21585 | ||
10f2d63a | 21586 | if test "$wxUSE_MINIFRAME" = "yes"; then |
a0b9e27f | 21587 | cat >> confdefs.h <<\EOF |
10f2d63a | 21588 | #define wxUSE_MINIFRAME 1 |
a0b9e27f | 21589 | EOF |
10f2d63a VZ |
21590 | |
21591 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
21592 | fi | |
21593 | ||
21594 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 21595 | cat >> confdefs.h <<\EOF |
10f2d63a | 21596 | #define wxUSE_HTML 1 |
a0b9e27f | 21597 | EOF |
10f2d63a VZ |
21598 | |
21599 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
21600 | fi |
21601 | ||
21602 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
a0b9e27f | 21603 | cat >> confdefs.h <<\EOF |
1e487827 | 21604 | #define wxUSE_VALIDATORS 1 |
a0b9e27f | 21605 | EOF |
703e0a69 | 21606 | |
698dcdb6 VZ |
21607 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
21608 | fi | |
21609 | ||
edae8572 | 21610 | if test "$wxUSE_PALETTE" = "yes" ; then |
a0b9e27f | 21611 | cat >> confdefs.h <<\EOF |
edae8572 | 21612 | #define wxUSE_PALETTE 1 |
a0b9e27f | 21613 | EOF |
edae8572 VZ |
21614 | |
21615 | fi | |
21616 | ||
698dcdb6 | 21617 | if test "$wxUSE_IMAGE" = "yes" ; then |
a0b9e27f | 21618 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21619 | #define wxUSE_IMAGE 1 |
a0b9e27f | 21620 | EOF |
698dcdb6 VZ |
21621 | |
21622 | fi | |
21623 | ||
21624 | if test "$wxUSE_GIF" = "yes" ; then | |
a0b9e27f | 21625 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21626 | #define wxUSE_GIF 1 |
a0b9e27f | 21627 | EOF |
698dcdb6 VZ |
21628 | |
21629 | fi | |
21630 | ||
21631 | if test "$wxUSE_PCX" = "yes" ; then | |
a0b9e27f | 21632 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21633 | #define wxUSE_PCX 1 |
a0b9e27f | 21634 | EOF |
698dcdb6 VZ |
21635 | |
21636 | fi | |
21637 | ||
4b6b4dfc | 21638 | if test "$wxUSE_IFF" = "yes" ; then |
a0b9e27f | 21639 | cat >> confdefs.h <<\EOF |
4b6b4dfc | 21640 | #define wxUSE_IFF 1 |
a0b9e27f | 21641 | EOF |
4b6b4dfc RR |
21642 | |
21643 | fi | |
21644 | ||
698dcdb6 | 21645 | if test "$wxUSE_PNM" = "yes" ; then |
a0b9e27f | 21646 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21647 | #define wxUSE_PNM 1 |
a0b9e27f | 21648 | EOF |
698dcdb6 VZ |
21649 | |
21650 | fi | |
21651 | ||
21652 | if test "$wxUSE_XPM" = "yes" ; then | |
a0b9e27f | 21653 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21654 | #define wxUSE_XPM 1 |
a0b9e27f | 21655 | EOF |
698dcdb6 VZ |
21656 | |
21657 | fi | |
21658 | ||
658974ae | 21659 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
a0b9e27f | 21660 | cat >> confdefs.h <<\EOF |
658974ae | 21661 | #define wxUSE_ICO_CUR 1 |
a0b9e27f | 21662 | EOF |
658974ae VS |
21663 | |
21664 | fi | |
21665 | ||
a72a4bfa VS |
21666 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
21667 | LIBS=" -lunicows $LIBS" | |
21668 | fi | |
21669 | ||
8284b0c5 | 21670 | |
1e6feb95 | 21671 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
a0b9e27f | 21672 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21673 | #define wxUSE_CHOICEDLG 1 |
a0b9e27f | 21674 | EOF |
1e6feb95 VZ |
21675 | |
21676 | fi | |
21677 | ||
21678 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
a0b9e27f | 21679 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21680 | #define wxUSE_COLOURDLG 1 |
a0b9e27f | 21681 | EOF |
1e6feb95 VZ |
21682 | |
21683 | fi | |
21684 | ||
21685 | if test "$wxUSE_FILEDLG" = "yes"; then | |
a0b9e27f | 21686 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21687 | #define wxUSE_FILEDLG 1 |
a0b9e27f | 21688 | EOF |
1e6feb95 VZ |
21689 | |
21690 | fi | |
21691 | ||
8db37e06 | 21692 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
a0b9e27f | 21693 | cat >> confdefs.h <<\EOF |
8db37e06 | 21694 | #define wxUSE_FINDREPLDLG 1 |
a0b9e27f | 21695 | EOF |
8db37e06 VZ |
21696 | |
21697 | fi | |
21698 | ||
1e6feb95 | 21699 | if test "$wxUSE_FONTDLG" = "yes"; then |
a0b9e27f | 21700 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21701 | #define wxUSE_FONTDLG 1 |
a0b9e27f | 21702 | EOF |
1e6feb95 VZ |
21703 | |
21704 | fi | |
21705 | ||
21706 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 21707 | if test "$wxUSE_TREECTRL" != "yes"; then |
a0b9e27f | 21708 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 |
1e6feb95 | 21709 | else |
a0b9e27f | 21710 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21711 | #define wxUSE_DIRDLG 1 |
a0b9e27f | 21712 | EOF |
1e6feb95 | 21713 | |
1e6feb95 VZ |
21714 | fi |
21715 | fi | |
21716 | ||
21717 | if test "$wxUSE_MSGDLG" = "yes"; then | |
a0b9e27f | 21718 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21719 | #define wxUSE_MSGDLG 1 |
a0b9e27f | 21720 | EOF |
1e6feb95 VZ |
21721 | |
21722 | fi | |
21723 | ||
21724 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
a0b9e27f | 21725 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21726 | #define wxUSE_NUMBERDLG 1 |
a0b9e27f | 21727 | EOF |
1e6feb95 VZ |
21728 | |
21729 | fi | |
21730 | ||
21731 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
21732 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21733 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 |
1e6feb95 | 21734 | else |
a0b9e27f | 21735 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21736 | #define wxUSE_PROGRESSDLG 1 |
a0b9e27f | 21737 | EOF |
1e6feb95 VZ |
21738 | |
21739 | fi | |
21740 | fi | |
21741 | ||
cbca9943 | 21742 | if test "$wxUSE_SPLASH" = "yes"; then |
a0b9e27f | 21743 | cat >> confdefs.h <<\EOF |
cbca9943 | 21744 | #define wxUSE_SPLASH 1 |
a0b9e27f | 21745 | EOF |
cbca9943 VZ |
21746 | |
21747 | fi | |
21748 | ||
1e6feb95 VZ |
21749 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
21750 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21751 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 |
1e6feb95 | 21752 | else |
a0b9e27f | 21753 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21754 | #define wxUSE_STARTUP_TIPS 1 |
a0b9e27f | 21755 | EOF |
1e6feb95 | 21756 | |
7b4a847f RR |
21757 | fi |
21758 | fi | |
579d8138 | 21759 | |
8284b0c5 | 21760 | if test "$wxUSE_TEXTDLG" = "yes"; then |
a0b9e27f | 21761 | cat >> confdefs.h <<\EOF |
8284b0c5 | 21762 | #define wxUSE_TEXTDLG 1 |
a0b9e27f | 21763 | EOF |
8284b0c5 MB |
21764 | |
21765 | fi | |
21766 | ||
21767 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
a0b9e27f | 21768 | cat >> confdefs.h <<\EOF |
8284b0c5 | 21769 | #define wxUSE_WIZARDDLG 1 |
a0b9e27f | 21770 | EOF |
8284b0c5 MB |
21771 | |
21772 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
21773 | fi | |
21774 | ||
21775 | ||
21776 | if test "$cross_compiling" = "yes"; then | |
21777 | OSINFO="\"$host\"" | |
21778 | else | |
21779 | OSINFO=`uname -s -r -m` | |
21780 | OSINFO="\"$OSINFO\"" | |
21781 | fi | |
21782 | ||
a0b9e27f | 21783 | cat >> confdefs.h <<EOF |
8284b0c5 | 21784 | #define WXWIN_OS_DESCRIPTION $OSINFO |
a0b9e27f | 21785 | EOF |
8284b0c5 MB |
21786 | |
21787 | ||
21788 | ||
21789 | if test "x$prefix" != "xNONE"; then | |
21790 | wxPREFIX=$prefix | |
21791 | else | |
21792 | wxPREFIX=$ac_default_prefix | |
21793 | fi | |
21794 | ||
a0b9e27f | 21795 | cat >> confdefs.h <<EOF |
8284b0c5 | 21796 | #define wxINSTALL_PREFIX "$wxPREFIX" |
a0b9e27f | 21797 | EOF |
8284b0c5 MB |
21798 | |
21799 | ||
52c71b80 VZ |
21800 | top_builddir=`pwd` |
21801 | ||
8284b0c5 MB |
21802 | |
21803 | ||
21804 | ||
21805 | if test "$wxUSE_MAC" = 1 ; then | |
21806 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
21807 | fi | |
21808 | ||
21809 | ||
2b5f62a0 VZ |
21810 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
21811 | ||
21812 | have_cos=0 | |
21813 | have_floor=0 | |
21814 | for ac_func in cos | |
21815 | do | |
21816 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
52c71b80 | 21817 | echo "configure:21818: checking for $ac_func" >&5 |
2b5f62a0 VZ |
21818 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
21819 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21820 | else | |
21821 | cat > conftest.$ac_ext <<EOF | |
52c71b80 | 21822 | #line 21823 "configure" |
2b5f62a0 VZ |
21823 | #include "confdefs.h" |
21824 | /* System header to define __stub macros and hopefully few prototypes, | |
21825 | which can conflict with char $ac_func(); below. */ | |
21826 | #include <assert.h> | |
21827 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21828 | /* We use char because int might match the return type of a gcc2 | |
21829 | builtin and then its argument prototype would still apply. */ | |
21830 | char $ac_func(); | |
21831 | ||
21832 | int main() { | |
21833 | ||
21834 | /* The GNU C library defines this for functions which it implements | |
21835 | to always fail with ENOSYS. Some functions are actually named | |
21836 | something starting with __ and the normal name is an alias. */ | |
21837 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21838 | choke me | |
21839 | #else | |
21840 | $ac_func(); | |
21841 | #endif | |
21842 | ||
21843 | ; return 0; } | |
21844 | EOF | |
52c71b80 | 21845 | if { (eval echo configure:21846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
21846 | rm -rf conftest* |
21847 | eval "ac_cv_func_$ac_func=yes" | |
21848 | else | |
21849 | echo "configure: failed program was:" >&5 | |
21850 | cat conftest.$ac_ext >&5 | |
21851 | rm -rf conftest* | |
21852 | eval "ac_cv_func_$ac_func=no" | |
21853 | fi | |
21854 | rm -f conftest* | |
21855 | fi | |
21856 | ||
21857 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
21858 | echo "$ac_t""yes" 1>&6 | |
21859 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
21860 | cat >> confdefs.h <<EOF | |
21861 | #define $ac_tr_func 1 | |
21862 | EOF | |
21863 | have_cos=1 | |
21864 | else | |
21865 | echo "$ac_t""no" 1>&6 | |
21866 | fi | |
21867 | done | |
21868 | ||
21869 | for ac_func in floor | |
21870 | do | |
21871 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
52c71b80 | 21872 | echo "configure:21873: checking for $ac_func" >&5 |
2b5f62a0 VZ |
21873 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
21874 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21875 | else | |
21876 | cat > conftest.$ac_ext <<EOF | |
52c71b80 | 21877 | #line 21878 "configure" |
2b5f62a0 VZ |
21878 | #include "confdefs.h" |
21879 | /* System header to define __stub macros and hopefully few prototypes, | |
21880 | which can conflict with char $ac_func(); below. */ | |
21881 | #include <assert.h> | |
21882 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21883 | /* We use char because int might match the return type of a gcc2 | |
21884 | builtin and then its argument prototype would still apply. */ | |
21885 | char $ac_func(); | |
21886 | ||
21887 | int main() { | |
21888 | ||
21889 | /* The GNU C library defines this for functions which it implements | |
21890 | to always fail with ENOSYS. Some functions are actually named | |
21891 | something starting with __ and the normal name is an alias. */ | |
21892 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21893 | choke me | |
21894 | #else | |
21895 | $ac_func(); | |
21896 | #endif | |
21897 | ||
21898 | ; return 0; } | |
21899 | EOF | |
52c71b80 | 21900 | if { (eval echo configure:21901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
21901 | rm -rf conftest* |
21902 | eval "ac_cv_func_$ac_func=yes" | |
21903 | else | |
21904 | echo "configure: failed program was:" >&5 | |
21905 | cat conftest.$ac_ext >&5 | |
21906 | rm -rf conftest* | |
21907 | eval "ac_cv_func_$ac_func=no" | |
21908 | fi | |
21909 | rm -f conftest* | |
21910 | fi | |
21911 | ||
21912 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
21913 | echo "$ac_t""yes" 1>&6 | |
21914 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
21915 | cat >> confdefs.h <<EOF | |
21916 | #define $ac_tr_func 1 | |
21917 | EOF | |
21918 | have_floor=1 | |
21919 | else | |
21920 | echo "$ac_t""no" 1>&6 | |
21921 | fi | |
21922 | done | |
21923 | ||
21924 | echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6 | |
52c71b80 | 21925 | echo "configure:21926: checking if floating point functions link without -lm" >&5 |
2b5f62a0 VZ |
21926 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
21927 | echo "$ac_t""yes" 1>&6 | |
21928 | else | |
21929 | echo "$ac_t""no" 1>&6 | |
21930 | LIBS="$LIBS -lm" | |
21931 | # use different functions to avoid configure caching | |
21932 | have_sin=0 | |
21933 | have_ceil=0 | |
21934 | for ac_func in sin | |
21935 | do | |
21936 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
52c71b80 | 21937 | echo "configure:21938: checking for $ac_func" >&5 |
2b5f62a0 VZ |
21938 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
21939 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21940 | else | |
21941 | cat > conftest.$ac_ext <<EOF | |
52c71b80 | 21942 | #line 21943 "configure" |
2b5f62a0 VZ |
21943 | #include "confdefs.h" |
21944 | /* System header to define __stub macros and hopefully few prototypes, | |
21945 | which can conflict with char $ac_func(); below. */ | |
21946 | #include <assert.h> | |
21947 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21948 | /* We use char because int might match the return type of a gcc2 | |
21949 | builtin and then its argument prototype would still apply. */ | |
21950 | char $ac_func(); | |
21951 | ||
21952 | int main() { | |
21953 | ||
21954 | /* The GNU C library defines this for functions which it implements | |
21955 | to always fail with ENOSYS. Some functions are actually named | |
21956 | something starting with __ and the normal name is an alias. */ | |
21957 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21958 | choke me | |
21959 | #else | |
21960 | $ac_func(); | |
21961 | #endif | |
21962 | ||
21963 | ; return 0; } | |
21964 | EOF | |
52c71b80 | 21965 | if { (eval echo configure:21966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
21966 | rm -rf conftest* |
21967 | eval "ac_cv_func_$ac_func=yes" | |
21968 | else | |
21969 | echo "configure: failed program was:" >&5 | |
21970 | cat conftest.$ac_ext >&5 | |
21971 | rm -rf conftest* | |
21972 | eval "ac_cv_func_$ac_func=no" | |
21973 | fi | |
21974 | rm -f conftest* | |
21975 | fi | |
21976 | ||
21977 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
21978 | echo "$ac_t""yes" 1>&6 | |
21979 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
21980 | cat >> confdefs.h <<EOF | |
21981 | #define $ac_tr_func 1 | |
21982 | EOF | |
21983 | have_sin=1 | |
21984 | else | |
21985 | echo "$ac_t""no" 1>&6 | |
21986 | fi | |
21987 | done | |
21988 | ||
21989 | for ac_func in ceil | |
21990 | do | |
21991 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
52c71b80 | 21992 | echo "configure:21993: checking for $ac_func" >&5 |
2b5f62a0 VZ |
21993 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
21994 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21995 | else | |
21996 | cat > conftest.$ac_ext <<EOF | |
52c71b80 | 21997 | #line 21998 "configure" |
2b5f62a0 VZ |
21998 | #include "confdefs.h" |
21999 | /* System header to define __stub macros and hopefully few prototypes, | |
22000 | which can conflict with char $ac_func(); below. */ | |
22001 | #include <assert.h> | |
22002 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22003 | /* We use char because int might match the return type of a gcc2 | |
22004 | builtin and then its argument prototype would still apply. */ | |
22005 | char $ac_func(); | |
22006 | ||
22007 | int main() { | |
22008 | ||
22009 | /* The GNU C library defines this for functions which it implements | |
22010 | to always fail with ENOSYS. Some functions are actually named | |
22011 | something starting with __ and the normal name is an alias. */ | |
22012 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22013 | choke me | |
22014 | #else | |
22015 | $ac_func(); | |
22016 | #endif | |
22017 | ||
22018 | ; return 0; } | |
22019 | EOF | |
52c71b80 | 22020 | if { (eval echo configure:22021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22021 | rm -rf conftest* |
22022 | eval "ac_cv_func_$ac_func=yes" | |
22023 | else | |
22024 | echo "configure: failed program was:" >&5 | |
22025 | cat conftest.$ac_ext >&5 | |
22026 | rm -rf conftest* | |
22027 | eval "ac_cv_func_$ac_func=no" | |
22028 | fi | |
22029 | rm -f conftest* | |
22030 | fi | |
22031 | ||
22032 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22033 | echo "$ac_t""yes" 1>&6 | |
22034 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22035 | cat >> confdefs.h <<EOF | |
22036 | #define $ac_tr_func 1 | |
22037 | EOF | |
22038 | have_ceil=1 | |
22039 | else | |
22040 | echo "$ac_t""no" 1>&6 | |
22041 | fi | |
22042 | done | |
22043 | ||
22044 | echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6 | |
52c71b80 | 22045 | echo "configure:22046: checking if floating point functions link with -lm" >&5 |
2b5f62a0 VZ |
22046 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
22047 | echo "$ac_t""yes" 1>&6 | |
22048 | else | |
22049 | echo "$ac_t""no" 1>&6 | |
22050 | # not sure we should warn the user, crash, etc. | |
22051 | fi | |
22052 | fi | |
8284b0c5 MB |
22053 | |
22054 | if test "$wxUSE_GUI" = "yes"; then | |
22055 | ||
22056 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" | |
22057 | ||
a0b9e27f | 22058 | |
8284b0c5 MB |
22059 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
22060 | drawing dynamic erase event exec font image \ | |
22061 | minimal propsize rotate widgets" | |
22062 | ||
22063 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
22064 | else | |
22065 | SAMPLES_SUBDIRS="console" | |
22066 | fi | |
22067 | ||
22068 | ||
22069 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ | |
22070 | -I\${top_srcdir}/include \ | |
22071 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
22072 | $TOOLKIT_INCLUDE" | |
22073 | ||
22074 | if test "$wxUSE_GTK" = 1; then | |
22075 | WXCONFIG_INCLUDE= | |
22076 | else | |
22077 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
22078 | fi | |
22079 | ||
22080 | if test "$GXX" = yes ; then | |
22081 | CXXWARNINGS="-Wall" | |
a0b9e27f | 22082 | |
8284b0c5 MB |
22083 | if test "$wxUSE_NO_DEPS" = "no" ; then |
22084 | CFLAGS="-MMD $CFLAGS" | |
22085 | CXXFLAGS="-MMD $CXXFLAGS" | |
22086 | fi | |
22087 | fi | |
22088 | ||
b2fee376 | 22089 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" |
8284b0c5 | 22090 | |
b2fee376 | 22091 | CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
8284b0c5 MB |
22092 | CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
22093 | CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
22094 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
22095 | ||
22096 | LDFLAGS="$LDFLAGS $PROFILE" | |
22097 | ||
22098 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
22099 | ||
22100 | ||
22101 | ||
22102 | ||
22103 | ||
22104 | ||
22105 | ||
22106 | ||
22107 | ||
22108 | ||
22109 | ||
22110 | ||
22111 | ||
22112 | ||
22113 | ||
22114 | ||
22115 | ||
22116 | ||
22117 | ||
22118 | ||
22119 | ||
22120 | ||
22121 | ||
22122 | ||
22123 | ||
22124 | ||
22125 | ||
22126 | ||
22127 | ||
22128 | ||
22129 | ||
22130 | ||
22131 | ||
22132 | ||
22133 | ||
22134 | ||
22135 | ||
22136 | ||
22137 | ||
22138 | ||
22139 | ||
22140 | ||
22141 | ||
22142 | ||
22143 | ||
22144 | ||
22145 | ||
22146 | ||
22147 | ||
22148 | ||
22149 | ||
22150 | ||
22151 | ||
22152 | ||
22153 | ||
22154 | ||
22155 | ||
22156 | ||
22157 | ||
22158 | ||
22159 | ||
22160 | ||
22161 | ||
22162 | ||
22163 | ||
22164 | ||
22165 | ||
22166 | ||
2f51a9ec GD |
22167 | |
22168 | ||
22169 | ||
22170 | ||
f6bcfd97 | 22171 | |
dad6c0ea | 22172 | |
caa2c79b | 22173 | |
3711412e | 22174 | |
1e6feb95 VZ |
22175 | |
22176 | ||
885d4bf5 VS |
22177 | |
22178 | ||
22179 | ||
22180 | ||
9b695262 VZ |
22181 | |
22182 | ||
62d0491b | 22183 | |
ef7f2189 | 22184 | |
40f7145c | 22185 | |
2b5f62a0 VZ |
22186 | |
22187 | ||
22188 | ||
22189 | ||
22190 | ||
2bffed64 VZ |
22191 | |
22192 | ||
3bd8fb5f | 22193 | |
e26c13cf | 22194 | |
52c71b80 | 22195 | |
10f2d63a | 22196 | |
a0b9e27f MB |
22197 | |
22198 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
52c71b80 | 22199 | echo "configure:22200: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
a0b9e27f MB |
22200 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
22201 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
22202 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 22203 | else |
a0b9e27f | 22204 | cat > conftestmake <<\EOF |
10f2d63a VZ |
22205 | all: |
22206 | @echo 'ac_maketemp="${MAKE}"' | |
a0b9e27f | 22207 | EOF |
10f2d63a | 22208 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
a0b9e27f | 22209 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
22210 | if test -n "$ac_maketemp"; then |
22211 | eval ac_cv_prog_make_${ac_make}_set=yes | |
22212 | else | |
22213 | eval ac_cv_prog_make_${ac_make}_set=no | |
22214 | fi | |
a0b9e27f | 22215 | rm -f conftestmake |
10f2d63a VZ |
22216 | fi |
22217 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
a0b9e27f | 22218 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
22219 | SET_MAKE= |
22220 | else | |
a0b9e27f | 22221 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
22222 | SET_MAKE="MAKE=${MAKE-make}" |
22223 | fi | |
22224 | ||
8284b0c5 | 22225 | |
3a922bb4 RL |
22226 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
22227 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 22228 | fi |
665bbe97 | 22229 | |
8284b0c5 | 22230 | |
10f2d63a | 22231 | |
57973b9c VZ |
22232 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
22233 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
22234 | wx_cv_path_ifs=$PATH_IFS | |
22235 | wx_cv_program_ext=$PROGRAM_EXT | |
22236 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
22237 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
22238 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
2b5f62a0 VZ |
22239 | wx_cv_library_basename=${WX_LIBRARY_BASENAME} |
22240 | wx_cv_release=${WX_RELEASE} | |
22241 | wx_cv_current=${WX_CURRENT} | |
22242 | wx_cv_revision=${WX_REVISION} | |
22243 | wx_cv_age=${WX_AGE} | |
27635a90 | 22244 | wx_cv_use_gui=${USE_GUI} |
5e66eee1 | 22245 | wx_cv_use_resources=${wxUSE_RESOURCES} |
57973b9c VZ |
22246 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ |
22247 | wx_cv_path_ifs wx_cv_program_ext \ | |
2b5f62a0 | 22248 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \ |
27635a90 | 22249 | wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \ |
5e66eee1 | 22250 | wx_cv_use_gui wx_cv_use_resources |
57973b9c | 22251 | |
a0b9e27f | 22252 | subdirs="demos samples utils contrib" |
8284b0c5 | 22253 | |
10f2d63a | 22254 | |
a0b9e27f MB |
22255 | trap '' 1 2 15 |
22256 | cat > confcache <<\EOF | |
10f2d63a VZ |
22257 | # This file is a shell script that caches the results of configure |
22258 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
22259 | # scripts and configure runs. It is not useful on other systems. |
22260 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 22261 | # |
a0b9e27f MB |
22262 | # By default, configure uses ./config.cache as the cache file, |
22263 | # creating it if it does not exist already. You can give configure | |
22264 | # the --cache-file=FILE option to use a different cache file; that is | |
22265 | # what configure does when it calls configure scripts in | |
22266 | # subdirectories, so they share the cache. | |
22267 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
22268 | # config.status only pays attention to the cache file if you give it the | |
22269 | # --recheck option to rerun configure. | |
10f2d63a | 22270 | # |
a0b9e27f | 22271 | EOF |
10f2d63a VZ |
22272 | # The following way of writing the cache mishandles newlines in values, |
22273 | # but we know of no workaround that is simple, portable, and efficient. | |
22274 | # So, don't put newlines in cache variables' values. | |
22275 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
22276 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
22277 | (set) 2>&1 | |
22278 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
22279 | *ac_space=\ *) | |
22280 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
22281 | # turns \\\\ into \\, and sed turns \\ into \). | |
22282 | sed -n \ | |
22283 | -e "s/'/'\\\\''/g" \ | |
22284 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
22285 | ;; | |
22286 | *) | |
22287 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
22288 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
22289 | ;; | |
22290 | esac >> confcache | |
22291 | if cmp -s $cache_file confcache; then | |
22292 | : | |
22293 | else | |
10f2d63a | 22294 | if test -w $cache_file; then |
a0b9e27f MB |
22295 | echo "updating cache $cache_file" |
22296 | cat confcache > $cache_file | |
10f2d63a VZ |
22297 | else |
22298 | echo "not updating unwritable cache $cache_file" | |
22299 | fi | |
22300 | fi | |
22301 | rm -f confcache | |
22302 | ||
a0b9e27f MB |
22303 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
22304 | ||
10f2d63a VZ |
22305 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
22306 | # Let make expand exec_prefix. | |
22307 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
22308 | ||
a0b9e27f MB |
22309 | # Any assignment to VPATH causes Sun make to only execute |
22310 | # the first set of double-colon rules, so remove it if not needed. | |
22311 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 22312 | if test "x$srcdir" = x.; then |
a0b9e27f | 22313 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
22314 | fi |
22315 | ||
a0b9e27f | 22316 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
10f2d63a | 22317 | |
a0b9e27f | 22318 | DEFS=-DHAVE_CONFIG_H |
8284b0c5 | 22319 | |
a0b9e27f | 22320 | # Without the "./", some shells look in PATH for config.status. |
247f5006 | 22321 | : ${CONFIG_STATUS=./config.status} |
52127426 | 22322 | |
a0b9e27f MB |
22323 | echo creating $CONFIG_STATUS |
22324 | rm -f $CONFIG_STATUS | |
22325 | cat > $CONFIG_STATUS <<EOF | |
22326 | #! /bin/sh | |
22327 | # Generated automatically by configure. | |
22328 | # Run this file to recreate the current configuration. | |
22329 | # This directory was configured as follows, | |
22330 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
247f5006 | 22331 | # |
a0b9e27f | 22332 | # $0 $ac_configure_args |
247f5006 | 22333 | # |
a0b9e27f MB |
22334 | # Compiler output produced by configure, useful for debugging |
22335 | # configure, is in ./config.log if it exists. | |
247f5006 | 22336 | |
a0b9e27f MB |
22337 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
22338 | for ac_option | |
247f5006 | 22339 | do |
a0b9e27f MB |
22340 | case "\$ac_option" in |
22341 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22342 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
22343 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
22344 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
22345 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
22346 | exit 0 ;; | |
22347 | -help | --help | --hel | --he | --h) | |
22348 | echo "\$ac_cs_usage"; exit 0 ;; | |
22349 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
247f5006 VZ |
22350 | esac |
22351 | done | |
22352 | ||
a0b9e27f MB |
22353 | ac_given_srcdir=$srcdir |
22354 | ac_given_INSTALL="$INSTALL" | |
247f5006 | 22355 | |
a0b9e27f MB |
22356 | trap 'rm -fr `echo " |
22357 | wx-config | |
2b5f62a0 | 22358 | version-script |
a0b9e27f MB |
22359 | src/make.env |
22360 | src/makeprog.env | |
22361 | src/makelib.env | |
22362 | Makefile | |
22363 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
22364 | EOF | |
22365 | cat >> $CONFIG_STATUS <<EOF | |
247f5006 | 22366 | |
a0b9e27f MB |
22367 | # Protect against being on the right side of a sed subst in config.status. |
22368 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
22369 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
22370 | $ac_vpsub | |
22371 | $extrasub | |
22372 | s%@SHELL@%$SHELL%g | |
22373 | s%@CFLAGS@%$CFLAGS%g | |
22374 | s%@CPPFLAGS@%$CPPFLAGS%g | |
22375 | s%@CXXFLAGS@%$CXXFLAGS%g | |
22376 | s%@FFLAGS@%$FFLAGS%g | |
22377 | s%@DEFS@%$DEFS%g | |
22378 | s%@LDFLAGS@%$LDFLAGS%g | |
22379 | s%@LIBS@%$LIBS%g | |
22380 | s%@exec_prefix@%$exec_prefix%g | |
22381 | s%@prefix@%$prefix%g | |
22382 | s%@program_transform_name@%$program_transform_name%g | |
22383 | s%@bindir@%$bindir%g | |
22384 | s%@sbindir@%$sbindir%g | |
22385 | s%@libexecdir@%$libexecdir%g | |
22386 | s%@datadir@%$datadir%g | |
22387 | s%@sysconfdir@%$sysconfdir%g | |
22388 | s%@sharedstatedir@%$sharedstatedir%g | |
22389 | s%@localstatedir@%$localstatedir%g | |
22390 | s%@libdir@%$libdir%g | |
22391 | s%@includedir@%$includedir%g | |
22392 | s%@oldincludedir@%$oldincludedir%g | |
22393 | s%@infodir@%$infodir%g | |
22394 | s%@mandir@%$mandir%g | |
22395 | s%@host@%$host%g | |
22396 | s%@host_alias@%$host_alias%g | |
22397 | s%@host_cpu@%$host_cpu%g | |
22398 | s%@host_vendor@%$host_vendor%g | |
22399 | s%@host_os@%$host_os%g | |
22400 | s%@target@%$target%g | |
22401 | s%@target_alias@%$target_alias%g | |
22402 | s%@target_cpu@%$target_cpu%g | |
22403 | s%@target_vendor@%$target_vendor%g | |
22404 | s%@target_os@%$target_os%g | |
22405 | s%@build@%$build%g | |
22406 | s%@build_alias@%$build_alias%g | |
22407 | s%@build_cpu@%$build_cpu%g | |
22408 | s%@build_vendor@%$build_vendor%g | |
22409 | s%@build_os@%$build_os%g | |
22410 | s%@CC@%$CC%g | |
22411 | s%@CPP@%$CPP%g | |
22412 | s%@CXX@%$CXX%g | |
22413 | s%@RANLIB@%$RANLIB%g | |
22414 | s%@AR@%$AR%g | |
22415 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
22416 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
22417 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
22418 | s%@STRIP@%$STRIP%g | |
22419 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g | |
22420 | s%@YACC@%$YACC%g | |
22421 | s%@LEX@%$LEX%g | |
22422 | s%@LEXLIB@%$LEXLIB%g | |
22423 | s%@LN_S@%$LN_S%g | |
22424 | s%@CXXCPP@%$CXXCPP%g | |
22425 | s%@PKG_CONFIG@%$PKG_CONFIG%g | |
22426 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
22427 | s%@GTK_LIBS@%$GTK_LIBS%g | |
22428 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
22429 | s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g | |
22430 | s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g | |
22431 | s%@X_CFLAGS@%$X_CFLAGS%g | |
22432 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
22433 | s%@X_LIBS@%$X_LIBS%g | |
22434 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
2b5f62a0 VZ |
22435 | s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g |
22436 | s%@PANGOX_LIBS@%$PANGOX_LIBS%g | |
22437 | s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g | |
22438 | s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g | |
a0b9e27f MB |
22439 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g |
22440 | s%@RESCOMP@%$RESCOMP%g | |
22441 | s%@DEREZ@%$DEREZ%g | |
22442 | s%@LIBICONV@%$LIBICONV%g | |
22443 | s%@LEX_STEM@%$LEX_STEM%g | |
22444 | s%@PATH_IFS@%$PATH_IFS%g | |
22445 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
22446 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
22447 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
22448 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
22449 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
2b5f62a0 | 22450 | s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g |
a0b9e27f MB |
22451 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
22452 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
22453 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
22454 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
22455 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
22456 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
22457 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
22458 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
22459 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
22460 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
22461 | s%@WX_ALL@%$WX_ALL%g | |
22462 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
22463 | s%@SHARED_LD@%$SHARED_LD%g | |
22464 | s%@PIC_FLAG@%$PIC_FLAG%g | |
22465 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
22466 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
22467 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g | |
22468 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
22469 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
22470 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
2bffed64 | 22471 | s%@STATIC_FLAG@%$STATIC_FLAG%g |
a0b9e27f MB |
22472 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
22473 | s%@USE_GUI@%$USE_GUI%g | |
22474 | s%@AFMINSTALL@%$AFMINSTALL%g | |
2b5f62a0 | 22475 | s%@WIN32INSTALL@%$WIN32INSTALL%g |
a0b9e27f MB |
22476 | s%@TOOLKIT@%$TOOLKIT%g |
22477 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
22478 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g | |
22479 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g | |
22480 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
22481 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g | |
52c71b80 | 22482 | s%@top_builddir@%$top_builddir%g |
a0b9e27f MB |
22483 | s%@cross_compiling@%$cross_compiling%g |
22484 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
22485 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
22486 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g | |
22487 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
22488 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
22489 | s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g | |
e26c13cf | 22490 | s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g |
a0b9e27f MB |
22491 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g |
22492 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
22493 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
22494 | s%@GUIDIST@%$GUIDIST%g | |
22495 | s%@PORT_FILES@%$PORT_FILES%g | |
22496 | s%@DISTDIR@%$DISTDIR%g | |
a0b9e27f MB |
22497 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
22498 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g | |
2b5f62a0 | 22499 | s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g |
a0b9e27f MB |
22500 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g |
22501 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
22502 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g | |
22503 | s%@EXTRADEFS@%$EXTRADEFS%g | |
2b5f62a0 | 22504 | s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g |
a0b9e27f MB |
22505 | s%@RESFLAGS@%$RESFLAGS%g |
22506 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g | |
22507 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g | |
22508 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
22509 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g | |
22510 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
22511 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
22512 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g | |
2b5f62a0 | 22513 | s%@GCC@%$GCC%g |
a0b9e27f MB |
22514 | s%@DLLTOOL@%$DLLTOOL%g |
22515 | s%@AS@%$AS%g | |
22516 | s%@NM@%$NM%g | |
22517 | s%@LD@%$LD%g | |
22518 | s%@MAKEINFO@%$MAKEINFO%g | |
22519 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g | |
22520 | s%@SET_MAKE@%$SET_MAKE%g | |
22521 | s%@subdirs@%$subdirs%g | |
247f5006 | 22522 | |
247f5006 | 22523 | CEOF |
a0b9e27f | 22524 | EOF |
247f5006 | 22525 | |
a0b9e27f MB |
22526 | cat >> $CONFIG_STATUS <<\EOF |
22527 | ||
22528 | # Split the substitutions into bite-sized pieces for seds with | |
22529 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
22530 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
22531 | ac_file=1 # Number of current file. | |
22532 | ac_beg=1 # First line for current file. | |
22533 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
22534 | ac_more_lines=: | |
22535 | ac_sed_cmds="" | |
22536 | while $ac_more_lines; do | |
22537 | if test $ac_beg -gt 1; then | |
22538 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
22539 | else | |
22540 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
22541 | fi | |
22542 | if test ! -s conftest.s$ac_file; then | |
22543 | ac_more_lines=false | |
22544 | rm -f conftest.s$ac_file | |
22545 | else | |
22546 | if test -z "$ac_sed_cmds"; then | |
22547 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
247f5006 | 22548 | else |
a0b9e27f | 22549 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
247f5006 | 22550 | fi |
a0b9e27f MB |
22551 | ac_file=`expr $ac_file + 1` |
22552 | ac_beg=$ac_end | |
22553 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 22554 | fi |
a0b9e27f MB |
22555 | done |
22556 | if test -z "$ac_sed_cmds"; then | |
22557 | ac_sed_cmds=cat | |
22558 | fi | |
22559 | EOF | |
10f2d63a | 22560 | |
a0b9e27f | 22561 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 22562 | |
a0b9e27f | 22563 | CONFIG_FILES=\${CONFIG_FILES-"wx-config |
2b5f62a0 | 22564 | version-script |
a0b9e27f MB |
22565 | src/make.env |
22566 | src/makeprog.env | |
22567 | src/makelib.env | |
22568 | Makefile | |
22569 | "} | |
22570 | EOF | |
22571 | cat >> $CONFIG_STATUS <<\EOF | |
22572 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
22573 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
22574 | case "$ac_file" in | |
22575 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
22576 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22577 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a | 22578 | esac |
247f5006 | 22579 | |
a0b9e27f | 22580 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
247f5006 | 22581 | |
a0b9e27f MB |
22582 | # Remove last slash and all that follows it. Not all systems have dirname. |
22583 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
22584 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
22585 | # The file is in a subdirectory. | |
22586 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
22587 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
22588 | # A "../" for each directory in $ac_dir_suffix. | |
22589 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
22590 | else | |
22591 | ac_dir_suffix= ac_dots= | |
22592 | fi | |
247f5006 | 22593 | |
a0b9e27f MB |
22594 | case "$ac_given_srcdir" in |
22595 | .) srcdir=. | |
22596 | if test -z "$ac_dots"; then top_srcdir=. | |
22597 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
22598 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
247f5006 | 22599 | *) # Relative path. |
a0b9e27f MB |
22600 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
22601 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8284b0c5 | 22602 | esac |
10f2d63a | 22603 | |
a0b9e27f MB |
22604 | case "$ac_given_INSTALL" in |
22605 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
22606 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
22607 | esac | |
247f5006 | 22608 | |
a0b9e27f MB |
22609 | echo creating "$ac_file" |
22610 | rm -f "$ac_file" | |
22611 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
22612 | case "$ac_file" in | |
22613 | *Makefile*) ac_comsub="1i\\ | |
22614 | # $configure_input" ;; | |
22615 | *) ac_comsub= ;; | |
22616 | esac | |
247f5006 | 22617 | |
a0b9e27f MB |
22618 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
22619 | sed -e "$ac_comsub | |
22620 | s%@configure_input@%$configure_input%g | |
22621 | s%@srcdir@%$srcdir%g | |
22622 | s%@top_srcdir@%$top_srcdir%g | |
22623 | s%@INSTALL@%$INSTALL%g | |
22624 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
22625 | fi; done | |
22626 | rm -f conftest.s* | |
10f2d63a VZ |
22627 | |
22628 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
22629 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
22630 | # | |
22631 | # ac_d sets the value in "#define NAME VALUE" lines. | |
a0b9e27f MB |
22632 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
22633 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
22634 | ac_dC='\3' | |
22635 | ac_dD='%g' | |
22636 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
22637 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22638 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 22639 | ac_uC=' ' |
a0b9e27f MB |
22640 | ac_uD='\4%g' |
22641 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
22642 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22643 | ac_eB='$%\1#\2define\3' | |
22644 | ac_eC=' ' | |
22645 | ac_eD='%g' | |
22646 | ||
22647 | if test "${CONFIG_HEADERS+set}" != set; then | |
22648 | EOF | |
22649 | cat >> $CONFIG_STATUS <<EOF | |
22650 | CONFIG_HEADERS="setup.h:setup.h.in" | |
22651 | EOF | |
22652 | cat >> $CONFIG_STATUS <<\EOF | |
22653 | fi | |
22654 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 22655 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
a0b9e27f MB |
22656 | case "$ac_file" in |
22657 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
22658 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22659 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
22660 | esac |
22661 | ||
a0b9e27f MB |
22662 | echo creating $ac_file |
22663 | ||
22664 | rm -f conftest.frag conftest.in conftest.out | |
22665 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
22666 | cat $ac_file_inputs > conftest.in | |
22667 | ||
22668 | EOF | |
22669 | ||
22670 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
22671 | # the proper values into config.h.in to produce config.h. And first: | |
22672 | # Protect against being on the right side of a sed subst in config.status. | |
22673 | # Protect against being in an unquoted here document in config.status. | |
22674 | rm -f conftest.vals | |
22675 | cat > conftest.hdr <<\EOF | |
22676 | s/[\\&%]/\\&/g | |
22677 | s%[\\$`]%\\&%g | |
22678 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
22679 | s%ac_d%ac_u%gp | |
22680 | s%ac_u%ac_e%gp | |
22681 | EOF | |
22682 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
22683 | rm -f conftest.hdr | |
10f2d63a VZ |
22684 | |
22685 | # This sed command replaces #undef with comments. This is necessary, for | |
22686 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
22687 | # on some systems where configure will not decide to define it. | |
a0b9e27f MB |
22688 | cat >> conftest.vals <<\EOF |
22689 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
22690 | EOF | |
22691 | ||
22692 | # Break up conftest.vals because some shells have a limit on | |
22693 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
22694 | |
22695 | rm -f conftest.tail | |
a0b9e27f | 22696 | while : |
10f2d63a | 22697 | do |
a0b9e27f MB |
22698 | ac_lines=`grep -c . conftest.vals` |
22699 | # grep -c gives empty output for an empty file on some AIX systems. | |
22700 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
22701 | # Write a limited-size here document to conftest.frag. | |
22702 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
22703 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 22704 | echo 'CEOF |
a0b9e27f MB |
22705 | sed -f conftest.frag conftest.in > conftest.out |
22706 | rm -f conftest.in | |
22707 | mv conftest.out conftest.in | |
22708 | ' >> $CONFIG_STATUS | |
22709 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
22710 | rm -f conftest.vals | |
22711 | mv conftest.tail conftest.vals | |
10f2d63a | 22712 | done |
a0b9e27f MB |
22713 | rm -f conftest.vals |
22714 | ||
22715 | cat >> $CONFIG_STATUS <<\EOF | |
22716 | rm -f conftest.frag conftest.h | |
22717 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
22718 | cat conftest.in >> conftest.h | |
22719 | rm -f conftest.in | |
22720 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
22721 | echo "$ac_file is unchanged" | |
22722 | rm -f conftest.h | |
10f2d63a | 22723 | else |
a0b9e27f MB |
22724 | # Remove last slash and all that follows it. Not all systems have dirname. |
22725 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
22726 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
22727 | # The file is in a subdirectory. | |
22728 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
247f5006 | 22729 | fi |
a0b9e27f MB |
22730 | rm -f $ac_file |
22731 | mv conftest.h $ac_file | |
247f5006 | 22732 | fi |
a0b9e27f MB |
22733 | fi; done |
22734 | ||
22735 | EOF | |
22736 | cat >> $CONFIG_STATUS <<EOF | |
22737 | ||
22738 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
22739 | LN_S="${LN_S}" | |
22740 | ||
22741 | ||
22742 | EOF | |
22743 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 22744 | |
652d930d | 22745 | if test ! -h wx-config; then |
991a5759 | 22746 | chmod +x wx-config |
3a922bb4 RL |
22747 | mv wx-config wx${TOOLCHAIN_NAME}-config |
22748 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 22749 | fi |
665bbe97 | 22750 | |
00cf1208 RR |
22751 | if test ! -d lib; then |
22752 | mkdir lib | |
22753 | fi | |
22754 | if test ! -d lib/wx; then | |
22755 | mkdir lib/wx | |
22756 | fi | |
22757 | if test ! -d lib/wx/include; then | |
22758 | mkdir lib/wx/include | |
22759 | fi | |
3a922bb4 RL |
22760 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
22761 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 22762 | fi |
3a922bb4 RL |
22763 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
22764 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
22765 | fi |
22766 | if test -f setup.h; then | |
3a922bb4 | 22767 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 22768 | fi |
a0b9e27f MB |
22769 | |
22770 | exit 0 | |
22771 | EOF | |
10f2d63a | 22772 | chmod +x $CONFIG_STATUS |
a0b9e27f MB |
22773 | rm -fr confdefs* $ac_clean_files |
22774 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 22775 | |
2224580a VZ |
22776 | if test "$no_recursion" != yes; then |
22777 | ||
22778 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
22779 | ac_sub_configure_args= | |
22780 | ac_prev= | |
22781 | for ac_arg in $ac_configure_args; do | |
22782 | if test -n "$ac_prev"; then | |
22783 | ac_prev= | |
22784 | continue | |
22785 | fi | |
a0b9e27f | 22786 | case "$ac_arg" in |
2224580a VZ |
22787 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
22788 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
22789 | ac_prev=cache_file ;; | |
22790 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
a0b9e27f | 22791 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
22792 | ;; |
22793 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
22794 | ac_prev=srcdir ;; | |
22795 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
22796 | ;; | |
22797 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
22798 | esac | |
22799 | done | |
22800 | ||
a0b9e27f | 22801 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
22802 | |
22803 | # Do not complain, so a configure script can configure whichever | |
22804 | # parts of a large source tree are present. | |
a0b9e27f MB |
22805 | if test ! -d $srcdir/$ac_config_dir; then |
22806 | continue | |
22807 | fi | |
2224580a | 22808 | |
a0b9e27f | 22809 | echo configuring in $ac_config_dir |
2224580a | 22810 | |
a0b9e27f MB |
22811 | case "$srcdir" in |
22812 | .) ;; | |
22813 | *) | |
22814 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
22815 | else | |
22816 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
22817 | fi | |
22818 | ;; | |
22819 | esac | |
2224580a | 22820 | |
a0b9e27f MB |
22821 | ac_popdir=`pwd` |
22822 | cd $ac_config_dir | |
247f5006 | 22823 | |
a0b9e27f MB |
22824 | # A "../" for each directory in /$ac_config_dir. |
22825 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
247f5006 | 22826 | |
a0b9e27f MB |
22827 | case "$srcdir" in |
22828 | .) # No --srcdir option. We are building in place. | |
22829 | ac_sub_srcdir=$srcdir ;; | |
22830 | /*) # Absolute path. | |
22831 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
22832 | *) # Relative path. | |
22833 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
22834 | esac | |
2224580a VZ |
22835 | |
22836 | # Check for guested configure; otherwise get Cygnus style configure. | |
a0b9e27f MB |
22837 | if test -f $ac_sub_srcdir/configure; then |
22838 | ac_sub_configure=$ac_sub_srcdir/configure | |
22839 | elif test -f $ac_sub_srcdir/configure.in; then | |
2224580a VZ |
22840 | ac_sub_configure=$ac_configure |
22841 | else | |
a0b9e27f | 22842 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
22843 | ac_sub_configure= |
22844 | fi | |
22845 | ||
22846 | # The recursion is here. | |
22847 | if test -n "$ac_sub_configure"; then | |
a0b9e27f | 22848 | |
2224580a | 22849 | # Make the cache file name correct relative to the subdirectory. |
a0b9e27f MB |
22850 | case "$cache_file" in |
22851 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 22852 | *) # Relative path. |
a0b9e27f | 22853 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 22854 | esac |
a0b9e27f MB |
22855 | case "$ac_given_INSTALL" in |
22856 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
22857 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
22858 | esac | |
2224580a | 22859 | |
a0b9e27f | 22860 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 22861 | # The eval makes quoting arguments work. |
a0b9e27f MB |
22862 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
22863 | then : | |
22864 | else | |
22865 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
22866 | fi | |
2224580a VZ |
22867 | fi |
22868 | ||
22869 | cd $ac_popdir | |
22870 | done | |
22871 | fi | |
22872 | ||
8284b0c5 | 22873 | |
2b5f62a0 VZ |
22874 | echo |
22875 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
22876 | echo "" | |
22877 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}" | |
22878 | ||
22879 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
22880 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
22881 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
22882 | ||
0c98a14e GD |
22883 | echo " What level of wxWindows compatibility should be enabled?" |
22884 | echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}" | |
65d8ef1e VS |
22885 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
22886 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 22887 | |
2b5f62a0 VZ |
22888 | echo " Which libraries should wxWindows use?" |
22889 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
22890 | echo " png ${wxUSE_LIBPNG-none}" | |
22891 | echo " regex ${wxUSE_REGEX}" | |
22892 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
22893 | echo " zlib ${wxUSE_ZLIB}" | |
22894 | ||
22895 | echo "" | |
22896 |