]>
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 | ||
521196a2 MB |
58 | |
59 | ||
60 | ||
a0b9e27f MB |
61 | |
62 | ||
63 | ||
64 | ||
65 | # Configure paths for GTK+ | |
66 | # Owen Taylor 1997-2001 | |
67 | ||
68 | ||
69 | ||
2b5f62a0 VZ |
70 | # Configure paths for GTK+ |
71 | # Owen Taylor 97-11-3 | |
a0b9e27f MB |
72 | |
73 | ||
74 | ||
75 | ||
76 | ||
a0b9e27f MB |
77 | |
78 | ||
79 | ||
80 | # Guess values for system-dependent variables and create Makefiles. | |
81 | # Generated automatically using autoconf version 2.13 | |
82 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
83 | # | |
84 | # This configure script is free software; the Free Software Foundation | |
85 | # gives unlimited permission to copy, distribute and modify it. | |
86 | ||
87 | # Defaults: | |
88 | ac_help= | |
89 | ac_default_prefix=/usr/local | |
90 | # Any additions from configure.in: | |
91 | ac_help="$ac_help | |
92 | --enable-gui use GUI classes" | |
93 | ac_help="$ac_help | |
94 | --enable-universal use wxWindows GUI controls instead of native ones" | |
95 | ac_help="$ac_help | |
96 | --with-gtk use GTK+" | |
97 | ac_help="$ac_help | |
98 | --with-motif use Motif/Lesstif" | |
99 | ac_help="$ac_help | |
100 | --with-mac use Mac OS X" | |
ac0c4cc3 DE |
101 | ac_help="$ac_help |
102 | --with-cocoa use Cocoa" | |
a0b9e27f | 103 | ac_help="$ac_help |
89e6bf6d | 104 | --with-wine use Wine" |
a0b9e27f MB |
105 | ac_help="$ac_help |
106 | --with-msw use MS-Windows" | |
107 | ac_help="$ac_help | |
108 | --with-pm use OS/2 Presentation Manager" | |
109 | ac_help="$ac_help | |
110 | --with-mgl use SciTech MGL" | |
111 | ac_help="$ac_help | |
112 | --with-microwin use MicroWindows" | |
113 | ac_help="$ac_help | |
114 | --with-x11 use X11" | |
115 | ac_help="$ac_help | |
116 | --enable-nanox use NanoX" | |
117 | ac_help="$ac_help | |
118 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" | |
119 | ac_help="$ac_help | |
120 | --with-libpng use libpng (PNG image format)" | |
121 | ac_help="$ac_help | |
122 | --with-libjpeg use libjpeg (JPEG file format)" | |
123 | ac_help="$ac_help | |
124 | --with-libtiff use libtiff (TIFF file format)" | |
125 | ac_help="$ac_help | |
126 | --with-opengl use OpenGL (or Mesa)" | |
127 | ac_help="$ac_help | |
128 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" | |
129 | ac_help="$ac_help | |
130 | --with-regex enable support for wxRegEx class" | |
131 | ac_help="$ac_help | |
132 | --with-zlib use zlib for LZW compression" | |
133 | ac_help="$ac_help | |
134 | --with-odbc use the IODBC and wxODBC classes" | |
135 | ac_help="$ac_help | |
136 | --enable-shared create shared library code" | |
137 | ac_help="$ac_help | |
138 | --enable-soname set the DT_SONAME field in ELF shared libraries" | |
139 | ac_help="$ac_help | |
140 | --enable-optimise create optimised code" | |
141 | ac_help="$ac_help | |
142 | --enable-debug same as debug_flag and debug_info" | |
143 | ac_help="$ac_help | |
b2fee376 | 144 | --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)" |
a0b9e27f MB |
145 | ac_help="$ac_help |
146 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
147 | ac_help="$ac_help | |
148 | --enable-debug_info create code with debugging information" | |
149 | ac_help="$ac_help | |
150 | --enable-debug_gdb create code with extra GDB debugging information" | |
151 | ac_help="$ac_help | |
152 | --enable-debug_cntxt use wxDebugContext" | |
153 | ac_help="$ac_help | |
154 | --enable-mem_tracing create code with memory tracing" | |
155 | ac_help="$ac_help | |
156 | --enable-profile create code with profiling information" | |
157 | ac_help="$ac_help | |
158 | --enable-no_rtti create code without RTTI information" | |
159 | ac_help="$ac_help | |
160 | --enable-no_exceptions create code without C++ exceptions handling" | |
161 | ac_help="$ac_help | |
162 | --enable-permissive compile code disregarding strict ANSI" | |
163 | ac_help="$ac_help | |
164 | --enable-no_deps create code without dependency information" | |
165 | ac_help="$ac_help | |
166 | --enable-compat20 enable wxWindows 2.0 compatibility" | |
167 | ac_help="$ac_help | |
65d8ef1e VS |
168 | --enable-compat22 enable wxWindows 2.2 compatibility" |
169 | ac_help="$ac_help | |
170 | --disable-compat24 disable wxWindows 2.4 compatibility" | |
a0b9e27f MB |
171 | ac_help="$ac_help |
172 | --enable-rpath=DIR output the rpath flag from wx-config" | |
173 | ac_help="$ac_help | |
174 | --enable-intl use internationalization system" | |
175 | ac_help="$ac_help | |
176 | --enable-config use wxConfig (and derived) classes" | |
177 | ac_help="$ac_help | |
178 | --enable-protocols use wxProtocol and derived classes" | |
179 | ac_help="$ac_help | |
180 | --enable-ftp use wxFTP (requires wxProtocol" | |
181 | ac_help="$ac_help | |
182 | --enable-http use wxHTTP (requires wxProtocol" | |
183 | ac_help="$ac_help | |
184 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
185 | ac_help="$ac_help | |
186 | --enable-sockets use socket/network classes" | |
3bce6687 JS |
187 | ac_help="$ac_help |
188 | --enable-ole use OLE classes" | |
189 | ac_help="$ac_help | |
190 | --enable-dataobj use data object classes" | |
a0b9e27f MB |
191 | ac_help="$ac_help |
192 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
193 | ac_help="$ac_help | |
194 | --enable-cmdline use wxCmdLineParser class" | |
195 | ac_help="$ac_help | |
196 | --enable-datetime use wxDateTime class" | |
a0b9e27f MB |
197 | ac_help="$ac_help |
198 | --enable-stopwatch use wxStopWatch class" | |
199 | ac_help="$ac_help | |
200 | --enable-dialupman use dialup network classes" | |
201 | ac_help="$ac_help | |
202 | --enable-apple_ieee use the Apple IEEE codec" | |
203 | ac_help="$ac_help | |
204 | --enable-timer use wxTimer class" | |
205 | ac_help="$ac_help | |
206 | --enable-wave use wxWave class" | |
207 | ac_help="$ac_help | |
208 | --enable-fraction use wxFraction class" | |
209 | ac_help="$ac_help | |
210 | --enable-dynlib use wxLibrary class for DLL loading" | |
211 | ac_help="$ac_help | |
212 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
213 | ac_help="$ac_help | |
214 | --enable-longlong use wxLongLong class" | |
215 | ac_help="$ac_help | |
216 | --enable-geometry use geometry class" | |
217 | ac_help="$ac_help | |
218 | --enable-log use logging system" | |
219 | ac_help="$ac_help | |
220 | --enable-streams use wxStream etc classes" | |
221 | ac_help="$ac_help | |
222 | --enable-file use wxFile classes" | |
223 | ac_help="$ac_help | |
224 | --enable-ffile use wxFFile classes" | |
225 | ac_help="$ac_help | |
226 | --enable-textbuf use wxTextBuffer class" | |
227 | ac_help="$ac_help | |
228 | --enable-textfile use wxTextFile class" | |
229 | ac_help="$ac_help | |
230 | --enable-fontmap use font encodings conversion classes" | |
231 | ac_help="$ac_help | |
232 | --enable-unicode compile wxString with Unicode support" | |
233 | ac_help="$ac_help | |
234 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
235 | ac_help="$ac_help | |
236 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
237 | ac_help="$ac_help | |
238 | --enable-std_iostreams use standard C++ stream classes" | |
239 | ac_help="$ac_help | |
240 | --enable-filesystem use virtual file systems classes" | |
241 | ac_help="$ac_help | |
242 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
243 | ac_help="$ac_help | |
244 | --enable-fs_zip use virtual ZIP filesystems" | |
245 | ac_help="$ac_help | |
246 | --enable-zipstream use wxZipInputStream" | |
247 | ac_help="$ac_help | |
248 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" | |
249 | ac_help="$ac_help | |
250 | --enable-snglinst use wxSingleInstanceChecker class" | |
251 | ac_help="$ac_help | |
252 | --enable-mimetype use wxMimeTypesManager" | |
253 | ac_help="$ac_help | |
254 | --enable-sysoptions use wxSystemOptions" | |
255 | ac_help="$ac_help | |
256 | --enable-url use wxURL class" | |
257 | ac_help="$ac_help | |
258 | --enable-protocol use wxProtocol class" | |
259 | ac_help="$ac_help | |
260 | --enable-protocol-http HTTP support in wxProtocol" | |
261 | ac_help="$ac_help | |
262 | --enable-protocol-ftp FTP support in wxProtocol" | |
263 | ac_help="$ac_help | |
264 | --enable-protocol-file FILE support in wxProtocol" | |
265 | ac_help="$ac_help | |
266 | --enable-threads use threads" | |
267 | ac_help="$ac_help | |
268 | --enable-docview use document view architecture" | |
269 | ac_help="$ac_help | |
270 | --enable-help use help subsystem" | |
271 | ac_help="$ac_help | |
272 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
273 | ac_help="$ac_help | |
274 | --enable-html use wxHTML sub-library" | |
275 | ac_help="$ac_help | |
276 | --enable-htmlhelp use wxHTML-based help" | |
277 | ac_help="$ac_help | |
278 | --enable-constraints use layout-constraints system" | |
279 | ac_help="$ac_help | |
280 | --enable-printarch use printing architecture" | |
281 | ac_help="$ac_help | |
282 | --enable-mdi use multiple document interface architecture" | |
283 | ac_help="$ac_help | |
284 | --enable-loggui use standard GUI logger" | |
285 | ac_help="$ac_help | |
286 | --enable-logwin use wxLogWindow" | |
287 | ac_help="$ac_help | |
288 | --enable-logdialog use wxLogDialog" | |
289 | ac_help="$ac_help | |
290 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
a0b9e27f MB |
291 | ac_help="$ac_help |
292 | --enable-resources use wxWindows resources" | |
293 | ac_help="$ac_help | |
294 | --enable-xresources use X resources for save (default for gtk+)" | |
295 | ac_help="$ac_help | |
da494b40 | 296 | --enable-clipboard use wxClipboard class" |
a0b9e27f MB |
297 | ac_help="$ac_help |
298 | --enable-dnd use Drag'n'Drop classes" | |
299 | ac_help="$ac_help | |
300 | --enable-metafile use win32 metafiles" | |
a0b9e27f MB |
301 | ac_help="$ac_help |
302 | --enable-controls use all usual controls" | |
303 | ac_help="$ac_help | |
304 | --enable-accel use accelerators" | |
305 | ac_help="$ac_help | |
306 | --enable-button use wxButton class" | |
307 | ac_help="$ac_help | |
308 | --enable-bmpbutton use wxBitmapButton class" | |
309 | ac_help="$ac_help | |
310 | --enable-calendar use wxCalendarCtrl class" | |
311 | ac_help="$ac_help | |
312 | --enable-caret use wxCaret class" | |
313 | ac_help="$ac_help | |
314 | --enable-checkbox use wxCheckBox class" | |
315 | ac_help="$ac_help | |
316 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
317 | ac_help="$ac_help | |
318 | --enable-choice use wxChoice class" | |
319 | ac_help="$ac_help | |
da494b40 MB |
320 | --enable-combobox use wxComboBox class" |
321 | ac_help="$ac_help | |
322 | --enable-display use wxDisplay class" | |
a0b9e27f MB |
323 | ac_help="$ac_help |
324 | --enable-gauge use wxGauge class" | |
325 | ac_help="$ac_help | |
326 | --enable-grid use wxGrid class" | |
a0b9e27f MB |
327 | ac_help="$ac_help |
328 | --enable-imaglist use wxImageList class" | |
329 | ac_help="$ac_help | |
330 | --enable-listbox use wxListBox class" | |
331 | ac_help="$ac_help | |
332 | --enable-listctrl use wxListCtrl class" | |
333 | ac_help="$ac_help | |
334 | --enable-notebook use wxNotebook class" | |
a0b9e27f MB |
335 | ac_help="$ac_help |
336 | --enable-radiobox use wxRadioBox class" | |
337 | ac_help="$ac_help | |
338 | --enable-radiobtn use wxRadioButton class" | |
339 | ac_help="$ac_help | |
340 | --enable-sash use wxSashWindow class" | |
341 | ac_help="$ac_help | |
342 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
343 | ac_help="$ac_help | |
344 | --enable-slider use wxSlider class" | |
345 | ac_help="$ac_help | |
346 | --enable-spinbtn use wxSpinButton class" | |
347 | ac_help="$ac_help | |
348 | --enable-spinctrl use wxSpinCtrl class" | |
349 | ac_help="$ac_help | |
350 | --enable-splitter use wxSplitterWindow class" | |
351 | ac_help="$ac_help | |
352 | --enable-statbmp use wxStaticBitmap class" | |
353 | ac_help="$ac_help | |
354 | --enable-statbox use wxStaticBox class" | |
355 | ac_help="$ac_help | |
356 | --enable-statline use wxStaticLine class" | |
357 | ac_help="$ac_help | |
358 | --enable-stattext use wxStaticText class" | |
359 | ac_help="$ac_help | |
360 | --enable-statusbar use wxStatusBar class" | |
361 | ac_help="$ac_help | |
362 | --enable-tabdialog use wxTabControl class" | |
363 | ac_help="$ac_help | |
364 | --enable-textctrl use wxTextCtrl class" | |
365 | ac_help="$ac_help | |
366 | --enable-togglebtn use wxToggleButton class" | |
367 | ac_help="$ac_help | |
368 | --enable-toolbar use wxToolBar class" | |
369 | ac_help="$ac_help | |
370 | --enable-tbarnative use native wxToolBar class" | |
371 | ac_help="$ac_help | |
372 | --enable-tbarsmpl use wxToolBarSimple class" | |
373 | ac_help="$ac_help | |
374 | --enable-treectrl use wxTreeCtrl class" | |
375 | ac_help="$ac_help | |
376 | --enable-tipwindow use wxTipWindow class" | |
377 | ac_help="$ac_help | |
378 | --enable-popupwin use wxPopUpWindow class" | |
379 | ac_help="$ac_help | |
380 | --enable-commondlg use all common dialogs" | |
381 | ac_help="$ac_help | |
382 | --enable-choicedlg use wxChoiceDialog" | |
383 | ac_help="$ac_help | |
384 | --enable-coldlg use wxColourDialog" | |
385 | ac_help="$ac_help | |
386 | --enable-filedlg use wxFileDialog" | |
387 | ac_help="$ac_help | |
388 | --enable-finddlg use wxFindReplaceDialog" | |
389 | ac_help="$ac_help | |
390 | --enable-fontdlg use wxFontDialog" | |
391 | ac_help="$ac_help | |
392 | --enable-dirdlg use wxDirDialog" | |
393 | ac_help="$ac_help | |
394 | --enable-msgdlg use wxMessageDialog" | |
395 | ac_help="$ac_help | |
396 | --enable-numberdlg use wxNumberEntryDialog" | |
397 | ac_help="$ac_help | |
398 | --enable-splash use wxSplashScreen" | |
399 | ac_help="$ac_help | |
400 | --enable-textdlg use wxTextDialog" | |
401 | ac_help="$ac_help | |
402 | --enable-tipdlg use startup tips" | |
403 | ac_help="$ac_help | |
404 | --enable-progressdlg use wxProgressDialog" | |
405 | ac_help="$ac_help | |
406 | --enable-wizarddlg use wxWizard" | |
407 | ac_help="$ac_help | |
408 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" | |
409 | ac_help="$ac_help | |
410 | --enable-miniframe use wxMiniFrame class" | |
411 | ac_help="$ac_help | |
412 | --enable-tooltips use wxToolTip class" | |
413 | ac_help="$ac_help | |
414 | --enable-splines use spline drawing code" | |
415 | ac_help="$ac_help | |
416 | --enable-validators use wxValidator and derived classes" | |
417 | ac_help="$ac_help | |
418 | --enable-busyinfo use wxBusyInfo" | |
419 | ac_help="$ac_help | |
420 | --enable-joystick use wxJoystick (Linux only)" | |
421 | ac_help="$ac_help | |
422 | --enable-metafiles use wxMetaFile (Windows only)" | |
423 | ac_help="$ac_help | |
424 | --enable-dragimage use wxDragImage" | |
425 | ac_help="$ac_help | |
426 | --enable-palette use wxPalette class" | |
427 | ac_help="$ac_help | |
428 | --enable-image use wxImage class" | |
429 | ac_help="$ac_help | |
430 | --enable-gif use gif images (GIF file format)" | |
431 | ac_help="$ac_help | |
432 | --enable-pcx use pcx images (PCX file format)" | |
433 | ac_help="$ac_help | |
434 | --enable-iff use iff images (IFF file format)" | |
435 | ac_help="$ac_help | |
436 | --enable-pnm use pnm images (PNM file format)" | |
437 | ac_help="$ac_help | |
438 | --enable-xpm use xpm images (XPM file format)" | |
439 | ac_help="$ac_help | |
440 | --enable-icocur use Windows ICO and CUR formats" | |
441 | ac_help="$ac_help | |
442 | --disable-largefile omit support for large files" | |
443 | ac_help="$ac_help | |
444 | --disable-gtktest do not try to compile and run a test GTK+ program" | |
445 | ac_help="$ac_help | |
446 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
447 | ac_help="$ac_help | |
448 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
449 | ac_help="$ac_help | |
450 | --disable-gtktest Do not try to compile and run a test GTK program" | |
451 | ac_help="$ac_help | |
452 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
453 | ac_help="$ac_help | |
454 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
455 | ac_help="$ac_help | |
456 | --disable-gtktest Do not try to compile and run a test GTK program" | |
457 | ac_help="$ac_help | |
458 | --with-x use the X Window System" | |
459 | ac_help="$ac_help | |
460 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
461 | |
462 | # Initialize some variables set by options. | |
463 | # The variables have the same names as the options, with | |
464 | # dashes changed to underlines. | |
a0b9e27f MB |
465 | build=NONE |
466 | cache_file=./config.cache | |
10f2d63a | 467 | exec_prefix=NONE |
a0b9e27f | 468 | host=NONE |
10f2d63a | 469 | no_create= |
a0b9e27f | 470 | nonopt=NONE |
10f2d63a VZ |
471 | no_recursion= |
472 | prefix=NONE | |
473 | program_prefix=NONE | |
474 | program_suffix=NONE | |
475 | program_transform_name=s,x,x, | |
476 | silent= | |
477 | site= | |
478 | srcdir= | |
a0b9e27f | 479 | target=NONE |
10f2d63a VZ |
480 | verbose= |
481 | x_includes=NONE | |
482 | x_libraries=NONE | |
483 | bindir='${exec_prefix}/bin' | |
484 | sbindir='${exec_prefix}/sbin' | |
485 | libexecdir='${exec_prefix}/libexec' | |
486 | datadir='${prefix}/share' | |
487 | sysconfdir='${prefix}/etc' | |
488 | sharedstatedir='${prefix}/com' | |
489 | localstatedir='${prefix}/var' | |
490 | libdir='${exec_prefix}/lib' | |
491 | includedir='${prefix}/include' | |
492 | oldincludedir='/usr/include' | |
493 | infodir='${prefix}/info' | |
494 | mandir='${prefix}/man' | |
495 | ||
a0b9e27f MB |
496 | # Initialize some other variables. |
497 | subdirs= | |
498 | MFLAGS= MAKEFLAGS= | |
499 | SHELL=${CONFIG_SHELL-/bin/sh} | |
500 | # Maximum number of lines to put in a shell here document. | |
501 | ac_max_here_lines=12 | |
502 | ||
10f2d63a VZ |
503 | ac_prev= |
504 | for ac_option | |
505 | do | |
a0b9e27f | 506 | |
10f2d63a VZ |
507 | # If the previous option needs an argument, assign it. |
508 | if test -n "$ac_prev"; then | |
509 | eval "$ac_prev=\$ac_option" | |
510 | ac_prev= | |
511 | continue | |
512 | fi | |
513 | ||
a0b9e27f MB |
514 | case "$ac_option" in |
515 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
516 | *) ac_optarg= ;; | |
517 | esac | |
10f2d63a VZ |
518 | |
519 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
520 | ||
a0b9e27f | 521 | case "$ac_option" in |
10f2d63a VZ |
522 | |
523 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
524 | ac_prev=bindir ;; | |
525 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
a0b9e27f | 526 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
527 | |
528 | -build | --build | --buil | --bui | --bu) | |
a0b9e27f | 529 | ac_prev=build ;; |
10f2d63a | 530 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
a0b9e27f | 531 | build="$ac_optarg" ;; |
10f2d63a VZ |
532 | |
533 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
534 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
535 | ac_prev=cache_file ;; | |
536 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
537 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
a0b9e27f | 538 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
539 | |
540 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
541 | ac_prev=datadir ;; | |
542 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
543 | | --da=*) | |
a0b9e27f | 544 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
545 | |
546 | -disable-* | --disable-*) | |
a0b9e27f | 547 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 548 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
549 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
550 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
551 | fi | |
552 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
553 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
554 | |
555 | -enable-* | --enable-*) | |
a0b9e27f | 556 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 557 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
558 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
559 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
560 | fi | |
561 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
562 | case "$ac_option" in | |
563 | *=*) ;; | |
10f2d63a VZ |
564 | *) ac_optarg=yes ;; |
565 | esac | |
a0b9e27f | 566 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
567 | |
568 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
569 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
570 | | --exec | --exe | --ex) | |
571 | ac_prev=exec_prefix ;; | |
572 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
573 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
574 | | --exec=* | --exe=* | --ex=*) | |
a0b9e27f | 575 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
576 | |
577 | -gas | --gas | --ga | --g) | |
578 | # Obsolete; use --with-gas. | |
579 | with_gas=yes ;; | |
580 | ||
a0b9e27f MB |
581 | -help | --help | --hel | --he) |
582 | # Omit some internal or obsolete options to make the list less imposing. | |
583 | # This message is too long to be a string in the A/UX 3.1 sh. | |
584 | cat << EOF | |
585 | Usage: configure [options] [host] | |
586 | Options: [defaults in brackets after descriptions] | |
587 | Configuration: | |
588 | --cache-file=FILE cache test results in FILE | |
589 | --help print this message | |
590 | --no-create do not create output files | |
591 | --quiet, --silent do not print \`checking...' messages | |
592 | --version print the version of autoconf that created configure | |
593 | Directory and file names: | |
594 | --prefix=PREFIX install architecture-independent files in PREFIX | |
595 | [$ac_default_prefix] | |
596 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
597 | [same as prefix] | |
598 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
599 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
600 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
601 | --datadir=DIR read-only architecture-independent data in DIR | |
602 | [PREFIX/share] | |
603 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
604 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
605 | [PREFIX/com] | |
606 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
607 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
608 | --includedir=DIR C header files in DIR [PREFIX/include] | |
609 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
610 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
611 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
612 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
613 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
614 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
615 | --program-transform-name=PROGRAM | |
616 | run sed PROGRAM on installed program names | |
617 | EOF | |
618 | cat << EOF | |
619 | Host type: | |
620 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
621 | --host=HOST configure for HOST [guessed] | |
622 | --target=TARGET configure for TARGET [TARGET=HOST] | |
623 | Features and packages: | |
624 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
625 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
626 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
627 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
628 | --x-includes=DIR X include files are in DIR | |
629 | --x-libraries=DIR X library files are in DIR | |
630 | EOF | |
631 | if test -n "$ac_help"; then | |
632 | echo "--enable and --with options recognized:$ac_help" | |
633 | fi | |
634 | exit 0 ;; | |
10f2d63a VZ |
635 | |
636 | -host | --host | --hos | --ho) | |
a0b9e27f | 637 | ac_prev=host ;; |
10f2d63a | 638 | -host=* | --host=* | --hos=* | --ho=*) |
a0b9e27f | 639 | host="$ac_optarg" ;; |
10f2d63a VZ |
640 | |
641 | -includedir | --includedir | --includedi | --included | --include \ | |
642 | | --includ | --inclu | --incl | --inc) | |
643 | ac_prev=includedir ;; | |
644 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
645 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
a0b9e27f | 646 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
647 | |
648 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
649 | ac_prev=infodir ;; | |
650 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
a0b9e27f | 651 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
652 | |
653 | -libdir | --libdir | --libdi | --libd) | |
654 | ac_prev=libdir ;; | |
655 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
a0b9e27f | 656 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
657 | |
658 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
659 | | --libexe | --libex | --libe) | |
660 | ac_prev=libexecdir ;; | |
661 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
662 | | --libexe=* | --libex=* | --libe=*) | |
a0b9e27f | 663 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
664 | |
665 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
666 | | --localstate | --localstat | --localsta | --localst \ | |
667 | | --locals | --local | --loca | --loc | --lo) | |
668 | ac_prev=localstatedir ;; | |
669 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
670 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
671 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
a0b9e27f | 672 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
673 | |
674 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
675 | ac_prev=mandir ;; | |
676 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
a0b9e27f | 677 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
678 | |
679 | -nfp | --nfp | --nf) | |
680 | # Obsolete; use --without-fp. | |
681 | with_fp=no ;; | |
682 | ||
683 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
a0b9e27f | 684 | | --no-cr | --no-c) |
10f2d63a VZ |
685 | no_create=yes ;; |
686 | ||
687 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
688 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
689 | no_recursion=yes ;; | |
690 | ||
691 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
692 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
693 | | --oldin | --oldi | --old | --ol | --o) | |
694 | ac_prev=oldincludedir ;; | |
695 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
696 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
697 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
a0b9e27f | 698 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
699 | |
700 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
701 | ac_prev=prefix ;; | |
702 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
a0b9e27f | 703 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
704 | |
705 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
706 | | --program-pre | --program-pr | --program-p) | |
707 | ac_prev=program_prefix ;; | |
708 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
709 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
a0b9e27f | 710 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
711 | |
712 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
713 | | --program-suf | --program-su | --program-s) | |
714 | ac_prev=program_suffix ;; | |
715 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
716 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
a0b9e27f | 717 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
718 | |
719 | -program-transform-name | --program-transform-name \ | |
720 | | --program-transform-nam | --program-transform-na \ | |
721 | | --program-transform-n | --program-transform- \ | |
722 | | --program-transform | --program-transfor \ | |
723 | | --program-transfo | --program-transf \ | |
724 | | --program-trans | --program-tran \ | |
725 | | --progr-tra | --program-tr | --program-t) | |
726 | ac_prev=program_transform_name ;; | |
727 | -program-transform-name=* | --program-transform-name=* \ | |
728 | | --program-transform-nam=* | --program-transform-na=* \ | |
729 | | --program-transform-n=* | --program-transform-=* \ | |
730 | | --program-transform=* | --program-transfor=* \ | |
731 | | --program-transfo=* | --program-transf=* \ | |
732 | | --program-trans=* | --program-tran=* \ | |
733 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
a0b9e27f | 734 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
735 | |
736 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
737 | | -silent | --silent | --silen | --sile | --sil) | |
738 | silent=yes ;; | |
739 | ||
740 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
741 | ac_prev=sbindir ;; | |
742 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
743 | | --sbi=* | --sb=*) | |
a0b9e27f | 744 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
745 | |
746 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
747 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
748 | | --sharedst | --shareds | --shared | --share | --shar \ | |
749 | | --sha | --sh) | |
750 | ac_prev=sharedstatedir ;; | |
751 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
752 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
753 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
754 | | --sha=* | --sh=*) | |
a0b9e27f | 755 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
756 | |
757 | -site | --site | --sit) | |
758 | ac_prev=site ;; | |
759 | -site=* | --site=* | --sit=*) | |
a0b9e27f | 760 | site="$ac_optarg" ;; |
10f2d63a VZ |
761 | |
762 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
763 | ac_prev=srcdir ;; | |
764 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
a0b9e27f | 765 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
766 | |
767 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
768 | | --syscon | --sysco | --sysc | --sys | --sy) | |
769 | ac_prev=sysconfdir ;; | |
770 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
771 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
a0b9e27f | 772 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
773 | |
774 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
a0b9e27f | 775 | ac_prev=target ;; |
10f2d63a | 776 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
a0b9e27f | 777 | target="$ac_optarg" ;; |
10f2d63a VZ |
778 | |
779 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
780 | verbose=yes ;; | |
781 | ||
a0b9e27f MB |
782 | -version | --version | --versio | --versi | --vers) |
783 | echo "configure generated by autoconf version 2.13" | |
784 | exit 0 ;; | |
10f2d63a VZ |
785 | |
786 | -with-* | --with-*) | |
a0b9e27f | 787 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 788 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
789 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
790 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
791 | fi | |
10f2d63a | 792 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
a0b9e27f MB |
793 | case "$ac_option" in |
794 | *=*) ;; | |
10f2d63a VZ |
795 | *) ac_optarg=yes ;; |
796 | esac | |
a0b9e27f | 797 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
798 | |
799 | -without-* | --without-*) | |
a0b9e27f | 800 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 801 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
802 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
803 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
804 | fi | |
805 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
806 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
807 | |
808 | --x) | |
809 | # Obsolete; use --with-x. | |
810 | with_x=yes ;; | |
811 | ||
812 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
813 | | --x-incl | --x-inc | --x-in | --x-i) | |
814 | ac_prev=x_includes ;; | |
815 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
816 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
a0b9e27f | 817 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
818 | |
819 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
820 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
821 | ac_prev=x_libraries ;; | |
822 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
823 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
a0b9e27f | 824 | x_libraries="$ac_optarg" ;; |
10f2d63a | 825 | |
a0b9e27f | 826 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
827 | ;; |
828 | ||
829 | *) | |
a0b9e27f MB |
830 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
831 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
832 | fi | |
833 | if test "x$nonopt" != xNONE; then | |
834 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
835 | fi | |
836 | nonopt="$ac_option" | |
10f2d63a VZ |
837 | ;; |
838 | ||
839 | esac | |
840 | done | |
841 | ||
842 | if test -n "$ac_prev"; then | |
a0b9e27f | 843 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
8284b0c5 | 844 | fi |
8284b0c5 | 845 | |
a0b9e27f MB |
846 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
847 | ||
848 | # File descriptor usage: | |
849 | # 0 standard input | |
850 | # 1 file creation | |
851 | # 2 errors and warnings | |
852 | # 3 some systems may open it to /dev/tty | |
853 | # 4 used on the Kubota Titan | |
854 | # 6 checking for... messages and results | |
855 | # 5 compiler messages saved in config.log | |
856 | if test "$silent" = yes; then | |
857 | exec 6>/dev/null | |
858 | else | |
859 | exec 6>&1 | |
860 | fi | |
861 | exec 5>./config.log | |
862 | ||
863 | echo "\ | |
864 | This file contains any messages produced by compilers while | |
865 | running configure, to aid debugging if configure makes a mistake. | |
866 | " 1>&5 | |
8284b0c5 | 867 | |
a0b9e27f MB |
868 | # Strip out --no-create and --no-recursion so they do not pile up. |
869 | # Also quote any args containing shell metacharacters. | |
870 | ac_configure_args= | |
871 | for ac_arg | |
10f2d63a | 872 | do |
a0b9e27f MB |
873 | case "$ac_arg" in |
874 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
875 | | --no-cr | --no-c) ;; | |
876 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
877 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
878 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
879 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
880 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
881 | esac |
882 | done | |
883 | ||
a0b9e27f MB |
884 | # NLS nuisances. |
885 | # Only set these to C if already set. These must not be set unconditionally | |
886 | # because not all systems understand e.g. LANG=C (notably SCO). | |
887 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
888 | # Non-C LC_CTYPE values break the ctype check. | |
889 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
890 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
891 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
892 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
247f5006 | 893 | |
a0b9e27f MB |
894 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
895 | rm -rf conftest* confdefs.h | |
896 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
897 | echo > confdefs.h | |
10f2d63a | 898 | |
a0b9e27f MB |
899 | # A filename unique to this package, relative to the directory that |
900 | # configure is in, which we can look for to find out if srcdir is correct. | |
901 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
902 | |
903 | # Find the source files, if location was not specified. | |
904 | if test -z "$srcdir"; then | |
905 | ac_srcdir_defaulted=yes | |
906 | # Try the directory containing this script, then its parent. | |
a0b9e27f MB |
907 | ac_prog=$0 |
908 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
909 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
10f2d63a VZ |
910 | srcdir=$ac_confdir |
911 | if test ! -r $srcdir/$ac_unique_file; then | |
912 | srcdir=.. | |
913 | fi | |
914 | else | |
915 | ac_srcdir_defaulted=no | |
916 | fi | |
917 | if test ! -r $srcdir/$ac_unique_file; then | |
918 | if test "$ac_srcdir_defaulted" = yes; then | |
a0b9e27f | 919 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 920 | else |
a0b9e27f | 921 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
922 | fi |
923 | fi | |
a0b9e27f | 924 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
328a083c | 925 | |
10f2d63a VZ |
926 | # Prefer explicitly selected file to automatically selected ones. |
927 | if test -z "$CONFIG_SITE"; then | |
928 | if test "x$prefix" != xNONE; then | |
929 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
930 | else | |
931 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
932 | fi | |
933 | fi | |
934 | for ac_site_file in $CONFIG_SITE; do | |
935 | if test -r "$ac_site_file"; then | |
a0b9e27f | 936 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
937 | . "$ac_site_file" |
938 | fi | |
939 | done | |
940 | ||
941 | if test -r "$cache_file"; then | |
a0b9e27f MB |
942 | echo "loading cache $cache_file" |
943 | . $cache_file | |
10f2d63a | 944 | else |
a0b9e27f MB |
945 | echo "creating cache $cache_file" |
946 | > $cache_file | |
10f2d63a VZ |
947 | fi |
948 | ||
949 | ac_ext=c | |
a0b9e27f | 950 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 951 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
952 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
953 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
954 | cross_compiling=$ac_cv_prog_cc_cross | |
955 | ||
956 | ac_exeext= | |
957 | ac_objext=o | |
958 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
959 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
960 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
961 | ac_n= ac_c=' | |
962 | ' ac_t=' ' | |
963 | else | |
964 | ac_n=-n ac_c= ac_t= | |
965 | fi | |
966 | else | |
967 | ac_n= ac_c='\c' ac_t= | |
968 | fi | |
8284b0c5 MB |
969 | |
970 | ||
10f2d63a | 971 | |
7c66a493 VZ |
972 | ac_aux_dir= |
973 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
974 | if test -f $ac_dir/install-sh; then | |
975 | ac_aux_dir=$ac_dir | |
976 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
977 | break | |
978 | elif test -f $ac_dir/install.sh; then | |
979 | ac_aux_dir=$ac_dir | |
980 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
981 | break | |
247f5006 | 982 | fi |
7c66a493 VZ |
983 | done |
984 | if test -z "$ac_aux_dir"; then | |
a0b9e27f | 985 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 986 | fi |
a0b9e27f MB |
987 | ac_config_guess=$ac_aux_dir/config.guess |
988 | ac_config_sub=$ac_aux_dir/config.sub | |
989 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
698dcdb6 | 990 | |
8284b0c5 | 991 | |
a0b9e27f MB |
992 | # Do some error checking and defaulting for the host and target type. |
993 | # The inputs are: | |
994 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
995 | # | |
996 | # The rules are: | |
997 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
998 | # same time. | |
999 | # 2. Host defaults to nonopt. | |
1000 | # 3. If nonopt is not specified, then host defaults to the current host, | |
1001 | # as determined by config.guess. | |
1002 | # 4. Target and build default to nonopt. | |
1003 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
1004 | |
1005 | # The aliases save the names the user supplied, while $host etc. | |
1006 | # will get canonicalized. | |
a0b9e27f MB |
1007 | case $host---$target---$nonopt in |
1008 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
1009 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
1010 | esac | |
1011 | ||
1012 | ||
1013 | # Make sure we can run config.sub. | |
1014 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1015 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1016 | fi | |
1017 | ||
1018 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
dfa2a1d9 | 1019 | echo "configure:1020: checking host system type" >&5 |
a0b9e27f MB |
1020 | |
1021 | host_alias=$host | |
1022 | case "$host_alias" in | |
1023 | NONE) | |
1024 | case $nonopt in | |
1025 | NONE) | |
1026 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1027 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1028 | fi ;; | |
1029 | *) host_alias=$nonopt ;; | |
1030 | esac ;; | |
1031 | esac | |
1032 | ||
1033 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1034 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1035 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1036 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1037 | echo "$ac_t""$host" 1>&6 | |
1038 | ||
1039 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
dfa2a1d9 | 1040 | echo "configure:1041: checking target system type" >&5 |
a0b9e27f MB |
1041 | |
1042 | target_alias=$target | |
1043 | case "$target_alias" in | |
1044 | NONE) | |
1045 | case $nonopt in | |
1046 | NONE) target_alias=$host_alias ;; | |
1047 | *) target_alias=$nonopt ;; | |
1048 | esac ;; | |
1049 | esac | |
1050 | ||
1051 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1052 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1053 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1054 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1055 | echo "$ac_t""$target" 1>&6 | |
1056 | ||
1057 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
dfa2a1d9 | 1058 | echo "configure:1059: checking build system type" >&5 |
a0b9e27f MB |
1059 | |
1060 | build_alias=$build | |
1061 | case "$build_alias" in | |
1062 | NONE) | |
1063 | case $nonopt in | |
1064 | NONE) build_alias=$host_alias ;; | |
1065 | *) build_alias=$nonopt ;; | |
1066 | esac ;; | |
1067 | esac | |
1068 | ||
1069 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1070 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1071 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1072 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1073 | echo "$ac_t""$build" 1>&6 | |
1074 | ||
1075 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1076 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1077 | NONENONEs,x,x, && | |
1078 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1079 | |
1080 | ||
a0b9e27f | 1081 | |
10f2d63a | 1082 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 VZ |
1083 | WX_MINOR_VERSION_NUMBER=5 |
1084 | WX_RELEASE_NUMBER=0 | |
10f2d63a | 1085 | |
10f2d63a | 1086 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1087 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1088 | |
978f1259 RL |
1089 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1090 | ||
34bed6d9 | 1091 | WX_CURRENT=0 |
6426998c RL |
1092 | WX_REVISION=0 |
1093 | WX_AGE=0 | |
1094 | ||
8284b0c5 MB |
1095 | |
1096 | ||
10f2d63a VZ |
1097 | USE_UNIX=1 |
1098 | USE_WIN32=0 | |
f9bc1684 | 1099 | USE_DOS=0 |
b12915c1 | 1100 | USE_BEOS=0 |
1216f52d | 1101 | USE_MAC=0 |
b12915c1 | 1102 | |
10f2d63a VZ |
1103 | USE_LINUX= |
1104 | USE_SGI= | |
1105 | USE_HPUX= | |
1106 | USE_SYSV= | |
1107 | USE_SVR4= | |
1108 | USE_AIX= | |
1109 | USE_SUN= | |
1110 | USE_SOLARIS= | |
1111 | USE_SUNOS= | |
1112 | USE_ALPHA= | |
1113 | USE_OSF= | |
1114 | USE_BSD= | |
f11bdd03 | 1115 | USE_DARWIN= |
10f2d63a | 1116 | USE_FREEBSD= |
95c8801c | 1117 | USE_OPENBSD= |
f6bcfd97 | 1118 | USE_NETBSD= |
10f2d63a VZ |
1119 | USE_VMS= |
1120 | USE_ULTRIX= | |
10f2d63a VZ |
1121 | USE_DATA_GENERAL= |
1122 | ||
ab9b9eab VZ |
1123 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1124 | ||
ac0c4cc3 | 1125 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a | 1126 | |
ac0c4cc3 | 1127 | DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1128 | DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1129 | DEFAULT_wxUSE_MAC=0 |
1130 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1131 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1132 | DEFAULT_wxUSE_MOTIF=0 |
1133 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1134 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1135 | DEFAULT_wxUSE_X11=0 |
10f2d63a | 1136 | |
ac0c4cc3 | 1137 | DEFAULT_DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1138 | DEFAULT_DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1139 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1140 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1141 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1142 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1143 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1144 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1145 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1146 | |
d6a55c4b | 1147 | PROGRAM_EXT= |
3a922bb4 | 1148 | SO_SUFFIX=so |
d6a55c4b | 1149 | |
10f2d63a VZ |
1150 | case "${host}" in |
1151 | *-hp-hpux* ) | |
1152 | USE_HPUX=1 | |
1153 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1154 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1155 | SO_SUFFIX=sl |
a0b9e27f | 1156 | cat >> confdefs.h <<\EOF |
10f2d63a | 1157 | #define __HPUX__ 1 |
a0b9e27f | 1158 | EOF |
10f2d63a VZ |
1159 | |
1160 | ;; | |
1161 | *-*-linux* ) | |
1162 | USE_LINUX=1 | |
a0b9e27f | 1163 | cat >> confdefs.h <<\EOF |
10f2d63a | 1164 | #define __LINUX__ 1 |
a0b9e27f | 1165 | EOF |
10f2d63a VZ |
1166 | |
1167 | TMP=`uname -m` | |
1168 | if test "x$TMP" = "xalpha"; then | |
1169 | USE_ALPHA=1 | |
a0b9e27f | 1170 | cat >> confdefs.h <<\EOF |
10f2d63a | 1171 | #define __ALPHA__ 1 |
a0b9e27f | 1172 | EOF |
10f2d63a VZ |
1173 | |
1174 | fi | |
1175 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1176 | ;; | |
1177 | *-*-irix5* | *-*-irix6* ) | |
1178 | USE_SGI=1 | |
1179 | USE_SVR4=1 | |
a0b9e27f | 1180 | cat >> confdefs.h <<\EOF |
10f2d63a | 1181 | #define __SGI__ 1 |
a0b9e27f | 1182 | EOF |
10f2d63a | 1183 | |
a0b9e27f | 1184 | cat >> confdefs.h <<\EOF |
10f2d63a | 1185 | #define __SVR4__ 1 |
a0b9e27f | 1186 | EOF |
10f2d63a VZ |
1187 | |
1188 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1189 | ;; | |
1190 | *-*-solaris2* ) | |
1191 | USE_SUN=1 | |
1192 | USE_SOLARIS=1 | |
1193 | USE_SVR4=1 | |
a0b9e27f | 1194 | cat >> confdefs.h <<\EOF |
10f2d63a | 1195 | #define __SUN__ 1 |
a0b9e27f | 1196 | EOF |
10f2d63a | 1197 | |
a0b9e27f | 1198 | cat >> confdefs.h <<\EOF |
10f2d63a | 1199 | #define __SOLARIS__ 1 |
a0b9e27f | 1200 | EOF |
10f2d63a | 1201 | |
a0b9e27f | 1202 | cat >> confdefs.h <<\EOF |
10f2d63a | 1203 | #define __SVR4__ 1 |
a0b9e27f | 1204 | EOF |
10f2d63a VZ |
1205 | |
1206 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1207 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1208 | ;; |
1209 | *-*-sunos4* ) | |
1210 | USE_SUN=1 | |
1211 | USE_SUNOS=1 | |
1212 | USE_BSD=1 | |
a0b9e27f | 1213 | cat >> confdefs.h <<\EOF |
10f2d63a | 1214 | #define __SUN__ 1 |
a0b9e27f | 1215 | EOF |
10f2d63a | 1216 | |
a0b9e27f | 1217 | cat >> confdefs.h <<\EOF |
10f2d63a | 1218 | #define __SUNOS__ 1 |
a0b9e27f | 1219 | EOF |
10f2d63a | 1220 | |
a0b9e27f | 1221 | cat >> confdefs.h <<\EOF |
10f2d63a | 1222 | #define __BSD__ 1 |
a0b9e27f | 1223 | EOF |
10f2d63a VZ |
1224 | |
1225 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1226 | ;; | |
f6bcfd97 | 1227 | *-*-freebsd*) |
10f2d63a VZ |
1228 | USE_BSD=1 |
1229 | USE_FREEBSD=1 | |
a0b9e27f | 1230 | cat >> confdefs.h <<\EOF |
10f2d63a | 1231 | #define __FREEBSD__ 1 |
a0b9e27f | 1232 | EOF |
10f2d63a | 1233 | |
a0b9e27f | 1234 | cat >> confdefs.h <<\EOF |
10f2d63a | 1235 | #define __BSD__ 1 |
a0b9e27f | 1236 | EOF |
95c8801c VS |
1237 | |
1238 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1239 | ;; | |
1240 | *-*-openbsd*) | |
1241 | USE_BSD=1 | |
1242 | USE_OPENBSD=1 | |
a0b9e27f | 1243 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1244 | #define __OPENBSD__ 1 |
a0b9e27f | 1245 | EOF |
95c8801c | 1246 | |
a0b9e27f | 1247 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1248 | #define __BSD__ 1 |
a0b9e27f | 1249 | EOF |
f6bcfd97 BP |
1250 | |
1251 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1252 | ;; | |
1253 | *-*-netbsd*) | |
1254 | USE_BSD=1 | |
1255 | USE_NETBSD=1 | |
a0b9e27f | 1256 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1257 | #define __NETBSD__ 1 |
a0b9e27f | 1258 | EOF |
f6bcfd97 | 1259 | |
a0b9e27f | 1260 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1261 | #define __BSD__ 1 |
a0b9e27f | 1262 | EOF |
10f2d63a VZ |
1263 | |
1264 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1265 | ;; | |
1266 | *-*-osf* ) | |
1267 | USE_ALPHA=1 | |
1268 | USE_OSF=1 | |
a0b9e27f | 1269 | cat >> confdefs.h <<\EOF |
10f2d63a | 1270 | #define __ALPHA__ 1 |
a0b9e27f | 1271 | EOF |
10f2d63a | 1272 | |
a0b9e27f | 1273 | cat >> confdefs.h <<\EOF |
10f2d63a | 1274 | #define __OSF__ 1 |
a0b9e27f | 1275 | EOF |
10f2d63a VZ |
1276 | |
1277 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1278 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1279 | ;; |
1280 | *-*-dgux5* ) | |
1281 | USE_ALPHA=1 | |
1282 | USE_SVR4=1 | |
a0b9e27f | 1283 | cat >> confdefs.h <<\EOF |
10f2d63a | 1284 | #define __ALPHA__ 1 |
a0b9e27f | 1285 | EOF |
10f2d63a | 1286 | |
a0b9e27f | 1287 | cat >> confdefs.h <<\EOF |
10f2d63a | 1288 | #define __SVR4__ 1 |
a0b9e27f | 1289 | EOF |
10f2d63a VZ |
1290 | |
1291 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1292 | ;; | |
1293 | *-*-sysv5* ) | |
1294 | USE_SYSV=1 | |
1295 | USE_SVR4=1 | |
a0b9e27f | 1296 | cat >> confdefs.h <<\EOF |
10f2d63a | 1297 | #define __SYSV__ 1 |
a0b9e27f | 1298 | EOF |
10f2d63a | 1299 | |
a0b9e27f | 1300 | cat >> confdefs.h <<\EOF |
10f2d63a | 1301 | #define __SVR4__ 1 |
a0b9e27f | 1302 | EOF |
10f2d63a VZ |
1303 | |
1304 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1305 | ;; | |
1306 | *-*-aix* ) | |
1307 | USE_AIX=1 | |
1308 | USE_SYSV=1 | |
1309 | USE_SVR4=1 | |
2b5f62a0 | 1310 | SO_SUFFIX=a |
a0b9e27f | 1311 | cat >> confdefs.h <<\EOF |
10f2d63a | 1312 | #define __AIX__ 1 |
a0b9e27f | 1313 | EOF |
10f2d63a | 1314 | |
a0b9e27f | 1315 | cat >> confdefs.h <<\EOF |
10f2d63a | 1316 | #define __SYSV__ 1 |
a0b9e27f | 1317 | EOF |
10f2d63a | 1318 | |
a0b9e27f | 1319 | cat >> confdefs.h <<\EOF |
10f2d63a | 1320 | #define __SVR4__ 1 |
a0b9e27f | 1321 | EOF |
10f2d63a VZ |
1322 | |
1323 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1324 | ;; | |
1325 | ||
1c8183e2 | 1326 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1327 | SO_SUFFIX=dll |
cf27ef00 | 1328 | PROGRAM_EXT=".exe" |
7b7a7637 | 1329 | RESCOMP=windres |
10f2d63a VZ |
1330 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1331 | ;; | |
1332 | ||
f9bc1684 VS |
1333 | *-pc-msdosdjgpp ) |
1334 | USE_UNIX=0 | |
1335 | USE_DOS=1 | |
a0b9e27f | 1336 | cat >> confdefs.h <<\EOF |
f9bc1684 | 1337 | #define __DOS__ 1 |
a0b9e27f | 1338 | EOF |
f9bc1684 VS |
1339 | |
1340 | PROGRAM_EXT=".exe" | |
1341 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1342 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1343 | ;; |
1344 | ||
6fa882bd | 1345 | *-pc-os2_emx | *-pc-os2-emx ) |
a0b9e27f | 1346 | cat >> confdefs.h <<\EOF |
10f2d63a | 1347 | #define __EMX__ 1 |
a0b9e27f | 1348 | EOF |
10f2d63a | 1349 | |
cf27ef00 | 1350 | PROGRAM_EXT=".exe" |
e07802fc | 1351 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1352 | ;; |
1353 | ||
d08b457b GD |
1354 | powerpc-*-darwin* ) |
1355 | USE_BSD=1 | |
f11bdd03 | 1356 | USE_DARWIN=1 |
3a922bb4 | 1357 | SO_SUFFIX=dylib |
a0b9e27f | 1358 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1359 | #define __BSD__ 1 |
a0b9e27f | 1360 | EOF |
b4085ce6 | 1361 | |
a0b9e27f | 1362 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1363 | #define __DARWIN__ 1 |
a0b9e27f | 1364 | EOF |
d08b457b | 1365 | |
a0b9e27f | 1366 | cat >> confdefs.h <<\EOF |
d08b457b | 1367 | #define __POWERPC__ 1 |
82d43113 GD |
1368 | EOF |
1369 | ||
1370 | cat >> confdefs.h <<\EOF | |
1371 | #define TARGET_CARBON 1 | |
a0b9e27f | 1372 | EOF |
b4085ce6 GD |
1373 | |
1374 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1375 | ;; | |
1376 | ||
b12915c1 VZ |
1377 | *-*-beos* ) |
1378 | USE_BEOS=1 | |
a0b9e27f | 1379 | cat >> confdefs.h <<\EOF |
b12915c1 | 1380 | #define __BEOS__ 1 |
a0b9e27f | 1381 | EOF |
b12915c1 VZ |
1382 | |
1383 | ;; | |
1384 | ||
10f2d63a | 1385 | *) |
a0b9e27f | 1386 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1387 | esac |
1388 | ||
8284b0c5 MB |
1389 | |
1390 | ||
1391 | ||
1392 | wx_arg_cache_file="configarg.cache" | |
1393 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1394 | rm -f ${wx_arg_cache_file}.tmp |
1395 | touch ${wx_arg_cache_file}.tmp | |
1396 | touch ${wx_arg_cache_file} | |
a0b9e27f | 1397 | |
10f2d63a VZ |
1398 | |
1399 | DEBUG_CONFIGURE=0 | |
1400 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1401 | DEFAULT_wxUSE_UNIVERSAL=no |
1402 | ||
d8356fa3 VZ |
1403 | DEFAULT_wxUSE_NANOX=no |
1404 | ||
10f2d63a VZ |
1405 | DEFAULT_wxUSE_THREADS=yes |
1406 | ||
1407 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1408 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1409 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1410 | DEFAULT_wxUSE_PROFILE=no |
1411 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1412 | DEFAULT_wxUSE_NO_RTTI=no |
1413 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1414 | DEFAULT_wxUSE_PERMISSIVE=no |
1415 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1416 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1417 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1418 | DEFAULT_wxUSE_MEM_TRACING=no | |
1419 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1420 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1421 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1422 | DEFAULT_wxUSE_APPLE_IEEE=no |
1423 | ||
1424 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1425 | DEFAULT_wxUSE_LOGWINDOW=no |
1426 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1427 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1428 | |
1429 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1430 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1431 | |
3e44f09d | 1432 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1433 | DEFAULT_wxUSE_ZLIB=no |
1434 | DEFAULT_wxUSE_LIBPNG=no | |
1435 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1436 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1437 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1438 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1439 | |
eb4efbdc | 1440 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1441 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1442 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1443 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1444 | DEFAULT_wxUSE_DATETIME=no | |
1e6feb95 VZ |
1445 | DEFAULT_wxUSE_TIMER=no |
1446 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1447 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1448 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1449 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1450 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1451 | DEFAULT_wxUSE_WAVE=no |
1452 | DEFAULT_wxUSE_INTL=no | |
1453 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1454 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1455 | DEFAULT_wxUSE_STREAMS=no |
1456 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
1457 | DEFAULT_wxUSE_OLE=no |
1458 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 1459 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 1460 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1461 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1462 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1463 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1464 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1465 | |
1466 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1467 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1468 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1469 | ||
1470 | DEFAULT_wxUSE_X_RESOURCES=no | |
1471 | DEFAULT_wxUSE_CLIPBOARD=no | |
1472 | DEFAULT_wxUSE_TOOLTIPS=no | |
1473 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1474 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1475 | DEFAULT_wxUSE_SPLINES=no |
1476 | ||
1477 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1478 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1479 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1480 | ||
10f2d63a VZ |
1481 | DEFAULT_wxUSE_RESOURCES=no |
1482 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1483 | DEFAULT_wxUSE_IPC=no | |
1484 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1485 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1486 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1487 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1488 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1489 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1490 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1491 | DEFAULT_wxUSE_PROTOCOL=no | |
1492 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1493 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1494 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1495 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 1496 | |
10f2d63a | 1497 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1498 | DEFAULT_wxUSE_CHOICEDLG=no |
1499 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1500 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1501 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1502 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1503 | DEFAULT_wxUSE_FONTDLG=no |
1504 | DEFAULT_wxUSE_MSGDLG=no | |
1505 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1506 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1507 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1508 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1509 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1510 | DEFAULT_wxUSE_WIZARDDLG=no |
1511 | ||
1e6feb95 | 1512 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1513 | DEFAULT_wxUSE_MINIFRAME=no |
1514 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1515 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1516 | DEFAULT_wxUSE_FS_INET=no |
1517 | DEFAULT_wxUSE_FS_ZIP=no | |
1518 | DEFAULT_wxUSE_BUSYINFO=no | |
1519 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1520 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1521 | |
1522 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1523 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1524 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1525 | DEFAULT_wxUSE_CALCTRL=no |
1526 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1527 | DEFAULT_wxUSE_CHECKBOX=no |
1528 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1529 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a | 1530 | DEFAULT_wxUSE_COMBOBOX=no |
da494b40 | 1531 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
1532 | DEFAULT_wxUSE_GAUGE=no |
1533 | DEFAULT_wxUSE_GRID=no | |
10f2d63a VZ |
1534 | DEFAULT_wxUSE_IMAGLIST=no |
1535 | DEFAULT_wxUSE_LISTBOX=no | |
1536 | DEFAULT_wxUSE_LISTCTRL=no | |
1537 | DEFAULT_wxUSE_NOTEBOOK=no | |
1538 | DEFAULT_wxUSE_RADIOBOX=no | |
1539 | DEFAULT_wxUSE_RADIOBTN=no | |
1540 | DEFAULT_wxUSE_SASH=no | |
1541 | DEFAULT_wxUSE_SCROLLBAR=no | |
1542 | DEFAULT_wxUSE_SLIDER=no | |
1543 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1544 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1545 | DEFAULT_wxUSE_SPLITTER=no |
1546 | DEFAULT_wxUSE_STATBMP=no | |
1547 | DEFAULT_wxUSE_STATBOX=no | |
1548 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1549 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1550 | DEFAULT_wxUSE_STATUSBAR=yes |
1551 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1552 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1553 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1554 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1555 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1556 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1557 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1558 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1559 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1560 | |
1561 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1562 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1563 | DEFAULT_wxUSE_WCSRTOMBS=no |
1564 | ||
edae8572 | 1565 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1566 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1567 | DEFAULT_wxUSE_GIF=no |
1568 | DEFAULT_wxUSE_PCX=no | |
1569 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1570 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1571 | DEFAULT_wxUSE_XPM=no |
658974ae | 1572 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1573 | else |
1e6feb95 VZ |
1574 | DEFAULT_wxUSE_UNIVERSAL=no |
1575 | ||
d8356fa3 VZ |
1576 | DEFAULT_wxUSE_NANOX=no |
1577 | ||
10f2d63a VZ |
1578 | DEFAULT_wxUSE_THREADS=yes |
1579 | ||
1580 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1581 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1582 | DEFAULT_wxUSE_OPTIMISE=yes |
1583 | DEFAULT_wxUSE_PROFILE=no | |
1584 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1585 | DEFAULT_wxUSE_NO_RTTI=no |
1586 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1587 | DEFAULT_wxUSE_PERMISSIVE=no |
1588 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1589 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1590 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1591 | DEFAULT_wxUSE_MEM_TRACING=no | |
1592 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1593 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1594 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1595 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1596 | ||
1597 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1598 | DEFAULT_wxUSE_LOGWINDOW=yes |
1599 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1600 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1601 | |
1602 | DEFAULT_wxUSE_GUI=yes | |
1603 | ||
831b3152 | 1604 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1605 | DEFAULT_wxUSE_ZLIB=yes |
1606 | DEFAULT_wxUSE_LIBPNG=yes | |
1607 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1608 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1609 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1610 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1611 | |
eb4efbdc | 1612 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1613 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1614 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1615 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1616 | DEFAULT_wxUSE_DATETIME=yes | |
1e6feb95 VZ |
1617 | DEFAULT_wxUSE_TIMER=yes |
1618 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1619 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1620 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1621 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1622 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1623 | DEFAULT_wxUSE_WAVE=no |
1624 | DEFAULT_wxUSE_INTL=yes | |
1625 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1626 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1627 | DEFAULT_wxUSE_STREAMS=yes |
1628 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
1629 | DEFAULT_wxUSE_OLE=yes |
1630 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 1631 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 1632 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1633 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1634 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1635 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1636 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1637 | |
1638 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1639 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1640 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1641 | ||
1642 | DEFAULT_wxUSE_X_RESOURCES=no | |
1643 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1644 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1645 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1646 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1647 | DEFAULT_wxUSE_SPLINES=yes |
1648 | ||
1649 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1650 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1651 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1652 | ||
2b5f62a0 | 1653 | DEFAULT_wxUSE_RESOURCES=no |
10f2d63a VZ |
1654 | DEFAULT_wxUSE_CONSTRAINTS=yes |
1655 | DEFAULT_wxUSE_IPC=yes | |
1656 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1657 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1658 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1659 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1660 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1661 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1662 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1663 | DEFAULT_wxUSE_PROTOCOL=yes |
1664 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1665 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1666 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1667 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1668 | |
1669 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1670 | DEFAULT_wxUSE_CHOICEDLG=yes |
1671 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1672 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1673 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1674 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1675 | DEFAULT_wxUSE_FONTDLG=yes |
1676 | DEFAULT_wxUSE_MSGDLG=yes | |
1677 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1678 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1679 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1680 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1681 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1682 | DEFAULT_wxUSE_WIZARDDLG=yes |
1683 | ||
1e6feb95 | 1684 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1685 | DEFAULT_wxUSE_MINIFRAME=yes |
1686 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1687 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1688 | DEFAULT_wxUSE_FS_INET=yes |
1689 | DEFAULT_wxUSE_FS_ZIP=yes | |
1690 | DEFAULT_wxUSE_BUSYINFO=yes | |
1691 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1692 | DEFAULT_wxUSE_VALIDATORS=yes | |
1693 | ||
1694 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1695 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1696 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1697 | DEFAULT_wxUSE_CALCTRL=yes |
1698 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1699 | DEFAULT_wxUSE_CHECKBOX=yes |
1700 | DEFAULT_wxUSE_CHECKLST=yes | |
1701 | DEFAULT_wxUSE_CHOICE=yes | |
1702 | DEFAULT_wxUSE_COMBOBOX=yes | |
da494b40 | 1703 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
1704 | DEFAULT_wxUSE_GAUGE=yes |
1705 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a VZ |
1706 | DEFAULT_wxUSE_IMAGLIST=yes |
1707 | DEFAULT_wxUSE_LISTBOX=yes | |
1708 | DEFAULT_wxUSE_LISTCTRL=yes | |
1709 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1710 | DEFAULT_wxUSE_RADIOBOX=yes | |
1711 | DEFAULT_wxUSE_RADIOBTN=yes | |
1712 | DEFAULT_wxUSE_SASH=yes | |
1713 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1714 | DEFAULT_wxUSE_SLIDER=yes | |
1715 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1716 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1717 | DEFAULT_wxUSE_SPLITTER=yes |
1718 | DEFAULT_wxUSE_STATBMP=yes | |
1719 | DEFAULT_wxUSE_STATBOX=yes | |
1720 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1721 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1722 | DEFAULT_wxUSE_STATUSBAR=yes |
1723 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1724 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1725 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1726 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1727 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1728 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1729 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1730 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1731 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1732 | |
1733 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1734 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1735 | DEFAULT_wxUSE_WCSRTOMBS=no |
1736 | ||
edae8572 | 1737 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1738 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1739 | DEFAULT_wxUSE_GIF=yes |
1740 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1741 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1742 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1743 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1744 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1745 | fi |
1746 | ||
8284b0c5 MB |
1747 | |
1748 | ||
10f2d63a | 1749 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
1750 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
1751 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
1752 | has_toolkit_in_cache=1 |
1753 | eval "DEFAULT_$LINE" | |
1754 | eval "CACHE_$toolkit=1" | |
1755 | fi | |
1756 | done | |
1757 | ||
8284b0c5 MB |
1758 | |
1759 | ||
5005acfe VZ |
1760 | enablestring= |
1761 | echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6 | |
dfa2a1d9 | 1762 | echo "configure:1763: checking for --${enablestring:-enable}-gui" >&5 |
10f2d63a VZ |
1763 | no_cache=0 |
1764 | # Check whether --enable-gui or --disable-gui was given. | |
1765 | if test "${enable_gui+set}" = set; then | |
1766 | enableval="$enable_gui" | |
a0b9e27f | 1767 | |
10f2d63a VZ |
1768 | if test "$enableval" = yes; then |
1769 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1770 | else | |
1771 | ac_cv_use_gui='wxUSE_GUI=no' | |
1772 | fi | |
a0b9e27f | 1773 | |
10f2d63a | 1774 | else |
a0b9e27f | 1775 | |
10f2d63a VZ |
1776 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1777 | if test "x$LINE" != x ; then | |
1778 | eval "DEFAULT_$LINE" | |
1779 | else | |
1780 | no_cache=1 | |
1781 | fi | |
1782 | ||
1783 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
a0b9e27f MB |
1784 | |
1785 | fi | |
10f2d63a VZ |
1786 | |
1787 | ||
1788 | eval "$ac_cv_use_gui" | |
1789 | if test "$no_cache" != 1; then | |
1790 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1791 | fi | |
1792 | ||
1793 | if test "$wxUSE_GUI" = yes; then | |
a0b9e27f | 1794 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1795 | else |
a0b9e27f | 1796 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1797 | fi |
a0b9e27f | 1798 | |
10f2d63a | 1799 | |
b12915c1 | 1800 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1801 | |
8284b0c5 | 1802 | |
5005acfe VZ |
1803 | enablestring= |
1804 | echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6 | |
dfa2a1d9 | 1805 | echo "configure:1806: checking for --${enablestring:-enable}-universal" >&5 |
1e6feb95 VZ |
1806 | no_cache=0 |
1807 | # Check whether --enable-universal or --disable-universal was given. | |
1808 | if test "${enable_universal+set}" = set; then | |
1809 | enableval="$enable_universal" | |
a0b9e27f | 1810 | |
1e6feb95 VZ |
1811 | if test "$enableval" = yes; then |
1812 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1813 | else | |
1814 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1815 | fi | |
a0b9e27f | 1816 | |
1e6feb95 | 1817 | else |
a0b9e27f | 1818 | |
1e6feb95 VZ |
1819 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
1820 | if test "x$LINE" != x ; then | |
1821 | eval "DEFAULT_$LINE" | |
1822 | else | |
1823 | no_cache=1 | |
1824 | fi | |
1825 | ||
1826 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
a0b9e27f MB |
1827 | |
1828 | fi | |
1e6feb95 VZ |
1829 | |
1830 | ||
1831 | eval "$ac_cv_use_universal" | |
1832 | if test "$no_cache" != 1; then | |
1833 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1834 | fi | |
1835 | ||
1836 | if test "$wxUSE_UNIVERSAL" = yes; then | |
a0b9e27f | 1837 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 1838 | else |
a0b9e27f | 1839 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 1840 | fi |
a0b9e27f | 1841 | |
10f2d63a VZ |
1842 | # Check whether --with-gtk or --without-gtk was given. |
1843 | if test "${with_gtk+set}" = set; then | |
1844 | withval="$with_gtk" | |
1845 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1846 | fi |
10f2d63a VZ |
1847 | |
1848 | # Check whether --with-motif or --without-motif was given. | |
1849 | if test "${with_motif+set}" = set; then | |
1850 | withval="$with_motif" | |
1851 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1852 | fi |
10f2d63a | 1853 | |
b4085ce6 GD |
1854 | # Check whether --with-mac or --without-mac was given. |
1855 | if test "${with_mac+set}" = set; then | |
1856 | withval="$with_mac" | |
1857 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
a0b9e27f | 1858 | fi |
b4085ce6 | 1859 | |
ac0c4cc3 DE |
1860 | # Check whether --with-cocoa or --without-cocoa was given. |
1861 | if test "${with_cocoa+set}" = set; then | |
1862 | withval="$with_cocoa" | |
1863 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
1864 | fi | |
1865 | ||
10f2d63a VZ |
1866 | # Check whether --with-wine or --without-wine was given. |
1867 | if test "${with_wine+set}" = set; then | |
1868 | withval="$with_wine" | |
89e6bf6d | 1869 | wxUSE_WINE="$withval" CACHE_WINE=1 |
a0b9e27f | 1870 | fi |
10f2d63a | 1871 | |
77e13408 RL |
1872 | # Check whether --with-msw or --without-msw was given. |
1873 | if test "${with_msw+set}" = set; then | |
1874 | withval="$with_msw" | |
b4efce5e | 1875 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1876 | fi |
10f2d63a | 1877 | |
e07802fc VZ |
1878 | # Check whether --with-pm or --without-pm was given. |
1879 | if test "${with_pm+set}" = set; then | |
1880 | withval="$with_pm" | |
1881 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1882 | fi |
698dcdb6 | 1883 | |
1e6feb95 VZ |
1884 | # Check whether --with-mgl or --without-mgl was given. |
1885 | if test "${with_mgl+set}" = set; then | |
1886 | withval="$with_mgl" | |
6c657b52 | 1887 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1888 | fi |
1e6feb95 | 1889 | |
1725144d RR |
1890 | # Check whether --with-microwin or --without-microwin was given. |
1891 | if test "${with_microwin+set}" = set; then | |
1892 | withval="$with_microwin" | |
1893 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1894 | fi |
1725144d | 1895 | |
f79bd02d JS |
1896 | # Check whether --with-x11 or --without-x11 was given. |
1897 | if test "${with_x11+set}" = set; then | |
1898 | withval="$with_x11" | |
3c011993 | 1899 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1900 | fi |
10f2d63a | 1901 | |
a0b9e27f | 1902 | |
5005acfe VZ |
1903 | enablestring= |
1904 | echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6 | |
dfa2a1d9 | 1905 | echo "configure:1906: checking for --${enablestring:-enable}-nanox" >&5 |
d8356fa3 | 1906 | no_cache=0 |
ba875e66 VZ |
1907 | # Check whether --enable-nanox or --disable-nanox was given. |
1908 | if test "${enable_nanox+set}" = set; then | |
1909 | enableval="$enable_nanox" | |
a0b9e27f | 1910 | |
d8356fa3 | 1911 | if test "$enableval" = yes; then |
ba875e66 | 1912 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1913 | else |
ba875e66 | 1914 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 1915 | fi |
a0b9e27f | 1916 | |
d8356fa3 | 1917 | else |
a0b9e27f | 1918 | |
d8356fa3 VZ |
1919 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
1920 | if test "x$LINE" != x ; then | |
1921 | eval "DEFAULT_$LINE" | |
1922 | else | |
1923 | no_cache=1 | |
1924 | fi | |
1925 | ||
ba875e66 | 1926 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
a0b9e27f MB |
1927 | |
1928 | fi | |
d8356fa3 VZ |
1929 | |
1930 | ||
ba875e66 | 1931 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1932 | if test "$no_cache" != 1; then |
ba875e66 | 1933 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1934 | fi |
1935 | ||
1936 | if test "$wxUSE_NANOX" = yes; then | |
a0b9e27f | 1937 | echo "$ac_t""yes" 1>&6 |
d8356fa3 | 1938 | else |
a0b9e27f | 1939 | echo "$ac_t""no" 1>&6 |
d8356fa3 | 1940 | fi |
a0b9e27f | 1941 | |
8284b0c5 | 1942 | |
d74f4b5a | 1943 | |
5005acfe VZ |
1944 | enablestring= |
1945 | echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6 | |
dfa2a1d9 | 1946 | echo "configure:1947: checking for --${enablestring:-enable}-gtk2" >&5 |
d74f4b5a VZ |
1947 | no_cache=0 |
1948 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
1949 | if test "${enable_gtk2+set}" = set; then |
1950 | enableval="$enable_gtk2" | |
a0b9e27f | 1951 | |
d74f4b5a VZ |
1952 | if test "$enableval" = yes; then |
1953 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
1954 | else | |
1955 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
1956 | fi | |
a0b9e27f | 1957 | |
10f2d63a | 1958 | else |
a0b9e27f | 1959 | |
d74f4b5a VZ |
1960 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
1961 | if test "x$LINE" != x ; then | |
1962 | eval "DEFAULT_$LINE" | |
1963 | else | |
1964 | no_cache=1 | |
1965 | fi | |
1966 | ||
1967 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
a0b9e27f MB |
1968 | |
1969 | fi | |
52127426 | 1970 | |
328a083c | 1971 | |
d74f4b5a VZ |
1972 | eval "$ac_cv_use_gtk2" |
1973 | if test "$no_cache" != 1; then | |
1974 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
1975 | fi | |
1976 | ||
1977 | if test "$wxUSE_GTK2" = yes; then | |
a0b9e27f | 1978 | echo "$ac_t""yes" 1>&6 |
d74f4b5a | 1979 | else |
a0b9e27f | 1980 | echo "$ac_t""no" 1>&6 |
d74f4b5a | 1981 | fi |
a0b9e27f | 1982 | |
d74f4b5a | 1983 | |
5c6fa7d2 | 1984 | |
a0b9e27f | 1985 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
dfa2a1d9 | 1986 | echo "configure:1987: checking for --with-libpng" >&5 |
8284b0c5 | 1987 | no_cache=0 |
a0b9e27f | 1988 | # Check whether --with-libpng or --without-libpng was given. |
b12915c1 VZ |
1989 | if test "${with_libpng+set}" = set; then |
1990 | withval="$with_libpng" | |
a0b9e27f | 1991 | |
10f2d63a | 1992 | if test "$withval" = yes; then |
b12915c1 | 1993 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1994 | elif test "$withval" = no; then |
b12915c1 | 1995 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1996 | elif test "$withval" = sys; then |
1997 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1998 | elif test "$withval" = builtin; then |
1999 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2000 | else |
a0b9e27f | 2001 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2002 | fi |
a0b9e27f | 2003 | |
10f2d63a | 2004 | else |
a0b9e27f | 2005 | |
b12915c1 | 2006 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2007 | if test "x$LINE" != x ; then |
2008 | eval "DEFAULT_$LINE" | |
2009 | else | |
2010 | no_cache=1 | |
2011 | fi | |
2012 | ||
b12915c1 | 2013 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
a0b9e27f MB |
2014 | |
2015 | fi | |
10f2d63a VZ |
2016 | |
2017 | ||
b12915c1 | 2018 | eval "$ac_cv_use_libpng" |
10f2d63a | 2019 | if test "$no_cache" != 1; then |
b12915c1 | 2020 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2021 | fi |
2022 | ||
b12915c1 | 2023 | if test "$wxUSE_LIBPNG" = yes; then |
a0b9e27f | 2024 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2025 | elif test "$wxUSE_LIBPNG" = no; then |
a0b9e27f | 2026 | echo "$ac_t""no" 1>&6 |
422107f9 | 2027 | elif test "$wxUSE_LIBPNG" = sys; then |
a0b9e27f | 2028 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2029 | elif test "$wxUSE_LIBPNG" = builtin; then |
a0b9e27f | 2030 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2031 | else |
a0b9e27f | 2032 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2033 | fi |
a0b9e27f | 2034 | |
10f2d63a | 2035 | |
a0b9e27f | 2036 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
dfa2a1d9 | 2037 | echo "configure:2038: checking for --with-libjpeg" >&5 |
10f2d63a | 2038 | no_cache=0 |
a0b9e27f | 2039 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2040 | if test "${with_libjpeg+set}" = set; then |
2041 | withval="$with_libjpeg" | |
a0b9e27f | 2042 | |
10f2d63a | 2043 | if test "$withval" = yes; then |
b12915c1 | 2044 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2045 | elif test "$withval" = no; then |
b12915c1 | 2046 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2047 | elif test "$withval" = sys; then |
2048 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2049 | elif test "$withval" = builtin; then |
2050 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2051 | else |
a0b9e27f | 2052 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2053 | fi |
a0b9e27f | 2054 | |
10f2d63a | 2055 | else |
a0b9e27f | 2056 | |
b12915c1 | 2057 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2058 | if test "x$LINE" != x ; then |
2059 | eval "DEFAULT_$LINE" | |
2060 | else | |
2061 | no_cache=1 | |
2062 | fi | |
2063 | ||
b12915c1 | 2064 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
a0b9e27f MB |
2065 | |
2066 | fi | |
10f2d63a VZ |
2067 | |
2068 | ||
b12915c1 | 2069 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2070 | if test "$no_cache" != 1; then |
b12915c1 | 2071 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2072 | fi |
2073 | ||
b12915c1 | 2074 | if test "$wxUSE_LIBJPEG" = yes; then |
a0b9e27f | 2075 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2076 | elif test "$wxUSE_LIBJPEG" = no; then |
a0b9e27f | 2077 | echo "$ac_t""no" 1>&6 |
422107f9 | 2078 | elif test "$wxUSE_LIBJPEG" = sys; then |
a0b9e27f | 2079 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2080 | elif test "$wxUSE_LIBJPEG" = builtin; then |
a0b9e27f | 2081 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2082 | else |
a0b9e27f | 2083 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2084 | fi |
a0b9e27f | 2085 | |
10f2d63a | 2086 | |
a0b9e27f | 2087 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
dfa2a1d9 | 2088 | echo "configure:2089: checking for --with-libtiff" >&5 |
10f2d63a | 2089 | no_cache=0 |
a0b9e27f | 2090 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2091 | if test "${with_libtiff+set}" = set; then |
2092 | withval="$with_libtiff" | |
a0b9e27f | 2093 | |
10f2d63a | 2094 | if test "$withval" = yes; then |
b12915c1 | 2095 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2096 | elif test "$withval" = no; then |
b12915c1 | 2097 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2098 | elif test "$withval" = sys; then |
2099 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2100 | elif test "$withval" = builtin; then |
2101 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2102 | else |
a0b9e27f | 2103 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2104 | fi |
a0b9e27f | 2105 | |
10f2d63a | 2106 | else |
a0b9e27f | 2107 | |
b12915c1 | 2108 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2109 | if test "x$LINE" != x ; then |
2110 | eval "DEFAULT_$LINE" | |
2111 | else | |
2112 | no_cache=1 | |
2113 | fi | |
2114 | ||
b12915c1 | 2115 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
a0b9e27f MB |
2116 | |
2117 | fi | |
10f2d63a VZ |
2118 | |
2119 | ||
b12915c1 | 2120 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2121 | if test "$no_cache" != 1; then |
b12915c1 | 2122 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2123 | fi |
2124 | ||
b12915c1 | 2125 | if test "$wxUSE_LIBTIFF" = yes; then |
a0b9e27f | 2126 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2127 | elif test "$wxUSE_LIBTIFF" = no; then |
a0b9e27f | 2128 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2129 | elif test "$wxUSE_LIBTIFF" = sys; then |
a0b9e27f | 2130 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2131 | elif test "$wxUSE_LIBTIFF" = builtin; then |
a0b9e27f | 2132 | echo "$ac_t""builtin version" 1>&6 |
0dcf9893 | 2133 | else |
a0b9e27f | 2134 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2135 | fi |
a0b9e27f | 2136 | |
10f2d63a | 2137 | |
a0b9e27f | 2138 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
dfa2a1d9 | 2139 | echo "configure:2140: checking for --with-opengl" >&5 |
10f2d63a | 2140 | no_cache=0 |
a0b9e27f | 2141 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2142 | if test "${with_opengl+set}" = set; then |
2143 | withval="$with_opengl" | |
a0b9e27f | 2144 | |
10f2d63a | 2145 | if test "$withval" = yes; then |
b12915c1 | 2146 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2147 | else |
b12915c1 | 2148 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2149 | fi |
a0b9e27f | 2150 | |
10f2d63a | 2151 | else |
a0b9e27f | 2152 | |
b12915c1 | 2153 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2154 | if test "x$LINE" != x ; then |
2155 | eval "DEFAULT_$LINE" | |
2156 | else | |
2157 | no_cache=1 | |
2158 | fi | |
2159 | ||
b12915c1 | 2160 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
a0b9e27f MB |
2161 | |
2162 | fi | |
10f2d63a VZ |
2163 | |
2164 | ||
b12915c1 | 2165 | eval "$ac_cv_use_opengl" |
10f2d63a | 2166 | if test "$no_cache" != 1; then |
b12915c1 | 2167 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2168 | fi |
2169 | ||
b12915c1 | 2170 | if test "$wxUSE_OPENGL" = yes; then |
a0b9e27f | 2171 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2172 | else |
a0b9e27f | 2173 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2174 | fi |
a0b9e27f | 2175 | |
10f2d63a | 2176 | |
b12915c1 VZ |
2177 | fi |
2178 | ||
5c6fa7d2 | 2179 | |
a0b9e27f | 2180 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
dfa2a1d9 | 2181 | echo "configure:2182: checking for --with-dmalloc" >&5 |
8284b0c5 | 2182 | no_cache=0 |
a0b9e27f | 2183 | # Check whether --with-dmalloc or --without-dmalloc was given. |
b12915c1 VZ |
2184 | if test "${with_dmalloc+set}" = set; then |
2185 | withval="$with_dmalloc" | |
a0b9e27f | 2186 | |
c7a2bf27 | 2187 | if test "$withval" = yes; then |
b12915c1 | 2188 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2189 | else |
b12915c1 | 2190 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2191 | fi |
a0b9e27f | 2192 | |
c7a2bf27 | 2193 | else |
a0b9e27f | 2194 | |
b12915c1 | 2195 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2196 | if test "x$LINE" != x ; then |
2197 | eval "DEFAULT_$LINE" | |
2198 | else | |
2199 | no_cache=1 | |
2200 | fi | |
2201 | ||
b12915c1 | 2202 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
a0b9e27f MB |
2203 | |
2204 | fi | |
c7a2bf27 RR |
2205 | |
2206 | ||
b12915c1 | 2207 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2208 | if test "$no_cache" != 1; then |
b12915c1 | 2209 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2210 | fi |
2211 | ||
b12915c1 | 2212 | if test "$wxUSE_DMALLOC" = yes; then |
a0b9e27f | 2213 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2214 | else |
a0b9e27f | 2215 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2216 | fi |
a0b9e27f | 2217 | |
c7a2bf27 | 2218 | |
a0b9e27f | 2219 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
dfa2a1d9 | 2220 | echo "configure:2221: checking for --with-regex" >&5 |
3e44f09d | 2221 | no_cache=0 |
a0b9e27f | 2222 | # Check whether --with-regex or --without-regex was given. |
3e44f09d VZ |
2223 | if test "${with_regex+set}" = set; then |
2224 | withval="$with_regex" | |
a0b9e27f | 2225 | |
3e44f09d VZ |
2226 | if test "$withval" = yes; then |
2227 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2228 | elif test "$withval" = no; then | |
2229 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2230 | elif test "$withval" = sys; then | |
2231 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2232 | elif test "$withval" = builtin; then |
2233 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2234 | else |
a0b9e27f | 2235 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2236 | fi |
a0b9e27f | 2237 | |
3e44f09d | 2238 | else |
a0b9e27f | 2239 | |
3e44f09d VZ |
2240 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2241 | if test "x$LINE" != x ; then | |
2242 | eval "DEFAULT_$LINE" | |
2243 | else | |
2244 | no_cache=1 | |
2245 | fi | |
2246 | ||
2247 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
a0b9e27f MB |
2248 | |
2249 | fi | |
3e44f09d VZ |
2250 | |
2251 | ||
2252 | eval "$ac_cv_use_regex" | |
2253 | if test "$no_cache" != 1; then | |
2254 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2255 | fi | |
2256 | ||
2257 | if test "$wxUSE_REGEX" = yes; then | |
a0b9e27f | 2258 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 2259 | elif test "$wxUSE_REGEX" = no; then |
a0b9e27f | 2260 | echo "$ac_t""no" 1>&6 |
3e44f09d | 2261 | elif test "$wxUSE_REGEX" = sys; then |
a0b9e27f | 2262 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2263 | elif test "$wxUSE_REGEX" = builtin; then |
a0b9e27f | 2264 | echo "$ac_t""builtin version" 1>&6 |
3e44f09d | 2265 | else |
a0b9e27f | 2266 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2267 | fi |
a0b9e27f | 2268 | |
3e44f09d | 2269 | |
a0b9e27f | 2270 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
dfa2a1d9 | 2271 | echo "configure:2272: checking for --with-zlib" >&5 |
10f2d63a | 2272 | no_cache=0 |
a0b9e27f | 2273 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2274 | if test "${with_zlib+set}" = set; then |
2275 | withval="$with_zlib" | |
a0b9e27f | 2276 | |
10f2d63a | 2277 | if test "$withval" = yes; then |
b12915c1 | 2278 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2279 | elif test "$withval" = no; then |
b12915c1 | 2280 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2281 | elif test "$withval" = sys; then |
2282 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2283 | elif test "$withval" = builtin; then |
2284 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2285 | else |
a0b9e27f | 2286 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2287 | fi |
a0b9e27f | 2288 | |
10f2d63a | 2289 | else |
a0b9e27f | 2290 | |
b12915c1 | 2291 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2292 | if test "x$LINE" != x ; then |
2293 | eval "DEFAULT_$LINE" | |
2294 | else | |
2295 | no_cache=1 | |
2296 | fi | |
2297 | ||
b12915c1 | 2298 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
a0b9e27f MB |
2299 | |
2300 | fi | |
10f2d63a VZ |
2301 | |
2302 | ||
b12915c1 | 2303 | eval "$ac_cv_use_zlib" |
10f2d63a | 2304 | if test "$no_cache" != 1; then |
b12915c1 | 2305 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2306 | fi |
2307 | ||
b12915c1 | 2308 | if test "$wxUSE_ZLIB" = yes; then |
a0b9e27f | 2309 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2310 | elif test "$wxUSE_ZLIB" = no; then |
a0b9e27f | 2311 | echo "$ac_t""no" 1>&6 |
422107f9 | 2312 | elif test "$wxUSE_ZLIB" = sys; then |
a0b9e27f | 2313 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2314 | elif test "$wxUSE_ZLIB" = builtin; then |
a0b9e27f | 2315 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2316 | else |
a0b9e27f | 2317 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2318 | fi |
a0b9e27f | 2319 | |
10f2d63a | 2320 | |
a0b9e27f | 2321 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
dfa2a1d9 | 2322 | echo "configure:2323: checking for --with-odbc" >&5 |
10f2d63a | 2323 | no_cache=0 |
a0b9e27f | 2324 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2325 | if test "${with_odbc+set}" = set; then |
2326 | withval="$with_odbc" | |
a0b9e27f | 2327 | |
10f2d63a VZ |
2328 | if test "$withval" = yes; then |
2329 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2330 | else | |
2331 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2332 | fi | |
a0b9e27f | 2333 | |
10f2d63a | 2334 | else |
a0b9e27f | 2335 | |
10f2d63a VZ |
2336 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2337 | if test "x$LINE" != x ; then | |
2338 | eval "DEFAULT_$LINE" | |
2339 | else | |
2340 | no_cache=1 | |
2341 | fi | |
2342 | ||
2343 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
a0b9e27f MB |
2344 | |
2345 | fi | |
10f2d63a VZ |
2346 | |
2347 | ||
2348 | eval "$ac_cv_use_odbc" | |
2349 | if test "$no_cache" != 1; then | |
2350 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2351 | fi | |
2352 | ||
2353 | if test "$wxUSE_ODBC" = yes; then | |
a0b9e27f | 2354 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2355 | else |
a0b9e27f | 2356 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2357 | fi |
a0b9e27f | 2358 | |
52127426 | 2359 | |
8284b0c5 MB |
2360 | |
2361 | ||
5005acfe VZ |
2362 | enablestring= |
2363 | echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6 | |
dfa2a1d9 | 2364 | echo "configure:2365: checking for --${enablestring:-enable}-shared" >&5 |
10f2d63a VZ |
2365 | no_cache=0 |
2366 | # Check whether --enable-shared or --disable-shared was given. | |
2367 | if test "${enable_shared+set}" = set; then | |
2368 | enableval="$enable_shared" | |
a0b9e27f | 2369 | |
10f2d63a VZ |
2370 | if test "$enableval" = yes; then |
2371 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2372 | else | |
2373 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2374 | fi | |
a0b9e27f | 2375 | |
10f2d63a | 2376 | else |
a0b9e27f | 2377 | |
10f2d63a VZ |
2378 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2379 | if test "x$LINE" != x ; then | |
2380 | eval "DEFAULT_$LINE" | |
2381 | else | |
2382 | no_cache=1 | |
2383 | fi | |
2384 | ||
2385 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
a0b9e27f MB |
2386 | |
2387 | fi | |
10f2d63a VZ |
2388 | |
2389 | ||
2390 | eval "$ac_cv_use_shared" | |
2391 | if test "$no_cache" != 1; then | |
2392 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2393 | fi | |
2394 | ||
2395 | if test "$wxUSE_SHARED" = yes; then | |
a0b9e27f | 2396 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2397 | else |
a0b9e27f | 2398 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2399 | fi |
a0b9e27f | 2400 | |
10f2d63a | 2401 | |
5005acfe VZ |
2402 | enablestring= |
2403 | echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6 | |
dfa2a1d9 | 2404 | echo "configure:2405: checking for --${enablestring:-enable}-soname" >&5 |
00cf1208 | 2405 | no_cache=0 |
3a922bb4 RL |
2406 | # Check whether --enable-soname or --disable-soname was given. |
2407 | if test "${enable_soname+set}" = set; then | |
2408 | enableval="$enable_soname" | |
a0b9e27f | 2409 | |
00cf1208 | 2410 | if test "$enableval" = yes; then |
3a922bb4 | 2411 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2412 | else |
3a922bb4 | 2413 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2414 | fi |
a0b9e27f | 2415 | |
00cf1208 | 2416 | else |
a0b9e27f | 2417 | |
3a922bb4 | 2418 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2419 | if test "x$LINE" != x ; then |
2420 | eval "DEFAULT_$LINE" | |
2421 | else | |
2422 | no_cache=1 | |
2423 | fi | |
2424 | ||
3a922bb4 | 2425 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
a0b9e27f MB |
2426 | |
2427 | fi | |
00cf1208 RR |
2428 | |
2429 | ||
3a922bb4 | 2430 | eval "$ac_cv_use_soname" |
00cf1208 | 2431 | if test "$no_cache" != 1; then |
3a922bb4 | 2432 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2433 | fi |
2434 | ||
3a922bb4 | 2435 | if test "$wxUSE_SONAME" = yes; then |
a0b9e27f | 2436 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2437 | else |
a0b9e27f | 2438 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2439 | fi |
a0b9e27f | 2440 | |
00cf1208 | 2441 | |
5005acfe VZ |
2442 | enablestring= |
2443 | echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6 | |
dfa2a1d9 | 2444 | echo "configure:2445: checking for --${enablestring:-enable}-optimise" >&5 |
10f2d63a VZ |
2445 | no_cache=0 |
2446 | # Check whether --enable-optimise or --disable-optimise was given. | |
2447 | if test "${enable_optimise+set}" = set; then | |
2448 | enableval="$enable_optimise" | |
a0b9e27f | 2449 | |
10f2d63a VZ |
2450 | if test "$enableval" = yes; then |
2451 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2452 | else | |
2453 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2454 | fi | |
a0b9e27f | 2455 | |
10f2d63a | 2456 | else |
a0b9e27f | 2457 | |
10f2d63a VZ |
2458 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2459 | if test "x$LINE" != x ; then | |
2460 | eval "DEFAULT_$LINE" | |
2461 | else | |
2462 | no_cache=1 | |
2463 | fi | |
2464 | ||
2465 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
a0b9e27f MB |
2466 | |
2467 | fi | |
10f2d63a VZ |
2468 | |
2469 | ||
2470 | eval "$ac_cv_use_optimise" | |
2471 | if test "$no_cache" != 1; then | |
2472 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2473 | fi | |
2474 | ||
2475 | if test "$wxUSE_OPTIMISE" = yes; then | |
a0b9e27f | 2476 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2477 | else |
a0b9e27f | 2478 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2479 | fi |
a0b9e27f | 2480 | |
10f2d63a | 2481 | |
5005acfe VZ |
2482 | enablestring= |
2483 | echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6 | |
dfa2a1d9 | 2484 | echo "configure:2485: checking for --${enablestring:-enable}-debug" >&5 |
10f2d63a VZ |
2485 | no_cache=0 |
2486 | # Check whether --enable-debug or --disable-debug was given. | |
2487 | if test "${enable_debug+set}" = set; then | |
2488 | enableval="$enable_debug" | |
a0b9e27f | 2489 | |
10f2d63a VZ |
2490 | if test "$enableval" = yes; then |
2491 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2492 | else | |
2493 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2494 | fi | |
a0b9e27f | 2495 | |
10f2d63a | 2496 | else |
a0b9e27f | 2497 | |
10f2d63a VZ |
2498 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2499 | if test "x$LINE" != x ; then | |
2500 | eval "DEFAULT_$LINE" | |
2501 | else | |
2502 | no_cache=1 | |
2503 | fi | |
2504 | ||
2505 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
a0b9e27f MB |
2506 | |
2507 | fi | |
10f2d63a VZ |
2508 | |
2509 | ||
2510 | eval "$ac_cv_use_debug" | |
2511 | if test "$no_cache" != 1; then | |
2512 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2513 | fi | |
2514 | ||
2515 | if test "$wxUSE_DEBUG" = yes; then | |
a0b9e27f | 2516 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2517 | else |
a0b9e27f | 2518 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2519 | fi |
a0b9e27f | 2520 | |
52127426 | 2521 | |
8284b0c5 | 2522 | |
5005acfe VZ |
2523 | enablestring= |
2524 | echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6 | |
dfa2a1d9 | 2525 | echo "configure:2526: checking for --${enablestring:-enable}-precomp" >&5 |
683dccda GD |
2526 | no_cache=0 |
2527 | # Check whether --enable-precomp or --disable-precomp was given. | |
2528 | if test "${enable_precomp+set}" = set; then | |
2529 | enableval="$enable_precomp" | |
a0b9e27f | 2530 | |
683dccda GD |
2531 | if test "$enableval" = yes; then |
2532 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2533 | else | |
2534 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2535 | fi | |
a0b9e27f | 2536 | |
683dccda | 2537 | else |
a0b9e27f | 2538 | |
683dccda GD |
2539 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` |
2540 | if test "x$LINE" != x ; then | |
2541 | eval "DEFAULT_$LINE" | |
2542 | else | |
2543 | no_cache=1 | |
2544 | fi | |
2545 | ||
2546 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
a0b9e27f MB |
2547 | |
2548 | fi | |
683dccda GD |
2549 | |
2550 | ||
2551 | eval "$ac_cv_use_precomp" | |
2552 | if test "$no_cache" != 1; then | |
2553 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2554 | fi | |
2555 | ||
2556 | if test "$wxUSE_PRECOMP" = yes; then | |
a0b9e27f | 2557 | echo "$ac_t""yes" 1>&6 |
683dccda | 2558 | else |
a0b9e27f | 2559 | echo "$ac_t""no" 1>&6 |
683dccda | 2560 | fi |
a0b9e27f | 2561 | |
683dccda | 2562 | |
10f2d63a VZ |
2563 | if test "$wxUSE_DEBUG" = "yes"; then |
2564 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2565 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2566 | elif test "$wxUSE_DEBUG" = "no"; then | |
2567 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2568 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2569 | fi | |
2570 | ||
8284b0c5 | 2571 | |
5005acfe VZ |
2572 | enablestring= |
2573 | echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6 | |
dfa2a1d9 | 2574 | echo "configure:2575: checking for --${enablestring:-enable}-debug_flag" >&5 |
10f2d63a VZ |
2575 | no_cache=0 |
2576 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2577 | if test "${enable_debug_flag+set}" = set; then | |
2578 | enableval="$enable_debug_flag" | |
a0b9e27f | 2579 | |
10f2d63a VZ |
2580 | if test "$enableval" = yes; then |
2581 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2582 | else | |
2583 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2584 | fi | |
a0b9e27f | 2585 | |
10f2d63a | 2586 | else |
a0b9e27f | 2587 | |
10f2d63a VZ |
2588 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2589 | if test "x$LINE" != x ; then | |
2590 | eval "DEFAULT_$LINE" | |
2591 | else | |
2592 | no_cache=1 | |
2593 | fi | |
2594 | ||
2595 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
a0b9e27f MB |
2596 | |
2597 | fi | |
10f2d63a VZ |
2598 | |
2599 | ||
2600 | eval "$ac_cv_use_debug_flag" | |
2601 | if test "$no_cache" != 1; then | |
2602 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2603 | fi | |
2604 | ||
2605 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
a0b9e27f | 2606 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2607 | else |
a0b9e27f | 2608 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2609 | fi |
a0b9e27f | 2610 | |
10f2d63a | 2611 | |
5005acfe VZ |
2612 | enablestring= |
2613 | echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6 | |
dfa2a1d9 | 2614 | echo "configure:2615: checking for --${enablestring:-enable}-debug_info" >&5 |
10f2d63a VZ |
2615 | no_cache=0 |
2616 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2617 | if test "${enable_debug_info+set}" = set; then | |
2618 | enableval="$enable_debug_info" | |
a0b9e27f | 2619 | |
10f2d63a VZ |
2620 | if test "$enableval" = yes; then |
2621 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2622 | else | |
2623 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2624 | fi | |
a0b9e27f | 2625 | |
10f2d63a | 2626 | else |
a0b9e27f | 2627 | |
10f2d63a VZ |
2628 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2629 | if test "x$LINE" != x ; then | |
2630 | eval "DEFAULT_$LINE" | |
2631 | else | |
2632 | no_cache=1 | |
2633 | fi | |
2634 | ||
2635 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
a0b9e27f MB |
2636 | |
2637 | fi | |
10f2d63a VZ |
2638 | |
2639 | ||
2640 | eval "$ac_cv_use_debug_info" | |
2641 | if test "$no_cache" != 1; then | |
2642 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2643 | fi | |
2644 | ||
2645 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
a0b9e27f | 2646 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2647 | else |
a0b9e27f | 2648 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2649 | fi |
a0b9e27f | 2650 | |
10f2d63a | 2651 | |
5005acfe VZ |
2652 | enablestring= |
2653 | echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6 | |
dfa2a1d9 | 2654 | echo "configure:2655: checking for --${enablestring:-enable}-debug_gdb" >&5 |
10f2d63a VZ |
2655 | no_cache=0 |
2656 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2657 | if test "${enable_debug_gdb+set}" = set; then | |
2658 | enableval="$enable_debug_gdb" | |
a0b9e27f | 2659 | |
10f2d63a VZ |
2660 | if test "$enableval" = yes; then |
2661 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2662 | else | |
2663 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2664 | fi | |
a0b9e27f | 2665 | |
10f2d63a | 2666 | else |
a0b9e27f | 2667 | |
10f2d63a VZ |
2668 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2669 | if test "x$LINE" != x ; then | |
2670 | eval "DEFAULT_$LINE" | |
2671 | else | |
2672 | no_cache=1 | |
2673 | fi | |
2674 | ||
2675 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
a0b9e27f MB |
2676 | |
2677 | fi | |
10f2d63a VZ |
2678 | |
2679 | ||
2680 | eval "$ac_cv_use_debug_gdb" | |
2681 | if test "$no_cache" != 1; then | |
2682 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2683 | fi | |
2684 | ||
2685 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
a0b9e27f | 2686 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2687 | else |
a0b9e27f | 2688 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2689 | fi |
a0b9e27f | 2690 | |
10f2d63a | 2691 | |
5005acfe VZ |
2692 | enablestring= |
2693 | echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6 | |
dfa2a1d9 | 2694 | echo "configure:2695: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
10f2d63a VZ |
2695 | no_cache=0 |
2696 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2697 | if test "${enable_debug_cntxt+set}" = set; then | |
2698 | enableval="$enable_debug_cntxt" | |
a0b9e27f | 2699 | |
10f2d63a VZ |
2700 | if test "$enableval" = yes; then |
2701 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2702 | else | |
2703 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2704 | fi | |
a0b9e27f | 2705 | |
10f2d63a | 2706 | else |
a0b9e27f | 2707 | |
10f2d63a VZ |
2708 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2709 | if test "x$LINE" != x ; then | |
2710 | eval "DEFAULT_$LINE" | |
2711 | else | |
2712 | no_cache=1 | |
2713 | fi | |
2714 | ||
2715 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
a0b9e27f MB |
2716 | |
2717 | fi | |
10f2d63a VZ |
2718 | |
2719 | ||
2720 | eval "$ac_cv_use_debug_cntxt" | |
2721 | if test "$no_cache" != 1; then | |
2722 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2723 | fi | |
2724 | ||
2725 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
a0b9e27f | 2726 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2727 | else |
a0b9e27f | 2728 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2729 | fi |
a0b9e27f | 2730 | |
10f2d63a | 2731 | |
5005acfe VZ |
2732 | enablestring= |
2733 | echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6 | |
dfa2a1d9 | 2734 | echo "configure:2735: checking for --${enablestring:-enable}-mem_tracing" >&5 |
10f2d63a VZ |
2735 | no_cache=0 |
2736 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2737 | if test "${enable_mem_tracing+set}" = set; then | |
2738 | enableval="$enable_mem_tracing" | |
a0b9e27f | 2739 | |
10f2d63a VZ |
2740 | if test "$enableval" = yes; then |
2741 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2742 | else | |
2743 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2744 | fi | |
a0b9e27f | 2745 | |
10f2d63a | 2746 | else |
a0b9e27f | 2747 | |
10f2d63a VZ |
2748 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2749 | if test "x$LINE" != x ; then | |
2750 | eval "DEFAULT_$LINE" | |
2751 | else | |
2752 | no_cache=1 | |
2753 | fi | |
2754 | ||
2755 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
a0b9e27f MB |
2756 | |
2757 | fi | |
10f2d63a VZ |
2758 | |
2759 | ||
2760 | eval "$ac_cv_use_mem_tracing" | |
2761 | if test "$no_cache" != 1; then | |
2762 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2763 | fi | |
2764 | ||
2765 | if test "$wxUSE_MEM_TRACING" = yes; then | |
a0b9e27f | 2766 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2767 | else |
a0b9e27f | 2768 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2769 | fi |
a0b9e27f | 2770 | |
10f2d63a | 2771 | |
5005acfe VZ |
2772 | enablestring= |
2773 | echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6 | |
dfa2a1d9 | 2774 | echo "configure:2775: checking for --${enablestring:-enable}-profile" >&5 |
10f2d63a VZ |
2775 | no_cache=0 |
2776 | # Check whether --enable-profile or --disable-profile was given. | |
2777 | if test "${enable_profile+set}" = set; then | |
2778 | enableval="$enable_profile" | |
a0b9e27f | 2779 | |
10f2d63a VZ |
2780 | if test "$enableval" = yes; then |
2781 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2782 | else | |
2783 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2784 | fi | |
a0b9e27f | 2785 | |
10f2d63a | 2786 | else |
a0b9e27f | 2787 | |
10f2d63a VZ |
2788 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2789 | if test "x$LINE" != x ; then | |
2790 | eval "DEFAULT_$LINE" | |
2791 | else | |
2792 | no_cache=1 | |
2793 | fi | |
2794 | ||
2795 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
a0b9e27f MB |
2796 | |
2797 | fi | |
10f2d63a VZ |
2798 | |
2799 | ||
2800 | eval "$ac_cv_use_profile" | |
2801 | if test "$no_cache" != 1; then | |
2802 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2803 | fi | |
2804 | ||
2805 | if test "$wxUSE_PROFILE" = yes; then | |
a0b9e27f | 2806 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2807 | else |
a0b9e27f | 2808 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2809 | fi |
a0b9e27f | 2810 | |
10f2d63a | 2811 | |
5005acfe VZ |
2812 | enablestring= |
2813 | echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6 | |
dfa2a1d9 | 2814 | echo "configure:2815: checking for --${enablestring:-enable}-no_rtti" >&5 |
10f2d63a VZ |
2815 | no_cache=0 |
2816 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2817 | if test "${enable_no_rtti+set}" = set; then | |
2818 | enableval="$enable_no_rtti" | |
a0b9e27f | 2819 | |
10f2d63a VZ |
2820 | if test "$enableval" = yes; then |
2821 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2822 | else | |
2823 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2824 | fi | |
a0b9e27f | 2825 | |
10f2d63a | 2826 | else |
a0b9e27f | 2827 | |
10f2d63a VZ |
2828 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2829 | if test "x$LINE" != x ; then | |
2830 | eval "DEFAULT_$LINE" | |
2831 | else | |
2832 | no_cache=1 | |
2833 | fi | |
2834 | ||
2835 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
a0b9e27f MB |
2836 | |
2837 | fi | |
10f2d63a VZ |
2838 | |
2839 | ||
2840 | eval "$ac_cv_use_no_rtti" | |
2841 | if test "$no_cache" != 1; then | |
2842 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2843 | fi | |
2844 | ||
2845 | if test "$wxUSE_NO_RTTI" = yes; then | |
a0b9e27f | 2846 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2847 | else |
a0b9e27f | 2848 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2849 | fi |
a0b9e27f | 2850 | |
10f2d63a | 2851 | |
5005acfe VZ |
2852 | enablestring= |
2853 | echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6 | |
dfa2a1d9 | 2854 | echo "configure:2855: checking for --${enablestring:-enable}-no_exceptions" >&5 |
10f2d63a VZ |
2855 | no_cache=0 |
2856 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2857 | if test "${enable_no_exceptions+set}" = set; then | |
2858 | enableval="$enable_no_exceptions" | |
a0b9e27f | 2859 | |
10f2d63a VZ |
2860 | if test "$enableval" = yes; then |
2861 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2862 | else | |
2863 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2864 | fi | |
a0b9e27f | 2865 | |
10f2d63a | 2866 | else |
a0b9e27f | 2867 | |
10f2d63a VZ |
2868 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2869 | if test "x$LINE" != x ; then | |
2870 | eval "DEFAULT_$LINE" | |
2871 | else | |
2872 | no_cache=1 | |
2873 | fi | |
2874 | ||
2875 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
a0b9e27f MB |
2876 | |
2877 | fi | |
10f2d63a VZ |
2878 | |
2879 | ||
2880 | eval "$ac_cv_use_no_exceptions" | |
2881 | if test "$no_cache" != 1; then | |
2882 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2883 | fi | |
2884 | ||
2885 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
a0b9e27f | 2886 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2887 | else |
a0b9e27f | 2888 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2889 | fi |
a0b9e27f | 2890 | |
10f2d63a | 2891 | |
5005acfe VZ |
2892 | enablestring= |
2893 | echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6 | |
dfa2a1d9 | 2894 | echo "configure:2895: checking for --${enablestring:-enable}-permissive" >&5 |
10f2d63a VZ |
2895 | no_cache=0 |
2896 | # Check whether --enable-permissive or --disable-permissive was given. | |
2897 | if test "${enable_permissive+set}" = set; then | |
2898 | enableval="$enable_permissive" | |
a0b9e27f | 2899 | |
10f2d63a VZ |
2900 | if test "$enableval" = yes; then |
2901 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2902 | else | |
2903 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2904 | fi | |
a0b9e27f | 2905 | |
10f2d63a | 2906 | else |
a0b9e27f | 2907 | |
10f2d63a VZ |
2908 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2909 | if test "x$LINE" != x ; then | |
2910 | eval "DEFAULT_$LINE" | |
2911 | else | |
2912 | no_cache=1 | |
2913 | fi | |
2914 | ||
2915 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
a0b9e27f MB |
2916 | |
2917 | fi | |
10f2d63a VZ |
2918 | |
2919 | ||
2920 | eval "$ac_cv_use_permissive" | |
2921 | if test "$no_cache" != 1; then | |
2922 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2923 | fi | |
2924 | ||
2925 | if test "$wxUSE_PERMISSIVE" = yes; then | |
a0b9e27f | 2926 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2927 | else |
a0b9e27f | 2928 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2929 | fi |
a0b9e27f | 2930 | |
10f2d63a | 2931 | |
5005acfe VZ |
2932 | enablestring= |
2933 | echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6 | |
dfa2a1d9 | 2934 | echo "configure:2935: checking for --${enablestring:-enable}-no_deps" >&5 |
10f2d63a VZ |
2935 | no_cache=0 |
2936 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2937 | if test "${enable_no_deps+set}" = set; then | |
2938 | enableval="$enable_no_deps" | |
a0b9e27f | 2939 | |
10f2d63a VZ |
2940 | if test "$enableval" = yes; then |
2941 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2942 | else | |
2943 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2944 | fi | |
a0b9e27f | 2945 | |
10f2d63a | 2946 | else |
a0b9e27f | 2947 | |
10f2d63a VZ |
2948 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2949 | if test "x$LINE" != x ; then | |
2950 | eval "DEFAULT_$LINE" | |
2951 | else | |
2952 | no_cache=1 | |
2953 | fi | |
2954 | ||
2955 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
a0b9e27f MB |
2956 | |
2957 | fi | |
10f2d63a VZ |
2958 | |
2959 | ||
2960 | eval "$ac_cv_use_no_deps" | |
2961 | if test "$no_cache" != 1; then | |
2962 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2963 | fi | |
2964 | ||
2965 | if test "$wxUSE_NO_DEPS" = yes; then | |
a0b9e27f | 2966 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2967 | else |
a0b9e27f | 2968 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2969 | fi |
a0b9e27f | 2970 | |
52127426 | 2971 | |
8284b0c5 | 2972 | |
5005acfe VZ |
2973 | enablestring= |
2974 | echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6 | |
dfa2a1d9 | 2975 | echo "configure:2976: checking for --${enablestring:-enable}-compat20" >&5 |
54276ccf VZ |
2976 | no_cache=0 |
2977 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2978 | if test "${enable_compat20+set}" = set; then | |
2979 | enableval="$enable_compat20" | |
a0b9e27f | 2980 | |
54276ccf VZ |
2981 | if test "$enableval" = yes; then |
2982 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2983 | else | |
2984 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2985 | fi | |
a0b9e27f | 2986 | |
54276ccf | 2987 | else |
a0b9e27f | 2988 | |
54276ccf VZ |
2989 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
2990 | if test "x$LINE" != x ; then | |
2991 | eval "DEFAULT_$LINE" | |
2992 | else | |
2993 | no_cache=1 | |
2994 | fi | |
2995 | ||
2996 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
a0b9e27f MB |
2997 | |
2998 | fi | |
54276ccf VZ |
2999 | |
3000 | ||
3001 | eval "$ac_cv_use_compat20" | |
3002 | if test "$no_cache" != 1; then | |
3003 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3004 | fi | |
3005 | ||
3006 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
a0b9e27f | 3007 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3008 | else |
a0b9e27f | 3009 | echo "$ac_t""no" 1>&6 |
54276ccf | 3010 | fi |
a0b9e27f | 3011 | |
54276ccf | 3012 | |
65d8ef1e | 3013 | enablestring= |
5005acfe | 3014 | echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6 |
dfa2a1d9 | 3015 | echo "configure:3016: checking for --${enablestring:-enable}-compat22" >&5 |
54276ccf VZ |
3016 | no_cache=0 |
3017 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3018 | if test "${enable_compat22+set}" = set; then | |
3019 | enableval="$enable_compat22" | |
a0b9e27f | 3020 | |
54276ccf VZ |
3021 | if test "$enableval" = yes; then |
3022 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3023 | else | |
3024 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3025 | fi | |
a0b9e27f | 3026 | |
54276ccf | 3027 | else |
a0b9e27f | 3028 | |
54276ccf VZ |
3029 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3030 | if test "x$LINE" != x ; then | |
3031 | eval "DEFAULT_$LINE" | |
3032 | else | |
3033 | no_cache=1 | |
3034 | fi | |
3035 | ||
3036 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
a0b9e27f MB |
3037 | |
3038 | fi | |
54276ccf VZ |
3039 | |
3040 | ||
3041 | eval "$ac_cv_use_compat22" | |
3042 | if test "$no_cache" != 1; then | |
3043 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3044 | fi | |
3045 | ||
3046 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
a0b9e27f | 3047 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3048 | else |
a0b9e27f | 3049 | echo "$ac_t""no" 1>&6 |
54276ccf | 3050 | fi |
a0b9e27f | 3051 | |
54276ccf | 3052 | |
65d8ef1e VS |
3053 | enablestring=disable |
3054 | echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6 | |
dfa2a1d9 | 3055 | echo "configure:3056: checking for --${enablestring:-enable}-compat24" >&5 |
65d8ef1e VS |
3056 | no_cache=0 |
3057 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
3058 | if test "${enable_compat24+set}" = set; then | |
3059 | enableval="$enable_compat24" | |
3060 | ||
3061 | if test "$enableval" = yes; then | |
3062 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
3063 | else | |
3064 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
3065 | fi | |
3066 | ||
3067 | else | |
3068 | ||
3069 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
3070 | if test "x$LINE" != x ; then | |
3071 | eval "DEFAULT_$LINE" | |
3072 | else | |
3073 | no_cache=1 | |
3074 | fi | |
3075 | ||
3076 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
3077 | ||
3078 | fi | |
3079 | ||
3080 | ||
3081 | eval "$ac_cv_use_compat24" | |
3082 | if test "$no_cache" != 1; then | |
3083 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
3084 | fi | |
3085 | ||
3086 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
3087 | echo "$ac_t""yes" 1>&6 | |
3088 | else | |
3089 | echo "$ac_t""no" 1>&6 | |
3090 | fi | |
3091 | ||
3092 | ||
3bd8fb5f RD |
3093 | # Check whether --enable-rpath or --disable-rpath was given. |
3094 | if test "${enable_rpath+set}" = set; then | |
3095 | enableval="$enable_rpath" | |
3096 | wxRPATH_DIR="$enableval" | |
a0b9e27f MB |
3097 | fi |
3098 | ||
3bd8fb5f RD |
3099 | |
3100 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3101 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3102 | fi | |
3103 | ||
8284b0c5 MB |
3104 | |
3105 | ||
3106 | ||
5005acfe VZ |
3107 | enablestring= |
3108 | echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6 | |
dfa2a1d9 | 3109 | echo "configure:3110: checking for --${enablestring:-enable}-intl" >&5 |
10f2d63a VZ |
3110 | no_cache=0 |
3111 | # Check whether --enable-intl or --disable-intl was given. | |
3112 | if test "${enable_intl+set}" = set; then | |
3113 | enableval="$enable_intl" | |
a0b9e27f | 3114 | |
10f2d63a VZ |
3115 | if test "$enableval" = yes; then |
3116 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3117 | else | |
3118 | ac_cv_use_intl='wxUSE_INTL=no' | |
3119 | fi | |
a0b9e27f | 3120 | |
10f2d63a | 3121 | else |
a0b9e27f | 3122 | |
10f2d63a VZ |
3123 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3124 | if test "x$LINE" != x ; then | |
3125 | eval "DEFAULT_$LINE" | |
3126 | else | |
3127 | no_cache=1 | |
3128 | fi | |
3129 | ||
3130 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
a0b9e27f MB |
3131 | |
3132 | fi | |
10f2d63a VZ |
3133 | |
3134 | ||
3135 | eval "$ac_cv_use_intl" | |
3136 | if test "$no_cache" != 1; then | |
3137 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3138 | fi | |
3139 | ||
3140 | if test "$wxUSE_INTL" = yes; then | |
a0b9e27f | 3141 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3142 | else |
a0b9e27f | 3143 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3144 | fi |
a0b9e27f | 3145 | |
10f2d63a | 3146 | |
5005acfe VZ |
3147 | enablestring= |
3148 | echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6 | |
dfa2a1d9 | 3149 | echo "configure:3150: checking for --${enablestring:-enable}-config" >&5 |
10f2d63a VZ |
3150 | no_cache=0 |
3151 | # Check whether --enable-config or --disable-config was given. | |
3152 | if test "${enable_config+set}" = set; then | |
3153 | enableval="$enable_config" | |
a0b9e27f | 3154 | |
10f2d63a VZ |
3155 | if test "$enableval" = yes; then |
3156 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3157 | else | |
3158 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3159 | fi | |
a0b9e27f | 3160 | |
10f2d63a | 3161 | else |
a0b9e27f | 3162 | |
10f2d63a VZ |
3163 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3164 | if test "x$LINE" != x ; then | |
3165 | eval "DEFAULT_$LINE" | |
3166 | else | |
3167 | no_cache=1 | |
3168 | fi | |
3169 | ||
3170 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
a0b9e27f MB |
3171 | |
3172 | fi | |
10f2d63a VZ |
3173 | |
3174 | ||
3175 | eval "$ac_cv_use_config" | |
3176 | if test "$no_cache" != 1; then | |
3177 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3178 | fi | |
3179 | ||
3180 | if test "$wxUSE_CONFIG" = yes; then | |
a0b9e27f | 3181 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3182 | else |
a0b9e27f | 3183 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3184 | fi |
a0b9e27f | 3185 | |
52127426 | 3186 | |
8284b0c5 | 3187 | |
5005acfe VZ |
3188 | enablestring= |
3189 | echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6 | |
dfa2a1d9 | 3190 | echo "configure:3191: checking for --${enablestring:-enable}-protocols" >&5 |
a1622950 VZ |
3191 | no_cache=0 |
3192 | # Check whether --enable-protocols or --disable-protocols was given. | |
3193 | if test "${enable_protocols+set}" = set; then | |
3194 | enableval="$enable_protocols" | |
a0b9e27f | 3195 | |
a1622950 VZ |
3196 | if test "$enableval" = yes; then |
3197 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3198 | else | |
3199 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3200 | fi | |
a0b9e27f | 3201 | |
a1622950 | 3202 | else |
a0b9e27f | 3203 | |
a1622950 VZ |
3204 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3205 | if test "x$LINE" != x ; then | |
3206 | eval "DEFAULT_$LINE" | |
3207 | else | |
3208 | no_cache=1 | |
3209 | fi | |
3210 | ||
3211 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
3212 | |
3213 | fi | |
a1622950 VZ |
3214 | |
3215 | ||
3216 | eval "$ac_cv_use_protocols" | |
3217 | if test "$no_cache" != 1; then | |
3218 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3219 | fi | |
3220 | ||
3221 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 3222 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3223 | else |
a0b9e27f | 3224 | echo "$ac_t""no" 1>&6 |
a1622950 | 3225 | fi |
a0b9e27f | 3226 | |
a1622950 | 3227 | |
5005acfe VZ |
3228 | enablestring= |
3229 | echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6 | |
dfa2a1d9 | 3230 | echo "configure:3231: checking for --${enablestring:-enable}-ftp" >&5 |
a1622950 VZ |
3231 | no_cache=0 |
3232 | # Check whether --enable-ftp or --disable-ftp was given. | |
3233 | if test "${enable_ftp+set}" = set; then | |
3234 | enableval="$enable_ftp" | |
a0b9e27f | 3235 | |
a1622950 VZ |
3236 | if test "$enableval" = yes; then |
3237 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3238 | else | |
3239 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3240 | fi | |
a0b9e27f | 3241 | |
a1622950 | 3242 | else |
a0b9e27f | 3243 | |
a1622950 VZ |
3244 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3245 | if test "x$LINE" != x ; then | |
3246 | eval "DEFAULT_$LINE" | |
3247 | else | |
3248 | no_cache=1 | |
3249 | fi | |
3250 | ||
3251 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
3252 | |
3253 | fi | |
a1622950 VZ |
3254 | |
3255 | ||
3256 | eval "$ac_cv_use_ftp" | |
3257 | if test "$no_cache" != 1; then | |
3258 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3259 | fi | |
3260 | ||
3261 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 3262 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3263 | else |
a0b9e27f | 3264 | echo "$ac_t""no" 1>&6 |
a1622950 | 3265 | fi |
a0b9e27f | 3266 | |
a1622950 | 3267 | |
5005acfe VZ |
3268 | enablestring= |
3269 | echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6 | |
dfa2a1d9 | 3270 | echo "configure:3271: checking for --${enablestring:-enable}-http" >&5 |
a1622950 VZ |
3271 | no_cache=0 |
3272 | # Check whether --enable-http or --disable-http was given. | |
3273 | if test "${enable_http+set}" = set; then | |
3274 | enableval="$enable_http" | |
a0b9e27f | 3275 | |
a1622950 VZ |
3276 | if test "$enableval" = yes; then |
3277 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3278 | else | |
3279 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3280 | fi | |
a0b9e27f | 3281 | |
a1622950 | 3282 | else |
a0b9e27f | 3283 | |
a1622950 VZ |
3284 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3285 | if test "x$LINE" != x ; then | |
3286 | eval "DEFAULT_$LINE" | |
3287 | else | |
3288 | no_cache=1 | |
3289 | fi | |
3290 | ||
3291 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
3292 | |
3293 | fi | |
a1622950 VZ |
3294 | |
3295 | ||
3296 | eval "$ac_cv_use_http" | |
3297 | if test "$no_cache" != 1; then | |
3298 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3299 | fi | |
3300 | ||
3301 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 3302 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3303 | else |
a0b9e27f | 3304 | echo "$ac_t""no" 1>&6 |
a1622950 | 3305 | fi |
a0b9e27f | 3306 | |
a1622950 | 3307 | |
5005acfe VZ |
3308 | enablestring= |
3309 | echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6 | |
dfa2a1d9 | 3310 | echo "configure:3311: checking for --${enablestring:-enable}-fileproto" >&5 |
a1622950 VZ |
3311 | no_cache=0 |
3312 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3313 | if test "${enable_fileproto+set}" = set; then | |
3314 | enableval="$enable_fileproto" | |
a0b9e27f | 3315 | |
a1622950 VZ |
3316 | if test "$enableval" = yes; then |
3317 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3318 | else | |
3319 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3320 | fi | |
a0b9e27f | 3321 | |
a1622950 | 3322 | else |
a0b9e27f | 3323 | |
a1622950 VZ |
3324 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
3325 | if test "x$LINE" != x ; then | |
3326 | eval "DEFAULT_$LINE" | |
3327 | else | |
3328 | no_cache=1 | |
3329 | fi | |
3330 | ||
3331 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
3332 | |
3333 | fi | |
a1622950 VZ |
3334 | |
3335 | ||
3336 | eval "$ac_cv_use_fileproto" | |
3337 | if test "$no_cache" != 1; then | |
3338 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3339 | fi | |
3340 | ||
3341 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 3342 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3343 | else |
a0b9e27f | 3344 | echo "$ac_t""no" 1>&6 |
a1622950 | 3345 | fi |
a0b9e27f | 3346 | |
a1622950 | 3347 | |
5005acfe VZ |
3348 | enablestring= |
3349 | echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6 | |
dfa2a1d9 | 3350 | echo "configure:3351: checking for --${enablestring:-enable}-sockets" >&5 |
10f2d63a VZ |
3351 | no_cache=0 |
3352 | # Check whether --enable-sockets or --disable-sockets was given. | |
3353 | if test "${enable_sockets+set}" = set; then | |
3354 | enableval="$enable_sockets" | |
a0b9e27f | 3355 | |
10f2d63a VZ |
3356 | if test "$enableval" = yes; then |
3357 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3358 | else | |
3359 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3360 | fi | |
a0b9e27f | 3361 | |
10f2d63a | 3362 | else |
a0b9e27f | 3363 | |
10f2d63a VZ |
3364 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3365 | if test "x$LINE" != x ; then | |
3366 | eval "DEFAULT_$LINE" | |
3367 | else | |
3368 | no_cache=1 | |
3369 | fi | |
3370 | ||
3371 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
a0b9e27f MB |
3372 | |
3373 | fi | |
10f2d63a VZ |
3374 | |
3375 | ||
3376 | eval "$ac_cv_use_sockets" | |
3377 | if test "$no_cache" != 1; then | |
3378 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3379 | fi | |
3380 | ||
3381 | if test "$wxUSE_SOCKETS" = yes; then | |
a0b9e27f | 3382 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3383 | else |
a0b9e27f | 3384 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3385 | fi |
a0b9e27f | 3386 | |
8284b0c5 | 3387 | |
5005acfe VZ |
3388 | enablestring= |
3389 | echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6 | |
dfa2a1d9 | 3390 | echo "configure:3391: checking for --${enablestring:-enable}-ole" >&5 |
3bce6687 JS |
3391 | no_cache=0 |
3392 | # Check whether --enable-ole or --disable-ole was given. | |
3393 | if test "${enable_ole+set}" = set; then | |
3394 | enableval="$enable_ole" | |
3395 | ||
3396 | if test "$enableval" = yes; then | |
3397 | ac_cv_use_ole='wxUSE_OLE=yes' | |
3398 | else | |
3399 | ac_cv_use_ole='wxUSE_OLE=no' | |
3400 | fi | |
3401 | ||
3402 | else | |
3403 | ||
3404 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
3405 | if test "x$LINE" != x ; then | |
3406 | eval "DEFAULT_$LINE" | |
3407 | else | |
3408 | no_cache=1 | |
3409 | fi | |
3410 | ||
3411 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3412 | ||
3413 | fi | |
3414 | ||
3415 | ||
3416 | eval "$ac_cv_use_ole" | |
3417 | if test "$no_cache" != 1; then | |
3418 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
3419 | fi | |
3420 | ||
3421 | if test "$wxUSE_OLE" = yes; then | |
3422 | echo "$ac_t""yes" 1>&6 | |
3423 | else | |
3424 | echo "$ac_t""no" 1>&6 | |
3425 | fi | |
3426 | ||
3427 | ||
5005acfe VZ |
3428 | enablestring= |
3429 | echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6 | |
dfa2a1d9 | 3430 | echo "configure:3431: checking for --${enablestring:-enable}-dataobj" >&5 |
3bce6687 JS |
3431 | no_cache=0 |
3432 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
3433 | if test "${enable_dataobj+set}" = set; then | |
3434 | enableval="$enable_dataobj" | |
3435 | ||
3436 | if test "$enableval" = yes; then | |
3437 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
3438 | else | |
3439 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
3440 | fi | |
3441 | ||
3442 | else | |
3443 | ||
3444 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
3445 | if test "x$LINE" != x ; then | |
3446 | eval "DEFAULT_$LINE" | |
3447 | else | |
3448 | no_cache=1 | |
3449 | fi | |
3450 | ||
3451 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3452 | ||
3453 | fi | |
3454 | ||
3455 | ||
3456 | eval "$ac_cv_use_dataobj" | |
3457 | if test "$no_cache" != 1; then | |
3458 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
3459 | fi | |
3460 | ||
3461 | if test "$wxUSE_DATAOBJ" = yes; then | |
3462 | echo "$ac_t""yes" 1>&6 | |
3463 | else | |
3464 | echo "$ac_t""no" 1>&6 | |
3465 | fi | |
3466 | ||
3467 | ||
52127426 | 3468 | |
5005acfe VZ |
3469 | enablestring= |
3470 | echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6 | |
dfa2a1d9 | 3471 | echo "configure:3472: checking for --${enablestring:-enable}-ipc" >&5 |
10f2d63a | 3472 | no_cache=0 |
eb4efbdc VZ |
3473 | # Check whether --enable-ipc or --disable-ipc was given. |
3474 | if test "${enable_ipc+set}" = set; then | |
3475 | enableval="$enable_ipc" | |
a0b9e27f | 3476 | |
10f2d63a | 3477 | if test "$enableval" = yes; then |
eb4efbdc | 3478 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3479 | else |
eb4efbdc | 3480 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3481 | fi |
a0b9e27f | 3482 | |
10f2d63a | 3483 | else |
a0b9e27f | 3484 | |
eb4efbdc | 3485 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3486 | if test "x$LINE" != x ; then |
3487 | eval "DEFAULT_$LINE" | |
3488 | else | |
3489 | no_cache=1 | |
3490 | fi | |
3491 | ||
eb4efbdc | 3492 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
a0b9e27f MB |
3493 | |
3494 | fi | |
10f2d63a VZ |
3495 | |
3496 | ||
eb4efbdc | 3497 | eval "$ac_cv_use_ipc" |
10f2d63a | 3498 | if test "$no_cache" != 1; then |
eb4efbdc | 3499 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3500 | fi |
3501 | ||
eb4efbdc | 3502 | if test "$wxUSE_IPC" = yes; then |
a0b9e27f | 3503 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3504 | else |
a0b9e27f | 3505 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3506 | fi |
a0b9e27f | 3507 | |
52127426 | 3508 | |
8284b0c5 | 3509 | |
5005acfe VZ |
3510 | enablestring= |
3511 | echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6 | |
dfa2a1d9 | 3512 | echo "configure:3513: checking for --${enablestring:-enable}-cmdline" >&5 |
1e6feb95 VZ |
3513 | no_cache=0 |
3514 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3515 | if test "${enable_cmdline+set}" = set; then | |
3516 | enableval="$enable_cmdline" | |
a0b9e27f | 3517 | |
1e6feb95 VZ |
3518 | if test "$enableval" = yes; then |
3519 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3520 | else | |
3521 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3522 | fi | |
a0b9e27f | 3523 | |
1e6feb95 | 3524 | else |
a0b9e27f | 3525 | |
1e6feb95 VZ |
3526 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
3527 | if test "x$LINE" != x ; then | |
3528 | eval "DEFAULT_$LINE" | |
3529 | else | |
3530 | no_cache=1 | |
3531 | fi | |
3532 | ||
3533 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
a0b9e27f MB |
3534 | |
3535 | fi | |
1e6feb95 VZ |
3536 | |
3537 | ||
3538 | eval "$ac_cv_use_cmdline" | |
3539 | if test "$no_cache" != 1; then | |
3540 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3541 | fi | |
3542 | ||
3543 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
a0b9e27f | 3544 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3545 | else |
a0b9e27f | 3546 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3547 | fi |
a0b9e27f | 3548 | |
1e6feb95 | 3549 | |
5005acfe VZ |
3550 | enablestring= |
3551 | echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6 | |
dfa2a1d9 | 3552 | echo "configure:3553: checking for --${enablestring:-enable}-datetime" >&5 |
1e6feb95 VZ |
3553 | no_cache=0 |
3554 | # Check whether --enable-datetime or --disable-datetime was given. | |
3555 | if test "${enable_datetime+set}" = set; then | |
3556 | enableval="$enable_datetime" | |
a0b9e27f | 3557 | |
1e6feb95 VZ |
3558 | if test "$enableval" = yes; then |
3559 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3560 | else | |
3561 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3562 | fi | |
a0b9e27f | 3563 | |
1e6feb95 | 3564 | else |
a0b9e27f | 3565 | |
1e6feb95 VZ |
3566 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
3567 | if test "x$LINE" != x ; then | |
3568 | eval "DEFAULT_$LINE" | |
3569 | else | |
3570 | no_cache=1 | |
3571 | fi | |
3572 | ||
3573 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
a0b9e27f MB |
3574 | |
3575 | fi | |
1e6feb95 VZ |
3576 | |
3577 | ||
3578 | eval "$ac_cv_use_datetime" | |
3579 | if test "$no_cache" != 1; then | |
3580 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3581 | fi | |
3582 | ||
3583 | if test "$wxUSE_DATETIME" = yes; then | |
a0b9e27f | 3584 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3585 | else |
a0b9e27f | 3586 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3587 | fi |
a0b9e27f | 3588 | |
1e6feb95 | 3589 | |
5005acfe VZ |
3590 | enablestring= |
3591 | echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6 | |
dfa2a1d9 | 3592 | echo "configure:3593: checking for --${enablestring:-enable}-stopwatch" >&5 |
1e6feb95 VZ |
3593 | no_cache=0 |
3594 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3595 | if test "${enable_stopwatch+set}" = set; then | |
3596 | enableval="$enable_stopwatch" | |
a0b9e27f | 3597 | |
1e6feb95 VZ |
3598 | if test "$enableval" = yes; then |
3599 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3600 | else | |
3601 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3602 | fi | |
a0b9e27f | 3603 | |
1e6feb95 | 3604 | else |
a0b9e27f | 3605 | |
1e6feb95 VZ |
3606 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
3607 | if test "x$LINE" != x ; then | |
3608 | eval "DEFAULT_$LINE" | |
3609 | else | |
3610 | no_cache=1 | |
3611 | fi | |
3612 | ||
3613 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
a0b9e27f MB |
3614 | |
3615 | fi | |
1e6feb95 VZ |
3616 | |
3617 | ||
3618 | eval "$ac_cv_use_stopwatch" | |
3619 | if test "$no_cache" != 1; then | |
3620 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3621 | fi | |
3622 | ||
3623 | if test "$wxUSE_STOPWATCH" = yes; then | |
a0b9e27f | 3624 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3625 | else |
a0b9e27f | 3626 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3627 | fi |
a0b9e27f | 3628 | |
1e6feb95 | 3629 | |
5005acfe VZ |
3630 | enablestring= |
3631 | echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6 | |
dfa2a1d9 | 3632 | echo "configure:3633: checking for --${enablestring:-enable}-dialupman" >&5 |
10f2d63a | 3633 | no_cache=0 |
eb4efbdc VZ |
3634 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3635 | if test "${enable_dialupman+set}" = set; then | |
3636 | enableval="$enable_dialupman" | |
a0b9e27f | 3637 | |
10f2d63a | 3638 | if test "$enableval" = yes; then |
eb4efbdc | 3639 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3640 | else |
eb4efbdc | 3641 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3642 | fi |
a0b9e27f | 3643 | |
10f2d63a | 3644 | else |
a0b9e27f | 3645 | |
eb4efbdc | 3646 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3647 | if test "x$LINE" != x ; then |
3648 | eval "DEFAULT_$LINE" | |
3649 | else | |
3650 | no_cache=1 | |
3651 | fi | |
3652 | ||
eb4efbdc | 3653 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
a0b9e27f MB |
3654 | |
3655 | fi | |
10f2d63a VZ |
3656 | |
3657 | ||
eb4efbdc | 3658 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3659 | if test "$no_cache" != 1; then |
eb4efbdc | 3660 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3661 | fi |
3662 | ||
eb4efbdc | 3663 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
a0b9e27f | 3664 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3665 | else |
a0b9e27f | 3666 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3667 | fi |
a0b9e27f | 3668 | |
10f2d63a | 3669 | |
5005acfe VZ |
3670 | enablestring= |
3671 | echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6 | |
dfa2a1d9 | 3672 | echo "configure:3673: checking for --${enablestring:-enable}-apple_ieee" >&5 |
10f2d63a VZ |
3673 | no_cache=0 |
3674 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3675 | if test "${enable_apple_ieee+set}" = set; then | |
3676 | enableval="$enable_apple_ieee" | |
a0b9e27f | 3677 | |
10f2d63a VZ |
3678 | if test "$enableval" = yes; then |
3679 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3680 | else | |
3681 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3682 | fi | |
a0b9e27f | 3683 | |
10f2d63a | 3684 | else |
a0b9e27f | 3685 | |
10f2d63a VZ |
3686 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3687 | if test "x$LINE" != x ; then | |
3688 | eval "DEFAULT_$LINE" | |
3689 | else | |
3690 | no_cache=1 | |
3691 | fi | |
3692 | ||
3693 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
a0b9e27f MB |
3694 | |
3695 | fi | |
10f2d63a VZ |
3696 | |
3697 | ||
3698 | eval "$ac_cv_use_apple_ieee" | |
3699 | if test "$no_cache" != 1; then | |
3700 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3701 | fi | |
3702 | ||
3703 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
a0b9e27f | 3704 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3705 | else |
a0b9e27f | 3706 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3707 | fi |
a0b9e27f | 3708 | |
10f2d63a | 3709 | |
5005acfe VZ |
3710 | enablestring= |
3711 | echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6 | |
dfa2a1d9 | 3712 | echo "configure:3713: checking for --${enablestring:-enable}-timer" >&5 |
10f2d63a | 3713 | no_cache=0 |
1e6feb95 VZ |
3714 | # Check whether --enable-timer or --disable-timer was given. |
3715 | if test "${enable_timer+set}" = set; then | |
3716 | enableval="$enable_timer" | |
a0b9e27f | 3717 | |
10f2d63a | 3718 | if test "$enableval" = yes; then |
1e6feb95 | 3719 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3720 | else |
1e6feb95 | 3721 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3722 | fi |
a0b9e27f | 3723 | |
10f2d63a | 3724 | else |
a0b9e27f | 3725 | |
1e6feb95 | 3726 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3727 | if test "x$LINE" != x ; then |
3728 | eval "DEFAULT_$LINE" | |
3729 | else | |
3730 | no_cache=1 | |
3731 | fi | |
3732 | ||
1e6feb95 | 3733 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
a0b9e27f MB |
3734 | |
3735 | fi | |
10f2d63a VZ |
3736 | |
3737 | ||
1e6feb95 | 3738 | eval "$ac_cv_use_timer" |
10f2d63a | 3739 | if test "$no_cache" != 1; then |
1e6feb95 | 3740 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3741 | fi |
3742 | ||
1e6feb95 | 3743 | if test "$wxUSE_TIMER" = yes; then |
a0b9e27f | 3744 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3745 | else |
a0b9e27f | 3746 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3747 | fi |
a0b9e27f | 3748 | |
10f2d63a | 3749 | |
5005acfe VZ |
3750 | enablestring= |
3751 | echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6 | |
dfa2a1d9 | 3752 | echo "configure:3753: checking for --${enablestring:-enable}-wave" >&5 |
10f2d63a VZ |
3753 | no_cache=0 |
3754 | # Check whether --enable-wave or --disable-wave was given. | |
3755 | if test "${enable_wave+set}" = set; then | |
3756 | enableval="$enable_wave" | |
a0b9e27f | 3757 | |
10f2d63a VZ |
3758 | if test "$enableval" = yes; then |
3759 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3760 | else | |
3761 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3762 | fi | |
a0b9e27f | 3763 | |
10f2d63a | 3764 | else |
a0b9e27f | 3765 | |
10f2d63a VZ |
3766 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3767 | if test "x$LINE" != x ; then | |
3768 | eval "DEFAULT_$LINE" | |
3769 | else | |
3770 | no_cache=1 | |
3771 | fi | |
3772 | ||
3773 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
a0b9e27f MB |
3774 | |
3775 | fi | |
10f2d63a VZ |
3776 | |
3777 | ||
3778 | eval "$ac_cv_use_wave" | |
3779 | if test "$no_cache" != 1; then | |
3780 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3781 | fi | |
3782 | ||
3783 | if test "$wxUSE_WAVE" = yes; then | |
a0b9e27f | 3784 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3785 | else |
a0b9e27f | 3786 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3787 | fi |
a0b9e27f | 3788 | |
10f2d63a | 3789 | |
5005acfe VZ |
3790 | enablestring= |
3791 | echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6 | |
dfa2a1d9 | 3792 | echo "configure:3793: checking for --${enablestring:-enable}-fraction" >&5 |
10f2d63a VZ |
3793 | no_cache=0 |
3794 | # Check whether --enable-fraction or --disable-fraction was given. | |
3795 | if test "${enable_fraction+set}" = set; then | |
3796 | enableval="$enable_fraction" | |
a0b9e27f | 3797 | |
10f2d63a VZ |
3798 | if test "$enableval" = yes; then |
3799 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3800 | else | |
3801 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3802 | fi | |
a0b9e27f | 3803 | |
10f2d63a | 3804 | else |
a0b9e27f | 3805 | |
10f2d63a VZ |
3806 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3807 | if test "x$LINE" != x ; then | |
3808 | eval "DEFAULT_$LINE" | |
3809 | else | |
3810 | no_cache=1 | |
3811 | fi | |
3812 | ||
3813 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
a0b9e27f MB |
3814 | |
3815 | fi | |
10f2d63a VZ |
3816 | |
3817 | ||
3818 | eval "$ac_cv_use_fraction" | |
3819 | if test "$no_cache" != 1; then | |
3820 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3821 | fi | |
3822 | ||
3823 | if test "$wxUSE_FRACTION" = yes; then | |
a0b9e27f | 3824 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3825 | else |
a0b9e27f | 3826 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3827 | fi |
a0b9e27f | 3828 | |
10f2d63a | 3829 | |
5005acfe VZ |
3830 | enablestring= |
3831 | echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6 | |
dfa2a1d9 | 3832 | echo "configure:3833: checking for --${enablestring:-enable}-dynlib" >&5 |
10f2d63a VZ |
3833 | no_cache=0 |
3834 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3835 | if test "${enable_dynlib+set}" = set; then | |
3836 | enableval="$enable_dynlib" | |
a0b9e27f | 3837 | |
10f2d63a VZ |
3838 | if test "$enableval" = yes; then |
3839 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3840 | else | |
3841 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3842 | fi | |
a0b9e27f | 3843 | |
10f2d63a | 3844 | else |
a0b9e27f | 3845 | |
10f2d63a VZ |
3846 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3847 | if test "x$LINE" != x ; then | |
3848 | eval "DEFAULT_$LINE" | |
3849 | else | |
3850 | no_cache=1 | |
3851 | fi | |
3852 | ||
3853 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
a0b9e27f MB |
3854 | |
3855 | fi | |
10f2d63a VZ |
3856 | |
3857 | ||
3858 | eval "$ac_cv_use_dynlib" | |
3859 | if test "$no_cache" != 1; then | |
3860 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3861 | fi | |
3862 | ||
3863 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
a0b9e27f | 3864 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3865 | else |
a0b9e27f | 3866 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3867 | fi |
a0b9e27f | 3868 | |
10f2d63a | 3869 | |
5005acfe VZ |
3870 | enablestring= |
3871 | echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6 | |
dfa2a1d9 | 3872 | echo "configure:3873: checking for --${enablestring:-enable}-dynamicloader" >&5 |
0b9ab0bd RL |
3873 | no_cache=0 |
3874 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3875 | if test "${enable_dynamicloader+set}" = set; then | |
3876 | enableval="$enable_dynamicloader" | |
a0b9e27f | 3877 | |
0b9ab0bd RL |
3878 | if test "$enableval" = yes; then |
3879 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3880 | else | |
3881 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3882 | fi | |
a0b9e27f | 3883 | |
0b9ab0bd | 3884 | else |
a0b9e27f | 3885 | |
0b9ab0bd RL |
3886 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
3887 | if test "x$LINE" != x ; then | |
3888 | eval "DEFAULT_$LINE" | |
3889 | else | |
3890 | no_cache=1 | |
3891 | fi | |
3892 | ||
3893 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
a0b9e27f MB |
3894 | |
3895 | fi | |
0b9ab0bd RL |
3896 | |
3897 | ||
3898 | eval "$ac_cv_use_dynamicloader" | |
3899 | if test "$no_cache" != 1; then | |
3900 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3901 | fi | |
3902 | ||
3903 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
a0b9e27f | 3904 | echo "$ac_t""yes" 1>&6 |
0b9ab0bd | 3905 | else |
a0b9e27f | 3906 | echo "$ac_t""no" 1>&6 |
0b9ab0bd | 3907 | fi |
a0b9e27f | 3908 | |
0b9ab0bd | 3909 | |
5005acfe VZ |
3910 | enablestring= |
3911 | echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6 | |
dfa2a1d9 | 3912 | echo "configure:3913: checking for --${enablestring:-enable}-longlong" >&5 |
10f2d63a VZ |
3913 | no_cache=0 |
3914 | # Check whether --enable-longlong or --disable-longlong was given. | |
3915 | if test "${enable_longlong+set}" = set; then | |
3916 | enableval="$enable_longlong" | |
a0b9e27f | 3917 | |
10f2d63a VZ |
3918 | if test "$enableval" = yes; then |
3919 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3920 | else | |
3921 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3922 | fi | |
a0b9e27f | 3923 | |
10f2d63a | 3924 | else |
a0b9e27f | 3925 | |
10f2d63a VZ |
3926 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3927 | if test "x$LINE" != x ; then | |
3928 | eval "DEFAULT_$LINE" | |
3929 | else | |
3930 | no_cache=1 | |
3931 | fi | |
3932 | ||
3933 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
a0b9e27f MB |
3934 | |
3935 | fi | |
10f2d63a VZ |
3936 | |
3937 | ||
3938 | eval "$ac_cv_use_longlong" | |
3939 | if test "$no_cache" != 1; then | |
3940 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3941 | fi | |
3942 | ||
3943 | if test "$wxUSE_LONGLONG" = yes; then | |
a0b9e27f | 3944 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3945 | else |
a0b9e27f | 3946 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3947 | fi |
a0b9e27f | 3948 | |
10f2d63a | 3949 | |
5005acfe VZ |
3950 | enablestring= |
3951 | echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6 | |
dfa2a1d9 | 3952 | echo "configure:3953: checking for --${enablestring:-enable}-geometry" >&5 |
e8f65ba6 RR |
3953 | no_cache=0 |
3954 | # Check whether --enable-geometry or --disable-geometry was given. | |
3955 | if test "${enable_geometry+set}" = set; then | |
3956 | enableval="$enable_geometry" | |
a0b9e27f | 3957 | |
e8f65ba6 RR |
3958 | if test "$enableval" = yes; then |
3959 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3960 | else | |
3961 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3962 | fi | |
a0b9e27f | 3963 | |
e8f65ba6 | 3964 | else |
a0b9e27f | 3965 | |
e8f65ba6 RR |
3966 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3967 | if test "x$LINE" != x ; then | |
3968 | eval "DEFAULT_$LINE" | |
3969 | else | |
3970 | no_cache=1 | |
3971 | fi | |
3972 | ||
3973 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
a0b9e27f MB |
3974 | |
3975 | fi | |
e8f65ba6 RR |
3976 | |
3977 | ||
3978 | eval "$ac_cv_use_geometry" | |
3979 | if test "$no_cache" != 1; then | |
3980 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3981 | fi | |
3982 | ||
3983 | if test "$wxUSE_GEOMETRY" = yes; then | |
a0b9e27f | 3984 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3985 | else |
a0b9e27f | 3986 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3987 | fi |
a0b9e27f | 3988 | |
e8f65ba6 | 3989 | |
5005acfe VZ |
3990 | enablestring= |
3991 | echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6 | |
dfa2a1d9 | 3992 | echo "configure:3993: checking for --${enablestring:-enable}-log" >&5 |
10f2d63a VZ |
3993 | no_cache=0 |
3994 | # Check whether --enable-log or --disable-log was given. | |
3995 | if test "${enable_log+set}" = set; then | |
3996 | enableval="$enable_log" | |
a0b9e27f | 3997 | |
10f2d63a VZ |
3998 | if test "$enableval" = yes; then |
3999 | ac_cv_use_log='wxUSE_LOG=yes' | |
4000 | else | |
4001 | ac_cv_use_log='wxUSE_LOG=no' | |
4002 | fi | |
a0b9e27f | 4003 | |
10f2d63a | 4004 | else |
a0b9e27f | 4005 | |
10f2d63a VZ |
4006 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
4007 | if test "x$LINE" != x ; then | |
4008 | eval "DEFAULT_$LINE" | |
4009 | else | |
4010 | no_cache=1 | |
4011 | fi | |
4012 | ||
4013 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
a0b9e27f MB |
4014 | |
4015 | fi | |
10f2d63a VZ |
4016 | |
4017 | ||
4018 | eval "$ac_cv_use_log" | |
4019 | if test "$no_cache" != 1; then | |
4020 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4021 | fi | |
4022 | ||
4023 | if test "$wxUSE_LOG" = yes; then | |
a0b9e27f | 4024 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4025 | else |
a0b9e27f | 4026 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4027 | fi |
a0b9e27f | 4028 | |
10f2d63a | 4029 | |
5005acfe VZ |
4030 | enablestring= |
4031 | echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6 | |
dfa2a1d9 | 4032 | echo "configure:4033: checking for --${enablestring:-enable}-streams" >&5 |
10f2d63a VZ |
4033 | no_cache=0 |
4034 | # Check whether --enable-streams or --disable-streams was given. | |
4035 | if test "${enable_streams+set}" = set; then | |
4036 | enableval="$enable_streams" | |
a0b9e27f | 4037 | |
10f2d63a VZ |
4038 | if test "$enableval" = yes; then |
4039 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4040 | else | |
4041 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4042 | fi | |
a0b9e27f | 4043 | |
10f2d63a | 4044 | else |
a0b9e27f | 4045 | |
10f2d63a VZ |
4046 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
4047 | if test "x$LINE" != x ; then | |
4048 | eval "DEFAULT_$LINE" | |
4049 | else | |
4050 | no_cache=1 | |
4051 | fi | |
4052 | ||
4053 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
a0b9e27f MB |
4054 | |
4055 | fi | |
10f2d63a VZ |
4056 | |
4057 | ||
4058 | eval "$ac_cv_use_streams" | |
4059 | if test "$no_cache" != 1; then | |
4060 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4061 | fi | |
4062 | ||
4063 | if test "$wxUSE_STREAMS" = yes; then | |
a0b9e27f | 4064 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4065 | else |
a0b9e27f | 4066 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4067 | fi |
a0b9e27f | 4068 | |
10f2d63a | 4069 | |
5005acfe VZ |
4070 | enablestring= |
4071 | echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6 | |
dfa2a1d9 | 4072 | echo "configure:4073: checking for --${enablestring:-enable}-file" >&5 |
10f2d63a VZ |
4073 | no_cache=0 |
4074 | # Check whether --enable-file or --disable-file was given. | |
4075 | if test "${enable_file+set}" = set; then | |
4076 | enableval="$enable_file" | |
a0b9e27f | 4077 | |
10f2d63a VZ |
4078 | if test "$enableval" = yes; then |
4079 | ac_cv_use_file='wxUSE_FILE=yes' | |
4080 | else | |
4081 | ac_cv_use_file='wxUSE_FILE=no' | |
4082 | fi | |
a0b9e27f | 4083 | |
10f2d63a | 4084 | else |
a0b9e27f | 4085 | |
10f2d63a VZ |
4086 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4087 | if test "x$LINE" != x ; then | |
4088 | eval "DEFAULT_$LINE" | |
4089 | else | |
4090 | no_cache=1 | |
4091 | fi | |
4092 | ||
4093 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
a0b9e27f MB |
4094 | |
4095 | fi | |
10f2d63a VZ |
4096 | |
4097 | ||
4098 | eval "$ac_cv_use_file" | |
4099 | if test "$no_cache" != 1; then | |
4100 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4101 | fi | |
4102 | ||
4103 | if test "$wxUSE_FILE" = yes; then | |
a0b9e27f | 4104 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4105 | else |
a0b9e27f | 4106 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4107 | fi |
a0b9e27f | 4108 | |
10f2d63a | 4109 | |
5005acfe VZ |
4110 | enablestring= |
4111 | echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6 | |
dfa2a1d9 | 4112 | echo "configure:4113: checking for --${enablestring:-enable}-ffile" >&5 |
10f2d63a | 4113 | no_cache=0 |
1e6feb95 VZ |
4114 | # Check whether --enable-ffile or --disable-ffile was given. |
4115 | if test "${enable_ffile+set}" = set; then | |
4116 | enableval="$enable_ffile" | |
a0b9e27f | 4117 | |
10f2d63a | 4118 | if test "$enableval" = yes; then |
1e6feb95 | 4119 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4120 | else |
1e6feb95 | 4121 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4122 | fi |
a0b9e27f | 4123 | |
10f2d63a | 4124 | else |
a0b9e27f | 4125 | |
1e6feb95 | 4126 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4127 | if test "x$LINE" != x ; then |
4128 | eval "DEFAULT_$LINE" | |
4129 | else | |
4130 | no_cache=1 | |
4131 | fi | |
4132 | ||
1e6feb95 | 4133 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
a0b9e27f MB |
4134 | |
4135 | fi | |
10f2d63a VZ |
4136 | |
4137 | ||
1e6feb95 | 4138 | eval "$ac_cv_use_ffile" |
10f2d63a | 4139 | if test "$no_cache" != 1; then |
1e6feb95 | 4140 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4141 | fi |
4142 | ||
1e6feb95 | 4143 | if test "$wxUSE_FFILE" = yes; then |
a0b9e27f | 4144 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4145 | else |
a0b9e27f | 4146 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4147 | fi |
a0b9e27f | 4148 | |
10f2d63a | 4149 | |
5005acfe VZ |
4150 | enablestring= |
4151 | echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6 | |
dfa2a1d9 | 4152 | echo "configure:4153: checking for --${enablestring:-enable}-textbuf" >&5 |
a3a584a7 VZ |
4153 | no_cache=0 |
4154 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4155 | if test "${enable_textbuf+set}" = set; then | |
4156 | enableval="$enable_textbuf" | |
a0b9e27f | 4157 | |
a3a584a7 VZ |
4158 | if test "$enableval" = yes; then |
4159 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4160 | else | |
4161 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4162 | fi | |
a0b9e27f | 4163 | |
a3a584a7 | 4164 | else |
a0b9e27f | 4165 | |
a3a584a7 VZ |
4166 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4167 | if test "x$LINE" != x ; then | |
4168 | eval "DEFAULT_$LINE" | |
4169 | else | |
4170 | no_cache=1 | |
4171 | fi | |
4172 | ||
4173 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a0b9e27f MB |
4174 | |
4175 | fi | |
a3a584a7 VZ |
4176 | |
4177 | ||
4178 | eval "$ac_cv_use_textbuf" | |
4179 | if test "$no_cache" != 1; then | |
4180 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4181 | fi | |
4182 | ||
4183 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
a0b9e27f | 4184 | echo "$ac_t""yes" 1>&6 |
a3a584a7 | 4185 | else |
a0b9e27f | 4186 | echo "$ac_t""no" 1>&6 |
a3a584a7 | 4187 | fi |
a0b9e27f | 4188 | |
a3a584a7 | 4189 | |
5005acfe VZ |
4190 | enablestring= |
4191 | echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6 | |
dfa2a1d9 | 4192 | echo "configure:4193: checking for --${enablestring:-enable}-textfile" >&5 |
10f2d63a | 4193 | no_cache=0 |
1e6feb95 VZ |
4194 | # Check whether --enable-textfile or --disable-textfile was given. |
4195 | if test "${enable_textfile+set}" = set; then | |
4196 | enableval="$enable_textfile" | |
a0b9e27f | 4197 | |
10f2d63a | 4198 | if test "$enableval" = yes; then |
1e6feb95 | 4199 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4200 | else |
1e6feb95 | 4201 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4202 | fi |
a0b9e27f | 4203 | |
10f2d63a | 4204 | else |
a0b9e27f | 4205 | |
1e6feb95 | 4206 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4207 | if test "x$LINE" != x ; then |
4208 | eval "DEFAULT_$LINE" | |
4209 | else | |
4210 | no_cache=1 | |
4211 | fi | |
4212 | ||
1e6feb95 | 4213 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
a0b9e27f MB |
4214 | |
4215 | fi | |
10f2d63a VZ |
4216 | |
4217 | ||
1e6feb95 | 4218 | eval "$ac_cv_use_textfile" |
10f2d63a | 4219 | if test "$no_cache" != 1; then |
1e6feb95 | 4220 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4221 | fi |
4222 | ||
1e6feb95 | 4223 | if test "$wxUSE_TEXTFILE" = yes; then |
a0b9e27f | 4224 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4225 | else |
a0b9e27f | 4226 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4227 | fi |
a0b9e27f | 4228 | |
10f2d63a | 4229 | |
5005acfe VZ |
4230 | enablestring= |
4231 | echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6 | |
dfa2a1d9 | 4232 | echo "configure:4233: checking for --${enablestring:-enable}-fontmap" >&5 |
10f2d63a | 4233 | no_cache=0 |
1e6feb95 VZ |
4234 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4235 | if test "${enable_fontmap+set}" = set; then | |
4236 | enableval="$enable_fontmap" | |
a0b9e27f | 4237 | |
10f2d63a | 4238 | if test "$enableval" = yes; then |
1e6feb95 | 4239 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4240 | else |
1e6feb95 | 4241 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4242 | fi |
a0b9e27f | 4243 | |
10f2d63a | 4244 | else |
a0b9e27f | 4245 | |
1e6feb95 | 4246 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4247 | if test "x$LINE" != x ; then |
4248 | eval "DEFAULT_$LINE" | |
4249 | else | |
4250 | no_cache=1 | |
4251 | fi | |
4252 | ||
1e6feb95 | 4253 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
a0b9e27f MB |
4254 | |
4255 | fi | |
10f2d63a VZ |
4256 | |
4257 | ||
1e6feb95 | 4258 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4259 | if test "$no_cache" != 1; then |
1e6feb95 | 4260 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4261 | fi |
4262 | ||
1e6feb95 | 4263 | if test "$wxUSE_FONTMAP" = yes; then |
a0b9e27f | 4264 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4265 | else |
a0b9e27f | 4266 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4267 | fi |
a0b9e27f | 4268 | |
10f2d63a | 4269 | |
5005acfe VZ |
4270 | enablestring= |
4271 | echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6 | |
dfa2a1d9 | 4272 | echo "configure:4273: checking for --${enablestring:-enable}-unicode" >&5 |
10f2d63a | 4273 | no_cache=0 |
1e6feb95 VZ |
4274 | # Check whether --enable-unicode or --disable-unicode was given. |
4275 | if test "${enable_unicode+set}" = set; then | |
4276 | enableval="$enable_unicode" | |
a0b9e27f | 4277 | |
1e6feb95 VZ |
4278 | if test "$enableval" = yes; then |
4279 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4280 | else | |
4281 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4282 | fi | |
a0b9e27f | 4283 | |
1e6feb95 | 4284 | else |
a0b9e27f | 4285 | |
1e6feb95 VZ |
4286 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4287 | if test "x$LINE" != x ; then | |
4288 | eval "DEFAULT_$LINE" | |
4289 | else | |
4290 | no_cache=1 | |
4291 | fi | |
4292 | ||
4293 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
a0b9e27f MB |
4294 | |
4295 | fi | |
1e6feb95 VZ |
4296 | |
4297 | ||
4298 | eval "$ac_cv_use_unicode" | |
4299 | if test "$no_cache" != 1; then | |
4300 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4301 | fi | |
4302 | ||
4303 | if test "$wxUSE_UNICODE" = yes; then | |
a0b9e27f | 4304 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4305 | else |
a0b9e27f | 4306 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4307 | fi |
a0b9e27f | 4308 | |
1e6feb95 | 4309 | |
5005acfe VZ |
4310 | enablestring= |
4311 | echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6 | |
dfa2a1d9 | 4312 | echo "configure:4313: checking for --${enablestring:-enable}-mslu" >&5 |
a72a4bfa VS |
4313 | no_cache=0 |
4314 | # Check whether --enable-mslu or --disable-mslu was given. | |
4315 | if test "${enable_mslu+set}" = set; then | |
4316 | enableval="$enable_mslu" | |
a0b9e27f | 4317 | |
a72a4bfa VS |
4318 | if test "$enableval" = yes; then |
4319 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4320 | else | |
4321 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4322 | fi | |
a0b9e27f | 4323 | |
a72a4bfa | 4324 | else |
a0b9e27f | 4325 | |
a72a4bfa VS |
4326 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
4327 | if test "x$LINE" != x ; then | |
4328 | eval "DEFAULT_$LINE" | |
4329 | else | |
4330 | no_cache=1 | |
4331 | fi | |
4332 | ||
4333 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a0b9e27f MB |
4334 | |
4335 | fi | |
a72a4bfa VS |
4336 | |
4337 | ||
4338 | eval "$ac_cv_use_mslu" | |
4339 | if test "$no_cache" != 1; then | |
4340 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4341 | fi | |
4342 | ||
4343 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
a0b9e27f | 4344 | echo "$ac_t""yes" 1>&6 |
a72a4bfa | 4345 | else |
a0b9e27f | 4346 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 4347 | fi |
a0b9e27f | 4348 | |
a72a4bfa | 4349 | |
5005acfe VZ |
4350 | enablestring= |
4351 | echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6 | |
dfa2a1d9 | 4352 | echo "configure:4353: checking for --${enablestring:-enable}-wxprintfv" >&5 |
1e6feb95 VZ |
4353 | no_cache=0 |
4354 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4355 | if test "${enable_wxprintfv+set}" = set; then | |
4356 | enableval="$enable_wxprintfv" | |
a0b9e27f | 4357 | |
1e6feb95 | 4358 | if test "$enableval" = yes; then |
10f2d63a VZ |
4359 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4360 | else | |
4361 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4362 | fi | |
a0b9e27f | 4363 | |
10f2d63a | 4364 | else |
a0b9e27f | 4365 | |
10f2d63a VZ |
4366 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4367 | if test "x$LINE" != x ; then | |
4368 | eval "DEFAULT_$LINE" | |
4369 | else | |
4370 | no_cache=1 | |
4371 | fi | |
4372 | ||
4373 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
a0b9e27f MB |
4374 | |
4375 | fi | |
10f2d63a VZ |
4376 | |
4377 | ||
4378 | eval "$ac_cv_use_wxprintfv" | |
4379 | if test "$no_cache" != 1; then | |
4380 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4381 | fi | |
4382 | ||
4383 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
a0b9e27f | 4384 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4385 | else |
a0b9e27f | 4386 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4387 | fi |
a0b9e27f | 4388 | |
10f2d63a | 4389 | |
5005acfe VZ |
4390 | enablestring= |
4391 | echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6 | |
dfa2a1d9 | 4392 | echo "configure:4393: checking for --${enablestring:-enable}-std_iostreams" >&5 |
10f2d63a VZ |
4393 | no_cache=0 |
4394 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4395 | if test "${enable_std_iostreams+set}" = set; then | |
4396 | enableval="$enable_std_iostreams" | |
a0b9e27f | 4397 | |
10f2d63a VZ |
4398 | if test "$enableval" = yes; then |
4399 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4400 | else | |
4401 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4402 | fi | |
a0b9e27f | 4403 | |
10f2d63a | 4404 | else |
a0b9e27f | 4405 | |
10f2d63a VZ |
4406 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4407 | if test "x$LINE" != x ; then | |
4408 | eval "DEFAULT_$LINE" | |
4409 | else | |
4410 | no_cache=1 | |
4411 | fi | |
4412 | ||
4413 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
a0b9e27f MB |
4414 | |
4415 | fi | |
10f2d63a VZ |
4416 | |
4417 | ||
4418 | eval "$ac_cv_use_std_iostreams" | |
4419 | if test "$no_cache" != 1; then | |
4420 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4421 | fi | |
4422 | ||
4423 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
a0b9e27f | 4424 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4425 | else |
a0b9e27f | 4426 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4427 | fi |
a0b9e27f | 4428 | |
10f2d63a | 4429 | |
5005acfe VZ |
4430 | enablestring= |
4431 | echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6 | |
dfa2a1d9 | 4432 | echo "configure:4433: checking for --${enablestring:-enable}-filesystem" >&5 |
24528b0c VS |
4433 | no_cache=0 |
4434 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4435 | if test "${enable_filesystem+set}" = set; then | |
4436 | enableval="$enable_filesystem" | |
a0b9e27f | 4437 | |
24528b0c VS |
4438 | if test "$enableval" = yes; then |
4439 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4440 | else | |
4441 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4442 | fi | |
a0b9e27f | 4443 | |
24528b0c | 4444 | else |
a0b9e27f | 4445 | |
24528b0c VS |
4446 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4447 | if test "x$LINE" != x ; then | |
4448 | eval "DEFAULT_$LINE" | |
4449 | else | |
4450 | no_cache=1 | |
4451 | fi | |
4452 | ||
4453 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
a0b9e27f MB |
4454 | |
4455 | fi | |
24528b0c VS |
4456 | |
4457 | ||
4458 | eval "$ac_cv_use_filesystem" | |
4459 | if test "$no_cache" != 1; then | |
4460 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4461 | fi | |
4462 | ||
4463 | if test "$wxUSE_FILESYSTEM" = yes; then | |
a0b9e27f | 4464 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4465 | else |
a0b9e27f | 4466 | echo "$ac_t""no" 1>&6 |
24528b0c | 4467 | fi |
a0b9e27f | 4468 | |
24528b0c | 4469 | |
5005acfe VZ |
4470 | enablestring= |
4471 | echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6 | |
dfa2a1d9 | 4472 | echo "configure:4473: checking for --${enablestring:-enable}-fs_inet" >&5 |
10f2d63a VZ |
4473 | no_cache=0 |
4474 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4475 | if test "${enable_fs_inet+set}" = set; then | |
4476 | enableval="$enable_fs_inet" | |
a0b9e27f | 4477 | |
10f2d63a VZ |
4478 | if test "$enableval" = yes; then |
4479 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4480 | else | |
4481 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4482 | fi | |
a0b9e27f | 4483 | |
10f2d63a | 4484 | else |
a0b9e27f | 4485 | |
10f2d63a VZ |
4486 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4487 | if test "x$LINE" != x ; then | |
4488 | eval "DEFAULT_$LINE" | |
4489 | else | |
4490 | no_cache=1 | |
4491 | fi | |
4492 | ||
4493 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
a0b9e27f MB |
4494 | |
4495 | fi | |
10f2d63a VZ |
4496 | |
4497 | ||
4498 | eval "$ac_cv_use_fs_inet" | |
4499 | if test "$no_cache" != 1; then | |
4500 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4501 | fi | |
4502 | ||
4503 | if test "$wxUSE_FS_INET" = yes; then | |
a0b9e27f | 4504 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4505 | else |
a0b9e27f | 4506 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4507 | fi |
a0b9e27f | 4508 | |
10f2d63a | 4509 | |
5005acfe VZ |
4510 | enablestring= |
4511 | echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6 | |
dfa2a1d9 | 4512 | echo "configure:4513: checking for --${enablestring:-enable}-fs_zip" >&5 |
10f2d63a VZ |
4513 | no_cache=0 |
4514 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4515 | if test "${enable_fs_zip+set}" = set; then | |
4516 | enableval="$enable_fs_zip" | |
a0b9e27f | 4517 | |
10f2d63a VZ |
4518 | if test "$enableval" = yes; then |
4519 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4520 | else | |
4521 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4522 | fi | |
a0b9e27f | 4523 | |
10f2d63a | 4524 | else |
a0b9e27f | 4525 | |
10f2d63a VZ |
4526 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4527 | if test "x$LINE" != x ; then | |
4528 | eval "DEFAULT_$LINE" | |
4529 | else | |
4530 | no_cache=1 | |
4531 | fi | |
4532 | ||
4533 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
a0b9e27f MB |
4534 | |
4535 | fi | |
10f2d63a VZ |
4536 | |
4537 | ||
4538 | eval "$ac_cv_use_fs_zip" | |
4539 | if test "$no_cache" != 1; then | |
4540 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4541 | fi | |
4542 | ||
4543 | if test "$wxUSE_FS_ZIP" = yes; then | |
a0b9e27f | 4544 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4545 | else |
a0b9e27f | 4546 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4547 | fi |
a0b9e27f | 4548 | |
10f2d63a | 4549 | |
5005acfe VZ |
4550 | enablestring= |
4551 | echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6 | |
dfa2a1d9 | 4552 | echo "configure:4553: checking for --${enablestring:-enable}-zipstream" >&5 |
10f2d63a VZ |
4553 | no_cache=0 |
4554 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4555 | if test "${enable_zipstream+set}" = set; then | |
4556 | enableval="$enable_zipstream" | |
a0b9e27f | 4557 | |
10f2d63a VZ |
4558 | if test "$enableval" = yes; then |
4559 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4560 | else | |
4561 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4562 | fi | |
a0b9e27f | 4563 | |
10f2d63a | 4564 | else |
a0b9e27f | 4565 | |
10f2d63a VZ |
4566 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4567 | if test "x$LINE" != x ; then | |
4568 | eval "DEFAULT_$LINE" | |
4569 | else | |
4570 | no_cache=1 | |
4571 | fi | |
4572 | ||
4573 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
a0b9e27f MB |
4574 | |
4575 | fi | |
10f2d63a VZ |
4576 | |
4577 | ||
4578 | eval "$ac_cv_use_zipstream" | |
4579 | if test "$no_cache" != 1; then | |
4580 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4581 | fi | |
4582 | ||
4583 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
a0b9e27f | 4584 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4585 | else |
a0b9e27f | 4586 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4587 | fi |
a0b9e27f | 4588 | |
8284b0c5 | 4589 | |
52127426 | 4590 | |
5005acfe VZ |
4591 | enablestring= |
4592 | echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6 | |
dfa2a1d9 | 4593 | echo "configure:4594: checking for --${enablestring:-enable}-catch_segvs" >&5 |
eb4efbdc VZ |
4594 | no_cache=0 |
4595 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4596 | if test "${enable_catch_segvs+set}" = set; then | |
4597 | enableval="$enable_catch_segvs" | |
a0b9e27f | 4598 | |
eb4efbdc VZ |
4599 | if test "$enableval" = yes; then |
4600 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4601 | else | |
4602 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4603 | fi | |
a0b9e27f | 4604 | |
eb4efbdc | 4605 | else |
a0b9e27f | 4606 | |
eb4efbdc VZ |
4607 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4608 | if test "x$LINE" != x ; then | |
4609 | eval "DEFAULT_$LINE" | |
4610 | else | |
4611 | no_cache=1 | |
4612 | fi | |
4613 | ||
4614 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
a0b9e27f MB |
4615 | |
4616 | fi | |
eb4efbdc VZ |
4617 | |
4618 | ||
4619 | eval "$ac_cv_use_catch_segvs" | |
4620 | if test "$no_cache" != 1; then | |
4621 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4622 | fi | |
4623 | ||
4624 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
a0b9e27f | 4625 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4626 | else |
a0b9e27f | 4627 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4628 | fi |
a0b9e27f | 4629 | |
eb4efbdc | 4630 | |
5005acfe VZ |
4631 | enablestring= |
4632 | echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6 | |
dfa2a1d9 | 4633 | echo "configure:4634: checking for --${enablestring:-enable}-snglinst" >&5 |
4f3c5f06 VZ |
4634 | no_cache=0 |
4635 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4636 | if test "${enable_snglinst+set}" = set; then | |
4637 | enableval="$enable_snglinst" | |
a0b9e27f | 4638 | |
4f3c5f06 VZ |
4639 | if test "$enableval" = yes; then |
4640 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4641 | else | |
4642 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4643 | fi | |
a0b9e27f | 4644 | |
4f3c5f06 | 4645 | else |
a0b9e27f | 4646 | |
4f3c5f06 VZ |
4647 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4648 | if test "x$LINE" != x ; then | |
4649 | eval "DEFAULT_$LINE" | |
4650 | else | |
4651 | no_cache=1 | |
4652 | fi | |
4653 | ||
4654 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
a0b9e27f MB |
4655 | |
4656 | fi | |
4f3c5f06 VZ |
4657 | |
4658 | ||
4659 | eval "$ac_cv_use_snglinst" | |
4660 | if test "$no_cache" != 1; then | |
4661 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4662 | fi | |
4663 | ||
4664 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
a0b9e27f | 4665 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4666 | else |
a0b9e27f | 4667 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4668 | fi |
a0b9e27f | 4669 | |
52127426 | 4670 | |
8284b0c5 | 4671 | |
5005acfe VZ |
4672 | enablestring= |
4673 | echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6 | |
dfa2a1d9 | 4674 | echo "configure:4675: checking for --${enablestring:-enable}-mimetype" >&5 |
1e6feb95 VZ |
4675 | no_cache=0 |
4676 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4677 | if test "${enable_mimetype+set}" = set; then | |
4678 | enableval="$enable_mimetype" | |
a0b9e27f | 4679 | |
1e6feb95 VZ |
4680 | if test "$enableval" = yes; then |
4681 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4682 | else | |
4683 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4684 | fi | |
a0b9e27f | 4685 | |
1e6feb95 | 4686 | else |
a0b9e27f | 4687 | |
1e6feb95 VZ |
4688 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
4689 | if test "x$LINE" != x ; then | |
4690 | eval "DEFAULT_$LINE" | |
4691 | else | |
4692 | no_cache=1 | |
4693 | fi | |
4694 | ||
4695 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
a0b9e27f MB |
4696 | |
4697 | fi | |
1e6feb95 VZ |
4698 | |
4699 | ||
4700 | eval "$ac_cv_use_mimetype" | |
4701 | if test "$no_cache" != 1; then | |
4702 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4703 | fi | |
4704 | ||
4705 | if test "$wxUSE_MIMETYPE" = yes; then | |
a0b9e27f | 4706 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4707 | else |
a0b9e27f | 4708 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4709 | fi |
a0b9e27f | 4710 | |
1e6feb95 | 4711 | |
5005acfe VZ |
4712 | enablestring= |
4713 | echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6 | |
dfa2a1d9 | 4714 | echo "configure:4715: checking for --${enablestring:-enable}-system_options" >&5 |
3e44f09d VZ |
4715 | no_cache=0 |
4716 | # Check whether --enable-system_options or --disable-system_options was given. | |
4717 | if test "${enable_system_options+set}" = set; then | |
4718 | enableval="$enable_system_options" | |
a0b9e27f | 4719 | |
3e44f09d VZ |
4720 | if test "$enableval" = yes; then |
4721 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4722 | else | |
4723 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4724 | fi | |
a0b9e27f | 4725 | |
3e44f09d | 4726 | else |
a0b9e27f | 4727 | |
3e44f09d VZ |
4728 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
4729 | if test "x$LINE" != x ; then | |
4730 | eval "DEFAULT_$LINE" | |
4731 | else | |
4732 | no_cache=1 | |
4733 | fi | |
4734 | ||
4735 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
a0b9e27f MB |
4736 | |
4737 | fi | |
3e44f09d VZ |
4738 | |
4739 | ||
4740 | eval "$ac_cv_use_system_options" | |
4741 | if test "$no_cache" != 1; then | |
4742 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4743 | fi | |
4744 | ||
4745 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
a0b9e27f | 4746 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 4747 | else |
a0b9e27f | 4748 | echo "$ac_t""no" 1>&6 |
3e44f09d | 4749 | fi |
a0b9e27f | 4750 | |
8284b0c5 | 4751 | |
52127426 | 4752 | |
5005acfe VZ |
4753 | enablestring= |
4754 | echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6 | |
dfa2a1d9 | 4755 | echo "configure:4756: checking for --${enablestring:-enable}-url" >&5 |
4cdb0ab0 VS |
4756 | no_cache=0 |
4757 | # Check whether --enable-url or --disable-url was given. | |
4758 | if test "${enable_url+set}" = set; then | |
4759 | enableval="$enable_url" | |
a0b9e27f | 4760 | |
4cdb0ab0 VS |
4761 | if test "$enableval" = yes; then |
4762 | ac_cv_use_url='wxUSE_URL=yes' | |
4763 | else | |
4764 | ac_cv_use_url='wxUSE_URL=no' | |
4765 | fi | |
a0b9e27f | 4766 | |
4cdb0ab0 | 4767 | else |
a0b9e27f | 4768 | |
4cdb0ab0 VS |
4769 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
4770 | if test "x$LINE" != x ; then | |
4771 | eval "DEFAULT_$LINE" | |
4772 | else | |
4773 | no_cache=1 | |
4774 | fi | |
4775 | ||
4776 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
a0b9e27f MB |
4777 | |
4778 | fi | |
4cdb0ab0 VS |
4779 | |
4780 | ||
4781 | eval "$ac_cv_use_url" | |
4782 | if test "$no_cache" != 1; then | |
4783 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4784 | fi | |
4785 | ||
4786 | if test "$wxUSE_URL" = yes; then | |
a0b9e27f | 4787 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4788 | else |
a0b9e27f | 4789 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4790 | fi |
a0b9e27f | 4791 | |
4cdb0ab0 | 4792 | |
5005acfe VZ |
4793 | enablestring= |
4794 | echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6 | |
dfa2a1d9 | 4795 | echo "configure:4796: checking for --${enablestring:-enable}-protocol" >&5 |
4cdb0ab0 VS |
4796 | no_cache=0 |
4797 | # Check whether --enable-protocol or --disable-protocol was given. | |
4798 | if test "${enable_protocol+set}" = set; then | |
4799 | enableval="$enable_protocol" | |
a0b9e27f | 4800 | |
4cdb0ab0 VS |
4801 | if test "$enableval" = yes; then |
4802 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4803 | else | |
4804 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4805 | fi | |
a0b9e27f | 4806 | |
4cdb0ab0 | 4807 | else |
a0b9e27f | 4808 | |
4cdb0ab0 VS |
4809 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4810 | if test "x$LINE" != x ; then | |
4811 | eval "DEFAULT_$LINE" | |
4812 | else | |
4813 | no_cache=1 | |
4814 | fi | |
4815 | ||
4816 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
4817 | |
4818 | fi | |
4cdb0ab0 VS |
4819 | |
4820 | ||
4821 | eval "$ac_cv_use_protocol" | |
4822 | if test "$no_cache" != 1; then | |
4823 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4824 | fi | |
4825 | ||
4826 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 4827 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4828 | else |
a0b9e27f | 4829 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4830 | fi |
a0b9e27f | 4831 | |
4cdb0ab0 | 4832 | |
5005acfe VZ |
4833 | enablestring= |
4834 | echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6 | |
dfa2a1d9 | 4835 | echo "configure:4836: checking for --${enablestring:-enable}-protocol_http" >&5 |
4cdb0ab0 VS |
4836 | no_cache=0 |
4837 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4838 | if test "${enable_protocol_http+set}" = set; then | |
4839 | enableval="$enable_protocol_http" | |
a0b9e27f | 4840 | |
4cdb0ab0 VS |
4841 | if test "$enableval" = yes; then |
4842 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4843 | else | |
4844 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4845 | fi | |
a0b9e27f | 4846 | |
4cdb0ab0 | 4847 | else |
a0b9e27f | 4848 | |
4cdb0ab0 VS |
4849 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4850 | if test "x$LINE" != x ; then | |
4851 | eval "DEFAULT_$LINE" | |
4852 | else | |
4853 | no_cache=1 | |
4854 | fi | |
4855 | ||
4856 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
4857 | |
4858 | fi | |
4cdb0ab0 VS |
4859 | |
4860 | ||
4861 | eval "$ac_cv_use_protocol_http" | |
4862 | if test "$no_cache" != 1; then | |
4863 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4864 | fi | |
4865 | ||
4866 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 4867 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4868 | else |
a0b9e27f | 4869 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4870 | fi |
a0b9e27f | 4871 | |
4cdb0ab0 | 4872 | |
5005acfe VZ |
4873 | enablestring= |
4874 | echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6 | |
dfa2a1d9 | 4875 | echo "configure:4876: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
4cdb0ab0 VS |
4876 | no_cache=0 |
4877 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4878 | if test "${enable_protocol_ftp+set}" = set; then | |
4879 | enableval="$enable_protocol_ftp" | |
a0b9e27f | 4880 | |
4cdb0ab0 VS |
4881 | if test "$enableval" = yes; then |
4882 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4883 | else | |
4884 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4885 | fi | |
a0b9e27f | 4886 | |
4cdb0ab0 | 4887 | else |
a0b9e27f | 4888 | |
4cdb0ab0 VS |
4889 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4890 | if test "x$LINE" != x ; then | |
4891 | eval "DEFAULT_$LINE" | |
4892 | else | |
4893 | no_cache=1 | |
4894 | fi | |
4895 | ||
4896 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
4897 | |
4898 | fi | |
4cdb0ab0 VS |
4899 | |
4900 | ||
4901 | eval "$ac_cv_use_protocol_ftp" | |
4902 | if test "$no_cache" != 1; then | |
4903 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4904 | fi | |
4905 | ||
4906 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 4907 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4908 | else |
a0b9e27f | 4909 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4910 | fi |
a0b9e27f | 4911 | |
4cdb0ab0 | 4912 | |
5005acfe VZ |
4913 | enablestring= |
4914 | echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6 | |
dfa2a1d9 | 4915 | echo "configure:4916: checking for --${enablestring:-enable}-protocol_file" >&5 |
4cdb0ab0 VS |
4916 | no_cache=0 |
4917 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4918 | if test "${enable_protocol_file+set}" = set; then | |
4919 | enableval="$enable_protocol_file" | |
a0b9e27f | 4920 | |
4cdb0ab0 VS |
4921 | if test "$enableval" = yes; then |
4922 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4923 | else | |
4924 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4925 | fi | |
a0b9e27f | 4926 | |
4cdb0ab0 | 4927 | else |
a0b9e27f | 4928 | |
4cdb0ab0 VS |
4929 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4930 | if test "x$LINE" != x ; then | |
4931 | eval "DEFAULT_$LINE" | |
4932 | else | |
4933 | no_cache=1 | |
4934 | fi | |
4935 | ||
4936 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
4937 | |
4938 | fi | |
4cdb0ab0 VS |
4939 | |
4940 | ||
4941 | eval "$ac_cv_use_protocol_file" | |
4942 | if test "$no_cache" != 1; then | |
4943 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4944 | fi | |
4945 | ||
4946 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 4947 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4948 | else |
a0b9e27f | 4949 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4950 | fi |
a0b9e27f | 4951 | |
52127426 | 4952 | |
8284b0c5 MB |
4953 | |
4954 | ||
4955 | ||
5005acfe VZ |
4956 | enablestring= |
4957 | echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6 | |
dfa2a1d9 | 4958 | echo "configure:4959: checking for --${enablestring:-enable}-threads" >&5 |
10f2d63a VZ |
4959 | no_cache=0 |
4960 | # Check whether --enable-threads or --disable-threads was given. | |
4961 | if test "${enable_threads+set}" = set; then | |
4962 | enableval="$enable_threads" | |
a0b9e27f | 4963 | |
10f2d63a VZ |
4964 | if test "$enableval" = yes; then |
4965 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4966 | else | |
4967 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4968 | fi | |
a0b9e27f | 4969 | |
10f2d63a | 4970 | else |
a0b9e27f | 4971 | |
10f2d63a VZ |
4972 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4973 | if test "x$LINE" != x ; then | |
4974 | eval "DEFAULT_$LINE" | |
4975 | else | |
4976 | no_cache=1 | |
4977 | fi | |
4978 | ||
4979 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
a0b9e27f MB |
4980 | |
4981 | fi | |
10f2d63a VZ |
4982 | |
4983 | ||
4984 | eval "$ac_cv_use_threads" | |
4985 | if test "$no_cache" != 1; then | |
4986 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4987 | fi | |
4988 | ||
4989 | if test "$wxUSE_THREADS" = yes; then | |
a0b9e27f | 4990 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4991 | else |
a0b9e27f | 4992 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4993 | fi |
a0b9e27f | 4994 | |
10f2d63a | 4995 | |
b12915c1 VZ |
4996 | if test "$wxUSE_GUI" = "yes"; then |
4997 | ||
8284b0c5 MB |
4998 | |
4999 | ||
5005acfe VZ |
5000 | enablestring= |
5001 | echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6 | |
dfa2a1d9 | 5002 | echo "configure:5003: checking for --${enablestring:-enable}-docview" >&5 |
10f2d63a VZ |
5003 | no_cache=0 |
5004 | # Check whether --enable-docview or --disable-docview was given. | |
5005 | if test "${enable_docview+set}" = set; then | |
5006 | enableval="$enable_docview" | |
a0b9e27f | 5007 | |
10f2d63a VZ |
5008 | if test "$enableval" = yes; then |
5009 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5010 | else | |
5011 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5012 | fi | |
a0b9e27f | 5013 | |
10f2d63a | 5014 | else |
a0b9e27f | 5015 | |
10f2d63a VZ |
5016 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5017 | if test "x$LINE" != x ; then | |
5018 | eval "DEFAULT_$LINE" | |
5019 | else | |
5020 | no_cache=1 | |
5021 | fi | |
5022 | ||
5023 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
a0b9e27f MB |
5024 | |
5025 | fi | |
10f2d63a VZ |
5026 | |
5027 | ||
5028 | eval "$ac_cv_use_docview" | |
5029 | if test "$no_cache" != 1; then | |
5030 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5031 | fi | |
5032 | ||
5033 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
a0b9e27f | 5034 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5035 | else |
a0b9e27f | 5036 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5037 | fi |
a0b9e27f | 5038 | |
10f2d63a | 5039 | |
5005acfe VZ |
5040 | enablestring= |
5041 | echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6 | |
dfa2a1d9 | 5042 | echo "configure:5043: checking for --${enablestring:-enable}-help" >&5 |
10f2d63a VZ |
5043 | no_cache=0 |
5044 | # Check whether --enable-help or --disable-help was given. | |
5045 | if test "${enable_help+set}" = set; then | |
5046 | enableval="$enable_help" | |
a0b9e27f | 5047 | |
10f2d63a VZ |
5048 | if test "$enableval" = yes; then |
5049 | ac_cv_use_help='wxUSE_HELP=yes' | |
5050 | else | |
5051 | ac_cv_use_help='wxUSE_HELP=no' | |
5052 | fi | |
a0b9e27f | 5053 | |
10f2d63a | 5054 | else |
a0b9e27f | 5055 | |
10f2d63a VZ |
5056 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5057 | if test "x$LINE" != x ; then | |
5058 | eval "DEFAULT_$LINE" | |
5059 | else | |
5060 | no_cache=1 | |
5061 | fi | |
5062 | ||
5063 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
a0b9e27f MB |
5064 | |
5065 | fi | |
10f2d63a VZ |
5066 | |
5067 | ||
5068 | eval "$ac_cv_use_help" | |
5069 | if test "$no_cache" != 1; then | |
5070 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5071 | fi | |
5072 | ||
5073 | if test "$wxUSE_HELP" = yes; then | |
a0b9e27f | 5074 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5075 | else |
a0b9e27f | 5076 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5077 | fi |
a0b9e27f | 5078 | |
10f2d63a | 5079 | |
5005acfe VZ |
5080 | enablestring= |
5081 | echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6 | |
dfa2a1d9 | 5082 | echo "configure:5083: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
29fd3c0c VS |
5083 | no_cache=0 |
5084 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5085 | if test "${enable_mshtmlhelp+set}" = set; then | |
5086 | enableval="$enable_mshtmlhelp" | |
a0b9e27f | 5087 | |
29fd3c0c VS |
5088 | if test "$enableval" = yes; then |
5089 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5090 | else | |
5091 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5092 | fi | |
a0b9e27f | 5093 | |
29fd3c0c | 5094 | else |
a0b9e27f | 5095 | |
29fd3c0c VS |
5096 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5097 | if test "x$LINE" != x ; then | |
5098 | eval "DEFAULT_$LINE" | |
5099 | else | |
5100 | no_cache=1 | |
5101 | fi | |
5102 | ||
5103 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
a0b9e27f MB |
5104 | |
5105 | fi | |
29fd3c0c VS |
5106 | |
5107 | ||
5108 | eval "$ac_cv_use_mshtmlhelp" | |
5109 | if test "$no_cache" != 1; then | |
5110 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5111 | fi | |
5112 | ||
5113 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
a0b9e27f | 5114 | echo "$ac_t""yes" 1>&6 |
29fd3c0c | 5115 | else |
a0b9e27f | 5116 | echo "$ac_t""no" 1>&6 |
29fd3c0c | 5117 | fi |
a0b9e27f | 5118 | |
29fd3c0c | 5119 | |
5005acfe VZ |
5120 | enablestring= |
5121 | echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6 | |
dfa2a1d9 | 5122 | echo "configure:5123: checking for --${enablestring:-enable}-html" >&5 |
3379ed37 VZ |
5123 | no_cache=0 |
5124 | # Check whether --enable-html or --disable-html was given. | |
5125 | if test "${enable_html+set}" = set; then | |
5126 | enableval="$enable_html" | |
a0b9e27f | 5127 | |
3379ed37 VZ |
5128 | if test "$enableval" = yes; then |
5129 | ac_cv_use_html='wxUSE_HTML=yes' | |
5130 | else | |
5131 | ac_cv_use_html='wxUSE_HTML=no' | |
5132 | fi | |
a0b9e27f | 5133 | |
3379ed37 | 5134 | else |
a0b9e27f | 5135 | |
3379ed37 VZ |
5136 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
5137 | if test "x$LINE" != x ; then | |
5138 | eval "DEFAULT_$LINE" | |
5139 | else | |
5140 | no_cache=1 | |
5141 | fi | |
5142 | ||
5143 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
a0b9e27f MB |
5144 | |
5145 | fi | |
3379ed37 VZ |
5146 | |
5147 | ||
5148 | eval "$ac_cv_use_html" | |
5149 | if test "$no_cache" != 1; then | |
5150 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5151 | fi | |
5152 | ||
5153 | if test "$wxUSE_HTML" = yes; then | |
a0b9e27f | 5154 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5155 | else |
a0b9e27f | 5156 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5157 | fi |
a0b9e27f | 5158 | |
3379ed37 | 5159 | |
5005acfe VZ |
5160 | enablestring= |
5161 | echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6 | |
dfa2a1d9 | 5162 | echo "configure:5163: checking for --${enablestring:-enable}-htmlhelp" >&5 |
3379ed37 VZ |
5163 | no_cache=0 |
5164 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5165 | if test "${enable_htmlhelp+set}" = set; then | |
5166 | enableval="$enable_htmlhelp" | |
a0b9e27f | 5167 | |
3379ed37 VZ |
5168 | if test "$enableval" = yes; then |
5169 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5170 | else | |
5171 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5172 | fi | |
a0b9e27f | 5173 | |
3379ed37 | 5174 | else |
a0b9e27f | 5175 | |
3379ed37 VZ |
5176 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5177 | if test "x$LINE" != x ; then | |
5178 | eval "DEFAULT_$LINE" | |
5179 | else | |
5180 | no_cache=1 | |
5181 | fi | |
5182 | ||
5183 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
a0b9e27f MB |
5184 | |
5185 | fi | |
3379ed37 VZ |
5186 | |
5187 | ||
5188 | eval "$ac_cv_use_htmlhelp" | |
5189 | if test "$no_cache" != 1; then | |
5190 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5191 | fi | |
5192 | ||
5193 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
a0b9e27f | 5194 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5195 | else |
a0b9e27f | 5196 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5197 | fi |
a0b9e27f | 5198 | |
3379ed37 | 5199 | |
5005acfe VZ |
5200 | enablestring= |
5201 | echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6 | |
dfa2a1d9 | 5202 | echo "configure:5203: checking for --${enablestring:-enable}-constraints" >&5 |
10f2d63a VZ |
5203 | no_cache=0 |
5204 | # Check whether --enable-constraints or --disable-constraints was given. | |
5205 | if test "${enable_constraints+set}" = set; then | |
5206 | enableval="$enable_constraints" | |
a0b9e27f | 5207 | |
10f2d63a VZ |
5208 | if test "$enableval" = yes; then |
5209 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5210 | else | |
5211 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5212 | fi | |
a0b9e27f | 5213 | |
10f2d63a | 5214 | else |
a0b9e27f | 5215 | |
10f2d63a VZ |
5216 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5217 | if test "x$LINE" != x ; then | |
5218 | eval "DEFAULT_$LINE" | |
5219 | else | |
5220 | no_cache=1 | |
5221 | fi | |
5222 | ||
5223 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
a0b9e27f MB |
5224 | |
5225 | fi | |
10f2d63a VZ |
5226 | |
5227 | ||
5228 | eval "$ac_cv_use_constraints" | |
5229 | if test "$no_cache" != 1; then | |
5230 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5231 | fi | |
5232 | ||
5233 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
a0b9e27f | 5234 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5235 | else |
a0b9e27f | 5236 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5237 | fi |
a0b9e27f | 5238 | |
10f2d63a | 5239 | |
5005acfe VZ |
5240 | enablestring= |
5241 | echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6 | |
dfa2a1d9 | 5242 | echo "configure:5243: checking for --${enablestring:-enable}-printarch" >&5 |
10f2d63a VZ |
5243 | no_cache=0 |
5244 | # Check whether --enable-printarch or --disable-printarch was given. | |
5245 | if test "${enable_printarch+set}" = set; then | |
5246 | enableval="$enable_printarch" | |
a0b9e27f | 5247 | |
10f2d63a VZ |
5248 | if test "$enableval" = yes; then |
5249 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5250 | else | |
5251 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5252 | fi | |
a0b9e27f | 5253 | |
10f2d63a | 5254 | else |
a0b9e27f | 5255 | |
10f2d63a VZ |
5256 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5257 | if test "x$LINE" != x ; then | |
5258 | eval "DEFAULT_$LINE" | |
5259 | else | |
5260 | no_cache=1 | |
5261 | fi | |
5262 | ||
5263 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
a0b9e27f MB |
5264 | |
5265 | fi | |
10f2d63a VZ |
5266 | |
5267 | ||
5268 | eval "$ac_cv_use_printarch" | |
5269 | if test "$no_cache" != 1; then | |
5270 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5271 | fi | |
5272 | ||
5273 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
a0b9e27f | 5274 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5275 | else |
a0b9e27f | 5276 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5277 | fi |
a0b9e27f | 5278 | |
10f2d63a | 5279 | |
5005acfe VZ |
5280 | enablestring= |
5281 | echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6 | |
dfa2a1d9 | 5282 | echo "configure:5283: checking for --${enablestring:-enable}-mdi" >&5 |
10f2d63a VZ |
5283 | no_cache=0 |
5284 | # Check whether --enable-mdi or --disable-mdi was given. | |
5285 | if test "${enable_mdi+set}" = set; then | |
5286 | enableval="$enable_mdi" | |
a0b9e27f | 5287 | |
10f2d63a VZ |
5288 | if test "$enableval" = yes; then |
5289 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5290 | else | |
5291 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5292 | fi | |
a0b9e27f | 5293 | |
10f2d63a | 5294 | else |
a0b9e27f | 5295 | |
10f2d63a VZ |
5296 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5297 | if test "x$LINE" != x ; then | |
5298 | eval "DEFAULT_$LINE" | |
5299 | else | |
5300 | no_cache=1 | |
5301 | fi | |
5302 | ||
5303 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
a0b9e27f MB |
5304 | |
5305 | fi | |
10f2d63a VZ |
5306 | |
5307 | ||
5308 | eval "$ac_cv_use_mdi" | |
5309 | if test "$no_cache" != 1; then | |
5310 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5311 | fi | |
5312 | ||
5313 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
a0b9e27f | 5314 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5315 | else |
a0b9e27f | 5316 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5317 | fi |
a0b9e27f | 5318 | |
698dcdb6 | 5319 | |
5005acfe VZ |
5320 | enablestring= |
5321 | echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6 | |
dfa2a1d9 | 5322 | echo "configure:5323: checking for --${enablestring:-enable}-loggui" >&5 |
1e6feb95 VZ |
5323 | no_cache=0 |
5324 | # Check whether --enable-loggui or --disable-loggui was given. | |
5325 | if test "${enable_loggui+set}" = set; then | |
5326 | enableval="$enable_loggui" | |
a0b9e27f | 5327 | |
1e6feb95 VZ |
5328 | if test "$enableval" = yes; then |
5329 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5330 | else | |
5331 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5332 | fi | |
a0b9e27f | 5333 | |
1e6feb95 | 5334 | else |
a0b9e27f | 5335 | |
1e6feb95 VZ |
5336 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
5337 | if test "x$LINE" != x ; then | |
5338 | eval "DEFAULT_$LINE" | |
5339 | else | |
5340 | no_cache=1 | |
5341 | fi | |
5342 | ||
5343 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
a0b9e27f MB |
5344 | |
5345 | fi | |
1e6feb95 VZ |
5346 | |
5347 | ||
5348 | eval "$ac_cv_use_loggui" | |
5349 | if test "$no_cache" != 1; then | |
5350 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5351 | fi | |
5352 | ||
5353 | if test "$wxUSE_LOGGUI" = yes; then | |
a0b9e27f | 5354 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5355 | else |
a0b9e27f | 5356 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5357 | fi |
a0b9e27f | 5358 | |
1e6feb95 | 5359 | |
5005acfe VZ |
5360 | enablestring= |
5361 | echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6 | |
dfa2a1d9 | 5362 | echo "configure:5363: checking for --${enablestring:-enable}-logwin" >&5 |
1e6feb95 VZ |
5363 | no_cache=0 |
5364 | # Check whether --enable-logwin or --disable-logwin was given. | |
5365 | if test "${enable_logwin+set}" = set; then | |
5366 | enableval="$enable_logwin" | |
a0b9e27f | 5367 | |
1e6feb95 VZ |
5368 | if test "$enableval" = yes; then |
5369 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5370 | else | |
5371 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5372 | fi | |
a0b9e27f | 5373 | |
1e6feb95 | 5374 | else |
a0b9e27f | 5375 | |
1e6feb95 VZ |
5376 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
5377 | if test "x$LINE" != x ; then | |
5378 | eval "DEFAULT_$LINE" | |
5379 | else | |
5380 | no_cache=1 | |
5381 | fi | |
5382 | ||
5383 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
a0b9e27f MB |
5384 | |
5385 | fi | |
1e6feb95 VZ |
5386 | |
5387 | ||
5388 | eval "$ac_cv_use_logwin" | |
5389 | if test "$no_cache" != 1; then | |
5390 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5391 | fi | |
5392 | ||
5393 | if test "$wxUSE_LOGWINDOW" = yes; then | |
a0b9e27f | 5394 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5395 | else |
a0b9e27f | 5396 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5397 | fi |
a0b9e27f | 5398 | |
1e6feb95 | 5399 | |
5005acfe VZ |
5400 | enablestring= |
5401 | echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6 | |
dfa2a1d9 | 5402 | echo "configure:5403: checking for --${enablestring:-enable}-logdialog" >&5 |
69d27ff7 MB |
5403 | no_cache=0 |
5404 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5405 | if test "${enable_logdialog+set}" = set; then | |
5406 | enableval="$enable_logdialog" | |
a0b9e27f | 5407 | |
69d27ff7 MB |
5408 | if test "$enableval" = yes; then |
5409 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5410 | else | |
5411 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5412 | fi | |
a0b9e27f | 5413 | |
69d27ff7 | 5414 | else |
a0b9e27f | 5415 | |
69d27ff7 MB |
5416 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
5417 | if test "x$LINE" != x ; then | |
5418 | eval "DEFAULT_$LINE" | |
5419 | else | |
5420 | no_cache=1 | |
5421 | fi | |
5422 | ||
5423 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
a0b9e27f MB |
5424 | |
5425 | fi | |
69d27ff7 MB |
5426 | |
5427 | ||
5428 | eval "$ac_cv_use_logdialog" | |
5429 | if test "$no_cache" != 1; then | |
5430 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5431 | fi | |
5432 | ||
5433 | if test "$wxUSE_LOGDIALOG" = yes; then | |
a0b9e27f | 5434 | echo "$ac_t""yes" 1>&6 |
69d27ff7 | 5435 | else |
a0b9e27f | 5436 | echo "$ac_t""no" 1>&6 |
69d27ff7 | 5437 | fi |
a0b9e27f | 5438 | |
8284b0c5 | 5439 | |
52127426 | 5440 | |
5005acfe VZ |
5441 | enablestring= |
5442 | echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6 | |
dfa2a1d9 | 5443 | echo "configure:5444: checking for --${enablestring:-enable}-postscript" >&5 |
10f2d63a VZ |
5444 | no_cache=0 |
5445 | # Check whether --enable-postscript or --disable-postscript was given. | |
5446 | if test "${enable_postscript+set}" = set; then | |
5447 | enableval="$enable_postscript" | |
a0b9e27f | 5448 | |
10f2d63a VZ |
5449 | if test "$enableval" = yes; then |
5450 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5451 | else | |
5452 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5453 | fi | |
a0b9e27f | 5454 | |
10f2d63a | 5455 | else |
a0b9e27f | 5456 | |
10f2d63a VZ |
5457 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5458 | if test "x$LINE" != x ; then | |
5459 | eval "DEFAULT_$LINE" | |
5460 | else | |
5461 | no_cache=1 | |
5462 | fi | |
5463 | ||
5464 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
a0b9e27f MB |
5465 | |
5466 | fi | |
10f2d63a VZ |
5467 | |
5468 | ||
5469 | eval "$ac_cv_use_postscript" | |
5470 | if test "$no_cache" != 1; then | |
5471 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5472 | fi | |
5473 | ||
5474 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
a0b9e27f | 5475 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5476 | else |
a0b9e27f | 5477 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5478 | fi |
a0b9e27f | 5479 | |
8284b0c5 MB |
5480 | |
5481 | ||
52127426 | 5482 | |
8284b0c5 | 5483 | |
5005acfe VZ |
5484 | enablestring= |
5485 | echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6 | |
dfa2a1d9 | 5486 | echo "configure:5487: checking for --${enablestring:-enable}-resources" >&5 |
10f2d63a VZ |
5487 | no_cache=0 |
5488 | # Check whether --enable-resources or --disable-resources was given. | |
5489 | if test "${enable_resources+set}" = set; then | |
5490 | enableval="$enable_resources" | |
a0b9e27f | 5491 | |
10f2d63a VZ |
5492 | if test "$enableval" = yes; then |
5493 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5494 | else | |
5495 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5496 | fi | |
a0b9e27f | 5497 | |
10f2d63a | 5498 | else |
a0b9e27f | 5499 | |
10f2d63a VZ |
5500 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5501 | if test "x$LINE" != x ; then | |
5502 | eval "DEFAULT_$LINE" | |
5503 | else | |
5504 | no_cache=1 | |
5505 | fi | |
5506 | ||
5507 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
a0b9e27f MB |
5508 | |
5509 | fi | |
10f2d63a VZ |
5510 | |
5511 | ||
5512 | eval "$ac_cv_use_resources" | |
5513 | if test "$no_cache" != 1; then | |
5514 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5515 | fi | |
5516 | ||
5517 | if test "$wxUSE_RESOURCES" = yes; then | |
a0b9e27f | 5518 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5519 | else |
a0b9e27f | 5520 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5521 | fi |
a0b9e27f | 5522 | |
8284b0c5 | 5523 | |
52127426 | 5524 | |
5005acfe VZ |
5525 | enablestring= |
5526 | echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6 | |
dfa2a1d9 | 5527 | echo "configure:5528: checking for --${enablestring:-enable}-xresources" >&5 |
10f2d63a VZ |
5528 | no_cache=0 |
5529 | # Check whether --enable-xresources or --disable-xresources was given. | |
5530 | if test "${enable_xresources+set}" = set; then | |
5531 | enableval="$enable_xresources" | |
a0b9e27f | 5532 | |
10f2d63a VZ |
5533 | if test "$enableval" = yes; then |
5534 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5535 | else | |
5536 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5537 | fi | |
a0b9e27f | 5538 | |
10f2d63a | 5539 | else |
a0b9e27f | 5540 | |
10f2d63a VZ |
5541 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5542 | if test "x$LINE" != x ; then | |
5543 | eval "DEFAULT_$LINE" | |
5544 | else | |
5545 | no_cache=1 | |
5546 | fi | |
5547 | ||
5548 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
a0b9e27f MB |
5549 | |
5550 | fi | |
10f2d63a VZ |
5551 | |
5552 | ||
5553 | eval "$ac_cv_use_xresources" | |
5554 | if test "$no_cache" != 1; then | |
5555 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5556 | fi | |
5557 | ||
5558 | if test "$wxUSE_X_RESOURCES" = yes; then | |
a0b9e27f | 5559 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5560 | else |
a0b9e27f | 5561 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5562 | fi |
a0b9e27f | 5563 | |
8284b0c5 MB |
5564 | |
5565 | ||
52127426 | 5566 | |
5005acfe VZ |
5567 | enablestring= |
5568 | echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6 | |
dfa2a1d9 | 5569 | echo "configure:5570: checking for --${enablestring:-enable}-clipboard" >&5 |
10f2d63a VZ |
5570 | no_cache=0 |
5571 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5572 | if test "${enable_clipboard+set}" = set; then | |
5573 | enableval="$enable_clipboard" | |
a0b9e27f | 5574 | |
10f2d63a VZ |
5575 | if test "$enableval" = yes; then |
5576 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5577 | else | |
5578 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5579 | fi | |
a0b9e27f | 5580 | |
10f2d63a | 5581 | else |
a0b9e27f | 5582 | |
10f2d63a VZ |
5583 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5584 | if test "x$LINE" != x ; then | |
5585 | eval "DEFAULT_$LINE" | |
5586 | else | |
5587 | no_cache=1 | |
5588 | fi | |
5589 | ||
5590 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
a0b9e27f MB |
5591 | |
5592 | fi | |
10f2d63a VZ |
5593 | |
5594 | ||
5595 | eval "$ac_cv_use_clipboard" | |
5596 | if test "$no_cache" != 1; then | |
5597 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5598 | fi | |
5599 | ||
5600 | if test "$wxUSE_CLIPBOARD" = yes; then | |
a0b9e27f | 5601 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5602 | else |
a0b9e27f | 5603 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5604 | fi |
a0b9e27f | 5605 | |
10f2d63a | 5606 | |
5005acfe VZ |
5607 | enablestring= |
5608 | echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6 | |
dfa2a1d9 | 5609 | echo "configure:5610: checking for --${enablestring:-enable}-dnd" >&5 |
10f2d63a VZ |
5610 | no_cache=0 |
5611 | # Check whether --enable-dnd or --disable-dnd was given. | |
5612 | if test "${enable_dnd+set}" = set; then | |
5613 | enableval="$enable_dnd" | |
a0b9e27f | 5614 | |
10f2d63a VZ |
5615 | if test "$enableval" = yes; then |
5616 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5617 | else | |
5618 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5619 | fi | |
a0b9e27f | 5620 | |
10f2d63a | 5621 | else |
a0b9e27f | 5622 | |
10f2d63a VZ |
5623 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5624 | if test "x$LINE" != x ; then | |
5625 | eval "DEFAULT_$LINE" | |
5626 | else | |
5627 | no_cache=1 | |
5628 | fi | |
5629 | ||
5630 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
a0b9e27f MB |
5631 | |
5632 | fi | |
10f2d63a VZ |
5633 | |
5634 | ||
5635 | eval "$ac_cv_use_dnd" | |
5636 | if test "$no_cache" != 1; then | |
5637 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5638 | fi | |
5639 | ||
5640 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
a0b9e27f | 5641 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5642 | else |
a0b9e27f | 5643 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5644 | fi |
a0b9e27f | 5645 | |
10f2d63a | 5646 | |
5005acfe VZ |
5647 | enablestring= |
5648 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
dfa2a1d9 | 5649 | echo "configure:5650: checking for --${enablestring:-enable}-metafile" >&5 |
b64f0a5f RL |
5650 | no_cache=0 |
5651 | # Check whether --enable-metafile or --disable-metafile was given. | |
5652 | if test "${enable_metafile+set}" = set; then | |
5653 | enableval="$enable_metafile" | |
a0b9e27f | 5654 | |
b64f0a5f RL |
5655 | if test "$enableval" = yes; then |
5656 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5657 | else | |
5658 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5659 | fi | |
a0b9e27f | 5660 | |
b64f0a5f | 5661 | else |
a0b9e27f | 5662 | |
b64f0a5f RL |
5663 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5664 | if test "x$LINE" != x ; then | |
5665 | eval "DEFAULT_$LINE" | |
5666 | else | |
5667 | no_cache=1 | |
5668 | fi | |
5669 | ||
5670 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
5671 | |
5672 | fi | |
b64f0a5f RL |
5673 | |
5674 | ||
5675 | eval "$ac_cv_use_metafile" | |
5676 | if test "$no_cache" != 1; then | |
5677 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5678 | fi | |
5679 | ||
5680 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 5681 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5682 | else |
a0b9e27f | 5683 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5684 | fi |
a0b9e27f | 5685 | |
52127426 | 5686 | |
8284b0c5 | 5687 | |
52127426 | 5688 | |
8284b0c5 | 5689 | |
5005acfe VZ |
5690 | enablestring= |
5691 | echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6 | |
dfa2a1d9 | 5692 | echo "configure:5693: checking for --${enablestring:-enable}-controls" >&5 |
10f2d63a VZ |
5693 | no_cache=0 |
5694 | # Check whether --enable-controls or --disable-controls was given. | |
5695 | if test "${enable_controls+set}" = set; then | |
5696 | enableval="$enable_controls" | |
a0b9e27f | 5697 | |
10f2d63a VZ |
5698 | if test "$enableval" = yes; then |
5699 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5700 | else | |
5701 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5702 | fi | |
a0b9e27f | 5703 | |
10f2d63a | 5704 | else |
a0b9e27f | 5705 | |
10f2d63a VZ |
5706 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5707 | if test "x$LINE" != x ; then | |
5708 | eval "DEFAULT_$LINE" | |
5709 | else | |
5710 | no_cache=1 | |
5711 | fi | |
5712 | ||
5713 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
a0b9e27f MB |
5714 | |
5715 | fi | |
10f2d63a VZ |
5716 | |
5717 | ||
5718 | eval "$ac_cv_use_controls" | |
5719 | if test "$no_cache" != 1; then | |
5720 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5721 | fi | |
5722 | ||
5723 | if test "$wxUSE_CONTROLS" = yes; then | |
a0b9e27f | 5724 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5725 | else |
a0b9e27f | 5726 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5727 | fi |
a0b9e27f | 5728 | |
10f2d63a VZ |
5729 | |
5730 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5731 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5732 | DEFAULT_wxUSE_BMPBUTTON=yes |
5733 | DEFAULT_wxUSE_BUTTON=yes | |
5734 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5735 | DEFAULT_wxUSE_CARET=yes |
5736 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5737 | DEFAULT_wxUSE_CHECKBOX=yes |
5738 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5739 | DEFAULT_wxUSE_CHOICE=yes | |
5740 | DEFAULT_wxUSE_GAUGE=yes | |
5741 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a VZ |
5742 | DEFAULT_wxUSE_IMAGLIST=yes |
5743 | DEFAULT_wxUSE_LISTBOX=yes | |
5744 | DEFAULT_wxUSE_LISTCTRL=yes | |
5745 | DEFAULT_wxUSE_NOTEBOOK=yes | |
5746 | DEFAULT_wxUSE_RADIOBOX=yes | |
5747 | DEFAULT_wxUSE_RADIOBTN=yes | |
5748 | DEFAULT_wxUSE_SASH=yes | |
5749 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5750 | DEFAULT_wxUSE_SLIDER=yes | |
5751 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5752 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5753 | DEFAULT_wxUSE_SPLITTER=yes |
5754 | DEFAULT_wxUSE_STATBMP=yes | |
5755 | DEFAULT_wxUSE_STATBOX=yes | |
5756 | DEFAULT_wxUSE_STATLINE=yes | |
5757 | DEFAULT_wxUSE_STATUSBAR=yes | |
5758 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5759 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5760 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5761 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5762 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5763 | DEFAULT_wxUSE_TOOLTIPS=yes |
5764 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5765 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5766 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5767 | elif test "$wxUSE_CONTROLS" = "no"; then |
5768 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5769 | DEFAULT_wxUSE_BMPBUTTON=no |
5770 | DEFAULT_wxUSE_BUTTON=no | |
5771 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5772 | DEFAULT_wxUSE_CARET=no |
5773 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5774 | DEFAULT_wxUSE_CHECKBOX=no |
5775 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5776 | DEFAULT_wxUSE_CHOICE=no | |
5777 | DEFAULT_wxUSE_GAUGE=no | |
5778 | DEFAULT_wxUSE_GRID=no | |
10f2d63a VZ |
5779 | DEFAULT_wxUSE_IMAGLIST=no |
5780 | DEFAULT_wxUSE_LISTBOX=no | |
5781 | DEFAULT_wxUSE_LISTCTRL=no | |
5782 | DEFAULT_wxUSE_NOTEBOOK=no | |
5783 | DEFAULT_wxUSE_RADIOBOX=no | |
5784 | DEFAULT_wxUSE_RADIOBTN=no | |
5785 | DEFAULT_wxUSE_SASH=no | |
5786 | DEFAULT_wxUSE_SCROLLBAR=no | |
5787 | DEFAULT_wxUSE_SLIDER=no | |
5788 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5789 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5790 | DEFAULT_wxUSE_SPLITTER=no |
5791 | DEFAULT_wxUSE_STATBMP=no | |
5792 | DEFAULT_wxUSE_STATBOX=no | |
5793 | DEFAULT_wxUSE_STATLINE=no | |
5794 | DEFAULT_wxUSE_STATUSBAR=no | |
5795 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5796 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5797 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5798 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5799 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5800 | DEFAULT_wxUSE_TOOLTIPS=no |
5801 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5802 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5803 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5804 | fi |
5805 | ||
ac0c4cc3 DE |
5806 | ## FIXME: This is a blatant hack |
5807 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
5808 | wxUSE_PRINTING_ARCHITECTURE=no | |
5809 | wxUSE_HELP=no | |
5810 | wxUSE_CLIPBOARD=no | |
5811 | wxUSE_DRAG_AND_DROP=no | |
5812 | wxUSE_DATAOBJ=no | |
5813 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
5814 | DEFAULT_wxUSE_TEXTDLG=no | |
5815 | DEFAULT_wxUSE_GAUGE=no | |
5816 | DEFAULT_wxUSE_SCROLLBAR=no | |
5817 | DEFAULT_wxUSE_SLIDER=no | |
5818 | DEFAULT_wxUSE_COMBOBOX=no | |
5819 | DEFAULT_wxUSE_CALCTRL=no | |
5820 | DEFAULT_wxUSE_SPINBTN=no | |
5821 | DEFAULT_wxUSE_SPINCTRL=no | |
5822 | DEFAULT_wxUSE_TOOLTIPS=no | |
ac0c4cc3 | 5823 | DEFAULT_wxUSE_COLOURDLG=no |
ac0c4cc3 DE |
5824 | DEFAULT_wxUSE_DRAGIMAGE=no |
5825 | DEFAULT_wxUSE_FINDREPLDLG=no | |
5826 | DEFAULT_wxUSE_FONTDLG=no | |
5827 | DEFAULT_wxUSE_GRID=no | |
ac0c4cc3 DE |
5828 | DEFAULT_wxUSE_NUMBERDLG=no |
5829 | DEFAULT_wxUSE_PROGRESSDLG=no | |
ac0c4cc3 DE |
5830 | DEFAULT_wxUSE_SASH=no |
5831 | DEFAULT_wxUSE_SPLITTER=no | |
5832 | DEFAULT_wxUSE_WIZARDDLG=no | |
5833 | DEFAULT_wxUSE_SPLITTER=no | |
5834 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
ac0c4cc3 DE |
5835 | fi |
5836 | ||
8284b0c5 | 5837 | |
5005acfe VZ |
5838 | enablestring= |
5839 | echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6 | |
de6dab5f | 5840 | echo "configure:5841: checking for --${enablestring:-enable}-accel" >&5 |
10f2d63a VZ |
5841 | no_cache=0 |
5842 | # Check whether --enable-accel or --disable-accel was given. | |
5843 | if test "${enable_accel+set}" = set; then | |
5844 | enableval="$enable_accel" | |
a0b9e27f | 5845 | |
10f2d63a VZ |
5846 | if test "$enableval" = yes; then |
5847 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5848 | else | |
5849 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5850 | fi | |
a0b9e27f | 5851 | |
10f2d63a | 5852 | else |
a0b9e27f | 5853 | |
10f2d63a VZ |
5854 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5855 | if test "x$LINE" != x ; then | |
5856 | eval "DEFAULT_$LINE" | |
5857 | else | |
5858 | no_cache=1 | |
5859 | fi | |
5860 | ||
5861 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
a0b9e27f MB |
5862 | |
5863 | fi | |
10f2d63a VZ |
5864 | |
5865 | ||
5866 | eval "$ac_cv_use_accel" | |
5867 | if test "$no_cache" != 1; then | |
5868 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5869 | fi | |
5870 | ||
5871 | if test "$wxUSE_ACCEL" = yes; then | |
a0b9e27f | 5872 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5873 | else |
a0b9e27f | 5874 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5875 | fi |
a0b9e27f | 5876 | |
10f2d63a | 5877 | |
5005acfe VZ |
5878 | enablestring= |
5879 | echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6 | |
de6dab5f | 5880 | echo "configure:5881: checking for --${enablestring:-enable}-button" >&5 |
10f2d63a | 5881 | no_cache=0 |
1e6feb95 VZ |
5882 | # Check whether --enable-button or --disable-button was given. |
5883 | if test "${enable_button+set}" = set; then | |
5884 | enableval="$enable_button" | |
a0b9e27f | 5885 | |
10f2d63a | 5886 | if test "$enableval" = yes; then |
1e6feb95 | 5887 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5888 | else |
1e6feb95 | 5889 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5890 | fi |
a0b9e27f | 5891 | |
10f2d63a | 5892 | else |
a0b9e27f | 5893 | |
1e6feb95 | 5894 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5895 | if test "x$LINE" != x ; then |
5896 | eval "DEFAULT_$LINE" | |
5897 | else | |
5898 | no_cache=1 | |
5899 | fi | |
5900 | ||
1e6feb95 | 5901 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
a0b9e27f MB |
5902 | |
5903 | fi | |
10f2d63a VZ |
5904 | |
5905 | ||
1e6feb95 | 5906 | eval "$ac_cv_use_button" |
10f2d63a | 5907 | if test "$no_cache" != 1; then |
1e6feb95 | 5908 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5909 | fi |
5910 | ||
1e6feb95 | 5911 | if test "$wxUSE_BUTTON" = yes; then |
a0b9e27f | 5912 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5913 | else |
a0b9e27f | 5914 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5915 | fi |
a0b9e27f | 5916 | |
10f2d63a | 5917 | |
5005acfe VZ |
5918 | enablestring= |
5919 | echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6 | |
de6dab5f | 5920 | echo "configure:5921: checking for --${enablestring:-enable}-bmpbutton" >&5 |
10f2d63a VZ |
5921 | no_cache=0 |
5922 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5923 | if test "${enable_bmpbutton+set}" = set; then | |
5924 | enableval="$enable_bmpbutton" | |
a0b9e27f | 5925 | |
10f2d63a VZ |
5926 | if test "$enableval" = yes; then |
5927 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5928 | else | |
5929 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5930 | fi | |
a0b9e27f | 5931 | |
10f2d63a | 5932 | else |
a0b9e27f | 5933 | |
10f2d63a VZ |
5934 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5935 | if test "x$LINE" != x ; then | |
5936 | eval "DEFAULT_$LINE" | |
5937 | else | |
5938 | no_cache=1 | |
5939 | fi | |
5940 | ||
5941 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
a0b9e27f MB |
5942 | |
5943 | fi | |
10f2d63a VZ |
5944 | |
5945 | ||
5946 | eval "$ac_cv_use_bmpbutton" | |
5947 | if test "$no_cache" != 1; then | |
5948 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5949 | fi | |
5950 | ||
5951 | if test "$wxUSE_BMPBUTTON" = yes; then | |
a0b9e27f | 5952 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5953 | else |
a0b9e27f | 5954 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5955 | fi |
a0b9e27f | 5956 | |
10f2d63a | 5957 | |
5005acfe VZ |
5958 | enablestring= |
5959 | echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6 | |
de6dab5f | 5960 | echo "configure:5961: checking for --${enablestring:-enable}-calendar" >&5 |
1e6feb95 VZ |
5961 | no_cache=0 |
5962 | # Check whether --enable-calendar or --disable-calendar was given. | |
5963 | if test "${enable_calendar+set}" = set; then | |
5964 | enableval="$enable_calendar" | |
a0b9e27f | 5965 | |
1e6feb95 VZ |
5966 | if test "$enableval" = yes; then |
5967 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5968 | else | |
5969 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5970 | fi | |
a0b9e27f | 5971 | |
1e6feb95 | 5972 | else |
a0b9e27f | 5973 | |
1e6feb95 VZ |
5974 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
5975 | if test "x$LINE" != x ; then | |
5976 | eval "DEFAULT_$LINE" | |
5977 | else | |
5978 | no_cache=1 | |
5979 | fi | |
5980 | ||
5981 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
a0b9e27f MB |
5982 | |
5983 | fi | |
1e6feb95 VZ |
5984 | |
5985 | ||
5986 | eval "$ac_cv_use_calendar" | |
5987 | if test "$no_cache" != 1; then | |
5988 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5989 | fi | |
5990 | ||
5991 | if test "$wxUSE_CALCTRL" = yes; then | |
a0b9e27f | 5992 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5993 | else |
a0b9e27f | 5994 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5995 | fi |
a0b9e27f | 5996 | |
1e6feb95 | 5997 | |
5005acfe VZ |
5998 | enablestring= |
5999 | echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6 | |
de6dab5f | 6000 | echo "configure:6001: checking for --${enablestring:-enable}-caret" >&5 |
1e6feb95 VZ |
6001 | no_cache=0 |
6002 | # Check whether --enable-caret or --disable-caret was given. | |
6003 | if test "${enable_caret+set}" = set; then | |
6004 | enableval="$enable_caret" | |
a0b9e27f | 6005 | |
1e6feb95 VZ |
6006 | if test "$enableval" = yes; then |
6007 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6008 | else | |
6009 | ac_cv_use_caret='wxUSE_CARET=no' | |
6010 | fi | |
a0b9e27f | 6011 | |
1e6feb95 | 6012 | else |
a0b9e27f | 6013 | |
1e6feb95 VZ |
6014 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6015 | if test "x$LINE" != x ; then | |
6016 | eval "DEFAULT_$LINE" | |
6017 | else | |
6018 | no_cache=1 | |
6019 | fi | |
6020 | ||
6021 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
a0b9e27f MB |
6022 | |
6023 | fi | |
1e6feb95 VZ |
6024 | |
6025 | ||
6026 | eval "$ac_cv_use_caret" | |
6027 | if test "$no_cache" != 1; then | |
6028 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6029 | fi | |
6030 | ||
6031 | if test "$wxUSE_CARET" = yes; then | |
a0b9e27f | 6032 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6033 | else |
a0b9e27f | 6034 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6035 | fi |
a0b9e27f | 6036 | |
1e6feb95 | 6037 | |
5005acfe VZ |
6038 | enablestring= |
6039 | echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6 | |
de6dab5f | 6040 | echo "configure:6041: checking for --${enablestring:-enable}-checkbox" >&5 |
10f2d63a VZ |
6041 | no_cache=0 |
6042 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6043 | if test "${enable_checkbox+set}" = set; then | |
6044 | enableval="$enable_checkbox" | |
a0b9e27f | 6045 | |
10f2d63a VZ |
6046 | if test "$enableval" = yes; then |
6047 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6048 | else | |
6049 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6050 | fi | |
a0b9e27f | 6051 | |
10f2d63a | 6052 | else |
a0b9e27f | 6053 | |
10f2d63a VZ |
6054 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6055 | if test "x$LINE" != x ; then | |
6056 | eval "DEFAULT_$LINE" | |
6057 | else | |
6058 | no_cache=1 | |
6059 | fi | |
6060 | ||
6061 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
a0b9e27f MB |
6062 | |
6063 | fi | |
10f2d63a VZ |
6064 | |
6065 | ||
6066 | eval "$ac_cv_use_checkbox" | |
6067 | if test "$no_cache" != 1; then | |
6068 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6069 | fi | |
6070 | ||
6071 | if test "$wxUSE_CHECKBOX" = yes; then | |
a0b9e27f | 6072 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6073 | else |
a0b9e27f | 6074 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6075 | fi |
a0b9e27f | 6076 | |
10f2d63a | 6077 | |
5005acfe VZ |
6078 | enablestring= |
6079 | echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6 | |
de6dab5f | 6080 | echo "configure:6081: checking for --${enablestring:-enable}-checklst" >&5 |
10f2d63a VZ |
6081 | no_cache=0 |
6082 | # Check whether --enable-checklst or --disable-checklst was given. | |
6083 | if test "${enable_checklst+set}" = set; then | |
6084 | enableval="$enable_checklst" | |
a0b9e27f | 6085 | |
10f2d63a VZ |
6086 | if test "$enableval" = yes; then |
6087 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6088 | else | |
6089 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6090 | fi | |
a0b9e27f | 6091 | |
10f2d63a | 6092 | else |
a0b9e27f | 6093 | |
10f2d63a VZ |
6094 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6095 | if test "x$LINE" != x ; then | |
6096 | eval "DEFAULT_$LINE" | |
6097 | else | |
6098 | no_cache=1 | |
6099 | fi | |
6100 | ||
6101 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
a0b9e27f MB |
6102 | |
6103 | fi | |
10f2d63a VZ |
6104 | |
6105 | ||
6106 | eval "$ac_cv_use_checklst" | |
6107 | if test "$no_cache" != 1; then | |
6108 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6109 | fi | |
6110 | ||
6111 | if test "$wxUSE_CHECKLST" = yes; then | |
a0b9e27f | 6112 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6113 | else |
a0b9e27f | 6114 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6115 | fi |
a0b9e27f | 6116 | |
10f2d63a | 6117 | |
5005acfe VZ |
6118 | enablestring= |
6119 | echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6 | |
de6dab5f | 6120 | echo "configure:6121: checking for --${enablestring:-enable}-choice" >&5 |
10f2d63a VZ |
6121 | no_cache=0 |
6122 | # Check whether --enable-choice or --disable-choice was given. | |
6123 | if test "${enable_choice+set}" = set; then | |
6124 | enableval="$enable_choice" | |
a0b9e27f | 6125 | |
10f2d63a VZ |
6126 | if test "$enableval" = yes; then |
6127 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6128 | else | |
6129 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6130 | fi | |
a0b9e27f | 6131 | |
10f2d63a | 6132 | else |
a0b9e27f | 6133 | |
10f2d63a VZ |
6134 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6135 | if test "x$LINE" != x ; then | |
6136 | eval "DEFAULT_$LINE" | |
6137 | else | |
6138 | no_cache=1 | |
6139 | fi | |
6140 | ||
6141 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
a0b9e27f MB |
6142 | |
6143 | fi | |
10f2d63a VZ |
6144 | |
6145 | ||
6146 | eval "$ac_cv_use_choice" | |
6147 | if test "$no_cache" != 1; then | |
6148 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6149 | fi | |
6150 | ||
6151 | if test "$wxUSE_CHOICE" = yes; then | |
a0b9e27f | 6152 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6153 | else |
a0b9e27f | 6154 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6155 | fi |
a0b9e27f | 6156 | |
10f2d63a | 6157 | |
5005acfe VZ |
6158 | enablestring= |
6159 | echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6 | |
de6dab5f | 6160 | echo "configure:6161: checking for --${enablestring:-enable}-combobox" >&5 |
10f2d63a VZ |
6161 | no_cache=0 |
6162 | # Check whether --enable-combobox or --disable-combobox was given. | |
6163 | if test "${enable_combobox+set}" = set; then | |
6164 | enableval="$enable_combobox" | |
a0b9e27f | 6165 | |
10f2d63a VZ |
6166 | if test "$enableval" = yes; then |
6167 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6168 | else | |
6169 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6170 | fi | |
a0b9e27f | 6171 | |
10f2d63a | 6172 | else |
a0b9e27f | 6173 | |
10f2d63a VZ |
6174 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6175 | if test "x$LINE" != x ; then | |
6176 | eval "DEFAULT_$LINE" | |
6177 | else | |
6178 | no_cache=1 | |
6179 | fi | |
6180 | ||
6181 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
a0b9e27f MB |
6182 | |
6183 | fi | |
10f2d63a VZ |
6184 | |
6185 | ||
6186 | eval "$ac_cv_use_combobox" | |
6187 | if test "$no_cache" != 1; then | |
6188 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6189 | fi | |
6190 | ||
6191 | if test "$wxUSE_COMBOBOX" = yes; then | |
a0b9e27f | 6192 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6193 | else |
a0b9e27f | 6194 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6195 | fi |
a0b9e27f | 6196 | |
10f2d63a | 6197 | |
da494b40 MB |
6198 | enablestring= |
6199 | echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6 | |
de6dab5f | 6200 | echo "configure:6201: checking for --${enablestring:-enable}-display" >&5 |
da494b40 MB |
6201 | no_cache=0 |
6202 | # Check whether --enable-display or --disable-display was given. | |
6203 | if test "${enable_display+set}" = set; then | |
6204 | enableval="$enable_display" | |
6205 | ||
6206 | if test "$enableval" = yes; then | |
6207 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
6208 | else | |
6209 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
6210 | fi | |
6211 | ||
6212 | else | |
6213 | ||
6214 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
6215 | if test "x$LINE" != x ; then | |
6216 | eval "DEFAULT_$LINE" | |
6217 | else | |
6218 | no_cache=1 | |
6219 | fi | |
6220 | ||
6221 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
6222 | ||
6223 | fi | |
6224 | ||
6225 | ||
6226 | eval "$ac_cv_use_display" | |
6227 | if test "$no_cache" != 1; then | |
6228 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
6229 | fi | |
6230 | ||
6231 | if test "$wxUSE_DISPLAY" = yes; then | |
6232 | echo "$ac_t""yes" 1>&6 | |
6233 | else | |
6234 | echo "$ac_t""no" 1>&6 | |
6235 | fi | |
6236 | ||
6237 | ||
5005acfe VZ |
6238 | enablestring= |
6239 | echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6 | |
de6dab5f | 6240 | echo "configure:6241: checking for --${enablestring:-enable}-gauge" >&5 |
10f2d63a VZ |
6241 | no_cache=0 |
6242 | # Check whether --enable-gauge or --disable-gauge was given. | |
6243 | if test "${enable_gauge+set}" = set; then | |
6244 | enableval="$enable_gauge" | |
a0b9e27f | 6245 | |
10f2d63a VZ |
6246 | if test "$enableval" = yes; then |
6247 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6248 | else | |
6249 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6250 | fi | |
a0b9e27f | 6251 | |
10f2d63a | 6252 | else |
a0b9e27f | 6253 | |
10f2d63a VZ |
6254 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6255 | if test "x$LINE" != x ; then | |
6256 | eval "DEFAULT_$LINE" | |
6257 | else | |
6258 | no_cache=1 | |
6259 | fi | |
6260 | ||
6261 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
a0b9e27f MB |
6262 | |
6263 | fi | |
10f2d63a VZ |
6264 | |
6265 | ||
6266 | eval "$ac_cv_use_gauge" | |
6267 | if test "$no_cache" != 1; then | |
6268 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6269 | fi | |
6270 | ||
6271 | if test "$wxUSE_GAUGE" = yes; then | |
a0b9e27f | 6272 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6273 | else |
a0b9e27f | 6274 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6275 | fi |
a0b9e27f | 6276 | |
10f2d63a | 6277 | |
5005acfe VZ |
6278 | enablestring= |
6279 | echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6 | |
de6dab5f | 6280 | echo "configure:6281: checking for --${enablestring:-enable}-grid" >&5 |
10f2d63a VZ |
6281 | no_cache=0 |
6282 | # Check whether --enable-grid or --disable-grid was given. | |
6283 | if test "${enable_grid+set}" = set; then | |
6284 | enableval="$enable_grid" | |
a0b9e27f | 6285 | |
10f2d63a VZ |
6286 | if test "$enableval" = yes; then |
6287 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6288 | else | |
6289 | ac_cv_use_grid='wxUSE_GRID=no' | |
6290 | fi | |
a0b9e27f | 6291 | |
10f2d63a | 6292 | else |
a0b9e27f | 6293 | |
10f2d63a VZ |
6294 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6295 | if test "x$LINE" != x ; then | |
6296 | eval "DEFAULT_$LINE" | |
6297 | else | |
6298 | no_cache=1 | |
6299 | fi | |
6300 | ||
6301 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
a0b9e27f MB |
6302 | |
6303 | fi | |
10f2d63a VZ |
6304 | |
6305 | ||
6306 | eval "$ac_cv_use_grid" | |
6307 | if test "$no_cache" != 1; then | |
6308 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6309 | fi | |
6310 | ||
6311 | if test "$wxUSE_GRID" = yes; then | |
a0b9e27f | 6312 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6313 | else |
a0b9e27f | 6314 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6315 | fi |
a0b9e27f | 6316 | |
10f2d63a | 6317 | |
5005acfe VZ |
6318 | enablestring= |
6319 | echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6 | |
de6dab5f | 6320 | echo "configure:6321: checking for --${enablestring:-enable}-imaglist" >&5 |
10f2d63a VZ |
6321 | no_cache=0 |
6322 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6323 | if test "${enable_imaglist+set}" = set; then | |
6324 | enableval="$enable_imaglist" | |
a0b9e27f | 6325 | |
10f2d63a VZ |
6326 | if test "$enableval" = yes; then |
6327 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6328 | else | |
6329 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6330 | fi | |
a0b9e27f | 6331 | |
10f2d63a | 6332 | else |
a0b9e27f | 6333 | |
10f2d63a VZ |
6334 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6335 | if test "x$LINE" != x ; then | |
6336 | eval "DEFAULT_$LINE" | |
6337 | else | |
6338 | no_cache=1 | |
6339 | fi | |
6340 | ||
6341 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
a0b9e27f MB |
6342 | |
6343 | fi | |
10f2d63a VZ |
6344 | |
6345 | ||
6346 | eval "$ac_cv_use_imaglist" | |
6347 | if test "$no_cache" != 1; then | |
6348 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6349 | fi | |
6350 | ||
6351 | if test "$wxUSE_IMAGLIST" = yes; then | |
a0b9e27f | 6352 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6353 | else |
a0b9e27f | 6354 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6355 | fi |
a0b9e27f | 6356 | |
10f2d63a | 6357 | |
5005acfe VZ |
6358 | enablestring= |
6359 | echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6 | |
de6dab5f | 6360 | echo "configure:6361: checking for --${enablestring:-enable}-listbox" >&5 |
10f2d63a VZ |
6361 | no_cache=0 |
6362 | # Check whether --enable-listbox or --disable-listbox was given. | |
6363 | if test "${enable_listbox+set}" = set; then | |
6364 | enableval="$enable_listbox" | |
a0b9e27f | 6365 | |
10f2d63a VZ |
6366 | if test "$enableval" = yes; then |
6367 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6368 | else | |
6369 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6370 | fi | |
a0b9e27f | 6371 | |
10f2d63a | 6372 | else |
a0b9e27f | 6373 | |
10f2d63a VZ |
6374 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6375 | if test "x$LINE" != x ; then | |
6376 | eval "DEFAULT_$LINE" | |
6377 | else | |
6378 | no_cache=1 | |
6379 | fi | |
6380 | ||
6381 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
a0b9e27f MB |
6382 | |
6383 | fi | |
10f2d63a VZ |
6384 | |
6385 | ||
6386 | eval "$ac_cv_use_listbox" | |
6387 | if test "$no_cache" != 1; then | |
6388 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6389 | fi | |
6390 | ||
6391 | if test "$wxUSE_LISTBOX" = yes; then | |
a0b9e27f | 6392 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6393 | else |
a0b9e27f | 6394 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6395 | fi |
a0b9e27f | 6396 | |
10f2d63a | 6397 | |
5005acfe VZ |
6398 | enablestring= |
6399 | echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6 | |
de6dab5f | 6400 | echo "configure:6401: checking for --${enablestring:-enable}-listctrl" >&5 |
10f2d63a VZ |
6401 | no_cache=0 |
6402 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6403 | if test "${enable_listctrl+set}" = set; then | |
6404 | enableval="$enable_listctrl" | |
a0b9e27f | 6405 | |
10f2d63a VZ |
6406 | if test "$enableval" = yes; then |
6407 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6408 | else | |
6409 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6410 | fi | |
a0b9e27f | 6411 | |
10f2d63a | 6412 | else |
a0b9e27f | 6413 | |
10f2d63a VZ |
6414 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6415 | if test "x$LINE" != x ; then | |
6416 | eval "DEFAULT_$LINE" | |
6417 | else | |
6418 | no_cache=1 | |
6419 | fi | |
6420 | ||
6421 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
a0b9e27f MB |
6422 | |
6423 | fi | |
10f2d63a VZ |
6424 | |
6425 | ||
6426 | eval "$ac_cv_use_listctrl" | |
6427 | if test "$no_cache" != 1; then | |
6428 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6429 | fi | |
6430 | ||
6431 | if test "$wxUSE_LISTCTRL" = yes; then | |
a0b9e27f | 6432 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6433 | else |
a0b9e27f | 6434 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6435 | fi |
a0b9e27f | 6436 | |
10f2d63a | 6437 | |
5005acfe VZ |
6438 | enablestring= |
6439 | echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6 | |
de6dab5f | 6440 | echo "configure:6441: checking for --${enablestring:-enable}-notebook" >&5 |
10f2d63a VZ |
6441 | no_cache=0 |
6442 | # Check whether --enable-notebook or --disable-notebook was given. | |
6443 | if test "${enable_notebook+set}" = set; then | |
6444 | enableval="$enable_notebook" | |
a0b9e27f | 6445 | |
10f2d63a VZ |
6446 | if test "$enableval" = yes; then |
6447 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6448 | else | |
6449 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6450 | fi | |
a0b9e27f | 6451 | |
10f2d63a | 6452 | else |
a0b9e27f | 6453 | |
10f2d63a VZ |
6454 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6455 | if test "x$LINE" != x ; then | |
6456 | eval "DEFAULT_$LINE" | |
6457 | else | |
6458 | no_cache=1 | |
6459 | fi | |
6460 | ||
6461 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
a0b9e27f MB |
6462 | |
6463 | fi | |
10f2d63a VZ |
6464 | |
6465 | ||
6466 | eval "$ac_cv_use_notebook" | |
6467 | if test "$no_cache" != 1; then | |
6468 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6469 | fi | |
6470 | ||
6471 | if test "$wxUSE_NOTEBOOK" = yes; then | |
a0b9e27f | 6472 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6473 | else |
a0b9e27f | 6474 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6475 | fi |
a0b9e27f | 6476 | |
10f2d63a | 6477 | |
5005acfe VZ |
6478 | enablestring= |
6479 | echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6 | |
de6dab5f | 6480 | echo "configure:6481: checking for --${enablestring:-enable}-radiobox" >&5 |
10f2d63a VZ |
6481 | no_cache=0 |
6482 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6483 | if test "${enable_radiobox+set}" = set; then | |
6484 | enableval="$enable_radiobox" | |
a0b9e27f | 6485 | |
10f2d63a VZ |
6486 | if test "$enableval" = yes; then |
6487 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6488 | else | |
6489 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6490 | fi | |
a0b9e27f | 6491 | |
10f2d63a | 6492 | else |
a0b9e27f | 6493 | |
10f2d63a VZ |
6494 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6495 | if test "x$LINE" != x ; then | |
6496 | eval "DEFAULT_$LINE" | |
6497 | else | |
6498 | no_cache=1 | |
6499 | fi | |
6500 | ||
6501 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
a0b9e27f MB |
6502 | |
6503 | fi | |
10f2d63a VZ |
6504 | |
6505 | ||
6506 | eval "$ac_cv_use_radiobox" | |
6507 | if test "$no_cache" != 1; then | |
6508 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6509 | fi | |
6510 | ||
6511 | if test "$wxUSE_RADIOBOX" = yes; then | |
a0b9e27f | 6512 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6513 | else |
a0b9e27f | 6514 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6515 | fi |
a0b9e27f | 6516 | |
10f2d63a | 6517 | |
5005acfe VZ |
6518 | enablestring= |
6519 | echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6 | |
de6dab5f | 6520 | echo "configure:6521: checking for --${enablestring:-enable}-radiobtn" >&5 |
10f2d63a VZ |
6521 | no_cache=0 |
6522 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6523 | if test "${enable_radiobtn+set}" = set; then | |
6524 | enableval="$enable_radiobtn" | |
a0b9e27f | 6525 | |
10f2d63a VZ |
6526 | if test "$enableval" = yes; then |
6527 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6528 | else | |
6529 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6530 | fi | |
a0b9e27f | 6531 | |
10f2d63a | 6532 | else |
a0b9e27f | 6533 | |
10f2d63a VZ |
6534 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6535 | if test "x$LINE" != x ; then | |
6536 | eval "DEFAULT_$LINE" | |
6537 | else | |
6538 | no_cache=1 | |
6539 | fi | |
6540 | ||
6541 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
a0b9e27f MB |
6542 | |
6543 | fi | |
10f2d63a VZ |
6544 | |
6545 | ||
6546 | eval "$ac_cv_use_radiobtn" | |
6547 | if test "$no_cache" != 1; then | |
6548 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6549 | fi | |
6550 | ||
6551 | if test "$wxUSE_RADIOBTN" = yes; then | |
a0b9e27f | 6552 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6553 | else |
a0b9e27f | 6554 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6555 | fi |
a0b9e27f | 6556 | |
10f2d63a | 6557 | |
5005acfe VZ |
6558 | enablestring= |
6559 | echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6 | |
de6dab5f | 6560 | echo "configure:6561: checking for --${enablestring:-enable}-sash" >&5 |
10f2d63a VZ |
6561 | no_cache=0 |
6562 | # Check whether --enable-sash or --disable-sash was given. | |
6563 | if test "${enable_sash+set}" = set; then | |
6564 | enableval="$enable_sash" | |
a0b9e27f | 6565 | |
10f2d63a VZ |
6566 | if test "$enableval" = yes; then |
6567 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6568 | else | |
6569 | ac_cv_use_sash='wxUSE_SASH=no' | |
6570 | fi | |
a0b9e27f | 6571 | |
10f2d63a | 6572 | else |
a0b9e27f | 6573 | |
10f2d63a VZ |
6574 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6575 | if test "x$LINE" != x ; then | |
6576 | eval "DEFAULT_$LINE" | |
6577 | else | |
6578 | no_cache=1 | |
6579 | fi | |
6580 | ||
6581 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
a0b9e27f MB |
6582 | |
6583 | fi | |
10f2d63a VZ |
6584 | |
6585 | ||
6586 | eval "$ac_cv_use_sash" | |
6587 | if test "$no_cache" != 1; then | |
6588 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6589 | fi | |
6590 | ||
6591 | if test "$wxUSE_SASH" = yes; then | |
a0b9e27f | 6592 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6593 | else |
a0b9e27f | 6594 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6595 | fi |
a0b9e27f | 6596 | |
10f2d63a | 6597 | |
5005acfe VZ |
6598 | enablestring= |
6599 | echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6 | |
de6dab5f | 6600 | echo "configure:6601: checking for --${enablestring:-enable}-scrollbar" >&5 |
10f2d63a VZ |
6601 | no_cache=0 |
6602 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6603 | if test "${enable_scrollbar+set}" = set; then | |
6604 | enableval="$enable_scrollbar" | |
a0b9e27f | 6605 | |
10f2d63a VZ |
6606 | if test "$enableval" = yes; then |
6607 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6608 | else | |
6609 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6610 | fi | |
a0b9e27f | 6611 | |
10f2d63a | 6612 | else |
a0b9e27f | 6613 | |
10f2d63a VZ |
6614 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6615 | if test "x$LINE" != x ; then | |
6616 | eval "DEFAULT_$LINE" | |
6617 | else | |
6618 | no_cache=1 | |
6619 | fi | |
6620 | ||
6621 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
a0b9e27f MB |
6622 | |
6623 | fi | |
10f2d63a VZ |
6624 | |
6625 | ||
6626 | eval "$ac_cv_use_scrollbar" | |
6627 | if test "$no_cache" != 1; then | |
6628 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6629 | fi | |
6630 | ||
6631 | if test "$wxUSE_SCROLLBAR" = yes; then | |
a0b9e27f | 6632 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6633 | else |
a0b9e27f | 6634 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6635 | fi |
a0b9e27f | 6636 | |
10f2d63a | 6637 | |
5005acfe VZ |
6638 | enablestring= |
6639 | echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6 | |
de6dab5f | 6640 | echo "configure:6641: checking for --${enablestring:-enable}-slider" >&5 |
10f2d63a VZ |
6641 | no_cache=0 |
6642 | # Check whether --enable-slider or --disable-slider was given. | |
6643 | if test "${enable_slider+set}" = set; then | |
6644 | enableval="$enable_slider" | |
a0b9e27f | 6645 | |
10f2d63a VZ |
6646 | if test "$enableval" = yes; then |
6647 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6648 | else | |
6649 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6650 | fi | |
a0b9e27f | 6651 | |
10f2d63a | 6652 | else |
a0b9e27f | 6653 | |
10f2d63a VZ |
6654 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6655 | if test "x$LINE" != x ; then | |
6656 | eval "DEFAULT_$LINE" | |
6657 | else | |
6658 | no_cache=1 | |
6659 | fi | |
6660 | ||
6661 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
a0b9e27f MB |
6662 | |
6663 | fi | |
10f2d63a VZ |
6664 | |
6665 | ||
6666 | eval "$ac_cv_use_slider" | |
6667 | if test "$no_cache" != 1; then | |
6668 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6669 | fi | |
6670 | ||
6671 | if test "$wxUSE_SLIDER" = yes; then | |
a0b9e27f | 6672 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6673 | else |
a0b9e27f | 6674 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6675 | fi |
a0b9e27f | 6676 | |
10f2d63a | 6677 | |
5005acfe VZ |
6678 | enablestring= |
6679 | echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6 | |
de6dab5f | 6680 | echo "configure:6681: checking for --${enablestring:-enable}-spinbtn" >&5 |
10f2d63a VZ |
6681 | no_cache=0 |
6682 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6683 | if test "${enable_spinbtn+set}" = set; then | |
6684 | enableval="$enable_spinbtn" | |
a0b9e27f | 6685 | |
10f2d63a VZ |
6686 | if test "$enableval" = yes; then |
6687 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6688 | else | |
6689 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6690 | fi | |
a0b9e27f | 6691 | |
10f2d63a | 6692 | else |
a0b9e27f | 6693 | |
10f2d63a VZ |
6694 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6695 | if test "x$LINE" != x ; then | |
6696 | eval "DEFAULT_$LINE" | |
6697 | else | |
6698 | no_cache=1 | |
6699 | fi | |
6700 | ||
6701 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
a0b9e27f MB |
6702 | |
6703 | fi | |
10f2d63a VZ |
6704 | |
6705 | ||
6706 | eval "$ac_cv_use_spinbtn" | |
6707 | if test "$no_cache" != 1; then | |
6708 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6709 | fi | |
6710 | ||
6711 | if test "$wxUSE_SPINBTN" = yes; then | |
a0b9e27f | 6712 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6713 | else |
a0b9e27f | 6714 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6715 | fi |
a0b9e27f | 6716 | |
10f2d63a | 6717 | |
5005acfe VZ |
6718 | enablestring= |
6719 | echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6 | |
de6dab5f | 6720 | echo "configure:6721: checking for --${enablestring:-enable}-spinctrl" >&5 |
56cfaa52 RR |
6721 | no_cache=0 |
6722 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6723 | if test "${enable_spinctrl+set}" = set; then | |
6724 | enableval="$enable_spinctrl" | |
a0b9e27f | 6725 | |
56cfaa52 RR |
6726 | if test "$enableval" = yes; then |
6727 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6728 | else | |
6729 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6730 | fi | |
a0b9e27f | 6731 | |
56cfaa52 | 6732 | else |
a0b9e27f | 6733 | |
56cfaa52 RR |
6734 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6735 | if test "x$LINE" != x ; then | |
6736 | eval "DEFAULT_$LINE" | |
6737 | else | |
6738 | no_cache=1 | |
6739 | fi | |
6740 | ||
6741 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
a0b9e27f MB |
6742 | |
6743 | fi | |
56cfaa52 RR |
6744 | |
6745 | ||
6746 | eval "$ac_cv_use_spinctrl" | |
6747 | if test "$no_cache" != 1; then | |
6748 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6749 | fi | |
6750 | ||
6751 | if test "$wxUSE_SPINCTRL" = yes; then | |
a0b9e27f | 6752 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6753 | else |
a0b9e27f | 6754 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6755 | fi |
a0b9e27f | 6756 | |
56cfaa52 | 6757 | |
5005acfe VZ |
6758 | enablestring= |
6759 | echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6 | |
de6dab5f | 6760 | echo "configure:6761: checking for --${enablestring:-enable}-splitter" >&5 |
10f2d63a VZ |
6761 | no_cache=0 |
6762 | # Check whether --enable-splitter or --disable-splitter was given. | |
6763 | if test "${enable_splitter+set}" = set; then | |
6764 | enableval="$enable_splitter" | |
a0b9e27f | 6765 | |
10f2d63a VZ |
6766 | if test "$enableval" = yes; then |
6767 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6768 | else | |
6769 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6770 | fi | |
a0b9e27f | 6771 | |
10f2d63a | 6772 | else |
a0b9e27f | 6773 | |
10f2d63a VZ |
6774 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6775 | if test "x$LINE" != x ; then | |
6776 | eval "DEFAULT_$LINE" | |
6777 | else | |
6778 | no_cache=1 | |
6779 | fi | |
6780 | ||
6781 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
a0b9e27f MB |
6782 | |
6783 | fi | |
10f2d63a VZ |
6784 | |
6785 | ||
6786 | eval "$ac_cv_use_splitter" | |
6787 | if test "$no_cache" != 1; then | |
6788 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6789 | fi | |
6790 | ||
6791 | if test "$wxUSE_SPLITTER" = yes; then | |
a0b9e27f | 6792 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6793 | else |
a0b9e27f | 6794 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6795 | fi |
a0b9e27f | 6796 | |
10f2d63a | 6797 | |
5005acfe VZ |
6798 | enablestring= |
6799 | echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6 | |
de6dab5f | 6800 | echo "configure:6801: checking for --${enablestring:-enable}-statbmp" >&5 |
10f2d63a VZ |
6801 | no_cache=0 |
6802 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6803 | if test "${enable_statbmp+set}" = set; then | |
6804 | enableval="$enable_statbmp" | |
a0b9e27f | 6805 | |
10f2d63a VZ |
6806 | if test "$enableval" = yes; then |
6807 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6808 | else | |
6809 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6810 | fi | |
a0b9e27f | 6811 | |
10f2d63a | 6812 | else |
a0b9e27f | 6813 | |
10f2d63a VZ |
6814 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6815 | if test "x$LINE" != x ; then | |
6816 | eval "DEFAULT_$LINE" | |
6817 | else | |
6818 | no_cache=1 | |
6819 | fi | |
6820 | ||
6821 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
a0b9e27f MB |
6822 | |
6823 | fi | |
10f2d63a VZ |
6824 | |
6825 | ||
6826 | eval "$ac_cv_use_statbmp" | |
6827 | if test "$no_cache" != 1; then | |
6828 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6829 | fi | |
6830 | ||
6831 | if test "$wxUSE_STATBMP" = yes; then | |
a0b9e27f | 6832 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6833 | else |
a0b9e27f | 6834 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6835 | fi |
a0b9e27f | 6836 | |
10f2d63a | 6837 | |
5005acfe VZ |
6838 | enablestring= |
6839 | echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6 | |
de6dab5f | 6840 | echo "configure:6841: checking for --${enablestring:-enable}-statbox" >&5 |
10f2d63a VZ |
6841 | no_cache=0 |
6842 | # Check whether --enable-statbox or --disable-statbox was given. | |
6843 | if test "${enable_statbox+set}" = set; then | |
6844 | enableval="$enable_statbox" | |
a0b9e27f | 6845 | |
10f2d63a VZ |
6846 | if test "$enableval" = yes; then |
6847 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6848 | else | |
6849 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6850 | fi | |
a0b9e27f | 6851 | |
10f2d63a | 6852 | else |
a0b9e27f | 6853 | |
10f2d63a VZ |
6854 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6855 | if test "x$LINE" != x ; then | |
6856 | eval "DEFAULT_$LINE" | |
6857 | else | |
6858 | no_cache=1 | |
6859 | fi | |
6860 | ||
6861 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
a0b9e27f MB |
6862 | |
6863 | fi | |
10f2d63a VZ |
6864 | |
6865 | ||
6866 | eval "$ac_cv_use_statbox" | |
6867 | if test "$no_cache" != 1; then | |
6868 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6869 | fi | |
6870 | ||
6871 | if test "$wxUSE_STATBOX" = yes; then | |
a0b9e27f | 6872 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6873 | else |
a0b9e27f | 6874 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6875 | fi |
a0b9e27f | 6876 | |
10f2d63a | 6877 | |
5005acfe VZ |
6878 | enablestring= |
6879 | echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6 | |
de6dab5f | 6880 | echo "configure:6881: checking for --${enablestring:-enable}-statline" >&5 |
10f2d63a VZ |
6881 | no_cache=0 |
6882 | # Check whether --enable-statline or --disable-statline was given. | |
6883 | if test "${enable_statline+set}" = set; then | |
6884 | enableval="$enable_statline" | |
a0b9e27f | 6885 | |
10f2d63a VZ |
6886 | if test "$enableval" = yes; then |
6887 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6888 | else | |
6889 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6890 | fi | |
a0b9e27f | 6891 | |
10f2d63a | 6892 | else |
a0b9e27f | 6893 | |
10f2d63a VZ |
6894 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6895 | if test "x$LINE" != x ; then | |
6896 | eval "DEFAULT_$LINE" | |
6897 | else | |
6898 | no_cache=1 | |
6899 | fi | |
6900 | ||
6901 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
a0b9e27f MB |
6902 | |
6903 | fi | |
10f2d63a VZ |
6904 | |
6905 | ||
6906 | eval "$ac_cv_use_statline" | |
6907 | if test "$no_cache" != 1; then | |
6908 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6909 | fi | |
6910 | ||
6911 | if test "$wxUSE_STATLINE" = yes; then | |
a0b9e27f | 6912 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6913 | else |
a0b9e27f | 6914 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6915 | fi |
a0b9e27f | 6916 | |
10f2d63a | 6917 | |
5005acfe VZ |
6918 | enablestring= |
6919 | echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6 | |
de6dab5f | 6920 | echo "configure:6921: checking for --${enablestring:-enable}-stattext" >&5 |
1e6feb95 VZ |
6921 | no_cache=0 |
6922 | # Check whether --enable-stattext or --disable-stattext was given. | |
6923 | if test "${enable_stattext+set}" = set; then | |
6924 | enableval="$enable_stattext" | |
a0b9e27f | 6925 | |
1e6feb95 VZ |
6926 | if test "$enableval" = yes; then |
6927 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6928 | else | |
6929 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6930 | fi | |
a0b9e27f | 6931 | |
1e6feb95 | 6932 | else |
a0b9e27f | 6933 | |
1e6feb95 VZ |
6934 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
6935 | if test "x$LINE" != x ; then | |
6936 | eval "DEFAULT_$LINE" | |
6937 | else | |
6938 | no_cache=1 | |
6939 | fi | |
6940 | ||
6941 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
a0b9e27f MB |
6942 | |
6943 | fi | |
1e6feb95 VZ |
6944 | |
6945 | ||
6946 | eval "$ac_cv_use_stattext" | |
6947 | if test "$no_cache" != 1; then | |
6948 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6949 | fi | |
6950 | ||
6951 | if test "$wxUSE_STATTEXT" = yes; then | |
a0b9e27f | 6952 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6953 | else |
a0b9e27f | 6954 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6955 | fi |
a0b9e27f | 6956 | |
1e6feb95 | 6957 | |
5005acfe VZ |
6958 | enablestring= |
6959 | echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6 | |
de6dab5f | 6960 | echo "configure:6961: checking for --${enablestring:-enable}-statusbar" >&5 |
10f2d63a VZ |
6961 | no_cache=0 |
6962 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6963 | if test "${enable_statusbar+set}" = set; then | |
6964 | enableval="$enable_statusbar" | |
a0b9e27f | 6965 | |
10f2d63a VZ |
6966 | if test "$enableval" = yes; then |
6967 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6968 | else | |
6969 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6970 | fi | |
a0b9e27f | 6971 | |
10f2d63a | 6972 | else |
a0b9e27f | 6973 | |
10f2d63a VZ |
6974 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6975 | if test "x$LINE" != x ; then | |
6976 | eval "DEFAULT_$LINE" | |
6977 | else | |
6978 | no_cache=1 | |
6979 | fi | |
6980 | ||
6981 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
a0b9e27f MB |
6982 | |
6983 | fi | |
10f2d63a VZ |
6984 | |
6985 | ||
6986 | eval "$ac_cv_use_statusbar" | |
6987 | if test "$no_cache" != 1; then | |
6988 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6989 | fi | |
6990 | ||
6991 | if test "$wxUSE_STATUSBAR" = yes; then | |
a0b9e27f | 6992 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6993 | else |
a0b9e27f | 6994 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6995 | fi |
a0b9e27f | 6996 | |
10f2d63a | 6997 | |
5005acfe VZ |
6998 | enablestring= |
6999 | echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6 | |
de6dab5f | 7000 | echo "configure:7001: checking for --${enablestring:-enable}-tabdialog" >&5 |
10f2d63a VZ |
7001 | no_cache=0 |
7002 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7003 | if test "${enable_tabdialog+set}" = set; then | |
7004 | enableval="$enable_tabdialog" | |
a0b9e27f | 7005 | |
10f2d63a VZ |
7006 | if test "$enableval" = yes; then |
7007 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7008 | else | |
7009 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7010 | fi | |
a0b9e27f | 7011 | |
10f2d63a | 7012 | else |
a0b9e27f | 7013 | |
10f2d63a VZ |
7014 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7015 | if test "x$LINE" != x ; then | |
7016 | eval "DEFAULT_$LINE" | |
7017 | else | |
7018 | no_cache=1 | |
7019 | fi | |
7020 | ||
7021 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
a0b9e27f MB |
7022 | |
7023 | fi | |
10f2d63a VZ |
7024 | |
7025 | ||
7026 | eval "$ac_cv_use_tabdialog" | |
7027 | if test "$no_cache" != 1; then | |
7028 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7029 | fi | |
7030 | ||
7031 | if test "$wxUSE_TABDIALOG" = yes; then | |
a0b9e27f | 7032 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7033 | else |
a0b9e27f | 7034 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7035 | fi |
a0b9e27f | 7036 | |
10f2d63a | 7037 | |
5005acfe VZ |
7038 | enablestring= |
7039 | echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6 | |
de6dab5f | 7040 | echo "configure:7041: checking for --${enablestring:-enable}-textctrl" >&5 |
1e6feb95 VZ |
7041 | no_cache=0 |
7042 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7043 | if test "${enable_textctrl+set}" = set; then | |
7044 | enableval="$enable_textctrl" | |
a0b9e27f | 7045 | |
1e6feb95 VZ |
7046 | if test "$enableval" = yes; then |
7047 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7048 | else | |
7049 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7050 | fi | |
a0b9e27f | 7051 | |
1e6feb95 | 7052 | else |
a0b9e27f | 7053 | |
1e6feb95 VZ |
7054 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
7055 | if test "x$LINE" != x ; then | |
7056 | eval "DEFAULT_$LINE" | |
7057 | else | |
7058 | no_cache=1 | |
7059 | fi | |
7060 | ||
7061 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
a0b9e27f MB |
7062 | |
7063 | fi | |
1e6feb95 VZ |
7064 | |
7065 | ||
7066 | eval "$ac_cv_use_textctrl" | |
7067 | if test "$no_cache" != 1; then | |
7068 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7069 | fi | |
7070 | ||
7071 | if test "$wxUSE_TEXTCTRL" = yes; then | |
a0b9e27f | 7072 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7073 | else |
a0b9e27f | 7074 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7075 | fi |
a0b9e27f | 7076 | |
1e6feb95 | 7077 | |
5005acfe VZ |
7078 | enablestring= |
7079 | echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6 | |
de6dab5f | 7080 | echo "configure:7081: checking for --${enablestring:-enable}-togglebtn" >&5 |
1db8dc4a VZ |
7081 | no_cache=0 |
7082 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7083 | if test "${enable_togglebtn+set}" = set; then | |
7084 | enableval="$enable_togglebtn" | |
a0b9e27f | 7085 | |
1db8dc4a VZ |
7086 | if test "$enableval" = yes; then |
7087 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7088 | else | |
7089 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7090 | fi | |
a0b9e27f | 7091 | |
1db8dc4a | 7092 | else |
a0b9e27f | 7093 | |
1db8dc4a VZ |
7094 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7095 | if test "x$LINE" != x ; then | |
7096 | eval "DEFAULT_$LINE" | |
7097 | else | |
7098 | no_cache=1 | |
7099 | fi | |
7100 | ||
7101 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
a0b9e27f MB |
7102 | |
7103 | fi | |
1db8dc4a VZ |
7104 | |
7105 | ||
7106 | eval "$ac_cv_use_togglebtn" | |
7107 | if test "$no_cache" != 1; then | |
7108 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7109 | fi | |
7110 | ||
7111 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
a0b9e27f | 7112 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 7113 | else |
a0b9e27f | 7114 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 7115 | fi |
a0b9e27f | 7116 | |
1db8dc4a | 7117 | |
5005acfe VZ |
7118 | enablestring= |
7119 | echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6 | |
de6dab5f | 7120 | echo "configure:7121: checking for --${enablestring:-enable}-toolbar" >&5 |
10f2d63a VZ |
7121 | no_cache=0 |
7122 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7123 | if test "${enable_toolbar+set}" = set; then | |
7124 | enableval="$enable_toolbar" | |
a0b9e27f | 7125 | |
10f2d63a VZ |
7126 | if test "$enableval" = yes; then |
7127 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7128 | else | |
7129 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7130 | fi | |
a0b9e27f | 7131 | |
10f2d63a | 7132 | else |
a0b9e27f | 7133 | |
10f2d63a VZ |
7134 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7135 | if test "x$LINE" != x ; then | |
7136 | eval "DEFAULT_$LINE" | |
7137 | else | |
7138 | no_cache=1 | |
7139 | fi | |
7140 | ||
7141 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
a0b9e27f MB |
7142 | |
7143 | fi | |
10f2d63a VZ |
7144 | |
7145 | ||
7146 | eval "$ac_cv_use_toolbar" | |
7147 | if test "$no_cache" != 1; then | |
7148 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7149 | fi | |
7150 | ||
7151 | if test "$wxUSE_TOOLBAR" = yes; then | |
a0b9e27f | 7152 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7153 | else |
a0b9e27f | 7154 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7155 | fi |
a0b9e27f | 7156 | |
10f2d63a | 7157 | |
5005acfe VZ |
7158 | enablestring= |
7159 | echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6 | |
de6dab5f | 7160 | echo "configure:7161: checking for --${enablestring:-enable}-tbarnative" >&5 |
360d6699 VZ |
7161 | no_cache=0 |
7162 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7163 | if test "${enable_tbarnative+set}" = set; then | |
7164 | enableval="$enable_tbarnative" | |
a0b9e27f | 7165 | |
360d6699 VZ |
7166 | if test "$enableval" = yes; then |
7167 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7168 | else | |
7169 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7170 | fi | |
a0b9e27f | 7171 | |
360d6699 | 7172 | else |
a0b9e27f | 7173 | |
360d6699 VZ |
7174 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7175 | if test "x$LINE" != x ; then | |
7176 | eval "DEFAULT_$LINE" | |
7177 | else | |
7178 | no_cache=1 | |
7179 | fi | |
7180 | ||
7181 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
a0b9e27f MB |
7182 | |
7183 | fi | |
360d6699 VZ |
7184 | |
7185 | ||
7186 | eval "$ac_cv_use_tbarnative" | |
7187 | if test "$no_cache" != 1; then | |
7188 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7189 | fi | |
7190 | ||
7191 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
a0b9e27f | 7192 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7193 | else |
a0b9e27f | 7194 | echo "$ac_t""no" 1>&6 |
360d6699 | 7195 | fi |
a0b9e27f | 7196 | |
360d6699 | 7197 | |
5005acfe VZ |
7198 | enablestring= |
7199 | echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6 | |
de6dab5f | 7200 | echo "configure:7201: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
360d6699 VZ |
7201 | no_cache=0 |
7202 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7203 | if test "${enable_tbarsmpl+set}" = set; then | |
7204 | enableval="$enable_tbarsmpl" | |
a0b9e27f | 7205 | |
360d6699 VZ |
7206 | if test "$enableval" = yes; then |
7207 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7208 | else | |
7209 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7210 | fi | |
a0b9e27f | 7211 | |
360d6699 | 7212 | else |
a0b9e27f | 7213 | |
360d6699 VZ |
7214 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7215 | if test "x$LINE" != x ; then | |
7216 | eval "DEFAULT_$LINE" | |
7217 | else | |
7218 | no_cache=1 | |
7219 | fi | |
7220 | ||
7221 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
a0b9e27f MB |
7222 | |
7223 | fi | |
360d6699 VZ |
7224 | |
7225 | ||
7226 | eval "$ac_cv_use_tbarsmpl" | |
7227 | if test "$no_cache" != 1; then | |
7228 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7229 | fi | |
7230 | ||
7231 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
a0b9e27f | 7232 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7233 | else |
a0b9e27f | 7234 | echo "$ac_t""no" 1>&6 |
360d6699 | 7235 | fi |
a0b9e27f | 7236 | |
360d6699 | 7237 | |
5005acfe VZ |
7238 | enablestring= |
7239 | echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6 | |
de6dab5f | 7240 | echo "configure:7241: checking for --${enablestring:-enable}-treectrl" >&5 |
10f2d63a VZ |
7241 | no_cache=0 |
7242 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7243 | if test "${enable_treectrl+set}" = set; then | |
7244 | enableval="$enable_treectrl" | |
a0b9e27f | 7245 | |
10f2d63a VZ |
7246 | if test "$enableval" = yes; then |
7247 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7248 | else | |
7249 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7250 | fi | |
a0b9e27f | 7251 | |
10f2d63a | 7252 | else |
a0b9e27f | 7253 | |
10f2d63a VZ |
7254 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7255 | if test "x$LINE" != x ; then | |
7256 | eval "DEFAULT_$LINE" | |
7257 | else | |
7258 | no_cache=1 | |
7259 | fi | |
7260 | ||
7261 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
a0b9e27f MB |
7262 | |
7263 | fi | |
10f2d63a VZ |
7264 | |
7265 | ||
1e6feb95 VZ |
7266 | eval "$ac_cv_use_treectrl" |
7267 | if test "$no_cache" != 1; then | |
7268 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7269 | fi | |
7270 | ||
7271 | if test "$wxUSE_TREECTRL" = yes; then | |
a0b9e27f | 7272 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7273 | else |
a0b9e27f | 7274 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7275 | fi |
a0b9e27f | 7276 | |
1e6feb95 | 7277 | |
5005acfe VZ |
7278 | enablestring= |
7279 | echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6 | |
de6dab5f | 7280 | echo "configure:7281: checking for --${enablestring:-enable}-tipwindow" >&5 |
9926e4a4 VZ |
7281 | no_cache=0 |
7282 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7283 | if test "${enable_tipwindow+set}" = set; then | |
7284 | enableval="$enable_tipwindow" | |
a0b9e27f | 7285 | |
9926e4a4 VZ |
7286 | if test "$enableval" = yes; then |
7287 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7288 | else | |
7289 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7290 | fi | |
a0b9e27f | 7291 | |
9926e4a4 | 7292 | else |
a0b9e27f | 7293 | |
9926e4a4 VZ |
7294 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
7295 | if test "x$LINE" != x ; then | |
7296 | eval "DEFAULT_$LINE" | |
7297 | else | |
7298 | no_cache=1 | |
7299 | fi | |
7300 | ||
7301 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
a0b9e27f MB |
7302 | |
7303 | fi | |
9926e4a4 VZ |
7304 | |
7305 | ||
7306 | eval "$ac_cv_use_tipwindow" | |
7307 | if test "$no_cache" != 1; then | |
7308 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7309 | fi | |
7310 | ||
7311 | if test "$wxUSE_TIPWINDOW" = yes; then | |
a0b9e27f | 7312 | echo "$ac_t""yes" 1>&6 |
9926e4a4 | 7313 | else |
a0b9e27f | 7314 | echo "$ac_t""no" 1>&6 |
9926e4a4 | 7315 | fi |
a0b9e27f | 7316 | |
9926e4a4 | 7317 | |
5005acfe VZ |
7318 | enablestring= |
7319 | echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6 | |
de6dab5f | 7320 | echo "configure:7321: checking for --${enablestring:-enable}-popupwin" >&5 |
9f41d601 RR |
7321 | no_cache=0 |
7322 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7323 | if test "${enable_popupwin+set}" = set; then | |
7324 | enableval="$enable_popupwin" | |
a0b9e27f | 7325 | |
9f41d601 RR |
7326 | if test "$enableval" = yes; then |
7327 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7328 | else | |
7329 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7330 | fi | |
a0b9e27f | 7331 | |
9f41d601 | 7332 | else |
a0b9e27f | 7333 | |
9f41d601 RR |
7334 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
7335 | if test "x$LINE" != x ; then | |
7336 | eval "DEFAULT_$LINE" | |
7337 | else | |
7338 | no_cache=1 | |
7339 | fi | |
7340 | ||
7341 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
a0b9e27f MB |
7342 | |
7343 | fi | |
9f41d601 RR |
7344 | |
7345 | ||
7346 | eval "$ac_cv_use_popupwin" | |
7347 | if test "$no_cache" != 1; then | |
7348 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7349 | fi | |
7350 | ||
7351 | if test "$wxUSE_POPUPWIN" = yes; then | |
a0b9e27f | 7352 | echo "$ac_t""yes" 1>&6 |
9f41d601 | 7353 | else |
a0b9e27f | 7354 | echo "$ac_t""no" 1>&6 |
9f41d601 | 7355 | fi |
a0b9e27f | 7356 | |
52127426 | 7357 | |
8284b0c5 MB |
7358 | |
7359 | ||
5005acfe VZ |
7360 | enablestring= |
7361 | echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6 | |
de6dab5f | 7362 | echo "configure:7363: checking for --${enablestring:-enable}-commondlg" >&5 |
1e6feb95 VZ |
7363 | no_cache=0 |
7364 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7365 | if test "${enable_commondlg+set}" = set; then | |
7366 | enableval="$enable_commondlg" | |
a0b9e27f | 7367 | |
1e6feb95 VZ |
7368 | if test "$enableval" = yes; then |
7369 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7370 | else | |
7371 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7372 | fi | |
a0b9e27f | 7373 | |
1e6feb95 | 7374 | else |
a0b9e27f | 7375 | |
1e6feb95 VZ |
7376 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
7377 | if test "x$LINE" != x ; then | |
7378 | eval "DEFAULT_$LINE" | |
7379 | else | |
7380 | no_cache=1 | |
7381 | fi | |
7382 | ||
7383 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
a0b9e27f MB |
7384 | |
7385 | fi | |
1e6feb95 VZ |
7386 | |
7387 | ||
7388 | eval "$ac_cv_use_commondlg" | |
7389 | if test "$no_cache" != 1; then | |
7390 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7391 | fi | |
7392 | ||
7393 | if test "$wxUSE_COMMONDLGS" = yes; then | |
a0b9e27f | 7394 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7395 | else |
a0b9e27f | 7396 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7397 | fi |
a0b9e27f | 7398 | |
1e6feb95 | 7399 | |
5005acfe VZ |
7400 | enablestring= |
7401 | echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6 | |
de6dab5f | 7402 | echo "configure:7403: checking for --${enablestring:-enable}-choicedlg" >&5 |
1e6feb95 VZ |
7403 | no_cache=0 |
7404 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7405 | if test "${enable_choicedlg+set}" = set; then | |
7406 | enableval="$enable_choicedlg" | |
a0b9e27f | 7407 | |
1e6feb95 VZ |
7408 | if test "$enableval" = yes; then |
7409 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7410 | else | |
7411 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7412 | fi | |
a0b9e27f | 7413 | |
1e6feb95 | 7414 | else |
a0b9e27f | 7415 | |
1e6feb95 VZ |
7416 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
7417 | if test "x$LINE" != x ; then | |
7418 | eval "DEFAULT_$LINE" | |
7419 | else | |
7420 | no_cache=1 | |
7421 | fi | |
7422 | ||
7423 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
a0b9e27f MB |
7424 | |
7425 | fi | |
1e6feb95 VZ |
7426 | |
7427 | ||
7428 | eval "$ac_cv_use_choicedlg" | |
7429 | if test "$no_cache" != 1; then | |
7430 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7431 | fi | |
7432 | ||
7433 | if test "$wxUSE_CHOICEDLG" = yes; then | |
a0b9e27f | 7434 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7435 | else |
a0b9e27f | 7436 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7437 | fi |
a0b9e27f | 7438 | |
1e6feb95 | 7439 | |
5005acfe VZ |
7440 | enablestring= |
7441 | echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6 | |
de6dab5f | 7442 | echo "configure:7443: checking for --${enablestring:-enable}-coldlg" >&5 |
1e6feb95 VZ |
7443 | no_cache=0 |
7444 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7445 | if test "${enable_coldlg+set}" = set; then | |
7446 | enableval="$enable_coldlg" | |
a0b9e27f | 7447 | |
1e6feb95 VZ |
7448 | if test "$enableval" = yes; then |
7449 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7450 | else | |
7451 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7452 | fi | |
a0b9e27f | 7453 | |
1e6feb95 | 7454 | else |
a0b9e27f | 7455 | |
1e6feb95 VZ |
7456 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
7457 | if test "x$LINE" != x ; then | |
7458 | eval "DEFAULT_$LINE" | |
7459 | else | |
7460 | no_cache=1 | |
7461 | fi | |
7462 | ||
7463 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
a0b9e27f MB |
7464 | |
7465 | fi | |
1e6feb95 VZ |
7466 | |
7467 | ||
7468 | eval "$ac_cv_use_coldlg" | |
7469 | if test "$no_cache" != 1; then | |
7470 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7471 | fi | |
7472 | ||
7473 | if test "$wxUSE_COLOURDLG" = yes; then | |
a0b9e27f | 7474 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7475 | else |
a0b9e27f | 7476 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7477 | fi |
a0b9e27f | 7478 | |
1e6feb95 | 7479 | |
5005acfe VZ |
7480 | enablestring= |
7481 | echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6 | |
de6dab5f | 7482 | echo "configure:7483: checking for --${enablestring:-enable}-filedlg" >&5 |
1e6feb95 VZ |
7483 | no_cache=0 |
7484 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7485 | if test "${enable_filedlg+set}" = set; then | |
7486 | enableval="$enable_filedlg" | |
a0b9e27f | 7487 | |
1e6feb95 VZ |
7488 | if test "$enableval" = yes; then |
7489 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7490 | else | |
7491 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7492 | fi | |
a0b9e27f | 7493 | |
1e6feb95 | 7494 | else |
a0b9e27f | 7495 | |
1e6feb95 VZ |
7496 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
7497 | if test "x$LINE" != x ; then | |
7498 | eval "DEFAULT_$LINE" | |
7499 | else | |
7500 | no_cache=1 | |
7501 | fi | |
7502 | ||
7503 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
a0b9e27f MB |
7504 | |
7505 | fi | |
1e6feb95 VZ |
7506 | |
7507 | ||
7508 | eval "$ac_cv_use_filedlg" | |
7509 | if test "$no_cache" != 1; then | |
7510 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7511 | fi | |
7512 | ||
7513 | if test "$wxUSE_FILEDLG" = yes; then | |
a0b9e27f | 7514 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7515 | else |
a0b9e27f | 7516 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7517 | fi |
a0b9e27f | 7518 | |
1e6feb95 | 7519 | |
5005acfe VZ |
7520 | enablestring= |
7521 | echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6 | |
de6dab5f | 7522 | echo "configure:7523: checking for --${enablestring:-enable}-finddlg" >&5 |
8db37e06 | 7523 | no_cache=0 |
69d27ff7 MB |
7524 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7525 | if test "${enable_finddlg+set}" = set; then | |
7526 | enableval="$enable_finddlg" | |
a0b9e27f | 7527 | |
8db37e06 | 7528 | if test "$enableval" = yes; then |
69d27ff7 | 7529 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7530 | else |
69d27ff7 | 7531 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 7532 | fi |
a0b9e27f | 7533 | |
8db37e06 | 7534 | else |
a0b9e27f | 7535 | |
8db37e06 VZ |
7536 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
7537 | if test "x$LINE" != x ; then | |
7538 | eval "DEFAULT_$LINE" | |
7539 | else | |
7540 | no_cache=1 | |
7541 | fi | |
7542 | ||
69d27ff7 | 7543 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
a0b9e27f MB |
7544 | |
7545 | fi | |
8db37e06 VZ |
7546 | |
7547 | ||
69d27ff7 | 7548 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7549 | if test "$no_cache" != 1; then |
69d27ff7 | 7550 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7551 | fi |
7552 | ||
7553 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
a0b9e27f | 7554 | echo "$ac_t""yes" 1>&6 |
8db37e06 | 7555 | else |
a0b9e27f | 7556 | echo "$ac_t""no" 1>&6 |
8db37e06 | 7557 | fi |
a0b9e27f | 7558 | |
8db37e06 | 7559 | |
5005acfe VZ |
7560 | enablestring= |
7561 | echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6 | |
de6dab5f | 7562 | echo "configure:7563: checking for --${enablestring:-enable}-fontdlg" >&5 |
1e6feb95 VZ |
7563 | no_cache=0 |
7564 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7565 | if test "${enable_fontdlg+set}" = set; then | |
7566 | enableval="$enable_fontdlg" | |
a0b9e27f | 7567 | |
1e6feb95 VZ |
7568 | if test "$enableval" = yes; then |
7569 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7570 | else | |
7571 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7572 | fi | |
a0b9e27f | 7573 | |
1e6feb95 | 7574 | else |
a0b9e27f | 7575 | |
1e6feb95 VZ |
7576 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
7577 | if test "x$LINE" != x ; then | |
7578 | eval "DEFAULT_$LINE" | |
7579 | else | |
7580 | no_cache=1 | |
7581 | fi | |
7582 | ||
7583 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
a0b9e27f MB |
7584 | |
7585 | fi | |
1e6feb95 VZ |
7586 | |
7587 | ||
7588 | eval "$ac_cv_use_fontdlg" | |
7589 | if test "$no_cache" != 1; then | |
7590 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7591 | fi | |
7592 | ||
7593 | if test "$wxUSE_FONTDLG" = yes; then | |
a0b9e27f | 7594 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7595 | else |
a0b9e27f | 7596 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7597 | fi |
a0b9e27f | 7598 | |
1e6feb95 | 7599 | |
5005acfe VZ |
7600 | enablestring= |
7601 | echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6 | |
de6dab5f | 7602 | echo "configure:7603: checking for --${enablestring:-enable}-dirdlg" >&5 |
1e6feb95 VZ |
7603 | no_cache=0 |
7604 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7605 | if test "${enable_dirdlg+set}" = set; then | |
7606 | enableval="$enable_dirdlg" | |
a0b9e27f | 7607 | |
1e6feb95 VZ |
7608 | if test "$enableval" = yes; then |
7609 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7610 | else | |
7611 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7612 | fi | |
a0b9e27f | 7613 | |
1e6feb95 | 7614 | else |
a0b9e27f | 7615 | |
1e6feb95 VZ |
7616 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
7617 | if test "x$LINE" != x ; then | |
7618 | eval "DEFAULT_$LINE" | |
7619 | else | |
7620 | no_cache=1 | |
7621 | fi | |
7622 | ||
7623 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
a0b9e27f MB |
7624 | |
7625 | fi | |
1e6feb95 VZ |
7626 | |
7627 | ||
7628 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7629 | if test "$no_cache" != 1; then |
1e6feb95 | 7630 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7631 | fi |
7632 | ||
1e6feb95 | 7633 | if test "$wxUSE_DIRDLG" = yes; then |
a0b9e27f | 7634 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7635 | else |
a0b9e27f | 7636 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7637 | fi |
a0b9e27f | 7638 | |
698dcdb6 | 7639 | |
5005acfe VZ |
7640 | enablestring= |
7641 | echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6 | |
de6dab5f | 7642 | echo "configure:7643: checking for --${enablestring:-enable}-msgdlg" >&5 |
10f2d63a | 7643 | no_cache=0 |
1e6feb95 VZ |
7644 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7645 | if test "${enable_msgdlg+set}" = set; then | |
7646 | enableval="$enable_msgdlg" | |
a0b9e27f | 7647 | |
10f2d63a | 7648 | if test "$enableval" = yes; then |
1e6feb95 | 7649 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7650 | else |
1e6feb95 | 7651 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7652 | fi |
a0b9e27f | 7653 | |
10f2d63a | 7654 | else |
a0b9e27f | 7655 | |
1e6feb95 | 7656 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7657 | if test "x$LINE" != x ; then |
7658 | eval "DEFAULT_$LINE" | |
7659 | else | |
7660 | no_cache=1 | |
7661 | fi | |
7662 | ||
1e6feb95 | 7663 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
a0b9e27f MB |
7664 | |
7665 | fi | |
10f2d63a VZ |
7666 | |
7667 | ||
1e6feb95 | 7668 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7669 | if test "$no_cache" != 1; then |
1e6feb95 | 7670 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7671 | fi |
7672 | ||
1e6feb95 | 7673 | if test "$wxUSE_MSGDLG" = yes; then |
a0b9e27f | 7674 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7675 | else |
a0b9e27f | 7676 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7677 | fi |
a0b9e27f | 7678 | |
10f2d63a | 7679 | |
5005acfe VZ |
7680 | enablestring= |
7681 | echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6 | |
de6dab5f | 7682 | echo "configure:7683: checking for --${enablestring:-enable}-numberdlg" >&5 |
10f2d63a | 7683 | no_cache=0 |
1e6feb95 VZ |
7684 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7685 | if test "${enable_numberdlg+set}" = set; then | |
7686 | enableval="$enable_numberdlg" | |
a0b9e27f | 7687 | |
10f2d63a | 7688 | if test "$enableval" = yes; then |
1e6feb95 | 7689 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7690 | else |
1e6feb95 | 7691 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7692 | fi |
a0b9e27f | 7693 | |
10f2d63a | 7694 | else |
a0b9e27f | 7695 | |
1e6feb95 | 7696 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7697 | if test "x$LINE" != x ; then |
7698 | eval "DEFAULT_$LINE" | |
7699 | else | |
7700 | no_cache=1 | |
7701 | fi | |
7702 | ||
1e6feb95 | 7703 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
a0b9e27f MB |
7704 | |
7705 | fi | |
10f2d63a VZ |
7706 | |
7707 | ||
1e6feb95 | 7708 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7709 | if test "$no_cache" != 1; then |
1e6feb95 | 7710 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7711 | fi |
7712 | ||
1e6feb95 | 7713 | if test "$wxUSE_NUMBERDLG" = yes; then |
a0b9e27f | 7714 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7715 | else |
a0b9e27f | 7716 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7717 | fi |
a0b9e27f | 7718 | |
10f2d63a | 7719 | |
5005acfe VZ |
7720 | enablestring= |
7721 | echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6 | |
de6dab5f | 7722 | echo "configure:7723: checking for --${enablestring:-enable}-splash" >&5 |
cbca9943 VZ |
7723 | no_cache=0 |
7724 | # Check whether --enable-splash or --disable-splash was given. | |
7725 | if test "${enable_splash+set}" = set; then | |
7726 | enableval="$enable_splash" | |
a0b9e27f | 7727 | |
cbca9943 VZ |
7728 | if test "$enableval" = yes; then |
7729 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7730 | else | |
7731 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7732 | fi | |
a0b9e27f | 7733 | |
cbca9943 | 7734 | else |
a0b9e27f | 7735 | |
cbca9943 VZ |
7736 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
7737 | if test "x$LINE" != x ; then | |
7738 | eval "DEFAULT_$LINE" | |
7739 | else | |
7740 | no_cache=1 | |
7741 | fi | |
7742 | ||
7743 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
a0b9e27f MB |
7744 | |
7745 | fi | |
cbca9943 VZ |
7746 | |
7747 | ||
7748 | eval "$ac_cv_use_splash" | |
7749 | if test "$no_cache" != 1; then | |
7750 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7751 | fi | |
7752 | ||
7753 | if test "$wxUSE_SPLASH" = yes; then | |
a0b9e27f | 7754 | echo "$ac_t""yes" 1>&6 |
cbca9943 | 7755 | else |
a0b9e27f | 7756 | echo "$ac_t""no" 1>&6 |
cbca9943 | 7757 | fi |
a0b9e27f | 7758 | |
cbca9943 | 7759 | |
5005acfe VZ |
7760 | enablestring= |
7761 | echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6 | |
de6dab5f | 7762 | echo "configure:7763: checking for --${enablestring:-enable}-textdlg" >&5 |
10f2d63a VZ |
7763 | no_cache=0 |
7764 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7765 | if test "${enable_textdlg+set}" = set; then | |
7766 | enableval="$enable_textdlg" | |
a0b9e27f | 7767 | |
10f2d63a VZ |
7768 | if test "$enableval" = yes; then |
7769 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7770 | else | |
7771 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7772 | fi | |
a0b9e27f | 7773 | |
10f2d63a | 7774 | else |
a0b9e27f | 7775 | |
10f2d63a VZ |
7776 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7777 | if test "x$LINE" != x ; then | |
7778 | eval "DEFAULT_$LINE" | |
7779 | else | |
7780 | no_cache=1 | |
7781 | fi | |
7782 | ||
7783 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
a0b9e27f MB |
7784 | |
7785 | fi | |
10f2d63a VZ |
7786 | |
7787 | ||
7788 | eval "$ac_cv_use_textdlg" | |
7789 | if test "$no_cache" != 1; then | |
7790 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7791 | fi | |
7792 | ||
7793 | if test "$wxUSE_TEXTDLG" = yes; then | |
a0b9e27f | 7794 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7795 | else |
a0b9e27f | 7796 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7797 | fi |
a0b9e27f | 7798 | |
10f2d63a | 7799 | |
5005acfe VZ |
7800 | enablestring= |
7801 | echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6 | |
de6dab5f | 7802 | echo "configure:7803: checking for --${enablestring:-enable}-tipdlg" >&5 |
10f2d63a VZ |
7803 | no_cache=0 |
7804 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7805 | if test "${enable_tipdlg+set}" = set; then | |
7806 | enableval="$enable_tipdlg" | |
a0b9e27f | 7807 | |
10f2d63a VZ |
7808 | if test "$enableval" = yes; then |
7809 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7810 | else | |
7811 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7812 | fi | |
a0b9e27f | 7813 | |
10f2d63a | 7814 | else |
a0b9e27f | 7815 | |
10f2d63a VZ |
7816 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7817 | if test "x$LINE" != x ; then | |
7818 | eval "DEFAULT_$LINE" | |
7819 | else | |
7820 | no_cache=1 | |
7821 | fi | |
7822 | ||
7823 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
a0b9e27f MB |
7824 | |
7825 | fi | |
10f2d63a VZ |
7826 | |
7827 | ||
7828 | eval "$ac_cv_use_tipdlg" | |
7829 | if test "$no_cache" != 1; then | |
7830 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7831 | fi | |
7832 | ||
7833 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
a0b9e27f | 7834 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7835 | else |
a0b9e27f | 7836 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7837 | fi |
a0b9e27f | 7838 | |
10f2d63a | 7839 | |
5005acfe VZ |
7840 | enablestring= |
7841 | echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6 | |
de6dab5f | 7842 | echo "configure:7843: checking for --${enablestring:-enable}-progressdlg" >&5 |
10f2d63a VZ |
7843 | no_cache=0 |
7844 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7845 | if test "${enable_progressdlg+set}" = set; then | |
7846 | enableval="$enable_progressdlg" | |
a0b9e27f | 7847 | |
10f2d63a VZ |
7848 | if test "$enableval" = yes; then |
7849 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7850 | else | |
7851 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7852 | fi | |
a0b9e27f | 7853 | |
10f2d63a | 7854 | else |
a0b9e27f | 7855 | |
10f2d63a VZ |
7856 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7857 | if test "x$LINE" != x ; then | |
7858 | eval "DEFAULT_$LINE" | |
7859 | else | |
7860 | no_cache=1 | |
7861 | fi | |
7862 | ||
7863 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
a0b9e27f MB |
7864 | |
7865 | fi | |
10f2d63a VZ |
7866 | |
7867 | ||
7868 | eval "$ac_cv_use_progressdlg" | |
7869 | if test "$no_cache" != 1; then | |
7870 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7871 | fi | |
7872 | ||
7873 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
a0b9e27f | 7874 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7875 | else |
a0b9e27f | 7876 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7877 | fi |
a0b9e27f | 7878 | |
10f2d63a | 7879 | |
5005acfe VZ |
7880 | enablestring= |
7881 | echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6 | |
de6dab5f | 7882 | echo "configure:7883: checking for --${enablestring:-enable}-wizarddlg" >&5 |
b1f5d087 VZ |
7883 | no_cache=0 |
7884 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7885 | if test "${enable_wizarddlg+set}" = set; then | |
7886 | enableval="$enable_wizarddlg" | |
a0b9e27f | 7887 | |
b1f5d087 VZ |
7888 | if test "$enableval" = yes; then |
7889 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7890 | else | |
7891 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7892 | fi | |
a0b9e27f | 7893 | |
b1f5d087 | 7894 | else |
a0b9e27f | 7895 | |
b1f5d087 VZ |
7896 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
7897 | if test "x$LINE" != x ; then | |
7898 | eval "DEFAULT_$LINE" | |
7899 | else | |
7900 | no_cache=1 | |
7901 | fi | |
7902 | ||
7903 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
a0b9e27f MB |
7904 | |
7905 | fi | |
b1f5d087 VZ |
7906 | |
7907 | ||
7908 | eval "$ac_cv_use_wizarddlg" | |
7909 | if test "$no_cache" != 1; then | |
7910 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7911 | fi | |
7912 | ||
7913 | if test "$wxUSE_WIZARDDLG" = yes; then | |
a0b9e27f | 7914 | echo "$ac_t""yes" 1>&6 |
b1f5d087 | 7915 | else |
a0b9e27f | 7916 | echo "$ac_t""no" 1>&6 |
b1f5d087 | 7917 | fi |
a0b9e27f | 7918 | |
8284b0c5 MB |
7919 | |
7920 | ||
52127426 | 7921 | |
5005acfe VZ |
7922 | enablestring= |
7923 | echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6 | |
de6dab5f | 7924 | echo "configure:7925: checking for --${enablestring:-enable}-menus" >&5 |
1e6feb95 VZ |
7925 | no_cache=0 |
7926 | # Check whether --enable-menus or --disable-menus was given. | |
7927 | if test "${enable_menus+set}" = set; then | |
7928 | enableval="$enable_menus" | |
a0b9e27f | 7929 | |
1e6feb95 VZ |
7930 | if test "$enableval" = yes; then |
7931 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7932 | else | |
7933 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7934 | fi | |
a0b9e27f | 7935 | |
1e6feb95 | 7936 | else |
a0b9e27f | 7937 | |
1e6feb95 VZ |
7938 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
7939 | if test "x$LINE" != x ; then | |
7940 | eval "DEFAULT_$LINE" | |
7941 | else | |
7942 | no_cache=1 | |
7943 | fi | |
7944 | ||
7945 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
a0b9e27f MB |
7946 | |
7947 | fi | |
1e6feb95 VZ |
7948 | |
7949 | ||
7950 | eval "$ac_cv_use_menus" | |
7951 | if test "$no_cache" != 1; then | |
7952 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7953 | fi | |
7954 | ||
7955 | if test "$wxUSE_MENUS" = yes; then | |
a0b9e27f | 7956 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7957 | else |
a0b9e27f | 7958 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7959 | fi |
a0b9e27f | 7960 | |
1e6feb95 | 7961 | |
5005acfe VZ |
7962 | enablestring= |
7963 | echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6 | |
de6dab5f | 7964 | echo "configure:7965: checking for --${enablestring:-enable}-miniframe" >&5 |
10f2d63a VZ |
7965 | no_cache=0 |
7966 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7967 | if test "${enable_miniframe+set}" = set; then | |
7968 | enableval="$enable_miniframe" | |
a0b9e27f | 7969 | |
10f2d63a VZ |
7970 | if test "$enableval" = yes; then |
7971 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7972 | else | |
7973 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7974 | fi | |
a0b9e27f | 7975 | |
10f2d63a | 7976 | else |
a0b9e27f | 7977 | |
10f2d63a VZ |
7978 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7979 | if test "x$LINE" != x ; then | |
7980 | eval "DEFAULT_$LINE" | |
7981 | else | |
7982 | no_cache=1 | |
7983 | fi | |
7984 | ||
7985 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
a0b9e27f MB |
7986 | |
7987 | fi | |
10f2d63a VZ |
7988 | |
7989 | ||
7990 | eval "$ac_cv_use_miniframe" | |
7991 | if test "$no_cache" != 1; then | |
7992 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7993 | fi | |
7994 | ||
7995 | if test "$wxUSE_MINIFRAME" = yes; then | |
a0b9e27f | 7996 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7997 | else |
a0b9e27f | 7998 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7999 | fi |
a0b9e27f | 8000 | |
10f2d63a | 8001 | |
5005acfe VZ |
8002 | enablestring= |
8003 | echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6 | |
de6dab5f | 8004 | echo "configure:8005: checking for --${enablestring:-enable}-tooltips" >&5 |
10f2d63a VZ |
8005 | no_cache=0 |
8006 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8007 | if test "${enable_tooltips+set}" = set; then | |
8008 | enableval="$enable_tooltips" | |
a0b9e27f | 8009 | |
10f2d63a VZ |
8010 | if test "$enableval" = yes; then |
8011 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8012 | else | |
8013 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8014 | fi | |
a0b9e27f | 8015 | |
10f2d63a | 8016 | else |
a0b9e27f | 8017 | |
10f2d63a VZ |
8018 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
8019 | if test "x$LINE" != x ; then | |
8020 | eval "DEFAULT_$LINE" | |
8021 | else | |
8022 | no_cache=1 | |
8023 | fi | |
8024 | ||
8025 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
a0b9e27f MB |
8026 | |
8027 | fi | |
10f2d63a VZ |
8028 | |
8029 | ||
8030 | eval "$ac_cv_use_tooltips" | |
8031 | if test "$no_cache" != 1; then | |
8032 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8033 | fi | |
8034 | ||
8035 | if test "$wxUSE_TOOLTIPS" = yes; then | |
a0b9e27f | 8036 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8037 | else |
a0b9e27f | 8038 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8039 | fi |
a0b9e27f | 8040 | |
10f2d63a | 8041 | |
5005acfe VZ |
8042 | enablestring= |
8043 | echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6 | |
de6dab5f | 8044 | echo "configure:8045: checking for --${enablestring:-enable}-splines" >&5 |
10f2d63a VZ |
8045 | no_cache=0 |
8046 | # Check whether --enable-splines or --disable-splines was given. | |
8047 | if test "${enable_splines+set}" = set; then | |
8048 | enableval="$enable_splines" | |
a0b9e27f | 8049 | |
10f2d63a VZ |
8050 | if test "$enableval" = yes; then |
8051 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8052 | else | |
8053 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8054 | fi | |
a0b9e27f | 8055 | |
10f2d63a | 8056 | else |
a0b9e27f | 8057 | |
10f2d63a VZ |
8058 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
8059 | if test "x$LINE" != x ; then | |
8060 | eval "DEFAULT_$LINE" | |
8061 | else | |
8062 | no_cache=1 | |
8063 | fi | |
8064 | ||
8065 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
a0b9e27f MB |
8066 | |
8067 | fi | |
10f2d63a VZ |
8068 | |
8069 | ||
8070 | eval "$ac_cv_use_splines" | |
8071 | if test "$no_cache" != 1; then | |
8072 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8073 | fi | |
8074 | ||
8075 | if test "$wxUSE_SPLINES" = yes; then | |
a0b9e27f | 8076 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8077 | else |
a0b9e27f | 8078 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8079 | fi |
a0b9e27f | 8080 | |
10f2d63a | 8081 | |
5005acfe VZ |
8082 | enablestring= |
8083 | echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6 | |
de6dab5f | 8084 | echo "configure:8085: checking for --${enablestring:-enable}-validators" >&5 |
10f2d63a VZ |
8085 | no_cache=0 |
8086 | # Check whether --enable-validators or --disable-validators was given. | |
8087 | if test "${enable_validators+set}" = set; then | |
8088 | enableval="$enable_validators" | |
a0b9e27f | 8089 | |
10f2d63a VZ |
8090 | if test "$enableval" = yes; then |
8091 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8092 | else | |
8093 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8094 | fi | |
a0b9e27f | 8095 | |
10f2d63a | 8096 | else |
a0b9e27f | 8097 | |
10f2d63a VZ |
8098 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
8099 | if test "x$LINE" != x ; then | |
8100 | eval "DEFAULT_$LINE" | |
8101 | else | |
8102 | no_cache=1 | |
8103 | fi | |
8104 | ||
8105 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
a0b9e27f MB |
8106 | |
8107 | fi | |
10f2d63a VZ |
8108 | |
8109 | ||
8110 | eval "$ac_cv_use_validators" | |
8111 | if test "$no_cache" != 1; then | |
8112 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8113 | fi | |
8114 | ||
8115 | if test "$wxUSE_VALIDATORS" = yes; then | |
a0b9e27f | 8116 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8117 | else |
a0b9e27f | 8118 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8119 | fi |
a0b9e27f | 8120 | |
10f2d63a | 8121 | |
5005acfe VZ |
8122 | enablestring= |
8123 | echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6 | |
de6dab5f | 8124 | echo "configure:8125: checking for --${enablestring:-enable}-busyinfo" >&5 |
10f2d63a VZ |
8125 | no_cache=0 |
8126 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8127 | if test "${enable_busyinfo+set}" = set; then | |
8128 | enableval="$enable_busyinfo" | |
a0b9e27f | 8129 | |
10f2d63a VZ |
8130 | if test "$enableval" = yes; then |
8131 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8132 | else | |
8133 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8134 | fi | |
a0b9e27f | 8135 | |
10f2d63a | 8136 | else |
a0b9e27f | 8137 | |
10f2d63a VZ |
8138 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8139 | if test "x$LINE" != x ; then | |
8140 | eval "DEFAULT_$LINE" | |
8141 | else | |
8142 | no_cache=1 | |
8143 | fi | |
8144 | ||
8145 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
a0b9e27f MB |
8146 | |
8147 | fi | |
10f2d63a VZ |
8148 | |
8149 | ||
8150 | eval "$ac_cv_use_busyinfo" | |
8151 | if test "$no_cache" != 1; then | |
8152 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8153 | fi | |
8154 | ||
8155 | if test "$wxUSE_BUSYINFO" = yes; then | |
a0b9e27f | 8156 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8157 | else |
a0b9e27f | 8158 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8159 | fi |
a0b9e27f | 8160 | |
10f2d63a | 8161 | |
5005acfe VZ |
8162 | enablestring= |
8163 | echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6 | |
de6dab5f | 8164 | echo "configure:8165: checking for --${enablestring:-enable}-joystick" >&5 |
f6bcfd97 BP |
8165 | no_cache=0 |
8166 | # Check whether --enable-joystick or --disable-joystick was given. | |
8167 | if test "${enable_joystick+set}" = set; then | |
8168 | enableval="$enable_joystick" | |
a0b9e27f | 8169 | |
f6bcfd97 BP |
8170 | if test "$enableval" = yes; then |
8171 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8172 | else | |
8173 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8174 | fi | |
a0b9e27f | 8175 | |
f6bcfd97 | 8176 | else |
a0b9e27f | 8177 | |
f6bcfd97 BP |
8178 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8179 | if test "x$LINE" != x ; then | |
8180 | eval "DEFAULT_$LINE" | |
8181 | else | |
8182 | no_cache=1 | |
8183 | fi | |
8184 | ||
8185 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
a0b9e27f MB |
8186 | |
8187 | fi | |
f6bcfd97 BP |
8188 | |
8189 | ||
8190 | eval "$ac_cv_use_joystick" | |
8191 | if test "$no_cache" != 1; then | |
8192 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8193 | fi | |
8194 | ||
8195 | if test "$wxUSE_JOYSTICK" = yes; then | |
a0b9e27f | 8196 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8197 | else |
a0b9e27f | 8198 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8199 | fi |
a0b9e27f | 8200 | |
698dcdb6 | 8201 | |
5005acfe VZ |
8202 | enablestring= |
8203 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
de6dab5f | 8204 | echo "configure:8205: checking for --${enablestring:-enable}-metafile" >&5 |
1e6feb95 VZ |
8205 | no_cache=0 |
8206 | # Check whether --enable-metafile or --disable-metafile was given. | |
8207 | if test "${enable_metafile+set}" = set; then | |
8208 | enableval="$enable_metafile" | |
a0b9e27f | 8209 | |
1e6feb95 VZ |
8210 | if test "$enableval" = yes; then |
8211 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8212 | else | |
8213 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8214 | fi | |
a0b9e27f | 8215 | |
1e6feb95 | 8216 | else |
a0b9e27f | 8217 | |
1e6feb95 VZ |
8218 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
8219 | if test "x$LINE" != x ; then | |
8220 | eval "DEFAULT_$LINE" | |
8221 | else | |
8222 | no_cache=1 | |
8223 | fi | |
8224 | ||
8225 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
8226 | |
8227 | fi | |
1e6feb95 VZ |
8228 | |
8229 | ||
8230 | eval "$ac_cv_use_metafile" | |
8231 | if test "$no_cache" != 1; then | |
8232 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8233 | fi | |
8234 | ||
8235 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 8236 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8237 | else |
a0b9e27f | 8238 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8239 | fi |
a0b9e27f | 8240 | |
1e6feb95 | 8241 | |
5005acfe VZ |
8242 | enablestring= |
8243 | echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6 | |
de6dab5f | 8244 | echo "configure:8245: checking for --${enablestring:-enable}-dragimage" >&5 |
24fd6d87 VZ |
8245 | no_cache=0 |
8246 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8247 | if test "${enable_dragimage+set}" = set; then | |
8248 | enableval="$enable_dragimage" | |
a0b9e27f | 8249 | |
24fd6d87 VZ |
8250 | if test "$enableval" = yes; then |
8251 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8252 | else | |
8253 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8254 | fi | |
a0b9e27f | 8255 | |
24fd6d87 | 8256 | else |
a0b9e27f | 8257 | |
24fd6d87 VZ |
8258 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
8259 | if test "x$LINE" != x ; then | |
8260 | eval "DEFAULT_$LINE" | |
8261 | else | |
8262 | no_cache=1 | |
8263 | fi | |
8264 | ||
8265 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
a0b9e27f MB |
8266 | |
8267 | fi | |
24fd6d87 VZ |
8268 | |
8269 | ||
8270 | eval "$ac_cv_use_dragimage" | |
8271 | if test "$no_cache" != 1; then | |
8272 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8273 | fi | |
8274 | ||
8275 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
a0b9e27f | 8276 | echo "$ac_t""yes" 1>&6 |
24fd6d87 | 8277 | else |
a0b9e27f | 8278 | echo "$ac_t""no" 1>&6 |
24fd6d87 | 8279 | fi |
a0b9e27f | 8280 | |
52127426 | 8281 | |
8284b0c5 MB |
8282 | |
8283 | ||
5005acfe VZ |
8284 | enablestring= |
8285 | echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6 | |
de6dab5f | 8286 | echo "configure:8287: checking for --${enablestring:-enable}-palette" >&5 |
edae8572 VZ |
8287 | no_cache=0 |
8288 | # Check whether --enable-palette or --disable-palette was given. | |
8289 | if test "${enable_palette+set}" = set; then | |
8290 | enableval="$enable_palette" | |
a0b9e27f | 8291 | |
edae8572 VZ |
8292 | if test "$enableval" = yes; then |
8293 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8294 | else | |
8295 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8296 | fi | |
a0b9e27f | 8297 | |
edae8572 | 8298 | else |
a0b9e27f | 8299 | |
edae8572 VZ |
8300 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
8301 | if test "x$LINE" != x ; then | |
8302 | eval "DEFAULT_$LINE" | |
8303 | else | |
8304 | no_cache=1 | |
8305 | fi | |
8306 | ||
8307 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
a0b9e27f MB |
8308 | |
8309 | fi | |
edae8572 VZ |
8310 | |
8311 | ||
8312 | eval "$ac_cv_use_palette" | |
8313 | if test "$no_cache" != 1; then | |
8314 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8315 | fi | |
8316 | ||
8317 | if test "$wxUSE_PALETTE" = yes; then | |
a0b9e27f | 8318 | echo "$ac_t""yes" 1>&6 |
edae8572 | 8319 | else |
a0b9e27f | 8320 | echo "$ac_t""no" 1>&6 |
edae8572 | 8321 | fi |
a0b9e27f | 8322 | |
edae8572 | 8323 | |
5005acfe VZ |
8324 | enablestring= |
8325 | echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6 | |
de6dab5f | 8326 | echo "configure:8327: checking for --${enablestring:-enable}-image" >&5 |
0046ff7c VS |
8327 | no_cache=0 |
8328 | # Check whether --enable-image or --disable-image was given. | |
8329 | if test "${enable_image+set}" = set; then | |
8330 | enableval="$enable_image" | |
a0b9e27f | 8331 | |
0046ff7c VS |
8332 | if test "$enableval" = yes; then |
8333 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8334 | else | |
8335 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8336 | fi | |
a0b9e27f | 8337 | |
0046ff7c | 8338 | else |
a0b9e27f | 8339 | |
0046ff7c VS |
8340 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8341 | if test "x$LINE" != x ; then | |
8342 | eval "DEFAULT_$LINE" | |
8343 | else | |
8344 | no_cache=1 | |
8345 | fi | |
8346 | ||
8347 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
a0b9e27f MB |
8348 | |
8349 | fi | |
0046ff7c VS |
8350 | |
8351 | ||
8352 | eval "$ac_cv_use_image" | |
8353 | if test "$no_cache" != 1; then | |
8354 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8355 | fi | |
8356 | ||
8357 | if test "$wxUSE_IMAGE" = yes; then | |
a0b9e27f | 8358 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8359 | else |
a0b9e27f | 8360 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8361 | fi |
a0b9e27f | 8362 | |
0046ff7c | 8363 | |
5005acfe VZ |
8364 | enablestring= |
8365 | echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6 | |
de6dab5f | 8366 | echo "configure:8367: checking for --${enablestring:-enable}-gif" >&5 |
10f2d63a VZ |
8367 | no_cache=0 |
8368 | # Check whether --enable-gif or --disable-gif was given. | |
8369 | if test "${enable_gif+set}" = set; then | |
8370 | enableval="$enable_gif" | |
a0b9e27f | 8371 | |
10f2d63a VZ |
8372 | if test "$enableval" = yes; then |
8373 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8374 | else | |
8375 | ac_cv_use_gif='wxUSE_GIF=no' | |
8376 | fi | |
a0b9e27f | 8377 | |
10f2d63a | 8378 | else |
a0b9e27f | 8379 | |
10f2d63a VZ |
8380 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8381 | if test "x$LINE" != x ; then | |
8382 | eval "DEFAULT_$LINE" | |
8383 | else | |
8384 | no_cache=1 | |
8385 | fi | |
8386 | ||
8387 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
a0b9e27f MB |
8388 | |
8389 | fi | |
10f2d63a VZ |
8390 | |
8391 | ||
8392 | eval "$ac_cv_use_gif" | |
8393 | if test "$no_cache" != 1; then | |
8394 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8395 | fi | |
8396 | ||
8397 | if test "$wxUSE_GIF" = yes; then | |
a0b9e27f | 8398 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8399 | else |
a0b9e27f | 8400 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8401 | fi |
a0b9e27f | 8402 | |
10f2d63a | 8403 | |
5005acfe VZ |
8404 | enablestring= |
8405 | echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6 | |
de6dab5f | 8406 | echo "configure:8407: checking for --${enablestring:-enable}-pcx" >&5 |
10f2d63a VZ |
8407 | no_cache=0 |
8408 | # Check whether --enable-pcx or --disable-pcx was given. | |
8409 | if test "${enable_pcx+set}" = set; then | |
8410 | enableval="$enable_pcx" | |
a0b9e27f | 8411 | |
10f2d63a VZ |
8412 | if test "$enableval" = yes; then |
8413 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8414 | else | |
8415 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8416 | fi | |
a0b9e27f | 8417 | |
10f2d63a | 8418 | else |
a0b9e27f | 8419 | |
10f2d63a VZ |
8420 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8421 | if test "x$LINE" != x ; then | |
8422 | eval "DEFAULT_$LINE" | |
8423 | else | |
8424 | no_cache=1 | |
8425 | fi | |
8426 | ||
8427 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
a0b9e27f MB |
8428 | |
8429 | fi | |
10f2d63a VZ |
8430 | |
8431 | ||
8432 | eval "$ac_cv_use_pcx" | |
8433 | if test "$no_cache" != 1; then | |
8434 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8435 | fi | |
8436 | ||
8437 | if test "$wxUSE_PCX" = yes; then | |
a0b9e27f | 8438 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8439 | else |
a0b9e27f | 8440 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8441 | fi |
a0b9e27f | 8442 | |
10f2d63a | 8443 | |
5005acfe VZ |
8444 | enablestring= |
8445 | echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6 | |
de6dab5f | 8446 | echo "configure:8447: checking for --${enablestring:-enable}-iff" >&5 |
4b6b4dfc RR |
8447 | no_cache=0 |
8448 | # Check whether --enable-iff or --disable-iff was given. | |
8449 | if test "${enable_iff+set}" = set; then | |
8450 | enableval="$enable_iff" | |
a0b9e27f | 8451 | |
4b6b4dfc RR |
8452 | if test "$enableval" = yes; then |
8453 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8454 | else | |
8455 | ac_cv_use_iff='wxUSE_IFF=no' | |
8456 | fi | |
a0b9e27f | 8457 | |
4b6b4dfc | 8458 | else |
a0b9e27f | 8459 | |
4b6b4dfc RR |
8460 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
8461 | if test "x$LINE" != x ; then | |
8462 | eval "DEFAULT_$LINE" | |
8463 | else | |
8464 | no_cache=1 | |
8465 | fi | |
8466 | ||
8467 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
a0b9e27f MB |
8468 | |
8469 | fi | |
4b6b4dfc RR |
8470 | |
8471 | ||
8472 | eval "$ac_cv_use_iff" | |
8473 | if test "$no_cache" != 1; then | |
8474 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8475 | fi | |
8476 | ||
8477 | if test "$wxUSE_IFF" = yes; then | |
a0b9e27f | 8478 | echo "$ac_t""yes" 1>&6 |
4b6b4dfc | 8479 | else |
a0b9e27f | 8480 | echo "$ac_t""no" 1>&6 |
4b6b4dfc | 8481 | fi |
a0b9e27f | 8482 | |
4b6b4dfc | 8483 | |
5005acfe VZ |
8484 | enablestring= |
8485 | echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6 | |
de6dab5f | 8486 | echo "configure:8487: checking for --${enablestring:-enable}-pnm" >&5 |
10f2d63a VZ |
8487 | no_cache=0 |
8488 | # Check whether --enable-pnm or --disable-pnm was given. | |
8489 | if test "${enable_pnm+set}" = set; then | |
8490 | enableval="$enable_pnm" | |
a0b9e27f | 8491 | |
10f2d63a VZ |
8492 | if test "$enableval" = yes; then |
8493 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8494 | else | |
8495 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8496 | fi | |
a0b9e27f | 8497 | |
10f2d63a | 8498 | else |
a0b9e27f | 8499 | |
10f2d63a VZ |
8500 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8501 | if test "x$LINE" != x ; then | |
8502 | eval "DEFAULT_$LINE" | |
8503 | else | |
8504 | no_cache=1 | |
8505 | fi | |
8506 | ||
8507 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
a0b9e27f MB |
8508 | |
8509 | fi | |
10f2d63a VZ |
8510 | |
8511 | ||
8512 | eval "$ac_cv_use_pnm" | |
8513 | if test "$no_cache" != 1; then | |
8514 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8515 | fi | |
8516 | ||
8517 | if test "$wxUSE_PNM" = yes; then | |
a0b9e27f | 8518 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8519 | else |
a0b9e27f | 8520 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8521 | fi |
a0b9e27f | 8522 | |
10f2d63a | 8523 | |
5005acfe VZ |
8524 | enablestring= |
8525 | echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6 | |
de6dab5f | 8526 | echo "configure:8527: checking for --${enablestring:-enable}-xpm" >&5 |
0046ff7c | 8527 | no_cache=0 |
69d27ff7 MB |
8528 | # Check whether --enable-xpm or --disable-xpm was given. |
8529 | if test "${enable_xpm+set}" = set; then | |
8530 | enableval="$enable_xpm" | |
a0b9e27f | 8531 | |
0046ff7c | 8532 | if test "$enableval" = yes; then |
69d27ff7 | 8533 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8534 | else |
69d27ff7 | 8535 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8536 | fi |
a0b9e27f | 8537 | |
0046ff7c | 8538 | else |
a0b9e27f | 8539 | |
0046ff7c VS |
8540 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8541 | if test "x$LINE" != x ; then | |
8542 | eval "DEFAULT_$LINE" | |
8543 | else | |
8544 | no_cache=1 | |
8545 | fi | |
8546 | ||
69d27ff7 | 8547 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
a0b9e27f MB |
8548 | |
8549 | fi | |
0046ff7c VS |
8550 | |
8551 | ||
69d27ff7 | 8552 | eval "$ac_cv_use_xpm" |
0046ff7c | 8553 | if test "$no_cache" != 1; then |
69d27ff7 | 8554 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8555 | fi |
8556 | ||
8557 | if test "$wxUSE_XPM" = yes; then | |
a0b9e27f | 8558 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8559 | else |
a0b9e27f | 8560 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8561 | fi |
a0b9e27f | 8562 | |
0046ff7c | 8563 | |
5005acfe VZ |
8564 | enablestring= |
8565 | echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6 | |
de6dab5f | 8566 | echo "configure:8567: checking for --${enablestring:-enable}-ico_cur" >&5 |
658974ae | 8567 | no_cache=0 |
c7206e64 VS |
8568 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8569 | if test "${enable_ico_cur+set}" = set; then | |
8570 | enableval="$enable_ico_cur" | |
a0b9e27f | 8571 | |
658974ae | 8572 | if test "$enableval" = yes; then |
c7206e64 | 8573 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8574 | else |
c7206e64 | 8575 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 8576 | fi |
a0b9e27f | 8577 | |
658974ae | 8578 | else |
a0b9e27f | 8579 | |
658974ae VS |
8580 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
8581 | if test "x$LINE" != x ; then | |
8582 | eval "DEFAULT_$LINE" | |
8583 | else | |
8584 | no_cache=1 | |
8585 | fi | |
8586 | ||
c7206e64 | 8587 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
a0b9e27f MB |
8588 | |
8589 | fi | |
658974ae VS |
8590 | |
8591 | ||
c7206e64 | 8592 | eval "$ac_cv_use_ico_cur" |
658974ae | 8593 | if test "$no_cache" != 1; then |
c7206e64 | 8594 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8595 | fi |
8596 | ||
8597 | if test "$wxUSE_ICO_CUR" = yes; then | |
a0b9e27f | 8598 | echo "$ac_t""yes" 1>&6 |
658974ae | 8599 | else |
a0b9e27f | 8600 | echo "$ac_t""no" 1>&6 |
658974ae | 8601 | fi |
a0b9e27f | 8602 | |
658974ae | 8603 | |
b12915c1 VZ |
8604 | fi |
8605 | ||
d558c907 VS |
8606 | case "${host}" in |
8607 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 MB |
8608 | PATH_IFS=';' |
8609 | LEX_STEM="lexyy" | |
d558c907 VS |
8610 | ;; |
8611 | *) | |
8612 | PATH_IFS=':' | |
8613 | LEX_STEM="lex.yy" | |
8614 | ;; | |
8615 | esac | |
8616 | ||
8284b0c5 MB |
8617 | |
8618 | ||
10f2d63a VZ |
8619 | echo "saving argument cache $wx_arg_cache_file" |
8620 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
a0b9e27f | 8621 | |
52127426 | 8622 | |
8284b0c5 | 8623 | |
a0b9e27f | 8624 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 |
de6dab5f | 8625 | echo "configure:8626: checking for toolkit" >&5 |
89e6bf6d VZ |
8626 | |
8627 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
8628 | if test "$wxUSE_WINE" = "yes"; then | |
8629 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
8630 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
8631 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
8632 | fi | |
10f2d63a VZ |
8633 | |
8634 | if test "$wxUSE_GUI" = "yes"; then | |
8635 | ||
3a922bb4 | 8636 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 8637 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
3a922bb4 | 8638 | fi |
b12915c1 | 8639 | |
3a922bb4 RL |
8640 | if test "$TOOLKIT_GIVEN" = 1; then |
8641 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8642 | var=wxUSE_$toolkit | |
8643 | eval "value=\$${var}" | |
8644 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8645 | done | |
10f2d63a | 8646 | else |
3a922bb4 RL |
8647 | for toolkit in `echo $ALL_TOOLKITS`; do |
8648 | if test "$has_toolkit_in_cache" != 1; then | |
8649 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8650 | else | |
8651 | var=DEFAULT_wxUSE_$toolkit | |
8652 | fi | |
8653 | eval "wxUSE_$toolkit=\$${var}" | |
8654 | done | |
10f2d63a | 8655 | fi |
10f2d63a | 8656 | |
ac0c4cc3 DE |
8657 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ |
8658 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
8659 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10f2d63a | 8660 | |
d558c907 | 8661 | case "${host}" in |
6fa882bd | 8662 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8663 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8664 | esac |
10f2d63a | 8665 | |
3a922bb4 RL |
8666 | case "$NUM_TOOLKITS" in |
8667 | 1) | |
8668 | ;; | |
8669 | 0) | |
a0b9e27f | 8670 | { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; } |
3a922bb4 RL |
8671 | ;; |
8672 | *) | |
a0b9e27f | 8673 | { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; } |
3a922bb4 | 8674 | esac |
10f2d63a | 8675 | |
3a922bb4 RL |
8676 | for toolkit in `echo $ALL_TOOLKITS`; do |
8677 | var=wxUSE_$toolkit | |
8678 | eval "value=\$${var}" | |
8679 | if test "x$value" != x; then | |
8680 | cache_var=CACHE_$toolkit | |
8681 | eval "cache=\$${cache_var}" | |
8682 | if test "$cache" = 1; then | |
8683 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8684 | fi | |
8685 | if test "$value" = 1; then | |
8686 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
a0b9e27f | 8687 | echo "$ac_t""$toolkit_echo" 1>&6 |
3a922bb4 RL |
8688 | fi |
8689 | fi | |
8690 | done | |
10f2d63a | 8691 | else |
a0b9e27f | 8692 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8693 | fi |
8694 | ||
43d99b6d VS |
8695 | wants_win32=0 |
8696 | doesnt_want_win32=0 | |
17234b26 MB |
8697 | case "${host}" in |
8698 | *-*-cygwin*) | |
8699 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
8700 | wants_win32=1 |
8701 | else | |
8702 | doesnt_want_win32=1 | |
17234b26 MB |
8703 | fi |
8704 | ;; | |
8705 | *-*-mingw*) | |
43d99b6d | 8706 | wants_win32=1 |
17234b26 MB |
8707 | ;; |
8708 | esac | |
8709 | ||
89e6bf6d VZ |
8710 | if test "$wxUSE_WINE" = "yes"; then |
8711 | wants_win32=1 | |
8712 | CC=winegcc | |
8713 | CXX=wineg++ | |
8714 | RESCOMP=wrc | |
8715 | fi | |
8716 | ||
43d99b6d | 8717 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
8718 | USE_UNIX=0 |
8719 | USE_WIN32=1 | |
a0b9e27f | 8720 | cat >> confdefs.h <<\EOF |
17234b26 | 8721 | #define __WIN32__ 1 |
a0b9e27f | 8722 | EOF |
17234b26 | 8723 | |
a0b9e27f | 8724 | cat >> confdefs.h <<\EOF |
17234b26 | 8725 | #define __WIN95__ 1 |
a0b9e27f | 8726 | EOF |
17234b26 | 8727 | |
a0b9e27f | 8728 | cat >> confdefs.h <<\EOF |
17234b26 | 8729 | #define __WINDOWS__ 1 |
a0b9e27f | 8730 | EOF |
17234b26 | 8731 | |
a0b9e27f | 8732 | cat >> confdefs.h <<\EOF |
17234b26 | 8733 | #define __GNUWIN32__ 1 |
a0b9e27f | 8734 | EOF |
17234b26 | 8735 | |
a0b9e27f | 8736 | cat >> confdefs.h <<\EOF |
17234b26 | 8737 | #define STRICT 1 |
a0b9e27f | 8738 | EOF |
17234b26 | 8739 | |
a0b9e27f | 8740 | cat >> confdefs.h <<\EOF |
17234b26 | 8741 | #define WINVER 0x0400 |
a0b9e27f | 8742 | EOF |
17234b26 | 8743 | |
43d99b6d VS |
8744 | fi |
8745 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
8746 | USE_UNIX=1 |
8747 | USE_WIN32=0 | |
8748 | fi | |
8749 | ||
8750 | if test "$USE_UNIX" = 1 ; then | |
8751 | wxUSE_UNIX=yes | |
a0b9e27f | 8752 | cat >> confdefs.h <<\EOF |
17234b26 | 8753 | #define __UNIX__ 1 |
a0b9e27f | 8754 | EOF |
17234b26 MB |
8755 | |
8756 | fi | |
8757 | ||
8284b0c5 | 8758 | |
a0b9e27f | 8759 | cat > confcache <<\EOF |
10f2d63a VZ |
8760 | # This file is a shell script that caches the results of configure |
8761 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
8762 | # scripts and configure runs. It is not useful on other systems. |
8763 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8764 | # |
a0b9e27f MB |
8765 | # By default, configure uses ./config.cache as the cache file, |
8766 | # creating it if it does not exist already. You can give configure | |
8767 | # the --cache-file=FILE option to use a different cache file; that is | |
8768 | # what configure does when it calls configure scripts in | |
8769 | # subdirectories, so they share the cache. | |
8770 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8771 | # config.status only pays attention to the cache file if you give it the | |
8772 | # --recheck option to rerun configure. | |
10f2d63a | 8773 | # |
a0b9e27f | 8774 | EOF |
10f2d63a VZ |
8775 | # The following way of writing the cache mishandles newlines in values, |
8776 | # but we know of no workaround that is simple, portable, and efficient. | |
8777 | # So, don't put newlines in cache variables' values. | |
8778 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8779 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
8780 | (set) 2>&1 | |
8781 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8782 | *ac_space=\ *) | |
8783 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8784 | # turns \\\\ into \\, and sed turns \\ into \). | |
8785 | sed -n \ | |
8786 | -e "s/'/'\\\\''/g" \ | |
8787 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8788 | ;; | |
8789 | *) | |
8790 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8791 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8792 | ;; | |
8793 | esac >> confcache | |
8794 | if cmp -s $cache_file confcache; then | |
8795 | : | |
8796 | else | |
10f2d63a | 8797 | if test -w $cache_file; then |
a0b9e27f MB |
8798 | echo "updating cache $cache_file" |
8799 | cat confcache > $cache_file | |
10f2d63a VZ |
8800 | else |
8801 | echo "not updating unwritable cache $cache_file" | |
8802 | fi | |
8803 | fi | |
8804 | rm -f confcache | |
8805 | ||
a0b9e27f | 8806 | |
e59890c3 | 8807 | if test "$build" != "$host" ; then |
9d353d4a | 8808 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8809 | CC=$host_alias-gcc |
8810 | CXX=$host_alias-c++ | |
8811 | AR=$host_alias-ar | |
8812 | RANLIB=$host_alias-ranlib | |
8813 | DLLTOOL=$host_alias-dlltool | |
8814 | RESCOMP=$host_alias-windres | |
8815 | LD=$host_alias-ld | |
8816 | NM=$host_alias-nm | |
8817 | STRIP=$host_alias-strip | |
8818 | else | |
a0b9e27f | 8819 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } |
3a922bb4 | 8820 | fi |
10f2d63a VZ |
8821 | fi |
8822 | ||
ec603395 | 8823 | CFLAGS=${CFLAGS:=} |
a0b9e27f | 8824 | # Extract the first word of "gcc", so it can be a program name with args. |
8284b0c5 | 8825 | set dummy gcc; ac_word=$2 |
a0b9e27f | 8826 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
de6dab5f | 8827 | echo "configure:8828: checking for $ac_word" >&5 |
a0b9e27f MB |
8828 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8829 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8830 | else |
8831 | if test -n "$CC"; then | |
8832 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8833 | else |
a0b9e27f MB |
8834 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8835 | ac_dummy="$PATH" | |
8836 | for ac_dir in $ac_dummy; do | |
8837 | test -z "$ac_dir" && ac_dir=. | |
8838 | if test -f $ac_dir/$ac_word; then | |
8839 | ac_cv_prog_CC="gcc" | |
8840 | break | |
8841 | fi | |
8842 | done | |
8843 | IFS="$ac_save_ifs" | |
10f2d63a | 8844 | fi |
6232543b | 8845 | fi |
a0b9e27f | 8846 | CC="$ac_cv_prog_CC" |
6232543b | 8847 | if test -n "$CC"; then |
a0b9e27f | 8848 | echo "$ac_t""$CC" 1>&6 |
247f5006 | 8849 | else |
a0b9e27f | 8850 | echo "$ac_t""no" 1>&6 |
247f5006 VZ |
8851 | fi |
8852 | ||
5c6fa7d2 RR |
8853 | if test -z "$CC"; then |
8854 | # Extract the first word of "cc", so it can be a program name with args. | |
8855 | set dummy cc; ac_word=$2 | |
a0b9e27f | 8856 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
de6dab5f | 8857 | echo "configure:8858: checking for $ac_word" >&5 |
a0b9e27f MB |
8858 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8859 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 RR |
8860 | else |
8861 | if test -n "$CC"; then | |
8862 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8863 | else | |
a0b9e27f | 8864 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5c6fa7d2 | 8865 | ac_prog_rejected=no |
a0b9e27f MB |
8866 | ac_dummy="$PATH" |
8867 | for ac_dir in $ac_dummy; do | |
8868 | test -z "$ac_dir" && ac_dir=. | |
8869 | if test -f $ac_dir/$ac_word; then | |
8870 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8871 | ac_prog_rejected=yes | |
8872 | continue | |
8873 | fi | |
8874 | ac_cv_prog_CC="cc" | |
8875 | break | |
8876 | fi | |
8877 | done | |
8878 | IFS="$ac_save_ifs" | |
328a083c RR |
8879 | if test $ac_prog_rejected = yes; then |
8880 | # We found a bogon in the path, so make sure we never use it. | |
8881 | set dummy $ac_cv_prog_CC | |
8882 | shift | |
a0b9e27f | 8883 | if test $# -gt 0; then |
328a083c | 8884 | # We chose a different compiler from the bogus one. |
1e487827 VS |
8885 | # However, it has the same basename, so the bogon will be chosen |
8886 | # first if we set CC to just the basename; use the full file name. | |
8887 | shift | |
a0b9e27f | 8888 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8889 | shift |
8890 | ac_cv_prog_CC="$@" | |
703e0a69 | 8891 | fi |
1e487827 VS |
8892 | fi |
8893 | fi | |
8894 | fi | |
a0b9e27f | 8895 | CC="$ac_cv_prog_CC" |
1e487827 | 8896 | if test -n "$CC"; then |
a0b9e27f | 8897 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8898 | else |
a0b9e27f | 8899 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8900 | fi |
1e487827 | 8901 | |
a0b9e27f MB |
8902 | if test -z "$CC"; then |
8903 | case "`uname -s`" in | |
8904 | *win32* | *WIN32*) | |
8905 | # Extract the first word of "cl", so it can be a program name with args. | |
8906 | set dummy cl; ac_word=$2 | |
8907 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
de6dab5f | 8908 | echo "configure:8909: checking for $ac_word" >&5 |
a0b9e27f MB |
8909 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8910 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf VS |
8911 | else |
8912 | if test -n "$CC"; then | |
8913 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8914 | else | |
a0b9e27f MB |
8915 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8916 | ac_dummy="$PATH" | |
8917 | for ac_dir in $ac_dummy; do | |
8918 | test -z "$ac_dir" && ac_dir=. | |
8919 | if test -f $ac_dir/$ac_word; then | |
8920 | ac_cv_prog_CC="cl" | |
8921 | break | |
8922 | fi | |
8923 | done | |
8924 | IFS="$ac_save_ifs" | |
f09359cf VS |
8925 | fi |
8926 | fi | |
a0b9e27f | 8927 | CC="$ac_cv_prog_CC" |
f09359cf | 8928 | if test -n "$CC"; then |
a0b9e27f | 8929 | echo "$ac_t""$CC" 1>&6 |
f09359cf | 8930 | else |
a0b9e27f | 8931 | echo "$ac_t""no" 1>&6 |
247f5006 | 8932 | fi |
a0b9e27f MB |
8933 | ;; |
8934 | esac | |
8284b0c5 | 8935 | fi |
a0b9e27f | 8936 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
5c6fa7d2 | 8937 | fi |
1e487827 | 8938 | |
a0b9e27f | 8939 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
de6dab5f | 8940 | echo "configure:8941: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
f09359cf | 8941 | |
a0b9e27f MB |
8942 | ac_ext=c |
8943 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8944 | ac_cpp='$CPP $CPPFLAGS' | |
8945 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8946 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8947 | cross_compiling=$ac_cv_prog_cc_cross | |
f09359cf | 8948 | |
a0b9e27f | 8949 | cat > conftest.$ac_ext << EOF |
247f5006 | 8950 | |
de6dab5f | 8951 | #line 8952 "configure" |
a0b9e27f | 8952 | #include "confdefs.h" |
247f5006 | 8953 | |
a0b9e27f MB |
8954 | main(){return(0);} |
8955 | EOF | |
de6dab5f | 8956 | if { (eval echo configure:8957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
8957 | ac_cv_prog_cc_works=yes |
8958 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8959 | if (./conftest; exit) 2>/dev/null; then | |
8960 | ac_cv_prog_cc_cross=no | |
698dcdb6 | 8961 | else |
a0b9e27f | 8962 | ac_cv_prog_cc_cross=yes |
698dcdb6 | 8963 | fi |
7b4a847f | 8964 | else |
a0b9e27f MB |
8965 | echo "configure: failed program was:" >&5 |
8966 | cat conftest.$ac_ext >&5 | |
8967 | ac_cv_prog_cc_works=no | |
52127426 | 8968 | fi |
a0b9e27f MB |
8969 | rm -fr conftest* |
8970 | ac_ext=c | |
8971 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8972 | ac_cpp='$CPP $CPPFLAGS' | |
8973 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8974 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8975 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 8976 | |
a0b9e27f MB |
8977 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
8978 | if test $ac_cv_prog_cc_works = no; then | |
8979 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8980 | fi | |
8981 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
de6dab5f | 8982 | echo "configure:8983: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
8983 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8984 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 8985 | |
a0b9e27f | 8986 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
de6dab5f | 8987 | echo "configure:8988: checking whether we are using GNU C" >&5 |
a0b9e27f MB |
8988 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8989 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 8990 | else |
a0b9e27f MB |
8991 | cat > conftest.c <<EOF |
8992 | #ifdef __GNUC__ | |
8993 | yes; | |
8284b0c5 | 8994 | #endif |
a0b9e27f | 8995 | EOF |
de6dab5f | 8996 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f | 8997 | ac_cv_prog_gcc=yes |
5c6fa7d2 | 8998 | else |
a0b9e27f | 8999 | ac_cv_prog_gcc=no |
8284b0c5 MB |
9000 | fi |
9001 | fi | |
1e487827 | 9002 | |
a0b9e27f | 9003 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
f09359cf | 9004 | |
a0b9e27f MB |
9005 | if test $ac_cv_prog_gcc = yes; then |
9006 | GCC=yes | |
9007 | else | |
9008 | GCC= | |
9009 | fi | |
247f5006 | 9010 | |
a0b9e27f MB |
9011 | ac_test_CFLAGS="${CFLAGS+set}" |
9012 | ac_save_CFLAGS="$CFLAGS" | |
9013 | CFLAGS= | |
9014 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
de6dab5f | 9015 | echo "configure:9016: checking whether ${CC-cc} accepts -g" >&5 |
a0b9e27f MB |
9016 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
9017 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9018 | else | |
9019 | echo 'void f(){}' > conftest.c | |
9020 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
9021 | ac_cv_prog_cc_g=yes |
9022 | else | |
a0b9e27f | 9023 | ac_cv_prog_cc_g=no |
10f2d63a | 9024 | fi |
a0b9e27f MB |
9025 | rm -f conftest* |
9026 | ||
10f2d63a | 9027 | fi |
a0b9e27f MB |
9028 | |
9029 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
f09359cf | 9030 | if test "$ac_test_CFLAGS" = set; then |
a0b9e27f | 9031 | CFLAGS="$ac_save_CFLAGS" |
f09359cf VS |
9032 | elif test $ac_cv_prog_cc_g = yes; then |
9033 | if test "$GCC" = yes; then | |
10f2d63a VZ |
9034 | CFLAGS="-g -O2" |
9035 | else | |
f09359cf | 9036 | CFLAGS="-g" |
10f2d63a | 9037 | fi |
5c0a20c3 | 9038 | else |
f09359cf VS |
9039 | if test "$GCC" = yes; then |
9040 | CFLAGS="-O2" | |
9041 | else | |
9042 | CFLAGS= | |
9043 | fi | |
10f2d63a VZ |
9044 | fi |
9045 | ||
9046 | ||
a0b9e27f | 9047 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
de6dab5f | 9048 | echo "configure:9049: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
9049 | # On Suns, sometimes $CPP names a directory. |
9050 | if test -n "$CPP" && test -d "$CPP"; then | |
9051 | CPP= | |
9052 | fi | |
9053 | if test -z "$CPP"; then | |
a0b9e27f MB |
9054 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
9055 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9056 | else | |
9057 | # This must be in double quotes, not single quotes, because CPP may get | |
9058 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
9059 | CPP="${CC-cc} -E" | |
10f2d63a | 9060 | # On the NeXT, cc -E runs the code through the compiler's parser, |
a0b9e27f MB |
9061 | # not just through cpp. |
9062 | cat > conftest.$ac_ext <<EOF | |
de6dab5f | 9063 | #line 9064 "configure" |
10f2d63a VZ |
9064 | #include "confdefs.h" |
9065 | #include <assert.h> | |
a0b9e27f MB |
9066 | Syntax Error |
9067 | EOF | |
9068 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
de6dab5f | 9069 | { (eval echo configure:9070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9070 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9071 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9072 | : |
9073 | else | |
a0b9e27f MB |
9074 | echo "$ac_err" >&5 |
9075 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9076 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9077 | rm -rf conftest* |
9078 | CPP="${CC-cc} -E -traditional-cpp" | |
9079 | cat > conftest.$ac_ext <<EOF | |
de6dab5f | 9080 | #line 9081 "configure" |
f09359cf | 9081 | #include "confdefs.h" |
a0b9e27f MB |
9082 | #include <assert.h> |
9083 | Syntax Error | |
9084 | EOF | |
9085 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
de6dab5f | 9086 | { (eval echo configure:9087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9087 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9088 | if test -z "$ac_err"; then | |
9089 | : | |
247f5006 | 9090 | else |
a0b9e27f MB |
9091 | echo "$ac_err" >&5 |
9092 | echo "configure: failed program was:" >&5 | |
f09359cf | 9093 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9094 | rm -rf conftest* |
9095 | CPP="${CC-cc} -nologo -E" | |
9096 | cat > conftest.$ac_ext <<EOF | |
de6dab5f | 9097 | #line 9098 "configure" |
10f2d63a VZ |
9098 | #include "confdefs.h" |
9099 | #include <assert.h> | |
a0b9e27f MB |
9100 | Syntax Error |
9101 | EOF | |
9102 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
de6dab5f | 9103 | { (eval echo configure:9104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9104 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9105 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9106 | : |
9107 | else | |
a0b9e27f MB |
9108 | echo "$ac_err" >&5 |
9109 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9110 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9111 | rm -rf conftest* |
9112 | CPP=/lib/cpp | |
579d8138 | 9113 | fi |
a0b9e27f | 9114 | rm -f conftest* |
52127426 | 9115 | fi |
a0b9e27f | 9116 | rm -f conftest* |
8284b0c5 | 9117 | fi |
a0b9e27f MB |
9118 | rm -f conftest* |
9119 | ac_cv_prog_CPP="$CPP" | |
9120 | fi | |
9121 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 9122 | else |
a0b9e27f | 9123 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 9124 | fi |
a0b9e27f | 9125 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 9126 | |
a0b9e27f MB |
9127 | if test $ac_cv_prog_gcc = yes; then |
9128 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
de6dab5f | 9129 | echo "configure:9130: checking whether ${CC-cc} needs -traditional" >&5 |
a0b9e27f MB |
9130 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
9131 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9132 | else |
9133 | ac_pattern="Autoconf.*'x'" | |
a0b9e27f | 9134 | cat > conftest.$ac_ext <<EOF |
de6dab5f | 9135 | #line 9136 "configure" |
10f2d63a VZ |
9136 | #include "confdefs.h" |
9137 | #include <sgtty.h> | |
9138 | Autoconf TIOCGETP | |
a0b9e27f | 9139 | EOF |
10f2d63a VZ |
9140 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9141 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9142 | rm -rf conftest* |
10f2d63a VZ |
9143 | ac_cv_prog_gcc_traditional=yes |
9144 | else | |
a0b9e27f | 9145 | rm -rf conftest* |
10f2d63a VZ |
9146 | ac_cv_prog_gcc_traditional=no |
9147 | fi | |
9148 | rm -f conftest* | |
9149 | ||
8284b0c5 | 9150 | |
10f2d63a | 9151 | if test $ac_cv_prog_gcc_traditional = no; then |
a0b9e27f | 9152 | cat > conftest.$ac_ext <<EOF |
de6dab5f | 9153 | #line 9154 "configure" |
10f2d63a VZ |
9154 | #include "confdefs.h" |
9155 | #include <termio.h> | |
9156 | Autoconf TCGETA | |
a0b9e27f | 9157 | EOF |
10f2d63a VZ |
9158 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9159 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9160 | rm -rf conftest* |
10f2d63a VZ |
9161 | ac_cv_prog_gcc_traditional=yes |
9162 | fi | |
9163 | rm -f conftest* | |
9164 | ||
9165 | fi | |
9166 | fi | |
a0b9e27f MB |
9167 | |
9168 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
9169 | if test $ac_cv_prog_gcc_traditional = yes; then |
9170 | CC="$CC -traditional" | |
9171 | fi | |
9172 | fi | |
9173 | ||
8284b0c5 MB |
9174 | |
9175 | ||
a0b9e27f MB |
9176 | ac_ext=C |
9177 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 9178 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
9179 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9180 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9181 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9182 | |
698dcdb6 | 9183 | |
ec603395 | 9184 | CXXFLAGS=${CXXFLAGS:=} |
a0b9e27f MB |
9185 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
9186 | do | |
9187 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9188 | set dummy $ac_prog; ac_word=$2 | |
9189 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
de6dab5f | 9190 | echo "configure:9191: checking for $ac_word" >&5 |
a0b9e27f MB |
9191 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
9192 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9193 | else |
9194 | if test -n "$CXX"; then | |
9195 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
9196 | else | |
a0b9e27f MB |
9197 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9198 | ac_dummy="$PATH" | |
9199 | for ac_dir in $ac_dummy; do | |
9200 | test -z "$ac_dir" && ac_dir=. | |
9201 | if test -f $ac_dir/$ac_word; then | |
9202 | ac_cv_prog_CXX="$ac_prog" | |
9203 | break | |
9204 | fi | |
9205 | done | |
9206 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9207 | fi |
9208 | fi | |
a0b9e27f | 9209 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 9210 | if test -n "$CXX"; then |
a0b9e27f | 9211 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9212 | else |
a0b9e27f | 9213 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9214 | fi |
9215 | ||
a0b9e27f | 9216 | test -n "$CXX" && break |
10f2d63a | 9217 | done |
a0b9e27f | 9218 | test -n "$CXX" || CXX="gcc" |
f09359cf | 9219 | |
a0b9e27f MB |
9220 | |
9221 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
de6dab5f | 9222 | echo "configure:9223: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
a0b9e27f MB |
9223 | |
9224 | ac_ext=C | |
9225 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9226 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9227 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9228 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9229 | cross_compiling=$ac_cv_prog_cxx_cross | |
9230 | ||
9231 | cat > conftest.$ac_ext << EOF | |
9232 | ||
de6dab5f | 9233 | #line 9234 "configure" |
a0b9e27f MB |
9234 | #include "confdefs.h" |
9235 | ||
9236 | int main(){return(0);} | |
9237 | EOF | |
de6dab5f | 9238 | if { (eval echo configure:9239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9239 | ac_cv_prog_cxx_works=yes |
9240 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9241 | if (./conftest; exit) 2>/dev/null; then | |
9242 | ac_cv_prog_cxx_cross=no | |
9243 | else | |
9244 | ac_cv_prog_cxx_cross=yes | |
9245 | fi | |
8284b0c5 | 9246 | else |
a0b9e27f MB |
9247 | echo "configure: failed program was:" >&5 |
9248 | cat conftest.$ac_ext >&5 | |
9249 | ac_cv_prog_cxx_works=no | |
8284b0c5 | 9250 | fi |
a0b9e27f MB |
9251 | rm -fr conftest* |
9252 | ac_ext=C | |
9253 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9254 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9255 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9256 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9257 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9258 | |
a0b9e27f MB |
9259 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
9260 | if test $ac_cv_prog_cxx_works = no; then | |
9261 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9262 | fi | |
9263 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
de6dab5f | 9264 | echo "configure:9265: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9265 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9266 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9267 | |
a0b9e27f | 9268 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
de6dab5f | 9269 | echo "configure:9270: checking whether we are using GNU C++" >&5 |
a0b9e27f MB |
9270 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9271 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9272 | else | |
9273 | cat > conftest.C <<EOF | |
9274 | #ifdef __GNUC__ | |
9275 | yes; | |
10f2d63a | 9276 | #endif |
a0b9e27f | 9277 | EOF |
de6dab5f | 9278 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f MB |
9279 | ac_cv_prog_gxx=yes |
9280 | else | |
9281 | ac_cv_prog_gxx=no | |
9282 | fi | |
9283 | fi | |
10f2d63a | 9284 | |
a0b9e27f | 9285 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9286 | |
a0b9e27f MB |
9287 | if test $ac_cv_prog_gxx = yes; then |
9288 | GXX=yes | |
9289 | else | |
9290 | GXX= | |
9291 | fi | |
f09359cf | 9292 | |
a0b9e27f MB |
9293 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9294 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9295 | CXXFLAGS= | |
9296 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
de6dab5f | 9297 | echo "configure:9298: checking whether ${CXX-g++} accepts -g" >&5 |
a0b9e27f MB |
9298 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9299 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9300 | else | |
9301 | echo 'void f(){}' > conftest.cc | |
9302 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9303 | ac_cv_prog_cxx_g=yes |
9304 | else | |
a0b9e27f | 9305 | ac_cv_prog_cxx_g=no |
10f2d63a | 9306 | fi |
a0b9e27f MB |
9307 | rm -f conftest* |
9308 | ||
10f2d63a | 9309 | fi |
a0b9e27f MB |
9310 | |
9311 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
f09359cf | 9312 | if test "$ac_test_CXXFLAGS" = set; then |
a0b9e27f | 9313 | CXXFLAGS="$ac_save_CXXFLAGS" |
f09359cf VS |
9314 | elif test $ac_cv_prog_cxx_g = yes; then |
9315 | if test "$GXX" = yes; then | |
10f2d63a VZ |
9316 | CXXFLAGS="-g -O2" |
9317 | else | |
f09359cf | 9318 | CXXFLAGS="-g" |
10f2d63a | 9319 | fi |
5c0a20c3 | 9320 | else |
f09359cf VS |
9321 | if test "$GXX" = yes; then |
9322 | CXXFLAGS="-O2" | |
9323 | else | |
9324 | CXXFLAGS= | |
9325 | fi | |
10f2d63a VZ |
9326 | fi |
9327 | ||
9328 | ||
10f2d63a | 9329 | ac_ext=c |
a0b9e27f | 9330 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9331 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
9332 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9333 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9334 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 MB |
9335 | |
9336 | ||
a0b9e27f MB |
9337 | # Extract the first word of "ranlib", so it can be a program name with args. |
9338 | set dummy ranlib; ac_word=$2 | |
9339 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
de6dab5f | 9340 | echo "configure:9341: checking for $ac_word" >&5 |
a0b9e27f MB |
9341 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9342 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9343 | else |
9344 | if test -n "$RANLIB"; then | |
9345 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9346 | else | |
a0b9e27f MB |
9347 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9348 | ac_dummy="$PATH" | |
9349 | for ac_dir in $ac_dummy; do | |
9350 | test -z "$ac_dir" && ac_dir=. | |
9351 | if test -f $ac_dir/$ac_word; then | |
9352 | ac_cv_prog_RANLIB="ranlib" | |
9353 | break | |
9354 | fi | |
9355 | done | |
9356 | IFS="$ac_save_ifs" | |
9357 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9358 | fi |
9359 | fi | |
a0b9e27f | 9360 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9361 | if test -n "$RANLIB"; then |
a0b9e27f | 9362 | echo "$ac_t""$RANLIB" 1>&6 |
328a083c | 9363 | else |
a0b9e27f | 9364 | echo "$ac_t""no" 1>&6 |
328a083c RR |
9365 | fi |
9366 | ||
10f2d63a VZ |
9367 | |
9368 | # Extract the first word of "ar", so it can be a program name with args. | |
9369 | set dummy ar; ac_word=$2 | |
a0b9e27f | 9370 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
de6dab5f | 9371 | echo "configure:9372: checking for $ac_word" >&5 |
a0b9e27f MB |
9372 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9373 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9374 | else |
9375 | if test -n "$AR"; then | |
9376 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9377 | else | |
a0b9e27f MB |
9378 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9379 | ac_dummy="$PATH" | |
9380 | for ac_dir in $ac_dummy; do | |
9381 | test -z "$ac_dir" && ac_dir=. | |
9382 | if test -f $ac_dir/$ac_word; then | |
9383 | ac_cv_prog_AR="ar" | |
9384 | break | |
9385 | fi | |
9386 | done | |
9387 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9388 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9389 | fi | |
9390 | fi | |
a0b9e27f | 9391 | AR="$ac_cv_prog_AR" |
10f2d63a | 9392 | if test -n "$AR"; then |
a0b9e27f | 9393 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9394 | else |
a0b9e27f | 9395 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9396 | fi |
9397 | ||
8284b0c5 | 9398 | |
6054113a | 9399 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9400 | # so one script is as good as another. But avoid the broken or |
9401 | # incompatible versions: | |
9402 | # SysV /etc/install, /usr/sbin/install | |
9403 | # SunOS /usr/etc/install | |
9404 | # IRIX /sbin/install | |
9405 | # AIX /bin/install | |
f09359cf | 9406 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
9407 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
9408 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9409 | # ./install, which can be erroneously created by make from ./install.sh. | |
a0b9e27f | 9410 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
de6dab5f | 9411 | echo "configure:9412: checking for a BSD compatible install" >&5 |
10f2d63a | 9412 | if test -z "$INSTALL"; then |
a0b9e27f MB |
9413 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9414 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9415 | else | |
9416 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
9417 | for ac_dir in $PATH; do | |
9418 | # Account for people who put trailing slashes in PATH elements. | |
9419 | case "$ac_dir/" in | |
9420 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
9421 | *) | |
9422 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9423 | # Don't use installbsd from OSF since it installs stuff as root | |
9424 | # by default. | |
9425 | for ac_prog in ginstall scoinst install; do | |
9426 | if test -f $ac_dir/$ac_prog; then | |
9427 | if test $ac_prog = install && | |
9428 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
9429 | # AIX install. It has an incompatible calling convention. | |
9430 | : | |
9431 | else | |
9432 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9433 | break 2 | |
9434 | fi | |
9435 | fi | |
10f2d63a | 9436 | done |
a0b9e27f MB |
9437 | ;; |
9438 | esac | |
9439 | done | |
9440 | IFS="$ac_save_IFS" | |
10f2d63a VZ |
9441 | |
9442 | fi | |
9443 | if test "${ac_cv_path_install+set}" = set; then | |
a0b9e27f | 9444 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9445 | else |
9446 | # As a last resort, use the slow shell script. We don't cache a | |
9447 | # path for INSTALL within a source directory, because that will | |
9448 | # break other packages using the cache if that directory is | |
9449 | # removed, or if the path is relative. | |
a0b9e27f | 9450 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9451 | fi |
9452 | fi | |
a0b9e27f | 9453 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9454 | |
9455 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9456 | # It thinks the first close brace ends the variable substitution. | |
9457 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9458 | ||
a0b9e27f | 9459 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
f09359cf | 9460 | |
10f2d63a VZ |
9461 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9462 | ||
8284b0c5 | 9463 | |
1d1b75ac VZ |
9464 | case ${INSTALL} in |
9465 | /* ) # Absolute | |
9466 | ;; | |
4f5a7f74 VZ |
9467 | ?:* ) # Drive letter, considered as absolute. |
9468 | ;; | |
3bd8fb5f | 9469 | *) |
1d1b75ac VZ |
9470 | INSTALL=`pwd`/${INSTALL} ;; |
9471 | esac | |
9472 | ||
4f5a7f74 VZ |
9473 | case ${host} in |
9474 | *-hp-hpux* ) | |
9475 | INSTALL_DIR="mkdir" | |
9476 | ;; | |
9477 | ||
9478 | *) INSTALL_DIR="$INSTALL -d" | |
9479 | ;; | |
9480 | esac | |
9481 | ||
8284b0c5 | 9482 | |
6054113a GD |
9483 | case "${host}" in |
9484 | ||
b5853384 | 9485 | powerpc-*-darwin* ) |
eb99ae0b GD |
9486 | INSTALL_PROGRAM="cp -fp" |
9487 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9488 | ;; |
9489 | *) | |
9490 | ;; | |
d6853540 | 9491 | esac |
698dcdb6 | 9492 | |
10f2d63a VZ |
9493 | # Extract the first word of "strip", so it can be a program name with args. |
9494 | set dummy strip; ac_word=$2 | |
a0b9e27f | 9495 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
de6dab5f | 9496 | echo "configure:9497: checking for $ac_word" >&5 |
a0b9e27f MB |
9497 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9498 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9499 | else |
9500 | if test -n "$STRIP"; then | |
9501 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9502 | else | |
a0b9e27f MB |
9503 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9504 | ac_dummy="$PATH" | |
9505 | for ac_dir in $ac_dummy; do | |
9506 | test -z "$ac_dir" && ac_dir=. | |
9507 | if test -f $ac_dir/$ac_word; then | |
9508 | ac_cv_prog_STRIP="strip" | |
9509 | break | |
9510 | fi | |
9511 | done | |
9512 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9513 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9514 | fi | |
9515 | fi | |
a0b9e27f | 9516 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9517 | if test -n "$STRIP"; then |
a0b9e27f | 9518 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9519 | else |
a0b9e27f | 9520 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9521 | fi |
9522 | ||
5c6fa7d2 | 9523 | |
a0b9e27f | 9524 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
de6dab5f | 9525 | echo "configure:9526: checking if make is GNU make" >&5 |
a0b9e27f MB |
9526 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9527 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9528 | else |
a0b9e27f | 9529 | |
414eab6d | 9530 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 9531 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9532 | wx_cv_prog_makeisgnu="yes" |
9533 | else | |
9534 | wx_cv_prog_makeisgnu="no" | |
9535 | fi | |
9536 | ||
9537 | fi | |
a0b9e27f MB |
9538 | |
9539 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
414eab6d VZ |
9540 | |
9541 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9542 | IF_GNU_MAKE="" | |
9543 | else | |
9544 | IF_GNU_MAKE="#" | |
9545 | fi | |
9546 | ||
8284b0c5 MB |
9547 | |
9548 | ||
414eab6d | 9549 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
a0b9e27f | 9550 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
de6dab5f | 9551 | echo "configure:9552: checking if make supports VPATH" >&5 |
a0b9e27f MB |
9552 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9553 | echo $ac_n "(cached) $ac_c" 1>&6 | |
04e7a216 | 9554 | else |
a0b9e27f | 9555 | |
10f2d63a VZ |
9556 | cat - << EOF > confMake |
9557 | check : file | |
9558 | cp \$? \$@ | |
9559 | cp \$? final_file | |
9560 | EOF | |
9561 | ||
9562 | if test ! -d sub ; then | |
9563 | mkdir sub | |
9564 | fi | |
9565 | echo dummy > sub/file | |
f6bcfd97 | 9566 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9567 | RESULT=$? |
9568 | rm -f sub/file check final_file confMake | |
9569 | rmdir sub | |
9570 | if test "$RESULT" = 0; then | |
04e7a216 | 9571 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9572 | else |
04e7a216 VZ |
9573 | wx_cv_prog_makevpath="no" |
9574 | fi | |
9575 | ||
9576 | fi | |
a0b9e27f MB |
9577 | |
9578 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
04e7a216 VZ |
9579 | |
9580 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
a0b9e27f | 9581 | { echo "configure: error: |
5c6fa7d2 RR |
9582 | You need a make-utility that is able to use the variable |
9583 | VPATH correctly. | |
9584 | If your version of make does not support VPATH correctly, | |
9585 | please install GNU-make (possibly as gmake), and start | |
9586 | configure with the following command: | |
9587 | export MAKE=gmake; ./configure for sh-type shells | |
9588 | setenv MAKE gmake; ./configure for csh-type shells | |
9589 | Also please do remember to use gmake in this case every time | |
9590 | you are trying to compile. | |
a0b9e27f MB |
9591 | " 1>&2; exit 1; } |
9592 | fi fi | |
10f2d63a VZ |
9593 | for ac_prog in 'bison -y' byacc |
9594 | do | |
a0b9e27f | 9595 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9596 | set dummy $ac_prog; ac_word=$2 |
a0b9e27f | 9597 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
de6dab5f | 9598 | echo "configure:9599: checking for $ac_word" >&5 |
a0b9e27f MB |
9599 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9600 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9601 | else |
9602 | if test -n "$YACC"; then | |
9603 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9604 | else | |
a0b9e27f MB |
9605 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9606 | ac_dummy="$PATH" | |
9607 | for ac_dir in $ac_dummy; do | |
9608 | test -z "$ac_dir" && ac_dir=. | |
9609 | if test -f $ac_dir/$ac_word; then | |
9610 | ac_cv_prog_YACC="$ac_prog" | |
9611 | break | |
9612 | fi | |
9613 | done | |
9614 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9615 | fi |
9616 | fi | |
a0b9e27f | 9617 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9618 | if test -n "$YACC"; then |
a0b9e27f | 9619 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9620 | else |
a0b9e27f | 9621 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9622 | fi |
9623 | ||
a0b9e27f | 9624 | test -n "$YACC" && break |
10f2d63a VZ |
9625 | done |
9626 | test -n "$YACC" || YACC="yacc" | |
9627 | ||
8284b0c5 | 9628 | |
a0b9e27f MB |
9629 | # Extract the first word of "flex", so it can be a program name with args. |
9630 | set dummy flex; ac_word=$2 | |
9631 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
de6dab5f | 9632 | echo "configure:9633: checking for $ac_word" >&5 |
a0b9e27f MB |
9633 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9634 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9635 | else |
9636 | if test -n "$LEX"; then | |
9637 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9638 | else | |
a0b9e27f MB |
9639 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9640 | ac_dummy="$PATH" | |
9641 | for ac_dir in $ac_dummy; do | |
9642 | test -z "$ac_dir" && ac_dir=. | |
9643 | if test -f $ac_dir/$ac_word; then | |
9644 | ac_cv_prog_LEX="flex" | |
9645 | break | |
9646 | fi | |
9647 | done | |
9648 | IFS="$ac_save_ifs" | |
9649 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9650 | fi |
9651 | fi | |
a0b9e27f | 9652 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9653 | if test -n "$LEX"; then |
a0b9e27f | 9654 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9655 | else |
a0b9e27f | 9656 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9657 | fi |
9658 | ||
9659 | if test -z "$LEXLIB" | |
9660 | then | |
a0b9e27f MB |
9661 | case "$LEX" in |
9662 | flex*) ac_lib=fl ;; | |
9663 | *) ac_lib=l ;; | |
9664 | esac | |
9665 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
de6dab5f | 9666 | echo "configure:9667: checking for yywrap in -l$ac_lib" >&5 |
a0b9e27f MB |
9667 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9668 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9669 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9670 | else | |
9671 | ac_save_LIBS="$LIBS" | |
9672 | LIBS="-l$ac_lib $LIBS" | |
9673 | cat > conftest.$ac_ext <<EOF | |
de6dab5f | 9674 | #line 9675 "configure" |
247f5006 | 9675 | #include "confdefs.h" |
247f5006 | 9676 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 9677 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
9678 | builtin and then its argument prototype would still apply. */ |
9679 | char yywrap(); | |
10f2d63a | 9680 | |
a0b9e27f MB |
9681 | int main() { |
9682 | yywrap() | |
9683 | ; return 0; } | |
9684 | EOF | |
de6dab5f | 9685 | if { (eval echo configure:9686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9686 | rm -rf conftest* |
9687 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9688 | else | |
9689 | echo "configure: failed program was:" >&5 | |
9690 | cat conftest.$ac_ext >&5 | |
9691 | rm -rf conftest* | |
9692 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9693 | fi |
a0b9e27f MB |
9694 | rm -f conftest* |
9695 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 9696 | |
10f2d63a | 9697 | fi |
a0b9e27f MB |
9698 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9699 | echo "$ac_t""yes" 1>&6 | |
9700 | LEXLIB="-l$ac_lib" | |
8284b0c5 | 9701 | else |
a0b9e27f | 9702 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9703 | fi |
9704 | ||
a0b9e27f | 9705 | fi |
10f2d63a VZ |
9706 | |
9707 | ||
a0b9e27f | 9708 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
de6dab5f | 9709 | echo "configure:9710: checking whether ln -s works" >&5 |
a0b9e27f MB |
9710 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9711 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9712 | else |
a0b9e27f MB |
9713 | rm -f conftestdata |
9714 | if ln -s X conftestdata 2>/dev/null | |
9715 | then | |
9716 | rm -f conftestdata | |
9717 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9718 | else |
a0b9e27f | 9719 | ac_cv_prog_LN_S=ln |
10f2d63a | 9720 | fi |
a0b9e27f MB |
9721 | fi |
9722 | LN_S="$ac_cv_prog_LN_S" | |
9723 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9724 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9725 | else |
a0b9e27f | 9726 | echo "$ac_t""no" 1>&6 |
5c6fa7d2 | 9727 | fi |
5c6fa7d2 | 9728 | |
247f5006 | 9729 | |
2b5f62a0 VZ |
9730 | case "${host}" in |
9731 | *-pc-os2_emx | *-pc-os2-emx ) | |
9732 | LIBS="$LIBS -lstdcpp" | |
9733 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
9734 | echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6 | |
de6dab5f | 9735 | echo "configure:9736: checking for drand48 in -lcExt" >&5 |
2b5f62a0 VZ |
9736 | ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'` |
9737 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9738 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9739 | else | |
9740 | ac_save_LIBS="$LIBS" | |
9741 | LIBS="-lcExt $LIBS" | |
9742 | cat > conftest.$ac_ext <<EOF | |
de6dab5f | 9743 | #line 9744 "configure" |
2b5f62a0 VZ |
9744 | #include "confdefs.h" |
9745 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9746 | /* We use char because int might match the return type of a gcc2 | |
9747 | builtin and then its argument prototype would still apply. */ | |
9748 | char drand48(); | |
9749 | ||
9750 | int main() { | |
9751 | drand48() | |
9752 | ; return 0; } | |
9753 | EOF | |
de6dab5f | 9754 | if { (eval echo configure:9755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
9755 | rm -rf conftest* |
9756 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9757 | else | |
9758 | echo "configure: failed program was:" >&5 | |
9759 | cat conftest.$ac_ext >&5 | |
9760 | rm -rf conftest* | |
9761 | eval "ac_cv_lib_$ac_lib_var=no" | |
9762 | fi | |
9763 | rm -f conftest* | |
9764 | LIBS="$ac_save_LIBS" | |
9765 | ||
9766 | fi | |
9767 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9768 | echo "$ac_t""yes" 1>&6 | |
9769 | LIBS="$LIBS -lcExt" | |
9770 | else | |
9771 | echo "$ac_t""no" 1>&6 | |
9772 | fi | |
9773 | ||
9774 | else | |
9775 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
9776 | fi | |
9777 | ;; | |
9778 | esac | |
9779 | ||
a0b9e27f | 9780 | |
ac0c4cc3 | 9781 | if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a0b9e27f MB |
9782 | for ac_hdr in strings.h |
9783 | do | |
9784 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9785 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
de6dab5f | 9786 | echo "configure:9787: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9787 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9788 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9789 | else | |
9790 | cat > conftest.$ac_ext <<EOF | |
de6dab5f | 9791 | #line 9792 "configure" |
a0b9e27f MB |
9792 | #include "confdefs.h" |
9793 | #include <$ac_hdr> | |
9794 | EOF | |
9795 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
de6dab5f | 9796 | { (eval echo configure:9797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9797 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9798 | if test -z "$ac_err"; then | |
9799 | rm -rf conftest* | |
9800 | eval "ac_cv_header_$ac_safe=yes" | |
9801 | else | |
9802 | echo "$ac_err" >&5 | |
9803 | echo "configure: failed program was:" >&5 | |
9804 | cat conftest.$ac_ext >&5 | |
9805 | rm -rf conftest* | |
9806 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 9807 | fi |
247f5006 | 9808 | rm -f conftest* |
19bc6aad | 9809 | fi |
a0b9e27f MB |
9810 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9811 | echo "$ac_t""yes" 1>&6 | |
9812 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9813 | cat >> confdefs.h <<EOF | |
9814 | #define $ac_tr_hdr 1 | |
9815 | EOF | |
9816 | ||
247f5006 | 9817 | else |
a0b9e27f | 9818 | echo "$ac_t""no" 1>&6 |
18dbb1f6 | 9819 | fi |
a0b9e27f | 9820 | done |
247f5006 | 9821 | |
90dd450c | 9822 | fi |
90dd450c | 9823 | |
a0b9e27f MB |
9824 | for ac_hdr in stdlib.h |
9825 | do | |
9826 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9827 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
de6dab5f | 9828 | echo "configure:9829: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9829 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9830 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9831 | else | |
9832 | cat > conftest.$ac_ext <<EOF | |
de6dab5f | 9833 | #line 9834 "configure" |
90dd450c | 9834 | #include "confdefs.h" |
a0b9e27f MB |
9835 | #include <$ac_hdr> |
9836 | EOF | |
9837 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
de6dab5f | 9838 | { (eval echo configure:9839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9839 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9840 | if test -z "$ac_err"; then | |
9841 | rm -rf conftest* | |
9842 | eval "ac_cv_header_$ac_safe=yes" | |
9843 | else | |
9844 | echo "$ac_err" >&5 | |
9845 | echo "configure: failed program was:" >&5 | |
9846 | cat conftest.$ac_ext >&5 | |
9847 | rm -rf conftest* | |
9848 | eval "ac_cv_header_$ac_safe=no" | |
9849 | fi | |
9850 | rm -f conftest* | |
9851 | fi | |
9852 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9853 | echo "$ac_t""yes" 1>&6 | |
9854 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9855 | cat >> confdefs.h <<EOF | |
9856 | #define $ac_tr_hdr 1 | |
9857 | EOF | |
9858 | ||
8284b0c5 | 9859 | else |
a0b9e27f | 9860 | echo "$ac_t""no" 1>&6 |
21d1c967 | 9861 | fi |
a0b9e27f MB |
9862 | done |
9863 | ||
9864 | for ac_hdr in malloc.h | |
9865 | do | |
9866 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9867 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
de6dab5f | 9868 | echo "configure:9869: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9869 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9870 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9871 | else | |
9872 | cat > conftest.$ac_ext <<EOF | |
de6dab5f | 9873 | #line 9874 "configure" |
a0b9e27f MB |
9874 | #include "confdefs.h" |
9875 | #include <$ac_hdr> | |
9876 | EOF | |
9877 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
de6dab5f | 9878 | { (eval echo configure:9879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9879 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9880 | if test -z "$ac_err"; then | |
9881 | rm -rf conftest* | |
9882 | eval "ac_cv_header_$ac_safe=yes" | |
9883 | else | |
9884 | echo "$ac_err" >&5 | |
9885 | echo "configure: failed program was:" >&5 | |
9886 | cat conftest.$ac_ext >&5 | |
9887 | rm -rf conftest* | |
9888 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9889 | fi |
a0b9e27f | 9890 | rm -f conftest* |
90dd450c | 9891 | fi |
a0b9e27f MB |
9892 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9893 | echo "$ac_t""yes" 1>&6 | |
9894 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9895 | cat >> confdefs.h <<EOF | |
9896 | #define $ac_tr_hdr 1 | |
9897 | EOF | |
9898 | ||
9899 | else | |
9900 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 9901 | fi |
a0b9e27f | 9902 | done |
247f5006 | 9903 | |
a0b9e27f MB |
9904 | for ac_hdr in unistd.h |
9905 | do | |
9906 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9907 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
de6dab5f | 9908 | echo "configure:9909: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9909 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9910 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9911 | else | |
9912 | cat > conftest.$ac_ext <<EOF | |
de6dab5f | 9913 | #line 9914 "configure" |
a0b9e27f MB |
9914 | #include "confdefs.h" |
9915 | #include <$ac_hdr> | |
9916 | EOF | |
9917 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
de6dab5f | 9918 | { (eval echo configure:9919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9919 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9920 | if test -z "$ac_err"; then | |
9921 | rm -rf conftest* | |
9922 | eval "ac_cv_header_$ac_safe=yes" | |
9923 | else | |
9924 | echo "$ac_err" >&5 | |
9925 | echo "configure: failed program was:" >&5 | |
9926 | cat conftest.$ac_ext >&5 | |
9927 | rm -rf conftest* | |
9928 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 9929 | fi |
a0b9e27f MB |
9930 | rm -f conftest* |
9931 | fi | |
9932 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9933 | echo "$ac_t""yes" 1>&6 | |
9934 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9935 | cat >> confdefs.h <<EOF | |
9936 | #define $ac_tr_hdr 1 | |
9937 | EOF | |
9938 | ||
9939 | else | |
9940 | echo "$ac_t""no" 1>&6 | |
9941 | fi | |
9942 | done | |
90dd450c | 9943 | |
a0b9e27f | 9944 | for ac_hdr in wchar.h |
21d1c967 | 9945 | do |
a0b9e27f MB |
9946 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9947 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
de6dab5f | 9948 | echo "configure:9949: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9949 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9950 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9951 | else | |
9952 | cat > conftest.$ac_ext <<EOF | |
de6dab5f | 9953 | #line 9954 "configure" |
4f14bcd8 | 9954 | #include "confdefs.h" |
a0b9e27f MB |
9955 | #include <$ac_hdr> |
9956 | EOF | |
9957 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
de6dab5f | 9958 | { (eval echo configure:9959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9959 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9960 | if test -z "$ac_err"; then | |
9961 | rm -rf conftest* | |
9962 | eval "ac_cv_header_$ac_safe=yes" | |
9963 | else | |
9964 | echo "$ac_err" >&5 | |
9965 | echo "configure: failed program was:" >&5 | |
9966 | cat conftest.$ac_ext >&5 | |
9967 | rm -rf conftest* | |
9968 | eval "ac_cv_header_$ac_safe=no" | |
9969 | fi | |
9970 | rm -f conftest* | |
9971 | fi | |
9972 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9973 | echo "$ac_t""yes" 1>&6 | |
9974 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9975 | cat >> confdefs.h <<EOF | |
9976 | #define $ac_tr_hdr 1 | |
9977 | EOF | |
9978 | ||
9979 | else | |
9980 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9981 | fi |
9982 | done | |
4f14bcd8 | 9983 | |
5c6fa7d2 | 9984 | |
a0b9e27f MB |
9985 | if test "$ac_cv_header_wchar_h" != "yes"; then |
9986 | for ac_hdr in wcstr.h | |
21d1c967 | 9987 | do |
a0b9e27f MB |
9988 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9989 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
de6dab5f | 9990 | echo "configure:9991: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9991 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9992 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9993 | else | |
9994 | cat > conftest.$ac_ext <<EOF | |
de6dab5f | 9995 | #line 9996 "configure" |
d4158b5d | 9996 | #include "confdefs.h" |
a0b9e27f MB |
9997 | #include <$ac_hdr> |
9998 | EOF | |
9999 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
de6dab5f | 10000 | { (eval echo configure:10001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10001 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10002 | if test -z "$ac_err"; then | |
10003 | rm -rf conftest* | |
10004 | eval "ac_cv_header_$ac_safe=yes" | |
10005 | else | |
10006 | echo "$ac_err" >&5 | |
10007 | echo "configure: failed program was:" >&5 | |
d4158b5d | 10008 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10009 | rm -rf conftest* |
10010 | eval "ac_cv_header_$ac_safe=no" | |
d4158b5d | 10011 | fi |
a0b9e27f | 10012 | rm -f conftest* |
21d1c967 | 10013 | fi |
a0b9e27f MB |
10014 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10015 | echo "$ac_t""yes" 1>&6 | |
10016 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10017 | cat >> confdefs.h <<EOF | |
10018 | #define $ac_tr_hdr 1 | |
10019 | EOF | |
10020 | ||
10021 | else | |
10022 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 10023 | fi |
21d1c967 | 10024 | done |
f6bcfd97 | 10025 | |
90dd450c | 10026 | fi |
90dd450c | 10027 | |
a0b9e27f | 10028 | for ac_hdr in fnmatch.h |
21d1c967 | 10029 | do |
a0b9e27f MB |
10030 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10031 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
de6dab5f | 10032 | echo "configure:10033: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10033 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10034 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10035 | else | |
10036 | cat > conftest.$ac_ext <<EOF | |
de6dab5f | 10037 | #line 10038 "configure" |
90dd450c | 10038 | #include "confdefs.h" |
a0b9e27f MB |
10039 | #include <$ac_hdr> |
10040 | EOF | |
10041 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
de6dab5f | 10042 | { (eval echo configure:10043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10043 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10044 | if test -z "$ac_err"; then | |
10045 | rm -rf conftest* | |
10046 | eval "ac_cv_header_$ac_safe=yes" | |
10047 | else | |
10048 | echo "$ac_err" >&5 | |
10049 | echo "configure: failed program was:" >&5 | |
3a922bb4 | 10050 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10051 | rm -rf conftest* |
10052 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10053 | fi |
a0b9e27f | 10054 | rm -f conftest* |
4f14bcd8 | 10055 | fi |
a0b9e27f MB |
10056 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10057 | echo "$ac_t""yes" 1>&6 | |
10058 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10059 | cat >> confdefs.h <<EOF | |
10060 | #define $ac_tr_hdr 1 | |
10061 | EOF | |
10062 | ||
10063 | else | |
10064 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10065 | fi |
10066 | done | |
90dd450c | 10067 | |
5c6fa7d2 | 10068 | |
a0b9e27f MB |
10069 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
10070 | for ac_func in fnmatch | |
21d1c967 | 10071 | do |
a0b9e27f | 10072 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
de6dab5f | 10073 | echo "configure:10074: checking for $ac_func" >&5 |
a0b9e27f MB |
10074 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10075 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10076 | else |
a0b9e27f | 10077 | cat > conftest.$ac_ext <<EOF |
de6dab5f | 10078 | #line 10079 "configure" |
a0b9e27f MB |
10079 | #include "confdefs.h" |
10080 | /* System header to define __stub macros and hopefully few prototypes, | |
10081 | which can conflict with char $ac_func(); below. */ | |
10082 | #include <assert.h> | |
10083 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10084 | /* We use char because int might match the return type of a gcc2 | |
10085 | builtin and then its argument prototype would still apply. */ | |
10086 | char $ac_func(); | |
10087 | ||
10088 | int main() { | |
10089 | ||
10090 | /* The GNU C library defines this for functions which it implements | |
10091 | to always fail with ENOSYS. Some functions are actually named | |
10092 | something starting with __ and the normal name is an alias. */ | |
10093 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10094 | choke me | |
10095 | #else | |
10096 | $ac_func(); | |
10097 | #endif | |
10098 | ||
10099 | ; return 0; } | |
10100 | EOF | |
de6dab5f | 10101 | if { (eval echo configure:10102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
10102 | rm -rf conftest* |
10103 | eval "ac_cv_func_$ac_func=yes" | |
8284b0c5 | 10104 | else |
a0b9e27f | 10105 | echo "configure: failed program was:" >&5 |
8284b0c5 | 10106 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10107 | rm -rf conftest* |
10108 | eval "ac_cv_func_$ac_func=no" | |
8284b0c5 | 10109 | fi |
a0b9e27f | 10110 | rm -f conftest* |
8284b0c5 | 10111 | fi |
32832908 | 10112 | |
a0b9e27f MB |
10113 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10114 | echo "$ac_t""yes" 1>&6 | |
10115 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10116 | cat >> confdefs.h <<EOF | |
10117 | #define $ac_tr_func 1 | |
10118 | EOF | |
10119 | ||
10120 | else | |
10121 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10122 | fi |
10123 | done | |
90dd450c | 10124 | |
a0b9e27f | 10125 | fi |
90dd450c | 10126 | |
a0b9e27f | 10127 | for ac_hdr in langinfo.h |
21d1c967 | 10128 | do |
a0b9e27f MB |
10129 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10130 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
de6dab5f | 10131 | echo "configure:10132: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10132 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10133 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10134 | else | |
10135 | cat > conftest.$ac_ext <<EOF | |
de6dab5f | 10136 | #line 10137 "configure" |
247f5006 | 10137 | #include "confdefs.h" |
a0b9e27f MB |
10138 | #include <$ac_hdr> |
10139 | EOF | |
10140 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
de6dab5f | 10141 | { (eval echo configure:10142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10142 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10143 | if test -z "$ac_err"; then | |
10144 | rm -rf conftest* | |
10145 | eval "ac_cv_header_$ac_safe=yes" | |
10146 | else | |
10147 | echo "$ac_err" >&5 | |
10148 | echo "configure: failed program was:" >&5 | |
90dd450c | 10149 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10150 | rm -rf conftest* |
10151 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 10152 | fi |
a0b9e27f | 10153 | rm -f conftest* |
4f14bcd8 | 10154 | fi |
a0b9e27f MB |
10155 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10156 | echo "$ac_t""yes" 1>&6 | |
10157 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10158 | cat >> confdefs.h <<EOF | |
10159 | #define $ac_tr_hdr 1 | |
10160 | EOF | |
10161 | ||
10162 | else | |
10163 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10164 | fi |
10165 | done | |
3a922bb4 | 10166 | |
8284b0c5 | 10167 | |
4f5a7f74 VZ |
10168 | case "${host}" in |
10169 | *-pc-os2_emx | *-pc-os2-emx ) | |
10170 | if test $ac_cv_header_langinfo_h = "yes"; then | |
10171 | LIBS="$LIBS -lintl" | |
10172 | fi | |
10173 | ;; | |
10174 | esac | |
1542ea39 | 10175 | |
a0b9e27f MB |
10176 | if test "$wxUSE_GUI" = "yes"; then |
10177 | if test "$wxUSE_UNIX" = "yes"; then | |
10178 | for ac_hdr in X11/XKBlib.h | |
21d1c967 | 10179 | do |
a0b9e27f MB |
10180 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10181 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
de6dab5f | 10182 | echo "configure:10183: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10183 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10184 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10185 | else | |
10186 | cat > conftest.$ac_ext <<EOF | |
de6dab5f | 10187 | #line 10188 "configure" |
90dd450c | 10188 | #include "confdefs.h" |
a0b9e27f MB |
10189 | #include <$ac_hdr> |
10190 | EOF | |
10191 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
de6dab5f | 10192 | { (eval echo configure:10193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10193 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10194 | if test -z "$ac_err"; then | |
10195 | rm -rf conftest* | |
10196 | eval "ac_cv_header_$ac_safe=yes" | |
10197 | else | |
10198 | echo "$ac_err" >&5 | |
10199 | echo "configure: failed program was:" >&5 | |
90dd450c | 10200 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10201 | rm -rf conftest* |
10202 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10203 | fi |
a0b9e27f | 10204 | rm -f conftest* |
90dd450c | 10205 | fi |
a0b9e27f MB |
10206 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10207 | echo "$ac_t""yes" 1>&6 | |
10208 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10209 | cat >> confdefs.h <<EOF | |
10210 | #define $ac_tr_hdr 1 | |
10211 | EOF | |
10212 | ||
10213 | else | |
10214 | echo "$ac_t""no" 1>&6 | |
247f5006 | 10215 | fi |
247f5006 VZ |
10216 | done |
10217 | ||
a0b9e27f MB |
10218 | fi |
10219 | fi | |
247f5006 | 10220 | |
247f5006 | 10221 | |
a0b9e27f | 10222 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
de6dab5f | 10223 | echo "configure:10224: checking for working const" >&5 |
a0b9e27f MB |
10224 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
10225 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10226 | else |
a0b9e27f | 10227 | cat > conftest.$ac_ext <<EOF |
de6dab5f | 10228 | #line 10229 "configure" |
a0b9e27f MB |
10229 | #include "confdefs.h" |
10230 | ||
10231 | int main() { | |
10232 | ||
10233 | /* Ultrix mips cc rejects this. */ | |
10234 | typedef int charset[2]; const charset x; | |
10235 | /* SunOS 4.1.1 cc rejects this. */ | |
10236 | char const *const *ccp; | |
10237 | char **p; | |
10238 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
10239 | struct point {int x, y;}; | |
10240 | static struct point const zero = {0,0}; | |
10241 | /* AIX XL C 1.02.0.0 rejects this. | |
10242 | It does not let you subtract one const X* pointer from another in an arm | |
10243 | of an if-expression whose if-part is not a constant expression */ | |
10244 | const char *g = "string"; | |
10245 | ccp = &g + (g ? g-g : 0); | |
10246 | /* HPUX 7.0 cc rejects these. */ | |
10247 | ++ccp; | |
10248 | p = (char**) ccp; | |
10249 | ccp = (char const *const *) p; | |
10250 | { /* SCO 3.2v4 cc rejects this. */ | |
10251 | char *t; | |
10252 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
10253 | ||
10254 | *t++ = 0; | |
10255 | } | |
10256 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
10257 | int x[] = {25, 17}; | |
10258 | const int *foo = &x[0]; | |
10259 | ++foo; | |
10260 | } | |
10261 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
10262 | typedef const int *iptr; | |
10263 | iptr p = 0; | |
10264 | ++p; | |
10265 | } | |
10266 | { /* AIX XL C 1.02.0.0 rejects this saying | |
10267 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
10268 | struct s { int j; const int *ap[3]; }; | |
10269 | struct s *b; b->j = 5; | |
10270 | } | |
10271 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
10272 | const int foo = 10; | |
10273 | } | |
10274 | ||
10275 | ; return 0; } | |
10276 | EOF | |
de6dab5f | 10277 | if { (eval echo configure:10278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10278 | rm -rf conftest* |
10279 | ac_cv_c_const=yes | |
247f5006 | 10280 | else |
a0b9e27f | 10281 | echo "configure: failed program was:" >&5 |
247f5006 | 10282 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10283 | rm -rf conftest* |
10284 | ac_cv_c_const=no | |
247f5006 | 10285 | fi |
a0b9e27f | 10286 | rm -f conftest* |
21d1c967 | 10287 | fi |
247f5006 | 10288 | |
a0b9e27f MB |
10289 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
10290 | if test $ac_cv_c_const = no; then | |
10291 | cat >> confdefs.h <<\EOF | |
10292 | #define const | |
10293 | EOF | |
10f2d63a | 10294 | |
90dd450c | 10295 | fi |
81809c07 | 10296 | |
a0b9e27f | 10297 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
de6dab5f | 10298 | echo "configure:10299: checking for inline" >&5 |
a0b9e27f MB |
10299 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
10300 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8168de4c | 10301 | else |
a0b9e27f MB |
10302 | ac_cv_c_inline=no |
10303 | for ac_kw in inline __inline__ __inline; do | |
10304 | cat > conftest.$ac_ext <<EOF | |
de6dab5f | 10305 | #line 10306 "configure" |
a0b9e27f MB |
10306 | #include "confdefs.h" |
10307 | ||
10308 | int main() { | |
10309 | } $ac_kw foo() { | |
10310 | ; return 0; } | |
10311 | EOF | |
de6dab5f | 10312 | if { (eval echo configure:10313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10313 | rm -rf conftest* |
10314 | ac_cv_c_inline=$ac_kw; break | |
247f5006 | 10315 | else |
a0b9e27f | 10316 | echo "configure: failed program was:" >&5 |
247f5006 | 10317 | cat conftest.$ac_ext >&5 |
247f5006 | 10318 | fi |
a0b9e27f MB |
10319 | rm -f conftest* |
10320 | done | |
247f5006 VZ |
10321 | |
10322 | fi | |
10323 | ||
a0b9e27f MB |
10324 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
10325 | case "$ac_cv_c_inline" in | |
10326 | inline | yes) ;; | |
10327 | no) cat >> confdefs.h <<\EOF | |
10328 | #define inline | |
10329 | EOF | |
10330 | ;; | |
10331 | *) cat >> confdefs.h <<EOF | |
10332 | #define inline $ac_cv_c_inline | |
10333 | EOF | |
10334 | ;; | |
10335 | esac | |
247f5006 | 10336 | |
247f5006 | 10337 | |
a0b9e27f | 10338 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
de6dab5f | 10339 | echo "configure:10340: checking size of char" >&5 |
a0b9e27f MB |
10340 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
10341 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10342 | else | |
10343 | if test "$cross_compiling" = yes; then | |
10344 | ac_cv_sizeof_char=1 | |
10345 | else | |
10346 | cat > conftest.$ac_ext <<EOF | |
de6dab5f | 10347 | #line 10348 "configure" |
4f14bcd8 | 10348 | #include "confdefs.h" |
a0b9e27f | 10349 | #include <stdio.h> |
f7f78039 | 10350 | #include <sys/types.h> |
a0b9e27f | 10351 | main() |
247f5006 | 10352 | { |
a0b9e27f MB |
10353 | FILE *f=fopen("conftestval", "w"); |
10354 | if (!f) exit(1); | |
10355 | fprintf(f, "%d\n", sizeof(char)); | |
10356 | exit(0); | |
52127426 | 10357 | } |
a0b9e27f | 10358 | EOF |
f7f78039 | 10359 | if { (eval echo configure:10360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10360 | then |
10361 | ac_cv_sizeof_char=`cat conftestval` | |
247f5006 | 10362 | else |
a0b9e27f | 10363 | echo "configure: failed program was:" >&5 |
247f5006 | 10364 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10365 | rm -fr conftest* |
10366 | ac_cv_sizeof_char=0 | |
247f5006 | 10367 | fi |
a0b9e27f | 10368 | rm -fr conftest* |
247f5006 | 10369 | fi |
247f5006 VZ |
10370 | |
10371 | fi | |
a0b9e27f MB |
10372 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10373 | cat >> confdefs.h <<EOF | |
10374 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10375 | EOF | |
247f5006 | 10376 | |
247f5006 | 10377 | |
a0b9e27f | 10378 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
f7f78039 | 10379 | echo "configure:10380: checking size of short" >&5 |
a0b9e27f MB |
10380 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10381 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10382 | else |
a0b9e27f MB |
10383 | if test "$cross_compiling" = yes; then |
10384 | ac_cv_sizeof_short=2 | |
247f5006 | 10385 | else |
a0b9e27f | 10386 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 10387 | #line 10388 "configure" |
a0b9e27f MB |
10388 | #include "confdefs.h" |
10389 | #include <stdio.h> | |
f7f78039 | 10390 | #include <sys/types.h> |
a0b9e27f MB |
10391 | main() |
10392 | { | |
10393 | FILE *f=fopen("conftestval", "w"); | |
10394 | if (!f) exit(1); | |
10395 | fprintf(f, "%d\n", sizeof(short)); | |
10396 | exit(0); | |
10397 | } | |
10398 | EOF | |
f7f78039 | 10399 | if { (eval echo configure:10400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10400 | then |
10401 | ac_cv_sizeof_short=`cat conftestval` | |
247f5006 | 10402 | else |
a0b9e27f MB |
10403 | echo "configure: failed program was:" >&5 |
10404 | cat conftest.$ac_ext >&5 | |
10405 | rm -fr conftest* | |
10406 | ac_cv_sizeof_short=0 | |
247f5006 | 10407 | fi |
a0b9e27f | 10408 | rm -fr conftest* |
247f5006 VZ |
10409 | fi |
10410 | ||
247f5006 | 10411 | fi |
a0b9e27f MB |
10412 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10413 | cat >> confdefs.h <<EOF | |
10414 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10415 | EOF | |
247f5006 VZ |
10416 | |
10417 | ||
a0b9e27f | 10418 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
f7f78039 | 10419 | echo "configure:10420: checking size of void *" >&5 |
a0b9e27f MB |
10420 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
10421 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10422 | else | |
10423 | if test "$cross_compiling" = yes; then | |
10424 | ac_cv_sizeof_void_p=4 | |
247f5006 | 10425 | else |
a0b9e27f | 10426 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 10427 | #line 10428 "configure" |
247f5006 | 10428 | #include "confdefs.h" |
247f5006 | 10429 | #include <stdio.h> |
f7f78039 | 10430 | #include <sys/types.h> |
a0b9e27f | 10431 | main() |
247f5006 | 10432 | { |
a0b9e27f MB |
10433 | FILE *f=fopen("conftestval", "w"); |
10434 | if (!f) exit(1); | |
10435 | fprintf(f, "%d\n", sizeof(void *)); | |
10436 | exit(0); | |
5c6fa7d2 | 10437 | } |
a0b9e27f | 10438 | EOF |
f7f78039 | 10439 | if { (eval echo configure:10440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10440 | then |
10441 | ac_cv_sizeof_void_p=`cat conftestval` | |
10442 | else | |
10443 | echo "configure: failed program was:" >&5 | |
10444 | cat conftest.$ac_ext >&5 | |
10445 | rm -fr conftest* | |
10446 | ac_cv_sizeof_void_p=0 | |
10447 | fi | |
10448 | rm -fr conftest* | |
10449 | fi | |
8284b0c5 | 10450 | |
247f5006 | 10451 | fi |
a0b9e27f MB |
10452 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
10453 | cat >> confdefs.h <<EOF | |
10454 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
10455 | EOF | |
247f5006 | 10456 | |
247f5006 | 10457 | |
a0b9e27f | 10458 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
f7f78039 | 10459 | echo "configure:10460: checking size of int" >&5 |
a0b9e27f MB |
10460 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
10461 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10462 | else |
a0b9e27f MB |
10463 | if test "$cross_compiling" = yes; then |
10464 | ac_cv_sizeof_int=4 | |
10465 | else | |
10466 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 10467 | #line 10468 "configure" |
247f5006 | 10468 | #include "confdefs.h" |
a0b9e27f | 10469 | #include <stdio.h> |
f7f78039 | 10470 | #include <sys/types.h> |
a0b9e27f | 10471 | main() |
247f5006 | 10472 | { |
a0b9e27f MB |
10473 | FILE *f=fopen("conftestval", "w"); |
10474 | if (!f) exit(1); | |
10475 | fprintf(f, "%d\n", sizeof(int)); | |
10476 | exit(0); | |
247f5006 | 10477 | } |
a0b9e27f | 10478 | EOF |
f7f78039 | 10479 | if { (eval echo configure:10480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10480 | then |
10481 | ac_cv_sizeof_int=`cat conftestval` | |
6f72b082 | 10482 | else |
a0b9e27f MB |
10483 | echo "configure: failed program was:" >&5 |
10484 | cat conftest.$ac_ext >&5 | |
10485 | rm -fr conftest* | |
10486 | ac_cv_sizeof_int=0 | |
21d1c967 | 10487 | fi |
a0b9e27f | 10488 | rm -fr conftest* |
698dcdb6 | 10489 | fi |
4f14bcd8 | 10490 | |
21d1c967 | 10491 | fi |
a0b9e27f MB |
10492 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
10493 | cat >> confdefs.h <<EOF | |
10494 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10495 | EOF | |
4f14bcd8 | 10496 | |
5c6fa7d2 | 10497 | |
a0b9e27f | 10498 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
f7f78039 | 10499 | echo "configure:10500: checking size of long" >&5 |
a0b9e27f MB |
10500 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
10501 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10502 | else |
247f5006 | 10503 | if test "$cross_compiling" = yes; then |
a0b9e27f | 10504 | ac_cv_sizeof_long=4 |
247f5006 | 10505 | else |
a0b9e27f | 10506 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 10507 | #line 10508 "configure" |
247f5006 | 10508 | #include "confdefs.h" |
a0b9e27f | 10509 | #include <stdio.h> |
f7f78039 | 10510 | #include <sys/types.h> |
a0b9e27f | 10511 | main() |
247f5006 | 10512 | { |
a0b9e27f MB |
10513 | FILE *f=fopen("conftestval", "w"); |
10514 | if (!f) exit(1); | |
10515 | fprintf(f, "%d\n", sizeof(long)); | |
10516 | exit(0); | |
247f5006 | 10517 | } |
a0b9e27f | 10518 | EOF |
f7f78039 | 10519 | if { (eval echo configure:10520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10520 | then |
10521 | ac_cv_sizeof_long=`cat conftestval` | |
247f5006 | 10522 | else |
a0b9e27f MB |
10523 | echo "configure: failed program was:" >&5 |
10524 | cat conftest.$ac_ext >&5 | |
10525 | rm -fr conftest* | |
10526 | ac_cv_sizeof_long=0 | |
247f5006 | 10527 | fi |
a0b9e27f | 10528 | rm -fr conftest* |
247f5006 | 10529 | fi |
247f5006 | 10530 | |
5c6fa7d2 | 10531 | fi |
a0b9e27f MB |
10532 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
10533 | cat >> confdefs.h <<EOF | |
10534 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10535 | EOF | |
247f5006 | 10536 | |
a0b9e27f MB |
10537 | |
10538 | ||
10539 | case "${host}" in | |
10540 | arm-*-linux* ) | |
10541 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
f7f78039 | 10542 | echo "configure:10543: checking size of long long" >&5 |
a0b9e27f MB |
10543 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10544 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10545 | else | |
10546 | if test "$cross_compiling" = yes; then | |
10547 | ac_cv_sizeof_long_long=8 | |
10548 | else | |
10549 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 10550 | #line 10551 "configure" |
247f5006 | 10551 | #include "confdefs.h" |
a0b9e27f | 10552 | #include <stdio.h> |
f7f78039 | 10553 | #include <sys/types.h> |
a0b9e27f | 10554 | main() |
247f5006 | 10555 | { |
a0b9e27f MB |
10556 | FILE *f=fopen("conftestval", "w"); |
10557 | if (!f) exit(1); | |
10558 | fprintf(f, "%d\n", sizeof(long long)); | |
10559 | exit(0); | |
247f5006 | 10560 | } |
a0b9e27f | 10561 | EOF |
f7f78039 | 10562 | if { (eval echo configure:10563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10563 | then |
10564 | ac_cv_sizeof_long_long=`cat conftestval` | |
7b4a847f | 10565 | else |
a0b9e27f MB |
10566 | echo "configure: failed program was:" >&5 |
10567 | cat conftest.$ac_ext >&5 | |
10568 | rm -fr conftest* | |
10569 | ac_cv_sizeof_long_long=0 | |
5c6fa7d2 | 10570 | fi |
a0b9e27f | 10571 | rm -fr conftest* |
5c6fa7d2 | 10572 | fi |
8284b0c5 | 10573 | |
a0b9e27f MB |
10574 | fi |
10575 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10576 | cat >> confdefs.h <<EOF | |
10577 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10578 | EOF | |
10579 | ||
10580 | ||
10581 | ;; | |
4f57cf11 | 10582 | *-hp-hpux* ) |
a0b9e27f | 10583 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
f7f78039 | 10584 | echo "configure:10585: checking size of long long" >&5 |
a0b9e27f MB |
10585 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10586 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 MB |
10587 | else |
10588 | if test "$cross_compiling" = yes; then | |
a0b9e27f | 10589 | ac_cv_sizeof_long_long=0 |
8284b0c5 | 10590 | else |
a0b9e27f | 10591 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 10592 | #line 10593 "configure" |
8284b0c5 MB |
10593 | #include "confdefs.h" |
10594 | #include <stdio.h> | |
f7f78039 | 10595 | #include <sys/types.h> |
a0b9e27f | 10596 | main() |
8284b0c5 | 10597 | { |
a0b9e27f MB |
10598 | FILE *f=fopen("conftestval", "w"); |
10599 | if (!f) exit(1); | |
10600 | fprintf(f, "%d\n", sizeof(long long)); | |
10601 | exit(0); | |
8284b0c5 | 10602 | } |
a0b9e27f | 10603 | EOF |
f7f78039 | 10604 | if { (eval echo configure:10605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10605 | then |
10606 | ac_cv_sizeof_long_long=`cat conftestval` | |
5c6fa7d2 | 10607 | else |
a0b9e27f MB |
10608 | echo "configure: failed program was:" >&5 |
10609 | cat conftest.$ac_ext >&5 | |
10610 | rm -fr conftest* | |
5c6fa7d2 | 10611 | ac_cv_sizeof_long_long=0 |
52127426 | 10612 | fi |
a0b9e27f MB |
10613 | rm -fr conftest* |
10614 | fi | |
10615 | ||
4f57cf11 GD |
10616 | fi |
10617 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10618 | cat >> confdefs.h <<EOF | |
10619 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10620 | EOF | |
10621 | ||
10622 | ||
10623 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
10624 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
10625 | fi | |
10626 | ;; | |
10627 | * ) | |
10628 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
f7f78039 | 10629 | echo "configure:10630: checking size of long long" >&5 |
4f57cf11 GD |
10630 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10631 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10632 | else | |
10633 | if test "$cross_compiling" = yes; then | |
10634 | ac_cv_sizeof_long_long=0 | |
10635 | else | |
10636 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 10637 | #line 10638 "configure" |
4f57cf11 GD |
10638 | #include "confdefs.h" |
10639 | #include <stdio.h> | |
f7f78039 | 10640 | #include <sys/types.h> |
4f57cf11 GD |
10641 | main() |
10642 | { | |
10643 | FILE *f=fopen("conftestval", "w"); | |
10644 | if (!f) exit(1); | |
10645 | fprintf(f, "%d\n", sizeof(long long)); | |
10646 | exit(0); | |
10647 | } | |
10648 | EOF | |
f7f78039 | 10649 | if { (eval echo configure:10650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f57cf11 GD |
10650 | then |
10651 | ac_cv_sizeof_long_long=`cat conftestval` | |
10652 | else | |
10653 | echo "configure: failed program was:" >&5 | |
10654 | cat conftest.$ac_ext >&5 | |
10655 | rm -fr conftest* | |
10656 | ac_cv_sizeof_long_long=0 | |
10657 | fi | |
10658 | rm -fr conftest* | |
10659 | fi | |
10660 | ||
7b4a847f | 10661 | fi |
a0b9e27f MB |
10662 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10663 | cat >> confdefs.h <<EOF | |
21d1c967 | 10664 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
a0b9e27f | 10665 | EOF |
9e691f46 | 10666 | |
8284b0c5 | 10667 | |
21d1c967 GD |
10668 | esac |
10669 | ||
a0b9e27f | 10670 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
f7f78039 | 10671 | echo "configure:10672: checking size of wchar_t" >&5 |
a0b9e27f MB |
10672 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
10673 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 10674 | else |
a0b9e27f | 10675 | |
21d1c967 | 10676 | if test "$cross_compiling" = yes; then |
2b5f62a0 VZ |
10677 | |
10678 | case "${host}" in | |
10679 | *-pc-msdosdjgpp ) | |
10680 | wx_cv_sizeof_wchar_t=0 | |
10681 | ;; | |
10682 | * ) | |
10683 | wx_cv_sizeof_wchar_t=4 | |
10684 | ;; | |
10685 | esac | |
10686 | ||
a0b9e27f | 10687 | |
6f72b082 | 10688 | else |
a0b9e27f | 10689 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 10690 | #line 10691 "configure" |
6f72b082 | 10691 | #include "confdefs.h" |
21d1c967 | 10692 | |
2b5f62a0 VZ |
10693 | /* DJGPP only has fake wchar_t: */ |
10694 | #ifdef __DJGPP__ | |
10695 | # error "fake wchar_t" | |
10696 | #endif | |
21d1c967 GD |
10697 | #ifdef HAVE_WCHAR_H |
10698 | # ifdef __CYGWIN__ | |
10699 | # include <stddef.h> | |
10700 | # endif | |
10701 | # include <wchar.h> | |
10702 | #endif | |
10703 | #ifdef HAVE_STDLIB_H | |
10704 | # include <stdlib.h> | |
10705 | #endif | |
10706 | #include <stdio.h> | |
10707 | int main() | |
10708 | { | |
10709 | FILE *f=fopen("conftestval", "w"); | |
10710 | if (!f) exit(1); | |
10711 | fprintf(f, "%i", sizeof(wchar_t)); | |
10712 | exit(0); | |
10713 | } | |
a0b9e27f MB |
10714 | |
10715 | EOF | |
f7f78039 | 10716 | if { (eval echo configure:10717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10717 | then |
21d1c967 | 10718 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 10719 | else |
a0b9e27f MB |
10720 | echo "configure: failed program was:" >&5 |
10721 | cat conftest.$ac_ext >&5 | |
10722 | rm -fr conftest* | |
10723 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 10724 | fi |
a0b9e27f | 10725 | rm -fr conftest* |
6f72b082 | 10726 | fi |
6f72b082 | 10727 | |
a0b9e27f | 10728 | |
3f345b47 VZ |
10729 | fi |
10730 | ||
a0b9e27f MB |
10731 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
10732 | ||
10733 | cat >> confdefs.h <<EOF | |
21d1c967 | 10734 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
a0b9e27f | 10735 | EOF |
90dd450c | 10736 | |
8284b0c5 | 10737 | |
21d1c967 GD |
10738 | # Check whether --enable-largefile or --disable-largefile was given. |
10739 | if test "${enable_largefile+set}" = set; then | |
10740 | enableval="$enable_largefile" | |
a0b9e27f MB |
10741 | : |
10742 | fi | |
3f345b47 | 10743 | |
21d1c967 GD |
10744 | if test "$enable_largefile" != no; then |
10745 | wx_largefile=no | |
a0b9e27f MB |
10746 | |
10747 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
f7f78039 | 10748 | echo "configure:10749: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
a0b9e27f MB |
10749 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
10750 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10751 | else | |
10752 | ||
10753 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 10754 | #line 10755 "configure" |
90dd450c | 10755 | #include "confdefs.h" |
21d1c967 GD |
10756 | #define _FILE_OFFSET_BITS 64 |
10757 | #include <sys/types.h> | |
a0b9e27f | 10758 | int main() { |
21d1c967 GD |
10759 | typedef struct { |
10760 | unsigned int field: sizeof(off_t) == 8; | |
10761 | } wxlf; | |
10762 | ||
a0b9e27f MB |
10763 | ; return 0; } |
10764 | EOF | |
f7f78039 | 10765 | if { (eval echo configure:10766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10766 | rm -rf conftest* |
21d1c967 | 10767 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 10768 | else |
a0b9e27f MB |
10769 | echo "configure: failed program was:" >&5 |
10770 | cat conftest.$ac_ext >&5 | |
10771 | rm -rf conftest* | |
10772 | ac_cv_sys_file_offset_bits=no | |
5c6fa7d2 | 10773 | fi |
a0b9e27f MB |
10774 | rm -f conftest* |
10775 | ||
10776 | ||
247f5006 | 10777 | fi |
a0b9e27f MB |
10778 | |
10779 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
21d1c967 GD |
10780 | |
10781 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
10782 | wx_largefile=yes | |
a0b9e27f | 10783 | cat >> confdefs.h <<EOF |
21d1c967 | 10784 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
a0b9e27f | 10785 | EOF |
21d1c967 GD |
10786 | |
10787 | fi | |
10788 | ||
10789 | if test "x$wx_largefile" != "xyes"; then | |
a0b9e27f MB |
10790 | |
10791 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
f7f78039 | 10792 | echo "configure:10793: checking for _LARGE_FILES value needed for large files" >&5 |
a0b9e27f MB |
10793 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
10794 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10795 | else | |
10796 | ||
10797 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 10798 | #line 10799 "configure" |
f6bcfd97 | 10799 | #include "confdefs.h" |
21d1c967 GD |
10800 | #define _LARGE_FILES 1 |
10801 | #include <sys/types.h> | |
a0b9e27f | 10802 | int main() { |
21d1c967 GD |
10803 | typedef struct { |
10804 | unsigned int field: sizeof(off_t) == 8; | |
10805 | } wxlf; | |
10806 | ||
a0b9e27f MB |
10807 | ; return 0; } |
10808 | EOF | |
f7f78039 | 10809 | if { (eval echo configure:10810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10810 | rm -rf conftest* |
21d1c967 | 10811 | ac_cv_sys_large_files=1 |
f6bcfd97 | 10812 | else |
a0b9e27f MB |
10813 | echo "configure: failed program was:" >&5 |
10814 | cat conftest.$ac_ext >&5 | |
10815 | rm -rf conftest* | |
10816 | ac_cv_sys_large_files=no | |
5c6fa7d2 | 10817 | fi |
a0b9e27f MB |
10818 | rm -f conftest* |
10819 | ||
10820 | ||
247f5006 | 10821 | fi |
a0b9e27f MB |
10822 | |
10823 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
3f345b47 | 10824 | |
21d1c967 GD |
10825 | if test "$ac_cv_sys_large_files" != no; then |
10826 | wx_largefile=yes | |
a0b9e27f | 10827 | cat >> confdefs.h <<EOF |
21d1c967 | 10828 | #define _LARGE_FILES $ac_cv_sys_large_files |
a0b9e27f | 10829 | EOF |
90dd450c | 10830 | |
90dd450c VZ |
10831 | fi |
10832 | ||
90dd450c | 10833 | fi |
90dd450c | 10834 | |
a0b9e27f | 10835 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
f7f78039 | 10836 | echo "configure:10837: checking if large file support is available" >&5 |
21d1c967 | 10837 | if test "x$wx_largefile" = "xyes"; then |
a0b9e27f | 10838 | cat >> confdefs.h <<\EOF |
21d1c967 | 10839 | #define HAVE_LARGEFILE_SUPPORT 1 |
a0b9e27f | 10840 | EOF |
90dd450c | 10841 | |
90dd450c | 10842 | fi |
a0b9e27f | 10843 | echo "$ac_t""$wx_largefile" 1>&6 |
21d1c967 | 10844 | fi |
90dd450c | 10845 | |
8284b0c5 | 10846 | |
f02444d0 | 10847 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
10848 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
10849 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 10850 | else |
e26c13cf | 10851 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 10852 | fi |
e26c13cf | 10853 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
10854 | fi |
10855 | ||
a0b9e27f | 10856 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
f7f78039 | 10857 | echo "configure:10858: checking whether byte ordering is bigendian" >&5 |
a0b9e27f MB |
10858 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
10859 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 10860 | else |
21d1c967 GD |
10861 | ac_cv_c_bigendian=unknown |
10862 | # See if sys/param.h defines the BYTE_ORDER macro. | |
a0b9e27f | 10863 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 10864 | #line 10865 "configure" |
90dd450c | 10865 | #include "confdefs.h" |
21d1c967 GD |
10866 | #include <sys/types.h> |
10867 | #include <sys/param.h> | |
a0b9e27f | 10868 | int main() { |
21d1c967 GD |
10869 | |
10870 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10871 | bogus endian macros | |
10872 | #endif | |
a0b9e27f MB |
10873 | ; return 0; } |
10874 | EOF | |
f7f78039 | 10875 | if { (eval echo configure:10876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10876 | rm -rf conftest* |
21d1c967 | 10877 | # It does; now see whether it defined to BIG_ENDIAN or not. |
a0b9e27f | 10878 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 10879 | #line 10880 "configure" |
90dd450c | 10880 | #include "confdefs.h" |
21d1c967 GD |
10881 | #include <sys/types.h> |
10882 | #include <sys/param.h> | |
a0b9e27f | 10883 | int main() { |
21d1c967 GD |
10884 | |
10885 | #if BYTE_ORDER != BIG_ENDIAN | |
10886 | not big endian | |
10887 | #endif | |
a0b9e27f MB |
10888 | ; return 0; } |
10889 | EOF | |
f7f78039 | 10890 | if { (eval echo configure:10891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10891 | rm -rf conftest* |
21d1c967 | 10892 | ac_cv_c_bigendian=yes |
3f345b47 | 10893 | else |
a0b9e27f MB |
10894 | echo "configure: failed program was:" >&5 |
10895 | cat conftest.$ac_ext >&5 | |
10896 | rm -rf conftest* | |
10897 | ac_cv_c_bigendian=no | |
3f345b47 | 10898 | fi |
a0b9e27f | 10899 | rm -f conftest* |
3f345b47 | 10900 | else |
a0b9e27f MB |
10901 | echo "configure: failed program was:" >&5 |
10902 | cat conftest.$ac_ext >&5 | |
3f345b47 | 10903 | fi |
a0b9e27f | 10904 | rm -f conftest* |
21d1c967 GD |
10905 | if test $ac_cv_c_bigendian = unknown; then |
10906 | if test "$cross_compiling" = yes; then | |
10907 | ac_cv_c_bigendian=unknown | |
10f2d63a | 10908 | else |
a0b9e27f | 10909 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 10910 | #line 10911 "configure" |
90dd450c | 10911 | #include "confdefs.h" |
21d1c967 GD |
10912 | main () { |
10913 | /* Are we little or big endian? From Harbison&Steele. */ | |
10914 | union | |
10915 | { | |
10916 | long l; | |
10917 | char c[sizeof (long)]; | |
10918 | } u; | |
10919 | u.l = 1; | |
10920 | exit (u.c[sizeof (long) - 1] == 1); | |
10921 | } | |
a0b9e27f | 10922 | EOF |
f7f78039 | 10923 | if { (eval echo configure:10924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10924 | then |
21d1c967 | 10925 | ac_cv_c_bigendian=no |
3f345b47 | 10926 | else |
a0b9e27f MB |
10927 | echo "configure: failed program was:" >&5 |
10928 | cat conftest.$ac_ext >&5 | |
10929 | rm -fr conftest* | |
10930 | ac_cv_c_bigendian=yes | |
247f5006 | 10931 | fi |
a0b9e27f | 10932 | rm -fr conftest* |
247f5006 | 10933 | fi |
a0b9e27f | 10934 | |
3f345b47 | 10935 | fi |
8168de4c | 10936 | fi |
a0b9e27f MB |
10937 | |
10938 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
247f5006 | 10939 | if test $ac_cv_c_bigendian = unknown; then |
a0b9e27f | 10940 | 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 |
10941 | fi |
10942 | if test $ac_cv_c_bigendian = yes; then | |
a0b9e27f | 10943 | cat >> confdefs.h <<\EOF |
247f5006 | 10944 | #define WORDS_BIGENDIAN 1 |
a0b9e27f | 10945 | EOF |
247f5006 VZ |
10946 | |
10947 | fi | |
10948 | ||
10949 | ||
a0b9e27f | 10950 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
f7f78039 | 10951 | echo "configure:10952: checking how to run the C++ preprocessor" >&5 |
247f5006 | 10952 | if test -z "$CXXCPP"; then |
a0b9e27f MB |
10953 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
10954 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10955 | else |
a0b9e27f MB |
10956 | ac_ext=C |
10957 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10958 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10959 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10960 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10961 | cross_compiling=$ac_cv_prog_cxx_cross | |
10962 | CXXCPP="${CXX-g++} -E" | |
10963 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 10964 | #line 10965 "configure" |
5c6fa7d2 | 10965 | #include "confdefs.h" |
a0b9e27f MB |
10966 | #include <stdlib.h> |
10967 | EOF | |
10968 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f7f78039 | 10969 | { (eval echo configure:10970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10970 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10971 | if test -z "$ac_err"; then | |
21d1c967 | 10972 | : |
698dcdb6 | 10973 | else |
a0b9e27f MB |
10974 | echo "$ac_err" >&5 |
10975 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 10976 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10977 | rm -rf conftest* |
10978 | CXXCPP=/lib/cpp | |
247f5006 | 10979 | fi |
a0b9e27f MB |
10980 | rm -f conftest* |
10981 | ac_cv_prog_CXXCPP="$CXXCPP" | |
10982 | ac_ext=C | |
10983 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10984 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10985 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10986 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10987 | cross_compiling=$ac_cv_prog_cxx_cross | |
328a083c | 10988 | fi |
90dd450c | 10989 | fi |
a0b9e27f MB |
10990 | CXXCPP="$ac_cv_prog_CXXCPP" |
10991 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e6feb95 | 10992 | |
1725144d | 10993 | |
21d1c967 | 10994 | if test "$cross_compiling" = "yes"; then |
a0b9e27f | 10995 | cat >> confdefs.h <<\EOF |
21d1c967 | 10996 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 10997 | EOF |
ab9b9eab | 10998 | |
21d1c967 | 10999 | else |
a0b9e27f MB |
11000 | |
11001 | ac_ext=C | |
11002 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11003 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11004 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11005 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11006 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 11007 | |
247f5006 | 11008 | |
a0b9e27f | 11009 | for ac_hdr in iostream |
21d1c967 | 11010 | do |
a0b9e27f MB |
11011 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11012 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f7f78039 | 11013 | echo "configure:11014: checking for $ac_hdr" >&5 |
a0b9e27f MB |
11014 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11015 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11016 | else | |
11017 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 11018 | #line 11019 "configure" |
ab9b9eab | 11019 | #include "confdefs.h" |
a0b9e27f MB |
11020 | #include <$ac_hdr> |
11021 | EOF | |
11022 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f7f78039 | 11023 | { (eval echo configure:11024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11024 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11025 | if test -z "$ac_err"; then | |
11026 | rm -rf conftest* | |
11027 | eval "ac_cv_header_$ac_safe=yes" | |
11028 | else | |
11029 | echo "$ac_err" >&5 | |
11030 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 11031 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11032 | rm -rf conftest* |
11033 | eval "ac_cv_header_$ac_safe=no" | |
ab9b9eab | 11034 | fi |
a0b9e27f | 11035 | rm -f conftest* |
90dd450c | 11036 | fi |
a0b9e27f MB |
11037 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11038 | echo "$ac_t""yes" 1>&6 | |
11039 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11040 | cat >> confdefs.h <<EOF | |
11041 | #define $ac_tr_hdr 1 | |
11042 | EOF | |
11043 | ||
11044 | else | |
11045 | echo "$ac_t""no" 1>&6 | |
90dd450c | 11046 | fi |
21d1c967 | 11047 | done |
10f2d63a | 11048 | |
8284b0c5 | 11049 | |
21d1c967 GD |
11050 | if test "$ac_cv_header_iostream" = "yes" ; then |
11051 | : | |
11052 | else | |
a0b9e27f | 11053 | cat >> confdefs.h <<\EOF |
21d1c967 | 11054 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11055 | EOF |
788deba1 | 11056 | |
90dd450c | 11057 | fi |
ab9b9eab | 11058 | |
21d1c967 | 11059 | ac_ext=c |
a0b9e27f | 11060 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11061 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11062 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11063 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11064 | cross_compiling=$ac_cv_prog_cc_cross | |
ab9b9eab | 11065 | |
21d1c967 | 11066 | fi |
ab9b9eab | 11067 | |
52127426 | 11068 | |
8284b0c5 | 11069 | |
a0b9e27f | 11070 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
f7f78039 | 11071 | echo "configure:11072: checking if C++ compiler supports bool" >&5 |
a0b9e27f MB |
11072 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
11073 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11074 | else |
a0b9e27f MB |
11075 | |
11076 | ||
11077 | ac_ext=C | |
11078 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11079 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11080 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11081 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11082 | cross_compiling=$ac_cv_prog_cxx_cross | |
21d1c967 | 11083 | |
8284b0c5 | 11084 | |
a0b9e27f | 11085 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 11086 | #line 11087 "configure" |
ab9b9eab | 11087 | #include "confdefs.h" |
21d1c967 | 11088 | |
a0b9e27f MB |
11089 | |
11090 | int main() { | |
21d1c967 GD |
11091 | |
11092 | bool b = true; | |
11093 | ||
11094 | return 0; | |
a0b9e27f MB |
11095 | |
11096 | ; return 0; } | |
11097 | EOF | |
f7f78039 | 11098 | if { (eval echo configure:11099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11099 | rm -rf conftest* |
11100 | ||
21d1c967 | 11101 | wx_cv_cpp_bool=yes |
a0b9e27f | 11102 | |
698dcdb6 | 11103 | else |
a0b9e27f MB |
11104 | echo "configure: failed program was:" >&5 |
11105 | cat conftest.$ac_ext >&5 | |
11106 | rm -rf conftest* | |
11107 | ||
21d1c967 | 11108 | wx_cv_cpp_bool=no |
a0b9e27f MB |
11109 | |
11110 | ||
698dcdb6 | 11111 | fi |
a0b9e27f | 11112 | rm -f conftest* |
21d1c967 GD |
11113 | |
11114 | ac_ext=c | |
a0b9e27f | 11115 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11116 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11117 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11118 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11119 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11120 | |
a0b9e27f | 11121 | |
247f5006 | 11122 | fi |
a0b9e27f MB |
11123 | |
11124 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
21d1c967 GD |
11125 | |
11126 | if test "$wx_cv_cpp_bool" = "yes"; then | |
a0b9e27f | 11127 | cat >> confdefs.h <<\EOF |
21d1c967 | 11128 | #define HAVE_BOOL 1 |
a0b9e27f | 11129 | EOF |
ab9b9eab | 11130 | |
21d1c967 GD |
11131 | fi |
11132 | ||
52127426 | 11133 | |
8284b0c5 | 11134 | |
a0b9e27f | 11135 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 |
f7f78039 | 11136 | echo "configure:11137: checking if C++ compiler supports the explicit keyword" >&5 |
a0b9e27f MB |
11137 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then |
11138 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11139 | else |
a0b9e27f MB |
11140 | |
11141 | ||
11142 | ac_ext=C | |
11143 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11144 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11145 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11146 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11147 | cross_compiling=$ac_cv_prog_cxx_cross | |
986ecc86 | 11148 | |
8284b0c5 | 11149 | |
a0b9e27f | 11150 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 11151 | #line 11152 "configure" |
986ecc86 VZ |
11152 | #include "confdefs.h" |
11153 | ||
11154 | class Foo { public: explicit Foo(int) {} }; | |
a0b9e27f MB |
11155 | |
11156 | int main() { | |
986ecc86 VZ |
11157 | |
11158 | return 0; | |
a0b9e27f MB |
11159 | |
11160 | ; return 0; } | |
11161 | EOF | |
f7f78039 | 11162 | if { (eval echo configure:11163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11163 | rm -rf conftest* |
11164 | ||
11165 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 11166 | #line 11167 "configure" |
986ecc86 VZ |
11167 | #include "confdefs.h" |
11168 | ||
11169 | class Foo { public: explicit Foo(int) {} }; | |
11170 | static void TakeFoo(const Foo& foo) { } | |
a0b9e27f MB |
11171 | |
11172 | int main() { | |
986ecc86 VZ |
11173 | |
11174 | TakeFoo(17); | |
11175 | return 0; | |
a0b9e27f MB |
11176 | |
11177 | ; return 0; } | |
11178 | EOF | |
f7f78039 | 11179 | if { (eval echo configure:11180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11180 | rm -rf conftest* |
986ecc86 VZ |
11181 | wx_cv_explicit=no |
11182 | else | |
a0b9e27f MB |
11183 | echo "configure: failed program was:" >&5 |
11184 | cat conftest.$ac_ext >&5 | |
11185 | rm -rf conftest* | |
11186 | wx_cv_explicit=yes | |
11187 | ||
986ecc86 | 11188 | fi |
a0b9e27f MB |
11189 | rm -f conftest* |
11190 | ||
986ecc86 | 11191 | else |
a0b9e27f MB |
11192 | echo "configure: failed program was:" >&5 |
11193 | cat conftest.$ac_ext >&5 | |
11194 | rm -rf conftest* | |
11195 | wx_cv_explicit=no | |
11196 | ||
986ecc86 | 11197 | fi |
a0b9e27f | 11198 | rm -f conftest* |
986ecc86 VZ |
11199 | |
11200 | ac_ext=c | |
a0b9e27f | 11201 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
986ecc86 | 11202 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11203 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11204 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11205 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11206 | |
a0b9e27f | 11207 | |
247f5006 | 11208 | fi |
a0b9e27f MB |
11209 | |
11210 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
986ecc86 VZ |
11211 | |
11212 | if test "$wx_cv_explicit" = "yes"; then | |
a0b9e27f | 11213 | cat >> confdefs.h <<\EOF |
986ecc86 | 11214 | #define HAVE_EXPLICIT 1 |
a0b9e27f | 11215 | EOF |
986ecc86 VZ |
11216 | |
11217 | fi | |
11218 | ||
8284b0c5 | 11219 | |
521196a2 | 11220 | echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6 |
f7f78039 | 11221 | echo "configure:11222: checking whether the compiler supports const_cast<>" >&5 |
521196a2 MB |
11222 | if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then |
11223 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11224 | else | |
11225 | ||
11226 | ac_ext=C | |
11227 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11228 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11229 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11230 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11231 | cross_compiling=$ac_cv_prog_cxx_cross | |
11232 | ||
11233 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 11234 | #line 11235 "configure" |
521196a2 MB |
11235 | #include "confdefs.h" |
11236 | ||
11237 | int main() { | |
11238 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
11239 | ; return 0; } | |
11240 | EOF | |
f7f78039 | 11241 | if { (eval echo configure:11242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
521196a2 MB |
11242 | rm -rf conftest* |
11243 | ac_cv_cxx_const_cast=yes | |
11244 | else | |
11245 | echo "configure: failed program was:" >&5 | |
11246 | cat conftest.$ac_ext >&5 | |
11247 | rm -rf conftest* | |
11248 | ac_cv_cxx_const_cast=no | |
11249 | fi | |
11250 | rm -f conftest* | |
11251 | ac_ext=c | |
11252 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11253 | ac_cpp='$CPP $CPPFLAGS' | |
11254 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11255 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11256 | cross_compiling=$ac_cv_prog_cc_cross | |
11257 | ||
11258 | ||
11259 | fi | |
11260 | ||
11261 | echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6 | |
11262 | if test "$ac_cv_cxx_const_cast" = yes; then | |
11263 | cat >> confdefs.h <<\EOF | |
11264 | #define HAVE_CONST_CAST | |
11265 | EOF | |
11266 | ||
11267 | fi | |
11268 | ||
11269 | ||
8284b0c5 | 11270 | |
21d1c967 GD |
11271 | SEARCH_INCLUDE="\ |
11272 | /usr/local/include \ | |
11273 | \ | |
11274 | /usr/Motif-1.2/include \ | |
11275 | /usr/Motif-2.1/include \ | |
11276 | \ | |
11277 | /usr/include/Motif1.2 \ | |
11278 | /opt/xpm/include/X11 \ | |
11279 | /opt/GBxpm/include/ \ | |
11280 | /opt/GBxpm/X11/include/ \ | |
11281 | \ | |
11282 | /usr/Motif1.2/include \ | |
11283 | /usr/dt/include \ | |
11284 | /usr/openwin/include \ | |
11285 | \ | |
11286 | /usr/include/Xm \ | |
11287 | \ | |
11288 | /usr/X11R6/include \ | |
11289 | /usr/X11R6.4/include \ | |
11290 | /usr/X11R5/include \ | |
11291 | /usr/X11R4/include \ | |
11292 | \ | |
11293 | /usr/include/X11R6 \ | |
11294 | /usr/include/X11R5 \ | |
11295 | /usr/include/X11R4 \ | |
11296 | \ | |
11297 | /usr/local/X11R6/include \ | |
11298 | /usr/local/X11R5/include \ | |
11299 | /usr/local/X11R4/include \ | |
11300 | \ | |
11301 | /usr/local/include/X11R6 \ | |
11302 | /usr/local/include/X11R5 \ | |
11303 | /usr/local/include/X11R4 \ | |
11304 | \ | |
11305 | /usr/X11/include \ | |
11306 | /usr/include/X11 \ | |
11307 | /usr/local/X11/include \ | |
11308 | /usr/local/include/X11 \ | |
11309 | \ | |
11310 | /usr/X386/include \ | |
11311 | /usr/x386/include \ | |
11312 | /usr/XFree86/include/X11 \ | |
11313 | \ | |
11314 | X:/XFree86/include \ | |
11315 | X:/XFree86/include/X11 \ | |
11316 | \ | |
11317 | /usr/include/gtk \ | |
11318 | /usr/local/include/gtk \ | |
11319 | /usr/include/glib \ | |
11320 | /usr/local/include/glib \ | |
11321 | \ | |
11322 | /usr/include/qt \ | |
11323 | /usr/local/include/qt \ | |
11324 | \ | |
11325 | /usr/include/windows \ | |
11326 | /usr/include/wine \ | |
11327 | /usr/local/include/wine \ | |
11328 | \ | |
11329 | /usr/unsupported/include \ | |
11330 | /usr/athena/include \ | |
11331 | /usr/local/x11r5/include \ | |
11332 | /usr/lpp/Xamples/include \ | |
11333 | \ | |
2b5f62a0 | 11334 | /usr/openwin/share/include" |
21d1c967 GD |
11335 | |
11336 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
11337 | ||
8284b0c5 | 11338 | |
a0b9e27f | 11339 | cat > confcache <<\EOF |
21d1c967 GD |
11340 | # This file is a shell script that caches the results of configure |
11341 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
11342 | # scripts and configure runs. It is not useful on other systems. |
11343 | # If it contains results you don't want to keep, you may remove or edit it. | |
21d1c967 | 11344 | # |
a0b9e27f MB |
11345 | # By default, configure uses ./config.cache as the cache file, |
11346 | # creating it if it does not exist already. You can give configure | |
11347 | # the --cache-file=FILE option to use a different cache file; that is | |
11348 | # what configure does when it calls configure scripts in | |
11349 | # subdirectories, so they share the cache. | |
11350 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
11351 | # config.status only pays attention to the cache file if you give it the | |
11352 | # --recheck option to rerun configure. | |
21d1c967 | 11353 | # |
a0b9e27f | 11354 | EOF |
21d1c967 GD |
11355 | # The following way of writing the cache mishandles newlines in values, |
11356 | # but we know of no workaround that is simple, portable, and efficient. | |
11357 | # So, don't put newlines in cache variables' values. | |
11358 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11359 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
11360 | (set) 2>&1 | |
11361 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11362 | *ac_space=\ *) | |
11363 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11364 | # turns \\\\ into \\, and sed turns \\ into \). | |
11365 | sed -n \ | |
11366 | -e "s/'/'\\\\''/g" \ | |
11367 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11368 | ;; | |
11369 | *) | |
11370 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11371 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11372 | ;; | |
11373 | esac >> confcache | |
11374 | if cmp -s $cache_file confcache; then | |
11375 | : | |
11376 | else | |
21d1c967 | 11377 | if test -w $cache_file; then |
a0b9e27f MB |
11378 | echo "updating cache $cache_file" |
11379 | cat confcache > $cache_file | |
21d1c967 GD |
11380 | else |
11381 | echo "not updating unwritable cache $cache_file" | |
11382 | fi | |
ab9b9eab | 11383 | fi |
21d1c967 | 11384 | rm -f confcache |
ab9b9eab | 11385 | |
247f5006 | 11386 | |
a0b9e27f MB |
11387 | if test "$USE_LINUX" = 1; then |
11388 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
f7f78039 | 11389 | echo "configure:11390: checking for glibc 2.1 or later" >&5 |
a0b9e27f MB |
11390 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then |
11391 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11392 | else | |
11393 | ||
11394 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 11395 | #line 11396 "configure" |
ab9b9eab | 11396 | #include "confdefs.h" |
21d1c967 | 11397 | #include <features.h> |
a0b9e27f | 11398 | int main() { |
ab9b9eab | 11399 | |
21d1c967 GD |
11400 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
11401 | #error not glibc2.1 | |
11402 | #endif | |
a0b9e27f MB |
11403 | |
11404 | ; return 0; } | |
11405 | EOF | |
f7f78039 | 11406 | if { (eval echo configure:11407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11407 | rm -rf conftest* |
11408 | ||
21d1c967 | 11409 | wx_cv_lib_glibc21=yes |
a0b9e27f | 11410 | |
698dcdb6 | 11411 | else |
a0b9e27f MB |
11412 | echo "configure: failed program was:" >&5 |
11413 | cat conftest.$ac_ext >&5 | |
11414 | rm -rf conftest* | |
11415 | ||
21d1c967 | 11416 | wx_cv_lib_glibc21=no |
a0b9e27f MB |
11417 | |
11418 | ||
5c6fa7d2 | 11419 | fi |
a0b9e27f MB |
11420 | rm -f conftest* |
11421 | ||
247f5006 | 11422 | fi |
a0b9e27f MB |
11423 | |
11424 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 | |
21d1c967 | 11425 | if test "$wx_cv_lib_glibc21" = "yes"; then |
a0b9e27f | 11426 | cat >> confdefs.h <<\EOF |
21d1c967 | 11427 | #define wxHAVE_GLIBC2 1 |
a0b9e27f | 11428 | EOF |
1e487827 | 11429 | |
90dd450c | 11430 | fi |
ab9b9eab VZ |
11431 | fi |
11432 | ||
5c0a20c3 VZ |
11433 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
11434 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 11435 | cat >> confdefs.h <<\EOF |
5c0a20c3 | 11436 | #define _GNU_SOURCE 1 |
a0b9e27f | 11437 | EOF |
5c0a20c3 VZ |
11438 | |
11439 | fi | |
11440 | fi | |
11441 | ||
8284b0c5 MB |
11442 | |
11443 | ||
21d1c967 GD |
11444 | REGEX_INCLUDE= |
11445 | if test "$wxUSE_REGEX" != "no"; then | |
a0b9e27f | 11446 | cat >> confdefs.h <<\EOF |
21d1c967 | 11447 | #define wxUSE_REGEX 1 |
a0b9e27f | 11448 | EOF |
698dcdb6 | 11449 | |
8284b0c5 | 11450 | |
21d1c967 | 11451 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
a0b9e27f MB |
11452 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` |
11453 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
f7f78039 | 11454 | echo "configure:11455: checking for regex.h" >&5 |
a0b9e27f MB |
11455 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11456 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11457 | else | |
11458 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 11459 | #line 11460 "configure" |
247f5006 VZ |
11460 | #include "confdefs.h" |
11461 | #include <regex.h> | |
a0b9e27f MB |
11462 | EOF |
11463 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f7f78039 | 11464 | { (eval echo configure:11465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11465 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11466 | if test -z "$ac_err"; then | |
11467 | rm -rf conftest* | |
11468 | eval "ac_cv_header_$ac_safe=yes" | |
11469 | else | |
11470 | echo "$ac_err" >&5 | |
11471 | echo "configure: failed program was:" >&5 | |
21d1c967 | 11472 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11473 | rm -rf conftest* |
11474 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 11475 | fi |
a0b9e27f | 11476 | rm -f conftest* |
698dcdb6 | 11477 | fi |
a0b9e27f MB |
11478 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11479 | echo "$ac_t""yes" 1>&6 | |
11480 | for ac_func in regcomp | |
21d1c967 | 11481 | do |
a0b9e27f | 11482 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 11483 | echo "configure:11484: checking for $ac_func" >&5 |
a0b9e27f MB |
11484 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11485 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11486 | else |
a0b9e27f | 11487 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 11488 | #line 11489 "configure" |
a0b9e27f MB |
11489 | #include "confdefs.h" |
11490 | /* System header to define __stub macros and hopefully few prototypes, | |
11491 | which can conflict with char $ac_func(); below. */ | |
21d1c967 GD |
11492 | #include <assert.h> |
11493 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11494 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11495 | builtin and then its argument prototype would still apply. */ |
11496 | char $ac_func(); | |
11497 | ||
11498 | int main() { | |
11499 | ||
21d1c967 GD |
11500 | /* The GNU C library defines this for functions which it implements |
11501 | to always fail with ENOSYS. Some functions are actually named | |
11502 | something starting with __ and the normal name is an alias. */ | |
11503 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11504 | choke me | |
11505 | #else | |
a0b9e27f | 11506 | $ac_func(); |
21d1c967 | 11507 | #endif |
90dd450c | 11508 | |
a0b9e27f MB |
11509 | ; return 0; } |
11510 | EOF | |
f7f78039 | 11511 | if { (eval echo configure:11512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11512 | rm -rf conftest* |
11513 | eval "ac_cv_func_$ac_func=yes" | |
11514 | else | |
11515 | echo "configure: failed program was:" >&5 | |
11516 | cat conftest.$ac_ext >&5 | |
11517 | rm -rf conftest* | |
11518 | eval "ac_cv_func_$ac_func=no" | |
11519 | fi | |
11520 | rm -f conftest* | |
11521 | fi | |
5c6fa7d2 | 11522 | |
a0b9e27f MB |
11523 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11524 | echo "$ac_t""yes" 1>&6 | |
11525 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11526 | cat >> confdefs.h <<EOF | |
11527 | #define $ac_tr_func 1 | |
11528 | EOF | |
11529 | ||
11530 | else | |
11531 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 11532 | fi |
21d1c967 GD |
11533 | done |
11534 | ||
a0b9e27f MB |
11535 | else |
11536 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11537 | fi |
11538 | ||
8284b0c5 | 11539 | |
21d1c967 GD |
11540 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
11541 | if test "$wxUSE_REGEX" = "sys" ; then | |
a0b9e27f | 11542 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11543 | else |
a0b9e27f | 11544 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11545 | wxUSE_REGEX=builtin |
11546 | fi | |
11547 | else | |
11548 | wxUSE_REGEX=sys | |
11549 | fi | |
ab9b9eab | 11550 | fi |
90dd450c | 11551 | |
21d1c967 GD |
11552 | if test "$wxUSE_REGEX" = "builtin" ; then |
11553 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 11554 | fi |
21d1c967 | 11555 | fi |
90dd450c | 11556 | |
8284b0c5 | 11557 | |
21d1c967 GD |
11558 | ZLIB_INCLUDE= |
11559 | ZLIB_LINK= | |
11560 | if test "$wxUSE_ZLIB" != "no" ; then | |
a0b9e27f | 11561 | cat >> confdefs.h <<\EOF |
21d1c967 | 11562 | #define wxUSE_ZLIB 1 |
a0b9e27f | 11563 | EOF |
21d1c967 | 11564 | |
8284b0c5 | 11565 | |
21d1c967 | 11566 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
11567 | if test "$USE_DARWIN" = 1; then |
11568 | system_zlib_h_ok="yes" | |
11569 | else | |
11570 | echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6 | |
f7f78039 | 11571 | echo "configure:11572: checking for zlib.h >= 1.1.4" >&5 |
d643b80e VZ |
11572 | if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then |
11573 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11574 | else | |
11575 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 11576 | unset ac_cv_header_zlib_h |
d775acfa | 11577 | |
d643b80e VZ |
11578 | else |
11579 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 11580 | #line 11581 "configure" |
d643b80e VZ |
11581 | #include "confdefs.h" |
11582 | ||
d775acfa VZ |
11583 | #include <zlib.h> |
11584 | #include <stdio.h> | |
d643b80e | 11585 | |
d775acfa VZ |
11586 | |
11587 | int main() | |
11588 | { | |
11589 | FILE *f=fopen("conftestval", "w"); | |
11590 | if (!f) exit(1); | |
11591 | fprintf(f, "%s", | |
11592 | ZLIB_VERSION[0] == '1' && | |
11593 | (ZLIB_VERSION[2] > '1' || | |
11594 | (ZLIB_VERSION[2] == '1' && | |
11595 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
11596 | exit(0); | |
11597 | } | |
11598 | ||
d643b80e | 11599 | |
d643b80e | 11600 | EOF |
f7f78039 | 11601 | if { (eval echo configure:11602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
d643b80e VZ |
11602 | then |
11603 | ac_cv_header_zlib_h=`cat conftestval` | |
11604 | else | |
11605 | echo "configure: failed program was:" >&5 | |
11606 | cat conftest.$ac_ext >&5 | |
11607 | rm -fr conftest* | |
11608 | ac_cv_header_zlib_h=no | |
11609 | fi | |
11610 | rm -fr conftest* | |
11611 | fi | |
11612 | ||
d775acfa | 11613 | |
d643b80e VZ |
11614 | fi |
11615 | ||
11616 | echo "$ac_t""$ac_cv_header_zlib_h" 1>&6 | |
89e6bf6d VZ |
11617 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
11618 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
f7f78039 | 11619 | echo "configure:11620: checking for zlib.h" >&5 |
89e6bf6d VZ |
11620 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11621 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11622 | else | |
11623 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 11624 | #line 11625 "configure" |
89e6bf6d VZ |
11625 | #include "confdefs.h" |
11626 | #include <zlib.h> | |
11627 | EOF | |
11628 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f7f78039 | 11629 | { (eval echo configure:11630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
89e6bf6d VZ |
11630 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11631 | if test -z "$ac_err"; then | |
11632 | rm -rf conftest* | |
11633 | eval "ac_cv_header_$ac_safe=yes" | |
11634 | else | |
11635 | echo "$ac_err" >&5 | |
11636 | echo "configure: failed program was:" >&5 | |
11637 | cat conftest.$ac_ext >&5 | |
11638 | rm -rf conftest* | |
11639 | eval "ac_cv_header_$ac_safe=no" | |
11640 | fi | |
11641 | rm -f conftest* | |
11642 | fi | |
11643 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11644 | echo "$ac_t""yes" 1>&6 | |
11645 | : | |
11646 | else | |
11647 | echo "$ac_t""no" 1>&6 | |
11648 | fi | |
11649 | ||
d643b80e | 11650 | |
d775acfa VZ |
11651 | system_zlib_h_ok=$ac_cv_header_zlib_h |
11652 | fi | |
11653 | ||
11654 | if test "$system_zlib_h_ok" = "yes"; then | |
d643b80e | 11655 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
f7f78039 | 11656 | echo "configure:11657: checking for deflate in -lz" >&5 |
a0b9e27f MB |
11657 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
11658 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11659 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11660 | else |
a0b9e27f | 11661 | ac_save_LIBS="$LIBS" |
21d1c967 | 11662 | LIBS="-lz $LIBS" |
a0b9e27f | 11663 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 11664 | #line 11665 "configure" |
ab9b9eab | 11665 | #include "confdefs.h" |
21d1c967 GD |
11666 | /* Override any gcc2 internal prototype to avoid an error. */ |
11667 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11668 | builtin and then its argument prototype would still apply. */ |
11669 | char deflate(); | |
11670 | ||
11671 | int main() { | |
11672 | deflate() | |
11673 | ; return 0; } | |
11674 | EOF | |
f7f78039 | 11675 | if { (eval echo configure:11676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11676 | rm -rf conftest* |
11677 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11678 | else | |
11679 | echo "configure: failed program was:" >&5 | |
11680 | cat conftest.$ac_ext >&5 | |
11681 | rm -rf conftest* | |
11682 | eval "ac_cv_lib_$ac_lib_var=no" | |
90dd450c | 11683 | fi |
a0b9e27f MB |
11684 | rm -f conftest* |
11685 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 11686 | |
698dcdb6 | 11687 | fi |
a0b9e27f MB |
11688 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11689 | echo "$ac_t""yes" 1>&6 | |
11690 | ZLIB_LINK=" -lz" | |
11691 | else | |
11692 | echo "$ac_t""no" 1>&6 | |
11693 | fi | |
698dcdb6 | 11694 | |
d643b80e | 11695 | fi |
247f5006 | 11696 | |
21d1c967 GD |
11697 | if test "x$ZLIB_LINK" = "x" ; then |
11698 | if test "$wxUSE_ZLIB" = "sys" ; then | |
d643b80e | 11699 | { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11700 | else |
d643b80e | 11701 | echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2 |
21d1c967 GD |
11702 | wxUSE_ZLIB=builtin |
11703 | fi | |
11704 | else | |
11705 | wxUSE_ZLIB=sys | |
11706 | fi | |
11707 | fi | |
11708 | ||
11709 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11710 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11711 | fi | |
ab9b9eab VZ |
11712 | fi |
11713 | ||
8284b0c5 | 11714 | |
21d1c967 GD |
11715 | PNG_INCLUDE= |
11716 | PNG_LINK= | |
11717 | if test "$wxUSE_LIBPNG" != "no" ; then | |
a0b9e27f | 11718 | cat >> confdefs.h <<\EOF |
21d1c967 | 11719 | #define wxUSE_LIBPNG 1 |
a0b9e27f | 11720 | EOF |
90dd450c | 11721 | |
8284b0c5 | 11722 | |
21d1c967 | 11723 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
a0b9e27f | 11724 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11725 | wxUSE_LIBPNG=sys |
11726 | fi | |
90dd450c | 11727 | |
21d1c967 | 11728 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
a0b9e27f | 11729 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
21d1c967 GD |
11730 | wxUSE_LIBPNG=builtin |
11731 | fi | |
11732 | ||
11733 | if test "$wxUSE_MGL" != 1 ; then | |
11734 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
5d3f766d | 11735 | echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6 |
f7f78039 | 11736 | echo "configure:11737: checking for png.h > 0.90" >&5 |
5d3f766d VZ |
11737 | if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then |
11738 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11739 | else | |
11740 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 11741 | unset ac_cv_header_png_h |
5d3f766d VZ |
11742 | |
11743 | else | |
11744 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 11745 | #line 11746 "configure" |
5d3f766d VZ |
11746 | #include "confdefs.h" |
11747 | ||
11748 | #include <png.h> | |
11749 | #include <stdio.h> | |
11750 | ||
11751 | int main() | |
11752 | { | |
11753 | FILE *f=fopen("conftestval", "w"); | |
11754 | if (!f) exit(1); | |
11755 | fprintf(f, "%s", | |
11756 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
11757 | exit(0); | |
11758 | } | |
11759 | ||
11760 | EOF | |
f7f78039 | 11761 | if { (eval echo configure:11762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5d3f766d VZ |
11762 | then |
11763 | ac_cv_header_png_h=`cat conftestval` | |
11764 | else | |
11765 | echo "configure: failed program was:" >&5 | |
11766 | cat conftest.$ac_ext >&5 | |
11767 | rm -fr conftest* | |
11768 | ac_cv_header_png_h=no | |
11769 | fi | |
11770 | rm -fr conftest* | |
11771 | fi | |
11772 | ||
11773 | ||
11774 | fi | |
11775 | ||
11776 | echo "$ac_t""$ac_cv_header_png_h" 1>&6 | |
89e6bf6d VZ |
11777 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
11778 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
f7f78039 | 11779 | echo "configure:11780: checking for png.h" >&5 |
89e6bf6d VZ |
11780 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11781 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11782 | else | |
11783 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 11784 | #line 11785 "configure" |
89e6bf6d VZ |
11785 | #include "confdefs.h" |
11786 | #include <png.h> | |
11787 | EOF | |
11788 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f7f78039 | 11789 | { (eval echo configure:11790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
89e6bf6d VZ |
11790 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11791 | if test -z "$ac_err"; then | |
11792 | rm -rf conftest* | |
11793 | eval "ac_cv_header_$ac_safe=yes" | |
11794 | else | |
11795 | echo "$ac_err" >&5 | |
11796 | echo "configure: failed program was:" >&5 | |
11797 | cat conftest.$ac_ext >&5 | |
11798 | rm -rf conftest* | |
11799 | eval "ac_cv_header_$ac_safe=no" | |
11800 | fi | |
11801 | rm -f conftest* | |
11802 | fi | |
11803 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11804 | echo "$ac_t""yes" 1>&6 | |
11805 | : | |
11806 | else | |
11807 | echo "$ac_t""no" 1>&6 | |
11808 | fi | |
11809 | ||
5d3f766d VZ |
11810 | |
11811 | if test "$ac_cv_header_png_h" = "yes"; then | |
11812 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
f7f78039 | 11813 | echo "configure:11814: checking for png_check_sig in -lpng" >&5 |
a0b9e27f MB |
11814 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
11815 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11816 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11817 | else |
a0b9e27f | 11818 | ac_save_LIBS="$LIBS" |
21d1c967 | 11819 | LIBS="-lpng -lz -lm $LIBS" |
a0b9e27f | 11820 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 11821 | #line 11822 "configure" |
90dd450c | 11822 | #include "confdefs.h" |
21d1c967 GD |
11823 | /* Override any gcc2 internal prototype to avoid an error. */ |
11824 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11825 | builtin and then its argument prototype would still apply. */ |
11826 | char png_check_sig(); | |
90dd450c | 11827 | |
a0b9e27f MB |
11828 | int main() { |
11829 | png_check_sig() | |
11830 | ; return 0; } | |
11831 | EOF | |
f7f78039 | 11832 | if { (eval echo configure:11833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11833 | rm -rf conftest* |
11834 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11835 | else | |
11836 | echo "configure: failed program was:" >&5 | |
11837 | cat conftest.$ac_ext >&5 | |
11838 | rm -rf conftest* | |
11839 | eval "ac_cv_lib_$ac_lib_var=no" | |
11840 | fi | |
11841 | rm -f conftest* | |
11842 | LIBS="$ac_save_LIBS" | |
247f5006 | 11843 | |
90dd450c | 11844 | fi |
a0b9e27f MB |
11845 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11846 | echo "$ac_t""yes" 1>&6 | |
11847 | PNG_LINK=" -lpng" | |
11848 | else | |
11849 | echo "$ac_t""no" 1>&6 | |
11850 | fi | |
90dd450c | 11851 | |
5d3f766d | 11852 | fi |
247f5006 | 11853 | |
21d1c967 GD |
11854 | if test "x$PNG_LINK" = "x" ; then |
11855 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
0c98a14e | 11856 | { 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 | 11857 | else |
0c98a14e | 11858 | echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2 |
21d1c967 GD |
11859 | wxUSE_LIBPNG=builtin |
11860 | fi | |
11861 | else | |
2b5f62a0 | 11862 | wxUSE_LIBPNG=sys |
21d1c967 GD |
11863 | fi |
11864 | fi | |
11865 | fi | |
90dd450c | 11866 | |
21d1c967 GD |
11867 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
11868 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11869 | fi | |
90dd450c | 11870 | |
21d1c967 | 11871 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
11872 | fi |
11873 | ||
8284b0c5 | 11874 | |
21d1c967 GD |
11875 | JPEG_INCLUDE= |
11876 | JPEG_LINK= | |
11877 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
a0b9e27f | 11878 | cat >> confdefs.h <<\EOF |
21d1c967 | 11879 | #define wxUSE_LIBJPEG 1 |
a0b9e27f | 11880 | EOF |
90dd450c | 11881 | |
8284b0c5 | 11882 | |
21d1c967 | 11883 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
a0b9e27f | 11884 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11885 | wxUSE_LIBJPEG=sys |
11886 | fi | |
90dd450c | 11887 | |
21d1c967 GD |
11888 | if test "$wxUSE_MGL" != 1 ; then |
11889 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
a0b9e27f | 11890 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
f7f78039 | 11891 | echo "configure:11892: checking for jpeglib.h" >&5 |
a0b9e27f MB |
11892 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
11893 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11894 | else |
a0b9e27f | 11895 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 11896 | #line 11897 "configure" |
21d1c967 | 11897 | #include "confdefs.h" |
90dd450c | 11898 | |
21d1c967 GD |
11899 | #undef HAVE_STDLIB_H |
11900 | #include <stdio.h> | |
11901 | #include <jpeglib.h> | |
a0b9e27f MB |
11902 | |
11903 | int main() { | |
90dd450c | 11904 | |
a0b9e27f MB |
11905 | |
11906 | ; return 0; } | |
11907 | EOF | |
f7f78039 | 11908 | if { (eval echo configure:11909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11909 | rm -rf conftest* |
21d1c967 | 11910 | ac_cv_header_jpeglib_h=yes |
90dd450c | 11911 | else |
a0b9e27f MB |
11912 | echo "configure: failed program was:" >&5 |
11913 | cat conftest.$ac_ext >&5 | |
11914 | rm -rf conftest* | |
11915 | ac_cv_header_jpeglib_h=no | |
11916 | ||
90dd450c | 11917 | fi |
a0b9e27f MB |
11918 | rm -f conftest* |
11919 | ||
90dd450c VZ |
11920 | fi |
11921 | ||
a0b9e27f | 11922 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
90dd450c | 11923 | |
21d1c967 | 11924 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
a0b9e27f | 11925 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 |
f7f78039 | 11926 | echo "configure:11927: checking for jpeg_read_header in -ljpeg" >&5 |
a0b9e27f MB |
11927 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
11928 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11929 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11930 | else |
a0b9e27f | 11931 | ac_save_LIBS="$LIBS" |
21d1c967 | 11932 | LIBS="-ljpeg $LIBS" |
a0b9e27f | 11933 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 11934 | #line 11935 "configure" |
21d1c967 GD |
11935 | #include "confdefs.h" |
11936 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11937 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11938 | builtin and then its argument prototype would still apply. */ |
11939 | char jpeg_read_header(); | |
11940 | ||
11941 | int main() { | |
11942 | jpeg_read_header() | |
11943 | ; return 0; } | |
11944 | EOF | |
f7f78039 | 11945 | if { (eval echo configure:11946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11946 | rm -rf conftest* |
11947 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11948 | else | |
11949 | echo "configure: failed program was:" >&5 | |
11950 | cat conftest.$ac_ext >&5 | |
11951 | rm -rf conftest* | |
11952 | eval "ac_cv_lib_$ac_lib_var=no" | |
11953 | fi | |
11954 | rm -f conftest* | |
11955 | LIBS="$ac_save_LIBS" | |
11956 | ||
11957 | fi | |
11958 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11959 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11960 | JPEG_LINK=" -ljpeg" |
a0b9e27f MB |
11961 | else |
11962 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
11963 | fi |
11964 | ||
21d1c967 | 11965 | fi |
90dd450c | 11966 | |
21d1c967 GD |
11967 | if test "x$JPEG_LINK" = "x" ; then |
11968 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
a0b9e27f | 11969 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11970 | else |
a0b9e27f | 11971 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11972 | wxUSE_LIBJPEG=builtin |
11973 | fi | |
11974 | else | |
11975 | wxUSE_LIBJPEG=sys | |
11976 | fi | |
11977 | fi | |
11978 | fi | |
90dd450c | 11979 | |
21d1c967 GD |
11980 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
11981 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
11982 | fi | |
11983 | fi | |
90dd450c | 11984 | |
8284b0c5 | 11985 | |
21d1c967 GD |
11986 | TIFF_INCLUDE= |
11987 | TIFF_LINK= | |
2b5f62a0 | 11988 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 11989 | if test "$wxUSE_LIBTIFF" != "no" ; then |
a0b9e27f | 11990 | cat >> confdefs.h <<\EOF |
21d1c967 | 11991 | #define wxUSE_LIBTIFF 1 |
a0b9e27f | 11992 | EOF |
21d1c967 | 11993 | |
8284b0c5 | 11994 | |
21d1c967 | 11995 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
11996 | if test "$wxUSE_LIBJPEG" = "sys"; then |
11997 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
11998 | fi | |
11999 | if test "$wxUSE_ZLIB" = "sys"; then | |
12000 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
12001 | fi | |
a0b9e27f MB |
12002 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
12003 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
f7f78039 | 12004 | echo "configure:12005: checking for tiffio.h" >&5 |
a0b9e27f MB |
12005 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12006 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12007 | else | |
12008 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 12009 | #line 12010 "configure" |
247f5006 VZ |
12010 | #include "confdefs.h" |
12011 | #include <tiffio.h> | |
a0b9e27f MB |
12012 | EOF |
12013 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f7f78039 | 12014 | { (eval echo configure:12015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12015 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12016 | if test -z "$ac_err"; then | |
12017 | rm -rf conftest* | |
12018 | eval "ac_cv_header_$ac_safe=yes" | |
12019 | else | |
12020 | echo "$ac_err" >&5 | |
12021 | echo "configure: failed program was:" >&5 | |
21d1c967 | 12022 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12023 | rm -rf conftest* |
12024 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 12025 | fi |
a0b9e27f | 12026 | rm -f conftest* |
21d1c967 | 12027 | fi |
a0b9e27f MB |
12028 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12029 | echo "$ac_t""yes" 1>&6 | |
12030 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
f7f78039 | 12031 | echo "configure:12032: checking for TIFFError in -ltiff" >&5 |
a0b9e27f MB |
12032 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
12033 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12034 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 12035 | else |
a0b9e27f | 12036 | ac_save_LIBS="$LIBS" |
2b5f62a0 | 12037 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
a0b9e27f | 12038 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 12039 | #line 12040 "configure" |
ab9b9eab VZ |
12040 | #include "confdefs.h" |
12041 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12042 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
12043 | builtin and then its argument prototype would still apply. */ |
12044 | char TIFFError(); | |
ab9b9eab | 12045 | |
a0b9e27f MB |
12046 | int main() { |
12047 | TIFFError() | |
12048 | ; return 0; } | |
12049 | EOF | |
f7f78039 | 12050 | if { (eval echo configure:12051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12051 | rm -rf conftest* |
12052 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12053 | else | |
12054 | echo "configure: failed program was:" >&5 | |
12055 | cat conftest.$ac_ext >&5 | |
12056 | rm -rf conftest* | |
12057 | eval "ac_cv_lib_$ac_lib_var=no" | |
12058 | fi | |
12059 | rm -f conftest* | |
12060 | LIBS="$ac_save_LIBS" | |
247f5006 | 12061 | |
21d1c967 | 12062 | fi |
a0b9e27f MB |
12063 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
12064 | echo "$ac_t""yes" 1>&6 | |
12065 | TIFF_LINK=" -ltiff" | |
12066 | else | |
12067 | echo "$ac_t""no" 1>&6 | |
12068 | fi | |
cd6d6d5b | 12069 | |
a0b9e27f MB |
12070 | |
12071 | else | |
12072 | echo "$ac_t""no" 1>&6 | |
12073 | fi | |
8284b0c5 | 12074 | |
247f5006 | 12075 | |
21d1c967 GD |
12076 | if test "x$TIFF_LINK" = "x" ; then |
12077 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
a0b9e27f | 12078 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } |
90dd450c | 12079 | else |
a0b9e27f | 12080 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
21d1c967 | 12081 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 12082 | fi |
d8356fa3 | 12083 | else |
21d1c967 | 12084 | wxUSE_LIBTIFF=sys |
d8356fa3 | 12085 | fi |
21d1c967 | 12086 | fi |
d8356fa3 | 12087 | |
21d1c967 GD |
12088 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
12089 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 12090 | fi |
21d1c967 | 12091 | fi |
10f2d63a | 12092 | |
8284b0c5 | 12093 | |
21d1c967 | 12094 | AFMINSTALL= |
2b5f62a0 | 12095 | WIN32INSTALL= |
90dd450c | 12096 | |
21d1c967 GD |
12097 | TOOLKIT= |
12098 | TOOLKIT_INCLUDE= | |
12099 | WIDGET_SET= | |
12100 | ||
12101 | if test "$USE_WIN32" = 1 ; then | |
a0b9e27f | 12102 | for ac_hdr in w32api.h |
21d1c967 | 12103 | do |
a0b9e27f MB |
12104 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12105 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f7f78039 | 12106 | echo "configure:12107: checking for $ac_hdr" >&5 |
a0b9e27f MB |
12107 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12108 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12109 | else | |
12110 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 12111 | #line 12112 "configure" |
247f5006 | 12112 | #include "confdefs.h" |
a0b9e27f MB |
12113 | #include <$ac_hdr> |
12114 | EOF | |
12115 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f7f78039 | 12116 | { (eval echo configure:12117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12117 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12118 | if test -z "$ac_err"; then | |
12119 | rm -rf conftest* | |
12120 | eval "ac_cv_header_$ac_safe=yes" | |
12121 | else | |
12122 | echo "$ac_err" >&5 | |
12123 | echo "configure: failed program was:" >&5 | |
f79bd02d | 12124 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12125 | rm -rf conftest* |
12126 | eval "ac_cv_header_$ac_safe=no" | |
f79bd02d | 12127 | fi |
a0b9e27f | 12128 | rm -f conftest* |
21d1c967 | 12129 | fi |
a0b9e27f MB |
12130 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12131 | echo "$ac_t""yes" 1>&6 | |
12132 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12133 | cat >> confdefs.h <<EOF | |
12134 | #define $ac_tr_hdr 1 | |
12135 | EOF | |
12136 | ||
12137 | else | |
12138 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
12139 | fi |
12140 | done | |
f79bd02d | 12141 | |
a0b9e27f MB |
12142 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
12143 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
f7f78039 | 12144 | echo "configure:12145: checking for windows.h" >&5 |
a0b9e27f MB |
12145 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12146 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12147 | else |
a0b9e27f | 12148 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 12149 | #line 12150 "configure" |
247f5006 VZ |
12150 | #include "confdefs.h" |
12151 | #include <windows.h> | |
a0b9e27f MB |
12152 | EOF |
12153 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f7f78039 | 12154 | { (eval echo configure:12155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12155 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12156 | if test -z "$ac_err"; then | |
12157 | rm -rf conftest* | |
12158 | eval "ac_cv_header_$ac_safe=yes" | |
12159 | else | |
12160 | echo "$ac_err" >&5 | |
12161 | echo "configure: failed program was:" >&5 | |
90dd450c | 12162 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12163 | rm -rf conftest* |
12164 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 12165 | fi |
a0b9e27f | 12166 | rm -f conftest* |
90dd450c | 12167 | fi |
a0b9e27f MB |
12168 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12169 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 12170 | : |
90dd450c | 12171 | else |
a0b9e27f | 12172 | echo "$ac_t""no" 1>&6 |
21d1c967 | 12173 | |
a0b9e27f MB |
12174 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
12175 | ||
5c6fa7d2 | 12176 | fi |
7b4a847f | 12177 | |
5c6fa7d2 | 12178 | |
a0b9e27f | 12179 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
f7f78039 | 12180 | echo "configure:12181: checking if w32api has good enough MSIE support" >&5 |
a0b9e27f MB |
12181 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
12182 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 12183 | else |
a0b9e27f MB |
12184 | |
12185 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 12186 | #line 12187 "configure" |
f79bd02d | 12187 | #include "confdefs.h" |
21d1c967 | 12188 | #include <w32api.h> |
a0b9e27f | 12189 | int main() { |
f79bd02d | 12190 | |
21d1c967 GD |
12191 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
12192 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
12193 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
12194 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
12195 | ||
12196 | #if !wxCHECK_W32API_VERSION(1,1) | |
12197 | #error You need w32api 1.1 or newer | |
12198 | #endif | |
a0b9e27f MB |
12199 | |
12200 | ; return 0; } | |
12201 | EOF | |
f7f78039 | 12202 | if { (eval echo configure:12203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
12203 | rm -rf conftest* |
12204 | ||
21d1c967 | 12205 | wx_cv_w32api_win32_ie=yes |
a0b9e27f | 12206 | |
f79bd02d | 12207 | else |
a0b9e27f MB |
12208 | echo "configure: failed program was:" >&5 |
12209 | cat conftest.$ac_ext >&5 | |
12210 | rm -rf conftest* | |
12211 | ||
21d1c967 | 12212 | wx_cv_w32api_win32_ie=no |
a0b9e27f | 12213 | |
5c6fa7d2 | 12214 | fi |
a0b9e27f MB |
12215 | rm -f conftest* |
12216 | ||
247f5006 | 12217 | fi |
a0b9e27f MB |
12218 | |
12219 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 | |
21d1c967 GD |
12220 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then |
12221 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
12222 | fi | |
f79bd02d | 12223 | |
21d1c967 GD |
12224 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
12225 | ||
12226 | case "${host}" in | |
12227 | *-*-cygwin* ) | |
12228 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
12229 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 12230 | esac |
f79bd02d | 12231 | |
21d1c967 GD |
12232 | if test "$wxUSE_ODBC" = "yes" ; then |
12233 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
12234 | fi | |
f79bd02d | 12235 | |
21d1c967 GD |
12236 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
12237 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
12238 | |
12239 | WIN32INSTALL=win32install | |
f79bd02d | 12240 | fi |
f79bd02d | 12241 | |
b2fee376 | 12242 | if test "$USE_DARWIN" = 1; then |
50bcbd3d | 12243 | if test "$wxUSE_PRECOMP" = "yes"; then |
b2fee376 GD |
12244 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
12245 | else | |
12246 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
12247 | fi | |
12248 | fi | |
12249 | ||
21d1c967 GD |
12250 | if test "$wxUSE_GUI" = "yes"; then |
12251 | USE_GUI=1 | |
f79bd02d | 12252 | |
21d1c967 | 12253 | GUI_TK_LIBRARY= |
f79bd02d | 12254 | |
21d1c967 GD |
12255 | WXGTK12= |
12256 | WXGTK127= | |
12257 | WXGTK20= | |
f79bd02d | 12258 | |
21d1c967 GD |
12259 | if test "$wxUSE_MSW" = 1 ; then |
12260 | TOOLKIT=MSW | |
12261 | GUIDIST=MSW_DIST | |
f79bd02d | 12262 | |
89e6bf6d | 12263 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" |
f79bd02d JS |
12264 | fi |
12265 | ||
21d1c967 | 12266 | if test "$wxUSE_GTK" = 1; then |
a0b9e27f | 12267 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
f7f78039 | 12268 | echo "configure:12269: checking for GTK+ version" >&5 |
21d1c967 GD |
12269 | |
12270 | gtk_version_cached=1 | |
a0b9e27f MB |
12271 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then |
12272 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f79bd02d | 12273 | else |
a0b9e27f | 12274 | |
21d1c967 | 12275 | gtk_version_cached=0 |
a0b9e27f | 12276 | echo "$ac_t""" 1>&6 |
f79bd02d | 12277 | |
21d1c967 GD |
12278 | GTK_MODULES= |
12279 | if test "$wxUSE_THREADS" = "yes"; then | |
12280 | GTK_MODULES=gthread | |
12281 | fi | |
f79bd02d | 12282 | |
2b5f62a0 | 12283 | wx_cv_lib_gtk= |
21d1c967 GD |
12284 | if test "x$wxUSE_GTK2" = "xyes"; then |
12285 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12286 | if test "${enable_gtktest+set}" = set; then | |
12287 | enableval="$enable_gtktest" | |
a0b9e27f | 12288 | : |
f79bd02d | 12289 | else |
21d1c967 | 12290 | enable_gtktest=yes |
a0b9e27f MB |
12291 | fi |
12292 | ||
f79bd02d | 12293 | |
21d1c967 GD |
12294 | pkg_config_args=gtk+-2.0 |
12295 | for module in . $GTK_MODULES | |
12296 | do | |
12297 | case "$module" in | |
a0b9e27f | 12298 | gthread) |
21d1c967 GD |
12299 | pkg_config_args="$pkg_config_args gthread-2.0" |
12300 | ;; | |
12301 | esac | |
12302 | done | |
12303 | ||
12304 | no_gtk="" | |
f79bd02d | 12305 | |
21d1c967 GD |
12306 | # Extract the first word of "pkg-config", so it can be a program name with args. |
12307 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 12308 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
f7f78039 | 12309 | echo "configure:12310: checking for $ac_word" >&5 |
a0b9e27f MB |
12310 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
12311 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12312 | else |
a0b9e27f MB |
12313 | case "$PKG_CONFIG" in |
12314 | /*) | |
21d1c967 GD |
12315 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12316 | ;; | |
a0b9e27f MB |
12317 | ?:/*) |
12318 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
12319 | ;; | |
21d1c967 | 12320 | *) |
a0b9e27f MB |
12321 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12322 | ac_dummy="$PATH" | |
12323 | for ac_dir in $ac_dummy; do | |
12324 | test -z "$ac_dir" && ac_dir=. | |
12325 | if test -f $ac_dir/$ac_word; then | |
12326 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
12327 | break | |
12328 | fi | |
12329 | done | |
12330 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12331 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12332 | ;; | |
12333 | esac | |
f79bd02d | 12334 | fi |
a0b9e27f | 12335 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
21d1c967 | 12336 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 12337 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f79bd02d | 12338 | else |
a0b9e27f | 12339 | echo "$ac_t""no" 1>&6 |
f79bd02d JS |
12340 | fi |
12341 | ||
8284b0c5 | 12342 | |
21d1c967 GD |
12343 | if test x$PKG_CONFIG != xno ; then |
12344 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
12345 | : | |
12346 | else | |
12347 | echo *** pkg-config too old; version 0.7 or better required. | |
12348 | no_gtk=yes | |
12349 | PKG_CONFIG=no | |
12350 | fi | |
12351 | else | |
12352 | no_gtk=yes | |
12353 | fi | |
f79bd02d | 12354 | |
21d1c967 | 12355 | min_gtk_version=2.0.0 |
a0b9e27f | 12356 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 |
f7f78039 | 12357 | echo "configure:12358: checking for GTK+ - version >= $min_gtk_version" >&5 |
f79bd02d | 12358 | |
21d1c967 GD |
12359 | if test x$PKG_CONFIG != xno ; then |
12360 | ## don't try to run the test against uninstalled libtool libs | |
12361 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
12362 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
12363 | enable_gtktest=no | |
12364 | fi | |
f79bd02d | 12365 | |
21d1c967 GD |
12366 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
12367 | : | |
12368 | else | |
12369 | no_gtk=yes | |
12370 | fi | |
12371 | fi | |
f79bd02d | 12372 | |
21d1c967 GD |
12373 | if test x"$no_gtk" = x ; then |
12374 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
12375 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
12376 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12377 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12378 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12379 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12380 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12381 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12382 | if test "x$enable_gtktest" = "xyes" ; then | |
12383 | ac_save_CFLAGS="$CFLAGS" | |
12384 | ac_save_LIBS="$LIBS" | |
12385 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12386 | LIBS="$GTK_LIBS $LIBS" | |
12387 | rm -f conf.gtktest | |
12388 | if test "$cross_compiling" = yes; then | |
12389 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12390 | else |
a0b9e27f | 12391 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 12392 | #line 12393 "configure" |
f79bd02d | 12393 | #include "confdefs.h" |
f79bd02d | 12394 | |
21d1c967 GD |
12395 | #include <gtk/gtk.h> |
12396 | #include <stdio.h> | |
12397 | #include <stdlib.h> | |
f79bd02d | 12398 | |
a0b9e27f | 12399 | int |
21d1c967 GD |
12400 | main () |
12401 | { | |
12402 | int major, minor, micro; | |
12403 | char *tmp_version; | |
f79bd02d | 12404 | |
21d1c967 | 12405 | system ("touch conf.gtktest"); |
f79bd02d | 12406 | |
21d1c967 GD |
12407 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
12408 | tmp_version = g_strdup("$min_gtk_version"); | |
12409 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12410 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12411 | exit(1); | |
12412 | } | |
f79bd02d | 12413 | |
21d1c967 GD |
12414 | if ((gtk_major_version != $gtk_config_major_version) || |
12415 | (gtk_minor_version != $gtk_config_minor_version) || | |
12416 | (gtk_micro_version != $gtk_config_micro_version)) | |
12417 | { | |
a0b9e27f | 12418 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12419 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12420 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12421 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
12422 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12423 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12424 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12425 | printf("*** required on your system.\n"); | |
12426 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
12427 | printf("*** to point to the correct configuration files\n"); | |
a0b9e27f | 12428 | } |
21d1c967 GD |
12429 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
12430 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12431 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12432 | { | |
12433 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12434 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12435 | printf("*** library (version %d.%d.%d)\n", | |
12436 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12437 | } | |
12438 | else | |
12439 | { | |
12440 | if ((gtk_major_version > major) || | |
12441 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12442 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12443 | { | |
12444 | return 0; | |
12445 | } | |
12446 | else | |
12447 | { | |
12448 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12449 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12450 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12451 | major, minor, micro); | |
12452 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12453 | printf("***\n"); | |
12454 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12455 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
12456 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12457 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
12458 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
12459 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12460 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12461 | } | |
12462 | } | |
12463 | return 1; | |
12464 | } | |
f79bd02d | 12465 | |
a0b9e27f | 12466 | EOF |
f7f78039 | 12467 | if { (eval echo configure:12468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12468 | then |
21d1c967 | 12469 | : |
f79bd02d | 12470 | else |
a0b9e27f MB |
12471 | echo "configure: failed program was:" >&5 |
12472 | cat conftest.$ac_ext >&5 | |
12473 | rm -fr conftest* | |
12474 | no_gtk=yes | |
f79bd02d | 12475 | fi |
a0b9e27f | 12476 | rm -fr conftest* |
f79bd02d | 12477 | fi |
a0b9e27f | 12478 | |
21d1c967 GD |
12479 | CFLAGS="$ac_save_CFLAGS" |
12480 | LIBS="$ac_save_LIBS" | |
12481 | fi | |
12482 | fi | |
12483 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12484 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
12485 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 12486 | else |
a0b9e27f | 12487 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12488 | if test "$PKG_CONFIG" = "no" ; then |
12489 | echo "*** A new enough version of pkg-config was not found." | |
12490 | echo "*** See http://pkgconfig.sourceforge.net" | |
12491 | else | |
12492 | if test -f conf.gtktest ; then | |
12493 | : | |
12494 | else | |
12495 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
12496 | ac_save_CFLAGS="$CFLAGS" |
12497 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
12498 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
12499 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12500 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 12501 | #line 12502 "configure" |
f79bd02d | 12502 | #include "confdefs.h" |
21d1c967 GD |
12503 | |
12504 | #include <gtk/gtk.h> | |
12505 | #include <stdio.h> | |
f79bd02d | 12506 | |
a0b9e27f MB |
12507 | int main() { |
12508 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12509 | ; return 0; } | |
12510 | EOF | |
f7f78039 | 12511 | if { (eval echo configure:12512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12512 | rm -rf conftest* |
21d1c967 GD |
12513 | echo "*** The test program compiled, but did not run. This usually means" |
12514 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
12515 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
12516 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12517 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12518 | echo "*** is required on your system" | |
12519 | echo "***" | |
12520 | echo "*** If you have an old version installed, it is best to remove it, although" | |
a0b9e27f | 12521 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 12522 | else |
a0b9e27f MB |
12523 | echo "configure: failed program was:" >&5 |
12524 | cat conftest.$ac_ext >&5 | |
12525 | rm -rf conftest* | |
12526 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 12527 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 12528 | fi |
a0b9e27f | 12529 | rm -f conftest* |
21d1c967 GD |
12530 | CFLAGS="$ac_save_CFLAGS" |
12531 | LIBS="$ac_save_LIBS" | |
12532 | fi | |
12533 | fi | |
12534 | GTK_CFLAGS="" | |
12535 | GTK_LIBS="" | |
12536 | : | |
12537 | fi | |
a0b9e27f MB |
12538 | |
12539 | ||
21d1c967 | 12540 | rm -f conf.gtktest |
f79bd02d | 12541 | |
2b5f62a0 | 12542 | else |
a0b9e27f | 12543 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12544 | if test "${with_gtk_prefix+set}" = set; then |
12545 | withval="$with_gtk_prefix" | |
12546 | gtk_config_prefix="$withval" | |
12547 | else | |
12548 | gtk_config_prefix="" | |
a0b9e27f | 12549 | fi |
f79bd02d | 12550 | |
21d1c967 GD |
12551 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12552 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12553 | withval="$with_gtk_exec_prefix" | |
12554 | gtk_config_exec_prefix="$withval" | |
12555 | else | |
12556 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12557 | fi |
12558 | ||
21d1c967 GD |
12559 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12560 | if test "${enable_gtktest+set}" = set; then | |
12561 | enableval="$enable_gtktest" | |
a0b9e27f | 12562 | : |
21d1c967 GD |
12563 | else |
12564 | enable_gtktest=yes | |
a0b9e27f MB |
12565 | fi |
12566 | ||
21d1c967 GD |
12567 | |
12568 | for module in . $GTK_MODULES | |
12569 | do | |
12570 | case "$module" in | |
a0b9e27f | 12571 | gthread) |
21d1c967 GD |
12572 | gtk_config_args="$gtk_config_args gthread" |
12573 | ;; | |
12574 | esac | |
12575 | done | |
12576 | ||
12577 | if test x$gtk_config_exec_prefix != x ; then | |
12578 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12579 | if test x${GTK_CONFIG+set} != xset ; then | |
12580 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12581 | fi | |
12582 | fi | |
12583 | if test x$gtk_config_prefix != x ; then | |
12584 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12585 | if test x${GTK_CONFIG+set} != xset ; then | |
12586 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12587 | fi | |
12588 | fi | |
12589 | ||
12590 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12591 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12592 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
f7f78039 | 12593 | echo "configure:12594: checking for $ac_word" >&5 |
a0b9e27f MB |
12594 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12595 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12596 | else |
a0b9e27f MB |
12597 | case "$GTK_CONFIG" in |
12598 | /*) | |
21d1c967 GD |
12599 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12600 | ;; | |
a0b9e27f MB |
12601 | ?:/*) |
12602 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12603 | ;; | |
21d1c967 | 12604 | *) |
a0b9e27f MB |
12605 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12606 | ac_dummy="$PATH" | |
12607 | for ac_dir in $ac_dummy; do | |
12608 | test -z "$ac_dir" && ac_dir=. | |
12609 | if test -f $ac_dir/$ac_word; then | |
12610 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12611 | break | |
12612 | fi | |
12613 | done | |
12614 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12615 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12616 | ;; | |
12617 | esac | |
12618 | fi | |
a0b9e27f | 12619 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12620 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12621 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12622 | else |
a0b9e27f | 12623 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12624 | fi |
12625 | ||
12626 | min_gtk_version=1.2.7 | |
a0b9e27f | 12627 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
f7f78039 | 12628 | echo "configure:12629: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12629 | no_gtk="" |
12630 | if test "$GTK_CONFIG" = "no" ; then | |
12631 | no_gtk=yes | |
12632 | else | |
12633 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12634 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12635 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12636 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12637 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12638 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12639 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12640 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12641 | if test "x$enable_gtktest" = "xyes" ; then | |
12642 | ac_save_CFLAGS="$CFLAGS" | |
12643 | ac_save_LIBS="$LIBS" | |
12644 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12645 | LIBS="$GTK_LIBS $LIBS" | |
12646 | rm -f conf.gtktest | |
12647 | if test "$cross_compiling" = yes; then | |
12648 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12649 | else |
a0b9e27f | 12650 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 12651 | #line 12652 "configure" |
f79bd02d JS |
12652 | #include "confdefs.h" |
12653 | ||
21d1c967 GD |
12654 | #include <gtk/gtk.h> |
12655 | #include <stdio.h> | |
12656 | #include <stdlib.h> | |
f79bd02d | 12657 | |
a0b9e27f | 12658 | int |
21d1c967 GD |
12659 | main () |
12660 | { | |
12661 | int major, minor, micro; | |
12662 | char *tmp_version; | |
12663 | ||
12664 | system ("touch conf.gtktest"); | |
12665 | ||
12666 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12667 | tmp_version = g_strdup("$min_gtk_version"); | |
12668 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12669 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12670 | exit(1); | |
12671 | } | |
90dd450c | 12672 | |
21d1c967 GD |
12673 | if ((gtk_major_version != $gtk_config_major_version) || |
12674 | (gtk_minor_version != $gtk_config_minor_version) || | |
12675 | (gtk_micro_version != $gtk_config_micro_version)) | |
12676 | { | |
a0b9e27f | 12677 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12678 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12679 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12680 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12681 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12682 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12683 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12684 | printf("*** required on your system.\n"); | |
12685 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12686 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12687 | printf("*** before re-running configure\n"); | |
a0b9e27f | 12688 | } |
21d1c967 GD |
12689 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12690 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12691 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12692 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12693 | { | |
12694 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12695 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12696 | printf("*** library (version %d.%d.%d)\n", | |
12697 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12698 | } | |
12699 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12700 | else | |
12701 | { | |
12702 | if ((gtk_major_version > major) || | |
12703 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12704 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12705 | { | |
12706 | return 0; | |
12707 | } | |
12708 | else | |
12709 | { | |
12710 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12711 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12712 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12713 | major, minor, micro); | |
12714 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12715 | printf("***\n"); | |
12716 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12717 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12718 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12719 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12720 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12721 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12722 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12723 | } | |
12724 | } | |
12725 | return 1; | |
12726 | } | |
12727 | ||
a0b9e27f | 12728 | EOF |
f7f78039 | 12729 | if { (eval echo configure:12730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12730 | then |
21d1c967 GD |
12731 | : |
12732 | else | |
a0b9e27f MB |
12733 | echo "configure: failed program was:" >&5 |
12734 | cat conftest.$ac_ext >&5 | |
12735 | rm -fr conftest* | |
12736 | no_gtk=yes | |
21d1c967 | 12737 | fi |
a0b9e27f | 12738 | rm -fr conftest* |
21d1c967 | 12739 | fi |
a0b9e27f | 12740 | |
21d1c967 GD |
12741 | CFLAGS="$ac_save_CFLAGS" |
12742 | LIBS="$ac_save_LIBS" | |
12743 | fi | |
12744 | fi | |
12745 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12746 | echo "$ac_t""yes" 1>&6 |
12747 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 12748 | else |
a0b9e27f | 12749 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12750 | if test "$GTK_CONFIG" = "no" ; then |
12751 | echo "*** The gtk-config script installed by GTK could not be found" | |
12752 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12753 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12754 | echo "*** full path to gtk-config." | |
12755 | else | |
12756 | if test -f conf.gtktest ; then | |
12757 | : | |
12758 | else | |
12759 | echo "*** Could not run GTK test program, checking why..." | |
12760 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12761 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12762 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 12763 | #line 12764 "configure" |
21d1c967 GD |
12764 | #include "confdefs.h" |
12765 | ||
12766 | #include <gtk/gtk.h> | |
12767 | #include <stdio.h> | |
12768 | ||
a0b9e27f MB |
12769 | int main() { |
12770 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12771 | ; return 0; } | |
12772 | EOF | |
f7f78039 | 12773 | if { (eval echo configure:12774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12774 | rm -rf conftest* |
21d1c967 GD |
12775 | echo "*** The test program compiled, but did not run. This usually means" |
12776 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12777 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12778 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12779 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12780 | echo "*** is required on your system" | |
12781 | echo "***" | |
12782 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12783 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12784 | echo "***" | |
12785 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12786 | echo "*** came with the system with the command" | |
12787 | echo "***" | |
a0b9e27f | 12788 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 12789 | else |
a0b9e27f MB |
12790 | echo "configure: failed program was:" >&5 |
12791 | cat conftest.$ac_ext >&5 | |
12792 | rm -rf conftest* | |
12793 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
12794 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
12795 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 12796 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 12797 | fi |
a0b9e27f | 12798 | rm -f conftest* |
21d1c967 GD |
12799 | CFLAGS="$ac_save_CFLAGS" |
12800 | LIBS="$ac_save_LIBS" | |
12801 | fi | |
12802 | fi | |
12803 | GTK_CFLAGS="" | |
12804 | GTK_LIBS="" | |
12805 | : | |
12806 | fi | |
a0b9e27f MB |
12807 | |
12808 | ||
21d1c967 GD |
12809 | rm -f conf.gtktest |
12810 | ||
21d1c967 | 12811 | |
2b5f62a0 VZ |
12812 | if test -z "$wx_cv_lib_gtk"; then |
12813 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
12814 | if test "${with_gtk_prefix+set}" = set; then |
12815 | withval="$with_gtk_prefix" | |
12816 | gtk_config_prefix="$withval" | |
12817 | else | |
12818 | gtk_config_prefix="" | |
a0b9e27f | 12819 | fi |
f79bd02d | 12820 | |
21d1c967 GD |
12821 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12822 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12823 | withval="$with_gtk_exec_prefix" | |
12824 | gtk_config_exec_prefix="$withval" | |
12825 | else | |
12826 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12827 | fi |
12828 | ||
21d1c967 GD |
12829 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12830 | if test "${enable_gtktest+set}" = set; then | |
12831 | enableval="$enable_gtktest" | |
a0b9e27f | 12832 | : |
90dd450c | 12833 | else |
21d1c967 | 12834 | enable_gtktest=yes |
a0b9e27f MB |
12835 | fi |
12836 | ||
21d1c967 GD |
12837 | |
12838 | for module in . $GTK_MODULES | |
12839 | do | |
12840 | case "$module" in | |
a0b9e27f | 12841 | gthread) |
21d1c967 GD |
12842 | gtk_config_args="$gtk_config_args gthread" |
12843 | ;; | |
12844 | esac | |
12845 | done | |
12846 | ||
12847 | if test x$gtk_config_exec_prefix != x ; then | |
12848 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12849 | if test x${GTK_CONFIG+set} != xset ; then | |
12850 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12851 | fi | |
12852 | fi | |
12853 | if test x$gtk_config_prefix != x ; then | |
12854 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12855 | if test x${GTK_CONFIG+set} != xset ; then | |
12856 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12857 | fi | |
12858 | fi | |
12859 | ||
12860 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12861 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12862 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
f7f78039 | 12863 | echo "configure:12864: checking for $ac_word" >&5 |
a0b9e27f MB |
12864 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12865 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 12866 | else |
a0b9e27f MB |
12867 | case "$GTK_CONFIG" in |
12868 | /*) | |
21d1c967 GD |
12869 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12870 | ;; | |
a0b9e27f MB |
12871 | ?:/*) |
12872 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12873 | ;; | |
21d1c967 | 12874 | *) |
a0b9e27f MB |
12875 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12876 | ac_dummy="$PATH" | |
12877 | for ac_dir in $ac_dummy; do | |
12878 | test -z "$ac_dir" && ac_dir=. | |
12879 | if test -f $ac_dir/$ac_word; then | |
12880 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12881 | break | |
12882 | fi | |
12883 | done | |
12884 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12885 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12886 | ;; | |
12887 | esac | |
12888 | fi | |
a0b9e27f | 12889 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12890 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12891 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12892 | else |
a0b9e27f | 12893 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12894 | fi |
12895 | ||
12896 | min_gtk_version=1.2.3 | |
a0b9e27f | 12897 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
f7f78039 | 12898 | echo "configure:12899: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12899 | no_gtk="" |
12900 | if test "$GTK_CONFIG" = "no" ; then | |
12901 | no_gtk=yes | |
12902 | else | |
12903 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12904 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12905 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12906 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12907 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12908 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12909 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12910 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12911 | if test "x$enable_gtktest" = "xyes" ; then | |
12912 | ac_save_CFLAGS="$CFLAGS" | |
12913 | ac_save_LIBS="$LIBS" | |
12914 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12915 | LIBS="$GTK_LIBS $LIBS" | |
12916 | rm -f conf.gtktest | |
12917 | if test "$cross_compiling" = yes; then | |
12918 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12919 | else | |
a0b9e27f | 12920 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 12921 | #line 12922 "configure" |
f79bd02d | 12922 | #include "confdefs.h" |
21d1c967 GD |
12923 | |
12924 | #include <gtk/gtk.h> | |
12925 | #include <stdio.h> | |
12926 | #include <stdlib.h> | |
12927 | ||
a0b9e27f | 12928 | int |
21d1c967 GD |
12929 | main () |
12930 | { | |
12931 | int major, minor, micro; | |
12932 | char *tmp_version; | |
12933 | ||
12934 | system ("touch conf.gtktest"); | |
12935 | ||
12936 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12937 | tmp_version = g_strdup("$min_gtk_version"); | |
12938 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12939 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12940 | exit(1); | |
12941 | } | |
12942 | ||
12943 | if ((gtk_major_version != $gtk_config_major_version) || | |
12944 | (gtk_minor_version != $gtk_config_minor_version) || | |
12945 | (gtk_micro_version != $gtk_config_micro_version)) | |
12946 | { | |
a0b9e27f | 12947 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12948 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12949 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12950 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12951 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12952 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12953 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12954 | printf("*** required on your system.\n"); | |
12955 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12956 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12957 | printf("*** before re-running configure\n"); | |
a0b9e27f | 12958 | } |
21d1c967 GD |
12959 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12960 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12961 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12962 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12963 | { | |
12964 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12965 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12966 | printf("*** library (version %d.%d.%d)\n", | |
12967 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12968 | } | |
12969 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12970 | else | |
12971 | { | |
12972 | if ((gtk_major_version > major) || | |
12973 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12974 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12975 | { | |
12976 | return 0; | |
12977 | } | |
12978 | else | |
12979 | { | |
12980 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12981 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12982 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12983 | major, minor, micro); | |
12984 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12985 | printf("***\n"); | |
12986 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12987 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12988 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12989 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12990 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12991 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12992 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12993 | } | |
12994 | } | |
12995 | return 1; | |
12996 | } | |
12997 | ||
a0b9e27f | 12998 | EOF |
f7f78039 | 12999 | if { (eval echo configure:13000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 13000 | then |
21d1c967 GD |
13001 | : |
13002 | else | |
a0b9e27f MB |
13003 | echo "configure: failed program was:" >&5 |
13004 | cat conftest.$ac_ext >&5 | |
13005 | rm -fr conftest* | |
13006 | no_gtk=yes | |
21d1c967 | 13007 | fi |
a0b9e27f | 13008 | rm -fr conftest* |
21d1c967 | 13009 | fi |
a0b9e27f | 13010 | |
21d1c967 GD |
13011 | CFLAGS="$ac_save_CFLAGS" |
13012 | LIBS="$ac_save_LIBS" | |
13013 | fi | |
13014 | fi | |
13015 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
13016 | echo "$ac_t""yes" 1>&6 |
13017 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 13018 | else |
a0b9e27f | 13019 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
13020 | if test "$GTK_CONFIG" = "no" ; then |
13021 | echo "*** The gtk-config script installed by GTK could not be found" | |
13022 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
13023 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
13024 | echo "*** full path to gtk-config." | |
13025 | else | |
13026 | if test -f conf.gtktest ; then | |
13027 | : | |
13028 | else | |
13029 | echo "*** Could not run GTK test program, checking why..." | |
13030 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
13031 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 13032 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 13033 | #line 13034 "configure" |
21d1c967 GD |
13034 | #include "confdefs.h" |
13035 | ||
13036 | #include <gtk/gtk.h> | |
13037 | #include <stdio.h> | |
f79bd02d | 13038 | |
a0b9e27f MB |
13039 | int main() { |
13040 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
13041 | ; return 0; } | |
13042 | EOF | |
f7f78039 | 13043 | if { (eval echo configure:13044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13044 | rm -rf conftest* |
21d1c967 GD |
13045 | echo "*** The test program compiled, but did not run. This usually means" |
13046 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
13047 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
13048 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
13049 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
13050 | echo "*** is required on your system" | |
13051 | echo "***" | |
13052 | echo "*** If you have an old version installed, it is best to remove it, although" | |
13053 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
13054 | echo "***" | |
13055 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
13056 | echo "*** came with the system with the command" | |
13057 | echo "***" | |
a0b9e27f | 13058 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 13059 | else |
a0b9e27f MB |
13060 | echo "configure: failed program was:" >&5 |
13061 | cat conftest.$ac_ext >&5 | |
13062 | rm -rf conftest* | |
13063 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
13064 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
13065 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 13066 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 13067 | fi |
a0b9e27f | 13068 | rm -f conftest* |
21d1c967 GD |
13069 | CFLAGS="$ac_save_CFLAGS" |
13070 | LIBS="$ac_save_LIBS" | |
13071 | fi | |
13072 | fi | |
13073 | GTK_CFLAGS="" | |
13074 | GTK_LIBS="" | |
13075 | : | |
13076 | fi | |
a0b9e27f MB |
13077 | |
13078 | ||
21d1c967 | 13079 | rm -f conf.gtktest |
f79bd02d | 13080 | |
2b5f62a0 | 13081 | fi |
21d1c967 GD |
13082 | fi |
13083 | ||
13084 | if test -z "$wx_cv_lib_gtk"; then | |
13085 | wx_cv_lib_gtk=none | |
13086 | else | |
13087 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
13088 | wx_cv_libs_gtk=$GTK_LIBS | |
13089 | fi | |
a0b9e27f MB |
13090 | |
13091 | ||
5c6fa7d2 | 13092 | fi |
52127426 | 13093 | |
8284b0c5 | 13094 | |
21d1c967 | 13095 | if test "$gtk_version_cached" = 1; then |
a0b9e27f | 13096 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 |
21d1c967 GD |
13097 | fi |
13098 | ||
13099 | case "$wx_cv_lib_gtk" in | |
13100 | 2.0) WXGTK20=1 | |
2b5f62a0 | 13101 | TOOLKIT_VERSION=2 |
21d1c967 GD |
13102 | ;; |
13103 | 1.2.7) WXGTK127=1 | |
13104 | WXGTK12=1 | |
13105 | ;; | |
13106 | 1.2.3) WXGTK12=1 | |
13107 | ;; | |
a0b9e27f | 13108 | *) { echo "configure: error: |
247f5006 VZ |
13109 | Please check that gtk-config is in path, the directory |
13110 | where GTK+ libraries are installed (returned by | |
13111 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
13112 | equivalent variable and GTK+ is version 1.2.3 or above. | |
a0b9e27f | 13113 | " 1>&2; exit 1; } |
21d1c967 GD |
13114 | ;; |
13115 | esac | |
13116 | ||
b13cd66e VZ |
13117 | if test "$WXGTK20" = 1; then |
13118 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 13119 | |
f09359cf VS |
13120 | succeeded=no |
13121 | ||
13122 | if test -z "$PKG_CONFIG"; then | |
13123 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
13124 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 13125 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
f7f78039 | 13126 | echo "configure:13127: checking for $ac_word" >&5 |
a0b9e27f MB |
13127 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
13128 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf | 13129 | else |
a0b9e27f MB |
13130 | case "$PKG_CONFIG" in |
13131 | /*) | |
f09359cf VS |
13132 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
13133 | ;; | |
a0b9e27f MB |
13134 | ?:/*) |
13135 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
13136 | ;; | |
f09359cf | 13137 | *) |
a0b9e27f MB |
13138 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
13139 | ac_dummy="$PATH" | |
13140 | for ac_dir in $ac_dummy; do | |
13141 | test -z "$ac_dir" && ac_dir=. | |
13142 | if test -f $ac_dir/$ac_word; then | |
13143 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
13144 | break | |
13145 | fi | |
13146 | done | |
13147 | IFS="$ac_save_ifs" | |
f09359cf VS |
13148 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
13149 | ;; | |
13150 | esac | |
13151 | fi | |
a0b9e27f | 13152 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
f09359cf | 13153 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 13154 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f09359cf | 13155 | else |
a0b9e27f | 13156 | echo "$ac_t""no" 1>&6 |
f09359cf VS |
13157 | fi |
13158 | ||
13159 | fi | |
13160 | ||
13161 | if test "$PKG_CONFIG" = "no" ; then | |
13162 | echo "*** The pkg-config script could not be found. Make sure it is" | |
13163 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
13164 | echo "*** to the full path to pkg-config." | |
13165 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
13166 | else | |
13167 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
13168 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
a0b9e27f | 13169 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 |
f7f78039 | 13170 | echo "configure:13171: checking for pangoft2" >&5 |
f09359cf VS |
13171 | |
13172 | if $PKG_CONFIG --exists "pangoft2" ; then | |
a0b9e27f | 13173 | echo "$ac_t""yes" 1>&6 |
f09359cf VS |
13174 | succeeded=yes |
13175 | ||
a0b9e27f | 13176 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 |
f7f78039 | 13177 | echo "configure:13178: checking PANGOFT2_CFLAGS" >&5 |
f09359cf | 13178 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
a0b9e27f | 13179 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 |
f09359cf | 13180 | |
a0b9e27f | 13181 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 |
f7f78039 | 13182 | echo "configure:13183: checking PANGOFT2_LIBS" >&5 |
f09359cf | 13183 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
a0b9e27f | 13184 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 |
f09359cf VS |
13185 | else |
13186 | PANGOFT2_CFLAGS="" | |
13187 | PANGOFT2_LIBS="" | |
a0b9e27f | 13188 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
13189 | ## do set a variable so people can do so. |
13190 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
a0b9e27f | 13191 | |
f09359cf VS |
13192 | fi |
13193 | ||
a0b9e27f MB |
13194 | |
13195 | ||
f09359cf VS |
13196 | else |
13197 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
13198 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
13199 | fi | |
13200 | fi | |
13201 | ||
13202 | if test $succeeded = yes; then | |
a0b9e27f | 13203 | |
b13cd66e VZ |
13204 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
13205 | LIBS="$LIBS $PANGOFT2_LIBS" | |
a0b9e27f | 13206 | |
f09359cf | 13207 | else |
a0b9e27f MB |
13208 | |
13209 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
b13cd66e | 13210 | wxUSE_PRINTING_ARCHITECTURE="no" |
a0b9e27f MB |
13211 | |
13212 | ||
f09359cf VS |
13213 | fi |
13214 | ||
b13cd66e | 13215 | fi |
2b5f62a0 VZ |
13216 | else |
13217 | if test "$wxUSE_UNICODE" = "yes"; then | |
13218 | echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2 | |
13219 | wxUSE_UNICODE=no | |
13220 | fi | |
13221 | fi | |
13222 | ||
13223 | if test "$USE_DARWIN" != 1; then | |
13224 | for ac_func in poll | |
13225 | do | |
13226 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f7f78039 | 13227 | echo "configure:13228: checking for $ac_func" >&5 |
2b5f62a0 VZ |
13228 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13229 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13230 | else | |
13231 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 13232 | #line 13233 "configure" |
2b5f62a0 VZ |
13233 | #include "confdefs.h" |
13234 | /* System header to define __stub macros and hopefully few prototypes, | |
13235 | which can conflict with char $ac_func(); below. */ | |
13236 | #include <assert.h> | |
13237 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13238 | /* We use char because int might match the return type of a gcc2 | |
13239 | builtin and then its argument prototype would still apply. */ | |
13240 | char $ac_func(); | |
13241 | ||
13242 | int main() { | |
13243 | ||
13244 | /* The GNU C library defines this for functions which it implements | |
13245 | to always fail with ENOSYS. Some functions are actually named | |
13246 | something starting with __ and the normal name is an alias. */ | |
13247 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13248 | choke me | |
13249 | #else | |
13250 | $ac_func(); | |
13251 | #endif | |
13252 | ||
13253 | ; return 0; } | |
13254 | EOF | |
f7f78039 | 13255 | if { (eval echo configure:13256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
13256 | rm -rf conftest* |
13257 | eval "ac_cv_func_$ac_func=yes" | |
13258 | else | |
13259 | echo "configure: failed program was:" >&5 | |
13260 | cat conftest.$ac_ext >&5 | |
13261 | rm -rf conftest* | |
13262 | eval "ac_cv_func_$ac_func=no" | |
13263 | fi | |
13264 | rm -f conftest* | |
13265 | fi | |
13266 | ||
13267 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13268 | echo "$ac_t""yes" 1>&6 | |
13269 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13270 | cat >> confdefs.h <<EOF | |
13271 | #define $ac_tr_func 1 | |
13272 | EOF | |
13273 | ||
13274 | else | |
13275 | echo "$ac_t""no" 1>&6 | |
13276 | fi | |
13277 | done | |
13278 | ||
f09359cf VS |
13279 | fi |
13280 | ||
21d1c967 GD |
13281 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
13282 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
13283 | ||
13284 | AFMINSTALL=afminstall | |
13285 | TOOLKIT=GTK | |
13286 | GUIDIST=GTK_DIST | |
13287 | ||
a0b9e27f | 13288 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
f7f78039 | 13289 | echo "configure:13290: checking for gdk_im_open in -lgdk" >&5 |
a0b9e27f MB |
13290 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
13291 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13292 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13293 | else |
a0b9e27f | 13294 | ac_save_LIBS="$LIBS" |
21d1c967 | 13295 | LIBS="-lgdk $LIBS" |
a0b9e27f | 13296 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 13297 | #line 13298 "configure" |
90dd450c | 13298 | #include "confdefs.h" |
5c6fa7d2 | 13299 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 13300 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13301 | builtin and then its argument prototype would still apply. */ |
13302 | char gdk_im_open(); | |
13303 | ||
13304 | int main() { | |
13305 | gdk_im_open() | |
13306 | ; return 0; } | |
13307 | EOF | |
f7f78039 | 13308 | if { (eval echo configure:13309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13309 | rm -rf conftest* |
13310 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13311 | else | |
13312 | echo "configure: failed program was:" >&5 | |
13313 | cat conftest.$ac_ext >&5 | |
13314 | rm -rf conftest* | |
13315 | eval "ac_cv_lib_$ac_lib_var=no" | |
13316 | fi | |
13317 | rm -f conftest* | |
13318 | LIBS="$ac_save_LIBS" | |
13319 | ||
13320 | fi | |
13321 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13322 | echo "$ac_t""yes" 1>&6 | |
13323 | cat >> confdefs.h <<\EOF | |
21d1c967 | 13324 | #define HAVE_XIM 1 |
a0b9e27f | 13325 | EOF |
21d1c967 | 13326 | |
a0b9e27f MB |
13327 | else |
13328 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13329 | fi |
1e6feb95 | 13330 | |
21d1c967 | 13331 | fi |
1e6feb95 | 13332 | |
21d1c967 | 13333 | if test "$wxUSE_MGL" = 1; then |
63a76696 | 13334 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
f7f78039 | 13335 | echo "configure:13336: checking for SciTech MGL library" >&5 |
21d1c967 | 13336 | if test "x$MGL_ROOT" = x ; then |
a0b9e27f MB |
13337 | echo "$ac_t""not found" 1>&6 |
13338 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
21d1c967 | 13339 | else |
a0b9e27f | 13340 | echo "$ac_t""$MGL_ROOT" 1>&6 |
21d1c967 GD |
13341 | fi |
13342 | ||
63a76696 | 13343 | echo $ac_n "checking for libmgl location""... $ac_c" 1>&6 |
f7f78039 | 13344 | echo "configure:13345: checking for libmgl location" >&5 |
21d1c967 GD |
13345 | case "${host}" in |
13346 | *-*-linux* ) | |
63a76696 VS |
13347 | if test "x$wxUSE_SHARED" = xyes ; then |
13348 | mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc" | |
13349 | else | |
13350 | mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so" | |
13351 | fi | |
21d1c967 GD |
13352 | ;; |
13353 | *-pc-msdosdjgpp ) | |
63a76696 | 13354 | mgl_os_candidates="dos32/dj2" |
21d1c967 GD |
13355 | ;; |
13356 | *) | |
a0b9e27f | 13357 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } |
21d1c967 | 13358 | esac |
1e6feb95 | 13359 | |
21d1c967 | 13360 | mgl_lib_type="" |
63a76696 VS |
13361 | mgl_os="" |
13362 | ||
13363 | for mgl_os_i in $mgl_os_candidates ; do | |
13364 | if test "x$mgl_os" = x ; then | |
13365 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
13366 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
13367 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
13368 | mgl_lib_type=debug | |
13369 | mgl_os=$mgl_os_i | |
13370 | fi | |
13371 | fi | |
13372 | if test "x$mgl_lib_type" = x ; then | |
13373 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
13374 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
13375 | mgl_lib_type=release | |
13376 | mgl_os=$mgl_os_i | |
13377 | fi | |
13378 | fi | |
21d1c967 | 13379 | fi |
63a76696 | 13380 | done |
2224580a | 13381 | |
63a76696 VS |
13382 | if test "x$mgl_os" = x ; then |
13383 | echo "$ac_t""not found" 1>&6 | |
13384 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
13385 | fi | |
13386 | echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6 | |
1542ea39 | 13387 | |
1d1b75ac VZ |
13388 | wxUSE_UNIVERSAL="yes" |
13389 | ||
21d1c967 GD |
13390 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
13391 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
13392 | ||
90dd450c | 13393 | AFMINSTALL=afminstall |
21d1c967 GD |
13394 | TOOLKIT=MGL |
13395 | GUIDIST=MGL_DIST | |
13396 | fi | |
dad6c0ea | 13397 | |
21d1c967 | 13398 | if test "$wxUSE_MICROWIN" = 1; then |
a0b9e27f | 13399 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 |
f7f78039 | 13400 | echo "configure:13401: checking for MicroWindows" >&5 |
21d1c967 | 13401 | if test "x$MICROWINDOWS" = x ; then |
a0b9e27f MB |
13402 | echo "$ac_t""not found" 1>&6 |
13403 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
21d1c967 | 13404 | else |
a0b9e27f | 13405 | echo "$ac_t""$MICROWINDOWS" 1>&6 |
21d1c967 | 13406 | fi |
f6bcfd97 | 13407 | |
21d1c967 | 13408 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
a0b9e27f | 13409 | echo "$ac_t""MicroWindows' libraries found." 1>&6 |
21d1c967 | 13410 | else |
a0b9e27f | 13411 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } |
90dd450c | 13412 | fi |
0b2effe9 | 13413 | |
21d1c967 GD |
13414 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
13415 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
13416 | ||
1d1b75ac VZ |
13417 | wxUSE_UNIVERSAL="yes" |
13418 | ||
21d1c967 GD |
13419 | AFMINSTALL=afminstall |
13420 | TOOLKIT=MICROWIN | |
13421 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
13422 | |
13423 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 13424 | fi |
f6bcfd97 | 13425 | |
21d1c967 | 13426 | if test "$wxUSE_X11" = 1; then |
a0b9e27f MB |
13427 | # If we find X, set shell vars x_includes and x_libraries to the |
13428 | # paths, otherwise set no_x=yes. | |
13429 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
13430 | # --without-x overrides everything else, but does not touch the cache. | |
13431 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
f7f78039 | 13432 | echo "configure:13433: checking for X" >&5 |
d8356fa3 | 13433 | |
21d1c967 GD |
13434 | # Check whether --with-x or --without-x was given. |
13435 | if test "${with_x+set}" = set; then | |
13436 | withval="$with_x" | |
a0b9e27f MB |
13437 | : |
13438 | fi | |
2224580a | 13439 | |
21d1c967 GD |
13440 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
13441 | if test "x$with_x" = xno; then | |
13442 | # The user explicitly disabled X. | |
13443 | have_x=disabled | |
13444 | else | |
13445 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
13446 | # Both variables are already set. | |
13447 | have_x=yes | |
13448 | else | |
a0b9e27f MB |
13449 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
13450 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 GD |
13451 | else |
13452 | # One or both of the vars are not set, and there is no cached value. | |
a0b9e27f MB |
13453 | ac_x_includes=NO ac_x_libraries=NO |
13454 | rm -fr conftestdir | |
13455 | if mkdir conftestdir; then | |
13456 | cd conftestdir | |
21d1c967 | 13457 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
a0b9e27f | 13458 | cat > Imakefile <<'EOF' |
21d1c967 GD |
13459 | acfindx: |
13460 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
a0b9e27f | 13461 | EOF |
21d1c967 GD |
13462 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
13463 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
13464 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
13465 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
13466 | for ac_extension in a so sl; do | |
13467 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
a0b9e27f | 13468 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
13469 | ac_im_usrlibdir=$ac_im_libdir; break |
13470 | fi | |
13471 | done | |
13472 | # Screen out bogus values from the imake configuration. They are | |
13473 | # bogus both because they are the default anyway, and because | |
13474 | # using them would break gcc on systems where it needs fixed includes. | |
a0b9e27f | 13475 | case "$ac_im_incroot" in |
21d1c967 | 13476 | /usr/include) ;; |
a0b9e27f | 13477 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
21d1c967 | 13478 | esac |
a0b9e27f | 13479 | case "$ac_im_usrlibdir" in |
21d1c967 | 13480 | /usr/lib | /lib) ;; |
a0b9e27f | 13481 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
21d1c967 GD |
13482 | esac |
13483 | fi | |
13484 | cd .. | |
a0b9e27f | 13485 | rm -fr conftestdir |
21d1c967 | 13486 | fi |
10f2d63a | 13487 | |
a0b9e27f MB |
13488 | if test "$ac_x_includes" = NO; then |
13489 | # Guess where to find include files, by looking for this one X11 .h file. | |
13490 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
13491 | ||
21d1c967 | 13492 | # First, try using that file with no special directory specified. |
a0b9e27f | 13493 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 13494 | #line 13495 "configure" |
21d1c967 | 13495 | #include "confdefs.h" |
a0b9e27f MB |
13496 | #include <$x_direct_test_include> |
13497 | EOF | |
13498 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f7f78039 | 13499 | { (eval echo configure:13500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
13500 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13501 | if test -z "$ac_err"; then | |
13502 | rm -rf conftest* | |
21d1c967 GD |
13503 | # We can compile using X headers with no special include directory. |
13504 | ac_x_includes= | |
90dd450c | 13505 | else |
a0b9e27f MB |
13506 | echo "$ac_err" >&5 |
13507 | echo "configure: failed program was:" >&5 | |
90dd450c | 13508 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
13509 | rm -rf conftest* |
13510 | # Look for the header file in a standard set of common directories. | |
13511 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13512 | for ac_dir in \ | |
13513 | /usr/X11/include \ | |
13514 | /usr/X11R6/include \ | |
13515 | /usr/X11R5/include \ | |
13516 | /usr/X11R4/include \ | |
13517 | \ | |
13518 | /usr/include/X11 \ | |
13519 | /usr/include/X11R6 \ | |
13520 | /usr/include/X11R5 \ | |
13521 | /usr/include/X11R4 \ | |
13522 | \ | |
13523 | /usr/local/X11/include \ | |
13524 | /usr/local/X11R6/include \ | |
13525 | /usr/local/X11R5/include \ | |
13526 | /usr/local/X11R4/include \ | |
13527 | \ | |
13528 | /usr/local/include/X11 \ | |
13529 | /usr/local/include/X11R6 \ | |
13530 | /usr/local/include/X11R5 \ | |
13531 | /usr/local/include/X11R4 \ | |
13532 | \ | |
13533 | /usr/X386/include \ | |
13534 | /usr/x386/include \ | |
13535 | /usr/XFree86/include/X11 \ | |
13536 | \ | |
13537 | /usr/include \ | |
13538 | /usr/local/include \ | |
13539 | /usr/unsupported/include \ | |
13540 | /usr/athena/include \ | |
13541 | /usr/local/x11r5/include \ | |
13542 | /usr/lpp/Xamples/include \ | |
13543 | \ | |
13544 | /usr/openwin/include \ | |
13545 | /usr/openwin/share/include \ | |
13546 | ; \ | |
13547 | do | |
13548 | if test -r "$ac_dir/$x_direct_test_include"; then | |
13549 | ac_x_includes=$ac_dir | |
13550 | break | |
13551 | fi | |
13552 | done | |
3a922bb4 | 13553 | fi |
a0b9e27f MB |
13554 | rm -f conftest* |
13555 | fi # $ac_x_includes = NO | |
10f2d63a | 13556 | |
a0b9e27f | 13557 | if test "$ac_x_libraries" = NO; then |
21d1c967 | 13558 | # Check for the libraries. |
a0b9e27f MB |
13559 | |
13560 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
13561 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
13562 | ||
21d1c967 GD |
13563 | # See if we find them without any special options. |
13564 | # Don't add to $LIBS permanently. | |
a0b9e27f MB |
13565 | ac_save_LIBS="$LIBS" |
13566 | LIBS="-l$x_direct_test_library $LIBS" | |
13567 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 13568 | #line 13569 "configure" |
3a922bb4 | 13569 | #include "confdefs.h" |
a0b9e27f MB |
13570 | |
13571 | int main() { | |
13572 | ${x_direct_test_function}() | |
13573 | ; return 0; } | |
13574 | EOF | |
f7f78039 | 13575 | if { (eval echo configure:13576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13576 | rm -rf conftest* |
13577 | LIBS="$ac_save_LIBS" | |
21d1c967 GD |
13578 | # We can link X programs with no special library path. |
13579 | ac_x_libraries= | |
3a922bb4 | 13580 | else |
a0b9e27f MB |
13581 | echo "configure: failed program was:" >&5 |
13582 | cat conftest.$ac_ext >&5 | |
13583 | rm -rf conftest* | |
13584 | LIBS="$ac_save_LIBS" | |
13585 | # First see if replacing the include by lib works. | |
13586 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13587 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
13588 | /usr/X11/lib \ | |
13589 | /usr/X11R6/lib \ | |
13590 | /usr/X11R5/lib \ | |
13591 | /usr/X11R4/lib \ | |
13592 | \ | |
13593 | /usr/lib/X11 \ | |
13594 | /usr/lib/X11R6 \ | |
13595 | /usr/lib/X11R5 \ | |
13596 | /usr/lib/X11R4 \ | |
13597 | \ | |
13598 | /usr/local/X11/lib \ | |
13599 | /usr/local/X11R6/lib \ | |
13600 | /usr/local/X11R5/lib \ | |
13601 | /usr/local/X11R4/lib \ | |
13602 | \ | |
13603 | /usr/local/lib/X11 \ | |
13604 | /usr/local/lib/X11R6 \ | |
13605 | /usr/local/lib/X11R5 \ | |
13606 | /usr/local/lib/X11R4 \ | |
13607 | \ | |
13608 | /usr/X386/lib \ | |
13609 | /usr/x386/lib \ | |
13610 | /usr/XFree86/lib/X11 \ | |
13611 | \ | |
13612 | /usr/lib \ | |
13613 | /usr/local/lib \ | |
13614 | /usr/unsupported/lib \ | |
13615 | /usr/athena/lib \ | |
13616 | /usr/local/x11r5/lib \ | |
13617 | /usr/lpp/Xamples/lib \ | |
13618 | /lib/usr/lib/X11 \ | |
13619 | \ | |
13620 | /usr/openwin/lib \ | |
13621 | /usr/openwin/share/lib \ | |
13622 | ; \ | |
21d1c967 GD |
13623 | do |
13624 | for ac_extension in a so sl; do | |
a0b9e27f | 13625 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
21d1c967 GD |
13626 | ac_x_libraries=$ac_dir |
13627 | break 2 | |
13628 | fi | |
13629 | done | |
13630 | done | |
3a922bb4 | 13631 | fi |
a0b9e27f MB |
13632 | rm -f conftest* |
13633 | fi # $ac_x_libraries = NO | |
90dd450c | 13634 | |
a0b9e27f | 13635 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
21d1c967 GD |
13636 | # Didn't find X anywhere. Cache the known absence of X. |
13637 | ac_cv_have_x="have_x=no" | |
13638 | else | |
13639 | # Record where we found X for the cache. | |
13640 | ac_cv_have_x="have_x=yes \ | |
13641 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 13642 | fi |
21d1c967 GD |
13643 | fi |
13644 | fi | |
13645 | eval "$ac_cv_have_x" | |
13646 | fi # $with_x != no | |
90dd450c | 13647 | |
21d1c967 | 13648 | if test "$have_x" != yes; then |
a0b9e27f | 13649 | echo "$ac_t""$have_x" 1>&6 |
21d1c967 GD |
13650 | no_x=yes |
13651 | else | |
13652 | # If each of the values was on the command line, it overrides each guess. | |
13653 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
13654 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
13655 | # Update the cache value to reflect the command line values. | |
13656 | ac_cv_have_x="have_x=yes \ | |
13657 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
a0b9e27f | 13658 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
21d1c967 | 13659 | fi |
90dd450c | 13660 | |
21d1c967 | 13661 | if test "$no_x" = yes; then |
90dd450c | 13662 | # Not all programs may use this symbol, but it does not hurt to define it. |
a0b9e27f | 13663 | cat >> confdefs.h <<\EOF |
90dd450c | 13664 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 13665 | EOF |
90dd450c VZ |
13666 | |
13667 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13668 | else | |
13669 | if test -n "$x_includes"; then | |
13670 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 13671 | fi |
3a922bb4 | 13672 | |
90dd450c VZ |
13673 | # It would also be nice to do this for all -L options, not just this one. |
13674 | if test -n "$x_libraries"; then | |
13675 | X_LIBS="$X_LIBS -L$x_libraries" | |
13676 | # For Solaris; some versions of Sun CC require a space after -R and | |
13677 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 13678 | case "`(uname -sr) 2>/dev/null`" in |
90dd450c | 13679 | "SunOS 5"*) |
a0b9e27f | 13680 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
f7f78039 | 13681 | echo "configure:13682: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
13682 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
13683 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 13684 | #line 13685 "configure" |
90dd450c VZ |
13685 | #include "confdefs.h" |
13686 | ||
a0b9e27f | 13687 | int main() { |
90dd450c | 13688 | |
a0b9e27f MB |
13689 | ; return 0; } |
13690 | EOF | |
f7f78039 | 13691 | if { (eval echo configure:13692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13692 | rm -rf conftest* |
90dd450c | 13693 | ac_R_nospace=yes |
3a922bb4 | 13694 | else |
a0b9e27f MB |
13695 | echo "configure: failed program was:" >&5 |
13696 | cat conftest.$ac_ext >&5 | |
13697 | rm -rf conftest* | |
13698 | ac_R_nospace=no | |
3a922bb4 | 13699 | fi |
a0b9e27f | 13700 | rm -f conftest* |
90dd450c | 13701 | if test $ac_R_nospace = yes; then |
a0b9e27f | 13702 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
13703 | X_LIBS="$X_LIBS -R$x_libraries" |
13704 | else | |
13705 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 13706 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 13707 | #line 13708 "configure" |
90dd450c | 13708 | #include "confdefs.h" |
3a922bb4 | 13709 | |
a0b9e27f | 13710 | int main() { |
6f754473 | 13711 | |
a0b9e27f MB |
13712 | ; return 0; } |
13713 | EOF | |
f7f78039 | 13714 | if { (eval echo configure:13715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13715 | rm -rf conftest* |
90dd450c VZ |
13716 | ac_R_space=yes |
13717 | else | |
a0b9e27f MB |
13718 | echo "configure: failed program was:" >&5 |
13719 | cat conftest.$ac_ext >&5 | |
13720 | rm -rf conftest* | |
13721 | ac_R_space=no | |
90dd450c | 13722 | fi |
a0b9e27f | 13723 | rm -f conftest* |
90dd450c | 13724 | if test $ac_R_space = yes; then |
a0b9e27f | 13725 | echo "$ac_t""yes" 1>&6 |
90dd450c VZ |
13726 | X_LIBS="$X_LIBS -R $x_libraries" |
13727 | else | |
a0b9e27f | 13728 | echo "$ac_t""neither works" 1>&6 |
90dd450c VZ |
13729 | fi |
13730 | fi | |
a0b9e27f | 13731 | LIBS="$ac_xsave_LIBS" |
90dd450c VZ |
13732 | esac |
13733 | fi | |
13734 | ||
13735 | # Check for system-dependent libraries X programs must link with. | |
13736 | # Do this before checking for the system-independent R6 libraries | |
13737 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 13738 | |
90dd450c VZ |
13739 | if test "$ISC" = yes; then |
13740 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13741 | else | |
a0b9e27f MB |
13742 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
13743 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
90dd450c | 13744 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 13745 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
f7f78039 | 13746 | echo "configure:13747: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
13747 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13748 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13749 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 13750 | else |
a0b9e27f | 13751 | ac_save_LIBS="$LIBS" |
247f5006 | 13752 | LIBS="-ldnet $LIBS" |
a0b9e27f | 13753 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 13754 | #line 13755 "configure" |
247f5006 | 13755 | #include "confdefs.h" |
247f5006 | 13756 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 13757 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13758 | builtin and then its argument prototype would still apply. */ |
13759 | char dnet_ntoa(); | |
13760 | ||
13761 | int main() { | |
13762 | dnet_ntoa() | |
13763 | ; return 0; } | |
13764 | EOF | |
f7f78039 | 13765 | if { (eval echo configure:13766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13766 | rm -rf conftest* |
13767 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13768 | else | |
13769 | echo "configure: failed program was:" >&5 | |
13770 | cat conftest.$ac_ext >&5 | |
13771 | rm -rf conftest* | |
13772 | eval "ac_cv_lib_$ac_lib_var=no" | |
13773 | fi | |
13774 | rm -f conftest* | |
13775 | LIBS="$ac_save_LIBS" | |
13776 | ||
13777 | fi | |
13778 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13779 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13780 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
13781 | else |
13782 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13783 | fi |
13784 | ||
90dd450c | 13785 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 13786 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
f7f78039 | 13787 | echo "configure:13788: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
13788 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13789 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13790 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13791 | else |
a0b9e27f | 13792 | ac_save_LIBS="$LIBS" |
90dd450c | 13793 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 13794 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 13795 | #line 13796 "configure" |
90dd450c VZ |
13796 | #include "confdefs.h" |
13797 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13798 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13799 | builtin and then its argument prototype would still apply. */ |
13800 | char dnet_ntoa(); | |
13801 | ||
13802 | int main() { | |
13803 | dnet_ntoa() | |
13804 | ; return 0; } | |
13805 | EOF | |
f7f78039 | 13806 | if { (eval echo configure:13807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13807 | rm -rf conftest* |
13808 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13809 | else | |
13810 | echo "configure: failed program was:" >&5 | |
13811 | cat conftest.$ac_ext >&5 | |
13812 | rm -rf conftest* | |
13813 | eval "ac_cv_lib_$ac_lib_var=no" | |
13814 | fi | |
13815 | rm -f conftest* | |
13816 | LIBS="$ac_save_LIBS" | |
13817 | ||
13818 | fi | |
13819 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13820 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13821 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
13822 | else |
13823 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13824 | fi |
13825 | ||
90dd450c | 13826 | fi |
978f1259 | 13827 | |
90dd450c VZ |
13828 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13829 | # to get the SysV transport functions. | |
a0b9e27f | 13830 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
13831 | # needs -lnsl. |
13832 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
13833 | # on Irix 5.2, according to dickey@clark.net. |
13834 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
f7f78039 | 13835 | echo "configure:13836: checking for gethostbyname" >&5 |
a0b9e27f MB |
13836 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13837 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13838 | else | |
13839 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 13840 | #line 13841 "configure" |
90dd450c VZ |
13841 | #include "confdefs.h" |
13842 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 13843 | which can conflict with char gethostbyname(); below. */ |
90dd450c VZ |
13844 | #include <assert.h> |
13845 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13846 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13847 | builtin and then its argument prototype would still apply. */ |
13848 | char gethostbyname(); | |
13849 | ||
13850 | int main() { | |
13851 | ||
90dd450c VZ |
13852 | /* The GNU C library defines this for functions which it implements |
13853 | to always fail with ENOSYS. Some functions are actually named | |
13854 | something starting with __ and the normal name is an alias. */ | |
13855 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13856 | choke me | |
13857 | #else | |
a0b9e27f | 13858 | gethostbyname(); |
90dd450c | 13859 | #endif |
978f1259 | 13860 | |
a0b9e27f MB |
13861 | ; return 0; } |
13862 | EOF | |
f7f78039 | 13863 | if { (eval echo configure:13864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13864 | rm -rf conftest* |
13865 | eval "ac_cv_func_gethostbyname=yes" | |
13866 | else | |
13867 | echo "configure: failed program was:" >&5 | |
13868 | cat conftest.$ac_ext >&5 | |
13869 | rm -rf conftest* | |
13870 | eval "ac_cv_func_gethostbyname=no" | |
13871 | fi | |
13872 | rm -f conftest* | |
13873 | fi | |
13874 | ||
13875 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
13876 | echo "$ac_t""yes" 1>&6 | |
13877 | : | |
13878 | else | |
13879 | echo "$ac_t""no" 1>&6 | |
13880 | fi | |
698dcdb6 | 13881 | |
90dd450c | 13882 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 13883 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
f7f78039 | 13884 | echo "configure:13885: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
13885 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13886 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13887 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13888 | else |
a0b9e27f | 13889 | ac_save_LIBS="$LIBS" |
90dd450c | 13890 | LIBS="-lnsl $LIBS" |
a0b9e27f | 13891 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 13892 | #line 13893 "configure" |
90dd450c VZ |
13893 | #include "confdefs.h" |
13894 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13895 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13896 | builtin and then its argument prototype would still apply. */ |
13897 | char gethostbyname(); | |
5c6fa7d2 | 13898 | |
a0b9e27f MB |
13899 | int main() { |
13900 | gethostbyname() | |
13901 | ; return 0; } | |
13902 | EOF | |
f7f78039 | 13903 | if { (eval echo configure:13904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13904 | rm -rf conftest* |
13905 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 13906 | else |
a0b9e27f MB |
13907 | echo "configure: failed program was:" >&5 |
13908 | cat conftest.$ac_ext >&5 | |
13909 | rm -rf conftest* | |
13910 | eval "ac_cv_lib_$ac_lib_var=no" | |
13911 | fi | |
13912 | rm -f conftest* | |
13913 | LIBS="$ac_save_LIBS" | |
247f5006 | 13914 | |
a0b9e27f MB |
13915 | fi |
13916 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13917 | echo "$ac_t""yes" 1>&6 | |
13918 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13919 | else | |
13920 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13921 | fi |
b12915c1 | 13922 | |
90dd450c VZ |
13923 | fi |
13924 | ||
13925 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
13926 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13927 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
13928 | # on later versions), says simon@lia.di.epfl.ch: it contains |
13929 | # gethostby* variants that don't use the nameserver (or something). | |
13930 | # -lsocket must be given before -lnsl if both are needed. | |
13931 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
13932 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
f7f78039 | 13933 | echo "configure:13934: checking for connect" >&5 |
a0b9e27f MB |
13934 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
13935 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13936 | else | |
13937 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 13938 | #line 13939 "configure" |
55e80573 | 13939 | #include "confdefs.h" |
90dd450c | 13940 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 13941 | which can conflict with char connect(); below. */ |
90dd450c VZ |
13942 | #include <assert.h> |
13943 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13944 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13945 | builtin and then its argument prototype would still apply. */ |
13946 | char connect(); | |
13947 | ||
13948 | int main() { | |
13949 | ||
90dd450c VZ |
13950 | /* The GNU C library defines this for functions which it implements |
13951 | to always fail with ENOSYS. Some functions are actually named | |
13952 | something starting with __ and the normal name is an alias. */ | |
13953 | #if defined (__stub_connect) || defined (__stub___connect) | |
13954 | choke me | |
13955 | #else | |
a0b9e27f | 13956 | connect(); |
90dd450c VZ |
13957 | #endif |
13958 | ||
a0b9e27f MB |
13959 | ; return 0; } |
13960 | EOF | |
f7f78039 | 13961 | if { (eval echo configure:13962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13962 | rm -rf conftest* |
13963 | eval "ac_cv_func_connect=yes" | |
13964 | else | |
13965 | echo "configure: failed program was:" >&5 | |
13966 | cat conftest.$ac_ext >&5 | |
13967 | rm -rf conftest* | |
13968 | eval "ac_cv_func_connect=no" | |
13969 | fi | |
13970 | rm -f conftest* | |
13971 | fi | |
13972 | ||
13973 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
13974 | echo "$ac_t""yes" 1>&6 | |
13975 | : | |
13976 | else | |
13977 | echo "$ac_t""no" 1>&6 | |
13978 | fi | |
55e80573 | 13979 | |
90dd450c | 13980 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 13981 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
f7f78039 | 13982 | echo "configure:13983: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
13983 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
13984 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13985 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13986 | else |
a0b9e27f | 13987 | ac_save_LIBS="$LIBS" |
90dd450c | 13988 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 13989 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 13990 | #line 13991 "configure" |
90dd450c VZ |
13991 | #include "confdefs.h" |
13992 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13993 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13994 | builtin and then its argument prototype would still apply. */ |
13995 | char connect(); | |
13996 | ||
13997 | int main() { | |
13998 | connect() | |
13999 | ; return 0; } | |
14000 | EOF | |
f7f78039 | 14001 | if { (eval echo configure:14002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14002 | rm -rf conftest* |
14003 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14004 | else | |
14005 | echo "configure: failed program was:" >&5 | |
14006 | cat conftest.$ac_ext >&5 | |
14007 | rm -rf conftest* | |
14008 | eval "ac_cv_lib_$ac_lib_var=no" | |
14009 | fi | |
14010 | rm -f conftest* | |
14011 | LIBS="$ac_save_LIBS" | |
14012 | ||
14013 | fi | |
14014 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14015 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14016 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
14017 | else |
14018 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14019 | fi |
77e13408 | 14020 | |
90dd450c | 14021 | fi |
25d0687a | 14022 | |
a0b9e27f MB |
14023 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
14024 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
f7f78039 | 14025 | echo "configure:14026: checking for remove" >&5 |
a0b9e27f MB |
14026 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
14027 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14028 | else |
a0b9e27f | 14029 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 14030 | #line 14031 "configure" |
90dd450c VZ |
14031 | #include "confdefs.h" |
14032 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14033 | which can conflict with char remove(); below. */ |
90dd450c VZ |
14034 | #include <assert.h> |
14035 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14036 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14037 | builtin and then its argument prototype would still apply. */ |
14038 | char remove(); | |
14039 | ||
14040 | int main() { | |
14041 | ||
90dd450c VZ |
14042 | /* The GNU C library defines this for functions which it implements |
14043 | to always fail with ENOSYS. Some functions are actually named | |
14044 | something starting with __ and the normal name is an alias. */ | |
14045 | #if defined (__stub_remove) || defined (__stub___remove) | |
14046 | choke me | |
14047 | #else | |
a0b9e27f | 14048 | remove(); |
90dd450c | 14049 | #endif |
55e80573 | 14050 | |
a0b9e27f MB |
14051 | ; return 0; } |
14052 | EOF | |
f7f78039 | 14053 | if { (eval echo configure:14054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14054 | rm -rf conftest* |
14055 | eval "ac_cv_func_remove=yes" | |
14056 | else | |
14057 | echo "configure: failed program was:" >&5 | |
14058 | cat conftest.$ac_ext >&5 | |
14059 | rm -rf conftest* | |
14060 | eval "ac_cv_func_remove=no" | |
14061 | fi | |
14062 | rm -f conftest* | |
14063 | fi | |
14064 | ||
14065 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
14066 | echo "$ac_t""yes" 1>&6 | |
14067 | : | |
14068 | else | |
14069 | echo "$ac_t""no" 1>&6 | |
14070 | fi | |
10f2d63a | 14071 | |
90dd450c | 14072 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 14073 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
f7f78039 | 14074 | echo "configure:14075: checking for remove in -lposix" >&5 |
a0b9e27f MB |
14075 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
14076 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14077 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14078 | else |
a0b9e27f | 14079 | ac_save_LIBS="$LIBS" |
90dd450c | 14080 | LIBS="-lposix $LIBS" |
a0b9e27f | 14081 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 14082 | #line 14083 "configure" |
90dd450c VZ |
14083 | #include "confdefs.h" |
14084 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14085 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14086 | builtin and then its argument prototype would still apply. */ |
14087 | char remove(); | |
14088 | ||
14089 | int main() { | |
14090 | remove() | |
14091 | ; return 0; } | |
14092 | EOF | |
f7f78039 | 14093 | if { (eval echo configure:14094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14094 | rm -rf conftest* |
14095 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14096 | else | |
14097 | echo "configure: failed program was:" >&5 | |
14098 | cat conftest.$ac_ext >&5 | |
14099 | rm -rf conftest* | |
14100 | eval "ac_cv_lib_$ac_lib_var=no" | |
14101 | fi | |
14102 | rm -f conftest* | |
14103 | LIBS="$ac_save_LIBS" | |
14104 | ||
14105 | fi | |
14106 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14107 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14108 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
14109 | else |
14110 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14111 | fi |
f6bcfd97 | 14112 | |
6fa882bd RR |
14113 | fi |
14114 | ||
90dd450c | 14115 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 14116 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
f7f78039 | 14117 | echo "configure:14118: checking for shmat" >&5 |
a0b9e27f MB |
14118 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
14119 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14120 | else |
a0b9e27f | 14121 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 14122 | #line 14123 "configure" |
90dd450c VZ |
14123 | #include "confdefs.h" |
14124 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14125 | which can conflict with char shmat(); below. */ |
90dd450c VZ |
14126 | #include <assert.h> |
14127 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14128 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14129 | builtin and then its argument prototype would still apply. */ |
14130 | char shmat(); | |
14131 | ||
14132 | int main() { | |
14133 | ||
90dd450c VZ |
14134 | /* The GNU C library defines this for functions which it implements |
14135 | to always fail with ENOSYS. Some functions are actually named | |
14136 | something starting with __ and the normal name is an alias. */ | |
14137 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14138 | choke me | |
14139 | #else | |
a0b9e27f | 14140 | shmat(); |
90dd450c | 14141 | #endif |
10f2d63a | 14142 | |
a0b9e27f MB |
14143 | ; return 0; } |
14144 | EOF | |
f7f78039 | 14145 | if { (eval echo configure:14146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14146 | rm -rf conftest* |
14147 | eval "ac_cv_func_shmat=yes" | |
14148 | else | |
14149 | echo "configure: failed program was:" >&5 | |
14150 | cat conftest.$ac_ext >&5 | |
14151 | rm -rf conftest* | |
14152 | eval "ac_cv_func_shmat=no" | |
14153 | fi | |
14154 | rm -f conftest* | |
14155 | fi | |
14156 | ||
14157 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14158 | echo "$ac_t""yes" 1>&6 | |
14159 | : | |
14160 | else | |
14161 | echo "$ac_t""no" 1>&6 | |
14162 | fi | |
d08b457b | 14163 | |
90dd450c | 14164 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 14165 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
f7f78039 | 14166 | echo "configure:14167: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
14167 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
14168 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14169 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d08b457b | 14170 | else |
a0b9e27f | 14171 | ac_save_LIBS="$LIBS" |
90dd450c | 14172 | LIBS="-lipc $LIBS" |
a0b9e27f | 14173 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 14174 | #line 14175 "configure" |
90dd450c | 14175 | #include "confdefs.h" |
8284b0c5 | 14176 | /* Override any gcc2 internal prototype to avoid an error. */ |
90dd450c | 14177 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14178 | builtin and then its argument prototype would still apply. */ |
14179 | char shmat(); | |
14180 | ||
14181 | int main() { | |
14182 | shmat() | |
14183 | ; return 0; } | |
14184 | EOF | |
f7f78039 | 14185 | if { (eval echo configure:14186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14186 | rm -rf conftest* |
14187 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14188 | else | |
14189 | echo "configure: failed program was:" >&5 | |
14190 | cat conftest.$ac_ext >&5 | |
14191 | rm -rf conftest* | |
14192 | eval "ac_cv_lib_$ac_lib_var=no" | |
14193 | fi | |
14194 | rm -f conftest* | |
14195 | LIBS="$ac_save_LIBS" | |
14196 | ||
14197 | fi | |
14198 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14199 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14200 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
14201 | else |
14202 | echo "$ac_t""no" 1>&6 | |
d08b457b GD |
14203 | fi |
14204 | ||
d558c907 | 14205 | fi |
90dd450c | 14206 | fi |
3a922bb4 | 14207 | |
90dd450c | 14208 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 14209 | ac_save_LDFLAGS="$LDFLAGS" |
90dd450c VZ |
14210 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
14211 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14212 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14213 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14214 | # These have to be linked with before -lX11, unlike the other | |
14215 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
14216 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
14217 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
f7f78039 | 14218 | echo "configure:14219: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
14219 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
14220 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14221 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14222 | else | |
14223 | ac_save_LIBS="$LIBS" | |
f09359cf | 14224 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14225 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 14226 | #line 14227 "configure" |
9cfadba2 | 14227 | #include "confdefs.h" |
90dd450c VZ |
14228 | /* Override any gcc2 internal prototype to avoid an error. */ |
14229 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14230 | builtin and then its argument prototype would still apply. */ |
14231 | char IceConnectionNumber(); | |
14232 | ||
14233 | int main() { | |
14234 | IceConnectionNumber() | |
14235 | ; return 0; } | |
14236 | EOF | |
f7f78039 | 14237 | if { (eval echo configure:14238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14238 | rm -rf conftest* |
14239 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14240 | else | |
14241 | echo "configure: failed program was:" >&5 | |
14242 | cat conftest.$ac_ext >&5 | |
14243 | rm -rf conftest* | |
14244 | eval "ac_cv_lib_$ac_lib_var=no" | |
14245 | fi | |
14246 | rm -f conftest* | |
14247 | LIBS="$ac_save_LIBS" | |
14248 | ||
14249 | fi | |
14250 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14251 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14252 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
14253 | else |
14254 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 14255 | fi |
10f2d63a | 14256 | |
a0b9e27f | 14257 | LDFLAGS="$ac_save_LDFLAGS" |
90dd450c VZ |
14258 | |
14259 | fi | |
14260 | ||
8284b0c5 | 14261 | |
90dd450c | 14262 | if test "$no_x" = "yes"; then |
a0b9e27f | 14263 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
90dd450c VZ |
14264 | fi |
14265 | ||
14266 | GUI_TK_LIBRARY="$X_LIBS" | |
14267 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14268 | AFMINSTALL=afminstall | |
14269 | COMPILED_X_PROGRAM=0 | |
14270 | ||
21d1c967 | 14271 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 14272 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 |
f7f78039 | 14273 | echo "configure:14274: checking for MicroWindows/NanoX distribution" >&5 |
21d1c967 | 14274 | if test "x$MICROWIN" = x ; then |
a0b9e27f MB |
14275 | echo "$ac_t""not found" 1>&6 |
14276 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
90dd450c | 14277 | else |
a0b9e27f MB |
14278 | echo "$ac_t""$MICROWIN" 1>&6 |
14279 | cat >> confdefs.h <<\EOF | |
21d1c967 | 14280 | #define wxUSE_NANOX 1 |
a0b9e27f | 14281 | EOF |
21d1c967 | 14282 | |
90dd450c VZ |
14283 | fi |
14284 | fi | |
14285 | ||
14286 | xpm_link= | |
a0b9e27f | 14287 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
f7f78039 | 14288 | echo "configure:14289: checking for Xpm library" >&5 |
a0b9e27f | 14289 | |
90dd450c | 14290 | ac_find_libraries= |
2b5f62a0 | 14291 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
14292 | do |
14293 | for ac_extension in a so sl dylib; do | |
14294 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14295 | ac_find_libraries=$ac_dir | |
14296 | break 2 | |
14297 | fi | |
14298 | done | |
14299 | done | |
14300 | ||
14301 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 14302 | |
90dd450c VZ |
14303 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14304 | result=$? | |
14305 | if test $result = 0; then | |
14306 | ac_path_to_link="" | |
14307 | else | |
14308 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 14309 | fi |
90dd450c | 14310 | |
21d1c967 GD |
14311 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
14312 | xpm_link=" -lXpm" | |
a0b9e27f | 14313 | cat >> confdefs.h <<\EOF |
21d1c967 | 14314 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14315 | EOF |
90dd450c | 14316 | |
a0b9e27f | 14317 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14318 | else |
a0b9e27f | 14319 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 14320 | #line 14321 "configure" |
21d1c967 | 14321 | #include "confdefs.h" |
90dd450c | 14322 | |
21d1c967 | 14323 | #include <X11/xpm.h> |
a0b9e27f MB |
14324 | |
14325 | int main() { | |
6f72b082 | 14326 | |
21d1c967 GD |
14327 | int version; |
14328 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
14329 | |
14330 | ; return 0; } | |
14331 | EOF | |
f7f78039 | 14332 | if { (eval echo configure:14333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
14333 | rm -rf conftest* |
14334 | ||
21d1c967 | 14335 | xpm_link=" -lXpm" |
a0b9e27f | 14336 | cat >> confdefs.h <<\EOF |
21d1c967 | 14337 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14338 | EOF |
90dd450c | 14339 | |
a0b9e27f | 14340 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 14341 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 14342 | |
21d1c967 | 14343 | else |
a0b9e27f MB |
14344 | echo "configure: failed program was:" >&5 |
14345 | cat conftest.$ac_ext >&5 | |
14346 | rm -rf conftest* | |
14347 | ||
14348 | echo "$ac_t""no" 1>&6 | |
14349 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14350 | ||
14351 | ||
6f72b082 | 14352 | fi |
a0b9e27f | 14353 | rm -f conftest* |
21d1c967 | 14354 | fi |
90dd450c | 14355 | |
f7f78039 MB |
14356 | echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6 |
14357 | echo "configure:14358: checking for XShapeQueryExtension in -lXext" >&5 | |
14358 | ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'` | |
14359 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14360 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14361 | else | |
14362 | ac_save_LIBS="$LIBS" | |
14363 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
14364 | cat > conftest.$ac_ext <<EOF | |
14365 | #line 14366 "configure" | |
14366 | #include "confdefs.h" | |
14367 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14368 | /* We use char because int might match the return type of a gcc2 | |
14369 | builtin and then its argument prototype would still apply. */ | |
14370 | char XShapeQueryExtension(); | |
14371 | ||
14372 | int main() { | |
14373 | XShapeQueryExtension() | |
14374 | ; return 0; } | |
14375 | EOF | |
14376 | if { (eval echo configure:14377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14377 | rm -rf conftest* | |
14378 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14379 | else | |
14380 | echo "configure: failed program was:" >&5 | |
14381 | cat conftest.$ac_ext >&5 | |
14382 | rm -rf conftest* | |
14383 | eval "ac_cv_lib_$ac_lib_var=no" | |
14384 | fi | |
14385 | rm -f conftest* | |
14386 | LIBS="$ac_save_LIBS" | |
14387 | ||
14388 | fi | |
14389 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14390 | echo "$ac_t""yes" 1>&6 | |
14391 | ||
14392 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
14393 | wxHAVE_XEXT_LIB=1 | |
14394 | ||
14395 | else | |
14396 | echo "$ac_t""no" 1>&6 | |
14397 | fi | |
14398 | ||
14399 | ||
2b5f62a0 VZ |
14400 | if test "$wxUSE_UNICODE" = "yes"; then |
14401 | ||
14402 | succeeded=no | |
90dd450c | 14403 | |
2b5f62a0 VZ |
14404 | if test -z "$PKG_CONFIG"; then |
14405 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14406 | set dummy pkg-config; ac_word=$2 | |
14407 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f7f78039 | 14408 | echo "configure:14409: checking for $ac_word" >&5 |
2b5f62a0 | 14409 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
a0b9e27f MB |
14410 | echo $ac_n "(cached) $ac_c" 1>&6 |
14411 | else | |
2b5f62a0 VZ |
14412 | case "$PKG_CONFIG" in |
14413 | /*) | |
14414 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14415 | ;; | |
14416 | ?:/*) | |
14417 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14418 | ;; | |
14419 | *) | |
14420 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14421 | ac_dummy="$PATH" | |
14422 | for ac_dir in $ac_dummy; do | |
14423 | test -z "$ac_dir" && ac_dir=. | |
14424 | if test -f $ac_dir/$ac_word; then | |
14425 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14426 | break | |
14427 | fi | |
14428 | done | |
14429 | IFS="$ac_save_ifs" | |
14430 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14431 | ;; | |
14432 | esac | |
14433 | fi | |
14434 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14435 | if test -n "$PKG_CONFIG"; then | |
14436 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14437 | else | |
14438 | echo "$ac_t""no" 1>&6 | |
14439 | fi | |
14440 | ||
14441 | fi | |
14442 | ||
14443 | if test "$PKG_CONFIG" = "no" ; then | |
14444 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14445 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14446 | echo "*** to the full path to pkg-config." | |
14447 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14448 | else | |
14449 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14450 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14451 | echo $ac_n "checking for pangox""... $ac_c" 1>&6 | |
f7f78039 | 14452 | echo "configure:14453: checking for pangox" >&5 |
2b5f62a0 VZ |
14453 | |
14454 | if $PKG_CONFIG --exists "pangox" ; then | |
14455 | echo "$ac_t""yes" 1>&6 | |
14456 | succeeded=yes | |
14457 | ||
14458 | echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6 | |
f7f78039 | 14459 | echo "configure:14460: checking PANGOX_CFLAGS" >&5 |
2b5f62a0 VZ |
14460 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
14461 | echo "$ac_t""$PANGOX_CFLAGS" 1>&6 | |
14462 | ||
14463 | echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6 | |
f7f78039 | 14464 | echo "configure:14465: checking PANGOX_LIBS" >&5 |
2b5f62a0 VZ |
14465 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
14466 | echo "$ac_t""$PANGOX_LIBS" 1>&6 | |
14467 | else | |
14468 | PANGOX_CFLAGS="" | |
14469 | PANGOX_LIBS="" | |
14470 | ## If we have a custom action on failure, don't print errors, but | |
14471 | ## do set a variable so people can do so. | |
14472 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
14473 | ||
14474 | fi | |
14475 | ||
14476 | ||
14477 | ||
14478 | else | |
14479 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14480 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14481 | fi | |
14482 | fi | |
14483 | ||
14484 | if test $succeeded = yes; then | |
14485 | ||
14486 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
14487 | LIBS="$LIBS $PANGOX_LIBS" | |
14488 | ||
14489 | else | |
14490 | ||
14491 | { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; } | |
14492 | ||
14493 | ||
14494 | fi | |
14495 | ||
14496 | ||
14497 | succeeded=no | |
14498 | ||
14499 | if test -z "$PKG_CONFIG"; then | |
14500 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14501 | set dummy pkg-config; ac_word=$2 | |
14502 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f7f78039 | 14503 | echo "configure:14504: checking for $ac_word" >&5 |
2b5f62a0 VZ |
14504 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
14505 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14506 | else | |
14507 | case "$PKG_CONFIG" in | |
14508 | /*) | |
14509 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14510 | ;; | |
14511 | ?:/*) | |
14512 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14513 | ;; | |
14514 | *) | |
14515 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14516 | ac_dummy="$PATH" | |
14517 | for ac_dir in $ac_dummy; do | |
14518 | test -z "$ac_dir" && ac_dir=. | |
14519 | if test -f $ac_dir/$ac_word; then | |
14520 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14521 | break | |
14522 | fi | |
14523 | done | |
14524 | IFS="$ac_save_ifs" | |
14525 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14526 | ;; | |
14527 | esac | |
14528 | fi | |
14529 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14530 | if test -n "$PKG_CONFIG"; then | |
14531 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14532 | else | |
14533 | echo "$ac_t""no" 1>&6 | |
14534 | fi | |
14535 | ||
14536 | fi | |
14537 | ||
14538 | if test "$PKG_CONFIG" = "no" ; then | |
14539 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14540 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14541 | echo "*** to the full path to pkg-config." | |
14542 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14543 | else | |
14544 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14545 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14546 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 | |
f7f78039 | 14547 | echo "configure:14548: checking for pangoft2" >&5 |
2b5f62a0 VZ |
14548 | |
14549 | if $PKG_CONFIG --exists "pangoft2" ; then | |
14550 | echo "$ac_t""yes" 1>&6 | |
14551 | succeeded=yes | |
14552 | ||
14553 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 | |
f7f78039 | 14554 | echo "configure:14555: checking PANGOFT2_CFLAGS" >&5 |
2b5f62a0 VZ |
14555 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
14556 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 | |
14557 | ||
14558 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 | |
f7f78039 | 14559 | echo "configure:14560: checking PANGOFT2_LIBS" >&5 |
2b5f62a0 VZ |
14560 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
14561 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 | |
14562 | else | |
14563 | PANGOFT2_CFLAGS="" | |
14564 | PANGOFT2_LIBS="" | |
14565 | ## If we have a custom action on failure, don't print errors, but | |
14566 | ## do set a variable so people can do so. | |
14567 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
14568 | ||
14569 | fi | |
14570 | ||
14571 | ||
14572 | ||
14573 | else | |
14574 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14575 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14576 | fi | |
14577 | fi | |
14578 | ||
14579 | if test $succeeded = yes; then | |
14580 | ||
14581 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
14582 | LIBS="$LIBS $PANGOFT2_LIBS" | |
14583 | ||
14584 | else | |
14585 | ||
14586 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
14587 | wxUSE_PRINTING_ARCHITECTURE="no" | |
14588 | ||
14589 | ||
14590 | fi | |
14591 | ||
14592 | ||
14593 | succeeded=no | |
14594 | ||
14595 | if test -z "$PKG_CONFIG"; then | |
14596 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14597 | set dummy pkg-config; ac_word=$2 | |
14598 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f7f78039 | 14599 | echo "configure:14600: checking for $ac_word" >&5 |
2b5f62a0 VZ |
14600 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
14601 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14602 | else | |
14603 | case "$PKG_CONFIG" in | |
14604 | /*) | |
14605 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14606 | ;; | |
14607 | ?:/*) | |
14608 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14609 | ;; | |
14610 | *) | |
14611 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14612 | ac_dummy="$PATH" | |
14613 | for ac_dir in $ac_dummy; do | |
14614 | test -z "$ac_dir" && ac_dir=. | |
14615 | if test -f $ac_dir/$ac_word; then | |
14616 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14617 | break | |
14618 | fi | |
14619 | done | |
14620 | IFS="$ac_save_ifs" | |
14621 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14622 | ;; | |
14623 | esac | |
14624 | fi | |
14625 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14626 | if test -n "$PKG_CONFIG"; then | |
14627 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14628 | else | |
14629 | echo "$ac_t""no" 1>&6 | |
14630 | fi | |
14631 | ||
14632 | fi | |
14633 | ||
14634 | if test "$PKG_CONFIG" = "no" ; then | |
14635 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14636 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14637 | echo "*** to the full path to pkg-config." | |
14638 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14639 | else | |
14640 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14641 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14642 | echo $ac_n "checking for pangoxft""... $ac_c" 1>&6 | |
f7f78039 | 14643 | echo "configure:14644: checking for pangoxft" >&5 |
2b5f62a0 VZ |
14644 | |
14645 | if $PKG_CONFIG --exists "pangoxft" ; then | |
14646 | echo "$ac_t""yes" 1>&6 | |
14647 | succeeded=yes | |
14648 | ||
14649 | echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6 | |
f7f78039 | 14650 | echo "configure:14651: checking PANGOXFT_CFLAGS" >&5 |
2b5f62a0 VZ |
14651 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
14652 | echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6 | |
14653 | ||
14654 | echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6 | |
f7f78039 | 14655 | echo "configure:14656: checking PANGOXFT_LIBS" >&5 |
2b5f62a0 VZ |
14656 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
14657 | echo "$ac_t""$PANGOXFT_LIBS" 1>&6 | |
14658 | else | |
14659 | PANGOXFT_CFLAGS="" | |
14660 | PANGOXFT_LIBS="" | |
14661 | ## If we have a custom action on failure, don't print errors, but | |
14662 | ## do set a variable so people can do so. | |
14663 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
14664 | ||
14665 | fi | |
14666 | ||
14667 | ||
14668 | ||
14669 | else | |
14670 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14671 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14672 | fi | |
14673 | fi | |
14674 | ||
14675 | if test $succeeded = yes; then | |
14676 | ||
14677 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
14678 | LIBS="$LIBS $PANGOXFT_LIBS" | |
14679 | ||
14680 | else | |
14681 | ||
14682 | echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2 | |
14683 | ||
14684 | ||
14685 | fi | |
14686 | ||
14687 | fi | |
14688 | ||
14689 | wxUSE_UNIVERSAL="yes" | |
14690 | ||
14691 | if test "$wxUSE_NANOX" = "yes"; then | |
14692 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
14693 | 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" | |
14694 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
14695 | else | |
14696 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
14697 | fi | |
14698 | ||
14699 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
14700 | TOOLKIT=X11 | |
14701 | GUIDIST=X11_DIST | |
14702 | fi | |
14703 | ||
21d1c967 GD |
14704 | if test "$wxUSE_MOTIF" = 1; then |
14705 | if test "$no_x" = yes; then | |
14706 | # Not all programs may use this symbol, but it does not hurt to define it. | |
a0b9e27f | 14707 | cat >> confdefs.h <<\EOF |
21d1c967 | 14708 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 14709 | EOF |
21d1c967 GD |
14710 | |
14711 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
14712 | else | |
14713 | if test -n "$x_includes"; then | |
14714 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
14715 | fi |
14716 | ||
21d1c967 GD |
14717 | # It would also be nice to do this for all -L options, not just this one. |
14718 | if test -n "$x_libraries"; then | |
14719 | X_LIBS="$X_LIBS -L$x_libraries" | |
14720 | # For Solaris; some versions of Sun CC require a space after -R and | |
14721 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 14722 | case "`(uname -sr) 2>/dev/null`" in |
21d1c967 | 14723 | "SunOS 5"*) |
a0b9e27f | 14724 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
f7f78039 | 14725 | echo "configure:14726: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
14726 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
14727 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 14728 | #line 14729 "configure" |
21d1c967 GD |
14729 | #include "confdefs.h" |
14730 | ||
a0b9e27f | 14731 | int main() { |
21d1c967 | 14732 | |
a0b9e27f MB |
14733 | ; return 0; } |
14734 | EOF | |
f7f78039 | 14735 | if { (eval echo configure:14736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14736 | rm -rf conftest* |
21d1c967 | 14737 | ac_R_nospace=yes |
698dcdb6 | 14738 | else |
a0b9e27f MB |
14739 | echo "configure: failed program was:" >&5 |
14740 | cat conftest.$ac_ext >&5 | |
14741 | rm -rf conftest* | |
14742 | ac_R_nospace=no | |
10f2d63a | 14743 | fi |
a0b9e27f | 14744 | rm -f conftest* |
21d1c967 | 14745 | if test $ac_R_nospace = yes; then |
a0b9e27f | 14746 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
14747 | X_LIBS="$X_LIBS -R$x_libraries" |
14748 | else | |
14749 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 14750 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 14751 | #line 14752 "configure" |
21d1c967 | 14752 | #include "confdefs.h" |
10f2d63a | 14753 | |
a0b9e27f | 14754 | int main() { |
f0c87536 | 14755 | |
a0b9e27f MB |
14756 | ; return 0; } |
14757 | EOF | |
f7f78039 | 14758 | if { (eval echo configure:14759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14759 | rm -rf conftest* |
21d1c967 GD |
14760 | ac_R_space=yes |
14761 | else | |
a0b9e27f MB |
14762 | echo "configure: failed program was:" >&5 |
14763 | cat conftest.$ac_ext >&5 | |
14764 | rm -rf conftest* | |
14765 | ac_R_space=no | |
21d1c967 | 14766 | fi |
a0b9e27f | 14767 | rm -f conftest* |
21d1c967 | 14768 | if test $ac_R_space = yes; then |
a0b9e27f | 14769 | echo "$ac_t""yes" 1>&6 |
21d1c967 GD |
14770 | X_LIBS="$X_LIBS -R $x_libraries" |
14771 | else | |
a0b9e27f | 14772 | echo "$ac_t""neither works" 1>&6 |
21d1c967 GD |
14773 | fi |
14774 | fi | |
a0b9e27f | 14775 | LIBS="$ac_xsave_LIBS" |
21d1c967 GD |
14776 | esac |
14777 | fi | |
90dd450c | 14778 | |
21d1c967 GD |
14779 | # Check for system-dependent libraries X programs must link with. |
14780 | # Do this before checking for the system-independent R6 libraries | |
14781 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
14782 | ||
14783 | if test "$ISC" = yes; then | |
14784 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
14785 | else | |
a0b9e27f MB |
14786 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
14787 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
21d1c967 | 14788 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 14789 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
f7f78039 | 14790 | echo "configure:14791: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
14791 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14792 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14793 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 14794 | else |
a0b9e27f | 14795 | ac_save_LIBS="$LIBS" |
247f5006 | 14796 | LIBS="-ldnet $LIBS" |
a0b9e27f | 14797 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 14798 | #line 14799 "configure" |
247f5006 | 14799 | #include "confdefs.h" |
247f5006 | 14800 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 14801 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14802 | builtin and then its argument prototype would still apply. */ |
14803 | char dnet_ntoa(); | |
14804 | ||
14805 | int main() { | |
14806 | dnet_ntoa() | |
14807 | ; return 0; } | |
14808 | EOF | |
f7f78039 | 14809 | if { (eval echo configure:14810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14810 | rm -rf conftest* |
14811 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14812 | else | |
14813 | echo "configure: failed program was:" >&5 | |
14814 | cat conftest.$ac_ext >&5 | |
14815 | rm -rf conftest* | |
14816 | eval "ac_cv_lib_$ac_lib_var=no" | |
14817 | fi | |
14818 | rm -f conftest* | |
14819 | LIBS="$ac_save_LIBS" | |
14820 | ||
14821 | fi | |
14822 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14823 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14824 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
14825 | else |
14826 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 | 14827 | fi |
0fb0dd83 | 14828 | |
21d1c967 | 14829 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 14830 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
f7f78039 | 14831 | echo "configure:14832: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
14832 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14833 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14834 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14835 | else |
a0b9e27f | 14836 | ac_save_LIBS="$LIBS" |
21d1c967 | 14837 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 14838 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 14839 | #line 14840 "configure" |
21d1c967 GD |
14840 | #include "confdefs.h" |
14841 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14842 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14843 | builtin and then its argument prototype would still apply. */ |
14844 | char dnet_ntoa(); | |
14845 | ||
14846 | int main() { | |
14847 | dnet_ntoa() | |
14848 | ; return 0; } | |
14849 | EOF | |
f7f78039 | 14850 | if { (eval echo configure:14851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14851 | rm -rf conftest* |
14852 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14853 | else | |
14854 | echo "configure: failed program was:" >&5 | |
14855 | cat conftest.$ac_ext >&5 | |
14856 | rm -rf conftest* | |
14857 | eval "ac_cv_lib_$ac_lib_var=no" | |
14858 | fi | |
14859 | rm -f conftest* | |
14860 | LIBS="$ac_save_LIBS" | |
14861 | ||
14862 | fi | |
14863 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14864 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14865 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
14866 | else |
14867 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
14868 | fi |
14869 | ||
21d1c967 | 14870 | fi |
90dd450c | 14871 | |
21d1c967 GD |
14872 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
14873 | # to get the SysV transport functions. | |
a0b9e27f | 14874 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
14875 | # needs -lnsl. |
14876 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
14877 | # on Irix 5.2, according to dickey@clark.net. |
14878 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
f7f78039 | 14879 | echo "configure:14880: checking for gethostbyname" >&5 |
a0b9e27f MB |
14880 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
14881 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14882 | else | |
14883 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 14884 | #line 14885 "configure" |
21d1c967 GD |
14885 | #include "confdefs.h" |
14886 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14887 | which can conflict with char gethostbyname(); below. */ |
21d1c967 GD |
14888 | #include <assert.h> |
14889 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14890 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14891 | builtin and then its argument prototype would still apply. */ |
14892 | char gethostbyname(); | |
14893 | ||
14894 | int main() { | |
14895 | ||
21d1c967 GD |
14896 | /* The GNU C library defines this for functions which it implements |
14897 | to always fail with ENOSYS. Some functions are actually named | |
14898 | something starting with __ and the normal name is an alias. */ | |
14899 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
14900 | choke me | |
14901 | #else | |
a0b9e27f | 14902 | gethostbyname(); |
21d1c967 | 14903 | #endif |
90dd450c | 14904 | |
a0b9e27f MB |
14905 | ; return 0; } |
14906 | EOF | |
f7f78039 | 14907 | if { (eval echo configure:14908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14908 | rm -rf conftest* |
14909 | eval "ac_cv_func_gethostbyname=yes" | |
14910 | else | |
14911 | echo "configure: failed program was:" >&5 | |
14912 | cat conftest.$ac_ext >&5 | |
14913 | rm -rf conftest* | |
14914 | eval "ac_cv_func_gethostbyname=no" | |
14915 | fi | |
14916 | rm -f conftest* | |
14917 | fi | |
14918 | ||
14919 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
14920 | echo "$ac_t""yes" 1>&6 | |
14921 | : | |
14922 | else | |
14923 | echo "$ac_t""no" 1>&6 | |
14924 | fi | |
90dd450c | 14925 | |
21d1c967 | 14926 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 14927 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
f7f78039 | 14928 | echo "configure:14929: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
14929 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
14930 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14931 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14932 | else |
a0b9e27f | 14933 | ac_save_LIBS="$LIBS" |
21d1c967 | 14934 | LIBS="-lnsl $LIBS" |
a0b9e27f | 14935 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 14936 | #line 14937 "configure" |
21d1c967 GD |
14937 | #include "confdefs.h" |
14938 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14939 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14940 | builtin and then its argument prototype would still apply. */ |
14941 | char gethostbyname(); | |
5c6fa7d2 | 14942 | |
a0b9e27f MB |
14943 | int main() { |
14944 | gethostbyname() | |
14945 | ; return 0; } | |
14946 | EOF | |
f7f78039 | 14947 | if { (eval echo configure:14948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14948 | rm -rf conftest* |
14949 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 14950 | else |
a0b9e27f MB |
14951 | echo "configure: failed program was:" >&5 |
14952 | cat conftest.$ac_ext >&5 | |
14953 | rm -rf conftest* | |
14954 | eval "ac_cv_lib_$ac_lib_var=no" | |
14955 | fi | |
14956 | rm -f conftest* | |
14957 | LIBS="$ac_save_LIBS" | |
247f5006 | 14958 | |
a0b9e27f MB |
14959 | fi |
14960 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14961 | echo "$ac_t""yes" 1>&6 | |
14962 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
14963 | else | |
14964 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 14965 | fi |
90dd450c | 14966 | |
90dd450c VZ |
14967 | fi |
14968 | ||
21d1c967 GD |
14969 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
14970 | # socket/setsockopt and other routines are undefined under SCO ODT | |
14971 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
14972 | # on later versions), says simon@lia.di.epfl.ch: it contains |
14973 | # gethostby* variants that don't use the nameserver (or something). | |
14974 | # -lsocket must be given before -lnsl if both are needed. | |
14975 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
14976 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
f7f78039 | 14977 | echo "configure:14978: checking for connect" >&5 |
a0b9e27f MB |
14978 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
14979 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14980 | else | |
14981 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 14982 | #line 14983 "configure" |
21d1c967 GD |
14983 | #include "confdefs.h" |
14984 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14985 | which can conflict with char connect(); below. */ |
21d1c967 GD |
14986 | #include <assert.h> |
14987 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14988 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14989 | builtin and then its argument prototype would still apply. */ |
14990 | char connect(); | |
14991 | ||
14992 | int main() { | |
14993 | ||
21d1c967 GD |
14994 | /* The GNU C library defines this for functions which it implements |
14995 | to always fail with ENOSYS. Some functions are actually named | |
14996 | something starting with __ and the normal name is an alias. */ | |
14997 | #if defined (__stub_connect) || defined (__stub___connect) | |
14998 | choke me | |
14999 | #else | |
a0b9e27f | 15000 | connect(); |
21d1c967 | 15001 | #endif |
90dd450c | 15002 | |
a0b9e27f MB |
15003 | ; return 0; } |
15004 | EOF | |
f7f78039 | 15005 | if { (eval echo configure:15006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15006 | rm -rf conftest* |
15007 | eval "ac_cv_func_connect=yes" | |
15008 | else | |
15009 | echo "configure: failed program was:" >&5 | |
15010 | cat conftest.$ac_ext >&5 | |
15011 | rm -rf conftest* | |
15012 | eval "ac_cv_func_connect=no" | |
15013 | fi | |
15014 | rm -f conftest* | |
15015 | fi | |
15016 | ||
15017 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
15018 | echo "$ac_t""yes" 1>&6 | |
15019 | : | |
15020 | else | |
15021 | echo "$ac_t""no" 1>&6 | |
15022 | fi | |
1f8ae82f | 15023 | |
21d1c967 | 15024 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 15025 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
f7f78039 | 15026 | echo "configure:15027: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
15027 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
15028 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15029 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0fbb762e | 15030 | else |
a0b9e27f | 15031 | ac_save_LIBS="$LIBS" |
21d1c967 | 15032 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 15033 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 15034 | #line 15035 "configure" |
0fbb762e | 15035 | #include "confdefs.h" |
21d1c967 GD |
15036 | /* Override any gcc2 internal prototype to avoid an error. */ |
15037 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15038 | builtin and then its argument prototype would still apply. */ |
15039 | char connect(); | |
15040 | ||
15041 | int main() { | |
15042 | connect() | |
15043 | ; return 0; } | |
15044 | EOF | |
f7f78039 | 15045 | if { (eval echo configure:15046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15046 | rm -rf conftest* |
15047 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15048 | else | |
15049 | echo "configure: failed program was:" >&5 | |
15050 | cat conftest.$ac_ext >&5 | |
15051 | rm -rf conftest* | |
15052 | eval "ac_cv_lib_$ac_lib_var=no" | |
15053 | fi | |
15054 | rm -f conftest* | |
15055 | LIBS="$ac_save_LIBS" | |
15056 | ||
15057 | fi | |
15058 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15059 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15060 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
15061 | else |
15062 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15063 | fi |
90dd450c | 15064 | |
21d1c967 | 15065 | fi |
90dd450c | 15066 | |
a0b9e27f MB |
15067 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
15068 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
f7f78039 | 15069 | echo "configure:15070: checking for remove" >&5 |
a0b9e27f MB |
15070 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
15071 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15072 | else |
a0b9e27f | 15073 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 15074 | #line 15075 "configure" |
21d1c967 GD |
15075 | #include "confdefs.h" |
15076 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15077 | which can conflict with char remove(); below. */ |
21d1c967 GD |
15078 | #include <assert.h> |
15079 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15080 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15081 | builtin and then its argument prototype would still apply. */ |
15082 | char remove(); | |
15083 | ||
15084 | int main() { | |
15085 | ||
21d1c967 GD |
15086 | /* The GNU C library defines this for functions which it implements |
15087 | to always fail with ENOSYS. Some functions are actually named | |
15088 | something starting with __ and the normal name is an alias. */ | |
15089 | #if defined (__stub_remove) || defined (__stub___remove) | |
15090 | choke me | |
15091 | #else | |
a0b9e27f | 15092 | remove(); |
21d1c967 | 15093 | #endif |
90dd450c | 15094 | |
a0b9e27f MB |
15095 | ; return 0; } |
15096 | EOF | |
f7f78039 | 15097 | if { (eval echo configure:15098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15098 | rm -rf conftest* |
15099 | eval "ac_cv_func_remove=yes" | |
15100 | else | |
15101 | echo "configure: failed program was:" >&5 | |
15102 | cat conftest.$ac_ext >&5 | |
15103 | rm -rf conftest* | |
15104 | eval "ac_cv_func_remove=no" | |
15105 | fi | |
15106 | rm -f conftest* | |
15107 | fi | |
15108 | ||
15109 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
15110 | echo "$ac_t""yes" 1>&6 | |
15111 | : | |
15112 | else | |
15113 | echo "$ac_t""no" 1>&6 | |
15114 | fi | |
90dd450c | 15115 | |
21d1c967 | 15116 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 15117 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
f7f78039 | 15118 | echo "configure:15119: checking for remove in -lposix" >&5 |
a0b9e27f MB |
15119 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
15120 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15121 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15122 | else |
a0b9e27f | 15123 | ac_save_LIBS="$LIBS" |
21d1c967 | 15124 | LIBS="-lposix $LIBS" |
a0b9e27f | 15125 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 15126 | #line 15127 "configure" |
21d1c967 GD |
15127 | #include "confdefs.h" |
15128 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15129 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15130 | builtin and then its argument prototype would still apply. */ |
15131 | char remove(); | |
15132 | ||
15133 | int main() { | |
15134 | remove() | |
15135 | ; return 0; } | |
15136 | EOF | |
f7f78039 | 15137 | if { (eval echo configure:15138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15138 | rm -rf conftest* |
15139 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15140 | else | |
15141 | echo "configure: failed program was:" >&5 | |
15142 | cat conftest.$ac_ext >&5 | |
15143 | rm -rf conftest* | |
15144 | eval "ac_cv_lib_$ac_lib_var=no" | |
15145 | fi | |
15146 | rm -f conftest* | |
15147 | LIBS="$ac_save_LIBS" | |
15148 | ||
15149 | fi | |
15150 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15151 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15152 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
15153 | else |
15154 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15155 | fi |
19bc6aad | 15156 | |
90dd450c | 15157 | fi |
19bc6aad | 15158 | |
21d1c967 | 15159 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 15160 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
f7f78039 | 15161 | echo "configure:15162: checking for shmat" >&5 |
a0b9e27f MB |
15162 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
15163 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15164 | else |
a0b9e27f | 15165 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 15166 | #line 15167 "configure" |
21d1c967 GD |
15167 | #include "confdefs.h" |
15168 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15169 | which can conflict with char shmat(); below. */ |
21d1c967 GD |
15170 | #include <assert.h> |
15171 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15172 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15173 | builtin and then its argument prototype would still apply. */ |
15174 | char shmat(); | |
15175 | ||
15176 | int main() { | |
15177 | ||
21d1c967 GD |
15178 | /* The GNU C library defines this for functions which it implements |
15179 | to always fail with ENOSYS. Some functions are actually named | |
15180 | something starting with __ and the normal name is an alias. */ | |
15181 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
15182 | choke me | |
15183 | #else | |
a0b9e27f | 15184 | shmat(); |
21d1c967 | 15185 | #endif |
90dd450c | 15186 | |
a0b9e27f MB |
15187 | ; return 0; } |
15188 | EOF | |
f7f78039 | 15189 | if { (eval echo configure:15190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15190 | rm -rf conftest* |
15191 | eval "ac_cv_func_shmat=yes" | |
15192 | else | |
15193 | echo "configure: failed program was:" >&5 | |
15194 | cat conftest.$ac_ext >&5 | |
15195 | rm -rf conftest* | |
15196 | eval "ac_cv_func_shmat=no" | |
15197 | fi | |
15198 | rm -f conftest* | |
15199 | fi | |
15200 | ||
15201 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
15202 | echo "$ac_t""yes" 1>&6 | |
15203 | : | |
15204 | else | |
15205 | echo "$ac_t""no" 1>&6 | |
15206 | fi | |
19bc6aad | 15207 | |
21d1c967 | 15208 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 15209 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
f7f78039 | 15210 | echo "configure:15211: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
15211 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
15212 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15213 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 | 15214 | else |
a0b9e27f | 15215 | ac_save_LIBS="$LIBS" |
5c6fa7d2 | 15216 | LIBS="-lipc $LIBS" |
a0b9e27f | 15217 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 15218 | #line 15219 "configure" |
5c6fa7d2 | 15219 | #include "confdefs.h" |
5c6fa7d2 | 15220 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 15221 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
15222 | builtin and then its argument prototype would still apply. */ |
15223 | char shmat(); | |
15224 | ||
15225 | int main() { | |
15226 | shmat() | |
15227 | ; return 0; } | |
15228 | EOF | |
f7f78039 | 15229 | if { (eval echo configure:15230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15230 | rm -rf conftest* |
15231 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15232 | else | |
15233 | echo "configure: failed program was:" >&5 | |
15234 | cat conftest.$ac_ext >&5 | |
15235 | rm -rf conftest* | |
15236 | eval "ac_cv_lib_$ac_lib_var=no" | |
15237 | fi | |
15238 | rm -f conftest* | |
15239 | LIBS="$ac_save_LIBS" | |
15240 | ||
15241 | fi | |
15242 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15243 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15244 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
15245 | else |
15246 | echo "$ac_t""no" 1>&6 | |
9f8148b1 | 15247 | fi |
90dd450c | 15248 | |
90dd450c | 15249 | fi |
21d1c967 | 15250 | fi |
10f2d63a | 15251 | |
21d1c967 | 15252 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 15253 | ac_save_LDFLAGS="$LDFLAGS" |
21d1c967 GD |
15254 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
15255 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
15256 | # check for ICE first), but we must link in the order -lSM -lICE or | |
15257 | # we get undefined symbols. So assume we have SM if we have ICE. | |
15258 | # These have to be linked with before -lX11, unlike the other | |
15259 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
15260 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
15261 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
f7f78039 | 15262 | echo "configure:15263: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
15263 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
15264 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15265 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15266 | else | |
15267 | ac_save_LIBS="$LIBS" | |
f09359cf | 15268 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 15269 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 15270 | #line 15271 "configure" |
29fd3c0c | 15271 | #include "confdefs.h" |
21d1c967 GD |
15272 | /* Override any gcc2 internal prototype to avoid an error. */ |
15273 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15274 | builtin and then its argument prototype would still apply. */ |
15275 | char IceConnectionNumber(); | |
15276 | ||
15277 | int main() { | |
15278 | IceConnectionNumber() | |
15279 | ; return 0; } | |
15280 | EOF | |
f7f78039 | 15281 | if { (eval echo configure:15282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15282 | rm -rf conftest* |
15283 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15284 | else | |
15285 | echo "configure: failed program was:" >&5 | |
15286 | cat conftest.$ac_ext >&5 | |
15287 | rm -rf conftest* | |
15288 | eval "ac_cv_lib_$ac_lib_var=no" | |
15289 | fi | |
15290 | rm -f conftest* | |
15291 | LIBS="$ac_save_LIBS" | |
15292 | ||
15293 | fi | |
15294 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15295 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15296 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
15297 | else |
15298 | echo "$ac_t""no" 1>&6 | |
29fd3c0c | 15299 | fi |
21d1c967 | 15300 | |
a0b9e27f | 15301 | LDFLAGS="$ac_save_LDFLAGS" |
29fd3c0c | 15302 | |
10f2d63a VZ |
15303 | fi |
15304 | ||
8284b0c5 | 15305 | |
21d1c967 | 15306 | if test "$no_x" = "yes"; then |
a0b9e27f | 15307 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
21d1c967 GD |
15308 | fi |
15309 | ||
2b5f62a0 VZ |
15310 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
15311 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
15312 | AFMINSTALL=afminstall |
15313 | COMPILED_X_PROGRAM=0 | |
15314 | ||
a0b9e27f | 15315 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
f7f78039 | 15316 | echo "configure:15317: checking for Motif/Lesstif headers" >&5 |
a0b9e27f | 15317 | |
21d1c967 | 15318 | ac_find_includes= |
2b5f62a0 | 15319 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
15320 | do |
15321 | if test -f "$ac_dir/Xm/Xm.h"; then | |
15322 | ac_find_includes=$ac_dir | |
15323 | break | |
15324 | fi | |
15325 | done | |
15326 | ||
15327 | if test "$ac_find_includes" != "" ; then | |
a0b9e27f MB |
15328 | echo "$ac_t""found in $ac_find_includes" 1>&6 |
15329 | ||
2b5f62a0 | 15330 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
15331 | ac_path_to_include="" |
15332 | else | |
2b5f62a0 VZ |
15333 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
15334 | result=$? | |
15335 | if test $result = 0; then | |
15336 | ac_path_to_include="" | |
15337 | else | |
15338 | ac_path_to_include=" -I$ac_find_includes" | |
15339 | fi | |
dd0e4a90 VZ |
15340 | fi |
15341 | ||
15342 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 15343 | else |
a0b9e27f | 15344 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 15345 | #line 15346 "configure" |
10f2d63a | 15346 | #include "confdefs.h" |
21d1c967 GD |
15347 | |
15348 | #include <Xm/Xm.h> | |
a0b9e27f MB |
15349 | |
15350 | int main() { | |
21d1c967 GD |
15351 | |
15352 | int version; | |
15353 | version = xmUseVersion; | |
a0b9e27f MB |
15354 | |
15355 | ; return 0; } | |
15356 | EOF | |
f7f78039 | 15357 | if { (eval echo configure:15358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15358 | rm -rf conftest* |
15359 | ||
15360 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 15361 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 15362 | |
10f2d63a | 15363 | else |
a0b9e27f MB |
15364 | echo "configure: failed program was:" >&5 |
15365 | cat conftest.$ac_ext >&5 | |
15366 | rm -rf conftest* | |
15367 | ||
15368 | echo "$ac_t""no" 1>&6 | |
15369 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
15370 | ||
15371 | ||
10f2d63a | 15372 | fi |
a0b9e27f | 15373 | rm -f conftest* |
21d1c967 | 15374 | fi |
10f2d63a | 15375 | |
21d1c967 | 15376 | if test "$COMPILED_X_PROGRAM" = 0; then |
a0b9e27f | 15377 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 |
f7f78039 | 15378 | echo "configure:15379: checking for Motif/Lesstif library" >&5 |
a0b9e27f | 15379 | |
21d1c967 | 15380 | ac_find_libraries= |
2b5f62a0 | 15381 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15382 | do |
15383 | for ac_extension in a so sl dylib; do | |
15384 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
15385 | ac_find_libraries=$ac_dir | |
15386 | break 2 | |
15387 | fi | |
15388 | done | |
15389 | done | |
15390 | ||
15391 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15392 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15393 | |
a0b9e27f | 15394 | |
21d1c967 GD |
15395 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15396 | result=$? | |
15397 | if test $result = 0; then | |
15398 | ac_path_to_link="" | |
15399 | else | |
15400 | ac_path_to_link=" -L$ac_find_libraries" | |
15401 | fi | |
15402 | ||
21d1c967 | 15403 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 15404 | else |
dd0e4a90 VZ |
15405 | save_CFLAGS=$CFLAGS |
15406 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15407 | ||
a0b9e27f | 15408 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 15409 | #line 15410 "configure" |
d836ee96 | 15410 | #include "confdefs.h" |
21d1c967 GD |
15411 | |
15412 | #include <Xm/Xm.h> | |
a0b9e27f MB |
15413 | |
15414 | int main() { | |
21d1c967 GD |
15415 | |
15416 | int version; | |
15417 | version = xmUseVersion; | |
a0b9e27f MB |
15418 | |
15419 | ; return 0; } | |
15420 | EOF | |
f7f78039 | 15421 | if { (eval echo configure:15422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15422 | rm -rf conftest* |
15423 | ||
15424 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 15425 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 15426 | |
d836ee96 | 15427 | else |
a0b9e27f MB |
15428 | echo "configure: failed program was:" >&5 |
15429 | cat conftest.$ac_ext >&5 | |
15430 | rm -rf conftest* | |
15431 | ||
15432 | echo "$ac_t""no" 1>&6 | |
15433 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
15434 | ||
15435 | ||
d836ee96 | 15436 | fi |
a0b9e27f | 15437 | rm -f conftest* |
dd0e4a90 VZ |
15438 | |
15439 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15440 | fi |
15441 | fi | |
15442 | ||
15443 | xpm_link= | |
a0b9e27f | 15444 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
f7f78039 | 15445 | echo "configure:15446: checking for Xpm library" >&5 |
a0b9e27f | 15446 | |
21d1c967 | 15447 | ac_find_libraries= |
2b5f62a0 | 15448 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15449 | do |
15450 | for ac_extension in a so sl dylib; do | |
15451 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
15452 | ac_find_libraries=$ac_dir | |
15453 | break 2 | |
15454 | fi | |
15455 | done | |
15456 | done | |
15457 | ||
15458 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15459 | |
21d1c967 GD |
15460 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15461 | result=$? | |
15462 | if test $result = 0; then | |
15463 | ac_path_to_link="" | |
15464 | else | |
15465 | ac_path_to_link=" -L$ac_find_libraries" | |
15466 | fi | |
15467 | ||
15468 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 15469 | |
21d1c967 | 15470 | xpm_link=" -lXpm" |
a0b9e27f | 15471 | cat >> confdefs.h <<\EOF |
21d1c967 | 15472 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15473 | EOF |
90dd450c | 15474 | |
a0b9e27f | 15475 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15476 | else |
dd0e4a90 VZ |
15477 | save_CFLAGS=$CFLAGS |
15478 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15479 | ||
a0b9e27f | 15480 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 15481 | #line 15482 "configure" |
d836ee96 | 15482 | #include "confdefs.h" |
21d1c967 GD |
15483 | |
15484 | #include <X11/xpm.h> | |
a0b9e27f MB |
15485 | |
15486 | int main() { | |
21d1c967 GD |
15487 | |
15488 | int version; | |
15489 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
15490 | |
15491 | ; return 0; } | |
15492 | EOF | |
f7f78039 | 15493 | if { (eval echo configure:15494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15494 | rm -rf conftest* |
15495 | ||
21d1c967 | 15496 | xpm_link=" -lXpm" |
a0b9e27f | 15497 | cat >> confdefs.h <<\EOF |
21d1c967 | 15498 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15499 | EOF |
21d1c967 | 15500 | |
a0b9e27f | 15501 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 15502 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 15503 | |
d836ee96 | 15504 | else |
a0b9e27f MB |
15505 | echo "configure: failed program was:" >&5 |
15506 | cat conftest.$ac_ext >&5 | |
15507 | rm -rf conftest* | |
15508 | ||
15509 | echo "$ac_t""no" 1>&6 | |
15510 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
15511 | ||
15512 | ||
d836ee96 | 15513 | fi |
a0b9e27f | 15514 | rm -f conftest* |
dd0e4a90 VZ |
15515 | |
15516 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15517 | fi |
15518 | ||
a0b9e27f | 15519 | echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6 |
f7f78039 | 15520 | echo "configure:15521: checking if we need -lXp and/or -lSM -lICE" >&5 |
6a30f1c8 MB |
15521 | libp_link="" |
15522 | libsm_ice_link="" | |
15523 | libs_found=0 | |
15524 | for libp in "" " -lXp"; do | |
15525 | if test "$libs_found" = "0"; then | |
15526 | for libsm_ice in " -lSM -lICE"; do | |
e26c13cf | 15527 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
15528 | save_LIBS="$LIBS" |
15529 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
15530 | save_CFLAGS=$CFLAGS |
15531 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15532 | ||
a0b9e27f | 15533 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 15534 | #line 15535 "configure" |
6a30f1c8 | 15535 | #include "confdefs.h" |
17234b26 | 15536 | |
6a30f1c8 MB |
15537 | #include <Xm/Xm.h> |
15538 | #include <Xm/List.h> | |
a0b9e27f MB |
15539 | |
15540 | int main() { | |
6a30f1c8 MB |
15541 | |
15542 | XmString string = NULL; | |
15543 | Widget w = NULL; | |
15544 | int position = 0; | |
15545 | XmListAddItem(w, string, position); | |
a0b9e27f MB |
15546 | |
15547 | ; return 0; } | |
15548 | EOF | |
f7f78039 | 15549 | if { (eval echo configure:15550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15550 | rm -rf conftest* |
15551 | ||
6a30f1c8 MB |
15552 | libp_link="$libp" |
15553 | libsm_ice_link="$libsm_ice" | |
a0b9e27f | 15554 | echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6 |
6a30f1c8 | 15555 | libs_found=1 |
a0b9e27f | 15556 | |
6a30f1c8 | 15557 | else |
a0b9e27f MB |
15558 | echo "configure: failed program was:" >&5 |
15559 | cat conftest.$ac_ext >&5 | |
15560 | rm -rf conftest* | |
15561 | ||
15562 | ||
6a30f1c8 | 15563 | fi |
a0b9e27f | 15564 | rm -f conftest* |
dd0e4a90 | 15565 | |
6a30f1c8 | 15566 | LIBS="$save_LIBS" |
dd0e4a90 | 15567 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
15568 | fi |
15569 | done | |
15570 | fi | |
15571 | done | |
15572 | ||
15573 | if test "$libs_found" = "0"; then | |
a0b9e27f MB |
15574 | echo "$ac_t""can't find the right libraries" 1>&6 |
15575 | { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; } | |
6a30f1c8 MB |
15576 | fi |
15577 | ||
da494b40 MB |
15578 | save_CFLAGS=$CFLAGS |
15579 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15580 | echo $ac_n "checking for Motif 2""... $ac_c" 1>&6 | |
f7f78039 | 15581 | echo "configure:15582: checking for Motif 2" >&5 |
da494b40 | 15582 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 15583 | #line 15584 "configure" |
da494b40 MB |
15584 | #include "confdefs.h" |
15585 | ||
15586 | #include <Xm/Xm.h> | |
15587 | ||
15588 | int main() { | |
15589 | ||
15590 | #if XmVersion < 2000 | |
15591 | #error "Not Motif 2" | |
15592 | #endif | |
15593 | ||
15594 | ; return 0; } | |
15595 | EOF | |
f7f78039 | 15596 | if { (eval echo configure:15597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
da494b40 MB |
15597 | rm -rf conftest* |
15598 | ||
15599 | cat >> confdefs.h <<\EOF | |
15600 | #define __WXMOTIF20__ 1 | |
15601 | EOF | |
15602 | ||
15603 | echo "$ac_t""found" 1>&6 | |
15604 | ||
15605 | else | |
15606 | echo "configure: failed program was:" >&5 | |
15607 | cat conftest.$ac_ext >&5 | |
15608 | rm -rf conftest* | |
15609 | ||
15610 | cat >> confdefs.h <<\EOF | |
15611 | #define __WXMOTIF20__ 0 | |
15612 | EOF | |
15613 | ||
15614 | echo "$ac_t""not found" 1>&6 | |
15615 | ||
15616 | fi | |
15617 | rm -f conftest* | |
15618 | CFLAGS=$save_CFLAGS | |
15619 | ||
6a30f1c8 | 15620 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
69c44812 | 15621 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" |
21d1c967 GD |
15622 | TOOLKIT=MOTIF |
15623 | GUIDIST=MOTIF_DIST | |
f7f78039 MB |
15624 | wxHAVE_XEXT_LIB=1 |
15625 | fi | |
15626 | ||
15627 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 && | |
15628 | test "$wxHAVE_XEXT_LIB" = 1; then | |
15629 | save_CFLAGS="$CFLAGS" | |
15630 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15631 | ||
15632 | echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6 | |
15633 | echo "configure:15634: checking for X11/extensions/shape.h" >&5 | |
15634 | cat > conftest.$ac_ext <<EOF | |
15635 | #line 15636 "configure" | |
15636 | #include "confdefs.h" | |
15637 | ||
15638 | #include <X11/Xlib.h> | |
15639 | #include <X11/extensions/shape.h> | |
15640 | ||
15641 | int main() { | |
15642 | ||
15643 | int dummy1, dummy2; | |
15644 | XShapeQueryExtension((Display*)NULL, | |
15645 | (int*)NULL, (int*)NULL); | |
15646 | ||
15647 | ; return 0; } | |
15648 | EOF | |
15649 | if { (eval echo configure:15650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15650 | rm -rf conftest* | |
15651 | ||
15652 | cat >> confdefs.h <<\EOF | |
15653 | #define HAVE_XSHAPE 1 | |
15654 | EOF | |
15655 | ||
15656 | echo "$ac_t""found" 1>&6 | |
15657 | ||
15658 | else | |
15659 | echo "configure: failed program was:" >&5 | |
15660 | cat conftest.$ac_ext >&5 | |
15661 | rm -rf conftest* | |
15662 | ||
15663 | echo "$ac_t""not found" 1>&6 | |
15664 | ||
15665 | fi | |
15666 | rm -f conftest* | |
15667 | CFLAGS="$save_CFLAGS" | |
21d1c967 GD |
15668 | fi |
15669 | ||
15670 | if test "$wxUSE_MAC" = 1; then | |
0c98a14e | 15671 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" |
21d1c967 | 15672 | |
0c98a14e | 15673 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
15674 | TOOLKIT=MAC |
15675 | GUIDIST=MACX_DIST | |
15676 | fi | |
15677 | ||
ac0c4cc3 DE |
15678 | if test "$wxUSE_COCOA" = 1; then |
15679 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
15680 | TOOLKIT=COCOA | |
15681 | GUIDIST=COCOA_DIST | |
15682 | fi | |
15683 | ||
21d1c967 GD |
15684 | if test "$wxUSE_PM" = 1; then |
15685 | TOOLKIT=PM | |
15686 | GUIDIST=GTK_DIST | |
2b5f62a0 | 15687 | echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2 |
f657dbe7 | 15688 | wxUSE_THREADS="no" |
21d1c967 GD |
15689 | fi |
15690 | ||
15691 | if test "$TOOLKIT" = "PM" ; then | |
15692 | TOOLKIT_DIR="os2" | |
15693 | else | |
15694 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
15695 | fi | |
15696 | ||
15697 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
15698 | ||
15699 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
15700 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
15701 | ||
15702 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
15703 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
15704 | ||
15705 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
15706 | if test "$wxUSE_X11" = 1; then | |
15707 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
15708 | else | |
15709 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
15710 | fi | |
15711 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
15712 | WIDGET_SET=univ | |
15713 | else | |
15714 | ALL_OBJECTS="\$(GUIOBJS)" | |
15715 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15716 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15717 | fi | |
15718 | ||
15719 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
15720 | ||
15721 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
15722 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
15723 | fi | |
15724 | ||
15725 | if test "$wxUSE_HTML" = "yes"; then | |
15726 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
15727 | fi | |
15728 | ||
15729 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
15730 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
15731 | fi | |
15732 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
15733 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
15734 | fi | |
15735 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
15736 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
15737 | fi | |
15738 | ||
15739 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
15740 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 15741 | else |
21d1c967 GD |
15742 | USE_GUI=0 |
15743 | ||
15744 | TOOLKIT_DIR="base" | |
15745 | ||
15746 | if test "$USE_WIN32" = 1 ; then | |
15747 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
15748 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
15749 | ||
15750 | TOOLKIT="MSW" | |
15751 | else | |
15752 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
15753 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
15754 | fi | |
15755 | ||
15756 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15757 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15758 | ||
15759 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
15760 | ||
15761 | GUIDIST="BASE_DIST" | |
15762 | DISTDIR="wxBase" | |
d836ee96 VZ |
15763 | fi |
15764 | ||
8284b0c5 | 15765 | |
21d1c967 GD |
15766 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
15767 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
6232543b | 15768 | fi |
21d1c967 GD |
15769 | |
15770 | if test "$wxUSE_REGEX" = "builtin" ; then | |
15771 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 15772 | fi |
21d1c967 GD |
15773 | if test "$wxUSE_ZLIB" = "builtin" ; then |
15774 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
15775 | fi |
15776 | ||
8284b0c5 | 15777 | |
21d1c967 | 15778 | if test "$wxUSE_OPENGL" = "yes"; then |
ac0c4cc3 | 15779 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
21d1c967 GD |
15780 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
15781 | elif test "$wxUSE_MSW" = 1; then | |
15782 | OPENGL_LIBS="-lopengl32 -lglu32" | |
15783 | else | |
a0b9e27f MB |
15784 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
15785 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
f7f78039 | 15786 | echo "configure:15787: checking for GL/gl.h" >&5 |
a0b9e27f MB |
15787 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15788 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15789 | else | |
15790 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 15791 | #line 15792 "configure" |
10f2d63a | 15792 | #include "confdefs.h" |
21d1c967 | 15793 | #include <GL/gl.h> |
a0b9e27f MB |
15794 | EOF |
15795 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f7f78039 | 15796 | { (eval echo configure:15797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
15797 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15798 | if test -z "$ac_err"; then | |
15799 | rm -rf conftest* | |
15800 | eval "ac_cv_header_$ac_safe=yes" | |
15801 | else | |
15802 | echo "$ac_err" >&5 | |
15803 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 15804 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
15805 | rm -rf conftest* |
15806 | eval "ac_cv_header_$ac_safe=no" | |
703e0a69 | 15807 | fi |
a0b9e27f | 15808 | rm -f conftest* |
698dcdb6 | 15809 | fi |
a0b9e27f MB |
15810 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15811 | echo "$ac_t""yes" 1>&6 | |
15812 | ||
15813 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
f7f78039 | 15814 | echo "configure:15815: checking for -lGL" >&5 |
a0b9e27f | 15815 | |
21d1c967 | 15816 | ac_find_libraries= |
2b5f62a0 | 15817 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15818 | do |
15819 | for ac_extension in a so sl dylib; do | |
15820 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
15821 | ac_find_libraries=$ac_dir | |
15822 | break 2 | |
15823 | fi | |
15824 | done | |
15825 | done | |
15826 | ||
15827 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15828 | |
21d1c967 GD |
15829 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15830 | result=$? | |
15831 | if test $result = 0; then | |
15832 | ac_path_to_link="" | |
15833 | else | |
15834 | ac_path_to_link=" -L$ac_find_libraries" | |
15835 | fi | |
15836 | ||
15837 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
15838 | LDFLAGS_GL="$LDFLAGS" | |
15839 | else | |
15840 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15841 | fi | |
15842 | OPENGL_LIBS="-lGL -lGLU" | |
a0b9e27f | 15843 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 15844 | else |
a0b9e27f MB |
15845 | echo "$ac_t""no" 1>&6 |
15846 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
f7f78039 | 15847 | echo "configure:15848: checking for -lMesaGL" >&5 |
a0b9e27f | 15848 | |
21d1c967 | 15849 | ac_find_libraries= |
2b5f62a0 | 15850 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15851 | do |
15852 | for ac_extension in a so sl dylib; do | |
15853 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
15854 | ac_find_libraries=$ac_dir | |
15855 | break 2 | |
15856 | fi | |
15857 | done | |
15858 | done | |
15859 | ||
15860 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15861 | |
21d1c967 GD |
15862 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15863 | result=$? | |
15864 | if test $result = 0; then | |
15865 | ac_path_to_link="" | |
15866 | else | |
15867 | ac_path_to_link=" -L$ac_find_libraries" | |
15868 | fi | |
15869 | ||
15870 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15871 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
a0b9e27f | 15872 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 15873 | else |
a0b9e27f | 15874 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
15875 | fi |
15876 | fi | |
a0b9e27f MB |
15877 | |
15878 | else | |
15879 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 15880 | fi |
52127426 | 15881 | |
8284b0c5 | 15882 | |
21d1c967 | 15883 | if test "x$OPENGL_LIBS" = "x"; then |
a0b9e27f | 15884 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } |
21d1c967 GD |
15885 | fi |
15886 | fi | |
90dd450c | 15887 | |
21d1c967 | 15888 | if test "$wxUSE_OPENGL" = "yes"; then |
a0b9e27f | 15889 | cat >> confdefs.h <<\EOF |
21d1c967 | 15890 | #define wxUSE_OPENGL 1 |
a0b9e27f | 15891 | EOF |
21d1c967 | 15892 | |
a0b9e27f | 15893 | cat >> confdefs.h <<\EOF |
21d1c967 | 15894 | #define wxUSE_GLCANVAS 1 |
a0b9e27f | 15895 | EOF |
21d1c967 GD |
15896 | |
15897 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
15898 | fi | |
10f2d63a | 15899 | fi |
21d1c967 GD |
15900 | |
15901 | if test -z "$TOOLKIT_VPATH" ; then | |
15902 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 15903 | fi |
21d1c967 GD |
15904 | |
15905 | if test -n "$TOOLKIT" ; then | |
15906 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
15907 | fi | |
15908 | ||
15909 | lib_unicode_suffix= | |
15910 | if test "$wxUSE_UNICODE" = "yes"; then | |
15911 | lib_unicode_suffix=u | |
90dd450c | 15912 | fi |
698dcdb6 | 15913 | |
21d1c967 GD |
15914 | lib_debug_suffix= |
15915 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
15916 | lib_debug_suffix=d | |
15917 | fi | |
698dcdb6 | 15918 | |
2b5f62a0 VZ |
15919 | WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
15920 | ||
15921 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
15922 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
15923 | |
15924 | if test "$cross_compiling" = "yes"; then | |
15925 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
15926 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
15927 | fi | |
15928 | ||
15929 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
15930 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
2b5f62a0 | 15931 | WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" |
21d1c967 GD |
15932 | |
15933 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
15934 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
15935 | ||
15936 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
15937 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15938 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
15939 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15940 | ||
15941 | case "${host}" in | |
15942 | *-*-cygwin* | *-*-mingw32* ) | |
15943 | ||
a0b9e27f MB |
15944 | |
15945 | ||
17234b26 | 15946 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
15947 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
15948 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
15949 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
15950 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15951 | else | |
15952 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15953 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15954 | fi | |
15955 | ;; | |
15956 | ||
15957 | *-*-darwin* ) | |
1542ea39 | 15958 | |
05159a27 GD |
15959 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
15960 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
15961 | ||
15962 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
15963 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15964 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
15965 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15966 | ||
21d1c967 | 15967 | if test "$wxUSE_MAC" = 1; then |
f346733b GD |
15968 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" |
15969 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
21d1c967 GD |
15970 | fi |
15971 | ;; | |
15972 | esac | |
15973 | ||
15974 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
15975 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
15976 | ||
15977 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
15978 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
15979 | ||
15980 | if test "$wxUSE_OPENGL" = "yes"; then | |
15981 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
15982 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
15983 | fi | |
15984 | ||
8284b0c5 MB |
15985 | |
15986 | ||
21d1c967 GD |
15987 | if test "$wxUSE_SHARED" = "yes"; then |
15988 | case "${host}" in | |
15989 | *-pc-os2_emx | *-pc-os2-emx | \ | |
15990 | *-pc-msdosdjgpp ) | |
15991 | wxUSE_SHARED=no | |
a0b9e27f | 15992 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 |
21d1c967 GD |
15993 | ;; |
15994 | esac | |
15995 | fi | |
15996 | ||
2b5f62a0 VZ |
15997 | if test "$wxUSE_SHARED" = "yes"; then |
15998 | ||
15999 | if test "$wxUSE_OPENGL" = "yes"; then | |
16000 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
16001 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
16002 | else | |
16003 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
16004 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
16005 | fi | |
16006 | ||
16007 | if test "$GCC" = "yes"; then | |
16008 | PIC_FLAG="-fPIC" | |
16009 | fi | |
16010 | ||
16011 | ||
16012 | ||
16013 | found_versioning=no | |
16014 | ||
b4eecb7e | 16015 | |
2b5f62a0 VZ |
16016 | if test $found_versioning = no ; then |
16017 | echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6 | |
f7f78039 | 16018 | echo "configure:16019: checking if the linker accepts --version-script" >&5 |
2b5f62a0 VZ |
16019 | if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then |
16020 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16021 | else | |
16022 | ||
16023 | echo "VER_1 { *; };" >conftest.sym | |
16024 | echo "int main() { return 0; }" >conftest.cpp | |
16025 | ||
16026 | if { ac_try=' | |
16027 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
f7f78039 | 16028 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then |
2b5f62a0 VZ |
16029 | if test -s conftest.stderr ; then |
16030 | wx_cv_version_script=no | |
16031 | else | |
16032 | wx_cv_version_script=yes | |
16033 | fi | |
16034 | else | |
16035 | wx_cv_version_script=no | |
16036 | fi | |
16037 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
16038 | ||
16039 | fi | |
16040 | ||
16041 | echo "$ac_t""$wx_cv_version_script" 1>&6 | |
16042 | if test $wx_cv_version_script = yes ; then | |
16043 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script" | |
16044 | fi | |
16045 | fi | |
21d1c967 | 16046 | |
21d1c967 GD |
16047 | |
16048 | SHARED_LD="${CXX} -shared -o" | |
16049 | ||
16050 | case "${host}" in | |
16051 | *-hp-hpux* ) | |
ad2622f1 | 16052 | if test "$GCC" = "yes"; then |
85d5e282 | 16053 | SHARED_LD="${CXX} -shared ${PIC_FLAG} -o" |
21d1c967 GD |
16054 | else |
16055 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
16056 | ||
16057 | SHARED_LD="${CXX} -b -o" | |
16058 | PIC_FLAG="+Z" | |
16059 | fi | |
16060 | ||
16061 | if test "$wxUSE_OPENGL" = "yes"; then | |
16062 | WX_ALL_INSTALLED="preinstall_gl" | |
16063 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
16064 | else | |
16065 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
16066 | fi | |
16067 | ;; | |
16068 | ||
16069 | *-*-linux* ) | |
16070 | if test "$GCC" != "yes"; then | |
a0b9e27f | 16071 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 |
f7f78039 | 16072 | echo "configure:16073: checking for Intel compiler" >&5 |
a0b9e27f MB |
16073 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
16074 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16075 | else | |
16076 | ||
16077 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 16078 | #line 16079 "configure" |
698dcdb6 | 16079 | #include "confdefs.h" |
90dd450c | 16080 | |
a0b9e27f | 16081 | int main() { |
90dd450c | 16082 | |
21d1c967 GD |
16083 | #ifndef __INTEL_COMPILER |
16084 | #error Not icc | |
16085 | #endif | |
a0b9e27f MB |
16086 | |
16087 | ; return 0; } | |
16088 | EOF | |
f7f78039 | 16089 | if { (eval echo configure:16090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16090 | rm -rf conftest* |
21d1c967 | 16091 | wx_cv_prog_icc=yes |
6232543b | 16092 | else |
a0b9e27f MB |
16093 | echo "configure: failed program was:" >&5 |
16094 | cat conftest.$ac_ext >&5 | |
16095 | rm -rf conftest* | |
16096 | wx_cv_prog_icc=no | |
16097 | ||
5c6fa7d2 | 16098 | fi |
a0b9e27f MB |
16099 | rm -f conftest* |
16100 | ||
247f5006 | 16101 | fi |
a0b9e27f MB |
16102 | |
16103 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
21d1c967 GD |
16104 | if test "$wx_cv_prog_icc" = "yes"; then |
16105 | PIC_FLAG="-KPIC" | |
16106 | fi | |
16107 | fi | |
16108 | ||
16109 | if test "$wxUSE_SONAME" = "yes" ; then | |
16110 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
16111 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
16112 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
16113 | fi | |
16114 | ;; | |
16115 | ||
16116 | *-*-solaris2* ) | |
16117 | if test "$GCC" = yes ; then | |
16118 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
16119 | else | |
16120 | SHARED_LD="${CXX} -G -o" | |
16121 | PIC_FLAG="-KPIC" | |
16122 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
16123 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
16124 | fi | |
16125 | ;; | |
16126 | ||
16127 | *-*-darwin* ) | |
b2fee376 GD |
16128 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL" |
16129 | CFLAGS="$CFLAGS -fno-common" | |
16130 | CXXFLAGS="$CXXFLAGS -fno-common" | |
21d1c967 GD |
16131 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" |
16132 | PIC_FLAG="-dynamic -fPIC" | |
f346733b | 16133 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}" |
05159a27 | 16134 | SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}" |
21d1c967 GD |
16135 | ;; |
16136 | ||
16137 | *-*-aix* ) | |
2b5f62a0 VZ |
16138 | if test "$GCC" != "yes"; then |
16139 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
321d2b14 | 16140 | set dummy makeC++SharedLib; ac_word=$2 |
a0b9e27f | 16141 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
f7f78039 | 16142 | echo "configure:16143: checking for $ac_word" >&5 |
a0b9e27f MB |
16143 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then |
16144 | echo $ac_n "(cached) $ac_c" 1>&6 | |
321d2b14 VZ |
16145 | else |
16146 | if test -n "$AIX_CXX_LD"; then | |
16147 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
16148 | else | |
a0b9e27f MB |
16149 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16150 | ac_dummy="$PATH" | |
16151 | for ac_dir in $ac_dummy; do | |
16152 | test -z "$ac_dir" && ac_dir=. | |
16153 | if test -f $ac_dir/$ac_word; then | |
16154 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
16155 | break | |
16156 | fi | |
16157 | done | |
16158 | IFS="$ac_save_ifs" | |
321d2b14 VZ |
16159 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
16160 | fi | |
16161 | fi | |
a0b9e27f | 16162 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" |
321d2b14 | 16163 | if test -n "$AIX_CXX_LD"; then |
a0b9e27f | 16164 | echo "$ac_t""$AIX_CXX_LD" 1>&6 |
321d2b14 | 16165 | else |
a0b9e27f | 16166 | echo "$ac_t""no" 1>&6 |
321d2b14 VZ |
16167 | fi |
16168 | ||
8284b0c5 | 16169 | |
2b5f62a0 VZ |
16170 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" |
16171 | fi | |
21d1c967 GD |
16172 | ;; |
16173 | ||
16174 | *-*-cygwin* | *-*-mingw32* ) | |
21d1c967 GD |
16175 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
16176 | ||
16177 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
16178 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
16179 | ||
16180 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
16181 | ||
f657dbe7 MB |
16182 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
16183 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
16184 | ||
16185 | if test "$wxUSE_OPENGL" = "yes"; then | |
16186 | LIBS="${LIBS} ${OPENGL_LIBS}" | |
21d1c967 GD |
16187 | fi |
16188 | ;; | |
16189 | ||
16190 | *-*-beos* ) | |
16191 | SHARED_LD="${LD} -shared -o" | |
16192 | ;; | |
16193 | ||
2b5f62a0 VZ |
16194 | *-*-irix* ) |
16195 | if test "$GCC" != "yes"; then | |
16196 | PIC_FLAG="-KPIC" | |
16197 | fi | |
16198 | ;; | |
16199 | ||
21d1c967 GD |
16200 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
16201 | *-*-sunos4* | \ | |
21d1c967 GD |
16202 | *-*-osf* | \ |
16203 | *-*-dgux5* | \ | |
16204 | *-*-sysv5* ) | |
16205 | ;; | |
16206 | ||
16207 | *) | |
a0b9e27f | 16208 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
21d1c967 GD |
16209 | esac |
16210 | ||
16211 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
16212 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
16213 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
16214 | fi | |
16215 | ||
16216 | WX_TARGET_LIBRARY_TYPE="so" | |
16217 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 16218 | fi |
10f2d63a | 16219 | |
21d1c967 GD |
16220 | if test "$wxUSE_SHARED" = "no"; then |
16221 | ||
16222 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
16223 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
16224 | fi | |
16225 | ||
ac0c4cc3 | 16226 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
21d1c967 GD |
16227 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
16228 | fi | |
16229 | ||
16230 | if test "$wxUSE_OPENGL" = "yes"; then | |
16231 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
16232 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
16233 | else | |
16234 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
16235 | fi | |
16236 | ||
16237 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
16238 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
16239 | ||
16240 | WX_TARGET_LIBRARY_TYPE="a" | |
16241 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
16242 | |
16243 | STATIC_FLAG="yes" | |
16244 | else | |
16245 | STATIC_FLAG="no" | |
90dd450c | 16246 | fi |
1e487827 | 16247 | |
93fac604 VZ |
16248 | MACRESCOMP="@#" |
16249 | MACSETFILE="@#" | |
36825681 | 16250 | MACRESWXCONFIG="#" |
21d1c967 GD |
16251 | if test "$wxUSE_MAC" = 1; then |
16252 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
16253 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
16254 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
16255 | # Extract the first word of "Rez", so it can be a program name with args. | |
16256 | set dummy Rez; ac_word=$2 | |
a0b9e27f | 16257 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
f7f78039 | 16258 | echo "configure:16259: checking for $ac_word" >&5 |
a0b9e27f MB |
16259 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
16260 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b93d0d08 | 16261 | else |
21d1c967 GD |
16262 | if test -n "$RESCOMP"; then |
16263 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 16264 | else |
a0b9e27f MB |
16265 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16266 | ac_dummy="$PATH" | |
16267 | for ac_dir in $ac_dummy; do | |
16268 | test -z "$ac_dir" && ac_dir=. | |
16269 | if test -f $ac_dir/$ac_word; then | |
16270 | ac_cv_prog_RESCOMP="Rez" | |
16271 | break | |
16272 | fi | |
16273 | done | |
16274 | IFS="$ac_save_ifs" | |
21d1c967 | 16275 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 16276 | fi |
b93d0d08 | 16277 | fi |
a0b9e27f | 16278 | RESCOMP="$ac_cv_prog_RESCOMP" |
21d1c967 | 16279 | if test -n "$RESCOMP"; then |
a0b9e27f | 16280 | echo "$ac_t""$RESCOMP" 1>&6 |
90dd450c | 16281 | else |
a0b9e27f | 16282 | echo "$ac_t""no" 1>&6 |
90dd450c | 16283 | fi |
b93d0d08 | 16284 | |
21d1c967 GD |
16285 | # Extract the first word of "DeRez", so it can be a program name with args. |
16286 | set dummy DeRez; ac_word=$2 | |
a0b9e27f | 16287 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
f7f78039 | 16288 | echo "configure:16289: checking for $ac_word" >&5 |
a0b9e27f MB |
16289 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
16290 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3a922bb4 | 16291 | else |
21d1c967 GD |
16292 | if test -n "$DEREZ"; then |
16293 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 16294 | else |
a0b9e27f MB |
16295 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16296 | ac_dummy="$PATH" | |
16297 | for ac_dir in $ac_dummy; do | |
16298 | test -z "$ac_dir" && ac_dir=. | |
16299 | if test -f $ac_dir/$ac_word; then | |
16300 | ac_cv_prog_DEREZ="DeRez" | |
16301 | break | |
16302 | fi | |
16303 | done | |
16304 | IFS="$ac_save_ifs" | |
21d1c967 | 16305 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 16306 | fi |
90dd450c | 16307 | fi |
a0b9e27f | 16308 | DEREZ="$ac_cv_prog_DEREZ" |
21d1c967 | 16309 | if test -n "$DEREZ"; then |
a0b9e27f | 16310 | echo "$ac_t""$DEREZ" 1>&6 |
90dd450c | 16311 | else |
a0b9e27f | 16312 | echo "$ac_t""no" 1>&6 |
3a922bb4 | 16313 | fi |
698dcdb6 | 16314 | |
36825681 GD |
16315 | # Extract the first word of "SetFile", so it can be a program name with args. |
16316 | set dummy SetFile; ac_word=$2 | |
16317 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f7f78039 | 16318 | echo "configure:16319: checking for $ac_word" >&5 |
36825681 GD |
16319 | if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then |
16320 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16321 | else | |
16322 | if test -n "$SETFILE"; then | |
16323 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
16324 | else | |
16325 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
16326 | ac_dummy="$PATH" | |
16327 | for ac_dir in $ac_dummy; do | |
16328 | test -z "$ac_dir" && ac_dir=. | |
16329 | if test -f $ac_dir/$ac_word; then | |
16330 | ac_cv_prog_SETFILE="SetFile" | |
16331 | break | |
16332 | fi | |
16333 | done | |
16334 | IFS="$ac_save_ifs" | |
16335 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
16336 | fi | |
16337 | fi | |
16338 | SETFILE="$ac_cv_prog_SETFILE" | |
16339 | if test -n "$SETFILE"; then | |
16340 | echo "$ac_t""$SETFILE" 1>&6 | |
16341 | else | |
16342 | echo "$ac_t""no" 1>&6 | |
16343 | fi | |
16344 | ||
21d1c967 | 16345 | MACOSX_BUNDLE="bundle" |
36825681 GD |
16346 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" |
16347 | MACSETFILE="\$(SETFILE)" | |
16348 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o" | |
64440d77 DE |
16349 | elif test "$wxUSE_COCOA" = 1; then |
16350 | # Extract the first word of "Rez", so it can be a program name with args. | |
16351 | set dummy Rez; ac_word=$2 | |
16352 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f7f78039 | 16353 | echo "configure:16354: checking for $ac_word" >&5 |
64440d77 DE |
16354 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
16355 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16356 | else | |
16357 | if test -n "$RESCOMP"; then | |
16358 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
16359 | else | |
16360 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
16361 | ac_dummy="$PATH" | |
16362 | for ac_dir in $ac_dummy; do | |
16363 | test -z "$ac_dir" && ac_dir=. | |
16364 | if test -f $ac_dir/$ac_word; then | |
16365 | ac_cv_prog_RESCOMP="Rez" | |
16366 | break | |
16367 | fi | |
16368 | done | |
16369 | IFS="$ac_save_ifs" | |
16370 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
16371 | fi | |
16372 | fi | |
16373 | RESCOMP="$ac_cv_prog_RESCOMP" | |
16374 | if test -n "$RESCOMP"; then | |
16375 | echo "$ac_t""$RESCOMP" 1>&6 | |
16376 | else | |
16377 | echo "$ac_t""no" 1>&6 | |
16378 | fi | |
16379 | ||
16380 | # Extract the first word of "DeRez", so it can be a program name with args. | |
16381 | set dummy DeRez; ac_word=$2 | |
16382 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f7f78039 | 16383 | echo "configure:16384: checking for $ac_word" >&5 |
64440d77 DE |
16384 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
16385 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16386 | else | |
16387 | if test -n "$DEREZ"; then | |
16388 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
16389 | else | |
16390 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
16391 | ac_dummy="$PATH" | |
16392 | for ac_dir in $ac_dummy; do | |
16393 | test -z "$ac_dir" && ac_dir=. | |
16394 | if test -f $ac_dir/$ac_word; then | |
16395 | ac_cv_prog_DEREZ="DeRez" | |
16396 | break | |
16397 | fi | |
16398 | done | |
16399 | IFS="$ac_save_ifs" | |
16400 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
16401 | fi | |
16402 | fi | |
16403 | DEREZ="$ac_cv_prog_DEREZ" | |
16404 | if test -n "$DEREZ"; then | |
16405 | echo "$ac_t""$DEREZ" 1>&6 | |
16406 | else | |
16407 | echo "$ac_t""no" 1>&6 | |
16408 | fi | |
16409 | ||
16410 | # Extract the first word of "SetFile", so it can be a program name with args. | |
16411 | set dummy SetFile; ac_word=$2 | |
16412 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f7f78039 | 16413 | echo "configure:16414: checking for $ac_word" >&5 |
64440d77 DE |
16414 | if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then |
16415 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16416 | else | |
16417 | if test -n "$SETFILE"; then | |
16418 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
16419 | else | |
16420 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
16421 | ac_dummy="$PATH" | |
16422 | for ac_dir in $ac_dummy; do | |
16423 | test -z "$ac_dir" && ac_dir=. | |
16424 | if test -f $ac_dir/$ac_word; then | |
16425 | ac_cv_prog_SETFILE="SetFile" | |
16426 | break | |
16427 | fi | |
16428 | done | |
16429 | IFS="$ac_save_ifs" | |
16430 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
16431 | fi | |
16432 | fi | |
16433 | SETFILE="$ac_cv_prog_SETFILE" | |
16434 | if test -n "$SETFILE"; then | |
16435 | echo "$ac_t""$SETFILE" 1>&6 | |
16436 | else | |
16437 | echo "$ac_t""no" 1>&6 | |
16438 | fi | |
16439 | ||
16440 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
16441 | MACSETFILE="\$(SETFILE)" | |
16442 | MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o" | |
21d1c967 GD |
16443 | else |
16444 | if test "$wxUSE_PM" = 1; then | |
36825681 | 16445 | MACRESCOMP="emxbind -ep" |
90dd450c | 16446 | fi |
4f14bcd8 | 16447 | fi |
10f2d63a | 16448 | |
8284b0c5 | 16449 | |
a0b9e27f | 16450 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
f7f78039 | 16451 | echo "configure:16452: checking for ANSI C header files" >&5 |
a0b9e27f MB |
16452 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
16453 | echo $ac_n "(cached) $ac_c" 1>&6 | |
52127426 | 16454 | else |
a0b9e27f | 16455 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 16456 | #line 16457 "configure" |
52127426 | 16457 | #include "confdefs.h" |
a0b9e27f MB |
16458 | #include <stdlib.h> |
16459 | #include <stdarg.h> | |
16460 | #include <string.h> | |
16461 | #include <float.h> | |
16462 | EOF | |
16463 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f7f78039 | 16464 | { (eval echo configure:16465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
16465 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16466 | if test -z "$ac_err"; then | |
16467 | rm -rf conftest* | |
16468 | ac_cv_header_stdc=yes | |
16469 | else | |
16470 | echo "$ac_err" >&5 | |
16471 | echo "configure: failed program was:" >&5 | |
16472 | cat conftest.$ac_ext >&5 | |
16473 | rm -rf conftest* | |
16474 | ac_cv_header_stdc=no | |
16475 | fi | |
16476 | rm -f conftest* | |
16477 | ||
16478 | if test $ac_cv_header_stdc = yes; then | |
16479 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
16480 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 16481 | #line 16482 "configure" |
a0b9e27f MB |
16482 | #include "confdefs.h" |
16483 | #include <string.h> | |
16484 | EOF | |
16485 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16486 | egrep "memchr" >/dev/null 2>&1; then | |
16487 | : | |
16488 | else | |
16489 | rm -rf conftest* | |
16490 | ac_cv_header_stdc=no | |
16491 | fi | |
16492 | rm -f conftest* | |
16493 | ||
16494 | fi | |
16495 | ||
16496 | if test $ac_cv_header_stdc = yes; then | |
16497 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
16498 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 16499 | #line 16500 "configure" |
a0b9e27f MB |
16500 | #include "confdefs.h" |
16501 | #include <stdlib.h> | |
16502 | EOF | |
16503 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16504 | egrep "free" >/dev/null 2>&1; then | |
16505 | : | |
7b4a847f | 16506 | else |
a0b9e27f MB |
16507 | rm -rf conftest* |
16508 | ac_cv_header_stdc=no | |
52127426 | 16509 | fi |
a0b9e27f MB |
16510 | rm -f conftest* |
16511 | ||
52127426 | 16512 | fi |
a0b9e27f MB |
16513 | |
16514 | if test $ac_cv_header_stdc = yes; then | |
16515 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
16516 | if test "$cross_compiling" = yes; then | |
247f5006 VZ |
16517 | : |
16518 | else | |
a0b9e27f | 16519 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 16520 | #line 16521 "configure" |
a0b9e27f MB |
16521 | #include "confdefs.h" |
16522 | #include <ctype.h> | |
16523 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
16524 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
16525 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
16526 | int main () { int i; for (i = 0; i < 256; i++) | |
16527 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
16528 | exit (0); } | |
247f5006 | 16529 | |
a0b9e27f | 16530 | EOF |
f7f78039 | 16531 | if { (eval echo configure:16532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
16532 | then |
16533 | : | |
16534 | else | |
16535 | echo "configure: failed program was:" >&5 | |
16536 | cat conftest.$ac_ext >&5 | |
16537 | rm -fr conftest* | |
16538 | ac_cv_header_stdc=no | |
16539 | fi | |
16540 | rm -fr conftest* | |
16541 | fi | |
16542 | ||
16543 | fi | |
16544 | fi | |
16545 | ||
16546 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
16547 | if test $ac_cv_header_stdc = yes; then | |
16548 | cat >> confdefs.h <<\EOF | |
16549 | #define STDC_HEADERS 1 | |
16550 | EOF | |
8284b0c5 MB |
16551 | |
16552 | fi | |
16553 | ||
a0b9e27f | 16554 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
f7f78039 | 16555 | echo "configure:16556: checking for mode_t" >&5 |
a0b9e27f MB |
16556 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
16557 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16558 | else |
a0b9e27f | 16559 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 16560 | #line 16561 "configure" |
8284b0c5 | 16561 | #include "confdefs.h" |
a0b9e27f MB |
16562 | #include <sys/types.h> |
16563 | #if STDC_HEADERS | |
16564 | #include <stdlib.h> | |
16565 | #include <stddef.h> | |
8284b0c5 | 16566 | #endif |
a0b9e27f MB |
16567 | EOF |
16568 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16569 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16570 | rm -rf conftest* | |
16571 | ac_cv_type_mode_t=yes | |
5c6fa7d2 | 16572 | else |
a0b9e27f MB |
16573 | rm -rf conftest* |
16574 | ac_cv_type_mode_t=no | |
16575 | fi | |
16576 | rm -f conftest* | |
16577 | ||
8284b0c5 | 16578 | fi |
a0b9e27f MB |
16579 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
16580 | if test $ac_cv_type_mode_t = no; then | |
16581 | cat >> confdefs.h <<\EOF | |
16582 | #define mode_t int | |
16583 | EOF | |
16584 | ||
8284b0c5 | 16585 | fi |
a0b9e27f MB |
16586 | |
16587 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
f7f78039 | 16588 | echo "configure:16589: checking for off_t" >&5 |
a0b9e27f MB |
16589 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
16590 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16591 | else | |
16592 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 16593 | #line 16594 "configure" |
a0b9e27f MB |
16594 | #include "confdefs.h" |
16595 | #include <sys/types.h> | |
16596 | #if STDC_HEADERS | |
16597 | #include <stdlib.h> | |
16598 | #include <stddef.h> | |
16599 | #endif | |
16600 | EOF | |
16601 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16602 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16603 | rm -rf conftest* | |
16604 | ac_cv_type_off_t=yes | |
247f5006 | 16605 | else |
a0b9e27f MB |
16606 | rm -rf conftest* |
16607 | ac_cv_type_off_t=no | |
16608 | fi | |
16609 | rm -f conftest* | |
247f5006 | 16610 | |
a0b9e27f MB |
16611 | fi |
16612 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
16613 | if test $ac_cv_type_off_t = no; then | |
16614 | cat >> confdefs.h <<\EOF | |
90dd450c | 16615 | #define off_t long |
a0b9e27f | 16616 | EOF |
10f2d63a | 16617 | |
90dd450c | 16618 | fi |
10f2d63a | 16619 | |
a0b9e27f | 16620 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
f7f78039 | 16621 | echo "configure:16622: checking for pid_t" >&5 |
a0b9e27f MB |
16622 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
16623 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 16624 | else |
a0b9e27f | 16625 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 16626 | #line 16627 "configure" |
10f2d63a | 16627 | #include "confdefs.h" |
a0b9e27f MB |
16628 | #include <sys/types.h> |
16629 | #if STDC_HEADERS | |
16630 | #include <stdlib.h> | |
16631 | #include <stddef.h> | |
8284b0c5 | 16632 | #endif |
a0b9e27f MB |
16633 | EOF |
16634 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16635 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16636 | rm -rf conftest* | |
90dd450c | 16637 | ac_cv_type_pid_t=yes |
698dcdb6 | 16638 | else |
a0b9e27f MB |
16639 | rm -rf conftest* |
16640 | ac_cv_type_pid_t=no | |
8284b0c5 | 16641 | fi |
a0b9e27f | 16642 | rm -f conftest* |
247f5006 | 16643 | |
a0b9e27f MB |
16644 | fi |
16645 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
16646 | if test $ac_cv_type_pid_t = no; then | |
16647 | cat >> confdefs.h <<\EOF | |
90dd450c | 16648 | #define pid_t int |
a0b9e27f | 16649 | EOF |
10f2d63a | 16650 | |
7b4a847f RR |
16651 | fi |
16652 | ||
a0b9e27f | 16653 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
f7f78039 | 16654 | echo "configure:16655: checking for size_t" >&5 |
a0b9e27f MB |
16655 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
16656 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 16657 | else |
a0b9e27f | 16658 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 16659 | #line 16660 "configure" |
7b4a847f | 16660 | #include "confdefs.h" |
a0b9e27f MB |
16661 | #include <sys/types.h> |
16662 | #if STDC_HEADERS | |
16663 | #include <stdlib.h> | |
16664 | #include <stddef.h> | |
8284b0c5 | 16665 | #endif |
a0b9e27f MB |
16666 | EOF |
16667 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16668 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16669 | rm -rf conftest* | |
90dd450c | 16670 | ac_cv_type_size_t=yes |
18dbb1f6 | 16671 | else |
a0b9e27f MB |
16672 | rm -rf conftest* |
16673 | ac_cv_type_size_t=no | |
52127426 | 16674 | fi |
a0b9e27f | 16675 | rm -f conftest* |
247f5006 | 16676 | |
a0b9e27f MB |
16677 | fi |
16678 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
16679 | if test $ac_cv_type_size_t = no; then | |
16680 | cat >> confdefs.h <<\EOF | |
90dd450c | 16681 | #define size_t unsigned |
a0b9e27f | 16682 | EOF |
90dd450c VZ |
16683 | |
16684 | fi | |
16685 | ||
a0b9e27f | 16686 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
f7f78039 | 16687 | echo "configure:16688: checking for uid_t in sys/types.h" >&5 |
a0b9e27f MB |
16688 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
16689 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a | 16690 | else |
a0b9e27f | 16691 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 16692 | #line 16693 "configure" |
b3e8d00a | 16693 | #include "confdefs.h" |
90dd450c | 16694 | #include <sys/types.h> |
a0b9e27f | 16695 | EOF |
90dd450c VZ |
16696 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
16697 | egrep "uid_t" >/dev/null 2>&1; then | |
a0b9e27f | 16698 | rm -rf conftest* |
90dd450c | 16699 | ac_cv_type_uid_t=yes |
b3e8d00a | 16700 | else |
a0b9e27f | 16701 | rm -rf conftest* |
90dd450c | 16702 | ac_cv_type_uid_t=no |
b3e8d00a | 16703 | fi |
90dd450c | 16704 | rm -f conftest* |
b3e8d00a | 16705 | |
4f14bcd8 | 16706 | fi |
247f5006 | 16707 | |
a0b9e27f MB |
16708 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
16709 | if test $ac_cv_type_uid_t = no; then | |
16710 | cat >> confdefs.h <<\EOF | |
90dd450c | 16711 | #define uid_t int |
a0b9e27f | 16712 | EOF |
247f5006 | 16713 | |
a0b9e27f | 16714 | cat >> confdefs.h <<\EOF |
90dd450c | 16715 | #define gid_t int |
a0b9e27f | 16716 | EOF |
4f14bcd8 | 16717 | |
b3e8d00a | 16718 | fi |
b3e8d00a | 16719 | |
8284b0c5 MB |
16720 | |
16721 | ||
a0b9e27f MB |
16722 | ac_ext=C |
16723 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 16724 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16725 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16726 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16727 | cross_compiling=$ac_cv_prog_cxx_cross | |
90dd450c | 16728 | |
a0b9e27f | 16729 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
f7f78039 | 16730 | echo "configure:16731: checking if size_t is unsigned int" >&5 |
a0b9e27f MB |
16731 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
16732 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 16733 | else |
a0b9e27f | 16734 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 16735 | #line 16736 "configure" |
10f2d63a | 16736 | #include "confdefs.h" |
90dd450c | 16737 | #include <stddef.h> |
a0b9e27f | 16738 | int main() { |
90dd450c VZ |
16739 | |
16740 | return 0; } | |
16741 | ||
16742 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
16743 | ||
16744 | int bar() { | |
a0b9e27f MB |
16745 | |
16746 | ; return 0; } | |
16747 | EOF | |
f7f78039 | 16748 | if { (eval echo configure:16749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16749 | rm -rf conftest* |
90dd450c | 16750 | wx_cv_size_t_is_uint=no |
698dcdb6 | 16751 | else |
a0b9e27f MB |
16752 | echo "configure: failed program was:" >&5 |
16753 | cat conftest.$ac_ext >&5 | |
16754 | rm -rf conftest* | |
16755 | wx_cv_size_t_is_uint=yes | |
16756 | ||
5c6fa7d2 | 16757 | fi |
a0b9e27f | 16758 | rm -f conftest* |
8284b0c5 | 16759 | |
247f5006 | 16760 | fi |
a0b9e27f MB |
16761 | |
16762 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
4f14bcd8 | 16763 | |
90dd450c | 16764 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
a0b9e27f | 16765 | cat >> confdefs.h <<\EOF |
90dd450c | 16766 | #define wxSIZE_T_IS_UINT 1 |
a0b9e27f | 16767 | EOF |
698dcdb6 | 16768 | |
90dd450c | 16769 | else |
a0b9e27f | 16770 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 |
f7f78039 | 16771 | echo "configure:16772: checking if size_t is unsigned long" >&5 |
a0b9e27f MB |
16772 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
16773 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 16774 | else |
a0b9e27f | 16775 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 16776 | #line 16777 "configure" |
10f2d63a | 16777 | #include "confdefs.h" |
90dd450c | 16778 | #include <stddef.h> |
a0b9e27f | 16779 | int main() { |
90dd450c VZ |
16780 | |
16781 | return 0; } | |
16782 | ||
16783 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
16784 | ||
16785 | int bar() { | |
a0b9e27f MB |
16786 | |
16787 | ; return 0; } | |
16788 | EOF | |
f7f78039 | 16789 | if { (eval echo configure:16790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16790 | rm -rf conftest* |
90dd450c | 16791 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 16792 | else |
a0b9e27f MB |
16793 | echo "configure: failed program was:" >&5 |
16794 | cat conftest.$ac_ext >&5 | |
16795 | rm -rf conftest* | |
16796 | wx_cv_size_t_is_ulong=yes | |
16797 | ||
5c6fa7d2 | 16798 | fi |
a0b9e27f MB |
16799 | rm -f conftest* |
16800 | ||
247f5006 | 16801 | fi |
a0b9e27f MB |
16802 | |
16803 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
10f2d63a | 16804 | |
90dd450c | 16805 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
a0b9e27f | 16806 | cat >> confdefs.h <<\EOF |
90dd450c | 16807 | #define wxSIZE_T_IS_ULONG 1 |
a0b9e27f | 16808 | EOF |
4f14bcd8 GD |
16809 | |
16810 | fi | |
90dd450c | 16811 | fi |
1e487827 | 16812 | |
90dd450c | 16813 | ac_ext=c |
a0b9e27f | 16814 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 16815 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
16816 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16817 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16818 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 16819 | |
5c6fa7d2 | 16820 | |
8284b0c5 | 16821 | |
a0b9e27f | 16822 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
f7f78039 | 16823 | echo "configure:16824: checking for pw_gecos in struct passwd" >&5 |
a0b9e27f MB |
16824 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
16825 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16826 | else |
a0b9e27f MB |
16827 | |
16828 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 16829 | #line 16830 "configure" |
4f14bcd8 | 16830 | #include "confdefs.h" |
90dd450c | 16831 | #include <pwd.h> |
a0b9e27f | 16832 | int main() { |
f6bcfd97 | 16833 | |
90dd450c VZ |
16834 | char *p; |
16835 | struct passwd *pw; | |
16836 | p = pw->pw_gecos; | |
a0b9e27f MB |
16837 | |
16838 | ; return 0; } | |
16839 | EOF | |
f7f78039 | 16840 | if { (eval echo configure:16841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
16841 | rm -rf conftest* |
16842 | ||
90dd450c | 16843 | wx_cv_struct_pw_gecos=yes |
a0b9e27f | 16844 | |
10f2d63a | 16845 | else |
a0b9e27f MB |
16846 | echo "configure: failed program was:" >&5 |
16847 | cat conftest.$ac_ext >&5 | |
16848 | rm -rf conftest* | |
16849 | ||
90dd450c | 16850 | wx_cv_struct_pw_gecos=no |
a0b9e27f MB |
16851 | |
16852 | ||
5c6fa7d2 | 16853 | fi |
a0b9e27f MB |
16854 | rm -f conftest* |
16855 | ||
247f5006 VZ |
16856 | |
16857 | fi | |
a0b9e27f MB |
16858 | |
16859 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
c521c494 | 16860 | |
90dd450c | 16861 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
a0b9e27f | 16862 | cat >> confdefs.h <<\EOF |
90dd450c | 16863 | #define HAVE_PW_GECOS 1 |
a0b9e27f | 16864 | EOF |
c521c494 | 16865 | |
90dd450c | 16866 | fi |
4f14bcd8 | 16867 | |
8284b0c5 | 16868 | |
d29b553b | 16869 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
a0b9e27f | 16870 | cat >> confdefs.h <<\EOF |
d74f4b5a | 16871 | #define wxUSE_WCHAR_T 1 |
a0b9e27f | 16872 | EOF |
d74f4b5a | 16873 | |
8284b0c5 | 16874 | |
d74f4b5a VZ |
16875 | WCSLEN_FOUND=0 |
16876 | WCHAR_LINK= | |
a0b9e27f | 16877 | for ac_func in wcslen |
7a30264c | 16878 | do |
a0b9e27f | 16879 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 16880 | echo "configure:16881: checking for $ac_func" >&5 |
a0b9e27f MB |
16881 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16882 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16883 | else | |
16884 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 16885 | #line 16886 "configure" |
4f14bcd8 | 16886 | #include "confdefs.h" |
7a30264c | 16887 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 16888 | which can conflict with char $ac_func(); below. */ |
7a30264c | 16889 | #include <assert.h> |
4f14bcd8 GD |
16890 | /* Override any gcc2 internal prototype to avoid an error. */ |
16891 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16892 | builtin and then its argument prototype would still apply. */ |
16893 | char $ac_func(); | |
16894 | ||
16895 | int main() { | |
16896 | ||
7a30264c VZ |
16897 | /* The GNU C library defines this for functions which it implements |
16898 | to always fail with ENOSYS. Some functions are actually named | |
16899 | something starting with __ and the normal name is an alias. */ | |
16900 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16901 | choke me | |
16902 | #else | |
a0b9e27f | 16903 | $ac_func(); |
7a30264c VZ |
16904 | #endif |
16905 | ||
a0b9e27f MB |
16906 | ; return 0; } |
16907 | EOF | |
f7f78039 | 16908 | if { (eval echo configure:16909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16909 | rm -rf conftest* |
16910 | eval "ac_cv_func_$ac_func=yes" | |
16911 | else | |
16912 | echo "configure: failed program was:" >&5 | |
16913 | cat conftest.$ac_ext >&5 | |
16914 | rm -rf conftest* | |
16915 | eval "ac_cv_func_$ac_func=no" | |
16916 | fi | |
16917 | rm -f conftest* | |
16918 | fi | |
16919 | ||
16920 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16921 | echo "$ac_t""yes" 1>&6 | |
16922 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16923 | cat >> confdefs.h <<EOF | |
16924 | #define $ac_tr_func 1 | |
16925 | EOF | |
d74f4b5a | 16926 | WCSLEN_FOUND=1 |
a0b9e27f MB |
16927 | else |
16928 | echo "$ac_t""no" 1>&6 | |
7a30264c VZ |
16929 | fi |
16930 | done | |
9d8deca0 | 16931 | |
8284b0c5 | 16932 | |
d74f4b5a | 16933 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 16934 | if test "$TOOLKIT" = "MSW"; then |
a0b9e27f | 16935 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
f7f78039 | 16936 | echo "configure:16937: checking for wcslen in -lmsvcrt" >&5 |
a0b9e27f MB |
16937 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
16938 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16939 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16940 | else |
a0b9e27f | 16941 | ac_save_LIBS="$LIBS" |
7a30264c | 16942 | LIBS="-lmsvcrt $LIBS" |
a0b9e27f | 16943 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 16944 | #line 16945 "configure" |
10f2d63a | 16945 | #include "confdefs.h" |
4f14bcd8 GD |
16946 | /* Override any gcc2 internal prototype to avoid an error. */ |
16947 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16948 | builtin and then its argument prototype would still apply. */ |
16949 | char wcslen(); | |
16950 | ||
16951 | int main() { | |
16952 | wcslen() | |
16953 | ; return 0; } | |
16954 | EOF | |
f7f78039 | 16955 | if { (eval echo configure:16956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16956 | rm -rf conftest* |
16957 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16958 | else | |
16959 | echo "configure: failed program was:" >&5 | |
16960 | cat conftest.$ac_ext >&5 | |
16961 | rm -rf conftest* | |
16962 | eval "ac_cv_lib_$ac_lib_var=no" | |
16963 | fi | |
16964 | rm -f conftest* | |
16965 | LIBS="$ac_save_LIBS" | |
16966 | ||
16967 | fi | |
16968 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16969 | echo "$ac_t""yes" 1>&6 | |
d74f4b5a | 16970 | WCHAR_OK=1 |
a0b9e27f MB |
16971 | else |
16972 | echo "$ac_t""no" 1>&6 | |
d29b553b | 16973 | fi |
698dcdb6 | 16974 | |
7a30264c | 16975 | else |
a0b9e27f | 16976 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
f7f78039 | 16977 | echo "configure:16978: checking for wcslen in -lw" >&5 |
a0b9e27f MB |
16978 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
16979 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16980 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 16981 | else |
a0b9e27f | 16982 | ac_save_LIBS="$LIBS" |
7a30264c | 16983 | LIBS="-lw $LIBS" |
a0b9e27f | 16984 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 16985 | #line 16986 "configure" |
95c8801c | 16986 | #include "confdefs.h" |
4f14bcd8 GD |
16987 | /* Override any gcc2 internal prototype to avoid an error. */ |
16988 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16989 | builtin and then its argument prototype would still apply. */ |
16990 | char wcslen(); | |
52127426 | 16991 | |
a0b9e27f MB |
16992 | int main() { |
16993 | wcslen() | |
16994 | ; return 0; } | |
16995 | EOF | |
f7f78039 | 16996 | if { (eval echo configure:16997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16997 | rm -rf conftest* |
16998 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16999 | else | |
17000 | echo "configure: failed program was:" >&5 | |
17001 | cat conftest.$ac_ext >&5 | |
17002 | rm -rf conftest* | |
17003 | eval "ac_cv_lib_$ac_lib_var=no" | |
17004 | fi | |
17005 | rm -f conftest* | |
17006 | LIBS="$ac_save_LIBS" | |
17007 | ||
17008 | fi | |
17009 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17010 | echo "$ac_t""yes" 1>&6 | |
17011 | ||
7a30264c | 17012 | WCHAR_LINK=" -lw" |
d74f4b5a | 17013 | WCSLEN_FOUND=1 |
a0b9e27f MB |
17014 | |
17015 | else | |
17016 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17017 | fi |
10f2d63a | 17018 | |
7a30264c | 17019 | fi |
d29b553b | 17020 | fi |
95c8801c | 17021 | |
d74f4b5a | 17022 | if test "$WCSLEN_FOUND" = 1; then |
a0b9e27f | 17023 | cat >> confdefs.h <<\EOF |
d74f4b5a | 17024 | #define HAVE_WCSLEN 1 |
a0b9e27f | 17025 | EOF |
10f2d63a | 17026 | |
d74f4b5a | 17027 | fi |
52127426 | 17028 | |
a0b9e27f | 17029 | for ac_func in wcsrtombs |
eb4efbdc | 17030 | do |
a0b9e27f | 17031 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 17032 | echo "configure:17033: checking for $ac_func" >&5 |
a0b9e27f MB |
17033 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17034 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17035 | else | |
17036 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 17037 | #line 17038 "configure" |
eb4efbdc VZ |
17038 | #include "confdefs.h" |
17039 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17040 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
17041 | #include <assert.h> |
17042 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4f14bcd8 | 17043 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17044 | builtin and then its argument prototype would still apply. */ |
17045 | char $ac_func(); | |
17046 | ||
17047 | int main() { | |
17048 | ||
10f2d63a VZ |
17049 | /* The GNU C library defines this for functions which it implements |
17050 | to always fail with ENOSYS. Some functions are actually named | |
17051 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 17052 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
17053 | choke me |
17054 | #else | |
a0b9e27f | 17055 | $ac_func(); |
10f2d63a VZ |
17056 | #endif |
17057 | ||
a0b9e27f MB |
17058 | ; return 0; } |
17059 | EOF | |
f7f78039 | 17060 | if { (eval echo configure:17061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17061 | rm -rf conftest* |
17062 | eval "ac_cv_func_$ac_func=yes" | |
17063 | else | |
17064 | echo "configure: failed program was:" >&5 | |
17065 | cat conftest.$ac_ext >&5 | |
17066 | rm -rf conftest* | |
17067 | eval "ac_cv_func_$ac_func=no" | |
17068 | fi | |
17069 | rm -f conftest* | |
17070 | fi | |
270a909e | 17071 | |
a0b9e27f MB |
17072 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17073 | echo "$ac_t""yes" 1>&6 | |
17074 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17075 | cat >> confdefs.h <<EOF | |
17076 | #define $ac_tr_func 1 | |
17077 | EOF | |
17078 | ||
17079 | else | |
17080 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17081 | fi |
247f5006 | 17082 | done |
1e487827 | 17083 | |
af15babd | 17084 | else |
a0b9e27f | 17085 | echo "configure: warning: Wide character support is unavailable" 1>&2 |
7b4a847f | 17086 | fi |
52127426 | 17087 | |
8284b0c5 | 17088 | |
a0b9e27f MB |
17089 | ac_ext=C |
17090 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
247f5006 | 17091 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17092 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17093 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17094 | cross_compiling=$ac_cv_prog_cxx_cross | |
af15babd | 17095 | |
247f5006 VZ |
17096 | |
17097 | for ac_func in vsnprintf | |
17098 | do | |
a0b9e27f | 17099 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 17100 | echo "configure:17101: checking for $ac_func" >&5 |
a0b9e27f MB |
17101 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17102 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17103 | else | |
17104 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 17105 | #line 17106 "configure" |
af15babd | 17106 | #include "confdefs.h" |
247f5006 | 17107 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17108 | which can conflict with char $ac_func(); below. */ |
247f5006 VZ |
17109 | #include <assert.h> |
17110 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17111 | #ifdef __cplusplus | |
17112 | extern "C" | |
17113 | #endif | |
17114 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17115 | builtin and then its argument prototype would still apply. */ |
17116 | char $ac_func(); | |
17117 | ||
17118 | int main() { | |
17119 | ||
247f5006 VZ |
17120 | /* The GNU C library defines this for functions which it implements |
17121 | to always fail with ENOSYS. Some functions are actually named | |
17122 | something starting with __ and the normal name is an alias. */ | |
17123 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17124 | choke me | |
17125 | #else | |
a0b9e27f | 17126 | $ac_func(); |
247f5006 | 17127 | #endif |
af15babd | 17128 | |
a0b9e27f MB |
17129 | ; return 0; } |
17130 | EOF | |
f7f78039 | 17131 | if { (eval echo configure:17132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17132 | rm -rf conftest* |
17133 | eval "ac_cv_func_$ac_func=yes" | |
17134 | else | |
17135 | echo "configure: failed program was:" >&5 | |
17136 | cat conftest.$ac_ext >&5 | |
17137 | rm -rf conftest* | |
17138 | eval "ac_cv_func_$ac_func=no" | |
17139 | fi | |
17140 | rm -f conftest* | |
17141 | fi | |
52127426 | 17142 | |
a0b9e27f MB |
17143 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17144 | echo "$ac_t""yes" 1>&6 | |
17145 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17146 | cat >> confdefs.h <<EOF | |
17147 | #define $ac_tr_func 1 | |
17148 | EOF | |
17149 | ||
17150 | else | |
17151 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 17152 | fi |
247f5006 | 17153 | done |
8284b0c5 | 17154 | |
4f14bcd8 | 17155 | |
8d90d2f2 VZ |
17156 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
17157 | echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6 | |
f7f78039 | 17158 | echo "configure:17159: checking for vsnprintf declaration" >&5 |
8d90d2f2 VZ |
17159 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then |
17160 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17161 | else | |
17162 | ||
17163 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 17164 | #line 17165 "configure" |
8d90d2f2 VZ |
17165 | #include "confdefs.h" |
17166 | ||
17167 | #include <stdio.h> | |
17168 | #include <stdarg.h> | |
17169 | ||
17170 | int main() { | |
17171 | ||
17172 | char *buf; | |
17173 | va_list ap; | |
17174 | vsnprintf(buf, 10u, "%s", ap); | |
17175 | ||
17176 | ; return 0; } | |
17177 | EOF | |
f7f78039 | 17178 | if { (eval echo configure:17179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
8d90d2f2 VZ |
17179 | rm -rf conftest* |
17180 | wx_cv_func_vsnprintf_decl=yes | |
17181 | else | |
17182 | echo "configure: failed program was:" >&5 | |
17183 | cat conftest.$ac_ext >&5 | |
17184 | rm -rf conftest* | |
17185 | wx_cv_func_vsnprintf_decl=no | |
17186 | ||
17187 | fi | |
17188 | rm -f conftest* | |
17189 | ||
17190 | ||
17191 | fi | |
17192 | ||
17193 | echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6 | |
17194 | ||
17195 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
17196 | cat >> confdefs.h <<\EOF | |
17197 | #define HAVE_VSNPRINTF_DECL 1 | |
17198 | EOF | |
17199 | ||
17200 | fi | |
17201 | fi | |
17202 | ||
247f5006 | 17203 | if test "$wxUSE_UNICODE" = yes; then |
a0b9e27f | 17204 | for ac_func in fputwc wprintf vswprintf |
d74f4b5a | 17205 | do |
a0b9e27f | 17206 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 17207 | echo "configure:17208: checking for $ac_func" >&5 |
a0b9e27f MB |
17208 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17209 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17210 | else | |
17211 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 17212 | #line 17213 "configure" |
d74f4b5a VZ |
17213 | #include "confdefs.h" |
17214 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17215 | which can conflict with char $ac_func(); below. */ |
d74f4b5a VZ |
17216 | #include <assert.h> |
17217 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
17218 | #ifdef __cplusplus |
17219 | extern "C" | |
17220 | #endif | |
d74f4b5a | 17221 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17222 | builtin and then its argument prototype would still apply. */ |
17223 | char $ac_func(); | |
17224 | ||
17225 | int main() { | |
17226 | ||
d74f4b5a VZ |
17227 | /* The GNU C library defines this for functions which it implements |
17228 | to always fail with ENOSYS. Some functions are actually named | |
17229 | something starting with __ and the normal name is an alias. */ | |
17230 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17231 | choke me | |
17232 | #else | |
a0b9e27f | 17233 | $ac_func(); |
d74f4b5a VZ |
17234 | #endif |
17235 | ||
a0b9e27f MB |
17236 | ; return 0; } |
17237 | EOF | |
f7f78039 | 17238 | if { (eval echo configure:17239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17239 | rm -rf conftest* |
17240 | eval "ac_cv_func_$ac_func=yes" | |
17241 | else | |
17242 | echo "configure: failed program was:" >&5 | |
17243 | cat conftest.$ac_ext >&5 | |
17244 | rm -rf conftest* | |
17245 | eval "ac_cv_func_$ac_func=no" | |
17246 | fi | |
17247 | rm -f conftest* | |
17248 | fi | |
d74f4b5a | 17249 | |
a0b9e27f MB |
17250 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17251 | echo "$ac_t""yes" 1>&6 | |
17252 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17253 | cat >> confdefs.h <<EOF | |
17254 | #define $ac_tr_func 1 | |
17255 | EOF | |
17256 | ||
17257 | else | |
17258 | echo "$ac_t""no" 1>&6 | |
d74f4b5a VZ |
17259 | fi |
17260 | done | |
17261 | ||
8d90d2f2 | 17262 | |
79668cae | 17263 | echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6 |
f7f78039 | 17264 | echo "configure:17265: checking for _vsnwprintf" >&5 |
79668cae | 17265 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 17266 | #line 17267 "configure" |
79668cae MB |
17267 | #include "confdefs.h" |
17268 | #include <wchar.h> | |
17269 | int main() { | |
17270 | &_vsnwprintf; | |
17271 | ; return 0; } | |
17272 | EOF | |
f7f78039 | 17273 | if { (eval echo configure:17274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
79668cae MB |
17274 | rm -rf conftest* |
17275 | echo "$ac_t""yes" 1>&6 | |
17276 | cat >> confdefs.h <<\EOF | |
17277 | #define HAVE__VSNWPRINTF 1 | |
17278 | EOF | |
17279 | ||
17280 | else | |
17281 | echo "configure: failed program was:" >&5 | |
17282 | cat conftest.$ac_ext >&5 | |
17283 | rm -rf conftest* | |
17284 | echo "$ac_t""no" 1>&6 | |
17285 | fi | |
17286 | rm -f conftest*; | |
d74f4b5a VZ |
17287 | fi |
17288 | ||
247f5006 | 17289 | ac_ext=c |
a0b9e27f | 17290 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
247f5006 | 17291 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17292 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17293 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17294 | cross_compiling=$ac_cv_prog_cc_cross | |
247f5006 VZ |
17295 | |
17296 | ||
17297 | ||
17298 | ||
4f14bcd8 | 17299 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 17300 | |
8284b0c5 MB |
17301 | |
17302 | ||
a0b9e27f MB |
17303 | ac_ext=C |
17304 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 17305 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17306 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17307 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17308 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 17309 | |
52127426 | 17310 | |
a0b9e27f MB |
17311 | |
17312 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
17313 | if test "${with_libiconv_prefix+set}" = set; then |
17314 | withval="$with_libiconv_prefix" | |
a0b9e27f | 17315 | |
b040e242 VS |
17316 | for dir in `echo "$withval" | tr : ' '`; do |
17317 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
17318 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
17319 | done | |
a0b9e27f MB |
17320 | |
17321 | fi | |
b040e242 VS |
17322 | |
17323 | ||
a0b9e27f | 17324 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
f7f78039 | 17325 | echo "configure:17326: checking for iconv" >&5 |
a0b9e27f MB |
17326 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
17327 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 17328 | else |
a0b9e27f | 17329 | |
b040e242 VS |
17330 | am_cv_func_iconv="no, consider installing GNU libiconv" |
17331 | am_cv_lib_iconv=no | |
a0b9e27f | 17332 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 17333 | #line 17334 "configure" |
af15babd | 17334 | #include "confdefs.h" |
b040e242 | 17335 | #include <stdlib.h> |
4f14bcd8 | 17336 | #include <iconv.h> |
a0b9e27f | 17337 | int main() { |
b040e242 VS |
17338 | iconv_t cd = iconv_open("",""); |
17339 | iconv(cd,NULL,NULL,NULL,NULL); | |
17340 | iconv_close(cd); | |
a0b9e27f MB |
17341 | ; return 0; } |
17342 | EOF | |
f7f78039 | 17343 | if { (eval echo configure:17344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17344 | rm -rf conftest* |
b040e242 | 17345 | am_cv_func_iconv=yes |
af15babd | 17346 | else |
a0b9e27f MB |
17347 | echo "configure: failed program was:" >&5 |
17348 | cat conftest.$ac_ext >&5 | |
b040e242 | 17349 | fi |
a0b9e27f | 17350 | rm -f conftest* |
b040e242 VS |
17351 | if test "$am_cv_func_iconv" != yes; then |
17352 | am_save_LIBS="$LIBS" | |
17353 | LIBS="$LIBS -liconv" | |
a0b9e27f | 17354 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 17355 | #line 17356 "configure" |
b040e242 VS |
17356 | #include "confdefs.h" |
17357 | #include <stdlib.h> | |
17358 | #include <iconv.h> | |
a0b9e27f | 17359 | int main() { |
b040e242 VS |
17360 | iconv_t cd = iconv_open("",""); |
17361 | iconv(cd,NULL,NULL,NULL,NULL); | |
17362 | iconv_close(cd); | |
a0b9e27f MB |
17363 | ; return 0; } |
17364 | EOF | |
f7f78039 | 17365 | if { (eval echo configure:17366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17366 | rm -rf conftest* |
b040e242 VS |
17367 | am_cv_lib_iconv=yes |
17368 | am_cv_func_iconv=yes | |
17369 | else | |
a0b9e27f MB |
17370 | echo "configure: failed program was:" >&5 |
17371 | cat conftest.$ac_ext >&5 | |
af15babd | 17372 | fi |
a0b9e27f | 17373 | rm -f conftest* |
b040e242 VS |
17374 | LIBS="$am_save_LIBS" |
17375 | fi | |
a0b9e27f | 17376 | |
247f5006 | 17377 | fi |
247f5006 | 17378 | |
a0b9e27f MB |
17379 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
17380 | if test "$am_cv_func_iconv" = yes; then | |
17381 | cat >> confdefs.h <<\EOF | |
b040e242 | 17382 | #define HAVE_ICONV 1 |
a0b9e27f | 17383 | EOF |
b040e242 | 17384 | |
a0b9e27f | 17385 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
f7f78039 | 17386 | echo "configure:17387: checking if iconv needs const" >&5 |
a0b9e27f MB |
17387 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
17388 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b040e242 | 17389 | else |
a0b9e27f | 17390 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 17391 | #line 17392 "configure" |
b040e242 VS |
17392 | #include "confdefs.h" |
17393 | ||
17394 | #include <stdlib.h> | |
17395 | #include <iconv.h> | |
17396 | extern | |
17397 | #ifdef __cplusplus | |
17398 | "C" | |
17399 | #endif | |
17400 | #if defined(__STDC__) || defined(__cplusplus) | |
17401 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
17402 | #else | |
17403 | size_t iconv(); | |
17404 | #endif | |
a0b9e27f MB |
17405 | |
17406 | int main() { | |
af15babd | 17407 | |
a0b9e27f MB |
17408 | ; return 0; } |
17409 | EOF | |
f7f78039 | 17410 | if { (eval echo configure:17411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 17411 | rm -rf conftest* |
b7043674 | 17412 | wx_cv_func_iconv_const="no" |
b040e242 | 17413 | else |
a0b9e27f MB |
17414 | echo "configure: failed program was:" >&5 |
17415 | cat conftest.$ac_ext >&5 | |
17416 | rm -rf conftest* | |
17417 | wx_cv_func_iconv_const="yes" | |
17418 | ||
5c6fa7d2 | 17419 | fi |
a0b9e27f MB |
17420 | rm -f conftest* |
17421 | ||
247f5006 | 17422 | fi |
a0b9e27f MB |
17423 | |
17424 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 | |
b7043674 VZ |
17425 | |
17426 | iconv_const= | |
1c405bb5 | 17427 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
17428 | iconv_const="const" |
17429 | fi | |
17430 | ||
a0b9e27f | 17431 | cat >> confdefs.h <<EOF |
f09359cf | 17432 | #define ICONV_CONST $iconv_const |
a0b9e27f | 17433 | EOF |
b040e242 VS |
17434 | |
17435 | fi | |
17436 | LIBICONV= | |
17437 | if test "$am_cv_lib_iconv" = yes; then | |
17438 | LIBICONV="-liconv" | |
17439 | fi | |
a0b9e27f | 17440 | |
b040e242 VS |
17441 | |
17442 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 17443 | ac_ext=c |
a0b9e27f | 17444 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17445 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17446 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17447 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17448 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 17449 | |
5c6fa7d2 | 17450 | |
8284b0c5 | 17451 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 17452 | for ac_func in sigaction |
af15babd | 17453 | do |
a0b9e27f | 17454 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 17455 | echo "configure:17456: checking for $ac_func" >&5 |
a0b9e27f MB |
17456 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17457 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17458 | else | |
17459 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 17460 | #line 17461 "configure" |
af15babd VZ |
17461 | #include "confdefs.h" |
17462 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17463 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17464 | #include <assert.h> |
17465 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17466 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17467 | builtin and then its argument prototype would still apply. */ |
17468 | char $ac_func(); | |
17469 | ||
17470 | int main() { | |
17471 | ||
af15babd VZ |
17472 | /* The GNU C library defines this for functions which it implements |
17473 | to always fail with ENOSYS. Some functions are actually named | |
17474 | something starting with __ and the normal name is an alias. */ | |
17475 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17476 | choke me | |
17477 | #else | |
a0b9e27f | 17478 | $ac_func(); |
af15babd VZ |
17479 | #endif |
17480 | ||
a0b9e27f MB |
17481 | ; return 0; } |
17482 | EOF | |
f7f78039 | 17483 | if { (eval echo configure:17484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17484 | rm -rf conftest* |
17485 | eval "ac_cv_func_$ac_func=yes" | |
17486 | else | |
17487 | echo "configure: failed program was:" >&5 | |
17488 | cat conftest.$ac_ext >&5 | |
17489 | rm -rf conftest* | |
17490 | eval "ac_cv_func_$ac_func=no" | |
17491 | fi | |
17492 | rm -f conftest* | |
17493 | fi | |
7b4a847f | 17494 | |
a0b9e27f MB |
17495 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17496 | echo "$ac_t""yes" 1>&6 | |
17497 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17498 | cat >> confdefs.h <<EOF | |
17499 | #define $ac_tr_func 1 | |
17500 | EOF | |
17501 | ||
17502 | else | |
17503 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
17504 | fi |
17505 | done | |
17506 | ||
8284b0c5 | 17507 | |
4f14bcd8 | 17508 | if test "$ac_cv_func_sigaction" = "no"; then |
a0b9e27f | 17509 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
4f14bcd8 GD |
17510 | wxUSE_ON_FATAL_EXCEPTION=no |
17511 | fi | |
17512 | ||
17513 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a0b9e27f MB |
17514 | |
17515 | ac_ext=C | |
17516 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 17517 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17518 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17519 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17520 | cross_compiling=$ac_cv_prog_cxx_cross | |
7b4a847f | 17521 | |
5c6fa7d2 | 17522 | |
a0b9e27f | 17523 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
f7f78039 | 17524 | echo "configure:17525: checking for sa_handler type" >&5 |
a0b9e27f MB |
17525 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
17526 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 17527 | else |
a0b9e27f MB |
17528 | |
17529 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 17530 | #line 17531 "configure" |
af15babd | 17531 | #include "confdefs.h" |
4f14bcd8 | 17532 | #include <signal.h> |
a0b9e27f | 17533 | int main() { |
4f14bcd8 GD |
17534 | |
17535 | extern void testSigHandler(int); | |
17536 | ||
17537 | struct sigaction sa; | |
17538 | sa.sa_handler = testSigHandler; | |
a0b9e27f MB |
17539 | |
17540 | ; return 0; } | |
17541 | EOF | |
f7f78039 | 17542 | if { (eval echo configure:17543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17543 | rm -rf conftest* |
17544 | ||
4f14bcd8 | 17545 | wx_cv_type_sa_handler=int |
a0b9e27f | 17546 | |
af15babd | 17547 | else |
a0b9e27f MB |
17548 | echo "configure: failed program was:" >&5 |
17549 | cat conftest.$ac_ext >&5 | |
17550 | rm -rf conftest* | |
17551 | ||
4f14bcd8 | 17552 | wx_cv_type_sa_handler=void |
a0b9e27f | 17553 | |
5c6fa7d2 | 17554 | fi |
a0b9e27f MB |
17555 | rm -f conftest* |
17556 | ||
247f5006 | 17557 | fi |
a0b9e27f MB |
17558 | |
17559 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
4f14bcd8 GD |
17560 | |
17561 | ac_ext=c | |
a0b9e27f | 17562 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17563 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17564 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17565 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17566 | cross_compiling=$ac_cv_prog_cc_cross | |
579d8138 | 17567 | |
8284b0c5 | 17568 | |
a0b9e27f | 17569 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17570 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
a0b9e27f | 17571 | EOF |
af15babd | 17572 | |
4f14bcd8 GD |
17573 | fi |
17574 | fi | |
af15babd | 17575 | |
a1d22ad7 | 17576 | for ac_func in mkstemp mktemp |
af15babd | 17577 | do |
a0b9e27f | 17578 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 17579 | echo "configure:17580: checking for $ac_func" >&5 |
a0b9e27f MB |
17580 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17581 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17582 | else | |
17583 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 17584 | #line 17585 "configure" |
af15babd VZ |
17585 | #include "confdefs.h" |
17586 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17587 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17588 | #include <assert.h> |
17589 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17590 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17591 | builtin and then its argument prototype would still apply. */ |
17592 | char $ac_func(); | |
17593 | ||
17594 | int main() { | |
17595 | ||
af15babd VZ |
17596 | /* The GNU C library defines this for functions which it implements |
17597 | to always fail with ENOSYS. Some functions are actually named | |
17598 | something starting with __ and the normal name is an alias. */ | |
17599 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17600 | choke me | |
17601 | #else | |
a0b9e27f | 17602 | $ac_func(); |
af15babd VZ |
17603 | #endif |
17604 | ||
a0b9e27f MB |
17605 | ; return 0; } |
17606 | EOF | |
f7f78039 | 17607 | if { (eval echo configure:17608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17608 | rm -rf conftest* |
17609 | eval "ac_cv_func_$ac_func=yes" | |
17610 | else | |
17611 | echo "configure: failed program was:" >&5 | |
17612 | cat conftest.$ac_ext >&5 | |
17613 | rm -rf conftest* | |
17614 | eval "ac_cv_func_$ac_func=no" | |
17615 | fi | |
17616 | rm -f conftest* | |
17617 | fi | |
af15babd | 17618 | |
a0b9e27f MB |
17619 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17620 | echo "$ac_t""yes" 1>&6 | |
17621 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17622 | cat >> confdefs.h <<EOF | |
17623 | #define $ac_tr_func 1 | |
17624 | EOF | |
ade35f11 | 17625 | break |
a0b9e27f MB |
17626 | else |
17627 | echo "$ac_t""no" 1>&6 | |
ade35f11 VZ |
17628 | fi |
17629 | done | |
17630 | ||
8284b0c5 | 17631 | |
a0b9e27f | 17632 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
f7f78039 | 17633 | echo "configure:17634: checking for statfs" >&5 |
a0b9e27f MB |
17634 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
17635 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 17636 | else |
a0b9e27f | 17637 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 17638 | #line 17639 "configure" |
4f14bcd8 GD |
17639 | #include "confdefs.h" |
17640 | ||
17641 | #if defined(__BSD__) | |
17642 | #include <sys/param.h> | |
17643 | #include <sys/mount.h> | |
17644 | #else | |
17645 | #include <sys/vfs.h> | |
17646 | #endif | |
a0b9e27f MB |
17647 | |
17648 | int main() { | |
4f14bcd8 GD |
17649 | |
17650 | long l; | |
17651 | struct statfs fs; | |
17652 | statfs("/", &fs); | |
17653 | l = fs.f_bsize; | |
17654 | l += fs.f_blocks; | |
17655 | l += fs.f_bavail; | |
a0b9e27f MB |
17656 | |
17657 | ; return 0; } | |
17658 | EOF | |
f7f78039 | 17659 | if { (eval echo configure:17660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17660 | rm -rf conftest* |
17661 | ||
4f14bcd8 | 17662 | wx_cv_func_statfs=yes |
a0b9e27f | 17663 | |
4f14bcd8 | 17664 | else |
a0b9e27f MB |
17665 | echo "configure: failed program was:" >&5 |
17666 | cat conftest.$ac_ext >&5 | |
17667 | rm -rf conftest* | |
17668 | ||
4f14bcd8 | 17669 | wx_cv_func_statfs=no |
a0b9e27f MB |
17670 | |
17671 | ||
5c6fa7d2 | 17672 | fi |
a0b9e27f | 17673 | rm -f conftest* |
8284b0c5 | 17674 | |
247f5006 | 17675 | fi |
a0b9e27f MB |
17676 | |
17677 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
4f14bcd8 GD |
17678 | |
17679 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 17680 | wx_cv_type_statvfs_t="struct statfs" |
a0b9e27f | 17681 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17682 | #define HAVE_STATFS 1 |
a0b9e27f | 17683 | EOF |
4f14bcd8 GD |
17684 | |
17685 | else | |
a0b9e27f | 17686 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 |
f7f78039 | 17687 | echo "configure:17688: checking for statvfs" >&5 |
a0b9e27f MB |
17688 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
17689 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 17690 | else |
a0b9e27f | 17691 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 17692 | #line 17693 "configure" |
af15babd | 17693 | #include "confdefs.h" |
af15babd | 17694 | |
54ab82b3 VZ |
17695 | #include <stddef.h> |
17696 | #include <sys/statvfs.h> | |
a0b9e27f MB |
17697 | |
17698 | int main() { | |
af15babd | 17699 | |
54ab82b3 | 17700 | statvfs("/", NULL); |
a0b9e27f MB |
17701 | |
17702 | ; return 0; } | |
17703 | EOF | |
f7f78039 | 17704 | if { (eval echo configure:17705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 17705 | rm -rf conftest* |
54ab82b3 | 17706 | wx_cv_func_statvfs=yes |
af15babd | 17707 | else |
a0b9e27f MB |
17708 | echo "configure: failed program was:" >&5 |
17709 | cat conftest.$ac_ext >&5 | |
17710 | rm -rf conftest* | |
54ab82b3 | 17711 | wx_cv_func_statvfs=no |
a0b9e27f | 17712 | |
5c6fa7d2 | 17713 | fi |
a0b9e27f MB |
17714 | rm -f conftest* |
17715 | ||
247f5006 | 17716 | fi |
a0b9e27f MB |
17717 | |
17718 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 | |
af15babd | 17719 | |
4f14bcd8 | 17720 | if test "$wx_cv_func_statvfs" = "yes"; then |
54ab82b3 VZ |
17721 | |
17722 | ac_ext=C | |
17723 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17724 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17725 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17726 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17727 | cross_compiling=$ac_cv_prog_cxx_cross | |
17728 | ||
17729 | ||
17730 | echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6 | |
f7f78039 | 17731 | echo "configure:17732: checking for statvfs argument type" >&5 |
54ab82b3 VZ |
17732 | if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then |
17733 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17734 | else | |
17735 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 17736 | #line 17737 "configure" |
54ab82b3 VZ |
17737 | #include "confdefs.h" |
17738 | ||
17739 | #include <sys/statvfs.h> | |
17740 | ||
17741 | int main() { | |
17742 | ||
17743 | long l; | |
17744 | statvfs_t fs; | |
17745 | statvfs("/", &fs); | |
17746 | l = fs.f_bsize; | |
17747 | l += fs.f_blocks; | |
17748 | l += fs.f_bavail; | |
17749 | ||
17750 | ; return 0; } | |
17751 | EOF | |
f7f78039 | 17752 | if { (eval echo configure:17753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54ab82b3 VZ |
17753 | rm -rf conftest* |
17754 | wx_cv_type_statvfs_t=statvfs_t | |
17755 | else | |
17756 | echo "configure: failed program was:" >&5 | |
17757 | cat conftest.$ac_ext >&5 | |
17758 | rm -rf conftest* | |
17759 | ||
17760 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 17761 | #line 17762 "configure" |
54ab82b3 VZ |
17762 | #include "confdefs.h" |
17763 | ||
17764 | #include <sys/statvfs.h> | |
17765 | ||
17766 | int main() { | |
17767 | ||
17768 | long l; | |
65d8ef1e | 17769 | struct statvfs fs; |
54ab82b3 VZ |
17770 | statvfs("/", &fs); |
17771 | l = fs.f_bsize; | |
17772 | l += fs.f_blocks; | |
17773 | l += fs.f_bavail; | |
17774 | ||
17775 | ; return 0; } | |
17776 | EOF | |
f7f78039 | 17777 | if { (eval echo configure:17778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54ab82b3 VZ |
17778 | rm -rf conftest* |
17779 | wx_cv_type_statvfs_t="struct statvfs" | |
17780 | else | |
17781 | echo "configure: failed program was:" >&5 | |
17782 | cat conftest.$ac_ext >&5 | |
17783 | rm -rf conftest* | |
17784 | wx_cv_type_statvfs_t="unknown" | |
17785 | ||
17786 | fi | |
17787 | rm -f conftest* | |
17788 | ||
17789 | ||
17790 | fi | |
17791 | rm -f conftest* | |
17792 | ||
17793 | fi | |
17794 | ||
17795 | echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6 | |
17796 | ||
17797 | ac_ext=c | |
17798 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17799 | ac_cpp='$CPP $CPPFLAGS' | |
17800 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17801 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17802 | cross_compiling=$ac_cv_prog_cc_cross | |
17803 | ||
17804 | ||
17805 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
17806 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17807 | #define HAVE_STATVFS 1 |
a0b9e27f | 17808 | EOF |
af15babd | 17809 | |
54ab82b3 | 17810 | fi |
4f14bcd8 | 17811 | else |
54ab82b3 | 17812 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
17813 | fi |
17814 | fi | |
af15babd | 17815 | |
54ab82b3 VZ |
17816 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
17817 | cat >> confdefs.h <<EOF | |
17818 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
17819 | EOF | |
17820 | ||
17821 | else | |
17822 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
17823 | fi | |
17824 | ||
4f14bcd8 | 17825 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 17826 | for ac_func in fcntl flock |
af15babd | 17827 | do |
a0b9e27f | 17828 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 17829 | echo "configure:17830: checking for $ac_func" >&5 |
a0b9e27f MB |
17830 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17831 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17832 | else | |
17833 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 17834 | #line 17835 "configure" |
af15babd VZ |
17835 | #include "confdefs.h" |
17836 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17837 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17838 | #include <assert.h> |
17839 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd | 17840 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17841 | builtin and then its argument prototype would still apply. */ |
17842 | char $ac_func(); | |
17843 | ||
17844 | int main() { | |
17845 | ||
af15babd VZ |
17846 | /* The GNU C library defines this for functions which it implements |
17847 | to always fail with ENOSYS. Some functions are actually named | |
17848 | something starting with __ and the normal name is an alias. */ | |
17849 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17850 | choke me | |
17851 | #else | |
a0b9e27f | 17852 | $ac_func(); |
af15babd VZ |
17853 | #endif |
17854 | ||
a0b9e27f MB |
17855 | ; return 0; } |
17856 | EOF | |
f7f78039 | 17857 | if { (eval echo configure:17858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17858 | rm -rf conftest* |
17859 | eval "ac_cv_func_$ac_func=yes" | |
17860 | else | |
17861 | echo "configure: failed program was:" >&5 | |
17862 | cat conftest.$ac_ext >&5 | |
17863 | rm -rf conftest* | |
17864 | eval "ac_cv_func_$ac_func=no" | |
17865 | fi | |
17866 | rm -f conftest* | |
17867 | fi | |
17868 | ||
17869 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17870 | echo "$ac_t""yes" 1>&6 | |
17871 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17872 | cat >> confdefs.h <<EOF | |
17873 | #define $ac_tr_func 1 | |
17874 | EOF | |
4f14bcd8 | 17875 | break |
a0b9e27f MB |
17876 | else |
17877 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
17878 | fi |
17879 | done | |
17880 | ||
8284b0c5 | 17881 | |
4f14bcd8 | 17882 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
a0b9e27f | 17883 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f14bcd8 GD |
17884 | wxUSE_SNGLINST_CHECKER=no |
17885 | fi | |
17886 | fi | |
af15babd | 17887 | |
4f14bcd8 | 17888 | for ac_func in timegm |
af15babd | 17889 | do |
a0b9e27f | 17890 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 17891 | echo "configure:17892: checking for $ac_func" >&5 |
a0b9e27f MB |
17892 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17893 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17894 | else | |
17895 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 17896 | #line 17897 "configure" |
af15babd VZ |
17897 | #include "confdefs.h" |
17898 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17899 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17900 | #include <assert.h> |
17901 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17902 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17903 | builtin and then its argument prototype would still apply. */ |
17904 | char $ac_func(); | |
17905 | ||
17906 | int main() { | |
17907 | ||
af15babd VZ |
17908 | /* The GNU C library defines this for functions which it implements |
17909 | to always fail with ENOSYS. Some functions are actually named | |
17910 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
17911 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
17912 | choke me | |
17913 | #else | |
a0b9e27f | 17914 | $ac_func(); |
247f5006 VZ |
17915 | #endif |
17916 | ||
a0b9e27f MB |
17917 | ; return 0; } |
17918 | EOF | |
f7f78039 | 17919 | if { (eval echo configure:17920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17920 | rm -rf conftest* |
17921 | eval "ac_cv_func_$ac_func=yes" | |
17922 | else | |
17923 | echo "configure: failed program was:" >&5 | |
17924 | cat conftest.$ac_ext >&5 | |
17925 | rm -rf conftest* | |
17926 | eval "ac_cv_func_$ac_func=no" | |
17927 | fi | |
17928 | rm -f conftest* | |
17929 | fi | |
703e0a69 | 17930 | |
a0b9e27f MB |
17931 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17932 | echo "$ac_t""yes" 1>&6 | |
17933 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17934 | cat >> confdefs.h <<EOF | |
17935 | #define $ac_tr_func 1 | |
17936 | EOF | |
17937 | ||
17938 | else | |
17939 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
17940 | fi |
17941 | done | |
17942 | ||
8284b0c5 | 17943 | |
4f14bcd8 | 17944 | for ac_func in putenv setenv |
10f2d63a | 17945 | do |
a0b9e27f | 17946 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 17947 | echo "configure:17948: checking for $ac_func" >&5 |
a0b9e27f MB |
17948 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17949 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17950 | else | |
17951 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 17952 | #line 17953 "configure" |
af15babd VZ |
17953 | #include "confdefs.h" |
17954 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17955 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17956 | #include <assert.h> |
17957 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17958 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17959 | builtin and then its argument prototype would still apply. */ |
17960 | char $ac_func(); | |
17961 | ||
17962 | int main() { | |
17963 | ||
af15babd VZ |
17964 | /* The GNU C library defines this for functions which it implements |
17965 | to always fail with ENOSYS. Some functions are actually named | |
17966 | something starting with __ and the normal name is an alias. */ | |
17967 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17968 | choke me | |
17969 | #else | |
a0b9e27f | 17970 | $ac_func(); |
af15babd VZ |
17971 | #endif |
17972 | ||
a0b9e27f MB |
17973 | ; return 0; } |
17974 | EOF | |
f7f78039 | 17975 | if { (eval echo configure:17976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17976 | rm -rf conftest* |
17977 | eval "ac_cv_func_$ac_func=yes" | |
17978 | else | |
17979 | echo "configure: failed program was:" >&5 | |
17980 | cat conftest.$ac_ext >&5 | |
17981 | rm -rf conftest* | |
17982 | eval "ac_cv_func_$ac_func=no" | |
17983 | fi | |
17984 | rm -f conftest* | |
17985 | fi | |
17986 | ||
17987 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17988 | echo "$ac_t""yes" 1>&6 | |
17989 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17990 | cat >> confdefs.h <<EOF | |
17991 | #define $ac_tr_func 1 | |
17992 | EOF | |
4f14bcd8 | 17993 | break |
a0b9e27f MB |
17994 | else |
17995 | echo "$ac_t""no" 1>&6 | |
af15babd | 17996 | fi |
af15babd VZ |
17997 | done |
17998 | ||
8284b0c5 | 17999 | |
4f14bcd8 GD |
18000 | HAVE_SOME_SLEEP_FUNC=0 |
18001 | if test "$USE_BEOS" = 1; then | |
a0b9e27f | 18002 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18003 | #define HAVE_SLEEP 1 |
a0b9e27f | 18004 | EOF |
af15babd | 18005 | |
4f14bcd8 | 18006 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
18007 | fi |
18008 | ||
4f14bcd8 | 18009 | if test "$USE_DARWIN" = 1; then |
a0b9e27f | 18010 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18011 | #define HAVE_USLEEP 1 |
a0b9e27f | 18012 | EOF |
10f2d63a | 18013 | |
4f14bcd8 | 18014 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
18015 | fi |
18016 | ||
4f14bcd8 GD |
18017 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
18018 | POSIX4_LINK= | |
a0b9e27f | 18019 | for ac_func in nanosleep |
4f14bcd8 | 18020 | do |
a0b9e27f | 18021 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 18022 | echo "configure:18023: checking for $ac_func" >&5 |
a0b9e27f MB |
18023 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18024 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18025 | else | |
18026 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 18027 | #line 18028 "configure" |
10f2d63a | 18028 | #include "confdefs.h" |
4f14bcd8 | 18029 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18030 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18031 | #include <assert.h> |
10f2d63a VZ |
18032 | /* Override any gcc2 internal prototype to avoid an error. */ |
18033 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18034 | builtin and then its argument prototype would still apply. */ |
18035 | char $ac_func(); | |
18036 | ||
18037 | int main() { | |
18038 | ||
4f14bcd8 GD |
18039 | /* The GNU C library defines this for functions which it implements |
18040 | to always fail with ENOSYS. Some functions are actually named | |
18041 | something starting with __ and the normal name is an alias. */ | |
18042 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18043 | choke me | |
18044 | #else | |
a0b9e27f | 18045 | $ac_func(); |
4f14bcd8 GD |
18046 | #endif |
18047 | ||
a0b9e27f MB |
18048 | ; return 0; } |
18049 | EOF | |
f7f78039 | 18050 | if { (eval echo configure:18051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18051 | rm -rf conftest* |
18052 | eval "ac_cv_func_$ac_func=yes" | |
18053 | else | |
18054 | echo "configure: failed program was:" >&5 | |
18055 | cat conftest.$ac_ext >&5 | |
18056 | rm -rf conftest* | |
18057 | eval "ac_cv_func_$ac_func=no" | |
18058 | fi | |
18059 | rm -f conftest* | |
18060 | fi | |
18061 | ||
18062 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18063 | echo "$ac_t""yes" 1>&6 | |
18064 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18065 | cat >> confdefs.h <<EOF | |
18066 | #define $ac_tr_func 1 | |
18067 | EOF | |
18068 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18069 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 18070 | EOF |
4f14bcd8 | 18071 | |
10f2d63a | 18072 | else |
a0b9e27f MB |
18073 | echo "$ac_t""no" 1>&6 |
18074 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
f7f78039 | 18075 | echo "configure:18076: checking for nanosleep in -lposix4" >&5 |
a0b9e27f MB |
18076 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
18077 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18078 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18079 | else |
a0b9e27f | 18080 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18081 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 18082 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 18083 | #line 18084 "configure" |
10f2d63a VZ |
18084 | #include "confdefs.h" |
18085 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18086 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18087 | builtin and then its argument prototype would still apply. */ |
18088 | char nanosleep(); | |
18089 | ||
18090 | int main() { | |
18091 | nanosleep() | |
18092 | ; return 0; } | |
18093 | EOF | |
f7f78039 | 18094 | if { (eval echo configure:18095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18095 | rm -rf conftest* |
18096 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18097 | else | |
18098 | echo "configure: failed program was:" >&5 | |
18099 | cat conftest.$ac_ext >&5 | |
18100 | rm -rf conftest* | |
18101 | eval "ac_cv_lib_$ac_lib_var=no" | |
18102 | fi | |
18103 | rm -f conftest* | |
18104 | LIBS="$ac_save_LIBS" | |
18105 | ||
18106 | fi | |
18107 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18108 | echo "$ac_t""yes" 1>&6 | |
18109 | ||
18110 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18111 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 18112 | EOF |
4f14bcd8 | 18113 | |
3d63bc3a | 18114 | POSIX4_LINK=" -lposix4" |
a0b9e27f | 18115 | |
10f2d63a | 18116 | else |
a0b9e27f | 18117 | echo "$ac_t""no" 1>&6 |
10f2d63a | 18118 | |
a0b9e27f | 18119 | for ac_func in usleep |
4f14bcd8 | 18120 | do |
a0b9e27f | 18121 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 18122 | echo "configure:18123: checking for $ac_func" >&5 |
a0b9e27f MB |
18123 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18124 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18125 | else | |
18126 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 18127 | #line 18128 "configure" |
10f2d63a | 18128 | #include "confdefs.h" |
4f14bcd8 | 18129 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18130 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18131 | #include <assert.h> |
18132 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18133 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18134 | builtin and then its argument prototype would still apply. */ |
18135 | char $ac_func(); | |
18136 | ||
18137 | int main() { | |
18138 | ||
4f14bcd8 GD |
18139 | /* The GNU C library defines this for functions which it implements |
18140 | to always fail with ENOSYS. Some functions are actually named | |
18141 | something starting with __ and the normal name is an alias. */ | |
18142 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18143 | choke me | |
18144 | #else | |
a0b9e27f | 18145 | $ac_func(); |
4f14bcd8 GD |
18146 | #endif |
18147 | ||
a0b9e27f MB |
18148 | ; return 0; } |
18149 | EOF | |
f7f78039 | 18150 | if { (eval echo configure:18151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18151 | rm -rf conftest* |
18152 | eval "ac_cv_func_$ac_func=yes" | |
18153 | else | |
18154 | echo "configure: failed program was:" >&5 | |
18155 | cat conftest.$ac_ext >&5 | |
18156 | rm -rf conftest* | |
18157 | eval "ac_cv_func_$ac_func=no" | |
18158 | fi | |
18159 | rm -f conftest* | |
18160 | fi | |
18161 | ||
18162 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18163 | echo "$ac_t""yes" 1>&6 | |
18164 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18165 | cat >> confdefs.h <<EOF | |
18166 | #define $ac_tr_func 1 | |
18167 | EOF | |
18168 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18169 | #define HAVE_USLEEP 1 |
a0b9e27f | 18170 | EOF |
4f14bcd8 | 18171 | |
698dcdb6 | 18172 | else |
a0b9e27f MB |
18173 | echo "$ac_t""no" 1>&6 |
18174 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
18175 | ||
10f2d63a | 18176 | fi |
4f14bcd8 | 18177 | done |
10f2d63a | 18178 | |
a0b9e27f MB |
18179 | |
18180 | ||
6232543b | 18181 | fi |
10f2d63a | 18182 | |
a0b9e27f MB |
18183 | |
18184 | ||
1e487827 | 18185 | fi |
4f14bcd8 | 18186 | done |
703e0a69 | 18187 | |
10f2d63a VZ |
18188 | fi |
18189 | ||
4f14bcd8 | 18190 | for ac_func in uname gethostname |
70846f0a | 18191 | do |
a0b9e27f | 18192 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 18193 | echo "configure:18194: checking for $ac_func" >&5 |
a0b9e27f MB |
18194 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18195 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18196 | else | |
18197 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 18198 | #line 18199 "configure" |
70846f0a VZ |
18199 | #include "confdefs.h" |
18200 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 18201 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
18202 | #include <assert.h> |
18203 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18204 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18205 | builtin and then its argument prototype would still apply. */ |
18206 | char $ac_func(); | |
18207 | ||
18208 | int main() { | |
18209 | ||
70846f0a VZ |
18210 | /* The GNU C library defines this for functions which it implements |
18211 | to always fail with ENOSYS. Some functions are actually named | |
18212 | something starting with __ and the normal name is an alias. */ | |
18213 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18214 | choke me | |
18215 | #else | |
a0b9e27f | 18216 | $ac_func(); |
70846f0a VZ |
18217 | #endif |
18218 | ||
a0b9e27f MB |
18219 | ; return 0; } |
18220 | EOF | |
f7f78039 | 18221 | if { (eval echo configure:18222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18222 | rm -rf conftest* |
18223 | eval "ac_cv_func_$ac_func=yes" | |
18224 | else | |
18225 | echo "configure: failed program was:" >&5 | |
18226 | cat conftest.$ac_ext >&5 | |
18227 | rm -rf conftest* | |
18228 | eval "ac_cv_func_$ac_func=no" | |
18229 | fi | |
18230 | rm -f conftest* | |
18231 | fi | |
18232 | ||
18233 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18234 | echo "$ac_t""yes" 1>&6 | |
18235 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18236 | cat >> confdefs.h <<EOF | |
18237 | #define $ac_tr_func 1 | |
18238 | EOF | |
4f14bcd8 | 18239 | break |
a0b9e27f MB |
18240 | else |
18241 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
18242 | fi |
18243 | done | |
18244 | ||
8284b0c5 MB |
18245 | |
18246 | ||
a0b9e27f MB |
18247 | ac_ext=C |
18248 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 18249 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
18250 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18251 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18252 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 18253 | |
4f14bcd8 GD |
18254 | |
18255 | for ac_func in strtok_r | |
10f2d63a | 18256 | do |
a0b9e27f | 18257 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 18258 | echo "configure:18259: checking for $ac_func" >&5 |
a0b9e27f MB |
18259 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18260 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18261 | else | |
18262 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 18263 | #line 18264 "configure" |
10f2d63a | 18264 | #include "confdefs.h" |
4f14bcd8 | 18265 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18266 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18267 | #include <assert.h> |
18268 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18269 | #ifdef __cplusplus | |
18270 | extern "C" | |
18271 | #endif | |
18272 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18273 | builtin and then its argument prototype would still apply. */ |
18274 | char $ac_func(); | |
18275 | ||
18276 | int main() { | |
18277 | ||
4f14bcd8 GD |
18278 | /* The GNU C library defines this for functions which it implements |
18279 | to always fail with ENOSYS. Some functions are actually named | |
18280 | something starting with __ and the normal name is an alias. */ | |
18281 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18282 | choke me | |
18283 | #else | |
a0b9e27f | 18284 | $ac_func(); |
4f14bcd8 GD |
18285 | #endif |
18286 | ||
a0b9e27f MB |
18287 | ; return 0; } |
18288 | EOF | |
f7f78039 | 18289 | if { (eval echo configure:18290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18290 | rm -rf conftest* |
18291 | eval "ac_cv_func_$ac_func=yes" | |
18292 | else | |
18293 | echo "configure: failed program was:" >&5 | |
18294 | cat conftest.$ac_ext >&5 | |
18295 | rm -rf conftest* | |
18296 | eval "ac_cv_func_$ac_func=no" | |
18297 | fi | |
18298 | rm -f conftest* | |
18299 | fi | |
4f14bcd8 | 18300 | |
a0b9e27f MB |
18301 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18302 | echo "$ac_t""yes" 1>&6 | |
18303 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18304 | cat >> confdefs.h <<EOF | |
18305 | #define $ac_tr_func 1 | |
18306 | EOF | |
18307 | ||
18308 | else | |
18309 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
18310 | fi |
18311 | done | |
18312 | ||
8284b0c5 | 18313 | |
4f14bcd8 | 18314 | ac_ext=c |
a0b9e27f | 18315 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 18316 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
18317 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18318 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18319 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 18320 | |
5c6fa7d2 | 18321 | |
8284b0c5 | 18322 | INET_LINK= |
4f14bcd8 GD |
18323 | for ac_func in inet_addr |
18324 | do | |
a0b9e27f | 18325 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 18326 | echo "configure:18327: checking for $ac_func" >&5 |
a0b9e27f MB |
18327 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18328 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18329 | else | |
18330 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 18331 | #line 18332 "configure" |
10f2d63a | 18332 | #include "confdefs.h" |
4f14bcd8 | 18333 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18334 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18335 | #include <assert.h> |
10f2d63a VZ |
18336 | /* Override any gcc2 internal prototype to avoid an error. */ |
18337 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18338 | builtin and then its argument prototype would still apply. */ |
18339 | char $ac_func(); | |
18340 | ||
18341 | int main() { | |
18342 | ||
4f14bcd8 GD |
18343 | /* The GNU C library defines this for functions which it implements |
18344 | to always fail with ENOSYS. Some functions are actually named | |
18345 | something starting with __ and the normal name is an alias. */ | |
18346 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18347 | choke me | |
18348 | #else | |
a0b9e27f | 18349 | $ac_func(); |
4f14bcd8 GD |
18350 | #endif |
18351 | ||
a0b9e27f MB |
18352 | ; return 0; } |
18353 | EOF | |
f7f78039 | 18354 | if { (eval echo configure:18355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18355 | rm -rf conftest* |
18356 | eval "ac_cv_func_$ac_func=yes" | |
18357 | else | |
18358 | echo "configure: failed program was:" >&5 | |
18359 | cat conftest.$ac_ext >&5 | |
18360 | rm -rf conftest* | |
18361 | eval "ac_cv_func_$ac_func=no" | |
18362 | fi | |
18363 | rm -f conftest* | |
18364 | fi | |
18365 | ||
18366 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18367 | echo "$ac_t""yes" 1>&6 | |
18368 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18369 | cat >> confdefs.h <<EOF | |
18370 | #define $ac_tr_func 1 | |
18371 | EOF | |
18372 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18373 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 18374 | EOF |
10f2d63a VZ |
18375 | |
18376 | else | |
a0b9e27f MB |
18377 | echo "$ac_t""no" 1>&6 |
18378 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
f7f78039 | 18379 | echo "configure:18380: checking for inet_addr in -lnsl" >&5 |
a0b9e27f MB |
18380 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
18381 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18382 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18383 | else |
a0b9e27f | 18384 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18385 | LIBS="-lnsl $LIBS" |
a0b9e27f | 18386 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 18387 | #line 18388 "configure" |
10f2d63a VZ |
18388 | #include "confdefs.h" |
18389 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18390 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18391 | builtin and then its argument prototype would still apply. */ |
18392 | char inet_addr(); | |
18393 | ||
18394 | int main() { | |
18395 | inet_addr() | |
18396 | ; return 0; } | |
18397 | EOF | |
f7f78039 | 18398 | if { (eval echo configure:18399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18399 | rm -rf conftest* |
18400 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18401 | else | |
18402 | echo "configure: failed program was:" >&5 | |
18403 | cat conftest.$ac_ext >&5 | |
18404 | rm -rf conftest* | |
18405 | eval "ac_cv_lib_$ac_lib_var=no" | |
18406 | fi | |
18407 | rm -f conftest* | |
18408 | LIBS="$ac_save_LIBS" | |
18409 | ||
18410 | fi | |
18411 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18412 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 18413 | INET_LINK="nsl" |
10f2d63a | 18414 | else |
a0b9e27f MB |
18415 | echo "$ac_t""no" 1>&6 |
18416 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
f7f78039 | 18417 | echo "configure:18418: checking for inet_addr in -lresolv" >&5 |
a0b9e27f MB |
18418 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
18419 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18420 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18421 | else |
a0b9e27f | 18422 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18423 | LIBS="-lresolv $LIBS" |
a0b9e27f | 18424 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 18425 | #line 18426 "configure" |
7b4a847f | 18426 | #include "confdefs.h" |
5c6fa7d2 | 18427 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 18428 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18429 | builtin and then its argument prototype would still apply. */ |
18430 | char inet_addr(); | |
18431 | ||
18432 | int main() { | |
18433 | inet_addr() | |
18434 | ; return 0; } | |
18435 | EOF | |
f7f78039 | 18436 | if { (eval echo configure:18437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18437 | rm -rf conftest* |
18438 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18439 | else | |
18440 | echo "configure: failed program was:" >&5 | |
18441 | cat conftest.$ac_ext >&5 | |
18442 | rm -rf conftest* | |
18443 | eval "ac_cv_lib_$ac_lib_var=no" | |
18444 | fi | |
18445 | rm -f conftest* | |
18446 | LIBS="$ac_save_LIBS" | |
18447 | ||
18448 | fi | |
18449 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18450 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 18451 | INET_LINK="resolv" |
698dcdb6 | 18452 | else |
a0b9e27f MB |
18453 | echo "$ac_t""no" 1>&6 |
18454 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 | |
f7f78039 | 18455 | echo "configure:18456: checking for inet_addr in -lsocket" >&5 |
a0b9e27f MB |
18456 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
18457 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18458 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3c011993 | 18459 | else |
a0b9e27f | 18460 | ac_save_LIBS="$LIBS" |
3c011993 | 18461 | LIBS="-lsocket $LIBS" |
a0b9e27f | 18462 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 18463 | #line 18464 "configure" |
3c011993 VZ |
18464 | #include "confdefs.h" |
18465 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18466 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18467 | builtin and then its argument prototype would still apply. */ |
18468 | char inet_addr(); | |
4f14bcd8 | 18469 | |
a0b9e27f MB |
18470 | int main() { |
18471 | inet_addr() | |
18472 | ; return 0; } | |
18473 | EOF | |
f7f78039 | 18474 | if { (eval echo configure:18475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18475 | rm -rf conftest* |
18476 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18477 | else | |
18478 | echo "configure: failed program was:" >&5 | |
18479 | cat conftest.$ac_ext >&5 | |
18480 | rm -rf conftest* | |
18481 | eval "ac_cv_lib_$ac_lib_var=no" | |
8284b0c5 | 18482 | fi |
a0b9e27f MB |
18483 | rm -f conftest* |
18484 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 18485 | |
7b4a847f | 18486 | fi |
a0b9e27f MB |
18487 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18488 | echo "$ac_t""yes" 1>&6 | |
18489 | INET_LINK="socket" | |
18490 | ||
18491 | else | |
18492 | echo "$ac_t""no" 1>&6 | |
18493 | fi | |
579d8138 | 18494 | |
a0b9e27f | 18495 | |
5c6fa7d2 | 18496 | fi |
52127426 | 18497 | |
a0b9e27f MB |
18498 | |
18499 | fi | |
247f5006 | 18500 | |
a0b9e27f | 18501 | |
8284b0c5 | 18502 | |
698dcdb6 | 18503 | fi |
4f14bcd8 GD |
18504 | done |
18505 | ||
8284b0c5 | 18506 | |
4f14bcd8 GD |
18507 | for ac_func in inet_aton |
18508 | do | |
a0b9e27f | 18509 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 18510 | echo "configure:18511: checking for $ac_func" >&5 |
a0b9e27f MB |
18511 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18512 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18513 | else | |
18514 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 18515 | #line 18516 "configure" |
f6bcfd97 | 18516 | #include "confdefs.h" |
4f14bcd8 | 18517 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18518 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18519 | #include <assert.h> |
f6bcfd97 BP |
18520 | /* Override any gcc2 internal prototype to avoid an error. */ |
18521 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18522 | builtin and then its argument prototype would still apply. */ |
18523 | char $ac_func(); | |
18524 | ||
18525 | int main() { | |
18526 | ||
4f14bcd8 GD |
18527 | /* The GNU C library defines this for functions which it implements |
18528 | to always fail with ENOSYS. Some functions are actually named | |
18529 | something starting with __ and the normal name is an alias. */ | |
18530 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18531 | choke me | |
18532 | #else | |
a0b9e27f | 18533 | $ac_func(); |
4f14bcd8 GD |
18534 | #endif |
18535 | ||
a0b9e27f MB |
18536 | ; return 0; } |
18537 | EOF | |
f7f78039 | 18538 | if { (eval echo configure:18539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18539 | rm -rf conftest* |
18540 | eval "ac_cv_func_$ac_func=yes" | |
18541 | else | |
18542 | echo "configure: failed program was:" >&5 | |
18543 | cat conftest.$ac_ext >&5 | |
18544 | rm -rf conftest* | |
18545 | eval "ac_cv_func_$ac_func=no" | |
18546 | fi | |
18547 | rm -f conftest* | |
18548 | fi | |
18549 | ||
18550 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18551 | echo "$ac_t""yes" 1>&6 | |
18552 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18553 | cat >> confdefs.h <<EOF | |
18554 | #define $ac_tr_func 1 | |
18555 | EOF | |
18556 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18557 | #define HAVE_INET_ATON 1 |
a0b9e27f | 18558 | EOF |
4f14bcd8 | 18559 | |
10f2d63a | 18560 | else |
a0b9e27f MB |
18561 | echo "$ac_t""no" 1>&6 |
18562 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
f7f78039 | 18563 | echo "configure:18564: checking for inet_aton in -l$INET_LINK" >&5 |
a0b9e27f MB |
18564 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
18565 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18566 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 18567 | else |
a0b9e27f | 18568 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18569 | LIBS="-l$INET_LINK $LIBS" |
a0b9e27f | 18570 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 18571 | #line 18572 "configure" |
10f2d63a | 18572 | #include "confdefs.h" |
6232543b | 18573 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 18574 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18575 | builtin and then its argument prototype would still apply. */ |
18576 | char inet_aton(); | |
18577 | ||
18578 | int main() { | |
18579 | inet_aton() | |
18580 | ; return 0; } | |
18581 | EOF | |
f7f78039 | 18582 | if { (eval echo configure:18583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18583 | rm -rf conftest* |
18584 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18585 | else | |
18586 | echo "configure: failed program was:" >&5 | |
18587 | cat conftest.$ac_ext >&5 | |
18588 | rm -rf conftest* | |
18589 | eval "ac_cv_lib_$ac_lib_var=no" | |
18590 | fi | |
18591 | rm -f conftest* | |
18592 | LIBS="$ac_save_LIBS" | |
4f14bcd8 | 18593 | |
10f2d63a | 18594 | fi |
a0b9e27f MB |
18595 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18596 | echo "$ac_t""yes" 1>&6 | |
18597 | cat >> confdefs.h <<\EOF | |
18598 | #define HAVE_INET_ATON 1 | |
18599 | EOF | |
10f2d63a | 18600 | |
a0b9e27f MB |
18601 | else |
18602 | echo "$ac_t""no" 1>&6 | |
18603 | fi | |
247f5006 | 18604 | |
a0b9e27f | 18605 | |
10f2d63a | 18606 | fi |
4f14bcd8 | 18607 | done |
10f2d63a | 18608 | |
8284b0c5 | 18609 | |
4f14bcd8 | 18610 | if test "x$INET_LINK" != "x"; then |
a0b9e27f | 18611 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18612 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 18613 | EOF |
4f14bcd8 | 18614 | |
3d63bc3a | 18615 | INET_LINK=" -l$INET_LINK" |
6232543b | 18616 | fi |
10f2d63a | 18617 | |
1e487827 | 18618 | fi |
703e0a69 | 18619 | |
8284b0c5 | 18620 | |
a0b9e27f | 18621 | cat > confcache <<\EOF |
4f14bcd8 GD |
18622 | # This file is a shell script that caches the results of configure |
18623 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
18624 | # scripts and configure runs. It is not useful on other systems. |
18625 | # If it contains results you don't want to keep, you may remove or edit it. | |
4f14bcd8 | 18626 | # |
a0b9e27f MB |
18627 | # By default, configure uses ./config.cache as the cache file, |
18628 | # creating it if it does not exist already. You can give configure | |
18629 | # the --cache-file=FILE option to use a different cache file; that is | |
18630 | # what configure does when it calls configure scripts in | |
18631 | # subdirectories, so they share the cache. | |
18632 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
18633 | # config.status only pays attention to the cache file if you give it the | |
18634 | # --recheck option to rerun configure. | |
4f14bcd8 | 18635 | # |
a0b9e27f | 18636 | EOF |
4f14bcd8 GD |
18637 | # The following way of writing the cache mishandles newlines in values, |
18638 | # but we know of no workaround that is simple, portable, and efficient. | |
18639 | # So, don't put newlines in cache variables' values. | |
18640 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18641 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
18642 | (set) 2>&1 | |
18643 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18644 | *ac_space=\ *) | |
18645 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
18646 | # turns \\\\ into \\, and sed turns \\ into \). | |
18647 | sed -n \ | |
18648 | -e "s/'/'\\\\''/g" \ | |
18649 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
18650 | ;; | |
18651 | *) | |
18652 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18653 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
18654 | ;; | |
18655 | esac >> confcache | |
18656 | if cmp -s $cache_file confcache; then | |
18657 | : | |
18658 | else | |
4f14bcd8 | 18659 | if test -w $cache_file; then |
a0b9e27f MB |
18660 | echo "updating cache $cache_file" |
18661 | cat confcache > $cache_file | |
f6bcfd97 | 18662 | else |
4f14bcd8 | 18663 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 18664 | fi |
4f14bcd8 GD |
18665 | fi |
18666 | rm -f confcache | |
f6bcfd97 | 18667 | |
8284b0c5 | 18668 | |
a0b9e27f | 18669 | |
009fead0 | 18670 | CPP_MT_FLAG= |
4f14bcd8 GD |
18671 | if test "$TOOLKIT" != "MSW"; then |
18672 | ||
a0b9e27f | 18673 | |
7274f1c7 | 18674 | THREADS_LINK= |
009fead0 | 18675 | THREADS_CFLAGS= |
7274f1c7 RL |
18676 | |
18677 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 18678 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 18679 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
18680 | wxUSE_THREADS="no" |
18681 | fi | |
4f14bcd8 | 18682 | fi |
4f14bcd8 | 18683 | |
7274f1c7 | 18684 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f MB |
18685 | |
18686 | ||
009fead0 VZ |
18687 | THREAD_OPTS="-pthread" |
18688 | case "${host}" in | |
18689 | *-*-solaris2* | *-*-sunos4* ) | |
18690 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 18691 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
18692 | else |
18693 | THREAD_OPTS="-mt $THREAD_OPTS" | |
18694 | fi | |
18695 | ;; | |
18696 | *-*-freebsd*) | |
18697 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
18698 | ;; | |
17234b26 MB |
18699 | *-*-darwin* | *-*-cygwin* ) |
18700 | THREAD_OPTS="" | |
4101db81 | 18701 | ;; |
8f4a9a10 | 18702 | *-*-aix*) |
009fead0 VZ |
18703 | THREAD_OPTS="pthreads" |
18704 | ;; | |
4f5a7f74 VZ |
18705 | *-hp-hpux* ) |
18706 | if test "x$GCC" != "xyes"; then | |
18707 | THREAD_OPTS="" | |
18708 | fi | |
009fead0 | 18709 | esac |
4f14bcd8 | 18710 | |
02a1dfba | 18711 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 18712 | |
009fead0 VZ |
18713 | THREADS_OK=no |
18714 | for flag in $THREAD_OPTS; do | |
18715 | case $flag in | |
18716 | none) | |
a0b9e27f | 18717 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 |
f7f78039 | 18718 | echo "configure:18719: checking whether pthreads work without any flags" >&5 |
009fead0 | 18719 | ;; |
698dcdb6 | 18720 | |
009fead0 | 18721 | -*) |
a0b9e27f | 18722 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 |
f7f78039 | 18723 | echo "configure:18724: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
18724 | THREADS_CFLAGS="$flag" |
18725 | ;; | |
698dcdb6 | 18726 | |
009fead0 | 18727 | *) |
a0b9e27f | 18728 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 |
f7f78039 | 18729 | echo "configure:18730: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
18730 | THREADS_LINK="-l$flag" |
18731 | ;; | |
18732 | esac | |
10f2d63a | 18733 | |
009fead0 VZ |
18734 | save_LIBS="$LIBS" |
18735 | save_CFLAGS="$CFLAGS" | |
18736 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 18737 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 18738 | |
a0b9e27f | 18739 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 18740 | #line 18741 "configure" |
009fead0 VZ |
18741 | #include "confdefs.h" |
18742 | #include <pthread.h> | |
a0b9e27f | 18743 | int main() { |
009fead0 | 18744 | pthread_create(0,0,0,0); |
a0b9e27f MB |
18745 | ; return 0; } |
18746 | EOF | |
f7f78039 | 18747 | if { (eval echo configure:18748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 18748 | rm -rf conftest* |
009fead0 | 18749 | THREADS_OK=yes |
10f2d63a | 18750 | else |
a0b9e27f MB |
18751 | echo "configure: failed program was:" >&5 |
18752 | cat conftest.$ac_ext >&5 | |
6232543b | 18753 | fi |
a0b9e27f | 18754 | rm -f conftest* |
698dcdb6 | 18755 | |
009fead0 VZ |
18756 | LIBS="$save_LIBS" |
18757 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 18758 | |
a0b9e27f | 18759 | echo "$ac_t""$THREADS_OK" 1>&6 |
009fead0 VZ |
18760 | if test "x$THREADS_OK" = "xyes"; then |
18761 | break; | |
18762 | fi | |
d9b9876f | 18763 | |
009fead0 VZ |
18764 | THREADS_LINK="" |
18765 | THREADS_CFLAGS="" | |
18766 | done | |
4f14bcd8 | 18767 | |
009fead0 VZ |
18768 | if test "x$THREADS_OK" != "xyes"; then |
18769 | wxUSE_THREADS=no | |
a0b9e27f | 18770 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
009fead0 | 18771 | else |
db82f09e VZ |
18772 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
18773 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 18774 | |
a0b9e27f | 18775 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
f7f78039 | 18776 | echo "configure:18777: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
18777 | flag=no |
18778 | case "${host}" in | |
2b5f62a0 VZ |
18779 | *-aix*) |
18780 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
18781 | flag="-D_THREAD_SAFE" | |
18782 | ;; | |
18783 | *-freebsd*) | |
009fead0 VZ |
18784 | flag="-D_THREAD_SAFE" |
18785 | ;; | |
06313569 GD |
18786 | *-hp-hpux* ) |
18787 | flag="-D_REENTRANT" | |
4f5a7f74 VZ |
18788 | if test "x$GCC" != "xyes"; then |
18789 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
18790 | fi | |
06313569 | 18791 | ;; |
009fead0 VZ |
18792 | *solaris* | alpha*-osf*) |
18793 | flag="-D_REENTRANT" | |
18794 | ;; | |
18795 | esac | |
a0b9e27f | 18796 | echo "$ac_t""${flag}" 1>&6 |
009fead0 | 18797 | if test "x$flag" != xno; then |
04727afd | 18798 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
18799 | fi |
18800 | ||
009fead0 | 18801 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 18802 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
18803 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
18804 | fi | |
18805 | fi | |
4f14bcd8 | 18806 | fi |
4f14bcd8 | 18807 | |
7274f1c7 | 18808 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f | 18809 | for ac_func in thr_setconcurrency |
4f14bcd8 | 18810 | do |
a0b9e27f | 18811 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 18812 | echo "configure:18813: checking for $ac_func" >&5 |
a0b9e27f MB |
18813 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18814 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18815 | else | |
18816 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 18817 | #line 18818 "configure" |
d9b9876f | 18818 | #include "confdefs.h" |
4f14bcd8 | 18819 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18820 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18821 | #include <assert.h> |
18822 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18823 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18824 | builtin and then its argument prototype would still apply. */ |
18825 | char $ac_func(); | |
18826 | ||
18827 | int main() { | |
18828 | ||
4f14bcd8 GD |
18829 | /* The GNU C library defines this for functions which it implements |
18830 | to always fail with ENOSYS. Some functions are actually named | |
18831 | something starting with __ and the normal name is an alias. */ | |
18832 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18833 | choke me | |
18834 | #else | |
a0b9e27f | 18835 | $ac_func(); |
4f14bcd8 GD |
18836 | #endif |
18837 | ||
a0b9e27f MB |
18838 | ; return 0; } |
18839 | EOF | |
f7f78039 | 18840 | if { (eval echo configure:18841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18841 | rm -rf conftest* |
18842 | eval "ac_cv_func_$ac_func=yes" | |
18843 | else | |
18844 | echo "configure: failed program was:" >&5 | |
18845 | cat conftest.$ac_ext >&5 | |
18846 | rm -rf conftest* | |
18847 | eval "ac_cv_func_$ac_func=no" | |
18848 | fi | |
18849 | rm -f conftest* | |
18850 | fi | |
698dcdb6 | 18851 | |
a0b9e27f MB |
18852 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18853 | echo "$ac_t""yes" 1>&6 | |
18854 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18855 | cat >> confdefs.h <<EOF | |
18856 | #define $ac_tr_func 1 | |
18857 | EOF | |
18858 | ||
18859 | else | |
18860 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 18861 | fi |
4f14bcd8 | 18862 | done |
10f2d63a | 18863 | |
8284b0c5 | 18864 | |
a0b9e27f | 18865 | for ac_hdr in sched.h |
4f14bcd8 | 18866 | do |
a0b9e27f MB |
18867 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18868 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f7f78039 | 18869 | echo "configure:18870: checking for $ac_hdr" >&5 |
a0b9e27f MB |
18870 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18871 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18872 | else | |
18873 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 18874 | #line 18875 "configure" |
247f5006 | 18875 | #include "confdefs.h" |
a0b9e27f MB |
18876 | #include <$ac_hdr> |
18877 | EOF | |
18878 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f7f78039 | 18879 | { (eval echo configure:18880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
18880 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18881 | if test -z "$ac_err"; then | |
18882 | rm -rf conftest* | |
18883 | eval "ac_cv_header_$ac_safe=yes" | |
18884 | else | |
18885 | echo "$ac_err" >&5 | |
18886 | echo "configure: failed program was:" >&5 | |
4f14bcd8 | 18887 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
18888 | rm -rf conftest* |
18889 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 18890 | fi |
a0b9e27f | 18891 | rm -f conftest* |
10f2d63a | 18892 | fi |
a0b9e27f MB |
18893 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18894 | echo "$ac_t""yes" 1>&6 | |
18895 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18896 | cat >> confdefs.h <<EOF | |
18897 | #define $ac_tr_hdr 1 | |
18898 | EOF | |
18899 | ||
18900 | else | |
18901 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 18902 | fi |
4f14bcd8 | 18903 | done |
f6bcfd97 | 18904 | |
009fead0 | 18905 | if test "$ac_cv_header_sched_h" = "yes"; then |
a0b9e27f | 18906 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 |
f7f78039 | 18907 | echo "configure:18908: checking for sched_yield" >&5 |
a0b9e27f MB |
18908 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
18909 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 18910 | else |
a0b9e27f | 18911 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 18912 | #line 18913 "configure" |
4f14bcd8 | 18913 | #include "confdefs.h" |
009fead0 | 18914 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18915 | which can conflict with char sched_yield(); below. */ |
009fead0 | 18916 | #include <assert.h> |
4f14bcd8 GD |
18917 | /* Override any gcc2 internal prototype to avoid an error. */ |
18918 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18919 | builtin and then its argument prototype would still apply. */ |
18920 | char sched_yield(); | |
18921 | ||
18922 | int main() { | |
18923 | ||
009fead0 VZ |
18924 | /* The GNU C library defines this for functions which it implements |
18925 | to always fail with ENOSYS. Some functions are actually named | |
18926 | something starting with __ and the normal name is an alias. */ | |
18927 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
18928 | choke me | |
18929 | #else | |
a0b9e27f | 18930 | sched_yield(); |
009fead0 VZ |
18931 | #endif |
18932 | ||
a0b9e27f MB |
18933 | ; return 0; } |
18934 | EOF | |
f7f78039 | 18935 | if { (eval echo configure:18936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18936 | rm -rf conftest* |
18937 | eval "ac_cv_func_sched_yield=yes" | |
18938 | else | |
18939 | echo "configure: failed program was:" >&5 | |
18940 | cat conftest.$ac_ext >&5 | |
18941 | rm -rf conftest* | |
18942 | eval "ac_cv_func_sched_yield=no" | |
18943 | fi | |
18944 | rm -f conftest* | |
18945 | fi | |
18946 | ||
18947 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
18948 | echo "$ac_t""yes" 1>&6 | |
18949 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18950 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 18951 | EOF |
10f2d63a | 18952 | |
4f14bcd8 | 18953 | else |
a0b9e27f | 18954 | echo "$ac_t""no" 1>&6 |
009fead0 | 18955 | |
a0b9e27f | 18956 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 |
f7f78039 | 18957 | echo "configure:18958: checking for sched_yield in -lposix4" >&5 |
a0b9e27f MB |
18958 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
18959 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18960 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 18961 | else |
a0b9e27f | 18962 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18963 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 18964 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 18965 | #line 18966 "configure" |
4f14bcd8 GD |
18966 | #include "confdefs.h" |
18967 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18968 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18969 | builtin and then its argument prototype would still apply. */ |
18970 | char sched_yield(); | |
18971 | ||
18972 | int main() { | |
18973 | sched_yield() | |
18974 | ; return 0; } | |
18975 | EOF | |
f7f78039 | 18976 | if { (eval echo configure:18977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18977 | rm -rf conftest* |
18978 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18979 | else | |
18980 | echo "configure: failed program was:" >&5 | |
18981 | cat conftest.$ac_ext >&5 | |
18982 | rm -rf conftest* | |
18983 | eval "ac_cv_lib_$ac_lib_var=no" | |
18984 | fi | |
18985 | rm -f conftest* | |
18986 | LIBS="$ac_save_LIBS" | |
18987 | ||
18988 | fi | |
18989 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18990 | echo "$ac_t""yes" 1>&6 | |
18991 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18992 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 18993 | EOF |
3d63bc3a | 18994 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 18995 | else |
a0b9e27f MB |
18996 | echo "$ac_t""no" 1>&6 |
18997 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
18998 | ||
54276ccf VZ |
18999 | fi |
19000 | ||
a0b9e27f MB |
19001 | |
19002 | ||
4f14bcd8 | 19003 | fi |
698dcdb6 | 19004 | |
009fead0 | 19005 | fi |
10f2d63a | 19006 | |
7274f1c7 | 19007 | HAVE_PRIOR_FUNCS=0 |
a0b9e27f | 19008 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
f7f78039 | 19009 | echo "configure:19010: checking for pthread_attr_getschedpolicy" >&5 |
a0b9e27f MB |
19010 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
19011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 19012 | else |
a0b9e27f | 19013 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 19014 | #line 19015 "configure" |
422107f9 | 19015 | #include "confdefs.h" |
009fead0 | 19016 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19017 | which can conflict with char pthread_attr_getschedpolicy(); below. */ |
009fead0 | 19018 | #include <assert.h> |
4f14bcd8 GD |
19019 | /* Override any gcc2 internal prototype to avoid an error. */ |
19020 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19021 | builtin and then its argument prototype would still apply. */ |
19022 | char pthread_attr_getschedpolicy(); | |
19023 | ||
19024 | int main() { | |
19025 | ||
009fead0 VZ |
19026 | /* The GNU C library defines this for functions which it implements |
19027 | to always fail with ENOSYS. Some functions are actually named | |
19028 | something starting with __ and the normal name is an alias. */ | |
19029 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
19030 | choke me | |
19031 | #else | |
a0b9e27f | 19032 | pthread_attr_getschedpolicy(); |
009fead0 VZ |
19033 | #endif |
19034 | ||
a0b9e27f MB |
19035 | ; return 0; } |
19036 | EOF | |
f7f78039 | 19037 | if { (eval echo configure:19038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19038 | rm -rf conftest* |
19039 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" | |
19040 | else | |
19041 | echo "configure: failed program was:" >&5 | |
19042 | cat conftest.$ac_ext >&5 | |
19043 | rm -rf conftest* | |
19044 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" | |
19045 | fi | |
19046 | rm -f conftest* | |
19047 | fi | |
19048 | ||
19049 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
19050 | echo "$ac_t""yes" 1>&6 | |
19051 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 | |
f7f78039 | 19052 | echo "configure:19053: checking for pthread_attr_setschedparam" >&5 |
a0b9e27f MB |
19053 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
19054 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 19055 | else |
a0b9e27f | 19056 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 19057 | #line 19058 "configure" |
a0b9e27f MB |
19058 | #include "confdefs.h" |
19059 | /* System header to define __stub macros and hopefully few prototypes, | |
19060 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
009fead0 | 19061 | #include <assert.h> |
422107f9 VZ |
19062 | /* Override any gcc2 internal prototype to avoid an error. */ |
19063 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19064 | builtin and then its argument prototype would still apply. */ |
19065 | char pthread_attr_setschedparam(); | |
19066 | ||
19067 | int main() { | |
19068 | ||
009fead0 VZ |
19069 | /* The GNU C library defines this for functions which it implements |
19070 | to always fail with ENOSYS. Some functions are actually named | |
19071 | something starting with __ and the normal name is an alias. */ | |
19072 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
19073 | choke me | |
19074 | #else | |
a0b9e27f | 19075 | pthread_attr_setschedparam(); |
009fead0 VZ |
19076 | #endif |
19077 | ||
a0b9e27f MB |
19078 | ; return 0; } |
19079 | EOF | |
f7f78039 | 19080 | if { (eval echo configure:19081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19081 | rm -rf conftest* |
19082 | eval "ac_cv_func_pthread_attr_setschedparam=yes" | |
19083 | else | |
19084 | echo "configure: failed program was:" >&5 | |
19085 | cat conftest.$ac_ext >&5 | |
19086 | rm -rf conftest* | |
19087 | eval "ac_cv_func_pthread_attr_setschedparam=no" | |
19088 | fi | |
19089 | rm -f conftest* | |
19090 | fi | |
19091 | ||
19092 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
19093 | echo "$ac_t""yes" 1>&6 | |
19094 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 | |
f7f78039 | 19095 | echo "configure:19096: checking for sched_get_priority_max" >&5 |
a0b9e27f MB |
19096 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
19097 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19098 | else | |
19099 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 19100 | #line 19101 "configure" |
422107f9 | 19101 | #include "confdefs.h" |
009fead0 VZ |
19102 | /* System header to define __stub macros and hopefully few prototypes |
19103 | else | |
a0b9e27f MB |
19104 | echo "$ac_t""no" 1>&6 |
19105 | which can conflict with char sched_get_priority_max(); below. */ | |
009fead0 | 19106 | #include <assert.h> |
4f14bcd8 GD |
19107 | /* Override any gcc2 internal prototype to avoid an error. */ |
19108 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19109 | builtin and then its argument prototype would still apply. */ |
19110 | char sched_get_priority_max(); | |
19111 | ||
19112 | int main() { | |
19113 | ||
009fead0 VZ |
19114 | /* The GNU C library defines this for functions which it implements |
19115 | to always fail with ENOSYS. Some functions are actually named | |
19116 | something starting with __ and the normal name is an alias. */ | |
19117 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
19118 | choke me | |
19119 | #else | |
a0b9e27f | 19120 | sched_get_priority_max(); |
009fead0 VZ |
19121 | #endif |
19122 | ||
a0b9e27f MB |
19123 | ; return 0; } |
19124 | EOF | |
f7f78039 | 19125 | if { (eval echo configure:19126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19126 | rm -rf conftest* |
19127 | eval "ac_cv_func_sched_get_priority_max=yes" | |
19128 | else | |
19129 | echo "configure: failed program was:" >&5 | |
19130 | cat conftest.$ac_ext >&5 | |
19131 | rm -rf conftest* | |
19132 | eval "ac_cv_func_sched_get_priority_max=no" | |
19133 | fi | |
19134 | rm -f conftest* | |
19135 | fi | |
19136 | ||
19137 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
19138 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
19139 | HAVE_PRIOR_FUNCS=1 |
19140 | else | |
a0b9e27f MB |
19141 | echo "$ac_t""no" 1>&6 |
19142 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
f7f78039 | 19143 | echo "configure:19144: checking for sched_get_priority_max in -lposix4" >&5 |
a0b9e27f MB |
19144 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
19145 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19146 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 19147 | else |
a0b9e27f | 19148 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 19149 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 19150 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 19151 | #line 19152 "configure" |
422107f9 VZ |
19152 | #include "confdefs.h" |
19153 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19154 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19155 | builtin and then its argument prototype would still apply. */ |
19156 | char sched_get_priority_max(); | |
19157 | ||
19158 | int main() { | |
19159 | sched_get_priority_max() | |
19160 | ; return 0; } | |
19161 | EOF | |
f7f78039 | 19162 | if { (eval echo configure:19163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19163 | rm -rf conftest* |
19164 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19165 | else | |
19166 | echo "configure: failed program was:" >&5 | |
19167 | cat conftest.$ac_ext >&5 | |
19168 | rm -rf conftest* | |
19169 | eval "ac_cv_lib_$ac_lib_var=no" | |
19170 | fi | |
19171 | rm -f conftest* | |
19172 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 19173 | |
a0b9e27f MB |
19174 | fi |
19175 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19176 | echo "$ac_t""yes" 1>&6 | |
19177 | ||
7274f1c7 RL |
19178 | HAVE_PRIOR_FUNCS=1 |
19179 | POSIX4_LINK=" -lposix4" | |
a0b9e27f MB |
19180 | |
19181 | else | |
19182 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 19183 | fi |
463abc64 | 19184 | |
a0b9e27f | 19185 | |
328a083c | 19186 | fi |
463abc64 | 19187 | |
a0b9e27f MB |
19188 | |
19189 | else | |
19190 | echo "$ac_t""no" 1>&6 | |
7b4a847f | 19191 | fi |
579d8138 | 19192 | |
a0b9e27f | 19193 | |
5c6fa7d2 | 19194 | fi |
52127426 | 19195 | |
8284b0c5 | 19196 | |
7274f1c7 | 19197 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
a0b9e27f | 19198 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19199 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
a0b9e27f | 19200 | EOF |
463abc64 | 19201 | |
7274f1c7 | 19202 | else |
a0b9e27f | 19203 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
7274f1c7 | 19204 | fi |
463abc64 | 19205 | |
a0b9e27f | 19206 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
f7f78039 | 19207 | echo "configure:19208: checking for pthread_cancel" >&5 |
a0b9e27f MB |
19208 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
19209 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 19210 | else |
a0b9e27f | 19211 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 19212 | #line 19213 "configure" |
422107f9 | 19213 | #include "confdefs.h" |
009fead0 | 19214 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19215 | which can conflict with char pthread_cancel(); below. */ |
009fead0 | 19216 | #include <assert.h> |
422107f9 VZ |
19217 | /* Override any gcc2 internal prototype to avoid an error. */ |
19218 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19219 | builtin and then its argument prototype would still apply. */ |
19220 | char pthread_cancel(); | |
19221 | ||
19222 | int main() { | |
19223 | ||
009fead0 VZ |
19224 | /* The GNU C library defines this for functions which it implements |
19225 | to always fail with ENOSYS. Some functions are actually named | |
19226 | something starting with __ and the normal name is an alias. */ | |
19227 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
19228 | choke me | |
19229 | #else | |
a0b9e27f | 19230 | pthread_cancel(); |
009fead0 VZ |
19231 | #endif |
19232 | ||
a0b9e27f MB |
19233 | ; return 0; } |
19234 | EOF | |
f7f78039 | 19235 | if { (eval echo configure:19236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19236 | rm -rf conftest* |
19237 | eval "ac_cv_func_pthread_cancel=yes" | |
19238 | else | |
19239 | echo "configure: failed program was:" >&5 | |
19240 | cat conftest.$ac_ext >&5 | |
19241 | rm -rf conftest* | |
19242 | eval "ac_cv_func_pthread_cancel=no" | |
19243 | fi | |
19244 | rm -f conftest* | |
19245 | fi | |
19246 | ||
19247 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
19248 | echo "$ac_t""yes" 1>&6 | |
19249 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 19250 | #define HAVE_PTHREAD_CANCEL 1 |
a0b9e27f | 19251 | EOF |
4f14bcd8 | 19252 | |
698dcdb6 | 19253 | else |
a0b9e27f MB |
19254 | echo "$ac_t""no" 1>&6 |
19255 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
422107f9 VZ |
19256 | fi |
19257 | ||
5c6fa7d2 | 19258 | |
a0b9e27f | 19259 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
f7f78039 | 19260 | echo "configure:19261: checking for pthread_cleanup_push/pop" >&5 |
a0b9e27f MB |
19261 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
19262 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 19263 | else |
a0b9e27f MB |
19264 | |
19265 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 19266 | #line 19267 "configure" |
4f14bcd8 GD |
19267 | #include "confdefs.h" |
19268 | #include <pthread.h> | |
a0b9e27f | 19269 | int main() { |
4f14bcd8 | 19270 | |
7274f1c7 RL |
19271 | pthread_cleanup_push(NULL, NULL); |
19272 | pthread_cleanup_pop(0); | |
a0b9e27f MB |
19273 | |
19274 | ; return 0; } | |
19275 | EOF | |
f7f78039 | 19276 | if { (eval echo configure:19277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19277 | rm -rf conftest* |
19278 | ||
7274f1c7 | 19279 | wx_cv_func_pthread_cleanup_push=yes |
a0b9e27f | 19280 | |
4f14bcd8 | 19281 | else |
a0b9e27f MB |
19282 | echo "configure: failed program was:" >&5 |
19283 | cat conftest.$ac_ext >&5 | |
19284 | rm -rf conftest* | |
19285 | ||
7274f1c7 | 19286 | wx_cv_func_pthread_cleanup_push=no |
a0b9e27f | 19287 | |
5c6fa7d2 | 19288 | fi |
a0b9e27f MB |
19289 | rm -f conftest* |
19290 | ||
247f5006 | 19291 | fi |
a0b9e27f MB |
19292 | |
19293 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
4f14bcd8 | 19294 | |
7274f1c7 | 19295 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
a0b9e27f | 19296 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19297 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
a0b9e27f | 19298 | EOF |
c7a2bf27 | 19299 | |
7274f1c7 | 19300 | fi |
4f14bcd8 | 19301 | |
a0b9e27f MB |
19302 | |
19303 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
f7f78039 | 19304 | echo "configure:19305: checking for pthread_mutexattr_t" >&5 |
a0b9e27f MB |
19305 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
19306 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 19307 | else |
a0b9e27f MB |
19308 | |
19309 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 19310 | #line 19311 "configure" |
0dcf9893 | 19311 | #include "confdefs.h" |
4f14bcd8 | 19312 | #include <pthread.h> |
a0b9e27f | 19313 | int main() { |
4f14bcd8 | 19314 | |
7274f1c7 RL |
19315 | pthread_mutexattr_t attr; |
19316 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
a0b9e27f MB |
19317 | |
19318 | ; return 0; } | |
19319 | EOF | |
f7f78039 | 19320 | if { (eval echo configure:19321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19321 | rm -rf conftest* |
19322 | ||
7274f1c7 | 19323 | wx_cv_type_pthread_mutexattr_t=yes |
a0b9e27f | 19324 | |
3fed1840 | 19325 | else |
a0b9e27f MB |
19326 | echo "configure: failed program was:" >&5 |
19327 | cat conftest.$ac_ext >&5 | |
19328 | rm -rf conftest* | |
19329 | ||
7274f1c7 | 19330 | wx_cv_type_pthread_mutexattr_t=no |
a0b9e27f MB |
19331 | |
19332 | ||
5c6fa7d2 | 19333 | fi |
a0b9e27f MB |
19334 | rm -f conftest* |
19335 | ||
247f5006 | 19336 | fi |
a0b9e27f MB |
19337 | |
19338 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
4f14bcd8 | 19339 | |
7274f1c7 | 19340 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
a0b9e27f | 19341 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19342 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
a0b9e27f | 19343 | EOF |
4f14bcd8 | 19344 | |
7274f1c7 | 19345 | else |
a0b9e27f | 19346 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
f7f78039 | 19347 | echo "configure:19348: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
a0b9e27f MB |
19348 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
19349 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19350 | else | |
19351 | ||
19352 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 19353 | #line 19354 "configure" |
3fed1840 | 19354 | #include "confdefs.h" |
4f14bcd8 | 19355 | #include <pthread.h> |
a0b9e27f | 19356 | int main() { |
4f14bcd8 | 19357 | |
7274f1c7 | 19358 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
a0b9e27f MB |
19359 | |
19360 | ; return 0; } | |
19361 | EOF | |
f7f78039 | 19362 | if { (eval echo configure:19363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19363 | rm -rf conftest* |
19364 | ||
7274f1c7 | 19365 | wx_cv_type_pthread_rec_mutex_init=yes |
a0b9e27f | 19366 | |
698dcdb6 | 19367 | else |
a0b9e27f MB |
19368 | echo "configure: failed program was:" >&5 |
19369 | cat conftest.$ac_ext >&5 | |
19370 | rm -rf conftest* | |
19371 | ||
7274f1c7 | 19372 | wx_cv_type_pthread_rec_mutex_init=no |
a0b9e27f MB |
19373 | |
19374 | ||
5c6fa7d2 | 19375 | fi |
a0b9e27f MB |
19376 | rm -f conftest* |
19377 | ||
247f5006 | 19378 | fi |
a0b9e27f MB |
19379 | |
19380 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
7274f1c7 | 19381 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
a0b9e27f | 19382 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19383 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
a0b9e27f | 19384 | EOF |
3fed1840 | 19385 | |
7274f1c7 | 19386 | else |
a0b9e27f | 19387 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
7274f1c7 RL |
19388 | fi |
19389 | fi | |
7274f1c7 | 19390 | fi |
3fed1840 | 19391 | |
a0b9e27f MB |
19392 | else |
19393 | if test "$wxUSE_THREADS" = "yes" ; then | |
19394 | case "${host}" in | |
19395 | *-*-mingw32* ) | |
ca8e52b3 | 19396 | echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6 |
f7f78039 | 19397 | echo "configure:19398: checking if compiler supports -mthreads" >&5 |
ca8e52b3 VZ |
19398 | if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then |
19399 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19400 | else | |
19401 | ||
19402 | CFLAGS_OLD="$CFLAGS" | |
19403 | CFLAGS="$CFLAGS -mthreads" | |
19404 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 19405 | #line 19406 "configure" |
ca8e52b3 VZ |
19406 | #include "confdefs.h" |
19407 | ||
19408 | int main() { | |
19409 | ||
19410 | ; return 0; } | |
19411 | EOF | |
f7f78039 | 19412 | if { (eval echo configure:19413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ca8e52b3 VZ |
19413 | rm -rf conftest* |
19414 | wx_cv_cflags_mthread=yes | |
19415 | else | |
19416 | echo "configure: failed program was:" >&5 | |
19417 | cat conftest.$ac_ext >&5 | |
19418 | rm -rf conftest* | |
19419 | wx_cv_cflags_mthread=no | |
19420 | ||
19421 | fi | |
19422 | rm -f conftest* | |
19423 | ||
19424 | ||
19425 | fi | |
19426 | ||
19427 | echo "$ac_t""$wx_cv_cflags_mthread" 1>&6 | |
19428 | ||
19429 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
19430 | CXXFLAGS="$CXXFLAGS -mthreads" | |
19431 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
19432 | LDFLAGS="$LDFLAGS -mthreads" | |
19433 | else | |
19434 | CFLAGS="$CFLAGS_OLD" | |
19435 | fi | |
a0b9e27f MB |
19436 | ;; |
19437 | esac | |
19438 | fi | |
4f14bcd8 GD |
19439 | fi |
19440 | ||
19441 | if test "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 19442 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19443 | #define wxUSE_THREADS 1 |
a0b9e27f | 19444 | EOF |
7b6058cd | 19445 | |
8284b0c5 | 19446 | |
4f14bcd8 | 19447 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 19448 | else |
4f14bcd8 | 19449 | if test "$ac_cv_func_strtok_r" = "yes"; then |
a0b9e27f | 19450 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
f7f78039 | 19451 | echo "configure:19452: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
19452 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
19453 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
a0b9e27f | 19454 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 19455 | else |
a0b9e27f | 19456 | echo "$ac_t""no" 1>&6 |
4f14bcd8 GD |
19457 | fi |
19458 | fi | |
19459 | fi | |
19460 | ||
19461 | if test "$WXGTK20" = 1 ; then | |
a0b9e27f | 19462 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19463 | #define __WXGTK20__ $WXGTK20 |
a0b9e27f | 19464 | EOF |
4f14bcd8 GD |
19465 | |
19466 | WXGTK12=1 | |
10f2d63a | 19467 | fi |
4f14bcd8 GD |
19468 | |
19469 | if test "$WXGTK12" = 1 ; then | |
a0b9e27f | 19470 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19471 | #define __WXGTK12__ $WXGTK12 |
a0b9e27f | 19472 | EOF |
4f14bcd8 | 19473 | |
10f2d63a | 19474 | fi |
698dcdb6 | 19475 | |
4f14bcd8 | 19476 | if test "$WXGTK127" = 1 ; then |
a0b9e27f | 19477 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19478 | #define __WXGTK127__ $WXGTK127 |
a0b9e27f | 19479 | EOF |
4f14bcd8 | 19480 | |
698dcdb6 | 19481 | fi |
10f2d63a | 19482 | |
4f14bcd8 GD |
19483 | WXDEBUG= |
19484 | ||
19485 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
19486 | WXDEBUG="-g" | |
19487 | wxUSE_OPTIMISE=no | |
698dcdb6 | 19488 | fi |
4f14bcd8 GD |
19489 | |
19490 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
19491 | wxUSE_DEBUG_INFO=yes | |
19492 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
19493 | fi |
19494 | ||
4f14bcd8 | 19495 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
a0b9e27f | 19496 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19497 | #define WXDEBUG 1 |
a0b9e27f | 19498 | EOF |
4f14bcd8 GD |
19499 | |
19500 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 19501 | else |
4f14bcd8 GD |
19502 | if test "$wxUSE_GTK" = 1 ; then |
19503 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
19504 | fi | |
19505 | fi | |
19506 | ||
19507 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
a0b9e27f | 19508 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19509 | #define wxUSE_MEMORY_TRACING 1 |
a0b9e27f | 19510 | EOF |
4f14bcd8 | 19511 | |
a0b9e27f | 19512 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19513 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
a0b9e27f | 19514 | EOF |
4f14bcd8 | 19515 | |
a0b9e27f | 19516 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19517 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
a0b9e27f | 19518 | EOF |
4f14bcd8 GD |
19519 | |
19520 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
19521 | fi | |
19522 | ||
19523 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 19524 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
19525 | fi |
19526 | ||
19527 | PROFILE= | |
19528 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 19529 | PROFILE=" -pg" |
10f2d63a VZ |
19530 | fi |
19531 | ||
009fead0 VZ |
19532 | CODE_GEN_FLAGS= |
19533 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 19534 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
19535 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
19536 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 19537 | fi |
4f14bcd8 GD |
19538 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
19539 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
19540 | fi | |
19541 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
19542 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
19543 | fi | |
4f14bcd8 GD |
19544 | if test "$USE_WIN32" = 1 ; then |
19545 | # I'm not even really sure what this was ever added to solve, | |
19546 | # but someone added it for mingw native builds, so I guess | |
19547 | # they had a reason, right?? | |
19548 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
19549 | fi | |
1d1b75ac | 19550 | |
2b5f62a0 | 19551 | case "${host}" in |
1d1b75ac VZ |
19552 | powerpc*-*-aix* ) |
19553 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
19554 | ;; | |
2b5f62a0 VZ |
19555 | *-hppa* ) |
19556 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
19557 | ;; | |
1d1b75ac | 19558 | esac |
4f14bcd8 GD |
19559 | fi |
19560 | ||
af7b5345 | 19561 | OPTIMISE= |
4f14bcd8 | 19562 | if test "$wxUSE_OPTIMISE" = "no" ; then |
af7b5345 VZ |
19563 | if test "$GCC" = yes ; then |
19564 | OPTIMISE="-O0" | |
19565 | fi | |
4f14bcd8 GD |
19566 | else |
19567 | if test "$GCC" = yes ; then | |
19568 | OPTIMISE="-O2" | |
af7b5345 VZ |
19569 | |
19570 | case "${host}" in | |
4f14bcd8 GD |
19571 | i586-*-*|i686-*-* ) |
19572 | OPTIMISE="${OPTIMISE} " | |
19573 | ;; | |
19574 | esac | |
19575 | else | |
19576 | OPTIMISE="-O" | |
19577 | fi | |
19578 | fi | |
19579 | ||
8d90d2f2 | 19580 | |
4f14bcd8 | 19581 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
a0b9e27f | 19582 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19583 | #define WXWIN_COMPATIBILITY_2 1 |
a0b9e27f | 19584 | EOF |
4f14bcd8 | 19585 | |
8284b0c5 | 19586 | |
4f14bcd8 GD |
19587 | WXWIN_COMPATIBILITY_2_2="yes" |
19588 | fi | |
19589 | ||
65d8ef1e | 19590 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
a0b9e27f | 19591 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19592 | #define WXWIN_COMPATIBILITY_2_2 1 |
a0b9e27f | 19593 | EOF |
4f14bcd8 | 19594 | |
8d90d2f2 VZ |
19595 | |
19596 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
19597 | fi |
19598 | ||
65d8ef1e VS |
19599 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
19600 | cat >> confdefs.h <<\EOF | |
19601 | #define WXWIN_COMPATIBILITY_2_4 1 | |
19602 | EOF | |
19603 | ||
19604 | fi | |
19605 | ||
8284b0c5 | 19606 | |
10f2d63a | 19607 | if test "$wxUSE_GUI" = "yes"; then |
a0b9e27f | 19608 | cat >> confdefs.h <<\EOF |
10f2d63a | 19609 | #define wxUSE_GUI 1 |
a0b9e27f | 19610 | EOF |
10f2d63a | 19611 | |
8284b0c5 | 19612 | |
10f2d63a | 19613 | else |
a0b9e27f | 19614 | cat >> confdefs.h <<\EOF |
10f2d63a | 19615 | #define wxUSE_NOGUI 1 |
a0b9e27f | 19616 | EOF |
10f2d63a VZ |
19617 | |
19618 | fi | |
19619 | ||
8284b0c5 | 19620 | |
10f2d63a | 19621 | if test "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 19622 | cat >> confdefs.h <<\EOF |
10f2d63a | 19623 | #define wxUSE_UNIX 1 |
a0b9e27f | 19624 | EOF |
10f2d63a VZ |
19625 | |
19626 | fi | |
19627 | ||
8284b0c5 | 19628 | |
10f2d63a | 19629 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
a0b9e27f | 19630 | cat >> confdefs.h <<\EOF |
10f2d63a | 19631 | #define wxUSE_APPLE_IEEE 1 |
a0b9e27f | 19632 | EOF |
10f2d63a VZ |
19633 | |
19634 | fi | |
19635 | ||
1e6feb95 | 19636 | if test "$wxUSE_TIMER" = "yes"; then |
a0b9e27f | 19637 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19638 | #define wxUSE_TIMER 1 |
a0b9e27f | 19639 | EOF |
1e6feb95 VZ |
19640 | |
19641 | fi | |
19642 | ||
10f2d63a | 19643 | if test "$wxUSE_WAVE" = "yes"; then |
a0b9e27f | 19644 | cat >> confdefs.h <<\EOF |
10f2d63a | 19645 | #define wxUSE_WAVE 1 |
a0b9e27f | 19646 | EOF |
10f2d63a VZ |
19647 | |
19648 | fi | |
19649 | ||
1e6feb95 | 19650 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
a0b9e27f | 19651 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19652 | #define wxUSE_CMDLINE_PARSER 1 |
a0b9e27f | 19653 | EOF |
1e6feb95 VZ |
19654 | |
19655 | fi | |
19656 | ||
19657 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
a0b9e27f | 19658 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19659 | #define wxUSE_STOPWATCH 1 |
a0b9e27f | 19660 | EOF |
1e6feb95 VZ |
19661 | |
19662 | fi | |
19663 | ||
19664 | if test "$wxUSE_DATETIME" = "yes"; then | |
a0b9e27f | 19665 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19666 | #define wxUSE_DATETIME 1 |
a0b9e27f | 19667 | EOF |
1e6feb95 VZ |
19668 | |
19669 | fi | |
19670 | ||
10f2d63a | 19671 | if test "$wxUSE_FILE" = "yes"; then |
a0b9e27f | 19672 | cat >> confdefs.h <<\EOF |
10f2d63a | 19673 | #define wxUSE_FILE 1 |
a0b9e27f | 19674 | EOF |
10f2d63a VZ |
19675 | |
19676 | fi | |
19677 | ||
1e6feb95 | 19678 | if test "$wxUSE_FFILE" = "yes"; then |
a0b9e27f | 19679 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19680 | #define wxUSE_FFILE 1 |
a0b9e27f | 19681 | EOF |
1e6feb95 VZ |
19682 | |
19683 | fi | |
19684 | ||
24528b0c | 19685 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
a0b9e27f | 19686 | cat >> confdefs.h <<\EOF |
24528b0c | 19687 | #define wxUSE_FILESYSTEM 1 |
a0b9e27f | 19688 | EOF |
24528b0c VS |
19689 | |
19690 | fi | |
19691 | ||
10f2d63a | 19692 | if test "$wxUSE_FS_INET" = "yes"; then |
a0b9e27f | 19693 | cat >> confdefs.h <<\EOF |
10f2d63a | 19694 | #define wxUSE_FS_INET 1 |
a0b9e27f | 19695 | EOF |
10f2d63a VZ |
19696 | |
19697 | fi | |
19698 | ||
19699 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
a0b9e27f | 19700 | cat >> confdefs.h <<\EOF |
10f2d63a | 19701 | #define wxUSE_FS_ZIP 1 |
a0b9e27f | 19702 | EOF |
10f2d63a VZ |
19703 | |
19704 | fi | |
19705 | ||
19706 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
a0b9e27f | 19707 | cat >> confdefs.h <<\EOF |
10f2d63a | 19708 | #define wxUSE_ZIPSTREAM 1 |
a0b9e27f | 19709 | EOF |
10f2d63a VZ |
19710 | |
19711 | fi | |
19712 | ||
eb4efbdc | 19713 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
a0b9e27f | 19714 | cat >> confdefs.h <<\EOF |
eb4efbdc | 19715 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
a0b9e27f | 19716 | EOF |
eb4efbdc VZ |
19717 | |
19718 | fi | |
19719 | ||
4f3c5f06 | 19720 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 19721 | cat >> confdefs.h <<\EOF |
4f3c5f06 | 19722 | #define wxUSE_SNGLINST_CHECKER 1 |
a0b9e27f | 19723 | EOF |
4f3c5f06 VZ |
19724 | |
19725 | fi | |
19726 | ||
10f2d63a | 19727 | if test "$wxUSE_BUSYINFO" = "yes"; then |
a0b9e27f | 19728 | cat >> confdefs.h <<\EOF |
10f2d63a | 19729 | #define wxUSE_BUSYINFO 1 |
a0b9e27f | 19730 | EOF |
10f2d63a VZ |
19731 | |
19732 | fi | |
19733 | ||
19734 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
a0b9e27f | 19735 | cat >> confdefs.h <<\EOF |
10f2d63a | 19736 | #define wxUSE_STD_IOSTREAM 1 |
a0b9e27f | 19737 | EOF |
10f2d63a VZ |
19738 | |
19739 | fi | |
19740 | ||
a3a584a7 | 19741 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
a0b9e27f | 19742 | cat >> confdefs.h <<\EOF |
a3a584a7 | 19743 | #define wxUSE_TEXTBUFFER 1 |
a0b9e27f | 19744 | EOF |
a3a584a7 VZ |
19745 | |
19746 | fi | |
19747 | ||
10f2d63a | 19748 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 19749 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
a0b9e27f | 19750 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 19751 | else |
a0b9e27f | 19752 | cat >> confdefs.h <<\EOF |
10f2d63a | 19753 | #define wxUSE_TEXTFILE 1 |
a0b9e27f | 19754 | EOF |
10f2d63a VZ |
19755 | |
19756 | fi | |
19757 | fi | |
19758 | ||
19759 | if test "$wxUSE_CONFIG" = "yes" ; then | |
19760 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
a0b9e27f | 19761 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 19762 | else |
a0b9e27f | 19763 | cat >> confdefs.h <<\EOF |
10f2d63a | 19764 | #define wxUSE_CONFIG 1 |
a0b9e27f | 19765 | EOF |
10f2d63a VZ |
19766 | |
19767 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
19768 | fi | |
19769 | fi | |
19770 | ||
19771 | if test "$wxUSE_INTL" = "yes" ; then | |
19772 | if test "$wxUSE_FILE" != "yes"; then | |
a0b9e27f | 19773 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 19774 | else |
a0b9e27f | 19775 | cat >> confdefs.h <<\EOF |
10f2d63a | 19776 | #define wxUSE_INTL 1 |
a0b9e27f | 19777 | EOF |
10f2d63a VZ |
19778 | |
19779 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 19780 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
19781 | fi |
19782 | fi | |
19783 | ||
19784 | if test "$wxUSE_LOG" = "yes"; then | |
a0b9e27f | 19785 | cat >> confdefs.h <<\EOF |
10f2d63a | 19786 | #define wxUSE_LOG 1 |
a0b9e27f | 19787 | EOF |
10f2d63a | 19788 | |
8284b0c5 | 19789 | |
d73be714 | 19790 | if test "$wxUSE_LOGGUI" = "yes"; then |
a0b9e27f | 19791 | cat >> confdefs.h <<\EOF |
d73be714 | 19792 | #define wxUSE_LOGGUI 1 |
a0b9e27f | 19793 | EOF |
d73be714 VZ |
19794 | |
19795 | fi | |
19796 | ||
19797 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
a0b9e27f | 19798 | cat >> confdefs.h <<\EOF |
d73be714 | 19799 | #define wxUSE_LOGWINDOW 1 |
a0b9e27f | 19800 | EOF |
69d27ff7 MB |
19801 | |
19802 | fi | |
19803 | ||
19804 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
a0b9e27f | 19805 | cat >> confdefs.h <<\EOF |
69d27ff7 | 19806 | #define wxUSE_LOG_DIALOG 1 |
a0b9e27f | 19807 | EOF |
d73be714 VZ |
19808 | |
19809 | fi | |
10f2d63a VZ |
19810 | fi |
19811 | ||
19812 | if test "$wxUSE_LONGLONG" = "yes"; then | |
a0b9e27f | 19813 | cat >> confdefs.h <<\EOF |
10f2d63a | 19814 | #define wxUSE_LONGLONG 1 |
a0b9e27f | 19815 | EOF |
10f2d63a VZ |
19816 | |
19817 | fi | |
19818 | ||
e8f65ba6 | 19819 | if test "$wxUSE_GEOMETRY" = "yes"; then |
a0b9e27f | 19820 | cat >> confdefs.h <<\EOF |
e8f65ba6 | 19821 | #define wxUSE_GEOMETRY 1 |
a0b9e27f | 19822 | EOF |
e8f65ba6 RR |
19823 | |
19824 | fi | |
19825 | ||
10f2d63a | 19826 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
a0b9e27f | 19827 | cat >> confdefs.h <<\EOF |
10f2d63a | 19828 | #define wxUSE_DIALUP_MANAGER 1 |
a0b9e27f | 19829 | EOF |
10f2d63a | 19830 | |
70f7a477 | 19831 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
19832 | fi |
19833 | ||
19834 | if test "$wxUSE_STREAMS" = "yes" ; then | |
a0b9e27f | 19835 | cat >> confdefs.h <<\EOF |
10f2d63a | 19836 | #define wxUSE_STREAMS 1 |
a0b9e27f | 19837 | EOF |
10f2d63a VZ |
19838 | |
19839 | fi | |
19840 | ||
5c6fa7d2 | 19841 | |
8284b0c5 | 19842 | if test "$wxUSE_DATETIME" = "yes"; then |
a0b9e27f | 19843 | for ac_func in strptime |
83307f33 | 19844 | do |
a0b9e27f | 19845 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 19846 | echo "configure:19847: checking for $ac_func" >&5 |
a0b9e27f MB |
19847 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19848 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19849 | else | |
19850 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 19851 | #line 19852 "configure" |
83307f33 VZ |
19852 | #include "confdefs.h" |
19853 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19854 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
19855 | #include <assert.h> |
19856 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19857 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19858 | builtin and then its argument prototype would still apply. */ |
19859 | char $ac_func(); | |
19860 | ||
19861 | int main() { | |
19862 | ||
83307f33 VZ |
19863 | /* The GNU C library defines this for functions which it implements |
19864 | to always fail with ENOSYS. Some functions are actually named | |
19865 | something starting with __ and the normal name is an alias. */ | |
19866 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19867 | choke me | |
19868 | #else | |
a0b9e27f | 19869 | $ac_func(); |
83307f33 VZ |
19870 | #endif |
19871 | ||
a0b9e27f MB |
19872 | ; return 0; } |
19873 | EOF | |
f7f78039 | 19874 | if { (eval echo configure:19875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19875 | rm -rf conftest* |
19876 | eval "ac_cv_func_$ac_func=yes" | |
19877 | else | |
19878 | echo "configure: failed program was:" >&5 | |
19879 | cat conftest.$ac_ext >&5 | |
19880 | rm -rf conftest* | |
19881 | eval "ac_cv_func_$ac_func=no" | |
19882 | fi | |
19883 | rm -f conftest* | |
19884 | fi | |
83307f33 | 19885 | |
a0b9e27f MB |
19886 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
19887 | echo "$ac_t""yes" 1>&6 | |
19888 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19889 | cat >> confdefs.h <<EOF | |
19890 | #define $ac_tr_func 1 | |
19891 | EOF | |
19892 | ||
19893 | else | |
19894 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
19895 | fi |
19896 | done | |
19897 | ||
5c6fa7d2 | 19898 | |
a0b9e27f | 19899 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
f7f78039 | 19900 | echo "configure:19901: checking for timezone variable in <time.h>" >&5 |
a0b9e27f MB |
19901 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
19902 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 19903 | else |
a0b9e27f MB |
19904 | |
19905 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 19906 | #line 19907 "configure" |
360d6699 VZ |
19907 | #include "confdefs.h" |
19908 | ||
b4085ce6 | 19909 | #include <time.h> |
a0b9e27f MB |
19910 | |
19911 | int main() { | |
360d6699 VZ |
19912 | |
19913 | int tz; | |
4f11a343 | 19914 | tz = timezone; |
a0b9e27f MB |
19915 | |
19916 | ; return 0; } | |
19917 | EOF | |
f7f78039 | 19918 | if { (eval echo configure:19919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19919 | rm -rf conftest* |
19920 | ||
4f11a343 | 19921 | wx_cv_var_timezone=timezone |
a0b9e27f | 19922 | |
360d6699 | 19923 | else |
a0b9e27f MB |
19924 | echo "configure: failed program was:" >&5 |
19925 | cat conftest.$ac_ext >&5 | |
19926 | rm -rf conftest* | |
19927 | ||
19928 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 19929 | #line 19930 "configure" |
360d6699 VZ |
19930 | #include "confdefs.h" |
19931 | ||
b4085ce6 | 19932 | #include <time.h> |
a0b9e27f MB |
19933 | |
19934 | int main() { | |
360d6699 VZ |
19935 | |
19936 | int tz; | |
19937 | tz = _timezone; | |
a0b9e27f MB |
19938 | |
19939 | ; return 0; } | |
19940 | EOF | |
f7f78039 | 19941 | if { (eval echo configure:19942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19942 | rm -rf conftest* |
19943 | ||
360d6699 | 19944 | wx_cv_var_timezone=_timezone |
a0b9e27f | 19945 | |
5357c8e8 | 19946 | else |
a0b9e27f MB |
19947 | echo "configure: failed program was:" >&5 |
19948 | cat conftest.$ac_ext >&5 | |
19949 | rm -rf conftest* | |
19950 | ||
19951 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 19952 | #line 19953 "configure" |
5357c8e8 VZ |
19953 | #include "confdefs.h" |
19954 | ||
b4085ce6 | 19955 | #include <time.h> |
a0b9e27f MB |
19956 | |
19957 | int main() { | |
5357c8e8 VZ |
19958 | |
19959 | int tz; | |
4f11a343 | 19960 | tz = __timezone; |
a0b9e27f MB |
19961 | |
19962 | ; return 0; } | |
19963 | EOF | |
f7f78039 | 19964 | if { (eval echo configure:19965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19965 | rm -rf conftest* |
19966 | ||
4f11a343 | 19967 | wx_cv_var_timezone=__timezone |
a0b9e27f | 19968 | |
360d6699 | 19969 | else |
a0b9e27f MB |
19970 | echo "configure: failed program was:" >&5 |
19971 | cat conftest.$ac_ext >&5 | |
19972 | rm -rf conftest* | |
19973 | ||
f9bc1684 | 19974 | if test "$USE_DOS" = 0 ; then |
a0b9e27f | 19975 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 | 19976 | fi |
a0b9e27f MB |
19977 | |
19978 | ||
328a083c | 19979 | fi |
a0b9e27f MB |
19980 | rm -f conftest* |
19981 | ||
19982 | ||
7b4a847f | 19983 | fi |
a0b9e27f MB |
19984 | rm -f conftest* |
19985 | ||
19986 | ||
5c6fa7d2 | 19987 | fi |
a0b9e27f MB |
19988 | rm -f conftest* |
19989 | ||
19990 | ||
247f5006 | 19991 | fi |
a0b9e27f MB |
19992 | |
19993 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
698dcdb6 | 19994 | |
f9bc1684 | 19995 | if test "x$wx_cv_var_timezone" != x ; then |
a0b9e27f | 19996 | cat >> confdefs.h <<EOF |
360d6699 | 19997 | #define WX_TIMEZONE $wx_cv_var_timezone |
a0b9e27f | 19998 | EOF |
360d6699 | 19999 | |
f9bc1684 | 20000 | fi |
698dcdb6 | 20001 | |
a0b9e27f | 20002 | for ac_func in localtime |
afc31813 | 20003 | do |
a0b9e27f | 20004 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 20005 | echo "configure:20006: checking for $ac_func" >&5 |
a0b9e27f MB |
20006 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20007 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20008 | else | |
20009 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 20010 | #line 20011 "configure" |
10f2d63a | 20011 | #include "confdefs.h" |
afc31813 | 20012 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 20013 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
20014 | #include <assert.h> |
20015 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20016 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20017 | builtin and then its argument prototype would still apply. */ |
20018 | char $ac_func(); | |
20019 | ||
20020 | int main() { | |
20021 | ||
afc31813 VZ |
20022 | /* The GNU C library defines this for functions which it implements |
20023 | to always fail with ENOSYS. Some functions are actually named | |
20024 | something starting with __ and the normal name is an alias. */ | |
20025 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20026 | choke me | |
20027 | #else | |
a0b9e27f | 20028 | $ac_func(); |
afc31813 VZ |
20029 | #endif |
20030 | ||
a0b9e27f MB |
20031 | ; return 0; } |
20032 | EOF | |
f7f78039 | 20033 | if { (eval echo configure:20034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20034 | rm -rf conftest* |
20035 | eval "ac_cv_func_$ac_func=yes" | |
20036 | else | |
20037 | echo "configure: failed program was:" >&5 | |
20038 | cat conftest.$ac_ext >&5 | |
20039 | rm -rf conftest* | |
20040 | eval "ac_cv_func_$ac_func=no" | |
20041 | fi | |
20042 | rm -f conftest* | |
20043 | fi | |
afc31813 | 20044 | |
a0b9e27f MB |
20045 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
20046 | echo "$ac_t""yes" 1>&6 | |
20047 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20048 | cat >> confdefs.h <<EOF | |
20049 | #define $ac_tr_func 1 | |
20050 | EOF | |
20051 | ||
20052 | else | |
20053 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
20054 | fi |
20055 | done | |
20056 | ||
5c6fa7d2 | 20057 | |
8284b0c5 | 20058 | if test "$ac_cv_func_localtime" = "yes"; then |
a0b9e27f | 20059 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
f7f78039 | 20060 | echo "configure:20061: checking for tm_gmtoff in struct tm" >&5 |
a0b9e27f MB |
20061 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
20062 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20063 | else | |
20064 | ||
20065 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 20066 | #line 20067 "configure" |
0470b1e6 VZ |
20067 | #include "confdefs.h" |
20068 | ||
b4085ce6 | 20069 | #include <time.h> |
a0b9e27f MB |
20070 | |
20071 | int main() { | |
0470b1e6 VZ |
20072 | |
20073 | struct tm tm; | |
20074 | tm.tm_gmtoff++; | |
a0b9e27f MB |
20075 | |
20076 | ; return 0; } | |
20077 | EOF | |
f7f78039 | 20078 | if { (eval echo configure:20079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
20079 | rm -rf conftest* |
20080 | ||
f03a98d8 | 20081 | wx_cv_struct_tm_has_gmtoff=yes |
a0b9e27f | 20082 | |
0470b1e6 | 20083 | else |
a0b9e27f MB |
20084 | echo "configure: failed program was:" >&5 |
20085 | cat conftest.$ac_ext >&5 | |
20086 | rm -rf conftest* | |
20087 | wx_cv_struct_tm_has_gmtoff=no | |
20088 | ||
5c6fa7d2 | 20089 | fi |
a0b9e27f MB |
20090 | rm -f conftest* |
20091 | ||
247f5006 | 20092 | fi |
a0b9e27f MB |
20093 | |
20094 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
20095 | fi |
20096 | ||
20097 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
a0b9e27f | 20098 | cat >> confdefs.h <<\EOF |
6232543b | 20099 | #define WX_GMTOFF_IN_TM 1 |
a0b9e27f | 20100 | EOF |
0470b1e6 | 20101 | |
3fcdd07b VZ |
20102 | fi |
20103 | ||
a0b9e27f | 20104 | for ac_func in gettimeofday ftime |
3fcdd07b | 20105 | do |
a0b9e27f | 20106 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 20107 | echo "configure:20108: checking for $ac_func" >&5 |
a0b9e27f MB |
20108 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20109 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20110 | else | |
20111 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 20112 | #line 20113 "configure" |
3fcdd07b VZ |
20113 | #include "confdefs.h" |
20114 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20115 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
20116 | #include <assert.h> |
20117 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20118 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20119 | builtin and then its argument prototype would still apply. */ |
20120 | char $ac_func(); | |
20121 | ||
20122 | int main() { | |
20123 | ||
3fcdd07b VZ |
20124 | /* The GNU C library defines this for functions which it implements |
20125 | to always fail with ENOSYS. Some functions are actually named | |
20126 | something starting with __ and the normal name is an alias. */ | |
20127 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20128 | choke me | |
20129 | #else | |
a0b9e27f | 20130 | $ac_func(); |
3fcdd07b VZ |
20131 | #endif |
20132 | ||
a0b9e27f MB |
20133 | ; return 0; } |
20134 | EOF | |
f7f78039 | 20135 | if { (eval echo configure:20136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20136 | rm -rf conftest* |
20137 | eval "ac_cv_func_$ac_func=yes" | |
20138 | else | |
20139 | echo "configure: failed program was:" >&5 | |
20140 | cat conftest.$ac_ext >&5 | |
20141 | rm -rf conftest* | |
20142 | eval "ac_cv_func_$ac_func=no" | |
20143 | fi | |
20144 | rm -f conftest* | |
20145 | fi | |
20146 | ||
20147 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20148 | echo "$ac_t""yes" 1>&6 | |
20149 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20150 | cat >> confdefs.h <<EOF | |
20151 | #define $ac_tr_func 1 | |
20152 | EOF | |
3fcdd07b | 20153 | break |
a0b9e27f MB |
20154 | else |
20155 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
20156 | fi |
20157 | done | |
20158 | ||
698dcdb6 | 20159 | |
8284b0c5 | 20160 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
a0b9e27f | 20161 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
f7f78039 | 20162 | echo "configure:20163: checking whether gettimeofday takes two arguments" >&5 |
a0b9e27f MB |
20163 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
20164 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20165 | else | |
20166 | ||
20167 | ||
20168 | ac_ext=C | |
20169 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 20170 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20171 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20172 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20173 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 20174 | |
8284b0c5 | 20175 | |
a0b9e27f | 20176 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 20177 | #line 20178 "configure" |
10f2d63a | 20178 | #include "confdefs.h" |
afc31813 VZ |
20179 | |
20180 | #include <sys/time.h> | |
20181 | #include <unistd.h> | |
a0b9e27f MB |
20182 | |
20183 | int main() { | |
afc31813 VZ |
20184 | |
20185 | struct timeval tv; | |
776862b4 | 20186 | gettimeofday(&tv, NULL); |
a0b9e27f MB |
20187 | |
20188 | ; return 0; } | |
20189 | EOF | |
f7f78039 | 20190 | if { (eval echo configure:20191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20191 | rm -rf conftest* |
afc31813 | 20192 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 20193 | else |
a0b9e27f MB |
20194 | echo "configure: failed program was:" >&5 |
20195 | cat conftest.$ac_ext >&5 | |
20196 | rm -rf conftest* | |
20197 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 20198 | #line 20199 "configure" |
10f2d63a | 20199 | #include "confdefs.h" |
afc31813 VZ |
20200 | |
20201 | #include <sys/time.h> | |
20202 | #include <unistd.h> | |
a0b9e27f MB |
20203 | |
20204 | int main() { | |
afc31813 VZ |
20205 | |
20206 | struct timeval tv; | |
20207 | gettimeofday(&tv); | |
a0b9e27f MB |
20208 | |
20209 | ; return 0; } | |
20210 | EOF | |
f7f78039 | 20211 | if { (eval echo configure:20212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20212 | rm -rf conftest* |
afc31813 | 20213 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 20214 | else |
a0b9e27f MB |
20215 | echo "configure: failed program was:" >&5 |
20216 | cat conftest.$ac_ext >&5 | |
20217 | rm -rf conftest* | |
20218 | ||
20219 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
776862b4 | 20220 | wx_cv_func_gettimeofday_has_2_args=unknown |
a0b9e27f MB |
20221 | |
20222 | ||
10f2d63a | 20223 | fi |
a0b9e27f MB |
20224 | rm -f conftest* |
20225 | ||
10f2d63a | 20226 | fi |
a0b9e27f | 20227 | rm -f conftest* |
afc31813 | 20228 | ac_ext=c |
a0b9e27f | 20229 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 20230 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20231 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20232 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20233 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20234 | |
a0b9e27f | 20235 | |
247f5006 | 20236 | fi |
a0b9e27f MB |
20237 | |
20238 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 20239 | |
afc31813 | 20240 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
a0b9e27f | 20241 | cat >> confdefs.h <<\EOF |
afc31813 | 20242 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
a0b9e27f | 20243 | EOF |
afc31813 VZ |
20244 | |
20245 | fi | |
20246 | fi | |
20247 | ||
afc31813 VZ |
20248 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" |
20249 | fi | |
20250 | ||
8284b0c5 | 20251 | |
52127426 | 20252 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 20253 | if test "$wxUSE_MGL" = "1"; then |
a0b9e27f | 20254 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
20255 | wxUSE_SOCKETS="no" |
20256 | fi | |
0feee163 | 20257 | fi |
b089607b | 20258 | |
0feee163 VZ |
20259 | if test "$wxUSE_SOCKETS" = "yes"; then |
20260 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 20261 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
f7f78039 | 20262 | echo "configure:20263: checking for socket" >&5 |
a0b9e27f MB |
20263 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
20264 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 20265 | else |
a0b9e27f | 20266 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 20267 | #line 20268 "configure" |
c63c7106 VZ |
20268 | #include "confdefs.h" |
20269 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20270 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
20271 | #include <assert.h> |
20272 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20273 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20274 | builtin and then its argument prototype would still apply. */ |
20275 | char socket(); | |
20276 | ||
20277 | int main() { | |
20278 | ||
c63c7106 VZ |
20279 | /* The GNU C library defines this for functions which it implements |
20280 | to always fail with ENOSYS. Some functions are actually named | |
20281 | something starting with __ and the normal name is an alias. */ | |
20282 | #if defined (__stub_socket) || defined (__stub___socket) | |
20283 | choke me | |
20284 | #else | |
a0b9e27f | 20285 | socket(); |
c63c7106 VZ |
20286 | #endif |
20287 | ||
a0b9e27f MB |
20288 | ; return 0; } |
20289 | EOF | |
f7f78039 | 20290 | if { (eval echo configure:20291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20291 | rm -rf conftest* |
20292 | eval "ac_cv_func_socket=yes" | |
20293 | else | |
20294 | echo "configure: failed program was:" >&5 | |
20295 | cat conftest.$ac_ext >&5 | |
20296 | rm -rf conftest* | |
20297 | eval "ac_cv_func_socket=no" | |
20298 | fi | |
20299 | rm -f conftest* | |
20300 | fi | |
20301 | ||
20302 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
20303 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
20304 | : |
20305 | else | |
a0b9e27f MB |
20306 | echo "$ac_t""no" 1>&6 |
20307 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
f7f78039 | 20308 | echo "configure:20309: checking for socket in -lsocket" >&5 |
a0b9e27f MB |
20309 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
20310 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20311 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 20312 | else |
a0b9e27f | 20313 | ac_save_LIBS="$LIBS" |
c63c7106 | 20314 | LIBS="-lsocket $LIBS" |
a0b9e27f | 20315 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 20316 | #line 20317 "configure" |
c63c7106 VZ |
20317 | #include "confdefs.h" |
20318 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20319 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20320 | builtin and then its argument prototype would still apply. */ |
20321 | char socket(); | |
20322 | ||
20323 | int main() { | |
20324 | socket() | |
20325 | ; return 0; } | |
20326 | EOF | |
f7f78039 | 20327 | if { (eval echo configure:20328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20328 | rm -rf conftest* |
20329 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20330 | else | |
20331 | echo "configure: failed program was:" >&5 | |
20332 | cat conftest.$ac_ext >&5 | |
20333 | rm -rf conftest* | |
20334 | eval "ac_cv_lib_$ac_lib_var=no" | |
20335 | fi | |
20336 | rm -f conftest* | |
20337 | LIBS="$ac_save_LIBS" | |
20338 | ||
20339 | fi | |
20340 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20341 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
20342 | if test "$INET_LINK" != " -lsocket"; then |
20343 | INET_LINK="$INET_LINK -lsocket" | |
20344 | fi | |
c63c7106 | 20345 | else |
a0b9e27f | 20346 | echo "$ac_t""no" 1>&6 |
afc31813 | 20347 | |
a0b9e27f | 20348 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
3a922bb4 | 20349 | wxUSE_SOCKETS=no |
a0b9e27f MB |
20350 | |
20351 | ||
6232543b | 20352 | fi |
b089607b | 20353 | |
a0b9e27f | 20354 | |
1e487827 | 20355 | fi |
afc31813 | 20356 | |
3a922bb4 | 20357 | fi |
0feee163 | 20358 | fi |
51a9faba | 20359 | |
0feee163 VZ |
20360 | if test "$wxUSE_SOCKETS" = "yes" ; then |
20361 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 20362 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
f7f78039 | 20363 | echo "configure:20364: checking what is the type of the third argument of getsockname" >&5 |
a0b9e27f MB |
20364 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
20365 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20366 | else | |
20367 | ||
20368 | ||
20369 | ac_ext=C | |
20370 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 20371 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20372 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20373 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20374 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 20375 | |
8284b0c5 | 20376 | |
a0b9e27f | 20377 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 20378 | #line 20379 "configure" |
afc31813 | 20379 | #include "confdefs.h" |
51a9faba | 20380 | |
3a922bb4 RL |
20381 | #include <sys/types.h> |
20382 | #include <sys/socket.h> | |
a0b9e27f MB |
20383 | |
20384 | int main() { | |
51a9faba | 20385 | |
3a922bb4 RL |
20386 | socklen_t len; |
20387 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20388 | |
20389 | ; return 0; } | |
20390 | EOF | |
f7f78039 | 20391 | if { (eval echo configure:20392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20392 | rm -rf conftest* |
51a9faba | 20393 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 20394 | else |
a0b9e27f MB |
20395 | echo "configure: failed program was:" >&5 |
20396 | cat conftest.$ac_ext >&5 | |
20397 | rm -rf conftest* | |
20398 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 20399 | #line 20400 "configure" |
afc31813 | 20400 | #include "confdefs.h" |
51a9faba | 20401 | |
3a922bb4 RL |
20402 | #include <sys/types.h> |
20403 | #include <sys/socket.h> | |
a0b9e27f MB |
20404 | |
20405 | int main() { | |
51a9faba | 20406 | |
3a922bb4 RL |
20407 | size_t len; |
20408 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20409 | |
20410 | ; return 0; } | |
20411 | EOF | |
f7f78039 | 20412 | if { (eval echo configure:20413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20413 | rm -rf conftest* |
51a9faba | 20414 | wx_cv_type_getsockname3=size_t |
afc31813 | 20415 | else |
a0b9e27f MB |
20416 | echo "configure: failed program was:" >&5 |
20417 | cat conftest.$ac_ext >&5 | |
20418 | rm -rf conftest* | |
20419 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 20420 | #line 20421 "configure" |
afc31813 | 20421 | #include "confdefs.h" |
51a9faba | 20422 | |
3a922bb4 RL |
20423 | #include <sys/types.h> |
20424 | #include <sys/socket.h> | |
a0b9e27f MB |
20425 | |
20426 | int main() { | |
51a9faba | 20427 | |
3a922bb4 RL |
20428 | int len; |
20429 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20430 | |
20431 | ; return 0; } | |
20432 | EOF | |
f7f78039 | 20433 | if { (eval echo configure:20434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20434 | rm -rf conftest* |
51a9faba | 20435 | wx_cv_type_getsockname3=int |
afc31813 | 20436 | else |
a0b9e27f MB |
20437 | echo "configure: failed program was:" >&5 |
20438 | cat conftest.$ac_ext >&5 | |
20439 | rm -rf conftest* | |
20440 | wx_cv_type_getsockname3=unknown | |
20441 | ||
afc31813 | 20442 | fi |
a0b9e27f MB |
20443 | rm -f conftest* |
20444 | ||
afc31813 | 20445 | fi |
a0b9e27f MB |
20446 | rm -f conftest* |
20447 | ||
afc31813 | 20448 | fi |
a0b9e27f | 20449 | rm -f conftest* |
51a9faba | 20450 | |
3a922bb4 | 20451 | ac_ext=c |
a0b9e27f | 20452 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 20453 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20454 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20455 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20456 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20457 | |
a0b9e27f | 20458 | |
247f5006 | 20459 | fi |
a0b9e27f MB |
20460 | |
20461 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 20462 | |
3a922bb4 RL |
20463 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
20464 | wxUSE_SOCKETS=no | |
a0b9e27f | 20465 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
3a922bb4 | 20466 | else |
a0b9e27f | 20467 | cat >> confdefs.h <<EOF |
51a9faba | 20468 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
a0b9e27f | 20469 | EOF |
51a9faba | 20470 | |
3a922bb4 | 20471 | fi |
51a9faba VZ |
20472 | fi |
20473 | fi | |
afc31813 | 20474 | |
51a9faba | 20475 | if test "$wxUSE_SOCKETS" = "yes" ; then |
a0b9e27f | 20476 | cat >> confdefs.h <<\EOF |
afc31813 | 20477 | #define wxUSE_SOCKETS 1 |
a0b9e27f | 20478 | EOF |
afc31813 | 20479 | |
70f7a477 | 20480 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
20481 | fi |
20482 | ||
8284b0c5 | 20483 | |
dc3d889d VZ |
20484 | if test "$wxUSE_GUI" = "yes"; then |
20485 | ||
ac0c4cc3 | 20486 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then |
a0b9e27f | 20487 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
20488 | wxUSE_JOYSTICK=no |
20489 | fi | |
20490 | if test "$TOOLKIT" = "MOTIF"; then | |
a0b9e27f | 20491 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 |
156b2523 | 20492 | wxUSE_JOYSTICK=no |
f79bd02d JS |
20493 | fi |
20494 | if test "$TOOLKIT" = "X11"; then | |
a0b9e27f | 20495 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 |
f79bd02d | 20496 | wxUSE_JOYSTICK=no |
156b2523 GD |
20497 | fi |
20498 | ||
3a922bb4 RL |
20499 | if test "$TOOLKIT" != "MSW"; then |
20500 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
a0b9e27f | 20501 | for ac_hdr in linux/joystick.h |
10f2d63a | 20502 | do |
a0b9e27f MB |
20503 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
20504 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f7f78039 | 20505 | echo "configure:20506: checking for $ac_hdr" >&5 |
a0b9e27f MB |
20506 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20507 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20508 | else | |
20509 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 20510 | #line 20511 "configure" |
247f5006 | 20511 | #include "confdefs.h" |
a0b9e27f MB |
20512 | #include <$ac_hdr> |
20513 | EOF | |
20514 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f7f78039 | 20515 | { (eval echo configure:20516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
20516 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20517 | if test -z "$ac_err"; then | |
20518 | rm -rf conftest* | |
20519 | eval "ac_cv_header_$ac_safe=yes" | |
20520 | else | |
20521 | echo "$ac_err" >&5 | |
20522 | echo "configure: failed program was:" >&5 | |
247f5006 | 20523 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
20524 | rm -rf conftest* |
20525 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 20526 | fi |
a0b9e27f | 20527 | rm -f conftest* |
10f2d63a | 20528 | fi |
a0b9e27f MB |
20529 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
20530 | echo "$ac_t""yes" 1>&6 | |
20531 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20532 | cat >> confdefs.h <<EOF | |
20533 | #define $ac_tr_hdr 1 | |
20534 | EOF | |
20535 | ||
20536 | else | |
20537 | echo "$ac_t""no" 1>&6 | |
247f5006 | 20538 | fi |
10f2d63a VZ |
20539 | done |
20540 | ||
3a922bb4 RL |
20541 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
20542 | wxUSE_JOYSTICK=no | |
a0b9e27f | 20543 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
20544 | fi |
20545 | fi | |
20546 | fi | |
b089607b | 20547 | |
3a922bb4 | 20548 | if test "$wxUSE_JOYSTICK" = "yes"; then |
a0b9e27f | 20549 | cat >> confdefs.h <<\EOF |
10f2d63a | 20550 | #define wxUSE_JOYSTICK 1 |
a0b9e27f | 20551 | EOF |
10f2d63a | 20552 | |
3a922bb4 RL |
20553 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
20554 | fi | |
dc3d889d VZ |
20555 | fi |
20556 | ||
8284b0c5 | 20557 | |
b089607b VZ |
20558 | if test "$TOOLKIT" != "MSW"; then |
20559 | ||
3a922bb4 RL |
20560 | HAVE_DL_FUNCS=0 |
20561 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 20562 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
20563 | if test "$USE_DARWIN" = 1; then |
20564 | HAVE_DL_FUNCS=1 | |
20565 | else | |
a0b9e27f | 20566 | for ac_func in dlopen |
10f2d63a | 20567 | do |
a0b9e27f | 20568 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 20569 | echo "configure:20570: checking for $ac_func" >&5 |
a0b9e27f MB |
20570 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20571 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20572 | else | |
20573 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 20574 | #line 20575 "configure" |
10f2d63a VZ |
20575 | #include "confdefs.h" |
20576 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20577 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
20578 | #include <assert.h> |
20579 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20580 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20581 | builtin and then its argument prototype would still apply. */ |
20582 | char $ac_func(); | |
20583 | ||
20584 | int main() { | |
20585 | ||
10f2d63a VZ |
20586 | /* The GNU C library defines this for functions which it implements |
20587 | to always fail with ENOSYS. Some functions are actually named | |
20588 | something starting with __ and the normal name is an alias. */ | |
20589 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20590 | choke me | |
20591 | #else | |
a0b9e27f | 20592 | $ac_func(); |
10f2d63a VZ |
20593 | #endif |
20594 | ||
a0b9e27f MB |
20595 | ; return 0; } |
20596 | EOF | |
f7f78039 | 20597 | if { (eval echo configure:20598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20598 | rm -rf conftest* |
20599 | eval "ac_cv_func_$ac_func=yes" | |
20600 | else | |
20601 | echo "configure: failed program was:" >&5 | |
20602 | cat conftest.$ac_ext >&5 | |
20603 | rm -rf conftest* | |
20604 | eval "ac_cv_func_$ac_func=no" | |
20605 | fi | |
20606 | rm -f conftest* | |
20607 | fi | |
20608 | ||
20609 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20610 | echo "$ac_t""yes" 1>&6 | |
20611 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20612 | cat >> confdefs.h <<EOF | |
20613 | #define $ac_tr_func 1 | |
20614 | EOF | |
20615 | ||
20616 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20617 | #define HAVE_DLOPEN 1 |
a0b9e27f | 20618 | EOF |
10f2d63a | 20619 | |
3a922bb4 | 20620 | HAVE_DL_FUNCS=1 |
a0b9e27f | 20621 | |
10f2d63a | 20622 | else |
a0b9e27f MB |
20623 | echo "$ac_t""no" 1>&6 |
20624 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
f7f78039 | 20625 | echo "configure:20626: checking for dlopen in -ldl" >&5 |
a0b9e27f MB |
20626 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
20627 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20628 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20629 | else |
a0b9e27f | 20630 | ac_save_LIBS="$LIBS" |
10f2d63a | 20631 | LIBS="-ldl $LIBS" |
a0b9e27f | 20632 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 20633 | #line 20634 "configure" |
10f2d63a VZ |
20634 | #include "confdefs.h" |
20635 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20636 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20637 | builtin and then its argument prototype would still apply. */ |
20638 | char dlopen(); | |
20639 | ||
20640 | int main() { | |
20641 | dlopen() | |
20642 | ; return 0; } | |
20643 | EOF | |
f7f78039 | 20644 | if { (eval echo configure:20645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20645 | rm -rf conftest* |
20646 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20647 | else | |
20648 | echo "configure: failed program was:" >&5 | |
20649 | cat conftest.$ac_ext >&5 | |
20650 | rm -rf conftest* | |
20651 | eval "ac_cv_lib_$ac_lib_var=no" | |
20652 | fi | |
20653 | rm -f conftest* | |
20654 | LIBS="$ac_save_LIBS" | |
20655 | ||
20656 | fi | |
20657 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20658 | echo "$ac_t""yes" 1>&6 | |
20659 | ||
20660 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20661 | #define HAVE_DLOPEN 1 |
a0b9e27f | 20662 | EOF |
10f2d63a | 20663 | |
3a922bb4 | 20664 | HAVE_DL_FUNCS=1 |
3d63bc3a | 20665 | DL_LINK=" -ldl$DL_LINK" |
a0b9e27f | 20666 | |
10f2d63a | 20667 | else |
a0b9e27f | 20668 | echo "$ac_t""no" 1>&6 |
10f2d63a | 20669 | |
a0b9e27f | 20670 | for ac_func in shl_load |
10f2d63a | 20671 | do |
a0b9e27f | 20672 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 20673 | echo "configure:20674: checking for $ac_func" >&5 |
a0b9e27f MB |
20674 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20675 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20676 | else | |
20677 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 20678 | #line 20679 "configure" |
10f2d63a VZ |
20679 | #include "confdefs.h" |
20680 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20681 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
20682 | #include <assert.h> |
20683 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20684 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20685 | builtin and then its argument prototype would still apply. */ |
20686 | char $ac_func(); | |
20687 | ||
20688 | int main() { | |
20689 | ||
10f2d63a VZ |
20690 | /* The GNU C library defines this for functions which it implements |
20691 | to always fail with ENOSYS. Some functions are actually named | |
20692 | something starting with __ and the normal name is an alias. */ | |
20693 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20694 | choke me | |
20695 | #else | |
a0b9e27f | 20696 | $ac_func(); |
10f2d63a VZ |
20697 | #endif |
20698 | ||
a0b9e27f MB |
20699 | ; return 0; } |
20700 | EOF | |
f7f78039 | 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_func_$ac_func=yes" | |
20704 | else | |
20705 | echo "configure: failed program was:" >&5 | |
20706 | cat conftest.$ac_ext >&5 | |
20707 | rm -rf conftest* | |
20708 | eval "ac_cv_func_$ac_func=no" | |
20709 | fi | |
20710 | rm -f conftest* | |
20711 | fi | |
20712 | ||
20713 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20714 | echo "$ac_t""yes" 1>&6 | |
20715 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20716 | cat >> confdefs.h <<EOF | |
20717 | #define $ac_tr_func 1 | |
20718 | EOF | |
20719 | ||
20720 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20721 | #define HAVE_SHL_LOAD 1 |
a0b9e27f | 20722 | EOF |
10f2d63a | 20723 | |
3a922bb4 | 20724 | HAVE_SHL_FUNCS=1 |
a0b9e27f | 20725 | |
10f2d63a | 20726 | else |
a0b9e27f MB |
20727 | echo "$ac_t""no" 1>&6 |
20728 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
f7f78039 | 20729 | echo "configure:20730: checking for dld in -lshl_load" >&5 |
a0b9e27f MB |
20730 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
20731 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20732 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 20733 | else |
a0b9e27f | 20734 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 20735 | LIBS="-lshl_load $LIBS" |
a0b9e27f | 20736 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 20737 | #line 20738 "configure" |
f6bcfd97 | 20738 | #include "confdefs.h" |
8284b0c5 | 20739 | /* Override any gcc2 internal prototype to avoid an error. */ |
f6bcfd97 | 20740 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
20741 | builtin and then its argument prototype would still apply. */ |
20742 | char dld(); | |
20743 | ||
20744 | int main() { | |
20745 | dld() | |
20746 | ; return 0; } | |
20747 | EOF | |
f7f78039 | 20748 | if { (eval echo configure:20749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20749 | rm -rf conftest* |
20750 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20751 | else | |
20752 | echo "configure: failed program was:" >&5 | |
20753 | cat conftest.$ac_ext >&5 | |
20754 | rm -rf conftest* | |
20755 | eval "ac_cv_lib_$ac_lib_var=no" | |
20756 | fi | |
20757 | rm -f conftest* | |
20758 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 20759 | |
a0b9e27f MB |
20760 | fi |
20761 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20762 | echo "$ac_t""yes" 1>&6 | |
20763 | ||
3a922bb4 | 20764 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 20765 | DL_LINK=" -ldld$DL_LINK" |
a0b9e27f MB |
20766 | |
20767 | else | |
20768 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
20769 | fi |
20770 | ||
a0b9e27f | 20771 | |
10f2d63a VZ |
20772 | fi |
20773 | done | |
20774 | ||
a0b9e27f | 20775 | |
10f2d63a VZ |
20776 | fi |
20777 | ||
a0b9e27f | 20778 | |
10f2d63a VZ |
20779 | fi |
20780 | done | |
20781 | ||
5c6fa7d2 | 20782 | |
8284b0c5 | 20783 | if test "$HAVE_DL_FUNCS" = 1; then |
a0b9e27f | 20784 | for ac_func in dlerror |
f6bcfd97 | 20785 | do |
a0b9e27f | 20786 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
f7f78039 | 20787 | echo "configure:20788: checking for $ac_func" >&5 |
a0b9e27f MB |
20788 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20789 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20790 | else | |
20791 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 20792 | #line 20793 "configure" |
f6bcfd97 BP |
20793 | #include "confdefs.h" |
20794 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20795 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
20796 | #include <assert.h> |
20797 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20798 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20799 | builtin and then its argument prototype would still apply. */ |
20800 | char $ac_func(); | |
20801 | ||
20802 | int main() { | |
20803 | ||
f6bcfd97 BP |
20804 | /* The GNU C library defines this for functions which it implements |
20805 | to always fail with ENOSYS. Some functions are actually named | |
20806 | something starting with __ and the normal name is an alias. */ | |
20807 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20808 | choke me | |
20809 | #else | |
a0b9e27f | 20810 | $ac_func(); |
f6bcfd97 BP |
20811 | #endif |
20812 | ||
a0b9e27f MB |
20813 | ; return 0; } |
20814 | EOF | |
f7f78039 | 20815 | if { (eval echo configure:20816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20816 | rm -rf conftest* |
20817 | eval "ac_cv_func_$ac_func=yes" | |
20818 | else | |
20819 | echo "configure: failed program was:" >&5 | |
20820 | cat conftest.$ac_ext >&5 | |
20821 | rm -rf conftest* | |
20822 | eval "ac_cv_func_$ac_func=no" | |
20823 | fi | |
20824 | rm -f conftest* | |
20825 | fi | |
20826 | ||
20827 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20828 | echo "$ac_t""yes" 1>&6 | |
20829 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20830 | cat >> confdefs.h <<EOF | |
20831 | #define $ac_tr_func 1 | |
20832 | EOF | |
20833 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 20834 | #define HAVE_DLERROR 1 |
a0b9e27f | 20835 | EOF |
f6bcfd97 BP |
20836 | |
20837 | else | |
a0b9e27f MB |
20838 | echo "$ac_t""no" 1>&6 |
20839 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
f7f78039 | 20840 | echo "configure:20841: checking for dlerror in -ldl" >&5 |
a0b9e27f MB |
20841 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
20842 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20843 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 20844 | else |
a0b9e27f | 20845 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 20846 | LIBS="-ldl $LIBS" |
a0b9e27f | 20847 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 20848 | #line 20849 "configure" |
f6bcfd97 BP |
20849 | #include "confdefs.h" |
20850 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20851 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20852 | builtin and then its argument prototype would still apply. */ |
20853 | char dlerror(); | |
20854 | ||
20855 | int main() { | |
20856 | dlerror() | |
20857 | ; return 0; } | |
20858 | EOF | |
f7f78039 | 20859 | if { (eval echo configure:20860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20860 | rm -rf conftest* |
20861 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20862 | else | |
20863 | echo "configure: failed program was:" >&5 | |
20864 | cat conftest.$ac_ext >&5 | |
20865 | rm -rf conftest* | |
20866 | eval "ac_cv_lib_$ac_lib_var=no" | |
20867 | fi | |
20868 | rm -f conftest* | |
20869 | LIBS="$ac_save_LIBS" | |
20870 | ||
20871 | fi | |
20872 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20873 | echo "$ac_t""yes" 1>&6 | |
20874 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 20875 | #define HAVE_DLERROR 1 |
a0b9e27f | 20876 | EOF |
f6bcfd97 | 20877 | |
a0b9e27f MB |
20878 | else |
20879 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
20880 | fi |
20881 | ||
20882 | fi | |
20883 | done | |
20884 | ||
3a922bb4 RL |
20885 | fi |
20886 | fi | |
f6bcfd97 | 20887 | |
3a922bb4 RL |
20888 | if test "$HAVE_DL_FUNCS" = 0; then |
20889 | if test "$HAVE_SHL_FUNCS" = 0; then | |
20890 | if test "$USE_UNIX" = 1; then | |
a0b9e27f | 20891 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
0b9ab0bd | 20892 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
20893 | wxUSE_DYNLIB_CLASS=no |
20894 | else | |
a0b9e27f | 20895 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
3a922bb4 RL |
20896 | fi |
20897 | fi | |
10f2d63a VZ |
20898 | fi |
20899 | fi | |
20900 | fi | |
20901 | ||
0b9ab0bd | 20902 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
a0b9e27f | 20903 | cat >> confdefs.h <<\EOF |
0b9ab0bd | 20904 | #define wxUSE_DYNAMIC_LOADER 1 |
a0b9e27f | 20905 | EOF |
0b9ab0bd RL |
20906 | |
20907 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
a0b9e27f | 20908 | cat >> confdefs.h <<\EOF |
10f2d63a | 20909 | #define wxUSE_DYNLIB_CLASS 1 |
a0b9e27f | 20910 | EOF |
10f2d63a VZ |
20911 | |
20912 | fi | |
20913 | ||
8284b0c5 | 20914 | |
1e6feb95 | 20915 | if test "$wxUSE_FONTMAP" = "yes" ; then |
a0b9e27f | 20916 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20917 | #define wxUSE_FONTMAP 1 |
a0b9e27f | 20918 | EOF |
1e6feb95 VZ |
20919 | |
20920 | fi | |
20921 | ||
10f2d63a | 20922 | if test "$wxUSE_UNICODE" = "yes" ; then |
a0b9e27f | 20923 | cat >> confdefs.h <<\EOF |
10f2d63a | 20924 | #define wxUSE_UNICODE 1 |
a0b9e27f | 20925 | EOF |
10f2d63a | 20926 | |
8284b0c5 | 20927 | |
bbc3925a VS |
20928 | if test "$wxUSE_MSW" != 1; then |
20929 | wxUSE_UNICODE_MSLU=no | |
20930 | fi | |
a72a4bfa VS |
20931 | |
20932 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
a0b9e27f | 20933 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 |
f7f78039 | 20934 | echo "configure:20935: checking for main in -lunicows" >&5 |
a0b9e27f MB |
20935 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
20936 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20937 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a72a4bfa | 20938 | else |
a0b9e27f | 20939 | ac_save_LIBS="$LIBS" |
a72a4bfa | 20940 | LIBS="-lunicows $LIBS" |
a0b9e27f | 20941 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 20942 | #line 20943 "configure" |
a72a4bfa VS |
20943 | #include "confdefs.h" |
20944 | ||
a0b9e27f MB |
20945 | int main() { |
20946 | main() | |
20947 | ; return 0; } | |
20948 | EOF | |
f7f78039 | 20949 | if { (eval echo configure:20950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20950 | rm -rf conftest* |
20951 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20952 | else | |
20953 | echo "configure: failed program was:" >&5 | |
20954 | cat conftest.$ac_ext >&5 | |
20955 | rm -rf conftest* | |
20956 | eval "ac_cv_lib_$ac_lib_var=no" | |
20957 | fi | |
20958 | rm -f conftest* | |
20959 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 20960 | |
a0b9e27f MB |
20961 | fi |
20962 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20963 | echo "$ac_t""yes" 1>&6 | |
20964 | ||
20965 | cat >> confdefs.h <<\EOF | |
a72a4bfa | 20966 | #define wxUSE_UNICODE_MSLU 1 |
a0b9e27f | 20967 | EOF |
a72a4bfa | 20968 | |
a0b9e27f | 20969 | |
a72a4bfa | 20970 | else |
a0b9e27f | 20971 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 20972 | |
a0b9e27f MB |
20973 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. |
20974 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
a72a4bfa | 20975 | wxUSE_UNICODE_MSLU=no |
a0b9e27f | 20976 | |
a72a4bfa VS |
20977 | fi |
20978 | ||
20979 | fi | |
10f2d63a VZ |
20980 | fi |
20981 | ||
10f2d63a | 20982 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
a0b9e27f | 20983 | cat >> confdefs.h <<\EOF |
10f2d63a | 20984 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
a0b9e27f | 20985 | EOF |
10f2d63a VZ |
20986 | |
20987 | fi | |
20988 | ||
8284b0c5 MB |
20989 | |
20990 | ||
10f2d63a VZ |
20991 | IODBC_C_SRC="" |
20992 | if test "$wxUSE_ODBC" = "yes" ; then | |
a0b9e27f | 20993 | cat >> confdefs.h <<\EOF |
10f2d63a | 20994 | #define wxUSE_ODBC 1 |
a0b9e27f | 20995 | EOF |
10f2d63a VZ |
20996 | |
20997 | WXODBCFLAG="-D_IODBC_" | |
20998 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
20999 | fi |
21000 | ||
8284b0c5 | 21001 | |
10f2d63a | 21002 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
a0b9e27f | 21003 | cat >> confdefs.h <<\EOF |
10f2d63a | 21004 | #define wxUSE_POSTSCRIPT 1 |
a0b9e27f | 21005 | EOF |
10f2d63a VZ |
21006 | |
21007 | fi | |
21008 | ||
a0b9e27f | 21009 | cat >> confdefs.h <<\EOF |
10f2d63a | 21010 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
a0b9e27f | 21011 | EOF |
10f2d63a | 21012 | |
8284b0c5 | 21013 | |
a0b9e27f | 21014 | cat >> confdefs.h <<\EOF |
10f2d63a | 21015 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
a0b9e27f | 21016 | EOF |
10f2d63a | 21017 | |
8284b0c5 MB |
21018 | |
21019 | ||
10f2d63a | 21020 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
a0b9e27f | 21021 | cat >> confdefs.h <<\EOF |
10f2d63a | 21022 | #define wxUSE_CONSTRAINTS 1 |
a0b9e27f | 21023 | EOF |
10f2d63a VZ |
21024 | |
21025 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
21026 | fi | |
21027 | ||
21028 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 21029 | |
8284b0c5 | 21030 | |
bb811f17 | 21031 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
a0b9e27f | 21032 | cat >> confdefs.h <<\EOF |
10f2d63a | 21033 | #define wxUSE_MDI_ARCHITECTURE 1 |
a0b9e27f | 21034 | EOF |
10f2d63a | 21035 | |
bb811f17 JS |
21036 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
21037 | fi | |
10f2d63a VZ |
21038 | fi |
21039 | ||
21040 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 21041 | cat >> confdefs.h <<\EOF |
10f2d63a | 21042 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
a0b9e27f | 21043 | EOF |
10f2d63a VZ |
21044 | |
21045 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
21046 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
21047 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
21048 | fi | |
21049 | fi | |
21050 | ||
21051 | if test "$wxUSE_HELP" = "yes"; then | |
a0b9e27f | 21052 | cat >> confdefs.h <<\EOF |
10f2d63a | 21053 | #define wxUSE_HELP 1 |
a0b9e27f | 21054 | EOF |
10f2d63a VZ |
21055 | |
21056 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 21057 | |
77e13408 | 21058 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 21059 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
a0b9e27f | 21060 | cat >> confdefs.h <<\EOF |
29fd3c0c | 21061 | #define wxUSE_MS_HTML_HELP 1 |
a0b9e27f | 21062 | EOF |
29fd3c0c | 21063 | |
3e44f09d | 21064 | fi |
3379ed37 | 21065 | fi |
031d8228 VS |
21066 | |
21067 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
21068 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 21069 | cat >> confdefs.h <<\EOF |
031d8228 | 21070 | #define wxUSE_WXHTML_HELP 1 |
a0b9e27f | 21071 | EOF |
031d8228 VS |
21072 | |
21073 | else | |
a0b9e27f | 21074 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 |
031d8228 VS |
21075 | wxUSE_WXHTML_HELP=no |
21076 | fi | |
21077 | fi | |
10f2d63a VZ |
21078 | fi |
21079 | ||
21080 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
21081 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21082 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 21083 | else |
a0b9e27f | 21084 | cat >> confdefs.h <<\EOF |
10f2d63a | 21085 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
a0b9e27f | 21086 | EOF |
10f2d63a VZ |
21087 | |
21088 | fi | |
21089 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
21090 | fi | |
21091 | ||
10f2d63a | 21092 | |
10f2d63a VZ |
21093 | |
21094 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
a0b9e27f | 21095 | cat >> confdefs.h <<\EOF |
10f2d63a | 21096 | #define wxUSE_X_RESOURCES 1 |
a0b9e27f | 21097 | EOF |
10f2d63a VZ |
21098 | |
21099 | fi | |
21100 | ||
8284b0c5 | 21101 | |
77e13408 RL |
21102 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
21103 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
3bce6687 | 21104 | -o "$wxUSE_OLE" = "yes" \ |
77e13408 | 21105 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then |
a0b9e27f | 21106 | for ac_hdr in ole2.h |
10f2d63a | 21107 | do |
a0b9e27f MB |
21108 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
21109 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f7f78039 | 21110 | echo "configure:21111: checking for $ac_hdr" >&5 |
a0b9e27f MB |
21111 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
21112 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21113 | else | |
21114 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 21115 | #line 21116 "configure" |
10f2d63a | 21116 | #include "confdefs.h" |
a0b9e27f MB |
21117 | #include <$ac_hdr> |
21118 | EOF | |
21119 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f7f78039 | 21120 | { (eval echo configure:21121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
21121 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
21122 | if test -z "$ac_err"; then | |
21123 | rm -rf conftest* | |
21124 | eval "ac_cv_header_$ac_safe=yes" | |
21125 | else | |
21126 | echo "$ac_err" >&5 | |
21127 | echo "configure: failed program was:" >&5 | |
10f2d63a | 21128 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
21129 | rm -rf conftest* |
21130 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 21131 | fi |
a0b9e27f | 21132 | rm -f conftest* |
10f2d63a | 21133 | fi |
a0b9e27f MB |
21134 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
21135 | echo "$ac_t""yes" 1>&6 | |
21136 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
21137 | cat >> confdefs.h <<EOF | |
21138 | #define $ac_tr_hdr 1 | |
21139 | EOF | |
21140 | ||
21141 | else | |
21142 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
21143 | fi |
21144 | done | |
21145 | ||
8284b0c5 | 21146 | |
2b9bdf71 VZ |
21147 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
21148 | if test "$GCC" = yes ; then | |
a0b9e27f MB |
21149 | |
21150 | ac_ext=C | |
21151 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8284b0c5 | 21152 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
21153 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
21154 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
21155 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 MB |
21156 | |
21157 | ||
a0b9e27f | 21158 | echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6 |
f7f78039 | 21159 | echo "configure:21160: checking if g++ requires -fvtable-thunks" >&5 |
a0b9e27f | 21160 | cat > conftest.$ac_ext <<EOF |
f7f78039 | 21161 | #line 21162 "configure" |
8284b0c5 MB |
21162 | #include "confdefs.h" |
21163 | #include <windows.h> | |
21164 | #include <ole2.h> | |
a0b9e27f | 21165 | int main() { |
8284b0c5 | 21166 | |
a0b9e27f MB |
21167 | ; return 0; } |
21168 | EOF | |
f7f78039 | 21169 | if { (eval echo configure:21170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
21170 | rm -rf conftest* |
21171 | echo "$ac_t""no" 1>&6 | |
21172 | else | |
21173 | echo "configure: failed program was:" >&5 | |
21174 | cat conftest.$ac_ext >&5 | |
21175 | rm -rf conftest* | |
21176 | echo "$ac_t""yes" 1>&6 | |
8284b0c5 MB |
21177 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
21178 | fi | |
a0b9e27f | 21179 | rm -f conftest* |
8284b0c5 | 21180 | ac_ext=c |
a0b9e27f | 21181 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8284b0c5 | 21182 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
21183 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
21184 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
21185 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 21186 | |
2b9bdf71 | 21187 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 21188 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
a0b9e27f | 21189 | cat >> confdefs.h <<\EOF |
4f11a343 | 21190 | #define wxUSE_OLE 1 |
a0b9e27f | 21191 | EOF |
4f11a343 | 21192 | |
8284b0c5 | 21193 | |
2b9bdf71 VZ |
21194 | fi |
21195 | ||
a0b9e27f | 21196 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21197 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 21198 | EOF |
2b9bdf71 VZ |
21199 | |
21200 | else | |
a0b9e27f | 21201 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 |
2b9bdf71 VZ |
21202 | |
21203 | wxUSE_CLIPBOARD=no | |
21204 | wxUSE_DRAG_AND_DROP=no | |
21205 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
21206 | wxUSE_OLE=no |
21207 | fi | |
21208 | ||
21209 | if test "$wxUSE_METAFILE" = "yes"; then | |
21210 | cat >> confdefs.h <<\EOF | |
21211 | #define wxUSE_METAFILE 1 | |
21212 | EOF | |
21213 | ||
21214 | ||
21215 | cat >> confdefs.h <<\EOF | |
21216 | #define wxUSE_ENH_METAFILE 1 | |
21217 | EOF | |
21218 | ||
21219 | fi | |
21220 | fi | |
21221 | ||
2b9bdf71 VZ |
21222 | if test "$wxUSE_IPC" = "yes"; then |
21223 | if test "$wxUSE_SOCKETS" != "yes"; then | |
a0b9e27f | 21224 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
21225 | fi |
21226 | ||
a0b9e27f | 21227 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21228 | #define wxUSE_IPC 1 |
a0b9e27f | 21229 | EOF |
2b9bdf71 VZ |
21230 | |
21231 | fi | |
21232 | ||
21233 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 21234 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 21235 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
21236 | wxUSE_CLIPBOARD=no |
21237 | fi | |
21238 | ||
21239 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
a0b9e27f | 21240 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21241 | #define wxUSE_CLIPBOARD 1 |
a0b9e27f | 21242 | EOF |
2b9bdf71 | 21243 | |
8284b0c5 | 21244 | |
a0b9e27f | 21245 | cat >> confdefs.h <<\EOF |
673f4220 | 21246 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 21247 | EOF |
673f4220 | 21248 | |
6c657b52 | 21249 | fi |
2b9bdf71 VZ |
21250 | fi |
21251 | ||
21252 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
21253 | if test "$wxUSE_GTK" = 1; then | |
21254 | if test "$WXGTK12" != 1; then | |
a0b9e27f | 21255 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
21256 | wxUSE_DRAG_AND_DROP=no |
21257 | fi | |
21258 | fi | |
21259 | ||
2b9bdf71 | 21260 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 21261 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
21262 | wxUSE_DRAG_AND_DROP=no |
21263 | fi | |
21264 | ||
f79bd02d | 21265 | if test "$wxUSE_X11" = 1; then |
a0b9e27f | 21266 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 |
f79bd02d JS |
21267 | wxUSE_DRAG_AND_DROP=no |
21268 | fi | |
21269 | ||
6c657b52 | 21270 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 21271 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
21272 | wxUSE_DRAG_AND_DROP=no |
21273 | fi | |
21274 | ||
10f2d63a | 21275 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
a0b9e27f | 21276 | cat >> confdefs.h <<\EOF |
10f2d63a | 21277 | #define wxUSE_DRAG_AND_DROP 1 |
a0b9e27f | 21278 | EOF |
10f2d63a VZ |
21279 | |
21280 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
21281 | fi | |
21282 | ||
21283 | fi | |
21284 | ||
21285 | if test "$wxUSE_SPLINES" = "yes" ; then | |
a0b9e27f | 21286 | cat >> confdefs.h <<\EOF |
10f2d63a | 21287 | #define wxUSE_SPLINES 1 |
a0b9e27f | 21288 | EOF |
10f2d63a VZ |
21289 | |
21290 | fi | |
21291 | ||
8284b0c5 | 21292 | |
1e6feb95 VZ |
21293 | USES_CONTROLS=0 |
21294 | if test "$wxUSE_CONTROLS" = "yes"; then | |
21295 | USES_CONTROLS=1 | |
21296 | fi | |
21297 | ||
10f2d63a | 21298 | if test "$wxUSE_ACCEL" = "yes"; then |
a0b9e27f | 21299 | cat >> confdefs.h <<\EOF |
10f2d63a | 21300 | #define wxUSE_ACCEL 1 |
a0b9e27f | 21301 | EOF |
10f2d63a | 21302 | |
1e6feb95 VZ |
21303 | USES_CONTROLS=1 |
21304 | fi | |
21305 | ||
21306 | if test "$wxUSE_BUTTON" = "yes"; then | |
a0b9e27f | 21307 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21308 | #define wxUSE_BUTTON 1 |
a0b9e27f | 21309 | EOF |
1e6feb95 VZ |
21310 | |
21311 | USES_CONTROLS=1 | |
21312 | fi | |
21313 | ||
21314 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
a0b9e27f | 21315 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21316 | #define wxUSE_BMPBUTTON 1 |
a0b9e27f | 21317 | EOF |
1e6feb95 VZ |
21318 | |
21319 | USES_CONTROLS=1 | |
21320 | fi | |
21321 | ||
21322 | if test "$wxUSE_CALCTRL" = "yes"; then | |
a0b9e27f | 21323 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21324 | #define wxUSE_CALENDARCTRL 1 |
a0b9e27f | 21325 | EOF |
1e6feb95 VZ |
21326 | |
21327 | USES_CONTROLS=1 | |
21328 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
21329 | fi |
21330 | ||
21331 | if test "$wxUSE_CARET" = "yes"; then | |
a0b9e27f | 21332 | cat >> confdefs.h <<\EOF |
10f2d63a | 21333 | #define wxUSE_CARET 1 |
a0b9e27f | 21334 | EOF |
10f2d63a | 21335 | |
1e6feb95 | 21336 | USES_CONTROLS=1 |
10f2d63a VZ |
21337 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
21338 | fi | |
21339 | ||
21340 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
a0b9e27f | 21341 | cat >> confdefs.h <<\EOF |
10f2d63a | 21342 | #define wxUSE_COMBOBOX 1 |
a0b9e27f | 21343 | EOF |
10f2d63a | 21344 | |
1e6feb95 | 21345 | USES_CONTROLS=1 |
10f2d63a VZ |
21346 | fi |
21347 | ||
21348 | if test "$wxUSE_CHOICE" = "yes"; then | |
a0b9e27f | 21349 | cat >> confdefs.h <<\EOF |
10f2d63a | 21350 | #define wxUSE_CHOICE 1 |
a0b9e27f | 21351 | EOF |
10f2d63a | 21352 | |
1e6feb95 | 21353 | USES_CONTROLS=1 |
10f2d63a VZ |
21354 | fi |
21355 | ||
21356 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
a0b9e27f | 21357 | cat >> confdefs.h <<\EOF |
10f2d63a | 21358 | #define wxUSE_CHECKBOX 1 |
a0b9e27f | 21359 | EOF |
10f2d63a | 21360 | |
1e6feb95 | 21361 | USES_CONTROLS=1 |
10f2d63a VZ |
21362 | fi |
21363 | ||
21364 | if test "$wxUSE_CHECKLST" = "yes"; then | |
a0b9e27f | 21365 | cat >> confdefs.h <<\EOF |
10f2d63a | 21366 | #define wxUSE_CHECKLISTBOX 1 |
a0b9e27f | 21367 | EOF |
10f2d63a | 21368 | |
1e6feb95 | 21369 | USES_CONTROLS=1 |
10f2d63a VZ |
21370 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
21371 | fi | |
21372 | ||
da494b40 MB |
21373 | if test "$wxUSE_DISPLAY" = "yes"; then |
21374 | cat >> confdefs.h <<\EOF | |
21375 | #define wxUSE_DISPLAY 1 | |
21376 | EOF | |
21377 | ||
21378 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
21379 | fi | |
21380 | ||
10f2d63a | 21381 | if test "$wxUSE_GAUGE" = "yes"; then |
a0b9e27f | 21382 | cat >> confdefs.h <<\EOF |
10f2d63a | 21383 | #define wxUSE_GAUGE 1 |
a0b9e27f | 21384 | EOF |
10f2d63a | 21385 | |
1e6feb95 | 21386 | USES_CONTROLS=1 |
10f2d63a VZ |
21387 | fi |
21388 | ||
d6a55c4b | 21389 | if test "$wxUSE_GRID" = "yes"; then |
a0b9e27f | 21390 | cat >> confdefs.h <<\EOF |
d6a55c4b | 21391 | #define wxUSE_GRID 1 |
a0b9e27f | 21392 | EOF |
10f2d63a | 21393 | |
1e6feb95 | 21394 | USES_CONTROLS=1 |
d6a55c4b | 21395 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
21396 | fi |
21397 | ||
21398 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21399 | cat >> confdefs.h <<\EOF |
10f2d63a | 21400 | #define wxUSE_IMAGLIST 1 |
a0b9e27f | 21401 | EOF |
10f2d63a VZ |
21402 | |
21403 | fi | |
21404 | ||
21405 | if test "$wxUSE_LISTBOX" = "yes"; then | |
a0b9e27f | 21406 | cat >> confdefs.h <<\EOF |
10f2d63a | 21407 | #define wxUSE_LISTBOX 1 |
a0b9e27f | 21408 | EOF |
10f2d63a | 21409 | |
1e6feb95 | 21410 | USES_CONTROLS=1 |
10f2d63a VZ |
21411 | fi |
21412 | ||
21413 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
21414 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21415 | cat >> confdefs.h <<\EOF |
10f2d63a | 21416 | #define wxUSE_LISTCTRL 1 |
a0b9e27f | 21417 | EOF |
10f2d63a | 21418 | |
1e6feb95 | 21419 | USES_CONTROLS=1 |
10f2d63a VZ |
21420 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
21421 | else | |
a0b9e27f | 21422 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
21423 | fi |
21424 | fi | |
21425 | ||
21426 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
a0b9e27f | 21427 | cat >> confdefs.h <<\EOF |
10f2d63a | 21428 | #define wxUSE_NOTEBOOK 1 |
a0b9e27f | 21429 | EOF |
10f2d63a | 21430 | |
1e6feb95 | 21431 | USES_CONTROLS=1 |
10f2d63a VZ |
21432 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
21433 | fi | |
21434 | ||
24176f2c | 21435 | |
10f2d63a | 21436 | if test "$wxUSE_RADIOBOX" = "yes"; then |
a0b9e27f | 21437 | cat >> confdefs.h <<\EOF |
10f2d63a | 21438 | #define wxUSE_RADIOBOX 1 |
a0b9e27f | 21439 | EOF |
10f2d63a | 21440 | |
1e6feb95 | 21441 | USES_CONTROLS=1 |
10f2d63a VZ |
21442 | fi |
21443 | ||
21444 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
a0b9e27f | 21445 | cat >> confdefs.h <<\EOF |
10f2d63a | 21446 | #define wxUSE_RADIOBTN 1 |
a0b9e27f | 21447 | EOF |
10f2d63a | 21448 | |
1e6feb95 | 21449 | USES_CONTROLS=1 |
10f2d63a VZ |
21450 | fi |
21451 | ||
21452 | if test "$wxUSE_SASH" = "yes"; then | |
a0b9e27f | 21453 | cat >> confdefs.h <<\EOF |
10f2d63a | 21454 | #define wxUSE_SASH 1 |
a0b9e27f | 21455 | EOF |
10f2d63a VZ |
21456 | |
21457 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
21458 | fi | |
21459 | ||
21460 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
a0b9e27f | 21461 | cat >> confdefs.h <<\EOF |
10f2d63a | 21462 | #define wxUSE_SCROLLBAR 1 |
a0b9e27f | 21463 | EOF |
10f2d63a | 21464 | |
1e6feb95 | 21465 | USES_CONTROLS=1 |
741a9306 | 21466 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
21467 | fi |
21468 | ||
21469 | if test "$wxUSE_SLIDER" = "yes"; then | |
a0b9e27f | 21470 | cat >> confdefs.h <<\EOF |
10f2d63a | 21471 | #define wxUSE_SLIDER 1 |
a0b9e27f | 21472 | EOF |
10f2d63a | 21473 | |
1e6feb95 | 21474 | USES_CONTROLS=1 |
10f2d63a VZ |
21475 | fi |
21476 | ||
21477 | if test "$wxUSE_SPINBTN" = "yes"; then | |
a0b9e27f | 21478 | cat >> confdefs.h <<\EOF |
10f2d63a | 21479 | #define wxUSE_SPINBTN 1 |
a0b9e27f | 21480 | EOF |
10f2d63a | 21481 | |
1e6feb95 | 21482 | USES_CONTROLS=1 |
10f2d63a VZ |
21483 | fi |
21484 | ||
56cfaa52 | 21485 | if test "$wxUSE_SPINCTRL" = "yes"; then |
a0b9e27f | 21486 | cat >> confdefs.h <<\EOF |
56cfaa52 | 21487 | #define wxUSE_SPINCTRL 1 |
a0b9e27f | 21488 | EOF |
56cfaa52 | 21489 | |
1e6feb95 | 21490 | USES_CONTROLS=1 |
56cfaa52 RR |
21491 | fi |
21492 | ||
10f2d63a | 21493 | if test "$wxUSE_SPLITTER" = "yes"; then |
a0b9e27f | 21494 | cat >> confdefs.h <<\EOF |
10f2d63a | 21495 | #define wxUSE_SPLITTER 1 |
a0b9e27f | 21496 | EOF |
10f2d63a VZ |
21497 | |
21498 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
21499 | fi | |
21500 | ||
21501 | if test "$wxUSE_STATBMP" = "yes"; then | |
a0b9e27f | 21502 | cat >> confdefs.h <<\EOF |
10f2d63a | 21503 | #define wxUSE_STATBMP 1 |
a0b9e27f | 21504 | EOF |
10f2d63a | 21505 | |
1e6feb95 | 21506 | USES_CONTROLS=1 |
10f2d63a VZ |
21507 | fi |
21508 | ||
21509 | if test "$wxUSE_STATBOX" = "yes"; then | |
a0b9e27f | 21510 | cat >> confdefs.h <<\EOF |
10f2d63a | 21511 | #define wxUSE_STATBOX 1 |
a0b9e27f | 21512 | EOF |
10f2d63a | 21513 | |
1e6feb95 VZ |
21514 | USES_CONTROLS=1 |
21515 | fi | |
21516 | ||
21517 | if test "$wxUSE_STATTEXT" = "yes"; then | |
a0b9e27f | 21518 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21519 | #define wxUSE_STATTEXT 1 |
a0b9e27f | 21520 | EOF |
1e6feb95 VZ |
21521 | |
21522 | USES_CONTROLS=1 | |
10f2d63a VZ |
21523 | fi |
21524 | ||
21525 | if test "$wxUSE_STATLINE" = "yes"; then | |
89e6bf6d | 21526 | cat >> confdefs.h <<\EOF |
10f2d63a | 21527 | #define wxUSE_STATLINE 1 |
a0b9e27f | 21528 | EOF |
10f2d63a | 21529 | |
89e6bf6d | 21530 | USES_CONTROLS=1 |
10f2d63a VZ |
21531 | fi |
21532 | ||
21533 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
a0b9e27f | 21534 | cat >> confdefs.h <<\EOF |
10f2d63a | 21535 | #define wxUSE_STATUSBAR 1 |
a0b9e27f | 21536 | EOF |
10f2d63a | 21537 | |
1e6feb95 | 21538 | USES_CONTROLS=1 |
698dcdb6 | 21539 | |
2286341c | 21540 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
21541 | fi |
21542 | ||
21543 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
a0b9e27f | 21544 | cat >> confdefs.h <<\EOF |
10f2d63a | 21545 | #define wxUSE_TAB_DIALOG 1 |
a0b9e27f | 21546 | EOF |
10f2d63a VZ |
21547 | |
21548 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
21549 | fi | |
21550 | ||
1e6feb95 | 21551 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
a0b9e27f | 21552 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21553 | #define wxUSE_TEXTCTRL 1 |
a0b9e27f | 21554 | EOF |
1e6feb95 VZ |
21555 | |
21556 | USES_CONTROLS=1 | |
21557 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
21558 | fi | |
21559 | ||
1db8dc4a | 21560 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
ac0c4cc3 | 21561 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
a0b9e27f | 21562 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
21563 | wxUSE_TOGGLEBTN=no |
21564 | fi | |
21565 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
a0b9e27f | 21566 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
21567 | wxUSE_TOGGLEBTN=no |
21568 | fi | |
21569 | ||
21570 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
a0b9e27f | 21571 | cat >> confdefs.h <<\EOF |
1db8dc4a | 21572 | #define wxUSE_TOGGLEBTN 1 |
a0b9e27f | 21573 | EOF |
1db8dc4a | 21574 | |
1e6feb95 | 21575 | USES_CONTROLS=1 |
a45d7ab7 | 21576 | fi |
1db8dc4a VZ |
21577 | fi |
21578 | ||
360d6699 | 21579 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
a0b9e27f | 21580 | cat >> confdefs.h <<\EOF |
360d6699 | 21581 | #define wxUSE_TOOLBAR_SIMPLE 1 |
a0b9e27f | 21582 | EOF |
360d6699 VZ |
21583 | |
21584 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 21585 | USES_CONTROLS=1 |
360d6699 VZ |
21586 | fi |
21587 | ||
10f2d63a | 21588 | if test "$wxUSE_TOOLBAR" = "yes"; then |
a0b9e27f | 21589 | cat >> confdefs.h <<\EOF |
10f2d63a | 21590 | #define wxUSE_TOOLBAR 1 |
a0b9e27f | 21591 | EOF |
10f2d63a | 21592 | |
1e6feb95 | 21593 | USES_CONTROLS=1 |
698dcdb6 | 21594 | |
360d6699 VZ |
21595 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
21596 | wxUSE_TOOLBAR_NATIVE="yes" | |
21597 | fi | |
21598 | ||
1e6feb95 | 21599 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
a0b9e27f | 21600 | cat >> confdefs.h <<\EOF |
360d6699 | 21601 | #define wxUSE_TOOLBAR_NATIVE 1 |
a0b9e27f | 21602 | EOF |
360d6699 | 21603 | |
1e6feb95 VZ |
21604 | USES_CONTROLS=1 |
21605 | fi | |
21606 | ||
21607 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
21608 | fi |
21609 | ||
10f2d63a VZ |
21610 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
21611 | if test "$wxUSE_MOTIF" = 1; then | |
a0b9e27f | 21612 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a | 21613 | else |
89e6bf6d VZ |
21614 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
21615 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 | |
10f2d63a | 21616 | else |
89e6bf6d | 21617 | cat >> confdefs.h <<\EOF |
10f2d63a | 21618 | #define wxUSE_TOOLTIPS 1 |
a0b9e27f | 21619 | EOF |
10f2d63a VZ |
21620 | |
21621 | fi | |
21622 | fi | |
21623 | fi | |
21624 | ||
21625 | if test "$wxUSE_TREECTRL" = "yes"; then | |
21626 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21627 | cat >> confdefs.h <<\EOF |
10f2d63a | 21628 | #define wxUSE_TREECTRL 1 |
a0b9e27f | 21629 | EOF |
10f2d63a | 21630 | |
1e6feb95 | 21631 | USES_CONTROLS=1 |
10f2d63a VZ |
21632 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
21633 | else | |
a0b9e27f | 21634 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
21635 | fi |
21636 | fi | |
21637 | ||
9f41d601 | 21638 | if test "$wxUSE_POPUPWIN" = "yes"; then |
ac0c4cc3 | 21639 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
a0b9e27f | 21640 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 21641 | else |
485cf710 | 21642 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 21643 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 |
485cf710 | 21644 | else |
3c011993 | 21645 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 21646 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 21647 | else |
a0b9e27f | 21648 | cat >> confdefs.h <<\EOF |
9f41d601 | 21649 | #define wxUSE_POPUPWIN 1 |
a0b9e27f | 21650 | EOF |
9f41d601 | 21651 | |
8284b0c5 | 21652 | |
3c011993 VZ |
21653 | USES_CONTROLS=1 |
21654 | fi | |
485cf710 | 21655 | fi |
6abe4b65 | 21656 | fi |
9f41d601 RR |
21657 | fi |
21658 | ||
dd964dcc | 21659 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 21660 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 21661 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 21662 | else |
a0b9e27f | 21663 | cat >> confdefs.h <<\EOF |
dd964dcc | 21664 | #define wxUSE_TIPWINDOW 1 |
a0b9e27f | 21665 | EOF |
dd964dcc | 21666 | |
3c011993 | 21667 | fi |
dd964dcc VZ |
21668 | fi |
21669 | ||
1e6feb95 | 21670 | if test "$USES_CONTROLS" = 1; then |
a0b9e27f | 21671 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21672 | #define wxUSE_CONTROLS 1 |
a0b9e27f | 21673 | EOF |
10f2d63a | 21674 | |
10f2d63a VZ |
21675 | fi |
21676 | ||
8284b0c5 | 21677 | |
1e6feb95 | 21678 | |
24fd6d87 | 21679 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
a0b9e27f | 21680 | cat >> confdefs.h <<\EOF |
24fd6d87 | 21681 | #define wxUSE_DRAGIMAGE 1 |
a0b9e27f | 21682 | EOF |
24fd6d87 VZ |
21683 | |
21684 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
21685 | fi | |
21686 | ||
1e6feb95 | 21687 | if test "$wxUSE_MENUS" = "yes"; then |
a0b9e27f | 21688 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21689 | #define wxUSE_MENUS 1 |
a0b9e27f | 21690 | EOF |
10f2d63a | 21691 | |
1e6feb95 | 21692 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
21693 | fi |
21694 | ||
1e6feb95 | 21695 | if test "$wxUSE_METAFILE" = "yes"; then |
a0b9e27f | 21696 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21697 | #define wxUSE_METAFILE 1 |
a0b9e27f | 21698 | EOF |
10f2d63a | 21699 | |
10f2d63a VZ |
21700 | fi |
21701 | ||
1e6feb95 | 21702 | if test "$wxUSE_MIMETYPE" = "yes"; then |
a0b9e27f | 21703 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21704 | #define wxUSE_MIMETYPE 1 |
a0b9e27f | 21705 | EOF |
10f2d63a | 21706 | |
10f2d63a VZ |
21707 | fi |
21708 | ||
3e44f09d | 21709 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
a0b9e27f | 21710 | cat >> confdefs.h <<\EOF |
3e44f09d | 21711 | #define wxUSE_SYSTEM_OPTIONS 1 |
a0b9e27f | 21712 | EOF |
3e44f09d | 21713 | |
321d2b14 VZ |
21714 | if test "$TOOLKIT" = "MSW"; then |
21715 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
21716 | fi | |
21717 | ||
3e44f09d VZ |
21718 | fi |
21719 | ||
4cdb0ab0 | 21720 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca | 21721 | if test "$wxUSE_SOCKETS" != "yes"; then |
a0b9e27f | 21722 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 |
3954f9ca VS |
21723 | wxUSE_PROTOCOL=no |
21724 | fi | |
21725 | ||
21726 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
a0b9e27f | 21727 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21728 | #define wxUSE_PROTOCOL 1 |
a0b9e27f | 21729 | EOF |
4cdb0ab0 | 21730 | |
8284b0c5 | 21731 | |
3954f9ca | 21732 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
a0b9e27f | 21733 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21734 | #define wxUSE_PROTOCOL_HTTP 1 |
a0b9e27f | 21735 | EOF |
4cdb0ab0 | 21736 | |
3954f9ca VS |
21737 | fi |
21738 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
a0b9e27f | 21739 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21740 | #define wxUSE_PROTOCOL_FTP 1 |
a0b9e27f | 21741 | EOF |
4cdb0ab0 | 21742 | |
3954f9ca VS |
21743 | fi |
21744 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
a0b9e27f | 21745 | cat >> confdefs.h <<\EOF |
3954f9ca | 21746 | #define wxUSE_PROTOCOL_FILE 1 |
a0b9e27f | 21747 | EOF |
3954f9ca VS |
21748 | |
21749 | fi | |
4cdb0ab0 | 21750 | fi |
3954f9ca VS |
21751 | fi |
21752 | ||
21753 | if test "$wxUSE_URL" = "yes"; then | |
21754 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
a0b9e27f | 21755 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 |
3954f9ca VS |
21756 | wxUSE_URL=no |
21757 | fi | |
21758 | if test "$wxUSE_URL" = "yes"; then | |
a0b9e27f | 21759 | cat >> confdefs.h <<\EOF |
3954f9ca | 21760 | #define wxUSE_URL 1 |
a0b9e27f | 21761 | EOF |
4cdb0ab0 VS |
21762 | |
21763 | fi | |
21764 | fi | |
21765 | ||
10f2d63a | 21766 | if test "$wxUSE_MINIFRAME" = "yes"; then |
a0b9e27f | 21767 | cat >> confdefs.h <<\EOF |
10f2d63a | 21768 | #define wxUSE_MINIFRAME 1 |
a0b9e27f | 21769 | EOF |
10f2d63a VZ |
21770 | |
21771 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
21772 | fi | |
21773 | ||
21774 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 21775 | cat >> confdefs.h <<\EOF |
10f2d63a | 21776 | #define wxUSE_HTML 1 |
a0b9e27f | 21777 | EOF |
10f2d63a VZ |
21778 | |
21779 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
21780 | fi |
21781 | ||
21782 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
a0b9e27f | 21783 | cat >> confdefs.h <<\EOF |
1e487827 | 21784 | #define wxUSE_VALIDATORS 1 |
a0b9e27f | 21785 | EOF |
703e0a69 | 21786 | |
698dcdb6 VZ |
21787 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
21788 | fi | |
21789 | ||
edae8572 | 21790 | if test "$wxUSE_PALETTE" = "yes" ; then |
a0b9e27f | 21791 | cat >> confdefs.h <<\EOF |
edae8572 | 21792 | #define wxUSE_PALETTE 1 |
a0b9e27f | 21793 | EOF |
edae8572 VZ |
21794 | |
21795 | fi | |
21796 | ||
698dcdb6 | 21797 | if test "$wxUSE_IMAGE" = "yes" ; then |
a0b9e27f | 21798 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21799 | #define wxUSE_IMAGE 1 |
a0b9e27f | 21800 | EOF |
698dcdb6 VZ |
21801 | |
21802 | fi | |
21803 | ||
21804 | if test "$wxUSE_GIF" = "yes" ; then | |
a0b9e27f | 21805 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21806 | #define wxUSE_GIF 1 |
a0b9e27f | 21807 | EOF |
698dcdb6 VZ |
21808 | |
21809 | fi | |
21810 | ||
21811 | if test "$wxUSE_PCX" = "yes" ; then | |
a0b9e27f | 21812 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21813 | #define wxUSE_PCX 1 |
a0b9e27f | 21814 | EOF |
698dcdb6 VZ |
21815 | |
21816 | fi | |
21817 | ||
4b6b4dfc | 21818 | if test "$wxUSE_IFF" = "yes" ; then |
a0b9e27f | 21819 | cat >> confdefs.h <<\EOF |
4b6b4dfc | 21820 | #define wxUSE_IFF 1 |
a0b9e27f | 21821 | EOF |
4b6b4dfc RR |
21822 | |
21823 | fi | |
21824 | ||
698dcdb6 | 21825 | if test "$wxUSE_PNM" = "yes" ; then |
a0b9e27f | 21826 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21827 | #define wxUSE_PNM 1 |
a0b9e27f | 21828 | EOF |
698dcdb6 VZ |
21829 | |
21830 | fi | |
21831 | ||
21832 | if test "$wxUSE_XPM" = "yes" ; then | |
a0b9e27f | 21833 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21834 | #define wxUSE_XPM 1 |
a0b9e27f | 21835 | EOF |
698dcdb6 VZ |
21836 | |
21837 | fi | |
21838 | ||
658974ae | 21839 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
a0b9e27f | 21840 | cat >> confdefs.h <<\EOF |
658974ae | 21841 | #define wxUSE_ICO_CUR 1 |
a0b9e27f | 21842 | EOF |
658974ae VS |
21843 | |
21844 | fi | |
21845 | ||
a72a4bfa VS |
21846 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
21847 | LIBS=" -lunicows $LIBS" | |
21848 | fi | |
21849 | ||
8284b0c5 | 21850 | |
1e6feb95 | 21851 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
a0b9e27f | 21852 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21853 | #define wxUSE_CHOICEDLG 1 |
a0b9e27f | 21854 | EOF |
1e6feb95 VZ |
21855 | |
21856 | fi | |
21857 | ||
21858 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
a0b9e27f | 21859 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21860 | #define wxUSE_COLOURDLG 1 |
a0b9e27f | 21861 | EOF |
1e6feb95 VZ |
21862 | |
21863 | fi | |
21864 | ||
21865 | if test "$wxUSE_FILEDLG" = "yes"; then | |
a0b9e27f | 21866 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21867 | #define wxUSE_FILEDLG 1 |
a0b9e27f | 21868 | EOF |
1e6feb95 VZ |
21869 | |
21870 | fi | |
21871 | ||
8db37e06 | 21872 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
a0b9e27f | 21873 | cat >> confdefs.h <<\EOF |
8db37e06 | 21874 | #define wxUSE_FINDREPLDLG 1 |
a0b9e27f | 21875 | EOF |
8db37e06 VZ |
21876 | |
21877 | fi | |
21878 | ||
1e6feb95 | 21879 | if test "$wxUSE_FONTDLG" = "yes"; then |
a0b9e27f | 21880 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21881 | #define wxUSE_FONTDLG 1 |
a0b9e27f | 21882 | EOF |
1e6feb95 VZ |
21883 | |
21884 | fi | |
21885 | ||
21886 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 21887 | if test "$wxUSE_TREECTRL" != "yes"; then |
a0b9e27f | 21888 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 |
1e6feb95 | 21889 | else |
a0b9e27f | 21890 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21891 | #define wxUSE_DIRDLG 1 |
a0b9e27f | 21892 | EOF |
1e6feb95 | 21893 | |
1e6feb95 VZ |
21894 | fi |
21895 | fi | |
21896 | ||
21897 | if test "$wxUSE_MSGDLG" = "yes"; then | |
a0b9e27f | 21898 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21899 | #define wxUSE_MSGDLG 1 |
a0b9e27f | 21900 | EOF |
1e6feb95 VZ |
21901 | |
21902 | fi | |
21903 | ||
21904 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
a0b9e27f | 21905 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21906 | #define wxUSE_NUMBERDLG 1 |
a0b9e27f | 21907 | EOF |
1e6feb95 VZ |
21908 | |
21909 | fi | |
21910 | ||
21911 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
21912 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21913 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 |
1e6feb95 | 21914 | else |
a0b9e27f | 21915 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21916 | #define wxUSE_PROGRESSDLG 1 |
a0b9e27f | 21917 | EOF |
1e6feb95 VZ |
21918 | |
21919 | fi | |
21920 | fi | |
21921 | ||
cbca9943 | 21922 | if test "$wxUSE_SPLASH" = "yes"; then |
a0b9e27f | 21923 | cat >> confdefs.h <<\EOF |
cbca9943 | 21924 | #define wxUSE_SPLASH 1 |
a0b9e27f | 21925 | EOF |
cbca9943 VZ |
21926 | |
21927 | fi | |
21928 | ||
1e6feb95 VZ |
21929 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
21930 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21931 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 |
1e6feb95 | 21932 | else |
a0b9e27f | 21933 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21934 | #define wxUSE_STARTUP_TIPS 1 |
a0b9e27f | 21935 | EOF |
1e6feb95 | 21936 | |
7b4a847f RR |
21937 | fi |
21938 | fi | |
579d8138 | 21939 | |
8284b0c5 | 21940 | if test "$wxUSE_TEXTDLG" = "yes"; then |
a0b9e27f | 21941 | cat >> confdefs.h <<\EOF |
8284b0c5 | 21942 | #define wxUSE_TEXTDLG 1 |
a0b9e27f | 21943 | EOF |
8284b0c5 MB |
21944 | |
21945 | fi | |
21946 | ||
21947 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
a0b9e27f | 21948 | cat >> confdefs.h <<\EOF |
8284b0c5 | 21949 | #define wxUSE_WIZARDDLG 1 |
a0b9e27f | 21950 | EOF |
8284b0c5 MB |
21951 | |
21952 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
21953 | fi | |
21954 | ||
21955 | ||
21956 | if test "$cross_compiling" = "yes"; then | |
21957 | OSINFO="\"$host\"" | |
21958 | else | |
21959 | OSINFO=`uname -s -r -m` | |
21960 | OSINFO="\"$OSINFO\"" | |
21961 | fi | |
21962 | ||
a0b9e27f | 21963 | cat >> confdefs.h <<EOF |
8284b0c5 | 21964 | #define WXWIN_OS_DESCRIPTION $OSINFO |
a0b9e27f | 21965 | EOF |
8284b0c5 MB |
21966 | |
21967 | ||
21968 | ||
21969 | if test "x$prefix" != "xNONE"; then | |
21970 | wxPREFIX=$prefix | |
21971 | else | |
21972 | wxPREFIX=$ac_default_prefix | |
21973 | fi | |
21974 | ||
a0b9e27f | 21975 | cat >> confdefs.h <<EOF |
8284b0c5 | 21976 | #define wxINSTALL_PREFIX "$wxPREFIX" |
a0b9e27f | 21977 | EOF |
8284b0c5 MB |
21978 | |
21979 | ||
52c71b80 VZ |
21980 | top_builddir=`pwd` |
21981 | ||
8284b0c5 MB |
21982 | |
21983 | ||
21984 | ||
21985 | if test "$wxUSE_MAC" = 1 ; then | |
21986 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
21987 | fi | |
ac0c4cc3 DE |
21988 | if test "$wxUSE_COCOA" = 1 ; then |
21989 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
21990 | fi | |
8284b0c5 MB |
21991 | |
21992 | ||
2b5f62a0 VZ |
21993 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
21994 | ||
21995 | have_cos=0 | |
21996 | have_floor=0 | |
21997 | for ac_func in cos | |
21998 | do | |
21999 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f7f78039 | 22000 | echo "configure:22001: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22001 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22002 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22003 | else | |
22004 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 22005 | #line 22006 "configure" |
2b5f62a0 VZ |
22006 | #include "confdefs.h" |
22007 | /* System header to define __stub macros and hopefully few prototypes, | |
22008 | which can conflict with char $ac_func(); below. */ | |
22009 | #include <assert.h> | |
22010 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22011 | /* We use char because int might match the return type of a gcc2 | |
22012 | builtin and then its argument prototype would still apply. */ | |
22013 | char $ac_func(); | |
22014 | ||
22015 | int main() { | |
22016 | ||
22017 | /* The GNU C library defines this for functions which it implements | |
22018 | to always fail with ENOSYS. Some functions are actually named | |
22019 | something starting with __ and the normal name is an alias. */ | |
22020 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22021 | choke me | |
22022 | #else | |
22023 | $ac_func(); | |
22024 | #endif | |
22025 | ||
22026 | ; return 0; } | |
22027 | EOF | |
f7f78039 | 22028 | if { (eval echo configure:22029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22029 | rm -rf conftest* |
22030 | eval "ac_cv_func_$ac_func=yes" | |
22031 | else | |
22032 | echo "configure: failed program was:" >&5 | |
22033 | cat conftest.$ac_ext >&5 | |
22034 | rm -rf conftest* | |
22035 | eval "ac_cv_func_$ac_func=no" | |
22036 | fi | |
22037 | rm -f conftest* | |
22038 | fi | |
22039 | ||
22040 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22041 | echo "$ac_t""yes" 1>&6 | |
22042 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22043 | cat >> confdefs.h <<EOF | |
22044 | #define $ac_tr_func 1 | |
22045 | EOF | |
22046 | have_cos=1 | |
22047 | else | |
22048 | echo "$ac_t""no" 1>&6 | |
22049 | fi | |
22050 | done | |
22051 | ||
22052 | for ac_func in floor | |
22053 | do | |
22054 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f7f78039 | 22055 | echo "configure:22056: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22056 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22057 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22058 | else | |
22059 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 22060 | #line 22061 "configure" |
2b5f62a0 VZ |
22061 | #include "confdefs.h" |
22062 | /* System header to define __stub macros and hopefully few prototypes, | |
22063 | which can conflict with char $ac_func(); below. */ | |
22064 | #include <assert.h> | |
22065 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22066 | /* We use char because int might match the return type of a gcc2 | |
22067 | builtin and then its argument prototype would still apply. */ | |
22068 | char $ac_func(); | |
22069 | ||
22070 | int main() { | |
22071 | ||
22072 | /* The GNU C library defines this for functions which it implements | |
22073 | to always fail with ENOSYS. Some functions are actually named | |
22074 | something starting with __ and the normal name is an alias. */ | |
22075 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22076 | choke me | |
22077 | #else | |
22078 | $ac_func(); | |
22079 | #endif | |
22080 | ||
22081 | ; return 0; } | |
22082 | EOF | |
f7f78039 | 22083 | if { (eval echo configure:22084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22084 | rm -rf conftest* |
22085 | eval "ac_cv_func_$ac_func=yes" | |
22086 | else | |
22087 | echo "configure: failed program was:" >&5 | |
22088 | cat conftest.$ac_ext >&5 | |
22089 | rm -rf conftest* | |
22090 | eval "ac_cv_func_$ac_func=no" | |
22091 | fi | |
22092 | rm -f conftest* | |
22093 | fi | |
22094 | ||
22095 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22096 | echo "$ac_t""yes" 1>&6 | |
22097 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22098 | cat >> confdefs.h <<EOF | |
22099 | #define $ac_tr_func 1 | |
22100 | EOF | |
22101 | have_floor=1 | |
22102 | else | |
22103 | echo "$ac_t""no" 1>&6 | |
22104 | fi | |
22105 | done | |
22106 | ||
22107 | echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6 | |
f7f78039 | 22108 | echo "configure:22109: checking if floating point functions link without -lm" >&5 |
2b5f62a0 VZ |
22109 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
22110 | echo "$ac_t""yes" 1>&6 | |
22111 | else | |
22112 | echo "$ac_t""no" 1>&6 | |
22113 | LIBS="$LIBS -lm" | |
22114 | # use different functions to avoid configure caching | |
22115 | have_sin=0 | |
22116 | have_ceil=0 | |
22117 | for ac_func in sin | |
22118 | do | |
22119 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f7f78039 | 22120 | echo "configure:22121: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22121 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22122 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22123 | else | |
22124 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 22125 | #line 22126 "configure" |
2b5f62a0 VZ |
22126 | #include "confdefs.h" |
22127 | /* System header to define __stub macros and hopefully few prototypes, | |
22128 | which can conflict with char $ac_func(); below. */ | |
22129 | #include <assert.h> | |
22130 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22131 | /* We use char because int might match the return type of a gcc2 | |
22132 | builtin and then its argument prototype would still apply. */ | |
22133 | char $ac_func(); | |
22134 | ||
22135 | int main() { | |
22136 | ||
22137 | /* The GNU C library defines this for functions which it implements | |
22138 | to always fail with ENOSYS. Some functions are actually named | |
22139 | something starting with __ and the normal name is an alias. */ | |
22140 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22141 | choke me | |
22142 | #else | |
22143 | $ac_func(); | |
22144 | #endif | |
22145 | ||
22146 | ; return 0; } | |
22147 | EOF | |
f7f78039 | 22148 | if { (eval echo configure:22149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22149 | rm -rf conftest* |
22150 | eval "ac_cv_func_$ac_func=yes" | |
22151 | else | |
22152 | echo "configure: failed program was:" >&5 | |
22153 | cat conftest.$ac_ext >&5 | |
22154 | rm -rf conftest* | |
22155 | eval "ac_cv_func_$ac_func=no" | |
22156 | fi | |
22157 | rm -f conftest* | |
22158 | fi | |
22159 | ||
22160 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22161 | echo "$ac_t""yes" 1>&6 | |
22162 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22163 | cat >> confdefs.h <<EOF | |
22164 | #define $ac_tr_func 1 | |
22165 | EOF | |
22166 | have_sin=1 | |
22167 | else | |
22168 | echo "$ac_t""no" 1>&6 | |
22169 | fi | |
22170 | done | |
22171 | ||
22172 | for ac_func in ceil | |
22173 | do | |
22174 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f7f78039 | 22175 | echo "configure:22176: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22176 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22177 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22178 | else | |
22179 | cat > conftest.$ac_ext <<EOF | |
f7f78039 | 22180 | #line 22181 "configure" |
2b5f62a0 VZ |
22181 | #include "confdefs.h" |
22182 | /* System header to define __stub macros and hopefully few prototypes, | |
22183 | which can conflict with char $ac_func(); below. */ | |
22184 | #include <assert.h> | |
22185 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22186 | /* We use char because int might match the return type of a gcc2 | |
22187 | builtin and then its argument prototype would still apply. */ | |
22188 | char $ac_func(); | |
22189 | ||
22190 | int main() { | |
22191 | ||
22192 | /* The GNU C library defines this for functions which it implements | |
22193 | to always fail with ENOSYS. Some functions are actually named | |
22194 | something starting with __ and the normal name is an alias. */ | |
22195 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22196 | choke me | |
22197 | #else | |
22198 | $ac_func(); | |
22199 | #endif | |
22200 | ||
22201 | ; return 0; } | |
22202 | EOF | |
f7f78039 | 22203 | if { (eval echo configure:22204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22204 | rm -rf conftest* |
22205 | eval "ac_cv_func_$ac_func=yes" | |
22206 | else | |
22207 | echo "configure: failed program was:" >&5 | |
22208 | cat conftest.$ac_ext >&5 | |
22209 | rm -rf conftest* | |
22210 | eval "ac_cv_func_$ac_func=no" | |
22211 | fi | |
22212 | rm -f conftest* | |
22213 | fi | |
22214 | ||
22215 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22216 | echo "$ac_t""yes" 1>&6 | |
22217 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22218 | cat >> confdefs.h <<EOF | |
22219 | #define $ac_tr_func 1 | |
22220 | EOF | |
22221 | have_ceil=1 | |
22222 | else | |
22223 | echo "$ac_t""no" 1>&6 | |
22224 | fi | |
22225 | done | |
22226 | ||
22227 | echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6 | |
f7f78039 | 22228 | echo "configure:22229: checking if floating point functions link with -lm" >&5 |
2b5f62a0 VZ |
22229 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
22230 | echo "$ac_t""yes" 1>&6 | |
22231 | else | |
22232 | echo "$ac_t""no" 1>&6 | |
22233 | # not sure we should warn the user, crash, etc. | |
22234 | fi | |
22235 | fi | |
8284b0c5 MB |
22236 | |
22237 | if test "$wxUSE_GUI" = "yes"; then | |
22238 | ||
22239 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" | |
22240 | ||
a0b9e27f | 22241 | |
8284b0c5 MB |
22242 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
22243 | drawing dynamic erase event exec font image \ | |
1542ea39 | 22244 | minimal propsize rotate shaped widgets" |
8284b0c5 MB |
22245 | |
22246 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
22247 | else | |
22248 | SAMPLES_SUBDIRS="console" | |
22249 | fi | |
22250 | ||
22251 | ||
22252 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ | |
22253 | -I\${top_srcdir}/include \ | |
22254 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
22255 | $TOOLKIT_INCLUDE" | |
22256 | ||
22257 | if test "$wxUSE_GTK" = 1; then | |
22258 | WXCONFIG_INCLUDE= | |
22259 | else | |
22260 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
22261 | fi | |
22262 | ||
22263 | if test "$GXX" = yes ; then | |
22264 | CXXWARNINGS="-Wall" | |
a0b9e27f | 22265 | |
8284b0c5 MB |
22266 | if test "$wxUSE_NO_DEPS" = "no" ; then |
22267 | CFLAGS="-MMD $CFLAGS" | |
22268 | CXXFLAGS="-MMD $CXXFLAGS" | |
22269 | fi | |
22270 | fi | |
22271 | ||
b2fee376 | 22272 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" |
8284b0c5 | 22273 | |
b2fee376 | 22274 | CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
8284b0c5 MB |
22275 | CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
22276 | CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
22277 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
22278 | ||
22279 | LDFLAGS="$LDFLAGS $PROFILE" | |
22280 | ||
22281 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
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 | ||
22346 | ||
22347 | ||
22348 | ||
22349 | ||
2f51a9ec GD |
22350 | |
22351 | ||
22352 | ||
22353 | ||
f6bcfd97 | 22354 | |
dad6c0ea | 22355 | |
caa2c79b | 22356 | |
3711412e | 22357 | |
1e6feb95 VZ |
22358 | |
22359 | ||
885d4bf5 VS |
22360 | |
22361 | ||
22362 | ||
22363 | ||
9b695262 VZ |
22364 | |
22365 | ||
62d0491b | 22366 | |
ef7f2189 | 22367 | |
40f7145c | 22368 | |
2b5f62a0 VZ |
22369 | |
22370 | ||
22371 | ||
22372 | ||
22373 | ||
2bffed64 VZ |
22374 | |
22375 | ||
3bd8fb5f | 22376 | |
e26c13cf | 22377 | |
52c71b80 | 22378 | |
36825681 | 22379 | |
4f5a7f74 | 22380 | |
10f2d63a | 22381 | |
a0b9e27f MB |
22382 | |
22383 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
f7f78039 | 22384 | echo "configure:22385: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
a0b9e27f MB |
22385 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
22386 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
22387 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 22388 | else |
a0b9e27f | 22389 | cat > conftestmake <<\EOF |
10f2d63a VZ |
22390 | all: |
22391 | @echo 'ac_maketemp="${MAKE}"' | |
a0b9e27f | 22392 | EOF |
10f2d63a | 22393 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
a0b9e27f | 22394 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
22395 | if test -n "$ac_maketemp"; then |
22396 | eval ac_cv_prog_make_${ac_make}_set=yes | |
22397 | else | |
22398 | eval ac_cv_prog_make_${ac_make}_set=no | |
22399 | fi | |
a0b9e27f | 22400 | rm -f conftestmake |
10f2d63a VZ |
22401 | fi |
22402 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
a0b9e27f | 22403 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
22404 | SET_MAKE= |
22405 | else | |
a0b9e27f | 22406 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
22407 | SET_MAKE="MAKE=${MAKE-make}" |
22408 | fi | |
22409 | ||
8284b0c5 | 22410 | |
3a922bb4 RL |
22411 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
22412 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 22413 | fi |
665bbe97 | 22414 | |
8284b0c5 | 22415 | |
10f2d63a | 22416 | |
57973b9c VZ |
22417 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
22418 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
22419 | wx_cv_path_ifs=$PATH_IFS | |
22420 | wx_cv_program_ext=$PROGRAM_EXT | |
22421 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
22422 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
22423 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
2b5f62a0 VZ |
22424 | wx_cv_library_basename=${WX_LIBRARY_BASENAME} |
22425 | wx_cv_release=${WX_RELEASE} | |
22426 | wx_cv_current=${WX_CURRENT} | |
22427 | wx_cv_revision=${WX_REVISION} | |
22428 | wx_cv_age=${WX_AGE} | |
27635a90 | 22429 | wx_cv_use_gui=${USE_GUI} |
5e66eee1 | 22430 | wx_cv_use_resources=${wxUSE_RESOURCES} |
57973b9c VZ |
22431 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ |
22432 | wx_cv_path_ifs wx_cv_program_ext \ | |
2b5f62a0 | 22433 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \ |
27635a90 | 22434 | wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \ |
5e66eee1 | 22435 | wx_cv_use_gui wx_cv_use_resources |
57973b9c | 22436 | |
a0b9e27f | 22437 | subdirs="demos samples utils contrib" |
8284b0c5 | 22438 | |
10f2d63a | 22439 | |
a0b9e27f MB |
22440 | trap '' 1 2 15 |
22441 | cat > confcache <<\EOF | |
10f2d63a VZ |
22442 | # This file is a shell script that caches the results of configure |
22443 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
22444 | # scripts and configure runs. It is not useful on other systems. |
22445 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 22446 | # |
a0b9e27f MB |
22447 | # By default, configure uses ./config.cache as the cache file, |
22448 | # creating it if it does not exist already. You can give configure | |
22449 | # the --cache-file=FILE option to use a different cache file; that is | |
22450 | # what configure does when it calls configure scripts in | |
22451 | # subdirectories, so they share the cache. | |
22452 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
22453 | # config.status only pays attention to the cache file if you give it the | |
22454 | # --recheck option to rerun configure. | |
10f2d63a | 22455 | # |
a0b9e27f | 22456 | EOF |
10f2d63a VZ |
22457 | # The following way of writing the cache mishandles newlines in values, |
22458 | # but we know of no workaround that is simple, portable, and efficient. | |
22459 | # So, don't put newlines in cache variables' values. | |
22460 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
22461 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
22462 | (set) 2>&1 | |
22463 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
22464 | *ac_space=\ *) | |
22465 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
22466 | # turns \\\\ into \\, and sed turns \\ into \). | |
22467 | sed -n \ | |
22468 | -e "s/'/'\\\\''/g" \ | |
22469 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
22470 | ;; | |
22471 | *) | |
22472 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
22473 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
22474 | ;; | |
22475 | esac >> confcache | |
22476 | if cmp -s $cache_file confcache; then | |
22477 | : | |
22478 | else | |
10f2d63a | 22479 | if test -w $cache_file; then |
a0b9e27f MB |
22480 | echo "updating cache $cache_file" |
22481 | cat confcache > $cache_file | |
10f2d63a VZ |
22482 | else |
22483 | echo "not updating unwritable cache $cache_file" | |
22484 | fi | |
22485 | fi | |
22486 | rm -f confcache | |
22487 | ||
a0b9e27f MB |
22488 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
22489 | ||
10f2d63a VZ |
22490 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
22491 | # Let make expand exec_prefix. | |
22492 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
22493 | ||
a0b9e27f MB |
22494 | # Any assignment to VPATH causes Sun make to only execute |
22495 | # the first set of double-colon rules, so remove it if not needed. | |
22496 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 22497 | if test "x$srcdir" = x.; then |
a0b9e27f | 22498 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
22499 | fi |
22500 | ||
a0b9e27f | 22501 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
10f2d63a | 22502 | |
a0b9e27f | 22503 | DEFS=-DHAVE_CONFIG_H |
8284b0c5 | 22504 | |
a0b9e27f | 22505 | # Without the "./", some shells look in PATH for config.status. |
247f5006 | 22506 | : ${CONFIG_STATUS=./config.status} |
52127426 | 22507 | |
a0b9e27f MB |
22508 | echo creating $CONFIG_STATUS |
22509 | rm -f $CONFIG_STATUS | |
22510 | cat > $CONFIG_STATUS <<EOF | |
22511 | #! /bin/sh | |
22512 | # Generated automatically by configure. | |
22513 | # Run this file to recreate the current configuration. | |
22514 | # This directory was configured as follows, | |
22515 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
247f5006 | 22516 | # |
a0b9e27f | 22517 | # $0 $ac_configure_args |
247f5006 | 22518 | # |
a0b9e27f MB |
22519 | # Compiler output produced by configure, useful for debugging |
22520 | # configure, is in ./config.log if it exists. | |
247f5006 | 22521 | |
a0b9e27f MB |
22522 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
22523 | for ac_option | |
247f5006 | 22524 | do |
a0b9e27f MB |
22525 | case "\$ac_option" in |
22526 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22527 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
22528 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
22529 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
22530 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
22531 | exit 0 ;; | |
22532 | -help | --help | --hel | --he | --h) | |
22533 | echo "\$ac_cs_usage"; exit 0 ;; | |
22534 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
247f5006 VZ |
22535 | esac |
22536 | done | |
22537 | ||
a0b9e27f MB |
22538 | ac_given_srcdir=$srcdir |
22539 | ac_given_INSTALL="$INSTALL" | |
247f5006 | 22540 | |
a0b9e27f MB |
22541 | trap 'rm -fr `echo " |
22542 | wx-config | |
2b5f62a0 | 22543 | version-script |
a0b9e27f MB |
22544 | src/make.env |
22545 | src/makeprog.env | |
22546 | src/makelib.env | |
22547 | Makefile | |
22548 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
22549 | EOF | |
22550 | cat >> $CONFIG_STATUS <<EOF | |
247f5006 | 22551 | |
a0b9e27f MB |
22552 | # Protect against being on the right side of a sed subst in config.status. |
22553 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
22554 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
22555 | $ac_vpsub | |
22556 | $extrasub | |
22557 | s%@SHELL@%$SHELL%g | |
22558 | s%@CFLAGS@%$CFLAGS%g | |
22559 | s%@CPPFLAGS@%$CPPFLAGS%g | |
22560 | s%@CXXFLAGS@%$CXXFLAGS%g | |
22561 | s%@FFLAGS@%$FFLAGS%g | |
22562 | s%@DEFS@%$DEFS%g | |
22563 | s%@LDFLAGS@%$LDFLAGS%g | |
22564 | s%@LIBS@%$LIBS%g | |
22565 | s%@exec_prefix@%$exec_prefix%g | |
22566 | s%@prefix@%$prefix%g | |
22567 | s%@program_transform_name@%$program_transform_name%g | |
22568 | s%@bindir@%$bindir%g | |
22569 | s%@sbindir@%$sbindir%g | |
22570 | s%@libexecdir@%$libexecdir%g | |
22571 | s%@datadir@%$datadir%g | |
22572 | s%@sysconfdir@%$sysconfdir%g | |
22573 | s%@sharedstatedir@%$sharedstatedir%g | |
22574 | s%@localstatedir@%$localstatedir%g | |
22575 | s%@libdir@%$libdir%g | |
22576 | s%@includedir@%$includedir%g | |
22577 | s%@oldincludedir@%$oldincludedir%g | |
22578 | s%@infodir@%$infodir%g | |
22579 | s%@mandir@%$mandir%g | |
22580 | s%@host@%$host%g | |
22581 | s%@host_alias@%$host_alias%g | |
22582 | s%@host_cpu@%$host_cpu%g | |
22583 | s%@host_vendor@%$host_vendor%g | |
22584 | s%@host_os@%$host_os%g | |
22585 | s%@target@%$target%g | |
22586 | s%@target_alias@%$target_alias%g | |
22587 | s%@target_cpu@%$target_cpu%g | |
22588 | s%@target_vendor@%$target_vendor%g | |
22589 | s%@target_os@%$target_os%g | |
22590 | s%@build@%$build%g | |
22591 | s%@build_alias@%$build_alias%g | |
22592 | s%@build_cpu@%$build_cpu%g | |
22593 | s%@build_vendor@%$build_vendor%g | |
22594 | s%@build_os@%$build_os%g | |
22595 | s%@CC@%$CC%g | |
22596 | s%@CPP@%$CPP%g | |
22597 | s%@CXX@%$CXX%g | |
22598 | s%@RANLIB@%$RANLIB%g | |
22599 | s%@AR@%$AR%g | |
22600 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
22601 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
22602 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
22603 | s%@STRIP@%$STRIP%g | |
22604 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g | |
22605 | s%@YACC@%$YACC%g | |
22606 | s%@LEX@%$LEX%g | |
22607 | s%@LEXLIB@%$LEXLIB%g | |
22608 | s%@LN_S@%$LN_S%g | |
22609 | s%@CXXCPP@%$CXXCPP%g | |
22610 | s%@PKG_CONFIG@%$PKG_CONFIG%g | |
22611 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
22612 | s%@GTK_LIBS@%$GTK_LIBS%g | |
22613 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
22614 | s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g | |
22615 | s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g | |
22616 | s%@X_CFLAGS@%$X_CFLAGS%g | |
22617 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
22618 | s%@X_LIBS@%$X_LIBS%g | |
22619 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
2b5f62a0 VZ |
22620 | s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g |
22621 | s%@PANGOX_LIBS@%$PANGOX_LIBS%g | |
22622 | s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g | |
22623 | s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g | |
a0b9e27f MB |
22624 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g |
22625 | s%@RESCOMP@%$RESCOMP%g | |
22626 | s%@DEREZ@%$DEREZ%g | |
36825681 | 22627 | s%@SETFILE@%$SETFILE%g |
a0b9e27f MB |
22628 | s%@LIBICONV@%$LIBICONV%g |
22629 | s%@LEX_STEM@%$LEX_STEM%g | |
22630 | s%@PATH_IFS@%$PATH_IFS%g | |
22631 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
22632 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
22633 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
22634 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
22635 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
2b5f62a0 | 22636 | s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g |
a0b9e27f MB |
22637 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
22638 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
22639 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
22640 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
22641 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
22642 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
22643 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
22644 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
22645 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
22646 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
22647 | s%@WX_ALL@%$WX_ALL%g | |
22648 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
22649 | s%@SHARED_LD@%$SHARED_LD%g | |
22650 | s%@PIC_FLAG@%$PIC_FLAG%g | |
22651 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
22652 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
22653 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g | |
22654 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
22655 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
22656 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
2bffed64 | 22657 | s%@STATIC_FLAG@%$STATIC_FLAG%g |
a0b9e27f MB |
22658 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
22659 | s%@USE_GUI@%$USE_GUI%g | |
22660 | s%@AFMINSTALL@%$AFMINSTALL%g | |
2b5f62a0 | 22661 | s%@WIN32INSTALL@%$WIN32INSTALL%g |
a0b9e27f MB |
22662 | s%@TOOLKIT@%$TOOLKIT%g |
22663 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
22664 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g | |
22665 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g | |
22666 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
22667 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g | |
52c71b80 | 22668 | s%@top_builddir@%$top_builddir%g |
a0b9e27f MB |
22669 | s%@cross_compiling@%$cross_compiling%g |
22670 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
22671 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
22672 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g | |
22673 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
22674 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
22675 | s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g | |
e26c13cf | 22676 | s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g |
a0b9e27f MB |
22677 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g |
22678 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
22679 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
22680 | s%@GUIDIST@%$GUIDIST%g | |
22681 | s%@PORT_FILES@%$PORT_FILES%g | |
22682 | s%@DISTDIR@%$DISTDIR%g | |
a0b9e27f MB |
22683 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
22684 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g | |
2b5f62a0 | 22685 | s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g |
a0b9e27f MB |
22686 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g |
22687 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
22688 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g | |
22689 | s%@EXTRADEFS@%$EXTRADEFS%g | |
2b5f62a0 | 22690 | s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g |
a0b9e27f MB |
22691 | s%@RESFLAGS@%$RESFLAGS%g |
22692 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g | |
22693 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g | |
22694 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
22695 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g | |
22696 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
36825681 GD |
22697 | s%@MACRESCOMP@%$MACRESCOMP%g |
22698 | s%@MACSETFILE@%$MACSETFILE%g | |
22699 | s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g | |
2b5f62a0 | 22700 | s%@GCC@%$GCC%g |
a0b9e27f MB |
22701 | s%@DLLTOOL@%$DLLTOOL%g |
22702 | s%@AS@%$AS%g | |
22703 | s%@NM@%$NM%g | |
22704 | s%@LD@%$LD%g | |
22705 | s%@MAKEINFO@%$MAKEINFO%g | |
22706 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g | |
4f5a7f74 | 22707 | s%@INSTALL_DIR@%$INSTALL_DIR%g |
a0b9e27f MB |
22708 | s%@SET_MAKE@%$SET_MAKE%g |
22709 | s%@subdirs@%$subdirs%g | |
247f5006 | 22710 | |
247f5006 | 22711 | CEOF |
a0b9e27f | 22712 | EOF |
247f5006 | 22713 | |
a0b9e27f MB |
22714 | cat >> $CONFIG_STATUS <<\EOF |
22715 | ||
22716 | # Split the substitutions into bite-sized pieces for seds with | |
22717 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
22718 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
22719 | ac_file=1 # Number of current file. | |
22720 | ac_beg=1 # First line for current file. | |
22721 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
22722 | ac_more_lines=: | |
22723 | ac_sed_cmds="" | |
22724 | while $ac_more_lines; do | |
22725 | if test $ac_beg -gt 1; then | |
22726 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
22727 | else | |
22728 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
22729 | fi | |
22730 | if test ! -s conftest.s$ac_file; then | |
22731 | ac_more_lines=false | |
22732 | rm -f conftest.s$ac_file | |
22733 | else | |
22734 | if test -z "$ac_sed_cmds"; then | |
22735 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
247f5006 | 22736 | else |
a0b9e27f | 22737 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
247f5006 | 22738 | fi |
a0b9e27f MB |
22739 | ac_file=`expr $ac_file + 1` |
22740 | ac_beg=$ac_end | |
22741 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 22742 | fi |
a0b9e27f MB |
22743 | done |
22744 | if test -z "$ac_sed_cmds"; then | |
22745 | ac_sed_cmds=cat | |
22746 | fi | |
22747 | EOF | |
10f2d63a | 22748 | |
a0b9e27f | 22749 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 22750 | |
a0b9e27f | 22751 | CONFIG_FILES=\${CONFIG_FILES-"wx-config |
2b5f62a0 | 22752 | version-script |
a0b9e27f MB |
22753 | src/make.env |
22754 | src/makeprog.env | |
22755 | src/makelib.env | |
22756 | Makefile | |
22757 | "} | |
22758 | EOF | |
22759 | cat >> $CONFIG_STATUS <<\EOF | |
22760 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
22761 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
22762 | case "$ac_file" in | |
22763 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
22764 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22765 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a | 22766 | esac |
247f5006 | 22767 | |
a0b9e27f | 22768 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
247f5006 | 22769 | |
a0b9e27f MB |
22770 | # Remove last slash and all that follows it. Not all systems have dirname. |
22771 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
22772 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
22773 | # The file is in a subdirectory. | |
22774 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
22775 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
22776 | # A "../" for each directory in $ac_dir_suffix. | |
22777 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
22778 | else | |
22779 | ac_dir_suffix= ac_dots= | |
22780 | fi | |
247f5006 | 22781 | |
a0b9e27f MB |
22782 | case "$ac_given_srcdir" in |
22783 | .) srcdir=. | |
22784 | if test -z "$ac_dots"; then top_srcdir=. | |
22785 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
22786 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
247f5006 | 22787 | *) # Relative path. |
a0b9e27f MB |
22788 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
22789 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8284b0c5 | 22790 | esac |
10f2d63a | 22791 | |
a0b9e27f MB |
22792 | case "$ac_given_INSTALL" in |
22793 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
22794 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
22795 | esac | |
247f5006 | 22796 | |
a0b9e27f MB |
22797 | echo creating "$ac_file" |
22798 | rm -f "$ac_file" | |
22799 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
22800 | case "$ac_file" in | |
22801 | *Makefile*) ac_comsub="1i\\ | |
22802 | # $configure_input" ;; | |
22803 | *) ac_comsub= ;; | |
22804 | esac | |
247f5006 | 22805 | |
a0b9e27f MB |
22806 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
22807 | sed -e "$ac_comsub | |
22808 | s%@configure_input@%$configure_input%g | |
22809 | s%@srcdir@%$srcdir%g | |
22810 | s%@top_srcdir@%$top_srcdir%g | |
22811 | s%@INSTALL@%$INSTALL%g | |
22812 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
22813 | fi; done | |
22814 | rm -f conftest.s* | |
10f2d63a VZ |
22815 | |
22816 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
22817 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
22818 | # | |
22819 | # ac_d sets the value in "#define NAME VALUE" lines. | |
a0b9e27f MB |
22820 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
22821 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
22822 | ac_dC='\3' | |
22823 | ac_dD='%g' | |
22824 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
22825 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22826 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 22827 | ac_uC=' ' |
a0b9e27f MB |
22828 | ac_uD='\4%g' |
22829 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
22830 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22831 | ac_eB='$%\1#\2define\3' | |
22832 | ac_eC=' ' | |
22833 | ac_eD='%g' | |
22834 | ||
22835 | if test "${CONFIG_HEADERS+set}" != set; then | |
22836 | EOF | |
22837 | cat >> $CONFIG_STATUS <<EOF | |
22838 | CONFIG_HEADERS="setup.h:setup.h.in" | |
22839 | EOF | |
22840 | cat >> $CONFIG_STATUS <<\EOF | |
22841 | fi | |
22842 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 22843 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
a0b9e27f MB |
22844 | case "$ac_file" in |
22845 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
22846 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22847 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
22848 | esac |
22849 | ||
a0b9e27f MB |
22850 | echo creating $ac_file |
22851 | ||
22852 | rm -f conftest.frag conftest.in conftest.out | |
22853 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
22854 | cat $ac_file_inputs > conftest.in | |
22855 | ||
22856 | EOF | |
22857 | ||
22858 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
22859 | # the proper values into config.h.in to produce config.h. And first: | |
22860 | # Protect against being on the right side of a sed subst in config.status. | |
22861 | # Protect against being in an unquoted here document in config.status. | |
22862 | rm -f conftest.vals | |
22863 | cat > conftest.hdr <<\EOF | |
22864 | s/[\\&%]/\\&/g | |
22865 | s%[\\$`]%\\&%g | |
22866 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
22867 | s%ac_d%ac_u%gp | |
22868 | s%ac_u%ac_e%gp | |
22869 | EOF | |
22870 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
22871 | rm -f conftest.hdr | |
10f2d63a VZ |
22872 | |
22873 | # This sed command replaces #undef with comments. This is necessary, for | |
22874 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
22875 | # on some systems where configure will not decide to define it. | |
a0b9e27f MB |
22876 | cat >> conftest.vals <<\EOF |
22877 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
22878 | EOF | |
22879 | ||
22880 | # Break up conftest.vals because some shells have a limit on | |
22881 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
22882 | |
22883 | rm -f conftest.tail | |
a0b9e27f | 22884 | while : |
10f2d63a | 22885 | do |
a0b9e27f MB |
22886 | ac_lines=`grep -c . conftest.vals` |
22887 | # grep -c gives empty output for an empty file on some AIX systems. | |
22888 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
22889 | # Write a limited-size here document to conftest.frag. | |
22890 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
22891 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 22892 | echo 'CEOF |
a0b9e27f MB |
22893 | sed -f conftest.frag conftest.in > conftest.out |
22894 | rm -f conftest.in | |
22895 | mv conftest.out conftest.in | |
22896 | ' >> $CONFIG_STATUS | |
22897 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
22898 | rm -f conftest.vals | |
22899 | mv conftest.tail conftest.vals | |
10f2d63a | 22900 | done |
a0b9e27f MB |
22901 | rm -f conftest.vals |
22902 | ||
22903 | cat >> $CONFIG_STATUS <<\EOF | |
22904 | rm -f conftest.frag conftest.h | |
22905 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
22906 | cat conftest.in >> conftest.h | |
22907 | rm -f conftest.in | |
22908 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
22909 | echo "$ac_file is unchanged" | |
22910 | rm -f conftest.h | |
10f2d63a | 22911 | else |
a0b9e27f MB |
22912 | # Remove last slash and all that follows it. Not all systems have dirname. |
22913 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
22914 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
22915 | # The file is in a subdirectory. | |
22916 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
247f5006 | 22917 | fi |
a0b9e27f MB |
22918 | rm -f $ac_file |
22919 | mv conftest.h $ac_file | |
247f5006 | 22920 | fi |
a0b9e27f MB |
22921 | fi; done |
22922 | ||
22923 | EOF | |
22924 | cat >> $CONFIG_STATUS <<EOF | |
22925 | ||
22926 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
22927 | LN_S="${LN_S}" | |
22928 | ||
22929 | ||
22930 | EOF | |
22931 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 22932 | |
652d930d | 22933 | if test ! -h wx-config; then |
991a5759 | 22934 | chmod +x wx-config |
3a922bb4 RL |
22935 | mv wx-config wx${TOOLCHAIN_NAME}-config |
22936 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 22937 | fi |
665bbe97 | 22938 | |
00cf1208 RR |
22939 | if test ! -d lib; then |
22940 | mkdir lib | |
22941 | fi | |
22942 | if test ! -d lib/wx; then | |
22943 | mkdir lib/wx | |
22944 | fi | |
22945 | if test ! -d lib/wx/include; then | |
22946 | mkdir lib/wx/include | |
22947 | fi | |
3a922bb4 RL |
22948 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
22949 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 22950 | fi |
3a922bb4 RL |
22951 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
22952 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
22953 | fi |
22954 | if test -f setup.h; then | |
3a922bb4 | 22955 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 22956 | fi |
a0b9e27f MB |
22957 | |
22958 | exit 0 | |
22959 | EOF | |
10f2d63a | 22960 | chmod +x $CONFIG_STATUS |
a0b9e27f MB |
22961 | rm -fr confdefs* $ac_clean_files |
22962 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 22963 | |
2224580a VZ |
22964 | if test "$no_recursion" != yes; then |
22965 | ||
22966 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
22967 | ac_sub_configure_args= | |
22968 | ac_prev= | |
22969 | for ac_arg in $ac_configure_args; do | |
22970 | if test -n "$ac_prev"; then | |
22971 | ac_prev= | |
22972 | continue | |
22973 | fi | |
a0b9e27f | 22974 | case "$ac_arg" in |
2224580a VZ |
22975 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
22976 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
22977 | ac_prev=cache_file ;; | |
22978 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
a0b9e27f | 22979 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
22980 | ;; |
22981 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
22982 | ac_prev=srcdir ;; | |
22983 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
22984 | ;; | |
22985 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
22986 | esac | |
22987 | done | |
22988 | ||
a0b9e27f | 22989 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
22990 | |
22991 | # Do not complain, so a configure script can configure whichever | |
22992 | # parts of a large source tree are present. | |
a0b9e27f MB |
22993 | if test ! -d $srcdir/$ac_config_dir; then |
22994 | continue | |
22995 | fi | |
2224580a | 22996 | |
a0b9e27f | 22997 | echo configuring in $ac_config_dir |
2224580a | 22998 | |
a0b9e27f MB |
22999 | case "$srcdir" in |
23000 | .) ;; | |
23001 | *) | |
23002 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
23003 | else | |
23004 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
23005 | fi | |
23006 | ;; | |
23007 | esac | |
2224580a | 23008 | |
a0b9e27f MB |
23009 | ac_popdir=`pwd` |
23010 | cd $ac_config_dir | |
247f5006 | 23011 | |
a0b9e27f MB |
23012 | # A "../" for each directory in /$ac_config_dir. |
23013 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
247f5006 | 23014 | |
a0b9e27f MB |
23015 | case "$srcdir" in |
23016 | .) # No --srcdir option. We are building in place. | |
23017 | ac_sub_srcdir=$srcdir ;; | |
23018 | /*) # Absolute path. | |
23019 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
23020 | *) # Relative path. | |
23021 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
23022 | esac | |
2224580a VZ |
23023 | |
23024 | # Check for guested configure; otherwise get Cygnus style configure. | |
a0b9e27f MB |
23025 | if test -f $ac_sub_srcdir/configure; then |
23026 | ac_sub_configure=$ac_sub_srcdir/configure | |
23027 | elif test -f $ac_sub_srcdir/configure.in; then | |
2224580a VZ |
23028 | ac_sub_configure=$ac_configure |
23029 | else | |
a0b9e27f | 23030 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
23031 | ac_sub_configure= |
23032 | fi | |
23033 | ||
23034 | # The recursion is here. | |
23035 | if test -n "$ac_sub_configure"; then | |
a0b9e27f | 23036 | |
2224580a | 23037 | # Make the cache file name correct relative to the subdirectory. |
a0b9e27f MB |
23038 | case "$cache_file" in |
23039 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 23040 | *) # Relative path. |
a0b9e27f | 23041 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 23042 | esac |
a0b9e27f MB |
23043 | case "$ac_given_INSTALL" in |
23044 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
23045 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
23046 | esac | |
2224580a | 23047 | |
a0b9e27f | 23048 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 23049 | # The eval makes quoting arguments work. |
a0b9e27f MB |
23050 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
23051 | then : | |
23052 | else | |
23053 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
23054 | fi | |
2224580a VZ |
23055 | fi |
23056 | ||
23057 | cd $ac_popdir | |
23058 | done | |
23059 | fi | |
23060 | ||
8284b0c5 | 23061 | |
2b5f62a0 VZ |
23062 | echo |
23063 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
23064 | echo "" | |
23065 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}" | |
23066 | ||
23067 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
23068 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
23069 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
23070 | ||
0c98a14e GD |
23071 | echo " What level of wxWindows compatibility should be enabled?" |
23072 | echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}" | |
65d8ef1e VS |
23073 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
23074 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 23075 | |
2b5f62a0 VZ |
23076 | echo " Which libraries should wxWindows use?" |
23077 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
23078 | echo " png ${wxUSE_LIBPNG-none}" | |
23079 | echo " regex ${wxUSE_REGEX}" | |
23080 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
23081 | echo " zlib ${wxUSE_ZLIB}" | |
23082 | ||
23083 | echo "" | |
23084 |