]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
a0b9e27f MB |
3 | # From configure.in Id: configure.in |
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
52127426 | 25 | |
52127426 | 26 | |
8284b0c5 MB |
27 | |
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
8284b0c5 MB |
36 | |
37 | ||
38 | ||
39 | ||
40 | ||
41 | ||
42 | ||
43 | ||
8284b0c5 MB |
44 | |
45 | ||
46 | ||
247f5006 | 47 | |
247f5006 | 48 | |
a0b9e27f MB |
49 | |
50 | ||
51 | ||
52 | ||
53 | ||
54 | ||
2b5f62a0 VZ |
55 | |
56 | ||
57 | ||
a0b9e27f MB |
58 | |
59 | ||
60 | ||
61 | ||
62 | # Configure paths for GTK+ | |
63 | # Owen Taylor 1997-2001 | |
64 | ||
65 | ||
66 | ||
2b5f62a0 VZ |
67 | # Configure paths for GTK+ |
68 | # Owen Taylor 97-11-3 | |
a0b9e27f MB |
69 | |
70 | ||
71 | ||
72 | ||
73 | ||
a0b9e27f MB |
74 | |
75 | ||
76 | ||
77 | # Guess values for system-dependent variables and create Makefiles. | |
78 | # Generated automatically using autoconf version 2.13 | |
79 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
80 | # | |
81 | # This configure script is free software; the Free Software Foundation | |
82 | # gives unlimited permission to copy, distribute and modify it. | |
83 | ||
84 | # Defaults: | |
85 | ac_help= | |
86 | ac_default_prefix=/usr/local | |
87 | # Any additions from configure.in: | |
88 | ac_help="$ac_help | |
89 | --enable-gui use GUI classes" | |
90 | ac_help="$ac_help | |
91 | --enable-universal use wxWindows GUI controls instead of native ones" | |
92 | ac_help="$ac_help | |
93 | --with-gtk use GTK+" | |
94 | ac_help="$ac_help | |
95 | --with-motif use Motif/Lesstif" | |
96 | ac_help="$ac_help | |
97 | --with-mac use Mac OS X" | |
98 | ac_help="$ac_help | |
89e6bf6d | 99 | --with-wine use Wine" |
a0b9e27f MB |
100 | ac_help="$ac_help |
101 | --with-msw use MS-Windows" | |
102 | ac_help="$ac_help | |
103 | --with-pm use OS/2 Presentation Manager" | |
104 | ac_help="$ac_help | |
105 | --with-mgl use SciTech MGL" | |
106 | ac_help="$ac_help | |
107 | --with-microwin use MicroWindows" | |
108 | ac_help="$ac_help | |
109 | --with-x11 use X11" | |
110 | ac_help="$ac_help | |
111 | --enable-nanox use NanoX" | |
112 | ac_help="$ac_help | |
113 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" | |
114 | ac_help="$ac_help | |
115 | --with-libpng use libpng (PNG image format)" | |
116 | ac_help="$ac_help | |
117 | --with-libjpeg use libjpeg (JPEG file format)" | |
118 | ac_help="$ac_help | |
119 | --with-libtiff use libtiff (TIFF file format)" | |
120 | ac_help="$ac_help | |
121 | --with-opengl use OpenGL (or Mesa)" | |
122 | ac_help="$ac_help | |
123 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" | |
124 | ac_help="$ac_help | |
125 | --with-regex enable support for wxRegEx class" | |
126 | ac_help="$ac_help | |
127 | --with-zlib use zlib for LZW compression" | |
128 | ac_help="$ac_help | |
129 | --with-odbc use the IODBC and wxODBC classes" | |
130 | ac_help="$ac_help | |
131 | --enable-shared create shared library code" | |
132 | ac_help="$ac_help | |
133 | --enable-soname set the DT_SONAME field in ELF shared libraries" | |
134 | ac_help="$ac_help | |
135 | --enable-optimise create optimised code" | |
136 | ac_help="$ac_help | |
137 | --enable-debug same as debug_flag and debug_info" | |
138 | ac_help="$ac_help | |
b2fee376 | 139 | --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)" |
a0b9e27f MB |
140 | ac_help="$ac_help |
141 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
142 | ac_help="$ac_help | |
143 | --enable-debug_info create code with debugging information" | |
144 | ac_help="$ac_help | |
145 | --enable-debug_gdb create code with extra GDB debugging information" | |
146 | ac_help="$ac_help | |
147 | --enable-debug_cntxt use wxDebugContext" | |
148 | ac_help="$ac_help | |
149 | --enable-mem_tracing create code with memory tracing" | |
150 | ac_help="$ac_help | |
151 | --enable-profile create code with profiling information" | |
152 | ac_help="$ac_help | |
153 | --enable-no_rtti create code without RTTI information" | |
154 | ac_help="$ac_help | |
155 | --enable-no_exceptions create code without C++ exceptions handling" | |
156 | ac_help="$ac_help | |
157 | --enable-permissive compile code disregarding strict ANSI" | |
158 | ac_help="$ac_help | |
159 | --enable-no_deps create code without dependency information" | |
160 | ac_help="$ac_help | |
161 | --enable-compat20 enable wxWindows 2.0 compatibility" | |
162 | ac_help="$ac_help | |
65d8ef1e VS |
163 | --enable-compat22 enable wxWindows 2.2 compatibility" |
164 | ac_help="$ac_help | |
165 | --disable-compat24 disable wxWindows 2.4 compatibility" | |
a0b9e27f MB |
166 | ac_help="$ac_help |
167 | --enable-rpath=DIR output the rpath flag from wx-config" | |
168 | ac_help="$ac_help | |
169 | --enable-intl use internationalization system" | |
170 | ac_help="$ac_help | |
171 | --enable-config use wxConfig (and derived) classes" | |
172 | ac_help="$ac_help | |
173 | --enable-protocols use wxProtocol and derived classes" | |
174 | ac_help="$ac_help | |
175 | --enable-ftp use wxFTP (requires wxProtocol" | |
176 | ac_help="$ac_help | |
177 | --enable-http use wxHTTP (requires wxProtocol" | |
178 | ac_help="$ac_help | |
179 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
180 | ac_help="$ac_help | |
181 | --enable-sockets use socket/network classes" | |
3bce6687 JS |
182 | ac_help="$ac_help |
183 | --enable-ole use OLE classes" | |
184 | ac_help="$ac_help | |
185 | --enable-dataobj use data object classes" | |
a0b9e27f MB |
186 | ac_help="$ac_help |
187 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
188 | ac_help="$ac_help | |
189 | --enable-cmdline use wxCmdLineParser class" | |
190 | ac_help="$ac_help | |
191 | --enable-datetime use wxDateTime class" | |
192 | ac_help="$ac_help | |
193 | --enable-timedate use obsolete wxDate/wxTime classes" | |
194 | ac_help="$ac_help | |
195 | --enable-stopwatch use wxStopWatch class" | |
196 | ac_help="$ac_help | |
197 | --enable-dialupman use dialup network classes" | |
198 | ac_help="$ac_help | |
199 | --enable-apple_ieee use the Apple IEEE codec" | |
200 | ac_help="$ac_help | |
201 | --enable-timer use wxTimer class" | |
202 | ac_help="$ac_help | |
203 | --enable-wave use wxWave class" | |
204 | ac_help="$ac_help | |
205 | --enable-fraction use wxFraction class" | |
206 | ac_help="$ac_help | |
207 | --enable-dynlib use wxLibrary class for DLL loading" | |
208 | ac_help="$ac_help | |
209 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
210 | ac_help="$ac_help | |
211 | --enable-longlong use wxLongLong class" | |
212 | ac_help="$ac_help | |
213 | --enable-geometry use geometry class" | |
214 | ac_help="$ac_help | |
215 | --enable-log use logging system" | |
216 | ac_help="$ac_help | |
217 | --enable-streams use wxStream etc classes" | |
218 | ac_help="$ac_help | |
219 | --enable-file use wxFile classes" | |
220 | ac_help="$ac_help | |
221 | --enable-ffile use wxFFile classes" | |
222 | ac_help="$ac_help | |
223 | --enable-textbuf use wxTextBuffer class" | |
224 | ac_help="$ac_help | |
225 | --enable-textfile use wxTextFile class" | |
226 | ac_help="$ac_help | |
227 | --enable-fontmap use font encodings conversion classes" | |
228 | ac_help="$ac_help | |
229 | --enable-unicode compile wxString with Unicode support" | |
230 | ac_help="$ac_help | |
231 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
232 | ac_help="$ac_help | |
233 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
234 | ac_help="$ac_help | |
235 | --enable-std_iostreams use standard C++ stream classes" | |
236 | ac_help="$ac_help | |
237 | --enable-filesystem use virtual file systems classes" | |
238 | ac_help="$ac_help | |
239 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
240 | ac_help="$ac_help | |
241 | --enable-fs_zip use virtual ZIP filesystems" | |
242 | ac_help="$ac_help | |
243 | --enable-zipstream use wxZipInputStream" | |
244 | ac_help="$ac_help | |
245 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" | |
246 | ac_help="$ac_help | |
247 | --enable-snglinst use wxSingleInstanceChecker class" | |
248 | ac_help="$ac_help | |
249 | --enable-mimetype use wxMimeTypesManager" | |
250 | ac_help="$ac_help | |
251 | --enable-sysoptions use wxSystemOptions" | |
252 | ac_help="$ac_help | |
253 | --enable-url use wxURL class" | |
254 | ac_help="$ac_help | |
255 | --enable-protocol use wxProtocol class" | |
256 | ac_help="$ac_help | |
257 | --enable-protocol-http HTTP support in wxProtocol" | |
258 | ac_help="$ac_help | |
259 | --enable-protocol-ftp FTP support in wxProtocol" | |
260 | ac_help="$ac_help | |
261 | --enable-protocol-file FILE support in wxProtocol" | |
262 | ac_help="$ac_help | |
263 | --enable-threads use threads" | |
264 | ac_help="$ac_help | |
265 | --enable-docview use document view architecture" | |
266 | ac_help="$ac_help | |
267 | --enable-help use help subsystem" | |
268 | ac_help="$ac_help | |
269 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
270 | ac_help="$ac_help | |
271 | --enable-html use wxHTML sub-library" | |
272 | ac_help="$ac_help | |
273 | --enable-htmlhelp use wxHTML-based help" | |
274 | ac_help="$ac_help | |
275 | --enable-constraints use layout-constraints system" | |
276 | ac_help="$ac_help | |
277 | --enable-printarch use printing architecture" | |
278 | ac_help="$ac_help | |
279 | --enable-mdi use multiple document interface architecture" | |
280 | ac_help="$ac_help | |
281 | --enable-loggui use standard GUI logger" | |
282 | ac_help="$ac_help | |
283 | --enable-logwin use wxLogWindow" | |
284 | ac_help="$ac_help | |
285 | --enable-logdialog use wxLogDialog" | |
286 | ac_help="$ac_help | |
287 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
288 | ac_help="$ac_help | |
289 | --enable-prologio use Prolog IO library" | |
290 | ac_help="$ac_help | |
291 | --enable-resources use wxWindows resources" | |
292 | ac_help="$ac_help | |
293 | --enable-xresources use X resources for save (default for gtk+)" | |
294 | ac_help="$ac_help | |
da494b40 | 295 | --enable-clipboard use wxClipboard class" |
a0b9e27f MB |
296 | ac_help="$ac_help |
297 | --enable-dnd use Drag'n'Drop classes" | |
298 | ac_help="$ac_help | |
299 | --enable-metafile use win32 metafiles" | |
300 | ac_help="$ac_help | |
da494b40 | 301 | --enable-treelayout use wxTreeLayout class" |
a0b9e27f MB |
302 | ac_help="$ac_help |
303 | --enable-controls use all usual controls" | |
304 | ac_help="$ac_help | |
305 | --enable-accel use accelerators" | |
306 | ac_help="$ac_help | |
307 | --enable-button use wxButton class" | |
308 | ac_help="$ac_help | |
309 | --enable-bmpbutton use wxBitmapButton class" | |
310 | ac_help="$ac_help | |
311 | --enable-calendar use wxCalendarCtrl class" | |
312 | ac_help="$ac_help | |
313 | --enable-caret use wxCaret class" | |
314 | ac_help="$ac_help | |
315 | --enable-checkbox use wxCheckBox class" | |
316 | ac_help="$ac_help | |
317 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
318 | ac_help="$ac_help | |
319 | --enable-choice use wxChoice class" | |
320 | ac_help="$ac_help | |
da494b40 MB |
321 | --enable-combobox use wxComboBox class" |
322 | ac_help="$ac_help | |
323 | --enable-display use wxDisplay class" | |
a0b9e27f MB |
324 | ac_help="$ac_help |
325 | --enable-gauge use wxGauge class" | |
326 | ac_help="$ac_help | |
327 | --enable-grid use wxGrid class" | |
328 | ac_help="$ac_help | |
329 | --enable-newgrid use new wxGrid class" | |
330 | ac_help="$ac_help | |
331 | --enable-imaglist use wxImageList class" | |
332 | ac_help="$ac_help | |
333 | --enable-listbox use wxListBox class" | |
334 | ac_help="$ac_help | |
335 | --enable-listctrl use wxListCtrl class" | |
336 | ac_help="$ac_help | |
337 | --enable-notebook use wxNotebook class" | |
338 | ac_help="$ac_help | |
339 | --enable-propsheet use wxPropertySheet class" | |
340 | ac_help="$ac_help | |
341 | --enable-radiobox use wxRadioBox class" | |
342 | ac_help="$ac_help | |
343 | --enable-radiobtn use wxRadioButton class" | |
344 | ac_help="$ac_help | |
345 | --enable-sash use wxSashWindow class" | |
346 | ac_help="$ac_help | |
347 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
348 | ac_help="$ac_help | |
349 | --enable-slider use wxSlider class" | |
350 | ac_help="$ac_help | |
351 | --enable-spinbtn use wxSpinButton class" | |
352 | ac_help="$ac_help | |
353 | --enable-spinctrl use wxSpinCtrl class" | |
354 | ac_help="$ac_help | |
355 | --enable-splitter use wxSplitterWindow class" | |
356 | ac_help="$ac_help | |
357 | --enable-statbmp use wxStaticBitmap class" | |
358 | ac_help="$ac_help | |
359 | --enable-statbox use wxStaticBox class" | |
360 | ac_help="$ac_help | |
361 | --enable-statline use wxStaticLine class" | |
362 | ac_help="$ac_help | |
363 | --enable-stattext use wxStaticText class" | |
364 | ac_help="$ac_help | |
365 | --enable-statusbar use wxStatusBar class" | |
366 | ac_help="$ac_help | |
367 | --enable-tabdialog use wxTabControl class" | |
368 | ac_help="$ac_help | |
369 | --enable-textctrl use wxTextCtrl class" | |
370 | ac_help="$ac_help | |
371 | --enable-togglebtn use wxToggleButton class" | |
372 | ac_help="$ac_help | |
373 | --enable-toolbar use wxToolBar class" | |
374 | ac_help="$ac_help | |
375 | --enable-tbarnative use native wxToolBar class" | |
376 | ac_help="$ac_help | |
377 | --enable-tbarsmpl use wxToolBarSimple class" | |
378 | ac_help="$ac_help | |
379 | --enable-treectrl use wxTreeCtrl class" | |
380 | ac_help="$ac_help | |
381 | --enable-tipwindow use wxTipWindow class" | |
382 | ac_help="$ac_help | |
383 | --enable-popupwin use wxPopUpWindow class" | |
384 | ac_help="$ac_help | |
385 | --enable-commondlg use all common dialogs" | |
386 | ac_help="$ac_help | |
387 | --enable-choicedlg use wxChoiceDialog" | |
388 | ac_help="$ac_help | |
389 | --enable-coldlg use wxColourDialog" | |
390 | ac_help="$ac_help | |
391 | --enable-filedlg use wxFileDialog" | |
392 | ac_help="$ac_help | |
393 | --enable-finddlg use wxFindReplaceDialog" | |
394 | ac_help="$ac_help | |
395 | --enable-fontdlg use wxFontDialog" | |
396 | ac_help="$ac_help | |
397 | --enable-dirdlg use wxDirDialog" | |
398 | ac_help="$ac_help | |
399 | --enable-msgdlg use wxMessageDialog" | |
400 | ac_help="$ac_help | |
401 | --enable-numberdlg use wxNumberEntryDialog" | |
402 | ac_help="$ac_help | |
403 | --enable-splash use wxSplashScreen" | |
404 | ac_help="$ac_help | |
405 | --enable-textdlg use wxTextDialog" | |
406 | ac_help="$ac_help | |
407 | --enable-tipdlg use startup tips" | |
408 | ac_help="$ac_help | |
409 | --enable-progressdlg use wxProgressDialog" | |
410 | ac_help="$ac_help | |
411 | --enable-wizarddlg use wxWizard" | |
412 | ac_help="$ac_help | |
413 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" | |
414 | ac_help="$ac_help | |
415 | --enable-miniframe use wxMiniFrame class" | |
416 | ac_help="$ac_help | |
417 | --enable-tooltips use wxToolTip class" | |
418 | ac_help="$ac_help | |
419 | --enable-splines use spline drawing code" | |
420 | ac_help="$ac_help | |
421 | --enable-validators use wxValidator and derived classes" | |
422 | ac_help="$ac_help | |
423 | --enable-busyinfo use wxBusyInfo" | |
424 | ac_help="$ac_help | |
425 | --enable-joystick use wxJoystick (Linux only)" | |
426 | ac_help="$ac_help | |
427 | --enable-metafiles use wxMetaFile (Windows only)" | |
428 | ac_help="$ac_help | |
429 | --enable-dragimage use wxDragImage" | |
430 | ac_help="$ac_help | |
431 | --enable-palette use wxPalette class" | |
432 | ac_help="$ac_help | |
433 | --enable-image use wxImage class" | |
434 | ac_help="$ac_help | |
435 | --enable-gif use gif images (GIF file format)" | |
436 | ac_help="$ac_help | |
437 | --enable-pcx use pcx images (PCX file format)" | |
438 | ac_help="$ac_help | |
439 | --enable-iff use iff images (IFF file format)" | |
440 | ac_help="$ac_help | |
441 | --enable-pnm use pnm images (PNM file format)" | |
442 | ac_help="$ac_help | |
443 | --enable-xpm use xpm images (XPM file format)" | |
444 | ac_help="$ac_help | |
445 | --enable-icocur use Windows ICO and CUR formats" | |
446 | ac_help="$ac_help | |
447 | --disable-largefile omit support for large files" | |
448 | ac_help="$ac_help | |
449 | --disable-gtktest do not try to compile and run a test GTK+ program" | |
450 | ac_help="$ac_help | |
451 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
452 | ac_help="$ac_help | |
453 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
454 | ac_help="$ac_help | |
455 | --disable-gtktest Do not try to compile and run a test GTK program" | |
456 | ac_help="$ac_help | |
457 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
458 | ac_help="$ac_help | |
459 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
460 | ac_help="$ac_help | |
461 | --disable-gtktest Do not try to compile and run a test GTK program" | |
462 | ac_help="$ac_help | |
463 | --with-x use the X Window System" | |
464 | ac_help="$ac_help | |
465 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
466 | |
467 | # Initialize some variables set by options. | |
468 | # The variables have the same names as the options, with | |
469 | # dashes changed to underlines. | |
a0b9e27f MB |
470 | build=NONE |
471 | cache_file=./config.cache | |
10f2d63a | 472 | exec_prefix=NONE |
a0b9e27f | 473 | host=NONE |
10f2d63a | 474 | no_create= |
a0b9e27f | 475 | nonopt=NONE |
10f2d63a VZ |
476 | no_recursion= |
477 | prefix=NONE | |
478 | program_prefix=NONE | |
479 | program_suffix=NONE | |
480 | program_transform_name=s,x,x, | |
481 | silent= | |
482 | site= | |
483 | srcdir= | |
a0b9e27f | 484 | target=NONE |
10f2d63a VZ |
485 | verbose= |
486 | x_includes=NONE | |
487 | x_libraries=NONE | |
488 | bindir='${exec_prefix}/bin' | |
489 | sbindir='${exec_prefix}/sbin' | |
490 | libexecdir='${exec_prefix}/libexec' | |
491 | datadir='${prefix}/share' | |
492 | sysconfdir='${prefix}/etc' | |
493 | sharedstatedir='${prefix}/com' | |
494 | localstatedir='${prefix}/var' | |
495 | libdir='${exec_prefix}/lib' | |
496 | includedir='${prefix}/include' | |
497 | oldincludedir='/usr/include' | |
498 | infodir='${prefix}/info' | |
499 | mandir='${prefix}/man' | |
500 | ||
a0b9e27f MB |
501 | # Initialize some other variables. |
502 | subdirs= | |
503 | MFLAGS= MAKEFLAGS= | |
504 | SHELL=${CONFIG_SHELL-/bin/sh} | |
505 | # Maximum number of lines to put in a shell here document. | |
506 | ac_max_here_lines=12 | |
507 | ||
10f2d63a VZ |
508 | ac_prev= |
509 | for ac_option | |
510 | do | |
a0b9e27f | 511 | |
10f2d63a VZ |
512 | # If the previous option needs an argument, assign it. |
513 | if test -n "$ac_prev"; then | |
514 | eval "$ac_prev=\$ac_option" | |
515 | ac_prev= | |
516 | continue | |
517 | fi | |
518 | ||
a0b9e27f MB |
519 | case "$ac_option" in |
520 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
521 | *) ac_optarg= ;; | |
522 | esac | |
10f2d63a VZ |
523 | |
524 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
525 | ||
a0b9e27f | 526 | case "$ac_option" in |
10f2d63a VZ |
527 | |
528 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
529 | ac_prev=bindir ;; | |
530 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
a0b9e27f | 531 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
532 | |
533 | -build | --build | --buil | --bui | --bu) | |
a0b9e27f | 534 | ac_prev=build ;; |
10f2d63a | 535 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
a0b9e27f | 536 | build="$ac_optarg" ;; |
10f2d63a VZ |
537 | |
538 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
539 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
540 | ac_prev=cache_file ;; | |
541 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
542 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
a0b9e27f | 543 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
544 | |
545 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
546 | ac_prev=datadir ;; | |
547 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
548 | | --da=*) | |
a0b9e27f | 549 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
550 | |
551 | -disable-* | --disable-*) | |
a0b9e27f | 552 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 553 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
554 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
555 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
556 | fi | |
557 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
558 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
559 | |
560 | -enable-* | --enable-*) | |
a0b9e27f | 561 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 562 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
563 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
564 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
565 | fi | |
566 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
567 | case "$ac_option" in | |
568 | *=*) ;; | |
10f2d63a VZ |
569 | *) ac_optarg=yes ;; |
570 | esac | |
a0b9e27f | 571 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
572 | |
573 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
574 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
575 | | --exec | --exe | --ex) | |
576 | ac_prev=exec_prefix ;; | |
577 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
578 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
579 | | --exec=* | --exe=* | --ex=*) | |
a0b9e27f | 580 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
581 | |
582 | -gas | --gas | --ga | --g) | |
583 | # Obsolete; use --with-gas. | |
584 | with_gas=yes ;; | |
585 | ||
a0b9e27f MB |
586 | -help | --help | --hel | --he) |
587 | # Omit some internal or obsolete options to make the list less imposing. | |
588 | # This message is too long to be a string in the A/UX 3.1 sh. | |
589 | cat << EOF | |
590 | Usage: configure [options] [host] | |
591 | Options: [defaults in brackets after descriptions] | |
592 | Configuration: | |
593 | --cache-file=FILE cache test results in FILE | |
594 | --help print this message | |
595 | --no-create do not create output files | |
596 | --quiet, --silent do not print \`checking...' messages | |
597 | --version print the version of autoconf that created configure | |
598 | Directory and file names: | |
599 | --prefix=PREFIX install architecture-independent files in PREFIX | |
600 | [$ac_default_prefix] | |
601 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
602 | [same as prefix] | |
603 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
604 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
605 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
606 | --datadir=DIR read-only architecture-independent data in DIR | |
607 | [PREFIX/share] | |
608 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
609 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
610 | [PREFIX/com] | |
611 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
612 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
613 | --includedir=DIR C header files in DIR [PREFIX/include] | |
614 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
615 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
616 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
617 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
618 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
619 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
620 | --program-transform-name=PROGRAM | |
621 | run sed PROGRAM on installed program names | |
622 | EOF | |
623 | cat << EOF | |
624 | Host type: | |
625 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
626 | --host=HOST configure for HOST [guessed] | |
627 | --target=TARGET configure for TARGET [TARGET=HOST] | |
628 | Features and packages: | |
629 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
630 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
631 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
632 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
633 | --x-includes=DIR X include files are in DIR | |
634 | --x-libraries=DIR X library files are in DIR | |
635 | EOF | |
636 | if test -n "$ac_help"; then | |
637 | echo "--enable and --with options recognized:$ac_help" | |
638 | fi | |
639 | exit 0 ;; | |
10f2d63a VZ |
640 | |
641 | -host | --host | --hos | --ho) | |
a0b9e27f | 642 | ac_prev=host ;; |
10f2d63a | 643 | -host=* | --host=* | --hos=* | --ho=*) |
a0b9e27f | 644 | host="$ac_optarg" ;; |
10f2d63a VZ |
645 | |
646 | -includedir | --includedir | --includedi | --included | --include \ | |
647 | | --includ | --inclu | --incl | --inc) | |
648 | ac_prev=includedir ;; | |
649 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
650 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
a0b9e27f | 651 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
652 | |
653 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
654 | ac_prev=infodir ;; | |
655 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
a0b9e27f | 656 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
657 | |
658 | -libdir | --libdir | --libdi | --libd) | |
659 | ac_prev=libdir ;; | |
660 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
a0b9e27f | 661 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
662 | |
663 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
664 | | --libexe | --libex | --libe) | |
665 | ac_prev=libexecdir ;; | |
666 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
667 | | --libexe=* | --libex=* | --libe=*) | |
a0b9e27f | 668 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
669 | |
670 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
671 | | --localstate | --localstat | --localsta | --localst \ | |
672 | | --locals | --local | --loca | --loc | --lo) | |
673 | ac_prev=localstatedir ;; | |
674 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
675 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
676 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
a0b9e27f | 677 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
678 | |
679 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
680 | ac_prev=mandir ;; | |
681 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
a0b9e27f | 682 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
683 | |
684 | -nfp | --nfp | --nf) | |
685 | # Obsolete; use --without-fp. | |
686 | with_fp=no ;; | |
687 | ||
688 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
a0b9e27f | 689 | | --no-cr | --no-c) |
10f2d63a VZ |
690 | no_create=yes ;; |
691 | ||
692 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
693 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
694 | no_recursion=yes ;; | |
695 | ||
696 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
697 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
698 | | --oldin | --oldi | --old | --ol | --o) | |
699 | ac_prev=oldincludedir ;; | |
700 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
701 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
702 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
a0b9e27f | 703 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
704 | |
705 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
706 | ac_prev=prefix ;; | |
707 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
a0b9e27f | 708 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
709 | |
710 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
711 | | --program-pre | --program-pr | --program-p) | |
712 | ac_prev=program_prefix ;; | |
713 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
714 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
a0b9e27f | 715 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
716 | |
717 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
718 | | --program-suf | --program-su | --program-s) | |
719 | ac_prev=program_suffix ;; | |
720 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
721 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
a0b9e27f | 722 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
723 | |
724 | -program-transform-name | --program-transform-name \ | |
725 | | --program-transform-nam | --program-transform-na \ | |
726 | | --program-transform-n | --program-transform- \ | |
727 | | --program-transform | --program-transfor \ | |
728 | | --program-transfo | --program-transf \ | |
729 | | --program-trans | --program-tran \ | |
730 | | --progr-tra | --program-tr | --program-t) | |
731 | ac_prev=program_transform_name ;; | |
732 | -program-transform-name=* | --program-transform-name=* \ | |
733 | | --program-transform-nam=* | --program-transform-na=* \ | |
734 | | --program-transform-n=* | --program-transform-=* \ | |
735 | | --program-transform=* | --program-transfor=* \ | |
736 | | --program-transfo=* | --program-transf=* \ | |
737 | | --program-trans=* | --program-tran=* \ | |
738 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
a0b9e27f | 739 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
740 | |
741 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
742 | | -silent | --silent | --silen | --sile | --sil) | |
743 | silent=yes ;; | |
744 | ||
745 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
746 | ac_prev=sbindir ;; | |
747 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
748 | | --sbi=* | --sb=*) | |
a0b9e27f | 749 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
750 | |
751 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
752 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
753 | | --sharedst | --shareds | --shared | --share | --shar \ | |
754 | | --sha | --sh) | |
755 | ac_prev=sharedstatedir ;; | |
756 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
757 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
758 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
759 | | --sha=* | --sh=*) | |
a0b9e27f | 760 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
761 | |
762 | -site | --site | --sit) | |
763 | ac_prev=site ;; | |
764 | -site=* | --site=* | --sit=*) | |
a0b9e27f | 765 | site="$ac_optarg" ;; |
10f2d63a VZ |
766 | |
767 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
768 | ac_prev=srcdir ;; | |
769 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
a0b9e27f | 770 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
771 | |
772 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
773 | | --syscon | --sysco | --sysc | --sys | --sy) | |
774 | ac_prev=sysconfdir ;; | |
775 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
776 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
a0b9e27f | 777 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
778 | |
779 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
a0b9e27f | 780 | ac_prev=target ;; |
10f2d63a | 781 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
a0b9e27f | 782 | target="$ac_optarg" ;; |
10f2d63a VZ |
783 | |
784 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
785 | verbose=yes ;; | |
786 | ||
a0b9e27f MB |
787 | -version | --version | --versio | --versi | --vers) |
788 | echo "configure generated by autoconf version 2.13" | |
789 | exit 0 ;; | |
10f2d63a VZ |
790 | |
791 | -with-* | --with-*) | |
a0b9e27f | 792 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 793 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
794 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
795 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
796 | fi | |
10f2d63a | 797 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
a0b9e27f MB |
798 | case "$ac_option" in |
799 | *=*) ;; | |
10f2d63a VZ |
800 | *) ac_optarg=yes ;; |
801 | esac | |
a0b9e27f | 802 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
803 | |
804 | -without-* | --without-*) | |
a0b9e27f | 805 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 806 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
807 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
808 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
809 | fi | |
810 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
811 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
812 | |
813 | --x) | |
814 | # Obsolete; use --with-x. | |
815 | with_x=yes ;; | |
816 | ||
817 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
818 | | --x-incl | --x-inc | --x-in | --x-i) | |
819 | ac_prev=x_includes ;; | |
820 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
821 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
a0b9e27f | 822 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
823 | |
824 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
825 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
826 | ac_prev=x_libraries ;; | |
827 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
828 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
a0b9e27f | 829 | x_libraries="$ac_optarg" ;; |
10f2d63a | 830 | |
a0b9e27f | 831 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
832 | ;; |
833 | ||
834 | *) | |
a0b9e27f MB |
835 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
836 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
837 | fi | |
838 | if test "x$nonopt" != xNONE; then | |
839 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
840 | fi | |
841 | nonopt="$ac_option" | |
10f2d63a VZ |
842 | ;; |
843 | ||
844 | esac | |
845 | done | |
846 | ||
847 | if test -n "$ac_prev"; then | |
a0b9e27f | 848 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
8284b0c5 | 849 | fi |
8284b0c5 | 850 | |
a0b9e27f MB |
851 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
852 | ||
853 | # File descriptor usage: | |
854 | # 0 standard input | |
855 | # 1 file creation | |
856 | # 2 errors and warnings | |
857 | # 3 some systems may open it to /dev/tty | |
858 | # 4 used on the Kubota Titan | |
859 | # 6 checking for... messages and results | |
860 | # 5 compiler messages saved in config.log | |
861 | if test "$silent" = yes; then | |
862 | exec 6>/dev/null | |
863 | else | |
864 | exec 6>&1 | |
865 | fi | |
866 | exec 5>./config.log | |
867 | ||
868 | echo "\ | |
869 | This file contains any messages produced by compilers while | |
870 | running configure, to aid debugging if configure makes a mistake. | |
871 | " 1>&5 | |
8284b0c5 | 872 | |
a0b9e27f MB |
873 | # Strip out --no-create and --no-recursion so they do not pile up. |
874 | # Also quote any args containing shell metacharacters. | |
875 | ac_configure_args= | |
876 | for ac_arg | |
10f2d63a | 877 | do |
a0b9e27f MB |
878 | case "$ac_arg" in |
879 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
880 | | --no-cr | --no-c) ;; | |
881 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
882 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
883 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
884 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
885 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
886 | esac |
887 | done | |
888 | ||
a0b9e27f MB |
889 | # NLS nuisances. |
890 | # Only set these to C if already set. These must not be set unconditionally | |
891 | # because not all systems understand e.g. LANG=C (notably SCO). | |
892 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
893 | # Non-C LC_CTYPE values break the ctype check. | |
894 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
895 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
896 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
897 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
247f5006 | 898 | |
a0b9e27f MB |
899 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
900 | rm -rf conftest* confdefs.h | |
901 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
902 | echo > confdefs.h | |
10f2d63a | 903 | |
a0b9e27f MB |
904 | # A filename unique to this package, relative to the directory that |
905 | # configure is in, which we can look for to find out if srcdir is correct. | |
906 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
907 | |
908 | # Find the source files, if location was not specified. | |
909 | if test -z "$srcdir"; then | |
910 | ac_srcdir_defaulted=yes | |
911 | # Try the directory containing this script, then its parent. | |
a0b9e27f MB |
912 | ac_prog=$0 |
913 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
914 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
10f2d63a VZ |
915 | srcdir=$ac_confdir |
916 | if test ! -r $srcdir/$ac_unique_file; then | |
917 | srcdir=.. | |
918 | fi | |
919 | else | |
920 | ac_srcdir_defaulted=no | |
921 | fi | |
922 | if test ! -r $srcdir/$ac_unique_file; then | |
923 | if test "$ac_srcdir_defaulted" = yes; then | |
a0b9e27f | 924 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 925 | else |
a0b9e27f | 926 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
927 | fi |
928 | fi | |
a0b9e27f | 929 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
328a083c | 930 | |
10f2d63a VZ |
931 | # Prefer explicitly selected file to automatically selected ones. |
932 | if test -z "$CONFIG_SITE"; then | |
933 | if test "x$prefix" != xNONE; then | |
934 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
935 | else | |
936 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
937 | fi | |
938 | fi | |
939 | for ac_site_file in $CONFIG_SITE; do | |
940 | if test -r "$ac_site_file"; then | |
a0b9e27f | 941 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
942 | . "$ac_site_file" |
943 | fi | |
944 | done | |
945 | ||
946 | if test -r "$cache_file"; then | |
a0b9e27f MB |
947 | echo "loading cache $cache_file" |
948 | . $cache_file | |
10f2d63a | 949 | else |
a0b9e27f MB |
950 | echo "creating cache $cache_file" |
951 | > $cache_file | |
10f2d63a VZ |
952 | fi |
953 | ||
954 | ac_ext=c | |
a0b9e27f | 955 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 956 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
957 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
958 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
959 | cross_compiling=$ac_cv_prog_cc_cross | |
960 | ||
961 | ac_exeext= | |
962 | ac_objext=o | |
963 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
964 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
965 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
966 | ac_n= ac_c=' | |
967 | ' ac_t=' ' | |
968 | else | |
969 | ac_n=-n ac_c= ac_t= | |
970 | fi | |
971 | else | |
972 | ac_n= ac_c='\c' ac_t= | |
973 | fi | |
8284b0c5 MB |
974 | |
975 | ||
10f2d63a | 976 | |
7c66a493 VZ |
977 | ac_aux_dir= |
978 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
979 | if test -f $ac_dir/install-sh; then | |
980 | ac_aux_dir=$ac_dir | |
981 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
982 | break | |
983 | elif test -f $ac_dir/install.sh; then | |
984 | ac_aux_dir=$ac_dir | |
985 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
986 | break | |
247f5006 | 987 | fi |
7c66a493 VZ |
988 | done |
989 | if test -z "$ac_aux_dir"; then | |
a0b9e27f | 990 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 991 | fi |
a0b9e27f MB |
992 | ac_config_guess=$ac_aux_dir/config.guess |
993 | ac_config_sub=$ac_aux_dir/config.sub | |
994 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
698dcdb6 | 995 | |
8284b0c5 | 996 | |
a0b9e27f MB |
997 | # Do some error checking and defaulting for the host and target type. |
998 | # The inputs are: | |
999 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
1000 | # | |
1001 | # The rules are: | |
1002 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
1003 | # same time. | |
1004 | # 2. Host defaults to nonopt. | |
1005 | # 3. If nonopt is not specified, then host defaults to the current host, | |
1006 | # as determined by config.guess. | |
1007 | # 4. Target and build default to nonopt. | |
1008 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
1009 | |
1010 | # The aliases save the names the user supplied, while $host etc. | |
1011 | # will get canonicalized. | |
a0b9e27f MB |
1012 | case $host---$target---$nonopt in |
1013 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
1014 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
1015 | esac | |
1016 | ||
1017 | ||
1018 | # Make sure we can run config.sub. | |
1019 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1020 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1021 | fi | |
1022 | ||
1023 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
da494b40 | 1024 | echo "configure:1025: checking host system type" >&5 |
a0b9e27f MB |
1025 | |
1026 | host_alias=$host | |
1027 | case "$host_alias" in | |
1028 | NONE) | |
1029 | case $nonopt in | |
1030 | NONE) | |
1031 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1032 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1033 | fi ;; | |
1034 | *) host_alias=$nonopt ;; | |
1035 | esac ;; | |
1036 | esac | |
1037 | ||
1038 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1039 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1040 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1041 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1042 | echo "$ac_t""$host" 1>&6 | |
1043 | ||
1044 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
da494b40 | 1045 | echo "configure:1046: checking target system type" >&5 |
a0b9e27f MB |
1046 | |
1047 | target_alias=$target | |
1048 | case "$target_alias" in | |
1049 | NONE) | |
1050 | case $nonopt in | |
1051 | NONE) target_alias=$host_alias ;; | |
1052 | *) target_alias=$nonopt ;; | |
1053 | esac ;; | |
1054 | esac | |
1055 | ||
1056 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1057 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1058 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1059 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1060 | echo "$ac_t""$target" 1>&6 | |
1061 | ||
1062 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
da494b40 | 1063 | echo "configure:1064: checking build system type" >&5 |
a0b9e27f MB |
1064 | |
1065 | build_alias=$build | |
1066 | case "$build_alias" in | |
1067 | NONE) | |
1068 | case $nonopt in | |
1069 | NONE) build_alias=$host_alias ;; | |
1070 | *) build_alias=$nonopt ;; | |
1071 | esac ;; | |
1072 | esac | |
1073 | ||
1074 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1075 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1076 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1077 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1078 | echo "$ac_t""$build" 1>&6 | |
1079 | ||
1080 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1081 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1082 | NONENONEs,x,x, && | |
1083 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1084 | |
1085 | ||
a0b9e27f | 1086 | |
10f2d63a | 1087 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 VZ |
1088 | WX_MINOR_VERSION_NUMBER=5 |
1089 | WX_RELEASE_NUMBER=0 | |
10f2d63a | 1090 | |
10f2d63a | 1091 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1092 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1093 | |
978f1259 RL |
1094 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1095 | ||
34bed6d9 | 1096 | WX_CURRENT=0 |
6426998c RL |
1097 | WX_REVISION=0 |
1098 | WX_AGE=0 | |
1099 | ||
8284b0c5 MB |
1100 | |
1101 | ||
10f2d63a VZ |
1102 | USE_UNIX=1 |
1103 | USE_WIN32=0 | |
f9bc1684 | 1104 | USE_DOS=0 |
b12915c1 | 1105 | USE_BEOS=0 |
1216f52d | 1106 | USE_MAC=0 |
b12915c1 | 1107 | |
10f2d63a VZ |
1108 | USE_LINUX= |
1109 | USE_SGI= | |
1110 | USE_HPUX= | |
1111 | USE_SYSV= | |
1112 | USE_SVR4= | |
1113 | USE_AIX= | |
1114 | USE_SUN= | |
1115 | USE_SOLARIS= | |
1116 | USE_SUNOS= | |
1117 | USE_ALPHA= | |
1118 | USE_OSF= | |
1119 | USE_BSD= | |
f11bdd03 | 1120 | USE_DARWIN= |
10f2d63a | 1121 | USE_FREEBSD= |
95c8801c | 1122 | USE_OPENBSD= |
f6bcfd97 | 1123 | USE_NETBSD= |
10f2d63a VZ |
1124 | USE_VMS= |
1125 | USE_ULTRIX= | |
10f2d63a VZ |
1126 | USE_DATA_GENERAL= |
1127 | ||
ab9b9eab VZ |
1128 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1129 | ||
89e6bf6d | 1130 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a VZ |
1131 | |
1132 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1133 | DEFAULT_wxUSE_MAC=0 |
1134 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1135 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1136 | DEFAULT_wxUSE_MOTIF=0 |
1137 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1138 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1139 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1140 | |
1141 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1142 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1143 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1144 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1145 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1146 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1147 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1148 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1149 | |
d6a55c4b | 1150 | PROGRAM_EXT= |
3a922bb4 | 1151 | SO_SUFFIX=so |
d6a55c4b | 1152 | |
10f2d63a VZ |
1153 | case "${host}" in |
1154 | *-hp-hpux* ) | |
1155 | USE_HPUX=1 | |
1156 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1157 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1158 | SO_SUFFIX=sl |
a0b9e27f | 1159 | cat >> confdefs.h <<\EOF |
10f2d63a | 1160 | #define __HPUX__ 1 |
a0b9e27f | 1161 | EOF |
10f2d63a VZ |
1162 | |
1163 | ;; | |
1164 | *-*-linux* ) | |
1165 | USE_LINUX=1 | |
a0b9e27f | 1166 | cat >> confdefs.h <<\EOF |
10f2d63a | 1167 | #define __LINUX__ 1 |
a0b9e27f | 1168 | EOF |
10f2d63a VZ |
1169 | |
1170 | TMP=`uname -m` | |
1171 | if test "x$TMP" = "xalpha"; then | |
1172 | USE_ALPHA=1 | |
a0b9e27f | 1173 | cat >> confdefs.h <<\EOF |
10f2d63a | 1174 | #define __ALPHA__ 1 |
a0b9e27f | 1175 | EOF |
10f2d63a VZ |
1176 | |
1177 | fi | |
1178 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1179 | ;; | |
1180 | *-*-irix5* | *-*-irix6* ) | |
1181 | USE_SGI=1 | |
1182 | USE_SVR4=1 | |
a0b9e27f | 1183 | cat >> confdefs.h <<\EOF |
10f2d63a | 1184 | #define __SGI__ 1 |
a0b9e27f | 1185 | EOF |
10f2d63a | 1186 | |
a0b9e27f | 1187 | cat >> confdefs.h <<\EOF |
10f2d63a | 1188 | #define __SVR4__ 1 |
a0b9e27f | 1189 | EOF |
10f2d63a VZ |
1190 | |
1191 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1192 | ;; | |
1193 | *-*-solaris2* ) | |
1194 | USE_SUN=1 | |
1195 | USE_SOLARIS=1 | |
1196 | USE_SVR4=1 | |
a0b9e27f | 1197 | cat >> confdefs.h <<\EOF |
10f2d63a | 1198 | #define __SUN__ 1 |
a0b9e27f | 1199 | EOF |
10f2d63a | 1200 | |
a0b9e27f | 1201 | cat >> confdefs.h <<\EOF |
10f2d63a | 1202 | #define __SOLARIS__ 1 |
a0b9e27f | 1203 | EOF |
10f2d63a | 1204 | |
a0b9e27f | 1205 | cat >> confdefs.h <<\EOF |
10f2d63a | 1206 | #define __SVR4__ 1 |
a0b9e27f | 1207 | EOF |
10f2d63a VZ |
1208 | |
1209 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1210 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1211 | ;; |
1212 | *-*-sunos4* ) | |
1213 | USE_SUN=1 | |
1214 | USE_SUNOS=1 | |
1215 | USE_BSD=1 | |
a0b9e27f | 1216 | cat >> confdefs.h <<\EOF |
10f2d63a | 1217 | #define __SUN__ 1 |
a0b9e27f | 1218 | EOF |
10f2d63a | 1219 | |
a0b9e27f | 1220 | cat >> confdefs.h <<\EOF |
10f2d63a | 1221 | #define __SUNOS__ 1 |
a0b9e27f | 1222 | EOF |
10f2d63a | 1223 | |
a0b9e27f | 1224 | cat >> confdefs.h <<\EOF |
10f2d63a | 1225 | #define __BSD__ 1 |
a0b9e27f | 1226 | EOF |
10f2d63a VZ |
1227 | |
1228 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1229 | ;; | |
f6bcfd97 | 1230 | *-*-freebsd*) |
10f2d63a VZ |
1231 | USE_BSD=1 |
1232 | USE_FREEBSD=1 | |
a0b9e27f | 1233 | cat >> confdefs.h <<\EOF |
10f2d63a | 1234 | #define __FREEBSD__ 1 |
a0b9e27f | 1235 | EOF |
10f2d63a | 1236 | |
a0b9e27f | 1237 | cat >> confdefs.h <<\EOF |
10f2d63a | 1238 | #define __BSD__ 1 |
a0b9e27f | 1239 | EOF |
95c8801c VS |
1240 | |
1241 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1242 | ;; | |
1243 | *-*-openbsd*) | |
1244 | USE_BSD=1 | |
1245 | USE_OPENBSD=1 | |
a0b9e27f | 1246 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1247 | #define __OPENBSD__ 1 |
a0b9e27f | 1248 | EOF |
95c8801c | 1249 | |
a0b9e27f | 1250 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1251 | #define __BSD__ 1 |
a0b9e27f | 1252 | EOF |
f6bcfd97 BP |
1253 | |
1254 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1255 | ;; | |
1256 | *-*-netbsd*) | |
1257 | USE_BSD=1 | |
1258 | USE_NETBSD=1 | |
a0b9e27f | 1259 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1260 | #define __NETBSD__ 1 |
a0b9e27f | 1261 | EOF |
f6bcfd97 | 1262 | |
a0b9e27f | 1263 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1264 | #define __BSD__ 1 |
a0b9e27f | 1265 | EOF |
10f2d63a VZ |
1266 | |
1267 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1268 | ;; | |
1269 | *-*-osf* ) | |
1270 | USE_ALPHA=1 | |
1271 | USE_OSF=1 | |
a0b9e27f | 1272 | cat >> confdefs.h <<\EOF |
10f2d63a | 1273 | #define __ALPHA__ 1 |
a0b9e27f | 1274 | EOF |
10f2d63a | 1275 | |
a0b9e27f | 1276 | cat >> confdefs.h <<\EOF |
10f2d63a | 1277 | #define __OSF__ 1 |
a0b9e27f | 1278 | EOF |
10f2d63a VZ |
1279 | |
1280 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1281 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1282 | ;; |
1283 | *-*-dgux5* ) | |
1284 | USE_ALPHA=1 | |
1285 | USE_SVR4=1 | |
a0b9e27f | 1286 | cat >> confdefs.h <<\EOF |
10f2d63a | 1287 | #define __ALPHA__ 1 |
a0b9e27f | 1288 | EOF |
10f2d63a | 1289 | |
a0b9e27f | 1290 | cat >> confdefs.h <<\EOF |
10f2d63a | 1291 | #define __SVR4__ 1 |
a0b9e27f | 1292 | EOF |
10f2d63a VZ |
1293 | |
1294 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1295 | ;; | |
1296 | *-*-sysv5* ) | |
1297 | USE_SYSV=1 | |
1298 | USE_SVR4=1 | |
a0b9e27f | 1299 | cat >> confdefs.h <<\EOF |
10f2d63a | 1300 | #define __SYSV__ 1 |
a0b9e27f | 1301 | EOF |
10f2d63a | 1302 | |
a0b9e27f | 1303 | cat >> confdefs.h <<\EOF |
10f2d63a | 1304 | #define __SVR4__ 1 |
a0b9e27f | 1305 | EOF |
10f2d63a VZ |
1306 | |
1307 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1308 | ;; | |
1309 | *-*-aix* ) | |
1310 | USE_AIX=1 | |
1311 | USE_SYSV=1 | |
1312 | USE_SVR4=1 | |
2b5f62a0 | 1313 | SO_SUFFIX=a |
a0b9e27f | 1314 | cat >> confdefs.h <<\EOF |
10f2d63a | 1315 | #define __AIX__ 1 |
a0b9e27f | 1316 | EOF |
10f2d63a | 1317 | |
a0b9e27f | 1318 | cat >> confdefs.h <<\EOF |
10f2d63a | 1319 | #define __SYSV__ 1 |
a0b9e27f | 1320 | EOF |
10f2d63a | 1321 | |
a0b9e27f | 1322 | cat >> confdefs.h <<\EOF |
10f2d63a | 1323 | #define __SVR4__ 1 |
a0b9e27f | 1324 | EOF |
10f2d63a VZ |
1325 | |
1326 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1327 | ;; | |
1328 | ||
1c8183e2 | 1329 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1330 | SO_SUFFIX=dll |
cf27ef00 | 1331 | PROGRAM_EXT=".exe" |
7b7a7637 | 1332 | RESCOMP=windres |
10f2d63a VZ |
1333 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1334 | ;; | |
1335 | ||
f9bc1684 VS |
1336 | *-pc-msdosdjgpp ) |
1337 | USE_UNIX=0 | |
1338 | USE_DOS=1 | |
a0b9e27f | 1339 | cat >> confdefs.h <<\EOF |
f9bc1684 | 1340 | #define __DOS__ 1 |
a0b9e27f | 1341 | EOF |
f9bc1684 VS |
1342 | |
1343 | PROGRAM_EXT=".exe" | |
1344 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1345 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1346 | ;; |
1347 | ||
6fa882bd | 1348 | *-pc-os2_emx | *-pc-os2-emx ) |
a0b9e27f | 1349 | cat >> confdefs.h <<\EOF |
10f2d63a | 1350 | #define __EMX__ 1 |
a0b9e27f | 1351 | EOF |
10f2d63a | 1352 | |
cf27ef00 | 1353 | PROGRAM_EXT=".exe" |
e07802fc | 1354 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1355 | ;; |
1356 | ||
d08b457b GD |
1357 | powerpc-*-darwin* ) |
1358 | USE_BSD=1 | |
f11bdd03 | 1359 | USE_DARWIN=1 |
3a922bb4 | 1360 | SO_SUFFIX=dylib |
a0b9e27f | 1361 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1362 | #define __BSD__ 1 |
a0b9e27f | 1363 | EOF |
b4085ce6 | 1364 | |
a0b9e27f | 1365 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1366 | #define __DARWIN__ 1 |
a0b9e27f | 1367 | EOF |
d08b457b | 1368 | |
a0b9e27f | 1369 | cat >> confdefs.h <<\EOF |
d08b457b | 1370 | #define __POWERPC__ 1 |
82d43113 GD |
1371 | EOF |
1372 | ||
1373 | cat >> confdefs.h <<\EOF | |
1374 | #define TARGET_CARBON 1 | |
a0b9e27f | 1375 | EOF |
b4085ce6 GD |
1376 | |
1377 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1378 | ;; | |
1379 | ||
b12915c1 VZ |
1380 | *-*-beos* ) |
1381 | USE_BEOS=1 | |
a0b9e27f | 1382 | cat >> confdefs.h <<\EOF |
b12915c1 | 1383 | #define __BEOS__ 1 |
a0b9e27f | 1384 | EOF |
b12915c1 VZ |
1385 | |
1386 | ;; | |
1387 | ||
10f2d63a | 1388 | *) |
a0b9e27f | 1389 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1390 | esac |
1391 | ||
8284b0c5 MB |
1392 | |
1393 | ||
1394 | ||
1395 | wx_arg_cache_file="configarg.cache" | |
1396 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1397 | rm -f ${wx_arg_cache_file}.tmp |
1398 | touch ${wx_arg_cache_file}.tmp | |
1399 | touch ${wx_arg_cache_file} | |
a0b9e27f | 1400 | |
10f2d63a VZ |
1401 | |
1402 | DEBUG_CONFIGURE=0 | |
1403 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1404 | DEFAULT_wxUSE_UNIVERSAL=no |
1405 | ||
d8356fa3 VZ |
1406 | DEFAULT_wxUSE_NANOX=no |
1407 | ||
10f2d63a VZ |
1408 | DEFAULT_wxUSE_THREADS=yes |
1409 | ||
1410 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1411 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1412 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1413 | DEFAULT_wxUSE_PROFILE=no |
1414 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1415 | DEFAULT_wxUSE_NO_RTTI=no |
1416 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1417 | DEFAULT_wxUSE_PERMISSIVE=no |
1418 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1419 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1420 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1421 | DEFAULT_wxUSE_MEM_TRACING=no | |
1422 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1423 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1424 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1425 | DEFAULT_wxUSE_APPLE_IEEE=no |
1426 | ||
1427 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1428 | DEFAULT_wxUSE_LOGWINDOW=no |
1429 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1430 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1431 | |
1432 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1433 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1434 | |
3e44f09d | 1435 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1436 | DEFAULT_wxUSE_ZLIB=no |
1437 | DEFAULT_wxUSE_LIBPNG=no | |
1438 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1439 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1440 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1441 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1442 | |
eb4efbdc | 1443 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1444 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1445 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1446 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1447 | DEFAULT_wxUSE_DATETIME=no | |
1448 | DEFAULT_wxUSE_TIMEDATE=no | |
1449 | DEFAULT_wxUSE_TIMER=no | |
1450 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1451 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1452 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1453 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1454 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1455 | DEFAULT_wxUSE_WAVE=no |
1456 | DEFAULT_wxUSE_INTL=no | |
1457 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1458 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1459 | DEFAULT_wxUSE_STREAMS=no |
1460 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
1461 | DEFAULT_wxUSE_OLE=no |
1462 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 1463 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 1464 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1465 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1466 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1467 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1468 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1469 | |
1470 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1471 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1472 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1473 | ||
1474 | DEFAULT_wxUSE_X_RESOURCES=no | |
1475 | DEFAULT_wxUSE_CLIPBOARD=no | |
1476 | DEFAULT_wxUSE_TOOLTIPS=no | |
1477 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1478 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1479 | DEFAULT_wxUSE_SPLINES=no |
1480 | ||
1481 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1482 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1483 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1484 | ||
1485 | DEFAULT_wxUSE_PROLOGIO=no | |
1486 | DEFAULT_wxUSE_RESOURCES=no | |
1487 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1488 | DEFAULT_wxUSE_IPC=no | |
1489 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1490 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1491 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1492 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1493 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1494 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1495 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1496 | DEFAULT_wxUSE_PROTOCOL=no | |
1497 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1498 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1499 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1500 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 1501 | |
10f2d63a | 1502 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1503 | DEFAULT_wxUSE_CHOICEDLG=no |
1504 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1505 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1506 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1507 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1508 | DEFAULT_wxUSE_FONTDLG=no |
1509 | DEFAULT_wxUSE_MSGDLG=no | |
1510 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1511 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1512 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1513 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1514 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1515 | DEFAULT_wxUSE_WIZARDDLG=no |
1516 | ||
1e6feb95 | 1517 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1518 | DEFAULT_wxUSE_MINIFRAME=no |
1519 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1520 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1521 | DEFAULT_wxUSE_FS_INET=no |
1522 | DEFAULT_wxUSE_FS_ZIP=no | |
1523 | DEFAULT_wxUSE_BUSYINFO=no | |
1524 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1525 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1526 | |
1527 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1528 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1529 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1530 | DEFAULT_wxUSE_CALCTRL=no |
1531 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1532 | DEFAULT_wxUSE_CHECKBOX=no |
1533 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1534 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a | 1535 | DEFAULT_wxUSE_COMBOBOX=no |
da494b40 | 1536 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
1537 | DEFAULT_wxUSE_GAUGE=no |
1538 | DEFAULT_wxUSE_GRID=no | |
1539 | DEFAULT_wxUSE_NEW_GRID=no | |
1540 | DEFAULT_wxUSE_IMAGLIST=no | |
1541 | DEFAULT_wxUSE_LISTBOX=no | |
1542 | DEFAULT_wxUSE_LISTCTRL=no | |
1543 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1544 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1545 | DEFAULT_wxUSE_RADIOBOX=no |
1546 | DEFAULT_wxUSE_RADIOBTN=no | |
1547 | DEFAULT_wxUSE_SASH=no | |
1548 | DEFAULT_wxUSE_SCROLLBAR=no | |
1549 | DEFAULT_wxUSE_SLIDER=no | |
1550 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1551 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1552 | DEFAULT_wxUSE_SPLITTER=no |
1553 | DEFAULT_wxUSE_STATBMP=no | |
1554 | DEFAULT_wxUSE_STATBOX=no | |
1555 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1556 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1557 | DEFAULT_wxUSE_STATUSBAR=yes |
1558 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1559 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1560 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1561 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1562 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1563 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1564 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1565 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1566 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1567 | |
1568 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1569 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1570 | DEFAULT_wxUSE_WCSRTOMBS=no |
1571 | ||
edae8572 | 1572 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1573 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1574 | DEFAULT_wxUSE_GIF=no |
1575 | DEFAULT_wxUSE_PCX=no | |
1576 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1577 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1578 | DEFAULT_wxUSE_XPM=no |
658974ae | 1579 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1580 | else |
1e6feb95 VZ |
1581 | DEFAULT_wxUSE_UNIVERSAL=no |
1582 | ||
d8356fa3 VZ |
1583 | DEFAULT_wxUSE_NANOX=no |
1584 | ||
10f2d63a VZ |
1585 | DEFAULT_wxUSE_THREADS=yes |
1586 | ||
1587 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1588 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1589 | DEFAULT_wxUSE_OPTIMISE=yes |
1590 | DEFAULT_wxUSE_PROFILE=no | |
1591 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1592 | DEFAULT_wxUSE_NO_RTTI=no |
1593 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1594 | DEFAULT_wxUSE_PERMISSIVE=no |
1595 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1596 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1597 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1598 | DEFAULT_wxUSE_MEM_TRACING=no | |
1599 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1600 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1601 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1602 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1603 | ||
1604 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1605 | DEFAULT_wxUSE_LOGWINDOW=yes |
1606 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1607 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1608 | |
1609 | DEFAULT_wxUSE_GUI=yes | |
1610 | ||
831b3152 | 1611 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1612 | DEFAULT_wxUSE_ZLIB=yes |
1613 | DEFAULT_wxUSE_LIBPNG=yes | |
1614 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1615 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1616 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1617 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1618 | |
eb4efbdc | 1619 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1620 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1621 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1622 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1623 | DEFAULT_wxUSE_DATETIME=yes | |
1624 | DEFAULT_wxUSE_TIMEDATE=no | |
1625 | DEFAULT_wxUSE_TIMER=yes | |
1626 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1627 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1628 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1629 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1630 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1631 | DEFAULT_wxUSE_WAVE=no |
1632 | DEFAULT_wxUSE_INTL=yes | |
1633 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1634 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1635 | DEFAULT_wxUSE_STREAMS=yes |
1636 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
1637 | DEFAULT_wxUSE_OLE=yes |
1638 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 1639 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 1640 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1641 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1642 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1643 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1644 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1645 | |
1646 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1647 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1648 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1649 | ||
1650 | DEFAULT_wxUSE_X_RESOURCES=no | |
1651 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1652 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1653 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1654 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1655 | DEFAULT_wxUSE_SPLINES=yes |
1656 | ||
1657 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1658 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1659 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1660 | ||
2b5f62a0 VZ |
1661 | DEFAULT_wxUSE_PROLOGIO=no |
1662 | DEFAULT_wxUSE_RESOURCES=no | |
10f2d63a VZ |
1663 | DEFAULT_wxUSE_CONSTRAINTS=yes |
1664 | DEFAULT_wxUSE_IPC=yes | |
1665 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1666 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1667 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1668 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1669 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1670 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1671 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1672 | DEFAULT_wxUSE_PROTOCOL=yes |
1673 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1674 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1675 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1676 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1677 | |
1678 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1679 | DEFAULT_wxUSE_CHOICEDLG=yes |
1680 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1681 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1682 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1683 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1684 | DEFAULT_wxUSE_FONTDLG=yes |
1685 | DEFAULT_wxUSE_MSGDLG=yes | |
1686 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1687 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1688 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1689 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1690 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1691 | DEFAULT_wxUSE_WIZARDDLG=yes |
1692 | ||
1e6feb95 | 1693 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1694 | DEFAULT_wxUSE_MINIFRAME=yes |
1695 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1696 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1697 | DEFAULT_wxUSE_FS_INET=yes |
1698 | DEFAULT_wxUSE_FS_ZIP=yes | |
1699 | DEFAULT_wxUSE_BUSYINFO=yes | |
1700 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1701 | DEFAULT_wxUSE_VALIDATORS=yes | |
1702 | ||
1703 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1704 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1705 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1706 | DEFAULT_wxUSE_CALCTRL=yes |
1707 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1708 | DEFAULT_wxUSE_CHECKBOX=yes |
1709 | DEFAULT_wxUSE_CHECKLST=yes | |
1710 | DEFAULT_wxUSE_CHOICE=yes | |
1711 | DEFAULT_wxUSE_COMBOBOX=yes | |
da494b40 | 1712 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
1713 | DEFAULT_wxUSE_GAUGE=yes |
1714 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1715 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1716 | DEFAULT_wxUSE_IMAGLIST=yes |
1717 | DEFAULT_wxUSE_LISTBOX=yes | |
1718 | DEFAULT_wxUSE_LISTCTRL=yes | |
1719 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1720 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1721 | DEFAULT_wxUSE_RADIOBOX=yes |
1722 | DEFAULT_wxUSE_RADIOBTN=yes | |
1723 | DEFAULT_wxUSE_SASH=yes | |
1724 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1725 | DEFAULT_wxUSE_SLIDER=yes | |
1726 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1727 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1728 | DEFAULT_wxUSE_SPLITTER=yes |
1729 | DEFAULT_wxUSE_STATBMP=yes | |
1730 | DEFAULT_wxUSE_STATBOX=yes | |
1731 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1732 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1733 | DEFAULT_wxUSE_STATUSBAR=yes |
1734 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1735 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1736 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1737 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1738 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1739 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1740 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1741 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1742 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1743 | |
1744 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1745 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1746 | DEFAULT_wxUSE_WCSRTOMBS=no |
1747 | ||
edae8572 | 1748 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1749 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1750 | DEFAULT_wxUSE_GIF=yes |
1751 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1752 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1753 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1754 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1755 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1756 | fi |
1757 | ||
8284b0c5 MB |
1758 | |
1759 | ||
10f2d63a | 1760 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
1761 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
1762 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
1763 | has_toolkit_in_cache=1 |
1764 | eval "DEFAULT_$LINE" | |
1765 | eval "CACHE_$toolkit=1" | |
1766 | fi | |
1767 | done | |
1768 | ||
8284b0c5 MB |
1769 | |
1770 | ||
5005acfe VZ |
1771 | enablestring= |
1772 | echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6 | |
da494b40 | 1773 | echo "configure:1774: checking for --${enablestring:-enable}-gui" >&5 |
10f2d63a VZ |
1774 | no_cache=0 |
1775 | # Check whether --enable-gui or --disable-gui was given. | |
1776 | if test "${enable_gui+set}" = set; then | |
1777 | enableval="$enable_gui" | |
a0b9e27f | 1778 | |
10f2d63a VZ |
1779 | if test "$enableval" = yes; then |
1780 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1781 | else | |
1782 | ac_cv_use_gui='wxUSE_GUI=no' | |
1783 | fi | |
a0b9e27f | 1784 | |
10f2d63a | 1785 | else |
a0b9e27f | 1786 | |
10f2d63a VZ |
1787 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1788 | if test "x$LINE" != x ; then | |
1789 | eval "DEFAULT_$LINE" | |
1790 | else | |
1791 | no_cache=1 | |
1792 | fi | |
1793 | ||
1794 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
a0b9e27f MB |
1795 | |
1796 | fi | |
10f2d63a VZ |
1797 | |
1798 | ||
1799 | eval "$ac_cv_use_gui" | |
1800 | if test "$no_cache" != 1; then | |
1801 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1802 | fi | |
1803 | ||
1804 | if test "$wxUSE_GUI" = yes; then | |
a0b9e27f | 1805 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1806 | else |
a0b9e27f | 1807 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1808 | fi |
a0b9e27f | 1809 | |
10f2d63a | 1810 | |
b12915c1 | 1811 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1812 | |
8284b0c5 | 1813 | |
5005acfe VZ |
1814 | enablestring= |
1815 | echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6 | |
da494b40 | 1816 | echo "configure:1817: checking for --${enablestring:-enable}-universal" >&5 |
1e6feb95 VZ |
1817 | no_cache=0 |
1818 | # Check whether --enable-universal or --disable-universal was given. | |
1819 | if test "${enable_universal+set}" = set; then | |
1820 | enableval="$enable_universal" | |
a0b9e27f | 1821 | |
1e6feb95 VZ |
1822 | if test "$enableval" = yes; then |
1823 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1824 | else | |
1825 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1826 | fi | |
a0b9e27f | 1827 | |
1e6feb95 | 1828 | else |
a0b9e27f | 1829 | |
1e6feb95 VZ |
1830 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
1831 | if test "x$LINE" != x ; then | |
1832 | eval "DEFAULT_$LINE" | |
1833 | else | |
1834 | no_cache=1 | |
1835 | fi | |
1836 | ||
1837 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
a0b9e27f MB |
1838 | |
1839 | fi | |
1e6feb95 VZ |
1840 | |
1841 | ||
1842 | eval "$ac_cv_use_universal" | |
1843 | if test "$no_cache" != 1; then | |
1844 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1845 | fi | |
1846 | ||
1847 | if test "$wxUSE_UNIVERSAL" = yes; then | |
a0b9e27f | 1848 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 1849 | else |
a0b9e27f | 1850 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 1851 | fi |
a0b9e27f | 1852 | |
10f2d63a VZ |
1853 | # Check whether --with-gtk or --without-gtk was given. |
1854 | if test "${with_gtk+set}" = set; then | |
1855 | withval="$with_gtk" | |
1856 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1857 | fi |
10f2d63a VZ |
1858 | |
1859 | # Check whether --with-motif or --without-motif was given. | |
1860 | if test "${with_motif+set}" = set; then | |
1861 | withval="$with_motif" | |
1862 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1863 | fi |
10f2d63a | 1864 | |
b4085ce6 GD |
1865 | # Check whether --with-mac or --without-mac was given. |
1866 | if test "${with_mac+set}" = set; then | |
1867 | withval="$with_mac" | |
1868 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
a0b9e27f | 1869 | fi |
b4085ce6 | 1870 | |
10f2d63a VZ |
1871 | # Check whether --with-wine or --without-wine was given. |
1872 | if test "${with_wine+set}" = set; then | |
1873 | withval="$with_wine" | |
89e6bf6d | 1874 | wxUSE_WINE="$withval" CACHE_WINE=1 |
a0b9e27f | 1875 | fi |
10f2d63a | 1876 | |
77e13408 RL |
1877 | # Check whether --with-msw or --without-msw was given. |
1878 | if test "${with_msw+set}" = set; then | |
1879 | withval="$with_msw" | |
b4efce5e | 1880 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1881 | fi |
10f2d63a | 1882 | |
e07802fc VZ |
1883 | # Check whether --with-pm or --without-pm was given. |
1884 | if test "${with_pm+set}" = set; then | |
1885 | withval="$with_pm" | |
1886 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1887 | fi |
698dcdb6 | 1888 | |
1e6feb95 VZ |
1889 | # Check whether --with-mgl or --without-mgl was given. |
1890 | if test "${with_mgl+set}" = set; then | |
1891 | withval="$with_mgl" | |
6c657b52 | 1892 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1893 | fi |
1e6feb95 | 1894 | |
1725144d RR |
1895 | # Check whether --with-microwin or --without-microwin was given. |
1896 | if test "${with_microwin+set}" = set; then | |
1897 | withval="$with_microwin" | |
1898 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1899 | fi |
1725144d | 1900 | |
f79bd02d JS |
1901 | # Check whether --with-x11 or --without-x11 was given. |
1902 | if test "${with_x11+set}" = set; then | |
1903 | withval="$with_x11" | |
3c011993 | 1904 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1905 | fi |
10f2d63a | 1906 | |
a0b9e27f | 1907 | |
5005acfe VZ |
1908 | enablestring= |
1909 | echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6 | |
da494b40 | 1910 | echo "configure:1911: checking for --${enablestring:-enable}-nanox" >&5 |
d8356fa3 | 1911 | no_cache=0 |
ba875e66 VZ |
1912 | # Check whether --enable-nanox or --disable-nanox was given. |
1913 | if test "${enable_nanox+set}" = set; then | |
1914 | enableval="$enable_nanox" | |
a0b9e27f | 1915 | |
d8356fa3 | 1916 | if test "$enableval" = yes; then |
ba875e66 | 1917 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1918 | else |
ba875e66 | 1919 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 1920 | fi |
a0b9e27f | 1921 | |
d8356fa3 | 1922 | else |
a0b9e27f | 1923 | |
d8356fa3 VZ |
1924 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
1925 | if test "x$LINE" != x ; then | |
1926 | eval "DEFAULT_$LINE" | |
1927 | else | |
1928 | no_cache=1 | |
1929 | fi | |
1930 | ||
ba875e66 | 1931 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
a0b9e27f MB |
1932 | |
1933 | fi | |
d8356fa3 VZ |
1934 | |
1935 | ||
ba875e66 | 1936 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1937 | if test "$no_cache" != 1; then |
ba875e66 | 1938 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1939 | fi |
1940 | ||
1941 | if test "$wxUSE_NANOX" = yes; then | |
a0b9e27f | 1942 | echo "$ac_t""yes" 1>&6 |
d8356fa3 | 1943 | else |
a0b9e27f | 1944 | echo "$ac_t""no" 1>&6 |
d8356fa3 | 1945 | fi |
a0b9e27f | 1946 | |
8284b0c5 | 1947 | |
d74f4b5a | 1948 | |
5005acfe VZ |
1949 | enablestring= |
1950 | echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6 | |
da494b40 | 1951 | echo "configure:1952: checking for --${enablestring:-enable}-gtk2" >&5 |
d74f4b5a VZ |
1952 | no_cache=0 |
1953 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
1954 | if test "${enable_gtk2+set}" = set; then |
1955 | enableval="$enable_gtk2" | |
a0b9e27f | 1956 | |
d74f4b5a VZ |
1957 | if test "$enableval" = yes; then |
1958 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
1959 | else | |
1960 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
1961 | fi | |
a0b9e27f | 1962 | |
10f2d63a | 1963 | else |
a0b9e27f | 1964 | |
d74f4b5a VZ |
1965 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
1966 | if test "x$LINE" != x ; then | |
1967 | eval "DEFAULT_$LINE" | |
1968 | else | |
1969 | no_cache=1 | |
1970 | fi | |
1971 | ||
1972 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
a0b9e27f MB |
1973 | |
1974 | fi | |
52127426 | 1975 | |
328a083c | 1976 | |
d74f4b5a VZ |
1977 | eval "$ac_cv_use_gtk2" |
1978 | if test "$no_cache" != 1; then | |
1979 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
1980 | fi | |
1981 | ||
1982 | if test "$wxUSE_GTK2" = yes; then | |
a0b9e27f | 1983 | echo "$ac_t""yes" 1>&6 |
d74f4b5a | 1984 | else |
a0b9e27f | 1985 | echo "$ac_t""no" 1>&6 |
d74f4b5a | 1986 | fi |
a0b9e27f | 1987 | |
d74f4b5a | 1988 | |
5c6fa7d2 | 1989 | |
a0b9e27f | 1990 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
da494b40 | 1991 | echo "configure:1992: checking for --with-libpng" >&5 |
8284b0c5 | 1992 | no_cache=0 |
a0b9e27f | 1993 | # Check whether --with-libpng or --without-libpng was given. |
b12915c1 VZ |
1994 | if test "${with_libpng+set}" = set; then |
1995 | withval="$with_libpng" | |
a0b9e27f | 1996 | |
10f2d63a | 1997 | if test "$withval" = yes; then |
b12915c1 | 1998 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1999 | elif test "$withval" = no; then |
b12915c1 | 2000 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2001 | elif test "$withval" = sys; then |
2002 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2003 | elif test "$withval" = builtin; then |
2004 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2005 | else |
a0b9e27f | 2006 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2007 | fi |
a0b9e27f | 2008 | |
10f2d63a | 2009 | else |
a0b9e27f | 2010 | |
b12915c1 | 2011 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2012 | if test "x$LINE" != x ; then |
2013 | eval "DEFAULT_$LINE" | |
2014 | else | |
2015 | no_cache=1 | |
2016 | fi | |
2017 | ||
b12915c1 | 2018 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
a0b9e27f MB |
2019 | |
2020 | fi | |
10f2d63a VZ |
2021 | |
2022 | ||
b12915c1 | 2023 | eval "$ac_cv_use_libpng" |
10f2d63a | 2024 | if test "$no_cache" != 1; then |
b12915c1 | 2025 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2026 | fi |
2027 | ||
b12915c1 | 2028 | if test "$wxUSE_LIBPNG" = yes; then |
a0b9e27f | 2029 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2030 | elif test "$wxUSE_LIBPNG" = no; then |
a0b9e27f | 2031 | echo "$ac_t""no" 1>&6 |
422107f9 | 2032 | elif test "$wxUSE_LIBPNG" = sys; then |
a0b9e27f | 2033 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2034 | elif test "$wxUSE_LIBPNG" = builtin; then |
a0b9e27f | 2035 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2036 | else |
a0b9e27f | 2037 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2038 | fi |
a0b9e27f | 2039 | |
10f2d63a | 2040 | |
a0b9e27f | 2041 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
da494b40 | 2042 | echo "configure:2043: checking for --with-libjpeg" >&5 |
10f2d63a | 2043 | no_cache=0 |
a0b9e27f | 2044 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2045 | if test "${with_libjpeg+set}" = set; then |
2046 | withval="$with_libjpeg" | |
a0b9e27f | 2047 | |
10f2d63a | 2048 | if test "$withval" = yes; then |
b12915c1 | 2049 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2050 | elif test "$withval" = no; then |
b12915c1 | 2051 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2052 | elif test "$withval" = sys; then |
2053 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2054 | elif test "$withval" = builtin; then |
2055 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2056 | else |
a0b9e27f | 2057 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2058 | fi |
a0b9e27f | 2059 | |
10f2d63a | 2060 | else |
a0b9e27f | 2061 | |
b12915c1 | 2062 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2063 | if test "x$LINE" != x ; then |
2064 | eval "DEFAULT_$LINE" | |
2065 | else | |
2066 | no_cache=1 | |
2067 | fi | |
2068 | ||
b12915c1 | 2069 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
a0b9e27f MB |
2070 | |
2071 | fi | |
10f2d63a VZ |
2072 | |
2073 | ||
b12915c1 | 2074 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2075 | if test "$no_cache" != 1; then |
b12915c1 | 2076 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2077 | fi |
2078 | ||
b12915c1 | 2079 | if test "$wxUSE_LIBJPEG" = yes; then |
a0b9e27f | 2080 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2081 | elif test "$wxUSE_LIBJPEG" = no; then |
a0b9e27f | 2082 | echo "$ac_t""no" 1>&6 |
422107f9 | 2083 | elif test "$wxUSE_LIBJPEG" = sys; then |
a0b9e27f | 2084 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2085 | elif test "$wxUSE_LIBJPEG" = builtin; then |
a0b9e27f | 2086 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2087 | else |
a0b9e27f | 2088 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2089 | fi |
a0b9e27f | 2090 | |
10f2d63a | 2091 | |
a0b9e27f | 2092 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
da494b40 | 2093 | echo "configure:2094: checking for --with-libtiff" >&5 |
10f2d63a | 2094 | no_cache=0 |
a0b9e27f | 2095 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2096 | if test "${with_libtiff+set}" = set; then |
2097 | withval="$with_libtiff" | |
a0b9e27f | 2098 | |
10f2d63a | 2099 | if test "$withval" = yes; then |
b12915c1 | 2100 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2101 | elif test "$withval" = no; then |
b12915c1 | 2102 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2103 | elif test "$withval" = sys; then |
2104 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2105 | elif test "$withval" = builtin; then |
2106 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2107 | else |
a0b9e27f | 2108 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2109 | fi |
a0b9e27f | 2110 | |
10f2d63a | 2111 | else |
a0b9e27f | 2112 | |
b12915c1 | 2113 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2114 | if test "x$LINE" != x ; then |
2115 | eval "DEFAULT_$LINE" | |
2116 | else | |
2117 | no_cache=1 | |
2118 | fi | |
2119 | ||
b12915c1 | 2120 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
a0b9e27f MB |
2121 | |
2122 | fi | |
10f2d63a VZ |
2123 | |
2124 | ||
b12915c1 | 2125 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2126 | if test "$no_cache" != 1; then |
b12915c1 | 2127 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2128 | fi |
2129 | ||
b12915c1 | 2130 | if test "$wxUSE_LIBTIFF" = yes; then |
a0b9e27f | 2131 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2132 | elif test "$wxUSE_LIBTIFF" = no; then |
a0b9e27f | 2133 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2134 | elif test "$wxUSE_LIBTIFF" = sys; then |
a0b9e27f | 2135 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2136 | elif test "$wxUSE_LIBTIFF" = builtin; then |
a0b9e27f | 2137 | echo "$ac_t""builtin version" 1>&6 |
0dcf9893 | 2138 | else |
a0b9e27f | 2139 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2140 | fi |
a0b9e27f | 2141 | |
10f2d63a | 2142 | |
a0b9e27f | 2143 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
da494b40 | 2144 | echo "configure:2145: checking for --with-opengl" >&5 |
10f2d63a | 2145 | no_cache=0 |
a0b9e27f | 2146 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2147 | if test "${with_opengl+set}" = set; then |
2148 | withval="$with_opengl" | |
a0b9e27f | 2149 | |
10f2d63a | 2150 | if test "$withval" = yes; then |
b12915c1 | 2151 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2152 | else |
b12915c1 | 2153 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2154 | fi |
a0b9e27f | 2155 | |
10f2d63a | 2156 | else |
a0b9e27f | 2157 | |
b12915c1 | 2158 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2159 | if test "x$LINE" != x ; then |
2160 | eval "DEFAULT_$LINE" | |
2161 | else | |
2162 | no_cache=1 | |
2163 | fi | |
2164 | ||
b12915c1 | 2165 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
a0b9e27f MB |
2166 | |
2167 | fi | |
10f2d63a VZ |
2168 | |
2169 | ||
b12915c1 | 2170 | eval "$ac_cv_use_opengl" |
10f2d63a | 2171 | if test "$no_cache" != 1; then |
b12915c1 | 2172 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2173 | fi |
2174 | ||
b12915c1 | 2175 | if test "$wxUSE_OPENGL" = yes; then |
a0b9e27f | 2176 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2177 | else |
a0b9e27f | 2178 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2179 | fi |
a0b9e27f | 2180 | |
10f2d63a | 2181 | |
b12915c1 VZ |
2182 | fi |
2183 | ||
5c6fa7d2 | 2184 | |
a0b9e27f | 2185 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
da494b40 | 2186 | echo "configure:2187: checking for --with-dmalloc" >&5 |
8284b0c5 | 2187 | no_cache=0 |
a0b9e27f | 2188 | # Check whether --with-dmalloc or --without-dmalloc was given. |
b12915c1 VZ |
2189 | if test "${with_dmalloc+set}" = set; then |
2190 | withval="$with_dmalloc" | |
a0b9e27f | 2191 | |
c7a2bf27 | 2192 | if test "$withval" = yes; then |
b12915c1 | 2193 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2194 | else |
b12915c1 | 2195 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2196 | fi |
a0b9e27f | 2197 | |
c7a2bf27 | 2198 | else |
a0b9e27f | 2199 | |
b12915c1 | 2200 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2201 | if test "x$LINE" != x ; then |
2202 | eval "DEFAULT_$LINE" | |
2203 | else | |
2204 | no_cache=1 | |
2205 | fi | |
2206 | ||
b12915c1 | 2207 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
a0b9e27f MB |
2208 | |
2209 | fi | |
c7a2bf27 RR |
2210 | |
2211 | ||
b12915c1 | 2212 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2213 | if test "$no_cache" != 1; then |
b12915c1 | 2214 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2215 | fi |
2216 | ||
b12915c1 | 2217 | if test "$wxUSE_DMALLOC" = yes; then |
a0b9e27f | 2218 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2219 | else |
a0b9e27f | 2220 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2221 | fi |
a0b9e27f | 2222 | |
c7a2bf27 | 2223 | |
a0b9e27f | 2224 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
da494b40 | 2225 | echo "configure:2226: checking for --with-regex" >&5 |
3e44f09d | 2226 | no_cache=0 |
a0b9e27f | 2227 | # Check whether --with-regex or --without-regex was given. |
3e44f09d VZ |
2228 | if test "${with_regex+set}" = set; then |
2229 | withval="$with_regex" | |
a0b9e27f | 2230 | |
3e44f09d VZ |
2231 | if test "$withval" = yes; then |
2232 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2233 | elif test "$withval" = no; then | |
2234 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2235 | elif test "$withval" = sys; then | |
2236 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2237 | elif test "$withval" = builtin; then |
2238 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2239 | else |
a0b9e27f | 2240 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2241 | fi |
a0b9e27f | 2242 | |
3e44f09d | 2243 | else |
a0b9e27f | 2244 | |
3e44f09d VZ |
2245 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2246 | if test "x$LINE" != x ; then | |
2247 | eval "DEFAULT_$LINE" | |
2248 | else | |
2249 | no_cache=1 | |
2250 | fi | |
2251 | ||
2252 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
a0b9e27f MB |
2253 | |
2254 | fi | |
3e44f09d VZ |
2255 | |
2256 | ||
2257 | eval "$ac_cv_use_regex" | |
2258 | if test "$no_cache" != 1; then | |
2259 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2260 | fi | |
2261 | ||
2262 | if test "$wxUSE_REGEX" = yes; then | |
a0b9e27f | 2263 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 2264 | elif test "$wxUSE_REGEX" = no; then |
a0b9e27f | 2265 | echo "$ac_t""no" 1>&6 |
3e44f09d | 2266 | elif test "$wxUSE_REGEX" = sys; then |
a0b9e27f | 2267 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2268 | elif test "$wxUSE_REGEX" = builtin; then |
a0b9e27f | 2269 | echo "$ac_t""builtin version" 1>&6 |
3e44f09d | 2270 | else |
a0b9e27f | 2271 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2272 | fi |
a0b9e27f | 2273 | |
3e44f09d | 2274 | |
a0b9e27f | 2275 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
da494b40 | 2276 | echo "configure:2277: checking for --with-zlib" >&5 |
10f2d63a | 2277 | no_cache=0 |
a0b9e27f | 2278 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2279 | if test "${with_zlib+set}" = set; then |
2280 | withval="$with_zlib" | |
a0b9e27f | 2281 | |
10f2d63a | 2282 | if test "$withval" = yes; then |
b12915c1 | 2283 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2284 | elif test "$withval" = no; then |
b12915c1 | 2285 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2286 | elif test "$withval" = sys; then |
2287 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2288 | elif test "$withval" = builtin; then |
2289 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2290 | else |
a0b9e27f | 2291 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2292 | fi |
a0b9e27f | 2293 | |
10f2d63a | 2294 | else |
a0b9e27f | 2295 | |
b12915c1 | 2296 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2297 | if test "x$LINE" != x ; then |
2298 | eval "DEFAULT_$LINE" | |
2299 | else | |
2300 | no_cache=1 | |
2301 | fi | |
2302 | ||
b12915c1 | 2303 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
a0b9e27f MB |
2304 | |
2305 | fi | |
10f2d63a VZ |
2306 | |
2307 | ||
b12915c1 | 2308 | eval "$ac_cv_use_zlib" |
10f2d63a | 2309 | if test "$no_cache" != 1; then |
b12915c1 | 2310 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2311 | fi |
2312 | ||
b12915c1 | 2313 | if test "$wxUSE_ZLIB" = yes; then |
a0b9e27f | 2314 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2315 | elif test "$wxUSE_ZLIB" = no; then |
a0b9e27f | 2316 | echo "$ac_t""no" 1>&6 |
422107f9 | 2317 | elif test "$wxUSE_ZLIB" = sys; then |
a0b9e27f | 2318 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2319 | elif test "$wxUSE_ZLIB" = builtin; then |
a0b9e27f | 2320 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2321 | else |
a0b9e27f | 2322 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2323 | fi |
a0b9e27f | 2324 | |
10f2d63a | 2325 | |
a0b9e27f | 2326 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
da494b40 | 2327 | echo "configure:2328: checking for --with-odbc" >&5 |
10f2d63a | 2328 | no_cache=0 |
a0b9e27f | 2329 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2330 | if test "${with_odbc+set}" = set; then |
2331 | withval="$with_odbc" | |
a0b9e27f | 2332 | |
10f2d63a VZ |
2333 | if test "$withval" = yes; then |
2334 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2335 | else | |
2336 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2337 | fi | |
a0b9e27f | 2338 | |
10f2d63a | 2339 | else |
a0b9e27f | 2340 | |
10f2d63a VZ |
2341 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2342 | if test "x$LINE" != x ; then | |
2343 | eval "DEFAULT_$LINE" | |
2344 | else | |
2345 | no_cache=1 | |
2346 | fi | |
2347 | ||
2348 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
a0b9e27f MB |
2349 | |
2350 | fi | |
10f2d63a VZ |
2351 | |
2352 | ||
2353 | eval "$ac_cv_use_odbc" | |
2354 | if test "$no_cache" != 1; then | |
2355 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2356 | fi | |
2357 | ||
2358 | if test "$wxUSE_ODBC" = yes; then | |
a0b9e27f | 2359 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2360 | else |
a0b9e27f | 2361 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2362 | fi |
a0b9e27f | 2363 | |
52127426 | 2364 | |
8284b0c5 MB |
2365 | |
2366 | ||
5005acfe VZ |
2367 | enablestring= |
2368 | echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6 | |
da494b40 | 2369 | echo "configure:2370: checking for --${enablestring:-enable}-shared" >&5 |
10f2d63a VZ |
2370 | no_cache=0 |
2371 | # Check whether --enable-shared or --disable-shared was given. | |
2372 | if test "${enable_shared+set}" = set; then | |
2373 | enableval="$enable_shared" | |
a0b9e27f | 2374 | |
10f2d63a VZ |
2375 | if test "$enableval" = yes; then |
2376 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2377 | else | |
2378 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2379 | fi | |
a0b9e27f | 2380 | |
10f2d63a | 2381 | else |
a0b9e27f | 2382 | |
10f2d63a VZ |
2383 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2384 | if test "x$LINE" != x ; then | |
2385 | eval "DEFAULT_$LINE" | |
2386 | else | |
2387 | no_cache=1 | |
2388 | fi | |
2389 | ||
2390 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
a0b9e27f MB |
2391 | |
2392 | fi | |
10f2d63a VZ |
2393 | |
2394 | ||
2395 | eval "$ac_cv_use_shared" | |
2396 | if test "$no_cache" != 1; then | |
2397 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2398 | fi | |
2399 | ||
2400 | if test "$wxUSE_SHARED" = yes; then | |
a0b9e27f | 2401 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2402 | else |
a0b9e27f | 2403 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2404 | fi |
a0b9e27f | 2405 | |
10f2d63a | 2406 | |
5005acfe VZ |
2407 | enablestring= |
2408 | echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6 | |
da494b40 | 2409 | echo "configure:2410: checking for --${enablestring:-enable}-soname" >&5 |
00cf1208 | 2410 | no_cache=0 |
3a922bb4 RL |
2411 | # Check whether --enable-soname or --disable-soname was given. |
2412 | if test "${enable_soname+set}" = set; then | |
2413 | enableval="$enable_soname" | |
a0b9e27f | 2414 | |
00cf1208 | 2415 | if test "$enableval" = yes; then |
3a922bb4 | 2416 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2417 | else |
3a922bb4 | 2418 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2419 | fi |
a0b9e27f | 2420 | |
00cf1208 | 2421 | else |
a0b9e27f | 2422 | |
3a922bb4 | 2423 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2424 | if test "x$LINE" != x ; then |
2425 | eval "DEFAULT_$LINE" | |
2426 | else | |
2427 | no_cache=1 | |
2428 | fi | |
2429 | ||
3a922bb4 | 2430 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
a0b9e27f MB |
2431 | |
2432 | fi | |
00cf1208 RR |
2433 | |
2434 | ||
3a922bb4 | 2435 | eval "$ac_cv_use_soname" |
00cf1208 | 2436 | if test "$no_cache" != 1; then |
3a922bb4 | 2437 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2438 | fi |
2439 | ||
3a922bb4 | 2440 | if test "$wxUSE_SONAME" = yes; then |
a0b9e27f | 2441 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2442 | else |
a0b9e27f | 2443 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2444 | fi |
a0b9e27f | 2445 | |
00cf1208 | 2446 | |
5005acfe VZ |
2447 | enablestring= |
2448 | echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6 | |
da494b40 | 2449 | echo "configure:2450: checking for --${enablestring:-enable}-optimise" >&5 |
10f2d63a VZ |
2450 | no_cache=0 |
2451 | # Check whether --enable-optimise or --disable-optimise was given. | |
2452 | if test "${enable_optimise+set}" = set; then | |
2453 | enableval="$enable_optimise" | |
a0b9e27f | 2454 | |
10f2d63a VZ |
2455 | if test "$enableval" = yes; then |
2456 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2457 | else | |
2458 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2459 | fi | |
a0b9e27f | 2460 | |
10f2d63a | 2461 | else |
a0b9e27f | 2462 | |
10f2d63a VZ |
2463 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2464 | if test "x$LINE" != x ; then | |
2465 | eval "DEFAULT_$LINE" | |
2466 | else | |
2467 | no_cache=1 | |
2468 | fi | |
2469 | ||
2470 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
a0b9e27f MB |
2471 | |
2472 | fi | |
10f2d63a VZ |
2473 | |
2474 | ||
2475 | eval "$ac_cv_use_optimise" | |
2476 | if test "$no_cache" != 1; then | |
2477 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2478 | fi | |
2479 | ||
2480 | if test "$wxUSE_OPTIMISE" = yes; then | |
a0b9e27f | 2481 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2482 | else |
a0b9e27f | 2483 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2484 | fi |
a0b9e27f | 2485 | |
10f2d63a | 2486 | |
5005acfe VZ |
2487 | enablestring= |
2488 | echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6 | |
da494b40 | 2489 | echo "configure:2490: checking for --${enablestring:-enable}-debug" >&5 |
10f2d63a VZ |
2490 | no_cache=0 |
2491 | # Check whether --enable-debug or --disable-debug was given. | |
2492 | if test "${enable_debug+set}" = set; then | |
2493 | enableval="$enable_debug" | |
a0b9e27f | 2494 | |
10f2d63a VZ |
2495 | if test "$enableval" = yes; then |
2496 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2497 | else | |
2498 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2499 | fi | |
a0b9e27f | 2500 | |
10f2d63a | 2501 | else |
a0b9e27f | 2502 | |
10f2d63a VZ |
2503 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2504 | if test "x$LINE" != x ; then | |
2505 | eval "DEFAULT_$LINE" | |
2506 | else | |
2507 | no_cache=1 | |
2508 | fi | |
2509 | ||
2510 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
a0b9e27f MB |
2511 | |
2512 | fi | |
10f2d63a VZ |
2513 | |
2514 | ||
2515 | eval "$ac_cv_use_debug" | |
2516 | if test "$no_cache" != 1; then | |
2517 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2518 | fi | |
2519 | ||
2520 | if test "$wxUSE_DEBUG" = yes; then | |
a0b9e27f | 2521 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2522 | else |
a0b9e27f | 2523 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2524 | fi |
a0b9e27f | 2525 | |
52127426 | 2526 | |
8284b0c5 | 2527 | |
5005acfe VZ |
2528 | enablestring= |
2529 | echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6 | |
da494b40 | 2530 | echo "configure:2531: checking for --${enablestring:-enable}-precomp" >&5 |
683dccda GD |
2531 | no_cache=0 |
2532 | # Check whether --enable-precomp or --disable-precomp was given. | |
2533 | if test "${enable_precomp+set}" = set; then | |
2534 | enableval="$enable_precomp" | |
a0b9e27f | 2535 | |
683dccda GD |
2536 | if test "$enableval" = yes; then |
2537 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2538 | else | |
2539 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2540 | fi | |
a0b9e27f | 2541 | |
683dccda | 2542 | else |
a0b9e27f | 2543 | |
683dccda GD |
2544 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` |
2545 | if test "x$LINE" != x ; then | |
2546 | eval "DEFAULT_$LINE" | |
2547 | else | |
2548 | no_cache=1 | |
2549 | fi | |
2550 | ||
2551 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
a0b9e27f MB |
2552 | |
2553 | fi | |
683dccda GD |
2554 | |
2555 | ||
2556 | eval "$ac_cv_use_precomp" | |
2557 | if test "$no_cache" != 1; then | |
2558 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2559 | fi | |
2560 | ||
2561 | if test "$wxUSE_PRECOMP" = yes; then | |
a0b9e27f | 2562 | echo "$ac_t""yes" 1>&6 |
683dccda | 2563 | else |
a0b9e27f | 2564 | echo "$ac_t""no" 1>&6 |
683dccda | 2565 | fi |
a0b9e27f | 2566 | |
683dccda | 2567 | |
10f2d63a VZ |
2568 | if test "$wxUSE_DEBUG" = "yes"; then |
2569 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2570 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2571 | elif test "$wxUSE_DEBUG" = "no"; then | |
2572 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2573 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2574 | fi | |
2575 | ||
8284b0c5 | 2576 | |
5005acfe VZ |
2577 | enablestring= |
2578 | echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6 | |
da494b40 | 2579 | echo "configure:2580: checking for --${enablestring:-enable}-debug_flag" >&5 |
10f2d63a VZ |
2580 | no_cache=0 |
2581 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2582 | if test "${enable_debug_flag+set}" = set; then | |
2583 | enableval="$enable_debug_flag" | |
a0b9e27f | 2584 | |
10f2d63a VZ |
2585 | if test "$enableval" = yes; then |
2586 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2587 | else | |
2588 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2589 | fi | |
a0b9e27f | 2590 | |
10f2d63a | 2591 | else |
a0b9e27f | 2592 | |
10f2d63a VZ |
2593 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2594 | if test "x$LINE" != x ; then | |
2595 | eval "DEFAULT_$LINE" | |
2596 | else | |
2597 | no_cache=1 | |
2598 | fi | |
2599 | ||
2600 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
a0b9e27f MB |
2601 | |
2602 | fi | |
10f2d63a VZ |
2603 | |
2604 | ||
2605 | eval "$ac_cv_use_debug_flag" | |
2606 | if test "$no_cache" != 1; then | |
2607 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2608 | fi | |
2609 | ||
2610 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
a0b9e27f | 2611 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2612 | else |
a0b9e27f | 2613 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2614 | fi |
a0b9e27f | 2615 | |
10f2d63a | 2616 | |
5005acfe VZ |
2617 | enablestring= |
2618 | echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6 | |
da494b40 | 2619 | echo "configure:2620: checking for --${enablestring:-enable}-debug_info" >&5 |
10f2d63a VZ |
2620 | no_cache=0 |
2621 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2622 | if test "${enable_debug_info+set}" = set; then | |
2623 | enableval="$enable_debug_info" | |
a0b9e27f | 2624 | |
10f2d63a VZ |
2625 | if test "$enableval" = yes; then |
2626 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2627 | else | |
2628 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2629 | fi | |
a0b9e27f | 2630 | |
10f2d63a | 2631 | else |
a0b9e27f | 2632 | |
10f2d63a VZ |
2633 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2634 | if test "x$LINE" != x ; then | |
2635 | eval "DEFAULT_$LINE" | |
2636 | else | |
2637 | no_cache=1 | |
2638 | fi | |
2639 | ||
2640 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
a0b9e27f MB |
2641 | |
2642 | fi | |
10f2d63a VZ |
2643 | |
2644 | ||
2645 | eval "$ac_cv_use_debug_info" | |
2646 | if test "$no_cache" != 1; then | |
2647 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2648 | fi | |
2649 | ||
2650 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
a0b9e27f | 2651 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2652 | else |
a0b9e27f | 2653 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2654 | fi |
a0b9e27f | 2655 | |
10f2d63a | 2656 | |
5005acfe VZ |
2657 | enablestring= |
2658 | echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6 | |
da494b40 | 2659 | echo "configure:2660: checking for --${enablestring:-enable}-debug_gdb" >&5 |
10f2d63a VZ |
2660 | no_cache=0 |
2661 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2662 | if test "${enable_debug_gdb+set}" = set; then | |
2663 | enableval="$enable_debug_gdb" | |
a0b9e27f | 2664 | |
10f2d63a VZ |
2665 | if test "$enableval" = yes; then |
2666 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2667 | else | |
2668 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2669 | fi | |
a0b9e27f | 2670 | |
10f2d63a | 2671 | else |
a0b9e27f | 2672 | |
10f2d63a VZ |
2673 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2674 | if test "x$LINE" != x ; then | |
2675 | eval "DEFAULT_$LINE" | |
2676 | else | |
2677 | no_cache=1 | |
2678 | fi | |
2679 | ||
2680 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
a0b9e27f MB |
2681 | |
2682 | fi | |
10f2d63a VZ |
2683 | |
2684 | ||
2685 | eval "$ac_cv_use_debug_gdb" | |
2686 | if test "$no_cache" != 1; then | |
2687 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2688 | fi | |
2689 | ||
2690 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
a0b9e27f | 2691 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2692 | else |
a0b9e27f | 2693 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2694 | fi |
a0b9e27f | 2695 | |
10f2d63a | 2696 | |
5005acfe VZ |
2697 | enablestring= |
2698 | echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6 | |
da494b40 | 2699 | echo "configure:2700: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
10f2d63a VZ |
2700 | no_cache=0 |
2701 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2702 | if test "${enable_debug_cntxt+set}" = set; then | |
2703 | enableval="$enable_debug_cntxt" | |
a0b9e27f | 2704 | |
10f2d63a VZ |
2705 | if test "$enableval" = yes; then |
2706 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2707 | else | |
2708 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2709 | fi | |
a0b9e27f | 2710 | |
10f2d63a | 2711 | else |
a0b9e27f | 2712 | |
10f2d63a VZ |
2713 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2714 | if test "x$LINE" != x ; then | |
2715 | eval "DEFAULT_$LINE" | |
2716 | else | |
2717 | no_cache=1 | |
2718 | fi | |
2719 | ||
2720 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
a0b9e27f MB |
2721 | |
2722 | fi | |
10f2d63a VZ |
2723 | |
2724 | ||
2725 | eval "$ac_cv_use_debug_cntxt" | |
2726 | if test "$no_cache" != 1; then | |
2727 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2728 | fi | |
2729 | ||
2730 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
a0b9e27f | 2731 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2732 | else |
a0b9e27f | 2733 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2734 | fi |
a0b9e27f | 2735 | |
10f2d63a | 2736 | |
5005acfe VZ |
2737 | enablestring= |
2738 | echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6 | |
da494b40 | 2739 | echo "configure:2740: checking for --${enablestring:-enable}-mem_tracing" >&5 |
10f2d63a VZ |
2740 | no_cache=0 |
2741 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2742 | if test "${enable_mem_tracing+set}" = set; then | |
2743 | enableval="$enable_mem_tracing" | |
a0b9e27f | 2744 | |
10f2d63a VZ |
2745 | if test "$enableval" = yes; then |
2746 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2747 | else | |
2748 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2749 | fi | |
a0b9e27f | 2750 | |
10f2d63a | 2751 | else |
a0b9e27f | 2752 | |
10f2d63a VZ |
2753 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2754 | if test "x$LINE" != x ; then | |
2755 | eval "DEFAULT_$LINE" | |
2756 | else | |
2757 | no_cache=1 | |
2758 | fi | |
2759 | ||
2760 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
a0b9e27f MB |
2761 | |
2762 | fi | |
10f2d63a VZ |
2763 | |
2764 | ||
2765 | eval "$ac_cv_use_mem_tracing" | |
2766 | if test "$no_cache" != 1; then | |
2767 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2768 | fi | |
2769 | ||
2770 | if test "$wxUSE_MEM_TRACING" = yes; then | |
a0b9e27f | 2771 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2772 | else |
a0b9e27f | 2773 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2774 | fi |
a0b9e27f | 2775 | |
10f2d63a | 2776 | |
5005acfe VZ |
2777 | enablestring= |
2778 | echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6 | |
da494b40 | 2779 | echo "configure:2780: checking for --${enablestring:-enable}-profile" >&5 |
10f2d63a VZ |
2780 | no_cache=0 |
2781 | # Check whether --enable-profile or --disable-profile was given. | |
2782 | if test "${enable_profile+set}" = set; then | |
2783 | enableval="$enable_profile" | |
a0b9e27f | 2784 | |
10f2d63a VZ |
2785 | if test "$enableval" = yes; then |
2786 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2787 | else | |
2788 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2789 | fi | |
a0b9e27f | 2790 | |
10f2d63a | 2791 | else |
a0b9e27f | 2792 | |
10f2d63a VZ |
2793 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2794 | if test "x$LINE" != x ; then | |
2795 | eval "DEFAULT_$LINE" | |
2796 | else | |
2797 | no_cache=1 | |
2798 | fi | |
2799 | ||
2800 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
a0b9e27f MB |
2801 | |
2802 | fi | |
10f2d63a VZ |
2803 | |
2804 | ||
2805 | eval "$ac_cv_use_profile" | |
2806 | if test "$no_cache" != 1; then | |
2807 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2808 | fi | |
2809 | ||
2810 | if test "$wxUSE_PROFILE" = yes; then | |
a0b9e27f | 2811 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2812 | else |
a0b9e27f | 2813 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2814 | fi |
a0b9e27f | 2815 | |
10f2d63a | 2816 | |
5005acfe VZ |
2817 | enablestring= |
2818 | echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6 | |
da494b40 | 2819 | echo "configure:2820: checking for --${enablestring:-enable}-no_rtti" >&5 |
10f2d63a VZ |
2820 | no_cache=0 |
2821 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2822 | if test "${enable_no_rtti+set}" = set; then | |
2823 | enableval="$enable_no_rtti" | |
a0b9e27f | 2824 | |
10f2d63a VZ |
2825 | if test "$enableval" = yes; then |
2826 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2827 | else | |
2828 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2829 | fi | |
a0b9e27f | 2830 | |
10f2d63a | 2831 | else |
a0b9e27f | 2832 | |
10f2d63a VZ |
2833 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2834 | if test "x$LINE" != x ; then | |
2835 | eval "DEFAULT_$LINE" | |
2836 | else | |
2837 | no_cache=1 | |
2838 | fi | |
2839 | ||
2840 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
a0b9e27f MB |
2841 | |
2842 | fi | |
10f2d63a VZ |
2843 | |
2844 | ||
2845 | eval "$ac_cv_use_no_rtti" | |
2846 | if test "$no_cache" != 1; then | |
2847 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2848 | fi | |
2849 | ||
2850 | if test "$wxUSE_NO_RTTI" = yes; then | |
a0b9e27f | 2851 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2852 | else |
a0b9e27f | 2853 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2854 | fi |
a0b9e27f | 2855 | |
10f2d63a | 2856 | |
5005acfe VZ |
2857 | enablestring= |
2858 | echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6 | |
da494b40 | 2859 | echo "configure:2860: checking for --${enablestring:-enable}-no_exceptions" >&5 |
10f2d63a VZ |
2860 | no_cache=0 |
2861 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2862 | if test "${enable_no_exceptions+set}" = set; then | |
2863 | enableval="$enable_no_exceptions" | |
a0b9e27f | 2864 | |
10f2d63a VZ |
2865 | if test "$enableval" = yes; then |
2866 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2867 | else | |
2868 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2869 | fi | |
a0b9e27f | 2870 | |
10f2d63a | 2871 | else |
a0b9e27f | 2872 | |
10f2d63a VZ |
2873 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2874 | if test "x$LINE" != x ; then | |
2875 | eval "DEFAULT_$LINE" | |
2876 | else | |
2877 | no_cache=1 | |
2878 | fi | |
2879 | ||
2880 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
a0b9e27f MB |
2881 | |
2882 | fi | |
10f2d63a VZ |
2883 | |
2884 | ||
2885 | eval "$ac_cv_use_no_exceptions" | |
2886 | if test "$no_cache" != 1; then | |
2887 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2888 | fi | |
2889 | ||
2890 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
a0b9e27f | 2891 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2892 | else |
a0b9e27f | 2893 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2894 | fi |
a0b9e27f | 2895 | |
10f2d63a | 2896 | |
5005acfe VZ |
2897 | enablestring= |
2898 | echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6 | |
da494b40 | 2899 | echo "configure:2900: checking for --${enablestring:-enable}-permissive" >&5 |
10f2d63a VZ |
2900 | no_cache=0 |
2901 | # Check whether --enable-permissive or --disable-permissive was given. | |
2902 | if test "${enable_permissive+set}" = set; then | |
2903 | enableval="$enable_permissive" | |
a0b9e27f | 2904 | |
10f2d63a VZ |
2905 | if test "$enableval" = yes; then |
2906 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2907 | else | |
2908 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2909 | fi | |
a0b9e27f | 2910 | |
10f2d63a | 2911 | else |
a0b9e27f | 2912 | |
10f2d63a VZ |
2913 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2914 | if test "x$LINE" != x ; then | |
2915 | eval "DEFAULT_$LINE" | |
2916 | else | |
2917 | no_cache=1 | |
2918 | fi | |
2919 | ||
2920 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
a0b9e27f MB |
2921 | |
2922 | fi | |
10f2d63a VZ |
2923 | |
2924 | ||
2925 | eval "$ac_cv_use_permissive" | |
2926 | if test "$no_cache" != 1; then | |
2927 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2928 | fi | |
2929 | ||
2930 | if test "$wxUSE_PERMISSIVE" = yes; then | |
a0b9e27f | 2931 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2932 | else |
a0b9e27f | 2933 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2934 | fi |
a0b9e27f | 2935 | |
10f2d63a | 2936 | |
5005acfe VZ |
2937 | enablestring= |
2938 | echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6 | |
da494b40 | 2939 | echo "configure:2940: checking for --${enablestring:-enable}-no_deps" >&5 |
10f2d63a VZ |
2940 | no_cache=0 |
2941 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2942 | if test "${enable_no_deps+set}" = set; then | |
2943 | enableval="$enable_no_deps" | |
a0b9e27f | 2944 | |
10f2d63a VZ |
2945 | if test "$enableval" = yes; then |
2946 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2947 | else | |
2948 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2949 | fi | |
a0b9e27f | 2950 | |
10f2d63a | 2951 | else |
a0b9e27f | 2952 | |
10f2d63a VZ |
2953 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2954 | if test "x$LINE" != x ; then | |
2955 | eval "DEFAULT_$LINE" | |
2956 | else | |
2957 | no_cache=1 | |
2958 | fi | |
2959 | ||
2960 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
a0b9e27f MB |
2961 | |
2962 | fi | |
10f2d63a VZ |
2963 | |
2964 | ||
2965 | eval "$ac_cv_use_no_deps" | |
2966 | if test "$no_cache" != 1; then | |
2967 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2968 | fi | |
2969 | ||
2970 | if test "$wxUSE_NO_DEPS" = yes; then | |
a0b9e27f | 2971 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2972 | else |
a0b9e27f | 2973 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2974 | fi |
a0b9e27f | 2975 | |
52127426 | 2976 | |
8284b0c5 | 2977 | |
5005acfe VZ |
2978 | enablestring= |
2979 | echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6 | |
da494b40 | 2980 | echo "configure:2981: checking for --${enablestring:-enable}-compat20" >&5 |
54276ccf VZ |
2981 | no_cache=0 |
2982 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2983 | if test "${enable_compat20+set}" = set; then | |
2984 | enableval="$enable_compat20" | |
a0b9e27f | 2985 | |
54276ccf VZ |
2986 | if test "$enableval" = yes; then |
2987 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2988 | else | |
2989 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2990 | fi | |
a0b9e27f | 2991 | |
54276ccf | 2992 | else |
a0b9e27f | 2993 | |
54276ccf VZ |
2994 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
2995 | if test "x$LINE" != x ; then | |
2996 | eval "DEFAULT_$LINE" | |
2997 | else | |
2998 | no_cache=1 | |
2999 | fi | |
3000 | ||
3001 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
a0b9e27f MB |
3002 | |
3003 | fi | |
54276ccf VZ |
3004 | |
3005 | ||
3006 | eval "$ac_cv_use_compat20" | |
3007 | if test "$no_cache" != 1; then | |
3008 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3009 | fi | |
3010 | ||
3011 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
a0b9e27f | 3012 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3013 | else |
a0b9e27f | 3014 | echo "$ac_t""no" 1>&6 |
54276ccf | 3015 | fi |
a0b9e27f | 3016 | |
54276ccf | 3017 | |
65d8ef1e | 3018 | enablestring= |
5005acfe | 3019 | echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6 |
da494b40 | 3020 | echo "configure:3021: checking for --${enablestring:-enable}-compat22" >&5 |
54276ccf VZ |
3021 | no_cache=0 |
3022 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3023 | if test "${enable_compat22+set}" = set; then | |
3024 | enableval="$enable_compat22" | |
a0b9e27f | 3025 | |
54276ccf VZ |
3026 | if test "$enableval" = yes; then |
3027 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3028 | else | |
3029 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3030 | fi | |
a0b9e27f | 3031 | |
54276ccf | 3032 | else |
a0b9e27f | 3033 | |
54276ccf VZ |
3034 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3035 | if test "x$LINE" != x ; then | |
3036 | eval "DEFAULT_$LINE" | |
3037 | else | |
3038 | no_cache=1 | |
3039 | fi | |
3040 | ||
3041 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
a0b9e27f MB |
3042 | |
3043 | fi | |
54276ccf VZ |
3044 | |
3045 | ||
3046 | eval "$ac_cv_use_compat22" | |
3047 | if test "$no_cache" != 1; then | |
3048 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3049 | fi | |
3050 | ||
3051 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
a0b9e27f | 3052 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3053 | else |
a0b9e27f | 3054 | echo "$ac_t""no" 1>&6 |
54276ccf | 3055 | fi |
a0b9e27f | 3056 | |
54276ccf | 3057 | |
65d8ef1e VS |
3058 | enablestring=disable |
3059 | echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6 | |
da494b40 | 3060 | echo "configure:3061: checking for --${enablestring:-enable}-compat24" >&5 |
65d8ef1e VS |
3061 | no_cache=0 |
3062 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
3063 | if test "${enable_compat24+set}" = set; then | |
3064 | enableval="$enable_compat24" | |
3065 | ||
3066 | if test "$enableval" = yes; then | |
3067 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
3068 | else | |
3069 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
3070 | fi | |
3071 | ||
3072 | else | |
3073 | ||
3074 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
3075 | if test "x$LINE" != x ; then | |
3076 | eval "DEFAULT_$LINE" | |
3077 | else | |
3078 | no_cache=1 | |
3079 | fi | |
3080 | ||
3081 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
3082 | ||
3083 | fi | |
3084 | ||
3085 | ||
3086 | eval "$ac_cv_use_compat24" | |
3087 | if test "$no_cache" != 1; then | |
3088 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
3089 | fi | |
3090 | ||
3091 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
3092 | echo "$ac_t""yes" 1>&6 | |
3093 | else | |
3094 | echo "$ac_t""no" 1>&6 | |
3095 | fi | |
3096 | ||
3097 | ||
3bd8fb5f RD |
3098 | # Check whether --enable-rpath or --disable-rpath was given. |
3099 | if test "${enable_rpath+set}" = set; then | |
3100 | enableval="$enable_rpath" | |
3101 | wxRPATH_DIR="$enableval" | |
a0b9e27f MB |
3102 | fi |
3103 | ||
3bd8fb5f RD |
3104 | |
3105 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3106 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3107 | fi | |
3108 | ||
8284b0c5 MB |
3109 | |
3110 | ||
3111 | ||
5005acfe VZ |
3112 | enablestring= |
3113 | echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6 | |
da494b40 | 3114 | echo "configure:3115: checking for --${enablestring:-enable}-intl" >&5 |
10f2d63a VZ |
3115 | no_cache=0 |
3116 | # Check whether --enable-intl or --disable-intl was given. | |
3117 | if test "${enable_intl+set}" = set; then | |
3118 | enableval="$enable_intl" | |
a0b9e27f | 3119 | |
10f2d63a VZ |
3120 | if test "$enableval" = yes; then |
3121 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3122 | else | |
3123 | ac_cv_use_intl='wxUSE_INTL=no' | |
3124 | fi | |
a0b9e27f | 3125 | |
10f2d63a | 3126 | else |
a0b9e27f | 3127 | |
10f2d63a VZ |
3128 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3129 | if test "x$LINE" != x ; then | |
3130 | eval "DEFAULT_$LINE" | |
3131 | else | |
3132 | no_cache=1 | |
3133 | fi | |
3134 | ||
3135 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
a0b9e27f MB |
3136 | |
3137 | fi | |
10f2d63a VZ |
3138 | |
3139 | ||
3140 | eval "$ac_cv_use_intl" | |
3141 | if test "$no_cache" != 1; then | |
3142 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3143 | fi | |
3144 | ||
3145 | if test "$wxUSE_INTL" = yes; then | |
a0b9e27f | 3146 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3147 | else |
a0b9e27f | 3148 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3149 | fi |
a0b9e27f | 3150 | |
10f2d63a | 3151 | |
5005acfe VZ |
3152 | enablestring= |
3153 | echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6 | |
da494b40 | 3154 | echo "configure:3155: checking for --${enablestring:-enable}-config" >&5 |
10f2d63a VZ |
3155 | no_cache=0 |
3156 | # Check whether --enable-config or --disable-config was given. | |
3157 | if test "${enable_config+set}" = set; then | |
3158 | enableval="$enable_config" | |
a0b9e27f | 3159 | |
10f2d63a VZ |
3160 | if test "$enableval" = yes; then |
3161 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3162 | else | |
3163 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3164 | fi | |
a0b9e27f | 3165 | |
10f2d63a | 3166 | else |
a0b9e27f | 3167 | |
10f2d63a VZ |
3168 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3169 | if test "x$LINE" != x ; then | |
3170 | eval "DEFAULT_$LINE" | |
3171 | else | |
3172 | no_cache=1 | |
3173 | fi | |
3174 | ||
3175 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
a0b9e27f MB |
3176 | |
3177 | fi | |
10f2d63a VZ |
3178 | |
3179 | ||
3180 | eval "$ac_cv_use_config" | |
3181 | if test "$no_cache" != 1; then | |
3182 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3183 | fi | |
3184 | ||
3185 | if test "$wxUSE_CONFIG" = yes; then | |
a0b9e27f | 3186 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3187 | else |
a0b9e27f | 3188 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3189 | fi |
a0b9e27f | 3190 | |
52127426 | 3191 | |
8284b0c5 | 3192 | |
5005acfe VZ |
3193 | enablestring= |
3194 | echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6 | |
da494b40 | 3195 | echo "configure:3196: checking for --${enablestring:-enable}-protocols" >&5 |
a1622950 VZ |
3196 | no_cache=0 |
3197 | # Check whether --enable-protocols or --disable-protocols was given. | |
3198 | if test "${enable_protocols+set}" = set; then | |
3199 | enableval="$enable_protocols" | |
a0b9e27f | 3200 | |
a1622950 VZ |
3201 | if test "$enableval" = yes; then |
3202 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3203 | else | |
3204 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3205 | fi | |
a0b9e27f | 3206 | |
a1622950 | 3207 | else |
a0b9e27f | 3208 | |
a1622950 VZ |
3209 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3210 | if test "x$LINE" != x ; then | |
3211 | eval "DEFAULT_$LINE" | |
3212 | else | |
3213 | no_cache=1 | |
3214 | fi | |
3215 | ||
3216 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
3217 | |
3218 | fi | |
a1622950 VZ |
3219 | |
3220 | ||
3221 | eval "$ac_cv_use_protocols" | |
3222 | if test "$no_cache" != 1; then | |
3223 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3224 | fi | |
3225 | ||
3226 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 3227 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3228 | else |
a0b9e27f | 3229 | echo "$ac_t""no" 1>&6 |
a1622950 | 3230 | fi |
a0b9e27f | 3231 | |
a1622950 | 3232 | |
5005acfe VZ |
3233 | enablestring= |
3234 | echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6 | |
da494b40 | 3235 | echo "configure:3236: checking for --${enablestring:-enable}-ftp" >&5 |
a1622950 VZ |
3236 | no_cache=0 |
3237 | # Check whether --enable-ftp or --disable-ftp was given. | |
3238 | if test "${enable_ftp+set}" = set; then | |
3239 | enableval="$enable_ftp" | |
a0b9e27f | 3240 | |
a1622950 VZ |
3241 | if test "$enableval" = yes; then |
3242 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3243 | else | |
3244 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3245 | fi | |
a0b9e27f | 3246 | |
a1622950 | 3247 | else |
a0b9e27f | 3248 | |
a1622950 VZ |
3249 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3250 | if test "x$LINE" != x ; then | |
3251 | eval "DEFAULT_$LINE" | |
3252 | else | |
3253 | no_cache=1 | |
3254 | fi | |
3255 | ||
3256 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
3257 | |
3258 | fi | |
a1622950 VZ |
3259 | |
3260 | ||
3261 | eval "$ac_cv_use_ftp" | |
3262 | if test "$no_cache" != 1; then | |
3263 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3264 | fi | |
3265 | ||
3266 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 3267 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3268 | else |
a0b9e27f | 3269 | echo "$ac_t""no" 1>&6 |
a1622950 | 3270 | fi |
a0b9e27f | 3271 | |
a1622950 | 3272 | |
5005acfe VZ |
3273 | enablestring= |
3274 | echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6 | |
da494b40 | 3275 | echo "configure:3276: checking for --${enablestring:-enable}-http" >&5 |
a1622950 VZ |
3276 | no_cache=0 |
3277 | # Check whether --enable-http or --disable-http was given. | |
3278 | if test "${enable_http+set}" = set; then | |
3279 | enableval="$enable_http" | |
a0b9e27f | 3280 | |
a1622950 VZ |
3281 | if test "$enableval" = yes; then |
3282 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3283 | else | |
3284 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3285 | fi | |
a0b9e27f | 3286 | |
a1622950 | 3287 | else |
a0b9e27f | 3288 | |
a1622950 VZ |
3289 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3290 | if test "x$LINE" != x ; then | |
3291 | eval "DEFAULT_$LINE" | |
3292 | else | |
3293 | no_cache=1 | |
3294 | fi | |
3295 | ||
3296 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
3297 | |
3298 | fi | |
a1622950 VZ |
3299 | |
3300 | ||
3301 | eval "$ac_cv_use_http" | |
3302 | if test "$no_cache" != 1; then | |
3303 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3304 | fi | |
3305 | ||
3306 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 3307 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3308 | else |
a0b9e27f | 3309 | echo "$ac_t""no" 1>&6 |
a1622950 | 3310 | fi |
a0b9e27f | 3311 | |
a1622950 | 3312 | |
5005acfe VZ |
3313 | enablestring= |
3314 | echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6 | |
da494b40 | 3315 | echo "configure:3316: checking for --${enablestring:-enable}-fileproto" >&5 |
a1622950 VZ |
3316 | no_cache=0 |
3317 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3318 | if test "${enable_fileproto+set}" = set; then | |
3319 | enableval="$enable_fileproto" | |
a0b9e27f | 3320 | |
a1622950 VZ |
3321 | if test "$enableval" = yes; then |
3322 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3323 | else | |
3324 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3325 | fi | |
a0b9e27f | 3326 | |
a1622950 | 3327 | else |
a0b9e27f | 3328 | |
a1622950 VZ |
3329 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
3330 | if test "x$LINE" != x ; then | |
3331 | eval "DEFAULT_$LINE" | |
3332 | else | |
3333 | no_cache=1 | |
3334 | fi | |
3335 | ||
3336 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
3337 | |
3338 | fi | |
a1622950 VZ |
3339 | |
3340 | ||
3341 | eval "$ac_cv_use_fileproto" | |
3342 | if test "$no_cache" != 1; then | |
3343 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3344 | fi | |
3345 | ||
3346 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 3347 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3348 | else |
a0b9e27f | 3349 | echo "$ac_t""no" 1>&6 |
a1622950 | 3350 | fi |
a0b9e27f | 3351 | |
a1622950 | 3352 | |
5005acfe VZ |
3353 | enablestring= |
3354 | echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6 | |
da494b40 | 3355 | echo "configure:3356: checking for --${enablestring:-enable}-sockets" >&5 |
10f2d63a VZ |
3356 | no_cache=0 |
3357 | # Check whether --enable-sockets or --disable-sockets was given. | |
3358 | if test "${enable_sockets+set}" = set; then | |
3359 | enableval="$enable_sockets" | |
a0b9e27f | 3360 | |
10f2d63a VZ |
3361 | if test "$enableval" = yes; then |
3362 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3363 | else | |
3364 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3365 | fi | |
a0b9e27f | 3366 | |
10f2d63a | 3367 | else |
a0b9e27f | 3368 | |
10f2d63a VZ |
3369 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3370 | if test "x$LINE" != x ; then | |
3371 | eval "DEFAULT_$LINE" | |
3372 | else | |
3373 | no_cache=1 | |
3374 | fi | |
3375 | ||
3376 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
a0b9e27f MB |
3377 | |
3378 | fi | |
10f2d63a VZ |
3379 | |
3380 | ||
3381 | eval "$ac_cv_use_sockets" | |
3382 | if test "$no_cache" != 1; then | |
3383 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3384 | fi | |
3385 | ||
3386 | if test "$wxUSE_SOCKETS" = yes; then | |
a0b9e27f | 3387 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3388 | else |
a0b9e27f | 3389 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3390 | fi |
a0b9e27f | 3391 | |
8284b0c5 | 3392 | |
5005acfe VZ |
3393 | enablestring= |
3394 | echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6 | |
da494b40 | 3395 | echo "configure:3396: checking for --${enablestring:-enable}-ole" >&5 |
3bce6687 JS |
3396 | no_cache=0 |
3397 | # Check whether --enable-ole or --disable-ole was given. | |
3398 | if test "${enable_ole+set}" = set; then | |
3399 | enableval="$enable_ole" | |
3400 | ||
3401 | if test "$enableval" = yes; then | |
3402 | ac_cv_use_ole='wxUSE_OLE=yes' | |
3403 | else | |
3404 | ac_cv_use_ole='wxUSE_OLE=no' | |
3405 | fi | |
3406 | ||
3407 | else | |
3408 | ||
3409 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
3410 | if test "x$LINE" != x ; then | |
3411 | eval "DEFAULT_$LINE" | |
3412 | else | |
3413 | no_cache=1 | |
3414 | fi | |
3415 | ||
3416 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3417 | ||
3418 | fi | |
3419 | ||
3420 | ||
3421 | eval "$ac_cv_use_ole" | |
3422 | if test "$no_cache" != 1; then | |
3423 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
3424 | fi | |
3425 | ||
3426 | if test "$wxUSE_OLE" = yes; then | |
3427 | echo "$ac_t""yes" 1>&6 | |
3428 | else | |
3429 | echo "$ac_t""no" 1>&6 | |
3430 | fi | |
3431 | ||
3432 | ||
5005acfe VZ |
3433 | enablestring= |
3434 | echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6 | |
da494b40 | 3435 | echo "configure:3436: checking for --${enablestring:-enable}-dataobj" >&5 |
3bce6687 JS |
3436 | no_cache=0 |
3437 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
3438 | if test "${enable_dataobj+set}" = set; then | |
3439 | enableval="$enable_dataobj" | |
3440 | ||
3441 | if test "$enableval" = yes; then | |
3442 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
3443 | else | |
3444 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
3445 | fi | |
3446 | ||
3447 | else | |
3448 | ||
3449 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
3450 | if test "x$LINE" != x ; then | |
3451 | eval "DEFAULT_$LINE" | |
3452 | else | |
3453 | no_cache=1 | |
3454 | fi | |
3455 | ||
3456 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3457 | ||
3458 | fi | |
3459 | ||
3460 | ||
3461 | eval "$ac_cv_use_dataobj" | |
3462 | if test "$no_cache" != 1; then | |
3463 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
3464 | fi | |
3465 | ||
3466 | if test "$wxUSE_DATAOBJ" = yes; then | |
3467 | echo "$ac_t""yes" 1>&6 | |
3468 | else | |
3469 | echo "$ac_t""no" 1>&6 | |
3470 | fi | |
3471 | ||
3472 | ||
52127426 | 3473 | |
5005acfe VZ |
3474 | enablestring= |
3475 | echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6 | |
da494b40 | 3476 | echo "configure:3477: checking for --${enablestring:-enable}-ipc" >&5 |
10f2d63a | 3477 | no_cache=0 |
eb4efbdc VZ |
3478 | # Check whether --enable-ipc or --disable-ipc was given. |
3479 | if test "${enable_ipc+set}" = set; then | |
3480 | enableval="$enable_ipc" | |
a0b9e27f | 3481 | |
10f2d63a | 3482 | if test "$enableval" = yes; then |
eb4efbdc | 3483 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3484 | else |
eb4efbdc | 3485 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3486 | fi |
a0b9e27f | 3487 | |
10f2d63a | 3488 | else |
a0b9e27f | 3489 | |
eb4efbdc | 3490 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3491 | if test "x$LINE" != x ; then |
3492 | eval "DEFAULT_$LINE" | |
3493 | else | |
3494 | no_cache=1 | |
3495 | fi | |
3496 | ||
eb4efbdc | 3497 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
a0b9e27f MB |
3498 | |
3499 | fi | |
10f2d63a VZ |
3500 | |
3501 | ||
eb4efbdc | 3502 | eval "$ac_cv_use_ipc" |
10f2d63a | 3503 | if test "$no_cache" != 1; then |
eb4efbdc | 3504 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3505 | fi |
3506 | ||
eb4efbdc | 3507 | if test "$wxUSE_IPC" = yes; then |
a0b9e27f | 3508 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3509 | else |
a0b9e27f | 3510 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3511 | fi |
a0b9e27f | 3512 | |
52127426 | 3513 | |
8284b0c5 | 3514 | |
5005acfe VZ |
3515 | enablestring= |
3516 | echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6 | |
da494b40 | 3517 | echo "configure:3518: checking for --${enablestring:-enable}-cmdline" >&5 |
1e6feb95 VZ |
3518 | no_cache=0 |
3519 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3520 | if test "${enable_cmdline+set}" = set; then | |
3521 | enableval="$enable_cmdline" | |
a0b9e27f | 3522 | |
1e6feb95 VZ |
3523 | if test "$enableval" = yes; then |
3524 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3525 | else | |
3526 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3527 | fi | |
a0b9e27f | 3528 | |
1e6feb95 | 3529 | else |
a0b9e27f | 3530 | |
1e6feb95 VZ |
3531 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
3532 | if test "x$LINE" != x ; then | |
3533 | eval "DEFAULT_$LINE" | |
3534 | else | |
3535 | no_cache=1 | |
3536 | fi | |
3537 | ||
3538 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
a0b9e27f MB |
3539 | |
3540 | fi | |
1e6feb95 VZ |
3541 | |
3542 | ||
3543 | eval "$ac_cv_use_cmdline" | |
3544 | if test "$no_cache" != 1; then | |
3545 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3546 | fi | |
3547 | ||
3548 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
a0b9e27f | 3549 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3550 | else |
a0b9e27f | 3551 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3552 | fi |
a0b9e27f | 3553 | |
1e6feb95 | 3554 | |
5005acfe VZ |
3555 | enablestring= |
3556 | echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6 | |
da494b40 | 3557 | echo "configure:3558: checking for --${enablestring:-enable}-datetime" >&5 |
1e6feb95 VZ |
3558 | no_cache=0 |
3559 | # Check whether --enable-datetime or --disable-datetime was given. | |
3560 | if test "${enable_datetime+set}" = set; then | |
3561 | enableval="$enable_datetime" | |
a0b9e27f | 3562 | |
1e6feb95 VZ |
3563 | if test "$enableval" = yes; then |
3564 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3565 | else | |
3566 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3567 | fi | |
a0b9e27f | 3568 | |
1e6feb95 | 3569 | else |
a0b9e27f | 3570 | |
1e6feb95 VZ |
3571 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
3572 | if test "x$LINE" != x ; then | |
3573 | eval "DEFAULT_$LINE" | |
3574 | else | |
3575 | no_cache=1 | |
3576 | fi | |
3577 | ||
3578 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
a0b9e27f MB |
3579 | |
3580 | fi | |
1e6feb95 VZ |
3581 | |
3582 | ||
3583 | eval "$ac_cv_use_datetime" | |
3584 | if test "$no_cache" != 1; then | |
3585 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3586 | fi | |
3587 | ||
3588 | if test "$wxUSE_DATETIME" = yes; then | |
a0b9e27f | 3589 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3590 | else |
a0b9e27f | 3591 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3592 | fi |
a0b9e27f | 3593 | |
1e6feb95 | 3594 | |
5005acfe VZ |
3595 | enablestring= |
3596 | echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6 | |
da494b40 | 3597 | echo "configure:3598: checking for --${enablestring:-enable}-timedate" >&5 |
1e6feb95 VZ |
3598 | no_cache=0 |
3599 | # Check whether --enable-timedate or --disable-timedate was given. | |
3600 | if test "${enable_timedate+set}" = set; then | |
3601 | enableval="$enable_timedate" | |
a0b9e27f | 3602 | |
1e6feb95 VZ |
3603 | if test "$enableval" = yes; then |
3604 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3605 | else | |
3606 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3607 | fi | |
a0b9e27f | 3608 | |
1e6feb95 | 3609 | else |
a0b9e27f | 3610 | |
1e6feb95 VZ |
3611 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` |
3612 | if test "x$LINE" != x ; then | |
3613 | eval "DEFAULT_$LINE" | |
3614 | else | |
3615 | no_cache=1 | |
3616 | fi | |
3617 | ||
3618 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
a0b9e27f MB |
3619 | |
3620 | fi | |
1e6feb95 VZ |
3621 | |
3622 | ||
3623 | eval "$ac_cv_use_timedate" | |
3624 | if test "$no_cache" != 1; then | |
3625 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3626 | fi | |
3627 | ||
3628 | if test "$wxUSE_TIMEDATE" = yes; then | |
a0b9e27f | 3629 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3630 | else |
a0b9e27f | 3631 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3632 | fi |
a0b9e27f | 3633 | |
1e6feb95 | 3634 | |
5005acfe VZ |
3635 | enablestring= |
3636 | echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6 | |
da494b40 | 3637 | echo "configure:3638: checking for --${enablestring:-enable}-stopwatch" >&5 |
1e6feb95 VZ |
3638 | no_cache=0 |
3639 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3640 | if test "${enable_stopwatch+set}" = set; then | |
3641 | enableval="$enable_stopwatch" | |
a0b9e27f | 3642 | |
1e6feb95 VZ |
3643 | if test "$enableval" = yes; then |
3644 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3645 | else | |
3646 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3647 | fi | |
a0b9e27f | 3648 | |
1e6feb95 | 3649 | else |
a0b9e27f | 3650 | |
1e6feb95 VZ |
3651 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
3652 | if test "x$LINE" != x ; then | |
3653 | eval "DEFAULT_$LINE" | |
3654 | else | |
3655 | no_cache=1 | |
3656 | fi | |
3657 | ||
3658 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
a0b9e27f MB |
3659 | |
3660 | fi | |
1e6feb95 VZ |
3661 | |
3662 | ||
3663 | eval "$ac_cv_use_stopwatch" | |
3664 | if test "$no_cache" != 1; then | |
3665 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3666 | fi | |
3667 | ||
3668 | if test "$wxUSE_STOPWATCH" = yes; then | |
a0b9e27f | 3669 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3670 | else |
a0b9e27f | 3671 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3672 | fi |
a0b9e27f | 3673 | |
1e6feb95 | 3674 | |
5005acfe VZ |
3675 | enablestring= |
3676 | echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6 | |
da494b40 | 3677 | echo "configure:3678: checking for --${enablestring:-enable}-dialupman" >&5 |
10f2d63a | 3678 | no_cache=0 |
eb4efbdc VZ |
3679 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3680 | if test "${enable_dialupman+set}" = set; then | |
3681 | enableval="$enable_dialupman" | |
a0b9e27f | 3682 | |
10f2d63a | 3683 | if test "$enableval" = yes; then |
eb4efbdc | 3684 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3685 | else |
eb4efbdc | 3686 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3687 | fi |
a0b9e27f | 3688 | |
10f2d63a | 3689 | else |
a0b9e27f | 3690 | |
eb4efbdc | 3691 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3692 | if test "x$LINE" != x ; then |
3693 | eval "DEFAULT_$LINE" | |
3694 | else | |
3695 | no_cache=1 | |
3696 | fi | |
3697 | ||
eb4efbdc | 3698 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
a0b9e27f MB |
3699 | |
3700 | fi | |
10f2d63a VZ |
3701 | |
3702 | ||
eb4efbdc | 3703 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3704 | if test "$no_cache" != 1; then |
eb4efbdc | 3705 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3706 | fi |
3707 | ||
eb4efbdc | 3708 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
a0b9e27f | 3709 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3710 | else |
a0b9e27f | 3711 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3712 | fi |
a0b9e27f | 3713 | |
10f2d63a | 3714 | |
5005acfe VZ |
3715 | enablestring= |
3716 | echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6 | |
da494b40 | 3717 | echo "configure:3718: checking for --${enablestring:-enable}-apple_ieee" >&5 |
10f2d63a VZ |
3718 | no_cache=0 |
3719 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3720 | if test "${enable_apple_ieee+set}" = set; then | |
3721 | enableval="$enable_apple_ieee" | |
a0b9e27f | 3722 | |
10f2d63a VZ |
3723 | if test "$enableval" = yes; then |
3724 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3725 | else | |
3726 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3727 | fi | |
a0b9e27f | 3728 | |
10f2d63a | 3729 | else |
a0b9e27f | 3730 | |
10f2d63a VZ |
3731 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3732 | if test "x$LINE" != x ; then | |
3733 | eval "DEFAULT_$LINE" | |
3734 | else | |
3735 | no_cache=1 | |
3736 | fi | |
3737 | ||
3738 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
a0b9e27f MB |
3739 | |
3740 | fi | |
10f2d63a VZ |
3741 | |
3742 | ||
3743 | eval "$ac_cv_use_apple_ieee" | |
3744 | if test "$no_cache" != 1; then | |
3745 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3746 | fi | |
3747 | ||
3748 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
a0b9e27f | 3749 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3750 | else |
a0b9e27f | 3751 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3752 | fi |
a0b9e27f | 3753 | |
10f2d63a | 3754 | |
5005acfe VZ |
3755 | enablestring= |
3756 | echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6 | |
da494b40 | 3757 | echo "configure:3758: checking for --${enablestring:-enable}-timer" >&5 |
10f2d63a | 3758 | no_cache=0 |
1e6feb95 VZ |
3759 | # Check whether --enable-timer or --disable-timer was given. |
3760 | if test "${enable_timer+set}" = set; then | |
3761 | enableval="$enable_timer" | |
a0b9e27f | 3762 | |
10f2d63a | 3763 | if test "$enableval" = yes; then |
1e6feb95 | 3764 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3765 | else |
1e6feb95 | 3766 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3767 | fi |
a0b9e27f | 3768 | |
10f2d63a | 3769 | else |
a0b9e27f | 3770 | |
1e6feb95 | 3771 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3772 | if test "x$LINE" != x ; then |
3773 | eval "DEFAULT_$LINE" | |
3774 | else | |
3775 | no_cache=1 | |
3776 | fi | |
3777 | ||
1e6feb95 | 3778 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
a0b9e27f MB |
3779 | |
3780 | fi | |
10f2d63a VZ |
3781 | |
3782 | ||
1e6feb95 | 3783 | eval "$ac_cv_use_timer" |
10f2d63a | 3784 | if test "$no_cache" != 1; then |
1e6feb95 | 3785 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3786 | fi |
3787 | ||
1e6feb95 | 3788 | if test "$wxUSE_TIMER" = yes; then |
a0b9e27f | 3789 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3790 | else |
a0b9e27f | 3791 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3792 | fi |
a0b9e27f | 3793 | |
10f2d63a | 3794 | |
5005acfe VZ |
3795 | enablestring= |
3796 | echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6 | |
da494b40 | 3797 | echo "configure:3798: checking for --${enablestring:-enable}-wave" >&5 |
10f2d63a VZ |
3798 | no_cache=0 |
3799 | # Check whether --enable-wave or --disable-wave was given. | |
3800 | if test "${enable_wave+set}" = set; then | |
3801 | enableval="$enable_wave" | |
a0b9e27f | 3802 | |
10f2d63a VZ |
3803 | if test "$enableval" = yes; then |
3804 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3805 | else | |
3806 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3807 | fi | |
a0b9e27f | 3808 | |
10f2d63a | 3809 | else |
a0b9e27f | 3810 | |
10f2d63a VZ |
3811 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3812 | if test "x$LINE" != x ; then | |
3813 | eval "DEFAULT_$LINE" | |
3814 | else | |
3815 | no_cache=1 | |
3816 | fi | |
3817 | ||
3818 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
a0b9e27f MB |
3819 | |
3820 | fi | |
10f2d63a VZ |
3821 | |
3822 | ||
3823 | eval "$ac_cv_use_wave" | |
3824 | if test "$no_cache" != 1; then | |
3825 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3826 | fi | |
3827 | ||
3828 | if test "$wxUSE_WAVE" = yes; then | |
a0b9e27f | 3829 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3830 | else |
a0b9e27f | 3831 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3832 | fi |
a0b9e27f | 3833 | |
10f2d63a | 3834 | |
5005acfe VZ |
3835 | enablestring= |
3836 | echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6 | |
da494b40 | 3837 | echo "configure:3838: checking for --${enablestring:-enable}-fraction" >&5 |
10f2d63a VZ |
3838 | no_cache=0 |
3839 | # Check whether --enable-fraction or --disable-fraction was given. | |
3840 | if test "${enable_fraction+set}" = set; then | |
3841 | enableval="$enable_fraction" | |
a0b9e27f | 3842 | |
10f2d63a VZ |
3843 | if test "$enableval" = yes; then |
3844 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3845 | else | |
3846 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3847 | fi | |
a0b9e27f | 3848 | |
10f2d63a | 3849 | else |
a0b9e27f | 3850 | |
10f2d63a VZ |
3851 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3852 | if test "x$LINE" != x ; then | |
3853 | eval "DEFAULT_$LINE" | |
3854 | else | |
3855 | no_cache=1 | |
3856 | fi | |
3857 | ||
3858 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
a0b9e27f MB |
3859 | |
3860 | fi | |
10f2d63a VZ |
3861 | |
3862 | ||
3863 | eval "$ac_cv_use_fraction" | |
3864 | if test "$no_cache" != 1; then | |
3865 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3866 | fi | |
3867 | ||
3868 | if test "$wxUSE_FRACTION" = yes; then | |
a0b9e27f | 3869 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3870 | else |
a0b9e27f | 3871 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3872 | fi |
a0b9e27f | 3873 | |
10f2d63a | 3874 | |
5005acfe VZ |
3875 | enablestring= |
3876 | echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6 | |
da494b40 | 3877 | echo "configure:3878: checking for --${enablestring:-enable}-dynlib" >&5 |
10f2d63a VZ |
3878 | no_cache=0 |
3879 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3880 | if test "${enable_dynlib+set}" = set; then | |
3881 | enableval="$enable_dynlib" | |
a0b9e27f | 3882 | |
10f2d63a VZ |
3883 | if test "$enableval" = yes; then |
3884 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3885 | else | |
3886 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3887 | fi | |
a0b9e27f | 3888 | |
10f2d63a | 3889 | else |
a0b9e27f | 3890 | |
10f2d63a VZ |
3891 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3892 | if test "x$LINE" != x ; then | |
3893 | eval "DEFAULT_$LINE" | |
3894 | else | |
3895 | no_cache=1 | |
3896 | fi | |
3897 | ||
3898 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
a0b9e27f MB |
3899 | |
3900 | fi | |
10f2d63a VZ |
3901 | |
3902 | ||
3903 | eval "$ac_cv_use_dynlib" | |
3904 | if test "$no_cache" != 1; then | |
3905 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3906 | fi | |
3907 | ||
3908 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
a0b9e27f | 3909 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3910 | else |
a0b9e27f | 3911 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3912 | fi |
a0b9e27f | 3913 | |
10f2d63a | 3914 | |
5005acfe VZ |
3915 | enablestring= |
3916 | echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6 | |
da494b40 | 3917 | echo "configure:3918: checking for --${enablestring:-enable}-dynamicloader" >&5 |
0b9ab0bd RL |
3918 | no_cache=0 |
3919 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3920 | if test "${enable_dynamicloader+set}" = set; then | |
3921 | enableval="$enable_dynamicloader" | |
a0b9e27f | 3922 | |
0b9ab0bd RL |
3923 | if test "$enableval" = yes; then |
3924 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3925 | else | |
3926 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3927 | fi | |
a0b9e27f | 3928 | |
0b9ab0bd | 3929 | else |
a0b9e27f | 3930 | |
0b9ab0bd RL |
3931 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
3932 | if test "x$LINE" != x ; then | |
3933 | eval "DEFAULT_$LINE" | |
3934 | else | |
3935 | no_cache=1 | |
3936 | fi | |
3937 | ||
3938 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
a0b9e27f MB |
3939 | |
3940 | fi | |
0b9ab0bd RL |
3941 | |
3942 | ||
3943 | eval "$ac_cv_use_dynamicloader" | |
3944 | if test "$no_cache" != 1; then | |
3945 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3946 | fi | |
3947 | ||
3948 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
a0b9e27f | 3949 | echo "$ac_t""yes" 1>&6 |
0b9ab0bd | 3950 | else |
a0b9e27f | 3951 | echo "$ac_t""no" 1>&6 |
0b9ab0bd | 3952 | fi |
a0b9e27f | 3953 | |
0b9ab0bd | 3954 | |
5005acfe VZ |
3955 | enablestring= |
3956 | echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6 | |
da494b40 | 3957 | echo "configure:3958: checking for --${enablestring:-enable}-longlong" >&5 |
10f2d63a VZ |
3958 | no_cache=0 |
3959 | # Check whether --enable-longlong or --disable-longlong was given. | |
3960 | if test "${enable_longlong+set}" = set; then | |
3961 | enableval="$enable_longlong" | |
a0b9e27f | 3962 | |
10f2d63a VZ |
3963 | if test "$enableval" = yes; then |
3964 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3965 | else | |
3966 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3967 | fi | |
a0b9e27f | 3968 | |
10f2d63a | 3969 | else |
a0b9e27f | 3970 | |
10f2d63a VZ |
3971 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3972 | if test "x$LINE" != x ; then | |
3973 | eval "DEFAULT_$LINE" | |
3974 | else | |
3975 | no_cache=1 | |
3976 | fi | |
3977 | ||
3978 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
a0b9e27f MB |
3979 | |
3980 | fi | |
10f2d63a VZ |
3981 | |
3982 | ||
3983 | eval "$ac_cv_use_longlong" | |
3984 | if test "$no_cache" != 1; then | |
3985 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3986 | fi | |
3987 | ||
3988 | if test "$wxUSE_LONGLONG" = yes; then | |
a0b9e27f | 3989 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3990 | else |
a0b9e27f | 3991 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3992 | fi |
a0b9e27f | 3993 | |
10f2d63a | 3994 | |
5005acfe VZ |
3995 | enablestring= |
3996 | echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6 | |
da494b40 | 3997 | echo "configure:3998: checking for --${enablestring:-enable}-geometry" >&5 |
e8f65ba6 RR |
3998 | no_cache=0 |
3999 | # Check whether --enable-geometry or --disable-geometry was given. | |
4000 | if test "${enable_geometry+set}" = set; then | |
4001 | enableval="$enable_geometry" | |
a0b9e27f | 4002 | |
e8f65ba6 RR |
4003 | if test "$enableval" = yes; then |
4004 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
4005 | else | |
4006 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
4007 | fi | |
a0b9e27f | 4008 | |
e8f65ba6 | 4009 | else |
a0b9e27f | 4010 | |
e8f65ba6 RR |
4011 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
4012 | if test "x$LINE" != x ; then | |
4013 | eval "DEFAULT_$LINE" | |
4014 | else | |
4015 | no_cache=1 | |
4016 | fi | |
4017 | ||
4018 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
a0b9e27f MB |
4019 | |
4020 | fi | |
e8f65ba6 RR |
4021 | |
4022 | ||
4023 | eval "$ac_cv_use_geometry" | |
4024 | if test "$no_cache" != 1; then | |
4025 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
4026 | fi | |
4027 | ||
4028 | if test "$wxUSE_GEOMETRY" = yes; then | |
a0b9e27f | 4029 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 4030 | else |
a0b9e27f | 4031 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 4032 | fi |
a0b9e27f | 4033 | |
e8f65ba6 | 4034 | |
5005acfe VZ |
4035 | enablestring= |
4036 | echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6 | |
da494b40 | 4037 | echo "configure:4038: checking for --${enablestring:-enable}-log" >&5 |
10f2d63a VZ |
4038 | no_cache=0 |
4039 | # Check whether --enable-log or --disable-log was given. | |
4040 | if test "${enable_log+set}" = set; then | |
4041 | enableval="$enable_log" | |
a0b9e27f | 4042 | |
10f2d63a VZ |
4043 | if test "$enableval" = yes; then |
4044 | ac_cv_use_log='wxUSE_LOG=yes' | |
4045 | else | |
4046 | ac_cv_use_log='wxUSE_LOG=no' | |
4047 | fi | |
a0b9e27f | 4048 | |
10f2d63a | 4049 | else |
a0b9e27f | 4050 | |
10f2d63a VZ |
4051 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
4052 | if test "x$LINE" != x ; then | |
4053 | eval "DEFAULT_$LINE" | |
4054 | else | |
4055 | no_cache=1 | |
4056 | fi | |
4057 | ||
4058 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
a0b9e27f MB |
4059 | |
4060 | fi | |
10f2d63a VZ |
4061 | |
4062 | ||
4063 | eval "$ac_cv_use_log" | |
4064 | if test "$no_cache" != 1; then | |
4065 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4066 | fi | |
4067 | ||
4068 | if test "$wxUSE_LOG" = yes; then | |
a0b9e27f | 4069 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4070 | else |
a0b9e27f | 4071 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4072 | fi |
a0b9e27f | 4073 | |
10f2d63a | 4074 | |
5005acfe VZ |
4075 | enablestring= |
4076 | echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6 | |
da494b40 | 4077 | echo "configure:4078: checking for --${enablestring:-enable}-streams" >&5 |
10f2d63a VZ |
4078 | no_cache=0 |
4079 | # Check whether --enable-streams or --disable-streams was given. | |
4080 | if test "${enable_streams+set}" = set; then | |
4081 | enableval="$enable_streams" | |
a0b9e27f | 4082 | |
10f2d63a VZ |
4083 | if test "$enableval" = yes; then |
4084 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4085 | else | |
4086 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4087 | fi | |
a0b9e27f | 4088 | |
10f2d63a | 4089 | else |
a0b9e27f | 4090 | |
10f2d63a VZ |
4091 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
4092 | if test "x$LINE" != x ; then | |
4093 | eval "DEFAULT_$LINE" | |
4094 | else | |
4095 | no_cache=1 | |
4096 | fi | |
4097 | ||
4098 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
a0b9e27f MB |
4099 | |
4100 | fi | |
10f2d63a VZ |
4101 | |
4102 | ||
4103 | eval "$ac_cv_use_streams" | |
4104 | if test "$no_cache" != 1; then | |
4105 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4106 | fi | |
4107 | ||
4108 | if test "$wxUSE_STREAMS" = yes; then | |
a0b9e27f | 4109 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4110 | else |
a0b9e27f | 4111 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4112 | fi |
a0b9e27f | 4113 | |
10f2d63a | 4114 | |
5005acfe VZ |
4115 | enablestring= |
4116 | echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6 | |
da494b40 | 4117 | echo "configure:4118: checking for --${enablestring:-enable}-file" >&5 |
10f2d63a VZ |
4118 | no_cache=0 |
4119 | # Check whether --enable-file or --disable-file was given. | |
4120 | if test "${enable_file+set}" = set; then | |
4121 | enableval="$enable_file" | |
a0b9e27f | 4122 | |
10f2d63a VZ |
4123 | if test "$enableval" = yes; then |
4124 | ac_cv_use_file='wxUSE_FILE=yes' | |
4125 | else | |
4126 | ac_cv_use_file='wxUSE_FILE=no' | |
4127 | fi | |
a0b9e27f | 4128 | |
10f2d63a | 4129 | else |
a0b9e27f | 4130 | |
10f2d63a VZ |
4131 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4132 | if test "x$LINE" != x ; then | |
4133 | eval "DEFAULT_$LINE" | |
4134 | else | |
4135 | no_cache=1 | |
4136 | fi | |
4137 | ||
4138 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
a0b9e27f MB |
4139 | |
4140 | fi | |
10f2d63a VZ |
4141 | |
4142 | ||
4143 | eval "$ac_cv_use_file" | |
4144 | if test "$no_cache" != 1; then | |
4145 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4146 | fi | |
4147 | ||
4148 | if test "$wxUSE_FILE" = yes; then | |
a0b9e27f | 4149 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4150 | else |
a0b9e27f | 4151 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4152 | fi |
a0b9e27f | 4153 | |
10f2d63a | 4154 | |
5005acfe VZ |
4155 | enablestring= |
4156 | echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6 | |
da494b40 | 4157 | echo "configure:4158: checking for --${enablestring:-enable}-ffile" >&5 |
10f2d63a | 4158 | no_cache=0 |
1e6feb95 VZ |
4159 | # Check whether --enable-ffile or --disable-ffile was given. |
4160 | if test "${enable_ffile+set}" = set; then | |
4161 | enableval="$enable_ffile" | |
a0b9e27f | 4162 | |
10f2d63a | 4163 | if test "$enableval" = yes; then |
1e6feb95 | 4164 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4165 | else |
1e6feb95 | 4166 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4167 | fi |
a0b9e27f | 4168 | |
10f2d63a | 4169 | else |
a0b9e27f | 4170 | |
1e6feb95 | 4171 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4172 | if test "x$LINE" != x ; then |
4173 | eval "DEFAULT_$LINE" | |
4174 | else | |
4175 | no_cache=1 | |
4176 | fi | |
4177 | ||
1e6feb95 | 4178 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
a0b9e27f MB |
4179 | |
4180 | fi | |
10f2d63a VZ |
4181 | |
4182 | ||
1e6feb95 | 4183 | eval "$ac_cv_use_ffile" |
10f2d63a | 4184 | if test "$no_cache" != 1; then |
1e6feb95 | 4185 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4186 | fi |
4187 | ||
1e6feb95 | 4188 | if test "$wxUSE_FFILE" = yes; then |
a0b9e27f | 4189 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4190 | else |
a0b9e27f | 4191 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4192 | fi |
a0b9e27f | 4193 | |
10f2d63a | 4194 | |
5005acfe VZ |
4195 | enablestring= |
4196 | echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6 | |
da494b40 | 4197 | echo "configure:4198: checking for --${enablestring:-enable}-textbuf" >&5 |
a3a584a7 VZ |
4198 | no_cache=0 |
4199 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4200 | if test "${enable_textbuf+set}" = set; then | |
4201 | enableval="$enable_textbuf" | |
a0b9e27f | 4202 | |
a3a584a7 VZ |
4203 | if test "$enableval" = yes; then |
4204 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4205 | else | |
4206 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4207 | fi | |
a0b9e27f | 4208 | |
a3a584a7 | 4209 | else |
a0b9e27f | 4210 | |
a3a584a7 VZ |
4211 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4212 | if test "x$LINE" != x ; then | |
4213 | eval "DEFAULT_$LINE" | |
4214 | else | |
4215 | no_cache=1 | |
4216 | fi | |
4217 | ||
4218 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a0b9e27f MB |
4219 | |
4220 | fi | |
a3a584a7 VZ |
4221 | |
4222 | ||
4223 | eval "$ac_cv_use_textbuf" | |
4224 | if test "$no_cache" != 1; then | |
4225 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4226 | fi | |
4227 | ||
4228 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
a0b9e27f | 4229 | echo "$ac_t""yes" 1>&6 |
a3a584a7 | 4230 | else |
a0b9e27f | 4231 | echo "$ac_t""no" 1>&6 |
a3a584a7 | 4232 | fi |
a0b9e27f | 4233 | |
a3a584a7 | 4234 | |
5005acfe VZ |
4235 | enablestring= |
4236 | echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6 | |
da494b40 | 4237 | echo "configure:4238: checking for --${enablestring:-enable}-textfile" >&5 |
10f2d63a | 4238 | no_cache=0 |
1e6feb95 VZ |
4239 | # Check whether --enable-textfile or --disable-textfile was given. |
4240 | if test "${enable_textfile+set}" = set; then | |
4241 | enableval="$enable_textfile" | |
a0b9e27f | 4242 | |
10f2d63a | 4243 | if test "$enableval" = yes; then |
1e6feb95 | 4244 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4245 | else |
1e6feb95 | 4246 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4247 | fi |
a0b9e27f | 4248 | |
10f2d63a | 4249 | else |
a0b9e27f | 4250 | |
1e6feb95 | 4251 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4252 | if test "x$LINE" != x ; then |
4253 | eval "DEFAULT_$LINE" | |
4254 | else | |
4255 | no_cache=1 | |
4256 | fi | |
4257 | ||
1e6feb95 | 4258 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
a0b9e27f MB |
4259 | |
4260 | fi | |
10f2d63a VZ |
4261 | |
4262 | ||
1e6feb95 | 4263 | eval "$ac_cv_use_textfile" |
10f2d63a | 4264 | if test "$no_cache" != 1; then |
1e6feb95 | 4265 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4266 | fi |
4267 | ||
1e6feb95 | 4268 | if test "$wxUSE_TEXTFILE" = yes; then |
a0b9e27f | 4269 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4270 | else |
a0b9e27f | 4271 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4272 | fi |
a0b9e27f | 4273 | |
10f2d63a | 4274 | |
5005acfe VZ |
4275 | enablestring= |
4276 | echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6 | |
da494b40 | 4277 | echo "configure:4278: checking for --${enablestring:-enable}-fontmap" >&5 |
10f2d63a | 4278 | no_cache=0 |
1e6feb95 VZ |
4279 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4280 | if test "${enable_fontmap+set}" = set; then | |
4281 | enableval="$enable_fontmap" | |
a0b9e27f | 4282 | |
10f2d63a | 4283 | if test "$enableval" = yes; then |
1e6feb95 | 4284 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4285 | else |
1e6feb95 | 4286 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4287 | fi |
a0b9e27f | 4288 | |
10f2d63a | 4289 | else |
a0b9e27f | 4290 | |
1e6feb95 | 4291 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4292 | if test "x$LINE" != x ; then |
4293 | eval "DEFAULT_$LINE" | |
4294 | else | |
4295 | no_cache=1 | |
4296 | fi | |
4297 | ||
1e6feb95 | 4298 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
a0b9e27f MB |
4299 | |
4300 | fi | |
10f2d63a VZ |
4301 | |
4302 | ||
1e6feb95 | 4303 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4304 | if test "$no_cache" != 1; then |
1e6feb95 | 4305 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4306 | fi |
4307 | ||
1e6feb95 | 4308 | if test "$wxUSE_FONTMAP" = yes; then |
a0b9e27f | 4309 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4310 | else |
a0b9e27f | 4311 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4312 | fi |
a0b9e27f | 4313 | |
10f2d63a | 4314 | |
5005acfe VZ |
4315 | enablestring= |
4316 | echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6 | |
da494b40 | 4317 | echo "configure:4318: checking for --${enablestring:-enable}-unicode" >&5 |
10f2d63a | 4318 | no_cache=0 |
1e6feb95 VZ |
4319 | # Check whether --enable-unicode or --disable-unicode was given. |
4320 | if test "${enable_unicode+set}" = set; then | |
4321 | enableval="$enable_unicode" | |
a0b9e27f | 4322 | |
1e6feb95 VZ |
4323 | if test "$enableval" = yes; then |
4324 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4325 | else | |
4326 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4327 | fi | |
a0b9e27f | 4328 | |
1e6feb95 | 4329 | else |
a0b9e27f | 4330 | |
1e6feb95 VZ |
4331 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4332 | if test "x$LINE" != x ; then | |
4333 | eval "DEFAULT_$LINE" | |
4334 | else | |
4335 | no_cache=1 | |
4336 | fi | |
4337 | ||
4338 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
a0b9e27f MB |
4339 | |
4340 | fi | |
1e6feb95 VZ |
4341 | |
4342 | ||
4343 | eval "$ac_cv_use_unicode" | |
4344 | if test "$no_cache" != 1; then | |
4345 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4346 | fi | |
4347 | ||
4348 | if test "$wxUSE_UNICODE" = yes; then | |
a0b9e27f | 4349 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4350 | else |
a0b9e27f | 4351 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4352 | fi |
a0b9e27f | 4353 | |
1e6feb95 | 4354 | |
5005acfe VZ |
4355 | enablestring= |
4356 | echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6 | |
da494b40 | 4357 | echo "configure:4358: checking for --${enablestring:-enable}-mslu" >&5 |
a72a4bfa VS |
4358 | no_cache=0 |
4359 | # Check whether --enable-mslu or --disable-mslu was given. | |
4360 | if test "${enable_mslu+set}" = set; then | |
4361 | enableval="$enable_mslu" | |
a0b9e27f | 4362 | |
a72a4bfa VS |
4363 | if test "$enableval" = yes; then |
4364 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4365 | else | |
4366 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4367 | fi | |
a0b9e27f | 4368 | |
a72a4bfa | 4369 | else |
a0b9e27f | 4370 | |
a72a4bfa VS |
4371 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
4372 | if test "x$LINE" != x ; then | |
4373 | eval "DEFAULT_$LINE" | |
4374 | else | |
4375 | no_cache=1 | |
4376 | fi | |
4377 | ||
4378 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a0b9e27f MB |
4379 | |
4380 | fi | |
a72a4bfa VS |
4381 | |
4382 | ||
4383 | eval "$ac_cv_use_mslu" | |
4384 | if test "$no_cache" != 1; then | |
4385 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4386 | fi | |
4387 | ||
4388 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
a0b9e27f | 4389 | echo "$ac_t""yes" 1>&6 |
a72a4bfa | 4390 | else |
a0b9e27f | 4391 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 4392 | fi |
a0b9e27f | 4393 | |
a72a4bfa | 4394 | |
5005acfe VZ |
4395 | enablestring= |
4396 | echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6 | |
da494b40 | 4397 | echo "configure:4398: checking for --${enablestring:-enable}-wxprintfv" >&5 |
1e6feb95 VZ |
4398 | no_cache=0 |
4399 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4400 | if test "${enable_wxprintfv+set}" = set; then | |
4401 | enableval="$enable_wxprintfv" | |
a0b9e27f | 4402 | |
1e6feb95 | 4403 | if test "$enableval" = yes; then |
10f2d63a VZ |
4404 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4405 | else | |
4406 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4407 | fi | |
a0b9e27f | 4408 | |
10f2d63a | 4409 | else |
a0b9e27f | 4410 | |
10f2d63a VZ |
4411 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4412 | if test "x$LINE" != x ; then | |
4413 | eval "DEFAULT_$LINE" | |
4414 | else | |
4415 | no_cache=1 | |
4416 | fi | |
4417 | ||
4418 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
a0b9e27f MB |
4419 | |
4420 | fi | |
10f2d63a VZ |
4421 | |
4422 | ||
4423 | eval "$ac_cv_use_wxprintfv" | |
4424 | if test "$no_cache" != 1; then | |
4425 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4426 | fi | |
4427 | ||
4428 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
a0b9e27f | 4429 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4430 | else |
a0b9e27f | 4431 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4432 | fi |
a0b9e27f | 4433 | |
10f2d63a | 4434 | |
5005acfe VZ |
4435 | enablestring= |
4436 | echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6 | |
da494b40 | 4437 | echo "configure:4438: checking for --${enablestring:-enable}-std_iostreams" >&5 |
10f2d63a VZ |
4438 | no_cache=0 |
4439 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4440 | if test "${enable_std_iostreams+set}" = set; then | |
4441 | enableval="$enable_std_iostreams" | |
a0b9e27f | 4442 | |
10f2d63a VZ |
4443 | if test "$enableval" = yes; then |
4444 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4445 | else | |
4446 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4447 | fi | |
a0b9e27f | 4448 | |
10f2d63a | 4449 | else |
a0b9e27f | 4450 | |
10f2d63a VZ |
4451 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4452 | if test "x$LINE" != x ; then | |
4453 | eval "DEFAULT_$LINE" | |
4454 | else | |
4455 | no_cache=1 | |
4456 | fi | |
4457 | ||
4458 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
a0b9e27f MB |
4459 | |
4460 | fi | |
10f2d63a VZ |
4461 | |
4462 | ||
4463 | eval "$ac_cv_use_std_iostreams" | |
4464 | if test "$no_cache" != 1; then | |
4465 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4466 | fi | |
4467 | ||
4468 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
a0b9e27f | 4469 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4470 | else |
a0b9e27f | 4471 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4472 | fi |
a0b9e27f | 4473 | |
10f2d63a | 4474 | |
5005acfe VZ |
4475 | enablestring= |
4476 | echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6 | |
da494b40 | 4477 | echo "configure:4478: checking for --${enablestring:-enable}-filesystem" >&5 |
24528b0c VS |
4478 | no_cache=0 |
4479 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4480 | if test "${enable_filesystem+set}" = set; then | |
4481 | enableval="$enable_filesystem" | |
a0b9e27f | 4482 | |
24528b0c VS |
4483 | if test "$enableval" = yes; then |
4484 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4485 | else | |
4486 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4487 | fi | |
a0b9e27f | 4488 | |
24528b0c | 4489 | else |
a0b9e27f | 4490 | |
24528b0c VS |
4491 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4492 | if test "x$LINE" != x ; then | |
4493 | eval "DEFAULT_$LINE" | |
4494 | else | |
4495 | no_cache=1 | |
4496 | fi | |
4497 | ||
4498 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
a0b9e27f MB |
4499 | |
4500 | fi | |
24528b0c VS |
4501 | |
4502 | ||
4503 | eval "$ac_cv_use_filesystem" | |
4504 | if test "$no_cache" != 1; then | |
4505 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4506 | fi | |
4507 | ||
4508 | if test "$wxUSE_FILESYSTEM" = yes; then | |
a0b9e27f | 4509 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4510 | else |
a0b9e27f | 4511 | echo "$ac_t""no" 1>&6 |
24528b0c | 4512 | fi |
a0b9e27f | 4513 | |
24528b0c | 4514 | |
5005acfe VZ |
4515 | enablestring= |
4516 | echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6 | |
da494b40 | 4517 | echo "configure:4518: checking for --${enablestring:-enable}-fs_inet" >&5 |
10f2d63a VZ |
4518 | no_cache=0 |
4519 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4520 | if test "${enable_fs_inet+set}" = set; then | |
4521 | enableval="$enable_fs_inet" | |
a0b9e27f | 4522 | |
10f2d63a VZ |
4523 | if test "$enableval" = yes; then |
4524 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4525 | else | |
4526 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4527 | fi | |
a0b9e27f | 4528 | |
10f2d63a | 4529 | else |
a0b9e27f | 4530 | |
10f2d63a VZ |
4531 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4532 | if test "x$LINE" != x ; then | |
4533 | eval "DEFAULT_$LINE" | |
4534 | else | |
4535 | no_cache=1 | |
4536 | fi | |
4537 | ||
4538 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
a0b9e27f MB |
4539 | |
4540 | fi | |
10f2d63a VZ |
4541 | |
4542 | ||
4543 | eval "$ac_cv_use_fs_inet" | |
4544 | if test "$no_cache" != 1; then | |
4545 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4546 | fi | |
4547 | ||
4548 | if test "$wxUSE_FS_INET" = yes; then | |
a0b9e27f | 4549 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4550 | else |
a0b9e27f | 4551 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4552 | fi |
a0b9e27f | 4553 | |
10f2d63a | 4554 | |
5005acfe VZ |
4555 | enablestring= |
4556 | echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6 | |
da494b40 | 4557 | echo "configure:4558: checking for --${enablestring:-enable}-fs_zip" >&5 |
10f2d63a VZ |
4558 | no_cache=0 |
4559 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4560 | if test "${enable_fs_zip+set}" = set; then | |
4561 | enableval="$enable_fs_zip" | |
a0b9e27f | 4562 | |
10f2d63a VZ |
4563 | if test "$enableval" = yes; then |
4564 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4565 | else | |
4566 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4567 | fi | |
a0b9e27f | 4568 | |
10f2d63a | 4569 | else |
a0b9e27f | 4570 | |
10f2d63a VZ |
4571 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4572 | if test "x$LINE" != x ; then | |
4573 | eval "DEFAULT_$LINE" | |
4574 | else | |
4575 | no_cache=1 | |
4576 | fi | |
4577 | ||
4578 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
a0b9e27f MB |
4579 | |
4580 | fi | |
10f2d63a VZ |
4581 | |
4582 | ||
4583 | eval "$ac_cv_use_fs_zip" | |
4584 | if test "$no_cache" != 1; then | |
4585 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4586 | fi | |
4587 | ||
4588 | if test "$wxUSE_FS_ZIP" = yes; then | |
a0b9e27f | 4589 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4590 | else |
a0b9e27f | 4591 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4592 | fi |
a0b9e27f | 4593 | |
10f2d63a | 4594 | |
5005acfe VZ |
4595 | enablestring= |
4596 | echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6 | |
da494b40 | 4597 | echo "configure:4598: checking for --${enablestring:-enable}-zipstream" >&5 |
10f2d63a VZ |
4598 | no_cache=0 |
4599 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4600 | if test "${enable_zipstream+set}" = set; then | |
4601 | enableval="$enable_zipstream" | |
a0b9e27f | 4602 | |
10f2d63a VZ |
4603 | if test "$enableval" = yes; then |
4604 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4605 | else | |
4606 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4607 | fi | |
a0b9e27f | 4608 | |
10f2d63a | 4609 | else |
a0b9e27f | 4610 | |
10f2d63a VZ |
4611 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4612 | if test "x$LINE" != x ; then | |
4613 | eval "DEFAULT_$LINE" | |
4614 | else | |
4615 | no_cache=1 | |
4616 | fi | |
4617 | ||
4618 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
a0b9e27f MB |
4619 | |
4620 | fi | |
10f2d63a VZ |
4621 | |
4622 | ||
4623 | eval "$ac_cv_use_zipstream" | |
4624 | if test "$no_cache" != 1; then | |
4625 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4626 | fi | |
4627 | ||
4628 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
a0b9e27f | 4629 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4630 | else |
a0b9e27f | 4631 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4632 | fi |
a0b9e27f | 4633 | |
8284b0c5 | 4634 | |
52127426 | 4635 | |
5005acfe VZ |
4636 | enablestring= |
4637 | echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6 | |
da494b40 | 4638 | echo "configure:4639: checking for --${enablestring:-enable}-catch_segvs" >&5 |
eb4efbdc VZ |
4639 | no_cache=0 |
4640 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4641 | if test "${enable_catch_segvs+set}" = set; then | |
4642 | enableval="$enable_catch_segvs" | |
a0b9e27f | 4643 | |
eb4efbdc VZ |
4644 | if test "$enableval" = yes; then |
4645 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4646 | else | |
4647 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4648 | fi | |
a0b9e27f | 4649 | |
eb4efbdc | 4650 | else |
a0b9e27f | 4651 | |
eb4efbdc VZ |
4652 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4653 | if test "x$LINE" != x ; then | |
4654 | eval "DEFAULT_$LINE" | |
4655 | else | |
4656 | no_cache=1 | |
4657 | fi | |
4658 | ||
4659 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
a0b9e27f MB |
4660 | |
4661 | fi | |
eb4efbdc VZ |
4662 | |
4663 | ||
4664 | eval "$ac_cv_use_catch_segvs" | |
4665 | if test "$no_cache" != 1; then | |
4666 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4667 | fi | |
4668 | ||
4669 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
a0b9e27f | 4670 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4671 | else |
a0b9e27f | 4672 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4673 | fi |
a0b9e27f | 4674 | |
eb4efbdc | 4675 | |
5005acfe VZ |
4676 | enablestring= |
4677 | echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6 | |
da494b40 | 4678 | echo "configure:4679: checking for --${enablestring:-enable}-snglinst" >&5 |
4f3c5f06 VZ |
4679 | no_cache=0 |
4680 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4681 | if test "${enable_snglinst+set}" = set; then | |
4682 | enableval="$enable_snglinst" | |
a0b9e27f | 4683 | |
4f3c5f06 VZ |
4684 | if test "$enableval" = yes; then |
4685 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4686 | else | |
4687 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4688 | fi | |
a0b9e27f | 4689 | |
4f3c5f06 | 4690 | else |
a0b9e27f | 4691 | |
4f3c5f06 VZ |
4692 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${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_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
a0b9e27f MB |
4700 | |
4701 | fi | |
4f3c5f06 VZ |
4702 | |
4703 | ||
4704 | eval "$ac_cv_use_snglinst" | |
4705 | if test "$no_cache" != 1; then | |
4706 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4707 | fi | |
4708 | ||
4709 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
a0b9e27f | 4710 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4711 | else |
a0b9e27f | 4712 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4713 | fi |
a0b9e27f | 4714 | |
52127426 | 4715 | |
8284b0c5 | 4716 | |
5005acfe VZ |
4717 | enablestring= |
4718 | echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6 | |
da494b40 | 4719 | echo "configure:4720: checking for --${enablestring:-enable}-mimetype" >&5 |
1e6feb95 VZ |
4720 | no_cache=0 |
4721 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4722 | if test "${enable_mimetype+set}" = set; then | |
4723 | enableval="$enable_mimetype" | |
a0b9e27f | 4724 | |
1e6feb95 VZ |
4725 | if test "$enableval" = yes; then |
4726 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4727 | else | |
4728 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4729 | fi | |
a0b9e27f | 4730 | |
1e6feb95 | 4731 | else |
a0b9e27f | 4732 | |
1e6feb95 VZ |
4733 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
4734 | if test "x$LINE" != x ; then | |
4735 | eval "DEFAULT_$LINE" | |
4736 | else | |
4737 | no_cache=1 | |
4738 | fi | |
4739 | ||
4740 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
a0b9e27f MB |
4741 | |
4742 | fi | |
1e6feb95 VZ |
4743 | |
4744 | ||
4745 | eval "$ac_cv_use_mimetype" | |
4746 | if test "$no_cache" != 1; then | |
4747 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4748 | fi | |
4749 | ||
4750 | if test "$wxUSE_MIMETYPE" = yes; then | |
a0b9e27f | 4751 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4752 | else |
a0b9e27f | 4753 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4754 | fi |
a0b9e27f | 4755 | |
1e6feb95 | 4756 | |
5005acfe VZ |
4757 | enablestring= |
4758 | echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6 | |
da494b40 | 4759 | echo "configure:4760: checking for --${enablestring:-enable}-system_options" >&5 |
3e44f09d VZ |
4760 | no_cache=0 |
4761 | # Check whether --enable-system_options or --disable-system_options was given. | |
4762 | if test "${enable_system_options+set}" = set; then | |
4763 | enableval="$enable_system_options" | |
a0b9e27f | 4764 | |
3e44f09d VZ |
4765 | if test "$enableval" = yes; then |
4766 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4767 | else | |
4768 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4769 | fi | |
a0b9e27f | 4770 | |
3e44f09d | 4771 | else |
a0b9e27f | 4772 | |
3e44f09d VZ |
4773 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
4774 | if test "x$LINE" != x ; then | |
4775 | eval "DEFAULT_$LINE" | |
4776 | else | |
4777 | no_cache=1 | |
4778 | fi | |
4779 | ||
4780 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
a0b9e27f MB |
4781 | |
4782 | fi | |
3e44f09d VZ |
4783 | |
4784 | ||
4785 | eval "$ac_cv_use_system_options" | |
4786 | if test "$no_cache" != 1; then | |
4787 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4788 | fi | |
4789 | ||
4790 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
a0b9e27f | 4791 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 4792 | else |
a0b9e27f | 4793 | echo "$ac_t""no" 1>&6 |
3e44f09d | 4794 | fi |
a0b9e27f | 4795 | |
8284b0c5 | 4796 | |
52127426 | 4797 | |
5005acfe VZ |
4798 | enablestring= |
4799 | echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6 | |
da494b40 | 4800 | echo "configure:4801: checking for --${enablestring:-enable}-url" >&5 |
4cdb0ab0 VS |
4801 | no_cache=0 |
4802 | # Check whether --enable-url or --disable-url was given. | |
4803 | if test "${enable_url+set}" = set; then | |
4804 | enableval="$enable_url" | |
a0b9e27f | 4805 | |
4cdb0ab0 VS |
4806 | if test "$enableval" = yes; then |
4807 | ac_cv_use_url='wxUSE_URL=yes' | |
4808 | else | |
4809 | ac_cv_use_url='wxUSE_URL=no' | |
4810 | fi | |
a0b9e27f | 4811 | |
4cdb0ab0 | 4812 | else |
a0b9e27f | 4813 | |
4cdb0ab0 VS |
4814 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
4815 | if test "x$LINE" != x ; then | |
4816 | eval "DEFAULT_$LINE" | |
4817 | else | |
4818 | no_cache=1 | |
4819 | fi | |
4820 | ||
4821 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
a0b9e27f MB |
4822 | |
4823 | fi | |
4cdb0ab0 VS |
4824 | |
4825 | ||
4826 | eval "$ac_cv_use_url" | |
4827 | if test "$no_cache" != 1; then | |
4828 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4829 | fi | |
4830 | ||
4831 | if test "$wxUSE_URL" = yes; then | |
a0b9e27f | 4832 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4833 | else |
a0b9e27f | 4834 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4835 | fi |
a0b9e27f | 4836 | |
4cdb0ab0 | 4837 | |
5005acfe VZ |
4838 | enablestring= |
4839 | echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6 | |
da494b40 | 4840 | echo "configure:4841: checking for --${enablestring:-enable}-protocol" >&5 |
4cdb0ab0 VS |
4841 | no_cache=0 |
4842 | # Check whether --enable-protocol or --disable-protocol was given. | |
4843 | if test "${enable_protocol+set}" = set; then | |
4844 | enableval="$enable_protocol" | |
a0b9e27f | 4845 | |
4cdb0ab0 VS |
4846 | if test "$enableval" = yes; then |
4847 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4848 | else | |
4849 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4850 | fi | |
a0b9e27f | 4851 | |
4cdb0ab0 | 4852 | else |
a0b9e27f | 4853 | |
4cdb0ab0 VS |
4854 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4855 | if test "x$LINE" != x ; then | |
4856 | eval "DEFAULT_$LINE" | |
4857 | else | |
4858 | no_cache=1 | |
4859 | fi | |
4860 | ||
4861 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
4862 | |
4863 | fi | |
4cdb0ab0 VS |
4864 | |
4865 | ||
4866 | eval "$ac_cv_use_protocol" | |
4867 | if test "$no_cache" != 1; then | |
4868 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4869 | fi | |
4870 | ||
4871 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 4872 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4873 | else |
a0b9e27f | 4874 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4875 | fi |
a0b9e27f | 4876 | |
4cdb0ab0 | 4877 | |
5005acfe VZ |
4878 | enablestring= |
4879 | echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6 | |
da494b40 | 4880 | echo "configure:4881: checking for --${enablestring:-enable}-protocol_http" >&5 |
4cdb0ab0 VS |
4881 | no_cache=0 |
4882 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4883 | if test "${enable_protocol_http+set}" = set; then | |
4884 | enableval="$enable_protocol_http" | |
a0b9e27f | 4885 | |
4cdb0ab0 VS |
4886 | if test "$enableval" = yes; then |
4887 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4888 | else | |
4889 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4890 | fi | |
a0b9e27f | 4891 | |
4cdb0ab0 | 4892 | else |
a0b9e27f | 4893 | |
4cdb0ab0 VS |
4894 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${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_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
4902 | |
4903 | fi | |
4cdb0ab0 VS |
4904 | |
4905 | ||
4906 | eval "$ac_cv_use_protocol_http" | |
4907 | if test "$no_cache" != 1; then | |
4908 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4909 | fi | |
4910 | ||
4911 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 4912 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4913 | else |
a0b9e27f | 4914 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4915 | fi |
a0b9e27f | 4916 | |
4cdb0ab0 | 4917 | |
5005acfe VZ |
4918 | enablestring= |
4919 | echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6 | |
da494b40 | 4920 | echo "configure:4921: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
4cdb0ab0 VS |
4921 | no_cache=0 |
4922 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4923 | if test "${enable_protocol_ftp+set}" = set; then | |
4924 | enableval="$enable_protocol_ftp" | |
a0b9e27f | 4925 | |
4cdb0ab0 VS |
4926 | if test "$enableval" = yes; then |
4927 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4928 | else | |
4929 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4930 | fi | |
a0b9e27f | 4931 | |
4cdb0ab0 | 4932 | else |
a0b9e27f | 4933 | |
4cdb0ab0 VS |
4934 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4935 | if test "x$LINE" != x ; then | |
4936 | eval "DEFAULT_$LINE" | |
4937 | else | |
4938 | no_cache=1 | |
4939 | fi | |
4940 | ||
4941 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
4942 | |
4943 | fi | |
4cdb0ab0 VS |
4944 | |
4945 | ||
4946 | eval "$ac_cv_use_protocol_ftp" | |
4947 | if test "$no_cache" != 1; then | |
4948 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4949 | fi | |
4950 | ||
4951 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 4952 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4953 | else |
a0b9e27f | 4954 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4955 | fi |
a0b9e27f | 4956 | |
4cdb0ab0 | 4957 | |
5005acfe VZ |
4958 | enablestring= |
4959 | echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6 | |
da494b40 | 4960 | echo "configure:4961: checking for --${enablestring:-enable}-protocol_file" >&5 |
4cdb0ab0 VS |
4961 | no_cache=0 |
4962 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4963 | if test "${enable_protocol_file+set}" = set; then | |
4964 | enableval="$enable_protocol_file" | |
a0b9e27f | 4965 | |
4cdb0ab0 VS |
4966 | if test "$enableval" = yes; then |
4967 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4968 | else | |
4969 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4970 | fi | |
a0b9e27f | 4971 | |
4cdb0ab0 | 4972 | else |
a0b9e27f | 4973 | |
4cdb0ab0 VS |
4974 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4975 | if test "x$LINE" != x ; then | |
4976 | eval "DEFAULT_$LINE" | |
4977 | else | |
4978 | no_cache=1 | |
4979 | fi | |
4980 | ||
4981 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
4982 | |
4983 | fi | |
4cdb0ab0 VS |
4984 | |
4985 | ||
4986 | eval "$ac_cv_use_protocol_file" | |
4987 | if test "$no_cache" != 1; then | |
4988 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4989 | fi | |
4990 | ||
4991 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 4992 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4993 | else |
a0b9e27f | 4994 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4995 | fi |
a0b9e27f | 4996 | |
52127426 | 4997 | |
8284b0c5 MB |
4998 | |
4999 | ||
5000 | ||
5005acfe VZ |
5001 | enablestring= |
5002 | echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6 | |
da494b40 | 5003 | echo "configure:5004: checking for --${enablestring:-enable}-threads" >&5 |
10f2d63a VZ |
5004 | no_cache=0 |
5005 | # Check whether --enable-threads or --disable-threads was given. | |
5006 | if test "${enable_threads+set}" = set; then | |
5007 | enableval="$enable_threads" | |
a0b9e27f | 5008 | |
10f2d63a VZ |
5009 | if test "$enableval" = yes; then |
5010 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
5011 | else | |
5012 | ac_cv_use_threads='wxUSE_THREADS=no' | |
5013 | fi | |
a0b9e27f | 5014 | |
10f2d63a | 5015 | else |
a0b9e27f | 5016 | |
10f2d63a VZ |
5017 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
5018 | if test "x$LINE" != x ; then | |
5019 | eval "DEFAULT_$LINE" | |
5020 | else | |
5021 | no_cache=1 | |
5022 | fi | |
5023 | ||
5024 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
a0b9e27f MB |
5025 | |
5026 | fi | |
10f2d63a VZ |
5027 | |
5028 | ||
5029 | eval "$ac_cv_use_threads" | |
5030 | if test "$no_cache" != 1; then | |
5031 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5032 | fi | |
5033 | ||
5034 | if test "$wxUSE_THREADS" = yes; then | |
a0b9e27f | 5035 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5036 | else |
a0b9e27f | 5037 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5038 | fi |
a0b9e27f | 5039 | |
10f2d63a | 5040 | |
b12915c1 VZ |
5041 | if test "$wxUSE_GUI" = "yes"; then |
5042 | ||
8284b0c5 MB |
5043 | |
5044 | ||
5005acfe VZ |
5045 | enablestring= |
5046 | echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6 | |
da494b40 | 5047 | echo "configure:5048: checking for --${enablestring:-enable}-docview" >&5 |
10f2d63a VZ |
5048 | no_cache=0 |
5049 | # Check whether --enable-docview or --disable-docview was given. | |
5050 | if test "${enable_docview+set}" = set; then | |
5051 | enableval="$enable_docview" | |
a0b9e27f | 5052 | |
10f2d63a VZ |
5053 | if test "$enableval" = yes; then |
5054 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5055 | else | |
5056 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5057 | fi | |
a0b9e27f | 5058 | |
10f2d63a | 5059 | else |
a0b9e27f | 5060 | |
10f2d63a VZ |
5061 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5062 | if test "x$LINE" != x ; then | |
5063 | eval "DEFAULT_$LINE" | |
5064 | else | |
5065 | no_cache=1 | |
5066 | fi | |
5067 | ||
5068 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
a0b9e27f MB |
5069 | |
5070 | fi | |
10f2d63a VZ |
5071 | |
5072 | ||
5073 | eval "$ac_cv_use_docview" | |
5074 | if test "$no_cache" != 1; then | |
5075 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5076 | fi | |
5077 | ||
5078 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
a0b9e27f | 5079 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5080 | else |
a0b9e27f | 5081 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5082 | fi |
a0b9e27f | 5083 | |
10f2d63a | 5084 | |
5005acfe VZ |
5085 | enablestring= |
5086 | echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6 | |
da494b40 | 5087 | echo "configure:5088: checking for --${enablestring:-enable}-help" >&5 |
10f2d63a VZ |
5088 | no_cache=0 |
5089 | # Check whether --enable-help or --disable-help was given. | |
5090 | if test "${enable_help+set}" = set; then | |
5091 | enableval="$enable_help" | |
a0b9e27f | 5092 | |
10f2d63a VZ |
5093 | if test "$enableval" = yes; then |
5094 | ac_cv_use_help='wxUSE_HELP=yes' | |
5095 | else | |
5096 | ac_cv_use_help='wxUSE_HELP=no' | |
5097 | fi | |
a0b9e27f | 5098 | |
10f2d63a | 5099 | else |
a0b9e27f | 5100 | |
10f2d63a VZ |
5101 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5102 | if test "x$LINE" != x ; then | |
5103 | eval "DEFAULT_$LINE" | |
5104 | else | |
5105 | no_cache=1 | |
5106 | fi | |
5107 | ||
5108 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
a0b9e27f MB |
5109 | |
5110 | fi | |
10f2d63a VZ |
5111 | |
5112 | ||
5113 | eval "$ac_cv_use_help" | |
5114 | if test "$no_cache" != 1; then | |
5115 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5116 | fi | |
5117 | ||
5118 | if test "$wxUSE_HELP" = yes; then | |
a0b9e27f | 5119 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5120 | else |
a0b9e27f | 5121 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5122 | fi |
a0b9e27f | 5123 | |
10f2d63a | 5124 | |
5005acfe VZ |
5125 | enablestring= |
5126 | echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6 | |
da494b40 | 5127 | echo "configure:5128: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
29fd3c0c VS |
5128 | no_cache=0 |
5129 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5130 | if test "${enable_mshtmlhelp+set}" = set; then | |
5131 | enableval="$enable_mshtmlhelp" | |
a0b9e27f | 5132 | |
29fd3c0c VS |
5133 | if test "$enableval" = yes; then |
5134 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5135 | else | |
5136 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5137 | fi | |
a0b9e27f | 5138 | |
29fd3c0c | 5139 | else |
a0b9e27f | 5140 | |
29fd3c0c VS |
5141 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5142 | if test "x$LINE" != x ; then | |
5143 | eval "DEFAULT_$LINE" | |
5144 | else | |
5145 | no_cache=1 | |
5146 | fi | |
5147 | ||
5148 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
a0b9e27f MB |
5149 | |
5150 | fi | |
29fd3c0c VS |
5151 | |
5152 | ||
5153 | eval "$ac_cv_use_mshtmlhelp" | |
5154 | if test "$no_cache" != 1; then | |
5155 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5156 | fi | |
5157 | ||
5158 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
a0b9e27f | 5159 | echo "$ac_t""yes" 1>&6 |
29fd3c0c | 5160 | else |
a0b9e27f | 5161 | echo "$ac_t""no" 1>&6 |
29fd3c0c | 5162 | fi |
a0b9e27f | 5163 | |
29fd3c0c | 5164 | |
5005acfe VZ |
5165 | enablestring= |
5166 | echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6 | |
da494b40 | 5167 | echo "configure:5168: checking for --${enablestring:-enable}-html" >&5 |
3379ed37 VZ |
5168 | no_cache=0 |
5169 | # Check whether --enable-html or --disable-html was given. | |
5170 | if test "${enable_html+set}" = set; then | |
5171 | enableval="$enable_html" | |
a0b9e27f | 5172 | |
3379ed37 VZ |
5173 | if test "$enableval" = yes; then |
5174 | ac_cv_use_html='wxUSE_HTML=yes' | |
5175 | else | |
5176 | ac_cv_use_html='wxUSE_HTML=no' | |
5177 | fi | |
a0b9e27f | 5178 | |
3379ed37 | 5179 | else |
a0b9e27f | 5180 | |
3379ed37 VZ |
5181 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
5182 | if test "x$LINE" != x ; then | |
5183 | eval "DEFAULT_$LINE" | |
5184 | else | |
5185 | no_cache=1 | |
5186 | fi | |
5187 | ||
5188 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
a0b9e27f MB |
5189 | |
5190 | fi | |
3379ed37 VZ |
5191 | |
5192 | ||
5193 | eval "$ac_cv_use_html" | |
5194 | if test "$no_cache" != 1; then | |
5195 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5196 | fi | |
5197 | ||
5198 | if test "$wxUSE_HTML" = yes; then | |
a0b9e27f | 5199 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5200 | else |
a0b9e27f | 5201 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5202 | fi |
a0b9e27f | 5203 | |
3379ed37 | 5204 | |
5005acfe VZ |
5205 | enablestring= |
5206 | echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6 | |
da494b40 | 5207 | echo "configure:5208: checking for --${enablestring:-enable}-htmlhelp" >&5 |
3379ed37 VZ |
5208 | no_cache=0 |
5209 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5210 | if test "${enable_htmlhelp+set}" = set; then | |
5211 | enableval="$enable_htmlhelp" | |
a0b9e27f | 5212 | |
3379ed37 VZ |
5213 | if test "$enableval" = yes; then |
5214 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5215 | else | |
5216 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5217 | fi | |
a0b9e27f | 5218 | |
3379ed37 | 5219 | else |
a0b9e27f | 5220 | |
3379ed37 VZ |
5221 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5222 | if test "x$LINE" != x ; then | |
5223 | eval "DEFAULT_$LINE" | |
5224 | else | |
5225 | no_cache=1 | |
5226 | fi | |
5227 | ||
5228 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
a0b9e27f MB |
5229 | |
5230 | fi | |
3379ed37 VZ |
5231 | |
5232 | ||
5233 | eval "$ac_cv_use_htmlhelp" | |
5234 | if test "$no_cache" != 1; then | |
5235 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5236 | fi | |
5237 | ||
5238 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
a0b9e27f | 5239 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5240 | else |
a0b9e27f | 5241 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5242 | fi |
a0b9e27f | 5243 | |
3379ed37 | 5244 | |
5005acfe VZ |
5245 | enablestring= |
5246 | echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6 | |
da494b40 | 5247 | echo "configure:5248: checking for --${enablestring:-enable}-constraints" >&5 |
10f2d63a VZ |
5248 | no_cache=0 |
5249 | # Check whether --enable-constraints or --disable-constraints was given. | |
5250 | if test "${enable_constraints+set}" = set; then | |
5251 | enableval="$enable_constraints" | |
a0b9e27f | 5252 | |
10f2d63a VZ |
5253 | if test "$enableval" = yes; then |
5254 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5255 | else | |
5256 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5257 | fi | |
a0b9e27f | 5258 | |
10f2d63a | 5259 | else |
a0b9e27f | 5260 | |
10f2d63a VZ |
5261 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5262 | if test "x$LINE" != x ; then | |
5263 | eval "DEFAULT_$LINE" | |
5264 | else | |
5265 | no_cache=1 | |
5266 | fi | |
5267 | ||
5268 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
a0b9e27f MB |
5269 | |
5270 | fi | |
10f2d63a VZ |
5271 | |
5272 | ||
5273 | eval "$ac_cv_use_constraints" | |
5274 | if test "$no_cache" != 1; then | |
5275 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5276 | fi | |
5277 | ||
5278 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
a0b9e27f | 5279 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5280 | else |
a0b9e27f | 5281 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5282 | fi |
a0b9e27f | 5283 | |
10f2d63a | 5284 | |
5005acfe VZ |
5285 | enablestring= |
5286 | echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6 | |
da494b40 | 5287 | echo "configure:5288: checking for --${enablestring:-enable}-printarch" >&5 |
10f2d63a VZ |
5288 | no_cache=0 |
5289 | # Check whether --enable-printarch or --disable-printarch was given. | |
5290 | if test "${enable_printarch+set}" = set; then | |
5291 | enableval="$enable_printarch" | |
a0b9e27f | 5292 | |
10f2d63a VZ |
5293 | if test "$enableval" = yes; then |
5294 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5295 | else | |
5296 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5297 | fi | |
a0b9e27f | 5298 | |
10f2d63a | 5299 | else |
a0b9e27f | 5300 | |
10f2d63a VZ |
5301 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5302 | if test "x$LINE" != x ; then | |
5303 | eval "DEFAULT_$LINE" | |
5304 | else | |
5305 | no_cache=1 | |
5306 | fi | |
5307 | ||
5308 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
a0b9e27f MB |
5309 | |
5310 | fi | |
10f2d63a VZ |
5311 | |
5312 | ||
5313 | eval "$ac_cv_use_printarch" | |
5314 | if test "$no_cache" != 1; then | |
5315 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5316 | fi | |
5317 | ||
5318 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
a0b9e27f | 5319 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5320 | else |
a0b9e27f | 5321 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5322 | fi |
a0b9e27f | 5323 | |
10f2d63a | 5324 | |
5005acfe VZ |
5325 | enablestring= |
5326 | echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6 | |
da494b40 | 5327 | echo "configure:5328: checking for --${enablestring:-enable}-mdi" >&5 |
10f2d63a VZ |
5328 | no_cache=0 |
5329 | # Check whether --enable-mdi or --disable-mdi was given. | |
5330 | if test "${enable_mdi+set}" = set; then | |
5331 | enableval="$enable_mdi" | |
a0b9e27f | 5332 | |
10f2d63a VZ |
5333 | if test "$enableval" = yes; then |
5334 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5335 | else | |
5336 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5337 | fi | |
a0b9e27f | 5338 | |
10f2d63a | 5339 | else |
a0b9e27f | 5340 | |
10f2d63a VZ |
5341 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5342 | if test "x$LINE" != x ; then | |
5343 | eval "DEFAULT_$LINE" | |
5344 | else | |
5345 | no_cache=1 | |
5346 | fi | |
5347 | ||
5348 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
a0b9e27f MB |
5349 | |
5350 | fi | |
10f2d63a VZ |
5351 | |
5352 | ||
5353 | eval "$ac_cv_use_mdi" | |
5354 | if test "$no_cache" != 1; then | |
5355 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5356 | fi | |
5357 | ||
5358 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
a0b9e27f | 5359 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5360 | else |
a0b9e27f | 5361 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5362 | fi |
a0b9e27f | 5363 | |
698dcdb6 | 5364 | |
5005acfe VZ |
5365 | enablestring= |
5366 | echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6 | |
da494b40 | 5367 | echo "configure:5368: checking for --${enablestring:-enable}-loggui" >&5 |
1e6feb95 VZ |
5368 | no_cache=0 |
5369 | # Check whether --enable-loggui or --disable-loggui was given. | |
5370 | if test "${enable_loggui+set}" = set; then | |
5371 | enableval="$enable_loggui" | |
a0b9e27f | 5372 | |
1e6feb95 VZ |
5373 | if test "$enableval" = yes; then |
5374 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5375 | else | |
5376 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5377 | fi | |
a0b9e27f | 5378 | |
1e6feb95 | 5379 | else |
a0b9e27f | 5380 | |
1e6feb95 VZ |
5381 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
5382 | if test "x$LINE" != x ; then | |
5383 | eval "DEFAULT_$LINE" | |
5384 | else | |
5385 | no_cache=1 | |
5386 | fi | |
5387 | ||
5388 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
a0b9e27f MB |
5389 | |
5390 | fi | |
1e6feb95 VZ |
5391 | |
5392 | ||
5393 | eval "$ac_cv_use_loggui" | |
5394 | if test "$no_cache" != 1; then | |
5395 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5396 | fi | |
5397 | ||
5398 | if test "$wxUSE_LOGGUI" = yes; then | |
a0b9e27f | 5399 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5400 | else |
a0b9e27f | 5401 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5402 | fi |
a0b9e27f | 5403 | |
1e6feb95 | 5404 | |
5005acfe VZ |
5405 | enablestring= |
5406 | echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6 | |
da494b40 | 5407 | echo "configure:5408: checking for --${enablestring:-enable}-logwin" >&5 |
1e6feb95 VZ |
5408 | no_cache=0 |
5409 | # Check whether --enable-logwin or --disable-logwin was given. | |
5410 | if test "${enable_logwin+set}" = set; then | |
5411 | enableval="$enable_logwin" | |
a0b9e27f | 5412 | |
1e6feb95 VZ |
5413 | if test "$enableval" = yes; then |
5414 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5415 | else | |
5416 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5417 | fi | |
a0b9e27f | 5418 | |
1e6feb95 | 5419 | else |
a0b9e27f | 5420 | |
1e6feb95 VZ |
5421 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
5422 | if test "x$LINE" != x ; then | |
5423 | eval "DEFAULT_$LINE" | |
5424 | else | |
5425 | no_cache=1 | |
5426 | fi | |
5427 | ||
5428 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
a0b9e27f MB |
5429 | |
5430 | fi | |
1e6feb95 VZ |
5431 | |
5432 | ||
5433 | eval "$ac_cv_use_logwin" | |
5434 | if test "$no_cache" != 1; then | |
5435 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5436 | fi | |
5437 | ||
5438 | if test "$wxUSE_LOGWINDOW" = yes; then | |
a0b9e27f | 5439 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5440 | else |
a0b9e27f | 5441 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5442 | fi |
a0b9e27f | 5443 | |
1e6feb95 | 5444 | |
5005acfe VZ |
5445 | enablestring= |
5446 | echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6 | |
da494b40 | 5447 | echo "configure:5448: checking for --${enablestring:-enable}-logdialog" >&5 |
69d27ff7 MB |
5448 | no_cache=0 |
5449 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5450 | if test "${enable_logdialog+set}" = set; then | |
5451 | enableval="$enable_logdialog" | |
a0b9e27f | 5452 | |
69d27ff7 MB |
5453 | if test "$enableval" = yes; then |
5454 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5455 | else | |
5456 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5457 | fi | |
a0b9e27f | 5458 | |
69d27ff7 | 5459 | else |
a0b9e27f | 5460 | |
69d27ff7 MB |
5461 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
5462 | if test "x$LINE" != x ; then | |
5463 | eval "DEFAULT_$LINE" | |
5464 | else | |
5465 | no_cache=1 | |
5466 | fi | |
5467 | ||
5468 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
a0b9e27f MB |
5469 | |
5470 | fi | |
69d27ff7 MB |
5471 | |
5472 | ||
5473 | eval "$ac_cv_use_logdialog" | |
5474 | if test "$no_cache" != 1; then | |
5475 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5476 | fi | |
5477 | ||
5478 | if test "$wxUSE_LOGDIALOG" = yes; then | |
a0b9e27f | 5479 | echo "$ac_t""yes" 1>&6 |
69d27ff7 | 5480 | else |
a0b9e27f | 5481 | echo "$ac_t""no" 1>&6 |
69d27ff7 | 5482 | fi |
a0b9e27f | 5483 | |
8284b0c5 | 5484 | |
52127426 | 5485 | |
5005acfe VZ |
5486 | enablestring= |
5487 | echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6 | |
da494b40 | 5488 | echo "configure:5489: checking for --${enablestring:-enable}-postscript" >&5 |
10f2d63a VZ |
5489 | no_cache=0 |
5490 | # Check whether --enable-postscript or --disable-postscript was given. | |
5491 | if test "${enable_postscript+set}" = set; then | |
5492 | enableval="$enable_postscript" | |
a0b9e27f | 5493 | |
10f2d63a VZ |
5494 | if test "$enableval" = yes; then |
5495 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5496 | else | |
5497 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5498 | fi | |
a0b9e27f | 5499 | |
10f2d63a | 5500 | else |
a0b9e27f | 5501 | |
10f2d63a VZ |
5502 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5503 | if test "x$LINE" != x ; then | |
5504 | eval "DEFAULT_$LINE" | |
5505 | else | |
5506 | no_cache=1 | |
5507 | fi | |
5508 | ||
5509 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
a0b9e27f MB |
5510 | |
5511 | fi | |
10f2d63a VZ |
5512 | |
5513 | ||
5514 | eval "$ac_cv_use_postscript" | |
5515 | if test "$no_cache" != 1; then | |
5516 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5517 | fi | |
5518 | ||
5519 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
a0b9e27f | 5520 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5521 | else |
a0b9e27f | 5522 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5523 | fi |
a0b9e27f | 5524 | |
8284b0c5 MB |
5525 | |
5526 | ||
52127426 | 5527 | |
8284b0c5 | 5528 | |
5005acfe VZ |
5529 | enablestring= |
5530 | echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6 | |
da494b40 | 5531 | echo "configure:5532: checking for --${enablestring:-enable}-prologio" >&5 |
10f2d63a VZ |
5532 | no_cache=0 |
5533 | # Check whether --enable-prologio or --disable-prologio was given. | |
5534 | if test "${enable_prologio+set}" = set; then | |
5535 | enableval="$enable_prologio" | |
a0b9e27f | 5536 | |
10f2d63a VZ |
5537 | if test "$enableval" = yes; then |
5538 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5539 | else | |
5540 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5541 | fi | |
a0b9e27f | 5542 | |
10f2d63a | 5543 | else |
a0b9e27f | 5544 | |
10f2d63a VZ |
5545 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5546 | if test "x$LINE" != x ; then | |
5547 | eval "DEFAULT_$LINE" | |
5548 | else | |
5549 | no_cache=1 | |
5550 | fi | |
5551 | ||
5552 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
a0b9e27f MB |
5553 | |
5554 | fi | |
10f2d63a VZ |
5555 | |
5556 | ||
5557 | eval "$ac_cv_use_prologio" | |
5558 | if test "$no_cache" != 1; then | |
5559 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5560 | fi | |
5561 | ||
5562 | if test "$wxUSE_PROLOGIO" = yes; then | |
a0b9e27f | 5563 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5564 | else |
a0b9e27f | 5565 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5566 | fi |
a0b9e27f | 5567 | |
10f2d63a | 5568 | |
5005acfe VZ |
5569 | enablestring= |
5570 | echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6 | |
da494b40 | 5571 | echo "configure:5572: checking for --${enablestring:-enable}-resources" >&5 |
10f2d63a VZ |
5572 | no_cache=0 |
5573 | # Check whether --enable-resources or --disable-resources was given. | |
5574 | if test "${enable_resources+set}" = set; then | |
5575 | enableval="$enable_resources" | |
a0b9e27f | 5576 | |
10f2d63a VZ |
5577 | if test "$enableval" = yes; then |
5578 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5579 | else | |
5580 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5581 | fi | |
a0b9e27f | 5582 | |
10f2d63a | 5583 | else |
a0b9e27f | 5584 | |
10f2d63a VZ |
5585 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5586 | if test "x$LINE" != x ; then | |
5587 | eval "DEFAULT_$LINE" | |
5588 | else | |
5589 | no_cache=1 | |
5590 | fi | |
5591 | ||
5592 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
a0b9e27f MB |
5593 | |
5594 | fi | |
10f2d63a VZ |
5595 | |
5596 | ||
5597 | eval "$ac_cv_use_resources" | |
5598 | if test "$no_cache" != 1; then | |
5599 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5600 | fi | |
5601 | ||
5602 | if test "$wxUSE_RESOURCES" = yes; then | |
a0b9e27f | 5603 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5604 | else |
a0b9e27f | 5605 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5606 | fi |
a0b9e27f | 5607 | |
8284b0c5 | 5608 | |
52127426 | 5609 | |
5005acfe VZ |
5610 | enablestring= |
5611 | echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6 | |
da494b40 | 5612 | echo "configure:5613: checking for --${enablestring:-enable}-xresources" >&5 |
10f2d63a VZ |
5613 | no_cache=0 |
5614 | # Check whether --enable-xresources or --disable-xresources was given. | |
5615 | if test "${enable_xresources+set}" = set; then | |
5616 | enableval="$enable_xresources" | |
a0b9e27f | 5617 | |
10f2d63a VZ |
5618 | if test "$enableval" = yes; then |
5619 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5620 | else | |
5621 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5622 | fi | |
a0b9e27f | 5623 | |
10f2d63a | 5624 | else |
a0b9e27f | 5625 | |
10f2d63a VZ |
5626 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5627 | if test "x$LINE" != x ; then | |
5628 | eval "DEFAULT_$LINE" | |
5629 | else | |
5630 | no_cache=1 | |
5631 | fi | |
5632 | ||
5633 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
a0b9e27f MB |
5634 | |
5635 | fi | |
10f2d63a VZ |
5636 | |
5637 | ||
5638 | eval "$ac_cv_use_xresources" | |
5639 | if test "$no_cache" != 1; then | |
5640 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5641 | fi | |
5642 | ||
5643 | if test "$wxUSE_X_RESOURCES" = yes; then | |
a0b9e27f | 5644 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5645 | else |
a0b9e27f | 5646 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5647 | fi |
a0b9e27f | 5648 | |
8284b0c5 MB |
5649 | |
5650 | ||
52127426 | 5651 | |
5005acfe VZ |
5652 | enablestring= |
5653 | echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6 | |
da494b40 | 5654 | echo "configure:5655: checking for --${enablestring:-enable}-clipboard" >&5 |
10f2d63a VZ |
5655 | no_cache=0 |
5656 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5657 | if test "${enable_clipboard+set}" = set; then | |
5658 | enableval="$enable_clipboard" | |
a0b9e27f | 5659 | |
10f2d63a VZ |
5660 | if test "$enableval" = yes; then |
5661 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5662 | else | |
5663 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5664 | fi | |
a0b9e27f | 5665 | |
10f2d63a | 5666 | else |
a0b9e27f | 5667 | |
10f2d63a VZ |
5668 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5669 | if test "x$LINE" != x ; then | |
5670 | eval "DEFAULT_$LINE" | |
5671 | else | |
5672 | no_cache=1 | |
5673 | fi | |
5674 | ||
5675 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
a0b9e27f MB |
5676 | |
5677 | fi | |
10f2d63a VZ |
5678 | |
5679 | ||
5680 | eval "$ac_cv_use_clipboard" | |
5681 | if test "$no_cache" != 1; then | |
5682 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5683 | fi | |
5684 | ||
5685 | if test "$wxUSE_CLIPBOARD" = yes; then | |
a0b9e27f | 5686 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5687 | else |
a0b9e27f | 5688 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5689 | fi |
a0b9e27f | 5690 | |
10f2d63a | 5691 | |
5005acfe VZ |
5692 | enablestring= |
5693 | echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6 | |
da494b40 | 5694 | echo "configure:5695: checking for --${enablestring:-enable}-dnd" >&5 |
10f2d63a VZ |
5695 | no_cache=0 |
5696 | # Check whether --enable-dnd or --disable-dnd was given. | |
5697 | if test "${enable_dnd+set}" = set; then | |
5698 | enableval="$enable_dnd" | |
a0b9e27f | 5699 | |
10f2d63a VZ |
5700 | if test "$enableval" = yes; then |
5701 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5702 | else | |
5703 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5704 | fi | |
a0b9e27f | 5705 | |
10f2d63a | 5706 | else |
a0b9e27f | 5707 | |
10f2d63a VZ |
5708 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5709 | if test "x$LINE" != x ; then | |
5710 | eval "DEFAULT_$LINE" | |
5711 | else | |
5712 | no_cache=1 | |
5713 | fi | |
5714 | ||
5715 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
a0b9e27f MB |
5716 | |
5717 | fi | |
10f2d63a VZ |
5718 | |
5719 | ||
5720 | eval "$ac_cv_use_dnd" | |
5721 | if test "$no_cache" != 1; then | |
5722 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5723 | fi | |
5724 | ||
5725 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
a0b9e27f | 5726 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5727 | else |
a0b9e27f | 5728 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5729 | fi |
a0b9e27f | 5730 | |
10f2d63a | 5731 | |
5005acfe VZ |
5732 | enablestring= |
5733 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
da494b40 | 5734 | echo "configure:5735: checking for --${enablestring:-enable}-metafile" >&5 |
b64f0a5f RL |
5735 | no_cache=0 |
5736 | # Check whether --enable-metafile or --disable-metafile was given. | |
5737 | if test "${enable_metafile+set}" = set; then | |
5738 | enableval="$enable_metafile" | |
a0b9e27f | 5739 | |
b64f0a5f RL |
5740 | if test "$enableval" = yes; then |
5741 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5742 | else | |
5743 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5744 | fi | |
a0b9e27f | 5745 | |
b64f0a5f | 5746 | else |
a0b9e27f | 5747 | |
b64f0a5f RL |
5748 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5749 | if test "x$LINE" != x ; then | |
5750 | eval "DEFAULT_$LINE" | |
5751 | else | |
5752 | no_cache=1 | |
5753 | fi | |
5754 | ||
5755 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
5756 | |
5757 | fi | |
b64f0a5f RL |
5758 | |
5759 | ||
5760 | eval "$ac_cv_use_metafile" | |
5761 | if test "$no_cache" != 1; then | |
5762 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5763 | fi | |
5764 | ||
5765 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 5766 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5767 | else |
a0b9e27f | 5768 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5769 | fi |
a0b9e27f | 5770 | |
52127426 | 5771 | |
8284b0c5 | 5772 | |
5005acfe VZ |
5773 | enablestring= |
5774 | echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6 | |
da494b40 | 5775 | echo "configure:5776: checking for --${enablestring:-enable}-treelayout" >&5 |
10f2d63a | 5776 | no_cache=0 |
24176f2c GD |
5777 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5778 | if test "${enable_treelayout+set}" = set; then | |
5779 | enableval="$enable_treelayout" | |
a0b9e27f | 5780 | |
10f2d63a | 5781 | if test "$enableval" = yes; then |
24176f2c | 5782 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5783 | else |
24176f2c | 5784 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5785 | fi |
a0b9e27f | 5786 | |
10f2d63a | 5787 | else |
a0b9e27f | 5788 | |
24176f2c | 5789 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5790 | if test "x$LINE" != x ; then |
5791 | eval "DEFAULT_$LINE" | |
5792 | else | |
5793 | no_cache=1 | |
5794 | fi | |
5795 | ||
24176f2c | 5796 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
a0b9e27f MB |
5797 | |
5798 | fi | |
10f2d63a VZ |
5799 | |
5800 | ||
24176f2c | 5801 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5802 | if test "$no_cache" != 1; then |
24176f2c | 5803 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5804 | fi |
5805 | ||
24176f2c | 5806 | if test "$wxUSE_TREELAYOUT" = yes; then |
a0b9e27f | 5807 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5808 | else |
a0b9e27f | 5809 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5810 | fi |
a0b9e27f | 5811 | |
8284b0c5 | 5812 | |
52127426 | 5813 | |
8284b0c5 | 5814 | |
5005acfe VZ |
5815 | enablestring= |
5816 | echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6 | |
da494b40 | 5817 | echo "configure:5818: checking for --${enablestring:-enable}-controls" >&5 |
10f2d63a VZ |
5818 | no_cache=0 |
5819 | # Check whether --enable-controls or --disable-controls was given. | |
5820 | if test "${enable_controls+set}" = set; then | |
5821 | enableval="$enable_controls" | |
a0b9e27f | 5822 | |
10f2d63a VZ |
5823 | if test "$enableval" = yes; then |
5824 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5825 | else | |
5826 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5827 | fi | |
a0b9e27f | 5828 | |
10f2d63a | 5829 | else |
a0b9e27f | 5830 | |
10f2d63a VZ |
5831 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5832 | if test "x$LINE" != x ; then | |
5833 | eval "DEFAULT_$LINE" | |
5834 | else | |
5835 | no_cache=1 | |
5836 | fi | |
5837 | ||
5838 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
a0b9e27f MB |
5839 | |
5840 | fi | |
10f2d63a VZ |
5841 | |
5842 | ||
5843 | eval "$ac_cv_use_controls" | |
5844 | if test "$no_cache" != 1; then | |
5845 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5846 | fi | |
5847 | ||
5848 | if test "$wxUSE_CONTROLS" = yes; then | |
a0b9e27f | 5849 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5850 | else |
a0b9e27f | 5851 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5852 | fi |
a0b9e27f | 5853 | |
10f2d63a VZ |
5854 | |
5855 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5856 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5857 | DEFAULT_wxUSE_BMPBUTTON=yes |
5858 | DEFAULT_wxUSE_BUTTON=yes | |
5859 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5860 | DEFAULT_wxUSE_CARET=yes |
5861 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5862 | DEFAULT_wxUSE_CHECKBOX=yes |
5863 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5864 | DEFAULT_wxUSE_CHOICE=yes | |
5865 | DEFAULT_wxUSE_GAUGE=yes | |
5866 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5867 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5868 | DEFAULT_wxUSE_IMAGLIST=yes |
5869 | DEFAULT_wxUSE_LISTBOX=yes | |
5870 | DEFAULT_wxUSE_LISTCTRL=yes | |
5871 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5872 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5873 | DEFAULT_wxUSE_RADIOBOX=yes |
5874 | DEFAULT_wxUSE_RADIOBTN=yes | |
5875 | DEFAULT_wxUSE_SASH=yes | |
5876 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5877 | DEFAULT_wxUSE_SLIDER=yes | |
5878 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5879 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5880 | DEFAULT_wxUSE_SPLITTER=yes |
5881 | DEFAULT_wxUSE_STATBMP=yes | |
5882 | DEFAULT_wxUSE_STATBOX=yes | |
5883 | DEFAULT_wxUSE_STATLINE=yes | |
5884 | DEFAULT_wxUSE_STATUSBAR=yes | |
5885 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5886 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5887 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5888 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5889 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5890 | DEFAULT_wxUSE_TOOLTIPS=yes |
5891 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5892 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5893 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5894 | elif test "$wxUSE_CONTROLS" = "no"; then |
5895 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5896 | DEFAULT_wxUSE_BMPBUTTON=no |
5897 | DEFAULT_wxUSE_BUTTON=no | |
5898 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5899 | DEFAULT_wxUSE_CARET=no |
5900 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5901 | DEFAULT_wxUSE_CHECKBOX=no |
5902 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5903 | DEFAULT_wxUSE_CHOICE=no | |
5904 | DEFAULT_wxUSE_GAUGE=no | |
5905 | DEFAULT_wxUSE_GRID=no | |
5906 | DEFAULT_wxUSE_NEW_GRID=no | |
5907 | DEFAULT_wxUSE_IMAGLIST=no | |
5908 | DEFAULT_wxUSE_LISTBOX=no | |
5909 | DEFAULT_wxUSE_LISTCTRL=no | |
5910 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5911 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5912 | DEFAULT_wxUSE_RADIOBOX=no |
5913 | DEFAULT_wxUSE_RADIOBTN=no | |
5914 | DEFAULT_wxUSE_SASH=no | |
5915 | DEFAULT_wxUSE_SCROLLBAR=no | |
5916 | DEFAULT_wxUSE_SLIDER=no | |
5917 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5918 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5919 | DEFAULT_wxUSE_SPLITTER=no |
5920 | DEFAULT_wxUSE_STATBMP=no | |
5921 | DEFAULT_wxUSE_STATBOX=no | |
5922 | DEFAULT_wxUSE_STATLINE=no | |
5923 | DEFAULT_wxUSE_STATUSBAR=no | |
5924 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5925 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5926 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5927 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5928 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5929 | DEFAULT_wxUSE_TOOLTIPS=no |
5930 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5931 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5932 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5933 | fi |
5934 | ||
8284b0c5 | 5935 | |
5005acfe VZ |
5936 | enablestring= |
5937 | echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6 | |
da494b40 | 5938 | echo "configure:5939: checking for --${enablestring:-enable}-accel" >&5 |
10f2d63a VZ |
5939 | no_cache=0 |
5940 | # Check whether --enable-accel or --disable-accel was given. | |
5941 | if test "${enable_accel+set}" = set; then | |
5942 | enableval="$enable_accel" | |
a0b9e27f | 5943 | |
10f2d63a VZ |
5944 | if test "$enableval" = yes; then |
5945 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5946 | else | |
5947 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5948 | fi | |
a0b9e27f | 5949 | |
10f2d63a | 5950 | else |
a0b9e27f | 5951 | |
10f2d63a VZ |
5952 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5953 | if test "x$LINE" != x ; then | |
5954 | eval "DEFAULT_$LINE" | |
5955 | else | |
5956 | no_cache=1 | |
5957 | fi | |
5958 | ||
5959 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
a0b9e27f MB |
5960 | |
5961 | fi | |
10f2d63a VZ |
5962 | |
5963 | ||
5964 | eval "$ac_cv_use_accel" | |
5965 | if test "$no_cache" != 1; then | |
5966 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5967 | fi | |
5968 | ||
5969 | if test "$wxUSE_ACCEL" = yes; then | |
a0b9e27f | 5970 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5971 | else |
a0b9e27f | 5972 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5973 | fi |
a0b9e27f | 5974 | |
10f2d63a | 5975 | |
5005acfe VZ |
5976 | enablestring= |
5977 | echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6 | |
da494b40 | 5978 | echo "configure:5979: checking for --${enablestring:-enable}-button" >&5 |
10f2d63a | 5979 | no_cache=0 |
1e6feb95 VZ |
5980 | # Check whether --enable-button or --disable-button was given. |
5981 | if test "${enable_button+set}" = set; then | |
5982 | enableval="$enable_button" | |
a0b9e27f | 5983 | |
10f2d63a | 5984 | if test "$enableval" = yes; then |
1e6feb95 | 5985 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5986 | else |
1e6feb95 | 5987 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5988 | fi |
a0b9e27f | 5989 | |
10f2d63a | 5990 | else |
a0b9e27f | 5991 | |
1e6feb95 | 5992 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5993 | if test "x$LINE" != x ; then |
5994 | eval "DEFAULT_$LINE" | |
5995 | else | |
5996 | no_cache=1 | |
5997 | fi | |
5998 | ||
1e6feb95 | 5999 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
a0b9e27f MB |
6000 | |
6001 | fi | |
10f2d63a VZ |
6002 | |
6003 | ||
1e6feb95 | 6004 | eval "$ac_cv_use_button" |
10f2d63a | 6005 | if test "$no_cache" != 1; then |
1e6feb95 | 6006 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6007 | fi |
6008 | ||
1e6feb95 | 6009 | if test "$wxUSE_BUTTON" = yes; then |
a0b9e27f | 6010 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6011 | else |
a0b9e27f | 6012 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6013 | fi |
a0b9e27f | 6014 | |
10f2d63a | 6015 | |
5005acfe VZ |
6016 | enablestring= |
6017 | echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6 | |
da494b40 | 6018 | echo "configure:6019: checking for --${enablestring:-enable}-bmpbutton" >&5 |
10f2d63a VZ |
6019 | no_cache=0 |
6020 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6021 | if test "${enable_bmpbutton+set}" = set; then | |
6022 | enableval="$enable_bmpbutton" | |
a0b9e27f | 6023 | |
10f2d63a VZ |
6024 | if test "$enableval" = yes; then |
6025 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6026 | else | |
6027 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6028 | fi | |
a0b9e27f | 6029 | |
10f2d63a | 6030 | else |
a0b9e27f | 6031 | |
10f2d63a VZ |
6032 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
6033 | if test "x$LINE" != x ; then | |
6034 | eval "DEFAULT_$LINE" | |
6035 | else | |
6036 | no_cache=1 | |
6037 | fi | |
6038 | ||
6039 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
a0b9e27f MB |
6040 | |
6041 | fi | |
10f2d63a VZ |
6042 | |
6043 | ||
6044 | eval "$ac_cv_use_bmpbutton" | |
6045 | if test "$no_cache" != 1; then | |
6046 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6047 | fi | |
6048 | ||
6049 | if test "$wxUSE_BMPBUTTON" = yes; then | |
a0b9e27f | 6050 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6051 | else |
a0b9e27f | 6052 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6053 | fi |
a0b9e27f | 6054 | |
10f2d63a | 6055 | |
5005acfe VZ |
6056 | enablestring= |
6057 | echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6 | |
da494b40 | 6058 | echo "configure:6059: checking for --${enablestring:-enable}-calendar" >&5 |
1e6feb95 VZ |
6059 | no_cache=0 |
6060 | # Check whether --enable-calendar or --disable-calendar was given. | |
6061 | if test "${enable_calendar+set}" = set; then | |
6062 | enableval="$enable_calendar" | |
a0b9e27f | 6063 | |
1e6feb95 VZ |
6064 | if test "$enableval" = yes; then |
6065 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6066 | else | |
6067 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6068 | fi | |
a0b9e27f | 6069 | |
1e6feb95 | 6070 | else |
a0b9e27f | 6071 | |
1e6feb95 VZ |
6072 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6073 | if test "x$LINE" != x ; then | |
6074 | eval "DEFAULT_$LINE" | |
6075 | else | |
6076 | no_cache=1 | |
6077 | fi | |
6078 | ||
6079 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
a0b9e27f MB |
6080 | |
6081 | fi | |
1e6feb95 VZ |
6082 | |
6083 | ||
6084 | eval "$ac_cv_use_calendar" | |
6085 | if test "$no_cache" != 1; then | |
6086 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6087 | fi | |
6088 | ||
6089 | if test "$wxUSE_CALCTRL" = yes; then | |
a0b9e27f | 6090 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6091 | else |
a0b9e27f | 6092 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6093 | fi |
a0b9e27f | 6094 | |
1e6feb95 | 6095 | |
5005acfe VZ |
6096 | enablestring= |
6097 | echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6 | |
da494b40 | 6098 | echo "configure:6099: checking for --${enablestring:-enable}-caret" >&5 |
1e6feb95 VZ |
6099 | no_cache=0 |
6100 | # Check whether --enable-caret or --disable-caret was given. | |
6101 | if test "${enable_caret+set}" = set; then | |
6102 | enableval="$enable_caret" | |
a0b9e27f | 6103 | |
1e6feb95 VZ |
6104 | if test "$enableval" = yes; then |
6105 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6106 | else | |
6107 | ac_cv_use_caret='wxUSE_CARET=no' | |
6108 | fi | |
a0b9e27f | 6109 | |
1e6feb95 | 6110 | else |
a0b9e27f | 6111 | |
1e6feb95 VZ |
6112 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6113 | if test "x$LINE" != x ; then | |
6114 | eval "DEFAULT_$LINE" | |
6115 | else | |
6116 | no_cache=1 | |
6117 | fi | |
6118 | ||
6119 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
a0b9e27f MB |
6120 | |
6121 | fi | |
1e6feb95 VZ |
6122 | |
6123 | ||
6124 | eval "$ac_cv_use_caret" | |
6125 | if test "$no_cache" != 1; then | |
6126 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6127 | fi | |
6128 | ||
6129 | if test "$wxUSE_CARET" = yes; then | |
a0b9e27f | 6130 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6131 | else |
a0b9e27f | 6132 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6133 | fi |
a0b9e27f | 6134 | |
1e6feb95 | 6135 | |
5005acfe VZ |
6136 | enablestring= |
6137 | echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6 | |
da494b40 | 6138 | echo "configure:6139: checking for --${enablestring:-enable}-checkbox" >&5 |
10f2d63a VZ |
6139 | no_cache=0 |
6140 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6141 | if test "${enable_checkbox+set}" = set; then | |
6142 | enableval="$enable_checkbox" | |
a0b9e27f | 6143 | |
10f2d63a VZ |
6144 | if test "$enableval" = yes; then |
6145 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6146 | else | |
6147 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6148 | fi | |
a0b9e27f | 6149 | |
10f2d63a | 6150 | else |
a0b9e27f | 6151 | |
10f2d63a VZ |
6152 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6153 | if test "x$LINE" != x ; then | |
6154 | eval "DEFAULT_$LINE" | |
6155 | else | |
6156 | no_cache=1 | |
6157 | fi | |
6158 | ||
6159 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
a0b9e27f MB |
6160 | |
6161 | fi | |
10f2d63a VZ |
6162 | |
6163 | ||
6164 | eval "$ac_cv_use_checkbox" | |
6165 | if test "$no_cache" != 1; then | |
6166 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6167 | fi | |
6168 | ||
6169 | if test "$wxUSE_CHECKBOX" = yes; then | |
a0b9e27f | 6170 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6171 | else |
a0b9e27f | 6172 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6173 | fi |
a0b9e27f | 6174 | |
10f2d63a | 6175 | |
5005acfe VZ |
6176 | enablestring= |
6177 | echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6 | |
da494b40 | 6178 | echo "configure:6179: checking for --${enablestring:-enable}-checklst" >&5 |
10f2d63a VZ |
6179 | no_cache=0 |
6180 | # Check whether --enable-checklst or --disable-checklst was given. | |
6181 | if test "${enable_checklst+set}" = set; then | |
6182 | enableval="$enable_checklst" | |
a0b9e27f | 6183 | |
10f2d63a VZ |
6184 | if test "$enableval" = yes; then |
6185 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6186 | else | |
6187 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6188 | fi | |
a0b9e27f | 6189 | |
10f2d63a | 6190 | else |
a0b9e27f | 6191 | |
10f2d63a VZ |
6192 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6193 | if test "x$LINE" != x ; then | |
6194 | eval "DEFAULT_$LINE" | |
6195 | else | |
6196 | no_cache=1 | |
6197 | fi | |
6198 | ||
6199 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
a0b9e27f MB |
6200 | |
6201 | fi | |
10f2d63a VZ |
6202 | |
6203 | ||
6204 | eval "$ac_cv_use_checklst" | |
6205 | if test "$no_cache" != 1; then | |
6206 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6207 | fi | |
6208 | ||
6209 | if test "$wxUSE_CHECKLST" = yes; then | |
a0b9e27f | 6210 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6211 | else |
a0b9e27f | 6212 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6213 | fi |
a0b9e27f | 6214 | |
10f2d63a | 6215 | |
5005acfe VZ |
6216 | enablestring= |
6217 | echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6 | |
da494b40 | 6218 | echo "configure:6219: checking for --${enablestring:-enable}-choice" >&5 |
10f2d63a VZ |
6219 | no_cache=0 |
6220 | # Check whether --enable-choice or --disable-choice was given. | |
6221 | if test "${enable_choice+set}" = set; then | |
6222 | enableval="$enable_choice" | |
a0b9e27f | 6223 | |
10f2d63a VZ |
6224 | if test "$enableval" = yes; then |
6225 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6226 | else | |
6227 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6228 | fi | |
a0b9e27f | 6229 | |
10f2d63a | 6230 | else |
a0b9e27f | 6231 | |
10f2d63a VZ |
6232 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6233 | if test "x$LINE" != x ; then | |
6234 | eval "DEFAULT_$LINE" | |
6235 | else | |
6236 | no_cache=1 | |
6237 | fi | |
6238 | ||
6239 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
a0b9e27f MB |
6240 | |
6241 | fi | |
10f2d63a VZ |
6242 | |
6243 | ||
6244 | eval "$ac_cv_use_choice" | |
6245 | if test "$no_cache" != 1; then | |
6246 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6247 | fi | |
6248 | ||
6249 | if test "$wxUSE_CHOICE" = yes; then | |
a0b9e27f | 6250 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6251 | else |
a0b9e27f | 6252 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6253 | fi |
a0b9e27f | 6254 | |
10f2d63a | 6255 | |
5005acfe VZ |
6256 | enablestring= |
6257 | echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6 | |
da494b40 | 6258 | echo "configure:6259: checking for --${enablestring:-enable}-combobox" >&5 |
10f2d63a VZ |
6259 | no_cache=0 |
6260 | # Check whether --enable-combobox or --disable-combobox was given. | |
6261 | if test "${enable_combobox+set}" = set; then | |
6262 | enableval="$enable_combobox" | |
a0b9e27f | 6263 | |
10f2d63a VZ |
6264 | if test "$enableval" = yes; then |
6265 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6266 | else | |
6267 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6268 | fi | |
a0b9e27f | 6269 | |
10f2d63a | 6270 | else |
a0b9e27f | 6271 | |
10f2d63a VZ |
6272 | LINE=`grep "wxUSE_COMBOBOX" ${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_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
a0b9e27f MB |
6280 | |
6281 | fi | |
10f2d63a VZ |
6282 | |
6283 | ||
6284 | eval "$ac_cv_use_combobox" | |
6285 | if test "$no_cache" != 1; then | |
6286 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6287 | fi | |
6288 | ||
6289 | if test "$wxUSE_COMBOBOX" = yes; then | |
a0b9e27f | 6290 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6291 | else |
a0b9e27f | 6292 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6293 | fi |
a0b9e27f | 6294 | |
10f2d63a | 6295 | |
da494b40 MB |
6296 | enablestring= |
6297 | echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6 | |
6298 | echo "configure:6299: checking for --${enablestring:-enable}-display" >&5 | |
6299 | no_cache=0 | |
6300 | # Check whether --enable-display or --disable-display was given. | |
6301 | if test "${enable_display+set}" = set; then | |
6302 | enableval="$enable_display" | |
6303 | ||
6304 | if test "$enableval" = yes; then | |
6305 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
6306 | else | |
6307 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
6308 | fi | |
6309 | ||
6310 | else | |
6311 | ||
6312 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
6313 | if test "x$LINE" != x ; then | |
6314 | eval "DEFAULT_$LINE" | |
6315 | else | |
6316 | no_cache=1 | |
6317 | fi | |
6318 | ||
6319 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
6320 | ||
6321 | fi | |
6322 | ||
6323 | ||
6324 | eval "$ac_cv_use_display" | |
6325 | if test "$no_cache" != 1; then | |
6326 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
6327 | fi | |
6328 | ||
6329 | if test "$wxUSE_DISPLAY" = yes; then | |
6330 | echo "$ac_t""yes" 1>&6 | |
6331 | else | |
6332 | echo "$ac_t""no" 1>&6 | |
6333 | fi | |
6334 | ||
6335 | ||
5005acfe VZ |
6336 | enablestring= |
6337 | echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6 | |
da494b40 | 6338 | echo "configure:6339: checking for --${enablestring:-enable}-gauge" >&5 |
10f2d63a VZ |
6339 | no_cache=0 |
6340 | # Check whether --enable-gauge or --disable-gauge was given. | |
6341 | if test "${enable_gauge+set}" = set; then | |
6342 | enableval="$enable_gauge" | |
a0b9e27f | 6343 | |
10f2d63a VZ |
6344 | if test "$enableval" = yes; then |
6345 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6346 | else | |
6347 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6348 | fi | |
a0b9e27f | 6349 | |
10f2d63a | 6350 | else |
a0b9e27f | 6351 | |
10f2d63a VZ |
6352 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6353 | if test "x$LINE" != x ; then | |
6354 | eval "DEFAULT_$LINE" | |
6355 | else | |
6356 | no_cache=1 | |
6357 | fi | |
6358 | ||
6359 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
a0b9e27f MB |
6360 | |
6361 | fi | |
10f2d63a VZ |
6362 | |
6363 | ||
6364 | eval "$ac_cv_use_gauge" | |
6365 | if test "$no_cache" != 1; then | |
6366 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6367 | fi | |
6368 | ||
6369 | if test "$wxUSE_GAUGE" = yes; then | |
a0b9e27f | 6370 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6371 | else |
a0b9e27f | 6372 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6373 | fi |
a0b9e27f | 6374 | |
10f2d63a | 6375 | |
5005acfe VZ |
6376 | enablestring= |
6377 | echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6 | |
da494b40 | 6378 | echo "configure:6379: checking for --${enablestring:-enable}-grid" >&5 |
10f2d63a VZ |
6379 | no_cache=0 |
6380 | # Check whether --enable-grid or --disable-grid was given. | |
6381 | if test "${enable_grid+set}" = set; then | |
6382 | enableval="$enable_grid" | |
a0b9e27f | 6383 | |
10f2d63a VZ |
6384 | if test "$enableval" = yes; then |
6385 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6386 | else | |
6387 | ac_cv_use_grid='wxUSE_GRID=no' | |
6388 | fi | |
a0b9e27f | 6389 | |
10f2d63a | 6390 | else |
a0b9e27f | 6391 | |
10f2d63a VZ |
6392 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6393 | if test "x$LINE" != x ; then | |
6394 | eval "DEFAULT_$LINE" | |
6395 | else | |
6396 | no_cache=1 | |
6397 | fi | |
6398 | ||
6399 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
a0b9e27f MB |
6400 | |
6401 | fi | |
10f2d63a VZ |
6402 | |
6403 | ||
6404 | eval "$ac_cv_use_grid" | |
6405 | if test "$no_cache" != 1; then | |
6406 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6407 | fi | |
6408 | ||
6409 | if test "$wxUSE_GRID" = yes; then | |
a0b9e27f | 6410 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6411 | else |
a0b9e27f | 6412 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6413 | fi |
a0b9e27f | 6414 | |
10f2d63a | 6415 | |
5005acfe VZ |
6416 | enablestring= |
6417 | echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6 | |
da494b40 | 6418 | echo "configure:6419: checking for --${enablestring:-enable}-newgrid" >&5 |
10f2d63a VZ |
6419 | no_cache=0 |
6420 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6421 | if test "${enable_newgrid+set}" = set; then | |
6422 | enableval="$enable_newgrid" | |
a0b9e27f | 6423 | |
10f2d63a VZ |
6424 | if test "$enableval" = yes; then |
6425 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6426 | else | |
6427 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6428 | fi | |
a0b9e27f | 6429 | |
10f2d63a | 6430 | else |
a0b9e27f | 6431 | |
10f2d63a VZ |
6432 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6433 | if test "x$LINE" != x ; then | |
6434 | eval "DEFAULT_$LINE" | |
6435 | else | |
6436 | no_cache=1 | |
6437 | fi | |
6438 | ||
6439 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
a0b9e27f MB |
6440 | |
6441 | fi | |
10f2d63a VZ |
6442 | |
6443 | ||
6444 | eval "$ac_cv_use_newgrid" | |
6445 | if test "$no_cache" != 1; then | |
6446 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6447 | fi | |
6448 | ||
6449 | if test "$wxUSE_NEW_GRID" = yes; then | |
a0b9e27f | 6450 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6451 | else |
a0b9e27f | 6452 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6453 | fi |
a0b9e27f | 6454 | |
10f2d63a | 6455 | |
5005acfe VZ |
6456 | enablestring= |
6457 | echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6 | |
da494b40 | 6458 | echo "configure:6459: checking for --${enablestring:-enable}-imaglist" >&5 |
10f2d63a VZ |
6459 | no_cache=0 |
6460 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6461 | if test "${enable_imaglist+set}" = set; then | |
6462 | enableval="$enable_imaglist" | |
a0b9e27f | 6463 | |
10f2d63a VZ |
6464 | if test "$enableval" = yes; then |
6465 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6466 | else | |
6467 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6468 | fi | |
a0b9e27f | 6469 | |
10f2d63a | 6470 | else |
a0b9e27f | 6471 | |
10f2d63a VZ |
6472 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6473 | if test "x$LINE" != x ; then | |
6474 | eval "DEFAULT_$LINE" | |
6475 | else | |
6476 | no_cache=1 | |
6477 | fi | |
6478 | ||
6479 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
a0b9e27f MB |
6480 | |
6481 | fi | |
10f2d63a VZ |
6482 | |
6483 | ||
6484 | eval "$ac_cv_use_imaglist" | |
6485 | if test "$no_cache" != 1; then | |
6486 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6487 | fi | |
6488 | ||
6489 | if test "$wxUSE_IMAGLIST" = yes; then | |
a0b9e27f | 6490 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6491 | else |
a0b9e27f | 6492 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6493 | fi |
a0b9e27f | 6494 | |
10f2d63a | 6495 | |
5005acfe VZ |
6496 | enablestring= |
6497 | echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6 | |
da494b40 | 6498 | echo "configure:6499: checking for --${enablestring:-enable}-listbox" >&5 |
10f2d63a VZ |
6499 | no_cache=0 |
6500 | # Check whether --enable-listbox or --disable-listbox was given. | |
6501 | if test "${enable_listbox+set}" = set; then | |
6502 | enableval="$enable_listbox" | |
a0b9e27f | 6503 | |
10f2d63a VZ |
6504 | if test "$enableval" = yes; then |
6505 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6506 | else | |
6507 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6508 | fi | |
a0b9e27f | 6509 | |
10f2d63a | 6510 | else |
a0b9e27f | 6511 | |
10f2d63a VZ |
6512 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6513 | if test "x$LINE" != x ; then | |
6514 | eval "DEFAULT_$LINE" | |
6515 | else | |
6516 | no_cache=1 | |
6517 | fi | |
6518 | ||
6519 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
a0b9e27f MB |
6520 | |
6521 | fi | |
10f2d63a VZ |
6522 | |
6523 | ||
6524 | eval "$ac_cv_use_listbox" | |
6525 | if test "$no_cache" != 1; then | |
6526 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6527 | fi | |
6528 | ||
6529 | if test "$wxUSE_LISTBOX" = yes; then | |
a0b9e27f | 6530 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6531 | else |
a0b9e27f | 6532 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6533 | fi |
a0b9e27f | 6534 | |
10f2d63a | 6535 | |
5005acfe VZ |
6536 | enablestring= |
6537 | echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6 | |
da494b40 | 6538 | echo "configure:6539: checking for --${enablestring:-enable}-listctrl" >&5 |
10f2d63a VZ |
6539 | no_cache=0 |
6540 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6541 | if test "${enable_listctrl+set}" = set; then | |
6542 | enableval="$enable_listctrl" | |
a0b9e27f | 6543 | |
10f2d63a VZ |
6544 | if test "$enableval" = yes; then |
6545 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6546 | else | |
6547 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6548 | fi | |
a0b9e27f | 6549 | |
10f2d63a | 6550 | else |
a0b9e27f | 6551 | |
10f2d63a VZ |
6552 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6553 | if test "x$LINE" != x ; then | |
6554 | eval "DEFAULT_$LINE" | |
6555 | else | |
6556 | no_cache=1 | |
6557 | fi | |
6558 | ||
6559 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
a0b9e27f MB |
6560 | |
6561 | fi | |
10f2d63a VZ |
6562 | |
6563 | ||
6564 | eval "$ac_cv_use_listctrl" | |
6565 | if test "$no_cache" != 1; then | |
6566 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6567 | fi | |
6568 | ||
6569 | if test "$wxUSE_LISTCTRL" = yes; then | |
a0b9e27f | 6570 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6571 | else |
a0b9e27f | 6572 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6573 | fi |
a0b9e27f | 6574 | |
10f2d63a | 6575 | |
5005acfe VZ |
6576 | enablestring= |
6577 | echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6 | |
da494b40 | 6578 | echo "configure:6579: checking for --${enablestring:-enable}-notebook" >&5 |
10f2d63a VZ |
6579 | no_cache=0 |
6580 | # Check whether --enable-notebook or --disable-notebook was given. | |
6581 | if test "${enable_notebook+set}" = set; then | |
6582 | enableval="$enable_notebook" | |
a0b9e27f | 6583 | |
10f2d63a VZ |
6584 | if test "$enableval" = yes; then |
6585 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6586 | else | |
6587 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6588 | fi | |
a0b9e27f | 6589 | |
10f2d63a | 6590 | else |
a0b9e27f | 6591 | |
10f2d63a VZ |
6592 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6593 | if test "x$LINE" != x ; then | |
6594 | eval "DEFAULT_$LINE" | |
6595 | else | |
6596 | no_cache=1 | |
6597 | fi | |
6598 | ||
6599 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
a0b9e27f MB |
6600 | |
6601 | fi | |
10f2d63a VZ |
6602 | |
6603 | ||
6604 | eval "$ac_cv_use_notebook" | |
6605 | if test "$no_cache" != 1; then | |
6606 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6607 | fi | |
6608 | ||
6609 | if test "$wxUSE_NOTEBOOK" = yes; then | |
a0b9e27f | 6610 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6611 | else |
a0b9e27f | 6612 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6613 | fi |
a0b9e27f | 6614 | |
10f2d63a | 6615 | |
5005acfe VZ |
6616 | enablestring= |
6617 | echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6 | |
da494b40 | 6618 | echo "configure:6619: checking for --${enablestring:-enable}-propsheet" >&5 |
24176f2c GD |
6619 | no_cache=0 |
6620 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6621 | if test "${enable_propsheet+set}" = set; then | |
6622 | enableval="$enable_propsheet" | |
a0b9e27f | 6623 | |
24176f2c GD |
6624 | if test "$enableval" = yes; then |
6625 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6626 | else | |
6627 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6628 | fi | |
a0b9e27f | 6629 | |
24176f2c | 6630 | else |
a0b9e27f | 6631 | |
24176f2c GD |
6632 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` |
6633 | if test "x$LINE" != x ; then | |
6634 | eval "DEFAULT_$LINE" | |
6635 | else | |
6636 | no_cache=1 | |
6637 | fi | |
6638 | ||
6639 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
a0b9e27f MB |
6640 | |
6641 | fi | |
24176f2c GD |
6642 | |
6643 | ||
6644 | eval "$ac_cv_use_propsheet" | |
6645 | if test "$no_cache" != 1; then | |
6646 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6647 | fi | |
6648 | ||
6649 | if test "$wxUSE_PROPSHEET" = yes; then | |
a0b9e27f | 6650 | echo "$ac_t""yes" 1>&6 |
24176f2c | 6651 | else |
a0b9e27f | 6652 | echo "$ac_t""no" 1>&6 |
24176f2c | 6653 | fi |
a0b9e27f | 6654 | |
24176f2c | 6655 | |
5005acfe VZ |
6656 | enablestring= |
6657 | echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6 | |
da494b40 | 6658 | echo "configure:6659: checking for --${enablestring:-enable}-radiobox" >&5 |
10f2d63a VZ |
6659 | no_cache=0 |
6660 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6661 | if test "${enable_radiobox+set}" = set; then | |
6662 | enableval="$enable_radiobox" | |
a0b9e27f | 6663 | |
10f2d63a VZ |
6664 | if test "$enableval" = yes; then |
6665 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6666 | else | |
6667 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6668 | fi | |
a0b9e27f | 6669 | |
10f2d63a | 6670 | else |
a0b9e27f | 6671 | |
10f2d63a VZ |
6672 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6673 | if test "x$LINE" != x ; then | |
6674 | eval "DEFAULT_$LINE" | |
6675 | else | |
6676 | no_cache=1 | |
6677 | fi | |
6678 | ||
6679 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
a0b9e27f MB |
6680 | |
6681 | fi | |
10f2d63a VZ |
6682 | |
6683 | ||
6684 | eval "$ac_cv_use_radiobox" | |
6685 | if test "$no_cache" != 1; then | |
6686 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6687 | fi | |
6688 | ||
6689 | if test "$wxUSE_RADIOBOX" = yes; then | |
a0b9e27f | 6690 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6691 | else |
a0b9e27f | 6692 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6693 | fi |
a0b9e27f | 6694 | |
10f2d63a | 6695 | |
5005acfe VZ |
6696 | enablestring= |
6697 | echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6 | |
da494b40 | 6698 | echo "configure:6699: checking for --${enablestring:-enable}-radiobtn" >&5 |
10f2d63a VZ |
6699 | no_cache=0 |
6700 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6701 | if test "${enable_radiobtn+set}" = set; then | |
6702 | enableval="$enable_radiobtn" | |
a0b9e27f | 6703 | |
10f2d63a VZ |
6704 | if test "$enableval" = yes; then |
6705 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6706 | else | |
6707 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6708 | fi | |
a0b9e27f | 6709 | |
10f2d63a | 6710 | else |
a0b9e27f | 6711 | |
10f2d63a VZ |
6712 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6713 | if test "x$LINE" != x ; then | |
6714 | eval "DEFAULT_$LINE" | |
6715 | else | |
6716 | no_cache=1 | |
6717 | fi | |
6718 | ||
6719 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
a0b9e27f MB |
6720 | |
6721 | fi | |
10f2d63a VZ |
6722 | |
6723 | ||
6724 | eval "$ac_cv_use_radiobtn" | |
6725 | if test "$no_cache" != 1; then | |
6726 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6727 | fi | |
6728 | ||
6729 | if test "$wxUSE_RADIOBTN" = yes; then | |
a0b9e27f | 6730 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6731 | else |
a0b9e27f | 6732 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6733 | fi |
a0b9e27f | 6734 | |
10f2d63a | 6735 | |
5005acfe VZ |
6736 | enablestring= |
6737 | echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6 | |
da494b40 | 6738 | echo "configure:6739: checking for --${enablestring:-enable}-sash" >&5 |
10f2d63a VZ |
6739 | no_cache=0 |
6740 | # Check whether --enable-sash or --disable-sash was given. | |
6741 | if test "${enable_sash+set}" = set; then | |
6742 | enableval="$enable_sash" | |
a0b9e27f | 6743 | |
10f2d63a VZ |
6744 | if test "$enableval" = yes; then |
6745 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6746 | else | |
6747 | ac_cv_use_sash='wxUSE_SASH=no' | |
6748 | fi | |
a0b9e27f | 6749 | |
10f2d63a | 6750 | else |
a0b9e27f | 6751 | |
10f2d63a VZ |
6752 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6753 | if test "x$LINE" != x ; then | |
6754 | eval "DEFAULT_$LINE" | |
6755 | else | |
6756 | no_cache=1 | |
6757 | fi | |
6758 | ||
6759 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
a0b9e27f MB |
6760 | |
6761 | fi | |
10f2d63a VZ |
6762 | |
6763 | ||
6764 | eval "$ac_cv_use_sash" | |
6765 | if test "$no_cache" != 1; then | |
6766 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6767 | fi | |
6768 | ||
6769 | if test "$wxUSE_SASH" = yes; then | |
a0b9e27f | 6770 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6771 | else |
a0b9e27f | 6772 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6773 | fi |
a0b9e27f | 6774 | |
10f2d63a | 6775 | |
5005acfe VZ |
6776 | enablestring= |
6777 | echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6 | |
da494b40 | 6778 | echo "configure:6779: checking for --${enablestring:-enable}-scrollbar" >&5 |
10f2d63a VZ |
6779 | no_cache=0 |
6780 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6781 | if test "${enable_scrollbar+set}" = set; then | |
6782 | enableval="$enable_scrollbar" | |
a0b9e27f | 6783 | |
10f2d63a VZ |
6784 | if test "$enableval" = yes; then |
6785 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6786 | else | |
6787 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6788 | fi | |
a0b9e27f | 6789 | |
10f2d63a | 6790 | else |
a0b9e27f | 6791 | |
10f2d63a VZ |
6792 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6793 | if test "x$LINE" != x ; then | |
6794 | eval "DEFAULT_$LINE" | |
6795 | else | |
6796 | no_cache=1 | |
6797 | fi | |
6798 | ||
6799 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
a0b9e27f MB |
6800 | |
6801 | fi | |
10f2d63a VZ |
6802 | |
6803 | ||
6804 | eval "$ac_cv_use_scrollbar" | |
6805 | if test "$no_cache" != 1; then | |
6806 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6807 | fi | |
6808 | ||
6809 | if test "$wxUSE_SCROLLBAR" = yes; then | |
a0b9e27f | 6810 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6811 | else |
a0b9e27f | 6812 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6813 | fi |
a0b9e27f | 6814 | |
10f2d63a | 6815 | |
5005acfe VZ |
6816 | enablestring= |
6817 | echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6 | |
da494b40 | 6818 | echo "configure:6819: checking for --${enablestring:-enable}-slider" >&5 |
10f2d63a VZ |
6819 | no_cache=0 |
6820 | # Check whether --enable-slider or --disable-slider was given. | |
6821 | if test "${enable_slider+set}" = set; then | |
6822 | enableval="$enable_slider" | |
a0b9e27f | 6823 | |
10f2d63a VZ |
6824 | if test "$enableval" = yes; then |
6825 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6826 | else | |
6827 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6828 | fi | |
a0b9e27f | 6829 | |
10f2d63a | 6830 | else |
a0b9e27f | 6831 | |
10f2d63a VZ |
6832 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6833 | if test "x$LINE" != x ; then | |
6834 | eval "DEFAULT_$LINE" | |
6835 | else | |
6836 | no_cache=1 | |
6837 | fi | |
6838 | ||
6839 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
a0b9e27f MB |
6840 | |
6841 | fi | |
10f2d63a VZ |
6842 | |
6843 | ||
6844 | eval "$ac_cv_use_slider" | |
6845 | if test "$no_cache" != 1; then | |
6846 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6847 | fi | |
6848 | ||
6849 | if test "$wxUSE_SLIDER" = yes; then | |
a0b9e27f | 6850 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6851 | else |
a0b9e27f | 6852 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6853 | fi |
a0b9e27f | 6854 | |
10f2d63a | 6855 | |
5005acfe VZ |
6856 | enablestring= |
6857 | echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6 | |
da494b40 | 6858 | echo "configure:6859: checking for --${enablestring:-enable}-spinbtn" >&5 |
10f2d63a VZ |
6859 | no_cache=0 |
6860 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6861 | if test "${enable_spinbtn+set}" = set; then | |
6862 | enableval="$enable_spinbtn" | |
a0b9e27f | 6863 | |
10f2d63a VZ |
6864 | if test "$enableval" = yes; then |
6865 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6866 | else | |
6867 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6868 | fi | |
a0b9e27f | 6869 | |
10f2d63a | 6870 | else |
a0b9e27f | 6871 | |
10f2d63a VZ |
6872 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6873 | if test "x$LINE" != x ; then | |
6874 | eval "DEFAULT_$LINE" | |
6875 | else | |
6876 | no_cache=1 | |
6877 | fi | |
6878 | ||
6879 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
a0b9e27f MB |
6880 | |
6881 | fi | |
10f2d63a VZ |
6882 | |
6883 | ||
6884 | eval "$ac_cv_use_spinbtn" | |
6885 | if test "$no_cache" != 1; then | |
6886 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6887 | fi | |
6888 | ||
6889 | if test "$wxUSE_SPINBTN" = yes; then | |
a0b9e27f | 6890 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6891 | else |
a0b9e27f | 6892 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6893 | fi |
a0b9e27f | 6894 | |
10f2d63a | 6895 | |
5005acfe VZ |
6896 | enablestring= |
6897 | echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6 | |
da494b40 | 6898 | echo "configure:6899: checking for --${enablestring:-enable}-spinctrl" >&5 |
56cfaa52 RR |
6899 | no_cache=0 |
6900 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6901 | if test "${enable_spinctrl+set}" = set; then | |
6902 | enableval="$enable_spinctrl" | |
a0b9e27f | 6903 | |
56cfaa52 RR |
6904 | if test "$enableval" = yes; then |
6905 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6906 | else | |
6907 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6908 | fi | |
a0b9e27f | 6909 | |
56cfaa52 | 6910 | else |
a0b9e27f | 6911 | |
56cfaa52 RR |
6912 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6913 | if test "x$LINE" != x ; then | |
6914 | eval "DEFAULT_$LINE" | |
6915 | else | |
6916 | no_cache=1 | |
6917 | fi | |
6918 | ||
6919 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
a0b9e27f MB |
6920 | |
6921 | fi | |
56cfaa52 RR |
6922 | |
6923 | ||
6924 | eval "$ac_cv_use_spinctrl" | |
6925 | if test "$no_cache" != 1; then | |
6926 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6927 | fi | |
6928 | ||
6929 | if test "$wxUSE_SPINCTRL" = yes; then | |
a0b9e27f | 6930 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6931 | else |
a0b9e27f | 6932 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6933 | fi |
a0b9e27f | 6934 | |
56cfaa52 | 6935 | |
5005acfe VZ |
6936 | enablestring= |
6937 | echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6 | |
da494b40 | 6938 | echo "configure:6939: checking for --${enablestring:-enable}-splitter" >&5 |
10f2d63a VZ |
6939 | no_cache=0 |
6940 | # Check whether --enable-splitter or --disable-splitter was given. | |
6941 | if test "${enable_splitter+set}" = set; then | |
6942 | enableval="$enable_splitter" | |
a0b9e27f | 6943 | |
10f2d63a VZ |
6944 | if test "$enableval" = yes; then |
6945 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6946 | else | |
6947 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6948 | fi | |
a0b9e27f | 6949 | |
10f2d63a | 6950 | else |
a0b9e27f | 6951 | |
10f2d63a VZ |
6952 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6953 | if test "x$LINE" != x ; then | |
6954 | eval "DEFAULT_$LINE" | |
6955 | else | |
6956 | no_cache=1 | |
6957 | fi | |
6958 | ||
6959 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
a0b9e27f MB |
6960 | |
6961 | fi | |
10f2d63a VZ |
6962 | |
6963 | ||
6964 | eval "$ac_cv_use_splitter" | |
6965 | if test "$no_cache" != 1; then | |
6966 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6967 | fi | |
6968 | ||
6969 | if test "$wxUSE_SPLITTER" = yes; then | |
a0b9e27f | 6970 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6971 | else |
a0b9e27f | 6972 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6973 | fi |
a0b9e27f | 6974 | |
10f2d63a | 6975 | |
5005acfe VZ |
6976 | enablestring= |
6977 | echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6 | |
da494b40 | 6978 | echo "configure:6979: checking for --${enablestring:-enable}-statbmp" >&5 |
10f2d63a VZ |
6979 | no_cache=0 |
6980 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6981 | if test "${enable_statbmp+set}" = set; then | |
6982 | enableval="$enable_statbmp" | |
a0b9e27f | 6983 | |
10f2d63a VZ |
6984 | if test "$enableval" = yes; then |
6985 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6986 | else | |
6987 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6988 | fi | |
a0b9e27f | 6989 | |
10f2d63a | 6990 | else |
a0b9e27f | 6991 | |
10f2d63a VZ |
6992 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6993 | if test "x$LINE" != x ; then | |
6994 | eval "DEFAULT_$LINE" | |
6995 | else | |
6996 | no_cache=1 | |
6997 | fi | |
6998 | ||
6999 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
a0b9e27f MB |
7000 | |
7001 | fi | |
10f2d63a VZ |
7002 | |
7003 | ||
7004 | eval "$ac_cv_use_statbmp" | |
7005 | if test "$no_cache" != 1; then | |
7006 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7007 | fi | |
7008 | ||
7009 | if test "$wxUSE_STATBMP" = yes; then | |
a0b9e27f | 7010 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7011 | else |
a0b9e27f | 7012 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7013 | fi |
a0b9e27f | 7014 | |
10f2d63a | 7015 | |
5005acfe VZ |
7016 | enablestring= |
7017 | echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6 | |
da494b40 | 7018 | echo "configure:7019: checking for --${enablestring:-enable}-statbox" >&5 |
10f2d63a VZ |
7019 | no_cache=0 |
7020 | # Check whether --enable-statbox or --disable-statbox was given. | |
7021 | if test "${enable_statbox+set}" = set; then | |
7022 | enableval="$enable_statbox" | |
a0b9e27f | 7023 | |
10f2d63a VZ |
7024 | if test "$enableval" = yes; then |
7025 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7026 | else | |
7027 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7028 | fi | |
a0b9e27f | 7029 | |
10f2d63a | 7030 | else |
a0b9e27f | 7031 | |
10f2d63a VZ |
7032 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
7033 | if test "x$LINE" != x ; then | |
7034 | eval "DEFAULT_$LINE" | |
7035 | else | |
7036 | no_cache=1 | |
7037 | fi | |
7038 | ||
7039 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
a0b9e27f MB |
7040 | |
7041 | fi | |
10f2d63a VZ |
7042 | |
7043 | ||
7044 | eval "$ac_cv_use_statbox" | |
7045 | if test "$no_cache" != 1; then | |
7046 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7047 | fi | |
7048 | ||
7049 | if test "$wxUSE_STATBOX" = yes; then | |
a0b9e27f | 7050 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7051 | else |
a0b9e27f | 7052 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7053 | fi |
a0b9e27f | 7054 | |
10f2d63a | 7055 | |
5005acfe VZ |
7056 | enablestring= |
7057 | echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6 | |
da494b40 | 7058 | echo "configure:7059: checking for --${enablestring:-enable}-statline" >&5 |
10f2d63a VZ |
7059 | no_cache=0 |
7060 | # Check whether --enable-statline or --disable-statline was given. | |
7061 | if test "${enable_statline+set}" = set; then | |
7062 | enableval="$enable_statline" | |
a0b9e27f | 7063 | |
10f2d63a VZ |
7064 | if test "$enableval" = yes; then |
7065 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7066 | else | |
7067 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
7068 | fi | |
a0b9e27f | 7069 | |
10f2d63a | 7070 | else |
a0b9e27f | 7071 | |
10f2d63a VZ |
7072 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
7073 | if test "x$LINE" != x ; then | |
7074 | eval "DEFAULT_$LINE" | |
7075 | else | |
7076 | no_cache=1 | |
7077 | fi | |
7078 | ||
7079 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
a0b9e27f MB |
7080 | |
7081 | fi | |
10f2d63a VZ |
7082 | |
7083 | ||
7084 | eval "$ac_cv_use_statline" | |
7085 | if test "$no_cache" != 1; then | |
7086 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
7087 | fi | |
7088 | ||
7089 | if test "$wxUSE_STATLINE" = yes; then | |
a0b9e27f | 7090 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7091 | else |
a0b9e27f | 7092 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7093 | fi |
a0b9e27f | 7094 | |
10f2d63a | 7095 | |
5005acfe VZ |
7096 | enablestring= |
7097 | echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6 | |
da494b40 | 7098 | echo "configure:7099: checking for --${enablestring:-enable}-stattext" >&5 |
1e6feb95 VZ |
7099 | no_cache=0 |
7100 | # Check whether --enable-stattext or --disable-stattext was given. | |
7101 | if test "${enable_stattext+set}" = set; then | |
7102 | enableval="$enable_stattext" | |
a0b9e27f | 7103 | |
1e6feb95 VZ |
7104 | if test "$enableval" = yes; then |
7105 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7106 | else | |
7107 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7108 | fi | |
a0b9e27f | 7109 | |
1e6feb95 | 7110 | else |
a0b9e27f | 7111 | |
1e6feb95 VZ |
7112 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
7113 | if test "x$LINE" != x ; then | |
7114 | eval "DEFAULT_$LINE" | |
7115 | else | |
7116 | no_cache=1 | |
7117 | fi | |
7118 | ||
7119 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
a0b9e27f MB |
7120 | |
7121 | fi | |
1e6feb95 VZ |
7122 | |
7123 | ||
7124 | eval "$ac_cv_use_stattext" | |
7125 | if test "$no_cache" != 1; then | |
7126 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7127 | fi | |
7128 | ||
7129 | if test "$wxUSE_STATTEXT" = yes; then | |
a0b9e27f | 7130 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7131 | else |
a0b9e27f | 7132 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7133 | fi |
a0b9e27f | 7134 | |
1e6feb95 | 7135 | |
5005acfe VZ |
7136 | enablestring= |
7137 | echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6 | |
da494b40 | 7138 | echo "configure:7139: checking for --${enablestring:-enable}-statusbar" >&5 |
10f2d63a VZ |
7139 | no_cache=0 |
7140 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7141 | if test "${enable_statusbar+set}" = set; then | |
7142 | enableval="$enable_statusbar" | |
a0b9e27f | 7143 | |
10f2d63a VZ |
7144 | if test "$enableval" = yes; then |
7145 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7146 | else | |
7147 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7148 | fi | |
a0b9e27f | 7149 | |
10f2d63a | 7150 | else |
a0b9e27f | 7151 | |
10f2d63a VZ |
7152 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
7153 | if test "x$LINE" != x ; then | |
7154 | eval "DEFAULT_$LINE" | |
7155 | else | |
7156 | no_cache=1 | |
7157 | fi | |
7158 | ||
7159 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
a0b9e27f MB |
7160 | |
7161 | fi | |
10f2d63a VZ |
7162 | |
7163 | ||
7164 | eval "$ac_cv_use_statusbar" | |
7165 | if test "$no_cache" != 1; then | |
7166 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7167 | fi | |
7168 | ||
7169 | if test "$wxUSE_STATUSBAR" = yes; then | |
a0b9e27f | 7170 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7171 | else |
a0b9e27f | 7172 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7173 | fi |
a0b9e27f | 7174 | |
10f2d63a | 7175 | |
5005acfe VZ |
7176 | enablestring= |
7177 | echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6 | |
da494b40 | 7178 | echo "configure:7179: checking for --${enablestring:-enable}-tabdialog" >&5 |
10f2d63a VZ |
7179 | no_cache=0 |
7180 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7181 | if test "${enable_tabdialog+set}" = set; then | |
7182 | enableval="$enable_tabdialog" | |
a0b9e27f | 7183 | |
10f2d63a VZ |
7184 | if test "$enableval" = yes; then |
7185 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7186 | else | |
7187 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7188 | fi | |
a0b9e27f | 7189 | |
10f2d63a | 7190 | else |
a0b9e27f | 7191 | |
10f2d63a VZ |
7192 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7193 | if test "x$LINE" != x ; then | |
7194 | eval "DEFAULT_$LINE" | |
7195 | else | |
7196 | no_cache=1 | |
7197 | fi | |
7198 | ||
7199 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
a0b9e27f MB |
7200 | |
7201 | fi | |
10f2d63a VZ |
7202 | |
7203 | ||
7204 | eval "$ac_cv_use_tabdialog" | |
7205 | if test "$no_cache" != 1; then | |
7206 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7207 | fi | |
7208 | ||
7209 | if test "$wxUSE_TABDIALOG" = yes; then | |
a0b9e27f | 7210 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7211 | else |
a0b9e27f | 7212 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7213 | fi |
a0b9e27f | 7214 | |
10f2d63a | 7215 | |
5005acfe VZ |
7216 | enablestring= |
7217 | echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6 | |
da494b40 | 7218 | echo "configure:7219: checking for --${enablestring:-enable}-textctrl" >&5 |
1e6feb95 VZ |
7219 | no_cache=0 |
7220 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7221 | if test "${enable_textctrl+set}" = set; then | |
7222 | enableval="$enable_textctrl" | |
a0b9e27f | 7223 | |
1e6feb95 VZ |
7224 | if test "$enableval" = yes; then |
7225 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7226 | else | |
7227 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7228 | fi | |
a0b9e27f | 7229 | |
1e6feb95 | 7230 | else |
a0b9e27f | 7231 | |
1e6feb95 VZ |
7232 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
7233 | if test "x$LINE" != x ; then | |
7234 | eval "DEFAULT_$LINE" | |
7235 | else | |
7236 | no_cache=1 | |
7237 | fi | |
7238 | ||
7239 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
a0b9e27f MB |
7240 | |
7241 | fi | |
1e6feb95 VZ |
7242 | |
7243 | ||
7244 | eval "$ac_cv_use_textctrl" | |
7245 | if test "$no_cache" != 1; then | |
7246 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7247 | fi | |
7248 | ||
7249 | if test "$wxUSE_TEXTCTRL" = yes; then | |
a0b9e27f | 7250 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7251 | else |
a0b9e27f | 7252 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7253 | fi |
a0b9e27f | 7254 | |
1e6feb95 | 7255 | |
5005acfe VZ |
7256 | enablestring= |
7257 | echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6 | |
da494b40 | 7258 | echo "configure:7259: checking for --${enablestring:-enable}-togglebtn" >&5 |
1db8dc4a VZ |
7259 | no_cache=0 |
7260 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7261 | if test "${enable_togglebtn+set}" = set; then | |
7262 | enableval="$enable_togglebtn" | |
a0b9e27f | 7263 | |
1db8dc4a VZ |
7264 | if test "$enableval" = yes; then |
7265 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7266 | else | |
7267 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7268 | fi | |
a0b9e27f | 7269 | |
1db8dc4a | 7270 | else |
a0b9e27f | 7271 | |
1db8dc4a VZ |
7272 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7273 | if test "x$LINE" != x ; then | |
7274 | eval "DEFAULT_$LINE" | |
7275 | else | |
7276 | no_cache=1 | |
7277 | fi | |
7278 | ||
7279 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
a0b9e27f MB |
7280 | |
7281 | fi | |
1db8dc4a VZ |
7282 | |
7283 | ||
7284 | eval "$ac_cv_use_togglebtn" | |
7285 | if test "$no_cache" != 1; then | |
7286 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7287 | fi | |
7288 | ||
7289 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
a0b9e27f | 7290 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 7291 | else |
a0b9e27f | 7292 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 7293 | fi |
a0b9e27f | 7294 | |
1db8dc4a | 7295 | |
5005acfe VZ |
7296 | enablestring= |
7297 | echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6 | |
da494b40 | 7298 | echo "configure:7299: checking for --${enablestring:-enable}-toolbar" >&5 |
10f2d63a VZ |
7299 | no_cache=0 |
7300 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7301 | if test "${enable_toolbar+set}" = set; then | |
7302 | enableval="$enable_toolbar" | |
a0b9e27f | 7303 | |
10f2d63a VZ |
7304 | if test "$enableval" = yes; then |
7305 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7306 | else | |
7307 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7308 | fi | |
a0b9e27f | 7309 | |
10f2d63a | 7310 | else |
a0b9e27f | 7311 | |
10f2d63a VZ |
7312 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7313 | if test "x$LINE" != x ; then | |
7314 | eval "DEFAULT_$LINE" | |
7315 | else | |
7316 | no_cache=1 | |
7317 | fi | |
7318 | ||
7319 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
a0b9e27f MB |
7320 | |
7321 | fi | |
10f2d63a VZ |
7322 | |
7323 | ||
7324 | eval "$ac_cv_use_toolbar" | |
7325 | if test "$no_cache" != 1; then | |
7326 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7327 | fi | |
7328 | ||
7329 | if test "$wxUSE_TOOLBAR" = yes; then | |
a0b9e27f | 7330 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7331 | else |
a0b9e27f | 7332 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7333 | fi |
a0b9e27f | 7334 | |
10f2d63a | 7335 | |
5005acfe VZ |
7336 | enablestring= |
7337 | echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6 | |
da494b40 | 7338 | echo "configure:7339: checking for --${enablestring:-enable}-tbarnative" >&5 |
360d6699 VZ |
7339 | no_cache=0 |
7340 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7341 | if test "${enable_tbarnative+set}" = set; then | |
7342 | enableval="$enable_tbarnative" | |
a0b9e27f | 7343 | |
360d6699 VZ |
7344 | if test "$enableval" = yes; then |
7345 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7346 | else | |
7347 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7348 | fi | |
a0b9e27f | 7349 | |
360d6699 | 7350 | else |
a0b9e27f | 7351 | |
360d6699 VZ |
7352 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7353 | if test "x$LINE" != x ; then | |
7354 | eval "DEFAULT_$LINE" | |
7355 | else | |
7356 | no_cache=1 | |
7357 | fi | |
7358 | ||
7359 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
a0b9e27f MB |
7360 | |
7361 | fi | |
360d6699 VZ |
7362 | |
7363 | ||
7364 | eval "$ac_cv_use_tbarnative" | |
7365 | if test "$no_cache" != 1; then | |
7366 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7367 | fi | |
7368 | ||
7369 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
a0b9e27f | 7370 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7371 | else |
a0b9e27f | 7372 | echo "$ac_t""no" 1>&6 |
360d6699 | 7373 | fi |
a0b9e27f | 7374 | |
360d6699 | 7375 | |
5005acfe VZ |
7376 | enablestring= |
7377 | echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6 | |
da494b40 | 7378 | echo "configure:7379: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
360d6699 VZ |
7379 | no_cache=0 |
7380 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7381 | if test "${enable_tbarsmpl+set}" = set; then | |
7382 | enableval="$enable_tbarsmpl" | |
a0b9e27f | 7383 | |
360d6699 VZ |
7384 | if test "$enableval" = yes; then |
7385 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7386 | else | |
7387 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7388 | fi | |
a0b9e27f | 7389 | |
360d6699 | 7390 | else |
a0b9e27f | 7391 | |
360d6699 VZ |
7392 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7393 | if test "x$LINE" != x ; then | |
7394 | eval "DEFAULT_$LINE" | |
7395 | else | |
7396 | no_cache=1 | |
7397 | fi | |
7398 | ||
7399 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
a0b9e27f MB |
7400 | |
7401 | fi | |
360d6699 VZ |
7402 | |
7403 | ||
7404 | eval "$ac_cv_use_tbarsmpl" | |
7405 | if test "$no_cache" != 1; then | |
7406 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7407 | fi | |
7408 | ||
7409 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
a0b9e27f | 7410 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7411 | else |
a0b9e27f | 7412 | echo "$ac_t""no" 1>&6 |
360d6699 | 7413 | fi |
a0b9e27f | 7414 | |
360d6699 | 7415 | |
5005acfe VZ |
7416 | enablestring= |
7417 | echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6 | |
da494b40 | 7418 | echo "configure:7419: checking for --${enablestring:-enable}-treectrl" >&5 |
10f2d63a VZ |
7419 | no_cache=0 |
7420 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7421 | if test "${enable_treectrl+set}" = set; then | |
7422 | enableval="$enable_treectrl" | |
a0b9e27f | 7423 | |
10f2d63a VZ |
7424 | if test "$enableval" = yes; then |
7425 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7426 | else | |
7427 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7428 | fi | |
a0b9e27f | 7429 | |
10f2d63a | 7430 | else |
a0b9e27f | 7431 | |
10f2d63a VZ |
7432 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7433 | if test "x$LINE" != x ; then | |
7434 | eval "DEFAULT_$LINE" | |
7435 | else | |
7436 | no_cache=1 | |
7437 | fi | |
7438 | ||
7439 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
a0b9e27f MB |
7440 | |
7441 | fi | |
10f2d63a VZ |
7442 | |
7443 | ||
1e6feb95 VZ |
7444 | eval "$ac_cv_use_treectrl" |
7445 | if test "$no_cache" != 1; then | |
7446 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7447 | fi | |
7448 | ||
7449 | if test "$wxUSE_TREECTRL" = yes; then | |
a0b9e27f | 7450 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7451 | else |
a0b9e27f | 7452 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7453 | fi |
a0b9e27f | 7454 | |
1e6feb95 | 7455 | |
5005acfe VZ |
7456 | enablestring= |
7457 | echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6 | |
da494b40 | 7458 | echo "configure:7459: checking for --${enablestring:-enable}-tipwindow" >&5 |
9926e4a4 VZ |
7459 | no_cache=0 |
7460 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7461 | if test "${enable_tipwindow+set}" = set; then | |
7462 | enableval="$enable_tipwindow" | |
a0b9e27f | 7463 | |
9926e4a4 VZ |
7464 | if test "$enableval" = yes; then |
7465 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7466 | else | |
7467 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7468 | fi | |
a0b9e27f | 7469 | |
9926e4a4 | 7470 | else |
a0b9e27f | 7471 | |
9926e4a4 VZ |
7472 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
7473 | if test "x$LINE" != x ; then | |
7474 | eval "DEFAULT_$LINE" | |
7475 | else | |
7476 | no_cache=1 | |
7477 | fi | |
7478 | ||
7479 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
a0b9e27f MB |
7480 | |
7481 | fi | |
9926e4a4 VZ |
7482 | |
7483 | ||
7484 | eval "$ac_cv_use_tipwindow" | |
7485 | if test "$no_cache" != 1; then | |
7486 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7487 | fi | |
7488 | ||
7489 | if test "$wxUSE_TIPWINDOW" = yes; then | |
a0b9e27f | 7490 | echo "$ac_t""yes" 1>&6 |
9926e4a4 | 7491 | else |
a0b9e27f | 7492 | echo "$ac_t""no" 1>&6 |
9926e4a4 | 7493 | fi |
a0b9e27f | 7494 | |
9926e4a4 | 7495 | |
5005acfe VZ |
7496 | enablestring= |
7497 | echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6 | |
da494b40 | 7498 | echo "configure:7499: checking for --${enablestring:-enable}-popupwin" >&5 |
9f41d601 RR |
7499 | no_cache=0 |
7500 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7501 | if test "${enable_popupwin+set}" = set; then | |
7502 | enableval="$enable_popupwin" | |
a0b9e27f | 7503 | |
9f41d601 RR |
7504 | if test "$enableval" = yes; then |
7505 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7506 | else | |
7507 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7508 | fi | |
a0b9e27f | 7509 | |
9f41d601 | 7510 | else |
a0b9e27f | 7511 | |
9f41d601 RR |
7512 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
7513 | if test "x$LINE" != x ; then | |
7514 | eval "DEFAULT_$LINE" | |
7515 | else | |
7516 | no_cache=1 | |
7517 | fi | |
7518 | ||
7519 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
a0b9e27f MB |
7520 | |
7521 | fi | |
9f41d601 RR |
7522 | |
7523 | ||
7524 | eval "$ac_cv_use_popupwin" | |
7525 | if test "$no_cache" != 1; then | |
7526 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7527 | fi | |
7528 | ||
7529 | if test "$wxUSE_POPUPWIN" = yes; then | |
a0b9e27f | 7530 | echo "$ac_t""yes" 1>&6 |
9f41d601 | 7531 | else |
a0b9e27f | 7532 | echo "$ac_t""no" 1>&6 |
9f41d601 | 7533 | fi |
a0b9e27f | 7534 | |
52127426 | 7535 | |
8284b0c5 MB |
7536 | |
7537 | ||
5005acfe VZ |
7538 | enablestring= |
7539 | echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6 | |
da494b40 | 7540 | echo "configure:7541: checking for --${enablestring:-enable}-commondlg" >&5 |
1e6feb95 VZ |
7541 | no_cache=0 |
7542 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7543 | if test "${enable_commondlg+set}" = set; then | |
7544 | enableval="$enable_commondlg" | |
a0b9e27f | 7545 | |
1e6feb95 VZ |
7546 | if test "$enableval" = yes; then |
7547 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7548 | else | |
7549 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7550 | fi | |
a0b9e27f | 7551 | |
1e6feb95 | 7552 | else |
a0b9e27f | 7553 | |
1e6feb95 VZ |
7554 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
7555 | if test "x$LINE" != x ; then | |
7556 | eval "DEFAULT_$LINE" | |
7557 | else | |
7558 | no_cache=1 | |
7559 | fi | |
7560 | ||
7561 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
a0b9e27f MB |
7562 | |
7563 | fi | |
1e6feb95 VZ |
7564 | |
7565 | ||
7566 | eval "$ac_cv_use_commondlg" | |
7567 | if test "$no_cache" != 1; then | |
7568 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7569 | fi | |
7570 | ||
7571 | if test "$wxUSE_COMMONDLGS" = yes; then | |
a0b9e27f | 7572 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7573 | else |
a0b9e27f | 7574 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7575 | fi |
a0b9e27f | 7576 | |
1e6feb95 | 7577 | |
5005acfe VZ |
7578 | enablestring= |
7579 | echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6 | |
da494b40 | 7580 | echo "configure:7581: checking for --${enablestring:-enable}-choicedlg" >&5 |
1e6feb95 VZ |
7581 | no_cache=0 |
7582 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7583 | if test "${enable_choicedlg+set}" = set; then | |
7584 | enableval="$enable_choicedlg" | |
a0b9e27f | 7585 | |
1e6feb95 VZ |
7586 | if test "$enableval" = yes; then |
7587 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7588 | else | |
7589 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7590 | fi | |
a0b9e27f | 7591 | |
1e6feb95 | 7592 | else |
a0b9e27f | 7593 | |
1e6feb95 VZ |
7594 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
7595 | if test "x$LINE" != x ; then | |
7596 | eval "DEFAULT_$LINE" | |
7597 | else | |
7598 | no_cache=1 | |
7599 | fi | |
7600 | ||
7601 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
a0b9e27f MB |
7602 | |
7603 | fi | |
1e6feb95 VZ |
7604 | |
7605 | ||
7606 | eval "$ac_cv_use_choicedlg" | |
7607 | if test "$no_cache" != 1; then | |
7608 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7609 | fi | |
7610 | ||
7611 | if test "$wxUSE_CHOICEDLG" = yes; then | |
a0b9e27f | 7612 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7613 | else |
a0b9e27f | 7614 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7615 | fi |
a0b9e27f | 7616 | |
1e6feb95 | 7617 | |
5005acfe VZ |
7618 | enablestring= |
7619 | echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6 | |
da494b40 | 7620 | echo "configure:7621: checking for --${enablestring:-enable}-coldlg" >&5 |
1e6feb95 VZ |
7621 | no_cache=0 |
7622 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7623 | if test "${enable_coldlg+set}" = set; then | |
7624 | enableval="$enable_coldlg" | |
a0b9e27f | 7625 | |
1e6feb95 VZ |
7626 | if test "$enableval" = yes; then |
7627 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7628 | else | |
7629 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7630 | fi | |
a0b9e27f | 7631 | |
1e6feb95 | 7632 | else |
a0b9e27f | 7633 | |
1e6feb95 VZ |
7634 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
7635 | if test "x$LINE" != x ; then | |
7636 | eval "DEFAULT_$LINE" | |
7637 | else | |
7638 | no_cache=1 | |
7639 | fi | |
7640 | ||
7641 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
a0b9e27f MB |
7642 | |
7643 | fi | |
1e6feb95 VZ |
7644 | |
7645 | ||
7646 | eval "$ac_cv_use_coldlg" | |
7647 | if test "$no_cache" != 1; then | |
7648 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7649 | fi | |
7650 | ||
7651 | if test "$wxUSE_COLOURDLG" = yes; then | |
a0b9e27f | 7652 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7653 | else |
a0b9e27f | 7654 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7655 | fi |
a0b9e27f | 7656 | |
1e6feb95 | 7657 | |
5005acfe VZ |
7658 | enablestring= |
7659 | echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6 | |
da494b40 | 7660 | echo "configure:7661: checking for --${enablestring:-enable}-filedlg" >&5 |
1e6feb95 VZ |
7661 | no_cache=0 |
7662 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7663 | if test "${enable_filedlg+set}" = set; then | |
7664 | enableval="$enable_filedlg" | |
a0b9e27f | 7665 | |
1e6feb95 VZ |
7666 | if test "$enableval" = yes; then |
7667 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7668 | else | |
7669 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7670 | fi | |
a0b9e27f | 7671 | |
1e6feb95 | 7672 | else |
a0b9e27f | 7673 | |
1e6feb95 VZ |
7674 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
7675 | if test "x$LINE" != x ; then | |
7676 | eval "DEFAULT_$LINE" | |
7677 | else | |
7678 | no_cache=1 | |
7679 | fi | |
7680 | ||
7681 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
a0b9e27f MB |
7682 | |
7683 | fi | |
1e6feb95 VZ |
7684 | |
7685 | ||
7686 | eval "$ac_cv_use_filedlg" | |
7687 | if test "$no_cache" != 1; then | |
7688 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7689 | fi | |
7690 | ||
7691 | if test "$wxUSE_FILEDLG" = yes; then | |
a0b9e27f | 7692 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7693 | else |
a0b9e27f | 7694 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7695 | fi |
a0b9e27f | 7696 | |
1e6feb95 | 7697 | |
5005acfe VZ |
7698 | enablestring= |
7699 | echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6 | |
da494b40 | 7700 | echo "configure:7701: checking for --${enablestring:-enable}-finddlg" >&5 |
8db37e06 | 7701 | no_cache=0 |
69d27ff7 MB |
7702 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7703 | if test "${enable_finddlg+set}" = set; then | |
7704 | enableval="$enable_finddlg" | |
a0b9e27f | 7705 | |
8db37e06 | 7706 | if test "$enableval" = yes; then |
69d27ff7 | 7707 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7708 | else |
69d27ff7 | 7709 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 7710 | fi |
a0b9e27f | 7711 | |
8db37e06 | 7712 | else |
a0b9e27f | 7713 | |
8db37e06 VZ |
7714 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
7715 | if test "x$LINE" != x ; then | |
7716 | eval "DEFAULT_$LINE" | |
7717 | else | |
7718 | no_cache=1 | |
7719 | fi | |
7720 | ||
69d27ff7 | 7721 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
a0b9e27f MB |
7722 | |
7723 | fi | |
8db37e06 VZ |
7724 | |
7725 | ||
69d27ff7 | 7726 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7727 | if test "$no_cache" != 1; then |
69d27ff7 | 7728 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7729 | fi |
7730 | ||
7731 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
a0b9e27f | 7732 | echo "$ac_t""yes" 1>&6 |
8db37e06 | 7733 | else |
a0b9e27f | 7734 | echo "$ac_t""no" 1>&6 |
8db37e06 | 7735 | fi |
a0b9e27f | 7736 | |
8db37e06 | 7737 | |
5005acfe VZ |
7738 | enablestring= |
7739 | echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6 | |
da494b40 | 7740 | echo "configure:7741: checking for --${enablestring:-enable}-fontdlg" >&5 |
1e6feb95 VZ |
7741 | no_cache=0 |
7742 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7743 | if test "${enable_fontdlg+set}" = set; then | |
7744 | enableval="$enable_fontdlg" | |
a0b9e27f | 7745 | |
1e6feb95 VZ |
7746 | if test "$enableval" = yes; then |
7747 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7748 | else | |
7749 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7750 | fi | |
a0b9e27f | 7751 | |
1e6feb95 | 7752 | else |
a0b9e27f | 7753 | |
1e6feb95 VZ |
7754 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
7755 | if test "x$LINE" != x ; then | |
7756 | eval "DEFAULT_$LINE" | |
7757 | else | |
7758 | no_cache=1 | |
7759 | fi | |
7760 | ||
7761 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
a0b9e27f MB |
7762 | |
7763 | fi | |
1e6feb95 VZ |
7764 | |
7765 | ||
7766 | eval "$ac_cv_use_fontdlg" | |
7767 | if test "$no_cache" != 1; then | |
7768 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7769 | fi | |
7770 | ||
7771 | if test "$wxUSE_FONTDLG" = yes; then | |
a0b9e27f | 7772 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7773 | else |
a0b9e27f | 7774 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7775 | fi |
a0b9e27f | 7776 | |
1e6feb95 | 7777 | |
5005acfe VZ |
7778 | enablestring= |
7779 | echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6 | |
da494b40 | 7780 | echo "configure:7781: checking for --${enablestring:-enable}-dirdlg" >&5 |
1e6feb95 VZ |
7781 | no_cache=0 |
7782 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7783 | if test "${enable_dirdlg+set}" = set; then | |
7784 | enableval="$enable_dirdlg" | |
a0b9e27f | 7785 | |
1e6feb95 VZ |
7786 | if test "$enableval" = yes; then |
7787 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7788 | else | |
7789 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7790 | fi | |
a0b9e27f | 7791 | |
1e6feb95 | 7792 | else |
a0b9e27f | 7793 | |
1e6feb95 VZ |
7794 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
7795 | if test "x$LINE" != x ; then | |
7796 | eval "DEFAULT_$LINE" | |
7797 | else | |
7798 | no_cache=1 | |
7799 | fi | |
7800 | ||
7801 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
a0b9e27f MB |
7802 | |
7803 | fi | |
1e6feb95 VZ |
7804 | |
7805 | ||
7806 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7807 | if test "$no_cache" != 1; then |
1e6feb95 | 7808 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7809 | fi |
7810 | ||
1e6feb95 | 7811 | if test "$wxUSE_DIRDLG" = yes; then |
a0b9e27f | 7812 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7813 | else |
a0b9e27f | 7814 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7815 | fi |
a0b9e27f | 7816 | |
698dcdb6 | 7817 | |
5005acfe VZ |
7818 | enablestring= |
7819 | echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6 | |
da494b40 | 7820 | echo "configure:7821: checking for --${enablestring:-enable}-msgdlg" >&5 |
10f2d63a | 7821 | no_cache=0 |
1e6feb95 VZ |
7822 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7823 | if test "${enable_msgdlg+set}" = set; then | |
7824 | enableval="$enable_msgdlg" | |
a0b9e27f | 7825 | |
10f2d63a | 7826 | if test "$enableval" = yes; then |
1e6feb95 | 7827 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7828 | else |
1e6feb95 | 7829 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7830 | fi |
a0b9e27f | 7831 | |
10f2d63a | 7832 | else |
a0b9e27f | 7833 | |
1e6feb95 | 7834 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7835 | if test "x$LINE" != x ; then |
7836 | eval "DEFAULT_$LINE" | |
7837 | else | |
7838 | no_cache=1 | |
7839 | fi | |
7840 | ||
1e6feb95 | 7841 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
a0b9e27f MB |
7842 | |
7843 | fi | |
10f2d63a VZ |
7844 | |
7845 | ||
1e6feb95 | 7846 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7847 | if test "$no_cache" != 1; then |
1e6feb95 | 7848 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7849 | fi |
7850 | ||
1e6feb95 | 7851 | if test "$wxUSE_MSGDLG" = yes; then |
a0b9e27f | 7852 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7853 | else |
a0b9e27f | 7854 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7855 | fi |
a0b9e27f | 7856 | |
10f2d63a | 7857 | |
5005acfe VZ |
7858 | enablestring= |
7859 | echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6 | |
da494b40 | 7860 | echo "configure:7861: checking for --${enablestring:-enable}-numberdlg" >&5 |
10f2d63a | 7861 | no_cache=0 |
1e6feb95 VZ |
7862 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7863 | if test "${enable_numberdlg+set}" = set; then | |
7864 | enableval="$enable_numberdlg" | |
a0b9e27f | 7865 | |
10f2d63a | 7866 | if test "$enableval" = yes; then |
1e6feb95 | 7867 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7868 | else |
1e6feb95 | 7869 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7870 | fi |
a0b9e27f | 7871 | |
10f2d63a | 7872 | else |
a0b9e27f | 7873 | |
1e6feb95 | 7874 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7875 | if test "x$LINE" != x ; then |
7876 | eval "DEFAULT_$LINE" | |
7877 | else | |
7878 | no_cache=1 | |
7879 | fi | |
7880 | ||
1e6feb95 | 7881 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
a0b9e27f MB |
7882 | |
7883 | fi | |
10f2d63a VZ |
7884 | |
7885 | ||
1e6feb95 | 7886 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7887 | if test "$no_cache" != 1; then |
1e6feb95 | 7888 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7889 | fi |
7890 | ||
1e6feb95 | 7891 | if test "$wxUSE_NUMBERDLG" = yes; then |
a0b9e27f | 7892 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7893 | else |
a0b9e27f | 7894 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7895 | fi |
a0b9e27f | 7896 | |
10f2d63a | 7897 | |
5005acfe VZ |
7898 | enablestring= |
7899 | echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6 | |
da494b40 | 7900 | echo "configure:7901: checking for --${enablestring:-enable}-splash" >&5 |
cbca9943 VZ |
7901 | no_cache=0 |
7902 | # Check whether --enable-splash or --disable-splash was given. | |
7903 | if test "${enable_splash+set}" = set; then | |
7904 | enableval="$enable_splash" | |
a0b9e27f | 7905 | |
cbca9943 VZ |
7906 | if test "$enableval" = yes; then |
7907 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7908 | else | |
7909 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7910 | fi | |
a0b9e27f | 7911 | |
cbca9943 | 7912 | else |
a0b9e27f | 7913 | |
cbca9943 VZ |
7914 | LINE=`grep "wxUSE_SPLASH" ${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_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
a0b9e27f MB |
7922 | |
7923 | fi | |
cbca9943 VZ |
7924 | |
7925 | ||
7926 | eval "$ac_cv_use_splash" | |
7927 | if test "$no_cache" != 1; then | |
7928 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7929 | fi | |
7930 | ||
7931 | if test "$wxUSE_SPLASH" = yes; then | |
a0b9e27f | 7932 | echo "$ac_t""yes" 1>&6 |
cbca9943 | 7933 | else |
a0b9e27f | 7934 | echo "$ac_t""no" 1>&6 |
cbca9943 | 7935 | fi |
a0b9e27f | 7936 | |
cbca9943 | 7937 | |
5005acfe VZ |
7938 | enablestring= |
7939 | echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6 | |
da494b40 | 7940 | echo "configure:7941: checking for --${enablestring:-enable}-textdlg" >&5 |
10f2d63a VZ |
7941 | no_cache=0 |
7942 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7943 | if test "${enable_textdlg+set}" = set; then | |
7944 | enableval="$enable_textdlg" | |
a0b9e27f | 7945 | |
10f2d63a VZ |
7946 | if test "$enableval" = yes; then |
7947 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7948 | else | |
7949 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7950 | fi | |
a0b9e27f | 7951 | |
10f2d63a | 7952 | else |
a0b9e27f | 7953 | |
10f2d63a VZ |
7954 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7955 | if test "x$LINE" != x ; then | |
7956 | eval "DEFAULT_$LINE" | |
7957 | else | |
7958 | no_cache=1 | |
7959 | fi | |
7960 | ||
7961 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
a0b9e27f MB |
7962 | |
7963 | fi | |
10f2d63a VZ |
7964 | |
7965 | ||
7966 | eval "$ac_cv_use_textdlg" | |
7967 | if test "$no_cache" != 1; then | |
7968 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7969 | fi | |
7970 | ||
7971 | if test "$wxUSE_TEXTDLG" = yes; then | |
a0b9e27f | 7972 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7973 | else |
a0b9e27f | 7974 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7975 | fi |
a0b9e27f | 7976 | |
10f2d63a | 7977 | |
5005acfe VZ |
7978 | enablestring= |
7979 | echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6 | |
da494b40 | 7980 | echo "configure:7981: checking for --${enablestring:-enable}-tipdlg" >&5 |
10f2d63a VZ |
7981 | no_cache=0 |
7982 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7983 | if test "${enable_tipdlg+set}" = set; then | |
7984 | enableval="$enable_tipdlg" | |
a0b9e27f | 7985 | |
10f2d63a VZ |
7986 | if test "$enableval" = yes; then |
7987 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7988 | else | |
7989 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7990 | fi | |
a0b9e27f | 7991 | |
10f2d63a | 7992 | else |
a0b9e27f | 7993 | |
10f2d63a VZ |
7994 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7995 | if test "x$LINE" != x ; then | |
7996 | eval "DEFAULT_$LINE" | |
7997 | else | |
7998 | no_cache=1 | |
7999 | fi | |
8000 | ||
8001 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
a0b9e27f MB |
8002 | |
8003 | fi | |
10f2d63a VZ |
8004 | |
8005 | ||
8006 | eval "$ac_cv_use_tipdlg" | |
8007 | if test "$no_cache" != 1; then | |
8008 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8009 | fi | |
8010 | ||
8011 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
a0b9e27f | 8012 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8013 | else |
a0b9e27f | 8014 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8015 | fi |
a0b9e27f | 8016 | |
10f2d63a | 8017 | |
5005acfe VZ |
8018 | enablestring= |
8019 | echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6 | |
da494b40 | 8020 | echo "configure:8021: checking for --${enablestring:-enable}-progressdlg" >&5 |
10f2d63a VZ |
8021 | no_cache=0 |
8022 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8023 | if test "${enable_progressdlg+set}" = set; then | |
8024 | enableval="$enable_progressdlg" | |
a0b9e27f | 8025 | |
10f2d63a VZ |
8026 | if test "$enableval" = yes; then |
8027 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8028 | else | |
8029 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8030 | fi | |
a0b9e27f | 8031 | |
10f2d63a | 8032 | else |
a0b9e27f | 8033 | |
10f2d63a VZ |
8034 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
8035 | if test "x$LINE" != x ; then | |
8036 | eval "DEFAULT_$LINE" | |
8037 | else | |
8038 | no_cache=1 | |
8039 | fi | |
8040 | ||
8041 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
a0b9e27f MB |
8042 | |
8043 | fi | |
10f2d63a VZ |
8044 | |
8045 | ||
8046 | eval "$ac_cv_use_progressdlg" | |
8047 | if test "$no_cache" != 1; then | |
8048 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
8049 | fi | |
8050 | ||
8051 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
a0b9e27f | 8052 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8053 | else |
a0b9e27f | 8054 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8055 | fi |
a0b9e27f | 8056 | |
10f2d63a | 8057 | |
5005acfe VZ |
8058 | enablestring= |
8059 | echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6 | |
da494b40 | 8060 | echo "configure:8061: checking for --${enablestring:-enable}-wizarddlg" >&5 |
b1f5d087 VZ |
8061 | no_cache=0 |
8062 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
8063 | if test "${enable_wizarddlg+set}" = set; then | |
8064 | enableval="$enable_wizarddlg" | |
a0b9e27f | 8065 | |
b1f5d087 VZ |
8066 | if test "$enableval" = yes; then |
8067 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
8068 | else | |
8069 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
8070 | fi | |
a0b9e27f | 8071 | |
b1f5d087 | 8072 | else |
a0b9e27f | 8073 | |
b1f5d087 VZ |
8074 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
8075 | if test "x$LINE" != x ; then | |
8076 | eval "DEFAULT_$LINE" | |
8077 | else | |
8078 | no_cache=1 | |
8079 | fi | |
8080 | ||
8081 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
a0b9e27f MB |
8082 | |
8083 | fi | |
b1f5d087 VZ |
8084 | |
8085 | ||
8086 | eval "$ac_cv_use_wizarddlg" | |
8087 | if test "$no_cache" != 1; then | |
8088 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
8089 | fi | |
8090 | ||
8091 | if test "$wxUSE_WIZARDDLG" = yes; then | |
a0b9e27f | 8092 | echo "$ac_t""yes" 1>&6 |
b1f5d087 | 8093 | else |
a0b9e27f | 8094 | echo "$ac_t""no" 1>&6 |
b1f5d087 | 8095 | fi |
a0b9e27f | 8096 | |
8284b0c5 MB |
8097 | |
8098 | ||
52127426 | 8099 | |
5005acfe VZ |
8100 | enablestring= |
8101 | echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6 | |
da494b40 | 8102 | echo "configure:8103: checking for --${enablestring:-enable}-menus" >&5 |
1e6feb95 VZ |
8103 | no_cache=0 |
8104 | # Check whether --enable-menus or --disable-menus was given. | |
8105 | if test "${enable_menus+set}" = set; then | |
8106 | enableval="$enable_menus" | |
a0b9e27f | 8107 | |
1e6feb95 VZ |
8108 | if test "$enableval" = yes; then |
8109 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8110 | else | |
8111 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8112 | fi | |
a0b9e27f | 8113 | |
1e6feb95 | 8114 | else |
a0b9e27f | 8115 | |
1e6feb95 VZ |
8116 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
8117 | if test "x$LINE" != x ; then | |
8118 | eval "DEFAULT_$LINE" | |
8119 | else | |
8120 | no_cache=1 | |
8121 | fi | |
8122 | ||
8123 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
a0b9e27f MB |
8124 | |
8125 | fi | |
1e6feb95 VZ |
8126 | |
8127 | ||
8128 | eval "$ac_cv_use_menus" | |
8129 | if test "$no_cache" != 1; then | |
8130 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8131 | fi | |
8132 | ||
8133 | if test "$wxUSE_MENUS" = yes; then | |
a0b9e27f | 8134 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8135 | else |
a0b9e27f | 8136 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8137 | fi |
a0b9e27f | 8138 | |
1e6feb95 | 8139 | |
5005acfe VZ |
8140 | enablestring= |
8141 | echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6 | |
da494b40 | 8142 | echo "configure:8143: checking for --${enablestring:-enable}-miniframe" >&5 |
10f2d63a VZ |
8143 | no_cache=0 |
8144 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8145 | if test "${enable_miniframe+set}" = set; then | |
8146 | enableval="$enable_miniframe" | |
a0b9e27f | 8147 | |
10f2d63a VZ |
8148 | if test "$enableval" = yes; then |
8149 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8150 | else | |
8151 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8152 | fi | |
a0b9e27f | 8153 | |
10f2d63a | 8154 | else |
a0b9e27f | 8155 | |
10f2d63a VZ |
8156 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
8157 | if test "x$LINE" != x ; then | |
8158 | eval "DEFAULT_$LINE" | |
8159 | else | |
8160 | no_cache=1 | |
8161 | fi | |
8162 | ||
8163 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
a0b9e27f MB |
8164 | |
8165 | fi | |
10f2d63a VZ |
8166 | |
8167 | ||
8168 | eval "$ac_cv_use_miniframe" | |
8169 | if test "$no_cache" != 1; then | |
8170 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8171 | fi | |
8172 | ||
8173 | if test "$wxUSE_MINIFRAME" = yes; then | |
a0b9e27f | 8174 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8175 | else |
a0b9e27f | 8176 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8177 | fi |
a0b9e27f | 8178 | |
10f2d63a | 8179 | |
5005acfe VZ |
8180 | enablestring= |
8181 | echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6 | |
da494b40 | 8182 | echo "configure:8183: checking for --${enablestring:-enable}-tooltips" >&5 |
10f2d63a VZ |
8183 | no_cache=0 |
8184 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8185 | if test "${enable_tooltips+set}" = set; then | |
8186 | enableval="$enable_tooltips" | |
a0b9e27f | 8187 | |
10f2d63a VZ |
8188 | if test "$enableval" = yes; then |
8189 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8190 | else | |
8191 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8192 | fi | |
a0b9e27f | 8193 | |
10f2d63a | 8194 | else |
a0b9e27f | 8195 | |
10f2d63a VZ |
8196 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
8197 | if test "x$LINE" != x ; then | |
8198 | eval "DEFAULT_$LINE" | |
8199 | else | |
8200 | no_cache=1 | |
8201 | fi | |
8202 | ||
8203 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
a0b9e27f MB |
8204 | |
8205 | fi | |
10f2d63a VZ |
8206 | |
8207 | ||
8208 | eval "$ac_cv_use_tooltips" | |
8209 | if test "$no_cache" != 1; then | |
8210 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8211 | fi | |
8212 | ||
8213 | if test "$wxUSE_TOOLTIPS" = yes; then | |
a0b9e27f | 8214 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8215 | else |
a0b9e27f | 8216 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8217 | fi |
a0b9e27f | 8218 | |
10f2d63a | 8219 | |
5005acfe VZ |
8220 | enablestring= |
8221 | echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6 | |
da494b40 | 8222 | echo "configure:8223: checking for --${enablestring:-enable}-splines" >&5 |
10f2d63a VZ |
8223 | no_cache=0 |
8224 | # Check whether --enable-splines or --disable-splines was given. | |
8225 | if test "${enable_splines+set}" = set; then | |
8226 | enableval="$enable_splines" | |
a0b9e27f | 8227 | |
10f2d63a VZ |
8228 | if test "$enableval" = yes; then |
8229 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8230 | else | |
8231 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8232 | fi | |
a0b9e27f | 8233 | |
10f2d63a | 8234 | else |
a0b9e27f | 8235 | |
10f2d63a VZ |
8236 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
8237 | if test "x$LINE" != x ; then | |
8238 | eval "DEFAULT_$LINE" | |
8239 | else | |
8240 | no_cache=1 | |
8241 | fi | |
8242 | ||
8243 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
a0b9e27f MB |
8244 | |
8245 | fi | |
10f2d63a VZ |
8246 | |
8247 | ||
8248 | eval "$ac_cv_use_splines" | |
8249 | if test "$no_cache" != 1; then | |
8250 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8251 | fi | |
8252 | ||
8253 | if test "$wxUSE_SPLINES" = yes; then | |
a0b9e27f | 8254 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8255 | else |
a0b9e27f | 8256 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8257 | fi |
a0b9e27f | 8258 | |
10f2d63a | 8259 | |
5005acfe VZ |
8260 | enablestring= |
8261 | echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6 | |
da494b40 | 8262 | echo "configure:8263: checking for --${enablestring:-enable}-validators" >&5 |
10f2d63a VZ |
8263 | no_cache=0 |
8264 | # Check whether --enable-validators or --disable-validators was given. | |
8265 | if test "${enable_validators+set}" = set; then | |
8266 | enableval="$enable_validators" | |
a0b9e27f | 8267 | |
10f2d63a VZ |
8268 | if test "$enableval" = yes; then |
8269 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8270 | else | |
8271 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8272 | fi | |
a0b9e27f | 8273 | |
10f2d63a | 8274 | else |
a0b9e27f | 8275 | |
10f2d63a VZ |
8276 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
8277 | if test "x$LINE" != x ; then | |
8278 | eval "DEFAULT_$LINE" | |
8279 | else | |
8280 | no_cache=1 | |
8281 | fi | |
8282 | ||
8283 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
a0b9e27f MB |
8284 | |
8285 | fi | |
10f2d63a VZ |
8286 | |
8287 | ||
8288 | eval "$ac_cv_use_validators" | |
8289 | if test "$no_cache" != 1; then | |
8290 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8291 | fi | |
8292 | ||
8293 | if test "$wxUSE_VALIDATORS" = yes; then | |
a0b9e27f | 8294 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8295 | else |
a0b9e27f | 8296 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8297 | fi |
a0b9e27f | 8298 | |
10f2d63a | 8299 | |
5005acfe VZ |
8300 | enablestring= |
8301 | echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6 | |
da494b40 | 8302 | echo "configure:8303: checking for --${enablestring:-enable}-busyinfo" >&5 |
10f2d63a VZ |
8303 | no_cache=0 |
8304 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8305 | if test "${enable_busyinfo+set}" = set; then | |
8306 | enableval="$enable_busyinfo" | |
a0b9e27f | 8307 | |
10f2d63a VZ |
8308 | if test "$enableval" = yes; then |
8309 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8310 | else | |
8311 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8312 | fi | |
a0b9e27f | 8313 | |
10f2d63a | 8314 | else |
a0b9e27f | 8315 | |
10f2d63a VZ |
8316 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8317 | if test "x$LINE" != x ; then | |
8318 | eval "DEFAULT_$LINE" | |
8319 | else | |
8320 | no_cache=1 | |
8321 | fi | |
8322 | ||
8323 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
a0b9e27f MB |
8324 | |
8325 | fi | |
10f2d63a VZ |
8326 | |
8327 | ||
8328 | eval "$ac_cv_use_busyinfo" | |
8329 | if test "$no_cache" != 1; then | |
8330 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8331 | fi | |
8332 | ||
8333 | if test "$wxUSE_BUSYINFO" = yes; then | |
a0b9e27f | 8334 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8335 | else |
a0b9e27f | 8336 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8337 | fi |
a0b9e27f | 8338 | |
10f2d63a | 8339 | |
5005acfe VZ |
8340 | enablestring= |
8341 | echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6 | |
da494b40 | 8342 | echo "configure:8343: checking for --${enablestring:-enable}-joystick" >&5 |
f6bcfd97 BP |
8343 | no_cache=0 |
8344 | # Check whether --enable-joystick or --disable-joystick was given. | |
8345 | if test "${enable_joystick+set}" = set; then | |
8346 | enableval="$enable_joystick" | |
a0b9e27f | 8347 | |
f6bcfd97 BP |
8348 | if test "$enableval" = yes; then |
8349 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8350 | else | |
8351 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8352 | fi | |
a0b9e27f | 8353 | |
f6bcfd97 | 8354 | else |
a0b9e27f | 8355 | |
f6bcfd97 BP |
8356 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8357 | if test "x$LINE" != x ; then | |
8358 | eval "DEFAULT_$LINE" | |
8359 | else | |
8360 | no_cache=1 | |
8361 | fi | |
8362 | ||
8363 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
a0b9e27f MB |
8364 | |
8365 | fi | |
f6bcfd97 BP |
8366 | |
8367 | ||
8368 | eval "$ac_cv_use_joystick" | |
8369 | if test "$no_cache" != 1; then | |
8370 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8371 | fi | |
8372 | ||
8373 | if test "$wxUSE_JOYSTICK" = yes; then | |
a0b9e27f | 8374 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8375 | else |
a0b9e27f | 8376 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8377 | fi |
a0b9e27f | 8378 | |
698dcdb6 | 8379 | |
5005acfe VZ |
8380 | enablestring= |
8381 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
da494b40 | 8382 | echo "configure:8383: checking for --${enablestring:-enable}-metafile" >&5 |
1e6feb95 VZ |
8383 | no_cache=0 |
8384 | # Check whether --enable-metafile or --disable-metafile was given. | |
8385 | if test "${enable_metafile+set}" = set; then | |
8386 | enableval="$enable_metafile" | |
a0b9e27f | 8387 | |
1e6feb95 VZ |
8388 | if test "$enableval" = yes; then |
8389 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8390 | else | |
8391 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8392 | fi | |
a0b9e27f | 8393 | |
1e6feb95 | 8394 | else |
a0b9e27f | 8395 | |
1e6feb95 VZ |
8396 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
8397 | if test "x$LINE" != x ; then | |
8398 | eval "DEFAULT_$LINE" | |
8399 | else | |
8400 | no_cache=1 | |
8401 | fi | |
8402 | ||
8403 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
8404 | |
8405 | fi | |
1e6feb95 VZ |
8406 | |
8407 | ||
8408 | eval "$ac_cv_use_metafile" | |
8409 | if test "$no_cache" != 1; then | |
8410 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8411 | fi | |
8412 | ||
8413 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 8414 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8415 | else |
a0b9e27f | 8416 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8417 | fi |
a0b9e27f | 8418 | |
1e6feb95 | 8419 | |
5005acfe VZ |
8420 | enablestring= |
8421 | echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6 | |
da494b40 | 8422 | echo "configure:8423: checking for --${enablestring:-enable}-dragimage" >&5 |
24fd6d87 VZ |
8423 | no_cache=0 |
8424 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8425 | if test "${enable_dragimage+set}" = set; then | |
8426 | enableval="$enable_dragimage" | |
a0b9e27f | 8427 | |
24fd6d87 VZ |
8428 | if test "$enableval" = yes; then |
8429 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8430 | else | |
8431 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8432 | fi | |
a0b9e27f | 8433 | |
24fd6d87 | 8434 | else |
a0b9e27f | 8435 | |
24fd6d87 VZ |
8436 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
8437 | if test "x$LINE" != x ; then | |
8438 | eval "DEFAULT_$LINE" | |
8439 | else | |
8440 | no_cache=1 | |
8441 | fi | |
8442 | ||
8443 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
a0b9e27f MB |
8444 | |
8445 | fi | |
24fd6d87 VZ |
8446 | |
8447 | ||
8448 | eval "$ac_cv_use_dragimage" | |
8449 | if test "$no_cache" != 1; then | |
8450 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8451 | fi | |
8452 | ||
8453 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
a0b9e27f | 8454 | echo "$ac_t""yes" 1>&6 |
24fd6d87 | 8455 | else |
a0b9e27f | 8456 | echo "$ac_t""no" 1>&6 |
24fd6d87 | 8457 | fi |
a0b9e27f | 8458 | |
52127426 | 8459 | |
8284b0c5 MB |
8460 | |
8461 | ||
5005acfe VZ |
8462 | enablestring= |
8463 | echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6 | |
da494b40 | 8464 | echo "configure:8465: checking for --${enablestring:-enable}-palette" >&5 |
edae8572 VZ |
8465 | no_cache=0 |
8466 | # Check whether --enable-palette or --disable-palette was given. | |
8467 | if test "${enable_palette+set}" = set; then | |
8468 | enableval="$enable_palette" | |
a0b9e27f | 8469 | |
edae8572 VZ |
8470 | if test "$enableval" = yes; then |
8471 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8472 | else | |
8473 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8474 | fi | |
a0b9e27f | 8475 | |
edae8572 | 8476 | else |
a0b9e27f | 8477 | |
edae8572 VZ |
8478 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
8479 | if test "x$LINE" != x ; then | |
8480 | eval "DEFAULT_$LINE" | |
8481 | else | |
8482 | no_cache=1 | |
8483 | fi | |
8484 | ||
8485 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
a0b9e27f MB |
8486 | |
8487 | fi | |
edae8572 VZ |
8488 | |
8489 | ||
8490 | eval "$ac_cv_use_palette" | |
8491 | if test "$no_cache" != 1; then | |
8492 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8493 | fi | |
8494 | ||
8495 | if test "$wxUSE_PALETTE" = yes; then | |
a0b9e27f | 8496 | echo "$ac_t""yes" 1>&6 |
edae8572 | 8497 | else |
a0b9e27f | 8498 | echo "$ac_t""no" 1>&6 |
edae8572 | 8499 | fi |
a0b9e27f | 8500 | |
edae8572 | 8501 | |
5005acfe VZ |
8502 | enablestring= |
8503 | echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6 | |
da494b40 | 8504 | echo "configure:8505: checking for --${enablestring:-enable}-image" >&5 |
0046ff7c VS |
8505 | no_cache=0 |
8506 | # Check whether --enable-image or --disable-image was given. | |
8507 | if test "${enable_image+set}" = set; then | |
8508 | enableval="$enable_image" | |
a0b9e27f | 8509 | |
0046ff7c VS |
8510 | if test "$enableval" = yes; then |
8511 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8512 | else | |
8513 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8514 | fi | |
a0b9e27f | 8515 | |
0046ff7c | 8516 | else |
a0b9e27f | 8517 | |
0046ff7c VS |
8518 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8519 | if test "x$LINE" != x ; then | |
8520 | eval "DEFAULT_$LINE" | |
8521 | else | |
8522 | no_cache=1 | |
8523 | fi | |
8524 | ||
8525 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
a0b9e27f MB |
8526 | |
8527 | fi | |
0046ff7c VS |
8528 | |
8529 | ||
8530 | eval "$ac_cv_use_image" | |
8531 | if test "$no_cache" != 1; then | |
8532 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8533 | fi | |
8534 | ||
8535 | if test "$wxUSE_IMAGE" = yes; then | |
a0b9e27f | 8536 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8537 | else |
a0b9e27f | 8538 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8539 | fi |
a0b9e27f | 8540 | |
0046ff7c | 8541 | |
5005acfe VZ |
8542 | enablestring= |
8543 | echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6 | |
da494b40 | 8544 | echo "configure:8545: checking for --${enablestring:-enable}-gif" >&5 |
10f2d63a VZ |
8545 | no_cache=0 |
8546 | # Check whether --enable-gif or --disable-gif was given. | |
8547 | if test "${enable_gif+set}" = set; then | |
8548 | enableval="$enable_gif" | |
a0b9e27f | 8549 | |
10f2d63a VZ |
8550 | if test "$enableval" = yes; then |
8551 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8552 | else | |
8553 | ac_cv_use_gif='wxUSE_GIF=no' | |
8554 | fi | |
a0b9e27f | 8555 | |
10f2d63a | 8556 | else |
a0b9e27f | 8557 | |
10f2d63a VZ |
8558 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8559 | if test "x$LINE" != x ; then | |
8560 | eval "DEFAULT_$LINE" | |
8561 | else | |
8562 | no_cache=1 | |
8563 | fi | |
8564 | ||
8565 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
a0b9e27f MB |
8566 | |
8567 | fi | |
10f2d63a VZ |
8568 | |
8569 | ||
8570 | eval "$ac_cv_use_gif" | |
8571 | if test "$no_cache" != 1; then | |
8572 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8573 | fi | |
8574 | ||
8575 | if test "$wxUSE_GIF" = yes; then | |
a0b9e27f | 8576 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8577 | else |
a0b9e27f | 8578 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8579 | fi |
a0b9e27f | 8580 | |
10f2d63a | 8581 | |
5005acfe VZ |
8582 | enablestring= |
8583 | echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6 | |
da494b40 | 8584 | echo "configure:8585: checking for --${enablestring:-enable}-pcx" >&5 |
10f2d63a VZ |
8585 | no_cache=0 |
8586 | # Check whether --enable-pcx or --disable-pcx was given. | |
8587 | if test "${enable_pcx+set}" = set; then | |
8588 | enableval="$enable_pcx" | |
a0b9e27f | 8589 | |
10f2d63a VZ |
8590 | if test "$enableval" = yes; then |
8591 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8592 | else | |
8593 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8594 | fi | |
a0b9e27f | 8595 | |
10f2d63a | 8596 | else |
a0b9e27f | 8597 | |
10f2d63a VZ |
8598 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8599 | if test "x$LINE" != x ; then | |
8600 | eval "DEFAULT_$LINE" | |
8601 | else | |
8602 | no_cache=1 | |
8603 | fi | |
8604 | ||
8605 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
a0b9e27f MB |
8606 | |
8607 | fi | |
10f2d63a VZ |
8608 | |
8609 | ||
8610 | eval "$ac_cv_use_pcx" | |
8611 | if test "$no_cache" != 1; then | |
8612 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8613 | fi | |
8614 | ||
8615 | if test "$wxUSE_PCX" = yes; then | |
a0b9e27f | 8616 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8617 | else |
a0b9e27f | 8618 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8619 | fi |
a0b9e27f | 8620 | |
10f2d63a | 8621 | |
5005acfe VZ |
8622 | enablestring= |
8623 | echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6 | |
da494b40 | 8624 | echo "configure:8625: checking for --${enablestring:-enable}-iff" >&5 |
4b6b4dfc RR |
8625 | no_cache=0 |
8626 | # Check whether --enable-iff or --disable-iff was given. | |
8627 | if test "${enable_iff+set}" = set; then | |
8628 | enableval="$enable_iff" | |
a0b9e27f | 8629 | |
4b6b4dfc RR |
8630 | if test "$enableval" = yes; then |
8631 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8632 | else | |
8633 | ac_cv_use_iff='wxUSE_IFF=no' | |
8634 | fi | |
a0b9e27f | 8635 | |
4b6b4dfc | 8636 | else |
a0b9e27f | 8637 | |
4b6b4dfc RR |
8638 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
8639 | if test "x$LINE" != x ; then | |
8640 | eval "DEFAULT_$LINE" | |
8641 | else | |
8642 | no_cache=1 | |
8643 | fi | |
8644 | ||
8645 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
a0b9e27f MB |
8646 | |
8647 | fi | |
4b6b4dfc RR |
8648 | |
8649 | ||
8650 | eval "$ac_cv_use_iff" | |
8651 | if test "$no_cache" != 1; then | |
8652 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8653 | fi | |
8654 | ||
8655 | if test "$wxUSE_IFF" = yes; then | |
a0b9e27f | 8656 | echo "$ac_t""yes" 1>&6 |
4b6b4dfc | 8657 | else |
a0b9e27f | 8658 | echo "$ac_t""no" 1>&6 |
4b6b4dfc | 8659 | fi |
a0b9e27f | 8660 | |
4b6b4dfc | 8661 | |
5005acfe VZ |
8662 | enablestring= |
8663 | echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6 | |
da494b40 | 8664 | echo "configure:8665: checking for --${enablestring:-enable}-pnm" >&5 |
10f2d63a VZ |
8665 | no_cache=0 |
8666 | # Check whether --enable-pnm or --disable-pnm was given. | |
8667 | if test "${enable_pnm+set}" = set; then | |
8668 | enableval="$enable_pnm" | |
a0b9e27f | 8669 | |
10f2d63a VZ |
8670 | if test "$enableval" = yes; then |
8671 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8672 | else | |
8673 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8674 | fi | |
a0b9e27f | 8675 | |
10f2d63a | 8676 | else |
a0b9e27f | 8677 | |
10f2d63a VZ |
8678 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8679 | if test "x$LINE" != x ; then | |
8680 | eval "DEFAULT_$LINE" | |
8681 | else | |
8682 | no_cache=1 | |
8683 | fi | |
8684 | ||
8685 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
a0b9e27f MB |
8686 | |
8687 | fi | |
10f2d63a VZ |
8688 | |
8689 | ||
8690 | eval "$ac_cv_use_pnm" | |
8691 | if test "$no_cache" != 1; then | |
8692 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8693 | fi | |
8694 | ||
8695 | if test "$wxUSE_PNM" = yes; then | |
a0b9e27f | 8696 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8697 | else |
a0b9e27f | 8698 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8699 | fi |
a0b9e27f | 8700 | |
10f2d63a | 8701 | |
5005acfe VZ |
8702 | enablestring= |
8703 | echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6 | |
da494b40 | 8704 | echo "configure:8705: checking for --${enablestring:-enable}-xpm" >&5 |
0046ff7c | 8705 | no_cache=0 |
69d27ff7 MB |
8706 | # Check whether --enable-xpm or --disable-xpm was given. |
8707 | if test "${enable_xpm+set}" = set; then | |
8708 | enableval="$enable_xpm" | |
a0b9e27f | 8709 | |
0046ff7c | 8710 | if test "$enableval" = yes; then |
69d27ff7 | 8711 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8712 | else |
69d27ff7 | 8713 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8714 | fi |
a0b9e27f | 8715 | |
0046ff7c | 8716 | else |
a0b9e27f | 8717 | |
0046ff7c VS |
8718 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8719 | if test "x$LINE" != x ; then | |
8720 | eval "DEFAULT_$LINE" | |
8721 | else | |
8722 | no_cache=1 | |
8723 | fi | |
8724 | ||
69d27ff7 | 8725 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
a0b9e27f MB |
8726 | |
8727 | fi | |
0046ff7c VS |
8728 | |
8729 | ||
69d27ff7 | 8730 | eval "$ac_cv_use_xpm" |
0046ff7c | 8731 | if test "$no_cache" != 1; then |
69d27ff7 | 8732 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8733 | fi |
8734 | ||
8735 | if test "$wxUSE_XPM" = yes; then | |
a0b9e27f | 8736 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8737 | else |
a0b9e27f | 8738 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8739 | fi |
a0b9e27f | 8740 | |
0046ff7c | 8741 | |
5005acfe VZ |
8742 | enablestring= |
8743 | echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6 | |
da494b40 | 8744 | echo "configure:8745: checking for --${enablestring:-enable}-ico_cur" >&5 |
658974ae | 8745 | no_cache=0 |
c7206e64 VS |
8746 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8747 | if test "${enable_ico_cur+set}" = set; then | |
8748 | enableval="$enable_ico_cur" | |
a0b9e27f | 8749 | |
658974ae | 8750 | if test "$enableval" = yes; then |
c7206e64 | 8751 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8752 | else |
c7206e64 | 8753 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 8754 | fi |
a0b9e27f | 8755 | |
658974ae | 8756 | else |
a0b9e27f | 8757 | |
658974ae VS |
8758 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
8759 | if test "x$LINE" != x ; then | |
8760 | eval "DEFAULT_$LINE" | |
8761 | else | |
8762 | no_cache=1 | |
8763 | fi | |
8764 | ||
c7206e64 | 8765 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
a0b9e27f MB |
8766 | |
8767 | fi | |
658974ae VS |
8768 | |
8769 | ||
c7206e64 | 8770 | eval "$ac_cv_use_ico_cur" |
658974ae | 8771 | if test "$no_cache" != 1; then |
c7206e64 | 8772 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8773 | fi |
8774 | ||
8775 | if test "$wxUSE_ICO_CUR" = yes; then | |
a0b9e27f | 8776 | echo "$ac_t""yes" 1>&6 |
658974ae | 8777 | else |
a0b9e27f | 8778 | echo "$ac_t""no" 1>&6 |
658974ae | 8779 | fi |
a0b9e27f | 8780 | |
658974ae | 8781 | |
b12915c1 VZ |
8782 | fi |
8783 | ||
d558c907 VS |
8784 | case "${host}" in |
8785 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 MB |
8786 | PATH_IFS=';' |
8787 | LEX_STEM="lexyy" | |
d558c907 VS |
8788 | ;; |
8789 | *) | |
8790 | PATH_IFS=':' | |
8791 | LEX_STEM="lex.yy" | |
8792 | ;; | |
8793 | esac | |
8794 | ||
8284b0c5 MB |
8795 | |
8796 | ||
10f2d63a VZ |
8797 | echo "saving argument cache $wx_arg_cache_file" |
8798 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
a0b9e27f | 8799 | |
52127426 | 8800 | |
8284b0c5 | 8801 | |
a0b9e27f | 8802 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 |
da494b40 | 8803 | echo "configure:8804: checking for toolkit" >&5 |
89e6bf6d VZ |
8804 | |
8805 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
8806 | if test "$wxUSE_WINE" = "yes"; then | |
8807 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
8808 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
8809 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
8810 | fi | |
10f2d63a VZ |
8811 | |
8812 | if test "$wxUSE_GUI" = "yes"; then | |
8813 | ||
3a922bb4 | 8814 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 8815 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
3a922bb4 | 8816 | fi |
b12915c1 | 8817 | |
3a922bb4 RL |
8818 | if test "$TOOLKIT_GIVEN" = 1; then |
8819 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8820 | var=wxUSE_$toolkit | |
8821 | eval "value=\$${var}" | |
8822 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8823 | done | |
10f2d63a | 8824 | else |
3a922bb4 RL |
8825 | for toolkit in `echo $ALL_TOOLKITS`; do |
8826 | if test "$has_toolkit_in_cache" != 1; then | |
8827 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8828 | else | |
8829 | var=DEFAULT_wxUSE_$toolkit | |
8830 | fi | |
8831 | eval "wxUSE_$toolkit=\$${var}" | |
8832 | done | |
10f2d63a | 8833 | fi |
10f2d63a | 8834 | |
3a922bb4 | 8835 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
89e6bf6d | 8836 | + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8837 | |
d558c907 | 8838 | case "${host}" in |
6fa882bd | 8839 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8840 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8841 | esac |
10f2d63a | 8842 | |
3a922bb4 RL |
8843 | case "$NUM_TOOLKITS" in |
8844 | 1) | |
8845 | ;; | |
8846 | 0) | |
a0b9e27f | 8847 | { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; } |
3a922bb4 RL |
8848 | ;; |
8849 | *) | |
a0b9e27f | 8850 | { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; } |
3a922bb4 | 8851 | esac |
10f2d63a | 8852 | |
3a922bb4 RL |
8853 | for toolkit in `echo $ALL_TOOLKITS`; do |
8854 | var=wxUSE_$toolkit | |
8855 | eval "value=\$${var}" | |
8856 | if test "x$value" != x; then | |
8857 | cache_var=CACHE_$toolkit | |
8858 | eval "cache=\$${cache_var}" | |
8859 | if test "$cache" = 1; then | |
8860 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8861 | fi | |
8862 | if test "$value" = 1; then | |
8863 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
a0b9e27f | 8864 | echo "$ac_t""$toolkit_echo" 1>&6 |
3a922bb4 RL |
8865 | fi |
8866 | fi | |
8867 | done | |
10f2d63a | 8868 | else |
a0b9e27f | 8869 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8870 | fi |
8871 | ||
43d99b6d VS |
8872 | wants_win32=0 |
8873 | doesnt_want_win32=0 | |
17234b26 MB |
8874 | case "${host}" in |
8875 | *-*-cygwin*) | |
8876 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
8877 | wants_win32=1 |
8878 | else | |
8879 | doesnt_want_win32=1 | |
17234b26 MB |
8880 | fi |
8881 | ;; | |
8882 | *-*-mingw*) | |
43d99b6d | 8883 | wants_win32=1 |
17234b26 MB |
8884 | ;; |
8885 | esac | |
8886 | ||
89e6bf6d VZ |
8887 | if test "$wxUSE_WINE" = "yes"; then |
8888 | wants_win32=1 | |
8889 | CC=winegcc | |
8890 | CXX=wineg++ | |
8891 | RESCOMP=wrc | |
8892 | fi | |
8893 | ||
43d99b6d | 8894 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
8895 | USE_UNIX=0 |
8896 | USE_WIN32=1 | |
a0b9e27f | 8897 | cat >> confdefs.h <<\EOF |
17234b26 | 8898 | #define __WIN32__ 1 |
a0b9e27f | 8899 | EOF |
17234b26 | 8900 | |
a0b9e27f | 8901 | cat >> confdefs.h <<\EOF |
17234b26 | 8902 | #define __WIN95__ 1 |
a0b9e27f | 8903 | EOF |
17234b26 | 8904 | |
a0b9e27f | 8905 | cat >> confdefs.h <<\EOF |
17234b26 | 8906 | #define __WINDOWS__ 1 |
a0b9e27f | 8907 | EOF |
17234b26 | 8908 | |
a0b9e27f | 8909 | cat >> confdefs.h <<\EOF |
17234b26 | 8910 | #define __GNUWIN32__ 1 |
a0b9e27f | 8911 | EOF |
17234b26 | 8912 | |
a0b9e27f | 8913 | cat >> confdefs.h <<\EOF |
17234b26 | 8914 | #define STRICT 1 |
a0b9e27f | 8915 | EOF |
17234b26 | 8916 | |
a0b9e27f | 8917 | cat >> confdefs.h <<\EOF |
17234b26 | 8918 | #define WINVER 0x0400 |
a0b9e27f | 8919 | EOF |
17234b26 | 8920 | |
43d99b6d VS |
8921 | fi |
8922 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
8923 | USE_UNIX=1 |
8924 | USE_WIN32=0 | |
8925 | fi | |
8926 | ||
8927 | if test "$USE_UNIX" = 1 ; then | |
8928 | wxUSE_UNIX=yes | |
a0b9e27f | 8929 | cat >> confdefs.h <<\EOF |
17234b26 | 8930 | #define __UNIX__ 1 |
a0b9e27f | 8931 | EOF |
17234b26 MB |
8932 | |
8933 | fi | |
8934 | ||
8284b0c5 | 8935 | |
a0b9e27f | 8936 | cat > confcache <<\EOF |
10f2d63a VZ |
8937 | # This file is a shell script that caches the results of configure |
8938 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
8939 | # scripts and configure runs. It is not useful on other systems. |
8940 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8941 | # |
a0b9e27f MB |
8942 | # By default, configure uses ./config.cache as the cache file, |
8943 | # creating it if it does not exist already. You can give configure | |
8944 | # the --cache-file=FILE option to use a different cache file; that is | |
8945 | # what configure does when it calls configure scripts in | |
8946 | # subdirectories, so they share the cache. | |
8947 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8948 | # config.status only pays attention to the cache file if you give it the | |
8949 | # --recheck option to rerun configure. | |
10f2d63a | 8950 | # |
a0b9e27f | 8951 | EOF |
10f2d63a VZ |
8952 | # The following way of writing the cache mishandles newlines in values, |
8953 | # but we know of no workaround that is simple, portable, and efficient. | |
8954 | # So, don't put newlines in cache variables' values. | |
8955 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8956 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
8957 | (set) 2>&1 | |
8958 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8959 | *ac_space=\ *) | |
8960 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8961 | # turns \\\\ into \\, and sed turns \\ into \). | |
8962 | sed -n \ | |
8963 | -e "s/'/'\\\\''/g" \ | |
8964 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8965 | ;; | |
8966 | *) | |
8967 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8968 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8969 | ;; | |
8970 | esac >> confcache | |
8971 | if cmp -s $cache_file confcache; then | |
8972 | : | |
8973 | else | |
10f2d63a | 8974 | if test -w $cache_file; then |
a0b9e27f MB |
8975 | echo "updating cache $cache_file" |
8976 | cat confcache > $cache_file | |
10f2d63a VZ |
8977 | else |
8978 | echo "not updating unwritable cache $cache_file" | |
8979 | fi | |
8980 | fi | |
8981 | rm -f confcache | |
8982 | ||
a0b9e27f | 8983 | |
e59890c3 | 8984 | if test "$build" != "$host" ; then |
9d353d4a | 8985 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8986 | CC=$host_alias-gcc |
8987 | CXX=$host_alias-c++ | |
8988 | AR=$host_alias-ar | |
8989 | RANLIB=$host_alias-ranlib | |
8990 | DLLTOOL=$host_alias-dlltool | |
8991 | RESCOMP=$host_alias-windres | |
8992 | LD=$host_alias-ld | |
8993 | NM=$host_alias-nm | |
8994 | STRIP=$host_alias-strip | |
8995 | else | |
a0b9e27f | 8996 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } |
3a922bb4 | 8997 | fi |
10f2d63a VZ |
8998 | fi |
8999 | ||
ec603395 | 9000 | CFLAGS=${CFLAGS:=} |
a0b9e27f | 9001 | # Extract the first word of "gcc", so it can be a program name with args. |
8284b0c5 | 9002 | set dummy gcc; ac_word=$2 |
a0b9e27f | 9003 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
da494b40 | 9004 | echo "configure:9005: checking for $ac_word" >&5 |
a0b9e27f MB |
9005 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
9006 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
9007 | else |
9008 | if test -n "$CC"; then | |
9009 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 9010 | else |
a0b9e27f MB |
9011 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9012 | ac_dummy="$PATH" | |
9013 | for ac_dir in $ac_dummy; do | |
9014 | test -z "$ac_dir" && ac_dir=. | |
9015 | if test -f $ac_dir/$ac_word; then | |
9016 | ac_cv_prog_CC="gcc" | |
9017 | break | |
9018 | fi | |
9019 | done | |
9020 | IFS="$ac_save_ifs" | |
10f2d63a | 9021 | fi |
6232543b | 9022 | fi |
a0b9e27f | 9023 | CC="$ac_cv_prog_CC" |
6232543b | 9024 | if test -n "$CC"; then |
a0b9e27f | 9025 | echo "$ac_t""$CC" 1>&6 |
247f5006 | 9026 | else |
a0b9e27f | 9027 | echo "$ac_t""no" 1>&6 |
247f5006 VZ |
9028 | fi |
9029 | ||
5c6fa7d2 RR |
9030 | if test -z "$CC"; then |
9031 | # Extract the first word of "cc", so it can be a program name with args. | |
9032 | set dummy cc; ac_word=$2 | |
a0b9e27f | 9033 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
da494b40 | 9034 | echo "configure:9035: checking for $ac_word" >&5 |
a0b9e27f MB |
9035 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
9036 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 RR |
9037 | else |
9038 | if test -n "$CC"; then | |
9039 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9040 | else | |
a0b9e27f | 9041 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5c6fa7d2 | 9042 | ac_prog_rejected=no |
a0b9e27f MB |
9043 | ac_dummy="$PATH" |
9044 | for ac_dir in $ac_dummy; do | |
9045 | test -z "$ac_dir" && ac_dir=. | |
9046 | if test -f $ac_dir/$ac_word; then | |
9047 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
9048 | ac_prog_rejected=yes | |
9049 | continue | |
9050 | fi | |
9051 | ac_cv_prog_CC="cc" | |
9052 | break | |
9053 | fi | |
9054 | done | |
9055 | IFS="$ac_save_ifs" | |
328a083c RR |
9056 | if test $ac_prog_rejected = yes; then |
9057 | # We found a bogon in the path, so make sure we never use it. | |
9058 | set dummy $ac_cv_prog_CC | |
9059 | shift | |
a0b9e27f | 9060 | if test $# -gt 0; then |
328a083c | 9061 | # We chose a different compiler from the bogus one. |
1e487827 VS |
9062 | # However, it has the same basename, so the bogon will be chosen |
9063 | # first if we set CC to just the basename; use the full file name. | |
9064 | shift | |
a0b9e27f | 9065 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
9066 | shift |
9067 | ac_cv_prog_CC="$@" | |
703e0a69 | 9068 | fi |
1e487827 VS |
9069 | fi |
9070 | fi | |
9071 | fi | |
a0b9e27f | 9072 | CC="$ac_cv_prog_CC" |
1e487827 | 9073 | if test -n "$CC"; then |
a0b9e27f | 9074 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 9075 | else |
a0b9e27f | 9076 | echo "$ac_t""no" 1>&6 |
703e0a69 | 9077 | fi |
1e487827 | 9078 | |
a0b9e27f MB |
9079 | if test -z "$CC"; then |
9080 | case "`uname -s`" in | |
9081 | *win32* | *WIN32*) | |
9082 | # Extract the first word of "cl", so it can be a program name with args. | |
9083 | set dummy cl; ac_word=$2 | |
9084 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
da494b40 | 9085 | echo "configure:9086: checking for $ac_word" >&5 |
a0b9e27f MB |
9086 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
9087 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf VS |
9088 | else |
9089 | if test -n "$CC"; then | |
9090 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9091 | else | |
a0b9e27f MB |
9092 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9093 | ac_dummy="$PATH" | |
9094 | for ac_dir in $ac_dummy; do | |
9095 | test -z "$ac_dir" && ac_dir=. | |
9096 | if test -f $ac_dir/$ac_word; then | |
9097 | ac_cv_prog_CC="cl" | |
9098 | break | |
9099 | fi | |
9100 | done | |
9101 | IFS="$ac_save_ifs" | |
f09359cf VS |
9102 | fi |
9103 | fi | |
a0b9e27f | 9104 | CC="$ac_cv_prog_CC" |
f09359cf | 9105 | if test -n "$CC"; then |
a0b9e27f | 9106 | echo "$ac_t""$CC" 1>&6 |
f09359cf | 9107 | else |
a0b9e27f | 9108 | echo "$ac_t""no" 1>&6 |
247f5006 | 9109 | fi |
a0b9e27f MB |
9110 | ;; |
9111 | esac | |
8284b0c5 | 9112 | fi |
a0b9e27f | 9113 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
5c6fa7d2 | 9114 | fi |
1e487827 | 9115 | |
a0b9e27f | 9116 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
da494b40 | 9117 | echo "configure:9118: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
f09359cf | 9118 | |
a0b9e27f MB |
9119 | ac_ext=c |
9120 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9121 | ac_cpp='$CPP $CPPFLAGS' | |
9122 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9123 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9124 | cross_compiling=$ac_cv_prog_cc_cross | |
f09359cf | 9125 | |
a0b9e27f | 9126 | cat > conftest.$ac_ext << EOF |
247f5006 | 9127 | |
da494b40 | 9128 | #line 9129 "configure" |
a0b9e27f | 9129 | #include "confdefs.h" |
247f5006 | 9130 | |
a0b9e27f MB |
9131 | main(){return(0);} |
9132 | EOF | |
da494b40 | 9133 | if { (eval echo configure:9134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9134 | ac_cv_prog_cc_works=yes |
9135 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9136 | if (./conftest; exit) 2>/dev/null; then | |
9137 | ac_cv_prog_cc_cross=no | |
698dcdb6 | 9138 | else |
a0b9e27f | 9139 | ac_cv_prog_cc_cross=yes |
698dcdb6 | 9140 | fi |
7b4a847f | 9141 | else |
a0b9e27f MB |
9142 | echo "configure: failed program was:" >&5 |
9143 | cat conftest.$ac_ext >&5 | |
9144 | ac_cv_prog_cc_works=no | |
52127426 | 9145 | fi |
a0b9e27f MB |
9146 | rm -fr conftest* |
9147 | ac_ext=c | |
9148 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9149 | ac_cpp='$CPP $CPPFLAGS' | |
9150 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9151 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9152 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 9153 | |
a0b9e27f MB |
9154 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
9155 | if test $ac_cv_prog_cc_works = no; then | |
9156 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
9157 | fi | |
9158 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
da494b40 | 9159 | echo "configure:9160: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9160 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
9161 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 9162 | |
a0b9e27f | 9163 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
da494b40 | 9164 | echo "configure:9165: checking whether we are using GNU C" >&5 |
a0b9e27f MB |
9165 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
9166 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9167 | else |
a0b9e27f MB |
9168 | cat > conftest.c <<EOF |
9169 | #ifdef __GNUC__ | |
9170 | yes; | |
8284b0c5 | 9171 | #endif |
a0b9e27f | 9172 | EOF |
da494b40 | 9173 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f | 9174 | ac_cv_prog_gcc=yes |
5c6fa7d2 | 9175 | else |
a0b9e27f | 9176 | ac_cv_prog_gcc=no |
8284b0c5 MB |
9177 | fi |
9178 | fi | |
1e487827 | 9179 | |
a0b9e27f | 9180 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
f09359cf | 9181 | |
a0b9e27f MB |
9182 | if test $ac_cv_prog_gcc = yes; then |
9183 | GCC=yes | |
9184 | else | |
9185 | GCC= | |
9186 | fi | |
247f5006 | 9187 | |
a0b9e27f MB |
9188 | ac_test_CFLAGS="${CFLAGS+set}" |
9189 | ac_save_CFLAGS="$CFLAGS" | |
9190 | CFLAGS= | |
9191 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
da494b40 | 9192 | echo "configure:9193: checking whether ${CC-cc} accepts -g" >&5 |
a0b9e27f MB |
9193 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
9194 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9195 | else | |
9196 | echo 'void f(){}' > conftest.c | |
9197 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
9198 | ac_cv_prog_cc_g=yes |
9199 | else | |
a0b9e27f | 9200 | ac_cv_prog_cc_g=no |
10f2d63a | 9201 | fi |
a0b9e27f MB |
9202 | rm -f conftest* |
9203 | ||
10f2d63a | 9204 | fi |
a0b9e27f MB |
9205 | |
9206 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
f09359cf | 9207 | if test "$ac_test_CFLAGS" = set; then |
a0b9e27f | 9208 | CFLAGS="$ac_save_CFLAGS" |
f09359cf VS |
9209 | elif test $ac_cv_prog_cc_g = yes; then |
9210 | if test "$GCC" = yes; then | |
10f2d63a VZ |
9211 | CFLAGS="-g -O2" |
9212 | else | |
f09359cf | 9213 | CFLAGS="-g" |
10f2d63a | 9214 | fi |
5c0a20c3 | 9215 | else |
f09359cf VS |
9216 | if test "$GCC" = yes; then |
9217 | CFLAGS="-O2" | |
9218 | else | |
9219 | CFLAGS= | |
9220 | fi | |
10f2d63a VZ |
9221 | fi |
9222 | ||
9223 | ||
a0b9e27f | 9224 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
da494b40 | 9225 | echo "configure:9226: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
9226 | # On Suns, sometimes $CPP names a directory. |
9227 | if test -n "$CPP" && test -d "$CPP"; then | |
9228 | CPP= | |
9229 | fi | |
9230 | if test -z "$CPP"; then | |
a0b9e27f MB |
9231 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
9232 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9233 | else | |
9234 | # This must be in double quotes, not single quotes, because CPP may get | |
9235 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
9236 | CPP="${CC-cc} -E" | |
10f2d63a | 9237 | # On the NeXT, cc -E runs the code through the compiler's parser, |
a0b9e27f MB |
9238 | # not just through cpp. |
9239 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 9240 | #line 9241 "configure" |
10f2d63a VZ |
9241 | #include "confdefs.h" |
9242 | #include <assert.h> | |
a0b9e27f MB |
9243 | Syntax Error |
9244 | EOF | |
9245 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 9246 | { (eval echo configure:9247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9247 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9248 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9249 | : |
9250 | else | |
a0b9e27f MB |
9251 | echo "$ac_err" >&5 |
9252 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9253 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9254 | rm -rf conftest* |
9255 | CPP="${CC-cc} -E -traditional-cpp" | |
9256 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 9257 | #line 9258 "configure" |
f09359cf | 9258 | #include "confdefs.h" |
a0b9e27f MB |
9259 | #include <assert.h> |
9260 | Syntax Error | |
9261 | EOF | |
9262 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 9263 | { (eval echo configure:9264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9264 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9265 | if test -z "$ac_err"; then | |
9266 | : | |
247f5006 | 9267 | else |
a0b9e27f MB |
9268 | echo "$ac_err" >&5 |
9269 | echo "configure: failed program was:" >&5 | |
f09359cf | 9270 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9271 | rm -rf conftest* |
9272 | CPP="${CC-cc} -nologo -E" | |
9273 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 9274 | #line 9275 "configure" |
10f2d63a VZ |
9275 | #include "confdefs.h" |
9276 | #include <assert.h> | |
a0b9e27f MB |
9277 | Syntax Error |
9278 | EOF | |
9279 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 9280 | { (eval echo configure:9281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9281 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9282 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9283 | : |
9284 | else | |
a0b9e27f MB |
9285 | echo "$ac_err" >&5 |
9286 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9287 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9288 | rm -rf conftest* |
9289 | CPP=/lib/cpp | |
579d8138 | 9290 | fi |
a0b9e27f | 9291 | rm -f conftest* |
52127426 | 9292 | fi |
a0b9e27f | 9293 | rm -f conftest* |
8284b0c5 | 9294 | fi |
a0b9e27f MB |
9295 | rm -f conftest* |
9296 | ac_cv_prog_CPP="$CPP" | |
9297 | fi | |
9298 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 9299 | else |
a0b9e27f | 9300 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 9301 | fi |
a0b9e27f | 9302 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 9303 | |
a0b9e27f MB |
9304 | if test $ac_cv_prog_gcc = yes; then |
9305 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
da494b40 | 9306 | echo "configure:9307: checking whether ${CC-cc} needs -traditional" >&5 |
a0b9e27f MB |
9307 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
9308 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9309 | else |
9310 | ac_pattern="Autoconf.*'x'" | |
a0b9e27f | 9311 | cat > conftest.$ac_ext <<EOF |
da494b40 | 9312 | #line 9313 "configure" |
10f2d63a VZ |
9313 | #include "confdefs.h" |
9314 | #include <sgtty.h> | |
9315 | Autoconf TIOCGETP | |
a0b9e27f | 9316 | EOF |
10f2d63a VZ |
9317 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9318 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9319 | rm -rf conftest* |
10f2d63a VZ |
9320 | ac_cv_prog_gcc_traditional=yes |
9321 | else | |
a0b9e27f | 9322 | rm -rf conftest* |
10f2d63a VZ |
9323 | ac_cv_prog_gcc_traditional=no |
9324 | fi | |
9325 | rm -f conftest* | |
9326 | ||
8284b0c5 | 9327 | |
10f2d63a | 9328 | if test $ac_cv_prog_gcc_traditional = no; then |
a0b9e27f | 9329 | cat > conftest.$ac_ext <<EOF |
da494b40 | 9330 | #line 9331 "configure" |
10f2d63a VZ |
9331 | #include "confdefs.h" |
9332 | #include <termio.h> | |
9333 | Autoconf TCGETA | |
a0b9e27f | 9334 | EOF |
10f2d63a VZ |
9335 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9336 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9337 | rm -rf conftest* |
10f2d63a VZ |
9338 | ac_cv_prog_gcc_traditional=yes |
9339 | fi | |
9340 | rm -f conftest* | |
9341 | ||
9342 | fi | |
9343 | fi | |
a0b9e27f MB |
9344 | |
9345 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
9346 | if test $ac_cv_prog_gcc_traditional = yes; then |
9347 | CC="$CC -traditional" | |
9348 | fi | |
9349 | fi | |
9350 | ||
8284b0c5 MB |
9351 | |
9352 | ||
a0b9e27f MB |
9353 | ac_ext=C |
9354 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 9355 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
9356 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9357 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9358 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9359 | |
698dcdb6 | 9360 | |
ec603395 | 9361 | CXXFLAGS=${CXXFLAGS:=} |
a0b9e27f MB |
9362 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
9363 | do | |
9364 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9365 | set dummy $ac_prog; ac_word=$2 | |
9366 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
da494b40 | 9367 | echo "configure:9368: checking for $ac_word" >&5 |
a0b9e27f MB |
9368 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
9369 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9370 | else |
9371 | if test -n "$CXX"; then | |
9372 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
9373 | else | |
a0b9e27f MB |
9374 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9375 | ac_dummy="$PATH" | |
9376 | for ac_dir in $ac_dummy; do | |
9377 | test -z "$ac_dir" && ac_dir=. | |
9378 | if test -f $ac_dir/$ac_word; then | |
9379 | ac_cv_prog_CXX="$ac_prog" | |
9380 | break | |
9381 | fi | |
9382 | done | |
9383 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9384 | fi |
9385 | fi | |
a0b9e27f | 9386 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 9387 | if test -n "$CXX"; then |
a0b9e27f | 9388 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9389 | else |
a0b9e27f | 9390 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9391 | fi |
9392 | ||
a0b9e27f | 9393 | test -n "$CXX" && break |
10f2d63a | 9394 | done |
a0b9e27f | 9395 | test -n "$CXX" || CXX="gcc" |
f09359cf | 9396 | |
a0b9e27f MB |
9397 | |
9398 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
da494b40 | 9399 | echo "configure:9400: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
a0b9e27f MB |
9400 | |
9401 | ac_ext=C | |
9402 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9403 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9404 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9405 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9406 | cross_compiling=$ac_cv_prog_cxx_cross | |
9407 | ||
9408 | cat > conftest.$ac_ext << EOF | |
9409 | ||
da494b40 | 9410 | #line 9411 "configure" |
a0b9e27f MB |
9411 | #include "confdefs.h" |
9412 | ||
9413 | int main(){return(0);} | |
9414 | EOF | |
da494b40 | 9415 | if { (eval echo configure:9416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9416 | ac_cv_prog_cxx_works=yes |
9417 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9418 | if (./conftest; exit) 2>/dev/null; then | |
9419 | ac_cv_prog_cxx_cross=no | |
9420 | else | |
9421 | ac_cv_prog_cxx_cross=yes | |
9422 | fi | |
8284b0c5 | 9423 | else |
a0b9e27f MB |
9424 | echo "configure: failed program was:" >&5 |
9425 | cat conftest.$ac_ext >&5 | |
9426 | ac_cv_prog_cxx_works=no | |
8284b0c5 | 9427 | fi |
a0b9e27f MB |
9428 | rm -fr conftest* |
9429 | ac_ext=C | |
9430 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9431 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9432 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9433 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9434 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9435 | |
a0b9e27f MB |
9436 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
9437 | if test $ac_cv_prog_cxx_works = no; then | |
9438 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9439 | fi | |
9440 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
da494b40 | 9441 | echo "configure:9442: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9442 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9443 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9444 | |
a0b9e27f | 9445 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
da494b40 | 9446 | echo "configure:9447: checking whether we are using GNU C++" >&5 |
a0b9e27f MB |
9447 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9448 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9449 | else | |
9450 | cat > conftest.C <<EOF | |
9451 | #ifdef __GNUC__ | |
9452 | yes; | |
10f2d63a | 9453 | #endif |
a0b9e27f | 9454 | EOF |
da494b40 | 9455 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f MB |
9456 | ac_cv_prog_gxx=yes |
9457 | else | |
9458 | ac_cv_prog_gxx=no | |
9459 | fi | |
9460 | fi | |
10f2d63a | 9461 | |
a0b9e27f | 9462 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9463 | |
a0b9e27f MB |
9464 | if test $ac_cv_prog_gxx = yes; then |
9465 | GXX=yes | |
9466 | else | |
9467 | GXX= | |
9468 | fi | |
f09359cf | 9469 | |
a0b9e27f MB |
9470 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9471 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9472 | CXXFLAGS= | |
9473 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
da494b40 | 9474 | echo "configure:9475: checking whether ${CXX-g++} accepts -g" >&5 |
a0b9e27f MB |
9475 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9476 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9477 | else | |
9478 | echo 'void f(){}' > conftest.cc | |
9479 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9480 | ac_cv_prog_cxx_g=yes |
9481 | else | |
a0b9e27f | 9482 | ac_cv_prog_cxx_g=no |
10f2d63a | 9483 | fi |
a0b9e27f MB |
9484 | rm -f conftest* |
9485 | ||
10f2d63a | 9486 | fi |
a0b9e27f MB |
9487 | |
9488 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
f09359cf | 9489 | if test "$ac_test_CXXFLAGS" = set; then |
a0b9e27f | 9490 | CXXFLAGS="$ac_save_CXXFLAGS" |
f09359cf VS |
9491 | elif test $ac_cv_prog_cxx_g = yes; then |
9492 | if test "$GXX" = yes; then | |
10f2d63a VZ |
9493 | CXXFLAGS="-g -O2" |
9494 | else | |
f09359cf | 9495 | CXXFLAGS="-g" |
10f2d63a | 9496 | fi |
5c0a20c3 | 9497 | else |
f09359cf VS |
9498 | if test "$GXX" = yes; then |
9499 | CXXFLAGS="-O2" | |
9500 | else | |
9501 | CXXFLAGS= | |
9502 | fi | |
10f2d63a VZ |
9503 | fi |
9504 | ||
9505 | ||
10f2d63a | 9506 | ac_ext=c |
a0b9e27f | 9507 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9508 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
9509 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9510 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9511 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 MB |
9512 | |
9513 | ||
a0b9e27f MB |
9514 | # Extract the first word of "ranlib", so it can be a program name with args. |
9515 | set dummy ranlib; ac_word=$2 | |
9516 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
da494b40 | 9517 | echo "configure:9518: checking for $ac_word" >&5 |
a0b9e27f MB |
9518 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9519 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9520 | else |
9521 | if test -n "$RANLIB"; then | |
9522 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9523 | else | |
a0b9e27f MB |
9524 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9525 | ac_dummy="$PATH" | |
9526 | for ac_dir in $ac_dummy; do | |
9527 | test -z "$ac_dir" && ac_dir=. | |
9528 | if test -f $ac_dir/$ac_word; then | |
9529 | ac_cv_prog_RANLIB="ranlib" | |
9530 | break | |
9531 | fi | |
9532 | done | |
9533 | IFS="$ac_save_ifs" | |
9534 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9535 | fi |
9536 | fi | |
a0b9e27f | 9537 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9538 | if test -n "$RANLIB"; then |
a0b9e27f | 9539 | echo "$ac_t""$RANLIB" 1>&6 |
328a083c | 9540 | else |
a0b9e27f | 9541 | echo "$ac_t""no" 1>&6 |
328a083c RR |
9542 | fi |
9543 | ||
10f2d63a VZ |
9544 | |
9545 | # Extract the first word of "ar", so it can be a program name with args. | |
9546 | set dummy ar; ac_word=$2 | |
a0b9e27f | 9547 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
da494b40 | 9548 | echo "configure:9549: checking for $ac_word" >&5 |
a0b9e27f MB |
9549 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9550 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9551 | else |
9552 | if test -n "$AR"; then | |
9553 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9554 | else | |
a0b9e27f MB |
9555 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9556 | ac_dummy="$PATH" | |
9557 | for ac_dir in $ac_dummy; do | |
9558 | test -z "$ac_dir" && ac_dir=. | |
9559 | if test -f $ac_dir/$ac_word; then | |
9560 | ac_cv_prog_AR="ar" | |
9561 | break | |
9562 | fi | |
9563 | done | |
9564 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9565 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9566 | fi | |
9567 | fi | |
a0b9e27f | 9568 | AR="$ac_cv_prog_AR" |
10f2d63a | 9569 | if test -n "$AR"; then |
a0b9e27f | 9570 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9571 | else |
a0b9e27f | 9572 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9573 | fi |
9574 | ||
8284b0c5 | 9575 | |
6054113a | 9576 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9577 | # so one script is as good as another. But avoid the broken or |
9578 | # incompatible versions: | |
9579 | # SysV /etc/install, /usr/sbin/install | |
9580 | # SunOS /usr/etc/install | |
9581 | # IRIX /sbin/install | |
9582 | # AIX /bin/install | |
f09359cf | 9583 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
9584 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
9585 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9586 | # ./install, which can be erroneously created by make from ./install.sh. | |
a0b9e27f | 9587 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
da494b40 | 9588 | echo "configure:9589: checking for a BSD compatible install" >&5 |
10f2d63a | 9589 | if test -z "$INSTALL"; then |
a0b9e27f MB |
9590 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9591 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9592 | else | |
9593 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
9594 | for ac_dir in $PATH; do | |
9595 | # Account for people who put trailing slashes in PATH elements. | |
9596 | case "$ac_dir/" in | |
9597 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
9598 | *) | |
9599 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9600 | # Don't use installbsd from OSF since it installs stuff as root | |
9601 | # by default. | |
9602 | for ac_prog in ginstall scoinst install; do | |
9603 | if test -f $ac_dir/$ac_prog; then | |
9604 | if test $ac_prog = install && | |
9605 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
9606 | # AIX install. It has an incompatible calling convention. | |
9607 | : | |
9608 | else | |
9609 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9610 | break 2 | |
9611 | fi | |
9612 | fi | |
10f2d63a | 9613 | done |
a0b9e27f MB |
9614 | ;; |
9615 | esac | |
9616 | done | |
9617 | IFS="$ac_save_IFS" | |
10f2d63a VZ |
9618 | |
9619 | fi | |
9620 | if test "${ac_cv_path_install+set}" = set; then | |
a0b9e27f | 9621 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9622 | else |
9623 | # As a last resort, use the slow shell script. We don't cache a | |
9624 | # path for INSTALL within a source directory, because that will | |
9625 | # break other packages using the cache if that directory is | |
9626 | # removed, or if the path is relative. | |
a0b9e27f | 9627 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9628 | fi |
9629 | fi | |
a0b9e27f | 9630 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9631 | |
9632 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9633 | # It thinks the first close brace ends the variable substitution. | |
9634 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9635 | ||
a0b9e27f | 9636 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
f09359cf | 9637 | |
10f2d63a VZ |
9638 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9639 | ||
8284b0c5 | 9640 | |
1d1b75ac VZ |
9641 | case ${INSTALL} in |
9642 | /* ) # Absolute | |
9643 | ;; | |
4f5a7f74 VZ |
9644 | ?:* ) # Drive letter, considered as absolute. |
9645 | ;; | |
3bd8fb5f | 9646 | *) |
1d1b75ac VZ |
9647 | INSTALL=`pwd`/${INSTALL} ;; |
9648 | esac | |
9649 | ||
4f5a7f74 VZ |
9650 | case ${host} in |
9651 | *-hp-hpux* ) | |
9652 | INSTALL_DIR="mkdir" | |
9653 | ;; | |
9654 | ||
9655 | *) INSTALL_DIR="$INSTALL -d" | |
9656 | ;; | |
9657 | esac | |
9658 | ||
8284b0c5 | 9659 | |
6054113a GD |
9660 | case "${host}" in |
9661 | ||
b5853384 | 9662 | powerpc-*-darwin* ) |
eb99ae0b GD |
9663 | INSTALL_PROGRAM="cp -fp" |
9664 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9665 | ;; |
9666 | *) | |
9667 | ;; | |
d6853540 | 9668 | esac |
698dcdb6 | 9669 | |
10f2d63a VZ |
9670 | # Extract the first word of "strip", so it can be a program name with args. |
9671 | set dummy strip; ac_word=$2 | |
a0b9e27f | 9672 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
da494b40 | 9673 | echo "configure:9674: checking for $ac_word" >&5 |
a0b9e27f MB |
9674 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9675 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9676 | else |
9677 | if test -n "$STRIP"; then | |
9678 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9679 | else | |
a0b9e27f MB |
9680 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9681 | ac_dummy="$PATH" | |
9682 | for ac_dir in $ac_dummy; do | |
9683 | test -z "$ac_dir" && ac_dir=. | |
9684 | if test -f $ac_dir/$ac_word; then | |
9685 | ac_cv_prog_STRIP="strip" | |
9686 | break | |
9687 | fi | |
9688 | done | |
9689 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9690 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9691 | fi | |
9692 | fi | |
a0b9e27f | 9693 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9694 | if test -n "$STRIP"; then |
a0b9e27f | 9695 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9696 | else |
a0b9e27f | 9697 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9698 | fi |
9699 | ||
5c6fa7d2 | 9700 | |
a0b9e27f | 9701 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
da494b40 | 9702 | echo "configure:9703: checking if make is GNU make" >&5 |
a0b9e27f MB |
9703 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9704 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9705 | else |
a0b9e27f | 9706 | |
414eab6d | 9707 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 9708 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9709 | wx_cv_prog_makeisgnu="yes" |
9710 | else | |
9711 | wx_cv_prog_makeisgnu="no" | |
9712 | fi | |
9713 | ||
9714 | fi | |
a0b9e27f MB |
9715 | |
9716 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
414eab6d VZ |
9717 | |
9718 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9719 | IF_GNU_MAKE="" | |
9720 | else | |
9721 | IF_GNU_MAKE="#" | |
9722 | fi | |
9723 | ||
8284b0c5 MB |
9724 | |
9725 | ||
414eab6d | 9726 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
a0b9e27f | 9727 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
da494b40 | 9728 | echo "configure:9729: checking if make supports VPATH" >&5 |
a0b9e27f MB |
9729 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9730 | echo $ac_n "(cached) $ac_c" 1>&6 | |
04e7a216 | 9731 | else |
a0b9e27f | 9732 | |
10f2d63a VZ |
9733 | cat - << EOF > confMake |
9734 | check : file | |
9735 | cp \$? \$@ | |
9736 | cp \$? final_file | |
9737 | EOF | |
9738 | ||
9739 | if test ! -d sub ; then | |
9740 | mkdir sub | |
9741 | fi | |
9742 | echo dummy > sub/file | |
f6bcfd97 | 9743 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9744 | RESULT=$? |
9745 | rm -f sub/file check final_file confMake | |
9746 | rmdir sub | |
9747 | if test "$RESULT" = 0; then | |
04e7a216 | 9748 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9749 | else |
04e7a216 VZ |
9750 | wx_cv_prog_makevpath="no" |
9751 | fi | |
9752 | ||
9753 | fi | |
a0b9e27f MB |
9754 | |
9755 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
04e7a216 VZ |
9756 | |
9757 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
a0b9e27f | 9758 | { echo "configure: error: |
5c6fa7d2 RR |
9759 | You need a make-utility that is able to use the variable |
9760 | VPATH correctly. | |
9761 | If your version of make does not support VPATH correctly, | |
9762 | please install GNU-make (possibly as gmake), and start | |
9763 | configure with the following command: | |
9764 | export MAKE=gmake; ./configure for sh-type shells | |
9765 | setenv MAKE gmake; ./configure for csh-type shells | |
9766 | Also please do remember to use gmake in this case every time | |
9767 | you are trying to compile. | |
a0b9e27f MB |
9768 | " 1>&2; exit 1; } |
9769 | fi fi | |
10f2d63a VZ |
9770 | for ac_prog in 'bison -y' byacc |
9771 | do | |
a0b9e27f | 9772 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9773 | set dummy $ac_prog; ac_word=$2 |
a0b9e27f | 9774 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
da494b40 | 9775 | echo "configure:9776: checking for $ac_word" >&5 |
a0b9e27f MB |
9776 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9777 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9778 | else |
9779 | if test -n "$YACC"; then | |
9780 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9781 | else | |
a0b9e27f MB |
9782 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9783 | ac_dummy="$PATH" | |
9784 | for ac_dir in $ac_dummy; do | |
9785 | test -z "$ac_dir" && ac_dir=. | |
9786 | if test -f $ac_dir/$ac_word; then | |
9787 | ac_cv_prog_YACC="$ac_prog" | |
9788 | break | |
9789 | fi | |
9790 | done | |
9791 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9792 | fi |
9793 | fi | |
a0b9e27f | 9794 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9795 | if test -n "$YACC"; then |
a0b9e27f | 9796 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9797 | else |
a0b9e27f | 9798 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9799 | fi |
9800 | ||
a0b9e27f | 9801 | test -n "$YACC" && break |
10f2d63a VZ |
9802 | done |
9803 | test -n "$YACC" || YACC="yacc" | |
9804 | ||
8284b0c5 | 9805 | |
a0b9e27f MB |
9806 | # Extract the first word of "flex", so it can be a program name with args. |
9807 | set dummy flex; ac_word=$2 | |
9808 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
da494b40 | 9809 | echo "configure:9810: checking for $ac_word" >&5 |
a0b9e27f MB |
9810 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9811 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9812 | else |
9813 | if test -n "$LEX"; then | |
9814 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9815 | else | |
a0b9e27f MB |
9816 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9817 | ac_dummy="$PATH" | |
9818 | for ac_dir in $ac_dummy; do | |
9819 | test -z "$ac_dir" && ac_dir=. | |
9820 | if test -f $ac_dir/$ac_word; then | |
9821 | ac_cv_prog_LEX="flex" | |
9822 | break | |
9823 | fi | |
9824 | done | |
9825 | IFS="$ac_save_ifs" | |
9826 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9827 | fi |
9828 | fi | |
a0b9e27f | 9829 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9830 | if test -n "$LEX"; then |
a0b9e27f | 9831 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9832 | else |
a0b9e27f | 9833 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9834 | fi |
9835 | ||
9836 | if test -z "$LEXLIB" | |
9837 | then | |
a0b9e27f MB |
9838 | case "$LEX" in |
9839 | flex*) ac_lib=fl ;; | |
9840 | *) ac_lib=l ;; | |
9841 | esac | |
9842 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
da494b40 | 9843 | echo "configure:9844: checking for yywrap in -l$ac_lib" >&5 |
a0b9e27f MB |
9844 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9845 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9846 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9847 | else | |
9848 | ac_save_LIBS="$LIBS" | |
9849 | LIBS="-l$ac_lib $LIBS" | |
9850 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 9851 | #line 9852 "configure" |
247f5006 | 9852 | #include "confdefs.h" |
247f5006 | 9853 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 9854 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
9855 | builtin and then its argument prototype would still apply. */ |
9856 | char yywrap(); | |
10f2d63a | 9857 | |
a0b9e27f MB |
9858 | int main() { |
9859 | yywrap() | |
9860 | ; return 0; } | |
9861 | EOF | |
da494b40 | 9862 | if { (eval echo configure:9863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9863 | rm -rf conftest* |
9864 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9865 | else | |
9866 | echo "configure: failed program was:" >&5 | |
9867 | cat conftest.$ac_ext >&5 | |
9868 | rm -rf conftest* | |
9869 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9870 | fi |
a0b9e27f MB |
9871 | rm -f conftest* |
9872 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 9873 | |
10f2d63a | 9874 | fi |
a0b9e27f MB |
9875 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9876 | echo "$ac_t""yes" 1>&6 | |
9877 | LEXLIB="-l$ac_lib" | |
8284b0c5 | 9878 | else |
a0b9e27f | 9879 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9880 | fi |
9881 | ||
a0b9e27f | 9882 | fi |
10f2d63a VZ |
9883 | |
9884 | ||
a0b9e27f | 9885 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
da494b40 | 9886 | echo "configure:9887: checking whether ln -s works" >&5 |
a0b9e27f MB |
9887 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9888 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9889 | else |
a0b9e27f MB |
9890 | rm -f conftestdata |
9891 | if ln -s X conftestdata 2>/dev/null | |
9892 | then | |
9893 | rm -f conftestdata | |
9894 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9895 | else |
a0b9e27f | 9896 | ac_cv_prog_LN_S=ln |
10f2d63a | 9897 | fi |
a0b9e27f MB |
9898 | fi |
9899 | LN_S="$ac_cv_prog_LN_S" | |
9900 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9901 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9902 | else |
a0b9e27f | 9903 | echo "$ac_t""no" 1>&6 |
5c6fa7d2 | 9904 | fi |
5c6fa7d2 | 9905 | |
247f5006 | 9906 | |
2b5f62a0 VZ |
9907 | case "${host}" in |
9908 | *-pc-os2_emx | *-pc-os2-emx ) | |
9909 | LIBS="$LIBS -lstdcpp" | |
9910 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
9911 | echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6 | |
da494b40 | 9912 | echo "configure:9913: checking for drand48 in -lcExt" >&5 |
2b5f62a0 VZ |
9913 | ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'` |
9914 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9915 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9916 | else | |
9917 | ac_save_LIBS="$LIBS" | |
9918 | LIBS="-lcExt $LIBS" | |
9919 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 9920 | #line 9921 "configure" |
2b5f62a0 VZ |
9921 | #include "confdefs.h" |
9922 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9923 | /* We use char because int might match the return type of a gcc2 | |
9924 | builtin and then its argument prototype would still apply. */ | |
9925 | char drand48(); | |
9926 | ||
9927 | int main() { | |
9928 | drand48() | |
9929 | ; return 0; } | |
9930 | EOF | |
da494b40 | 9931 | if { (eval echo configure:9932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
9932 | rm -rf conftest* |
9933 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9934 | else | |
9935 | echo "configure: failed program was:" >&5 | |
9936 | cat conftest.$ac_ext >&5 | |
9937 | rm -rf conftest* | |
9938 | eval "ac_cv_lib_$ac_lib_var=no" | |
9939 | fi | |
9940 | rm -f conftest* | |
9941 | LIBS="$ac_save_LIBS" | |
9942 | ||
9943 | fi | |
9944 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9945 | echo "$ac_t""yes" 1>&6 | |
9946 | LIBS="$LIBS -lcExt" | |
9947 | else | |
9948 | echo "$ac_t""no" 1>&6 | |
9949 | fi | |
9950 | ||
9951 | else | |
9952 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
9953 | fi | |
9954 | ;; | |
9955 | esac | |
9956 | ||
a0b9e27f MB |
9957 | |
9958 | if test "$wxUSE_MAC" != 1; then | |
9959 | for ac_hdr in strings.h | |
9960 | do | |
9961 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9962 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
da494b40 | 9963 | echo "configure:9964: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9964 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9965 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9966 | else | |
9967 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 9968 | #line 9969 "configure" |
a0b9e27f MB |
9969 | #include "confdefs.h" |
9970 | #include <$ac_hdr> | |
9971 | EOF | |
9972 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 9973 | { (eval echo configure:9974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9974 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9975 | if test -z "$ac_err"; then | |
9976 | rm -rf conftest* | |
9977 | eval "ac_cv_header_$ac_safe=yes" | |
9978 | else | |
9979 | echo "$ac_err" >&5 | |
9980 | echo "configure: failed program was:" >&5 | |
9981 | cat conftest.$ac_ext >&5 | |
9982 | rm -rf conftest* | |
9983 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 9984 | fi |
247f5006 | 9985 | rm -f conftest* |
19bc6aad | 9986 | fi |
a0b9e27f MB |
9987 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9988 | echo "$ac_t""yes" 1>&6 | |
9989 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9990 | cat >> confdefs.h <<EOF | |
9991 | #define $ac_tr_hdr 1 | |
9992 | EOF | |
9993 | ||
247f5006 | 9994 | else |
a0b9e27f | 9995 | echo "$ac_t""no" 1>&6 |
18dbb1f6 | 9996 | fi |
a0b9e27f | 9997 | done |
247f5006 | 9998 | |
90dd450c | 9999 | fi |
90dd450c | 10000 | |
a0b9e27f MB |
10001 | for ac_hdr in stdlib.h |
10002 | do | |
10003 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10004 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
da494b40 | 10005 | echo "configure:10006: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10006 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10007 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10008 | else | |
10009 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 10010 | #line 10011 "configure" |
90dd450c | 10011 | #include "confdefs.h" |
a0b9e27f MB |
10012 | #include <$ac_hdr> |
10013 | EOF | |
10014 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 10015 | { (eval echo configure:10016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10016 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10017 | if test -z "$ac_err"; then | |
10018 | rm -rf conftest* | |
10019 | eval "ac_cv_header_$ac_safe=yes" | |
10020 | else | |
10021 | echo "$ac_err" >&5 | |
10022 | echo "configure: failed program was:" >&5 | |
10023 | cat conftest.$ac_ext >&5 | |
10024 | rm -rf conftest* | |
10025 | eval "ac_cv_header_$ac_safe=no" | |
10026 | fi | |
10027 | rm -f conftest* | |
10028 | fi | |
10029 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10030 | echo "$ac_t""yes" 1>&6 | |
10031 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10032 | cat >> confdefs.h <<EOF | |
10033 | #define $ac_tr_hdr 1 | |
10034 | EOF | |
10035 | ||
8284b0c5 | 10036 | else |
a0b9e27f | 10037 | echo "$ac_t""no" 1>&6 |
21d1c967 | 10038 | fi |
a0b9e27f MB |
10039 | done |
10040 | ||
10041 | for ac_hdr in malloc.h | |
10042 | do | |
10043 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10044 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
da494b40 | 10045 | echo "configure:10046: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10046 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10047 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10048 | else | |
10049 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 10050 | #line 10051 "configure" |
a0b9e27f MB |
10051 | #include "confdefs.h" |
10052 | #include <$ac_hdr> | |
10053 | EOF | |
10054 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 10055 | { (eval echo configure:10056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10056 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10057 | if test -z "$ac_err"; then | |
10058 | rm -rf conftest* | |
10059 | eval "ac_cv_header_$ac_safe=yes" | |
10060 | else | |
10061 | echo "$ac_err" >&5 | |
10062 | echo "configure: failed program was:" >&5 | |
10063 | cat conftest.$ac_ext >&5 | |
10064 | rm -rf conftest* | |
10065 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10066 | fi |
a0b9e27f | 10067 | rm -f conftest* |
90dd450c | 10068 | fi |
a0b9e27f MB |
10069 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10070 | echo "$ac_t""yes" 1>&6 | |
10071 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10072 | cat >> confdefs.h <<EOF | |
10073 | #define $ac_tr_hdr 1 | |
10074 | EOF | |
10075 | ||
10076 | else | |
10077 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 10078 | fi |
a0b9e27f | 10079 | done |
247f5006 | 10080 | |
a0b9e27f MB |
10081 | for ac_hdr in unistd.h |
10082 | do | |
10083 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10084 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
da494b40 | 10085 | echo "configure:10086: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10086 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10087 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10088 | else | |
10089 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 10090 | #line 10091 "configure" |
a0b9e27f MB |
10091 | #include "confdefs.h" |
10092 | #include <$ac_hdr> | |
10093 | EOF | |
10094 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 10095 | { (eval echo configure:10096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10096 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10097 | if test -z "$ac_err"; then | |
10098 | rm -rf conftest* | |
10099 | eval "ac_cv_header_$ac_safe=yes" | |
10100 | else | |
10101 | echo "$ac_err" >&5 | |
10102 | echo "configure: failed program was:" >&5 | |
10103 | cat conftest.$ac_ext >&5 | |
10104 | rm -rf conftest* | |
10105 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 10106 | fi |
a0b9e27f MB |
10107 | rm -f conftest* |
10108 | fi | |
10109 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10110 | echo "$ac_t""yes" 1>&6 | |
10111 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10112 | cat >> confdefs.h <<EOF | |
10113 | #define $ac_tr_hdr 1 | |
10114 | EOF | |
10115 | ||
10116 | else | |
10117 | echo "$ac_t""no" 1>&6 | |
10118 | fi | |
10119 | done | |
90dd450c | 10120 | |
a0b9e27f | 10121 | for ac_hdr in wchar.h |
21d1c967 | 10122 | do |
a0b9e27f MB |
10123 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10124 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
da494b40 | 10125 | echo "configure:10126: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10126 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10127 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10128 | else | |
10129 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 10130 | #line 10131 "configure" |
4f14bcd8 | 10131 | #include "confdefs.h" |
a0b9e27f MB |
10132 | #include <$ac_hdr> |
10133 | EOF | |
10134 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 10135 | { (eval echo configure:10136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10136 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10137 | if test -z "$ac_err"; then | |
10138 | rm -rf conftest* | |
10139 | eval "ac_cv_header_$ac_safe=yes" | |
10140 | else | |
10141 | echo "$ac_err" >&5 | |
10142 | echo "configure: failed program was:" >&5 | |
10143 | cat conftest.$ac_ext >&5 | |
10144 | rm -rf conftest* | |
10145 | eval "ac_cv_header_$ac_safe=no" | |
10146 | fi | |
10147 | rm -f conftest* | |
10148 | fi | |
10149 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10150 | echo "$ac_t""yes" 1>&6 | |
10151 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10152 | cat >> confdefs.h <<EOF | |
10153 | #define $ac_tr_hdr 1 | |
10154 | EOF | |
10155 | ||
10156 | else | |
10157 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10158 | fi |
10159 | done | |
4f14bcd8 | 10160 | |
5c6fa7d2 | 10161 | |
a0b9e27f MB |
10162 | if test "$ac_cv_header_wchar_h" != "yes"; then |
10163 | for ac_hdr in wcstr.h | |
21d1c967 | 10164 | do |
a0b9e27f MB |
10165 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10166 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
da494b40 | 10167 | echo "configure:10168: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10168 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10169 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10170 | else | |
10171 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 10172 | #line 10173 "configure" |
d4158b5d | 10173 | #include "confdefs.h" |
a0b9e27f MB |
10174 | #include <$ac_hdr> |
10175 | EOF | |
10176 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 10177 | { (eval echo configure:10178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10178 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10179 | if test -z "$ac_err"; then | |
10180 | rm -rf conftest* | |
10181 | eval "ac_cv_header_$ac_safe=yes" | |
10182 | else | |
10183 | echo "$ac_err" >&5 | |
10184 | echo "configure: failed program was:" >&5 | |
d4158b5d | 10185 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10186 | rm -rf conftest* |
10187 | eval "ac_cv_header_$ac_safe=no" | |
d4158b5d | 10188 | fi |
a0b9e27f | 10189 | rm -f conftest* |
21d1c967 | 10190 | fi |
a0b9e27f MB |
10191 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10192 | echo "$ac_t""yes" 1>&6 | |
10193 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10194 | cat >> confdefs.h <<EOF | |
10195 | #define $ac_tr_hdr 1 | |
10196 | EOF | |
10197 | ||
10198 | else | |
10199 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 10200 | fi |
21d1c967 | 10201 | done |
f6bcfd97 | 10202 | |
90dd450c | 10203 | fi |
90dd450c | 10204 | |
a0b9e27f | 10205 | for ac_hdr in fnmatch.h |
21d1c967 | 10206 | do |
a0b9e27f MB |
10207 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10208 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
da494b40 | 10209 | echo "configure:10210: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10210 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10211 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10212 | else | |
10213 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 10214 | #line 10215 "configure" |
90dd450c | 10215 | #include "confdefs.h" |
a0b9e27f MB |
10216 | #include <$ac_hdr> |
10217 | EOF | |
10218 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 10219 | { (eval echo configure:10220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10220 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10221 | if test -z "$ac_err"; then | |
10222 | rm -rf conftest* | |
10223 | eval "ac_cv_header_$ac_safe=yes" | |
10224 | else | |
10225 | echo "$ac_err" >&5 | |
10226 | echo "configure: failed program was:" >&5 | |
3a922bb4 | 10227 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10228 | rm -rf conftest* |
10229 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10230 | fi |
a0b9e27f | 10231 | rm -f conftest* |
4f14bcd8 | 10232 | fi |
a0b9e27f MB |
10233 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10234 | echo "$ac_t""yes" 1>&6 | |
10235 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10236 | cat >> confdefs.h <<EOF | |
10237 | #define $ac_tr_hdr 1 | |
10238 | EOF | |
10239 | ||
10240 | else | |
10241 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10242 | fi |
10243 | done | |
90dd450c | 10244 | |
5c6fa7d2 | 10245 | |
a0b9e27f MB |
10246 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
10247 | for ac_func in fnmatch | |
21d1c967 | 10248 | do |
a0b9e27f | 10249 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 10250 | echo "configure:10251: checking for $ac_func" >&5 |
a0b9e27f MB |
10251 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10252 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10253 | else |
a0b9e27f | 10254 | cat > conftest.$ac_ext <<EOF |
da494b40 | 10255 | #line 10256 "configure" |
a0b9e27f MB |
10256 | #include "confdefs.h" |
10257 | /* System header to define __stub macros and hopefully few prototypes, | |
10258 | which can conflict with char $ac_func(); below. */ | |
10259 | #include <assert.h> | |
10260 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10261 | /* We use char because int might match the return type of a gcc2 | |
10262 | builtin and then its argument prototype would still apply. */ | |
10263 | char $ac_func(); | |
10264 | ||
10265 | int main() { | |
10266 | ||
10267 | /* The GNU C library defines this for functions which it implements | |
10268 | to always fail with ENOSYS. Some functions are actually named | |
10269 | something starting with __ and the normal name is an alias. */ | |
10270 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10271 | choke me | |
10272 | #else | |
10273 | $ac_func(); | |
10274 | #endif | |
10275 | ||
10276 | ; return 0; } | |
10277 | EOF | |
da494b40 | 10278 | if { (eval echo configure:10279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
10279 | rm -rf conftest* |
10280 | eval "ac_cv_func_$ac_func=yes" | |
8284b0c5 | 10281 | else |
a0b9e27f | 10282 | echo "configure: failed program was:" >&5 |
8284b0c5 | 10283 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10284 | rm -rf conftest* |
10285 | eval "ac_cv_func_$ac_func=no" | |
8284b0c5 | 10286 | fi |
a0b9e27f | 10287 | rm -f conftest* |
8284b0c5 | 10288 | fi |
32832908 | 10289 | |
a0b9e27f MB |
10290 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10291 | echo "$ac_t""yes" 1>&6 | |
10292 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10293 | cat >> confdefs.h <<EOF | |
10294 | #define $ac_tr_func 1 | |
10295 | EOF | |
10296 | ||
10297 | else | |
10298 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10299 | fi |
10300 | done | |
90dd450c | 10301 | |
a0b9e27f | 10302 | fi |
90dd450c | 10303 | |
a0b9e27f | 10304 | for ac_hdr in langinfo.h |
21d1c967 | 10305 | do |
a0b9e27f MB |
10306 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10307 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
da494b40 | 10308 | echo "configure:10309: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10309 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10310 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10311 | else | |
10312 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 10313 | #line 10314 "configure" |
247f5006 | 10314 | #include "confdefs.h" |
a0b9e27f MB |
10315 | #include <$ac_hdr> |
10316 | EOF | |
10317 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 10318 | { (eval echo configure:10319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10319 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10320 | if test -z "$ac_err"; then | |
10321 | rm -rf conftest* | |
10322 | eval "ac_cv_header_$ac_safe=yes" | |
10323 | else | |
10324 | echo "$ac_err" >&5 | |
10325 | echo "configure: failed program was:" >&5 | |
90dd450c | 10326 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10327 | rm -rf conftest* |
10328 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 10329 | fi |
a0b9e27f | 10330 | rm -f conftest* |
4f14bcd8 | 10331 | fi |
a0b9e27f MB |
10332 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10333 | echo "$ac_t""yes" 1>&6 | |
10334 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10335 | cat >> confdefs.h <<EOF | |
10336 | #define $ac_tr_hdr 1 | |
10337 | EOF | |
10338 | ||
10339 | else | |
10340 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10341 | fi |
10342 | done | |
3a922bb4 | 10343 | |
8284b0c5 | 10344 | |
4f5a7f74 VZ |
10345 | case "${host}" in |
10346 | *-pc-os2_emx | *-pc-os2-emx ) | |
10347 | if test $ac_cv_header_langinfo_h = "yes"; then | |
10348 | LIBS="$LIBS -lintl" | |
10349 | fi | |
10350 | ;; | |
10351 | esac | |
10352 | ||
a0b9e27f MB |
10353 | if test "$wxUSE_GUI" = "yes"; then |
10354 | if test "$wxUSE_UNIX" = "yes"; then | |
10355 | for ac_hdr in X11/XKBlib.h | |
21d1c967 | 10356 | do |
a0b9e27f MB |
10357 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10358 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
da494b40 | 10359 | echo "configure:10360: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10360 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10361 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10362 | else | |
10363 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 10364 | #line 10365 "configure" |
90dd450c | 10365 | #include "confdefs.h" |
a0b9e27f MB |
10366 | #include <$ac_hdr> |
10367 | EOF | |
10368 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 10369 | { (eval echo configure:10370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10370 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10371 | if test -z "$ac_err"; then | |
10372 | rm -rf conftest* | |
10373 | eval "ac_cv_header_$ac_safe=yes" | |
10374 | else | |
10375 | echo "$ac_err" >&5 | |
10376 | echo "configure: failed program was:" >&5 | |
90dd450c | 10377 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10378 | rm -rf conftest* |
10379 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10380 | fi |
a0b9e27f | 10381 | rm -f conftest* |
90dd450c | 10382 | fi |
a0b9e27f MB |
10383 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10384 | echo "$ac_t""yes" 1>&6 | |
10385 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10386 | cat >> confdefs.h <<EOF | |
10387 | #define $ac_tr_hdr 1 | |
10388 | EOF | |
10389 | ||
10390 | else | |
10391 | echo "$ac_t""no" 1>&6 | |
247f5006 | 10392 | fi |
247f5006 VZ |
10393 | done |
10394 | ||
a0b9e27f MB |
10395 | fi |
10396 | fi | |
247f5006 | 10397 | |
247f5006 | 10398 | |
a0b9e27f | 10399 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
da494b40 | 10400 | echo "configure:10401: checking for working const" >&5 |
a0b9e27f MB |
10401 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
10402 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10403 | else |
a0b9e27f | 10404 | cat > conftest.$ac_ext <<EOF |
da494b40 | 10405 | #line 10406 "configure" |
a0b9e27f MB |
10406 | #include "confdefs.h" |
10407 | ||
10408 | int main() { | |
10409 | ||
10410 | /* Ultrix mips cc rejects this. */ | |
10411 | typedef int charset[2]; const charset x; | |
10412 | /* SunOS 4.1.1 cc rejects this. */ | |
10413 | char const *const *ccp; | |
10414 | char **p; | |
10415 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
10416 | struct point {int x, y;}; | |
10417 | static struct point const zero = {0,0}; | |
10418 | /* AIX XL C 1.02.0.0 rejects this. | |
10419 | It does not let you subtract one const X* pointer from another in an arm | |
10420 | of an if-expression whose if-part is not a constant expression */ | |
10421 | const char *g = "string"; | |
10422 | ccp = &g + (g ? g-g : 0); | |
10423 | /* HPUX 7.0 cc rejects these. */ | |
10424 | ++ccp; | |
10425 | p = (char**) ccp; | |
10426 | ccp = (char const *const *) p; | |
10427 | { /* SCO 3.2v4 cc rejects this. */ | |
10428 | char *t; | |
10429 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
10430 | ||
10431 | *t++ = 0; | |
10432 | } | |
10433 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
10434 | int x[] = {25, 17}; | |
10435 | const int *foo = &x[0]; | |
10436 | ++foo; | |
10437 | } | |
10438 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
10439 | typedef const int *iptr; | |
10440 | iptr p = 0; | |
10441 | ++p; | |
10442 | } | |
10443 | { /* AIX XL C 1.02.0.0 rejects this saying | |
10444 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
10445 | struct s { int j; const int *ap[3]; }; | |
10446 | struct s *b; b->j = 5; | |
10447 | } | |
10448 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
10449 | const int foo = 10; | |
10450 | } | |
10451 | ||
10452 | ; return 0; } | |
10453 | EOF | |
da494b40 | 10454 | if { (eval echo configure:10455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10455 | rm -rf conftest* |
10456 | ac_cv_c_const=yes | |
247f5006 | 10457 | else |
a0b9e27f | 10458 | echo "configure: failed program was:" >&5 |
247f5006 | 10459 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10460 | rm -rf conftest* |
10461 | ac_cv_c_const=no | |
247f5006 | 10462 | fi |
a0b9e27f | 10463 | rm -f conftest* |
21d1c967 | 10464 | fi |
247f5006 | 10465 | |
a0b9e27f MB |
10466 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
10467 | if test $ac_cv_c_const = no; then | |
10468 | cat >> confdefs.h <<\EOF | |
10469 | #define const | |
10470 | EOF | |
10f2d63a | 10471 | |
90dd450c | 10472 | fi |
81809c07 | 10473 | |
a0b9e27f | 10474 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
da494b40 | 10475 | echo "configure:10476: checking for inline" >&5 |
a0b9e27f MB |
10476 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
10477 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8168de4c | 10478 | else |
a0b9e27f MB |
10479 | ac_cv_c_inline=no |
10480 | for ac_kw in inline __inline__ __inline; do | |
10481 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 10482 | #line 10483 "configure" |
a0b9e27f MB |
10483 | #include "confdefs.h" |
10484 | ||
10485 | int main() { | |
10486 | } $ac_kw foo() { | |
10487 | ; return 0; } | |
10488 | EOF | |
da494b40 | 10489 | if { (eval echo configure:10490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10490 | rm -rf conftest* |
10491 | ac_cv_c_inline=$ac_kw; break | |
247f5006 | 10492 | else |
a0b9e27f | 10493 | echo "configure: failed program was:" >&5 |
247f5006 | 10494 | cat conftest.$ac_ext >&5 |
247f5006 | 10495 | fi |
a0b9e27f MB |
10496 | rm -f conftest* |
10497 | done | |
247f5006 VZ |
10498 | |
10499 | fi | |
10500 | ||
a0b9e27f MB |
10501 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
10502 | case "$ac_cv_c_inline" in | |
10503 | inline | yes) ;; | |
10504 | no) cat >> confdefs.h <<\EOF | |
10505 | #define inline | |
10506 | EOF | |
10507 | ;; | |
10508 | *) cat >> confdefs.h <<EOF | |
10509 | #define inline $ac_cv_c_inline | |
10510 | EOF | |
10511 | ;; | |
10512 | esac | |
247f5006 | 10513 | |
247f5006 | 10514 | |
a0b9e27f | 10515 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
da494b40 | 10516 | echo "configure:10517: checking size of char" >&5 |
a0b9e27f MB |
10517 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
10518 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10519 | else | |
10520 | if test "$cross_compiling" = yes; then | |
10521 | ac_cv_sizeof_char=1 | |
10522 | else | |
10523 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 10524 | #line 10525 "configure" |
4f14bcd8 | 10525 | #include "confdefs.h" |
a0b9e27f | 10526 | #include <stdio.h> |
93fac604 | 10527 | #include <sys/types.h> |
a0b9e27f | 10528 | main() |
247f5006 | 10529 | { |
a0b9e27f MB |
10530 | FILE *f=fopen("conftestval", "w"); |
10531 | if (!f) exit(1); | |
10532 | fprintf(f, "%d\n", sizeof(char)); | |
10533 | exit(0); | |
52127426 | 10534 | } |
a0b9e27f | 10535 | EOF |
da494b40 | 10536 | if { (eval echo configure:10537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10537 | then |
10538 | ac_cv_sizeof_char=`cat conftestval` | |
247f5006 | 10539 | else |
a0b9e27f | 10540 | echo "configure: failed program was:" >&5 |
247f5006 | 10541 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10542 | rm -fr conftest* |
10543 | ac_cv_sizeof_char=0 | |
247f5006 | 10544 | fi |
a0b9e27f | 10545 | rm -fr conftest* |
247f5006 | 10546 | fi |
247f5006 VZ |
10547 | |
10548 | fi | |
a0b9e27f MB |
10549 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10550 | cat >> confdefs.h <<EOF | |
10551 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10552 | EOF | |
247f5006 | 10553 | |
247f5006 | 10554 | |
a0b9e27f | 10555 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
da494b40 | 10556 | echo "configure:10557: checking size of short" >&5 |
a0b9e27f MB |
10557 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10558 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10559 | else |
a0b9e27f MB |
10560 | if test "$cross_compiling" = yes; then |
10561 | ac_cv_sizeof_short=2 | |
247f5006 | 10562 | else |
a0b9e27f | 10563 | cat > conftest.$ac_ext <<EOF |
da494b40 | 10564 | #line 10565 "configure" |
a0b9e27f MB |
10565 | #include "confdefs.h" |
10566 | #include <stdio.h> | |
93fac604 | 10567 | #include <sys/types.h> |
a0b9e27f MB |
10568 | main() |
10569 | { | |
10570 | FILE *f=fopen("conftestval", "w"); | |
10571 | if (!f) exit(1); | |
10572 | fprintf(f, "%d\n", sizeof(short)); | |
10573 | exit(0); | |
10574 | } | |
10575 | EOF | |
da494b40 | 10576 | if { (eval echo configure:10577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10577 | then |
10578 | ac_cv_sizeof_short=`cat conftestval` | |
247f5006 | 10579 | else |
a0b9e27f MB |
10580 | echo "configure: failed program was:" >&5 |
10581 | cat conftest.$ac_ext >&5 | |
10582 | rm -fr conftest* | |
10583 | ac_cv_sizeof_short=0 | |
247f5006 | 10584 | fi |
a0b9e27f | 10585 | rm -fr conftest* |
247f5006 VZ |
10586 | fi |
10587 | ||
247f5006 | 10588 | fi |
a0b9e27f MB |
10589 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10590 | cat >> confdefs.h <<EOF | |
10591 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10592 | EOF | |
247f5006 VZ |
10593 | |
10594 | ||
a0b9e27f | 10595 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
da494b40 | 10596 | echo "configure:10597: checking size of void *" >&5 |
a0b9e27f MB |
10597 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
10598 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10599 | else | |
10600 | if test "$cross_compiling" = yes; then | |
10601 | ac_cv_sizeof_void_p=4 | |
247f5006 | 10602 | else |
a0b9e27f | 10603 | cat > conftest.$ac_ext <<EOF |
da494b40 | 10604 | #line 10605 "configure" |
247f5006 | 10605 | #include "confdefs.h" |
247f5006 | 10606 | #include <stdio.h> |
93fac604 | 10607 | #include <sys/types.h> |
a0b9e27f | 10608 | main() |
247f5006 | 10609 | { |
a0b9e27f MB |
10610 | FILE *f=fopen("conftestval", "w"); |
10611 | if (!f) exit(1); | |
10612 | fprintf(f, "%d\n", sizeof(void *)); | |
10613 | exit(0); | |
5c6fa7d2 | 10614 | } |
a0b9e27f | 10615 | EOF |
da494b40 | 10616 | if { (eval echo configure:10617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10617 | then |
10618 | ac_cv_sizeof_void_p=`cat conftestval` | |
10619 | else | |
10620 | echo "configure: failed program was:" >&5 | |
10621 | cat conftest.$ac_ext >&5 | |
10622 | rm -fr conftest* | |
10623 | ac_cv_sizeof_void_p=0 | |
10624 | fi | |
10625 | rm -fr conftest* | |
10626 | fi | |
8284b0c5 | 10627 | |
247f5006 | 10628 | fi |
a0b9e27f MB |
10629 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
10630 | cat >> confdefs.h <<EOF | |
10631 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
10632 | EOF | |
247f5006 | 10633 | |
247f5006 | 10634 | |
a0b9e27f | 10635 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
da494b40 | 10636 | echo "configure:10637: checking size of int" >&5 |
a0b9e27f MB |
10637 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
10638 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10639 | else |
a0b9e27f MB |
10640 | if test "$cross_compiling" = yes; then |
10641 | ac_cv_sizeof_int=4 | |
10642 | else | |
10643 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 10644 | #line 10645 "configure" |
247f5006 | 10645 | #include "confdefs.h" |
a0b9e27f | 10646 | #include <stdio.h> |
93fac604 | 10647 | #include <sys/types.h> |
a0b9e27f | 10648 | main() |
247f5006 | 10649 | { |
a0b9e27f MB |
10650 | FILE *f=fopen("conftestval", "w"); |
10651 | if (!f) exit(1); | |
10652 | fprintf(f, "%d\n", sizeof(int)); | |
10653 | exit(0); | |
247f5006 | 10654 | } |
a0b9e27f | 10655 | EOF |
da494b40 | 10656 | if { (eval echo configure:10657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10657 | then |
10658 | ac_cv_sizeof_int=`cat conftestval` | |
6f72b082 | 10659 | else |
a0b9e27f MB |
10660 | echo "configure: failed program was:" >&5 |
10661 | cat conftest.$ac_ext >&5 | |
10662 | rm -fr conftest* | |
10663 | ac_cv_sizeof_int=0 | |
21d1c967 | 10664 | fi |
a0b9e27f | 10665 | rm -fr conftest* |
698dcdb6 | 10666 | fi |
4f14bcd8 | 10667 | |
21d1c967 | 10668 | fi |
a0b9e27f MB |
10669 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
10670 | cat >> confdefs.h <<EOF | |
10671 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10672 | EOF | |
4f14bcd8 | 10673 | |
5c6fa7d2 | 10674 | |
a0b9e27f | 10675 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
da494b40 | 10676 | echo "configure:10677: checking size of long" >&5 |
a0b9e27f MB |
10677 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
10678 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10679 | else |
247f5006 | 10680 | if test "$cross_compiling" = yes; then |
a0b9e27f | 10681 | ac_cv_sizeof_long=4 |
247f5006 | 10682 | else |
a0b9e27f | 10683 | cat > conftest.$ac_ext <<EOF |
da494b40 | 10684 | #line 10685 "configure" |
247f5006 | 10685 | #include "confdefs.h" |
a0b9e27f | 10686 | #include <stdio.h> |
93fac604 | 10687 | #include <sys/types.h> |
a0b9e27f | 10688 | main() |
247f5006 | 10689 | { |
a0b9e27f MB |
10690 | FILE *f=fopen("conftestval", "w"); |
10691 | if (!f) exit(1); | |
10692 | fprintf(f, "%d\n", sizeof(long)); | |
10693 | exit(0); | |
247f5006 | 10694 | } |
a0b9e27f | 10695 | EOF |
da494b40 | 10696 | if { (eval echo configure:10697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10697 | then |
10698 | ac_cv_sizeof_long=`cat conftestval` | |
247f5006 | 10699 | else |
a0b9e27f MB |
10700 | echo "configure: failed program was:" >&5 |
10701 | cat conftest.$ac_ext >&5 | |
10702 | rm -fr conftest* | |
10703 | ac_cv_sizeof_long=0 | |
247f5006 | 10704 | fi |
a0b9e27f | 10705 | rm -fr conftest* |
247f5006 | 10706 | fi |
247f5006 | 10707 | |
5c6fa7d2 | 10708 | fi |
a0b9e27f MB |
10709 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
10710 | cat >> confdefs.h <<EOF | |
10711 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10712 | EOF | |
247f5006 | 10713 | |
a0b9e27f MB |
10714 | |
10715 | ||
10716 | case "${host}" in | |
10717 | arm-*-linux* ) | |
10718 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
da494b40 | 10719 | echo "configure:10720: checking size of long long" >&5 |
a0b9e27f MB |
10720 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10721 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10722 | else | |
10723 | if test "$cross_compiling" = yes; then | |
10724 | ac_cv_sizeof_long_long=8 | |
10725 | else | |
10726 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 10727 | #line 10728 "configure" |
247f5006 | 10728 | #include "confdefs.h" |
a0b9e27f | 10729 | #include <stdio.h> |
93fac604 | 10730 | #include <sys/types.h> |
a0b9e27f | 10731 | main() |
247f5006 | 10732 | { |
a0b9e27f MB |
10733 | FILE *f=fopen("conftestval", "w"); |
10734 | if (!f) exit(1); | |
10735 | fprintf(f, "%d\n", sizeof(long long)); | |
10736 | exit(0); | |
247f5006 | 10737 | } |
a0b9e27f | 10738 | EOF |
da494b40 | 10739 | if { (eval echo configure:10740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10740 | then |
10741 | ac_cv_sizeof_long_long=`cat conftestval` | |
7b4a847f | 10742 | else |
a0b9e27f MB |
10743 | echo "configure: failed program was:" >&5 |
10744 | cat conftest.$ac_ext >&5 | |
10745 | rm -fr conftest* | |
10746 | ac_cv_sizeof_long_long=0 | |
5c6fa7d2 | 10747 | fi |
a0b9e27f | 10748 | rm -fr conftest* |
5c6fa7d2 | 10749 | fi |
8284b0c5 | 10750 | |
a0b9e27f MB |
10751 | fi |
10752 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10753 | cat >> confdefs.h <<EOF | |
10754 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10755 | EOF | |
10756 | ||
10757 | ||
10758 | ;; | |
4f57cf11 | 10759 | *-hp-hpux* ) |
a0b9e27f | 10760 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
da494b40 | 10761 | echo "configure:10762: checking size of long long" >&5 |
a0b9e27f MB |
10762 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10763 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 MB |
10764 | else |
10765 | if test "$cross_compiling" = yes; then | |
a0b9e27f | 10766 | ac_cv_sizeof_long_long=0 |
8284b0c5 | 10767 | else |
a0b9e27f | 10768 | cat > conftest.$ac_ext <<EOF |
da494b40 | 10769 | #line 10770 "configure" |
8284b0c5 MB |
10770 | #include "confdefs.h" |
10771 | #include <stdio.h> | |
93fac604 | 10772 | #include <sys/types.h> |
a0b9e27f | 10773 | main() |
8284b0c5 | 10774 | { |
a0b9e27f MB |
10775 | FILE *f=fopen("conftestval", "w"); |
10776 | if (!f) exit(1); | |
10777 | fprintf(f, "%d\n", sizeof(long long)); | |
10778 | exit(0); | |
8284b0c5 | 10779 | } |
a0b9e27f | 10780 | EOF |
da494b40 | 10781 | if { (eval echo configure:10782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10782 | then |
10783 | ac_cv_sizeof_long_long=`cat conftestval` | |
5c6fa7d2 | 10784 | else |
a0b9e27f MB |
10785 | echo "configure: failed program was:" >&5 |
10786 | cat conftest.$ac_ext >&5 | |
10787 | rm -fr conftest* | |
5c6fa7d2 | 10788 | ac_cv_sizeof_long_long=0 |
52127426 | 10789 | fi |
a0b9e27f MB |
10790 | rm -fr conftest* |
10791 | fi | |
10792 | ||
4f57cf11 GD |
10793 | fi |
10794 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10795 | cat >> confdefs.h <<EOF | |
10796 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10797 | EOF | |
10798 | ||
10799 | ||
10800 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
10801 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
10802 | fi | |
10803 | ;; | |
10804 | * ) | |
10805 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
da494b40 | 10806 | echo "configure:10807: checking size of long long" >&5 |
4f57cf11 GD |
10807 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10808 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10809 | else | |
10810 | if test "$cross_compiling" = yes; then | |
10811 | ac_cv_sizeof_long_long=0 | |
10812 | else | |
10813 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 10814 | #line 10815 "configure" |
4f57cf11 GD |
10815 | #include "confdefs.h" |
10816 | #include <stdio.h> | |
93fac604 | 10817 | #include <sys/types.h> |
4f57cf11 GD |
10818 | main() |
10819 | { | |
10820 | FILE *f=fopen("conftestval", "w"); | |
10821 | if (!f) exit(1); | |
10822 | fprintf(f, "%d\n", sizeof(long long)); | |
10823 | exit(0); | |
10824 | } | |
10825 | EOF | |
da494b40 | 10826 | if { (eval echo configure:10827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f57cf11 GD |
10827 | then |
10828 | ac_cv_sizeof_long_long=`cat conftestval` | |
10829 | else | |
10830 | echo "configure: failed program was:" >&5 | |
10831 | cat conftest.$ac_ext >&5 | |
10832 | rm -fr conftest* | |
10833 | ac_cv_sizeof_long_long=0 | |
10834 | fi | |
10835 | rm -fr conftest* | |
10836 | fi | |
10837 | ||
7b4a847f | 10838 | fi |
a0b9e27f MB |
10839 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10840 | cat >> confdefs.h <<EOF | |
21d1c967 | 10841 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
a0b9e27f | 10842 | EOF |
9e691f46 | 10843 | |
8284b0c5 | 10844 | |
21d1c967 GD |
10845 | esac |
10846 | ||
a0b9e27f | 10847 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
da494b40 | 10848 | echo "configure:10849: checking size of wchar_t" >&5 |
a0b9e27f MB |
10849 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
10850 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 10851 | else |
a0b9e27f | 10852 | |
21d1c967 | 10853 | if test "$cross_compiling" = yes; then |
2b5f62a0 VZ |
10854 | |
10855 | case "${host}" in | |
10856 | *-pc-msdosdjgpp ) | |
10857 | wx_cv_sizeof_wchar_t=0 | |
10858 | ;; | |
10859 | * ) | |
10860 | wx_cv_sizeof_wchar_t=4 | |
10861 | ;; | |
10862 | esac | |
10863 | ||
a0b9e27f | 10864 | |
6f72b082 | 10865 | else |
a0b9e27f | 10866 | cat > conftest.$ac_ext <<EOF |
da494b40 | 10867 | #line 10868 "configure" |
6f72b082 | 10868 | #include "confdefs.h" |
21d1c967 | 10869 | |
2b5f62a0 VZ |
10870 | /* DJGPP only has fake wchar_t: */ |
10871 | #ifdef __DJGPP__ | |
10872 | # error "fake wchar_t" | |
10873 | #endif | |
21d1c967 GD |
10874 | #ifdef HAVE_WCHAR_H |
10875 | # ifdef __CYGWIN__ | |
10876 | # include <stddef.h> | |
10877 | # endif | |
10878 | # include <wchar.h> | |
10879 | #endif | |
10880 | #ifdef HAVE_STDLIB_H | |
10881 | # include <stdlib.h> | |
10882 | #endif | |
10883 | #include <stdio.h> | |
10884 | int main() | |
10885 | { | |
10886 | FILE *f=fopen("conftestval", "w"); | |
10887 | if (!f) exit(1); | |
10888 | fprintf(f, "%i", sizeof(wchar_t)); | |
10889 | exit(0); | |
10890 | } | |
a0b9e27f MB |
10891 | |
10892 | EOF | |
da494b40 | 10893 | if { (eval echo configure:10894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10894 | then |
21d1c967 | 10895 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 10896 | else |
a0b9e27f MB |
10897 | echo "configure: failed program was:" >&5 |
10898 | cat conftest.$ac_ext >&5 | |
10899 | rm -fr conftest* | |
10900 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 10901 | fi |
a0b9e27f | 10902 | rm -fr conftest* |
6f72b082 | 10903 | fi |
6f72b082 | 10904 | |
a0b9e27f | 10905 | |
3f345b47 VZ |
10906 | fi |
10907 | ||
a0b9e27f MB |
10908 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
10909 | ||
10910 | cat >> confdefs.h <<EOF | |
21d1c967 | 10911 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
a0b9e27f | 10912 | EOF |
90dd450c | 10913 | |
8284b0c5 | 10914 | |
21d1c967 GD |
10915 | # Check whether --enable-largefile or --disable-largefile was given. |
10916 | if test "${enable_largefile+set}" = set; then | |
10917 | enableval="$enable_largefile" | |
a0b9e27f MB |
10918 | : |
10919 | fi | |
3f345b47 | 10920 | |
21d1c967 GD |
10921 | if test "$enable_largefile" != no; then |
10922 | wx_largefile=no | |
a0b9e27f MB |
10923 | |
10924 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
da494b40 | 10925 | echo "configure:10926: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
a0b9e27f MB |
10926 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
10927 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10928 | else | |
10929 | ||
10930 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 10931 | #line 10932 "configure" |
90dd450c | 10932 | #include "confdefs.h" |
21d1c967 GD |
10933 | #define _FILE_OFFSET_BITS 64 |
10934 | #include <sys/types.h> | |
a0b9e27f | 10935 | int main() { |
21d1c967 GD |
10936 | typedef struct { |
10937 | unsigned int field: sizeof(off_t) == 8; | |
10938 | } wxlf; | |
10939 | ||
a0b9e27f MB |
10940 | ; return 0; } |
10941 | EOF | |
da494b40 | 10942 | if { (eval echo configure:10943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10943 | rm -rf conftest* |
21d1c967 | 10944 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 10945 | else |
a0b9e27f MB |
10946 | echo "configure: failed program was:" >&5 |
10947 | cat conftest.$ac_ext >&5 | |
10948 | rm -rf conftest* | |
10949 | ac_cv_sys_file_offset_bits=no | |
5c6fa7d2 | 10950 | fi |
a0b9e27f MB |
10951 | rm -f conftest* |
10952 | ||
10953 | ||
247f5006 | 10954 | fi |
a0b9e27f MB |
10955 | |
10956 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
21d1c967 GD |
10957 | |
10958 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
10959 | wx_largefile=yes | |
a0b9e27f | 10960 | cat >> confdefs.h <<EOF |
21d1c967 | 10961 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
a0b9e27f | 10962 | EOF |
21d1c967 GD |
10963 | |
10964 | fi | |
10965 | ||
10966 | if test "x$wx_largefile" != "xyes"; then | |
a0b9e27f MB |
10967 | |
10968 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
da494b40 | 10969 | echo "configure:10970: checking for _LARGE_FILES value needed for large files" >&5 |
a0b9e27f MB |
10970 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
10971 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10972 | else | |
10973 | ||
10974 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 10975 | #line 10976 "configure" |
f6bcfd97 | 10976 | #include "confdefs.h" |
21d1c967 GD |
10977 | #define _LARGE_FILES 1 |
10978 | #include <sys/types.h> | |
a0b9e27f | 10979 | int main() { |
21d1c967 GD |
10980 | typedef struct { |
10981 | unsigned int field: sizeof(off_t) == 8; | |
10982 | } wxlf; | |
10983 | ||
a0b9e27f MB |
10984 | ; return 0; } |
10985 | EOF | |
da494b40 | 10986 | if { (eval echo configure:10987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10987 | rm -rf conftest* |
21d1c967 | 10988 | ac_cv_sys_large_files=1 |
f6bcfd97 | 10989 | else |
a0b9e27f MB |
10990 | echo "configure: failed program was:" >&5 |
10991 | cat conftest.$ac_ext >&5 | |
10992 | rm -rf conftest* | |
10993 | ac_cv_sys_large_files=no | |
5c6fa7d2 | 10994 | fi |
a0b9e27f MB |
10995 | rm -f conftest* |
10996 | ||
10997 | ||
247f5006 | 10998 | fi |
a0b9e27f MB |
10999 | |
11000 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
3f345b47 | 11001 | |
21d1c967 GD |
11002 | if test "$ac_cv_sys_large_files" != no; then |
11003 | wx_largefile=yes | |
a0b9e27f | 11004 | cat >> confdefs.h <<EOF |
21d1c967 | 11005 | #define _LARGE_FILES $ac_cv_sys_large_files |
a0b9e27f | 11006 | EOF |
90dd450c | 11007 | |
90dd450c VZ |
11008 | fi |
11009 | ||
90dd450c | 11010 | fi |
90dd450c | 11011 | |
a0b9e27f | 11012 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
da494b40 | 11013 | echo "configure:11014: checking if large file support is available" >&5 |
21d1c967 | 11014 | if test "x$wx_largefile" = "xyes"; then |
a0b9e27f | 11015 | cat >> confdefs.h <<\EOF |
21d1c967 | 11016 | #define HAVE_LARGEFILE_SUPPORT 1 |
a0b9e27f | 11017 | EOF |
90dd450c | 11018 | |
90dd450c | 11019 | fi |
a0b9e27f | 11020 | echo "$ac_t""$wx_largefile" 1>&6 |
21d1c967 | 11021 | fi |
90dd450c | 11022 | |
8284b0c5 | 11023 | |
f02444d0 | 11024 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
11025 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
11026 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 11027 | else |
e26c13cf | 11028 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 11029 | fi |
e26c13cf | 11030 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
11031 | fi |
11032 | ||
a0b9e27f | 11033 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
da494b40 | 11034 | echo "configure:11035: checking whether byte ordering is bigendian" >&5 |
a0b9e27f MB |
11035 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
11036 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 11037 | else |
21d1c967 GD |
11038 | ac_cv_c_bigendian=unknown |
11039 | # See if sys/param.h defines the BYTE_ORDER macro. | |
a0b9e27f | 11040 | cat > conftest.$ac_ext <<EOF |
da494b40 | 11041 | #line 11042 "configure" |
90dd450c | 11042 | #include "confdefs.h" |
21d1c967 GD |
11043 | #include <sys/types.h> |
11044 | #include <sys/param.h> | |
a0b9e27f | 11045 | int main() { |
21d1c967 GD |
11046 | |
11047 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
11048 | bogus endian macros | |
11049 | #endif | |
a0b9e27f MB |
11050 | ; return 0; } |
11051 | EOF | |
da494b40 | 11052 | if { (eval echo configure:11053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11053 | rm -rf conftest* |
21d1c967 | 11054 | # It does; now see whether it defined to BIG_ENDIAN or not. |
a0b9e27f | 11055 | cat > conftest.$ac_ext <<EOF |
da494b40 | 11056 | #line 11057 "configure" |
90dd450c | 11057 | #include "confdefs.h" |
21d1c967 GD |
11058 | #include <sys/types.h> |
11059 | #include <sys/param.h> | |
a0b9e27f | 11060 | int main() { |
21d1c967 GD |
11061 | |
11062 | #if BYTE_ORDER != BIG_ENDIAN | |
11063 | not big endian | |
11064 | #endif | |
a0b9e27f MB |
11065 | ; return 0; } |
11066 | EOF | |
da494b40 | 11067 | if { (eval echo configure:11068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11068 | rm -rf conftest* |
21d1c967 | 11069 | ac_cv_c_bigendian=yes |
3f345b47 | 11070 | else |
a0b9e27f MB |
11071 | echo "configure: failed program was:" >&5 |
11072 | cat conftest.$ac_ext >&5 | |
11073 | rm -rf conftest* | |
11074 | ac_cv_c_bigendian=no | |
3f345b47 | 11075 | fi |
a0b9e27f | 11076 | rm -f conftest* |
3f345b47 | 11077 | else |
a0b9e27f MB |
11078 | echo "configure: failed program was:" >&5 |
11079 | cat conftest.$ac_ext >&5 | |
3f345b47 | 11080 | fi |
a0b9e27f | 11081 | rm -f conftest* |
21d1c967 GD |
11082 | if test $ac_cv_c_bigendian = unknown; then |
11083 | if test "$cross_compiling" = yes; then | |
11084 | ac_cv_c_bigendian=unknown | |
10f2d63a | 11085 | else |
a0b9e27f | 11086 | cat > conftest.$ac_ext <<EOF |
da494b40 | 11087 | #line 11088 "configure" |
90dd450c | 11088 | #include "confdefs.h" |
21d1c967 GD |
11089 | main () { |
11090 | /* Are we little or big endian? From Harbison&Steele. */ | |
11091 | union | |
11092 | { | |
11093 | long l; | |
11094 | char c[sizeof (long)]; | |
11095 | } u; | |
11096 | u.l = 1; | |
11097 | exit (u.c[sizeof (long) - 1] == 1); | |
11098 | } | |
a0b9e27f | 11099 | EOF |
da494b40 | 11100 | if { (eval echo configure:11101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 11101 | then |
21d1c967 | 11102 | ac_cv_c_bigendian=no |
3f345b47 | 11103 | else |
a0b9e27f MB |
11104 | echo "configure: failed program was:" >&5 |
11105 | cat conftest.$ac_ext >&5 | |
11106 | rm -fr conftest* | |
11107 | ac_cv_c_bigendian=yes | |
247f5006 | 11108 | fi |
a0b9e27f | 11109 | rm -fr conftest* |
247f5006 | 11110 | fi |
a0b9e27f | 11111 | |
3f345b47 | 11112 | fi |
8168de4c | 11113 | fi |
a0b9e27f MB |
11114 | |
11115 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
247f5006 | 11116 | if test $ac_cv_c_bigendian = unknown; then |
a0b9e27f | 11117 | echo "configure: warning: Assuming little-endian target machine - this may be overriden by adding the line "ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}" to config.cache file" 1>&2 |
247f5006 VZ |
11118 | fi |
11119 | if test $ac_cv_c_bigendian = yes; then | |
a0b9e27f | 11120 | cat >> confdefs.h <<\EOF |
247f5006 | 11121 | #define WORDS_BIGENDIAN 1 |
a0b9e27f | 11122 | EOF |
247f5006 VZ |
11123 | |
11124 | fi | |
11125 | ||
11126 | ||
a0b9e27f | 11127 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
da494b40 | 11128 | echo "configure:11129: checking how to run the C++ preprocessor" >&5 |
247f5006 | 11129 | if test -z "$CXXCPP"; then |
a0b9e27f MB |
11130 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
11131 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11132 | else |
a0b9e27f MB |
11133 | ac_ext=C |
11134 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11135 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11136 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11137 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11138 | cross_compiling=$ac_cv_prog_cxx_cross | |
11139 | CXXCPP="${CXX-g++} -E" | |
11140 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 11141 | #line 11142 "configure" |
5c6fa7d2 | 11142 | #include "confdefs.h" |
a0b9e27f MB |
11143 | #include <stdlib.h> |
11144 | EOF | |
11145 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 11146 | { (eval echo configure:11147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11147 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11148 | if test -z "$ac_err"; then | |
21d1c967 | 11149 | : |
698dcdb6 | 11150 | else |
a0b9e27f MB |
11151 | echo "$ac_err" >&5 |
11152 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 11153 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11154 | rm -rf conftest* |
11155 | CXXCPP=/lib/cpp | |
247f5006 | 11156 | fi |
a0b9e27f MB |
11157 | rm -f conftest* |
11158 | ac_cv_prog_CXXCPP="$CXXCPP" | |
11159 | ac_ext=C | |
11160 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11161 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11162 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11163 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11164 | cross_compiling=$ac_cv_prog_cxx_cross | |
328a083c | 11165 | fi |
90dd450c | 11166 | fi |
a0b9e27f MB |
11167 | CXXCPP="$ac_cv_prog_CXXCPP" |
11168 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e6feb95 | 11169 | |
1725144d | 11170 | |
21d1c967 | 11171 | if test "$cross_compiling" = "yes"; then |
a0b9e27f | 11172 | cat >> confdefs.h <<\EOF |
21d1c967 | 11173 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11174 | EOF |
ab9b9eab | 11175 | |
21d1c967 | 11176 | else |
a0b9e27f MB |
11177 | |
11178 | ac_ext=C | |
11179 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11180 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11181 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11182 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11183 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 11184 | |
247f5006 | 11185 | |
a0b9e27f | 11186 | for ac_hdr in iostream |
21d1c967 | 11187 | do |
a0b9e27f MB |
11188 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11189 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
da494b40 | 11190 | echo "configure:11191: checking for $ac_hdr" >&5 |
a0b9e27f MB |
11191 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11192 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11193 | else | |
11194 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 11195 | #line 11196 "configure" |
ab9b9eab | 11196 | #include "confdefs.h" |
a0b9e27f MB |
11197 | #include <$ac_hdr> |
11198 | EOF | |
11199 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 11200 | { (eval echo configure:11201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11201 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11202 | if test -z "$ac_err"; then | |
11203 | rm -rf conftest* | |
11204 | eval "ac_cv_header_$ac_safe=yes" | |
11205 | else | |
11206 | echo "$ac_err" >&5 | |
11207 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 11208 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11209 | rm -rf conftest* |
11210 | eval "ac_cv_header_$ac_safe=no" | |
ab9b9eab | 11211 | fi |
a0b9e27f | 11212 | rm -f conftest* |
90dd450c | 11213 | fi |
a0b9e27f MB |
11214 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11215 | echo "$ac_t""yes" 1>&6 | |
11216 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11217 | cat >> confdefs.h <<EOF | |
11218 | #define $ac_tr_hdr 1 | |
11219 | EOF | |
11220 | ||
11221 | else | |
11222 | echo "$ac_t""no" 1>&6 | |
90dd450c | 11223 | fi |
21d1c967 | 11224 | done |
10f2d63a | 11225 | |
8284b0c5 | 11226 | |
21d1c967 GD |
11227 | if test "$ac_cv_header_iostream" = "yes" ; then |
11228 | : | |
11229 | else | |
a0b9e27f | 11230 | cat >> confdefs.h <<\EOF |
21d1c967 | 11231 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11232 | EOF |
788deba1 | 11233 | |
90dd450c | 11234 | fi |
ab9b9eab | 11235 | |
21d1c967 | 11236 | ac_ext=c |
a0b9e27f | 11237 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11238 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11239 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11240 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11241 | cross_compiling=$ac_cv_prog_cc_cross | |
ab9b9eab | 11242 | |
21d1c967 | 11243 | fi |
ab9b9eab | 11244 | |
52127426 | 11245 | |
8284b0c5 | 11246 | |
a0b9e27f | 11247 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
da494b40 | 11248 | echo "configure:11249: checking if C++ compiler supports bool" >&5 |
a0b9e27f MB |
11249 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
11250 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11251 | else |
a0b9e27f MB |
11252 | |
11253 | ||
11254 | ac_ext=C | |
11255 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11256 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11257 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11258 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11259 | cross_compiling=$ac_cv_prog_cxx_cross | |
21d1c967 | 11260 | |
8284b0c5 | 11261 | |
a0b9e27f | 11262 | cat > conftest.$ac_ext <<EOF |
da494b40 | 11263 | #line 11264 "configure" |
ab9b9eab | 11264 | #include "confdefs.h" |
21d1c967 | 11265 | |
a0b9e27f MB |
11266 | |
11267 | int main() { | |
21d1c967 GD |
11268 | |
11269 | bool b = true; | |
11270 | ||
11271 | return 0; | |
a0b9e27f MB |
11272 | |
11273 | ; return 0; } | |
11274 | EOF | |
da494b40 | 11275 | if { (eval echo configure:11276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11276 | rm -rf conftest* |
11277 | ||
21d1c967 | 11278 | wx_cv_cpp_bool=yes |
a0b9e27f | 11279 | |
698dcdb6 | 11280 | else |
a0b9e27f MB |
11281 | echo "configure: failed program was:" >&5 |
11282 | cat conftest.$ac_ext >&5 | |
11283 | rm -rf conftest* | |
11284 | ||
21d1c967 | 11285 | wx_cv_cpp_bool=no |
a0b9e27f MB |
11286 | |
11287 | ||
698dcdb6 | 11288 | fi |
a0b9e27f | 11289 | rm -f conftest* |
21d1c967 GD |
11290 | |
11291 | ac_ext=c | |
a0b9e27f | 11292 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11293 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11294 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11295 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11296 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11297 | |
a0b9e27f | 11298 | |
247f5006 | 11299 | fi |
a0b9e27f MB |
11300 | |
11301 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
21d1c967 GD |
11302 | |
11303 | if test "$wx_cv_cpp_bool" = "yes"; then | |
a0b9e27f | 11304 | cat >> confdefs.h <<\EOF |
21d1c967 | 11305 | #define HAVE_BOOL 1 |
a0b9e27f | 11306 | EOF |
ab9b9eab | 11307 | |
21d1c967 GD |
11308 | fi |
11309 | ||
52127426 | 11310 | |
8284b0c5 | 11311 | |
a0b9e27f | 11312 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 |
da494b40 | 11313 | echo "configure:11314: checking if C++ compiler supports the explicit keyword" >&5 |
a0b9e27f MB |
11314 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then |
11315 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11316 | else |
a0b9e27f MB |
11317 | |
11318 | ||
11319 | ac_ext=C | |
11320 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11321 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11322 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11323 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11324 | cross_compiling=$ac_cv_prog_cxx_cross | |
986ecc86 | 11325 | |
8284b0c5 | 11326 | |
a0b9e27f | 11327 | cat > conftest.$ac_ext <<EOF |
da494b40 | 11328 | #line 11329 "configure" |
986ecc86 VZ |
11329 | #include "confdefs.h" |
11330 | ||
11331 | class Foo { public: explicit Foo(int) {} }; | |
a0b9e27f MB |
11332 | |
11333 | int main() { | |
986ecc86 VZ |
11334 | |
11335 | return 0; | |
a0b9e27f MB |
11336 | |
11337 | ; return 0; } | |
11338 | EOF | |
da494b40 | 11339 | if { (eval echo configure:11340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11340 | rm -rf conftest* |
11341 | ||
11342 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 11343 | #line 11344 "configure" |
986ecc86 VZ |
11344 | #include "confdefs.h" |
11345 | ||
11346 | class Foo { public: explicit Foo(int) {} }; | |
11347 | static void TakeFoo(const Foo& foo) { } | |
a0b9e27f MB |
11348 | |
11349 | int main() { | |
986ecc86 VZ |
11350 | |
11351 | TakeFoo(17); | |
11352 | return 0; | |
a0b9e27f MB |
11353 | |
11354 | ; return 0; } | |
11355 | EOF | |
da494b40 | 11356 | if { (eval echo configure:11357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11357 | rm -rf conftest* |
986ecc86 VZ |
11358 | wx_cv_explicit=no |
11359 | else | |
a0b9e27f MB |
11360 | echo "configure: failed program was:" >&5 |
11361 | cat conftest.$ac_ext >&5 | |
11362 | rm -rf conftest* | |
11363 | wx_cv_explicit=yes | |
11364 | ||
986ecc86 | 11365 | fi |
a0b9e27f MB |
11366 | rm -f conftest* |
11367 | ||
986ecc86 | 11368 | else |
a0b9e27f MB |
11369 | echo "configure: failed program was:" >&5 |
11370 | cat conftest.$ac_ext >&5 | |
11371 | rm -rf conftest* | |
11372 | wx_cv_explicit=no | |
11373 | ||
986ecc86 | 11374 | fi |
a0b9e27f | 11375 | rm -f conftest* |
986ecc86 VZ |
11376 | |
11377 | ac_ext=c | |
a0b9e27f | 11378 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
986ecc86 | 11379 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11380 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11381 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11382 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11383 | |
a0b9e27f | 11384 | |
247f5006 | 11385 | fi |
a0b9e27f MB |
11386 | |
11387 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
986ecc86 VZ |
11388 | |
11389 | if test "$wx_cv_explicit" = "yes"; then | |
a0b9e27f | 11390 | cat >> confdefs.h <<\EOF |
986ecc86 | 11391 | #define HAVE_EXPLICIT 1 |
a0b9e27f | 11392 | EOF |
986ecc86 VZ |
11393 | |
11394 | fi | |
11395 | ||
8284b0c5 MB |
11396 | |
11397 | ||
21d1c967 GD |
11398 | SEARCH_INCLUDE="\ |
11399 | /usr/local/include \ | |
11400 | \ | |
11401 | /usr/Motif-1.2/include \ | |
11402 | /usr/Motif-2.1/include \ | |
11403 | \ | |
11404 | /usr/include/Motif1.2 \ | |
11405 | /opt/xpm/include/X11 \ | |
11406 | /opt/GBxpm/include/ \ | |
11407 | /opt/GBxpm/X11/include/ \ | |
11408 | \ | |
11409 | /usr/Motif1.2/include \ | |
11410 | /usr/dt/include \ | |
11411 | /usr/openwin/include \ | |
11412 | \ | |
11413 | /usr/include/Xm \ | |
11414 | \ | |
11415 | /usr/X11R6/include \ | |
11416 | /usr/X11R6.4/include \ | |
11417 | /usr/X11R5/include \ | |
11418 | /usr/X11R4/include \ | |
11419 | \ | |
11420 | /usr/include/X11R6 \ | |
11421 | /usr/include/X11R5 \ | |
11422 | /usr/include/X11R4 \ | |
11423 | \ | |
11424 | /usr/local/X11R6/include \ | |
11425 | /usr/local/X11R5/include \ | |
11426 | /usr/local/X11R4/include \ | |
11427 | \ | |
11428 | /usr/local/include/X11R6 \ | |
11429 | /usr/local/include/X11R5 \ | |
11430 | /usr/local/include/X11R4 \ | |
11431 | \ | |
11432 | /usr/X11/include \ | |
11433 | /usr/include/X11 \ | |
11434 | /usr/local/X11/include \ | |
11435 | /usr/local/include/X11 \ | |
11436 | \ | |
11437 | /usr/X386/include \ | |
11438 | /usr/x386/include \ | |
11439 | /usr/XFree86/include/X11 \ | |
11440 | \ | |
11441 | X:/XFree86/include \ | |
11442 | X:/XFree86/include/X11 \ | |
11443 | \ | |
11444 | /usr/include/gtk \ | |
11445 | /usr/local/include/gtk \ | |
11446 | /usr/include/glib \ | |
11447 | /usr/local/include/glib \ | |
11448 | \ | |
11449 | /usr/include/qt \ | |
11450 | /usr/local/include/qt \ | |
11451 | \ | |
11452 | /usr/include/windows \ | |
11453 | /usr/include/wine \ | |
11454 | /usr/local/include/wine \ | |
11455 | \ | |
11456 | /usr/unsupported/include \ | |
11457 | /usr/athena/include \ | |
11458 | /usr/local/x11r5/include \ | |
11459 | /usr/lpp/Xamples/include \ | |
11460 | \ | |
2b5f62a0 | 11461 | /usr/openwin/share/include" |
21d1c967 GD |
11462 | |
11463 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
11464 | ||
8284b0c5 | 11465 | |
a0b9e27f | 11466 | cat > confcache <<\EOF |
21d1c967 GD |
11467 | # This file is a shell script that caches the results of configure |
11468 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
11469 | # scripts and configure runs. It is not useful on other systems. |
11470 | # If it contains results you don't want to keep, you may remove or edit it. | |
21d1c967 | 11471 | # |
a0b9e27f MB |
11472 | # By default, configure uses ./config.cache as the cache file, |
11473 | # creating it if it does not exist already. You can give configure | |
11474 | # the --cache-file=FILE option to use a different cache file; that is | |
11475 | # what configure does when it calls configure scripts in | |
11476 | # subdirectories, so they share the cache. | |
11477 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
11478 | # config.status only pays attention to the cache file if you give it the | |
11479 | # --recheck option to rerun configure. | |
21d1c967 | 11480 | # |
a0b9e27f | 11481 | EOF |
21d1c967 GD |
11482 | # The following way of writing the cache mishandles newlines in values, |
11483 | # but we know of no workaround that is simple, portable, and efficient. | |
11484 | # So, don't put newlines in cache variables' values. | |
11485 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11486 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
11487 | (set) 2>&1 | |
11488 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11489 | *ac_space=\ *) | |
11490 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11491 | # turns \\\\ into \\, and sed turns \\ into \). | |
11492 | sed -n \ | |
11493 | -e "s/'/'\\\\''/g" \ | |
11494 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11495 | ;; | |
11496 | *) | |
11497 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11498 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11499 | ;; | |
11500 | esac >> confcache | |
11501 | if cmp -s $cache_file confcache; then | |
11502 | : | |
11503 | else | |
21d1c967 | 11504 | if test -w $cache_file; then |
a0b9e27f MB |
11505 | echo "updating cache $cache_file" |
11506 | cat confcache > $cache_file | |
21d1c967 GD |
11507 | else |
11508 | echo "not updating unwritable cache $cache_file" | |
11509 | fi | |
ab9b9eab | 11510 | fi |
21d1c967 | 11511 | rm -f confcache |
ab9b9eab | 11512 | |
247f5006 | 11513 | |
a0b9e27f MB |
11514 | if test "$USE_LINUX" = 1; then |
11515 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
da494b40 | 11516 | echo "configure:11517: checking for glibc 2.1 or later" >&5 |
a0b9e27f MB |
11517 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then |
11518 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11519 | else | |
11520 | ||
11521 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 11522 | #line 11523 "configure" |
ab9b9eab | 11523 | #include "confdefs.h" |
21d1c967 | 11524 | #include <features.h> |
a0b9e27f | 11525 | int main() { |
ab9b9eab | 11526 | |
21d1c967 GD |
11527 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
11528 | #error not glibc2.1 | |
11529 | #endif | |
a0b9e27f MB |
11530 | |
11531 | ; return 0; } | |
11532 | EOF | |
da494b40 | 11533 | if { (eval echo configure:11534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11534 | rm -rf conftest* |
11535 | ||
21d1c967 | 11536 | wx_cv_lib_glibc21=yes |
a0b9e27f | 11537 | |
698dcdb6 | 11538 | else |
a0b9e27f MB |
11539 | echo "configure: failed program was:" >&5 |
11540 | cat conftest.$ac_ext >&5 | |
11541 | rm -rf conftest* | |
11542 | ||
21d1c967 | 11543 | wx_cv_lib_glibc21=no |
a0b9e27f MB |
11544 | |
11545 | ||
5c6fa7d2 | 11546 | fi |
a0b9e27f MB |
11547 | rm -f conftest* |
11548 | ||
247f5006 | 11549 | fi |
a0b9e27f MB |
11550 | |
11551 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 | |
21d1c967 | 11552 | if test "$wx_cv_lib_glibc21" = "yes"; then |
a0b9e27f | 11553 | cat >> confdefs.h <<\EOF |
21d1c967 | 11554 | #define wxHAVE_GLIBC2 1 |
a0b9e27f | 11555 | EOF |
1e487827 | 11556 | |
90dd450c | 11557 | fi |
ab9b9eab VZ |
11558 | fi |
11559 | ||
5c0a20c3 VZ |
11560 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
11561 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 11562 | cat >> confdefs.h <<\EOF |
5c0a20c3 | 11563 | #define _GNU_SOURCE 1 |
a0b9e27f | 11564 | EOF |
5c0a20c3 VZ |
11565 | |
11566 | fi | |
11567 | fi | |
11568 | ||
8284b0c5 MB |
11569 | |
11570 | ||
21d1c967 GD |
11571 | REGEX_INCLUDE= |
11572 | if test "$wxUSE_REGEX" != "no"; then | |
a0b9e27f | 11573 | cat >> confdefs.h <<\EOF |
21d1c967 | 11574 | #define wxUSE_REGEX 1 |
a0b9e27f | 11575 | EOF |
698dcdb6 | 11576 | |
8284b0c5 | 11577 | |
21d1c967 | 11578 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
a0b9e27f MB |
11579 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` |
11580 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
da494b40 | 11581 | echo "configure:11582: checking for regex.h" >&5 |
a0b9e27f MB |
11582 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11583 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11584 | else | |
11585 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 11586 | #line 11587 "configure" |
247f5006 VZ |
11587 | #include "confdefs.h" |
11588 | #include <regex.h> | |
a0b9e27f MB |
11589 | EOF |
11590 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 11591 | { (eval echo configure:11592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11592 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11593 | if test -z "$ac_err"; then | |
11594 | rm -rf conftest* | |
11595 | eval "ac_cv_header_$ac_safe=yes" | |
11596 | else | |
11597 | echo "$ac_err" >&5 | |
11598 | echo "configure: failed program was:" >&5 | |
21d1c967 | 11599 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11600 | rm -rf conftest* |
11601 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 11602 | fi |
a0b9e27f | 11603 | rm -f conftest* |
698dcdb6 | 11604 | fi |
a0b9e27f MB |
11605 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11606 | echo "$ac_t""yes" 1>&6 | |
11607 | for ac_func in regcomp | |
21d1c967 | 11608 | do |
a0b9e27f | 11609 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 11610 | echo "configure:11611: checking for $ac_func" >&5 |
a0b9e27f MB |
11611 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11612 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11613 | else |
a0b9e27f | 11614 | cat > conftest.$ac_ext <<EOF |
da494b40 | 11615 | #line 11616 "configure" |
a0b9e27f MB |
11616 | #include "confdefs.h" |
11617 | /* System header to define __stub macros and hopefully few prototypes, | |
11618 | which can conflict with char $ac_func(); below. */ | |
21d1c967 GD |
11619 | #include <assert.h> |
11620 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11621 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11622 | builtin and then its argument prototype would still apply. */ |
11623 | char $ac_func(); | |
11624 | ||
11625 | int main() { | |
11626 | ||
21d1c967 GD |
11627 | /* The GNU C library defines this for functions which it implements |
11628 | to always fail with ENOSYS. Some functions are actually named | |
11629 | something starting with __ and the normal name is an alias. */ | |
11630 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11631 | choke me | |
11632 | #else | |
a0b9e27f | 11633 | $ac_func(); |
21d1c967 | 11634 | #endif |
90dd450c | 11635 | |
a0b9e27f MB |
11636 | ; return 0; } |
11637 | EOF | |
da494b40 | 11638 | if { (eval echo configure:11639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11639 | rm -rf conftest* |
11640 | eval "ac_cv_func_$ac_func=yes" | |
11641 | else | |
11642 | echo "configure: failed program was:" >&5 | |
11643 | cat conftest.$ac_ext >&5 | |
11644 | rm -rf conftest* | |
11645 | eval "ac_cv_func_$ac_func=no" | |
11646 | fi | |
11647 | rm -f conftest* | |
11648 | fi | |
5c6fa7d2 | 11649 | |
a0b9e27f MB |
11650 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11651 | echo "$ac_t""yes" 1>&6 | |
11652 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11653 | cat >> confdefs.h <<EOF | |
11654 | #define $ac_tr_func 1 | |
11655 | EOF | |
11656 | ||
11657 | else | |
11658 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 11659 | fi |
21d1c967 GD |
11660 | done |
11661 | ||
a0b9e27f MB |
11662 | else |
11663 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11664 | fi |
11665 | ||
8284b0c5 | 11666 | |
21d1c967 GD |
11667 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
11668 | if test "$wxUSE_REGEX" = "sys" ; then | |
a0b9e27f | 11669 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11670 | else |
a0b9e27f | 11671 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11672 | wxUSE_REGEX=builtin |
11673 | fi | |
11674 | else | |
11675 | wxUSE_REGEX=sys | |
11676 | fi | |
ab9b9eab | 11677 | fi |
90dd450c | 11678 | |
21d1c967 GD |
11679 | if test "$wxUSE_REGEX" = "builtin" ; then |
11680 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 11681 | fi |
21d1c967 | 11682 | fi |
90dd450c | 11683 | |
8284b0c5 | 11684 | |
21d1c967 GD |
11685 | ZLIB_INCLUDE= |
11686 | ZLIB_LINK= | |
11687 | if test "$wxUSE_ZLIB" != "no" ; then | |
a0b9e27f | 11688 | cat >> confdefs.h <<\EOF |
21d1c967 | 11689 | #define wxUSE_ZLIB 1 |
a0b9e27f | 11690 | EOF |
21d1c967 | 11691 | |
8284b0c5 | 11692 | |
21d1c967 | 11693 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
11694 | if test "$USE_DARWIN" = 1; then |
11695 | system_zlib_h_ok="yes" | |
11696 | else | |
11697 | echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6 | |
da494b40 | 11698 | echo "configure:11699: checking for zlib.h >= 1.1.4" >&5 |
d643b80e VZ |
11699 | if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then |
11700 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11701 | else | |
11702 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 11703 | unset ac_cv_header_zlib_h |
d775acfa | 11704 | |
d643b80e VZ |
11705 | else |
11706 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 11707 | #line 11708 "configure" |
d643b80e VZ |
11708 | #include "confdefs.h" |
11709 | ||
d775acfa VZ |
11710 | #include <zlib.h> |
11711 | #include <stdio.h> | |
d643b80e | 11712 | |
d775acfa VZ |
11713 | |
11714 | int main() | |
11715 | { | |
11716 | FILE *f=fopen("conftestval", "w"); | |
11717 | if (!f) exit(1); | |
11718 | fprintf(f, "%s", | |
11719 | ZLIB_VERSION[0] == '1' && | |
11720 | (ZLIB_VERSION[2] > '1' || | |
11721 | (ZLIB_VERSION[2] == '1' && | |
11722 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
11723 | exit(0); | |
11724 | } | |
11725 | ||
d643b80e | 11726 | |
d643b80e | 11727 | EOF |
da494b40 | 11728 | if { (eval echo configure:11729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
d643b80e VZ |
11729 | then |
11730 | ac_cv_header_zlib_h=`cat conftestval` | |
11731 | else | |
11732 | echo "configure: failed program was:" >&5 | |
11733 | cat conftest.$ac_ext >&5 | |
11734 | rm -fr conftest* | |
11735 | ac_cv_header_zlib_h=no | |
11736 | fi | |
11737 | rm -fr conftest* | |
11738 | fi | |
11739 | ||
d775acfa | 11740 | |
d643b80e VZ |
11741 | fi |
11742 | ||
11743 | echo "$ac_t""$ac_cv_header_zlib_h" 1>&6 | |
89e6bf6d VZ |
11744 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
11745 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
da494b40 | 11746 | echo "configure:11747: checking for zlib.h" >&5 |
89e6bf6d VZ |
11747 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11748 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11749 | else | |
11750 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 11751 | #line 11752 "configure" |
89e6bf6d VZ |
11752 | #include "confdefs.h" |
11753 | #include <zlib.h> | |
11754 | EOF | |
11755 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 11756 | { (eval echo configure:11757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
89e6bf6d VZ |
11757 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11758 | if test -z "$ac_err"; then | |
11759 | rm -rf conftest* | |
11760 | eval "ac_cv_header_$ac_safe=yes" | |
11761 | else | |
11762 | echo "$ac_err" >&5 | |
11763 | echo "configure: failed program was:" >&5 | |
11764 | cat conftest.$ac_ext >&5 | |
11765 | rm -rf conftest* | |
11766 | eval "ac_cv_header_$ac_safe=no" | |
11767 | fi | |
11768 | rm -f conftest* | |
11769 | fi | |
11770 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11771 | echo "$ac_t""yes" 1>&6 | |
11772 | : | |
11773 | else | |
11774 | echo "$ac_t""no" 1>&6 | |
11775 | fi | |
11776 | ||
d643b80e | 11777 | |
d775acfa VZ |
11778 | system_zlib_h_ok=$ac_cv_header_zlib_h |
11779 | fi | |
11780 | ||
11781 | if test "$system_zlib_h_ok" = "yes"; then | |
d643b80e | 11782 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
da494b40 | 11783 | echo "configure:11784: checking for deflate in -lz" >&5 |
a0b9e27f MB |
11784 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
11785 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11786 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11787 | else |
a0b9e27f | 11788 | ac_save_LIBS="$LIBS" |
21d1c967 | 11789 | LIBS="-lz $LIBS" |
a0b9e27f | 11790 | cat > conftest.$ac_ext <<EOF |
da494b40 | 11791 | #line 11792 "configure" |
ab9b9eab | 11792 | #include "confdefs.h" |
21d1c967 GD |
11793 | /* Override any gcc2 internal prototype to avoid an error. */ |
11794 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11795 | builtin and then its argument prototype would still apply. */ |
11796 | char deflate(); | |
11797 | ||
11798 | int main() { | |
11799 | deflate() | |
11800 | ; return 0; } | |
11801 | EOF | |
da494b40 | 11802 | if { (eval echo configure:11803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11803 | rm -rf conftest* |
11804 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11805 | else | |
11806 | echo "configure: failed program was:" >&5 | |
11807 | cat conftest.$ac_ext >&5 | |
11808 | rm -rf conftest* | |
11809 | eval "ac_cv_lib_$ac_lib_var=no" | |
90dd450c | 11810 | fi |
a0b9e27f MB |
11811 | rm -f conftest* |
11812 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 11813 | |
698dcdb6 | 11814 | fi |
a0b9e27f MB |
11815 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11816 | echo "$ac_t""yes" 1>&6 | |
11817 | ZLIB_LINK=" -lz" | |
11818 | else | |
11819 | echo "$ac_t""no" 1>&6 | |
11820 | fi | |
698dcdb6 | 11821 | |
d643b80e | 11822 | fi |
247f5006 | 11823 | |
21d1c967 GD |
11824 | if test "x$ZLIB_LINK" = "x" ; then |
11825 | if test "$wxUSE_ZLIB" = "sys" ; then | |
d643b80e | 11826 | { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11827 | else |
d643b80e | 11828 | echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2 |
21d1c967 GD |
11829 | wxUSE_ZLIB=builtin |
11830 | fi | |
11831 | else | |
11832 | wxUSE_ZLIB=sys | |
11833 | fi | |
11834 | fi | |
11835 | ||
11836 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11837 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11838 | fi | |
ab9b9eab VZ |
11839 | fi |
11840 | ||
8284b0c5 | 11841 | |
21d1c967 GD |
11842 | PNG_INCLUDE= |
11843 | PNG_LINK= | |
11844 | if test "$wxUSE_LIBPNG" != "no" ; then | |
a0b9e27f | 11845 | cat >> confdefs.h <<\EOF |
21d1c967 | 11846 | #define wxUSE_LIBPNG 1 |
a0b9e27f | 11847 | EOF |
90dd450c | 11848 | |
8284b0c5 | 11849 | |
21d1c967 | 11850 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
a0b9e27f | 11851 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11852 | wxUSE_LIBPNG=sys |
11853 | fi | |
90dd450c | 11854 | |
21d1c967 | 11855 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
a0b9e27f | 11856 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
21d1c967 GD |
11857 | wxUSE_LIBPNG=builtin |
11858 | fi | |
11859 | ||
11860 | if test "$wxUSE_MGL" != 1 ; then | |
11861 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
5d3f766d | 11862 | echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6 |
da494b40 | 11863 | echo "configure:11864: checking for png.h > 0.90" >&5 |
5d3f766d VZ |
11864 | if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then |
11865 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11866 | else | |
11867 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 11868 | unset ac_cv_header_png_h |
5d3f766d VZ |
11869 | |
11870 | else | |
11871 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 11872 | #line 11873 "configure" |
5d3f766d VZ |
11873 | #include "confdefs.h" |
11874 | ||
11875 | #include <png.h> | |
11876 | #include <stdio.h> | |
11877 | ||
11878 | int main() | |
11879 | { | |
11880 | FILE *f=fopen("conftestval", "w"); | |
11881 | if (!f) exit(1); | |
11882 | fprintf(f, "%s", | |
11883 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
11884 | exit(0); | |
11885 | } | |
11886 | ||
11887 | EOF | |
da494b40 | 11888 | if { (eval echo configure:11889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5d3f766d VZ |
11889 | then |
11890 | ac_cv_header_png_h=`cat conftestval` | |
11891 | else | |
11892 | echo "configure: failed program was:" >&5 | |
11893 | cat conftest.$ac_ext >&5 | |
11894 | rm -fr conftest* | |
11895 | ac_cv_header_png_h=no | |
11896 | fi | |
11897 | rm -fr conftest* | |
11898 | fi | |
11899 | ||
11900 | ||
11901 | fi | |
11902 | ||
11903 | echo "$ac_t""$ac_cv_header_png_h" 1>&6 | |
89e6bf6d VZ |
11904 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
11905 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
da494b40 | 11906 | echo "configure:11907: checking for png.h" >&5 |
89e6bf6d VZ |
11907 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11908 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11909 | else | |
11910 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 11911 | #line 11912 "configure" |
89e6bf6d VZ |
11912 | #include "confdefs.h" |
11913 | #include <png.h> | |
11914 | EOF | |
11915 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 11916 | { (eval echo configure:11917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
89e6bf6d VZ |
11917 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11918 | if test -z "$ac_err"; then | |
11919 | rm -rf conftest* | |
11920 | eval "ac_cv_header_$ac_safe=yes" | |
11921 | else | |
11922 | echo "$ac_err" >&5 | |
11923 | echo "configure: failed program was:" >&5 | |
11924 | cat conftest.$ac_ext >&5 | |
11925 | rm -rf conftest* | |
11926 | eval "ac_cv_header_$ac_safe=no" | |
11927 | fi | |
11928 | rm -f conftest* | |
11929 | fi | |
11930 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11931 | echo "$ac_t""yes" 1>&6 | |
11932 | : | |
11933 | else | |
11934 | echo "$ac_t""no" 1>&6 | |
11935 | fi | |
11936 | ||
5d3f766d VZ |
11937 | |
11938 | if test "$ac_cv_header_png_h" = "yes"; then | |
11939 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
da494b40 | 11940 | echo "configure:11941: checking for png_check_sig in -lpng" >&5 |
a0b9e27f MB |
11941 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
11942 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11943 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11944 | else |
a0b9e27f | 11945 | ac_save_LIBS="$LIBS" |
21d1c967 | 11946 | LIBS="-lpng -lz -lm $LIBS" |
a0b9e27f | 11947 | cat > conftest.$ac_ext <<EOF |
da494b40 | 11948 | #line 11949 "configure" |
90dd450c | 11949 | #include "confdefs.h" |
21d1c967 GD |
11950 | /* Override any gcc2 internal prototype to avoid an error. */ |
11951 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11952 | builtin and then its argument prototype would still apply. */ |
11953 | char png_check_sig(); | |
90dd450c | 11954 | |
a0b9e27f MB |
11955 | int main() { |
11956 | png_check_sig() | |
11957 | ; return 0; } | |
11958 | EOF | |
da494b40 | 11959 | if { (eval echo configure:11960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11960 | rm -rf conftest* |
11961 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11962 | else | |
11963 | echo "configure: failed program was:" >&5 | |
11964 | cat conftest.$ac_ext >&5 | |
11965 | rm -rf conftest* | |
11966 | eval "ac_cv_lib_$ac_lib_var=no" | |
11967 | fi | |
11968 | rm -f conftest* | |
11969 | LIBS="$ac_save_LIBS" | |
247f5006 | 11970 | |
90dd450c | 11971 | fi |
a0b9e27f MB |
11972 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11973 | echo "$ac_t""yes" 1>&6 | |
11974 | PNG_LINK=" -lpng" | |
11975 | else | |
11976 | echo "$ac_t""no" 1>&6 | |
11977 | fi | |
90dd450c | 11978 | |
5d3f766d | 11979 | fi |
247f5006 | 11980 | |
21d1c967 GD |
11981 | if test "x$PNG_LINK" = "x" ; then |
11982 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
0c98a14e | 11983 | { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11984 | else |
0c98a14e | 11985 | echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2 |
21d1c967 GD |
11986 | wxUSE_LIBPNG=builtin |
11987 | fi | |
11988 | else | |
2b5f62a0 | 11989 | wxUSE_LIBPNG=sys |
21d1c967 GD |
11990 | fi |
11991 | fi | |
11992 | fi | |
90dd450c | 11993 | |
21d1c967 GD |
11994 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
11995 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11996 | fi | |
90dd450c | 11997 | |
21d1c967 | 11998 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
11999 | fi |
12000 | ||
8284b0c5 | 12001 | |
21d1c967 GD |
12002 | JPEG_INCLUDE= |
12003 | JPEG_LINK= | |
12004 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
a0b9e27f | 12005 | cat >> confdefs.h <<\EOF |
21d1c967 | 12006 | #define wxUSE_LIBJPEG 1 |
a0b9e27f | 12007 | EOF |
90dd450c | 12008 | |
8284b0c5 | 12009 | |
21d1c967 | 12010 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
a0b9e27f | 12011 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 |
21d1c967 GD |
12012 | wxUSE_LIBJPEG=sys |
12013 | fi | |
90dd450c | 12014 | |
21d1c967 GD |
12015 | if test "$wxUSE_MGL" != 1 ; then |
12016 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
a0b9e27f | 12017 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
da494b40 | 12018 | echo "configure:12019: checking for jpeglib.h" >&5 |
a0b9e27f MB |
12019 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
12020 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12021 | else |
a0b9e27f | 12022 | cat > conftest.$ac_ext <<EOF |
da494b40 | 12023 | #line 12024 "configure" |
21d1c967 | 12024 | #include "confdefs.h" |
90dd450c | 12025 | |
21d1c967 GD |
12026 | #undef HAVE_STDLIB_H |
12027 | #include <stdio.h> | |
12028 | #include <jpeglib.h> | |
a0b9e27f MB |
12029 | |
12030 | int main() { | |
90dd450c | 12031 | |
a0b9e27f MB |
12032 | |
12033 | ; return 0; } | |
12034 | EOF | |
da494b40 | 12035 | if { (eval echo configure:12036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 12036 | rm -rf conftest* |
21d1c967 | 12037 | ac_cv_header_jpeglib_h=yes |
90dd450c | 12038 | else |
a0b9e27f MB |
12039 | echo "configure: failed program was:" >&5 |
12040 | cat conftest.$ac_ext >&5 | |
12041 | rm -rf conftest* | |
12042 | ac_cv_header_jpeglib_h=no | |
12043 | ||
90dd450c | 12044 | fi |
a0b9e27f MB |
12045 | rm -f conftest* |
12046 | ||
90dd450c VZ |
12047 | fi |
12048 | ||
a0b9e27f | 12049 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
90dd450c | 12050 | |
21d1c967 | 12051 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
a0b9e27f | 12052 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 |
da494b40 | 12053 | echo "configure:12054: checking for jpeg_read_header in -ljpeg" >&5 |
a0b9e27f MB |
12054 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
12055 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12056 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12057 | else |
a0b9e27f | 12058 | ac_save_LIBS="$LIBS" |
21d1c967 | 12059 | LIBS="-ljpeg $LIBS" |
a0b9e27f | 12060 | cat > conftest.$ac_ext <<EOF |
da494b40 | 12061 | #line 12062 "configure" |
21d1c967 GD |
12062 | #include "confdefs.h" |
12063 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12064 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
12065 | builtin and then its argument prototype would still apply. */ |
12066 | char jpeg_read_header(); | |
12067 | ||
12068 | int main() { | |
12069 | jpeg_read_header() | |
12070 | ; return 0; } | |
12071 | EOF | |
da494b40 | 12072 | if { (eval echo configure:12073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12073 | rm -rf conftest* |
12074 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12075 | else | |
12076 | echo "configure: failed program was:" >&5 | |
12077 | cat conftest.$ac_ext >&5 | |
12078 | rm -rf conftest* | |
12079 | eval "ac_cv_lib_$ac_lib_var=no" | |
12080 | fi | |
12081 | rm -f conftest* | |
12082 | LIBS="$ac_save_LIBS" | |
12083 | ||
12084 | fi | |
12085 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12086 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 12087 | JPEG_LINK=" -ljpeg" |
a0b9e27f MB |
12088 | else |
12089 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
12090 | fi |
12091 | ||
21d1c967 | 12092 | fi |
90dd450c | 12093 | |
21d1c967 GD |
12094 | if test "x$JPEG_LINK" = "x" ; then |
12095 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
a0b9e27f | 12096 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 12097 | else |
a0b9e27f | 12098 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
12099 | wxUSE_LIBJPEG=builtin |
12100 | fi | |
12101 | else | |
12102 | wxUSE_LIBJPEG=sys | |
12103 | fi | |
12104 | fi | |
12105 | fi | |
90dd450c | 12106 | |
21d1c967 GD |
12107 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
12108 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
12109 | fi | |
12110 | fi | |
90dd450c | 12111 | |
8284b0c5 | 12112 | |
21d1c967 GD |
12113 | TIFF_INCLUDE= |
12114 | TIFF_LINK= | |
2b5f62a0 | 12115 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 12116 | if test "$wxUSE_LIBTIFF" != "no" ; then |
a0b9e27f | 12117 | cat >> confdefs.h <<\EOF |
21d1c967 | 12118 | #define wxUSE_LIBTIFF 1 |
a0b9e27f | 12119 | EOF |
21d1c967 | 12120 | |
8284b0c5 | 12121 | |
21d1c967 | 12122 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
12123 | if test "$wxUSE_LIBJPEG" = "sys"; then |
12124 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
12125 | fi | |
12126 | if test "$wxUSE_ZLIB" = "sys"; then | |
12127 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
12128 | fi | |
a0b9e27f MB |
12129 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
12130 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
da494b40 | 12131 | echo "configure:12132: checking for tiffio.h" >&5 |
a0b9e27f MB |
12132 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12133 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12134 | else | |
12135 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 12136 | #line 12137 "configure" |
247f5006 VZ |
12137 | #include "confdefs.h" |
12138 | #include <tiffio.h> | |
a0b9e27f MB |
12139 | EOF |
12140 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 12141 | { (eval echo configure:12142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12142 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12143 | if test -z "$ac_err"; then | |
12144 | rm -rf conftest* | |
12145 | eval "ac_cv_header_$ac_safe=yes" | |
12146 | else | |
12147 | echo "$ac_err" >&5 | |
12148 | echo "configure: failed program was:" >&5 | |
21d1c967 | 12149 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12150 | rm -rf conftest* |
12151 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 12152 | fi |
a0b9e27f | 12153 | rm -f conftest* |
21d1c967 | 12154 | fi |
a0b9e27f MB |
12155 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12156 | echo "$ac_t""yes" 1>&6 | |
12157 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
da494b40 | 12158 | echo "configure:12159: checking for TIFFError in -ltiff" >&5 |
a0b9e27f MB |
12159 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
12160 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12161 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 12162 | else |
a0b9e27f | 12163 | ac_save_LIBS="$LIBS" |
2b5f62a0 | 12164 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
a0b9e27f | 12165 | cat > conftest.$ac_ext <<EOF |
da494b40 | 12166 | #line 12167 "configure" |
ab9b9eab VZ |
12167 | #include "confdefs.h" |
12168 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12169 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
12170 | builtin and then its argument prototype would still apply. */ |
12171 | char TIFFError(); | |
ab9b9eab | 12172 | |
a0b9e27f MB |
12173 | int main() { |
12174 | TIFFError() | |
12175 | ; return 0; } | |
12176 | EOF | |
da494b40 | 12177 | if { (eval echo configure:12178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12178 | rm -rf conftest* |
12179 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12180 | else | |
12181 | echo "configure: failed program was:" >&5 | |
12182 | cat conftest.$ac_ext >&5 | |
12183 | rm -rf conftest* | |
12184 | eval "ac_cv_lib_$ac_lib_var=no" | |
12185 | fi | |
12186 | rm -f conftest* | |
12187 | LIBS="$ac_save_LIBS" | |
247f5006 | 12188 | |
21d1c967 | 12189 | fi |
a0b9e27f MB |
12190 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
12191 | echo "$ac_t""yes" 1>&6 | |
12192 | TIFF_LINK=" -ltiff" | |
12193 | else | |
12194 | echo "$ac_t""no" 1>&6 | |
12195 | fi | |
cd6d6d5b | 12196 | |
a0b9e27f MB |
12197 | |
12198 | else | |
12199 | echo "$ac_t""no" 1>&6 | |
12200 | fi | |
8284b0c5 | 12201 | |
247f5006 | 12202 | |
21d1c967 GD |
12203 | if test "x$TIFF_LINK" = "x" ; then |
12204 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
a0b9e27f | 12205 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } |
90dd450c | 12206 | else |
a0b9e27f | 12207 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
21d1c967 | 12208 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 12209 | fi |
d8356fa3 | 12210 | else |
21d1c967 | 12211 | wxUSE_LIBTIFF=sys |
d8356fa3 | 12212 | fi |
21d1c967 | 12213 | fi |
d8356fa3 | 12214 | |
21d1c967 GD |
12215 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
12216 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 12217 | fi |
21d1c967 | 12218 | fi |
10f2d63a | 12219 | |
8284b0c5 | 12220 | |
21d1c967 | 12221 | AFMINSTALL= |
2b5f62a0 | 12222 | WIN32INSTALL= |
90dd450c | 12223 | |
21d1c967 GD |
12224 | TOOLKIT= |
12225 | TOOLKIT_INCLUDE= | |
12226 | WIDGET_SET= | |
12227 | ||
12228 | if test "$USE_WIN32" = 1 ; then | |
a0b9e27f | 12229 | for ac_hdr in w32api.h |
21d1c967 | 12230 | do |
a0b9e27f MB |
12231 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12232 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
da494b40 | 12233 | echo "configure:12234: checking for $ac_hdr" >&5 |
a0b9e27f MB |
12234 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12235 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12236 | else | |
12237 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 12238 | #line 12239 "configure" |
247f5006 | 12239 | #include "confdefs.h" |
a0b9e27f MB |
12240 | #include <$ac_hdr> |
12241 | EOF | |
12242 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 12243 | { (eval echo configure:12244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12244 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12245 | if test -z "$ac_err"; then | |
12246 | rm -rf conftest* | |
12247 | eval "ac_cv_header_$ac_safe=yes" | |
12248 | else | |
12249 | echo "$ac_err" >&5 | |
12250 | echo "configure: failed program was:" >&5 | |
f79bd02d | 12251 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12252 | rm -rf conftest* |
12253 | eval "ac_cv_header_$ac_safe=no" | |
f79bd02d | 12254 | fi |
a0b9e27f | 12255 | rm -f conftest* |
21d1c967 | 12256 | fi |
a0b9e27f MB |
12257 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12258 | echo "$ac_t""yes" 1>&6 | |
12259 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12260 | cat >> confdefs.h <<EOF | |
12261 | #define $ac_tr_hdr 1 | |
12262 | EOF | |
12263 | ||
12264 | else | |
12265 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
12266 | fi |
12267 | done | |
f79bd02d | 12268 | |
a0b9e27f MB |
12269 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
12270 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
da494b40 | 12271 | echo "configure:12272: checking for windows.h" >&5 |
a0b9e27f MB |
12272 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12273 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12274 | else |
a0b9e27f | 12275 | cat > conftest.$ac_ext <<EOF |
da494b40 | 12276 | #line 12277 "configure" |
247f5006 VZ |
12277 | #include "confdefs.h" |
12278 | #include <windows.h> | |
a0b9e27f MB |
12279 | EOF |
12280 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 12281 | { (eval echo configure:12282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12282 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12283 | if test -z "$ac_err"; then | |
12284 | rm -rf conftest* | |
12285 | eval "ac_cv_header_$ac_safe=yes" | |
12286 | else | |
12287 | echo "$ac_err" >&5 | |
12288 | echo "configure: failed program was:" >&5 | |
90dd450c | 12289 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12290 | rm -rf conftest* |
12291 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 12292 | fi |
a0b9e27f | 12293 | rm -f conftest* |
90dd450c | 12294 | fi |
a0b9e27f MB |
12295 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12296 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 12297 | : |
90dd450c | 12298 | else |
a0b9e27f | 12299 | echo "$ac_t""no" 1>&6 |
21d1c967 | 12300 | |
a0b9e27f MB |
12301 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
12302 | ||
5c6fa7d2 | 12303 | fi |
7b4a847f | 12304 | |
5c6fa7d2 | 12305 | |
a0b9e27f | 12306 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
da494b40 | 12307 | echo "configure:12308: checking if w32api has good enough MSIE support" >&5 |
a0b9e27f MB |
12308 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
12309 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 12310 | else |
a0b9e27f MB |
12311 | |
12312 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 12313 | #line 12314 "configure" |
f79bd02d | 12314 | #include "confdefs.h" |
21d1c967 | 12315 | #include <w32api.h> |
a0b9e27f | 12316 | int main() { |
f79bd02d | 12317 | |
21d1c967 GD |
12318 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
12319 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
12320 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
12321 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
12322 | ||
12323 | #if !wxCHECK_W32API_VERSION(1,1) | |
12324 | #error You need w32api 1.1 or newer | |
12325 | #endif | |
a0b9e27f MB |
12326 | |
12327 | ; return 0; } | |
12328 | EOF | |
da494b40 | 12329 | if { (eval echo configure:12330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
12330 | rm -rf conftest* |
12331 | ||
21d1c967 | 12332 | wx_cv_w32api_win32_ie=yes |
a0b9e27f | 12333 | |
f79bd02d | 12334 | else |
a0b9e27f MB |
12335 | echo "configure: failed program was:" >&5 |
12336 | cat conftest.$ac_ext >&5 | |
12337 | rm -rf conftest* | |
12338 | ||
21d1c967 | 12339 | wx_cv_w32api_win32_ie=no |
a0b9e27f | 12340 | |
5c6fa7d2 | 12341 | fi |
a0b9e27f MB |
12342 | rm -f conftest* |
12343 | ||
247f5006 | 12344 | fi |
a0b9e27f MB |
12345 | |
12346 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 | |
21d1c967 GD |
12347 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then |
12348 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
12349 | fi | |
f79bd02d | 12350 | |
21d1c967 GD |
12351 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
12352 | ||
12353 | case "${host}" in | |
12354 | *-*-cygwin* ) | |
12355 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
12356 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 12357 | esac |
f79bd02d | 12358 | |
21d1c967 GD |
12359 | if test "$wxUSE_ODBC" = "yes" ; then |
12360 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
12361 | fi | |
f79bd02d | 12362 | |
21d1c967 GD |
12363 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
12364 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
12365 | |
12366 | WIN32INSTALL=win32install | |
f79bd02d | 12367 | fi |
f79bd02d | 12368 | |
b2fee376 | 12369 | if test "$USE_DARWIN" = 1; then |
50bcbd3d | 12370 | if test "$wxUSE_PRECOMP" = "yes"; then |
b2fee376 GD |
12371 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
12372 | else | |
12373 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
12374 | fi | |
12375 | fi | |
12376 | ||
21d1c967 GD |
12377 | if test "$wxUSE_GUI" = "yes"; then |
12378 | USE_GUI=1 | |
f79bd02d | 12379 | |
21d1c967 | 12380 | GUI_TK_LIBRARY= |
f79bd02d | 12381 | |
21d1c967 GD |
12382 | WXGTK12= |
12383 | WXGTK127= | |
12384 | WXGTK20= | |
f79bd02d | 12385 | |
21d1c967 GD |
12386 | if test "$wxUSE_MSW" = 1 ; then |
12387 | TOOLKIT=MSW | |
12388 | GUIDIST=MSW_DIST | |
f79bd02d | 12389 | |
89e6bf6d | 12390 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" |
f79bd02d JS |
12391 | fi |
12392 | ||
21d1c967 | 12393 | if test "$wxUSE_GTK" = 1; then |
a0b9e27f | 12394 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
da494b40 | 12395 | echo "configure:12396: checking for GTK+ version" >&5 |
21d1c967 GD |
12396 | |
12397 | gtk_version_cached=1 | |
a0b9e27f MB |
12398 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then |
12399 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f79bd02d | 12400 | else |
a0b9e27f | 12401 | |
21d1c967 | 12402 | gtk_version_cached=0 |
a0b9e27f | 12403 | echo "$ac_t""" 1>&6 |
f79bd02d | 12404 | |
21d1c967 GD |
12405 | GTK_MODULES= |
12406 | if test "$wxUSE_THREADS" = "yes"; then | |
12407 | GTK_MODULES=gthread | |
12408 | fi | |
f79bd02d | 12409 | |
2b5f62a0 | 12410 | wx_cv_lib_gtk= |
21d1c967 GD |
12411 | if test "x$wxUSE_GTK2" = "xyes"; then |
12412 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12413 | if test "${enable_gtktest+set}" = set; then | |
12414 | enableval="$enable_gtktest" | |
a0b9e27f | 12415 | : |
f79bd02d | 12416 | else |
21d1c967 | 12417 | enable_gtktest=yes |
a0b9e27f MB |
12418 | fi |
12419 | ||
f79bd02d | 12420 | |
21d1c967 GD |
12421 | pkg_config_args=gtk+-2.0 |
12422 | for module in . $GTK_MODULES | |
12423 | do | |
12424 | case "$module" in | |
a0b9e27f | 12425 | gthread) |
21d1c967 GD |
12426 | pkg_config_args="$pkg_config_args gthread-2.0" |
12427 | ;; | |
12428 | esac | |
12429 | done | |
12430 | ||
12431 | no_gtk="" | |
f79bd02d | 12432 | |
21d1c967 GD |
12433 | # Extract the first word of "pkg-config", so it can be a program name with args. |
12434 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 12435 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
da494b40 | 12436 | echo "configure:12437: checking for $ac_word" >&5 |
a0b9e27f MB |
12437 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
12438 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12439 | else |
a0b9e27f MB |
12440 | case "$PKG_CONFIG" in |
12441 | /*) | |
21d1c967 GD |
12442 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12443 | ;; | |
a0b9e27f MB |
12444 | ?:/*) |
12445 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
12446 | ;; | |
21d1c967 | 12447 | *) |
a0b9e27f MB |
12448 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12449 | ac_dummy="$PATH" | |
12450 | for ac_dir in $ac_dummy; do | |
12451 | test -z "$ac_dir" && ac_dir=. | |
12452 | if test -f $ac_dir/$ac_word; then | |
12453 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
12454 | break | |
12455 | fi | |
12456 | done | |
12457 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12458 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12459 | ;; | |
12460 | esac | |
f79bd02d | 12461 | fi |
a0b9e27f | 12462 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
21d1c967 | 12463 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 12464 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f79bd02d | 12465 | else |
a0b9e27f | 12466 | echo "$ac_t""no" 1>&6 |
f79bd02d JS |
12467 | fi |
12468 | ||
8284b0c5 | 12469 | |
21d1c967 GD |
12470 | if test x$PKG_CONFIG != xno ; then |
12471 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
12472 | : | |
12473 | else | |
12474 | echo *** pkg-config too old; version 0.7 or better required. | |
12475 | no_gtk=yes | |
12476 | PKG_CONFIG=no | |
12477 | fi | |
12478 | else | |
12479 | no_gtk=yes | |
12480 | fi | |
f79bd02d | 12481 | |
21d1c967 | 12482 | min_gtk_version=2.0.0 |
a0b9e27f | 12483 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 |
da494b40 | 12484 | echo "configure:12485: checking for GTK+ - version >= $min_gtk_version" >&5 |
f79bd02d | 12485 | |
21d1c967 GD |
12486 | if test x$PKG_CONFIG != xno ; then |
12487 | ## don't try to run the test against uninstalled libtool libs | |
12488 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
12489 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
12490 | enable_gtktest=no | |
12491 | fi | |
f79bd02d | 12492 | |
21d1c967 GD |
12493 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
12494 | : | |
12495 | else | |
12496 | no_gtk=yes | |
12497 | fi | |
12498 | fi | |
f79bd02d | 12499 | |
21d1c967 GD |
12500 | if test x"$no_gtk" = x ; then |
12501 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
12502 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
12503 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12504 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12505 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12506 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12507 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12508 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12509 | if test "x$enable_gtktest" = "xyes" ; then | |
12510 | ac_save_CFLAGS="$CFLAGS" | |
12511 | ac_save_LIBS="$LIBS" | |
12512 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12513 | LIBS="$GTK_LIBS $LIBS" | |
12514 | rm -f conf.gtktest | |
12515 | if test "$cross_compiling" = yes; then | |
12516 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12517 | else |
a0b9e27f | 12518 | cat > conftest.$ac_ext <<EOF |
da494b40 | 12519 | #line 12520 "configure" |
f79bd02d | 12520 | #include "confdefs.h" |
f79bd02d | 12521 | |
21d1c967 GD |
12522 | #include <gtk/gtk.h> |
12523 | #include <stdio.h> | |
12524 | #include <stdlib.h> | |
f79bd02d | 12525 | |
a0b9e27f | 12526 | int |
21d1c967 GD |
12527 | main () |
12528 | { | |
12529 | int major, minor, micro; | |
12530 | char *tmp_version; | |
f79bd02d | 12531 | |
21d1c967 | 12532 | system ("touch conf.gtktest"); |
f79bd02d | 12533 | |
21d1c967 GD |
12534 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
12535 | tmp_version = g_strdup("$min_gtk_version"); | |
12536 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12537 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12538 | exit(1); | |
12539 | } | |
f79bd02d | 12540 | |
21d1c967 GD |
12541 | if ((gtk_major_version != $gtk_config_major_version) || |
12542 | (gtk_minor_version != $gtk_config_minor_version) || | |
12543 | (gtk_micro_version != $gtk_config_micro_version)) | |
12544 | { | |
a0b9e27f | 12545 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12546 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12547 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12548 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
12549 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12550 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12551 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12552 | printf("*** required on your system.\n"); | |
12553 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
12554 | printf("*** to point to the correct configuration files\n"); | |
a0b9e27f | 12555 | } |
21d1c967 GD |
12556 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
12557 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12558 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12559 | { | |
12560 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12561 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12562 | printf("*** library (version %d.%d.%d)\n", | |
12563 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12564 | } | |
12565 | else | |
12566 | { | |
12567 | if ((gtk_major_version > major) || | |
12568 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12569 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12570 | { | |
12571 | return 0; | |
12572 | } | |
12573 | else | |
12574 | { | |
12575 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12576 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12577 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12578 | major, minor, micro); | |
12579 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12580 | printf("***\n"); | |
12581 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12582 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
12583 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12584 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
12585 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
12586 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12587 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12588 | } | |
12589 | } | |
12590 | return 1; | |
12591 | } | |
f79bd02d | 12592 | |
a0b9e27f | 12593 | EOF |
da494b40 | 12594 | if { (eval echo configure:12595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12595 | then |
21d1c967 | 12596 | : |
f79bd02d | 12597 | else |
a0b9e27f MB |
12598 | echo "configure: failed program was:" >&5 |
12599 | cat conftest.$ac_ext >&5 | |
12600 | rm -fr conftest* | |
12601 | no_gtk=yes | |
f79bd02d | 12602 | fi |
a0b9e27f | 12603 | rm -fr conftest* |
f79bd02d | 12604 | fi |
a0b9e27f | 12605 | |
21d1c967 GD |
12606 | CFLAGS="$ac_save_CFLAGS" |
12607 | LIBS="$ac_save_LIBS" | |
12608 | fi | |
12609 | fi | |
12610 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12611 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
12612 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 12613 | else |
a0b9e27f | 12614 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12615 | if test "$PKG_CONFIG" = "no" ; then |
12616 | echo "*** A new enough version of pkg-config was not found." | |
12617 | echo "*** See http://pkgconfig.sourceforge.net" | |
12618 | else | |
12619 | if test -f conf.gtktest ; then | |
12620 | : | |
12621 | else | |
12622 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
12623 | ac_save_CFLAGS="$CFLAGS" |
12624 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
12625 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
12626 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12627 | cat > conftest.$ac_ext <<EOF |
da494b40 | 12628 | #line 12629 "configure" |
f79bd02d | 12629 | #include "confdefs.h" |
21d1c967 GD |
12630 | |
12631 | #include <gtk/gtk.h> | |
12632 | #include <stdio.h> | |
f79bd02d | 12633 | |
a0b9e27f MB |
12634 | int main() { |
12635 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12636 | ; return 0; } | |
12637 | EOF | |
da494b40 | 12638 | if { (eval echo configure:12639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12639 | rm -rf conftest* |
21d1c967 GD |
12640 | echo "*** The test program compiled, but did not run. This usually means" |
12641 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
12642 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
12643 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12644 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12645 | echo "*** is required on your system" | |
12646 | echo "***" | |
12647 | echo "*** If you have an old version installed, it is best to remove it, although" | |
a0b9e27f | 12648 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 12649 | else |
a0b9e27f MB |
12650 | echo "configure: failed program was:" >&5 |
12651 | cat conftest.$ac_ext >&5 | |
12652 | rm -rf conftest* | |
12653 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 12654 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 12655 | fi |
a0b9e27f | 12656 | rm -f conftest* |
21d1c967 GD |
12657 | CFLAGS="$ac_save_CFLAGS" |
12658 | LIBS="$ac_save_LIBS" | |
12659 | fi | |
12660 | fi | |
12661 | GTK_CFLAGS="" | |
12662 | GTK_LIBS="" | |
12663 | : | |
12664 | fi | |
a0b9e27f MB |
12665 | |
12666 | ||
21d1c967 | 12667 | rm -f conf.gtktest |
f79bd02d | 12668 | |
2b5f62a0 | 12669 | else |
a0b9e27f | 12670 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12671 | if test "${with_gtk_prefix+set}" = set; then |
12672 | withval="$with_gtk_prefix" | |
12673 | gtk_config_prefix="$withval" | |
12674 | else | |
12675 | gtk_config_prefix="" | |
a0b9e27f | 12676 | fi |
f79bd02d | 12677 | |
21d1c967 GD |
12678 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12679 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12680 | withval="$with_gtk_exec_prefix" | |
12681 | gtk_config_exec_prefix="$withval" | |
12682 | else | |
12683 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12684 | fi |
12685 | ||
21d1c967 GD |
12686 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12687 | if test "${enable_gtktest+set}" = set; then | |
12688 | enableval="$enable_gtktest" | |
a0b9e27f | 12689 | : |
21d1c967 GD |
12690 | else |
12691 | enable_gtktest=yes | |
a0b9e27f MB |
12692 | fi |
12693 | ||
21d1c967 GD |
12694 | |
12695 | for module in . $GTK_MODULES | |
12696 | do | |
12697 | case "$module" in | |
a0b9e27f | 12698 | gthread) |
21d1c967 GD |
12699 | gtk_config_args="$gtk_config_args gthread" |
12700 | ;; | |
12701 | esac | |
12702 | done | |
12703 | ||
12704 | if test x$gtk_config_exec_prefix != x ; then | |
12705 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12706 | if test x${GTK_CONFIG+set} != xset ; then | |
12707 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12708 | fi | |
12709 | fi | |
12710 | if test x$gtk_config_prefix != x ; then | |
12711 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12712 | if test x${GTK_CONFIG+set} != xset ; then | |
12713 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12714 | fi | |
12715 | fi | |
12716 | ||
12717 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12718 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12719 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
da494b40 | 12720 | echo "configure:12721: checking for $ac_word" >&5 |
a0b9e27f MB |
12721 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12722 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12723 | else |
a0b9e27f MB |
12724 | case "$GTK_CONFIG" in |
12725 | /*) | |
21d1c967 GD |
12726 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12727 | ;; | |
a0b9e27f MB |
12728 | ?:/*) |
12729 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12730 | ;; | |
21d1c967 | 12731 | *) |
a0b9e27f MB |
12732 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12733 | ac_dummy="$PATH" | |
12734 | for ac_dir in $ac_dummy; do | |
12735 | test -z "$ac_dir" && ac_dir=. | |
12736 | if test -f $ac_dir/$ac_word; then | |
12737 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12738 | break | |
12739 | fi | |
12740 | done | |
12741 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12742 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12743 | ;; | |
12744 | esac | |
12745 | fi | |
a0b9e27f | 12746 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12747 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12748 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12749 | else |
a0b9e27f | 12750 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12751 | fi |
12752 | ||
12753 | min_gtk_version=1.2.7 | |
a0b9e27f | 12754 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
da494b40 | 12755 | echo "configure:12756: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12756 | no_gtk="" |
12757 | if test "$GTK_CONFIG" = "no" ; then | |
12758 | no_gtk=yes | |
12759 | else | |
12760 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12761 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12762 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12763 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12764 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12765 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12766 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12767 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12768 | if test "x$enable_gtktest" = "xyes" ; then | |
12769 | ac_save_CFLAGS="$CFLAGS" | |
12770 | ac_save_LIBS="$LIBS" | |
12771 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12772 | LIBS="$GTK_LIBS $LIBS" | |
12773 | rm -f conf.gtktest | |
12774 | if test "$cross_compiling" = yes; then | |
12775 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12776 | else |
a0b9e27f | 12777 | cat > conftest.$ac_ext <<EOF |
da494b40 | 12778 | #line 12779 "configure" |
f79bd02d JS |
12779 | #include "confdefs.h" |
12780 | ||
21d1c967 GD |
12781 | #include <gtk/gtk.h> |
12782 | #include <stdio.h> | |
12783 | #include <stdlib.h> | |
f79bd02d | 12784 | |
a0b9e27f | 12785 | int |
21d1c967 GD |
12786 | main () |
12787 | { | |
12788 | int major, minor, micro; | |
12789 | char *tmp_version; | |
12790 | ||
12791 | system ("touch conf.gtktest"); | |
12792 | ||
12793 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12794 | tmp_version = g_strdup("$min_gtk_version"); | |
12795 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12796 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12797 | exit(1); | |
12798 | } | |
90dd450c | 12799 | |
21d1c967 GD |
12800 | if ((gtk_major_version != $gtk_config_major_version) || |
12801 | (gtk_minor_version != $gtk_config_minor_version) || | |
12802 | (gtk_micro_version != $gtk_config_micro_version)) | |
12803 | { | |
a0b9e27f | 12804 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12805 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12806 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12807 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12808 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12809 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12810 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12811 | printf("*** required on your system.\n"); | |
12812 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12813 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12814 | printf("*** before re-running configure\n"); | |
a0b9e27f | 12815 | } |
21d1c967 GD |
12816 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12817 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12818 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12819 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12820 | { | |
12821 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12822 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12823 | printf("*** library (version %d.%d.%d)\n", | |
12824 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12825 | } | |
12826 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12827 | else | |
12828 | { | |
12829 | if ((gtk_major_version > major) || | |
12830 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12831 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12832 | { | |
12833 | return 0; | |
12834 | } | |
12835 | else | |
12836 | { | |
12837 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12838 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12839 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12840 | major, minor, micro); | |
12841 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12842 | printf("***\n"); | |
12843 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12844 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12845 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12846 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12847 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12848 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12849 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12850 | } | |
12851 | } | |
12852 | return 1; | |
12853 | } | |
12854 | ||
a0b9e27f | 12855 | EOF |
da494b40 | 12856 | if { (eval echo configure:12857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12857 | then |
21d1c967 GD |
12858 | : |
12859 | else | |
a0b9e27f MB |
12860 | echo "configure: failed program was:" >&5 |
12861 | cat conftest.$ac_ext >&5 | |
12862 | rm -fr conftest* | |
12863 | no_gtk=yes | |
21d1c967 | 12864 | fi |
a0b9e27f | 12865 | rm -fr conftest* |
21d1c967 | 12866 | fi |
a0b9e27f | 12867 | |
21d1c967 GD |
12868 | CFLAGS="$ac_save_CFLAGS" |
12869 | LIBS="$ac_save_LIBS" | |
12870 | fi | |
12871 | fi | |
12872 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12873 | echo "$ac_t""yes" 1>&6 |
12874 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 12875 | else |
a0b9e27f | 12876 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12877 | if test "$GTK_CONFIG" = "no" ; then |
12878 | echo "*** The gtk-config script installed by GTK could not be found" | |
12879 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12880 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12881 | echo "*** full path to gtk-config." | |
12882 | else | |
12883 | if test -f conf.gtktest ; then | |
12884 | : | |
12885 | else | |
12886 | echo "*** Could not run GTK test program, checking why..." | |
12887 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12888 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12889 | cat > conftest.$ac_ext <<EOF |
da494b40 | 12890 | #line 12891 "configure" |
21d1c967 GD |
12891 | #include "confdefs.h" |
12892 | ||
12893 | #include <gtk/gtk.h> | |
12894 | #include <stdio.h> | |
12895 | ||
a0b9e27f MB |
12896 | int main() { |
12897 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12898 | ; return 0; } | |
12899 | EOF | |
da494b40 | 12900 | if { (eval echo configure:12901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12901 | rm -rf conftest* |
21d1c967 GD |
12902 | echo "*** The test program compiled, but did not run. This usually means" |
12903 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12904 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12905 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12906 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12907 | echo "*** is required on your system" | |
12908 | echo "***" | |
12909 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12910 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12911 | echo "***" | |
12912 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12913 | echo "*** came with the system with the command" | |
12914 | echo "***" | |
a0b9e27f | 12915 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 12916 | else |
a0b9e27f MB |
12917 | echo "configure: failed program was:" >&5 |
12918 | cat conftest.$ac_ext >&5 | |
12919 | rm -rf conftest* | |
12920 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
12921 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
12922 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 12923 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 12924 | fi |
a0b9e27f | 12925 | rm -f conftest* |
21d1c967 GD |
12926 | CFLAGS="$ac_save_CFLAGS" |
12927 | LIBS="$ac_save_LIBS" | |
12928 | fi | |
12929 | fi | |
12930 | GTK_CFLAGS="" | |
12931 | GTK_LIBS="" | |
12932 | : | |
12933 | fi | |
a0b9e27f MB |
12934 | |
12935 | ||
21d1c967 GD |
12936 | rm -f conf.gtktest |
12937 | ||
21d1c967 | 12938 | |
2b5f62a0 VZ |
12939 | if test -z "$wx_cv_lib_gtk"; then |
12940 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
12941 | if test "${with_gtk_prefix+set}" = set; then |
12942 | withval="$with_gtk_prefix" | |
12943 | gtk_config_prefix="$withval" | |
12944 | else | |
12945 | gtk_config_prefix="" | |
a0b9e27f | 12946 | fi |
f79bd02d | 12947 | |
21d1c967 GD |
12948 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12949 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12950 | withval="$with_gtk_exec_prefix" | |
12951 | gtk_config_exec_prefix="$withval" | |
12952 | else | |
12953 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12954 | fi |
12955 | ||
21d1c967 GD |
12956 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12957 | if test "${enable_gtktest+set}" = set; then | |
12958 | enableval="$enable_gtktest" | |
a0b9e27f | 12959 | : |
90dd450c | 12960 | else |
21d1c967 | 12961 | enable_gtktest=yes |
a0b9e27f MB |
12962 | fi |
12963 | ||
21d1c967 GD |
12964 | |
12965 | for module in . $GTK_MODULES | |
12966 | do | |
12967 | case "$module" in | |
a0b9e27f | 12968 | gthread) |
21d1c967 GD |
12969 | gtk_config_args="$gtk_config_args gthread" |
12970 | ;; | |
12971 | esac | |
12972 | done | |
12973 | ||
12974 | if test x$gtk_config_exec_prefix != x ; then | |
12975 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12976 | if test x${GTK_CONFIG+set} != xset ; then | |
12977 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12978 | fi | |
12979 | fi | |
12980 | if test x$gtk_config_prefix != x ; then | |
12981 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12982 | if test x${GTK_CONFIG+set} != xset ; then | |
12983 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12984 | fi | |
12985 | fi | |
12986 | ||
12987 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12988 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12989 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
da494b40 | 12990 | echo "configure:12991: checking for $ac_word" >&5 |
a0b9e27f MB |
12991 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12992 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 12993 | else |
a0b9e27f MB |
12994 | case "$GTK_CONFIG" in |
12995 | /*) | |
21d1c967 GD |
12996 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12997 | ;; | |
a0b9e27f MB |
12998 | ?:/*) |
12999 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
13000 | ;; | |
21d1c967 | 13001 | *) |
a0b9e27f MB |
13002 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
13003 | ac_dummy="$PATH" | |
13004 | for ac_dir in $ac_dummy; do | |
13005 | test -z "$ac_dir" && ac_dir=. | |
13006 | if test -f $ac_dir/$ac_word; then | |
13007 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
13008 | break | |
13009 | fi | |
13010 | done | |
13011 | IFS="$ac_save_ifs" | |
21d1c967 GD |
13012 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
13013 | ;; | |
13014 | esac | |
13015 | fi | |
a0b9e27f | 13016 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 13017 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 13018 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 13019 | else |
a0b9e27f | 13020 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
13021 | fi |
13022 | ||
13023 | min_gtk_version=1.2.3 | |
a0b9e27f | 13024 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
da494b40 | 13025 | echo "configure:13026: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
13026 | no_gtk="" |
13027 | if test "$GTK_CONFIG" = "no" ; then | |
13028 | no_gtk=yes | |
13029 | else | |
13030 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
13031 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
13032 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
13033 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
13034 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
13035 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
13036 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
13037 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
13038 | if test "x$enable_gtktest" = "xyes" ; then | |
13039 | ac_save_CFLAGS="$CFLAGS" | |
13040 | ac_save_LIBS="$LIBS" | |
13041 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
13042 | LIBS="$GTK_LIBS $LIBS" | |
13043 | rm -f conf.gtktest | |
13044 | if test "$cross_compiling" = yes; then | |
13045 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
13046 | else | |
a0b9e27f | 13047 | cat > conftest.$ac_ext <<EOF |
da494b40 | 13048 | #line 13049 "configure" |
f79bd02d | 13049 | #include "confdefs.h" |
21d1c967 GD |
13050 | |
13051 | #include <gtk/gtk.h> | |
13052 | #include <stdio.h> | |
13053 | #include <stdlib.h> | |
13054 | ||
a0b9e27f | 13055 | int |
21d1c967 GD |
13056 | main () |
13057 | { | |
13058 | int major, minor, micro; | |
13059 | char *tmp_version; | |
13060 | ||
13061 | system ("touch conf.gtktest"); | |
13062 | ||
13063 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
13064 | tmp_version = g_strdup("$min_gtk_version"); | |
13065 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
13066 | printf("%s, bad version string\n", "$min_gtk_version"); | |
13067 | exit(1); | |
13068 | } | |
13069 | ||
13070 | if ((gtk_major_version != $gtk_config_major_version) || | |
13071 | (gtk_minor_version != $gtk_config_minor_version) || | |
13072 | (gtk_micro_version != $gtk_config_micro_version)) | |
13073 | { | |
a0b9e27f | 13074 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
13075 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
13076 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13077 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
13078 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
13079 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
13080 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
13081 | printf("*** required on your system.\n"); | |
13082 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
13083 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
13084 | printf("*** before re-running configure\n"); | |
a0b9e27f | 13085 | } |
21d1c967 GD |
13086 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
13087 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
13088 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
13089 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
13090 | { | |
13091 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
13092 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
13093 | printf("*** library (version %d.%d.%d)\n", | |
13094 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13095 | } | |
13096 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
13097 | else | |
13098 | { | |
13099 | if ((gtk_major_version > major) || | |
13100 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
13101 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
13102 | { | |
13103 | return 0; | |
13104 | } | |
13105 | else | |
13106 | { | |
13107 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
13108 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13109 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
13110 | major, minor, micro); | |
13111 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
13112 | printf("***\n"); | |
13113 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
13114 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
13115 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
13116 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
13117 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
13118 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
13119 | printf("*** so that the correct libraries are found at run-time))\n"); | |
13120 | } | |
13121 | } | |
13122 | return 1; | |
13123 | } | |
13124 | ||
a0b9e27f | 13125 | EOF |
da494b40 | 13126 | if { (eval echo configure:13127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 13127 | then |
21d1c967 GD |
13128 | : |
13129 | else | |
a0b9e27f MB |
13130 | echo "configure: failed program was:" >&5 |
13131 | cat conftest.$ac_ext >&5 | |
13132 | rm -fr conftest* | |
13133 | no_gtk=yes | |
21d1c967 | 13134 | fi |
a0b9e27f | 13135 | rm -fr conftest* |
21d1c967 | 13136 | fi |
a0b9e27f | 13137 | |
21d1c967 GD |
13138 | CFLAGS="$ac_save_CFLAGS" |
13139 | LIBS="$ac_save_LIBS" | |
13140 | fi | |
13141 | fi | |
13142 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
13143 | echo "$ac_t""yes" 1>&6 |
13144 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 13145 | else |
a0b9e27f | 13146 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
13147 | if test "$GTK_CONFIG" = "no" ; then |
13148 | echo "*** The gtk-config script installed by GTK could not be found" | |
13149 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
13150 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
13151 | echo "*** full path to gtk-config." | |
13152 | else | |
13153 | if test -f conf.gtktest ; then | |
13154 | : | |
13155 | else | |
13156 | echo "*** Could not run GTK test program, checking why..." | |
13157 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
13158 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 13159 | cat > conftest.$ac_ext <<EOF |
da494b40 | 13160 | #line 13161 "configure" |
21d1c967 GD |
13161 | #include "confdefs.h" |
13162 | ||
13163 | #include <gtk/gtk.h> | |
13164 | #include <stdio.h> | |
f79bd02d | 13165 | |
a0b9e27f MB |
13166 | int main() { |
13167 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
13168 | ; return 0; } | |
13169 | EOF | |
da494b40 | 13170 | if { (eval echo configure:13171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13171 | rm -rf conftest* |
21d1c967 GD |
13172 | echo "*** The test program compiled, but did not run. This usually means" |
13173 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
13174 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
13175 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
13176 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
13177 | echo "*** is required on your system" | |
13178 | echo "***" | |
13179 | echo "*** If you have an old version installed, it is best to remove it, although" | |
13180 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
13181 | echo "***" | |
13182 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
13183 | echo "*** came with the system with the command" | |
13184 | echo "***" | |
a0b9e27f | 13185 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 13186 | else |
a0b9e27f MB |
13187 | echo "configure: failed program was:" >&5 |
13188 | cat conftest.$ac_ext >&5 | |
13189 | rm -rf conftest* | |
13190 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
13191 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
13192 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 13193 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 13194 | fi |
a0b9e27f | 13195 | rm -f conftest* |
21d1c967 GD |
13196 | CFLAGS="$ac_save_CFLAGS" |
13197 | LIBS="$ac_save_LIBS" | |
13198 | fi | |
13199 | fi | |
13200 | GTK_CFLAGS="" | |
13201 | GTK_LIBS="" | |
13202 | : | |
13203 | fi | |
a0b9e27f MB |
13204 | |
13205 | ||
21d1c967 | 13206 | rm -f conf.gtktest |
f79bd02d | 13207 | |
2b5f62a0 | 13208 | fi |
21d1c967 GD |
13209 | fi |
13210 | ||
13211 | if test -z "$wx_cv_lib_gtk"; then | |
13212 | wx_cv_lib_gtk=none | |
13213 | else | |
13214 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
13215 | wx_cv_libs_gtk=$GTK_LIBS | |
13216 | fi | |
a0b9e27f MB |
13217 | |
13218 | ||
5c6fa7d2 | 13219 | fi |
52127426 | 13220 | |
8284b0c5 | 13221 | |
21d1c967 | 13222 | if test "$gtk_version_cached" = 1; then |
a0b9e27f | 13223 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 |
21d1c967 GD |
13224 | fi |
13225 | ||
13226 | case "$wx_cv_lib_gtk" in | |
13227 | 2.0) WXGTK20=1 | |
2b5f62a0 | 13228 | TOOLKIT_VERSION=2 |
21d1c967 GD |
13229 | ;; |
13230 | 1.2.7) WXGTK127=1 | |
13231 | WXGTK12=1 | |
13232 | ;; | |
13233 | 1.2.3) WXGTK12=1 | |
13234 | ;; | |
a0b9e27f | 13235 | *) { echo "configure: error: |
247f5006 VZ |
13236 | Please check that gtk-config is in path, the directory |
13237 | where GTK+ libraries are installed (returned by | |
13238 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
13239 | equivalent variable and GTK+ is version 1.2.3 or above. | |
a0b9e27f | 13240 | " 1>&2; exit 1; } |
21d1c967 GD |
13241 | ;; |
13242 | esac | |
13243 | ||
b13cd66e VZ |
13244 | if test "$WXGTK20" = 1; then |
13245 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 13246 | |
f09359cf VS |
13247 | succeeded=no |
13248 | ||
13249 | if test -z "$PKG_CONFIG"; then | |
13250 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
13251 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 13252 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
da494b40 | 13253 | echo "configure:13254: checking for $ac_word" >&5 |
a0b9e27f MB |
13254 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
13255 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf | 13256 | else |
a0b9e27f MB |
13257 | case "$PKG_CONFIG" in |
13258 | /*) | |
f09359cf VS |
13259 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
13260 | ;; | |
a0b9e27f MB |
13261 | ?:/*) |
13262 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
13263 | ;; | |
f09359cf | 13264 | *) |
a0b9e27f MB |
13265 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
13266 | ac_dummy="$PATH" | |
13267 | for ac_dir in $ac_dummy; do | |
13268 | test -z "$ac_dir" && ac_dir=. | |
13269 | if test -f $ac_dir/$ac_word; then | |
13270 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
13271 | break | |
13272 | fi | |
13273 | done | |
13274 | IFS="$ac_save_ifs" | |
f09359cf VS |
13275 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
13276 | ;; | |
13277 | esac | |
13278 | fi | |
a0b9e27f | 13279 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
f09359cf | 13280 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 13281 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f09359cf | 13282 | else |
a0b9e27f | 13283 | echo "$ac_t""no" 1>&6 |
f09359cf VS |
13284 | fi |
13285 | ||
13286 | fi | |
13287 | ||
13288 | if test "$PKG_CONFIG" = "no" ; then | |
13289 | echo "*** The pkg-config script could not be found. Make sure it is" | |
13290 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
13291 | echo "*** to the full path to pkg-config." | |
13292 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
13293 | else | |
13294 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
13295 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
a0b9e27f | 13296 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 |
da494b40 | 13297 | echo "configure:13298: checking for pangoft2" >&5 |
f09359cf VS |
13298 | |
13299 | if $PKG_CONFIG --exists "pangoft2" ; then | |
a0b9e27f | 13300 | echo "$ac_t""yes" 1>&6 |
f09359cf VS |
13301 | succeeded=yes |
13302 | ||
a0b9e27f | 13303 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 |
da494b40 | 13304 | echo "configure:13305: checking PANGOFT2_CFLAGS" >&5 |
f09359cf | 13305 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
a0b9e27f | 13306 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 |
f09359cf | 13307 | |
a0b9e27f | 13308 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 |
da494b40 | 13309 | echo "configure:13310: checking PANGOFT2_LIBS" >&5 |
f09359cf | 13310 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
a0b9e27f | 13311 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 |
f09359cf VS |
13312 | else |
13313 | PANGOFT2_CFLAGS="" | |
13314 | PANGOFT2_LIBS="" | |
a0b9e27f | 13315 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
13316 | ## do set a variable so people can do so. |
13317 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
a0b9e27f | 13318 | |
f09359cf VS |
13319 | fi |
13320 | ||
a0b9e27f MB |
13321 | |
13322 | ||
f09359cf VS |
13323 | else |
13324 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
13325 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
13326 | fi | |
13327 | fi | |
13328 | ||
13329 | if test $succeeded = yes; then | |
a0b9e27f | 13330 | |
b13cd66e VZ |
13331 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
13332 | LIBS="$LIBS $PANGOFT2_LIBS" | |
a0b9e27f | 13333 | |
f09359cf | 13334 | else |
a0b9e27f MB |
13335 | |
13336 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
b13cd66e | 13337 | wxUSE_PRINTING_ARCHITECTURE="no" |
a0b9e27f MB |
13338 | |
13339 | ||
f09359cf VS |
13340 | fi |
13341 | ||
b13cd66e | 13342 | fi |
2b5f62a0 VZ |
13343 | else |
13344 | if test "$wxUSE_UNICODE" = "yes"; then | |
13345 | echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2 | |
13346 | wxUSE_UNICODE=no | |
13347 | fi | |
13348 | fi | |
13349 | ||
13350 | if test "$USE_DARWIN" != 1; then | |
13351 | for ac_func in poll | |
13352 | do | |
13353 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
da494b40 | 13354 | echo "configure:13355: checking for $ac_func" >&5 |
2b5f62a0 VZ |
13355 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13356 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13357 | else | |
13358 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 13359 | #line 13360 "configure" |
2b5f62a0 VZ |
13360 | #include "confdefs.h" |
13361 | /* System header to define __stub macros and hopefully few prototypes, | |
13362 | which can conflict with char $ac_func(); below. */ | |
13363 | #include <assert.h> | |
13364 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13365 | /* We use char because int might match the return type of a gcc2 | |
13366 | builtin and then its argument prototype would still apply. */ | |
13367 | char $ac_func(); | |
13368 | ||
13369 | int main() { | |
13370 | ||
13371 | /* The GNU C library defines this for functions which it implements | |
13372 | to always fail with ENOSYS. Some functions are actually named | |
13373 | something starting with __ and the normal name is an alias. */ | |
13374 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13375 | choke me | |
13376 | #else | |
13377 | $ac_func(); | |
13378 | #endif | |
13379 | ||
13380 | ; return 0; } | |
13381 | EOF | |
da494b40 | 13382 | if { (eval echo configure:13383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
13383 | rm -rf conftest* |
13384 | eval "ac_cv_func_$ac_func=yes" | |
13385 | else | |
13386 | echo "configure: failed program was:" >&5 | |
13387 | cat conftest.$ac_ext >&5 | |
13388 | rm -rf conftest* | |
13389 | eval "ac_cv_func_$ac_func=no" | |
13390 | fi | |
13391 | rm -f conftest* | |
13392 | fi | |
13393 | ||
13394 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13395 | echo "$ac_t""yes" 1>&6 | |
13396 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13397 | cat >> confdefs.h <<EOF | |
13398 | #define $ac_tr_func 1 | |
13399 | EOF | |
13400 | ||
13401 | else | |
13402 | echo "$ac_t""no" 1>&6 | |
13403 | fi | |
13404 | done | |
13405 | ||
f09359cf VS |
13406 | fi |
13407 | ||
21d1c967 GD |
13408 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
13409 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
13410 | ||
13411 | AFMINSTALL=afminstall | |
13412 | TOOLKIT=GTK | |
13413 | GUIDIST=GTK_DIST | |
13414 | ||
a0b9e27f | 13415 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
da494b40 | 13416 | echo "configure:13417: checking for gdk_im_open in -lgdk" >&5 |
a0b9e27f MB |
13417 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
13418 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13419 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13420 | else |
a0b9e27f | 13421 | ac_save_LIBS="$LIBS" |
21d1c967 | 13422 | LIBS="-lgdk $LIBS" |
a0b9e27f | 13423 | cat > conftest.$ac_ext <<EOF |
da494b40 | 13424 | #line 13425 "configure" |
90dd450c | 13425 | #include "confdefs.h" |
5c6fa7d2 | 13426 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 13427 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13428 | builtin and then its argument prototype would still apply. */ |
13429 | char gdk_im_open(); | |
13430 | ||
13431 | int main() { | |
13432 | gdk_im_open() | |
13433 | ; return 0; } | |
13434 | EOF | |
da494b40 | 13435 | if { (eval echo configure:13436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13436 | rm -rf conftest* |
13437 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13438 | else | |
13439 | echo "configure: failed program was:" >&5 | |
13440 | cat conftest.$ac_ext >&5 | |
13441 | rm -rf conftest* | |
13442 | eval "ac_cv_lib_$ac_lib_var=no" | |
13443 | fi | |
13444 | rm -f conftest* | |
13445 | LIBS="$ac_save_LIBS" | |
13446 | ||
13447 | fi | |
13448 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13449 | echo "$ac_t""yes" 1>&6 | |
13450 | cat >> confdefs.h <<\EOF | |
21d1c967 | 13451 | #define HAVE_XIM 1 |
a0b9e27f | 13452 | EOF |
21d1c967 | 13453 | |
a0b9e27f MB |
13454 | else |
13455 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13456 | fi |
1e6feb95 | 13457 | |
21d1c967 | 13458 | fi |
1e6feb95 | 13459 | |
21d1c967 | 13460 | if test "$wxUSE_MGL" = 1; then |
63a76696 | 13461 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
da494b40 | 13462 | echo "configure:13463: checking for SciTech MGL library" >&5 |
21d1c967 | 13463 | if test "x$MGL_ROOT" = x ; then |
a0b9e27f MB |
13464 | echo "$ac_t""not found" 1>&6 |
13465 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
21d1c967 | 13466 | else |
a0b9e27f | 13467 | echo "$ac_t""$MGL_ROOT" 1>&6 |
21d1c967 GD |
13468 | fi |
13469 | ||
63a76696 | 13470 | echo $ac_n "checking for libmgl location""... $ac_c" 1>&6 |
da494b40 | 13471 | echo "configure:13472: checking for libmgl location" >&5 |
21d1c967 GD |
13472 | case "${host}" in |
13473 | *-*-linux* ) | |
63a76696 VS |
13474 | if test "x$wxUSE_SHARED" = xyes ; then |
13475 | mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc" | |
13476 | else | |
13477 | mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so" | |
13478 | fi | |
21d1c967 GD |
13479 | ;; |
13480 | *-pc-msdosdjgpp ) | |
63a76696 | 13481 | mgl_os_candidates="dos32/dj2" |
21d1c967 GD |
13482 | ;; |
13483 | *) | |
a0b9e27f | 13484 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } |
21d1c967 | 13485 | esac |
1e6feb95 | 13486 | |
21d1c967 | 13487 | mgl_lib_type="" |
63a76696 VS |
13488 | mgl_os="" |
13489 | ||
13490 | for mgl_os_i in $mgl_os_candidates ; do | |
13491 | if test "x$mgl_os" = x ; then | |
13492 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
13493 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
13494 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
13495 | mgl_lib_type=debug | |
13496 | mgl_os=$mgl_os_i | |
13497 | fi | |
13498 | fi | |
13499 | if test "x$mgl_lib_type" = x ; then | |
13500 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
13501 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
13502 | mgl_lib_type=release | |
13503 | mgl_os=$mgl_os_i | |
13504 | fi | |
13505 | fi | |
21d1c967 | 13506 | fi |
63a76696 | 13507 | done |
2224580a | 13508 | |
63a76696 VS |
13509 | if test "x$mgl_os" = x ; then |
13510 | echo "$ac_t""not found" 1>&6 | |
13511 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
13512 | fi | |
13513 | echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6 | |
13514 | ||
1d1b75ac VZ |
13515 | wxUSE_UNIVERSAL="yes" |
13516 | ||
21d1c967 GD |
13517 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
13518 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
13519 | ||
90dd450c | 13520 | AFMINSTALL=afminstall |
21d1c967 GD |
13521 | TOOLKIT=MGL |
13522 | GUIDIST=MGL_DIST | |
13523 | fi | |
dad6c0ea | 13524 | |
21d1c967 | 13525 | if test "$wxUSE_MICROWIN" = 1; then |
a0b9e27f | 13526 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 |
da494b40 | 13527 | echo "configure:13528: checking for MicroWindows" >&5 |
21d1c967 | 13528 | if test "x$MICROWINDOWS" = x ; then |
a0b9e27f MB |
13529 | echo "$ac_t""not found" 1>&6 |
13530 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
21d1c967 | 13531 | else |
a0b9e27f | 13532 | echo "$ac_t""$MICROWINDOWS" 1>&6 |
21d1c967 | 13533 | fi |
f6bcfd97 | 13534 | |
21d1c967 | 13535 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
a0b9e27f | 13536 | echo "$ac_t""MicroWindows' libraries found." 1>&6 |
21d1c967 | 13537 | else |
a0b9e27f | 13538 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } |
90dd450c | 13539 | fi |
0b2effe9 | 13540 | |
21d1c967 GD |
13541 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
13542 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
13543 | ||
1d1b75ac VZ |
13544 | wxUSE_UNIVERSAL="yes" |
13545 | ||
21d1c967 GD |
13546 | AFMINSTALL=afminstall |
13547 | TOOLKIT=MICROWIN | |
13548 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
13549 | |
13550 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 13551 | fi |
f6bcfd97 | 13552 | |
21d1c967 | 13553 | if test "$wxUSE_X11" = 1; then |
a0b9e27f MB |
13554 | # If we find X, set shell vars x_includes and x_libraries to the |
13555 | # paths, otherwise set no_x=yes. | |
13556 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
13557 | # --without-x overrides everything else, but does not touch the cache. | |
13558 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
da494b40 | 13559 | echo "configure:13560: checking for X" >&5 |
d8356fa3 | 13560 | |
21d1c967 GD |
13561 | # Check whether --with-x or --without-x was given. |
13562 | if test "${with_x+set}" = set; then | |
13563 | withval="$with_x" | |
a0b9e27f MB |
13564 | : |
13565 | fi | |
2224580a | 13566 | |
21d1c967 GD |
13567 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
13568 | if test "x$with_x" = xno; then | |
13569 | # The user explicitly disabled X. | |
13570 | have_x=disabled | |
13571 | else | |
13572 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
13573 | # Both variables are already set. | |
13574 | have_x=yes | |
13575 | else | |
a0b9e27f MB |
13576 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
13577 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 GD |
13578 | else |
13579 | # One or both of the vars are not set, and there is no cached value. | |
a0b9e27f MB |
13580 | ac_x_includes=NO ac_x_libraries=NO |
13581 | rm -fr conftestdir | |
13582 | if mkdir conftestdir; then | |
13583 | cd conftestdir | |
21d1c967 | 13584 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
a0b9e27f | 13585 | cat > Imakefile <<'EOF' |
21d1c967 GD |
13586 | acfindx: |
13587 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
a0b9e27f | 13588 | EOF |
21d1c967 GD |
13589 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
13590 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
13591 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
13592 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
13593 | for ac_extension in a so sl; do | |
13594 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
a0b9e27f | 13595 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
13596 | ac_im_usrlibdir=$ac_im_libdir; break |
13597 | fi | |
13598 | done | |
13599 | # Screen out bogus values from the imake configuration. They are | |
13600 | # bogus both because they are the default anyway, and because | |
13601 | # using them would break gcc on systems where it needs fixed includes. | |
a0b9e27f | 13602 | case "$ac_im_incroot" in |
21d1c967 | 13603 | /usr/include) ;; |
a0b9e27f | 13604 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
21d1c967 | 13605 | esac |
a0b9e27f | 13606 | case "$ac_im_usrlibdir" in |
21d1c967 | 13607 | /usr/lib | /lib) ;; |
a0b9e27f | 13608 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
21d1c967 GD |
13609 | esac |
13610 | fi | |
13611 | cd .. | |
a0b9e27f | 13612 | rm -fr conftestdir |
21d1c967 | 13613 | fi |
10f2d63a | 13614 | |
a0b9e27f MB |
13615 | if test "$ac_x_includes" = NO; then |
13616 | # Guess where to find include files, by looking for this one X11 .h file. | |
13617 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
13618 | ||
21d1c967 | 13619 | # First, try using that file with no special directory specified. |
a0b9e27f | 13620 | cat > conftest.$ac_ext <<EOF |
da494b40 | 13621 | #line 13622 "configure" |
21d1c967 | 13622 | #include "confdefs.h" |
a0b9e27f MB |
13623 | #include <$x_direct_test_include> |
13624 | EOF | |
13625 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 13626 | { (eval echo configure:13627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
13627 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13628 | if test -z "$ac_err"; then | |
13629 | rm -rf conftest* | |
21d1c967 GD |
13630 | # We can compile using X headers with no special include directory. |
13631 | ac_x_includes= | |
90dd450c | 13632 | else |
a0b9e27f MB |
13633 | echo "$ac_err" >&5 |
13634 | echo "configure: failed program was:" >&5 | |
90dd450c | 13635 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
13636 | rm -rf conftest* |
13637 | # Look for the header file in a standard set of common directories. | |
13638 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13639 | for ac_dir in \ | |
13640 | /usr/X11/include \ | |
13641 | /usr/X11R6/include \ | |
13642 | /usr/X11R5/include \ | |
13643 | /usr/X11R4/include \ | |
13644 | \ | |
13645 | /usr/include/X11 \ | |
13646 | /usr/include/X11R6 \ | |
13647 | /usr/include/X11R5 \ | |
13648 | /usr/include/X11R4 \ | |
13649 | \ | |
13650 | /usr/local/X11/include \ | |
13651 | /usr/local/X11R6/include \ | |
13652 | /usr/local/X11R5/include \ | |
13653 | /usr/local/X11R4/include \ | |
13654 | \ | |
13655 | /usr/local/include/X11 \ | |
13656 | /usr/local/include/X11R6 \ | |
13657 | /usr/local/include/X11R5 \ | |
13658 | /usr/local/include/X11R4 \ | |
13659 | \ | |
13660 | /usr/X386/include \ | |
13661 | /usr/x386/include \ | |
13662 | /usr/XFree86/include/X11 \ | |
13663 | \ | |
13664 | /usr/include \ | |
13665 | /usr/local/include \ | |
13666 | /usr/unsupported/include \ | |
13667 | /usr/athena/include \ | |
13668 | /usr/local/x11r5/include \ | |
13669 | /usr/lpp/Xamples/include \ | |
13670 | \ | |
13671 | /usr/openwin/include \ | |
13672 | /usr/openwin/share/include \ | |
13673 | ; \ | |
13674 | do | |
13675 | if test -r "$ac_dir/$x_direct_test_include"; then | |
13676 | ac_x_includes=$ac_dir | |
13677 | break | |
13678 | fi | |
13679 | done | |
3a922bb4 | 13680 | fi |
a0b9e27f MB |
13681 | rm -f conftest* |
13682 | fi # $ac_x_includes = NO | |
10f2d63a | 13683 | |
a0b9e27f | 13684 | if test "$ac_x_libraries" = NO; then |
21d1c967 | 13685 | # Check for the libraries. |
a0b9e27f MB |
13686 | |
13687 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
13688 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
13689 | ||
21d1c967 GD |
13690 | # See if we find them without any special options. |
13691 | # Don't add to $LIBS permanently. | |
a0b9e27f MB |
13692 | ac_save_LIBS="$LIBS" |
13693 | LIBS="-l$x_direct_test_library $LIBS" | |
13694 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 13695 | #line 13696 "configure" |
3a922bb4 | 13696 | #include "confdefs.h" |
a0b9e27f MB |
13697 | |
13698 | int main() { | |
13699 | ${x_direct_test_function}() | |
13700 | ; return 0; } | |
13701 | EOF | |
da494b40 | 13702 | if { (eval echo configure:13703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13703 | rm -rf conftest* |
13704 | LIBS="$ac_save_LIBS" | |
21d1c967 GD |
13705 | # We can link X programs with no special library path. |
13706 | ac_x_libraries= | |
3a922bb4 | 13707 | else |
a0b9e27f MB |
13708 | echo "configure: failed program was:" >&5 |
13709 | cat conftest.$ac_ext >&5 | |
13710 | rm -rf conftest* | |
13711 | LIBS="$ac_save_LIBS" | |
13712 | # First see if replacing the include by lib works. | |
13713 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13714 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
13715 | /usr/X11/lib \ | |
13716 | /usr/X11R6/lib \ | |
13717 | /usr/X11R5/lib \ | |
13718 | /usr/X11R4/lib \ | |
13719 | \ | |
13720 | /usr/lib/X11 \ | |
13721 | /usr/lib/X11R6 \ | |
13722 | /usr/lib/X11R5 \ | |
13723 | /usr/lib/X11R4 \ | |
13724 | \ | |
13725 | /usr/local/X11/lib \ | |
13726 | /usr/local/X11R6/lib \ | |
13727 | /usr/local/X11R5/lib \ | |
13728 | /usr/local/X11R4/lib \ | |
13729 | \ | |
13730 | /usr/local/lib/X11 \ | |
13731 | /usr/local/lib/X11R6 \ | |
13732 | /usr/local/lib/X11R5 \ | |
13733 | /usr/local/lib/X11R4 \ | |
13734 | \ | |
13735 | /usr/X386/lib \ | |
13736 | /usr/x386/lib \ | |
13737 | /usr/XFree86/lib/X11 \ | |
13738 | \ | |
13739 | /usr/lib \ | |
13740 | /usr/local/lib \ | |
13741 | /usr/unsupported/lib \ | |
13742 | /usr/athena/lib \ | |
13743 | /usr/local/x11r5/lib \ | |
13744 | /usr/lpp/Xamples/lib \ | |
13745 | /lib/usr/lib/X11 \ | |
13746 | \ | |
13747 | /usr/openwin/lib \ | |
13748 | /usr/openwin/share/lib \ | |
13749 | ; \ | |
21d1c967 GD |
13750 | do |
13751 | for ac_extension in a so sl; do | |
a0b9e27f | 13752 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
21d1c967 GD |
13753 | ac_x_libraries=$ac_dir |
13754 | break 2 | |
13755 | fi | |
13756 | done | |
13757 | done | |
3a922bb4 | 13758 | fi |
a0b9e27f MB |
13759 | rm -f conftest* |
13760 | fi # $ac_x_libraries = NO | |
90dd450c | 13761 | |
a0b9e27f | 13762 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
21d1c967 GD |
13763 | # Didn't find X anywhere. Cache the known absence of X. |
13764 | ac_cv_have_x="have_x=no" | |
13765 | else | |
13766 | # Record where we found X for the cache. | |
13767 | ac_cv_have_x="have_x=yes \ | |
13768 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 13769 | fi |
21d1c967 GD |
13770 | fi |
13771 | fi | |
13772 | eval "$ac_cv_have_x" | |
13773 | fi # $with_x != no | |
90dd450c | 13774 | |
21d1c967 | 13775 | if test "$have_x" != yes; then |
a0b9e27f | 13776 | echo "$ac_t""$have_x" 1>&6 |
21d1c967 GD |
13777 | no_x=yes |
13778 | else | |
13779 | # If each of the values was on the command line, it overrides each guess. | |
13780 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
13781 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
13782 | # Update the cache value to reflect the command line values. | |
13783 | ac_cv_have_x="have_x=yes \ | |
13784 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
a0b9e27f | 13785 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
21d1c967 | 13786 | fi |
90dd450c | 13787 | |
21d1c967 | 13788 | if test "$no_x" = yes; then |
90dd450c | 13789 | # Not all programs may use this symbol, but it does not hurt to define it. |
a0b9e27f | 13790 | cat >> confdefs.h <<\EOF |
90dd450c | 13791 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 13792 | EOF |
90dd450c VZ |
13793 | |
13794 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13795 | else | |
13796 | if test -n "$x_includes"; then | |
13797 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 13798 | fi |
3a922bb4 | 13799 | |
90dd450c VZ |
13800 | # It would also be nice to do this for all -L options, not just this one. |
13801 | if test -n "$x_libraries"; then | |
13802 | X_LIBS="$X_LIBS -L$x_libraries" | |
13803 | # For Solaris; some versions of Sun CC require a space after -R and | |
13804 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 13805 | case "`(uname -sr) 2>/dev/null`" in |
90dd450c | 13806 | "SunOS 5"*) |
a0b9e27f | 13807 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
da494b40 | 13808 | echo "configure:13809: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
13809 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
13810 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 13811 | #line 13812 "configure" |
90dd450c VZ |
13812 | #include "confdefs.h" |
13813 | ||
a0b9e27f | 13814 | int main() { |
90dd450c | 13815 | |
a0b9e27f MB |
13816 | ; return 0; } |
13817 | EOF | |
da494b40 | 13818 | if { (eval echo configure:13819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13819 | rm -rf conftest* |
90dd450c | 13820 | ac_R_nospace=yes |
3a922bb4 | 13821 | else |
a0b9e27f MB |
13822 | echo "configure: failed program was:" >&5 |
13823 | cat conftest.$ac_ext >&5 | |
13824 | rm -rf conftest* | |
13825 | ac_R_nospace=no | |
3a922bb4 | 13826 | fi |
a0b9e27f | 13827 | rm -f conftest* |
90dd450c | 13828 | if test $ac_R_nospace = yes; then |
a0b9e27f | 13829 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
13830 | X_LIBS="$X_LIBS -R$x_libraries" |
13831 | else | |
13832 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 13833 | cat > conftest.$ac_ext <<EOF |
da494b40 | 13834 | #line 13835 "configure" |
90dd450c | 13835 | #include "confdefs.h" |
3a922bb4 | 13836 | |
a0b9e27f | 13837 | int main() { |
6f754473 | 13838 | |
a0b9e27f MB |
13839 | ; return 0; } |
13840 | EOF | |
da494b40 | 13841 | if { (eval echo configure:13842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13842 | rm -rf conftest* |
90dd450c VZ |
13843 | ac_R_space=yes |
13844 | else | |
a0b9e27f MB |
13845 | echo "configure: failed program was:" >&5 |
13846 | cat conftest.$ac_ext >&5 | |
13847 | rm -rf conftest* | |
13848 | ac_R_space=no | |
90dd450c | 13849 | fi |
a0b9e27f | 13850 | rm -f conftest* |
90dd450c | 13851 | if test $ac_R_space = yes; then |
a0b9e27f | 13852 | echo "$ac_t""yes" 1>&6 |
90dd450c VZ |
13853 | X_LIBS="$X_LIBS -R $x_libraries" |
13854 | else | |
a0b9e27f | 13855 | echo "$ac_t""neither works" 1>&6 |
90dd450c VZ |
13856 | fi |
13857 | fi | |
a0b9e27f | 13858 | LIBS="$ac_xsave_LIBS" |
90dd450c VZ |
13859 | esac |
13860 | fi | |
13861 | ||
13862 | # Check for system-dependent libraries X programs must link with. | |
13863 | # Do this before checking for the system-independent R6 libraries | |
13864 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 13865 | |
90dd450c VZ |
13866 | if test "$ISC" = yes; then |
13867 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13868 | else | |
a0b9e27f MB |
13869 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
13870 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
90dd450c | 13871 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 13872 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
da494b40 | 13873 | echo "configure:13874: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
13874 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13875 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13876 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 13877 | else |
a0b9e27f | 13878 | ac_save_LIBS="$LIBS" |
247f5006 | 13879 | LIBS="-ldnet $LIBS" |
a0b9e27f | 13880 | cat > conftest.$ac_ext <<EOF |
da494b40 | 13881 | #line 13882 "configure" |
247f5006 | 13882 | #include "confdefs.h" |
247f5006 | 13883 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 13884 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13885 | builtin and then its argument prototype would still apply. */ |
13886 | char dnet_ntoa(); | |
13887 | ||
13888 | int main() { | |
13889 | dnet_ntoa() | |
13890 | ; return 0; } | |
13891 | EOF | |
da494b40 | 13892 | if { (eval echo configure:13893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13893 | rm -rf conftest* |
13894 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13895 | else | |
13896 | echo "configure: failed program was:" >&5 | |
13897 | cat conftest.$ac_ext >&5 | |
13898 | rm -rf conftest* | |
13899 | eval "ac_cv_lib_$ac_lib_var=no" | |
13900 | fi | |
13901 | rm -f conftest* | |
13902 | LIBS="$ac_save_LIBS" | |
13903 | ||
13904 | fi | |
13905 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13906 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13907 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
13908 | else |
13909 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13910 | fi |
13911 | ||
90dd450c | 13912 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 13913 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
da494b40 | 13914 | echo "configure:13915: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
13915 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13916 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13917 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13918 | else |
a0b9e27f | 13919 | ac_save_LIBS="$LIBS" |
90dd450c | 13920 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 13921 | cat > conftest.$ac_ext <<EOF |
da494b40 | 13922 | #line 13923 "configure" |
90dd450c VZ |
13923 | #include "confdefs.h" |
13924 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13925 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13926 | builtin and then its argument prototype would still apply. */ |
13927 | char dnet_ntoa(); | |
13928 | ||
13929 | int main() { | |
13930 | dnet_ntoa() | |
13931 | ; return 0; } | |
13932 | EOF | |
da494b40 | 13933 | if { (eval echo configure:13934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13934 | rm -rf conftest* |
13935 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13936 | else | |
13937 | echo "configure: failed program was:" >&5 | |
13938 | cat conftest.$ac_ext >&5 | |
13939 | rm -rf conftest* | |
13940 | eval "ac_cv_lib_$ac_lib_var=no" | |
13941 | fi | |
13942 | rm -f conftest* | |
13943 | LIBS="$ac_save_LIBS" | |
13944 | ||
13945 | fi | |
13946 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13947 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13948 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
13949 | else |
13950 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13951 | fi |
13952 | ||
90dd450c | 13953 | fi |
978f1259 | 13954 | |
90dd450c VZ |
13955 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13956 | # to get the SysV transport functions. | |
a0b9e27f | 13957 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
13958 | # needs -lnsl. |
13959 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
13960 | # on Irix 5.2, according to dickey@clark.net. |
13961 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
da494b40 | 13962 | echo "configure:13963: checking for gethostbyname" >&5 |
a0b9e27f MB |
13963 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13964 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13965 | else | |
13966 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 13967 | #line 13968 "configure" |
90dd450c VZ |
13968 | #include "confdefs.h" |
13969 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 13970 | which can conflict with char gethostbyname(); below. */ |
90dd450c VZ |
13971 | #include <assert.h> |
13972 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13973 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13974 | builtin and then its argument prototype would still apply. */ |
13975 | char gethostbyname(); | |
13976 | ||
13977 | int main() { | |
13978 | ||
90dd450c VZ |
13979 | /* The GNU C library defines this for functions which it implements |
13980 | to always fail with ENOSYS. Some functions are actually named | |
13981 | something starting with __ and the normal name is an alias. */ | |
13982 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13983 | choke me | |
13984 | #else | |
a0b9e27f | 13985 | gethostbyname(); |
90dd450c | 13986 | #endif |
978f1259 | 13987 | |
a0b9e27f MB |
13988 | ; return 0; } |
13989 | EOF | |
da494b40 | 13990 | if { (eval echo configure:13991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13991 | rm -rf conftest* |
13992 | eval "ac_cv_func_gethostbyname=yes" | |
13993 | else | |
13994 | echo "configure: failed program was:" >&5 | |
13995 | cat conftest.$ac_ext >&5 | |
13996 | rm -rf conftest* | |
13997 | eval "ac_cv_func_gethostbyname=no" | |
13998 | fi | |
13999 | rm -f conftest* | |
14000 | fi | |
14001 | ||
14002 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
14003 | echo "$ac_t""yes" 1>&6 | |
14004 | : | |
14005 | else | |
14006 | echo "$ac_t""no" 1>&6 | |
14007 | fi | |
698dcdb6 | 14008 | |
90dd450c | 14009 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 14010 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
da494b40 | 14011 | echo "configure:14012: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
14012 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
14013 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14014 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14015 | else |
a0b9e27f | 14016 | ac_save_LIBS="$LIBS" |
90dd450c | 14017 | LIBS="-lnsl $LIBS" |
a0b9e27f | 14018 | cat > conftest.$ac_ext <<EOF |
da494b40 | 14019 | #line 14020 "configure" |
90dd450c VZ |
14020 | #include "confdefs.h" |
14021 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14022 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14023 | builtin and then its argument prototype would still apply. */ |
14024 | char gethostbyname(); | |
5c6fa7d2 | 14025 | |
a0b9e27f MB |
14026 | int main() { |
14027 | gethostbyname() | |
14028 | ; return 0; } | |
14029 | EOF | |
da494b40 | 14030 | if { (eval echo configure:14031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14031 | rm -rf conftest* |
14032 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 14033 | else |
a0b9e27f MB |
14034 | echo "configure: failed program was:" >&5 |
14035 | cat conftest.$ac_ext >&5 | |
14036 | rm -rf conftest* | |
14037 | eval "ac_cv_lib_$ac_lib_var=no" | |
14038 | fi | |
14039 | rm -f conftest* | |
14040 | LIBS="$ac_save_LIBS" | |
247f5006 | 14041 | |
a0b9e27f MB |
14042 | fi |
14043 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14044 | echo "$ac_t""yes" 1>&6 | |
14045 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
14046 | else | |
14047 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14048 | fi |
b12915c1 | 14049 | |
90dd450c VZ |
14050 | fi |
14051 | ||
14052 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
14053 | # socket/setsockopt and other routines are undefined under SCO ODT | |
14054 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
14055 | # on later versions), says simon@lia.di.epfl.ch: it contains |
14056 | # gethostby* variants that don't use the nameserver (or something). | |
14057 | # -lsocket must be given before -lnsl if both are needed. | |
14058 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
14059 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
da494b40 | 14060 | echo "configure:14061: checking for connect" >&5 |
a0b9e27f MB |
14061 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
14062 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14063 | else | |
14064 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 14065 | #line 14066 "configure" |
55e80573 | 14066 | #include "confdefs.h" |
90dd450c | 14067 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 14068 | which can conflict with char connect(); below. */ |
90dd450c VZ |
14069 | #include <assert.h> |
14070 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14071 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14072 | builtin and then its argument prototype would still apply. */ |
14073 | char connect(); | |
14074 | ||
14075 | int main() { | |
14076 | ||
90dd450c VZ |
14077 | /* The GNU C library defines this for functions which it implements |
14078 | to always fail with ENOSYS. Some functions are actually named | |
14079 | something starting with __ and the normal name is an alias. */ | |
14080 | #if defined (__stub_connect) || defined (__stub___connect) | |
14081 | choke me | |
14082 | #else | |
a0b9e27f | 14083 | connect(); |
90dd450c VZ |
14084 | #endif |
14085 | ||
a0b9e27f MB |
14086 | ; return 0; } |
14087 | EOF | |
da494b40 | 14088 | if { (eval echo configure:14089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14089 | rm -rf conftest* |
14090 | eval "ac_cv_func_connect=yes" | |
14091 | else | |
14092 | echo "configure: failed program was:" >&5 | |
14093 | cat conftest.$ac_ext >&5 | |
14094 | rm -rf conftest* | |
14095 | eval "ac_cv_func_connect=no" | |
14096 | fi | |
14097 | rm -f conftest* | |
14098 | fi | |
14099 | ||
14100 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
14101 | echo "$ac_t""yes" 1>&6 | |
14102 | : | |
14103 | else | |
14104 | echo "$ac_t""no" 1>&6 | |
14105 | fi | |
55e80573 | 14106 | |
90dd450c | 14107 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 14108 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
da494b40 | 14109 | echo "configure:14110: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
14110 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
14111 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14112 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14113 | else |
a0b9e27f | 14114 | ac_save_LIBS="$LIBS" |
90dd450c | 14115 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14116 | cat > conftest.$ac_ext <<EOF |
da494b40 | 14117 | #line 14118 "configure" |
90dd450c VZ |
14118 | #include "confdefs.h" |
14119 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14120 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14121 | builtin and then its argument prototype would still apply. */ |
14122 | char connect(); | |
14123 | ||
14124 | int main() { | |
14125 | connect() | |
14126 | ; return 0; } | |
14127 | EOF | |
da494b40 | 14128 | if { (eval echo configure:14129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14129 | rm -rf conftest* |
14130 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14131 | else | |
14132 | echo "configure: failed program was:" >&5 | |
14133 | cat conftest.$ac_ext >&5 | |
14134 | rm -rf conftest* | |
14135 | eval "ac_cv_lib_$ac_lib_var=no" | |
14136 | fi | |
14137 | rm -f conftest* | |
14138 | LIBS="$ac_save_LIBS" | |
14139 | ||
14140 | fi | |
14141 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14142 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14143 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
14144 | else |
14145 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14146 | fi |
77e13408 | 14147 | |
90dd450c | 14148 | fi |
25d0687a | 14149 | |
a0b9e27f MB |
14150 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
14151 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
da494b40 | 14152 | echo "configure:14153: checking for remove" >&5 |
a0b9e27f MB |
14153 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
14154 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14155 | else |
a0b9e27f | 14156 | cat > conftest.$ac_ext <<EOF |
da494b40 | 14157 | #line 14158 "configure" |
90dd450c VZ |
14158 | #include "confdefs.h" |
14159 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14160 | which can conflict with char remove(); below. */ |
90dd450c VZ |
14161 | #include <assert.h> |
14162 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14163 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14164 | builtin and then its argument prototype would still apply. */ |
14165 | char remove(); | |
14166 | ||
14167 | int main() { | |
14168 | ||
90dd450c VZ |
14169 | /* The GNU C library defines this for functions which it implements |
14170 | to always fail with ENOSYS. Some functions are actually named | |
14171 | something starting with __ and the normal name is an alias. */ | |
14172 | #if defined (__stub_remove) || defined (__stub___remove) | |
14173 | choke me | |
14174 | #else | |
a0b9e27f | 14175 | remove(); |
90dd450c | 14176 | #endif |
55e80573 | 14177 | |
a0b9e27f MB |
14178 | ; return 0; } |
14179 | EOF | |
da494b40 | 14180 | if { (eval echo configure:14181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14181 | rm -rf conftest* |
14182 | eval "ac_cv_func_remove=yes" | |
14183 | else | |
14184 | echo "configure: failed program was:" >&5 | |
14185 | cat conftest.$ac_ext >&5 | |
14186 | rm -rf conftest* | |
14187 | eval "ac_cv_func_remove=no" | |
14188 | fi | |
14189 | rm -f conftest* | |
14190 | fi | |
14191 | ||
14192 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
14193 | echo "$ac_t""yes" 1>&6 | |
14194 | : | |
14195 | else | |
14196 | echo "$ac_t""no" 1>&6 | |
14197 | fi | |
10f2d63a | 14198 | |
90dd450c | 14199 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 14200 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
da494b40 | 14201 | echo "configure:14202: checking for remove in -lposix" >&5 |
a0b9e27f MB |
14202 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
14203 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14204 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14205 | else |
a0b9e27f | 14206 | ac_save_LIBS="$LIBS" |
90dd450c | 14207 | LIBS="-lposix $LIBS" |
a0b9e27f | 14208 | cat > conftest.$ac_ext <<EOF |
da494b40 | 14209 | #line 14210 "configure" |
90dd450c VZ |
14210 | #include "confdefs.h" |
14211 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14212 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14213 | builtin and then its argument prototype would still apply. */ |
14214 | char remove(); | |
14215 | ||
14216 | int main() { | |
14217 | remove() | |
14218 | ; return 0; } | |
14219 | EOF | |
da494b40 | 14220 | if { (eval echo configure:14221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14221 | rm -rf conftest* |
14222 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14223 | else | |
14224 | echo "configure: failed program was:" >&5 | |
14225 | cat conftest.$ac_ext >&5 | |
14226 | rm -rf conftest* | |
14227 | eval "ac_cv_lib_$ac_lib_var=no" | |
14228 | fi | |
14229 | rm -f conftest* | |
14230 | LIBS="$ac_save_LIBS" | |
14231 | ||
14232 | fi | |
14233 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14234 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14235 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
14236 | else |
14237 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14238 | fi |
f6bcfd97 | 14239 | |
6fa882bd RR |
14240 | fi |
14241 | ||
90dd450c | 14242 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 14243 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
da494b40 | 14244 | echo "configure:14245: checking for shmat" >&5 |
a0b9e27f MB |
14245 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
14246 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14247 | else |
a0b9e27f | 14248 | cat > conftest.$ac_ext <<EOF |
da494b40 | 14249 | #line 14250 "configure" |
90dd450c VZ |
14250 | #include "confdefs.h" |
14251 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14252 | which can conflict with char shmat(); below. */ |
90dd450c VZ |
14253 | #include <assert.h> |
14254 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14255 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14256 | builtin and then its argument prototype would still apply. */ |
14257 | char shmat(); | |
14258 | ||
14259 | int main() { | |
14260 | ||
90dd450c VZ |
14261 | /* The GNU C library defines this for functions which it implements |
14262 | to always fail with ENOSYS. Some functions are actually named | |
14263 | something starting with __ and the normal name is an alias. */ | |
14264 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14265 | choke me | |
14266 | #else | |
a0b9e27f | 14267 | shmat(); |
90dd450c | 14268 | #endif |
10f2d63a | 14269 | |
a0b9e27f MB |
14270 | ; return 0; } |
14271 | EOF | |
da494b40 | 14272 | if { (eval echo configure:14273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14273 | rm -rf conftest* |
14274 | eval "ac_cv_func_shmat=yes" | |
14275 | else | |
14276 | echo "configure: failed program was:" >&5 | |
14277 | cat conftest.$ac_ext >&5 | |
14278 | rm -rf conftest* | |
14279 | eval "ac_cv_func_shmat=no" | |
14280 | fi | |
14281 | rm -f conftest* | |
14282 | fi | |
14283 | ||
14284 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14285 | echo "$ac_t""yes" 1>&6 | |
14286 | : | |
14287 | else | |
14288 | echo "$ac_t""no" 1>&6 | |
14289 | fi | |
d08b457b | 14290 | |
90dd450c | 14291 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 14292 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
da494b40 | 14293 | echo "configure:14294: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
14294 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
14295 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14296 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d08b457b | 14297 | else |
a0b9e27f | 14298 | ac_save_LIBS="$LIBS" |
90dd450c | 14299 | LIBS="-lipc $LIBS" |
a0b9e27f | 14300 | cat > conftest.$ac_ext <<EOF |
da494b40 | 14301 | #line 14302 "configure" |
90dd450c | 14302 | #include "confdefs.h" |
8284b0c5 | 14303 | /* Override any gcc2 internal prototype to avoid an error. */ |
90dd450c | 14304 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14305 | builtin and then its argument prototype would still apply. */ |
14306 | char shmat(); | |
14307 | ||
14308 | int main() { | |
14309 | shmat() | |
14310 | ; return 0; } | |
14311 | EOF | |
da494b40 | 14312 | if { (eval echo configure:14313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14313 | rm -rf conftest* |
14314 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14315 | else | |
14316 | echo "configure: failed program was:" >&5 | |
14317 | cat conftest.$ac_ext >&5 | |
14318 | rm -rf conftest* | |
14319 | eval "ac_cv_lib_$ac_lib_var=no" | |
14320 | fi | |
14321 | rm -f conftest* | |
14322 | LIBS="$ac_save_LIBS" | |
14323 | ||
14324 | fi | |
14325 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14326 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14327 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
14328 | else |
14329 | echo "$ac_t""no" 1>&6 | |
d08b457b GD |
14330 | fi |
14331 | ||
d558c907 | 14332 | fi |
90dd450c | 14333 | fi |
3a922bb4 | 14334 | |
90dd450c | 14335 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 14336 | ac_save_LDFLAGS="$LDFLAGS" |
90dd450c VZ |
14337 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
14338 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14339 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14340 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14341 | # These have to be linked with before -lX11, unlike the other | |
14342 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
14343 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
14344 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
da494b40 | 14345 | echo "configure:14346: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
14346 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
14347 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14348 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14349 | else | |
14350 | ac_save_LIBS="$LIBS" | |
f09359cf | 14351 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14352 | cat > conftest.$ac_ext <<EOF |
da494b40 | 14353 | #line 14354 "configure" |
9cfadba2 | 14354 | #include "confdefs.h" |
90dd450c VZ |
14355 | /* Override any gcc2 internal prototype to avoid an error. */ |
14356 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14357 | builtin and then its argument prototype would still apply. */ |
14358 | char IceConnectionNumber(); | |
14359 | ||
14360 | int main() { | |
14361 | IceConnectionNumber() | |
14362 | ; return 0; } | |
14363 | EOF | |
da494b40 | 14364 | if { (eval echo configure:14365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14365 | rm -rf conftest* |
14366 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14367 | else | |
14368 | echo "configure: failed program was:" >&5 | |
14369 | cat conftest.$ac_ext >&5 | |
14370 | rm -rf conftest* | |
14371 | eval "ac_cv_lib_$ac_lib_var=no" | |
14372 | fi | |
14373 | rm -f conftest* | |
14374 | LIBS="$ac_save_LIBS" | |
14375 | ||
14376 | fi | |
14377 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14378 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14379 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
14380 | else |
14381 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 14382 | fi |
10f2d63a | 14383 | |
a0b9e27f | 14384 | LDFLAGS="$ac_save_LDFLAGS" |
90dd450c VZ |
14385 | |
14386 | fi | |
14387 | ||
8284b0c5 | 14388 | |
90dd450c | 14389 | if test "$no_x" = "yes"; then |
a0b9e27f | 14390 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
90dd450c VZ |
14391 | fi |
14392 | ||
14393 | GUI_TK_LIBRARY="$X_LIBS" | |
14394 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14395 | AFMINSTALL=afminstall | |
14396 | COMPILED_X_PROGRAM=0 | |
14397 | ||
21d1c967 | 14398 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 14399 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 |
da494b40 | 14400 | echo "configure:14401: checking for MicroWindows/NanoX distribution" >&5 |
21d1c967 | 14401 | if test "x$MICROWIN" = x ; then |
a0b9e27f MB |
14402 | echo "$ac_t""not found" 1>&6 |
14403 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
90dd450c | 14404 | else |
a0b9e27f MB |
14405 | echo "$ac_t""$MICROWIN" 1>&6 |
14406 | cat >> confdefs.h <<\EOF | |
21d1c967 | 14407 | #define wxUSE_NANOX 1 |
a0b9e27f | 14408 | EOF |
21d1c967 | 14409 | |
90dd450c VZ |
14410 | fi |
14411 | fi | |
14412 | ||
14413 | xpm_link= | |
a0b9e27f | 14414 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
da494b40 | 14415 | echo "configure:14416: checking for Xpm library" >&5 |
a0b9e27f | 14416 | |
90dd450c | 14417 | ac_find_libraries= |
2b5f62a0 | 14418 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
14419 | do |
14420 | for ac_extension in a so sl dylib; do | |
14421 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14422 | ac_find_libraries=$ac_dir | |
14423 | break 2 | |
14424 | fi | |
14425 | done | |
14426 | done | |
14427 | ||
14428 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 14429 | |
90dd450c VZ |
14430 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14431 | result=$? | |
14432 | if test $result = 0; then | |
14433 | ac_path_to_link="" | |
14434 | else | |
14435 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 14436 | fi |
90dd450c | 14437 | |
21d1c967 GD |
14438 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
14439 | xpm_link=" -lXpm" | |
a0b9e27f | 14440 | cat >> confdefs.h <<\EOF |
21d1c967 | 14441 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14442 | EOF |
90dd450c | 14443 | |
a0b9e27f | 14444 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14445 | else |
a0b9e27f | 14446 | cat > conftest.$ac_ext <<EOF |
da494b40 | 14447 | #line 14448 "configure" |
21d1c967 | 14448 | #include "confdefs.h" |
90dd450c | 14449 | |
21d1c967 | 14450 | #include <X11/xpm.h> |
a0b9e27f MB |
14451 | |
14452 | int main() { | |
6f72b082 | 14453 | |
21d1c967 GD |
14454 | int version; |
14455 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
14456 | |
14457 | ; return 0; } | |
14458 | EOF | |
da494b40 | 14459 | if { (eval echo configure:14460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
14460 | rm -rf conftest* |
14461 | ||
21d1c967 | 14462 | xpm_link=" -lXpm" |
a0b9e27f | 14463 | cat >> confdefs.h <<\EOF |
21d1c967 | 14464 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14465 | EOF |
90dd450c | 14466 | |
a0b9e27f | 14467 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 14468 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 14469 | |
21d1c967 | 14470 | else |
a0b9e27f MB |
14471 | echo "configure: failed program was:" >&5 |
14472 | cat conftest.$ac_ext >&5 | |
14473 | rm -rf conftest* | |
14474 | ||
14475 | echo "$ac_t""no" 1>&6 | |
14476 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14477 | ||
14478 | ||
6f72b082 | 14479 | fi |
a0b9e27f | 14480 | rm -f conftest* |
21d1c967 | 14481 | fi |
90dd450c | 14482 | |
2b5f62a0 VZ |
14483 | if test "$wxUSE_UNICODE" = "yes"; then |
14484 | ||
14485 | succeeded=no | |
90dd450c | 14486 | |
2b5f62a0 VZ |
14487 | if test -z "$PKG_CONFIG"; then |
14488 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14489 | set dummy pkg-config; ac_word=$2 | |
14490 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
da494b40 | 14491 | echo "configure:14492: checking for $ac_word" >&5 |
2b5f62a0 | 14492 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
a0b9e27f MB |
14493 | echo $ac_n "(cached) $ac_c" 1>&6 |
14494 | else | |
2b5f62a0 VZ |
14495 | case "$PKG_CONFIG" in |
14496 | /*) | |
14497 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14498 | ;; | |
14499 | ?:/*) | |
14500 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14501 | ;; | |
14502 | *) | |
14503 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14504 | ac_dummy="$PATH" | |
14505 | for ac_dir in $ac_dummy; do | |
14506 | test -z "$ac_dir" && ac_dir=. | |
14507 | if test -f $ac_dir/$ac_word; then | |
14508 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14509 | break | |
14510 | fi | |
14511 | done | |
14512 | IFS="$ac_save_ifs" | |
14513 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14514 | ;; | |
14515 | esac | |
14516 | fi | |
14517 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14518 | if test -n "$PKG_CONFIG"; then | |
14519 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14520 | else | |
14521 | echo "$ac_t""no" 1>&6 | |
14522 | fi | |
14523 | ||
14524 | fi | |
14525 | ||
14526 | if test "$PKG_CONFIG" = "no" ; then | |
14527 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14528 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14529 | echo "*** to the full path to pkg-config." | |
14530 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14531 | else | |
14532 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14533 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14534 | echo $ac_n "checking for pangox""... $ac_c" 1>&6 | |
da494b40 | 14535 | echo "configure:14536: checking for pangox" >&5 |
2b5f62a0 VZ |
14536 | |
14537 | if $PKG_CONFIG --exists "pangox" ; then | |
14538 | echo "$ac_t""yes" 1>&6 | |
14539 | succeeded=yes | |
14540 | ||
14541 | echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6 | |
da494b40 | 14542 | echo "configure:14543: checking PANGOX_CFLAGS" >&5 |
2b5f62a0 VZ |
14543 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
14544 | echo "$ac_t""$PANGOX_CFLAGS" 1>&6 | |
14545 | ||
14546 | echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6 | |
da494b40 | 14547 | echo "configure:14548: checking PANGOX_LIBS" >&5 |
2b5f62a0 VZ |
14548 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
14549 | echo "$ac_t""$PANGOX_LIBS" 1>&6 | |
14550 | else | |
14551 | PANGOX_CFLAGS="" | |
14552 | PANGOX_LIBS="" | |
14553 | ## If we have a custom action on failure, don't print errors, but | |
14554 | ## do set a variable so people can do so. | |
14555 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
14556 | ||
14557 | fi | |
14558 | ||
14559 | ||
14560 | ||
14561 | else | |
14562 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14563 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14564 | fi | |
14565 | fi | |
14566 | ||
14567 | if test $succeeded = yes; then | |
14568 | ||
14569 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
14570 | LIBS="$LIBS $PANGOX_LIBS" | |
14571 | ||
14572 | else | |
14573 | ||
14574 | { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; } | |
14575 | ||
14576 | ||
14577 | fi | |
14578 | ||
14579 | ||
14580 | succeeded=no | |
14581 | ||
14582 | if test -z "$PKG_CONFIG"; then | |
14583 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14584 | set dummy pkg-config; ac_word=$2 | |
14585 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
da494b40 | 14586 | echo "configure:14587: checking for $ac_word" >&5 |
2b5f62a0 VZ |
14587 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
14588 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14589 | else | |
14590 | case "$PKG_CONFIG" in | |
14591 | /*) | |
14592 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14593 | ;; | |
14594 | ?:/*) | |
14595 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14596 | ;; | |
14597 | *) | |
14598 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14599 | ac_dummy="$PATH" | |
14600 | for ac_dir in $ac_dummy; do | |
14601 | test -z "$ac_dir" && ac_dir=. | |
14602 | if test -f $ac_dir/$ac_word; then | |
14603 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14604 | break | |
14605 | fi | |
14606 | done | |
14607 | IFS="$ac_save_ifs" | |
14608 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14609 | ;; | |
14610 | esac | |
14611 | fi | |
14612 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14613 | if test -n "$PKG_CONFIG"; then | |
14614 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14615 | else | |
14616 | echo "$ac_t""no" 1>&6 | |
14617 | fi | |
14618 | ||
14619 | fi | |
14620 | ||
14621 | if test "$PKG_CONFIG" = "no" ; then | |
14622 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14623 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14624 | echo "*** to the full path to pkg-config." | |
14625 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14626 | else | |
14627 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14628 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14629 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 | |
da494b40 | 14630 | echo "configure:14631: checking for pangoft2" >&5 |
2b5f62a0 VZ |
14631 | |
14632 | if $PKG_CONFIG --exists "pangoft2" ; then | |
14633 | echo "$ac_t""yes" 1>&6 | |
14634 | succeeded=yes | |
14635 | ||
14636 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 | |
da494b40 | 14637 | echo "configure:14638: checking PANGOFT2_CFLAGS" >&5 |
2b5f62a0 VZ |
14638 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
14639 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 | |
14640 | ||
14641 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 | |
da494b40 | 14642 | echo "configure:14643: checking PANGOFT2_LIBS" >&5 |
2b5f62a0 VZ |
14643 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
14644 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 | |
14645 | else | |
14646 | PANGOFT2_CFLAGS="" | |
14647 | PANGOFT2_LIBS="" | |
14648 | ## If we have a custom action on failure, don't print errors, but | |
14649 | ## do set a variable so people can do so. | |
14650 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
14651 | ||
14652 | fi | |
14653 | ||
14654 | ||
14655 | ||
14656 | else | |
14657 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14658 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14659 | fi | |
14660 | fi | |
14661 | ||
14662 | if test $succeeded = yes; then | |
14663 | ||
14664 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
14665 | LIBS="$LIBS $PANGOFT2_LIBS" | |
14666 | ||
14667 | else | |
14668 | ||
14669 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
14670 | wxUSE_PRINTING_ARCHITECTURE="no" | |
14671 | ||
14672 | ||
14673 | fi | |
14674 | ||
14675 | ||
14676 | succeeded=no | |
14677 | ||
14678 | if test -z "$PKG_CONFIG"; then | |
14679 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14680 | set dummy pkg-config; ac_word=$2 | |
14681 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
da494b40 | 14682 | echo "configure:14683: checking for $ac_word" >&5 |
2b5f62a0 VZ |
14683 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
14684 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14685 | else | |
14686 | case "$PKG_CONFIG" in | |
14687 | /*) | |
14688 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14689 | ;; | |
14690 | ?:/*) | |
14691 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14692 | ;; | |
14693 | *) | |
14694 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14695 | ac_dummy="$PATH" | |
14696 | for ac_dir in $ac_dummy; do | |
14697 | test -z "$ac_dir" && ac_dir=. | |
14698 | if test -f $ac_dir/$ac_word; then | |
14699 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14700 | break | |
14701 | fi | |
14702 | done | |
14703 | IFS="$ac_save_ifs" | |
14704 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14705 | ;; | |
14706 | esac | |
14707 | fi | |
14708 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14709 | if test -n "$PKG_CONFIG"; then | |
14710 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14711 | else | |
14712 | echo "$ac_t""no" 1>&6 | |
14713 | fi | |
14714 | ||
14715 | fi | |
14716 | ||
14717 | if test "$PKG_CONFIG" = "no" ; then | |
14718 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14719 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14720 | echo "*** to the full path to pkg-config." | |
14721 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14722 | else | |
14723 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14724 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14725 | echo $ac_n "checking for pangoxft""... $ac_c" 1>&6 | |
da494b40 | 14726 | echo "configure:14727: checking for pangoxft" >&5 |
2b5f62a0 VZ |
14727 | |
14728 | if $PKG_CONFIG --exists "pangoxft" ; then | |
14729 | echo "$ac_t""yes" 1>&6 | |
14730 | succeeded=yes | |
14731 | ||
14732 | echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6 | |
da494b40 | 14733 | echo "configure:14734: checking PANGOXFT_CFLAGS" >&5 |
2b5f62a0 VZ |
14734 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
14735 | echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6 | |
14736 | ||
14737 | echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6 | |
da494b40 | 14738 | echo "configure:14739: checking PANGOXFT_LIBS" >&5 |
2b5f62a0 VZ |
14739 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
14740 | echo "$ac_t""$PANGOXFT_LIBS" 1>&6 | |
14741 | else | |
14742 | PANGOXFT_CFLAGS="" | |
14743 | PANGOXFT_LIBS="" | |
14744 | ## If we have a custom action on failure, don't print errors, but | |
14745 | ## do set a variable so people can do so. | |
14746 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
14747 | ||
14748 | fi | |
14749 | ||
14750 | ||
14751 | ||
14752 | else | |
14753 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14754 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14755 | fi | |
14756 | fi | |
14757 | ||
14758 | if test $succeeded = yes; then | |
14759 | ||
14760 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
14761 | LIBS="$LIBS $PANGOXFT_LIBS" | |
14762 | ||
14763 | else | |
14764 | ||
14765 | echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2 | |
14766 | ||
14767 | ||
14768 | fi | |
14769 | ||
14770 | fi | |
14771 | ||
14772 | wxUSE_UNIVERSAL="yes" | |
14773 | ||
14774 | if test "$wxUSE_NANOX" = "yes"; then | |
14775 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
14776 | 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" | |
14777 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
14778 | else | |
14779 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
14780 | fi | |
14781 | ||
14782 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
14783 | TOOLKIT=X11 | |
14784 | GUIDIST=X11_DIST | |
14785 | fi | |
14786 | ||
21d1c967 GD |
14787 | if test "$wxUSE_MOTIF" = 1; then |
14788 | if test "$no_x" = yes; then | |
14789 | # Not all programs may use this symbol, but it does not hurt to define it. | |
a0b9e27f | 14790 | cat >> confdefs.h <<\EOF |
21d1c967 | 14791 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 14792 | EOF |
21d1c967 GD |
14793 | |
14794 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
14795 | else | |
14796 | if test -n "$x_includes"; then | |
14797 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
14798 | fi |
14799 | ||
21d1c967 GD |
14800 | # It would also be nice to do this for all -L options, not just this one. |
14801 | if test -n "$x_libraries"; then | |
14802 | X_LIBS="$X_LIBS -L$x_libraries" | |
14803 | # For Solaris; some versions of Sun CC require a space after -R and | |
14804 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 14805 | case "`(uname -sr) 2>/dev/null`" in |
21d1c967 | 14806 | "SunOS 5"*) |
a0b9e27f | 14807 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
da494b40 | 14808 | echo "configure:14809: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
14809 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
14810 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 14811 | #line 14812 "configure" |
21d1c967 GD |
14812 | #include "confdefs.h" |
14813 | ||
a0b9e27f | 14814 | int main() { |
21d1c967 | 14815 | |
a0b9e27f MB |
14816 | ; return 0; } |
14817 | EOF | |
da494b40 | 14818 | if { (eval echo configure:14819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14819 | rm -rf conftest* |
21d1c967 | 14820 | ac_R_nospace=yes |
698dcdb6 | 14821 | else |
a0b9e27f MB |
14822 | echo "configure: failed program was:" >&5 |
14823 | cat conftest.$ac_ext >&5 | |
14824 | rm -rf conftest* | |
14825 | ac_R_nospace=no | |
10f2d63a | 14826 | fi |
a0b9e27f | 14827 | rm -f conftest* |
21d1c967 | 14828 | if test $ac_R_nospace = yes; then |
a0b9e27f | 14829 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
14830 | X_LIBS="$X_LIBS -R$x_libraries" |
14831 | else | |
14832 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 14833 | cat > conftest.$ac_ext <<EOF |
da494b40 | 14834 | #line 14835 "configure" |
21d1c967 | 14835 | #include "confdefs.h" |
10f2d63a | 14836 | |
a0b9e27f | 14837 | int main() { |
f0c87536 | 14838 | |
a0b9e27f MB |
14839 | ; return 0; } |
14840 | EOF | |
da494b40 | 14841 | if { (eval echo configure:14842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14842 | rm -rf conftest* |
21d1c967 GD |
14843 | ac_R_space=yes |
14844 | else | |
a0b9e27f MB |
14845 | echo "configure: failed program was:" >&5 |
14846 | cat conftest.$ac_ext >&5 | |
14847 | rm -rf conftest* | |
14848 | ac_R_space=no | |
21d1c967 | 14849 | fi |
a0b9e27f | 14850 | rm -f conftest* |
21d1c967 | 14851 | if test $ac_R_space = yes; then |
a0b9e27f | 14852 | echo "$ac_t""yes" 1>&6 |
21d1c967 GD |
14853 | X_LIBS="$X_LIBS -R $x_libraries" |
14854 | else | |
a0b9e27f | 14855 | echo "$ac_t""neither works" 1>&6 |
21d1c967 GD |
14856 | fi |
14857 | fi | |
a0b9e27f | 14858 | LIBS="$ac_xsave_LIBS" |
21d1c967 GD |
14859 | esac |
14860 | fi | |
90dd450c | 14861 | |
21d1c967 GD |
14862 | # Check for system-dependent libraries X programs must link with. |
14863 | # Do this before checking for the system-independent R6 libraries | |
14864 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
14865 | ||
14866 | if test "$ISC" = yes; then | |
14867 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
14868 | else | |
a0b9e27f MB |
14869 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
14870 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
21d1c967 | 14871 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 14872 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
da494b40 | 14873 | echo "configure:14874: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
14874 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14875 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14876 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 14877 | else |
a0b9e27f | 14878 | ac_save_LIBS="$LIBS" |
247f5006 | 14879 | LIBS="-ldnet $LIBS" |
a0b9e27f | 14880 | cat > conftest.$ac_ext <<EOF |
da494b40 | 14881 | #line 14882 "configure" |
247f5006 | 14882 | #include "confdefs.h" |
247f5006 | 14883 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 14884 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14885 | builtin and then its argument prototype would still apply. */ |
14886 | char dnet_ntoa(); | |
14887 | ||
14888 | int main() { | |
14889 | dnet_ntoa() | |
14890 | ; return 0; } | |
14891 | EOF | |
da494b40 | 14892 | if { (eval echo configure:14893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14893 | rm -rf conftest* |
14894 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14895 | else | |
14896 | echo "configure: failed program was:" >&5 | |
14897 | cat conftest.$ac_ext >&5 | |
14898 | rm -rf conftest* | |
14899 | eval "ac_cv_lib_$ac_lib_var=no" | |
14900 | fi | |
14901 | rm -f conftest* | |
14902 | LIBS="$ac_save_LIBS" | |
14903 | ||
14904 | fi | |
14905 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14906 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14907 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
14908 | else |
14909 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 | 14910 | fi |
0fb0dd83 | 14911 | |
21d1c967 | 14912 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 14913 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
da494b40 | 14914 | echo "configure:14915: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
14915 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14916 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14917 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14918 | else |
a0b9e27f | 14919 | ac_save_LIBS="$LIBS" |
21d1c967 | 14920 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 14921 | cat > conftest.$ac_ext <<EOF |
da494b40 | 14922 | #line 14923 "configure" |
21d1c967 GD |
14923 | #include "confdefs.h" |
14924 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14925 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14926 | builtin and then its argument prototype would still apply. */ |
14927 | char dnet_ntoa(); | |
14928 | ||
14929 | int main() { | |
14930 | dnet_ntoa() | |
14931 | ; return 0; } | |
14932 | EOF | |
da494b40 | 14933 | if { (eval echo configure:14934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14934 | rm -rf conftest* |
14935 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14936 | else | |
14937 | echo "configure: failed program was:" >&5 | |
14938 | cat conftest.$ac_ext >&5 | |
14939 | rm -rf conftest* | |
14940 | eval "ac_cv_lib_$ac_lib_var=no" | |
14941 | fi | |
14942 | rm -f conftest* | |
14943 | LIBS="$ac_save_LIBS" | |
14944 | ||
14945 | fi | |
14946 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14947 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14948 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
14949 | else |
14950 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
14951 | fi |
14952 | ||
21d1c967 | 14953 | fi |
90dd450c | 14954 | |
21d1c967 GD |
14955 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
14956 | # to get the SysV transport functions. | |
a0b9e27f | 14957 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
14958 | # needs -lnsl. |
14959 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
14960 | # on Irix 5.2, according to dickey@clark.net. |
14961 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
da494b40 | 14962 | echo "configure:14963: checking for gethostbyname" >&5 |
a0b9e27f MB |
14963 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
14964 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14965 | else | |
14966 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 14967 | #line 14968 "configure" |
21d1c967 GD |
14968 | #include "confdefs.h" |
14969 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14970 | which can conflict with char gethostbyname(); below. */ |
21d1c967 GD |
14971 | #include <assert.h> |
14972 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14973 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14974 | builtin and then its argument prototype would still apply. */ |
14975 | char gethostbyname(); | |
14976 | ||
14977 | int main() { | |
14978 | ||
21d1c967 GD |
14979 | /* The GNU C library defines this for functions which it implements |
14980 | to always fail with ENOSYS. Some functions are actually named | |
14981 | something starting with __ and the normal name is an alias. */ | |
14982 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
14983 | choke me | |
14984 | #else | |
a0b9e27f | 14985 | gethostbyname(); |
21d1c967 | 14986 | #endif |
90dd450c | 14987 | |
a0b9e27f MB |
14988 | ; return 0; } |
14989 | EOF | |
da494b40 | 14990 | if { (eval echo configure:14991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14991 | rm -rf conftest* |
14992 | eval "ac_cv_func_gethostbyname=yes" | |
14993 | else | |
14994 | echo "configure: failed program was:" >&5 | |
14995 | cat conftest.$ac_ext >&5 | |
14996 | rm -rf conftest* | |
14997 | eval "ac_cv_func_gethostbyname=no" | |
14998 | fi | |
14999 | rm -f conftest* | |
15000 | fi | |
15001 | ||
15002 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
15003 | echo "$ac_t""yes" 1>&6 | |
15004 | : | |
15005 | else | |
15006 | echo "$ac_t""no" 1>&6 | |
15007 | fi | |
90dd450c | 15008 | |
21d1c967 | 15009 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 15010 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
da494b40 | 15011 | echo "configure:15012: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
15012 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
15013 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15014 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15015 | else |
a0b9e27f | 15016 | ac_save_LIBS="$LIBS" |
21d1c967 | 15017 | LIBS="-lnsl $LIBS" |
a0b9e27f | 15018 | cat > conftest.$ac_ext <<EOF |
da494b40 | 15019 | #line 15020 "configure" |
21d1c967 GD |
15020 | #include "confdefs.h" |
15021 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15022 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15023 | builtin and then its argument prototype would still apply. */ |
15024 | char gethostbyname(); | |
5c6fa7d2 | 15025 | |
a0b9e27f MB |
15026 | int main() { |
15027 | gethostbyname() | |
15028 | ; return 0; } | |
15029 | EOF | |
da494b40 | 15030 | if { (eval echo configure:15031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15031 | rm -rf conftest* |
15032 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 15033 | else |
a0b9e27f MB |
15034 | echo "configure: failed program was:" >&5 |
15035 | cat conftest.$ac_ext >&5 | |
15036 | rm -rf conftest* | |
15037 | eval "ac_cv_lib_$ac_lib_var=no" | |
15038 | fi | |
15039 | rm -f conftest* | |
15040 | LIBS="$ac_save_LIBS" | |
247f5006 | 15041 | |
a0b9e27f MB |
15042 | fi |
15043 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15044 | echo "$ac_t""yes" 1>&6 | |
15045 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
15046 | else | |
15047 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15048 | fi |
90dd450c | 15049 | |
90dd450c VZ |
15050 | fi |
15051 | ||
21d1c967 GD |
15052 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
15053 | # socket/setsockopt and other routines are undefined under SCO ODT | |
15054 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
15055 | # on later versions), says simon@lia.di.epfl.ch: it contains |
15056 | # gethostby* variants that don't use the nameserver (or something). | |
15057 | # -lsocket must be given before -lnsl if both are needed. | |
15058 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
15059 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
da494b40 | 15060 | echo "configure:15061: checking for connect" >&5 |
a0b9e27f MB |
15061 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
15062 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15063 | else | |
15064 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 15065 | #line 15066 "configure" |
21d1c967 GD |
15066 | #include "confdefs.h" |
15067 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15068 | which can conflict with char connect(); below. */ |
21d1c967 GD |
15069 | #include <assert.h> |
15070 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15071 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15072 | builtin and then its argument prototype would still apply. */ |
15073 | char connect(); | |
15074 | ||
15075 | int main() { | |
15076 | ||
21d1c967 GD |
15077 | /* The GNU C library defines this for functions which it implements |
15078 | to always fail with ENOSYS. Some functions are actually named | |
15079 | something starting with __ and the normal name is an alias. */ | |
15080 | #if defined (__stub_connect) || defined (__stub___connect) | |
15081 | choke me | |
15082 | #else | |
a0b9e27f | 15083 | connect(); |
21d1c967 | 15084 | #endif |
90dd450c | 15085 | |
a0b9e27f MB |
15086 | ; return 0; } |
15087 | EOF | |
da494b40 | 15088 | if { (eval echo configure:15089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15089 | rm -rf conftest* |
15090 | eval "ac_cv_func_connect=yes" | |
15091 | else | |
15092 | echo "configure: failed program was:" >&5 | |
15093 | cat conftest.$ac_ext >&5 | |
15094 | rm -rf conftest* | |
15095 | eval "ac_cv_func_connect=no" | |
15096 | fi | |
15097 | rm -f conftest* | |
15098 | fi | |
15099 | ||
15100 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
15101 | echo "$ac_t""yes" 1>&6 | |
15102 | : | |
15103 | else | |
15104 | echo "$ac_t""no" 1>&6 | |
15105 | fi | |
1f8ae82f | 15106 | |
21d1c967 | 15107 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 15108 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
da494b40 | 15109 | echo "configure:15110: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
15110 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
15111 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15112 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0fbb762e | 15113 | else |
a0b9e27f | 15114 | ac_save_LIBS="$LIBS" |
21d1c967 | 15115 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 15116 | cat > conftest.$ac_ext <<EOF |
da494b40 | 15117 | #line 15118 "configure" |
0fbb762e | 15118 | #include "confdefs.h" |
21d1c967 GD |
15119 | /* Override any gcc2 internal prototype to avoid an error. */ |
15120 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15121 | builtin and then its argument prototype would still apply. */ |
15122 | char connect(); | |
15123 | ||
15124 | int main() { | |
15125 | connect() | |
15126 | ; return 0; } | |
15127 | EOF | |
da494b40 | 15128 | if { (eval echo configure:15129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15129 | rm -rf conftest* |
15130 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15131 | else | |
15132 | echo "configure: failed program was:" >&5 | |
15133 | cat conftest.$ac_ext >&5 | |
15134 | rm -rf conftest* | |
15135 | eval "ac_cv_lib_$ac_lib_var=no" | |
15136 | fi | |
15137 | rm -f conftest* | |
15138 | LIBS="$ac_save_LIBS" | |
15139 | ||
15140 | fi | |
15141 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15142 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15143 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
15144 | else |
15145 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15146 | fi |
90dd450c | 15147 | |
21d1c967 | 15148 | fi |
90dd450c | 15149 | |
a0b9e27f MB |
15150 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
15151 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
da494b40 | 15152 | echo "configure:15153: checking for remove" >&5 |
a0b9e27f MB |
15153 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
15154 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15155 | else |
a0b9e27f | 15156 | cat > conftest.$ac_ext <<EOF |
da494b40 | 15157 | #line 15158 "configure" |
21d1c967 GD |
15158 | #include "confdefs.h" |
15159 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15160 | which can conflict with char remove(); below. */ |
21d1c967 GD |
15161 | #include <assert.h> |
15162 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15163 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15164 | builtin and then its argument prototype would still apply. */ |
15165 | char remove(); | |
15166 | ||
15167 | int main() { | |
15168 | ||
21d1c967 GD |
15169 | /* The GNU C library defines this for functions which it implements |
15170 | to always fail with ENOSYS. Some functions are actually named | |
15171 | something starting with __ and the normal name is an alias. */ | |
15172 | #if defined (__stub_remove) || defined (__stub___remove) | |
15173 | choke me | |
15174 | #else | |
a0b9e27f | 15175 | remove(); |
21d1c967 | 15176 | #endif |
90dd450c | 15177 | |
a0b9e27f MB |
15178 | ; return 0; } |
15179 | EOF | |
da494b40 | 15180 | if { (eval echo configure:15181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15181 | rm -rf conftest* |
15182 | eval "ac_cv_func_remove=yes" | |
15183 | else | |
15184 | echo "configure: failed program was:" >&5 | |
15185 | cat conftest.$ac_ext >&5 | |
15186 | rm -rf conftest* | |
15187 | eval "ac_cv_func_remove=no" | |
15188 | fi | |
15189 | rm -f conftest* | |
15190 | fi | |
15191 | ||
15192 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
15193 | echo "$ac_t""yes" 1>&6 | |
15194 | : | |
15195 | else | |
15196 | echo "$ac_t""no" 1>&6 | |
15197 | fi | |
90dd450c | 15198 | |
21d1c967 | 15199 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 15200 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
da494b40 | 15201 | echo "configure:15202: checking for remove in -lposix" >&5 |
a0b9e27f MB |
15202 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
15203 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15204 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15205 | else |
a0b9e27f | 15206 | ac_save_LIBS="$LIBS" |
21d1c967 | 15207 | LIBS="-lposix $LIBS" |
a0b9e27f | 15208 | cat > conftest.$ac_ext <<EOF |
da494b40 | 15209 | #line 15210 "configure" |
21d1c967 GD |
15210 | #include "confdefs.h" |
15211 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15212 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15213 | builtin and then its argument prototype would still apply. */ |
15214 | char remove(); | |
15215 | ||
15216 | int main() { | |
15217 | remove() | |
15218 | ; return 0; } | |
15219 | EOF | |
da494b40 | 15220 | if { (eval echo configure:15221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15221 | rm -rf conftest* |
15222 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15223 | else | |
15224 | echo "configure: failed program was:" >&5 | |
15225 | cat conftest.$ac_ext >&5 | |
15226 | rm -rf conftest* | |
15227 | eval "ac_cv_lib_$ac_lib_var=no" | |
15228 | fi | |
15229 | rm -f conftest* | |
15230 | LIBS="$ac_save_LIBS" | |
15231 | ||
15232 | fi | |
15233 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15234 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15235 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
15236 | else |
15237 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15238 | fi |
19bc6aad | 15239 | |
90dd450c | 15240 | fi |
19bc6aad | 15241 | |
21d1c967 | 15242 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 15243 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
da494b40 | 15244 | echo "configure:15245: checking for shmat" >&5 |
a0b9e27f MB |
15245 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
15246 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15247 | else |
a0b9e27f | 15248 | cat > conftest.$ac_ext <<EOF |
da494b40 | 15249 | #line 15250 "configure" |
21d1c967 GD |
15250 | #include "confdefs.h" |
15251 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15252 | which can conflict with char shmat(); below. */ |
21d1c967 GD |
15253 | #include <assert.h> |
15254 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15255 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15256 | builtin and then its argument prototype would still apply. */ |
15257 | char shmat(); | |
15258 | ||
15259 | int main() { | |
15260 | ||
21d1c967 GD |
15261 | /* The GNU C library defines this for functions which it implements |
15262 | to always fail with ENOSYS. Some functions are actually named | |
15263 | something starting with __ and the normal name is an alias. */ | |
15264 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
15265 | choke me | |
15266 | #else | |
a0b9e27f | 15267 | shmat(); |
21d1c967 | 15268 | #endif |
90dd450c | 15269 | |
a0b9e27f MB |
15270 | ; return 0; } |
15271 | EOF | |
da494b40 | 15272 | if { (eval echo configure:15273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15273 | rm -rf conftest* |
15274 | eval "ac_cv_func_shmat=yes" | |
15275 | else | |
15276 | echo "configure: failed program was:" >&5 | |
15277 | cat conftest.$ac_ext >&5 | |
15278 | rm -rf conftest* | |
15279 | eval "ac_cv_func_shmat=no" | |
15280 | fi | |
15281 | rm -f conftest* | |
15282 | fi | |
15283 | ||
15284 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
15285 | echo "$ac_t""yes" 1>&6 | |
15286 | : | |
15287 | else | |
15288 | echo "$ac_t""no" 1>&6 | |
15289 | fi | |
19bc6aad | 15290 | |
21d1c967 | 15291 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 15292 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
da494b40 | 15293 | echo "configure:15294: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
15294 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
15295 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15296 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 | 15297 | else |
a0b9e27f | 15298 | ac_save_LIBS="$LIBS" |
5c6fa7d2 | 15299 | LIBS="-lipc $LIBS" |
a0b9e27f | 15300 | cat > conftest.$ac_ext <<EOF |
da494b40 | 15301 | #line 15302 "configure" |
5c6fa7d2 | 15302 | #include "confdefs.h" |
5c6fa7d2 | 15303 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 15304 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
15305 | builtin and then its argument prototype would still apply. */ |
15306 | char shmat(); | |
15307 | ||
15308 | int main() { | |
15309 | shmat() | |
15310 | ; return 0; } | |
15311 | EOF | |
da494b40 | 15312 | if { (eval echo configure:15313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15313 | rm -rf conftest* |
15314 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15315 | else | |
15316 | echo "configure: failed program was:" >&5 | |
15317 | cat conftest.$ac_ext >&5 | |
15318 | rm -rf conftest* | |
15319 | eval "ac_cv_lib_$ac_lib_var=no" | |
15320 | fi | |
15321 | rm -f conftest* | |
15322 | LIBS="$ac_save_LIBS" | |
15323 | ||
15324 | fi | |
15325 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15326 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15327 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
15328 | else |
15329 | echo "$ac_t""no" 1>&6 | |
9f8148b1 | 15330 | fi |
90dd450c | 15331 | |
90dd450c | 15332 | fi |
21d1c967 | 15333 | fi |
10f2d63a | 15334 | |
21d1c967 | 15335 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 15336 | ac_save_LDFLAGS="$LDFLAGS" |
21d1c967 GD |
15337 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
15338 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
15339 | # check for ICE first), but we must link in the order -lSM -lICE or | |
15340 | # we get undefined symbols. So assume we have SM if we have ICE. | |
15341 | # These have to be linked with before -lX11, unlike the other | |
15342 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
15343 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
15344 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
da494b40 | 15345 | echo "configure:15346: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
15346 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
15347 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15348 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15349 | else | |
15350 | ac_save_LIBS="$LIBS" | |
f09359cf | 15351 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 15352 | cat > conftest.$ac_ext <<EOF |
da494b40 | 15353 | #line 15354 "configure" |
29fd3c0c | 15354 | #include "confdefs.h" |
21d1c967 GD |
15355 | /* Override any gcc2 internal prototype to avoid an error. */ |
15356 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15357 | builtin and then its argument prototype would still apply. */ |
15358 | char IceConnectionNumber(); | |
15359 | ||
15360 | int main() { | |
15361 | IceConnectionNumber() | |
15362 | ; return 0; } | |
15363 | EOF | |
da494b40 | 15364 | if { (eval echo configure:15365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15365 | rm -rf conftest* |
15366 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15367 | else | |
15368 | echo "configure: failed program was:" >&5 | |
15369 | cat conftest.$ac_ext >&5 | |
15370 | rm -rf conftest* | |
15371 | eval "ac_cv_lib_$ac_lib_var=no" | |
15372 | fi | |
15373 | rm -f conftest* | |
15374 | LIBS="$ac_save_LIBS" | |
15375 | ||
15376 | fi | |
15377 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15378 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15379 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
15380 | else |
15381 | echo "$ac_t""no" 1>&6 | |
29fd3c0c | 15382 | fi |
21d1c967 | 15383 | |
a0b9e27f | 15384 | LDFLAGS="$ac_save_LDFLAGS" |
29fd3c0c | 15385 | |
10f2d63a VZ |
15386 | fi |
15387 | ||
8284b0c5 | 15388 | |
21d1c967 | 15389 | if test "$no_x" = "yes"; then |
a0b9e27f | 15390 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
21d1c967 GD |
15391 | fi |
15392 | ||
2b5f62a0 VZ |
15393 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
15394 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
15395 | AFMINSTALL=afminstall |
15396 | COMPILED_X_PROGRAM=0 | |
15397 | ||
a0b9e27f | 15398 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
da494b40 | 15399 | echo "configure:15400: checking for Motif/Lesstif headers" >&5 |
a0b9e27f | 15400 | |
21d1c967 | 15401 | ac_find_includes= |
2b5f62a0 | 15402 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
15403 | do |
15404 | if test -f "$ac_dir/Xm/Xm.h"; then | |
15405 | ac_find_includes=$ac_dir | |
15406 | break | |
15407 | fi | |
15408 | done | |
15409 | ||
15410 | if test "$ac_find_includes" != "" ; then | |
a0b9e27f MB |
15411 | echo "$ac_t""found in $ac_find_includes" 1>&6 |
15412 | ||
2b5f62a0 | 15413 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
15414 | ac_path_to_include="" |
15415 | else | |
2b5f62a0 VZ |
15416 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
15417 | result=$? | |
15418 | if test $result = 0; then | |
15419 | ac_path_to_include="" | |
15420 | else | |
15421 | ac_path_to_include=" -I$ac_find_includes" | |
15422 | fi | |
dd0e4a90 VZ |
15423 | fi |
15424 | ||
15425 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 15426 | else |
a0b9e27f | 15427 | cat > conftest.$ac_ext <<EOF |
da494b40 | 15428 | #line 15429 "configure" |
10f2d63a | 15429 | #include "confdefs.h" |
21d1c967 GD |
15430 | |
15431 | #include <Xm/Xm.h> | |
a0b9e27f MB |
15432 | |
15433 | int main() { | |
21d1c967 GD |
15434 | |
15435 | int version; | |
15436 | version = xmUseVersion; | |
a0b9e27f MB |
15437 | |
15438 | ; return 0; } | |
15439 | EOF | |
da494b40 | 15440 | if { (eval echo configure:15441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15441 | rm -rf conftest* |
15442 | ||
15443 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 15444 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 15445 | |
10f2d63a | 15446 | else |
a0b9e27f MB |
15447 | echo "configure: failed program was:" >&5 |
15448 | cat conftest.$ac_ext >&5 | |
15449 | rm -rf conftest* | |
15450 | ||
15451 | echo "$ac_t""no" 1>&6 | |
15452 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
15453 | ||
15454 | ||
10f2d63a | 15455 | fi |
a0b9e27f | 15456 | rm -f conftest* |
21d1c967 | 15457 | fi |
10f2d63a | 15458 | |
21d1c967 | 15459 | if test "$COMPILED_X_PROGRAM" = 0; then |
a0b9e27f | 15460 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 |
da494b40 | 15461 | echo "configure:15462: checking for Motif/Lesstif library" >&5 |
a0b9e27f | 15462 | |
21d1c967 | 15463 | ac_find_libraries= |
2b5f62a0 | 15464 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15465 | do |
15466 | for ac_extension in a so sl dylib; do | |
15467 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
15468 | ac_find_libraries=$ac_dir | |
15469 | break 2 | |
15470 | fi | |
15471 | done | |
15472 | done | |
15473 | ||
15474 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15475 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15476 | |
a0b9e27f | 15477 | |
21d1c967 GD |
15478 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15479 | result=$? | |
15480 | if test $result = 0; then | |
15481 | ac_path_to_link="" | |
15482 | else | |
15483 | ac_path_to_link=" -L$ac_find_libraries" | |
15484 | fi | |
15485 | ||
21d1c967 | 15486 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 15487 | else |
dd0e4a90 VZ |
15488 | save_CFLAGS=$CFLAGS |
15489 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15490 | ||
a0b9e27f | 15491 | cat > conftest.$ac_ext <<EOF |
da494b40 | 15492 | #line 15493 "configure" |
d836ee96 | 15493 | #include "confdefs.h" |
21d1c967 GD |
15494 | |
15495 | #include <Xm/Xm.h> | |
a0b9e27f MB |
15496 | |
15497 | int main() { | |
21d1c967 GD |
15498 | |
15499 | int version; | |
15500 | version = xmUseVersion; | |
a0b9e27f MB |
15501 | |
15502 | ; return 0; } | |
15503 | EOF | |
da494b40 | 15504 | if { (eval echo configure:15505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15505 | rm -rf conftest* |
15506 | ||
15507 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 15508 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 15509 | |
d836ee96 | 15510 | else |
a0b9e27f MB |
15511 | echo "configure: failed program was:" >&5 |
15512 | cat conftest.$ac_ext >&5 | |
15513 | rm -rf conftest* | |
15514 | ||
15515 | echo "$ac_t""no" 1>&6 | |
15516 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
15517 | ||
15518 | ||
d836ee96 | 15519 | fi |
a0b9e27f | 15520 | rm -f conftest* |
dd0e4a90 VZ |
15521 | |
15522 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15523 | fi |
15524 | fi | |
15525 | ||
15526 | xpm_link= | |
a0b9e27f | 15527 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
da494b40 | 15528 | echo "configure:15529: checking for Xpm library" >&5 |
a0b9e27f | 15529 | |
21d1c967 | 15530 | ac_find_libraries= |
2b5f62a0 | 15531 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15532 | do |
15533 | for ac_extension in a so sl dylib; do | |
15534 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
15535 | ac_find_libraries=$ac_dir | |
15536 | break 2 | |
15537 | fi | |
15538 | done | |
15539 | done | |
15540 | ||
15541 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15542 | |
21d1c967 GD |
15543 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15544 | result=$? | |
15545 | if test $result = 0; then | |
15546 | ac_path_to_link="" | |
15547 | else | |
15548 | ac_path_to_link=" -L$ac_find_libraries" | |
15549 | fi | |
15550 | ||
15551 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 15552 | |
21d1c967 | 15553 | xpm_link=" -lXpm" |
a0b9e27f | 15554 | cat >> confdefs.h <<\EOF |
21d1c967 | 15555 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15556 | EOF |
90dd450c | 15557 | |
a0b9e27f | 15558 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15559 | else |
dd0e4a90 VZ |
15560 | save_CFLAGS=$CFLAGS |
15561 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15562 | ||
a0b9e27f | 15563 | cat > conftest.$ac_ext <<EOF |
da494b40 | 15564 | #line 15565 "configure" |
d836ee96 | 15565 | #include "confdefs.h" |
21d1c967 GD |
15566 | |
15567 | #include <X11/xpm.h> | |
a0b9e27f MB |
15568 | |
15569 | int main() { | |
21d1c967 GD |
15570 | |
15571 | int version; | |
15572 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
15573 | |
15574 | ; return 0; } | |
15575 | EOF | |
da494b40 | 15576 | if { (eval echo configure:15577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15577 | rm -rf conftest* |
15578 | ||
21d1c967 | 15579 | xpm_link=" -lXpm" |
a0b9e27f | 15580 | cat >> confdefs.h <<\EOF |
21d1c967 | 15581 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15582 | EOF |
21d1c967 | 15583 | |
a0b9e27f | 15584 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 15585 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 15586 | |
d836ee96 | 15587 | else |
a0b9e27f MB |
15588 | echo "configure: failed program was:" >&5 |
15589 | cat conftest.$ac_ext >&5 | |
15590 | rm -rf conftest* | |
15591 | ||
15592 | echo "$ac_t""no" 1>&6 | |
15593 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
15594 | ||
15595 | ||
d836ee96 | 15596 | fi |
a0b9e27f | 15597 | rm -f conftest* |
dd0e4a90 VZ |
15598 | |
15599 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15600 | fi |
15601 | ||
a0b9e27f | 15602 | echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6 |
da494b40 | 15603 | echo "configure:15604: checking if we need -lXp and/or -lSM -lICE" >&5 |
6a30f1c8 MB |
15604 | libp_link="" |
15605 | libsm_ice_link="" | |
15606 | libs_found=0 | |
15607 | for libp in "" " -lXp"; do | |
15608 | if test "$libs_found" = "0"; then | |
15609 | for libsm_ice in " -lSM -lICE"; do | |
e26c13cf | 15610 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
15611 | save_LIBS="$LIBS" |
15612 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
15613 | save_CFLAGS=$CFLAGS |
15614 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15615 | ||
a0b9e27f | 15616 | cat > conftest.$ac_ext <<EOF |
da494b40 | 15617 | #line 15618 "configure" |
6a30f1c8 | 15618 | #include "confdefs.h" |
17234b26 | 15619 | |
6a30f1c8 MB |
15620 | #include <Xm/Xm.h> |
15621 | #include <Xm/List.h> | |
a0b9e27f MB |
15622 | |
15623 | int main() { | |
6a30f1c8 MB |
15624 | |
15625 | XmString string = NULL; | |
15626 | Widget w = NULL; | |
15627 | int position = 0; | |
15628 | XmListAddItem(w, string, position); | |
a0b9e27f MB |
15629 | |
15630 | ; return 0; } | |
15631 | EOF | |
da494b40 | 15632 | if { (eval echo configure:15633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15633 | rm -rf conftest* |
15634 | ||
6a30f1c8 MB |
15635 | libp_link="$libp" |
15636 | libsm_ice_link="$libsm_ice" | |
a0b9e27f | 15637 | echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6 |
6a30f1c8 | 15638 | libs_found=1 |
a0b9e27f | 15639 | |
6a30f1c8 | 15640 | else |
a0b9e27f MB |
15641 | echo "configure: failed program was:" >&5 |
15642 | cat conftest.$ac_ext >&5 | |
15643 | rm -rf conftest* | |
15644 | ||
15645 | ||
6a30f1c8 | 15646 | fi |
a0b9e27f | 15647 | rm -f conftest* |
dd0e4a90 | 15648 | |
6a30f1c8 | 15649 | LIBS="$save_LIBS" |
dd0e4a90 | 15650 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
15651 | fi |
15652 | done | |
15653 | fi | |
15654 | done | |
15655 | ||
15656 | if test "$libs_found" = "0"; then | |
a0b9e27f MB |
15657 | echo "$ac_t""can't find the right libraries" 1>&6 |
15658 | { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; } | |
6a30f1c8 MB |
15659 | fi |
15660 | ||
da494b40 MB |
15661 | save_CFLAGS=$CFLAGS |
15662 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15663 | echo $ac_n "checking for Motif 2""... $ac_c" 1>&6 | |
15664 | echo "configure:15665: checking for Motif 2" >&5 | |
15665 | cat > conftest.$ac_ext <<EOF | |
15666 | #line 15667 "configure" | |
15667 | #include "confdefs.h" | |
15668 | ||
15669 | #include <Xm/Xm.h> | |
15670 | ||
15671 | int main() { | |
15672 | ||
15673 | #if XmVersion < 2000 | |
15674 | #error "Not Motif 2" | |
15675 | #endif | |
15676 | ||
15677 | ; return 0; } | |
15678 | EOF | |
15679 | if { (eval echo configure:15680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15680 | rm -rf conftest* | |
15681 | ||
15682 | cat >> confdefs.h <<\EOF | |
15683 | #define __WXMOTIF20__ 1 | |
15684 | EOF | |
15685 | ||
15686 | echo "$ac_t""found" 1>&6 | |
15687 | ||
15688 | else | |
15689 | echo "configure: failed program was:" >&5 | |
15690 | cat conftest.$ac_ext >&5 | |
15691 | rm -rf conftest* | |
15692 | ||
15693 | cat >> confdefs.h <<\EOF | |
15694 | #define __WXMOTIF20__ 0 | |
15695 | EOF | |
15696 | ||
15697 | echo "$ac_t""not found" 1>&6 | |
15698 | ||
15699 | fi | |
15700 | rm -f conftest* | |
15701 | CFLAGS=$save_CFLAGS | |
15702 | ||
6a30f1c8 | 15703 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
69c44812 | 15704 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" |
21d1c967 GD |
15705 | TOOLKIT=MOTIF |
15706 | GUIDIST=MOTIF_DIST | |
15707 | fi | |
15708 | ||
15709 | if test "$wxUSE_MAC" = 1; then | |
0c98a14e | 15710 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" |
21d1c967 | 15711 | |
0c98a14e | 15712 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
15713 | TOOLKIT=MAC |
15714 | GUIDIST=MACX_DIST | |
15715 | fi | |
15716 | ||
15717 | if test "$wxUSE_PM" = 1; then | |
15718 | TOOLKIT=PM | |
15719 | GUIDIST=GTK_DIST | |
2b5f62a0 | 15720 | echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2 |
f657dbe7 MB |
15721 | wxUSE_PROLOGIO="yes" |
15722 | wxUSE_RESOURCES="yes" | |
2b5f62a0 | 15723 | echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2 |
f657dbe7 | 15724 | wxUSE_THREADS="no" |
21d1c967 GD |
15725 | fi |
15726 | ||
15727 | if test "$TOOLKIT" = "PM" ; then | |
15728 | TOOLKIT_DIR="os2" | |
15729 | else | |
15730 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
15731 | fi | |
15732 | ||
15733 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
15734 | ||
15735 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
15736 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
15737 | ||
15738 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
15739 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
15740 | ||
15741 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
15742 | if test "$wxUSE_X11" = 1; then | |
15743 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
15744 | else | |
15745 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
15746 | fi | |
15747 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
15748 | WIDGET_SET=univ | |
15749 | else | |
15750 | ALL_OBJECTS="\$(GUIOBJS)" | |
15751 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15752 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15753 | fi | |
15754 | ||
15755 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
15756 | ||
15757 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
15758 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
15759 | fi | |
15760 | ||
15761 | if test "$wxUSE_HTML" = "yes"; then | |
15762 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
15763 | fi | |
15764 | ||
15765 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
15766 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
15767 | fi | |
15768 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
15769 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
15770 | fi | |
15771 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
15772 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
15773 | fi | |
15774 | ||
15775 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
15776 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 15777 | else |
21d1c967 GD |
15778 | USE_GUI=0 |
15779 | ||
15780 | TOOLKIT_DIR="base" | |
15781 | ||
15782 | if test "$USE_WIN32" = 1 ; then | |
15783 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
15784 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
15785 | ||
15786 | TOOLKIT="MSW" | |
15787 | else | |
15788 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
15789 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
15790 | fi | |
15791 | ||
15792 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15793 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15794 | ||
15795 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
15796 | ||
15797 | GUIDIST="BASE_DIST" | |
15798 | DISTDIR="wxBase" | |
d836ee96 VZ |
15799 | fi |
15800 | ||
8284b0c5 | 15801 | |
21d1c967 GD |
15802 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
15803 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
6232543b | 15804 | fi |
21d1c967 GD |
15805 | |
15806 | if test "$wxUSE_REGEX" = "builtin" ; then | |
15807 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 15808 | fi |
21d1c967 GD |
15809 | if test "$wxUSE_ZLIB" = "builtin" ; then |
15810 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
15811 | fi |
15812 | ||
8284b0c5 | 15813 | |
21d1c967 GD |
15814 | if test "$wxUSE_OPENGL" = "yes"; then |
15815 | if test "$wxUSE_MAC" = 1; then | |
15816 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
15817 | elif test "$wxUSE_MSW" = 1; then | |
15818 | OPENGL_LIBS="-lopengl32 -lglu32" | |
15819 | else | |
a0b9e27f MB |
15820 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
15821 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
da494b40 | 15822 | echo "configure:15823: checking for GL/gl.h" >&5 |
a0b9e27f MB |
15823 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15824 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15825 | else | |
15826 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 15827 | #line 15828 "configure" |
10f2d63a | 15828 | #include "confdefs.h" |
21d1c967 | 15829 | #include <GL/gl.h> |
a0b9e27f MB |
15830 | EOF |
15831 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 15832 | { (eval echo configure:15833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
15833 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15834 | if test -z "$ac_err"; then | |
15835 | rm -rf conftest* | |
15836 | eval "ac_cv_header_$ac_safe=yes" | |
15837 | else | |
15838 | echo "$ac_err" >&5 | |
15839 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 15840 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
15841 | rm -rf conftest* |
15842 | eval "ac_cv_header_$ac_safe=no" | |
703e0a69 | 15843 | fi |
a0b9e27f | 15844 | rm -f conftest* |
698dcdb6 | 15845 | fi |
a0b9e27f MB |
15846 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15847 | echo "$ac_t""yes" 1>&6 | |
15848 | ||
15849 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
da494b40 | 15850 | echo "configure:15851: checking for -lGL" >&5 |
a0b9e27f | 15851 | |
21d1c967 | 15852 | ac_find_libraries= |
2b5f62a0 | 15853 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15854 | do |
15855 | for ac_extension in a so sl dylib; do | |
15856 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
15857 | ac_find_libraries=$ac_dir | |
15858 | break 2 | |
15859 | fi | |
15860 | done | |
15861 | done | |
15862 | ||
15863 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15864 | |
21d1c967 GD |
15865 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15866 | result=$? | |
15867 | if test $result = 0; then | |
15868 | ac_path_to_link="" | |
15869 | else | |
15870 | ac_path_to_link=" -L$ac_find_libraries" | |
15871 | fi | |
15872 | ||
15873 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
15874 | LDFLAGS_GL="$LDFLAGS" | |
15875 | else | |
15876 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15877 | fi | |
15878 | OPENGL_LIBS="-lGL -lGLU" | |
a0b9e27f | 15879 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 15880 | else |
a0b9e27f MB |
15881 | echo "$ac_t""no" 1>&6 |
15882 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
da494b40 | 15883 | echo "configure:15884: checking for -lMesaGL" >&5 |
a0b9e27f | 15884 | |
21d1c967 | 15885 | ac_find_libraries= |
2b5f62a0 | 15886 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15887 | do |
15888 | for ac_extension in a so sl dylib; do | |
15889 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
15890 | ac_find_libraries=$ac_dir | |
15891 | break 2 | |
15892 | fi | |
15893 | done | |
15894 | done | |
15895 | ||
15896 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15897 | |
21d1c967 GD |
15898 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15899 | result=$? | |
15900 | if test $result = 0; then | |
15901 | ac_path_to_link="" | |
15902 | else | |
15903 | ac_path_to_link=" -L$ac_find_libraries" | |
15904 | fi | |
15905 | ||
15906 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15907 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
a0b9e27f | 15908 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 15909 | else |
a0b9e27f | 15910 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
15911 | fi |
15912 | fi | |
a0b9e27f MB |
15913 | |
15914 | else | |
15915 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 15916 | fi |
52127426 | 15917 | |
8284b0c5 | 15918 | |
21d1c967 | 15919 | if test "x$OPENGL_LIBS" = "x"; then |
a0b9e27f | 15920 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } |
21d1c967 GD |
15921 | fi |
15922 | fi | |
90dd450c | 15923 | |
21d1c967 | 15924 | if test "$wxUSE_OPENGL" = "yes"; then |
a0b9e27f | 15925 | cat >> confdefs.h <<\EOF |
21d1c967 | 15926 | #define wxUSE_OPENGL 1 |
a0b9e27f | 15927 | EOF |
21d1c967 | 15928 | |
a0b9e27f | 15929 | cat >> confdefs.h <<\EOF |
21d1c967 | 15930 | #define wxUSE_GLCANVAS 1 |
a0b9e27f | 15931 | EOF |
21d1c967 GD |
15932 | |
15933 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
15934 | fi | |
10f2d63a | 15935 | fi |
21d1c967 GD |
15936 | |
15937 | if test -z "$TOOLKIT_VPATH" ; then | |
15938 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 15939 | fi |
21d1c967 GD |
15940 | |
15941 | if test -n "$TOOLKIT" ; then | |
15942 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
15943 | fi | |
15944 | ||
15945 | lib_unicode_suffix= | |
15946 | if test "$wxUSE_UNICODE" = "yes"; then | |
15947 | lib_unicode_suffix=u | |
90dd450c | 15948 | fi |
698dcdb6 | 15949 | |
21d1c967 GD |
15950 | lib_debug_suffix= |
15951 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
15952 | lib_debug_suffix=d | |
15953 | fi | |
698dcdb6 | 15954 | |
2b5f62a0 VZ |
15955 | WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
15956 | ||
15957 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
15958 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
15959 | |
15960 | if test "$cross_compiling" = "yes"; then | |
15961 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
15962 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
15963 | fi | |
15964 | ||
15965 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
15966 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
2b5f62a0 | 15967 | WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" |
21d1c967 GD |
15968 | |
15969 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
15970 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
15971 | ||
15972 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
15973 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15974 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
15975 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15976 | ||
15977 | case "${host}" in | |
15978 | *-*-cygwin* | *-*-mingw32* ) | |
15979 | ||
a0b9e27f MB |
15980 | |
15981 | ||
17234b26 | 15982 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
15983 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
15984 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
15985 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
15986 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15987 | else | |
15988 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15989 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15990 | fi | |
15991 | ;; | |
15992 | ||
15993 | *-*-darwin* ) | |
0c98a14e | 15994 | |
05159a27 GD |
15995 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
15996 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
15997 | ||
15998 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
15999 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
16000 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
16001 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16002 | ||
21d1c967 | 16003 | if test "$wxUSE_MAC" = 1; then |
f346733b GD |
16004 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" |
16005 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
21d1c967 GD |
16006 | fi |
16007 | ;; | |
16008 | esac | |
16009 | ||
16010 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
16011 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
16012 | ||
16013 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
16014 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
16015 | ||
16016 | if test "$wxUSE_OPENGL" = "yes"; then | |
16017 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
16018 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
16019 | fi | |
16020 | ||
8284b0c5 MB |
16021 | |
16022 | ||
21d1c967 GD |
16023 | if test "$wxUSE_SHARED" = "yes"; then |
16024 | case "${host}" in | |
16025 | *-pc-os2_emx | *-pc-os2-emx | \ | |
16026 | *-pc-msdosdjgpp ) | |
16027 | wxUSE_SHARED=no | |
a0b9e27f | 16028 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 |
21d1c967 GD |
16029 | ;; |
16030 | esac | |
16031 | fi | |
16032 | ||
2b5f62a0 VZ |
16033 | if test "$wxUSE_SHARED" = "yes"; then |
16034 | ||
16035 | if test "$wxUSE_OPENGL" = "yes"; then | |
16036 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
16037 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
16038 | else | |
16039 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
16040 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
16041 | fi | |
16042 | ||
16043 | if test "$GCC" = "yes"; then | |
16044 | PIC_FLAG="-fPIC" | |
16045 | fi | |
16046 | ||
16047 | ||
16048 | ||
16049 | found_versioning=no | |
16050 | ||
b4eecb7e | 16051 | |
2b5f62a0 VZ |
16052 | if test $found_versioning = no ; then |
16053 | echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6 | |
da494b40 | 16054 | echo "configure:16055: checking if the linker accepts --version-script" >&5 |
2b5f62a0 VZ |
16055 | if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then |
16056 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16057 | else | |
16058 | ||
16059 | echo "VER_1 { *; };" >conftest.sym | |
16060 | echo "int main() { return 0; }" >conftest.cpp | |
16061 | ||
16062 | if { ac_try=' | |
16063 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
da494b40 | 16064 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then |
2b5f62a0 VZ |
16065 | if test -s conftest.stderr ; then |
16066 | wx_cv_version_script=no | |
16067 | else | |
16068 | wx_cv_version_script=yes | |
16069 | fi | |
16070 | else | |
16071 | wx_cv_version_script=no | |
16072 | fi | |
16073 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
16074 | ||
16075 | fi | |
16076 | ||
16077 | echo "$ac_t""$wx_cv_version_script" 1>&6 | |
16078 | if test $wx_cv_version_script = yes ; then | |
16079 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script" | |
16080 | fi | |
16081 | fi | |
21d1c967 | 16082 | |
21d1c967 GD |
16083 | |
16084 | SHARED_LD="${CXX} -shared -o" | |
16085 | ||
16086 | case "${host}" in | |
16087 | *-hp-hpux* ) | |
ad2622f1 | 16088 | if test "$GCC" = "yes"; then |
85d5e282 | 16089 | SHARED_LD="${CXX} -shared ${PIC_FLAG} -o" |
21d1c967 GD |
16090 | else |
16091 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
16092 | ||
16093 | SHARED_LD="${CXX} -b -o" | |
16094 | PIC_FLAG="+Z" | |
16095 | fi | |
16096 | ||
16097 | if test "$wxUSE_OPENGL" = "yes"; then | |
16098 | WX_ALL_INSTALLED="preinstall_gl" | |
16099 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
16100 | else | |
16101 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
16102 | fi | |
16103 | ;; | |
16104 | ||
16105 | *-*-linux* ) | |
16106 | if test "$GCC" != "yes"; then | |
a0b9e27f | 16107 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 |
da494b40 | 16108 | echo "configure:16109: checking for Intel compiler" >&5 |
a0b9e27f MB |
16109 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
16110 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16111 | else | |
16112 | ||
16113 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 16114 | #line 16115 "configure" |
698dcdb6 | 16115 | #include "confdefs.h" |
90dd450c | 16116 | |
a0b9e27f | 16117 | int main() { |
90dd450c | 16118 | |
21d1c967 GD |
16119 | #ifndef __INTEL_COMPILER |
16120 | #error Not icc | |
16121 | #endif | |
a0b9e27f MB |
16122 | |
16123 | ; return 0; } | |
16124 | EOF | |
da494b40 | 16125 | if { (eval echo configure:16126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16126 | rm -rf conftest* |
21d1c967 | 16127 | wx_cv_prog_icc=yes |
6232543b | 16128 | else |
a0b9e27f MB |
16129 | echo "configure: failed program was:" >&5 |
16130 | cat conftest.$ac_ext >&5 | |
16131 | rm -rf conftest* | |
16132 | wx_cv_prog_icc=no | |
16133 | ||
5c6fa7d2 | 16134 | fi |
a0b9e27f MB |
16135 | rm -f conftest* |
16136 | ||
247f5006 | 16137 | fi |
a0b9e27f MB |
16138 | |
16139 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
21d1c967 GD |
16140 | if test "$wx_cv_prog_icc" = "yes"; then |
16141 | PIC_FLAG="-KPIC" | |
16142 | fi | |
16143 | fi | |
16144 | ||
16145 | if test "$wxUSE_SONAME" = "yes" ; then | |
16146 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
16147 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
16148 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
16149 | fi | |
16150 | ;; | |
16151 | ||
16152 | *-*-solaris2* ) | |
16153 | if test "$GCC" = yes ; then | |
16154 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
16155 | else | |
16156 | SHARED_LD="${CXX} -G -o" | |
16157 | PIC_FLAG="-KPIC" | |
16158 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
16159 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
16160 | fi | |
16161 | ;; | |
16162 | ||
16163 | *-*-darwin* ) | |
b2fee376 GD |
16164 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL" |
16165 | CFLAGS="$CFLAGS -fno-common" | |
16166 | CXXFLAGS="$CXXFLAGS -fno-common" | |
21d1c967 GD |
16167 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" |
16168 | PIC_FLAG="-dynamic -fPIC" | |
f346733b | 16169 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}" |
05159a27 | 16170 | SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}" |
21d1c967 GD |
16171 | ;; |
16172 | ||
16173 | *-*-aix* ) | |
2b5f62a0 VZ |
16174 | if test "$GCC" != "yes"; then |
16175 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
321d2b14 | 16176 | set dummy makeC++SharedLib; ac_word=$2 |
a0b9e27f | 16177 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
da494b40 | 16178 | echo "configure:16179: checking for $ac_word" >&5 |
a0b9e27f MB |
16179 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then |
16180 | echo $ac_n "(cached) $ac_c" 1>&6 | |
321d2b14 VZ |
16181 | else |
16182 | if test -n "$AIX_CXX_LD"; then | |
16183 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
16184 | else | |
a0b9e27f MB |
16185 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16186 | ac_dummy="$PATH" | |
16187 | for ac_dir in $ac_dummy; do | |
16188 | test -z "$ac_dir" && ac_dir=. | |
16189 | if test -f $ac_dir/$ac_word; then | |
16190 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
16191 | break | |
16192 | fi | |
16193 | done | |
16194 | IFS="$ac_save_ifs" | |
321d2b14 VZ |
16195 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
16196 | fi | |
16197 | fi | |
a0b9e27f | 16198 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" |
321d2b14 | 16199 | if test -n "$AIX_CXX_LD"; then |
a0b9e27f | 16200 | echo "$ac_t""$AIX_CXX_LD" 1>&6 |
321d2b14 | 16201 | else |
a0b9e27f | 16202 | echo "$ac_t""no" 1>&6 |
321d2b14 VZ |
16203 | fi |
16204 | ||
8284b0c5 | 16205 | |
2b5f62a0 VZ |
16206 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" |
16207 | fi | |
21d1c967 GD |
16208 | ;; |
16209 | ||
16210 | *-*-cygwin* | *-*-mingw32* ) | |
21d1c967 GD |
16211 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
16212 | ||
16213 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
16214 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
16215 | ||
16216 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
16217 | ||
f657dbe7 MB |
16218 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
16219 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
16220 | ||
16221 | if test "$wxUSE_OPENGL" = "yes"; then | |
16222 | LIBS="${LIBS} ${OPENGL_LIBS}" | |
21d1c967 GD |
16223 | fi |
16224 | ;; | |
16225 | ||
16226 | *-*-beos* ) | |
16227 | SHARED_LD="${LD} -shared -o" | |
16228 | ;; | |
16229 | ||
2b5f62a0 VZ |
16230 | *-*-irix* ) |
16231 | if test "$GCC" != "yes"; then | |
16232 | PIC_FLAG="-KPIC" | |
16233 | fi | |
16234 | ;; | |
16235 | ||
21d1c967 GD |
16236 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
16237 | *-*-sunos4* | \ | |
21d1c967 GD |
16238 | *-*-osf* | \ |
16239 | *-*-dgux5* | \ | |
16240 | *-*-sysv5* ) | |
16241 | ;; | |
16242 | ||
16243 | *) | |
a0b9e27f | 16244 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
21d1c967 GD |
16245 | esac |
16246 | ||
16247 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
16248 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
16249 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
16250 | fi | |
16251 | ||
16252 | WX_TARGET_LIBRARY_TYPE="so" | |
16253 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 16254 | fi |
10f2d63a | 16255 | |
21d1c967 GD |
16256 | if test "$wxUSE_SHARED" = "no"; then |
16257 | ||
16258 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
16259 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
16260 | fi | |
16261 | ||
16262 | if test "$wxUSE_MAC" = 1; then | |
16263 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
16264 | fi | |
16265 | ||
16266 | if test "$wxUSE_OPENGL" = "yes"; then | |
16267 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
16268 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
16269 | else | |
16270 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
16271 | fi | |
16272 | ||
16273 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
16274 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
16275 | ||
16276 | WX_TARGET_LIBRARY_TYPE="a" | |
16277 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
16278 | |
16279 | STATIC_FLAG="yes" | |
16280 | else | |
16281 | STATIC_FLAG="no" | |
90dd450c | 16282 | fi |
1e487827 | 16283 | |
93fac604 VZ |
16284 | MACRESCOMP="@#" |
16285 | MACSETFILE="@#" | |
36825681 | 16286 | MACRESWXCONFIG="#" |
21d1c967 GD |
16287 | if test "$wxUSE_MAC" = 1; then |
16288 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
16289 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
16290 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
16291 | # Extract the first word of "Rez", so it can be a program name with args. | |
16292 | set dummy Rez; ac_word=$2 | |
a0b9e27f | 16293 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
da494b40 | 16294 | echo "configure:16295: checking for $ac_word" >&5 |
a0b9e27f MB |
16295 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
16296 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b93d0d08 | 16297 | else |
21d1c967 GD |
16298 | if test -n "$RESCOMP"; then |
16299 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 16300 | else |
a0b9e27f MB |
16301 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16302 | ac_dummy="$PATH" | |
16303 | for ac_dir in $ac_dummy; do | |
16304 | test -z "$ac_dir" && ac_dir=. | |
16305 | if test -f $ac_dir/$ac_word; then | |
16306 | ac_cv_prog_RESCOMP="Rez" | |
16307 | break | |
16308 | fi | |
16309 | done | |
16310 | IFS="$ac_save_ifs" | |
21d1c967 | 16311 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 16312 | fi |
b93d0d08 | 16313 | fi |
a0b9e27f | 16314 | RESCOMP="$ac_cv_prog_RESCOMP" |
21d1c967 | 16315 | if test -n "$RESCOMP"; then |
a0b9e27f | 16316 | echo "$ac_t""$RESCOMP" 1>&6 |
90dd450c | 16317 | else |
a0b9e27f | 16318 | echo "$ac_t""no" 1>&6 |
90dd450c | 16319 | fi |
b93d0d08 | 16320 | |
21d1c967 GD |
16321 | # Extract the first word of "DeRez", so it can be a program name with args. |
16322 | set dummy DeRez; ac_word=$2 | |
a0b9e27f | 16323 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
da494b40 | 16324 | echo "configure:16325: checking for $ac_word" >&5 |
a0b9e27f MB |
16325 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
16326 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3a922bb4 | 16327 | else |
21d1c967 GD |
16328 | if test -n "$DEREZ"; then |
16329 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 16330 | else |
a0b9e27f MB |
16331 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16332 | ac_dummy="$PATH" | |
16333 | for ac_dir in $ac_dummy; do | |
16334 | test -z "$ac_dir" && ac_dir=. | |
16335 | if test -f $ac_dir/$ac_word; then | |
16336 | ac_cv_prog_DEREZ="DeRez" | |
16337 | break | |
16338 | fi | |
16339 | done | |
16340 | IFS="$ac_save_ifs" | |
21d1c967 | 16341 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 16342 | fi |
90dd450c | 16343 | fi |
a0b9e27f | 16344 | DEREZ="$ac_cv_prog_DEREZ" |
21d1c967 | 16345 | if test -n "$DEREZ"; then |
a0b9e27f | 16346 | echo "$ac_t""$DEREZ" 1>&6 |
90dd450c | 16347 | else |
a0b9e27f | 16348 | echo "$ac_t""no" 1>&6 |
3a922bb4 | 16349 | fi |
698dcdb6 | 16350 | |
36825681 GD |
16351 | # Extract the first word of "SetFile", so it can be a program name with args. |
16352 | set dummy SetFile; ac_word=$2 | |
16353 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
da494b40 | 16354 | echo "configure:16355: checking for $ac_word" >&5 |
36825681 GD |
16355 | if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then |
16356 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16357 | else | |
16358 | if test -n "$SETFILE"; then | |
16359 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
16360 | else | |
16361 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
16362 | ac_dummy="$PATH" | |
16363 | for ac_dir in $ac_dummy; do | |
16364 | test -z "$ac_dir" && ac_dir=. | |
16365 | if test -f $ac_dir/$ac_word; then | |
16366 | ac_cv_prog_SETFILE="SetFile" | |
16367 | break | |
16368 | fi | |
16369 | done | |
16370 | IFS="$ac_save_ifs" | |
16371 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
16372 | fi | |
16373 | fi | |
16374 | SETFILE="$ac_cv_prog_SETFILE" | |
16375 | if test -n "$SETFILE"; then | |
16376 | echo "$ac_t""$SETFILE" 1>&6 | |
16377 | else | |
16378 | echo "$ac_t""no" 1>&6 | |
16379 | fi | |
16380 | ||
21d1c967 | 16381 | MACOSX_BUNDLE="bundle" |
36825681 GD |
16382 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" |
16383 | MACSETFILE="\$(SETFILE)" | |
16384 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o" | |
21d1c967 GD |
16385 | else |
16386 | if test "$wxUSE_PM" = 1; then | |
36825681 | 16387 | MACRESCOMP="emxbind -ep" |
90dd450c | 16388 | fi |
4f14bcd8 | 16389 | fi |
10f2d63a | 16390 | |
8284b0c5 | 16391 | |
a0b9e27f | 16392 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
da494b40 | 16393 | echo "configure:16394: checking for ANSI C header files" >&5 |
a0b9e27f MB |
16394 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
16395 | echo $ac_n "(cached) $ac_c" 1>&6 | |
52127426 | 16396 | else |
a0b9e27f | 16397 | cat > conftest.$ac_ext <<EOF |
da494b40 | 16398 | #line 16399 "configure" |
52127426 | 16399 | #include "confdefs.h" |
a0b9e27f MB |
16400 | #include <stdlib.h> |
16401 | #include <stdarg.h> | |
16402 | #include <string.h> | |
16403 | #include <float.h> | |
16404 | EOF | |
16405 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 16406 | { (eval echo configure:16407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
16407 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16408 | if test -z "$ac_err"; then | |
16409 | rm -rf conftest* | |
16410 | ac_cv_header_stdc=yes | |
16411 | else | |
16412 | echo "$ac_err" >&5 | |
16413 | echo "configure: failed program was:" >&5 | |
16414 | cat conftest.$ac_ext >&5 | |
16415 | rm -rf conftest* | |
16416 | ac_cv_header_stdc=no | |
16417 | fi | |
16418 | rm -f conftest* | |
16419 | ||
16420 | if test $ac_cv_header_stdc = yes; then | |
16421 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
16422 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 16423 | #line 16424 "configure" |
a0b9e27f MB |
16424 | #include "confdefs.h" |
16425 | #include <string.h> | |
16426 | EOF | |
16427 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16428 | egrep "memchr" >/dev/null 2>&1; then | |
16429 | : | |
16430 | else | |
16431 | rm -rf conftest* | |
16432 | ac_cv_header_stdc=no | |
16433 | fi | |
16434 | rm -f conftest* | |
16435 | ||
16436 | fi | |
16437 | ||
16438 | if test $ac_cv_header_stdc = yes; then | |
16439 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
16440 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 16441 | #line 16442 "configure" |
a0b9e27f MB |
16442 | #include "confdefs.h" |
16443 | #include <stdlib.h> | |
16444 | EOF | |
16445 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16446 | egrep "free" >/dev/null 2>&1; then | |
16447 | : | |
7b4a847f | 16448 | else |
a0b9e27f MB |
16449 | rm -rf conftest* |
16450 | ac_cv_header_stdc=no | |
52127426 | 16451 | fi |
a0b9e27f MB |
16452 | rm -f conftest* |
16453 | ||
52127426 | 16454 | fi |
a0b9e27f MB |
16455 | |
16456 | if test $ac_cv_header_stdc = yes; then | |
16457 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
16458 | if test "$cross_compiling" = yes; then | |
247f5006 VZ |
16459 | : |
16460 | else | |
a0b9e27f | 16461 | cat > conftest.$ac_ext <<EOF |
da494b40 | 16462 | #line 16463 "configure" |
a0b9e27f MB |
16463 | #include "confdefs.h" |
16464 | #include <ctype.h> | |
16465 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
16466 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
16467 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
16468 | int main () { int i; for (i = 0; i < 256; i++) | |
16469 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
16470 | exit (0); } | |
247f5006 | 16471 | |
a0b9e27f | 16472 | EOF |
da494b40 | 16473 | if { (eval echo configure:16474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
16474 | then |
16475 | : | |
16476 | else | |
16477 | echo "configure: failed program was:" >&5 | |
16478 | cat conftest.$ac_ext >&5 | |
16479 | rm -fr conftest* | |
16480 | ac_cv_header_stdc=no | |
16481 | fi | |
16482 | rm -fr conftest* | |
16483 | fi | |
16484 | ||
16485 | fi | |
16486 | fi | |
16487 | ||
16488 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
16489 | if test $ac_cv_header_stdc = yes; then | |
16490 | cat >> confdefs.h <<\EOF | |
16491 | #define STDC_HEADERS 1 | |
16492 | EOF | |
8284b0c5 MB |
16493 | |
16494 | fi | |
16495 | ||
a0b9e27f | 16496 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
da494b40 | 16497 | echo "configure:16498: checking for mode_t" >&5 |
a0b9e27f MB |
16498 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
16499 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16500 | else |
a0b9e27f | 16501 | cat > conftest.$ac_ext <<EOF |
da494b40 | 16502 | #line 16503 "configure" |
8284b0c5 | 16503 | #include "confdefs.h" |
a0b9e27f MB |
16504 | #include <sys/types.h> |
16505 | #if STDC_HEADERS | |
16506 | #include <stdlib.h> | |
16507 | #include <stddef.h> | |
8284b0c5 | 16508 | #endif |
a0b9e27f MB |
16509 | EOF |
16510 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16511 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16512 | rm -rf conftest* | |
16513 | ac_cv_type_mode_t=yes | |
5c6fa7d2 | 16514 | else |
a0b9e27f MB |
16515 | rm -rf conftest* |
16516 | ac_cv_type_mode_t=no | |
16517 | fi | |
16518 | rm -f conftest* | |
16519 | ||
8284b0c5 | 16520 | fi |
a0b9e27f MB |
16521 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
16522 | if test $ac_cv_type_mode_t = no; then | |
16523 | cat >> confdefs.h <<\EOF | |
16524 | #define mode_t int | |
16525 | EOF | |
16526 | ||
8284b0c5 | 16527 | fi |
a0b9e27f MB |
16528 | |
16529 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
da494b40 | 16530 | echo "configure:16531: checking for off_t" >&5 |
a0b9e27f MB |
16531 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
16532 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16533 | else | |
16534 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 16535 | #line 16536 "configure" |
a0b9e27f MB |
16536 | #include "confdefs.h" |
16537 | #include <sys/types.h> | |
16538 | #if STDC_HEADERS | |
16539 | #include <stdlib.h> | |
16540 | #include <stddef.h> | |
16541 | #endif | |
16542 | EOF | |
16543 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16544 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16545 | rm -rf conftest* | |
16546 | ac_cv_type_off_t=yes | |
247f5006 | 16547 | else |
a0b9e27f MB |
16548 | rm -rf conftest* |
16549 | ac_cv_type_off_t=no | |
16550 | fi | |
16551 | rm -f conftest* | |
247f5006 | 16552 | |
a0b9e27f MB |
16553 | fi |
16554 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
16555 | if test $ac_cv_type_off_t = no; then | |
16556 | cat >> confdefs.h <<\EOF | |
90dd450c | 16557 | #define off_t long |
a0b9e27f | 16558 | EOF |
10f2d63a | 16559 | |
90dd450c | 16560 | fi |
10f2d63a | 16561 | |
a0b9e27f | 16562 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
da494b40 | 16563 | echo "configure:16564: checking for pid_t" >&5 |
a0b9e27f MB |
16564 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
16565 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 16566 | else |
a0b9e27f | 16567 | cat > conftest.$ac_ext <<EOF |
da494b40 | 16568 | #line 16569 "configure" |
10f2d63a | 16569 | #include "confdefs.h" |
a0b9e27f MB |
16570 | #include <sys/types.h> |
16571 | #if STDC_HEADERS | |
16572 | #include <stdlib.h> | |
16573 | #include <stddef.h> | |
8284b0c5 | 16574 | #endif |
a0b9e27f MB |
16575 | EOF |
16576 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16577 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16578 | rm -rf conftest* | |
90dd450c | 16579 | ac_cv_type_pid_t=yes |
698dcdb6 | 16580 | else |
a0b9e27f MB |
16581 | rm -rf conftest* |
16582 | ac_cv_type_pid_t=no | |
8284b0c5 | 16583 | fi |
a0b9e27f | 16584 | rm -f conftest* |
247f5006 | 16585 | |
a0b9e27f MB |
16586 | fi |
16587 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
16588 | if test $ac_cv_type_pid_t = no; then | |
16589 | cat >> confdefs.h <<\EOF | |
90dd450c | 16590 | #define pid_t int |
a0b9e27f | 16591 | EOF |
10f2d63a | 16592 | |
7b4a847f RR |
16593 | fi |
16594 | ||
a0b9e27f | 16595 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
da494b40 | 16596 | echo "configure:16597: checking for size_t" >&5 |
a0b9e27f MB |
16597 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
16598 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 16599 | else |
a0b9e27f | 16600 | cat > conftest.$ac_ext <<EOF |
da494b40 | 16601 | #line 16602 "configure" |
7b4a847f | 16602 | #include "confdefs.h" |
a0b9e27f MB |
16603 | #include <sys/types.h> |
16604 | #if STDC_HEADERS | |
16605 | #include <stdlib.h> | |
16606 | #include <stddef.h> | |
8284b0c5 | 16607 | #endif |
a0b9e27f MB |
16608 | EOF |
16609 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16610 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16611 | rm -rf conftest* | |
90dd450c | 16612 | ac_cv_type_size_t=yes |
18dbb1f6 | 16613 | else |
a0b9e27f MB |
16614 | rm -rf conftest* |
16615 | ac_cv_type_size_t=no | |
52127426 | 16616 | fi |
a0b9e27f | 16617 | rm -f conftest* |
247f5006 | 16618 | |
a0b9e27f MB |
16619 | fi |
16620 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
16621 | if test $ac_cv_type_size_t = no; then | |
16622 | cat >> confdefs.h <<\EOF | |
90dd450c | 16623 | #define size_t unsigned |
a0b9e27f | 16624 | EOF |
90dd450c VZ |
16625 | |
16626 | fi | |
16627 | ||
a0b9e27f | 16628 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
da494b40 | 16629 | echo "configure:16630: checking for uid_t in sys/types.h" >&5 |
a0b9e27f MB |
16630 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
16631 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a | 16632 | else |
a0b9e27f | 16633 | cat > conftest.$ac_ext <<EOF |
da494b40 | 16634 | #line 16635 "configure" |
b3e8d00a | 16635 | #include "confdefs.h" |
90dd450c | 16636 | #include <sys/types.h> |
a0b9e27f | 16637 | EOF |
90dd450c VZ |
16638 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
16639 | egrep "uid_t" >/dev/null 2>&1; then | |
a0b9e27f | 16640 | rm -rf conftest* |
90dd450c | 16641 | ac_cv_type_uid_t=yes |
b3e8d00a | 16642 | else |
a0b9e27f | 16643 | rm -rf conftest* |
90dd450c | 16644 | ac_cv_type_uid_t=no |
b3e8d00a | 16645 | fi |
90dd450c | 16646 | rm -f conftest* |
b3e8d00a | 16647 | |
4f14bcd8 | 16648 | fi |
247f5006 | 16649 | |
a0b9e27f MB |
16650 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
16651 | if test $ac_cv_type_uid_t = no; then | |
16652 | cat >> confdefs.h <<\EOF | |
90dd450c | 16653 | #define uid_t int |
a0b9e27f | 16654 | EOF |
247f5006 | 16655 | |
a0b9e27f | 16656 | cat >> confdefs.h <<\EOF |
90dd450c | 16657 | #define gid_t int |
a0b9e27f | 16658 | EOF |
4f14bcd8 | 16659 | |
b3e8d00a | 16660 | fi |
b3e8d00a | 16661 | |
8284b0c5 MB |
16662 | |
16663 | ||
a0b9e27f MB |
16664 | ac_ext=C |
16665 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 16666 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16667 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16668 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16669 | cross_compiling=$ac_cv_prog_cxx_cross | |
90dd450c | 16670 | |
a0b9e27f | 16671 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
da494b40 | 16672 | echo "configure:16673: checking if size_t is unsigned int" >&5 |
a0b9e27f MB |
16673 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
16674 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 16675 | else |
a0b9e27f | 16676 | cat > conftest.$ac_ext <<EOF |
da494b40 | 16677 | #line 16678 "configure" |
10f2d63a | 16678 | #include "confdefs.h" |
90dd450c | 16679 | #include <stddef.h> |
a0b9e27f | 16680 | int main() { |
90dd450c VZ |
16681 | |
16682 | return 0; } | |
16683 | ||
16684 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
16685 | ||
16686 | int bar() { | |
a0b9e27f MB |
16687 | |
16688 | ; return 0; } | |
16689 | EOF | |
da494b40 | 16690 | if { (eval echo configure:16691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16691 | rm -rf conftest* |
90dd450c | 16692 | wx_cv_size_t_is_uint=no |
698dcdb6 | 16693 | else |
a0b9e27f MB |
16694 | echo "configure: failed program was:" >&5 |
16695 | cat conftest.$ac_ext >&5 | |
16696 | rm -rf conftest* | |
16697 | wx_cv_size_t_is_uint=yes | |
16698 | ||
5c6fa7d2 | 16699 | fi |
a0b9e27f | 16700 | rm -f conftest* |
8284b0c5 | 16701 | |
247f5006 | 16702 | fi |
a0b9e27f MB |
16703 | |
16704 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
4f14bcd8 | 16705 | |
90dd450c | 16706 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
a0b9e27f | 16707 | cat >> confdefs.h <<\EOF |
90dd450c | 16708 | #define wxSIZE_T_IS_UINT 1 |
a0b9e27f | 16709 | EOF |
698dcdb6 | 16710 | |
90dd450c | 16711 | else |
a0b9e27f | 16712 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 |
da494b40 | 16713 | echo "configure:16714: checking if size_t is unsigned long" >&5 |
a0b9e27f MB |
16714 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
16715 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 16716 | else |
a0b9e27f | 16717 | cat > conftest.$ac_ext <<EOF |
da494b40 | 16718 | #line 16719 "configure" |
10f2d63a | 16719 | #include "confdefs.h" |
90dd450c | 16720 | #include <stddef.h> |
a0b9e27f | 16721 | int main() { |
90dd450c VZ |
16722 | |
16723 | return 0; } | |
16724 | ||
16725 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
16726 | ||
16727 | int bar() { | |
a0b9e27f MB |
16728 | |
16729 | ; return 0; } | |
16730 | EOF | |
da494b40 | 16731 | if { (eval echo configure:16732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16732 | rm -rf conftest* |
90dd450c | 16733 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 16734 | else |
a0b9e27f MB |
16735 | echo "configure: failed program was:" >&5 |
16736 | cat conftest.$ac_ext >&5 | |
16737 | rm -rf conftest* | |
16738 | wx_cv_size_t_is_ulong=yes | |
16739 | ||
5c6fa7d2 | 16740 | fi |
a0b9e27f MB |
16741 | rm -f conftest* |
16742 | ||
247f5006 | 16743 | fi |
a0b9e27f MB |
16744 | |
16745 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
10f2d63a | 16746 | |
90dd450c | 16747 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
a0b9e27f | 16748 | cat >> confdefs.h <<\EOF |
90dd450c | 16749 | #define wxSIZE_T_IS_ULONG 1 |
a0b9e27f | 16750 | EOF |
4f14bcd8 GD |
16751 | |
16752 | fi | |
90dd450c | 16753 | fi |
1e487827 | 16754 | |
90dd450c | 16755 | ac_ext=c |
a0b9e27f | 16756 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 16757 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
16758 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16759 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16760 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 16761 | |
5c6fa7d2 | 16762 | |
8284b0c5 | 16763 | |
a0b9e27f | 16764 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
da494b40 | 16765 | echo "configure:16766: checking for pw_gecos in struct passwd" >&5 |
a0b9e27f MB |
16766 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
16767 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16768 | else |
a0b9e27f MB |
16769 | |
16770 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 16771 | #line 16772 "configure" |
4f14bcd8 | 16772 | #include "confdefs.h" |
90dd450c | 16773 | #include <pwd.h> |
a0b9e27f | 16774 | int main() { |
f6bcfd97 | 16775 | |
90dd450c VZ |
16776 | char *p; |
16777 | struct passwd *pw; | |
16778 | p = pw->pw_gecos; | |
a0b9e27f MB |
16779 | |
16780 | ; return 0; } | |
16781 | EOF | |
da494b40 | 16782 | if { (eval echo configure:16783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
16783 | rm -rf conftest* |
16784 | ||
90dd450c | 16785 | wx_cv_struct_pw_gecos=yes |
a0b9e27f | 16786 | |
10f2d63a | 16787 | else |
a0b9e27f MB |
16788 | echo "configure: failed program was:" >&5 |
16789 | cat conftest.$ac_ext >&5 | |
16790 | rm -rf conftest* | |
16791 | ||
90dd450c | 16792 | wx_cv_struct_pw_gecos=no |
a0b9e27f MB |
16793 | |
16794 | ||
5c6fa7d2 | 16795 | fi |
a0b9e27f MB |
16796 | rm -f conftest* |
16797 | ||
247f5006 VZ |
16798 | |
16799 | fi | |
a0b9e27f MB |
16800 | |
16801 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
c521c494 | 16802 | |
90dd450c | 16803 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
a0b9e27f | 16804 | cat >> confdefs.h <<\EOF |
90dd450c | 16805 | #define HAVE_PW_GECOS 1 |
a0b9e27f | 16806 | EOF |
c521c494 | 16807 | |
90dd450c | 16808 | fi |
4f14bcd8 | 16809 | |
8284b0c5 | 16810 | |
d29b553b | 16811 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
a0b9e27f | 16812 | cat >> confdefs.h <<\EOF |
d74f4b5a | 16813 | #define wxUSE_WCHAR_T 1 |
a0b9e27f | 16814 | EOF |
d74f4b5a | 16815 | |
8284b0c5 | 16816 | |
d74f4b5a VZ |
16817 | WCSLEN_FOUND=0 |
16818 | WCHAR_LINK= | |
a0b9e27f | 16819 | for ac_func in wcslen |
7a30264c | 16820 | do |
a0b9e27f | 16821 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 16822 | echo "configure:16823: checking for $ac_func" >&5 |
a0b9e27f MB |
16823 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16824 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16825 | else | |
16826 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 16827 | #line 16828 "configure" |
4f14bcd8 | 16828 | #include "confdefs.h" |
7a30264c | 16829 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 16830 | which can conflict with char $ac_func(); below. */ |
7a30264c | 16831 | #include <assert.h> |
4f14bcd8 GD |
16832 | /* Override any gcc2 internal prototype to avoid an error. */ |
16833 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16834 | builtin and then its argument prototype would still apply. */ |
16835 | char $ac_func(); | |
16836 | ||
16837 | int main() { | |
16838 | ||
7a30264c VZ |
16839 | /* The GNU C library defines this for functions which it implements |
16840 | to always fail with ENOSYS. Some functions are actually named | |
16841 | something starting with __ and the normal name is an alias. */ | |
16842 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16843 | choke me | |
16844 | #else | |
a0b9e27f | 16845 | $ac_func(); |
7a30264c VZ |
16846 | #endif |
16847 | ||
a0b9e27f MB |
16848 | ; return 0; } |
16849 | EOF | |
da494b40 | 16850 | if { (eval echo configure:16851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16851 | rm -rf conftest* |
16852 | eval "ac_cv_func_$ac_func=yes" | |
16853 | else | |
16854 | echo "configure: failed program was:" >&5 | |
16855 | cat conftest.$ac_ext >&5 | |
16856 | rm -rf conftest* | |
16857 | eval "ac_cv_func_$ac_func=no" | |
16858 | fi | |
16859 | rm -f conftest* | |
16860 | fi | |
16861 | ||
16862 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16863 | echo "$ac_t""yes" 1>&6 | |
16864 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16865 | cat >> confdefs.h <<EOF | |
16866 | #define $ac_tr_func 1 | |
16867 | EOF | |
d74f4b5a | 16868 | WCSLEN_FOUND=1 |
a0b9e27f MB |
16869 | else |
16870 | echo "$ac_t""no" 1>&6 | |
7a30264c VZ |
16871 | fi |
16872 | done | |
9d8deca0 | 16873 | |
8284b0c5 | 16874 | |
d74f4b5a | 16875 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 16876 | if test "$TOOLKIT" = "MSW"; then |
a0b9e27f | 16877 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
da494b40 | 16878 | echo "configure:16879: checking for wcslen in -lmsvcrt" >&5 |
a0b9e27f MB |
16879 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
16880 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16881 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16882 | else |
a0b9e27f | 16883 | ac_save_LIBS="$LIBS" |
7a30264c | 16884 | LIBS="-lmsvcrt $LIBS" |
a0b9e27f | 16885 | cat > conftest.$ac_ext <<EOF |
da494b40 | 16886 | #line 16887 "configure" |
10f2d63a | 16887 | #include "confdefs.h" |
4f14bcd8 GD |
16888 | /* Override any gcc2 internal prototype to avoid an error. */ |
16889 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16890 | builtin and then its argument prototype would still apply. */ |
16891 | char wcslen(); | |
16892 | ||
16893 | int main() { | |
16894 | wcslen() | |
16895 | ; return 0; } | |
16896 | EOF | |
da494b40 | 16897 | if { (eval echo configure:16898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16898 | rm -rf conftest* |
16899 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16900 | else | |
16901 | echo "configure: failed program was:" >&5 | |
16902 | cat conftest.$ac_ext >&5 | |
16903 | rm -rf conftest* | |
16904 | eval "ac_cv_lib_$ac_lib_var=no" | |
16905 | fi | |
16906 | rm -f conftest* | |
16907 | LIBS="$ac_save_LIBS" | |
16908 | ||
16909 | fi | |
16910 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16911 | echo "$ac_t""yes" 1>&6 | |
d74f4b5a | 16912 | WCHAR_OK=1 |
a0b9e27f MB |
16913 | else |
16914 | echo "$ac_t""no" 1>&6 | |
d29b553b | 16915 | fi |
698dcdb6 | 16916 | |
7a30264c | 16917 | else |
a0b9e27f | 16918 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
da494b40 | 16919 | echo "configure:16920: checking for wcslen in -lw" >&5 |
a0b9e27f MB |
16920 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
16921 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16922 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 16923 | else |
a0b9e27f | 16924 | ac_save_LIBS="$LIBS" |
7a30264c | 16925 | LIBS="-lw $LIBS" |
a0b9e27f | 16926 | cat > conftest.$ac_ext <<EOF |
da494b40 | 16927 | #line 16928 "configure" |
95c8801c | 16928 | #include "confdefs.h" |
4f14bcd8 GD |
16929 | /* Override any gcc2 internal prototype to avoid an error. */ |
16930 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16931 | builtin and then its argument prototype would still apply. */ |
16932 | char wcslen(); | |
52127426 | 16933 | |
a0b9e27f MB |
16934 | int main() { |
16935 | wcslen() | |
16936 | ; return 0; } | |
16937 | EOF | |
da494b40 | 16938 | if { (eval echo configure:16939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16939 | rm -rf conftest* |
16940 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16941 | else | |
16942 | echo "configure: failed program was:" >&5 | |
16943 | cat conftest.$ac_ext >&5 | |
16944 | rm -rf conftest* | |
16945 | eval "ac_cv_lib_$ac_lib_var=no" | |
16946 | fi | |
16947 | rm -f conftest* | |
16948 | LIBS="$ac_save_LIBS" | |
16949 | ||
16950 | fi | |
16951 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16952 | echo "$ac_t""yes" 1>&6 | |
16953 | ||
7a30264c | 16954 | WCHAR_LINK=" -lw" |
d74f4b5a | 16955 | WCSLEN_FOUND=1 |
a0b9e27f MB |
16956 | |
16957 | else | |
16958 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 16959 | fi |
10f2d63a | 16960 | |
7a30264c | 16961 | fi |
d29b553b | 16962 | fi |
95c8801c | 16963 | |
d74f4b5a | 16964 | if test "$WCSLEN_FOUND" = 1; then |
a0b9e27f | 16965 | cat >> confdefs.h <<\EOF |
d74f4b5a | 16966 | #define HAVE_WCSLEN 1 |
a0b9e27f | 16967 | EOF |
10f2d63a | 16968 | |
d74f4b5a | 16969 | fi |
52127426 | 16970 | |
a0b9e27f | 16971 | for ac_func in wcsrtombs |
eb4efbdc | 16972 | do |
a0b9e27f | 16973 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 16974 | echo "configure:16975: checking for $ac_func" >&5 |
a0b9e27f MB |
16975 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16976 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16977 | else | |
16978 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 16979 | #line 16980 "configure" |
eb4efbdc VZ |
16980 | #include "confdefs.h" |
16981 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16982 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
16983 | #include <assert.h> |
16984 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4f14bcd8 | 16985 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
16986 | builtin and then its argument prototype would still apply. */ |
16987 | char $ac_func(); | |
16988 | ||
16989 | int main() { | |
16990 | ||
10f2d63a VZ |
16991 | /* The GNU C library defines this for functions which it implements |
16992 | to always fail with ENOSYS. Some functions are actually named | |
16993 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 16994 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
16995 | choke me |
16996 | #else | |
a0b9e27f | 16997 | $ac_func(); |
10f2d63a VZ |
16998 | #endif |
16999 | ||
a0b9e27f MB |
17000 | ; return 0; } |
17001 | EOF | |
da494b40 | 17002 | if { (eval echo configure:17003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17003 | rm -rf conftest* |
17004 | eval "ac_cv_func_$ac_func=yes" | |
17005 | else | |
17006 | echo "configure: failed program was:" >&5 | |
17007 | cat conftest.$ac_ext >&5 | |
17008 | rm -rf conftest* | |
17009 | eval "ac_cv_func_$ac_func=no" | |
17010 | fi | |
17011 | rm -f conftest* | |
17012 | fi | |
270a909e | 17013 | |
a0b9e27f MB |
17014 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17015 | echo "$ac_t""yes" 1>&6 | |
17016 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17017 | cat >> confdefs.h <<EOF | |
17018 | #define $ac_tr_func 1 | |
17019 | EOF | |
17020 | ||
17021 | else | |
17022 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17023 | fi |
247f5006 | 17024 | done |
1e487827 | 17025 | |
af15babd | 17026 | else |
a0b9e27f | 17027 | echo "configure: warning: Wide character support is unavailable" 1>&2 |
7b4a847f | 17028 | fi |
52127426 | 17029 | |
8284b0c5 | 17030 | |
a0b9e27f MB |
17031 | ac_ext=C |
17032 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
247f5006 | 17033 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17034 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17035 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17036 | cross_compiling=$ac_cv_prog_cxx_cross | |
af15babd | 17037 | |
247f5006 VZ |
17038 | |
17039 | for ac_func in vsnprintf | |
17040 | do | |
a0b9e27f | 17041 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 17042 | echo "configure:17043: checking for $ac_func" >&5 |
a0b9e27f MB |
17043 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17044 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17045 | else | |
17046 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 17047 | #line 17048 "configure" |
af15babd | 17048 | #include "confdefs.h" |
247f5006 | 17049 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17050 | which can conflict with char $ac_func(); below. */ |
247f5006 VZ |
17051 | #include <assert.h> |
17052 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17053 | #ifdef __cplusplus | |
17054 | extern "C" | |
17055 | #endif | |
17056 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17057 | builtin and then its argument prototype would still apply. */ |
17058 | char $ac_func(); | |
17059 | ||
17060 | int main() { | |
17061 | ||
247f5006 VZ |
17062 | /* The GNU C library defines this for functions which it implements |
17063 | to always fail with ENOSYS. Some functions are actually named | |
17064 | something starting with __ and the normal name is an alias. */ | |
17065 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17066 | choke me | |
17067 | #else | |
a0b9e27f | 17068 | $ac_func(); |
247f5006 | 17069 | #endif |
af15babd | 17070 | |
a0b9e27f MB |
17071 | ; return 0; } |
17072 | EOF | |
da494b40 | 17073 | if { (eval echo configure:17074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17074 | rm -rf conftest* |
17075 | eval "ac_cv_func_$ac_func=yes" | |
17076 | else | |
17077 | echo "configure: failed program was:" >&5 | |
17078 | cat conftest.$ac_ext >&5 | |
17079 | rm -rf conftest* | |
17080 | eval "ac_cv_func_$ac_func=no" | |
17081 | fi | |
17082 | rm -f conftest* | |
17083 | fi | |
52127426 | 17084 | |
a0b9e27f MB |
17085 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17086 | echo "$ac_t""yes" 1>&6 | |
17087 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17088 | cat >> confdefs.h <<EOF | |
17089 | #define $ac_tr_func 1 | |
17090 | EOF | |
17091 | ||
17092 | else | |
17093 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 17094 | fi |
247f5006 | 17095 | done |
8284b0c5 | 17096 | |
4f14bcd8 | 17097 | |
8d90d2f2 VZ |
17098 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
17099 | echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6 | |
da494b40 | 17100 | echo "configure:17101: checking for vsnprintf declaration" >&5 |
8d90d2f2 VZ |
17101 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then |
17102 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17103 | else | |
17104 | ||
17105 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 17106 | #line 17107 "configure" |
8d90d2f2 VZ |
17107 | #include "confdefs.h" |
17108 | ||
17109 | #include <stdio.h> | |
17110 | #include <stdarg.h> | |
17111 | ||
17112 | int main() { | |
17113 | ||
17114 | char *buf; | |
17115 | va_list ap; | |
17116 | vsnprintf(buf, 10u, "%s", ap); | |
17117 | ||
17118 | ; return 0; } | |
17119 | EOF | |
da494b40 | 17120 | if { (eval echo configure:17121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
8d90d2f2 VZ |
17121 | rm -rf conftest* |
17122 | wx_cv_func_vsnprintf_decl=yes | |
17123 | else | |
17124 | echo "configure: failed program was:" >&5 | |
17125 | cat conftest.$ac_ext >&5 | |
17126 | rm -rf conftest* | |
17127 | wx_cv_func_vsnprintf_decl=no | |
17128 | ||
17129 | fi | |
17130 | rm -f conftest* | |
17131 | ||
17132 | ||
17133 | fi | |
17134 | ||
17135 | echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6 | |
17136 | ||
17137 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
17138 | cat >> confdefs.h <<\EOF | |
17139 | #define HAVE_VSNPRINTF_DECL 1 | |
17140 | EOF | |
17141 | ||
17142 | fi | |
17143 | fi | |
17144 | ||
247f5006 | 17145 | if test "$wxUSE_UNICODE" = yes; then |
a0b9e27f | 17146 | for ac_func in fputwc wprintf vswprintf |
d74f4b5a | 17147 | do |
a0b9e27f | 17148 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 17149 | echo "configure:17150: checking for $ac_func" >&5 |
a0b9e27f MB |
17150 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17151 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17152 | else | |
17153 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 17154 | #line 17155 "configure" |
d74f4b5a VZ |
17155 | #include "confdefs.h" |
17156 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17157 | which can conflict with char $ac_func(); below. */ |
d74f4b5a VZ |
17158 | #include <assert.h> |
17159 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
17160 | #ifdef __cplusplus |
17161 | extern "C" | |
17162 | #endif | |
d74f4b5a | 17163 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17164 | builtin and then its argument prototype would still apply. */ |
17165 | char $ac_func(); | |
17166 | ||
17167 | int main() { | |
17168 | ||
d74f4b5a VZ |
17169 | /* The GNU C library defines this for functions which it implements |
17170 | to always fail with ENOSYS. Some functions are actually named | |
17171 | something starting with __ and the normal name is an alias. */ | |
17172 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17173 | choke me | |
17174 | #else | |
a0b9e27f | 17175 | $ac_func(); |
d74f4b5a VZ |
17176 | #endif |
17177 | ||
a0b9e27f MB |
17178 | ; return 0; } |
17179 | EOF | |
da494b40 | 17180 | if { (eval echo configure:17181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17181 | rm -rf conftest* |
17182 | eval "ac_cv_func_$ac_func=yes" | |
17183 | else | |
17184 | echo "configure: failed program was:" >&5 | |
17185 | cat conftest.$ac_ext >&5 | |
17186 | rm -rf conftest* | |
17187 | eval "ac_cv_func_$ac_func=no" | |
17188 | fi | |
17189 | rm -f conftest* | |
17190 | fi | |
d74f4b5a | 17191 | |
a0b9e27f MB |
17192 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17193 | echo "$ac_t""yes" 1>&6 | |
17194 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17195 | cat >> confdefs.h <<EOF | |
17196 | #define $ac_tr_func 1 | |
17197 | EOF | |
17198 | ||
17199 | else | |
17200 | echo "$ac_t""no" 1>&6 | |
d74f4b5a VZ |
17201 | fi |
17202 | done | |
17203 | ||
8d90d2f2 | 17204 | |
79668cae | 17205 | echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6 |
da494b40 | 17206 | echo "configure:17207: checking for _vsnwprintf" >&5 |
79668cae | 17207 | cat > conftest.$ac_ext <<EOF |
da494b40 | 17208 | #line 17209 "configure" |
79668cae MB |
17209 | #include "confdefs.h" |
17210 | #include <wchar.h> | |
17211 | int main() { | |
17212 | &_vsnwprintf; | |
17213 | ; return 0; } | |
17214 | EOF | |
da494b40 | 17215 | if { (eval echo configure:17216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
79668cae MB |
17216 | rm -rf conftest* |
17217 | echo "$ac_t""yes" 1>&6 | |
17218 | cat >> confdefs.h <<\EOF | |
17219 | #define HAVE__VSNWPRINTF 1 | |
17220 | EOF | |
17221 | ||
17222 | else | |
17223 | echo "configure: failed program was:" >&5 | |
17224 | cat conftest.$ac_ext >&5 | |
17225 | rm -rf conftest* | |
17226 | echo "$ac_t""no" 1>&6 | |
17227 | fi | |
17228 | rm -f conftest*; | |
d74f4b5a VZ |
17229 | fi |
17230 | ||
247f5006 | 17231 | ac_ext=c |
a0b9e27f | 17232 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
247f5006 | 17233 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17234 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17235 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17236 | cross_compiling=$ac_cv_prog_cc_cross | |
247f5006 VZ |
17237 | |
17238 | ||
17239 | ||
17240 | ||
4f14bcd8 | 17241 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 17242 | |
8284b0c5 MB |
17243 | |
17244 | ||
a0b9e27f MB |
17245 | ac_ext=C |
17246 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 17247 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17248 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17249 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17250 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 17251 | |
52127426 | 17252 | |
a0b9e27f MB |
17253 | |
17254 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
17255 | if test "${with_libiconv_prefix+set}" = set; then |
17256 | withval="$with_libiconv_prefix" | |
a0b9e27f | 17257 | |
b040e242 VS |
17258 | for dir in `echo "$withval" | tr : ' '`; do |
17259 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
17260 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
17261 | done | |
a0b9e27f MB |
17262 | |
17263 | fi | |
b040e242 VS |
17264 | |
17265 | ||
a0b9e27f | 17266 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
da494b40 | 17267 | echo "configure:17268: checking for iconv" >&5 |
a0b9e27f MB |
17268 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
17269 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 17270 | else |
a0b9e27f | 17271 | |
b040e242 VS |
17272 | am_cv_func_iconv="no, consider installing GNU libiconv" |
17273 | am_cv_lib_iconv=no | |
a0b9e27f | 17274 | cat > conftest.$ac_ext <<EOF |
da494b40 | 17275 | #line 17276 "configure" |
af15babd | 17276 | #include "confdefs.h" |
b040e242 | 17277 | #include <stdlib.h> |
4f14bcd8 | 17278 | #include <iconv.h> |
a0b9e27f | 17279 | int main() { |
b040e242 VS |
17280 | iconv_t cd = iconv_open("",""); |
17281 | iconv(cd,NULL,NULL,NULL,NULL); | |
17282 | iconv_close(cd); | |
a0b9e27f MB |
17283 | ; return 0; } |
17284 | EOF | |
da494b40 | 17285 | if { (eval echo configure:17286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17286 | rm -rf conftest* |
b040e242 | 17287 | am_cv_func_iconv=yes |
af15babd | 17288 | else |
a0b9e27f MB |
17289 | echo "configure: failed program was:" >&5 |
17290 | cat conftest.$ac_ext >&5 | |
b040e242 | 17291 | fi |
a0b9e27f | 17292 | rm -f conftest* |
b040e242 VS |
17293 | if test "$am_cv_func_iconv" != yes; then |
17294 | am_save_LIBS="$LIBS" | |
17295 | LIBS="$LIBS -liconv" | |
a0b9e27f | 17296 | cat > conftest.$ac_ext <<EOF |
da494b40 | 17297 | #line 17298 "configure" |
b040e242 VS |
17298 | #include "confdefs.h" |
17299 | #include <stdlib.h> | |
17300 | #include <iconv.h> | |
a0b9e27f | 17301 | int main() { |
b040e242 VS |
17302 | iconv_t cd = iconv_open("",""); |
17303 | iconv(cd,NULL,NULL,NULL,NULL); | |
17304 | iconv_close(cd); | |
a0b9e27f MB |
17305 | ; return 0; } |
17306 | EOF | |
da494b40 | 17307 | if { (eval echo configure:17308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17308 | rm -rf conftest* |
b040e242 VS |
17309 | am_cv_lib_iconv=yes |
17310 | am_cv_func_iconv=yes | |
17311 | else | |
a0b9e27f MB |
17312 | echo "configure: failed program was:" >&5 |
17313 | cat conftest.$ac_ext >&5 | |
af15babd | 17314 | fi |
a0b9e27f | 17315 | rm -f conftest* |
b040e242 VS |
17316 | LIBS="$am_save_LIBS" |
17317 | fi | |
a0b9e27f | 17318 | |
247f5006 | 17319 | fi |
247f5006 | 17320 | |
a0b9e27f MB |
17321 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
17322 | if test "$am_cv_func_iconv" = yes; then | |
17323 | cat >> confdefs.h <<\EOF | |
b040e242 | 17324 | #define HAVE_ICONV 1 |
a0b9e27f | 17325 | EOF |
b040e242 | 17326 | |
a0b9e27f | 17327 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
da494b40 | 17328 | echo "configure:17329: checking if iconv needs const" >&5 |
a0b9e27f MB |
17329 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
17330 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b040e242 | 17331 | else |
a0b9e27f | 17332 | cat > conftest.$ac_ext <<EOF |
da494b40 | 17333 | #line 17334 "configure" |
b040e242 VS |
17334 | #include "confdefs.h" |
17335 | ||
17336 | #include <stdlib.h> | |
17337 | #include <iconv.h> | |
17338 | extern | |
17339 | #ifdef __cplusplus | |
17340 | "C" | |
17341 | #endif | |
17342 | #if defined(__STDC__) || defined(__cplusplus) | |
17343 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
17344 | #else | |
17345 | size_t iconv(); | |
17346 | #endif | |
a0b9e27f MB |
17347 | |
17348 | int main() { | |
af15babd | 17349 | |
a0b9e27f MB |
17350 | ; return 0; } |
17351 | EOF | |
da494b40 | 17352 | if { (eval echo configure:17353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 17353 | rm -rf conftest* |
b7043674 | 17354 | wx_cv_func_iconv_const="no" |
b040e242 | 17355 | else |
a0b9e27f MB |
17356 | echo "configure: failed program was:" >&5 |
17357 | cat conftest.$ac_ext >&5 | |
17358 | rm -rf conftest* | |
17359 | wx_cv_func_iconv_const="yes" | |
17360 | ||
5c6fa7d2 | 17361 | fi |
a0b9e27f MB |
17362 | rm -f conftest* |
17363 | ||
247f5006 | 17364 | fi |
a0b9e27f MB |
17365 | |
17366 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 | |
b7043674 VZ |
17367 | |
17368 | iconv_const= | |
1c405bb5 | 17369 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
17370 | iconv_const="const" |
17371 | fi | |
17372 | ||
a0b9e27f | 17373 | cat >> confdefs.h <<EOF |
f09359cf | 17374 | #define ICONV_CONST $iconv_const |
a0b9e27f | 17375 | EOF |
b040e242 VS |
17376 | |
17377 | fi | |
17378 | LIBICONV= | |
17379 | if test "$am_cv_lib_iconv" = yes; then | |
17380 | LIBICONV="-liconv" | |
17381 | fi | |
a0b9e27f | 17382 | |
b040e242 VS |
17383 | |
17384 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 17385 | ac_ext=c |
a0b9e27f | 17386 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17387 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17388 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17389 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17390 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 17391 | |
5c6fa7d2 | 17392 | |
8284b0c5 | 17393 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 17394 | for ac_func in sigaction |
af15babd | 17395 | do |
a0b9e27f | 17396 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 17397 | echo "configure:17398: checking for $ac_func" >&5 |
a0b9e27f MB |
17398 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17399 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17400 | else | |
17401 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 17402 | #line 17403 "configure" |
af15babd VZ |
17403 | #include "confdefs.h" |
17404 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17405 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17406 | #include <assert.h> |
17407 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17408 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17409 | builtin and then its argument prototype would still apply. */ |
17410 | char $ac_func(); | |
17411 | ||
17412 | int main() { | |
17413 | ||
af15babd VZ |
17414 | /* The GNU C library defines this for functions which it implements |
17415 | to always fail with ENOSYS. Some functions are actually named | |
17416 | something starting with __ and the normal name is an alias. */ | |
17417 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17418 | choke me | |
17419 | #else | |
a0b9e27f | 17420 | $ac_func(); |
af15babd VZ |
17421 | #endif |
17422 | ||
a0b9e27f MB |
17423 | ; return 0; } |
17424 | EOF | |
da494b40 | 17425 | if { (eval echo configure:17426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17426 | rm -rf conftest* |
17427 | eval "ac_cv_func_$ac_func=yes" | |
17428 | else | |
17429 | echo "configure: failed program was:" >&5 | |
17430 | cat conftest.$ac_ext >&5 | |
17431 | rm -rf conftest* | |
17432 | eval "ac_cv_func_$ac_func=no" | |
17433 | fi | |
17434 | rm -f conftest* | |
17435 | fi | |
7b4a847f | 17436 | |
a0b9e27f MB |
17437 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17438 | echo "$ac_t""yes" 1>&6 | |
17439 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17440 | cat >> confdefs.h <<EOF | |
17441 | #define $ac_tr_func 1 | |
17442 | EOF | |
17443 | ||
17444 | else | |
17445 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
17446 | fi |
17447 | done | |
17448 | ||
8284b0c5 | 17449 | |
4f14bcd8 | 17450 | if test "$ac_cv_func_sigaction" = "no"; then |
a0b9e27f | 17451 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
4f14bcd8 GD |
17452 | wxUSE_ON_FATAL_EXCEPTION=no |
17453 | fi | |
17454 | ||
17455 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a0b9e27f MB |
17456 | |
17457 | ac_ext=C | |
17458 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 17459 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17460 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17461 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17462 | cross_compiling=$ac_cv_prog_cxx_cross | |
7b4a847f | 17463 | |
5c6fa7d2 | 17464 | |
a0b9e27f | 17465 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
da494b40 | 17466 | echo "configure:17467: checking for sa_handler type" >&5 |
a0b9e27f MB |
17467 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
17468 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 17469 | else |
a0b9e27f MB |
17470 | |
17471 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 17472 | #line 17473 "configure" |
af15babd | 17473 | #include "confdefs.h" |
4f14bcd8 | 17474 | #include <signal.h> |
a0b9e27f | 17475 | int main() { |
4f14bcd8 GD |
17476 | |
17477 | extern void testSigHandler(int); | |
17478 | ||
17479 | struct sigaction sa; | |
17480 | sa.sa_handler = testSigHandler; | |
a0b9e27f MB |
17481 | |
17482 | ; return 0; } | |
17483 | EOF | |
da494b40 | 17484 | if { (eval echo configure:17485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17485 | rm -rf conftest* |
17486 | ||
4f14bcd8 | 17487 | wx_cv_type_sa_handler=int |
a0b9e27f | 17488 | |
af15babd | 17489 | else |
a0b9e27f MB |
17490 | echo "configure: failed program was:" >&5 |
17491 | cat conftest.$ac_ext >&5 | |
17492 | rm -rf conftest* | |
17493 | ||
4f14bcd8 | 17494 | wx_cv_type_sa_handler=void |
a0b9e27f | 17495 | |
5c6fa7d2 | 17496 | fi |
a0b9e27f MB |
17497 | rm -f conftest* |
17498 | ||
247f5006 | 17499 | fi |
a0b9e27f MB |
17500 | |
17501 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
4f14bcd8 GD |
17502 | |
17503 | ac_ext=c | |
a0b9e27f | 17504 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17505 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17506 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17507 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17508 | cross_compiling=$ac_cv_prog_cc_cross | |
579d8138 | 17509 | |
8284b0c5 | 17510 | |
a0b9e27f | 17511 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17512 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
a0b9e27f | 17513 | EOF |
af15babd | 17514 | |
4f14bcd8 GD |
17515 | fi |
17516 | fi | |
af15babd | 17517 | |
a1d22ad7 | 17518 | for ac_func in mkstemp mktemp |
af15babd | 17519 | do |
a0b9e27f | 17520 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 17521 | echo "configure:17522: checking for $ac_func" >&5 |
a0b9e27f MB |
17522 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17523 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17524 | else | |
17525 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 17526 | #line 17527 "configure" |
af15babd VZ |
17527 | #include "confdefs.h" |
17528 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17529 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17530 | #include <assert.h> |
17531 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17532 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17533 | builtin and then its argument prototype would still apply. */ |
17534 | char $ac_func(); | |
17535 | ||
17536 | int main() { | |
17537 | ||
af15babd VZ |
17538 | /* The GNU C library defines this for functions which it implements |
17539 | to always fail with ENOSYS. Some functions are actually named | |
17540 | something starting with __ and the normal name is an alias. */ | |
17541 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17542 | choke me | |
17543 | #else | |
a0b9e27f | 17544 | $ac_func(); |
af15babd VZ |
17545 | #endif |
17546 | ||
a0b9e27f MB |
17547 | ; return 0; } |
17548 | EOF | |
da494b40 | 17549 | if { (eval echo configure:17550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17550 | rm -rf conftest* |
17551 | eval "ac_cv_func_$ac_func=yes" | |
17552 | else | |
17553 | echo "configure: failed program was:" >&5 | |
17554 | cat conftest.$ac_ext >&5 | |
17555 | rm -rf conftest* | |
17556 | eval "ac_cv_func_$ac_func=no" | |
17557 | fi | |
17558 | rm -f conftest* | |
17559 | fi | |
af15babd | 17560 | |
a0b9e27f MB |
17561 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17562 | echo "$ac_t""yes" 1>&6 | |
17563 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17564 | cat >> confdefs.h <<EOF | |
17565 | #define $ac_tr_func 1 | |
17566 | EOF | |
ade35f11 | 17567 | break |
a0b9e27f MB |
17568 | else |
17569 | echo "$ac_t""no" 1>&6 | |
ade35f11 VZ |
17570 | fi |
17571 | done | |
17572 | ||
8284b0c5 | 17573 | |
a0b9e27f | 17574 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
da494b40 | 17575 | echo "configure:17576: checking for statfs" >&5 |
a0b9e27f MB |
17576 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
17577 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 17578 | else |
a0b9e27f | 17579 | cat > conftest.$ac_ext <<EOF |
da494b40 | 17580 | #line 17581 "configure" |
4f14bcd8 GD |
17581 | #include "confdefs.h" |
17582 | ||
17583 | #if defined(__BSD__) | |
17584 | #include <sys/param.h> | |
17585 | #include <sys/mount.h> | |
17586 | #else | |
17587 | #include <sys/vfs.h> | |
17588 | #endif | |
a0b9e27f MB |
17589 | |
17590 | int main() { | |
4f14bcd8 GD |
17591 | |
17592 | long l; | |
17593 | struct statfs fs; | |
17594 | statfs("/", &fs); | |
17595 | l = fs.f_bsize; | |
17596 | l += fs.f_blocks; | |
17597 | l += fs.f_bavail; | |
a0b9e27f MB |
17598 | |
17599 | ; return 0; } | |
17600 | EOF | |
da494b40 | 17601 | if { (eval echo configure:17602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17602 | rm -rf conftest* |
17603 | ||
4f14bcd8 | 17604 | wx_cv_func_statfs=yes |
a0b9e27f | 17605 | |
4f14bcd8 | 17606 | else |
a0b9e27f MB |
17607 | echo "configure: failed program was:" >&5 |
17608 | cat conftest.$ac_ext >&5 | |
17609 | rm -rf conftest* | |
17610 | ||
4f14bcd8 | 17611 | wx_cv_func_statfs=no |
a0b9e27f MB |
17612 | |
17613 | ||
5c6fa7d2 | 17614 | fi |
a0b9e27f | 17615 | rm -f conftest* |
8284b0c5 | 17616 | |
247f5006 | 17617 | fi |
a0b9e27f MB |
17618 | |
17619 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
4f14bcd8 GD |
17620 | |
17621 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 17622 | wx_cv_type_statvfs_t="struct statfs" |
a0b9e27f | 17623 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17624 | #define HAVE_STATFS 1 |
a0b9e27f | 17625 | EOF |
4f14bcd8 GD |
17626 | |
17627 | else | |
a0b9e27f | 17628 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 |
da494b40 | 17629 | echo "configure:17630: checking for statvfs" >&5 |
a0b9e27f MB |
17630 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
17631 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 17632 | else |
a0b9e27f | 17633 | cat > conftest.$ac_ext <<EOF |
da494b40 | 17634 | #line 17635 "configure" |
af15babd | 17635 | #include "confdefs.h" |
af15babd | 17636 | |
54ab82b3 VZ |
17637 | #include <stddef.h> |
17638 | #include <sys/statvfs.h> | |
a0b9e27f MB |
17639 | |
17640 | int main() { | |
af15babd | 17641 | |
54ab82b3 | 17642 | statvfs("/", NULL); |
a0b9e27f MB |
17643 | |
17644 | ; return 0; } | |
17645 | EOF | |
da494b40 | 17646 | if { (eval echo configure:17647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 17647 | rm -rf conftest* |
54ab82b3 | 17648 | wx_cv_func_statvfs=yes |
af15babd | 17649 | else |
a0b9e27f MB |
17650 | echo "configure: failed program was:" >&5 |
17651 | cat conftest.$ac_ext >&5 | |
17652 | rm -rf conftest* | |
54ab82b3 | 17653 | wx_cv_func_statvfs=no |
a0b9e27f | 17654 | |
5c6fa7d2 | 17655 | fi |
a0b9e27f MB |
17656 | rm -f conftest* |
17657 | ||
247f5006 | 17658 | fi |
a0b9e27f MB |
17659 | |
17660 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 | |
af15babd | 17661 | |
4f14bcd8 | 17662 | if test "$wx_cv_func_statvfs" = "yes"; then |
54ab82b3 VZ |
17663 | |
17664 | ac_ext=C | |
17665 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17666 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17667 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17668 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17669 | cross_compiling=$ac_cv_prog_cxx_cross | |
17670 | ||
17671 | ||
17672 | echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6 | |
da494b40 | 17673 | echo "configure:17674: checking for statvfs argument type" >&5 |
54ab82b3 VZ |
17674 | if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then |
17675 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17676 | else | |
17677 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 17678 | #line 17679 "configure" |
54ab82b3 VZ |
17679 | #include "confdefs.h" |
17680 | ||
17681 | #include <sys/statvfs.h> | |
17682 | ||
17683 | int main() { | |
17684 | ||
17685 | long l; | |
17686 | statvfs_t fs; | |
17687 | statvfs("/", &fs); | |
17688 | l = fs.f_bsize; | |
17689 | l += fs.f_blocks; | |
17690 | l += fs.f_bavail; | |
17691 | ||
17692 | ; return 0; } | |
17693 | EOF | |
da494b40 | 17694 | if { (eval echo configure:17695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54ab82b3 VZ |
17695 | rm -rf conftest* |
17696 | wx_cv_type_statvfs_t=statvfs_t | |
17697 | else | |
17698 | echo "configure: failed program was:" >&5 | |
17699 | cat conftest.$ac_ext >&5 | |
17700 | rm -rf conftest* | |
17701 | ||
17702 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 17703 | #line 17704 "configure" |
54ab82b3 VZ |
17704 | #include "confdefs.h" |
17705 | ||
17706 | #include <sys/statvfs.h> | |
17707 | ||
17708 | int main() { | |
17709 | ||
17710 | long l; | |
65d8ef1e | 17711 | struct statvfs fs; |
54ab82b3 VZ |
17712 | statvfs("/", &fs); |
17713 | l = fs.f_bsize; | |
17714 | l += fs.f_blocks; | |
17715 | l += fs.f_bavail; | |
17716 | ||
17717 | ; return 0; } | |
17718 | EOF | |
da494b40 | 17719 | if { (eval echo configure:17720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54ab82b3 VZ |
17720 | rm -rf conftest* |
17721 | wx_cv_type_statvfs_t="struct statvfs" | |
17722 | else | |
17723 | echo "configure: failed program was:" >&5 | |
17724 | cat conftest.$ac_ext >&5 | |
17725 | rm -rf conftest* | |
17726 | wx_cv_type_statvfs_t="unknown" | |
17727 | ||
17728 | fi | |
17729 | rm -f conftest* | |
17730 | ||
17731 | ||
17732 | fi | |
17733 | rm -f conftest* | |
17734 | ||
17735 | fi | |
17736 | ||
17737 | echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6 | |
17738 | ||
17739 | ac_ext=c | |
17740 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17741 | ac_cpp='$CPP $CPPFLAGS' | |
17742 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17743 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17744 | cross_compiling=$ac_cv_prog_cc_cross | |
17745 | ||
17746 | ||
17747 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
17748 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17749 | #define HAVE_STATVFS 1 |
a0b9e27f | 17750 | EOF |
af15babd | 17751 | |
54ab82b3 | 17752 | fi |
4f14bcd8 | 17753 | else |
54ab82b3 | 17754 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
17755 | fi |
17756 | fi | |
af15babd | 17757 | |
54ab82b3 VZ |
17758 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
17759 | cat >> confdefs.h <<EOF | |
17760 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
17761 | EOF | |
17762 | ||
17763 | else | |
17764 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
17765 | fi | |
17766 | ||
4f14bcd8 | 17767 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 17768 | for ac_func in fcntl flock |
af15babd | 17769 | do |
a0b9e27f | 17770 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 17771 | echo "configure:17772: checking for $ac_func" >&5 |
a0b9e27f MB |
17772 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17773 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17774 | else | |
17775 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 17776 | #line 17777 "configure" |
af15babd VZ |
17777 | #include "confdefs.h" |
17778 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17779 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17780 | #include <assert.h> |
17781 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd | 17782 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17783 | builtin and then its argument prototype would still apply. */ |
17784 | char $ac_func(); | |
17785 | ||
17786 | int main() { | |
17787 | ||
af15babd VZ |
17788 | /* The GNU C library defines this for functions which it implements |
17789 | to always fail with ENOSYS. Some functions are actually named | |
17790 | something starting with __ and the normal name is an alias. */ | |
17791 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17792 | choke me | |
17793 | #else | |
a0b9e27f | 17794 | $ac_func(); |
af15babd VZ |
17795 | #endif |
17796 | ||
a0b9e27f MB |
17797 | ; return 0; } |
17798 | EOF | |
da494b40 | 17799 | if { (eval echo configure:17800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17800 | rm -rf conftest* |
17801 | eval "ac_cv_func_$ac_func=yes" | |
17802 | else | |
17803 | echo "configure: failed program was:" >&5 | |
17804 | cat conftest.$ac_ext >&5 | |
17805 | rm -rf conftest* | |
17806 | eval "ac_cv_func_$ac_func=no" | |
17807 | fi | |
17808 | rm -f conftest* | |
17809 | fi | |
17810 | ||
17811 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17812 | echo "$ac_t""yes" 1>&6 | |
17813 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17814 | cat >> confdefs.h <<EOF | |
17815 | #define $ac_tr_func 1 | |
17816 | EOF | |
4f14bcd8 | 17817 | break |
a0b9e27f MB |
17818 | else |
17819 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
17820 | fi |
17821 | done | |
17822 | ||
8284b0c5 | 17823 | |
4f14bcd8 | 17824 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
a0b9e27f | 17825 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f14bcd8 GD |
17826 | wxUSE_SNGLINST_CHECKER=no |
17827 | fi | |
17828 | fi | |
af15babd | 17829 | |
4f14bcd8 | 17830 | for ac_func in timegm |
af15babd | 17831 | do |
a0b9e27f | 17832 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 17833 | echo "configure:17834: checking for $ac_func" >&5 |
a0b9e27f MB |
17834 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17835 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17836 | else | |
17837 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 17838 | #line 17839 "configure" |
af15babd VZ |
17839 | #include "confdefs.h" |
17840 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17841 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17842 | #include <assert.h> |
17843 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17844 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17845 | builtin and then its argument prototype would still apply. */ |
17846 | char $ac_func(); | |
17847 | ||
17848 | int main() { | |
17849 | ||
af15babd VZ |
17850 | /* The GNU C library defines this for functions which it implements |
17851 | to always fail with ENOSYS. Some functions are actually named | |
17852 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
17853 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
17854 | choke me | |
17855 | #else | |
a0b9e27f | 17856 | $ac_func(); |
247f5006 VZ |
17857 | #endif |
17858 | ||
a0b9e27f MB |
17859 | ; return 0; } |
17860 | EOF | |
da494b40 | 17861 | if { (eval echo configure:17862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17862 | rm -rf conftest* |
17863 | eval "ac_cv_func_$ac_func=yes" | |
17864 | else | |
17865 | echo "configure: failed program was:" >&5 | |
17866 | cat conftest.$ac_ext >&5 | |
17867 | rm -rf conftest* | |
17868 | eval "ac_cv_func_$ac_func=no" | |
17869 | fi | |
17870 | rm -f conftest* | |
17871 | fi | |
703e0a69 | 17872 | |
a0b9e27f MB |
17873 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17874 | echo "$ac_t""yes" 1>&6 | |
17875 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17876 | cat >> confdefs.h <<EOF | |
17877 | #define $ac_tr_func 1 | |
17878 | EOF | |
17879 | ||
17880 | else | |
17881 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
17882 | fi |
17883 | done | |
17884 | ||
8284b0c5 | 17885 | |
4f14bcd8 | 17886 | for ac_func in putenv setenv |
10f2d63a | 17887 | do |
a0b9e27f | 17888 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 17889 | echo "configure:17890: checking for $ac_func" >&5 |
a0b9e27f MB |
17890 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17891 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17892 | else | |
17893 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 17894 | #line 17895 "configure" |
af15babd VZ |
17895 | #include "confdefs.h" |
17896 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17897 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17898 | #include <assert.h> |
17899 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17900 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17901 | builtin and then its argument prototype would still apply. */ |
17902 | char $ac_func(); | |
17903 | ||
17904 | int main() { | |
17905 | ||
af15babd VZ |
17906 | /* The GNU C library defines this for functions which it implements |
17907 | to always fail with ENOSYS. Some functions are actually named | |
17908 | something starting with __ and the normal name is an alias. */ | |
17909 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17910 | choke me | |
17911 | #else | |
a0b9e27f | 17912 | $ac_func(); |
af15babd VZ |
17913 | #endif |
17914 | ||
a0b9e27f MB |
17915 | ; return 0; } |
17916 | EOF | |
da494b40 | 17917 | if { (eval echo configure:17918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17918 | rm -rf conftest* |
17919 | eval "ac_cv_func_$ac_func=yes" | |
17920 | else | |
17921 | echo "configure: failed program was:" >&5 | |
17922 | cat conftest.$ac_ext >&5 | |
17923 | rm -rf conftest* | |
17924 | eval "ac_cv_func_$ac_func=no" | |
17925 | fi | |
17926 | rm -f conftest* | |
17927 | fi | |
17928 | ||
17929 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17930 | echo "$ac_t""yes" 1>&6 | |
17931 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17932 | cat >> confdefs.h <<EOF | |
17933 | #define $ac_tr_func 1 | |
17934 | EOF | |
4f14bcd8 | 17935 | break |
a0b9e27f MB |
17936 | else |
17937 | echo "$ac_t""no" 1>&6 | |
af15babd | 17938 | fi |
af15babd VZ |
17939 | done |
17940 | ||
8284b0c5 | 17941 | |
4f14bcd8 GD |
17942 | HAVE_SOME_SLEEP_FUNC=0 |
17943 | if test "$USE_BEOS" = 1; then | |
a0b9e27f | 17944 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17945 | #define HAVE_SLEEP 1 |
a0b9e27f | 17946 | EOF |
af15babd | 17947 | |
4f14bcd8 | 17948 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
17949 | fi |
17950 | ||
4f14bcd8 | 17951 | if test "$USE_DARWIN" = 1; then |
a0b9e27f | 17952 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17953 | #define HAVE_USLEEP 1 |
a0b9e27f | 17954 | EOF |
10f2d63a | 17955 | |
4f14bcd8 | 17956 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
17957 | fi |
17958 | ||
4f14bcd8 GD |
17959 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
17960 | POSIX4_LINK= | |
a0b9e27f | 17961 | for ac_func in nanosleep |
4f14bcd8 | 17962 | do |
a0b9e27f | 17963 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 17964 | echo "configure:17965: checking for $ac_func" >&5 |
a0b9e27f MB |
17965 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17966 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17967 | else | |
17968 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 17969 | #line 17970 "configure" |
10f2d63a | 17970 | #include "confdefs.h" |
4f14bcd8 | 17971 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17972 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 17973 | #include <assert.h> |
10f2d63a VZ |
17974 | /* Override any gcc2 internal prototype to avoid an error. */ |
17975 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17976 | builtin and then its argument prototype would still apply. */ |
17977 | char $ac_func(); | |
17978 | ||
17979 | int main() { | |
17980 | ||
4f14bcd8 GD |
17981 | /* The GNU C library defines this for functions which it implements |
17982 | to always fail with ENOSYS. Some functions are actually named | |
17983 | something starting with __ and the normal name is an alias. */ | |
17984 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17985 | choke me | |
17986 | #else | |
a0b9e27f | 17987 | $ac_func(); |
4f14bcd8 GD |
17988 | #endif |
17989 | ||
a0b9e27f MB |
17990 | ; return 0; } |
17991 | EOF | |
da494b40 | 17992 | if { (eval echo configure:17993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17993 | rm -rf conftest* |
17994 | eval "ac_cv_func_$ac_func=yes" | |
17995 | else | |
17996 | echo "configure: failed program was:" >&5 | |
17997 | cat conftest.$ac_ext >&5 | |
17998 | rm -rf conftest* | |
17999 | eval "ac_cv_func_$ac_func=no" | |
18000 | fi | |
18001 | rm -f conftest* | |
18002 | fi | |
18003 | ||
18004 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18005 | echo "$ac_t""yes" 1>&6 | |
18006 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18007 | cat >> confdefs.h <<EOF | |
18008 | #define $ac_tr_func 1 | |
18009 | EOF | |
18010 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18011 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 18012 | EOF |
4f14bcd8 | 18013 | |
10f2d63a | 18014 | else |
a0b9e27f MB |
18015 | echo "$ac_t""no" 1>&6 |
18016 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
da494b40 | 18017 | echo "configure:18018: checking for nanosleep in -lposix4" >&5 |
a0b9e27f MB |
18018 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
18019 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18020 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18021 | else |
a0b9e27f | 18022 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18023 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 18024 | cat > conftest.$ac_ext <<EOF |
da494b40 | 18025 | #line 18026 "configure" |
10f2d63a VZ |
18026 | #include "confdefs.h" |
18027 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18028 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18029 | builtin and then its argument prototype would still apply. */ |
18030 | char nanosleep(); | |
18031 | ||
18032 | int main() { | |
18033 | nanosleep() | |
18034 | ; return 0; } | |
18035 | EOF | |
da494b40 | 18036 | if { (eval echo configure:18037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18037 | rm -rf conftest* |
18038 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18039 | else | |
18040 | echo "configure: failed program was:" >&5 | |
18041 | cat conftest.$ac_ext >&5 | |
18042 | rm -rf conftest* | |
18043 | eval "ac_cv_lib_$ac_lib_var=no" | |
18044 | fi | |
18045 | rm -f conftest* | |
18046 | LIBS="$ac_save_LIBS" | |
18047 | ||
18048 | fi | |
18049 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18050 | echo "$ac_t""yes" 1>&6 | |
18051 | ||
18052 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18053 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 18054 | EOF |
4f14bcd8 | 18055 | |
3d63bc3a | 18056 | POSIX4_LINK=" -lposix4" |
a0b9e27f | 18057 | |
10f2d63a | 18058 | else |
a0b9e27f | 18059 | echo "$ac_t""no" 1>&6 |
10f2d63a | 18060 | |
a0b9e27f | 18061 | for ac_func in usleep |
4f14bcd8 | 18062 | do |
a0b9e27f | 18063 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 18064 | echo "configure:18065: checking for $ac_func" >&5 |
a0b9e27f MB |
18065 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18066 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18067 | else | |
18068 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 18069 | #line 18070 "configure" |
10f2d63a | 18070 | #include "confdefs.h" |
4f14bcd8 | 18071 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18072 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18073 | #include <assert.h> |
18074 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18075 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18076 | builtin and then its argument prototype would still apply. */ |
18077 | char $ac_func(); | |
18078 | ||
18079 | int main() { | |
18080 | ||
4f14bcd8 GD |
18081 | /* The GNU C library defines this for functions which it implements |
18082 | to always fail with ENOSYS. Some functions are actually named | |
18083 | something starting with __ and the normal name is an alias. */ | |
18084 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18085 | choke me | |
18086 | #else | |
a0b9e27f | 18087 | $ac_func(); |
4f14bcd8 GD |
18088 | #endif |
18089 | ||
a0b9e27f MB |
18090 | ; return 0; } |
18091 | EOF | |
da494b40 | 18092 | if { (eval echo configure:18093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18093 | rm -rf conftest* |
18094 | eval "ac_cv_func_$ac_func=yes" | |
18095 | else | |
18096 | echo "configure: failed program was:" >&5 | |
18097 | cat conftest.$ac_ext >&5 | |
18098 | rm -rf conftest* | |
18099 | eval "ac_cv_func_$ac_func=no" | |
18100 | fi | |
18101 | rm -f conftest* | |
18102 | fi | |
18103 | ||
18104 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18105 | echo "$ac_t""yes" 1>&6 | |
18106 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18107 | cat >> confdefs.h <<EOF | |
18108 | #define $ac_tr_func 1 | |
18109 | EOF | |
18110 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18111 | #define HAVE_USLEEP 1 |
a0b9e27f | 18112 | EOF |
4f14bcd8 | 18113 | |
698dcdb6 | 18114 | else |
a0b9e27f MB |
18115 | echo "$ac_t""no" 1>&6 |
18116 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
18117 | ||
10f2d63a | 18118 | fi |
4f14bcd8 | 18119 | done |
10f2d63a | 18120 | |
a0b9e27f MB |
18121 | |
18122 | ||
6232543b | 18123 | fi |
10f2d63a | 18124 | |
a0b9e27f MB |
18125 | |
18126 | ||
1e487827 | 18127 | fi |
4f14bcd8 | 18128 | done |
703e0a69 | 18129 | |
10f2d63a VZ |
18130 | fi |
18131 | ||
4f14bcd8 | 18132 | for ac_func in uname gethostname |
70846f0a | 18133 | do |
a0b9e27f | 18134 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 18135 | echo "configure:18136: checking for $ac_func" >&5 |
a0b9e27f MB |
18136 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18137 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18138 | else | |
18139 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 18140 | #line 18141 "configure" |
70846f0a VZ |
18141 | #include "confdefs.h" |
18142 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 18143 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
18144 | #include <assert.h> |
18145 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18146 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18147 | builtin and then its argument prototype would still apply. */ |
18148 | char $ac_func(); | |
18149 | ||
18150 | int main() { | |
18151 | ||
70846f0a VZ |
18152 | /* The GNU C library defines this for functions which it implements |
18153 | to always fail with ENOSYS. Some functions are actually named | |
18154 | something starting with __ and the normal name is an alias. */ | |
18155 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18156 | choke me | |
18157 | #else | |
a0b9e27f | 18158 | $ac_func(); |
70846f0a VZ |
18159 | #endif |
18160 | ||
a0b9e27f MB |
18161 | ; return 0; } |
18162 | EOF | |
da494b40 | 18163 | if { (eval echo configure:18164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18164 | rm -rf conftest* |
18165 | eval "ac_cv_func_$ac_func=yes" | |
18166 | else | |
18167 | echo "configure: failed program was:" >&5 | |
18168 | cat conftest.$ac_ext >&5 | |
18169 | rm -rf conftest* | |
18170 | eval "ac_cv_func_$ac_func=no" | |
18171 | fi | |
18172 | rm -f conftest* | |
18173 | fi | |
18174 | ||
18175 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18176 | echo "$ac_t""yes" 1>&6 | |
18177 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18178 | cat >> confdefs.h <<EOF | |
18179 | #define $ac_tr_func 1 | |
18180 | EOF | |
4f14bcd8 | 18181 | break |
a0b9e27f MB |
18182 | else |
18183 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
18184 | fi |
18185 | done | |
18186 | ||
8284b0c5 MB |
18187 | |
18188 | ||
a0b9e27f MB |
18189 | ac_ext=C |
18190 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 18191 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
18192 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18193 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18194 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 18195 | |
4f14bcd8 GD |
18196 | |
18197 | for ac_func in strtok_r | |
10f2d63a | 18198 | do |
a0b9e27f | 18199 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 18200 | echo "configure:18201: checking for $ac_func" >&5 |
a0b9e27f MB |
18201 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18202 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18203 | else | |
18204 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 18205 | #line 18206 "configure" |
10f2d63a | 18206 | #include "confdefs.h" |
4f14bcd8 | 18207 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18208 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18209 | #include <assert.h> |
18210 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18211 | #ifdef __cplusplus | |
18212 | extern "C" | |
18213 | #endif | |
18214 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18215 | builtin and then its argument prototype would still apply. */ |
18216 | char $ac_func(); | |
18217 | ||
18218 | int main() { | |
18219 | ||
4f14bcd8 GD |
18220 | /* The GNU C library defines this for functions which it implements |
18221 | to always fail with ENOSYS. Some functions are actually named | |
18222 | something starting with __ and the normal name is an alias. */ | |
18223 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18224 | choke me | |
18225 | #else | |
a0b9e27f | 18226 | $ac_func(); |
4f14bcd8 GD |
18227 | #endif |
18228 | ||
a0b9e27f MB |
18229 | ; return 0; } |
18230 | EOF | |
da494b40 | 18231 | if { (eval echo configure:18232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18232 | rm -rf conftest* |
18233 | eval "ac_cv_func_$ac_func=yes" | |
18234 | else | |
18235 | echo "configure: failed program was:" >&5 | |
18236 | cat conftest.$ac_ext >&5 | |
18237 | rm -rf conftest* | |
18238 | eval "ac_cv_func_$ac_func=no" | |
18239 | fi | |
18240 | rm -f conftest* | |
18241 | fi | |
4f14bcd8 | 18242 | |
a0b9e27f MB |
18243 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18244 | echo "$ac_t""yes" 1>&6 | |
18245 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18246 | cat >> confdefs.h <<EOF | |
18247 | #define $ac_tr_func 1 | |
18248 | EOF | |
18249 | ||
18250 | else | |
18251 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
18252 | fi |
18253 | done | |
18254 | ||
8284b0c5 | 18255 | |
4f14bcd8 | 18256 | ac_ext=c |
a0b9e27f | 18257 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 18258 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
18259 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18260 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18261 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 18262 | |
5c6fa7d2 | 18263 | |
8284b0c5 | 18264 | INET_LINK= |
4f14bcd8 GD |
18265 | for ac_func in inet_addr |
18266 | do | |
a0b9e27f | 18267 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 18268 | echo "configure:18269: checking for $ac_func" >&5 |
a0b9e27f MB |
18269 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18270 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18271 | else | |
18272 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 18273 | #line 18274 "configure" |
10f2d63a | 18274 | #include "confdefs.h" |
4f14bcd8 | 18275 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18276 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18277 | #include <assert.h> |
10f2d63a VZ |
18278 | /* Override any gcc2 internal prototype to avoid an error. */ |
18279 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18280 | builtin and then its argument prototype would still apply. */ |
18281 | char $ac_func(); | |
18282 | ||
18283 | int main() { | |
18284 | ||
4f14bcd8 GD |
18285 | /* The GNU C library defines this for functions which it implements |
18286 | to always fail with ENOSYS. Some functions are actually named | |
18287 | something starting with __ and the normal name is an alias. */ | |
18288 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18289 | choke me | |
18290 | #else | |
a0b9e27f | 18291 | $ac_func(); |
4f14bcd8 GD |
18292 | #endif |
18293 | ||
a0b9e27f MB |
18294 | ; return 0; } |
18295 | EOF | |
da494b40 | 18296 | if { (eval echo configure:18297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18297 | rm -rf conftest* |
18298 | eval "ac_cv_func_$ac_func=yes" | |
18299 | else | |
18300 | echo "configure: failed program was:" >&5 | |
18301 | cat conftest.$ac_ext >&5 | |
18302 | rm -rf conftest* | |
18303 | eval "ac_cv_func_$ac_func=no" | |
18304 | fi | |
18305 | rm -f conftest* | |
18306 | fi | |
18307 | ||
18308 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18309 | echo "$ac_t""yes" 1>&6 | |
18310 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18311 | cat >> confdefs.h <<EOF | |
18312 | #define $ac_tr_func 1 | |
18313 | EOF | |
18314 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18315 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 18316 | EOF |
10f2d63a VZ |
18317 | |
18318 | else | |
a0b9e27f MB |
18319 | echo "$ac_t""no" 1>&6 |
18320 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
da494b40 | 18321 | echo "configure:18322: checking for inet_addr in -lnsl" >&5 |
a0b9e27f MB |
18322 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
18323 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18324 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18325 | else |
a0b9e27f | 18326 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18327 | LIBS="-lnsl $LIBS" |
a0b9e27f | 18328 | cat > conftest.$ac_ext <<EOF |
da494b40 | 18329 | #line 18330 "configure" |
10f2d63a VZ |
18330 | #include "confdefs.h" |
18331 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18332 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18333 | builtin and then its argument prototype would still apply. */ |
18334 | char inet_addr(); | |
18335 | ||
18336 | int main() { | |
18337 | inet_addr() | |
18338 | ; return 0; } | |
18339 | EOF | |
da494b40 | 18340 | if { (eval echo configure:18341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18341 | rm -rf conftest* |
18342 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18343 | else | |
18344 | echo "configure: failed program was:" >&5 | |
18345 | cat conftest.$ac_ext >&5 | |
18346 | rm -rf conftest* | |
18347 | eval "ac_cv_lib_$ac_lib_var=no" | |
18348 | fi | |
18349 | rm -f conftest* | |
18350 | LIBS="$ac_save_LIBS" | |
18351 | ||
18352 | fi | |
18353 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18354 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 18355 | INET_LINK="nsl" |
10f2d63a | 18356 | else |
a0b9e27f MB |
18357 | echo "$ac_t""no" 1>&6 |
18358 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
da494b40 | 18359 | echo "configure:18360: checking for inet_addr in -lresolv" >&5 |
a0b9e27f MB |
18360 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
18361 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18362 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18363 | else |
a0b9e27f | 18364 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18365 | LIBS="-lresolv $LIBS" |
a0b9e27f | 18366 | cat > conftest.$ac_ext <<EOF |
da494b40 | 18367 | #line 18368 "configure" |
7b4a847f | 18368 | #include "confdefs.h" |
5c6fa7d2 | 18369 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 18370 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18371 | builtin and then its argument prototype would still apply. */ |
18372 | char inet_addr(); | |
18373 | ||
18374 | int main() { | |
18375 | inet_addr() | |
18376 | ; return 0; } | |
18377 | EOF | |
da494b40 | 18378 | if { (eval echo configure:18379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18379 | rm -rf conftest* |
18380 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18381 | else | |
18382 | echo "configure: failed program was:" >&5 | |
18383 | cat conftest.$ac_ext >&5 | |
18384 | rm -rf conftest* | |
18385 | eval "ac_cv_lib_$ac_lib_var=no" | |
18386 | fi | |
18387 | rm -f conftest* | |
18388 | LIBS="$ac_save_LIBS" | |
18389 | ||
18390 | fi | |
18391 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18392 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 18393 | INET_LINK="resolv" |
698dcdb6 | 18394 | else |
a0b9e27f MB |
18395 | echo "$ac_t""no" 1>&6 |
18396 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 | |
da494b40 | 18397 | echo "configure:18398: checking for inet_addr in -lsocket" >&5 |
a0b9e27f MB |
18398 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
18399 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18400 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3c011993 | 18401 | else |
a0b9e27f | 18402 | ac_save_LIBS="$LIBS" |
3c011993 | 18403 | LIBS="-lsocket $LIBS" |
a0b9e27f | 18404 | cat > conftest.$ac_ext <<EOF |
da494b40 | 18405 | #line 18406 "configure" |
3c011993 VZ |
18406 | #include "confdefs.h" |
18407 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18408 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18409 | builtin and then its argument prototype would still apply. */ |
18410 | char inet_addr(); | |
4f14bcd8 | 18411 | |
a0b9e27f MB |
18412 | int main() { |
18413 | inet_addr() | |
18414 | ; return 0; } | |
18415 | EOF | |
da494b40 | 18416 | if { (eval echo configure:18417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18417 | rm -rf conftest* |
18418 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18419 | else | |
18420 | echo "configure: failed program was:" >&5 | |
18421 | cat conftest.$ac_ext >&5 | |
18422 | rm -rf conftest* | |
18423 | eval "ac_cv_lib_$ac_lib_var=no" | |
8284b0c5 | 18424 | fi |
a0b9e27f MB |
18425 | rm -f conftest* |
18426 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 18427 | |
7b4a847f | 18428 | fi |
a0b9e27f MB |
18429 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18430 | echo "$ac_t""yes" 1>&6 | |
18431 | INET_LINK="socket" | |
18432 | ||
18433 | else | |
18434 | echo "$ac_t""no" 1>&6 | |
18435 | fi | |
579d8138 | 18436 | |
a0b9e27f | 18437 | |
5c6fa7d2 | 18438 | fi |
52127426 | 18439 | |
a0b9e27f MB |
18440 | |
18441 | fi | |
247f5006 | 18442 | |
a0b9e27f | 18443 | |
8284b0c5 | 18444 | |
698dcdb6 | 18445 | fi |
4f14bcd8 GD |
18446 | done |
18447 | ||
8284b0c5 | 18448 | |
4f14bcd8 GD |
18449 | for ac_func in inet_aton |
18450 | do | |
a0b9e27f | 18451 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 18452 | echo "configure:18453: checking for $ac_func" >&5 |
a0b9e27f MB |
18453 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18454 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18455 | else | |
18456 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 18457 | #line 18458 "configure" |
f6bcfd97 | 18458 | #include "confdefs.h" |
4f14bcd8 | 18459 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18460 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18461 | #include <assert.h> |
f6bcfd97 BP |
18462 | /* Override any gcc2 internal prototype to avoid an error. */ |
18463 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18464 | builtin and then its argument prototype would still apply. */ |
18465 | char $ac_func(); | |
18466 | ||
18467 | int main() { | |
18468 | ||
4f14bcd8 GD |
18469 | /* The GNU C library defines this for functions which it implements |
18470 | to always fail with ENOSYS. Some functions are actually named | |
18471 | something starting with __ and the normal name is an alias. */ | |
18472 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18473 | choke me | |
18474 | #else | |
a0b9e27f | 18475 | $ac_func(); |
4f14bcd8 GD |
18476 | #endif |
18477 | ||
a0b9e27f MB |
18478 | ; return 0; } |
18479 | EOF | |
da494b40 | 18480 | if { (eval echo configure:18481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18481 | rm -rf conftest* |
18482 | eval "ac_cv_func_$ac_func=yes" | |
18483 | else | |
18484 | echo "configure: failed program was:" >&5 | |
18485 | cat conftest.$ac_ext >&5 | |
18486 | rm -rf conftest* | |
18487 | eval "ac_cv_func_$ac_func=no" | |
18488 | fi | |
18489 | rm -f conftest* | |
18490 | fi | |
18491 | ||
18492 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18493 | echo "$ac_t""yes" 1>&6 | |
18494 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18495 | cat >> confdefs.h <<EOF | |
18496 | #define $ac_tr_func 1 | |
18497 | EOF | |
18498 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18499 | #define HAVE_INET_ATON 1 |
a0b9e27f | 18500 | EOF |
4f14bcd8 | 18501 | |
10f2d63a | 18502 | else |
a0b9e27f MB |
18503 | echo "$ac_t""no" 1>&6 |
18504 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
da494b40 | 18505 | echo "configure:18506: checking for inet_aton in -l$INET_LINK" >&5 |
a0b9e27f MB |
18506 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
18507 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18508 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 18509 | else |
a0b9e27f | 18510 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18511 | LIBS="-l$INET_LINK $LIBS" |
a0b9e27f | 18512 | cat > conftest.$ac_ext <<EOF |
da494b40 | 18513 | #line 18514 "configure" |
10f2d63a | 18514 | #include "confdefs.h" |
6232543b | 18515 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 18516 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18517 | builtin and then its argument prototype would still apply. */ |
18518 | char inet_aton(); | |
18519 | ||
18520 | int main() { | |
18521 | inet_aton() | |
18522 | ; return 0; } | |
18523 | EOF | |
da494b40 | 18524 | if { (eval echo configure:18525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18525 | rm -rf conftest* |
18526 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18527 | else | |
18528 | echo "configure: failed program was:" >&5 | |
18529 | cat conftest.$ac_ext >&5 | |
18530 | rm -rf conftest* | |
18531 | eval "ac_cv_lib_$ac_lib_var=no" | |
18532 | fi | |
18533 | rm -f conftest* | |
18534 | LIBS="$ac_save_LIBS" | |
4f14bcd8 | 18535 | |
10f2d63a | 18536 | fi |
a0b9e27f MB |
18537 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18538 | echo "$ac_t""yes" 1>&6 | |
18539 | cat >> confdefs.h <<\EOF | |
18540 | #define HAVE_INET_ATON 1 | |
18541 | EOF | |
10f2d63a | 18542 | |
a0b9e27f MB |
18543 | else |
18544 | echo "$ac_t""no" 1>&6 | |
18545 | fi | |
247f5006 | 18546 | |
a0b9e27f | 18547 | |
10f2d63a | 18548 | fi |
4f14bcd8 | 18549 | done |
10f2d63a | 18550 | |
8284b0c5 | 18551 | |
4f14bcd8 | 18552 | if test "x$INET_LINK" != "x"; then |
a0b9e27f | 18553 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18554 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 18555 | EOF |
4f14bcd8 | 18556 | |
3d63bc3a | 18557 | INET_LINK=" -l$INET_LINK" |
6232543b | 18558 | fi |
10f2d63a | 18559 | |
1e487827 | 18560 | fi |
703e0a69 | 18561 | |
8284b0c5 | 18562 | |
a0b9e27f | 18563 | cat > confcache <<\EOF |
4f14bcd8 GD |
18564 | # This file is a shell script that caches the results of configure |
18565 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
18566 | # scripts and configure runs. It is not useful on other systems. |
18567 | # If it contains results you don't want to keep, you may remove or edit it. | |
4f14bcd8 | 18568 | # |
a0b9e27f MB |
18569 | # By default, configure uses ./config.cache as the cache file, |
18570 | # creating it if it does not exist already. You can give configure | |
18571 | # the --cache-file=FILE option to use a different cache file; that is | |
18572 | # what configure does when it calls configure scripts in | |
18573 | # subdirectories, so they share the cache. | |
18574 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
18575 | # config.status only pays attention to the cache file if you give it the | |
18576 | # --recheck option to rerun configure. | |
4f14bcd8 | 18577 | # |
a0b9e27f | 18578 | EOF |
4f14bcd8 GD |
18579 | # The following way of writing the cache mishandles newlines in values, |
18580 | # but we know of no workaround that is simple, portable, and efficient. | |
18581 | # So, don't put newlines in cache variables' values. | |
18582 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18583 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
18584 | (set) 2>&1 | |
18585 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18586 | *ac_space=\ *) | |
18587 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
18588 | # turns \\\\ into \\, and sed turns \\ into \). | |
18589 | sed -n \ | |
18590 | -e "s/'/'\\\\''/g" \ | |
18591 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
18592 | ;; | |
18593 | *) | |
18594 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18595 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
18596 | ;; | |
18597 | esac >> confcache | |
18598 | if cmp -s $cache_file confcache; then | |
18599 | : | |
18600 | else | |
4f14bcd8 | 18601 | if test -w $cache_file; then |
a0b9e27f MB |
18602 | echo "updating cache $cache_file" |
18603 | cat confcache > $cache_file | |
f6bcfd97 | 18604 | else |
4f14bcd8 | 18605 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 18606 | fi |
4f14bcd8 GD |
18607 | fi |
18608 | rm -f confcache | |
f6bcfd97 | 18609 | |
8284b0c5 | 18610 | |
a0b9e27f | 18611 | |
009fead0 | 18612 | CPP_MT_FLAG= |
4f14bcd8 GD |
18613 | if test "$TOOLKIT" != "MSW"; then |
18614 | ||
a0b9e27f | 18615 | |
7274f1c7 | 18616 | THREADS_LINK= |
009fead0 | 18617 | THREADS_CFLAGS= |
7274f1c7 RL |
18618 | |
18619 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 18620 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 18621 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
18622 | wxUSE_THREADS="no" |
18623 | fi | |
4f14bcd8 | 18624 | fi |
4f14bcd8 | 18625 | |
7274f1c7 | 18626 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f MB |
18627 | |
18628 | ||
009fead0 VZ |
18629 | THREAD_OPTS="-pthread" |
18630 | case "${host}" in | |
18631 | *-*-solaris2* | *-*-sunos4* ) | |
18632 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 18633 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
18634 | else |
18635 | THREAD_OPTS="-mt $THREAD_OPTS" | |
18636 | fi | |
18637 | ;; | |
18638 | *-*-freebsd*) | |
18639 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
18640 | ;; | |
17234b26 MB |
18641 | *-*-darwin* | *-*-cygwin* ) |
18642 | THREAD_OPTS="" | |
4101db81 | 18643 | ;; |
8f4a9a10 | 18644 | *-*-aix*) |
009fead0 VZ |
18645 | THREAD_OPTS="pthreads" |
18646 | ;; | |
4f5a7f74 VZ |
18647 | *-hp-hpux* ) |
18648 | if test "x$GCC" != "xyes"; then | |
18649 | THREAD_OPTS="" | |
18650 | fi | |
009fead0 | 18651 | esac |
4f14bcd8 | 18652 | |
02a1dfba | 18653 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 18654 | |
009fead0 VZ |
18655 | THREADS_OK=no |
18656 | for flag in $THREAD_OPTS; do | |
18657 | case $flag in | |
18658 | none) | |
a0b9e27f | 18659 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 |
da494b40 | 18660 | echo "configure:18661: checking whether pthreads work without any flags" >&5 |
009fead0 | 18661 | ;; |
698dcdb6 | 18662 | |
009fead0 | 18663 | -*) |
a0b9e27f | 18664 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 |
da494b40 | 18665 | echo "configure:18666: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
18666 | THREADS_CFLAGS="$flag" |
18667 | ;; | |
698dcdb6 | 18668 | |
009fead0 | 18669 | *) |
a0b9e27f | 18670 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 |
da494b40 | 18671 | echo "configure:18672: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
18672 | THREADS_LINK="-l$flag" |
18673 | ;; | |
18674 | esac | |
10f2d63a | 18675 | |
009fead0 VZ |
18676 | save_LIBS="$LIBS" |
18677 | save_CFLAGS="$CFLAGS" | |
18678 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 18679 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 18680 | |
a0b9e27f | 18681 | cat > conftest.$ac_ext <<EOF |
da494b40 | 18682 | #line 18683 "configure" |
009fead0 VZ |
18683 | #include "confdefs.h" |
18684 | #include <pthread.h> | |
a0b9e27f | 18685 | int main() { |
009fead0 | 18686 | pthread_create(0,0,0,0); |
a0b9e27f MB |
18687 | ; return 0; } |
18688 | EOF | |
da494b40 | 18689 | if { (eval echo configure:18690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 18690 | rm -rf conftest* |
009fead0 | 18691 | THREADS_OK=yes |
10f2d63a | 18692 | else |
a0b9e27f MB |
18693 | echo "configure: failed program was:" >&5 |
18694 | cat conftest.$ac_ext >&5 | |
6232543b | 18695 | fi |
a0b9e27f | 18696 | rm -f conftest* |
698dcdb6 | 18697 | |
009fead0 VZ |
18698 | LIBS="$save_LIBS" |
18699 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 18700 | |
a0b9e27f | 18701 | echo "$ac_t""$THREADS_OK" 1>&6 |
009fead0 VZ |
18702 | if test "x$THREADS_OK" = "xyes"; then |
18703 | break; | |
18704 | fi | |
d9b9876f | 18705 | |
009fead0 VZ |
18706 | THREADS_LINK="" |
18707 | THREADS_CFLAGS="" | |
18708 | done | |
4f14bcd8 | 18709 | |
009fead0 VZ |
18710 | if test "x$THREADS_OK" != "xyes"; then |
18711 | wxUSE_THREADS=no | |
a0b9e27f | 18712 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
009fead0 | 18713 | else |
db82f09e VZ |
18714 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
18715 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 18716 | |
a0b9e27f | 18717 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
da494b40 | 18718 | echo "configure:18719: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
18719 | flag=no |
18720 | case "${host}" in | |
2b5f62a0 VZ |
18721 | *-aix*) |
18722 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
18723 | flag="-D_THREAD_SAFE" | |
18724 | ;; | |
18725 | *-freebsd*) | |
009fead0 VZ |
18726 | flag="-D_THREAD_SAFE" |
18727 | ;; | |
06313569 GD |
18728 | *-hp-hpux* ) |
18729 | flag="-D_REENTRANT" | |
4f5a7f74 VZ |
18730 | if test "x$GCC" != "xyes"; then |
18731 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
18732 | fi | |
06313569 | 18733 | ;; |
009fead0 VZ |
18734 | *solaris* | alpha*-osf*) |
18735 | flag="-D_REENTRANT" | |
18736 | ;; | |
18737 | esac | |
a0b9e27f | 18738 | echo "$ac_t""${flag}" 1>&6 |
009fead0 | 18739 | if test "x$flag" != xno; then |
04727afd | 18740 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
18741 | fi |
18742 | ||
009fead0 | 18743 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 18744 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
18745 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
18746 | fi | |
18747 | fi | |
4f14bcd8 | 18748 | fi |
4f14bcd8 | 18749 | |
7274f1c7 | 18750 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f | 18751 | for ac_func in thr_setconcurrency |
4f14bcd8 | 18752 | do |
a0b9e27f | 18753 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 18754 | echo "configure:18755: checking for $ac_func" >&5 |
a0b9e27f MB |
18755 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18756 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18757 | else | |
18758 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 18759 | #line 18760 "configure" |
d9b9876f | 18760 | #include "confdefs.h" |
4f14bcd8 | 18761 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18762 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18763 | #include <assert.h> |
18764 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18765 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18766 | builtin and then its argument prototype would still apply. */ |
18767 | char $ac_func(); | |
18768 | ||
18769 | int main() { | |
18770 | ||
4f14bcd8 GD |
18771 | /* The GNU C library defines this for functions which it implements |
18772 | to always fail with ENOSYS. Some functions are actually named | |
18773 | something starting with __ and the normal name is an alias. */ | |
18774 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18775 | choke me | |
18776 | #else | |
a0b9e27f | 18777 | $ac_func(); |
4f14bcd8 GD |
18778 | #endif |
18779 | ||
a0b9e27f MB |
18780 | ; return 0; } |
18781 | EOF | |
da494b40 | 18782 | if { (eval echo configure:18783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18783 | rm -rf conftest* |
18784 | eval "ac_cv_func_$ac_func=yes" | |
18785 | else | |
18786 | echo "configure: failed program was:" >&5 | |
18787 | cat conftest.$ac_ext >&5 | |
18788 | rm -rf conftest* | |
18789 | eval "ac_cv_func_$ac_func=no" | |
18790 | fi | |
18791 | rm -f conftest* | |
18792 | fi | |
698dcdb6 | 18793 | |
a0b9e27f MB |
18794 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18795 | echo "$ac_t""yes" 1>&6 | |
18796 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18797 | cat >> confdefs.h <<EOF | |
18798 | #define $ac_tr_func 1 | |
18799 | EOF | |
18800 | ||
18801 | else | |
18802 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 18803 | fi |
4f14bcd8 | 18804 | done |
10f2d63a | 18805 | |
8284b0c5 | 18806 | |
a0b9e27f | 18807 | for ac_hdr in sched.h |
4f14bcd8 | 18808 | do |
a0b9e27f MB |
18809 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18810 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
da494b40 | 18811 | echo "configure:18812: checking for $ac_hdr" >&5 |
a0b9e27f MB |
18812 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18813 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18814 | else | |
18815 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 18816 | #line 18817 "configure" |
247f5006 | 18817 | #include "confdefs.h" |
a0b9e27f MB |
18818 | #include <$ac_hdr> |
18819 | EOF | |
18820 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 18821 | { (eval echo configure:18822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
18822 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18823 | if test -z "$ac_err"; then | |
18824 | rm -rf conftest* | |
18825 | eval "ac_cv_header_$ac_safe=yes" | |
18826 | else | |
18827 | echo "$ac_err" >&5 | |
18828 | echo "configure: failed program was:" >&5 | |
4f14bcd8 | 18829 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
18830 | rm -rf conftest* |
18831 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 18832 | fi |
a0b9e27f | 18833 | rm -f conftest* |
10f2d63a | 18834 | fi |
a0b9e27f MB |
18835 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18836 | echo "$ac_t""yes" 1>&6 | |
18837 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18838 | cat >> confdefs.h <<EOF | |
18839 | #define $ac_tr_hdr 1 | |
18840 | EOF | |
18841 | ||
18842 | else | |
18843 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 18844 | fi |
4f14bcd8 | 18845 | done |
f6bcfd97 | 18846 | |
009fead0 | 18847 | if test "$ac_cv_header_sched_h" = "yes"; then |
a0b9e27f | 18848 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 |
da494b40 | 18849 | echo "configure:18850: checking for sched_yield" >&5 |
a0b9e27f MB |
18850 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
18851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 18852 | else |
a0b9e27f | 18853 | cat > conftest.$ac_ext <<EOF |
da494b40 | 18854 | #line 18855 "configure" |
4f14bcd8 | 18855 | #include "confdefs.h" |
009fead0 | 18856 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18857 | which can conflict with char sched_yield(); below. */ |
009fead0 | 18858 | #include <assert.h> |
4f14bcd8 GD |
18859 | /* Override any gcc2 internal prototype to avoid an error. */ |
18860 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18861 | builtin and then its argument prototype would still apply. */ |
18862 | char sched_yield(); | |
18863 | ||
18864 | int main() { | |
18865 | ||
009fead0 VZ |
18866 | /* The GNU C library defines this for functions which it implements |
18867 | to always fail with ENOSYS. Some functions are actually named | |
18868 | something starting with __ and the normal name is an alias. */ | |
18869 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
18870 | choke me | |
18871 | #else | |
a0b9e27f | 18872 | sched_yield(); |
009fead0 VZ |
18873 | #endif |
18874 | ||
a0b9e27f MB |
18875 | ; return 0; } |
18876 | EOF | |
da494b40 | 18877 | if { (eval echo configure:18878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18878 | rm -rf conftest* |
18879 | eval "ac_cv_func_sched_yield=yes" | |
18880 | else | |
18881 | echo "configure: failed program was:" >&5 | |
18882 | cat conftest.$ac_ext >&5 | |
18883 | rm -rf conftest* | |
18884 | eval "ac_cv_func_sched_yield=no" | |
18885 | fi | |
18886 | rm -f conftest* | |
18887 | fi | |
18888 | ||
18889 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
18890 | echo "$ac_t""yes" 1>&6 | |
18891 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18892 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 18893 | EOF |
10f2d63a | 18894 | |
4f14bcd8 | 18895 | else |
a0b9e27f | 18896 | echo "$ac_t""no" 1>&6 |
009fead0 | 18897 | |
a0b9e27f | 18898 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 |
da494b40 | 18899 | echo "configure:18900: checking for sched_yield in -lposix4" >&5 |
a0b9e27f MB |
18900 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
18901 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18902 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 18903 | else |
a0b9e27f | 18904 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18905 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 18906 | cat > conftest.$ac_ext <<EOF |
da494b40 | 18907 | #line 18908 "configure" |
4f14bcd8 GD |
18908 | #include "confdefs.h" |
18909 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18910 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18911 | builtin and then its argument prototype would still apply. */ |
18912 | char sched_yield(); | |
18913 | ||
18914 | int main() { | |
18915 | sched_yield() | |
18916 | ; return 0; } | |
18917 | EOF | |
da494b40 | 18918 | if { (eval echo configure:18919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18919 | rm -rf conftest* |
18920 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18921 | else | |
18922 | echo "configure: failed program was:" >&5 | |
18923 | cat conftest.$ac_ext >&5 | |
18924 | rm -rf conftest* | |
18925 | eval "ac_cv_lib_$ac_lib_var=no" | |
18926 | fi | |
18927 | rm -f conftest* | |
18928 | LIBS="$ac_save_LIBS" | |
18929 | ||
18930 | fi | |
18931 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18932 | echo "$ac_t""yes" 1>&6 | |
18933 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18934 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 18935 | EOF |
3d63bc3a | 18936 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 18937 | else |
a0b9e27f MB |
18938 | echo "$ac_t""no" 1>&6 |
18939 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
18940 | ||
54276ccf VZ |
18941 | fi |
18942 | ||
a0b9e27f MB |
18943 | |
18944 | ||
4f14bcd8 | 18945 | fi |
698dcdb6 | 18946 | |
009fead0 | 18947 | fi |
10f2d63a | 18948 | |
7274f1c7 | 18949 | HAVE_PRIOR_FUNCS=0 |
a0b9e27f | 18950 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
da494b40 | 18951 | echo "configure:18952: checking for pthread_attr_getschedpolicy" >&5 |
a0b9e27f MB |
18952 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
18953 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 18954 | else |
a0b9e27f | 18955 | cat > conftest.$ac_ext <<EOF |
da494b40 | 18956 | #line 18957 "configure" |
422107f9 | 18957 | #include "confdefs.h" |
009fead0 | 18958 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18959 | which can conflict with char pthread_attr_getschedpolicy(); below. */ |
009fead0 | 18960 | #include <assert.h> |
4f14bcd8 GD |
18961 | /* Override any gcc2 internal prototype to avoid an error. */ |
18962 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18963 | builtin and then its argument prototype would still apply. */ |
18964 | char pthread_attr_getschedpolicy(); | |
18965 | ||
18966 | int main() { | |
18967 | ||
009fead0 VZ |
18968 | /* The GNU C library defines this for functions which it implements |
18969 | to always fail with ENOSYS. Some functions are actually named | |
18970 | something starting with __ and the normal name is an alias. */ | |
18971 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
18972 | choke me | |
18973 | #else | |
a0b9e27f | 18974 | pthread_attr_getschedpolicy(); |
009fead0 VZ |
18975 | #endif |
18976 | ||
a0b9e27f MB |
18977 | ; return 0; } |
18978 | EOF | |
da494b40 | 18979 | if { (eval echo configure:18980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18980 | rm -rf conftest* |
18981 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" | |
18982 | else | |
18983 | echo "configure: failed program was:" >&5 | |
18984 | cat conftest.$ac_ext >&5 | |
18985 | rm -rf conftest* | |
18986 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" | |
18987 | fi | |
18988 | rm -f conftest* | |
18989 | fi | |
18990 | ||
18991 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
18992 | echo "$ac_t""yes" 1>&6 | |
18993 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 | |
da494b40 | 18994 | echo "configure:18995: checking for pthread_attr_setschedparam" >&5 |
a0b9e27f MB |
18995 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
18996 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 18997 | else |
a0b9e27f | 18998 | cat > conftest.$ac_ext <<EOF |
da494b40 | 18999 | #line 19000 "configure" |
a0b9e27f MB |
19000 | #include "confdefs.h" |
19001 | /* System header to define __stub macros and hopefully few prototypes, | |
19002 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
009fead0 | 19003 | #include <assert.h> |
422107f9 VZ |
19004 | /* Override any gcc2 internal prototype to avoid an error. */ |
19005 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19006 | builtin and then its argument prototype would still apply. */ |
19007 | char pthread_attr_setschedparam(); | |
19008 | ||
19009 | int main() { | |
19010 | ||
009fead0 VZ |
19011 | /* The GNU C library defines this for functions which it implements |
19012 | to always fail with ENOSYS. Some functions are actually named | |
19013 | something starting with __ and the normal name is an alias. */ | |
19014 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
19015 | choke me | |
19016 | #else | |
a0b9e27f | 19017 | pthread_attr_setschedparam(); |
009fead0 VZ |
19018 | #endif |
19019 | ||
a0b9e27f MB |
19020 | ; return 0; } |
19021 | EOF | |
da494b40 | 19022 | if { (eval echo configure:19023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19023 | rm -rf conftest* |
19024 | eval "ac_cv_func_pthread_attr_setschedparam=yes" | |
19025 | else | |
19026 | echo "configure: failed program was:" >&5 | |
19027 | cat conftest.$ac_ext >&5 | |
19028 | rm -rf conftest* | |
19029 | eval "ac_cv_func_pthread_attr_setschedparam=no" | |
19030 | fi | |
19031 | rm -f conftest* | |
19032 | fi | |
19033 | ||
19034 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
19035 | echo "$ac_t""yes" 1>&6 | |
19036 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 | |
da494b40 | 19037 | echo "configure:19038: checking for sched_get_priority_max" >&5 |
a0b9e27f MB |
19038 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
19039 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19040 | else | |
19041 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 19042 | #line 19043 "configure" |
422107f9 | 19043 | #include "confdefs.h" |
009fead0 VZ |
19044 | /* System header to define __stub macros and hopefully few prototypes |
19045 | else | |
a0b9e27f MB |
19046 | echo "$ac_t""no" 1>&6 |
19047 | which can conflict with char sched_get_priority_max(); below. */ | |
009fead0 | 19048 | #include <assert.h> |
4f14bcd8 GD |
19049 | /* Override any gcc2 internal prototype to avoid an error. */ |
19050 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19051 | builtin and then its argument prototype would still apply. */ |
19052 | char sched_get_priority_max(); | |
19053 | ||
19054 | int main() { | |
19055 | ||
009fead0 VZ |
19056 | /* The GNU C library defines this for functions which it implements |
19057 | to always fail with ENOSYS. Some functions are actually named | |
19058 | something starting with __ and the normal name is an alias. */ | |
19059 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
19060 | choke me | |
19061 | #else | |
a0b9e27f | 19062 | sched_get_priority_max(); |
009fead0 VZ |
19063 | #endif |
19064 | ||
a0b9e27f MB |
19065 | ; return 0; } |
19066 | EOF | |
da494b40 | 19067 | if { (eval echo configure:19068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19068 | rm -rf conftest* |
19069 | eval "ac_cv_func_sched_get_priority_max=yes" | |
19070 | else | |
19071 | echo "configure: failed program was:" >&5 | |
19072 | cat conftest.$ac_ext >&5 | |
19073 | rm -rf conftest* | |
19074 | eval "ac_cv_func_sched_get_priority_max=no" | |
19075 | fi | |
19076 | rm -f conftest* | |
19077 | fi | |
19078 | ||
19079 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
19080 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
19081 | HAVE_PRIOR_FUNCS=1 |
19082 | else | |
a0b9e27f MB |
19083 | echo "$ac_t""no" 1>&6 |
19084 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
da494b40 | 19085 | echo "configure:19086: checking for sched_get_priority_max in -lposix4" >&5 |
a0b9e27f MB |
19086 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
19087 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19088 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 19089 | else |
a0b9e27f | 19090 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 19091 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 19092 | cat > conftest.$ac_ext <<EOF |
da494b40 | 19093 | #line 19094 "configure" |
422107f9 VZ |
19094 | #include "confdefs.h" |
19095 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19096 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19097 | builtin and then its argument prototype would still apply. */ |
19098 | char sched_get_priority_max(); | |
19099 | ||
19100 | int main() { | |
19101 | sched_get_priority_max() | |
19102 | ; return 0; } | |
19103 | EOF | |
da494b40 | 19104 | if { (eval echo configure:19105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19105 | rm -rf conftest* |
19106 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19107 | else | |
19108 | echo "configure: failed program was:" >&5 | |
19109 | cat conftest.$ac_ext >&5 | |
19110 | rm -rf conftest* | |
19111 | eval "ac_cv_lib_$ac_lib_var=no" | |
19112 | fi | |
19113 | rm -f conftest* | |
19114 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 19115 | |
a0b9e27f MB |
19116 | fi |
19117 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19118 | echo "$ac_t""yes" 1>&6 | |
19119 | ||
7274f1c7 RL |
19120 | HAVE_PRIOR_FUNCS=1 |
19121 | POSIX4_LINK=" -lposix4" | |
a0b9e27f MB |
19122 | |
19123 | else | |
19124 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 19125 | fi |
463abc64 | 19126 | |
a0b9e27f | 19127 | |
328a083c | 19128 | fi |
463abc64 | 19129 | |
a0b9e27f MB |
19130 | |
19131 | else | |
19132 | echo "$ac_t""no" 1>&6 | |
7b4a847f | 19133 | fi |
579d8138 | 19134 | |
a0b9e27f | 19135 | |
5c6fa7d2 | 19136 | fi |
52127426 | 19137 | |
8284b0c5 | 19138 | |
7274f1c7 | 19139 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
a0b9e27f | 19140 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19141 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
a0b9e27f | 19142 | EOF |
463abc64 | 19143 | |
7274f1c7 | 19144 | else |
a0b9e27f | 19145 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
7274f1c7 | 19146 | fi |
463abc64 | 19147 | |
a0b9e27f | 19148 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
da494b40 | 19149 | echo "configure:19150: checking for pthread_cancel" >&5 |
a0b9e27f MB |
19150 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
19151 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 19152 | else |
a0b9e27f | 19153 | cat > conftest.$ac_ext <<EOF |
da494b40 | 19154 | #line 19155 "configure" |
422107f9 | 19155 | #include "confdefs.h" |
009fead0 | 19156 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19157 | which can conflict with char pthread_cancel(); below. */ |
009fead0 | 19158 | #include <assert.h> |
422107f9 VZ |
19159 | /* Override any gcc2 internal prototype to avoid an error. */ |
19160 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19161 | builtin and then its argument prototype would still apply. */ |
19162 | char pthread_cancel(); | |
19163 | ||
19164 | int main() { | |
19165 | ||
009fead0 VZ |
19166 | /* The GNU C library defines this for functions which it implements |
19167 | to always fail with ENOSYS. Some functions are actually named | |
19168 | something starting with __ and the normal name is an alias. */ | |
19169 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
19170 | choke me | |
19171 | #else | |
a0b9e27f | 19172 | pthread_cancel(); |
009fead0 VZ |
19173 | #endif |
19174 | ||
a0b9e27f MB |
19175 | ; return 0; } |
19176 | EOF | |
da494b40 | 19177 | if { (eval echo configure:19178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19178 | rm -rf conftest* |
19179 | eval "ac_cv_func_pthread_cancel=yes" | |
19180 | else | |
19181 | echo "configure: failed program was:" >&5 | |
19182 | cat conftest.$ac_ext >&5 | |
19183 | rm -rf conftest* | |
19184 | eval "ac_cv_func_pthread_cancel=no" | |
19185 | fi | |
19186 | rm -f conftest* | |
19187 | fi | |
19188 | ||
19189 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
19190 | echo "$ac_t""yes" 1>&6 | |
19191 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 19192 | #define HAVE_PTHREAD_CANCEL 1 |
a0b9e27f | 19193 | EOF |
4f14bcd8 | 19194 | |
698dcdb6 | 19195 | else |
a0b9e27f MB |
19196 | echo "$ac_t""no" 1>&6 |
19197 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
422107f9 VZ |
19198 | fi |
19199 | ||
5c6fa7d2 | 19200 | |
a0b9e27f | 19201 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
da494b40 | 19202 | echo "configure:19203: checking for pthread_cleanup_push/pop" >&5 |
a0b9e27f MB |
19203 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
19204 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 19205 | else |
a0b9e27f MB |
19206 | |
19207 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 19208 | #line 19209 "configure" |
4f14bcd8 GD |
19209 | #include "confdefs.h" |
19210 | #include <pthread.h> | |
a0b9e27f | 19211 | int main() { |
4f14bcd8 | 19212 | |
7274f1c7 RL |
19213 | pthread_cleanup_push(NULL, NULL); |
19214 | pthread_cleanup_pop(0); | |
a0b9e27f MB |
19215 | |
19216 | ; return 0; } | |
19217 | EOF | |
da494b40 | 19218 | if { (eval echo configure:19219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19219 | rm -rf conftest* |
19220 | ||
7274f1c7 | 19221 | wx_cv_func_pthread_cleanup_push=yes |
a0b9e27f | 19222 | |
4f14bcd8 | 19223 | else |
a0b9e27f MB |
19224 | echo "configure: failed program was:" >&5 |
19225 | cat conftest.$ac_ext >&5 | |
19226 | rm -rf conftest* | |
19227 | ||
7274f1c7 | 19228 | wx_cv_func_pthread_cleanup_push=no |
a0b9e27f | 19229 | |
5c6fa7d2 | 19230 | fi |
a0b9e27f MB |
19231 | rm -f conftest* |
19232 | ||
247f5006 | 19233 | fi |
a0b9e27f MB |
19234 | |
19235 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
4f14bcd8 | 19236 | |
7274f1c7 | 19237 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
a0b9e27f | 19238 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19239 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
a0b9e27f | 19240 | EOF |
c7a2bf27 | 19241 | |
7274f1c7 | 19242 | fi |
4f14bcd8 | 19243 | |
a0b9e27f MB |
19244 | |
19245 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
da494b40 | 19246 | echo "configure:19247: checking for pthread_mutexattr_t" >&5 |
a0b9e27f MB |
19247 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
19248 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 19249 | else |
a0b9e27f MB |
19250 | |
19251 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 19252 | #line 19253 "configure" |
0dcf9893 | 19253 | #include "confdefs.h" |
4f14bcd8 | 19254 | #include <pthread.h> |
a0b9e27f | 19255 | int main() { |
4f14bcd8 | 19256 | |
7274f1c7 RL |
19257 | pthread_mutexattr_t attr; |
19258 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
a0b9e27f MB |
19259 | |
19260 | ; return 0; } | |
19261 | EOF | |
da494b40 | 19262 | if { (eval echo configure:19263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19263 | rm -rf conftest* |
19264 | ||
7274f1c7 | 19265 | wx_cv_type_pthread_mutexattr_t=yes |
a0b9e27f | 19266 | |
3fed1840 | 19267 | else |
a0b9e27f MB |
19268 | echo "configure: failed program was:" >&5 |
19269 | cat conftest.$ac_ext >&5 | |
19270 | rm -rf conftest* | |
19271 | ||
7274f1c7 | 19272 | wx_cv_type_pthread_mutexattr_t=no |
a0b9e27f MB |
19273 | |
19274 | ||
5c6fa7d2 | 19275 | fi |
a0b9e27f MB |
19276 | rm -f conftest* |
19277 | ||
247f5006 | 19278 | fi |
a0b9e27f MB |
19279 | |
19280 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
4f14bcd8 | 19281 | |
7274f1c7 | 19282 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
a0b9e27f | 19283 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19284 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
a0b9e27f | 19285 | EOF |
4f14bcd8 | 19286 | |
7274f1c7 | 19287 | else |
a0b9e27f | 19288 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
da494b40 | 19289 | echo "configure:19290: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
a0b9e27f MB |
19290 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
19291 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19292 | else | |
19293 | ||
19294 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 19295 | #line 19296 "configure" |
3fed1840 | 19296 | #include "confdefs.h" |
4f14bcd8 | 19297 | #include <pthread.h> |
a0b9e27f | 19298 | int main() { |
4f14bcd8 | 19299 | |
7274f1c7 | 19300 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
a0b9e27f MB |
19301 | |
19302 | ; return 0; } | |
19303 | EOF | |
da494b40 | 19304 | if { (eval echo configure:19305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19305 | rm -rf conftest* |
19306 | ||
7274f1c7 | 19307 | wx_cv_type_pthread_rec_mutex_init=yes |
a0b9e27f | 19308 | |
698dcdb6 | 19309 | else |
a0b9e27f MB |
19310 | echo "configure: failed program was:" >&5 |
19311 | cat conftest.$ac_ext >&5 | |
19312 | rm -rf conftest* | |
19313 | ||
7274f1c7 | 19314 | wx_cv_type_pthread_rec_mutex_init=no |
a0b9e27f MB |
19315 | |
19316 | ||
5c6fa7d2 | 19317 | fi |
a0b9e27f MB |
19318 | rm -f conftest* |
19319 | ||
247f5006 | 19320 | fi |
a0b9e27f MB |
19321 | |
19322 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
7274f1c7 | 19323 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
a0b9e27f | 19324 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19325 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
a0b9e27f | 19326 | EOF |
3fed1840 | 19327 | |
7274f1c7 | 19328 | else |
a0b9e27f | 19329 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
7274f1c7 RL |
19330 | fi |
19331 | fi | |
7274f1c7 | 19332 | fi |
3fed1840 | 19333 | |
a0b9e27f MB |
19334 | else |
19335 | if test "$wxUSE_THREADS" = "yes" ; then | |
19336 | case "${host}" in | |
19337 | *-*-mingw32* ) | |
ca8e52b3 | 19338 | echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6 |
da494b40 | 19339 | echo "configure:19340: checking if compiler supports -mthreads" >&5 |
ca8e52b3 VZ |
19340 | if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then |
19341 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19342 | else | |
19343 | ||
19344 | CFLAGS_OLD="$CFLAGS" | |
19345 | CFLAGS="$CFLAGS -mthreads" | |
19346 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 19347 | #line 19348 "configure" |
ca8e52b3 VZ |
19348 | #include "confdefs.h" |
19349 | ||
19350 | int main() { | |
19351 | ||
19352 | ; return 0; } | |
19353 | EOF | |
da494b40 | 19354 | if { (eval echo configure:19355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ca8e52b3 VZ |
19355 | rm -rf conftest* |
19356 | wx_cv_cflags_mthread=yes | |
19357 | else | |
19358 | echo "configure: failed program was:" >&5 | |
19359 | cat conftest.$ac_ext >&5 | |
19360 | rm -rf conftest* | |
19361 | wx_cv_cflags_mthread=no | |
19362 | ||
19363 | fi | |
19364 | rm -f conftest* | |
19365 | ||
19366 | ||
19367 | fi | |
19368 | ||
19369 | echo "$ac_t""$wx_cv_cflags_mthread" 1>&6 | |
19370 | ||
19371 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
19372 | CXXFLAGS="$CXXFLAGS -mthreads" | |
19373 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
19374 | LDFLAGS="$LDFLAGS -mthreads" | |
19375 | else | |
19376 | CFLAGS="$CFLAGS_OLD" | |
19377 | fi | |
a0b9e27f MB |
19378 | ;; |
19379 | esac | |
19380 | fi | |
4f14bcd8 GD |
19381 | fi |
19382 | ||
19383 | if test "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 19384 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19385 | #define wxUSE_THREADS 1 |
a0b9e27f | 19386 | EOF |
7b6058cd | 19387 | |
8284b0c5 | 19388 | |
4f14bcd8 | 19389 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 19390 | else |
4f14bcd8 | 19391 | if test "$ac_cv_func_strtok_r" = "yes"; then |
a0b9e27f | 19392 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
da494b40 | 19393 | echo "configure:19394: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
19394 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
19395 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
a0b9e27f | 19396 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 19397 | else |
a0b9e27f | 19398 | echo "$ac_t""no" 1>&6 |
4f14bcd8 GD |
19399 | fi |
19400 | fi | |
19401 | fi | |
19402 | ||
19403 | if test "$WXGTK20" = 1 ; then | |
a0b9e27f | 19404 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19405 | #define __WXGTK20__ $WXGTK20 |
a0b9e27f | 19406 | EOF |
4f14bcd8 GD |
19407 | |
19408 | WXGTK12=1 | |
10f2d63a | 19409 | fi |
4f14bcd8 GD |
19410 | |
19411 | if test "$WXGTK12" = 1 ; then | |
a0b9e27f | 19412 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19413 | #define __WXGTK12__ $WXGTK12 |
a0b9e27f | 19414 | EOF |
4f14bcd8 | 19415 | |
10f2d63a | 19416 | fi |
698dcdb6 | 19417 | |
4f14bcd8 | 19418 | if test "$WXGTK127" = 1 ; then |
a0b9e27f | 19419 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19420 | #define __WXGTK127__ $WXGTK127 |
a0b9e27f | 19421 | EOF |
4f14bcd8 | 19422 | |
698dcdb6 | 19423 | fi |
10f2d63a | 19424 | |
4f14bcd8 GD |
19425 | WXDEBUG= |
19426 | ||
19427 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
19428 | WXDEBUG="-g" | |
19429 | wxUSE_OPTIMISE=no | |
698dcdb6 | 19430 | fi |
4f14bcd8 GD |
19431 | |
19432 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
19433 | wxUSE_DEBUG_INFO=yes | |
19434 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
19435 | fi |
19436 | ||
4f14bcd8 | 19437 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
a0b9e27f | 19438 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19439 | #define WXDEBUG 1 |
a0b9e27f | 19440 | EOF |
4f14bcd8 GD |
19441 | |
19442 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 19443 | else |
4f14bcd8 GD |
19444 | if test "$wxUSE_GTK" = 1 ; then |
19445 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
19446 | fi | |
19447 | fi | |
19448 | ||
19449 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
a0b9e27f | 19450 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19451 | #define wxUSE_MEMORY_TRACING 1 |
a0b9e27f | 19452 | EOF |
4f14bcd8 | 19453 | |
a0b9e27f | 19454 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19455 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
a0b9e27f | 19456 | EOF |
4f14bcd8 | 19457 | |
a0b9e27f | 19458 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19459 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
a0b9e27f | 19460 | EOF |
4f14bcd8 GD |
19461 | |
19462 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
19463 | fi | |
19464 | ||
19465 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 19466 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
19467 | fi |
19468 | ||
19469 | PROFILE= | |
19470 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 19471 | PROFILE=" -pg" |
10f2d63a VZ |
19472 | fi |
19473 | ||
009fead0 VZ |
19474 | CODE_GEN_FLAGS= |
19475 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 19476 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
19477 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
19478 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 19479 | fi |
4f14bcd8 GD |
19480 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
19481 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
19482 | fi | |
19483 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
19484 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
19485 | fi | |
4f14bcd8 GD |
19486 | if test "$USE_WIN32" = 1 ; then |
19487 | # I'm not even really sure what this was ever added to solve, | |
19488 | # but someone added it for mingw native builds, so I guess | |
19489 | # they had a reason, right?? | |
19490 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
19491 | fi | |
1d1b75ac | 19492 | |
2b5f62a0 | 19493 | case "${host}" in |
1d1b75ac VZ |
19494 | powerpc*-*-aix* ) |
19495 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
19496 | ;; | |
2b5f62a0 VZ |
19497 | *-hppa* ) |
19498 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
19499 | ;; | |
1d1b75ac | 19500 | esac |
4f14bcd8 GD |
19501 | fi |
19502 | ||
af7b5345 | 19503 | OPTIMISE= |
4f14bcd8 | 19504 | if test "$wxUSE_OPTIMISE" = "no" ; then |
af7b5345 VZ |
19505 | if test "$GCC" = yes ; then |
19506 | OPTIMISE="-O0" | |
19507 | fi | |
4f14bcd8 GD |
19508 | else |
19509 | if test "$GCC" = yes ; then | |
19510 | OPTIMISE="-O2" | |
af7b5345 VZ |
19511 | |
19512 | case "${host}" in | |
4f14bcd8 GD |
19513 | i586-*-*|i686-*-* ) |
19514 | OPTIMISE="${OPTIMISE} " | |
19515 | ;; | |
19516 | esac | |
19517 | else | |
19518 | OPTIMISE="-O" | |
19519 | fi | |
19520 | fi | |
19521 | ||
8d90d2f2 | 19522 | |
4f14bcd8 | 19523 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
a0b9e27f | 19524 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19525 | #define WXWIN_COMPATIBILITY_2 1 |
a0b9e27f | 19526 | EOF |
4f14bcd8 | 19527 | |
8284b0c5 | 19528 | |
4f14bcd8 GD |
19529 | WXWIN_COMPATIBILITY_2_2="yes" |
19530 | fi | |
19531 | ||
65d8ef1e | 19532 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
a0b9e27f | 19533 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19534 | #define WXWIN_COMPATIBILITY_2_2 1 |
a0b9e27f | 19535 | EOF |
4f14bcd8 | 19536 | |
8d90d2f2 VZ |
19537 | |
19538 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
19539 | fi |
19540 | ||
65d8ef1e VS |
19541 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
19542 | cat >> confdefs.h <<\EOF | |
19543 | #define WXWIN_COMPATIBILITY_2_4 1 | |
19544 | EOF | |
19545 | ||
19546 | fi | |
19547 | ||
8284b0c5 | 19548 | |
10f2d63a | 19549 | if test "$wxUSE_GUI" = "yes"; then |
a0b9e27f | 19550 | cat >> confdefs.h <<\EOF |
10f2d63a | 19551 | #define wxUSE_GUI 1 |
a0b9e27f | 19552 | EOF |
10f2d63a | 19553 | |
8284b0c5 | 19554 | |
10f2d63a | 19555 | else |
a0b9e27f | 19556 | cat >> confdefs.h <<\EOF |
10f2d63a | 19557 | #define wxUSE_NOGUI 1 |
a0b9e27f | 19558 | EOF |
10f2d63a VZ |
19559 | |
19560 | fi | |
19561 | ||
8284b0c5 | 19562 | |
10f2d63a | 19563 | if test "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 19564 | cat >> confdefs.h <<\EOF |
10f2d63a | 19565 | #define wxUSE_UNIX 1 |
a0b9e27f | 19566 | EOF |
10f2d63a VZ |
19567 | |
19568 | fi | |
19569 | ||
8284b0c5 | 19570 | |
10f2d63a | 19571 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
a0b9e27f | 19572 | cat >> confdefs.h <<\EOF |
10f2d63a | 19573 | #define wxUSE_APPLE_IEEE 1 |
a0b9e27f | 19574 | EOF |
10f2d63a VZ |
19575 | |
19576 | fi | |
19577 | ||
1e6feb95 | 19578 | if test "$wxUSE_TIMER" = "yes"; then |
a0b9e27f | 19579 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19580 | #define wxUSE_TIMER 1 |
a0b9e27f | 19581 | EOF |
1e6feb95 VZ |
19582 | |
19583 | fi | |
19584 | ||
10f2d63a | 19585 | if test "$wxUSE_WAVE" = "yes"; then |
a0b9e27f | 19586 | cat >> confdefs.h <<\EOF |
10f2d63a | 19587 | #define wxUSE_WAVE 1 |
a0b9e27f | 19588 | EOF |
10f2d63a VZ |
19589 | |
19590 | fi | |
19591 | ||
1e6feb95 | 19592 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
a0b9e27f | 19593 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19594 | #define wxUSE_CMDLINE_PARSER 1 |
a0b9e27f | 19595 | EOF |
1e6feb95 VZ |
19596 | |
19597 | fi | |
19598 | ||
19599 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
a0b9e27f | 19600 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19601 | #define wxUSE_STOPWATCH 1 |
a0b9e27f | 19602 | EOF |
1e6feb95 VZ |
19603 | |
19604 | fi | |
19605 | ||
19606 | if test "$wxUSE_DATETIME" = "yes"; then | |
a0b9e27f | 19607 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19608 | #define wxUSE_DATETIME 1 |
a0b9e27f | 19609 | EOF |
1e6feb95 VZ |
19610 | |
19611 | fi | |
19612 | ||
19613 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
a0b9e27f | 19614 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19615 | #define wxUSE_TIMEDATE 1 |
a0b9e27f | 19616 | EOF |
1e6feb95 VZ |
19617 | |
19618 | fi | |
19619 | ||
10f2d63a | 19620 | if test "$wxUSE_FILE" = "yes"; then |
a0b9e27f | 19621 | cat >> confdefs.h <<\EOF |
10f2d63a | 19622 | #define wxUSE_FILE 1 |
a0b9e27f | 19623 | EOF |
10f2d63a VZ |
19624 | |
19625 | fi | |
19626 | ||
1e6feb95 | 19627 | if test "$wxUSE_FFILE" = "yes"; then |
a0b9e27f | 19628 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19629 | #define wxUSE_FFILE 1 |
a0b9e27f | 19630 | EOF |
1e6feb95 VZ |
19631 | |
19632 | fi | |
19633 | ||
24528b0c | 19634 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
a0b9e27f | 19635 | cat >> confdefs.h <<\EOF |
24528b0c | 19636 | #define wxUSE_FILESYSTEM 1 |
a0b9e27f | 19637 | EOF |
24528b0c VS |
19638 | |
19639 | fi | |
19640 | ||
10f2d63a | 19641 | if test "$wxUSE_FS_INET" = "yes"; then |
a0b9e27f | 19642 | cat >> confdefs.h <<\EOF |
10f2d63a | 19643 | #define wxUSE_FS_INET 1 |
a0b9e27f | 19644 | EOF |
10f2d63a VZ |
19645 | |
19646 | fi | |
19647 | ||
19648 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
a0b9e27f | 19649 | cat >> confdefs.h <<\EOF |
10f2d63a | 19650 | #define wxUSE_FS_ZIP 1 |
a0b9e27f | 19651 | EOF |
10f2d63a VZ |
19652 | |
19653 | fi | |
19654 | ||
19655 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
a0b9e27f | 19656 | cat >> confdefs.h <<\EOF |
10f2d63a | 19657 | #define wxUSE_ZIPSTREAM 1 |
a0b9e27f | 19658 | EOF |
10f2d63a VZ |
19659 | |
19660 | fi | |
19661 | ||
eb4efbdc | 19662 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
a0b9e27f | 19663 | cat >> confdefs.h <<\EOF |
eb4efbdc | 19664 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
a0b9e27f | 19665 | EOF |
eb4efbdc VZ |
19666 | |
19667 | fi | |
19668 | ||
4f3c5f06 | 19669 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 19670 | cat >> confdefs.h <<\EOF |
4f3c5f06 | 19671 | #define wxUSE_SNGLINST_CHECKER 1 |
a0b9e27f | 19672 | EOF |
4f3c5f06 VZ |
19673 | |
19674 | fi | |
19675 | ||
10f2d63a | 19676 | if test "$wxUSE_BUSYINFO" = "yes"; then |
a0b9e27f | 19677 | cat >> confdefs.h <<\EOF |
10f2d63a | 19678 | #define wxUSE_BUSYINFO 1 |
a0b9e27f | 19679 | EOF |
10f2d63a VZ |
19680 | |
19681 | fi | |
19682 | ||
19683 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
a0b9e27f | 19684 | cat >> confdefs.h <<\EOF |
10f2d63a | 19685 | #define wxUSE_STD_IOSTREAM 1 |
a0b9e27f | 19686 | EOF |
10f2d63a VZ |
19687 | |
19688 | fi | |
19689 | ||
a3a584a7 | 19690 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
a0b9e27f | 19691 | cat >> confdefs.h <<\EOF |
a3a584a7 | 19692 | #define wxUSE_TEXTBUFFER 1 |
a0b9e27f | 19693 | EOF |
a3a584a7 VZ |
19694 | |
19695 | fi | |
19696 | ||
10f2d63a | 19697 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 19698 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
a0b9e27f | 19699 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 19700 | else |
a0b9e27f | 19701 | cat >> confdefs.h <<\EOF |
10f2d63a | 19702 | #define wxUSE_TEXTFILE 1 |
a0b9e27f | 19703 | EOF |
10f2d63a VZ |
19704 | |
19705 | fi | |
19706 | fi | |
19707 | ||
19708 | if test "$wxUSE_CONFIG" = "yes" ; then | |
19709 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
a0b9e27f | 19710 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 19711 | else |
a0b9e27f | 19712 | cat >> confdefs.h <<\EOF |
10f2d63a | 19713 | #define wxUSE_CONFIG 1 |
a0b9e27f | 19714 | EOF |
10f2d63a VZ |
19715 | |
19716 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
19717 | fi | |
19718 | fi | |
19719 | ||
19720 | if test "$wxUSE_INTL" = "yes" ; then | |
19721 | if test "$wxUSE_FILE" != "yes"; then | |
a0b9e27f | 19722 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 19723 | else |
a0b9e27f | 19724 | cat >> confdefs.h <<\EOF |
10f2d63a | 19725 | #define wxUSE_INTL 1 |
a0b9e27f | 19726 | EOF |
10f2d63a VZ |
19727 | |
19728 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 19729 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
19730 | fi |
19731 | fi | |
19732 | ||
19733 | if test "$wxUSE_LOG" = "yes"; then | |
a0b9e27f | 19734 | cat >> confdefs.h <<\EOF |
10f2d63a | 19735 | #define wxUSE_LOG 1 |
a0b9e27f | 19736 | EOF |
10f2d63a | 19737 | |
8284b0c5 | 19738 | |
d73be714 | 19739 | if test "$wxUSE_LOGGUI" = "yes"; then |
a0b9e27f | 19740 | cat >> confdefs.h <<\EOF |
d73be714 | 19741 | #define wxUSE_LOGGUI 1 |
a0b9e27f | 19742 | EOF |
d73be714 VZ |
19743 | |
19744 | fi | |
19745 | ||
19746 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
a0b9e27f | 19747 | cat >> confdefs.h <<\EOF |
d73be714 | 19748 | #define wxUSE_LOGWINDOW 1 |
a0b9e27f | 19749 | EOF |
69d27ff7 MB |
19750 | |
19751 | fi | |
19752 | ||
19753 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
a0b9e27f | 19754 | cat >> confdefs.h <<\EOF |
69d27ff7 | 19755 | #define wxUSE_LOG_DIALOG 1 |
a0b9e27f | 19756 | EOF |
d73be714 VZ |
19757 | |
19758 | fi | |
10f2d63a VZ |
19759 | fi |
19760 | ||
19761 | if test "$wxUSE_LONGLONG" = "yes"; then | |
a0b9e27f | 19762 | cat >> confdefs.h <<\EOF |
10f2d63a | 19763 | #define wxUSE_LONGLONG 1 |
a0b9e27f | 19764 | EOF |
10f2d63a VZ |
19765 | |
19766 | fi | |
19767 | ||
e8f65ba6 | 19768 | if test "$wxUSE_GEOMETRY" = "yes"; then |
a0b9e27f | 19769 | cat >> confdefs.h <<\EOF |
e8f65ba6 | 19770 | #define wxUSE_GEOMETRY 1 |
a0b9e27f | 19771 | EOF |
e8f65ba6 RR |
19772 | |
19773 | fi | |
19774 | ||
10f2d63a | 19775 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
a0b9e27f | 19776 | cat >> confdefs.h <<\EOF |
10f2d63a | 19777 | #define wxUSE_DIALUP_MANAGER 1 |
a0b9e27f | 19778 | EOF |
10f2d63a | 19779 | |
70f7a477 | 19780 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
19781 | fi |
19782 | ||
19783 | if test "$wxUSE_STREAMS" = "yes" ; then | |
a0b9e27f | 19784 | cat >> confdefs.h <<\EOF |
10f2d63a | 19785 | #define wxUSE_STREAMS 1 |
a0b9e27f | 19786 | EOF |
10f2d63a VZ |
19787 | |
19788 | fi | |
19789 | ||
5c6fa7d2 | 19790 | |
8284b0c5 | 19791 | if test "$wxUSE_DATETIME" = "yes"; then |
a0b9e27f | 19792 | for ac_func in strptime |
83307f33 | 19793 | do |
a0b9e27f | 19794 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 19795 | echo "configure:19796: checking for $ac_func" >&5 |
a0b9e27f MB |
19796 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19797 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19798 | else | |
19799 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 19800 | #line 19801 "configure" |
83307f33 VZ |
19801 | #include "confdefs.h" |
19802 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19803 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
19804 | #include <assert.h> |
19805 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19806 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19807 | builtin and then its argument prototype would still apply. */ |
19808 | char $ac_func(); | |
19809 | ||
19810 | int main() { | |
19811 | ||
83307f33 VZ |
19812 | /* The GNU C library defines this for functions which it implements |
19813 | to always fail with ENOSYS. Some functions are actually named | |
19814 | something starting with __ and the normal name is an alias. */ | |
19815 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19816 | choke me | |
19817 | #else | |
a0b9e27f | 19818 | $ac_func(); |
83307f33 VZ |
19819 | #endif |
19820 | ||
a0b9e27f MB |
19821 | ; return 0; } |
19822 | EOF | |
da494b40 | 19823 | if { (eval echo configure:19824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19824 | rm -rf conftest* |
19825 | eval "ac_cv_func_$ac_func=yes" | |
19826 | else | |
19827 | echo "configure: failed program was:" >&5 | |
19828 | cat conftest.$ac_ext >&5 | |
19829 | rm -rf conftest* | |
19830 | eval "ac_cv_func_$ac_func=no" | |
19831 | fi | |
19832 | rm -f conftest* | |
19833 | fi | |
83307f33 | 19834 | |
a0b9e27f MB |
19835 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
19836 | echo "$ac_t""yes" 1>&6 | |
19837 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19838 | cat >> confdefs.h <<EOF | |
19839 | #define $ac_tr_func 1 | |
19840 | EOF | |
19841 | ||
19842 | else | |
19843 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
19844 | fi |
19845 | done | |
19846 | ||
5c6fa7d2 | 19847 | |
a0b9e27f | 19848 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
da494b40 | 19849 | echo "configure:19850: checking for timezone variable in <time.h>" >&5 |
a0b9e27f MB |
19850 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
19851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 19852 | else |
a0b9e27f MB |
19853 | |
19854 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 19855 | #line 19856 "configure" |
360d6699 VZ |
19856 | #include "confdefs.h" |
19857 | ||
b4085ce6 | 19858 | #include <time.h> |
a0b9e27f MB |
19859 | |
19860 | int main() { | |
360d6699 VZ |
19861 | |
19862 | int tz; | |
4f11a343 | 19863 | tz = timezone; |
a0b9e27f MB |
19864 | |
19865 | ; return 0; } | |
19866 | EOF | |
da494b40 | 19867 | if { (eval echo configure:19868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19868 | rm -rf conftest* |
19869 | ||
4f11a343 | 19870 | wx_cv_var_timezone=timezone |
a0b9e27f | 19871 | |
360d6699 | 19872 | else |
a0b9e27f MB |
19873 | echo "configure: failed program was:" >&5 |
19874 | cat conftest.$ac_ext >&5 | |
19875 | rm -rf conftest* | |
19876 | ||
19877 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 19878 | #line 19879 "configure" |
360d6699 VZ |
19879 | #include "confdefs.h" |
19880 | ||
b4085ce6 | 19881 | #include <time.h> |
a0b9e27f MB |
19882 | |
19883 | int main() { | |
360d6699 VZ |
19884 | |
19885 | int tz; | |
19886 | tz = _timezone; | |
a0b9e27f MB |
19887 | |
19888 | ; return 0; } | |
19889 | EOF | |
da494b40 | 19890 | if { (eval echo configure:19891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19891 | rm -rf conftest* |
19892 | ||
360d6699 | 19893 | wx_cv_var_timezone=_timezone |
a0b9e27f | 19894 | |
5357c8e8 | 19895 | else |
a0b9e27f MB |
19896 | echo "configure: failed program was:" >&5 |
19897 | cat conftest.$ac_ext >&5 | |
19898 | rm -rf conftest* | |
19899 | ||
19900 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 19901 | #line 19902 "configure" |
5357c8e8 VZ |
19902 | #include "confdefs.h" |
19903 | ||
b4085ce6 | 19904 | #include <time.h> |
a0b9e27f MB |
19905 | |
19906 | int main() { | |
5357c8e8 VZ |
19907 | |
19908 | int tz; | |
4f11a343 | 19909 | tz = __timezone; |
a0b9e27f MB |
19910 | |
19911 | ; return 0; } | |
19912 | EOF | |
da494b40 | 19913 | if { (eval echo configure:19914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19914 | rm -rf conftest* |
19915 | ||
4f11a343 | 19916 | wx_cv_var_timezone=__timezone |
a0b9e27f | 19917 | |
360d6699 | 19918 | else |
a0b9e27f MB |
19919 | echo "configure: failed program was:" >&5 |
19920 | cat conftest.$ac_ext >&5 | |
19921 | rm -rf conftest* | |
19922 | ||
f9bc1684 | 19923 | if test "$USE_DOS" = 0 ; then |
a0b9e27f | 19924 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 | 19925 | fi |
a0b9e27f MB |
19926 | |
19927 | ||
328a083c | 19928 | fi |
a0b9e27f MB |
19929 | rm -f conftest* |
19930 | ||
19931 | ||
7b4a847f | 19932 | fi |
a0b9e27f MB |
19933 | rm -f conftest* |
19934 | ||
19935 | ||
5c6fa7d2 | 19936 | fi |
a0b9e27f MB |
19937 | rm -f conftest* |
19938 | ||
19939 | ||
247f5006 | 19940 | fi |
a0b9e27f MB |
19941 | |
19942 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
698dcdb6 | 19943 | |
f9bc1684 | 19944 | if test "x$wx_cv_var_timezone" != x ; then |
a0b9e27f | 19945 | cat >> confdefs.h <<EOF |
360d6699 | 19946 | #define WX_TIMEZONE $wx_cv_var_timezone |
a0b9e27f | 19947 | EOF |
360d6699 | 19948 | |
f9bc1684 | 19949 | fi |
698dcdb6 | 19950 | |
a0b9e27f | 19951 | for ac_func in localtime |
afc31813 | 19952 | do |
a0b9e27f | 19953 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 19954 | echo "configure:19955: checking for $ac_func" >&5 |
a0b9e27f MB |
19955 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19956 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19957 | else | |
19958 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 19959 | #line 19960 "configure" |
10f2d63a | 19960 | #include "confdefs.h" |
afc31813 | 19961 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19962 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
19963 | #include <assert.h> |
19964 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19965 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19966 | builtin and then its argument prototype would still apply. */ |
19967 | char $ac_func(); | |
19968 | ||
19969 | int main() { | |
19970 | ||
afc31813 VZ |
19971 | /* The GNU C library defines this for functions which it implements |
19972 | to always fail with ENOSYS. Some functions are actually named | |
19973 | something starting with __ and the normal name is an alias. */ | |
19974 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19975 | choke me | |
19976 | #else | |
a0b9e27f | 19977 | $ac_func(); |
afc31813 VZ |
19978 | #endif |
19979 | ||
a0b9e27f MB |
19980 | ; return 0; } |
19981 | EOF | |
da494b40 | 19982 | if { (eval echo configure:19983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19983 | rm -rf conftest* |
19984 | eval "ac_cv_func_$ac_func=yes" | |
19985 | else | |
19986 | echo "configure: failed program was:" >&5 | |
19987 | cat conftest.$ac_ext >&5 | |
19988 | rm -rf conftest* | |
19989 | eval "ac_cv_func_$ac_func=no" | |
19990 | fi | |
19991 | rm -f conftest* | |
19992 | fi | |
afc31813 | 19993 | |
a0b9e27f MB |
19994 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
19995 | echo "$ac_t""yes" 1>&6 | |
19996 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19997 | cat >> confdefs.h <<EOF | |
19998 | #define $ac_tr_func 1 | |
19999 | EOF | |
20000 | ||
20001 | else | |
20002 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
20003 | fi |
20004 | done | |
20005 | ||
5c6fa7d2 | 20006 | |
8284b0c5 | 20007 | if test "$ac_cv_func_localtime" = "yes"; then |
a0b9e27f | 20008 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
da494b40 | 20009 | echo "configure:20010: checking for tm_gmtoff in struct tm" >&5 |
a0b9e27f MB |
20010 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
20011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20012 | else | |
20013 | ||
20014 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 20015 | #line 20016 "configure" |
0470b1e6 VZ |
20016 | #include "confdefs.h" |
20017 | ||
b4085ce6 | 20018 | #include <time.h> |
a0b9e27f MB |
20019 | |
20020 | int main() { | |
0470b1e6 VZ |
20021 | |
20022 | struct tm tm; | |
20023 | tm.tm_gmtoff++; | |
a0b9e27f MB |
20024 | |
20025 | ; return 0; } | |
20026 | EOF | |
da494b40 | 20027 | if { (eval echo configure:20028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
20028 | rm -rf conftest* |
20029 | ||
f03a98d8 | 20030 | wx_cv_struct_tm_has_gmtoff=yes |
a0b9e27f | 20031 | |
0470b1e6 | 20032 | else |
a0b9e27f MB |
20033 | echo "configure: failed program was:" >&5 |
20034 | cat conftest.$ac_ext >&5 | |
20035 | rm -rf conftest* | |
20036 | wx_cv_struct_tm_has_gmtoff=no | |
20037 | ||
5c6fa7d2 | 20038 | fi |
a0b9e27f MB |
20039 | rm -f conftest* |
20040 | ||
247f5006 | 20041 | fi |
a0b9e27f MB |
20042 | |
20043 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
20044 | fi |
20045 | ||
20046 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
a0b9e27f | 20047 | cat >> confdefs.h <<\EOF |
6232543b | 20048 | #define WX_GMTOFF_IN_TM 1 |
a0b9e27f | 20049 | EOF |
0470b1e6 | 20050 | |
3fcdd07b VZ |
20051 | fi |
20052 | ||
a0b9e27f | 20053 | for ac_func in gettimeofday ftime |
3fcdd07b | 20054 | do |
a0b9e27f | 20055 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 20056 | echo "configure:20057: checking for $ac_func" >&5 |
a0b9e27f MB |
20057 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20058 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20059 | else | |
20060 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 20061 | #line 20062 "configure" |
3fcdd07b VZ |
20062 | #include "confdefs.h" |
20063 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20064 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
20065 | #include <assert.h> |
20066 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20067 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20068 | builtin and then its argument prototype would still apply. */ |
20069 | char $ac_func(); | |
20070 | ||
20071 | int main() { | |
20072 | ||
3fcdd07b VZ |
20073 | /* The GNU C library defines this for functions which it implements |
20074 | to always fail with ENOSYS. Some functions are actually named | |
20075 | something starting with __ and the normal name is an alias. */ | |
20076 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20077 | choke me | |
20078 | #else | |
a0b9e27f | 20079 | $ac_func(); |
3fcdd07b VZ |
20080 | #endif |
20081 | ||
a0b9e27f MB |
20082 | ; return 0; } |
20083 | EOF | |
da494b40 | 20084 | if { (eval echo configure:20085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20085 | rm -rf conftest* |
20086 | eval "ac_cv_func_$ac_func=yes" | |
20087 | else | |
20088 | echo "configure: failed program was:" >&5 | |
20089 | cat conftest.$ac_ext >&5 | |
20090 | rm -rf conftest* | |
20091 | eval "ac_cv_func_$ac_func=no" | |
20092 | fi | |
20093 | rm -f conftest* | |
20094 | fi | |
20095 | ||
20096 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20097 | echo "$ac_t""yes" 1>&6 | |
20098 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20099 | cat >> confdefs.h <<EOF | |
20100 | #define $ac_tr_func 1 | |
20101 | EOF | |
3fcdd07b | 20102 | break |
a0b9e27f MB |
20103 | else |
20104 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
20105 | fi |
20106 | done | |
20107 | ||
698dcdb6 | 20108 | |
8284b0c5 | 20109 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
a0b9e27f | 20110 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
da494b40 | 20111 | echo "configure:20112: checking whether gettimeofday takes two arguments" >&5 |
a0b9e27f MB |
20112 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
20113 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20114 | else | |
20115 | ||
20116 | ||
20117 | ac_ext=C | |
20118 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 20119 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20120 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20121 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20122 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 20123 | |
8284b0c5 | 20124 | |
a0b9e27f | 20125 | cat > conftest.$ac_ext <<EOF |
da494b40 | 20126 | #line 20127 "configure" |
10f2d63a | 20127 | #include "confdefs.h" |
afc31813 VZ |
20128 | |
20129 | #include <sys/time.h> | |
20130 | #include <unistd.h> | |
a0b9e27f MB |
20131 | |
20132 | int main() { | |
afc31813 VZ |
20133 | |
20134 | struct timeval tv; | |
776862b4 | 20135 | gettimeofday(&tv, NULL); |
a0b9e27f MB |
20136 | |
20137 | ; return 0; } | |
20138 | EOF | |
da494b40 | 20139 | if { (eval echo configure:20140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20140 | rm -rf conftest* |
afc31813 | 20141 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 20142 | else |
a0b9e27f MB |
20143 | echo "configure: failed program was:" >&5 |
20144 | cat conftest.$ac_ext >&5 | |
20145 | rm -rf conftest* | |
20146 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 20147 | #line 20148 "configure" |
10f2d63a | 20148 | #include "confdefs.h" |
afc31813 VZ |
20149 | |
20150 | #include <sys/time.h> | |
20151 | #include <unistd.h> | |
a0b9e27f MB |
20152 | |
20153 | int main() { | |
afc31813 VZ |
20154 | |
20155 | struct timeval tv; | |
20156 | gettimeofday(&tv); | |
a0b9e27f MB |
20157 | |
20158 | ; return 0; } | |
20159 | EOF | |
da494b40 | 20160 | if { (eval echo configure:20161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20161 | rm -rf conftest* |
afc31813 | 20162 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 20163 | else |
a0b9e27f MB |
20164 | echo "configure: failed program was:" >&5 |
20165 | cat conftest.$ac_ext >&5 | |
20166 | rm -rf conftest* | |
20167 | ||
20168 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
776862b4 | 20169 | wx_cv_func_gettimeofday_has_2_args=unknown |
a0b9e27f MB |
20170 | |
20171 | ||
10f2d63a | 20172 | fi |
a0b9e27f MB |
20173 | rm -f conftest* |
20174 | ||
10f2d63a | 20175 | fi |
a0b9e27f | 20176 | rm -f conftest* |
afc31813 | 20177 | ac_ext=c |
a0b9e27f | 20178 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 20179 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20180 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20181 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20182 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20183 | |
a0b9e27f | 20184 | |
247f5006 | 20185 | fi |
a0b9e27f MB |
20186 | |
20187 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 20188 | |
afc31813 | 20189 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
a0b9e27f | 20190 | cat >> confdefs.h <<\EOF |
afc31813 | 20191 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
a0b9e27f | 20192 | EOF |
afc31813 VZ |
20193 | |
20194 | fi | |
20195 | fi | |
20196 | ||
a0b9e27f | 20197 | cat >> confdefs.h <<\EOF |
afc31813 | 20198 | #define wxUSE_TIMEDATE 1 |
a0b9e27f | 20199 | EOF |
afc31813 VZ |
20200 | |
20201 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
20202 | fi | |
20203 | ||
8284b0c5 | 20204 | |
52127426 | 20205 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 20206 | if test "$wxUSE_MGL" = "1"; then |
a0b9e27f | 20207 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
20208 | wxUSE_SOCKETS="no" |
20209 | fi | |
0feee163 | 20210 | fi |
b089607b | 20211 | |
0feee163 VZ |
20212 | if test "$wxUSE_SOCKETS" = "yes"; then |
20213 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 20214 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
da494b40 | 20215 | echo "configure:20216: checking for socket" >&5 |
a0b9e27f MB |
20216 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
20217 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 20218 | else |
a0b9e27f | 20219 | cat > conftest.$ac_ext <<EOF |
da494b40 | 20220 | #line 20221 "configure" |
c63c7106 VZ |
20221 | #include "confdefs.h" |
20222 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20223 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
20224 | #include <assert.h> |
20225 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20226 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20227 | builtin and then its argument prototype would still apply. */ |
20228 | char socket(); | |
20229 | ||
20230 | int main() { | |
20231 | ||
c63c7106 VZ |
20232 | /* The GNU C library defines this for functions which it implements |
20233 | to always fail with ENOSYS. Some functions are actually named | |
20234 | something starting with __ and the normal name is an alias. */ | |
20235 | #if defined (__stub_socket) || defined (__stub___socket) | |
20236 | choke me | |
20237 | #else | |
a0b9e27f | 20238 | socket(); |
c63c7106 VZ |
20239 | #endif |
20240 | ||
a0b9e27f MB |
20241 | ; return 0; } |
20242 | EOF | |
da494b40 | 20243 | if { (eval echo configure:20244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20244 | rm -rf conftest* |
20245 | eval "ac_cv_func_socket=yes" | |
20246 | else | |
20247 | echo "configure: failed program was:" >&5 | |
20248 | cat conftest.$ac_ext >&5 | |
20249 | rm -rf conftest* | |
20250 | eval "ac_cv_func_socket=no" | |
20251 | fi | |
20252 | rm -f conftest* | |
20253 | fi | |
20254 | ||
20255 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
20256 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
20257 | : |
20258 | else | |
a0b9e27f MB |
20259 | echo "$ac_t""no" 1>&6 |
20260 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
da494b40 | 20261 | echo "configure:20262: checking for socket in -lsocket" >&5 |
a0b9e27f MB |
20262 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
20263 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20264 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 20265 | else |
a0b9e27f | 20266 | ac_save_LIBS="$LIBS" |
c63c7106 | 20267 | LIBS="-lsocket $LIBS" |
a0b9e27f | 20268 | cat > conftest.$ac_ext <<EOF |
da494b40 | 20269 | #line 20270 "configure" |
c63c7106 VZ |
20270 | #include "confdefs.h" |
20271 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20272 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20273 | builtin and then its argument prototype would still apply. */ |
20274 | char socket(); | |
20275 | ||
20276 | int main() { | |
20277 | socket() | |
20278 | ; return 0; } | |
20279 | EOF | |
da494b40 | 20280 | if { (eval echo configure:20281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20281 | rm -rf conftest* |
20282 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20283 | else | |
20284 | echo "configure: failed program was:" >&5 | |
20285 | cat conftest.$ac_ext >&5 | |
20286 | rm -rf conftest* | |
20287 | eval "ac_cv_lib_$ac_lib_var=no" | |
20288 | fi | |
20289 | rm -f conftest* | |
20290 | LIBS="$ac_save_LIBS" | |
20291 | ||
20292 | fi | |
20293 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20294 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
20295 | if test "$INET_LINK" != " -lsocket"; then |
20296 | INET_LINK="$INET_LINK -lsocket" | |
20297 | fi | |
c63c7106 | 20298 | else |
a0b9e27f | 20299 | echo "$ac_t""no" 1>&6 |
afc31813 | 20300 | |
a0b9e27f | 20301 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
3a922bb4 | 20302 | wxUSE_SOCKETS=no |
a0b9e27f MB |
20303 | |
20304 | ||
6232543b | 20305 | fi |
b089607b | 20306 | |
a0b9e27f | 20307 | |
1e487827 | 20308 | fi |
afc31813 | 20309 | |
3a922bb4 | 20310 | fi |
0feee163 | 20311 | fi |
51a9faba | 20312 | |
0feee163 VZ |
20313 | if test "$wxUSE_SOCKETS" = "yes" ; then |
20314 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 20315 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
da494b40 | 20316 | echo "configure:20317: checking what is the type of the third argument of getsockname" >&5 |
a0b9e27f MB |
20317 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
20318 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20319 | else | |
20320 | ||
20321 | ||
20322 | ac_ext=C | |
20323 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 20324 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20325 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20326 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20327 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 20328 | |
8284b0c5 | 20329 | |
a0b9e27f | 20330 | cat > conftest.$ac_ext <<EOF |
da494b40 | 20331 | #line 20332 "configure" |
afc31813 | 20332 | #include "confdefs.h" |
51a9faba | 20333 | |
3a922bb4 RL |
20334 | #include <sys/types.h> |
20335 | #include <sys/socket.h> | |
a0b9e27f MB |
20336 | |
20337 | int main() { | |
51a9faba | 20338 | |
3a922bb4 RL |
20339 | socklen_t len; |
20340 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20341 | |
20342 | ; return 0; } | |
20343 | EOF | |
da494b40 | 20344 | if { (eval echo configure:20345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20345 | rm -rf conftest* |
51a9faba | 20346 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 20347 | else |
a0b9e27f MB |
20348 | echo "configure: failed program was:" >&5 |
20349 | cat conftest.$ac_ext >&5 | |
20350 | rm -rf conftest* | |
20351 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 20352 | #line 20353 "configure" |
afc31813 | 20353 | #include "confdefs.h" |
51a9faba | 20354 | |
3a922bb4 RL |
20355 | #include <sys/types.h> |
20356 | #include <sys/socket.h> | |
a0b9e27f MB |
20357 | |
20358 | int main() { | |
51a9faba | 20359 | |
3a922bb4 RL |
20360 | size_t len; |
20361 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20362 | |
20363 | ; return 0; } | |
20364 | EOF | |
da494b40 | 20365 | if { (eval echo configure:20366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20366 | rm -rf conftest* |
51a9faba | 20367 | wx_cv_type_getsockname3=size_t |
afc31813 | 20368 | else |
a0b9e27f MB |
20369 | echo "configure: failed program was:" >&5 |
20370 | cat conftest.$ac_ext >&5 | |
20371 | rm -rf conftest* | |
20372 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 20373 | #line 20374 "configure" |
afc31813 | 20374 | #include "confdefs.h" |
51a9faba | 20375 | |
3a922bb4 RL |
20376 | #include <sys/types.h> |
20377 | #include <sys/socket.h> | |
a0b9e27f MB |
20378 | |
20379 | int main() { | |
51a9faba | 20380 | |
3a922bb4 RL |
20381 | int len; |
20382 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20383 | |
20384 | ; return 0; } | |
20385 | EOF | |
da494b40 | 20386 | if { (eval echo configure:20387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20387 | rm -rf conftest* |
51a9faba | 20388 | wx_cv_type_getsockname3=int |
afc31813 | 20389 | else |
a0b9e27f MB |
20390 | echo "configure: failed program was:" >&5 |
20391 | cat conftest.$ac_ext >&5 | |
20392 | rm -rf conftest* | |
20393 | wx_cv_type_getsockname3=unknown | |
20394 | ||
afc31813 | 20395 | fi |
a0b9e27f MB |
20396 | rm -f conftest* |
20397 | ||
afc31813 | 20398 | fi |
a0b9e27f MB |
20399 | rm -f conftest* |
20400 | ||
afc31813 | 20401 | fi |
a0b9e27f | 20402 | rm -f conftest* |
51a9faba | 20403 | |
3a922bb4 | 20404 | ac_ext=c |
a0b9e27f | 20405 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 20406 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20407 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20408 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20409 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20410 | |
a0b9e27f | 20411 | |
247f5006 | 20412 | fi |
a0b9e27f MB |
20413 | |
20414 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 20415 | |
3a922bb4 RL |
20416 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
20417 | wxUSE_SOCKETS=no | |
a0b9e27f | 20418 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
3a922bb4 | 20419 | else |
a0b9e27f | 20420 | cat >> confdefs.h <<EOF |
51a9faba | 20421 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
a0b9e27f | 20422 | EOF |
51a9faba | 20423 | |
3a922bb4 | 20424 | fi |
51a9faba VZ |
20425 | fi |
20426 | fi | |
afc31813 | 20427 | |
51a9faba | 20428 | if test "$wxUSE_SOCKETS" = "yes" ; then |
a0b9e27f | 20429 | cat >> confdefs.h <<\EOF |
afc31813 | 20430 | #define wxUSE_SOCKETS 1 |
a0b9e27f | 20431 | EOF |
afc31813 | 20432 | |
70f7a477 | 20433 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
20434 | fi |
20435 | ||
8284b0c5 | 20436 | |
dc3d889d VZ |
20437 | if test "$wxUSE_GUI" = "yes"; then |
20438 | ||
156b2523 | 20439 | if test "$TOOLKIT" = "MAC"; then |
a0b9e27f | 20440 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
20441 | wxUSE_JOYSTICK=no |
20442 | fi | |
20443 | if test "$TOOLKIT" = "MOTIF"; then | |
a0b9e27f | 20444 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 |
156b2523 | 20445 | wxUSE_JOYSTICK=no |
f79bd02d JS |
20446 | fi |
20447 | if test "$TOOLKIT" = "X11"; then | |
a0b9e27f | 20448 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 |
f79bd02d | 20449 | wxUSE_JOYSTICK=no |
156b2523 GD |
20450 | fi |
20451 | ||
3a922bb4 RL |
20452 | if test "$TOOLKIT" != "MSW"; then |
20453 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
a0b9e27f | 20454 | for ac_hdr in linux/joystick.h |
10f2d63a | 20455 | do |
a0b9e27f MB |
20456 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
20457 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
da494b40 | 20458 | echo "configure:20459: checking for $ac_hdr" >&5 |
a0b9e27f MB |
20459 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20460 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20461 | else | |
20462 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 20463 | #line 20464 "configure" |
247f5006 | 20464 | #include "confdefs.h" |
a0b9e27f MB |
20465 | #include <$ac_hdr> |
20466 | EOF | |
20467 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 20468 | { (eval echo configure:20469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
20469 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20470 | if test -z "$ac_err"; then | |
20471 | rm -rf conftest* | |
20472 | eval "ac_cv_header_$ac_safe=yes" | |
20473 | else | |
20474 | echo "$ac_err" >&5 | |
20475 | echo "configure: failed program was:" >&5 | |
247f5006 | 20476 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
20477 | rm -rf conftest* |
20478 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 20479 | fi |
a0b9e27f | 20480 | rm -f conftest* |
10f2d63a | 20481 | fi |
a0b9e27f MB |
20482 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
20483 | echo "$ac_t""yes" 1>&6 | |
20484 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20485 | cat >> confdefs.h <<EOF | |
20486 | #define $ac_tr_hdr 1 | |
20487 | EOF | |
20488 | ||
20489 | else | |
20490 | echo "$ac_t""no" 1>&6 | |
247f5006 | 20491 | fi |
10f2d63a VZ |
20492 | done |
20493 | ||
3a922bb4 RL |
20494 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
20495 | wxUSE_JOYSTICK=no | |
a0b9e27f | 20496 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
20497 | fi |
20498 | fi | |
20499 | fi | |
b089607b | 20500 | |
3a922bb4 | 20501 | if test "$wxUSE_JOYSTICK" = "yes"; then |
a0b9e27f | 20502 | cat >> confdefs.h <<\EOF |
10f2d63a | 20503 | #define wxUSE_JOYSTICK 1 |
a0b9e27f | 20504 | EOF |
10f2d63a | 20505 | |
3a922bb4 RL |
20506 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
20507 | fi | |
dc3d889d VZ |
20508 | fi |
20509 | ||
8284b0c5 | 20510 | |
b089607b VZ |
20511 | if test "$TOOLKIT" != "MSW"; then |
20512 | ||
3a922bb4 RL |
20513 | HAVE_DL_FUNCS=0 |
20514 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 20515 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
20516 | if test "$USE_DARWIN" = 1; then |
20517 | HAVE_DL_FUNCS=1 | |
20518 | else | |
a0b9e27f | 20519 | for ac_func in dlopen |
10f2d63a | 20520 | do |
a0b9e27f | 20521 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 20522 | echo "configure:20523: checking for $ac_func" >&5 |
a0b9e27f MB |
20523 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20524 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20525 | else | |
20526 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 20527 | #line 20528 "configure" |
10f2d63a VZ |
20528 | #include "confdefs.h" |
20529 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20530 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
20531 | #include <assert.h> |
20532 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20533 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20534 | builtin and then its argument prototype would still apply. */ |
20535 | char $ac_func(); | |
20536 | ||
20537 | int main() { | |
20538 | ||
10f2d63a VZ |
20539 | /* The GNU C library defines this for functions which it implements |
20540 | to always fail with ENOSYS. Some functions are actually named | |
20541 | something starting with __ and the normal name is an alias. */ | |
20542 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20543 | choke me | |
20544 | #else | |
a0b9e27f | 20545 | $ac_func(); |
10f2d63a VZ |
20546 | #endif |
20547 | ||
a0b9e27f MB |
20548 | ; return 0; } |
20549 | EOF | |
da494b40 | 20550 | if { (eval echo configure:20551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20551 | rm -rf conftest* |
20552 | eval "ac_cv_func_$ac_func=yes" | |
20553 | else | |
20554 | echo "configure: failed program was:" >&5 | |
20555 | cat conftest.$ac_ext >&5 | |
20556 | rm -rf conftest* | |
20557 | eval "ac_cv_func_$ac_func=no" | |
20558 | fi | |
20559 | rm -f conftest* | |
20560 | fi | |
20561 | ||
20562 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20563 | echo "$ac_t""yes" 1>&6 | |
20564 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20565 | cat >> confdefs.h <<EOF | |
20566 | #define $ac_tr_func 1 | |
20567 | EOF | |
20568 | ||
20569 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20570 | #define HAVE_DLOPEN 1 |
a0b9e27f | 20571 | EOF |
10f2d63a | 20572 | |
3a922bb4 | 20573 | HAVE_DL_FUNCS=1 |
a0b9e27f | 20574 | |
10f2d63a | 20575 | else |
a0b9e27f MB |
20576 | echo "$ac_t""no" 1>&6 |
20577 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
da494b40 | 20578 | echo "configure:20579: checking for dlopen in -ldl" >&5 |
a0b9e27f MB |
20579 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
20580 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20581 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20582 | else |
a0b9e27f | 20583 | ac_save_LIBS="$LIBS" |
10f2d63a | 20584 | LIBS="-ldl $LIBS" |
a0b9e27f | 20585 | cat > conftest.$ac_ext <<EOF |
da494b40 | 20586 | #line 20587 "configure" |
10f2d63a VZ |
20587 | #include "confdefs.h" |
20588 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20589 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20590 | builtin and then its argument prototype would still apply. */ |
20591 | char dlopen(); | |
20592 | ||
20593 | int main() { | |
20594 | dlopen() | |
20595 | ; return 0; } | |
20596 | EOF | |
da494b40 | 20597 | if { (eval echo configure:20598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20598 | rm -rf conftest* |
20599 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20600 | else | |
20601 | echo "configure: failed program was:" >&5 | |
20602 | cat conftest.$ac_ext >&5 | |
20603 | rm -rf conftest* | |
20604 | eval "ac_cv_lib_$ac_lib_var=no" | |
20605 | fi | |
20606 | rm -f conftest* | |
20607 | LIBS="$ac_save_LIBS" | |
20608 | ||
20609 | fi | |
20610 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20611 | echo "$ac_t""yes" 1>&6 | |
20612 | ||
20613 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20614 | #define HAVE_DLOPEN 1 |
a0b9e27f | 20615 | EOF |
10f2d63a | 20616 | |
3a922bb4 | 20617 | HAVE_DL_FUNCS=1 |
3d63bc3a | 20618 | DL_LINK=" -ldl$DL_LINK" |
a0b9e27f | 20619 | |
10f2d63a | 20620 | else |
a0b9e27f | 20621 | echo "$ac_t""no" 1>&6 |
10f2d63a | 20622 | |
a0b9e27f | 20623 | for ac_func in shl_load |
10f2d63a | 20624 | do |
a0b9e27f | 20625 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 20626 | echo "configure:20627: checking for $ac_func" >&5 |
a0b9e27f MB |
20627 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20628 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20629 | else | |
20630 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 20631 | #line 20632 "configure" |
10f2d63a VZ |
20632 | #include "confdefs.h" |
20633 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20634 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
20635 | #include <assert.h> |
20636 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20637 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20638 | builtin and then its argument prototype would still apply. */ |
20639 | char $ac_func(); | |
20640 | ||
20641 | int main() { | |
20642 | ||
10f2d63a VZ |
20643 | /* The GNU C library defines this for functions which it implements |
20644 | to always fail with ENOSYS. Some functions are actually named | |
20645 | something starting with __ and the normal name is an alias. */ | |
20646 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20647 | choke me | |
20648 | #else | |
a0b9e27f | 20649 | $ac_func(); |
10f2d63a VZ |
20650 | #endif |
20651 | ||
a0b9e27f MB |
20652 | ; return 0; } |
20653 | EOF | |
da494b40 | 20654 | if { (eval echo configure:20655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20655 | rm -rf conftest* |
20656 | eval "ac_cv_func_$ac_func=yes" | |
20657 | else | |
20658 | echo "configure: failed program was:" >&5 | |
20659 | cat conftest.$ac_ext >&5 | |
20660 | rm -rf conftest* | |
20661 | eval "ac_cv_func_$ac_func=no" | |
20662 | fi | |
20663 | rm -f conftest* | |
20664 | fi | |
20665 | ||
20666 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20667 | echo "$ac_t""yes" 1>&6 | |
20668 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20669 | cat >> confdefs.h <<EOF | |
20670 | #define $ac_tr_func 1 | |
20671 | EOF | |
20672 | ||
20673 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20674 | #define HAVE_SHL_LOAD 1 |
a0b9e27f | 20675 | EOF |
10f2d63a | 20676 | |
3a922bb4 | 20677 | HAVE_SHL_FUNCS=1 |
a0b9e27f | 20678 | |
10f2d63a | 20679 | else |
a0b9e27f MB |
20680 | echo "$ac_t""no" 1>&6 |
20681 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
da494b40 | 20682 | echo "configure:20683: checking for dld in -lshl_load" >&5 |
a0b9e27f MB |
20683 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
20684 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 20686 | else |
a0b9e27f | 20687 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 20688 | LIBS="-lshl_load $LIBS" |
a0b9e27f | 20689 | cat > conftest.$ac_ext <<EOF |
da494b40 | 20690 | #line 20691 "configure" |
f6bcfd97 | 20691 | #include "confdefs.h" |
8284b0c5 | 20692 | /* Override any gcc2 internal prototype to avoid an error. */ |
f6bcfd97 | 20693 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
20694 | builtin and then its argument prototype would still apply. */ |
20695 | char dld(); | |
20696 | ||
20697 | int main() { | |
20698 | dld() | |
20699 | ; return 0; } | |
20700 | EOF | |
da494b40 | 20701 | if { (eval echo configure:20702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20702 | rm -rf conftest* |
20703 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20704 | else | |
20705 | echo "configure: failed program was:" >&5 | |
20706 | cat conftest.$ac_ext >&5 | |
20707 | rm -rf conftest* | |
20708 | eval "ac_cv_lib_$ac_lib_var=no" | |
20709 | fi | |
20710 | rm -f conftest* | |
20711 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 20712 | |
a0b9e27f MB |
20713 | fi |
20714 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20715 | echo "$ac_t""yes" 1>&6 | |
20716 | ||
3a922bb4 | 20717 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 20718 | DL_LINK=" -ldld$DL_LINK" |
a0b9e27f MB |
20719 | |
20720 | else | |
20721 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
20722 | fi |
20723 | ||
a0b9e27f | 20724 | |
10f2d63a VZ |
20725 | fi |
20726 | done | |
20727 | ||
a0b9e27f | 20728 | |
10f2d63a VZ |
20729 | fi |
20730 | ||
a0b9e27f | 20731 | |
10f2d63a VZ |
20732 | fi |
20733 | done | |
20734 | ||
5c6fa7d2 | 20735 | |
8284b0c5 | 20736 | if test "$HAVE_DL_FUNCS" = 1; then |
a0b9e27f | 20737 | for ac_func in dlerror |
f6bcfd97 | 20738 | do |
a0b9e27f | 20739 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
da494b40 | 20740 | echo "configure:20741: checking for $ac_func" >&5 |
a0b9e27f MB |
20741 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20742 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20743 | else | |
20744 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 20745 | #line 20746 "configure" |
f6bcfd97 BP |
20746 | #include "confdefs.h" |
20747 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20748 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
20749 | #include <assert.h> |
20750 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20751 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20752 | builtin and then its argument prototype would still apply. */ |
20753 | char $ac_func(); | |
20754 | ||
20755 | int main() { | |
20756 | ||
f6bcfd97 BP |
20757 | /* The GNU C library defines this for functions which it implements |
20758 | to always fail with ENOSYS. Some functions are actually named | |
20759 | something starting with __ and the normal name is an alias. */ | |
20760 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20761 | choke me | |
20762 | #else | |
a0b9e27f | 20763 | $ac_func(); |
f6bcfd97 BP |
20764 | #endif |
20765 | ||
a0b9e27f MB |
20766 | ; return 0; } |
20767 | EOF | |
da494b40 | 20768 | if { (eval echo configure:20769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20769 | rm -rf conftest* |
20770 | eval "ac_cv_func_$ac_func=yes" | |
20771 | else | |
20772 | echo "configure: failed program was:" >&5 | |
20773 | cat conftest.$ac_ext >&5 | |
20774 | rm -rf conftest* | |
20775 | eval "ac_cv_func_$ac_func=no" | |
20776 | fi | |
20777 | rm -f conftest* | |
20778 | fi | |
20779 | ||
20780 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20781 | echo "$ac_t""yes" 1>&6 | |
20782 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20783 | cat >> confdefs.h <<EOF | |
20784 | #define $ac_tr_func 1 | |
20785 | EOF | |
20786 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 20787 | #define HAVE_DLERROR 1 |
a0b9e27f | 20788 | EOF |
f6bcfd97 BP |
20789 | |
20790 | else | |
a0b9e27f MB |
20791 | echo "$ac_t""no" 1>&6 |
20792 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
da494b40 | 20793 | echo "configure:20794: checking for dlerror in -ldl" >&5 |
a0b9e27f MB |
20794 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
20795 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20796 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 20797 | else |
a0b9e27f | 20798 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 20799 | LIBS="-ldl $LIBS" |
a0b9e27f | 20800 | cat > conftest.$ac_ext <<EOF |
da494b40 | 20801 | #line 20802 "configure" |
f6bcfd97 BP |
20802 | #include "confdefs.h" |
20803 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20804 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20805 | builtin and then its argument prototype would still apply. */ |
20806 | char dlerror(); | |
20807 | ||
20808 | int main() { | |
20809 | dlerror() | |
20810 | ; return 0; } | |
20811 | EOF | |
da494b40 | 20812 | if { (eval echo configure:20813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20813 | rm -rf conftest* |
20814 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20815 | else | |
20816 | echo "configure: failed program was:" >&5 | |
20817 | cat conftest.$ac_ext >&5 | |
20818 | rm -rf conftest* | |
20819 | eval "ac_cv_lib_$ac_lib_var=no" | |
20820 | fi | |
20821 | rm -f conftest* | |
20822 | LIBS="$ac_save_LIBS" | |
20823 | ||
20824 | fi | |
20825 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20826 | echo "$ac_t""yes" 1>&6 | |
20827 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 20828 | #define HAVE_DLERROR 1 |
a0b9e27f | 20829 | EOF |
f6bcfd97 | 20830 | |
a0b9e27f MB |
20831 | else |
20832 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
20833 | fi |
20834 | ||
20835 | fi | |
20836 | done | |
20837 | ||
3a922bb4 RL |
20838 | fi |
20839 | fi | |
f6bcfd97 | 20840 | |
3a922bb4 RL |
20841 | if test "$HAVE_DL_FUNCS" = 0; then |
20842 | if test "$HAVE_SHL_FUNCS" = 0; then | |
20843 | if test "$USE_UNIX" = 1; then | |
a0b9e27f | 20844 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
0b9ab0bd | 20845 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
20846 | wxUSE_DYNLIB_CLASS=no |
20847 | else | |
a0b9e27f | 20848 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
3a922bb4 RL |
20849 | fi |
20850 | fi | |
10f2d63a VZ |
20851 | fi |
20852 | fi | |
20853 | fi | |
20854 | ||
0b9ab0bd | 20855 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
a0b9e27f | 20856 | cat >> confdefs.h <<\EOF |
0b9ab0bd | 20857 | #define wxUSE_DYNAMIC_LOADER 1 |
a0b9e27f | 20858 | EOF |
0b9ab0bd RL |
20859 | |
20860 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
a0b9e27f | 20861 | cat >> confdefs.h <<\EOF |
10f2d63a | 20862 | #define wxUSE_DYNLIB_CLASS 1 |
a0b9e27f | 20863 | EOF |
10f2d63a VZ |
20864 | |
20865 | fi | |
20866 | ||
8284b0c5 | 20867 | |
1e6feb95 | 20868 | if test "$wxUSE_FONTMAP" = "yes" ; then |
a0b9e27f | 20869 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20870 | #define wxUSE_FONTMAP 1 |
a0b9e27f | 20871 | EOF |
1e6feb95 VZ |
20872 | |
20873 | fi | |
20874 | ||
10f2d63a | 20875 | if test "$wxUSE_UNICODE" = "yes" ; then |
a0b9e27f | 20876 | cat >> confdefs.h <<\EOF |
10f2d63a | 20877 | #define wxUSE_UNICODE 1 |
a0b9e27f | 20878 | EOF |
10f2d63a | 20879 | |
8284b0c5 | 20880 | |
bbc3925a VS |
20881 | if test "$wxUSE_MSW" != 1; then |
20882 | wxUSE_UNICODE_MSLU=no | |
20883 | fi | |
a72a4bfa VS |
20884 | |
20885 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
a0b9e27f | 20886 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 |
da494b40 | 20887 | echo "configure:20888: checking for main in -lunicows" >&5 |
a0b9e27f MB |
20888 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
20889 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20890 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a72a4bfa | 20891 | else |
a0b9e27f | 20892 | ac_save_LIBS="$LIBS" |
a72a4bfa | 20893 | LIBS="-lunicows $LIBS" |
a0b9e27f | 20894 | cat > conftest.$ac_ext <<EOF |
da494b40 | 20895 | #line 20896 "configure" |
a72a4bfa VS |
20896 | #include "confdefs.h" |
20897 | ||
a0b9e27f MB |
20898 | int main() { |
20899 | main() | |
20900 | ; return 0; } | |
20901 | EOF | |
da494b40 | 20902 | if { (eval echo configure:20903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20903 | rm -rf conftest* |
20904 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20905 | else | |
20906 | echo "configure: failed program was:" >&5 | |
20907 | cat conftest.$ac_ext >&5 | |
20908 | rm -rf conftest* | |
20909 | eval "ac_cv_lib_$ac_lib_var=no" | |
20910 | fi | |
20911 | rm -f conftest* | |
20912 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 20913 | |
a0b9e27f MB |
20914 | fi |
20915 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20916 | echo "$ac_t""yes" 1>&6 | |
20917 | ||
20918 | cat >> confdefs.h <<\EOF | |
a72a4bfa | 20919 | #define wxUSE_UNICODE_MSLU 1 |
a0b9e27f | 20920 | EOF |
a72a4bfa | 20921 | |
a0b9e27f | 20922 | |
a72a4bfa | 20923 | else |
a0b9e27f | 20924 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 20925 | |
a0b9e27f MB |
20926 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. |
20927 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
a72a4bfa | 20928 | wxUSE_UNICODE_MSLU=no |
a0b9e27f | 20929 | |
a72a4bfa VS |
20930 | fi |
20931 | ||
20932 | fi | |
10f2d63a VZ |
20933 | fi |
20934 | ||
10f2d63a | 20935 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
a0b9e27f | 20936 | cat >> confdefs.h <<\EOF |
10f2d63a | 20937 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
a0b9e27f | 20938 | EOF |
10f2d63a VZ |
20939 | |
20940 | fi | |
20941 | ||
8284b0c5 MB |
20942 | |
20943 | ||
10f2d63a VZ |
20944 | IODBC_C_SRC="" |
20945 | if test "$wxUSE_ODBC" = "yes" ; then | |
a0b9e27f | 20946 | cat >> confdefs.h <<\EOF |
10f2d63a | 20947 | #define wxUSE_ODBC 1 |
a0b9e27f | 20948 | EOF |
10f2d63a VZ |
20949 | |
20950 | WXODBCFLAG="-D_IODBC_" | |
20951 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
20952 | fi |
20953 | ||
8284b0c5 | 20954 | |
10f2d63a | 20955 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
a0b9e27f | 20956 | cat >> confdefs.h <<\EOF |
10f2d63a | 20957 | #define wxUSE_POSTSCRIPT 1 |
a0b9e27f | 20958 | EOF |
10f2d63a VZ |
20959 | |
20960 | fi | |
20961 | ||
a0b9e27f | 20962 | cat >> confdefs.h <<\EOF |
10f2d63a | 20963 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
a0b9e27f | 20964 | EOF |
10f2d63a | 20965 | |
8284b0c5 | 20966 | |
a0b9e27f | 20967 | cat >> confdefs.h <<\EOF |
10f2d63a | 20968 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
a0b9e27f | 20969 | EOF |
10f2d63a | 20970 | |
8284b0c5 MB |
20971 | |
20972 | ||
10f2d63a | 20973 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
a0b9e27f | 20974 | cat >> confdefs.h <<\EOF |
10f2d63a | 20975 | #define wxUSE_CONSTRAINTS 1 |
a0b9e27f | 20976 | EOF |
10f2d63a VZ |
20977 | |
20978 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
20979 | fi | |
20980 | ||
20981 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 20982 | |
8284b0c5 | 20983 | |
bb811f17 | 20984 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
a0b9e27f | 20985 | cat >> confdefs.h <<\EOF |
10f2d63a | 20986 | #define wxUSE_MDI_ARCHITECTURE 1 |
a0b9e27f | 20987 | EOF |
10f2d63a | 20988 | |
bb811f17 JS |
20989 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
20990 | fi | |
10f2d63a VZ |
20991 | fi |
20992 | ||
20993 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 20994 | cat >> confdefs.h <<\EOF |
10f2d63a | 20995 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
a0b9e27f | 20996 | EOF |
10f2d63a VZ |
20997 | |
20998 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
20999 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
21000 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
21001 | fi | |
21002 | fi | |
21003 | ||
21004 | if test "$wxUSE_HELP" = "yes"; then | |
a0b9e27f | 21005 | cat >> confdefs.h <<\EOF |
10f2d63a | 21006 | #define wxUSE_HELP 1 |
a0b9e27f | 21007 | EOF |
10f2d63a VZ |
21008 | |
21009 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 21010 | |
77e13408 | 21011 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 21012 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
a0b9e27f | 21013 | cat >> confdefs.h <<\EOF |
29fd3c0c | 21014 | #define wxUSE_MS_HTML_HELP 1 |
a0b9e27f | 21015 | EOF |
29fd3c0c | 21016 | |
3e44f09d | 21017 | fi |
3379ed37 | 21018 | fi |
031d8228 VS |
21019 | |
21020 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
21021 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 21022 | cat >> confdefs.h <<\EOF |
031d8228 | 21023 | #define wxUSE_WXHTML_HELP 1 |
a0b9e27f | 21024 | EOF |
031d8228 VS |
21025 | |
21026 | else | |
a0b9e27f | 21027 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 |
031d8228 VS |
21028 | wxUSE_WXHTML_HELP=no |
21029 | fi | |
21030 | fi | |
10f2d63a VZ |
21031 | fi |
21032 | ||
21033 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
21034 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21035 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 21036 | else |
a0b9e27f | 21037 | cat >> confdefs.h <<\EOF |
10f2d63a | 21038 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
a0b9e27f | 21039 | EOF |
10f2d63a VZ |
21040 | |
21041 | fi | |
21042 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
21043 | fi | |
21044 | ||
21045 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
a0b9e27f | 21046 | cat >> confdefs.h <<\EOF |
10f2d63a | 21047 | #define wxUSE_PROLOGIO 1 |
a0b9e27f | 21048 | EOF |
10f2d63a | 21049 | |
2b5f62a0 | 21050 | ALL_OBJECTS="$ALL_OBJECTS parser.o" |
10f2d63a VZ |
21051 | fi |
21052 | ||
21053 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea | 21054 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 21055 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 |
2b5f62a0 VZ |
21056 | else |
21057 | cat >> confdefs.h <<\EOF | |
10f2d63a | 21058 | #define wxUSE_RESOURCES 1 |
a0b9e27f | 21059 | EOF |
10f2d63a | 21060 | |
2b5f62a0 VZ |
21061 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
21062 | fi | |
21063 | if test "$wxUSE_PROLOGIO" != "yes" ; then | |
21064 | ALL_OBJECTS="$ALL_OBJECTS parser.o" | |
e334d0ea | 21065 | fi |
10f2d63a VZ |
21066 | fi |
21067 | ||
21068 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
a0b9e27f | 21069 | cat >> confdefs.h <<\EOF |
10f2d63a | 21070 | #define wxUSE_X_RESOURCES 1 |
a0b9e27f | 21071 | EOF |
10f2d63a VZ |
21072 | |
21073 | fi | |
21074 | ||
8284b0c5 | 21075 | |
77e13408 RL |
21076 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
21077 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
3bce6687 | 21078 | -o "$wxUSE_OLE" = "yes" \ |
77e13408 | 21079 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then |
a0b9e27f | 21080 | for ac_hdr in ole2.h |
10f2d63a | 21081 | do |
a0b9e27f MB |
21082 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
21083 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
da494b40 | 21084 | echo "configure:21085: checking for $ac_hdr" >&5 |
a0b9e27f MB |
21085 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
21086 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21087 | else | |
21088 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 21089 | #line 21090 "configure" |
10f2d63a | 21090 | #include "confdefs.h" |
a0b9e27f MB |
21091 | #include <$ac_hdr> |
21092 | EOF | |
21093 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
da494b40 | 21094 | { (eval echo configure:21095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
21095 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
21096 | if test -z "$ac_err"; then | |
21097 | rm -rf conftest* | |
21098 | eval "ac_cv_header_$ac_safe=yes" | |
21099 | else | |
21100 | echo "$ac_err" >&5 | |
21101 | echo "configure: failed program was:" >&5 | |
10f2d63a | 21102 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
21103 | rm -rf conftest* |
21104 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 21105 | fi |
a0b9e27f | 21106 | rm -f conftest* |
10f2d63a | 21107 | fi |
a0b9e27f MB |
21108 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
21109 | echo "$ac_t""yes" 1>&6 | |
21110 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
21111 | cat >> confdefs.h <<EOF | |
21112 | #define $ac_tr_hdr 1 | |
21113 | EOF | |
21114 | ||
21115 | else | |
21116 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
21117 | fi |
21118 | done | |
21119 | ||
8284b0c5 | 21120 | |
2b9bdf71 VZ |
21121 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
21122 | if test "$GCC" = yes ; then | |
a0b9e27f MB |
21123 | |
21124 | ac_ext=C | |
21125 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8284b0c5 | 21126 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
21127 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
21128 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
21129 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 MB |
21130 | |
21131 | ||
a0b9e27f | 21132 | echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6 |
da494b40 | 21133 | echo "configure:21134: checking if g++ requires -fvtable-thunks" >&5 |
a0b9e27f | 21134 | cat > conftest.$ac_ext <<EOF |
da494b40 | 21135 | #line 21136 "configure" |
8284b0c5 MB |
21136 | #include "confdefs.h" |
21137 | #include <windows.h> | |
21138 | #include <ole2.h> | |
a0b9e27f | 21139 | int main() { |
8284b0c5 | 21140 | |
a0b9e27f MB |
21141 | ; return 0; } |
21142 | EOF | |
da494b40 | 21143 | if { (eval echo configure:21144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
21144 | rm -rf conftest* |
21145 | echo "$ac_t""no" 1>&6 | |
21146 | else | |
21147 | echo "configure: failed program was:" >&5 | |
21148 | cat conftest.$ac_ext >&5 | |
21149 | rm -rf conftest* | |
21150 | echo "$ac_t""yes" 1>&6 | |
8284b0c5 MB |
21151 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
21152 | fi | |
a0b9e27f | 21153 | rm -f conftest* |
8284b0c5 | 21154 | ac_ext=c |
a0b9e27f | 21155 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8284b0c5 | 21156 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
21157 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
21158 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
21159 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 21160 | |
2b9bdf71 | 21161 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 21162 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
a0b9e27f | 21163 | cat >> confdefs.h <<\EOF |
4f11a343 | 21164 | #define wxUSE_OLE 1 |
a0b9e27f | 21165 | EOF |
4f11a343 | 21166 | |
8284b0c5 | 21167 | |
2b9bdf71 VZ |
21168 | fi |
21169 | ||
a0b9e27f | 21170 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21171 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 21172 | EOF |
2b9bdf71 VZ |
21173 | |
21174 | else | |
a0b9e27f | 21175 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 |
2b9bdf71 VZ |
21176 | |
21177 | wxUSE_CLIPBOARD=no | |
21178 | wxUSE_DRAG_AND_DROP=no | |
21179 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
21180 | wxUSE_OLE=no |
21181 | fi | |
21182 | ||
21183 | if test "$wxUSE_METAFILE" = "yes"; then | |
21184 | cat >> confdefs.h <<\EOF | |
21185 | #define wxUSE_METAFILE 1 | |
21186 | EOF | |
21187 | ||
21188 | ||
21189 | cat >> confdefs.h <<\EOF | |
21190 | #define wxUSE_ENH_METAFILE 1 | |
21191 | EOF | |
21192 | ||
21193 | fi | |
21194 | fi | |
21195 | ||
2b9bdf71 VZ |
21196 | if test "$wxUSE_IPC" = "yes"; then |
21197 | if test "$wxUSE_SOCKETS" != "yes"; then | |
a0b9e27f | 21198 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
21199 | fi |
21200 | ||
a0b9e27f | 21201 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21202 | #define wxUSE_IPC 1 |
a0b9e27f | 21203 | EOF |
2b9bdf71 VZ |
21204 | |
21205 | fi | |
21206 | ||
21207 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 21208 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 21209 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
21210 | wxUSE_CLIPBOARD=no |
21211 | fi | |
21212 | ||
21213 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
a0b9e27f | 21214 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21215 | #define wxUSE_CLIPBOARD 1 |
a0b9e27f | 21216 | EOF |
2b9bdf71 | 21217 | |
8284b0c5 | 21218 | |
a0b9e27f | 21219 | cat >> confdefs.h <<\EOF |
673f4220 | 21220 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 21221 | EOF |
673f4220 | 21222 | |
6c657b52 | 21223 | fi |
2b9bdf71 VZ |
21224 | fi |
21225 | ||
21226 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
21227 | if test "$wxUSE_GTK" = 1; then | |
21228 | if test "$WXGTK12" != 1; then | |
a0b9e27f | 21229 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
21230 | wxUSE_DRAG_AND_DROP=no |
21231 | fi | |
21232 | fi | |
21233 | ||
2b9bdf71 | 21234 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 21235 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
21236 | wxUSE_DRAG_AND_DROP=no |
21237 | fi | |
21238 | ||
f79bd02d | 21239 | if test "$wxUSE_X11" = 1; then |
a0b9e27f | 21240 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 |
f79bd02d JS |
21241 | wxUSE_DRAG_AND_DROP=no |
21242 | fi | |
21243 | ||
6c657b52 | 21244 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 21245 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
21246 | wxUSE_DRAG_AND_DROP=no |
21247 | fi | |
21248 | ||
10f2d63a | 21249 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
a0b9e27f | 21250 | cat >> confdefs.h <<\EOF |
10f2d63a | 21251 | #define wxUSE_DRAG_AND_DROP 1 |
a0b9e27f | 21252 | EOF |
10f2d63a VZ |
21253 | |
21254 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
21255 | fi | |
21256 | ||
21257 | fi | |
21258 | ||
21259 | if test "$wxUSE_SPLINES" = "yes" ; then | |
a0b9e27f | 21260 | cat >> confdefs.h <<\EOF |
10f2d63a | 21261 | #define wxUSE_SPLINES 1 |
a0b9e27f | 21262 | EOF |
10f2d63a VZ |
21263 | |
21264 | fi | |
21265 | ||
8284b0c5 | 21266 | |
1e6feb95 VZ |
21267 | USES_CONTROLS=0 |
21268 | if test "$wxUSE_CONTROLS" = "yes"; then | |
21269 | USES_CONTROLS=1 | |
21270 | fi | |
21271 | ||
10f2d63a | 21272 | if test "$wxUSE_ACCEL" = "yes"; then |
a0b9e27f | 21273 | cat >> confdefs.h <<\EOF |
10f2d63a | 21274 | #define wxUSE_ACCEL 1 |
a0b9e27f | 21275 | EOF |
10f2d63a | 21276 | |
1e6feb95 VZ |
21277 | USES_CONTROLS=1 |
21278 | fi | |
21279 | ||
21280 | if test "$wxUSE_BUTTON" = "yes"; then | |
a0b9e27f | 21281 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21282 | #define wxUSE_BUTTON 1 |
a0b9e27f | 21283 | EOF |
1e6feb95 VZ |
21284 | |
21285 | USES_CONTROLS=1 | |
21286 | fi | |
21287 | ||
21288 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
a0b9e27f | 21289 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21290 | #define wxUSE_BMPBUTTON 1 |
a0b9e27f | 21291 | EOF |
1e6feb95 VZ |
21292 | |
21293 | USES_CONTROLS=1 | |
21294 | fi | |
21295 | ||
21296 | if test "$wxUSE_CALCTRL" = "yes"; then | |
a0b9e27f | 21297 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21298 | #define wxUSE_CALENDARCTRL 1 |
a0b9e27f | 21299 | EOF |
1e6feb95 VZ |
21300 | |
21301 | USES_CONTROLS=1 | |
21302 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
21303 | fi |
21304 | ||
21305 | if test "$wxUSE_CARET" = "yes"; then | |
a0b9e27f | 21306 | cat >> confdefs.h <<\EOF |
10f2d63a | 21307 | #define wxUSE_CARET 1 |
a0b9e27f | 21308 | EOF |
10f2d63a | 21309 | |
1e6feb95 | 21310 | USES_CONTROLS=1 |
10f2d63a VZ |
21311 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
21312 | fi | |
21313 | ||
21314 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
a0b9e27f | 21315 | cat >> confdefs.h <<\EOF |
10f2d63a | 21316 | #define wxUSE_COMBOBOX 1 |
a0b9e27f | 21317 | EOF |
10f2d63a | 21318 | |
1e6feb95 | 21319 | USES_CONTROLS=1 |
10f2d63a VZ |
21320 | fi |
21321 | ||
21322 | if test "$wxUSE_CHOICE" = "yes"; then | |
a0b9e27f | 21323 | cat >> confdefs.h <<\EOF |
10f2d63a | 21324 | #define wxUSE_CHOICE 1 |
a0b9e27f | 21325 | EOF |
10f2d63a | 21326 | |
1e6feb95 | 21327 | USES_CONTROLS=1 |
10f2d63a VZ |
21328 | fi |
21329 | ||
21330 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
a0b9e27f | 21331 | cat >> confdefs.h <<\EOF |
10f2d63a | 21332 | #define wxUSE_CHECKBOX 1 |
a0b9e27f | 21333 | EOF |
10f2d63a | 21334 | |
1e6feb95 | 21335 | USES_CONTROLS=1 |
10f2d63a VZ |
21336 | fi |
21337 | ||
21338 | if test "$wxUSE_CHECKLST" = "yes"; then | |
a0b9e27f | 21339 | cat >> confdefs.h <<\EOF |
10f2d63a | 21340 | #define wxUSE_CHECKLISTBOX 1 |
a0b9e27f | 21341 | EOF |
10f2d63a | 21342 | |
1e6feb95 | 21343 | USES_CONTROLS=1 |
10f2d63a VZ |
21344 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
21345 | fi | |
21346 | ||
da494b40 MB |
21347 | if test "$wxUSE_DISPLAY" = "yes"; then |
21348 | cat >> confdefs.h <<\EOF | |
21349 | #define wxUSE_DISPLAY 1 | |
21350 | EOF | |
21351 | ||
21352 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
21353 | fi | |
21354 | ||
10f2d63a | 21355 | if test "$wxUSE_GAUGE" = "yes"; then |
a0b9e27f | 21356 | cat >> confdefs.h <<\EOF |
10f2d63a | 21357 | #define wxUSE_GAUGE 1 |
a0b9e27f | 21358 | EOF |
10f2d63a | 21359 | |
1e6feb95 | 21360 | USES_CONTROLS=1 |
10f2d63a VZ |
21361 | fi |
21362 | ||
d6a55c4b VZ |
21363 | if test "$wxUSE_NEW_GRID" = "yes"; then |
21364 | wxUSE_GRID="yes" | |
a0b9e27f | 21365 | cat >> confdefs.h <<\EOF |
d6a55c4b | 21366 | #define wxUSE_NEW_GRID 1 |
a0b9e27f | 21367 | EOF |
10f2d63a | 21368 | |
1e6feb95 | 21369 | USES_CONTROLS=1 |
d6a55c4b | 21370 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
21371 | fi |
21372 | ||
d6a55c4b | 21373 | if test "$wxUSE_GRID" = "yes"; then |
a0b9e27f | 21374 | cat >> confdefs.h <<\EOF |
d6a55c4b | 21375 | #define wxUSE_GRID 1 |
a0b9e27f | 21376 | EOF |
10f2d63a | 21377 | |
1e6feb95 | 21378 | USES_CONTROLS=1 |
d6a55c4b | 21379 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
21380 | fi |
21381 | ||
21382 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21383 | cat >> confdefs.h <<\EOF |
10f2d63a | 21384 | #define wxUSE_IMAGLIST 1 |
a0b9e27f | 21385 | EOF |
10f2d63a VZ |
21386 | |
21387 | fi | |
21388 | ||
21389 | if test "$wxUSE_LISTBOX" = "yes"; then | |
a0b9e27f | 21390 | cat >> confdefs.h <<\EOF |
10f2d63a | 21391 | #define wxUSE_LISTBOX 1 |
a0b9e27f | 21392 | EOF |
10f2d63a | 21393 | |
1e6feb95 | 21394 | USES_CONTROLS=1 |
10f2d63a VZ |
21395 | fi |
21396 | ||
21397 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
21398 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21399 | cat >> confdefs.h <<\EOF |
10f2d63a | 21400 | #define wxUSE_LISTCTRL 1 |
a0b9e27f | 21401 | EOF |
10f2d63a | 21402 | |
1e6feb95 | 21403 | USES_CONTROLS=1 |
10f2d63a VZ |
21404 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
21405 | else | |
a0b9e27f | 21406 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
21407 | fi |
21408 | fi | |
21409 | ||
21410 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
a0b9e27f | 21411 | cat >> confdefs.h <<\EOF |
10f2d63a | 21412 | #define wxUSE_NOTEBOOK 1 |
a0b9e27f | 21413 | EOF |
10f2d63a | 21414 | |
1e6feb95 | 21415 | USES_CONTROLS=1 |
10f2d63a VZ |
21416 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
21417 | fi | |
21418 | ||
24176f2c | 21419 | if test "$wxUSE_PROPSHEET" = "yes"; then |
a0b9e27f | 21420 | cat >> confdefs.h <<\EOF |
24176f2c | 21421 | #define wxUSE_PROPSHEET 1 |
a0b9e27f | 21422 | EOF |
24176f2c GD |
21423 | |
21424 | USES_CONTROLS=1 | |
21425 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
21426 | fi | |
21427 | ||
10f2d63a | 21428 | if test "$wxUSE_RADIOBOX" = "yes"; then |
a0b9e27f | 21429 | cat >> confdefs.h <<\EOF |
10f2d63a | 21430 | #define wxUSE_RADIOBOX 1 |
a0b9e27f | 21431 | EOF |
10f2d63a | 21432 | |
1e6feb95 | 21433 | USES_CONTROLS=1 |
10f2d63a VZ |
21434 | fi |
21435 | ||
21436 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
a0b9e27f | 21437 | cat >> confdefs.h <<\EOF |
10f2d63a | 21438 | #define wxUSE_RADIOBTN 1 |
a0b9e27f | 21439 | EOF |
10f2d63a | 21440 | |
1e6feb95 | 21441 | USES_CONTROLS=1 |
10f2d63a VZ |
21442 | fi |
21443 | ||
21444 | if test "$wxUSE_SASH" = "yes"; then | |
a0b9e27f | 21445 | cat >> confdefs.h <<\EOF |
10f2d63a | 21446 | #define wxUSE_SASH 1 |
a0b9e27f | 21447 | EOF |
10f2d63a VZ |
21448 | |
21449 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
21450 | fi | |
21451 | ||
21452 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
a0b9e27f | 21453 | cat >> confdefs.h <<\EOF |
10f2d63a | 21454 | #define wxUSE_SCROLLBAR 1 |
a0b9e27f | 21455 | EOF |
10f2d63a | 21456 | |
1e6feb95 | 21457 | USES_CONTROLS=1 |
741a9306 | 21458 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
21459 | fi |
21460 | ||
21461 | if test "$wxUSE_SLIDER" = "yes"; then | |
a0b9e27f | 21462 | cat >> confdefs.h <<\EOF |
10f2d63a | 21463 | #define wxUSE_SLIDER 1 |
a0b9e27f | 21464 | EOF |
10f2d63a | 21465 | |
1e6feb95 | 21466 | USES_CONTROLS=1 |
10f2d63a VZ |
21467 | fi |
21468 | ||
21469 | if test "$wxUSE_SPINBTN" = "yes"; then | |
a0b9e27f | 21470 | cat >> confdefs.h <<\EOF |
10f2d63a | 21471 | #define wxUSE_SPINBTN 1 |
a0b9e27f | 21472 | EOF |
10f2d63a | 21473 | |
1e6feb95 | 21474 | USES_CONTROLS=1 |
10f2d63a VZ |
21475 | fi |
21476 | ||
56cfaa52 | 21477 | if test "$wxUSE_SPINCTRL" = "yes"; then |
a0b9e27f | 21478 | cat >> confdefs.h <<\EOF |
56cfaa52 | 21479 | #define wxUSE_SPINCTRL 1 |
a0b9e27f | 21480 | EOF |
56cfaa52 | 21481 | |
1e6feb95 | 21482 | USES_CONTROLS=1 |
56cfaa52 RR |
21483 | fi |
21484 | ||
10f2d63a | 21485 | if test "$wxUSE_SPLITTER" = "yes"; then |
a0b9e27f | 21486 | cat >> confdefs.h <<\EOF |
10f2d63a | 21487 | #define wxUSE_SPLITTER 1 |
a0b9e27f | 21488 | EOF |
10f2d63a VZ |
21489 | |
21490 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
21491 | fi | |
21492 | ||
21493 | if test "$wxUSE_STATBMP" = "yes"; then | |
a0b9e27f | 21494 | cat >> confdefs.h <<\EOF |
10f2d63a | 21495 | #define wxUSE_STATBMP 1 |
a0b9e27f | 21496 | EOF |
10f2d63a | 21497 | |
1e6feb95 | 21498 | USES_CONTROLS=1 |
10f2d63a VZ |
21499 | fi |
21500 | ||
21501 | if test "$wxUSE_STATBOX" = "yes"; then | |
a0b9e27f | 21502 | cat >> confdefs.h <<\EOF |
10f2d63a | 21503 | #define wxUSE_STATBOX 1 |
a0b9e27f | 21504 | EOF |
10f2d63a | 21505 | |
1e6feb95 VZ |
21506 | USES_CONTROLS=1 |
21507 | fi | |
21508 | ||
21509 | if test "$wxUSE_STATTEXT" = "yes"; then | |
a0b9e27f | 21510 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21511 | #define wxUSE_STATTEXT 1 |
a0b9e27f | 21512 | EOF |
1e6feb95 VZ |
21513 | |
21514 | USES_CONTROLS=1 | |
10f2d63a VZ |
21515 | fi |
21516 | ||
21517 | if test "$wxUSE_STATLINE" = "yes"; then | |
89e6bf6d | 21518 | cat >> confdefs.h <<\EOF |
10f2d63a | 21519 | #define wxUSE_STATLINE 1 |
a0b9e27f | 21520 | EOF |
10f2d63a | 21521 | |
89e6bf6d | 21522 | USES_CONTROLS=1 |
10f2d63a VZ |
21523 | fi |
21524 | ||
21525 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
a0b9e27f | 21526 | cat >> confdefs.h <<\EOF |
10f2d63a | 21527 | #define wxUSE_STATUSBAR 1 |
a0b9e27f | 21528 | EOF |
10f2d63a | 21529 | |
1e6feb95 | 21530 | USES_CONTROLS=1 |
698dcdb6 | 21531 | |
2286341c | 21532 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
21533 | fi |
21534 | ||
21535 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
a0b9e27f | 21536 | cat >> confdefs.h <<\EOF |
10f2d63a | 21537 | #define wxUSE_TAB_DIALOG 1 |
a0b9e27f | 21538 | EOF |
10f2d63a VZ |
21539 | |
21540 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
21541 | fi | |
21542 | ||
1e6feb95 | 21543 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
a0b9e27f | 21544 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21545 | #define wxUSE_TEXTCTRL 1 |
a0b9e27f | 21546 | EOF |
1e6feb95 VZ |
21547 | |
21548 | USES_CONTROLS=1 | |
21549 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
21550 | fi | |
21551 | ||
1db8dc4a | 21552 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 | 21553 | if test "$wxUSE_MAC" = 1; then |
a0b9e27f | 21554 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
21555 | wxUSE_TOGGLEBTN=no |
21556 | fi | |
21557 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
a0b9e27f | 21558 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
21559 | wxUSE_TOGGLEBTN=no |
21560 | fi | |
21561 | ||
21562 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
a0b9e27f | 21563 | cat >> confdefs.h <<\EOF |
1db8dc4a | 21564 | #define wxUSE_TOGGLEBTN 1 |
a0b9e27f | 21565 | EOF |
1db8dc4a | 21566 | |
1e6feb95 | 21567 | USES_CONTROLS=1 |
a45d7ab7 | 21568 | fi |
1db8dc4a VZ |
21569 | fi |
21570 | ||
360d6699 | 21571 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
a0b9e27f | 21572 | cat >> confdefs.h <<\EOF |
360d6699 | 21573 | #define wxUSE_TOOLBAR_SIMPLE 1 |
a0b9e27f | 21574 | EOF |
360d6699 VZ |
21575 | |
21576 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 21577 | USES_CONTROLS=1 |
360d6699 VZ |
21578 | fi |
21579 | ||
10f2d63a | 21580 | if test "$wxUSE_TOOLBAR" = "yes"; then |
a0b9e27f | 21581 | cat >> confdefs.h <<\EOF |
10f2d63a | 21582 | #define wxUSE_TOOLBAR 1 |
a0b9e27f | 21583 | EOF |
10f2d63a | 21584 | |
1e6feb95 | 21585 | USES_CONTROLS=1 |
698dcdb6 | 21586 | |
360d6699 VZ |
21587 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
21588 | wxUSE_TOOLBAR_NATIVE="yes" | |
21589 | fi | |
21590 | ||
1e6feb95 | 21591 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
a0b9e27f | 21592 | cat >> confdefs.h <<\EOF |
360d6699 | 21593 | #define wxUSE_TOOLBAR_NATIVE 1 |
a0b9e27f | 21594 | EOF |
360d6699 | 21595 | |
1e6feb95 VZ |
21596 | USES_CONTROLS=1 |
21597 | fi | |
21598 | ||
21599 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
21600 | fi |
21601 | ||
10f2d63a VZ |
21602 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
21603 | if test "$wxUSE_MOTIF" = 1; then | |
a0b9e27f | 21604 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a | 21605 | else |
89e6bf6d VZ |
21606 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
21607 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 | |
10f2d63a | 21608 | else |
89e6bf6d | 21609 | cat >> confdefs.h <<\EOF |
10f2d63a | 21610 | #define wxUSE_TOOLTIPS 1 |
a0b9e27f | 21611 | EOF |
10f2d63a VZ |
21612 | |
21613 | fi | |
21614 | fi | |
21615 | fi | |
21616 | ||
21617 | if test "$wxUSE_TREECTRL" = "yes"; then | |
21618 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21619 | cat >> confdefs.h <<\EOF |
10f2d63a | 21620 | #define wxUSE_TREECTRL 1 |
a0b9e27f | 21621 | EOF |
10f2d63a | 21622 | |
1e6feb95 | 21623 | USES_CONTROLS=1 |
10f2d63a VZ |
21624 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
21625 | else | |
a0b9e27f | 21626 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
21627 | fi |
21628 | fi | |
21629 | ||
9f41d601 | 21630 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 21631 | if test "$wxUSE_MAC" = 1; then |
a0b9e27f | 21632 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 21633 | else |
485cf710 | 21634 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 21635 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 |
485cf710 | 21636 | else |
3c011993 | 21637 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 21638 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 21639 | else |
a0b9e27f | 21640 | cat >> confdefs.h <<\EOF |
9f41d601 | 21641 | #define wxUSE_POPUPWIN 1 |
a0b9e27f | 21642 | EOF |
9f41d601 | 21643 | |
8284b0c5 | 21644 | |
3c011993 VZ |
21645 | USES_CONTROLS=1 |
21646 | fi | |
485cf710 | 21647 | fi |
6abe4b65 | 21648 | fi |
9f41d601 RR |
21649 | fi |
21650 | ||
dd964dcc | 21651 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 21652 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 21653 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 21654 | else |
a0b9e27f | 21655 | cat >> confdefs.h <<\EOF |
dd964dcc | 21656 | #define wxUSE_TIPWINDOW 1 |
a0b9e27f | 21657 | EOF |
dd964dcc | 21658 | |
3c011993 | 21659 | fi |
dd964dcc VZ |
21660 | fi |
21661 | ||
1e6feb95 | 21662 | if test "$USES_CONTROLS" = 1; then |
a0b9e27f | 21663 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21664 | #define wxUSE_CONTROLS 1 |
a0b9e27f | 21665 | EOF |
10f2d63a | 21666 | |
10f2d63a VZ |
21667 | fi |
21668 | ||
8284b0c5 | 21669 | |
24176f2c | 21670 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
a0b9e27f | 21671 | cat >> confdefs.h <<\EOF |
24176f2c | 21672 | #define wxUSE_TREELAYOUT 1 |
a0b9e27f | 21673 | EOF |
24176f2c GD |
21674 | |
21675 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
21676 | fi | |
1e6feb95 | 21677 | |
24fd6d87 | 21678 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
a0b9e27f | 21679 | cat >> confdefs.h <<\EOF |
24fd6d87 | 21680 | #define wxUSE_DRAGIMAGE 1 |
a0b9e27f | 21681 | EOF |
24fd6d87 VZ |
21682 | |
21683 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
21684 | fi | |
21685 | ||
1e6feb95 | 21686 | if test "$wxUSE_MENUS" = "yes"; then |
a0b9e27f | 21687 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21688 | #define wxUSE_MENUS 1 |
a0b9e27f | 21689 | EOF |
10f2d63a | 21690 | |
1e6feb95 | 21691 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
21692 | fi |
21693 | ||
1e6feb95 | 21694 | if test "$wxUSE_METAFILE" = "yes"; then |
a0b9e27f | 21695 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21696 | #define wxUSE_METAFILE 1 |
a0b9e27f | 21697 | EOF |
10f2d63a | 21698 | |
10f2d63a VZ |
21699 | fi |
21700 | ||
1e6feb95 | 21701 | if test "$wxUSE_MIMETYPE" = "yes"; then |
a0b9e27f | 21702 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21703 | #define wxUSE_MIMETYPE 1 |
a0b9e27f | 21704 | EOF |
10f2d63a | 21705 | |
10f2d63a VZ |
21706 | fi |
21707 | ||
3e44f09d | 21708 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
a0b9e27f | 21709 | cat >> confdefs.h <<\EOF |
3e44f09d | 21710 | #define wxUSE_SYSTEM_OPTIONS 1 |
a0b9e27f | 21711 | EOF |
3e44f09d | 21712 | |
321d2b14 VZ |
21713 | if test "$TOOLKIT" = "MSW"; then |
21714 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
21715 | fi | |
21716 | ||
3e44f09d VZ |
21717 | fi |
21718 | ||
4cdb0ab0 | 21719 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca | 21720 | if test "$wxUSE_SOCKETS" != "yes"; then |
a0b9e27f | 21721 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 |
3954f9ca VS |
21722 | wxUSE_PROTOCOL=no |
21723 | fi | |
21724 | ||
21725 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
a0b9e27f | 21726 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21727 | #define wxUSE_PROTOCOL 1 |
a0b9e27f | 21728 | EOF |
4cdb0ab0 | 21729 | |
8284b0c5 | 21730 | |
3954f9ca | 21731 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
a0b9e27f | 21732 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21733 | #define wxUSE_PROTOCOL_HTTP 1 |
a0b9e27f | 21734 | EOF |
4cdb0ab0 | 21735 | |
3954f9ca VS |
21736 | fi |
21737 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
a0b9e27f | 21738 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21739 | #define wxUSE_PROTOCOL_FTP 1 |
a0b9e27f | 21740 | EOF |
4cdb0ab0 | 21741 | |
3954f9ca VS |
21742 | fi |
21743 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
a0b9e27f | 21744 | cat >> confdefs.h <<\EOF |
3954f9ca | 21745 | #define wxUSE_PROTOCOL_FILE 1 |
a0b9e27f | 21746 | EOF |
3954f9ca VS |
21747 | |
21748 | fi | |
4cdb0ab0 | 21749 | fi |
3954f9ca VS |
21750 | fi |
21751 | ||
21752 | if test "$wxUSE_URL" = "yes"; then | |
21753 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
a0b9e27f | 21754 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 |
3954f9ca VS |
21755 | wxUSE_URL=no |
21756 | fi | |
21757 | if test "$wxUSE_URL" = "yes"; then | |
a0b9e27f | 21758 | cat >> confdefs.h <<\EOF |
3954f9ca | 21759 | #define wxUSE_URL 1 |
a0b9e27f | 21760 | EOF |
4cdb0ab0 VS |
21761 | |
21762 | fi | |
21763 | fi | |
21764 | ||
10f2d63a | 21765 | if test "$wxUSE_MINIFRAME" = "yes"; then |
a0b9e27f | 21766 | cat >> confdefs.h <<\EOF |
10f2d63a | 21767 | #define wxUSE_MINIFRAME 1 |
a0b9e27f | 21768 | EOF |
10f2d63a VZ |
21769 | |
21770 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
21771 | fi | |
21772 | ||
21773 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 21774 | cat >> confdefs.h <<\EOF |
10f2d63a | 21775 | #define wxUSE_HTML 1 |
a0b9e27f | 21776 | EOF |
10f2d63a VZ |
21777 | |
21778 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
21779 | fi |
21780 | ||
21781 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
a0b9e27f | 21782 | cat >> confdefs.h <<\EOF |
1e487827 | 21783 | #define wxUSE_VALIDATORS 1 |
a0b9e27f | 21784 | EOF |
703e0a69 | 21785 | |
698dcdb6 VZ |
21786 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
21787 | fi | |
21788 | ||
edae8572 | 21789 | if test "$wxUSE_PALETTE" = "yes" ; then |
a0b9e27f | 21790 | cat >> confdefs.h <<\EOF |
edae8572 | 21791 | #define wxUSE_PALETTE 1 |
a0b9e27f | 21792 | EOF |
edae8572 VZ |
21793 | |
21794 | fi | |
21795 | ||
698dcdb6 | 21796 | if test "$wxUSE_IMAGE" = "yes" ; then |
a0b9e27f | 21797 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21798 | #define wxUSE_IMAGE 1 |
a0b9e27f | 21799 | EOF |
698dcdb6 VZ |
21800 | |
21801 | fi | |
21802 | ||
21803 | if test "$wxUSE_GIF" = "yes" ; then | |
a0b9e27f | 21804 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21805 | #define wxUSE_GIF 1 |
a0b9e27f | 21806 | EOF |
698dcdb6 VZ |
21807 | |
21808 | fi | |
21809 | ||
21810 | if test "$wxUSE_PCX" = "yes" ; then | |
a0b9e27f | 21811 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21812 | #define wxUSE_PCX 1 |
a0b9e27f | 21813 | EOF |
698dcdb6 VZ |
21814 | |
21815 | fi | |
21816 | ||
4b6b4dfc | 21817 | if test "$wxUSE_IFF" = "yes" ; then |
a0b9e27f | 21818 | cat >> confdefs.h <<\EOF |
4b6b4dfc | 21819 | #define wxUSE_IFF 1 |
a0b9e27f | 21820 | EOF |
4b6b4dfc RR |
21821 | |
21822 | fi | |
21823 | ||
698dcdb6 | 21824 | if test "$wxUSE_PNM" = "yes" ; then |
a0b9e27f | 21825 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21826 | #define wxUSE_PNM 1 |
a0b9e27f | 21827 | EOF |
698dcdb6 VZ |
21828 | |
21829 | fi | |
21830 | ||
21831 | if test "$wxUSE_XPM" = "yes" ; then | |
a0b9e27f | 21832 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21833 | #define wxUSE_XPM 1 |
a0b9e27f | 21834 | EOF |
698dcdb6 VZ |
21835 | |
21836 | fi | |
21837 | ||
658974ae | 21838 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
a0b9e27f | 21839 | cat >> confdefs.h <<\EOF |
658974ae | 21840 | #define wxUSE_ICO_CUR 1 |
a0b9e27f | 21841 | EOF |
658974ae VS |
21842 | |
21843 | fi | |
21844 | ||
a72a4bfa VS |
21845 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
21846 | LIBS=" -lunicows $LIBS" | |
21847 | fi | |
21848 | ||
8284b0c5 | 21849 | |
1e6feb95 | 21850 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
a0b9e27f | 21851 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21852 | #define wxUSE_CHOICEDLG 1 |
a0b9e27f | 21853 | EOF |
1e6feb95 VZ |
21854 | |
21855 | fi | |
21856 | ||
21857 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
a0b9e27f | 21858 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21859 | #define wxUSE_COLOURDLG 1 |
a0b9e27f | 21860 | EOF |
1e6feb95 VZ |
21861 | |
21862 | fi | |
21863 | ||
21864 | if test "$wxUSE_FILEDLG" = "yes"; then | |
a0b9e27f | 21865 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21866 | #define wxUSE_FILEDLG 1 |
a0b9e27f | 21867 | EOF |
1e6feb95 VZ |
21868 | |
21869 | fi | |
21870 | ||
8db37e06 | 21871 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
a0b9e27f | 21872 | cat >> confdefs.h <<\EOF |
8db37e06 | 21873 | #define wxUSE_FINDREPLDLG 1 |
a0b9e27f | 21874 | EOF |
8db37e06 VZ |
21875 | |
21876 | fi | |
21877 | ||
1e6feb95 | 21878 | if test "$wxUSE_FONTDLG" = "yes"; then |
a0b9e27f | 21879 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21880 | #define wxUSE_FONTDLG 1 |
a0b9e27f | 21881 | EOF |
1e6feb95 VZ |
21882 | |
21883 | fi | |
21884 | ||
21885 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 21886 | if test "$wxUSE_TREECTRL" != "yes"; then |
a0b9e27f | 21887 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 |
1e6feb95 | 21888 | else |
a0b9e27f | 21889 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21890 | #define wxUSE_DIRDLG 1 |
a0b9e27f | 21891 | EOF |
1e6feb95 | 21892 | |
1e6feb95 VZ |
21893 | fi |
21894 | fi | |
21895 | ||
21896 | if test "$wxUSE_MSGDLG" = "yes"; then | |
a0b9e27f | 21897 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21898 | #define wxUSE_MSGDLG 1 |
a0b9e27f | 21899 | EOF |
1e6feb95 VZ |
21900 | |
21901 | fi | |
21902 | ||
21903 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
a0b9e27f | 21904 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21905 | #define wxUSE_NUMBERDLG 1 |
a0b9e27f | 21906 | EOF |
1e6feb95 VZ |
21907 | |
21908 | fi | |
21909 | ||
21910 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
21911 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21912 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 |
1e6feb95 | 21913 | else |
a0b9e27f | 21914 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21915 | #define wxUSE_PROGRESSDLG 1 |
a0b9e27f | 21916 | EOF |
1e6feb95 VZ |
21917 | |
21918 | fi | |
21919 | fi | |
21920 | ||
cbca9943 | 21921 | if test "$wxUSE_SPLASH" = "yes"; then |
a0b9e27f | 21922 | cat >> confdefs.h <<\EOF |
cbca9943 | 21923 | #define wxUSE_SPLASH 1 |
a0b9e27f | 21924 | EOF |
cbca9943 VZ |
21925 | |
21926 | fi | |
21927 | ||
1e6feb95 VZ |
21928 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
21929 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21930 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 |
1e6feb95 | 21931 | else |
a0b9e27f | 21932 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21933 | #define wxUSE_STARTUP_TIPS 1 |
a0b9e27f | 21934 | EOF |
1e6feb95 | 21935 | |
7b4a847f RR |
21936 | fi |
21937 | fi | |
579d8138 | 21938 | |
8284b0c5 | 21939 | if test "$wxUSE_TEXTDLG" = "yes"; then |
a0b9e27f | 21940 | cat >> confdefs.h <<\EOF |
8284b0c5 | 21941 | #define wxUSE_TEXTDLG 1 |
a0b9e27f | 21942 | EOF |
8284b0c5 MB |
21943 | |
21944 | fi | |
21945 | ||
21946 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
a0b9e27f | 21947 | cat >> confdefs.h <<\EOF |
8284b0c5 | 21948 | #define wxUSE_WIZARDDLG 1 |
a0b9e27f | 21949 | EOF |
8284b0c5 MB |
21950 | |
21951 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
21952 | fi | |
21953 | ||
21954 | ||
21955 | if test "$cross_compiling" = "yes"; then | |
21956 | OSINFO="\"$host\"" | |
21957 | else | |
21958 | OSINFO=`uname -s -r -m` | |
21959 | OSINFO="\"$OSINFO\"" | |
21960 | fi | |
21961 | ||
a0b9e27f | 21962 | cat >> confdefs.h <<EOF |
8284b0c5 | 21963 | #define WXWIN_OS_DESCRIPTION $OSINFO |
a0b9e27f | 21964 | EOF |
8284b0c5 MB |
21965 | |
21966 | ||
21967 | ||
21968 | if test "x$prefix" != "xNONE"; then | |
21969 | wxPREFIX=$prefix | |
21970 | else | |
21971 | wxPREFIX=$ac_default_prefix | |
21972 | fi | |
21973 | ||
a0b9e27f | 21974 | cat >> confdefs.h <<EOF |
8284b0c5 | 21975 | #define wxINSTALL_PREFIX "$wxPREFIX" |
a0b9e27f | 21976 | EOF |
8284b0c5 MB |
21977 | |
21978 | ||
52c71b80 VZ |
21979 | top_builddir=`pwd` |
21980 | ||
8284b0c5 MB |
21981 | |
21982 | ||
21983 | ||
21984 | if test "$wxUSE_MAC" = 1 ; then | |
21985 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
21986 | fi | |
21987 | ||
21988 | ||
2b5f62a0 VZ |
21989 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
21990 | ||
21991 | have_cos=0 | |
21992 | have_floor=0 | |
21993 | for ac_func in cos | |
21994 | do | |
21995 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
da494b40 | 21996 | echo "configure:21997: checking for $ac_func" >&5 |
2b5f62a0 VZ |
21997 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
21998 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21999 | else | |
22000 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 22001 | #line 22002 "configure" |
2b5f62a0 VZ |
22002 | #include "confdefs.h" |
22003 | /* System header to define __stub macros and hopefully few prototypes, | |
22004 | which can conflict with char $ac_func(); below. */ | |
22005 | #include <assert.h> | |
22006 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22007 | /* We use char because int might match the return type of a gcc2 | |
22008 | builtin and then its argument prototype would still apply. */ | |
22009 | char $ac_func(); | |
22010 | ||
22011 | int main() { | |
22012 | ||
22013 | /* The GNU C library defines this for functions which it implements | |
22014 | to always fail with ENOSYS. Some functions are actually named | |
22015 | something starting with __ and the normal name is an alias. */ | |
22016 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22017 | choke me | |
22018 | #else | |
22019 | $ac_func(); | |
22020 | #endif | |
22021 | ||
22022 | ; return 0; } | |
22023 | EOF | |
da494b40 | 22024 | if { (eval echo configure:22025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22025 | rm -rf conftest* |
22026 | eval "ac_cv_func_$ac_func=yes" | |
22027 | else | |
22028 | echo "configure: failed program was:" >&5 | |
22029 | cat conftest.$ac_ext >&5 | |
22030 | rm -rf conftest* | |
22031 | eval "ac_cv_func_$ac_func=no" | |
22032 | fi | |
22033 | rm -f conftest* | |
22034 | fi | |
22035 | ||
22036 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22037 | echo "$ac_t""yes" 1>&6 | |
22038 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22039 | cat >> confdefs.h <<EOF | |
22040 | #define $ac_tr_func 1 | |
22041 | EOF | |
22042 | have_cos=1 | |
22043 | else | |
22044 | echo "$ac_t""no" 1>&6 | |
22045 | fi | |
22046 | done | |
22047 | ||
22048 | for ac_func in floor | |
22049 | do | |
22050 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
da494b40 | 22051 | echo "configure:22052: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22052 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22054 | else | |
22055 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 22056 | #line 22057 "configure" |
2b5f62a0 VZ |
22057 | #include "confdefs.h" |
22058 | /* System header to define __stub macros and hopefully few prototypes, | |
22059 | which can conflict with char $ac_func(); below. */ | |
22060 | #include <assert.h> | |
22061 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22062 | /* We use char because int might match the return type of a gcc2 | |
22063 | builtin and then its argument prototype would still apply. */ | |
22064 | char $ac_func(); | |
22065 | ||
22066 | int main() { | |
22067 | ||
22068 | /* The GNU C library defines this for functions which it implements | |
22069 | to always fail with ENOSYS. Some functions are actually named | |
22070 | something starting with __ and the normal name is an alias. */ | |
22071 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22072 | choke me | |
22073 | #else | |
22074 | $ac_func(); | |
22075 | #endif | |
22076 | ||
22077 | ; return 0; } | |
22078 | EOF | |
da494b40 | 22079 | if { (eval echo configure:22080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22080 | rm -rf conftest* |
22081 | eval "ac_cv_func_$ac_func=yes" | |
22082 | else | |
22083 | echo "configure: failed program was:" >&5 | |
22084 | cat conftest.$ac_ext >&5 | |
22085 | rm -rf conftest* | |
22086 | eval "ac_cv_func_$ac_func=no" | |
22087 | fi | |
22088 | rm -f conftest* | |
22089 | fi | |
22090 | ||
22091 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22092 | echo "$ac_t""yes" 1>&6 | |
22093 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22094 | cat >> confdefs.h <<EOF | |
22095 | #define $ac_tr_func 1 | |
22096 | EOF | |
22097 | have_floor=1 | |
22098 | else | |
22099 | echo "$ac_t""no" 1>&6 | |
22100 | fi | |
22101 | done | |
22102 | ||
22103 | echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6 | |
da494b40 | 22104 | echo "configure:22105: checking if floating point functions link without -lm" >&5 |
2b5f62a0 VZ |
22105 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
22106 | echo "$ac_t""yes" 1>&6 | |
22107 | else | |
22108 | echo "$ac_t""no" 1>&6 | |
22109 | LIBS="$LIBS -lm" | |
22110 | # use different functions to avoid configure caching | |
22111 | have_sin=0 | |
22112 | have_ceil=0 | |
22113 | for ac_func in sin | |
22114 | do | |
22115 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
da494b40 | 22116 | echo "configure:22117: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22117 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22118 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22119 | else | |
22120 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 22121 | #line 22122 "configure" |
2b5f62a0 VZ |
22122 | #include "confdefs.h" |
22123 | /* System header to define __stub macros and hopefully few prototypes, | |
22124 | which can conflict with char $ac_func(); below. */ | |
22125 | #include <assert.h> | |
22126 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22127 | /* We use char because int might match the return type of a gcc2 | |
22128 | builtin and then its argument prototype would still apply. */ | |
22129 | char $ac_func(); | |
22130 | ||
22131 | int main() { | |
22132 | ||
22133 | /* The GNU C library defines this for functions which it implements | |
22134 | to always fail with ENOSYS. Some functions are actually named | |
22135 | something starting with __ and the normal name is an alias. */ | |
22136 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22137 | choke me | |
22138 | #else | |
22139 | $ac_func(); | |
22140 | #endif | |
22141 | ||
22142 | ; return 0; } | |
22143 | EOF | |
da494b40 | 22144 | if { (eval echo configure:22145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22145 | rm -rf conftest* |
22146 | eval "ac_cv_func_$ac_func=yes" | |
22147 | else | |
22148 | echo "configure: failed program was:" >&5 | |
22149 | cat conftest.$ac_ext >&5 | |
22150 | rm -rf conftest* | |
22151 | eval "ac_cv_func_$ac_func=no" | |
22152 | fi | |
22153 | rm -f conftest* | |
22154 | fi | |
22155 | ||
22156 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22157 | echo "$ac_t""yes" 1>&6 | |
22158 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22159 | cat >> confdefs.h <<EOF | |
22160 | #define $ac_tr_func 1 | |
22161 | EOF | |
22162 | have_sin=1 | |
22163 | else | |
22164 | echo "$ac_t""no" 1>&6 | |
22165 | fi | |
22166 | done | |
22167 | ||
22168 | for ac_func in ceil | |
22169 | do | |
22170 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
da494b40 | 22171 | echo "configure:22172: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22172 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22173 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22174 | else | |
22175 | cat > conftest.$ac_ext <<EOF | |
da494b40 | 22176 | #line 22177 "configure" |
2b5f62a0 VZ |
22177 | #include "confdefs.h" |
22178 | /* System header to define __stub macros and hopefully few prototypes, | |
22179 | which can conflict with char $ac_func(); below. */ | |
22180 | #include <assert.h> | |
22181 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22182 | /* We use char because int might match the return type of a gcc2 | |
22183 | builtin and then its argument prototype would still apply. */ | |
22184 | char $ac_func(); | |
22185 | ||
22186 | int main() { | |
22187 | ||
22188 | /* The GNU C library defines this for functions which it implements | |
22189 | to always fail with ENOSYS. Some functions are actually named | |
22190 | something starting with __ and the normal name is an alias. */ | |
22191 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22192 | choke me | |
22193 | #else | |
22194 | $ac_func(); | |
22195 | #endif | |
22196 | ||
22197 | ; return 0; } | |
22198 | EOF | |
da494b40 | 22199 | if { (eval echo configure:22200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22200 | rm -rf conftest* |
22201 | eval "ac_cv_func_$ac_func=yes" | |
22202 | else | |
22203 | echo "configure: failed program was:" >&5 | |
22204 | cat conftest.$ac_ext >&5 | |
22205 | rm -rf conftest* | |
22206 | eval "ac_cv_func_$ac_func=no" | |
22207 | fi | |
22208 | rm -f conftest* | |
22209 | fi | |
22210 | ||
22211 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22212 | echo "$ac_t""yes" 1>&6 | |
22213 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22214 | cat >> confdefs.h <<EOF | |
22215 | #define $ac_tr_func 1 | |
22216 | EOF | |
22217 | have_ceil=1 | |
22218 | else | |
22219 | echo "$ac_t""no" 1>&6 | |
22220 | fi | |
22221 | done | |
22222 | ||
22223 | echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6 | |
da494b40 | 22224 | echo "configure:22225: checking if floating point functions link with -lm" >&5 |
2b5f62a0 VZ |
22225 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
22226 | echo "$ac_t""yes" 1>&6 | |
22227 | else | |
22228 | echo "$ac_t""no" 1>&6 | |
22229 | # not sure we should warn the user, crash, etc. | |
22230 | fi | |
22231 | fi | |
8284b0c5 MB |
22232 | |
22233 | if test "$wxUSE_GUI" = "yes"; then | |
22234 | ||
22235 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" | |
22236 | ||
a0b9e27f | 22237 | |
8284b0c5 MB |
22238 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
22239 | drawing dynamic erase event exec font image \ | |
22240 | minimal propsize rotate widgets" | |
22241 | ||
22242 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
22243 | else | |
22244 | SAMPLES_SUBDIRS="console" | |
22245 | fi | |
22246 | ||
22247 | ||
22248 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ | |
22249 | -I\${top_srcdir}/include \ | |
22250 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
22251 | $TOOLKIT_INCLUDE" | |
22252 | ||
22253 | if test "$wxUSE_GTK" = 1; then | |
22254 | WXCONFIG_INCLUDE= | |
22255 | else | |
22256 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
22257 | fi | |
22258 | ||
22259 | if test "$GXX" = yes ; then | |
22260 | CXXWARNINGS="-Wall" | |
a0b9e27f | 22261 | |
8284b0c5 MB |
22262 | if test "$wxUSE_NO_DEPS" = "no" ; then |
22263 | CFLAGS="-MMD $CFLAGS" | |
22264 | CXXFLAGS="-MMD $CXXFLAGS" | |
22265 | fi | |
22266 | fi | |
22267 | ||
b2fee376 | 22268 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" |
8284b0c5 | 22269 | |
b2fee376 | 22270 | CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
8284b0c5 MB |
22271 | CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
22272 | CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
22273 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
22274 | ||
22275 | LDFLAGS="$LDFLAGS $PROFILE" | |
22276 | ||
22277 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
22278 | ||
22279 | ||
22280 | ||
22281 | ||
22282 | ||
22283 | ||
22284 | ||
22285 | ||
22286 | ||
22287 | ||
22288 | ||
22289 | ||
22290 | ||
22291 | ||
22292 | ||
22293 | ||
22294 | ||
22295 | ||
22296 | ||
22297 | ||
22298 | ||
22299 | ||
22300 | ||
22301 | ||
22302 | ||
22303 | ||
22304 | ||
22305 | ||
22306 | ||
22307 | ||
22308 | ||
22309 | ||
22310 | ||
22311 | ||
22312 | ||
22313 | ||
22314 | ||
22315 | ||
22316 | ||
22317 | ||
22318 | ||
22319 | ||
22320 | ||
22321 | ||
22322 | ||
22323 | ||
22324 | ||
22325 | ||
22326 | ||
22327 | ||
22328 | ||
22329 | ||
22330 | ||
22331 | ||
22332 | ||
22333 | ||
22334 | ||
22335 | ||
22336 | ||
22337 | ||
22338 | ||
22339 | ||
22340 | ||
22341 | ||
22342 | ||
22343 | ||
22344 | ||
22345 | ||
2f51a9ec GD |
22346 | |
22347 | ||
22348 | ||
22349 | ||
f6bcfd97 | 22350 | |
dad6c0ea | 22351 | |
caa2c79b | 22352 | |
3711412e | 22353 | |
1e6feb95 VZ |
22354 | |
22355 | ||
885d4bf5 VS |
22356 | |
22357 | ||
22358 | ||
22359 | ||
9b695262 VZ |
22360 | |
22361 | ||
62d0491b | 22362 | |
ef7f2189 | 22363 | |
40f7145c | 22364 | |
2b5f62a0 VZ |
22365 | |
22366 | ||
22367 | ||
22368 | ||
22369 | ||
2bffed64 VZ |
22370 | |
22371 | ||
3bd8fb5f | 22372 | |
e26c13cf | 22373 | |
52c71b80 | 22374 | |
36825681 | 22375 | |
4f5a7f74 | 22376 | |
10f2d63a | 22377 | |
a0b9e27f MB |
22378 | |
22379 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
da494b40 | 22380 | echo "configure:22381: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
a0b9e27f MB |
22381 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
22382 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
22383 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 22384 | else |
a0b9e27f | 22385 | cat > conftestmake <<\EOF |
10f2d63a VZ |
22386 | all: |
22387 | @echo 'ac_maketemp="${MAKE}"' | |
a0b9e27f | 22388 | EOF |
10f2d63a | 22389 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
a0b9e27f | 22390 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
22391 | if test -n "$ac_maketemp"; then |
22392 | eval ac_cv_prog_make_${ac_make}_set=yes | |
22393 | else | |
22394 | eval ac_cv_prog_make_${ac_make}_set=no | |
22395 | fi | |
a0b9e27f | 22396 | rm -f conftestmake |
10f2d63a VZ |
22397 | fi |
22398 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
a0b9e27f | 22399 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
22400 | SET_MAKE= |
22401 | else | |
a0b9e27f | 22402 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
22403 | SET_MAKE="MAKE=${MAKE-make}" |
22404 | fi | |
22405 | ||
8284b0c5 | 22406 | |
3a922bb4 RL |
22407 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
22408 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 22409 | fi |
665bbe97 | 22410 | |
8284b0c5 | 22411 | |
10f2d63a | 22412 | |
57973b9c VZ |
22413 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
22414 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
22415 | wx_cv_path_ifs=$PATH_IFS | |
22416 | wx_cv_program_ext=$PROGRAM_EXT | |
22417 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
22418 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
22419 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
2b5f62a0 VZ |
22420 | wx_cv_library_basename=${WX_LIBRARY_BASENAME} |
22421 | wx_cv_release=${WX_RELEASE} | |
22422 | wx_cv_current=${WX_CURRENT} | |
22423 | wx_cv_revision=${WX_REVISION} | |
22424 | wx_cv_age=${WX_AGE} | |
27635a90 | 22425 | wx_cv_use_gui=${USE_GUI} |
5e66eee1 | 22426 | wx_cv_use_resources=${wxUSE_RESOURCES} |
57973b9c VZ |
22427 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ |
22428 | wx_cv_path_ifs wx_cv_program_ext \ | |
2b5f62a0 | 22429 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \ |
27635a90 | 22430 | wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \ |
5e66eee1 | 22431 | wx_cv_use_gui wx_cv_use_resources |
57973b9c | 22432 | |
a0b9e27f | 22433 | subdirs="demos samples utils contrib" |
8284b0c5 | 22434 | |
10f2d63a | 22435 | |
a0b9e27f MB |
22436 | trap '' 1 2 15 |
22437 | cat > confcache <<\EOF | |
10f2d63a VZ |
22438 | # This file is a shell script that caches the results of configure |
22439 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
22440 | # scripts and configure runs. It is not useful on other systems. |
22441 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 22442 | # |
a0b9e27f MB |
22443 | # By default, configure uses ./config.cache as the cache file, |
22444 | # creating it if it does not exist already. You can give configure | |
22445 | # the --cache-file=FILE option to use a different cache file; that is | |
22446 | # what configure does when it calls configure scripts in | |
22447 | # subdirectories, so they share the cache. | |
22448 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
22449 | # config.status only pays attention to the cache file if you give it the | |
22450 | # --recheck option to rerun configure. | |
10f2d63a | 22451 | # |
a0b9e27f | 22452 | EOF |
10f2d63a VZ |
22453 | # The following way of writing the cache mishandles newlines in values, |
22454 | # but we know of no workaround that is simple, portable, and efficient. | |
22455 | # So, don't put newlines in cache variables' values. | |
22456 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
22457 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
22458 | (set) 2>&1 | |
22459 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
22460 | *ac_space=\ *) | |
22461 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
22462 | # turns \\\\ into \\, and sed turns \\ into \). | |
22463 | sed -n \ | |
22464 | -e "s/'/'\\\\''/g" \ | |
22465 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
22466 | ;; | |
22467 | *) | |
22468 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
22469 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
22470 | ;; | |
22471 | esac >> confcache | |
22472 | if cmp -s $cache_file confcache; then | |
22473 | : | |
22474 | else | |
10f2d63a | 22475 | if test -w $cache_file; then |
a0b9e27f MB |
22476 | echo "updating cache $cache_file" |
22477 | cat confcache > $cache_file | |
10f2d63a VZ |
22478 | else |
22479 | echo "not updating unwritable cache $cache_file" | |
22480 | fi | |
22481 | fi | |
22482 | rm -f confcache | |
22483 | ||
a0b9e27f MB |
22484 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
22485 | ||
10f2d63a VZ |
22486 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
22487 | # Let make expand exec_prefix. | |
22488 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
22489 | ||
a0b9e27f MB |
22490 | # Any assignment to VPATH causes Sun make to only execute |
22491 | # the first set of double-colon rules, so remove it if not needed. | |
22492 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 22493 | if test "x$srcdir" = x.; then |
a0b9e27f | 22494 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
22495 | fi |
22496 | ||
a0b9e27f | 22497 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
10f2d63a | 22498 | |
a0b9e27f | 22499 | DEFS=-DHAVE_CONFIG_H |
8284b0c5 | 22500 | |
a0b9e27f | 22501 | # Without the "./", some shells look in PATH for config.status. |
247f5006 | 22502 | : ${CONFIG_STATUS=./config.status} |
52127426 | 22503 | |
a0b9e27f MB |
22504 | echo creating $CONFIG_STATUS |
22505 | rm -f $CONFIG_STATUS | |
22506 | cat > $CONFIG_STATUS <<EOF | |
22507 | #! /bin/sh | |
22508 | # Generated automatically by configure. | |
22509 | # Run this file to recreate the current configuration. | |
22510 | # This directory was configured as follows, | |
22511 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
247f5006 | 22512 | # |
a0b9e27f | 22513 | # $0 $ac_configure_args |
247f5006 | 22514 | # |
a0b9e27f MB |
22515 | # Compiler output produced by configure, useful for debugging |
22516 | # configure, is in ./config.log if it exists. | |
247f5006 | 22517 | |
a0b9e27f MB |
22518 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
22519 | for ac_option | |
247f5006 | 22520 | do |
a0b9e27f MB |
22521 | case "\$ac_option" in |
22522 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22523 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
22524 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
22525 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
22526 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
22527 | exit 0 ;; | |
22528 | -help | --help | --hel | --he | --h) | |
22529 | echo "\$ac_cs_usage"; exit 0 ;; | |
22530 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
247f5006 VZ |
22531 | esac |
22532 | done | |
22533 | ||
a0b9e27f MB |
22534 | ac_given_srcdir=$srcdir |
22535 | ac_given_INSTALL="$INSTALL" | |
247f5006 | 22536 | |
a0b9e27f MB |
22537 | trap 'rm -fr `echo " |
22538 | wx-config | |
2b5f62a0 | 22539 | version-script |
a0b9e27f MB |
22540 | src/make.env |
22541 | src/makeprog.env | |
22542 | src/makelib.env | |
22543 | Makefile | |
22544 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
22545 | EOF | |
22546 | cat >> $CONFIG_STATUS <<EOF | |
247f5006 | 22547 | |
a0b9e27f MB |
22548 | # Protect against being on the right side of a sed subst in config.status. |
22549 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
22550 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
22551 | $ac_vpsub | |
22552 | $extrasub | |
22553 | s%@SHELL@%$SHELL%g | |
22554 | s%@CFLAGS@%$CFLAGS%g | |
22555 | s%@CPPFLAGS@%$CPPFLAGS%g | |
22556 | s%@CXXFLAGS@%$CXXFLAGS%g | |
22557 | s%@FFLAGS@%$FFLAGS%g | |
22558 | s%@DEFS@%$DEFS%g | |
22559 | s%@LDFLAGS@%$LDFLAGS%g | |
22560 | s%@LIBS@%$LIBS%g | |
22561 | s%@exec_prefix@%$exec_prefix%g | |
22562 | s%@prefix@%$prefix%g | |
22563 | s%@program_transform_name@%$program_transform_name%g | |
22564 | s%@bindir@%$bindir%g | |
22565 | s%@sbindir@%$sbindir%g | |
22566 | s%@libexecdir@%$libexecdir%g | |
22567 | s%@datadir@%$datadir%g | |
22568 | s%@sysconfdir@%$sysconfdir%g | |
22569 | s%@sharedstatedir@%$sharedstatedir%g | |
22570 | s%@localstatedir@%$localstatedir%g | |
22571 | s%@libdir@%$libdir%g | |
22572 | s%@includedir@%$includedir%g | |
22573 | s%@oldincludedir@%$oldincludedir%g | |
22574 | s%@infodir@%$infodir%g | |
22575 | s%@mandir@%$mandir%g | |
22576 | s%@host@%$host%g | |
22577 | s%@host_alias@%$host_alias%g | |
22578 | s%@host_cpu@%$host_cpu%g | |
22579 | s%@host_vendor@%$host_vendor%g | |
22580 | s%@host_os@%$host_os%g | |
22581 | s%@target@%$target%g | |
22582 | s%@target_alias@%$target_alias%g | |
22583 | s%@target_cpu@%$target_cpu%g | |
22584 | s%@target_vendor@%$target_vendor%g | |
22585 | s%@target_os@%$target_os%g | |
22586 | s%@build@%$build%g | |
22587 | s%@build_alias@%$build_alias%g | |
22588 | s%@build_cpu@%$build_cpu%g | |
22589 | s%@build_vendor@%$build_vendor%g | |
22590 | s%@build_os@%$build_os%g | |
22591 | s%@CC@%$CC%g | |
22592 | s%@CPP@%$CPP%g | |
22593 | s%@CXX@%$CXX%g | |
22594 | s%@RANLIB@%$RANLIB%g | |
22595 | s%@AR@%$AR%g | |
22596 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
22597 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
22598 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
22599 | s%@STRIP@%$STRIP%g | |
22600 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g | |
22601 | s%@YACC@%$YACC%g | |
22602 | s%@LEX@%$LEX%g | |
22603 | s%@LEXLIB@%$LEXLIB%g | |
22604 | s%@LN_S@%$LN_S%g | |
22605 | s%@CXXCPP@%$CXXCPP%g | |
22606 | s%@PKG_CONFIG@%$PKG_CONFIG%g | |
22607 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
22608 | s%@GTK_LIBS@%$GTK_LIBS%g | |
22609 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
22610 | s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g | |
22611 | s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g | |
22612 | s%@X_CFLAGS@%$X_CFLAGS%g | |
22613 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
22614 | s%@X_LIBS@%$X_LIBS%g | |
22615 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
2b5f62a0 VZ |
22616 | s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g |
22617 | s%@PANGOX_LIBS@%$PANGOX_LIBS%g | |
22618 | s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g | |
22619 | s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g | |
a0b9e27f MB |
22620 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g |
22621 | s%@RESCOMP@%$RESCOMP%g | |
22622 | s%@DEREZ@%$DEREZ%g | |
36825681 | 22623 | s%@SETFILE@%$SETFILE%g |
a0b9e27f MB |
22624 | s%@LIBICONV@%$LIBICONV%g |
22625 | s%@LEX_STEM@%$LEX_STEM%g | |
22626 | s%@PATH_IFS@%$PATH_IFS%g | |
22627 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
22628 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
22629 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
22630 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
22631 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
2b5f62a0 | 22632 | s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g |
a0b9e27f MB |
22633 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
22634 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
22635 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
22636 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
22637 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
22638 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
22639 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
22640 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
22641 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
22642 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
22643 | s%@WX_ALL@%$WX_ALL%g | |
22644 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
22645 | s%@SHARED_LD@%$SHARED_LD%g | |
22646 | s%@PIC_FLAG@%$PIC_FLAG%g | |
22647 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
22648 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
22649 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g | |
22650 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
22651 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
22652 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
2bffed64 | 22653 | s%@STATIC_FLAG@%$STATIC_FLAG%g |
a0b9e27f MB |
22654 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
22655 | s%@USE_GUI@%$USE_GUI%g | |
22656 | s%@AFMINSTALL@%$AFMINSTALL%g | |
2b5f62a0 | 22657 | s%@WIN32INSTALL@%$WIN32INSTALL%g |
a0b9e27f MB |
22658 | s%@TOOLKIT@%$TOOLKIT%g |
22659 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
22660 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g | |
22661 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g | |
22662 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
22663 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g | |
52c71b80 | 22664 | s%@top_builddir@%$top_builddir%g |
a0b9e27f MB |
22665 | s%@cross_compiling@%$cross_compiling%g |
22666 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
22667 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
22668 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g | |
22669 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
22670 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
22671 | s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g | |
e26c13cf | 22672 | s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g |
a0b9e27f MB |
22673 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g |
22674 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
22675 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
22676 | s%@GUIDIST@%$GUIDIST%g | |
22677 | s%@PORT_FILES@%$PORT_FILES%g | |
22678 | s%@DISTDIR@%$DISTDIR%g | |
a0b9e27f MB |
22679 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
22680 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g | |
2b5f62a0 | 22681 | s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g |
a0b9e27f MB |
22682 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g |
22683 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
22684 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g | |
22685 | s%@EXTRADEFS@%$EXTRADEFS%g | |
2b5f62a0 | 22686 | s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g |
a0b9e27f MB |
22687 | s%@RESFLAGS@%$RESFLAGS%g |
22688 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g | |
22689 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g | |
22690 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
22691 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g | |
22692 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
36825681 GD |
22693 | s%@MACRESCOMP@%$MACRESCOMP%g |
22694 | s%@MACSETFILE@%$MACSETFILE%g | |
22695 | s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g | |
2b5f62a0 | 22696 | s%@GCC@%$GCC%g |
a0b9e27f MB |
22697 | s%@DLLTOOL@%$DLLTOOL%g |
22698 | s%@AS@%$AS%g | |
22699 | s%@NM@%$NM%g | |
22700 | s%@LD@%$LD%g | |
22701 | s%@MAKEINFO@%$MAKEINFO%g | |
22702 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g | |
4f5a7f74 | 22703 | s%@INSTALL_DIR@%$INSTALL_DIR%g |
a0b9e27f MB |
22704 | s%@SET_MAKE@%$SET_MAKE%g |
22705 | s%@subdirs@%$subdirs%g | |
247f5006 | 22706 | |
247f5006 | 22707 | CEOF |
a0b9e27f | 22708 | EOF |
247f5006 | 22709 | |
a0b9e27f MB |
22710 | cat >> $CONFIG_STATUS <<\EOF |
22711 | ||
22712 | # Split the substitutions into bite-sized pieces for seds with | |
22713 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
22714 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
22715 | ac_file=1 # Number of current file. | |
22716 | ac_beg=1 # First line for current file. | |
22717 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
22718 | ac_more_lines=: | |
22719 | ac_sed_cmds="" | |
22720 | while $ac_more_lines; do | |
22721 | if test $ac_beg -gt 1; then | |
22722 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
22723 | else | |
22724 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
22725 | fi | |
22726 | if test ! -s conftest.s$ac_file; then | |
22727 | ac_more_lines=false | |
22728 | rm -f conftest.s$ac_file | |
22729 | else | |
22730 | if test -z "$ac_sed_cmds"; then | |
22731 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
247f5006 | 22732 | else |
a0b9e27f | 22733 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
247f5006 | 22734 | fi |
a0b9e27f MB |
22735 | ac_file=`expr $ac_file + 1` |
22736 | ac_beg=$ac_end | |
22737 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 22738 | fi |
a0b9e27f MB |
22739 | done |
22740 | if test -z "$ac_sed_cmds"; then | |
22741 | ac_sed_cmds=cat | |
22742 | fi | |
22743 | EOF | |
10f2d63a | 22744 | |
a0b9e27f | 22745 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 22746 | |
a0b9e27f | 22747 | CONFIG_FILES=\${CONFIG_FILES-"wx-config |
2b5f62a0 | 22748 | version-script |
a0b9e27f MB |
22749 | src/make.env |
22750 | src/makeprog.env | |
22751 | src/makelib.env | |
22752 | Makefile | |
22753 | "} | |
22754 | EOF | |
22755 | cat >> $CONFIG_STATUS <<\EOF | |
22756 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
22757 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
22758 | case "$ac_file" in | |
22759 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
22760 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22761 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a | 22762 | esac |
247f5006 | 22763 | |
a0b9e27f | 22764 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
247f5006 | 22765 | |
a0b9e27f MB |
22766 | # Remove last slash and all that follows it. Not all systems have dirname. |
22767 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
22768 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
22769 | # The file is in a subdirectory. | |
22770 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
22771 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
22772 | # A "../" for each directory in $ac_dir_suffix. | |
22773 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
22774 | else | |
22775 | ac_dir_suffix= ac_dots= | |
22776 | fi | |
247f5006 | 22777 | |
a0b9e27f MB |
22778 | case "$ac_given_srcdir" in |
22779 | .) srcdir=. | |
22780 | if test -z "$ac_dots"; then top_srcdir=. | |
22781 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
22782 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
247f5006 | 22783 | *) # Relative path. |
a0b9e27f MB |
22784 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
22785 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8284b0c5 | 22786 | esac |
10f2d63a | 22787 | |
a0b9e27f MB |
22788 | case "$ac_given_INSTALL" in |
22789 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
22790 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
22791 | esac | |
247f5006 | 22792 | |
a0b9e27f MB |
22793 | echo creating "$ac_file" |
22794 | rm -f "$ac_file" | |
22795 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
22796 | case "$ac_file" in | |
22797 | *Makefile*) ac_comsub="1i\\ | |
22798 | # $configure_input" ;; | |
22799 | *) ac_comsub= ;; | |
22800 | esac | |
247f5006 | 22801 | |
a0b9e27f MB |
22802 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
22803 | sed -e "$ac_comsub | |
22804 | s%@configure_input@%$configure_input%g | |
22805 | s%@srcdir@%$srcdir%g | |
22806 | s%@top_srcdir@%$top_srcdir%g | |
22807 | s%@INSTALL@%$INSTALL%g | |
22808 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
22809 | fi; done | |
22810 | rm -f conftest.s* | |
10f2d63a VZ |
22811 | |
22812 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
22813 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
22814 | # | |
22815 | # ac_d sets the value in "#define NAME VALUE" lines. | |
a0b9e27f MB |
22816 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
22817 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
22818 | ac_dC='\3' | |
22819 | ac_dD='%g' | |
22820 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
22821 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22822 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 22823 | ac_uC=' ' |
a0b9e27f MB |
22824 | ac_uD='\4%g' |
22825 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
22826 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22827 | ac_eB='$%\1#\2define\3' | |
22828 | ac_eC=' ' | |
22829 | ac_eD='%g' | |
22830 | ||
22831 | if test "${CONFIG_HEADERS+set}" != set; then | |
22832 | EOF | |
22833 | cat >> $CONFIG_STATUS <<EOF | |
22834 | CONFIG_HEADERS="setup.h:setup.h.in" | |
22835 | EOF | |
22836 | cat >> $CONFIG_STATUS <<\EOF | |
22837 | fi | |
22838 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 22839 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
a0b9e27f MB |
22840 | case "$ac_file" in |
22841 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
22842 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22843 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
22844 | esac |
22845 | ||
a0b9e27f MB |
22846 | echo creating $ac_file |
22847 | ||
22848 | rm -f conftest.frag conftest.in conftest.out | |
22849 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
22850 | cat $ac_file_inputs > conftest.in | |
22851 | ||
22852 | EOF | |
22853 | ||
22854 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
22855 | # the proper values into config.h.in to produce config.h. And first: | |
22856 | # Protect against being on the right side of a sed subst in config.status. | |
22857 | # Protect against being in an unquoted here document in config.status. | |
22858 | rm -f conftest.vals | |
22859 | cat > conftest.hdr <<\EOF | |
22860 | s/[\\&%]/\\&/g | |
22861 | s%[\\$`]%\\&%g | |
22862 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
22863 | s%ac_d%ac_u%gp | |
22864 | s%ac_u%ac_e%gp | |
22865 | EOF | |
22866 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
22867 | rm -f conftest.hdr | |
10f2d63a VZ |
22868 | |
22869 | # This sed command replaces #undef with comments. This is necessary, for | |
22870 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
22871 | # on some systems where configure will not decide to define it. | |
a0b9e27f MB |
22872 | cat >> conftest.vals <<\EOF |
22873 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
22874 | EOF | |
22875 | ||
22876 | # Break up conftest.vals because some shells have a limit on | |
22877 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
22878 | |
22879 | rm -f conftest.tail | |
a0b9e27f | 22880 | while : |
10f2d63a | 22881 | do |
a0b9e27f MB |
22882 | ac_lines=`grep -c . conftest.vals` |
22883 | # grep -c gives empty output for an empty file on some AIX systems. | |
22884 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
22885 | # Write a limited-size here document to conftest.frag. | |
22886 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
22887 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 22888 | echo 'CEOF |
a0b9e27f MB |
22889 | sed -f conftest.frag conftest.in > conftest.out |
22890 | rm -f conftest.in | |
22891 | mv conftest.out conftest.in | |
22892 | ' >> $CONFIG_STATUS | |
22893 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
22894 | rm -f conftest.vals | |
22895 | mv conftest.tail conftest.vals | |
10f2d63a | 22896 | done |
a0b9e27f MB |
22897 | rm -f conftest.vals |
22898 | ||
22899 | cat >> $CONFIG_STATUS <<\EOF | |
22900 | rm -f conftest.frag conftest.h | |
22901 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
22902 | cat conftest.in >> conftest.h | |
22903 | rm -f conftest.in | |
22904 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
22905 | echo "$ac_file is unchanged" | |
22906 | rm -f conftest.h | |
10f2d63a | 22907 | else |
a0b9e27f MB |
22908 | # Remove last slash and all that follows it. Not all systems have dirname. |
22909 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
22910 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
22911 | # The file is in a subdirectory. | |
22912 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
247f5006 | 22913 | fi |
a0b9e27f MB |
22914 | rm -f $ac_file |
22915 | mv conftest.h $ac_file | |
247f5006 | 22916 | fi |
a0b9e27f MB |
22917 | fi; done |
22918 | ||
22919 | EOF | |
22920 | cat >> $CONFIG_STATUS <<EOF | |
22921 | ||
22922 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
22923 | LN_S="${LN_S}" | |
22924 | ||
22925 | ||
22926 | EOF | |
22927 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 22928 | |
652d930d | 22929 | if test ! -h wx-config; then |
991a5759 | 22930 | chmod +x wx-config |
3a922bb4 RL |
22931 | mv wx-config wx${TOOLCHAIN_NAME}-config |
22932 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 22933 | fi |
665bbe97 | 22934 | |
00cf1208 RR |
22935 | if test ! -d lib; then |
22936 | mkdir lib | |
22937 | fi | |
22938 | if test ! -d lib/wx; then | |
22939 | mkdir lib/wx | |
22940 | fi | |
22941 | if test ! -d lib/wx/include; then | |
22942 | mkdir lib/wx/include | |
22943 | fi | |
3a922bb4 RL |
22944 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
22945 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 22946 | fi |
3a922bb4 RL |
22947 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
22948 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
22949 | fi |
22950 | if test -f setup.h; then | |
3a922bb4 | 22951 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 22952 | fi |
a0b9e27f MB |
22953 | |
22954 | exit 0 | |
22955 | EOF | |
10f2d63a | 22956 | chmod +x $CONFIG_STATUS |
a0b9e27f MB |
22957 | rm -fr confdefs* $ac_clean_files |
22958 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 22959 | |
2224580a VZ |
22960 | if test "$no_recursion" != yes; then |
22961 | ||
22962 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
22963 | ac_sub_configure_args= | |
22964 | ac_prev= | |
22965 | for ac_arg in $ac_configure_args; do | |
22966 | if test -n "$ac_prev"; then | |
22967 | ac_prev= | |
22968 | continue | |
22969 | fi | |
a0b9e27f | 22970 | case "$ac_arg" in |
2224580a VZ |
22971 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
22972 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
22973 | ac_prev=cache_file ;; | |
22974 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
a0b9e27f | 22975 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
22976 | ;; |
22977 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
22978 | ac_prev=srcdir ;; | |
22979 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
22980 | ;; | |
22981 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
22982 | esac | |
22983 | done | |
22984 | ||
a0b9e27f | 22985 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
22986 | |
22987 | # Do not complain, so a configure script can configure whichever | |
22988 | # parts of a large source tree are present. | |
a0b9e27f MB |
22989 | if test ! -d $srcdir/$ac_config_dir; then |
22990 | continue | |
22991 | fi | |
2224580a | 22992 | |
a0b9e27f | 22993 | echo configuring in $ac_config_dir |
2224580a | 22994 | |
a0b9e27f MB |
22995 | case "$srcdir" in |
22996 | .) ;; | |
22997 | *) | |
22998 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
22999 | else | |
23000 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
23001 | fi | |
23002 | ;; | |
23003 | esac | |
2224580a | 23004 | |
a0b9e27f MB |
23005 | ac_popdir=`pwd` |
23006 | cd $ac_config_dir | |
247f5006 | 23007 | |
a0b9e27f MB |
23008 | # A "../" for each directory in /$ac_config_dir. |
23009 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
247f5006 | 23010 | |
a0b9e27f MB |
23011 | case "$srcdir" in |
23012 | .) # No --srcdir option. We are building in place. | |
23013 | ac_sub_srcdir=$srcdir ;; | |
23014 | /*) # Absolute path. | |
23015 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
23016 | *) # Relative path. | |
23017 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
23018 | esac | |
2224580a VZ |
23019 | |
23020 | # Check for guested configure; otherwise get Cygnus style configure. | |
a0b9e27f MB |
23021 | if test -f $ac_sub_srcdir/configure; then |
23022 | ac_sub_configure=$ac_sub_srcdir/configure | |
23023 | elif test -f $ac_sub_srcdir/configure.in; then | |
2224580a VZ |
23024 | ac_sub_configure=$ac_configure |
23025 | else | |
a0b9e27f | 23026 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
23027 | ac_sub_configure= |
23028 | fi | |
23029 | ||
23030 | # The recursion is here. | |
23031 | if test -n "$ac_sub_configure"; then | |
a0b9e27f | 23032 | |
2224580a | 23033 | # Make the cache file name correct relative to the subdirectory. |
a0b9e27f MB |
23034 | case "$cache_file" in |
23035 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 23036 | *) # Relative path. |
a0b9e27f | 23037 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 23038 | esac |
a0b9e27f MB |
23039 | case "$ac_given_INSTALL" in |
23040 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
23041 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
23042 | esac | |
2224580a | 23043 | |
a0b9e27f | 23044 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 23045 | # The eval makes quoting arguments work. |
a0b9e27f MB |
23046 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
23047 | then : | |
23048 | else | |
23049 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
23050 | fi | |
2224580a VZ |
23051 | fi |
23052 | ||
23053 | cd $ac_popdir | |
23054 | done | |
23055 | fi | |
23056 | ||
8284b0c5 | 23057 | |
2b5f62a0 VZ |
23058 | echo |
23059 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
23060 | echo "" | |
23061 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}" | |
23062 | ||
23063 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
23064 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
23065 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
23066 | ||
0c98a14e GD |
23067 | echo " What level of wxWindows compatibility should be enabled?" |
23068 | echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}" | |
65d8ef1e VS |
23069 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
23070 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 23071 | |
2b5f62a0 VZ |
23072 | echo " Which libraries should wxWindows use?" |
23073 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
23074 | echo " png ${wxUSE_LIBPNG-none}" | |
23075 | echo " regex ${wxUSE_REGEX}" | |
23076 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
23077 | echo " zlib ${wxUSE_ZLIB}" | |
23078 | ||
23079 | echo "" | |
23080 |