]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
8284b0c5 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 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
52127426 | 37 | |
52127426 JS |
38 | |
39 | ||
40 | ||
41 | ||
42 | ||
43 | ||
44 | ||
45 | ||
52127426 JS |
46 | |
47 | ||
48 | ||
52127426 | 49 | |
8284b0c5 MB |
50 | |
51 | ||
52 | ||
53 | ||
54 | ||
55 | ||
56 | ||
57 | ||
58 | ||
59 | # Configure paths for GTK+ | |
60 | # Owen Taylor 1997-2001 | |
61 | ||
62 | ||
63 | ||
64 | ||
65 | ||
66 | ||
67 | ||
68 | ||
69 | # Configure paths for GTK+ | |
70 | # Owen Taylor 97-11-3 | |
71 | ||
72 | ||
73 | ||
74 | # Guess values for system-dependent variables and create Makefiles. | |
75 | # Generated automatically using autoconf version 2.13 | |
76 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
77 | # | |
78 | # This configure script is free software; the Free Software Foundation | |
79 | # gives unlimited permission to copy, distribute and modify it. | |
80 | ||
81 | # Defaults: | |
82 | ac_help= | |
83 | ac_default_prefix=/usr/local | |
84 | # Any additions from configure.in: | |
85 | ac_help="$ac_help | |
86 | --enable-gui use GUI classes" | |
87 | ac_help="$ac_help | |
88 | --enable-universal use wxWindows GUI controls instead of native ones" | |
89 | ac_help="$ac_help | |
90 | --with-gtk use GTK+" | |
91 | ac_help="$ac_help | |
92 | --with-motif use Motif/Lesstif" | |
93 | ac_help="$ac_help | |
94 | --with-mac use Mac OS X" | |
95 | ac_help="$ac_help | |
96 | --with-wine use WINE" | |
97 | ac_help="$ac_help | |
98 | --with-msw use MS-Windows" | |
99 | ac_help="$ac_help | |
100 | --with-pm use OS/2 Presentation Manager" | |
101 | ac_help="$ac_help | |
102 | --with-mgl use SciTech MGL" | |
103 | ac_help="$ac_help | |
104 | --with-microwin use MicroWindows" | |
105 | ac_help="$ac_help | |
106 | --with-x11 use X11" | |
107 | ac_help="$ac_help | |
108 | --enable-nanox use NanoX" | |
109 | ac_help="$ac_help | |
110 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" | |
111 | ac_help="$ac_help | |
112 | --with-libpng use libpng (PNG image format)" | |
113 | ac_help="$ac_help | |
114 | --with-libjpeg use libjpeg (JPEG file format)" | |
115 | ac_help="$ac_help | |
116 | --with-libtiff use libtiff (TIFF file format)" | |
117 | ac_help="$ac_help | |
118 | --with-opengl use OpenGL (or Mesa)" | |
119 | ac_help="$ac_help | |
120 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" | |
121 | ac_help="$ac_help | |
122 | --with-regex enable support for wxRegEx class" | |
123 | ac_help="$ac_help | |
124 | --with-zlib use zlib for LZW compression" | |
125 | ac_help="$ac_help | |
126 | --with-odbc use the IODBC and wxODBC classes" | |
127 | ac_help="$ac_help | |
128 | --enable-shared create shared library code" | |
129 | ac_help="$ac_help | |
130 | --enable-soname set the DT_SONAME field in ELF shared libraries" | |
131 | ac_help="$ac_help | |
132 | --enable-optimise create optimised code" | |
133 | ac_help="$ac_help | |
134 | --enable-debug same as debug_flag and debug_info" | |
135 | ac_help="$ac_help | |
136 | --enable-precomp enable use of precompiled headers (Mac OS X)" | |
137 | ac_help="$ac_help | |
138 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
139 | ac_help="$ac_help | |
140 | --enable-debug_info create code with debugging information" | |
141 | ac_help="$ac_help | |
142 | --enable-debug_gdb create code with extra GDB debugging information" | |
143 | ac_help="$ac_help | |
144 | --enable-debug_cntxt use wxDebugContext" | |
145 | ac_help="$ac_help | |
146 | --enable-mem_tracing create code with memory tracing" | |
147 | ac_help="$ac_help | |
148 | --enable-profile create code with profiling information" | |
149 | ac_help="$ac_help | |
150 | --enable-no_rtti create code without RTTI information" | |
151 | ac_help="$ac_help | |
152 | --enable-no_exceptions create code without C++ exceptions handling" | |
153 | ac_help="$ac_help | |
154 | --enable-permissive compile code disregarding strict ANSI" | |
155 | ac_help="$ac_help | |
156 | --enable-no_deps create code without dependency information" | |
157 | ac_help="$ac_help | |
158 | --enable-compat20 enable wxWindows 2.0 compatibility" | |
159 | ac_help="$ac_help | |
160 | --disable-compat22 disable wxWindows 2.2 compatibility" | |
161 | ac_help="$ac_help | |
162 | --enable-rpath=DIR output the rpath flag from wx-config" | |
163 | ac_help="$ac_help | |
164 | --enable-intl use internationalization system" | |
165 | ac_help="$ac_help | |
166 | --enable-config use wxConfig (and derived) classes" | |
167 | ac_help="$ac_help | |
168 | --enable-protocols use wxProtocol and derived classes" | |
169 | ac_help="$ac_help | |
170 | --enable-ftp use wxFTP (requires wxProtocol" | |
171 | ac_help="$ac_help | |
172 | --enable-http use wxHTTP (requires wxProtocol" | |
173 | ac_help="$ac_help | |
174 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
175 | ac_help="$ac_help | |
176 | --enable-sockets use socket/network classes" | |
177 | ac_help="$ac_help | |
178 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
179 | ac_help="$ac_help | |
180 | --enable-cmdline use wxCmdLineParser class" | |
181 | ac_help="$ac_help | |
182 | --enable-datetime use wxDateTime class" | |
183 | ac_help="$ac_help | |
184 | --enable-timedate use obsolete wxDate/wxTime classes" | |
185 | ac_help="$ac_help | |
186 | --enable-stopwatch use wxStopWatch class" | |
187 | ac_help="$ac_help | |
188 | --enable-dialupman use dialup network classes" | |
189 | ac_help="$ac_help | |
190 | --enable-apple_ieee use the Apple IEEE codec" | |
191 | ac_help="$ac_help | |
192 | --enable-timer use wxTimer class" | |
193 | ac_help="$ac_help | |
194 | --enable-wave use wxWave class" | |
195 | ac_help="$ac_help | |
196 | --enable-fraction use wxFraction class" | |
197 | ac_help="$ac_help | |
198 | --enable-dynlib use wxLibrary class for DLL loading" | |
199 | ac_help="$ac_help | |
200 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
201 | ac_help="$ac_help | |
202 | --enable-longlong use wxLongLong class" | |
203 | ac_help="$ac_help | |
204 | --enable-geometry use geometry class" | |
205 | ac_help="$ac_help | |
206 | --enable-log use logging system" | |
207 | ac_help="$ac_help | |
208 | --enable-streams use wxStream etc classes" | |
209 | ac_help="$ac_help | |
210 | --enable-file use wxFile classes" | |
211 | ac_help="$ac_help | |
212 | --enable-ffile use wxFFile classes" | |
213 | ac_help="$ac_help | |
214 | --enable-textbuf use wxTextBuffer class" | |
215 | ac_help="$ac_help | |
216 | --enable-textfile use wxTextFile class" | |
217 | ac_help="$ac_help | |
218 | --enable-fontmap use font encodings conversion classes" | |
219 | ac_help="$ac_help | |
220 | --enable-unicode compile wxString with Unicode support" | |
221 | ac_help="$ac_help | |
222 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
223 | ac_help="$ac_help | |
224 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
225 | ac_help="$ac_help | |
226 | --enable-std_iostreams use standard C++ stream classes" | |
227 | ac_help="$ac_help | |
228 | --enable-filesystem use virtual file systems classes" | |
229 | ac_help="$ac_help | |
230 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
231 | ac_help="$ac_help | |
232 | --enable-fs_zip use virtual ZIP filesystems" | |
233 | ac_help="$ac_help | |
234 | --enable-zipstream use wxZipInputStream" | |
235 | ac_help="$ac_help | |
236 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" | |
237 | ac_help="$ac_help | |
238 | --enable-snglinst use wxSingleInstanceChecker class" | |
239 | ac_help="$ac_help | |
240 | --enable-mimetype use wxMimeTypesManager" | |
241 | ac_help="$ac_help | |
242 | --enable-sysoptions use wxSystemOptions" | |
243 | ac_help="$ac_help | |
244 | --enable-url use wxURL class" | |
245 | ac_help="$ac_help | |
246 | --enable-protocol use wxProtocol class" | |
247 | ac_help="$ac_help | |
248 | --enable-protocol-http HTTP support in wxProtocol" | |
249 | ac_help="$ac_help | |
250 | --enable-protocol-ftp FTP support in wxProtocol" | |
251 | ac_help="$ac_help | |
252 | --enable-protocol-file FILE support in wxProtocol" | |
253 | ac_help="$ac_help | |
254 | --enable-threads use threads" | |
255 | ac_help="$ac_help | |
256 | --enable-docview use document view architecture" | |
257 | ac_help="$ac_help | |
258 | --enable-help use help subsystem" | |
259 | ac_help="$ac_help | |
260 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
261 | ac_help="$ac_help | |
262 | --enable-html use wxHTML sub-library" | |
263 | ac_help="$ac_help | |
264 | --enable-htmlhelp use wxHTML-based help" | |
265 | ac_help="$ac_help | |
266 | --enable-constraints use layout-constraints system" | |
267 | ac_help="$ac_help | |
268 | --enable-printarch use printing architecture" | |
269 | ac_help="$ac_help | |
270 | --enable-mdi use multiple document interface architecture" | |
271 | ac_help="$ac_help | |
272 | --enable-loggui use standard GUI logger" | |
273 | ac_help="$ac_help | |
274 | --enable-logwin use wxLogWindow" | |
275 | ac_help="$ac_help | |
276 | --enable-logdialog use wxLogDialog" | |
277 | ac_help="$ac_help | |
278 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
279 | ac_help="$ac_help | |
280 | --enable-prologio use Prolog IO library" | |
281 | ac_help="$ac_help | |
282 | --enable-resources use wxWindows resources" | |
283 | ac_help="$ac_help | |
284 | --enable-xresources use X resources for save (default for gtk+)" | |
285 | ac_help="$ac_help | |
286 | --enable-clipboard use wxClipboard classes" | |
287 | ac_help="$ac_help | |
288 | --enable-dnd use Drag'n'Drop classes" | |
289 | ac_help="$ac_help | |
290 | --enable-metafile use win32 metafiles" | |
291 | ac_help="$ac_help | |
292 | --enable-treelayout use wxTreeLayout classes" | |
293 | ac_help="$ac_help | |
294 | --enable-controls use all usual controls" | |
295 | ac_help="$ac_help | |
296 | --enable-accel use accelerators" | |
297 | ac_help="$ac_help | |
298 | --enable-button use wxButton class" | |
299 | ac_help="$ac_help | |
300 | --enable-bmpbutton use wxBitmapButton class" | |
301 | ac_help="$ac_help | |
302 | --enable-calendar use wxCalendarCtrl class" | |
303 | ac_help="$ac_help | |
304 | --enable-caret use wxCaret class" | |
305 | ac_help="$ac_help | |
306 | --enable-checkbox use wxCheckBox class" | |
307 | ac_help="$ac_help | |
308 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
309 | ac_help="$ac_help | |
310 | --enable-choice use wxChoice class" | |
311 | ac_help="$ac_help | |
312 | --enable-combobox use wxComboBox classes" | |
313 | ac_help="$ac_help | |
314 | --enable-gauge use wxGauge class" | |
315 | ac_help="$ac_help | |
316 | --enable-grid use wxGrid class" | |
317 | ac_help="$ac_help | |
318 | --enable-newgrid use new wxGrid class" | |
319 | ac_help="$ac_help | |
320 | --enable-imaglist use wxImageList class" | |
321 | ac_help="$ac_help | |
322 | --enable-listbox use wxListBox class" | |
323 | ac_help="$ac_help | |
324 | --enable-listctrl use wxListCtrl class" | |
325 | ac_help="$ac_help | |
326 | --enable-notebook use wxNotebook class" | |
327 | ac_help="$ac_help | |
328 | --enable-propsheet use wxPropertySheet class" | |
329 | ac_help="$ac_help | |
330 | --enable-radiobox use wxRadioBox class" | |
331 | ac_help="$ac_help | |
332 | --enable-radiobtn use wxRadioButton class" | |
333 | ac_help="$ac_help | |
334 | --enable-sash use wxSashWindow class" | |
335 | ac_help="$ac_help | |
336 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
337 | ac_help="$ac_help | |
338 | --enable-slider use wxSlider class" | |
339 | ac_help="$ac_help | |
340 | --enable-spinbtn use wxSpinButton class" | |
341 | ac_help="$ac_help | |
342 | --enable-spinctrl use wxSpinCtrl class" | |
343 | ac_help="$ac_help | |
344 | --enable-splitter use wxSplitterWindow class" | |
345 | ac_help="$ac_help | |
346 | --enable-statbmp use wxStaticBitmap class" | |
347 | ac_help="$ac_help | |
348 | --enable-statbox use wxStaticBox class" | |
349 | ac_help="$ac_help | |
350 | --enable-statline use wxStaticLine class" | |
351 | ac_help="$ac_help | |
352 | --enable-stattext use wxStaticText class" | |
353 | ac_help="$ac_help | |
354 | --enable-statusbar use wxStatusBar class" | |
355 | ac_help="$ac_help | |
356 | --enable-tabdialog use wxTabControl class" | |
357 | ac_help="$ac_help | |
358 | --enable-textctrl use wxTextCtrl class" | |
359 | ac_help="$ac_help | |
360 | --enable-togglebtn use wxToggleButton class" | |
361 | ac_help="$ac_help | |
362 | --enable-toolbar use wxToolBar class" | |
363 | ac_help="$ac_help | |
364 | --enable-tbarnative use native wxToolBar class" | |
365 | ac_help="$ac_help | |
366 | --enable-tbarsmpl use wxToolBarSimple class" | |
367 | ac_help="$ac_help | |
368 | --enable-treectrl use wxTreeCtrl class" | |
369 | ac_help="$ac_help | |
370 | --enable-tipwindow use wxTipWindow class" | |
371 | ac_help="$ac_help | |
372 | --enable-popupwin use wxPopUpWindow class" | |
373 | ac_help="$ac_help | |
374 | --enable-commondlg use all common dialogs" | |
375 | ac_help="$ac_help | |
376 | --enable-choicedlg use wxChoiceDialog" | |
377 | ac_help="$ac_help | |
378 | --enable-coldlg use wxColourDialog" | |
379 | ac_help="$ac_help | |
380 | --enable-filedlg use wxFileDialog" | |
381 | ac_help="$ac_help | |
382 | --enable-finddlg use wxFindReplaceDialog" | |
383 | ac_help="$ac_help | |
384 | --enable-fontdlg use wxFontDialog" | |
385 | ac_help="$ac_help | |
386 | --enable-dirdlg use wxDirDialog" | |
387 | ac_help="$ac_help | |
388 | --enable-msgdlg use wxMessageDialog" | |
389 | ac_help="$ac_help | |
390 | --enable-numberdlg use wxNumberEntryDialog" | |
391 | ac_help="$ac_help | |
392 | --enable-splash use wxSplashScreen" | |
393 | ac_help="$ac_help | |
394 | --enable-textdlg use wxTextDialog" | |
395 | ac_help="$ac_help | |
396 | --enable-tipdlg use startup tips" | |
397 | ac_help="$ac_help | |
398 | --enable-progressdlg use wxProgressDialog" | |
399 | ac_help="$ac_help | |
400 | --enable-wizarddlg use wxWizard" | |
401 | ac_help="$ac_help | |
402 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" | |
403 | ac_help="$ac_help | |
404 | --enable-miniframe use wxMiniFrame class" | |
405 | ac_help="$ac_help | |
406 | --enable-tooltips use wxToolTip class" | |
407 | ac_help="$ac_help | |
408 | --enable-splines use spline drawing code" | |
409 | ac_help="$ac_help | |
410 | --enable-validators use wxValidator and derived classes" | |
411 | ac_help="$ac_help | |
412 | --enable-busyinfo use wxBusyInfo" | |
413 | ac_help="$ac_help | |
414 | --enable-joystick use wxJoystick (Linux only)" | |
415 | ac_help="$ac_help | |
416 | --enable-metafiles use wxMetaFile (Windows only)" | |
417 | ac_help="$ac_help | |
418 | --enable-dragimage use wxDragImage" | |
419 | ac_help="$ac_help | |
420 | --enable-palette use wxPalette class" | |
421 | ac_help="$ac_help | |
422 | --enable-image use wxImage class" | |
423 | ac_help="$ac_help | |
424 | --enable-gif use gif images (GIF file format)" | |
425 | ac_help="$ac_help | |
426 | --enable-pcx use pcx images (PCX file format)" | |
427 | ac_help="$ac_help | |
428 | --enable-iff use iff images (IFF file format)" | |
429 | ac_help="$ac_help | |
430 | --enable-pnm use pnm images (PNM file format)" | |
431 | ac_help="$ac_help | |
432 | --enable-xpm use xpm images (XPM file format)" | |
433 | ac_help="$ac_help | |
434 | --enable-icocur use Windows ICO and CUR formats" | |
435 | ac_help="$ac_help | |
436 | --disable-largefile omit support for large files" | |
437 | ac_help="$ac_help | |
438 | --disable-gtktest do not try to compile and run a test GTK+ program" | |
439 | ac_help="$ac_help | |
440 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
441 | ac_help="$ac_help | |
442 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
443 | ac_help="$ac_help | |
444 | --disable-gtktest Do not try to compile and run a test GTK program" | |
445 | ac_help="$ac_help | |
446 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
447 | ac_help="$ac_help | |
448 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
449 | ac_help="$ac_help | |
450 | --disable-gtktest Do not try to compile and run a test GTK program" | |
451 | ac_help="$ac_help | |
452 | --with-x use the X Window System" | |
453 | ac_help="$ac_help | |
454 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
455 | |
456 | # Initialize some variables set by options. | |
457 | # The variables have the same names as the options, with | |
458 | # dashes changed to underlines. | |
8284b0c5 MB |
459 | build=NONE |
460 | cache_file=./config.cache | |
10f2d63a | 461 | exec_prefix=NONE |
8284b0c5 | 462 | host=NONE |
10f2d63a | 463 | no_create= |
8284b0c5 | 464 | nonopt=NONE |
10f2d63a VZ |
465 | no_recursion= |
466 | prefix=NONE | |
467 | program_prefix=NONE | |
468 | program_suffix=NONE | |
469 | program_transform_name=s,x,x, | |
470 | silent= | |
471 | site= | |
472 | srcdir= | |
8284b0c5 | 473 | target=NONE |
10f2d63a VZ |
474 | verbose= |
475 | x_includes=NONE | |
476 | x_libraries=NONE | |
477 | bindir='${exec_prefix}/bin' | |
478 | sbindir='${exec_prefix}/sbin' | |
479 | libexecdir='${exec_prefix}/libexec' | |
480 | datadir='${prefix}/share' | |
481 | sysconfdir='${prefix}/etc' | |
482 | sharedstatedir='${prefix}/com' | |
483 | localstatedir='${prefix}/var' | |
484 | libdir='${exec_prefix}/lib' | |
485 | includedir='${prefix}/include' | |
486 | oldincludedir='/usr/include' | |
487 | infodir='${prefix}/info' | |
488 | mandir='${prefix}/man' | |
489 | ||
8284b0c5 MB |
490 | # Initialize some other variables. |
491 | subdirs= | |
492 | MFLAGS= MAKEFLAGS= | |
493 | SHELL=${CONFIG_SHELL-/bin/sh} | |
494 | # Maximum number of lines to put in a shell here document. | |
495 | ac_max_here_lines=12 | |
10f2d63a VZ |
496 | |
497 | ac_prev= | |
498 | for ac_option | |
499 | do | |
8284b0c5 | 500 | |
10f2d63a VZ |
501 | # If the previous option needs an argument, assign it. |
502 | if test -n "$ac_prev"; then | |
503 | eval "$ac_prev=\$ac_option" | |
504 | ac_prev= | |
505 | continue | |
506 | fi | |
507 | ||
8284b0c5 MB |
508 | case "$ac_option" in |
509 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
510 | *) ac_optarg= ;; | |
511 | esac | |
10f2d63a VZ |
512 | |
513 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
514 | ||
8284b0c5 | 515 | case "$ac_option" in |
10f2d63a VZ |
516 | |
517 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
518 | ac_prev=bindir ;; | |
519 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
8284b0c5 | 520 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
521 | |
522 | -build | --build | --buil | --bui | --bu) | |
8284b0c5 | 523 | ac_prev=build ;; |
10f2d63a | 524 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
8284b0c5 | 525 | build="$ac_optarg" ;; |
10f2d63a VZ |
526 | |
527 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
528 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
529 | ac_prev=cache_file ;; | |
530 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
531 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
8284b0c5 | 532 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
533 | |
534 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
535 | ac_prev=datadir ;; | |
536 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
537 | | --da=*) | |
8284b0c5 | 538 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
539 | |
540 | -disable-* | --disable-*) | |
8284b0c5 | 541 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 542 | # Reject names that are not valid shell variable names. |
8284b0c5 MB |
543 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
544 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
545 | fi | |
546 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
547 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
548 | |
549 | -enable-* | --enable-*) | |
8284b0c5 | 550 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 551 | # Reject names that are not valid shell variable names. |
8284b0c5 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 | case "$ac_option" in | |
557 | *=*) ;; | |
10f2d63a VZ |
558 | *) ac_optarg=yes ;; |
559 | esac | |
8284b0c5 | 560 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
561 | |
562 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
563 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
564 | | --exec | --exe | --ex) | |
565 | ac_prev=exec_prefix ;; | |
566 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
567 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
568 | | --exec=* | --exe=* | --ex=*) | |
8284b0c5 | 569 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
570 | |
571 | -gas | --gas | --ga | --g) | |
572 | # Obsolete; use --with-gas. | |
573 | with_gas=yes ;; | |
574 | ||
8284b0c5 MB |
575 | -help | --help | --hel | --he) |
576 | # Omit some internal or obsolete options to make the list less imposing. | |
577 | # This message is too long to be a string in the A/UX 3.1 sh. | |
578 | cat << EOF | |
579 | Usage: configure [options] [host] | |
580 | Options: [defaults in brackets after descriptions] | |
581 | Configuration: | |
582 | --cache-file=FILE cache test results in FILE | |
583 | --help print this message | |
584 | --no-create do not create output files | |
585 | --quiet, --silent do not print \`checking...' messages | |
586 | --version print the version of autoconf that created configure | |
587 | Directory and file names: | |
588 | --prefix=PREFIX install architecture-independent files in PREFIX | |
589 | [$ac_default_prefix] | |
590 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
591 | [same as prefix] | |
592 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
593 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
594 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
595 | --datadir=DIR read-only architecture-independent data in DIR | |
596 | [PREFIX/share] | |
597 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
598 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
599 | [PREFIX/com] | |
600 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
601 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
602 | --includedir=DIR C header files in DIR [PREFIX/include] | |
603 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
604 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
605 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
606 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
607 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
608 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
609 | --program-transform-name=PROGRAM | |
610 | run sed PROGRAM on installed program names | |
611 | EOF | |
612 | cat << EOF | |
613 | Host type: | |
614 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
615 | --host=HOST configure for HOST [guessed] | |
616 | --target=TARGET configure for TARGET [TARGET=HOST] | |
617 | Features and packages: | |
618 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
619 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
620 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
621 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
622 | --x-includes=DIR X include files are in DIR | |
623 | --x-libraries=DIR X library files are in DIR | |
624 | EOF | |
625 | if test -n "$ac_help"; then | |
626 | echo "--enable and --with options recognized:$ac_help" | |
627 | fi | |
628 | exit 0 ;; | |
10f2d63a VZ |
629 | |
630 | -host | --host | --hos | --ho) | |
8284b0c5 | 631 | ac_prev=host ;; |
10f2d63a | 632 | -host=* | --host=* | --hos=* | --ho=*) |
8284b0c5 | 633 | host="$ac_optarg" ;; |
10f2d63a VZ |
634 | |
635 | -includedir | --includedir | --includedi | --included | --include \ | |
636 | | --includ | --inclu | --incl | --inc) | |
637 | ac_prev=includedir ;; | |
638 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
639 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
8284b0c5 | 640 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
641 | |
642 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
643 | ac_prev=infodir ;; | |
644 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
8284b0c5 | 645 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
646 | |
647 | -libdir | --libdir | --libdi | --libd) | |
648 | ac_prev=libdir ;; | |
649 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
8284b0c5 | 650 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
651 | |
652 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
653 | | --libexe | --libex | --libe) | |
654 | ac_prev=libexecdir ;; | |
655 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
656 | | --libexe=* | --libex=* | --libe=*) | |
8284b0c5 | 657 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
658 | |
659 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
660 | | --localstate | --localstat | --localsta | --localst \ | |
661 | | --locals | --local | --loca | --loc | --lo) | |
662 | ac_prev=localstatedir ;; | |
663 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
664 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
665 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
8284b0c5 | 666 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
667 | |
668 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
669 | ac_prev=mandir ;; | |
670 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
8284b0c5 | 671 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
672 | |
673 | -nfp | --nfp | --nf) | |
674 | # Obsolete; use --without-fp. | |
675 | with_fp=no ;; | |
676 | ||
677 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
678 | | --no-cr | --no-c) | |
679 | no_create=yes ;; | |
680 | ||
681 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
682 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
683 | no_recursion=yes ;; | |
684 | ||
685 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
686 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
687 | | --oldin | --oldi | --old | --ol | --o) | |
688 | ac_prev=oldincludedir ;; | |
689 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
690 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
691 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
8284b0c5 | 692 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
693 | |
694 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
695 | ac_prev=prefix ;; | |
696 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
8284b0c5 | 697 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
698 | |
699 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
700 | | --program-pre | --program-pr | --program-p) | |
701 | ac_prev=program_prefix ;; | |
702 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
703 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
8284b0c5 | 704 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
705 | |
706 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
707 | | --program-suf | --program-su | --program-s) | |
708 | ac_prev=program_suffix ;; | |
709 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
710 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
8284b0c5 | 711 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
712 | |
713 | -program-transform-name | --program-transform-name \ | |
714 | | --program-transform-nam | --program-transform-na \ | |
715 | | --program-transform-n | --program-transform- \ | |
716 | | --program-transform | --program-transfor \ | |
717 | | --program-transfo | --program-transf \ | |
718 | | --program-trans | --program-tran \ | |
719 | | --progr-tra | --program-tr | --program-t) | |
720 | ac_prev=program_transform_name ;; | |
721 | -program-transform-name=* | --program-transform-name=* \ | |
722 | | --program-transform-nam=* | --program-transform-na=* \ | |
723 | | --program-transform-n=* | --program-transform-=* \ | |
724 | | --program-transform=* | --program-transfor=* \ | |
725 | | --program-transfo=* | --program-transf=* \ | |
726 | | --program-trans=* | --program-tran=* \ | |
727 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
8284b0c5 | 728 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
729 | |
730 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
731 | | -silent | --silent | --silen | --sile | --sil) | |
732 | silent=yes ;; | |
733 | ||
734 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
735 | ac_prev=sbindir ;; | |
736 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
737 | | --sbi=* | --sb=*) | |
8284b0c5 | 738 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
739 | |
740 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
741 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
742 | | --sharedst | --shareds | --shared | --share | --shar \ | |
743 | | --sha | --sh) | |
744 | ac_prev=sharedstatedir ;; | |
745 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
746 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
747 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
748 | | --sha=* | --sh=*) | |
8284b0c5 | 749 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
750 | |
751 | -site | --site | --sit) | |
752 | ac_prev=site ;; | |
753 | -site=* | --site=* | --sit=*) | |
8284b0c5 | 754 | site="$ac_optarg" ;; |
10f2d63a VZ |
755 | |
756 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
757 | ac_prev=srcdir ;; | |
758 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
8284b0c5 | 759 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
760 | |
761 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
762 | | --syscon | --sysco | --sysc | --sys | --sy) | |
763 | ac_prev=sysconfdir ;; | |
764 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
765 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
8284b0c5 | 766 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
767 | |
768 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
8284b0c5 | 769 | ac_prev=target ;; |
10f2d63a | 770 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
8284b0c5 | 771 | target="$ac_optarg" ;; |
10f2d63a VZ |
772 | |
773 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
774 | verbose=yes ;; | |
775 | ||
8284b0c5 MB |
776 | -version | --version | --versio | --versi | --vers) |
777 | echo "configure generated by autoconf version 2.13" | |
778 | exit 0 ;; | |
10f2d63a VZ |
779 | |
780 | -with-* | --with-*) | |
8284b0c5 | 781 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 782 | # Reject names that are not valid shell variable names. |
8284b0c5 MB |
783 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
784 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
785 | fi | |
10f2d63a | 786 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
8284b0c5 MB |
787 | case "$ac_option" in |
788 | *=*) ;; | |
10f2d63a VZ |
789 | *) ac_optarg=yes ;; |
790 | esac | |
8284b0c5 | 791 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
792 | |
793 | -without-* | --without-*) | |
8284b0c5 | 794 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 795 | # Reject names that are not valid shell variable names. |
8284b0c5 MB |
796 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
797 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
798 | fi | |
799 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
800 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
801 | |
802 | --x) | |
803 | # Obsolete; use --with-x. | |
804 | with_x=yes ;; | |
805 | ||
806 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
807 | | --x-incl | --x-inc | --x-in | --x-i) | |
808 | ac_prev=x_includes ;; | |
809 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
810 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
8284b0c5 | 811 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
812 | |
813 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
814 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
815 | ac_prev=x_libraries ;; | |
816 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
817 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
8284b0c5 | 818 | x_libraries="$ac_optarg" ;; |
10f2d63a | 819 | |
8284b0c5 | 820 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
821 | ;; |
822 | ||
823 | *) | |
8284b0c5 MB |
824 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
825 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
826 | fi | |
827 | if test "x$nonopt" != xNONE; then | |
828 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
829 | fi | |
830 | nonopt="$ac_option" | |
10f2d63a VZ |
831 | ;; |
832 | ||
833 | esac | |
834 | done | |
835 | ||
836 | if test -n "$ac_prev"; then | |
8284b0c5 | 837 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
52127426 | 838 | fi |
52127426 | 839 | |
8284b0c5 | 840 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
52127426 | 841 | |
8284b0c5 MB |
842 | # File descriptor usage: |
843 | # 0 standard input | |
844 | # 1 file creation | |
845 | # 2 errors and warnings | |
846 | # 3 some systems may open it to /dev/tty | |
847 | # 4 used on the Kubota Titan | |
848 | # 6 checking for... messages and results | |
849 | # 5 compiler messages saved in config.log | |
850 | if test "$silent" = yes; then | |
851 | exec 6>/dev/null | |
852 | else | |
853 | exec 6>&1 | |
854 | fi | |
855 | exec 5>./config.log | |
856 | ||
857 | echo "\ | |
858 | This file contains any messages produced by compilers while | |
859 | running configure, to aid debugging if configure makes a mistake. | |
860 | " 1>&5 | |
861 | ||
862 | # Strip out --no-create and --no-recursion so they do not pile up. | |
863 | # Also quote any args containing shell metacharacters. | |
864 | ac_configure_args= | |
865 | for ac_arg | |
10f2d63a | 866 | do |
8284b0c5 MB |
867 | case "$ac_arg" in |
868 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
869 | | --no-cr | --no-c) ;; | |
870 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
871 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
872 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
873 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
874 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
875 | esac |
876 | done | |
877 | ||
8284b0c5 MB |
878 | # NLS nuisances. |
879 | # Only set these to C if already set. These must not be set unconditionally | |
880 | # because not all systems understand e.g. LANG=C (notably SCO). | |
881 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
882 | # Non-C LC_CTYPE values break the ctype check. | |
883 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
884 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
885 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
886 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 887 | |
8284b0c5 MB |
888 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
889 | rm -rf conftest* confdefs.h | |
890 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
891 | echo > confdefs.h | |
10f2d63a | 892 | |
8284b0c5 MB |
893 | # A filename unique to this package, relative to the directory that |
894 | # configure is in, which we can look for to find out if srcdir is correct. | |
895 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
896 | |
897 | # Find the source files, if location was not specified. | |
898 | if test -z "$srcdir"; then | |
899 | ac_srcdir_defaulted=yes | |
900 | # Try the directory containing this script, then its parent. | |
901 | ac_prog=$0 | |
8284b0c5 | 902 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
903 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
904 | srcdir=$ac_confdir | |
905 | if test ! -r $srcdir/$ac_unique_file; then | |
906 | srcdir=.. | |
907 | fi | |
908 | else | |
909 | ac_srcdir_defaulted=no | |
910 | fi | |
911 | if test ! -r $srcdir/$ac_unique_file; then | |
912 | if test "$ac_srcdir_defaulted" = yes; then | |
8284b0c5 | 913 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 914 | else |
8284b0c5 | 915 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
916 | fi |
917 | fi | |
8284b0c5 | 918 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
328a083c | 919 | |
10f2d63a VZ |
920 | # Prefer explicitly selected file to automatically selected ones. |
921 | if test -z "$CONFIG_SITE"; then | |
922 | if test "x$prefix" != xNONE; then | |
923 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
924 | else | |
925 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
926 | fi | |
927 | fi | |
928 | for ac_site_file in $CONFIG_SITE; do | |
929 | if test -r "$ac_site_file"; then | |
8284b0c5 | 930 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
931 | . "$ac_site_file" |
932 | fi | |
933 | done | |
934 | ||
935 | if test -r "$cache_file"; then | |
8284b0c5 MB |
936 | echo "loading cache $cache_file" |
937 | . $cache_file | |
10f2d63a | 938 | else |
8284b0c5 MB |
939 | echo "creating cache $cache_file" |
940 | > $cache_file | |
10f2d63a VZ |
941 | fi |
942 | ||
943 | ac_ext=c | |
8284b0c5 | 944 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 945 | ac_cpp='$CPP $CPPFLAGS' |
8284b0c5 MB |
946 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
947 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
948 | cross_compiling=$ac_cv_prog_cc_cross | |
949 | ||
950 | ac_exeext= | |
951 | ac_objext=o | |
952 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
953 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
954 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
955 | ac_n= ac_c=' | |
956 | ' ac_t=' ' | |
957 | else | |
958 | ac_n=-n ac_c= ac_t= | |
959 | fi | |
10f2d63a | 960 | else |
8284b0c5 | 961 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 962 | fi |
8284b0c5 MB |
963 | |
964 | ||
10f2d63a | 965 | |
7c66a493 VZ |
966 | ac_aux_dir= |
967 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
968 | if test -f $ac_dir/install-sh; then | |
969 | ac_aux_dir=$ac_dir | |
970 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
971 | break | |
972 | elif test -f $ac_dir/install.sh; then | |
973 | ac_aux_dir=$ac_dir | |
974 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
975 | break | |
976 | fi | |
977 | done | |
978 | if test -z "$ac_aux_dir"; then | |
8284b0c5 | 979 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 980 | fi |
8284b0c5 MB |
981 | ac_config_guess=$ac_aux_dir/config.guess |
982 | ac_config_sub=$ac_aux_dir/config.sub | |
983 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
698dcdb6 | 984 | |
8284b0c5 MB |
985 | |
986 | # Do some error checking and defaulting for the host and target type. | |
987 | # The inputs are: | |
988 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
989 | # | |
990 | # The rules are: | |
991 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
992 | # same time. | |
993 | # 2. Host defaults to nonopt. | |
994 | # 3. If nonopt is not specified, then host defaults to the current host, | |
995 | # as determined by config.guess. | |
996 | # 4. Target and build default to nonopt. | |
997 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
998 | |
999 | # The aliases save the names the user supplied, while $host etc. | |
1000 | # will get canonicalized. | |
8284b0c5 MB |
1001 | case $host---$target---$nonopt in |
1002 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
1003 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
1004 | esac | |
1005 | ||
1006 | ||
1007 | # Make sure we can run config.sub. | |
1008 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1009 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1010 | fi | |
1011 | ||
1012 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
1013 | echo "configure:1014: checking host system type" >&5 | |
1014 | ||
1015 | host_alias=$host | |
1016 | case "$host_alias" in | |
1017 | NONE) | |
1018 | case $nonopt in | |
1019 | NONE) | |
1020 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1021 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1022 | fi ;; | |
1023 | *) host_alias=$nonopt ;; | |
1024 | esac ;; | |
1025 | esac | |
1026 | ||
1027 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1028 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1029 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1030 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1031 | echo "$ac_t""$host" 1>&6 | |
1032 | ||
1033 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
1034 | echo "configure:1035: checking target system type" >&5 | |
1035 | ||
1036 | target_alias=$target | |
1037 | case "$target_alias" in | |
1038 | NONE) | |
1039 | case $nonopt in | |
1040 | NONE) target_alias=$host_alias ;; | |
1041 | *) target_alias=$nonopt ;; | |
1042 | esac ;; | |
1043 | esac | |
1044 | ||
1045 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1046 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1047 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1048 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1049 | echo "$ac_t""$target" 1>&6 | |
1050 | ||
1051 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
1052 | echo "configure:1053: checking build system type" >&5 | |
1053 | ||
1054 | build_alias=$build | |
1055 | case "$build_alias" in | |
1056 | NONE) | |
1057 | case $nonopt in | |
1058 | NONE) build_alias=$host_alias ;; | |
1059 | *) build_alias=$nonopt ;; | |
1060 | esac ;; | |
1061 | esac | |
1062 | ||
1063 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1064 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1065 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1066 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1067 | echo "$ac_t""$build" 1>&6 | |
1068 | ||
1069 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1070 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1071 | NONENONEs,x,x, && | |
1072 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1073 | |
1074 | ||
698dcdb6 | 1075 | |
10f2d63a | 1076 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1077 | WX_MINOR_VERSION_NUMBER=3 |
a0d927d1 | 1078 | WX_RELEASE_NUMBER=3 |
10f2d63a | 1079 | |
10f2d63a | 1080 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1081 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1082 | |
978f1259 RL |
1083 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1084 | ||
a0d927d1 | 1085 | WX_CURRENT=2 |
6426998c RL |
1086 | WX_REVISION=0 |
1087 | WX_AGE=0 | |
1088 | ||
8284b0c5 MB |
1089 | |
1090 | ||
10f2d63a VZ |
1091 | USE_UNIX=1 |
1092 | USE_WIN32=0 | |
f9bc1684 | 1093 | USE_DOS=0 |
b12915c1 | 1094 | USE_BEOS=0 |
1216f52d | 1095 | USE_MAC=0 |
b12915c1 | 1096 | |
10f2d63a VZ |
1097 | USE_LINUX= |
1098 | USE_SGI= | |
1099 | USE_HPUX= | |
1100 | USE_SYSV= | |
1101 | USE_SVR4= | |
1102 | USE_AIX= | |
1103 | USE_SUN= | |
1104 | USE_SOLARIS= | |
1105 | USE_SUNOS= | |
1106 | USE_ALPHA= | |
1107 | USE_OSF= | |
1108 | USE_BSD= | |
f11bdd03 | 1109 | USE_DARWIN= |
10f2d63a | 1110 | USE_FREEBSD= |
95c8801c | 1111 | USE_OPENBSD= |
f6bcfd97 | 1112 | USE_NETBSD= |
10f2d63a VZ |
1113 | USE_VMS= |
1114 | USE_ULTRIX= | |
10f2d63a VZ |
1115 | USE_DATA_GENERAL= |
1116 | ||
ab9b9eab VZ |
1117 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1118 | ||
f79bd02d | 1119 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11" |
10f2d63a VZ |
1120 | |
1121 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1122 | DEFAULT_wxUSE_MAC=0 |
1123 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1124 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1125 | DEFAULT_wxUSE_MOTIF=0 |
1126 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1127 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1128 | DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1129 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1130 | |
1131 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1132 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1133 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1134 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1135 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1136 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1137 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1138 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1139 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1140 | |
d6a55c4b | 1141 | PROGRAM_EXT= |
3a922bb4 | 1142 | SO_SUFFIX=so |
d6a55c4b | 1143 | |
10f2d63a VZ |
1144 | case "${host}" in |
1145 | *-hp-hpux* ) | |
1146 | USE_HPUX=1 | |
1147 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1148 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1149 | SO_SUFFIX=sl |
8284b0c5 | 1150 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1151 | #define __HPUX__ 1 |
1152 | EOF | |
1153 | ||
1154 | ;; | |
1155 | *-*-linux* ) | |
1156 | USE_LINUX=1 | |
8284b0c5 | 1157 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1158 | #define __LINUX__ 1 |
1159 | EOF | |
1160 | ||
1161 | TMP=`uname -m` | |
1162 | if test "x$TMP" = "xalpha"; then | |
1163 | USE_ALPHA=1 | |
8284b0c5 | 1164 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1165 | #define __ALPHA__ 1 |
1166 | EOF | |
1167 | ||
1168 | fi | |
1169 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1170 | ;; | |
1171 | *-*-irix5* | *-*-irix6* ) | |
1172 | USE_SGI=1 | |
1173 | USE_SVR4=1 | |
8284b0c5 | 1174 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1175 | #define __SGI__ 1 |
1176 | EOF | |
1177 | ||
8284b0c5 | 1178 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1179 | #define __SVR4__ 1 |
1180 | EOF | |
1181 | ||
1182 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1183 | ;; | |
1184 | *-*-solaris2* ) | |
1185 | USE_SUN=1 | |
1186 | USE_SOLARIS=1 | |
1187 | USE_SVR4=1 | |
8284b0c5 | 1188 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1189 | #define __SUN__ 1 |
1190 | EOF | |
1191 | ||
8284b0c5 | 1192 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1193 | #define __SOLARIS__ 1 |
1194 | EOF | |
1195 | ||
8284b0c5 | 1196 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1197 | #define __SVR4__ 1 |
1198 | EOF | |
1199 | ||
1200 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1201 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1202 | ;; |
1203 | *-*-sunos4* ) | |
1204 | USE_SUN=1 | |
1205 | USE_SUNOS=1 | |
1206 | USE_BSD=1 | |
8284b0c5 | 1207 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1208 | #define __SUN__ 1 |
1209 | EOF | |
1210 | ||
8284b0c5 | 1211 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1212 | #define __SUNOS__ 1 |
1213 | EOF | |
1214 | ||
8284b0c5 | 1215 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1216 | #define __BSD__ 1 |
1217 | EOF | |
1218 | ||
1219 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1220 | ;; | |
f6bcfd97 | 1221 | *-*-freebsd*) |
10f2d63a VZ |
1222 | USE_BSD=1 |
1223 | USE_FREEBSD=1 | |
8284b0c5 | 1224 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1225 | #define __FREEBSD__ 1 |
1226 | EOF | |
1227 | ||
8284b0c5 | 1228 | cat >> confdefs.h <<\EOF |
10f2d63a | 1229 | #define __BSD__ 1 |
95c8801c VS |
1230 | EOF |
1231 | ||
1232 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1233 | ;; | |
1234 | *-*-openbsd*) | |
1235 | USE_BSD=1 | |
1236 | USE_OPENBSD=1 | |
8284b0c5 | 1237 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1238 | #define __FREEBSD__ 1 |
1239 | EOF | |
1240 | ||
8284b0c5 | 1241 | cat >> confdefs.h <<\EOF |
95c8801c | 1242 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1243 | EOF |
1244 | ||
1245 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1246 | ;; | |
1247 | *-*-netbsd*) | |
1248 | USE_BSD=1 | |
1249 | USE_NETBSD=1 | |
8284b0c5 | 1250 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1251 | #define __FREEBSD__ 1 |
1252 | EOF | |
1253 | ||
8284b0c5 | 1254 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1255 | #define __NETBSD__ 1 |
10f2d63a VZ |
1256 | EOF |
1257 | ||
1258 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1259 | ;; | |
1260 | *-*-osf* ) | |
1261 | USE_ALPHA=1 | |
1262 | USE_OSF=1 | |
8284b0c5 | 1263 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1264 | #define __ALPHA__ 1 |
1265 | EOF | |
1266 | ||
8284b0c5 | 1267 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1268 | #define __OSF__ 1 |
1269 | EOF | |
1270 | ||
1271 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1272 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1273 | ;; |
1274 | *-*-dgux5* ) | |
1275 | USE_ALPHA=1 | |
1276 | USE_SVR4=1 | |
8284b0c5 | 1277 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1278 | #define __ALPHA__ 1 |
1279 | EOF | |
1280 | ||
8284b0c5 | 1281 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1282 | #define __SVR4__ 1 |
1283 | EOF | |
1284 | ||
1285 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1286 | ;; | |
1287 | *-*-sysv5* ) | |
1288 | USE_SYSV=1 | |
1289 | USE_SVR4=1 | |
8284b0c5 | 1290 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1291 | #define __SYSV__ 1 |
1292 | EOF | |
1293 | ||
8284b0c5 | 1294 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1295 | #define __SVR4__ 1 |
1296 | EOF | |
1297 | ||
1298 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1299 | ;; | |
1300 | *-*-aix* ) | |
1301 | USE_AIX=1 | |
1302 | USE_SYSV=1 | |
1303 | USE_SVR4=1 | |
321d2b14 | 1304 | SO_SUFFIX=a |
8284b0c5 | 1305 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1306 | #define __AIX__ 1 |
1307 | EOF | |
1308 | ||
8284b0c5 | 1309 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1310 | #define __SYSV__ 1 |
1311 | EOF | |
1312 | ||
8284b0c5 | 1313 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1314 | #define __SVR4__ 1 |
1315 | EOF | |
1316 | ||
1317 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1318 | ;; | |
1319 | ||
1c8183e2 | 1320 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1321 | SO_SUFFIX=dll |
cf27ef00 | 1322 | PROGRAM_EXT=".exe" |
7b7a7637 | 1323 | RESCOMP=windres |
10f2d63a VZ |
1324 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1325 | ;; | |
1326 | ||
f9bc1684 VS |
1327 | *-pc-msdosdjgpp ) |
1328 | USE_UNIX=0 | |
1329 | USE_DOS=1 | |
8284b0c5 | 1330 | cat >> confdefs.h <<\EOF |
f9bc1684 VS |
1331 | #define __DOS__ 1 |
1332 | EOF | |
1333 | ||
1334 | PROGRAM_EXT=".exe" | |
1335 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1336 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1337 | ;; |
1338 | ||
6fa882bd | 1339 | *-pc-os2_emx | *-pc-os2-emx ) |
8284b0c5 | 1340 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1341 | #define __EMX__ 1 |
1342 | EOF | |
1343 | ||
cf27ef00 | 1344 | PROGRAM_EXT=".exe" |
e07802fc | 1345 | DEFAULT_DEFAULT_wxUSE_PM=1 |
d558c907 | 1346 | LIBS="$LIBS -lstdcpp" |
10f2d63a VZ |
1347 | ;; |
1348 | ||
d08b457b GD |
1349 | powerpc-*-darwin* ) |
1350 | USE_BSD=1 | |
f11bdd03 | 1351 | USE_DARWIN=1 |
3a922bb4 | 1352 | SO_SUFFIX=dylib |
8284b0c5 | 1353 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1354 | #define __BSD__ 1 |
b4085ce6 GD |
1355 | EOF |
1356 | ||
8284b0c5 | 1357 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1358 | #define __DARWIN__ 1 |
d08b457b GD |
1359 | EOF |
1360 | ||
8284b0c5 | 1361 | cat >> confdefs.h <<\EOF |
d08b457b | 1362 | #define __POWERPC__ 1 |
b4085ce6 GD |
1363 | EOF |
1364 | ||
1365 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1366 | ;; | |
1367 | ||
b12915c1 VZ |
1368 | *-*-beos* ) |
1369 | USE_BEOS=1 | |
8284b0c5 | 1370 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1371 | #define __BEOS__ 1 |
1372 | EOF | |
1373 | ||
1374 | ;; | |
1375 | ||
10f2d63a | 1376 | *) |
8284b0c5 | 1377 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1378 | esac |
1379 | ||
8284b0c5 MB |
1380 | |
1381 | ||
1382 | ||
1383 | wx_arg_cache_file="configarg.cache" | |
1384 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1385 | rm -f ${wx_arg_cache_file}.tmp |
1386 | touch ${wx_arg_cache_file}.tmp | |
1387 | touch ${wx_arg_cache_file} | |
8284b0c5 | 1388 | |
10f2d63a VZ |
1389 | |
1390 | DEBUG_CONFIGURE=0 | |
1391 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1392 | DEFAULT_wxUSE_UNIVERSAL=no |
1393 | ||
d8356fa3 VZ |
1394 | DEFAULT_wxUSE_NANOX=no |
1395 | ||
10f2d63a VZ |
1396 | DEFAULT_wxUSE_THREADS=yes |
1397 | ||
1398 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1399 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1400 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1401 | DEFAULT_wxUSE_PROFILE=no |
1402 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1403 | DEFAULT_wxUSE_NO_RTTI=no |
1404 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1405 | DEFAULT_wxUSE_PERMISSIVE=no |
1406 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1407 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1408 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1409 | DEFAULT_wxUSE_MEM_TRACING=no | |
1410 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1411 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1412 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1413 | DEFAULT_wxUSE_APPLE_IEEE=no |
1414 | ||
1415 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1416 | DEFAULT_wxUSE_LOGWINDOW=no |
1417 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1418 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1419 | |
1420 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1421 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1422 | |
3e44f09d | 1423 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1424 | DEFAULT_wxUSE_ZLIB=no |
1425 | DEFAULT_wxUSE_LIBPNG=no | |
1426 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1427 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1428 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1429 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1430 | |
eb4efbdc | 1431 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1432 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1433 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1434 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1435 | DEFAULT_wxUSE_DATETIME=no | |
1436 | DEFAULT_wxUSE_TIMEDATE=no | |
1437 | DEFAULT_wxUSE_TIMER=no | |
1438 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1439 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1440 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1441 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1442 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1443 | DEFAULT_wxUSE_WAVE=no |
1444 | DEFAULT_wxUSE_INTL=no | |
1445 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1446 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1447 | DEFAULT_wxUSE_STREAMS=no |
1448 | DEFAULT_wxUSE_SOCKETS=no | |
1449 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
10f2d63a | 1450 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1451 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1452 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1453 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1454 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1455 | |
1456 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1457 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1458 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1459 | ||
1460 | DEFAULT_wxUSE_X_RESOURCES=no | |
1461 | DEFAULT_wxUSE_CLIPBOARD=no | |
1462 | DEFAULT_wxUSE_TOOLTIPS=no | |
1463 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1464 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1465 | DEFAULT_wxUSE_SPLINES=no |
1466 | ||
1467 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1468 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1469 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1470 | ||
1471 | DEFAULT_wxUSE_PROLOGIO=no | |
1472 | DEFAULT_wxUSE_RESOURCES=no | |
1473 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1474 | DEFAULT_wxUSE_IPC=no | |
1475 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1476 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1477 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1478 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1479 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1480 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1481 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1482 | DEFAULT_wxUSE_PROTOCOL=no | |
1483 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1484 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1485 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1486 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 1487 | |
10f2d63a | 1488 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1489 | DEFAULT_wxUSE_CHOICEDLG=no |
1490 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1491 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1492 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1493 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1494 | DEFAULT_wxUSE_FONTDLG=no |
1495 | DEFAULT_wxUSE_MSGDLG=no | |
1496 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1497 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1498 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1499 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1500 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1501 | DEFAULT_wxUSE_WIZARDDLG=no |
1502 | ||
1e6feb95 | 1503 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1504 | DEFAULT_wxUSE_MINIFRAME=no |
1505 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1506 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1507 | DEFAULT_wxUSE_FS_INET=no |
1508 | DEFAULT_wxUSE_FS_ZIP=no | |
1509 | DEFAULT_wxUSE_BUSYINFO=no | |
1510 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1511 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1512 | |
1513 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1514 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1515 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1516 | DEFAULT_wxUSE_CALCTRL=no |
1517 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1518 | DEFAULT_wxUSE_CHECKBOX=no |
1519 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1520 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1521 | DEFAULT_wxUSE_COMBOBOX=no |
1522 | DEFAULT_wxUSE_GAUGE=no | |
1523 | DEFAULT_wxUSE_GRID=no | |
1524 | DEFAULT_wxUSE_NEW_GRID=no | |
1525 | DEFAULT_wxUSE_IMAGLIST=no | |
1526 | DEFAULT_wxUSE_LISTBOX=no | |
1527 | DEFAULT_wxUSE_LISTCTRL=no | |
1528 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1529 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1530 | DEFAULT_wxUSE_RADIOBOX=no |
1531 | DEFAULT_wxUSE_RADIOBTN=no | |
1532 | DEFAULT_wxUSE_SASH=no | |
1533 | DEFAULT_wxUSE_SCROLLBAR=no | |
1534 | DEFAULT_wxUSE_SLIDER=no | |
1535 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1536 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1537 | DEFAULT_wxUSE_SPLITTER=no |
1538 | DEFAULT_wxUSE_STATBMP=no | |
1539 | DEFAULT_wxUSE_STATBOX=no | |
1540 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1541 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1542 | DEFAULT_wxUSE_STATUSBAR=yes |
1543 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1544 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1545 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1546 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1547 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1548 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1549 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1550 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1551 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1552 | |
1553 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1554 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1555 | DEFAULT_wxUSE_WCSRTOMBS=no |
1556 | ||
edae8572 | 1557 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1558 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1559 | DEFAULT_wxUSE_GIF=no |
1560 | DEFAULT_wxUSE_PCX=no | |
1561 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1562 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1563 | DEFAULT_wxUSE_XPM=no |
658974ae | 1564 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1565 | else |
1e6feb95 VZ |
1566 | DEFAULT_wxUSE_UNIVERSAL=no |
1567 | ||
d8356fa3 VZ |
1568 | DEFAULT_wxUSE_NANOX=no |
1569 | ||
10f2d63a VZ |
1570 | DEFAULT_wxUSE_THREADS=yes |
1571 | ||
1572 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1573 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1574 | DEFAULT_wxUSE_OPTIMISE=yes |
1575 | DEFAULT_wxUSE_PROFILE=no | |
1576 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1577 | DEFAULT_wxUSE_NO_RTTI=no |
1578 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1579 | DEFAULT_wxUSE_PERMISSIVE=no |
1580 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1581 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1582 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1583 | DEFAULT_wxUSE_MEM_TRACING=no | |
1584 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1585 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1586 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1587 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1588 | ||
1589 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1590 | DEFAULT_wxUSE_LOGWINDOW=yes |
1591 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1592 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1593 | |
1594 | DEFAULT_wxUSE_GUI=yes | |
1595 | ||
831b3152 | 1596 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1597 | DEFAULT_wxUSE_ZLIB=yes |
1598 | DEFAULT_wxUSE_LIBPNG=yes | |
1599 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1600 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1601 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1602 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1603 | |
eb4efbdc | 1604 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1605 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1606 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1607 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1608 | DEFAULT_wxUSE_DATETIME=yes | |
1609 | DEFAULT_wxUSE_TIMEDATE=no | |
1610 | DEFAULT_wxUSE_TIMER=yes | |
1611 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1612 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1613 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1614 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1615 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1616 | DEFAULT_wxUSE_WAVE=no |
1617 | DEFAULT_wxUSE_INTL=yes | |
1618 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1619 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1620 | DEFAULT_wxUSE_STREAMS=yes |
1621 | DEFAULT_wxUSE_SOCKETS=yes | |
1622 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
10f2d63a | 1623 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1624 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1625 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1626 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1627 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1628 | |
1629 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1630 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1631 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1632 | ||
1633 | DEFAULT_wxUSE_X_RESOURCES=no | |
1634 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1635 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1636 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1637 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1638 | DEFAULT_wxUSE_SPLINES=yes |
1639 | ||
1640 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1641 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1642 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1643 | ||
1644 | DEFAULT_wxUSE_PROLOGIO=yes | |
1645 | DEFAULT_wxUSE_RESOURCES=yes | |
1646 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1647 | DEFAULT_wxUSE_IPC=yes | |
1648 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1649 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1650 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1651 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1652 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1653 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1654 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1655 | DEFAULT_wxUSE_PROTOCOL=yes |
1656 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1657 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1658 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1659 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1660 | |
1661 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1662 | DEFAULT_wxUSE_CHOICEDLG=yes |
1663 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1664 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1665 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1666 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1667 | DEFAULT_wxUSE_FONTDLG=yes |
1668 | DEFAULT_wxUSE_MSGDLG=yes | |
1669 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1670 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1671 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1672 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1673 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1674 | DEFAULT_wxUSE_WIZARDDLG=yes |
1675 | ||
1e6feb95 | 1676 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1677 | DEFAULT_wxUSE_MINIFRAME=yes |
1678 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1679 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1680 | DEFAULT_wxUSE_FS_INET=yes |
1681 | DEFAULT_wxUSE_FS_ZIP=yes | |
1682 | DEFAULT_wxUSE_BUSYINFO=yes | |
1683 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1684 | DEFAULT_wxUSE_VALIDATORS=yes | |
1685 | ||
1686 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1687 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1688 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1689 | DEFAULT_wxUSE_CALCTRL=yes |
1690 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1691 | DEFAULT_wxUSE_CHECKBOX=yes |
1692 | DEFAULT_wxUSE_CHECKLST=yes | |
1693 | DEFAULT_wxUSE_CHOICE=yes | |
1694 | DEFAULT_wxUSE_COMBOBOX=yes | |
1695 | DEFAULT_wxUSE_GAUGE=yes | |
1696 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1697 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1698 | DEFAULT_wxUSE_IMAGLIST=yes |
1699 | DEFAULT_wxUSE_LISTBOX=yes | |
1700 | DEFAULT_wxUSE_LISTCTRL=yes | |
1701 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1702 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1703 | DEFAULT_wxUSE_RADIOBOX=yes |
1704 | DEFAULT_wxUSE_RADIOBTN=yes | |
1705 | DEFAULT_wxUSE_SASH=yes | |
1706 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1707 | DEFAULT_wxUSE_SLIDER=yes | |
1708 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1709 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1710 | DEFAULT_wxUSE_SPLITTER=yes |
1711 | DEFAULT_wxUSE_STATBMP=yes | |
1712 | DEFAULT_wxUSE_STATBOX=yes | |
1713 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1714 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1715 | DEFAULT_wxUSE_STATUSBAR=yes |
1716 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1717 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1718 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1719 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1720 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1721 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1722 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1723 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1724 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1725 | |
1726 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1727 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1728 | DEFAULT_wxUSE_WCSRTOMBS=no |
1729 | ||
edae8572 | 1730 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1731 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1732 | DEFAULT_wxUSE_GIF=yes |
1733 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1734 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1735 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1736 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1737 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1738 | fi |
1739 | ||
8284b0c5 MB |
1740 | |
1741 | ||
10f2d63a | 1742 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
1743 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
1744 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
1745 | has_toolkit_in_cache=1 |
1746 | eval "DEFAULT_$LINE" | |
1747 | eval "CACHE_$toolkit=1" | |
1748 | fi | |
1749 | done | |
1750 | ||
8284b0c5 MB |
1751 | |
1752 | ||
1753 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
1754 | echo "configure:1755: checking for --enable-gui" >&5 | |
10f2d63a VZ |
1755 | no_cache=0 |
1756 | # Check whether --enable-gui or --disable-gui was given. | |
1757 | if test "${enable_gui+set}" = set; then | |
1758 | enableval="$enable_gui" | |
8284b0c5 | 1759 | |
10f2d63a VZ |
1760 | if test "$enableval" = yes; then |
1761 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1762 | else | |
1763 | ac_cv_use_gui='wxUSE_GUI=no' | |
1764 | fi | |
8284b0c5 | 1765 | |
10f2d63a | 1766 | else |
8284b0c5 | 1767 | |
10f2d63a VZ |
1768 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1769 | if test "x$LINE" != x ; then | |
1770 | eval "DEFAULT_$LINE" | |
1771 | else | |
1772 | no_cache=1 | |
1773 | fi | |
1774 | ||
1775 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
8284b0c5 MB |
1776 | |
1777 | fi | |
10f2d63a VZ |
1778 | |
1779 | ||
1780 | eval "$ac_cv_use_gui" | |
1781 | if test "$no_cache" != 1; then | |
1782 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1783 | fi | |
1784 | ||
1785 | if test "$wxUSE_GUI" = yes; then | |
8284b0c5 | 1786 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1787 | else |
8284b0c5 | 1788 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1789 | fi |
8284b0c5 | 1790 | |
10f2d63a | 1791 | |
b12915c1 | 1792 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1793 | |
8284b0c5 MB |
1794 | |
1795 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
1796 | echo "configure:1797: checking for --enable-universal" >&5 | |
1e6feb95 VZ |
1797 | no_cache=0 |
1798 | # Check whether --enable-universal or --disable-universal was given. | |
1799 | if test "${enable_universal+set}" = set; then | |
1800 | enableval="$enable_universal" | |
8284b0c5 | 1801 | |
1e6feb95 VZ |
1802 | if test "$enableval" = yes; then |
1803 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1804 | else | |
1805 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1806 | fi | |
8284b0c5 | 1807 | |
1e6feb95 | 1808 | else |
8284b0c5 | 1809 | |
1e6feb95 VZ |
1810 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
1811 | if test "x$LINE" != x ; then | |
1812 | eval "DEFAULT_$LINE" | |
1813 | else | |
1814 | no_cache=1 | |
1815 | fi | |
1816 | ||
1817 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
8284b0c5 MB |
1818 | |
1819 | fi | |
1e6feb95 VZ |
1820 | |
1821 | ||
1822 | eval "$ac_cv_use_universal" | |
1823 | if test "$no_cache" != 1; then | |
1824 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1825 | fi | |
1826 | ||
1827 | if test "$wxUSE_UNIVERSAL" = yes; then | |
8284b0c5 | 1828 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 1829 | else |
8284b0c5 | 1830 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 1831 | fi |
8284b0c5 | 1832 | |
10f2d63a VZ |
1833 | # Check whether --with-gtk or --without-gtk was given. |
1834 | if test "${with_gtk+set}" = set; then | |
1835 | withval="$with_gtk" | |
1836 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
8284b0c5 | 1837 | fi |
10f2d63a VZ |
1838 | |
1839 | # Check whether --with-motif or --without-motif was given. | |
1840 | if test "${with_motif+set}" = set; then | |
1841 | withval="$with_motif" | |
1842 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
8284b0c5 | 1843 | fi |
10f2d63a | 1844 | |
b4085ce6 GD |
1845 | # Check whether --with-mac or --without-mac was given. |
1846 | if test "${with_mac+set}" = set; then | |
1847 | withval="$with_mac" | |
1848 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
8284b0c5 | 1849 | fi |
b4085ce6 | 1850 | |
10f2d63a VZ |
1851 | # Check whether --with-wine or --without-wine was given. |
1852 | if test "${with_wine+set}" = set; then | |
1853 | withval="$with_wine" | |
1854 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
8284b0c5 | 1855 | fi |
10f2d63a | 1856 | |
77e13408 RL |
1857 | # Check whether --with-msw or --without-msw was given. |
1858 | if test "${with_msw+set}" = set; then | |
1859 | withval="$with_msw" | |
b4efce5e | 1860 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
8284b0c5 | 1861 | fi |
10f2d63a | 1862 | |
e07802fc VZ |
1863 | # Check whether --with-pm or --without-pm was given. |
1864 | if test "${with_pm+set}" = set; then | |
1865 | withval="$with_pm" | |
1866 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
8284b0c5 | 1867 | fi |
698dcdb6 | 1868 | |
1e6feb95 VZ |
1869 | # Check whether --with-mgl or --without-mgl was given. |
1870 | if test "${with_mgl+set}" = set; then | |
1871 | withval="$with_mgl" | |
6c657b52 | 1872 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
8284b0c5 | 1873 | fi |
1e6feb95 | 1874 | |
1725144d RR |
1875 | # Check whether --with-microwin or --without-microwin was given. |
1876 | if test "${with_microwin+set}" = set; then | |
1877 | withval="$with_microwin" | |
1878 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
8284b0c5 | 1879 | fi |
1725144d | 1880 | |
f79bd02d JS |
1881 | # Check whether --with-x11 or --without-x11 was given. |
1882 | if test "${with_x11+set}" = set; then | |
1883 | withval="$with_x11" | |
3c011993 | 1884 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
8284b0c5 | 1885 | fi |
10f2d63a | 1886 | |
8284b0c5 MB |
1887 | |
1888 | echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6 | |
1889 | echo "configure:1890: checking for --enable-nanox" >&5 | |
d8356fa3 | 1890 | no_cache=0 |
ba875e66 VZ |
1891 | # Check whether --enable-nanox or --disable-nanox was given. |
1892 | if test "${enable_nanox+set}" = set; then | |
1893 | enableval="$enable_nanox" | |
8284b0c5 | 1894 | |
d8356fa3 | 1895 | if test "$enableval" = yes; then |
ba875e66 | 1896 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1897 | else |
ba875e66 | 1898 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 1899 | fi |
8284b0c5 | 1900 | |
d8356fa3 | 1901 | else |
8284b0c5 | 1902 | |
d8356fa3 VZ |
1903 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
1904 | if test "x$LINE" != x ; then | |
1905 | eval "DEFAULT_$LINE" | |
1906 | else | |
1907 | no_cache=1 | |
1908 | fi | |
1909 | ||
ba875e66 | 1910 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
8284b0c5 MB |
1911 | |
1912 | fi | |
d8356fa3 VZ |
1913 | |
1914 | ||
ba875e66 | 1915 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1916 | if test "$no_cache" != 1; then |
ba875e66 | 1917 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1918 | fi |
1919 | ||
1920 | if test "$wxUSE_NANOX" = yes; then | |
8284b0c5 | 1921 | echo "$ac_t""yes" 1>&6 |
d8356fa3 | 1922 | else |
8284b0c5 | 1923 | echo "$ac_t""no" 1>&6 |
d8356fa3 | 1924 | fi |
8284b0c5 MB |
1925 | |
1926 | ||
d74f4b5a | 1927 | |
8284b0c5 MB |
1928 | echo $ac_n "checking for --enable-gtk2""... $ac_c" 1>&6 |
1929 | echo "configure:1930: checking for --enable-gtk2" >&5 | |
d74f4b5a VZ |
1930 | no_cache=0 |
1931 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
1932 | if test "${enable_gtk2+set}" = set; then |
1933 | enableval="$enable_gtk2" | |
8284b0c5 | 1934 | |
d74f4b5a VZ |
1935 | if test "$enableval" = yes; then |
1936 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
1937 | else | |
1938 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
1939 | fi | |
8284b0c5 | 1940 | |
10f2d63a | 1941 | else |
8284b0c5 | 1942 | |
d74f4b5a VZ |
1943 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
1944 | if test "x$LINE" != x ; then | |
1945 | eval "DEFAULT_$LINE" | |
1946 | else | |
1947 | no_cache=1 | |
1948 | fi | |
1949 | ||
1950 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
8284b0c5 MB |
1951 | |
1952 | fi | |
52127426 | 1953 | |
328a083c | 1954 | |
d74f4b5a VZ |
1955 | eval "$ac_cv_use_gtk2" |
1956 | if test "$no_cache" != 1; then | |
1957 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
1958 | fi | |
1959 | ||
1960 | if test "$wxUSE_GTK2" = yes; then | |
8284b0c5 | 1961 | echo "$ac_t""yes" 1>&6 |
d74f4b5a | 1962 | else |
8284b0c5 | 1963 | echo "$ac_t""no" 1>&6 |
d74f4b5a | 1964 | fi |
8284b0c5 | 1965 | |
d74f4b5a | 1966 | |
5c6fa7d2 | 1967 | |
8284b0c5 MB |
1968 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
1969 | echo "configure:1970: checking for --with-libpng" >&5 | |
1970 | no_cache=0 | |
1971 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1972 | if test "${with_libpng+set}" = set; then |
1973 | withval="$with_libpng" | |
8284b0c5 | 1974 | |
10f2d63a | 1975 | if test "$withval" = yes; then |
b12915c1 | 1976 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1977 | elif test "$withval" = no; then |
b12915c1 | 1978 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1979 | elif test "$withval" = sys; then |
1980 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1981 | elif test "$withval" = builtin; then |
1982 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1983 | else |
8284b0c5 | 1984 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1985 | fi |
8284b0c5 | 1986 | |
10f2d63a | 1987 | else |
8284b0c5 | 1988 | |
b12915c1 | 1989 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1990 | if test "x$LINE" != x ; then |
1991 | eval "DEFAULT_$LINE" | |
1992 | else | |
1993 | no_cache=1 | |
1994 | fi | |
1995 | ||
b12915c1 | 1996 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
8284b0c5 MB |
1997 | |
1998 | fi | |
10f2d63a VZ |
1999 | |
2000 | ||
b12915c1 | 2001 | eval "$ac_cv_use_libpng" |
10f2d63a | 2002 | if test "$no_cache" != 1; then |
b12915c1 | 2003 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2004 | fi |
2005 | ||
b12915c1 | 2006 | if test "$wxUSE_LIBPNG" = yes; then |
8284b0c5 | 2007 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2008 | elif test "$wxUSE_LIBPNG" = no; then |
8284b0c5 | 2009 | echo "$ac_t""no" 1>&6 |
422107f9 | 2010 | elif test "$wxUSE_LIBPNG" = sys; then |
8284b0c5 | 2011 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2012 | elif test "$wxUSE_LIBPNG" = builtin; then |
8284b0c5 | 2013 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2014 | else |
8284b0c5 | 2015 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2016 | fi |
8284b0c5 | 2017 | |
10f2d63a | 2018 | |
8284b0c5 MB |
2019 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
2020 | echo "configure:2021: checking for --with-libjpeg" >&5 | |
10f2d63a | 2021 | no_cache=0 |
8284b0c5 | 2022 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2023 | if test "${with_libjpeg+set}" = set; then |
2024 | withval="$with_libjpeg" | |
8284b0c5 | 2025 | |
10f2d63a | 2026 | if test "$withval" = yes; then |
b12915c1 | 2027 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2028 | elif test "$withval" = no; then |
b12915c1 | 2029 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2030 | elif test "$withval" = sys; then |
2031 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2032 | elif test "$withval" = builtin; then |
2033 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2034 | else |
8284b0c5 | 2035 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2036 | fi |
8284b0c5 | 2037 | |
10f2d63a | 2038 | else |
8284b0c5 | 2039 | |
b12915c1 | 2040 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2041 | if test "x$LINE" != x ; then |
2042 | eval "DEFAULT_$LINE" | |
2043 | else | |
2044 | no_cache=1 | |
2045 | fi | |
2046 | ||
b12915c1 | 2047 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
8284b0c5 MB |
2048 | |
2049 | fi | |
10f2d63a VZ |
2050 | |
2051 | ||
b12915c1 | 2052 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2053 | if test "$no_cache" != 1; then |
b12915c1 | 2054 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2055 | fi |
2056 | ||
b12915c1 | 2057 | if test "$wxUSE_LIBJPEG" = yes; then |
8284b0c5 | 2058 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2059 | elif test "$wxUSE_LIBJPEG" = no; then |
8284b0c5 | 2060 | echo "$ac_t""no" 1>&6 |
422107f9 | 2061 | elif test "$wxUSE_LIBJPEG" = sys; then |
8284b0c5 | 2062 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2063 | elif test "$wxUSE_LIBJPEG" = builtin; then |
8284b0c5 | 2064 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2065 | else |
8284b0c5 | 2066 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2067 | fi |
8284b0c5 | 2068 | |
10f2d63a | 2069 | |
8284b0c5 MB |
2070 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
2071 | echo "configure:2072: checking for --with-libtiff" >&5 | |
10f2d63a | 2072 | no_cache=0 |
8284b0c5 | 2073 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2074 | if test "${with_libtiff+set}" = set; then |
2075 | withval="$with_libtiff" | |
8284b0c5 | 2076 | |
10f2d63a | 2077 | if test "$withval" = yes; then |
b12915c1 | 2078 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2079 | elif test "$withval" = no; then |
b12915c1 | 2080 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2081 | elif test "$withval" = sys; then |
2082 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2083 | elif test "$withval" = builtin; then |
2084 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2085 | else |
8284b0c5 | 2086 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2087 | fi |
8284b0c5 | 2088 | |
10f2d63a | 2089 | else |
8284b0c5 | 2090 | |
b12915c1 | 2091 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2092 | if test "x$LINE" != x ; then |
2093 | eval "DEFAULT_$LINE" | |
2094 | else | |
2095 | no_cache=1 | |
2096 | fi | |
2097 | ||
b12915c1 | 2098 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
8284b0c5 MB |
2099 | |
2100 | fi | |
10f2d63a VZ |
2101 | |
2102 | ||
b12915c1 | 2103 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2104 | if test "$no_cache" != 1; then |
b12915c1 | 2105 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2106 | fi |
2107 | ||
b12915c1 | 2108 | if test "$wxUSE_LIBTIFF" = yes; then |
8284b0c5 | 2109 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2110 | elif test "$wxUSE_LIBTIFF" = no; then |
8284b0c5 | 2111 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2112 | elif test "$wxUSE_LIBTIFF" = sys; then |
8284b0c5 | 2113 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2114 | elif test "$wxUSE_LIBTIFF" = builtin; then |
8284b0c5 | 2115 | echo "$ac_t""builtin version" 1>&6 |
0dcf9893 | 2116 | else |
8284b0c5 | 2117 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2118 | fi |
8284b0c5 | 2119 | |
10f2d63a | 2120 | |
8284b0c5 MB |
2121 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
2122 | echo "configure:2123: checking for --with-opengl" >&5 | |
10f2d63a | 2123 | no_cache=0 |
8284b0c5 | 2124 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2125 | if test "${with_opengl+set}" = set; then |
2126 | withval="$with_opengl" | |
8284b0c5 | 2127 | |
10f2d63a | 2128 | if test "$withval" = yes; then |
b12915c1 | 2129 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2130 | else |
b12915c1 | 2131 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2132 | fi |
8284b0c5 | 2133 | |
10f2d63a | 2134 | else |
8284b0c5 | 2135 | |
b12915c1 | 2136 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2137 | if test "x$LINE" != x ; then |
2138 | eval "DEFAULT_$LINE" | |
2139 | else | |
2140 | no_cache=1 | |
2141 | fi | |
2142 | ||
b12915c1 | 2143 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
8284b0c5 MB |
2144 | |
2145 | fi | |
10f2d63a VZ |
2146 | |
2147 | ||
b12915c1 | 2148 | eval "$ac_cv_use_opengl" |
10f2d63a | 2149 | if test "$no_cache" != 1; then |
b12915c1 | 2150 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2151 | fi |
2152 | ||
b12915c1 | 2153 | if test "$wxUSE_OPENGL" = yes; then |
8284b0c5 | 2154 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2155 | else |
8284b0c5 | 2156 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2157 | fi |
8284b0c5 | 2158 | |
10f2d63a | 2159 | |
b12915c1 VZ |
2160 | fi |
2161 | ||
5c6fa7d2 | 2162 | |
8284b0c5 MB |
2163 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
2164 | echo "configure:2165: checking for --with-dmalloc" >&5 | |
2165 | no_cache=0 | |
2166 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2167 | if test "${with_dmalloc+set}" = set; then |
2168 | withval="$with_dmalloc" | |
8284b0c5 | 2169 | |
c7a2bf27 | 2170 | if test "$withval" = yes; then |
b12915c1 | 2171 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2172 | else |
b12915c1 | 2173 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2174 | fi |
8284b0c5 | 2175 | |
c7a2bf27 | 2176 | else |
8284b0c5 | 2177 | |
b12915c1 | 2178 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2179 | if test "x$LINE" != x ; then |
2180 | eval "DEFAULT_$LINE" | |
2181 | else | |
2182 | no_cache=1 | |
2183 | fi | |
2184 | ||
b12915c1 | 2185 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
8284b0c5 MB |
2186 | |
2187 | fi | |
c7a2bf27 RR |
2188 | |
2189 | ||
b12915c1 | 2190 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2191 | if test "$no_cache" != 1; then |
b12915c1 | 2192 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2193 | fi |
2194 | ||
b12915c1 | 2195 | if test "$wxUSE_DMALLOC" = yes; then |
8284b0c5 | 2196 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2197 | else |
8284b0c5 | 2198 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2199 | fi |
8284b0c5 | 2200 | |
c7a2bf27 | 2201 | |
8284b0c5 MB |
2202 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
2203 | echo "configure:2204: checking for --with-regex" >&5 | |
3e44f09d | 2204 | no_cache=0 |
8284b0c5 | 2205 | # Check whether --with-regex or --without-regex was given. |
3e44f09d VZ |
2206 | if test "${with_regex+set}" = set; then |
2207 | withval="$with_regex" | |
8284b0c5 | 2208 | |
3e44f09d VZ |
2209 | if test "$withval" = yes; then |
2210 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2211 | elif test "$withval" = no; then | |
2212 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2213 | elif test "$withval" = sys; then | |
2214 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2215 | elif test "$withval" = builtin; then |
2216 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2217 | else |
8284b0c5 | 2218 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2219 | fi |
8284b0c5 | 2220 | |
3e44f09d | 2221 | else |
8284b0c5 | 2222 | |
3e44f09d VZ |
2223 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2224 | if test "x$LINE" != x ; then | |
2225 | eval "DEFAULT_$LINE" | |
2226 | else | |
2227 | no_cache=1 | |
2228 | fi | |
2229 | ||
2230 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
8284b0c5 MB |
2231 | |
2232 | fi | |
3e44f09d VZ |
2233 | |
2234 | ||
2235 | eval "$ac_cv_use_regex" | |
2236 | if test "$no_cache" != 1; then | |
2237 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2238 | fi | |
2239 | ||
2240 | if test "$wxUSE_REGEX" = yes; then | |
8284b0c5 | 2241 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 2242 | elif test "$wxUSE_REGEX" = no; then |
8284b0c5 | 2243 | echo "$ac_t""no" 1>&6 |
3e44f09d | 2244 | elif test "$wxUSE_REGEX" = sys; then |
8284b0c5 | 2245 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2246 | elif test "$wxUSE_REGEX" = builtin; then |
8284b0c5 | 2247 | echo "$ac_t""builtin version" 1>&6 |
3e44f09d | 2248 | else |
8284b0c5 | 2249 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2250 | fi |
8284b0c5 | 2251 | |
3e44f09d | 2252 | |
8284b0c5 MB |
2253 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
2254 | echo "configure:2255: checking for --with-zlib" >&5 | |
10f2d63a | 2255 | no_cache=0 |
8284b0c5 | 2256 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2257 | if test "${with_zlib+set}" = set; then |
2258 | withval="$with_zlib" | |
8284b0c5 | 2259 | |
10f2d63a | 2260 | if test "$withval" = yes; then |
b12915c1 | 2261 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2262 | elif test "$withval" = no; then |
b12915c1 | 2263 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2264 | elif test "$withval" = sys; then |
2265 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2266 | elif test "$withval" = builtin; then |
2267 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2268 | else |
8284b0c5 | 2269 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2270 | fi |
8284b0c5 | 2271 | |
10f2d63a | 2272 | else |
8284b0c5 | 2273 | |
b12915c1 | 2274 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2275 | if test "x$LINE" != x ; then |
2276 | eval "DEFAULT_$LINE" | |
2277 | else | |
2278 | no_cache=1 | |
2279 | fi | |
2280 | ||
b12915c1 | 2281 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
8284b0c5 MB |
2282 | |
2283 | fi | |
10f2d63a VZ |
2284 | |
2285 | ||
b12915c1 | 2286 | eval "$ac_cv_use_zlib" |
10f2d63a | 2287 | if test "$no_cache" != 1; then |
b12915c1 | 2288 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2289 | fi |
2290 | ||
b12915c1 | 2291 | if test "$wxUSE_ZLIB" = yes; then |
8284b0c5 | 2292 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2293 | elif test "$wxUSE_ZLIB" = no; then |
8284b0c5 | 2294 | echo "$ac_t""no" 1>&6 |
422107f9 | 2295 | elif test "$wxUSE_ZLIB" = sys; then |
8284b0c5 | 2296 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2297 | elif test "$wxUSE_ZLIB" = builtin; then |
8284b0c5 | 2298 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2299 | else |
8284b0c5 | 2300 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2301 | fi |
8284b0c5 | 2302 | |
10f2d63a | 2303 | |
8284b0c5 MB |
2304 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
2305 | echo "configure:2306: checking for --with-odbc" >&5 | |
10f2d63a | 2306 | no_cache=0 |
8284b0c5 | 2307 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2308 | if test "${with_odbc+set}" = set; then |
2309 | withval="$with_odbc" | |
8284b0c5 | 2310 | |
10f2d63a VZ |
2311 | if test "$withval" = yes; then |
2312 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2313 | else | |
2314 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2315 | fi | |
8284b0c5 | 2316 | |
10f2d63a | 2317 | else |
8284b0c5 | 2318 | |
10f2d63a VZ |
2319 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2320 | if test "x$LINE" != x ; then | |
2321 | eval "DEFAULT_$LINE" | |
2322 | else | |
2323 | no_cache=1 | |
2324 | fi | |
2325 | ||
2326 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
8284b0c5 MB |
2327 | |
2328 | fi | |
10f2d63a VZ |
2329 | |
2330 | ||
2331 | eval "$ac_cv_use_odbc" | |
2332 | if test "$no_cache" != 1; then | |
2333 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2334 | fi | |
2335 | ||
2336 | if test "$wxUSE_ODBC" = yes; then | |
8284b0c5 | 2337 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2338 | else |
8284b0c5 | 2339 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2340 | fi |
8284b0c5 | 2341 | |
52127426 | 2342 | |
8284b0c5 MB |
2343 | |
2344 | ||
2345 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 | |
2346 | echo "configure:2347: checking for --enable-shared" >&5 | |
10f2d63a VZ |
2347 | no_cache=0 |
2348 | # Check whether --enable-shared or --disable-shared was given. | |
2349 | if test "${enable_shared+set}" = set; then | |
2350 | enableval="$enable_shared" | |
8284b0c5 | 2351 | |
10f2d63a VZ |
2352 | if test "$enableval" = yes; then |
2353 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2354 | else | |
2355 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2356 | fi | |
8284b0c5 | 2357 | |
10f2d63a | 2358 | else |
8284b0c5 | 2359 | |
10f2d63a VZ |
2360 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2361 | if test "x$LINE" != x ; then | |
2362 | eval "DEFAULT_$LINE" | |
2363 | else | |
2364 | no_cache=1 | |
2365 | fi | |
2366 | ||
2367 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
8284b0c5 MB |
2368 | |
2369 | fi | |
10f2d63a VZ |
2370 | |
2371 | ||
2372 | eval "$ac_cv_use_shared" | |
2373 | if test "$no_cache" != 1; then | |
2374 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2375 | fi | |
2376 | ||
2377 | if test "$wxUSE_SHARED" = yes; then | |
8284b0c5 | 2378 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2379 | else |
8284b0c5 | 2380 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2381 | fi |
8284b0c5 | 2382 | |
10f2d63a | 2383 | |
8284b0c5 MB |
2384 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
2385 | echo "configure:2386: checking for --enable-soname" >&5 | |
00cf1208 | 2386 | no_cache=0 |
3a922bb4 RL |
2387 | # Check whether --enable-soname or --disable-soname was given. |
2388 | if test "${enable_soname+set}" = set; then | |
2389 | enableval="$enable_soname" | |
8284b0c5 | 2390 | |
00cf1208 | 2391 | if test "$enableval" = yes; then |
3a922bb4 | 2392 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2393 | else |
3a922bb4 | 2394 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2395 | fi |
8284b0c5 | 2396 | |
00cf1208 | 2397 | else |
8284b0c5 | 2398 | |
3a922bb4 | 2399 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2400 | if test "x$LINE" != x ; then |
2401 | eval "DEFAULT_$LINE" | |
2402 | else | |
2403 | no_cache=1 | |
2404 | fi | |
2405 | ||
3a922bb4 | 2406 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
8284b0c5 MB |
2407 | |
2408 | fi | |
00cf1208 RR |
2409 | |
2410 | ||
3a922bb4 | 2411 | eval "$ac_cv_use_soname" |
00cf1208 | 2412 | if test "$no_cache" != 1; then |
3a922bb4 | 2413 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2414 | fi |
2415 | ||
3a922bb4 | 2416 | if test "$wxUSE_SONAME" = yes; then |
8284b0c5 | 2417 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2418 | else |
8284b0c5 | 2419 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2420 | fi |
8284b0c5 | 2421 | |
00cf1208 | 2422 | |
8284b0c5 MB |
2423 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
2424 | echo "configure:2425: checking for --enable-optimise" >&5 | |
10f2d63a VZ |
2425 | no_cache=0 |
2426 | # Check whether --enable-optimise or --disable-optimise was given. | |
2427 | if test "${enable_optimise+set}" = set; then | |
2428 | enableval="$enable_optimise" | |
8284b0c5 | 2429 | |
10f2d63a VZ |
2430 | if test "$enableval" = yes; then |
2431 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2432 | else | |
2433 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2434 | fi | |
8284b0c5 | 2435 | |
10f2d63a | 2436 | else |
8284b0c5 | 2437 | |
10f2d63a VZ |
2438 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2439 | if test "x$LINE" != x ; then | |
2440 | eval "DEFAULT_$LINE" | |
2441 | else | |
2442 | no_cache=1 | |
2443 | fi | |
2444 | ||
2445 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
8284b0c5 MB |
2446 | |
2447 | fi | |
10f2d63a VZ |
2448 | |
2449 | ||
2450 | eval "$ac_cv_use_optimise" | |
2451 | if test "$no_cache" != 1; then | |
2452 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2453 | fi | |
2454 | ||
2455 | if test "$wxUSE_OPTIMISE" = yes; then | |
8284b0c5 | 2456 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2457 | else |
8284b0c5 | 2458 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2459 | fi |
8284b0c5 | 2460 | |
10f2d63a | 2461 | |
8284b0c5 MB |
2462 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
2463 | echo "configure:2464: checking for --enable-debug" >&5 | |
10f2d63a VZ |
2464 | no_cache=0 |
2465 | # Check whether --enable-debug or --disable-debug was given. | |
2466 | if test "${enable_debug+set}" = set; then | |
2467 | enableval="$enable_debug" | |
8284b0c5 | 2468 | |
10f2d63a VZ |
2469 | if test "$enableval" = yes; then |
2470 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2471 | else | |
2472 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2473 | fi | |
8284b0c5 | 2474 | |
10f2d63a | 2475 | else |
8284b0c5 | 2476 | |
10f2d63a VZ |
2477 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2478 | if test "x$LINE" != x ; then | |
2479 | eval "DEFAULT_$LINE" | |
2480 | else | |
2481 | no_cache=1 | |
2482 | fi | |
2483 | ||
2484 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
8284b0c5 MB |
2485 | |
2486 | fi | |
10f2d63a VZ |
2487 | |
2488 | ||
2489 | eval "$ac_cv_use_debug" | |
2490 | if test "$no_cache" != 1; then | |
2491 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2492 | fi | |
2493 | ||
2494 | if test "$wxUSE_DEBUG" = yes; then | |
8284b0c5 | 2495 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2496 | else |
8284b0c5 | 2497 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2498 | fi |
8284b0c5 | 2499 | |
52127426 | 2500 | |
8284b0c5 MB |
2501 | |
2502 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
2503 | echo "configure:2504: checking for --enable-precomp" >&5 | |
683dccda GD |
2504 | no_cache=0 |
2505 | # Check whether --enable-precomp or --disable-precomp was given. | |
2506 | if test "${enable_precomp+set}" = set; then | |
2507 | enableval="$enable_precomp" | |
8284b0c5 | 2508 | |
683dccda GD |
2509 | if test "$enableval" = yes; then |
2510 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2511 | else | |
2512 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2513 | fi | |
8284b0c5 | 2514 | |
683dccda | 2515 | else |
8284b0c5 | 2516 | |
683dccda GD |
2517 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` |
2518 | if test "x$LINE" != x ; then | |
2519 | eval "DEFAULT_$LINE" | |
2520 | else | |
2521 | no_cache=1 | |
2522 | fi | |
2523 | ||
2524 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
8284b0c5 MB |
2525 | |
2526 | fi | |
683dccda GD |
2527 | |
2528 | ||
2529 | eval "$ac_cv_use_precomp" | |
2530 | if test "$no_cache" != 1; then | |
2531 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2532 | fi | |
2533 | ||
2534 | if test "$wxUSE_PRECOMP" = yes; then | |
8284b0c5 | 2535 | echo "$ac_t""yes" 1>&6 |
683dccda | 2536 | else |
8284b0c5 | 2537 | echo "$ac_t""no" 1>&6 |
683dccda | 2538 | fi |
8284b0c5 | 2539 | |
683dccda | 2540 | |
10f2d63a VZ |
2541 | if test "$wxUSE_DEBUG" = "yes"; then |
2542 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2543 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2544 | elif test "$wxUSE_DEBUG" = "no"; then | |
2545 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2546 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2547 | fi | |
2548 | ||
8284b0c5 MB |
2549 | |
2550 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
2551 | echo "configure:2552: checking for --enable-debug_flag" >&5 | |
10f2d63a VZ |
2552 | no_cache=0 |
2553 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2554 | if test "${enable_debug_flag+set}" = set; then | |
2555 | enableval="$enable_debug_flag" | |
8284b0c5 | 2556 | |
10f2d63a VZ |
2557 | if test "$enableval" = yes; then |
2558 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2559 | else | |
2560 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2561 | fi | |
8284b0c5 | 2562 | |
10f2d63a | 2563 | else |
8284b0c5 | 2564 | |
10f2d63a VZ |
2565 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2566 | if test "x$LINE" != x ; then | |
2567 | eval "DEFAULT_$LINE" | |
2568 | else | |
2569 | no_cache=1 | |
2570 | fi | |
2571 | ||
2572 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
8284b0c5 MB |
2573 | |
2574 | fi | |
10f2d63a VZ |
2575 | |
2576 | ||
2577 | eval "$ac_cv_use_debug_flag" | |
2578 | if test "$no_cache" != 1; then | |
2579 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2580 | fi | |
2581 | ||
2582 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
8284b0c5 | 2583 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2584 | else |
8284b0c5 | 2585 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2586 | fi |
8284b0c5 | 2587 | |
10f2d63a | 2588 | |
8284b0c5 MB |
2589 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
2590 | echo "configure:2591: checking for --enable-debug_info" >&5 | |
10f2d63a VZ |
2591 | no_cache=0 |
2592 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2593 | if test "${enable_debug_info+set}" = set; then | |
2594 | enableval="$enable_debug_info" | |
8284b0c5 | 2595 | |
10f2d63a VZ |
2596 | if test "$enableval" = yes; then |
2597 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2598 | else | |
2599 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2600 | fi | |
8284b0c5 | 2601 | |
10f2d63a | 2602 | else |
8284b0c5 | 2603 | |
10f2d63a VZ |
2604 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2605 | if test "x$LINE" != x ; then | |
2606 | eval "DEFAULT_$LINE" | |
2607 | else | |
2608 | no_cache=1 | |
2609 | fi | |
2610 | ||
2611 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
8284b0c5 MB |
2612 | |
2613 | fi | |
10f2d63a VZ |
2614 | |
2615 | ||
2616 | eval "$ac_cv_use_debug_info" | |
2617 | if test "$no_cache" != 1; then | |
2618 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2619 | fi | |
2620 | ||
2621 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
8284b0c5 | 2622 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2623 | else |
8284b0c5 | 2624 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2625 | fi |
8284b0c5 | 2626 | |
10f2d63a | 2627 | |
8284b0c5 MB |
2628 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
2629 | echo "configure:2630: checking for --enable-debug_gdb" >&5 | |
10f2d63a VZ |
2630 | no_cache=0 |
2631 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2632 | if test "${enable_debug_gdb+set}" = set; then | |
2633 | enableval="$enable_debug_gdb" | |
8284b0c5 | 2634 | |
10f2d63a VZ |
2635 | if test "$enableval" = yes; then |
2636 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2637 | else | |
2638 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2639 | fi | |
8284b0c5 | 2640 | |
10f2d63a | 2641 | else |
8284b0c5 | 2642 | |
10f2d63a VZ |
2643 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2644 | if test "x$LINE" != x ; then | |
2645 | eval "DEFAULT_$LINE" | |
2646 | else | |
2647 | no_cache=1 | |
2648 | fi | |
2649 | ||
2650 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
8284b0c5 MB |
2651 | |
2652 | fi | |
10f2d63a VZ |
2653 | |
2654 | ||
2655 | eval "$ac_cv_use_debug_gdb" | |
2656 | if test "$no_cache" != 1; then | |
2657 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2658 | fi | |
2659 | ||
2660 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
8284b0c5 | 2661 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2662 | else |
8284b0c5 | 2663 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2664 | fi |
8284b0c5 | 2665 | |
10f2d63a | 2666 | |
8284b0c5 MB |
2667 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
2668 | echo "configure:2669: checking for --enable-debug_cntxt" >&5 | |
10f2d63a VZ |
2669 | no_cache=0 |
2670 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2671 | if test "${enable_debug_cntxt+set}" = set; then | |
2672 | enableval="$enable_debug_cntxt" | |
8284b0c5 | 2673 | |
10f2d63a VZ |
2674 | if test "$enableval" = yes; then |
2675 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2676 | else | |
2677 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2678 | fi | |
8284b0c5 | 2679 | |
10f2d63a | 2680 | else |
8284b0c5 | 2681 | |
10f2d63a VZ |
2682 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2683 | if test "x$LINE" != x ; then | |
2684 | eval "DEFAULT_$LINE" | |
2685 | else | |
2686 | no_cache=1 | |
2687 | fi | |
2688 | ||
2689 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
8284b0c5 MB |
2690 | |
2691 | fi | |
10f2d63a VZ |
2692 | |
2693 | ||
2694 | eval "$ac_cv_use_debug_cntxt" | |
2695 | if test "$no_cache" != 1; then | |
2696 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2697 | fi | |
2698 | ||
2699 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
8284b0c5 | 2700 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2701 | else |
8284b0c5 | 2702 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2703 | fi |
8284b0c5 | 2704 | |
10f2d63a | 2705 | |
8284b0c5 MB |
2706 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
2707 | echo "configure:2708: checking for --enable-mem_tracing" >&5 | |
10f2d63a VZ |
2708 | no_cache=0 |
2709 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2710 | if test "${enable_mem_tracing+set}" = set; then | |
2711 | enableval="$enable_mem_tracing" | |
8284b0c5 | 2712 | |
10f2d63a VZ |
2713 | if test "$enableval" = yes; then |
2714 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2715 | else | |
2716 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2717 | fi | |
8284b0c5 | 2718 | |
10f2d63a | 2719 | else |
8284b0c5 | 2720 | |
10f2d63a VZ |
2721 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2722 | if test "x$LINE" != x ; then | |
2723 | eval "DEFAULT_$LINE" | |
2724 | else | |
2725 | no_cache=1 | |
2726 | fi | |
2727 | ||
2728 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
8284b0c5 MB |
2729 | |
2730 | fi | |
10f2d63a VZ |
2731 | |
2732 | ||
2733 | eval "$ac_cv_use_mem_tracing" | |
2734 | if test "$no_cache" != 1; then | |
2735 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2736 | fi | |
2737 | ||
2738 | if test "$wxUSE_MEM_TRACING" = yes; then | |
8284b0c5 | 2739 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2740 | else |
8284b0c5 | 2741 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2742 | fi |
8284b0c5 | 2743 | |
10f2d63a | 2744 | |
8284b0c5 MB |
2745 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
2746 | echo "configure:2747: checking for --enable-profile" >&5 | |
10f2d63a VZ |
2747 | no_cache=0 |
2748 | # Check whether --enable-profile or --disable-profile was given. | |
2749 | if test "${enable_profile+set}" = set; then | |
2750 | enableval="$enable_profile" | |
8284b0c5 | 2751 | |
10f2d63a VZ |
2752 | if test "$enableval" = yes; then |
2753 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2754 | else | |
2755 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2756 | fi | |
8284b0c5 | 2757 | |
10f2d63a | 2758 | else |
8284b0c5 | 2759 | |
10f2d63a VZ |
2760 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2761 | if test "x$LINE" != x ; then | |
2762 | eval "DEFAULT_$LINE" | |
2763 | else | |
2764 | no_cache=1 | |
2765 | fi | |
2766 | ||
2767 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
8284b0c5 MB |
2768 | |
2769 | fi | |
10f2d63a VZ |
2770 | |
2771 | ||
2772 | eval "$ac_cv_use_profile" | |
2773 | if test "$no_cache" != 1; then | |
2774 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2775 | fi | |
2776 | ||
2777 | if test "$wxUSE_PROFILE" = yes; then | |
8284b0c5 | 2778 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2779 | else |
8284b0c5 | 2780 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2781 | fi |
8284b0c5 | 2782 | |
10f2d63a | 2783 | |
8284b0c5 MB |
2784 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
2785 | echo "configure:2786: checking for --enable-no_rtti" >&5 | |
10f2d63a VZ |
2786 | no_cache=0 |
2787 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2788 | if test "${enable_no_rtti+set}" = set; then | |
2789 | enableval="$enable_no_rtti" | |
8284b0c5 | 2790 | |
10f2d63a VZ |
2791 | if test "$enableval" = yes; then |
2792 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2793 | else | |
2794 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2795 | fi | |
8284b0c5 | 2796 | |
10f2d63a | 2797 | else |
8284b0c5 | 2798 | |
10f2d63a VZ |
2799 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2800 | if test "x$LINE" != x ; then | |
2801 | eval "DEFAULT_$LINE" | |
2802 | else | |
2803 | no_cache=1 | |
2804 | fi | |
2805 | ||
2806 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
8284b0c5 MB |
2807 | |
2808 | fi | |
10f2d63a VZ |
2809 | |
2810 | ||
2811 | eval "$ac_cv_use_no_rtti" | |
2812 | if test "$no_cache" != 1; then | |
2813 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2814 | fi | |
2815 | ||
2816 | if test "$wxUSE_NO_RTTI" = yes; then | |
8284b0c5 | 2817 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2818 | else |
8284b0c5 | 2819 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2820 | fi |
8284b0c5 | 2821 | |
10f2d63a | 2822 | |
8284b0c5 MB |
2823 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
2824 | echo "configure:2825: checking for --enable-no_exceptions" >&5 | |
10f2d63a VZ |
2825 | no_cache=0 |
2826 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2827 | if test "${enable_no_exceptions+set}" = set; then | |
2828 | enableval="$enable_no_exceptions" | |
8284b0c5 | 2829 | |
10f2d63a VZ |
2830 | if test "$enableval" = yes; then |
2831 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2832 | else | |
2833 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2834 | fi | |
8284b0c5 | 2835 | |
10f2d63a | 2836 | else |
8284b0c5 | 2837 | |
10f2d63a VZ |
2838 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2839 | if test "x$LINE" != x ; then | |
2840 | eval "DEFAULT_$LINE" | |
2841 | else | |
2842 | no_cache=1 | |
2843 | fi | |
2844 | ||
2845 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
8284b0c5 MB |
2846 | |
2847 | fi | |
10f2d63a VZ |
2848 | |
2849 | ||
2850 | eval "$ac_cv_use_no_exceptions" | |
2851 | if test "$no_cache" != 1; then | |
2852 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2853 | fi | |
2854 | ||
2855 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
8284b0c5 | 2856 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2857 | else |
8284b0c5 | 2858 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2859 | fi |
8284b0c5 | 2860 | |
10f2d63a | 2861 | |
8284b0c5 MB |
2862 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
2863 | echo "configure:2864: checking for --enable-permissive" >&5 | |
10f2d63a VZ |
2864 | no_cache=0 |
2865 | # Check whether --enable-permissive or --disable-permissive was given. | |
2866 | if test "${enable_permissive+set}" = set; then | |
2867 | enableval="$enable_permissive" | |
8284b0c5 | 2868 | |
10f2d63a VZ |
2869 | if test "$enableval" = yes; then |
2870 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2871 | else | |
2872 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2873 | fi | |
8284b0c5 | 2874 | |
10f2d63a | 2875 | else |
8284b0c5 | 2876 | |
10f2d63a VZ |
2877 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2878 | if test "x$LINE" != x ; then | |
2879 | eval "DEFAULT_$LINE" | |
2880 | else | |
2881 | no_cache=1 | |
2882 | fi | |
2883 | ||
2884 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
8284b0c5 MB |
2885 | |
2886 | fi | |
10f2d63a VZ |
2887 | |
2888 | ||
2889 | eval "$ac_cv_use_permissive" | |
2890 | if test "$no_cache" != 1; then | |
2891 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2892 | fi | |
2893 | ||
2894 | if test "$wxUSE_PERMISSIVE" = yes; then | |
8284b0c5 | 2895 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2896 | else |
8284b0c5 | 2897 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2898 | fi |
8284b0c5 | 2899 | |
10f2d63a | 2900 | |
8284b0c5 MB |
2901 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
2902 | echo "configure:2903: checking for --enable-no_deps" >&5 | |
10f2d63a VZ |
2903 | no_cache=0 |
2904 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2905 | if test "${enable_no_deps+set}" = set; then | |
2906 | enableval="$enable_no_deps" | |
8284b0c5 | 2907 | |
10f2d63a VZ |
2908 | if test "$enableval" = yes; then |
2909 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2910 | else | |
2911 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2912 | fi | |
8284b0c5 | 2913 | |
10f2d63a | 2914 | else |
8284b0c5 | 2915 | |
10f2d63a VZ |
2916 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2917 | if test "x$LINE" != x ; then | |
2918 | eval "DEFAULT_$LINE" | |
2919 | else | |
2920 | no_cache=1 | |
2921 | fi | |
2922 | ||
2923 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
8284b0c5 MB |
2924 | |
2925 | fi | |
10f2d63a VZ |
2926 | |
2927 | ||
2928 | eval "$ac_cv_use_no_deps" | |
2929 | if test "$no_cache" != 1; then | |
2930 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2931 | fi | |
2932 | ||
2933 | if test "$wxUSE_NO_DEPS" = yes; then | |
8284b0c5 | 2934 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2935 | else |
8284b0c5 | 2936 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2937 | fi |
8284b0c5 | 2938 | |
52127426 | 2939 | |
8284b0c5 MB |
2940 | |
2941 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 | |
2942 | echo "configure:2943: checking for --enable-compat20" >&5 | |
54276ccf VZ |
2943 | no_cache=0 |
2944 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2945 | if test "${enable_compat20+set}" = set; then | |
2946 | enableval="$enable_compat20" | |
8284b0c5 | 2947 | |
54276ccf VZ |
2948 | if test "$enableval" = yes; then |
2949 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2950 | else | |
2951 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2952 | fi | |
8284b0c5 | 2953 | |
54276ccf | 2954 | else |
8284b0c5 | 2955 | |
54276ccf VZ |
2956 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
2957 | if test "x$LINE" != x ; then | |
2958 | eval "DEFAULT_$LINE" | |
2959 | else | |
2960 | no_cache=1 | |
2961 | fi | |
2962 | ||
2963 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
8284b0c5 MB |
2964 | |
2965 | fi | |
54276ccf VZ |
2966 | |
2967 | ||
2968 | eval "$ac_cv_use_compat20" | |
2969 | if test "$no_cache" != 1; then | |
2970 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2971 | fi | |
2972 | ||
2973 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
8284b0c5 | 2974 | echo "$ac_t""yes" 1>&6 |
54276ccf | 2975 | else |
8284b0c5 | 2976 | echo "$ac_t""no" 1>&6 |
54276ccf | 2977 | fi |
8284b0c5 | 2978 | |
54276ccf | 2979 | |
8284b0c5 MB |
2980 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 |
2981 | echo "configure:2982: checking for --enable-compat22" >&5 | |
54276ccf VZ |
2982 | no_cache=0 |
2983 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2984 | if test "${enable_compat22+set}" = set; then | |
2985 | enableval="$enable_compat22" | |
8284b0c5 | 2986 | |
54276ccf VZ |
2987 | if test "$enableval" = yes; then |
2988 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2989 | else | |
2990 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2991 | fi | |
8284b0c5 | 2992 | |
54276ccf | 2993 | else |
8284b0c5 | 2994 | |
54276ccf VZ |
2995 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
2996 | if test "x$LINE" != x ; then | |
2997 | eval "DEFAULT_$LINE" | |
2998 | else | |
2999 | no_cache=1 | |
3000 | fi | |
3001 | ||
3002 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
8284b0c5 MB |
3003 | |
3004 | fi | |
54276ccf VZ |
3005 | |
3006 | ||
3007 | eval "$ac_cv_use_compat22" | |
3008 | if test "$no_cache" != 1; then | |
3009 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3010 | fi | |
3011 | ||
3012 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
8284b0c5 | 3013 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3014 | else |
8284b0c5 | 3015 | echo "$ac_t""no" 1>&6 |
54276ccf | 3016 | fi |
8284b0c5 | 3017 | |
54276ccf | 3018 | |
3bd8fb5f RD |
3019 | # Check whether --enable-rpath or --disable-rpath was given. |
3020 | if test "${enable_rpath+set}" = set; then | |
3021 | enableval="$enable_rpath" | |
3022 | wxRPATH_DIR="$enableval" | |
8284b0c5 MB |
3023 | fi |
3024 | ||
3bd8fb5f RD |
3025 | |
3026 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3027 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3028 | fi | |
3029 | ||
8284b0c5 MB |
3030 | |
3031 | ||
3032 | ||
3033 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
3034 | echo "configure:3035: checking for --enable-intl" >&5 | |
10f2d63a VZ |
3035 | no_cache=0 |
3036 | # Check whether --enable-intl or --disable-intl was given. | |
3037 | if test "${enable_intl+set}" = set; then | |
3038 | enableval="$enable_intl" | |
8284b0c5 | 3039 | |
10f2d63a VZ |
3040 | if test "$enableval" = yes; then |
3041 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3042 | else | |
3043 | ac_cv_use_intl='wxUSE_INTL=no' | |
3044 | fi | |
8284b0c5 | 3045 | |
10f2d63a | 3046 | else |
8284b0c5 | 3047 | |
10f2d63a VZ |
3048 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3049 | if test "x$LINE" != x ; then | |
3050 | eval "DEFAULT_$LINE" | |
3051 | else | |
3052 | no_cache=1 | |
3053 | fi | |
3054 | ||
3055 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
8284b0c5 MB |
3056 | |
3057 | fi | |
10f2d63a VZ |
3058 | |
3059 | ||
3060 | eval "$ac_cv_use_intl" | |
3061 | if test "$no_cache" != 1; then | |
3062 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3063 | fi | |
3064 | ||
3065 | if test "$wxUSE_INTL" = yes; then | |
8284b0c5 | 3066 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3067 | else |
8284b0c5 | 3068 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3069 | fi |
8284b0c5 | 3070 | |
10f2d63a | 3071 | |
8284b0c5 MB |
3072 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
3073 | echo "configure:3074: checking for --enable-config" >&5 | |
10f2d63a VZ |
3074 | no_cache=0 |
3075 | # Check whether --enable-config or --disable-config was given. | |
3076 | if test "${enable_config+set}" = set; then | |
3077 | enableval="$enable_config" | |
8284b0c5 | 3078 | |
10f2d63a VZ |
3079 | if test "$enableval" = yes; then |
3080 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3081 | else | |
3082 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3083 | fi | |
8284b0c5 | 3084 | |
10f2d63a | 3085 | else |
8284b0c5 | 3086 | |
10f2d63a VZ |
3087 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3088 | if test "x$LINE" != x ; then | |
3089 | eval "DEFAULT_$LINE" | |
3090 | else | |
3091 | no_cache=1 | |
3092 | fi | |
3093 | ||
3094 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
8284b0c5 MB |
3095 | |
3096 | fi | |
10f2d63a VZ |
3097 | |
3098 | ||
3099 | eval "$ac_cv_use_config" | |
3100 | if test "$no_cache" != 1; then | |
3101 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3102 | fi | |
3103 | ||
3104 | if test "$wxUSE_CONFIG" = yes; then | |
8284b0c5 | 3105 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3106 | else |
8284b0c5 | 3107 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3108 | fi |
8284b0c5 | 3109 | |
52127426 | 3110 | |
8284b0c5 MB |
3111 | |
3112 | echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6 | |
3113 | echo "configure:3114: checking for --enable-protocols" >&5 | |
a1622950 VZ |
3114 | no_cache=0 |
3115 | # Check whether --enable-protocols or --disable-protocols was given. | |
3116 | if test "${enable_protocols+set}" = set; then | |
3117 | enableval="$enable_protocols" | |
8284b0c5 | 3118 | |
a1622950 VZ |
3119 | if test "$enableval" = yes; then |
3120 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3121 | else | |
3122 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3123 | fi | |
8284b0c5 | 3124 | |
a1622950 | 3125 | else |
8284b0c5 | 3126 | |
a1622950 VZ |
3127 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3128 | if test "x$LINE" != x ; then | |
3129 | eval "DEFAULT_$LINE" | |
3130 | else | |
3131 | no_cache=1 | |
3132 | fi | |
3133 | ||
3134 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
8284b0c5 MB |
3135 | |
3136 | fi | |
a1622950 VZ |
3137 | |
3138 | ||
3139 | eval "$ac_cv_use_protocols" | |
3140 | if test "$no_cache" != 1; then | |
3141 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3142 | fi | |
3143 | ||
3144 | if test "$wxUSE_PROTOCOL" = yes; then | |
8284b0c5 | 3145 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3146 | else |
8284b0c5 | 3147 | echo "$ac_t""no" 1>&6 |
a1622950 | 3148 | fi |
8284b0c5 | 3149 | |
a1622950 | 3150 | |
8284b0c5 MB |
3151 | echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6 |
3152 | echo "configure:3153: checking for --enable-ftp" >&5 | |
a1622950 VZ |
3153 | no_cache=0 |
3154 | # Check whether --enable-ftp or --disable-ftp was given. | |
3155 | if test "${enable_ftp+set}" = set; then | |
3156 | enableval="$enable_ftp" | |
8284b0c5 | 3157 | |
a1622950 VZ |
3158 | if test "$enableval" = yes; then |
3159 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3160 | else | |
3161 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3162 | fi | |
8284b0c5 | 3163 | |
a1622950 | 3164 | else |
8284b0c5 | 3165 | |
a1622950 VZ |
3166 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3167 | if test "x$LINE" != x ; then | |
3168 | eval "DEFAULT_$LINE" | |
3169 | else | |
3170 | no_cache=1 | |
3171 | fi | |
3172 | ||
3173 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
8284b0c5 MB |
3174 | |
3175 | fi | |
a1622950 VZ |
3176 | |
3177 | ||
3178 | eval "$ac_cv_use_ftp" | |
3179 | if test "$no_cache" != 1; then | |
3180 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3181 | fi | |
3182 | ||
3183 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
8284b0c5 | 3184 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3185 | else |
8284b0c5 | 3186 | echo "$ac_t""no" 1>&6 |
a1622950 | 3187 | fi |
8284b0c5 | 3188 | |
a1622950 | 3189 | |
8284b0c5 MB |
3190 | echo $ac_n "checking for --enable-http""... $ac_c" 1>&6 |
3191 | echo "configure:3192: checking for --enable-http" >&5 | |
a1622950 VZ |
3192 | no_cache=0 |
3193 | # Check whether --enable-http or --disable-http was given. | |
3194 | if test "${enable_http+set}" = set; then | |
3195 | enableval="$enable_http" | |
8284b0c5 | 3196 | |
a1622950 VZ |
3197 | if test "$enableval" = yes; then |
3198 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3199 | else | |
3200 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3201 | fi | |
8284b0c5 | 3202 | |
a1622950 | 3203 | else |
8284b0c5 | 3204 | |
a1622950 VZ |
3205 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3206 | if test "x$LINE" != x ; then | |
3207 | eval "DEFAULT_$LINE" | |
3208 | else | |
3209 | no_cache=1 | |
3210 | fi | |
3211 | ||
3212 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
8284b0c5 MB |
3213 | |
3214 | fi | |
a1622950 VZ |
3215 | |
3216 | ||
3217 | eval "$ac_cv_use_http" | |
3218 | if test "$no_cache" != 1; then | |
3219 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3220 | fi | |
3221 | ||
3222 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
8284b0c5 | 3223 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3224 | else |
8284b0c5 | 3225 | echo "$ac_t""no" 1>&6 |
a1622950 | 3226 | fi |
8284b0c5 | 3227 | |
a1622950 | 3228 | |
8284b0c5 MB |
3229 | echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6 |
3230 | echo "configure:3231: checking for --enable-fileproto" >&5 | |
a1622950 VZ |
3231 | no_cache=0 |
3232 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3233 | if test "${enable_fileproto+set}" = set; then | |
3234 | enableval="$enable_fileproto" | |
8284b0c5 | 3235 | |
a1622950 VZ |
3236 | if test "$enableval" = yes; then |
3237 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3238 | else | |
3239 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3240 | fi | |
8284b0c5 | 3241 | |
a1622950 | 3242 | else |
8284b0c5 | 3243 | |
a1622950 VZ |
3244 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
3245 | if test "x$LINE" != x ; then | |
3246 | eval "DEFAULT_$LINE" | |
3247 | else | |
3248 | no_cache=1 | |
3249 | fi | |
3250 | ||
3251 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
8284b0c5 MB |
3252 | |
3253 | fi | |
a1622950 VZ |
3254 | |
3255 | ||
3256 | eval "$ac_cv_use_fileproto" | |
3257 | if test "$no_cache" != 1; then | |
3258 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3259 | fi | |
3260 | ||
3261 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
8284b0c5 | 3262 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3263 | else |
8284b0c5 | 3264 | echo "$ac_t""no" 1>&6 |
a1622950 | 3265 | fi |
8284b0c5 | 3266 | |
a1622950 | 3267 | |
8284b0c5 MB |
3268 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
3269 | echo "configure:3270: checking for --enable-sockets" >&5 | |
10f2d63a VZ |
3270 | no_cache=0 |
3271 | # Check whether --enable-sockets or --disable-sockets was given. | |
3272 | if test "${enable_sockets+set}" = set; then | |
3273 | enableval="$enable_sockets" | |
8284b0c5 | 3274 | |
10f2d63a VZ |
3275 | if test "$enableval" = yes; then |
3276 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3277 | else | |
3278 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3279 | fi | |
8284b0c5 | 3280 | |
10f2d63a | 3281 | else |
8284b0c5 | 3282 | |
10f2d63a VZ |
3283 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3284 | if test "x$LINE" != x ; then | |
3285 | eval "DEFAULT_$LINE" | |
3286 | else | |
3287 | no_cache=1 | |
3288 | fi | |
3289 | ||
3290 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
8284b0c5 MB |
3291 | |
3292 | fi | |
10f2d63a VZ |
3293 | |
3294 | ||
3295 | eval "$ac_cv_use_sockets" | |
3296 | if test "$no_cache" != 1; then | |
3297 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3298 | fi | |
3299 | ||
3300 | if test "$wxUSE_SOCKETS" = yes; then | |
8284b0c5 | 3301 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3302 | else |
8284b0c5 | 3303 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3304 | fi |
8284b0c5 MB |
3305 | |
3306 | ||
52127426 | 3307 | |
8284b0c5 MB |
3308 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 |
3309 | echo "configure:3310: checking for --enable-ipc" >&5 | |
10f2d63a | 3310 | no_cache=0 |
eb4efbdc VZ |
3311 | # Check whether --enable-ipc or --disable-ipc was given. |
3312 | if test "${enable_ipc+set}" = set; then | |
3313 | enableval="$enable_ipc" | |
8284b0c5 | 3314 | |
10f2d63a | 3315 | if test "$enableval" = yes; then |
eb4efbdc | 3316 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3317 | else |
eb4efbdc | 3318 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3319 | fi |
8284b0c5 | 3320 | |
10f2d63a | 3321 | else |
8284b0c5 | 3322 | |
eb4efbdc | 3323 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3324 | if test "x$LINE" != x ; then |
3325 | eval "DEFAULT_$LINE" | |
3326 | else | |
3327 | no_cache=1 | |
3328 | fi | |
3329 | ||
eb4efbdc | 3330 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
8284b0c5 MB |
3331 | |
3332 | fi | |
10f2d63a VZ |
3333 | |
3334 | ||
eb4efbdc | 3335 | eval "$ac_cv_use_ipc" |
10f2d63a | 3336 | if test "$no_cache" != 1; then |
eb4efbdc | 3337 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3338 | fi |
3339 | ||
eb4efbdc | 3340 | if test "$wxUSE_IPC" = yes; then |
8284b0c5 | 3341 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3342 | else |
8284b0c5 | 3343 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3344 | fi |
8284b0c5 | 3345 | |
52127426 | 3346 | |
8284b0c5 MB |
3347 | |
3348 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 | |
3349 | echo "configure:3350: checking for --enable-cmdline" >&5 | |
1e6feb95 VZ |
3350 | no_cache=0 |
3351 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3352 | if test "${enable_cmdline+set}" = set; then | |
3353 | enableval="$enable_cmdline" | |
8284b0c5 | 3354 | |
1e6feb95 VZ |
3355 | if test "$enableval" = yes; then |
3356 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3357 | else | |
3358 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3359 | fi | |
8284b0c5 | 3360 | |
1e6feb95 | 3361 | else |
8284b0c5 | 3362 | |
1e6feb95 VZ |
3363 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
3364 | if test "x$LINE" != x ; then | |
3365 | eval "DEFAULT_$LINE" | |
3366 | else | |
3367 | no_cache=1 | |
3368 | fi | |
3369 | ||
3370 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
8284b0c5 MB |
3371 | |
3372 | fi | |
1e6feb95 VZ |
3373 | |
3374 | ||
3375 | eval "$ac_cv_use_cmdline" | |
3376 | if test "$no_cache" != 1; then | |
3377 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3378 | fi | |
3379 | ||
3380 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
8284b0c5 | 3381 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3382 | else |
8284b0c5 | 3383 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3384 | fi |
8284b0c5 | 3385 | |
1e6feb95 | 3386 | |
8284b0c5 MB |
3387 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 |
3388 | echo "configure:3389: checking for --enable-datetime" >&5 | |
1e6feb95 VZ |
3389 | no_cache=0 |
3390 | # Check whether --enable-datetime or --disable-datetime was given. | |
3391 | if test "${enable_datetime+set}" = set; then | |
3392 | enableval="$enable_datetime" | |
8284b0c5 | 3393 | |
1e6feb95 VZ |
3394 | if test "$enableval" = yes; then |
3395 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3396 | else | |
3397 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3398 | fi | |
8284b0c5 | 3399 | |
1e6feb95 | 3400 | else |
8284b0c5 | 3401 | |
1e6feb95 VZ |
3402 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
3403 | if test "x$LINE" != x ; then | |
3404 | eval "DEFAULT_$LINE" | |
3405 | else | |
3406 | no_cache=1 | |
3407 | fi | |
3408 | ||
3409 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
8284b0c5 MB |
3410 | |
3411 | fi | |
1e6feb95 VZ |
3412 | |
3413 | ||
3414 | eval "$ac_cv_use_datetime" | |
3415 | if test "$no_cache" != 1; then | |
3416 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3417 | fi | |
3418 | ||
3419 | if test "$wxUSE_DATETIME" = yes; then | |
8284b0c5 | 3420 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3421 | else |
8284b0c5 | 3422 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3423 | fi |
8284b0c5 | 3424 | |
1e6feb95 | 3425 | |
8284b0c5 MB |
3426 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 |
3427 | echo "configure:3428: checking for --enable-timedate" >&5 | |
1e6feb95 VZ |
3428 | no_cache=0 |
3429 | # Check whether --enable-timedate or --disable-timedate was given. | |
3430 | if test "${enable_timedate+set}" = set; then | |
3431 | enableval="$enable_timedate" | |
8284b0c5 | 3432 | |
1e6feb95 VZ |
3433 | if test "$enableval" = yes; then |
3434 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3435 | else | |
3436 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3437 | fi | |
8284b0c5 | 3438 | |
1e6feb95 | 3439 | else |
8284b0c5 | 3440 | |
1e6feb95 VZ |
3441 | LINE=`grep "wxUSE_TIMEDATE" ${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_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
8284b0c5 MB |
3449 | |
3450 | fi | |
1e6feb95 VZ |
3451 | |
3452 | ||
3453 | eval "$ac_cv_use_timedate" | |
3454 | if test "$no_cache" != 1; then | |
3455 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3456 | fi | |
3457 | ||
3458 | if test "$wxUSE_TIMEDATE" = yes; then | |
8284b0c5 | 3459 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3460 | else |
8284b0c5 | 3461 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3462 | fi |
8284b0c5 | 3463 | |
1e6feb95 | 3464 | |
8284b0c5 MB |
3465 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 |
3466 | echo "configure:3467: checking for --enable-stopwatch" >&5 | |
1e6feb95 VZ |
3467 | no_cache=0 |
3468 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3469 | if test "${enable_stopwatch+set}" = set; then | |
3470 | enableval="$enable_stopwatch" | |
8284b0c5 | 3471 | |
1e6feb95 VZ |
3472 | if test "$enableval" = yes; then |
3473 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3474 | else | |
3475 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3476 | fi | |
8284b0c5 | 3477 | |
1e6feb95 | 3478 | else |
8284b0c5 | 3479 | |
1e6feb95 VZ |
3480 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
3481 | if test "x$LINE" != x ; then | |
3482 | eval "DEFAULT_$LINE" | |
3483 | else | |
3484 | no_cache=1 | |
3485 | fi | |
3486 | ||
3487 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
8284b0c5 MB |
3488 | |
3489 | fi | |
1e6feb95 VZ |
3490 | |
3491 | ||
3492 | eval "$ac_cv_use_stopwatch" | |
3493 | if test "$no_cache" != 1; then | |
3494 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3495 | fi | |
3496 | ||
3497 | if test "$wxUSE_STOPWATCH" = yes; then | |
8284b0c5 | 3498 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3499 | else |
8284b0c5 | 3500 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3501 | fi |
8284b0c5 | 3502 | |
1e6feb95 | 3503 | |
8284b0c5 MB |
3504 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
3505 | echo "configure:3506: checking for --enable-dialupman" >&5 | |
10f2d63a | 3506 | no_cache=0 |
eb4efbdc VZ |
3507 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3508 | if test "${enable_dialupman+set}" = set; then | |
3509 | enableval="$enable_dialupman" | |
8284b0c5 | 3510 | |
10f2d63a | 3511 | if test "$enableval" = yes; then |
eb4efbdc | 3512 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3513 | else |
eb4efbdc | 3514 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3515 | fi |
8284b0c5 | 3516 | |
10f2d63a | 3517 | else |
8284b0c5 | 3518 | |
eb4efbdc | 3519 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3520 | if test "x$LINE" != x ; then |
3521 | eval "DEFAULT_$LINE" | |
3522 | else | |
3523 | no_cache=1 | |
3524 | fi | |
3525 | ||
eb4efbdc | 3526 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
8284b0c5 MB |
3527 | |
3528 | fi | |
10f2d63a VZ |
3529 | |
3530 | ||
eb4efbdc | 3531 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3532 | if test "$no_cache" != 1; then |
eb4efbdc | 3533 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3534 | fi |
3535 | ||
eb4efbdc | 3536 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
8284b0c5 | 3537 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3538 | else |
8284b0c5 | 3539 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3540 | fi |
8284b0c5 | 3541 | |
10f2d63a | 3542 | |
8284b0c5 MB |
3543 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
3544 | echo "configure:3545: checking for --enable-apple_ieee" >&5 | |
10f2d63a VZ |
3545 | no_cache=0 |
3546 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3547 | if test "${enable_apple_ieee+set}" = set; then | |
3548 | enableval="$enable_apple_ieee" | |
8284b0c5 | 3549 | |
10f2d63a VZ |
3550 | if test "$enableval" = yes; then |
3551 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3552 | else | |
3553 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3554 | fi | |
8284b0c5 | 3555 | |
10f2d63a | 3556 | else |
8284b0c5 | 3557 | |
10f2d63a VZ |
3558 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3559 | if test "x$LINE" != x ; then | |
3560 | eval "DEFAULT_$LINE" | |
3561 | else | |
3562 | no_cache=1 | |
3563 | fi | |
3564 | ||
3565 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
8284b0c5 MB |
3566 | |
3567 | fi | |
10f2d63a VZ |
3568 | |
3569 | ||
3570 | eval "$ac_cv_use_apple_ieee" | |
3571 | if test "$no_cache" != 1; then | |
3572 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3573 | fi | |
3574 | ||
3575 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
8284b0c5 | 3576 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3577 | else |
8284b0c5 | 3578 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3579 | fi |
8284b0c5 | 3580 | |
10f2d63a | 3581 | |
8284b0c5 MB |
3582 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
3583 | echo "configure:3584: checking for --enable-timer" >&5 | |
10f2d63a | 3584 | no_cache=0 |
1e6feb95 VZ |
3585 | # Check whether --enable-timer or --disable-timer was given. |
3586 | if test "${enable_timer+set}" = set; then | |
3587 | enableval="$enable_timer" | |
8284b0c5 | 3588 | |
10f2d63a | 3589 | if test "$enableval" = yes; then |
1e6feb95 | 3590 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3591 | else |
1e6feb95 | 3592 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3593 | fi |
8284b0c5 | 3594 | |
10f2d63a | 3595 | else |
8284b0c5 | 3596 | |
1e6feb95 | 3597 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3598 | if test "x$LINE" != x ; then |
3599 | eval "DEFAULT_$LINE" | |
3600 | else | |
3601 | no_cache=1 | |
3602 | fi | |
3603 | ||
1e6feb95 | 3604 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
8284b0c5 MB |
3605 | |
3606 | fi | |
10f2d63a VZ |
3607 | |
3608 | ||
1e6feb95 | 3609 | eval "$ac_cv_use_timer" |
10f2d63a | 3610 | if test "$no_cache" != 1; then |
1e6feb95 | 3611 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3612 | fi |
3613 | ||
1e6feb95 | 3614 | if test "$wxUSE_TIMER" = yes; then |
8284b0c5 | 3615 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3616 | else |
8284b0c5 | 3617 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3618 | fi |
8284b0c5 | 3619 | |
10f2d63a | 3620 | |
8284b0c5 MB |
3621 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
3622 | echo "configure:3623: checking for --enable-wave" >&5 | |
10f2d63a VZ |
3623 | no_cache=0 |
3624 | # Check whether --enable-wave or --disable-wave was given. | |
3625 | if test "${enable_wave+set}" = set; then | |
3626 | enableval="$enable_wave" | |
8284b0c5 | 3627 | |
10f2d63a VZ |
3628 | if test "$enableval" = yes; then |
3629 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3630 | else | |
3631 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3632 | fi | |
8284b0c5 | 3633 | |
10f2d63a | 3634 | else |
8284b0c5 | 3635 | |
10f2d63a VZ |
3636 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3637 | if test "x$LINE" != x ; then | |
3638 | eval "DEFAULT_$LINE" | |
3639 | else | |
3640 | no_cache=1 | |
3641 | fi | |
3642 | ||
3643 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
8284b0c5 MB |
3644 | |
3645 | fi | |
10f2d63a VZ |
3646 | |
3647 | ||
3648 | eval "$ac_cv_use_wave" | |
3649 | if test "$no_cache" != 1; then | |
3650 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3651 | fi | |
3652 | ||
3653 | if test "$wxUSE_WAVE" = yes; then | |
8284b0c5 | 3654 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3655 | else |
8284b0c5 | 3656 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3657 | fi |
8284b0c5 | 3658 | |
10f2d63a | 3659 | |
8284b0c5 MB |
3660 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
3661 | echo "configure:3662: checking for --enable-fraction" >&5 | |
10f2d63a VZ |
3662 | no_cache=0 |
3663 | # Check whether --enable-fraction or --disable-fraction was given. | |
3664 | if test "${enable_fraction+set}" = set; then | |
3665 | enableval="$enable_fraction" | |
8284b0c5 | 3666 | |
10f2d63a VZ |
3667 | if test "$enableval" = yes; then |
3668 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3669 | else | |
3670 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3671 | fi | |
8284b0c5 | 3672 | |
10f2d63a | 3673 | else |
8284b0c5 | 3674 | |
10f2d63a VZ |
3675 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3676 | if test "x$LINE" != x ; then | |
3677 | eval "DEFAULT_$LINE" | |
3678 | else | |
3679 | no_cache=1 | |
3680 | fi | |
3681 | ||
3682 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
8284b0c5 MB |
3683 | |
3684 | fi | |
10f2d63a VZ |
3685 | |
3686 | ||
3687 | eval "$ac_cv_use_fraction" | |
3688 | if test "$no_cache" != 1; then | |
3689 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3690 | fi | |
3691 | ||
3692 | if test "$wxUSE_FRACTION" = yes; then | |
8284b0c5 | 3693 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3694 | else |
8284b0c5 | 3695 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3696 | fi |
8284b0c5 | 3697 | |
10f2d63a | 3698 | |
8284b0c5 MB |
3699 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
3700 | echo "configure:3701: checking for --enable-dynlib" >&5 | |
10f2d63a VZ |
3701 | no_cache=0 |
3702 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3703 | if test "${enable_dynlib+set}" = set; then | |
3704 | enableval="$enable_dynlib" | |
8284b0c5 | 3705 | |
10f2d63a VZ |
3706 | if test "$enableval" = yes; then |
3707 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3708 | else | |
3709 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3710 | fi | |
8284b0c5 | 3711 | |
10f2d63a | 3712 | else |
8284b0c5 | 3713 | |
10f2d63a VZ |
3714 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3715 | if test "x$LINE" != x ; then | |
3716 | eval "DEFAULT_$LINE" | |
3717 | else | |
3718 | no_cache=1 | |
3719 | fi | |
3720 | ||
3721 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
8284b0c5 MB |
3722 | |
3723 | fi | |
10f2d63a VZ |
3724 | |
3725 | ||
3726 | eval "$ac_cv_use_dynlib" | |
3727 | if test "$no_cache" != 1; then | |
3728 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3729 | fi | |
3730 | ||
3731 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
8284b0c5 | 3732 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3733 | else |
8284b0c5 | 3734 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3735 | fi |
8284b0c5 | 3736 | |
10f2d63a | 3737 | |
8284b0c5 MB |
3738 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 |
3739 | echo "configure:3740: checking for --enable-dynamicloader" >&5 | |
0b9ab0bd RL |
3740 | no_cache=0 |
3741 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3742 | if test "${enable_dynamicloader+set}" = set; then | |
3743 | enableval="$enable_dynamicloader" | |
8284b0c5 | 3744 | |
0b9ab0bd RL |
3745 | if test "$enableval" = yes; then |
3746 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3747 | else | |
3748 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3749 | fi | |
8284b0c5 | 3750 | |
0b9ab0bd | 3751 | else |
8284b0c5 | 3752 | |
0b9ab0bd RL |
3753 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
3754 | if test "x$LINE" != x ; then | |
3755 | eval "DEFAULT_$LINE" | |
3756 | else | |
3757 | no_cache=1 | |
3758 | fi | |
3759 | ||
3760 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
8284b0c5 MB |
3761 | |
3762 | fi | |
0b9ab0bd RL |
3763 | |
3764 | ||
3765 | eval "$ac_cv_use_dynamicloader" | |
3766 | if test "$no_cache" != 1; then | |
3767 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3768 | fi | |
3769 | ||
3770 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
8284b0c5 | 3771 | echo "$ac_t""yes" 1>&6 |
0b9ab0bd | 3772 | else |
8284b0c5 | 3773 | echo "$ac_t""no" 1>&6 |
0b9ab0bd | 3774 | fi |
8284b0c5 | 3775 | |
0b9ab0bd | 3776 | |
8284b0c5 MB |
3777 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
3778 | echo "configure:3779: checking for --enable-longlong" >&5 | |
10f2d63a VZ |
3779 | no_cache=0 |
3780 | # Check whether --enable-longlong or --disable-longlong was given. | |
3781 | if test "${enable_longlong+set}" = set; then | |
3782 | enableval="$enable_longlong" | |
8284b0c5 | 3783 | |
10f2d63a VZ |
3784 | if test "$enableval" = yes; then |
3785 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3786 | else | |
3787 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3788 | fi | |
8284b0c5 | 3789 | |
10f2d63a | 3790 | else |
8284b0c5 | 3791 | |
10f2d63a VZ |
3792 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3793 | if test "x$LINE" != x ; then | |
3794 | eval "DEFAULT_$LINE" | |
3795 | else | |
3796 | no_cache=1 | |
3797 | fi | |
3798 | ||
3799 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
8284b0c5 MB |
3800 | |
3801 | fi | |
10f2d63a VZ |
3802 | |
3803 | ||
3804 | eval "$ac_cv_use_longlong" | |
3805 | if test "$no_cache" != 1; then | |
3806 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3807 | fi | |
3808 | ||
3809 | if test "$wxUSE_LONGLONG" = yes; then | |
8284b0c5 | 3810 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3811 | else |
8284b0c5 | 3812 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3813 | fi |
8284b0c5 | 3814 | |
10f2d63a | 3815 | |
8284b0c5 MB |
3816 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
3817 | echo "configure:3818: checking for --enable-geometry" >&5 | |
e8f65ba6 RR |
3818 | no_cache=0 |
3819 | # Check whether --enable-geometry or --disable-geometry was given. | |
3820 | if test "${enable_geometry+set}" = set; then | |
3821 | enableval="$enable_geometry" | |
8284b0c5 | 3822 | |
e8f65ba6 RR |
3823 | if test "$enableval" = yes; then |
3824 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3825 | else | |
3826 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3827 | fi | |
8284b0c5 | 3828 | |
e8f65ba6 | 3829 | else |
8284b0c5 | 3830 | |
e8f65ba6 RR |
3831 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3832 | if test "x$LINE" != x ; then | |
3833 | eval "DEFAULT_$LINE" | |
3834 | else | |
3835 | no_cache=1 | |
3836 | fi | |
3837 | ||
3838 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
8284b0c5 MB |
3839 | |
3840 | fi | |
e8f65ba6 RR |
3841 | |
3842 | ||
3843 | eval "$ac_cv_use_geometry" | |
3844 | if test "$no_cache" != 1; then | |
3845 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3846 | fi | |
3847 | ||
3848 | if test "$wxUSE_GEOMETRY" = yes; then | |
8284b0c5 | 3849 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3850 | else |
8284b0c5 | 3851 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3852 | fi |
8284b0c5 | 3853 | |
e8f65ba6 | 3854 | |
8284b0c5 MB |
3855 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
3856 | echo "configure:3857: checking for --enable-log" >&5 | |
10f2d63a VZ |
3857 | no_cache=0 |
3858 | # Check whether --enable-log or --disable-log was given. | |
3859 | if test "${enable_log+set}" = set; then | |
3860 | enableval="$enable_log" | |
8284b0c5 | 3861 | |
10f2d63a VZ |
3862 | if test "$enableval" = yes; then |
3863 | ac_cv_use_log='wxUSE_LOG=yes' | |
3864 | else | |
3865 | ac_cv_use_log='wxUSE_LOG=no' | |
3866 | fi | |
8284b0c5 | 3867 | |
10f2d63a | 3868 | else |
8284b0c5 | 3869 | |
10f2d63a VZ |
3870 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3871 | if test "x$LINE" != x ; then | |
3872 | eval "DEFAULT_$LINE" | |
3873 | else | |
3874 | no_cache=1 | |
3875 | fi | |
3876 | ||
3877 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
8284b0c5 MB |
3878 | |
3879 | fi | |
10f2d63a VZ |
3880 | |
3881 | ||
3882 | eval "$ac_cv_use_log" | |
3883 | if test "$no_cache" != 1; then | |
3884 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3885 | fi | |
3886 | ||
3887 | if test "$wxUSE_LOG" = yes; then | |
8284b0c5 | 3888 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3889 | else |
8284b0c5 | 3890 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3891 | fi |
8284b0c5 | 3892 | |
10f2d63a | 3893 | |
8284b0c5 MB |
3894 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
3895 | echo "configure:3896: checking for --enable-streams" >&5 | |
10f2d63a VZ |
3896 | no_cache=0 |
3897 | # Check whether --enable-streams or --disable-streams was given. | |
3898 | if test "${enable_streams+set}" = set; then | |
3899 | enableval="$enable_streams" | |
8284b0c5 | 3900 | |
10f2d63a VZ |
3901 | if test "$enableval" = yes; then |
3902 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3903 | else | |
3904 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3905 | fi | |
8284b0c5 | 3906 | |
10f2d63a | 3907 | else |
8284b0c5 | 3908 | |
10f2d63a VZ |
3909 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3910 | if test "x$LINE" != x ; then | |
3911 | eval "DEFAULT_$LINE" | |
3912 | else | |
3913 | no_cache=1 | |
3914 | fi | |
3915 | ||
3916 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
8284b0c5 MB |
3917 | |
3918 | fi | |
10f2d63a VZ |
3919 | |
3920 | ||
3921 | eval "$ac_cv_use_streams" | |
3922 | if test "$no_cache" != 1; then | |
3923 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3924 | fi | |
3925 | ||
3926 | if test "$wxUSE_STREAMS" = yes; then | |
8284b0c5 | 3927 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3928 | else |
8284b0c5 | 3929 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3930 | fi |
8284b0c5 | 3931 | |
10f2d63a | 3932 | |
8284b0c5 MB |
3933 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
3934 | echo "configure:3935: checking for --enable-file" >&5 | |
10f2d63a VZ |
3935 | no_cache=0 |
3936 | # Check whether --enable-file or --disable-file was given. | |
3937 | if test "${enable_file+set}" = set; then | |
3938 | enableval="$enable_file" | |
8284b0c5 | 3939 | |
10f2d63a VZ |
3940 | if test "$enableval" = yes; then |
3941 | ac_cv_use_file='wxUSE_FILE=yes' | |
3942 | else | |
3943 | ac_cv_use_file='wxUSE_FILE=no' | |
3944 | fi | |
8284b0c5 | 3945 | |
10f2d63a | 3946 | else |
8284b0c5 | 3947 | |
10f2d63a VZ |
3948 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3949 | if test "x$LINE" != x ; then | |
3950 | eval "DEFAULT_$LINE" | |
3951 | else | |
3952 | no_cache=1 | |
3953 | fi | |
3954 | ||
3955 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
8284b0c5 MB |
3956 | |
3957 | fi | |
10f2d63a VZ |
3958 | |
3959 | ||
3960 | eval "$ac_cv_use_file" | |
3961 | if test "$no_cache" != 1; then | |
3962 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3963 | fi | |
3964 | ||
3965 | if test "$wxUSE_FILE" = yes; then | |
8284b0c5 | 3966 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3967 | else |
8284b0c5 | 3968 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3969 | fi |
8284b0c5 | 3970 | |
10f2d63a | 3971 | |
8284b0c5 MB |
3972 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
3973 | echo "configure:3974: checking for --enable-ffile" >&5 | |
10f2d63a | 3974 | no_cache=0 |
1e6feb95 VZ |
3975 | # Check whether --enable-ffile or --disable-ffile was given. |
3976 | if test "${enable_ffile+set}" = set; then | |
3977 | enableval="$enable_ffile" | |
8284b0c5 | 3978 | |
10f2d63a | 3979 | if test "$enableval" = yes; then |
1e6feb95 | 3980 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3981 | else |
1e6feb95 | 3982 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3983 | fi |
8284b0c5 | 3984 | |
10f2d63a | 3985 | else |
8284b0c5 | 3986 | |
1e6feb95 | 3987 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3988 | if test "x$LINE" != x ; then |
3989 | eval "DEFAULT_$LINE" | |
3990 | else | |
3991 | no_cache=1 | |
3992 | fi | |
3993 | ||
1e6feb95 | 3994 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
8284b0c5 MB |
3995 | |
3996 | fi | |
10f2d63a VZ |
3997 | |
3998 | ||
1e6feb95 | 3999 | eval "$ac_cv_use_ffile" |
10f2d63a | 4000 | if test "$no_cache" != 1; then |
1e6feb95 | 4001 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4002 | fi |
4003 | ||
1e6feb95 | 4004 | if test "$wxUSE_FFILE" = yes; then |
8284b0c5 | 4005 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4006 | else |
8284b0c5 | 4007 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4008 | fi |
8284b0c5 | 4009 | |
10f2d63a | 4010 | |
8284b0c5 MB |
4011 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
4012 | echo "configure:4013: checking for --enable-textbuf" >&5 | |
a3a584a7 VZ |
4013 | no_cache=0 |
4014 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4015 | if test "${enable_textbuf+set}" = set; then | |
4016 | enableval="$enable_textbuf" | |
8284b0c5 | 4017 | |
a3a584a7 VZ |
4018 | if test "$enableval" = yes; then |
4019 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4020 | else | |
4021 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4022 | fi | |
8284b0c5 | 4023 | |
a3a584a7 | 4024 | else |
8284b0c5 | 4025 | |
a3a584a7 VZ |
4026 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4027 | if test "x$LINE" != x ; then | |
4028 | eval "DEFAULT_$LINE" | |
4029 | else | |
4030 | no_cache=1 | |
4031 | fi | |
4032 | ||
4033 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
8284b0c5 MB |
4034 | |
4035 | fi | |
a3a584a7 VZ |
4036 | |
4037 | ||
4038 | eval "$ac_cv_use_textbuf" | |
4039 | if test "$no_cache" != 1; then | |
4040 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4041 | fi | |
4042 | ||
4043 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
8284b0c5 | 4044 | echo "$ac_t""yes" 1>&6 |
a3a584a7 | 4045 | else |
8284b0c5 | 4046 | echo "$ac_t""no" 1>&6 |
a3a584a7 | 4047 | fi |
8284b0c5 | 4048 | |
a3a584a7 | 4049 | |
8284b0c5 MB |
4050 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
4051 | echo "configure:4052: checking for --enable-textfile" >&5 | |
10f2d63a | 4052 | no_cache=0 |
1e6feb95 VZ |
4053 | # Check whether --enable-textfile or --disable-textfile was given. |
4054 | if test "${enable_textfile+set}" = set; then | |
4055 | enableval="$enable_textfile" | |
8284b0c5 | 4056 | |
10f2d63a | 4057 | if test "$enableval" = yes; then |
1e6feb95 | 4058 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4059 | else |
1e6feb95 | 4060 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4061 | fi |
8284b0c5 | 4062 | |
10f2d63a | 4063 | else |
8284b0c5 | 4064 | |
1e6feb95 | 4065 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4066 | if test "x$LINE" != x ; then |
4067 | eval "DEFAULT_$LINE" | |
4068 | else | |
4069 | no_cache=1 | |
4070 | fi | |
4071 | ||
1e6feb95 | 4072 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
8284b0c5 MB |
4073 | |
4074 | fi | |
10f2d63a VZ |
4075 | |
4076 | ||
1e6feb95 | 4077 | eval "$ac_cv_use_textfile" |
10f2d63a | 4078 | if test "$no_cache" != 1; then |
1e6feb95 | 4079 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4080 | fi |
4081 | ||
1e6feb95 | 4082 | if test "$wxUSE_TEXTFILE" = yes; then |
8284b0c5 | 4083 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4084 | else |
8284b0c5 | 4085 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4086 | fi |
8284b0c5 | 4087 | |
10f2d63a | 4088 | |
8284b0c5 MB |
4089 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
4090 | echo "configure:4091: checking for --enable-fontmap" >&5 | |
10f2d63a | 4091 | no_cache=0 |
1e6feb95 VZ |
4092 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4093 | if test "${enable_fontmap+set}" = set; then | |
4094 | enableval="$enable_fontmap" | |
8284b0c5 | 4095 | |
10f2d63a | 4096 | if test "$enableval" = yes; then |
1e6feb95 | 4097 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4098 | else |
1e6feb95 | 4099 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4100 | fi |
8284b0c5 | 4101 | |
10f2d63a | 4102 | else |
8284b0c5 | 4103 | |
1e6feb95 | 4104 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4105 | if test "x$LINE" != x ; then |
4106 | eval "DEFAULT_$LINE" | |
4107 | else | |
4108 | no_cache=1 | |
4109 | fi | |
4110 | ||
1e6feb95 | 4111 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
8284b0c5 MB |
4112 | |
4113 | fi | |
10f2d63a VZ |
4114 | |
4115 | ||
1e6feb95 | 4116 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4117 | if test "$no_cache" != 1; then |
1e6feb95 | 4118 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4119 | fi |
4120 | ||
1e6feb95 | 4121 | if test "$wxUSE_FONTMAP" = yes; then |
8284b0c5 | 4122 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4123 | else |
8284b0c5 | 4124 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4125 | fi |
8284b0c5 | 4126 | |
10f2d63a | 4127 | |
8284b0c5 MB |
4128 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
4129 | echo "configure:4130: checking for --enable-unicode" >&5 | |
10f2d63a | 4130 | no_cache=0 |
1e6feb95 VZ |
4131 | # Check whether --enable-unicode or --disable-unicode was given. |
4132 | if test "${enable_unicode+set}" = set; then | |
4133 | enableval="$enable_unicode" | |
8284b0c5 | 4134 | |
1e6feb95 VZ |
4135 | if test "$enableval" = yes; then |
4136 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4137 | else | |
4138 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4139 | fi | |
8284b0c5 | 4140 | |
1e6feb95 | 4141 | else |
8284b0c5 | 4142 | |
1e6feb95 VZ |
4143 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4144 | if test "x$LINE" != x ; then | |
4145 | eval "DEFAULT_$LINE" | |
4146 | else | |
4147 | no_cache=1 | |
4148 | fi | |
4149 | ||
4150 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
8284b0c5 MB |
4151 | |
4152 | fi | |
1e6feb95 VZ |
4153 | |
4154 | ||
4155 | eval "$ac_cv_use_unicode" | |
4156 | if test "$no_cache" != 1; then | |
4157 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4158 | fi | |
4159 | ||
4160 | if test "$wxUSE_UNICODE" = yes; then | |
8284b0c5 | 4161 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4162 | else |
8284b0c5 | 4163 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4164 | fi |
8284b0c5 | 4165 | |
1e6feb95 | 4166 | |
8284b0c5 MB |
4167 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 |
4168 | echo "configure:4169: checking for --enable-mslu" >&5 | |
a72a4bfa VS |
4169 | no_cache=0 |
4170 | # Check whether --enable-mslu or --disable-mslu was given. | |
4171 | if test "${enable_mslu+set}" = set; then | |
4172 | enableval="$enable_mslu" | |
8284b0c5 | 4173 | |
a72a4bfa VS |
4174 | if test "$enableval" = yes; then |
4175 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4176 | else | |
4177 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4178 | fi | |
8284b0c5 | 4179 | |
a72a4bfa | 4180 | else |
8284b0c5 | 4181 | |
a72a4bfa VS |
4182 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
4183 | if test "x$LINE" != x ; then | |
4184 | eval "DEFAULT_$LINE" | |
4185 | else | |
4186 | no_cache=1 | |
4187 | fi | |
4188 | ||
4189 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
8284b0c5 MB |
4190 | |
4191 | fi | |
a72a4bfa VS |
4192 | |
4193 | ||
4194 | eval "$ac_cv_use_mslu" | |
4195 | if test "$no_cache" != 1; then | |
4196 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4197 | fi | |
4198 | ||
4199 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
8284b0c5 | 4200 | echo "$ac_t""yes" 1>&6 |
a72a4bfa | 4201 | else |
8284b0c5 | 4202 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 4203 | fi |
8284b0c5 | 4204 | |
a72a4bfa | 4205 | |
8284b0c5 MB |
4206 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
4207 | echo "configure:4208: checking for --enable-wxprintfv" >&5 | |
1e6feb95 VZ |
4208 | no_cache=0 |
4209 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4210 | if test "${enable_wxprintfv+set}" = set; then | |
4211 | enableval="$enable_wxprintfv" | |
8284b0c5 | 4212 | |
1e6feb95 | 4213 | if test "$enableval" = yes; then |
10f2d63a VZ |
4214 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4215 | else | |
4216 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4217 | fi | |
8284b0c5 | 4218 | |
10f2d63a | 4219 | else |
8284b0c5 | 4220 | |
10f2d63a VZ |
4221 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4222 | if test "x$LINE" != x ; then | |
4223 | eval "DEFAULT_$LINE" | |
4224 | else | |
4225 | no_cache=1 | |
4226 | fi | |
4227 | ||
4228 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
8284b0c5 MB |
4229 | |
4230 | fi | |
10f2d63a VZ |
4231 | |
4232 | ||
4233 | eval "$ac_cv_use_wxprintfv" | |
4234 | if test "$no_cache" != 1; then | |
4235 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4236 | fi | |
4237 | ||
4238 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
8284b0c5 | 4239 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4240 | else |
8284b0c5 | 4241 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4242 | fi |
8284b0c5 | 4243 | |
10f2d63a | 4244 | |
8284b0c5 MB |
4245 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
4246 | echo "configure:4247: checking for --enable-std_iostreams" >&5 | |
10f2d63a VZ |
4247 | no_cache=0 |
4248 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4249 | if test "${enable_std_iostreams+set}" = set; then | |
4250 | enableval="$enable_std_iostreams" | |
8284b0c5 | 4251 | |
10f2d63a VZ |
4252 | if test "$enableval" = yes; then |
4253 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4254 | else | |
4255 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4256 | fi | |
8284b0c5 | 4257 | |
10f2d63a | 4258 | else |
8284b0c5 | 4259 | |
10f2d63a VZ |
4260 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4261 | if test "x$LINE" != x ; then | |
4262 | eval "DEFAULT_$LINE" | |
4263 | else | |
4264 | no_cache=1 | |
4265 | fi | |
4266 | ||
4267 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
8284b0c5 MB |
4268 | |
4269 | fi | |
10f2d63a VZ |
4270 | |
4271 | ||
4272 | eval "$ac_cv_use_std_iostreams" | |
4273 | if test "$no_cache" != 1; then | |
4274 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4275 | fi | |
4276 | ||
4277 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
8284b0c5 | 4278 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4279 | else |
8284b0c5 | 4280 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4281 | fi |
8284b0c5 | 4282 | |
10f2d63a | 4283 | |
8284b0c5 MB |
4284 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
4285 | echo "configure:4286: checking for --enable-filesystem" >&5 | |
24528b0c VS |
4286 | no_cache=0 |
4287 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4288 | if test "${enable_filesystem+set}" = set; then | |
4289 | enableval="$enable_filesystem" | |
8284b0c5 | 4290 | |
24528b0c VS |
4291 | if test "$enableval" = yes; then |
4292 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4293 | else | |
4294 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4295 | fi | |
8284b0c5 | 4296 | |
24528b0c | 4297 | else |
8284b0c5 | 4298 | |
24528b0c VS |
4299 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4300 | if test "x$LINE" != x ; then | |
4301 | eval "DEFAULT_$LINE" | |
4302 | else | |
4303 | no_cache=1 | |
4304 | fi | |
4305 | ||
4306 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
8284b0c5 MB |
4307 | |
4308 | fi | |
24528b0c VS |
4309 | |
4310 | ||
4311 | eval "$ac_cv_use_filesystem" | |
4312 | if test "$no_cache" != 1; then | |
4313 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4314 | fi | |
4315 | ||
4316 | if test "$wxUSE_FILESYSTEM" = yes; then | |
8284b0c5 | 4317 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4318 | else |
8284b0c5 | 4319 | echo "$ac_t""no" 1>&6 |
24528b0c | 4320 | fi |
8284b0c5 | 4321 | |
24528b0c | 4322 | |
8284b0c5 MB |
4323 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
4324 | echo "configure:4325: checking for --enable-fs_inet" >&5 | |
10f2d63a VZ |
4325 | no_cache=0 |
4326 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4327 | if test "${enable_fs_inet+set}" = set; then | |
4328 | enableval="$enable_fs_inet" | |
8284b0c5 | 4329 | |
10f2d63a VZ |
4330 | if test "$enableval" = yes; then |
4331 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4332 | else | |
4333 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4334 | fi | |
8284b0c5 | 4335 | |
10f2d63a | 4336 | else |
8284b0c5 | 4337 | |
10f2d63a VZ |
4338 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4339 | if test "x$LINE" != x ; then | |
4340 | eval "DEFAULT_$LINE" | |
4341 | else | |
4342 | no_cache=1 | |
4343 | fi | |
4344 | ||
4345 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
8284b0c5 MB |
4346 | |
4347 | fi | |
10f2d63a VZ |
4348 | |
4349 | ||
4350 | eval "$ac_cv_use_fs_inet" | |
4351 | if test "$no_cache" != 1; then | |
4352 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4353 | fi | |
4354 | ||
4355 | if test "$wxUSE_FS_INET" = yes; then | |
8284b0c5 | 4356 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4357 | else |
8284b0c5 | 4358 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4359 | fi |
8284b0c5 | 4360 | |
10f2d63a | 4361 | |
8284b0c5 MB |
4362 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
4363 | echo "configure:4364: checking for --enable-fs_zip" >&5 | |
10f2d63a VZ |
4364 | no_cache=0 |
4365 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4366 | if test "${enable_fs_zip+set}" = set; then | |
4367 | enableval="$enable_fs_zip" | |
8284b0c5 | 4368 | |
10f2d63a VZ |
4369 | if test "$enableval" = yes; then |
4370 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4371 | else | |
4372 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4373 | fi | |
8284b0c5 | 4374 | |
10f2d63a | 4375 | else |
8284b0c5 | 4376 | |
10f2d63a VZ |
4377 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4378 | if test "x$LINE" != x ; then | |
4379 | eval "DEFAULT_$LINE" | |
4380 | else | |
4381 | no_cache=1 | |
4382 | fi | |
4383 | ||
4384 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
8284b0c5 MB |
4385 | |
4386 | fi | |
10f2d63a VZ |
4387 | |
4388 | ||
4389 | eval "$ac_cv_use_fs_zip" | |
4390 | if test "$no_cache" != 1; then | |
4391 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4392 | fi | |
4393 | ||
4394 | if test "$wxUSE_FS_ZIP" = yes; then | |
8284b0c5 | 4395 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4396 | else |
8284b0c5 | 4397 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4398 | fi |
8284b0c5 | 4399 | |
10f2d63a | 4400 | |
8284b0c5 MB |
4401 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
4402 | echo "configure:4403: checking for --enable-zipstream" >&5 | |
10f2d63a VZ |
4403 | no_cache=0 |
4404 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4405 | if test "${enable_zipstream+set}" = set; then | |
4406 | enableval="$enable_zipstream" | |
8284b0c5 | 4407 | |
10f2d63a VZ |
4408 | if test "$enableval" = yes; then |
4409 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4410 | else | |
4411 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4412 | fi | |
8284b0c5 | 4413 | |
10f2d63a | 4414 | else |
8284b0c5 | 4415 | |
10f2d63a VZ |
4416 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4417 | if test "x$LINE" != x ; then | |
4418 | eval "DEFAULT_$LINE" | |
4419 | else | |
4420 | no_cache=1 | |
4421 | fi | |
4422 | ||
4423 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
8284b0c5 MB |
4424 | |
4425 | fi | |
10f2d63a VZ |
4426 | |
4427 | ||
4428 | eval "$ac_cv_use_zipstream" | |
4429 | if test "$no_cache" != 1; then | |
4430 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4431 | fi | |
4432 | ||
4433 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
8284b0c5 | 4434 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4435 | else |
8284b0c5 | 4436 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4437 | fi |
8284b0c5 MB |
4438 | |
4439 | ||
52127426 | 4440 | |
8284b0c5 MB |
4441 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 |
4442 | echo "configure:4443: checking for --enable-catch_segvs" >&5 | |
eb4efbdc VZ |
4443 | no_cache=0 |
4444 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4445 | if test "${enable_catch_segvs+set}" = set; then | |
4446 | enableval="$enable_catch_segvs" | |
8284b0c5 | 4447 | |
eb4efbdc VZ |
4448 | if test "$enableval" = yes; then |
4449 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4450 | else | |
4451 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4452 | fi | |
8284b0c5 | 4453 | |
eb4efbdc | 4454 | else |
8284b0c5 | 4455 | |
eb4efbdc VZ |
4456 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4457 | if test "x$LINE" != x ; then | |
4458 | eval "DEFAULT_$LINE" | |
4459 | else | |
4460 | no_cache=1 | |
4461 | fi | |
4462 | ||
4463 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
8284b0c5 MB |
4464 | |
4465 | fi | |
eb4efbdc VZ |
4466 | |
4467 | ||
4468 | eval "$ac_cv_use_catch_segvs" | |
4469 | if test "$no_cache" != 1; then | |
4470 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4471 | fi | |
4472 | ||
4473 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
8284b0c5 | 4474 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4475 | else |
8284b0c5 | 4476 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4477 | fi |
8284b0c5 | 4478 | |
eb4efbdc | 4479 | |
8284b0c5 MB |
4480 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
4481 | echo "configure:4482: checking for --enable-snglinst" >&5 | |
4f3c5f06 VZ |
4482 | no_cache=0 |
4483 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4484 | if test "${enable_snglinst+set}" = set; then | |
4485 | enableval="$enable_snglinst" | |
8284b0c5 | 4486 | |
4f3c5f06 VZ |
4487 | if test "$enableval" = yes; then |
4488 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4489 | else | |
4490 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4491 | fi | |
8284b0c5 | 4492 | |
4f3c5f06 | 4493 | else |
8284b0c5 | 4494 | |
4f3c5f06 VZ |
4495 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4496 | if test "x$LINE" != x ; then | |
4497 | eval "DEFAULT_$LINE" | |
4498 | else | |
4499 | no_cache=1 | |
4500 | fi | |
4501 | ||
4502 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
8284b0c5 MB |
4503 | |
4504 | fi | |
4f3c5f06 VZ |
4505 | |
4506 | ||
4507 | eval "$ac_cv_use_snglinst" | |
4508 | if test "$no_cache" != 1; then | |
4509 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4510 | fi | |
4511 | ||
4512 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
8284b0c5 | 4513 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4514 | else |
8284b0c5 | 4515 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4516 | fi |
8284b0c5 | 4517 | |
52127426 | 4518 | |
8284b0c5 MB |
4519 | |
4520 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 | |
4521 | echo "configure:4522: checking for --enable-mimetype" >&5 | |
1e6feb95 VZ |
4522 | no_cache=0 |
4523 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4524 | if test "${enable_mimetype+set}" = set; then | |
4525 | enableval="$enable_mimetype" | |
8284b0c5 | 4526 | |
1e6feb95 VZ |
4527 | if test "$enableval" = yes; then |
4528 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4529 | else | |
4530 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4531 | fi | |
8284b0c5 | 4532 | |
1e6feb95 | 4533 | else |
8284b0c5 | 4534 | |
1e6feb95 VZ |
4535 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
4536 | if test "x$LINE" != x ; then | |
4537 | eval "DEFAULT_$LINE" | |
4538 | else | |
4539 | no_cache=1 | |
4540 | fi | |
4541 | ||
4542 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
8284b0c5 MB |
4543 | |
4544 | fi | |
1e6feb95 VZ |
4545 | |
4546 | ||
4547 | eval "$ac_cv_use_mimetype" | |
4548 | if test "$no_cache" != 1; then | |
4549 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4550 | fi | |
4551 | ||
4552 | if test "$wxUSE_MIMETYPE" = yes; then | |
8284b0c5 | 4553 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4554 | else |
8284b0c5 | 4555 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4556 | fi |
8284b0c5 | 4557 | |
1e6feb95 | 4558 | |
8284b0c5 MB |
4559 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
4560 | echo "configure:4561: checking for --enable-system_options" >&5 | |
3e44f09d VZ |
4561 | no_cache=0 |
4562 | # Check whether --enable-system_options or --disable-system_options was given. | |
4563 | if test "${enable_system_options+set}" = set; then | |
4564 | enableval="$enable_system_options" | |
8284b0c5 | 4565 | |
3e44f09d VZ |
4566 | if test "$enableval" = yes; then |
4567 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4568 | else | |
4569 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4570 | fi | |
8284b0c5 | 4571 | |
3e44f09d | 4572 | else |
8284b0c5 | 4573 | |
3e44f09d VZ |
4574 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
4575 | if test "x$LINE" != x ; then | |
4576 | eval "DEFAULT_$LINE" | |
4577 | else | |
4578 | no_cache=1 | |
4579 | fi | |
4580 | ||
4581 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
8284b0c5 MB |
4582 | |
4583 | fi | |
3e44f09d VZ |
4584 | |
4585 | ||
4586 | eval "$ac_cv_use_system_options" | |
4587 | if test "$no_cache" != 1; then | |
4588 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4589 | fi | |
4590 | ||
4591 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
8284b0c5 | 4592 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 4593 | else |
8284b0c5 | 4594 | echo "$ac_t""no" 1>&6 |
3e44f09d | 4595 | fi |
8284b0c5 MB |
4596 | |
4597 | ||
52127426 | 4598 | |
8284b0c5 MB |
4599 | echo $ac_n "checking for --enable-url""... $ac_c" 1>&6 |
4600 | echo "configure:4601: checking for --enable-url" >&5 | |
4cdb0ab0 VS |
4601 | no_cache=0 |
4602 | # Check whether --enable-url or --disable-url was given. | |
4603 | if test "${enable_url+set}" = set; then | |
4604 | enableval="$enable_url" | |
8284b0c5 | 4605 | |
4cdb0ab0 VS |
4606 | if test "$enableval" = yes; then |
4607 | ac_cv_use_url='wxUSE_URL=yes' | |
4608 | else | |
4609 | ac_cv_use_url='wxUSE_URL=no' | |
4610 | fi | |
8284b0c5 | 4611 | |
4cdb0ab0 | 4612 | else |
8284b0c5 | 4613 | |
4cdb0ab0 VS |
4614 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
4615 | if test "x$LINE" != x ; then | |
4616 | eval "DEFAULT_$LINE" | |
4617 | else | |
4618 | no_cache=1 | |
4619 | fi | |
4620 | ||
4621 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
8284b0c5 MB |
4622 | |
4623 | fi | |
4cdb0ab0 VS |
4624 | |
4625 | ||
4626 | eval "$ac_cv_use_url" | |
4627 | if test "$no_cache" != 1; then | |
4628 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4629 | fi | |
4630 | ||
4631 | if test "$wxUSE_URL" = yes; then | |
8284b0c5 | 4632 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4633 | else |
8284b0c5 | 4634 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4635 | fi |
8284b0c5 | 4636 | |
4cdb0ab0 | 4637 | |
8284b0c5 MB |
4638 | echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6 |
4639 | echo "configure:4640: checking for --enable-protocol" >&5 | |
4cdb0ab0 VS |
4640 | no_cache=0 |
4641 | # Check whether --enable-protocol or --disable-protocol was given. | |
4642 | if test "${enable_protocol+set}" = set; then | |
4643 | enableval="$enable_protocol" | |
8284b0c5 | 4644 | |
4cdb0ab0 VS |
4645 | if test "$enableval" = yes; then |
4646 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4647 | else | |
4648 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4649 | fi | |
8284b0c5 | 4650 | |
4cdb0ab0 | 4651 | else |
8284b0c5 | 4652 | |
4cdb0ab0 VS |
4653 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4654 | if test "x$LINE" != x ; then | |
4655 | eval "DEFAULT_$LINE" | |
4656 | else | |
4657 | no_cache=1 | |
4658 | fi | |
4659 | ||
4660 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
8284b0c5 MB |
4661 | |
4662 | fi | |
4cdb0ab0 VS |
4663 | |
4664 | ||
4665 | eval "$ac_cv_use_protocol" | |
4666 | if test "$no_cache" != 1; then | |
4667 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4668 | fi | |
4669 | ||
4670 | if test "$wxUSE_PROTOCOL" = yes; then | |
8284b0c5 | 4671 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4672 | else |
8284b0c5 | 4673 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4674 | fi |
8284b0c5 | 4675 | |
4cdb0ab0 | 4676 | |
8284b0c5 MB |
4677 | echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6 |
4678 | echo "configure:4679: checking for --enable-protocol_http" >&5 | |
4cdb0ab0 VS |
4679 | no_cache=0 |
4680 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4681 | if test "${enable_protocol_http+set}" = set; then | |
4682 | enableval="$enable_protocol_http" | |
8284b0c5 | 4683 | |
4cdb0ab0 VS |
4684 | if test "$enableval" = yes; then |
4685 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4686 | else | |
4687 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4688 | fi | |
8284b0c5 | 4689 | |
4cdb0ab0 | 4690 | else |
8284b0c5 | 4691 | |
4cdb0ab0 VS |
4692 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4693 | if test "x$LINE" != x ; then | |
4694 | eval "DEFAULT_$LINE" | |
4695 | else | |
4696 | no_cache=1 | |
4697 | fi | |
4698 | ||
4699 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
8284b0c5 MB |
4700 | |
4701 | fi | |
4cdb0ab0 VS |
4702 | |
4703 | ||
4704 | eval "$ac_cv_use_protocol_http" | |
4705 | if test "$no_cache" != 1; then | |
4706 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4707 | fi | |
4708 | ||
4709 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
8284b0c5 | 4710 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4711 | else |
8284b0c5 | 4712 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4713 | fi |
8284b0c5 | 4714 | |
4cdb0ab0 | 4715 | |
8284b0c5 MB |
4716 | echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6 |
4717 | echo "configure:4718: checking for --enable-protocol_ftp" >&5 | |
4cdb0ab0 VS |
4718 | no_cache=0 |
4719 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4720 | if test "${enable_protocol_ftp+set}" = set; then | |
4721 | enableval="$enable_protocol_ftp" | |
8284b0c5 | 4722 | |
4cdb0ab0 VS |
4723 | if test "$enableval" = yes; then |
4724 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4725 | else | |
4726 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4727 | fi | |
8284b0c5 | 4728 | |
4cdb0ab0 | 4729 | else |
8284b0c5 | 4730 | |
4cdb0ab0 VS |
4731 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4732 | if test "x$LINE" != x ; then | |
4733 | eval "DEFAULT_$LINE" | |
4734 | else | |
4735 | no_cache=1 | |
4736 | fi | |
4737 | ||
4738 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
8284b0c5 MB |
4739 | |
4740 | fi | |
4cdb0ab0 VS |
4741 | |
4742 | ||
4743 | eval "$ac_cv_use_protocol_ftp" | |
4744 | if test "$no_cache" != 1; then | |
4745 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4746 | fi | |
4747 | ||
4748 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
8284b0c5 | 4749 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4750 | else |
8284b0c5 | 4751 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4752 | fi |
8284b0c5 | 4753 | |
4cdb0ab0 | 4754 | |
8284b0c5 MB |
4755 | echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6 |
4756 | echo "configure:4757: checking for --enable-protocol_file" >&5 | |
4cdb0ab0 VS |
4757 | no_cache=0 |
4758 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4759 | if test "${enable_protocol_file+set}" = set; then | |
4760 | enableval="$enable_protocol_file" | |
8284b0c5 | 4761 | |
4cdb0ab0 VS |
4762 | if test "$enableval" = yes; then |
4763 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4764 | else | |
4765 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4766 | fi | |
8284b0c5 | 4767 | |
4cdb0ab0 | 4768 | else |
8284b0c5 | 4769 | |
4cdb0ab0 VS |
4770 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4771 | if test "x$LINE" != x ; then | |
4772 | eval "DEFAULT_$LINE" | |
4773 | else | |
4774 | no_cache=1 | |
4775 | fi | |
4776 | ||
4777 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
8284b0c5 MB |
4778 | |
4779 | fi | |
4cdb0ab0 VS |
4780 | |
4781 | ||
4782 | eval "$ac_cv_use_protocol_file" | |
4783 | if test "$no_cache" != 1; then | |
4784 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4785 | fi | |
4786 | ||
4787 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
8284b0c5 | 4788 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4789 | else |
8284b0c5 | 4790 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4791 | fi |
8284b0c5 | 4792 | |
52127426 | 4793 | |
8284b0c5 MB |
4794 | |
4795 | ||
4796 | ||
4797 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
4798 | echo "configure:4799: checking for --enable-threads" >&5 | |
10f2d63a VZ |
4799 | no_cache=0 |
4800 | # Check whether --enable-threads or --disable-threads was given. | |
4801 | if test "${enable_threads+set}" = set; then | |
4802 | enableval="$enable_threads" | |
8284b0c5 | 4803 | |
10f2d63a VZ |
4804 | if test "$enableval" = yes; then |
4805 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4806 | else | |
4807 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4808 | fi | |
8284b0c5 | 4809 | |
10f2d63a | 4810 | else |
8284b0c5 | 4811 | |
10f2d63a VZ |
4812 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4813 | if test "x$LINE" != x ; then | |
4814 | eval "DEFAULT_$LINE" | |
4815 | else | |
4816 | no_cache=1 | |
4817 | fi | |
4818 | ||
4819 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
8284b0c5 MB |
4820 | |
4821 | fi | |
10f2d63a VZ |
4822 | |
4823 | ||
4824 | eval "$ac_cv_use_threads" | |
4825 | if test "$no_cache" != 1; then | |
4826 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4827 | fi | |
4828 | ||
4829 | if test "$wxUSE_THREADS" = yes; then | |
8284b0c5 | 4830 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4831 | else |
8284b0c5 | 4832 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4833 | fi |
8284b0c5 | 4834 | |
10f2d63a | 4835 | |
b12915c1 VZ |
4836 | if test "$wxUSE_GUI" = "yes"; then |
4837 | ||
8284b0c5 MB |
4838 | |
4839 | ||
4840 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
4841 | echo "configure:4842: checking for --enable-docview" >&5 | |
10f2d63a VZ |
4842 | no_cache=0 |
4843 | # Check whether --enable-docview or --disable-docview was given. | |
4844 | if test "${enable_docview+set}" = set; then | |
4845 | enableval="$enable_docview" | |
8284b0c5 | 4846 | |
10f2d63a VZ |
4847 | if test "$enableval" = yes; then |
4848 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4849 | else | |
4850 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4851 | fi | |
8284b0c5 | 4852 | |
10f2d63a | 4853 | else |
8284b0c5 | 4854 | |
10f2d63a VZ |
4855 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4856 | if test "x$LINE" != x ; then | |
4857 | eval "DEFAULT_$LINE" | |
4858 | else | |
4859 | no_cache=1 | |
4860 | fi | |
4861 | ||
4862 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
8284b0c5 MB |
4863 | |
4864 | fi | |
10f2d63a VZ |
4865 | |
4866 | ||
4867 | eval "$ac_cv_use_docview" | |
4868 | if test "$no_cache" != 1; then | |
4869 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4870 | fi | |
4871 | ||
4872 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
8284b0c5 | 4873 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4874 | else |
8284b0c5 | 4875 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4876 | fi |
8284b0c5 | 4877 | |
10f2d63a | 4878 | |
8284b0c5 MB |
4879 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
4880 | echo "configure:4881: checking for --enable-help" >&5 | |
10f2d63a VZ |
4881 | no_cache=0 |
4882 | # Check whether --enable-help or --disable-help was given. | |
4883 | if test "${enable_help+set}" = set; then | |
4884 | enableval="$enable_help" | |
8284b0c5 | 4885 | |
10f2d63a VZ |
4886 | if test "$enableval" = yes; then |
4887 | ac_cv_use_help='wxUSE_HELP=yes' | |
4888 | else | |
4889 | ac_cv_use_help='wxUSE_HELP=no' | |
4890 | fi | |
8284b0c5 | 4891 | |
10f2d63a | 4892 | else |
8284b0c5 | 4893 | |
10f2d63a VZ |
4894 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4895 | if test "x$LINE" != x ; then | |
4896 | eval "DEFAULT_$LINE" | |
4897 | else | |
4898 | no_cache=1 | |
4899 | fi | |
4900 | ||
4901 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
8284b0c5 MB |
4902 | |
4903 | fi | |
10f2d63a VZ |
4904 | |
4905 | ||
4906 | eval "$ac_cv_use_help" | |
4907 | if test "$no_cache" != 1; then | |
4908 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4909 | fi | |
4910 | ||
4911 | if test "$wxUSE_HELP" = yes; then | |
8284b0c5 | 4912 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4913 | else |
8284b0c5 | 4914 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4915 | fi |
8284b0c5 | 4916 | |
10f2d63a | 4917 | |
8284b0c5 MB |
4918 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
4919 | echo "configure:4920: checking for --enable-mshtmlhelp" >&5 | |
29fd3c0c VS |
4920 | no_cache=0 |
4921 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4922 | if test "${enable_mshtmlhelp+set}" = set; then | |
4923 | enableval="$enable_mshtmlhelp" | |
8284b0c5 | 4924 | |
29fd3c0c VS |
4925 | if test "$enableval" = yes; then |
4926 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4927 | else | |
4928 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4929 | fi | |
8284b0c5 | 4930 | |
29fd3c0c | 4931 | else |
8284b0c5 | 4932 | |
29fd3c0c VS |
4933 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
4934 | if test "x$LINE" != x ; then | |
4935 | eval "DEFAULT_$LINE" | |
4936 | else | |
4937 | no_cache=1 | |
4938 | fi | |
4939 | ||
4940 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
8284b0c5 MB |
4941 | |
4942 | fi | |
29fd3c0c VS |
4943 | |
4944 | ||
4945 | eval "$ac_cv_use_mshtmlhelp" | |
4946 | if test "$no_cache" != 1; then | |
4947 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4948 | fi | |
4949 | ||
4950 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
8284b0c5 | 4951 | echo "$ac_t""yes" 1>&6 |
29fd3c0c | 4952 | else |
8284b0c5 | 4953 | echo "$ac_t""no" 1>&6 |
29fd3c0c | 4954 | fi |
8284b0c5 | 4955 | |
29fd3c0c | 4956 | |
8284b0c5 MB |
4957 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
4958 | echo "configure:4959: checking for --enable-html" >&5 | |
3379ed37 VZ |
4959 | no_cache=0 |
4960 | # Check whether --enable-html or --disable-html was given. | |
4961 | if test "${enable_html+set}" = set; then | |
4962 | enableval="$enable_html" | |
8284b0c5 | 4963 | |
3379ed37 VZ |
4964 | if test "$enableval" = yes; then |
4965 | ac_cv_use_html='wxUSE_HTML=yes' | |
4966 | else | |
4967 | ac_cv_use_html='wxUSE_HTML=no' | |
4968 | fi | |
8284b0c5 | 4969 | |
3379ed37 | 4970 | else |
8284b0c5 | 4971 | |
3379ed37 VZ |
4972 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
4973 | if test "x$LINE" != x ; then | |
4974 | eval "DEFAULT_$LINE" | |
4975 | else | |
4976 | no_cache=1 | |
4977 | fi | |
4978 | ||
4979 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
8284b0c5 MB |
4980 | |
4981 | fi | |
3379ed37 VZ |
4982 | |
4983 | ||
4984 | eval "$ac_cv_use_html" | |
4985 | if test "$no_cache" != 1; then | |
4986 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4987 | fi | |
4988 | ||
4989 | if test "$wxUSE_HTML" = yes; then | |
8284b0c5 | 4990 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 4991 | else |
8284b0c5 | 4992 | echo "$ac_t""no" 1>&6 |
3379ed37 | 4993 | fi |
8284b0c5 | 4994 | |
3379ed37 | 4995 | |
8284b0c5 MB |
4996 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 |
4997 | echo "configure:4998: checking for --enable-htmlhelp" >&5 | |
3379ed37 VZ |
4998 | no_cache=0 |
4999 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5000 | if test "${enable_htmlhelp+set}" = set; then | |
5001 | enableval="$enable_htmlhelp" | |
8284b0c5 | 5002 | |
3379ed37 VZ |
5003 | if test "$enableval" = yes; then |
5004 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5005 | else | |
5006 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5007 | fi | |
8284b0c5 | 5008 | |
3379ed37 | 5009 | else |
8284b0c5 | 5010 | |
3379ed37 VZ |
5011 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5012 | if test "x$LINE" != x ; then | |
5013 | eval "DEFAULT_$LINE" | |
5014 | else | |
5015 | no_cache=1 | |
5016 | fi | |
5017 | ||
5018 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
8284b0c5 MB |
5019 | |
5020 | fi | |
3379ed37 VZ |
5021 | |
5022 | ||
5023 | eval "$ac_cv_use_htmlhelp" | |
5024 | if test "$no_cache" != 1; then | |
5025 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5026 | fi | |
5027 | ||
5028 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
8284b0c5 | 5029 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5030 | else |
8284b0c5 | 5031 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5032 | fi |
8284b0c5 | 5033 | |
3379ed37 | 5034 | |
8284b0c5 MB |
5035 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
5036 | echo "configure:5037: checking for --enable-constraints" >&5 | |
10f2d63a VZ |
5037 | no_cache=0 |
5038 | # Check whether --enable-constraints or --disable-constraints was given. | |
5039 | if test "${enable_constraints+set}" = set; then | |
5040 | enableval="$enable_constraints" | |
8284b0c5 | 5041 | |
10f2d63a VZ |
5042 | if test "$enableval" = yes; then |
5043 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5044 | else | |
5045 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5046 | fi | |
8284b0c5 | 5047 | |
10f2d63a | 5048 | else |
8284b0c5 | 5049 | |
10f2d63a VZ |
5050 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5051 | if test "x$LINE" != x ; then | |
5052 | eval "DEFAULT_$LINE" | |
5053 | else | |
5054 | no_cache=1 | |
5055 | fi | |
5056 | ||
5057 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
8284b0c5 MB |
5058 | |
5059 | fi | |
10f2d63a VZ |
5060 | |
5061 | ||
5062 | eval "$ac_cv_use_constraints" | |
5063 | if test "$no_cache" != 1; then | |
5064 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5065 | fi | |
5066 | ||
5067 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
8284b0c5 | 5068 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5069 | else |
8284b0c5 | 5070 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5071 | fi |
8284b0c5 | 5072 | |
10f2d63a | 5073 | |
8284b0c5 MB |
5074 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
5075 | echo "configure:5076: checking for --enable-printarch" >&5 | |
10f2d63a VZ |
5076 | no_cache=0 |
5077 | # Check whether --enable-printarch or --disable-printarch was given. | |
5078 | if test "${enable_printarch+set}" = set; then | |
5079 | enableval="$enable_printarch" | |
8284b0c5 | 5080 | |
10f2d63a VZ |
5081 | if test "$enableval" = yes; then |
5082 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5083 | else | |
5084 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5085 | fi | |
8284b0c5 | 5086 | |
10f2d63a | 5087 | else |
8284b0c5 | 5088 | |
10f2d63a VZ |
5089 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5090 | if test "x$LINE" != x ; then | |
5091 | eval "DEFAULT_$LINE" | |
5092 | else | |
5093 | no_cache=1 | |
5094 | fi | |
5095 | ||
5096 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
8284b0c5 MB |
5097 | |
5098 | fi | |
10f2d63a VZ |
5099 | |
5100 | ||
5101 | eval "$ac_cv_use_printarch" | |
5102 | if test "$no_cache" != 1; then | |
5103 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5104 | fi | |
5105 | ||
5106 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
8284b0c5 | 5107 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5108 | else |
8284b0c5 | 5109 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5110 | fi |
8284b0c5 | 5111 | |
10f2d63a | 5112 | |
8284b0c5 MB |
5113 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
5114 | echo "configure:5115: checking for --enable-mdi" >&5 | |
10f2d63a VZ |
5115 | no_cache=0 |
5116 | # Check whether --enable-mdi or --disable-mdi was given. | |
5117 | if test "${enable_mdi+set}" = set; then | |
5118 | enableval="$enable_mdi" | |
8284b0c5 | 5119 | |
10f2d63a VZ |
5120 | if test "$enableval" = yes; then |
5121 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5122 | else | |
5123 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5124 | fi | |
8284b0c5 | 5125 | |
10f2d63a | 5126 | else |
8284b0c5 | 5127 | |
10f2d63a VZ |
5128 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5129 | if test "x$LINE" != x ; then | |
5130 | eval "DEFAULT_$LINE" | |
5131 | else | |
5132 | no_cache=1 | |
5133 | fi | |
5134 | ||
5135 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
8284b0c5 MB |
5136 | |
5137 | fi | |
10f2d63a VZ |
5138 | |
5139 | ||
5140 | eval "$ac_cv_use_mdi" | |
5141 | if test "$no_cache" != 1; then | |
5142 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5143 | fi | |
5144 | ||
5145 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
8284b0c5 | 5146 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5147 | else |
8284b0c5 | 5148 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5149 | fi |
8284b0c5 | 5150 | |
698dcdb6 | 5151 | |
8284b0c5 MB |
5152 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
5153 | echo "configure:5154: checking for --enable-loggui" >&5 | |
1e6feb95 VZ |
5154 | no_cache=0 |
5155 | # Check whether --enable-loggui or --disable-loggui was given. | |
5156 | if test "${enable_loggui+set}" = set; then | |
5157 | enableval="$enable_loggui" | |
8284b0c5 | 5158 | |
1e6feb95 VZ |
5159 | if test "$enableval" = yes; then |
5160 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5161 | else | |
5162 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5163 | fi | |
8284b0c5 | 5164 | |
1e6feb95 | 5165 | else |
8284b0c5 | 5166 | |
1e6feb95 VZ |
5167 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
5168 | if test "x$LINE" != x ; then | |
5169 | eval "DEFAULT_$LINE" | |
5170 | else | |
5171 | no_cache=1 | |
5172 | fi | |
5173 | ||
5174 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
8284b0c5 MB |
5175 | |
5176 | fi | |
1e6feb95 VZ |
5177 | |
5178 | ||
5179 | eval "$ac_cv_use_loggui" | |
5180 | if test "$no_cache" != 1; then | |
5181 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5182 | fi | |
5183 | ||
5184 | if test "$wxUSE_LOGGUI" = yes; then | |
8284b0c5 | 5185 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5186 | else |
8284b0c5 | 5187 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5188 | fi |
8284b0c5 | 5189 | |
1e6feb95 | 5190 | |
8284b0c5 MB |
5191 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 |
5192 | echo "configure:5193: checking for --enable-logwin" >&5 | |
1e6feb95 VZ |
5193 | no_cache=0 |
5194 | # Check whether --enable-logwin or --disable-logwin was given. | |
5195 | if test "${enable_logwin+set}" = set; then | |
5196 | enableval="$enable_logwin" | |
8284b0c5 | 5197 | |
1e6feb95 VZ |
5198 | if test "$enableval" = yes; then |
5199 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5200 | else | |
5201 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5202 | fi | |
8284b0c5 | 5203 | |
1e6feb95 | 5204 | else |
8284b0c5 | 5205 | |
1e6feb95 VZ |
5206 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
5207 | if test "x$LINE" != x ; then | |
5208 | eval "DEFAULT_$LINE" | |
5209 | else | |
5210 | no_cache=1 | |
5211 | fi | |
5212 | ||
5213 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
8284b0c5 MB |
5214 | |
5215 | fi | |
1e6feb95 VZ |
5216 | |
5217 | ||
5218 | eval "$ac_cv_use_logwin" | |
5219 | if test "$no_cache" != 1; then | |
5220 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5221 | fi | |
5222 | ||
5223 | if test "$wxUSE_LOGWINDOW" = yes; then | |
8284b0c5 | 5224 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5225 | else |
8284b0c5 | 5226 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5227 | fi |
8284b0c5 | 5228 | |
1e6feb95 | 5229 | |
8284b0c5 MB |
5230 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 |
5231 | echo "configure:5232: checking for --enable-logdialog" >&5 | |
69d27ff7 MB |
5232 | no_cache=0 |
5233 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5234 | if test "${enable_logdialog+set}" = set; then | |
5235 | enableval="$enable_logdialog" | |
8284b0c5 | 5236 | |
69d27ff7 MB |
5237 | if test "$enableval" = yes; then |
5238 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5239 | else | |
5240 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5241 | fi | |
8284b0c5 | 5242 | |
69d27ff7 | 5243 | else |
8284b0c5 | 5244 | |
69d27ff7 MB |
5245 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
5246 | if test "x$LINE" != x ; then | |
5247 | eval "DEFAULT_$LINE" | |
5248 | else | |
5249 | no_cache=1 | |
5250 | fi | |
5251 | ||
5252 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
8284b0c5 MB |
5253 | |
5254 | fi | |
69d27ff7 MB |
5255 | |
5256 | ||
5257 | eval "$ac_cv_use_logdialog" | |
5258 | if test "$no_cache" != 1; then | |
5259 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5260 | fi | |
5261 | ||
5262 | if test "$wxUSE_LOGDIALOG" = yes; then | |
8284b0c5 | 5263 | echo "$ac_t""yes" 1>&6 |
69d27ff7 | 5264 | else |
8284b0c5 | 5265 | echo "$ac_t""no" 1>&6 |
69d27ff7 | 5266 | fi |
8284b0c5 MB |
5267 | |
5268 | ||
52127426 | 5269 | |
8284b0c5 MB |
5270 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
5271 | echo "configure:5272: checking for --enable-postscript" >&5 | |
10f2d63a VZ |
5272 | no_cache=0 |
5273 | # Check whether --enable-postscript or --disable-postscript was given. | |
5274 | if test "${enable_postscript+set}" = set; then | |
5275 | enableval="$enable_postscript" | |
8284b0c5 | 5276 | |
10f2d63a VZ |
5277 | if test "$enableval" = yes; then |
5278 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5279 | else | |
5280 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5281 | fi | |
8284b0c5 | 5282 | |
10f2d63a | 5283 | else |
8284b0c5 | 5284 | |
10f2d63a VZ |
5285 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5286 | if test "x$LINE" != x ; then | |
5287 | eval "DEFAULT_$LINE" | |
5288 | else | |
5289 | no_cache=1 | |
5290 | fi | |
5291 | ||
5292 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
8284b0c5 MB |
5293 | |
5294 | fi | |
10f2d63a VZ |
5295 | |
5296 | ||
5297 | eval "$ac_cv_use_postscript" | |
5298 | if test "$no_cache" != 1; then | |
5299 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5300 | fi | |
5301 | ||
5302 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
8284b0c5 | 5303 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5304 | else |
8284b0c5 | 5305 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5306 | fi |
8284b0c5 MB |
5307 | |
5308 | ||
5309 | ||
52127426 | 5310 | |
8284b0c5 MB |
5311 | |
5312 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 | |
5313 | echo "configure:5314: checking for --enable-prologio" >&5 | |
10f2d63a VZ |
5314 | no_cache=0 |
5315 | # Check whether --enable-prologio or --disable-prologio was given. | |
5316 | if test "${enable_prologio+set}" = set; then | |
5317 | enableval="$enable_prologio" | |
8284b0c5 | 5318 | |
10f2d63a VZ |
5319 | if test "$enableval" = yes; then |
5320 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5321 | else | |
5322 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5323 | fi | |
8284b0c5 | 5324 | |
10f2d63a | 5325 | else |
8284b0c5 | 5326 | |
10f2d63a VZ |
5327 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5328 | if test "x$LINE" != x ; then | |
5329 | eval "DEFAULT_$LINE" | |
5330 | else | |
5331 | no_cache=1 | |
5332 | fi | |
5333 | ||
5334 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
8284b0c5 MB |
5335 | |
5336 | fi | |
10f2d63a VZ |
5337 | |
5338 | ||
5339 | eval "$ac_cv_use_prologio" | |
5340 | if test "$no_cache" != 1; then | |
5341 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5342 | fi | |
5343 | ||
5344 | if test "$wxUSE_PROLOGIO" = yes; then | |
8284b0c5 | 5345 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5346 | else |
8284b0c5 | 5347 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5348 | fi |
8284b0c5 | 5349 | |
10f2d63a | 5350 | |
8284b0c5 MB |
5351 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
5352 | echo "configure:5353: checking for --enable-resources" >&5 | |
10f2d63a VZ |
5353 | no_cache=0 |
5354 | # Check whether --enable-resources or --disable-resources was given. | |
5355 | if test "${enable_resources+set}" = set; then | |
5356 | enableval="$enable_resources" | |
8284b0c5 | 5357 | |
10f2d63a VZ |
5358 | if test "$enableval" = yes; then |
5359 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5360 | else | |
5361 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5362 | fi | |
8284b0c5 | 5363 | |
10f2d63a | 5364 | else |
8284b0c5 | 5365 | |
10f2d63a VZ |
5366 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5367 | if test "x$LINE" != x ; then | |
5368 | eval "DEFAULT_$LINE" | |
5369 | else | |
5370 | no_cache=1 | |
5371 | fi | |
5372 | ||
5373 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
8284b0c5 MB |
5374 | |
5375 | fi | |
10f2d63a VZ |
5376 | |
5377 | ||
5378 | eval "$ac_cv_use_resources" | |
5379 | if test "$no_cache" != 1; then | |
5380 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5381 | fi | |
5382 | ||
5383 | if test "$wxUSE_RESOURCES" = yes; then | |
8284b0c5 | 5384 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5385 | else |
8284b0c5 | 5386 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5387 | fi |
8284b0c5 MB |
5388 | |
5389 | ||
52127426 | 5390 | |
8284b0c5 MB |
5391 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 |
5392 | echo "configure:5393: checking for --enable-xresources" >&5 | |
10f2d63a VZ |
5393 | no_cache=0 |
5394 | # Check whether --enable-xresources or --disable-xresources was given. | |
5395 | if test "${enable_xresources+set}" = set; then | |
5396 | enableval="$enable_xresources" | |
8284b0c5 | 5397 | |
10f2d63a VZ |
5398 | if test "$enableval" = yes; then |
5399 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5400 | else | |
5401 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5402 | fi | |
8284b0c5 | 5403 | |
10f2d63a | 5404 | else |
8284b0c5 | 5405 | |
10f2d63a VZ |
5406 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5407 | if test "x$LINE" != x ; then | |
5408 | eval "DEFAULT_$LINE" | |
5409 | else | |
5410 | no_cache=1 | |
5411 | fi | |
5412 | ||
5413 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
8284b0c5 MB |
5414 | |
5415 | fi | |
10f2d63a VZ |
5416 | |
5417 | ||
5418 | eval "$ac_cv_use_xresources" | |
5419 | if test "$no_cache" != 1; then | |
5420 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5421 | fi | |
5422 | ||
5423 | if test "$wxUSE_X_RESOURCES" = yes; then | |
8284b0c5 | 5424 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5425 | else |
8284b0c5 | 5426 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5427 | fi |
8284b0c5 MB |
5428 | |
5429 | ||
5430 | ||
52127426 | 5431 | |
8284b0c5 MB |
5432 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 |
5433 | echo "configure:5434: checking for --enable-clipboard" >&5 | |
10f2d63a VZ |
5434 | no_cache=0 |
5435 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5436 | if test "${enable_clipboard+set}" = set; then | |
5437 | enableval="$enable_clipboard" | |
8284b0c5 | 5438 | |
10f2d63a VZ |
5439 | if test "$enableval" = yes; then |
5440 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5441 | else | |
5442 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5443 | fi | |
8284b0c5 | 5444 | |
10f2d63a | 5445 | else |
8284b0c5 | 5446 | |
10f2d63a VZ |
5447 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5448 | if test "x$LINE" != x ; then | |
5449 | eval "DEFAULT_$LINE" | |
5450 | else | |
5451 | no_cache=1 | |
5452 | fi | |
5453 | ||
5454 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
8284b0c5 MB |
5455 | |
5456 | fi | |
10f2d63a VZ |
5457 | |
5458 | ||
5459 | eval "$ac_cv_use_clipboard" | |
5460 | if test "$no_cache" != 1; then | |
5461 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5462 | fi | |
5463 | ||
5464 | if test "$wxUSE_CLIPBOARD" = yes; then | |
8284b0c5 | 5465 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5466 | else |
8284b0c5 | 5467 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5468 | fi |
8284b0c5 | 5469 | |
10f2d63a | 5470 | |
8284b0c5 MB |
5471 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
5472 | echo "configure:5473: checking for --enable-dnd" >&5 | |
10f2d63a VZ |
5473 | no_cache=0 |
5474 | # Check whether --enable-dnd or --disable-dnd was given. | |
5475 | if test "${enable_dnd+set}" = set; then | |
5476 | enableval="$enable_dnd" | |
8284b0c5 | 5477 | |
10f2d63a VZ |
5478 | if test "$enableval" = yes; then |
5479 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5480 | else | |
5481 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5482 | fi | |
8284b0c5 | 5483 | |
10f2d63a | 5484 | else |
8284b0c5 | 5485 | |
10f2d63a VZ |
5486 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5487 | if test "x$LINE" != x ; then | |
5488 | eval "DEFAULT_$LINE" | |
5489 | else | |
5490 | no_cache=1 | |
5491 | fi | |
5492 | ||
5493 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
8284b0c5 MB |
5494 | |
5495 | fi | |
10f2d63a VZ |
5496 | |
5497 | ||
5498 | eval "$ac_cv_use_dnd" | |
5499 | if test "$no_cache" != 1; then | |
5500 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5501 | fi | |
5502 | ||
5503 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
8284b0c5 | 5504 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5505 | else |
8284b0c5 | 5506 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5507 | fi |
8284b0c5 | 5508 | |
10f2d63a | 5509 | |
8284b0c5 MB |
5510 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
5511 | echo "configure:5512: checking for --enable-metafile" >&5 | |
b64f0a5f RL |
5512 | no_cache=0 |
5513 | # Check whether --enable-metafile or --disable-metafile was given. | |
5514 | if test "${enable_metafile+set}" = set; then | |
5515 | enableval="$enable_metafile" | |
8284b0c5 | 5516 | |
b64f0a5f RL |
5517 | if test "$enableval" = yes; then |
5518 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5519 | else | |
5520 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5521 | fi | |
8284b0c5 | 5522 | |
b64f0a5f | 5523 | else |
8284b0c5 | 5524 | |
b64f0a5f RL |
5525 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5526 | if test "x$LINE" != x ; then | |
5527 | eval "DEFAULT_$LINE" | |
5528 | else | |
5529 | no_cache=1 | |
5530 | fi | |
5531 | ||
5532 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
8284b0c5 MB |
5533 | |
5534 | fi | |
b64f0a5f RL |
5535 | |
5536 | ||
5537 | eval "$ac_cv_use_metafile" | |
5538 | if test "$no_cache" != 1; then | |
5539 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5540 | fi | |
5541 | ||
5542 | if test "$wxUSE_METAFILE" = yes; then | |
8284b0c5 | 5543 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5544 | else |
8284b0c5 | 5545 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5546 | fi |
8284b0c5 | 5547 | |
52127426 | 5548 | |
8284b0c5 MB |
5549 | |
5550 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 | |
5551 | echo "configure:5552: checking for --enable-treelayout" >&5 | |
10f2d63a | 5552 | no_cache=0 |
24176f2c GD |
5553 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5554 | if test "${enable_treelayout+set}" = set; then | |
5555 | enableval="$enable_treelayout" | |
8284b0c5 | 5556 | |
10f2d63a | 5557 | if test "$enableval" = yes; then |
24176f2c | 5558 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5559 | else |
24176f2c | 5560 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5561 | fi |
8284b0c5 | 5562 | |
10f2d63a | 5563 | else |
8284b0c5 | 5564 | |
24176f2c | 5565 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5566 | if test "x$LINE" != x ; then |
5567 | eval "DEFAULT_$LINE" | |
5568 | else | |
5569 | no_cache=1 | |
5570 | fi | |
5571 | ||
24176f2c | 5572 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
8284b0c5 MB |
5573 | |
5574 | fi | |
10f2d63a VZ |
5575 | |
5576 | ||
24176f2c | 5577 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5578 | if test "$no_cache" != 1; then |
24176f2c | 5579 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5580 | fi |
5581 | ||
24176f2c | 5582 | if test "$wxUSE_TREELAYOUT" = yes; then |
8284b0c5 | 5583 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5584 | else |
8284b0c5 | 5585 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5586 | fi |
8284b0c5 MB |
5587 | |
5588 | ||
52127426 | 5589 | |
8284b0c5 MB |
5590 | |
5591 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
5592 | echo "configure:5593: checking for --enable-controls" >&5 | |
10f2d63a VZ |
5593 | no_cache=0 |
5594 | # Check whether --enable-controls or --disable-controls was given. | |
5595 | if test "${enable_controls+set}" = set; then | |
5596 | enableval="$enable_controls" | |
8284b0c5 | 5597 | |
10f2d63a VZ |
5598 | if test "$enableval" = yes; then |
5599 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5600 | else | |
5601 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5602 | fi | |
8284b0c5 | 5603 | |
10f2d63a | 5604 | else |
8284b0c5 | 5605 | |
10f2d63a VZ |
5606 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5607 | if test "x$LINE" != x ; then | |
5608 | eval "DEFAULT_$LINE" | |
5609 | else | |
5610 | no_cache=1 | |
5611 | fi | |
5612 | ||
5613 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
8284b0c5 MB |
5614 | |
5615 | fi | |
10f2d63a VZ |
5616 | |
5617 | ||
5618 | eval "$ac_cv_use_controls" | |
5619 | if test "$no_cache" != 1; then | |
5620 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5621 | fi | |
5622 | ||
5623 | if test "$wxUSE_CONTROLS" = yes; then | |
8284b0c5 | 5624 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5625 | else |
8284b0c5 | 5626 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5627 | fi |
8284b0c5 | 5628 | |
10f2d63a VZ |
5629 | |
5630 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5631 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5632 | DEFAULT_wxUSE_BMPBUTTON=yes |
5633 | DEFAULT_wxUSE_BUTTON=yes | |
5634 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5635 | DEFAULT_wxUSE_CARET=yes |
5636 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5637 | DEFAULT_wxUSE_CHECKBOX=yes |
5638 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5639 | DEFAULT_wxUSE_CHOICE=yes | |
5640 | DEFAULT_wxUSE_GAUGE=yes | |
5641 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5642 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5643 | DEFAULT_wxUSE_IMAGLIST=yes |
5644 | DEFAULT_wxUSE_LISTBOX=yes | |
5645 | DEFAULT_wxUSE_LISTCTRL=yes | |
5646 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5647 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5648 | DEFAULT_wxUSE_RADIOBOX=yes |
5649 | DEFAULT_wxUSE_RADIOBTN=yes | |
5650 | DEFAULT_wxUSE_SASH=yes | |
5651 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5652 | DEFAULT_wxUSE_SLIDER=yes | |
5653 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5654 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5655 | DEFAULT_wxUSE_SPLITTER=yes |
5656 | DEFAULT_wxUSE_STATBMP=yes | |
5657 | DEFAULT_wxUSE_STATBOX=yes | |
5658 | DEFAULT_wxUSE_STATLINE=yes | |
5659 | DEFAULT_wxUSE_STATUSBAR=yes | |
5660 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5661 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5662 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5663 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5664 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5665 | DEFAULT_wxUSE_TOOLTIPS=yes |
5666 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5667 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5668 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5669 | elif test "$wxUSE_CONTROLS" = "no"; then |
5670 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5671 | DEFAULT_wxUSE_BMPBUTTON=no |
5672 | DEFAULT_wxUSE_BUTTON=no | |
5673 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5674 | DEFAULT_wxUSE_CARET=no |
5675 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5676 | DEFAULT_wxUSE_CHECKBOX=no |
5677 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5678 | DEFAULT_wxUSE_CHOICE=no | |
5679 | DEFAULT_wxUSE_GAUGE=no | |
5680 | DEFAULT_wxUSE_GRID=no | |
5681 | DEFAULT_wxUSE_NEW_GRID=no | |
5682 | DEFAULT_wxUSE_IMAGLIST=no | |
5683 | DEFAULT_wxUSE_LISTBOX=no | |
5684 | DEFAULT_wxUSE_LISTCTRL=no | |
5685 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5686 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5687 | DEFAULT_wxUSE_RADIOBOX=no |
5688 | DEFAULT_wxUSE_RADIOBTN=no | |
5689 | DEFAULT_wxUSE_SASH=no | |
5690 | DEFAULT_wxUSE_SCROLLBAR=no | |
5691 | DEFAULT_wxUSE_SLIDER=no | |
5692 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5693 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5694 | DEFAULT_wxUSE_SPLITTER=no |
5695 | DEFAULT_wxUSE_STATBMP=no | |
5696 | DEFAULT_wxUSE_STATBOX=no | |
5697 | DEFAULT_wxUSE_STATLINE=no | |
5698 | DEFAULT_wxUSE_STATUSBAR=no | |
5699 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5700 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5701 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5702 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5703 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5704 | DEFAULT_wxUSE_TOOLTIPS=no |
5705 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5706 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5707 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5708 | fi |
5709 | ||
8284b0c5 MB |
5710 | |
5711 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
5712 | echo "configure:5713: checking for --enable-accel" >&5 | |
10f2d63a VZ |
5713 | no_cache=0 |
5714 | # Check whether --enable-accel or --disable-accel was given. | |
5715 | if test "${enable_accel+set}" = set; then | |
5716 | enableval="$enable_accel" | |
8284b0c5 | 5717 | |
10f2d63a VZ |
5718 | if test "$enableval" = yes; then |
5719 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5720 | else | |
5721 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5722 | fi | |
8284b0c5 | 5723 | |
10f2d63a | 5724 | else |
8284b0c5 | 5725 | |
10f2d63a VZ |
5726 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5727 | if test "x$LINE" != x ; then | |
5728 | eval "DEFAULT_$LINE" | |
5729 | else | |
5730 | no_cache=1 | |
5731 | fi | |
5732 | ||
5733 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
8284b0c5 MB |
5734 | |
5735 | fi | |
10f2d63a VZ |
5736 | |
5737 | ||
5738 | eval "$ac_cv_use_accel" | |
5739 | if test "$no_cache" != 1; then | |
5740 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5741 | fi | |
5742 | ||
5743 | if test "$wxUSE_ACCEL" = yes; then | |
8284b0c5 | 5744 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5745 | else |
8284b0c5 | 5746 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5747 | fi |
8284b0c5 | 5748 | |
10f2d63a | 5749 | |
8284b0c5 MB |
5750 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
5751 | echo "configure:5752: checking for --enable-button" >&5 | |
10f2d63a | 5752 | no_cache=0 |
1e6feb95 VZ |
5753 | # Check whether --enable-button or --disable-button was given. |
5754 | if test "${enable_button+set}" = set; then | |
5755 | enableval="$enable_button" | |
8284b0c5 | 5756 | |
10f2d63a | 5757 | if test "$enableval" = yes; then |
1e6feb95 | 5758 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5759 | else |
1e6feb95 | 5760 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5761 | fi |
8284b0c5 | 5762 | |
10f2d63a | 5763 | else |
8284b0c5 | 5764 | |
1e6feb95 | 5765 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5766 | if test "x$LINE" != x ; then |
5767 | eval "DEFAULT_$LINE" | |
5768 | else | |
5769 | no_cache=1 | |
5770 | fi | |
5771 | ||
1e6feb95 | 5772 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
8284b0c5 MB |
5773 | |
5774 | fi | |
10f2d63a VZ |
5775 | |
5776 | ||
1e6feb95 | 5777 | eval "$ac_cv_use_button" |
10f2d63a | 5778 | if test "$no_cache" != 1; then |
1e6feb95 | 5779 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5780 | fi |
5781 | ||
1e6feb95 | 5782 | if test "$wxUSE_BUTTON" = yes; then |
8284b0c5 | 5783 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5784 | else |
8284b0c5 | 5785 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5786 | fi |
8284b0c5 | 5787 | |
10f2d63a | 5788 | |
8284b0c5 MB |
5789 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
5790 | echo "configure:5791: checking for --enable-bmpbutton" >&5 | |
10f2d63a VZ |
5791 | no_cache=0 |
5792 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5793 | if test "${enable_bmpbutton+set}" = set; then | |
5794 | enableval="$enable_bmpbutton" | |
8284b0c5 | 5795 | |
10f2d63a VZ |
5796 | if test "$enableval" = yes; then |
5797 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5798 | else | |
5799 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5800 | fi | |
8284b0c5 | 5801 | |
10f2d63a | 5802 | else |
8284b0c5 | 5803 | |
10f2d63a VZ |
5804 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5805 | if test "x$LINE" != x ; then | |
5806 | eval "DEFAULT_$LINE" | |
5807 | else | |
5808 | no_cache=1 | |
5809 | fi | |
5810 | ||
5811 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
8284b0c5 MB |
5812 | |
5813 | fi | |
10f2d63a VZ |
5814 | |
5815 | ||
5816 | eval "$ac_cv_use_bmpbutton" | |
5817 | if test "$no_cache" != 1; then | |
5818 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5819 | fi | |
5820 | ||
5821 | if test "$wxUSE_BMPBUTTON" = yes; then | |
8284b0c5 | 5822 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5823 | else |
8284b0c5 | 5824 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5825 | fi |
8284b0c5 | 5826 | |
10f2d63a | 5827 | |
8284b0c5 MB |
5828 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
5829 | echo "configure:5830: checking for --enable-calendar" >&5 | |
1e6feb95 VZ |
5830 | no_cache=0 |
5831 | # Check whether --enable-calendar or --disable-calendar was given. | |
5832 | if test "${enable_calendar+set}" = set; then | |
5833 | enableval="$enable_calendar" | |
8284b0c5 | 5834 | |
1e6feb95 VZ |
5835 | if test "$enableval" = yes; then |
5836 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5837 | else | |
5838 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5839 | fi | |
8284b0c5 | 5840 | |
1e6feb95 | 5841 | else |
8284b0c5 | 5842 | |
1e6feb95 VZ |
5843 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
5844 | if test "x$LINE" != x ; then | |
5845 | eval "DEFAULT_$LINE" | |
5846 | else | |
5847 | no_cache=1 | |
5848 | fi | |
5849 | ||
5850 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
8284b0c5 MB |
5851 | |
5852 | fi | |
1e6feb95 VZ |
5853 | |
5854 | ||
5855 | eval "$ac_cv_use_calendar" | |
5856 | if test "$no_cache" != 1; then | |
5857 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5858 | fi | |
5859 | ||
5860 | if test "$wxUSE_CALCTRL" = yes; then | |
8284b0c5 | 5861 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5862 | else |
8284b0c5 | 5863 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5864 | fi |
8284b0c5 | 5865 | |
1e6feb95 | 5866 | |
8284b0c5 MB |
5867 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 |
5868 | echo "configure:5869: checking for --enable-caret" >&5 | |
1e6feb95 VZ |
5869 | no_cache=0 |
5870 | # Check whether --enable-caret or --disable-caret was given. | |
5871 | if test "${enable_caret+set}" = set; then | |
5872 | enableval="$enable_caret" | |
8284b0c5 | 5873 | |
1e6feb95 VZ |
5874 | if test "$enableval" = yes; then |
5875 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5876 | else | |
5877 | ac_cv_use_caret='wxUSE_CARET=no' | |
5878 | fi | |
8284b0c5 | 5879 | |
1e6feb95 | 5880 | else |
8284b0c5 | 5881 | |
1e6feb95 VZ |
5882 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
5883 | if test "x$LINE" != x ; then | |
5884 | eval "DEFAULT_$LINE" | |
5885 | else | |
5886 | no_cache=1 | |
5887 | fi | |
5888 | ||
5889 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
8284b0c5 MB |
5890 | |
5891 | fi | |
1e6feb95 VZ |
5892 | |
5893 | ||
5894 | eval "$ac_cv_use_caret" | |
5895 | if test "$no_cache" != 1; then | |
5896 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5897 | fi | |
5898 | ||
5899 | if test "$wxUSE_CARET" = yes; then | |
8284b0c5 | 5900 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5901 | else |
8284b0c5 | 5902 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5903 | fi |
8284b0c5 | 5904 | |
1e6feb95 | 5905 | |
8284b0c5 MB |
5906 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
5907 | echo "configure:5908: checking for --enable-checkbox" >&5 | |
10f2d63a VZ |
5908 | no_cache=0 |
5909 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5910 | if test "${enable_checkbox+set}" = set; then | |
5911 | enableval="$enable_checkbox" | |
8284b0c5 | 5912 | |
10f2d63a VZ |
5913 | if test "$enableval" = yes; then |
5914 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5915 | else | |
5916 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5917 | fi | |
8284b0c5 | 5918 | |
10f2d63a | 5919 | else |
8284b0c5 | 5920 | |
10f2d63a VZ |
5921 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5922 | if test "x$LINE" != x ; then | |
5923 | eval "DEFAULT_$LINE" | |
5924 | else | |
5925 | no_cache=1 | |
5926 | fi | |
5927 | ||
5928 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
8284b0c5 MB |
5929 | |
5930 | fi | |
10f2d63a VZ |
5931 | |
5932 | ||
5933 | eval "$ac_cv_use_checkbox" | |
5934 | if test "$no_cache" != 1; then | |
5935 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5936 | fi | |
5937 | ||
5938 | if test "$wxUSE_CHECKBOX" = yes; then | |
8284b0c5 | 5939 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5940 | else |
8284b0c5 | 5941 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5942 | fi |
8284b0c5 | 5943 | |
10f2d63a | 5944 | |
8284b0c5 MB |
5945 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
5946 | echo "configure:5947: checking for --enable-checklst" >&5 | |
10f2d63a VZ |
5947 | no_cache=0 |
5948 | # Check whether --enable-checklst or --disable-checklst was given. | |
5949 | if test "${enable_checklst+set}" = set; then | |
5950 | enableval="$enable_checklst" | |
8284b0c5 | 5951 | |
10f2d63a VZ |
5952 | if test "$enableval" = yes; then |
5953 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5954 | else | |
5955 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5956 | fi | |
8284b0c5 | 5957 | |
10f2d63a | 5958 | else |
8284b0c5 | 5959 | |
10f2d63a VZ |
5960 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5961 | if test "x$LINE" != x ; then | |
5962 | eval "DEFAULT_$LINE" | |
5963 | else | |
5964 | no_cache=1 | |
5965 | fi | |
5966 | ||
5967 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
8284b0c5 MB |
5968 | |
5969 | fi | |
10f2d63a VZ |
5970 | |
5971 | ||
5972 | eval "$ac_cv_use_checklst" | |
5973 | if test "$no_cache" != 1; then | |
5974 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5975 | fi | |
5976 | ||
5977 | if test "$wxUSE_CHECKLST" = yes; then | |
8284b0c5 | 5978 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5979 | else |
8284b0c5 | 5980 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5981 | fi |
8284b0c5 | 5982 | |
10f2d63a | 5983 | |
8284b0c5 MB |
5984 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
5985 | echo "configure:5986: checking for --enable-choice" >&5 | |
10f2d63a VZ |
5986 | no_cache=0 |
5987 | # Check whether --enable-choice or --disable-choice was given. | |
5988 | if test "${enable_choice+set}" = set; then | |
5989 | enableval="$enable_choice" | |
8284b0c5 | 5990 | |
10f2d63a VZ |
5991 | if test "$enableval" = yes; then |
5992 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5993 | else | |
5994 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5995 | fi | |
8284b0c5 | 5996 | |
10f2d63a | 5997 | else |
8284b0c5 | 5998 | |
10f2d63a VZ |
5999 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6000 | if test "x$LINE" != x ; then | |
6001 | eval "DEFAULT_$LINE" | |
6002 | else | |
6003 | no_cache=1 | |
6004 | fi | |
6005 | ||
6006 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
8284b0c5 MB |
6007 | |
6008 | fi | |
10f2d63a VZ |
6009 | |
6010 | ||
6011 | eval "$ac_cv_use_choice" | |
6012 | if test "$no_cache" != 1; then | |
6013 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6014 | fi | |
6015 | ||
6016 | if test "$wxUSE_CHOICE" = yes; then | |
8284b0c5 | 6017 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6018 | else |
8284b0c5 | 6019 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6020 | fi |
8284b0c5 | 6021 | |
10f2d63a | 6022 | |
8284b0c5 MB |
6023 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
6024 | echo "configure:6025: checking for --enable-combobox" >&5 | |
10f2d63a VZ |
6025 | no_cache=0 |
6026 | # Check whether --enable-combobox or --disable-combobox was given. | |
6027 | if test "${enable_combobox+set}" = set; then | |
6028 | enableval="$enable_combobox" | |
8284b0c5 | 6029 | |
10f2d63a VZ |
6030 | if test "$enableval" = yes; then |
6031 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6032 | else | |
6033 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6034 | fi | |
8284b0c5 | 6035 | |
10f2d63a | 6036 | else |
8284b0c5 | 6037 | |
10f2d63a VZ |
6038 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6039 | if test "x$LINE" != x ; then | |
6040 | eval "DEFAULT_$LINE" | |
6041 | else | |
6042 | no_cache=1 | |
6043 | fi | |
6044 | ||
6045 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
8284b0c5 MB |
6046 | |
6047 | fi | |
10f2d63a VZ |
6048 | |
6049 | ||
6050 | eval "$ac_cv_use_combobox" | |
6051 | if test "$no_cache" != 1; then | |
6052 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6053 | fi | |
6054 | ||
6055 | if test "$wxUSE_COMBOBOX" = yes; then | |
8284b0c5 | 6056 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6057 | else |
8284b0c5 | 6058 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6059 | fi |
8284b0c5 | 6060 | |
10f2d63a | 6061 | |
8284b0c5 MB |
6062 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
6063 | echo "configure:6064: checking for --enable-gauge" >&5 | |
10f2d63a VZ |
6064 | no_cache=0 |
6065 | # Check whether --enable-gauge or --disable-gauge was given. | |
6066 | if test "${enable_gauge+set}" = set; then | |
6067 | enableval="$enable_gauge" | |
8284b0c5 | 6068 | |
10f2d63a VZ |
6069 | if test "$enableval" = yes; then |
6070 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6071 | else | |
6072 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6073 | fi | |
8284b0c5 | 6074 | |
10f2d63a | 6075 | else |
8284b0c5 | 6076 | |
10f2d63a VZ |
6077 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6078 | if test "x$LINE" != x ; then | |
6079 | eval "DEFAULT_$LINE" | |
6080 | else | |
6081 | no_cache=1 | |
6082 | fi | |
6083 | ||
6084 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
8284b0c5 MB |
6085 | |
6086 | fi | |
10f2d63a VZ |
6087 | |
6088 | ||
6089 | eval "$ac_cv_use_gauge" | |
6090 | if test "$no_cache" != 1; then | |
6091 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6092 | fi | |
6093 | ||
6094 | if test "$wxUSE_GAUGE" = yes; then | |
8284b0c5 | 6095 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6096 | else |
8284b0c5 | 6097 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6098 | fi |
8284b0c5 | 6099 | |
10f2d63a | 6100 | |
8284b0c5 MB |
6101 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
6102 | echo "configure:6103: checking for --enable-grid" >&5 | |
10f2d63a VZ |
6103 | no_cache=0 |
6104 | # Check whether --enable-grid or --disable-grid was given. | |
6105 | if test "${enable_grid+set}" = set; then | |
6106 | enableval="$enable_grid" | |
8284b0c5 | 6107 | |
10f2d63a VZ |
6108 | if test "$enableval" = yes; then |
6109 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6110 | else | |
6111 | ac_cv_use_grid='wxUSE_GRID=no' | |
6112 | fi | |
8284b0c5 | 6113 | |
10f2d63a | 6114 | else |
8284b0c5 | 6115 | |
10f2d63a VZ |
6116 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6117 | if test "x$LINE" != x ; then | |
6118 | eval "DEFAULT_$LINE" | |
6119 | else | |
6120 | no_cache=1 | |
6121 | fi | |
6122 | ||
6123 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
8284b0c5 MB |
6124 | |
6125 | fi | |
10f2d63a VZ |
6126 | |
6127 | ||
6128 | eval "$ac_cv_use_grid" | |
6129 | if test "$no_cache" != 1; then | |
6130 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6131 | fi | |
6132 | ||
6133 | if test "$wxUSE_GRID" = yes; then | |
8284b0c5 | 6134 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6135 | else |
8284b0c5 | 6136 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6137 | fi |
8284b0c5 | 6138 | |
10f2d63a | 6139 | |
8284b0c5 MB |
6140 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
6141 | echo "configure:6142: checking for --enable-newgrid" >&5 | |
10f2d63a VZ |
6142 | no_cache=0 |
6143 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6144 | if test "${enable_newgrid+set}" = set; then | |
6145 | enableval="$enable_newgrid" | |
8284b0c5 | 6146 | |
10f2d63a VZ |
6147 | if test "$enableval" = yes; then |
6148 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6149 | else | |
6150 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6151 | fi | |
8284b0c5 | 6152 | |
10f2d63a | 6153 | else |
8284b0c5 | 6154 | |
10f2d63a VZ |
6155 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6156 | if test "x$LINE" != x ; then | |
6157 | eval "DEFAULT_$LINE" | |
6158 | else | |
6159 | no_cache=1 | |
6160 | fi | |
6161 | ||
6162 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
8284b0c5 MB |
6163 | |
6164 | fi | |
10f2d63a VZ |
6165 | |
6166 | ||
6167 | eval "$ac_cv_use_newgrid" | |
6168 | if test "$no_cache" != 1; then | |
6169 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6170 | fi | |
6171 | ||
6172 | if test "$wxUSE_NEW_GRID" = yes; then | |
8284b0c5 | 6173 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6174 | else |
8284b0c5 | 6175 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6176 | fi |
8284b0c5 | 6177 | |
10f2d63a | 6178 | |
8284b0c5 MB |
6179 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
6180 | echo "configure:6181: checking for --enable-imaglist" >&5 | |
10f2d63a VZ |
6181 | no_cache=0 |
6182 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6183 | if test "${enable_imaglist+set}" = set; then | |
6184 | enableval="$enable_imaglist" | |
8284b0c5 | 6185 | |
10f2d63a VZ |
6186 | if test "$enableval" = yes; then |
6187 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6188 | else | |
6189 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6190 | fi | |
8284b0c5 | 6191 | |
10f2d63a | 6192 | else |
8284b0c5 | 6193 | |
10f2d63a VZ |
6194 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6195 | if test "x$LINE" != x ; then | |
6196 | eval "DEFAULT_$LINE" | |
6197 | else | |
6198 | no_cache=1 | |
6199 | fi | |
6200 | ||
6201 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
8284b0c5 MB |
6202 | |
6203 | fi | |
10f2d63a VZ |
6204 | |
6205 | ||
6206 | eval "$ac_cv_use_imaglist" | |
6207 | if test "$no_cache" != 1; then | |
6208 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6209 | fi | |
6210 | ||
6211 | if test "$wxUSE_IMAGLIST" = yes; then | |
8284b0c5 | 6212 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6213 | else |
8284b0c5 | 6214 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6215 | fi |
8284b0c5 | 6216 | |
10f2d63a | 6217 | |
8284b0c5 MB |
6218 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
6219 | echo "configure:6220: checking for --enable-listbox" >&5 | |
10f2d63a VZ |
6220 | no_cache=0 |
6221 | # Check whether --enable-listbox or --disable-listbox was given. | |
6222 | if test "${enable_listbox+set}" = set; then | |
6223 | enableval="$enable_listbox" | |
8284b0c5 | 6224 | |
10f2d63a VZ |
6225 | if test "$enableval" = yes; then |
6226 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6227 | else | |
6228 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6229 | fi | |
8284b0c5 | 6230 | |
10f2d63a | 6231 | else |
8284b0c5 | 6232 | |
10f2d63a VZ |
6233 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6234 | if test "x$LINE" != x ; then | |
6235 | eval "DEFAULT_$LINE" | |
6236 | else | |
6237 | no_cache=1 | |
6238 | fi | |
6239 | ||
6240 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
8284b0c5 MB |
6241 | |
6242 | fi | |
10f2d63a VZ |
6243 | |
6244 | ||
6245 | eval "$ac_cv_use_listbox" | |
6246 | if test "$no_cache" != 1; then | |
6247 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6248 | fi | |
6249 | ||
6250 | if test "$wxUSE_LISTBOX" = yes; then | |
8284b0c5 | 6251 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6252 | else |
8284b0c5 | 6253 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6254 | fi |
8284b0c5 | 6255 | |
10f2d63a | 6256 | |
8284b0c5 MB |
6257 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
6258 | echo "configure:6259: checking for --enable-listctrl" >&5 | |
10f2d63a VZ |
6259 | no_cache=0 |
6260 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6261 | if test "${enable_listctrl+set}" = set; then | |
6262 | enableval="$enable_listctrl" | |
8284b0c5 | 6263 | |
10f2d63a VZ |
6264 | if test "$enableval" = yes; then |
6265 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6266 | else | |
6267 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6268 | fi | |
8284b0c5 | 6269 | |
10f2d63a | 6270 | else |
8284b0c5 | 6271 | |
10f2d63a VZ |
6272 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6273 | if test "x$LINE" != x ; then | |
6274 | eval "DEFAULT_$LINE" | |
6275 | else | |
6276 | no_cache=1 | |
6277 | fi | |
6278 | ||
6279 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
8284b0c5 MB |
6280 | |
6281 | fi | |
10f2d63a VZ |
6282 | |
6283 | ||
6284 | eval "$ac_cv_use_listctrl" | |
6285 | if test "$no_cache" != 1; then | |
6286 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6287 | fi | |
6288 | ||
6289 | if test "$wxUSE_LISTCTRL" = yes; then | |
8284b0c5 | 6290 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6291 | else |
8284b0c5 | 6292 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6293 | fi |
8284b0c5 | 6294 | |
10f2d63a | 6295 | |
8284b0c5 MB |
6296 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
6297 | echo "configure:6298: checking for --enable-notebook" >&5 | |
10f2d63a VZ |
6298 | no_cache=0 |
6299 | # Check whether --enable-notebook or --disable-notebook was given. | |
6300 | if test "${enable_notebook+set}" = set; then | |
6301 | enableval="$enable_notebook" | |
8284b0c5 | 6302 | |
10f2d63a VZ |
6303 | if test "$enableval" = yes; then |
6304 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6305 | else | |
6306 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6307 | fi | |
8284b0c5 | 6308 | |
10f2d63a | 6309 | else |
8284b0c5 | 6310 | |
10f2d63a VZ |
6311 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6312 | if test "x$LINE" != x ; then | |
6313 | eval "DEFAULT_$LINE" | |
6314 | else | |
6315 | no_cache=1 | |
6316 | fi | |
6317 | ||
6318 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
8284b0c5 MB |
6319 | |
6320 | fi | |
10f2d63a VZ |
6321 | |
6322 | ||
6323 | eval "$ac_cv_use_notebook" | |
6324 | if test "$no_cache" != 1; then | |
6325 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6326 | fi | |
6327 | ||
6328 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8284b0c5 | 6329 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6330 | else |
8284b0c5 | 6331 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6332 | fi |
8284b0c5 | 6333 | |
10f2d63a | 6334 | |
8284b0c5 MB |
6335 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
6336 | echo "configure:6337: checking for --enable-propsheet" >&5 | |
24176f2c GD |
6337 | no_cache=0 |
6338 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6339 | if test "${enable_propsheet+set}" = set; then | |
6340 | enableval="$enable_propsheet" | |
8284b0c5 | 6341 | |
24176f2c GD |
6342 | if test "$enableval" = yes; then |
6343 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6344 | else | |
6345 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6346 | fi | |
8284b0c5 | 6347 | |
24176f2c | 6348 | else |
8284b0c5 | 6349 | |
24176f2c GD |
6350 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` |
6351 | if test "x$LINE" != x ; then | |
6352 | eval "DEFAULT_$LINE" | |
6353 | else | |
6354 | no_cache=1 | |
6355 | fi | |
6356 | ||
6357 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
8284b0c5 MB |
6358 | |
6359 | fi | |
24176f2c GD |
6360 | |
6361 | ||
6362 | eval "$ac_cv_use_propsheet" | |
6363 | if test "$no_cache" != 1; then | |
6364 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6365 | fi | |
6366 | ||
6367 | if test "$wxUSE_PROPSHEET" = yes; then | |
8284b0c5 | 6368 | echo "$ac_t""yes" 1>&6 |
24176f2c | 6369 | else |
8284b0c5 | 6370 | echo "$ac_t""no" 1>&6 |
24176f2c | 6371 | fi |
8284b0c5 | 6372 | |
24176f2c | 6373 | |
8284b0c5 MB |
6374 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
6375 | echo "configure:6376: checking for --enable-radiobox" >&5 | |
10f2d63a VZ |
6376 | no_cache=0 |
6377 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6378 | if test "${enable_radiobox+set}" = set; then | |
6379 | enableval="$enable_radiobox" | |
8284b0c5 | 6380 | |
10f2d63a VZ |
6381 | if test "$enableval" = yes; then |
6382 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6383 | else | |
6384 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6385 | fi | |
8284b0c5 | 6386 | |
10f2d63a | 6387 | else |
8284b0c5 | 6388 | |
10f2d63a VZ |
6389 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6390 | if test "x$LINE" != x ; then | |
6391 | eval "DEFAULT_$LINE" | |
6392 | else | |
6393 | no_cache=1 | |
6394 | fi | |
6395 | ||
6396 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8284b0c5 MB |
6397 | |
6398 | fi | |
10f2d63a VZ |
6399 | |
6400 | ||
6401 | eval "$ac_cv_use_radiobox" | |
6402 | if test "$no_cache" != 1; then | |
6403 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6404 | fi | |
6405 | ||
6406 | if test "$wxUSE_RADIOBOX" = yes; then | |
8284b0c5 | 6407 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6408 | else |
8284b0c5 | 6409 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6410 | fi |
8284b0c5 | 6411 | |
10f2d63a | 6412 | |
8284b0c5 MB |
6413 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
6414 | echo "configure:6415: checking for --enable-radiobtn" >&5 | |
10f2d63a VZ |
6415 | no_cache=0 |
6416 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6417 | if test "${enable_radiobtn+set}" = set; then | |
6418 | enableval="$enable_radiobtn" | |
8284b0c5 | 6419 | |
10f2d63a VZ |
6420 | if test "$enableval" = yes; then |
6421 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6422 | else | |
6423 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6424 | fi | |
8284b0c5 | 6425 | |
10f2d63a | 6426 | else |
8284b0c5 | 6427 | |
10f2d63a VZ |
6428 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6429 | if test "x$LINE" != x ; then | |
6430 | eval "DEFAULT_$LINE" | |
6431 | else | |
6432 | no_cache=1 | |
6433 | fi | |
6434 | ||
6435 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8284b0c5 MB |
6436 | |
6437 | fi | |
10f2d63a VZ |
6438 | |
6439 | ||
6440 | eval "$ac_cv_use_radiobtn" | |
6441 | if test "$no_cache" != 1; then | |
6442 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6443 | fi | |
6444 | ||
6445 | if test "$wxUSE_RADIOBTN" = yes; then | |
8284b0c5 | 6446 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6447 | else |
8284b0c5 | 6448 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6449 | fi |
8284b0c5 | 6450 | |
10f2d63a | 6451 | |
8284b0c5 MB |
6452 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
6453 | echo "configure:6454: checking for --enable-sash" >&5 | |
10f2d63a VZ |
6454 | no_cache=0 |
6455 | # Check whether --enable-sash or --disable-sash was given. | |
6456 | if test "${enable_sash+set}" = set; then | |
6457 | enableval="$enable_sash" | |
8284b0c5 | 6458 | |
10f2d63a VZ |
6459 | if test "$enableval" = yes; then |
6460 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6461 | else | |
6462 | ac_cv_use_sash='wxUSE_SASH=no' | |
6463 | fi | |
8284b0c5 | 6464 | |
10f2d63a | 6465 | else |
8284b0c5 | 6466 | |
10f2d63a VZ |
6467 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6468 | if test "x$LINE" != x ; then | |
6469 | eval "DEFAULT_$LINE" | |
6470 | else | |
6471 | no_cache=1 | |
6472 | fi | |
6473 | ||
6474 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8284b0c5 MB |
6475 | |
6476 | fi | |
10f2d63a VZ |
6477 | |
6478 | ||
6479 | eval "$ac_cv_use_sash" | |
6480 | if test "$no_cache" != 1; then | |
6481 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6482 | fi | |
6483 | ||
6484 | if test "$wxUSE_SASH" = yes; then | |
8284b0c5 | 6485 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6486 | else |
8284b0c5 | 6487 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6488 | fi |
8284b0c5 | 6489 | |
10f2d63a | 6490 | |
8284b0c5 MB |
6491 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
6492 | echo "configure:6493: checking for --enable-scrollbar" >&5 | |
10f2d63a VZ |
6493 | no_cache=0 |
6494 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6495 | if test "${enable_scrollbar+set}" = set; then | |
6496 | enableval="$enable_scrollbar" | |
8284b0c5 | 6497 | |
10f2d63a VZ |
6498 | if test "$enableval" = yes; then |
6499 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6500 | else | |
6501 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6502 | fi | |
8284b0c5 | 6503 | |
10f2d63a | 6504 | else |
8284b0c5 | 6505 | |
10f2d63a VZ |
6506 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6507 | if test "x$LINE" != x ; then | |
6508 | eval "DEFAULT_$LINE" | |
6509 | else | |
6510 | no_cache=1 | |
6511 | fi | |
6512 | ||
6513 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8284b0c5 MB |
6514 | |
6515 | fi | |
10f2d63a VZ |
6516 | |
6517 | ||
6518 | eval "$ac_cv_use_scrollbar" | |
6519 | if test "$no_cache" != 1; then | |
6520 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6521 | fi | |
6522 | ||
6523 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8284b0c5 | 6524 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6525 | else |
8284b0c5 | 6526 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6527 | fi |
8284b0c5 | 6528 | |
10f2d63a | 6529 | |
8284b0c5 MB |
6530 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
6531 | echo "configure:6532: checking for --enable-slider" >&5 | |
10f2d63a VZ |
6532 | no_cache=0 |
6533 | # Check whether --enable-slider or --disable-slider was given. | |
6534 | if test "${enable_slider+set}" = set; then | |
6535 | enableval="$enable_slider" | |
8284b0c5 | 6536 | |
10f2d63a VZ |
6537 | if test "$enableval" = yes; then |
6538 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6539 | else | |
6540 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6541 | fi | |
8284b0c5 | 6542 | |
10f2d63a | 6543 | else |
8284b0c5 | 6544 | |
10f2d63a VZ |
6545 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6546 | if test "x$LINE" != x ; then | |
6547 | eval "DEFAULT_$LINE" | |
6548 | else | |
6549 | no_cache=1 | |
6550 | fi | |
6551 | ||
6552 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8284b0c5 MB |
6553 | |
6554 | fi | |
10f2d63a VZ |
6555 | |
6556 | ||
6557 | eval "$ac_cv_use_slider" | |
6558 | if test "$no_cache" != 1; then | |
6559 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6560 | fi | |
6561 | ||
6562 | if test "$wxUSE_SLIDER" = yes; then | |
8284b0c5 | 6563 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6564 | else |
8284b0c5 | 6565 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6566 | fi |
8284b0c5 | 6567 | |
10f2d63a | 6568 | |
8284b0c5 MB |
6569 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
6570 | echo "configure:6571: checking for --enable-spinbtn" >&5 | |
10f2d63a VZ |
6571 | no_cache=0 |
6572 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6573 | if test "${enable_spinbtn+set}" = set; then | |
6574 | enableval="$enable_spinbtn" | |
8284b0c5 | 6575 | |
10f2d63a VZ |
6576 | if test "$enableval" = yes; then |
6577 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6578 | else | |
6579 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6580 | fi | |
8284b0c5 | 6581 | |
10f2d63a | 6582 | else |
8284b0c5 | 6583 | |
10f2d63a VZ |
6584 | LINE=`grep "wxUSE_SPINBTN" ${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_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8284b0c5 MB |
6592 | |
6593 | fi | |
10f2d63a VZ |
6594 | |
6595 | ||
6596 | eval "$ac_cv_use_spinbtn" | |
6597 | if test "$no_cache" != 1; then | |
6598 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6599 | fi | |
6600 | ||
6601 | if test "$wxUSE_SPINBTN" = yes; then | |
8284b0c5 | 6602 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6603 | else |
8284b0c5 | 6604 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6605 | fi |
8284b0c5 | 6606 | |
10f2d63a | 6607 | |
8284b0c5 MB |
6608 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
6609 | echo "configure:6610: checking for --enable-spinctrl" >&5 | |
56cfaa52 RR |
6610 | no_cache=0 |
6611 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6612 | if test "${enable_spinctrl+set}" = set; then | |
6613 | enableval="$enable_spinctrl" | |
8284b0c5 | 6614 | |
56cfaa52 RR |
6615 | if test "$enableval" = yes; then |
6616 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6617 | else | |
6618 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6619 | fi | |
8284b0c5 | 6620 | |
56cfaa52 | 6621 | else |
8284b0c5 | 6622 | |
56cfaa52 RR |
6623 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6624 | if test "x$LINE" != x ; then | |
6625 | eval "DEFAULT_$LINE" | |
6626 | else | |
6627 | no_cache=1 | |
6628 | fi | |
6629 | ||
6630 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8284b0c5 MB |
6631 | |
6632 | fi | |
56cfaa52 RR |
6633 | |
6634 | ||
6635 | eval "$ac_cv_use_spinctrl" | |
6636 | if test "$no_cache" != 1; then | |
6637 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6638 | fi | |
6639 | ||
6640 | if test "$wxUSE_SPINCTRL" = yes; then | |
8284b0c5 | 6641 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6642 | else |
8284b0c5 | 6643 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6644 | fi |
8284b0c5 | 6645 | |
56cfaa52 | 6646 | |
8284b0c5 MB |
6647 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
6648 | echo "configure:6649: checking for --enable-splitter" >&5 | |
10f2d63a VZ |
6649 | no_cache=0 |
6650 | # Check whether --enable-splitter or --disable-splitter was given. | |
6651 | if test "${enable_splitter+set}" = set; then | |
6652 | enableval="$enable_splitter" | |
8284b0c5 | 6653 | |
10f2d63a VZ |
6654 | if test "$enableval" = yes; then |
6655 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6656 | else | |
6657 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6658 | fi | |
8284b0c5 | 6659 | |
10f2d63a | 6660 | else |
8284b0c5 | 6661 | |
10f2d63a VZ |
6662 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6663 | if test "x$LINE" != x ; then | |
6664 | eval "DEFAULT_$LINE" | |
6665 | else | |
6666 | no_cache=1 | |
6667 | fi | |
6668 | ||
6669 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8284b0c5 MB |
6670 | |
6671 | fi | |
10f2d63a VZ |
6672 | |
6673 | ||
6674 | eval "$ac_cv_use_splitter" | |
6675 | if test "$no_cache" != 1; then | |
6676 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6677 | fi | |
6678 | ||
6679 | if test "$wxUSE_SPLITTER" = yes; then | |
8284b0c5 | 6680 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6681 | else |
8284b0c5 | 6682 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6683 | fi |
8284b0c5 | 6684 | |
10f2d63a | 6685 | |
8284b0c5 MB |
6686 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
6687 | echo "configure:6688: checking for --enable-statbmp" >&5 | |
10f2d63a VZ |
6688 | no_cache=0 |
6689 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6690 | if test "${enable_statbmp+set}" = set; then | |
6691 | enableval="$enable_statbmp" | |
8284b0c5 | 6692 | |
10f2d63a VZ |
6693 | if test "$enableval" = yes; then |
6694 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6695 | else | |
6696 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6697 | fi | |
8284b0c5 | 6698 | |
10f2d63a | 6699 | else |
8284b0c5 | 6700 | |
10f2d63a VZ |
6701 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6702 | if test "x$LINE" != x ; then | |
6703 | eval "DEFAULT_$LINE" | |
6704 | else | |
6705 | no_cache=1 | |
6706 | fi | |
6707 | ||
6708 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8284b0c5 MB |
6709 | |
6710 | fi | |
10f2d63a VZ |
6711 | |
6712 | ||
6713 | eval "$ac_cv_use_statbmp" | |
6714 | if test "$no_cache" != 1; then | |
6715 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6716 | fi | |
6717 | ||
6718 | if test "$wxUSE_STATBMP" = yes; then | |
8284b0c5 | 6719 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6720 | else |
8284b0c5 | 6721 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6722 | fi |
8284b0c5 | 6723 | |
10f2d63a | 6724 | |
8284b0c5 MB |
6725 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
6726 | echo "configure:6727: checking for --enable-statbox" >&5 | |
10f2d63a VZ |
6727 | no_cache=0 |
6728 | # Check whether --enable-statbox or --disable-statbox was given. | |
6729 | if test "${enable_statbox+set}" = set; then | |
6730 | enableval="$enable_statbox" | |
8284b0c5 | 6731 | |
10f2d63a VZ |
6732 | if test "$enableval" = yes; then |
6733 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6734 | else | |
6735 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6736 | fi | |
8284b0c5 | 6737 | |
10f2d63a | 6738 | else |
8284b0c5 | 6739 | |
10f2d63a VZ |
6740 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6741 | if test "x$LINE" != x ; then | |
6742 | eval "DEFAULT_$LINE" | |
6743 | else | |
6744 | no_cache=1 | |
6745 | fi | |
6746 | ||
6747 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8284b0c5 MB |
6748 | |
6749 | fi | |
10f2d63a VZ |
6750 | |
6751 | ||
6752 | eval "$ac_cv_use_statbox" | |
6753 | if test "$no_cache" != 1; then | |
6754 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6755 | fi | |
6756 | ||
6757 | if test "$wxUSE_STATBOX" = yes; then | |
8284b0c5 | 6758 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6759 | else |
8284b0c5 | 6760 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6761 | fi |
8284b0c5 | 6762 | |
10f2d63a | 6763 | |
8284b0c5 MB |
6764 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
6765 | echo "configure:6766: checking for --enable-statline" >&5 | |
10f2d63a VZ |
6766 | no_cache=0 |
6767 | # Check whether --enable-statline or --disable-statline was given. | |
6768 | if test "${enable_statline+set}" = set; then | |
6769 | enableval="$enable_statline" | |
8284b0c5 | 6770 | |
10f2d63a VZ |
6771 | if test "$enableval" = yes; then |
6772 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6773 | else | |
6774 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6775 | fi | |
8284b0c5 | 6776 | |
10f2d63a | 6777 | else |
8284b0c5 | 6778 | |
10f2d63a VZ |
6779 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6780 | if test "x$LINE" != x ; then | |
6781 | eval "DEFAULT_$LINE" | |
6782 | else | |
6783 | no_cache=1 | |
6784 | fi | |
6785 | ||
6786 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8284b0c5 MB |
6787 | |
6788 | fi | |
10f2d63a VZ |
6789 | |
6790 | ||
6791 | eval "$ac_cv_use_statline" | |
6792 | if test "$no_cache" != 1; then | |
6793 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6794 | fi | |
6795 | ||
6796 | if test "$wxUSE_STATLINE" = yes; then | |
8284b0c5 | 6797 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6798 | else |
8284b0c5 | 6799 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6800 | fi |
8284b0c5 | 6801 | |
10f2d63a | 6802 | |
8284b0c5 MB |
6803 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
6804 | echo "configure:6805: checking for --enable-stattext" >&5 | |
1e6feb95 VZ |
6805 | no_cache=0 |
6806 | # Check whether --enable-stattext or --disable-stattext was given. | |
6807 | if test "${enable_stattext+set}" = set; then | |
6808 | enableval="$enable_stattext" | |
8284b0c5 | 6809 | |
1e6feb95 VZ |
6810 | if test "$enableval" = yes; then |
6811 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6812 | else | |
6813 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6814 | fi | |
8284b0c5 | 6815 | |
1e6feb95 | 6816 | else |
8284b0c5 | 6817 | |
1e6feb95 VZ |
6818 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
6819 | if test "x$LINE" != x ; then | |
6820 | eval "DEFAULT_$LINE" | |
6821 | else | |
6822 | no_cache=1 | |
6823 | fi | |
6824 | ||
6825 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8284b0c5 MB |
6826 | |
6827 | fi | |
1e6feb95 VZ |
6828 | |
6829 | ||
6830 | eval "$ac_cv_use_stattext" | |
6831 | if test "$no_cache" != 1; then | |
6832 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6833 | fi | |
6834 | ||
6835 | if test "$wxUSE_STATTEXT" = yes; then | |
8284b0c5 | 6836 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6837 | else |
8284b0c5 | 6838 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6839 | fi |
8284b0c5 | 6840 | |
1e6feb95 | 6841 | |
8284b0c5 MB |
6842 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
6843 | echo "configure:6844: checking for --enable-statusbar" >&5 | |
10f2d63a VZ |
6844 | no_cache=0 |
6845 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6846 | if test "${enable_statusbar+set}" = set; then | |
6847 | enableval="$enable_statusbar" | |
8284b0c5 | 6848 | |
10f2d63a VZ |
6849 | if test "$enableval" = yes; then |
6850 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6851 | else | |
6852 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6853 | fi | |
8284b0c5 | 6854 | |
10f2d63a | 6855 | else |
8284b0c5 | 6856 | |
10f2d63a VZ |
6857 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6858 | if test "x$LINE" != x ; then | |
6859 | eval "DEFAULT_$LINE" | |
6860 | else | |
6861 | no_cache=1 | |
6862 | fi | |
6863 | ||
6864 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8284b0c5 MB |
6865 | |
6866 | fi | |
10f2d63a VZ |
6867 | |
6868 | ||
6869 | eval "$ac_cv_use_statusbar" | |
6870 | if test "$no_cache" != 1; then | |
6871 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6872 | fi | |
6873 | ||
6874 | if test "$wxUSE_STATUSBAR" = yes; then | |
8284b0c5 | 6875 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6876 | else |
8284b0c5 | 6877 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6878 | fi |
8284b0c5 | 6879 | |
10f2d63a | 6880 | |
8284b0c5 MB |
6881 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
6882 | echo "configure:6883: checking for --enable-tabdialog" >&5 | |
10f2d63a VZ |
6883 | no_cache=0 |
6884 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6885 | if test "${enable_tabdialog+set}" = set; then | |
6886 | enableval="$enable_tabdialog" | |
8284b0c5 | 6887 | |
10f2d63a VZ |
6888 | if test "$enableval" = yes; then |
6889 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6890 | else | |
6891 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6892 | fi | |
8284b0c5 | 6893 | |
10f2d63a | 6894 | else |
8284b0c5 | 6895 | |
10f2d63a VZ |
6896 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6897 | if test "x$LINE" != x ; then | |
6898 | eval "DEFAULT_$LINE" | |
6899 | else | |
6900 | no_cache=1 | |
6901 | fi | |
6902 | ||
6903 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8284b0c5 MB |
6904 | |
6905 | fi | |
10f2d63a VZ |
6906 | |
6907 | ||
6908 | eval "$ac_cv_use_tabdialog" | |
6909 | if test "$no_cache" != 1; then | |
6910 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6911 | fi | |
6912 | ||
6913 | if test "$wxUSE_TABDIALOG" = yes; then | |
8284b0c5 | 6914 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6915 | else |
8284b0c5 | 6916 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6917 | fi |
8284b0c5 | 6918 | |
10f2d63a | 6919 | |
8284b0c5 MB |
6920 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
6921 | echo "configure:6922: checking for --enable-textctrl" >&5 | |
1e6feb95 VZ |
6922 | no_cache=0 |
6923 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6924 | if test "${enable_textctrl+set}" = set; then | |
6925 | enableval="$enable_textctrl" | |
8284b0c5 | 6926 | |
1e6feb95 VZ |
6927 | if test "$enableval" = yes; then |
6928 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6929 | else | |
6930 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6931 | fi | |
8284b0c5 | 6932 | |
1e6feb95 | 6933 | else |
8284b0c5 | 6934 | |
1e6feb95 VZ |
6935 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
6936 | if test "x$LINE" != x ; then | |
6937 | eval "DEFAULT_$LINE" | |
6938 | else | |
6939 | no_cache=1 | |
6940 | fi | |
6941 | ||
6942 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8284b0c5 MB |
6943 | |
6944 | fi | |
1e6feb95 VZ |
6945 | |
6946 | ||
6947 | eval "$ac_cv_use_textctrl" | |
6948 | if test "$no_cache" != 1; then | |
6949 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6950 | fi | |
6951 | ||
6952 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8284b0c5 | 6953 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6954 | else |
8284b0c5 | 6955 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6956 | fi |
8284b0c5 | 6957 | |
1e6feb95 | 6958 | |
8284b0c5 MB |
6959 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
6960 | echo "configure:6961: checking for --enable-togglebtn" >&5 | |
1db8dc4a VZ |
6961 | no_cache=0 |
6962 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6963 | if test "${enable_togglebtn+set}" = set; then | |
6964 | enableval="$enable_togglebtn" | |
8284b0c5 | 6965 | |
1db8dc4a VZ |
6966 | if test "$enableval" = yes; then |
6967 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6968 | else | |
6969 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6970 | fi | |
8284b0c5 | 6971 | |
1db8dc4a | 6972 | else |
8284b0c5 | 6973 | |
1db8dc4a VZ |
6974 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6975 | if test "x$LINE" != x ; then | |
6976 | eval "DEFAULT_$LINE" | |
6977 | else | |
6978 | no_cache=1 | |
6979 | fi | |
6980 | ||
6981 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8284b0c5 MB |
6982 | |
6983 | fi | |
1db8dc4a VZ |
6984 | |
6985 | ||
6986 | eval "$ac_cv_use_togglebtn" | |
6987 | if test "$no_cache" != 1; then | |
6988 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6989 | fi | |
6990 | ||
6991 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8284b0c5 | 6992 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6993 | else |
8284b0c5 | 6994 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6995 | fi |
8284b0c5 | 6996 | |
1db8dc4a | 6997 | |
8284b0c5 MB |
6998 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
6999 | echo "configure:7000: checking for --enable-toolbar" >&5 | |
10f2d63a VZ |
7000 | no_cache=0 |
7001 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7002 | if test "${enable_toolbar+set}" = set; then | |
7003 | enableval="$enable_toolbar" | |
8284b0c5 | 7004 | |
10f2d63a VZ |
7005 | if test "$enableval" = yes; then |
7006 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7007 | else | |
7008 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7009 | fi | |
8284b0c5 | 7010 | |
10f2d63a | 7011 | else |
8284b0c5 | 7012 | |
10f2d63a VZ |
7013 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7014 | if test "x$LINE" != x ; then | |
7015 | eval "DEFAULT_$LINE" | |
7016 | else | |
7017 | no_cache=1 | |
7018 | fi | |
7019 | ||
7020 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8284b0c5 MB |
7021 | |
7022 | fi | |
10f2d63a VZ |
7023 | |
7024 | ||
7025 | eval "$ac_cv_use_toolbar" | |
7026 | if test "$no_cache" != 1; then | |
7027 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7028 | fi | |
7029 | ||
7030 | if test "$wxUSE_TOOLBAR" = yes; then | |
8284b0c5 | 7031 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7032 | else |
8284b0c5 | 7033 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7034 | fi |
8284b0c5 | 7035 | |
10f2d63a | 7036 | |
8284b0c5 MB |
7037 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
7038 | echo "configure:7039: checking for --enable-tbarnative" >&5 | |
360d6699 VZ |
7039 | no_cache=0 |
7040 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7041 | if test "${enable_tbarnative+set}" = set; then | |
7042 | enableval="$enable_tbarnative" | |
8284b0c5 | 7043 | |
360d6699 VZ |
7044 | if test "$enableval" = yes; then |
7045 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7046 | else | |
7047 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7048 | fi | |
8284b0c5 | 7049 | |
360d6699 | 7050 | else |
8284b0c5 | 7051 | |
360d6699 VZ |
7052 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7053 | if test "x$LINE" != x ; then | |
7054 | eval "DEFAULT_$LINE" | |
7055 | else | |
7056 | no_cache=1 | |
7057 | fi | |
7058 | ||
7059 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8284b0c5 MB |
7060 | |
7061 | fi | |
360d6699 VZ |
7062 | |
7063 | ||
7064 | eval "$ac_cv_use_tbarnative" | |
7065 | if test "$no_cache" != 1; then | |
7066 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7067 | fi | |
7068 | ||
7069 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8284b0c5 | 7070 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7071 | else |
8284b0c5 | 7072 | echo "$ac_t""no" 1>&6 |
360d6699 | 7073 | fi |
8284b0c5 | 7074 | |
360d6699 | 7075 | |
8284b0c5 MB |
7076 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
7077 | echo "configure:7078: checking for --enable-tbarsmpl" >&5 | |
360d6699 VZ |
7078 | no_cache=0 |
7079 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7080 | if test "${enable_tbarsmpl+set}" = set; then | |
7081 | enableval="$enable_tbarsmpl" | |
8284b0c5 | 7082 | |
360d6699 VZ |
7083 | if test "$enableval" = yes; then |
7084 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7085 | else | |
7086 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7087 | fi | |
8284b0c5 | 7088 | |
360d6699 | 7089 | else |
8284b0c5 | 7090 | |
360d6699 VZ |
7091 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7092 | if test "x$LINE" != x ; then | |
7093 | eval "DEFAULT_$LINE" | |
7094 | else | |
7095 | no_cache=1 | |
7096 | fi | |
7097 | ||
7098 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8284b0c5 MB |
7099 | |
7100 | fi | |
360d6699 VZ |
7101 | |
7102 | ||
7103 | eval "$ac_cv_use_tbarsmpl" | |
7104 | if test "$no_cache" != 1; then | |
7105 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7106 | fi | |
7107 | ||
7108 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8284b0c5 | 7109 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7110 | else |
8284b0c5 | 7111 | echo "$ac_t""no" 1>&6 |
360d6699 | 7112 | fi |
8284b0c5 | 7113 | |
360d6699 | 7114 | |
8284b0c5 MB |
7115 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
7116 | echo "configure:7117: checking for --enable-treectrl" >&5 | |
10f2d63a VZ |
7117 | no_cache=0 |
7118 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7119 | if test "${enable_treectrl+set}" = set; then | |
7120 | enableval="$enable_treectrl" | |
8284b0c5 | 7121 | |
10f2d63a VZ |
7122 | if test "$enableval" = yes; then |
7123 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7124 | else | |
7125 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7126 | fi | |
8284b0c5 | 7127 | |
10f2d63a | 7128 | else |
8284b0c5 | 7129 | |
10f2d63a VZ |
7130 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7131 | if test "x$LINE" != x ; then | |
7132 | eval "DEFAULT_$LINE" | |
7133 | else | |
7134 | no_cache=1 | |
7135 | fi | |
7136 | ||
7137 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8284b0c5 MB |
7138 | |
7139 | fi | |
10f2d63a VZ |
7140 | |
7141 | ||
1e6feb95 VZ |
7142 | eval "$ac_cv_use_treectrl" |
7143 | if test "$no_cache" != 1; then | |
7144 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7145 | fi | |
7146 | ||
7147 | if test "$wxUSE_TREECTRL" = yes; then | |
8284b0c5 | 7148 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7149 | else |
8284b0c5 | 7150 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7151 | fi |
8284b0c5 | 7152 | |
1e6feb95 | 7153 | |
8284b0c5 MB |
7154 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 |
7155 | echo "configure:7156: checking for --enable-tipwindow" >&5 | |
9926e4a4 VZ |
7156 | no_cache=0 |
7157 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7158 | if test "${enable_tipwindow+set}" = set; then | |
7159 | enableval="$enable_tipwindow" | |
8284b0c5 | 7160 | |
9926e4a4 VZ |
7161 | if test "$enableval" = yes; then |
7162 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7163 | else | |
7164 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7165 | fi | |
8284b0c5 | 7166 | |
9926e4a4 | 7167 | else |
8284b0c5 | 7168 | |
9926e4a4 VZ |
7169 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
7170 | if test "x$LINE" != x ; then | |
7171 | eval "DEFAULT_$LINE" | |
7172 | else | |
7173 | no_cache=1 | |
7174 | fi | |
7175 | ||
7176 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8284b0c5 MB |
7177 | |
7178 | fi | |
9926e4a4 VZ |
7179 | |
7180 | ||
7181 | eval "$ac_cv_use_tipwindow" | |
7182 | if test "$no_cache" != 1; then | |
7183 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7184 | fi | |
7185 | ||
7186 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8284b0c5 | 7187 | echo "$ac_t""yes" 1>&6 |
9926e4a4 | 7188 | else |
8284b0c5 | 7189 | echo "$ac_t""no" 1>&6 |
9926e4a4 | 7190 | fi |
8284b0c5 | 7191 | |
9926e4a4 | 7192 | |
8284b0c5 MB |
7193 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
7194 | echo "configure:7195: checking for --enable-popupwin" >&5 | |
9f41d601 RR |
7195 | no_cache=0 |
7196 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7197 | if test "${enable_popupwin+set}" = set; then | |
7198 | enableval="$enable_popupwin" | |
8284b0c5 | 7199 | |
9f41d601 RR |
7200 | if test "$enableval" = yes; then |
7201 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7202 | else | |
7203 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7204 | fi | |
8284b0c5 | 7205 | |
9f41d601 | 7206 | else |
8284b0c5 | 7207 | |
9f41d601 RR |
7208 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
7209 | if test "x$LINE" != x ; then | |
7210 | eval "DEFAULT_$LINE" | |
7211 | else | |
7212 | no_cache=1 | |
7213 | fi | |
7214 | ||
7215 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
8284b0c5 MB |
7216 | |
7217 | fi | |
9f41d601 RR |
7218 | |
7219 | ||
7220 | eval "$ac_cv_use_popupwin" | |
7221 | if test "$no_cache" != 1; then | |
7222 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7223 | fi | |
7224 | ||
7225 | if test "$wxUSE_POPUPWIN" = yes; then | |
8284b0c5 | 7226 | echo "$ac_t""yes" 1>&6 |
9f41d601 | 7227 | else |
8284b0c5 | 7228 | echo "$ac_t""no" 1>&6 |
9f41d601 | 7229 | fi |
8284b0c5 | 7230 | |
52127426 | 7231 | |
8284b0c5 MB |
7232 | |
7233 | ||
7234 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
7235 | echo "configure:7236: checking for --enable-commondlg" >&5 | |
1e6feb95 VZ |
7236 | no_cache=0 |
7237 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7238 | if test "${enable_commondlg+set}" = set; then | |
7239 | enableval="$enable_commondlg" | |
8284b0c5 | 7240 | |
1e6feb95 VZ |
7241 | if test "$enableval" = yes; then |
7242 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7243 | else | |
7244 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7245 | fi | |
8284b0c5 | 7246 | |
1e6feb95 | 7247 | else |
8284b0c5 | 7248 | |
1e6feb95 VZ |
7249 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
7250 | if test "x$LINE" != x ; then | |
7251 | eval "DEFAULT_$LINE" | |
7252 | else | |
7253 | no_cache=1 | |
7254 | fi | |
7255 | ||
7256 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
8284b0c5 MB |
7257 | |
7258 | fi | |
1e6feb95 VZ |
7259 | |
7260 | ||
7261 | eval "$ac_cv_use_commondlg" | |
7262 | if test "$no_cache" != 1; then | |
7263 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7264 | fi | |
7265 | ||
7266 | if test "$wxUSE_COMMONDLGS" = yes; then | |
8284b0c5 | 7267 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7268 | else |
8284b0c5 | 7269 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7270 | fi |
8284b0c5 | 7271 | |
1e6feb95 | 7272 | |
8284b0c5 MB |
7273 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 |
7274 | echo "configure:7275: checking for --enable-choicedlg" >&5 | |
1e6feb95 VZ |
7275 | no_cache=0 |
7276 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7277 | if test "${enable_choicedlg+set}" = set; then | |
7278 | enableval="$enable_choicedlg" | |
8284b0c5 | 7279 | |
1e6feb95 VZ |
7280 | if test "$enableval" = yes; then |
7281 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7282 | else | |
7283 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7284 | fi | |
8284b0c5 | 7285 | |
1e6feb95 | 7286 | else |
8284b0c5 | 7287 | |
1e6feb95 VZ |
7288 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
7289 | if test "x$LINE" != x ; then | |
7290 | eval "DEFAULT_$LINE" | |
7291 | else | |
7292 | no_cache=1 | |
7293 | fi | |
7294 | ||
7295 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
8284b0c5 MB |
7296 | |
7297 | fi | |
1e6feb95 VZ |
7298 | |
7299 | ||
7300 | eval "$ac_cv_use_choicedlg" | |
7301 | if test "$no_cache" != 1; then | |
7302 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7303 | fi | |
7304 | ||
7305 | if test "$wxUSE_CHOICEDLG" = yes; then | |
8284b0c5 | 7306 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7307 | else |
8284b0c5 | 7308 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7309 | fi |
8284b0c5 | 7310 | |
1e6feb95 | 7311 | |
8284b0c5 MB |
7312 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 |
7313 | echo "configure:7314: checking for --enable-coldlg" >&5 | |
1e6feb95 VZ |
7314 | no_cache=0 |
7315 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7316 | if test "${enable_coldlg+set}" = set; then | |
7317 | enableval="$enable_coldlg" | |
8284b0c5 | 7318 | |
1e6feb95 VZ |
7319 | if test "$enableval" = yes; then |
7320 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7321 | else | |
7322 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7323 | fi | |
8284b0c5 | 7324 | |
1e6feb95 | 7325 | else |
8284b0c5 | 7326 | |
1e6feb95 VZ |
7327 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
7328 | if test "x$LINE" != x ; then | |
7329 | eval "DEFAULT_$LINE" | |
7330 | else | |
7331 | no_cache=1 | |
7332 | fi | |
7333 | ||
7334 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
8284b0c5 MB |
7335 | |
7336 | fi | |
1e6feb95 VZ |
7337 | |
7338 | ||
7339 | eval "$ac_cv_use_coldlg" | |
7340 | if test "$no_cache" != 1; then | |
7341 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7342 | fi | |
7343 | ||
7344 | if test "$wxUSE_COLOURDLG" = yes; then | |
8284b0c5 | 7345 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7346 | else |
8284b0c5 | 7347 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7348 | fi |
8284b0c5 | 7349 | |
1e6feb95 | 7350 | |
8284b0c5 MB |
7351 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 |
7352 | echo "configure:7353: checking for --enable-filedlg" >&5 | |
1e6feb95 VZ |
7353 | no_cache=0 |
7354 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7355 | if test "${enable_filedlg+set}" = set; then | |
7356 | enableval="$enable_filedlg" | |
8284b0c5 | 7357 | |
1e6feb95 VZ |
7358 | if test "$enableval" = yes; then |
7359 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7360 | else | |
7361 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7362 | fi | |
8284b0c5 | 7363 | |
1e6feb95 | 7364 | else |
8284b0c5 | 7365 | |
1e6feb95 VZ |
7366 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
7367 | if test "x$LINE" != x ; then | |
7368 | eval "DEFAULT_$LINE" | |
7369 | else | |
7370 | no_cache=1 | |
7371 | fi | |
7372 | ||
7373 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
8284b0c5 MB |
7374 | |
7375 | fi | |
1e6feb95 VZ |
7376 | |
7377 | ||
7378 | eval "$ac_cv_use_filedlg" | |
7379 | if test "$no_cache" != 1; then | |
7380 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7381 | fi | |
7382 | ||
7383 | if test "$wxUSE_FILEDLG" = yes; then | |
8284b0c5 | 7384 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7385 | else |
8284b0c5 | 7386 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7387 | fi |
8284b0c5 | 7388 | |
1e6feb95 | 7389 | |
8284b0c5 MB |
7390 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 |
7391 | echo "configure:7392: checking for --enable-finddlg" >&5 | |
8db37e06 | 7392 | no_cache=0 |
69d27ff7 MB |
7393 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7394 | if test "${enable_finddlg+set}" = set; then | |
7395 | enableval="$enable_finddlg" | |
8284b0c5 | 7396 | |
8db37e06 | 7397 | if test "$enableval" = yes; then |
69d27ff7 | 7398 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7399 | else |
69d27ff7 | 7400 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 7401 | fi |
8284b0c5 | 7402 | |
8db37e06 | 7403 | else |
8284b0c5 | 7404 | |
8db37e06 VZ |
7405 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
7406 | if test "x$LINE" != x ; then | |
7407 | eval "DEFAULT_$LINE" | |
7408 | else | |
7409 | no_cache=1 | |
7410 | fi | |
7411 | ||
69d27ff7 | 7412 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8284b0c5 MB |
7413 | |
7414 | fi | |
8db37e06 VZ |
7415 | |
7416 | ||
69d27ff7 | 7417 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7418 | if test "$no_cache" != 1; then |
69d27ff7 | 7419 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7420 | fi |
7421 | ||
7422 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
8284b0c5 | 7423 | echo "$ac_t""yes" 1>&6 |
8db37e06 | 7424 | else |
8284b0c5 | 7425 | echo "$ac_t""no" 1>&6 |
8db37e06 | 7426 | fi |
8284b0c5 | 7427 | |
8db37e06 | 7428 | |
8284b0c5 MB |
7429 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
7430 | echo "configure:7431: checking for --enable-fontdlg" >&5 | |
1e6feb95 VZ |
7431 | no_cache=0 |
7432 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7433 | if test "${enable_fontdlg+set}" = set; then | |
7434 | enableval="$enable_fontdlg" | |
8284b0c5 | 7435 | |
1e6feb95 VZ |
7436 | if test "$enableval" = yes; then |
7437 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7438 | else | |
7439 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7440 | fi | |
8284b0c5 | 7441 | |
1e6feb95 | 7442 | else |
8284b0c5 | 7443 | |
1e6feb95 VZ |
7444 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
7445 | if test "x$LINE" != x ; then | |
7446 | eval "DEFAULT_$LINE" | |
7447 | else | |
7448 | no_cache=1 | |
7449 | fi | |
7450 | ||
7451 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
8284b0c5 MB |
7452 | |
7453 | fi | |
1e6feb95 VZ |
7454 | |
7455 | ||
7456 | eval "$ac_cv_use_fontdlg" | |
7457 | if test "$no_cache" != 1; then | |
7458 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7459 | fi | |
7460 | ||
7461 | if test "$wxUSE_FONTDLG" = yes; then | |
8284b0c5 | 7462 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7463 | else |
8284b0c5 | 7464 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7465 | fi |
8284b0c5 | 7466 | |
1e6feb95 | 7467 | |
8284b0c5 MB |
7468 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 |
7469 | echo "configure:7470: checking for --enable-dirdlg" >&5 | |
1e6feb95 VZ |
7470 | no_cache=0 |
7471 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7472 | if test "${enable_dirdlg+set}" = set; then | |
7473 | enableval="$enable_dirdlg" | |
8284b0c5 | 7474 | |
1e6feb95 VZ |
7475 | if test "$enableval" = yes; then |
7476 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7477 | else | |
7478 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7479 | fi | |
8284b0c5 | 7480 | |
1e6feb95 | 7481 | else |
8284b0c5 | 7482 | |
1e6feb95 VZ |
7483 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
7484 | if test "x$LINE" != x ; then | |
7485 | eval "DEFAULT_$LINE" | |
7486 | else | |
7487 | no_cache=1 | |
7488 | fi | |
7489 | ||
7490 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
8284b0c5 MB |
7491 | |
7492 | fi | |
1e6feb95 VZ |
7493 | |
7494 | ||
7495 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7496 | if test "$no_cache" != 1; then |
1e6feb95 | 7497 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7498 | fi |
7499 | ||
1e6feb95 | 7500 | if test "$wxUSE_DIRDLG" = yes; then |
8284b0c5 | 7501 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7502 | else |
8284b0c5 | 7503 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7504 | fi |
8284b0c5 | 7505 | |
698dcdb6 | 7506 | |
8284b0c5 MB |
7507 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
7508 | echo "configure:7509: checking for --enable-msgdlg" >&5 | |
10f2d63a | 7509 | no_cache=0 |
1e6feb95 VZ |
7510 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7511 | if test "${enable_msgdlg+set}" = set; then | |
7512 | enableval="$enable_msgdlg" | |
8284b0c5 | 7513 | |
10f2d63a | 7514 | if test "$enableval" = yes; then |
1e6feb95 | 7515 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7516 | else |
1e6feb95 | 7517 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7518 | fi |
8284b0c5 | 7519 | |
10f2d63a | 7520 | else |
8284b0c5 | 7521 | |
1e6feb95 | 7522 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7523 | if test "x$LINE" != x ; then |
7524 | eval "DEFAULT_$LINE" | |
7525 | else | |
7526 | no_cache=1 | |
7527 | fi | |
7528 | ||
1e6feb95 | 7529 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
8284b0c5 MB |
7530 | |
7531 | fi | |
10f2d63a VZ |
7532 | |
7533 | ||
1e6feb95 | 7534 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7535 | if test "$no_cache" != 1; then |
1e6feb95 | 7536 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7537 | fi |
7538 | ||
1e6feb95 | 7539 | if test "$wxUSE_MSGDLG" = yes; then |
8284b0c5 | 7540 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7541 | else |
8284b0c5 | 7542 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7543 | fi |
8284b0c5 | 7544 | |
10f2d63a | 7545 | |
8284b0c5 MB |
7546 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
7547 | echo "configure:7548: checking for --enable-numberdlg" >&5 | |
10f2d63a | 7548 | no_cache=0 |
1e6feb95 VZ |
7549 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7550 | if test "${enable_numberdlg+set}" = set; then | |
7551 | enableval="$enable_numberdlg" | |
8284b0c5 | 7552 | |
10f2d63a | 7553 | if test "$enableval" = yes; then |
1e6feb95 | 7554 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7555 | else |
1e6feb95 | 7556 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7557 | fi |
8284b0c5 | 7558 | |
10f2d63a | 7559 | else |
8284b0c5 | 7560 | |
1e6feb95 | 7561 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7562 | if test "x$LINE" != x ; then |
7563 | eval "DEFAULT_$LINE" | |
7564 | else | |
7565 | no_cache=1 | |
7566 | fi | |
7567 | ||
1e6feb95 | 7568 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
8284b0c5 MB |
7569 | |
7570 | fi | |
10f2d63a VZ |
7571 | |
7572 | ||
1e6feb95 | 7573 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7574 | if test "$no_cache" != 1; then |
1e6feb95 | 7575 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7576 | fi |
7577 | ||
1e6feb95 | 7578 | if test "$wxUSE_NUMBERDLG" = yes; then |
8284b0c5 | 7579 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7580 | else |
8284b0c5 | 7581 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7582 | fi |
8284b0c5 | 7583 | |
10f2d63a | 7584 | |
8284b0c5 MB |
7585 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
7586 | echo "configure:7587: checking for --enable-splash" >&5 | |
cbca9943 VZ |
7587 | no_cache=0 |
7588 | # Check whether --enable-splash or --disable-splash was given. | |
7589 | if test "${enable_splash+set}" = set; then | |
7590 | enableval="$enable_splash" | |
8284b0c5 | 7591 | |
cbca9943 VZ |
7592 | if test "$enableval" = yes; then |
7593 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7594 | else | |
7595 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7596 | fi | |
8284b0c5 | 7597 | |
cbca9943 | 7598 | else |
8284b0c5 | 7599 | |
cbca9943 VZ |
7600 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
7601 | if test "x$LINE" != x ; then | |
7602 | eval "DEFAULT_$LINE" | |
7603 | else | |
7604 | no_cache=1 | |
7605 | fi | |
7606 | ||
7607 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
8284b0c5 MB |
7608 | |
7609 | fi | |
cbca9943 VZ |
7610 | |
7611 | ||
7612 | eval "$ac_cv_use_splash" | |
7613 | if test "$no_cache" != 1; then | |
7614 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7615 | fi | |
7616 | ||
7617 | if test "$wxUSE_SPLASH" = yes; then | |
8284b0c5 | 7618 | echo "$ac_t""yes" 1>&6 |
cbca9943 | 7619 | else |
8284b0c5 | 7620 | echo "$ac_t""no" 1>&6 |
cbca9943 | 7621 | fi |
8284b0c5 | 7622 | |
cbca9943 | 7623 | |
8284b0c5 MB |
7624 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
7625 | echo "configure:7626: checking for --enable-textdlg" >&5 | |
10f2d63a VZ |
7626 | no_cache=0 |
7627 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7628 | if test "${enable_textdlg+set}" = set; then | |
7629 | enableval="$enable_textdlg" | |
8284b0c5 | 7630 | |
10f2d63a VZ |
7631 | if test "$enableval" = yes; then |
7632 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7633 | else | |
7634 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7635 | fi | |
8284b0c5 | 7636 | |
10f2d63a | 7637 | else |
8284b0c5 | 7638 | |
10f2d63a VZ |
7639 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7640 | if test "x$LINE" != x ; then | |
7641 | eval "DEFAULT_$LINE" | |
7642 | else | |
7643 | no_cache=1 | |
7644 | fi | |
7645 | ||
7646 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
8284b0c5 MB |
7647 | |
7648 | fi | |
10f2d63a VZ |
7649 | |
7650 | ||
7651 | eval "$ac_cv_use_textdlg" | |
7652 | if test "$no_cache" != 1; then | |
7653 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7654 | fi | |
7655 | ||
7656 | if test "$wxUSE_TEXTDLG" = yes; then | |
8284b0c5 | 7657 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7658 | else |
8284b0c5 | 7659 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7660 | fi |
8284b0c5 | 7661 | |
10f2d63a | 7662 | |
8284b0c5 MB |
7663 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
7664 | echo "configure:7665: checking for --enable-tipdlg" >&5 | |
10f2d63a VZ |
7665 | no_cache=0 |
7666 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7667 | if test "${enable_tipdlg+set}" = set; then | |
7668 | enableval="$enable_tipdlg" | |
8284b0c5 | 7669 | |
10f2d63a VZ |
7670 | if test "$enableval" = yes; then |
7671 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7672 | else | |
7673 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7674 | fi | |
8284b0c5 | 7675 | |
10f2d63a | 7676 | else |
8284b0c5 | 7677 | |
10f2d63a VZ |
7678 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7679 | if test "x$LINE" != x ; then | |
7680 | eval "DEFAULT_$LINE" | |
7681 | else | |
7682 | no_cache=1 | |
7683 | fi | |
7684 | ||
7685 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
8284b0c5 MB |
7686 | |
7687 | fi | |
10f2d63a VZ |
7688 | |
7689 | ||
7690 | eval "$ac_cv_use_tipdlg" | |
7691 | if test "$no_cache" != 1; then | |
7692 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7693 | fi | |
7694 | ||
7695 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
8284b0c5 | 7696 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7697 | else |
8284b0c5 | 7698 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7699 | fi |
8284b0c5 | 7700 | |
10f2d63a | 7701 | |
8284b0c5 MB |
7702 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
7703 | echo "configure:7704: checking for --enable-progressdlg" >&5 | |
10f2d63a VZ |
7704 | no_cache=0 |
7705 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7706 | if test "${enable_progressdlg+set}" = set; then | |
7707 | enableval="$enable_progressdlg" | |
8284b0c5 | 7708 | |
10f2d63a VZ |
7709 | if test "$enableval" = yes; then |
7710 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7711 | else | |
7712 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7713 | fi | |
8284b0c5 | 7714 | |
10f2d63a | 7715 | else |
8284b0c5 | 7716 | |
10f2d63a VZ |
7717 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7718 | if test "x$LINE" != x ; then | |
7719 | eval "DEFAULT_$LINE" | |
7720 | else | |
7721 | no_cache=1 | |
7722 | fi | |
7723 | ||
7724 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
8284b0c5 MB |
7725 | |
7726 | fi | |
10f2d63a VZ |
7727 | |
7728 | ||
7729 | eval "$ac_cv_use_progressdlg" | |
7730 | if test "$no_cache" != 1; then | |
7731 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7732 | fi | |
7733 | ||
7734 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
8284b0c5 | 7735 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7736 | else |
8284b0c5 | 7737 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7738 | fi |
8284b0c5 | 7739 | |
10f2d63a | 7740 | |
8284b0c5 MB |
7741 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
7742 | echo "configure:7743: checking for --enable-wizarddlg" >&5 | |
b1f5d087 VZ |
7743 | no_cache=0 |
7744 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7745 | if test "${enable_wizarddlg+set}" = set; then | |
7746 | enableval="$enable_wizarddlg" | |
8284b0c5 | 7747 | |
b1f5d087 VZ |
7748 | if test "$enableval" = yes; then |
7749 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7750 | else | |
7751 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7752 | fi | |
8284b0c5 | 7753 | |
b1f5d087 | 7754 | else |
8284b0c5 | 7755 | |
b1f5d087 VZ |
7756 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
7757 | if test "x$LINE" != x ; then | |
7758 | eval "DEFAULT_$LINE" | |
7759 | else | |
7760 | no_cache=1 | |
7761 | fi | |
7762 | ||
7763 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
8284b0c5 MB |
7764 | |
7765 | fi | |
b1f5d087 VZ |
7766 | |
7767 | ||
7768 | eval "$ac_cv_use_wizarddlg" | |
7769 | if test "$no_cache" != 1; then | |
7770 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7771 | fi | |
7772 | ||
7773 | if test "$wxUSE_WIZARDDLG" = yes; then | |
8284b0c5 | 7774 | echo "$ac_t""yes" 1>&6 |
b1f5d087 | 7775 | else |
8284b0c5 | 7776 | echo "$ac_t""no" 1>&6 |
b1f5d087 | 7777 | fi |
8284b0c5 MB |
7778 | |
7779 | ||
7780 | ||
52127426 | 7781 | |
8284b0c5 MB |
7782 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
7783 | echo "configure:7784: checking for --enable-menus" >&5 | |
1e6feb95 VZ |
7784 | no_cache=0 |
7785 | # Check whether --enable-menus or --disable-menus was given. | |
7786 | if test "${enable_menus+set}" = set; then | |
7787 | enableval="$enable_menus" | |
8284b0c5 | 7788 | |
1e6feb95 VZ |
7789 | if test "$enableval" = yes; then |
7790 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7791 | else | |
7792 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7793 | fi | |
8284b0c5 | 7794 | |
1e6feb95 | 7795 | else |
8284b0c5 | 7796 | |
1e6feb95 VZ |
7797 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
7798 | if test "x$LINE" != x ; then | |
7799 | eval "DEFAULT_$LINE" | |
7800 | else | |
7801 | no_cache=1 | |
7802 | fi | |
7803 | ||
7804 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
8284b0c5 MB |
7805 | |
7806 | fi | |
1e6feb95 VZ |
7807 | |
7808 | ||
7809 | eval "$ac_cv_use_menus" | |
7810 | if test "$no_cache" != 1; then | |
7811 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7812 | fi | |
7813 | ||
7814 | if test "$wxUSE_MENUS" = yes; then | |
8284b0c5 | 7815 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7816 | else |
8284b0c5 | 7817 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7818 | fi |
8284b0c5 | 7819 | |
1e6feb95 | 7820 | |
8284b0c5 MB |
7821 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
7822 | echo "configure:7823: checking for --enable-miniframe" >&5 | |
10f2d63a VZ |
7823 | no_cache=0 |
7824 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7825 | if test "${enable_miniframe+set}" = set; then | |
7826 | enableval="$enable_miniframe" | |
8284b0c5 | 7827 | |
10f2d63a VZ |
7828 | if test "$enableval" = yes; then |
7829 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7830 | else | |
7831 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7832 | fi | |
8284b0c5 | 7833 | |
10f2d63a | 7834 | else |
8284b0c5 | 7835 | |
10f2d63a VZ |
7836 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7837 | if test "x$LINE" != x ; then | |
7838 | eval "DEFAULT_$LINE" | |
7839 | else | |
7840 | no_cache=1 | |
7841 | fi | |
7842 | ||
7843 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
8284b0c5 MB |
7844 | |
7845 | fi | |
10f2d63a VZ |
7846 | |
7847 | ||
7848 | eval "$ac_cv_use_miniframe" | |
7849 | if test "$no_cache" != 1; then | |
7850 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7851 | fi | |
7852 | ||
7853 | if test "$wxUSE_MINIFRAME" = yes; then | |
8284b0c5 | 7854 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7855 | else |
8284b0c5 | 7856 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7857 | fi |
8284b0c5 | 7858 | |
10f2d63a | 7859 | |
8284b0c5 MB |
7860 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
7861 | echo "configure:7862: checking for --enable-tooltips" >&5 | |
10f2d63a VZ |
7862 | no_cache=0 |
7863 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7864 | if test "${enable_tooltips+set}" = set; then | |
7865 | enableval="$enable_tooltips" | |
8284b0c5 | 7866 | |
10f2d63a VZ |
7867 | if test "$enableval" = yes; then |
7868 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7869 | else | |
7870 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7871 | fi | |
8284b0c5 | 7872 | |
10f2d63a | 7873 | else |
8284b0c5 | 7874 | |
10f2d63a VZ |
7875 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7876 | if test "x$LINE" != x ; then | |
7877 | eval "DEFAULT_$LINE" | |
7878 | else | |
7879 | no_cache=1 | |
7880 | fi | |
7881 | ||
7882 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
8284b0c5 MB |
7883 | |
7884 | fi | |
10f2d63a VZ |
7885 | |
7886 | ||
7887 | eval "$ac_cv_use_tooltips" | |
7888 | if test "$no_cache" != 1; then | |
7889 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7890 | fi | |
7891 | ||
7892 | if test "$wxUSE_TOOLTIPS" = yes; then | |
8284b0c5 | 7893 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7894 | else |
8284b0c5 | 7895 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7896 | fi |
8284b0c5 | 7897 | |
10f2d63a | 7898 | |
8284b0c5 MB |
7899 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
7900 | echo "configure:7901: checking for --enable-splines" >&5 | |
10f2d63a VZ |
7901 | no_cache=0 |
7902 | # Check whether --enable-splines or --disable-splines was given. | |
7903 | if test "${enable_splines+set}" = set; then | |
7904 | enableval="$enable_splines" | |
8284b0c5 | 7905 | |
10f2d63a VZ |
7906 | if test "$enableval" = yes; then |
7907 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7908 | else | |
7909 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7910 | fi | |
8284b0c5 | 7911 | |
10f2d63a | 7912 | else |
8284b0c5 | 7913 | |
10f2d63a VZ |
7914 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7915 | if test "x$LINE" != x ; then | |
7916 | eval "DEFAULT_$LINE" | |
7917 | else | |
7918 | no_cache=1 | |
7919 | fi | |
7920 | ||
7921 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
8284b0c5 MB |
7922 | |
7923 | fi | |
10f2d63a VZ |
7924 | |
7925 | ||
7926 | eval "$ac_cv_use_splines" | |
7927 | if test "$no_cache" != 1; then | |
7928 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7929 | fi | |
7930 | ||
7931 | if test "$wxUSE_SPLINES" = yes; then | |
8284b0c5 | 7932 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7933 | else |
8284b0c5 | 7934 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7935 | fi |
8284b0c5 | 7936 | |
10f2d63a | 7937 | |
8284b0c5 MB |
7938 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
7939 | echo "configure:7940: checking for --enable-validators" >&5 | |
10f2d63a VZ |
7940 | no_cache=0 |
7941 | # Check whether --enable-validators or --disable-validators was given. | |
7942 | if test "${enable_validators+set}" = set; then | |
7943 | enableval="$enable_validators" | |
8284b0c5 | 7944 | |
10f2d63a VZ |
7945 | if test "$enableval" = yes; then |
7946 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7947 | else | |
7948 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7949 | fi | |
8284b0c5 | 7950 | |
10f2d63a | 7951 | else |
8284b0c5 | 7952 | |
10f2d63a VZ |
7953 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7954 | if test "x$LINE" != x ; then | |
7955 | eval "DEFAULT_$LINE" | |
7956 | else | |
7957 | no_cache=1 | |
7958 | fi | |
7959 | ||
7960 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
8284b0c5 MB |
7961 | |
7962 | fi | |
10f2d63a VZ |
7963 | |
7964 | ||
7965 | eval "$ac_cv_use_validators" | |
7966 | if test "$no_cache" != 1; then | |
7967 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7968 | fi | |
7969 | ||
7970 | if test "$wxUSE_VALIDATORS" = yes; then | |
8284b0c5 | 7971 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7972 | else |
8284b0c5 | 7973 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7974 | fi |
8284b0c5 | 7975 | |
10f2d63a | 7976 | |
8284b0c5 MB |
7977 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
7978 | echo "configure:7979: checking for --enable-busyinfo" >&5 | |
10f2d63a VZ |
7979 | no_cache=0 |
7980 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7981 | if test "${enable_busyinfo+set}" = set; then | |
7982 | enableval="$enable_busyinfo" | |
8284b0c5 | 7983 | |
10f2d63a VZ |
7984 | if test "$enableval" = yes; then |
7985 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7986 | else | |
7987 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7988 | fi | |
8284b0c5 | 7989 | |
10f2d63a | 7990 | else |
8284b0c5 | 7991 | |
10f2d63a VZ |
7992 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7993 | if test "x$LINE" != x ; then | |
7994 | eval "DEFAULT_$LINE" | |
7995 | else | |
7996 | no_cache=1 | |
7997 | fi | |
7998 | ||
7999 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
8284b0c5 MB |
8000 | |
8001 | fi | |
10f2d63a VZ |
8002 | |
8003 | ||
8004 | eval "$ac_cv_use_busyinfo" | |
8005 | if test "$no_cache" != 1; then | |
8006 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8007 | fi | |
8008 | ||
8009 | if test "$wxUSE_BUSYINFO" = yes; then | |
8284b0c5 | 8010 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8011 | else |
8284b0c5 | 8012 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8013 | fi |
8284b0c5 | 8014 | |
10f2d63a | 8015 | |
8284b0c5 MB |
8016 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
8017 | echo "configure:8018: checking for --enable-joystick" >&5 | |
f6bcfd97 BP |
8018 | no_cache=0 |
8019 | # Check whether --enable-joystick or --disable-joystick was given. | |
8020 | if test "${enable_joystick+set}" = set; then | |
8021 | enableval="$enable_joystick" | |
8284b0c5 | 8022 | |
f6bcfd97 BP |
8023 | if test "$enableval" = yes; then |
8024 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8025 | else | |
8026 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8027 | fi | |
8284b0c5 | 8028 | |
f6bcfd97 | 8029 | else |
8284b0c5 | 8030 | |
f6bcfd97 BP |
8031 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8032 | if test "x$LINE" != x ; then | |
8033 | eval "DEFAULT_$LINE" | |
8034 | else | |
8035 | no_cache=1 | |
8036 | fi | |
8037 | ||
8038 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
8284b0c5 MB |
8039 | |
8040 | fi | |
f6bcfd97 BP |
8041 | |
8042 | ||
8043 | eval "$ac_cv_use_joystick" | |
8044 | if test "$no_cache" != 1; then | |
8045 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8046 | fi | |
8047 | ||
8048 | if test "$wxUSE_JOYSTICK" = yes; then | |
8284b0c5 | 8049 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8050 | else |
8284b0c5 | 8051 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8052 | fi |
8284b0c5 | 8053 | |
698dcdb6 | 8054 | |
8284b0c5 MB |
8055 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
8056 | echo "configure:8057: checking for --enable-metafile" >&5 | |
1e6feb95 VZ |
8057 | no_cache=0 |
8058 | # Check whether --enable-metafile or --disable-metafile was given. | |
8059 | if test "${enable_metafile+set}" = set; then | |
8060 | enableval="$enable_metafile" | |
8284b0c5 | 8061 | |
1e6feb95 VZ |
8062 | if test "$enableval" = yes; then |
8063 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8064 | else | |
8065 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8066 | fi | |
8284b0c5 | 8067 | |
1e6feb95 | 8068 | else |
8284b0c5 | 8069 | |
1e6feb95 VZ |
8070 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
8071 | if test "x$LINE" != x ; then | |
8072 | eval "DEFAULT_$LINE" | |
8073 | else | |
8074 | no_cache=1 | |
8075 | fi | |
8076 | ||
8077 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
8284b0c5 MB |
8078 | |
8079 | fi | |
1e6feb95 VZ |
8080 | |
8081 | ||
8082 | eval "$ac_cv_use_metafile" | |
8083 | if test "$no_cache" != 1; then | |
8084 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8085 | fi | |
8086 | ||
8087 | if test "$wxUSE_METAFILE" = yes; then | |
8284b0c5 | 8088 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8089 | else |
8284b0c5 | 8090 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8091 | fi |
8284b0c5 | 8092 | |
1e6feb95 | 8093 | |
8284b0c5 MB |
8094 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
8095 | echo "configure:8096: checking for --enable-dragimage" >&5 | |
24fd6d87 VZ |
8096 | no_cache=0 |
8097 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8098 | if test "${enable_dragimage+set}" = set; then | |
8099 | enableval="$enable_dragimage" | |
8284b0c5 | 8100 | |
24fd6d87 VZ |
8101 | if test "$enableval" = yes; then |
8102 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8103 | else | |
8104 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8105 | fi | |
8284b0c5 | 8106 | |
24fd6d87 | 8107 | else |
8284b0c5 | 8108 | |
24fd6d87 VZ |
8109 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
8110 | if test "x$LINE" != x ; then | |
8111 | eval "DEFAULT_$LINE" | |
8112 | else | |
8113 | no_cache=1 | |
8114 | fi | |
8115 | ||
8116 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
8284b0c5 MB |
8117 | |
8118 | fi | |
24fd6d87 VZ |
8119 | |
8120 | ||
8121 | eval "$ac_cv_use_dragimage" | |
8122 | if test "$no_cache" != 1; then | |
8123 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8124 | fi | |
8125 | ||
8126 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
8284b0c5 | 8127 | echo "$ac_t""yes" 1>&6 |
24fd6d87 | 8128 | else |
8284b0c5 | 8129 | echo "$ac_t""no" 1>&6 |
24fd6d87 | 8130 | fi |
8284b0c5 | 8131 | |
52127426 | 8132 | |
8284b0c5 MB |
8133 | |
8134 | ||
8135 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 | |
8136 | echo "configure:8137: checking for --enable-palette" >&5 | |
edae8572 VZ |
8137 | no_cache=0 |
8138 | # Check whether --enable-palette or --disable-palette was given. | |
8139 | if test "${enable_palette+set}" = set; then | |
8140 | enableval="$enable_palette" | |
8284b0c5 | 8141 | |
edae8572 VZ |
8142 | if test "$enableval" = yes; then |
8143 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8144 | else | |
8145 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8146 | fi | |
8284b0c5 | 8147 | |
edae8572 | 8148 | else |
8284b0c5 | 8149 | |
edae8572 VZ |
8150 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
8151 | if test "x$LINE" != x ; then | |
8152 | eval "DEFAULT_$LINE" | |
8153 | else | |
8154 | no_cache=1 | |
8155 | fi | |
8156 | ||
8157 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
8284b0c5 MB |
8158 | |
8159 | fi | |
edae8572 VZ |
8160 | |
8161 | ||
8162 | eval "$ac_cv_use_palette" | |
8163 | if test "$no_cache" != 1; then | |
8164 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8165 | fi | |
8166 | ||
8167 | if test "$wxUSE_PALETTE" = yes; then | |
8284b0c5 | 8168 | echo "$ac_t""yes" 1>&6 |
edae8572 | 8169 | else |
8284b0c5 | 8170 | echo "$ac_t""no" 1>&6 |
edae8572 | 8171 | fi |
8284b0c5 | 8172 | |
edae8572 | 8173 | |
8284b0c5 MB |
8174 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
8175 | echo "configure:8176: checking for --enable-image" >&5 | |
0046ff7c VS |
8176 | no_cache=0 |
8177 | # Check whether --enable-image or --disable-image was given. | |
8178 | if test "${enable_image+set}" = set; then | |
8179 | enableval="$enable_image" | |
8284b0c5 | 8180 | |
0046ff7c VS |
8181 | if test "$enableval" = yes; then |
8182 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8183 | else | |
8184 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8185 | fi | |
8284b0c5 | 8186 | |
0046ff7c | 8187 | else |
8284b0c5 | 8188 | |
0046ff7c VS |
8189 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8190 | if test "x$LINE" != x ; then | |
8191 | eval "DEFAULT_$LINE" | |
8192 | else | |
8193 | no_cache=1 | |
8194 | fi | |
8195 | ||
8196 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
8284b0c5 MB |
8197 | |
8198 | fi | |
0046ff7c VS |
8199 | |
8200 | ||
8201 | eval "$ac_cv_use_image" | |
8202 | if test "$no_cache" != 1; then | |
8203 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8204 | fi | |
8205 | ||
8206 | if test "$wxUSE_IMAGE" = yes; then | |
8284b0c5 | 8207 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8208 | else |
8284b0c5 | 8209 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8210 | fi |
8284b0c5 | 8211 | |
0046ff7c | 8212 | |
8284b0c5 MB |
8213 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
8214 | echo "configure:8215: checking for --enable-gif" >&5 | |
10f2d63a VZ |
8215 | no_cache=0 |
8216 | # Check whether --enable-gif or --disable-gif was given. | |
8217 | if test "${enable_gif+set}" = set; then | |
8218 | enableval="$enable_gif" | |
8284b0c5 | 8219 | |
10f2d63a VZ |
8220 | if test "$enableval" = yes; then |
8221 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8222 | else | |
8223 | ac_cv_use_gif='wxUSE_GIF=no' | |
8224 | fi | |
8284b0c5 | 8225 | |
10f2d63a | 8226 | else |
8284b0c5 | 8227 | |
10f2d63a VZ |
8228 | LINE=`grep "wxUSE_GIF" ${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_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
8284b0c5 MB |
8236 | |
8237 | fi | |
10f2d63a VZ |
8238 | |
8239 | ||
8240 | eval "$ac_cv_use_gif" | |
8241 | if test "$no_cache" != 1; then | |
8242 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8243 | fi | |
8244 | ||
8245 | if test "$wxUSE_GIF" = yes; then | |
8284b0c5 | 8246 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8247 | else |
8284b0c5 | 8248 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8249 | fi |
8284b0c5 | 8250 | |
10f2d63a | 8251 | |
8284b0c5 MB |
8252 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
8253 | echo "configure:8254: checking for --enable-pcx" >&5 | |
10f2d63a VZ |
8254 | no_cache=0 |
8255 | # Check whether --enable-pcx or --disable-pcx was given. | |
8256 | if test "${enable_pcx+set}" = set; then | |
8257 | enableval="$enable_pcx" | |
8284b0c5 | 8258 | |
10f2d63a VZ |
8259 | if test "$enableval" = yes; then |
8260 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8261 | else | |
8262 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8263 | fi | |
8284b0c5 | 8264 | |
10f2d63a | 8265 | else |
8284b0c5 | 8266 | |
10f2d63a VZ |
8267 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8268 | if test "x$LINE" != x ; then | |
8269 | eval "DEFAULT_$LINE" | |
8270 | else | |
8271 | no_cache=1 | |
8272 | fi | |
8273 | ||
8274 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
8284b0c5 MB |
8275 | |
8276 | fi | |
10f2d63a VZ |
8277 | |
8278 | ||
8279 | eval "$ac_cv_use_pcx" | |
8280 | if test "$no_cache" != 1; then | |
8281 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8282 | fi | |
8283 | ||
8284 | if test "$wxUSE_PCX" = yes; then | |
8284b0c5 | 8285 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8286 | else |
8284b0c5 | 8287 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8288 | fi |
8284b0c5 | 8289 | |
10f2d63a | 8290 | |
8284b0c5 MB |
8291 | echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6 |
8292 | echo "configure:8293: checking for --enable-iff" >&5 | |
4b6b4dfc RR |
8293 | no_cache=0 |
8294 | # Check whether --enable-iff or --disable-iff was given. | |
8295 | if test "${enable_iff+set}" = set; then | |
8296 | enableval="$enable_iff" | |
8284b0c5 | 8297 | |
4b6b4dfc RR |
8298 | if test "$enableval" = yes; then |
8299 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8300 | else | |
8301 | ac_cv_use_iff='wxUSE_IFF=no' | |
8302 | fi | |
8284b0c5 | 8303 | |
4b6b4dfc | 8304 | else |
8284b0c5 | 8305 | |
4b6b4dfc RR |
8306 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
8307 | if test "x$LINE" != x ; then | |
8308 | eval "DEFAULT_$LINE" | |
8309 | else | |
8310 | no_cache=1 | |
8311 | fi | |
8312 | ||
8313 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
8284b0c5 MB |
8314 | |
8315 | fi | |
4b6b4dfc RR |
8316 | |
8317 | ||
8318 | eval "$ac_cv_use_iff" | |
8319 | if test "$no_cache" != 1; then | |
8320 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8321 | fi | |
8322 | ||
8323 | if test "$wxUSE_IFF" = yes; then | |
8284b0c5 | 8324 | echo "$ac_t""yes" 1>&6 |
4b6b4dfc | 8325 | else |
8284b0c5 | 8326 | echo "$ac_t""no" 1>&6 |
4b6b4dfc | 8327 | fi |
8284b0c5 | 8328 | |
4b6b4dfc | 8329 | |
8284b0c5 MB |
8330 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
8331 | echo "configure:8332: checking for --enable-pnm" >&5 | |
10f2d63a VZ |
8332 | no_cache=0 |
8333 | # Check whether --enable-pnm or --disable-pnm was given. | |
8334 | if test "${enable_pnm+set}" = set; then | |
8335 | enableval="$enable_pnm" | |
8284b0c5 | 8336 | |
10f2d63a VZ |
8337 | if test "$enableval" = yes; then |
8338 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8339 | else | |
8340 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8341 | fi | |
8284b0c5 | 8342 | |
10f2d63a | 8343 | else |
8284b0c5 | 8344 | |
10f2d63a VZ |
8345 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8346 | if test "x$LINE" != x ; then | |
8347 | eval "DEFAULT_$LINE" | |
8348 | else | |
8349 | no_cache=1 | |
8350 | fi | |
8351 | ||
8352 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
8284b0c5 MB |
8353 | |
8354 | fi | |
10f2d63a VZ |
8355 | |
8356 | ||
8357 | eval "$ac_cv_use_pnm" | |
8358 | if test "$no_cache" != 1; then | |
8359 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8360 | fi | |
8361 | ||
8362 | if test "$wxUSE_PNM" = yes; then | |
8284b0c5 | 8363 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8364 | else |
8284b0c5 | 8365 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8366 | fi |
8284b0c5 | 8367 | |
10f2d63a | 8368 | |
8284b0c5 MB |
8369 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 |
8370 | echo "configure:8371: checking for --enable-xpm" >&5 | |
0046ff7c | 8371 | no_cache=0 |
69d27ff7 MB |
8372 | # Check whether --enable-xpm or --disable-xpm was given. |
8373 | if test "${enable_xpm+set}" = set; then | |
8374 | enableval="$enable_xpm" | |
8284b0c5 | 8375 | |
0046ff7c | 8376 | if test "$enableval" = yes; then |
69d27ff7 | 8377 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8378 | else |
69d27ff7 | 8379 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8380 | fi |
8284b0c5 | 8381 | |
0046ff7c | 8382 | else |
8284b0c5 | 8383 | |
0046ff7c VS |
8384 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8385 | if test "x$LINE" != x ; then | |
8386 | eval "DEFAULT_$LINE" | |
8387 | else | |
8388 | no_cache=1 | |
8389 | fi | |
8390 | ||
69d27ff7 | 8391 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
8284b0c5 MB |
8392 | |
8393 | fi | |
0046ff7c VS |
8394 | |
8395 | ||
69d27ff7 | 8396 | eval "$ac_cv_use_xpm" |
0046ff7c | 8397 | if test "$no_cache" != 1; then |
69d27ff7 | 8398 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8399 | fi |
8400 | ||
8401 | if test "$wxUSE_XPM" = yes; then | |
8284b0c5 | 8402 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8403 | else |
8284b0c5 | 8404 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8405 | fi |
8284b0c5 | 8406 | |
0046ff7c | 8407 | |
8284b0c5 MB |
8408 | echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6 |
8409 | echo "configure:8410: checking for --enable-ico_cur" >&5 | |
658974ae | 8410 | no_cache=0 |
c7206e64 VS |
8411 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8412 | if test "${enable_ico_cur+set}" = set; then | |
8413 | enableval="$enable_ico_cur" | |
8284b0c5 | 8414 | |
658974ae | 8415 | if test "$enableval" = yes; then |
c7206e64 | 8416 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8417 | else |
c7206e64 | 8418 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 8419 | fi |
8284b0c5 | 8420 | |
658974ae | 8421 | else |
8284b0c5 | 8422 | |
658974ae VS |
8423 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
8424 | if test "x$LINE" != x ; then | |
8425 | eval "DEFAULT_$LINE" | |
8426 | else | |
8427 | no_cache=1 | |
8428 | fi | |
8429 | ||
c7206e64 | 8430 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
8284b0c5 MB |
8431 | |
8432 | fi | |
658974ae VS |
8433 | |
8434 | ||
c7206e64 | 8435 | eval "$ac_cv_use_ico_cur" |
658974ae | 8436 | if test "$no_cache" != 1; then |
c7206e64 | 8437 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8438 | fi |
8439 | ||
8440 | if test "$wxUSE_ICO_CUR" = yes; then | |
8284b0c5 | 8441 | echo "$ac_t""yes" 1>&6 |
658974ae | 8442 | else |
8284b0c5 | 8443 | echo "$ac_t""no" 1>&6 |
658974ae | 8444 | fi |
8284b0c5 | 8445 | |
658974ae | 8446 | |
b12915c1 VZ |
8447 | fi |
8448 | ||
d558c907 VS |
8449 | case "${host}" in |
8450 | *-pc-os2_emx | *-pc-os2-emx ) | |
8451 | LEX_STEM="lexyy" | |
8452 | ;; | |
8453 | *) | |
8454 | PATH_IFS=':' | |
8455 | LEX_STEM="lex.yy" | |
8456 | ;; | |
8457 | esac | |
8458 | ||
8284b0c5 MB |
8459 | |
8460 | ||
10f2d63a VZ |
8461 | echo "saving argument cache $wx_arg_cache_file" |
8462 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
8284b0c5 | 8463 | |
52127426 | 8464 | |
8284b0c5 MB |
8465 | |
8466 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
8467 | echo "configure:8468: checking for toolkit" >&5 | |
10f2d63a VZ |
8468 | |
8469 | if test "$wxUSE_GUI" = "yes"; then | |
8470 | ||
3a922bb4 | 8471 | if test "$USE_BEOS" = 1; then |
8284b0c5 | 8472 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
3a922bb4 | 8473 | fi |
b12915c1 | 8474 | |
3a922bb4 RL |
8475 | if test "$TOOLKIT_GIVEN" = 1; then |
8476 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8477 | var=wxUSE_$toolkit | |
8478 | eval "value=\$${var}" | |
8479 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8480 | done | |
10f2d63a | 8481 | else |
3a922bb4 RL |
8482 | for toolkit in `echo $ALL_TOOLKITS`; do |
8483 | if test "$has_toolkit_in_cache" != 1; then | |
8484 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8485 | else | |
8486 | var=DEFAULT_wxUSE_$toolkit | |
8487 | fi | |
8488 | eval "wxUSE_$toolkit=\$${var}" | |
8489 | done | |
10f2d63a | 8490 | fi |
10f2d63a | 8491 | |
3a922bb4 | 8492 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
f79bd02d | 8493 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8494 | |
d558c907 | 8495 | case "${host}" in |
6fa882bd | 8496 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8497 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8498 | esac |
10f2d63a | 8499 | |
3a922bb4 RL |
8500 | case "$NUM_TOOLKITS" in |
8501 | 1) | |
8502 | ;; | |
8503 | 0) | |
8284b0c5 | 8504 | { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; } |
3a922bb4 RL |
8505 | ;; |
8506 | *) | |
8284b0c5 | 8507 | { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; } |
3a922bb4 | 8508 | esac |
10f2d63a | 8509 | |
3a922bb4 RL |
8510 | for toolkit in `echo $ALL_TOOLKITS`; do |
8511 | var=wxUSE_$toolkit | |
8512 | eval "value=\$${var}" | |
8513 | if test "x$value" != x; then | |
8514 | cache_var=CACHE_$toolkit | |
8515 | eval "cache=\$${cache_var}" | |
8516 | if test "$cache" = 1; then | |
8517 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8518 | fi | |
8519 | if test "$value" = 1; then | |
8520 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
8284b0c5 | 8521 | echo "$ac_t""$toolkit_echo" 1>&6 |
3a922bb4 RL |
8522 | fi |
8523 | fi | |
8524 | done | |
10f2d63a | 8525 | else |
8284b0c5 | 8526 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8527 | fi |
8528 | ||
8284b0c5 | 8529 | |
43d99b6d VS |
8530 | wants_win32=0 |
8531 | doesnt_want_win32=0 | |
17234b26 MB |
8532 | case "${host}" in |
8533 | *-*-cygwin*) | |
8534 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
8535 | wants_win32=1 |
8536 | else | |
8537 | doesnt_want_win32=1 | |
17234b26 MB |
8538 | fi |
8539 | ;; | |
8540 | *-*-mingw*) | |
43d99b6d | 8541 | wants_win32=1 |
17234b26 MB |
8542 | ;; |
8543 | esac | |
8544 | ||
43d99b6d | 8545 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
8546 | USE_UNIX=0 |
8547 | USE_WIN32=1 | |
8284b0c5 | 8548 | cat >> confdefs.h <<\EOF |
17234b26 MB |
8549 | #define __WIN32__ 1 |
8550 | EOF | |
8551 | ||
8284b0c5 | 8552 | cat >> confdefs.h <<\EOF |
17234b26 MB |
8553 | #define __WIN95__ 1 |
8554 | EOF | |
8555 | ||
8284b0c5 | 8556 | cat >> confdefs.h <<\EOF |
17234b26 MB |
8557 | #define __WINDOWS__ 1 |
8558 | EOF | |
8559 | ||
8284b0c5 | 8560 | cat >> confdefs.h <<\EOF |
17234b26 MB |
8561 | #define __GNUWIN32__ 1 |
8562 | EOF | |
8563 | ||
8284b0c5 | 8564 | cat >> confdefs.h <<\EOF |
17234b26 MB |
8565 | #define STRICT 1 |
8566 | EOF | |
8567 | ||
8284b0c5 | 8568 | cat >> confdefs.h <<\EOF |
17234b26 MB |
8569 | #define WINVER 0x0400 |
8570 | EOF | |
8571 | ||
43d99b6d VS |
8572 | fi |
8573 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
8574 | USE_UNIX=1 |
8575 | USE_WIN32=0 | |
8576 | fi | |
8577 | ||
8578 | if test "$USE_UNIX" = 1 ; then | |
8579 | wxUSE_UNIX=yes | |
8284b0c5 | 8580 | cat >> confdefs.h <<\EOF |
17234b26 MB |
8581 | #define __UNIX__ 1 |
8582 | EOF | |
8583 | ||
8584 | fi | |
8585 | ||
8284b0c5 MB |
8586 | |
8587 | cat > confcache <<\EOF | |
10f2d63a VZ |
8588 | # This file is a shell script that caches the results of configure |
8589 | # tests run on this system so they can be shared between configure | |
8284b0c5 MB |
8590 | # scripts and configure runs. It is not useful on other systems. |
8591 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8592 | # |
8284b0c5 MB |
8593 | # By default, configure uses ./config.cache as the cache file, |
8594 | # creating it if it does not exist already. You can give configure | |
8595 | # the --cache-file=FILE option to use a different cache file; that is | |
8596 | # what configure does when it calls configure scripts in | |
8597 | # subdirectories, so they share the cache. | |
8598 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8599 | # config.status only pays attention to the cache file if you give it the | |
8600 | # --recheck option to rerun configure. | |
10f2d63a | 8601 | # |
8284b0c5 | 8602 | EOF |
10f2d63a VZ |
8603 | # The following way of writing the cache mishandles newlines in values, |
8604 | # but we know of no workaround that is simple, portable, and efficient. | |
8605 | # So, don't put newlines in cache variables' values. | |
8606 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8607 | # and sets the high bit in the cache file unless we assign to the vars. | |
8284b0c5 MB |
8608 | (set) 2>&1 | |
8609 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8610 | *ac_space=\ *) | |
8611 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8612 | # turns \\\\ into \\, and sed turns \\ into \). | |
8613 | sed -n \ | |
8614 | -e "s/'/'\\\\''/g" \ | |
8615 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8616 | ;; | |
8617 | *) | |
8618 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8619 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8620 | ;; | |
8621 | esac >> confcache | |
8622 | if cmp -s $cache_file confcache; then | |
8623 | : | |
8624 | else | |
10f2d63a | 8625 | if test -w $cache_file; then |
8284b0c5 MB |
8626 | echo "updating cache $cache_file" |
8627 | cat confcache > $cache_file | |
10f2d63a VZ |
8628 | else |
8629 | echo "not updating unwritable cache $cache_file" | |
8630 | fi | |
8631 | fi | |
8632 | rm -f confcache | |
8633 | ||
8284b0c5 | 8634 | |
e59890c3 | 8635 | if test "$build" != "$host" ; then |
9d353d4a | 8636 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8637 | CC=$host_alias-gcc |
8638 | CXX=$host_alias-c++ | |
8639 | AR=$host_alias-ar | |
8640 | RANLIB=$host_alias-ranlib | |
8641 | DLLTOOL=$host_alias-dlltool | |
8642 | RESCOMP=$host_alias-windres | |
8643 | LD=$host_alias-ld | |
8644 | NM=$host_alias-nm | |
8645 | STRIP=$host_alias-strip | |
8646 | else | |
8284b0c5 | 8647 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } |
3a922bb4 | 8648 | fi |
10f2d63a VZ |
8649 | fi |
8650 | ||
ec603395 | 8651 | CFLAGS=${CFLAGS:=} |
8284b0c5 MB |
8652 | # Extract the first word of "gcc", so it can be a program name with args. |
8653 | set dummy gcc; ac_word=$2 | |
8654 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8655 | echo "configure:8656: checking for $ac_word" >&5 | |
8656 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
8657 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8658 | else |
8659 | if test -n "$CC"; then | |
8660 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8661 | else |
8284b0c5 MB |
8662 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8663 | ac_dummy="$PATH" | |
8664 | for ac_dir in $ac_dummy; do | |
8665 | test -z "$ac_dir" && ac_dir=. | |
8666 | if test -f $ac_dir/$ac_word; then | |
8667 | ac_cv_prog_CC="gcc" | |
8668 | break | |
8669 | fi | |
8670 | done | |
8671 | IFS="$ac_save_ifs" | |
10f2d63a | 8672 | fi |
6232543b | 8673 | fi |
8284b0c5 | 8674 | CC="$ac_cv_prog_CC" |
6232543b | 8675 | if test -n "$CC"; then |
8284b0c5 | 8676 | echo "$ac_t""$CC" 1>&6 |
5c6fa7d2 | 8677 | else |
8284b0c5 | 8678 | echo "$ac_t""no" 1>&6 |
1e487827 | 8679 | fi |
6232543b | 8680 | |
5c6fa7d2 RR |
8681 | if test -z "$CC"; then |
8682 | # Extract the first word of "cc", so it can be a program name with args. | |
8683 | set dummy cc; ac_word=$2 | |
8284b0c5 MB |
8684 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8685 | echo "configure:8686: checking for $ac_word" >&5 | |
8686 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
8687 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 RR |
8688 | else |
8689 | if test -n "$CC"; then | |
8690 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8691 | else | |
8284b0c5 | 8692 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5c6fa7d2 | 8693 | ac_prog_rejected=no |
8284b0c5 MB |
8694 | ac_dummy="$PATH" |
8695 | for ac_dir in $ac_dummy; do | |
8696 | test -z "$ac_dir" && ac_dir=. | |
8697 | if test -f $ac_dir/$ac_word; then | |
8698 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8699 | ac_prog_rejected=yes | |
8700 | continue | |
8701 | fi | |
8702 | ac_cv_prog_CC="cc" | |
8703 | break | |
8704 | fi | |
8705 | done | |
8706 | IFS="$ac_save_ifs" | |
328a083c RR |
8707 | if test $ac_prog_rejected = yes; then |
8708 | # We found a bogon in the path, so make sure we never use it. | |
8709 | set dummy $ac_cv_prog_CC | |
8710 | shift | |
8284b0c5 | 8711 | if test $# -gt 0; then |
328a083c | 8712 | # We chose a different compiler from the bogus one. |
1e487827 VS |
8713 | # However, it has the same basename, so the bogon will be chosen |
8714 | # first if we set CC to just the basename; use the full file name. | |
8715 | shift | |
8284b0c5 | 8716 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8717 | shift |
8718 | ac_cv_prog_CC="$@" | |
703e0a69 | 8719 | fi |
1e487827 VS |
8720 | fi |
8721 | fi | |
8722 | fi | |
8284b0c5 | 8723 | CC="$ac_cv_prog_CC" |
1e487827 | 8724 | if test -n "$CC"; then |
8284b0c5 | 8725 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8726 | else |
8284b0c5 | 8727 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8728 | fi |
1e487827 | 8729 | |
8284b0c5 MB |
8730 | if test -z "$CC"; then |
8731 | case "`uname -s`" in | |
8732 | *win32* | *WIN32*) | |
8733 | # Extract the first word of "cl", so it can be a program name with args. | |
8734 | set dummy cl; ac_word=$2 | |
8735 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8736 | echo "configure:8737: checking for $ac_word" >&5 | |
8737 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
8738 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf VS |
8739 | else |
8740 | if test -n "$CC"; then | |
8741 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8742 | else | |
8284b0c5 MB |
8743 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8744 | ac_dummy="$PATH" | |
8745 | for ac_dir in $ac_dummy; do | |
8746 | test -z "$ac_dir" && ac_dir=. | |
8747 | if test -f $ac_dir/$ac_word; then | |
8748 | ac_cv_prog_CC="cl" | |
8749 | break | |
8750 | fi | |
8751 | done | |
8752 | IFS="$ac_save_ifs" | |
f09359cf VS |
8753 | fi |
8754 | fi | |
8284b0c5 | 8755 | CC="$ac_cv_prog_CC" |
f09359cf | 8756 | if test -n "$CC"; then |
8284b0c5 | 8757 | echo "$ac_t""$CC" 1>&6 |
f09359cf | 8758 | else |
8284b0c5 | 8759 | echo "$ac_t""no" 1>&6 |
7b4a847f | 8760 | fi |
8284b0c5 MB |
8761 | ;; |
8762 | esac | |
8763 | fi | |
8764 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
5c6fa7d2 | 8765 | fi |
1e487827 | 8766 | |
8284b0c5 MB |
8767 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
8768 | echo "configure:8769: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
f09359cf | 8769 | |
8284b0c5 MB |
8770 | ac_ext=c |
8771 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8772 | ac_cpp='$CPP $CPPFLAGS' | |
8773 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8774 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8775 | cross_compiling=$ac_cv_prog_cc_cross | |
f09359cf | 8776 | |
8284b0c5 | 8777 | cat > conftest.$ac_ext << EOF |
7b4a847f | 8778 | |
8284b0c5 MB |
8779 | #line 8780 "configure" |
8780 | #include "confdefs.h" | |
5c6fa7d2 | 8781 | |
8284b0c5 MB |
8782 | main(){return(0);} |
8783 | EOF | |
8784 | if { (eval echo configure:8785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8785 | ac_cv_prog_cc_works=yes | |
8786 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8787 | if (./conftest; exit) 2>/dev/null; then | |
8788 | ac_cv_prog_cc_cross=no | |
698dcdb6 | 8789 | else |
8284b0c5 | 8790 | ac_cv_prog_cc_cross=yes |
698dcdb6 | 8791 | fi |
7b4a847f | 8792 | else |
8284b0c5 MB |
8793 | echo "configure: failed program was:" >&5 |
8794 | cat conftest.$ac_ext >&5 | |
8795 | ac_cv_prog_cc_works=no | |
52127426 | 8796 | fi |
8284b0c5 MB |
8797 | rm -fr conftest* |
8798 | ac_ext=c | |
8799 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8800 | ac_cpp='$CPP $CPPFLAGS' | |
8801 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8802 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8803 | cross_compiling=$ac_cv_prog_cc_cross | |
8804 | ||
8805 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8806 | if test $ac_cv_prog_cc_works = no; then | |
8807 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8808 | fi | |
8809 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
8810 | echo "configure:8811: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
8811 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
8812 | cross_compiling=$ac_cv_prog_cc_cross | |
8813 | ||
8814 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
8815 | echo "configure:8816: checking whether we are using GNU C" >&5 | |
8816 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
8817 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8818 | else | |
8819 | cat > conftest.c <<EOF | |
8820 | #ifdef __GNUC__ | |
8821 | yes; | |
8822 | #endif | |
8823 | EOF | |
8824 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
8825 | ac_cv_prog_gcc=yes | |
5c6fa7d2 | 8826 | else |
8284b0c5 MB |
8827 | ac_cv_prog_gcc=no |
8828 | fi | |
8829 | fi | |
5c6fa7d2 | 8830 | |
8284b0c5 | 8831 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8832 | |
8284b0c5 MB |
8833 | if test $ac_cv_prog_gcc = yes; then |
8834 | GCC=yes | |
f09359cf | 8835 | else |
8284b0c5 | 8836 | GCC= |
f09359cf VS |
8837 | fi |
8838 | ||
8284b0c5 MB |
8839 | ac_test_CFLAGS="${CFLAGS+set}" |
8840 | ac_save_CFLAGS="$CFLAGS" | |
8841 | CFLAGS= | |
8842 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
8843 | echo "configure:8844: checking whether ${CC-cc} accepts -g" >&5 | |
8844 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | |
8845 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 8846 | else |
8284b0c5 MB |
8847 | echo 'void f(){}' > conftest.c |
8848 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8849 | ac_cv_prog_cc_g=yes |
8850 | else | |
8284b0c5 | 8851 | ac_cv_prog_cc_g=no |
10f2d63a | 8852 | fi |
8284b0c5 MB |
8853 | rm -f conftest* |
8854 | ||
10f2d63a | 8855 | fi |
8284b0c5 MB |
8856 | |
8857 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
f09359cf | 8858 | if test "$ac_test_CFLAGS" = set; then |
8284b0c5 | 8859 | CFLAGS="$ac_save_CFLAGS" |
f09359cf VS |
8860 | elif test $ac_cv_prog_cc_g = yes; then |
8861 | if test "$GCC" = yes; then | |
10f2d63a VZ |
8862 | CFLAGS="-g -O2" |
8863 | else | |
f09359cf | 8864 | CFLAGS="-g" |
10f2d63a | 8865 | fi |
5c0a20c3 | 8866 | else |
f09359cf VS |
8867 | if test "$GCC" = yes; then |
8868 | CFLAGS="-O2" | |
8869 | else | |
8870 | CFLAGS= | |
8871 | fi | |
10f2d63a VZ |
8872 | fi |
8873 | ||
8874 | ||
8284b0c5 MB |
8875 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
8876 | echo "configure:8877: checking how to run the C preprocessor" >&5 | |
10f2d63a VZ |
8877 | # On Suns, sometimes $CPP names a directory. |
8878 | if test -n "$CPP" && test -d "$CPP"; then | |
8879 | CPP= | |
8880 | fi | |
8881 | if test -z "$CPP"; then | |
8284b0c5 MB |
8882 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8883 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8884 | else | |
8885 | # This must be in double quotes, not single quotes, because CPP may get | |
8886 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8887 | CPP="${CC-cc} -E" | |
10f2d63a | 8888 | # On the NeXT, cc -E runs the code through the compiler's parser, |
8284b0c5 MB |
8889 | # not just through cpp. |
8890 | cat > conftest.$ac_ext <<EOF | |
8891 | #line 8892 "configure" | |
10f2d63a VZ |
8892 | #include "confdefs.h" |
8893 | #include <assert.h> | |
8284b0c5 MB |
8894 | Syntax Error |
8895 | EOF | |
8896 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8897 | { (eval echo configure:8898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8898 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8899 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8900 | : |
8901 | else | |
8284b0c5 MB |
8902 | echo "$ac_err" >&5 |
8903 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8904 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
8905 | rm -rf conftest* |
8906 | CPP="${CC-cc} -E -traditional-cpp" | |
8907 | cat > conftest.$ac_ext <<EOF | |
8908 | #line 8909 "configure" | |
f09359cf | 8909 | #include "confdefs.h" |
8284b0c5 MB |
8910 | #include <assert.h> |
8911 | Syntax Error | |
8912 | EOF | |
8913 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8914 | { (eval echo configure:8915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8915 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8916 | if test -z "$ac_err"; then | |
8917 | : | |
f09359cf | 8918 | else |
8284b0c5 MB |
8919 | echo "$ac_err" >&5 |
8920 | echo "configure: failed program was:" >&5 | |
f09359cf | 8921 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
8922 | rm -rf conftest* |
8923 | CPP="${CC-cc} -nologo -E" | |
8924 | cat > conftest.$ac_ext <<EOF | |
8925 | #line 8926 "configure" | |
10f2d63a VZ |
8926 | #include "confdefs.h" |
8927 | #include <assert.h> | |
8284b0c5 MB |
8928 | Syntax Error |
8929 | EOF | |
8930 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8931 | { (eval echo configure:8932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8932 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8933 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8934 | : |
8935 | else | |
8284b0c5 MB |
8936 | echo "$ac_err" >&5 |
8937 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8938 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
8939 | rm -rf conftest* |
8940 | CPP=/lib/cpp | |
f09359cf | 8941 | fi |
8284b0c5 | 8942 | rm -f conftest* |
579d8138 | 8943 | fi |
8284b0c5 | 8944 | rm -f conftest* |
52127426 | 8945 | fi |
8284b0c5 MB |
8946 | rm -f conftest* |
8947 | ac_cv_prog_CPP="$CPP" | |
8948 | fi | |
8949 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8950 | else |
8284b0c5 | 8951 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8952 | fi |
8284b0c5 | 8953 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8954 | |
8284b0c5 MB |
8955 | if test $ac_cv_prog_gcc = yes; then |
8956 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
8957 | echo "configure:8958: checking whether ${CC-cc} needs -traditional" >&5 | |
8958 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then | |
8959 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8960 | else |
8961 | ac_pattern="Autoconf.*'x'" | |
8284b0c5 MB |
8962 | cat > conftest.$ac_ext <<EOF |
8963 | #line 8964 "configure" | |
10f2d63a VZ |
8964 | #include "confdefs.h" |
8965 | #include <sgtty.h> | |
8966 | Autoconf TIOCGETP | |
8284b0c5 | 8967 | EOF |
10f2d63a VZ |
8968 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8969 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
8284b0c5 | 8970 | rm -rf conftest* |
10f2d63a VZ |
8971 | ac_cv_prog_gcc_traditional=yes |
8972 | else | |
8284b0c5 | 8973 | rm -rf conftest* |
10f2d63a VZ |
8974 | ac_cv_prog_gcc_traditional=no |
8975 | fi | |
8976 | rm -f conftest* | |
8977 | ||
8284b0c5 | 8978 | |
10f2d63a | 8979 | if test $ac_cv_prog_gcc_traditional = no; then |
8284b0c5 MB |
8980 | cat > conftest.$ac_ext <<EOF |
8981 | #line 8982 "configure" | |
10f2d63a VZ |
8982 | #include "confdefs.h" |
8983 | #include <termio.h> | |
8984 | Autoconf TCGETA | |
8284b0c5 | 8985 | EOF |
10f2d63a VZ |
8986 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8987 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
8284b0c5 | 8988 | rm -rf conftest* |
10f2d63a VZ |
8989 | ac_cv_prog_gcc_traditional=yes |
8990 | fi | |
8991 | rm -f conftest* | |
8992 | ||
8993 | fi | |
8994 | fi | |
8284b0c5 MB |
8995 | |
8996 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8997 | if test $ac_cv_prog_gcc_traditional = yes; then |
8998 | CC="$CC -traditional" | |
8999 | fi | |
9000 | fi | |
9001 | ||
8284b0c5 MB |
9002 | |
9003 | ||
9004 | ac_ext=C | |
9005 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 9006 | ac_cpp='$CXXCPP $CPPFLAGS' |
8284b0c5 MB |
9007 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9008 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9009 | cross_compiling=$ac_cv_prog_cxx_cross | |
9010 | ||
698dcdb6 | 9011 | |
ec603395 | 9012 | CXXFLAGS=${CXXFLAGS:=} |
8284b0c5 MB |
9013 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
9014 | do | |
9015 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9016 | set dummy $ac_prog; ac_word=$2 | |
9017 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9018 | echo "configure:9019: checking for $ac_word" >&5 | |
9019 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then | |
9020 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9021 | else |
9022 | if test -n "$CXX"; then | |
9023 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
9024 | else | |
8284b0c5 MB |
9025 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9026 | ac_dummy="$PATH" | |
9027 | for ac_dir in $ac_dummy; do | |
9028 | test -z "$ac_dir" && ac_dir=. | |
9029 | if test -f $ac_dir/$ac_word; then | |
9030 | ac_cv_prog_CXX="$ac_prog" | |
9031 | break | |
9032 | fi | |
9033 | done | |
9034 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9035 | fi |
9036 | fi | |
8284b0c5 | 9037 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 9038 | if test -n "$CXX"; then |
8284b0c5 | 9039 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9040 | else |
8284b0c5 | 9041 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9042 | fi |
9043 | ||
8284b0c5 | 9044 | test -n "$CXX" && break |
10f2d63a | 9045 | done |
8284b0c5 | 9046 | test -n "$CXX" || CXX="gcc" |
52127426 | 9047 | |
52127426 | 9048 | |
8284b0c5 MB |
9049 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
9050 | echo "configure:9051: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 | |
9051 | ||
9052 | ac_ext=C | |
9053 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9054 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9055 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9056 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9057 | cross_compiling=$ac_cv_prog_cxx_cross | |
9058 | ||
9059 | cat > conftest.$ac_ext << EOF | |
9060 | ||
9061 | #line 9062 "configure" | |
10f2d63a | 9062 | #include "confdefs.h" |
f09359cf | 9063 | |
8284b0c5 MB |
9064 | int main(){return(0);} |
9065 | EOF | |
9066 | if { (eval echo configure:9067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9067 | ac_cv_prog_cxx_works=yes | |
9068 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9069 | if (./conftest; exit) 2>/dev/null; then | |
9070 | ac_cv_prog_cxx_cross=no | |
9071 | else | |
9072 | ac_cv_prog_cxx_cross=yes | |
9073 | fi | |
9074 | else | |
9075 | echo "configure: failed program was:" >&5 | |
9076 | cat conftest.$ac_ext >&5 | |
9077 | ac_cv_prog_cxx_works=no | |
9078 | fi | |
9079 | rm -fr conftest* | |
9080 | ac_ext=C | |
9081 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9082 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9083 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9084 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9085 | cross_compiling=$ac_cv_prog_cxx_cross | |
9086 | ||
9087 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
9088 | if test $ac_cv_prog_cxx_works = no; then | |
9089 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9090 | fi | |
9091 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
9092 | echo "configure:9093: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
9093 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 | |
9094 | cross_compiling=$ac_cv_prog_cxx_cross | |
9095 | ||
9096 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
9097 | echo "configure:9098: checking whether we are using GNU C++" >&5 | |
9098 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then | |
9099 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9100 | else | |
9101 | cat > conftest.C <<EOF | |
9102 | #ifdef __GNUC__ | |
9103 | yes; | |
10f2d63a | 9104 | #endif |
8284b0c5 MB |
9105 | EOF |
9106 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
9107 | ac_cv_prog_gxx=yes | |
9108 | else | |
9109 | ac_cv_prog_gxx=no | |
9110 | fi | |
9111 | fi | |
10f2d63a | 9112 | |
8284b0c5 | 9113 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9114 | |
8284b0c5 MB |
9115 | if test $ac_cv_prog_gxx = yes; then |
9116 | GXX=yes | |
9117 | else | |
9118 | GXX= | |
9119 | fi | |
f09359cf | 9120 | |
8284b0c5 MB |
9121 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9122 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9123 | CXXFLAGS= | |
9124 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
9125 | echo "configure:9126: checking whether ${CXX-g++} accepts -g" >&5 | |
9126 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then | |
9127 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9128 | else | |
9129 | echo 'void f(){}' > conftest.cc | |
9130 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9131 | ac_cv_prog_cxx_g=yes |
9132 | else | |
8284b0c5 | 9133 | ac_cv_prog_cxx_g=no |
10f2d63a | 9134 | fi |
8284b0c5 MB |
9135 | rm -f conftest* |
9136 | ||
10f2d63a | 9137 | fi |
8284b0c5 MB |
9138 | |
9139 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
f09359cf | 9140 | if test "$ac_test_CXXFLAGS" = set; then |
8284b0c5 | 9141 | CXXFLAGS="$ac_save_CXXFLAGS" |
f09359cf VS |
9142 | elif test $ac_cv_prog_cxx_g = yes; then |
9143 | if test "$GXX" = yes; then | |
10f2d63a VZ |
9144 | CXXFLAGS="-g -O2" |
9145 | else | |
f09359cf | 9146 | CXXFLAGS="-g" |
10f2d63a | 9147 | fi |
5c0a20c3 | 9148 | else |
f09359cf VS |
9149 | if test "$GXX" = yes; then |
9150 | CXXFLAGS="-O2" | |
9151 | else | |
9152 | CXXFLAGS= | |
9153 | fi | |
10f2d63a VZ |
9154 | fi |
9155 | ||
9156 | ||
10f2d63a | 9157 | ac_ext=c |
8284b0c5 | 9158 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9159 | ac_cpp='$CPP $CPPFLAGS' |
8284b0c5 MB |
9160 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9161 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9162 | cross_compiling=$ac_cv_prog_cc_cross | |
9163 | ||
9164 | ||
9165 | # Extract the first word of "ranlib", so it can be a program name with args. | |
9166 | set dummy ranlib; ac_word=$2 | |
9167 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9168 | echo "configure:9169: checking for $ac_word" >&5 | |
9169 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | |
9170 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9171 | else |
9172 | if test -n "$RANLIB"; then | |
9173 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9174 | else | |
8284b0c5 MB |
9175 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9176 | ac_dummy="$PATH" | |
9177 | for ac_dir in $ac_dummy; do | |
9178 | test -z "$ac_dir" && ac_dir=. | |
9179 | if test -f $ac_dir/$ac_word; then | |
9180 | ac_cv_prog_RANLIB="ranlib" | |
9181 | break | |
9182 | fi | |
9183 | done | |
9184 | IFS="$ac_save_ifs" | |
9185 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9186 | fi |
9187 | fi | |
8284b0c5 | 9188 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9189 | if test -n "$RANLIB"; then |
8284b0c5 | 9190 | echo "$ac_t""$RANLIB" 1>&6 |
328a083c | 9191 | else |
8284b0c5 | 9192 | echo "$ac_t""no" 1>&6 |
328a083c RR |
9193 | fi |
9194 | ||
10f2d63a VZ |
9195 | |
9196 | # Extract the first word of "ar", so it can be a program name with args. | |
9197 | set dummy ar; ac_word=$2 | |
8284b0c5 MB |
9198 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9199 | echo "configure:9200: checking for $ac_word" >&5 | |
9200 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | |
9201 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9202 | else |
9203 | if test -n "$AR"; then | |
9204 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9205 | else | |
8284b0c5 MB |
9206 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9207 | ac_dummy="$PATH" | |
9208 | for ac_dir in $ac_dummy; do | |
9209 | test -z "$ac_dir" && ac_dir=. | |
9210 | if test -f $ac_dir/$ac_word; then | |
9211 | ac_cv_prog_AR="ar" | |
9212 | break | |
9213 | fi | |
9214 | done | |
9215 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9216 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9217 | fi | |
9218 | fi | |
8284b0c5 | 9219 | AR="$ac_cv_prog_AR" |
10f2d63a | 9220 | if test -n "$AR"; then |
8284b0c5 | 9221 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9222 | else |
8284b0c5 | 9223 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9224 | fi |
9225 | ||
8284b0c5 | 9226 | |
6054113a | 9227 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9228 | # so one script is as good as another. But avoid the broken or |
9229 | # incompatible versions: | |
9230 | # SysV /etc/install, /usr/sbin/install | |
9231 | # SunOS /usr/etc/install | |
9232 | # IRIX /sbin/install | |
9233 | # AIX /bin/install | |
f09359cf | 9234 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
9235 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
9236 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9237 | # ./install, which can be erroneously created by make from ./install.sh. | |
8284b0c5 MB |
9238 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
9239 | echo "configure:9240: checking for a BSD compatible install" >&5 | |
10f2d63a | 9240 | if test -z "$INSTALL"; then |
8284b0c5 MB |
9241 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9242 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9243 | else |
8284b0c5 | 9244 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
9245 | for ac_dir in $PATH; do |
9246 | # Account for people who put trailing slashes in PATH elements. | |
8284b0c5 MB |
9247 | case "$ac_dir/" in |
9248 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
9249 | *) |
9250 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
f09359cf VS |
9251 | # Don't use installbsd from OSF since it installs stuff as root |
9252 | # by default. | |
9253 | for ac_prog in ginstall scoinst install; do | |
8284b0c5 | 9254 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 9255 | if test $ac_prog = install && |
8284b0c5 | 9256 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
9257 | # AIX install. It has an incompatible calling convention. |
9258 | : | |
9259 | else | |
9260 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9261 | break 2 | |
9262 | fi | |
9263 | fi | |
9264 | done | |
9265 | ;; | |
9266 | esac | |
9267 | done | |
8284b0c5 | 9268 | IFS="$ac_save_IFS" |
10f2d63a VZ |
9269 | |
9270 | fi | |
9271 | if test "${ac_cv_path_install+set}" = set; then | |
8284b0c5 | 9272 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9273 | else |
9274 | # As a last resort, use the slow shell script. We don't cache a | |
9275 | # path for INSTALL within a source directory, because that will | |
9276 | # break other packages using the cache if that directory is | |
9277 | # removed, or if the path is relative. | |
8284b0c5 | 9278 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9279 | fi |
9280 | fi | |
8284b0c5 | 9281 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9282 | |
9283 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9284 | # It thinks the first close brace ends the variable substitution. | |
9285 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9286 | ||
8284b0c5 | 9287 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
f09359cf | 9288 | |
10f2d63a VZ |
9289 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9290 | ||
8284b0c5 | 9291 | |
1d1b75ac VZ |
9292 | case ${INSTALL} in |
9293 | /* ) # Absolute | |
9294 | ;; | |
3bd8fb5f | 9295 | *) |
1d1b75ac VZ |
9296 | INSTALL=`pwd`/${INSTALL} ;; |
9297 | esac | |
9298 | ||
8284b0c5 | 9299 | |
6054113a GD |
9300 | case "${host}" in |
9301 | ||
b5853384 | 9302 | powerpc-*-darwin* ) |
eb99ae0b GD |
9303 | INSTALL_PROGRAM="cp -fp" |
9304 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9305 | ;; |
9306 | *) | |
9307 | ;; | |
d6853540 | 9308 | esac |
698dcdb6 | 9309 | |
10f2d63a VZ |
9310 | # Extract the first word of "strip", so it can be a program name with args. |
9311 | set dummy strip; ac_word=$2 | |
8284b0c5 MB |
9312 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9313 | echo "configure:9314: checking for $ac_word" >&5 | |
9314 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | |
9315 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9316 | else |
9317 | if test -n "$STRIP"; then | |
9318 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9319 | else | |
8284b0c5 MB |
9320 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9321 | ac_dummy="$PATH" | |
9322 | for ac_dir in $ac_dummy; do | |
9323 | test -z "$ac_dir" && ac_dir=. | |
9324 | if test -f $ac_dir/$ac_word; then | |
9325 | ac_cv_prog_STRIP="strip" | |
9326 | break | |
9327 | fi | |
9328 | done | |
9329 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9330 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9331 | fi | |
9332 | fi | |
8284b0c5 | 9333 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9334 | if test -n "$STRIP"; then |
8284b0c5 | 9335 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9336 | else |
8284b0c5 | 9337 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9338 | fi |
9339 | ||
5c6fa7d2 | 9340 | |
8284b0c5 MB |
9341 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
9342 | echo "configure:9343: checking if make is GNU make" >&5 | |
9343 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then | |
9344 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9345 | else | |
9346 | ||
414eab6d | 9347 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 9348 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9349 | wx_cv_prog_makeisgnu="yes" |
9350 | else | |
9351 | wx_cv_prog_makeisgnu="no" | |
9352 | fi | |
9353 | ||
9354 | fi | |
8284b0c5 MB |
9355 | |
9356 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
414eab6d VZ |
9357 | |
9358 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9359 | IF_GNU_MAKE="" | |
9360 | else | |
9361 | IF_GNU_MAKE="#" | |
9362 | fi | |
9363 | ||
8284b0c5 MB |
9364 | |
9365 | ||
414eab6d | 9366 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
8284b0c5 MB |
9367 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
9368 | echo "configure:9369: checking if make supports VPATH" >&5 | |
9369 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then | |
9370 | echo $ac_n "(cached) $ac_c" 1>&6 | |
04e7a216 | 9371 | else |
8284b0c5 | 9372 | |
10f2d63a VZ |
9373 | cat - << EOF > confMake |
9374 | check : file | |
9375 | cp \$? \$@ | |
9376 | cp \$? final_file | |
9377 | EOF | |
9378 | ||
9379 | if test ! -d sub ; then | |
9380 | mkdir sub | |
9381 | fi | |
9382 | echo dummy > sub/file | |
f6bcfd97 | 9383 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9384 | RESULT=$? |
9385 | rm -f sub/file check final_file confMake | |
9386 | rmdir sub | |
9387 | if test "$RESULT" = 0; then | |
04e7a216 | 9388 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9389 | else |
04e7a216 VZ |
9390 | wx_cv_prog_makevpath="no" |
9391 | fi | |
9392 | ||
9393 | fi | |
8284b0c5 MB |
9394 | |
9395 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
04e7a216 VZ |
9396 | |
9397 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
8284b0c5 | 9398 | { echo "configure: error: |
5c6fa7d2 RR |
9399 | You need a make-utility that is able to use the variable |
9400 | VPATH correctly. | |
9401 | If your version of make does not support VPATH correctly, | |
9402 | please install GNU-make (possibly as gmake), and start | |
9403 | configure with the following command: | |
9404 | export MAKE=gmake; ./configure for sh-type shells | |
9405 | setenv MAKE gmake; ./configure for csh-type shells | |
9406 | Also please do remember to use gmake in this case every time | |
9407 | you are trying to compile. | |
8284b0c5 MB |
9408 | " 1>&2; exit 1; } |
9409 | fi fi | |
10f2d63a VZ |
9410 | for ac_prog in 'bison -y' byacc |
9411 | do | |
8284b0c5 | 9412 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9413 | set dummy $ac_prog; ac_word=$2 |
8284b0c5 MB |
9414 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9415 | echo "configure:9416: checking for $ac_word" >&5 | |
9416 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then | |
9417 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9418 | else |
9419 | if test -n "$YACC"; then | |
9420 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9421 | else | |
8284b0c5 MB |
9422 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9423 | ac_dummy="$PATH" | |
9424 | for ac_dir in $ac_dummy; do | |
9425 | test -z "$ac_dir" && ac_dir=. | |
9426 | if test -f $ac_dir/$ac_word; then | |
9427 | ac_cv_prog_YACC="$ac_prog" | |
9428 | break | |
9429 | fi | |
9430 | done | |
9431 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9432 | fi |
9433 | fi | |
8284b0c5 | 9434 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9435 | if test -n "$YACC"; then |
8284b0c5 | 9436 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9437 | else |
8284b0c5 | 9438 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9439 | fi |
9440 | ||
8284b0c5 | 9441 | test -n "$YACC" && break |
10f2d63a VZ |
9442 | done |
9443 | test -n "$YACC" || YACC="yacc" | |
9444 | ||
8284b0c5 MB |
9445 | |
9446 | # Extract the first word of "flex", so it can be a program name with args. | |
9447 | set dummy flex; ac_word=$2 | |
9448 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9449 | echo "configure:9450: checking for $ac_word" >&5 | |
9450 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then | |
9451 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9452 | else |
9453 | if test -n "$LEX"; then | |
9454 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9455 | else | |
8284b0c5 MB |
9456 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9457 | ac_dummy="$PATH" | |
9458 | for ac_dir in $ac_dummy; do | |
9459 | test -z "$ac_dir" && ac_dir=. | |
9460 | if test -f $ac_dir/$ac_word; then | |
9461 | ac_cv_prog_LEX="flex" | |
9462 | break | |
9463 | fi | |
9464 | done | |
9465 | IFS="$ac_save_ifs" | |
9466 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9467 | fi |
9468 | fi | |
8284b0c5 | 9469 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9470 | if test -n "$LEX"; then |
8284b0c5 | 9471 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9472 | else |
8284b0c5 | 9473 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9474 | fi |
9475 | ||
9476 | if test -z "$LEXLIB" | |
9477 | then | |
8284b0c5 MB |
9478 | case "$LEX" in |
9479 | flex*) ac_lib=fl ;; | |
9480 | *) ac_lib=l ;; | |
9481 | esac | |
9482 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
9483 | echo "configure:9484: checking for yywrap in -l$ac_lib" >&5 | |
9484 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` | |
9485 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9486 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9487 | else | |
9488 | ac_save_LIBS="$LIBS" | |
9489 | LIBS="-l$ac_lib $LIBS" | |
9490 | cat > conftest.$ac_ext <<EOF | |
9491 | #line 9492 "configure" | |
10f2d63a VZ |
9492 | #include "confdefs.h" |
9493 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9494 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
9495 | builtin and then its argument prototype would still apply. */ |
9496 | char yywrap(); | |
10f2d63a | 9497 | |
8284b0c5 MB |
9498 | int main() { |
9499 | yywrap() | |
9500 | ; return 0; } | |
9501 | EOF | |
9502 | if { (eval echo configure:9503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9503 | rm -rf conftest* | |
9504 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 9505 | else |
8284b0c5 MB |
9506 | echo "configure: failed program was:" >&5 |
9507 | cat conftest.$ac_ext >&5 | |
9508 | rm -rf conftest* | |
9509 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9510 | fi |
8284b0c5 MB |
9511 | rm -f conftest* |
9512 | LIBS="$ac_save_LIBS" | |
9513 | ||
10f2d63a | 9514 | fi |
8284b0c5 MB |
9515 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9516 | echo "$ac_t""yes" 1>&6 | |
9517 | LEXLIB="-l$ac_lib" | |
9518 | else | |
9519 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
9520 | fi |
9521 | ||
9522 | fi | |
9523 | ||
9524 | ||
8284b0c5 MB |
9525 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
9526 | echo "configure:9527: checking whether ln -s works" >&5 | |
9527 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | |
9528 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9529 | else |
8284b0c5 MB |
9530 | rm -f conftestdata |
9531 | if ln -s X conftestdata 2>/dev/null | |
9532 | then | |
9533 | rm -f conftestdata | |
9534 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9535 | else |
8284b0c5 | 9536 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
9537 | fi |
9538 | fi | |
8284b0c5 MB |
9539 | LN_S="$ac_cv_prog_LN_S" |
9540 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9541 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9542 | else |
8284b0c5 | 9543 | echo "$ac_t""no" 1>&6 |
5c6fa7d2 | 9544 | fi |
5c6fa7d2 | 9545 | |
10f2d63a VZ |
9546 | |
9547 | ||
21d1c967 | 9548 | if test "$wxUSE_MAC" != 1; then |
8284b0c5 | 9549 | for ac_hdr in strings.h |
21d1c967 | 9550 | do |
8284b0c5 MB |
9551 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9552 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9553 | echo "configure:9554: checking for $ac_hdr" >&5 | |
9554 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9555 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9556 | else | |
9557 | cat > conftest.$ac_ext <<EOF | |
9558 | #line 9559 "configure" | |
19bc6aad | 9559 | #include "confdefs.h" |
8284b0c5 MB |
9560 | #include <$ac_hdr> |
9561 | EOF | |
9562 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9563 | { (eval echo configure:9564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9564 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9565 | if test -z "$ac_err"; then | |
9566 | rm -rf conftest* | |
9567 | eval "ac_cv_header_$ac_safe=yes" | |
7b4a847f | 9568 | else |
8284b0c5 MB |
9569 | echo "$ac_err" >&5 |
9570 | echo "configure: failed program was:" >&5 | |
19bc6aad | 9571 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
9572 | rm -rf conftest* |
9573 | eval "ac_cv_header_$ac_safe=no" | |
19bc6aad | 9574 | fi |
8284b0c5 | 9575 | rm -f conftest* |
19bc6aad | 9576 | fi |
8284b0c5 MB |
9577 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9578 | echo "$ac_t""yes" 1>&6 | |
9579 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9580 | cat >> confdefs.h <<EOF | |
9581 | #define $ac_tr_hdr 1 | |
19bc6aad | 9582 | EOF |
8284b0c5 MB |
9583 | |
9584 | else | |
9585 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9586 | fi |
9587 | done | |
19bc6aad | 9588 | |
19bc6aad VZ |
9589 | fi |
9590 | ||
8284b0c5 | 9591 | for ac_hdr in stdlib.h |
21d1c967 | 9592 | do |
8284b0c5 MB |
9593 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9594 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9595 | echo "configure:9596: checking for $ac_hdr" >&5 | |
9596 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9597 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9598 | else | |
9599 | cat > conftest.$ac_ext <<EOF | |
9600 | #line 9601 "configure" | |
18dbb1f6 | 9601 | #include "confdefs.h" |
8284b0c5 MB |
9602 | #include <$ac_hdr> |
9603 | EOF | |
9604 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9605 | { (eval echo configure:9606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9606 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9607 | if test -z "$ac_err"; then | |
9608 | rm -rf conftest* | |
9609 | eval "ac_cv_header_$ac_safe=yes" | |
7b4a847f | 9610 | else |
8284b0c5 MB |
9611 | echo "$ac_err" >&5 |
9612 | echo "configure: failed program was:" >&5 | |
18dbb1f6 | 9613 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
9614 | rm -rf conftest* |
9615 | eval "ac_cv_header_$ac_safe=no" | |
18dbb1f6 | 9616 | fi |
8284b0c5 | 9617 | rm -f conftest* |
90dd450c | 9618 | fi |
8284b0c5 MB |
9619 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9620 | echo "$ac_t""yes" 1>&6 | |
9621 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9622 | cat >> confdefs.h <<EOF | |
9623 | #define $ac_tr_hdr 1 | |
90dd450c | 9624 | EOF |
8284b0c5 MB |
9625 | |
9626 | else | |
9627 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9628 | fi |
9629 | done | |
90dd450c | 9630 | |
8284b0c5 | 9631 | for ac_hdr in malloc.h |
21d1c967 | 9632 | do |
8284b0c5 MB |
9633 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9634 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9635 | echo "configure:9636: checking for $ac_hdr" >&5 | |
9636 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9637 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9638 | else | |
9639 | cat > conftest.$ac_ext <<EOF | |
9640 | #line 9641 "configure" | |
90dd450c | 9641 | #include "confdefs.h" |
8284b0c5 MB |
9642 | #include <$ac_hdr> |
9643 | EOF | |
9644 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9645 | { (eval echo configure:9646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9646 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9647 | if test -z "$ac_err"; then | |
9648 | rm -rf conftest* | |
9649 | eval "ac_cv_header_$ac_safe=yes" | |
7b4a847f | 9650 | else |
8284b0c5 MB |
9651 | echo "$ac_err" >&5 |
9652 | echo "configure: failed program was:" >&5 | |
18dbb1f6 | 9653 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
9654 | rm -rf conftest* |
9655 | eval "ac_cv_header_$ac_safe=no" | |
18dbb1f6 | 9656 | fi |
8284b0c5 | 9657 | rm -f conftest* |
18dbb1f6 | 9658 | fi |
8284b0c5 MB |
9659 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9660 | echo "$ac_t""yes" 1>&6 | |
9661 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9662 | cat >> confdefs.h <<EOF | |
9663 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9664 | EOF |
8284b0c5 MB |
9665 | |
9666 | else | |
9667 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9668 | fi |
9669 | done | |
dad6c0ea | 9670 | |
8284b0c5 | 9671 | for ac_hdr in unistd.h |
21d1c967 | 9672 | do |
8284b0c5 MB |
9673 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9674 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9675 | echo "configure:9676: checking for $ac_hdr" >&5 | |
9676 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9677 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9678 | else | |
9679 | cat > conftest.$ac_ext <<EOF | |
9680 | #line 9681 "configure" | |
3a922bb4 | 9681 | #include "confdefs.h" |
8284b0c5 MB |
9682 | #include <$ac_hdr> |
9683 | EOF | |
9684 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9685 | { (eval echo configure:9686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9686 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9687 | if test -z "$ac_err"; then | |
9688 | rm -rf conftest* | |
9689 | eval "ac_cv_header_$ac_safe=yes" | |
7b4a847f | 9690 | else |
8284b0c5 MB |
9691 | echo "$ac_err" >&5 |
9692 | echo "configure: failed program was:" >&5 | |
3a922bb4 | 9693 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
9694 | rm -rf conftest* |
9695 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9696 | fi |
8284b0c5 | 9697 | rm -f conftest* |
90dd450c | 9698 | fi |
8284b0c5 MB |
9699 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9700 | echo "$ac_t""yes" 1>&6 | |
9701 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9702 | cat >> confdefs.h <<EOF | |
9703 | #define $ac_tr_hdr 1 | |
90dd450c | 9704 | EOF |
8284b0c5 MB |
9705 | |
9706 | else | |
9707 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9708 | fi |
9709 | done | |
90dd450c | 9710 | |
8284b0c5 | 9711 | for ac_hdr in wchar.h |
21d1c967 | 9712 | do |
8284b0c5 MB |
9713 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9714 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9715 | echo "configure:9716: checking for $ac_hdr" >&5 | |
9716 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9717 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9718 | else | |
9719 | cat > conftest.$ac_ext <<EOF | |
9720 | #line 9721 "configure" | |
4f14bcd8 | 9721 | #include "confdefs.h" |
8284b0c5 MB |
9722 | #include <$ac_hdr> |
9723 | EOF | |
9724 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9725 | { (eval echo configure:9726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9726 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9727 | if test -z "$ac_err"; then | |
9728 | rm -rf conftest* | |
9729 | eval "ac_cv_header_$ac_safe=yes" | |
7b4a847f | 9730 | else |
8284b0c5 MB |
9731 | echo "$ac_err" >&5 |
9732 | echo "configure: failed program was:" >&5 | |
4f14bcd8 | 9733 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
9734 | rm -rf conftest* |
9735 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9736 | fi |
8284b0c5 | 9737 | rm -f conftest* |
4f14bcd8 | 9738 | fi |
8284b0c5 MB |
9739 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9740 | echo "$ac_t""yes" 1>&6 | |
9741 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9742 | cat >> confdefs.h <<EOF | |
9743 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9744 | EOF |
8284b0c5 MB |
9745 | |
9746 | else | |
9747 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9748 | fi |
9749 | done | |
4f14bcd8 | 9750 | |
5c6fa7d2 | 9751 | |
8284b0c5 MB |
9752 | if test "$ac_cv_header_wchar_h" != "yes"; then |
9753 | for ac_hdr in wcstr.h | |
21d1c967 | 9754 | do |
8284b0c5 MB |
9755 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9756 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9757 | echo "configure:9758: checking for $ac_hdr" >&5 | |
9758 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9759 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9760 | else | |
9761 | cat > conftest.$ac_ext <<EOF | |
9762 | #line 9763 "configure" | |
d4158b5d | 9763 | #include "confdefs.h" |
8284b0c5 MB |
9764 | #include <$ac_hdr> |
9765 | EOF | |
9766 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9767 | { (eval echo configure:9768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9768 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9769 | if test -z "$ac_err"; then | |
9770 | rm -rf conftest* | |
9771 | eval "ac_cv_header_$ac_safe=yes" | |
d4158b5d | 9772 | else |
8284b0c5 MB |
9773 | echo "$ac_err" >&5 |
9774 | echo "configure: failed program was:" >&5 | |
d4158b5d | 9775 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
9776 | rm -rf conftest* |
9777 | eval "ac_cv_header_$ac_safe=no" | |
d4158b5d | 9778 | fi |
8284b0c5 | 9779 | rm -f conftest* |
21d1c967 | 9780 | fi |
8284b0c5 MB |
9781 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9782 | echo "$ac_t""yes" 1>&6 | |
9783 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9784 | cat >> confdefs.h <<EOF | |
9785 | #define $ac_tr_hdr 1 | |
21d1c967 | 9786 | EOF |
8284b0c5 MB |
9787 | |
9788 | else | |
9789 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 9790 | fi |
21d1c967 | 9791 | done |
f6bcfd97 | 9792 | |
90dd450c | 9793 | fi |
90dd450c | 9794 | |
8284b0c5 | 9795 | for ac_hdr in fnmatch.h |
21d1c967 | 9796 | do |
8284b0c5 MB |
9797 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9798 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9799 | echo "configure:9800: checking for $ac_hdr" >&5 | |
9800 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9801 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9802 | else | |
9803 | cat > conftest.$ac_ext <<EOF | |
9804 | #line 9805 "configure" | |
90dd450c | 9805 | #include "confdefs.h" |
8284b0c5 MB |
9806 | #include <$ac_hdr> |
9807 | EOF | |
9808 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9809 | { (eval echo configure:9810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9810 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9811 | if test -z "$ac_err"; then | |
9812 | rm -rf conftest* | |
9813 | eval "ac_cv_header_$ac_safe=yes" | |
3a922bb4 | 9814 | else |
8284b0c5 MB |
9815 | echo "$ac_err" >&5 |
9816 | echo "configure: failed program was:" >&5 | |
3a922bb4 | 9817 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
9818 | rm -rf conftest* |
9819 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9820 | fi |
8284b0c5 | 9821 | rm -f conftest* |
4f14bcd8 | 9822 | fi |
8284b0c5 MB |
9823 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9824 | echo "$ac_t""yes" 1>&6 | |
9825 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9826 | cat >> confdefs.h <<EOF | |
9827 | #define $ac_tr_hdr 1 | |
90dd450c | 9828 | EOF |
8284b0c5 MB |
9829 | |
9830 | else | |
9831 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9832 | fi |
9833 | done | |
90dd450c | 9834 | |
5c6fa7d2 | 9835 | |
8284b0c5 MB |
9836 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
9837 | for ac_func in fnmatch | |
21d1c967 | 9838 | do |
8284b0c5 MB |
9839 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9840 | echo "configure:9841: checking for $ac_func" >&5 | |
9841 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
9842 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9843 | else | |
9844 | cat > conftest.$ac_ext <<EOF | |
9845 | #line 9846 "configure" | |
90dd450c | 9846 | #include "confdefs.h" |
21d1c967 | 9847 | /* System header to define __stub macros and hopefully few prototypes, |
8284b0c5 | 9848 | which can conflict with char $ac_func(); below. */ |
21d1c967 GD |
9849 | #include <assert.h> |
9850 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9851 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
9852 | builtin and then its argument prototype would still apply. */ |
9853 | char $ac_func(); | |
9854 | ||
9855 | int main() { | |
21d1c967 GD |
9856 | |
9857 | /* The GNU C library defines this for functions which it implements | |
9858 | to always fail with ENOSYS. Some functions are actually named | |
9859 | something starting with __ and the normal name is an alias. */ | |
9860 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9861 | choke me | |
9862 | #else | |
8284b0c5 | 9863 | $ac_func(); |
21d1c967 GD |
9864 | #endif |
9865 | ||
8284b0c5 | 9866 | ; return 0; } |
90dd450c | 9867 | EOF |
8284b0c5 MB |
9868 | if { (eval echo configure:9869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9869 | rm -rf conftest* | |
9870 | eval "ac_cv_func_$ac_func=yes" | |
9871 | else | |
9872 | echo "configure: failed program was:" >&5 | |
9873 | cat conftest.$ac_ext >&5 | |
9874 | rm -rf conftest* | |
9875 | eval "ac_cv_func_$ac_func=no" | |
9876 | fi | |
9877 | rm -f conftest* | |
9878 | fi | |
32832908 | 9879 | |
8284b0c5 MB |
9880 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9881 | echo "$ac_t""yes" 1>&6 | |
9882 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9883 | cat >> confdefs.h <<EOF | |
9884 | #define $ac_tr_func 1 | |
9885 | EOF | |
9886 | ||
9887 | else | |
9888 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9889 | fi |
9890 | done | |
90dd450c | 9891 | |
21d1c967 | 9892 | fi |
90dd450c | 9893 | |
8284b0c5 | 9894 | for ac_hdr in langinfo.h |
21d1c967 | 9895 | do |
8284b0c5 MB |
9896 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9897 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9898 | echo "configure:9899: checking for $ac_hdr" >&5 | |
9899 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9900 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9901 | else | |
9902 | cat > conftest.$ac_ext <<EOF | |
9903 | #line 9904 "configure" | |
90dd450c | 9904 | #include "confdefs.h" |
8284b0c5 MB |
9905 | #include <$ac_hdr> |
9906 | EOF | |
9907 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9908 | { (eval echo configure:9909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9909 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9910 | if test -z "$ac_err"; then | |
9911 | rm -rf conftest* | |
9912 | eval "ac_cv_header_$ac_safe=yes" | |
7b4a847f | 9913 | else |
8284b0c5 MB |
9914 | echo "$ac_err" >&5 |
9915 | echo "configure: failed program was:" >&5 | |
90dd450c | 9916 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
9917 | rm -rf conftest* |
9918 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 9919 | fi |
8284b0c5 | 9920 | rm -f conftest* |
4f14bcd8 | 9921 | fi |
8284b0c5 MB |
9922 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9923 | echo "$ac_t""yes" 1>&6 | |
9924 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9925 | cat >> confdefs.h <<EOF | |
9926 | #define $ac_tr_hdr 1 | |
90dd450c | 9927 | EOF |
8284b0c5 MB |
9928 | |
9929 | else | |
9930 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9931 | fi |
9932 | done | |
3a922bb4 | 9933 | |
8284b0c5 | 9934 | |
21d1c967 GD |
9935 | if test "$wxUSE_GUI" = "yes"; then |
9936 | if test "$wxUSE_UNIX" = "yes"; then | |
8284b0c5 | 9937 | for ac_hdr in X11/XKBlib.h |
21d1c967 | 9938 | do |
8284b0c5 MB |
9939 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9940 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9941 | echo "configure:9942: checking for $ac_hdr" >&5 | |
9942 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9943 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9944 | else | |
9945 | cat > conftest.$ac_ext <<EOF | |
9946 | #line 9947 "configure" | |
90dd450c | 9947 | #include "confdefs.h" |
8284b0c5 MB |
9948 | #include <$ac_hdr> |
9949 | EOF | |
9950 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9951 | { (eval echo configure:9952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9952 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9953 | if test -z "$ac_err"; then | |
9954 | rm -rf conftest* | |
9955 | eval "ac_cv_header_$ac_safe=yes" | |
5c6fa7d2 | 9956 | else |
8284b0c5 MB |
9957 | echo "$ac_err" >&5 |
9958 | echo "configure: failed program was:" >&5 | |
90dd450c | 9959 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
9960 | rm -rf conftest* |
9961 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9962 | fi |
8284b0c5 | 9963 | rm -f conftest* |
90dd450c | 9964 | fi |
8284b0c5 MB |
9965 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9966 | echo "$ac_t""yes" 1>&6 | |
9967 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9968 | cat >> confdefs.h <<EOF | |
9969 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9970 | EOF |
8284b0c5 MB |
9971 | |
9972 | else | |
9973 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9974 | fi |
9975 | done | |
10f2d63a | 9976 | |
21d1c967 | 9977 | fi |
90dd450c | 9978 | fi |
81809c07 | 9979 | |
8284b0c5 MB |
9980 | |
9981 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
9982 | echo "configure:9983: checking for working const" >&5 | |
9983 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | |
9984 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8168de4c | 9985 | else |
8284b0c5 MB |
9986 | cat > conftest.$ac_ext <<EOF |
9987 | #line 9988 "configure" | |
4f14bcd8 | 9988 | #include "confdefs.h" |
8284b0c5 MB |
9989 | |
9990 | int main() { | |
9991 | ||
9992 | /* Ultrix mips cc rejects this. */ | |
9993 | typedef int charset[2]; const charset x; | |
9994 | /* SunOS 4.1.1 cc rejects this. */ | |
9995 | char const *const *ccp; | |
9996 | char **p; | |
9997 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
9998 | struct point {int x, y;}; | |
9999 | static struct point const zero = {0,0}; | |
10000 | /* AIX XL C 1.02.0.0 rejects this. | |
10001 | It does not let you subtract one const X* pointer from another in an arm | |
10002 | of an if-expression whose if-part is not a constant expression */ | |
10003 | const char *g = "string"; | |
10004 | ccp = &g + (g ? g-g : 0); | |
10005 | /* HPUX 7.0 cc rejects these. */ | |
10006 | ++ccp; | |
10007 | p = (char**) ccp; | |
10008 | ccp = (char const *const *) p; | |
10009 | { /* SCO 3.2v4 cc rejects this. */ | |
10010 | char *t; | |
10011 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
10012 | ||
10013 | *t++ = 0; | |
328a083c | 10014 | } |
8284b0c5 MB |
10015 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
10016 | int x[] = {25, 17}; | |
10017 | const int *foo = &x[0]; | |
10018 | ++foo; | |
52127426 | 10019 | } |
8284b0c5 MB |
10020 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
10021 | typedef const int *iptr; | |
10022 | iptr p = 0; | |
10023 | ++p; | |
7b4a847f | 10024 | } |
8284b0c5 MB |
10025 | { /* AIX XL C 1.02.0.0 rejects this saying |
10026 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
10027 | struct s { int j; const int *ap[3]; }; | |
10028 | struct s *b; b->j = 5; | |
10029 | } | |
10030 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
10031 | const int foo = 10; | |
5c6fa7d2 | 10032 | } |
8284b0c5 MB |
10033 | |
10034 | ; return 0; } | |
10035 | EOF | |
10036 | if { (eval echo configure:10037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10037 | rm -rf conftest* | |
21d1c967 | 10038 | ac_cv_c_const=yes |
6f72b082 | 10039 | else |
8284b0c5 MB |
10040 | echo "configure: failed program was:" >&5 |
10041 | cat conftest.$ac_ext >&5 | |
10042 | rm -rf conftest* | |
10043 | ac_cv_c_const=no | |
4f14bcd8 | 10044 | fi |
8284b0c5 | 10045 | rm -f conftest* |
698dcdb6 | 10046 | fi |
5c6fa7d2 | 10047 | |
8284b0c5 MB |
10048 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
10049 | if test $ac_cv_c_const = no; then | |
10050 | cat >> confdefs.h <<\EOF | |
10051 | #define const | |
90dd450c VZ |
10052 | EOF |
10053 | ||
21d1c967 | 10054 | fi |
90dd450c | 10055 | |
8284b0c5 MB |
10056 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
10057 | echo "configure:10058: checking for inline" >&5 | |
10058 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | |
10059 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 10060 | else |
21d1c967 GD |
10061 | ac_cv_c_inline=no |
10062 | for ac_kw in inline __inline__ __inline; do | |
8284b0c5 MB |
10063 | cat > conftest.$ac_ext <<EOF |
10064 | #line 10065 "configure" | |
4f14bcd8 | 10065 | #include "confdefs.h" |
90dd450c | 10066 | |
8284b0c5 MB |
10067 | int main() { |
10068 | } $ac_kw foo() { | |
10069 | ; return 0; } | |
10070 | EOF | |
10071 | if { (eval echo configure:10072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10072 | rm -rf conftest* | |
21d1c967 | 10073 | ac_cv_c_inline=$ac_kw; break |
6f72b082 | 10074 | else |
8284b0c5 MB |
10075 | echo "configure: failed program was:" >&5 |
10076 | cat conftest.$ac_ext >&5 | |
698dcdb6 | 10077 | fi |
8284b0c5 | 10078 | rm -f conftest* |
21d1c967 | 10079 | done |
4f14bcd8 | 10080 | |
21d1c967 | 10081 | fi |
8284b0c5 MB |
10082 | |
10083 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
10084 | case "$ac_cv_c_inline" in | |
21d1c967 | 10085 | inline | yes) ;; |
8284b0c5 MB |
10086 | no) cat >> confdefs.h <<\EOF |
10087 | #define inline | |
90dd450c | 10088 | EOF |
21d1c967 | 10089 | ;; |
8284b0c5 | 10090 | *) cat >> confdefs.h <<EOF |
21d1c967 | 10091 | #define inline $ac_cv_c_inline |
4f14bcd8 | 10092 | EOF |
21d1c967 GD |
10093 | ;; |
10094 | esac | |
4f14bcd8 | 10095 | |
5c6fa7d2 | 10096 | |
8284b0c5 MB |
10097 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
10098 | echo "configure:10099: checking size of char" >&5 | |
10099 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then | |
10100 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 10101 | else |
8284b0c5 MB |
10102 | if test "$cross_compiling" = yes; then |
10103 | ac_cv_sizeof_char=1 | |
5c6fa7d2 | 10104 | else |
8284b0c5 MB |
10105 | cat > conftest.$ac_ext <<EOF |
10106 | #line 10107 "configure" | |
5c6fa7d2 | 10107 | #include "confdefs.h" |
8284b0c5 MB |
10108 | #include <stdio.h> |
10109 | #include <sys/types.h> | |
10110 | main() | |
10111 | { | |
10112 | FILE *f=fopen("conftestval", "w"); | |
10113 | if (!f) exit(1); | |
10114 | fprintf(f, "%d\n", sizeof(char)); | |
10115 | exit(0); | |
10116 | } | |
10117 | EOF | |
10118 | if { (eval echo configure:10119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10119 | then | |
10120 | ac_cv_sizeof_char=`cat conftestval` | |
5c6fa7d2 | 10121 | else |
8284b0c5 MB |
10122 | echo "configure: failed program was:" >&5 |
10123 | cat conftest.$ac_ext >&5 | |
10124 | rm -fr conftest* | |
10125 | ac_cv_sizeof_char=0 | |
10126 | fi | |
10127 | rm -fr conftest* | |
7b4a847f | 10128 | fi |
328a083c | 10129 | |
5c6fa7d2 | 10130 | fi |
8284b0c5 MB |
10131 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10132 | cat >> confdefs.h <<EOF | |
10133 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10134 | EOF | |
7b4a847f | 10135 | |
5c6fa7d2 | 10136 | |
8284b0c5 MB |
10137 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
10138 | echo "configure:10139: checking size of short" >&5 | |
10139 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then | |
10140 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 10141 | else |
21d1c967 | 10142 | if test "$cross_compiling" = yes; then |
8284b0c5 | 10143 | ac_cv_sizeof_short=2 |
21d1c967 | 10144 | else |
8284b0c5 MB |
10145 | cat > conftest.$ac_ext <<EOF |
10146 | #line 10147 "configure" | |
21d1c967 | 10147 | #include "confdefs.h" |
8284b0c5 MB |
10148 | #include <stdio.h> |
10149 | #include <sys/types.h> | |
10150 | main() | |
21d1c967 | 10151 | { |
8284b0c5 MB |
10152 | FILE *f=fopen("conftestval", "w"); |
10153 | if (!f) exit(1); | |
10154 | fprintf(f, "%d\n", sizeof(short)); | |
10155 | exit(0); | |
21d1c967 | 10156 | } |
8284b0c5 MB |
10157 | EOF |
10158 | if { (eval echo configure:10159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10159 | then | |
10160 | ac_cv_sizeof_short=`cat conftestval` | |
21d1c967 | 10161 | else |
8284b0c5 MB |
10162 | echo "configure: failed program was:" >&5 |
10163 | cat conftest.$ac_ext >&5 | |
10164 | rm -fr conftest* | |
10165 | ac_cv_sizeof_short=0 | |
7b4a847f | 10166 | fi |
8284b0c5 | 10167 | rm -fr conftest* |
5c6fa7d2 | 10168 | fi |
4f14bcd8 | 10169 | |
4f14bcd8 | 10170 | fi |
8284b0c5 MB |
10171 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10172 | cat >> confdefs.h <<EOF | |
10173 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
21d1c967 | 10174 | EOF |
4f14bcd8 GD |
10175 | |
10176 | ||
8284b0c5 MB |
10177 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
10178 | echo "configure:10179: checking size of void *" >&5 | |
10179 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then | |
10180 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 RR |
10181 | else |
10182 | if test "$cross_compiling" = yes; then | |
8284b0c5 | 10183 | ac_cv_sizeof_void_p=4 |
5c6fa7d2 | 10184 | else |
8284b0c5 MB |
10185 | cat > conftest.$ac_ext <<EOF |
10186 | #line 10187 "configure" | |
5c6fa7d2 | 10187 | #include "confdefs.h" |
8284b0c5 MB |
10188 | #include <stdio.h> |
10189 | #include <sys/types.h> | |
10190 | main() | |
5c6fa7d2 | 10191 | { |
8284b0c5 MB |
10192 | FILE *f=fopen("conftestval", "w"); |
10193 | if (!f) exit(1); | |
10194 | fprintf(f, "%d\n", sizeof(void *)); | |
10195 | exit(0); | |
5c6fa7d2 | 10196 | } |
4f14bcd8 | 10197 | EOF |
8284b0c5 MB |
10198 | if { (eval echo configure:10199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10199 | then | |
10200 | ac_cv_sizeof_void_p=`cat conftestval` | |
5c6fa7d2 | 10201 | else |
8284b0c5 MB |
10202 | echo "configure: failed program was:" >&5 |
10203 | cat conftest.$ac_ext >&5 | |
10204 | rm -fr conftest* | |
10205 | ac_cv_sizeof_void_p=0 | |
7b4a847f | 10206 | fi |
8284b0c5 | 10207 | rm -fr conftest* |
7b4a847f | 10208 | fi |
4f14bcd8 | 10209 | |
5c6fa7d2 | 10210 | fi |
8284b0c5 MB |
10211 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
10212 | cat >> confdefs.h <<EOF | |
21d1c967 | 10213 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
90dd450c VZ |
10214 | EOF |
10215 | ||
8284b0c5 MB |
10216 | |
10217 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
10218 | echo "configure:10219: checking size of int" >&5 | |
10219 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then | |
10220 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 10221 | else |
5c6fa7d2 | 10222 | if test "$cross_compiling" = yes; then |
8284b0c5 | 10223 | ac_cv_sizeof_int=4 |
5c6fa7d2 | 10224 | else |
8284b0c5 MB |
10225 | cat > conftest.$ac_ext <<EOF |
10226 | #line 10227 "configure" | |
5c6fa7d2 | 10227 | #include "confdefs.h" |
8284b0c5 MB |
10228 | #include <stdio.h> |
10229 | #include <sys/types.h> | |
10230 | main() | |
5c6fa7d2 | 10231 | { |
8284b0c5 MB |
10232 | FILE *f=fopen("conftestval", "w"); |
10233 | if (!f) exit(1); | |
10234 | fprintf(f, "%d\n", sizeof(int)); | |
10235 | exit(0); | |
5c6fa7d2 | 10236 | } |
8284b0c5 MB |
10237 | EOF |
10238 | if { (eval echo configure:10239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10239 | then | |
10240 | ac_cv_sizeof_int=`cat conftestval` | |
5c6fa7d2 | 10241 | else |
8284b0c5 MB |
10242 | echo "configure: failed program was:" >&5 |
10243 | cat conftest.$ac_ext >&5 | |
10244 | rm -fr conftest* | |
5c6fa7d2 RR |
10245 | ac_cv_sizeof_int=0 |
10246 | fi | |
8284b0c5 MB |
10247 | rm -fr conftest* |
10248 | fi | |
10249 | ||
5c6fa7d2 | 10250 | fi |
8284b0c5 MB |
10251 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
10252 | cat >> confdefs.h <<EOF | |
21d1c967 | 10253 | #define SIZEOF_INT $ac_cv_sizeof_int |
90dd450c VZ |
10254 | EOF |
10255 | ||
8284b0c5 MB |
10256 | |
10257 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
10258 | echo "configure:10259: checking size of long" >&5 | |
10259 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then | |
10260 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 10261 | else |
5c6fa7d2 | 10262 | if test "$cross_compiling" = yes; then |
8284b0c5 | 10263 | ac_cv_sizeof_long=4 |
5c6fa7d2 | 10264 | else |
8284b0c5 MB |
10265 | cat > conftest.$ac_ext <<EOF |
10266 | #line 10267 "configure" | |
5c6fa7d2 | 10267 | #include "confdefs.h" |
8284b0c5 MB |
10268 | #include <stdio.h> |
10269 | #include <sys/types.h> | |
10270 | main() | |
5c6fa7d2 | 10271 | { |
8284b0c5 MB |
10272 | FILE *f=fopen("conftestval", "w"); |
10273 | if (!f) exit(1); | |
10274 | fprintf(f, "%d\n", sizeof(long)); | |
10275 | exit(0); | |
5c6fa7d2 | 10276 | } |
8284b0c5 MB |
10277 | EOF |
10278 | if { (eval echo configure:10279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10279 | then | |
10280 | ac_cv_sizeof_long=`cat conftestval` | |
5c6fa7d2 | 10281 | else |
8284b0c5 MB |
10282 | echo "configure: failed program was:" >&5 |
10283 | cat conftest.$ac_ext >&5 | |
10284 | rm -fr conftest* | |
5c6fa7d2 RR |
10285 | ac_cv_sizeof_long=0 |
10286 | fi | |
8284b0c5 | 10287 | rm -fr conftest* |
5c6fa7d2 | 10288 | fi |
52127426 | 10289 | |
5c6fa7d2 | 10290 | fi |
8284b0c5 MB |
10291 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
10292 | cat >> confdefs.h <<EOF | |
10293 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
5c6fa7d2 | 10294 | EOF |
8284b0c5 MB |
10295 | |
10296 | ||
10297 | ||
10298 | case "${host}" in | |
10299 | arm-*-linux* ) | |
10300 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
10301 | echo "configure:10302: checking size of long long" >&5 | |
10302 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | |
10303 | echo $ac_n "(cached) $ac_c" 1>&6 | |
328a083c | 10304 | else |
7b4a847f | 10305 | if test "$cross_compiling" = yes; then |
8284b0c5 | 10306 | ac_cv_sizeof_long_long=8 |
7b4a847f | 10307 | else |
8284b0c5 MB |
10308 | cat > conftest.$ac_ext <<EOF |
10309 | #line 10310 "configure" | |
7b4a847f | 10310 | #include "confdefs.h" |
8284b0c5 MB |
10311 | #include <stdio.h> |
10312 | #include <sys/types.h> | |
10313 | main() | |
7b4a847f | 10314 | { |
8284b0c5 MB |
10315 | FILE *f=fopen("conftestval", "w"); |
10316 | if (!f) exit(1); | |
10317 | fprintf(f, "%d\n", sizeof(long long)); | |
10318 | exit(0); | |
7b4a847f | 10319 | } |
8284b0c5 MB |
10320 | EOF |
10321 | if { (eval echo configure:10322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10322 | then | |
10323 | ac_cv_sizeof_long_long=`cat conftestval` | |
7b4a847f | 10324 | else |
8284b0c5 MB |
10325 | echo "configure: failed program was:" >&5 |
10326 | cat conftest.$ac_ext >&5 | |
10327 | rm -fr conftest* | |
10328 | ac_cv_sizeof_long_long=0 | |
7b4a847f | 10329 | fi |
8284b0c5 | 10330 | rm -fr conftest* |
5c6fa7d2 | 10331 | fi |
8284b0c5 | 10332 | |
5c6fa7d2 | 10333 | fi |
8284b0c5 MB |
10334 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10335 | cat >> confdefs.h <<EOF | |
10336 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10337 | EOF | |
10338 | ||
10339 | ||
10340 | ;; | |
10341 | * ) | |
10342 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
10343 | echo "configure:10344: checking size of long long" >&5 | |
10344 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | |
10345 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10346 | else | |
10347 | if test "$cross_compiling" = yes; then | |
10348 | ac_cv_sizeof_long_long=0 | |
10349 | else | |
10350 | cat > conftest.$ac_ext <<EOF | |
10351 | #line 10352 "configure" | |
10352 | #include "confdefs.h" | |
10353 | #include <stdio.h> | |
10354 | #include <sys/types.h> | |
10355 | main() | |
10356 | { | |
10357 | FILE *f=fopen("conftestval", "w"); | |
10358 | if (!f) exit(1); | |
10359 | fprintf(f, "%d\n", sizeof(long long)); | |
10360 | exit(0); | |
10361 | } | |
10362 | EOF | |
10363 | if { (eval echo configure:10364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10364 | then | |
10365 | ac_cv_sizeof_long_long=`cat conftestval` | |
5c6fa7d2 | 10366 | else |
8284b0c5 MB |
10367 | echo "configure: failed program was:" >&5 |
10368 | cat conftest.$ac_ext >&5 | |
10369 | rm -fr conftest* | |
5c6fa7d2 | 10370 | ac_cv_sizeof_long_long=0 |
52127426 | 10371 | fi |
8284b0c5 | 10372 | rm -fr conftest* |
7b4a847f | 10373 | fi |
8284b0c5 MB |
10374 | |
10375 | fi | |
10376 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10377 | cat >> confdefs.h <<EOF | |
21d1c967 | 10378 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
90dd450c | 10379 | EOF |
9e691f46 | 10380 | |
8284b0c5 | 10381 | |
21d1c967 GD |
10382 | esac |
10383 | ||
8284b0c5 MB |
10384 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
10385 | echo "configure:10386: checking size of wchar_t" >&5 | |
10386 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then | |
10387 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 10388 | else |
8284b0c5 | 10389 | |
21d1c967 GD |
10390 | if test "$cross_compiling" = yes; then |
10391 | wx_cv_sizeof_wchar_t=4 | |
8284b0c5 | 10392 | |
6f72b082 | 10393 | else |
8284b0c5 MB |
10394 | cat > conftest.$ac_ext <<EOF |
10395 | #line 10396 "configure" | |
6f72b082 | 10396 | #include "confdefs.h" |
21d1c967 GD |
10397 | |
10398 | #ifdef HAVE_WCHAR_H | |
10399 | # ifdef __CYGWIN__ | |
10400 | # include <stddef.h> | |
10401 | # endif | |
10402 | # include <wchar.h> | |
10403 | #endif | |
10404 | #ifdef HAVE_STDLIB_H | |
10405 | # include <stdlib.h> | |
10406 | #endif | |
10407 | #include <stdio.h> | |
10408 | int main() | |
10409 | { | |
10410 | FILE *f=fopen("conftestval", "w"); | |
10411 | if (!f) exit(1); | |
10412 | fprintf(f, "%i", sizeof(wchar_t)); | |
10413 | exit(0); | |
10414 | } | |
8284b0c5 MB |
10415 | |
10416 | EOF | |
10417 | if { (eval echo configure:10418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10418 | then | |
21d1c967 | 10419 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 10420 | else |
8284b0c5 MB |
10421 | echo "configure: failed program was:" >&5 |
10422 | cat conftest.$ac_ext >&5 | |
10423 | rm -fr conftest* | |
10424 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 10425 | fi |
8284b0c5 | 10426 | rm -fr conftest* |
6f72b082 | 10427 | fi |
6f72b082 | 10428 | |
8284b0c5 | 10429 | |
3f345b47 VZ |
10430 | fi |
10431 | ||
8284b0c5 MB |
10432 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
10433 | ||
10434 | cat >> confdefs.h <<EOF | |
21d1c967 GD |
10435 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
10436 | EOF | |
90dd450c | 10437 | |
8284b0c5 | 10438 | |
21d1c967 GD |
10439 | # Check whether --enable-largefile or --disable-largefile was given. |
10440 | if test "${enable_largefile+set}" = set; then | |
10441 | enableval="$enable_largefile" | |
8284b0c5 MB |
10442 | : |
10443 | fi | |
3f345b47 | 10444 | |
21d1c967 GD |
10445 | if test "$enable_largefile" != no; then |
10446 | wx_largefile=no | |
8284b0c5 MB |
10447 | |
10448 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
10449 | echo "configure:10450: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
10450 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then | |
10451 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10452 | else | |
10453 | ||
10454 | cat > conftest.$ac_ext <<EOF | |
10455 | #line 10456 "configure" | |
90dd450c | 10456 | #include "confdefs.h" |
21d1c967 GD |
10457 | #define _FILE_OFFSET_BITS 64 |
10458 | #include <sys/types.h> | |
8284b0c5 | 10459 | int main() { |
21d1c967 GD |
10460 | typedef struct { |
10461 | unsigned int field: sizeof(off_t) == 8; | |
10462 | } wxlf; | |
10463 | ||
8284b0c5 MB |
10464 | ; return 0; } |
10465 | EOF | |
10466 | if { (eval echo configure:10467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10467 | rm -rf conftest* | |
21d1c967 | 10468 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 10469 | else |
8284b0c5 MB |
10470 | echo "configure: failed program was:" >&5 |
10471 | cat conftest.$ac_ext >&5 | |
10472 | rm -rf conftest* | |
10473 | ac_cv_sys_file_offset_bits=no | |
7b4a847f | 10474 | fi |
8284b0c5 MB |
10475 | rm -f conftest* |
10476 | ||
10477 | ||
5c6fa7d2 | 10478 | fi |
8284b0c5 MB |
10479 | |
10480 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
21d1c967 GD |
10481 | |
10482 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
10483 | wx_largefile=yes | |
8284b0c5 | 10484 | cat >> confdefs.h <<EOF |
21d1c967 GD |
10485 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
10486 | EOF | |
10487 | ||
10488 | fi | |
10489 | ||
10490 | if test "x$wx_largefile" != "xyes"; then | |
8284b0c5 MB |
10491 | |
10492 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
10493 | echo "configure:10494: checking for _LARGE_FILES value needed for large files" >&5 | |
10494 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then | |
10495 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10496 | else | |
10497 | ||
10498 | cat > conftest.$ac_ext <<EOF | |
10499 | #line 10500 "configure" | |
f6bcfd97 | 10500 | #include "confdefs.h" |
21d1c967 GD |
10501 | #define _LARGE_FILES 1 |
10502 | #include <sys/types.h> | |
8284b0c5 | 10503 | int main() { |
21d1c967 GD |
10504 | typedef struct { |
10505 | unsigned int field: sizeof(off_t) == 8; | |
10506 | } wxlf; | |
10507 | ||
8284b0c5 MB |
10508 | ; return 0; } |
10509 | EOF | |
10510 | if { (eval echo configure:10511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10511 | rm -rf conftest* | |
21d1c967 | 10512 | ac_cv_sys_large_files=1 |
f6bcfd97 | 10513 | else |
8284b0c5 MB |
10514 | echo "configure: failed program was:" >&5 |
10515 | cat conftest.$ac_ext >&5 | |
10516 | rm -rf conftest* | |
10517 | ac_cv_sys_large_files=no | |
7b4a847f | 10518 | fi |
8284b0c5 MB |
10519 | rm -f conftest* |
10520 | ||
10521 | ||
5c6fa7d2 | 10522 | fi |
8284b0c5 MB |
10523 | |
10524 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
3f345b47 | 10525 | |
21d1c967 GD |
10526 | if test "$ac_cv_sys_large_files" != no; then |
10527 | wx_largefile=yes | |
8284b0c5 | 10528 | cat >> confdefs.h <<EOF |
21d1c967 GD |
10529 | #define _LARGE_FILES $ac_cv_sys_large_files |
10530 | EOF | |
90dd450c | 10531 | |
90dd450c VZ |
10532 | fi |
10533 | ||
90dd450c | 10534 | fi |
90dd450c | 10535 | |
8284b0c5 MB |
10536 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
10537 | echo "configure:10538: checking if large file support is available" >&5 | |
21d1c967 | 10538 | if test "x$wx_largefile" = "xyes"; then |
8284b0c5 | 10539 | cat >> confdefs.h <<\EOF |
21d1c967 | 10540 | #define HAVE_LARGEFILE_SUPPORT 1 |
90dd450c VZ |
10541 | EOF |
10542 | ||
90dd450c | 10543 | fi |
8284b0c5 | 10544 | echo "$ac_t""$wx_largefile" 1>&6 |
21d1c967 | 10545 | fi |
90dd450c | 10546 | |
8284b0c5 MB |
10547 | |
10548 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
10549 | echo "configure:10550: checking whether byte ordering is bigendian" >&5 | |
10550 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then | |
10551 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 10552 | else |
21d1c967 GD |
10553 | ac_cv_c_bigendian=unknown |
10554 | # See if sys/param.h defines the BYTE_ORDER macro. | |
8284b0c5 MB |
10555 | cat > conftest.$ac_ext <<EOF |
10556 | #line 10557 "configure" | |
90dd450c | 10557 | #include "confdefs.h" |
21d1c967 GD |
10558 | #include <sys/types.h> |
10559 | #include <sys/param.h> | |
8284b0c5 | 10560 | int main() { |
21d1c967 GD |
10561 | |
10562 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10563 | bogus endian macros | |
10564 | #endif | |
8284b0c5 MB |
10565 | ; return 0; } |
10566 | EOF | |
10567 | if { (eval echo configure:10568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10568 | rm -rf conftest* | |
21d1c967 | 10569 | # It does; now see whether it defined to BIG_ENDIAN or not. |
8284b0c5 MB |
10570 | cat > conftest.$ac_ext <<EOF |
10571 | #line 10572 "configure" | |
90dd450c | 10572 | #include "confdefs.h" |
21d1c967 GD |
10573 | #include <sys/types.h> |
10574 | #include <sys/param.h> | |
8284b0c5 | 10575 | int main() { |
21d1c967 GD |
10576 | |
10577 | #if BYTE_ORDER != BIG_ENDIAN | |
10578 | not big endian | |
10579 | #endif | |
8284b0c5 MB |
10580 | ; return 0; } |
10581 | EOF | |
10582 | if { (eval echo configure:10583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10583 | rm -rf conftest* | |
21d1c967 | 10584 | ac_cv_c_bigendian=yes |
3f345b47 | 10585 | else |
8284b0c5 MB |
10586 | echo "configure: failed program was:" >&5 |
10587 | cat conftest.$ac_ext >&5 | |
10588 | rm -rf conftest* | |
10589 | ac_cv_c_bigendian=no | |
3f345b47 | 10590 | fi |
8284b0c5 | 10591 | rm -f conftest* |
3f345b47 | 10592 | else |
8284b0c5 MB |
10593 | echo "configure: failed program was:" >&5 |
10594 | cat conftest.$ac_ext >&5 | |
3f345b47 | 10595 | fi |
8284b0c5 | 10596 | rm -f conftest* |
21d1c967 GD |
10597 | if test $ac_cv_c_bigendian = unknown; then |
10598 | if test "$cross_compiling" = yes; then | |
10599 | ac_cv_c_bigendian=unknown | |
10f2d63a | 10600 | else |
8284b0c5 MB |
10601 | cat > conftest.$ac_ext <<EOF |
10602 | #line 10603 "configure" | |
90dd450c | 10603 | #include "confdefs.h" |
21d1c967 GD |
10604 | main () { |
10605 | /* Are we little or big endian? From Harbison&Steele. */ | |
10606 | union | |
10607 | { | |
10608 | long l; | |
10609 | char c[sizeof (long)]; | |
10610 | } u; | |
10611 | u.l = 1; | |
10612 | exit (u.c[sizeof (long) - 1] == 1); | |
10613 | } | |
8284b0c5 MB |
10614 | EOF |
10615 | if { (eval echo configure:10616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10616 | then | |
21d1c967 | 10617 | ac_cv_c_bigendian=no |
3f345b47 | 10618 | else |
8284b0c5 MB |
10619 | echo "configure: failed program was:" >&5 |
10620 | cat conftest.$ac_ext >&5 | |
10621 | rm -fr conftest* | |
10622 | ac_cv_c_bigendian=yes | |
3f345b47 | 10623 | fi |
8284b0c5 | 10624 | rm -fr conftest* |
8168de4c | 10625 | fi |
8284b0c5 | 10626 | |
21d1c967 GD |
10627 | fi |
10628 | fi | |
8284b0c5 MB |
10629 | |
10630 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
21d1c967 | 10631 | if test $ac_cv_c_bigendian = unknown; then |
8284b0c5 | 10632 | 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 |
21d1c967 GD |
10633 | fi |
10634 | if test $ac_cv_c_bigendian = yes; then | |
8284b0c5 | 10635 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
10636 | #define WORDS_BIGENDIAN 1 |
10637 | EOF | |
10638 | ||
10639 | fi | |
10640 | ||
5c6fa7d2 | 10641 | |
8284b0c5 MB |
10642 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
10643 | echo "configure:10644: checking how to run the C++ preprocessor" >&5 | |
10644 | if test -z "$CXXCPP"; then | |
10645 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
10646 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 | 10647 | else |
8284b0c5 MB |
10648 | ac_ext=C |
10649 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10650 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10651 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10652 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10653 | cross_compiling=$ac_cv_prog_cxx_cross | |
10654 | CXXCPP="${CXX-g++} -E" | |
10655 | cat > conftest.$ac_ext <<EOF | |
10656 | #line 10657 "configure" | |
5c6fa7d2 | 10657 | #include "confdefs.h" |
8284b0c5 MB |
10658 | #include <stdlib.h> |
10659 | EOF | |
10660 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10661 | { (eval echo configure:10662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10662 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10663 | if test -z "$ac_err"; then | |
21d1c967 | 10664 | : |
698dcdb6 | 10665 | else |
8284b0c5 MB |
10666 | echo "$ac_err" >&5 |
10667 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 10668 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
10669 | rm -rf conftest* |
10670 | CXXCPP=/lib/cpp | |
5c6fa7d2 | 10671 | fi |
8284b0c5 MB |
10672 | rm -f conftest* |
10673 | ac_cv_prog_CXXCPP="$CXXCPP" | |
10674 | ac_ext=C | |
10675 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10676 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10677 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10678 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10679 | cross_compiling=$ac_cv_prog_cxx_cross | |
328a083c | 10680 | fi |
90dd450c | 10681 | fi |
8284b0c5 MB |
10682 | CXXCPP="$ac_cv_prog_CXXCPP" |
10683 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e6feb95 | 10684 | |
1725144d | 10685 | |
21d1c967 | 10686 | if test "$cross_compiling" = "yes"; then |
8284b0c5 | 10687 | cat >> confdefs.h <<\EOF |
21d1c967 | 10688 | #define wxUSE_IOSTREAMH 1 |
90dd450c | 10689 | EOF |
ab9b9eab | 10690 | |
21d1c967 | 10691 | else |
8284b0c5 MB |
10692 | |
10693 | ac_ext=C | |
10694 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 10695 | ac_cpp='$CXXCPP $CPPFLAGS' |
8284b0c5 MB |
10696 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10697 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10698 | cross_compiling=$ac_cv_prog_cxx_cross | |
10699 | ||
52127426 | 10700 | |
8284b0c5 | 10701 | for ac_hdr in iostream |
21d1c967 | 10702 | do |
8284b0c5 MB |
10703 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10704 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
10705 | echo "configure:10706: checking for $ac_hdr" >&5 | |
10706 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10707 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10708 | else | |
10709 | cat > conftest.$ac_ext <<EOF | |
10710 | #line 10711 "configure" | |
ab9b9eab | 10711 | #include "confdefs.h" |
8284b0c5 MB |
10712 | #include <$ac_hdr> |
10713 | EOF | |
10714 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10715 | { (eval echo configure:10716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10716 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10717 | if test -z "$ac_err"; then | |
10718 | rm -rf conftest* | |
10719 | eval "ac_cv_header_$ac_safe=yes" | |
7b4a847f | 10720 | else |
8284b0c5 MB |
10721 | echo "$ac_err" >&5 |
10722 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 10723 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
10724 | rm -rf conftest* |
10725 | eval "ac_cv_header_$ac_safe=no" | |
ab9b9eab | 10726 | fi |
8284b0c5 | 10727 | rm -f conftest* |
90dd450c | 10728 | fi |
8284b0c5 MB |
10729 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10730 | echo "$ac_t""yes" 1>&6 | |
10731 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10732 | cat >> confdefs.h <<EOF | |
10733 | #define $ac_tr_hdr 1 | |
698dcdb6 | 10734 | EOF |
8284b0c5 MB |
10735 | |
10736 | else | |
10737 | echo "$ac_t""no" 1>&6 | |
90dd450c | 10738 | fi |
21d1c967 | 10739 | done |
10f2d63a | 10740 | |
8284b0c5 | 10741 | |
21d1c967 GD |
10742 | if test "$ac_cv_header_iostream" = "yes" ; then |
10743 | : | |
10744 | else | |
8284b0c5 | 10745 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
10746 | #define wxUSE_IOSTREAMH 1 |
10747 | EOF | |
788deba1 | 10748 | |
90dd450c | 10749 | fi |
ab9b9eab | 10750 | |
21d1c967 | 10751 | ac_ext=c |
8284b0c5 | 10752 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 10753 | ac_cpp='$CPP $CPPFLAGS' |
8284b0c5 MB |
10754 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10755 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10756 | cross_compiling=$ac_cv_prog_cc_cross | |
ab9b9eab | 10757 | |
21d1c967 | 10758 | fi |
ab9b9eab | 10759 | |
52127426 | 10760 | |
8284b0c5 MB |
10761 | |
10762 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
10763 | echo "configure:10764: checking if C++ compiler supports bool" >&5 | |
10764 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then | |
10765 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10766 | else | |
10767 | ||
10768 | ||
10769 | ac_ext=C | |
10770 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 10771 | ac_cpp='$CXXCPP $CPPFLAGS' |
8284b0c5 MB |
10772 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10773 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10774 | cross_compiling=$ac_cv_prog_cxx_cross | |
21d1c967 | 10775 | |
8284b0c5 MB |
10776 | |
10777 | cat > conftest.$ac_ext <<EOF | |
10778 | #line 10779 "configure" | |
ab9b9eab | 10779 | #include "confdefs.h" |
21d1c967 | 10780 | |
8284b0c5 MB |
10781 | |
10782 | int main() { | |
21d1c967 GD |
10783 | |
10784 | bool b = true; | |
10785 | ||
10786 | return 0; | |
8284b0c5 MB |
10787 | |
10788 | ; return 0; } | |
10789 | EOF | |
10790 | if { (eval echo configure:10791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10791 | rm -rf conftest* | |
10792 | ||
21d1c967 | 10793 | wx_cv_cpp_bool=yes |
8284b0c5 | 10794 | |
698dcdb6 | 10795 | else |
8284b0c5 MB |
10796 | echo "configure: failed program was:" >&5 |
10797 | cat conftest.$ac_ext >&5 | |
10798 | rm -rf conftest* | |
10799 | ||
21d1c967 | 10800 | wx_cv_cpp_bool=no |
8284b0c5 MB |
10801 | |
10802 | ||
698dcdb6 | 10803 | fi |
8284b0c5 | 10804 | rm -f conftest* |
21d1c967 GD |
10805 | |
10806 | ac_ext=c | |
8284b0c5 | 10807 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 10808 | ac_cpp='$CPP $CPPFLAGS' |
8284b0c5 MB |
10809 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10810 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10811 | cross_compiling=$ac_cv_prog_cc_cross | |
21d1c967 | 10812 | |
8284b0c5 | 10813 | |
698dcdb6 | 10814 | fi |
8284b0c5 MB |
10815 | |
10816 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
21d1c967 GD |
10817 | |
10818 | if test "$wx_cv_cpp_bool" = "yes"; then | |
8284b0c5 | 10819 | cat >> confdefs.h <<\EOF |
21d1c967 | 10820 | #define HAVE_BOOL 1 |
90dd450c | 10821 | EOF |
ab9b9eab | 10822 | |
21d1c967 GD |
10823 | fi |
10824 | ||
52127426 | 10825 | |
8284b0c5 MB |
10826 | |
10827 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 | |
10828 | echo "configure:10829: checking if C++ compiler supports the explicit keyword" >&5 | |
10829 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then | |
10830 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10831 | else | |
10832 | ||
10833 | ||
10834 | ac_ext=C | |
10835 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 10836 | ac_cpp='$CXXCPP $CPPFLAGS' |
8284b0c5 MB |
10837 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10838 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10839 | cross_compiling=$ac_cv_prog_cxx_cross | |
986ecc86 | 10840 | |
8284b0c5 MB |
10841 | |
10842 | cat > conftest.$ac_ext <<EOF | |
10843 | #line 10844 "configure" | |
986ecc86 VZ |
10844 | #include "confdefs.h" |
10845 | ||
10846 | class Foo { public: explicit Foo(int) {} }; | |
8284b0c5 MB |
10847 | |
10848 | int main() { | |
986ecc86 VZ |
10849 | |
10850 | return 0; | |
8284b0c5 MB |
10851 | |
10852 | ; return 0; } | |
10853 | EOF | |
10854 | if { (eval echo configure:10855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10855 | rm -rf conftest* | |
10856 | ||
10857 | cat > conftest.$ac_ext <<EOF | |
10858 | #line 10859 "configure" | |
986ecc86 VZ |
10859 | #include "confdefs.h" |
10860 | ||
10861 | class Foo { public: explicit Foo(int) {} }; | |
10862 | static void TakeFoo(const Foo& foo) { } | |
8284b0c5 MB |
10863 | |
10864 | int main() { | |
986ecc86 VZ |
10865 | |
10866 | TakeFoo(17); | |
10867 | return 0; | |
8284b0c5 MB |
10868 | |
10869 | ; return 0; } | |
10870 | EOF | |
10871 | if { (eval echo configure:10872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10872 | rm -rf conftest* | |
986ecc86 VZ |
10873 | wx_cv_explicit=no |
10874 | else | |
8284b0c5 MB |
10875 | echo "configure: failed program was:" >&5 |
10876 | cat conftest.$ac_ext >&5 | |
10877 | rm -rf conftest* | |
10878 | wx_cv_explicit=yes | |
10879 | ||
986ecc86 | 10880 | fi |
8284b0c5 MB |
10881 | rm -f conftest* |
10882 | ||
986ecc86 | 10883 | else |
8284b0c5 MB |
10884 | echo "configure: failed program was:" >&5 |
10885 | cat conftest.$ac_ext >&5 | |
10886 | rm -rf conftest* | |
10887 | wx_cv_explicit=no | |
10888 | ||
986ecc86 | 10889 | fi |
8284b0c5 | 10890 | rm -f conftest* |
986ecc86 VZ |
10891 | |
10892 | ac_ext=c | |
8284b0c5 | 10893 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
986ecc86 | 10894 | ac_cpp='$CPP $CPPFLAGS' |
8284b0c5 MB |
10895 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10896 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10897 | cross_compiling=$ac_cv_prog_cc_cross | |
986ecc86 | 10898 | |
8284b0c5 | 10899 | |
986ecc86 | 10900 | fi |
8284b0c5 MB |
10901 | |
10902 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
986ecc86 VZ |
10903 | |
10904 | if test "$wx_cv_explicit" = "yes"; then | |
8284b0c5 | 10905 | cat >> confdefs.h <<\EOF |
986ecc86 VZ |
10906 | #define HAVE_EXPLICIT 1 |
10907 | EOF | |
10908 | ||
10909 | fi | |
10910 | ||
8284b0c5 MB |
10911 | |
10912 | ||
21d1c967 GD |
10913 | SEARCH_INCLUDE="\ |
10914 | /usr/local/include \ | |
10915 | \ | |
10916 | /usr/Motif-1.2/include \ | |
10917 | /usr/Motif-2.1/include \ | |
10918 | \ | |
10919 | /usr/include/Motif1.2 \ | |
10920 | /opt/xpm/include/X11 \ | |
10921 | /opt/GBxpm/include/ \ | |
10922 | /opt/GBxpm/X11/include/ \ | |
10923 | \ | |
10924 | /usr/Motif1.2/include \ | |
10925 | /usr/dt/include \ | |
10926 | /usr/openwin/include \ | |
10927 | \ | |
10928 | /usr/include/Xm \ | |
10929 | \ | |
10930 | /usr/X11R6/include \ | |
10931 | /usr/X11R6.4/include \ | |
10932 | /usr/X11R5/include \ | |
10933 | /usr/X11R4/include \ | |
10934 | \ | |
10935 | /usr/include/X11R6 \ | |
10936 | /usr/include/X11R5 \ | |
10937 | /usr/include/X11R4 \ | |
10938 | \ | |
10939 | /usr/local/X11R6/include \ | |
10940 | /usr/local/X11R5/include \ | |
10941 | /usr/local/X11R4/include \ | |
10942 | \ | |
10943 | /usr/local/include/X11R6 \ | |
10944 | /usr/local/include/X11R5 \ | |
10945 | /usr/local/include/X11R4 \ | |
10946 | \ | |
10947 | /usr/X11/include \ | |
10948 | /usr/include/X11 \ | |
10949 | /usr/local/X11/include \ | |
10950 | /usr/local/include/X11 \ | |
10951 | \ | |
10952 | /usr/X386/include \ | |
10953 | /usr/x386/include \ | |
10954 | /usr/XFree86/include/X11 \ | |
10955 | \ | |
10956 | X:/XFree86/include \ | |
10957 | X:/XFree86/include/X11 \ | |
10958 | \ | |
10959 | /usr/include/gtk \ | |
10960 | /usr/local/include/gtk \ | |
10961 | /usr/include/glib \ | |
10962 | /usr/local/include/glib \ | |
10963 | \ | |
10964 | /usr/include/qt \ | |
10965 | /usr/local/include/qt \ | |
10966 | \ | |
10967 | /usr/include/windows \ | |
10968 | /usr/include/wine \ | |
10969 | /usr/local/include/wine \ | |
10970 | \ | |
10971 | /usr/unsupported/include \ | |
10972 | /usr/athena/include \ | |
10973 | /usr/local/x11r5/include \ | |
10974 | /usr/lpp/Xamples/include \ | |
10975 | \ | |
10976 | /usr/openwin/share/include \ | |
10977 | \ | |
10978 | /usr/include" | |
10979 | ||
10980 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
10981 | ||
8284b0c5 MB |
10982 | |
10983 | cat > confcache <<\EOF | |
21d1c967 GD |
10984 | # This file is a shell script that caches the results of configure |
10985 | # tests run on this system so they can be shared between configure | |
8284b0c5 MB |
10986 | # scripts and configure runs. It is not useful on other systems. |
10987 | # If it contains results you don't want to keep, you may remove or edit it. | |
21d1c967 | 10988 | # |
8284b0c5 MB |
10989 | # By default, configure uses ./config.cache as the cache file, |
10990 | # creating it if it does not exist already. You can give configure | |
10991 | # the --cache-file=FILE option to use a different cache file; that is | |
10992 | # what configure does when it calls configure scripts in | |
10993 | # subdirectories, so they share the cache. | |
10994 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
10995 | # config.status only pays attention to the cache file if you give it the | |
10996 | # --recheck option to rerun configure. | |
21d1c967 | 10997 | # |
8284b0c5 | 10998 | EOF |
21d1c967 GD |
10999 | # The following way of writing the cache mishandles newlines in values, |
11000 | # but we know of no workaround that is simple, portable, and efficient. | |
11001 | # So, don't put newlines in cache variables' values. | |
11002 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11003 | # and sets the high bit in the cache file unless we assign to the vars. | |
8284b0c5 MB |
11004 | (set) 2>&1 | |
11005 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11006 | *ac_space=\ *) | |
11007 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11008 | # turns \\\\ into \\, and sed turns \\ into \). | |
11009 | sed -n \ | |
11010 | -e "s/'/'\\\\''/g" \ | |
11011 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11012 | ;; | |
11013 | *) | |
11014 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11015 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11016 | ;; | |
11017 | esac >> confcache | |
11018 | if cmp -s $cache_file confcache; then | |
11019 | : | |
11020 | else | |
21d1c967 | 11021 | if test -w $cache_file; then |
8284b0c5 MB |
11022 | echo "updating cache $cache_file" |
11023 | cat confcache > $cache_file | |
21d1c967 GD |
11024 | else |
11025 | echo "not updating unwritable cache $cache_file" | |
11026 | fi | |
ab9b9eab | 11027 | fi |
21d1c967 | 11028 | rm -f confcache |
ab9b9eab | 11029 | |
5c6fa7d2 | 11030 | |
8284b0c5 MB |
11031 | if test "$USE_LINUX" = 1; then |
11032 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
11033 | echo "configure:11034: checking for glibc 2.1 or later" >&5 | |
11034 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then | |
11035 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11036 | else | |
11037 | ||
11038 | cat > conftest.$ac_ext <<EOF | |
11039 | #line 11040 "configure" | |
ab9b9eab | 11040 | #include "confdefs.h" |
21d1c967 | 11041 | #include <features.h> |
8284b0c5 | 11042 | int main() { |
ab9b9eab | 11043 | |
21d1c967 GD |
11044 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
11045 | #error not glibc2.1 | |
11046 | #endif | |
8284b0c5 MB |
11047 | |
11048 | ; return 0; } | |
11049 | EOF | |
11050 | if { (eval echo configure:11051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11051 | rm -rf conftest* | |
11052 | ||
21d1c967 | 11053 | wx_cv_lib_glibc21=yes |
8284b0c5 | 11054 | |
698dcdb6 | 11055 | else |
8284b0c5 MB |
11056 | echo "configure: failed program was:" >&5 |
11057 | cat conftest.$ac_ext >&5 | |
11058 | rm -rf conftest* | |
11059 | ||
21d1c967 | 11060 | wx_cv_lib_glibc21=no |
8284b0c5 MB |
11061 | |
11062 | ||
328a083c | 11063 | fi |
8284b0c5 MB |
11064 | rm -f conftest* |
11065 | ||
5c6fa7d2 | 11066 | fi |
8284b0c5 MB |
11067 | |
11068 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 | |
21d1c967 | 11069 | if test "$wx_cv_lib_glibc21" = "yes"; then |
8284b0c5 | 11070 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
11071 | #define wxHAVE_GLIBC2 1 |
11072 | EOF | |
1e487827 | 11073 | |
90dd450c | 11074 | fi |
ab9b9eab VZ |
11075 | fi |
11076 | ||
5c0a20c3 VZ |
11077 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
11078 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
8284b0c5 | 11079 | cat >> confdefs.h <<\EOF |
5c0a20c3 VZ |
11080 | #define _GNU_SOURCE 1 |
11081 | EOF | |
11082 | ||
11083 | fi | |
11084 | fi | |
11085 | ||
8284b0c5 MB |
11086 | |
11087 | ||
21d1c967 GD |
11088 | REGEX_INCLUDE= |
11089 | if test "$wxUSE_REGEX" != "no"; then | |
8284b0c5 | 11090 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
11091 | #define wxUSE_REGEX 1 |
11092 | EOF | |
698dcdb6 | 11093 | |
8284b0c5 | 11094 | |
21d1c967 | 11095 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
8284b0c5 MB |
11096 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` |
11097 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
11098 | echo "configure:11099: checking for regex.h" >&5 | |
11099 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11100 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11101 | else | |
11102 | cat > conftest.$ac_ext <<EOF | |
11103 | #line 11104 "configure" | |
21d1c967 GD |
11104 | #include "confdefs.h" |
11105 | #include <regex.h> | |
8284b0c5 MB |
11106 | EOF |
11107 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11108 | { (eval echo configure:11109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11109 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11110 | if test -z "$ac_err"; then | |
11111 | rm -rf conftest* | |
11112 | eval "ac_cv_header_$ac_safe=yes" | |
7b4a847f | 11113 | else |
8284b0c5 MB |
11114 | echo "$ac_err" >&5 |
11115 | echo "configure: failed program was:" >&5 | |
21d1c967 | 11116 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
11117 | rm -rf conftest* |
11118 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 11119 | fi |
8284b0c5 | 11120 | rm -f conftest* |
698dcdb6 | 11121 | fi |
8284b0c5 MB |
11122 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11123 | echo "$ac_t""yes" 1>&6 | |
11124 | for ac_func in regcomp | |
21d1c967 | 11125 | do |
8284b0c5 MB |
11126 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11127 | echo "configure:11128: checking for $ac_func" >&5 | |
11128 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
11129 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 | 11130 | else |
8284b0c5 MB |
11131 | cat > conftest.$ac_ext <<EOF |
11132 | #line 11133 "configure" | |
11133 | #include "confdefs.h" | |
11134 | /* System header to define __stub macros and hopefully few prototypes, | |
11135 | which can conflict with char $ac_func(); below. */ | |
21d1c967 GD |
11136 | #include <assert.h> |
11137 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11138 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
11139 | builtin and then its argument prototype would still apply. */ |
11140 | char $ac_func(); | |
11141 | ||
11142 | int main() { | |
90dd450c | 11143 | |
21d1c967 GD |
11144 | /* The GNU C library defines this for functions which it implements |
11145 | to always fail with ENOSYS. Some functions are actually named | |
11146 | something starting with __ and the normal name is an alias. */ | |
11147 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11148 | choke me | |
11149 | #else | |
8284b0c5 | 11150 | $ac_func(); |
21d1c967 | 11151 | #endif |
90dd450c | 11152 | |
8284b0c5 | 11153 | ; return 0; } |
52127426 | 11154 | EOF |
8284b0c5 MB |
11155 | if { (eval echo configure:11156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11156 | rm -rf conftest* | |
11157 | eval "ac_cv_func_$ac_func=yes" | |
11158 | else | |
11159 | echo "configure: failed program was:" >&5 | |
11160 | cat conftest.$ac_ext >&5 | |
11161 | rm -rf conftest* | |
11162 | eval "ac_cv_func_$ac_func=no" | |
11163 | fi | |
11164 | rm -f conftest* | |
11165 | fi | |
5c6fa7d2 | 11166 | |
8284b0c5 MB |
11167 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11168 | echo "$ac_t""yes" 1>&6 | |
11169 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11170 | cat >> confdefs.h <<EOF | |
11171 | #define $ac_tr_func 1 | |
11172 | EOF | |
11173 | ||
11174 | else | |
11175 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 11176 | fi |
21d1c967 GD |
11177 | done |
11178 | ||
8284b0c5 MB |
11179 | else |
11180 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11181 | fi |
11182 | ||
8284b0c5 | 11183 | |
21d1c967 GD |
11184 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
11185 | if test "$wxUSE_REGEX" = "sys" ; then | |
8284b0c5 | 11186 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11187 | else |
8284b0c5 | 11188 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11189 | wxUSE_REGEX=builtin |
11190 | fi | |
11191 | else | |
11192 | wxUSE_REGEX=sys | |
11193 | fi | |
ab9b9eab | 11194 | fi |
90dd450c | 11195 | |
21d1c967 GD |
11196 | if test "$wxUSE_REGEX" = "builtin" ; then |
11197 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 11198 | fi |
21d1c967 | 11199 | fi |
90dd450c | 11200 | |
8284b0c5 | 11201 | |
21d1c967 GD |
11202 | ZLIB_INCLUDE= |
11203 | ZLIB_LINK= | |
11204 | if test "$wxUSE_ZLIB" != "no" ; then | |
8284b0c5 | 11205 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
11206 | #define wxUSE_ZLIB 1 |
11207 | EOF | |
11208 | ||
8284b0c5 | 11209 | |
21d1c967 | 11210 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
8284b0c5 MB |
11211 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
11212 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
11213 | echo "configure:11214: checking for zlib.h" >&5 | |
11214 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11215 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11216 | else | |
11217 | cat > conftest.$ac_ext <<EOF | |
11218 | #line 11219 "configure" | |
ab9b9eab | 11219 | #include "confdefs.h" |
21d1c967 | 11220 | #include <zlib.h> |
8284b0c5 MB |
11221 | EOF |
11222 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11223 | { (eval echo configure:11224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11224 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11225 | if test -z "$ac_err"; then | |
11226 | rm -rf conftest* | |
11227 | eval "ac_cv_header_$ac_safe=yes" | |
328a083c | 11228 | else |
8284b0c5 MB |
11229 | echo "$ac_err" >&5 |
11230 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 11231 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
11232 | rm -rf conftest* |
11233 | eval "ac_cv_header_$ac_safe=no" | |
698dcdb6 | 11234 | fi |
8284b0c5 | 11235 | rm -f conftest* |
ab9b9eab | 11236 | fi |
8284b0c5 MB |
11237 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11238 | echo "$ac_t""yes" 1>&6 | |
11239 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
11240 | echo "configure:11241: checking for deflate in -lz" >&5 | |
11241 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` | |
11242 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11243 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11244 | else |
8284b0c5 | 11245 | ac_save_LIBS="$LIBS" |
21d1c967 | 11246 | LIBS="-lz $LIBS" |
8284b0c5 MB |
11247 | cat > conftest.$ac_ext <<EOF |
11248 | #line 11249 "configure" | |
ab9b9eab | 11249 | #include "confdefs.h" |
21d1c967 GD |
11250 | /* Override any gcc2 internal prototype to avoid an error. */ |
11251 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
11252 | builtin and then its argument prototype would still apply. */ |
11253 | char deflate(); | |
11254 | ||
11255 | int main() { | |
11256 | deflate() | |
11257 | ; return 0; } | |
11258 | EOF | |
11259 | if { (eval echo configure:11260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11260 | rm -rf conftest* | |
11261 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11262 | else | |
11263 | echo "configure: failed program was:" >&5 | |
11264 | cat conftest.$ac_ext >&5 | |
11265 | rm -rf conftest* | |
11266 | eval "ac_cv_lib_$ac_lib_var=no" | |
11267 | fi | |
11268 | rm -f conftest* | |
11269 | LIBS="$ac_save_LIBS" | |
11270 | ||
11271 | fi | |
11272 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11273 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11274 | ZLIB_LINK=" -lz" |
8284b0c5 MB |
11275 | else |
11276 | echo "$ac_t""no" 1>&6 | |
90dd450c | 11277 | fi |
698dcdb6 | 11278 | |
8284b0c5 MB |
11279 | else |
11280 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 11281 | fi |
698dcdb6 | 11282 | |
8284b0c5 | 11283 | |
21d1c967 GD |
11284 | if test "x$ZLIB_LINK" = "x" ; then |
11285 | if test "$wxUSE_ZLIB" = "sys" ; then | |
8284b0c5 | 11286 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11287 | else |
8284b0c5 | 11288 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11289 | wxUSE_ZLIB=builtin |
11290 | fi | |
11291 | else | |
11292 | wxUSE_ZLIB=sys | |
11293 | fi | |
11294 | fi | |
11295 | ||
11296 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11297 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11298 | fi | |
ab9b9eab VZ |
11299 | fi |
11300 | ||
8284b0c5 | 11301 | |
21d1c967 GD |
11302 | PNG_INCLUDE= |
11303 | PNG_LINK= | |
11304 | if test "$wxUSE_LIBPNG" != "no" ; then | |
8284b0c5 | 11305 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
11306 | #define wxUSE_LIBPNG 1 |
11307 | EOF | |
90dd450c | 11308 | |
8284b0c5 | 11309 | |
21d1c967 | 11310 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
8284b0c5 | 11311 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11312 | wxUSE_LIBPNG=sys |
11313 | fi | |
90dd450c | 11314 | |
21d1c967 | 11315 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
8284b0c5 | 11316 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
21d1c967 GD |
11317 | wxUSE_LIBPNG=builtin |
11318 | fi | |
11319 | ||
11320 | if test "$wxUSE_MGL" != 1 ; then | |
11321 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
8284b0c5 MB |
11322 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
11323 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
11324 | echo "configure:11325: checking for png.h" >&5 | |
11325 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11326 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11327 | else | |
11328 | cat > conftest.$ac_ext <<EOF | |
11329 | #line 11330 "configure" | |
21d1c967 GD |
11330 | #include "confdefs.h" |
11331 | #include <png.h> | |
8284b0c5 MB |
11332 | EOF |
11333 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11334 | { (eval echo configure:11335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11335 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11336 | if test -z "$ac_err"; then | |
11337 | rm -rf conftest* | |
11338 | eval "ac_cv_header_$ac_safe=yes" | |
90dd450c | 11339 | else |
8284b0c5 MB |
11340 | echo "$ac_err" >&5 |
11341 | echo "configure: failed program was:" >&5 | |
90dd450c | 11342 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
11343 | rm -rf conftest* |
11344 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 11345 | fi |
8284b0c5 | 11346 | rm -f conftest* |
90dd450c | 11347 | fi |
8284b0c5 MB |
11348 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11349 | echo "$ac_t""yes" 1>&6 | |
11350 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
11351 | echo "configure:11352: checking for png_check_sig in -lpng" >&5 | |
11352 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` | |
11353 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11354 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11355 | else |
8284b0c5 | 11356 | ac_save_LIBS="$LIBS" |
21d1c967 | 11357 | LIBS="-lpng -lz -lm $LIBS" |
8284b0c5 MB |
11358 | cat > conftest.$ac_ext <<EOF |
11359 | #line 11360 "configure" | |
90dd450c | 11360 | #include "confdefs.h" |
21d1c967 GD |
11361 | /* Override any gcc2 internal prototype to avoid an error. */ |
11362 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
11363 | builtin and then its argument prototype would still apply. */ |
11364 | char png_check_sig(); | |
11365 | ||
11366 | int main() { | |
11367 | png_check_sig() | |
11368 | ; return 0; } | |
11369 | EOF | |
11370 | if { (eval echo configure:11371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11371 | rm -rf conftest* | |
11372 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11373 | else | |
11374 | echo "configure: failed program was:" >&5 | |
11375 | cat conftest.$ac_ext >&5 | |
11376 | rm -rf conftest* | |
11377 | eval "ac_cv_lib_$ac_lib_var=no" | |
11378 | fi | |
11379 | rm -f conftest* | |
11380 | LIBS="$ac_save_LIBS" | |
11381 | ||
11382 | fi | |
11383 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11384 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11385 | PNG_LINK=" -lpng" |
8284b0c5 MB |
11386 | else |
11387 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
11388 | fi |
11389 | ||
8284b0c5 MB |
11390 | |
11391 | else | |
11392 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
11393 | fi |
11394 | ||
8284b0c5 | 11395 | |
21d1c967 GD |
11396 | if test "x$PNG_LINK" = "x" ; then |
11397 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
8284b0c5 | 11398 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11399 | else |
8284b0c5 | 11400 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11401 | wxUSE_LIBPNG=builtin |
11402 | fi | |
11403 | else | |
11404 | wxUSE_LIBPNG=yes | |
11405 | fi | |
11406 | fi | |
11407 | fi | |
90dd450c | 11408 | |
21d1c967 GD |
11409 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
11410 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11411 | fi | |
90dd450c | 11412 | |
21d1c967 | 11413 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
11414 | fi |
11415 | ||
8284b0c5 | 11416 | |
21d1c967 GD |
11417 | JPEG_INCLUDE= |
11418 | JPEG_LINK= | |
11419 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
8284b0c5 | 11420 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
11421 | #define wxUSE_LIBJPEG 1 |
11422 | EOF | |
90dd450c | 11423 | |
8284b0c5 | 11424 | |
21d1c967 | 11425 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
8284b0c5 | 11426 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11427 | wxUSE_LIBJPEG=sys |
11428 | fi | |
90dd450c | 11429 | |
21d1c967 GD |
11430 | if test "$wxUSE_MGL" != 1 ; then |
11431 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
8284b0c5 MB |
11432 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
11433 | echo "configure:11434: checking for jpeglib.h" >&5 | |
11434 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then | |
11435 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11436 | else |
8284b0c5 MB |
11437 | cat > conftest.$ac_ext <<EOF |
11438 | #line 11439 "configure" | |
21d1c967 | 11439 | #include "confdefs.h" |
90dd450c | 11440 | |
21d1c967 GD |
11441 | #undef HAVE_STDLIB_H |
11442 | #include <stdio.h> | |
11443 | #include <jpeglib.h> | |
8284b0c5 MB |
11444 | |
11445 | int main() { | |
90dd450c | 11446 | |
8284b0c5 MB |
11447 | |
11448 | ; return 0; } | |
11449 | EOF | |
11450 | if { (eval echo configure:11451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11451 | rm -rf conftest* | |
21d1c967 | 11452 | ac_cv_header_jpeglib_h=yes |
90dd450c | 11453 | else |
8284b0c5 MB |
11454 | echo "configure: failed program was:" >&5 |
11455 | cat conftest.$ac_ext >&5 | |
11456 | rm -rf conftest* | |
11457 | ac_cv_header_jpeglib_h=no | |
11458 | ||
90dd450c | 11459 | fi |
8284b0c5 MB |
11460 | rm -f conftest* |
11461 | ||
90dd450c VZ |
11462 | fi |
11463 | ||
8284b0c5 | 11464 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
90dd450c | 11465 | |
21d1c967 | 11466 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
8284b0c5 MB |
11467 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 |
11468 | echo "configure:11469: checking for jpeg_read_header in -ljpeg" >&5 | |
11469 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` | |
11470 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11471 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11472 | else |
8284b0c5 | 11473 | ac_save_LIBS="$LIBS" |
21d1c967 | 11474 | LIBS="-ljpeg $LIBS" |
8284b0c5 MB |
11475 | cat > conftest.$ac_ext <<EOF |
11476 | #line 11477 "configure" | |
21d1c967 GD |
11477 | #include "confdefs.h" |
11478 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11479 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
11480 | builtin and then its argument prototype would still apply. */ |
11481 | char jpeg_read_header(); | |
11482 | ||
11483 | int main() { | |
11484 | jpeg_read_header() | |
11485 | ; return 0; } | |
11486 | EOF | |
11487 | if { (eval echo configure:11488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11488 | rm -rf conftest* | |
11489 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11490 | else | |
11491 | echo "configure: failed program was:" >&5 | |
11492 | cat conftest.$ac_ext >&5 | |
11493 | rm -rf conftest* | |
11494 | eval "ac_cv_lib_$ac_lib_var=no" | |
11495 | fi | |
11496 | rm -f conftest* | |
11497 | LIBS="$ac_save_LIBS" | |
11498 | ||
11499 | fi | |
11500 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11501 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11502 | JPEG_LINK=" -ljpeg" |
8284b0c5 MB |
11503 | else |
11504 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
11505 | fi |
11506 | ||
21d1c967 | 11507 | fi |
90dd450c | 11508 | |
21d1c967 GD |
11509 | if test "x$JPEG_LINK" = "x" ; then |
11510 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
8284b0c5 | 11511 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11512 | else |
8284b0c5 | 11513 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11514 | wxUSE_LIBJPEG=builtin |
11515 | fi | |
11516 | else | |
11517 | wxUSE_LIBJPEG=sys | |
11518 | fi | |
11519 | fi | |
11520 | fi | |
90dd450c | 11521 | |
21d1c967 GD |
11522 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
11523 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
11524 | fi | |
11525 | fi | |
90dd450c | 11526 | |
8284b0c5 | 11527 | |
21d1c967 GD |
11528 | TIFF_INCLUDE= |
11529 | TIFF_LINK= | |
11530 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
8284b0c5 | 11531 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
11532 | #define wxUSE_LIBTIFF 1 |
11533 | EOF | |
11534 | ||
8284b0c5 | 11535 | |
21d1c967 | 11536 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
8284b0c5 MB |
11537 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
11538 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
11539 | echo "configure:11540: checking for tiffio.h" >&5 | |
11540 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11541 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11542 | else | |
11543 | cat > conftest.$ac_ext <<EOF | |
11544 | #line 11545 "configure" | |
21d1c967 GD |
11545 | #include "confdefs.h" |
11546 | #include <tiffio.h> | |
8284b0c5 MB |
11547 | EOF |
11548 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11549 | { (eval echo configure:11550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11550 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11551 | if test -z "$ac_err"; then | |
11552 | rm -rf conftest* | |
11553 | eval "ac_cv_header_$ac_safe=yes" | |
21d1c967 | 11554 | else |
8284b0c5 MB |
11555 | echo "$ac_err" >&5 |
11556 | echo "configure: failed program was:" >&5 | |
21d1c967 | 11557 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
11558 | rm -rf conftest* |
11559 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 11560 | fi |
8284b0c5 | 11561 | rm -f conftest* |
21d1c967 | 11562 | fi |
8284b0c5 MB |
11563 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11564 | echo "$ac_t""yes" 1>&6 | |
11565 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
11566 | echo "configure:11567: checking for TIFFError in -ltiff" >&5 | |
11567 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` | |
11568 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11569 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 11570 | else |
8284b0c5 | 11571 | ac_save_LIBS="$LIBS" |
21d1c967 | 11572 | LIBS="-ltiff -lm $LIBS" |
8284b0c5 MB |
11573 | cat > conftest.$ac_ext <<EOF |
11574 | #line 11575 "configure" | |
ab9b9eab VZ |
11575 | #include "confdefs.h" |
11576 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11577 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
11578 | builtin and then its argument prototype would still apply. */ |
11579 | char TIFFError(); | |
11580 | ||
11581 | int main() { | |
11582 | TIFFError() | |
11583 | ; return 0; } | |
11584 | EOF | |
11585 | if { (eval echo configure:11586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11586 | rm -rf conftest* | |
11587 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11588 | else | |
11589 | echo "configure: failed program was:" >&5 | |
11590 | cat conftest.$ac_ext >&5 | |
11591 | rm -rf conftest* | |
11592 | eval "ac_cv_lib_$ac_lib_var=no" | |
11593 | fi | |
11594 | rm -f conftest* | |
11595 | LIBS="$ac_save_LIBS" | |
11596 | ||
11597 | fi | |
11598 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11599 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11600 | TIFF_LINK=" -ltiff" |
8284b0c5 MB |
11601 | else |
11602 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11603 | fi |
11604 | ||
8284b0c5 MB |
11605 | |
11606 | else | |
11607 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 11608 | fi |
cd6d6d5b | 11609 | |
8284b0c5 | 11610 | |
21d1c967 GD |
11611 | if test "x$TIFF_LINK" = "x" ; then |
11612 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
8284b0c5 | 11613 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } |
90dd450c | 11614 | else |
8284b0c5 | 11615 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
21d1c967 | 11616 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 11617 | fi |
d8356fa3 | 11618 | else |
21d1c967 | 11619 | wxUSE_LIBTIFF=sys |
d8356fa3 | 11620 | fi |
21d1c967 | 11621 | fi |
d8356fa3 | 11622 | |
21d1c967 GD |
11623 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
11624 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 11625 | fi |
21d1c967 | 11626 | fi |
10f2d63a | 11627 | |
8284b0c5 | 11628 | |
21d1c967 | 11629 | AFMINSTALL= |
90dd450c | 11630 | |
21d1c967 GD |
11631 | TOOLKIT= |
11632 | TOOLKIT_INCLUDE= | |
11633 | WIDGET_SET= | |
11634 | ||
11635 | if test "$USE_WIN32" = 1 ; then | |
8284b0c5 | 11636 | for ac_hdr in w32api.h |
21d1c967 | 11637 | do |
8284b0c5 MB |
11638 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11639 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
11640 | echo "configure:11641: checking for $ac_hdr" >&5 | |
11641 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11642 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11643 | else | |
11644 | cat > conftest.$ac_ext <<EOF | |
11645 | #line 11646 "configure" | |
f79bd02d | 11646 | #include "confdefs.h" |
8284b0c5 MB |
11647 | #include <$ac_hdr> |
11648 | EOF | |
11649 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11650 | { (eval echo configure:11651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11651 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11652 | if test -z "$ac_err"; then | |
11653 | rm -rf conftest* | |
11654 | eval "ac_cv_header_$ac_safe=yes" | |
f79bd02d | 11655 | else |
8284b0c5 MB |
11656 | echo "$ac_err" >&5 |
11657 | echo "configure: failed program was:" >&5 | |
f79bd02d | 11658 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
11659 | rm -rf conftest* |
11660 | eval "ac_cv_header_$ac_safe=no" | |
f79bd02d | 11661 | fi |
8284b0c5 | 11662 | rm -f conftest* |
21d1c967 | 11663 | fi |
8284b0c5 MB |
11664 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11665 | echo "$ac_t""yes" 1>&6 | |
11666 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11667 | cat >> confdefs.h <<EOF | |
11668 | #define $ac_tr_hdr 1 | |
21d1c967 | 11669 | EOF |
8284b0c5 MB |
11670 | |
11671 | else | |
11672 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
11673 | fi |
11674 | done | |
f79bd02d | 11675 | |
8284b0c5 MB |
11676 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
11677 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
11678 | echo "configure:11679: checking for windows.h" >&5 | |
11679 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11680 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11681 | else |
8284b0c5 MB |
11682 | cat > conftest.$ac_ext <<EOF |
11683 | #line 11684 "configure" | |
90dd450c | 11684 | #include "confdefs.h" |
21d1c967 | 11685 | #include <windows.h> |
8284b0c5 MB |
11686 | EOF |
11687 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11688 | { (eval echo configure:11689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11689 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11690 | if test -z "$ac_err"; then | |
11691 | rm -rf conftest* | |
11692 | eval "ac_cv_header_$ac_safe=yes" | |
90dd450c | 11693 | else |
8284b0c5 MB |
11694 | echo "$ac_err" >&5 |
11695 | echo "configure: failed program was:" >&5 | |
90dd450c | 11696 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
11697 | rm -rf conftest* |
11698 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 11699 | fi |
8284b0c5 | 11700 | rm -f conftest* |
90dd450c | 11701 | fi |
8284b0c5 MB |
11702 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11703 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11704 | : |
90dd450c | 11705 | else |
8284b0c5 | 11706 | echo "$ac_t""no" 1>&6 |
21d1c967 | 11707 | |
8284b0c5 MB |
11708 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
11709 | ||
5c6fa7d2 | 11710 | fi |
7b4a847f | 11711 | |
5c6fa7d2 | 11712 | |
8284b0c5 MB |
11713 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
11714 | echo "configure:11715: checking if w32api has good enough MSIE support" >&5 | |
11715 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then | |
11716 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11717 | else | |
11718 | ||
11719 | cat > conftest.$ac_ext <<EOF | |
11720 | #line 11721 "configure" | |
f79bd02d | 11721 | #include "confdefs.h" |
21d1c967 | 11722 | #include <w32api.h> |
8284b0c5 | 11723 | int main() { |
f79bd02d | 11724 | |
21d1c967 GD |
11725 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
11726 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
11727 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
11728 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
11729 | ||
11730 | #if !wxCHECK_W32API_VERSION(1,1) | |
11731 | #error You need w32api 1.1 or newer | |
11732 | #endif | |
8284b0c5 MB |
11733 | |
11734 | ; return 0; } | |
11735 | EOF | |
11736 | if { (eval echo configure:11737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11737 | rm -rf conftest* | |
11738 | ||
21d1c967 | 11739 | wx_cv_w32api_win32_ie=yes |
8284b0c5 | 11740 | |
f79bd02d | 11741 | else |
8284b0c5 MB |
11742 | echo "configure: failed program was:" >&5 |
11743 | cat conftest.$ac_ext >&5 | |
11744 | rm -rf conftest* | |
11745 | ||
21d1c967 | 11746 | wx_cv_w32api_win32_ie=no |
8284b0c5 | 11747 | |
7b4a847f | 11748 | fi |
8284b0c5 MB |
11749 | rm -f conftest* |
11750 | ||
5c6fa7d2 | 11751 | fi |
8284b0c5 MB |
11752 | |
11753 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 | |
21d1c967 GD |
11754 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then |
11755 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
11756 | fi | |
f79bd02d | 11757 | |
21d1c967 GD |
11758 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
11759 | ||
11760 | case "${host}" in | |
11761 | *-*-cygwin* ) | |
11762 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
11763 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 11764 | esac |
f79bd02d | 11765 | |
21d1c967 GD |
11766 | if test "$wxUSE_ODBC" = "yes" ; then |
11767 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
11768 | fi | |
f79bd02d | 11769 | |
21d1c967 GD |
11770 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
11771 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
f79bd02d | 11772 | fi |
f79bd02d | 11773 | |
21d1c967 GD |
11774 | if test "$wxUSE_GUI" = "yes"; then |
11775 | USE_GUI=1 | |
f79bd02d | 11776 | |
21d1c967 | 11777 | GUI_TK_LIBRARY= |
f79bd02d | 11778 | |
21d1c967 GD |
11779 | WXGTK12= |
11780 | WXGTK127= | |
11781 | WXGTK20= | |
f79bd02d | 11782 | |
21d1c967 GD |
11783 | if test "$wxUSE_MSW" = 1 ; then |
11784 | TOOLKIT=MSW | |
11785 | GUIDIST=MSW_DIST | |
f79bd02d | 11786 | |
21d1c967 GD |
11787 | case "${host}" in |
11788 | *-*-mingw32* ) | |
11789 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
11790 | esac | |
f79bd02d JS |
11791 | fi |
11792 | ||
21d1c967 | 11793 | if test "$wxUSE_GTK" = 1; then |
8284b0c5 MB |
11794 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
11795 | echo "configure:11796: checking for GTK+ version" >&5 | |
21d1c967 GD |
11796 | |
11797 | gtk_version_cached=1 | |
8284b0c5 MB |
11798 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then |
11799 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f79bd02d | 11800 | else |
8284b0c5 | 11801 | |
21d1c967 | 11802 | gtk_version_cached=0 |
8284b0c5 | 11803 | echo "$ac_t""" 1>&6 |
f79bd02d | 11804 | |
21d1c967 GD |
11805 | GTK_MODULES= |
11806 | if test "$wxUSE_THREADS" = "yes"; then | |
11807 | GTK_MODULES=gthread | |
11808 | fi | |
f79bd02d | 11809 | |
21d1c967 GD |
11810 | wx_cv_lib_gtk= |
11811 | if test "x$wxUSE_GTK2" = "xyes"; then | |
11812 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
11813 | if test "${enable_gtktest+set}" = set; then | |
11814 | enableval="$enable_gtktest" | |
8284b0c5 | 11815 | : |
f79bd02d | 11816 | else |
21d1c967 | 11817 | enable_gtktest=yes |
8284b0c5 MB |
11818 | fi |
11819 | ||
f79bd02d | 11820 | |
21d1c967 GD |
11821 | pkg_config_args=gtk+-2.0 |
11822 | for module in . $GTK_MODULES | |
11823 | do | |
11824 | case "$module" in | |
8284b0c5 | 11825 | gthread) |
21d1c967 GD |
11826 | pkg_config_args="$pkg_config_args gthread-2.0" |
11827 | ;; | |
11828 | esac | |
11829 | done | |
11830 | ||
11831 | no_gtk="" | |
f79bd02d | 11832 | |
21d1c967 GD |
11833 | # Extract the first word of "pkg-config", so it can be a program name with args. |
11834 | set dummy pkg-config; ac_word=$2 | |
8284b0c5 MB |
11835 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
11836 | echo "configure:11837: checking for $ac_word" >&5 | |
11837 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then | |
11838 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11839 | else |
8284b0c5 MB |
11840 | case "$PKG_CONFIG" in |
11841 | /*) | |
21d1c967 GD |
11842 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
11843 | ;; | |
8284b0c5 MB |
11844 | ?:/*) |
11845 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
11846 | ;; | |
21d1c967 | 11847 | *) |
8284b0c5 MB |
11848 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
11849 | ac_dummy="$PATH" | |
11850 | for ac_dir in $ac_dummy; do | |
11851 | test -z "$ac_dir" && ac_dir=. | |
11852 | if test -f $ac_dir/$ac_word; then | |
11853 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
11854 | break | |
11855 | fi | |
11856 | done | |
11857 | IFS="$ac_save_ifs" | |
21d1c967 GD |
11858 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
11859 | ;; | |
11860 | esac | |
f79bd02d | 11861 | fi |
8284b0c5 | 11862 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
21d1c967 | 11863 | if test -n "$PKG_CONFIG"; then |
8284b0c5 | 11864 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f79bd02d | 11865 | else |
8284b0c5 | 11866 | echo "$ac_t""no" 1>&6 |
f79bd02d JS |
11867 | fi |
11868 | ||
8284b0c5 | 11869 | |
21d1c967 GD |
11870 | if test x$PKG_CONFIG != xno ; then |
11871 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
11872 | : | |
11873 | else | |
11874 | echo *** pkg-config too old; version 0.7 or better required. | |
11875 | no_gtk=yes | |
11876 | PKG_CONFIG=no | |
11877 | fi | |
11878 | else | |
11879 | no_gtk=yes | |
11880 | fi | |
f79bd02d | 11881 | |
21d1c967 | 11882 | min_gtk_version=2.0.0 |
8284b0c5 MB |
11883 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 |
11884 | echo "configure:11885: checking for GTK+ - version >= $min_gtk_version" >&5 | |
f79bd02d | 11885 | |
21d1c967 GD |
11886 | if test x$PKG_CONFIG != xno ; then |
11887 | ## don't try to run the test against uninstalled libtool libs | |
11888 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
11889 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
11890 | enable_gtktest=no | |
11891 | fi | |
f79bd02d | 11892 | |
21d1c967 GD |
11893 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
11894 | : | |
11895 | else | |
11896 | no_gtk=yes | |
11897 | fi | |
11898 | fi | |
f79bd02d | 11899 | |
21d1c967 GD |
11900 | if test x"$no_gtk" = x ; then |
11901 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
11902 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
11903 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11904 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
11905 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11906 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
11907 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11908 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
11909 | if test "x$enable_gtktest" = "xyes" ; then | |
11910 | ac_save_CFLAGS="$CFLAGS" | |
11911 | ac_save_LIBS="$LIBS" | |
11912 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11913 | LIBS="$GTK_LIBS $LIBS" | |
11914 | rm -f conf.gtktest | |
11915 | if test "$cross_compiling" = yes; then | |
11916 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 11917 | else |
8284b0c5 MB |
11918 | cat > conftest.$ac_ext <<EOF |
11919 | #line 11920 "configure" | |
f79bd02d | 11920 | #include "confdefs.h" |
f79bd02d | 11921 | |
21d1c967 GD |
11922 | #include <gtk/gtk.h> |
11923 | #include <stdio.h> | |
11924 | #include <stdlib.h> | |
f79bd02d | 11925 | |
8284b0c5 | 11926 | int |
21d1c967 GD |
11927 | main () |
11928 | { | |
11929 | int major, minor, micro; | |
11930 | char *tmp_version; | |
f79bd02d | 11931 | |
21d1c967 | 11932 | system ("touch conf.gtktest"); |
f79bd02d | 11933 | |
21d1c967 GD |
11934 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
11935 | tmp_version = g_strdup("$min_gtk_version"); | |
11936 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
11937 | printf("%s, bad version string\n", "$min_gtk_version"); | |
11938 | exit(1); | |
11939 | } | |
f79bd02d | 11940 | |
21d1c967 GD |
11941 | if ((gtk_major_version != $gtk_config_major_version) || |
11942 | (gtk_minor_version != $gtk_config_minor_version) || | |
11943 | (gtk_micro_version != $gtk_config_micro_version)) | |
11944 | { | |
8284b0c5 | 11945 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
11946 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
11947 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11948 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
11949 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
11950 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
11951 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
11952 | printf("*** required on your system.\n"); | |
11953 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
11954 | printf("*** to point to the correct configuration files\n"); | |
8284b0c5 | 11955 | } |
21d1c967 GD |
11956 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
11957 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
11958 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
11959 | { | |
11960 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
11961 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
11962 | printf("*** library (version %d.%d.%d)\n", | |
11963 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11964 | } | |
11965 | else | |
11966 | { | |
11967 | if ((gtk_major_version > major) || | |
11968 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
11969 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
11970 | { | |
11971 | return 0; | |
11972 | } | |
11973 | else | |
11974 | { | |
11975 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
11976 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11977 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
11978 | major, minor, micro); | |
11979 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
11980 | printf("***\n"); | |
11981 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
11982 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
11983 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
11984 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
11985 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
11986 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
11987 | printf("*** so that the correct libraries are found at run-time))\n"); | |
11988 | } | |
11989 | } | |
11990 | return 1; | |
11991 | } | |
f79bd02d | 11992 | |
8284b0c5 MB |
11993 | EOF |
11994 | if { (eval echo configure:11995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
11995 | then | |
21d1c967 | 11996 | : |
f79bd02d | 11997 | else |
8284b0c5 MB |
11998 | echo "configure: failed program was:" >&5 |
11999 | cat conftest.$ac_ext >&5 | |
12000 | rm -fr conftest* | |
12001 | no_gtk=yes | |
f79bd02d | 12002 | fi |
8284b0c5 | 12003 | rm -fr conftest* |
f79bd02d | 12004 | fi |
8284b0c5 | 12005 | |
21d1c967 GD |
12006 | CFLAGS="$ac_save_CFLAGS" |
12007 | LIBS="$ac_save_LIBS" | |
12008 | fi | |
12009 | fi | |
12010 | if test "x$no_gtk" = x ; then | |
8284b0c5 MB |
12011 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
12012 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 12013 | else |
8284b0c5 | 12014 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12015 | if test "$PKG_CONFIG" = "no" ; then |
12016 | echo "*** A new enough version of pkg-config was not found." | |
12017 | echo "*** See http://pkgconfig.sourceforge.net" | |
12018 | else | |
12019 | if test -f conf.gtktest ; then | |
12020 | : | |
12021 | else | |
12022 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
12023 | ac_save_CFLAGS="$CFLAGS" |
12024 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
12025 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
12026 | LIBS="$LIBS $GTK_LIBS" | |
8284b0c5 MB |
12027 | cat > conftest.$ac_ext <<EOF |
12028 | #line 12029 "configure" | |
f79bd02d | 12029 | #include "confdefs.h" |
21d1c967 GD |
12030 | |
12031 | #include <gtk/gtk.h> | |
12032 | #include <stdio.h> | |
f79bd02d | 12033 | |
8284b0c5 MB |
12034 | int main() { |
12035 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12036 | ; return 0; } | |
12037 | EOF | |
12038 | if { (eval echo configure:12039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12039 | rm -rf conftest* | |
21d1c967 GD |
12040 | echo "*** The test program compiled, but did not run. This usually means" |
12041 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
12042 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
12043 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12044 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12045 | echo "*** is required on your system" | |
12046 | echo "***" | |
12047 | echo "*** If you have an old version installed, it is best to remove it, although" | |
8284b0c5 | 12048 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 12049 | else |
8284b0c5 MB |
12050 | echo "configure: failed program was:" >&5 |
12051 | cat conftest.$ac_ext >&5 | |
12052 | rm -rf conftest* | |
12053 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 12054 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 12055 | fi |
8284b0c5 | 12056 | rm -f conftest* |
21d1c967 GD |
12057 | CFLAGS="$ac_save_CFLAGS" |
12058 | LIBS="$ac_save_LIBS" | |
12059 | fi | |
12060 | fi | |
12061 | GTK_CFLAGS="" | |
12062 | GTK_LIBS="" | |
12063 | : | |
12064 | fi | |
8284b0c5 MB |
12065 | |
12066 | ||
21d1c967 | 12067 | rm -f conf.gtktest |
f79bd02d | 12068 | |
21d1c967 | 12069 | fi |
f79bd02d | 12070 | |
21d1c967 | 12071 | if test -z "$wx_cv_lib_gtk"; then |
8284b0c5 | 12072 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12073 | if test "${with_gtk_prefix+set}" = set; then |
12074 | withval="$with_gtk_prefix" | |
12075 | gtk_config_prefix="$withval" | |
12076 | else | |
12077 | gtk_config_prefix="" | |
8284b0c5 | 12078 | fi |
f79bd02d | 12079 | |
21d1c967 GD |
12080 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12081 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12082 | withval="$with_gtk_exec_prefix" | |
12083 | gtk_config_exec_prefix="$withval" | |
12084 | else | |
12085 | gtk_config_exec_prefix="" | |
8284b0c5 MB |
12086 | fi |
12087 | ||
21d1c967 GD |
12088 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12089 | if test "${enable_gtktest+set}" = set; then | |
12090 | enableval="$enable_gtktest" | |
8284b0c5 | 12091 | : |
21d1c967 GD |
12092 | else |
12093 | enable_gtktest=yes | |
8284b0c5 MB |
12094 | fi |
12095 | ||
21d1c967 GD |
12096 | |
12097 | for module in . $GTK_MODULES | |
12098 | do | |
12099 | case "$module" in | |
8284b0c5 | 12100 | gthread) |
21d1c967 GD |
12101 | gtk_config_args="$gtk_config_args gthread" |
12102 | ;; | |
12103 | esac | |
12104 | done | |
12105 | ||
12106 | if test x$gtk_config_exec_prefix != x ; then | |
12107 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12108 | if test x${GTK_CONFIG+set} != xset ; then | |
12109 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12110 | fi | |
12111 | fi | |
12112 | if test x$gtk_config_prefix != x ; then | |
12113 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12114 | if test x${GTK_CONFIG+set} != xset ; then | |
12115 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12116 | fi | |
12117 | fi | |
12118 | ||
12119 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12120 | set dummy gtk-config; ac_word=$2 | |
8284b0c5 MB |
12121 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
12122 | echo "configure:12123: checking for $ac_word" >&5 | |
12123 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then | |
12124 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12125 | else |
8284b0c5 MB |
12126 | case "$GTK_CONFIG" in |
12127 | /*) | |
21d1c967 GD |
12128 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12129 | ;; | |
8284b0c5 MB |
12130 | ?:/*) |
12131 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12132 | ;; | |
21d1c967 | 12133 | *) |
8284b0c5 MB |
12134 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12135 | ac_dummy="$PATH" | |
12136 | for ac_dir in $ac_dummy; do | |
12137 | test -z "$ac_dir" && ac_dir=. | |
12138 | if test -f $ac_dir/$ac_word; then | |
12139 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12140 | break | |
12141 | fi | |
12142 | done | |
12143 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12144 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12145 | ;; | |
12146 | esac | |
12147 | fi | |
8284b0c5 | 12148 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12149 | if test -n "$GTK_CONFIG"; then |
8284b0c5 | 12150 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12151 | else |
8284b0c5 | 12152 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12153 | fi |
12154 | ||
12155 | min_gtk_version=1.2.7 | |
8284b0c5 MB |
12156 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
12157 | echo "configure:12158: checking for GTK - version >= $min_gtk_version" >&5 | |
21d1c967 GD |
12158 | no_gtk="" |
12159 | if test "$GTK_CONFIG" = "no" ; then | |
12160 | no_gtk=yes | |
12161 | else | |
12162 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12163 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12164 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12165 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12166 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12167 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12168 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12169 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12170 | if test "x$enable_gtktest" = "xyes" ; then | |
12171 | ac_save_CFLAGS="$CFLAGS" | |
12172 | ac_save_LIBS="$LIBS" | |
12173 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12174 | LIBS="$GTK_LIBS $LIBS" | |
12175 | rm -f conf.gtktest | |
12176 | if test "$cross_compiling" = yes; then | |
12177 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12178 | else |
8284b0c5 MB |
12179 | cat > conftest.$ac_ext <<EOF |
12180 | #line 12181 "configure" | |
f79bd02d JS |
12181 | #include "confdefs.h" |
12182 | ||
21d1c967 GD |
12183 | #include <gtk/gtk.h> |
12184 | #include <stdio.h> | |
12185 | #include <stdlib.h> | |
f79bd02d | 12186 | |
8284b0c5 | 12187 | int |
21d1c967 GD |
12188 | main () |
12189 | { | |
12190 | int major, minor, micro; | |
12191 | char *tmp_version; | |
12192 | ||
12193 | system ("touch conf.gtktest"); | |
12194 | ||
12195 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12196 | tmp_version = g_strdup("$min_gtk_version"); | |
12197 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12198 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12199 | exit(1); | |
12200 | } | |
90dd450c | 12201 | |
21d1c967 GD |
12202 | if ((gtk_major_version != $gtk_config_major_version) || |
12203 | (gtk_minor_version != $gtk_config_minor_version) || | |
12204 | (gtk_micro_version != $gtk_config_micro_version)) | |
12205 | { | |
8284b0c5 | 12206 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12207 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12208 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12209 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12210 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12211 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12212 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12213 | printf("*** required on your system.\n"); | |
12214 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12215 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12216 | printf("*** before re-running configure\n"); | |
8284b0c5 | 12217 | } |
21d1c967 GD |
12218 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12219 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12220 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12221 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12222 | { | |
12223 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12224 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12225 | printf("*** library (version %d.%d.%d)\n", | |
12226 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12227 | } | |
12228 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12229 | else | |
12230 | { | |
12231 | if ((gtk_major_version > major) || | |
12232 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12233 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12234 | { | |
12235 | return 0; | |
12236 | } | |
12237 | else | |
12238 | { | |
12239 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12240 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12241 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12242 | major, minor, micro); | |
12243 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12244 | printf("***\n"); | |
12245 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12246 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12247 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12248 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12249 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12250 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12251 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12252 | } | |
12253 | } | |
12254 | return 1; | |
12255 | } | |
12256 | ||
8284b0c5 MB |
12257 | EOF |
12258 | if { (eval echo configure:12259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
12259 | then | |
21d1c967 GD |
12260 | : |
12261 | else | |
8284b0c5 MB |
12262 | echo "configure: failed program was:" >&5 |
12263 | cat conftest.$ac_ext >&5 | |
12264 | rm -fr conftest* | |
12265 | no_gtk=yes | |
21d1c967 | 12266 | fi |
8284b0c5 | 12267 | rm -fr conftest* |
21d1c967 | 12268 | fi |
8284b0c5 | 12269 | |
21d1c967 GD |
12270 | CFLAGS="$ac_save_CFLAGS" |
12271 | LIBS="$ac_save_LIBS" | |
12272 | fi | |
12273 | fi | |
12274 | if test "x$no_gtk" = x ; then | |
8284b0c5 MB |
12275 | echo "$ac_t""yes" 1>&6 |
12276 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 12277 | else |
8284b0c5 | 12278 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12279 | if test "$GTK_CONFIG" = "no" ; then |
12280 | echo "*** The gtk-config script installed by GTK could not be found" | |
12281 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12282 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12283 | echo "*** full path to gtk-config." | |
12284 | else | |
12285 | if test -f conf.gtktest ; then | |
12286 | : | |
12287 | else | |
12288 | echo "*** Could not run GTK test program, checking why..." | |
12289 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12290 | LIBS="$LIBS $GTK_LIBS" | |
8284b0c5 MB |
12291 | cat > conftest.$ac_ext <<EOF |
12292 | #line 12293 "configure" | |
21d1c967 GD |
12293 | #include "confdefs.h" |
12294 | ||
12295 | #include <gtk/gtk.h> | |
12296 | #include <stdio.h> | |
12297 | ||
8284b0c5 MB |
12298 | int main() { |
12299 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12300 | ; return 0; } | |
12301 | EOF | |
12302 | if { (eval echo configure:12303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12303 | rm -rf conftest* | |
21d1c967 GD |
12304 | echo "*** The test program compiled, but did not run. This usually means" |
12305 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12306 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12307 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12308 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12309 | echo "*** is required on your system" | |
12310 | echo "***" | |
12311 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12312 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12313 | echo "***" | |
12314 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12315 | echo "*** came with the system with the command" | |
12316 | echo "***" | |
8284b0c5 | 12317 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 12318 | else |
8284b0c5 MB |
12319 | echo "configure: failed program was:" >&5 |
12320 | cat conftest.$ac_ext >&5 | |
12321 | rm -rf conftest* | |
12322 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
12323 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
12324 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
8284b0c5 | 12325 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 12326 | fi |
8284b0c5 | 12327 | rm -f conftest* |
21d1c967 GD |
12328 | CFLAGS="$ac_save_CFLAGS" |
12329 | LIBS="$ac_save_LIBS" | |
12330 | fi | |
12331 | fi | |
12332 | GTK_CFLAGS="" | |
12333 | GTK_LIBS="" | |
12334 | : | |
12335 | fi | |
8284b0c5 MB |
12336 | |
12337 | ||
21d1c967 GD |
12338 | rm -f conf.gtktest |
12339 | ||
12340 | fi | |
12341 | ||
12342 | if test -z "$wx_cv_lib_gtk"; then | |
8284b0c5 | 12343 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12344 | if test "${with_gtk_prefix+set}" = set; then |
12345 | withval="$with_gtk_prefix" | |
12346 | gtk_config_prefix="$withval" | |
12347 | else | |
12348 | gtk_config_prefix="" | |
8284b0c5 | 12349 | fi |
f79bd02d | 12350 | |
21d1c967 GD |
12351 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12352 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12353 | withval="$with_gtk_exec_prefix" | |
12354 | gtk_config_exec_prefix="$withval" | |
12355 | else | |
12356 | gtk_config_exec_prefix="" | |
8284b0c5 MB |
12357 | fi |
12358 | ||
21d1c967 GD |
12359 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12360 | if test "${enable_gtktest+set}" = set; then | |
12361 | enableval="$enable_gtktest" | |
8284b0c5 | 12362 | : |
90dd450c | 12363 | else |
21d1c967 | 12364 | enable_gtktest=yes |
8284b0c5 MB |
12365 | fi |
12366 | ||
21d1c967 GD |
12367 | |
12368 | for module in . $GTK_MODULES | |
12369 | do | |
12370 | case "$module" in | |
8284b0c5 | 12371 | gthread) |
21d1c967 GD |
12372 | gtk_config_args="$gtk_config_args gthread" |
12373 | ;; | |
12374 | esac | |
12375 | done | |
12376 | ||
12377 | if test x$gtk_config_exec_prefix != x ; then | |
12378 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12379 | if test x${GTK_CONFIG+set} != xset ; then | |
12380 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12381 | fi | |
12382 | fi | |
12383 | if test x$gtk_config_prefix != x ; then | |
12384 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12385 | if test x${GTK_CONFIG+set} != xset ; then | |
12386 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12387 | fi | |
12388 | fi | |
12389 | ||
12390 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12391 | set dummy gtk-config; ac_word=$2 | |
8284b0c5 MB |
12392 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
12393 | echo "configure:12394: checking for $ac_word" >&5 | |
12394 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then | |
12395 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 12396 | else |
8284b0c5 MB |
12397 | case "$GTK_CONFIG" in |
12398 | /*) | |
21d1c967 GD |
12399 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12400 | ;; | |
8284b0c5 MB |
12401 | ?:/*) |
12402 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12403 | ;; | |
21d1c967 | 12404 | *) |
8284b0c5 MB |
12405 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12406 | ac_dummy="$PATH" | |
12407 | for ac_dir in $ac_dummy; do | |
12408 | test -z "$ac_dir" && ac_dir=. | |
12409 | if test -f $ac_dir/$ac_word; then | |
12410 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12411 | break | |
12412 | fi | |
12413 | done | |
12414 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12415 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12416 | ;; | |
12417 | esac | |
12418 | fi | |
8284b0c5 | 12419 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12420 | if test -n "$GTK_CONFIG"; then |
8284b0c5 | 12421 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12422 | else |
8284b0c5 | 12423 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12424 | fi |
12425 | ||
12426 | min_gtk_version=1.2.3 | |
8284b0c5 MB |
12427 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
12428 | echo "configure:12429: checking for GTK - version >= $min_gtk_version" >&5 | |
21d1c967 GD |
12429 | no_gtk="" |
12430 | if test "$GTK_CONFIG" = "no" ; then | |
12431 | no_gtk=yes | |
12432 | else | |
12433 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12434 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12435 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12436 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12437 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12438 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12439 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12440 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12441 | if test "x$enable_gtktest" = "xyes" ; then | |
12442 | ac_save_CFLAGS="$CFLAGS" | |
12443 | ac_save_LIBS="$LIBS" | |
12444 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12445 | LIBS="$GTK_LIBS $LIBS" | |
12446 | rm -f conf.gtktest | |
12447 | if test "$cross_compiling" = yes; then | |
12448 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12449 | else | |
8284b0c5 MB |
12450 | cat > conftest.$ac_ext <<EOF |
12451 | #line 12452 "configure" | |
f79bd02d | 12452 | #include "confdefs.h" |
21d1c967 GD |
12453 | |
12454 | #include <gtk/gtk.h> | |
12455 | #include <stdio.h> | |
12456 | #include <stdlib.h> | |
12457 | ||
8284b0c5 | 12458 | int |
21d1c967 GD |
12459 | main () |
12460 | { | |
12461 | int major, minor, micro; | |
12462 | char *tmp_version; | |
12463 | ||
12464 | system ("touch conf.gtktest"); | |
12465 | ||
12466 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12467 | tmp_version = g_strdup("$min_gtk_version"); | |
12468 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12469 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12470 | exit(1); | |
12471 | } | |
12472 | ||
12473 | if ((gtk_major_version != $gtk_config_major_version) || | |
12474 | (gtk_minor_version != $gtk_config_minor_version) || | |
12475 | (gtk_micro_version != $gtk_config_micro_version)) | |
12476 | { | |
8284b0c5 | 12477 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12478 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12479 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12480 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12481 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12482 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12483 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12484 | printf("*** required on your system.\n"); | |
12485 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12486 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12487 | printf("*** before re-running configure\n"); | |
8284b0c5 | 12488 | } |
21d1c967 GD |
12489 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12490 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12491 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12492 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12493 | { | |
12494 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12495 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12496 | printf("*** library (version %d.%d.%d)\n", | |
12497 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12498 | } | |
12499 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12500 | else | |
12501 | { | |
12502 | if ((gtk_major_version > major) || | |
12503 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12504 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12505 | { | |
12506 | return 0; | |
12507 | } | |
12508 | else | |
12509 | { | |
12510 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12511 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12512 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12513 | major, minor, micro); | |
12514 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12515 | printf("***\n"); | |
12516 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12517 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12518 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12519 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12520 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12521 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12522 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12523 | } | |
12524 | } | |
12525 | return 1; | |
12526 | } | |
12527 | ||
8284b0c5 MB |
12528 | EOF |
12529 | if { (eval echo configure:12530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
12530 | then | |
21d1c967 GD |
12531 | : |
12532 | else | |
8284b0c5 MB |
12533 | echo "configure: failed program was:" >&5 |
12534 | cat conftest.$ac_ext >&5 | |
12535 | rm -fr conftest* | |
12536 | no_gtk=yes | |
21d1c967 | 12537 | fi |
8284b0c5 | 12538 | rm -fr conftest* |
21d1c967 | 12539 | fi |
8284b0c5 | 12540 | |
21d1c967 GD |
12541 | CFLAGS="$ac_save_CFLAGS" |
12542 | LIBS="$ac_save_LIBS" | |
12543 | fi | |
12544 | fi | |
12545 | if test "x$no_gtk" = x ; then | |
8284b0c5 MB |
12546 | echo "$ac_t""yes" 1>&6 |
12547 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 12548 | else |
8284b0c5 | 12549 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12550 | if test "$GTK_CONFIG" = "no" ; then |
12551 | echo "*** The gtk-config script installed by GTK could not be found" | |
12552 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12553 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12554 | echo "*** full path to gtk-config." | |
12555 | else | |
12556 | if test -f conf.gtktest ; then | |
12557 | : | |
12558 | else | |
12559 | echo "*** Could not run GTK test program, checking why..." | |
12560 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12561 | LIBS="$LIBS $GTK_LIBS" | |
8284b0c5 MB |
12562 | cat > conftest.$ac_ext <<EOF |
12563 | #line 12564 "configure" | |
21d1c967 GD |
12564 | #include "confdefs.h" |
12565 | ||
12566 | #include <gtk/gtk.h> | |
12567 | #include <stdio.h> | |
f79bd02d | 12568 | |
8284b0c5 MB |
12569 | int main() { |
12570 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12571 | ; return 0; } | |
12572 | EOF | |
12573 | if { (eval echo configure:12574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12574 | rm -rf conftest* | |
21d1c967 GD |
12575 | echo "*** The test program compiled, but did not run. This usually means" |
12576 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12577 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12578 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12579 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12580 | echo "*** is required on your system" | |
12581 | echo "***" | |
12582 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12583 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12584 | echo "***" | |
12585 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12586 | echo "*** came with the system with the command" | |
12587 | echo "***" | |
8284b0c5 | 12588 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 12589 | else |
8284b0c5 MB |
12590 | echo "configure: failed program was:" >&5 |
12591 | cat conftest.$ac_ext >&5 | |
12592 | rm -rf conftest* | |
12593 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
12594 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
12595 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
8284b0c5 | 12596 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 12597 | fi |
8284b0c5 | 12598 | rm -f conftest* |
21d1c967 GD |
12599 | CFLAGS="$ac_save_CFLAGS" |
12600 | LIBS="$ac_save_LIBS" | |
12601 | fi | |
12602 | fi | |
12603 | GTK_CFLAGS="" | |
12604 | GTK_LIBS="" | |
12605 | : | |
12606 | fi | |
8284b0c5 MB |
12607 | |
12608 | ||
21d1c967 | 12609 | rm -f conf.gtktest |
f79bd02d | 12610 | |
21d1c967 GD |
12611 | fi |
12612 | ||
12613 | if test -z "$wx_cv_lib_gtk"; then | |
12614 | wx_cv_lib_gtk=none | |
12615 | else | |
12616 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
12617 | wx_cv_libs_gtk=$GTK_LIBS | |
12618 | fi | |
8284b0c5 MB |
12619 | |
12620 | ||
5c6fa7d2 | 12621 | fi |
52127426 | 12622 | |
8284b0c5 | 12623 | |
21d1c967 | 12624 | if test "$gtk_version_cached" = 1; then |
8284b0c5 | 12625 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 |
21d1c967 GD |
12626 | fi |
12627 | ||
12628 | case "$wx_cv_lib_gtk" in | |
12629 | 2.0) WXGTK20=1 | |
12630 | ;; | |
12631 | 1.2.7) WXGTK127=1 | |
12632 | WXGTK12=1 | |
12633 | ;; | |
12634 | 1.2.3) WXGTK12=1 | |
12635 | ;; | |
8284b0c5 | 12636 | *) { echo "configure: error: |
328a083c RR |
12637 | Please check that gtk-config is in path, the directory |
12638 | where GTK+ libraries are installed (returned by | |
12639 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
12640 | equivalent variable and GTK+ is version 1.2.3 or above. | |
8284b0c5 | 12641 | " 1>&2; exit 1; } |
21d1c967 GD |
12642 | ;; |
12643 | esac | |
12644 | ||
b13cd66e VZ |
12645 | if test "$WXGTK20" = 1; then |
12646 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
8284b0c5 | 12647 | |
f09359cf VS |
12648 | succeeded=no |
12649 | ||
12650 | if test -z "$PKG_CONFIG"; then | |
12651 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
12652 | set dummy pkg-config; ac_word=$2 | |
8284b0c5 MB |
12653 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
12654 | echo "configure:12655: checking for $ac_word" >&5 | |
12655 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then | |
12656 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf | 12657 | else |
8284b0c5 MB |
12658 | case "$PKG_CONFIG" in |
12659 | /*) | |
f09359cf VS |
12660 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12661 | ;; | |
8284b0c5 MB |
12662 | ?:/*) |
12663 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
12664 | ;; | |
f09359cf | 12665 | *) |
8284b0c5 MB |
12666 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12667 | ac_dummy="$PATH" | |
12668 | for ac_dir in $ac_dummy; do | |
12669 | test -z "$ac_dir" && ac_dir=. | |
12670 | if test -f $ac_dir/$ac_word; then | |
12671 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
12672 | break | |
12673 | fi | |
12674 | done | |
12675 | IFS="$ac_save_ifs" | |
f09359cf VS |
12676 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12677 | ;; | |
12678 | esac | |
12679 | fi | |
8284b0c5 | 12680 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
f09359cf | 12681 | if test -n "$PKG_CONFIG"; then |
8284b0c5 | 12682 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f09359cf | 12683 | else |
8284b0c5 | 12684 | echo "$ac_t""no" 1>&6 |
f09359cf VS |
12685 | fi |
12686 | ||
12687 | fi | |
12688 | ||
12689 | if test "$PKG_CONFIG" = "no" ; then | |
12690 | echo "*** The pkg-config script could not be found. Make sure it is" | |
12691 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
12692 | echo "*** to the full path to pkg-config." | |
12693 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
12694 | else | |
12695 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
12696 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
8284b0c5 MB |
12697 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 |
12698 | echo "configure:12699: checking for pangoft2" >&5 | |
f09359cf VS |
12699 | |
12700 | if $PKG_CONFIG --exists "pangoft2" ; then | |
8284b0c5 | 12701 | echo "$ac_t""yes" 1>&6 |
f09359cf VS |
12702 | succeeded=yes |
12703 | ||
8284b0c5 MB |
12704 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 |
12705 | echo "configure:12706: checking PANGOFT2_CFLAGS" >&5 | |
f09359cf | 12706 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
8284b0c5 | 12707 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 |
f09359cf | 12708 | |
8284b0c5 MB |
12709 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 |
12710 | echo "configure:12711: checking PANGOFT2_LIBS" >&5 | |
f09359cf | 12711 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
8284b0c5 | 12712 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 |
f09359cf VS |
12713 | else |
12714 | PANGOFT2_CFLAGS="" | |
12715 | PANGOFT2_LIBS="" | |
8284b0c5 | 12716 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
12717 | ## do set a variable so people can do so. |
12718 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
8284b0c5 | 12719 | |
f09359cf VS |
12720 | fi |
12721 | ||
8284b0c5 MB |
12722 | |
12723 | ||
f09359cf VS |
12724 | else |
12725 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
12726 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
12727 | fi | |
12728 | fi | |
12729 | ||
12730 | if test $succeeded = yes; then | |
8284b0c5 | 12731 | |
b13cd66e VZ |
12732 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
12733 | LIBS="$LIBS $PANGOFT2_LIBS" | |
8284b0c5 | 12734 | |
f09359cf | 12735 | else |
8284b0c5 MB |
12736 | |
12737 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
b13cd66e | 12738 | wxUSE_PRINTING_ARCHITECTURE="no" |
8284b0c5 MB |
12739 | |
12740 | ||
f09359cf VS |
12741 | fi |
12742 | ||
b13cd66e | 12743 | fi |
f09359cf VS |
12744 | fi |
12745 | ||
21d1c967 GD |
12746 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
12747 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
12748 | ||
12749 | AFMINSTALL=afminstall | |
12750 | TOOLKIT=GTK | |
12751 | GUIDIST=GTK_DIST | |
12752 | ||
8284b0c5 MB |
12753 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
12754 | echo "configure:12755: checking for gdk_im_open in -lgdk" >&5 | |
12755 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` | |
12756 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12757 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 12758 | else |
8284b0c5 | 12759 | ac_save_LIBS="$LIBS" |
21d1c967 | 12760 | LIBS="-lgdk $LIBS" |
8284b0c5 MB |
12761 | cat > conftest.$ac_ext <<EOF |
12762 | #line 12763 "configure" | |
90dd450c | 12763 | #include "confdefs.h" |
5c6fa7d2 | 12764 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 12765 | /* We use char because int might match the return type of a gcc2 |
8284b0c5 MB |
12766 | builtin and then its argument prototype would still apply. */ |
12767 | char gdk_im_open(); | |
12768 | ||
12769 | int main() { | |
12770 | gdk_im_open() | |
12771 | ; return 0; } | |
12772 | EOF | |
12773 | if { (eval echo configure:12774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12774 | rm -rf conftest* | |
12775 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12776 | else | |
12777 | echo "configure: failed program was:" >&5 | |
12778 | cat conftest.$ac_ext >&5 | |
12779 | rm -rf conftest* | |
12780 | eval "ac_cv_lib_$ac_lib_var=no" | |
12781 | fi | |
12782 | rm -f conftest* | |
12783 | LIBS="$ac_save_LIBS" | |
12784 | ||
12785 | fi | |
12786 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12787 | echo "$ac_t""yes" 1>&6 | |
12788 | cat >> confdefs.h <<\EOF | |
21d1c967 GD |
12789 | #define HAVE_XIM 1 |
12790 | EOF | |
12791 | ||
8284b0c5 MB |
12792 | else |
12793 | echo "$ac_t""no" 1>&6 | |
90dd450c | 12794 | fi |
1e6feb95 | 12795 | |
21d1c967 | 12796 | fi |
1e6feb95 | 12797 | |
21d1c967 | 12798 | if test "$wxUSE_MGL" = 1; then |
8284b0c5 MB |
12799 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
12800 | echo "configure:12801: checking for SciTech MGL library" >&5 | |
21d1c967 | 12801 | if test "x$MGL_ROOT" = x ; then |
8284b0c5 MB |
12802 | echo "$ac_t""not found" 1>&6 |
12803 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
21d1c967 | 12804 | else |
8284b0c5 | 12805 | echo "$ac_t""$MGL_ROOT" 1>&6 |
21d1c967 GD |
12806 | fi |
12807 | ||
12808 | case "${host}" in | |
12809 | *-*-linux* ) | |
12810 | mgl_os=linux/gcc/glibc | |
12811 | ;; | |
12812 | *-pc-msdosdjgpp ) | |
12813 | mgl_os=dos32/dj2 | |
12814 | ;; | |
12815 | *) | |
8284b0c5 | 12816 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } |
21d1c967 | 12817 | esac |
1e6feb95 | 12818 | |
21d1c967 | 12819 | mgl_lib_type="" |
3fcdd07b | 12820 | |
21d1c967 GD |
12821 | if test "$wxUSE_DEBUG_FLAG" = yes ; then |
12822 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ | |
12823 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
12824 | mgl_lib_type=debug | |
12825 | fi | |
12826 | fi | |
12827 | if test "x$mgl_lib_type" = x ; then | |
12828 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ | |
12829 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
12830 | mgl_lib_type=release | |
12831 | else | |
8284b0c5 | 12832 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } |
21d1c967 | 12833 | fi |
90dd450c | 12834 | fi |
2224580a | 12835 | |
1d1b75ac VZ |
12836 | wxUSE_UNIVERSAL="yes" |
12837 | ||
21d1c967 GD |
12838 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
12839 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
12840 | ||
90dd450c | 12841 | AFMINSTALL=afminstall |
21d1c967 GD |
12842 | TOOLKIT=MGL |
12843 | GUIDIST=MGL_DIST | |
12844 | fi | |
dad6c0ea | 12845 | |
21d1c967 | 12846 | if test "$wxUSE_MICROWIN" = 1; then |
8284b0c5 MB |
12847 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 |
12848 | echo "configure:12849: checking for MicroWindows" >&5 | |
21d1c967 | 12849 | if test "x$MICROWINDOWS" = x ; then |
8284b0c5 MB |
12850 | echo "$ac_t""not found" 1>&6 |
12851 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
21d1c967 | 12852 | else |
8284b0c5 | 12853 | echo "$ac_t""$MICROWINDOWS" 1>&6 |
21d1c967 | 12854 | fi |
f6bcfd97 | 12855 | |
21d1c967 | 12856 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
8284b0c5 | 12857 | echo "$ac_t""MicroWindows' libraries found." 1>&6 |
21d1c967 | 12858 | else |
8284b0c5 | 12859 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } |
90dd450c | 12860 | fi |
0b2effe9 | 12861 | |
21d1c967 GD |
12862 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
12863 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
12864 | ||
1d1b75ac VZ |
12865 | wxUSE_UNIVERSAL="yes" |
12866 | ||
21d1c967 GD |
12867 | AFMINSTALL=afminstall |
12868 | TOOLKIT=MICROWIN | |
12869 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
12870 | |
12871 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 12872 | fi |
f6bcfd97 | 12873 | |
21d1c967 | 12874 | if test "$wxUSE_X11" = 1; then |
8284b0c5 MB |
12875 | # If we find X, set shell vars x_includes and x_libraries to the |
12876 | # paths, otherwise set no_x=yes. | |
12877 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
12878 | # --without-x overrides everything else, but does not touch the cache. | |
12879 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
12880 | echo "configure:12881: checking for X" >&5 | |
d8356fa3 | 12881 | |
21d1c967 GD |
12882 | # Check whether --with-x or --without-x was given. |
12883 | if test "${with_x+set}" = set; then | |
12884 | withval="$with_x" | |
8284b0c5 MB |
12885 | : |
12886 | fi | |
2224580a | 12887 | |
21d1c967 GD |
12888 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
12889 | if test "x$with_x" = xno; then | |
12890 | # The user explicitly disabled X. | |
12891 | have_x=disabled | |
12892 | else | |
12893 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
12894 | # Both variables are already set. | |
12895 | have_x=yes | |
12896 | else | |
8284b0c5 MB |
12897 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
12898 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 GD |
12899 | else |
12900 | # One or both of the vars are not set, and there is no cached value. | |
8284b0c5 MB |
12901 | ac_x_includes=NO ac_x_libraries=NO |
12902 | rm -fr conftestdir | |
12903 | if mkdir conftestdir; then | |
12904 | cd conftestdir | |
21d1c967 | 12905 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
8284b0c5 | 12906 | cat > Imakefile <<'EOF' |
21d1c967 GD |
12907 | acfindx: |
12908 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
12909 | EOF | |
12910 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
12911 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
12912 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
12913 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
12914 | for ac_extension in a so sl; do | |
12915 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
8284b0c5 | 12916 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
12917 | ac_im_usrlibdir=$ac_im_libdir; break |
12918 | fi | |
12919 | done | |
12920 | # Screen out bogus values from the imake configuration. They are | |
12921 | # bogus both because they are the default anyway, and because | |
12922 | # using them would break gcc on systems where it needs fixed includes. | |
8284b0c5 | 12923 | case "$ac_im_incroot" in |
21d1c967 | 12924 | /usr/include) ;; |
8284b0c5 | 12925 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
21d1c967 | 12926 | esac |
8284b0c5 | 12927 | case "$ac_im_usrlibdir" in |
21d1c967 | 12928 | /usr/lib | /lib) ;; |
8284b0c5 | 12929 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
21d1c967 GD |
12930 | esac |
12931 | fi | |
12932 | cd .. | |
8284b0c5 | 12933 | rm -fr conftestdir |
21d1c967 | 12934 | fi |
10f2d63a | 12935 | |
8284b0c5 MB |
12936 | if test "$ac_x_includes" = NO; then |
12937 | # Guess where to find include files, by looking for this one X11 .h file. | |
12938 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
12939 | ||
21d1c967 | 12940 | # First, try using that file with no special directory specified. |
8284b0c5 MB |
12941 | cat > conftest.$ac_ext <<EOF |
12942 | #line 12943 "configure" | |
21d1c967 | 12943 | #include "confdefs.h" |
8284b0c5 MB |
12944 | #include <$x_direct_test_include> |
12945 | EOF | |
12946 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12947 | { (eval echo configure:12948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12948 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12949 | if test -z "$ac_err"; then | |
12950 | rm -rf conftest* | |
21d1c967 GD |
12951 | # We can compile using X headers with no special include directory. |
12952 | ac_x_includes= | |
90dd450c | 12953 | else |
8284b0c5 MB |
12954 | echo "$ac_err" >&5 |
12955 | echo "configure: failed program was:" >&5 | |
90dd450c | 12956 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
12957 | rm -rf conftest* |
12958 | # Look for the header file in a standard set of common directories. | |
12959 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
12960 | for ac_dir in \ | |
12961 | /usr/X11/include \ | |
12962 | /usr/X11R6/include \ | |
12963 | /usr/X11R5/include \ | |
12964 | /usr/X11R4/include \ | |
12965 | \ | |
12966 | /usr/include/X11 \ | |
12967 | /usr/include/X11R6 \ | |
12968 | /usr/include/X11R5 \ | |
12969 | /usr/include/X11R4 \ | |
12970 | \ | |
12971 | /usr/local/X11/include \ | |
12972 | /usr/local/X11R6/include \ | |
12973 | /usr/local/X11R5/include \ | |
12974 | /usr/local/X11R4/include \ | |
12975 | \ | |
12976 | /usr/local/include/X11 \ | |
12977 | /usr/local/include/X11R6 \ | |
12978 | /usr/local/include/X11R5 \ | |
12979 | /usr/local/include/X11R4 \ | |
12980 | \ | |
12981 | /usr/X386/include \ | |
12982 | /usr/x386/include \ | |
12983 | /usr/XFree86/include/X11 \ | |
12984 | \ | |
12985 | /usr/include \ | |
12986 | /usr/local/include \ | |
12987 | /usr/unsupported/include \ | |
12988 | /usr/athena/include \ | |
12989 | /usr/local/x11r5/include \ | |
12990 | /usr/lpp/Xamples/include \ | |
12991 | \ | |
12992 | /usr/openwin/include \ | |
12993 | /usr/openwin/share/include \ | |
12994 | ; \ | |
12995 | do | |
12996 | if test -r "$ac_dir/$x_direct_test_include"; then | |
12997 | ac_x_includes=$ac_dir | |
12998 | break | |
12999 | fi | |
13000 | done | |
3a922bb4 | 13001 | fi |
8284b0c5 MB |
13002 | rm -f conftest* |
13003 | fi # $ac_x_includes = NO | |
10f2d63a | 13004 | |
8284b0c5 | 13005 | if test "$ac_x_libraries" = NO; then |
21d1c967 | 13006 | # Check for the libraries. |
8284b0c5 MB |
13007 | |
13008 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
13009 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
13010 | ||
21d1c967 GD |
13011 | # See if we find them without any special options. |
13012 | # Don't add to $LIBS permanently. | |
8284b0c5 MB |
13013 | ac_save_LIBS="$LIBS" |
13014 | LIBS="-l$x_direct_test_library $LIBS" | |
13015 | cat > conftest.$ac_ext <<EOF | |
13016 | #line 13017 "configure" | |
3a922bb4 | 13017 | #include "confdefs.h" |
8284b0c5 MB |
13018 | |
13019 | int main() { | |
13020 | ${x_direct_test_function}() | |
13021 | ; return 0; } | |
13022 | EOF | |
13023 | if { (eval echo configure:13024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13024 | rm -rf conftest* | |
13025 | LIBS="$ac_save_LIBS" | |
21d1c967 GD |
13026 | # We can link X programs with no special library path. |
13027 | ac_x_libraries= | |
3a922bb4 | 13028 | else |
8284b0c5 MB |
13029 | echo "configure: failed program was:" >&5 |
13030 | cat conftest.$ac_ext >&5 | |
13031 | rm -rf conftest* | |
13032 | LIBS="$ac_save_LIBS" | |
13033 | # First see if replacing the include by lib works. | |
13034 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13035 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
13036 | /usr/X11/lib \ | |
13037 | /usr/X11R6/lib \ | |
13038 | /usr/X11R5/lib \ | |
13039 | /usr/X11R4/lib \ | |
13040 | \ | |
13041 | /usr/lib/X11 \ | |
13042 | /usr/lib/X11R6 \ | |
13043 | /usr/lib/X11R5 \ | |
13044 | /usr/lib/X11R4 \ | |
13045 | \ | |
13046 | /usr/local/X11/lib \ | |
13047 | /usr/local/X11R6/lib \ | |
13048 | /usr/local/X11R5/lib \ | |
13049 | /usr/local/X11R4/lib \ | |
13050 | \ | |
13051 | /usr/local/lib/X11 \ | |
13052 | /usr/local/lib/X11R6 \ | |
13053 | /usr/local/lib/X11R5 \ | |
13054 | /usr/local/lib/X11R4 \ | |
13055 | \ | |
13056 | /usr/X386/lib \ | |
13057 | /usr/x386/lib \ | |
13058 | /usr/XFree86/lib/X11 \ | |
13059 | \ | |
13060 | /usr/lib \ | |
13061 | /usr/local/lib \ | |
13062 | /usr/unsupported/lib \ | |
13063 | /usr/athena/lib \ | |
13064 | /usr/local/x11r5/lib \ | |
13065 | /usr/lpp/Xamples/lib \ | |
13066 | /lib/usr/lib/X11 \ | |
13067 | \ | |
13068 | /usr/openwin/lib \ | |
13069 | /usr/openwin/share/lib \ | |
13070 | ; \ | |
21d1c967 GD |
13071 | do |
13072 | for ac_extension in a so sl; do | |
8284b0c5 | 13073 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
21d1c967 GD |
13074 | ac_x_libraries=$ac_dir |
13075 | break 2 | |
13076 | fi | |
13077 | done | |
13078 | done | |
3a922bb4 | 13079 | fi |
8284b0c5 MB |
13080 | rm -f conftest* |
13081 | fi # $ac_x_libraries = NO | |
90dd450c | 13082 | |
8284b0c5 | 13083 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
21d1c967 GD |
13084 | # Didn't find X anywhere. Cache the known absence of X. |
13085 | ac_cv_have_x="have_x=no" | |
13086 | else | |
13087 | # Record where we found X for the cache. | |
13088 | ac_cv_have_x="have_x=yes \ | |
13089 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 13090 | fi |
21d1c967 GD |
13091 | fi |
13092 | fi | |
13093 | eval "$ac_cv_have_x" | |
13094 | fi # $with_x != no | |
90dd450c | 13095 | |
21d1c967 | 13096 | if test "$have_x" != yes; then |
8284b0c5 | 13097 | echo "$ac_t""$have_x" 1>&6 |
21d1c967 GD |
13098 | no_x=yes |
13099 | else | |
13100 | # If each of the values was on the command line, it overrides each guess. | |
13101 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
13102 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
13103 | # Update the cache value to reflect the command line values. | |
13104 | ac_cv_have_x="have_x=yes \ | |
13105 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
8284b0c5 | 13106 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
21d1c967 | 13107 | fi |
90dd450c | 13108 | |
21d1c967 | 13109 | if test "$no_x" = yes; then |
90dd450c | 13110 | # Not all programs may use this symbol, but it does not hurt to define it. |
8284b0c5 | 13111 | cat >> confdefs.h <<\EOF |
90dd450c VZ |
13112 | #define X_DISPLAY_MISSING 1 |
13113 | EOF | |
13114 | ||
13115 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13116 | else | |
13117 | if test -n "$x_includes"; then | |
13118 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 13119 | fi |
3a922bb4 | 13120 | |
90dd450c VZ |
13121 | # It would also be nice to do this for all -L options, not just this one. |
13122 | if test -n "$x_libraries"; then | |
13123 | X_LIBS="$X_LIBS -L$x_libraries" | |
13124 | # For Solaris; some versions of Sun CC require a space after -R and | |
13125 | # others require no space. Words are not sufficient . . . . | |
8284b0c5 | 13126 | case "`(uname -sr) 2>/dev/null`" in |
90dd450c | 13127 | "SunOS 5"*) |
8284b0c5 MB |
13128 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
13129 | echo "configure:13130: checking whether -R must be followed by a space" >&5 | |
13130 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | |
13131 | cat > conftest.$ac_ext <<EOF | |
13132 | #line 13133 "configure" | |
90dd450c VZ |
13133 | #include "confdefs.h" |
13134 | ||
8284b0c5 | 13135 | int main() { |
90dd450c | 13136 | |
8284b0c5 MB |
13137 | ; return 0; } |
13138 | EOF | |
13139 | if { (eval echo configure:13140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13140 | rm -rf conftest* | |
90dd450c | 13141 | ac_R_nospace=yes |
3a922bb4 | 13142 | else |
8284b0c5 MB |
13143 | echo "configure: failed program was:" >&5 |
13144 | cat conftest.$ac_ext >&5 | |
13145 | rm -rf conftest* | |
13146 | ac_R_nospace=no | |
3a922bb4 | 13147 | fi |
8284b0c5 | 13148 | rm -f conftest* |
90dd450c | 13149 | if test $ac_R_nospace = yes; then |
8284b0c5 | 13150 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
13151 | X_LIBS="$X_LIBS -R$x_libraries" |
13152 | else | |
13153 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
8284b0c5 MB |
13154 | cat > conftest.$ac_ext <<EOF |
13155 | #line 13156 "configure" | |
90dd450c | 13156 | #include "confdefs.h" |
3a922bb4 | 13157 | |
8284b0c5 | 13158 | int main() { |
6f754473 | 13159 | |
8284b0c5 MB |
13160 | ; return 0; } |
13161 | EOF | |
13162 | if { (eval echo configure:13163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13163 | rm -rf conftest* | |
90dd450c VZ |
13164 | ac_R_space=yes |
13165 | else | |
8284b0c5 MB |
13166 | echo "configure: failed program was:" >&5 |
13167 | cat conftest.$ac_ext >&5 | |
13168 | rm -rf conftest* | |
13169 | ac_R_space=no | |
90dd450c | 13170 | fi |
8284b0c5 | 13171 | rm -f conftest* |
90dd450c | 13172 | if test $ac_R_space = yes; then |
8284b0c5 | 13173 | echo "$ac_t""yes" 1>&6 |
90dd450c VZ |
13174 | X_LIBS="$X_LIBS -R $x_libraries" |
13175 | else | |
8284b0c5 | 13176 | echo "$ac_t""neither works" 1>&6 |
90dd450c VZ |
13177 | fi |
13178 | fi | |
8284b0c5 | 13179 | LIBS="$ac_xsave_LIBS" |
90dd450c VZ |
13180 | esac |
13181 | fi | |
13182 | ||
13183 | # Check for system-dependent libraries X programs must link with. | |
13184 | # Do this before checking for the system-independent R6 libraries | |
13185 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 13186 | |
90dd450c VZ |
13187 | if test "$ISC" = yes; then |
13188 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13189 | else | |
8284b0c5 MB |
13190 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
13191 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
90dd450c | 13192 | # the Alpha needs dnet_stub (dnet does not exist). |
8284b0c5 MB |
13193 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
13194 | echo "configure:13195: checking for dnet_ntoa in -ldnet" >&5 | |
13195 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
13196 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13197 | echo $ac_n "(cached) $ac_c" 1>&6 | |
52127426 | 13198 | else |
8284b0c5 | 13199 | ac_save_LIBS="$LIBS" |
5c6fa7d2 | 13200 | LIBS="-ldnet $LIBS" |
8284b0c5 MB |
13201 | cat > conftest.$ac_ext <<EOF |
13202 | #line 13203 "configure" | |
5c6fa7d2 | 13203 | #include "confdefs.h" |
5c6fa7d2 | 13204 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 13205 | /* We use char because int might match the return type of a gcc2 |
8284b0c5 MB |
13206 | builtin and then its argument prototype would still apply. */ |
13207 | char dnet_ntoa(); | |
13208 | ||
13209 | int main() { | |
13210 | dnet_ntoa() | |
13211 | ; return 0; } | |
13212 | EOF | |
13213 | if { (eval echo configure:13214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13214 | rm -rf conftest* | |
13215 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13216 | else | |
13217 | echo "configure: failed program was:" >&5 | |
13218 | cat conftest.$ac_ext >&5 | |
13219 | rm -rf conftest* | |
13220 | eval "ac_cv_lib_$ac_lib_var=no" | |
13221 | fi | |
13222 | rm -f conftest* | |
13223 | LIBS="$ac_save_LIBS" | |
13224 | ||
13225 | fi | |
13226 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13227 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13228 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
8284b0c5 MB |
13229 | else |
13230 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13231 | fi |
13232 | ||
90dd450c | 13233 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
8284b0c5 MB |
13234 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
13235 | echo "configure:13236: checking for dnet_ntoa in -ldnet_stub" >&5 | |
13236 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
13237 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13238 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13239 | else |
8284b0c5 | 13240 | ac_save_LIBS="$LIBS" |
90dd450c | 13241 | LIBS="-ldnet_stub $LIBS" |
8284b0c5 MB |
13242 | cat > conftest.$ac_ext <<EOF |
13243 | #line 13244 "configure" | |
90dd450c VZ |
13244 | #include "confdefs.h" |
13245 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13246 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
13247 | builtin and then its argument prototype would still apply. */ |
13248 | char dnet_ntoa(); | |
13249 | ||
13250 | int main() { | |
13251 | dnet_ntoa() | |
13252 | ; return 0; } | |
13253 | EOF | |
13254 | if { (eval echo configure:13255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13255 | rm -rf conftest* | |
13256 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13257 | else | |
13258 | echo "configure: failed program was:" >&5 | |
13259 | cat conftest.$ac_ext >&5 | |
13260 | rm -rf conftest* | |
13261 | eval "ac_cv_lib_$ac_lib_var=no" | |
13262 | fi | |
13263 | rm -f conftest* | |
13264 | LIBS="$ac_save_LIBS" | |
13265 | ||
13266 | fi | |
13267 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13268 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13269 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
8284b0c5 MB |
13270 | else |
13271 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13272 | fi |
13273 | ||
90dd450c | 13274 | fi |
978f1259 | 13275 | |
90dd450c VZ |
13276 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13277 | # to get the SysV transport functions. | |
8284b0c5 | 13278 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
13279 | # needs -lnsl. |
13280 | # The nsl library prevents programs from opening the X display | |
8284b0c5 MB |
13281 | # on Irix 5.2, according to dickey@clark.net. |
13282 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
13283 | echo "configure:13284: checking for gethostbyname" >&5 | |
13284 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then | |
13285 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13286 | else | |
13287 | cat > conftest.$ac_ext <<EOF | |
13288 | #line 13289 "configure" | |
90dd450c VZ |
13289 | #include "confdefs.h" |
13290 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 13291 | which can conflict with char gethostbyname(); below. */ |
90dd450c VZ |
13292 | #include <assert.h> |
13293 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13294 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
13295 | builtin and then its argument prototype would still apply. */ |
13296 | char gethostbyname(); | |
13297 | ||
13298 | int main() { | |
978f1259 | 13299 | |
90dd450c VZ |
13300 | /* The GNU C library defines this for functions which it implements |
13301 | to always fail with ENOSYS. Some functions are actually named | |
13302 | something starting with __ and the normal name is an alias. */ | |
13303 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13304 | choke me | |
13305 | #else | |
8284b0c5 | 13306 | gethostbyname(); |
90dd450c | 13307 | #endif |
978f1259 | 13308 | |
8284b0c5 MB |
13309 | ; return 0; } |
13310 | EOF | |
13311 | if { (eval echo configure:13312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13312 | rm -rf conftest* | |
13313 | eval "ac_cv_func_gethostbyname=yes" | |
13314 | else | |
13315 | echo "configure: failed program was:" >&5 | |
13316 | cat conftest.$ac_ext >&5 | |
13317 | rm -rf conftest* | |
13318 | eval "ac_cv_func_gethostbyname=no" | |
13319 | fi | |
13320 | rm -f conftest* | |
13321 | fi | |
13322 | ||
13323 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
13324 | echo "$ac_t""yes" 1>&6 | |
13325 | : | |
13326 | else | |
13327 | echo "$ac_t""no" 1>&6 | |
13328 | fi | |
698dcdb6 | 13329 | |
90dd450c | 13330 | if test $ac_cv_func_gethostbyname = no; then |
8284b0c5 MB |
13331 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
13332 | echo "configure:13333: checking for gethostbyname in -lnsl" >&5 | |
13333 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | |
13334 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13335 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13336 | else |
8284b0c5 | 13337 | ac_save_LIBS="$LIBS" |
90dd450c | 13338 | LIBS="-lnsl $LIBS" |
8284b0c5 MB |
13339 | cat > conftest.$ac_ext <<EOF |
13340 | #line 13341 "configure" | |
90dd450c VZ |
13341 | #include "confdefs.h" |
13342 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13343 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
13344 | builtin and then its argument prototype would still apply. */ |
13345 | char gethostbyname(); | |
7b4a847f | 13346 | |
8284b0c5 MB |
13347 | int main() { |
13348 | gethostbyname() | |
13349 | ; return 0; } | |
13350 | EOF | |
13351 | if { (eval echo configure:13352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13352 | rm -rf conftest* | |
13353 | eval "ac_cv_lib_$ac_lib_var=yes" | |
52127426 | 13354 | else |
8284b0c5 MB |
13355 | echo "configure: failed program was:" >&5 |
13356 | cat conftest.$ac_ext >&5 | |
13357 | rm -rf conftest* | |
13358 | eval "ac_cv_lib_$ac_lib_var=no" | |
13359 | fi | |
13360 | rm -f conftest* | |
13361 | LIBS="$ac_save_LIBS" | |
5c6fa7d2 | 13362 | |
8284b0c5 MB |
13363 | fi |
13364 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13365 | echo "$ac_t""yes" 1>&6 | |
13366 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13367 | else | |
13368 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13369 | fi |
b12915c1 | 13370 | |
90dd450c VZ |
13371 | fi |
13372 | ||
13373 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
13374 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13375 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
8284b0c5 MB |
13376 | # on later versions), says simon@lia.di.epfl.ch: it contains |
13377 | # gethostby* variants that don't use the nameserver (or something). | |
13378 | # -lsocket must be given before -lnsl if both are needed. | |
13379 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
13380 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
13381 | echo "configure:13382: checking for connect" >&5 | |
13382 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then | |
13383 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13384 | else | |
13385 | cat > conftest.$ac_ext <<EOF | |
13386 | #line 13387 "configure" | |
55e80573 | 13387 | #include "confdefs.h" |
90dd450c | 13388 | /* System header to define __stub macros and hopefully few prototypes, |
8284b0c5 | 13389 | which can conflict with char connect(); below. */ |
90dd450c VZ |
13390 | #include <assert.h> |
13391 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13392 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
13393 | builtin and then its argument prototype would still apply. */ |
13394 | char connect(); | |
13395 | ||
13396 | int main() { | |
55e80573 | 13397 | |
90dd450c VZ |
13398 | /* The GNU C library defines this for functions which it implements |
13399 | to always fail with ENOSYS. Some functions are actually named | |
13400 | something starting with __ and the normal name is an alias. */ | |
13401 | #if defined (__stub_connect) || defined (__stub___connect) | |
13402 | choke me | |
13403 | #else | |
8284b0c5 | 13404 | connect(); |
90dd450c VZ |
13405 | #endif |
13406 | ||
8284b0c5 MB |
13407 | ; return 0; } |
13408 | EOF | |
13409 | if { (eval echo configure:13410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13410 | rm -rf conftest* | |
13411 | eval "ac_cv_func_connect=yes" | |
13412 | else | |
13413 | echo "configure: failed program was:" >&5 | |
13414 | cat conftest.$ac_ext >&5 | |
13415 | rm -rf conftest* | |
13416 | eval "ac_cv_func_connect=no" | |
13417 | fi | |
13418 | rm -f conftest* | |
13419 | fi | |
13420 | ||
13421 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
13422 | echo "$ac_t""yes" 1>&6 | |
13423 | : | |
13424 | else | |
13425 | echo "$ac_t""no" 1>&6 | |
13426 | fi | |
55e80573 | 13427 | |
90dd450c | 13428 | if test $ac_cv_func_connect = no; then |
8284b0c5 MB |
13429 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
13430 | echo "configure:13431: checking for connect in -lsocket" >&5 | |
13431 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` | |
13432 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13433 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13434 | else |
8284b0c5 | 13435 | ac_save_LIBS="$LIBS" |
90dd450c | 13436 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
8284b0c5 MB |
13437 | cat > conftest.$ac_ext <<EOF |
13438 | #line 13439 "configure" | |
90dd450c VZ |
13439 | #include "confdefs.h" |
13440 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13441 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
13442 | builtin and then its argument prototype would still apply. */ |
13443 | char connect(); | |
13444 | ||
13445 | int main() { | |
13446 | connect() | |
13447 | ; return 0; } | |
13448 | EOF | |
13449 | if { (eval echo configure:13450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13450 | rm -rf conftest* | |
13451 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13452 | else | |
13453 | echo "configure: failed program was:" >&5 | |
13454 | cat conftest.$ac_ext >&5 | |
13455 | rm -rf conftest* | |
13456 | eval "ac_cv_lib_$ac_lib_var=no" | |
13457 | fi | |
13458 | rm -f conftest* | |
13459 | LIBS="$ac_save_LIBS" | |
13460 | ||
13461 | fi | |
13462 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13463 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13464 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
8284b0c5 MB |
13465 | else |
13466 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13467 | fi |
77e13408 | 13468 | |
90dd450c | 13469 | fi |
25d0687a | 13470 | |
8284b0c5 MB |
13471 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
13472 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
13473 | echo "configure:13474: checking for remove" >&5 | |
13474 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then | |
13475 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13476 | else |
8284b0c5 MB |
13477 | cat > conftest.$ac_ext <<EOF |
13478 | #line 13479 "configure" | |
90dd450c VZ |
13479 | #include "confdefs.h" |
13480 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 13481 | which can conflict with char remove(); below. */ |
90dd450c VZ |
13482 | #include <assert.h> |
13483 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13484 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
13485 | builtin and then its argument prototype would still apply. */ |
13486 | char remove(); | |
13487 | ||
13488 | int main() { | |
55e80573 | 13489 | |
90dd450c VZ |
13490 | /* The GNU C library defines this for functions which it implements |
13491 | to always fail with ENOSYS. Some functions are actually named | |
13492 | something starting with __ and the normal name is an alias. */ | |
13493 | #if defined (__stub_remove) || defined (__stub___remove) | |
13494 | choke me | |
13495 | #else | |
8284b0c5 | 13496 | remove(); |
90dd450c | 13497 | #endif |
55e80573 | 13498 | |
8284b0c5 MB |
13499 | ; return 0; } |
13500 | EOF | |
13501 | if { (eval echo configure:13502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13502 | rm -rf conftest* | |
13503 | eval "ac_cv_func_remove=yes" | |
13504 | else | |
13505 | echo "configure: failed program was:" >&5 | |
13506 | cat conftest.$ac_ext >&5 | |
13507 | rm -rf conftest* | |
13508 | eval "ac_cv_func_remove=no" | |
13509 | fi | |
13510 | rm -f conftest* | |
13511 | fi | |
13512 | ||
13513 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
13514 | echo "$ac_t""yes" 1>&6 | |
13515 | : | |
13516 | else | |
13517 | echo "$ac_t""no" 1>&6 | |
13518 | fi | |
10f2d63a | 13519 | |
90dd450c | 13520 | if test $ac_cv_func_remove = no; then |
8284b0c5 MB |
13521 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
13522 | echo "configure:13523: checking for remove in -lposix" >&5 | |
13523 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` | |
13524 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13525 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13526 | else |
8284b0c5 | 13527 | ac_save_LIBS="$LIBS" |
90dd450c | 13528 | LIBS="-lposix $LIBS" |
8284b0c5 MB |
13529 | cat > conftest.$ac_ext <<EOF |
13530 | #line 13531 "configure" | |
90dd450c VZ |
13531 | #include "confdefs.h" |
13532 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13533 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
13534 | builtin and then its argument prototype would still apply. */ |
13535 | char remove(); | |
13536 | ||
13537 | int main() { | |
13538 | remove() | |
13539 | ; return 0; } | |
13540 | EOF | |
13541 | if { (eval echo configure:13542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13542 | rm -rf conftest* | |
13543 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13544 | else | |
13545 | echo "configure: failed program was:" >&5 | |
13546 | cat conftest.$ac_ext >&5 | |
13547 | rm -rf conftest* | |
13548 | eval "ac_cv_lib_$ac_lib_var=no" | |
13549 | fi | |
13550 | rm -f conftest* | |
13551 | LIBS="$ac_save_LIBS" | |
13552 | ||
13553 | fi | |
13554 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13555 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13556 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
8284b0c5 MB |
13557 | else |
13558 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13559 | fi |
f6bcfd97 | 13560 | |
6fa882bd RR |
13561 | fi |
13562 | ||
90dd450c | 13563 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
8284b0c5 MB |
13564 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
13565 | echo "configure:13566: checking for shmat" >&5 | |
13566 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then | |
13567 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13568 | else |
8284b0c5 MB |
13569 | cat > conftest.$ac_ext <<EOF |
13570 | #line 13571 "configure" | |
90dd450c VZ |
13571 | #include "confdefs.h" |
13572 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 13573 | which can conflict with char shmat(); below. */ |
90dd450c VZ |
13574 | #include <assert.h> |
13575 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13576 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
13577 | builtin and then its argument prototype would still apply. */ |
13578 | char shmat(); | |
13579 | ||
13580 | int main() { | |
3a922bb4 | 13581 | |
90dd450c VZ |
13582 | /* The GNU C library defines this for functions which it implements |
13583 | to always fail with ENOSYS. Some functions are actually named | |
13584 | something starting with __ and the normal name is an alias. */ | |
13585 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
13586 | choke me | |
13587 | #else | |
8284b0c5 | 13588 | shmat(); |
90dd450c | 13589 | #endif |
10f2d63a | 13590 | |
8284b0c5 MB |
13591 | ; return 0; } |
13592 | EOF | |
13593 | if { (eval echo configure:13594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13594 | rm -rf conftest* | |
13595 | eval "ac_cv_func_shmat=yes" | |
13596 | else | |
13597 | echo "configure: failed program was:" >&5 | |
13598 | cat conftest.$ac_ext >&5 | |
13599 | rm -rf conftest* | |
13600 | eval "ac_cv_func_shmat=no" | |
13601 | fi | |
13602 | rm -f conftest* | |
13603 | fi | |
13604 | ||
13605 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
13606 | echo "$ac_t""yes" 1>&6 | |
13607 | : | |
13608 | else | |
13609 | echo "$ac_t""no" 1>&6 | |
13610 | fi | |
d08b457b | 13611 | |
90dd450c | 13612 | if test $ac_cv_func_shmat = no; then |
8284b0c5 MB |
13613 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
13614 | echo "configure:13615: checking for shmat in -lipc" >&5 | |
13615 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` | |
13616 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13617 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d08b457b | 13618 | else |
8284b0c5 | 13619 | ac_save_LIBS="$LIBS" |
90dd450c | 13620 | LIBS="-lipc $LIBS" |
8284b0c5 MB |
13621 | cat > conftest.$ac_ext <<EOF |
13622 | #line 13623 "configure" | |
90dd450c | 13623 | #include "confdefs.h" |
8284b0c5 | 13624 | /* Override any gcc2 internal prototype to avoid an error. */ |
90dd450c | 13625 | /* We use char because int might match the return type of a gcc2 |
8284b0c5 MB |
13626 | builtin and then its argument prototype would still apply. */ |
13627 | char shmat(); | |
13628 | ||
13629 | int main() { | |
13630 | shmat() | |
13631 | ; return 0; } | |
13632 | EOF | |
13633 | if { (eval echo configure:13634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13634 | rm -rf conftest* | |
13635 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13636 | else | |
13637 | echo "configure: failed program was:" >&5 | |
13638 | cat conftest.$ac_ext >&5 | |
13639 | rm -rf conftest* | |
13640 | eval "ac_cv_lib_$ac_lib_var=no" | |
13641 | fi | |
13642 | rm -f conftest* | |
13643 | LIBS="$ac_save_LIBS" | |
13644 | ||
13645 | fi | |
13646 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13647 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13648 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
8284b0c5 MB |
13649 | else |
13650 | echo "$ac_t""no" 1>&6 | |
d08b457b GD |
13651 | fi |
13652 | ||
d558c907 | 13653 | fi |
90dd450c | 13654 | fi |
3a922bb4 | 13655 | |
90dd450c | 13656 | # Check for libraries that X11R6 Xt/Xaw programs need. |
8284b0c5 | 13657 | ac_save_LDFLAGS="$LDFLAGS" |
90dd450c VZ |
13658 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
13659 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
13660 | # check for ICE first), but we must link in the order -lSM -lICE or | |
13661 | # we get undefined symbols. So assume we have SM if we have ICE. | |
13662 | # These have to be linked with before -lX11, unlike the other | |
13663 | # libraries we check for below, so use a different variable. | |
8284b0c5 MB |
13664 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
13665 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
13666 | echo "configure:13667: checking for IceConnectionNumber in -lICE" >&5 | |
13667 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` | |
13668 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13669 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13670 | else | |
13671 | ac_save_LIBS="$LIBS" | |
f09359cf | 13672 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
8284b0c5 MB |
13673 | cat > conftest.$ac_ext <<EOF |
13674 | #line 13675 "configure" | |
9cfadba2 | 13675 | #include "confdefs.h" |
90dd450c VZ |
13676 | /* Override any gcc2 internal prototype to avoid an error. */ |
13677 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
13678 | builtin and then its argument prototype would still apply. */ |
13679 | char IceConnectionNumber(); | |
13680 | ||
13681 | int main() { | |
13682 | IceConnectionNumber() | |
13683 | ; return 0; } | |
13684 | EOF | |
13685 | if { (eval echo configure:13686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13686 | rm -rf conftest* | |
13687 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13688 | else | |
13689 | echo "configure: failed program was:" >&5 | |
13690 | cat conftest.$ac_ext >&5 | |
13691 | rm -rf conftest* | |
13692 | eval "ac_cv_lib_$ac_lib_var=no" | |
13693 | fi | |
13694 | rm -f conftest* | |
13695 | LIBS="$ac_save_LIBS" | |
13696 | ||
13697 | fi | |
13698 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13699 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13700 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
8284b0c5 MB |
13701 | else |
13702 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 13703 | fi |
10f2d63a | 13704 | |
8284b0c5 | 13705 | LDFLAGS="$ac_save_LDFLAGS" |
90dd450c VZ |
13706 | |
13707 | fi | |
13708 | ||
8284b0c5 | 13709 | |
90dd450c | 13710 | if test "$no_x" = "yes"; then |
8284b0c5 | 13711 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
90dd450c VZ |
13712 | fi |
13713 | ||
13714 | GUI_TK_LIBRARY="$X_LIBS" | |
13715 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
13716 | AFMINSTALL=afminstall | |
13717 | COMPILED_X_PROGRAM=0 | |
13718 | ||
21d1c967 | 13719 | if test "$wxUSE_NANOX" = "yes"; then |
8284b0c5 MB |
13720 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 |
13721 | echo "configure:13722: checking for MicroWindows/NanoX distribution" >&5 | |
21d1c967 | 13722 | if test "x$MICROWIN" = x ; then |
8284b0c5 MB |
13723 | echo "$ac_t""not found" 1>&6 |
13724 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
90dd450c | 13725 | else |
8284b0c5 MB |
13726 | echo "$ac_t""$MICROWIN" 1>&6 |
13727 | cat >> confdefs.h <<\EOF | |
21d1c967 | 13728 | #define wxUSE_NANOX 1 |
698dcdb6 | 13729 | EOF |
21d1c967 | 13730 | |
90dd450c VZ |
13731 | fi |
13732 | fi | |
13733 | ||
13734 | xpm_link= | |
8284b0c5 MB |
13735 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
13736 | echo "configure:13737: checking for Xpm library" >&5 | |
13737 | ||
90dd450c VZ |
13738 | ac_find_libraries= |
13739 | for ac_dir in $SEARCH_LIB; | |
13740 | do | |
13741 | for ac_extension in a so sl dylib; do | |
13742 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
13743 | ac_find_libraries=$ac_dir | |
13744 | break 2 | |
13745 | fi | |
13746 | done | |
13747 | done | |
13748 | ||
13749 | if test "$ac_find_libraries" != "" ; then | |
8284b0c5 | 13750 | |
90dd450c VZ |
13751 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
13752 | result=$? | |
13753 | if test $result = 0; then | |
13754 | ac_path_to_link="" | |
13755 | else | |
13756 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 13757 | fi |
90dd450c | 13758 | |
21d1c967 GD |
13759 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
13760 | xpm_link=" -lXpm" | |
8284b0c5 | 13761 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
13762 | #define wxHAVE_LIB_XPM 1 |
13763 | EOF | |
90dd450c | 13764 | |
8284b0c5 | 13765 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 13766 | else |
8284b0c5 MB |
13767 | cat > conftest.$ac_ext <<EOF |
13768 | #line 13769 "configure" | |
21d1c967 | 13769 | #include "confdefs.h" |
90dd450c | 13770 | |
21d1c967 | 13771 | #include <X11/xpm.h> |
8284b0c5 MB |
13772 | |
13773 | int main() { | |
6f72b082 | 13774 | |
21d1c967 GD |
13775 | int version; |
13776 | version = XpmLibraryVersion(); | |
8284b0c5 MB |
13777 | |
13778 | ; return 0; } | |
13779 | EOF | |
13780 | if { (eval echo configure:13781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
13781 | rm -rf conftest* | |
13782 | ||
21d1c967 | 13783 | xpm_link=" -lXpm" |
8284b0c5 | 13784 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
13785 | #define wxHAVE_LIB_XPM 1 |
13786 | EOF | |
90dd450c | 13787 | |
8284b0c5 | 13788 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 13789 | COMPILED_X_PROGRAM=0 |
8284b0c5 | 13790 | |
21d1c967 | 13791 | else |
8284b0c5 MB |
13792 | echo "configure: failed program was:" >&5 |
13793 | cat conftest.$ac_ext >&5 | |
13794 | rm -rf conftest* | |
13795 | ||
13796 | echo "$ac_t""no" 1>&6 | |
13797 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13798 | ||
13799 | ||
6f72b082 | 13800 | fi |
8284b0c5 | 13801 | rm -f conftest* |
21d1c967 | 13802 | fi |
90dd450c | 13803 | |
1d1b75ac VZ |
13804 | wxUSE_UNIVERSAL="yes" |
13805 | ||
21d1c967 GD |
13806 | if test "$wxUSE_NANOX" = "yes"; then |
13807 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
13808 | 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" | |
13809 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
13810 | else | |
13811 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
13812 | fi | |
6f72b082 | 13813 | |
21d1c967 GD |
13814 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" |
13815 | TOOLKIT=X11 | |
13816 | GUIDIST=X11_DIST | |
13817 | fi | |
90dd450c | 13818 | |
21d1c967 | 13819 | if test "$wxUSE_WINE" = 1; then |
8284b0c5 MB |
13820 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
13821 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
13822 | echo "configure:13823: checking for windows.h" >&5 | |
13823 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
13824 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13825 | else | |
13826 | cat > conftest.$ac_ext <<EOF | |
13827 | #line 13828 "configure" | |
6f72b082 | 13828 | #include "confdefs.h" |
21d1c967 | 13829 | #include <windows.h> |
8284b0c5 MB |
13830 | EOF |
13831 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
13832 | { (eval echo configure:13833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
13833 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
13834 | if test -z "$ac_err"; then | |
13835 | rm -rf conftest* | |
13836 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 13837 | else |
8284b0c5 MB |
13838 | echo "$ac_err" >&5 |
13839 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13840 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
13841 | rm -rf conftest* |
13842 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13843 | fi |
8284b0c5 | 13844 | rm -f conftest* |
10f2d63a | 13845 | fi |
8284b0c5 MB |
13846 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13847 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
13848 | : |
13849 | else | |
8284b0c5 | 13850 | echo "$ac_t""no" 1>&6 |
21d1c967 | 13851 | |
8284b0c5 MB |
13852 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
13853 | ||
5c6fa7d2 | 13854 | fi |
7b4a847f | 13855 | |
5c6fa7d2 | 13856 | |
8284b0c5 MB |
13857 | xpm_link= |
13858 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
13859 | echo "configure:13860: checking for Xpm library" >&5 | |
13860 | ||
90dd450c VZ |
13861 | ac_find_libraries= |
13862 | for ac_dir in $SEARCH_LIB; | |
13863 | do | |
13864 | for ac_extension in a so sl dylib; do | |
21d1c967 | 13865 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
90dd450c VZ |
13866 | ac_find_libraries=$ac_dir |
13867 | break 2 | |
13868 | fi | |
13869 | done | |
13870 | done | |
13871 | ||
21d1c967 GD |
13872 | if test "$ac_find_libraries" != "" ; then |
13873 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
13874 | xpm_link=" -lXpm" | |
8284b0c5 | 13875 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
13876 | #define wxHAVE_LIB_XPM 1 |
13877 | EOF | |
90dd450c | 13878 | |
8284b0c5 | 13879 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 13880 | else |
8284b0c5 MB |
13881 | echo "$ac_t""no" 1>&6 |
13882 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
21d1c967 GD |
13883 | fi |
13884 | ||
13885 | mesa_link= | |
8284b0c5 MB |
13886 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 |
13887 | echo "configure:13888: checking for Mesa library" >&5 | |
13888 | ||
90dd450c VZ |
13889 | ac_find_libraries= |
13890 | for ac_dir in $SEARCH_LIB; | |
13891 | do | |
13892 | for ac_extension in a so sl dylib; do | |
13893 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
13894 | ac_find_libraries=$ac_dir | |
13895 | break 2 | |
13896 | fi | |
13897 | done | |
13898 | done | |
13899 | ||
21d1c967 GD |
13900 | if test "$ac_find_libraries" != "" ; then |
13901 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
13902 | mesa_link=" -lMesaGL" | |
8284b0c5 | 13903 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 13904 | else |
8284b0c5 | 13905 | { echo "configure: error: no" 1>&2; exit 1; } |
21d1c967 GD |
13906 | fi |
13907 | ||
13908 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
13909 | TOOLKIT=MSW | |
13910 | GUIDIST=MSW_DIST | |
13911 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
13912 | fi | |
13913 | ||
13914 | if test "$wxUSE_MOTIF" = 1; then | |
13915 | if test "$no_x" = yes; then | |
13916 | # Not all programs may use this symbol, but it does not hurt to define it. | |
8284b0c5 | 13917 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
13918 | #define X_DISPLAY_MISSING 1 |
13919 | EOF | |
13920 | ||
13921 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13922 | else | |
13923 | if test -n "$x_includes"; then | |
13924 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
13925 | fi |
13926 | ||
21d1c967 GD |
13927 | # It would also be nice to do this for all -L options, not just this one. |
13928 | if test -n "$x_libraries"; then | |
13929 | X_LIBS="$X_LIBS -L$x_libraries" | |
13930 | # For Solaris; some versions of Sun CC require a space after -R and | |
13931 | # others require no space. Words are not sufficient . . . . | |
8284b0c5 | 13932 | case "`(uname -sr) 2>/dev/null`" in |
21d1c967 | 13933 | "SunOS 5"*) |
8284b0c5 MB |
13934 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
13935 | echo "configure:13936: checking whether -R must be followed by a space" >&5 | |
13936 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | |
13937 | cat > conftest.$ac_ext <<EOF | |
13938 | #line 13939 "configure" | |
21d1c967 GD |
13939 | #include "confdefs.h" |
13940 | ||
8284b0c5 | 13941 | int main() { |
21d1c967 | 13942 | |
8284b0c5 MB |
13943 | ; return 0; } |
13944 | EOF | |
13945 | if { (eval echo configure:13946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13946 | rm -rf conftest* | |
21d1c967 | 13947 | ac_R_nospace=yes |
698dcdb6 | 13948 | else |
8284b0c5 MB |
13949 | echo "configure: failed program was:" >&5 |
13950 | cat conftest.$ac_ext >&5 | |
13951 | rm -rf conftest* | |
13952 | ac_R_nospace=no | |
10f2d63a | 13953 | fi |
8284b0c5 | 13954 | rm -f conftest* |
21d1c967 | 13955 | if test $ac_R_nospace = yes; then |
8284b0c5 | 13956 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
13957 | X_LIBS="$X_LIBS -R$x_libraries" |
13958 | else | |
13959 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
8284b0c5 MB |
13960 | cat > conftest.$ac_ext <<EOF |
13961 | #line 13962 "configure" | |
21d1c967 | 13962 | #include "confdefs.h" |
10f2d63a | 13963 | |
8284b0c5 | 13964 | int main() { |
f0c87536 | 13965 | |
8284b0c5 MB |
13966 | ; return 0; } |
13967 | EOF | |
13968 | if { (eval echo configure:13969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13969 | rm -rf conftest* | |
21d1c967 GD |
13970 | ac_R_space=yes |
13971 | else | |
8284b0c5 MB |
13972 | echo "configure: failed program was:" >&5 |
13973 | cat conftest.$ac_ext >&5 | |
13974 | rm -rf conftest* | |
13975 | ac_R_space=no | |
21d1c967 | 13976 | fi |
8284b0c5 | 13977 | rm -f conftest* |
21d1c967 | 13978 | if test $ac_R_space = yes; then |
8284b0c5 | 13979 | echo "$ac_t""yes" 1>&6 |
21d1c967 GD |
13980 | X_LIBS="$X_LIBS -R $x_libraries" |
13981 | else | |
8284b0c5 | 13982 | echo "$ac_t""neither works" 1>&6 |
21d1c967 GD |
13983 | fi |
13984 | fi | |
8284b0c5 | 13985 | LIBS="$ac_xsave_LIBS" |
21d1c967 GD |
13986 | esac |
13987 | fi | |
90dd450c | 13988 | |
21d1c967 GD |
13989 | # Check for system-dependent libraries X programs must link with. |
13990 | # Do this before checking for the system-independent R6 libraries | |
13991 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
13992 | ||
13993 | if test "$ISC" = yes; then | |
13994 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13995 | else | |
8284b0c5 MB |
13996 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
13997 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
21d1c967 | 13998 | # the Alpha needs dnet_stub (dnet does not exist). |
8284b0c5 MB |
13999 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
14000 | echo "configure:14001: checking for dnet_ntoa in -ldnet" >&5 | |
14001 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
14002 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14003 | echo $ac_n "(cached) $ac_c" 1>&6 | |
52127426 | 14004 | else |
8284b0c5 | 14005 | ac_save_LIBS="$LIBS" |
5c6fa7d2 | 14006 | LIBS="-ldnet $LIBS" |
8284b0c5 MB |
14007 | cat > conftest.$ac_ext <<EOF |
14008 | #line 14009 "configure" | |
5c6fa7d2 | 14009 | #include "confdefs.h" |
5c6fa7d2 | 14010 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 14011 | /* We use char because int might match the return type of a gcc2 |
8284b0c5 MB |
14012 | builtin and then its argument prototype would still apply. */ |
14013 | char dnet_ntoa(); | |
14014 | ||
14015 | int main() { | |
14016 | dnet_ntoa() | |
14017 | ; return 0; } | |
14018 | EOF | |
14019 | if { (eval echo configure:14020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14020 | rm -rf conftest* | |
14021 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14022 | else | |
14023 | echo "configure: failed program was:" >&5 | |
14024 | cat conftest.$ac_ext >&5 | |
14025 | rm -rf conftest* | |
14026 | eval "ac_cv_lib_$ac_lib_var=no" | |
14027 | fi | |
14028 | rm -f conftest* | |
14029 | LIBS="$ac_save_LIBS" | |
14030 | ||
14031 | fi | |
14032 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14033 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14034 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
8284b0c5 MB |
14035 | else |
14036 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 | 14037 | fi |
0fb0dd83 | 14038 | |
21d1c967 | 14039 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
8284b0c5 MB |
14040 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
14041 | echo "configure:14042: checking for dnet_ntoa in -ldnet_stub" >&5 | |
14042 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
14043 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14044 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14045 | else |
8284b0c5 | 14046 | ac_save_LIBS="$LIBS" |
21d1c967 | 14047 | LIBS="-ldnet_stub $LIBS" |
8284b0c5 MB |
14048 | cat > conftest.$ac_ext <<EOF |
14049 | #line 14050 "configure" | |
21d1c967 GD |
14050 | #include "confdefs.h" |
14051 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14052 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
14053 | builtin and then its argument prototype would still apply. */ |
14054 | char dnet_ntoa(); | |
14055 | ||
14056 | int main() { | |
14057 | dnet_ntoa() | |
14058 | ; return 0; } | |
14059 | EOF | |
14060 | if { (eval echo configure:14061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14061 | rm -rf conftest* | |
14062 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14063 | else | |
14064 | echo "configure: failed program was:" >&5 | |
14065 | cat conftest.$ac_ext >&5 | |
14066 | rm -rf conftest* | |
14067 | eval "ac_cv_lib_$ac_lib_var=no" | |
14068 | fi | |
14069 | rm -f conftest* | |
14070 | LIBS="$ac_save_LIBS" | |
14071 | ||
14072 | fi | |
14073 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14074 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14075 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
8284b0c5 MB |
14076 | else |
14077 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
14078 | fi |
14079 | ||
21d1c967 | 14080 | fi |
90dd450c | 14081 | |
21d1c967 GD |
14082 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
14083 | # to get the SysV transport functions. | |
8284b0c5 | 14084 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
14085 | # needs -lnsl. |
14086 | # The nsl library prevents programs from opening the X display | |
8284b0c5 MB |
14087 | # on Irix 5.2, according to dickey@clark.net. |
14088 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
14089 | echo "configure:14090: checking for gethostbyname" >&5 | |
14090 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then | |
14091 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14092 | else | |
14093 | cat > conftest.$ac_ext <<EOF | |
14094 | #line 14095 "configure" | |
21d1c967 GD |
14095 | #include "confdefs.h" |
14096 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 14097 | which can conflict with char gethostbyname(); below. */ |
21d1c967 GD |
14098 | #include <assert.h> |
14099 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14100 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
14101 | builtin and then its argument prototype would still apply. */ |
14102 | char gethostbyname(); | |
14103 | ||
14104 | int main() { | |
90dd450c | 14105 | |
21d1c967 GD |
14106 | /* The GNU C library defines this for functions which it implements |
14107 | to always fail with ENOSYS. Some functions are actually named | |
14108 | something starting with __ and the normal name is an alias. */ | |
14109 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
14110 | choke me | |
14111 | #else | |
8284b0c5 | 14112 | gethostbyname(); |
21d1c967 | 14113 | #endif |
90dd450c | 14114 | |
8284b0c5 MB |
14115 | ; return 0; } |
14116 | EOF | |
14117 | if { (eval echo configure:14118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14118 | rm -rf conftest* | |
14119 | eval "ac_cv_func_gethostbyname=yes" | |
14120 | else | |
14121 | echo "configure: failed program was:" >&5 | |
14122 | cat conftest.$ac_ext >&5 | |
14123 | rm -rf conftest* | |
14124 | eval "ac_cv_func_gethostbyname=no" | |
14125 | fi | |
14126 | rm -f conftest* | |
14127 | fi | |
14128 | ||
14129 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
14130 | echo "$ac_t""yes" 1>&6 | |
14131 | : | |
14132 | else | |
14133 | echo "$ac_t""no" 1>&6 | |
14134 | fi | |
90dd450c | 14135 | |
21d1c967 | 14136 | if test $ac_cv_func_gethostbyname = no; then |
8284b0c5 MB |
14137 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
14138 | echo "configure:14139: checking for gethostbyname in -lnsl" >&5 | |
14139 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | |
14140 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14141 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14142 | else |
8284b0c5 | 14143 | ac_save_LIBS="$LIBS" |
21d1c967 | 14144 | LIBS="-lnsl $LIBS" |
8284b0c5 MB |
14145 | cat > conftest.$ac_ext <<EOF |
14146 | #line 14147 "configure" | |
21d1c967 GD |
14147 | #include "confdefs.h" |
14148 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14149 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
14150 | builtin and then its argument prototype would still apply. */ |
14151 | char gethostbyname(); | |
7b4a847f | 14152 | |
8284b0c5 MB |
14153 | int main() { |
14154 | gethostbyname() | |
14155 | ; return 0; } | |
14156 | EOF | |
14157 | if { (eval echo configure:14158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14158 | rm -rf conftest* | |
14159 | eval "ac_cv_lib_$ac_lib_var=yes" | |
52127426 | 14160 | else |
8284b0c5 MB |
14161 | echo "configure: failed program was:" >&5 |
14162 | cat conftest.$ac_ext >&5 | |
14163 | rm -rf conftest* | |
14164 | eval "ac_cv_lib_$ac_lib_var=no" | |
14165 | fi | |
14166 | rm -f conftest* | |
14167 | LIBS="$ac_save_LIBS" | |
5c6fa7d2 | 14168 | |
8284b0c5 MB |
14169 | fi |
14170 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14171 | echo "$ac_t""yes" 1>&6 | |
14172 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
14173 | else | |
14174 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 14175 | fi |
90dd450c | 14176 | |
90dd450c VZ |
14177 | fi |
14178 | ||
21d1c967 GD |
14179 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
14180 | # socket/setsockopt and other routines are undefined under SCO ODT | |
14181 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
8284b0c5 MB |
14182 | # on later versions), says simon@lia.di.epfl.ch: it contains |
14183 | # gethostby* variants that don't use the nameserver (or something). | |
14184 | # -lsocket must be given before -lnsl if both are needed. | |
14185 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
14186 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
14187 | echo "configure:14188: checking for connect" >&5 | |
14188 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then | |
14189 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14190 | else | |
14191 | cat > conftest.$ac_ext <<EOF | |
14192 | #line 14193 "configure" | |
21d1c967 GD |
14193 | #include "confdefs.h" |
14194 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 14195 | which can conflict with char connect(); below. */ |
21d1c967 GD |
14196 | #include <assert.h> |
14197 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14198 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
14199 | builtin and then its argument prototype would still apply. */ |
14200 | char connect(); | |
14201 | ||
14202 | int main() { | |
90dd450c | 14203 | |
21d1c967 GD |
14204 | /* The GNU C library defines this for functions which it implements |
14205 | to always fail with ENOSYS. Some functions are actually named | |
14206 | something starting with __ and the normal name is an alias. */ | |
14207 | #if defined (__stub_connect) || defined (__stub___connect) | |
14208 | choke me | |
14209 | #else | |
8284b0c5 | 14210 | connect(); |
21d1c967 | 14211 | #endif |
90dd450c | 14212 | |
8284b0c5 MB |
14213 | ; return 0; } |
14214 | EOF | |
14215 | if { (eval echo configure:14216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14216 | rm -rf conftest* | |
14217 | eval "ac_cv_func_connect=yes" | |
14218 | else | |
14219 | echo "configure: failed program was:" >&5 | |
14220 | cat conftest.$ac_ext >&5 | |
14221 | rm -rf conftest* | |
14222 | eval "ac_cv_func_connect=no" | |
14223 | fi | |
14224 | rm -f conftest* | |
14225 | fi | |
14226 | ||
14227 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
14228 | echo "$ac_t""yes" 1>&6 | |
14229 | : | |
14230 | else | |
14231 | echo "$ac_t""no" 1>&6 | |
14232 | fi | |
1f8ae82f | 14233 | |
21d1c967 | 14234 | if test $ac_cv_func_connect = no; then |
8284b0c5 MB |
14235 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
14236 | echo "configure:14237: checking for connect in -lsocket" >&5 | |
14237 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` | |
14238 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14239 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0fbb762e | 14240 | else |
8284b0c5 | 14241 | ac_save_LIBS="$LIBS" |
21d1c967 | 14242 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
8284b0c5 MB |
14243 | cat > conftest.$ac_ext <<EOF |
14244 | #line 14245 "configure" | |
0fbb762e | 14245 | #include "confdefs.h" |
21d1c967 GD |
14246 | /* Override any gcc2 internal prototype to avoid an error. */ |
14247 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
14248 | builtin and then its argument prototype would still apply. */ |
14249 | char connect(); | |
14250 | ||
14251 | int main() { | |
14252 | connect() | |
14253 | ; return 0; } | |
14254 | EOF | |
14255 | if { (eval echo configure:14256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14256 | rm -rf conftest* | |
14257 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14258 | else | |
14259 | echo "configure: failed program was:" >&5 | |
14260 | cat conftest.$ac_ext >&5 | |
14261 | rm -rf conftest* | |
14262 | eval "ac_cv_lib_$ac_lib_var=no" | |
14263 | fi | |
14264 | rm -f conftest* | |
14265 | LIBS="$ac_save_LIBS" | |
14266 | ||
14267 | fi | |
14268 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14269 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14270 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
8284b0c5 MB |
14271 | else |
14272 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 14273 | fi |
90dd450c | 14274 | |
21d1c967 | 14275 | fi |
90dd450c | 14276 | |
8284b0c5 MB |
14277 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
14278 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
14279 | echo "configure:14280: checking for remove" >&5 | |
14280 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then | |
14281 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14282 | else |
8284b0c5 MB |
14283 | cat > conftest.$ac_ext <<EOF |
14284 | #line 14285 "configure" | |
21d1c967 GD |
14285 | #include "confdefs.h" |
14286 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 14287 | which can conflict with char remove(); below. */ |
21d1c967 GD |
14288 | #include <assert.h> |
14289 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14290 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
14291 | builtin and then its argument prototype would still apply. */ |
14292 | char remove(); | |
14293 | ||
14294 | int main() { | |
90dd450c | 14295 | |
21d1c967 GD |
14296 | /* The GNU C library defines this for functions which it implements |
14297 | to always fail with ENOSYS. Some functions are actually named | |
14298 | something starting with __ and the normal name is an alias. */ | |
14299 | #if defined (__stub_remove) || defined (__stub___remove) | |
14300 | choke me | |
14301 | #else | |
8284b0c5 | 14302 | remove(); |
21d1c967 | 14303 | #endif |
90dd450c | 14304 | |
8284b0c5 MB |
14305 | ; return 0; } |
14306 | EOF | |
14307 | if { (eval echo configure:14308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14308 | rm -rf conftest* | |
14309 | eval "ac_cv_func_remove=yes" | |
14310 | else | |
14311 | echo "configure: failed program was:" >&5 | |
14312 | cat conftest.$ac_ext >&5 | |
14313 | rm -rf conftest* | |
14314 | eval "ac_cv_func_remove=no" | |
14315 | fi | |
14316 | rm -f conftest* | |
14317 | fi | |
14318 | ||
14319 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
14320 | echo "$ac_t""yes" 1>&6 | |
14321 | : | |
14322 | else | |
14323 | echo "$ac_t""no" 1>&6 | |
14324 | fi | |
90dd450c | 14325 | |
21d1c967 | 14326 | if test $ac_cv_func_remove = no; then |
8284b0c5 MB |
14327 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
14328 | echo "configure:14329: checking for remove in -lposix" >&5 | |
14329 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` | |
14330 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14331 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14332 | else |
8284b0c5 | 14333 | ac_save_LIBS="$LIBS" |
21d1c967 | 14334 | LIBS="-lposix $LIBS" |
8284b0c5 MB |
14335 | cat > conftest.$ac_ext <<EOF |
14336 | #line 14337 "configure" | |
21d1c967 GD |
14337 | #include "confdefs.h" |
14338 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14339 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
14340 | builtin and then its argument prototype would still apply. */ |
14341 | char remove(); | |
14342 | ||
14343 | int main() { | |
14344 | remove() | |
14345 | ; return 0; } | |
14346 | EOF | |
14347 | if { (eval echo configure:14348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14348 | rm -rf conftest* | |
14349 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14350 | else | |
14351 | echo "configure: failed program was:" >&5 | |
14352 | cat conftest.$ac_ext >&5 | |
14353 | rm -rf conftest* | |
14354 | eval "ac_cv_lib_$ac_lib_var=no" | |
14355 | fi | |
14356 | rm -f conftest* | |
14357 | LIBS="$ac_save_LIBS" | |
14358 | ||
14359 | fi | |
14360 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14361 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14362 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
8284b0c5 MB |
14363 | else |
14364 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 14365 | fi |
19bc6aad | 14366 | |
90dd450c | 14367 | fi |
19bc6aad | 14368 | |
21d1c967 | 14369 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
8284b0c5 MB |
14370 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
14371 | echo "configure:14372: checking for shmat" >&5 | |
14372 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then | |
14373 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14374 | else |
8284b0c5 MB |
14375 | cat > conftest.$ac_ext <<EOF |
14376 | #line 14377 "configure" | |
21d1c967 GD |
14377 | #include "confdefs.h" |
14378 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 14379 | which can conflict with char shmat(); below. */ |
21d1c967 GD |
14380 | #include <assert.h> |
14381 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14382 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
14383 | builtin and then its argument prototype would still apply. */ |
14384 | char shmat(); | |
14385 | ||
14386 | int main() { | |
90dd450c | 14387 | |
21d1c967 GD |
14388 | /* The GNU C library defines this for functions which it implements |
14389 | to always fail with ENOSYS. Some functions are actually named | |
14390 | something starting with __ and the normal name is an alias. */ | |
14391 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14392 | choke me | |
14393 | #else | |
8284b0c5 | 14394 | shmat(); |
21d1c967 | 14395 | #endif |
90dd450c | 14396 | |
8284b0c5 MB |
14397 | ; return 0; } |
14398 | EOF | |
14399 | if { (eval echo configure:14400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14400 | rm -rf conftest* | |
14401 | eval "ac_cv_func_shmat=yes" | |
14402 | else | |
14403 | echo "configure: failed program was:" >&5 | |
14404 | cat conftest.$ac_ext >&5 | |
14405 | rm -rf conftest* | |
14406 | eval "ac_cv_func_shmat=no" | |
14407 | fi | |
14408 | rm -f conftest* | |
14409 | fi | |
14410 | ||
14411 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14412 | echo "$ac_t""yes" 1>&6 | |
14413 | : | |
14414 | else | |
14415 | echo "$ac_t""no" 1>&6 | |
14416 | fi | |
19bc6aad | 14417 | |
21d1c967 | 14418 | if test $ac_cv_func_shmat = no; then |
8284b0c5 MB |
14419 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
14420 | echo "configure:14421: checking for shmat in -lipc" >&5 | |
14421 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` | |
14422 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14423 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 | 14424 | else |
8284b0c5 | 14425 | ac_save_LIBS="$LIBS" |
5c6fa7d2 | 14426 | LIBS="-lipc $LIBS" |
8284b0c5 MB |
14427 | cat > conftest.$ac_ext <<EOF |
14428 | #line 14429 "configure" | |
5c6fa7d2 | 14429 | #include "confdefs.h" |
5c6fa7d2 | 14430 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 14431 | /* We use char because int might match the return type of a gcc2 |
8284b0c5 MB |
14432 | builtin and then its argument prototype would still apply. */ |
14433 | char shmat(); | |
14434 | ||
14435 | int main() { | |
14436 | shmat() | |
14437 | ; return 0; } | |
14438 | EOF | |
14439 | if { (eval echo configure:14440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14440 | rm -rf conftest* | |
14441 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14442 | else | |
14443 | echo "configure: failed program was:" >&5 | |
14444 | cat conftest.$ac_ext >&5 | |
14445 | rm -rf conftest* | |
14446 | eval "ac_cv_lib_$ac_lib_var=no" | |
14447 | fi | |
14448 | rm -f conftest* | |
14449 | LIBS="$ac_save_LIBS" | |
14450 | ||
14451 | fi | |
14452 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14453 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14454 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
8284b0c5 MB |
14455 | else |
14456 | echo "$ac_t""no" 1>&6 | |
9f8148b1 | 14457 | fi |
90dd450c | 14458 | |
90dd450c | 14459 | fi |
21d1c967 | 14460 | fi |
10f2d63a | 14461 | |
21d1c967 | 14462 | # Check for libraries that X11R6 Xt/Xaw programs need. |
8284b0c5 | 14463 | ac_save_LDFLAGS="$LDFLAGS" |
21d1c967 GD |
14464 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
14465 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14466 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14467 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14468 | # These have to be linked with before -lX11, unlike the other | |
14469 | # libraries we check for below, so use a different variable. | |
8284b0c5 MB |
14470 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
14471 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
14472 | echo "configure:14473: checking for IceConnectionNumber in -lICE" >&5 | |
14473 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` | |
14474 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14475 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14476 | else | |
14477 | ac_save_LIBS="$LIBS" | |
f09359cf | 14478 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
8284b0c5 MB |
14479 | cat > conftest.$ac_ext <<EOF |
14480 | #line 14481 "configure" | |
29fd3c0c | 14481 | #include "confdefs.h" |
21d1c967 GD |
14482 | /* Override any gcc2 internal prototype to avoid an error. */ |
14483 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
14484 | builtin and then its argument prototype would still apply. */ |
14485 | char IceConnectionNumber(); | |
14486 | ||
14487 | int main() { | |
14488 | IceConnectionNumber() | |
14489 | ; return 0; } | |
14490 | EOF | |
14491 | if { (eval echo configure:14492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14492 | rm -rf conftest* | |
14493 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14494 | else | |
14495 | echo "configure: failed program was:" >&5 | |
14496 | cat conftest.$ac_ext >&5 | |
14497 | rm -rf conftest* | |
14498 | eval "ac_cv_lib_$ac_lib_var=no" | |
14499 | fi | |
14500 | rm -f conftest* | |
14501 | LIBS="$ac_save_LIBS" | |
14502 | ||
14503 | fi | |
14504 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14505 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14506 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
8284b0c5 MB |
14507 | else |
14508 | echo "$ac_t""no" 1>&6 | |
29fd3c0c | 14509 | fi |
21d1c967 | 14510 | |
8284b0c5 | 14511 | LDFLAGS="$ac_save_LDFLAGS" |
29fd3c0c | 14512 | |
10f2d63a VZ |
14513 | fi |
14514 | ||
8284b0c5 | 14515 | |
21d1c967 | 14516 | if test "$no_x" = "yes"; then |
8284b0c5 | 14517 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
21d1c967 GD |
14518 | fi |
14519 | ||
14520 | GUI_TK_LIBRARY="$X_LIBS" | |
14521 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14522 | AFMINSTALL=afminstall | |
14523 | COMPILED_X_PROGRAM=0 | |
14524 | ||
8284b0c5 MB |
14525 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
14526 | echo "configure:14527: checking for Motif/Lesstif headers" >&5 | |
14527 | ||
21d1c967 GD |
14528 | ac_find_includes= |
14529 | for ac_dir in $SEARCH_INCLUDE; | |
14530 | do | |
14531 | if test -f "$ac_dir/Xm/Xm.h"; then | |
14532 | ac_find_includes=$ac_dir | |
14533 | break | |
14534 | fi | |
14535 | done | |
14536 | ||
14537 | if test "$ac_find_includes" != "" ; then | |
8284b0c5 MB |
14538 | echo "$ac_t""found in $ac_find_includes" 1>&6 |
14539 | ||
dd0e4a90 VZ |
14540 | ac_path_to_include=$ac_find_includes |
14541 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
14542 | result=$? | |
14543 | if test $result = 0; then | |
14544 | ac_path_to_include="" | |
14545 | else | |
14546 | ac_path_to_include=" -I$ac_find_includes" | |
14547 | fi | |
14548 | ||
14549 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 14550 | else |
8284b0c5 MB |
14551 | cat > conftest.$ac_ext <<EOF |
14552 | #line 14553 "configure" | |
10f2d63a | 14553 | #include "confdefs.h" |
21d1c967 GD |
14554 | |
14555 | #include <Xm/Xm.h> | |
8284b0c5 MB |
14556 | |
14557 | int main() { | |
21d1c967 GD |
14558 | |
14559 | int version; | |
14560 | version = xmUseVersion; | |
8284b0c5 MB |
14561 | |
14562 | ; return 0; } | |
14563 | EOF | |
14564 | if { (eval echo configure:14565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14565 | rm -rf conftest* | |
14566 | ||
14567 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 14568 | COMPILED_X_PROGRAM=1 |
8284b0c5 | 14569 | |
10f2d63a | 14570 | else |
8284b0c5 MB |
14571 | echo "configure: failed program was:" >&5 |
14572 | cat conftest.$ac_ext >&5 | |
14573 | rm -rf conftest* | |
14574 | ||
14575 | echo "$ac_t""no" 1>&6 | |
14576 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
14577 | ||
14578 | ||
10f2d63a | 14579 | fi |
8284b0c5 | 14580 | rm -f conftest* |
21d1c967 | 14581 | fi |
10f2d63a | 14582 | |
21d1c967 | 14583 | if test "$COMPILED_X_PROGRAM" = 0; then |
8284b0c5 MB |
14584 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 |
14585 | echo "configure:14586: checking for Motif/Lesstif library" >&5 | |
14586 | ||
21d1c967 GD |
14587 | ac_find_libraries= |
14588 | for ac_dir in $SEARCH_LIB; | |
14589 | do | |
14590 | for ac_extension in a so sl dylib; do | |
14591 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
14592 | ac_find_libraries=$ac_dir | |
14593 | break 2 | |
14594 | fi | |
14595 | done | |
14596 | done | |
14597 | ||
14598 | if test "$ac_find_libraries" != "" ; then | |
8284b0c5 | 14599 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14600 | |
8284b0c5 | 14601 | |
21d1c967 GD |
14602 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14603 | result=$? | |
14604 | if test $result = 0; then | |
14605 | ac_path_to_link="" | |
14606 | else | |
14607 | ac_path_to_link=" -L$ac_find_libraries" | |
14608 | fi | |
14609 | ||
21d1c967 | 14610 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 14611 | else |
dd0e4a90 VZ |
14612 | save_CFLAGS=$CFLAGS |
14613 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
14614 | ||
8284b0c5 MB |
14615 | cat > conftest.$ac_ext <<EOF |
14616 | #line 14617 "configure" | |
d836ee96 | 14617 | #include "confdefs.h" |
21d1c967 GD |
14618 | |
14619 | #include <Xm/Xm.h> | |
8284b0c5 MB |
14620 | |
14621 | int main() { | |
21d1c967 GD |
14622 | |
14623 | int version; | |
14624 | version = xmUseVersion; | |
8284b0c5 MB |
14625 | |
14626 | ; return 0; } | |
14627 | EOF | |
14628 | if { (eval echo configure:14629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14629 | rm -rf conftest* | |
14630 | ||
14631 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 14632 | COMPILED_X_PROGRAM=1 |
8284b0c5 | 14633 | |
d836ee96 | 14634 | else |
8284b0c5 MB |
14635 | echo "configure: failed program was:" >&5 |
14636 | cat conftest.$ac_ext >&5 | |
14637 | rm -rf conftest* | |
14638 | ||
14639 | echo "$ac_t""no" 1>&6 | |
14640 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
14641 | ||
14642 | ||
d836ee96 | 14643 | fi |
8284b0c5 | 14644 | rm -f conftest* |
dd0e4a90 VZ |
14645 | |
14646 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
14647 | fi |
14648 | fi | |
14649 | ||
14650 | xpm_link= | |
8284b0c5 MB |
14651 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
14652 | echo "configure:14653: checking for Xpm library" >&5 | |
14653 | ||
21d1c967 GD |
14654 | ac_find_libraries= |
14655 | for ac_dir in $SEARCH_LIB; | |
14656 | do | |
14657 | for ac_extension in a so sl dylib; do | |
14658 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14659 | ac_find_libraries=$ac_dir | |
14660 | break 2 | |
14661 | fi | |
14662 | done | |
14663 | done | |
14664 | ||
14665 | if test "$ac_find_libraries" != "" ; then | |
8284b0c5 | 14666 | |
21d1c967 GD |
14667 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14668 | result=$? | |
14669 | if test $result = 0; then | |
14670 | ac_path_to_link="" | |
14671 | else | |
14672 | ac_path_to_link=" -L$ac_find_libraries" | |
14673 | fi | |
14674 | ||
14675 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 14676 | |
21d1c967 | 14677 | xpm_link=" -lXpm" |
8284b0c5 | 14678 | cat >> confdefs.h <<\EOF |
21d1c967 | 14679 | #define wxHAVE_LIB_XPM 1 |
d836ee96 | 14680 | EOF |
90dd450c | 14681 | |
8284b0c5 | 14682 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14683 | else |
dd0e4a90 VZ |
14684 | save_CFLAGS=$CFLAGS |
14685 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
14686 | ||
8284b0c5 MB |
14687 | cat > conftest.$ac_ext <<EOF |
14688 | #line 14689 "configure" | |
d836ee96 | 14689 | #include "confdefs.h" |
21d1c967 GD |
14690 | |
14691 | #include <X11/xpm.h> | |
8284b0c5 MB |
14692 | |
14693 | int main() { | |
21d1c967 GD |
14694 | |
14695 | int version; | |
14696 | version = XpmLibraryVersion(); | |
8284b0c5 MB |
14697 | |
14698 | ; return 0; } | |
14699 | EOF | |
14700 | if { (eval echo configure:14701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14701 | rm -rf conftest* | |
14702 | ||
21d1c967 | 14703 | xpm_link=" -lXpm" |
8284b0c5 | 14704 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
14705 | #define wxHAVE_LIB_XPM 1 |
14706 | EOF | |
14707 | ||
8284b0c5 | 14708 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 14709 | COMPILED_X_PROGRAM=0 |
8284b0c5 | 14710 | |
d836ee96 | 14711 | else |
8284b0c5 MB |
14712 | echo "configure: failed program was:" >&5 |
14713 | cat conftest.$ac_ext >&5 | |
14714 | rm -rf conftest* | |
14715 | ||
14716 | echo "$ac_t""no" 1>&6 | |
14717 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14718 | ||
14719 | ||
d836ee96 | 14720 | fi |
8284b0c5 | 14721 | rm -f conftest* |
dd0e4a90 VZ |
14722 | |
14723 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
14724 | fi |
14725 | ||
8284b0c5 MB |
14726 | echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6 |
14727 | echo "configure:14728: checking if we need -lXp and/or -lSM -lICE" >&5 | |
6a30f1c8 MB |
14728 | libp_link="" |
14729 | libsm_ice_link="" | |
14730 | libs_found=0 | |
14731 | for libp in "" " -lXp"; do | |
14732 | if test "$libs_found" = "0"; then | |
14733 | for libsm_ice in " -lSM -lICE"; do | |
8284b0c5 | 14734 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
14735 | save_LIBS="$LIBS" |
14736 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
14737 | save_CFLAGS=$CFLAGS |
14738 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
14739 | ||
8284b0c5 MB |
14740 | cat > conftest.$ac_ext <<EOF |
14741 | #line 14742 "configure" | |
6a30f1c8 | 14742 | #include "confdefs.h" |
17234b26 | 14743 | |
6a30f1c8 MB |
14744 | #include <Xm/Xm.h> |
14745 | #include <Xm/List.h> | |
8284b0c5 MB |
14746 | |
14747 | int main() { | |
6a30f1c8 MB |
14748 | |
14749 | XmString string = NULL; | |
14750 | Widget w = NULL; | |
14751 | int position = 0; | |
14752 | XmListAddItem(w, string, position); | |
8284b0c5 MB |
14753 | |
14754 | ; return 0; } | |
14755 | EOF | |
14756 | if { (eval echo configure:14757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14757 | rm -rf conftest* | |
14758 | ||
6a30f1c8 MB |
14759 | libp_link="$libp" |
14760 | libsm_ice_link="$libsm_ice" | |
8284b0c5 | 14761 | echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6 |
6a30f1c8 | 14762 | libs_found=1 |
8284b0c5 | 14763 | |
6a30f1c8 | 14764 | else |
8284b0c5 MB |
14765 | echo "configure: failed program was:" >&5 |
14766 | cat conftest.$ac_ext >&5 | |
14767 | rm -rf conftest* | |
14768 | ||
14769 | ||
6a30f1c8 | 14770 | fi |
8284b0c5 | 14771 | rm -f conftest* |
dd0e4a90 | 14772 | |
6a30f1c8 | 14773 | LIBS="$save_LIBS" |
dd0e4a90 | 14774 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
14775 | fi |
14776 | done | |
14777 | fi | |
14778 | done | |
14779 | ||
14780 | if test "$libs_found" = "0"; then | |
8284b0c5 MB |
14781 | echo "$ac_t""can't find the right libraries" 1>&6 |
14782 | { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; } | |
6a30f1c8 MB |
14783 | fi |
14784 | ||
14785 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
21d1c967 GD |
14786 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
14787 | TOOLKIT=MOTIF | |
14788 | GUIDIST=MOTIF_DIST | |
14789 | fi | |
14790 | ||
14791 | if test "$wxUSE_MAC" = 1; then | |
14792 | if test "$wxUSE_PRECOMP" = "yes"; then | |
14793 | CPPFLAGS="$CPPFLAGS -cpp-precomp" | |
14794 | else | |
14795 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
14796 | fi | |
14797 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" | |
14798 | CFLAGS="$CFLAGS -fpascal-strings" | |
14799 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
14800 | ||
14801 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
14802 | TOOLKIT=MAC | |
14803 | GUIDIST=MACX_DIST | |
14804 | fi | |
14805 | ||
14806 | if test "$wxUSE_PM" = 1; then | |
14807 | TOOLKIT=PM | |
14808 | GUIDIST=GTK_DIST | |
14809 | fi | |
14810 | ||
14811 | if test "$TOOLKIT" = "PM" ; then | |
14812 | TOOLKIT_DIR="os2" | |
14813 | else | |
14814 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
14815 | fi | |
14816 | ||
14817 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
14818 | ||
14819 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
14820 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
14821 | ||
14822 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
14823 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
14824 | ||
14825 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
14826 | if test "$wxUSE_X11" = 1; then | |
14827 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
14828 | else | |
14829 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
14830 | fi | |
14831 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
14832 | WIDGET_SET=univ | |
14833 | else | |
14834 | ALL_OBJECTS="\$(GUIOBJS)" | |
14835 | ALL_SOURCES="\$(ALL_SOURCES)" | |
14836 | ALL_HEADERS="\$(ALL_HEADERS)" | |
14837 | fi | |
14838 | ||
14839 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
14840 | ||
14841 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
14842 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
14843 | fi | |
14844 | ||
14845 | if test "$wxUSE_HTML" = "yes"; then | |
14846 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
14847 | fi | |
14848 | ||
14849 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
14850 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
14851 | fi | |
14852 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
14853 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
14854 | fi | |
14855 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
14856 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
14857 | fi | |
14858 | ||
14859 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
14860 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 14861 | else |
21d1c967 GD |
14862 | USE_GUI=0 |
14863 | ||
14864 | TOOLKIT_DIR="base" | |
14865 | ||
14866 | if test "$USE_WIN32" = 1 ; then | |
14867 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
14868 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
14869 | ||
14870 | TOOLKIT="MSW" | |
14871 | else | |
14872 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
14873 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
14874 | fi | |
14875 | ||
14876 | ALL_SOURCES="\$(ALL_SOURCES)" | |
14877 | ALL_HEADERS="\$(ALL_HEADERS)" | |
14878 | ||
14879 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
14880 | ||
14881 | GUIDIST="BASE_DIST" | |
14882 | DISTDIR="wxBase" | |
d836ee96 VZ |
14883 | fi |
14884 | ||
8284b0c5 | 14885 | |
21d1c967 GD |
14886 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
14887 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
6232543b | 14888 | fi |
21d1c967 GD |
14889 | |
14890 | if test "$wxUSE_REGEX" = "builtin" ; then | |
14891 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 14892 | fi |
21d1c967 GD |
14893 | if test "$wxUSE_ZLIB" = "builtin" ; then |
14894 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
14895 | fi |
14896 | ||
8284b0c5 | 14897 | |
21d1c967 GD |
14898 | if test "$wxUSE_OPENGL" = "yes"; then |
14899 | if test "$wxUSE_MAC" = 1; then | |
14900 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
14901 | elif test "$wxUSE_MSW" = 1; then | |
14902 | OPENGL_LIBS="-lopengl32 -lglu32" | |
14903 | else | |
8284b0c5 MB |
14904 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
14905 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
14906 | echo "configure:14907: checking for GL/gl.h" >&5 | |
14907 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
14908 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14909 | else | |
14910 | cat > conftest.$ac_ext <<EOF | |
14911 | #line 14912 "configure" | |
10f2d63a | 14912 | #include "confdefs.h" |
21d1c967 | 14913 | #include <GL/gl.h> |
8284b0c5 MB |
14914 | EOF |
14915 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
14916 | { (eval echo configure:14917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
14917 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
14918 | if test -z "$ac_err"; then | |
14919 | rm -rf conftest* | |
14920 | eval "ac_cv_header_$ac_safe=yes" | |
328a083c | 14921 | else |
8284b0c5 MB |
14922 | echo "$ac_err" >&5 |
14923 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 14924 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
14925 | rm -rf conftest* |
14926 | eval "ac_cv_header_$ac_safe=no" | |
703e0a69 | 14927 | fi |
8284b0c5 | 14928 | rm -f conftest* |
698dcdb6 | 14929 | fi |
8284b0c5 MB |
14930 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14931 | echo "$ac_t""yes" 1>&6 | |
14932 | ||
14933 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
14934 | echo "configure:14935: checking for -lGL" >&5 | |
14935 | ||
21d1c967 GD |
14936 | ac_find_libraries= |
14937 | for ac_dir in $SEARCH_LIB; | |
14938 | do | |
14939 | for ac_extension in a so sl dylib; do | |
14940 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
14941 | ac_find_libraries=$ac_dir | |
14942 | break 2 | |
14943 | fi | |
14944 | done | |
14945 | done | |
14946 | ||
14947 | if test "$ac_find_libraries" != "" ; then | |
8284b0c5 | 14948 | |
21d1c967 GD |
14949 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
14950 | result=$? | |
14951 | if test $result = 0; then | |
14952 | ac_path_to_link="" | |
14953 | else | |
14954 | ac_path_to_link=" -L$ac_find_libraries" | |
14955 | fi | |
14956 | ||
14957 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
14958 | LDFLAGS_GL="$LDFLAGS" | |
14959 | else | |
14960 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
14961 | fi | |
14962 | OPENGL_LIBS="-lGL -lGLU" | |
8284b0c5 | 14963 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 14964 | else |
8284b0c5 MB |
14965 | echo "$ac_t""no" 1>&6 |
14966 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
14967 | echo "configure:14968: checking for -lMesaGL" >&5 | |
14968 | ||
21d1c967 GD |
14969 | ac_find_libraries= |
14970 | for ac_dir in $SEARCH_LIB; | |
14971 | do | |
14972 | for ac_extension in a so sl dylib; do | |
14973 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
14974 | ac_find_libraries=$ac_dir | |
14975 | break 2 | |
14976 | fi | |
14977 | done | |
14978 | done | |
14979 | ||
14980 | if test "$ac_find_libraries" != "" ; then | |
8284b0c5 | 14981 | |
21d1c967 GD |
14982 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
14983 | result=$? | |
14984 | if test $result = 0; then | |
14985 | ac_path_to_link="" | |
14986 | else | |
14987 | ac_path_to_link=" -L$ac_find_libraries" | |
14988 | fi | |
14989 | ||
14990 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
14991 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
8284b0c5 | 14992 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 14993 | else |
8284b0c5 | 14994 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
14995 | fi |
14996 | fi | |
8284b0c5 MB |
14997 | |
14998 | else | |
14999 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 15000 | fi |
52127426 | 15001 | |
8284b0c5 | 15002 | |
21d1c967 | 15003 | if test "x$OPENGL_LIBS" = "x"; then |
8284b0c5 | 15004 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } |
21d1c967 GD |
15005 | fi |
15006 | fi | |
90dd450c | 15007 | |
21d1c967 | 15008 | if test "$wxUSE_OPENGL" = "yes"; then |
8284b0c5 | 15009 | cat >> confdefs.h <<\EOF |
21d1c967 | 15010 | #define wxUSE_OPENGL 1 |
698dcdb6 | 15011 | EOF |
21d1c967 | 15012 | |
8284b0c5 | 15013 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
15014 | #define wxUSE_GLCANVAS 1 |
15015 | EOF | |
15016 | ||
15017 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
15018 | fi | |
10f2d63a | 15019 | fi |
21d1c967 GD |
15020 | |
15021 | if test -z "$TOOLKIT_VPATH" ; then | |
15022 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 15023 | fi |
21d1c967 GD |
15024 | |
15025 | if test -n "$TOOLKIT" ; then | |
15026 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
15027 | fi | |
15028 | ||
15029 | lib_unicode_suffix= | |
15030 | if test "$wxUSE_UNICODE" = "yes"; then | |
15031 | lib_unicode_suffix=u | |
90dd450c | 15032 | fi |
698dcdb6 | 15033 | |
21d1c967 GD |
15034 | lib_debug_suffix= |
15035 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
15036 | lib_debug_suffix=d | |
15037 | fi | |
698dcdb6 | 15038 | |
21d1c967 GD |
15039 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
15040 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
15041 | ||
15042 | if test "$cross_compiling" = "yes"; then | |
15043 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
15044 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
15045 | fi | |
15046 | ||
15047 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
15048 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
15049 | ||
15050 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
15051 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
15052 | ||
15053 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
15054 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15055 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
15056 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15057 | ||
15058 | case "${host}" in | |
15059 | *-*-cygwin* | *-*-mingw32* ) | |
15060 | ||
8284b0c5 MB |
15061 | |
15062 | ||
17234b26 | 15063 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
15064 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
15065 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
15066 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
15067 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15068 | else | |
15069 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15070 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15071 | fi | |
15072 | ;; | |
15073 | ||
15074 | *-*-darwin* ) | |
15075 | if test "$wxUSE_MAC" = 1; then | |
3bd8fb5f | 15076 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r" |
21d1c967 GD |
15077 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc" |
15078 | fi | |
15079 | ;; | |
15080 | esac | |
15081 | ||
15082 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
15083 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
15084 | ||
15085 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
15086 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
15087 | ||
15088 | if test "$wxUSE_OPENGL" = "yes"; then | |
15089 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
15090 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
15091 | fi | |
15092 | ||
8284b0c5 MB |
15093 | |
15094 | ||
21d1c967 GD |
15095 | if test "$wxUSE_SHARED" = "yes"; then |
15096 | case "${host}" in | |
15097 | *-pc-os2_emx | *-pc-os2-emx | \ | |
15098 | *-pc-msdosdjgpp ) | |
15099 | wxUSE_SHARED=no | |
8284b0c5 | 15100 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 |
21d1c967 GD |
15101 | ;; |
15102 | esac | |
15103 | fi | |
15104 | ||
15105 | if test "$wxUSE_SHARED" = "yes"; then | |
15106 | ||
15107 | if test "$wxUSE_OPENGL" = "yes"; then | |
15108 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
15109 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
15110 | else | |
15111 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
15112 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
15113 | fi | |
15114 | ||
15115 | if test "$GCC" = "yes"; then | |
15116 | PIC_FLAG="-fPIC" | |
15117 | fi | |
15118 | ||
15119 | SHARED_LD="${CXX} -shared -o" | |
15120 | ||
15121 | case "${host}" in | |
15122 | *-hp-hpux* ) | |
15123 | if test "$GCC" == "yes"; then | |
15124 | SHARED_LD="${SHARED_LD} ${PIC_FLAG}" | |
15125 | else | |
15126 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
15127 | ||
15128 | SHARED_LD="${CXX} -b -o" | |
15129 | PIC_FLAG="+Z" | |
15130 | fi | |
15131 | ||
15132 | if test "$wxUSE_OPENGL" = "yes"; then | |
15133 | WX_ALL_INSTALLED="preinstall_gl" | |
15134 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
15135 | else | |
15136 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
15137 | fi | |
15138 | ;; | |
15139 | ||
15140 | *-*-linux* ) | |
15141 | if test "$GCC" != "yes"; then | |
8284b0c5 MB |
15142 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 |
15143 | echo "configure:15144: checking for Intel compiler" >&5 | |
15144 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then | |
15145 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15146 | else | |
15147 | ||
15148 | cat > conftest.$ac_ext <<EOF | |
15149 | #line 15150 "configure" | |
698dcdb6 | 15150 | #include "confdefs.h" |
90dd450c | 15151 | |
8284b0c5 | 15152 | int main() { |
90dd450c | 15153 | |
21d1c967 GD |
15154 | #ifndef __INTEL_COMPILER |
15155 | #error Not icc | |
15156 | #endif | |
8284b0c5 MB |
15157 | |
15158 | ; return 0; } | |
15159 | EOF | |
15160 | if { (eval echo configure:15161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15161 | rm -rf conftest* | |
21d1c967 | 15162 | wx_cv_prog_icc=yes |
6232543b | 15163 | else |
8284b0c5 MB |
15164 | echo "configure: failed program was:" >&5 |
15165 | cat conftest.$ac_ext >&5 | |
15166 | rm -rf conftest* | |
15167 | wx_cv_prog_icc=no | |
15168 | ||
7b4a847f | 15169 | fi |
8284b0c5 MB |
15170 | rm -f conftest* |
15171 | ||
5c6fa7d2 | 15172 | fi |
8284b0c5 MB |
15173 | |
15174 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
21d1c967 GD |
15175 | if test "$wx_cv_prog_icc" = "yes"; then |
15176 | PIC_FLAG="-KPIC" | |
15177 | fi | |
15178 | fi | |
15179 | ||
15180 | if test "$wxUSE_SONAME" = "yes" ; then | |
15181 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
15182 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
15183 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
15184 | fi | |
15185 | ;; | |
15186 | ||
15187 | *-*-solaris2* ) | |
15188 | if test "$GCC" = yes ; then | |
15189 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
15190 | else | |
15191 | SHARED_LD="${CXX} -G -o" | |
15192 | PIC_FLAG="-KPIC" | |
15193 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
15194 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
15195 | fi | |
15196 | ;; | |
15197 | ||
15198 | *-*-darwin* ) | |
15199 | CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL" | |
15200 | CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL" | |
15201 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" | |
15202 | PIC_FLAG="-dynamic -fPIC" | |
15203 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}" | |
15204 | SONAME_FLAGS_GL=${SONAME_FLAGS} | |
15205 | ;; | |
15206 | ||
15207 | *-*-aix* ) | |
321d2b14 VZ |
15208 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. |
15209 | set dummy makeC++SharedLib; ac_word=$2 | |
8284b0c5 MB |
15210 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
15211 | echo "configure:15212: checking for $ac_word" >&5 | |
15212 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then | |
15213 | echo $ac_n "(cached) $ac_c" 1>&6 | |
321d2b14 VZ |
15214 | else |
15215 | if test -n "$AIX_CXX_LD"; then | |
15216 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
15217 | else | |
8284b0c5 MB |
15218 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15219 | ac_dummy="$PATH" | |
15220 | for ac_dir in $ac_dummy; do | |
15221 | test -z "$ac_dir" && ac_dir=. | |
15222 | if test -f $ac_dir/$ac_word; then | |
15223 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
15224 | break | |
15225 | fi | |
15226 | done | |
15227 | IFS="$ac_save_ifs" | |
321d2b14 VZ |
15228 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
15229 | fi | |
15230 | fi | |
8284b0c5 | 15231 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" |
321d2b14 | 15232 | if test -n "$AIX_CXX_LD"; then |
8284b0c5 | 15233 | echo "$ac_t""$AIX_CXX_LD" 1>&6 |
321d2b14 | 15234 | else |
8284b0c5 | 15235 | echo "$ac_t""no" 1>&6 |
321d2b14 VZ |
15236 | fi |
15237 | ||
8284b0c5 | 15238 | |
321d2b14 | 15239 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" |
21d1c967 GD |
15240 | ;; |
15241 | ||
15242 | *-*-cygwin* | *-*-mingw32* ) | |
15243 | ||
15244 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" | |
15245 | ||
15246 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
15247 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
15248 | ||
15249 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
15250 | ||
15251 | if test "$wxUSE_OPENGL" = "yes"; then | |
15252 | WX_ALL_INSTALLED="preinstall_gl" | |
15253 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
15254 | else | |
15255 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
15256 | fi | |
15257 | ;; | |
15258 | ||
15259 | *-*-beos* ) | |
15260 | SHARED_LD="${LD} -shared -o" | |
15261 | ;; | |
15262 | ||
15263 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
15264 | *-*-sunos4* | \ | |
15265 | *-*-irix5* | *-*-irix6* | \ | |
15266 | *-*-osf* | \ | |
15267 | *-*-dgux5* | \ | |
15268 | *-*-sysv5* ) | |
15269 | ;; | |
15270 | ||
15271 | *) | |
8284b0c5 | 15272 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
21d1c967 GD |
15273 | esac |
15274 | ||
15275 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
15276 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
15277 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
15278 | fi | |
15279 | ||
15280 | WX_TARGET_LIBRARY_TYPE="so" | |
15281 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 15282 | fi |
10f2d63a | 15283 | |
21d1c967 GD |
15284 | if test "$wxUSE_SHARED" = "no"; then |
15285 | ||
15286 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
15287 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
15288 | fi | |
15289 | ||
15290 | if test "$wxUSE_MAC" = 1; then | |
15291 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
15292 | fi | |
15293 | ||
15294 | if test "$wxUSE_OPENGL" = "yes"; then | |
15295 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
15296 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
15297 | else | |
15298 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
15299 | fi | |
15300 | ||
15301 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
15302 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
15303 | ||
15304 | WX_TARGET_LIBRARY_TYPE="a" | |
15305 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
90dd450c | 15306 | fi |
1e487827 | 15307 | |
21d1c967 GD |
15308 | if test "$wxUSE_MAC" = 1; then |
15309 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
15310 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
15311 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
15312 | # Extract the first word of "Rez", so it can be a program name with args. | |
15313 | set dummy Rez; ac_word=$2 | |
8284b0c5 MB |
15314 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
15315 | echo "configure:15316: checking for $ac_word" >&5 | |
15316 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then | |
15317 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b93d0d08 | 15318 | else |
21d1c967 GD |
15319 | if test -n "$RESCOMP"; then |
15320 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 15321 | else |
8284b0c5 MB |
15322 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15323 | ac_dummy="$PATH" | |
15324 | for ac_dir in $ac_dummy; do | |
15325 | test -z "$ac_dir" && ac_dir=. | |
15326 | if test -f $ac_dir/$ac_word; then | |
15327 | ac_cv_prog_RESCOMP="Rez" | |
15328 | break | |
15329 | fi | |
15330 | done | |
15331 | IFS="$ac_save_ifs" | |
21d1c967 | 15332 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 15333 | fi |
b93d0d08 | 15334 | fi |
8284b0c5 | 15335 | RESCOMP="$ac_cv_prog_RESCOMP" |
21d1c967 | 15336 | if test -n "$RESCOMP"; then |
8284b0c5 | 15337 | echo "$ac_t""$RESCOMP" 1>&6 |
90dd450c | 15338 | else |
8284b0c5 | 15339 | echo "$ac_t""no" 1>&6 |
90dd450c | 15340 | fi |
b93d0d08 | 15341 | |
21d1c967 GD |
15342 | # Extract the first word of "DeRez", so it can be a program name with args. |
15343 | set dummy DeRez; ac_word=$2 | |
8284b0c5 MB |
15344 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
15345 | echo "configure:15346: checking for $ac_word" >&5 | |
15346 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then | |
15347 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3a922bb4 | 15348 | else |
21d1c967 GD |
15349 | if test -n "$DEREZ"; then |
15350 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 15351 | else |
8284b0c5 MB |
15352 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15353 | ac_dummy="$PATH" | |
15354 | for ac_dir in $ac_dummy; do | |
15355 | test -z "$ac_dir" && ac_dir=. | |
15356 | if test -f $ac_dir/$ac_word; then | |
15357 | ac_cv_prog_DEREZ="DeRez" | |
15358 | break | |
15359 | fi | |
15360 | done | |
15361 | IFS="$ac_save_ifs" | |
21d1c967 | 15362 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 15363 | fi |
90dd450c | 15364 | fi |
8284b0c5 | 15365 | DEREZ="$ac_cv_prog_DEREZ" |
21d1c967 | 15366 | if test -n "$DEREZ"; then |
8284b0c5 | 15367 | echo "$ac_t""$DEREZ" 1>&6 |
90dd450c | 15368 | else |
8284b0c5 | 15369 | echo "$ac_t""no" 1>&6 |
3a922bb4 | 15370 | fi |
698dcdb6 | 15371 | |
21d1c967 GD |
15372 | MACOSX_BUNDLE="bundle" |
15373 | if test "$wxUSE_SHARED" = "yes"; then | |
15374 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)" | |
15375 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o" | |
15376 | else | |
15377 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
15378 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
15379 | fi | |
15380 | else | |
15381 | if test "$wxUSE_PM" = 1; then | |
15382 | LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)" | |
90dd450c | 15383 | fi |
4f14bcd8 | 15384 | fi |
10f2d63a | 15385 | |
8284b0c5 MB |
15386 | |
15387 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
15388 | echo "configure:15389: checking for ANSI C header files" >&5 | |
15389 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | |
15390 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15391 | else |
8284b0c5 MB |
15392 | cat > conftest.$ac_ext <<EOF |
15393 | #line 15394 "configure" | |
52127426 | 15394 | #include "confdefs.h" |
8284b0c5 MB |
15395 | #include <stdlib.h> |
15396 | #include <stdarg.h> | |
15397 | #include <string.h> | |
15398 | #include <float.h> | |
15399 | EOF | |
15400 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
15401 | { (eval echo configure:15402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
15402 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
15403 | if test -z "$ac_err"; then | |
15404 | rm -rf conftest* | |
15405 | ac_cv_header_stdc=yes | |
15406 | else | |
15407 | echo "$ac_err" >&5 | |
15408 | echo "configure: failed program was:" >&5 | |
15409 | cat conftest.$ac_ext >&5 | |
15410 | rm -rf conftest* | |
15411 | ac_cv_header_stdc=no | |
15412 | fi | |
15413 | rm -f conftest* | |
15414 | ||
15415 | if test $ac_cv_header_stdc = yes; then | |
15416 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15417 | cat > conftest.$ac_ext <<EOF | |
15418 | #line 15419 "configure" | |
15419 | #include "confdefs.h" | |
15420 | #include <string.h> | |
15421 | EOF | |
15422 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15423 | egrep "memchr" >/dev/null 2>&1; then | |
15424 | : | |
579d8138 | 15425 | else |
8284b0c5 MB |
15426 | rm -rf conftest* |
15427 | ac_cv_header_stdc=no | |
52127426 | 15428 | fi |
8284b0c5 MB |
15429 | rm -f conftest* |
15430 | ||
52127426 | 15431 | fi |
8284b0c5 MB |
15432 | |
15433 | if test $ac_cv_header_stdc = yes; then | |
15434 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15435 | cat > conftest.$ac_ext <<EOF | |
15436 | #line 15437 "configure" | |
15437 | #include "confdefs.h" | |
15438 | #include <stdlib.h> | |
15439 | EOF | |
15440 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15441 | egrep "free" >/dev/null 2>&1; then | |
52127426 JS |
15442 | : |
15443 | else | |
8284b0c5 MB |
15444 | rm -rf conftest* |
15445 | ac_cv_header_stdc=no | |
15446 | fi | |
15447 | rm -f conftest* | |
52127426 | 15448 | |
8284b0c5 MB |
15449 | fi |
15450 | ||
15451 | if test $ac_cv_header_stdc = yes; then | |
15452 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15453 | if test "$cross_compiling" = yes; then | |
15454 | : | |
15455 | else | |
15456 | cat > conftest.$ac_ext <<EOF | |
15457 | #line 15458 "configure" | |
15458 | #include "confdefs.h" | |
15459 | #include <ctype.h> | |
15460 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15461 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15462 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15463 | int main () { int i; for (i = 0; i < 256; i++) | |
15464 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
15465 | exit (0); } | |
15466 | ||
15467 | EOF | |
15468 | if { (eval echo configure:15469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
15469 | then | |
15470 | : | |
15471 | else | |
15472 | echo "configure: failed program was:" >&5 | |
15473 | cat conftest.$ac_ext >&5 | |
15474 | rm -fr conftest* | |
15475 | ac_cv_header_stdc=no | |
15476 | fi | |
15477 | rm -fr conftest* | |
15478 | fi | |
15479 | ||
15480 | fi | |
15481 | fi | |
15482 | ||
15483 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
15484 | if test $ac_cv_header_stdc = yes; then | |
15485 | cat >> confdefs.h <<\EOF | |
15486 | #define STDC_HEADERS 1 | |
52127426 JS |
15487 | EOF |
15488 | ||
15489 | fi | |
15490 | ||
8284b0c5 MB |
15491 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
15492 | echo "configure:15493: checking for mode_t" >&5 | |
15493 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then | |
15494 | echo $ac_n "(cached) $ac_c" 1>&6 | |
52127426 | 15495 | else |
8284b0c5 MB |
15496 | cat > conftest.$ac_ext <<EOF |
15497 | #line 15498 "configure" | |
52127426 | 15498 | #include "confdefs.h" |
8284b0c5 MB |
15499 | #include <sys/types.h> |
15500 | #if STDC_HEADERS | |
15501 | #include <stdlib.h> | |
15502 | #include <stddef.h> | |
15503 | #endif | |
15504 | EOF | |
15505 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15506 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15507 | rm -rf conftest* | |
15508 | ac_cv_type_mode_t=yes | |
7b4a847f | 15509 | else |
8284b0c5 MB |
15510 | rm -rf conftest* |
15511 | ac_cv_type_mode_t=no | |
52127426 | 15512 | fi |
8284b0c5 MB |
15513 | rm -f conftest* |
15514 | ||
52127426 | 15515 | fi |
8284b0c5 MB |
15516 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
15517 | if test $ac_cv_type_mode_t = no; then | |
15518 | cat >> confdefs.h <<\EOF | |
15519 | #define mode_t int | |
15520 | EOF | |
15521 | ||
15522 | fi | |
15523 | ||
15524 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
15525 | echo "configure:15526: checking for off_t" >&5 | |
15526 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then | |
15527 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15528 | else | |
15529 | cat > conftest.$ac_ext <<EOF | |
15530 | #line 15531 "configure" | |
15531 | #include "confdefs.h" | |
15532 | #include <sys/types.h> | |
15533 | #if STDC_HEADERS | |
15534 | #include <stdlib.h> | |
15535 | #include <stddef.h> | |
15536 | #endif | |
15537 | EOF | |
15538 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15539 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15540 | rm -rf conftest* | |
15541 | ac_cv_type_off_t=yes | |
5c6fa7d2 | 15542 | else |
8284b0c5 MB |
15543 | rm -rf conftest* |
15544 | ac_cv_type_off_t=no | |
15545 | fi | |
15546 | rm -f conftest* | |
5c6fa7d2 | 15547 | |
8284b0c5 MB |
15548 | fi |
15549 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
15550 | if test $ac_cv_type_off_t = no; then | |
15551 | cat >> confdefs.h <<\EOF | |
90dd450c | 15552 | #define off_t long |
10f2d63a VZ |
15553 | EOF |
15554 | ||
90dd450c | 15555 | fi |
10f2d63a | 15556 | |
8284b0c5 MB |
15557 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
15558 | echo "configure:15559: checking for pid_t" >&5 | |
15559 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | |
15560 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 15561 | else |
8284b0c5 MB |
15562 | cat > conftest.$ac_ext <<EOF |
15563 | #line 15564 "configure" | |
10f2d63a | 15564 | #include "confdefs.h" |
8284b0c5 MB |
15565 | #include <sys/types.h> |
15566 | #if STDC_HEADERS | |
15567 | #include <stdlib.h> | |
15568 | #include <stddef.h> | |
15569 | #endif | |
15570 | EOF | |
15571 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15572 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15573 | rm -rf conftest* | |
90dd450c | 15574 | ac_cv_type_pid_t=yes |
698dcdb6 | 15575 | else |
8284b0c5 MB |
15576 | rm -rf conftest* |
15577 | ac_cv_type_pid_t=no | |
579d8138 | 15578 | fi |
8284b0c5 | 15579 | rm -f conftest* |
5c6fa7d2 | 15580 | |
8284b0c5 MB |
15581 | fi |
15582 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
15583 | if test $ac_cv_type_pid_t = no; then | |
15584 | cat >> confdefs.h <<\EOF | |
90dd450c | 15585 | #define pid_t int |
10f2d63a VZ |
15586 | EOF |
15587 | ||
7b4a847f RR |
15588 | fi |
15589 | ||
8284b0c5 MB |
15590 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
15591 | echo "configure:15592: checking for size_t" >&5 | |
15592 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | |
15593 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 15594 | else |
8284b0c5 MB |
15595 | cat > conftest.$ac_ext <<EOF |
15596 | #line 15597 "configure" | |
7b4a847f | 15597 | #include "confdefs.h" |
8284b0c5 MB |
15598 | #include <sys/types.h> |
15599 | #if STDC_HEADERS | |
15600 | #include <stdlib.h> | |
15601 | #include <stddef.h> | |
15602 | #endif | |
15603 | EOF | |
15604 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15605 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15606 | rm -rf conftest* | |
90dd450c | 15607 | ac_cv_type_size_t=yes |
18dbb1f6 | 15608 | else |
8284b0c5 MB |
15609 | rm -rf conftest* |
15610 | ac_cv_type_size_t=no | |
52127426 | 15611 | fi |
8284b0c5 | 15612 | rm -f conftest* |
5c6fa7d2 | 15613 | |
8284b0c5 MB |
15614 | fi |
15615 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
15616 | if test $ac_cv_type_size_t = no; then | |
15617 | cat >> confdefs.h <<\EOF | |
90dd450c VZ |
15618 | #define size_t unsigned |
15619 | EOF | |
15620 | ||
15621 | fi | |
15622 | ||
8284b0c5 MB |
15623 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
15624 | echo "configure:15625: checking for uid_t in sys/types.h" >&5 | |
15625 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then | |
15626 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a | 15627 | else |
8284b0c5 MB |
15628 | cat > conftest.$ac_ext <<EOF |
15629 | #line 15630 "configure" | |
b3e8d00a | 15630 | #include "confdefs.h" |
90dd450c | 15631 | #include <sys/types.h> |
8284b0c5 | 15632 | EOF |
90dd450c VZ |
15633 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15634 | egrep "uid_t" >/dev/null 2>&1; then | |
8284b0c5 | 15635 | rm -rf conftest* |
90dd450c | 15636 | ac_cv_type_uid_t=yes |
b3e8d00a | 15637 | else |
8284b0c5 | 15638 | rm -rf conftest* |
90dd450c | 15639 | ac_cv_type_uid_t=no |
b3e8d00a | 15640 | fi |
90dd450c | 15641 | rm -f conftest* |
b3e8d00a | 15642 | |
4f14bcd8 | 15643 | fi |
5c6fa7d2 | 15644 | |
8284b0c5 MB |
15645 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
15646 | if test $ac_cv_type_uid_t = no; then | |
15647 | cat >> confdefs.h <<\EOF | |
90dd450c VZ |
15648 | #define uid_t int |
15649 | EOF | |
15650 | ||
8284b0c5 | 15651 | cat >> confdefs.h <<\EOF |
90dd450c | 15652 | #define gid_t int |
b3e8d00a | 15653 | EOF |
4f14bcd8 | 15654 | |
b3e8d00a | 15655 | fi |
b3e8d00a | 15656 | |
8284b0c5 MB |
15657 | |
15658 | ||
15659 | ac_ext=C | |
15660 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 15661 | ac_cpp='$CXXCPP $CPPFLAGS' |
8284b0c5 MB |
15662 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15663 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15664 | cross_compiling=$ac_cv_prog_cxx_cross | |
90dd450c | 15665 | |
8284b0c5 MB |
15666 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
15667 | echo "configure:15668: checking if size_t is unsigned int" >&5 | |
15668 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then | |
15669 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 15670 | else |
8284b0c5 MB |
15671 | cat > conftest.$ac_ext <<EOF |
15672 | #line 15673 "configure" | |
10f2d63a | 15673 | #include "confdefs.h" |
90dd450c | 15674 | #include <stddef.h> |
8284b0c5 | 15675 | int main() { |
90dd450c VZ |
15676 | |
15677 | return 0; } | |
15678 | ||
15679 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
15680 | ||
15681 | int bar() { | |
8284b0c5 MB |
15682 | |
15683 | ; return 0; } | |
15684 | EOF | |
15685 | if { (eval echo configure:15686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15686 | rm -rf conftest* | |
90dd450c | 15687 | wx_cv_size_t_is_uint=no |
698dcdb6 | 15688 | else |
8284b0c5 MB |
15689 | echo "configure: failed program was:" >&5 |
15690 | cat conftest.$ac_ext >&5 | |
15691 | rm -rf conftest* | |
15692 | wx_cv_size_t_is_uint=yes | |
15693 | ||
7b4a847f | 15694 | fi |
8284b0c5 | 15695 | rm -f conftest* |
52127426 | 15696 | |
5c6fa7d2 | 15697 | fi |
8284b0c5 MB |
15698 | |
15699 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
4f14bcd8 | 15700 | |
90dd450c | 15701 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
8284b0c5 | 15702 | cat >> confdefs.h <<\EOF |
90dd450c | 15703 | #define wxSIZE_T_IS_UINT 1 |
698dcdb6 VZ |
15704 | EOF |
15705 | ||
90dd450c | 15706 | else |
8284b0c5 MB |
15707 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 |
15708 | echo "configure:15709: checking if size_t is unsigned long" >&5 | |
15709 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then | |
15710 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 15711 | else |
8284b0c5 MB |
15712 | cat > conftest.$ac_ext <<EOF |
15713 | #line 15714 "configure" | |
10f2d63a | 15714 | #include "confdefs.h" |
90dd450c | 15715 | #include <stddef.h> |
8284b0c5 | 15716 | int main() { |
90dd450c VZ |
15717 | |
15718 | return 0; } | |
15719 | ||
15720 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
15721 | ||
15722 | int bar() { | |
8284b0c5 MB |
15723 | |
15724 | ; return 0; } | |
15725 | EOF | |
15726 | if { (eval echo configure:15727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15727 | rm -rf conftest* | |
90dd450c | 15728 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 15729 | else |
8284b0c5 MB |
15730 | echo "configure: failed program was:" >&5 |
15731 | cat conftest.$ac_ext >&5 | |
15732 | rm -rf conftest* | |
15733 | wx_cv_size_t_is_ulong=yes | |
15734 | ||
7b4a847f | 15735 | fi |
8284b0c5 MB |
15736 | rm -f conftest* |
15737 | ||
5c6fa7d2 | 15738 | fi |
8284b0c5 MB |
15739 | |
15740 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
10f2d63a | 15741 | |
90dd450c | 15742 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
8284b0c5 | 15743 | cat >> confdefs.h <<\EOF |
90dd450c | 15744 | #define wxSIZE_T_IS_ULONG 1 |
4f14bcd8 GD |
15745 | EOF |
15746 | ||
15747 | fi | |
90dd450c | 15748 | fi |
1e487827 | 15749 | |
90dd450c | 15750 | ac_ext=c |
8284b0c5 | 15751 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 15752 | ac_cpp='$CPP $CPPFLAGS' |
8284b0c5 MB |
15753 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15754 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15755 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 15756 | |
5c6fa7d2 | 15757 | |
8284b0c5 MB |
15758 | |
15759 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 | |
15760 | echo "configure:15761: checking for pw_gecos in struct passwd" >&5 | |
15761 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then | |
15762 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15763 | else | |
15764 | ||
15765 | cat > conftest.$ac_ext <<EOF | |
15766 | #line 15767 "configure" | |
4f14bcd8 | 15767 | #include "confdefs.h" |
90dd450c | 15768 | #include <pwd.h> |
8284b0c5 | 15769 | int main() { |
f6bcfd97 | 15770 | |
90dd450c VZ |
15771 | char *p; |
15772 | struct passwd *pw; | |
15773 | p = pw->pw_gecos; | |
8284b0c5 MB |
15774 | |
15775 | ; return 0; } | |
15776 | EOF | |
15777 | if { (eval echo configure:15778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15778 | rm -rf conftest* | |
15779 | ||
90dd450c | 15780 | wx_cv_struct_pw_gecos=yes |
8284b0c5 | 15781 | |
10f2d63a | 15782 | else |
8284b0c5 MB |
15783 | echo "configure: failed program was:" >&5 |
15784 | cat conftest.$ac_ext >&5 | |
15785 | rm -rf conftest* | |
15786 | ||
90dd450c | 15787 | wx_cv_struct_pw_gecos=no |
8284b0c5 MB |
15788 | |
15789 | ||
7b4a847f | 15790 | fi |
8284b0c5 MB |
15791 | rm -f conftest* |
15792 | ||
52127426 | 15793 | |
5c6fa7d2 | 15794 | fi |
8284b0c5 MB |
15795 | |
15796 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
c521c494 | 15797 | |
90dd450c | 15798 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
8284b0c5 | 15799 | cat >> confdefs.h <<\EOF |
90dd450c | 15800 | #define HAVE_PW_GECOS 1 |
4f14bcd8 | 15801 | EOF |
c521c494 | 15802 | |
90dd450c | 15803 | fi |
4f14bcd8 | 15804 | |
8284b0c5 | 15805 | |
d29b553b | 15806 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
8284b0c5 | 15807 | cat >> confdefs.h <<\EOF |
d74f4b5a VZ |
15808 | #define wxUSE_WCHAR_T 1 |
15809 | EOF | |
15810 | ||
8284b0c5 | 15811 | |
d74f4b5a VZ |
15812 | WCSLEN_FOUND=0 |
15813 | WCHAR_LINK= | |
8284b0c5 | 15814 | for ac_func in wcslen |
7a30264c | 15815 | do |
8284b0c5 MB |
15816 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
15817 | echo "configure:15818: checking for $ac_func" >&5 | |
15818 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
15819 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15820 | else | |
15821 | cat > conftest.$ac_ext <<EOF | |
15822 | #line 15823 "configure" | |
4f14bcd8 | 15823 | #include "confdefs.h" |
7a30264c | 15824 | /* System header to define __stub macros and hopefully few prototypes, |
8284b0c5 | 15825 | which can conflict with char $ac_func(); below. */ |
7a30264c | 15826 | #include <assert.h> |
4f14bcd8 GD |
15827 | /* Override any gcc2 internal prototype to avoid an error. */ |
15828 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
15829 | builtin and then its argument prototype would still apply. */ |
15830 | char $ac_func(); | |
15831 | ||
15832 | int main() { | |
7a30264c VZ |
15833 | |
15834 | /* The GNU C library defines this for functions which it implements | |
15835 | to always fail with ENOSYS. Some functions are actually named | |
15836 | something starting with __ and the normal name is an alias. */ | |
15837 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15838 | choke me | |
15839 | #else | |
8284b0c5 | 15840 | $ac_func(); |
7a30264c VZ |
15841 | #endif |
15842 | ||
8284b0c5 MB |
15843 | ; return 0; } |
15844 | EOF | |
15845 | if { (eval echo configure:15846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15846 | rm -rf conftest* | |
15847 | eval "ac_cv_func_$ac_func=yes" | |
15848 | else | |
15849 | echo "configure: failed program was:" >&5 | |
15850 | cat conftest.$ac_ext >&5 | |
15851 | rm -rf conftest* | |
15852 | eval "ac_cv_func_$ac_func=no" | |
15853 | fi | |
15854 | rm -f conftest* | |
15855 | fi | |
15856 | ||
15857 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15858 | echo "$ac_t""yes" 1>&6 | |
15859 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15860 | cat >> confdefs.h <<EOF | |
15861 | #define $ac_tr_func 1 | |
52127426 | 15862 | EOF |
d74f4b5a | 15863 | WCSLEN_FOUND=1 |
8284b0c5 MB |
15864 | else |
15865 | echo "$ac_t""no" 1>&6 | |
7a30264c VZ |
15866 | fi |
15867 | done | |
9d8deca0 | 15868 | |
8284b0c5 | 15869 | |
d74f4b5a | 15870 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 15871 | if test "$TOOLKIT" = "MSW"; then |
8284b0c5 MB |
15872 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
15873 | echo "configure:15874: checking for wcslen in -lmsvcrt" >&5 | |
15874 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` | |
15875 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15876 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15877 | else |
8284b0c5 | 15878 | ac_save_LIBS="$LIBS" |
7a30264c | 15879 | LIBS="-lmsvcrt $LIBS" |
8284b0c5 MB |
15880 | cat > conftest.$ac_ext <<EOF |
15881 | #line 15882 "configure" | |
10f2d63a | 15882 | #include "confdefs.h" |
4f14bcd8 GD |
15883 | /* Override any gcc2 internal prototype to avoid an error. */ |
15884 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
15885 | builtin and then its argument prototype would still apply. */ |
15886 | char wcslen(); | |
15887 | ||
15888 | int main() { | |
15889 | wcslen() | |
15890 | ; return 0; } | |
15891 | EOF | |
15892 | if { (eval echo configure:15893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15893 | rm -rf conftest* | |
15894 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15895 | else | |
15896 | echo "configure: failed program was:" >&5 | |
15897 | cat conftest.$ac_ext >&5 | |
15898 | rm -rf conftest* | |
15899 | eval "ac_cv_lib_$ac_lib_var=no" | |
15900 | fi | |
15901 | rm -f conftest* | |
15902 | LIBS="$ac_save_LIBS" | |
15903 | ||
15904 | fi | |
15905 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15906 | echo "$ac_t""yes" 1>&6 | |
d74f4b5a | 15907 | WCHAR_OK=1 |
8284b0c5 MB |
15908 | else |
15909 | echo "$ac_t""no" 1>&6 | |
d29b553b | 15910 | fi |
698dcdb6 | 15911 | |
7a30264c | 15912 | else |
8284b0c5 MB |
15913 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
15914 | echo "configure:15915: checking for wcslen in -lw" >&5 | |
15915 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` | |
15916 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15917 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 15918 | else |
8284b0c5 | 15919 | ac_save_LIBS="$LIBS" |
7a30264c | 15920 | LIBS="-lw $LIBS" |
8284b0c5 MB |
15921 | cat > conftest.$ac_ext <<EOF |
15922 | #line 15923 "configure" | |
95c8801c | 15923 | #include "confdefs.h" |
4f14bcd8 GD |
15924 | /* Override any gcc2 internal prototype to avoid an error. */ |
15925 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
15926 | builtin and then its argument prototype would still apply. */ |
15927 | char wcslen(); | |
15928 | ||
15929 | int main() { | |
15930 | wcslen() | |
15931 | ; return 0; } | |
15932 | EOF | |
15933 | if { (eval echo configure:15934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15934 | rm -rf conftest* | |
15935 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15936 | else | |
15937 | echo "configure: failed program was:" >&5 | |
15938 | cat conftest.$ac_ext >&5 | |
15939 | rm -rf conftest* | |
15940 | eval "ac_cv_lib_$ac_lib_var=no" | |
15941 | fi | |
15942 | rm -f conftest* | |
15943 | LIBS="$ac_save_LIBS" | |
52127426 | 15944 | |
8284b0c5 MB |
15945 | fi |
15946 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15947 | echo "$ac_t""yes" 1>&6 | |
15948 | ||
7a30264c | 15949 | WCHAR_LINK=" -lw" |
d74f4b5a | 15950 | WCSLEN_FOUND=1 |
8284b0c5 MB |
15951 | |
15952 | else | |
15953 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 15954 | fi |
10f2d63a | 15955 | |
7a30264c | 15956 | fi |
d29b553b | 15957 | fi |
95c8801c | 15958 | |
d74f4b5a | 15959 | if test "$WCSLEN_FOUND" = 1; then |
8284b0c5 | 15960 | cat >> confdefs.h <<\EOF |
d74f4b5a | 15961 | #define HAVE_WCSLEN 1 |
d29b553b | 15962 | EOF |
10f2d63a | 15963 | |
d74f4b5a | 15964 | fi |
52127426 | 15965 | |
8284b0c5 | 15966 | for ac_func in wcsrtombs |
eb4efbdc | 15967 | do |
8284b0c5 MB |
15968 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
15969 | echo "configure:15970: checking for $ac_func" >&5 | |
15970 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
15971 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15972 | else | |
15973 | cat > conftest.$ac_ext <<EOF | |
15974 | #line 15975 "configure" | |
eb4efbdc VZ |
15975 | #include "confdefs.h" |
15976 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 15977 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
15978 | #include <assert.h> |
15979 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15980 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
15981 | builtin and then its argument prototype would still apply. */ |
15982 | char $ac_func(); | |
15983 | ||
15984 | int main() { | |
eb4efbdc VZ |
15985 | |
15986 | /* The GNU C library defines this for functions which it implements | |
15987 | to always fail with ENOSYS. Some functions are actually named | |
15988 | something starting with __ and the normal name is an alias. */ | |
15989 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15990 | choke me | |
15991 | #else | |
8284b0c5 | 15992 | $ac_func(); |
eb4efbdc VZ |
15993 | #endif |
15994 | ||
8284b0c5 | 15995 | ; return 0; } |
eb4efbdc | 15996 | EOF |
8284b0c5 MB |
15997 | if { (eval echo configure:15998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
15998 | rm -rf conftest* | |
15999 | eval "ac_cv_func_$ac_func=yes" | |
16000 | else | |
16001 | echo "configure: failed program was:" >&5 | |
16002 | cat conftest.$ac_ext >&5 | |
16003 | rm -rf conftest* | |
16004 | eval "ac_cv_func_$ac_func=no" | |
16005 | fi | |
16006 | rm -f conftest* | |
16007 | fi | |
eb4efbdc | 16008 | |
8284b0c5 MB |
16009 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16010 | echo "$ac_t""yes" 1>&6 | |
16011 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16012 | cat >> confdefs.h <<EOF | |
16013 | #define $ac_tr_func 1 | |
16014 | EOF | |
16015 | ||
16016 | else | |
16017 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
16018 | fi |
16019 | done | |
16020 | ||
d29b553b | 16021 | else |
8284b0c5 | 16022 | echo "configure: warning: Wide character support is unavailable" 1>&2 |
d29b553b | 16023 | fi |
698dcdb6 | 16024 | |
8284b0c5 MB |
16025 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
16026 | echo "configure:16027: checking for vprintf" >&5 | |
16027 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then | |
16028 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16029 | else | |
16030 | cat > conftest.$ac_ext <<EOF | |
16031 | #line 16032 "configure" | |
f6bcfd97 | 16032 | #include "confdefs.h" |
4f14bcd8 | 16033 | /* System header to define __stub macros and hopefully few prototypes, |
8284b0c5 | 16034 | which can conflict with char vprintf(); below. */ |
4f14bcd8 GD |
16035 | #include <assert.h> |
16036 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16037 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
16038 | builtin and then its argument prototype would still apply. */ |
16039 | char vprintf(); | |
16040 | ||
16041 | int main() { | |
f6bcfd97 | 16042 | |
4f14bcd8 GD |
16043 | /* The GNU C library defines this for functions which it implements |
16044 | to always fail with ENOSYS. Some functions are actually named | |
16045 | something starting with __ and the normal name is an alias. */ | |
8284b0c5 | 16046 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
4f14bcd8 GD |
16047 | choke me |
16048 | #else | |
8284b0c5 | 16049 | vprintf(); |
4f14bcd8 | 16050 | #endif |
f6bcfd97 | 16051 | |
8284b0c5 MB |
16052 | ; return 0; } |
16053 | EOF | |
16054 | if { (eval echo configure:16055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16055 | rm -rf conftest* | |
16056 | eval "ac_cv_func_vprintf=yes" | |
16057 | else | |
16058 | echo "configure: failed program was:" >&5 | |
16059 | cat conftest.$ac_ext >&5 | |
16060 | rm -rf conftest* | |
16061 | eval "ac_cv_func_vprintf=no" | |
16062 | fi | |
16063 | rm -f conftest* | |
16064 | fi | |
16065 | ||
16066 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
16067 | echo "$ac_t""yes" 1>&6 | |
16068 | cat >> confdefs.h <<\EOF | |
16069 | #define HAVE_VPRINTF 1 | |
16070 | EOF | |
16071 | ||
16072 | else | |
16073 | echo "$ac_t""no" 1>&6 | |
16074 | fi | |
16075 | ||
16076 | if test "$ac_cv_func_vprintf" != yes; then | |
16077 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
16078 | echo "configure:16079: checking for _doprnt" >&5 | |
16079 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then | |
16080 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16081 | else | |
16082 | cat > conftest.$ac_ext <<EOF | |
16083 | #line 16084 "configure" | |
10f2d63a VZ |
16084 | #include "confdefs.h" |
16085 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 16086 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
16087 | #include <assert.h> |
16088 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16089 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
16090 | builtin and then its argument prototype would still apply. */ |
16091 | char _doprnt(); | |
16092 | ||
16093 | int main() { | |
10f2d63a VZ |
16094 | |
16095 | /* The GNU C library defines this for functions which it implements | |
16096 | to always fail with ENOSYS. Some functions are actually named | |
16097 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 16098 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
16099 | choke me |
16100 | #else | |
8284b0c5 | 16101 | _doprnt(); |
10f2d63a VZ |
16102 | #endif |
16103 | ||
8284b0c5 MB |
16104 | ; return 0; } |
16105 | EOF | |
16106 | if { (eval echo configure:16107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16107 | rm -rf conftest* | |
16108 | eval "ac_cv_func__doprnt=yes" | |
16109 | else | |
16110 | echo "configure: failed program was:" >&5 | |
16111 | cat conftest.$ac_ext >&5 | |
16112 | rm -rf conftest* | |
16113 | eval "ac_cv_func__doprnt=no" | |
16114 | fi | |
16115 | rm -f conftest* | |
16116 | fi | |
16117 | ||
16118 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
16119 | echo "$ac_t""yes" 1>&6 | |
16120 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 16121 | #define HAVE_DOPRNT 1 |
698dcdb6 | 16122 | EOF |
4f14bcd8 | 16123 | |
8284b0c5 MB |
16124 | else |
16125 | echo "$ac_t""no" 1>&6 | |
270a909e | 16126 | fi |
270a909e | 16127 | |
4f14bcd8 | 16128 | fi |
1e487827 | 16129 | |
5c6fa7d2 | 16130 | |
8284b0c5 MB |
16131 | |
16132 | ||
16133 | ||
16134 | ||
16135 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 | |
16136 | echo "configure:16137: checking for vsnprintf" >&5 | |
16137 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then | |
16138 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16139 | else | |
16140 | ||
16141 | cat > conftest.$ac_ext <<EOF | |
16142 | #line 16143 "configure" | |
c63c7106 | 16143 | #include "confdefs.h" |
698dcdb6 | 16144 | |
4f14bcd8 GD |
16145 | #include <stdio.h> |
16146 | #include <stdarg.h> | |
8284b0c5 MB |
16147 | |
16148 | int main() { | |
af15babd | 16149 | |
4f14bcd8 GD |
16150 | int wx_test_vsnprintf(const char *, ...); |
16151 | ||
16152 | wx_test_vsnprintf("%s"); | |
16153 | return 0; | |
16154 | } | |
16155 | ||
16156 | int wx_test_vsnprintf(const char *fmt, ...) | |
16157 | { | |
16158 | char *s; | |
16159 | ||
16160 | va_list argp; | |
16161 | va_start(argp, fmt); | |
16162 | vsnprintf(s, 42, fmt, argp); | |
16163 | va_end(argp); | |
8284b0c5 MB |
16164 | |
16165 | ; return 0; } | |
16166 | EOF | |
16167 | if { (eval echo configure:16168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16168 | rm -rf conftest* | |
16169 | ||
4f14bcd8 | 16170 | wx_cv_func_vsnprintf=yes |
8284b0c5 | 16171 | |
af15babd | 16172 | else |
8284b0c5 MB |
16173 | echo "configure: failed program was:" >&5 |
16174 | cat conftest.$ac_ext >&5 | |
16175 | rm -rf conftest* | |
16176 | ||
16177 | cat > conftest.$ac_ext <<EOF | |
16178 | #line 16179 "configure" | |
af15babd | 16179 | #include "confdefs.h" |
af15babd | 16180 | |
4f14bcd8 GD |
16181 | #include <stdio.h> |
16182 | #include <stdarg.h> | |
8284b0c5 MB |
16183 | |
16184 | int main() { | |
af15babd | 16185 | |
4f14bcd8 GD |
16186 | int wx_test_vsnprintf(const char *, ...); |
16187 | ||
16188 | wx_test_vsnprintf("%s"); | |
16189 | return 0; | |
16190 | } | |
16191 | ||
16192 | int wx_test_vsnprintf(const char *fmt, ...) | |
16193 | { | |
16194 | char *s; | |
af15babd | 16195 | |
4f14bcd8 GD |
16196 | va_list argp; |
16197 | va_start(argp, fmt); | |
16198 | _vsnprintf(s, 42, fmt, argp); | |
16199 | va_end(argp); | |
8284b0c5 MB |
16200 | |
16201 | ; return 0; } | |
16202 | EOF | |
16203 | if { (eval echo configure:16204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16204 | rm -rf conftest* | |
16205 | ||
4f14bcd8 | 16206 | wx_cv_func_vsnprintf=yes |
8284b0c5 | 16207 | |
af15babd | 16208 | else |
8284b0c5 MB |
16209 | echo "configure: failed program was:" >&5 |
16210 | cat conftest.$ac_ext >&5 | |
16211 | rm -rf conftest* | |
16212 | ||
4f14bcd8 | 16213 | wx_cv_func_vsnprintf=no |
8284b0c5 | 16214 | |
328a083c | 16215 | fi |
8284b0c5 MB |
16216 | rm -f conftest* |
16217 | ||
7b4a847f | 16218 | fi |
8284b0c5 | 16219 | rm -f conftest* |
52127426 | 16220 | |
5c6fa7d2 | 16221 | fi |
8284b0c5 MB |
16222 | |
16223 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 | |
af15babd | 16224 | |
4f14bcd8 | 16225 | if test "$wx_cv_func_vsnprintf" = yes; then |
8284b0c5 | 16226 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
16227 | #define HAVE_VSNPRINTF 1 |
16228 | EOF | |
16229 | ||
16230 | else | |
8284b0c5 | 16231 | echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2 |
af15babd VZ |
16232 | fi |
16233 | ||
8284b0c5 MB |
16234 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
16235 | echo "configure:16236: checking for vsscanf" >&5 | |
16236 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then | |
16237 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 16238 | else |
8284b0c5 MB |
16239 | |
16240 | cat > conftest.$ac_ext <<EOF | |
16241 | #line 16242 "configure" | |
af15babd | 16242 | #include "confdefs.h" |
af15babd | 16243 | |
4f14bcd8 GD |
16244 | #include <stdio.h> |
16245 | #include <stdarg.h> | |
8284b0c5 MB |
16246 | |
16247 | int main() { | |
af15babd | 16248 | |
4f14bcd8 GD |
16249 | int wx_test_vsscanf(const char *, ...); |
16250 | ||
16251 | wx_test_vsscanf("%d"); | |
16252 | return 0; | |
16253 | } | |
af15babd | 16254 | |
4f14bcd8 GD |
16255 | int wx_test_vsscanf(const char *fmt, ...) |
16256 | { | |
16257 | va_list argp; | |
16258 | va_start(argp, fmt); | |
16259 | vsscanf("42", fmt, argp); | |
16260 | va_end(argp); | |
8284b0c5 MB |
16261 | |
16262 | ; return 0; } | |
16263 | EOF | |
16264 | if { (eval echo configure:16265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16265 | rm -rf conftest* | |
16266 | ||
4f14bcd8 | 16267 | wx_cv_func_vsscanf=yes |
8284b0c5 | 16268 | |
af15babd | 16269 | else |
8284b0c5 MB |
16270 | echo "configure: failed program was:" >&5 |
16271 | cat conftest.$ac_ext >&5 | |
16272 | rm -rf conftest* | |
16273 | ||
4f14bcd8 | 16274 | wx_cv_func_vsscanf=no |
8284b0c5 | 16275 | |
7b4a847f | 16276 | fi |
8284b0c5 | 16277 | rm -f conftest* |
52127426 | 16278 | |
5c6fa7d2 | 16279 | fi |
8284b0c5 MB |
16280 | |
16281 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
4f14bcd8 GD |
16282 | |
16283 | if test "$wx_cv_func_vsscanf" = yes; then | |
8284b0c5 | 16284 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 16285 | #define HAVE_VSSCANF 1 |
af15babd | 16286 | EOF |
4f14bcd8 | 16287 | |
af15babd | 16288 | fi |
af15babd | 16289 | |
d74f4b5a | 16290 | if test "$wxUSE_UNICODE" = yes; then |
8284b0c5 | 16291 | for ac_func in fputwc wprintf vswprintf |
d74f4b5a | 16292 | do |
8284b0c5 MB |
16293 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
16294 | echo "configure:16295: checking for $ac_func" >&5 | |
16295 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16296 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16297 | else | |
16298 | cat > conftest.$ac_ext <<EOF | |
16299 | #line 16300 "configure" | |
d74f4b5a VZ |
16300 | #include "confdefs.h" |
16301 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 16302 | which can conflict with char $ac_func(); below. */ |
d74f4b5a VZ |
16303 | #include <assert.h> |
16304 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16305 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
16306 | builtin and then its argument prototype would still apply. */ |
16307 | char $ac_func(); | |
16308 | ||
16309 | int main() { | |
d74f4b5a VZ |
16310 | |
16311 | /* The GNU C library defines this for functions which it implements | |
16312 | to always fail with ENOSYS. Some functions are actually named | |
16313 | something starting with __ and the normal name is an alias. */ | |
16314 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16315 | choke me | |
16316 | #else | |
8284b0c5 | 16317 | $ac_func(); |
d74f4b5a VZ |
16318 | #endif |
16319 | ||
8284b0c5 | 16320 | ; return 0; } |
d74f4b5a | 16321 | EOF |
8284b0c5 MB |
16322 | if { (eval echo configure:16323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16323 | rm -rf conftest* | |
16324 | eval "ac_cv_func_$ac_func=yes" | |
16325 | else | |
16326 | echo "configure: failed program was:" >&5 | |
16327 | cat conftest.$ac_ext >&5 | |
16328 | rm -rf conftest* | |
16329 | eval "ac_cv_func_$ac_func=no" | |
16330 | fi | |
16331 | rm -f conftest* | |
16332 | fi | |
d74f4b5a | 16333 | |
8284b0c5 MB |
16334 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16335 | echo "$ac_t""yes" 1>&6 | |
16336 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16337 | cat >> confdefs.h <<EOF | |
16338 | #define $ac_tr_func 1 | |
16339 | EOF | |
16340 | ||
16341 | else | |
16342 | echo "$ac_t""no" 1>&6 | |
d74f4b5a VZ |
16343 | fi |
16344 | done | |
16345 | ||
16346 | fi | |
16347 | ||
4f14bcd8 | 16348 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 16349 | |
8284b0c5 MB |
16350 | |
16351 | ||
16352 | ac_ext=C | |
16353 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 16354 | ac_cpp='$CXXCPP $CPPFLAGS' |
8284b0c5 MB |
16355 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16356 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16357 | cross_compiling=$ac_cv_prog_cxx_cross | |
16358 | ||
52127426 | 16359 | |
8284b0c5 MB |
16360 | |
16361 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
16362 | if test "${with_libiconv_prefix+set}" = set; then |
16363 | withval="$with_libiconv_prefix" | |
8284b0c5 | 16364 | |
b040e242 VS |
16365 | for dir in `echo "$withval" | tr : ' '`; do |
16366 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
16367 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
16368 | done | |
8284b0c5 MB |
16369 | |
16370 | fi | |
b040e242 VS |
16371 | |
16372 | ||
8284b0c5 MB |
16373 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
16374 | echo "configure:16375: checking for iconv" >&5 | |
16375 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then | |
16376 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 16377 | else |
8284b0c5 | 16378 | |
b040e242 VS |
16379 | am_cv_func_iconv="no, consider installing GNU libiconv" |
16380 | am_cv_lib_iconv=no | |
8284b0c5 MB |
16381 | cat > conftest.$ac_ext <<EOF |
16382 | #line 16383 "configure" | |
af15babd | 16383 | #include "confdefs.h" |
b040e242 | 16384 | #include <stdlib.h> |
4f14bcd8 | 16385 | #include <iconv.h> |
8284b0c5 | 16386 | int main() { |
b040e242 VS |
16387 | iconv_t cd = iconv_open("",""); |
16388 | iconv(cd,NULL,NULL,NULL,NULL); | |
16389 | iconv_close(cd); | |
8284b0c5 MB |
16390 | ; return 0; } |
16391 | EOF | |
16392 | if { (eval echo configure:16393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16393 | rm -rf conftest* | |
b040e242 | 16394 | am_cv_func_iconv=yes |
af15babd | 16395 | else |
8284b0c5 MB |
16396 | echo "configure: failed program was:" >&5 |
16397 | cat conftest.$ac_ext >&5 | |
b040e242 | 16398 | fi |
8284b0c5 | 16399 | rm -f conftest* |
b040e242 VS |
16400 | if test "$am_cv_func_iconv" != yes; then |
16401 | am_save_LIBS="$LIBS" | |
16402 | LIBS="$LIBS -liconv" | |
8284b0c5 MB |
16403 | cat > conftest.$ac_ext <<EOF |
16404 | #line 16405 "configure" | |
b040e242 VS |
16405 | #include "confdefs.h" |
16406 | #include <stdlib.h> | |
16407 | #include <iconv.h> | |
8284b0c5 | 16408 | int main() { |
b040e242 VS |
16409 | iconv_t cd = iconv_open("",""); |
16410 | iconv(cd,NULL,NULL,NULL,NULL); | |
16411 | iconv_close(cd); | |
8284b0c5 MB |
16412 | ; return 0; } |
16413 | EOF | |
16414 | if { (eval echo configure:16415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16415 | rm -rf conftest* | |
b040e242 VS |
16416 | am_cv_lib_iconv=yes |
16417 | am_cv_func_iconv=yes | |
16418 | else | |
8284b0c5 MB |
16419 | echo "configure: failed program was:" >&5 |
16420 | cat conftest.$ac_ext >&5 | |
af15babd | 16421 | fi |
8284b0c5 | 16422 | rm -f conftest* |
b040e242 VS |
16423 | LIBS="$am_save_LIBS" |
16424 | fi | |
8284b0c5 | 16425 | |
5c6fa7d2 | 16426 | fi |
5c6fa7d2 | 16427 | |
8284b0c5 MB |
16428 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
16429 | if test "$am_cv_func_iconv" = yes; then | |
16430 | cat >> confdefs.h <<\EOF | |
b040e242 VS |
16431 | #define HAVE_ICONV 1 |
16432 | EOF | |
16433 | ||
8284b0c5 MB |
16434 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
16435 | echo "configure:16436: checking if iconv needs const" >&5 | |
16436 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then | |
16437 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b040e242 | 16438 | else |
8284b0c5 MB |
16439 | cat > conftest.$ac_ext <<EOF |
16440 | #line 16441 "configure" | |
b040e242 VS |
16441 | #include "confdefs.h" |
16442 | ||
16443 | #include <stdlib.h> | |
16444 | #include <iconv.h> | |
16445 | extern | |
16446 | #ifdef __cplusplus | |
16447 | "C" | |
16448 | #endif | |
16449 | #if defined(__STDC__) || defined(__cplusplus) | |
16450 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
16451 | #else | |
16452 | size_t iconv(); | |
16453 | #endif | |
8284b0c5 MB |
16454 | |
16455 | int main() { | |
af15babd | 16456 | |
8284b0c5 MB |
16457 | ; return 0; } |
16458 | EOF | |
16459 | if { (eval echo configure:16460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16460 | rm -rf conftest* | |
b7043674 | 16461 | wx_cv_func_iconv_const="no" |
b040e242 | 16462 | else |
8284b0c5 MB |
16463 | echo "configure: failed program was:" >&5 |
16464 | cat conftest.$ac_ext >&5 | |
16465 | rm -rf conftest* | |
16466 | wx_cv_func_iconv_const="yes" | |
16467 | ||
7b4a847f | 16468 | fi |
8284b0c5 MB |
16469 | rm -f conftest* |
16470 | ||
5c6fa7d2 | 16471 | fi |
8284b0c5 MB |
16472 | |
16473 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 | |
b7043674 VZ |
16474 | |
16475 | iconv_const= | |
1c405bb5 | 16476 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
16477 | iconv_const="const" |
16478 | fi | |
16479 | ||
8284b0c5 | 16480 | cat >> confdefs.h <<EOF |
f09359cf | 16481 | #define ICONV_CONST $iconv_const |
b040e242 VS |
16482 | EOF |
16483 | ||
16484 | fi | |
16485 | LIBICONV= | |
16486 | if test "$am_cv_lib_iconv" = yes; then | |
16487 | LIBICONV="-liconv" | |
16488 | fi | |
8284b0c5 | 16489 | |
b040e242 VS |
16490 | |
16491 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 16492 | ac_ext=c |
8284b0c5 | 16493 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 16494 | ac_cpp='$CPP $CPPFLAGS' |
8284b0c5 MB |
16495 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16496 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16497 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 16498 | |
5c6fa7d2 | 16499 | |
8284b0c5 MB |
16500 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
16501 | for ac_func in sigaction | |
af15babd | 16502 | do |
8284b0c5 MB |
16503 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
16504 | echo "configure:16505: checking for $ac_func" >&5 | |
16505 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16506 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16507 | else | |
16508 | cat > conftest.$ac_ext <<EOF | |
16509 | #line 16510 "configure" | |
af15babd VZ |
16510 | #include "confdefs.h" |
16511 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 16512 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16513 | #include <assert.h> |
16514 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16515 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
16516 | builtin and then its argument prototype would still apply. */ |
16517 | char $ac_func(); | |
16518 | ||
16519 | int main() { | |
af15babd VZ |
16520 | |
16521 | /* The GNU C library defines this for functions which it implements | |
16522 | to always fail with ENOSYS. Some functions are actually named | |
16523 | something starting with __ and the normal name is an alias. */ | |
16524 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16525 | choke me | |
16526 | #else | |
8284b0c5 | 16527 | $ac_func(); |
af15babd VZ |
16528 | #endif |
16529 | ||
8284b0c5 | 16530 | ; return 0; } |
579d8138 | 16531 | EOF |
8284b0c5 MB |
16532 | if { (eval echo configure:16533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16533 | rm -rf conftest* | |
16534 | eval "ac_cv_func_$ac_func=yes" | |
16535 | else | |
16536 | echo "configure: failed program was:" >&5 | |
16537 | cat conftest.$ac_ext >&5 | |
16538 | rm -rf conftest* | |
16539 | eval "ac_cv_func_$ac_func=no" | |
16540 | fi | |
16541 | rm -f conftest* | |
16542 | fi | |
7b4a847f | 16543 | |
8284b0c5 MB |
16544 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16545 | echo "$ac_t""yes" 1>&6 | |
16546 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16547 | cat >> confdefs.h <<EOF | |
16548 | #define $ac_tr_func 1 | |
16549 | EOF | |
16550 | ||
16551 | else | |
16552 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16553 | fi |
16554 | done | |
16555 | ||
8284b0c5 | 16556 | |
4f14bcd8 | 16557 | if test "$ac_cv_func_sigaction" = "no"; then |
8284b0c5 | 16558 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
4f14bcd8 GD |
16559 | wxUSE_ON_FATAL_EXCEPTION=no |
16560 | fi | |
16561 | ||
16562 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
8284b0c5 MB |
16563 | |
16564 | ac_ext=C | |
16565 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 16566 | ac_cpp='$CXXCPP $CPPFLAGS' |
8284b0c5 MB |
16567 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16568 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16569 | cross_compiling=$ac_cv_prog_cxx_cross | |
7b4a847f | 16570 | |
5c6fa7d2 | 16571 | |
8284b0c5 MB |
16572 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
16573 | echo "configure:16574: checking for sa_handler type" >&5 | |
16574 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then | |
16575 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16576 | else | |
16577 | ||
16578 | cat > conftest.$ac_ext <<EOF | |
16579 | #line 16580 "configure" | |
af15babd | 16580 | #include "confdefs.h" |
4f14bcd8 | 16581 | #include <signal.h> |
8284b0c5 | 16582 | int main() { |
4f14bcd8 GD |
16583 | |
16584 | extern void testSigHandler(int); | |
16585 | ||
16586 | struct sigaction sa; | |
16587 | sa.sa_handler = testSigHandler; | |
8284b0c5 MB |
16588 | |
16589 | ; return 0; } | |
16590 | EOF | |
16591 | if { (eval echo configure:16592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16592 | rm -rf conftest* | |
16593 | ||
4f14bcd8 | 16594 | wx_cv_type_sa_handler=int |
8284b0c5 | 16595 | |
af15babd | 16596 | else |
8284b0c5 MB |
16597 | echo "configure: failed program was:" >&5 |
16598 | cat conftest.$ac_ext >&5 | |
16599 | rm -rf conftest* | |
16600 | ||
4f14bcd8 | 16601 | wx_cv_type_sa_handler=void |
8284b0c5 | 16602 | |
7b4a847f | 16603 | fi |
8284b0c5 MB |
16604 | rm -f conftest* |
16605 | ||
5c6fa7d2 | 16606 | fi |
8284b0c5 MB |
16607 | |
16608 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
4f14bcd8 GD |
16609 | |
16610 | ac_ext=c | |
8284b0c5 | 16611 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 16612 | ac_cpp='$CPP $CPPFLAGS' |
8284b0c5 MB |
16613 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16614 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16615 | cross_compiling=$ac_cv_prog_cc_cross | |
579d8138 | 16616 | |
8284b0c5 MB |
16617 | |
16618 | cat >> confdefs.h <<EOF | |
4f14bcd8 | 16619 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
af15babd VZ |
16620 | EOF |
16621 | ||
4f14bcd8 GD |
16622 | fi |
16623 | fi | |
af15babd | 16624 | |
4f14bcd8 | 16625 | for ac_func in vfork |
af15babd | 16626 | do |
8284b0c5 MB |
16627 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
16628 | echo "configure:16629: checking for $ac_func" >&5 | |
16629 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16630 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16631 | else | |
16632 | cat > conftest.$ac_ext <<EOF | |
16633 | #line 16634 "configure" | |
af15babd VZ |
16634 | #include "confdefs.h" |
16635 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 16636 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16637 | #include <assert.h> |
16638 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16639 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
16640 | builtin and then its argument prototype would still apply. */ |
16641 | char $ac_func(); | |
16642 | ||
16643 | int main() { | |
af15babd VZ |
16644 | |
16645 | /* The GNU C library defines this for functions which it implements | |
16646 | to always fail with ENOSYS. Some functions are actually named | |
16647 | something starting with __ and the normal name is an alias. */ | |
16648 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16649 | choke me | |
16650 | #else | |
8284b0c5 | 16651 | $ac_func(); |
af15babd VZ |
16652 | #endif |
16653 | ||
8284b0c5 | 16654 | ; return 0; } |
af15babd | 16655 | EOF |
8284b0c5 MB |
16656 | if { (eval echo configure:16657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16657 | rm -rf conftest* | |
16658 | eval "ac_cv_func_$ac_func=yes" | |
16659 | else | |
16660 | echo "configure: failed program was:" >&5 | |
16661 | cat conftest.$ac_ext >&5 | |
16662 | rm -rf conftest* | |
16663 | eval "ac_cv_func_$ac_func=no" | |
16664 | fi | |
16665 | rm -f conftest* | |
16666 | fi | |
af15babd | 16667 | |
8284b0c5 MB |
16668 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16669 | echo "$ac_t""yes" 1>&6 | |
16670 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16671 | cat >> confdefs.h <<EOF | |
16672 | #define $ac_tr_func 1 | |
16673 | EOF | |
16674 | ||
16675 | else | |
16676 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16677 | fi |
16678 | done | |
16679 | ||
8284b0c5 | 16680 | |
ade35f11 VZ |
16681 | for ac_func in mkstemp mktemp |
16682 | do | |
8284b0c5 MB |
16683 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
16684 | echo "configure:16685: checking for $ac_func" >&5 | |
16685 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16686 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16687 | else | |
16688 | cat > conftest.$ac_ext <<EOF | |
16689 | #line 16690 "configure" | |
ade35f11 VZ |
16690 | #include "confdefs.h" |
16691 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 16692 | which can conflict with char $ac_func(); below. */ |
ade35f11 VZ |
16693 | #include <assert.h> |
16694 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16695 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
16696 | builtin and then its argument prototype would still apply. */ |
16697 | char $ac_func(); | |
16698 | ||
16699 | int main() { | |
ade35f11 VZ |
16700 | |
16701 | /* The GNU C library defines this for functions which it implements | |
16702 | to always fail with ENOSYS. Some functions are actually named | |
16703 | something starting with __ and the normal name is an alias. */ | |
16704 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16705 | choke me | |
16706 | #else | |
8284b0c5 | 16707 | $ac_func(); |
ade35f11 VZ |
16708 | #endif |
16709 | ||
8284b0c5 MB |
16710 | ; return 0; } |
16711 | EOF | |
16712 | if { (eval echo configure:16713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16713 | rm -rf conftest* | |
16714 | eval "ac_cv_func_$ac_func=yes" | |
16715 | else | |
16716 | echo "configure: failed program was:" >&5 | |
16717 | cat conftest.$ac_ext >&5 | |
16718 | rm -rf conftest* | |
16719 | eval "ac_cv_func_$ac_func=no" | |
16720 | fi | |
16721 | rm -f conftest* | |
16722 | fi | |
16723 | ||
16724 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16725 | echo "$ac_t""yes" 1>&6 | |
16726 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16727 | cat >> confdefs.h <<EOF | |
16728 | #define $ac_tr_func 1 | |
ade35f11 VZ |
16729 | EOF |
16730 | break | |
8284b0c5 MB |
16731 | else |
16732 | echo "$ac_t""no" 1>&6 | |
ade35f11 VZ |
16733 | fi |
16734 | done | |
16735 | ||
8284b0c5 MB |
16736 | |
16737 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 | |
16738 | echo "configure:16739: checking for statfs" >&5 | |
16739 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then | |
16740 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 16741 | else |
8284b0c5 MB |
16742 | cat > conftest.$ac_ext <<EOF |
16743 | #line 16744 "configure" | |
4f14bcd8 GD |
16744 | #include "confdefs.h" |
16745 | ||
16746 | #if defined(__BSD__) | |
16747 | #include <sys/param.h> | |
16748 | #include <sys/mount.h> | |
16749 | #else | |
16750 | #include <sys/vfs.h> | |
16751 | #endif | |
8284b0c5 MB |
16752 | |
16753 | int main() { | |
4f14bcd8 GD |
16754 | |
16755 | long l; | |
16756 | struct statfs fs; | |
16757 | statfs("/", &fs); | |
16758 | l = fs.f_bsize; | |
16759 | l += fs.f_blocks; | |
16760 | l += fs.f_bavail; | |
8284b0c5 MB |
16761 | |
16762 | ; return 0; } | |
16763 | EOF | |
16764 | if { (eval echo configure:16765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16765 | rm -rf conftest* | |
16766 | ||
4f14bcd8 | 16767 | wx_cv_func_statfs=yes |
8284b0c5 | 16768 | |
4f14bcd8 | 16769 | else |
8284b0c5 MB |
16770 | echo "configure: failed program was:" >&5 |
16771 | cat conftest.$ac_ext >&5 | |
16772 | rm -rf conftest* | |
16773 | ||
4f14bcd8 | 16774 | wx_cv_func_statfs=no |
8284b0c5 MB |
16775 | |
16776 | ||
7b4a847f | 16777 | fi |
8284b0c5 | 16778 | rm -f conftest* |
52127426 | 16779 | |
5c6fa7d2 | 16780 | fi |
8284b0c5 MB |
16781 | |
16782 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
4f14bcd8 GD |
16783 | |
16784 | if test "$wx_cv_func_statfs" = "yes"; then | |
8284b0c5 | 16785 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
16786 | #define HAVE_STATFS 1 |
16787 | EOF | |
16788 | ||
16789 | else | |
8284b0c5 MB |
16790 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 |
16791 | echo "configure:16792: checking for statvfs" >&5 | |
16792 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then | |
16793 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 16794 | else |
8284b0c5 MB |
16795 | cat > conftest.$ac_ext <<EOF |
16796 | #line 16797 "configure" | |
af15babd | 16797 | #include "confdefs.h" |
af15babd | 16798 | |
4f14bcd8 | 16799 | #include <sys/statvfs.h> |
8284b0c5 MB |
16800 | |
16801 | int main() { | |
af15babd | 16802 | |
4f14bcd8 GD |
16803 | long l; |
16804 | struct statvfs fs; | |
16805 | statvfs("/", &fs); | |
16806 | l = fs.f_bsize; | |
16807 | l += fs.f_blocks; | |
16808 | l += fs.f_bavail; | |
8284b0c5 MB |
16809 | |
16810 | ; return 0; } | |
16811 | EOF | |
16812 | if { (eval echo configure:16813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16813 | rm -rf conftest* | |
16814 | ||
4f14bcd8 | 16815 | wx_cv_func_statvfs=yes |
8284b0c5 | 16816 | |
af15babd | 16817 | else |
8284b0c5 MB |
16818 | echo "configure: failed program was:" >&5 |
16819 | cat conftest.$ac_ext >&5 | |
16820 | rm -rf conftest* | |
16821 | ||
4f14bcd8 | 16822 | wx_cv_func_statvfs=no |
8284b0c5 MB |
16823 | |
16824 | ||
7b4a847f | 16825 | fi |
8284b0c5 MB |
16826 | rm -f conftest* |
16827 | ||
5c6fa7d2 | 16828 | fi |
8284b0c5 MB |
16829 | |
16830 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 | |
af15babd | 16831 | |
4f14bcd8 | 16832 | if test "$wx_cv_func_statvfs" = "yes"; then |
8284b0c5 | 16833 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
16834 | #define HAVE_STATVFS 1 |
16835 | EOF | |
af15babd | 16836 | |
4f14bcd8 | 16837 | else |
8284b0c5 | 16838 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 |
4f14bcd8 GD |
16839 | fi |
16840 | fi | |
af15babd | 16841 | |
4f14bcd8 | 16842 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
8284b0c5 | 16843 | for ac_func in fcntl flock |
af15babd | 16844 | do |
8284b0c5 MB |
16845 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
16846 | echo "configure:16847: checking for $ac_func" >&5 | |
16847 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16848 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16849 | else | |
16850 | cat > conftest.$ac_ext <<EOF | |
16851 | #line 16852 "configure" | |
af15babd VZ |
16852 | #include "confdefs.h" |
16853 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 16854 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16855 | #include <assert.h> |
16856 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd | 16857 | /* We use char because int might match the return type of a gcc2 |
8284b0c5 MB |
16858 | builtin and then its argument prototype would still apply. */ |
16859 | char $ac_func(); | |
16860 | ||
16861 | int main() { | |
af15babd VZ |
16862 | |
16863 | /* The GNU C library defines this for functions which it implements | |
16864 | to always fail with ENOSYS. Some functions are actually named | |
16865 | something starting with __ and the normal name is an alias. */ | |
16866 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16867 | choke me | |
16868 | #else | |
8284b0c5 | 16869 | $ac_func(); |
af15babd VZ |
16870 | #endif |
16871 | ||
8284b0c5 MB |
16872 | ; return 0; } |
16873 | EOF | |
16874 | if { (eval echo configure:16875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16875 | rm -rf conftest* | |
16876 | eval "ac_cv_func_$ac_func=yes" | |
16877 | else | |
16878 | echo "configure: failed program was:" >&5 | |
16879 | cat conftest.$ac_ext >&5 | |
16880 | rm -rf conftest* | |
16881 | eval "ac_cv_func_$ac_func=no" | |
16882 | fi | |
16883 | rm -f conftest* | |
16884 | fi | |
16885 | ||
16886 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16887 | echo "$ac_t""yes" 1>&6 | |
16888 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16889 | cat >> confdefs.h <<EOF | |
16890 | #define $ac_tr_func 1 | |
af15babd | 16891 | EOF |
4f14bcd8 | 16892 | break |
8284b0c5 MB |
16893 | else |
16894 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16895 | fi |
16896 | done | |
16897 | ||
8284b0c5 | 16898 | |
4f14bcd8 | 16899 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
8284b0c5 | 16900 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f14bcd8 GD |
16901 | wxUSE_SNGLINST_CHECKER=no |
16902 | fi | |
16903 | fi | |
af15babd | 16904 | |
4f14bcd8 | 16905 | for ac_func in timegm |
af15babd | 16906 | do |
8284b0c5 MB |
16907 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
16908 | echo "configure:16909: checking for $ac_func" >&5 | |
16909 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16910 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16911 | else | |
16912 | cat > conftest.$ac_ext <<EOF | |
16913 | #line 16914 "configure" | |
af15babd VZ |
16914 | #include "confdefs.h" |
16915 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 16916 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16917 | #include <assert.h> |
16918 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16919 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
16920 | builtin and then its argument prototype would still apply. */ |
16921 | char $ac_func(); | |
16922 | ||
16923 | int main() { | |
698dcdb6 | 16924 | |
af15babd VZ |
16925 | /* The GNU C library defines this for functions which it implements |
16926 | to always fail with ENOSYS. Some functions are actually named | |
16927 | something starting with __ and the normal name is an alias. */ | |
16928 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16929 | choke me | |
16930 | #else | |
8284b0c5 | 16931 | $ac_func(); |
af15babd VZ |
16932 | #endif |
16933 | ||
8284b0c5 | 16934 | ; return 0; } |
698dcdb6 | 16935 | EOF |
8284b0c5 MB |
16936 | if { (eval echo configure:16937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
16937 | rm -rf conftest* | |
16938 | eval "ac_cv_func_$ac_func=yes" | |
16939 | else | |
16940 | echo "configure: failed program was:" >&5 | |
16941 | cat conftest.$ac_ext >&5 | |
16942 | rm -rf conftest* | |
16943 | eval "ac_cv_func_$ac_func=no" | |
16944 | fi | |
16945 | rm -f conftest* | |
16946 | fi | |
703e0a69 | 16947 | |
8284b0c5 MB |
16948 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16949 | echo "$ac_t""yes" 1>&6 | |
16950 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16951 | cat >> confdefs.h <<EOF | |
16952 | #define $ac_tr_func 1 | |
16953 | EOF | |
16954 | ||
16955 | else | |
16956 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16957 | fi |
16958 | done | |
16959 | ||
8284b0c5 | 16960 | |
4f14bcd8 | 16961 | for ac_func in putenv setenv |
10f2d63a | 16962 | do |
8284b0c5 MB |
16963 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
16964 | echo "configure:16965: checking for $ac_func" >&5 | |
16965 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16966 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16967 | else | |
16968 | cat > conftest.$ac_ext <<EOF | |
16969 | #line 16970 "configure" | |
af15babd VZ |
16970 | #include "confdefs.h" |
16971 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 16972 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16973 | #include <assert.h> |
16974 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16975 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
16976 | builtin and then its argument prototype would still apply. */ |
16977 | char $ac_func(); | |
16978 | ||
16979 | int main() { | |
af15babd VZ |
16980 | |
16981 | /* The GNU C library defines this for functions which it implements | |
16982 | to always fail with ENOSYS. Some functions are actually named | |
16983 | something starting with __ and the normal name is an alias. */ | |
16984 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16985 | choke me | |
16986 | #else | |
8284b0c5 | 16987 | $ac_func(); |
af15babd VZ |
16988 | #endif |
16989 | ||
8284b0c5 MB |
16990 | ; return 0; } |
16991 | EOF | |
16992 | if { (eval echo configure:16993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16993 | rm -rf conftest* | |
16994 | eval "ac_cv_func_$ac_func=yes" | |
16995 | else | |
16996 | echo "configure: failed program was:" >&5 | |
16997 | cat conftest.$ac_ext >&5 | |
16998 | rm -rf conftest* | |
16999 | eval "ac_cv_func_$ac_func=no" | |
17000 | fi | |
17001 | rm -f conftest* | |
17002 | fi | |
17003 | ||
17004 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17005 | echo "$ac_t""yes" 1>&6 | |
17006 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17007 | cat >> confdefs.h <<EOF | |
17008 | #define $ac_tr_func 1 | |
af15babd | 17009 | EOF |
4f14bcd8 | 17010 | break |
8284b0c5 MB |
17011 | else |
17012 | echo "$ac_t""no" 1>&6 | |
af15babd | 17013 | fi |
af15babd VZ |
17014 | done |
17015 | ||
8284b0c5 | 17016 | |
4f14bcd8 GD |
17017 | HAVE_SOME_SLEEP_FUNC=0 |
17018 | if test "$USE_BEOS" = 1; then | |
8284b0c5 | 17019 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17020 | #define HAVE_SLEEP 1 |
af15babd VZ |
17021 | EOF |
17022 | ||
4f14bcd8 | 17023 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
17024 | fi |
17025 | ||
4f14bcd8 | 17026 | if test "$USE_DARWIN" = 1; then |
8284b0c5 | 17027 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17028 | #define HAVE_USLEEP 1 |
af15babd | 17029 | EOF |
10f2d63a | 17030 | |
4f14bcd8 | 17031 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
17032 | fi |
17033 | ||
4f14bcd8 GD |
17034 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
17035 | POSIX4_LINK= | |
8284b0c5 | 17036 | for ac_func in nanosleep |
4f14bcd8 | 17037 | do |
8284b0c5 MB |
17038 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
17039 | echo "configure:17040: checking for $ac_func" >&5 | |
17040 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
17041 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17042 | else | |
17043 | cat > conftest.$ac_ext <<EOF | |
17044 | #line 17045 "configure" | |
10f2d63a | 17045 | #include "confdefs.h" |
4f14bcd8 | 17046 | /* System header to define __stub macros and hopefully few prototypes, |
8284b0c5 | 17047 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 17048 | #include <assert.h> |
10f2d63a VZ |
17049 | /* Override any gcc2 internal prototype to avoid an error. */ |
17050 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
17051 | builtin and then its argument prototype would still apply. */ |
17052 | char $ac_func(); | |
17053 | ||
17054 | int main() { | |
4f14bcd8 GD |
17055 | |
17056 | /* The GNU C library defines this for functions which it implements | |
17057 | to always fail with ENOSYS. Some functions are actually named | |
17058 | something starting with __ and the normal name is an alias. */ | |
17059 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17060 | choke me | |
17061 | #else | |
8284b0c5 | 17062 | $ac_func(); |
4f14bcd8 GD |
17063 | #endif |
17064 | ||
8284b0c5 MB |
17065 | ; return 0; } |
17066 | EOF | |
17067 | if { (eval echo configure:17068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17068 | rm -rf conftest* | |
17069 | eval "ac_cv_func_$ac_func=yes" | |
17070 | else | |
17071 | echo "configure: failed program was:" >&5 | |
17072 | cat conftest.$ac_ext >&5 | |
17073 | rm -rf conftest* | |
17074 | eval "ac_cv_func_$ac_func=no" | |
17075 | fi | |
17076 | rm -f conftest* | |
17077 | fi | |
17078 | ||
17079 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17080 | echo "$ac_t""yes" 1>&6 | |
17081 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17082 | cat >> confdefs.h <<EOF | |
17083 | #define $ac_tr_func 1 | |
17084 | EOF | |
17085 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17086 | #define HAVE_NANOSLEEP 1 |
17087 | EOF | |
17088 | ||
10f2d63a | 17089 | else |
8284b0c5 MB |
17090 | echo "$ac_t""no" 1>&6 |
17091 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
17092 | echo "configure:17093: checking for nanosleep in -lposix4" >&5 | |
17093 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` | |
17094 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17095 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17096 | else |
8284b0c5 | 17097 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17098 | LIBS="-lposix4 $LIBS" |
8284b0c5 MB |
17099 | cat > conftest.$ac_ext <<EOF |
17100 | #line 17101 "configure" | |
10f2d63a VZ |
17101 | #include "confdefs.h" |
17102 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17103 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
17104 | builtin and then its argument prototype would still apply. */ |
17105 | char nanosleep(); | |
17106 | ||
17107 | int main() { | |
17108 | nanosleep() | |
17109 | ; return 0; } | |
17110 | EOF | |
17111 | if { (eval echo configure:17112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17112 | rm -rf conftest* | |
17113 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17114 | else | |
17115 | echo "configure: failed program was:" >&5 | |
17116 | cat conftest.$ac_ext >&5 | |
17117 | rm -rf conftest* | |
17118 | eval "ac_cv_lib_$ac_lib_var=no" | |
17119 | fi | |
17120 | rm -f conftest* | |
17121 | LIBS="$ac_save_LIBS" | |
17122 | ||
17123 | fi | |
17124 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17125 | echo "$ac_t""yes" 1>&6 | |
17126 | ||
17127 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17128 | #define HAVE_NANOSLEEP 1 |
17129 | EOF | |
17130 | ||
3d63bc3a | 17131 | POSIX4_LINK=" -lposix4" |
8284b0c5 | 17132 | |
10f2d63a | 17133 | else |
8284b0c5 | 17134 | echo "$ac_t""no" 1>&6 |
10f2d63a | 17135 | |
8284b0c5 | 17136 | for ac_func in usleep |
4f14bcd8 | 17137 | do |
8284b0c5 MB |
17138 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
17139 | echo "configure:17140: checking for $ac_func" >&5 | |
17140 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
17141 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17142 | else | |
17143 | cat > conftest.$ac_ext <<EOF | |
17144 | #line 17145 "configure" | |
10f2d63a | 17145 | #include "confdefs.h" |
4f14bcd8 | 17146 | /* System header to define __stub macros and hopefully few prototypes, |
8284b0c5 | 17147 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17148 | #include <assert.h> |
17149 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17150 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
17151 | builtin and then its argument prototype would still apply. */ |
17152 | char $ac_func(); | |
17153 | ||
17154 | int main() { | |
4f14bcd8 GD |
17155 | |
17156 | /* The GNU C library defines this for functions which it implements | |
17157 | to always fail with ENOSYS. Some functions are actually named | |
17158 | something starting with __ and the normal name is an alias. */ | |
17159 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17160 | choke me | |
17161 | #else | |
8284b0c5 | 17162 | $ac_func(); |
4f14bcd8 GD |
17163 | #endif |
17164 | ||
8284b0c5 MB |
17165 | ; return 0; } |
17166 | EOF | |
17167 | if { (eval echo configure:17168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17168 | rm -rf conftest* | |
17169 | eval "ac_cv_func_$ac_func=yes" | |
17170 | else | |
17171 | echo "configure: failed program was:" >&5 | |
17172 | cat conftest.$ac_ext >&5 | |
17173 | rm -rf conftest* | |
17174 | eval "ac_cv_func_$ac_func=no" | |
17175 | fi | |
17176 | rm -f conftest* | |
17177 | fi | |
17178 | ||
17179 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17180 | echo "$ac_t""yes" 1>&6 | |
17181 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17182 | cat >> confdefs.h <<EOF | |
17183 | #define $ac_tr_func 1 | |
17184 | EOF | |
17185 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17186 | #define HAVE_USLEEP 1 |
17187 | EOF | |
17188 | ||
698dcdb6 | 17189 | else |
8284b0c5 MB |
17190 | echo "$ac_t""no" 1>&6 |
17191 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
17192 | ||
10f2d63a | 17193 | fi |
4f14bcd8 | 17194 | done |
10f2d63a | 17195 | |
8284b0c5 MB |
17196 | |
17197 | ||
6232543b | 17198 | fi |
10f2d63a | 17199 | |
8284b0c5 MB |
17200 | |
17201 | ||
1e487827 | 17202 | fi |
4f14bcd8 | 17203 | done |
703e0a69 | 17204 | |
10f2d63a VZ |
17205 | fi |
17206 | ||
4f14bcd8 | 17207 | for ac_func in uname gethostname |
70846f0a | 17208 | do |
8284b0c5 MB |
17209 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
17210 | echo "configure:17211: checking for $ac_func" >&5 | |
17211 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
17212 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17213 | else | |
17214 | cat > conftest.$ac_ext <<EOF | |
17215 | #line 17216 "configure" | |
70846f0a VZ |
17216 | #include "confdefs.h" |
17217 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 17218 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
17219 | #include <assert.h> |
17220 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17221 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
17222 | builtin and then its argument prototype would still apply. */ |
17223 | char $ac_func(); | |
17224 | ||
17225 | int main() { | |
70846f0a VZ |
17226 | |
17227 | /* The GNU C library defines this for functions which it implements | |
17228 | to always fail with ENOSYS. Some functions are actually named | |
17229 | something starting with __ and the normal name is an alias. */ | |
17230 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17231 | choke me | |
17232 | #else | |
8284b0c5 | 17233 | $ac_func(); |
70846f0a VZ |
17234 | #endif |
17235 | ||
8284b0c5 MB |
17236 | ; return 0; } |
17237 | EOF | |
17238 | if { (eval echo configure:17239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17239 | rm -rf conftest* | |
17240 | eval "ac_cv_func_$ac_func=yes" | |
17241 | else | |
17242 | echo "configure: failed program was:" >&5 | |
17243 | cat conftest.$ac_ext >&5 | |
17244 | rm -rf conftest* | |
17245 | eval "ac_cv_func_$ac_func=no" | |
17246 | fi | |
17247 | rm -f conftest* | |
17248 | fi | |
17249 | ||
17250 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17251 | echo "$ac_t""yes" 1>&6 | |
17252 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17253 | cat >> confdefs.h <<EOF | |
17254 | #define $ac_tr_func 1 | |
698dcdb6 | 17255 | EOF |
4f14bcd8 | 17256 | break |
8284b0c5 MB |
17257 | else |
17258 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
17259 | fi |
17260 | done | |
17261 | ||
8284b0c5 MB |
17262 | |
17263 | ||
17264 | ac_ext=C | |
17265 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 17266 | ac_cpp='$CXXCPP $CPPFLAGS' |
8284b0c5 MB |
17267 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17268 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17269 | cross_compiling=$ac_cv_prog_cxx_cross | |
17270 | ||
4f14bcd8 GD |
17271 | |
17272 | for ac_func in strtok_r | |
10f2d63a | 17273 | do |
8284b0c5 MB |
17274 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
17275 | echo "configure:17276: checking for $ac_func" >&5 | |
17276 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
17277 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17278 | else | |
17279 | cat > conftest.$ac_ext <<EOF | |
17280 | #line 17281 "configure" | |
10f2d63a | 17281 | #include "confdefs.h" |
4f14bcd8 | 17282 | /* System header to define __stub macros and hopefully few prototypes, |
8284b0c5 | 17283 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17284 | #include <assert.h> |
17285 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17286 | #ifdef __cplusplus | |
17287 | extern "C" | |
17288 | #endif | |
17289 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
17290 | builtin and then its argument prototype would still apply. */ |
17291 | char $ac_func(); | |
17292 | ||
17293 | int main() { | |
4f14bcd8 GD |
17294 | |
17295 | /* The GNU C library defines this for functions which it implements | |
17296 | to always fail with ENOSYS. Some functions are actually named | |
17297 | something starting with __ and the normal name is an alias. */ | |
17298 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17299 | choke me | |
17300 | #else | |
8284b0c5 | 17301 | $ac_func(); |
4f14bcd8 GD |
17302 | #endif |
17303 | ||
8284b0c5 | 17304 | ; return 0; } |
698dcdb6 | 17305 | EOF |
8284b0c5 MB |
17306 | if { (eval echo configure:17307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
17307 | rm -rf conftest* | |
17308 | eval "ac_cv_func_$ac_func=yes" | |
17309 | else | |
17310 | echo "configure: failed program was:" >&5 | |
17311 | cat conftest.$ac_ext >&5 | |
17312 | rm -rf conftest* | |
17313 | eval "ac_cv_func_$ac_func=no" | |
17314 | fi | |
17315 | rm -f conftest* | |
17316 | fi | |
4f14bcd8 | 17317 | |
8284b0c5 MB |
17318 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17319 | echo "$ac_t""yes" 1>&6 | |
17320 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17321 | cat >> confdefs.h <<EOF | |
17322 | #define $ac_tr_func 1 | |
17323 | EOF | |
17324 | ||
17325 | else | |
17326 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17327 | fi |
17328 | done | |
17329 | ||
8284b0c5 | 17330 | |
4f14bcd8 | 17331 | ac_ext=c |
8284b0c5 | 17332 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17333 | ac_cpp='$CPP $CPPFLAGS' |
8284b0c5 MB |
17334 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17335 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17336 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 17337 | |
5c6fa7d2 | 17338 | |
8284b0c5 | 17339 | INET_LINK= |
4f14bcd8 GD |
17340 | for ac_func in inet_addr |
17341 | do | |
8284b0c5 MB |
17342 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
17343 | echo "configure:17344: checking for $ac_func" >&5 | |
17344 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
17345 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17346 | else | |
17347 | cat > conftest.$ac_ext <<EOF | |
17348 | #line 17349 "configure" | |
10f2d63a | 17349 | #include "confdefs.h" |
4f14bcd8 | 17350 | /* System header to define __stub macros and hopefully few prototypes, |
8284b0c5 | 17351 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 17352 | #include <assert.h> |
10f2d63a VZ |
17353 | /* Override any gcc2 internal prototype to avoid an error. */ |
17354 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
17355 | builtin and then its argument prototype would still apply. */ |
17356 | char $ac_func(); | |
17357 | ||
17358 | int main() { | |
4f14bcd8 GD |
17359 | |
17360 | /* The GNU C library defines this for functions which it implements | |
17361 | to always fail with ENOSYS. Some functions are actually named | |
17362 | something starting with __ and the normal name is an alias. */ | |
17363 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17364 | choke me | |
17365 | #else | |
8284b0c5 | 17366 | $ac_func(); |
4f14bcd8 GD |
17367 | #endif |
17368 | ||
8284b0c5 MB |
17369 | ; return 0; } |
17370 | EOF | |
17371 | if { (eval echo configure:17372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17372 | rm -rf conftest* | |
17373 | eval "ac_cv_func_$ac_func=yes" | |
17374 | else | |
17375 | echo "configure: failed program was:" >&5 | |
17376 | cat conftest.$ac_ext >&5 | |
17377 | rm -rf conftest* | |
17378 | eval "ac_cv_func_$ac_func=no" | |
17379 | fi | |
17380 | rm -f conftest* | |
17381 | fi | |
17382 | ||
17383 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17384 | echo "$ac_t""yes" 1>&6 | |
17385 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17386 | cat >> confdefs.h <<EOF | |
17387 | #define $ac_tr_func 1 | |
17388 | EOF | |
17389 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17390 | #define HAVE_INET_ADDR 1 |
10f2d63a VZ |
17391 | EOF |
17392 | ||
17393 | else | |
8284b0c5 MB |
17394 | echo "$ac_t""no" 1>&6 |
17395 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
17396 | echo "configure:17397: checking for inet_addr in -lnsl" >&5 | |
17397 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` | |
17398 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17399 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17400 | else |
8284b0c5 | 17401 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17402 | LIBS="-lnsl $LIBS" |
8284b0c5 MB |
17403 | cat > conftest.$ac_ext <<EOF |
17404 | #line 17405 "configure" | |
10f2d63a VZ |
17405 | #include "confdefs.h" |
17406 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17407 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
17408 | builtin and then its argument prototype would still apply. */ |
17409 | char inet_addr(); | |
17410 | ||
17411 | int main() { | |
17412 | inet_addr() | |
17413 | ; return 0; } | |
17414 | EOF | |
17415 | if { (eval echo configure:17416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17416 | rm -rf conftest* | |
17417 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17418 | else | |
17419 | echo "configure: failed program was:" >&5 | |
17420 | cat conftest.$ac_ext >&5 | |
17421 | rm -rf conftest* | |
17422 | eval "ac_cv_lib_$ac_lib_var=no" | |
17423 | fi | |
17424 | rm -f conftest* | |
17425 | LIBS="$ac_save_LIBS" | |
17426 | ||
17427 | fi | |
17428 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17429 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17430 | INET_LINK="nsl" |
10f2d63a | 17431 | else |
8284b0c5 MB |
17432 | echo "$ac_t""no" 1>&6 |
17433 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
17434 | echo "configure:17435: checking for inet_addr in -lresolv" >&5 | |
17435 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` | |
17436 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17437 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17438 | else |
8284b0c5 | 17439 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17440 | LIBS="-lresolv $LIBS" |
8284b0c5 MB |
17441 | cat > conftest.$ac_ext <<EOF |
17442 | #line 17443 "configure" | |
7b4a847f | 17443 | #include "confdefs.h" |
5c6fa7d2 | 17444 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 17445 | /* We use char because int might match the return type of a gcc2 |
8284b0c5 MB |
17446 | builtin and then its argument prototype would still apply. */ |
17447 | char inet_addr(); | |
17448 | ||
17449 | int main() { | |
17450 | inet_addr() | |
17451 | ; return 0; } | |
17452 | EOF | |
17453 | if { (eval echo configure:17454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17454 | rm -rf conftest* | |
17455 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17456 | else | |
17457 | echo "configure: failed program was:" >&5 | |
17458 | cat conftest.$ac_ext >&5 | |
17459 | rm -rf conftest* | |
17460 | eval "ac_cv_lib_$ac_lib_var=no" | |
17461 | fi | |
17462 | rm -f conftest* | |
17463 | LIBS="$ac_save_LIBS" | |
17464 | ||
17465 | fi | |
17466 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17467 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17468 | INET_LINK="resolv" |
698dcdb6 | 17469 | else |
8284b0c5 MB |
17470 | echo "$ac_t""no" 1>&6 |
17471 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 | |
17472 | echo "configure:17473: checking for inet_addr in -lsocket" >&5 | |
17473 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` | |
17474 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17475 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3c011993 | 17476 | else |
8284b0c5 | 17477 | ac_save_LIBS="$LIBS" |
3c011993 | 17478 | LIBS="-lsocket $LIBS" |
8284b0c5 MB |
17479 | cat > conftest.$ac_ext <<EOF |
17480 | #line 17481 "configure" | |
3c011993 VZ |
17481 | #include "confdefs.h" |
17482 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17483 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
17484 | builtin and then its argument prototype would still apply. */ |
17485 | char inet_addr(); | |
4f14bcd8 | 17486 | |
8284b0c5 MB |
17487 | int main() { |
17488 | inet_addr() | |
17489 | ; return 0; } | |
17490 | EOF | |
17491 | if { (eval echo configure:17492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17492 | rm -rf conftest* | |
17493 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17494 | else | |
17495 | echo "configure: failed program was:" >&5 | |
17496 | cat conftest.$ac_ext >&5 | |
17497 | rm -rf conftest* | |
17498 | eval "ac_cv_lib_$ac_lib_var=no" | |
17499 | fi | |
17500 | rm -f conftest* | |
17501 | LIBS="$ac_save_LIBS" | |
17502 | ||
17503 | fi | |
17504 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17505 | echo "$ac_t""yes" 1>&6 | |
17506 | INET_LINK="socket" | |
17507 | ||
17508 | else | |
17509 | echo "$ac_t""no" 1>&6 | |
328a083c | 17510 | fi |
698dcdb6 | 17511 | |
8284b0c5 | 17512 | |
7b4a847f | 17513 | fi |
579d8138 | 17514 | |
8284b0c5 | 17515 | |
5c6fa7d2 | 17516 | fi |
52127426 | 17517 | |
8284b0c5 MB |
17518 | |
17519 | ||
698dcdb6 | 17520 | fi |
4f14bcd8 GD |
17521 | done |
17522 | ||
8284b0c5 | 17523 | |
4f14bcd8 GD |
17524 | for ac_func in inet_aton |
17525 | do | |
8284b0c5 MB |
17526 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
17527 | echo "configure:17528: checking for $ac_func" >&5 | |
17528 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
17529 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17530 | else | |
17531 | cat > conftest.$ac_ext <<EOF | |
17532 | #line 17533 "configure" | |
f6bcfd97 | 17533 | #include "confdefs.h" |
4f14bcd8 | 17534 | /* System header to define __stub macros and hopefully few prototypes, |
8284b0c5 | 17535 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 17536 | #include <assert.h> |
f6bcfd97 BP |
17537 | /* Override any gcc2 internal prototype to avoid an error. */ |
17538 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
17539 | builtin and then its argument prototype would still apply. */ |
17540 | char $ac_func(); | |
17541 | ||
17542 | int main() { | |
4f14bcd8 GD |
17543 | |
17544 | /* The GNU C library defines this for functions which it implements | |
17545 | to always fail with ENOSYS. Some functions are actually named | |
17546 | something starting with __ and the normal name is an alias. */ | |
17547 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17548 | choke me | |
17549 | #else | |
8284b0c5 | 17550 | $ac_func(); |
4f14bcd8 GD |
17551 | #endif |
17552 | ||
8284b0c5 MB |
17553 | ; return 0; } |
17554 | EOF | |
17555 | if { (eval echo configure:17556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17556 | rm -rf conftest* | |
17557 | eval "ac_cv_func_$ac_func=yes" | |
17558 | else | |
17559 | echo "configure: failed program was:" >&5 | |
17560 | cat conftest.$ac_ext >&5 | |
17561 | rm -rf conftest* | |
17562 | eval "ac_cv_func_$ac_func=no" | |
17563 | fi | |
17564 | rm -f conftest* | |
17565 | fi | |
17566 | ||
17567 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17568 | echo "$ac_t""yes" 1>&6 | |
17569 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17570 | cat >> confdefs.h <<EOF | |
17571 | #define $ac_tr_func 1 | |
17572 | EOF | |
17573 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17574 | #define HAVE_INET_ATON 1 |
17575 | EOF | |
17576 | ||
10f2d63a | 17577 | else |
8284b0c5 MB |
17578 | echo "$ac_t""no" 1>&6 |
17579 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
17580 | echo "configure:17581: checking for inet_aton in -l$INET_LINK" >&5 | |
17581 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` | |
17582 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17583 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 17584 | else |
8284b0c5 | 17585 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17586 | LIBS="-l$INET_LINK $LIBS" |
8284b0c5 MB |
17587 | cat > conftest.$ac_ext <<EOF |
17588 | #line 17589 "configure" | |
10f2d63a | 17589 | #include "confdefs.h" |
6232543b | 17590 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 17591 | /* We use char because int might match the return type of a gcc2 |
8284b0c5 MB |
17592 | builtin and then its argument prototype would still apply. */ |
17593 | char inet_aton(); | |
17594 | ||
17595 | int main() { | |
17596 | inet_aton() | |
17597 | ; return 0; } | |
17598 | EOF | |
17599 | if { (eval echo configure:17600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17600 | rm -rf conftest* | |
17601 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17602 | else | |
17603 | echo "configure: failed program was:" >&5 | |
17604 | cat conftest.$ac_ext >&5 | |
17605 | rm -rf conftest* | |
17606 | eval "ac_cv_lib_$ac_lib_var=no" | |
17607 | fi | |
17608 | rm -f conftest* | |
17609 | LIBS="$ac_save_LIBS" | |
17610 | ||
17611 | fi | |
17612 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17613 | echo "$ac_t""yes" 1>&6 | |
17614 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17615 | #define HAVE_INET_ATON 1 |
17616 | EOF | |
17617 | ||
8284b0c5 MB |
17618 | else |
17619 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17620 | fi |
17621 | ||
8284b0c5 | 17622 | |
10f2d63a | 17623 | fi |
4f14bcd8 | 17624 | done |
10f2d63a | 17625 | |
8284b0c5 | 17626 | |
4f14bcd8 | 17627 | if test "x$INET_LINK" != "x"; then |
8284b0c5 | 17628 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
17629 | #define HAVE_INET_ADDR 1 |
17630 | EOF | |
17631 | ||
3d63bc3a | 17632 | INET_LINK=" -l$INET_LINK" |
6232543b | 17633 | fi |
10f2d63a | 17634 | |
1e487827 | 17635 | fi |
703e0a69 | 17636 | |
8284b0c5 MB |
17637 | |
17638 | cat > confcache <<\EOF | |
4f14bcd8 GD |
17639 | # This file is a shell script that caches the results of configure |
17640 | # tests run on this system so they can be shared between configure | |
8284b0c5 MB |
17641 | # scripts and configure runs. It is not useful on other systems. |
17642 | # If it contains results you don't want to keep, you may remove or edit it. | |
4f14bcd8 | 17643 | # |
8284b0c5 MB |
17644 | # By default, configure uses ./config.cache as the cache file, |
17645 | # creating it if it does not exist already. You can give configure | |
17646 | # the --cache-file=FILE option to use a different cache file; that is | |
17647 | # what configure does when it calls configure scripts in | |
17648 | # subdirectories, so they share the cache. | |
17649 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17650 | # config.status only pays attention to the cache file if you give it the | |
17651 | # --recheck option to rerun configure. | |
4f14bcd8 | 17652 | # |
8284b0c5 | 17653 | EOF |
4f14bcd8 GD |
17654 | # The following way of writing the cache mishandles newlines in values, |
17655 | # but we know of no workaround that is simple, portable, and efficient. | |
17656 | # So, don't put newlines in cache variables' values. | |
17657 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17658 | # and sets the high bit in the cache file unless we assign to the vars. | |
8284b0c5 MB |
17659 | (set) 2>&1 | |
17660 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17661 | *ac_space=\ *) | |
17662 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17663 | # turns \\\\ into \\, and sed turns \\ into \). | |
17664 | sed -n \ | |
17665 | -e "s/'/'\\\\''/g" \ | |
17666 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17667 | ;; | |
17668 | *) | |
17669 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17670 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17671 | ;; | |
17672 | esac >> confcache | |
17673 | if cmp -s $cache_file confcache; then | |
17674 | : | |
17675 | else | |
4f14bcd8 | 17676 | if test -w $cache_file; then |
8284b0c5 MB |
17677 | echo "updating cache $cache_file" |
17678 | cat confcache > $cache_file | |
f6bcfd97 | 17679 | else |
4f14bcd8 | 17680 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 17681 | fi |
4f14bcd8 GD |
17682 | fi |
17683 | rm -f confcache | |
f6bcfd97 | 17684 | |
8284b0c5 MB |
17685 | |
17686 | ||
009fead0 | 17687 | CPP_MT_FLAG= |
4f14bcd8 GD |
17688 | if test "$TOOLKIT" != "MSW"; then |
17689 | ||
8284b0c5 | 17690 | |
7274f1c7 | 17691 | THREADS_LINK= |
009fead0 | 17692 | THREADS_CFLAGS= |
7274f1c7 RL |
17693 | |
17694 | if test "$wxUSE_THREADS" = "yes" ; then | |
17695 | if test "$wxUSE_WINE" = 1 ; then | |
8284b0c5 | 17696 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
17697 | wxUSE_THREADS="no" |
17698 | elif test "$USE_BEOS" = 1; then | |
8284b0c5 | 17699 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
17700 | wxUSE_THREADS="no" |
17701 | fi | |
4f14bcd8 | 17702 | fi |
4f14bcd8 | 17703 | |
7274f1c7 | 17704 | if test "$wxUSE_THREADS" = "yes" ; then |
8284b0c5 MB |
17705 | |
17706 | ||
009fead0 VZ |
17707 | THREAD_OPTS="-pthread" |
17708 | case "${host}" in | |
17709 | *-*-solaris2* | *-*-sunos4* ) | |
17710 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 17711 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
17712 | else |
17713 | THREAD_OPTS="-mt $THREAD_OPTS" | |
17714 | fi | |
17715 | ;; | |
17716 | *-*-freebsd*) | |
17717 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
17718 | ;; | |
17234b26 MB |
17719 | *-*-darwin* | *-*-cygwin* ) |
17720 | THREAD_OPTS="" | |
4101db81 | 17721 | ;; |
8f4a9a10 | 17722 | *-*-aix*) |
009fead0 VZ |
17723 | THREAD_OPTS="pthreads" |
17724 | ;; | |
009fead0 | 17725 | esac |
4f14bcd8 | 17726 | |
02a1dfba | 17727 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 17728 | |
009fead0 VZ |
17729 | THREADS_OK=no |
17730 | for flag in $THREAD_OPTS; do | |
17731 | case $flag in | |
17732 | none) | |
8284b0c5 MB |
17733 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 |
17734 | echo "configure:17735: checking whether pthreads work without any flags" >&5 | |
009fead0 | 17735 | ;; |
698dcdb6 | 17736 | |
009fead0 | 17737 | -*) |
8284b0c5 MB |
17738 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 |
17739 | echo "configure:17740: checking whether pthreads work with $flag" >&5 | |
009fead0 VZ |
17740 | THREADS_CFLAGS="$flag" |
17741 | ;; | |
698dcdb6 | 17742 | |
009fead0 | 17743 | *) |
8284b0c5 MB |
17744 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 |
17745 | echo "configure:17746: checking for the pthreads library -l$flag" >&5 | |
009fead0 VZ |
17746 | THREADS_LINK="-l$flag" |
17747 | ;; | |
17748 | esac | |
10f2d63a | 17749 | |
009fead0 VZ |
17750 | save_LIBS="$LIBS" |
17751 | save_CFLAGS="$CFLAGS" | |
17752 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 17753 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 17754 | |
8284b0c5 MB |
17755 | cat > conftest.$ac_ext <<EOF |
17756 | #line 17757 "configure" | |
009fead0 VZ |
17757 | #include "confdefs.h" |
17758 | #include <pthread.h> | |
8284b0c5 | 17759 | int main() { |
009fead0 | 17760 | pthread_create(0,0,0,0); |
8284b0c5 MB |
17761 | ; return 0; } |
17762 | EOF | |
17763 | if { (eval echo configure:17764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17764 | rm -rf conftest* | |
009fead0 | 17765 | THREADS_OK=yes |
10f2d63a | 17766 | else |
8284b0c5 MB |
17767 | echo "configure: failed program was:" >&5 |
17768 | cat conftest.$ac_ext >&5 | |
6232543b | 17769 | fi |
8284b0c5 | 17770 | rm -f conftest* |
698dcdb6 | 17771 | |
009fead0 VZ |
17772 | LIBS="$save_LIBS" |
17773 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 17774 | |
8284b0c5 | 17775 | echo "$ac_t""$THREADS_OK" 1>&6 |
009fead0 VZ |
17776 | if test "x$THREADS_OK" = "xyes"; then |
17777 | break; | |
17778 | fi | |
d9b9876f | 17779 | |
009fead0 VZ |
17780 | THREADS_LINK="" |
17781 | THREADS_CFLAGS="" | |
17782 | done | |
4f14bcd8 | 17783 | |
009fead0 VZ |
17784 | if test "x$THREADS_OK" != "xyes"; then |
17785 | wxUSE_THREADS=no | |
8284b0c5 | 17786 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
009fead0 | 17787 | else |
fe5a9cab VZ |
17788 | LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS" |
17789 | ||
8284b0c5 MB |
17790 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
17791 | echo "configure:17792: checking if more special flags are required for pthreads" >&5 | |
009fead0 VZ |
17792 | flag=no |
17793 | case "${host}" in | |
17794 | *-aix* | *-freebsd*) | |
17795 | flag="-D_THREAD_SAFE" | |
17796 | ;; | |
17797 | *solaris* | alpha*-osf*) | |
17798 | flag="-D_REENTRANT" | |
17799 | ;; | |
17800 | esac | |
8284b0c5 | 17801 | echo "$ac_t""${flag}" 1>&6 |
009fead0 | 17802 | if test "x$flag" != xno; then |
04727afd | 17803 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
17804 | fi |
17805 | ||
009fead0 | 17806 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 17807 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
17808 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
17809 | fi | |
17810 | fi | |
4f14bcd8 | 17811 | fi |
4f14bcd8 | 17812 | |
7274f1c7 | 17813 | if test "$wxUSE_THREADS" = "yes" ; then |
8284b0c5 | 17814 | for ac_func in thr_setconcurrency |
4f14bcd8 | 17815 | do |
8284b0c5 MB |
17816 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
17817 | echo "configure:17818: checking for $ac_func" >&5 | |
17818 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
17819 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17820 | else | |
17821 | cat > conftest.$ac_ext <<EOF | |
17822 | #line 17823 "configure" | |
d9b9876f | 17823 | #include "confdefs.h" |
4f14bcd8 | 17824 | /* System header to define __stub macros and hopefully few prototypes, |
8284b0c5 | 17825 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17826 | #include <assert.h> |
17827 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17828 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
17829 | builtin and then its argument prototype would still apply. */ |
17830 | char $ac_func(); | |
17831 | ||
17832 | int main() { | |
d9b9876f | 17833 | |
4f14bcd8 GD |
17834 | /* The GNU C library defines this for functions which it implements |
17835 | to always fail with ENOSYS. Some functions are actually named | |
17836 | something starting with __ and the normal name is an alias. */ | |
17837 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17838 | choke me | |
17839 | #else | |
8284b0c5 | 17840 | $ac_func(); |
4f14bcd8 GD |
17841 | #endif |
17842 | ||
8284b0c5 | 17843 | ; return 0; } |
698dcdb6 | 17844 | EOF |
8284b0c5 MB |
17845 | if { (eval echo configure:17846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
17846 | rm -rf conftest* | |
17847 | eval "ac_cv_func_$ac_func=yes" | |
17848 | else | |
17849 | echo "configure: failed program was:" >&5 | |
17850 | cat conftest.$ac_ext >&5 | |
17851 | rm -rf conftest* | |
17852 | eval "ac_cv_func_$ac_func=no" | |
17853 | fi | |
17854 | rm -f conftest* | |
17855 | fi | |
698dcdb6 | 17856 | |
8284b0c5 MB |
17857 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17858 | echo "$ac_t""yes" 1>&6 | |
17859 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17860 | cat >> confdefs.h <<EOF | |
17861 | #define $ac_tr_func 1 | |
17862 | EOF | |
17863 | ||
17864 | else | |
17865 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 17866 | fi |
4f14bcd8 | 17867 | done |
10f2d63a | 17868 | |
8284b0c5 MB |
17869 | |
17870 | for ac_hdr in sched.h | |
4f14bcd8 | 17871 | do |
8284b0c5 MB |
17872 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17873 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17874 | echo "configure:17875: checking for $ac_hdr" >&5 | |
17875 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
17876 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17877 | else | |
17878 | cat > conftest.$ac_ext <<EOF | |
17879 | #line 17880 "configure" | |
4f14bcd8 | 17880 | #include "confdefs.h" |
8284b0c5 MB |
17881 | #include <$ac_hdr> |
17882 | EOF | |
17883 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17884 | { (eval echo configure:17885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
17885 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
17886 | if test -z "$ac_err"; then | |
17887 | rm -rf conftest* | |
17888 | eval "ac_cv_header_$ac_safe=yes" | |
5c6fa7d2 | 17889 | else |
8284b0c5 MB |
17890 | echo "$ac_err" >&5 |
17891 | echo "configure: failed program was:" >&5 | |
4f14bcd8 | 17892 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
17893 | rm -rf conftest* |
17894 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 17895 | fi |
8284b0c5 | 17896 | rm -f conftest* |
10f2d63a | 17897 | fi |
8284b0c5 MB |
17898 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17899 | echo "$ac_t""yes" 1>&6 | |
17900 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17901 | cat >> confdefs.h <<EOF | |
17902 | #define $ac_tr_hdr 1 | |
f6bcfd97 | 17903 | EOF |
8284b0c5 MB |
17904 | |
17905 | else | |
17906 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 17907 | fi |
4f14bcd8 | 17908 | done |
f6bcfd97 | 17909 | |
009fead0 | 17910 | if test "$ac_cv_header_sched_h" = "yes"; then |
8284b0c5 MB |
17911 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 |
17912 | echo "configure:17913: checking for sched_yield" >&5 | |
17913 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then | |
17914 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 17915 | else |
8284b0c5 MB |
17916 | cat > conftest.$ac_ext <<EOF |
17917 | #line 17918 "configure" | |
4f14bcd8 | 17918 | #include "confdefs.h" |
009fead0 | 17919 | /* System header to define __stub macros and hopefully few prototypes, |
8284b0c5 | 17920 | which can conflict with char sched_yield(); below. */ |
009fead0 | 17921 | #include <assert.h> |
4f14bcd8 GD |
17922 | /* Override any gcc2 internal prototype to avoid an error. */ |
17923 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
17924 | builtin and then its argument prototype would still apply. */ |
17925 | char sched_yield(); | |
17926 | ||
17927 | int main() { | |
009fead0 VZ |
17928 | |
17929 | /* The GNU C library defines this for functions which it implements | |
17930 | to always fail with ENOSYS. Some functions are actually named | |
17931 | something starting with __ and the normal name is an alias. */ | |
17932 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
17933 | choke me | |
17934 | #else | |
8284b0c5 | 17935 | sched_yield(); |
009fead0 VZ |
17936 | #endif |
17937 | ||
8284b0c5 MB |
17938 | ; return 0; } |
17939 | EOF | |
17940 | if { (eval echo configure:17941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17941 | rm -rf conftest* | |
17942 | eval "ac_cv_func_sched_yield=yes" | |
17943 | else | |
17944 | echo "configure: failed program was:" >&5 | |
17945 | cat conftest.$ac_ext >&5 | |
17946 | rm -rf conftest* | |
17947 | eval "ac_cv_func_sched_yield=no" | |
17948 | fi | |
17949 | rm -f conftest* | |
17950 | fi | |
17951 | ||
17952 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
17953 | echo "$ac_t""yes" 1>&6 | |
17954 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17955 | #define HAVE_SCHED_YIELD 1 |
10f2d63a VZ |
17956 | EOF |
17957 | ||
4f14bcd8 | 17958 | else |
8284b0c5 | 17959 | echo "$ac_t""no" 1>&6 |
009fead0 | 17960 | |
8284b0c5 MB |
17961 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 |
17962 | echo "configure:17963: checking for sched_yield in -lposix4" >&5 | |
17963 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` | |
17964 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17965 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 17966 | else |
8284b0c5 | 17967 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17968 | LIBS="-lposix4 $LIBS" |
8284b0c5 MB |
17969 | cat > conftest.$ac_ext <<EOF |
17970 | #line 17971 "configure" | |
4f14bcd8 GD |
17971 | #include "confdefs.h" |
17972 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17973 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
17974 | builtin and then its argument prototype would still apply. */ |
17975 | char sched_yield(); | |
17976 | ||
17977 | int main() { | |
17978 | sched_yield() | |
17979 | ; return 0; } | |
17980 | EOF | |
17981 | if { (eval echo configure:17982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17982 | rm -rf conftest* | |
17983 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17984 | else | |
17985 | echo "configure: failed program was:" >&5 | |
17986 | cat conftest.$ac_ext >&5 | |
17987 | rm -rf conftest* | |
17988 | eval "ac_cv_lib_$ac_lib_var=no" | |
17989 | fi | |
17990 | rm -f conftest* | |
17991 | LIBS="$ac_save_LIBS" | |
17992 | ||
17993 | fi | |
17994 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17995 | echo "$ac_t""yes" 1>&6 | |
17996 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17997 | #define HAVE_SCHED_YIELD 1 |
54276ccf | 17998 | EOF |
3d63bc3a | 17999 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 18000 | else |
8284b0c5 MB |
18001 | echo "$ac_t""no" 1>&6 |
18002 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
18003 | ||
54276ccf VZ |
18004 | fi |
18005 | ||
8284b0c5 MB |
18006 | |
18007 | ||
4f14bcd8 | 18008 | fi |
698dcdb6 | 18009 | |
009fead0 | 18010 | fi |
10f2d63a | 18011 | |
7274f1c7 | 18012 | HAVE_PRIOR_FUNCS=0 |
8284b0c5 MB |
18013 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
18014 | echo "configure:18015: checking for pthread_attr_getschedpolicy" >&5 | |
18015 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then | |
18016 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 18017 | else |
8284b0c5 MB |
18018 | cat > conftest.$ac_ext <<EOF |
18019 | #line 18020 "configure" | |
422107f9 | 18020 | #include "confdefs.h" |
009fead0 | 18021 | /* System header to define __stub macros and hopefully few prototypes, |
8284b0c5 | 18022 | which can conflict with char pthread_attr_getschedpolicy(); below. */ |
009fead0 | 18023 | #include <assert.h> |
4f14bcd8 GD |
18024 | /* Override any gcc2 internal prototype to avoid an error. */ |
18025 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
18026 | builtin and then its argument prototype would still apply. */ |
18027 | char pthread_attr_getschedpolicy(); | |
18028 | ||
18029 | int main() { | |
009fead0 VZ |
18030 | |
18031 | /* The GNU C library defines this for functions which it implements | |
18032 | to always fail with ENOSYS. Some functions are actually named | |
18033 | something starting with __ and the normal name is an alias. */ | |
18034 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
18035 | choke me | |
18036 | #else | |
8284b0c5 | 18037 | pthread_attr_getschedpolicy(); |
009fead0 VZ |
18038 | #endif |
18039 | ||
8284b0c5 MB |
18040 | ; return 0; } |
18041 | EOF | |
18042 | if { (eval echo configure:18043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18043 | rm -rf conftest* | |
18044 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" | |
18045 | else | |
18046 | echo "configure: failed program was:" >&5 | |
18047 | cat conftest.$ac_ext >&5 | |
18048 | rm -rf conftest* | |
18049 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" | |
18050 | fi | |
18051 | rm -f conftest* | |
18052 | fi | |
18053 | ||
18054 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
18055 | echo "$ac_t""yes" 1>&6 | |
18056 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 | |
18057 | echo "configure:18058: checking for pthread_attr_setschedparam" >&5 | |
18058 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then | |
18059 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 | 18060 | else |
8284b0c5 MB |
18061 | cat > conftest.$ac_ext <<EOF |
18062 | #line 18063 "configure" | |
18063 | #include "confdefs.h" | |
18064 | /* System header to define __stub macros and hopefully few prototypes, | |
18065 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
009fead0 | 18066 | #include <assert.h> |
422107f9 VZ |
18067 | /* Override any gcc2 internal prototype to avoid an error. */ |
18068 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
18069 | builtin and then its argument prototype would still apply. */ |
18070 | char pthread_attr_setschedparam(); | |
18071 | ||
18072 | int main() { | |
009fead0 VZ |
18073 | |
18074 | /* The GNU C library defines this for functions which it implements | |
18075 | to always fail with ENOSYS. Some functions are actually named | |
18076 | something starting with __ and the normal name is an alias. */ | |
18077 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
18078 | choke me | |
18079 | #else | |
8284b0c5 | 18080 | pthread_attr_setschedparam(); |
009fead0 VZ |
18081 | #endif |
18082 | ||
8284b0c5 MB |
18083 | ; return 0; } |
18084 | EOF | |
18085 | if { (eval echo configure:18086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18086 | rm -rf conftest* | |
18087 | eval "ac_cv_func_pthread_attr_setschedparam=yes" | |
18088 | else | |
18089 | echo "configure: failed program was:" >&5 | |
18090 | cat conftest.$ac_ext >&5 | |
18091 | rm -rf conftest* | |
18092 | eval "ac_cv_func_pthread_attr_setschedparam=no" | |
18093 | fi | |
18094 | rm -f conftest* | |
18095 | fi | |
18096 | ||
18097 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
18098 | echo "$ac_t""yes" 1>&6 | |
18099 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 | |
18100 | echo "configure:18101: checking for sched_get_priority_max" >&5 | |
18101 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then | |
18102 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18103 | else | |
18104 | cat > conftest.$ac_ext <<EOF | |
18105 | #line 18106 "configure" | |
422107f9 | 18106 | #include "confdefs.h" |
009fead0 VZ |
18107 | /* System header to define __stub macros and hopefully few prototypes |
18108 | else | |
8284b0c5 MB |
18109 | echo "$ac_t""no" 1>&6 |
18110 | which can conflict with char sched_get_priority_max(); below. */ | |
009fead0 | 18111 | #include <assert.h> |
4f14bcd8 GD |
18112 | /* Override any gcc2 internal prototype to avoid an error. */ |
18113 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
18114 | builtin and then its argument prototype would still apply. */ |
18115 | char sched_get_priority_max(); | |
18116 | ||
18117 | int main() { | |
009fead0 VZ |
18118 | |
18119 | /* The GNU C library defines this for functions which it implements | |
18120 | to always fail with ENOSYS. Some functions are actually named | |
18121 | something starting with __ and the normal name is an alias. */ | |
18122 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
18123 | choke me | |
18124 | #else | |
8284b0c5 | 18125 | sched_get_priority_max(); |
009fead0 VZ |
18126 | #endif |
18127 | ||
8284b0c5 MB |
18128 | ; return 0; } |
18129 | EOF | |
18130 | if { (eval echo configure:18131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18131 | rm -rf conftest* | |
18132 | eval "ac_cv_func_sched_get_priority_max=yes" | |
18133 | else | |
18134 | echo "configure: failed program was:" >&5 | |
18135 | cat conftest.$ac_ext >&5 | |
18136 | rm -rf conftest* | |
18137 | eval "ac_cv_func_sched_get_priority_max=no" | |
18138 | fi | |
18139 | rm -f conftest* | |
18140 | fi | |
18141 | ||
18142 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
18143 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
18144 | HAVE_PRIOR_FUNCS=1 |
18145 | else | |
8284b0c5 MB |
18146 | echo "$ac_t""no" 1>&6 |
18147 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
18148 | echo "configure:18149: checking for sched_get_priority_max in -lposix4" >&5 | |
18149 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` | |
18150 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18151 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 18152 | else |
8284b0c5 | 18153 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18154 | LIBS="-lposix4 $LIBS" |
8284b0c5 MB |
18155 | cat > conftest.$ac_ext <<EOF |
18156 | #line 18157 "configure" | |
422107f9 VZ |
18157 | #include "confdefs.h" |
18158 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18159 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
18160 | builtin and then its argument prototype would still apply. */ |
18161 | char sched_get_priority_max(); | |
18162 | ||
18163 | int main() { | |
18164 | sched_get_priority_max() | |
18165 | ; return 0; } | |
18166 | EOF | |
18167 | if { (eval echo configure:18168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18168 | rm -rf conftest* | |
18169 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18170 | else | |
18171 | echo "configure: failed program was:" >&5 | |
18172 | cat conftest.$ac_ext >&5 | |
18173 | rm -rf conftest* | |
18174 | eval "ac_cv_lib_$ac_lib_var=no" | |
18175 | fi | |
18176 | rm -f conftest* | |
18177 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 18178 | |
8284b0c5 MB |
18179 | fi |
18180 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18181 | echo "$ac_t""yes" 1>&6 | |
18182 | ||
7274f1c7 RL |
18183 | HAVE_PRIOR_FUNCS=1 |
18184 | POSIX4_LINK=" -lposix4" | |
8284b0c5 MB |
18185 | |
18186 | else | |
18187 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 18188 | fi |
463abc64 | 18189 | |
8284b0c5 | 18190 | |
328a083c | 18191 | fi |
463abc64 | 18192 | |
8284b0c5 MB |
18193 | |
18194 | else | |
18195 | echo "$ac_t""no" 1>&6 | |
7b4a847f | 18196 | fi |
579d8138 | 18197 | |
8284b0c5 | 18198 | |
5c6fa7d2 | 18199 | fi |
52127426 | 18200 | |
8284b0c5 | 18201 | |
7274f1c7 | 18202 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
8284b0c5 | 18203 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18204 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
698dcdb6 | 18205 | EOF |
463abc64 | 18206 | |
7274f1c7 | 18207 | else |
8284b0c5 | 18208 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
7274f1c7 | 18209 | fi |
463abc64 | 18210 | |
8284b0c5 MB |
18211 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
18212 | echo "configure:18213: checking for pthread_cancel" >&5 | |
18213 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then | |
18214 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 18215 | else |
8284b0c5 MB |
18216 | cat > conftest.$ac_ext <<EOF |
18217 | #line 18218 "configure" | |
422107f9 | 18218 | #include "confdefs.h" |
009fead0 | 18219 | /* System header to define __stub macros and hopefully few prototypes, |
8284b0c5 | 18220 | which can conflict with char pthread_cancel(); below. */ |
009fead0 | 18221 | #include <assert.h> |
422107f9 VZ |
18222 | /* Override any gcc2 internal prototype to avoid an error. */ |
18223 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
18224 | builtin and then its argument prototype would still apply. */ |
18225 | char pthread_cancel(); | |
18226 | ||
18227 | int main() { | |
009fead0 VZ |
18228 | |
18229 | /* The GNU C library defines this for functions which it implements | |
18230 | to always fail with ENOSYS. Some functions are actually named | |
18231 | something starting with __ and the normal name is an alias. */ | |
18232 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
18233 | choke me | |
18234 | #else | |
8284b0c5 | 18235 | pthread_cancel(); |
009fead0 VZ |
18236 | #endif |
18237 | ||
8284b0c5 MB |
18238 | ; return 0; } |
18239 | EOF | |
18240 | if { (eval echo configure:18241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18241 | rm -rf conftest* | |
18242 | eval "ac_cv_func_pthread_cancel=yes" | |
18243 | else | |
18244 | echo "configure: failed program was:" >&5 | |
18245 | cat conftest.$ac_ext >&5 | |
18246 | rm -rf conftest* | |
18247 | eval "ac_cv_func_pthread_cancel=no" | |
18248 | fi | |
18249 | rm -f conftest* | |
18250 | fi | |
18251 | ||
18252 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
18253 | echo "$ac_t""yes" 1>&6 | |
18254 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
18255 | #define HAVE_PTHREAD_CANCEL 1 |
18256 | EOF | |
18257 | ||
698dcdb6 | 18258 | else |
8284b0c5 MB |
18259 | echo "$ac_t""no" 1>&6 |
18260 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
422107f9 VZ |
18261 | fi |
18262 | ||
5c6fa7d2 | 18263 | |
8284b0c5 MB |
18264 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
18265 | echo "configure:18266: checking for pthread_cleanup_push/pop" >&5 | |
18266 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then | |
18267 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18268 | else | |
18269 | ||
18270 | cat > conftest.$ac_ext <<EOF | |
18271 | #line 18272 "configure" | |
4f14bcd8 GD |
18272 | #include "confdefs.h" |
18273 | #include <pthread.h> | |
8284b0c5 | 18274 | int main() { |
4f14bcd8 | 18275 | |
7274f1c7 RL |
18276 | pthread_cleanup_push(NULL, NULL); |
18277 | pthread_cleanup_pop(0); | |
8284b0c5 MB |
18278 | |
18279 | ; return 0; } | |
18280 | EOF | |
18281 | if { (eval echo configure:18282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18282 | rm -rf conftest* | |
18283 | ||
7274f1c7 | 18284 | wx_cv_func_pthread_cleanup_push=yes |
8284b0c5 | 18285 | |
4f14bcd8 | 18286 | else |
8284b0c5 MB |
18287 | echo "configure: failed program was:" >&5 |
18288 | cat conftest.$ac_ext >&5 | |
18289 | rm -rf conftest* | |
18290 | ||
7274f1c7 | 18291 | wx_cv_func_pthread_cleanup_push=no |
8284b0c5 | 18292 | |
7b4a847f | 18293 | fi |
8284b0c5 MB |
18294 | rm -f conftest* |
18295 | ||
5c6fa7d2 | 18296 | fi |
8284b0c5 MB |
18297 | |
18298 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
4f14bcd8 | 18299 | |
7274f1c7 | 18300 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
8284b0c5 | 18301 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18302 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
c7a2bf27 RR |
18303 | EOF |
18304 | ||
7274f1c7 | 18305 | fi |
4f14bcd8 | 18306 | |
8284b0c5 MB |
18307 | |
18308 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
18309 | echo "configure:18310: checking for pthread_mutexattr_t" >&5 | |
18310 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then | |
18311 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 18312 | else |
8284b0c5 MB |
18313 | |
18314 | cat > conftest.$ac_ext <<EOF | |
18315 | #line 18316 "configure" | |
0dcf9893 | 18316 | #include "confdefs.h" |
4f14bcd8 | 18317 | #include <pthread.h> |
8284b0c5 | 18318 | int main() { |
4f14bcd8 | 18319 | |
7274f1c7 RL |
18320 | pthread_mutexattr_t attr; |
18321 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
8284b0c5 MB |
18322 | |
18323 | ; return 0; } | |
18324 | EOF | |
18325 | if { (eval echo configure:18326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18326 | rm -rf conftest* | |
18327 | ||
7274f1c7 | 18328 | wx_cv_type_pthread_mutexattr_t=yes |
8284b0c5 | 18329 | |
3fed1840 | 18330 | else |
8284b0c5 MB |
18331 | echo "configure: failed program was:" >&5 |
18332 | cat conftest.$ac_ext >&5 | |
18333 | rm -rf conftest* | |
18334 | ||
7274f1c7 | 18335 | wx_cv_type_pthread_mutexattr_t=no |
8284b0c5 MB |
18336 | |
18337 | ||
7b4a847f | 18338 | fi |
8284b0c5 MB |
18339 | rm -f conftest* |
18340 | ||
5c6fa7d2 | 18341 | fi |
8284b0c5 MB |
18342 | |
18343 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
4f14bcd8 | 18344 | |
7274f1c7 | 18345 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
8284b0c5 | 18346 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18347 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
18348 | EOF | |
18349 | ||
7274f1c7 | 18350 | else |
8284b0c5 MB |
18351 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
18352 | echo "configure:18353: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
18353 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then | |
18354 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18355 | else | |
18356 | ||
18357 | cat > conftest.$ac_ext <<EOF | |
18358 | #line 18359 "configure" | |
3fed1840 | 18359 | #include "confdefs.h" |
4f14bcd8 | 18360 | #include <pthread.h> |
8284b0c5 | 18361 | int main() { |
4f14bcd8 | 18362 | |
7274f1c7 | 18363 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
8284b0c5 MB |
18364 | |
18365 | ; return 0; } | |
18366 | EOF | |
18367 | if { (eval echo configure:18368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18368 | rm -rf conftest* | |
18369 | ||
7274f1c7 | 18370 | wx_cv_type_pthread_rec_mutex_init=yes |
8284b0c5 | 18371 | |
698dcdb6 | 18372 | else |
8284b0c5 MB |
18373 | echo "configure: failed program was:" >&5 |
18374 | cat conftest.$ac_ext >&5 | |
18375 | rm -rf conftest* | |
18376 | ||
7274f1c7 | 18377 | wx_cv_type_pthread_rec_mutex_init=no |
8284b0c5 MB |
18378 | |
18379 | ||
7b4a847f | 18380 | fi |
8284b0c5 MB |
18381 | rm -f conftest* |
18382 | ||
5c6fa7d2 | 18383 | fi |
8284b0c5 MB |
18384 | |
18385 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
7274f1c7 | 18386 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
8284b0c5 | 18387 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18388 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
18389 | EOF | |
3fed1840 | 18390 | |
7274f1c7 | 18391 | else |
8284b0c5 | 18392 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
7274f1c7 RL |
18393 | fi |
18394 | fi | |
7274f1c7 | 18395 | fi |
3fed1840 | 18396 | |
4f14bcd8 GD |
18397 | fi |
18398 | ||
18399 | if test "$wxUSE_THREADS" = "yes"; then | |
8284b0c5 | 18400 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18401 | #define wxUSE_THREADS 1 |
7b6058cd GD |
18402 | EOF |
18403 | ||
8284b0c5 | 18404 | |
4f14bcd8 | 18405 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 18406 | else |
4f14bcd8 | 18407 | if test "$ac_cv_func_strtok_r" = "yes"; then |
8284b0c5 MB |
18408 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
18409 | echo "configure:18410: checking if -D_REENTRANT is needed" >&5 | |
4f14bcd8 GD |
18410 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
18411 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
8284b0c5 | 18412 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 18413 | else |
8284b0c5 | 18414 | echo "$ac_t""no" 1>&6 |
4f14bcd8 GD |
18415 | fi |
18416 | fi | |
18417 | fi | |
18418 | ||
18419 | if test "$WXGTK20" = 1 ; then | |
8284b0c5 | 18420 | cat >> confdefs.h <<EOF |
4f14bcd8 | 18421 | #define __WXGTK20__ $WXGTK20 |
698dcdb6 | 18422 | EOF |
4f14bcd8 GD |
18423 | |
18424 | WXGTK12=1 | |
10f2d63a | 18425 | fi |
4f14bcd8 GD |
18426 | |
18427 | if test "$WXGTK12" = 1 ; then | |
8284b0c5 | 18428 | cat >> confdefs.h <<EOF |
4f14bcd8 GD |
18429 | #define __WXGTK12__ $WXGTK12 |
18430 | EOF | |
18431 | ||
10f2d63a | 18432 | fi |
698dcdb6 | 18433 | |
4f14bcd8 | 18434 | if test "$WXGTK127" = 1 ; then |
8284b0c5 | 18435 | cat >> confdefs.h <<EOF |
4f14bcd8 | 18436 | #define __WXGTK127__ $WXGTK127 |
698dcdb6 | 18437 | EOF |
4f14bcd8 | 18438 | |
698dcdb6 | 18439 | fi |
10f2d63a | 18440 | |
4f14bcd8 GD |
18441 | WXDEBUG= |
18442 | ||
18443 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
18444 | WXDEBUG="-g" | |
18445 | wxUSE_OPTIMISE=no | |
698dcdb6 | 18446 | fi |
4f14bcd8 GD |
18447 | |
18448 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
18449 | wxUSE_DEBUG_INFO=yes | |
18450 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
18451 | fi |
18452 | ||
4f14bcd8 | 18453 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
8284b0c5 | 18454 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18455 | #define WXDEBUG 1 |
18456 | EOF | |
18457 | ||
18458 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 18459 | else |
4f14bcd8 GD |
18460 | if test "$wxUSE_GTK" = 1 ; then |
18461 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
18462 | fi | |
18463 | fi | |
18464 | ||
18465 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
8284b0c5 | 18466 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18467 | #define wxUSE_MEMORY_TRACING 1 |
18468 | EOF | |
18469 | ||
8284b0c5 | 18470 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18471 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
18472 | EOF | |
18473 | ||
8284b0c5 | 18474 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18475 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
18476 | EOF | |
18477 | ||
18478 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
18479 | fi | |
18480 | ||
18481 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 18482 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
18483 | fi |
18484 | ||
18485 | PROFILE= | |
18486 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 18487 | PROFILE=" -pg" |
10f2d63a VZ |
18488 | fi |
18489 | ||
009fead0 VZ |
18490 | CODE_GEN_FLAGS= |
18491 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 18492 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
18493 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
18494 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 18495 | fi |
4f14bcd8 GD |
18496 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
18497 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
18498 | fi | |
18499 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
18500 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
18501 | fi | |
4f14bcd8 GD |
18502 | if test "$USE_WIN32" = 1 ; then |
18503 | # I'm not even really sure what this was ever added to solve, | |
18504 | # but someone added it for mingw native builds, so I guess | |
18505 | # they had a reason, right?? | |
18506 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
18507 | fi | |
1d1b75ac VZ |
18508 | |
18509 | case "${host}" in | |
18510 | powerpc*-*-aix* ) | |
18511 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
18512 | ;; | |
18513 | esac | |
4f14bcd8 GD |
18514 | fi |
18515 | ||
4f14bcd8 GD |
18516 | if test "$wxUSE_OPTIMISE" = "no" ; then |
18517 | OPTIMISE= | |
18518 | else | |
18519 | if test "$GCC" = yes ; then | |
18520 | OPTIMISE="-O2" | |
18521 | case "${host}" in | |
18522 | i586-*-*|i686-*-* ) | |
18523 | OPTIMISE="${OPTIMISE} " | |
18524 | ;; | |
18525 | esac | |
18526 | else | |
18527 | OPTIMISE="-O" | |
18528 | fi | |
18529 | fi | |
18530 | ||
18531 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
8284b0c5 | 18532 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18533 | #define WXWIN_COMPATIBILITY_2 1 |
18534 | EOF | |
18535 | ||
8284b0c5 | 18536 | |
4f14bcd8 GD |
18537 | WXWIN_COMPATIBILITY_2_2="yes" |
18538 | fi | |
18539 | ||
0c9a1c32 | 18540 | if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then |
8284b0c5 | 18541 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18542 | #define WXWIN_COMPATIBILITY_2_2 1 |
18543 | EOF | |
18544 | ||
10f2d63a VZ |
18545 | fi |
18546 | ||
8284b0c5 | 18547 | |
10f2d63a | 18548 | if test "$wxUSE_GUI" = "yes"; then |
8284b0c5 | 18549 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18550 | #define wxUSE_GUI 1 |
18551 | EOF | |
18552 | ||
8284b0c5 | 18553 | |
10f2d63a | 18554 | else |
8284b0c5 | 18555 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18556 | #define wxUSE_NOGUI 1 |
18557 | EOF | |
18558 | ||
18559 | fi | |
18560 | ||
8284b0c5 | 18561 | |
10f2d63a | 18562 | if test "$wxUSE_UNIX" = "yes"; then |
8284b0c5 | 18563 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18564 | #define wxUSE_UNIX 1 |
18565 | EOF | |
18566 | ||
18567 | fi | |
18568 | ||
8284b0c5 | 18569 | |
10f2d63a | 18570 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
8284b0c5 | 18571 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18572 | #define wxUSE_APPLE_IEEE 1 |
18573 | EOF | |
18574 | ||
18575 | fi | |
18576 | ||
1e6feb95 | 18577 | if test "$wxUSE_TIMER" = "yes"; then |
8284b0c5 | 18578 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
18579 | #define wxUSE_TIMER 1 |
18580 | EOF | |
18581 | ||
18582 | fi | |
18583 | ||
10f2d63a | 18584 | if test "$wxUSE_WAVE" = "yes"; then |
8284b0c5 | 18585 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18586 | #define wxUSE_WAVE 1 |
18587 | EOF | |
18588 | ||
18589 | fi | |
18590 | ||
1e6feb95 | 18591 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
8284b0c5 | 18592 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
18593 | #define wxUSE_CMDLINE_PARSER 1 |
18594 | EOF | |
18595 | ||
18596 | fi | |
18597 | ||
18598 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
8284b0c5 | 18599 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
18600 | #define wxUSE_STOPWATCH 1 |
18601 | EOF | |
18602 | ||
18603 | fi | |
18604 | ||
18605 | if test "$wxUSE_DATETIME" = "yes"; then | |
8284b0c5 | 18606 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
18607 | #define wxUSE_DATETIME 1 |
18608 | EOF | |
18609 | ||
18610 | fi | |
18611 | ||
18612 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
8284b0c5 | 18613 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
18614 | #define wxUSE_TIMEDATE 1 |
18615 | EOF | |
18616 | ||
18617 | fi | |
18618 | ||
10f2d63a | 18619 | if test "$wxUSE_FILE" = "yes"; then |
8284b0c5 | 18620 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18621 | #define wxUSE_FILE 1 |
18622 | EOF | |
18623 | ||
18624 | fi | |
18625 | ||
1e6feb95 | 18626 | if test "$wxUSE_FFILE" = "yes"; then |
8284b0c5 | 18627 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
18628 | #define wxUSE_FFILE 1 |
18629 | EOF | |
18630 | ||
18631 | fi | |
18632 | ||
24528b0c | 18633 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
8284b0c5 | 18634 | cat >> confdefs.h <<\EOF |
24528b0c VS |
18635 | #define wxUSE_FILESYSTEM 1 |
18636 | EOF | |
18637 | ||
18638 | fi | |
18639 | ||
10f2d63a | 18640 | if test "$wxUSE_FS_INET" = "yes"; then |
8284b0c5 | 18641 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18642 | #define wxUSE_FS_INET 1 |
18643 | EOF | |
18644 | ||
18645 | fi | |
18646 | ||
18647 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
8284b0c5 | 18648 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18649 | #define wxUSE_FS_ZIP 1 |
18650 | EOF | |
18651 | ||
18652 | fi | |
18653 | ||
18654 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
8284b0c5 | 18655 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18656 | #define wxUSE_ZIPSTREAM 1 |
18657 | EOF | |
18658 | ||
18659 | fi | |
18660 | ||
eb4efbdc | 18661 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
8284b0c5 | 18662 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
18663 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
18664 | EOF | |
18665 | ||
18666 | fi | |
18667 | ||
4f3c5f06 | 18668 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
8284b0c5 | 18669 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
18670 | #define wxUSE_SNGLINST_CHECKER 1 |
18671 | EOF | |
18672 | ||
18673 | fi | |
18674 | ||
10f2d63a | 18675 | if test "$wxUSE_BUSYINFO" = "yes"; then |
8284b0c5 | 18676 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18677 | #define wxUSE_BUSYINFO 1 |
18678 | EOF | |
18679 | ||
18680 | fi | |
18681 | ||
18682 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
8284b0c5 | 18683 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18684 | #define wxUSE_STD_IOSTREAM 1 |
18685 | EOF | |
18686 | ||
18687 | fi | |
18688 | ||
a3a584a7 | 18689 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
8284b0c5 | 18690 | cat >> confdefs.h <<\EOF |
a3a584a7 VZ |
18691 | #define wxUSE_TEXTBUFFER 1 |
18692 | EOF | |
18693 | ||
18694 | fi | |
18695 | ||
10f2d63a | 18696 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 18697 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
8284b0c5 | 18698 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 18699 | else |
8284b0c5 | 18700 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18701 | #define wxUSE_TEXTFILE 1 |
18702 | EOF | |
18703 | ||
18704 | fi | |
18705 | fi | |
18706 | ||
18707 | if test "$wxUSE_CONFIG" = "yes" ; then | |
18708 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
8284b0c5 | 18709 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 18710 | else |
8284b0c5 | 18711 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18712 | #define wxUSE_CONFIG 1 |
18713 | EOF | |
18714 | ||
18715 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
18716 | fi | |
18717 | fi | |
18718 | ||
18719 | if test "$wxUSE_INTL" = "yes" ; then | |
18720 | if test "$wxUSE_FILE" != "yes"; then | |
8284b0c5 | 18721 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 18722 | else |
8284b0c5 | 18723 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18724 | #define wxUSE_INTL 1 |
18725 | EOF | |
18726 | ||
18727 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 18728 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
18729 | fi |
18730 | fi | |
18731 | ||
18732 | if test "$wxUSE_LOG" = "yes"; then | |
8284b0c5 | 18733 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18734 | #define wxUSE_LOG 1 |
18735 | EOF | |
18736 | ||
8284b0c5 | 18737 | |
d73be714 | 18738 | if test "$wxUSE_LOGGUI" = "yes"; then |
8284b0c5 | 18739 | cat >> confdefs.h <<\EOF |
d73be714 VZ |
18740 | #define wxUSE_LOGGUI 1 |
18741 | EOF | |
18742 | ||
18743 | fi | |
18744 | ||
18745 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
8284b0c5 | 18746 | cat >> confdefs.h <<\EOF |
d73be714 | 18747 | #define wxUSE_LOGWINDOW 1 |
69d27ff7 MB |
18748 | EOF |
18749 | ||
18750 | fi | |
18751 | ||
18752 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
8284b0c5 | 18753 | cat >> confdefs.h <<\EOF |
69d27ff7 | 18754 | #define wxUSE_LOG_DIALOG 1 |
d73be714 VZ |
18755 | EOF |
18756 | ||
18757 | fi | |
10f2d63a VZ |
18758 | fi |
18759 | ||
18760 | if test "$wxUSE_LONGLONG" = "yes"; then | |
8284b0c5 | 18761 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18762 | #define wxUSE_LONGLONG 1 |
18763 | EOF | |
18764 | ||
18765 | fi | |
18766 | ||
e8f65ba6 | 18767 | if test "$wxUSE_GEOMETRY" = "yes"; then |
8284b0c5 | 18768 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
18769 | #define wxUSE_GEOMETRY 1 |
18770 | EOF | |
18771 | ||
18772 | fi | |
18773 | ||
10f2d63a | 18774 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
8284b0c5 | 18775 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18776 | #define wxUSE_DIALUP_MANAGER 1 |
18777 | EOF | |
18778 | ||
70f7a477 | 18779 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
18780 | fi |
18781 | ||
18782 | if test "$wxUSE_STREAMS" = "yes" ; then | |
8284b0c5 | 18783 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18784 | #define wxUSE_STREAMS 1 |
18785 | EOF | |
18786 | ||
18787 | fi | |
18788 | ||
5c6fa7d2 | 18789 | |
8284b0c5 MB |
18790 | if test "$wxUSE_DATETIME" = "yes"; then |
18791 | for ac_func in strptime | |
83307f33 | 18792 | do |
8284b0c5 MB |
18793 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
18794 | echo "configure:18795: checking for $ac_func" >&5 | |
18795 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
18796 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18797 | else | |
18798 | cat > conftest.$ac_ext <<EOF | |
18799 | #line 18800 "configure" | |
83307f33 VZ |
18800 | #include "confdefs.h" |
18801 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 18802 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
18803 | #include <assert.h> |
18804 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18805 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
18806 | builtin and then its argument prototype would still apply. */ |
18807 | char $ac_func(); | |
18808 | ||
18809 | int main() { | |
83307f33 VZ |
18810 | |
18811 | /* The GNU C library defines this for functions which it implements | |
18812 | to always fail with ENOSYS. Some functions are actually named | |
18813 | something starting with __ and the normal name is an alias. */ | |
18814 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18815 | choke me | |
18816 | #else | |
8284b0c5 | 18817 | $ac_func(); |
83307f33 VZ |
18818 | #endif |
18819 | ||
8284b0c5 | 18820 | ; return 0; } |
83307f33 | 18821 | EOF |
8284b0c5 MB |
18822 | if { (eval echo configure:18823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18823 | rm -rf conftest* | |
18824 | eval "ac_cv_func_$ac_func=yes" | |
18825 | else | |
18826 | echo "configure: failed program was:" >&5 | |
18827 | cat conftest.$ac_ext >&5 | |
18828 | rm -rf conftest* | |
18829 | eval "ac_cv_func_$ac_func=no" | |
18830 | fi | |
18831 | rm -f conftest* | |
18832 | fi | |
83307f33 | 18833 | |
8284b0c5 MB |
18834 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18835 | echo "$ac_t""yes" 1>&6 | |
18836 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18837 | cat >> confdefs.h <<EOF | |
18838 | #define $ac_tr_func 1 | |
18839 | EOF | |
18840 | ||
18841 | else | |
18842 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
18843 | fi |
18844 | done | |
18845 | ||
5c6fa7d2 | 18846 | |
8284b0c5 MB |
18847 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
18848 | echo "configure:18849: checking for timezone variable in <time.h>" >&5 | |
18849 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then | |
18850 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18851 | else | |
18852 | ||
18853 | cat > conftest.$ac_ext <<EOF | |
18854 | #line 18855 "configure" | |
360d6699 VZ |
18855 | #include "confdefs.h" |
18856 | ||
b4085ce6 | 18857 | #include <time.h> |
8284b0c5 MB |
18858 | |
18859 | int main() { | |
360d6699 VZ |
18860 | |
18861 | int tz; | |
4f11a343 | 18862 | tz = timezone; |
8284b0c5 MB |
18863 | |
18864 | ; return 0; } | |
18865 | EOF | |
18866 | if { (eval echo configure:18867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18867 | rm -rf conftest* | |
18868 | ||
4f11a343 | 18869 | wx_cv_var_timezone=timezone |
8284b0c5 | 18870 | |
360d6699 | 18871 | else |
8284b0c5 MB |
18872 | echo "configure: failed program was:" >&5 |
18873 | cat conftest.$ac_ext >&5 | |
18874 | rm -rf conftest* | |
18875 | ||
18876 | cat > conftest.$ac_ext <<EOF | |
18877 | #line 18878 "configure" | |
360d6699 VZ |
18878 | #include "confdefs.h" |
18879 | ||
b4085ce6 | 18880 | #include <time.h> |
8284b0c5 MB |
18881 | |
18882 | int main() { | |
360d6699 VZ |
18883 | |
18884 | int tz; | |
18885 | tz = _timezone; | |
8284b0c5 MB |
18886 | |
18887 | ; return 0; } | |
18888 | EOF | |
18889 | if { (eval echo configure:18890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18890 | rm -rf conftest* | |
18891 | ||
360d6699 | 18892 | wx_cv_var_timezone=_timezone |
8284b0c5 | 18893 | |
5357c8e8 | 18894 | else |
8284b0c5 MB |
18895 | echo "configure: failed program was:" >&5 |
18896 | cat conftest.$ac_ext >&5 | |
18897 | rm -rf conftest* | |
18898 | ||
18899 | cat > conftest.$ac_ext <<EOF | |
18900 | #line 18901 "configure" | |
5357c8e8 VZ |
18901 | #include "confdefs.h" |
18902 | ||
b4085ce6 | 18903 | #include <time.h> |
8284b0c5 MB |
18904 | |
18905 | int main() { | |
5357c8e8 VZ |
18906 | |
18907 | int tz; | |
4f11a343 | 18908 | tz = __timezone; |
8284b0c5 MB |
18909 | |
18910 | ; return 0; } | |
18911 | EOF | |
18912 | if { (eval echo configure:18913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18913 | rm -rf conftest* | |
18914 | ||
4f11a343 | 18915 | wx_cv_var_timezone=__timezone |
8284b0c5 | 18916 | |
360d6699 | 18917 | else |
8284b0c5 MB |
18918 | echo "configure: failed program was:" >&5 |
18919 | cat conftest.$ac_ext >&5 | |
18920 | rm -rf conftest* | |
18921 | ||
f9bc1684 | 18922 | if test "$USE_DOS" = 0 ; then |
8284b0c5 | 18923 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 | 18924 | fi |
8284b0c5 MB |
18925 | |
18926 | ||
1e487827 | 18927 | fi |
8284b0c5 MB |
18928 | rm -f conftest* |
18929 | ||
18930 | ||
328a083c | 18931 | fi |
8284b0c5 MB |
18932 | rm -f conftest* |
18933 | ||
18934 | ||
7b4a847f | 18935 | fi |
8284b0c5 MB |
18936 | rm -f conftest* |
18937 | ||
18938 | ||
5c6fa7d2 | 18939 | fi |
8284b0c5 MB |
18940 | |
18941 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
698dcdb6 | 18942 | |
f9bc1684 | 18943 | if test "x$wx_cv_var_timezone" != x ; then |
8284b0c5 | 18944 | cat >> confdefs.h <<EOF |
360d6699 VZ |
18945 | #define WX_TIMEZONE $wx_cv_var_timezone |
18946 | EOF | |
18947 | ||
f9bc1684 | 18948 | fi |
698dcdb6 | 18949 | |
8284b0c5 | 18950 | for ac_func in localtime |
afc31813 | 18951 | do |
8284b0c5 MB |
18952 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
18953 | echo "configure:18954: checking for $ac_func" >&5 | |
18954 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
18955 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18956 | else | |
18957 | cat > conftest.$ac_ext <<EOF | |
18958 | #line 18959 "configure" | |
10f2d63a | 18959 | #include "confdefs.h" |
afc31813 | 18960 | /* System header to define __stub macros and hopefully few prototypes, |
8284b0c5 | 18961 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
18962 | #include <assert.h> |
18963 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18964 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
18965 | builtin and then its argument prototype would still apply. */ |
18966 | char $ac_func(); | |
18967 | ||
18968 | int main() { | |
afc31813 VZ |
18969 | |
18970 | /* The GNU C library defines this for functions which it implements | |
18971 | to always fail with ENOSYS. Some functions are actually named | |
18972 | something starting with __ and the normal name is an alias. */ | |
18973 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18974 | choke me | |
18975 | #else | |
8284b0c5 | 18976 | $ac_func(); |
afc31813 VZ |
18977 | #endif |
18978 | ||
8284b0c5 | 18979 | ; return 0; } |
10f2d63a | 18980 | EOF |
8284b0c5 MB |
18981 | if { (eval echo configure:18982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18982 | rm -rf conftest* | |
18983 | eval "ac_cv_func_$ac_func=yes" | |
18984 | else | |
18985 | echo "configure: failed program was:" >&5 | |
18986 | cat conftest.$ac_ext >&5 | |
18987 | rm -rf conftest* | |
18988 | eval "ac_cv_func_$ac_func=no" | |
18989 | fi | |
18990 | rm -f conftest* | |
18991 | fi | |
afc31813 | 18992 | |
8284b0c5 MB |
18993 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18994 | echo "$ac_t""yes" 1>&6 | |
18995 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18996 | cat >> confdefs.h <<EOF | |
18997 | #define $ac_tr_func 1 | |
18998 | EOF | |
18999 | ||
19000 | else | |
19001 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
19002 | fi |
19003 | done | |
19004 | ||
5c6fa7d2 | 19005 | |
8284b0c5 MB |
19006 | if test "$ac_cv_func_localtime" = "yes"; then |
19007 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
19008 | echo "configure:19009: checking for tm_gmtoff in struct tm" >&5 | |
19009 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then | |
19010 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19011 | else | |
19012 | ||
19013 | cat > conftest.$ac_ext <<EOF | |
19014 | #line 19015 "configure" | |
0470b1e6 VZ |
19015 | #include "confdefs.h" |
19016 | ||
b4085ce6 | 19017 | #include <time.h> |
8284b0c5 MB |
19018 | |
19019 | int main() { | |
0470b1e6 VZ |
19020 | |
19021 | struct tm tm; | |
19022 | tm.tm_gmtoff++; | |
8284b0c5 MB |
19023 | |
19024 | ; return 0; } | |
19025 | EOF | |
19026 | if { (eval echo configure:19027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
19027 | rm -rf conftest* | |
19028 | ||
f03a98d8 | 19029 | wx_cv_struct_tm_has_gmtoff=yes |
8284b0c5 | 19030 | |
0470b1e6 | 19031 | else |
8284b0c5 MB |
19032 | echo "configure: failed program was:" >&5 |
19033 | cat conftest.$ac_ext >&5 | |
19034 | rm -rf conftest* | |
19035 | wx_cv_struct_tm_has_gmtoff=no | |
19036 | ||
7b4a847f | 19037 | fi |
8284b0c5 MB |
19038 | rm -f conftest* |
19039 | ||
5c6fa7d2 | 19040 | fi |
8284b0c5 MB |
19041 | |
19042 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
19043 | fi |
19044 | ||
19045 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
8284b0c5 | 19046 | cat >> confdefs.h <<\EOF |
6232543b VS |
19047 | #define WX_GMTOFF_IN_TM 1 |
19048 | EOF | |
0470b1e6 | 19049 | |
3fcdd07b VZ |
19050 | fi |
19051 | ||
8284b0c5 | 19052 | for ac_func in gettimeofday ftime |
3fcdd07b | 19053 | do |
8284b0c5 MB |
19054 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19055 | echo "configure:19056: checking for $ac_func" >&5 | |
19056 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
19057 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19058 | else | |
19059 | cat > conftest.$ac_ext <<EOF | |
19060 | #line 19061 "configure" | |
3fcdd07b VZ |
19061 | #include "confdefs.h" |
19062 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 19063 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
19064 | #include <assert.h> |
19065 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19066 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
19067 | builtin and then its argument prototype would still apply. */ |
19068 | char $ac_func(); | |
19069 | ||
19070 | int main() { | |
3fcdd07b VZ |
19071 | |
19072 | /* The GNU C library defines this for functions which it implements | |
19073 | to always fail with ENOSYS. Some functions are actually named | |
19074 | something starting with __ and the normal name is an alias. */ | |
19075 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19076 | choke me | |
19077 | #else | |
8284b0c5 | 19078 | $ac_func(); |
3fcdd07b VZ |
19079 | #endif |
19080 | ||
8284b0c5 MB |
19081 | ; return 0; } |
19082 | EOF | |
19083 | if { (eval echo configure:19084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19084 | rm -rf conftest* | |
19085 | eval "ac_cv_func_$ac_func=yes" | |
19086 | else | |
19087 | echo "configure: failed program was:" >&5 | |
19088 | cat conftest.$ac_ext >&5 | |
19089 | rm -rf conftest* | |
19090 | eval "ac_cv_func_$ac_func=no" | |
19091 | fi | |
19092 | rm -f conftest* | |
19093 | fi | |
19094 | ||
19095 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19096 | echo "$ac_t""yes" 1>&6 | |
19097 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19098 | cat >> confdefs.h <<EOF | |
19099 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
19100 | EOF |
19101 | break | |
8284b0c5 MB |
19102 | else |
19103 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
19104 | fi |
19105 | done | |
19106 | ||
698dcdb6 | 19107 | |
8284b0c5 MB |
19108 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
19109 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
19110 | echo "configure:19111: checking whether gettimeofday takes two arguments" >&5 | |
19111 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then | |
19112 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19113 | else | |
19114 | ||
19115 | ||
19116 | ac_ext=C | |
19117 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 19118 | ac_cpp='$CXXCPP $CPPFLAGS' |
8284b0c5 MB |
19119 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19120 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19121 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 19122 | |
8284b0c5 MB |
19123 | |
19124 | cat > conftest.$ac_ext <<EOF | |
19125 | #line 19126 "configure" | |
10f2d63a | 19126 | #include "confdefs.h" |
afc31813 VZ |
19127 | |
19128 | #include <sys/time.h> | |
19129 | #include <unistd.h> | |
8284b0c5 MB |
19130 | |
19131 | int main() { | |
afc31813 VZ |
19132 | |
19133 | struct timeval tv; | |
776862b4 | 19134 | gettimeofday(&tv, NULL); |
8284b0c5 MB |
19135 | |
19136 | ; return 0; } | |
19137 | EOF | |
19138 | if { (eval echo configure:19139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
19139 | rm -rf conftest* | |
afc31813 | 19140 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 19141 | else |
8284b0c5 MB |
19142 | echo "configure: failed program was:" >&5 |
19143 | cat conftest.$ac_ext >&5 | |
19144 | rm -rf conftest* | |
19145 | cat > conftest.$ac_ext <<EOF | |
19146 | #line 19147 "configure" | |
10f2d63a | 19147 | #include "confdefs.h" |
afc31813 VZ |
19148 | |
19149 | #include <sys/time.h> | |
19150 | #include <unistd.h> | |
8284b0c5 MB |
19151 | |
19152 | int main() { | |
afc31813 VZ |
19153 | |
19154 | struct timeval tv; | |
19155 | gettimeofday(&tv); | |
8284b0c5 MB |
19156 | |
19157 | ; return 0; } | |
19158 | EOF | |
19159 | if { (eval echo configure:19160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
19160 | rm -rf conftest* | |
afc31813 | 19161 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 19162 | else |
8284b0c5 MB |
19163 | echo "configure: failed program was:" >&5 |
19164 | cat conftest.$ac_ext >&5 | |
19165 | rm -rf conftest* | |
19166 | ||
19167 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
776862b4 | 19168 | wx_cv_func_gettimeofday_has_2_args=unknown |
8284b0c5 MB |
19169 | |
19170 | ||
10f2d63a | 19171 | fi |
8284b0c5 MB |
19172 | rm -f conftest* |
19173 | ||
10f2d63a | 19174 | fi |
8284b0c5 | 19175 | rm -f conftest* |
afc31813 | 19176 | ac_ext=c |
8284b0c5 | 19177 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 19178 | ac_cpp='$CPP $CPPFLAGS' |
8284b0c5 MB |
19179 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19180 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19181 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 19182 | |
8284b0c5 | 19183 | |
afc31813 | 19184 | fi |
8284b0c5 MB |
19185 | |
19186 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 19187 | |
afc31813 | 19188 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
8284b0c5 | 19189 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
19190 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
19191 | EOF | |
19192 | ||
19193 | fi | |
19194 | fi | |
19195 | ||
8284b0c5 | 19196 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
19197 | #define wxUSE_TIMEDATE 1 |
19198 | EOF | |
19199 | ||
19200 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
19201 | fi | |
19202 | ||
8284b0c5 | 19203 | |
52127426 | 19204 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 19205 | if test "$wxUSE_MGL" = "1"; then |
8284b0c5 | 19206 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
19207 | wxUSE_SOCKETS="no" |
19208 | fi | |
0feee163 | 19209 | fi |
b089607b | 19210 | |
0feee163 VZ |
19211 | if test "$wxUSE_SOCKETS" = "yes"; then |
19212 | if test "$TOOLKIT" != "MSW"; then | |
8284b0c5 MB |
19213 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
19214 | echo "configure:19215: checking for socket" >&5 | |
19215 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then | |
19216 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 19217 | else |
8284b0c5 MB |
19218 | cat > conftest.$ac_ext <<EOF |
19219 | #line 19220 "configure" | |
c63c7106 VZ |
19220 | #include "confdefs.h" |
19221 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 19222 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
19223 | #include <assert.h> |
19224 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19225 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
19226 | builtin and then its argument prototype would still apply. */ |
19227 | char socket(); | |
19228 | ||
19229 | int main() { | |
c63c7106 VZ |
19230 | |
19231 | /* The GNU C library defines this for functions which it implements | |
19232 | to always fail with ENOSYS. Some functions are actually named | |
19233 | something starting with __ and the normal name is an alias. */ | |
19234 | #if defined (__stub_socket) || defined (__stub___socket) | |
19235 | choke me | |
19236 | #else | |
8284b0c5 | 19237 | socket(); |
c63c7106 VZ |
19238 | #endif |
19239 | ||
8284b0c5 MB |
19240 | ; return 0; } |
19241 | EOF | |
19242 | if { (eval echo configure:19243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19243 | rm -rf conftest* | |
19244 | eval "ac_cv_func_socket=yes" | |
19245 | else | |
19246 | echo "configure: failed program was:" >&5 | |
19247 | cat conftest.$ac_ext >&5 | |
19248 | rm -rf conftest* | |
19249 | eval "ac_cv_func_socket=no" | |
19250 | fi | |
19251 | rm -f conftest* | |
19252 | fi | |
19253 | ||
19254 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
19255 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
19256 | : |
19257 | else | |
8284b0c5 MB |
19258 | echo "$ac_t""no" 1>&6 |
19259 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
19260 | echo "configure:19261: checking for socket in -lsocket" >&5 | |
19261 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` | |
19262 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19263 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 19264 | else |
8284b0c5 | 19265 | ac_save_LIBS="$LIBS" |
c63c7106 | 19266 | LIBS="-lsocket $LIBS" |
8284b0c5 MB |
19267 | cat > conftest.$ac_ext <<EOF |
19268 | #line 19269 "configure" | |
c63c7106 VZ |
19269 | #include "confdefs.h" |
19270 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19271 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
19272 | builtin and then its argument prototype would still apply. */ |
19273 | char socket(); | |
19274 | ||
19275 | int main() { | |
19276 | socket() | |
19277 | ; return 0; } | |
19278 | EOF | |
19279 | if { (eval echo configure:19280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19280 | rm -rf conftest* | |
19281 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19282 | else | |
19283 | echo "configure: failed program was:" >&5 | |
19284 | cat conftest.$ac_ext >&5 | |
19285 | rm -rf conftest* | |
19286 | eval "ac_cv_lib_$ac_lib_var=no" | |
19287 | fi | |
19288 | rm -f conftest* | |
19289 | LIBS="$ac_save_LIBS" | |
19290 | ||
19291 | fi | |
19292 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19293 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
19294 | if test "$INET_LINK" != " -lsocket"; then |
19295 | INET_LINK="$INET_LINK -lsocket" | |
19296 | fi | |
c63c7106 | 19297 | else |
8284b0c5 | 19298 | echo "$ac_t""no" 1>&6 |
afc31813 | 19299 | |
8284b0c5 | 19300 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
3a922bb4 | 19301 | wxUSE_SOCKETS=no |
8284b0c5 MB |
19302 | |
19303 | ||
6232543b | 19304 | fi |
b089607b | 19305 | |
8284b0c5 | 19306 | |
1e487827 | 19307 | fi |
afc31813 | 19308 | |
3a922bb4 | 19309 | fi |
0feee163 | 19310 | fi |
51a9faba | 19311 | |
0feee163 VZ |
19312 | if test "$wxUSE_SOCKETS" = "yes" ; then |
19313 | if test "$TOOLKIT" != "MSW"; then | |
8284b0c5 MB |
19314 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
19315 | echo "configure:19316: checking what is the type of the third argument of getsockname" >&5 | |
19316 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then | |
19317 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19318 | else | |
19319 | ||
19320 | ||
19321 | ac_ext=C | |
19322 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 19323 | ac_cpp='$CXXCPP $CPPFLAGS' |
8284b0c5 MB |
19324 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19325 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19326 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 19327 | |
8284b0c5 MB |
19328 | |
19329 | cat > conftest.$ac_ext <<EOF | |
19330 | #line 19331 "configure" | |
afc31813 | 19331 | #include "confdefs.h" |
51a9faba | 19332 | |
3a922bb4 RL |
19333 | #include <sys/types.h> |
19334 | #include <sys/socket.h> | |
8284b0c5 MB |
19335 | |
19336 | int main() { | |
51a9faba | 19337 | |
3a922bb4 RL |
19338 | socklen_t len; |
19339 | getsockname(0, 0, &len); | |
8284b0c5 MB |
19340 | |
19341 | ; return 0; } | |
19342 | EOF | |
19343 | if { (eval echo configure:19344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
19344 | rm -rf conftest* | |
51a9faba | 19345 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 19346 | else |
8284b0c5 MB |
19347 | echo "configure: failed program was:" >&5 |
19348 | cat conftest.$ac_ext >&5 | |
19349 | rm -rf conftest* | |
19350 | cat > conftest.$ac_ext <<EOF | |
19351 | #line 19352 "configure" | |
afc31813 | 19352 | #include "confdefs.h" |
51a9faba | 19353 | |
3a922bb4 RL |
19354 | #include <sys/types.h> |
19355 | #include <sys/socket.h> | |
8284b0c5 MB |
19356 | |
19357 | int main() { | |
51a9faba | 19358 | |
3a922bb4 RL |
19359 | size_t len; |
19360 | getsockname(0, 0, &len); | |
8284b0c5 MB |
19361 | |
19362 | ; return 0; } | |
19363 | EOF | |
19364 | if { (eval echo configure:19365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
19365 | rm -rf conftest* | |
51a9faba | 19366 | wx_cv_type_getsockname3=size_t |
afc31813 | 19367 | else |
8284b0c5 MB |
19368 | echo "configure: failed program was:" >&5 |
19369 | cat conftest.$ac_ext >&5 | |
19370 | rm -rf conftest* | |
19371 | cat > conftest.$ac_ext <<EOF | |
19372 | #line 19373 "configure" | |
afc31813 | 19373 | #include "confdefs.h" |
51a9faba | 19374 | |
3a922bb4 RL |
19375 | #include <sys/types.h> |
19376 | #include <sys/socket.h> | |
8284b0c5 MB |
19377 | |
19378 | int main() { | |
51a9faba | 19379 | |
3a922bb4 RL |
19380 | int len; |
19381 | getsockname(0, 0, &len); | |
8284b0c5 MB |
19382 | |
19383 | ; return 0; } | |
19384 | EOF | |
19385 | if { (eval echo configure:19386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
19386 | rm -rf conftest* | |
51a9faba | 19387 | wx_cv_type_getsockname3=int |
afc31813 | 19388 | else |
8284b0c5 MB |
19389 | echo "configure: failed program was:" >&5 |
19390 | cat conftest.$ac_ext >&5 | |
19391 | rm -rf conftest* | |
19392 | wx_cv_type_getsockname3=unknown | |
19393 | ||
afc31813 | 19394 | fi |
8284b0c5 MB |
19395 | rm -f conftest* |
19396 | ||
afc31813 | 19397 | fi |
8284b0c5 MB |
19398 | rm -f conftest* |
19399 | ||
afc31813 | 19400 | fi |
8284b0c5 | 19401 | rm -f conftest* |
51a9faba | 19402 | |
3a922bb4 | 19403 | ac_ext=c |
8284b0c5 | 19404 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 19405 | ac_cpp='$CPP $CPPFLAGS' |
8284b0c5 MB |
19406 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19407 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19408 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 19409 | |
8284b0c5 | 19410 | |
51a9faba | 19411 | fi |
8284b0c5 MB |
19412 | |
19413 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 19414 | |
3a922bb4 RL |
19415 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
19416 | wxUSE_SOCKETS=no | |
8284b0c5 | 19417 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
3a922bb4 | 19418 | else |
8284b0c5 | 19419 | cat >> confdefs.h <<EOF |
51a9faba VZ |
19420 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
19421 | EOF | |
19422 | ||
3a922bb4 | 19423 | fi |
51a9faba VZ |
19424 | fi |
19425 | fi | |
afc31813 | 19426 | |
51a9faba | 19427 | if test "$wxUSE_SOCKETS" = "yes" ; then |
8284b0c5 | 19428 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
19429 | #define wxUSE_SOCKETS 1 |
19430 | EOF | |
19431 | ||
70f7a477 | 19432 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
19433 | fi |
19434 | ||
8284b0c5 | 19435 | |
dc3d889d VZ |
19436 | if test "$wxUSE_GUI" = "yes"; then |
19437 | ||
156b2523 | 19438 | if test "$TOOLKIT" = "MAC"; then |
8284b0c5 | 19439 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
19440 | wxUSE_JOYSTICK=no |
19441 | fi | |
19442 | if test "$TOOLKIT" = "MOTIF"; then | |
8284b0c5 | 19443 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 |
156b2523 | 19444 | wxUSE_JOYSTICK=no |
f79bd02d JS |
19445 | fi |
19446 | if test "$TOOLKIT" = "X11"; then | |
8284b0c5 | 19447 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 |
f79bd02d | 19448 | wxUSE_JOYSTICK=no |
156b2523 GD |
19449 | fi |
19450 | ||
3a922bb4 RL |
19451 | if test "$TOOLKIT" != "MSW"; then |
19452 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
8284b0c5 | 19453 | for ac_hdr in linux/joystick.h |
10f2d63a | 19454 | do |
8284b0c5 MB |
19455 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19456 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
19457 | echo "configure:19458: checking for $ac_hdr" >&5 | |
19458 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
19459 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19460 | else | |
19461 | cat > conftest.$ac_ext <<EOF | |
19462 | #line 19463 "configure" | |
10f2d63a | 19463 | #include "confdefs.h" |
8284b0c5 MB |
19464 | #include <$ac_hdr> |
19465 | EOF | |
19466 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
19467 | { (eval echo configure:19468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
19468 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
19469 | if test -z "$ac_err"; then | |
19470 | rm -rf conftest* | |
19471 | eval "ac_cv_header_$ac_safe=yes" | |
5c6fa7d2 | 19472 | else |
8284b0c5 MB |
19473 | echo "$ac_err" >&5 |
19474 | echo "configure: failed program was:" >&5 | |
10f2d63a | 19475 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
19476 | rm -rf conftest* |
19477 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 19478 | fi |
8284b0c5 | 19479 | rm -f conftest* |
10f2d63a | 19480 | fi |
8284b0c5 MB |
19481 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19482 | echo "$ac_t""yes" 1>&6 | |
19483 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19484 | cat >> confdefs.h <<EOF | |
19485 | #define $ac_tr_hdr 1 | |
10f2d63a | 19486 | EOF |
8284b0c5 MB |
19487 | |
19488 | else | |
19489 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
19490 | fi |
19491 | done | |
19492 | ||
3a922bb4 RL |
19493 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
19494 | wxUSE_JOYSTICK=no | |
8284b0c5 | 19495 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
19496 | fi |
19497 | fi | |
19498 | fi | |
b089607b | 19499 | |
3a922bb4 | 19500 | if test "$wxUSE_JOYSTICK" = "yes"; then |
8284b0c5 | 19501 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19502 | #define wxUSE_JOYSTICK 1 |
19503 | EOF | |
19504 | ||
3a922bb4 RL |
19505 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
19506 | fi | |
dc3d889d VZ |
19507 | fi |
19508 | ||
8284b0c5 | 19509 | |
b089607b VZ |
19510 | if test "$TOOLKIT" != "MSW"; then |
19511 | ||
3a922bb4 RL |
19512 | HAVE_DL_FUNCS=0 |
19513 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 19514 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
19515 | if test "$USE_DARWIN" = 1; then |
19516 | HAVE_DL_FUNCS=1 | |
19517 | else | |
8284b0c5 | 19518 | for ac_func in dlopen |
10f2d63a | 19519 | do |
8284b0c5 MB |
19520 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19521 | echo "configure:19522: checking for $ac_func" >&5 | |
19522 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
19523 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19524 | else | |
19525 | cat > conftest.$ac_ext <<EOF | |
19526 | #line 19527 "configure" | |
10f2d63a VZ |
19527 | #include "confdefs.h" |
19528 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 19529 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19530 | #include <assert.h> |
19531 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19532 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
19533 | builtin and then its argument prototype would still apply. */ |
19534 | char $ac_func(); | |
19535 | ||
19536 | int main() { | |
10f2d63a VZ |
19537 | |
19538 | /* The GNU C library defines this for functions which it implements | |
19539 | to always fail with ENOSYS. Some functions are actually named | |
19540 | something starting with __ and the normal name is an alias. */ | |
19541 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19542 | choke me | |
19543 | #else | |
8284b0c5 | 19544 | $ac_func(); |
10f2d63a VZ |
19545 | #endif |
19546 | ||
8284b0c5 MB |
19547 | ; return 0; } |
19548 | EOF | |
19549 | if { (eval echo configure:19550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19550 | rm -rf conftest* | |
19551 | eval "ac_cv_func_$ac_func=yes" | |
19552 | else | |
19553 | echo "configure: failed program was:" >&5 | |
19554 | cat conftest.$ac_ext >&5 | |
19555 | rm -rf conftest* | |
19556 | eval "ac_cv_func_$ac_func=no" | |
19557 | fi | |
19558 | rm -f conftest* | |
19559 | fi | |
19560 | ||
19561 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19562 | echo "$ac_t""yes" 1>&6 | |
19563 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19564 | cat >> confdefs.h <<EOF | |
19565 | #define $ac_tr_func 1 | |
19566 | EOF | |
19567 | ||
19568 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19569 | #define HAVE_DLOPEN 1 |
19570 | EOF | |
19571 | ||
3a922bb4 | 19572 | HAVE_DL_FUNCS=1 |
8284b0c5 | 19573 | |
10f2d63a | 19574 | else |
8284b0c5 MB |
19575 | echo "$ac_t""no" 1>&6 |
19576 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
19577 | echo "configure:19578: checking for dlopen in -ldl" >&5 | |
19578 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` | |
19579 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19580 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 19581 | else |
8284b0c5 | 19582 | ac_save_LIBS="$LIBS" |
10f2d63a | 19583 | LIBS="-ldl $LIBS" |
8284b0c5 MB |
19584 | cat > conftest.$ac_ext <<EOF |
19585 | #line 19586 "configure" | |
10f2d63a VZ |
19586 | #include "confdefs.h" |
19587 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19588 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
19589 | builtin and then its argument prototype would still apply. */ |
19590 | char dlopen(); | |
19591 | ||
19592 | int main() { | |
19593 | dlopen() | |
19594 | ; return 0; } | |
19595 | EOF | |
19596 | if { (eval echo configure:19597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19597 | rm -rf conftest* | |
19598 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19599 | else | |
19600 | echo "configure: failed program was:" >&5 | |
19601 | cat conftest.$ac_ext >&5 | |
19602 | rm -rf conftest* | |
19603 | eval "ac_cv_lib_$ac_lib_var=no" | |
19604 | fi | |
19605 | rm -f conftest* | |
19606 | LIBS="$ac_save_LIBS" | |
19607 | ||
19608 | fi | |
19609 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19610 | echo "$ac_t""yes" 1>&6 | |
19611 | ||
19612 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19613 | #define HAVE_DLOPEN 1 |
19614 | EOF | |
19615 | ||
3a922bb4 | 19616 | HAVE_DL_FUNCS=1 |
3d63bc3a | 19617 | DL_LINK=" -ldl$DL_LINK" |
8284b0c5 | 19618 | |
10f2d63a | 19619 | else |
8284b0c5 | 19620 | echo "$ac_t""no" 1>&6 |
10f2d63a | 19621 | |
8284b0c5 | 19622 | for ac_func in shl_load |
10f2d63a | 19623 | do |
8284b0c5 MB |
19624 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19625 | echo "configure:19626: checking for $ac_func" >&5 | |
19626 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
19627 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19628 | else | |
19629 | cat > conftest.$ac_ext <<EOF | |
19630 | #line 19631 "configure" | |
10f2d63a VZ |
19631 | #include "confdefs.h" |
19632 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 19633 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19634 | #include <assert.h> |
19635 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19636 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
19637 | builtin and then its argument prototype would still apply. */ |
19638 | char $ac_func(); | |
19639 | ||
19640 | int main() { | |
10f2d63a VZ |
19641 | |
19642 | /* The GNU C library defines this for functions which it implements | |
19643 | to always fail with ENOSYS. Some functions are actually named | |
19644 | something starting with __ and the normal name is an alias. */ | |
19645 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19646 | choke me | |
19647 | #else | |
8284b0c5 | 19648 | $ac_func(); |
10f2d63a VZ |
19649 | #endif |
19650 | ||
8284b0c5 MB |
19651 | ; return 0; } |
19652 | EOF | |
19653 | if { (eval echo configure:19654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19654 | rm -rf conftest* | |
19655 | eval "ac_cv_func_$ac_func=yes" | |
19656 | else | |
19657 | echo "configure: failed program was:" >&5 | |
19658 | cat conftest.$ac_ext >&5 | |
19659 | rm -rf conftest* | |
19660 | eval "ac_cv_func_$ac_func=no" | |
19661 | fi | |
19662 | rm -f conftest* | |
19663 | fi | |
19664 | ||
19665 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19666 | echo "$ac_t""yes" 1>&6 | |
19667 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19668 | cat >> confdefs.h <<EOF | |
19669 | #define $ac_tr_func 1 | |
19670 | EOF | |
19671 | ||
19672 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19673 | #define HAVE_SHL_LOAD 1 |
19674 | EOF | |
19675 | ||
3a922bb4 | 19676 | HAVE_SHL_FUNCS=1 |
8284b0c5 | 19677 | |
10f2d63a | 19678 | else |
8284b0c5 MB |
19679 | echo "$ac_t""no" 1>&6 |
19680 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
19681 | echo "configure:19682: checking for dld in -lshl_load" >&5 | |
19682 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` | |
19683 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19684 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19685 | else |
8284b0c5 | 19686 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19687 | LIBS="-lshl_load $LIBS" |
8284b0c5 MB |
19688 | cat > conftest.$ac_ext <<EOF |
19689 | #line 19690 "configure" | |
f6bcfd97 | 19690 | #include "confdefs.h" |
8284b0c5 | 19691 | /* Override any gcc2 internal prototype to avoid an error. */ |
f6bcfd97 | 19692 | /* We use char because int might match the return type of a gcc2 |
8284b0c5 MB |
19693 | builtin and then its argument prototype would still apply. */ |
19694 | char dld(); | |
19695 | ||
19696 | int main() { | |
19697 | dld() | |
19698 | ; return 0; } | |
19699 | EOF | |
19700 | if { (eval echo configure:19701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19701 | rm -rf conftest* | |
19702 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19703 | else | |
19704 | echo "configure: failed program was:" >&5 | |
19705 | cat conftest.$ac_ext >&5 | |
19706 | rm -rf conftest* | |
19707 | eval "ac_cv_lib_$ac_lib_var=no" | |
19708 | fi | |
19709 | rm -f conftest* | |
19710 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 19711 | |
8284b0c5 MB |
19712 | fi |
19713 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19714 | echo "$ac_t""yes" 1>&6 | |
19715 | ||
3a922bb4 | 19716 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 19717 | DL_LINK=" -ldld$DL_LINK" |
8284b0c5 MB |
19718 | |
19719 | else | |
19720 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19721 | fi |
19722 | ||
8284b0c5 | 19723 | |
10f2d63a VZ |
19724 | fi |
19725 | done | |
19726 | ||
8284b0c5 | 19727 | |
10f2d63a VZ |
19728 | fi |
19729 | ||
8284b0c5 | 19730 | |
10f2d63a VZ |
19731 | fi |
19732 | done | |
19733 | ||
5c6fa7d2 | 19734 | |
8284b0c5 MB |
19735 | if test "$HAVE_DL_FUNCS" = 1; then |
19736 | for ac_func in dlerror | |
f6bcfd97 | 19737 | do |
8284b0c5 MB |
19738 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19739 | echo "configure:19740: checking for $ac_func" >&5 | |
19740 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
19741 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19742 | else | |
19743 | cat > conftest.$ac_ext <<EOF | |
19744 | #line 19745 "configure" | |
f6bcfd97 BP |
19745 | #include "confdefs.h" |
19746 | /* System header to define __stub macros and hopefully few prototypes, | |
8284b0c5 | 19747 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
19748 | #include <assert.h> |
19749 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19750 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
19751 | builtin and then its argument prototype would still apply. */ |
19752 | char $ac_func(); | |
19753 | ||
19754 | int main() { | |
f6bcfd97 BP |
19755 | |
19756 | /* The GNU C library defines this for functions which it implements | |
19757 | to always fail with ENOSYS. Some functions are actually named | |
19758 | something starting with __ and the normal name is an alias. */ | |
19759 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19760 | choke me | |
19761 | #else | |
8284b0c5 | 19762 | $ac_func(); |
f6bcfd97 BP |
19763 | #endif |
19764 | ||
8284b0c5 MB |
19765 | ; return 0; } |
19766 | EOF | |
19767 | if { (eval echo configure:19768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19768 | rm -rf conftest* | |
19769 | eval "ac_cv_func_$ac_func=yes" | |
19770 | else | |
19771 | echo "configure: failed program was:" >&5 | |
19772 | cat conftest.$ac_ext >&5 | |
19773 | rm -rf conftest* | |
19774 | eval "ac_cv_func_$ac_func=no" | |
19775 | fi | |
19776 | rm -f conftest* | |
19777 | fi | |
19778 | ||
19779 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19780 | echo "$ac_t""yes" 1>&6 | |
19781 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19782 | cat >> confdefs.h <<EOF | |
19783 | #define $ac_tr_func 1 | |
19784 | EOF | |
19785 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19786 | #define HAVE_DLERROR 1 |
19787 | EOF | |
19788 | ||
19789 | else | |
8284b0c5 MB |
19790 | echo "$ac_t""no" 1>&6 |
19791 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
19792 | echo "configure:19793: checking for dlerror in -ldl" >&5 | |
19793 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` | |
19794 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19795 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19796 | else |
8284b0c5 | 19797 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19798 | LIBS="-ldl $LIBS" |
8284b0c5 MB |
19799 | cat > conftest.$ac_ext <<EOF |
19800 | #line 19801 "configure" | |
f6bcfd97 BP |
19801 | #include "confdefs.h" |
19802 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19803 | /* We use char because int might match the return type of a gcc2 | |
8284b0c5 MB |
19804 | builtin and then its argument prototype would still apply. */ |
19805 | char dlerror(); | |
19806 | ||
19807 | int main() { | |
19808 | dlerror() | |
19809 | ; return 0; } | |
19810 | EOF | |
19811 | if { (eval echo configure:19812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19812 | rm -rf conftest* | |
19813 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19814 | else | |
19815 | echo "configure: failed program was:" >&5 | |
19816 | cat conftest.$ac_ext >&5 | |
19817 | rm -rf conftest* | |
19818 | eval "ac_cv_lib_$ac_lib_var=no" | |
19819 | fi | |
19820 | rm -f conftest* | |
19821 | LIBS="$ac_save_LIBS" | |
19822 | ||
19823 | fi | |
19824 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19825 | echo "$ac_t""yes" 1>&6 | |
19826 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19827 | #define HAVE_DLERROR 1 |
19828 | EOF | |
19829 | ||
8284b0c5 MB |
19830 | else |
19831 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19832 | fi |
19833 | ||
19834 | fi | |
19835 | done | |
19836 | ||
3a922bb4 RL |
19837 | fi |
19838 | fi | |
f6bcfd97 | 19839 | |
3a922bb4 RL |
19840 | if test "$HAVE_DL_FUNCS" = 0; then |
19841 | if test "$HAVE_SHL_FUNCS" = 0; then | |
19842 | if test "$USE_UNIX" = 1; then | |
8284b0c5 | 19843 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
0b9ab0bd | 19844 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
19845 | wxUSE_DYNLIB_CLASS=no |
19846 | else | |
8284b0c5 | 19847 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
3a922bb4 RL |
19848 | fi |
19849 | fi | |
10f2d63a VZ |
19850 | fi |
19851 | fi | |
19852 | fi | |
19853 | ||
0b9ab0bd | 19854 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
8284b0c5 | 19855 | cat >> confdefs.h <<\EOF |
0b9ab0bd RL |
19856 | #define wxUSE_DYNAMIC_LOADER 1 |
19857 | EOF | |
19858 | ||
19859 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
8284b0c5 | 19860 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19861 | #define wxUSE_DYNLIB_CLASS 1 |
19862 | EOF | |
19863 | ||
19864 | fi | |
19865 | ||
8284b0c5 | 19866 | |
1e6feb95 | 19867 | if test "$wxUSE_FONTMAP" = "yes" ; then |
8284b0c5 | 19868 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
19869 | #define wxUSE_FONTMAP 1 |
19870 | EOF | |
19871 | ||
19872 | fi | |
19873 | ||
10f2d63a | 19874 | if test "$wxUSE_UNICODE" = "yes" ; then |
8284b0c5 | 19875 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19876 | #define wxUSE_UNICODE 1 |
19877 | EOF | |
19878 | ||
8284b0c5 | 19879 | |
bbc3925a VS |
19880 | if test "$wxUSE_MSW" != 1; then |
19881 | wxUSE_UNICODE_MSLU=no | |
19882 | fi | |
a72a4bfa VS |
19883 | |
19884 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
8284b0c5 MB |
19885 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 |
19886 | echo "configure:19887: checking for main in -lunicows" >&5 | |
19887 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` | |
19888 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19889 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a72a4bfa | 19890 | else |
8284b0c5 | 19891 | ac_save_LIBS="$LIBS" |
a72a4bfa | 19892 | LIBS="-lunicows $LIBS" |
8284b0c5 MB |
19893 | cat > conftest.$ac_ext <<EOF |
19894 | #line 19895 "configure" | |
a72a4bfa VS |
19895 | #include "confdefs.h" |
19896 | ||
8284b0c5 MB |
19897 | int main() { |
19898 | main() | |
19899 | ; return 0; } | |
19900 | EOF | |
19901 | if { (eval echo configure:19902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19902 | rm -rf conftest* | |
19903 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19904 | else | |
19905 | echo "configure: failed program was:" >&5 | |
19906 | cat conftest.$ac_ext >&5 | |
19907 | rm -rf conftest* | |
19908 | eval "ac_cv_lib_$ac_lib_var=no" | |
19909 | fi | |
19910 | rm -f conftest* | |
19911 | LIBS="$ac_save_LIBS" | |
19912 | ||
19913 | fi | |
19914 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19915 | echo "$ac_t""yes" 1>&6 | |
19916 | ||
19917 | cat >> confdefs.h <<\EOF | |
a72a4bfa VS |
19918 | #define wxUSE_UNICODE_MSLU 1 |
19919 | EOF | |
19920 | ||
8284b0c5 | 19921 | |
a72a4bfa | 19922 | else |
8284b0c5 | 19923 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 19924 | |
8284b0c5 MB |
19925 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. |
19926 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
a72a4bfa | 19927 | wxUSE_UNICODE_MSLU=no |
8284b0c5 | 19928 | |
a72a4bfa VS |
19929 | fi |
19930 | ||
19931 | fi | |
10f2d63a VZ |
19932 | fi |
19933 | ||
10f2d63a | 19934 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
8284b0c5 | 19935 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19936 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
19937 | EOF | |
19938 | ||
19939 | fi | |
19940 | ||
8284b0c5 MB |
19941 | |
19942 | ||
10f2d63a VZ |
19943 | IODBC_C_SRC="" |
19944 | if test "$wxUSE_ODBC" = "yes" ; then | |
8284b0c5 | 19945 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19946 | #define wxUSE_ODBC 1 |
19947 | EOF | |
19948 | ||
19949 | WXODBCFLAG="-D_IODBC_" | |
19950 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
19951 | fi |
19952 | ||
8284b0c5 | 19953 | |
10f2d63a | 19954 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
8284b0c5 | 19955 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19956 | #define wxUSE_POSTSCRIPT 1 |
19957 | EOF | |
19958 | ||
19959 | fi | |
19960 | ||
8284b0c5 | 19961 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19962 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
19963 | EOF | |
19964 | ||
8284b0c5 MB |
19965 | |
19966 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19967 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
19968 | EOF | |
19969 | ||
8284b0c5 MB |
19970 | |
19971 | ||
10f2d63a | 19972 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
8284b0c5 | 19973 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19974 | #define wxUSE_CONSTRAINTS 1 |
19975 | EOF | |
19976 | ||
19977 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
19978 | fi | |
19979 | ||
19980 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 19981 | |
8284b0c5 | 19982 | |
bb811f17 | 19983 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
8284b0c5 | 19984 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19985 | #define wxUSE_MDI_ARCHITECTURE 1 |
19986 | EOF | |
19987 | ||
bb811f17 JS |
19988 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
19989 | fi | |
10f2d63a VZ |
19990 | fi |
19991 | ||
19992 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
8284b0c5 | 19993 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19994 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
19995 | EOF | |
19996 | ||
19997 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
19998 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19999 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
20000 | fi | |
20001 | fi | |
20002 | ||
20003 | if test "$wxUSE_HELP" = "yes"; then | |
8284b0c5 | 20004 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20005 | #define wxUSE_HELP 1 |
20006 | EOF | |
20007 | ||
20008 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 20009 | |
77e13408 | 20010 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 20011 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
8284b0c5 | 20012 | cat >> confdefs.h <<\EOF |
29fd3c0c VS |
20013 | #define wxUSE_MS_HTML_HELP 1 |
20014 | EOF | |
20015 | ||
3e44f09d | 20016 | fi |
3379ed37 | 20017 | fi |
031d8228 VS |
20018 | |
20019 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
20020 | if test "$wxUSE_HTML" = "yes"; then | |
8284b0c5 | 20021 | cat >> confdefs.h <<\EOF |
031d8228 VS |
20022 | #define wxUSE_WXHTML_HELP 1 |
20023 | EOF | |
20024 | ||
20025 | else | |
8284b0c5 | 20026 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 |
031d8228 VS |
20027 | wxUSE_WXHTML_HELP=no |
20028 | fi | |
20029 | fi | |
10f2d63a VZ |
20030 | fi |
20031 | ||
20032 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
20033 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
8284b0c5 | 20034 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 20035 | else |
8284b0c5 | 20036 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20037 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
20038 | EOF | |
20039 | ||
20040 | fi | |
20041 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
20042 | fi | |
20043 | ||
20044 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
8284b0c5 | 20045 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20046 | #define wxUSE_PROLOGIO 1 |
20047 | EOF | |
20048 | ||
20049 | fi | |
20050 | ||
20051 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea | 20052 | if test "$wxUSE_NANOX" = "yes"; then |
8284b0c5 | 20053 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 |
e334d0ea | 20054 | else |
8284b0c5 | 20055 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20056 | #define wxUSE_RESOURCES 1 |
20057 | EOF | |
20058 | ||
e334d0ea JS |
20059 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
20060 | fi | |
10f2d63a VZ |
20061 | fi |
20062 | ||
20063 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
8284b0c5 | 20064 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20065 | #define wxUSE_X_RESOURCES 1 |
20066 | EOF | |
20067 | ||
20068 | fi | |
20069 | ||
8284b0c5 | 20070 | |
77e13408 RL |
20071 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
20072 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
20073 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
8284b0c5 | 20074 | for ac_hdr in ole2.h |
10f2d63a | 20075 | do |
8284b0c5 MB |
20076 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
20077 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
20078 | echo "configure:20079: checking for $ac_hdr" >&5 | |
20079 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
20080 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20081 | else | |
20082 | cat > conftest.$ac_ext <<EOF | |
20083 | #line 20084 "configure" | |
10f2d63a | 20084 | #include "confdefs.h" |
8284b0c5 MB |
20085 | #include <$ac_hdr> |
20086 | EOF | |
20087 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
20088 | { (eval echo configure:20089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
20089 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
20090 | if test -z "$ac_err"; then | |
20091 | rm -rf conftest* | |
20092 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 20093 | else |
8284b0c5 MB |
20094 | echo "$ac_err" >&5 |
20095 | echo "configure: failed program was:" >&5 | |
10f2d63a | 20096 | cat conftest.$ac_ext >&5 |
8284b0c5 MB |
20097 | rm -rf conftest* |
20098 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 20099 | fi |
8284b0c5 | 20100 | rm -f conftest* |
10f2d63a | 20101 | fi |
8284b0c5 MB |
20102 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
20103 | echo "$ac_t""yes" 1>&6 | |
20104 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20105 | cat >> confdefs.h <<EOF | |
20106 | #define $ac_tr_hdr 1 | |
10f2d63a | 20107 | EOF |
8284b0c5 MB |
20108 | |
20109 | else | |
20110 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
20111 | fi |
20112 | done | |
20113 | ||
8284b0c5 | 20114 | |
2b9bdf71 VZ |
20115 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
20116 | if test "$GCC" = yes ; then | |
8284b0c5 MB |
20117 | |
20118 | ac_ext=C | |
20119 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
20120 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20121 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
20122 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20123 | cross_compiling=$ac_cv_prog_cxx_cross | |
20124 | ||
20125 | ||
20126 | echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6 | |
20127 | echo "configure:20128: checking if g++ requires -fvtable-thunks" >&5 | |
20128 | cat > conftest.$ac_ext <<EOF | |
20129 | #line 20130 "configure" | |
20130 | #include "confdefs.h" | |
20131 | #include <windows.h> | |
20132 | #include <ole2.h> | |
20133 | int main() { | |
20134 | ||
20135 | ; return 0; } | |
20136 | EOF | |
20137 | if { (eval echo configure:20138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
20138 | rm -rf conftest* | |
20139 | echo "$ac_t""no" 1>&6 | |
20140 | else | |
20141 | echo "configure: failed program was:" >&5 | |
20142 | cat conftest.$ac_ext >&5 | |
20143 | rm -rf conftest* | |
20144 | echo "$ac_t""yes" 1>&6 | |
20145 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
20146 | fi | |
20147 | rm -f conftest* | |
20148 | ac_ext=c | |
20149 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
20150 | ac_cpp='$CPP $CPPFLAGS' | |
20151 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
20152 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20153 | cross_compiling=$ac_cv_prog_cc_cross | |
20154 | ||
2b9bdf71 | 20155 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 20156 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
8284b0c5 | 20157 | cat >> confdefs.h <<\EOF |
4f11a343 VS |
20158 | #define wxUSE_OLE 1 |
20159 | EOF | |
20160 | ||
8284b0c5 | 20161 | |
2b9bdf71 VZ |
20162 | fi |
20163 | ||
8284b0c5 | 20164 | cat >> confdefs.h <<\EOF |
2b9bdf71 VZ |
20165 | #define wxUSE_DATAOBJ 1 |
20166 | EOF | |
20167 | ||
20168 | else | |
8284b0c5 | 20169 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 |
2b9bdf71 VZ |
20170 | |
20171 | wxUSE_CLIPBOARD=no | |
20172 | wxUSE_DRAG_AND_DROP=no | |
20173 | wxUSE_DATAOBJ=no | |
20174 | fi | |
20175 | ||
77e13408 | 20176 | if test "$wxUSE_METAFILE" = "yes"; then |
8284b0c5 | 20177 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
20178 | #define wxUSE_METAFILE 1 |
20179 | EOF | |
20180 | ||
8284b0c5 MB |
20181 | |
20182 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
20183 | #define wxUSE_ENH_METAFILE 1 |
20184 | EOF | |
20185 | ||
2b9bdf71 VZ |
20186 | fi |
20187 | fi | |
20188 | ||
20189 | if test "$wxUSE_IPC" = "yes"; then | |
20190 | if test "$wxUSE_SOCKETS" != "yes"; then | |
8284b0c5 | 20191 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
20192 | fi |
20193 | ||
8284b0c5 | 20194 | cat >> confdefs.h <<\EOF |
2b9bdf71 VZ |
20195 | #define wxUSE_IPC 1 |
20196 | EOF | |
20197 | ||
20198 | fi | |
20199 | ||
20200 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 20201 | if test "$wxUSE_MGL" = 1; then |
8284b0c5 | 20202 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
20203 | wxUSE_CLIPBOARD=no |
20204 | fi | |
20205 | ||
20206 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
8284b0c5 | 20207 | cat >> confdefs.h <<\EOF |
2b9bdf71 VZ |
20208 | #define wxUSE_CLIPBOARD 1 |
20209 | EOF | |
20210 | ||
8284b0c5 MB |
20211 | |
20212 | cat >> confdefs.h <<\EOF | |
673f4220 VZ |
20213 | #define wxUSE_DATAOBJ 1 |
20214 | EOF | |
20215 | ||
6c657b52 | 20216 | fi |
2b9bdf71 VZ |
20217 | fi |
20218 | ||
20219 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
20220 | if test "$wxUSE_GTK" = 1; then | |
20221 | if test "$WXGTK12" != 1; then | |
8284b0c5 | 20222 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
20223 | wxUSE_DRAG_AND_DROP=no |
20224 | fi | |
20225 | fi | |
20226 | ||
2b9bdf71 | 20227 | if test "$wxUSE_MOTIF" = 1; then |
8284b0c5 | 20228 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
20229 | wxUSE_DRAG_AND_DROP=no |
20230 | fi | |
20231 | ||
f79bd02d | 20232 | if test "$wxUSE_X11" = 1; then |
8284b0c5 | 20233 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 |
f79bd02d JS |
20234 | wxUSE_DRAG_AND_DROP=no |
20235 | fi | |
20236 | ||
6c657b52 | 20237 | if test "$wxUSE_MGL" = 1; then |
8284b0c5 | 20238 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
20239 | wxUSE_DRAG_AND_DROP=no |
20240 | fi | |
20241 | ||
10f2d63a | 20242 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
8284b0c5 | 20243 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20244 | #define wxUSE_DRAG_AND_DROP 1 |
20245 | EOF | |
20246 | ||
20247 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
20248 | fi | |
20249 | ||
20250 | fi | |
20251 | ||
20252 | if test "$wxUSE_SPLINES" = "yes" ; then | |
8284b0c5 | 20253 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20254 | #define wxUSE_SPLINES 1 |
20255 | EOF | |
20256 | ||
20257 | fi | |
20258 | ||
8284b0c5 | 20259 | |
1e6feb95 VZ |
20260 | USES_CONTROLS=0 |
20261 | if test "$wxUSE_CONTROLS" = "yes"; then | |
20262 | USES_CONTROLS=1 | |
20263 | fi | |
20264 | ||
10f2d63a | 20265 | if test "$wxUSE_ACCEL" = "yes"; then |
8284b0c5 | 20266 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20267 | #define wxUSE_ACCEL 1 |
20268 | EOF | |
20269 | ||
1e6feb95 VZ |
20270 | USES_CONTROLS=1 |
20271 | fi | |
20272 | ||
20273 | if test "$wxUSE_BUTTON" = "yes"; then | |
8284b0c5 | 20274 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20275 | #define wxUSE_BUTTON 1 |
20276 | EOF | |
20277 | ||
20278 | USES_CONTROLS=1 | |
20279 | fi | |
20280 | ||
20281 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
8284b0c5 | 20282 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20283 | #define wxUSE_BMPBUTTON 1 |
20284 | EOF | |
20285 | ||
20286 | USES_CONTROLS=1 | |
20287 | fi | |
20288 | ||
20289 | if test "$wxUSE_CALCTRL" = "yes"; then | |
8284b0c5 | 20290 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20291 | #define wxUSE_CALENDARCTRL 1 |
20292 | EOF | |
20293 | ||
20294 | USES_CONTROLS=1 | |
20295 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
20296 | fi |
20297 | ||
20298 | if test "$wxUSE_CARET" = "yes"; then | |
8284b0c5 | 20299 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20300 | #define wxUSE_CARET 1 |
20301 | EOF | |
20302 | ||
1e6feb95 | 20303 | USES_CONTROLS=1 |
10f2d63a VZ |
20304 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
20305 | fi | |
20306 | ||
20307 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
8284b0c5 | 20308 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20309 | #define wxUSE_COMBOBOX 1 |
20310 | EOF | |
20311 | ||
1e6feb95 | 20312 | USES_CONTROLS=1 |
10f2d63a VZ |
20313 | fi |
20314 | ||
20315 | if test "$wxUSE_CHOICE" = "yes"; then | |
8284b0c5 | 20316 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20317 | #define wxUSE_CHOICE 1 |
20318 | EOF | |
20319 | ||
1e6feb95 | 20320 | USES_CONTROLS=1 |
10f2d63a VZ |
20321 | fi |
20322 | ||
20323 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
8284b0c5 | 20324 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20325 | #define wxUSE_CHECKBOX 1 |
20326 | EOF | |
20327 | ||
1e6feb95 | 20328 | USES_CONTROLS=1 |
10f2d63a VZ |
20329 | fi |
20330 | ||
20331 | if test "$wxUSE_CHECKLST" = "yes"; then | |
8284b0c5 | 20332 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20333 | #define wxUSE_CHECKLISTBOX 1 |
20334 | EOF | |
20335 | ||
1e6feb95 | 20336 | USES_CONTROLS=1 |
10f2d63a VZ |
20337 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
20338 | fi | |
20339 | ||
20340 | if test "$wxUSE_GAUGE" = "yes"; then | |
8284b0c5 | 20341 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20342 | #define wxUSE_GAUGE 1 |
20343 | EOF | |
20344 | ||
1e6feb95 | 20345 | USES_CONTROLS=1 |
10f2d63a VZ |
20346 | fi |
20347 | ||
d6a55c4b VZ |
20348 | if test "$wxUSE_NEW_GRID" = "yes"; then |
20349 | wxUSE_GRID="yes" | |
8284b0c5 | 20350 | cat >> confdefs.h <<\EOF |
d6a55c4b | 20351 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
20352 | EOF |
20353 | ||
1e6feb95 | 20354 | USES_CONTROLS=1 |
d6a55c4b | 20355 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
20356 | fi |
20357 | ||
d6a55c4b | 20358 | if test "$wxUSE_GRID" = "yes"; then |
8284b0c5 | 20359 | cat >> confdefs.h <<\EOF |
d6a55c4b | 20360 | #define wxUSE_GRID 1 |
10f2d63a VZ |
20361 | EOF |
20362 | ||
1e6feb95 | 20363 | USES_CONTROLS=1 |
d6a55c4b | 20364 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
20365 | fi |
20366 | ||
20367 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
8284b0c5 | 20368 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20369 | #define wxUSE_IMAGLIST 1 |
20370 | EOF | |
20371 | ||
20372 | fi | |
20373 | ||
20374 | if test "$wxUSE_LISTBOX" = "yes"; then | |
8284b0c5 | 20375 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20376 | #define wxUSE_LISTBOX 1 |
20377 | EOF | |
20378 | ||
1e6feb95 | 20379 | USES_CONTROLS=1 |
10f2d63a VZ |
20380 | fi |
20381 | ||
20382 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
20383 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
8284b0c5 | 20384 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20385 | #define wxUSE_LISTCTRL 1 |
20386 | EOF | |
20387 | ||
1e6feb95 | 20388 | USES_CONTROLS=1 |
10f2d63a VZ |
20389 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
20390 | else | |
8284b0c5 | 20391 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20392 | fi |
20393 | fi | |
20394 | ||
20395 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
8284b0c5 | 20396 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20397 | #define wxUSE_NOTEBOOK 1 |
20398 | EOF | |
20399 | ||
1e6feb95 | 20400 | USES_CONTROLS=1 |
10f2d63a VZ |
20401 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
20402 | fi | |
20403 | ||
24176f2c | 20404 | if test "$wxUSE_PROPSHEET" = "yes"; then |
8284b0c5 | 20405 | cat >> confdefs.h <<\EOF |
24176f2c GD |
20406 | #define wxUSE_PROPSHEET 1 |
20407 | EOF | |
20408 | ||
20409 | USES_CONTROLS=1 | |
20410 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
20411 | fi | |
20412 | ||
10f2d63a | 20413 | if test "$wxUSE_RADIOBOX" = "yes"; then |
8284b0c5 | 20414 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20415 | #define wxUSE_RADIOBOX 1 |
20416 | EOF | |
20417 | ||
1e6feb95 | 20418 | USES_CONTROLS=1 |
10f2d63a VZ |
20419 | fi |
20420 | ||
20421 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
8284b0c5 | 20422 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20423 | #define wxUSE_RADIOBTN 1 |
20424 | EOF | |
20425 | ||
1e6feb95 | 20426 | USES_CONTROLS=1 |
10f2d63a VZ |
20427 | fi |
20428 | ||
20429 | if test "$wxUSE_SASH" = "yes"; then | |
8284b0c5 | 20430 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20431 | #define wxUSE_SASH 1 |
20432 | EOF | |
20433 | ||
20434 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
20435 | fi | |
20436 | ||
20437 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
8284b0c5 | 20438 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20439 | #define wxUSE_SCROLLBAR 1 |
20440 | EOF | |
20441 | ||
1e6feb95 | 20442 | USES_CONTROLS=1 |
741a9306 | 20443 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
20444 | fi |
20445 | ||
20446 | if test "$wxUSE_SLIDER" = "yes"; then | |
8284b0c5 | 20447 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20448 | #define wxUSE_SLIDER 1 |
20449 | EOF | |
20450 | ||
1e6feb95 | 20451 | USES_CONTROLS=1 |
10f2d63a VZ |
20452 | fi |
20453 | ||
20454 | if test "$wxUSE_SPINBTN" = "yes"; then | |
8284b0c5 | 20455 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20456 | #define wxUSE_SPINBTN 1 |
20457 | EOF | |
20458 | ||
1e6feb95 | 20459 | USES_CONTROLS=1 |
10f2d63a VZ |
20460 | fi |
20461 | ||
56cfaa52 | 20462 | if test "$wxUSE_SPINCTRL" = "yes"; then |
8284b0c5 | 20463 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
20464 | #define wxUSE_SPINCTRL 1 |
20465 | EOF | |
20466 | ||
1e6feb95 | 20467 | USES_CONTROLS=1 |
56cfaa52 RR |
20468 | fi |
20469 | ||
10f2d63a | 20470 | if test "$wxUSE_SPLITTER" = "yes"; then |
8284b0c5 | 20471 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20472 | #define wxUSE_SPLITTER 1 |
20473 | EOF | |
20474 | ||
20475 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
20476 | fi | |
20477 | ||
20478 | if test "$wxUSE_STATBMP" = "yes"; then | |
8284b0c5 | 20479 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20480 | #define wxUSE_STATBMP 1 |
20481 | EOF | |
20482 | ||
1e6feb95 | 20483 | USES_CONTROLS=1 |
10f2d63a VZ |
20484 | fi |
20485 | ||
20486 | if test "$wxUSE_STATBOX" = "yes"; then | |
8284b0c5 | 20487 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20488 | #define wxUSE_STATBOX 1 |
20489 | EOF | |
20490 | ||
1e6feb95 VZ |
20491 | USES_CONTROLS=1 |
20492 | fi | |
20493 | ||
20494 | if test "$wxUSE_STATTEXT" = "yes"; then | |
8284b0c5 | 20495 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20496 | #define wxUSE_STATTEXT 1 |
20497 | EOF | |
20498 | ||
20499 | USES_CONTROLS=1 | |
10f2d63a VZ |
20500 | fi |
20501 | ||
20502 | if test "$wxUSE_STATLINE" = "yes"; then | |
20503 | if test "$wxUSE_WINE" = 1 ; then | |
8284b0c5 | 20504 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 20505 | else |
8284b0c5 | 20506 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20507 | #define wxUSE_STATLINE 1 |
20508 | EOF | |
20509 | ||
1e6feb95 | 20510 | USES_CONTROLS=1 |
10f2d63a VZ |
20511 | fi |
20512 | fi | |
20513 | ||
20514 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
8284b0c5 | 20515 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20516 | #define wxUSE_STATUSBAR 1 |
20517 | EOF | |
20518 | ||
1e6feb95 | 20519 | USES_CONTROLS=1 |
698dcdb6 | 20520 | |
2286341c | 20521 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
20522 | fi |
20523 | ||
20524 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
8284b0c5 | 20525 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20526 | #define wxUSE_TAB_DIALOG 1 |
20527 | EOF | |
20528 | ||
20529 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
20530 | fi | |
20531 | ||
1e6feb95 | 20532 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
8284b0c5 | 20533 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20534 | #define wxUSE_TEXTCTRL 1 |
20535 | EOF | |
20536 | ||
20537 | USES_CONTROLS=1 | |
20538 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
20539 | fi | |
20540 | ||
1db8dc4a | 20541 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 | 20542 | if test "$wxUSE_MAC" = 1; then |
8284b0c5 | 20543 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
20544 | wxUSE_TOGGLEBTN=no |
20545 | fi | |
20546 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
8284b0c5 | 20547 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
20548 | wxUSE_TOGGLEBTN=no |
20549 | fi | |
20550 | ||
20551 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
8284b0c5 | 20552 | cat >> confdefs.h <<\EOF |
1db8dc4a VZ |
20553 | #define wxUSE_TOGGLEBTN 1 |
20554 | EOF | |
20555 | ||
1e6feb95 | 20556 | USES_CONTROLS=1 |
a45d7ab7 | 20557 | fi |
1db8dc4a VZ |
20558 | fi |
20559 | ||
360d6699 | 20560 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
8284b0c5 | 20561 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
20562 | #define wxUSE_TOOLBAR_SIMPLE 1 |
20563 | EOF | |
20564 | ||
20565 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 20566 | USES_CONTROLS=1 |
360d6699 VZ |
20567 | fi |
20568 | ||
10f2d63a | 20569 | if test "$wxUSE_TOOLBAR" = "yes"; then |
8284b0c5 | 20570 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20571 | #define wxUSE_TOOLBAR 1 |
20572 | EOF | |
20573 | ||
1e6feb95 | 20574 | USES_CONTROLS=1 |
698dcdb6 | 20575 | |
360d6699 VZ |
20576 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
20577 | wxUSE_TOOLBAR_NATIVE="yes" | |
20578 | fi | |
20579 | ||
1e6feb95 | 20580 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
8284b0c5 | 20581 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
20582 | #define wxUSE_TOOLBAR_NATIVE 1 |
20583 | EOF | |
20584 | ||
1e6feb95 VZ |
20585 | USES_CONTROLS=1 |
20586 | fi | |
20587 | ||
20588 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
20589 | fi |
20590 | ||
10f2d63a VZ |
20591 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
20592 | if test "$wxUSE_MOTIF" = 1; then | |
8284b0c5 | 20593 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
20594 | else |
20595 | if test "$wxUSE_WINE" = 1; then | |
8284b0c5 | 20596 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 20597 | else |
69d27ff7 | 20598 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
8284b0c5 | 20599 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 |
69d27ff7 | 20600 | else |
8284b0c5 | 20601 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20602 | #define wxUSE_TOOLTIPS 1 |
20603 | EOF | |
20604 | ||
69d27ff7 | 20605 | fi |
10f2d63a VZ |
20606 | fi |
20607 | fi | |
20608 | fi | |
20609 | ||
20610 | if test "$wxUSE_TREECTRL" = "yes"; then | |
20611 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
8284b0c5 | 20612 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20613 | #define wxUSE_TREECTRL 1 |
20614 | EOF | |
20615 | ||
1e6feb95 | 20616 | USES_CONTROLS=1 |
10f2d63a VZ |
20617 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
20618 | else | |
8284b0c5 | 20619 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20620 | fi |
20621 | fi | |
20622 | ||
9f41d601 | 20623 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 20624 | if test "$wxUSE_MAC" = 1; then |
8284b0c5 | 20625 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 20626 | else |
485cf710 | 20627 | if test "$wxUSE_MOTIF" = 1; then |
8284b0c5 | 20628 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 |
485cf710 | 20629 | else |
3c011993 | 20630 | if test "$wxUSE_PM" = 1; then |
8284b0c5 | 20631 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 20632 | else |
8284b0c5 | 20633 | cat >> confdefs.h <<\EOF |
9f41d601 RR |
20634 | #define wxUSE_POPUPWIN 1 |
20635 | EOF | |
20636 | ||
8284b0c5 | 20637 | |
3c011993 VZ |
20638 | USES_CONTROLS=1 |
20639 | fi | |
485cf710 | 20640 | fi |
6abe4b65 | 20641 | fi |
9f41d601 RR |
20642 | fi |
20643 | ||
dd964dcc | 20644 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 20645 | if test "$wxUSE_PM" = 1; then |
8284b0c5 | 20646 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 20647 | else |
8284b0c5 | 20648 | cat >> confdefs.h <<\EOF |
dd964dcc VZ |
20649 | #define wxUSE_TIPWINDOW 1 |
20650 | EOF | |
20651 | ||
3c011993 | 20652 | fi |
dd964dcc VZ |
20653 | fi |
20654 | ||
1e6feb95 | 20655 | if test "$USES_CONTROLS" = 1; then |
8284b0c5 | 20656 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20657 | #define wxUSE_CONTROLS 1 |
10f2d63a VZ |
20658 | EOF |
20659 | ||
10f2d63a VZ |
20660 | fi |
20661 | ||
8284b0c5 | 20662 | |
24176f2c | 20663 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
8284b0c5 | 20664 | cat >> confdefs.h <<\EOF |
24176f2c GD |
20665 | #define wxUSE_TREELAYOUT 1 |
20666 | EOF | |
20667 | ||
20668 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
20669 | fi | |
1e6feb95 | 20670 | |
24fd6d87 | 20671 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
8284b0c5 | 20672 | cat >> confdefs.h <<\EOF |
24fd6d87 VZ |
20673 | #define wxUSE_DRAGIMAGE 1 |
20674 | EOF | |
20675 | ||
20676 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
20677 | fi | |
20678 | ||
1e6feb95 | 20679 | if test "$wxUSE_MENUS" = "yes"; then |
8284b0c5 | 20680 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20681 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
20682 | EOF |
20683 | ||
1e6feb95 | 20684 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
20685 | fi |
20686 | ||
1e6feb95 | 20687 | if test "$wxUSE_METAFILE" = "yes"; then |
8284b0c5 | 20688 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20689 | #define wxUSE_METAFILE 1 |
10f2d63a VZ |
20690 | EOF |
20691 | ||
10f2d63a VZ |
20692 | fi |
20693 | ||
1e6feb95 | 20694 | if test "$wxUSE_MIMETYPE" = "yes"; then |
8284b0c5 | 20695 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20696 | #define wxUSE_MIMETYPE 1 |
10f2d63a VZ |
20697 | EOF |
20698 | ||
10f2d63a VZ |
20699 | fi |
20700 | ||
3e44f09d | 20701 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
8284b0c5 | 20702 | cat >> confdefs.h <<\EOF |
3e44f09d VZ |
20703 | #define wxUSE_SYSTEM_OPTIONS 1 |
20704 | EOF | |
20705 | ||
321d2b14 VZ |
20706 | if test "$TOOLKIT" = "MSW"; then |
20707 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
20708 | fi | |
20709 | ||
3e44f09d VZ |
20710 | fi |
20711 | ||
4cdb0ab0 | 20712 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca | 20713 | if test "$wxUSE_SOCKETS" != "yes"; then |
8284b0c5 | 20714 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 |
3954f9ca VS |
20715 | wxUSE_PROTOCOL=no |
20716 | fi | |
20717 | ||
20718 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
8284b0c5 | 20719 | cat >> confdefs.h <<\EOF |
4cdb0ab0 VS |
20720 | #define wxUSE_PROTOCOL 1 |
20721 | EOF | |
20722 | ||
8284b0c5 | 20723 | |
3954f9ca | 20724 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
8284b0c5 | 20725 | cat >> confdefs.h <<\EOF |
4cdb0ab0 VS |
20726 | #define wxUSE_PROTOCOL_HTTP 1 |
20727 | EOF | |
20728 | ||
3954f9ca VS |
20729 | fi |
20730 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
8284b0c5 | 20731 | cat >> confdefs.h <<\EOF |
4cdb0ab0 VS |
20732 | #define wxUSE_PROTOCOL_FTP 1 |
20733 | EOF | |
20734 | ||
3954f9ca VS |
20735 | fi |
20736 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
8284b0c5 | 20737 | cat >> confdefs.h <<\EOF |
3954f9ca VS |
20738 | #define wxUSE_PROTOCOL_FILE 1 |
20739 | EOF | |
20740 | ||
20741 | fi | |
4cdb0ab0 | 20742 | fi |
3954f9ca VS |
20743 | fi |
20744 | ||
20745 | if test "$wxUSE_URL" = "yes"; then | |
20746 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
8284b0c5 | 20747 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 |
3954f9ca VS |
20748 | wxUSE_URL=no |
20749 | fi | |
20750 | if test "$wxUSE_URL" = "yes"; then | |
8284b0c5 | 20751 | cat >> confdefs.h <<\EOF |
3954f9ca | 20752 | #define wxUSE_URL 1 |
4cdb0ab0 VS |
20753 | EOF |
20754 | ||
20755 | fi | |
20756 | fi | |
20757 | ||
10f2d63a | 20758 | if test "$wxUSE_MINIFRAME" = "yes"; then |
8284b0c5 | 20759 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20760 | #define wxUSE_MINIFRAME 1 |
20761 | EOF | |
20762 | ||
20763 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
20764 | fi | |
20765 | ||
20766 | if test "$wxUSE_HTML" = "yes"; then | |
8284b0c5 | 20767 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20768 | #define wxUSE_HTML 1 |
20769 | EOF | |
20770 | ||
20771 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
20772 | fi |
20773 | ||
20774 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
8284b0c5 | 20775 | cat >> confdefs.h <<\EOF |
1e487827 VS |
20776 | #define wxUSE_VALIDATORS 1 |
20777 | EOF | |
703e0a69 | 20778 | |
698dcdb6 VZ |
20779 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
20780 | fi | |
20781 | ||
edae8572 | 20782 | if test "$wxUSE_PALETTE" = "yes" ; then |
8284b0c5 | 20783 | cat >> confdefs.h <<\EOF |
edae8572 VZ |
20784 | #define wxUSE_PALETTE 1 |
20785 | EOF | |
20786 | ||
20787 | fi | |
20788 | ||
698dcdb6 | 20789 | if test "$wxUSE_IMAGE" = "yes" ; then |
8284b0c5 | 20790 | cat >> confdefs.h <<\EOF |
698dcdb6 VZ |
20791 | #define wxUSE_IMAGE 1 |
20792 | EOF | |
20793 | ||
20794 | fi | |
20795 | ||
20796 | if test "$wxUSE_GIF" = "yes" ; then | |
8284b0c5 | 20797 | cat >> confdefs.h <<\EOF |
698dcdb6 VZ |
20798 | #define wxUSE_GIF 1 |
20799 | EOF | |
20800 | ||
20801 | fi | |
20802 | ||
20803 | if test "$wxUSE_PCX" = "yes" ; then | |
8284b0c5 | 20804 | cat >> confdefs.h <<\EOF |
698dcdb6 VZ |
20805 | #define wxUSE_PCX 1 |
20806 | EOF | |
20807 | ||
20808 | fi | |
20809 | ||
4b6b4dfc | 20810 | if test "$wxUSE_IFF" = "yes" ; then |
8284b0c5 | 20811 | cat >> confdefs.h <<\EOF |
4b6b4dfc RR |
20812 | #define wxUSE_IFF 1 |
20813 | EOF | |
20814 | ||
20815 | fi | |
20816 | ||
698dcdb6 | 20817 | if test "$wxUSE_PNM" = "yes" ; then |
8284b0c5 | 20818 | cat >> confdefs.h <<\EOF |
698dcdb6 VZ |
20819 | #define wxUSE_PNM 1 |
20820 | EOF | |
20821 | ||
20822 | fi | |
20823 | ||
20824 | if test "$wxUSE_XPM" = "yes" ; then | |
8284b0c5 | 20825 | cat >> confdefs.h <<\EOF |
698dcdb6 VZ |
20826 | #define wxUSE_XPM 1 |
20827 | EOF | |
20828 | ||
20829 | fi | |
20830 | ||
658974ae | 20831 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
8284b0c5 | 20832 | cat >> confdefs.h <<\EOF |
658974ae VS |
20833 | #define wxUSE_ICO_CUR 1 |
20834 | EOF | |
20835 | ||
20836 | fi | |
20837 | ||
a72a4bfa VS |
20838 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
20839 | LIBS=" -lunicows $LIBS" | |
20840 | fi | |
20841 | ||
8284b0c5 | 20842 | |
1e6feb95 | 20843 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
8284b0c5 | 20844 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20845 | #define wxUSE_CHOICEDLG 1 |
20846 | EOF | |
20847 | ||
20848 | fi | |
20849 | ||
20850 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
8284b0c5 | 20851 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20852 | #define wxUSE_COLOURDLG 1 |
20853 | EOF | |
20854 | ||
20855 | fi | |
20856 | ||
20857 | if test "$wxUSE_FILEDLG" = "yes"; then | |
8284b0c5 | 20858 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20859 | #define wxUSE_FILEDLG 1 |
20860 | EOF | |
20861 | ||
20862 | fi | |
20863 | ||
8db37e06 | 20864 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
8284b0c5 | 20865 | cat >> confdefs.h <<\EOF |
8db37e06 VZ |
20866 | #define wxUSE_FINDREPLDLG 1 |
20867 | EOF | |
20868 | ||
20869 | fi | |
20870 | ||
1e6feb95 | 20871 | if test "$wxUSE_FONTDLG" = "yes"; then |
8284b0c5 | 20872 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20873 | #define wxUSE_FONTDLG 1 |
20874 | EOF | |
20875 | ||
20876 | fi | |
20877 | ||
20878 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 20879 | if test "$wxUSE_TREECTRL" != "yes"; then |
8284b0c5 | 20880 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 |
1e6feb95 | 20881 | else |
8284b0c5 | 20882 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20883 | #define wxUSE_DIRDLG 1 |
20884 | EOF | |
20885 | ||
1e6feb95 VZ |
20886 | fi |
20887 | fi | |
20888 | ||
20889 | if test "$wxUSE_MSGDLG" = "yes"; then | |
8284b0c5 | 20890 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20891 | #define wxUSE_MSGDLG 1 |
20892 | EOF | |
20893 | ||
20894 | fi | |
20895 | ||
20896 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
8284b0c5 | 20897 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20898 | #define wxUSE_NUMBERDLG 1 |
20899 | EOF | |
20900 | ||
20901 | fi | |
20902 | ||
20903 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
20904 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
8284b0c5 | 20905 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 |
1e6feb95 | 20906 | else |
8284b0c5 | 20907 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20908 | #define wxUSE_PROGRESSDLG 1 |
20909 | EOF | |
20910 | ||
20911 | fi | |
20912 | fi | |
20913 | ||
cbca9943 | 20914 | if test "$wxUSE_SPLASH" = "yes"; then |
8284b0c5 | 20915 | cat >> confdefs.h <<\EOF |
cbca9943 VZ |
20916 | #define wxUSE_SPLASH 1 |
20917 | EOF | |
20918 | ||
20919 | fi | |
20920 | ||
1e6feb95 VZ |
20921 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
20922 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
8284b0c5 | 20923 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 |
1e6feb95 | 20924 | else |
8284b0c5 | 20925 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20926 | #define wxUSE_STARTUP_TIPS 1 |
20927 | EOF | |
20928 | ||
7b4a847f RR |
20929 | fi |
20930 | fi | |
579d8138 | 20931 | |
8284b0c5 MB |
20932 | if test "$wxUSE_TEXTDLG" = "yes"; then |
20933 | cat >> confdefs.h <<\EOF | |
20934 | #define wxUSE_TEXTDLG 1 | |
20935 | EOF | |
20936 | ||
20937 | fi | |
20938 | ||
20939 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
20940 | cat >> confdefs.h <<\EOF | |
20941 | #define wxUSE_WIZARDDLG 1 | |
20942 | EOF | |
20943 | ||
20944 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
20945 | fi | |
20946 | ||
20947 | ||
20948 | if test "$cross_compiling" = "yes"; then | |
20949 | OSINFO="\"$host\"" | |
20950 | else | |
20951 | OSINFO=`uname -s -r -m` | |
20952 | OSINFO="\"$OSINFO\"" | |
20953 | fi | |
20954 | ||
20955 | cat >> confdefs.h <<EOF | |
20956 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
20957 | EOF | |
20958 | ||
20959 | ||
20960 | ||
20961 | if test "x$prefix" != "xNONE"; then | |
20962 | wxPREFIX=$prefix | |
20963 | else | |
20964 | wxPREFIX=$ac_default_prefix | |
20965 | fi | |
20966 | ||
20967 | cat >> confdefs.h <<EOF | |
20968 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
20969 | EOF | |
20970 | ||
20971 | ||
20972 | ||
20973 | ||
20974 | ||
20975 | if test "$wxUSE_MAC" = 1 ; then | |
20976 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
20977 | fi | |
20978 | ||
20979 | ||
20980 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS" | |
20981 | ||
20982 | if test "$wxUSE_GUI" = "yes"; then | |
20983 | ||
20984 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" | |
20985 | ||
20986 | ||
20987 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
20988 | drawing dynamic erase event exec font image \ | |
20989 | minimal propsize rotate widgets" | |
20990 | ||
20991 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
20992 | else | |
20993 | SAMPLES_SUBDIRS="console" | |
20994 | fi | |
20995 | ||
20996 | ||
20997 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ | |
20998 | -I\${top_srcdir}/include \ | |
20999 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
21000 | $TOOLKIT_INCLUDE" | |
21001 | ||
21002 | if test "$wxUSE_GTK" = 1; then | |
21003 | WXCONFIG_INCLUDE= | |
21004 | else | |
21005 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
21006 | fi | |
21007 | ||
21008 | if test "$GXX" = yes ; then | |
21009 | CXXWARNINGS="-Wall" | |
21010 | ||
21011 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
21012 | CFLAGS="-MMD $CFLAGS" | |
21013 | CXXFLAGS="-MMD $CXXFLAGS" | |
21014 | fi | |
21015 | fi | |
21016 | ||
21017 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
21018 | ||
21019 | CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
21020 | CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
21021 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
21022 | ||
21023 | LDFLAGS="$LDFLAGS $PROFILE" | |
21024 | ||
21025 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
21026 | ||
21027 | ||
21028 | ||
21029 | ||
21030 | ||
21031 | ||
21032 | ||
21033 | ||
21034 | ||
21035 | ||
21036 | ||
21037 | ||
21038 | ||
21039 | ||
21040 | ||
21041 | ||
21042 | ||
21043 | ||
21044 | ||
21045 | ||
21046 | ||
21047 | ||
21048 | ||
21049 | ||
21050 | ||
21051 | ||
21052 | ||
21053 | ||
21054 | ||
21055 | ||
21056 | ||
21057 | ||
21058 | ||
21059 | ||
21060 | ||
21061 | ||
21062 | ||
21063 | ||
21064 | ||
21065 | ||
21066 | ||
21067 | ||
21068 | ||
21069 | ||
21070 | ||
21071 | ||
21072 | ||
21073 | ||
21074 | ||
21075 | ||
21076 | ||
21077 | ||
21078 | ||
21079 | ||
21080 | ||
21081 | ||
21082 | ||
21083 | ||
21084 | ||
21085 | ||
21086 | ||
21087 | ||
21088 | ||
21089 | ||
21090 | ||
21091 | ||
21092 | ||
21093 | ||
2f51a9ec GD |
21094 | |
21095 | ||
21096 | ||
21097 | ||
f6bcfd97 | 21098 | |
dad6c0ea | 21099 | |
caa2c79b | 21100 | |
3711412e | 21101 | |
1e6feb95 VZ |
21102 | |
21103 | ||
885d4bf5 VS |
21104 | |
21105 | ||
21106 | ||
21107 | ||
9b695262 VZ |
21108 | |
21109 | ||
62d0491b | 21110 | |
ef7f2189 | 21111 | |
40f7145c | 21112 | |
3bd8fb5f | 21113 | |
10f2d63a VZ |
21114 | |
21115 | ||
8284b0c5 MB |
21116 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
21117 | echo "configure:21118: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
21118 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | |
21119 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
21120 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 21121 | else |
8284b0c5 | 21122 | cat > conftestmake <<\EOF |
10f2d63a VZ |
21123 | all: |
21124 | @echo 'ac_maketemp="${MAKE}"' | |
21125 | EOF | |
21126 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
8284b0c5 | 21127 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
21128 | if test -n "$ac_maketemp"; then |
21129 | eval ac_cv_prog_make_${ac_make}_set=yes | |
21130 | else | |
21131 | eval ac_cv_prog_make_${ac_make}_set=no | |
21132 | fi | |
8284b0c5 | 21133 | rm -f conftestmake |
10f2d63a VZ |
21134 | fi |
21135 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
8284b0c5 | 21136 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
21137 | SET_MAKE= |
21138 | else | |
8284b0c5 | 21139 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
21140 | SET_MAKE="MAKE=${MAKE-make}" |
21141 | fi | |
21142 | ||
8284b0c5 | 21143 | |
3a922bb4 RL |
21144 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
21145 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 21146 | fi |
665bbe97 | 21147 | |
8284b0c5 | 21148 | |
10f2d63a | 21149 | |
57973b9c VZ |
21150 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
21151 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
21152 | wx_cv_path_ifs=$PATH_IFS | |
21153 | wx_cv_program_ext=$PROGRAM_EXT | |
21154 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
21155 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
21156 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
21157 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ | |
21158 | wx_cv_path_ifs wx_cv_program_ext \ | |
21159 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype | |
21160 | ||
8284b0c5 MB |
21161 | subdirs="demos samples utils contrib" |
21162 | ||
10f2d63a | 21163 | |
8284b0c5 MB |
21164 | trap '' 1 2 15 |
21165 | cat > confcache <<\EOF | |
10f2d63a VZ |
21166 | # This file is a shell script that caches the results of configure |
21167 | # tests run on this system so they can be shared between configure | |
8284b0c5 MB |
21168 | # scripts and configure runs. It is not useful on other systems. |
21169 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 21170 | # |
8284b0c5 MB |
21171 | # By default, configure uses ./config.cache as the cache file, |
21172 | # creating it if it does not exist already. You can give configure | |
21173 | # the --cache-file=FILE option to use a different cache file; that is | |
21174 | # what configure does when it calls configure scripts in | |
21175 | # subdirectories, so they share the cache. | |
21176 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
21177 | # config.status only pays attention to the cache file if you give it the | |
21178 | # --recheck option to rerun configure. | |
10f2d63a | 21179 | # |
8284b0c5 | 21180 | EOF |
10f2d63a VZ |
21181 | # The following way of writing the cache mishandles newlines in values, |
21182 | # but we know of no workaround that is simple, portable, and efficient. | |
21183 | # So, don't put newlines in cache variables' values. | |
21184 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21185 | # and sets the high bit in the cache file unless we assign to the vars. | |
8284b0c5 MB |
21186 | (set) 2>&1 | |
21187 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
21188 | *ac_space=\ *) | |
21189 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
21190 | # turns \\\\ into \\, and sed turns \\ into \). | |
21191 | sed -n \ | |
21192 | -e "s/'/'\\\\''/g" \ | |
21193 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
21194 | ;; | |
21195 | *) | |
21196 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21197 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
21198 | ;; | |
21199 | esac >> confcache | |
21200 | if cmp -s $cache_file confcache; then | |
21201 | : | |
21202 | else | |
10f2d63a | 21203 | if test -w $cache_file; then |
8284b0c5 MB |
21204 | echo "updating cache $cache_file" |
21205 | cat confcache > $cache_file | |
10f2d63a VZ |
21206 | else |
21207 | echo "not updating unwritable cache $cache_file" | |
21208 | fi | |
21209 | fi | |
21210 | rm -f confcache | |
21211 | ||
8284b0c5 MB |
21212 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
21213 | ||
10f2d63a VZ |
21214 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
21215 | # Let make expand exec_prefix. | |
21216 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
21217 | ||
8284b0c5 MB |
21218 | # Any assignment to VPATH causes Sun make to only execute |
21219 | # the first set of double-colon rules, so remove it if not needed. | |
21220 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 21221 | if test "x$srcdir" = x.; then |
8284b0c5 | 21222 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
21223 | fi |
21224 | ||
8284b0c5 MB |
21225 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
21226 | ||
10f2d63a VZ |
21227 | DEFS=-DHAVE_CONFIG_H |
21228 | ||
8284b0c5 | 21229 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 21230 | : ${CONFIG_STATUS=./config.status} |
8284b0c5 MB |
21231 | |
21232 | echo creating $CONFIG_STATUS | |
21233 | rm -f $CONFIG_STATUS | |
21234 | cat > $CONFIG_STATUS <<EOF | |
21235 | #! /bin/sh | |
10f2d63a VZ |
21236 | # Generated automatically by configure. |
21237 | # Run this file to recreate the current configuration. | |
8284b0c5 MB |
21238 | # This directory was configured as follows, |
21239 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
5c6fa7d2 | 21240 | # |
8284b0c5 | 21241 | # $0 $ac_configure_args |
5c6fa7d2 | 21242 | # |
8284b0c5 MB |
21243 | # Compiler output produced by configure, useful for debugging |
21244 | # configure, is in ./config.log if it exists. | |
52127426 | 21245 | |
8284b0c5 MB |
21246 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
21247 | for ac_option | |
5c6fa7d2 | 21248 | do |
8284b0c5 MB |
21249 | case "\$ac_option" in |
21250 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
21251 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
21252 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
21253 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
21254 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
21255 | exit 0 ;; | |
21256 | -help | --help | --hel | --he | --h) | |
21257 | echo "\$ac_cs_usage"; exit 0 ;; | |
21258 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
5c6fa7d2 | 21259 | esac |
52127426 | 21260 | done |
5c6fa7d2 | 21261 | |
8284b0c5 MB |
21262 | ac_given_srcdir=$srcdir |
21263 | ac_given_INSTALL="$INSTALL" | |
5c6fa7d2 | 21264 | |
8284b0c5 MB |
21265 | trap 'rm -fr `echo " |
21266 | wx-config | |
21267 | src/make.env | |
21268 | src/makeprog.env | |
21269 | src/makelib.env | |
21270 | Makefile | |
21271 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
5c6fa7d2 | 21272 | EOF |
8284b0c5 | 21273 | cat >> $CONFIG_STATUS <<EOF |
5c6fa7d2 | 21274 | |
8284b0c5 MB |
21275 | # Protect against being on the right side of a sed subst in config.status. |
21276 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
21277 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
21278 | $ac_vpsub | |
21279 | $extrasub | |
21280 | s%@SHELL@%$SHELL%g | |
21281 | s%@CFLAGS@%$CFLAGS%g | |
21282 | s%@CPPFLAGS@%$CPPFLAGS%g | |
21283 | s%@CXXFLAGS@%$CXXFLAGS%g | |
21284 | s%@FFLAGS@%$FFLAGS%g | |
21285 | s%@DEFS@%$DEFS%g | |
21286 | s%@LDFLAGS@%$LDFLAGS%g | |
21287 | s%@LIBS@%$LIBS%g | |
21288 | s%@exec_prefix@%$exec_prefix%g | |
21289 | s%@prefix@%$prefix%g | |
21290 | s%@program_transform_name@%$program_transform_name%g | |
21291 | s%@bindir@%$bindir%g | |
21292 | s%@sbindir@%$sbindir%g | |
21293 | s%@libexecdir@%$libexecdir%g | |
21294 | s%@datadir@%$datadir%g | |
21295 | s%@sysconfdir@%$sysconfdir%g | |
21296 | s%@sharedstatedir@%$sharedstatedir%g | |
21297 | s%@localstatedir@%$localstatedir%g | |
21298 | s%@libdir@%$libdir%g | |
21299 | s%@includedir@%$includedir%g | |
21300 | s%@oldincludedir@%$oldincludedir%g | |
21301 | s%@infodir@%$infodir%g | |
21302 | s%@mandir@%$mandir%g | |
21303 | s%@host@%$host%g | |
21304 | s%@host_alias@%$host_alias%g | |
21305 | s%@host_cpu@%$host_cpu%g | |
21306 | s%@host_vendor@%$host_vendor%g | |
21307 | s%@host_os@%$host_os%g | |
21308 | s%@target@%$target%g | |
21309 | s%@target_alias@%$target_alias%g | |
21310 | s%@target_cpu@%$target_cpu%g | |
21311 | s%@target_vendor@%$target_vendor%g | |
21312 | s%@target_os@%$target_os%g | |
21313 | s%@build@%$build%g | |
21314 | s%@build_alias@%$build_alias%g | |
21315 | s%@build_cpu@%$build_cpu%g | |
21316 | s%@build_vendor@%$build_vendor%g | |
21317 | s%@build_os@%$build_os%g | |
21318 | s%@CC@%$CC%g | |
21319 | s%@CPP@%$CPP%g | |
21320 | s%@CXX@%$CXX%g | |
21321 | s%@RANLIB@%$RANLIB%g | |
21322 | s%@AR@%$AR%g | |
21323 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
21324 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
21325 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
21326 | s%@STRIP@%$STRIP%g | |
21327 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g | |
21328 | s%@YACC@%$YACC%g | |
21329 | s%@LEX@%$LEX%g | |
21330 | s%@LEXLIB@%$LEXLIB%g | |
21331 | s%@LN_S@%$LN_S%g | |
21332 | s%@CXXCPP@%$CXXCPP%g | |
21333 | s%@PKG_CONFIG@%$PKG_CONFIG%g | |
21334 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
21335 | s%@GTK_LIBS@%$GTK_LIBS%g | |
21336 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
21337 | s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g | |
21338 | s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g | |
21339 | s%@X_CFLAGS@%$X_CFLAGS%g | |
21340 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
21341 | s%@X_LIBS@%$X_LIBS%g | |
21342 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
21343 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g | |
21344 | s%@RESCOMP@%$RESCOMP%g | |
21345 | s%@DEREZ@%$DEREZ%g | |
21346 | s%@LIBICONV@%$LIBICONV%g | |
21347 | s%@LEX_STEM@%$LEX_STEM%g | |
21348 | s%@PATH_IFS@%$PATH_IFS%g | |
21349 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
21350 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
21351 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
21352 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
21353 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
21354 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g | |
21355 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
21356 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
21357 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
21358 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
21359 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
21360 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
21361 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
21362 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
21363 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
21364 | s%@WX_ALL@%$WX_ALL%g | |
21365 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
21366 | s%@SHARED_LD@%$SHARED_LD%g | |
21367 | s%@PIC_FLAG@%$PIC_FLAG%g | |
21368 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
21369 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
21370 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g | |
21371 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
21372 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
21373 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
21374 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
21375 | s%@USE_GUI@%$USE_GUI%g | |
21376 | s%@AFMINSTALL@%$AFMINSTALL%g | |
21377 | s%@TOOLKIT@%$TOOLKIT%g | |
21378 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
21379 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g | |
21380 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g | |
21381 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
21382 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g | |
21383 | s%@cross_compiling@%$cross_compiling%g | |
21384 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
21385 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
21386 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g | |
21387 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
21388 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
21389 | s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g | |
21390 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
21391 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
21392 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
21393 | s%@GUIDIST@%$GUIDIST%g | |
21394 | s%@PORT_FILES@%$PORT_FILES%g | |
21395 | s%@DISTDIR@%$DISTDIR%g | |
21396 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
21397 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g | |
21398 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g | |
21399 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
21400 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g | |
21401 | s%@EXTRADEFS@%$EXTRADEFS%g | |
21402 | s%@RESFLAGS@%$RESFLAGS%g | |
21403 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g | |
21404 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g | |
21405 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
21406 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g | |
21407 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
21408 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
21409 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g | |
21410 | s%@DLLTOOL@%$DLLTOOL%g | |
21411 | s%@AS@%$AS%g | |
21412 | s%@NM@%$NM%g | |
21413 | s%@LD@%$LD%g | |
21414 | s%@MAKEINFO@%$MAKEINFO%g | |
21415 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g | |
21416 | s%@SET_MAKE@%$SET_MAKE%g | |
21417 | s%@subdirs@%$subdirs%g | |
5c6fa7d2 | 21418 | |
5c6fa7d2 | 21419 | CEOF |
52127426 JS |
21420 | EOF |
21421 | ||
8284b0c5 MB |
21422 | cat >> $CONFIG_STATUS <<\EOF |
21423 | ||
21424 | # Split the substitutions into bite-sized pieces for seds with | |
21425 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
21426 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
21427 | ac_file=1 # Number of current file. | |
21428 | ac_beg=1 # First line for current file. | |
21429 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
21430 | ac_more_lines=: | |
21431 | ac_sed_cmds="" | |
21432 | while $ac_more_lines; do | |
21433 | if test $ac_beg -gt 1; then | |
21434 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
21435 | else | |
21436 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
21437 | fi | |
21438 | if test ! -s conftest.s$ac_file; then | |
21439 | ac_more_lines=false | |
21440 | rm -f conftest.s$ac_file | |
21441 | else | |
21442 | if test -z "$ac_sed_cmds"; then | |
21443 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
5c6fa7d2 | 21444 | else |
8284b0c5 | 21445 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
5c6fa7d2 | 21446 | fi |
8284b0c5 MB |
21447 | ac_file=`expr $ac_file + 1` |
21448 | ac_beg=$ac_end | |
21449 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
5c6fa7d2 | 21450 | fi |
8284b0c5 MB |
21451 | done |
21452 | if test -z "$ac_sed_cmds"; then | |
21453 | ac_sed_cmds=cat | |
21454 | fi | |
21455 | EOF | |
21456 | ||
21457 | cat >> $CONFIG_STATUS <<EOF | |
698dcdb6 | 21458 | |
8284b0c5 MB |
21459 | CONFIG_FILES=\${CONFIG_FILES-"wx-config |
21460 | src/make.env | |
21461 | src/makeprog.env | |
21462 | src/makelib.env | |
21463 | Makefile | |
21464 | "} | |
10f2d63a | 21465 | EOF |
8284b0c5 MB |
21466 | cat >> $CONFIG_STATUS <<\EOF |
21467 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 21468 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
8284b0c5 MB |
21469 | case "$ac_file" in |
21470 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21471 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21472 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
21473 | esac |
21474 | ||
8284b0c5 | 21475 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
5c6fa7d2 | 21476 | |
8284b0c5 MB |
21477 | # Remove last slash and all that follows it. Not all systems have dirname. |
21478 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
21479 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
21480 | # The file is in a subdirectory. | |
21481 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
21482 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 21483 | # A "../" for each directory in $ac_dir_suffix. |
8284b0c5 | 21484 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
21485 | else |
21486 | ac_dir_suffix= ac_dots= | |
21487 | fi | |
21488 | ||
8284b0c5 MB |
21489 | case "$ac_given_srcdir" in |
21490 | .) srcdir=. | |
21491 | if test -z "$ac_dots"; then top_srcdir=. | |
21492 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
21493 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 21494 | *) # Relative path. |
8284b0c5 MB |
21495 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
21496 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
21497 | esac |
21498 | ||
8284b0c5 MB |
21499 | case "$ac_given_INSTALL" in |
21500 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21501 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
21502 | esac |
21503 | ||
8284b0c5 MB |
21504 | echo creating "$ac_file" |
21505 | rm -f "$ac_file" | |
21506 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
21507 | case "$ac_file" in | |
21508 | *Makefile*) ac_comsub="1i\\ | |
21509 | # $configure_input" ;; | |
21510 | *) ac_comsub= ;; | |
21511 | esac | |
10f2d63a | 21512 | |
8284b0c5 MB |
21513 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
21514 | sed -e "$ac_comsub | |
21515 | s%@configure_input@%$configure_input%g | |
21516 | s%@srcdir@%$srcdir%g | |
21517 | s%@top_srcdir@%$top_srcdir%g | |
21518 | s%@INSTALL@%$INSTALL%g | |
21519 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
21520 | fi; done | |
21521 | rm -f conftest.s* | |
10f2d63a VZ |
21522 | |
21523 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
21524 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
21525 | # | |
21526 | # ac_d sets the value in "#define NAME VALUE" lines. | |
8284b0c5 MB |
21527 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
21528 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
21529 | ac_dC='\3' | |
21530 | ac_dD='%g' | |
21531 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
21532 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21533 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 21534 | ac_uC=' ' |
8284b0c5 MB |
21535 | ac_uD='\4%g' |
21536 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
21537 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21538 | ac_eB='$%\1#\2define\3' | |
21539 | ac_eC=' ' | |
21540 | ac_eD='%g' | |
10f2d63a | 21541 | |
8284b0c5 MB |
21542 | if test "${CONFIG_HEADERS+set}" != set; then |
21543 | EOF | |
21544 | cat >> $CONFIG_STATUS <<EOF | |
21545 | CONFIG_HEADERS="setup.h:setup.h.in" | |
21546 | EOF | |
21547 | cat >> $CONFIG_STATUS <<\EOF | |
21548 | fi | |
21549 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 21550 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
8284b0c5 MB |
21551 | case "$ac_file" in |
21552 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21553 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21554 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
21555 | esac |
21556 | ||
8284b0c5 MB |
21557 | echo creating $ac_file |
21558 | ||
21559 | rm -f conftest.frag conftest.in conftest.out | |
21560 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
21561 | cat $ac_file_inputs > conftest.in | |
21562 | ||
21563 | EOF | |
21564 | ||
21565 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
21566 | # the proper values into config.h.in to produce config.h. And first: | |
21567 | # Protect against being on the right side of a sed subst in config.status. | |
21568 | # Protect against being in an unquoted here document in config.status. | |
21569 | rm -f conftest.vals | |
21570 | cat > conftest.hdr <<\EOF | |
21571 | s/[\\&%]/\\&/g | |
21572 | s%[\\$`]%\\&%g | |
21573 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
21574 | s%ac_d%ac_u%gp | |
21575 | s%ac_u%ac_e%gp | |
21576 | EOF | |
21577 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
21578 | rm -f conftest.hdr | |
10f2d63a VZ |
21579 | |
21580 | # This sed command replaces #undef with comments. This is necessary, for | |
21581 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
21582 | # on some systems where configure will not decide to define it. | |
8284b0c5 MB |
21583 | cat >> conftest.vals <<\EOF |
21584 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
21585 | EOF |
21586 | ||
8284b0c5 MB |
21587 | # Break up conftest.vals because some shells have a limit on |
21588 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
21589 | |
21590 | rm -f conftest.tail | |
8284b0c5 | 21591 | while : |
10f2d63a | 21592 | do |
8284b0c5 MB |
21593 | ac_lines=`grep -c . conftest.vals` |
21594 | # grep -c gives empty output for an empty file on some AIX systems. | |
21595 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
21596 | # Write a limited-size here document to conftest.frag. | |
21597 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
21598 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 21599 | echo 'CEOF |
8284b0c5 MB |
21600 | sed -f conftest.frag conftest.in > conftest.out |
21601 | rm -f conftest.in | |
21602 | mv conftest.out conftest.in | |
21603 | ' >> $CONFIG_STATUS | |
21604 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
21605 | rm -f conftest.vals | |
21606 | mv conftest.tail conftest.vals | |
10f2d63a | 21607 | done |
8284b0c5 MB |
21608 | rm -f conftest.vals |
21609 | ||
21610 | cat >> $CONFIG_STATUS <<\EOF | |
21611 | rm -f conftest.frag conftest.h | |
21612 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
21613 | cat conftest.in >> conftest.h | |
21614 | rm -f conftest.in | |
21615 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
21616 | echo "$ac_file is unchanged" | |
21617 | rm -f conftest.h | |
10f2d63a | 21618 | else |
8284b0c5 MB |
21619 | # Remove last slash and all that follows it. Not all systems have dirname. |
21620 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 21621 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
8284b0c5 MB |
21622 | # The file is in a subdirectory. |
21623 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 21624 | fi |
8284b0c5 MB |
21625 | rm -f $ac_file |
21626 | mv conftest.h $ac_file | |
10f2d63a | 21627 | fi |
8284b0c5 MB |
21628 | fi; done |
21629 | ||
10f2d63a | 21630 | EOF |
8284b0c5 | 21631 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 21632 | |
8284b0c5 MB |
21633 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
21634 | LN_S="${LN_S}" | |
21635 | ||
21636 | ||
21637 | EOF | |
21638 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 21639 | |
652d930d | 21640 | if test ! -h wx-config; then |
991a5759 | 21641 | chmod +x wx-config |
3a922bb4 RL |
21642 | mv wx-config wx${TOOLCHAIN_NAME}-config |
21643 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 21644 | fi |
665bbe97 | 21645 | |
00cf1208 RR |
21646 | if test ! -d lib; then |
21647 | mkdir lib | |
21648 | fi | |
21649 | if test ! -d lib/wx; then | |
21650 | mkdir lib/wx | |
21651 | fi | |
21652 | if test ! -d lib/wx/include; then | |
21653 | mkdir lib/wx/include | |
21654 | fi | |
3a922bb4 RL |
21655 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
21656 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 21657 | fi |
3a922bb4 RL |
21658 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
21659 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
21660 | fi |
21661 | if test -f setup.h; then | |
3a922bb4 | 21662 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 21663 | fi |
8284b0c5 MB |
21664 | |
21665 | exit 0 | |
10f2d63a VZ |
21666 | EOF |
21667 | chmod +x $CONFIG_STATUS | |
8284b0c5 MB |
21668 | rm -fr confdefs* $ac_clean_files |
21669 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 21670 | |
2224580a VZ |
21671 | if test "$no_recursion" != yes; then |
21672 | ||
21673 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
21674 | ac_sub_configure_args= | |
21675 | ac_prev= | |
21676 | for ac_arg in $ac_configure_args; do | |
21677 | if test -n "$ac_prev"; then | |
21678 | ac_prev= | |
21679 | continue | |
21680 | fi | |
8284b0c5 | 21681 | case "$ac_arg" in |
2224580a VZ |
21682 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
21683 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
21684 | ac_prev=cache_file ;; | |
21685 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
8284b0c5 | 21686 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
21687 | ;; |
21688 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
21689 | ac_prev=srcdir ;; | |
21690 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
21691 | ;; | |
21692 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
21693 | esac | |
21694 | done | |
21695 | ||
8284b0c5 | 21696 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
21697 | |
21698 | # Do not complain, so a configure script can configure whichever | |
21699 | # parts of a large source tree are present. | |
8284b0c5 MB |
21700 | if test ! -d $srcdir/$ac_config_dir; then |
21701 | continue | |
21702 | fi | |
21703 | ||
21704 | echo configuring in $ac_config_dir | |
2224580a | 21705 | |
8284b0c5 | 21706 | case "$srcdir" in |
2224580a VZ |
21707 | .) ;; |
21708 | *) | |
8284b0c5 MB |
21709 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
21710 | else | |
21711 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
21712 | fi | |
21713 | ;; | |
2224580a VZ |
21714 | esac |
21715 | ||
21716 | ac_popdir=`pwd` | |
8284b0c5 | 21717 | cd $ac_config_dir |
2224580a | 21718 | |
8284b0c5 MB |
21719 | # A "../" for each directory in /$ac_config_dir. |
21720 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 21721 | |
8284b0c5 | 21722 | case "$srcdir" in |
2224580a VZ |
21723 | .) # No --srcdir option. We are building in place. |
21724 | ac_sub_srcdir=$srcdir ;; | |
8284b0c5 MB |
21725 | /*) # Absolute path. |
21726 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 21727 | *) # Relative path. |
8284b0c5 | 21728 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
21729 | esac |
21730 | ||
21731 | # Check for guested configure; otherwise get Cygnus style configure. | |
8284b0c5 MB |
21732 | if test -f $ac_sub_srcdir/configure; then |
21733 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
21734 | elif test -f $ac_sub_srcdir/configure.in; then |
21735 | ac_sub_configure=$ac_configure | |
21736 | else | |
8284b0c5 | 21737 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
21738 | ac_sub_configure= |
21739 | fi | |
21740 | ||
21741 | # The recursion is here. | |
21742 | if test -n "$ac_sub_configure"; then | |
8284b0c5 | 21743 | |
2224580a | 21744 | # Make the cache file name correct relative to the subdirectory. |
8284b0c5 MB |
21745 | case "$cache_file" in |
21746 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 21747 | *) # Relative path. |
8284b0c5 | 21748 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 21749 | esac |
8284b0c5 MB |
21750 | case "$ac_given_INSTALL" in |
21751 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21752 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
21753 | esac | |
2224580a | 21754 | |
8284b0c5 | 21755 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 21756 | # The eval makes quoting arguments work. |
8284b0c5 MB |
21757 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
21758 | then : | |
21759 | else | |
21760 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
21761 | fi | |
2224580a VZ |
21762 | fi |
21763 | ||
21764 | cd $ac_popdir | |
21765 | done | |
21766 | fi | |
21767 | ||
8284b0c5 | 21768 |