]>
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" | |
101 | ac_help="$ac_help | |
89e6bf6d | 102 | --with-wine use Wine" |
a0b9e27f MB |
103 | ac_help="$ac_help |
104 | --with-msw use MS-Windows" | |
105 | ac_help="$ac_help | |
106 | --with-pm use OS/2 Presentation Manager" | |
107 | ac_help="$ac_help | |
108 | --with-mgl use SciTech MGL" | |
109 | ac_help="$ac_help | |
110 | --with-microwin use MicroWindows" | |
111 | ac_help="$ac_help | |
112 | --with-x11 use X11" | |
113 | ac_help="$ac_help | |
114 | --enable-nanox use NanoX" | |
115 | ac_help="$ac_help | |
116 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" | |
117 | ac_help="$ac_help | |
118 | --with-libpng use libpng (PNG image format)" | |
119 | ac_help="$ac_help | |
120 | --with-libjpeg use libjpeg (JPEG file format)" | |
121 | ac_help="$ac_help | |
122 | --with-libtiff use libtiff (TIFF file format)" | |
123 | ac_help="$ac_help | |
124 | --with-opengl use OpenGL (or Mesa)" | |
125 | ac_help="$ac_help | |
126 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" | |
127 | ac_help="$ac_help | |
128 | --with-regex enable support for wxRegEx class" | |
129 | ac_help="$ac_help | |
130 | --with-zlib use zlib for LZW compression" | |
131 | ac_help="$ac_help | |
132 | --with-odbc use the IODBC and wxODBC classes" | |
133 | ac_help="$ac_help | |
134 | --enable-shared create shared library code" | |
135 | ac_help="$ac_help | |
136 | --enable-soname set the DT_SONAME field in ELF shared libraries" | |
137 | ac_help="$ac_help | |
138 | --enable-optimise create optimised code" | |
139 | ac_help="$ac_help | |
140 | --enable-debug same as debug_flag and debug_info" | |
141 | ac_help="$ac_help | |
b2fee376 | 142 | --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)" |
a0b9e27f MB |
143 | ac_help="$ac_help |
144 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
145 | ac_help="$ac_help | |
146 | --enable-debug_info create code with debugging information" | |
147 | ac_help="$ac_help | |
148 | --enable-debug_gdb create code with extra GDB debugging information" | |
149 | ac_help="$ac_help | |
150 | --enable-debug_cntxt use wxDebugContext" | |
151 | ac_help="$ac_help | |
152 | --enable-mem_tracing create code with memory tracing" | |
153 | ac_help="$ac_help | |
154 | --enable-profile create code with profiling information" | |
155 | ac_help="$ac_help | |
156 | --enable-no_rtti create code without RTTI information" | |
157 | ac_help="$ac_help | |
158 | --enable-no_exceptions create code without C++ exceptions handling" | |
159 | ac_help="$ac_help | |
160 | --enable-permissive compile code disregarding strict ANSI" | |
161 | ac_help="$ac_help | |
162 | --enable-no_deps create code without dependency information" | |
163 | ac_help="$ac_help | |
164 | --enable-compat20 enable wxWindows 2.0 compatibility" | |
165 | ac_help="$ac_help | |
65d8ef1e VS |
166 | --enable-compat22 enable wxWindows 2.2 compatibility" |
167 | ac_help="$ac_help | |
168 | --disable-compat24 disable wxWindows 2.4 compatibility" | |
a0b9e27f MB |
169 | ac_help="$ac_help |
170 | --enable-rpath=DIR output the rpath flag from wx-config" | |
171 | ac_help="$ac_help | |
172 | --enable-intl use internationalization system" | |
173 | ac_help="$ac_help | |
174 | --enable-config use wxConfig (and derived) classes" | |
175 | ac_help="$ac_help | |
176 | --enable-protocols use wxProtocol and derived classes" | |
177 | ac_help="$ac_help | |
178 | --enable-ftp use wxFTP (requires wxProtocol" | |
179 | ac_help="$ac_help | |
180 | --enable-http use wxHTTP (requires wxProtocol" | |
181 | ac_help="$ac_help | |
182 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
183 | ac_help="$ac_help | |
184 | --enable-sockets use socket/network classes" | |
3bce6687 JS |
185 | ac_help="$ac_help |
186 | --enable-ole use OLE classes" | |
187 | ac_help="$ac_help | |
188 | --enable-dataobj use data object classes" | |
a0b9e27f MB |
189 | ac_help="$ac_help |
190 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
191 | ac_help="$ac_help | |
192 | --enable-cmdline use wxCmdLineParser class" | |
193 | ac_help="$ac_help | |
194 | --enable-datetime use wxDateTime class" | |
195 | ac_help="$ac_help | |
196 | --enable-timedate use obsolete wxDate/wxTime classes" | |
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+)" | |
291 | ac_help="$ac_help | |
292 | --enable-prologio use Prolog IO library" | |
293 | ac_help="$ac_help | |
294 | --enable-resources use wxWindows resources" | |
295 | ac_help="$ac_help | |
296 | --enable-xresources use X resources for save (default for gtk+)" | |
297 | ac_help="$ac_help | |
da494b40 | 298 | --enable-clipboard use wxClipboard class" |
a0b9e27f MB |
299 | ac_help="$ac_help |
300 | --enable-dnd use Drag'n'Drop classes" | |
301 | ac_help="$ac_help | |
302 | --enable-metafile use win32 metafiles" | |
303 | ac_help="$ac_help | |
da494b40 | 304 | --enable-treelayout use wxTreeLayout class" |
a0b9e27f MB |
305 | ac_help="$ac_help |
306 | --enable-controls use all usual controls" | |
307 | ac_help="$ac_help | |
308 | --enable-accel use accelerators" | |
309 | ac_help="$ac_help | |
310 | --enable-button use wxButton class" | |
311 | ac_help="$ac_help | |
312 | --enable-bmpbutton use wxBitmapButton class" | |
313 | ac_help="$ac_help | |
314 | --enable-calendar use wxCalendarCtrl class" | |
315 | ac_help="$ac_help | |
316 | --enable-caret use wxCaret class" | |
317 | ac_help="$ac_help | |
318 | --enable-checkbox use wxCheckBox class" | |
319 | ac_help="$ac_help | |
320 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
321 | ac_help="$ac_help | |
322 | --enable-choice use wxChoice class" | |
323 | ac_help="$ac_help | |
da494b40 MB |
324 | --enable-combobox use wxComboBox class" |
325 | ac_help="$ac_help | |
326 | --enable-display use wxDisplay class" | |
a0b9e27f MB |
327 | ac_help="$ac_help |
328 | --enable-gauge use wxGauge class" | |
329 | ac_help="$ac_help | |
330 | --enable-grid use wxGrid class" | |
331 | ac_help="$ac_help | |
332 | --enable-newgrid use new wxGrid class" | |
333 | ac_help="$ac_help | |
334 | --enable-imaglist use wxImageList class" | |
335 | ac_help="$ac_help | |
336 | --enable-listbox use wxListBox class" | |
337 | ac_help="$ac_help | |
338 | --enable-listctrl use wxListCtrl class" | |
339 | ac_help="$ac_help | |
340 | --enable-notebook use wxNotebook class" | |
341 | ac_help="$ac_help | |
342 | --enable-propsheet use wxPropertySheet class" | |
343 | ac_help="$ac_help | |
344 | --enable-radiobox use wxRadioBox class" | |
345 | ac_help="$ac_help | |
346 | --enable-radiobtn use wxRadioButton class" | |
347 | ac_help="$ac_help | |
348 | --enable-sash use wxSashWindow class" | |
349 | ac_help="$ac_help | |
350 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
351 | ac_help="$ac_help | |
352 | --enable-slider use wxSlider class" | |
353 | ac_help="$ac_help | |
354 | --enable-spinbtn use wxSpinButton class" | |
355 | ac_help="$ac_help | |
356 | --enable-spinctrl use wxSpinCtrl class" | |
357 | ac_help="$ac_help | |
358 | --enable-splitter use wxSplitterWindow class" | |
359 | ac_help="$ac_help | |
360 | --enable-statbmp use wxStaticBitmap class" | |
361 | ac_help="$ac_help | |
362 | --enable-statbox use wxStaticBox class" | |
363 | ac_help="$ac_help | |
364 | --enable-statline use wxStaticLine class" | |
365 | ac_help="$ac_help | |
366 | --enable-stattext use wxStaticText class" | |
367 | ac_help="$ac_help | |
368 | --enable-statusbar use wxStatusBar class" | |
369 | ac_help="$ac_help | |
370 | --enable-tabdialog use wxTabControl class" | |
371 | ac_help="$ac_help | |
372 | --enable-textctrl use wxTextCtrl class" | |
373 | ac_help="$ac_help | |
374 | --enable-togglebtn use wxToggleButton class" | |
375 | ac_help="$ac_help | |
376 | --enable-toolbar use wxToolBar class" | |
377 | ac_help="$ac_help | |
378 | --enable-tbarnative use native wxToolBar class" | |
379 | ac_help="$ac_help | |
380 | --enable-tbarsmpl use wxToolBarSimple class" | |
381 | ac_help="$ac_help | |
382 | --enable-treectrl use wxTreeCtrl class" | |
383 | ac_help="$ac_help | |
384 | --enable-tipwindow use wxTipWindow class" | |
385 | ac_help="$ac_help | |
386 | --enable-popupwin use wxPopUpWindow class" | |
387 | ac_help="$ac_help | |
388 | --enable-commondlg use all common dialogs" | |
389 | ac_help="$ac_help | |
390 | --enable-choicedlg use wxChoiceDialog" | |
391 | ac_help="$ac_help | |
392 | --enable-coldlg use wxColourDialog" | |
393 | ac_help="$ac_help | |
394 | --enable-filedlg use wxFileDialog" | |
395 | ac_help="$ac_help | |
396 | --enable-finddlg use wxFindReplaceDialog" | |
397 | ac_help="$ac_help | |
398 | --enable-fontdlg use wxFontDialog" | |
399 | ac_help="$ac_help | |
400 | --enable-dirdlg use wxDirDialog" | |
401 | ac_help="$ac_help | |
402 | --enable-msgdlg use wxMessageDialog" | |
403 | ac_help="$ac_help | |
404 | --enable-numberdlg use wxNumberEntryDialog" | |
405 | ac_help="$ac_help | |
406 | --enable-splash use wxSplashScreen" | |
407 | ac_help="$ac_help | |
408 | --enable-textdlg use wxTextDialog" | |
409 | ac_help="$ac_help | |
410 | --enable-tipdlg use startup tips" | |
411 | ac_help="$ac_help | |
412 | --enable-progressdlg use wxProgressDialog" | |
413 | ac_help="$ac_help | |
414 | --enable-wizarddlg use wxWizard" | |
415 | ac_help="$ac_help | |
416 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" | |
417 | ac_help="$ac_help | |
418 | --enable-miniframe use wxMiniFrame class" | |
419 | ac_help="$ac_help | |
420 | --enable-tooltips use wxToolTip class" | |
421 | ac_help="$ac_help | |
422 | --enable-splines use spline drawing code" | |
423 | ac_help="$ac_help | |
424 | --enable-validators use wxValidator and derived classes" | |
425 | ac_help="$ac_help | |
426 | --enable-busyinfo use wxBusyInfo" | |
427 | ac_help="$ac_help | |
428 | --enable-joystick use wxJoystick (Linux only)" | |
429 | ac_help="$ac_help | |
430 | --enable-metafiles use wxMetaFile (Windows only)" | |
431 | ac_help="$ac_help | |
432 | --enable-dragimage use wxDragImage" | |
433 | ac_help="$ac_help | |
434 | --enable-palette use wxPalette class" | |
435 | ac_help="$ac_help | |
436 | --enable-image use wxImage class" | |
437 | ac_help="$ac_help | |
438 | --enable-gif use gif images (GIF file format)" | |
439 | ac_help="$ac_help | |
440 | --enable-pcx use pcx images (PCX file format)" | |
441 | ac_help="$ac_help | |
442 | --enable-iff use iff images (IFF file format)" | |
443 | ac_help="$ac_help | |
444 | --enable-pnm use pnm images (PNM file format)" | |
445 | ac_help="$ac_help | |
446 | --enable-xpm use xpm images (XPM file format)" | |
447 | ac_help="$ac_help | |
448 | --enable-icocur use Windows ICO and CUR formats" | |
449 | ac_help="$ac_help | |
450 | --disable-largefile omit support for large files" | |
451 | ac_help="$ac_help | |
452 | --disable-gtktest do not try to compile and run a test GTK+ program" | |
453 | ac_help="$ac_help | |
454 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
455 | ac_help="$ac_help | |
456 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
457 | ac_help="$ac_help | |
458 | --disable-gtktest Do not try to compile and run a test GTK program" | |
459 | ac_help="$ac_help | |
460 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
461 | ac_help="$ac_help | |
462 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
463 | ac_help="$ac_help | |
464 | --disable-gtktest Do not try to compile and run a test GTK program" | |
465 | ac_help="$ac_help | |
466 | --with-x use the X Window System" | |
467 | ac_help="$ac_help | |
468 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
469 | |
470 | # Initialize some variables set by options. | |
471 | # The variables have the same names as the options, with | |
472 | # dashes changed to underlines. | |
a0b9e27f MB |
473 | build=NONE |
474 | cache_file=./config.cache | |
10f2d63a | 475 | exec_prefix=NONE |
a0b9e27f | 476 | host=NONE |
10f2d63a | 477 | no_create= |
a0b9e27f | 478 | nonopt=NONE |
10f2d63a VZ |
479 | no_recursion= |
480 | prefix=NONE | |
481 | program_prefix=NONE | |
482 | program_suffix=NONE | |
483 | program_transform_name=s,x,x, | |
484 | silent= | |
485 | site= | |
486 | srcdir= | |
a0b9e27f | 487 | target=NONE |
10f2d63a VZ |
488 | verbose= |
489 | x_includes=NONE | |
490 | x_libraries=NONE | |
491 | bindir='${exec_prefix}/bin' | |
492 | sbindir='${exec_prefix}/sbin' | |
493 | libexecdir='${exec_prefix}/libexec' | |
494 | datadir='${prefix}/share' | |
495 | sysconfdir='${prefix}/etc' | |
496 | sharedstatedir='${prefix}/com' | |
497 | localstatedir='${prefix}/var' | |
498 | libdir='${exec_prefix}/lib' | |
499 | includedir='${prefix}/include' | |
500 | oldincludedir='/usr/include' | |
501 | infodir='${prefix}/info' | |
502 | mandir='${prefix}/man' | |
503 | ||
a0b9e27f MB |
504 | # Initialize some other variables. |
505 | subdirs= | |
506 | MFLAGS= MAKEFLAGS= | |
507 | SHELL=${CONFIG_SHELL-/bin/sh} | |
508 | # Maximum number of lines to put in a shell here document. | |
509 | ac_max_here_lines=12 | |
510 | ||
10f2d63a VZ |
511 | ac_prev= |
512 | for ac_option | |
513 | do | |
a0b9e27f | 514 | |
10f2d63a VZ |
515 | # If the previous option needs an argument, assign it. |
516 | if test -n "$ac_prev"; then | |
517 | eval "$ac_prev=\$ac_option" | |
518 | ac_prev= | |
519 | continue | |
520 | fi | |
521 | ||
a0b9e27f MB |
522 | case "$ac_option" in |
523 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
524 | *) ac_optarg= ;; | |
525 | esac | |
10f2d63a VZ |
526 | |
527 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
528 | ||
a0b9e27f | 529 | case "$ac_option" in |
10f2d63a VZ |
530 | |
531 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
532 | ac_prev=bindir ;; | |
533 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
a0b9e27f | 534 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
535 | |
536 | -build | --build | --buil | --bui | --bu) | |
a0b9e27f | 537 | ac_prev=build ;; |
10f2d63a | 538 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
a0b9e27f | 539 | build="$ac_optarg" ;; |
10f2d63a VZ |
540 | |
541 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
542 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
543 | ac_prev=cache_file ;; | |
544 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
545 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
a0b9e27f | 546 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
547 | |
548 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
549 | ac_prev=datadir ;; | |
550 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
551 | | --da=*) | |
a0b9e27f | 552 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
553 | |
554 | -disable-* | --disable-*) | |
a0b9e27f | 555 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 556 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
557 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
558 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
559 | fi | |
560 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
561 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
562 | |
563 | -enable-* | --enable-*) | |
a0b9e27f | 564 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 565 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
566 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
567 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
568 | fi | |
569 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
570 | case "$ac_option" in | |
571 | *=*) ;; | |
10f2d63a VZ |
572 | *) ac_optarg=yes ;; |
573 | esac | |
a0b9e27f | 574 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
575 | |
576 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
577 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
578 | | --exec | --exe | --ex) | |
579 | ac_prev=exec_prefix ;; | |
580 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
581 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
582 | | --exec=* | --exe=* | --ex=*) | |
a0b9e27f | 583 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
584 | |
585 | -gas | --gas | --ga | --g) | |
586 | # Obsolete; use --with-gas. | |
587 | with_gas=yes ;; | |
588 | ||
a0b9e27f MB |
589 | -help | --help | --hel | --he) |
590 | # Omit some internal or obsolete options to make the list less imposing. | |
591 | # This message is too long to be a string in the A/UX 3.1 sh. | |
592 | cat << EOF | |
593 | Usage: configure [options] [host] | |
594 | Options: [defaults in brackets after descriptions] | |
595 | Configuration: | |
596 | --cache-file=FILE cache test results in FILE | |
597 | --help print this message | |
598 | --no-create do not create output files | |
599 | --quiet, --silent do not print \`checking...' messages | |
600 | --version print the version of autoconf that created configure | |
601 | Directory and file names: | |
602 | --prefix=PREFIX install architecture-independent files in PREFIX | |
603 | [$ac_default_prefix] | |
604 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
605 | [same as prefix] | |
606 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
607 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
608 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
609 | --datadir=DIR read-only architecture-independent data in DIR | |
610 | [PREFIX/share] | |
611 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
612 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
613 | [PREFIX/com] | |
614 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
615 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
616 | --includedir=DIR C header files in DIR [PREFIX/include] | |
617 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
618 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
619 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
620 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
621 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
622 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
623 | --program-transform-name=PROGRAM | |
624 | run sed PROGRAM on installed program names | |
625 | EOF | |
626 | cat << EOF | |
627 | Host type: | |
628 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
629 | --host=HOST configure for HOST [guessed] | |
630 | --target=TARGET configure for TARGET [TARGET=HOST] | |
631 | Features and packages: | |
632 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
633 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
634 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
635 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
636 | --x-includes=DIR X include files are in DIR | |
637 | --x-libraries=DIR X library files are in DIR | |
638 | EOF | |
639 | if test -n "$ac_help"; then | |
640 | echo "--enable and --with options recognized:$ac_help" | |
641 | fi | |
642 | exit 0 ;; | |
10f2d63a VZ |
643 | |
644 | -host | --host | --hos | --ho) | |
a0b9e27f | 645 | ac_prev=host ;; |
10f2d63a | 646 | -host=* | --host=* | --hos=* | --ho=*) |
a0b9e27f | 647 | host="$ac_optarg" ;; |
10f2d63a VZ |
648 | |
649 | -includedir | --includedir | --includedi | --included | --include \ | |
650 | | --includ | --inclu | --incl | --inc) | |
651 | ac_prev=includedir ;; | |
652 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
653 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
a0b9e27f | 654 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
655 | |
656 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
657 | ac_prev=infodir ;; | |
658 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
a0b9e27f | 659 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
660 | |
661 | -libdir | --libdir | --libdi | --libd) | |
662 | ac_prev=libdir ;; | |
663 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
a0b9e27f | 664 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
665 | |
666 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
667 | | --libexe | --libex | --libe) | |
668 | ac_prev=libexecdir ;; | |
669 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
670 | | --libexe=* | --libex=* | --libe=*) | |
a0b9e27f | 671 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
672 | |
673 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
674 | | --localstate | --localstat | --localsta | --localst \ | |
675 | | --locals | --local | --loca | --loc | --lo) | |
676 | ac_prev=localstatedir ;; | |
677 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
678 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
679 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
a0b9e27f | 680 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
681 | |
682 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
683 | ac_prev=mandir ;; | |
684 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
a0b9e27f | 685 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
686 | |
687 | -nfp | --nfp | --nf) | |
688 | # Obsolete; use --without-fp. | |
689 | with_fp=no ;; | |
690 | ||
691 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
a0b9e27f | 692 | | --no-cr | --no-c) |
10f2d63a VZ |
693 | no_create=yes ;; |
694 | ||
695 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
696 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
697 | no_recursion=yes ;; | |
698 | ||
699 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
700 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
701 | | --oldin | --oldi | --old | --ol | --o) | |
702 | ac_prev=oldincludedir ;; | |
703 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
704 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
705 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
a0b9e27f | 706 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
707 | |
708 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
709 | ac_prev=prefix ;; | |
710 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
a0b9e27f | 711 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
712 | |
713 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
714 | | --program-pre | --program-pr | --program-p) | |
715 | ac_prev=program_prefix ;; | |
716 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
717 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
a0b9e27f | 718 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
719 | |
720 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
721 | | --program-suf | --program-su | --program-s) | |
722 | ac_prev=program_suffix ;; | |
723 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
724 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
a0b9e27f | 725 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
726 | |
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) | |
734 | ac_prev=program_transform_name ;; | |
735 | -program-transform-name=* | --program-transform-name=* \ | |
736 | | --program-transform-nam=* | --program-transform-na=* \ | |
737 | | --program-transform-n=* | --program-transform-=* \ | |
738 | | --program-transform=* | --program-transfor=* \ | |
739 | | --program-transfo=* | --program-transf=* \ | |
740 | | --program-trans=* | --program-tran=* \ | |
741 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
a0b9e27f | 742 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
743 | |
744 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
745 | | -silent | --silent | --silen | --sile | --sil) | |
746 | silent=yes ;; | |
747 | ||
748 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
749 | ac_prev=sbindir ;; | |
750 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
751 | | --sbi=* | --sb=*) | |
a0b9e27f | 752 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
753 | |
754 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
755 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
756 | | --sharedst | --shareds | --shared | --share | --shar \ | |
757 | | --sha | --sh) | |
758 | ac_prev=sharedstatedir ;; | |
759 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
760 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
761 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
762 | | --sha=* | --sh=*) | |
a0b9e27f | 763 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
764 | |
765 | -site | --site | --sit) | |
766 | ac_prev=site ;; | |
767 | -site=* | --site=* | --sit=*) | |
a0b9e27f | 768 | site="$ac_optarg" ;; |
10f2d63a VZ |
769 | |
770 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
771 | ac_prev=srcdir ;; | |
772 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
a0b9e27f | 773 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
774 | |
775 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
776 | | --syscon | --sysco | --sysc | --sys | --sy) | |
777 | ac_prev=sysconfdir ;; | |
778 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
779 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
a0b9e27f | 780 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
781 | |
782 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
a0b9e27f | 783 | ac_prev=target ;; |
10f2d63a | 784 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
a0b9e27f | 785 | target="$ac_optarg" ;; |
10f2d63a VZ |
786 | |
787 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
788 | verbose=yes ;; | |
789 | ||
a0b9e27f MB |
790 | -version | --version | --versio | --versi | --vers) |
791 | echo "configure generated by autoconf version 2.13" | |
792 | exit 0 ;; | |
10f2d63a VZ |
793 | |
794 | -with-* | --with-*) | |
a0b9e27f | 795 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 796 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
797 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
798 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
799 | fi | |
10f2d63a | 800 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
a0b9e27f MB |
801 | case "$ac_option" in |
802 | *=*) ;; | |
10f2d63a VZ |
803 | *) ac_optarg=yes ;; |
804 | esac | |
a0b9e27f | 805 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
806 | |
807 | -without-* | --without-*) | |
a0b9e27f | 808 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 809 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
810 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
811 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
812 | fi | |
813 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
814 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
815 | |
816 | --x) | |
817 | # Obsolete; use --with-x. | |
818 | with_x=yes ;; | |
819 | ||
820 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
821 | | --x-incl | --x-inc | --x-in | --x-i) | |
822 | ac_prev=x_includes ;; | |
823 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
824 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
a0b9e27f | 825 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
826 | |
827 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
828 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
829 | ac_prev=x_libraries ;; | |
830 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
831 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
a0b9e27f | 832 | x_libraries="$ac_optarg" ;; |
10f2d63a | 833 | |
a0b9e27f | 834 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
835 | ;; |
836 | ||
837 | *) | |
a0b9e27f MB |
838 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
839 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
840 | fi | |
841 | if test "x$nonopt" != xNONE; then | |
842 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
843 | fi | |
844 | nonopt="$ac_option" | |
10f2d63a VZ |
845 | ;; |
846 | ||
847 | esac | |
848 | done | |
849 | ||
850 | if test -n "$ac_prev"; then | |
a0b9e27f | 851 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
8284b0c5 | 852 | fi |
8284b0c5 | 853 | |
a0b9e27f MB |
854 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
855 | ||
856 | # File descriptor usage: | |
857 | # 0 standard input | |
858 | # 1 file creation | |
859 | # 2 errors and warnings | |
860 | # 3 some systems may open it to /dev/tty | |
861 | # 4 used on the Kubota Titan | |
862 | # 6 checking for... messages and results | |
863 | # 5 compiler messages saved in config.log | |
864 | if test "$silent" = yes; then | |
865 | exec 6>/dev/null | |
866 | else | |
867 | exec 6>&1 | |
868 | fi | |
869 | exec 5>./config.log | |
870 | ||
871 | echo "\ | |
872 | This file contains any messages produced by compilers while | |
873 | running configure, to aid debugging if configure makes a mistake. | |
874 | " 1>&5 | |
8284b0c5 | 875 | |
a0b9e27f MB |
876 | # Strip out --no-create and --no-recursion so they do not pile up. |
877 | # Also quote any args containing shell metacharacters. | |
878 | ac_configure_args= | |
879 | for ac_arg | |
10f2d63a | 880 | do |
a0b9e27f MB |
881 | case "$ac_arg" in |
882 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
883 | | --no-cr | --no-c) ;; | |
884 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
885 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
886 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
887 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
888 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
889 | esac |
890 | done | |
891 | ||
a0b9e27f MB |
892 | # NLS nuisances. |
893 | # Only set these to C if already set. These must not be set unconditionally | |
894 | # because not all systems understand e.g. LANG=C (notably SCO). | |
895 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
896 | # Non-C LC_CTYPE values break the ctype check. | |
897 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
898 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
899 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
900 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
247f5006 | 901 | |
a0b9e27f MB |
902 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
903 | rm -rf conftest* confdefs.h | |
904 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
905 | echo > confdefs.h | |
10f2d63a | 906 | |
a0b9e27f MB |
907 | # A filename unique to this package, relative to the directory that |
908 | # configure is in, which we can look for to find out if srcdir is correct. | |
909 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
910 | |
911 | # Find the source files, if location was not specified. | |
912 | if test -z "$srcdir"; then | |
913 | ac_srcdir_defaulted=yes | |
914 | # Try the directory containing this script, then its parent. | |
a0b9e27f MB |
915 | ac_prog=$0 |
916 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
917 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
10f2d63a VZ |
918 | srcdir=$ac_confdir |
919 | if test ! -r $srcdir/$ac_unique_file; then | |
920 | srcdir=.. | |
921 | fi | |
922 | else | |
923 | ac_srcdir_defaulted=no | |
924 | fi | |
925 | if test ! -r $srcdir/$ac_unique_file; then | |
926 | if test "$ac_srcdir_defaulted" = yes; then | |
a0b9e27f | 927 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 928 | else |
a0b9e27f | 929 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
930 | fi |
931 | fi | |
a0b9e27f | 932 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
328a083c | 933 | |
10f2d63a VZ |
934 | # Prefer explicitly selected file to automatically selected ones. |
935 | if test -z "$CONFIG_SITE"; then | |
936 | if test "x$prefix" != xNONE; then | |
937 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
938 | else | |
939 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
940 | fi | |
941 | fi | |
942 | for ac_site_file in $CONFIG_SITE; do | |
943 | if test -r "$ac_site_file"; then | |
a0b9e27f | 944 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
945 | . "$ac_site_file" |
946 | fi | |
947 | done | |
948 | ||
949 | if test -r "$cache_file"; then | |
a0b9e27f MB |
950 | echo "loading cache $cache_file" |
951 | . $cache_file | |
10f2d63a | 952 | else |
a0b9e27f MB |
953 | echo "creating cache $cache_file" |
954 | > $cache_file | |
10f2d63a VZ |
955 | fi |
956 | ||
957 | ac_ext=c | |
a0b9e27f | 958 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 959 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
960 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
961 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
962 | cross_compiling=$ac_cv_prog_cc_cross | |
963 | ||
964 | ac_exeext= | |
965 | ac_objext=o | |
966 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
967 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
968 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
969 | ac_n= ac_c=' | |
970 | ' ac_t=' ' | |
971 | else | |
972 | ac_n=-n ac_c= ac_t= | |
973 | fi | |
974 | else | |
975 | ac_n= ac_c='\c' ac_t= | |
976 | fi | |
8284b0c5 MB |
977 | |
978 | ||
10f2d63a | 979 | |
7c66a493 VZ |
980 | ac_aux_dir= |
981 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
982 | if test -f $ac_dir/install-sh; then | |
983 | ac_aux_dir=$ac_dir | |
984 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
985 | break | |
986 | elif test -f $ac_dir/install.sh; then | |
987 | ac_aux_dir=$ac_dir | |
988 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
989 | break | |
247f5006 | 990 | fi |
7c66a493 VZ |
991 | done |
992 | if test -z "$ac_aux_dir"; then | |
a0b9e27f | 993 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 994 | fi |
a0b9e27f MB |
995 | ac_config_guess=$ac_aux_dir/config.guess |
996 | ac_config_sub=$ac_aux_dir/config.sub | |
997 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
698dcdb6 | 998 | |
8284b0c5 | 999 | |
a0b9e27f MB |
1000 | # Do some error checking and defaulting for the host and target type. |
1001 | # The inputs are: | |
1002 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
1003 | # | |
1004 | # The rules are: | |
1005 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
1006 | # same time. | |
1007 | # 2. Host defaults to nonopt. | |
1008 | # 3. If nonopt is not specified, then host defaults to the current host, | |
1009 | # as determined by config.guess. | |
1010 | # 4. Target and build default to nonopt. | |
1011 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
1012 | |
1013 | # The aliases save the names the user supplied, while $host etc. | |
1014 | # will get canonicalized. | |
a0b9e27f MB |
1015 | case $host---$target---$nonopt in |
1016 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
1017 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
1018 | esac | |
1019 | ||
1020 | ||
1021 | # Make sure we can run config.sub. | |
1022 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1023 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1024 | fi | |
1025 | ||
1026 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
521196a2 | 1027 | echo "configure:1028: checking host system type" >&5 |
a0b9e27f MB |
1028 | |
1029 | host_alias=$host | |
1030 | case "$host_alias" in | |
1031 | NONE) | |
1032 | case $nonopt in | |
1033 | NONE) | |
1034 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1035 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1036 | fi ;; | |
1037 | *) host_alias=$nonopt ;; | |
1038 | esac ;; | |
1039 | esac | |
1040 | ||
1041 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1042 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1043 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1044 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1045 | echo "$ac_t""$host" 1>&6 | |
1046 | ||
1047 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
521196a2 | 1048 | echo "configure:1049: checking target system type" >&5 |
a0b9e27f MB |
1049 | |
1050 | target_alias=$target | |
1051 | case "$target_alias" in | |
1052 | NONE) | |
1053 | case $nonopt in | |
1054 | NONE) target_alias=$host_alias ;; | |
1055 | *) target_alias=$nonopt ;; | |
1056 | esac ;; | |
1057 | esac | |
1058 | ||
1059 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1060 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1061 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1062 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1063 | echo "$ac_t""$target" 1>&6 | |
1064 | ||
1065 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
521196a2 | 1066 | echo "configure:1067: checking build system type" >&5 |
a0b9e27f MB |
1067 | |
1068 | build_alias=$build | |
1069 | case "$build_alias" in | |
1070 | NONE) | |
1071 | case $nonopt in | |
1072 | NONE) build_alias=$host_alias ;; | |
1073 | *) build_alias=$nonopt ;; | |
1074 | esac ;; | |
1075 | esac | |
1076 | ||
1077 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1078 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1079 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1080 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1081 | echo "$ac_t""$build" 1>&6 | |
1082 | ||
1083 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1084 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1085 | NONENONEs,x,x, && | |
1086 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1087 | |
1088 | ||
a0b9e27f | 1089 | |
10f2d63a | 1090 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 VZ |
1091 | WX_MINOR_VERSION_NUMBER=5 |
1092 | WX_RELEASE_NUMBER=0 | |
10f2d63a | 1093 | |
10f2d63a | 1094 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1095 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1096 | |
978f1259 RL |
1097 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1098 | ||
34bed6d9 | 1099 | WX_CURRENT=0 |
6426998c RL |
1100 | WX_REVISION=0 |
1101 | WX_AGE=0 | |
1102 | ||
8284b0c5 MB |
1103 | |
1104 | ||
10f2d63a VZ |
1105 | USE_UNIX=1 |
1106 | USE_WIN32=0 | |
f9bc1684 | 1107 | USE_DOS=0 |
b12915c1 | 1108 | USE_BEOS=0 |
1216f52d | 1109 | USE_MAC=0 |
b12915c1 | 1110 | |
10f2d63a VZ |
1111 | USE_LINUX= |
1112 | USE_SGI= | |
1113 | USE_HPUX= | |
1114 | USE_SYSV= | |
1115 | USE_SVR4= | |
1116 | USE_AIX= | |
1117 | USE_SUN= | |
1118 | USE_SOLARIS= | |
1119 | USE_SUNOS= | |
1120 | USE_ALPHA= | |
1121 | USE_OSF= | |
1122 | USE_BSD= | |
f11bdd03 | 1123 | USE_DARWIN= |
10f2d63a | 1124 | USE_FREEBSD= |
95c8801c | 1125 | USE_OPENBSD= |
f6bcfd97 | 1126 | USE_NETBSD= |
10f2d63a VZ |
1127 | USE_VMS= |
1128 | USE_ULTRIX= | |
10f2d63a VZ |
1129 | USE_DATA_GENERAL= |
1130 | ||
ab9b9eab VZ |
1131 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1132 | ||
89e6bf6d | 1133 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a VZ |
1134 | |
1135 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1136 | DEFAULT_wxUSE_MAC=0 |
1137 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1138 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1139 | DEFAULT_wxUSE_MOTIF=0 |
1140 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1141 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1142 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1143 | |
1144 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1145 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1146 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1147 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1148 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1149 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1150 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1151 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1152 | |
d6a55c4b | 1153 | PROGRAM_EXT= |
3a922bb4 | 1154 | SO_SUFFIX=so |
d6a55c4b | 1155 | |
10f2d63a VZ |
1156 | case "${host}" in |
1157 | *-hp-hpux* ) | |
1158 | USE_HPUX=1 | |
1159 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1160 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1161 | SO_SUFFIX=sl |
a0b9e27f | 1162 | cat >> confdefs.h <<\EOF |
10f2d63a | 1163 | #define __HPUX__ 1 |
a0b9e27f | 1164 | EOF |
10f2d63a VZ |
1165 | |
1166 | ;; | |
1167 | *-*-linux* ) | |
1168 | USE_LINUX=1 | |
a0b9e27f | 1169 | cat >> confdefs.h <<\EOF |
10f2d63a | 1170 | #define __LINUX__ 1 |
a0b9e27f | 1171 | EOF |
10f2d63a VZ |
1172 | |
1173 | TMP=`uname -m` | |
1174 | if test "x$TMP" = "xalpha"; then | |
1175 | USE_ALPHA=1 | |
a0b9e27f | 1176 | cat >> confdefs.h <<\EOF |
10f2d63a | 1177 | #define __ALPHA__ 1 |
a0b9e27f | 1178 | EOF |
10f2d63a VZ |
1179 | |
1180 | fi | |
1181 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1182 | ;; | |
1183 | *-*-irix5* | *-*-irix6* ) | |
1184 | USE_SGI=1 | |
1185 | USE_SVR4=1 | |
a0b9e27f | 1186 | cat >> confdefs.h <<\EOF |
10f2d63a | 1187 | #define __SGI__ 1 |
a0b9e27f | 1188 | EOF |
10f2d63a | 1189 | |
a0b9e27f | 1190 | cat >> confdefs.h <<\EOF |
10f2d63a | 1191 | #define __SVR4__ 1 |
a0b9e27f | 1192 | EOF |
10f2d63a VZ |
1193 | |
1194 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1195 | ;; | |
1196 | *-*-solaris2* ) | |
1197 | USE_SUN=1 | |
1198 | USE_SOLARIS=1 | |
1199 | USE_SVR4=1 | |
a0b9e27f | 1200 | cat >> confdefs.h <<\EOF |
10f2d63a | 1201 | #define __SUN__ 1 |
a0b9e27f | 1202 | EOF |
10f2d63a | 1203 | |
a0b9e27f | 1204 | cat >> confdefs.h <<\EOF |
10f2d63a | 1205 | #define __SOLARIS__ 1 |
a0b9e27f | 1206 | EOF |
10f2d63a | 1207 | |
a0b9e27f | 1208 | cat >> confdefs.h <<\EOF |
10f2d63a | 1209 | #define __SVR4__ 1 |
a0b9e27f | 1210 | EOF |
10f2d63a VZ |
1211 | |
1212 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1213 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1214 | ;; |
1215 | *-*-sunos4* ) | |
1216 | USE_SUN=1 | |
1217 | USE_SUNOS=1 | |
1218 | USE_BSD=1 | |
a0b9e27f | 1219 | cat >> confdefs.h <<\EOF |
10f2d63a | 1220 | #define __SUN__ 1 |
a0b9e27f | 1221 | EOF |
10f2d63a | 1222 | |
a0b9e27f | 1223 | cat >> confdefs.h <<\EOF |
10f2d63a | 1224 | #define __SUNOS__ 1 |
a0b9e27f | 1225 | EOF |
10f2d63a | 1226 | |
a0b9e27f | 1227 | cat >> confdefs.h <<\EOF |
10f2d63a | 1228 | #define __BSD__ 1 |
a0b9e27f | 1229 | EOF |
10f2d63a VZ |
1230 | |
1231 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1232 | ;; | |
f6bcfd97 | 1233 | *-*-freebsd*) |
10f2d63a VZ |
1234 | USE_BSD=1 |
1235 | USE_FREEBSD=1 | |
a0b9e27f | 1236 | cat >> confdefs.h <<\EOF |
10f2d63a | 1237 | #define __FREEBSD__ 1 |
a0b9e27f | 1238 | EOF |
10f2d63a | 1239 | |
a0b9e27f | 1240 | cat >> confdefs.h <<\EOF |
10f2d63a | 1241 | #define __BSD__ 1 |
a0b9e27f | 1242 | EOF |
95c8801c VS |
1243 | |
1244 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1245 | ;; | |
1246 | *-*-openbsd*) | |
1247 | USE_BSD=1 | |
1248 | USE_OPENBSD=1 | |
a0b9e27f | 1249 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1250 | #define __OPENBSD__ 1 |
a0b9e27f | 1251 | EOF |
95c8801c | 1252 | |
a0b9e27f | 1253 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1254 | #define __BSD__ 1 |
a0b9e27f | 1255 | EOF |
f6bcfd97 BP |
1256 | |
1257 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1258 | ;; | |
1259 | *-*-netbsd*) | |
1260 | USE_BSD=1 | |
1261 | USE_NETBSD=1 | |
a0b9e27f | 1262 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1263 | #define __NETBSD__ 1 |
a0b9e27f | 1264 | EOF |
f6bcfd97 | 1265 | |
a0b9e27f | 1266 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1267 | #define __BSD__ 1 |
a0b9e27f | 1268 | EOF |
10f2d63a VZ |
1269 | |
1270 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1271 | ;; | |
1272 | *-*-osf* ) | |
1273 | USE_ALPHA=1 | |
1274 | USE_OSF=1 | |
a0b9e27f | 1275 | cat >> confdefs.h <<\EOF |
10f2d63a | 1276 | #define __ALPHA__ 1 |
a0b9e27f | 1277 | EOF |
10f2d63a | 1278 | |
a0b9e27f | 1279 | cat >> confdefs.h <<\EOF |
10f2d63a | 1280 | #define __OSF__ 1 |
a0b9e27f | 1281 | EOF |
10f2d63a VZ |
1282 | |
1283 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1284 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1285 | ;; |
1286 | *-*-dgux5* ) | |
1287 | USE_ALPHA=1 | |
1288 | USE_SVR4=1 | |
a0b9e27f | 1289 | cat >> confdefs.h <<\EOF |
10f2d63a | 1290 | #define __ALPHA__ 1 |
a0b9e27f | 1291 | EOF |
10f2d63a | 1292 | |
a0b9e27f | 1293 | cat >> confdefs.h <<\EOF |
10f2d63a | 1294 | #define __SVR4__ 1 |
a0b9e27f | 1295 | EOF |
10f2d63a VZ |
1296 | |
1297 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1298 | ;; | |
1299 | *-*-sysv5* ) | |
1300 | USE_SYSV=1 | |
1301 | USE_SVR4=1 | |
a0b9e27f | 1302 | cat >> confdefs.h <<\EOF |
10f2d63a | 1303 | #define __SYSV__ 1 |
a0b9e27f | 1304 | EOF |
10f2d63a | 1305 | |
a0b9e27f | 1306 | cat >> confdefs.h <<\EOF |
10f2d63a | 1307 | #define __SVR4__ 1 |
a0b9e27f | 1308 | EOF |
10f2d63a VZ |
1309 | |
1310 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1311 | ;; | |
1312 | *-*-aix* ) | |
1313 | USE_AIX=1 | |
1314 | USE_SYSV=1 | |
1315 | USE_SVR4=1 | |
2b5f62a0 | 1316 | SO_SUFFIX=a |
a0b9e27f | 1317 | cat >> confdefs.h <<\EOF |
10f2d63a | 1318 | #define __AIX__ 1 |
a0b9e27f | 1319 | EOF |
10f2d63a | 1320 | |
a0b9e27f | 1321 | cat >> confdefs.h <<\EOF |
10f2d63a | 1322 | #define __SYSV__ 1 |
a0b9e27f | 1323 | EOF |
10f2d63a | 1324 | |
a0b9e27f | 1325 | cat >> confdefs.h <<\EOF |
10f2d63a | 1326 | #define __SVR4__ 1 |
a0b9e27f | 1327 | EOF |
10f2d63a VZ |
1328 | |
1329 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1330 | ;; | |
1331 | ||
1c8183e2 | 1332 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1333 | SO_SUFFIX=dll |
cf27ef00 | 1334 | PROGRAM_EXT=".exe" |
7b7a7637 | 1335 | RESCOMP=windres |
10f2d63a VZ |
1336 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1337 | ;; | |
1338 | ||
f9bc1684 VS |
1339 | *-pc-msdosdjgpp ) |
1340 | USE_UNIX=0 | |
1341 | USE_DOS=1 | |
a0b9e27f | 1342 | cat >> confdefs.h <<\EOF |
f9bc1684 | 1343 | #define __DOS__ 1 |
a0b9e27f | 1344 | EOF |
f9bc1684 VS |
1345 | |
1346 | PROGRAM_EXT=".exe" | |
1347 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1348 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1349 | ;; |
1350 | ||
6fa882bd | 1351 | *-pc-os2_emx | *-pc-os2-emx ) |
a0b9e27f | 1352 | cat >> confdefs.h <<\EOF |
10f2d63a | 1353 | #define __EMX__ 1 |
a0b9e27f | 1354 | EOF |
10f2d63a | 1355 | |
cf27ef00 | 1356 | PROGRAM_EXT=".exe" |
e07802fc | 1357 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1358 | ;; |
1359 | ||
d08b457b GD |
1360 | powerpc-*-darwin* ) |
1361 | USE_BSD=1 | |
f11bdd03 | 1362 | USE_DARWIN=1 |
3a922bb4 | 1363 | SO_SUFFIX=dylib |
a0b9e27f | 1364 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1365 | #define __BSD__ 1 |
a0b9e27f | 1366 | EOF |
b4085ce6 | 1367 | |
a0b9e27f | 1368 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1369 | #define __DARWIN__ 1 |
a0b9e27f | 1370 | EOF |
d08b457b | 1371 | |
a0b9e27f | 1372 | cat >> confdefs.h <<\EOF |
d08b457b | 1373 | #define __POWERPC__ 1 |
82d43113 GD |
1374 | EOF |
1375 | ||
1376 | cat >> confdefs.h <<\EOF | |
1377 | #define TARGET_CARBON 1 | |
a0b9e27f | 1378 | EOF |
b4085ce6 GD |
1379 | |
1380 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1381 | ;; | |
1382 | ||
b12915c1 VZ |
1383 | *-*-beos* ) |
1384 | USE_BEOS=1 | |
a0b9e27f | 1385 | cat >> confdefs.h <<\EOF |
b12915c1 | 1386 | #define __BEOS__ 1 |
a0b9e27f | 1387 | EOF |
b12915c1 VZ |
1388 | |
1389 | ;; | |
1390 | ||
10f2d63a | 1391 | *) |
a0b9e27f | 1392 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1393 | esac |
1394 | ||
8284b0c5 MB |
1395 | |
1396 | ||
1397 | ||
1398 | wx_arg_cache_file="configarg.cache" | |
1399 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1400 | rm -f ${wx_arg_cache_file}.tmp |
1401 | touch ${wx_arg_cache_file}.tmp | |
1402 | touch ${wx_arg_cache_file} | |
a0b9e27f | 1403 | |
10f2d63a VZ |
1404 | |
1405 | DEBUG_CONFIGURE=0 | |
1406 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1407 | DEFAULT_wxUSE_UNIVERSAL=no |
1408 | ||
d8356fa3 VZ |
1409 | DEFAULT_wxUSE_NANOX=no |
1410 | ||
10f2d63a VZ |
1411 | DEFAULT_wxUSE_THREADS=yes |
1412 | ||
1413 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1414 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1415 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1416 | DEFAULT_wxUSE_PROFILE=no |
1417 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1418 | DEFAULT_wxUSE_NO_RTTI=no |
1419 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1420 | DEFAULT_wxUSE_PERMISSIVE=no |
1421 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1422 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1423 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1424 | DEFAULT_wxUSE_MEM_TRACING=no | |
1425 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1426 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1427 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1428 | DEFAULT_wxUSE_APPLE_IEEE=no |
1429 | ||
1430 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1431 | DEFAULT_wxUSE_LOGWINDOW=no |
1432 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1433 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1434 | |
1435 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1436 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1437 | |
3e44f09d | 1438 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1439 | DEFAULT_wxUSE_ZLIB=no |
1440 | DEFAULT_wxUSE_LIBPNG=no | |
1441 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1442 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1443 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1444 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1445 | |
eb4efbdc | 1446 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1447 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1448 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1449 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1450 | DEFAULT_wxUSE_DATETIME=no | |
1451 | DEFAULT_wxUSE_TIMEDATE=no | |
1452 | DEFAULT_wxUSE_TIMER=no | |
1453 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1454 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1455 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1456 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1457 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1458 | DEFAULT_wxUSE_WAVE=no |
1459 | DEFAULT_wxUSE_INTL=no | |
1460 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1461 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1462 | DEFAULT_wxUSE_STREAMS=no |
1463 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
1464 | DEFAULT_wxUSE_OLE=no |
1465 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 1466 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 1467 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1468 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1469 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1470 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1471 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1472 | |
1473 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1474 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1475 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1476 | ||
1477 | DEFAULT_wxUSE_X_RESOURCES=no | |
1478 | DEFAULT_wxUSE_CLIPBOARD=no | |
1479 | DEFAULT_wxUSE_TOOLTIPS=no | |
1480 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1481 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1482 | DEFAULT_wxUSE_SPLINES=no |
1483 | ||
1484 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1485 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1486 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1487 | ||
1488 | DEFAULT_wxUSE_PROLOGIO=no | |
1489 | DEFAULT_wxUSE_RESOURCES=no | |
1490 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1491 | DEFAULT_wxUSE_IPC=no | |
1492 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1493 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1494 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1495 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1496 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1497 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1498 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1499 | DEFAULT_wxUSE_PROTOCOL=no | |
1500 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1501 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1502 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1503 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 1504 | |
10f2d63a | 1505 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1506 | DEFAULT_wxUSE_CHOICEDLG=no |
1507 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1508 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1509 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1510 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1511 | DEFAULT_wxUSE_FONTDLG=no |
1512 | DEFAULT_wxUSE_MSGDLG=no | |
1513 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1514 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1515 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1516 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1517 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1518 | DEFAULT_wxUSE_WIZARDDLG=no |
1519 | ||
1e6feb95 | 1520 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1521 | DEFAULT_wxUSE_MINIFRAME=no |
1522 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1523 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1524 | DEFAULT_wxUSE_FS_INET=no |
1525 | DEFAULT_wxUSE_FS_ZIP=no | |
1526 | DEFAULT_wxUSE_BUSYINFO=no | |
1527 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1528 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1529 | |
1530 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1531 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1532 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1533 | DEFAULT_wxUSE_CALCTRL=no |
1534 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1535 | DEFAULT_wxUSE_CHECKBOX=no |
1536 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1537 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a | 1538 | DEFAULT_wxUSE_COMBOBOX=no |
da494b40 | 1539 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
1540 | DEFAULT_wxUSE_GAUGE=no |
1541 | DEFAULT_wxUSE_GRID=no | |
1542 | DEFAULT_wxUSE_NEW_GRID=no | |
1543 | DEFAULT_wxUSE_IMAGLIST=no | |
1544 | DEFAULT_wxUSE_LISTBOX=no | |
1545 | DEFAULT_wxUSE_LISTCTRL=no | |
1546 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1547 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1548 | DEFAULT_wxUSE_RADIOBOX=no |
1549 | DEFAULT_wxUSE_RADIOBTN=no | |
1550 | DEFAULT_wxUSE_SASH=no | |
1551 | DEFAULT_wxUSE_SCROLLBAR=no | |
1552 | DEFAULT_wxUSE_SLIDER=no | |
1553 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1554 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1555 | DEFAULT_wxUSE_SPLITTER=no |
1556 | DEFAULT_wxUSE_STATBMP=no | |
1557 | DEFAULT_wxUSE_STATBOX=no | |
1558 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1559 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1560 | DEFAULT_wxUSE_STATUSBAR=yes |
1561 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1562 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1563 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1564 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1565 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1566 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1567 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1568 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1569 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1570 | |
1571 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1572 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1573 | DEFAULT_wxUSE_WCSRTOMBS=no |
1574 | ||
edae8572 | 1575 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1576 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1577 | DEFAULT_wxUSE_GIF=no |
1578 | DEFAULT_wxUSE_PCX=no | |
1579 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1580 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1581 | DEFAULT_wxUSE_XPM=no |
658974ae | 1582 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1583 | else |
1e6feb95 VZ |
1584 | DEFAULT_wxUSE_UNIVERSAL=no |
1585 | ||
d8356fa3 VZ |
1586 | DEFAULT_wxUSE_NANOX=no |
1587 | ||
10f2d63a VZ |
1588 | DEFAULT_wxUSE_THREADS=yes |
1589 | ||
1590 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1591 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1592 | DEFAULT_wxUSE_OPTIMISE=yes |
1593 | DEFAULT_wxUSE_PROFILE=no | |
1594 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1595 | DEFAULT_wxUSE_NO_RTTI=no |
1596 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1597 | DEFAULT_wxUSE_PERMISSIVE=no |
1598 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1599 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1600 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1601 | DEFAULT_wxUSE_MEM_TRACING=no | |
1602 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1603 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1604 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1605 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1606 | ||
1607 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1608 | DEFAULT_wxUSE_LOGWINDOW=yes |
1609 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1610 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1611 | |
1612 | DEFAULT_wxUSE_GUI=yes | |
1613 | ||
831b3152 | 1614 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1615 | DEFAULT_wxUSE_ZLIB=yes |
1616 | DEFAULT_wxUSE_LIBPNG=yes | |
1617 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1618 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1619 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1620 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1621 | |
eb4efbdc | 1622 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1623 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1624 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1625 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1626 | DEFAULT_wxUSE_DATETIME=yes | |
1627 | DEFAULT_wxUSE_TIMEDATE=no | |
1628 | DEFAULT_wxUSE_TIMER=yes | |
1629 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1630 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1631 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1632 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1633 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1634 | DEFAULT_wxUSE_WAVE=no |
1635 | DEFAULT_wxUSE_INTL=yes | |
1636 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1637 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1638 | DEFAULT_wxUSE_STREAMS=yes |
1639 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
1640 | DEFAULT_wxUSE_OLE=yes |
1641 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 1642 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 1643 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1644 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1645 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1646 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1647 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1648 | |
1649 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1650 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1651 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1652 | ||
1653 | DEFAULT_wxUSE_X_RESOURCES=no | |
1654 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1655 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1656 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1657 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1658 | DEFAULT_wxUSE_SPLINES=yes |
1659 | ||
1660 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1661 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1662 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1663 | ||
2b5f62a0 VZ |
1664 | DEFAULT_wxUSE_PROLOGIO=no |
1665 | DEFAULT_wxUSE_RESOURCES=no | |
10f2d63a VZ |
1666 | DEFAULT_wxUSE_CONSTRAINTS=yes |
1667 | DEFAULT_wxUSE_IPC=yes | |
1668 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1669 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1670 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1671 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1672 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1673 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1674 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1675 | DEFAULT_wxUSE_PROTOCOL=yes |
1676 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1677 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1678 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1679 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1680 | |
1681 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1682 | DEFAULT_wxUSE_CHOICEDLG=yes |
1683 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1684 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1685 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1686 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1687 | DEFAULT_wxUSE_FONTDLG=yes |
1688 | DEFAULT_wxUSE_MSGDLG=yes | |
1689 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1690 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1691 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1692 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1693 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1694 | DEFAULT_wxUSE_WIZARDDLG=yes |
1695 | ||
1e6feb95 | 1696 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1697 | DEFAULT_wxUSE_MINIFRAME=yes |
1698 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1699 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1700 | DEFAULT_wxUSE_FS_INET=yes |
1701 | DEFAULT_wxUSE_FS_ZIP=yes | |
1702 | DEFAULT_wxUSE_BUSYINFO=yes | |
1703 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1704 | DEFAULT_wxUSE_VALIDATORS=yes | |
1705 | ||
1706 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1707 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1708 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1709 | DEFAULT_wxUSE_CALCTRL=yes |
1710 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1711 | DEFAULT_wxUSE_CHECKBOX=yes |
1712 | DEFAULT_wxUSE_CHECKLST=yes | |
1713 | DEFAULT_wxUSE_CHOICE=yes | |
1714 | DEFAULT_wxUSE_COMBOBOX=yes | |
da494b40 | 1715 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
1716 | DEFAULT_wxUSE_GAUGE=yes |
1717 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1718 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1719 | DEFAULT_wxUSE_IMAGLIST=yes |
1720 | DEFAULT_wxUSE_LISTBOX=yes | |
1721 | DEFAULT_wxUSE_LISTCTRL=yes | |
1722 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1723 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1724 | DEFAULT_wxUSE_RADIOBOX=yes |
1725 | DEFAULT_wxUSE_RADIOBTN=yes | |
1726 | DEFAULT_wxUSE_SASH=yes | |
1727 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1728 | DEFAULT_wxUSE_SLIDER=yes | |
1729 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1730 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1731 | DEFAULT_wxUSE_SPLITTER=yes |
1732 | DEFAULT_wxUSE_STATBMP=yes | |
1733 | DEFAULT_wxUSE_STATBOX=yes | |
1734 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1735 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1736 | DEFAULT_wxUSE_STATUSBAR=yes |
1737 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1738 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1739 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1740 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1741 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1742 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1743 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1744 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1745 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1746 | |
1747 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1748 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1749 | DEFAULT_wxUSE_WCSRTOMBS=no |
1750 | ||
edae8572 | 1751 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1752 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1753 | DEFAULT_wxUSE_GIF=yes |
1754 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1755 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1756 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1757 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1758 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1759 | fi |
1760 | ||
8284b0c5 MB |
1761 | |
1762 | ||
10f2d63a | 1763 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
1764 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
1765 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
1766 | has_toolkit_in_cache=1 |
1767 | eval "DEFAULT_$LINE" | |
1768 | eval "CACHE_$toolkit=1" | |
1769 | fi | |
1770 | done | |
1771 | ||
8284b0c5 MB |
1772 | |
1773 | ||
5005acfe VZ |
1774 | enablestring= |
1775 | echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6 | |
521196a2 | 1776 | echo "configure:1777: checking for --${enablestring:-enable}-gui" >&5 |
10f2d63a VZ |
1777 | no_cache=0 |
1778 | # Check whether --enable-gui or --disable-gui was given. | |
1779 | if test "${enable_gui+set}" = set; then | |
1780 | enableval="$enable_gui" | |
a0b9e27f | 1781 | |
10f2d63a VZ |
1782 | if test "$enableval" = yes; then |
1783 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1784 | else | |
1785 | ac_cv_use_gui='wxUSE_GUI=no' | |
1786 | fi | |
a0b9e27f | 1787 | |
10f2d63a | 1788 | else |
a0b9e27f | 1789 | |
10f2d63a VZ |
1790 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1791 | if test "x$LINE" != x ; then | |
1792 | eval "DEFAULT_$LINE" | |
1793 | else | |
1794 | no_cache=1 | |
1795 | fi | |
1796 | ||
1797 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
a0b9e27f MB |
1798 | |
1799 | fi | |
10f2d63a VZ |
1800 | |
1801 | ||
1802 | eval "$ac_cv_use_gui" | |
1803 | if test "$no_cache" != 1; then | |
1804 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1805 | fi | |
1806 | ||
1807 | if test "$wxUSE_GUI" = yes; then | |
a0b9e27f | 1808 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1809 | else |
a0b9e27f | 1810 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1811 | fi |
a0b9e27f | 1812 | |
10f2d63a | 1813 | |
b12915c1 | 1814 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1815 | |
8284b0c5 | 1816 | |
5005acfe VZ |
1817 | enablestring= |
1818 | echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6 | |
521196a2 | 1819 | echo "configure:1820: checking for --${enablestring:-enable}-universal" >&5 |
1e6feb95 VZ |
1820 | no_cache=0 |
1821 | # Check whether --enable-universal or --disable-universal was given. | |
1822 | if test "${enable_universal+set}" = set; then | |
1823 | enableval="$enable_universal" | |
a0b9e27f | 1824 | |
1e6feb95 VZ |
1825 | if test "$enableval" = yes; then |
1826 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1827 | else | |
1828 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1829 | fi | |
a0b9e27f | 1830 | |
1e6feb95 | 1831 | else |
a0b9e27f | 1832 | |
1e6feb95 VZ |
1833 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
1834 | if test "x$LINE" != x ; then | |
1835 | eval "DEFAULT_$LINE" | |
1836 | else | |
1837 | no_cache=1 | |
1838 | fi | |
1839 | ||
1840 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
a0b9e27f MB |
1841 | |
1842 | fi | |
1e6feb95 VZ |
1843 | |
1844 | ||
1845 | eval "$ac_cv_use_universal" | |
1846 | if test "$no_cache" != 1; then | |
1847 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1848 | fi | |
1849 | ||
1850 | if test "$wxUSE_UNIVERSAL" = yes; then | |
a0b9e27f | 1851 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 1852 | else |
a0b9e27f | 1853 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 1854 | fi |
a0b9e27f | 1855 | |
10f2d63a VZ |
1856 | # Check whether --with-gtk or --without-gtk was given. |
1857 | if test "${with_gtk+set}" = set; then | |
1858 | withval="$with_gtk" | |
1859 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1860 | fi |
10f2d63a VZ |
1861 | |
1862 | # Check whether --with-motif or --without-motif was given. | |
1863 | if test "${with_motif+set}" = set; then | |
1864 | withval="$with_motif" | |
1865 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1866 | fi |
10f2d63a | 1867 | |
b4085ce6 GD |
1868 | # Check whether --with-mac or --without-mac was given. |
1869 | if test "${with_mac+set}" = set; then | |
1870 | withval="$with_mac" | |
1871 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
a0b9e27f | 1872 | fi |
b4085ce6 | 1873 | |
10f2d63a VZ |
1874 | # Check whether --with-wine or --without-wine was given. |
1875 | if test "${with_wine+set}" = set; then | |
1876 | withval="$with_wine" | |
89e6bf6d | 1877 | wxUSE_WINE="$withval" CACHE_WINE=1 |
a0b9e27f | 1878 | fi |
10f2d63a | 1879 | |
77e13408 RL |
1880 | # Check whether --with-msw or --without-msw was given. |
1881 | if test "${with_msw+set}" = set; then | |
1882 | withval="$with_msw" | |
b4efce5e | 1883 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1884 | fi |
10f2d63a | 1885 | |
e07802fc VZ |
1886 | # Check whether --with-pm or --without-pm was given. |
1887 | if test "${with_pm+set}" = set; then | |
1888 | withval="$with_pm" | |
1889 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1890 | fi |
698dcdb6 | 1891 | |
1e6feb95 VZ |
1892 | # Check whether --with-mgl or --without-mgl was given. |
1893 | if test "${with_mgl+set}" = set; then | |
1894 | withval="$with_mgl" | |
6c657b52 | 1895 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1896 | fi |
1e6feb95 | 1897 | |
1725144d RR |
1898 | # Check whether --with-microwin or --without-microwin was given. |
1899 | if test "${with_microwin+set}" = set; then | |
1900 | withval="$with_microwin" | |
1901 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1902 | fi |
1725144d | 1903 | |
f79bd02d JS |
1904 | # Check whether --with-x11 or --without-x11 was given. |
1905 | if test "${with_x11+set}" = set; then | |
1906 | withval="$with_x11" | |
3c011993 | 1907 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1908 | fi |
10f2d63a | 1909 | |
a0b9e27f | 1910 | |
5005acfe VZ |
1911 | enablestring= |
1912 | echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6 | |
521196a2 | 1913 | echo "configure:1914: checking for --${enablestring:-enable}-nanox" >&5 |
d8356fa3 | 1914 | no_cache=0 |
ba875e66 VZ |
1915 | # Check whether --enable-nanox or --disable-nanox was given. |
1916 | if test "${enable_nanox+set}" = set; then | |
1917 | enableval="$enable_nanox" | |
a0b9e27f | 1918 | |
d8356fa3 | 1919 | if test "$enableval" = yes; then |
ba875e66 | 1920 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1921 | else |
ba875e66 | 1922 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 1923 | fi |
a0b9e27f | 1924 | |
d8356fa3 | 1925 | else |
a0b9e27f | 1926 | |
d8356fa3 VZ |
1927 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
1928 | if test "x$LINE" != x ; then | |
1929 | eval "DEFAULT_$LINE" | |
1930 | else | |
1931 | no_cache=1 | |
1932 | fi | |
1933 | ||
ba875e66 | 1934 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
a0b9e27f MB |
1935 | |
1936 | fi | |
d8356fa3 VZ |
1937 | |
1938 | ||
ba875e66 | 1939 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1940 | if test "$no_cache" != 1; then |
ba875e66 | 1941 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1942 | fi |
1943 | ||
1944 | if test "$wxUSE_NANOX" = yes; then | |
a0b9e27f | 1945 | echo "$ac_t""yes" 1>&6 |
d8356fa3 | 1946 | else |
a0b9e27f | 1947 | echo "$ac_t""no" 1>&6 |
d8356fa3 | 1948 | fi |
a0b9e27f | 1949 | |
8284b0c5 | 1950 | |
d74f4b5a | 1951 | |
5005acfe VZ |
1952 | enablestring= |
1953 | echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6 | |
521196a2 | 1954 | echo "configure:1955: checking for --${enablestring:-enable}-gtk2" >&5 |
d74f4b5a VZ |
1955 | no_cache=0 |
1956 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
1957 | if test "${enable_gtk2+set}" = set; then |
1958 | enableval="$enable_gtk2" | |
a0b9e27f | 1959 | |
d74f4b5a VZ |
1960 | if test "$enableval" = yes; then |
1961 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
1962 | else | |
1963 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
1964 | fi | |
a0b9e27f | 1965 | |
10f2d63a | 1966 | else |
a0b9e27f | 1967 | |
d74f4b5a VZ |
1968 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
1969 | if test "x$LINE" != x ; then | |
1970 | eval "DEFAULT_$LINE" | |
1971 | else | |
1972 | no_cache=1 | |
1973 | fi | |
1974 | ||
1975 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
a0b9e27f MB |
1976 | |
1977 | fi | |
52127426 | 1978 | |
328a083c | 1979 | |
d74f4b5a VZ |
1980 | eval "$ac_cv_use_gtk2" |
1981 | if test "$no_cache" != 1; then | |
1982 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
1983 | fi | |
1984 | ||
1985 | if test "$wxUSE_GTK2" = yes; then | |
a0b9e27f | 1986 | echo "$ac_t""yes" 1>&6 |
d74f4b5a | 1987 | else |
a0b9e27f | 1988 | echo "$ac_t""no" 1>&6 |
d74f4b5a | 1989 | fi |
a0b9e27f | 1990 | |
d74f4b5a | 1991 | |
5c6fa7d2 | 1992 | |
a0b9e27f | 1993 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
521196a2 | 1994 | echo "configure:1995: checking for --with-libpng" >&5 |
8284b0c5 | 1995 | no_cache=0 |
a0b9e27f | 1996 | # Check whether --with-libpng or --without-libpng was given. |
b12915c1 VZ |
1997 | if test "${with_libpng+set}" = set; then |
1998 | withval="$with_libpng" | |
a0b9e27f | 1999 | |
10f2d63a | 2000 | if test "$withval" = yes; then |
b12915c1 | 2001 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2002 | elif test "$withval" = no; then |
b12915c1 | 2003 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2004 | elif test "$withval" = sys; then |
2005 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2006 | elif test "$withval" = builtin; then |
2007 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2008 | else |
a0b9e27f | 2009 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2010 | fi |
a0b9e27f | 2011 | |
10f2d63a | 2012 | else |
a0b9e27f | 2013 | |
b12915c1 | 2014 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2015 | if test "x$LINE" != x ; then |
2016 | eval "DEFAULT_$LINE" | |
2017 | else | |
2018 | no_cache=1 | |
2019 | fi | |
2020 | ||
b12915c1 | 2021 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
a0b9e27f MB |
2022 | |
2023 | fi | |
10f2d63a VZ |
2024 | |
2025 | ||
b12915c1 | 2026 | eval "$ac_cv_use_libpng" |
10f2d63a | 2027 | if test "$no_cache" != 1; then |
b12915c1 | 2028 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2029 | fi |
2030 | ||
b12915c1 | 2031 | if test "$wxUSE_LIBPNG" = yes; then |
a0b9e27f | 2032 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2033 | elif test "$wxUSE_LIBPNG" = no; then |
a0b9e27f | 2034 | echo "$ac_t""no" 1>&6 |
422107f9 | 2035 | elif test "$wxUSE_LIBPNG" = sys; then |
a0b9e27f | 2036 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2037 | elif test "$wxUSE_LIBPNG" = builtin; then |
a0b9e27f | 2038 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2039 | else |
a0b9e27f | 2040 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2041 | fi |
a0b9e27f | 2042 | |
10f2d63a | 2043 | |
a0b9e27f | 2044 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
521196a2 | 2045 | echo "configure:2046: checking for --with-libjpeg" >&5 |
10f2d63a | 2046 | no_cache=0 |
a0b9e27f | 2047 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2048 | if test "${with_libjpeg+set}" = set; then |
2049 | withval="$with_libjpeg" | |
a0b9e27f | 2050 | |
10f2d63a | 2051 | if test "$withval" = yes; then |
b12915c1 | 2052 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2053 | elif test "$withval" = no; then |
b12915c1 | 2054 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2055 | elif test "$withval" = sys; then |
2056 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2057 | elif test "$withval" = builtin; then |
2058 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2059 | else |
a0b9e27f | 2060 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2061 | fi |
a0b9e27f | 2062 | |
10f2d63a | 2063 | else |
a0b9e27f | 2064 | |
b12915c1 | 2065 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2066 | if test "x$LINE" != x ; then |
2067 | eval "DEFAULT_$LINE" | |
2068 | else | |
2069 | no_cache=1 | |
2070 | fi | |
2071 | ||
b12915c1 | 2072 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
a0b9e27f MB |
2073 | |
2074 | fi | |
10f2d63a VZ |
2075 | |
2076 | ||
b12915c1 | 2077 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2078 | if test "$no_cache" != 1; then |
b12915c1 | 2079 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2080 | fi |
2081 | ||
b12915c1 | 2082 | if test "$wxUSE_LIBJPEG" = yes; then |
a0b9e27f | 2083 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2084 | elif test "$wxUSE_LIBJPEG" = no; then |
a0b9e27f | 2085 | echo "$ac_t""no" 1>&6 |
422107f9 | 2086 | elif test "$wxUSE_LIBJPEG" = sys; then |
a0b9e27f | 2087 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2088 | elif test "$wxUSE_LIBJPEG" = builtin; then |
a0b9e27f | 2089 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2090 | else |
a0b9e27f | 2091 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2092 | fi |
a0b9e27f | 2093 | |
10f2d63a | 2094 | |
a0b9e27f | 2095 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
521196a2 | 2096 | echo "configure:2097: checking for --with-libtiff" >&5 |
10f2d63a | 2097 | no_cache=0 |
a0b9e27f | 2098 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2099 | if test "${with_libtiff+set}" = set; then |
2100 | withval="$with_libtiff" | |
a0b9e27f | 2101 | |
10f2d63a | 2102 | if test "$withval" = yes; then |
b12915c1 | 2103 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2104 | elif test "$withval" = no; then |
b12915c1 | 2105 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2106 | elif test "$withval" = sys; then |
2107 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2108 | elif test "$withval" = builtin; then |
2109 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2110 | else |
a0b9e27f | 2111 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2112 | fi |
a0b9e27f | 2113 | |
10f2d63a | 2114 | else |
a0b9e27f | 2115 | |
b12915c1 | 2116 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2117 | if test "x$LINE" != x ; then |
2118 | eval "DEFAULT_$LINE" | |
2119 | else | |
2120 | no_cache=1 | |
2121 | fi | |
2122 | ||
b12915c1 | 2123 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
a0b9e27f MB |
2124 | |
2125 | fi | |
10f2d63a VZ |
2126 | |
2127 | ||
b12915c1 | 2128 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2129 | if test "$no_cache" != 1; then |
b12915c1 | 2130 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2131 | fi |
2132 | ||
b12915c1 | 2133 | if test "$wxUSE_LIBTIFF" = yes; then |
a0b9e27f | 2134 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2135 | elif test "$wxUSE_LIBTIFF" = no; then |
a0b9e27f | 2136 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2137 | elif test "$wxUSE_LIBTIFF" = sys; then |
a0b9e27f | 2138 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2139 | elif test "$wxUSE_LIBTIFF" = builtin; then |
a0b9e27f | 2140 | echo "$ac_t""builtin version" 1>&6 |
0dcf9893 | 2141 | else |
a0b9e27f | 2142 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2143 | fi |
a0b9e27f | 2144 | |
10f2d63a | 2145 | |
a0b9e27f | 2146 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
521196a2 | 2147 | echo "configure:2148: checking for --with-opengl" >&5 |
10f2d63a | 2148 | no_cache=0 |
a0b9e27f | 2149 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2150 | if test "${with_opengl+set}" = set; then |
2151 | withval="$with_opengl" | |
a0b9e27f | 2152 | |
10f2d63a | 2153 | if test "$withval" = yes; then |
b12915c1 | 2154 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2155 | else |
b12915c1 | 2156 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2157 | fi |
a0b9e27f | 2158 | |
10f2d63a | 2159 | else |
a0b9e27f | 2160 | |
b12915c1 | 2161 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2162 | if test "x$LINE" != x ; then |
2163 | eval "DEFAULT_$LINE" | |
2164 | else | |
2165 | no_cache=1 | |
2166 | fi | |
2167 | ||
b12915c1 | 2168 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
a0b9e27f MB |
2169 | |
2170 | fi | |
10f2d63a VZ |
2171 | |
2172 | ||
b12915c1 | 2173 | eval "$ac_cv_use_opengl" |
10f2d63a | 2174 | if test "$no_cache" != 1; then |
b12915c1 | 2175 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2176 | fi |
2177 | ||
b12915c1 | 2178 | if test "$wxUSE_OPENGL" = yes; then |
a0b9e27f | 2179 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2180 | else |
a0b9e27f | 2181 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2182 | fi |
a0b9e27f | 2183 | |
10f2d63a | 2184 | |
b12915c1 VZ |
2185 | fi |
2186 | ||
5c6fa7d2 | 2187 | |
a0b9e27f | 2188 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
521196a2 | 2189 | echo "configure:2190: checking for --with-dmalloc" >&5 |
8284b0c5 | 2190 | no_cache=0 |
a0b9e27f | 2191 | # Check whether --with-dmalloc or --without-dmalloc was given. |
b12915c1 VZ |
2192 | if test "${with_dmalloc+set}" = set; then |
2193 | withval="$with_dmalloc" | |
a0b9e27f | 2194 | |
c7a2bf27 | 2195 | if test "$withval" = yes; then |
b12915c1 | 2196 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2197 | else |
b12915c1 | 2198 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2199 | fi |
a0b9e27f | 2200 | |
c7a2bf27 | 2201 | else |
a0b9e27f | 2202 | |
b12915c1 | 2203 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2204 | if test "x$LINE" != x ; then |
2205 | eval "DEFAULT_$LINE" | |
2206 | else | |
2207 | no_cache=1 | |
2208 | fi | |
2209 | ||
b12915c1 | 2210 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
a0b9e27f MB |
2211 | |
2212 | fi | |
c7a2bf27 RR |
2213 | |
2214 | ||
b12915c1 | 2215 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2216 | if test "$no_cache" != 1; then |
b12915c1 | 2217 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2218 | fi |
2219 | ||
b12915c1 | 2220 | if test "$wxUSE_DMALLOC" = yes; then |
a0b9e27f | 2221 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2222 | else |
a0b9e27f | 2223 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2224 | fi |
a0b9e27f | 2225 | |
c7a2bf27 | 2226 | |
a0b9e27f | 2227 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
521196a2 | 2228 | echo "configure:2229: checking for --with-regex" >&5 |
3e44f09d | 2229 | no_cache=0 |
a0b9e27f | 2230 | # Check whether --with-regex or --without-regex was given. |
3e44f09d VZ |
2231 | if test "${with_regex+set}" = set; then |
2232 | withval="$with_regex" | |
a0b9e27f | 2233 | |
3e44f09d VZ |
2234 | if test "$withval" = yes; then |
2235 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2236 | elif test "$withval" = no; then | |
2237 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2238 | elif test "$withval" = sys; then | |
2239 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2240 | elif test "$withval" = builtin; then |
2241 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2242 | else |
a0b9e27f | 2243 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2244 | fi |
a0b9e27f | 2245 | |
3e44f09d | 2246 | else |
a0b9e27f | 2247 | |
3e44f09d VZ |
2248 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2249 | if test "x$LINE" != x ; then | |
2250 | eval "DEFAULT_$LINE" | |
2251 | else | |
2252 | no_cache=1 | |
2253 | fi | |
2254 | ||
2255 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
a0b9e27f MB |
2256 | |
2257 | fi | |
3e44f09d VZ |
2258 | |
2259 | ||
2260 | eval "$ac_cv_use_regex" | |
2261 | if test "$no_cache" != 1; then | |
2262 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2263 | fi | |
2264 | ||
2265 | if test "$wxUSE_REGEX" = yes; then | |
a0b9e27f | 2266 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 2267 | elif test "$wxUSE_REGEX" = no; then |
a0b9e27f | 2268 | echo "$ac_t""no" 1>&6 |
3e44f09d | 2269 | elif test "$wxUSE_REGEX" = sys; then |
a0b9e27f | 2270 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2271 | elif test "$wxUSE_REGEX" = builtin; then |
a0b9e27f | 2272 | echo "$ac_t""builtin version" 1>&6 |
3e44f09d | 2273 | else |
a0b9e27f | 2274 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2275 | fi |
a0b9e27f | 2276 | |
3e44f09d | 2277 | |
a0b9e27f | 2278 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
521196a2 | 2279 | echo "configure:2280: checking for --with-zlib" >&5 |
10f2d63a | 2280 | no_cache=0 |
a0b9e27f | 2281 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2282 | if test "${with_zlib+set}" = set; then |
2283 | withval="$with_zlib" | |
a0b9e27f | 2284 | |
10f2d63a | 2285 | if test "$withval" = yes; then |
b12915c1 | 2286 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2287 | elif test "$withval" = no; then |
b12915c1 | 2288 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2289 | elif test "$withval" = sys; then |
2290 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2291 | elif test "$withval" = builtin; then |
2292 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2293 | else |
a0b9e27f | 2294 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2295 | fi |
a0b9e27f | 2296 | |
10f2d63a | 2297 | else |
a0b9e27f | 2298 | |
b12915c1 | 2299 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2300 | if test "x$LINE" != x ; then |
2301 | eval "DEFAULT_$LINE" | |
2302 | else | |
2303 | no_cache=1 | |
2304 | fi | |
2305 | ||
b12915c1 | 2306 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
a0b9e27f MB |
2307 | |
2308 | fi | |
10f2d63a VZ |
2309 | |
2310 | ||
b12915c1 | 2311 | eval "$ac_cv_use_zlib" |
10f2d63a | 2312 | if test "$no_cache" != 1; then |
b12915c1 | 2313 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2314 | fi |
2315 | ||
b12915c1 | 2316 | if test "$wxUSE_ZLIB" = yes; then |
a0b9e27f | 2317 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2318 | elif test "$wxUSE_ZLIB" = no; then |
a0b9e27f | 2319 | echo "$ac_t""no" 1>&6 |
422107f9 | 2320 | elif test "$wxUSE_ZLIB" = sys; then |
a0b9e27f | 2321 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2322 | elif test "$wxUSE_ZLIB" = builtin; then |
a0b9e27f | 2323 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2324 | else |
a0b9e27f | 2325 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2326 | fi |
a0b9e27f | 2327 | |
10f2d63a | 2328 | |
a0b9e27f | 2329 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
521196a2 | 2330 | echo "configure:2331: checking for --with-odbc" >&5 |
10f2d63a | 2331 | no_cache=0 |
a0b9e27f | 2332 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2333 | if test "${with_odbc+set}" = set; then |
2334 | withval="$with_odbc" | |
a0b9e27f | 2335 | |
10f2d63a VZ |
2336 | if test "$withval" = yes; then |
2337 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2338 | else | |
2339 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2340 | fi | |
a0b9e27f | 2341 | |
10f2d63a | 2342 | else |
a0b9e27f | 2343 | |
10f2d63a VZ |
2344 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2345 | if test "x$LINE" != x ; then | |
2346 | eval "DEFAULT_$LINE" | |
2347 | else | |
2348 | no_cache=1 | |
2349 | fi | |
2350 | ||
2351 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
a0b9e27f MB |
2352 | |
2353 | fi | |
10f2d63a VZ |
2354 | |
2355 | ||
2356 | eval "$ac_cv_use_odbc" | |
2357 | if test "$no_cache" != 1; then | |
2358 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2359 | fi | |
2360 | ||
2361 | if test "$wxUSE_ODBC" = yes; then | |
a0b9e27f | 2362 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2363 | else |
a0b9e27f | 2364 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2365 | fi |
a0b9e27f | 2366 | |
52127426 | 2367 | |
8284b0c5 MB |
2368 | |
2369 | ||
5005acfe VZ |
2370 | enablestring= |
2371 | echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6 | |
521196a2 | 2372 | echo "configure:2373: checking for --${enablestring:-enable}-shared" >&5 |
10f2d63a VZ |
2373 | no_cache=0 |
2374 | # Check whether --enable-shared or --disable-shared was given. | |
2375 | if test "${enable_shared+set}" = set; then | |
2376 | enableval="$enable_shared" | |
a0b9e27f | 2377 | |
10f2d63a VZ |
2378 | if test "$enableval" = yes; then |
2379 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2380 | else | |
2381 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2382 | fi | |
a0b9e27f | 2383 | |
10f2d63a | 2384 | else |
a0b9e27f | 2385 | |
10f2d63a VZ |
2386 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2387 | if test "x$LINE" != x ; then | |
2388 | eval "DEFAULT_$LINE" | |
2389 | else | |
2390 | no_cache=1 | |
2391 | fi | |
2392 | ||
2393 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
a0b9e27f MB |
2394 | |
2395 | fi | |
10f2d63a VZ |
2396 | |
2397 | ||
2398 | eval "$ac_cv_use_shared" | |
2399 | if test "$no_cache" != 1; then | |
2400 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2401 | fi | |
2402 | ||
2403 | if test "$wxUSE_SHARED" = yes; then | |
a0b9e27f | 2404 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2405 | else |
a0b9e27f | 2406 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2407 | fi |
a0b9e27f | 2408 | |
10f2d63a | 2409 | |
5005acfe VZ |
2410 | enablestring= |
2411 | echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6 | |
521196a2 | 2412 | echo "configure:2413: checking for --${enablestring:-enable}-soname" >&5 |
00cf1208 | 2413 | no_cache=0 |
3a922bb4 RL |
2414 | # Check whether --enable-soname or --disable-soname was given. |
2415 | if test "${enable_soname+set}" = set; then | |
2416 | enableval="$enable_soname" | |
a0b9e27f | 2417 | |
00cf1208 | 2418 | if test "$enableval" = yes; then |
3a922bb4 | 2419 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2420 | else |
3a922bb4 | 2421 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2422 | fi |
a0b9e27f | 2423 | |
00cf1208 | 2424 | else |
a0b9e27f | 2425 | |
3a922bb4 | 2426 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2427 | if test "x$LINE" != x ; then |
2428 | eval "DEFAULT_$LINE" | |
2429 | else | |
2430 | no_cache=1 | |
2431 | fi | |
2432 | ||
3a922bb4 | 2433 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
a0b9e27f MB |
2434 | |
2435 | fi | |
00cf1208 RR |
2436 | |
2437 | ||
3a922bb4 | 2438 | eval "$ac_cv_use_soname" |
00cf1208 | 2439 | if test "$no_cache" != 1; then |
3a922bb4 | 2440 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2441 | fi |
2442 | ||
3a922bb4 | 2443 | if test "$wxUSE_SONAME" = yes; then |
a0b9e27f | 2444 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2445 | else |
a0b9e27f | 2446 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2447 | fi |
a0b9e27f | 2448 | |
00cf1208 | 2449 | |
5005acfe VZ |
2450 | enablestring= |
2451 | echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6 | |
521196a2 | 2452 | echo "configure:2453: checking for --${enablestring:-enable}-optimise" >&5 |
10f2d63a VZ |
2453 | no_cache=0 |
2454 | # Check whether --enable-optimise or --disable-optimise was given. | |
2455 | if test "${enable_optimise+set}" = set; then | |
2456 | enableval="$enable_optimise" | |
a0b9e27f | 2457 | |
10f2d63a VZ |
2458 | if test "$enableval" = yes; then |
2459 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2460 | else | |
2461 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2462 | fi | |
a0b9e27f | 2463 | |
10f2d63a | 2464 | else |
a0b9e27f | 2465 | |
10f2d63a VZ |
2466 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2467 | if test "x$LINE" != x ; then | |
2468 | eval "DEFAULT_$LINE" | |
2469 | else | |
2470 | no_cache=1 | |
2471 | fi | |
2472 | ||
2473 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
a0b9e27f MB |
2474 | |
2475 | fi | |
10f2d63a VZ |
2476 | |
2477 | ||
2478 | eval "$ac_cv_use_optimise" | |
2479 | if test "$no_cache" != 1; then | |
2480 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2481 | fi | |
2482 | ||
2483 | if test "$wxUSE_OPTIMISE" = yes; then | |
a0b9e27f | 2484 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2485 | else |
a0b9e27f | 2486 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2487 | fi |
a0b9e27f | 2488 | |
10f2d63a | 2489 | |
5005acfe VZ |
2490 | enablestring= |
2491 | echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6 | |
521196a2 | 2492 | echo "configure:2493: checking for --${enablestring:-enable}-debug" >&5 |
10f2d63a VZ |
2493 | no_cache=0 |
2494 | # Check whether --enable-debug or --disable-debug was given. | |
2495 | if test "${enable_debug+set}" = set; then | |
2496 | enableval="$enable_debug" | |
a0b9e27f | 2497 | |
10f2d63a VZ |
2498 | if test "$enableval" = yes; then |
2499 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2500 | else | |
2501 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2502 | fi | |
a0b9e27f | 2503 | |
10f2d63a | 2504 | else |
a0b9e27f | 2505 | |
10f2d63a VZ |
2506 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2507 | if test "x$LINE" != x ; then | |
2508 | eval "DEFAULT_$LINE" | |
2509 | else | |
2510 | no_cache=1 | |
2511 | fi | |
2512 | ||
2513 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
a0b9e27f MB |
2514 | |
2515 | fi | |
10f2d63a VZ |
2516 | |
2517 | ||
2518 | eval "$ac_cv_use_debug" | |
2519 | if test "$no_cache" != 1; then | |
2520 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2521 | fi | |
2522 | ||
2523 | if test "$wxUSE_DEBUG" = yes; then | |
a0b9e27f | 2524 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2525 | else |
a0b9e27f | 2526 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2527 | fi |
a0b9e27f | 2528 | |
52127426 | 2529 | |
8284b0c5 | 2530 | |
5005acfe VZ |
2531 | enablestring= |
2532 | echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6 | |
521196a2 | 2533 | echo "configure:2534: checking for --${enablestring:-enable}-precomp" >&5 |
683dccda GD |
2534 | no_cache=0 |
2535 | # Check whether --enable-precomp or --disable-precomp was given. | |
2536 | if test "${enable_precomp+set}" = set; then | |
2537 | enableval="$enable_precomp" | |
a0b9e27f | 2538 | |
683dccda GD |
2539 | if test "$enableval" = yes; then |
2540 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2541 | else | |
2542 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2543 | fi | |
a0b9e27f | 2544 | |
683dccda | 2545 | else |
a0b9e27f | 2546 | |
683dccda GD |
2547 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` |
2548 | if test "x$LINE" != x ; then | |
2549 | eval "DEFAULT_$LINE" | |
2550 | else | |
2551 | no_cache=1 | |
2552 | fi | |
2553 | ||
2554 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
a0b9e27f MB |
2555 | |
2556 | fi | |
683dccda GD |
2557 | |
2558 | ||
2559 | eval "$ac_cv_use_precomp" | |
2560 | if test "$no_cache" != 1; then | |
2561 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2562 | fi | |
2563 | ||
2564 | if test "$wxUSE_PRECOMP" = yes; then | |
a0b9e27f | 2565 | echo "$ac_t""yes" 1>&6 |
683dccda | 2566 | else |
a0b9e27f | 2567 | echo "$ac_t""no" 1>&6 |
683dccda | 2568 | fi |
a0b9e27f | 2569 | |
683dccda | 2570 | |
10f2d63a VZ |
2571 | if test "$wxUSE_DEBUG" = "yes"; then |
2572 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2573 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2574 | elif test "$wxUSE_DEBUG" = "no"; then | |
2575 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2576 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2577 | fi | |
2578 | ||
8284b0c5 | 2579 | |
5005acfe VZ |
2580 | enablestring= |
2581 | echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6 | |
521196a2 | 2582 | echo "configure:2583: checking for --${enablestring:-enable}-debug_flag" >&5 |
10f2d63a VZ |
2583 | no_cache=0 |
2584 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2585 | if test "${enable_debug_flag+set}" = set; then | |
2586 | enableval="$enable_debug_flag" | |
a0b9e27f | 2587 | |
10f2d63a VZ |
2588 | if test "$enableval" = yes; then |
2589 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2590 | else | |
2591 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2592 | fi | |
a0b9e27f | 2593 | |
10f2d63a | 2594 | else |
a0b9e27f | 2595 | |
10f2d63a VZ |
2596 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2597 | if test "x$LINE" != x ; then | |
2598 | eval "DEFAULT_$LINE" | |
2599 | else | |
2600 | no_cache=1 | |
2601 | fi | |
2602 | ||
2603 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
a0b9e27f MB |
2604 | |
2605 | fi | |
10f2d63a VZ |
2606 | |
2607 | ||
2608 | eval "$ac_cv_use_debug_flag" | |
2609 | if test "$no_cache" != 1; then | |
2610 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2611 | fi | |
2612 | ||
2613 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
a0b9e27f | 2614 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2615 | else |
a0b9e27f | 2616 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2617 | fi |
a0b9e27f | 2618 | |
10f2d63a | 2619 | |
5005acfe VZ |
2620 | enablestring= |
2621 | echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6 | |
521196a2 | 2622 | echo "configure:2623: checking for --${enablestring:-enable}-debug_info" >&5 |
10f2d63a VZ |
2623 | no_cache=0 |
2624 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2625 | if test "${enable_debug_info+set}" = set; then | |
2626 | enableval="$enable_debug_info" | |
a0b9e27f | 2627 | |
10f2d63a VZ |
2628 | if test "$enableval" = yes; then |
2629 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2630 | else | |
2631 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2632 | fi | |
a0b9e27f | 2633 | |
10f2d63a | 2634 | else |
a0b9e27f | 2635 | |
10f2d63a VZ |
2636 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2637 | if test "x$LINE" != x ; then | |
2638 | eval "DEFAULT_$LINE" | |
2639 | else | |
2640 | no_cache=1 | |
2641 | fi | |
2642 | ||
2643 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
a0b9e27f MB |
2644 | |
2645 | fi | |
10f2d63a VZ |
2646 | |
2647 | ||
2648 | eval "$ac_cv_use_debug_info" | |
2649 | if test "$no_cache" != 1; then | |
2650 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2651 | fi | |
2652 | ||
2653 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
a0b9e27f | 2654 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2655 | else |
a0b9e27f | 2656 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2657 | fi |
a0b9e27f | 2658 | |
10f2d63a | 2659 | |
5005acfe VZ |
2660 | enablestring= |
2661 | echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6 | |
521196a2 | 2662 | echo "configure:2663: checking for --${enablestring:-enable}-debug_gdb" >&5 |
10f2d63a VZ |
2663 | no_cache=0 |
2664 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2665 | if test "${enable_debug_gdb+set}" = set; then | |
2666 | enableval="$enable_debug_gdb" | |
a0b9e27f | 2667 | |
10f2d63a VZ |
2668 | if test "$enableval" = yes; then |
2669 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2670 | else | |
2671 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2672 | fi | |
a0b9e27f | 2673 | |
10f2d63a | 2674 | else |
a0b9e27f | 2675 | |
10f2d63a VZ |
2676 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2677 | if test "x$LINE" != x ; then | |
2678 | eval "DEFAULT_$LINE" | |
2679 | else | |
2680 | no_cache=1 | |
2681 | fi | |
2682 | ||
2683 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
a0b9e27f MB |
2684 | |
2685 | fi | |
10f2d63a VZ |
2686 | |
2687 | ||
2688 | eval "$ac_cv_use_debug_gdb" | |
2689 | if test "$no_cache" != 1; then | |
2690 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2691 | fi | |
2692 | ||
2693 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
a0b9e27f | 2694 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2695 | else |
a0b9e27f | 2696 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2697 | fi |
a0b9e27f | 2698 | |
10f2d63a | 2699 | |
5005acfe VZ |
2700 | enablestring= |
2701 | echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6 | |
521196a2 | 2702 | echo "configure:2703: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
10f2d63a VZ |
2703 | no_cache=0 |
2704 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2705 | if test "${enable_debug_cntxt+set}" = set; then | |
2706 | enableval="$enable_debug_cntxt" | |
a0b9e27f | 2707 | |
10f2d63a VZ |
2708 | if test "$enableval" = yes; then |
2709 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2710 | else | |
2711 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2712 | fi | |
a0b9e27f | 2713 | |
10f2d63a | 2714 | else |
a0b9e27f | 2715 | |
10f2d63a VZ |
2716 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2717 | if test "x$LINE" != x ; then | |
2718 | eval "DEFAULT_$LINE" | |
2719 | else | |
2720 | no_cache=1 | |
2721 | fi | |
2722 | ||
2723 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
a0b9e27f MB |
2724 | |
2725 | fi | |
10f2d63a VZ |
2726 | |
2727 | ||
2728 | eval "$ac_cv_use_debug_cntxt" | |
2729 | if test "$no_cache" != 1; then | |
2730 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2731 | fi | |
2732 | ||
2733 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
a0b9e27f | 2734 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2735 | else |
a0b9e27f | 2736 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2737 | fi |
a0b9e27f | 2738 | |
10f2d63a | 2739 | |
5005acfe VZ |
2740 | enablestring= |
2741 | echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6 | |
521196a2 | 2742 | echo "configure:2743: checking for --${enablestring:-enable}-mem_tracing" >&5 |
10f2d63a VZ |
2743 | no_cache=0 |
2744 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2745 | if test "${enable_mem_tracing+set}" = set; then | |
2746 | enableval="$enable_mem_tracing" | |
a0b9e27f | 2747 | |
10f2d63a VZ |
2748 | if test "$enableval" = yes; then |
2749 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2750 | else | |
2751 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2752 | fi | |
a0b9e27f | 2753 | |
10f2d63a | 2754 | else |
a0b9e27f | 2755 | |
10f2d63a VZ |
2756 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2757 | if test "x$LINE" != x ; then | |
2758 | eval "DEFAULT_$LINE" | |
2759 | else | |
2760 | no_cache=1 | |
2761 | fi | |
2762 | ||
2763 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
a0b9e27f MB |
2764 | |
2765 | fi | |
10f2d63a VZ |
2766 | |
2767 | ||
2768 | eval "$ac_cv_use_mem_tracing" | |
2769 | if test "$no_cache" != 1; then | |
2770 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2771 | fi | |
2772 | ||
2773 | if test "$wxUSE_MEM_TRACING" = yes; then | |
a0b9e27f | 2774 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2775 | else |
a0b9e27f | 2776 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2777 | fi |
a0b9e27f | 2778 | |
10f2d63a | 2779 | |
5005acfe VZ |
2780 | enablestring= |
2781 | echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6 | |
521196a2 | 2782 | echo "configure:2783: checking for --${enablestring:-enable}-profile" >&5 |
10f2d63a VZ |
2783 | no_cache=0 |
2784 | # Check whether --enable-profile or --disable-profile was given. | |
2785 | if test "${enable_profile+set}" = set; then | |
2786 | enableval="$enable_profile" | |
a0b9e27f | 2787 | |
10f2d63a VZ |
2788 | if test "$enableval" = yes; then |
2789 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2790 | else | |
2791 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2792 | fi | |
a0b9e27f | 2793 | |
10f2d63a | 2794 | else |
a0b9e27f | 2795 | |
10f2d63a VZ |
2796 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2797 | if test "x$LINE" != x ; then | |
2798 | eval "DEFAULT_$LINE" | |
2799 | else | |
2800 | no_cache=1 | |
2801 | fi | |
2802 | ||
2803 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
a0b9e27f MB |
2804 | |
2805 | fi | |
10f2d63a VZ |
2806 | |
2807 | ||
2808 | eval "$ac_cv_use_profile" | |
2809 | if test "$no_cache" != 1; then | |
2810 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2811 | fi | |
2812 | ||
2813 | if test "$wxUSE_PROFILE" = yes; then | |
a0b9e27f | 2814 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2815 | else |
a0b9e27f | 2816 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2817 | fi |
a0b9e27f | 2818 | |
10f2d63a | 2819 | |
5005acfe VZ |
2820 | enablestring= |
2821 | echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6 | |
521196a2 | 2822 | echo "configure:2823: checking for --${enablestring:-enable}-no_rtti" >&5 |
10f2d63a VZ |
2823 | no_cache=0 |
2824 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2825 | if test "${enable_no_rtti+set}" = set; then | |
2826 | enableval="$enable_no_rtti" | |
a0b9e27f | 2827 | |
10f2d63a VZ |
2828 | if test "$enableval" = yes; then |
2829 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2830 | else | |
2831 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2832 | fi | |
a0b9e27f | 2833 | |
10f2d63a | 2834 | else |
a0b9e27f | 2835 | |
10f2d63a VZ |
2836 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2837 | if test "x$LINE" != x ; then | |
2838 | eval "DEFAULT_$LINE" | |
2839 | else | |
2840 | no_cache=1 | |
2841 | fi | |
2842 | ||
2843 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
a0b9e27f MB |
2844 | |
2845 | fi | |
10f2d63a VZ |
2846 | |
2847 | ||
2848 | eval "$ac_cv_use_no_rtti" | |
2849 | if test "$no_cache" != 1; then | |
2850 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2851 | fi | |
2852 | ||
2853 | if test "$wxUSE_NO_RTTI" = yes; then | |
a0b9e27f | 2854 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2855 | else |
a0b9e27f | 2856 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2857 | fi |
a0b9e27f | 2858 | |
10f2d63a | 2859 | |
5005acfe VZ |
2860 | enablestring= |
2861 | echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6 | |
521196a2 | 2862 | echo "configure:2863: checking for --${enablestring:-enable}-no_exceptions" >&5 |
10f2d63a VZ |
2863 | no_cache=0 |
2864 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2865 | if test "${enable_no_exceptions+set}" = set; then | |
2866 | enableval="$enable_no_exceptions" | |
a0b9e27f | 2867 | |
10f2d63a VZ |
2868 | if test "$enableval" = yes; then |
2869 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2870 | else | |
2871 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2872 | fi | |
a0b9e27f | 2873 | |
10f2d63a | 2874 | else |
a0b9e27f | 2875 | |
10f2d63a VZ |
2876 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2877 | if test "x$LINE" != x ; then | |
2878 | eval "DEFAULT_$LINE" | |
2879 | else | |
2880 | no_cache=1 | |
2881 | fi | |
2882 | ||
2883 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
a0b9e27f MB |
2884 | |
2885 | fi | |
10f2d63a VZ |
2886 | |
2887 | ||
2888 | eval "$ac_cv_use_no_exceptions" | |
2889 | if test "$no_cache" != 1; then | |
2890 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2891 | fi | |
2892 | ||
2893 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
a0b9e27f | 2894 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2895 | else |
a0b9e27f | 2896 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2897 | fi |
a0b9e27f | 2898 | |
10f2d63a | 2899 | |
5005acfe VZ |
2900 | enablestring= |
2901 | echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6 | |
521196a2 | 2902 | echo "configure:2903: checking for --${enablestring:-enable}-permissive" >&5 |
10f2d63a VZ |
2903 | no_cache=0 |
2904 | # Check whether --enable-permissive or --disable-permissive was given. | |
2905 | if test "${enable_permissive+set}" = set; then | |
2906 | enableval="$enable_permissive" | |
a0b9e27f | 2907 | |
10f2d63a VZ |
2908 | if test "$enableval" = yes; then |
2909 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2910 | else | |
2911 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2912 | fi | |
a0b9e27f | 2913 | |
10f2d63a | 2914 | else |
a0b9e27f | 2915 | |
10f2d63a VZ |
2916 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2917 | if test "x$LINE" != x ; then | |
2918 | eval "DEFAULT_$LINE" | |
2919 | else | |
2920 | no_cache=1 | |
2921 | fi | |
2922 | ||
2923 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
a0b9e27f MB |
2924 | |
2925 | fi | |
10f2d63a VZ |
2926 | |
2927 | ||
2928 | eval "$ac_cv_use_permissive" | |
2929 | if test "$no_cache" != 1; then | |
2930 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2931 | fi | |
2932 | ||
2933 | if test "$wxUSE_PERMISSIVE" = yes; then | |
a0b9e27f | 2934 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2935 | else |
a0b9e27f | 2936 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2937 | fi |
a0b9e27f | 2938 | |
10f2d63a | 2939 | |
5005acfe VZ |
2940 | enablestring= |
2941 | echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6 | |
521196a2 | 2942 | echo "configure:2943: checking for --${enablestring:-enable}-no_deps" >&5 |
10f2d63a VZ |
2943 | no_cache=0 |
2944 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2945 | if test "${enable_no_deps+set}" = set; then | |
2946 | enableval="$enable_no_deps" | |
a0b9e27f | 2947 | |
10f2d63a VZ |
2948 | if test "$enableval" = yes; then |
2949 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2950 | else | |
2951 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2952 | fi | |
a0b9e27f | 2953 | |
10f2d63a | 2954 | else |
a0b9e27f | 2955 | |
10f2d63a VZ |
2956 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2957 | if test "x$LINE" != x ; then | |
2958 | eval "DEFAULT_$LINE" | |
2959 | else | |
2960 | no_cache=1 | |
2961 | fi | |
2962 | ||
2963 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
a0b9e27f MB |
2964 | |
2965 | fi | |
10f2d63a VZ |
2966 | |
2967 | ||
2968 | eval "$ac_cv_use_no_deps" | |
2969 | if test "$no_cache" != 1; then | |
2970 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2971 | fi | |
2972 | ||
2973 | if test "$wxUSE_NO_DEPS" = yes; then | |
a0b9e27f | 2974 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2975 | else |
a0b9e27f | 2976 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2977 | fi |
a0b9e27f | 2978 | |
52127426 | 2979 | |
8284b0c5 | 2980 | |
5005acfe VZ |
2981 | enablestring= |
2982 | echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6 | |
521196a2 | 2983 | echo "configure:2984: checking for --${enablestring:-enable}-compat20" >&5 |
54276ccf VZ |
2984 | no_cache=0 |
2985 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2986 | if test "${enable_compat20+set}" = set; then | |
2987 | enableval="$enable_compat20" | |
a0b9e27f | 2988 | |
54276ccf VZ |
2989 | if test "$enableval" = yes; then |
2990 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2991 | else | |
2992 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2993 | fi | |
a0b9e27f | 2994 | |
54276ccf | 2995 | else |
a0b9e27f | 2996 | |
54276ccf VZ |
2997 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
2998 | if test "x$LINE" != x ; then | |
2999 | eval "DEFAULT_$LINE" | |
3000 | else | |
3001 | no_cache=1 | |
3002 | fi | |
3003 | ||
3004 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
a0b9e27f MB |
3005 | |
3006 | fi | |
54276ccf VZ |
3007 | |
3008 | ||
3009 | eval "$ac_cv_use_compat20" | |
3010 | if test "$no_cache" != 1; then | |
3011 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3012 | fi | |
3013 | ||
3014 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
a0b9e27f | 3015 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3016 | else |
a0b9e27f | 3017 | echo "$ac_t""no" 1>&6 |
54276ccf | 3018 | fi |
a0b9e27f | 3019 | |
54276ccf | 3020 | |
65d8ef1e | 3021 | enablestring= |
5005acfe | 3022 | echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6 |
521196a2 | 3023 | echo "configure:3024: checking for --${enablestring:-enable}-compat22" >&5 |
54276ccf VZ |
3024 | no_cache=0 |
3025 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3026 | if test "${enable_compat22+set}" = set; then | |
3027 | enableval="$enable_compat22" | |
a0b9e27f | 3028 | |
54276ccf VZ |
3029 | if test "$enableval" = yes; then |
3030 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3031 | else | |
3032 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3033 | fi | |
a0b9e27f | 3034 | |
54276ccf | 3035 | else |
a0b9e27f | 3036 | |
54276ccf VZ |
3037 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3038 | if test "x$LINE" != x ; then | |
3039 | eval "DEFAULT_$LINE" | |
3040 | else | |
3041 | no_cache=1 | |
3042 | fi | |
3043 | ||
3044 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
a0b9e27f MB |
3045 | |
3046 | fi | |
54276ccf VZ |
3047 | |
3048 | ||
3049 | eval "$ac_cv_use_compat22" | |
3050 | if test "$no_cache" != 1; then | |
3051 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3052 | fi | |
3053 | ||
3054 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
a0b9e27f | 3055 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3056 | else |
a0b9e27f | 3057 | echo "$ac_t""no" 1>&6 |
54276ccf | 3058 | fi |
a0b9e27f | 3059 | |
54276ccf | 3060 | |
65d8ef1e VS |
3061 | enablestring=disable |
3062 | echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6 | |
521196a2 | 3063 | echo "configure:3064: checking for --${enablestring:-enable}-compat24" >&5 |
65d8ef1e VS |
3064 | no_cache=0 |
3065 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
3066 | if test "${enable_compat24+set}" = set; then | |
3067 | enableval="$enable_compat24" | |
3068 | ||
3069 | if test "$enableval" = yes; then | |
3070 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
3071 | else | |
3072 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
3073 | fi | |
3074 | ||
3075 | else | |
3076 | ||
3077 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
3078 | if test "x$LINE" != x ; then | |
3079 | eval "DEFAULT_$LINE" | |
3080 | else | |
3081 | no_cache=1 | |
3082 | fi | |
3083 | ||
3084 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
3085 | ||
3086 | fi | |
3087 | ||
3088 | ||
3089 | eval "$ac_cv_use_compat24" | |
3090 | if test "$no_cache" != 1; then | |
3091 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
3092 | fi | |
3093 | ||
3094 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
3095 | echo "$ac_t""yes" 1>&6 | |
3096 | else | |
3097 | echo "$ac_t""no" 1>&6 | |
3098 | fi | |
3099 | ||
3100 | ||
3bd8fb5f RD |
3101 | # Check whether --enable-rpath or --disable-rpath was given. |
3102 | if test "${enable_rpath+set}" = set; then | |
3103 | enableval="$enable_rpath" | |
3104 | wxRPATH_DIR="$enableval" | |
a0b9e27f MB |
3105 | fi |
3106 | ||
3bd8fb5f RD |
3107 | |
3108 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3109 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3110 | fi | |
3111 | ||
8284b0c5 MB |
3112 | |
3113 | ||
3114 | ||
5005acfe VZ |
3115 | enablestring= |
3116 | echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6 | |
521196a2 | 3117 | echo "configure:3118: checking for --${enablestring:-enable}-intl" >&5 |
10f2d63a VZ |
3118 | no_cache=0 |
3119 | # Check whether --enable-intl or --disable-intl was given. | |
3120 | if test "${enable_intl+set}" = set; then | |
3121 | enableval="$enable_intl" | |
a0b9e27f | 3122 | |
10f2d63a VZ |
3123 | if test "$enableval" = yes; then |
3124 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3125 | else | |
3126 | ac_cv_use_intl='wxUSE_INTL=no' | |
3127 | fi | |
a0b9e27f | 3128 | |
10f2d63a | 3129 | else |
a0b9e27f | 3130 | |
10f2d63a VZ |
3131 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3132 | if test "x$LINE" != x ; then | |
3133 | eval "DEFAULT_$LINE" | |
3134 | else | |
3135 | no_cache=1 | |
3136 | fi | |
3137 | ||
3138 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
a0b9e27f MB |
3139 | |
3140 | fi | |
10f2d63a VZ |
3141 | |
3142 | ||
3143 | eval "$ac_cv_use_intl" | |
3144 | if test "$no_cache" != 1; then | |
3145 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3146 | fi | |
3147 | ||
3148 | if test "$wxUSE_INTL" = yes; then | |
a0b9e27f | 3149 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3150 | else |
a0b9e27f | 3151 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3152 | fi |
a0b9e27f | 3153 | |
10f2d63a | 3154 | |
5005acfe VZ |
3155 | enablestring= |
3156 | echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6 | |
521196a2 | 3157 | echo "configure:3158: checking for --${enablestring:-enable}-config" >&5 |
10f2d63a VZ |
3158 | no_cache=0 |
3159 | # Check whether --enable-config or --disable-config was given. | |
3160 | if test "${enable_config+set}" = set; then | |
3161 | enableval="$enable_config" | |
a0b9e27f | 3162 | |
10f2d63a VZ |
3163 | if test "$enableval" = yes; then |
3164 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3165 | else | |
3166 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3167 | fi | |
a0b9e27f | 3168 | |
10f2d63a | 3169 | else |
a0b9e27f | 3170 | |
10f2d63a VZ |
3171 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3172 | if test "x$LINE" != x ; then | |
3173 | eval "DEFAULT_$LINE" | |
3174 | else | |
3175 | no_cache=1 | |
3176 | fi | |
3177 | ||
3178 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
a0b9e27f MB |
3179 | |
3180 | fi | |
10f2d63a VZ |
3181 | |
3182 | ||
3183 | eval "$ac_cv_use_config" | |
3184 | if test "$no_cache" != 1; then | |
3185 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3186 | fi | |
3187 | ||
3188 | if test "$wxUSE_CONFIG" = yes; then | |
a0b9e27f | 3189 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3190 | else |
a0b9e27f | 3191 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3192 | fi |
a0b9e27f | 3193 | |
52127426 | 3194 | |
8284b0c5 | 3195 | |
5005acfe VZ |
3196 | enablestring= |
3197 | echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6 | |
521196a2 | 3198 | echo "configure:3199: checking for --${enablestring:-enable}-protocols" >&5 |
a1622950 VZ |
3199 | no_cache=0 |
3200 | # Check whether --enable-protocols or --disable-protocols was given. | |
3201 | if test "${enable_protocols+set}" = set; then | |
3202 | enableval="$enable_protocols" | |
a0b9e27f | 3203 | |
a1622950 VZ |
3204 | if test "$enableval" = yes; then |
3205 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3206 | else | |
3207 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3208 | fi | |
a0b9e27f | 3209 | |
a1622950 | 3210 | else |
a0b9e27f | 3211 | |
a1622950 VZ |
3212 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3213 | if test "x$LINE" != x ; then | |
3214 | eval "DEFAULT_$LINE" | |
3215 | else | |
3216 | no_cache=1 | |
3217 | fi | |
3218 | ||
3219 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
3220 | |
3221 | fi | |
a1622950 VZ |
3222 | |
3223 | ||
3224 | eval "$ac_cv_use_protocols" | |
3225 | if test "$no_cache" != 1; then | |
3226 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3227 | fi | |
3228 | ||
3229 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 3230 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3231 | else |
a0b9e27f | 3232 | echo "$ac_t""no" 1>&6 |
a1622950 | 3233 | fi |
a0b9e27f | 3234 | |
a1622950 | 3235 | |
5005acfe VZ |
3236 | enablestring= |
3237 | echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6 | |
521196a2 | 3238 | echo "configure:3239: checking for --${enablestring:-enable}-ftp" >&5 |
a1622950 VZ |
3239 | no_cache=0 |
3240 | # Check whether --enable-ftp or --disable-ftp was given. | |
3241 | if test "${enable_ftp+set}" = set; then | |
3242 | enableval="$enable_ftp" | |
a0b9e27f | 3243 | |
a1622950 VZ |
3244 | if test "$enableval" = yes; then |
3245 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3246 | else | |
3247 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3248 | fi | |
a0b9e27f | 3249 | |
a1622950 | 3250 | else |
a0b9e27f | 3251 | |
a1622950 VZ |
3252 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3253 | if test "x$LINE" != x ; then | |
3254 | eval "DEFAULT_$LINE" | |
3255 | else | |
3256 | no_cache=1 | |
3257 | fi | |
3258 | ||
3259 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
3260 | |
3261 | fi | |
a1622950 VZ |
3262 | |
3263 | ||
3264 | eval "$ac_cv_use_ftp" | |
3265 | if test "$no_cache" != 1; then | |
3266 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3267 | fi | |
3268 | ||
3269 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 3270 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3271 | else |
a0b9e27f | 3272 | echo "$ac_t""no" 1>&6 |
a1622950 | 3273 | fi |
a0b9e27f | 3274 | |
a1622950 | 3275 | |
5005acfe VZ |
3276 | enablestring= |
3277 | echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6 | |
521196a2 | 3278 | echo "configure:3279: checking for --${enablestring:-enable}-http" >&5 |
a1622950 VZ |
3279 | no_cache=0 |
3280 | # Check whether --enable-http or --disable-http was given. | |
3281 | if test "${enable_http+set}" = set; then | |
3282 | enableval="$enable_http" | |
a0b9e27f | 3283 | |
a1622950 VZ |
3284 | if test "$enableval" = yes; then |
3285 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3286 | else | |
3287 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3288 | fi | |
a0b9e27f | 3289 | |
a1622950 | 3290 | else |
a0b9e27f | 3291 | |
a1622950 VZ |
3292 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3293 | if test "x$LINE" != x ; then | |
3294 | eval "DEFAULT_$LINE" | |
3295 | else | |
3296 | no_cache=1 | |
3297 | fi | |
3298 | ||
3299 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
3300 | |
3301 | fi | |
a1622950 VZ |
3302 | |
3303 | ||
3304 | eval "$ac_cv_use_http" | |
3305 | if test "$no_cache" != 1; then | |
3306 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3307 | fi | |
3308 | ||
3309 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 3310 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3311 | else |
a0b9e27f | 3312 | echo "$ac_t""no" 1>&6 |
a1622950 | 3313 | fi |
a0b9e27f | 3314 | |
a1622950 | 3315 | |
5005acfe VZ |
3316 | enablestring= |
3317 | echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6 | |
521196a2 | 3318 | echo "configure:3319: checking for --${enablestring:-enable}-fileproto" >&5 |
a1622950 VZ |
3319 | no_cache=0 |
3320 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3321 | if test "${enable_fileproto+set}" = set; then | |
3322 | enableval="$enable_fileproto" | |
a0b9e27f | 3323 | |
a1622950 VZ |
3324 | if test "$enableval" = yes; then |
3325 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3326 | else | |
3327 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3328 | fi | |
a0b9e27f | 3329 | |
a1622950 | 3330 | else |
a0b9e27f | 3331 | |
a1622950 VZ |
3332 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
3333 | if test "x$LINE" != x ; then | |
3334 | eval "DEFAULT_$LINE" | |
3335 | else | |
3336 | no_cache=1 | |
3337 | fi | |
3338 | ||
3339 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
3340 | |
3341 | fi | |
a1622950 VZ |
3342 | |
3343 | ||
3344 | eval "$ac_cv_use_fileproto" | |
3345 | if test "$no_cache" != 1; then | |
3346 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3347 | fi | |
3348 | ||
3349 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 3350 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3351 | else |
a0b9e27f | 3352 | echo "$ac_t""no" 1>&6 |
a1622950 | 3353 | fi |
a0b9e27f | 3354 | |
a1622950 | 3355 | |
5005acfe VZ |
3356 | enablestring= |
3357 | echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6 | |
521196a2 | 3358 | echo "configure:3359: checking for --${enablestring:-enable}-sockets" >&5 |
10f2d63a VZ |
3359 | no_cache=0 |
3360 | # Check whether --enable-sockets or --disable-sockets was given. | |
3361 | if test "${enable_sockets+set}" = set; then | |
3362 | enableval="$enable_sockets" | |
a0b9e27f | 3363 | |
10f2d63a VZ |
3364 | if test "$enableval" = yes; then |
3365 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3366 | else | |
3367 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3368 | fi | |
a0b9e27f | 3369 | |
10f2d63a | 3370 | else |
a0b9e27f | 3371 | |
10f2d63a VZ |
3372 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3373 | if test "x$LINE" != x ; then | |
3374 | eval "DEFAULT_$LINE" | |
3375 | else | |
3376 | no_cache=1 | |
3377 | fi | |
3378 | ||
3379 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
a0b9e27f MB |
3380 | |
3381 | fi | |
10f2d63a VZ |
3382 | |
3383 | ||
3384 | eval "$ac_cv_use_sockets" | |
3385 | if test "$no_cache" != 1; then | |
3386 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3387 | fi | |
3388 | ||
3389 | if test "$wxUSE_SOCKETS" = yes; then | |
a0b9e27f | 3390 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3391 | else |
a0b9e27f | 3392 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3393 | fi |
a0b9e27f | 3394 | |
8284b0c5 | 3395 | |
5005acfe VZ |
3396 | enablestring= |
3397 | echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6 | |
521196a2 | 3398 | echo "configure:3399: checking for --${enablestring:-enable}-ole" >&5 |
3bce6687 JS |
3399 | no_cache=0 |
3400 | # Check whether --enable-ole or --disable-ole was given. | |
3401 | if test "${enable_ole+set}" = set; then | |
3402 | enableval="$enable_ole" | |
3403 | ||
3404 | if test "$enableval" = yes; then | |
3405 | ac_cv_use_ole='wxUSE_OLE=yes' | |
3406 | else | |
3407 | ac_cv_use_ole='wxUSE_OLE=no' | |
3408 | fi | |
3409 | ||
3410 | else | |
3411 | ||
3412 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
3413 | if test "x$LINE" != x ; then | |
3414 | eval "DEFAULT_$LINE" | |
3415 | else | |
3416 | no_cache=1 | |
3417 | fi | |
3418 | ||
3419 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3420 | ||
3421 | fi | |
3422 | ||
3423 | ||
3424 | eval "$ac_cv_use_ole" | |
3425 | if test "$no_cache" != 1; then | |
3426 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
3427 | fi | |
3428 | ||
3429 | if test "$wxUSE_OLE" = yes; then | |
3430 | echo "$ac_t""yes" 1>&6 | |
3431 | else | |
3432 | echo "$ac_t""no" 1>&6 | |
3433 | fi | |
3434 | ||
3435 | ||
5005acfe VZ |
3436 | enablestring= |
3437 | echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6 | |
521196a2 | 3438 | echo "configure:3439: checking for --${enablestring:-enable}-dataobj" >&5 |
3bce6687 JS |
3439 | no_cache=0 |
3440 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
3441 | if test "${enable_dataobj+set}" = set; then | |
3442 | enableval="$enable_dataobj" | |
3443 | ||
3444 | if test "$enableval" = yes; then | |
3445 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
3446 | else | |
3447 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
3448 | fi | |
3449 | ||
3450 | else | |
3451 | ||
3452 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
3453 | if test "x$LINE" != x ; then | |
3454 | eval "DEFAULT_$LINE" | |
3455 | else | |
3456 | no_cache=1 | |
3457 | fi | |
3458 | ||
3459 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3460 | ||
3461 | fi | |
3462 | ||
3463 | ||
3464 | eval "$ac_cv_use_dataobj" | |
3465 | if test "$no_cache" != 1; then | |
3466 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
3467 | fi | |
3468 | ||
3469 | if test "$wxUSE_DATAOBJ" = yes; then | |
3470 | echo "$ac_t""yes" 1>&6 | |
3471 | else | |
3472 | echo "$ac_t""no" 1>&6 | |
3473 | fi | |
3474 | ||
3475 | ||
52127426 | 3476 | |
5005acfe VZ |
3477 | enablestring= |
3478 | echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6 | |
521196a2 | 3479 | echo "configure:3480: checking for --${enablestring:-enable}-ipc" >&5 |
10f2d63a | 3480 | no_cache=0 |
eb4efbdc VZ |
3481 | # Check whether --enable-ipc or --disable-ipc was given. |
3482 | if test "${enable_ipc+set}" = set; then | |
3483 | enableval="$enable_ipc" | |
a0b9e27f | 3484 | |
10f2d63a | 3485 | if test "$enableval" = yes; then |
eb4efbdc | 3486 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3487 | else |
eb4efbdc | 3488 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3489 | fi |
a0b9e27f | 3490 | |
10f2d63a | 3491 | else |
a0b9e27f | 3492 | |
eb4efbdc | 3493 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3494 | if test "x$LINE" != x ; then |
3495 | eval "DEFAULT_$LINE" | |
3496 | else | |
3497 | no_cache=1 | |
3498 | fi | |
3499 | ||
eb4efbdc | 3500 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
a0b9e27f MB |
3501 | |
3502 | fi | |
10f2d63a VZ |
3503 | |
3504 | ||
eb4efbdc | 3505 | eval "$ac_cv_use_ipc" |
10f2d63a | 3506 | if test "$no_cache" != 1; then |
eb4efbdc | 3507 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3508 | fi |
3509 | ||
eb4efbdc | 3510 | if test "$wxUSE_IPC" = yes; then |
a0b9e27f | 3511 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3512 | else |
a0b9e27f | 3513 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3514 | fi |
a0b9e27f | 3515 | |
52127426 | 3516 | |
8284b0c5 | 3517 | |
5005acfe VZ |
3518 | enablestring= |
3519 | echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6 | |
521196a2 | 3520 | echo "configure:3521: checking for --${enablestring:-enable}-cmdline" >&5 |
1e6feb95 VZ |
3521 | no_cache=0 |
3522 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3523 | if test "${enable_cmdline+set}" = set; then | |
3524 | enableval="$enable_cmdline" | |
a0b9e27f | 3525 | |
1e6feb95 VZ |
3526 | if test "$enableval" = yes; then |
3527 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3528 | else | |
3529 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3530 | fi | |
a0b9e27f | 3531 | |
1e6feb95 | 3532 | else |
a0b9e27f | 3533 | |
1e6feb95 VZ |
3534 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
3535 | if test "x$LINE" != x ; then | |
3536 | eval "DEFAULT_$LINE" | |
3537 | else | |
3538 | no_cache=1 | |
3539 | fi | |
3540 | ||
3541 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
a0b9e27f MB |
3542 | |
3543 | fi | |
1e6feb95 VZ |
3544 | |
3545 | ||
3546 | eval "$ac_cv_use_cmdline" | |
3547 | if test "$no_cache" != 1; then | |
3548 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3549 | fi | |
3550 | ||
3551 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
a0b9e27f | 3552 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3553 | else |
a0b9e27f | 3554 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3555 | fi |
a0b9e27f | 3556 | |
1e6feb95 | 3557 | |
5005acfe VZ |
3558 | enablestring= |
3559 | echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6 | |
521196a2 | 3560 | echo "configure:3561: checking for --${enablestring:-enable}-datetime" >&5 |
1e6feb95 VZ |
3561 | no_cache=0 |
3562 | # Check whether --enable-datetime or --disable-datetime was given. | |
3563 | if test "${enable_datetime+set}" = set; then | |
3564 | enableval="$enable_datetime" | |
a0b9e27f | 3565 | |
1e6feb95 VZ |
3566 | if test "$enableval" = yes; then |
3567 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3568 | else | |
3569 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3570 | fi | |
a0b9e27f | 3571 | |
1e6feb95 | 3572 | else |
a0b9e27f | 3573 | |
1e6feb95 VZ |
3574 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
3575 | if test "x$LINE" != x ; then | |
3576 | eval "DEFAULT_$LINE" | |
3577 | else | |
3578 | no_cache=1 | |
3579 | fi | |
3580 | ||
3581 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
a0b9e27f MB |
3582 | |
3583 | fi | |
1e6feb95 VZ |
3584 | |
3585 | ||
3586 | eval "$ac_cv_use_datetime" | |
3587 | if test "$no_cache" != 1; then | |
3588 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3589 | fi | |
3590 | ||
3591 | if test "$wxUSE_DATETIME" = yes; then | |
a0b9e27f | 3592 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3593 | else |
a0b9e27f | 3594 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3595 | fi |
a0b9e27f | 3596 | |
1e6feb95 | 3597 | |
5005acfe VZ |
3598 | enablestring= |
3599 | echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6 | |
521196a2 | 3600 | echo "configure:3601: checking for --${enablestring:-enable}-timedate" >&5 |
1e6feb95 VZ |
3601 | no_cache=0 |
3602 | # Check whether --enable-timedate or --disable-timedate was given. | |
3603 | if test "${enable_timedate+set}" = set; then | |
3604 | enableval="$enable_timedate" | |
a0b9e27f | 3605 | |
1e6feb95 VZ |
3606 | if test "$enableval" = yes; then |
3607 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3608 | else | |
3609 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3610 | fi | |
a0b9e27f | 3611 | |
1e6feb95 | 3612 | else |
a0b9e27f | 3613 | |
1e6feb95 VZ |
3614 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` |
3615 | if test "x$LINE" != x ; then | |
3616 | eval "DEFAULT_$LINE" | |
3617 | else | |
3618 | no_cache=1 | |
3619 | fi | |
3620 | ||
3621 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
a0b9e27f MB |
3622 | |
3623 | fi | |
1e6feb95 VZ |
3624 | |
3625 | ||
3626 | eval "$ac_cv_use_timedate" | |
3627 | if test "$no_cache" != 1; then | |
3628 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3629 | fi | |
3630 | ||
3631 | if test "$wxUSE_TIMEDATE" = yes; then | |
a0b9e27f | 3632 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3633 | else |
a0b9e27f | 3634 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3635 | fi |
a0b9e27f | 3636 | |
1e6feb95 | 3637 | |
5005acfe VZ |
3638 | enablestring= |
3639 | echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6 | |
521196a2 | 3640 | echo "configure:3641: checking for --${enablestring:-enable}-stopwatch" >&5 |
1e6feb95 VZ |
3641 | no_cache=0 |
3642 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3643 | if test "${enable_stopwatch+set}" = set; then | |
3644 | enableval="$enable_stopwatch" | |
a0b9e27f | 3645 | |
1e6feb95 VZ |
3646 | if test "$enableval" = yes; then |
3647 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3648 | else | |
3649 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3650 | fi | |
a0b9e27f | 3651 | |
1e6feb95 | 3652 | else |
a0b9e27f | 3653 | |
1e6feb95 VZ |
3654 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
3655 | if test "x$LINE" != x ; then | |
3656 | eval "DEFAULT_$LINE" | |
3657 | else | |
3658 | no_cache=1 | |
3659 | fi | |
3660 | ||
3661 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
a0b9e27f MB |
3662 | |
3663 | fi | |
1e6feb95 VZ |
3664 | |
3665 | ||
3666 | eval "$ac_cv_use_stopwatch" | |
3667 | if test "$no_cache" != 1; then | |
3668 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3669 | fi | |
3670 | ||
3671 | if test "$wxUSE_STOPWATCH" = yes; then | |
a0b9e27f | 3672 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3673 | else |
a0b9e27f | 3674 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3675 | fi |
a0b9e27f | 3676 | |
1e6feb95 | 3677 | |
5005acfe VZ |
3678 | enablestring= |
3679 | echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6 | |
521196a2 | 3680 | echo "configure:3681: checking for --${enablestring:-enable}-dialupman" >&5 |
10f2d63a | 3681 | no_cache=0 |
eb4efbdc VZ |
3682 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3683 | if test "${enable_dialupman+set}" = set; then | |
3684 | enableval="$enable_dialupman" | |
a0b9e27f | 3685 | |
10f2d63a | 3686 | if test "$enableval" = yes; then |
eb4efbdc | 3687 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3688 | else |
eb4efbdc | 3689 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3690 | fi |
a0b9e27f | 3691 | |
10f2d63a | 3692 | else |
a0b9e27f | 3693 | |
eb4efbdc | 3694 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3695 | if test "x$LINE" != x ; then |
3696 | eval "DEFAULT_$LINE" | |
3697 | else | |
3698 | no_cache=1 | |
3699 | fi | |
3700 | ||
eb4efbdc | 3701 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
a0b9e27f MB |
3702 | |
3703 | fi | |
10f2d63a VZ |
3704 | |
3705 | ||
eb4efbdc | 3706 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3707 | if test "$no_cache" != 1; then |
eb4efbdc | 3708 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3709 | fi |
3710 | ||
eb4efbdc | 3711 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
a0b9e27f | 3712 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3713 | else |
a0b9e27f | 3714 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3715 | fi |
a0b9e27f | 3716 | |
10f2d63a | 3717 | |
5005acfe VZ |
3718 | enablestring= |
3719 | echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6 | |
521196a2 | 3720 | echo "configure:3721: checking for --${enablestring:-enable}-apple_ieee" >&5 |
10f2d63a VZ |
3721 | no_cache=0 |
3722 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3723 | if test "${enable_apple_ieee+set}" = set; then | |
3724 | enableval="$enable_apple_ieee" | |
a0b9e27f | 3725 | |
10f2d63a VZ |
3726 | if test "$enableval" = yes; then |
3727 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3728 | else | |
3729 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3730 | fi | |
a0b9e27f | 3731 | |
10f2d63a | 3732 | else |
a0b9e27f | 3733 | |
10f2d63a VZ |
3734 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3735 | if test "x$LINE" != x ; then | |
3736 | eval "DEFAULT_$LINE" | |
3737 | else | |
3738 | no_cache=1 | |
3739 | fi | |
3740 | ||
3741 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
a0b9e27f MB |
3742 | |
3743 | fi | |
10f2d63a VZ |
3744 | |
3745 | ||
3746 | eval "$ac_cv_use_apple_ieee" | |
3747 | if test "$no_cache" != 1; then | |
3748 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3749 | fi | |
3750 | ||
3751 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
a0b9e27f | 3752 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3753 | else |
a0b9e27f | 3754 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3755 | fi |
a0b9e27f | 3756 | |
10f2d63a | 3757 | |
5005acfe VZ |
3758 | enablestring= |
3759 | echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6 | |
521196a2 | 3760 | echo "configure:3761: checking for --${enablestring:-enable}-timer" >&5 |
10f2d63a | 3761 | no_cache=0 |
1e6feb95 VZ |
3762 | # Check whether --enable-timer or --disable-timer was given. |
3763 | if test "${enable_timer+set}" = set; then | |
3764 | enableval="$enable_timer" | |
a0b9e27f | 3765 | |
10f2d63a | 3766 | if test "$enableval" = yes; then |
1e6feb95 | 3767 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3768 | else |
1e6feb95 | 3769 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3770 | fi |
a0b9e27f | 3771 | |
10f2d63a | 3772 | else |
a0b9e27f | 3773 | |
1e6feb95 | 3774 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3775 | if test "x$LINE" != x ; then |
3776 | eval "DEFAULT_$LINE" | |
3777 | else | |
3778 | no_cache=1 | |
3779 | fi | |
3780 | ||
1e6feb95 | 3781 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
a0b9e27f MB |
3782 | |
3783 | fi | |
10f2d63a VZ |
3784 | |
3785 | ||
1e6feb95 | 3786 | eval "$ac_cv_use_timer" |
10f2d63a | 3787 | if test "$no_cache" != 1; then |
1e6feb95 | 3788 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3789 | fi |
3790 | ||
1e6feb95 | 3791 | if test "$wxUSE_TIMER" = yes; then |
a0b9e27f | 3792 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3793 | else |
a0b9e27f | 3794 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3795 | fi |
a0b9e27f | 3796 | |
10f2d63a | 3797 | |
5005acfe VZ |
3798 | enablestring= |
3799 | echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6 | |
521196a2 | 3800 | echo "configure:3801: checking for --${enablestring:-enable}-wave" >&5 |
10f2d63a VZ |
3801 | no_cache=0 |
3802 | # Check whether --enable-wave or --disable-wave was given. | |
3803 | if test "${enable_wave+set}" = set; then | |
3804 | enableval="$enable_wave" | |
a0b9e27f | 3805 | |
10f2d63a VZ |
3806 | if test "$enableval" = yes; then |
3807 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3808 | else | |
3809 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3810 | fi | |
a0b9e27f | 3811 | |
10f2d63a | 3812 | else |
a0b9e27f | 3813 | |
10f2d63a VZ |
3814 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3815 | if test "x$LINE" != x ; then | |
3816 | eval "DEFAULT_$LINE" | |
3817 | else | |
3818 | no_cache=1 | |
3819 | fi | |
3820 | ||
3821 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
a0b9e27f MB |
3822 | |
3823 | fi | |
10f2d63a VZ |
3824 | |
3825 | ||
3826 | eval "$ac_cv_use_wave" | |
3827 | if test "$no_cache" != 1; then | |
3828 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3829 | fi | |
3830 | ||
3831 | if test "$wxUSE_WAVE" = yes; then | |
a0b9e27f | 3832 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3833 | else |
a0b9e27f | 3834 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3835 | fi |
a0b9e27f | 3836 | |
10f2d63a | 3837 | |
5005acfe VZ |
3838 | enablestring= |
3839 | echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6 | |
521196a2 | 3840 | echo "configure:3841: checking for --${enablestring:-enable}-fraction" >&5 |
10f2d63a VZ |
3841 | no_cache=0 |
3842 | # Check whether --enable-fraction or --disable-fraction was given. | |
3843 | if test "${enable_fraction+set}" = set; then | |
3844 | enableval="$enable_fraction" | |
a0b9e27f | 3845 | |
10f2d63a VZ |
3846 | if test "$enableval" = yes; then |
3847 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3848 | else | |
3849 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3850 | fi | |
a0b9e27f | 3851 | |
10f2d63a | 3852 | else |
a0b9e27f | 3853 | |
10f2d63a VZ |
3854 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3855 | if test "x$LINE" != x ; then | |
3856 | eval "DEFAULT_$LINE" | |
3857 | else | |
3858 | no_cache=1 | |
3859 | fi | |
3860 | ||
3861 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
a0b9e27f MB |
3862 | |
3863 | fi | |
10f2d63a VZ |
3864 | |
3865 | ||
3866 | eval "$ac_cv_use_fraction" | |
3867 | if test "$no_cache" != 1; then | |
3868 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3869 | fi | |
3870 | ||
3871 | if test "$wxUSE_FRACTION" = yes; then | |
a0b9e27f | 3872 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3873 | else |
a0b9e27f | 3874 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3875 | fi |
a0b9e27f | 3876 | |
10f2d63a | 3877 | |
5005acfe VZ |
3878 | enablestring= |
3879 | echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6 | |
521196a2 | 3880 | echo "configure:3881: checking for --${enablestring:-enable}-dynlib" >&5 |
10f2d63a VZ |
3881 | no_cache=0 |
3882 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3883 | if test "${enable_dynlib+set}" = set; then | |
3884 | enableval="$enable_dynlib" | |
a0b9e27f | 3885 | |
10f2d63a VZ |
3886 | if test "$enableval" = yes; then |
3887 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3888 | else | |
3889 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3890 | fi | |
a0b9e27f | 3891 | |
10f2d63a | 3892 | else |
a0b9e27f | 3893 | |
10f2d63a VZ |
3894 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3895 | if test "x$LINE" != x ; then | |
3896 | eval "DEFAULT_$LINE" | |
3897 | else | |
3898 | no_cache=1 | |
3899 | fi | |
3900 | ||
3901 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
a0b9e27f MB |
3902 | |
3903 | fi | |
10f2d63a VZ |
3904 | |
3905 | ||
3906 | eval "$ac_cv_use_dynlib" | |
3907 | if test "$no_cache" != 1; then | |
3908 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3909 | fi | |
3910 | ||
3911 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
a0b9e27f | 3912 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3913 | else |
a0b9e27f | 3914 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3915 | fi |
a0b9e27f | 3916 | |
10f2d63a | 3917 | |
5005acfe VZ |
3918 | enablestring= |
3919 | echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6 | |
521196a2 | 3920 | echo "configure:3921: checking for --${enablestring:-enable}-dynamicloader" >&5 |
0b9ab0bd RL |
3921 | no_cache=0 |
3922 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3923 | if test "${enable_dynamicloader+set}" = set; then | |
3924 | enableval="$enable_dynamicloader" | |
a0b9e27f | 3925 | |
0b9ab0bd RL |
3926 | if test "$enableval" = yes; then |
3927 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3928 | else | |
3929 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3930 | fi | |
a0b9e27f | 3931 | |
0b9ab0bd | 3932 | else |
a0b9e27f | 3933 | |
0b9ab0bd RL |
3934 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
3935 | if test "x$LINE" != x ; then | |
3936 | eval "DEFAULT_$LINE" | |
3937 | else | |
3938 | no_cache=1 | |
3939 | fi | |
3940 | ||
3941 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
a0b9e27f MB |
3942 | |
3943 | fi | |
0b9ab0bd RL |
3944 | |
3945 | ||
3946 | eval "$ac_cv_use_dynamicloader" | |
3947 | if test "$no_cache" != 1; then | |
3948 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3949 | fi | |
3950 | ||
3951 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
a0b9e27f | 3952 | echo "$ac_t""yes" 1>&6 |
0b9ab0bd | 3953 | else |
a0b9e27f | 3954 | echo "$ac_t""no" 1>&6 |
0b9ab0bd | 3955 | fi |
a0b9e27f | 3956 | |
0b9ab0bd | 3957 | |
5005acfe VZ |
3958 | enablestring= |
3959 | echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6 | |
521196a2 | 3960 | echo "configure:3961: checking for --${enablestring:-enable}-longlong" >&5 |
10f2d63a VZ |
3961 | no_cache=0 |
3962 | # Check whether --enable-longlong or --disable-longlong was given. | |
3963 | if test "${enable_longlong+set}" = set; then | |
3964 | enableval="$enable_longlong" | |
a0b9e27f | 3965 | |
10f2d63a VZ |
3966 | if test "$enableval" = yes; then |
3967 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3968 | else | |
3969 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3970 | fi | |
a0b9e27f | 3971 | |
10f2d63a | 3972 | else |
a0b9e27f | 3973 | |
10f2d63a VZ |
3974 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3975 | if test "x$LINE" != x ; then | |
3976 | eval "DEFAULT_$LINE" | |
3977 | else | |
3978 | no_cache=1 | |
3979 | fi | |
3980 | ||
3981 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
a0b9e27f MB |
3982 | |
3983 | fi | |
10f2d63a VZ |
3984 | |
3985 | ||
3986 | eval "$ac_cv_use_longlong" | |
3987 | if test "$no_cache" != 1; then | |
3988 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3989 | fi | |
3990 | ||
3991 | if test "$wxUSE_LONGLONG" = yes; then | |
a0b9e27f | 3992 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3993 | else |
a0b9e27f | 3994 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3995 | fi |
a0b9e27f | 3996 | |
10f2d63a | 3997 | |
5005acfe VZ |
3998 | enablestring= |
3999 | echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6 | |
521196a2 | 4000 | echo "configure:4001: checking for --${enablestring:-enable}-geometry" >&5 |
e8f65ba6 RR |
4001 | no_cache=0 |
4002 | # Check whether --enable-geometry or --disable-geometry was given. | |
4003 | if test "${enable_geometry+set}" = set; then | |
4004 | enableval="$enable_geometry" | |
a0b9e27f | 4005 | |
e8f65ba6 RR |
4006 | if test "$enableval" = yes; then |
4007 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
4008 | else | |
4009 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
4010 | fi | |
a0b9e27f | 4011 | |
e8f65ba6 | 4012 | else |
a0b9e27f | 4013 | |
e8f65ba6 RR |
4014 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
4015 | if test "x$LINE" != x ; then | |
4016 | eval "DEFAULT_$LINE" | |
4017 | else | |
4018 | no_cache=1 | |
4019 | fi | |
4020 | ||
4021 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
a0b9e27f MB |
4022 | |
4023 | fi | |
e8f65ba6 RR |
4024 | |
4025 | ||
4026 | eval "$ac_cv_use_geometry" | |
4027 | if test "$no_cache" != 1; then | |
4028 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
4029 | fi | |
4030 | ||
4031 | if test "$wxUSE_GEOMETRY" = yes; then | |
a0b9e27f | 4032 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 4033 | else |
a0b9e27f | 4034 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 4035 | fi |
a0b9e27f | 4036 | |
e8f65ba6 | 4037 | |
5005acfe VZ |
4038 | enablestring= |
4039 | echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6 | |
521196a2 | 4040 | echo "configure:4041: checking for --${enablestring:-enable}-log" >&5 |
10f2d63a VZ |
4041 | no_cache=0 |
4042 | # Check whether --enable-log or --disable-log was given. | |
4043 | if test "${enable_log+set}" = set; then | |
4044 | enableval="$enable_log" | |
a0b9e27f | 4045 | |
10f2d63a VZ |
4046 | if test "$enableval" = yes; then |
4047 | ac_cv_use_log='wxUSE_LOG=yes' | |
4048 | else | |
4049 | ac_cv_use_log='wxUSE_LOG=no' | |
4050 | fi | |
a0b9e27f | 4051 | |
10f2d63a | 4052 | else |
a0b9e27f | 4053 | |
10f2d63a VZ |
4054 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
4055 | if test "x$LINE" != x ; then | |
4056 | eval "DEFAULT_$LINE" | |
4057 | else | |
4058 | no_cache=1 | |
4059 | fi | |
4060 | ||
4061 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
a0b9e27f MB |
4062 | |
4063 | fi | |
10f2d63a VZ |
4064 | |
4065 | ||
4066 | eval "$ac_cv_use_log" | |
4067 | if test "$no_cache" != 1; then | |
4068 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4069 | fi | |
4070 | ||
4071 | if test "$wxUSE_LOG" = yes; then | |
a0b9e27f | 4072 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4073 | else |
a0b9e27f | 4074 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4075 | fi |
a0b9e27f | 4076 | |
10f2d63a | 4077 | |
5005acfe VZ |
4078 | enablestring= |
4079 | echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6 | |
521196a2 | 4080 | echo "configure:4081: checking for --${enablestring:-enable}-streams" >&5 |
10f2d63a VZ |
4081 | no_cache=0 |
4082 | # Check whether --enable-streams or --disable-streams was given. | |
4083 | if test "${enable_streams+set}" = set; then | |
4084 | enableval="$enable_streams" | |
a0b9e27f | 4085 | |
10f2d63a VZ |
4086 | if test "$enableval" = yes; then |
4087 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4088 | else | |
4089 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4090 | fi | |
a0b9e27f | 4091 | |
10f2d63a | 4092 | else |
a0b9e27f | 4093 | |
10f2d63a VZ |
4094 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
4095 | if test "x$LINE" != x ; then | |
4096 | eval "DEFAULT_$LINE" | |
4097 | else | |
4098 | no_cache=1 | |
4099 | fi | |
4100 | ||
4101 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
a0b9e27f MB |
4102 | |
4103 | fi | |
10f2d63a VZ |
4104 | |
4105 | ||
4106 | eval "$ac_cv_use_streams" | |
4107 | if test "$no_cache" != 1; then | |
4108 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4109 | fi | |
4110 | ||
4111 | if test "$wxUSE_STREAMS" = yes; then | |
a0b9e27f | 4112 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4113 | else |
a0b9e27f | 4114 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4115 | fi |
a0b9e27f | 4116 | |
10f2d63a | 4117 | |
5005acfe VZ |
4118 | enablestring= |
4119 | echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6 | |
521196a2 | 4120 | echo "configure:4121: checking for --${enablestring:-enable}-file" >&5 |
10f2d63a VZ |
4121 | no_cache=0 |
4122 | # Check whether --enable-file or --disable-file was given. | |
4123 | if test "${enable_file+set}" = set; then | |
4124 | enableval="$enable_file" | |
a0b9e27f | 4125 | |
10f2d63a VZ |
4126 | if test "$enableval" = yes; then |
4127 | ac_cv_use_file='wxUSE_FILE=yes' | |
4128 | else | |
4129 | ac_cv_use_file='wxUSE_FILE=no' | |
4130 | fi | |
a0b9e27f | 4131 | |
10f2d63a | 4132 | else |
a0b9e27f | 4133 | |
10f2d63a VZ |
4134 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4135 | if test "x$LINE" != x ; then | |
4136 | eval "DEFAULT_$LINE" | |
4137 | else | |
4138 | no_cache=1 | |
4139 | fi | |
4140 | ||
4141 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
a0b9e27f MB |
4142 | |
4143 | fi | |
10f2d63a VZ |
4144 | |
4145 | ||
4146 | eval "$ac_cv_use_file" | |
4147 | if test "$no_cache" != 1; then | |
4148 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4149 | fi | |
4150 | ||
4151 | if test "$wxUSE_FILE" = yes; then | |
a0b9e27f | 4152 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4153 | else |
a0b9e27f | 4154 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4155 | fi |
a0b9e27f | 4156 | |
10f2d63a | 4157 | |
5005acfe VZ |
4158 | enablestring= |
4159 | echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6 | |
521196a2 | 4160 | echo "configure:4161: checking for --${enablestring:-enable}-ffile" >&5 |
10f2d63a | 4161 | no_cache=0 |
1e6feb95 VZ |
4162 | # Check whether --enable-ffile or --disable-ffile was given. |
4163 | if test "${enable_ffile+set}" = set; then | |
4164 | enableval="$enable_ffile" | |
a0b9e27f | 4165 | |
10f2d63a | 4166 | if test "$enableval" = yes; then |
1e6feb95 | 4167 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4168 | else |
1e6feb95 | 4169 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4170 | fi |
a0b9e27f | 4171 | |
10f2d63a | 4172 | else |
a0b9e27f | 4173 | |
1e6feb95 | 4174 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4175 | if test "x$LINE" != x ; then |
4176 | eval "DEFAULT_$LINE" | |
4177 | else | |
4178 | no_cache=1 | |
4179 | fi | |
4180 | ||
1e6feb95 | 4181 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
a0b9e27f MB |
4182 | |
4183 | fi | |
10f2d63a VZ |
4184 | |
4185 | ||
1e6feb95 | 4186 | eval "$ac_cv_use_ffile" |
10f2d63a | 4187 | if test "$no_cache" != 1; then |
1e6feb95 | 4188 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4189 | fi |
4190 | ||
1e6feb95 | 4191 | if test "$wxUSE_FFILE" = yes; then |
a0b9e27f | 4192 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4193 | else |
a0b9e27f | 4194 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4195 | fi |
a0b9e27f | 4196 | |
10f2d63a | 4197 | |
5005acfe VZ |
4198 | enablestring= |
4199 | echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6 | |
521196a2 | 4200 | echo "configure:4201: checking for --${enablestring:-enable}-textbuf" >&5 |
a3a584a7 VZ |
4201 | no_cache=0 |
4202 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4203 | if test "${enable_textbuf+set}" = set; then | |
4204 | enableval="$enable_textbuf" | |
a0b9e27f | 4205 | |
a3a584a7 VZ |
4206 | if test "$enableval" = yes; then |
4207 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4208 | else | |
4209 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4210 | fi | |
a0b9e27f | 4211 | |
a3a584a7 | 4212 | else |
a0b9e27f | 4213 | |
a3a584a7 VZ |
4214 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4215 | if test "x$LINE" != x ; then | |
4216 | eval "DEFAULT_$LINE" | |
4217 | else | |
4218 | no_cache=1 | |
4219 | fi | |
4220 | ||
4221 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a0b9e27f MB |
4222 | |
4223 | fi | |
a3a584a7 VZ |
4224 | |
4225 | ||
4226 | eval "$ac_cv_use_textbuf" | |
4227 | if test "$no_cache" != 1; then | |
4228 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4229 | fi | |
4230 | ||
4231 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
a0b9e27f | 4232 | echo "$ac_t""yes" 1>&6 |
a3a584a7 | 4233 | else |
a0b9e27f | 4234 | echo "$ac_t""no" 1>&6 |
a3a584a7 | 4235 | fi |
a0b9e27f | 4236 | |
a3a584a7 | 4237 | |
5005acfe VZ |
4238 | enablestring= |
4239 | echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6 | |
521196a2 | 4240 | echo "configure:4241: checking for --${enablestring:-enable}-textfile" >&5 |
10f2d63a | 4241 | no_cache=0 |
1e6feb95 VZ |
4242 | # Check whether --enable-textfile or --disable-textfile was given. |
4243 | if test "${enable_textfile+set}" = set; then | |
4244 | enableval="$enable_textfile" | |
a0b9e27f | 4245 | |
10f2d63a | 4246 | if test "$enableval" = yes; then |
1e6feb95 | 4247 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4248 | else |
1e6feb95 | 4249 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4250 | fi |
a0b9e27f | 4251 | |
10f2d63a | 4252 | else |
a0b9e27f | 4253 | |
1e6feb95 | 4254 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4255 | if test "x$LINE" != x ; then |
4256 | eval "DEFAULT_$LINE" | |
4257 | else | |
4258 | no_cache=1 | |
4259 | fi | |
4260 | ||
1e6feb95 | 4261 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
a0b9e27f MB |
4262 | |
4263 | fi | |
10f2d63a VZ |
4264 | |
4265 | ||
1e6feb95 | 4266 | eval "$ac_cv_use_textfile" |
10f2d63a | 4267 | if test "$no_cache" != 1; then |
1e6feb95 | 4268 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4269 | fi |
4270 | ||
1e6feb95 | 4271 | if test "$wxUSE_TEXTFILE" = yes; then |
a0b9e27f | 4272 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4273 | else |
a0b9e27f | 4274 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4275 | fi |
a0b9e27f | 4276 | |
10f2d63a | 4277 | |
5005acfe VZ |
4278 | enablestring= |
4279 | echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6 | |
521196a2 | 4280 | echo "configure:4281: checking for --${enablestring:-enable}-fontmap" >&5 |
10f2d63a | 4281 | no_cache=0 |
1e6feb95 VZ |
4282 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4283 | if test "${enable_fontmap+set}" = set; then | |
4284 | enableval="$enable_fontmap" | |
a0b9e27f | 4285 | |
10f2d63a | 4286 | if test "$enableval" = yes; then |
1e6feb95 | 4287 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4288 | else |
1e6feb95 | 4289 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4290 | fi |
a0b9e27f | 4291 | |
10f2d63a | 4292 | else |
a0b9e27f | 4293 | |
1e6feb95 | 4294 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4295 | if test "x$LINE" != x ; then |
4296 | eval "DEFAULT_$LINE" | |
4297 | else | |
4298 | no_cache=1 | |
4299 | fi | |
4300 | ||
1e6feb95 | 4301 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
a0b9e27f MB |
4302 | |
4303 | fi | |
10f2d63a VZ |
4304 | |
4305 | ||
1e6feb95 | 4306 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4307 | if test "$no_cache" != 1; then |
1e6feb95 | 4308 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4309 | fi |
4310 | ||
1e6feb95 | 4311 | if test "$wxUSE_FONTMAP" = yes; then |
a0b9e27f | 4312 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4313 | else |
a0b9e27f | 4314 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4315 | fi |
a0b9e27f | 4316 | |
10f2d63a | 4317 | |
5005acfe VZ |
4318 | enablestring= |
4319 | echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6 | |
521196a2 | 4320 | echo "configure:4321: checking for --${enablestring:-enable}-unicode" >&5 |
10f2d63a | 4321 | no_cache=0 |
1e6feb95 VZ |
4322 | # Check whether --enable-unicode or --disable-unicode was given. |
4323 | if test "${enable_unicode+set}" = set; then | |
4324 | enableval="$enable_unicode" | |
a0b9e27f | 4325 | |
1e6feb95 VZ |
4326 | if test "$enableval" = yes; then |
4327 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4328 | else | |
4329 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4330 | fi | |
a0b9e27f | 4331 | |
1e6feb95 | 4332 | else |
a0b9e27f | 4333 | |
1e6feb95 VZ |
4334 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4335 | if test "x$LINE" != x ; then | |
4336 | eval "DEFAULT_$LINE" | |
4337 | else | |
4338 | no_cache=1 | |
4339 | fi | |
4340 | ||
4341 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
a0b9e27f MB |
4342 | |
4343 | fi | |
1e6feb95 VZ |
4344 | |
4345 | ||
4346 | eval "$ac_cv_use_unicode" | |
4347 | if test "$no_cache" != 1; then | |
4348 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4349 | fi | |
4350 | ||
4351 | if test "$wxUSE_UNICODE" = yes; then | |
a0b9e27f | 4352 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4353 | else |
a0b9e27f | 4354 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4355 | fi |
a0b9e27f | 4356 | |
1e6feb95 | 4357 | |
5005acfe VZ |
4358 | enablestring= |
4359 | echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6 | |
521196a2 | 4360 | echo "configure:4361: checking for --${enablestring:-enable}-mslu" >&5 |
a72a4bfa VS |
4361 | no_cache=0 |
4362 | # Check whether --enable-mslu or --disable-mslu was given. | |
4363 | if test "${enable_mslu+set}" = set; then | |
4364 | enableval="$enable_mslu" | |
a0b9e27f | 4365 | |
a72a4bfa VS |
4366 | if test "$enableval" = yes; then |
4367 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4368 | else | |
4369 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4370 | fi | |
a0b9e27f | 4371 | |
a72a4bfa | 4372 | else |
a0b9e27f | 4373 | |
a72a4bfa VS |
4374 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
4375 | if test "x$LINE" != x ; then | |
4376 | eval "DEFAULT_$LINE" | |
4377 | else | |
4378 | no_cache=1 | |
4379 | fi | |
4380 | ||
4381 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a0b9e27f MB |
4382 | |
4383 | fi | |
a72a4bfa VS |
4384 | |
4385 | ||
4386 | eval "$ac_cv_use_mslu" | |
4387 | if test "$no_cache" != 1; then | |
4388 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4389 | fi | |
4390 | ||
4391 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
a0b9e27f | 4392 | echo "$ac_t""yes" 1>&6 |
a72a4bfa | 4393 | else |
a0b9e27f | 4394 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 4395 | fi |
a0b9e27f | 4396 | |
a72a4bfa | 4397 | |
5005acfe VZ |
4398 | enablestring= |
4399 | echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6 | |
521196a2 | 4400 | echo "configure:4401: checking for --${enablestring:-enable}-wxprintfv" >&5 |
1e6feb95 VZ |
4401 | no_cache=0 |
4402 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4403 | if test "${enable_wxprintfv+set}" = set; then | |
4404 | enableval="$enable_wxprintfv" | |
a0b9e27f | 4405 | |
1e6feb95 | 4406 | if test "$enableval" = yes; then |
10f2d63a VZ |
4407 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4408 | else | |
4409 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4410 | fi | |
a0b9e27f | 4411 | |
10f2d63a | 4412 | else |
a0b9e27f | 4413 | |
10f2d63a VZ |
4414 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4415 | if test "x$LINE" != x ; then | |
4416 | eval "DEFAULT_$LINE" | |
4417 | else | |
4418 | no_cache=1 | |
4419 | fi | |
4420 | ||
4421 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
a0b9e27f MB |
4422 | |
4423 | fi | |
10f2d63a VZ |
4424 | |
4425 | ||
4426 | eval "$ac_cv_use_wxprintfv" | |
4427 | if test "$no_cache" != 1; then | |
4428 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4429 | fi | |
4430 | ||
4431 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
a0b9e27f | 4432 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4433 | else |
a0b9e27f | 4434 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4435 | fi |
a0b9e27f | 4436 | |
10f2d63a | 4437 | |
5005acfe VZ |
4438 | enablestring= |
4439 | echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6 | |
521196a2 | 4440 | echo "configure:4441: checking for --${enablestring:-enable}-std_iostreams" >&5 |
10f2d63a VZ |
4441 | no_cache=0 |
4442 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4443 | if test "${enable_std_iostreams+set}" = set; then | |
4444 | enableval="$enable_std_iostreams" | |
a0b9e27f | 4445 | |
10f2d63a VZ |
4446 | if test "$enableval" = yes; then |
4447 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4448 | else | |
4449 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4450 | fi | |
a0b9e27f | 4451 | |
10f2d63a | 4452 | else |
a0b9e27f | 4453 | |
10f2d63a VZ |
4454 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4455 | if test "x$LINE" != x ; then | |
4456 | eval "DEFAULT_$LINE" | |
4457 | else | |
4458 | no_cache=1 | |
4459 | fi | |
4460 | ||
4461 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
a0b9e27f MB |
4462 | |
4463 | fi | |
10f2d63a VZ |
4464 | |
4465 | ||
4466 | eval "$ac_cv_use_std_iostreams" | |
4467 | if test "$no_cache" != 1; then | |
4468 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4469 | fi | |
4470 | ||
4471 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
a0b9e27f | 4472 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4473 | else |
a0b9e27f | 4474 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4475 | fi |
a0b9e27f | 4476 | |
10f2d63a | 4477 | |
5005acfe VZ |
4478 | enablestring= |
4479 | echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6 | |
521196a2 | 4480 | echo "configure:4481: checking for --${enablestring:-enable}-filesystem" >&5 |
24528b0c VS |
4481 | no_cache=0 |
4482 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4483 | if test "${enable_filesystem+set}" = set; then | |
4484 | enableval="$enable_filesystem" | |
a0b9e27f | 4485 | |
24528b0c VS |
4486 | if test "$enableval" = yes; then |
4487 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4488 | else | |
4489 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4490 | fi | |
a0b9e27f | 4491 | |
24528b0c | 4492 | else |
a0b9e27f | 4493 | |
24528b0c VS |
4494 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4495 | if test "x$LINE" != x ; then | |
4496 | eval "DEFAULT_$LINE" | |
4497 | else | |
4498 | no_cache=1 | |
4499 | fi | |
4500 | ||
4501 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
a0b9e27f MB |
4502 | |
4503 | fi | |
24528b0c VS |
4504 | |
4505 | ||
4506 | eval "$ac_cv_use_filesystem" | |
4507 | if test "$no_cache" != 1; then | |
4508 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4509 | fi | |
4510 | ||
4511 | if test "$wxUSE_FILESYSTEM" = yes; then | |
a0b9e27f | 4512 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4513 | else |
a0b9e27f | 4514 | echo "$ac_t""no" 1>&6 |
24528b0c | 4515 | fi |
a0b9e27f | 4516 | |
24528b0c | 4517 | |
5005acfe VZ |
4518 | enablestring= |
4519 | echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6 | |
521196a2 | 4520 | echo "configure:4521: checking for --${enablestring:-enable}-fs_inet" >&5 |
10f2d63a VZ |
4521 | no_cache=0 |
4522 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4523 | if test "${enable_fs_inet+set}" = set; then | |
4524 | enableval="$enable_fs_inet" | |
a0b9e27f | 4525 | |
10f2d63a VZ |
4526 | if test "$enableval" = yes; then |
4527 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4528 | else | |
4529 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4530 | fi | |
a0b9e27f | 4531 | |
10f2d63a | 4532 | else |
a0b9e27f | 4533 | |
10f2d63a VZ |
4534 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4535 | if test "x$LINE" != x ; then | |
4536 | eval "DEFAULT_$LINE" | |
4537 | else | |
4538 | no_cache=1 | |
4539 | fi | |
4540 | ||
4541 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
a0b9e27f MB |
4542 | |
4543 | fi | |
10f2d63a VZ |
4544 | |
4545 | ||
4546 | eval "$ac_cv_use_fs_inet" | |
4547 | if test "$no_cache" != 1; then | |
4548 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4549 | fi | |
4550 | ||
4551 | if test "$wxUSE_FS_INET" = yes; then | |
a0b9e27f | 4552 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4553 | else |
a0b9e27f | 4554 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4555 | fi |
a0b9e27f | 4556 | |
10f2d63a | 4557 | |
5005acfe VZ |
4558 | enablestring= |
4559 | echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6 | |
521196a2 | 4560 | echo "configure:4561: checking for --${enablestring:-enable}-fs_zip" >&5 |
10f2d63a VZ |
4561 | no_cache=0 |
4562 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4563 | if test "${enable_fs_zip+set}" = set; then | |
4564 | enableval="$enable_fs_zip" | |
a0b9e27f | 4565 | |
10f2d63a VZ |
4566 | if test "$enableval" = yes; then |
4567 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4568 | else | |
4569 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4570 | fi | |
a0b9e27f | 4571 | |
10f2d63a | 4572 | else |
a0b9e27f | 4573 | |
10f2d63a VZ |
4574 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4575 | if test "x$LINE" != x ; then | |
4576 | eval "DEFAULT_$LINE" | |
4577 | else | |
4578 | no_cache=1 | |
4579 | fi | |
4580 | ||
4581 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
a0b9e27f MB |
4582 | |
4583 | fi | |
10f2d63a VZ |
4584 | |
4585 | ||
4586 | eval "$ac_cv_use_fs_zip" | |
4587 | if test "$no_cache" != 1; then | |
4588 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4589 | fi | |
4590 | ||
4591 | if test "$wxUSE_FS_ZIP" = yes; then | |
a0b9e27f | 4592 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4593 | else |
a0b9e27f | 4594 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4595 | fi |
a0b9e27f | 4596 | |
10f2d63a | 4597 | |
5005acfe VZ |
4598 | enablestring= |
4599 | echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6 | |
521196a2 | 4600 | echo "configure:4601: checking for --${enablestring:-enable}-zipstream" >&5 |
10f2d63a VZ |
4601 | no_cache=0 |
4602 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4603 | if test "${enable_zipstream+set}" = set; then | |
4604 | enableval="$enable_zipstream" | |
a0b9e27f | 4605 | |
10f2d63a VZ |
4606 | if test "$enableval" = yes; then |
4607 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4608 | else | |
4609 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4610 | fi | |
a0b9e27f | 4611 | |
10f2d63a | 4612 | else |
a0b9e27f | 4613 | |
10f2d63a VZ |
4614 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4615 | if test "x$LINE" != x ; then | |
4616 | eval "DEFAULT_$LINE" | |
4617 | else | |
4618 | no_cache=1 | |
4619 | fi | |
4620 | ||
4621 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
a0b9e27f MB |
4622 | |
4623 | fi | |
10f2d63a VZ |
4624 | |
4625 | ||
4626 | eval "$ac_cv_use_zipstream" | |
4627 | if test "$no_cache" != 1; then | |
4628 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4629 | fi | |
4630 | ||
4631 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
a0b9e27f | 4632 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4633 | else |
a0b9e27f | 4634 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4635 | fi |
a0b9e27f | 4636 | |
8284b0c5 | 4637 | |
52127426 | 4638 | |
5005acfe VZ |
4639 | enablestring= |
4640 | echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6 | |
521196a2 | 4641 | echo "configure:4642: checking for --${enablestring:-enable}-catch_segvs" >&5 |
eb4efbdc VZ |
4642 | no_cache=0 |
4643 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4644 | if test "${enable_catch_segvs+set}" = set; then | |
4645 | enableval="$enable_catch_segvs" | |
a0b9e27f | 4646 | |
eb4efbdc VZ |
4647 | if test "$enableval" = yes; then |
4648 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4649 | else | |
4650 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4651 | fi | |
a0b9e27f | 4652 | |
eb4efbdc | 4653 | else |
a0b9e27f | 4654 | |
eb4efbdc VZ |
4655 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4656 | if test "x$LINE" != x ; then | |
4657 | eval "DEFAULT_$LINE" | |
4658 | else | |
4659 | no_cache=1 | |
4660 | fi | |
4661 | ||
4662 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
a0b9e27f MB |
4663 | |
4664 | fi | |
eb4efbdc VZ |
4665 | |
4666 | ||
4667 | eval "$ac_cv_use_catch_segvs" | |
4668 | if test "$no_cache" != 1; then | |
4669 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4670 | fi | |
4671 | ||
4672 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
a0b9e27f | 4673 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4674 | else |
a0b9e27f | 4675 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4676 | fi |
a0b9e27f | 4677 | |
eb4efbdc | 4678 | |
5005acfe VZ |
4679 | enablestring= |
4680 | echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6 | |
521196a2 | 4681 | echo "configure:4682: checking for --${enablestring:-enable}-snglinst" >&5 |
4f3c5f06 VZ |
4682 | no_cache=0 |
4683 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4684 | if test "${enable_snglinst+set}" = set; then | |
4685 | enableval="$enable_snglinst" | |
a0b9e27f | 4686 | |
4f3c5f06 VZ |
4687 | if test "$enableval" = yes; then |
4688 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4689 | else | |
4690 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4691 | fi | |
a0b9e27f | 4692 | |
4f3c5f06 | 4693 | else |
a0b9e27f | 4694 | |
4f3c5f06 VZ |
4695 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4696 | if test "x$LINE" != x ; then | |
4697 | eval "DEFAULT_$LINE" | |
4698 | else | |
4699 | no_cache=1 | |
4700 | fi | |
4701 | ||
4702 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
a0b9e27f MB |
4703 | |
4704 | fi | |
4f3c5f06 VZ |
4705 | |
4706 | ||
4707 | eval "$ac_cv_use_snglinst" | |
4708 | if test "$no_cache" != 1; then | |
4709 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4710 | fi | |
4711 | ||
4712 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
a0b9e27f | 4713 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4714 | else |
a0b9e27f | 4715 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4716 | fi |
a0b9e27f | 4717 | |
52127426 | 4718 | |
8284b0c5 | 4719 | |
5005acfe VZ |
4720 | enablestring= |
4721 | echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6 | |
521196a2 | 4722 | echo "configure:4723: checking for --${enablestring:-enable}-mimetype" >&5 |
1e6feb95 VZ |
4723 | no_cache=0 |
4724 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4725 | if test "${enable_mimetype+set}" = set; then | |
4726 | enableval="$enable_mimetype" | |
a0b9e27f | 4727 | |
1e6feb95 VZ |
4728 | if test "$enableval" = yes; then |
4729 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4730 | else | |
4731 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4732 | fi | |
a0b9e27f | 4733 | |
1e6feb95 | 4734 | else |
a0b9e27f | 4735 | |
1e6feb95 VZ |
4736 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
4737 | if test "x$LINE" != x ; then | |
4738 | eval "DEFAULT_$LINE" | |
4739 | else | |
4740 | no_cache=1 | |
4741 | fi | |
4742 | ||
4743 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
a0b9e27f MB |
4744 | |
4745 | fi | |
1e6feb95 VZ |
4746 | |
4747 | ||
4748 | eval "$ac_cv_use_mimetype" | |
4749 | if test "$no_cache" != 1; then | |
4750 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4751 | fi | |
4752 | ||
4753 | if test "$wxUSE_MIMETYPE" = yes; then | |
a0b9e27f | 4754 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4755 | else |
a0b9e27f | 4756 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4757 | fi |
a0b9e27f | 4758 | |
1e6feb95 | 4759 | |
5005acfe VZ |
4760 | enablestring= |
4761 | echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6 | |
521196a2 | 4762 | echo "configure:4763: checking for --${enablestring:-enable}-system_options" >&5 |
3e44f09d VZ |
4763 | no_cache=0 |
4764 | # Check whether --enable-system_options or --disable-system_options was given. | |
4765 | if test "${enable_system_options+set}" = set; then | |
4766 | enableval="$enable_system_options" | |
a0b9e27f | 4767 | |
3e44f09d VZ |
4768 | if test "$enableval" = yes; then |
4769 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4770 | else | |
4771 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4772 | fi | |
a0b9e27f | 4773 | |
3e44f09d | 4774 | else |
a0b9e27f | 4775 | |
3e44f09d VZ |
4776 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
4777 | if test "x$LINE" != x ; then | |
4778 | eval "DEFAULT_$LINE" | |
4779 | else | |
4780 | no_cache=1 | |
4781 | fi | |
4782 | ||
4783 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
a0b9e27f MB |
4784 | |
4785 | fi | |
3e44f09d VZ |
4786 | |
4787 | ||
4788 | eval "$ac_cv_use_system_options" | |
4789 | if test "$no_cache" != 1; then | |
4790 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4791 | fi | |
4792 | ||
4793 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
a0b9e27f | 4794 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 4795 | else |
a0b9e27f | 4796 | echo "$ac_t""no" 1>&6 |
3e44f09d | 4797 | fi |
a0b9e27f | 4798 | |
8284b0c5 | 4799 | |
52127426 | 4800 | |
5005acfe VZ |
4801 | enablestring= |
4802 | echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6 | |
521196a2 | 4803 | echo "configure:4804: checking for --${enablestring:-enable}-url" >&5 |
4cdb0ab0 VS |
4804 | no_cache=0 |
4805 | # Check whether --enable-url or --disable-url was given. | |
4806 | if test "${enable_url+set}" = set; then | |
4807 | enableval="$enable_url" | |
a0b9e27f | 4808 | |
4cdb0ab0 VS |
4809 | if test "$enableval" = yes; then |
4810 | ac_cv_use_url='wxUSE_URL=yes' | |
4811 | else | |
4812 | ac_cv_use_url='wxUSE_URL=no' | |
4813 | fi | |
a0b9e27f | 4814 | |
4cdb0ab0 | 4815 | else |
a0b9e27f | 4816 | |
4cdb0ab0 VS |
4817 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
4818 | if test "x$LINE" != x ; then | |
4819 | eval "DEFAULT_$LINE" | |
4820 | else | |
4821 | no_cache=1 | |
4822 | fi | |
4823 | ||
4824 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
a0b9e27f MB |
4825 | |
4826 | fi | |
4cdb0ab0 VS |
4827 | |
4828 | ||
4829 | eval "$ac_cv_use_url" | |
4830 | if test "$no_cache" != 1; then | |
4831 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4832 | fi | |
4833 | ||
4834 | if test "$wxUSE_URL" = yes; then | |
a0b9e27f | 4835 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4836 | else |
a0b9e27f | 4837 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4838 | fi |
a0b9e27f | 4839 | |
4cdb0ab0 | 4840 | |
5005acfe VZ |
4841 | enablestring= |
4842 | echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6 | |
521196a2 | 4843 | echo "configure:4844: checking for --${enablestring:-enable}-protocol" >&5 |
4cdb0ab0 VS |
4844 | no_cache=0 |
4845 | # Check whether --enable-protocol or --disable-protocol was given. | |
4846 | if test "${enable_protocol+set}" = set; then | |
4847 | enableval="$enable_protocol" | |
a0b9e27f | 4848 | |
4cdb0ab0 VS |
4849 | if test "$enableval" = yes; then |
4850 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4851 | else | |
4852 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4853 | fi | |
a0b9e27f | 4854 | |
4cdb0ab0 | 4855 | else |
a0b9e27f | 4856 | |
4cdb0ab0 VS |
4857 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4858 | if test "x$LINE" != x ; then | |
4859 | eval "DEFAULT_$LINE" | |
4860 | else | |
4861 | no_cache=1 | |
4862 | fi | |
4863 | ||
4864 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
4865 | |
4866 | fi | |
4cdb0ab0 VS |
4867 | |
4868 | ||
4869 | eval "$ac_cv_use_protocol" | |
4870 | if test "$no_cache" != 1; then | |
4871 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4872 | fi | |
4873 | ||
4874 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 4875 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4876 | else |
a0b9e27f | 4877 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4878 | fi |
a0b9e27f | 4879 | |
4cdb0ab0 | 4880 | |
5005acfe VZ |
4881 | enablestring= |
4882 | echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6 | |
521196a2 | 4883 | echo "configure:4884: checking for --${enablestring:-enable}-protocol_http" >&5 |
4cdb0ab0 VS |
4884 | no_cache=0 |
4885 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4886 | if test "${enable_protocol_http+set}" = set; then | |
4887 | enableval="$enable_protocol_http" | |
a0b9e27f | 4888 | |
4cdb0ab0 VS |
4889 | if test "$enableval" = yes; then |
4890 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4891 | else | |
4892 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4893 | fi | |
a0b9e27f | 4894 | |
4cdb0ab0 | 4895 | else |
a0b9e27f | 4896 | |
4cdb0ab0 VS |
4897 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4898 | if test "x$LINE" != x ; then | |
4899 | eval "DEFAULT_$LINE" | |
4900 | else | |
4901 | no_cache=1 | |
4902 | fi | |
4903 | ||
4904 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
4905 | |
4906 | fi | |
4cdb0ab0 VS |
4907 | |
4908 | ||
4909 | eval "$ac_cv_use_protocol_http" | |
4910 | if test "$no_cache" != 1; then | |
4911 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4912 | fi | |
4913 | ||
4914 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 4915 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4916 | else |
a0b9e27f | 4917 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4918 | fi |
a0b9e27f | 4919 | |
4cdb0ab0 | 4920 | |
5005acfe VZ |
4921 | enablestring= |
4922 | echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6 | |
521196a2 | 4923 | echo "configure:4924: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
4cdb0ab0 VS |
4924 | no_cache=0 |
4925 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4926 | if test "${enable_protocol_ftp+set}" = set; then | |
4927 | enableval="$enable_protocol_ftp" | |
a0b9e27f | 4928 | |
4cdb0ab0 VS |
4929 | if test "$enableval" = yes; then |
4930 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4931 | else | |
4932 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4933 | fi | |
a0b9e27f | 4934 | |
4cdb0ab0 | 4935 | else |
a0b9e27f | 4936 | |
4cdb0ab0 VS |
4937 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4938 | if test "x$LINE" != x ; then | |
4939 | eval "DEFAULT_$LINE" | |
4940 | else | |
4941 | no_cache=1 | |
4942 | fi | |
4943 | ||
4944 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
4945 | |
4946 | fi | |
4cdb0ab0 VS |
4947 | |
4948 | ||
4949 | eval "$ac_cv_use_protocol_ftp" | |
4950 | if test "$no_cache" != 1; then | |
4951 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4952 | fi | |
4953 | ||
4954 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 4955 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4956 | else |
a0b9e27f | 4957 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4958 | fi |
a0b9e27f | 4959 | |
4cdb0ab0 | 4960 | |
5005acfe VZ |
4961 | enablestring= |
4962 | echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6 | |
521196a2 | 4963 | echo "configure:4964: checking for --${enablestring:-enable}-protocol_file" >&5 |
4cdb0ab0 VS |
4964 | no_cache=0 |
4965 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4966 | if test "${enable_protocol_file+set}" = set; then | |
4967 | enableval="$enable_protocol_file" | |
a0b9e27f | 4968 | |
4cdb0ab0 VS |
4969 | if test "$enableval" = yes; then |
4970 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4971 | else | |
4972 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4973 | fi | |
a0b9e27f | 4974 | |
4cdb0ab0 | 4975 | else |
a0b9e27f | 4976 | |
4cdb0ab0 VS |
4977 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4978 | if test "x$LINE" != x ; then | |
4979 | eval "DEFAULT_$LINE" | |
4980 | else | |
4981 | no_cache=1 | |
4982 | fi | |
4983 | ||
4984 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
4985 | |
4986 | fi | |
4cdb0ab0 VS |
4987 | |
4988 | ||
4989 | eval "$ac_cv_use_protocol_file" | |
4990 | if test "$no_cache" != 1; then | |
4991 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4992 | fi | |
4993 | ||
4994 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 4995 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4996 | else |
a0b9e27f | 4997 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4998 | fi |
a0b9e27f | 4999 | |
52127426 | 5000 | |
8284b0c5 MB |
5001 | |
5002 | ||
5003 | ||
5005acfe VZ |
5004 | enablestring= |
5005 | echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6 | |
521196a2 | 5006 | echo "configure:5007: checking for --${enablestring:-enable}-threads" >&5 |
10f2d63a VZ |
5007 | no_cache=0 |
5008 | # Check whether --enable-threads or --disable-threads was given. | |
5009 | if test "${enable_threads+set}" = set; then | |
5010 | enableval="$enable_threads" | |
a0b9e27f | 5011 | |
10f2d63a VZ |
5012 | if test "$enableval" = yes; then |
5013 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
5014 | else | |
5015 | ac_cv_use_threads='wxUSE_THREADS=no' | |
5016 | fi | |
a0b9e27f | 5017 | |
10f2d63a | 5018 | else |
a0b9e27f | 5019 | |
10f2d63a VZ |
5020 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
5021 | if test "x$LINE" != x ; then | |
5022 | eval "DEFAULT_$LINE" | |
5023 | else | |
5024 | no_cache=1 | |
5025 | fi | |
5026 | ||
5027 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
a0b9e27f MB |
5028 | |
5029 | fi | |
10f2d63a VZ |
5030 | |
5031 | ||
5032 | eval "$ac_cv_use_threads" | |
5033 | if test "$no_cache" != 1; then | |
5034 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5035 | fi | |
5036 | ||
5037 | if test "$wxUSE_THREADS" = yes; then | |
a0b9e27f | 5038 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5039 | else |
a0b9e27f | 5040 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5041 | fi |
a0b9e27f | 5042 | |
10f2d63a | 5043 | |
b12915c1 VZ |
5044 | if test "$wxUSE_GUI" = "yes"; then |
5045 | ||
8284b0c5 MB |
5046 | |
5047 | ||
5005acfe VZ |
5048 | enablestring= |
5049 | echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6 | |
521196a2 | 5050 | echo "configure:5051: checking for --${enablestring:-enable}-docview" >&5 |
10f2d63a VZ |
5051 | no_cache=0 |
5052 | # Check whether --enable-docview or --disable-docview was given. | |
5053 | if test "${enable_docview+set}" = set; then | |
5054 | enableval="$enable_docview" | |
a0b9e27f | 5055 | |
10f2d63a VZ |
5056 | if test "$enableval" = yes; then |
5057 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5058 | else | |
5059 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5060 | fi | |
a0b9e27f | 5061 | |
10f2d63a | 5062 | else |
a0b9e27f | 5063 | |
10f2d63a VZ |
5064 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5065 | if test "x$LINE" != x ; then | |
5066 | eval "DEFAULT_$LINE" | |
5067 | else | |
5068 | no_cache=1 | |
5069 | fi | |
5070 | ||
5071 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
a0b9e27f MB |
5072 | |
5073 | fi | |
10f2d63a VZ |
5074 | |
5075 | ||
5076 | eval "$ac_cv_use_docview" | |
5077 | if test "$no_cache" != 1; then | |
5078 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5079 | fi | |
5080 | ||
5081 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
a0b9e27f | 5082 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5083 | else |
a0b9e27f | 5084 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5085 | fi |
a0b9e27f | 5086 | |
10f2d63a | 5087 | |
5005acfe VZ |
5088 | enablestring= |
5089 | echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6 | |
521196a2 | 5090 | echo "configure:5091: checking for --${enablestring:-enable}-help" >&5 |
10f2d63a VZ |
5091 | no_cache=0 |
5092 | # Check whether --enable-help or --disable-help was given. | |
5093 | if test "${enable_help+set}" = set; then | |
5094 | enableval="$enable_help" | |
a0b9e27f | 5095 | |
10f2d63a VZ |
5096 | if test "$enableval" = yes; then |
5097 | ac_cv_use_help='wxUSE_HELP=yes' | |
5098 | else | |
5099 | ac_cv_use_help='wxUSE_HELP=no' | |
5100 | fi | |
a0b9e27f | 5101 | |
10f2d63a | 5102 | else |
a0b9e27f | 5103 | |
10f2d63a VZ |
5104 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5105 | if test "x$LINE" != x ; then | |
5106 | eval "DEFAULT_$LINE" | |
5107 | else | |
5108 | no_cache=1 | |
5109 | fi | |
5110 | ||
5111 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
a0b9e27f MB |
5112 | |
5113 | fi | |
10f2d63a VZ |
5114 | |
5115 | ||
5116 | eval "$ac_cv_use_help" | |
5117 | if test "$no_cache" != 1; then | |
5118 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5119 | fi | |
5120 | ||
5121 | if test "$wxUSE_HELP" = yes; then | |
a0b9e27f | 5122 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5123 | else |
a0b9e27f | 5124 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5125 | fi |
a0b9e27f | 5126 | |
10f2d63a | 5127 | |
5005acfe VZ |
5128 | enablestring= |
5129 | echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6 | |
521196a2 | 5130 | echo "configure:5131: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
29fd3c0c VS |
5131 | no_cache=0 |
5132 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5133 | if test "${enable_mshtmlhelp+set}" = set; then | |
5134 | enableval="$enable_mshtmlhelp" | |
a0b9e27f | 5135 | |
29fd3c0c VS |
5136 | if test "$enableval" = yes; then |
5137 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5138 | else | |
5139 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5140 | fi | |
a0b9e27f | 5141 | |
29fd3c0c | 5142 | else |
a0b9e27f | 5143 | |
29fd3c0c VS |
5144 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5145 | if test "x$LINE" != x ; then | |
5146 | eval "DEFAULT_$LINE" | |
5147 | else | |
5148 | no_cache=1 | |
5149 | fi | |
5150 | ||
5151 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
a0b9e27f MB |
5152 | |
5153 | fi | |
29fd3c0c VS |
5154 | |
5155 | ||
5156 | eval "$ac_cv_use_mshtmlhelp" | |
5157 | if test "$no_cache" != 1; then | |
5158 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5159 | fi | |
5160 | ||
5161 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
a0b9e27f | 5162 | echo "$ac_t""yes" 1>&6 |
29fd3c0c | 5163 | else |
a0b9e27f | 5164 | echo "$ac_t""no" 1>&6 |
29fd3c0c | 5165 | fi |
a0b9e27f | 5166 | |
29fd3c0c | 5167 | |
5005acfe VZ |
5168 | enablestring= |
5169 | echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6 | |
521196a2 | 5170 | echo "configure:5171: checking for --${enablestring:-enable}-html" >&5 |
3379ed37 VZ |
5171 | no_cache=0 |
5172 | # Check whether --enable-html or --disable-html was given. | |
5173 | if test "${enable_html+set}" = set; then | |
5174 | enableval="$enable_html" | |
a0b9e27f | 5175 | |
3379ed37 VZ |
5176 | if test "$enableval" = yes; then |
5177 | ac_cv_use_html='wxUSE_HTML=yes' | |
5178 | else | |
5179 | ac_cv_use_html='wxUSE_HTML=no' | |
5180 | fi | |
a0b9e27f | 5181 | |
3379ed37 | 5182 | else |
a0b9e27f | 5183 | |
3379ed37 VZ |
5184 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
5185 | if test "x$LINE" != x ; then | |
5186 | eval "DEFAULT_$LINE" | |
5187 | else | |
5188 | no_cache=1 | |
5189 | fi | |
5190 | ||
5191 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
a0b9e27f MB |
5192 | |
5193 | fi | |
3379ed37 VZ |
5194 | |
5195 | ||
5196 | eval "$ac_cv_use_html" | |
5197 | if test "$no_cache" != 1; then | |
5198 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5199 | fi | |
5200 | ||
5201 | if test "$wxUSE_HTML" = yes; then | |
a0b9e27f | 5202 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5203 | else |
a0b9e27f | 5204 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5205 | fi |
a0b9e27f | 5206 | |
3379ed37 | 5207 | |
5005acfe VZ |
5208 | enablestring= |
5209 | echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6 | |
521196a2 | 5210 | echo "configure:5211: checking for --${enablestring:-enable}-htmlhelp" >&5 |
3379ed37 VZ |
5211 | no_cache=0 |
5212 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5213 | if test "${enable_htmlhelp+set}" = set; then | |
5214 | enableval="$enable_htmlhelp" | |
a0b9e27f | 5215 | |
3379ed37 VZ |
5216 | if test "$enableval" = yes; then |
5217 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5218 | else | |
5219 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5220 | fi | |
a0b9e27f | 5221 | |
3379ed37 | 5222 | else |
a0b9e27f | 5223 | |
3379ed37 VZ |
5224 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5225 | if test "x$LINE" != x ; then | |
5226 | eval "DEFAULT_$LINE" | |
5227 | else | |
5228 | no_cache=1 | |
5229 | fi | |
5230 | ||
5231 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
a0b9e27f MB |
5232 | |
5233 | fi | |
3379ed37 VZ |
5234 | |
5235 | ||
5236 | eval "$ac_cv_use_htmlhelp" | |
5237 | if test "$no_cache" != 1; then | |
5238 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5239 | fi | |
5240 | ||
5241 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
a0b9e27f | 5242 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5243 | else |
a0b9e27f | 5244 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5245 | fi |
a0b9e27f | 5246 | |
3379ed37 | 5247 | |
5005acfe VZ |
5248 | enablestring= |
5249 | echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6 | |
521196a2 | 5250 | echo "configure:5251: checking for --${enablestring:-enable}-constraints" >&5 |
10f2d63a VZ |
5251 | no_cache=0 |
5252 | # Check whether --enable-constraints or --disable-constraints was given. | |
5253 | if test "${enable_constraints+set}" = set; then | |
5254 | enableval="$enable_constraints" | |
a0b9e27f | 5255 | |
10f2d63a VZ |
5256 | if test "$enableval" = yes; then |
5257 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5258 | else | |
5259 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5260 | fi | |
a0b9e27f | 5261 | |
10f2d63a | 5262 | else |
a0b9e27f | 5263 | |
10f2d63a VZ |
5264 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5265 | if test "x$LINE" != x ; then | |
5266 | eval "DEFAULT_$LINE" | |
5267 | else | |
5268 | no_cache=1 | |
5269 | fi | |
5270 | ||
5271 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
a0b9e27f MB |
5272 | |
5273 | fi | |
10f2d63a VZ |
5274 | |
5275 | ||
5276 | eval "$ac_cv_use_constraints" | |
5277 | if test "$no_cache" != 1; then | |
5278 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5279 | fi | |
5280 | ||
5281 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
a0b9e27f | 5282 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5283 | else |
a0b9e27f | 5284 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5285 | fi |
a0b9e27f | 5286 | |
10f2d63a | 5287 | |
5005acfe VZ |
5288 | enablestring= |
5289 | echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6 | |
521196a2 | 5290 | echo "configure:5291: checking for --${enablestring:-enable}-printarch" >&5 |
10f2d63a VZ |
5291 | no_cache=0 |
5292 | # Check whether --enable-printarch or --disable-printarch was given. | |
5293 | if test "${enable_printarch+set}" = set; then | |
5294 | enableval="$enable_printarch" | |
a0b9e27f | 5295 | |
10f2d63a VZ |
5296 | if test "$enableval" = yes; then |
5297 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5298 | else | |
5299 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5300 | fi | |
a0b9e27f | 5301 | |
10f2d63a | 5302 | else |
a0b9e27f | 5303 | |
10f2d63a VZ |
5304 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5305 | if test "x$LINE" != x ; then | |
5306 | eval "DEFAULT_$LINE" | |
5307 | else | |
5308 | no_cache=1 | |
5309 | fi | |
5310 | ||
5311 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
a0b9e27f MB |
5312 | |
5313 | fi | |
10f2d63a VZ |
5314 | |
5315 | ||
5316 | eval "$ac_cv_use_printarch" | |
5317 | if test "$no_cache" != 1; then | |
5318 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5319 | fi | |
5320 | ||
5321 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
a0b9e27f | 5322 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5323 | else |
a0b9e27f | 5324 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5325 | fi |
a0b9e27f | 5326 | |
10f2d63a | 5327 | |
5005acfe VZ |
5328 | enablestring= |
5329 | echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6 | |
521196a2 | 5330 | echo "configure:5331: checking for --${enablestring:-enable}-mdi" >&5 |
10f2d63a VZ |
5331 | no_cache=0 |
5332 | # Check whether --enable-mdi or --disable-mdi was given. | |
5333 | if test "${enable_mdi+set}" = set; then | |
5334 | enableval="$enable_mdi" | |
a0b9e27f | 5335 | |
10f2d63a VZ |
5336 | if test "$enableval" = yes; then |
5337 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5338 | else | |
5339 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5340 | fi | |
a0b9e27f | 5341 | |
10f2d63a | 5342 | else |
a0b9e27f | 5343 | |
10f2d63a VZ |
5344 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5345 | if test "x$LINE" != x ; then | |
5346 | eval "DEFAULT_$LINE" | |
5347 | else | |
5348 | no_cache=1 | |
5349 | fi | |
5350 | ||
5351 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
a0b9e27f MB |
5352 | |
5353 | fi | |
10f2d63a VZ |
5354 | |
5355 | ||
5356 | eval "$ac_cv_use_mdi" | |
5357 | if test "$no_cache" != 1; then | |
5358 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5359 | fi | |
5360 | ||
5361 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
a0b9e27f | 5362 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5363 | else |
a0b9e27f | 5364 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5365 | fi |
a0b9e27f | 5366 | |
698dcdb6 | 5367 | |
5005acfe VZ |
5368 | enablestring= |
5369 | echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6 | |
521196a2 | 5370 | echo "configure:5371: checking for --${enablestring:-enable}-loggui" >&5 |
1e6feb95 VZ |
5371 | no_cache=0 |
5372 | # Check whether --enable-loggui or --disable-loggui was given. | |
5373 | if test "${enable_loggui+set}" = set; then | |
5374 | enableval="$enable_loggui" | |
a0b9e27f | 5375 | |
1e6feb95 VZ |
5376 | if test "$enableval" = yes; then |
5377 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5378 | else | |
5379 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5380 | fi | |
a0b9e27f | 5381 | |
1e6feb95 | 5382 | else |
a0b9e27f | 5383 | |
1e6feb95 VZ |
5384 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
5385 | if test "x$LINE" != x ; then | |
5386 | eval "DEFAULT_$LINE" | |
5387 | else | |
5388 | no_cache=1 | |
5389 | fi | |
5390 | ||
5391 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
a0b9e27f MB |
5392 | |
5393 | fi | |
1e6feb95 VZ |
5394 | |
5395 | ||
5396 | eval "$ac_cv_use_loggui" | |
5397 | if test "$no_cache" != 1; then | |
5398 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5399 | fi | |
5400 | ||
5401 | if test "$wxUSE_LOGGUI" = yes; then | |
a0b9e27f | 5402 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5403 | else |
a0b9e27f | 5404 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5405 | fi |
a0b9e27f | 5406 | |
1e6feb95 | 5407 | |
5005acfe VZ |
5408 | enablestring= |
5409 | echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6 | |
521196a2 | 5410 | echo "configure:5411: checking for --${enablestring:-enable}-logwin" >&5 |
1e6feb95 VZ |
5411 | no_cache=0 |
5412 | # Check whether --enable-logwin or --disable-logwin was given. | |
5413 | if test "${enable_logwin+set}" = set; then | |
5414 | enableval="$enable_logwin" | |
a0b9e27f | 5415 | |
1e6feb95 VZ |
5416 | if test "$enableval" = yes; then |
5417 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5418 | else | |
5419 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5420 | fi | |
a0b9e27f | 5421 | |
1e6feb95 | 5422 | else |
a0b9e27f | 5423 | |
1e6feb95 VZ |
5424 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
5425 | if test "x$LINE" != x ; then | |
5426 | eval "DEFAULT_$LINE" | |
5427 | else | |
5428 | no_cache=1 | |
5429 | fi | |
5430 | ||
5431 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
a0b9e27f MB |
5432 | |
5433 | fi | |
1e6feb95 VZ |
5434 | |
5435 | ||
5436 | eval "$ac_cv_use_logwin" | |
5437 | if test "$no_cache" != 1; then | |
5438 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5439 | fi | |
5440 | ||
5441 | if test "$wxUSE_LOGWINDOW" = yes; then | |
a0b9e27f | 5442 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5443 | else |
a0b9e27f | 5444 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5445 | fi |
a0b9e27f | 5446 | |
1e6feb95 | 5447 | |
5005acfe VZ |
5448 | enablestring= |
5449 | echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6 | |
521196a2 | 5450 | echo "configure:5451: checking for --${enablestring:-enable}-logdialog" >&5 |
69d27ff7 MB |
5451 | no_cache=0 |
5452 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5453 | if test "${enable_logdialog+set}" = set; then | |
5454 | enableval="$enable_logdialog" | |
a0b9e27f | 5455 | |
69d27ff7 MB |
5456 | if test "$enableval" = yes; then |
5457 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5458 | else | |
5459 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5460 | fi | |
a0b9e27f | 5461 | |
69d27ff7 | 5462 | else |
a0b9e27f | 5463 | |
69d27ff7 MB |
5464 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
5465 | if test "x$LINE" != x ; then | |
5466 | eval "DEFAULT_$LINE" | |
5467 | else | |
5468 | no_cache=1 | |
5469 | fi | |
5470 | ||
5471 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
a0b9e27f MB |
5472 | |
5473 | fi | |
69d27ff7 MB |
5474 | |
5475 | ||
5476 | eval "$ac_cv_use_logdialog" | |
5477 | if test "$no_cache" != 1; then | |
5478 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5479 | fi | |
5480 | ||
5481 | if test "$wxUSE_LOGDIALOG" = yes; then | |
a0b9e27f | 5482 | echo "$ac_t""yes" 1>&6 |
69d27ff7 | 5483 | else |
a0b9e27f | 5484 | echo "$ac_t""no" 1>&6 |
69d27ff7 | 5485 | fi |
a0b9e27f | 5486 | |
8284b0c5 | 5487 | |
52127426 | 5488 | |
5005acfe VZ |
5489 | enablestring= |
5490 | echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6 | |
521196a2 | 5491 | echo "configure:5492: checking for --${enablestring:-enable}-postscript" >&5 |
10f2d63a VZ |
5492 | no_cache=0 |
5493 | # Check whether --enable-postscript or --disable-postscript was given. | |
5494 | if test "${enable_postscript+set}" = set; then | |
5495 | enableval="$enable_postscript" | |
a0b9e27f | 5496 | |
10f2d63a VZ |
5497 | if test "$enableval" = yes; then |
5498 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5499 | else | |
5500 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5501 | fi | |
a0b9e27f | 5502 | |
10f2d63a | 5503 | else |
a0b9e27f | 5504 | |
10f2d63a VZ |
5505 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5506 | if test "x$LINE" != x ; then | |
5507 | eval "DEFAULT_$LINE" | |
5508 | else | |
5509 | no_cache=1 | |
5510 | fi | |
5511 | ||
5512 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
a0b9e27f MB |
5513 | |
5514 | fi | |
10f2d63a VZ |
5515 | |
5516 | ||
5517 | eval "$ac_cv_use_postscript" | |
5518 | if test "$no_cache" != 1; then | |
5519 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5520 | fi | |
5521 | ||
5522 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
a0b9e27f | 5523 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5524 | else |
a0b9e27f | 5525 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5526 | fi |
a0b9e27f | 5527 | |
8284b0c5 MB |
5528 | |
5529 | ||
52127426 | 5530 | |
8284b0c5 | 5531 | |
5005acfe VZ |
5532 | enablestring= |
5533 | echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6 | |
521196a2 | 5534 | echo "configure:5535: checking for --${enablestring:-enable}-prologio" >&5 |
10f2d63a VZ |
5535 | no_cache=0 |
5536 | # Check whether --enable-prologio or --disable-prologio was given. | |
5537 | if test "${enable_prologio+set}" = set; then | |
5538 | enableval="$enable_prologio" | |
a0b9e27f | 5539 | |
10f2d63a VZ |
5540 | if test "$enableval" = yes; then |
5541 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5542 | else | |
5543 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5544 | fi | |
a0b9e27f | 5545 | |
10f2d63a | 5546 | else |
a0b9e27f | 5547 | |
10f2d63a VZ |
5548 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5549 | if test "x$LINE" != x ; then | |
5550 | eval "DEFAULT_$LINE" | |
5551 | else | |
5552 | no_cache=1 | |
5553 | fi | |
5554 | ||
5555 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
a0b9e27f MB |
5556 | |
5557 | fi | |
10f2d63a VZ |
5558 | |
5559 | ||
5560 | eval "$ac_cv_use_prologio" | |
5561 | if test "$no_cache" != 1; then | |
5562 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5563 | fi | |
5564 | ||
5565 | if test "$wxUSE_PROLOGIO" = yes; then | |
a0b9e27f | 5566 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5567 | else |
a0b9e27f | 5568 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5569 | fi |
a0b9e27f | 5570 | |
10f2d63a | 5571 | |
5005acfe VZ |
5572 | enablestring= |
5573 | echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6 | |
521196a2 | 5574 | echo "configure:5575: checking for --${enablestring:-enable}-resources" >&5 |
10f2d63a VZ |
5575 | no_cache=0 |
5576 | # Check whether --enable-resources or --disable-resources was given. | |
5577 | if test "${enable_resources+set}" = set; then | |
5578 | enableval="$enable_resources" | |
a0b9e27f | 5579 | |
10f2d63a VZ |
5580 | if test "$enableval" = yes; then |
5581 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5582 | else | |
5583 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5584 | fi | |
a0b9e27f | 5585 | |
10f2d63a | 5586 | else |
a0b9e27f | 5587 | |
10f2d63a VZ |
5588 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5589 | if test "x$LINE" != x ; then | |
5590 | eval "DEFAULT_$LINE" | |
5591 | else | |
5592 | no_cache=1 | |
5593 | fi | |
5594 | ||
5595 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
a0b9e27f MB |
5596 | |
5597 | fi | |
10f2d63a VZ |
5598 | |
5599 | ||
5600 | eval "$ac_cv_use_resources" | |
5601 | if test "$no_cache" != 1; then | |
5602 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5603 | fi | |
5604 | ||
5605 | if test "$wxUSE_RESOURCES" = yes; then | |
a0b9e27f | 5606 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5607 | else |
a0b9e27f | 5608 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5609 | fi |
a0b9e27f | 5610 | |
8284b0c5 | 5611 | |
52127426 | 5612 | |
5005acfe VZ |
5613 | enablestring= |
5614 | echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6 | |
521196a2 | 5615 | echo "configure:5616: checking for --${enablestring:-enable}-xresources" >&5 |
10f2d63a VZ |
5616 | no_cache=0 |
5617 | # Check whether --enable-xresources or --disable-xresources was given. | |
5618 | if test "${enable_xresources+set}" = set; then | |
5619 | enableval="$enable_xresources" | |
a0b9e27f | 5620 | |
10f2d63a VZ |
5621 | if test "$enableval" = yes; then |
5622 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5623 | else | |
5624 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5625 | fi | |
a0b9e27f | 5626 | |
10f2d63a | 5627 | else |
a0b9e27f | 5628 | |
10f2d63a VZ |
5629 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5630 | if test "x$LINE" != x ; then | |
5631 | eval "DEFAULT_$LINE" | |
5632 | else | |
5633 | no_cache=1 | |
5634 | fi | |
5635 | ||
5636 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
a0b9e27f MB |
5637 | |
5638 | fi | |
10f2d63a VZ |
5639 | |
5640 | ||
5641 | eval "$ac_cv_use_xresources" | |
5642 | if test "$no_cache" != 1; then | |
5643 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5644 | fi | |
5645 | ||
5646 | if test "$wxUSE_X_RESOURCES" = yes; then | |
a0b9e27f | 5647 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5648 | else |
a0b9e27f | 5649 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5650 | fi |
a0b9e27f | 5651 | |
8284b0c5 MB |
5652 | |
5653 | ||
52127426 | 5654 | |
5005acfe VZ |
5655 | enablestring= |
5656 | echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6 | |
521196a2 | 5657 | echo "configure:5658: checking for --${enablestring:-enable}-clipboard" >&5 |
10f2d63a VZ |
5658 | no_cache=0 |
5659 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5660 | if test "${enable_clipboard+set}" = set; then | |
5661 | enableval="$enable_clipboard" | |
a0b9e27f | 5662 | |
10f2d63a VZ |
5663 | if test "$enableval" = yes; then |
5664 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5665 | else | |
5666 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5667 | fi | |
a0b9e27f | 5668 | |
10f2d63a | 5669 | else |
a0b9e27f | 5670 | |
10f2d63a VZ |
5671 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5672 | if test "x$LINE" != x ; then | |
5673 | eval "DEFAULT_$LINE" | |
5674 | else | |
5675 | no_cache=1 | |
5676 | fi | |
5677 | ||
5678 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
a0b9e27f MB |
5679 | |
5680 | fi | |
10f2d63a VZ |
5681 | |
5682 | ||
5683 | eval "$ac_cv_use_clipboard" | |
5684 | if test "$no_cache" != 1; then | |
5685 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5686 | fi | |
5687 | ||
5688 | if test "$wxUSE_CLIPBOARD" = yes; then | |
a0b9e27f | 5689 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5690 | else |
a0b9e27f | 5691 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5692 | fi |
a0b9e27f | 5693 | |
10f2d63a | 5694 | |
5005acfe VZ |
5695 | enablestring= |
5696 | echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6 | |
521196a2 | 5697 | echo "configure:5698: checking for --${enablestring:-enable}-dnd" >&5 |
10f2d63a VZ |
5698 | no_cache=0 |
5699 | # Check whether --enable-dnd or --disable-dnd was given. | |
5700 | if test "${enable_dnd+set}" = set; then | |
5701 | enableval="$enable_dnd" | |
a0b9e27f | 5702 | |
10f2d63a VZ |
5703 | if test "$enableval" = yes; then |
5704 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5705 | else | |
5706 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5707 | fi | |
a0b9e27f | 5708 | |
10f2d63a | 5709 | else |
a0b9e27f | 5710 | |
10f2d63a VZ |
5711 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5712 | if test "x$LINE" != x ; then | |
5713 | eval "DEFAULT_$LINE" | |
5714 | else | |
5715 | no_cache=1 | |
5716 | fi | |
5717 | ||
5718 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
a0b9e27f MB |
5719 | |
5720 | fi | |
10f2d63a VZ |
5721 | |
5722 | ||
5723 | eval "$ac_cv_use_dnd" | |
5724 | if test "$no_cache" != 1; then | |
5725 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5726 | fi | |
5727 | ||
5728 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
a0b9e27f | 5729 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5730 | else |
a0b9e27f | 5731 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5732 | fi |
a0b9e27f | 5733 | |
10f2d63a | 5734 | |
5005acfe VZ |
5735 | enablestring= |
5736 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
521196a2 | 5737 | echo "configure:5738: checking for --${enablestring:-enable}-metafile" >&5 |
b64f0a5f RL |
5738 | no_cache=0 |
5739 | # Check whether --enable-metafile or --disable-metafile was given. | |
5740 | if test "${enable_metafile+set}" = set; then | |
5741 | enableval="$enable_metafile" | |
a0b9e27f | 5742 | |
b64f0a5f RL |
5743 | if test "$enableval" = yes; then |
5744 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5745 | else | |
5746 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5747 | fi | |
a0b9e27f | 5748 | |
b64f0a5f | 5749 | else |
a0b9e27f | 5750 | |
b64f0a5f RL |
5751 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5752 | if test "x$LINE" != x ; then | |
5753 | eval "DEFAULT_$LINE" | |
5754 | else | |
5755 | no_cache=1 | |
5756 | fi | |
5757 | ||
5758 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
5759 | |
5760 | fi | |
b64f0a5f RL |
5761 | |
5762 | ||
5763 | eval "$ac_cv_use_metafile" | |
5764 | if test "$no_cache" != 1; then | |
5765 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5766 | fi | |
5767 | ||
5768 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 5769 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5770 | else |
a0b9e27f | 5771 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5772 | fi |
a0b9e27f | 5773 | |
52127426 | 5774 | |
8284b0c5 | 5775 | |
5005acfe VZ |
5776 | enablestring= |
5777 | echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6 | |
521196a2 | 5778 | echo "configure:5779: checking for --${enablestring:-enable}-treelayout" >&5 |
10f2d63a | 5779 | no_cache=0 |
24176f2c GD |
5780 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5781 | if test "${enable_treelayout+set}" = set; then | |
5782 | enableval="$enable_treelayout" | |
a0b9e27f | 5783 | |
10f2d63a | 5784 | if test "$enableval" = yes; then |
24176f2c | 5785 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5786 | else |
24176f2c | 5787 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5788 | fi |
a0b9e27f | 5789 | |
10f2d63a | 5790 | else |
a0b9e27f | 5791 | |
24176f2c | 5792 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5793 | if test "x$LINE" != x ; then |
5794 | eval "DEFAULT_$LINE" | |
5795 | else | |
5796 | no_cache=1 | |
5797 | fi | |
5798 | ||
24176f2c | 5799 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
a0b9e27f MB |
5800 | |
5801 | fi | |
10f2d63a VZ |
5802 | |
5803 | ||
24176f2c | 5804 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5805 | if test "$no_cache" != 1; then |
24176f2c | 5806 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5807 | fi |
5808 | ||
24176f2c | 5809 | if test "$wxUSE_TREELAYOUT" = yes; then |
a0b9e27f | 5810 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5811 | else |
a0b9e27f | 5812 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5813 | fi |
a0b9e27f | 5814 | |
8284b0c5 | 5815 | |
52127426 | 5816 | |
8284b0c5 | 5817 | |
5005acfe VZ |
5818 | enablestring= |
5819 | echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6 | |
521196a2 | 5820 | echo "configure:5821: checking for --${enablestring:-enable}-controls" >&5 |
10f2d63a VZ |
5821 | no_cache=0 |
5822 | # Check whether --enable-controls or --disable-controls was given. | |
5823 | if test "${enable_controls+set}" = set; then | |
5824 | enableval="$enable_controls" | |
a0b9e27f | 5825 | |
10f2d63a VZ |
5826 | if test "$enableval" = yes; then |
5827 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5828 | else | |
5829 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5830 | fi | |
a0b9e27f | 5831 | |
10f2d63a | 5832 | else |
a0b9e27f | 5833 | |
10f2d63a VZ |
5834 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5835 | if test "x$LINE" != x ; then | |
5836 | eval "DEFAULT_$LINE" | |
5837 | else | |
5838 | no_cache=1 | |
5839 | fi | |
5840 | ||
5841 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
a0b9e27f MB |
5842 | |
5843 | fi | |
10f2d63a VZ |
5844 | |
5845 | ||
5846 | eval "$ac_cv_use_controls" | |
5847 | if test "$no_cache" != 1; then | |
5848 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5849 | fi | |
5850 | ||
5851 | if test "$wxUSE_CONTROLS" = yes; then | |
a0b9e27f | 5852 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5853 | else |
a0b9e27f | 5854 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5855 | fi |
a0b9e27f | 5856 | |
10f2d63a VZ |
5857 | |
5858 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5859 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5860 | DEFAULT_wxUSE_BMPBUTTON=yes |
5861 | DEFAULT_wxUSE_BUTTON=yes | |
5862 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5863 | DEFAULT_wxUSE_CARET=yes |
5864 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5865 | DEFAULT_wxUSE_CHECKBOX=yes |
5866 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5867 | DEFAULT_wxUSE_CHOICE=yes | |
5868 | DEFAULT_wxUSE_GAUGE=yes | |
5869 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5870 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5871 | DEFAULT_wxUSE_IMAGLIST=yes |
5872 | DEFAULT_wxUSE_LISTBOX=yes | |
5873 | DEFAULT_wxUSE_LISTCTRL=yes | |
5874 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5875 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5876 | DEFAULT_wxUSE_RADIOBOX=yes |
5877 | DEFAULT_wxUSE_RADIOBTN=yes | |
5878 | DEFAULT_wxUSE_SASH=yes | |
5879 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5880 | DEFAULT_wxUSE_SLIDER=yes | |
5881 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5882 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5883 | DEFAULT_wxUSE_SPLITTER=yes |
5884 | DEFAULT_wxUSE_STATBMP=yes | |
5885 | DEFAULT_wxUSE_STATBOX=yes | |
5886 | DEFAULT_wxUSE_STATLINE=yes | |
5887 | DEFAULT_wxUSE_STATUSBAR=yes | |
5888 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5889 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5890 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5891 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5892 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5893 | DEFAULT_wxUSE_TOOLTIPS=yes |
5894 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5895 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5896 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5897 | elif test "$wxUSE_CONTROLS" = "no"; then |
5898 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5899 | DEFAULT_wxUSE_BMPBUTTON=no |
5900 | DEFAULT_wxUSE_BUTTON=no | |
5901 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5902 | DEFAULT_wxUSE_CARET=no |
5903 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5904 | DEFAULT_wxUSE_CHECKBOX=no |
5905 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5906 | DEFAULT_wxUSE_CHOICE=no | |
5907 | DEFAULT_wxUSE_GAUGE=no | |
5908 | DEFAULT_wxUSE_GRID=no | |
5909 | DEFAULT_wxUSE_NEW_GRID=no | |
5910 | DEFAULT_wxUSE_IMAGLIST=no | |
5911 | DEFAULT_wxUSE_LISTBOX=no | |
5912 | DEFAULT_wxUSE_LISTCTRL=no | |
5913 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5914 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5915 | DEFAULT_wxUSE_RADIOBOX=no |
5916 | DEFAULT_wxUSE_RADIOBTN=no | |
5917 | DEFAULT_wxUSE_SASH=no | |
5918 | DEFAULT_wxUSE_SCROLLBAR=no | |
5919 | DEFAULT_wxUSE_SLIDER=no | |
5920 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5921 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5922 | DEFAULT_wxUSE_SPLITTER=no |
5923 | DEFAULT_wxUSE_STATBMP=no | |
5924 | DEFAULT_wxUSE_STATBOX=no | |
5925 | DEFAULT_wxUSE_STATLINE=no | |
5926 | DEFAULT_wxUSE_STATUSBAR=no | |
5927 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5928 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5929 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5930 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5931 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5932 | DEFAULT_wxUSE_TOOLTIPS=no |
5933 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5934 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5935 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5936 | fi |
5937 | ||
8284b0c5 | 5938 | |
5005acfe VZ |
5939 | enablestring= |
5940 | echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6 | |
521196a2 | 5941 | echo "configure:5942: checking for --${enablestring:-enable}-accel" >&5 |
10f2d63a VZ |
5942 | no_cache=0 |
5943 | # Check whether --enable-accel or --disable-accel was given. | |
5944 | if test "${enable_accel+set}" = set; then | |
5945 | enableval="$enable_accel" | |
a0b9e27f | 5946 | |
10f2d63a VZ |
5947 | if test "$enableval" = yes; then |
5948 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5949 | else | |
5950 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5951 | fi | |
a0b9e27f | 5952 | |
10f2d63a | 5953 | else |
a0b9e27f | 5954 | |
10f2d63a VZ |
5955 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5956 | if test "x$LINE" != x ; then | |
5957 | eval "DEFAULT_$LINE" | |
5958 | else | |
5959 | no_cache=1 | |
5960 | fi | |
5961 | ||
5962 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
a0b9e27f MB |
5963 | |
5964 | fi | |
10f2d63a VZ |
5965 | |
5966 | ||
5967 | eval "$ac_cv_use_accel" | |
5968 | if test "$no_cache" != 1; then | |
5969 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5970 | fi | |
5971 | ||
5972 | if test "$wxUSE_ACCEL" = yes; then | |
a0b9e27f | 5973 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5974 | else |
a0b9e27f | 5975 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5976 | fi |
a0b9e27f | 5977 | |
10f2d63a | 5978 | |
5005acfe VZ |
5979 | enablestring= |
5980 | echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6 | |
521196a2 | 5981 | echo "configure:5982: checking for --${enablestring:-enable}-button" >&5 |
10f2d63a | 5982 | no_cache=0 |
1e6feb95 VZ |
5983 | # Check whether --enable-button or --disable-button was given. |
5984 | if test "${enable_button+set}" = set; then | |
5985 | enableval="$enable_button" | |
a0b9e27f | 5986 | |
10f2d63a | 5987 | if test "$enableval" = yes; then |
1e6feb95 | 5988 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5989 | else |
1e6feb95 | 5990 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5991 | fi |
a0b9e27f | 5992 | |
10f2d63a | 5993 | else |
a0b9e27f | 5994 | |
1e6feb95 | 5995 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5996 | if test "x$LINE" != x ; then |
5997 | eval "DEFAULT_$LINE" | |
5998 | else | |
5999 | no_cache=1 | |
6000 | fi | |
6001 | ||
1e6feb95 | 6002 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
a0b9e27f MB |
6003 | |
6004 | fi | |
10f2d63a VZ |
6005 | |
6006 | ||
1e6feb95 | 6007 | eval "$ac_cv_use_button" |
10f2d63a | 6008 | if test "$no_cache" != 1; then |
1e6feb95 | 6009 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6010 | fi |
6011 | ||
1e6feb95 | 6012 | if test "$wxUSE_BUTTON" = yes; then |
a0b9e27f | 6013 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6014 | else |
a0b9e27f | 6015 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6016 | fi |
a0b9e27f | 6017 | |
10f2d63a | 6018 | |
5005acfe VZ |
6019 | enablestring= |
6020 | echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6 | |
521196a2 | 6021 | echo "configure:6022: checking for --${enablestring:-enable}-bmpbutton" >&5 |
10f2d63a VZ |
6022 | no_cache=0 |
6023 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6024 | if test "${enable_bmpbutton+set}" = set; then | |
6025 | enableval="$enable_bmpbutton" | |
a0b9e27f | 6026 | |
10f2d63a VZ |
6027 | if test "$enableval" = yes; then |
6028 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6029 | else | |
6030 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6031 | fi | |
a0b9e27f | 6032 | |
10f2d63a | 6033 | else |
a0b9e27f | 6034 | |
10f2d63a VZ |
6035 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
6036 | if test "x$LINE" != x ; then | |
6037 | eval "DEFAULT_$LINE" | |
6038 | else | |
6039 | no_cache=1 | |
6040 | fi | |
6041 | ||
6042 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
a0b9e27f MB |
6043 | |
6044 | fi | |
10f2d63a VZ |
6045 | |
6046 | ||
6047 | eval "$ac_cv_use_bmpbutton" | |
6048 | if test "$no_cache" != 1; then | |
6049 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6050 | fi | |
6051 | ||
6052 | if test "$wxUSE_BMPBUTTON" = yes; then | |
a0b9e27f | 6053 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6054 | else |
a0b9e27f | 6055 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6056 | fi |
a0b9e27f | 6057 | |
10f2d63a | 6058 | |
5005acfe VZ |
6059 | enablestring= |
6060 | echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6 | |
521196a2 | 6061 | echo "configure:6062: checking for --${enablestring:-enable}-calendar" >&5 |
1e6feb95 VZ |
6062 | no_cache=0 |
6063 | # Check whether --enable-calendar or --disable-calendar was given. | |
6064 | if test "${enable_calendar+set}" = set; then | |
6065 | enableval="$enable_calendar" | |
a0b9e27f | 6066 | |
1e6feb95 VZ |
6067 | if test "$enableval" = yes; then |
6068 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6069 | else | |
6070 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6071 | fi | |
a0b9e27f | 6072 | |
1e6feb95 | 6073 | else |
a0b9e27f | 6074 | |
1e6feb95 VZ |
6075 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6076 | if test "x$LINE" != x ; then | |
6077 | eval "DEFAULT_$LINE" | |
6078 | else | |
6079 | no_cache=1 | |
6080 | fi | |
6081 | ||
6082 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
a0b9e27f MB |
6083 | |
6084 | fi | |
1e6feb95 VZ |
6085 | |
6086 | ||
6087 | eval "$ac_cv_use_calendar" | |
6088 | if test "$no_cache" != 1; then | |
6089 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6090 | fi | |
6091 | ||
6092 | if test "$wxUSE_CALCTRL" = yes; then | |
a0b9e27f | 6093 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6094 | else |
a0b9e27f | 6095 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6096 | fi |
a0b9e27f | 6097 | |
1e6feb95 | 6098 | |
5005acfe VZ |
6099 | enablestring= |
6100 | echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6 | |
521196a2 | 6101 | echo "configure:6102: checking for --${enablestring:-enable}-caret" >&5 |
1e6feb95 VZ |
6102 | no_cache=0 |
6103 | # Check whether --enable-caret or --disable-caret was given. | |
6104 | if test "${enable_caret+set}" = set; then | |
6105 | enableval="$enable_caret" | |
a0b9e27f | 6106 | |
1e6feb95 VZ |
6107 | if test "$enableval" = yes; then |
6108 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6109 | else | |
6110 | ac_cv_use_caret='wxUSE_CARET=no' | |
6111 | fi | |
a0b9e27f | 6112 | |
1e6feb95 | 6113 | else |
a0b9e27f | 6114 | |
1e6feb95 VZ |
6115 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6116 | if test "x$LINE" != x ; then | |
6117 | eval "DEFAULT_$LINE" | |
6118 | else | |
6119 | no_cache=1 | |
6120 | fi | |
6121 | ||
6122 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
a0b9e27f MB |
6123 | |
6124 | fi | |
1e6feb95 VZ |
6125 | |
6126 | ||
6127 | eval "$ac_cv_use_caret" | |
6128 | if test "$no_cache" != 1; then | |
6129 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6130 | fi | |
6131 | ||
6132 | if test "$wxUSE_CARET" = yes; then | |
a0b9e27f | 6133 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6134 | else |
a0b9e27f | 6135 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6136 | fi |
a0b9e27f | 6137 | |
1e6feb95 | 6138 | |
5005acfe VZ |
6139 | enablestring= |
6140 | echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6 | |
521196a2 | 6141 | echo "configure:6142: checking for --${enablestring:-enable}-checkbox" >&5 |
10f2d63a VZ |
6142 | no_cache=0 |
6143 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6144 | if test "${enable_checkbox+set}" = set; then | |
6145 | enableval="$enable_checkbox" | |
a0b9e27f | 6146 | |
10f2d63a VZ |
6147 | if test "$enableval" = yes; then |
6148 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6149 | else | |
6150 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6151 | fi | |
a0b9e27f | 6152 | |
10f2d63a | 6153 | else |
a0b9e27f | 6154 | |
10f2d63a VZ |
6155 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6156 | if test "x$LINE" != x ; then | |
6157 | eval "DEFAULT_$LINE" | |
6158 | else | |
6159 | no_cache=1 | |
6160 | fi | |
6161 | ||
6162 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
a0b9e27f MB |
6163 | |
6164 | fi | |
10f2d63a VZ |
6165 | |
6166 | ||
6167 | eval "$ac_cv_use_checkbox" | |
6168 | if test "$no_cache" != 1; then | |
6169 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6170 | fi | |
6171 | ||
6172 | if test "$wxUSE_CHECKBOX" = yes; then | |
a0b9e27f | 6173 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6174 | else |
a0b9e27f | 6175 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6176 | fi |
a0b9e27f | 6177 | |
10f2d63a | 6178 | |
5005acfe VZ |
6179 | enablestring= |
6180 | echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6 | |
521196a2 | 6181 | echo "configure:6182: checking for --${enablestring:-enable}-checklst" >&5 |
10f2d63a VZ |
6182 | no_cache=0 |
6183 | # Check whether --enable-checklst or --disable-checklst was given. | |
6184 | if test "${enable_checklst+set}" = set; then | |
6185 | enableval="$enable_checklst" | |
a0b9e27f | 6186 | |
10f2d63a VZ |
6187 | if test "$enableval" = yes; then |
6188 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6189 | else | |
6190 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6191 | fi | |
a0b9e27f | 6192 | |
10f2d63a | 6193 | else |
a0b9e27f | 6194 | |
10f2d63a VZ |
6195 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6196 | if test "x$LINE" != x ; then | |
6197 | eval "DEFAULT_$LINE" | |
6198 | else | |
6199 | no_cache=1 | |
6200 | fi | |
6201 | ||
6202 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
a0b9e27f MB |
6203 | |
6204 | fi | |
10f2d63a VZ |
6205 | |
6206 | ||
6207 | eval "$ac_cv_use_checklst" | |
6208 | if test "$no_cache" != 1; then | |
6209 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6210 | fi | |
6211 | ||
6212 | if test "$wxUSE_CHECKLST" = yes; then | |
a0b9e27f | 6213 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6214 | else |
a0b9e27f | 6215 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6216 | fi |
a0b9e27f | 6217 | |
10f2d63a | 6218 | |
5005acfe VZ |
6219 | enablestring= |
6220 | echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6 | |
521196a2 | 6221 | echo "configure:6222: checking for --${enablestring:-enable}-choice" >&5 |
10f2d63a VZ |
6222 | no_cache=0 |
6223 | # Check whether --enable-choice or --disable-choice was given. | |
6224 | if test "${enable_choice+set}" = set; then | |
6225 | enableval="$enable_choice" | |
a0b9e27f | 6226 | |
10f2d63a VZ |
6227 | if test "$enableval" = yes; then |
6228 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6229 | else | |
6230 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6231 | fi | |
a0b9e27f | 6232 | |
10f2d63a | 6233 | else |
a0b9e27f | 6234 | |
10f2d63a VZ |
6235 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6236 | if test "x$LINE" != x ; then | |
6237 | eval "DEFAULT_$LINE" | |
6238 | else | |
6239 | no_cache=1 | |
6240 | fi | |
6241 | ||
6242 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
a0b9e27f MB |
6243 | |
6244 | fi | |
10f2d63a VZ |
6245 | |
6246 | ||
6247 | eval "$ac_cv_use_choice" | |
6248 | if test "$no_cache" != 1; then | |
6249 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6250 | fi | |
6251 | ||
6252 | if test "$wxUSE_CHOICE" = yes; then | |
a0b9e27f | 6253 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6254 | else |
a0b9e27f | 6255 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6256 | fi |
a0b9e27f | 6257 | |
10f2d63a | 6258 | |
5005acfe VZ |
6259 | enablestring= |
6260 | echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6 | |
521196a2 | 6261 | echo "configure:6262: checking for --${enablestring:-enable}-combobox" >&5 |
10f2d63a VZ |
6262 | no_cache=0 |
6263 | # Check whether --enable-combobox or --disable-combobox was given. | |
6264 | if test "${enable_combobox+set}" = set; then | |
6265 | enableval="$enable_combobox" | |
a0b9e27f | 6266 | |
10f2d63a VZ |
6267 | if test "$enableval" = yes; then |
6268 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6269 | else | |
6270 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6271 | fi | |
a0b9e27f | 6272 | |
10f2d63a | 6273 | else |
a0b9e27f | 6274 | |
10f2d63a VZ |
6275 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6276 | if test "x$LINE" != x ; then | |
6277 | eval "DEFAULT_$LINE" | |
6278 | else | |
6279 | no_cache=1 | |
6280 | fi | |
6281 | ||
6282 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
a0b9e27f MB |
6283 | |
6284 | fi | |
10f2d63a VZ |
6285 | |
6286 | ||
6287 | eval "$ac_cv_use_combobox" | |
6288 | if test "$no_cache" != 1; then | |
6289 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6290 | fi | |
6291 | ||
6292 | if test "$wxUSE_COMBOBOX" = yes; then | |
a0b9e27f | 6293 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6294 | else |
a0b9e27f | 6295 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6296 | fi |
a0b9e27f | 6297 | |
10f2d63a | 6298 | |
da494b40 MB |
6299 | enablestring= |
6300 | echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6 | |
521196a2 | 6301 | echo "configure:6302: checking for --${enablestring:-enable}-display" >&5 |
da494b40 MB |
6302 | no_cache=0 |
6303 | # Check whether --enable-display or --disable-display was given. | |
6304 | if test "${enable_display+set}" = set; then | |
6305 | enableval="$enable_display" | |
6306 | ||
6307 | if test "$enableval" = yes; then | |
6308 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
6309 | else | |
6310 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
6311 | fi | |
6312 | ||
6313 | else | |
6314 | ||
6315 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
6316 | if test "x$LINE" != x ; then | |
6317 | eval "DEFAULT_$LINE" | |
6318 | else | |
6319 | no_cache=1 | |
6320 | fi | |
6321 | ||
6322 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
6323 | ||
6324 | fi | |
6325 | ||
6326 | ||
6327 | eval "$ac_cv_use_display" | |
6328 | if test "$no_cache" != 1; then | |
6329 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
6330 | fi | |
6331 | ||
6332 | if test "$wxUSE_DISPLAY" = yes; then | |
6333 | echo "$ac_t""yes" 1>&6 | |
6334 | else | |
6335 | echo "$ac_t""no" 1>&6 | |
6336 | fi | |
6337 | ||
6338 | ||
5005acfe VZ |
6339 | enablestring= |
6340 | echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6 | |
521196a2 | 6341 | echo "configure:6342: checking for --${enablestring:-enable}-gauge" >&5 |
10f2d63a VZ |
6342 | no_cache=0 |
6343 | # Check whether --enable-gauge or --disable-gauge was given. | |
6344 | if test "${enable_gauge+set}" = set; then | |
6345 | enableval="$enable_gauge" | |
a0b9e27f | 6346 | |
10f2d63a VZ |
6347 | if test "$enableval" = yes; then |
6348 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6349 | else | |
6350 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6351 | fi | |
a0b9e27f | 6352 | |
10f2d63a | 6353 | else |
a0b9e27f | 6354 | |
10f2d63a VZ |
6355 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6356 | if test "x$LINE" != x ; then | |
6357 | eval "DEFAULT_$LINE" | |
6358 | else | |
6359 | no_cache=1 | |
6360 | fi | |
6361 | ||
6362 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
a0b9e27f MB |
6363 | |
6364 | fi | |
10f2d63a VZ |
6365 | |
6366 | ||
6367 | eval "$ac_cv_use_gauge" | |
6368 | if test "$no_cache" != 1; then | |
6369 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6370 | fi | |
6371 | ||
6372 | if test "$wxUSE_GAUGE" = yes; then | |
a0b9e27f | 6373 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6374 | else |
a0b9e27f | 6375 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6376 | fi |
a0b9e27f | 6377 | |
10f2d63a | 6378 | |
5005acfe VZ |
6379 | enablestring= |
6380 | echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6 | |
521196a2 | 6381 | echo "configure:6382: checking for --${enablestring:-enable}-grid" >&5 |
10f2d63a VZ |
6382 | no_cache=0 |
6383 | # Check whether --enable-grid or --disable-grid was given. | |
6384 | if test "${enable_grid+set}" = set; then | |
6385 | enableval="$enable_grid" | |
a0b9e27f | 6386 | |
10f2d63a VZ |
6387 | if test "$enableval" = yes; then |
6388 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6389 | else | |
6390 | ac_cv_use_grid='wxUSE_GRID=no' | |
6391 | fi | |
a0b9e27f | 6392 | |
10f2d63a | 6393 | else |
a0b9e27f | 6394 | |
10f2d63a VZ |
6395 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6396 | if test "x$LINE" != x ; then | |
6397 | eval "DEFAULT_$LINE" | |
6398 | else | |
6399 | no_cache=1 | |
6400 | fi | |
6401 | ||
6402 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
a0b9e27f MB |
6403 | |
6404 | fi | |
10f2d63a VZ |
6405 | |
6406 | ||
6407 | eval "$ac_cv_use_grid" | |
6408 | if test "$no_cache" != 1; then | |
6409 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6410 | fi | |
6411 | ||
6412 | if test "$wxUSE_GRID" = yes; then | |
a0b9e27f | 6413 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6414 | else |
a0b9e27f | 6415 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6416 | fi |
a0b9e27f | 6417 | |
10f2d63a | 6418 | |
5005acfe VZ |
6419 | enablestring= |
6420 | echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6 | |
521196a2 | 6421 | echo "configure:6422: checking for --${enablestring:-enable}-newgrid" >&5 |
10f2d63a VZ |
6422 | no_cache=0 |
6423 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6424 | if test "${enable_newgrid+set}" = set; then | |
6425 | enableval="$enable_newgrid" | |
a0b9e27f | 6426 | |
10f2d63a VZ |
6427 | if test "$enableval" = yes; then |
6428 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6429 | else | |
6430 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6431 | fi | |
a0b9e27f | 6432 | |
10f2d63a | 6433 | else |
a0b9e27f | 6434 | |
10f2d63a VZ |
6435 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6436 | if test "x$LINE" != x ; then | |
6437 | eval "DEFAULT_$LINE" | |
6438 | else | |
6439 | no_cache=1 | |
6440 | fi | |
6441 | ||
6442 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
a0b9e27f MB |
6443 | |
6444 | fi | |
10f2d63a VZ |
6445 | |
6446 | ||
6447 | eval "$ac_cv_use_newgrid" | |
6448 | if test "$no_cache" != 1; then | |
6449 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6450 | fi | |
6451 | ||
6452 | if test "$wxUSE_NEW_GRID" = yes; then | |
a0b9e27f | 6453 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6454 | else |
a0b9e27f | 6455 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6456 | fi |
a0b9e27f | 6457 | |
10f2d63a | 6458 | |
5005acfe VZ |
6459 | enablestring= |
6460 | echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6 | |
521196a2 | 6461 | echo "configure:6462: checking for --${enablestring:-enable}-imaglist" >&5 |
10f2d63a VZ |
6462 | no_cache=0 |
6463 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6464 | if test "${enable_imaglist+set}" = set; then | |
6465 | enableval="$enable_imaglist" | |
a0b9e27f | 6466 | |
10f2d63a VZ |
6467 | if test "$enableval" = yes; then |
6468 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6469 | else | |
6470 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6471 | fi | |
a0b9e27f | 6472 | |
10f2d63a | 6473 | else |
a0b9e27f | 6474 | |
10f2d63a VZ |
6475 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6476 | if test "x$LINE" != x ; then | |
6477 | eval "DEFAULT_$LINE" | |
6478 | else | |
6479 | no_cache=1 | |
6480 | fi | |
6481 | ||
6482 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
a0b9e27f MB |
6483 | |
6484 | fi | |
10f2d63a VZ |
6485 | |
6486 | ||
6487 | eval "$ac_cv_use_imaglist" | |
6488 | if test "$no_cache" != 1; then | |
6489 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6490 | fi | |
6491 | ||
6492 | if test "$wxUSE_IMAGLIST" = yes; then | |
a0b9e27f | 6493 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6494 | else |
a0b9e27f | 6495 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6496 | fi |
a0b9e27f | 6497 | |
10f2d63a | 6498 | |
5005acfe VZ |
6499 | enablestring= |
6500 | echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6 | |
521196a2 | 6501 | echo "configure:6502: checking for --${enablestring:-enable}-listbox" >&5 |
10f2d63a VZ |
6502 | no_cache=0 |
6503 | # Check whether --enable-listbox or --disable-listbox was given. | |
6504 | if test "${enable_listbox+set}" = set; then | |
6505 | enableval="$enable_listbox" | |
a0b9e27f | 6506 | |
10f2d63a VZ |
6507 | if test "$enableval" = yes; then |
6508 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6509 | else | |
6510 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6511 | fi | |
a0b9e27f | 6512 | |
10f2d63a | 6513 | else |
a0b9e27f | 6514 | |
10f2d63a VZ |
6515 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6516 | if test "x$LINE" != x ; then | |
6517 | eval "DEFAULT_$LINE" | |
6518 | else | |
6519 | no_cache=1 | |
6520 | fi | |
6521 | ||
6522 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
a0b9e27f MB |
6523 | |
6524 | fi | |
10f2d63a VZ |
6525 | |
6526 | ||
6527 | eval "$ac_cv_use_listbox" | |
6528 | if test "$no_cache" != 1; then | |
6529 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6530 | fi | |
6531 | ||
6532 | if test "$wxUSE_LISTBOX" = yes; then | |
a0b9e27f | 6533 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6534 | else |
a0b9e27f | 6535 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6536 | fi |
a0b9e27f | 6537 | |
10f2d63a | 6538 | |
5005acfe VZ |
6539 | enablestring= |
6540 | echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6 | |
521196a2 | 6541 | echo "configure:6542: checking for --${enablestring:-enable}-listctrl" >&5 |
10f2d63a VZ |
6542 | no_cache=0 |
6543 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6544 | if test "${enable_listctrl+set}" = set; then | |
6545 | enableval="$enable_listctrl" | |
a0b9e27f | 6546 | |
10f2d63a VZ |
6547 | if test "$enableval" = yes; then |
6548 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6549 | else | |
6550 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6551 | fi | |
a0b9e27f | 6552 | |
10f2d63a | 6553 | else |
a0b9e27f | 6554 | |
10f2d63a VZ |
6555 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6556 | if test "x$LINE" != x ; then | |
6557 | eval "DEFAULT_$LINE" | |
6558 | else | |
6559 | no_cache=1 | |
6560 | fi | |
6561 | ||
6562 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
a0b9e27f MB |
6563 | |
6564 | fi | |
10f2d63a VZ |
6565 | |
6566 | ||
6567 | eval "$ac_cv_use_listctrl" | |
6568 | if test "$no_cache" != 1; then | |
6569 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6570 | fi | |
6571 | ||
6572 | if test "$wxUSE_LISTCTRL" = yes; then | |
a0b9e27f | 6573 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6574 | else |
a0b9e27f | 6575 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6576 | fi |
a0b9e27f | 6577 | |
10f2d63a | 6578 | |
5005acfe VZ |
6579 | enablestring= |
6580 | echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6 | |
521196a2 | 6581 | echo "configure:6582: checking for --${enablestring:-enable}-notebook" >&5 |
10f2d63a VZ |
6582 | no_cache=0 |
6583 | # Check whether --enable-notebook or --disable-notebook was given. | |
6584 | if test "${enable_notebook+set}" = set; then | |
6585 | enableval="$enable_notebook" | |
a0b9e27f | 6586 | |
10f2d63a VZ |
6587 | if test "$enableval" = yes; then |
6588 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6589 | else | |
6590 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6591 | fi | |
a0b9e27f | 6592 | |
10f2d63a | 6593 | else |
a0b9e27f | 6594 | |
10f2d63a VZ |
6595 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6596 | if test "x$LINE" != x ; then | |
6597 | eval "DEFAULT_$LINE" | |
6598 | else | |
6599 | no_cache=1 | |
6600 | fi | |
6601 | ||
6602 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
a0b9e27f MB |
6603 | |
6604 | fi | |
10f2d63a VZ |
6605 | |
6606 | ||
6607 | eval "$ac_cv_use_notebook" | |
6608 | if test "$no_cache" != 1; then | |
6609 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6610 | fi | |
6611 | ||
6612 | if test "$wxUSE_NOTEBOOK" = yes; then | |
a0b9e27f | 6613 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6614 | else |
a0b9e27f | 6615 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6616 | fi |
a0b9e27f | 6617 | |
10f2d63a | 6618 | |
5005acfe VZ |
6619 | enablestring= |
6620 | echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6 | |
521196a2 | 6621 | echo "configure:6622: checking for --${enablestring:-enable}-propsheet" >&5 |
24176f2c GD |
6622 | no_cache=0 |
6623 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6624 | if test "${enable_propsheet+set}" = set; then | |
6625 | enableval="$enable_propsheet" | |
a0b9e27f | 6626 | |
24176f2c GD |
6627 | if test "$enableval" = yes; then |
6628 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6629 | else | |
6630 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6631 | fi | |
a0b9e27f | 6632 | |
24176f2c | 6633 | else |
a0b9e27f | 6634 | |
24176f2c GD |
6635 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` |
6636 | if test "x$LINE" != x ; then | |
6637 | eval "DEFAULT_$LINE" | |
6638 | else | |
6639 | no_cache=1 | |
6640 | fi | |
6641 | ||
6642 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
a0b9e27f MB |
6643 | |
6644 | fi | |
24176f2c GD |
6645 | |
6646 | ||
6647 | eval "$ac_cv_use_propsheet" | |
6648 | if test "$no_cache" != 1; then | |
6649 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6650 | fi | |
6651 | ||
6652 | if test "$wxUSE_PROPSHEET" = yes; then | |
a0b9e27f | 6653 | echo "$ac_t""yes" 1>&6 |
24176f2c | 6654 | else |
a0b9e27f | 6655 | echo "$ac_t""no" 1>&6 |
24176f2c | 6656 | fi |
a0b9e27f | 6657 | |
24176f2c | 6658 | |
5005acfe VZ |
6659 | enablestring= |
6660 | echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6 | |
521196a2 | 6661 | echo "configure:6662: checking for --${enablestring:-enable}-radiobox" >&5 |
10f2d63a VZ |
6662 | no_cache=0 |
6663 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6664 | if test "${enable_radiobox+set}" = set; then | |
6665 | enableval="$enable_radiobox" | |
a0b9e27f | 6666 | |
10f2d63a VZ |
6667 | if test "$enableval" = yes; then |
6668 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6669 | else | |
6670 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6671 | fi | |
a0b9e27f | 6672 | |
10f2d63a | 6673 | else |
a0b9e27f | 6674 | |
10f2d63a VZ |
6675 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6676 | if test "x$LINE" != x ; then | |
6677 | eval "DEFAULT_$LINE" | |
6678 | else | |
6679 | no_cache=1 | |
6680 | fi | |
6681 | ||
6682 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
a0b9e27f MB |
6683 | |
6684 | fi | |
10f2d63a VZ |
6685 | |
6686 | ||
6687 | eval "$ac_cv_use_radiobox" | |
6688 | if test "$no_cache" != 1; then | |
6689 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6690 | fi | |
6691 | ||
6692 | if test "$wxUSE_RADIOBOX" = yes; then | |
a0b9e27f | 6693 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6694 | else |
a0b9e27f | 6695 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6696 | fi |
a0b9e27f | 6697 | |
10f2d63a | 6698 | |
5005acfe VZ |
6699 | enablestring= |
6700 | echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6 | |
521196a2 | 6701 | echo "configure:6702: checking for --${enablestring:-enable}-radiobtn" >&5 |
10f2d63a VZ |
6702 | no_cache=0 |
6703 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6704 | if test "${enable_radiobtn+set}" = set; then | |
6705 | enableval="$enable_radiobtn" | |
a0b9e27f | 6706 | |
10f2d63a VZ |
6707 | if test "$enableval" = yes; then |
6708 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6709 | else | |
6710 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6711 | fi | |
a0b9e27f | 6712 | |
10f2d63a | 6713 | else |
a0b9e27f | 6714 | |
10f2d63a VZ |
6715 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6716 | if test "x$LINE" != x ; then | |
6717 | eval "DEFAULT_$LINE" | |
6718 | else | |
6719 | no_cache=1 | |
6720 | fi | |
6721 | ||
6722 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
a0b9e27f MB |
6723 | |
6724 | fi | |
10f2d63a VZ |
6725 | |
6726 | ||
6727 | eval "$ac_cv_use_radiobtn" | |
6728 | if test "$no_cache" != 1; then | |
6729 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6730 | fi | |
6731 | ||
6732 | if test "$wxUSE_RADIOBTN" = yes; then | |
a0b9e27f | 6733 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6734 | else |
a0b9e27f | 6735 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6736 | fi |
a0b9e27f | 6737 | |
10f2d63a | 6738 | |
5005acfe VZ |
6739 | enablestring= |
6740 | echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6 | |
521196a2 | 6741 | echo "configure:6742: checking for --${enablestring:-enable}-sash" >&5 |
10f2d63a VZ |
6742 | no_cache=0 |
6743 | # Check whether --enable-sash or --disable-sash was given. | |
6744 | if test "${enable_sash+set}" = set; then | |
6745 | enableval="$enable_sash" | |
a0b9e27f | 6746 | |
10f2d63a VZ |
6747 | if test "$enableval" = yes; then |
6748 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6749 | else | |
6750 | ac_cv_use_sash='wxUSE_SASH=no' | |
6751 | fi | |
a0b9e27f | 6752 | |
10f2d63a | 6753 | else |
a0b9e27f | 6754 | |
10f2d63a VZ |
6755 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6756 | if test "x$LINE" != x ; then | |
6757 | eval "DEFAULT_$LINE" | |
6758 | else | |
6759 | no_cache=1 | |
6760 | fi | |
6761 | ||
6762 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
a0b9e27f MB |
6763 | |
6764 | fi | |
10f2d63a VZ |
6765 | |
6766 | ||
6767 | eval "$ac_cv_use_sash" | |
6768 | if test "$no_cache" != 1; then | |
6769 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6770 | fi | |
6771 | ||
6772 | if test "$wxUSE_SASH" = yes; then | |
a0b9e27f | 6773 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6774 | else |
a0b9e27f | 6775 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6776 | fi |
a0b9e27f | 6777 | |
10f2d63a | 6778 | |
5005acfe VZ |
6779 | enablestring= |
6780 | echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6 | |
521196a2 | 6781 | echo "configure:6782: checking for --${enablestring:-enable}-scrollbar" >&5 |
10f2d63a VZ |
6782 | no_cache=0 |
6783 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6784 | if test "${enable_scrollbar+set}" = set; then | |
6785 | enableval="$enable_scrollbar" | |
a0b9e27f | 6786 | |
10f2d63a VZ |
6787 | if test "$enableval" = yes; then |
6788 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6789 | else | |
6790 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6791 | fi | |
a0b9e27f | 6792 | |
10f2d63a | 6793 | else |
a0b9e27f | 6794 | |
10f2d63a VZ |
6795 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6796 | if test "x$LINE" != x ; then | |
6797 | eval "DEFAULT_$LINE" | |
6798 | else | |
6799 | no_cache=1 | |
6800 | fi | |
6801 | ||
6802 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
a0b9e27f MB |
6803 | |
6804 | fi | |
10f2d63a VZ |
6805 | |
6806 | ||
6807 | eval "$ac_cv_use_scrollbar" | |
6808 | if test "$no_cache" != 1; then | |
6809 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6810 | fi | |
6811 | ||
6812 | if test "$wxUSE_SCROLLBAR" = yes; then | |
a0b9e27f | 6813 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6814 | else |
a0b9e27f | 6815 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6816 | fi |
a0b9e27f | 6817 | |
10f2d63a | 6818 | |
5005acfe VZ |
6819 | enablestring= |
6820 | echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6 | |
521196a2 | 6821 | echo "configure:6822: checking for --${enablestring:-enable}-slider" >&5 |
10f2d63a VZ |
6822 | no_cache=0 |
6823 | # Check whether --enable-slider or --disable-slider was given. | |
6824 | if test "${enable_slider+set}" = set; then | |
6825 | enableval="$enable_slider" | |
a0b9e27f | 6826 | |
10f2d63a VZ |
6827 | if test "$enableval" = yes; then |
6828 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6829 | else | |
6830 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6831 | fi | |
a0b9e27f | 6832 | |
10f2d63a | 6833 | else |
a0b9e27f | 6834 | |
10f2d63a VZ |
6835 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6836 | if test "x$LINE" != x ; then | |
6837 | eval "DEFAULT_$LINE" | |
6838 | else | |
6839 | no_cache=1 | |
6840 | fi | |
6841 | ||
6842 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
a0b9e27f MB |
6843 | |
6844 | fi | |
10f2d63a VZ |
6845 | |
6846 | ||
6847 | eval "$ac_cv_use_slider" | |
6848 | if test "$no_cache" != 1; then | |
6849 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6850 | fi | |
6851 | ||
6852 | if test "$wxUSE_SLIDER" = yes; then | |
a0b9e27f | 6853 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6854 | else |
a0b9e27f | 6855 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6856 | fi |
a0b9e27f | 6857 | |
10f2d63a | 6858 | |
5005acfe VZ |
6859 | enablestring= |
6860 | echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6 | |
521196a2 | 6861 | echo "configure:6862: checking for --${enablestring:-enable}-spinbtn" >&5 |
10f2d63a VZ |
6862 | no_cache=0 |
6863 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6864 | if test "${enable_spinbtn+set}" = set; then | |
6865 | enableval="$enable_spinbtn" | |
a0b9e27f | 6866 | |
10f2d63a VZ |
6867 | if test "$enableval" = yes; then |
6868 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6869 | else | |
6870 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6871 | fi | |
a0b9e27f | 6872 | |
10f2d63a | 6873 | else |
a0b9e27f | 6874 | |
10f2d63a VZ |
6875 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6876 | if test "x$LINE" != x ; then | |
6877 | eval "DEFAULT_$LINE" | |
6878 | else | |
6879 | no_cache=1 | |
6880 | fi | |
6881 | ||
6882 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
a0b9e27f MB |
6883 | |
6884 | fi | |
10f2d63a VZ |
6885 | |
6886 | ||
6887 | eval "$ac_cv_use_spinbtn" | |
6888 | if test "$no_cache" != 1; then | |
6889 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6890 | fi | |
6891 | ||
6892 | if test "$wxUSE_SPINBTN" = yes; then | |
a0b9e27f | 6893 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6894 | else |
a0b9e27f | 6895 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6896 | fi |
a0b9e27f | 6897 | |
10f2d63a | 6898 | |
5005acfe VZ |
6899 | enablestring= |
6900 | echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6 | |
521196a2 | 6901 | echo "configure:6902: checking for --${enablestring:-enable}-spinctrl" >&5 |
56cfaa52 RR |
6902 | no_cache=0 |
6903 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6904 | if test "${enable_spinctrl+set}" = set; then | |
6905 | enableval="$enable_spinctrl" | |
a0b9e27f | 6906 | |
56cfaa52 RR |
6907 | if test "$enableval" = yes; then |
6908 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6909 | else | |
6910 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6911 | fi | |
a0b9e27f | 6912 | |
56cfaa52 | 6913 | else |
a0b9e27f | 6914 | |
56cfaa52 RR |
6915 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6916 | if test "x$LINE" != x ; then | |
6917 | eval "DEFAULT_$LINE" | |
6918 | else | |
6919 | no_cache=1 | |
6920 | fi | |
6921 | ||
6922 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
a0b9e27f MB |
6923 | |
6924 | fi | |
56cfaa52 RR |
6925 | |
6926 | ||
6927 | eval "$ac_cv_use_spinctrl" | |
6928 | if test "$no_cache" != 1; then | |
6929 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6930 | fi | |
6931 | ||
6932 | if test "$wxUSE_SPINCTRL" = yes; then | |
a0b9e27f | 6933 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6934 | else |
a0b9e27f | 6935 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6936 | fi |
a0b9e27f | 6937 | |
56cfaa52 | 6938 | |
5005acfe VZ |
6939 | enablestring= |
6940 | echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6 | |
521196a2 | 6941 | echo "configure:6942: checking for --${enablestring:-enable}-splitter" >&5 |
10f2d63a VZ |
6942 | no_cache=0 |
6943 | # Check whether --enable-splitter or --disable-splitter was given. | |
6944 | if test "${enable_splitter+set}" = set; then | |
6945 | enableval="$enable_splitter" | |
a0b9e27f | 6946 | |
10f2d63a VZ |
6947 | if test "$enableval" = yes; then |
6948 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6949 | else | |
6950 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6951 | fi | |
a0b9e27f | 6952 | |
10f2d63a | 6953 | else |
a0b9e27f | 6954 | |
10f2d63a VZ |
6955 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6956 | if test "x$LINE" != x ; then | |
6957 | eval "DEFAULT_$LINE" | |
6958 | else | |
6959 | no_cache=1 | |
6960 | fi | |
6961 | ||
6962 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
a0b9e27f MB |
6963 | |
6964 | fi | |
10f2d63a VZ |
6965 | |
6966 | ||
6967 | eval "$ac_cv_use_splitter" | |
6968 | if test "$no_cache" != 1; then | |
6969 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6970 | fi | |
6971 | ||
6972 | if test "$wxUSE_SPLITTER" = yes; then | |
a0b9e27f | 6973 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6974 | else |
a0b9e27f | 6975 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6976 | fi |
a0b9e27f | 6977 | |
10f2d63a | 6978 | |
5005acfe VZ |
6979 | enablestring= |
6980 | echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6 | |
521196a2 | 6981 | echo "configure:6982: checking for --${enablestring:-enable}-statbmp" >&5 |
10f2d63a VZ |
6982 | no_cache=0 |
6983 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6984 | if test "${enable_statbmp+set}" = set; then | |
6985 | enableval="$enable_statbmp" | |
a0b9e27f | 6986 | |
10f2d63a VZ |
6987 | if test "$enableval" = yes; then |
6988 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6989 | else | |
6990 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6991 | fi | |
a0b9e27f | 6992 | |
10f2d63a | 6993 | else |
a0b9e27f | 6994 | |
10f2d63a VZ |
6995 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6996 | if test "x$LINE" != x ; then | |
6997 | eval "DEFAULT_$LINE" | |
6998 | else | |
6999 | no_cache=1 | |
7000 | fi | |
7001 | ||
7002 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
a0b9e27f MB |
7003 | |
7004 | fi | |
10f2d63a VZ |
7005 | |
7006 | ||
7007 | eval "$ac_cv_use_statbmp" | |
7008 | if test "$no_cache" != 1; then | |
7009 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7010 | fi | |
7011 | ||
7012 | if test "$wxUSE_STATBMP" = yes; then | |
a0b9e27f | 7013 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7014 | else |
a0b9e27f | 7015 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7016 | fi |
a0b9e27f | 7017 | |
10f2d63a | 7018 | |
5005acfe VZ |
7019 | enablestring= |
7020 | echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6 | |
521196a2 | 7021 | echo "configure:7022: checking for --${enablestring:-enable}-statbox" >&5 |
10f2d63a VZ |
7022 | no_cache=0 |
7023 | # Check whether --enable-statbox or --disable-statbox was given. | |
7024 | if test "${enable_statbox+set}" = set; then | |
7025 | enableval="$enable_statbox" | |
a0b9e27f | 7026 | |
10f2d63a VZ |
7027 | if test "$enableval" = yes; then |
7028 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7029 | else | |
7030 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7031 | fi | |
a0b9e27f | 7032 | |
10f2d63a | 7033 | else |
a0b9e27f | 7034 | |
10f2d63a VZ |
7035 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
7036 | if test "x$LINE" != x ; then | |
7037 | eval "DEFAULT_$LINE" | |
7038 | else | |
7039 | no_cache=1 | |
7040 | fi | |
7041 | ||
7042 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
a0b9e27f MB |
7043 | |
7044 | fi | |
10f2d63a VZ |
7045 | |
7046 | ||
7047 | eval "$ac_cv_use_statbox" | |
7048 | if test "$no_cache" != 1; then | |
7049 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7050 | fi | |
7051 | ||
7052 | if test "$wxUSE_STATBOX" = yes; then | |
a0b9e27f | 7053 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7054 | else |
a0b9e27f | 7055 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7056 | fi |
a0b9e27f | 7057 | |
10f2d63a | 7058 | |
5005acfe VZ |
7059 | enablestring= |
7060 | echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6 | |
521196a2 | 7061 | echo "configure:7062: checking for --${enablestring:-enable}-statline" >&5 |
10f2d63a VZ |
7062 | no_cache=0 |
7063 | # Check whether --enable-statline or --disable-statline was given. | |
7064 | if test "${enable_statline+set}" = set; then | |
7065 | enableval="$enable_statline" | |
a0b9e27f | 7066 | |
10f2d63a VZ |
7067 | if test "$enableval" = yes; then |
7068 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7069 | else | |
7070 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
7071 | fi | |
a0b9e27f | 7072 | |
10f2d63a | 7073 | else |
a0b9e27f | 7074 | |
10f2d63a VZ |
7075 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
7076 | if test "x$LINE" != x ; then | |
7077 | eval "DEFAULT_$LINE" | |
7078 | else | |
7079 | no_cache=1 | |
7080 | fi | |
7081 | ||
7082 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
a0b9e27f MB |
7083 | |
7084 | fi | |
10f2d63a VZ |
7085 | |
7086 | ||
7087 | eval "$ac_cv_use_statline" | |
7088 | if test "$no_cache" != 1; then | |
7089 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
7090 | fi | |
7091 | ||
7092 | if test "$wxUSE_STATLINE" = yes; then | |
a0b9e27f | 7093 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7094 | else |
a0b9e27f | 7095 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7096 | fi |
a0b9e27f | 7097 | |
10f2d63a | 7098 | |
5005acfe VZ |
7099 | enablestring= |
7100 | echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6 | |
521196a2 | 7101 | echo "configure:7102: checking for --${enablestring:-enable}-stattext" >&5 |
1e6feb95 VZ |
7102 | no_cache=0 |
7103 | # Check whether --enable-stattext or --disable-stattext was given. | |
7104 | if test "${enable_stattext+set}" = set; then | |
7105 | enableval="$enable_stattext" | |
a0b9e27f | 7106 | |
1e6feb95 VZ |
7107 | if test "$enableval" = yes; then |
7108 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7109 | else | |
7110 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7111 | fi | |
a0b9e27f | 7112 | |
1e6feb95 | 7113 | else |
a0b9e27f | 7114 | |
1e6feb95 VZ |
7115 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
7116 | if test "x$LINE" != x ; then | |
7117 | eval "DEFAULT_$LINE" | |
7118 | else | |
7119 | no_cache=1 | |
7120 | fi | |
7121 | ||
7122 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
a0b9e27f MB |
7123 | |
7124 | fi | |
1e6feb95 VZ |
7125 | |
7126 | ||
7127 | eval "$ac_cv_use_stattext" | |
7128 | if test "$no_cache" != 1; then | |
7129 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7130 | fi | |
7131 | ||
7132 | if test "$wxUSE_STATTEXT" = yes; then | |
a0b9e27f | 7133 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7134 | else |
a0b9e27f | 7135 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7136 | fi |
a0b9e27f | 7137 | |
1e6feb95 | 7138 | |
5005acfe VZ |
7139 | enablestring= |
7140 | echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6 | |
521196a2 | 7141 | echo "configure:7142: checking for --${enablestring:-enable}-statusbar" >&5 |
10f2d63a VZ |
7142 | no_cache=0 |
7143 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7144 | if test "${enable_statusbar+set}" = set; then | |
7145 | enableval="$enable_statusbar" | |
a0b9e27f | 7146 | |
10f2d63a VZ |
7147 | if test "$enableval" = yes; then |
7148 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7149 | else | |
7150 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7151 | fi | |
a0b9e27f | 7152 | |
10f2d63a | 7153 | else |
a0b9e27f | 7154 | |
10f2d63a VZ |
7155 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
7156 | if test "x$LINE" != x ; then | |
7157 | eval "DEFAULT_$LINE" | |
7158 | else | |
7159 | no_cache=1 | |
7160 | fi | |
7161 | ||
7162 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
a0b9e27f MB |
7163 | |
7164 | fi | |
10f2d63a VZ |
7165 | |
7166 | ||
7167 | eval "$ac_cv_use_statusbar" | |
7168 | if test "$no_cache" != 1; then | |
7169 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7170 | fi | |
7171 | ||
7172 | if test "$wxUSE_STATUSBAR" = yes; then | |
a0b9e27f | 7173 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7174 | else |
a0b9e27f | 7175 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7176 | fi |
a0b9e27f | 7177 | |
10f2d63a | 7178 | |
5005acfe VZ |
7179 | enablestring= |
7180 | echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6 | |
521196a2 | 7181 | echo "configure:7182: checking for --${enablestring:-enable}-tabdialog" >&5 |
10f2d63a VZ |
7182 | no_cache=0 |
7183 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7184 | if test "${enable_tabdialog+set}" = set; then | |
7185 | enableval="$enable_tabdialog" | |
a0b9e27f | 7186 | |
10f2d63a VZ |
7187 | if test "$enableval" = yes; then |
7188 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7189 | else | |
7190 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7191 | fi | |
a0b9e27f | 7192 | |
10f2d63a | 7193 | else |
a0b9e27f | 7194 | |
10f2d63a VZ |
7195 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7196 | if test "x$LINE" != x ; then | |
7197 | eval "DEFAULT_$LINE" | |
7198 | else | |
7199 | no_cache=1 | |
7200 | fi | |
7201 | ||
7202 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
a0b9e27f MB |
7203 | |
7204 | fi | |
10f2d63a VZ |
7205 | |
7206 | ||
7207 | eval "$ac_cv_use_tabdialog" | |
7208 | if test "$no_cache" != 1; then | |
7209 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7210 | fi | |
7211 | ||
7212 | if test "$wxUSE_TABDIALOG" = yes; then | |
a0b9e27f | 7213 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7214 | else |
a0b9e27f | 7215 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7216 | fi |
a0b9e27f | 7217 | |
10f2d63a | 7218 | |
5005acfe VZ |
7219 | enablestring= |
7220 | echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6 | |
521196a2 | 7221 | echo "configure:7222: checking for --${enablestring:-enable}-textctrl" >&5 |
1e6feb95 VZ |
7222 | no_cache=0 |
7223 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7224 | if test "${enable_textctrl+set}" = set; then | |
7225 | enableval="$enable_textctrl" | |
a0b9e27f | 7226 | |
1e6feb95 VZ |
7227 | if test "$enableval" = yes; then |
7228 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7229 | else | |
7230 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7231 | fi | |
a0b9e27f | 7232 | |
1e6feb95 | 7233 | else |
a0b9e27f | 7234 | |
1e6feb95 VZ |
7235 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
7236 | if test "x$LINE" != x ; then | |
7237 | eval "DEFAULT_$LINE" | |
7238 | else | |
7239 | no_cache=1 | |
7240 | fi | |
7241 | ||
7242 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
a0b9e27f MB |
7243 | |
7244 | fi | |
1e6feb95 VZ |
7245 | |
7246 | ||
7247 | eval "$ac_cv_use_textctrl" | |
7248 | if test "$no_cache" != 1; then | |
7249 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7250 | fi | |
7251 | ||
7252 | if test "$wxUSE_TEXTCTRL" = yes; then | |
a0b9e27f | 7253 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7254 | else |
a0b9e27f | 7255 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7256 | fi |
a0b9e27f | 7257 | |
1e6feb95 | 7258 | |
5005acfe VZ |
7259 | enablestring= |
7260 | echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6 | |
521196a2 | 7261 | echo "configure:7262: checking for --${enablestring:-enable}-togglebtn" >&5 |
1db8dc4a VZ |
7262 | no_cache=0 |
7263 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7264 | if test "${enable_togglebtn+set}" = set; then | |
7265 | enableval="$enable_togglebtn" | |
a0b9e27f | 7266 | |
1db8dc4a VZ |
7267 | if test "$enableval" = yes; then |
7268 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7269 | else | |
7270 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7271 | fi | |
a0b9e27f | 7272 | |
1db8dc4a | 7273 | else |
a0b9e27f | 7274 | |
1db8dc4a VZ |
7275 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7276 | if test "x$LINE" != x ; then | |
7277 | eval "DEFAULT_$LINE" | |
7278 | else | |
7279 | no_cache=1 | |
7280 | fi | |
7281 | ||
7282 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
a0b9e27f MB |
7283 | |
7284 | fi | |
1db8dc4a VZ |
7285 | |
7286 | ||
7287 | eval "$ac_cv_use_togglebtn" | |
7288 | if test "$no_cache" != 1; then | |
7289 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7290 | fi | |
7291 | ||
7292 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
a0b9e27f | 7293 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 7294 | else |
a0b9e27f | 7295 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 7296 | fi |
a0b9e27f | 7297 | |
1db8dc4a | 7298 | |
5005acfe VZ |
7299 | enablestring= |
7300 | echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6 | |
521196a2 | 7301 | echo "configure:7302: checking for --${enablestring:-enable}-toolbar" >&5 |
10f2d63a VZ |
7302 | no_cache=0 |
7303 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7304 | if test "${enable_toolbar+set}" = set; then | |
7305 | enableval="$enable_toolbar" | |
a0b9e27f | 7306 | |
10f2d63a VZ |
7307 | if test "$enableval" = yes; then |
7308 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7309 | else | |
7310 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7311 | fi | |
a0b9e27f | 7312 | |
10f2d63a | 7313 | else |
a0b9e27f | 7314 | |
10f2d63a VZ |
7315 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7316 | if test "x$LINE" != x ; then | |
7317 | eval "DEFAULT_$LINE" | |
7318 | else | |
7319 | no_cache=1 | |
7320 | fi | |
7321 | ||
7322 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
a0b9e27f MB |
7323 | |
7324 | fi | |
10f2d63a VZ |
7325 | |
7326 | ||
7327 | eval "$ac_cv_use_toolbar" | |
7328 | if test "$no_cache" != 1; then | |
7329 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7330 | fi | |
7331 | ||
7332 | if test "$wxUSE_TOOLBAR" = yes; then | |
a0b9e27f | 7333 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7334 | else |
a0b9e27f | 7335 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7336 | fi |
a0b9e27f | 7337 | |
10f2d63a | 7338 | |
5005acfe VZ |
7339 | enablestring= |
7340 | echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6 | |
521196a2 | 7341 | echo "configure:7342: checking for --${enablestring:-enable}-tbarnative" >&5 |
360d6699 VZ |
7342 | no_cache=0 |
7343 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7344 | if test "${enable_tbarnative+set}" = set; then | |
7345 | enableval="$enable_tbarnative" | |
a0b9e27f | 7346 | |
360d6699 VZ |
7347 | if test "$enableval" = yes; then |
7348 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7349 | else | |
7350 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7351 | fi | |
a0b9e27f | 7352 | |
360d6699 | 7353 | else |
a0b9e27f | 7354 | |
360d6699 VZ |
7355 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7356 | if test "x$LINE" != x ; then | |
7357 | eval "DEFAULT_$LINE" | |
7358 | else | |
7359 | no_cache=1 | |
7360 | fi | |
7361 | ||
7362 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
a0b9e27f MB |
7363 | |
7364 | fi | |
360d6699 VZ |
7365 | |
7366 | ||
7367 | eval "$ac_cv_use_tbarnative" | |
7368 | if test "$no_cache" != 1; then | |
7369 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7370 | fi | |
7371 | ||
7372 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
a0b9e27f | 7373 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7374 | else |
a0b9e27f | 7375 | echo "$ac_t""no" 1>&6 |
360d6699 | 7376 | fi |
a0b9e27f | 7377 | |
360d6699 | 7378 | |
5005acfe VZ |
7379 | enablestring= |
7380 | echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6 | |
521196a2 | 7381 | echo "configure:7382: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
360d6699 VZ |
7382 | no_cache=0 |
7383 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7384 | if test "${enable_tbarsmpl+set}" = set; then | |
7385 | enableval="$enable_tbarsmpl" | |
a0b9e27f | 7386 | |
360d6699 VZ |
7387 | if test "$enableval" = yes; then |
7388 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7389 | else | |
7390 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7391 | fi | |
a0b9e27f | 7392 | |
360d6699 | 7393 | else |
a0b9e27f | 7394 | |
360d6699 VZ |
7395 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7396 | if test "x$LINE" != x ; then | |
7397 | eval "DEFAULT_$LINE" | |
7398 | else | |
7399 | no_cache=1 | |
7400 | fi | |
7401 | ||
7402 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
a0b9e27f MB |
7403 | |
7404 | fi | |
360d6699 VZ |
7405 | |
7406 | ||
7407 | eval "$ac_cv_use_tbarsmpl" | |
7408 | if test "$no_cache" != 1; then | |
7409 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7410 | fi | |
7411 | ||
7412 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
a0b9e27f | 7413 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7414 | else |
a0b9e27f | 7415 | echo "$ac_t""no" 1>&6 |
360d6699 | 7416 | fi |
a0b9e27f | 7417 | |
360d6699 | 7418 | |
5005acfe VZ |
7419 | enablestring= |
7420 | echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6 | |
521196a2 | 7421 | echo "configure:7422: checking for --${enablestring:-enable}-treectrl" >&5 |
10f2d63a VZ |
7422 | no_cache=0 |
7423 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7424 | if test "${enable_treectrl+set}" = set; then | |
7425 | enableval="$enable_treectrl" | |
a0b9e27f | 7426 | |
10f2d63a VZ |
7427 | if test "$enableval" = yes; then |
7428 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7429 | else | |
7430 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7431 | fi | |
a0b9e27f | 7432 | |
10f2d63a | 7433 | else |
a0b9e27f | 7434 | |
10f2d63a VZ |
7435 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7436 | if test "x$LINE" != x ; then | |
7437 | eval "DEFAULT_$LINE" | |
7438 | else | |
7439 | no_cache=1 | |
7440 | fi | |
7441 | ||
7442 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
a0b9e27f MB |
7443 | |
7444 | fi | |
10f2d63a VZ |
7445 | |
7446 | ||
1e6feb95 VZ |
7447 | eval "$ac_cv_use_treectrl" |
7448 | if test "$no_cache" != 1; then | |
7449 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7450 | fi | |
7451 | ||
7452 | if test "$wxUSE_TREECTRL" = yes; then | |
a0b9e27f | 7453 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7454 | else |
a0b9e27f | 7455 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7456 | fi |
a0b9e27f | 7457 | |
1e6feb95 | 7458 | |
5005acfe VZ |
7459 | enablestring= |
7460 | echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6 | |
521196a2 | 7461 | echo "configure:7462: checking for --${enablestring:-enable}-tipwindow" >&5 |
9926e4a4 VZ |
7462 | no_cache=0 |
7463 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7464 | if test "${enable_tipwindow+set}" = set; then | |
7465 | enableval="$enable_tipwindow" | |
a0b9e27f | 7466 | |
9926e4a4 VZ |
7467 | if test "$enableval" = yes; then |
7468 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7469 | else | |
7470 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7471 | fi | |
a0b9e27f | 7472 | |
9926e4a4 | 7473 | else |
a0b9e27f | 7474 | |
9926e4a4 VZ |
7475 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
7476 | if test "x$LINE" != x ; then | |
7477 | eval "DEFAULT_$LINE" | |
7478 | else | |
7479 | no_cache=1 | |
7480 | fi | |
7481 | ||
7482 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
a0b9e27f MB |
7483 | |
7484 | fi | |
9926e4a4 VZ |
7485 | |
7486 | ||
7487 | eval "$ac_cv_use_tipwindow" | |
7488 | if test "$no_cache" != 1; then | |
7489 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7490 | fi | |
7491 | ||
7492 | if test "$wxUSE_TIPWINDOW" = yes; then | |
a0b9e27f | 7493 | echo "$ac_t""yes" 1>&6 |
9926e4a4 | 7494 | else |
a0b9e27f | 7495 | echo "$ac_t""no" 1>&6 |
9926e4a4 | 7496 | fi |
a0b9e27f | 7497 | |
9926e4a4 | 7498 | |
5005acfe VZ |
7499 | enablestring= |
7500 | echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6 | |
521196a2 | 7501 | echo "configure:7502: checking for --${enablestring:-enable}-popupwin" >&5 |
9f41d601 RR |
7502 | no_cache=0 |
7503 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7504 | if test "${enable_popupwin+set}" = set; then | |
7505 | enableval="$enable_popupwin" | |
a0b9e27f | 7506 | |
9f41d601 RR |
7507 | if test "$enableval" = yes; then |
7508 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7509 | else | |
7510 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7511 | fi | |
a0b9e27f | 7512 | |
9f41d601 | 7513 | else |
a0b9e27f | 7514 | |
9f41d601 RR |
7515 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
7516 | if test "x$LINE" != x ; then | |
7517 | eval "DEFAULT_$LINE" | |
7518 | else | |
7519 | no_cache=1 | |
7520 | fi | |
7521 | ||
7522 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
a0b9e27f MB |
7523 | |
7524 | fi | |
9f41d601 RR |
7525 | |
7526 | ||
7527 | eval "$ac_cv_use_popupwin" | |
7528 | if test "$no_cache" != 1; then | |
7529 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7530 | fi | |
7531 | ||
7532 | if test "$wxUSE_POPUPWIN" = yes; then | |
a0b9e27f | 7533 | echo "$ac_t""yes" 1>&6 |
9f41d601 | 7534 | else |
a0b9e27f | 7535 | echo "$ac_t""no" 1>&6 |
9f41d601 | 7536 | fi |
a0b9e27f | 7537 | |
52127426 | 7538 | |
8284b0c5 MB |
7539 | |
7540 | ||
5005acfe VZ |
7541 | enablestring= |
7542 | echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6 | |
521196a2 | 7543 | echo "configure:7544: checking for --${enablestring:-enable}-commondlg" >&5 |
1e6feb95 VZ |
7544 | no_cache=0 |
7545 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7546 | if test "${enable_commondlg+set}" = set; then | |
7547 | enableval="$enable_commondlg" | |
a0b9e27f | 7548 | |
1e6feb95 VZ |
7549 | if test "$enableval" = yes; then |
7550 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7551 | else | |
7552 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7553 | fi | |
a0b9e27f | 7554 | |
1e6feb95 | 7555 | else |
a0b9e27f | 7556 | |
1e6feb95 VZ |
7557 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
7558 | if test "x$LINE" != x ; then | |
7559 | eval "DEFAULT_$LINE" | |
7560 | else | |
7561 | no_cache=1 | |
7562 | fi | |
7563 | ||
7564 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
a0b9e27f MB |
7565 | |
7566 | fi | |
1e6feb95 VZ |
7567 | |
7568 | ||
7569 | eval "$ac_cv_use_commondlg" | |
7570 | if test "$no_cache" != 1; then | |
7571 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7572 | fi | |
7573 | ||
7574 | if test "$wxUSE_COMMONDLGS" = yes; then | |
a0b9e27f | 7575 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7576 | else |
a0b9e27f | 7577 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7578 | fi |
a0b9e27f | 7579 | |
1e6feb95 | 7580 | |
5005acfe VZ |
7581 | enablestring= |
7582 | echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6 | |
521196a2 | 7583 | echo "configure:7584: checking for --${enablestring:-enable}-choicedlg" >&5 |
1e6feb95 VZ |
7584 | no_cache=0 |
7585 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7586 | if test "${enable_choicedlg+set}" = set; then | |
7587 | enableval="$enable_choicedlg" | |
a0b9e27f | 7588 | |
1e6feb95 VZ |
7589 | if test "$enableval" = yes; then |
7590 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7591 | else | |
7592 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7593 | fi | |
a0b9e27f | 7594 | |
1e6feb95 | 7595 | else |
a0b9e27f | 7596 | |
1e6feb95 VZ |
7597 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
7598 | if test "x$LINE" != x ; then | |
7599 | eval "DEFAULT_$LINE" | |
7600 | else | |
7601 | no_cache=1 | |
7602 | fi | |
7603 | ||
7604 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
a0b9e27f MB |
7605 | |
7606 | fi | |
1e6feb95 VZ |
7607 | |
7608 | ||
7609 | eval "$ac_cv_use_choicedlg" | |
7610 | if test "$no_cache" != 1; then | |
7611 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7612 | fi | |
7613 | ||
7614 | if test "$wxUSE_CHOICEDLG" = yes; then | |
a0b9e27f | 7615 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7616 | else |
a0b9e27f | 7617 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7618 | fi |
a0b9e27f | 7619 | |
1e6feb95 | 7620 | |
5005acfe VZ |
7621 | enablestring= |
7622 | echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6 | |
521196a2 | 7623 | echo "configure:7624: checking for --${enablestring:-enable}-coldlg" >&5 |
1e6feb95 VZ |
7624 | no_cache=0 |
7625 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7626 | if test "${enable_coldlg+set}" = set; then | |
7627 | enableval="$enable_coldlg" | |
a0b9e27f | 7628 | |
1e6feb95 VZ |
7629 | if test "$enableval" = yes; then |
7630 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7631 | else | |
7632 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7633 | fi | |
a0b9e27f | 7634 | |
1e6feb95 | 7635 | else |
a0b9e27f | 7636 | |
1e6feb95 VZ |
7637 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
7638 | if test "x$LINE" != x ; then | |
7639 | eval "DEFAULT_$LINE" | |
7640 | else | |
7641 | no_cache=1 | |
7642 | fi | |
7643 | ||
7644 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
a0b9e27f MB |
7645 | |
7646 | fi | |
1e6feb95 VZ |
7647 | |
7648 | ||
7649 | eval "$ac_cv_use_coldlg" | |
7650 | if test "$no_cache" != 1; then | |
7651 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7652 | fi | |
7653 | ||
7654 | if test "$wxUSE_COLOURDLG" = yes; then | |
a0b9e27f | 7655 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7656 | else |
a0b9e27f | 7657 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7658 | fi |
a0b9e27f | 7659 | |
1e6feb95 | 7660 | |
5005acfe VZ |
7661 | enablestring= |
7662 | echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6 | |
521196a2 | 7663 | echo "configure:7664: checking for --${enablestring:-enable}-filedlg" >&5 |
1e6feb95 VZ |
7664 | no_cache=0 |
7665 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7666 | if test "${enable_filedlg+set}" = set; then | |
7667 | enableval="$enable_filedlg" | |
a0b9e27f | 7668 | |
1e6feb95 VZ |
7669 | if test "$enableval" = yes; then |
7670 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7671 | else | |
7672 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7673 | fi | |
a0b9e27f | 7674 | |
1e6feb95 | 7675 | else |
a0b9e27f | 7676 | |
1e6feb95 VZ |
7677 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
7678 | if test "x$LINE" != x ; then | |
7679 | eval "DEFAULT_$LINE" | |
7680 | else | |
7681 | no_cache=1 | |
7682 | fi | |
7683 | ||
7684 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
a0b9e27f MB |
7685 | |
7686 | fi | |
1e6feb95 VZ |
7687 | |
7688 | ||
7689 | eval "$ac_cv_use_filedlg" | |
7690 | if test "$no_cache" != 1; then | |
7691 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7692 | fi | |
7693 | ||
7694 | if test "$wxUSE_FILEDLG" = yes; then | |
a0b9e27f | 7695 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7696 | else |
a0b9e27f | 7697 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7698 | fi |
a0b9e27f | 7699 | |
1e6feb95 | 7700 | |
5005acfe VZ |
7701 | enablestring= |
7702 | echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6 | |
521196a2 | 7703 | echo "configure:7704: checking for --${enablestring:-enable}-finddlg" >&5 |
8db37e06 | 7704 | no_cache=0 |
69d27ff7 MB |
7705 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7706 | if test "${enable_finddlg+set}" = set; then | |
7707 | enableval="$enable_finddlg" | |
a0b9e27f | 7708 | |
8db37e06 | 7709 | if test "$enableval" = yes; then |
69d27ff7 | 7710 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7711 | else |
69d27ff7 | 7712 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 7713 | fi |
a0b9e27f | 7714 | |
8db37e06 | 7715 | else |
a0b9e27f | 7716 | |
8db37e06 VZ |
7717 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
7718 | if test "x$LINE" != x ; then | |
7719 | eval "DEFAULT_$LINE" | |
7720 | else | |
7721 | no_cache=1 | |
7722 | fi | |
7723 | ||
69d27ff7 | 7724 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
a0b9e27f MB |
7725 | |
7726 | fi | |
8db37e06 VZ |
7727 | |
7728 | ||
69d27ff7 | 7729 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7730 | if test "$no_cache" != 1; then |
69d27ff7 | 7731 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7732 | fi |
7733 | ||
7734 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
a0b9e27f | 7735 | echo "$ac_t""yes" 1>&6 |
8db37e06 | 7736 | else |
a0b9e27f | 7737 | echo "$ac_t""no" 1>&6 |
8db37e06 | 7738 | fi |
a0b9e27f | 7739 | |
8db37e06 | 7740 | |
5005acfe VZ |
7741 | enablestring= |
7742 | echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6 | |
521196a2 | 7743 | echo "configure:7744: checking for --${enablestring:-enable}-fontdlg" >&5 |
1e6feb95 VZ |
7744 | no_cache=0 |
7745 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7746 | if test "${enable_fontdlg+set}" = set; then | |
7747 | enableval="$enable_fontdlg" | |
a0b9e27f | 7748 | |
1e6feb95 VZ |
7749 | if test "$enableval" = yes; then |
7750 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7751 | else | |
7752 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7753 | fi | |
a0b9e27f | 7754 | |
1e6feb95 | 7755 | else |
a0b9e27f | 7756 | |
1e6feb95 VZ |
7757 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
7758 | if test "x$LINE" != x ; then | |
7759 | eval "DEFAULT_$LINE" | |
7760 | else | |
7761 | no_cache=1 | |
7762 | fi | |
7763 | ||
7764 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
a0b9e27f MB |
7765 | |
7766 | fi | |
1e6feb95 VZ |
7767 | |
7768 | ||
7769 | eval "$ac_cv_use_fontdlg" | |
7770 | if test "$no_cache" != 1; then | |
7771 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7772 | fi | |
7773 | ||
7774 | if test "$wxUSE_FONTDLG" = yes; then | |
a0b9e27f | 7775 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7776 | else |
a0b9e27f | 7777 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7778 | fi |
a0b9e27f | 7779 | |
1e6feb95 | 7780 | |
5005acfe VZ |
7781 | enablestring= |
7782 | echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6 | |
521196a2 | 7783 | echo "configure:7784: checking for --${enablestring:-enable}-dirdlg" >&5 |
1e6feb95 VZ |
7784 | no_cache=0 |
7785 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7786 | if test "${enable_dirdlg+set}" = set; then | |
7787 | enableval="$enable_dirdlg" | |
a0b9e27f | 7788 | |
1e6feb95 VZ |
7789 | if test "$enableval" = yes; then |
7790 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7791 | else | |
7792 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7793 | fi | |
a0b9e27f | 7794 | |
1e6feb95 | 7795 | else |
a0b9e27f | 7796 | |
1e6feb95 VZ |
7797 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
7798 | if test "x$LINE" != x ; then | |
7799 | eval "DEFAULT_$LINE" | |
7800 | else | |
7801 | no_cache=1 | |
7802 | fi | |
7803 | ||
7804 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
a0b9e27f MB |
7805 | |
7806 | fi | |
1e6feb95 VZ |
7807 | |
7808 | ||
7809 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7810 | if test "$no_cache" != 1; then |
1e6feb95 | 7811 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7812 | fi |
7813 | ||
1e6feb95 | 7814 | if test "$wxUSE_DIRDLG" = yes; then |
a0b9e27f | 7815 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7816 | else |
a0b9e27f | 7817 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7818 | fi |
a0b9e27f | 7819 | |
698dcdb6 | 7820 | |
5005acfe VZ |
7821 | enablestring= |
7822 | echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6 | |
521196a2 | 7823 | echo "configure:7824: checking for --${enablestring:-enable}-msgdlg" >&5 |
10f2d63a | 7824 | no_cache=0 |
1e6feb95 VZ |
7825 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7826 | if test "${enable_msgdlg+set}" = set; then | |
7827 | enableval="$enable_msgdlg" | |
a0b9e27f | 7828 | |
10f2d63a | 7829 | if test "$enableval" = yes; then |
1e6feb95 | 7830 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7831 | else |
1e6feb95 | 7832 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7833 | fi |
a0b9e27f | 7834 | |
10f2d63a | 7835 | else |
a0b9e27f | 7836 | |
1e6feb95 | 7837 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7838 | if test "x$LINE" != x ; then |
7839 | eval "DEFAULT_$LINE" | |
7840 | else | |
7841 | no_cache=1 | |
7842 | fi | |
7843 | ||
1e6feb95 | 7844 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
a0b9e27f MB |
7845 | |
7846 | fi | |
10f2d63a VZ |
7847 | |
7848 | ||
1e6feb95 | 7849 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7850 | if test "$no_cache" != 1; then |
1e6feb95 | 7851 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7852 | fi |
7853 | ||
1e6feb95 | 7854 | if test "$wxUSE_MSGDLG" = yes; then |
a0b9e27f | 7855 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7856 | else |
a0b9e27f | 7857 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7858 | fi |
a0b9e27f | 7859 | |
10f2d63a | 7860 | |
5005acfe VZ |
7861 | enablestring= |
7862 | echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6 | |
521196a2 | 7863 | echo "configure:7864: checking for --${enablestring:-enable}-numberdlg" >&5 |
10f2d63a | 7864 | no_cache=0 |
1e6feb95 VZ |
7865 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7866 | if test "${enable_numberdlg+set}" = set; then | |
7867 | enableval="$enable_numberdlg" | |
a0b9e27f | 7868 | |
10f2d63a | 7869 | if test "$enableval" = yes; then |
1e6feb95 | 7870 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7871 | else |
1e6feb95 | 7872 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7873 | fi |
a0b9e27f | 7874 | |
10f2d63a | 7875 | else |
a0b9e27f | 7876 | |
1e6feb95 | 7877 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7878 | if test "x$LINE" != x ; then |
7879 | eval "DEFAULT_$LINE" | |
7880 | else | |
7881 | no_cache=1 | |
7882 | fi | |
7883 | ||
1e6feb95 | 7884 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
a0b9e27f MB |
7885 | |
7886 | fi | |
10f2d63a VZ |
7887 | |
7888 | ||
1e6feb95 | 7889 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7890 | if test "$no_cache" != 1; then |
1e6feb95 | 7891 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7892 | fi |
7893 | ||
1e6feb95 | 7894 | if test "$wxUSE_NUMBERDLG" = yes; then |
a0b9e27f | 7895 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7896 | else |
a0b9e27f | 7897 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7898 | fi |
a0b9e27f | 7899 | |
10f2d63a | 7900 | |
5005acfe VZ |
7901 | enablestring= |
7902 | echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6 | |
521196a2 | 7903 | echo "configure:7904: checking for --${enablestring:-enable}-splash" >&5 |
cbca9943 VZ |
7904 | no_cache=0 |
7905 | # Check whether --enable-splash or --disable-splash was given. | |
7906 | if test "${enable_splash+set}" = set; then | |
7907 | enableval="$enable_splash" | |
a0b9e27f | 7908 | |
cbca9943 VZ |
7909 | if test "$enableval" = yes; then |
7910 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7911 | else | |
7912 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7913 | fi | |
a0b9e27f | 7914 | |
cbca9943 | 7915 | else |
a0b9e27f | 7916 | |
cbca9943 VZ |
7917 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
7918 | if test "x$LINE" != x ; then | |
7919 | eval "DEFAULT_$LINE" | |
7920 | else | |
7921 | no_cache=1 | |
7922 | fi | |
7923 | ||
7924 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
a0b9e27f MB |
7925 | |
7926 | fi | |
cbca9943 VZ |
7927 | |
7928 | ||
7929 | eval "$ac_cv_use_splash" | |
7930 | if test "$no_cache" != 1; then | |
7931 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7932 | fi | |
7933 | ||
7934 | if test "$wxUSE_SPLASH" = yes; then | |
a0b9e27f | 7935 | echo "$ac_t""yes" 1>&6 |
cbca9943 | 7936 | else |
a0b9e27f | 7937 | echo "$ac_t""no" 1>&6 |
cbca9943 | 7938 | fi |
a0b9e27f | 7939 | |
cbca9943 | 7940 | |
5005acfe VZ |
7941 | enablestring= |
7942 | echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6 | |
521196a2 | 7943 | echo "configure:7944: checking for --${enablestring:-enable}-textdlg" >&5 |
10f2d63a VZ |
7944 | no_cache=0 |
7945 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7946 | if test "${enable_textdlg+set}" = set; then | |
7947 | enableval="$enable_textdlg" | |
a0b9e27f | 7948 | |
10f2d63a VZ |
7949 | if test "$enableval" = yes; then |
7950 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7951 | else | |
7952 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7953 | fi | |
a0b9e27f | 7954 | |
10f2d63a | 7955 | else |
a0b9e27f | 7956 | |
10f2d63a VZ |
7957 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7958 | if test "x$LINE" != x ; then | |
7959 | eval "DEFAULT_$LINE" | |
7960 | else | |
7961 | no_cache=1 | |
7962 | fi | |
7963 | ||
7964 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
a0b9e27f MB |
7965 | |
7966 | fi | |
10f2d63a VZ |
7967 | |
7968 | ||
7969 | eval "$ac_cv_use_textdlg" | |
7970 | if test "$no_cache" != 1; then | |
7971 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7972 | fi | |
7973 | ||
7974 | if test "$wxUSE_TEXTDLG" = yes; then | |
a0b9e27f | 7975 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7976 | else |
a0b9e27f | 7977 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7978 | fi |
a0b9e27f | 7979 | |
10f2d63a | 7980 | |
5005acfe VZ |
7981 | enablestring= |
7982 | echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6 | |
521196a2 | 7983 | echo "configure:7984: checking for --${enablestring:-enable}-tipdlg" >&5 |
10f2d63a VZ |
7984 | no_cache=0 |
7985 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7986 | if test "${enable_tipdlg+set}" = set; then | |
7987 | enableval="$enable_tipdlg" | |
a0b9e27f | 7988 | |
10f2d63a VZ |
7989 | if test "$enableval" = yes; then |
7990 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7991 | else | |
7992 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7993 | fi | |
a0b9e27f | 7994 | |
10f2d63a | 7995 | else |
a0b9e27f | 7996 | |
10f2d63a VZ |
7997 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7998 | if test "x$LINE" != x ; then | |
7999 | eval "DEFAULT_$LINE" | |
8000 | else | |
8001 | no_cache=1 | |
8002 | fi | |
8003 | ||
8004 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
a0b9e27f MB |
8005 | |
8006 | fi | |
10f2d63a VZ |
8007 | |
8008 | ||
8009 | eval "$ac_cv_use_tipdlg" | |
8010 | if test "$no_cache" != 1; then | |
8011 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8012 | fi | |
8013 | ||
8014 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
a0b9e27f | 8015 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8016 | else |
a0b9e27f | 8017 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8018 | fi |
a0b9e27f | 8019 | |
10f2d63a | 8020 | |
5005acfe VZ |
8021 | enablestring= |
8022 | echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6 | |
521196a2 | 8023 | echo "configure:8024: checking for --${enablestring:-enable}-progressdlg" >&5 |
10f2d63a VZ |
8024 | no_cache=0 |
8025 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8026 | if test "${enable_progressdlg+set}" = set; then | |
8027 | enableval="$enable_progressdlg" | |
a0b9e27f | 8028 | |
10f2d63a VZ |
8029 | if test "$enableval" = yes; then |
8030 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8031 | else | |
8032 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8033 | fi | |
a0b9e27f | 8034 | |
10f2d63a | 8035 | else |
a0b9e27f | 8036 | |
10f2d63a VZ |
8037 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
8038 | if test "x$LINE" != x ; then | |
8039 | eval "DEFAULT_$LINE" | |
8040 | else | |
8041 | no_cache=1 | |
8042 | fi | |
8043 | ||
8044 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
a0b9e27f MB |
8045 | |
8046 | fi | |
10f2d63a VZ |
8047 | |
8048 | ||
8049 | eval "$ac_cv_use_progressdlg" | |
8050 | if test "$no_cache" != 1; then | |
8051 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
8052 | fi | |
8053 | ||
8054 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
a0b9e27f | 8055 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8056 | else |
a0b9e27f | 8057 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8058 | fi |
a0b9e27f | 8059 | |
10f2d63a | 8060 | |
5005acfe VZ |
8061 | enablestring= |
8062 | echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6 | |
521196a2 | 8063 | echo "configure:8064: checking for --${enablestring:-enable}-wizarddlg" >&5 |
b1f5d087 VZ |
8064 | no_cache=0 |
8065 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
8066 | if test "${enable_wizarddlg+set}" = set; then | |
8067 | enableval="$enable_wizarddlg" | |
a0b9e27f | 8068 | |
b1f5d087 VZ |
8069 | if test "$enableval" = yes; then |
8070 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
8071 | else | |
8072 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
8073 | fi | |
a0b9e27f | 8074 | |
b1f5d087 | 8075 | else |
a0b9e27f | 8076 | |
b1f5d087 VZ |
8077 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
8078 | if test "x$LINE" != x ; then | |
8079 | eval "DEFAULT_$LINE" | |
8080 | else | |
8081 | no_cache=1 | |
8082 | fi | |
8083 | ||
8084 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
a0b9e27f MB |
8085 | |
8086 | fi | |
b1f5d087 VZ |
8087 | |
8088 | ||
8089 | eval "$ac_cv_use_wizarddlg" | |
8090 | if test "$no_cache" != 1; then | |
8091 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
8092 | fi | |
8093 | ||
8094 | if test "$wxUSE_WIZARDDLG" = yes; then | |
a0b9e27f | 8095 | echo "$ac_t""yes" 1>&6 |
b1f5d087 | 8096 | else |
a0b9e27f | 8097 | echo "$ac_t""no" 1>&6 |
b1f5d087 | 8098 | fi |
a0b9e27f | 8099 | |
8284b0c5 MB |
8100 | |
8101 | ||
52127426 | 8102 | |
5005acfe VZ |
8103 | enablestring= |
8104 | echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6 | |
521196a2 | 8105 | echo "configure:8106: checking for --${enablestring:-enable}-menus" >&5 |
1e6feb95 VZ |
8106 | no_cache=0 |
8107 | # Check whether --enable-menus or --disable-menus was given. | |
8108 | if test "${enable_menus+set}" = set; then | |
8109 | enableval="$enable_menus" | |
a0b9e27f | 8110 | |
1e6feb95 VZ |
8111 | if test "$enableval" = yes; then |
8112 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8113 | else | |
8114 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8115 | fi | |
a0b9e27f | 8116 | |
1e6feb95 | 8117 | else |
a0b9e27f | 8118 | |
1e6feb95 VZ |
8119 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
8120 | if test "x$LINE" != x ; then | |
8121 | eval "DEFAULT_$LINE" | |
8122 | else | |
8123 | no_cache=1 | |
8124 | fi | |
8125 | ||
8126 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
a0b9e27f MB |
8127 | |
8128 | fi | |
1e6feb95 VZ |
8129 | |
8130 | ||
8131 | eval "$ac_cv_use_menus" | |
8132 | if test "$no_cache" != 1; then | |
8133 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8134 | fi | |
8135 | ||
8136 | if test "$wxUSE_MENUS" = yes; then | |
a0b9e27f | 8137 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8138 | else |
a0b9e27f | 8139 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8140 | fi |
a0b9e27f | 8141 | |
1e6feb95 | 8142 | |
5005acfe VZ |
8143 | enablestring= |
8144 | echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6 | |
521196a2 | 8145 | echo "configure:8146: checking for --${enablestring:-enable}-miniframe" >&5 |
10f2d63a VZ |
8146 | no_cache=0 |
8147 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8148 | if test "${enable_miniframe+set}" = set; then | |
8149 | enableval="$enable_miniframe" | |
a0b9e27f | 8150 | |
10f2d63a VZ |
8151 | if test "$enableval" = yes; then |
8152 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8153 | else | |
8154 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8155 | fi | |
a0b9e27f | 8156 | |
10f2d63a | 8157 | else |
a0b9e27f | 8158 | |
10f2d63a VZ |
8159 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
8160 | if test "x$LINE" != x ; then | |
8161 | eval "DEFAULT_$LINE" | |
8162 | else | |
8163 | no_cache=1 | |
8164 | fi | |
8165 | ||
8166 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
a0b9e27f MB |
8167 | |
8168 | fi | |
10f2d63a VZ |
8169 | |
8170 | ||
8171 | eval "$ac_cv_use_miniframe" | |
8172 | if test "$no_cache" != 1; then | |
8173 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8174 | fi | |
8175 | ||
8176 | if test "$wxUSE_MINIFRAME" = yes; then | |
a0b9e27f | 8177 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8178 | else |
a0b9e27f | 8179 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8180 | fi |
a0b9e27f | 8181 | |
10f2d63a | 8182 | |
5005acfe VZ |
8183 | enablestring= |
8184 | echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6 | |
521196a2 | 8185 | echo "configure:8186: checking for --${enablestring:-enable}-tooltips" >&5 |
10f2d63a VZ |
8186 | no_cache=0 |
8187 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8188 | if test "${enable_tooltips+set}" = set; then | |
8189 | enableval="$enable_tooltips" | |
a0b9e27f | 8190 | |
10f2d63a VZ |
8191 | if test "$enableval" = yes; then |
8192 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8193 | else | |
8194 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8195 | fi | |
a0b9e27f | 8196 | |
10f2d63a | 8197 | else |
a0b9e27f | 8198 | |
10f2d63a VZ |
8199 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
8200 | if test "x$LINE" != x ; then | |
8201 | eval "DEFAULT_$LINE" | |
8202 | else | |
8203 | no_cache=1 | |
8204 | fi | |
8205 | ||
8206 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
a0b9e27f MB |
8207 | |
8208 | fi | |
10f2d63a VZ |
8209 | |
8210 | ||
8211 | eval "$ac_cv_use_tooltips" | |
8212 | if test "$no_cache" != 1; then | |
8213 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8214 | fi | |
8215 | ||
8216 | if test "$wxUSE_TOOLTIPS" = yes; then | |
a0b9e27f | 8217 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8218 | else |
a0b9e27f | 8219 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8220 | fi |
a0b9e27f | 8221 | |
10f2d63a | 8222 | |
5005acfe VZ |
8223 | enablestring= |
8224 | echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6 | |
521196a2 | 8225 | echo "configure:8226: checking for --${enablestring:-enable}-splines" >&5 |
10f2d63a VZ |
8226 | no_cache=0 |
8227 | # Check whether --enable-splines or --disable-splines was given. | |
8228 | if test "${enable_splines+set}" = set; then | |
8229 | enableval="$enable_splines" | |
a0b9e27f | 8230 | |
10f2d63a VZ |
8231 | if test "$enableval" = yes; then |
8232 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8233 | else | |
8234 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8235 | fi | |
a0b9e27f | 8236 | |
10f2d63a | 8237 | else |
a0b9e27f | 8238 | |
10f2d63a VZ |
8239 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
8240 | if test "x$LINE" != x ; then | |
8241 | eval "DEFAULT_$LINE" | |
8242 | else | |
8243 | no_cache=1 | |
8244 | fi | |
8245 | ||
8246 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
a0b9e27f MB |
8247 | |
8248 | fi | |
10f2d63a VZ |
8249 | |
8250 | ||
8251 | eval "$ac_cv_use_splines" | |
8252 | if test "$no_cache" != 1; then | |
8253 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8254 | fi | |
8255 | ||
8256 | if test "$wxUSE_SPLINES" = yes; then | |
a0b9e27f | 8257 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8258 | else |
a0b9e27f | 8259 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8260 | fi |
a0b9e27f | 8261 | |
10f2d63a | 8262 | |
5005acfe VZ |
8263 | enablestring= |
8264 | echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6 | |
521196a2 | 8265 | echo "configure:8266: checking for --${enablestring:-enable}-validators" >&5 |
10f2d63a VZ |
8266 | no_cache=0 |
8267 | # Check whether --enable-validators or --disable-validators was given. | |
8268 | if test "${enable_validators+set}" = set; then | |
8269 | enableval="$enable_validators" | |
a0b9e27f | 8270 | |
10f2d63a VZ |
8271 | if test "$enableval" = yes; then |
8272 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8273 | else | |
8274 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8275 | fi | |
a0b9e27f | 8276 | |
10f2d63a | 8277 | else |
a0b9e27f | 8278 | |
10f2d63a VZ |
8279 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
8280 | if test "x$LINE" != x ; then | |
8281 | eval "DEFAULT_$LINE" | |
8282 | else | |
8283 | no_cache=1 | |
8284 | fi | |
8285 | ||
8286 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
a0b9e27f MB |
8287 | |
8288 | fi | |
10f2d63a VZ |
8289 | |
8290 | ||
8291 | eval "$ac_cv_use_validators" | |
8292 | if test "$no_cache" != 1; then | |
8293 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8294 | fi | |
8295 | ||
8296 | if test "$wxUSE_VALIDATORS" = yes; then | |
a0b9e27f | 8297 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8298 | else |
a0b9e27f | 8299 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8300 | fi |
a0b9e27f | 8301 | |
10f2d63a | 8302 | |
5005acfe VZ |
8303 | enablestring= |
8304 | echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6 | |
521196a2 | 8305 | echo "configure:8306: checking for --${enablestring:-enable}-busyinfo" >&5 |
10f2d63a VZ |
8306 | no_cache=0 |
8307 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8308 | if test "${enable_busyinfo+set}" = set; then | |
8309 | enableval="$enable_busyinfo" | |
a0b9e27f | 8310 | |
10f2d63a VZ |
8311 | if test "$enableval" = yes; then |
8312 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8313 | else | |
8314 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8315 | fi | |
a0b9e27f | 8316 | |
10f2d63a | 8317 | else |
a0b9e27f | 8318 | |
10f2d63a VZ |
8319 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8320 | if test "x$LINE" != x ; then | |
8321 | eval "DEFAULT_$LINE" | |
8322 | else | |
8323 | no_cache=1 | |
8324 | fi | |
8325 | ||
8326 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
a0b9e27f MB |
8327 | |
8328 | fi | |
10f2d63a VZ |
8329 | |
8330 | ||
8331 | eval "$ac_cv_use_busyinfo" | |
8332 | if test "$no_cache" != 1; then | |
8333 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8334 | fi | |
8335 | ||
8336 | if test "$wxUSE_BUSYINFO" = yes; then | |
a0b9e27f | 8337 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8338 | else |
a0b9e27f | 8339 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8340 | fi |
a0b9e27f | 8341 | |
10f2d63a | 8342 | |
5005acfe VZ |
8343 | enablestring= |
8344 | echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6 | |
521196a2 | 8345 | echo "configure:8346: checking for --${enablestring:-enable}-joystick" >&5 |
f6bcfd97 BP |
8346 | no_cache=0 |
8347 | # Check whether --enable-joystick or --disable-joystick was given. | |
8348 | if test "${enable_joystick+set}" = set; then | |
8349 | enableval="$enable_joystick" | |
a0b9e27f | 8350 | |
f6bcfd97 BP |
8351 | if test "$enableval" = yes; then |
8352 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8353 | else | |
8354 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8355 | fi | |
a0b9e27f | 8356 | |
f6bcfd97 | 8357 | else |
a0b9e27f | 8358 | |
f6bcfd97 BP |
8359 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8360 | if test "x$LINE" != x ; then | |
8361 | eval "DEFAULT_$LINE" | |
8362 | else | |
8363 | no_cache=1 | |
8364 | fi | |
8365 | ||
8366 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
a0b9e27f MB |
8367 | |
8368 | fi | |
f6bcfd97 BP |
8369 | |
8370 | ||
8371 | eval "$ac_cv_use_joystick" | |
8372 | if test "$no_cache" != 1; then | |
8373 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8374 | fi | |
8375 | ||
8376 | if test "$wxUSE_JOYSTICK" = yes; then | |
a0b9e27f | 8377 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8378 | else |
a0b9e27f | 8379 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8380 | fi |
a0b9e27f | 8381 | |
698dcdb6 | 8382 | |
5005acfe VZ |
8383 | enablestring= |
8384 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
521196a2 | 8385 | echo "configure:8386: checking for --${enablestring:-enable}-metafile" >&5 |
1e6feb95 VZ |
8386 | no_cache=0 |
8387 | # Check whether --enable-metafile or --disable-metafile was given. | |
8388 | if test "${enable_metafile+set}" = set; then | |
8389 | enableval="$enable_metafile" | |
a0b9e27f | 8390 | |
1e6feb95 VZ |
8391 | if test "$enableval" = yes; then |
8392 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8393 | else | |
8394 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8395 | fi | |
a0b9e27f | 8396 | |
1e6feb95 | 8397 | else |
a0b9e27f | 8398 | |
1e6feb95 VZ |
8399 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
8400 | if test "x$LINE" != x ; then | |
8401 | eval "DEFAULT_$LINE" | |
8402 | else | |
8403 | no_cache=1 | |
8404 | fi | |
8405 | ||
8406 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
8407 | |
8408 | fi | |
1e6feb95 VZ |
8409 | |
8410 | ||
8411 | eval "$ac_cv_use_metafile" | |
8412 | if test "$no_cache" != 1; then | |
8413 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8414 | fi | |
8415 | ||
8416 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 8417 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8418 | else |
a0b9e27f | 8419 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8420 | fi |
a0b9e27f | 8421 | |
1e6feb95 | 8422 | |
5005acfe VZ |
8423 | enablestring= |
8424 | echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6 | |
521196a2 | 8425 | echo "configure:8426: checking for --${enablestring:-enable}-dragimage" >&5 |
24fd6d87 VZ |
8426 | no_cache=0 |
8427 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8428 | if test "${enable_dragimage+set}" = set; then | |
8429 | enableval="$enable_dragimage" | |
a0b9e27f | 8430 | |
24fd6d87 VZ |
8431 | if test "$enableval" = yes; then |
8432 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8433 | else | |
8434 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8435 | fi | |
a0b9e27f | 8436 | |
24fd6d87 | 8437 | else |
a0b9e27f | 8438 | |
24fd6d87 VZ |
8439 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
8440 | if test "x$LINE" != x ; then | |
8441 | eval "DEFAULT_$LINE" | |
8442 | else | |
8443 | no_cache=1 | |
8444 | fi | |
8445 | ||
8446 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
a0b9e27f MB |
8447 | |
8448 | fi | |
24fd6d87 VZ |
8449 | |
8450 | ||
8451 | eval "$ac_cv_use_dragimage" | |
8452 | if test "$no_cache" != 1; then | |
8453 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8454 | fi | |
8455 | ||
8456 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
a0b9e27f | 8457 | echo "$ac_t""yes" 1>&6 |
24fd6d87 | 8458 | else |
a0b9e27f | 8459 | echo "$ac_t""no" 1>&6 |
24fd6d87 | 8460 | fi |
a0b9e27f | 8461 | |
52127426 | 8462 | |
8284b0c5 MB |
8463 | |
8464 | ||
5005acfe VZ |
8465 | enablestring= |
8466 | echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6 | |
521196a2 | 8467 | echo "configure:8468: checking for --${enablestring:-enable}-palette" >&5 |
edae8572 VZ |
8468 | no_cache=0 |
8469 | # Check whether --enable-palette or --disable-palette was given. | |
8470 | if test "${enable_palette+set}" = set; then | |
8471 | enableval="$enable_palette" | |
a0b9e27f | 8472 | |
edae8572 VZ |
8473 | if test "$enableval" = yes; then |
8474 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8475 | else | |
8476 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8477 | fi | |
a0b9e27f | 8478 | |
edae8572 | 8479 | else |
a0b9e27f | 8480 | |
edae8572 VZ |
8481 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
8482 | if test "x$LINE" != x ; then | |
8483 | eval "DEFAULT_$LINE" | |
8484 | else | |
8485 | no_cache=1 | |
8486 | fi | |
8487 | ||
8488 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
a0b9e27f MB |
8489 | |
8490 | fi | |
edae8572 VZ |
8491 | |
8492 | ||
8493 | eval "$ac_cv_use_palette" | |
8494 | if test "$no_cache" != 1; then | |
8495 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8496 | fi | |
8497 | ||
8498 | if test "$wxUSE_PALETTE" = yes; then | |
a0b9e27f | 8499 | echo "$ac_t""yes" 1>&6 |
edae8572 | 8500 | else |
a0b9e27f | 8501 | echo "$ac_t""no" 1>&6 |
edae8572 | 8502 | fi |
a0b9e27f | 8503 | |
edae8572 | 8504 | |
5005acfe VZ |
8505 | enablestring= |
8506 | echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6 | |
521196a2 | 8507 | echo "configure:8508: checking for --${enablestring:-enable}-image" >&5 |
0046ff7c VS |
8508 | no_cache=0 |
8509 | # Check whether --enable-image or --disable-image was given. | |
8510 | if test "${enable_image+set}" = set; then | |
8511 | enableval="$enable_image" | |
a0b9e27f | 8512 | |
0046ff7c VS |
8513 | if test "$enableval" = yes; then |
8514 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8515 | else | |
8516 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8517 | fi | |
a0b9e27f | 8518 | |
0046ff7c | 8519 | else |
a0b9e27f | 8520 | |
0046ff7c VS |
8521 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8522 | if test "x$LINE" != x ; then | |
8523 | eval "DEFAULT_$LINE" | |
8524 | else | |
8525 | no_cache=1 | |
8526 | fi | |
8527 | ||
8528 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
a0b9e27f MB |
8529 | |
8530 | fi | |
0046ff7c VS |
8531 | |
8532 | ||
8533 | eval "$ac_cv_use_image" | |
8534 | if test "$no_cache" != 1; then | |
8535 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8536 | fi | |
8537 | ||
8538 | if test "$wxUSE_IMAGE" = yes; then | |
a0b9e27f | 8539 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8540 | else |
a0b9e27f | 8541 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8542 | fi |
a0b9e27f | 8543 | |
0046ff7c | 8544 | |
5005acfe VZ |
8545 | enablestring= |
8546 | echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6 | |
521196a2 | 8547 | echo "configure:8548: checking for --${enablestring:-enable}-gif" >&5 |
10f2d63a VZ |
8548 | no_cache=0 |
8549 | # Check whether --enable-gif or --disable-gif was given. | |
8550 | if test "${enable_gif+set}" = set; then | |
8551 | enableval="$enable_gif" | |
a0b9e27f | 8552 | |
10f2d63a VZ |
8553 | if test "$enableval" = yes; then |
8554 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8555 | else | |
8556 | ac_cv_use_gif='wxUSE_GIF=no' | |
8557 | fi | |
a0b9e27f | 8558 | |
10f2d63a | 8559 | else |
a0b9e27f | 8560 | |
10f2d63a VZ |
8561 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8562 | if test "x$LINE" != x ; then | |
8563 | eval "DEFAULT_$LINE" | |
8564 | else | |
8565 | no_cache=1 | |
8566 | fi | |
8567 | ||
8568 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
a0b9e27f MB |
8569 | |
8570 | fi | |
10f2d63a VZ |
8571 | |
8572 | ||
8573 | eval "$ac_cv_use_gif" | |
8574 | if test "$no_cache" != 1; then | |
8575 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8576 | fi | |
8577 | ||
8578 | if test "$wxUSE_GIF" = yes; then | |
a0b9e27f | 8579 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8580 | else |
a0b9e27f | 8581 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8582 | fi |
a0b9e27f | 8583 | |
10f2d63a | 8584 | |
5005acfe VZ |
8585 | enablestring= |
8586 | echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6 | |
521196a2 | 8587 | echo "configure:8588: checking for --${enablestring:-enable}-pcx" >&5 |
10f2d63a VZ |
8588 | no_cache=0 |
8589 | # Check whether --enable-pcx or --disable-pcx was given. | |
8590 | if test "${enable_pcx+set}" = set; then | |
8591 | enableval="$enable_pcx" | |
a0b9e27f | 8592 | |
10f2d63a VZ |
8593 | if test "$enableval" = yes; then |
8594 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8595 | else | |
8596 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8597 | fi | |
a0b9e27f | 8598 | |
10f2d63a | 8599 | else |
a0b9e27f | 8600 | |
10f2d63a VZ |
8601 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8602 | if test "x$LINE" != x ; then | |
8603 | eval "DEFAULT_$LINE" | |
8604 | else | |
8605 | no_cache=1 | |
8606 | fi | |
8607 | ||
8608 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
a0b9e27f MB |
8609 | |
8610 | fi | |
10f2d63a VZ |
8611 | |
8612 | ||
8613 | eval "$ac_cv_use_pcx" | |
8614 | if test "$no_cache" != 1; then | |
8615 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8616 | fi | |
8617 | ||
8618 | if test "$wxUSE_PCX" = yes; then | |
a0b9e27f | 8619 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8620 | else |
a0b9e27f | 8621 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8622 | fi |
a0b9e27f | 8623 | |
10f2d63a | 8624 | |
5005acfe VZ |
8625 | enablestring= |
8626 | echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6 | |
521196a2 | 8627 | echo "configure:8628: checking for --${enablestring:-enable}-iff" >&5 |
4b6b4dfc RR |
8628 | no_cache=0 |
8629 | # Check whether --enable-iff or --disable-iff was given. | |
8630 | if test "${enable_iff+set}" = set; then | |
8631 | enableval="$enable_iff" | |
a0b9e27f | 8632 | |
4b6b4dfc RR |
8633 | if test "$enableval" = yes; then |
8634 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8635 | else | |
8636 | ac_cv_use_iff='wxUSE_IFF=no' | |
8637 | fi | |
a0b9e27f | 8638 | |
4b6b4dfc | 8639 | else |
a0b9e27f | 8640 | |
4b6b4dfc RR |
8641 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
8642 | if test "x$LINE" != x ; then | |
8643 | eval "DEFAULT_$LINE" | |
8644 | else | |
8645 | no_cache=1 | |
8646 | fi | |
8647 | ||
8648 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
a0b9e27f MB |
8649 | |
8650 | fi | |
4b6b4dfc RR |
8651 | |
8652 | ||
8653 | eval "$ac_cv_use_iff" | |
8654 | if test "$no_cache" != 1; then | |
8655 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8656 | fi | |
8657 | ||
8658 | if test "$wxUSE_IFF" = yes; then | |
a0b9e27f | 8659 | echo "$ac_t""yes" 1>&6 |
4b6b4dfc | 8660 | else |
a0b9e27f | 8661 | echo "$ac_t""no" 1>&6 |
4b6b4dfc | 8662 | fi |
a0b9e27f | 8663 | |
4b6b4dfc | 8664 | |
5005acfe VZ |
8665 | enablestring= |
8666 | echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6 | |
521196a2 | 8667 | echo "configure:8668: checking for --${enablestring:-enable}-pnm" >&5 |
10f2d63a VZ |
8668 | no_cache=0 |
8669 | # Check whether --enable-pnm or --disable-pnm was given. | |
8670 | if test "${enable_pnm+set}" = set; then | |
8671 | enableval="$enable_pnm" | |
a0b9e27f | 8672 | |
10f2d63a VZ |
8673 | if test "$enableval" = yes; then |
8674 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8675 | else | |
8676 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8677 | fi | |
a0b9e27f | 8678 | |
10f2d63a | 8679 | else |
a0b9e27f | 8680 | |
10f2d63a VZ |
8681 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8682 | if test "x$LINE" != x ; then | |
8683 | eval "DEFAULT_$LINE" | |
8684 | else | |
8685 | no_cache=1 | |
8686 | fi | |
8687 | ||
8688 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
a0b9e27f MB |
8689 | |
8690 | fi | |
10f2d63a VZ |
8691 | |
8692 | ||
8693 | eval "$ac_cv_use_pnm" | |
8694 | if test "$no_cache" != 1; then | |
8695 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8696 | fi | |
8697 | ||
8698 | if test "$wxUSE_PNM" = yes; then | |
a0b9e27f | 8699 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8700 | else |
a0b9e27f | 8701 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8702 | fi |
a0b9e27f | 8703 | |
10f2d63a | 8704 | |
5005acfe VZ |
8705 | enablestring= |
8706 | echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6 | |
521196a2 | 8707 | echo "configure:8708: checking for --${enablestring:-enable}-xpm" >&5 |
0046ff7c | 8708 | no_cache=0 |
69d27ff7 MB |
8709 | # Check whether --enable-xpm or --disable-xpm was given. |
8710 | if test "${enable_xpm+set}" = set; then | |
8711 | enableval="$enable_xpm" | |
a0b9e27f | 8712 | |
0046ff7c | 8713 | if test "$enableval" = yes; then |
69d27ff7 | 8714 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8715 | else |
69d27ff7 | 8716 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8717 | fi |
a0b9e27f | 8718 | |
0046ff7c | 8719 | else |
a0b9e27f | 8720 | |
0046ff7c VS |
8721 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8722 | if test "x$LINE" != x ; then | |
8723 | eval "DEFAULT_$LINE" | |
8724 | else | |
8725 | no_cache=1 | |
8726 | fi | |
8727 | ||
69d27ff7 | 8728 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
a0b9e27f MB |
8729 | |
8730 | fi | |
0046ff7c VS |
8731 | |
8732 | ||
69d27ff7 | 8733 | eval "$ac_cv_use_xpm" |
0046ff7c | 8734 | if test "$no_cache" != 1; then |
69d27ff7 | 8735 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8736 | fi |
8737 | ||
8738 | if test "$wxUSE_XPM" = yes; then | |
a0b9e27f | 8739 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8740 | else |
a0b9e27f | 8741 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8742 | fi |
a0b9e27f | 8743 | |
0046ff7c | 8744 | |
5005acfe VZ |
8745 | enablestring= |
8746 | echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6 | |
521196a2 | 8747 | echo "configure:8748: checking for --${enablestring:-enable}-ico_cur" >&5 |
658974ae | 8748 | no_cache=0 |
c7206e64 VS |
8749 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8750 | if test "${enable_ico_cur+set}" = set; then | |
8751 | enableval="$enable_ico_cur" | |
a0b9e27f | 8752 | |
658974ae | 8753 | if test "$enableval" = yes; then |
c7206e64 | 8754 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8755 | else |
c7206e64 | 8756 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 8757 | fi |
a0b9e27f | 8758 | |
658974ae | 8759 | else |
a0b9e27f | 8760 | |
658974ae VS |
8761 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
8762 | if test "x$LINE" != x ; then | |
8763 | eval "DEFAULT_$LINE" | |
8764 | else | |
8765 | no_cache=1 | |
8766 | fi | |
8767 | ||
c7206e64 | 8768 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
a0b9e27f MB |
8769 | |
8770 | fi | |
658974ae VS |
8771 | |
8772 | ||
c7206e64 | 8773 | eval "$ac_cv_use_ico_cur" |
658974ae | 8774 | if test "$no_cache" != 1; then |
c7206e64 | 8775 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8776 | fi |
8777 | ||
8778 | if test "$wxUSE_ICO_CUR" = yes; then | |
a0b9e27f | 8779 | echo "$ac_t""yes" 1>&6 |
658974ae | 8780 | else |
a0b9e27f | 8781 | echo "$ac_t""no" 1>&6 |
658974ae | 8782 | fi |
a0b9e27f | 8783 | |
658974ae | 8784 | |
b12915c1 VZ |
8785 | fi |
8786 | ||
d558c907 VS |
8787 | case "${host}" in |
8788 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 MB |
8789 | PATH_IFS=';' |
8790 | LEX_STEM="lexyy" | |
d558c907 VS |
8791 | ;; |
8792 | *) | |
8793 | PATH_IFS=':' | |
8794 | LEX_STEM="lex.yy" | |
8795 | ;; | |
8796 | esac | |
8797 | ||
8284b0c5 MB |
8798 | |
8799 | ||
10f2d63a VZ |
8800 | echo "saving argument cache $wx_arg_cache_file" |
8801 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
a0b9e27f | 8802 | |
52127426 | 8803 | |
8284b0c5 | 8804 | |
a0b9e27f | 8805 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 |
521196a2 | 8806 | echo "configure:8807: checking for toolkit" >&5 |
89e6bf6d VZ |
8807 | |
8808 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
8809 | if test "$wxUSE_WINE" = "yes"; then | |
8810 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
8811 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
8812 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
8813 | fi | |
10f2d63a VZ |
8814 | |
8815 | if test "$wxUSE_GUI" = "yes"; then | |
8816 | ||
3a922bb4 | 8817 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 8818 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
3a922bb4 | 8819 | fi |
b12915c1 | 8820 | |
3a922bb4 RL |
8821 | if test "$TOOLKIT_GIVEN" = 1; then |
8822 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8823 | var=wxUSE_$toolkit | |
8824 | eval "value=\$${var}" | |
8825 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8826 | done | |
10f2d63a | 8827 | else |
3a922bb4 RL |
8828 | for toolkit in `echo $ALL_TOOLKITS`; do |
8829 | if test "$has_toolkit_in_cache" != 1; then | |
8830 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8831 | else | |
8832 | var=DEFAULT_wxUSE_$toolkit | |
8833 | fi | |
8834 | eval "wxUSE_$toolkit=\$${var}" | |
8835 | done | |
10f2d63a | 8836 | fi |
10f2d63a | 8837 | |
3a922bb4 | 8838 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
89e6bf6d | 8839 | + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8840 | |
d558c907 | 8841 | case "${host}" in |
6fa882bd | 8842 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8843 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8844 | esac |
10f2d63a | 8845 | |
3a922bb4 RL |
8846 | case "$NUM_TOOLKITS" in |
8847 | 1) | |
8848 | ;; | |
8849 | 0) | |
a0b9e27f | 8850 | { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; } |
3a922bb4 RL |
8851 | ;; |
8852 | *) | |
a0b9e27f | 8853 | { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; } |
3a922bb4 | 8854 | esac |
10f2d63a | 8855 | |
3a922bb4 RL |
8856 | for toolkit in `echo $ALL_TOOLKITS`; do |
8857 | var=wxUSE_$toolkit | |
8858 | eval "value=\$${var}" | |
8859 | if test "x$value" != x; then | |
8860 | cache_var=CACHE_$toolkit | |
8861 | eval "cache=\$${cache_var}" | |
8862 | if test "$cache" = 1; then | |
8863 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8864 | fi | |
8865 | if test "$value" = 1; then | |
8866 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
a0b9e27f | 8867 | echo "$ac_t""$toolkit_echo" 1>&6 |
3a922bb4 RL |
8868 | fi |
8869 | fi | |
8870 | done | |
10f2d63a | 8871 | else |
a0b9e27f | 8872 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8873 | fi |
8874 | ||
43d99b6d VS |
8875 | wants_win32=0 |
8876 | doesnt_want_win32=0 | |
17234b26 MB |
8877 | case "${host}" in |
8878 | *-*-cygwin*) | |
8879 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
8880 | wants_win32=1 |
8881 | else | |
8882 | doesnt_want_win32=1 | |
17234b26 MB |
8883 | fi |
8884 | ;; | |
8885 | *-*-mingw*) | |
43d99b6d | 8886 | wants_win32=1 |
17234b26 MB |
8887 | ;; |
8888 | esac | |
8889 | ||
89e6bf6d VZ |
8890 | if test "$wxUSE_WINE" = "yes"; then |
8891 | wants_win32=1 | |
8892 | CC=winegcc | |
8893 | CXX=wineg++ | |
8894 | RESCOMP=wrc | |
8895 | fi | |
8896 | ||
43d99b6d | 8897 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
8898 | USE_UNIX=0 |
8899 | USE_WIN32=1 | |
a0b9e27f | 8900 | cat >> confdefs.h <<\EOF |
17234b26 | 8901 | #define __WIN32__ 1 |
a0b9e27f | 8902 | EOF |
17234b26 | 8903 | |
a0b9e27f | 8904 | cat >> confdefs.h <<\EOF |
17234b26 | 8905 | #define __WIN95__ 1 |
a0b9e27f | 8906 | EOF |
17234b26 | 8907 | |
a0b9e27f | 8908 | cat >> confdefs.h <<\EOF |
17234b26 | 8909 | #define __WINDOWS__ 1 |
a0b9e27f | 8910 | EOF |
17234b26 | 8911 | |
a0b9e27f | 8912 | cat >> confdefs.h <<\EOF |
17234b26 | 8913 | #define __GNUWIN32__ 1 |
a0b9e27f | 8914 | EOF |
17234b26 | 8915 | |
a0b9e27f | 8916 | cat >> confdefs.h <<\EOF |
17234b26 | 8917 | #define STRICT 1 |
a0b9e27f | 8918 | EOF |
17234b26 | 8919 | |
a0b9e27f | 8920 | cat >> confdefs.h <<\EOF |
17234b26 | 8921 | #define WINVER 0x0400 |
a0b9e27f | 8922 | EOF |
17234b26 | 8923 | |
43d99b6d VS |
8924 | fi |
8925 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
8926 | USE_UNIX=1 |
8927 | USE_WIN32=0 | |
8928 | fi | |
8929 | ||
8930 | if test "$USE_UNIX" = 1 ; then | |
8931 | wxUSE_UNIX=yes | |
a0b9e27f | 8932 | cat >> confdefs.h <<\EOF |
17234b26 | 8933 | #define __UNIX__ 1 |
a0b9e27f | 8934 | EOF |
17234b26 MB |
8935 | |
8936 | fi | |
8937 | ||
8284b0c5 | 8938 | |
a0b9e27f | 8939 | cat > confcache <<\EOF |
10f2d63a VZ |
8940 | # This file is a shell script that caches the results of configure |
8941 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
8942 | # scripts and configure runs. It is not useful on other systems. |
8943 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8944 | # |
a0b9e27f MB |
8945 | # By default, configure uses ./config.cache as the cache file, |
8946 | # creating it if it does not exist already. You can give configure | |
8947 | # the --cache-file=FILE option to use a different cache file; that is | |
8948 | # what configure does when it calls configure scripts in | |
8949 | # subdirectories, so they share the cache. | |
8950 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8951 | # config.status only pays attention to the cache file if you give it the | |
8952 | # --recheck option to rerun configure. | |
10f2d63a | 8953 | # |
a0b9e27f | 8954 | EOF |
10f2d63a VZ |
8955 | # The following way of writing the cache mishandles newlines in values, |
8956 | # but we know of no workaround that is simple, portable, and efficient. | |
8957 | # So, don't put newlines in cache variables' values. | |
8958 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8959 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
8960 | (set) 2>&1 | |
8961 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8962 | *ac_space=\ *) | |
8963 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8964 | # turns \\\\ into \\, and sed turns \\ into \). | |
8965 | sed -n \ | |
8966 | -e "s/'/'\\\\''/g" \ | |
8967 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8968 | ;; | |
8969 | *) | |
8970 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8971 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8972 | ;; | |
8973 | esac >> confcache | |
8974 | if cmp -s $cache_file confcache; then | |
8975 | : | |
8976 | else | |
10f2d63a | 8977 | if test -w $cache_file; then |
a0b9e27f MB |
8978 | echo "updating cache $cache_file" |
8979 | cat confcache > $cache_file | |
10f2d63a VZ |
8980 | else |
8981 | echo "not updating unwritable cache $cache_file" | |
8982 | fi | |
8983 | fi | |
8984 | rm -f confcache | |
8985 | ||
a0b9e27f | 8986 | |
e59890c3 | 8987 | if test "$build" != "$host" ; then |
9d353d4a | 8988 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8989 | CC=$host_alias-gcc |
8990 | CXX=$host_alias-c++ | |
8991 | AR=$host_alias-ar | |
8992 | RANLIB=$host_alias-ranlib | |
8993 | DLLTOOL=$host_alias-dlltool | |
8994 | RESCOMP=$host_alias-windres | |
8995 | LD=$host_alias-ld | |
8996 | NM=$host_alias-nm | |
8997 | STRIP=$host_alias-strip | |
8998 | else | |
a0b9e27f | 8999 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } |
3a922bb4 | 9000 | fi |
10f2d63a VZ |
9001 | fi |
9002 | ||
ec603395 | 9003 | CFLAGS=${CFLAGS:=} |
a0b9e27f | 9004 | # Extract the first word of "gcc", so it can be a program name with args. |
8284b0c5 | 9005 | set dummy gcc; ac_word=$2 |
a0b9e27f | 9006 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
521196a2 | 9007 | echo "configure:9008: checking for $ac_word" >&5 |
a0b9e27f MB |
9008 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
9009 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
9010 | else |
9011 | if test -n "$CC"; then | |
9012 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 9013 | else |
a0b9e27f MB |
9014 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9015 | ac_dummy="$PATH" | |
9016 | for ac_dir in $ac_dummy; do | |
9017 | test -z "$ac_dir" && ac_dir=. | |
9018 | if test -f $ac_dir/$ac_word; then | |
9019 | ac_cv_prog_CC="gcc" | |
9020 | break | |
9021 | fi | |
9022 | done | |
9023 | IFS="$ac_save_ifs" | |
10f2d63a | 9024 | fi |
6232543b | 9025 | fi |
a0b9e27f | 9026 | CC="$ac_cv_prog_CC" |
6232543b | 9027 | if test -n "$CC"; then |
a0b9e27f | 9028 | echo "$ac_t""$CC" 1>&6 |
247f5006 | 9029 | else |
a0b9e27f | 9030 | echo "$ac_t""no" 1>&6 |
247f5006 VZ |
9031 | fi |
9032 | ||
5c6fa7d2 RR |
9033 | if test -z "$CC"; then |
9034 | # Extract the first word of "cc", so it can be a program name with args. | |
9035 | set dummy cc; ac_word=$2 | |
a0b9e27f | 9036 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
521196a2 | 9037 | echo "configure:9038: checking for $ac_word" >&5 |
a0b9e27f MB |
9038 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
9039 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 RR |
9040 | else |
9041 | if test -n "$CC"; then | |
9042 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9043 | else | |
a0b9e27f | 9044 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5c6fa7d2 | 9045 | ac_prog_rejected=no |
a0b9e27f MB |
9046 | ac_dummy="$PATH" |
9047 | for ac_dir in $ac_dummy; do | |
9048 | test -z "$ac_dir" && ac_dir=. | |
9049 | if test -f $ac_dir/$ac_word; then | |
9050 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
9051 | ac_prog_rejected=yes | |
9052 | continue | |
9053 | fi | |
9054 | ac_cv_prog_CC="cc" | |
9055 | break | |
9056 | fi | |
9057 | done | |
9058 | IFS="$ac_save_ifs" | |
328a083c RR |
9059 | if test $ac_prog_rejected = yes; then |
9060 | # We found a bogon in the path, so make sure we never use it. | |
9061 | set dummy $ac_cv_prog_CC | |
9062 | shift | |
a0b9e27f | 9063 | if test $# -gt 0; then |
328a083c | 9064 | # We chose a different compiler from the bogus one. |
1e487827 VS |
9065 | # However, it has the same basename, so the bogon will be chosen |
9066 | # first if we set CC to just the basename; use the full file name. | |
9067 | shift | |
a0b9e27f | 9068 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
9069 | shift |
9070 | ac_cv_prog_CC="$@" | |
703e0a69 | 9071 | fi |
1e487827 VS |
9072 | fi |
9073 | fi | |
9074 | fi | |
a0b9e27f | 9075 | CC="$ac_cv_prog_CC" |
1e487827 | 9076 | if test -n "$CC"; then |
a0b9e27f | 9077 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 9078 | else |
a0b9e27f | 9079 | echo "$ac_t""no" 1>&6 |
703e0a69 | 9080 | fi |
1e487827 | 9081 | |
a0b9e27f MB |
9082 | if test -z "$CC"; then |
9083 | case "`uname -s`" in | |
9084 | *win32* | *WIN32*) | |
9085 | # Extract the first word of "cl", so it can be a program name with args. | |
9086 | set dummy cl; ac_word=$2 | |
9087 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
521196a2 | 9088 | echo "configure:9089: checking for $ac_word" >&5 |
a0b9e27f MB |
9089 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
9090 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf VS |
9091 | else |
9092 | if test -n "$CC"; then | |
9093 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9094 | else | |
a0b9e27f MB |
9095 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9096 | ac_dummy="$PATH" | |
9097 | for ac_dir in $ac_dummy; do | |
9098 | test -z "$ac_dir" && ac_dir=. | |
9099 | if test -f $ac_dir/$ac_word; then | |
9100 | ac_cv_prog_CC="cl" | |
9101 | break | |
9102 | fi | |
9103 | done | |
9104 | IFS="$ac_save_ifs" | |
f09359cf VS |
9105 | fi |
9106 | fi | |
a0b9e27f | 9107 | CC="$ac_cv_prog_CC" |
f09359cf | 9108 | if test -n "$CC"; then |
a0b9e27f | 9109 | echo "$ac_t""$CC" 1>&6 |
f09359cf | 9110 | else |
a0b9e27f | 9111 | echo "$ac_t""no" 1>&6 |
247f5006 | 9112 | fi |
a0b9e27f MB |
9113 | ;; |
9114 | esac | |
8284b0c5 | 9115 | fi |
a0b9e27f | 9116 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
5c6fa7d2 | 9117 | fi |
1e487827 | 9118 | |
a0b9e27f | 9119 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
521196a2 | 9120 | echo "configure:9121: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
f09359cf | 9121 | |
a0b9e27f MB |
9122 | ac_ext=c |
9123 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9124 | ac_cpp='$CPP $CPPFLAGS' | |
9125 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9126 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9127 | cross_compiling=$ac_cv_prog_cc_cross | |
f09359cf | 9128 | |
a0b9e27f | 9129 | cat > conftest.$ac_ext << EOF |
247f5006 | 9130 | |
521196a2 | 9131 | #line 9132 "configure" |
a0b9e27f | 9132 | #include "confdefs.h" |
247f5006 | 9133 | |
a0b9e27f MB |
9134 | main(){return(0);} |
9135 | EOF | |
521196a2 | 9136 | if { (eval echo configure:9137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9137 | ac_cv_prog_cc_works=yes |
9138 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9139 | if (./conftest; exit) 2>/dev/null; then | |
9140 | ac_cv_prog_cc_cross=no | |
698dcdb6 | 9141 | else |
a0b9e27f | 9142 | ac_cv_prog_cc_cross=yes |
698dcdb6 | 9143 | fi |
7b4a847f | 9144 | else |
a0b9e27f MB |
9145 | echo "configure: failed program was:" >&5 |
9146 | cat conftest.$ac_ext >&5 | |
9147 | ac_cv_prog_cc_works=no | |
52127426 | 9148 | fi |
a0b9e27f MB |
9149 | rm -fr conftest* |
9150 | ac_ext=c | |
9151 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9152 | ac_cpp='$CPP $CPPFLAGS' | |
9153 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9154 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9155 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 9156 | |
a0b9e27f MB |
9157 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
9158 | if test $ac_cv_prog_cc_works = no; then | |
9159 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
9160 | fi | |
9161 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
521196a2 | 9162 | echo "configure:9163: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9163 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
9164 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 9165 | |
a0b9e27f | 9166 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
521196a2 | 9167 | echo "configure:9168: checking whether we are using GNU C" >&5 |
a0b9e27f MB |
9168 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
9169 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9170 | else |
a0b9e27f MB |
9171 | cat > conftest.c <<EOF |
9172 | #ifdef __GNUC__ | |
9173 | yes; | |
8284b0c5 | 9174 | #endif |
a0b9e27f | 9175 | EOF |
521196a2 | 9176 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f | 9177 | ac_cv_prog_gcc=yes |
5c6fa7d2 | 9178 | else |
a0b9e27f | 9179 | ac_cv_prog_gcc=no |
8284b0c5 MB |
9180 | fi |
9181 | fi | |
1e487827 | 9182 | |
a0b9e27f | 9183 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
f09359cf | 9184 | |
a0b9e27f MB |
9185 | if test $ac_cv_prog_gcc = yes; then |
9186 | GCC=yes | |
9187 | else | |
9188 | GCC= | |
9189 | fi | |
247f5006 | 9190 | |
a0b9e27f MB |
9191 | ac_test_CFLAGS="${CFLAGS+set}" |
9192 | ac_save_CFLAGS="$CFLAGS" | |
9193 | CFLAGS= | |
9194 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
521196a2 | 9195 | echo "configure:9196: checking whether ${CC-cc} accepts -g" >&5 |
a0b9e27f MB |
9196 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
9197 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9198 | else | |
9199 | echo 'void f(){}' > conftest.c | |
9200 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
9201 | ac_cv_prog_cc_g=yes |
9202 | else | |
a0b9e27f | 9203 | ac_cv_prog_cc_g=no |
10f2d63a | 9204 | fi |
a0b9e27f MB |
9205 | rm -f conftest* |
9206 | ||
10f2d63a | 9207 | fi |
a0b9e27f MB |
9208 | |
9209 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
f09359cf | 9210 | if test "$ac_test_CFLAGS" = set; then |
a0b9e27f | 9211 | CFLAGS="$ac_save_CFLAGS" |
f09359cf VS |
9212 | elif test $ac_cv_prog_cc_g = yes; then |
9213 | if test "$GCC" = yes; then | |
10f2d63a VZ |
9214 | CFLAGS="-g -O2" |
9215 | else | |
f09359cf | 9216 | CFLAGS="-g" |
10f2d63a | 9217 | fi |
5c0a20c3 | 9218 | else |
f09359cf VS |
9219 | if test "$GCC" = yes; then |
9220 | CFLAGS="-O2" | |
9221 | else | |
9222 | CFLAGS= | |
9223 | fi | |
10f2d63a VZ |
9224 | fi |
9225 | ||
9226 | ||
a0b9e27f | 9227 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
521196a2 | 9228 | echo "configure:9229: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
9229 | # On Suns, sometimes $CPP names a directory. |
9230 | if test -n "$CPP" && test -d "$CPP"; then | |
9231 | CPP= | |
9232 | fi | |
9233 | if test -z "$CPP"; then | |
a0b9e27f MB |
9234 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
9235 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9236 | else | |
9237 | # This must be in double quotes, not single quotes, because CPP may get | |
9238 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
9239 | CPP="${CC-cc} -E" | |
10f2d63a | 9240 | # On the NeXT, cc -E runs the code through the compiler's parser, |
a0b9e27f MB |
9241 | # not just through cpp. |
9242 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 9243 | #line 9244 "configure" |
10f2d63a VZ |
9244 | #include "confdefs.h" |
9245 | #include <assert.h> | |
a0b9e27f MB |
9246 | Syntax Error |
9247 | EOF | |
9248 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 9249 | { (eval echo configure:9250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9250 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9251 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9252 | : |
9253 | else | |
a0b9e27f MB |
9254 | echo "$ac_err" >&5 |
9255 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9256 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9257 | rm -rf conftest* |
9258 | CPP="${CC-cc} -E -traditional-cpp" | |
9259 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 9260 | #line 9261 "configure" |
f09359cf | 9261 | #include "confdefs.h" |
a0b9e27f MB |
9262 | #include <assert.h> |
9263 | Syntax Error | |
9264 | EOF | |
9265 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 9266 | { (eval echo configure:9267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9267 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9268 | if test -z "$ac_err"; then | |
9269 | : | |
247f5006 | 9270 | else |
a0b9e27f MB |
9271 | echo "$ac_err" >&5 |
9272 | echo "configure: failed program was:" >&5 | |
f09359cf | 9273 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9274 | rm -rf conftest* |
9275 | CPP="${CC-cc} -nologo -E" | |
9276 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 9277 | #line 9278 "configure" |
10f2d63a VZ |
9278 | #include "confdefs.h" |
9279 | #include <assert.h> | |
a0b9e27f MB |
9280 | Syntax Error |
9281 | EOF | |
9282 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 9283 | { (eval echo configure:9284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9284 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9285 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9286 | : |
9287 | else | |
a0b9e27f MB |
9288 | echo "$ac_err" >&5 |
9289 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9290 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9291 | rm -rf conftest* |
9292 | CPP=/lib/cpp | |
579d8138 | 9293 | fi |
a0b9e27f | 9294 | rm -f conftest* |
52127426 | 9295 | fi |
a0b9e27f | 9296 | rm -f conftest* |
8284b0c5 | 9297 | fi |
a0b9e27f MB |
9298 | rm -f conftest* |
9299 | ac_cv_prog_CPP="$CPP" | |
9300 | fi | |
9301 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 9302 | else |
a0b9e27f | 9303 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 9304 | fi |
a0b9e27f | 9305 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 9306 | |
a0b9e27f MB |
9307 | if test $ac_cv_prog_gcc = yes; then |
9308 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
521196a2 | 9309 | echo "configure:9310: checking whether ${CC-cc} needs -traditional" >&5 |
a0b9e27f MB |
9310 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
9311 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9312 | else |
9313 | ac_pattern="Autoconf.*'x'" | |
a0b9e27f | 9314 | cat > conftest.$ac_ext <<EOF |
521196a2 | 9315 | #line 9316 "configure" |
10f2d63a VZ |
9316 | #include "confdefs.h" |
9317 | #include <sgtty.h> | |
9318 | Autoconf TIOCGETP | |
a0b9e27f | 9319 | EOF |
10f2d63a VZ |
9320 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9321 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9322 | rm -rf conftest* |
10f2d63a VZ |
9323 | ac_cv_prog_gcc_traditional=yes |
9324 | else | |
a0b9e27f | 9325 | rm -rf conftest* |
10f2d63a VZ |
9326 | ac_cv_prog_gcc_traditional=no |
9327 | fi | |
9328 | rm -f conftest* | |
9329 | ||
8284b0c5 | 9330 | |
10f2d63a | 9331 | if test $ac_cv_prog_gcc_traditional = no; then |
a0b9e27f | 9332 | cat > conftest.$ac_ext <<EOF |
521196a2 | 9333 | #line 9334 "configure" |
10f2d63a VZ |
9334 | #include "confdefs.h" |
9335 | #include <termio.h> | |
9336 | Autoconf TCGETA | |
a0b9e27f | 9337 | EOF |
10f2d63a VZ |
9338 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9339 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9340 | rm -rf conftest* |
10f2d63a VZ |
9341 | ac_cv_prog_gcc_traditional=yes |
9342 | fi | |
9343 | rm -f conftest* | |
9344 | ||
9345 | fi | |
9346 | fi | |
a0b9e27f MB |
9347 | |
9348 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
9349 | if test $ac_cv_prog_gcc_traditional = yes; then |
9350 | CC="$CC -traditional" | |
9351 | fi | |
9352 | fi | |
9353 | ||
8284b0c5 MB |
9354 | |
9355 | ||
a0b9e27f MB |
9356 | ac_ext=C |
9357 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 9358 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
9359 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9360 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9361 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9362 | |
698dcdb6 | 9363 | |
ec603395 | 9364 | CXXFLAGS=${CXXFLAGS:=} |
a0b9e27f MB |
9365 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
9366 | do | |
9367 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9368 | set dummy $ac_prog; ac_word=$2 | |
9369 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
521196a2 | 9370 | echo "configure:9371: checking for $ac_word" >&5 |
a0b9e27f MB |
9371 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
9372 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9373 | else |
9374 | if test -n "$CXX"; then | |
9375 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
9376 | else | |
a0b9e27f MB |
9377 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9378 | ac_dummy="$PATH" | |
9379 | for ac_dir in $ac_dummy; do | |
9380 | test -z "$ac_dir" && ac_dir=. | |
9381 | if test -f $ac_dir/$ac_word; then | |
9382 | ac_cv_prog_CXX="$ac_prog" | |
9383 | break | |
9384 | fi | |
9385 | done | |
9386 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9387 | fi |
9388 | fi | |
a0b9e27f | 9389 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 9390 | if test -n "$CXX"; then |
a0b9e27f | 9391 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9392 | else |
a0b9e27f | 9393 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9394 | fi |
9395 | ||
a0b9e27f | 9396 | test -n "$CXX" && break |
10f2d63a | 9397 | done |
a0b9e27f | 9398 | test -n "$CXX" || CXX="gcc" |
f09359cf | 9399 | |
a0b9e27f MB |
9400 | |
9401 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
521196a2 | 9402 | echo "configure:9403: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
a0b9e27f MB |
9403 | |
9404 | ac_ext=C | |
9405 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9406 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9407 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9408 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9409 | cross_compiling=$ac_cv_prog_cxx_cross | |
9410 | ||
9411 | cat > conftest.$ac_ext << EOF | |
9412 | ||
521196a2 | 9413 | #line 9414 "configure" |
a0b9e27f MB |
9414 | #include "confdefs.h" |
9415 | ||
9416 | int main(){return(0);} | |
9417 | EOF | |
521196a2 | 9418 | if { (eval echo configure:9419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9419 | ac_cv_prog_cxx_works=yes |
9420 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9421 | if (./conftest; exit) 2>/dev/null; then | |
9422 | ac_cv_prog_cxx_cross=no | |
9423 | else | |
9424 | ac_cv_prog_cxx_cross=yes | |
9425 | fi | |
8284b0c5 | 9426 | else |
a0b9e27f MB |
9427 | echo "configure: failed program was:" >&5 |
9428 | cat conftest.$ac_ext >&5 | |
9429 | ac_cv_prog_cxx_works=no | |
8284b0c5 | 9430 | fi |
a0b9e27f MB |
9431 | rm -fr conftest* |
9432 | ac_ext=C | |
9433 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9434 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9435 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9436 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9437 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9438 | |
a0b9e27f MB |
9439 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
9440 | if test $ac_cv_prog_cxx_works = no; then | |
9441 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9442 | fi | |
9443 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
521196a2 | 9444 | echo "configure:9445: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9445 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9446 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9447 | |
a0b9e27f | 9448 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
521196a2 | 9449 | echo "configure:9450: checking whether we are using GNU C++" >&5 |
a0b9e27f MB |
9450 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9451 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9452 | else | |
9453 | cat > conftest.C <<EOF | |
9454 | #ifdef __GNUC__ | |
9455 | yes; | |
10f2d63a | 9456 | #endif |
a0b9e27f | 9457 | EOF |
521196a2 | 9458 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f MB |
9459 | ac_cv_prog_gxx=yes |
9460 | else | |
9461 | ac_cv_prog_gxx=no | |
9462 | fi | |
9463 | fi | |
10f2d63a | 9464 | |
a0b9e27f | 9465 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9466 | |
a0b9e27f MB |
9467 | if test $ac_cv_prog_gxx = yes; then |
9468 | GXX=yes | |
9469 | else | |
9470 | GXX= | |
9471 | fi | |
f09359cf | 9472 | |
a0b9e27f MB |
9473 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9474 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9475 | CXXFLAGS= | |
9476 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
521196a2 | 9477 | echo "configure:9478: checking whether ${CXX-g++} accepts -g" >&5 |
a0b9e27f MB |
9478 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9479 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9480 | else | |
9481 | echo 'void f(){}' > conftest.cc | |
9482 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9483 | ac_cv_prog_cxx_g=yes |
9484 | else | |
a0b9e27f | 9485 | ac_cv_prog_cxx_g=no |
10f2d63a | 9486 | fi |
a0b9e27f MB |
9487 | rm -f conftest* |
9488 | ||
10f2d63a | 9489 | fi |
a0b9e27f MB |
9490 | |
9491 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
f09359cf | 9492 | if test "$ac_test_CXXFLAGS" = set; then |
a0b9e27f | 9493 | CXXFLAGS="$ac_save_CXXFLAGS" |
f09359cf VS |
9494 | elif test $ac_cv_prog_cxx_g = yes; then |
9495 | if test "$GXX" = yes; then | |
10f2d63a VZ |
9496 | CXXFLAGS="-g -O2" |
9497 | else | |
f09359cf | 9498 | CXXFLAGS="-g" |
10f2d63a | 9499 | fi |
5c0a20c3 | 9500 | else |
f09359cf VS |
9501 | if test "$GXX" = yes; then |
9502 | CXXFLAGS="-O2" | |
9503 | else | |
9504 | CXXFLAGS= | |
9505 | fi | |
10f2d63a VZ |
9506 | fi |
9507 | ||
9508 | ||
10f2d63a | 9509 | ac_ext=c |
a0b9e27f | 9510 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9511 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
9512 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9513 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9514 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 MB |
9515 | |
9516 | ||
a0b9e27f MB |
9517 | # Extract the first word of "ranlib", so it can be a program name with args. |
9518 | set dummy ranlib; ac_word=$2 | |
9519 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
521196a2 | 9520 | echo "configure:9521: checking for $ac_word" >&5 |
a0b9e27f MB |
9521 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9522 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9523 | else |
9524 | if test -n "$RANLIB"; then | |
9525 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9526 | else | |
a0b9e27f MB |
9527 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9528 | ac_dummy="$PATH" | |
9529 | for ac_dir in $ac_dummy; do | |
9530 | test -z "$ac_dir" && ac_dir=. | |
9531 | if test -f $ac_dir/$ac_word; then | |
9532 | ac_cv_prog_RANLIB="ranlib" | |
9533 | break | |
9534 | fi | |
9535 | done | |
9536 | IFS="$ac_save_ifs" | |
9537 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9538 | fi |
9539 | fi | |
a0b9e27f | 9540 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9541 | if test -n "$RANLIB"; then |
a0b9e27f | 9542 | echo "$ac_t""$RANLIB" 1>&6 |
328a083c | 9543 | else |
a0b9e27f | 9544 | echo "$ac_t""no" 1>&6 |
328a083c RR |
9545 | fi |
9546 | ||
10f2d63a VZ |
9547 | |
9548 | # Extract the first word of "ar", so it can be a program name with args. | |
9549 | set dummy ar; ac_word=$2 | |
a0b9e27f | 9550 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
521196a2 | 9551 | echo "configure:9552: checking for $ac_word" >&5 |
a0b9e27f MB |
9552 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9553 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9554 | else |
9555 | if test -n "$AR"; then | |
9556 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9557 | else | |
a0b9e27f MB |
9558 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9559 | ac_dummy="$PATH" | |
9560 | for ac_dir in $ac_dummy; do | |
9561 | test -z "$ac_dir" && ac_dir=. | |
9562 | if test -f $ac_dir/$ac_word; then | |
9563 | ac_cv_prog_AR="ar" | |
9564 | break | |
9565 | fi | |
9566 | done | |
9567 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9568 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9569 | fi | |
9570 | fi | |
a0b9e27f | 9571 | AR="$ac_cv_prog_AR" |
10f2d63a | 9572 | if test -n "$AR"; then |
a0b9e27f | 9573 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9574 | else |
a0b9e27f | 9575 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9576 | fi |
9577 | ||
8284b0c5 | 9578 | |
6054113a | 9579 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9580 | # so one script is as good as another. But avoid the broken or |
9581 | # incompatible versions: | |
9582 | # SysV /etc/install, /usr/sbin/install | |
9583 | # SunOS /usr/etc/install | |
9584 | # IRIX /sbin/install | |
9585 | # AIX /bin/install | |
f09359cf | 9586 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
9587 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
9588 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9589 | # ./install, which can be erroneously created by make from ./install.sh. | |
a0b9e27f | 9590 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
521196a2 | 9591 | echo "configure:9592: checking for a BSD compatible install" >&5 |
10f2d63a | 9592 | if test -z "$INSTALL"; then |
a0b9e27f MB |
9593 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9594 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9595 | else | |
9596 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
9597 | for ac_dir in $PATH; do | |
9598 | # Account for people who put trailing slashes in PATH elements. | |
9599 | case "$ac_dir/" in | |
9600 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
9601 | *) | |
9602 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9603 | # Don't use installbsd from OSF since it installs stuff as root | |
9604 | # by default. | |
9605 | for ac_prog in ginstall scoinst install; do | |
9606 | if test -f $ac_dir/$ac_prog; then | |
9607 | if test $ac_prog = install && | |
9608 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
9609 | # AIX install. It has an incompatible calling convention. | |
9610 | : | |
9611 | else | |
9612 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9613 | break 2 | |
9614 | fi | |
9615 | fi | |
10f2d63a | 9616 | done |
a0b9e27f MB |
9617 | ;; |
9618 | esac | |
9619 | done | |
9620 | IFS="$ac_save_IFS" | |
10f2d63a VZ |
9621 | |
9622 | fi | |
9623 | if test "${ac_cv_path_install+set}" = set; then | |
a0b9e27f | 9624 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9625 | else |
9626 | # As a last resort, use the slow shell script. We don't cache a | |
9627 | # path for INSTALL within a source directory, because that will | |
9628 | # break other packages using the cache if that directory is | |
9629 | # removed, or if the path is relative. | |
a0b9e27f | 9630 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9631 | fi |
9632 | fi | |
a0b9e27f | 9633 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9634 | |
9635 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9636 | # It thinks the first close brace ends the variable substitution. | |
9637 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9638 | ||
a0b9e27f | 9639 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
f09359cf | 9640 | |
10f2d63a VZ |
9641 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9642 | ||
8284b0c5 | 9643 | |
1d1b75ac VZ |
9644 | case ${INSTALL} in |
9645 | /* ) # Absolute | |
9646 | ;; | |
4f5a7f74 VZ |
9647 | ?:* ) # Drive letter, considered as absolute. |
9648 | ;; | |
3bd8fb5f | 9649 | *) |
1d1b75ac VZ |
9650 | INSTALL=`pwd`/${INSTALL} ;; |
9651 | esac | |
9652 | ||
4f5a7f74 VZ |
9653 | case ${host} in |
9654 | *-hp-hpux* ) | |
9655 | INSTALL_DIR="mkdir" | |
9656 | ;; | |
9657 | ||
9658 | *) INSTALL_DIR="$INSTALL -d" | |
9659 | ;; | |
9660 | esac | |
9661 | ||
8284b0c5 | 9662 | |
6054113a GD |
9663 | case "${host}" in |
9664 | ||
b5853384 | 9665 | powerpc-*-darwin* ) |
eb99ae0b GD |
9666 | INSTALL_PROGRAM="cp -fp" |
9667 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9668 | ;; |
9669 | *) | |
9670 | ;; | |
d6853540 | 9671 | esac |
698dcdb6 | 9672 | |
10f2d63a VZ |
9673 | # Extract the first word of "strip", so it can be a program name with args. |
9674 | set dummy strip; ac_word=$2 | |
a0b9e27f | 9675 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
521196a2 | 9676 | echo "configure:9677: checking for $ac_word" >&5 |
a0b9e27f MB |
9677 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9678 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9679 | else |
9680 | if test -n "$STRIP"; then | |
9681 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9682 | else | |
a0b9e27f MB |
9683 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9684 | ac_dummy="$PATH" | |
9685 | for ac_dir in $ac_dummy; do | |
9686 | test -z "$ac_dir" && ac_dir=. | |
9687 | if test -f $ac_dir/$ac_word; then | |
9688 | ac_cv_prog_STRIP="strip" | |
9689 | break | |
9690 | fi | |
9691 | done | |
9692 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9693 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9694 | fi | |
9695 | fi | |
a0b9e27f | 9696 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9697 | if test -n "$STRIP"; then |
a0b9e27f | 9698 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9699 | else |
a0b9e27f | 9700 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9701 | fi |
9702 | ||
5c6fa7d2 | 9703 | |
a0b9e27f | 9704 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
521196a2 | 9705 | echo "configure:9706: checking if make is GNU make" >&5 |
a0b9e27f MB |
9706 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9707 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9708 | else |
a0b9e27f | 9709 | |
414eab6d | 9710 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 9711 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9712 | wx_cv_prog_makeisgnu="yes" |
9713 | else | |
9714 | wx_cv_prog_makeisgnu="no" | |
9715 | fi | |
9716 | ||
9717 | fi | |
a0b9e27f MB |
9718 | |
9719 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
414eab6d VZ |
9720 | |
9721 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9722 | IF_GNU_MAKE="" | |
9723 | else | |
9724 | IF_GNU_MAKE="#" | |
9725 | fi | |
9726 | ||
8284b0c5 MB |
9727 | |
9728 | ||
414eab6d | 9729 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
a0b9e27f | 9730 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
521196a2 | 9731 | echo "configure:9732: checking if make supports VPATH" >&5 |
a0b9e27f MB |
9732 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9733 | echo $ac_n "(cached) $ac_c" 1>&6 | |
04e7a216 | 9734 | else |
a0b9e27f | 9735 | |
10f2d63a VZ |
9736 | cat - << EOF > confMake |
9737 | check : file | |
9738 | cp \$? \$@ | |
9739 | cp \$? final_file | |
9740 | EOF | |
9741 | ||
9742 | if test ! -d sub ; then | |
9743 | mkdir sub | |
9744 | fi | |
9745 | echo dummy > sub/file | |
f6bcfd97 | 9746 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9747 | RESULT=$? |
9748 | rm -f sub/file check final_file confMake | |
9749 | rmdir sub | |
9750 | if test "$RESULT" = 0; then | |
04e7a216 | 9751 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9752 | else |
04e7a216 VZ |
9753 | wx_cv_prog_makevpath="no" |
9754 | fi | |
9755 | ||
9756 | fi | |
a0b9e27f MB |
9757 | |
9758 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
04e7a216 VZ |
9759 | |
9760 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
a0b9e27f | 9761 | { echo "configure: error: |
5c6fa7d2 RR |
9762 | You need a make-utility that is able to use the variable |
9763 | VPATH correctly. | |
9764 | If your version of make does not support VPATH correctly, | |
9765 | please install GNU-make (possibly as gmake), and start | |
9766 | configure with the following command: | |
9767 | export MAKE=gmake; ./configure for sh-type shells | |
9768 | setenv MAKE gmake; ./configure for csh-type shells | |
9769 | Also please do remember to use gmake in this case every time | |
9770 | you are trying to compile. | |
a0b9e27f MB |
9771 | " 1>&2; exit 1; } |
9772 | fi fi | |
10f2d63a VZ |
9773 | for ac_prog in 'bison -y' byacc |
9774 | do | |
a0b9e27f | 9775 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9776 | set dummy $ac_prog; ac_word=$2 |
a0b9e27f | 9777 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
521196a2 | 9778 | echo "configure:9779: checking for $ac_word" >&5 |
a0b9e27f MB |
9779 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9780 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9781 | else |
9782 | if test -n "$YACC"; then | |
9783 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9784 | else | |
a0b9e27f MB |
9785 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9786 | ac_dummy="$PATH" | |
9787 | for ac_dir in $ac_dummy; do | |
9788 | test -z "$ac_dir" && ac_dir=. | |
9789 | if test -f $ac_dir/$ac_word; then | |
9790 | ac_cv_prog_YACC="$ac_prog" | |
9791 | break | |
9792 | fi | |
9793 | done | |
9794 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9795 | fi |
9796 | fi | |
a0b9e27f | 9797 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9798 | if test -n "$YACC"; then |
a0b9e27f | 9799 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9800 | else |
a0b9e27f | 9801 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9802 | fi |
9803 | ||
a0b9e27f | 9804 | test -n "$YACC" && break |
10f2d63a VZ |
9805 | done |
9806 | test -n "$YACC" || YACC="yacc" | |
9807 | ||
8284b0c5 | 9808 | |
a0b9e27f MB |
9809 | # Extract the first word of "flex", so it can be a program name with args. |
9810 | set dummy flex; ac_word=$2 | |
9811 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
521196a2 | 9812 | echo "configure:9813: checking for $ac_word" >&5 |
a0b9e27f MB |
9813 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9814 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9815 | else |
9816 | if test -n "$LEX"; then | |
9817 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9818 | else | |
a0b9e27f MB |
9819 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9820 | ac_dummy="$PATH" | |
9821 | for ac_dir in $ac_dummy; do | |
9822 | test -z "$ac_dir" && ac_dir=. | |
9823 | if test -f $ac_dir/$ac_word; then | |
9824 | ac_cv_prog_LEX="flex" | |
9825 | break | |
9826 | fi | |
9827 | done | |
9828 | IFS="$ac_save_ifs" | |
9829 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9830 | fi |
9831 | fi | |
a0b9e27f | 9832 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9833 | if test -n "$LEX"; then |
a0b9e27f | 9834 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9835 | else |
a0b9e27f | 9836 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9837 | fi |
9838 | ||
9839 | if test -z "$LEXLIB" | |
9840 | then | |
a0b9e27f MB |
9841 | case "$LEX" in |
9842 | flex*) ac_lib=fl ;; | |
9843 | *) ac_lib=l ;; | |
9844 | esac | |
9845 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
521196a2 | 9846 | echo "configure:9847: checking for yywrap in -l$ac_lib" >&5 |
a0b9e27f MB |
9847 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9848 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9849 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9850 | else | |
9851 | ac_save_LIBS="$LIBS" | |
9852 | LIBS="-l$ac_lib $LIBS" | |
9853 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 9854 | #line 9855 "configure" |
247f5006 | 9855 | #include "confdefs.h" |
247f5006 | 9856 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 9857 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
9858 | builtin and then its argument prototype would still apply. */ |
9859 | char yywrap(); | |
10f2d63a | 9860 | |
a0b9e27f MB |
9861 | int main() { |
9862 | yywrap() | |
9863 | ; return 0; } | |
9864 | EOF | |
521196a2 | 9865 | if { (eval echo configure:9866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9866 | rm -rf conftest* |
9867 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9868 | else | |
9869 | echo "configure: failed program was:" >&5 | |
9870 | cat conftest.$ac_ext >&5 | |
9871 | rm -rf conftest* | |
9872 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9873 | fi |
a0b9e27f MB |
9874 | rm -f conftest* |
9875 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 9876 | |
10f2d63a | 9877 | fi |
a0b9e27f MB |
9878 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9879 | echo "$ac_t""yes" 1>&6 | |
9880 | LEXLIB="-l$ac_lib" | |
8284b0c5 | 9881 | else |
a0b9e27f | 9882 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9883 | fi |
9884 | ||
a0b9e27f | 9885 | fi |
10f2d63a VZ |
9886 | |
9887 | ||
a0b9e27f | 9888 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
521196a2 | 9889 | echo "configure:9890: checking whether ln -s works" >&5 |
a0b9e27f MB |
9890 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9891 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9892 | else |
a0b9e27f MB |
9893 | rm -f conftestdata |
9894 | if ln -s X conftestdata 2>/dev/null | |
9895 | then | |
9896 | rm -f conftestdata | |
9897 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9898 | else |
a0b9e27f | 9899 | ac_cv_prog_LN_S=ln |
10f2d63a | 9900 | fi |
a0b9e27f MB |
9901 | fi |
9902 | LN_S="$ac_cv_prog_LN_S" | |
9903 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9904 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9905 | else |
a0b9e27f | 9906 | echo "$ac_t""no" 1>&6 |
5c6fa7d2 | 9907 | fi |
5c6fa7d2 | 9908 | |
247f5006 | 9909 | |
2b5f62a0 VZ |
9910 | case "${host}" in |
9911 | *-pc-os2_emx | *-pc-os2-emx ) | |
9912 | LIBS="$LIBS -lstdcpp" | |
9913 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
9914 | echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6 | |
521196a2 | 9915 | echo "configure:9916: checking for drand48 in -lcExt" >&5 |
2b5f62a0 VZ |
9916 | ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'` |
9917 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9918 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9919 | else | |
9920 | ac_save_LIBS="$LIBS" | |
9921 | LIBS="-lcExt $LIBS" | |
9922 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 9923 | #line 9924 "configure" |
2b5f62a0 VZ |
9924 | #include "confdefs.h" |
9925 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9926 | /* We use char because int might match the return type of a gcc2 | |
9927 | builtin and then its argument prototype would still apply. */ | |
9928 | char drand48(); | |
9929 | ||
9930 | int main() { | |
9931 | drand48() | |
9932 | ; return 0; } | |
9933 | EOF | |
521196a2 | 9934 | if { (eval echo configure:9935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
9935 | rm -rf conftest* |
9936 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9937 | else | |
9938 | echo "configure: failed program was:" >&5 | |
9939 | cat conftest.$ac_ext >&5 | |
9940 | rm -rf conftest* | |
9941 | eval "ac_cv_lib_$ac_lib_var=no" | |
9942 | fi | |
9943 | rm -f conftest* | |
9944 | LIBS="$ac_save_LIBS" | |
9945 | ||
9946 | fi | |
9947 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9948 | echo "$ac_t""yes" 1>&6 | |
9949 | LIBS="$LIBS -lcExt" | |
9950 | else | |
9951 | echo "$ac_t""no" 1>&6 | |
9952 | fi | |
9953 | ||
9954 | else | |
9955 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
9956 | fi | |
9957 | ;; | |
9958 | esac | |
9959 | ||
a0b9e27f MB |
9960 | |
9961 | if test "$wxUSE_MAC" != 1; then | |
9962 | for ac_hdr in strings.h | |
9963 | do | |
9964 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9965 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
521196a2 | 9966 | echo "configure:9967: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9967 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9968 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9969 | else | |
9970 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 9971 | #line 9972 "configure" |
a0b9e27f MB |
9972 | #include "confdefs.h" |
9973 | #include <$ac_hdr> | |
9974 | EOF | |
9975 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 9976 | { (eval echo configure:9977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9977 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9978 | if test -z "$ac_err"; then | |
9979 | rm -rf conftest* | |
9980 | eval "ac_cv_header_$ac_safe=yes" | |
9981 | else | |
9982 | echo "$ac_err" >&5 | |
9983 | echo "configure: failed program was:" >&5 | |
9984 | cat conftest.$ac_ext >&5 | |
9985 | rm -rf conftest* | |
9986 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 9987 | fi |
247f5006 | 9988 | rm -f conftest* |
19bc6aad | 9989 | fi |
a0b9e27f MB |
9990 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9991 | echo "$ac_t""yes" 1>&6 | |
9992 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9993 | cat >> confdefs.h <<EOF | |
9994 | #define $ac_tr_hdr 1 | |
9995 | EOF | |
9996 | ||
247f5006 | 9997 | else |
a0b9e27f | 9998 | echo "$ac_t""no" 1>&6 |
18dbb1f6 | 9999 | fi |
a0b9e27f | 10000 | done |
247f5006 | 10001 | |
90dd450c | 10002 | fi |
90dd450c | 10003 | |
a0b9e27f MB |
10004 | for ac_hdr in stdlib.h |
10005 | do | |
10006 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10007 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
521196a2 | 10008 | echo "configure:10009: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10009 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10010 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10011 | else | |
10012 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 10013 | #line 10014 "configure" |
90dd450c | 10014 | #include "confdefs.h" |
a0b9e27f MB |
10015 | #include <$ac_hdr> |
10016 | EOF | |
10017 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 10018 | { (eval echo configure:10019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10019 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10020 | if test -z "$ac_err"; then | |
10021 | rm -rf conftest* | |
10022 | eval "ac_cv_header_$ac_safe=yes" | |
10023 | else | |
10024 | echo "$ac_err" >&5 | |
10025 | echo "configure: failed program was:" >&5 | |
10026 | cat conftest.$ac_ext >&5 | |
10027 | rm -rf conftest* | |
10028 | eval "ac_cv_header_$ac_safe=no" | |
10029 | fi | |
10030 | rm -f conftest* | |
10031 | fi | |
10032 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10033 | echo "$ac_t""yes" 1>&6 | |
10034 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10035 | cat >> confdefs.h <<EOF | |
10036 | #define $ac_tr_hdr 1 | |
10037 | EOF | |
10038 | ||
8284b0c5 | 10039 | else |
a0b9e27f | 10040 | echo "$ac_t""no" 1>&6 |
21d1c967 | 10041 | fi |
a0b9e27f MB |
10042 | done |
10043 | ||
10044 | for ac_hdr in malloc.h | |
10045 | do | |
10046 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10047 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
521196a2 | 10048 | echo "configure:10049: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10049 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10050 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10051 | else | |
10052 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 10053 | #line 10054 "configure" |
a0b9e27f MB |
10054 | #include "confdefs.h" |
10055 | #include <$ac_hdr> | |
10056 | EOF | |
10057 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 10058 | { (eval echo configure:10059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10059 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10060 | if test -z "$ac_err"; then | |
10061 | rm -rf conftest* | |
10062 | eval "ac_cv_header_$ac_safe=yes" | |
10063 | else | |
10064 | echo "$ac_err" >&5 | |
10065 | echo "configure: failed program was:" >&5 | |
10066 | cat conftest.$ac_ext >&5 | |
10067 | rm -rf conftest* | |
10068 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10069 | fi |
a0b9e27f | 10070 | rm -f conftest* |
90dd450c | 10071 | fi |
a0b9e27f MB |
10072 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10073 | echo "$ac_t""yes" 1>&6 | |
10074 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10075 | cat >> confdefs.h <<EOF | |
10076 | #define $ac_tr_hdr 1 | |
10077 | EOF | |
10078 | ||
10079 | else | |
10080 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 10081 | fi |
a0b9e27f | 10082 | done |
247f5006 | 10083 | |
a0b9e27f MB |
10084 | for ac_hdr in unistd.h |
10085 | do | |
10086 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10087 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
521196a2 | 10088 | echo "configure:10089: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10089 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10090 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10091 | else | |
10092 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 10093 | #line 10094 "configure" |
a0b9e27f MB |
10094 | #include "confdefs.h" |
10095 | #include <$ac_hdr> | |
10096 | EOF | |
10097 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 10098 | { (eval echo configure:10099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10099 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10100 | if test -z "$ac_err"; then | |
10101 | rm -rf conftest* | |
10102 | eval "ac_cv_header_$ac_safe=yes" | |
10103 | else | |
10104 | echo "$ac_err" >&5 | |
10105 | echo "configure: failed program was:" >&5 | |
10106 | cat conftest.$ac_ext >&5 | |
10107 | rm -rf conftest* | |
10108 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 10109 | fi |
a0b9e27f MB |
10110 | rm -f conftest* |
10111 | fi | |
10112 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10113 | echo "$ac_t""yes" 1>&6 | |
10114 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10115 | cat >> confdefs.h <<EOF | |
10116 | #define $ac_tr_hdr 1 | |
10117 | EOF | |
10118 | ||
10119 | else | |
10120 | echo "$ac_t""no" 1>&6 | |
10121 | fi | |
10122 | done | |
90dd450c | 10123 | |
a0b9e27f | 10124 | for ac_hdr in wchar.h |
21d1c967 | 10125 | do |
a0b9e27f MB |
10126 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10127 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
521196a2 | 10128 | echo "configure:10129: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10129 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10130 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10131 | else | |
10132 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 10133 | #line 10134 "configure" |
4f14bcd8 | 10134 | #include "confdefs.h" |
a0b9e27f MB |
10135 | #include <$ac_hdr> |
10136 | EOF | |
10137 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 10138 | { (eval echo configure:10139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10139 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10140 | if test -z "$ac_err"; then | |
10141 | rm -rf conftest* | |
10142 | eval "ac_cv_header_$ac_safe=yes" | |
10143 | else | |
10144 | echo "$ac_err" >&5 | |
10145 | echo "configure: failed program was:" >&5 | |
10146 | cat conftest.$ac_ext >&5 | |
10147 | rm -rf conftest* | |
10148 | eval "ac_cv_header_$ac_safe=no" | |
10149 | fi | |
10150 | rm -f conftest* | |
10151 | fi | |
10152 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10153 | echo "$ac_t""yes" 1>&6 | |
10154 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10155 | cat >> confdefs.h <<EOF | |
10156 | #define $ac_tr_hdr 1 | |
10157 | EOF | |
10158 | ||
10159 | else | |
10160 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10161 | fi |
10162 | done | |
4f14bcd8 | 10163 | |
5c6fa7d2 | 10164 | |
a0b9e27f MB |
10165 | if test "$ac_cv_header_wchar_h" != "yes"; then |
10166 | for ac_hdr in wcstr.h | |
21d1c967 | 10167 | do |
a0b9e27f MB |
10168 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10169 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
521196a2 | 10170 | echo "configure:10171: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10171 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10172 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10173 | else | |
10174 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 10175 | #line 10176 "configure" |
d4158b5d | 10176 | #include "confdefs.h" |
a0b9e27f MB |
10177 | #include <$ac_hdr> |
10178 | EOF | |
10179 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 10180 | { (eval echo configure:10181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10181 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10182 | if test -z "$ac_err"; then | |
10183 | rm -rf conftest* | |
10184 | eval "ac_cv_header_$ac_safe=yes" | |
10185 | else | |
10186 | echo "$ac_err" >&5 | |
10187 | echo "configure: failed program was:" >&5 | |
d4158b5d | 10188 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10189 | rm -rf conftest* |
10190 | eval "ac_cv_header_$ac_safe=no" | |
d4158b5d | 10191 | fi |
a0b9e27f | 10192 | rm -f conftest* |
21d1c967 | 10193 | fi |
a0b9e27f MB |
10194 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10195 | echo "$ac_t""yes" 1>&6 | |
10196 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10197 | cat >> confdefs.h <<EOF | |
10198 | #define $ac_tr_hdr 1 | |
10199 | EOF | |
10200 | ||
10201 | else | |
10202 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 10203 | fi |
21d1c967 | 10204 | done |
f6bcfd97 | 10205 | |
90dd450c | 10206 | fi |
90dd450c | 10207 | |
a0b9e27f | 10208 | for ac_hdr in fnmatch.h |
21d1c967 | 10209 | do |
a0b9e27f MB |
10210 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10211 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
521196a2 | 10212 | echo "configure:10213: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10213 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10214 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10215 | else | |
10216 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 10217 | #line 10218 "configure" |
90dd450c | 10218 | #include "confdefs.h" |
a0b9e27f MB |
10219 | #include <$ac_hdr> |
10220 | EOF | |
10221 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 10222 | { (eval echo configure:10223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10223 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10224 | if test -z "$ac_err"; then | |
10225 | rm -rf conftest* | |
10226 | eval "ac_cv_header_$ac_safe=yes" | |
10227 | else | |
10228 | echo "$ac_err" >&5 | |
10229 | echo "configure: failed program was:" >&5 | |
3a922bb4 | 10230 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10231 | rm -rf conftest* |
10232 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10233 | fi |
a0b9e27f | 10234 | rm -f conftest* |
4f14bcd8 | 10235 | fi |
a0b9e27f MB |
10236 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10237 | echo "$ac_t""yes" 1>&6 | |
10238 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10239 | cat >> confdefs.h <<EOF | |
10240 | #define $ac_tr_hdr 1 | |
10241 | EOF | |
10242 | ||
10243 | else | |
10244 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10245 | fi |
10246 | done | |
90dd450c | 10247 | |
5c6fa7d2 | 10248 | |
a0b9e27f MB |
10249 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
10250 | for ac_func in fnmatch | |
21d1c967 | 10251 | do |
a0b9e27f | 10252 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 10253 | echo "configure:10254: checking for $ac_func" >&5 |
a0b9e27f MB |
10254 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10255 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10256 | else |
a0b9e27f | 10257 | cat > conftest.$ac_ext <<EOF |
521196a2 | 10258 | #line 10259 "configure" |
a0b9e27f MB |
10259 | #include "confdefs.h" |
10260 | /* System header to define __stub macros and hopefully few prototypes, | |
10261 | which can conflict with char $ac_func(); below. */ | |
10262 | #include <assert.h> | |
10263 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10264 | /* We use char because int might match the return type of a gcc2 | |
10265 | builtin and then its argument prototype would still apply. */ | |
10266 | char $ac_func(); | |
10267 | ||
10268 | int main() { | |
10269 | ||
10270 | /* The GNU C library defines this for functions which it implements | |
10271 | to always fail with ENOSYS. Some functions are actually named | |
10272 | something starting with __ and the normal name is an alias. */ | |
10273 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10274 | choke me | |
10275 | #else | |
10276 | $ac_func(); | |
10277 | #endif | |
10278 | ||
10279 | ; return 0; } | |
10280 | EOF | |
521196a2 | 10281 | if { (eval echo configure:10282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
10282 | rm -rf conftest* |
10283 | eval "ac_cv_func_$ac_func=yes" | |
8284b0c5 | 10284 | else |
a0b9e27f | 10285 | echo "configure: failed program was:" >&5 |
8284b0c5 | 10286 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10287 | rm -rf conftest* |
10288 | eval "ac_cv_func_$ac_func=no" | |
8284b0c5 | 10289 | fi |
a0b9e27f | 10290 | rm -f conftest* |
8284b0c5 | 10291 | fi |
32832908 | 10292 | |
a0b9e27f MB |
10293 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10294 | echo "$ac_t""yes" 1>&6 | |
10295 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10296 | cat >> confdefs.h <<EOF | |
10297 | #define $ac_tr_func 1 | |
10298 | EOF | |
10299 | ||
10300 | else | |
10301 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10302 | fi |
10303 | done | |
90dd450c | 10304 | |
a0b9e27f | 10305 | fi |
90dd450c | 10306 | |
a0b9e27f | 10307 | for ac_hdr in langinfo.h |
21d1c967 | 10308 | do |
a0b9e27f MB |
10309 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10310 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
521196a2 | 10311 | echo "configure:10312: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10312 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10313 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10314 | else | |
10315 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 10316 | #line 10317 "configure" |
247f5006 | 10317 | #include "confdefs.h" |
a0b9e27f MB |
10318 | #include <$ac_hdr> |
10319 | EOF | |
10320 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 10321 | { (eval echo configure:10322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10322 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10323 | if test -z "$ac_err"; then | |
10324 | rm -rf conftest* | |
10325 | eval "ac_cv_header_$ac_safe=yes" | |
10326 | else | |
10327 | echo "$ac_err" >&5 | |
10328 | echo "configure: failed program was:" >&5 | |
90dd450c | 10329 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10330 | rm -rf conftest* |
10331 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 10332 | fi |
a0b9e27f | 10333 | rm -f conftest* |
4f14bcd8 | 10334 | fi |
a0b9e27f MB |
10335 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10336 | echo "$ac_t""yes" 1>&6 | |
10337 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10338 | cat >> confdefs.h <<EOF | |
10339 | #define $ac_tr_hdr 1 | |
10340 | EOF | |
10341 | ||
10342 | else | |
10343 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10344 | fi |
10345 | done | |
3a922bb4 | 10346 | |
8284b0c5 | 10347 | |
4f5a7f74 VZ |
10348 | case "${host}" in |
10349 | *-pc-os2_emx | *-pc-os2-emx ) | |
10350 | if test $ac_cv_header_langinfo_h = "yes"; then | |
10351 | LIBS="$LIBS -lintl" | |
10352 | fi | |
10353 | ;; | |
10354 | esac | |
10355 | ||
a0b9e27f MB |
10356 | if test "$wxUSE_GUI" = "yes"; then |
10357 | if test "$wxUSE_UNIX" = "yes"; then | |
10358 | for ac_hdr in X11/XKBlib.h | |
21d1c967 | 10359 | do |
a0b9e27f MB |
10360 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10361 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
521196a2 | 10362 | echo "configure:10363: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10363 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10364 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10365 | else | |
10366 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 10367 | #line 10368 "configure" |
90dd450c | 10368 | #include "confdefs.h" |
a0b9e27f MB |
10369 | #include <$ac_hdr> |
10370 | EOF | |
10371 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 10372 | { (eval echo configure:10373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10373 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10374 | if test -z "$ac_err"; then | |
10375 | rm -rf conftest* | |
10376 | eval "ac_cv_header_$ac_safe=yes" | |
10377 | else | |
10378 | echo "$ac_err" >&5 | |
10379 | echo "configure: failed program was:" >&5 | |
90dd450c | 10380 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10381 | rm -rf conftest* |
10382 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10383 | fi |
a0b9e27f | 10384 | rm -f conftest* |
90dd450c | 10385 | fi |
a0b9e27f MB |
10386 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10387 | echo "$ac_t""yes" 1>&6 | |
10388 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10389 | cat >> confdefs.h <<EOF | |
10390 | #define $ac_tr_hdr 1 | |
10391 | EOF | |
10392 | ||
10393 | else | |
10394 | echo "$ac_t""no" 1>&6 | |
247f5006 | 10395 | fi |
247f5006 VZ |
10396 | done |
10397 | ||
a0b9e27f MB |
10398 | fi |
10399 | fi | |
247f5006 | 10400 | |
247f5006 | 10401 | |
a0b9e27f | 10402 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
521196a2 | 10403 | echo "configure:10404: checking for working const" >&5 |
a0b9e27f MB |
10404 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
10405 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10406 | else |
a0b9e27f | 10407 | cat > conftest.$ac_ext <<EOF |
521196a2 | 10408 | #line 10409 "configure" |
a0b9e27f MB |
10409 | #include "confdefs.h" |
10410 | ||
10411 | int main() { | |
10412 | ||
10413 | /* Ultrix mips cc rejects this. */ | |
10414 | typedef int charset[2]; const charset x; | |
10415 | /* SunOS 4.1.1 cc rejects this. */ | |
10416 | char const *const *ccp; | |
10417 | char **p; | |
10418 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
10419 | struct point {int x, y;}; | |
10420 | static struct point const zero = {0,0}; | |
10421 | /* AIX XL C 1.02.0.0 rejects this. | |
10422 | It does not let you subtract one const X* pointer from another in an arm | |
10423 | of an if-expression whose if-part is not a constant expression */ | |
10424 | const char *g = "string"; | |
10425 | ccp = &g + (g ? g-g : 0); | |
10426 | /* HPUX 7.0 cc rejects these. */ | |
10427 | ++ccp; | |
10428 | p = (char**) ccp; | |
10429 | ccp = (char const *const *) p; | |
10430 | { /* SCO 3.2v4 cc rejects this. */ | |
10431 | char *t; | |
10432 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
10433 | ||
10434 | *t++ = 0; | |
10435 | } | |
10436 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
10437 | int x[] = {25, 17}; | |
10438 | const int *foo = &x[0]; | |
10439 | ++foo; | |
10440 | } | |
10441 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
10442 | typedef const int *iptr; | |
10443 | iptr p = 0; | |
10444 | ++p; | |
10445 | } | |
10446 | { /* AIX XL C 1.02.0.0 rejects this saying | |
10447 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
10448 | struct s { int j; const int *ap[3]; }; | |
10449 | struct s *b; b->j = 5; | |
10450 | } | |
10451 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
10452 | const int foo = 10; | |
10453 | } | |
10454 | ||
10455 | ; return 0; } | |
10456 | EOF | |
521196a2 | 10457 | if { (eval echo configure:10458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10458 | rm -rf conftest* |
10459 | ac_cv_c_const=yes | |
247f5006 | 10460 | else |
a0b9e27f | 10461 | echo "configure: failed program was:" >&5 |
247f5006 | 10462 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10463 | rm -rf conftest* |
10464 | ac_cv_c_const=no | |
247f5006 | 10465 | fi |
a0b9e27f | 10466 | rm -f conftest* |
21d1c967 | 10467 | fi |
247f5006 | 10468 | |
a0b9e27f MB |
10469 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
10470 | if test $ac_cv_c_const = no; then | |
10471 | cat >> confdefs.h <<\EOF | |
10472 | #define const | |
10473 | EOF | |
10f2d63a | 10474 | |
90dd450c | 10475 | fi |
81809c07 | 10476 | |
a0b9e27f | 10477 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
521196a2 | 10478 | echo "configure:10479: checking for inline" >&5 |
a0b9e27f MB |
10479 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
10480 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8168de4c | 10481 | else |
a0b9e27f MB |
10482 | ac_cv_c_inline=no |
10483 | for ac_kw in inline __inline__ __inline; do | |
10484 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 10485 | #line 10486 "configure" |
a0b9e27f MB |
10486 | #include "confdefs.h" |
10487 | ||
10488 | int main() { | |
10489 | } $ac_kw foo() { | |
10490 | ; return 0; } | |
10491 | EOF | |
521196a2 | 10492 | if { (eval echo configure:10493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10493 | rm -rf conftest* |
10494 | ac_cv_c_inline=$ac_kw; break | |
247f5006 | 10495 | else |
a0b9e27f | 10496 | echo "configure: failed program was:" >&5 |
247f5006 | 10497 | cat conftest.$ac_ext >&5 |
247f5006 | 10498 | fi |
a0b9e27f MB |
10499 | rm -f conftest* |
10500 | done | |
247f5006 VZ |
10501 | |
10502 | fi | |
10503 | ||
a0b9e27f MB |
10504 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
10505 | case "$ac_cv_c_inline" in | |
10506 | inline | yes) ;; | |
10507 | no) cat >> confdefs.h <<\EOF | |
10508 | #define inline | |
10509 | EOF | |
10510 | ;; | |
10511 | *) cat >> confdefs.h <<EOF | |
10512 | #define inline $ac_cv_c_inline | |
10513 | EOF | |
10514 | ;; | |
10515 | esac | |
247f5006 | 10516 | |
247f5006 | 10517 | |
a0b9e27f | 10518 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
521196a2 | 10519 | echo "configure:10520: checking size of char" >&5 |
a0b9e27f MB |
10520 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
10521 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10522 | else | |
10523 | if test "$cross_compiling" = yes; then | |
10524 | ac_cv_sizeof_char=1 | |
10525 | else | |
10526 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 10527 | #line 10528 "configure" |
4f14bcd8 | 10528 | #include "confdefs.h" |
a0b9e27f | 10529 | #include <stdio.h> |
93fac604 | 10530 | #include <sys/types.h> |
a0b9e27f | 10531 | main() |
247f5006 | 10532 | { |
a0b9e27f MB |
10533 | FILE *f=fopen("conftestval", "w"); |
10534 | if (!f) exit(1); | |
10535 | fprintf(f, "%d\n", sizeof(char)); | |
10536 | exit(0); | |
52127426 | 10537 | } |
a0b9e27f | 10538 | EOF |
521196a2 | 10539 | if { (eval echo configure:10540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10540 | then |
10541 | ac_cv_sizeof_char=`cat conftestval` | |
247f5006 | 10542 | else |
a0b9e27f | 10543 | echo "configure: failed program was:" >&5 |
247f5006 | 10544 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10545 | rm -fr conftest* |
10546 | ac_cv_sizeof_char=0 | |
247f5006 | 10547 | fi |
a0b9e27f | 10548 | rm -fr conftest* |
247f5006 | 10549 | fi |
247f5006 VZ |
10550 | |
10551 | fi | |
a0b9e27f MB |
10552 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10553 | cat >> confdefs.h <<EOF | |
10554 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10555 | EOF | |
247f5006 | 10556 | |
247f5006 | 10557 | |
a0b9e27f | 10558 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
521196a2 | 10559 | echo "configure:10560: checking size of short" >&5 |
a0b9e27f MB |
10560 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10561 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10562 | else |
a0b9e27f MB |
10563 | if test "$cross_compiling" = yes; then |
10564 | ac_cv_sizeof_short=2 | |
247f5006 | 10565 | else |
a0b9e27f | 10566 | cat > conftest.$ac_ext <<EOF |
521196a2 | 10567 | #line 10568 "configure" |
a0b9e27f MB |
10568 | #include "confdefs.h" |
10569 | #include <stdio.h> | |
93fac604 | 10570 | #include <sys/types.h> |
a0b9e27f MB |
10571 | main() |
10572 | { | |
10573 | FILE *f=fopen("conftestval", "w"); | |
10574 | if (!f) exit(1); | |
10575 | fprintf(f, "%d\n", sizeof(short)); | |
10576 | exit(0); | |
10577 | } | |
10578 | EOF | |
521196a2 | 10579 | if { (eval echo configure:10580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10580 | then |
10581 | ac_cv_sizeof_short=`cat conftestval` | |
247f5006 | 10582 | else |
a0b9e27f MB |
10583 | echo "configure: failed program was:" >&5 |
10584 | cat conftest.$ac_ext >&5 | |
10585 | rm -fr conftest* | |
10586 | ac_cv_sizeof_short=0 | |
247f5006 | 10587 | fi |
a0b9e27f | 10588 | rm -fr conftest* |
247f5006 VZ |
10589 | fi |
10590 | ||
247f5006 | 10591 | fi |
a0b9e27f MB |
10592 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10593 | cat >> confdefs.h <<EOF | |
10594 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10595 | EOF | |
247f5006 VZ |
10596 | |
10597 | ||
a0b9e27f | 10598 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
521196a2 | 10599 | echo "configure:10600: checking size of void *" >&5 |
a0b9e27f MB |
10600 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
10601 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10602 | else | |
10603 | if test "$cross_compiling" = yes; then | |
10604 | ac_cv_sizeof_void_p=4 | |
247f5006 | 10605 | else |
a0b9e27f | 10606 | cat > conftest.$ac_ext <<EOF |
521196a2 | 10607 | #line 10608 "configure" |
247f5006 | 10608 | #include "confdefs.h" |
247f5006 | 10609 | #include <stdio.h> |
93fac604 | 10610 | #include <sys/types.h> |
a0b9e27f | 10611 | main() |
247f5006 | 10612 | { |
a0b9e27f MB |
10613 | FILE *f=fopen("conftestval", "w"); |
10614 | if (!f) exit(1); | |
10615 | fprintf(f, "%d\n", sizeof(void *)); | |
10616 | exit(0); | |
5c6fa7d2 | 10617 | } |
a0b9e27f | 10618 | EOF |
521196a2 | 10619 | if { (eval echo configure:10620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10620 | then |
10621 | ac_cv_sizeof_void_p=`cat conftestval` | |
10622 | else | |
10623 | echo "configure: failed program was:" >&5 | |
10624 | cat conftest.$ac_ext >&5 | |
10625 | rm -fr conftest* | |
10626 | ac_cv_sizeof_void_p=0 | |
10627 | fi | |
10628 | rm -fr conftest* | |
10629 | fi | |
8284b0c5 | 10630 | |
247f5006 | 10631 | fi |
a0b9e27f MB |
10632 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
10633 | cat >> confdefs.h <<EOF | |
10634 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
10635 | EOF | |
247f5006 | 10636 | |
247f5006 | 10637 | |
a0b9e27f | 10638 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
521196a2 | 10639 | echo "configure:10640: checking size of int" >&5 |
a0b9e27f MB |
10640 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
10641 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10642 | else |
a0b9e27f MB |
10643 | if test "$cross_compiling" = yes; then |
10644 | ac_cv_sizeof_int=4 | |
10645 | else | |
10646 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 10647 | #line 10648 "configure" |
247f5006 | 10648 | #include "confdefs.h" |
a0b9e27f | 10649 | #include <stdio.h> |
93fac604 | 10650 | #include <sys/types.h> |
a0b9e27f | 10651 | main() |
247f5006 | 10652 | { |
a0b9e27f MB |
10653 | FILE *f=fopen("conftestval", "w"); |
10654 | if (!f) exit(1); | |
10655 | fprintf(f, "%d\n", sizeof(int)); | |
10656 | exit(0); | |
247f5006 | 10657 | } |
a0b9e27f | 10658 | EOF |
521196a2 | 10659 | if { (eval echo configure:10660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10660 | then |
10661 | ac_cv_sizeof_int=`cat conftestval` | |
6f72b082 | 10662 | else |
a0b9e27f MB |
10663 | echo "configure: failed program was:" >&5 |
10664 | cat conftest.$ac_ext >&5 | |
10665 | rm -fr conftest* | |
10666 | ac_cv_sizeof_int=0 | |
21d1c967 | 10667 | fi |
a0b9e27f | 10668 | rm -fr conftest* |
698dcdb6 | 10669 | fi |
4f14bcd8 | 10670 | |
21d1c967 | 10671 | fi |
a0b9e27f MB |
10672 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
10673 | cat >> confdefs.h <<EOF | |
10674 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10675 | EOF | |
4f14bcd8 | 10676 | |
5c6fa7d2 | 10677 | |
a0b9e27f | 10678 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
521196a2 | 10679 | echo "configure:10680: checking size of long" >&5 |
a0b9e27f MB |
10680 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
10681 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10682 | else |
247f5006 | 10683 | if test "$cross_compiling" = yes; then |
a0b9e27f | 10684 | ac_cv_sizeof_long=4 |
247f5006 | 10685 | else |
a0b9e27f | 10686 | cat > conftest.$ac_ext <<EOF |
521196a2 | 10687 | #line 10688 "configure" |
247f5006 | 10688 | #include "confdefs.h" |
a0b9e27f | 10689 | #include <stdio.h> |
93fac604 | 10690 | #include <sys/types.h> |
a0b9e27f | 10691 | main() |
247f5006 | 10692 | { |
a0b9e27f MB |
10693 | FILE *f=fopen("conftestval", "w"); |
10694 | if (!f) exit(1); | |
10695 | fprintf(f, "%d\n", sizeof(long)); | |
10696 | exit(0); | |
247f5006 | 10697 | } |
a0b9e27f | 10698 | EOF |
521196a2 | 10699 | if { (eval echo configure:10700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10700 | then |
10701 | ac_cv_sizeof_long=`cat conftestval` | |
247f5006 | 10702 | else |
a0b9e27f MB |
10703 | echo "configure: failed program was:" >&5 |
10704 | cat conftest.$ac_ext >&5 | |
10705 | rm -fr conftest* | |
10706 | ac_cv_sizeof_long=0 | |
247f5006 | 10707 | fi |
a0b9e27f | 10708 | rm -fr conftest* |
247f5006 | 10709 | fi |
247f5006 | 10710 | |
5c6fa7d2 | 10711 | fi |
a0b9e27f MB |
10712 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
10713 | cat >> confdefs.h <<EOF | |
10714 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10715 | EOF | |
247f5006 | 10716 | |
a0b9e27f MB |
10717 | |
10718 | ||
10719 | case "${host}" in | |
10720 | arm-*-linux* ) | |
10721 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
521196a2 | 10722 | echo "configure:10723: checking size of long long" >&5 |
a0b9e27f MB |
10723 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10724 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10725 | else | |
10726 | if test "$cross_compiling" = yes; then | |
10727 | ac_cv_sizeof_long_long=8 | |
10728 | else | |
10729 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 10730 | #line 10731 "configure" |
247f5006 | 10731 | #include "confdefs.h" |
a0b9e27f | 10732 | #include <stdio.h> |
93fac604 | 10733 | #include <sys/types.h> |
a0b9e27f | 10734 | main() |
247f5006 | 10735 | { |
a0b9e27f MB |
10736 | FILE *f=fopen("conftestval", "w"); |
10737 | if (!f) exit(1); | |
10738 | fprintf(f, "%d\n", sizeof(long long)); | |
10739 | exit(0); | |
247f5006 | 10740 | } |
a0b9e27f | 10741 | EOF |
521196a2 | 10742 | if { (eval echo configure:10743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10743 | then |
10744 | ac_cv_sizeof_long_long=`cat conftestval` | |
7b4a847f | 10745 | else |
a0b9e27f MB |
10746 | echo "configure: failed program was:" >&5 |
10747 | cat conftest.$ac_ext >&5 | |
10748 | rm -fr conftest* | |
10749 | ac_cv_sizeof_long_long=0 | |
5c6fa7d2 | 10750 | fi |
a0b9e27f | 10751 | rm -fr conftest* |
5c6fa7d2 | 10752 | fi |
8284b0c5 | 10753 | |
a0b9e27f MB |
10754 | fi |
10755 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10756 | cat >> confdefs.h <<EOF | |
10757 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10758 | EOF | |
10759 | ||
10760 | ||
10761 | ;; | |
4f57cf11 | 10762 | *-hp-hpux* ) |
a0b9e27f | 10763 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
521196a2 | 10764 | echo "configure:10765: checking size of long long" >&5 |
a0b9e27f MB |
10765 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10766 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 MB |
10767 | else |
10768 | if test "$cross_compiling" = yes; then | |
a0b9e27f | 10769 | ac_cv_sizeof_long_long=0 |
8284b0c5 | 10770 | else |
a0b9e27f | 10771 | cat > conftest.$ac_ext <<EOF |
521196a2 | 10772 | #line 10773 "configure" |
8284b0c5 MB |
10773 | #include "confdefs.h" |
10774 | #include <stdio.h> | |
93fac604 | 10775 | #include <sys/types.h> |
a0b9e27f | 10776 | main() |
8284b0c5 | 10777 | { |
a0b9e27f MB |
10778 | FILE *f=fopen("conftestval", "w"); |
10779 | if (!f) exit(1); | |
10780 | fprintf(f, "%d\n", sizeof(long long)); | |
10781 | exit(0); | |
8284b0c5 | 10782 | } |
a0b9e27f | 10783 | EOF |
521196a2 | 10784 | if { (eval echo configure:10785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10785 | then |
10786 | ac_cv_sizeof_long_long=`cat conftestval` | |
5c6fa7d2 | 10787 | else |
a0b9e27f MB |
10788 | echo "configure: failed program was:" >&5 |
10789 | cat conftest.$ac_ext >&5 | |
10790 | rm -fr conftest* | |
5c6fa7d2 | 10791 | ac_cv_sizeof_long_long=0 |
52127426 | 10792 | fi |
a0b9e27f MB |
10793 | rm -fr conftest* |
10794 | fi | |
10795 | ||
4f57cf11 GD |
10796 | fi |
10797 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10798 | cat >> confdefs.h <<EOF | |
10799 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10800 | EOF | |
10801 | ||
10802 | ||
10803 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
10804 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
10805 | fi | |
10806 | ;; | |
10807 | * ) | |
10808 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
521196a2 | 10809 | echo "configure:10810: checking size of long long" >&5 |
4f57cf11 GD |
10810 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10811 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10812 | else | |
10813 | if test "$cross_compiling" = yes; then | |
10814 | ac_cv_sizeof_long_long=0 | |
10815 | else | |
10816 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 10817 | #line 10818 "configure" |
4f57cf11 GD |
10818 | #include "confdefs.h" |
10819 | #include <stdio.h> | |
93fac604 | 10820 | #include <sys/types.h> |
4f57cf11 GD |
10821 | main() |
10822 | { | |
10823 | FILE *f=fopen("conftestval", "w"); | |
10824 | if (!f) exit(1); | |
10825 | fprintf(f, "%d\n", sizeof(long long)); | |
10826 | exit(0); | |
10827 | } | |
10828 | EOF | |
521196a2 | 10829 | if { (eval echo configure:10830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f57cf11 GD |
10830 | then |
10831 | ac_cv_sizeof_long_long=`cat conftestval` | |
10832 | else | |
10833 | echo "configure: failed program was:" >&5 | |
10834 | cat conftest.$ac_ext >&5 | |
10835 | rm -fr conftest* | |
10836 | ac_cv_sizeof_long_long=0 | |
10837 | fi | |
10838 | rm -fr conftest* | |
10839 | fi | |
10840 | ||
7b4a847f | 10841 | fi |
a0b9e27f MB |
10842 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10843 | cat >> confdefs.h <<EOF | |
21d1c967 | 10844 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
a0b9e27f | 10845 | EOF |
9e691f46 | 10846 | |
8284b0c5 | 10847 | |
21d1c967 GD |
10848 | esac |
10849 | ||
a0b9e27f | 10850 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
521196a2 | 10851 | echo "configure:10852: checking size of wchar_t" >&5 |
a0b9e27f MB |
10852 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
10853 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 10854 | else |
a0b9e27f | 10855 | |
21d1c967 | 10856 | if test "$cross_compiling" = yes; then |
2b5f62a0 VZ |
10857 | |
10858 | case "${host}" in | |
10859 | *-pc-msdosdjgpp ) | |
10860 | wx_cv_sizeof_wchar_t=0 | |
10861 | ;; | |
10862 | * ) | |
10863 | wx_cv_sizeof_wchar_t=4 | |
10864 | ;; | |
10865 | esac | |
10866 | ||
a0b9e27f | 10867 | |
6f72b082 | 10868 | else |
a0b9e27f | 10869 | cat > conftest.$ac_ext <<EOF |
521196a2 | 10870 | #line 10871 "configure" |
6f72b082 | 10871 | #include "confdefs.h" |
21d1c967 | 10872 | |
2b5f62a0 VZ |
10873 | /* DJGPP only has fake wchar_t: */ |
10874 | #ifdef __DJGPP__ | |
10875 | # error "fake wchar_t" | |
10876 | #endif | |
21d1c967 GD |
10877 | #ifdef HAVE_WCHAR_H |
10878 | # ifdef __CYGWIN__ | |
10879 | # include <stddef.h> | |
10880 | # endif | |
10881 | # include <wchar.h> | |
10882 | #endif | |
10883 | #ifdef HAVE_STDLIB_H | |
10884 | # include <stdlib.h> | |
10885 | #endif | |
10886 | #include <stdio.h> | |
10887 | int main() | |
10888 | { | |
10889 | FILE *f=fopen("conftestval", "w"); | |
10890 | if (!f) exit(1); | |
10891 | fprintf(f, "%i", sizeof(wchar_t)); | |
10892 | exit(0); | |
10893 | } | |
a0b9e27f MB |
10894 | |
10895 | EOF | |
521196a2 | 10896 | if { (eval echo configure:10897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10897 | then |
21d1c967 | 10898 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 10899 | else |
a0b9e27f MB |
10900 | echo "configure: failed program was:" >&5 |
10901 | cat conftest.$ac_ext >&5 | |
10902 | rm -fr conftest* | |
10903 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 10904 | fi |
a0b9e27f | 10905 | rm -fr conftest* |
6f72b082 | 10906 | fi |
6f72b082 | 10907 | |
a0b9e27f | 10908 | |
3f345b47 VZ |
10909 | fi |
10910 | ||
a0b9e27f MB |
10911 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
10912 | ||
10913 | cat >> confdefs.h <<EOF | |
21d1c967 | 10914 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
a0b9e27f | 10915 | EOF |
90dd450c | 10916 | |
8284b0c5 | 10917 | |
21d1c967 GD |
10918 | # Check whether --enable-largefile or --disable-largefile was given. |
10919 | if test "${enable_largefile+set}" = set; then | |
10920 | enableval="$enable_largefile" | |
a0b9e27f MB |
10921 | : |
10922 | fi | |
3f345b47 | 10923 | |
21d1c967 GD |
10924 | if test "$enable_largefile" != no; then |
10925 | wx_largefile=no | |
a0b9e27f MB |
10926 | |
10927 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
521196a2 | 10928 | echo "configure:10929: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
a0b9e27f MB |
10929 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
10930 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10931 | else | |
10932 | ||
10933 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 10934 | #line 10935 "configure" |
90dd450c | 10935 | #include "confdefs.h" |
21d1c967 GD |
10936 | #define _FILE_OFFSET_BITS 64 |
10937 | #include <sys/types.h> | |
a0b9e27f | 10938 | int main() { |
21d1c967 GD |
10939 | typedef struct { |
10940 | unsigned int field: sizeof(off_t) == 8; | |
10941 | } wxlf; | |
10942 | ||
a0b9e27f MB |
10943 | ; return 0; } |
10944 | EOF | |
521196a2 | 10945 | if { (eval echo configure:10946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10946 | rm -rf conftest* |
21d1c967 | 10947 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 10948 | else |
a0b9e27f MB |
10949 | echo "configure: failed program was:" >&5 |
10950 | cat conftest.$ac_ext >&5 | |
10951 | rm -rf conftest* | |
10952 | ac_cv_sys_file_offset_bits=no | |
5c6fa7d2 | 10953 | fi |
a0b9e27f MB |
10954 | rm -f conftest* |
10955 | ||
10956 | ||
247f5006 | 10957 | fi |
a0b9e27f MB |
10958 | |
10959 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
21d1c967 GD |
10960 | |
10961 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
10962 | wx_largefile=yes | |
a0b9e27f | 10963 | cat >> confdefs.h <<EOF |
21d1c967 | 10964 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
a0b9e27f | 10965 | EOF |
21d1c967 GD |
10966 | |
10967 | fi | |
10968 | ||
10969 | if test "x$wx_largefile" != "xyes"; then | |
a0b9e27f MB |
10970 | |
10971 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
521196a2 | 10972 | echo "configure:10973: checking for _LARGE_FILES value needed for large files" >&5 |
a0b9e27f MB |
10973 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
10974 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10975 | else | |
10976 | ||
10977 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 10978 | #line 10979 "configure" |
f6bcfd97 | 10979 | #include "confdefs.h" |
21d1c967 GD |
10980 | #define _LARGE_FILES 1 |
10981 | #include <sys/types.h> | |
a0b9e27f | 10982 | int main() { |
21d1c967 GD |
10983 | typedef struct { |
10984 | unsigned int field: sizeof(off_t) == 8; | |
10985 | } wxlf; | |
10986 | ||
a0b9e27f MB |
10987 | ; return 0; } |
10988 | EOF | |
521196a2 | 10989 | if { (eval echo configure:10990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10990 | rm -rf conftest* |
21d1c967 | 10991 | ac_cv_sys_large_files=1 |
f6bcfd97 | 10992 | else |
a0b9e27f MB |
10993 | echo "configure: failed program was:" >&5 |
10994 | cat conftest.$ac_ext >&5 | |
10995 | rm -rf conftest* | |
10996 | ac_cv_sys_large_files=no | |
5c6fa7d2 | 10997 | fi |
a0b9e27f MB |
10998 | rm -f conftest* |
10999 | ||
11000 | ||
247f5006 | 11001 | fi |
a0b9e27f MB |
11002 | |
11003 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
3f345b47 | 11004 | |
21d1c967 GD |
11005 | if test "$ac_cv_sys_large_files" != no; then |
11006 | wx_largefile=yes | |
a0b9e27f | 11007 | cat >> confdefs.h <<EOF |
21d1c967 | 11008 | #define _LARGE_FILES $ac_cv_sys_large_files |
a0b9e27f | 11009 | EOF |
90dd450c | 11010 | |
90dd450c VZ |
11011 | fi |
11012 | ||
90dd450c | 11013 | fi |
90dd450c | 11014 | |
a0b9e27f | 11015 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
521196a2 | 11016 | echo "configure:11017: checking if large file support is available" >&5 |
21d1c967 | 11017 | if test "x$wx_largefile" = "xyes"; then |
a0b9e27f | 11018 | cat >> confdefs.h <<\EOF |
21d1c967 | 11019 | #define HAVE_LARGEFILE_SUPPORT 1 |
a0b9e27f | 11020 | EOF |
90dd450c | 11021 | |
90dd450c | 11022 | fi |
a0b9e27f | 11023 | echo "$ac_t""$wx_largefile" 1>&6 |
21d1c967 | 11024 | fi |
90dd450c | 11025 | |
8284b0c5 | 11026 | |
f02444d0 | 11027 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
11028 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
11029 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 11030 | else |
e26c13cf | 11031 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 11032 | fi |
e26c13cf | 11033 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
11034 | fi |
11035 | ||
a0b9e27f | 11036 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
521196a2 | 11037 | echo "configure:11038: checking whether byte ordering is bigendian" >&5 |
a0b9e27f MB |
11038 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
11039 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 11040 | else |
21d1c967 GD |
11041 | ac_cv_c_bigendian=unknown |
11042 | # See if sys/param.h defines the BYTE_ORDER macro. | |
a0b9e27f | 11043 | cat > conftest.$ac_ext <<EOF |
521196a2 | 11044 | #line 11045 "configure" |
90dd450c | 11045 | #include "confdefs.h" |
21d1c967 GD |
11046 | #include <sys/types.h> |
11047 | #include <sys/param.h> | |
a0b9e27f | 11048 | int main() { |
21d1c967 GD |
11049 | |
11050 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
11051 | bogus endian macros | |
11052 | #endif | |
a0b9e27f MB |
11053 | ; return 0; } |
11054 | EOF | |
521196a2 | 11055 | if { (eval echo configure:11056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11056 | rm -rf conftest* |
21d1c967 | 11057 | # It does; now see whether it defined to BIG_ENDIAN or not. |
a0b9e27f | 11058 | cat > conftest.$ac_ext <<EOF |
521196a2 | 11059 | #line 11060 "configure" |
90dd450c | 11060 | #include "confdefs.h" |
21d1c967 GD |
11061 | #include <sys/types.h> |
11062 | #include <sys/param.h> | |
a0b9e27f | 11063 | int main() { |
21d1c967 GD |
11064 | |
11065 | #if BYTE_ORDER != BIG_ENDIAN | |
11066 | not big endian | |
11067 | #endif | |
a0b9e27f MB |
11068 | ; return 0; } |
11069 | EOF | |
521196a2 | 11070 | if { (eval echo configure:11071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11071 | rm -rf conftest* |
21d1c967 | 11072 | ac_cv_c_bigendian=yes |
3f345b47 | 11073 | else |
a0b9e27f MB |
11074 | echo "configure: failed program was:" >&5 |
11075 | cat conftest.$ac_ext >&5 | |
11076 | rm -rf conftest* | |
11077 | ac_cv_c_bigendian=no | |
3f345b47 | 11078 | fi |
a0b9e27f | 11079 | rm -f conftest* |
3f345b47 | 11080 | else |
a0b9e27f MB |
11081 | echo "configure: failed program was:" >&5 |
11082 | cat conftest.$ac_ext >&5 | |
3f345b47 | 11083 | fi |
a0b9e27f | 11084 | rm -f conftest* |
21d1c967 GD |
11085 | if test $ac_cv_c_bigendian = unknown; then |
11086 | if test "$cross_compiling" = yes; then | |
11087 | ac_cv_c_bigendian=unknown | |
10f2d63a | 11088 | else |
a0b9e27f | 11089 | cat > conftest.$ac_ext <<EOF |
521196a2 | 11090 | #line 11091 "configure" |
90dd450c | 11091 | #include "confdefs.h" |
21d1c967 GD |
11092 | main () { |
11093 | /* Are we little or big endian? From Harbison&Steele. */ | |
11094 | union | |
11095 | { | |
11096 | long l; | |
11097 | char c[sizeof (long)]; | |
11098 | } u; | |
11099 | u.l = 1; | |
11100 | exit (u.c[sizeof (long) - 1] == 1); | |
11101 | } | |
a0b9e27f | 11102 | EOF |
521196a2 | 11103 | if { (eval echo configure:11104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 11104 | then |
21d1c967 | 11105 | ac_cv_c_bigendian=no |
3f345b47 | 11106 | else |
a0b9e27f MB |
11107 | echo "configure: failed program was:" >&5 |
11108 | cat conftest.$ac_ext >&5 | |
11109 | rm -fr conftest* | |
11110 | ac_cv_c_bigendian=yes | |
247f5006 | 11111 | fi |
a0b9e27f | 11112 | rm -fr conftest* |
247f5006 | 11113 | fi |
a0b9e27f | 11114 | |
3f345b47 | 11115 | fi |
8168de4c | 11116 | fi |
a0b9e27f MB |
11117 | |
11118 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
247f5006 | 11119 | if test $ac_cv_c_bigendian = unknown; then |
a0b9e27f | 11120 | 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 |
11121 | fi |
11122 | if test $ac_cv_c_bigendian = yes; then | |
a0b9e27f | 11123 | cat >> confdefs.h <<\EOF |
247f5006 | 11124 | #define WORDS_BIGENDIAN 1 |
a0b9e27f | 11125 | EOF |
247f5006 VZ |
11126 | |
11127 | fi | |
11128 | ||
11129 | ||
a0b9e27f | 11130 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
521196a2 | 11131 | echo "configure:11132: checking how to run the C++ preprocessor" >&5 |
247f5006 | 11132 | if test -z "$CXXCPP"; then |
a0b9e27f MB |
11133 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
11134 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11135 | else |
a0b9e27f MB |
11136 | ac_ext=C |
11137 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11138 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11139 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11140 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11141 | cross_compiling=$ac_cv_prog_cxx_cross | |
11142 | CXXCPP="${CXX-g++} -E" | |
11143 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 11144 | #line 11145 "configure" |
5c6fa7d2 | 11145 | #include "confdefs.h" |
a0b9e27f MB |
11146 | #include <stdlib.h> |
11147 | EOF | |
11148 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 11149 | { (eval echo configure:11150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11150 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11151 | if test -z "$ac_err"; then | |
21d1c967 | 11152 | : |
698dcdb6 | 11153 | else |
a0b9e27f MB |
11154 | echo "$ac_err" >&5 |
11155 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 11156 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11157 | rm -rf conftest* |
11158 | CXXCPP=/lib/cpp | |
247f5006 | 11159 | fi |
a0b9e27f MB |
11160 | rm -f conftest* |
11161 | ac_cv_prog_CXXCPP="$CXXCPP" | |
11162 | ac_ext=C | |
11163 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11164 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11165 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11166 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11167 | cross_compiling=$ac_cv_prog_cxx_cross | |
328a083c | 11168 | fi |
90dd450c | 11169 | fi |
a0b9e27f MB |
11170 | CXXCPP="$ac_cv_prog_CXXCPP" |
11171 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e6feb95 | 11172 | |
1725144d | 11173 | |
21d1c967 | 11174 | if test "$cross_compiling" = "yes"; then |
a0b9e27f | 11175 | cat >> confdefs.h <<\EOF |
21d1c967 | 11176 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11177 | EOF |
ab9b9eab | 11178 | |
21d1c967 | 11179 | else |
a0b9e27f MB |
11180 | |
11181 | ac_ext=C | |
11182 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11183 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11184 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11185 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11186 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 11187 | |
247f5006 | 11188 | |
a0b9e27f | 11189 | for ac_hdr in iostream |
21d1c967 | 11190 | do |
a0b9e27f MB |
11191 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11192 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
521196a2 | 11193 | echo "configure:11194: checking for $ac_hdr" >&5 |
a0b9e27f MB |
11194 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11195 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11196 | else | |
11197 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 11198 | #line 11199 "configure" |
ab9b9eab | 11199 | #include "confdefs.h" |
a0b9e27f MB |
11200 | #include <$ac_hdr> |
11201 | EOF | |
11202 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 11203 | { (eval echo configure:11204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11204 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11205 | if test -z "$ac_err"; then | |
11206 | rm -rf conftest* | |
11207 | eval "ac_cv_header_$ac_safe=yes" | |
11208 | else | |
11209 | echo "$ac_err" >&5 | |
11210 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 11211 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11212 | rm -rf conftest* |
11213 | eval "ac_cv_header_$ac_safe=no" | |
ab9b9eab | 11214 | fi |
a0b9e27f | 11215 | rm -f conftest* |
90dd450c | 11216 | fi |
a0b9e27f MB |
11217 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11218 | echo "$ac_t""yes" 1>&6 | |
11219 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11220 | cat >> confdefs.h <<EOF | |
11221 | #define $ac_tr_hdr 1 | |
11222 | EOF | |
11223 | ||
11224 | else | |
11225 | echo "$ac_t""no" 1>&6 | |
90dd450c | 11226 | fi |
21d1c967 | 11227 | done |
10f2d63a | 11228 | |
8284b0c5 | 11229 | |
21d1c967 GD |
11230 | if test "$ac_cv_header_iostream" = "yes" ; then |
11231 | : | |
11232 | else | |
a0b9e27f | 11233 | cat >> confdefs.h <<\EOF |
21d1c967 | 11234 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11235 | EOF |
788deba1 | 11236 | |
90dd450c | 11237 | fi |
ab9b9eab | 11238 | |
21d1c967 | 11239 | ac_ext=c |
a0b9e27f | 11240 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11241 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11242 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11243 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11244 | cross_compiling=$ac_cv_prog_cc_cross | |
ab9b9eab | 11245 | |
21d1c967 | 11246 | fi |
ab9b9eab | 11247 | |
52127426 | 11248 | |
8284b0c5 | 11249 | |
a0b9e27f | 11250 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
521196a2 | 11251 | echo "configure:11252: checking if C++ compiler supports bool" >&5 |
a0b9e27f MB |
11252 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
11253 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11254 | else |
a0b9e27f MB |
11255 | |
11256 | ||
11257 | ac_ext=C | |
11258 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11259 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11260 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11261 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11262 | cross_compiling=$ac_cv_prog_cxx_cross | |
21d1c967 | 11263 | |
8284b0c5 | 11264 | |
a0b9e27f | 11265 | cat > conftest.$ac_ext <<EOF |
521196a2 | 11266 | #line 11267 "configure" |
ab9b9eab | 11267 | #include "confdefs.h" |
21d1c967 | 11268 | |
a0b9e27f MB |
11269 | |
11270 | int main() { | |
21d1c967 GD |
11271 | |
11272 | bool b = true; | |
11273 | ||
11274 | return 0; | |
a0b9e27f MB |
11275 | |
11276 | ; return 0; } | |
11277 | EOF | |
521196a2 | 11278 | if { (eval echo configure:11279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11279 | rm -rf conftest* |
11280 | ||
21d1c967 | 11281 | wx_cv_cpp_bool=yes |
a0b9e27f | 11282 | |
698dcdb6 | 11283 | else |
a0b9e27f MB |
11284 | echo "configure: failed program was:" >&5 |
11285 | cat conftest.$ac_ext >&5 | |
11286 | rm -rf conftest* | |
11287 | ||
21d1c967 | 11288 | wx_cv_cpp_bool=no |
a0b9e27f MB |
11289 | |
11290 | ||
698dcdb6 | 11291 | fi |
a0b9e27f | 11292 | rm -f conftest* |
21d1c967 GD |
11293 | |
11294 | ac_ext=c | |
a0b9e27f | 11295 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11296 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11297 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11298 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11299 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11300 | |
a0b9e27f | 11301 | |
247f5006 | 11302 | fi |
a0b9e27f MB |
11303 | |
11304 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
21d1c967 GD |
11305 | |
11306 | if test "$wx_cv_cpp_bool" = "yes"; then | |
a0b9e27f | 11307 | cat >> confdefs.h <<\EOF |
21d1c967 | 11308 | #define HAVE_BOOL 1 |
a0b9e27f | 11309 | EOF |
ab9b9eab | 11310 | |
21d1c967 GD |
11311 | fi |
11312 | ||
52127426 | 11313 | |
8284b0c5 | 11314 | |
a0b9e27f | 11315 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 |
521196a2 | 11316 | echo "configure:11317: checking if C++ compiler supports the explicit keyword" >&5 |
a0b9e27f MB |
11317 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then |
11318 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11319 | else |
a0b9e27f MB |
11320 | |
11321 | ||
11322 | ac_ext=C | |
11323 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11324 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11325 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11326 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11327 | cross_compiling=$ac_cv_prog_cxx_cross | |
986ecc86 | 11328 | |
8284b0c5 | 11329 | |
a0b9e27f | 11330 | cat > conftest.$ac_ext <<EOF |
521196a2 | 11331 | #line 11332 "configure" |
986ecc86 VZ |
11332 | #include "confdefs.h" |
11333 | ||
11334 | class Foo { public: explicit Foo(int) {} }; | |
a0b9e27f MB |
11335 | |
11336 | int main() { | |
986ecc86 VZ |
11337 | |
11338 | return 0; | |
a0b9e27f MB |
11339 | |
11340 | ; return 0; } | |
11341 | EOF | |
521196a2 | 11342 | if { (eval echo configure:11343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11343 | rm -rf conftest* |
11344 | ||
11345 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 11346 | #line 11347 "configure" |
986ecc86 VZ |
11347 | #include "confdefs.h" |
11348 | ||
11349 | class Foo { public: explicit Foo(int) {} }; | |
11350 | static void TakeFoo(const Foo& foo) { } | |
a0b9e27f MB |
11351 | |
11352 | int main() { | |
986ecc86 VZ |
11353 | |
11354 | TakeFoo(17); | |
11355 | return 0; | |
a0b9e27f MB |
11356 | |
11357 | ; return 0; } | |
11358 | EOF | |
521196a2 | 11359 | if { (eval echo configure:11360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11360 | rm -rf conftest* |
986ecc86 VZ |
11361 | wx_cv_explicit=no |
11362 | else | |
a0b9e27f MB |
11363 | echo "configure: failed program was:" >&5 |
11364 | cat conftest.$ac_ext >&5 | |
11365 | rm -rf conftest* | |
11366 | wx_cv_explicit=yes | |
11367 | ||
986ecc86 | 11368 | fi |
a0b9e27f MB |
11369 | rm -f conftest* |
11370 | ||
986ecc86 | 11371 | else |
a0b9e27f MB |
11372 | echo "configure: failed program was:" >&5 |
11373 | cat conftest.$ac_ext >&5 | |
11374 | rm -rf conftest* | |
11375 | wx_cv_explicit=no | |
11376 | ||
986ecc86 | 11377 | fi |
a0b9e27f | 11378 | rm -f conftest* |
986ecc86 VZ |
11379 | |
11380 | ac_ext=c | |
a0b9e27f | 11381 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
986ecc86 | 11382 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11383 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11384 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11385 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11386 | |
a0b9e27f | 11387 | |
247f5006 | 11388 | fi |
a0b9e27f MB |
11389 | |
11390 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
986ecc86 VZ |
11391 | |
11392 | if test "$wx_cv_explicit" = "yes"; then | |
a0b9e27f | 11393 | cat >> confdefs.h <<\EOF |
986ecc86 | 11394 | #define HAVE_EXPLICIT 1 |
a0b9e27f | 11395 | EOF |
986ecc86 VZ |
11396 | |
11397 | fi | |
11398 | ||
8284b0c5 | 11399 | |
521196a2 MB |
11400 | echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6 |
11401 | echo "configure:11402: checking whether the compiler supports const_cast<>" >&5 | |
11402 | if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then | |
11403 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11404 | else | |
11405 | ||
11406 | ac_ext=C | |
11407 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11408 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11409 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11410 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11411 | cross_compiling=$ac_cv_prog_cxx_cross | |
11412 | ||
11413 | cat > conftest.$ac_ext <<EOF | |
11414 | #line 11415 "configure" | |
11415 | #include "confdefs.h" | |
11416 | ||
11417 | int main() { | |
11418 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
11419 | ; return 0; } | |
11420 | EOF | |
11421 | if { (eval echo configure:11422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11422 | rm -rf conftest* | |
11423 | ac_cv_cxx_const_cast=yes | |
11424 | else | |
11425 | echo "configure: failed program was:" >&5 | |
11426 | cat conftest.$ac_ext >&5 | |
11427 | rm -rf conftest* | |
11428 | ac_cv_cxx_const_cast=no | |
11429 | fi | |
11430 | rm -f conftest* | |
11431 | ac_ext=c | |
11432 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11433 | ac_cpp='$CPP $CPPFLAGS' | |
11434 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11435 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11436 | cross_compiling=$ac_cv_prog_cc_cross | |
11437 | ||
11438 | ||
11439 | fi | |
11440 | ||
11441 | echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6 | |
11442 | if test "$ac_cv_cxx_const_cast" = yes; then | |
11443 | cat >> confdefs.h <<\EOF | |
11444 | #define HAVE_CONST_CAST | |
11445 | EOF | |
11446 | ||
11447 | fi | |
11448 | ||
11449 | ||
8284b0c5 | 11450 | |
21d1c967 GD |
11451 | SEARCH_INCLUDE="\ |
11452 | /usr/local/include \ | |
11453 | \ | |
11454 | /usr/Motif-1.2/include \ | |
11455 | /usr/Motif-2.1/include \ | |
11456 | \ | |
11457 | /usr/include/Motif1.2 \ | |
11458 | /opt/xpm/include/X11 \ | |
11459 | /opt/GBxpm/include/ \ | |
11460 | /opt/GBxpm/X11/include/ \ | |
11461 | \ | |
11462 | /usr/Motif1.2/include \ | |
11463 | /usr/dt/include \ | |
11464 | /usr/openwin/include \ | |
11465 | \ | |
11466 | /usr/include/Xm \ | |
11467 | \ | |
11468 | /usr/X11R6/include \ | |
11469 | /usr/X11R6.4/include \ | |
11470 | /usr/X11R5/include \ | |
11471 | /usr/X11R4/include \ | |
11472 | \ | |
11473 | /usr/include/X11R6 \ | |
11474 | /usr/include/X11R5 \ | |
11475 | /usr/include/X11R4 \ | |
11476 | \ | |
11477 | /usr/local/X11R6/include \ | |
11478 | /usr/local/X11R5/include \ | |
11479 | /usr/local/X11R4/include \ | |
11480 | \ | |
11481 | /usr/local/include/X11R6 \ | |
11482 | /usr/local/include/X11R5 \ | |
11483 | /usr/local/include/X11R4 \ | |
11484 | \ | |
11485 | /usr/X11/include \ | |
11486 | /usr/include/X11 \ | |
11487 | /usr/local/X11/include \ | |
11488 | /usr/local/include/X11 \ | |
11489 | \ | |
11490 | /usr/X386/include \ | |
11491 | /usr/x386/include \ | |
11492 | /usr/XFree86/include/X11 \ | |
11493 | \ | |
11494 | X:/XFree86/include \ | |
11495 | X:/XFree86/include/X11 \ | |
11496 | \ | |
11497 | /usr/include/gtk \ | |
11498 | /usr/local/include/gtk \ | |
11499 | /usr/include/glib \ | |
11500 | /usr/local/include/glib \ | |
11501 | \ | |
11502 | /usr/include/qt \ | |
11503 | /usr/local/include/qt \ | |
11504 | \ | |
11505 | /usr/include/windows \ | |
11506 | /usr/include/wine \ | |
11507 | /usr/local/include/wine \ | |
11508 | \ | |
11509 | /usr/unsupported/include \ | |
11510 | /usr/athena/include \ | |
11511 | /usr/local/x11r5/include \ | |
11512 | /usr/lpp/Xamples/include \ | |
11513 | \ | |
2b5f62a0 | 11514 | /usr/openwin/share/include" |
21d1c967 GD |
11515 | |
11516 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
11517 | ||
8284b0c5 | 11518 | |
a0b9e27f | 11519 | cat > confcache <<\EOF |
21d1c967 GD |
11520 | # This file is a shell script that caches the results of configure |
11521 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
11522 | # scripts and configure runs. It is not useful on other systems. |
11523 | # If it contains results you don't want to keep, you may remove or edit it. | |
21d1c967 | 11524 | # |
a0b9e27f MB |
11525 | # By default, configure uses ./config.cache as the cache file, |
11526 | # creating it if it does not exist already. You can give configure | |
11527 | # the --cache-file=FILE option to use a different cache file; that is | |
11528 | # what configure does when it calls configure scripts in | |
11529 | # subdirectories, so they share the cache. | |
11530 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
11531 | # config.status only pays attention to the cache file if you give it the | |
11532 | # --recheck option to rerun configure. | |
21d1c967 | 11533 | # |
a0b9e27f | 11534 | EOF |
21d1c967 GD |
11535 | # The following way of writing the cache mishandles newlines in values, |
11536 | # but we know of no workaround that is simple, portable, and efficient. | |
11537 | # So, don't put newlines in cache variables' values. | |
11538 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11539 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
11540 | (set) 2>&1 | |
11541 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11542 | *ac_space=\ *) | |
11543 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11544 | # turns \\\\ into \\, and sed turns \\ into \). | |
11545 | sed -n \ | |
11546 | -e "s/'/'\\\\''/g" \ | |
11547 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11548 | ;; | |
11549 | *) | |
11550 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11551 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11552 | ;; | |
11553 | esac >> confcache | |
11554 | if cmp -s $cache_file confcache; then | |
11555 | : | |
11556 | else | |
21d1c967 | 11557 | if test -w $cache_file; then |
a0b9e27f MB |
11558 | echo "updating cache $cache_file" |
11559 | cat confcache > $cache_file | |
21d1c967 GD |
11560 | else |
11561 | echo "not updating unwritable cache $cache_file" | |
11562 | fi | |
ab9b9eab | 11563 | fi |
21d1c967 | 11564 | rm -f confcache |
ab9b9eab | 11565 | |
247f5006 | 11566 | |
a0b9e27f MB |
11567 | if test "$USE_LINUX" = 1; then |
11568 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
521196a2 | 11569 | echo "configure:11570: checking for glibc 2.1 or later" >&5 |
a0b9e27f MB |
11570 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then |
11571 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11572 | else | |
11573 | ||
11574 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 11575 | #line 11576 "configure" |
ab9b9eab | 11576 | #include "confdefs.h" |
21d1c967 | 11577 | #include <features.h> |
a0b9e27f | 11578 | int main() { |
ab9b9eab | 11579 | |
21d1c967 GD |
11580 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
11581 | #error not glibc2.1 | |
11582 | #endif | |
a0b9e27f MB |
11583 | |
11584 | ; return 0; } | |
11585 | EOF | |
521196a2 | 11586 | if { (eval echo configure:11587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11587 | rm -rf conftest* |
11588 | ||
21d1c967 | 11589 | wx_cv_lib_glibc21=yes |
a0b9e27f | 11590 | |
698dcdb6 | 11591 | else |
a0b9e27f MB |
11592 | echo "configure: failed program was:" >&5 |
11593 | cat conftest.$ac_ext >&5 | |
11594 | rm -rf conftest* | |
11595 | ||
21d1c967 | 11596 | wx_cv_lib_glibc21=no |
a0b9e27f MB |
11597 | |
11598 | ||
5c6fa7d2 | 11599 | fi |
a0b9e27f MB |
11600 | rm -f conftest* |
11601 | ||
247f5006 | 11602 | fi |
a0b9e27f MB |
11603 | |
11604 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 | |
21d1c967 | 11605 | if test "$wx_cv_lib_glibc21" = "yes"; then |
a0b9e27f | 11606 | cat >> confdefs.h <<\EOF |
21d1c967 | 11607 | #define wxHAVE_GLIBC2 1 |
a0b9e27f | 11608 | EOF |
1e487827 | 11609 | |
90dd450c | 11610 | fi |
ab9b9eab VZ |
11611 | fi |
11612 | ||
5c0a20c3 VZ |
11613 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
11614 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 11615 | cat >> confdefs.h <<\EOF |
5c0a20c3 | 11616 | #define _GNU_SOURCE 1 |
a0b9e27f | 11617 | EOF |
5c0a20c3 VZ |
11618 | |
11619 | fi | |
11620 | fi | |
11621 | ||
8284b0c5 MB |
11622 | |
11623 | ||
21d1c967 GD |
11624 | REGEX_INCLUDE= |
11625 | if test "$wxUSE_REGEX" != "no"; then | |
a0b9e27f | 11626 | cat >> confdefs.h <<\EOF |
21d1c967 | 11627 | #define wxUSE_REGEX 1 |
a0b9e27f | 11628 | EOF |
698dcdb6 | 11629 | |
8284b0c5 | 11630 | |
21d1c967 | 11631 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
a0b9e27f MB |
11632 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` |
11633 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
521196a2 | 11634 | echo "configure:11635: checking for regex.h" >&5 |
a0b9e27f MB |
11635 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11636 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11637 | else | |
11638 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 11639 | #line 11640 "configure" |
247f5006 VZ |
11640 | #include "confdefs.h" |
11641 | #include <regex.h> | |
a0b9e27f MB |
11642 | EOF |
11643 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 11644 | { (eval echo configure:11645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11645 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11646 | if test -z "$ac_err"; then | |
11647 | rm -rf conftest* | |
11648 | eval "ac_cv_header_$ac_safe=yes" | |
11649 | else | |
11650 | echo "$ac_err" >&5 | |
11651 | echo "configure: failed program was:" >&5 | |
21d1c967 | 11652 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11653 | rm -rf conftest* |
11654 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 11655 | fi |
a0b9e27f | 11656 | rm -f conftest* |
698dcdb6 | 11657 | fi |
a0b9e27f MB |
11658 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11659 | echo "$ac_t""yes" 1>&6 | |
11660 | for ac_func in regcomp | |
21d1c967 | 11661 | do |
a0b9e27f | 11662 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 11663 | echo "configure:11664: checking for $ac_func" >&5 |
a0b9e27f MB |
11664 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11665 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11666 | else |
a0b9e27f | 11667 | cat > conftest.$ac_ext <<EOF |
521196a2 | 11668 | #line 11669 "configure" |
a0b9e27f MB |
11669 | #include "confdefs.h" |
11670 | /* System header to define __stub macros and hopefully few prototypes, | |
11671 | which can conflict with char $ac_func(); below. */ | |
21d1c967 GD |
11672 | #include <assert.h> |
11673 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11674 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11675 | builtin and then its argument prototype would still apply. */ |
11676 | char $ac_func(); | |
11677 | ||
11678 | int main() { | |
11679 | ||
21d1c967 GD |
11680 | /* The GNU C library defines this for functions which it implements |
11681 | to always fail with ENOSYS. Some functions are actually named | |
11682 | something starting with __ and the normal name is an alias. */ | |
11683 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11684 | choke me | |
11685 | #else | |
a0b9e27f | 11686 | $ac_func(); |
21d1c967 | 11687 | #endif |
90dd450c | 11688 | |
a0b9e27f MB |
11689 | ; return 0; } |
11690 | EOF | |
521196a2 | 11691 | if { (eval echo configure:11692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11692 | rm -rf conftest* |
11693 | eval "ac_cv_func_$ac_func=yes" | |
11694 | else | |
11695 | echo "configure: failed program was:" >&5 | |
11696 | cat conftest.$ac_ext >&5 | |
11697 | rm -rf conftest* | |
11698 | eval "ac_cv_func_$ac_func=no" | |
11699 | fi | |
11700 | rm -f conftest* | |
11701 | fi | |
5c6fa7d2 | 11702 | |
a0b9e27f MB |
11703 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11704 | echo "$ac_t""yes" 1>&6 | |
11705 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11706 | cat >> confdefs.h <<EOF | |
11707 | #define $ac_tr_func 1 | |
11708 | EOF | |
11709 | ||
11710 | else | |
11711 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 11712 | fi |
21d1c967 GD |
11713 | done |
11714 | ||
a0b9e27f MB |
11715 | else |
11716 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11717 | fi |
11718 | ||
8284b0c5 | 11719 | |
21d1c967 GD |
11720 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
11721 | if test "$wxUSE_REGEX" = "sys" ; then | |
a0b9e27f | 11722 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11723 | else |
a0b9e27f | 11724 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11725 | wxUSE_REGEX=builtin |
11726 | fi | |
11727 | else | |
11728 | wxUSE_REGEX=sys | |
11729 | fi | |
ab9b9eab | 11730 | fi |
90dd450c | 11731 | |
21d1c967 GD |
11732 | if test "$wxUSE_REGEX" = "builtin" ; then |
11733 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 11734 | fi |
21d1c967 | 11735 | fi |
90dd450c | 11736 | |
8284b0c5 | 11737 | |
21d1c967 GD |
11738 | ZLIB_INCLUDE= |
11739 | ZLIB_LINK= | |
11740 | if test "$wxUSE_ZLIB" != "no" ; then | |
a0b9e27f | 11741 | cat >> confdefs.h <<\EOF |
21d1c967 | 11742 | #define wxUSE_ZLIB 1 |
a0b9e27f | 11743 | EOF |
21d1c967 | 11744 | |
8284b0c5 | 11745 | |
21d1c967 | 11746 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
11747 | if test "$USE_DARWIN" = 1; then |
11748 | system_zlib_h_ok="yes" | |
11749 | else | |
11750 | echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6 | |
521196a2 | 11751 | echo "configure:11752: checking for zlib.h >= 1.1.4" >&5 |
d643b80e VZ |
11752 | if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then |
11753 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11754 | else | |
11755 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 11756 | unset ac_cv_header_zlib_h |
d775acfa | 11757 | |
d643b80e VZ |
11758 | else |
11759 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 11760 | #line 11761 "configure" |
d643b80e VZ |
11761 | #include "confdefs.h" |
11762 | ||
d775acfa VZ |
11763 | #include <zlib.h> |
11764 | #include <stdio.h> | |
d643b80e | 11765 | |
d775acfa VZ |
11766 | |
11767 | int main() | |
11768 | { | |
11769 | FILE *f=fopen("conftestval", "w"); | |
11770 | if (!f) exit(1); | |
11771 | fprintf(f, "%s", | |
11772 | ZLIB_VERSION[0] == '1' && | |
11773 | (ZLIB_VERSION[2] > '1' || | |
11774 | (ZLIB_VERSION[2] == '1' && | |
11775 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
11776 | exit(0); | |
11777 | } | |
11778 | ||
d643b80e | 11779 | |
d643b80e | 11780 | EOF |
521196a2 | 11781 | if { (eval echo configure:11782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
d643b80e VZ |
11782 | then |
11783 | ac_cv_header_zlib_h=`cat conftestval` | |
11784 | else | |
11785 | echo "configure: failed program was:" >&5 | |
11786 | cat conftest.$ac_ext >&5 | |
11787 | rm -fr conftest* | |
11788 | ac_cv_header_zlib_h=no | |
11789 | fi | |
11790 | rm -fr conftest* | |
11791 | fi | |
11792 | ||
d775acfa | 11793 | |
d643b80e VZ |
11794 | fi |
11795 | ||
11796 | echo "$ac_t""$ac_cv_header_zlib_h" 1>&6 | |
89e6bf6d VZ |
11797 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
11798 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
521196a2 | 11799 | echo "configure:11800: checking for zlib.h" >&5 |
89e6bf6d VZ |
11800 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11801 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11802 | else | |
11803 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 11804 | #line 11805 "configure" |
89e6bf6d VZ |
11805 | #include "confdefs.h" |
11806 | #include <zlib.h> | |
11807 | EOF | |
11808 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 11809 | { (eval echo configure:11810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
89e6bf6d VZ |
11810 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11811 | if test -z "$ac_err"; then | |
11812 | rm -rf conftest* | |
11813 | eval "ac_cv_header_$ac_safe=yes" | |
11814 | else | |
11815 | echo "$ac_err" >&5 | |
11816 | echo "configure: failed program was:" >&5 | |
11817 | cat conftest.$ac_ext >&5 | |
11818 | rm -rf conftest* | |
11819 | eval "ac_cv_header_$ac_safe=no" | |
11820 | fi | |
11821 | rm -f conftest* | |
11822 | fi | |
11823 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11824 | echo "$ac_t""yes" 1>&6 | |
11825 | : | |
11826 | else | |
11827 | echo "$ac_t""no" 1>&6 | |
11828 | fi | |
11829 | ||
d643b80e | 11830 | |
d775acfa VZ |
11831 | system_zlib_h_ok=$ac_cv_header_zlib_h |
11832 | fi | |
11833 | ||
11834 | if test "$system_zlib_h_ok" = "yes"; then | |
d643b80e | 11835 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
521196a2 | 11836 | echo "configure:11837: checking for deflate in -lz" >&5 |
a0b9e27f MB |
11837 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
11838 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11839 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11840 | else |
a0b9e27f | 11841 | ac_save_LIBS="$LIBS" |
21d1c967 | 11842 | LIBS="-lz $LIBS" |
a0b9e27f | 11843 | cat > conftest.$ac_ext <<EOF |
521196a2 | 11844 | #line 11845 "configure" |
ab9b9eab | 11845 | #include "confdefs.h" |
21d1c967 GD |
11846 | /* Override any gcc2 internal prototype to avoid an error. */ |
11847 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11848 | builtin and then its argument prototype would still apply. */ |
11849 | char deflate(); | |
11850 | ||
11851 | int main() { | |
11852 | deflate() | |
11853 | ; return 0; } | |
11854 | EOF | |
521196a2 | 11855 | if { (eval echo configure:11856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11856 | rm -rf conftest* |
11857 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11858 | else | |
11859 | echo "configure: failed program was:" >&5 | |
11860 | cat conftest.$ac_ext >&5 | |
11861 | rm -rf conftest* | |
11862 | eval "ac_cv_lib_$ac_lib_var=no" | |
90dd450c | 11863 | fi |
a0b9e27f MB |
11864 | rm -f conftest* |
11865 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 11866 | |
698dcdb6 | 11867 | fi |
a0b9e27f MB |
11868 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11869 | echo "$ac_t""yes" 1>&6 | |
11870 | ZLIB_LINK=" -lz" | |
11871 | else | |
11872 | echo "$ac_t""no" 1>&6 | |
11873 | fi | |
698dcdb6 | 11874 | |
d643b80e | 11875 | fi |
247f5006 | 11876 | |
21d1c967 GD |
11877 | if test "x$ZLIB_LINK" = "x" ; then |
11878 | if test "$wxUSE_ZLIB" = "sys" ; then | |
d643b80e | 11879 | { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11880 | else |
d643b80e | 11881 | echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2 |
21d1c967 GD |
11882 | wxUSE_ZLIB=builtin |
11883 | fi | |
11884 | else | |
11885 | wxUSE_ZLIB=sys | |
11886 | fi | |
11887 | fi | |
11888 | ||
11889 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11890 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11891 | fi | |
ab9b9eab VZ |
11892 | fi |
11893 | ||
8284b0c5 | 11894 | |
21d1c967 GD |
11895 | PNG_INCLUDE= |
11896 | PNG_LINK= | |
11897 | if test "$wxUSE_LIBPNG" != "no" ; then | |
a0b9e27f | 11898 | cat >> confdefs.h <<\EOF |
21d1c967 | 11899 | #define wxUSE_LIBPNG 1 |
a0b9e27f | 11900 | EOF |
90dd450c | 11901 | |
8284b0c5 | 11902 | |
21d1c967 | 11903 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
a0b9e27f | 11904 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11905 | wxUSE_LIBPNG=sys |
11906 | fi | |
90dd450c | 11907 | |
21d1c967 | 11908 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
a0b9e27f | 11909 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
21d1c967 GD |
11910 | wxUSE_LIBPNG=builtin |
11911 | fi | |
11912 | ||
11913 | if test "$wxUSE_MGL" != 1 ; then | |
11914 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
5d3f766d | 11915 | echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6 |
521196a2 | 11916 | echo "configure:11917: checking for png.h > 0.90" >&5 |
5d3f766d VZ |
11917 | if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then |
11918 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11919 | else | |
11920 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 11921 | unset ac_cv_header_png_h |
5d3f766d VZ |
11922 | |
11923 | else | |
11924 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 11925 | #line 11926 "configure" |
5d3f766d VZ |
11926 | #include "confdefs.h" |
11927 | ||
11928 | #include <png.h> | |
11929 | #include <stdio.h> | |
11930 | ||
11931 | int main() | |
11932 | { | |
11933 | FILE *f=fopen("conftestval", "w"); | |
11934 | if (!f) exit(1); | |
11935 | fprintf(f, "%s", | |
11936 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
11937 | exit(0); | |
11938 | } | |
11939 | ||
11940 | EOF | |
521196a2 | 11941 | if { (eval echo configure:11942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5d3f766d VZ |
11942 | then |
11943 | ac_cv_header_png_h=`cat conftestval` | |
11944 | else | |
11945 | echo "configure: failed program was:" >&5 | |
11946 | cat conftest.$ac_ext >&5 | |
11947 | rm -fr conftest* | |
11948 | ac_cv_header_png_h=no | |
11949 | fi | |
11950 | rm -fr conftest* | |
11951 | fi | |
11952 | ||
11953 | ||
11954 | fi | |
11955 | ||
11956 | echo "$ac_t""$ac_cv_header_png_h" 1>&6 | |
89e6bf6d VZ |
11957 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
11958 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
521196a2 | 11959 | echo "configure:11960: checking for png.h" >&5 |
89e6bf6d VZ |
11960 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11961 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11962 | else | |
11963 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 11964 | #line 11965 "configure" |
89e6bf6d VZ |
11965 | #include "confdefs.h" |
11966 | #include <png.h> | |
11967 | EOF | |
11968 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 11969 | { (eval echo configure:11970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
89e6bf6d VZ |
11970 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11971 | if test -z "$ac_err"; then | |
11972 | rm -rf conftest* | |
11973 | eval "ac_cv_header_$ac_safe=yes" | |
11974 | else | |
11975 | echo "$ac_err" >&5 | |
11976 | echo "configure: failed program was:" >&5 | |
11977 | cat conftest.$ac_ext >&5 | |
11978 | rm -rf conftest* | |
11979 | eval "ac_cv_header_$ac_safe=no" | |
11980 | fi | |
11981 | rm -f conftest* | |
11982 | fi | |
11983 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11984 | echo "$ac_t""yes" 1>&6 | |
11985 | : | |
11986 | else | |
11987 | echo "$ac_t""no" 1>&6 | |
11988 | fi | |
11989 | ||
5d3f766d VZ |
11990 | |
11991 | if test "$ac_cv_header_png_h" = "yes"; then | |
11992 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
521196a2 | 11993 | echo "configure:11994: checking for png_check_sig in -lpng" >&5 |
a0b9e27f MB |
11994 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
11995 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11996 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11997 | else |
a0b9e27f | 11998 | ac_save_LIBS="$LIBS" |
21d1c967 | 11999 | LIBS="-lpng -lz -lm $LIBS" |
a0b9e27f | 12000 | cat > conftest.$ac_ext <<EOF |
521196a2 | 12001 | #line 12002 "configure" |
90dd450c | 12002 | #include "confdefs.h" |
21d1c967 GD |
12003 | /* Override any gcc2 internal prototype to avoid an error. */ |
12004 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
12005 | builtin and then its argument prototype would still apply. */ |
12006 | char png_check_sig(); | |
90dd450c | 12007 | |
a0b9e27f MB |
12008 | int main() { |
12009 | png_check_sig() | |
12010 | ; return 0; } | |
12011 | EOF | |
521196a2 | 12012 | if { (eval echo configure:12013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12013 | rm -rf conftest* |
12014 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12015 | else | |
12016 | echo "configure: failed program was:" >&5 | |
12017 | cat conftest.$ac_ext >&5 | |
12018 | rm -rf conftest* | |
12019 | eval "ac_cv_lib_$ac_lib_var=no" | |
12020 | fi | |
12021 | rm -f conftest* | |
12022 | LIBS="$ac_save_LIBS" | |
247f5006 | 12023 | |
90dd450c | 12024 | fi |
a0b9e27f MB |
12025 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
12026 | echo "$ac_t""yes" 1>&6 | |
12027 | PNG_LINK=" -lpng" | |
12028 | else | |
12029 | echo "$ac_t""no" 1>&6 | |
12030 | fi | |
90dd450c | 12031 | |
5d3f766d | 12032 | fi |
247f5006 | 12033 | |
21d1c967 GD |
12034 | if test "x$PNG_LINK" = "x" ; then |
12035 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
0c98a14e | 12036 | { 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 | 12037 | else |
0c98a14e | 12038 | echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2 |
21d1c967 GD |
12039 | wxUSE_LIBPNG=builtin |
12040 | fi | |
12041 | else | |
2b5f62a0 | 12042 | wxUSE_LIBPNG=sys |
21d1c967 GD |
12043 | fi |
12044 | fi | |
12045 | fi | |
90dd450c | 12046 | |
21d1c967 GD |
12047 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
12048 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
12049 | fi | |
90dd450c | 12050 | |
21d1c967 | 12051 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
12052 | fi |
12053 | ||
8284b0c5 | 12054 | |
21d1c967 GD |
12055 | JPEG_INCLUDE= |
12056 | JPEG_LINK= | |
12057 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
a0b9e27f | 12058 | cat >> confdefs.h <<\EOF |
21d1c967 | 12059 | #define wxUSE_LIBJPEG 1 |
a0b9e27f | 12060 | EOF |
90dd450c | 12061 | |
8284b0c5 | 12062 | |
21d1c967 | 12063 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
a0b9e27f | 12064 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 |
21d1c967 GD |
12065 | wxUSE_LIBJPEG=sys |
12066 | fi | |
90dd450c | 12067 | |
21d1c967 GD |
12068 | if test "$wxUSE_MGL" != 1 ; then |
12069 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
a0b9e27f | 12070 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
521196a2 | 12071 | echo "configure:12072: checking for jpeglib.h" >&5 |
a0b9e27f MB |
12072 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
12073 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12074 | else |
a0b9e27f | 12075 | cat > conftest.$ac_ext <<EOF |
521196a2 | 12076 | #line 12077 "configure" |
21d1c967 | 12077 | #include "confdefs.h" |
90dd450c | 12078 | |
21d1c967 GD |
12079 | #undef HAVE_STDLIB_H |
12080 | #include <stdio.h> | |
12081 | #include <jpeglib.h> | |
a0b9e27f MB |
12082 | |
12083 | int main() { | |
90dd450c | 12084 | |
a0b9e27f MB |
12085 | |
12086 | ; return 0; } | |
12087 | EOF | |
521196a2 | 12088 | if { (eval echo configure:12089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 12089 | rm -rf conftest* |
21d1c967 | 12090 | ac_cv_header_jpeglib_h=yes |
90dd450c | 12091 | else |
a0b9e27f MB |
12092 | echo "configure: failed program was:" >&5 |
12093 | cat conftest.$ac_ext >&5 | |
12094 | rm -rf conftest* | |
12095 | ac_cv_header_jpeglib_h=no | |
12096 | ||
90dd450c | 12097 | fi |
a0b9e27f MB |
12098 | rm -f conftest* |
12099 | ||
90dd450c VZ |
12100 | fi |
12101 | ||
a0b9e27f | 12102 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
90dd450c | 12103 | |
21d1c967 | 12104 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
a0b9e27f | 12105 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 |
521196a2 | 12106 | echo "configure:12107: checking for jpeg_read_header in -ljpeg" >&5 |
a0b9e27f MB |
12107 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
12108 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12109 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12110 | else |
a0b9e27f | 12111 | ac_save_LIBS="$LIBS" |
21d1c967 | 12112 | LIBS="-ljpeg $LIBS" |
a0b9e27f | 12113 | cat > conftest.$ac_ext <<EOF |
521196a2 | 12114 | #line 12115 "configure" |
21d1c967 GD |
12115 | #include "confdefs.h" |
12116 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12117 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
12118 | builtin and then its argument prototype would still apply. */ |
12119 | char jpeg_read_header(); | |
12120 | ||
12121 | int main() { | |
12122 | jpeg_read_header() | |
12123 | ; return 0; } | |
12124 | EOF | |
521196a2 | 12125 | if { (eval echo configure:12126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12126 | rm -rf conftest* |
12127 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12128 | else | |
12129 | echo "configure: failed program was:" >&5 | |
12130 | cat conftest.$ac_ext >&5 | |
12131 | rm -rf conftest* | |
12132 | eval "ac_cv_lib_$ac_lib_var=no" | |
12133 | fi | |
12134 | rm -f conftest* | |
12135 | LIBS="$ac_save_LIBS" | |
12136 | ||
12137 | fi | |
12138 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12139 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 12140 | JPEG_LINK=" -ljpeg" |
a0b9e27f MB |
12141 | else |
12142 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
12143 | fi |
12144 | ||
21d1c967 | 12145 | fi |
90dd450c | 12146 | |
21d1c967 GD |
12147 | if test "x$JPEG_LINK" = "x" ; then |
12148 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
a0b9e27f | 12149 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 12150 | else |
a0b9e27f | 12151 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
12152 | wxUSE_LIBJPEG=builtin |
12153 | fi | |
12154 | else | |
12155 | wxUSE_LIBJPEG=sys | |
12156 | fi | |
12157 | fi | |
12158 | fi | |
90dd450c | 12159 | |
21d1c967 GD |
12160 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
12161 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
12162 | fi | |
12163 | fi | |
90dd450c | 12164 | |
8284b0c5 | 12165 | |
21d1c967 GD |
12166 | TIFF_INCLUDE= |
12167 | TIFF_LINK= | |
2b5f62a0 | 12168 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 12169 | if test "$wxUSE_LIBTIFF" != "no" ; then |
a0b9e27f | 12170 | cat >> confdefs.h <<\EOF |
21d1c967 | 12171 | #define wxUSE_LIBTIFF 1 |
a0b9e27f | 12172 | EOF |
21d1c967 | 12173 | |
8284b0c5 | 12174 | |
21d1c967 | 12175 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
12176 | if test "$wxUSE_LIBJPEG" = "sys"; then |
12177 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
12178 | fi | |
12179 | if test "$wxUSE_ZLIB" = "sys"; then | |
12180 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
12181 | fi | |
a0b9e27f MB |
12182 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
12183 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
521196a2 | 12184 | echo "configure:12185: checking for tiffio.h" >&5 |
a0b9e27f MB |
12185 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12186 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12187 | else | |
12188 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 12189 | #line 12190 "configure" |
247f5006 VZ |
12190 | #include "confdefs.h" |
12191 | #include <tiffio.h> | |
a0b9e27f MB |
12192 | EOF |
12193 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 12194 | { (eval echo configure:12195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12195 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12196 | if test -z "$ac_err"; then | |
12197 | rm -rf conftest* | |
12198 | eval "ac_cv_header_$ac_safe=yes" | |
12199 | else | |
12200 | echo "$ac_err" >&5 | |
12201 | echo "configure: failed program was:" >&5 | |
21d1c967 | 12202 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12203 | rm -rf conftest* |
12204 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 12205 | fi |
a0b9e27f | 12206 | rm -f conftest* |
21d1c967 | 12207 | fi |
a0b9e27f MB |
12208 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12209 | echo "$ac_t""yes" 1>&6 | |
12210 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
521196a2 | 12211 | echo "configure:12212: checking for TIFFError in -ltiff" >&5 |
a0b9e27f MB |
12212 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
12213 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12214 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 12215 | else |
a0b9e27f | 12216 | ac_save_LIBS="$LIBS" |
2b5f62a0 | 12217 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
a0b9e27f | 12218 | cat > conftest.$ac_ext <<EOF |
521196a2 | 12219 | #line 12220 "configure" |
ab9b9eab VZ |
12220 | #include "confdefs.h" |
12221 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12222 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
12223 | builtin and then its argument prototype would still apply. */ |
12224 | char TIFFError(); | |
ab9b9eab | 12225 | |
a0b9e27f MB |
12226 | int main() { |
12227 | TIFFError() | |
12228 | ; return 0; } | |
12229 | EOF | |
521196a2 | 12230 | if { (eval echo configure:12231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12231 | rm -rf conftest* |
12232 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12233 | else | |
12234 | echo "configure: failed program was:" >&5 | |
12235 | cat conftest.$ac_ext >&5 | |
12236 | rm -rf conftest* | |
12237 | eval "ac_cv_lib_$ac_lib_var=no" | |
12238 | fi | |
12239 | rm -f conftest* | |
12240 | LIBS="$ac_save_LIBS" | |
247f5006 | 12241 | |
21d1c967 | 12242 | fi |
a0b9e27f MB |
12243 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
12244 | echo "$ac_t""yes" 1>&6 | |
12245 | TIFF_LINK=" -ltiff" | |
12246 | else | |
12247 | echo "$ac_t""no" 1>&6 | |
12248 | fi | |
cd6d6d5b | 12249 | |
a0b9e27f MB |
12250 | |
12251 | else | |
12252 | echo "$ac_t""no" 1>&6 | |
12253 | fi | |
8284b0c5 | 12254 | |
247f5006 | 12255 | |
21d1c967 GD |
12256 | if test "x$TIFF_LINK" = "x" ; then |
12257 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
a0b9e27f | 12258 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } |
90dd450c | 12259 | else |
a0b9e27f | 12260 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
21d1c967 | 12261 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 12262 | fi |
d8356fa3 | 12263 | else |
21d1c967 | 12264 | wxUSE_LIBTIFF=sys |
d8356fa3 | 12265 | fi |
21d1c967 | 12266 | fi |
d8356fa3 | 12267 | |
21d1c967 GD |
12268 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
12269 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 12270 | fi |
21d1c967 | 12271 | fi |
10f2d63a | 12272 | |
8284b0c5 | 12273 | |
21d1c967 | 12274 | AFMINSTALL= |
2b5f62a0 | 12275 | WIN32INSTALL= |
90dd450c | 12276 | |
21d1c967 GD |
12277 | TOOLKIT= |
12278 | TOOLKIT_INCLUDE= | |
12279 | WIDGET_SET= | |
12280 | ||
12281 | if test "$USE_WIN32" = 1 ; then | |
a0b9e27f | 12282 | for ac_hdr in w32api.h |
21d1c967 | 12283 | do |
a0b9e27f MB |
12284 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12285 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
521196a2 | 12286 | echo "configure:12287: checking for $ac_hdr" >&5 |
a0b9e27f MB |
12287 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12288 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12289 | else | |
12290 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 12291 | #line 12292 "configure" |
247f5006 | 12292 | #include "confdefs.h" |
a0b9e27f MB |
12293 | #include <$ac_hdr> |
12294 | EOF | |
12295 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 12296 | { (eval echo configure:12297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12297 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12298 | if test -z "$ac_err"; then | |
12299 | rm -rf conftest* | |
12300 | eval "ac_cv_header_$ac_safe=yes" | |
12301 | else | |
12302 | echo "$ac_err" >&5 | |
12303 | echo "configure: failed program was:" >&5 | |
f79bd02d | 12304 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12305 | rm -rf conftest* |
12306 | eval "ac_cv_header_$ac_safe=no" | |
f79bd02d | 12307 | fi |
a0b9e27f | 12308 | rm -f conftest* |
21d1c967 | 12309 | fi |
a0b9e27f MB |
12310 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12311 | echo "$ac_t""yes" 1>&6 | |
12312 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12313 | cat >> confdefs.h <<EOF | |
12314 | #define $ac_tr_hdr 1 | |
12315 | EOF | |
12316 | ||
12317 | else | |
12318 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
12319 | fi |
12320 | done | |
f79bd02d | 12321 | |
a0b9e27f MB |
12322 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
12323 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
521196a2 | 12324 | echo "configure:12325: checking for windows.h" >&5 |
a0b9e27f MB |
12325 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12326 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12327 | else |
a0b9e27f | 12328 | cat > conftest.$ac_ext <<EOF |
521196a2 | 12329 | #line 12330 "configure" |
247f5006 VZ |
12330 | #include "confdefs.h" |
12331 | #include <windows.h> | |
a0b9e27f MB |
12332 | EOF |
12333 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 12334 | { (eval echo configure:12335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12335 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12336 | if test -z "$ac_err"; then | |
12337 | rm -rf conftest* | |
12338 | eval "ac_cv_header_$ac_safe=yes" | |
12339 | else | |
12340 | echo "$ac_err" >&5 | |
12341 | echo "configure: failed program was:" >&5 | |
90dd450c | 12342 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12343 | rm -rf conftest* |
12344 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 12345 | fi |
a0b9e27f | 12346 | rm -f conftest* |
90dd450c | 12347 | fi |
a0b9e27f MB |
12348 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12349 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 12350 | : |
90dd450c | 12351 | else |
a0b9e27f | 12352 | echo "$ac_t""no" 1>&6 |
21d1c967 | 12353 | |
a0b9e27f MB |
12354 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
12355 | ||
5c6fa7d2 | 12356 | fi |
7b4a847f | 12357 | |
5c6fa7d2 | 12358 | |
a0b9e27f | 12359 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
521196a2 | 12360 | echo "configure:12361: checking if w32api has good enough MSIE support" >&5 |
a0b9e27f MB |
12361 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
12362 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 12363 | else |
a0b9e27f MB |
12364 | |
12365 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 12366 | #line 12367 "configure" |
f79bd02d | 12367 | #include "confdefs.h" |
21d1c967 | 12368 | #include <w32api.h> |
a0b9e27f | 12369 | int main() { |
f79bd02d | 12370 | |
21d1c967 GD |
12371 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
12372 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
12373 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
12374 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
12375 | ||
12376 | #if !wxCHECK_W32API_VERSION(1,1) | |
12377 | #error You need w32api 1.1 or newer | |
12378 | #endif | |
a0b9e27f MB |
12379 | |
12380 | ; return 0; } | |
12381 | EOF | |
521196a2 | 12382 | if { (eval echo configure:12383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
12383 | rm -rf conftest* |
12384 | ||
21d1c967 | 12385 | wx_cv_w32api_win32_ie=yes |
a0b9e27f | 12386 | |
f79bd02d | 12387 | else |
a0b9e27f MB |
12388 | echo "configure: failed program was:" >&5 |
12389 | cat conftest.$ac_ext >&5 | |
12390 | rm -rf conftest* | |
12391 | ||
21d1c967 | 12392 | wx_cv_w32api_win32_ie=no |
a0b9e27f | 12393 | |
5c6fa7d2 | 12394 | fi |
a0b9e27f MB |
12395 | rm -f conftest* |
12396 | ||
247f5006 | 12397 | fi |
a0b9e27f MB |
12398 | |
12399 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 | |
21d1c967 GD |
12400 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then |
12401 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
12402 | fi | |
f79bd02d | 12403 | |
21d1c967 GD |
12404 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
12405 | ||
12406 | case "${host}" in | |
12407 | *-*-cygwin* ) | |
12408 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
12409 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 12410 | esac |
f79bd02d | 12411 | |
21d1c967 GD |
12412 | if test "$wxUSE_ODBC" = "yes" ; then |
12413 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
12414 | fi | |
f79bd02d | 12415 | |
21d1c967 GD |
12416 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
12417 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
12418 | |
12419 | WIN32INSTALL=win32install | |
f79bd02d | 12420 | fi |
f79bd02d | 12421 | |
b2fee376 | 12422 | if test "$USE_DARWIN" = 1; then |
50bcbd3d | 12423 | if test "$wxUSE_PRECOMP" = "yes"; then |
b2fee376 GD |
12424 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
12425 | else | |
12426 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
12427 | fi | |
12428 | fi | |
12429 | ||
21d1c967 GD |
12430 | if test "$wxUSE_GUI" = "yes"; then |
12431 | USE_GUI=1 | |
f79bd02d | 12432 | |
21d1c967 | 12433 | GUI_TK_LIBRARY= |
f79bd02d | 12434 | |
21d1c967 GD |
12435 | WXGTK12= |
12436 | WXGTK127= | |
12437 | WXGTK20= | |
f79bd02d | 12438 | |
21d1c967 GD |
12439 | if test "$wxUSE_MSW" = 1 ; then |
12440 | TOOLKIT=MSW | |
12441 | GUIDIST=MSW_DIST | |
f79bd02d | 12442 | |
89e6bf6d | 12443 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" |
f79bd02d JS |
12444 | fi |
12445 | ||
21d1c967 | 12446 | if test "$wxUSE_GTK" = 1; then |
a0b9e27f | 12447 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
521196a2 | 12448 | echo "configure:12449: checking for GTK+ version" >&5 |
21d1c967 GD |
12449 | |
12450 | gtk_version_cached=1 | |
a0b9e27f MB |
12451 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then |
12452 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f79bd02d | 12453 | else |
a0b9e27f | 12454 | |
21d1c967 | 12455 | gtk_version_cached=0 |
a0b9e27f | 12456 | echo "$ac_t""" 1>&6 |
f79bd02d | 12457 | |
21d1c967 GD |
12458 | GTK_MODULES= |
12459 | if test "$wxUSE_THREADS" = "yes"; then | |
12460 | GTK_MODULES=gthread | |
12461 | fi | |
f79bd02d | 12462 | |
2b5f62a0 | 12463 | wx_cv_lib_gtk= |
21d1c967 GD |
12464 | if test "x$wxUSE_GTK2" = "xyes"; then |
12465 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12466 | if test "${enable_gtktest+set}" = set; then | |
12467 | enableval="$enable_gtktest" | |
a0b9e27f | 12468 | : |
f79bd02d | 12469 | else |
21d1c967 | 12470 | enable_gtktest=yes |
a0b9e27f MB |
12471 | fi |
12472 | ||
f79bd02d | 12473 | |
21d1c967 GD |
12474 | pkg_config_args=gtk+-2.0 |
12475 | for module in . $GTK_MODULES | |
12476 | do | |
12477 | case "$module" in | |
a0b9e27f | 12478 | gthread) |
21d1c967 GD |
12479 | pkg_config_args="$pkg_config_args gthread-2.0" |
12480 | ;; | |
12481 | esac | |
12482 | done | |
12483 | ||
12484 | no_gtk="" | |
f79bd02d | 12485 | |
21d1c967 GD |
12486 | # Extract the first word of "pkg-config", so it can be a program name with args. |
12487 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 12488 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
521196a2 | 12489 | echo "configure:12490: checking for $ac_word" >&5 |
a0b9e27f MB |
12490 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
12491 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12492 | else |
a0b9e27f MB |
12493 | case "$PKG_CONFIG" in |
12494 | /*) | |
21d1c967 GD |
12495 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12496 | ;; | |
a0b9e27f MB |
12497 | ?:/*) |
12498 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
12499 | ;; | |
21d1c967 | 12500 | *) |
a0b9e27f MB |
12501 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12502 | ac_dummy="$PATH" | |
12503 | for ac_dir in $ac_dummy; do | |
12504 | test -z "$ac_dir" && ac_dir=. | |
12505 | if test -f $ac_dir/$ac_word; then | |
12506 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
12507 | break | |
12508 | fi | |
12509 | done | |
12510 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12511 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12512 | ;; | |
12513 | esac | |
f79bd02d | 12514 | fi |
a0b9e27f | 12515 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
21d1c967 | 12516 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 12517 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f79bd02d | 12518 | else |
a0b9e27f | 12519 | echo "$ac_t""no" 1>&6 |
f79bd02d JS |
12520 | fi |
12521 | ||
8284b0c5 | 12522 | |
21d1c967 GD |
12523 | if test x$PKG_CONFIG != xno ; then |
12524 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
12525 | : | |
12526 | else | |
12527 | echo *** pkg-config too old; version 0.7 or better required. | |
12528 | no_gtk=yes | |
12529 | PKG_CONFIG=no | |
12530 | fi | |
12531 | else | |
12532 | no_gtk=yes | |
12533 | fi | |
f79bd02d | 12534 | |
21d1c967 | 12535 | min_gtk_version=2.0.0 |
a0b9e27f | 12536 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 |
521196a2 | 12537 | echo "configure:12538: checking for GTK+ - version >= $min_gtk_version" >&5 |
f79bd02d | 12538 | |
21d1c967 GD |
12539 | if test x$PKG_CONFIG != xno ; then |
12540 | ## don't try to run the test against uninstalled libtool libs | |
12541 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
12542 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
12543 | enable_gtktest=no | |
12544 | fi | |
f79bd02d | 12545 | |
21d1c967 GD |
12546 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
12547 | : | |
12548 | else | |
12549 | no_gtk=yes | |
12550 | fi | |
12551 | fi | |
f79bd02d | 12552 | |
21d1c967 GD |
12553 | if test x"$no_gtk" = x ; then |
12554 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
12555 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
12556 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12557 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12558 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12559 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12560 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12561 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12562 | if test "x$enable_gtktest" = "xyes" ; then | |
12563 | ac_save_CFLAGS="$CFLAGS" | |
12564 | ac_save_LIBS="$LIBS" | |
12565 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12566 | LIBS="$GTK_LIBS $LIBS" | |
12567 | rm -f conf.gtktest | |
12568 | if test "$cross_compiling" = yes; then | |
12569 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12570 | else |
a0b9e27f | 12571 | cat > conftest.$ac_ext <<EOF |
521196a2 | 12572 | #line 12573 "configure" |
f79bd02d | 12573 | #include "confdefs.h" |
f79bd02d | 12574 | |
21d1c967 GD |
12575 | #include <gtk/gtk.h> |
12576 | #include <stdio.h> | |
12577 | #include <stdlib.h> | |
f79bd02d | 12578 | |
a0b9e27f | 12579 | int |
21d1c967 GD |
12580 | main () |
12581 | { | |
12582 | int major, minor, micro; | |
12583 | char *tmp_version; | |
f79bd02d | 12584 | |
21d1c967 | 12585 | system ("touch conf.gtktest"); |
f79bd02d | 12586 | |
21d1c967 GD |
12587 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
12588 | tmp_version = g_strdup("$min_gtk_version"); | |
12589 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12590 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12591 | exit(1); | |
12592 | } | |
f79bd02d | 12593 | |
21d1c967 GD |
12594 | if ((gtk_major_version != $gtk_config_major_version) || |
12595 | (gtk_minor_version != $gtk_config_minor_version) || | |
12596 | (gtk_micro_version != $gtk_config_micro_version)) | |
12597 | { | |
a0b9e27f | 12598 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12599 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12600 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12601 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
12602 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12603 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12604 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12605 | printf("*** required on your system.\n"); | |
12606 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
12607 | printf("*** to point to the correct configuration files\n"); | |
a0b9e27f | 12608 | } |
21d1c967 GD |
12609 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
12610 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12611 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12612 | { | |
12613 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12614 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12615 | printf("*** library (version %d.%d.%d)\n", | |
12616 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12617 | } | |
12618 | else | |
12619 | { | |
12620 | if ((gtk_major_version > major) || | |
12621 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12622 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12623 | { | |
12624 | return 0; | |
12625 | } | |
12626 | else | |
12627 | { | |
12628 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12629 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12630 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12631 | major, minor, micro); | |
12632 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12633 | printf("***\n"); | |
12634 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12635 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
12636 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12637 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
12638 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
12639 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12640 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12641 | } | |
12642 | } | |
12643 | return 1; | |
12644 | } | |
f79bd02d | 12645 | |
a0b9e27f | 12646 | EOF |
521196a2 | 12647 | if { (eval echo configure:12648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12648 | then |
21d1c967 | 12649 | : |
f79bd02d | 12650 | else |
a0b9e27f MB |
12651 | echo "configure: failed program was:" >&5 |
12652 | cat conftest.$ac_ext >&5 | |
12653 | rm -fr conftest* | |
12654 | no_gtk=yes | |
f79bd02d | 12655 | fi |
a0b9e27f | 12656 | rm -fr conftest* |
f79bd02d | 12657 | fi |
a0b9e27f | 12658 | |
21d1c967 GD |
12659 | CFLAGS="$ac_save_CFLAGS" |
12660 | LIBS="$ac_save_LIBS" | |
12661 | fi | |
12662 | fi | |
12663 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12664 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
12665 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 12666 | else |
a0b9e27f | 12667 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12668 | if test "$PKG_CONFIG" = "no" ; then |
12669 | echo "*** A new enough version of pkg-config was not found." | |
12670 | echo "*** See http://pkgconfig.sourceforge.net" | |
12671 | else | |
12672 | if test -f conf.gtktest ; then | |
12673 | : | |
12674 | else | |
12675 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
12676 | ac_save_CFLAGS="$CFLAGS" |
12677 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
12678 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
12679 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12680 | cat > conftest.$ac_ext <<EOF |
521196a2 | 12681 | #line 12682 "configure" |
f79bd02d | 12682 | #include "confdefs.h" |
21d1c967 GD |
12683 | |
12684 | #include <gtk/gtk.h> | |
12685 | #include <stdio.h> | |
f79bd02d | 12686 | |
a0b9e27f MB |
12687 | int main() { |
12688 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12689 | ; return 0; } | |
12690 | EOF | |
521196a2 | 12691 | if { (eval echo configure:12692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12692 | rm -rf conftest* |
21d1c967 GD |
12693 | echo "*** The test program compiled, but did not run. This usually means" |
12694 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
12695 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
12696 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12697 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12698 | echo "*** is required on your system" | |
12699 | echo "***" | |
12700 | echo "*** If you have an old version installed, it is best to remove it, although" | |
a0b9e27f | 12701 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 12702 | else |
a0b9e27f MB |
12703 | echo "configure: failed program was:" >&5 |
12704 | cat conftest.$ac_ext >&5 | |
12705 | rm -rf conftest* | |
12706 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 12707 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 12708 | fi |
a0b9e27f | 12709 | rm -f conftest* |
21d1c967 GD |
12710 | CFLAGS="$ac_save_CFLAGS" |
12711 | LIBS="$ac_save_LIBS" | |
12712 | fi | |
12713 | fi | |
12714 | GTK_CFLAGS="" | |
12715 | GTK_LIBS="" | |
12716 | : | |
12717 | fi | |
a0b9e27f MB |
12718 | |
12719 | ||
21d1c967 | 12720 | rm -f conf.gtktest |
f79bd02d | 12721 | |
2b5f62a0 | 12722 | else |
a0b9e27f | 12723 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12724 | if test "${with_gtk_prefix+set}" = set; then |
12725 | withval="$with_gtk_prefix" | |
12726 | gtk_config_prefix="$withval" | |
12727 | else | |
12728 | gtk_config_prefix="" | |
a0b9e27f | 12729 | fi |
f79bd02d | 12730 | |
21d1c967 GD |
12731 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12732 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12733 | withval="$with_gtk_exec_prefix" | |
12734 | gtk_config_exec_prefix="$withval" | |
12735 | else | |
12736 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12737 | fi |
12738 | ||
21d1c967 GD |
12739 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12740 | if test "${enable_gtktest+set}" = set; then | |
12741 | enableval="$enable_gtktest" | |
a0b9e27f | 12742 | : |
21d1c967 GD |
12743 | else |
12744 | enable_gtktest=yes | |
a0b9e27f MB |
12745 | fi |
12746 | ||
21d1c967 GD |
12747 | |
12748 | for module in . $GTK_MODULES | |
12749 | do | |
12750 | case "$module" in | |
a0b9e27f | 12751 | gthread) |
21d1c967 GD |
12752 | gtk_config_args="$gtk_config_args gthread" |
12753 | ;; | |
12754 | esac | |
12755 | done | |
12756 | ||
12757 | if test x$gtk_config_exec_prefix != x ; then | |
12758 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12759 | if test x${GTK_CONFIG+set} != xset ; then | |
12760 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12761 | fi | |
12762 | fi | |
12763 | if test x$gtk_config_prefix != x ; then | |
12764 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12765 | if test x${GTK_CONFIG+set} != xset ; then | |
12766 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12767 | fi | |
12768 | fi | |
12769 | ||
12770 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12771 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12772 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
521196a2 | 12773 | echo "configure:12774: checking for $ac_word" >&5 |
a0b9e27f MB |
12774 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12775 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12776 | else |
a0b9e27f MB |
12777 | case "$GTK_CONFIG" in |
12778 | /*) | |
21d1c967 GD |
12779 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12780 | ;; | |
a0b9e27f MB |
12781 | ?:/*) |
12782 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12783 | ;; | |
21d1c967 | 12784 | *) |
a0b9e27f MB |
12785 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12786 | ac_dummy="$PATH" | |
12787 | for ac_dir in $ac_dummy; do | |
12788 | test -z "$ac_dir" && ac_dir=. | |
12789 | if test -f $ac_dir/$ac_word; then | |
12790 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12791 | break | |
12792 | fi | |
12793 | done | |
12794 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12795 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12796 | ;; | |
12797 | esac | |
12798 | fi | |
a0b9e27f | 12799 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12800 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12801 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12802 | else |
a0b9e27f | 12803 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12804 | fi |
12805 | ||
12806 | min_gtk_version=1.2.7 | |
a0b9e27f | 12807 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
521196a2 | 12808 | echo "configure:12809: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12809 | no_gtk="" |
12810 | if test "$GTK_CONFIG" = "no" ; then | |
12811 | no_gtk=yes | |
12812 | else | |
12813 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12814 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12815 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12816 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12817 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12818 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12819 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12820 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12821 | if test "x$enable_gtktest" = "xyes" ; then | |
12822 | ac_save_CFLAGS="$CFLAGS" | |
12823 | ac_save_LIBS="$LIBS" | |
12824 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12825 | LIBS="$GTK_LIBS $LIBS" | |
12826 | rm -f conf.gtktest | |
12827 | if test "$cross_compiling" = yes; then | |
12828 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12829 | else |
a0b9e27f | 12830 | cat > conftest.$ac_ext <<EOF |
521196a2 | 12831 | #line 12832 "configure" |
f79bd02d JS |
12832 | #include "confdefs.h" |
12833 | ||
21d1c967 GD |
12834 | #include <gtk/gtk.h> |
12835 | #include <stdio.h> | |
12836 | #include <stdlib.h> | |
f79bd02d | 12837 | |
a0b9e27f | 12838 | int |
21d1c967 GD |
12839 | main () |
12840 | { | |
12841 | int major, minor, micro; | |
12842 | char *tmp_version; | |
12843 | ||
12844 | system ("touch conf.gtktest"); | |
12845 | ||
12846 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12847 | tmp_version = g_strdup("$min_gtk_version"); | |
12848 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12849 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12850 | exit(1); | |
12851 | } | |
90dd450c | 12852 | |
21d1c967 GD |
12853 | if ((gtk_major_version != $gtk_config_major_version) || |
12854 | (gtk_minor_version != $gtk_config_minor_version) || | |
12855 | (gtk_micro_version != $gtk_config_micro_version)) | |
12856 | { | |
a0b9e27f | 12857 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12858 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12859 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12860 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12861 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12862 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12863 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12864 | printf("*** required on your system.\n"); | |
12865 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12866 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12867 | printf("*** before re-running configure\n"); | |
a0b9e27f | 12868 | } |
21d1c967 GD |
12869 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12870 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12871 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12872 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12873 | { | |
12874 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12875 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12876 | printf("*** library (version %d.%d.%d)\n", | |
12877 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12878 | } | |
12879 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12880 | else | |
12881 | { | |
12882 | if ((gtk_major_version > major) || | |
12883 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12884 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12885 | { | |
12886 | return 0; | |
12887 | } | |
12888 | else | |
12889 | { | |
12890 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12891 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12892 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12893 | major, minor, micro); | |
12894 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12895 | printf("***\n"); | |
12896 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12897 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12898 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12899 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12900 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12901 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12902 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12903 | } | |
12904 | } | |
12905 | return 1; | |
12906 | } | |
12907 | ||
a0b9e27f | 12908 | EOF |
521196a2 | 12909 | if { (eval echo configure:12910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12910 | then |
21d1c967 GD |
12911 | : |
12912 | else | |
a0b9e27f MB |
12913 | echo "configure: failed program was:" >&5 |
12914 | cat conftest.$ac_ext >&5 | |
12915 | rm -fr conftest* | |
12916 | no_gtk=yes | |
21d1c967 | 12917 | fi |
a0b9e27f | 12918 | rm -fr conftest* |
21d1c967 | 12919 | fi |
a0b9e27f | 12920 | |
21d1c967 GD |
12921 | CFLAGS="$ac_save_CFLAGS" |
12922 | LIBS="$ac_save_LIBS" | |
12923 | fi | |
12924 | fi | |
12925 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12926 | echo "$ac_t""yes" 1>&6 |
12927 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 12928 | else |
a0b9e27f | 12929 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12930 | if test "$GTK_CONFIG" = "no" ; then |
12931 | echo "*** The gtk-config script installed by GTK could not be found" | |
12932 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12933 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12934 | echo "*** full path to gtk-config." | |
12935 | else | |
12936 | if test -f conf.gtktest ; then | |
12937 | : | |
12938 | else | |
12939 | echo "*** Could not run GTK test program, checking why..." | |
12940 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12941 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12942 | cat > conftest.$ac_ext <<EOF |
521196a2 | 12943 | #line 12944 "configure" |
21d1c967 GD |
12944 | #include "confdefs.h" |
12945 | ||
12946 | #include <gtk/gtk.h> | |
12947 | #include <stdio.h> | |
12948 | ||
a0b9e27f MB |
12949 | int main() { |
12950 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12951 | ; return 0; } | |
12952 | EOF | |
521196a2 | 12953 | if { (eval echo configure:12954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12954 | rm -rf conftest* |
21d1c967 GD |
12955 | echo "*** The test program compiled, but did not run. This usually means" |
12956 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12957 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12958 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12959 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12960 | echo "*** is required on your system" | |
12961 | echo "***" | |
12962 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12963 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12964 | echo "***" | |
12965 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12966 | echo "*** came with the system with the command" | |
12967 | echo "***" | |
a0b9e27f | 12968 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 12969 | else |
a0b9e27f MB |
12970 | echo "configure: failed program was:" >&5 |
12971 | cat conftest.$ac_ext >&5 | |
12972 | rm -rf conftest* | |
12973 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
12974 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
12975 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 12976 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 12977 | fi |
a0b9e27f | 12978 | rm -f conftest* |
21d1c967 GD |
12979 | CFLAGS="$ac_save_CFLAGS" |
12980 | LIBS="$ac_save_LIBS" | |
12981 | fi | |
12982 | fi | |
12983 | GTK_CFLAGS="" | |
12984 | GTK_LIBS="" | |
12985 | : | |
12986 | fi | |
a0b9e27f MB |
12987 | |
12988 | ||
21d1c967 GD |
12989 | rm -f conf.gtktest |
12990 | ||
21d1c967 | 12991 | |
2b5f62a0 VZ |
12992 | if test -z "$wx_cv_lib_gtk"; then |
12993 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
12994 | if test "${with_gtk_prefix+set}" = set; then |
12995 | withval="$with_gtk_prefix" | |
12996 | gtk_config_prefix="$withval" | |
12997 | else | |
12998 | gtk_config_prefix="" | |
a0b9e27f | 12999 | fi |
f79bd02d | 13000 | |
21d1c967 GD |
13001 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
13002 | if test "${with_gtk_exec_prefix+set}" = set; then | |
13003 | withval="$with_gtk_exec_prefix" | |
13004 | gtk_config_exec_prefix="$withval" | |
13005 | else | |
13006 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
13007 | fi |
13008 | ||
21d1c967 GD |
13009 | # Check whether --enable-gtktest or --disable-gtktest was given. |
13010 | if test "${enable_gtktest+set}" = set; then | |
13011 | enableval="$enable_gtktest" | |
a0b9e27f | 13012 | : |
90dd450c | 13013 | else |
21d1c967 | 13014 | enable_gtktest=yes |
a0b9e27f MB |
13015 | fi |
13016 | ||
21d1c967 GD |
13017 | |
13018 | for module in . $GTK_MODULES | |
13019 | do | |
13020 | case "$module" in | |
a0b9e27f | 13021 | gthread) |
21d1c967 GD |
13022 | gtk_config_args="$gtk_config_args gthread" |
13023 | ;; | |
13024 | esac | |
13025 | done | |
13026 | ||
13027 | if test x$gtk_config_exec_prefix != x ; then | |
13028 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
13029 | if test x${GTK_CONFIG+set} != xset ; then | |
13030 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
13031 | fi | |
13032 | fi | |
13033 | if test x$gtk_config_prefix != x ; then | |
13034 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
13035 | if test x${GTK_CONFIG+set} != xset ; then | |
13036 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
13037 | fi | |
13038 | fi | |
13039 | ||
13040 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
13041 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 13042 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
521196a2 | 13043 | echo "configure:13044: checking for $ac_word" >&5 |
a0b9e27f MB |
13044 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
13045 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13046 | else |
a0b9e27f MB |
13047 | case "$GTK_CONFIG" in |
13048 | /*) | |
21d1c967 GD |
13049 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
13050 | ;; | |
a0b9e27f MB |
13051 | ?:/*) |
13052 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
13053 | ;; | |
21d1c967 | 13054 | *) |
a0b9e27f MB |
13055 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
13056 | ac_dummy="$PATH" | |
13057 | for ac_dir in $ac_dummy; do | |
13058 | test -z "$ac_dir" && ac_dir=. | |
13059 | if test -f $ac_dir/$ac_word; then | |
13060 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
13061 | break | |
13062 | fi | |
13063 | done | |
13064 | IFS="$ac_save_ifs" | |
21d1c967 GD |
13065 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
13066 | ;; | |
13067 | esac | |
13068 | fi | |
a0b9e27f | 13069 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 13070 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 13071 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 13072 | else |
a0b9e27f | 13073 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
13074 | fi |
13075 | ||
13076 | min_gtk_version=1.2.3 | |
a0b9e27f | 13077 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
521196a2 | 13078 | echo "configure:13079: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
13079 | no_gtk="" |
13080 | if test "$GTK_CONFIG" = "no" ; then | |
13081 | no_gtk=yes | |
13082 | else | |
13083 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
13084 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
13085 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
13086 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
13087 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
13088 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
13089 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
13090 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
13091 | if test "x$enable_gtktest" = "xyes" ; then | |
13092 | ac_save_CFLAGS="$CFLAGS" | |
13093 | ac_save_LIBS="$LIBS" | |
13094 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
13095 | LIBS="$GTK_LIBS $LIBS" | |
13096 | rm -f conf.gtktest | |
13097 | if test "$cross_compiling" = yes; then | |
13098 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
13099 | else | |
a0b9e27f | 13100 | cat > conftest.$ac_ext <<EOF |
521196a2 | 13101 | #line 13102 "configure" |
f79bd02d | 13102 | #include "confdefs.h" |
21d1c967 GD |
13103 | |
13104 | #include <gtk/gtk.h> | |
13105 | #include <stdio.h> | |
13106 | #include <stdlib.h> | |
13107 | ||
a0b9e27f | 13108 | int |
21d1c967 GD |
13109 | main () |
13110 | { | |
13111 | int major, minor, micro; | |
13112 | char *tmp_version; | |
13113 | ||
13114 | system ("touch conf.gtktest"); | |
13115 | ||
13116 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
13117 | tmp_version = g_strdup("$min_gtk_version"); | |
13118 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
13119 | printf("%s, bad version string\n", "$min_gtk_version"); | |
13120 | exit(1); | |
13121 | } | |
13122 | ||
13123 | if ((gtk_major_version != $gtk_config_major_version) || | |
13124 | (gtk_minor_version != $gtk_config_minor_version) || | |
13125 | (gtk_micro_version != $gtk_config_micro_version)) | |
13126 | { | |
a0b9e27f | 13127 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
13128 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
13129 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13130 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
13131 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
13132 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
13133 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
13134 | printf("*** required on your system.\n"); | |
13135 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
13136 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
13137 | printf("*** before re-running configure\n"); | |
a0b9e27f | 13138 | } |
21d1c967 GD |
13139 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
13140 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
13141 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
13142 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
13143 | { | |
13144 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
13145 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
13146 | printf("*** library (version %d.%d.%d)\n", | |
13147 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13148 | } | |
13149 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
13150 | else | |
13151 | { | |
13152 | if ((gtk_major_version > major) || | |
13153 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
13154 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
13155 | { | |
13156 | return 0; | |
13157 | } | |
13158 | else | |
13159 | { | |
13160 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
13161 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13162 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
13163 | major, minor, micro); | |
13164 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
13165 | printf("***\n"); | |
13166 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
13167 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
13168 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
13169 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
13170 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
13171 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
13172 | printf("*** so that the correct libraries are found at run-time))\n"); | |
13173 | } | |
13174 | } | |
13175 | return 1; | |
13176 | } | |
13177 | ||
a0b9e27f | 13178 | EOF |
521196a2 | 13179 | if { (eval echo configure:13180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 13180 | then |
21d1c967 GD |
13181 | : |
13182 | else | |
a0b9e27f MB |
13183 | echo "configure: failed program was:" >&5 |
13184 | cat conftest.$ac_ext >&5 | |
13185 | rm -fr conftest* | |
13186 | no_gtk=yes | |
21d1c967 | 13187 | fi |
a0b9e27f | 13188 | rm -fr conftest* |
21d1c967 | 13189 | fi |
a0b9e27f | 13190 | |
21d1c967 GD |
13191 | CFLAGS="$ac_save_CFLAGS" |
13192 | LIBS="$ac_save_LIBS" | |
13193 | fi | |
13194 | fi | |
13195 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
13196 | echo "$ac_t""yes" 1>&6 |
13197 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 13198 | else |
a0b9e27f | 13199 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
13200 | if test "$GTK_CONFIG" = "no" ; then |
13201 | echo "*** The gtk-config script installed by GTK could not be found" | |
13202 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
13203 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
13204 | echo "*** full path to gtk-config." | |
13205 | else | |
13206 | if test -f conf.gtktest ; then | |
13207 | : | |
13208 | else | |
13209 | echo "*** Could not run GTK test program, checking why..." | |
13210 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
13211 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 13212 | cat > conftest.$ac_ext <<EOF |
521196a2 | 13213 | #line 13214 "configure" |
21d1c967 GD |
13214 | #include "confdefs.h" |
13215 | ||
13216 | #include <gtk/gtk.h> | |
13217 | #include <stdio.h> | |
f79bd02d | 13218 | |
a0b9e27f MB |
13219 | int main() { |
13220 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
13221 | ; return 0; } | |
13222 | EOF | |
521196a2 | 13223 | if { (eval echo configure:13224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13224 | rm -rf conftest* |
21d1c967 GD |
13225 | echo "*** The test program compiled, but did not run. This usually means" |
13226 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
13227 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
13228 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
13229 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
13230 | echo "*** is required on your system" | |
13231 | echo "***" | |
13232 | echo "*** If you have an old version installed, it is best to remove it, although" | |
13233 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
13234 | echo "***" | |
13235 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
13236 | echo "*** came with the system with the command" | |
13237 | echo "***" | |
a0b9e27f | 13238 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 13239 | else |
a0b9e27f MB |
13240 | echo "configure: failed program was:" >&5 |
13241 | cat conftest.$ac_ext >&5 | |
13242 | rm -rf conftest* | |
13243 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
13244 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
13245 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 13246 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 13247 | fi |
a0b9e27f | 13248 | rm -f conftest* |
21d1c967 GD |
13249 | CFLAGS="$ac_save_CFLAGS" |
13250 | LIBS="$ac_save_LIBS" | |
13251 | fi | |
13252 | fi | |
13253 | GTK_CFLAGS="" | |
13254 | GTK_LIBS="" | |
13255 | : | |
13256 | fi | |
a0b9e27f MB |
13257 | |
13258 | ||
21d1c967 | 13259 | rm -f conf.gtktest |
f79bd02d | 13260 | |
2b5f62a0 | 13261 | fi |
21d1c967 GD |
13262 | fi |
13263 | ||
13264 | if test -z "$wx_cv_lib_gtk"; then | |
13265 | wx_cv_lib_gtk=none | |
13266 | else | |
13267 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
13268 | wx_cv_libs_gtk=$GTK_LIBS | |
13269 | fi | |
a0b9e27f MB |
13270 | |
13271 | ||
5c6fa7d2 | 13272 | fi |
52127426 | 13273 | |
8284b0c5 | 13274 | |
21d1c967 | 13275 | if test "$gtk_version_cached" = 1; then |
a0b9e27f | 13276 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 |
21d1c967 GD |
13277 | fi |
13278 | ||
13279 | case "$wx_cv_lib_gtk" in | |
13280 | 2.0) WXGTK20=1 | |
2b5f62a0 | 13281 | TOOLKIT_VERSION=2 |
21d1c967 GD |
13282 | ;; |
13283 | 1.2.7) WXGTK127=1 | |
13284 | WXGTK12=1 | |
13285 | ;; | |
13286 | 1.2.3) WXGTK12=1 | |
13287 | ;; | |
a0b9e27f | 13288 | *) { echo "configure: error: |
247f5006 VZ |
13289 | Please check that gtk-config is in path, the directory |
13290 | where GTK+ libraries are installed (returned by | |
13291 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
13292 | equivalent variable and GTK+ is version 1.2.3 or above. | |
a0b9e27f | 13293 | " 1>&2; exit 1; } |
21d1c967 GD |
13294 | ;; |
13295 | esac | |
13296 | ||
b13cd66e VZ |
13297 | if test "$WXGTK20" = 1; then |
13298 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 13299 | |
f09359cf VS |
13300 | succeeded=no |
13301 | ||
13302 | if test -z "$PKG_CONFIG"; then | |
13303 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
13304 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 13305 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
521196a2 | 13306 | echo "configure:13307: checking for $ac_word" >&5 |
a0b9e27f MB |
13307 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
13308 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf | 13309 | else |
a0b9e27f MB |
13310 | case "$PKG_CONFIG" in |
13311 | /*) | |
f09359cf VS |
13312 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
13313 | ;; | |
a0b9e27f MB |
13314 | ?:/*) |
13315 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
13316 | ;; | |
f09359cf | 13317 | *) |
a0b9e27f MB |
13318 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
13319 | ac_dummy="$PATH" | |
13320 | for ac_dir in $ac_dummy; do | |
13321 | test -z "$ac_dir" && ac_dir=. | |
13322 | if test -f $ac_dir/$ac_word; then | |
13323 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
13324 | break | |
13325 | fi | |
13326 | done | |
13327 | IFS="$ac_save_ifs" | |
f09359cf VS |
13328 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
13329 | ;; | |
13330 | esac | |
13331 | fi | |
a0b9e27f | 13332 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
f09359cf | 13333 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 13334 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f09359cf | 13335 | else |
a0b9e27f | 13336 | echo "$ac_t""no" 1>&6 |
f09359cf VS |
13337 | fi |
13338 | ||
13339 | fi | |
13340 | ||
13341 | if test "$PKG_CONFIG" = "no" ; then | |
13342 | echo "*** The pkg-config script could not be found. Make sure it is" | |
13343 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
13344 | echo "*** to the full path to pkg-config." | |
13345 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
13346 | else | |
13347 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
13348 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
a0b9e27f | 13349 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 |
521196a2 | 13350 | echo "configure:13351: checking for pangoft2" >&5 |
f09359cf VS |
13351 | |
13352 | if $PKG_CONFIG --exists "pangoft2" ; then | |
a0b9e27f | 13353 | echo "$ac_t""yes" 1>&6 |
f09359cf VS |
13354 | succeeded=yes |
13355 | ||
a0b9e27f | 13356 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 |
521196a2 | 13357 | echo "configure:13358: checking PANGOFT2_CFLAGS" >&5 |
f09359cf | 13358 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
a0b9e27f | 13359 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 |
f09359cf | 13360 | |
a0b9e27f | 13361 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 |
521196a2 | 13362 | echo "configure:13363: checking PANGOFT2_LIBS" >&5 |
f09359cf | 13363 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
a0b9e27f | 13364 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 |
f09359cf VS |
13365 | else |
13366 | PANGOFT2_CFLAGS="" | |
13367 | PANGOFT2_LIBS="" | |
a0b9e27f | 13368 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
13369 | ## do set a variable so people can do so. |
13370 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
a0b9e27f | 13371 | |
f09359cf VS |
13372 | fi |
13373 | ||
a0b9e27f MB |
13374 | |
13375 | ||
f09359cf VS |
13376 | else |
13377 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
13378 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
13379 | fi | |
13380 | fi | |
13381 | ||
13382 | if test $succeeded = yes; then | |
a0b9e27f | 13383 | |
b13cd66e VZ |
13384 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
13385 | LIBS="$LIBS $PANGOFT2_LIBS" | |
a0b9e27f | 13386 | |
f09359cf | 13387 | else |
a0b9e27f MB |
13388 | |
13389 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
b13cd66e | 13390 | wxUSE_PRINTING_ARCHITECTURE="no" |
a0b9e27f MB |
13391 | |
13392 | ||
f09359cf VS |
13393 | fi |
13394 | ||
b13cd66e | 13395 | fi |
2b5f62a0 VZ |
13396 | else |
13397 | if test "$wxUSE_UNICODE" = "yes"; then | |
13398 | echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2 | |
13399 | wxUSE_UNICODE=no | |
13400 | fi | |
13401 | fi | |
13402 | ||
13403 | if test "$USE_DARWIN" != 1; then | |
13404 | for ac_func in poll | |
13405 | do | |
13406 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
521196a2 | 13407 | echo "configure:13408: checking for $ac_func" >&5 |
2b5f62a0 VZ |
13408 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13409 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13410 | else | |
13411 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 13412 | #line 13413 "configure" |
2b5f62a0 VZ |
13413 | #include "confdefs.h" |
13414 | /* System header to define __stub macros and hopefully few prototypes, | |
13415 | which can conflict with char $ac_func(); below. */ | |
13416 | #include <assert.h> | |
13417 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13418 | /* We use char because int might match the return type of a gcc2 | |
13419 | builtin and then its argument prototype would still apply. */ | |
13420 | char $ac_func(); | |
13421 | ||
13422 | int main() { | |
13423 | ||
13424 | /* The GNU C library defines this for functions which it implements | |
13425 | to always fail with ENOSYS. Some functions are actually named | |
13426 | something starting with __ and the normal name is an alias. */ | |
13427 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13428 | choke me | |
13429 | #else | |
13430 | $ac_func(); | |
13431 | #endif | |
13432 | ||
13433 | ; return 0; } | |
13434 | EOF | |
521196a2 | 13435 | if { (eval echo configure:13436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
13436 | rm -rf conftest* |
13437 | eval "ac_cv_func_$ac_func=yes" | |
13438 | else | |
13439 | echo "configure: failed program was:" >&5 | |
13440 | cat conftest.$ac_ext >&5 | |
13441 | rm -rf conftest* | |
13442 | eval "ac_cv_func_$ac_func=no" | |
13443 | fi | |
13444 | rm -f conftest* | |
13445 | fi | |
13446 | ||
13447 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13448 | echo "$ac_t""yes" 1>&6 | |
13449 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13450 | cat >> confdefs.h <<EOF | |
13451 | #define $ac_tr_func 1 | |
13452 | EOF | |
13453 | ||
13454 | else | |
13455 | echo "$ac_t""no" 1>&6 | |
13456 | fi | |
13457 | done | |
13458 | ||
f09359cf VS |
13459 | fi |
13460 | ||
21d1c967 GD |
13461 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
13462 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
13463 | ||
13464 | AFMINSTALL=afminstall | |
13465 | TOOLKIT=GTK | |
13466 | GUIDIST=GTK_DIST | |
13467 | ||
a0b9e27f | 13468 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
521196a2 | 13469 | echo "configure:13470: checking for gdk_im_open in -lgdk" >&5 |
a0b9e27f MB |
13470 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
13471 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13472 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13473 | else |
a0b9e27f | 13474 | ac_save_LIBS="$LIBS" |
21d1c967 | 13475 | LIBS="-lgdk $LIBS" |
a0b9e27f | 13476 | cat > conftest.$ac_ext <<EOF |
521196a2 | 13477 | #line 13478 "configure" |
90dd450c | 13478 | #include "confdefs.h" |
5c6fa7d2 | 13479 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 13480 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13481 | builtin and then its argument prototype would still apply. */ |
13482 | char gdk_im_open(); | |
13483 | ||
13484 | int main() { | |
13485 | gdk_im_open() | |
13486 | ; return 0; } | |
13487 | EOF | |
521196a2 | 13488 | if { (eval echo configure:13489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13489 | rm -rf conftest* |
13490 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13491 | else | |
13492 | echo "configure: failed program was:" >&5 | |
13493 | cat conftest.$ac_ext >&5 | |
13494 | rm -rf conftest* | |
13495 | eval "ac_cv_lib_$ac_lib_var=no" | |
13496 | fi | |
13497 | rm -f conftest* | |
13498 | LIBS="$ac_save_LIBS" | |
13499 | ||
13500 | fi | |
13501 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13502 | echo "$ac_t""yes" 1>&6 | |
13503 | cat >> confdefs.h <<\EOF | |
21d1c967 | 13504 | #define HAVE_XIM 1 |
a0b9e27f | 13505 | EOF |
21d1c967 | 13506 | |
a0b9e27f MB |
13507 | else |
13508 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13509 | fi |
1e6feb95 | 13510 | |
21d1c967 | 13511 | fi |
1e6feb95 | 13512 | |
21d1c967 | 13513 | if test "$wxUSE_MGL" = 1; then |
63a76696 | 13514 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
521196a2 | 13515 | echo "configure:13516: checking for SciTech MGL library" >&5 |
21d1c967 | 13516 | if test "x$MGL_ROOT" = x ; then |
a0b9e27f MB |
13517 | echo "$ac_t""not found" 1>&6 |
13518 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
21d1c967 | 13519 | else |
a0b9e27f | 13520 | echo "$ac_t""$MGL_ROOT" 1>&6 |
21d1c967 GD |
13521 | fi |
13522 | ||
63a76696 | 13523 | echo $ac_n "checking for libmgl location""... $ac_c" 1>&6 |
521196a2 | 13524 | echo "configure:13525: checking for libmgl location" >&5 |
21d1c967 GD |
13525 | case "${host}" in |
13526 | *-*-linux* ) | |
63a76696 VS |
13527 | if test "x$wxUSE_SHARED" = xyes ; then |
13528 | mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc" | |
13529 | else | |
13530 | mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so" | |
13531 | fi | |
21d1c967 GD |
13532 | ;; |
13533 | *-pc-msdosdjgpp ) | |
63a76696 | 13534 | mgl_os_candidates="dos32/dj2" |
21d1c967 GD |
13535 | ;; |
13536 | *) | |
a0b9e27f | 13537 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } |
21d1c967 | 13538 | esac |
1e6feb95 | 13539 | |
21d1c967 | 13540 | mgl_lib_type="" |
63a76696 VS |
13541 | mgl_os="" |
13542 | ||
13543 | for mgl_os_i in $mgl_os_candidates ; do | |
13544 | if test "x$mgl_os" = x ; then | |
13545 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
13546 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
13547 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
13548 | mgl_lib_type=debug | |
13549 | mgl_os=$mgl_os_i | |
13550 | fi | |
13551 | fi | |
13552 | if test "x$mgl_lib_type" = x ; then | |
13553 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
13554 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
13555 | mgl_lib_type=release | |
13556 | mgl_os=$mgl_os_i | |
13557 | fi | |
13558 | fi | |
21d1c967 | 13559 | fi |
63a76696 | 13560 | done |
2224580a | 13561 | |
63a76696 VS |
13562 | if test "x$mgl_os" = x ; then |
13563 | echo "$ac_t""not found" 1>&6 | |
13564 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
13565 | fi | |
13566 | echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6 | |
13567 | ||
1d1b75ac VZ |
13568 | wxUSE_UNIVERSAL="yes" |
13569 | ||
21d1c967 GD |
13570 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
13571 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
13572 | ||
90dd450c | 13573 | AFMINSTALL=afminstall |
21d1c967 GD |
13574 | TOOLKIT=MGL |
13575 | GUIDIST=MGL_DIST | |
13576 | fi | |
dad6c0ea | 13577 | |
21d1c967 | 13578 | if test "$wxUSE_MICROWIN" = 1; then |
a0b9e27f | 13579 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 |
521196a2 | 13580 | echo "configure:13581: checking for MicroWindows" >&5 |
21d1c967 | 13581 | if test "x$MICROWINDOWS" = x ; then |
a0b9e27f MB |
13582 | echo "$ac_t""not found" 1>&6 |
13583 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
21d1c967 | 13584 | else |
a0b9e27f | 13585 | echo "$ac_t""$MICROWINDOWS" 1>&6 |
21d1c967 | 13586 | fi |
f6bcfd97 | 13587 | |
21d1c967 | 13588 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
a0b9e27f | 13589 | echo "$ac_t""MicroWindows' libraries found." 1>&6 |
21d1c967 | 13590 | else |
a0b9e27f | 13591 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } |
90dd450c | 13592 | fi |
0b2effe9 | 13593 | |
21d1c967 GD |
13594 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
13595 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
13596 | ||
1d1b75ac VZ |
13597 | wxUSE_UNIVERSAL="yes" |
13598 | ||
21d1c967 GD |
13599 | AFMINSTALL=afminstall |
13600 | TOOLKIT=MICROWIN | |
13601 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
13602 | |
13603 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 13604 | fi |
f6bcfd97 | 13605 | |
21d1c967 | 13606 | if test "$wxUSE_X11" = 1; then |
a0b9e27f MB |
13607 | # If we find X, set shell vars x_includes and x_libraries to the |
13608 | # paths, otherwise set no_x=yes. | |
13609 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
13610 | # --without-x overrides everything else, but does not touch the cache. | |
13611 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
521196a2 | 13612 | echo "configure:13613: checking for X" >&5 |
d8356fa3 | 13613 | |
21d1c967 GD |
13614 | # Check whether --with-x or --without-x was given. |
13615 | if test "${with_x+set}" = set; then | |
13616 | withval="$with_x" | |
a0b9e27f MB |
13617 | : |
13618 | fi | |
2224580a | 13619 | |
21d1c967 GD |
13620 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
13621 | if test "x$with_x" = xno; then | |
13622 | # The user explicitly disabled X. | |
13623 | have_x=disabled | |
13624 | else | |
13625 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
13626 | # Both variables are already set. | |
13627 | have_x=yes | |
13628 | else | |
a0b9e27f MB |
13629 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
13630 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 GD |
13631 | else |
13632 | # One or both of the vars are not set, and there is no cached value. | |
a0b9e27f MB |
13633 | ac_x_includes=NO ac_x_libraries=NO |
13634 | rm -fr conftestdir | |
13635 | if mkdir conftestdir; then | |
13636 | cd conftestdir | |
21d1c967 | 13637 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
a0b9e27f | 13638 | cat > Imakefile <<'EOF' |
21d1c967 GD |
13639 | acfindx: |
13640 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
a0b9e27f | 13641 | EOF |
21d1c967 GD |
13642 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
13643 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
13644 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
13645 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
13646 | for ac_extension in a so sl; do | |
13647 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
a0b9e27f | 13648 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
13649 | ac_im_usrlibdir=$ac_im_libdir; break |
13650 | fi | |
13651 | done | |
13652 | # Screen out bogus values from the imake configuration. They are | |
13653 | # bogus both because they are the default anyway, and because | |
13654 | # using them would break gcc on systems where it needs fixed includes. | |
a0b9e27f | 13655 | case "$ac_im_incroot" in |
21d1c967 | 13656 | /usr/include) ;; |
a0b9e27f | 13657 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
21d1c967 | 13658 | esac |
a0b9e27f | 13659 | case "$ac_im_usrlibdir" in |
21d1c967 | 13660 | /usr/lib | /lib) ;; |
a0b9e27f | 13661 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
21d1c967 GD |
13662 | esac |
13663 | fi | |
13664 | cd .. | |
a0b9e27f | 13665 | rm -fr conftestdir |
21d1c967 | 13666 | fi |
10f2d63a | 13667 | |
a0b9e27f MB |
13668 | if test "$ac_x_includes" = NO; then |
13669 | # Guess where to find include files, by looking for this one X11 .h file. | |
13670 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
13671 | ||
21d1c967 | 13672 | # First, try using that file with no special directory specified. |
a0b9e27f | 13673 | cat > conftest.$ac_ext <<EOF |
521196a2 | 13674 | #line 13675 "configure" |
21d1c967 | 13675 | #include "confdefs.h" |
a0b9e27f MB |
13676 | #include <$x_direct_test_include> |
13677 | EOF | |
13678 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 13679 | { (eval echo configure:13680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
13680 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13681 | if test -z "$ac_err"; then | |
13682 | rm -rf conftest* | |
21d1c967 GD |
13683 | # We can compile using X headers with no special include directory. |
13684 | ac_x_includes= | |
90dd450c | 13685 | else |
a0b9e27f MB |
13686 | echo "$ac_err" >&5 |
13687 | echo "configure: failed program was:" >&5 | |
90dd450c | 13688 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
13689 | rm -rf conftest* |
13690 | # Look for the header file in a standard set of common directories. | |
13691 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13692 | for ac_dir in \ | |
13693 | /usr/X11/include \ | |
13694 | /usr/X11R6/include \ | |
13695 | /usr/X11R5/include \ | |
13696 | /usr/X11R4/include \ | |
13697 | \ | |
13698 | /usr/include/X11 \ | |
13699 | /usr/include/X11R6 \ | |
13700 | /usr/include/X11R5 \ | |
13701 | /usr/include/X11R4 \ | |
13702 | \ | |
13703 | /usr/local/X11/include \ | |
13704 | /usr/local/X11R6/include \ | |
13705 | /usr/local/X11R5/include \ | |
13706 | /usr/local/X11R4/include \ | |
13707 | \ | |
13708 | /usr/local/include/X11 \ | |
13709 | /usr/local/include/X11R6 \ | |
13710 | /usr/local/include/X11R5 \ | |
13711 | /usr/local/include/X11R4 \ | |
13712 | \ | |
13713 | /usr/X386/include \ | |
13714 | /usr/x386/include \ | |
13715 | /usr/XFree86/include/X11 \ | |
13716 | \ | |
13717 | /usr/include \ | |
13718 | /usr/local/include \ | |
13719 | /usr/unsupported/include \ | |
13720 | /usr/athena/include \ | |
13721 | /usr/local/x11r5/include \ | |
13722 | /usr/lpp/Xamples/include \ | |
13723 | \ | |
13724 | /usr/openwin/include \ | |
13725 | /usr/openwin/share/include \ | |
13726 | ; \ | |
13727 | do | |
13728 | if test -r "$ac_dir/$x_direct_test_include"; then | |
13729 | ac_x_includes=$ac_dir | |
13730 | break | |
13731 | fi | |
13732 | done | |
3a922bb4 | 13733 | fi |
a0b9e27f MB |
13734 | rm -f conftest* |
13735 | fi # $ac_x_includes = NO | |
10f2d63a | 13736 | |
a0b9e27f | 13737 | if test "$ac_x_libraries" = NO; then |
21d1c967 | 13738 | # Check for the libraries. |
a0b9e27f MB |
13739 | |
13740 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
13741 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
13742 | ||
21d1c967 GD |
13743 | # See if we find them without any special options. |
13744 | # Don't add to $LIBS permanently. | |
a0b9e27f MB |
13745 | ac_save_LIBS="$LIBS" |
13746 | LIBS="-l$x_direct_test_library $LIBS" | |
13747 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 13748 | #line 13749 "configure" |
3a922bb4 | 13749 | #include "confdefs.h" |
a0b9e27f MB |
13750 | |
13751 | int main() { | |
13752 | ${x_direct_test_function}() | |
13753 | ; return 0; } | |
13754 | EOF | |
521196a2 | 13755 | if { (eval echo configure:13756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13756 | rm -rf conftest* |
13757 | LIBS="$ac_save_LIBS" | |
21d1c967 GD |
13758 | # We can link X programs with no special library path. |
13759 | ac_x_libraries= | |
3a922bb4 | 13760 | else |
a0b9e27f MB |
13761 | echo "configure: failed program was:" >&5 |
13762 | cat conftest.$ac_ext >&5 | |
13763 | rm -rf conftest* | |
13764 | LIBS="$ac_save_LIBS" | |
13765 | # First see if replacing the include by lib works. | |
13766 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13767 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
13768 | /usr/X11/lib \ | |
13769 | /usr/X11R6/lib \ | |
13770 | /usr/X11R5/lib \ | |
13771 | /usr/X11R4/lib \ | |
13772 | \ | |
13773 | /usr/lib/X11 \ | |
13774 | /usr/lib/X11R6 \ | |
13775 | /usr/lib/X11R5 \ | |
13776 | /usr/lib/X11R4 \ | |
13777 | \ | |
13778 | /usr/local/X11/lib \ | |
13779 | /usr/local/X11R6/lib \ | |
13780 | /usr/local/X11R5/lib \ | |
13781 | /usr/local/X11R4/lib \ | |
13782 | \ | |
13783 | /usr/local/lib/X11 \ | |
13784 | /usr/local/lib/X11R6 \ | |
13785 | /usr/local/lib/X11R5 \ | |
13786 | /usr/local/lib/X11R4 \ | |
13787 | \ | |
13788 | /usr/X386/lib \ | |
13789 | /usr/x386/lib \ | |
13790 | /usr/XFree86/lib/X11 \ | |
13791 | \ | |
13792 | /usr/lib \ | |
13793 | /usr/local/lib \ | |
13794 | /usr/unsupported/lib \ | |
13795 | /usr/athena/lib \ | |
13796 | /usr/local/x11r5/lib \ | |
13797 | /usr/lpp/Xamples/lib \ | |
13798 | /lib/usr/lib/X11 \ | |
13799 | \ | |
13800 | /usr/openwin/lib \ | |
13801 | /usr/openwin/share/lib \ | |
13802 | ; \ | |
21d1c967 GD |
13803 | do |
13804 | for ac_extension in a so sl; do | |
a0b9e27f | 13805 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
21d1c967 GD |
13806 | ac_x_libraries=$ac_dir |
13807 | break 2 | |
13808 | fi | |
13809 | done | |
13810 | done | |
3a922bb4 | 13811 | fi |
a0b9e27f MB |
13812 | rm -f conftest* |
13813 | fi # $ac_x_libraries = NO | |
90dd450c | 13814 | |
a0b9e27f | 13815 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
21d1c967 GD |
13816 | # Didn't find X anywhere. Cache the known absence of X. |
13817 | ac_cv_have_x="have_x=no" | |
13818 | else | |
13819 | # Record where we found X for the cache. | |
13820 | ac_cv_have_x="have_x=yes \ | |
13821 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 13822 | fi |
21d1c967 GD |
13823 | fi |
13824 | fi | |
13825 | eval "$ac_cv_have_x" | |
13826 | fi # $with_x != no | |
90dd450c | 13827 | |
21d1c967 | 13828 | if test "$have_x" != yes; then |
a0b9e27f | 13829 | echo "$ac_t""$have_x" 1>&6 |
21d1c967 GD |
13830 | no_x=yes |
13831 | else | |
13832 | # If each of the values was on the command line, it overrides each guess. | |
13833 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
13834 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
13835 | # Update the cache value to reflect the command line values. | |
13836 | ac_cv_have_x="have_x=yes \ | |
13837 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
a0b9e27f | 13838 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
21d1c967 | 13839 | fi |
90dd450c | 13840 | |
21d1c967 | 13841 | if test "$no_x" = yes; then |
90dd450c | 13842 | # Not all programs may use this symbol, but it does not hurt to define it. |
a0b9e27f | 13843 | cat >> confdefs.h <<\EOF |
90dd450c | 13844 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 13845 | EOF |
90dd450c VZ |
13846 | |
13847 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13848 | else | |
13849 | if test -n "$x_includes"; then | |
13850 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 13851 | fi |
3a922bb4 | 13852 | |
90dd450c VZ |
13853 | # It would also be nice to do this for all -L options, not just this one. |
13854 | if test -n "$x_libraries"; then | |
13855 | X_LIBS="$X_LIBS -L$x_libraries" | |
13856 | # For Solaris; some versions of Sun CC require a space after -R and | |
13857 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 13858 | case "`(uname -sr) 2>/dev/null`" in |
90dd450c | 13859 | "SunOS 5"*) |
a0b9e27f | 13860 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
521196a2 | 13861 | echo "configure:13862: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
13862 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
13863 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 13864 | #line 13865 "configure" |
90dd450c VZ |
13865 | #include "confdefs.h" |
13866 | ||
a0b9e27f | 13867 | int main() { |
90dd450c | 13868 | |
a0b9e27f MB |
13869 | ; return 0; } |
13870 | EOF | |
521196a2 | 13871 | if { (eval echo configure:13872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13872 | rm -rf conftest* |
90dd450c | 13873 | ac_R_nospace=yes |
3a922bb4 | 13874 | else |
a0b9e27f MB |
13875 | echo "configure: failed program was:" >&5 |
13876 | cat conftest.$ac_ext >&5 | |
13877 | rm -rf conftest* | |
13878 | ac_R_nospace=no | |
3a922bb4 | 13879 | fi |
a0b9e27f | 13880 | rm -f conftest* |
90dd450c | 13881 | if test $ac_R_nospace = yes; then |
a0b9e27f | 13882 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
13883 | X_LIBS="$X_LIBS -R$x_libraries" |
13884 | else | |
13885 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 13886 | cat > conftest.$ac_ext <<EOF |
521196a2 | 13887 | #line 13888 "configure" |
90dd450c | 13888 | #include "confdefs.h" |
3a922bb4 | 13889 | |
a0b9e27f | 13890 | int main() { |
6f754473 | 13891 | |
a0b9e27f MB |
13892 | ; return 0; } |
13893 | EOF | |
521196a2 | 13894 | if { (eval echo configure:13895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13895 | rm -rf conftest* |
90dd450c VZ |
13896 | ac_R_space=yes |
13897 | else | |
a0b9e27f MB |
13898 | echo "configure: failed program was:" >&5 |
13899 | cat conftest.$ac_ext >&5 | |
13900 | rm -rf conftest* | |
13901 | ac_R_space=no | |
90dd450c | 13902 | fi |
a0b9e27f | 13903 | rm -f conftest* |
90dd450c | 13904 | if test $ac_R_space = yes; then |
a0b9e27f | 13905 | echo "$ac_t""yes" 1>&6 |
90dd450c VZ |
13906 | X_LIBS="$X_LIBS -R $x_libraries" |
13907 | else | |
a0b9e27f | 13908 | echo "$ac_t""neither works" 1>&6 |
90dd450c VZ |
13909 | fi |
13910 | fi | |
a0b9e27f | 13911 | LIBS="$ac_xsave_LIBS" |
90dd450c VZ |
13912 | esac |
13913 | fi | |
13914 | ||
13915 | # Check for system-dependent libraries X programs must link with. | |
13916 | # Do this before checking for the system-independent R6 libraries | |
13917 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 13918 | |
90dd450c VZ |
13919 | if test "$ISC" = yes; then |
13920 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13921 | else | |
a0b9e27f MB |
13922 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
13923 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
90dd450c | 13924 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 13925 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
521196a2 | 13926 | echo "configure:13927: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
13927 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13928 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13929 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 13930 | else |
a0b9e27f | 13931 | ac_save_LIBS="$LIBS" |
247f5006 | 13932 | LIBS="-ldnet $LIBS" |
a0b9e27f | 13933 | cat > conftest.$ac_ext <<EOF |
521196a2 | 13934 | #line 13935 "configure" |
247f5006 | 13935 | #include "confdefs.h" |
247f5006 | 13936 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 13937 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13938 | builtin and then its argument prototype would still apply. */ |
13939 | char dnet_ntoa(); | |
13940 | ||
13941 | int main() { | |
13942 | dnet_ntoa() | |
13943 | ; return 0; } | |
13944 | EOF | |
521196a2 | 13945 | if { (eval echo configure:13946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13946 | rm -rf conftest* |
13947 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13948 | else | |
13949 | echo "configure: failed program was:" >&5 | |
13950 | cat conftest.$ac_ext >&5 | |
13951 | rm -rf conftest* | |
13952 | eval "ac_cv_lib_$ac_lib_var=no" | |
13953 | fi | |
13954 | rm -f conftest* | |
13955 | LIBS="$ac_save_LIBS" | |
13956 | ||
13957 | fi | |
13958 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13959 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13960 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
13961 | else |
13962 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13963 | fi |
13964 | ||
90dd450c | 13965 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 13966 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
521196a2 | 13967 | echo "configure:13968: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
13968 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13969 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13970 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13971 | else |
a0b9e27f | 13972 | ac_save_LIBS="$LIBS" |
90dd450c | 13973 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 13974 | cat > conftest.$ac_ext <<EOF |
521196a2 | 13975 | #line 13976 "configure" |
90dd450c VZ |
13976 | #include "confdefs.h" |
13977 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13978 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13979 | builtin and then its argument prototype would still apply. */ |
13980 | char dnet_ntoa(); | |
13981 | ||
13982 | int main() { | |
13983 | dnet_ntoa() | |
13984 | ; return 0; } | |
13985 | EOF | |
521196a2 | 13986 | if { (eval echo configure:13987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13987 | rm -rf conftest* |
13988 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13989 | else | |
13990 | echo "configure: failed program was:" >&5 | |
13991 | cat conftest.$ac_ext >&5 | |
13992 | rm -rf conftest* | |
13993 | eval "ac_cv_lib_$ac_lib_var=no" | |
13994 | fi | |
13995 | rm -f conftest* | |
13996 | LIBS="$ac_save_LIBS" | |
13997 | ||
13998 | fi | |
13999 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14000 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14001 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
14002 | else |
14003 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
14004 | fi |
14005 | ||
90dd450c | 14006 | fi |
978f1259 | 14007 | |
90dd450c VZ |
14008 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
14009 | # to get the SysV transport functions. | |
a0b9e27f | 14010 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
14011 | # needs -lnsl. |
14012 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
14013 | # on Irix 5.2, according to dickey@clark.net. |
14014 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
521196a2 | 14015 | echo "configure:14016: checking for gethostbyname" >&5 |
a0b9e27f MB |
14016 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
14017 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14018 | else | |
14019 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 14020 | #line 14021 "configure" |
90dd450c VZ |
14021 | #include "confdefs.h" |
14022 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14023 | which can conflict with char gethostbyname(); below. */ |
90dd450c VZ |
14024 | #include <assert.h> |
14025 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14026 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14027 | builtin and then its argument prototype would still apply. */ |
14028 | char gethostbyname(); | |
14029 | ||
14030 | int main() { | |
14031 | ||
90dd450c VZ |
14032 | /* The GNU C library defines this for functions which it implements |
14033 | to always fail with ENOSYS. Some functions are actually named | |
14034 | something starting with __ and the normal name is an alias. */ | |
14035 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
14036 | choke me | |
14037 | #else | |
a0b9e27f | 14038 | gethostbyname(); |
90dd450c | 14039 | #endif |
978f1259 | 14040 | |
a0b9e27f MB |
14041 | ; return 0; } |
14042 | EOF | |
521196a2 | 14043 | if { (eval echo configure:14044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14044 | rm -rf conftest* |
14045 | eval "ac_cv_func_gethostbyname=yes" | |
14046 | else | |
14047 | echo "configure: failed program was:" >&5 | |
14048 | cat conftest.$ac_ext >&5 | |
14049 | rm -rf conftest* | |
14050 | eval "ac_cv_func_gethostbyname=no" | |
14051 | fi | |
14052 | rm -f conftest* | |
14053 | fi | |
14054 | ||
14055 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
14056 | echo "$ac_t""yes" 1>&6 | |
14057 | : | |
14058 | else | |
14059 | echo "$ac_t""no" 1>&6 | |
14060 | fi | |
698dcdb6 | 14061 | |
90dd450c | 14062 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 14063 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
521196a2 | 14064 | echo "configure:14065: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
14065 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
14066 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14067 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14068 | else |
a0b9e27f | 14069 | ac_save_LIBS="$LIBS" |
90dd450c | 14070 | LIBS="-lnsl $LIBS" |
a0b9e27f | 14071 | cat > conftest.$ac_ext <<EOF |
521196a2 | 14072 | #line 14073 "configure" |
90dd450c VZ |
14073 | #include "confdefs.h" |
14074 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14075 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14076 | builtin and then its argument prototype would still apply. */ |
14077 | char gethostbyname(); | |
5c6fa7d2 | 14078 | |
a0b9e27f MB |
14079 | int main() { |
14080 | gethostbyname() | |
14081 | ; return 0; } | |
14082 | EOF | |
521196a2 | 14083 | if { (eval echo configure:14084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14084 | rm -rf conftest* |
14085 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 14086 | else |
a0b9e27f MB |
14087 | echo "configure: failed program was:" >&5 |
14088 | cat conftest.$ac_ext >&5 | |
14089 | rm -rf conftest* | |
14090 | eval "ac_cv_lib_$ac_lib_var=no" | |
14091 | fi | |
14092 | rm -f conftest* | |
14093 | LIBS="$ac_save_LIBS" | |
247f5006 | 14094 | |
a0b9e27f MB |
14095 | fi |
14096 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14097 | echo "$ac_t""yes" 1>&6 | |
14098 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
14099 | else | |
14100 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14101 | fi |
b12915c1 | 14102 | |
90dd450c VZ |
14103 | fi |
14104 | ||
14105 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
14106 | # socket/setsockopt and other routines are undefined under SCO ODT | |
14107 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
14108 | # on later versions), says simon@lia.di.epfl.ch: it contains |
14109 | # gethostby* variants that don't use the nameserver (or something). | |
14110 | # -lsocket must be given before -lnsl if both are needed. | |
14111 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
14112 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
521196a2 | 14113 | echo "configure:14114: checking for connect" >&5 |
a0b9e27f MB |
14114 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
14115 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14116 | else | |
14117 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 14118 | #line 14119 "configure" |
55e80573 | 14119 | #include "confdefs.h" |
90dd450c | 14120 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 14121 | which can conflict with char connect(); below. */ |
90dd450c VZ |
14122 | #include <assert.h> |
14123 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14124 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14125 | builtin and then its argument prototype would still apply. */ |
14126 | char connect(); | |
14127 | ||
14128 | int main() { | |
14129 | ||
90dd450c VZ |
14130 | /* The GNU C library defines this for functions which it implements |
14131 | to always fail with ENOSYS. Some functions are actually named | |
14132 | something starting with __ and the normal name is an alias. */ | |
14133 | #if defined (__stub_connect) || defined (__stub___connect) | |
14134 | choke me | |
14135 | #else | |
a0b9e27f | 14136 | connect(); |
90dd450c VZ |
14137 | #endif |
14138 | ||
a0b9e27f MB |
14139 | ; return 0; } |
14140 | EOF | |
521196a2 | 14141 | if { (eval echo configure:14142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14142 | rm -rf conftest* |
14143 | eval "ac_cv_func_connect=yes" | |
14144 | else | |
14145 | echo "configure: failed program was:" >&5 | |
14146 | cat conftest.$ac_ext >&5 | |
14147 | rm -rf conftest* | |
14148 | eval "ac_cv_func_connect=no" | |
14149 | fi | |
14150 | rm -f conftest* | |
14151 | fi | |
14152 | ||
14153 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
14154 | echo "$ac_t""yes" 1>&6 | |
14155 | : | |
14156 | else | |
14157 | echo "$ac_t""no" 1>&6 | |
14158 | fi | |
55e80573 | 14159 | |
90dd450c | 14160 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 14161 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
521196a2 | 14162 | echo "configure:14163: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
14163 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
14164 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14165 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14166 | else |
a0b9e27f | 14167 | ac_save_LIBS="$LIBS" |
90dd450c | 14168 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14169 | cat > conftest.$ac_ext <<EOF |
521196a2 | 14170 | #line 14171 "configure" |
90dd450c VZ |
14171 | #include "confdefs.h" |
14172 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14173 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14174 | builtin and then its argument prototype would still apply. */ |
14175 | char connect(); | |
14176 | ||
14177 | int main() { | |
14178 | connect() | |
14179 | ; return 0; } | |
14180 | EOF | |
521196a2 | 14181 | if { (eval echo configure:14182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14182 | rm -rf conftest* |
14183 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14184 | else | |
14185 | echo "configure: failed program was:" >&5 | |
14186 | cat conftest.$ac_ext >&5 | |
14187 | rm -rf conftest* | |
14188 | eval "ac_cv_lib_$ac_lib_var=no" | |
14189 | fi | |
14190 | rm -f conftest* | |
14191 | LIBS="$ac_save_LIBS" | |
14192 | ||
14193 | fi | |
14194 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14195 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14196 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
14197 | else |
14198 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14199 | fi |
77e13408 | 14200 | |
90dd450c | 14201 | fi |
25d0687a | 14202 | |
a0b9e27f MB |
14203 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
14204 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
521196a2 | 14205 | echo "configure:14206: checking for remove" >&5 |
a0b9e27f MB |
14206 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
14207 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14208 | else |
a0b9e27f | 14209 | cat > conftest.$ac_ext <<EOF |
521196a2 | 14210 | #line 14211 "configure" |
90dd450c VZ |
14211 | #include "confdefs.h" |
14212 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14213 | which can conflict with char remove(); below. */ |
90dd450c VZ |
14214 | #include <assert.h> |
14215 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14216 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14217 | builtin and then its argument prototype would still apply. */ |
14218 | char remove(); | |
14219 | ||
14220 | int main() { | |
14221 | ||
90dd450c VZ |
14222 | /* The GNU C library defines this for functions which it implements |
14223 | to always fail with ENOSYS. Some functions are actually named | |
14224 | something starting with __ and the normal name is an alias. */ | |
14225 | #if defined (__stub_remove) || defined (__stub___remove) | |
14226 | choke me | |
14227 | #else | |
a0b9e27f | 14228 | remove(); |
90dd450c | 14229 | #endif |
55e80573 | 14230 | |
a0b9e27f MB |
14231 | ; return 0; } |
14232 | EOF | |
521196a2 | 14233 | if { (eval echo configure:14234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14234 | rm -rf conftest* |
14235 | eval "ac_cv_func_remove=yes" | |
14236 | else | |
14237 | echo "configure: failed program was:" >&5 | |
14238 | cat conftest.$ac_ext >&5 | |
14239 | rm -rf conftest* | |
14240 | eval "ac_cv_func_remove=no" | |
14241 | fi | |
14242 | rm -f conftest* | |
14243 | fi | |
14244 | ||
14245 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
14246 | echo "$ac_t""yes" 1>&6 | |
14247 | : | |
14248 | else | |
14249 | echo "$ac_t""no" 1>&6 | |
14250 | fi | |
10f2d63a | 14251 | |
90dd450c | 14252 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 14253 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
521196a2 | 14254 | echo "configure:14255: checking for remove in -lposix" >&5 |
a0b9e27f MB |
14255 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
14256 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14257 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14258 | else |
a0b9e27f | 14259 | ac_save_LIBS="$LIBS" |
90dd450c | 14260 | LIBS="-lposix $LIBS" |
a0b9e27f | 14261 | cat > conftest.$ac_ext <<EOF |
521196a2 | 14262 | #line 14263 "configure" |
90dd450c VZ |
14263 | #include "confdefs.h" |
14264 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14265 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14266 | builtin and then its argument prototype would still apply. */ |
14267 | char remove(); | |
14268 | ||
14269 | int main() { | |
14270 | remove() | |
14271 | ; return 0; } | |
14272 | EOF | |
521196a2 | 14273 | if { (eval echo configure:14274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14274 | rm -rf conftest* |
14275 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14276 | else | |
14277 | echo "configure: failed program was:" >&5 | |
14278 | cat conftest.$ac_ext >&5 | |
14279 | rm -rf conftest* | |
14280 | eval "ac_cv_lib_$ac_lib_var=no" | |
14281 | fi | |
14282 | rm -f conftest* | |
14283 | LIBS="$ac_save_LIBS" | |
14284 | ||
14285 | fi | |
14286 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14287 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14288 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
14289 | else |
14290 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14291 | fi |
f6bcfd97 | 14292 | |
6fa882bd RR |
14293 | fi |
14294 | ||
90dd450c | 14295 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 14296 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
521196a2 | 14297 | echo "configure:14298: checking for shmat" >&5 |
a0b9e27f MB |
14298 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
14299 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14300 | else |
a0b9e27f | 14301 | cat > conftest.$ac_ext <<EOF |
521196a2 | 14302 | #line 14303 "configure" |
90dd450c VZ |
14303 | #include "confdefs.h" |
14304 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14305 | which can conflict with char shmat(); below. */ |
90dd450c VZ |
14306 | #include <assert.h> |
14307 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14308 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14309 | builtin and then its argument prototype would still apply. */ |
14310 | char shmat(); | |
14311 | ||
14312 | int main() { | |
14313 | ||
90dd450c VZ |
14314 | /* The GNU C library defines this for functions which it implements |
14315 | to always fail with ENOSYS. Some functions are actually named | |
14316 | something starting with __ and the normal name is an alias. */ | |
14317 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14318 | choke me | |
14319 | #else | |
a0b9e27f | 14320 | shmat(); |
90dd450c | 14321 | #endif |
10f2d63a | 14322 | |
a0b9e27f MB |
14323 | ; return 0; } |
14324 | EOF | |
521196a2 | 14325 | if { (eval echo configure:14326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14326 | rm -rf conftest* |
14327 | eval "ac_cv_func_shmat=yes" | |
14328 | else | |
14329 | echo "configure: failed program was:" >&5 | |
14330 | cat conftest.$ac_ext >&5 | |
14331 | rm -rf conftest* | |
14332 | eval "ac_cv_func_shmat=no" | |
14333 | fi | |
14334 | rm -f conftest* | |
14335 | fi | |
14336 | ||
14337 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14338 | echo "$ac_t""yes" 1>&6 | |
14339 | : | |
14340 | else | |
14341 | echo "$ac_t""no" 1>&6 | |
14342 | fi | |
d08b457b | 14343 | |
90dd450c | 14344 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 14345 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
521196a2 | 14346 | echo "configure:14347: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
14347 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
14348 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14349 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d08b457b | 14350 | else |
a0b9e27f | 14351 | ac_save_LIBS="$LIBS" |
90dd450c | 14352 | LIBS="-lipc $LIBS" |
a0b9e27f | 14353 | cat > conftest.$ac_ext <<EOF |
521196a2 | 14354 | #line 14355 "configure" |
90dd450c | 14355 | #include "confdefs.h" |
8284b0c5 | 14356 | /* Override any gcc2 internal prototype to avoid an error. */ |
90dd450c | 14357 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14358 | builtin and then its argument prototype would still apply. */ |
14359 | char shmat(); | |
14360 | ||
14361 | int main() { | |
14362 | shmat() | |
14363 | ; return 0; } | |
14364 | EOF | |
521196a2 | 14365 | if { (eval echo configure:14366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14366 | rm -rf conftest* |
14367 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14368 | else | |
14369 | echo "configure: failed program was:" >&5 | |
14370 | cat conftest.$ac_ext >&5 | |
14371 | rm -rf conftest* | |
14372 | eval "ac_cv_lib_$ac_lib_var=no" | |
14373 | fi | |
14374 | rm -f conftest* | |
14375 | LIBS="$ac_save_LIBS" | |
14376 | ||
14377 | fi | |
14378 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14379 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14380 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
14381 | else |
14382 | echo "$ac_t""no" 1>&6 | |
d08b457b GD |
14383 | fi |
14384 | ||
d558c907 | 14385 | fi |
90dd450c | 14386 | fi |
3a922bb4 | 14387 | |
90dd450c | 14388 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 14389 | ac_save_LDFLAGS="$LDFLAGS" |
90dd450c VZ |
14390 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
14391 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14392 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14393 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14394 | # These have to be linked with before -lX11, unlike the other | |
14395 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
14396 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
14397 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
521196a2 | 14398 | echo "configure:14399: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
14399 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
14400 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14401 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14402 | else | |
14403 | ac_save_LIBS="$LIBS" | |
f09359cf | 14404 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14405 | cat > conftest.$ac_ext <<EOF |
521196a2 | 14406 | #line 14407 "configure" |
9cfadba2 | 14407 | #include "confdefs.h" |
90dd450c VZ |
14408 | /* Override any gcc2 internal prototype to avoid an error. */ |
14409 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14410 | builtin and then its argument prototype would still apply. */ |
14411 | char IceConnectionNumber(); | |
14412 | ||
14413 | int main() { | |
14414 | IceConnectionNumber() | |
14415 | ; return 0; } | |
14416 | EOF | |
521196a2 | 14417 | if { (eval echo configure:14418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14418 | rm -rf conftest* |
14419 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14420 | else | |
14421 | echo "configure: failed program was:" >&5 | |
14422 | cat conftest.$ac_ext >&5 | |
14423 | rm -rf conftest* | |
14424 | eval "ac_cv_lib_$ac_lib_var=no" | |
14425 | fi | |
14426 | rm -f conftest* | |
14427 | LIBS="$ac_save_LIBS" | |
14428 | ||
14429 | fi | |
14430 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14431 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14432 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
14433 | else |
14434 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 14435 | fi |
10f2d63a | 14436 | |
a0b9e27f | 14437 | LDFLAGS="$ac_save_LDFLAGS" |
90dd450c VZ |
14438 | |
14439 | fi | |
14440 | ||
8284b0c5 | 14441 | |
90dd450c | 14442 | if test "$no_x" = "yes"; then |
a0b9e27f | 14443 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
90dd450c VZ |
14444 | fi |
14445 | ||
14446 | GUI_TK_LIBRARY="$X_LIBS" | |
14447 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14448 | AFMINSTALL=afminstall | |
14449 | COMPILED_X_PROGRAM=0 | |
14450 | ||
21d1c967 | 14451 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 14452 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 |
521196a2 | 14453 | echo "configure:14454: checking for MicroWindows/NanoX distribution" >&5 |
21d1c967 | 14454 | if test "x$MICROWIN" = x ; then |
a0b9e27f MB |
14455 | echo "$ac_t""not found" 1>&6 |
14456 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
90dd450c | 14457 | else |
a0b9e27f MB |
14458 | echo "$ac_t""$MICROWIN" 1>&6 |
14459 | cat >> confdefs.h <<\EOF | |
21d1c967 | 14460 | #define wxUSE_NANOX 1 |
a0b9e27f | 14461 | EOF |
21d1c967 | 14462 | |
90dd450c VZ |
14463 | fi |
14464 | fi | |
14465 | ||
14466 | xpm_link= | |
a0b9e27f | 14467 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
521196a2 | 14468 | echo "configure:14469: checking for Xpm library" >&5 |
a0b9e27f | 14469 | |
90dd450c | 14470 | ac_find_libraries= |
2b5f62a0 | 14471 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
14472 | do |
14473 | for ac_extension in a so sl dylib; do | |
14474 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14475 | ac_find_libraries=$ac_dir | |
14476 | break 2 | |
14477 | fi | |
14478 | done | |
14479 | done | |
14480 | ||
14481 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 14482 | |
90dd450c VZ |
14483 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14484 | result=$? | |
14485 | if test $result = 0; then | |
14486 | ac_path_to_link="" | |
14487 | else | |
14488 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 14489 | fi |
90dd450c | 14490 | |
21d1c967 GD |
14491 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
14492 | xpm_link=" -lXpm" | |
a0b9e27f | 14493 | cat >> confdefs.h <<\EOF |
21d1c967 | 14494 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14495 | EOF |
90dd450c | 14496 | |
a0b9e27f | 14497 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14498 | else |
a0b9e27f | 14499 | cat > conftest.$ac_ext <<EOF |
521196a2 | 14500 | #line 14501 "configure" |
21d1c967 | 14501 | #include "confdefs.h" |
90dd450c | 14502 | |
21d1c967 | 14503 | #include <X11/xpm.h> |
a0b9e27f MB |
14504 | |
14505 | int main() { | |
6f72b082 | 14506 | |
21d1c967 GD |
14507 | int version; |
14508 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
14509 | |
14510 | ; return 0; } | |
14511 | EOF | |
521196a2 | 14512 | if { (eval echo configure:14513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
14513 | rm -rf conftest* |
14514 | ||
21d1c967 | 14515 | xpm_link=" -lXpm" |
a0b9e27f | 14516 | cat >> confdefs.h <<\EOF |
21d1c967 | 14517 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14518 | EOF |
90dd450c | 14519 | |
a0b9e27f | 14520 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 14521 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 14522 | |
21d1c967 | 14523 | else |
a0b9e27f MB |
14524 | echo "configure: failed program was:" >&5 |
14525 | cat conftest.$ac_ext >&5 | |
14526 | rm -rf conftest* | |
14527 | ||
14528 | echo "$ac_t""no" 1>&6 | |
14529 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14530 | ||
14531 | ||
6f72b082 | 14532 | fi |
a0b9e27f | 14533 | rm -f conftest* |
21d1c967 | 14534 | fi |
90dd450c | 14535 | |
2b5f62a0 VZ |
14536 | if test "$wxUSE_UNICODE" = "yes"; then |
14537 | ||
14538 | succeeded=no | |
90dd450c | 14539 | |
2b5f62a0 VZ |
14540 | if test -z "$PKG_CONFIG"; then |
14541 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14542 | set dummy pkg-config; ac_word=$2 | |
14543 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
521196a2 | 14544 | echo "configure:14545: checking for $ac_word" >&5 |
2b5f62a0 | 14545 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
a0b9e27f MB |
14546 | echo $ac_n "(cached) $ac_c" 1>&6 |
14547 | else | |
2b5f62a0 VZ |
14548 | case "$PKG_CONFIG" in |
14549 | /*) | |
14550 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14551 | ;; | |
14552 | ?:/*) | |
14553 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14554 | ;; | |
14555 | *) | |
14556 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14557 | ac_dummy="$PATH" | |
14558 | for ac_dir in $ac_dummy; do | |
14559 | test -z "$ac_dir" && ac_dir=. | |
14560 | if test -f $ac_dir/$ac_word; then | |
14561 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14562 | break | |
14563 | fi | |
14564 | done | |
14565 | IFS="$ac_save_ifs" | |
14566 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14567 | ;; | |
14568 | esac | |
14569 | fi | |
14570 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14571 | if test -n "$PKG_CONFIG"; then | |
14572 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14573 | else | |
14574 | echo "$ac_t""no" 1>&6 | |
14575 | fi | |
14576 | ||
14577 | fi | |
14578 | ||
14579 | if test "$PKG_CONFIG" = "no" ; then | |
14580 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14581 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14582 | echo "*** to the full path to pkg-config." | |
14583 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14584 | else | |
14585 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14586 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14587 | echo $ac_n "checking for pangox""... $ac_c" 1>&6 | |
521196a2 | 14588 | echo "configure:14589: checking for pangox" >&5 |
2b5f62a0 VZ |
14589 | |
14590 | if $PKG_CONFIG --exists "pangox" ; then | |
14591 | echo "$ac_t""yes" 1>&6 | |
14592 | succeeded=yes | |
14593 | ||
14594 | echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6 | |
521196a2 | 14595 | echo "configure:14596: checking PANGOX_CFLAGS" >&5 |
2b5f62a0 VZ |
14596 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
14597 | echo "$ac_t""$PANGOX_CFLAGS" 1>&6 | |
14598 | ||
14599 | echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6 | |
521196a2 | 14600 | echo "configure:14601: checking PANGOX_LIBS" >&5 |
2b5f62a0 VZ |
14601 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
14602 | echo "$ac_t""$PANGOX_LIBS" 1>&6 | |
14603 | else | |
14604 | PANGOX_CFLAGS="" | |
14605 | PANGOX_LIBS="" | |
14606 | ## If we have a custom action on failure, don't print errors, but | |
14607 | ## do set a variable so people can do so. | |
14608 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
14609 | ||
14610 | fi | |
14611 | ||
14612 | ||
14613 | ||
14614 | else | |
14615 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14616 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14617 | fi | |
14618 | fi | |
14619 | ||
14620 | if test $succeeded = yes; then | |
14621 | ||
14622 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
14623 | LIBS="$LIBS $PANGOX_LIBS" | |
14624 | ||
14625 | else | |
14626 | ||
14627 | { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; } | |
14628 | ||
14629 | ||
14630 | fi | |
14631 | ||
14632 | ||
14633 | succeeded=no | |
14634 | ||
14635 | if test -z "$PKG_CONFIG"; then | |
14636 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14637 | set dummy pkg-config; ac_word=$2 | |
14638 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
521196a2 | 14639 | echo "configure:14640: checking for $ac_word" >&5 |
2b5f62a0 VZ |
14640 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
14641 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14642 | else | |
14643 | case "$PKG_CONFIG" in | |
14644 | /*) | |
14645 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14646 | ;; | |
14647 | ?:/*) | |
14648 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14649 | ;; | |
14650 | *) | |
14651 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14652 | ac_dummy="$PATH" | |
14653 | for ac_dir in $ac_dummy; do | |
14654 | test -z "$ac_dir" && ac_dir=. | |
14655 | if test -f $ac_dir/$ac_word; then | |
14656 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14657 | break | |
14658 | fi | |
14659 | done | |
14660 | IFS="$ac_save_ifs" | |
14661 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14662 | ;; | |
14663 | esac | |
14664 | fi | |
14665 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14666 | if test -n "$PKG_CONFIG"; then | |
14667 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14668 | else | |
14669 | echo "$ac_t""no" 1>&6 | |
14670 | fi | |
14671 | ||
14672 | fi | |
14673 | ||
14674 | if test "$PKG_CONFIG" = "no" ; then | |
14675 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14676 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14677 | echo "*** to the full path to pkg-config." | |
14678 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14679 | else | |
14680 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14681 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14682 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 | |
521196a2 | 14683 | echo "configure:14684: checking for pangoft2" >&5 |
2b5f62a0 VZ |
14684 | |
14685 | if $PKG_CONFIG --exists "pangoft2" ; then | |
14686 | echo "$ac_t""yes" 1>&6 | |
14687 | succeeded=yes | |
14688 | ||
14689 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 | |
521196a2 | 14690 | echo "configure:14691: checking PANGOFT2_CFLAGS" >&5 |
2b5f62a0 VZ |
14691 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
14692 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 | |
14693 | ||
14694 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 | |
521196a2 | 14695 | echo "configure:14696: checking PANGOFT2_LIBS" >&5 |
2b5f62a0 VZ |
14696 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
14697 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 | |
14698 | else | |
14699 | PANGOFT2_CFLAGS="" | |
14700 | PANGOFT2_LIBS="" | |
14701 | ## If we have a custom action on failure, don't print errors, but | |
14702 | ## do set a variable so people can do so. | |
14703 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
14704 | ||
14705 | fi | |
14706 | ||
14707 | ||
14708 | ||
14709 | else | |
14710 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14711 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14712 | fi | |
14713 | fi | |
14714 | ||
14715 | if test $succeeded = yes; then | |
14716 | ||
14717 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
14718 | LIBS="$LIBS $PANGOFT2_LIBS" | |
14719 | ||
14720 | else | |
14721 | ||
14722 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
14723 | wxUSE_PRINTING_ARCHITECTURE="no" | |
14724 | ||
14725 | ||
14726 | fi | |
14727 | ||
14728 | ||
14729 | succeeded=no | |
14730 | ||
14731 | if test -z "$PKG_CONFIG"; then | |
14732 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14733 | set dummy pkg-config; ac_word=$2 | |
14734 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
521196a2 | 14735 | echo "configure:14736: checking for $ac_word" >&5 |
2b5f62a0 VZ |
14736 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
14737 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14738 | else | |
14739 | case "$PKG_CONFIG" in | |
14740 | /*) | |
14741 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14742 | ;; | |
14743 | ?:/*) | |
14744 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14745 | ;; | |
14746 | *) | |
14747 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14748 | ac_dummy="$PATH" | |
14749 | for ac_dir in $ac_dummy; do | |
14750 | test -z "$ac_dir" && ac_dir=. | |
14751 | if test -f $ac_dir/$ac_word; then | |
14752 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14753 | break | |
14754 | fi | |
14755 | done | |
14756 | IFS="$ac_save_ifs" | |
14757 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14758 | ;; | |
14759 | esac | |
14760 | fi | |
14761 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14762 | if test -n "$PKG_CONFIG"; then | |
14763 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14764 | else | |
14765 | echo "$ac_t""no" 1>&6 | |
14766 | fi | |
14767 | ||
14768 | fi | |
14769 | ||
14770 | if test "$PKG_CONFIG" = "no" ; then | |
14771 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14772 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14773 | echo "*** to the full path to pkg-config." | |
14774 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14775 | else | |
14776 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14777 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14778 | echo $ac_n "checking for pangoxft""... $ac_c" 1>&6 | |
521196a2 | 14779 | echo "configure:14780: checking for pangoxft" >&5 |
2b5f62a0 VZ |
14780 | |
14781 | if $PKG_CONFIG --exists "pangoxft" ; then | |
14782 | echo "$ac_t""yes" 1>&6 | |
14783 | succeeded=yes | |
14784 | ||
14785 | echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6 | |
521196a2 | 14786 | echo "configure:14787: checking PANGOXFT_CFLAGS" >&5 |
2b5f62a0 VZ |
14787 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
14788 | echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6 | |
14789 | ||
14790 | echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6 | |
521196a2 | 14791 | echo "configure:14792: checking PANGOXFT_LIBS" >&5 |
2b5f62a0 VZ |
14792 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
14793 | echo "$ac_t""$PANGOXFT_LIBS" 1>&6 | |
14794 | else | |
14795 | PANGOXFT_CFLAGS="" | |
14796 | PANGOXFT_LIBS="" | |
14797 | ## If we have a custom action on failure, don't print errors, but | |
14798 | ## do set a variable so people can do so. | |
14799 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
14800 | ||
14801 | fi | |
14802 | ||
14803 | ||
14804 | ||
14805 | else | |
14806 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14807 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14808 | fi | |
14809 | fi | |
14810 | ||
14811 | if test $succeeded = yes; then | |
14812 | ||
14813 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
14814 | LIBS="$LIBS $PANGOXFT_LIBS" | |
14815 | ||
14816 | else | |
14817 | ||
14818 | echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2 | |
14819 | ||
14820 | ||
14821 | fi | |
14822 | ||
14823 | fi | |
14824 | ||
14825 | wxUSE_UNIVERSAL="yes" | |
14826 | ||
14827 | if test "$wxUSE_NANOX" = "yes"; then | |
14828 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
14829 | 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" | |
14830 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
14831 | else | |
14832 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
14833 | fi | |
14834 | ||
14835 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
14836 | TOOLKIT=X11 | |
14837 | GUIDIST=X11_DIST | |
14838 | fi | |
14839 | ||
21d1c967 GD |
14840 | if test "$wxUSE_MOTIF" = 1; then |
14841 | if test "$no_x" = yes; then | |
14842 | # Not all programs may use this symbol, but it does not hurt to define it. | |
a0b9e27f | 14843 | cat >> confdefs.h <<\EOF |
21d1c967 | 14844 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 14845 | EOF |
21d1c967 GD |
14846 | |
14847 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
14848 | else | |
14849 | if test -n "$x_includes"; then | |
14850 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
14851 | fi |
14852 | ||
21d1c967 GD |
14853 | # It would also be nice to do this for all -L options, not just this one. |
14854 | if test -n "$x_libraries"; then | |
14855 | X_LIBS="$X_LIBS -L$x_libraries" | |
14856 | # For Solaris; some versions of Sun CC require a space after -R and | |
14857 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 14858 | case "`(uname -sr) 2>/dev/null`" in |
21d1c967 | 14859 | "SunOS 5"*) |
a0b9e27f | 14860 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
521196a2 | 14861 | echo "configure:14862: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
14862 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
14863 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 14864 | #line 14865 "configure" |
21d1c967 GD |
14865 | #include "confdefs.h" |
14866 | ||
a0b9e27f | 14867 | int main() { |
21d1c967 | 14868 | |
a0b9e27f MB |
14869 | ; return 0; } |
14870 | EOF | |
521196a2 | 14871 | if { (eval echo configure:14872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14872 | rm -rf conftest* |
21d1c967 | 14873 | ac_R_nospace=yes |
698dcdb6 | 14874 | else |
a0b9e27f MB |
14875 | echo "configure: failed program was:" >&5 |
14876 | cat conftest.$ac_ext >&5 | |
14877 | rm -rf conftest* | |
14878 | ac_R_nospace=no | |
10f2d63a | 14879 | fi |
a0b9e27f | 14880 | rm -f conftest* |
21d1c967 | 14881 | if test $ac_R_nospace = yes; then |
a0b9e27f | 14882 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
14883 | X_LIBS="$X_LIBS -R$x_libraries" |
14884 | else | |
14885 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 14886 | cat > conftest.$ac_ext <<EOF |
521196a2 | 14887 | #line 14888 "configure" |
21d1c967 | 14888 | #include "confdefs.h" |
10f2d63a | 14889 | |
a0b9e27f | 14890 | int main() { |
f0c87536 | 14891 | |
a0b9e27f MB |
14892 | ; return 0; } |
14893 | EOF | |
521196a2 | 14894 | if { (eval echo configure:14895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14895 | rm -rf conftest* |
21d1c967 GD |
14896 | ac_R_space=yes |
14897 | else | |
a0b9e27f MB |
14898 | echo "configure: failed program was:" >&5 |
14899 | cat conftest.$ac_ext >&5 | |
14900 | rm -rf conftest* | |
14901 | ac_R_space=no | |
21d1c967 | 14902 | fi |
a0b9e27f | 14903 | rm -f conftest* |
21d1c967 | 14904 | if test $ac_R_space = yes; then |
a0b9e27f | 14905 | echo "$ac_t""yes" 1>&6 |
21d1c967 GD |
14906 | X_LIBS="$X_LIBS -R $x_libraries" |
14907 | else | |
a0b9e27f | 14908 | echo "$ac_t""neither works" 1>&6 |
21d1c967 GD |
14909 | fi |
14910 | fi | |
a0b9e27f | 14911 | LIBS="$ac_xsave_LIBS" |
21d1c967 GD |
14912 | esac |
14913 | fi | |
90dd450c | 14914 | |
21d1c967 GD |
14915 | # Check for system-dependent libraries X programs must link with. |
14916 | # Do this before checking for the system-independent R6 libraries | |
14917 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
14918 | ||
14919 | if test "$ISC" = yes; then | |
14920 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
14921 | else | |
a0b9e27f MB |
14922 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
14923 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
21d1c967 | 14924 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 14925 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
521196a2 | 14926 | echo "configure:14927: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
14927 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14928 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14929 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 14930 | else |
a0b9e27f | 14931 | ac_save_LIBS="$LIBS" |
247f5006 | 14932 | LIBS="-ldnet $LIBS" |
a0b9e27f | 14933 | cat > conftest.$ac_ext <<EOF |
521196a2 | 14934 | #line 14935 "configure" |
247f5006 | 14935 | #include "confdefs.h" |
247f5006 | 14936 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 14937 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14938 | builtin and then its argument prototype would still apply. */ |
14939 | char dnet_ntoa(); | |
14940 | ||
14941 | int main() { | |
14942 | dnet_ntoa() | |
14943 | ; return 0; } | |
14944 | EOF | |
521196a2 | 14945 | if { (eval echo configure:14946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14946 | rm -rf conftest* |
14947 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14948 | else | |
14949 | echo "configure: failed program was:" >&5 | |
14950 | cat conftest.$ac_ext >&5 | |
14951 | rm -rf conftest* | |
14952 | eval "ac_cv_lib_$ac_lib_var=no" | |
14953 | fi | |
14954 | rm -f conftest* | |
14955 | LIBS="$ac_save_LIBS" | |
14956 | ||
14957 | fi | |
14958 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14959 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14960 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
14961 | else |
14962 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 | 14963 | fi |
0fb0dd83 | 14964 | |
21d1c967 | 14965 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 14966 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
521196a2 | 14967 | echo "configure:14968: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
14968 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14969 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14970 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14971 | else |
a0b9e27f | 14972 | ac_save_LIBS="$LIBS" |
21d1c967 | 14973 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 14974 | cat > conftest.$ac_ext <<EOF |
521196a2 | 14975 | #line 14976 "configure" |
21d1c967 GD |
14976 | #include "confdefs.h" |
14977 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14978 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14979 | builtin and then its argument prototype would still apply. */ |
14980 | char dnet_ntoa(); | |
14981 | ||
14982 | int main() { | |
14983 | dnet_ntoa() | |
14984 | ; return 0; } | |
14985 | EOF | |
521196a2 | 14986 | if { (eval echo configure:14987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14987 | rm -rf conftest* |
14988 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14989 | else | |
14990 | echo "configure: failed program was:" >&5 | |
14991 | cat conftest.$ac_ext >&5 | |
14992 | rm -rf conftest* | |
14993 | eval "ac_cv_lib_$ac_lib_var=no" | |
14994 | fi | |
14995 | rm -f conftest* | |
14996 | LIBS="$ac_save_LIBS" | |
14997 | ||
14998 | fi | |
14999 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15000 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15001 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
15002 | else |
15003 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
15004 | fi |
15005 | ||
21d1c967 | 15006 | fi |
90dd450c | 15007 | |
21d1c967 GD |
15008 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
15009 | # to get the SysV transport functions. | |
a0b9e27f | 15010 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
15011 | # needs -lnsl. |
15012 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
15013 | # on Irix 5.2, according to dickey@clark.net. |
15014 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
521196a2 | 15015 | echo "configure:15016: checking for gethostbyname" >&5 |
a0b9e27f MB |
15016 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
15017 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15018 | else | |
15019 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 15020 | #line 15021 "configure" |
21d1c967 GD |
15021 | #include "confdefs.h" |
15022 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15023 | which can conflict with char gethostbyname(); below. */ |
21d1c967 GD |
15024 | #include <assert.h> |
15025 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15026 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15027 | builtin and then its argument prototype would still apply. */ |
15028 | char gethostbyname(); | |
15029 | ||
15030 | int main() { | |
15031 | ||
21d1c967 GD |
15032 | /* The GNU C library defines this for functions which it implements |
15033 | to always fail with ENOSYS. Some functions are actually named | |
15034 | something starting with __ and the normal name is an alias. */ | |
15035 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
15036 | choke me | |
15037 | #else | |
a0b9e27f | 15038 | gethostbyname(); |
21d1c967 | 15039 | #endif |
90dd450c | 15040 | |
a0b9e27f MB |
15041 | ; return 0; } |
15042 | EOF | |
521196a2 | 15043 | if { (eval echo configure:15044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15044 | rm -rf conftest* |
15045 | eval "ac_cv_func_gethostbyname=yes" | |
15046 | else | |
15047 | echo "configure: failed program was:" >&5 | |
15048 | cat conftest.$ac_ext >&5 | |
15049 | rm -rf conftest* | |
15050 | eval "ac_cv_func_gethostbyname=no" | |
15051 | fi | |
15052 | rm -f conftest* | |
15053 | fi | |
15054 | ||
15055 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
15056 | echo "$ac_t""yes" 1>&6 | |
15057 | : | |
15058 | else | |
15059 | echo "$ac_t""no" 1>&6 | |
15060 | fi | |
90dd450c | 15061 | |
21d1c967 | 15062 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 15063 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
521196a2 | 15064 | echo "configure:15065: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
15065 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
15066 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15067 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15068 | else |
a0b9e27f | 15069 | ac_save_LIBS="$LIBS" |
21d1c967 | 15070 | LIBS="-lnsl $LIBS" |
a0b9e27f | 15071 | cat > conftest.$ac_ext <<EOF |
521196a2 | 15072 | #line 15073 "configure" |
21d1c967 GD |
15073 | #include "confdefs.h" |
15074 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15075 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15076 | builtin and then its argument prototype would still apply. */ |
15077 | char gethostbyname(); | |
5c6fa7d2 | 15078 | |
a0b9e27f MB |
15079 | int main() { |
15080 | gethostbyname() | |
15081 | ; return 0; } | |
15082 | EOF | |
521196a2 | 15083 | if { (eval echo configure:15084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15084 | rm -rf conftest* |
15085 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 15086 | else |
a0b9e27f MB |
15087 | echo "configure: failed program was:" >&5 |
15088 | cat conftest.$ac_ext >&5 | |
15089 | rm -rf conftest* | |
15090 | eval "ac_cv_lib_$ac_lib_var=no" | |
15091 | fi | |
15092 | rm -f conftest* | |
15093 | LIBS="$ac_save_LIBS" | |
247f5006 | 15094 | |
a0b9e27f MB |
15095 | fi |
15096 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15097 | echo "$ac_t""yes" 1>&6 | |
15098 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
15099 | else | |
15100 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15101 | fi |
90dd450c | 15102 | |
90dd450c VZ |
15103 | fi |
15104 | ||
21d1c967 GD |
15105 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
15106 | # socket/setsockopt and other routines are undefined under SCO ODT | |
15107 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
15108 | # on later versions), says simon@lia.di.epfl.ch: it contains |
15109 | # gethostby* variants that don't use the nameserver (or something). | |
15110 | # -lsocket must be given before -lnsl if both are needed. | |
15111 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
15112 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
521196a2 | 15113 | echo "configure:15114: checking for connect" >&5 |
a0b9e27f MB |
15114 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
15115 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15116 | else | |
15117 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 15118 | #line 15119 "configure" |
21d1c967 GD |
15119 | #include "confdefs.h" |
15120 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15121 | which can conflict with char connect(); below. */ |
21d1c967 GD |
15122 | #include <assert.h> |
15123 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15124 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15125 | builtin and then its argument prototype would still apply. */ |
15126 | char connect(); | |
15127 | ||
15128 | int main() { | |
15129 | ||
21d1c967 GD |
15130 | /* The GNU C library defines this for functions which it implements |
15131 | to always fail with ENOSYS. Some functions are actually named | |
15132 | something starting with __ and the normal name is an alias. */ | |
15133 | #if defined (__stub_connect) || defined (__stub___connect) | |
15134 | choke me | |
15135 | #else | |
a0b9e27f | 15136 | connect(); |
21d1c967 | 15137 | #endif |
90dd450c | 15138 | |
a0b9e27f MB |
15139 | ; return 0; } |
15140 | EOF | |
521196a2 | 15141 | if { (eval echo configure:15142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15142 | rm -rf conftest* |
15143 | eval "ac_cv_func_connect=yes" | |
15144 | else | |
15145 | echo "configure: failed program was:" >&5 | |
15146 | cat conftest.$ac_ext >&5 | |
15147 | rm -rf conftest* | |
15148 | eval "ac_cv_func_connect=no" | |
15149 | fi | |
15150 | rm -f conftest* | |
15151 | fi | |
15152 | ||
15153 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
15154 | echo "$ac_t""yes" 1>&6 | |
15155 | : | |
15156 | else | |
15157 | echo "$ac_t""no" 1>&6 | |
15158 | fi | |
1f8ae82f | 15159 | |
21d1c967 | 15160 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 15161 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
521196a2 | 15162 | echo "configure:15163: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
15163 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
15164 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15165 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0fbb762e | 15166 | else |
a0b9e27f | 15167 | ac_save_LIBS="$LIBS" |
21d1c967 | 15168 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 15169 | cat > conftest.$ac_ext <<EOF |
521196a2 | 15170 | #line 15171 "configure" |
0fbb762e | 15171 | #include "confdefs.h" |
21d1c967 GD |
15172 | /* Override any gcc2 internal prototype to avoid an error. */ |
15173 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15174 | builtin and then its argument prototype would still apply. */ |
15175 | char connect(); | |
15176 | ||
15177 | int main() { | |
15178 | connect() | |
15179 | ; return 0; } | |
15180 | EOF | |
521196a2 | 15181 | if { (eval echo configure:15182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15182 | rm -rf conftest* |
15183 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15184 | else | |
15185 | echo "configure: failed program was:" >&5 | |
15186 | cat conftest.$ac_ext >&5 | |
15187 | rm -rf conftest* | |
15188 | eval "ac_cv_lib_$ac_lib_var=no" | |
15189 | fi | |
15190 | rm -f conftest* | |
15191 | LIBS="$ac_save_LIBS" | |
15192 | ||
15193 | fi | |
15194 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15195 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15196 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
15197 | else |
15198 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15199 | fi |
90dd450c | 15200 | |
21d1c967 | 15201 | fi |
90dd450c | 15202 | |
a0b9e27f MB |
15203 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
15204 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
521196a2 | 15205 | echo "configure:15206: checking for remove" >&5 |
a0b9e27f MB |
15206 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
15207 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15208 | else |
a0b9e27f | 15209 | cat > conftest.$ac_ext <<EOF |
521196a2 | 15210 | #line 15211 "configure" |
21d1c967 GD |
15211 | #include "confdefs.h" |
15212 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15213 | which can conflict with char remove(); below. */ |
21d1c967 GD |
15214 | #include <assert.h> |
15215 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15216 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15217 | builtin and then its argument prototype would still apply. */ |
15218 | char remove(); | |
15219 | ||
15220 | int main() { | |
15221 | ||
21d1c967 GD |
15222 | /* The GNU C library defines this for functions which it implements |
15223 | to always fail with ENOSYS. Some functions are actually named | |
15224 | something starting with __ and the normal name is an alias. */ | |
15225 | #if defined (__stub_remove) || defined (__stub___remove) | |
15226 | choke me | |
15227 | #else | |
a0b9e27f | 15228 | remove(); |
21d1c967 | 15229 | #endif |
90dd450c | 15230 | |
a0b9e27f MB |
15231 | ; return 0; } |
15232 | EOF | |
521196a2 | 15233 | if { (eval echo configure:15234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15234 | rm -rf conftest* |
15235 | eval "ac_cv_func_remove=yes" | |
15236 | else | |
15237 | echo "configure: failed program was:" >&5 | |
15238 | cat conftest.$ac_ext >&5 | |
15239 | rm -rf conftest* | |
15240 | eval "ac_cv_func_remove=no" | |
15241 | fi | |
15242 | rm -f conftest* | |
15243 | fi | |
15244 | ||
15245 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
15246 | echo "$ac_t""yes" 1>&6 | |
15247 | : | |
15248 | else | |
15249 | echo "$ac_t""no" 1>&6 | |
15250 | fi | |
90dd450c | 15251 | |
21d1c967 | 15252 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 15253 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
521196a2 | 15254 | echo "configure:15255: checking for remove in -lposix" >&5 |
a0b9e27f MB |
15255 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
15256 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15257 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15258 | else |
a0b9e27f | 15259 | ac_save_LIBS="$LIBS" |
21d1c967 | 15260 | LIBS="-lposix $LIBS" |
a0b9e27f | 15261 | cat > conftest.$ac_ext <<EOF |
521196a2 | 15262 | #line 15263 "configure" |
21d1c967 GD |
15263 | #include "confdefs.h" |
15264 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15265 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15266 | builtin and then its argument prototype would still apply. */ |
15267 | char remove(); | |
15268 | ||
15269 | int main() { | |
15270 | remove() | |
15271 | ; return 0; } | |
15272 | EOF | |
521196a2 | 15273 | if { (eval echo configure:15274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15274 | rm -rf conftest* |
15275 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15276 | else | |
15277 | echo "configure: failed program was:" >&5 | |
15278 | cat conftest.$ac_ext >&5 | |
15279 | rm -rf conftest* | |
15280 | eval "ac_cv_lib_$ac_lib_var=no" | |
15281 | fi | |
15282 | rm -f conftest* | |
15283 | LIBS="$ac_save_LIBS" | |
15284 | ||
15285 | fi | |
15286 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15287 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15288 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
15289 | else |
15290 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15291 | fi |
19bc6aad | 15292 | |
90dd450c | 15293 | fi |
19bc6aad | 15294 | |
21d1c967 | 15295 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 15296 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
521196a2 | 15297 | echo "configure:15298: checking for shmat" >&5 |
a0b9e27f MB |
15298 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
15299 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15300 | else |
a0b9e27f | 15301 | cat > conftest.$ac_ext <<EOF |
521196a2 | 15302 | #line 15303 "configure" |
21d1c967 GD |
15303 | #include "confdefs.h" |
15304 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15305 | which can conflict with char shmat(); below. */ |
21d1c967 GD |
15306 | #include <assert.h> |
15307 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15308 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15309 | builtin and then its argument prototype would still apply. */ |
15310 | char shmat(); | |
15311 | ||
15312 | int main() { | |
15313 | ||
21d1c967 GD |
15314 | /* The GNU C library defines this for functions which it implements |
15315 | to always fail with ENOSYS. Some functions are actually named | |
15316 | something starting with __ and the normal name is an alias. */ | |
15317 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
15318 | choke me | |
15319 | #else | |
a0b9e27f | 15320 | shmat(); |
21d1c967 | 15321 | #endif |
90dd450c | 15322 | |
a0b9e27f MB |
15323 | ; return 0; } |
15324 | EOF | |
521196a2 | 15325 | if { (eval echo configure:15326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15326 | rm -rf conftest* |
15327 | eval "ac_cv_func_shmat=yes" | |
15328 | else | |
15329 | echo "configure: failed program was:" >&5 | |
15330 | cat conftest.$ac_ext >&5 | |
15331 | rm -rf conftest* | |
15332 | eval "ac_cv_func_shmat=no" | |
15333 | fi | |
15334 | rm -f conftest* | |
15335 | fi | |
15336 | ||
15337 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
15338 | echo "$ac_t""yes" 1>&6 | |
15339 | : | |
15340 | else | |
15341 | echo "$ac_t""no" 1>&6 | |
15342 | fi | |
19bc6aad | 15343 | |
21d1c967 | 15344 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 15345 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
521196a2 | 15346 | echo "configure:15347: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
15347 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
15348 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15349 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 | 15350 | else |
a0b9e27f | 15351 | ac_save_LIBS="$LIBS" |
5c6fa7d2 | 15352 | LIBS="-lipc $LIBS" |
a0b9e27f | 15353 | cat > conftest.$ac_ext <<EOF |
521196a2 | 15354 | #line 15355 "configure" |
5c6fa7d2 | 15355 | #include "confdefs.h" |
5c6fa7d2 | 15356 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 15357 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
15358 | builtin and then its argument prototype would still apply. */ |
15359 | char shmat(); | |
15360 | ||
15361 | int main() { | |
15362 | shmat() | |
15363 | ; return 0; } | |
15364 | EOF | |
521196a2 | 15365 | if { (eval echo configure:15366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15366 | rm -rf conftest* |
15367 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15368 | else | |
15369 | echo "configure: failed program was:" >&5 | |
15370 | cat conftest.$ac_ext >&5 | |
15371 | rm -rf conftest* | |
15372 | eval "ac_cv_lib_$ac_lib_var=no" | |
15373 | fi | |
15374 | rm -f conftest* | |
15375 | LIBS="$ac_save_LIBS" | |
15376 | ||
15377 | fi | |
15378 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15379 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15380 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
15381 | else |
15382 | echo "$ac_t""no" 1>&6 | |
9f8148b1 | 15383 | fi |
90dd450c | 15384 | |
90dd450c | 15385 | fi |
21d1c967 | 15386 | fi |
10f2d63a | 15387 | |
21d1c967 | 15388 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 15389 | ac_save_LDFLAGS="$LDFLAGS" |
21d1c967 GD |
15390 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
15391 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
15392 | # check for ICE first), but we must link in the order -lSM -lICE or | |
15393 | # we get undefined symbols. So assume we have SM if we have ICE. | |
15394 | # These have to be linked with before -lX11, unlike the other | |
15395 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
15396 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
15397 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
521196a2 | 15398 | echo "configure:15399: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
15399 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
15400 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15401 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15402 | else | |
15403 | ac_save_LIBS="$LIBS" | |
f09359cf | 15404 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 15405 | cat > conftest.$ac_ext <<EOF |
521196a2 | 15406 | #line 15407 "configure" |
29fd3c0c | 15407 | #include "confdefs.h" |
21d1c967 GD |
15408 | /* Override any gcc2 internal prototype to avoid an error. */ |
15409 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15410 | builtin and then its argument prototype would still apply. */ |
15411 | char IceConnectionNumber(); | |
15412 | ||
15413 | int main() { | |
15414 | IceConnectionNumber() | |
15415 | ; return 0; } | |
15416 | EOF | |
521196a2 | 15417 | if { (eval echo configure:15418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15418 | rm -rf conftest* |
15419 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15420 | else | |
15421 | echo "configure: failed program was:" >&5 | |
15422 | cat conftest.$ac_ext >&5 | |
15423 | rm -rf conftest* | |
15424 | eval "ac_cv_lib_$ac_lib_var=no" | |
15425 | fi | |
15426 | rm -f conftest* | |
15427 | LIBS="$ac_save_LIBS" | |
15428 | ||
15429 | fi | |
15430 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15431 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15432 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
15433 | else |
15434 | echo "$ac_t""no" 1>&6 | |
29fd3c0c | 15435 | fi |
21d1c967 | 15436 | |
a0b9e27f | 15437 | LDFLAGS="$ac_save_LDFLAGS" |
29fd3c0c | 15438 | |
10f2d63a VZ |
15439 | fi |
15440 | ||
8284b0c5 | 15441 | |
21d1c967 | 15442 | if test "$no_x" = "yes"; then |
a0b9e27f | 15443 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
21d1c967 GD |
15444 | fi |
15445 | ||
2b5f62a0 VZ |
15446 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
15447 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
15448 | AFMINSTALL=afminstall |
15449 | COMPILED_X_PROGRAM=0 | |
15450 | ||
a0b9e27f | 15451 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
521196a2 | 15452 | echo "configure:15453: checking for Motif/Lesstif headers" >&5 |
a0b9e27f | 15453 | |
21d1c967 | 15454 | ac_find_includes= |
2b5f62a0 | 15455 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
15456 | do |
15457 | if test -f "$ac_dir/Xm/Xm.h"; then | |
15458 | ac_find_includes=$ac_dir | |
15459 | break | |
15460 | fi | |
15461 | done | |
15462 | ||
15463 | if test "$ac_find_includes" != "" ; then | |
a0b9e27f MB |
15464 | echo "$ac_t""found in $ac_find_includes" 1>&6 |
15465 | ||
2b5f62a0 | 15466 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
15467 | ac_path_to_include="" |
15468 | else | |
2b5f62a0 VZ |
15469 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
15470 | result=$? | |
15471 | if test $result = 0; then | |
15472 | ac_path_to_include="" | |
15473 | else | |
15474 | ac_path_to_include=" -I$ac_find_includes" | |
15475 | fi | |
dd0e4a90 VZ |
15476 | fi |
15477 | ||
15478 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 15479 | else |
a0b9e27f | 15480 | cat > conftest.$ac_ext <<EOF |
521196a2 | 15481 | #line 15482 "configure" |
10f2d63a | 15482 | #include "confdefs.h" |
21d1c967 GD |
15483 | |
15484 | #include <Xm/Xm.h> | |
a0b9e27f MB |
15485 | |
15486 | int main() { | |
21d1c967 GD |
15487 | |
15488 | int version; | |
15489 | version = xmUseVersion; | |
a0b9e27f MB |
15490 | |
15491 | ; return 0; } | |
15492 | EOF | |
521196a2 | 15493 | if { (eval echo configure:15494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15494 | rm -rf conftest* |
15495 | ||
15496 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 15497 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 15498 | |
10f2d63a | 15499 | else |
a0b9e27f MB |
15500 | echo "configure: failed program was:" >&5 |
15501 | cat conftest.$ac_ext >&5 | |
15502 | rm -rf conftest* | |
15503 | ||
15504 | echo "$ac_t""no" 1>&6 | |
15505 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
15506 | ||
15507 | ||
10f2d63a | 15508 | fi |
a0b9e27f | 15509 | rm -f conftest* |
21d1c967 | 15510 | fi |
10f2d63a | 15511 | |
21d1c967 | 15512 | if test "$COMPILED_X_PROGRAM" = 0; then |
a0b9e27f | 15513 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 |
521196a2 | 15514 | echo "configure:15515: checking for Motif/Lesstif library" >&5 |
a0b9e27f | 15515 | |
21d1c967 | 15516 | ac_find_libraries= |
2b5f62a0 | 15517 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15518 | do |
15519 | for ac_extension in a so sl dylib; do | |
15520 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
15521 | ac_find_libraries=$ac_dir | |
15522 | break 2 | |
15523 | fi | |
15524 | done | |
15525 | done | |
15526 | ||
15527 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15528 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15529 | |
a0b9e27f | 15530 | |
21d1c967 GD |
15531 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15532 | result=$? | |
15533 | if test $result = 0; then | |
15534 | ac_path_to_link="" | |
15535 | else | |
15536 | ac_path_to_link=" -L$ac_find_libraries" | |
15537 | fi | |
15538 | ||
21d1c967 | 15539 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 15540 | else |
dd0e4a90 VZ |
15541 | save_CFLAGS=$CFLAGS |
15542 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15543 | ||
a0b9e27f | 15544 | cat > conftest.$ac_ext <<EOF |
521196a2 | 15545 | #line 15546 "configure" |
d836ee96 | 15546 | #include "confdefs.h" |
21d1c967 GD |
15547 | |
15548 | #include <Xm/Xm.h> | |
a0b9e27f MB |
15549 | |
15550 | int main() { | |
21d1c967 GD |
15551 | |
15552 | int version; | |
15553 | version = xmUseVersion; | |
a0b9e27f MB |
15554 | |
15555 | ; return 0; } | |
15556 | EOF | |
521196a2 | 15557 | if { (eval echo configure:15558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15558 | rm -rf conftest* |
15559 | ||
15560 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 15561 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 15562 | |
d836ee96 | 15563 | else |
a0b9e27f MB |
15564 | echo "configure: failed program was:" >&5 |
15565 | cat conftest.$ac_ext >&5 | |
15566 | rm -rf conftest* | |
15567 | ||
15568 | echo "$ac_t""no" 1>&6 | |
15569 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
15570 | ||
15571 | ||
d836ee96 | 15572 | fi |
a0b9e27f | 15573 | rm -f conftest* |
dd0e4a90 VZ |
15574 | |
15575 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15576 | fi |
15577 | fi | |
15578 | ||
15579 | xpm_link= | |
a0b9e27f | 15580 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
521196a2 | 15581 | echo "configure:15582: checking for Xpm library" >&5 |
a0b9e27f | 15582 | |
21d1c967 | 15583 | ac_find_libraries= |
2b5f62a0 | 15584 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15585 | do |
15586 | for ac_extension in a so sl dylib; do | |
15587 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
15588 | ac_find_libraries=$ac_dir | |
15589 | break 2 | |
15590 | fi | |
15591 | done | |
15592 | done | |
15593 | ||
15594 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15595 | |
21d1c967 GD |
15596 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15597 | result=$? | |
15598 | if test $result = 0; then | |
15599 | ac_path_to_link="" | |
15600 | else | |
15601 | ac_path_to_link=" -L$ac_find_libraries" | |
15602 | fi | |
15603 | ||
15604 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 15605 | |
21d1c967 | 15606 | xpm_link=" -lXpm" |
a0b9e27f | 15607 | cat >> confdefs.h <<\EOF |
21d1c967 | 15608 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15609 | EOF |
90dd450c | 15610 | |
a0b9e27f | 15611 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15612 | else |
dd0e4a90 VZ |
15613 | save_CFLAGS=$CFLAGS |
15614 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15615 | ||
a0b9e27f | 15616 | cat > conftest.$ac_ext <<EOF |
521196a2 | 15617 | #line 15618 "configure" |
d836ee96 | 15618 | #include "confdefs.h" |
21d1c967 GD |
15619 | |
15620 | #include <X11/xpm.h> | |
a0b9e27f MB |
15621 | |
15622 | int main() { | |
21d1c967 GD |
15623 | |
15624 | int version; | |
15625 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
15626 | |
15627 | ; return 0; } | |
15628 | EOF | |
521196a2 | 15629 | if { (eval echo configure:15630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15630 | rm -rf conftest* |
15631 | ||
21d1c967 | 15632 | xpm_link=" -lXpm" |
a0b9e27f | 15633 | cat >> confdefs.h <<\EOF |
21d1c967 | 15634 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15635 | EOF |
21d1c967 | 15636 | |
a0b9e27f | 15637 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 15638 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 15639 | |
d836ee96 | 15640 | else |
a0b9e27f MB |
15641 | echo "configure: failed program was:" >&5 |
15642 | cat conftest.$ac_ext >&5 | |
15643 | rm -rf conftest* | |
15644 | ||
15645 | echo "$ac_t""no" 1>&6 | |
15646 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
15647 | ||
15648 | ||
d836ee96 | 15649 | fi |
a0b9e27f | 15650 | rm -f conftest* |
dd0e4a90 VZ |
15651 | |
15652 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15653 | fi |
15654 | ||
a0b9e27f | 15655 | echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6 |
521196a2 | 15656 | echo "configure:15657: checking if we need -lXp and/or -lSM -lICE" >&5 |
6a30f1c8 MB |
15657 | libp_link="" |
15658 | libsm_ice_link="" | |
15659 | libs_found=0 | |
15660 | for libp in "" " -lXp"; do | |
15661 | if test "$libs_found" = "0"; then | |
15662 | for libsm_ice in " -lSM -lICE"; do | |
e26c13cf | 15663 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
15664 | save_LIBS="$LIBS" |
15665 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
15666 | save_CFLAGS=$CFLAGS |
15667 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15668 | ||
a0b9e27f | 15669 | cat > conftest.$ac_ext <<EOF |
521196a2 | 15670 | #line 15671 "configure" |
6a30f1c8 | 15671 | #include "confdefs.h" |
17234b26 | 15672 | |
6a30f1c8 MB |
15673 | #include <Xm/Xm.h> |
15674 | #include <Xm/List.h> | |
a0b9e27f MB |
15675 | |
15676 | int main() { | |
6a30f1c8 MB |
15677 | |
15678 | XmString string = NULL; | |
15679 | Widget w = NULL; | |
15680 | int position = 0; | |
15681 | XmListAddItem(w, string, position); | |
a0b9e27f MB |
15682 | |
15683 | ; return 0; } | |
15684 | EOF | |
521196a2 | 15685 | if { (eval echo configure:15686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15686 | rm -rf conftest* |
15687 | ||
6a30f1c8 MB |
15688 | libp_link="$libp" |
15689 | libsm_ice_link="$libsm_ice" | |
a0b9e27f | 15690 | echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6 |
6a30f1c8 | 15691 | libs_found=1 |
a0b9e27f | 15692 | |
6a30f1c8 | 15693 | else |
a0b9e27f MB |
15694 | echo "configure: failed program was:" >&5 |
15695 | cat conftest.$ac_ext >&5 | |
15696 | rm -rf conftest* | |
15697 | ||
15698 | ||
6a30f1c8 | 15699 | fi |
a0b9e27f | 15700 | rm -f conftest* |
dd0e4a90 | 15701 | |
6a30f1c8 | 15702 | LIBS="$save_LIBS" |
dd0e4a90 | 15703 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
15704 | fi |
15705 | done | |
15706 | fi | |
15707 | done | |
15708 | ||
15709 | if test "$libs_found" = "0"; then | |
a0b9e27f MB |
15710 | echo "$ac_t""can't find the right libraries" 1>&6 |
15711 | { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; } | |
6a30f1c8 MB |
15712 | fi |
15713 | ||
da494b40 MB |
15714 | save_CFLAGS=$CFLAGS |
15715 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15716 | echo $ac_n "checking for Motif 2""... $ac_c" 1>&6 | |
521196a2 | 15717 | echo "configure:15718: checking for Motif 2" >&5 |
da494b40 | 15718 | cat > conftest.$ac_ext <<EOF |
521196a2 | 15719 | #line 15720 "configure" |
da494b40 MB |
15720 | #include "confdefs.h" |
15721 | ||
15722 | #include <Xm/Xm.h> | |
15723 | ||
15724 | int main() { | |
15725 | ||
15726 | #if XmVersion < 2000 | |
15727 | #error "Not Motif 2" | |
15728 | #endif | |
15729 | ||
15730 | ; return 0; } | |
15731 | EOF | |
521196a2 | 15732 | if { (eval echo configure:15733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
da494b40 MB |
15733 | rm -rf conftest* |
15734 | ||
15735 | cat >> confdefs.h <<\EOF | |
15736 | #define __WXMOTIF20__ 1 | |
15737 | EOF | |
15738 | ||
15739 | echo "$ac_t""found" 1>&6 | |
15740 | ||
15741 | else | |
15742 | echo "configure: failed program was:" >&5 | |
15743 | cat conftest.$ac_ext >&5 | |
15744 | rm -rf conftest* | |
15745 | ||
15746 | cat >> confdefs.h <<\EOF | |
15747 | #define __WXMOTIF20__ 0 | |
15748 | EOF | |
15749 | ||
15750 | echo "$ac_t""not found" 1>&6 | |
15751 | ||
15752 | fi | |
15753 | rm -f conftest* | |
15754 | CFLAGS=$save_CFLAGS | |
15755 | ||
6a30f1c8 | 15756 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
69c44812 | 15757 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" |
21d1c967 GD |
15758 | TOOLKIT=MOTIF |
15759 | GUIDIST=MOTIF_DIST | |
15760 | fi | |
15761 | ||
15762 | if test "$wxUSE_MAC" = 1; then | |
0c98a14e | 15763 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" |
21d1c967 | 15764 | |
0c98a14e | 15765 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
15766 | TOOLKIT=MAC |
15767 | GUIDIST=MACX_DIST | |
15768 | fi | |
15769 | ||
15770 | if test "$wxUSE_PM" = 1; then | |
15771 | TOOLKIT=PM | |
15772 | GUIDIST=GTK_DIST | |
2b5f62a0 | 15773 | echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2 |
f657dbe7 MB |
15774 | wxUSE_PROLOGIO="yes" |
15775 | wxUSE_RESOURCES="yes" | |
2b5f62a0 | 15776 | echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2 |
f657dbe7 | 15777 | wxUSE_THREADS="no" |
21d1c967 GD |
15778 | fi |
15779 | ||
15780 | if test "$TOOLKIT" = "PM" ; then | |
15781 | TOOLKIT_DIR="os2" | |
15782 | else | |
15783 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
15784 | fi | |
15785 | ||
15786 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
15787 | ||
15788 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
15789 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
15790 | ||
15791 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
15792 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
15793 | ||
15794 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
15795 | if test "$wxUSE_X11" = 1; then | |
15796 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
15797 | else | |
15798 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
15799 | fi | |
15800 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
15801 | WIDGET_SET=univ | |
15802 | else | |
15803 | ALL_OBJECTS="\$(GUIOBJS)" | |
15804 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15805 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15806 | fi | |
15807 | ||
15808 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
15809 | ||
15810 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
15811 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
15812 | fi | |
15813 | ||
15814 | if test "$wxUSE_HTML" = "yes"; then | |
15815 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
15816 | fi | |
15817 | ||
15818 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
15819 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
15820 | fi | |
15821 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
15822 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
15823 | fi | |
15824 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
15825 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
15826 | fi | |
15827 | ||
15828 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
15829 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 15830 | else |
21d1c967 GD |
15831 | USE_GUI=0 |
15832 | ||
15833 | TOOLKIT_DIR="base" | |
15834 | ||
15835 | if test "$USE_WIN32" = 1 ; then | |
15836 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
15837 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
15838 | ||
15839 | TOOLKIT="MSW" | |
15840 | else | |
15841 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
15842 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
15843 | fi | |
15844 | ||
15845 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15846 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15847 | ||
15848 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
15849 | ||
15850 | GUIDIST="BASE_DIST" | |
15851 | DISTDIR="wxBase" | |
d836ee96 VZ |
15852 | fi |
15853 | ||
8284b0c5 | 15854 | |
21d1c967 GD |
15855 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
15856 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
6232543b | 15857 | fi |
21d1c967 GD |
15858 | |
15859 | if test "$wxUSE_REGEX" = "builtin" ; then | |
15860 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 15861 | fi |
21d1c967 GD |
15862 | if test "$wxUSE_ZLIB" = "builtin" ; then |
15863 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
15864 | fi |
15865 | ||
8284b0c5 | 15866 | |
21d1c967 GD |
15867 | if test "$wxUSE_OPENGL" = "yes"; then |
15868 | if test "$wxUSE_MAC" = 1; then | |
15869 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
15870 | elif test "$wxUSE_MSW" = 1; then | |
15871 | OPENGL_LIBS="-lopengl32 -lglu32" | |
15872 | else | |
a0b9e27f MB |
15873 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
15874 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
521196a2 | 15875 | echo "configure:15876: checking for GL/gl.h" >&5 |
a0b9e27f MB |
15876 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15877 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15878 | else | |
15879 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 15880 | #line 15881 "configure" |
10f2d63a | 15881 | #include "confdefs.h" |
21d1c967 | 15882 | #include <GL/gl.h> |
a0b9e27f MB |
15883 | EOF |
15884 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 15885 | { (eval echo configure:15886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
15886 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15887 | if test -z "$ac_err"; then | |
15888 | rm -rf conftest* | |
15889 | eval "ac_cv_header_$ac_safe=yes" | |
15890 | else | |
15891 | echo "$ac_err" >&5 | |
15892 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 15893 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
15894 | rm -rf conftest* |
15895 | eval "ac_cv_header_$ac_safe=no" | |
703e0a69 | 15896 | fi |
a0b9e27f | 15897 | rm -f conftest* |
698dcdb6 | 15898 | fi |
a0b9e27f MB |
15899 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15900 | echo "$ac_t""yes" 1>&6 | |
15901 | ||
15902 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
521196a2 | 15903 | echo "configure:15904: checking for -lGL" >&5 |
a0b9e27f | 15904 | |
21d1c967 | 15905 | ac_find_libraries= |
2b5f62a0 | 15906 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15907 | do |
15908 | for ac_extension in a so sl dylib; do | |
15909 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
15910 | ac_find_libraries=$ac_dir | |
15911 | break 2 | |
15912 | fi | |
15913 | done | |
15914 | done | |
15915 | ||
15916 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15917 | |
21d1c967 GD |
15918 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15919 | result=$? | |
15920 | if test $result = 0; then | |
15921 | ac_path_to_link="" | |
15922 | else | |
15923 | ac_path_to_link=" -L$ac_find_libraries" | |
15924 | fi | |
15925 | ||
15926 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
15927 | LDFLAGS_GL="$LDFLAGS" | |
15928 | else | |
15929 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15930 | fi | |
15931 | OPENGL_LIBS="-lGL -lGLU" | |
a0b9e27f | 15932 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 15933 | else |
a0b9e27f MB |
15934 | echo "$ac_t""no" 1>&6 |
15935 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
521196a2 | 15936 | echo "configure:15937: checking for -lMesaGL" >&5 |
a0b9e27f | 15937 | |
21d1c967 | 15938 | ac_find_libraries= |
2b5f62a0 | 15939 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15940 | do |
15941 | for ac_extension in a so sl dylib; do | |
15942 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
15943 | ac_find_libraries=$ac_dir | |
15944 | break 2 | |
15945 | fi | |
15946 | done | |
15947 | done | |
15948 | ||
15949 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15950 | |
21d1c967 GD |
15951 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15952 | result=$? | |
15953 | if test $result = 0; then | |
15954 | ac_path_to_link="" | |
15955 | else | |
15956 | ac_path_to_link=" -L$ac_find_libraries" | |
15957 | fi | |
15958 | ||
15959 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15960 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
a0b9e27f | 15961 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 15962 | else |
a0b9e27f | 15963 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
15964 | fi |
15965 | fi | |
a0b9e27f MB |
15966 | |
15967 | else | |
15968 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 15969 | fi |
52127426 | 15970 | |
8284b0c5 | 15971 | |
21d1c967 | 15972 | if test "x$OPENGL_LIBS" = "x"; then |
a0b9e27f | 15973 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } |
21d1c967 GD |
15974 | fi |
15975 | fi | |
90dd450c | 15976 | |
21d1c967 | 15977 | if test "$wxUSE_OPENGL" = "yes"; then |
a0b9e27f | 15978 | cat >> confdefs.h <<\EOF |
21d1c967 | 15979 | #define wxUSE_OPENGL 1 |
a0b9e27f | 15980 | EOF |
21d1c967 | 15981 | |
a0b9e27f | 15982 | cat >> confdefs.h <<\EOF |
21d1c967 | 15983 | #define wxUSE_GLCANVAS 1 |
a0b9e27f | 15984 | EOF |
21d1c967 GD |
15985 | |
15986 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
15987 | fi | |
10f2d63a | 15988 | fi |
21d1c967 GD |
15989 | |
15990 | if test -z "$TOOLKIT_VPATH" ; then | |
15991 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 15992 | fi |
21d1c967 GD |
15993 | |
15994 | if test -n "$TOOLKIT" ; then | |
15995 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
15996 | fi | |
15997 | ||
15998 | lib_unicode_suffix= | |
15999 | if test "$wxUSE_UNICODE" = "yes"; then | |
16000 | lib_unicode_suffix=u | |
90dd450c | 16001 | fi |
698dcdb6 | 16002 | |
21d1c967 GD |
16003 | lib_debug_suffix= |
16004 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
16005 | lib_debug_suffix=d | |
16006 | fi | |
698dcdb6 | 16007 | |
2b5f62a0 VZ |
16008 | WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
16009 | ||
16010 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
16011 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
16012 | |
16013 | if test "$cross_compiling" = "yes"; then | |
16014 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
16015 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
16016 | fi | |
16017 | ||
16018 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
16019 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
2b5f62a0 | 16020 | WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" |
21d1c967 GD |
16021 | |
16022 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
16023 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
16024 | ||
16025 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
16026 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
16027 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
16028 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16029 | ||
16030 | case "${host}" in | |
16031 | *-*-cygwin* | *-*-mingw32* ) | |
16032 | ||
a0b9e27f MB |
16033 | |
16034 | ||
17234b26 | 16035 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
16036 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
16037 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
16038 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
16039 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16040 | else | |
16041 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
16042 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16043 | fi | |
16044 | ;; | |
16045 | ||
16046 | *-*-darwin* ) | |
0c98a14e | 16047 | |
05159a27 GD |
16048 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
16049 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
16050 | ||
16051 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
16052 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
16053 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
16054 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16055 | ||
21d1c967 | 16056 | if test "$wxUSE_MAC" = 1; then |
f346733b GD |
16057 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" |
16058 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
21d1c967 GD |
16059 | fi |
16060 | ;; | |
16061 | esac | |
16062 | ||
16063 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
16064 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
16065 | ||
16066 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
16067 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
16068 | ||
16069 | if test "$wxUSE_OPENGL" = "yes"; then | |
16070 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
16071 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
16072 | fi | |
16073 | ||
8284b0c5 MB |
16074 | |
16075 | ||
21d1c967 GD |
16076 | if test "$wxUSE_SHARED" = "yes"; then |
16077 | case "${host}" in | |
16078 | *-pc-os2_emx | *-pc-os2-emx | \ | |
16079 | *-pc-msdosdjgpp ) | |
16080 | wxUSE_SHARED=no | |
a0b9e27f | 16081 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 |
21d1c967 GD |
16082 | ;; |
16083 | esac | |
16084 | fi | |
16085 | ||
2b5f62a0 VZ |
16086 | if test "$wxUSE_SHARED" = "yes"; then |
16087 | ||
16088 | if test "$wxUSE_OPENGL" = "yes"; then | |
16089 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
16090 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
16091 | else | |
16092 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
16093 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
16094 | fi | |
16095 | ||
16096 | if test "$GCC" = "yes"; then | |
16097 | PIC_FLAG="-fPIC" | |
16098 | fi | |
16099 | ||
16100 | ||
16101 | ||
16102 | found_versioning=no | |
16103 | ||
b4eecb7e | 16104 | |
2b5f62a0 VZ |
16105 | if test $found_versioning = no ; then |
16106 | echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6 | |
521196a2 | 16107 | echo "configure:16108: checking if the linker accepts --version-script" >&5 |
2b5f62a0 VZ |
16108 | if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then |
16109 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16110 | else | |
16111 | ||
16112 | echo "VER_1 { *; };" >conftest.sym | |
16113 | echo "int main() { return 0; }" >conftest.cpp | |
16114 | ||
16115 | if { ac_try=' | |
16116 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
521196a2 | 16117 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then |
2b5f62a0 VZ |
16118 | if test -s conftest.stderr ; then |
16119 | wx_cv_version_script=no | |
16120 | else | |
16121 | wx_cv_version_script=yes | |
16122 | fi | |
16123 | else | |
16124 | wx_cv_version_script=no | |
16125 | fi | |
16126 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
16127 | ||
16128 | fi | |
16129 | ||
16130 | echo "$ac_t""$wx_cv_version_script" 1>&6 | |
16131 | if test $wx_cv_version_script = yes ; then | |
16132 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script" | |
16133 | fi | |
16134 | fi | |
21d1c967 | 16135 | |
21d1c967 GD |
16136 | |
16137 | SHARED_LD="${CXX} -shared -o" | |
16138 | ||
16139 | case "${host}" in | |
16140 | *-hp-hpux* ) | |
ad2622f1 | 16141 | if test "$GCC" = "yes"; then |
85d5e282 | 16142 | SHARED_LD="${CXX} -shared ${PIC_FLAG} -o" |
21d1c967 GD |
16143 | else |
16144 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
16145 | ||
16146 | SHARED_LD="${CXX} -b -o" | |
16147 | PIC_FLAG="+Z" | |
16148 | fi | |
16149 | ||
16150 | if test "$wxUSE_OPENGL" = "yes"; then | |
16151 | WX_ALL_INSTALLED="preinstall_gl" | |
16152 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
16153 | else | |
16154 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
16155 | fi | |
16156 | ;; | |
16157 | ||
16158 | *-*-linux* ) | |
16159 | if test "$GCC" != "yes"; then | |
a0b9e27f | 16160 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 |
521196a2 | 16161 | echo "configure:16162: checking for Intel compiler" >&5 |
a0b9e27f MB |
16162 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
16163 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16164 | else | |
16165 | ||
16166 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 16167 | #line 16168 "configure" |
698dcdb6 | 16168 | #include "confdefs.h" |
90dd450c | 16169 | |
a0b9e27f | 16170 | int main() { |
90dd450c | 16171 | |
21d1c967 GD |
16172 | #ifndef __INTEL_COMPILER |
16173 | #error Not icc | |
16174 | #endif | |
a0b9e27f MB |
16175 | |
16176 | ; return 0; } | |
16177 | EOF | |
521196a2 | 16178 | if { (eval echo configure:16179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16179 | rm -rf conftest* |
21d1c967 | 16180 | wx_cv_prog_icc=yes |
6232543b | 16181 | else |
a0b9e27f MB |
16182 | echo "configure: failed program was:" >&5 |
16183 | cat conftest.$ac_ext >&5 | |
16184 | rm -rf conftest* | |
16185 | wx_cv_prog_icc=no | |
16186 | ||
5c6fa7d2 | 16187 | fi |
a0b9e27f MB |
16188 | rm -f conftest* |
16189 | ||
247f5006 | 16190 | fi |
a0b9e27f MB |
16191 | |
16192 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
21d1c967 GD |
16193 | if test "$wx_cv_prog_icc" = "yes"; then |
16194 | PIC_FLAG="-KPIC" | |
16195 | fi | |
16196 | fi | |
16197 | ||
16198 | if test "$wxUSE_SONAME" = "yes" ; then | |
16199 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
16200 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
16201 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
16202 | fi | |
16203 | ;; | |
16204 | ||
16205 | *-*-solaris2* ) | |
16206 | if test "$GCC" = yes ; then | |
16207 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
16208 | else | |
16209 | SHARED_LD="${CXX} -G -o" | |
16210 | PIC_FLAG="-KPIC" | |
16211 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
16212 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
16213 | fi | |
16214 | ;; | |
16215 | ||
16216 | *-*-darwin* ) | |
b2fee376 GD |
16217 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL" |
16218 | CFLAGS="$CFLAGS -fno-common" | |
16219 | CXXFLAGS="$CXXFLAGS -fno-common" | |
21d1c967 GD |
16220 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" |
16221 | PIC_FLAG="-dynamic -fPIC" | |
f346733b | 16222 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}" |
05159a27 | 16223 | SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}" |
21d1c967 GD |
16224 | ;; |
16225 | ||
16226 | *-*-aix* ) | |
2b5f62a0 VZ |
16227 | if test "$GCC" != "yes"; then |
16228 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
321d2b14 | 16229 | set dummy makeC++SharedLib; ac_word=$2 |
a0b9e27f | 16230 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
521196a2 | 16231 | echo "configure:16232: checking for $ac_word" >&5 |
a0b9e27f MB |
16232 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then |
16233 | echo $ac_n "(cached) $ac_c" 1>&6 | |
321d2b14 VZ |
16234 | else |
16235 | if test -n "$AIX_CXX_LD"; then | |
16236 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
16237 | else | |
a0b9e27f MB |
16238 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16239 | ac_dummy="$PATH" | |
16240 | for ac_dir in $ac_dummy; do | |
16241 | test -z "$ac_dir" && ac_dir=. | |
16242 | if test -f $ac_dir/$ac_word; then | |
16243 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
16244 | break | |
16245 | fi | |
16246 | done | |
16247 | IFS="$ac_save_ifs" | |
321d2b14 VZ |
16248 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
16249 | fi | |
16250 | fi | |
a0b9e27f | 16251 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" |
321d2b14 | 16252 | if test -n "$AIX_CXX_LD"; then |
a0b9e27f | 16253 | echo "$ac_t""$AIX_CXX_LD" 1>&6 |
321d2b14 | 16254 | else |
a0b9e27f | 16255 | echo "$ac_t""no" 1>&6 |
321d2b14 VZ |
16256 | fi |
16257 | ||
8284b0c5 | 16258 | |
2b5f62a0 VZ |
16259 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" |
16260 | fi | |
21d1c967 GD |
16261 | ;; |
16262 | ||
16263 | *-*-cygwin* | *-*-mingw32* ) | |
21d1c967 GD |
16264 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
16265 | ||
16266 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
16267 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
16268 | ||
16269 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
16270 | ||
f657dbe7 MB |
16271 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
16272 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
16273 | ||
16274 | if test "$wxUSE_OPENGL" = "yes"; then | |
16275 | LIBS="${LIBS} ${OPENGL_LIBS}" | |
21d1c967 GD |
16276 | fi |
16277 | ;; | |
16278 | ||
16279 | *-*-beos* ) | |
16280 | SHARED_LD="${LD} -shared -o" | |
16281 | ;; | |
16282 | ||
2b5f62a0 VZ |
16283 | *-*-irix* ) |
16284 | if test "$GCC" != "yes"; then | |
16285 | PIC_FLAG="-KPIC" | |
16286 | fi | |
16287 | ;; | |
16288 | ||
21d1c967 GD |
16289 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
16290 | *-*-sunos4* | \ | |
21d1c967 GD |
16291 | *-*-osf* | \ |
16292 | *-*-dgux5* | \ | |
16293 | *-*-sysv5* ) | |
16294 | ;; | |
16295 | ||
16296 | *) | |
a0b9e27f | 16297 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
21d1c967 GD |
16298 | esac |
16299 | ||
16300 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
16301 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
16302 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
16303 | fi | |
16304 | ||
16305 | WX_TARGET_LIBRARY_TYPE="so" | |
16306 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 16307 | fi |
10f2d63a | 16308 | |
21d1c967 GD |
16309 | if test "$wxUSE_SHARED" = "no"; then |
16310 | ||
16311 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
16312 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
16313 | fi | |
16314 | ||
16315 | if test "$wxUSE_MAC" = 1; then | |
16316 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
16317 | fi | |
16318 | ||
16319 | if test "$wxUSE_OPENGL" = "yes"; then | |
16320 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
16321 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
16322 | else | |
16323 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
16324 | fi | |
16325 | ||
16326 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
16327 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
16328 | ||
16329 | WX_TARGET_LIBRARY_TYPE="a" | |
16330 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
16331 | |
16332 | STATIC_FLAG="yes" | |
16333 | else | |
16334 | STATIC_FLAG="no" | |
90dd450c | 16335 | fi |
1e487827 | 16336 | |
93fac604 VZ |
16337 | MACRESCOMP="@#" |
16338 | MACSETFILE="@#" | |
36825681 | 16339 | MACRESWXCONFIG="#" |
21d1c967 GD |
16340 | if test "$wxUSE_MAC" = 1; then |
16341 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
16342 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
16343 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
16344 | # Extract the first word of "Rez", so it can be a program name with args. | |
16345 | set dummy Rez; ac_word=$2 | |
a0b9e27f | 16346 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
521196a2 | 16347 | echo "configure:16348: checking for $ac_word" >&5 |
a0b9e27f MB |
16348 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
16349 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b93d0d08 | 16350 | else |
21d1c967 GD |
16351 | if test -n "$RESCOMP"; then |
16352 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 16353 | else |
a0b9e27f MB |
16354 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16355 | ac_dummy="$PATH" | |
16356 | for ac_dir in $ac_dummy; do | |
16357 | test -z "$ac_dir" && ac_dir=. | |
16358 | if test -f $ac_dir/$ac_word; then | |
16359 | ac_cv_prog_RESCOMP="Rez" | |
16360 | break | |
16361 | fi | |
16362 | done | |
16363 | IFS="$ac_save_ifs" | |
21d1c967 | 16364 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 16365 | fi |
b93d0d08 | 16366 | fi |
a0b9e27f | 16367 | RESCOMP="$ac_cv_prog_RESCOMP" |
21d1c967 | 16368 | if test -n "$RESCOMP"; then |
a0b9e27f | 16369 | echo "$ac_t""$RESCOMP" 1>&6 |
90dd450c | 16370 | else |
a0b9e27f | 16371 | echo "$ac_t""no" 1>&6 |
90dd450c | 16372 | fi |
b93d0d08 | 16373 | |
21d1c967 GD |
16374 | # Extract the first word of "DeRez", so it can be a program name with args. |
16375 | set dummy DeRez; ac_word=$2 | |
a0b9e27f | 16376 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
521196a2 | 16377 | echo "configure:16378: checking for $ac_word" >&5 |
a0b9e27f MB |
16378 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
16379 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3a922bb4 | 16380 | else |
21d1c967 GD |
16381 | if test -n "$DEREZ"; then |
16382 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 16383 | else |
a0b9e27f MB |
16384 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16385 | ac_dummy="$PATH" | |
16386 | for ac_dir in $ac_dummy; do | |
16387 | test -z "$ac_dir" && ac_dir=. | |
16388 | if test -f $ac_dir/$ac_word; then | |
16389 | ac_cv_prog_DEREZ="DeRez" | |
16390 | break | |
16391 | fi | |
16392 | done | |
16393 | IFS="$ac_save_ifs" | |
21d1c967 | 16394 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 16395 | fi |
90dd450c | 16396 | fi |
a0b9e27f | 16397 | DEREZ="$ac_cv_prog_DEREZ" |
21d1c967 | 16398 | if test -n "$DEREZ"; then |
a0b9e27f | 16399 | echo "$ac_t""$DEREZ" 1>&6 |
90dd450c | 16400 | else |
a0b9e27f | 16401 | echo "$ac_t""no" 1>&6 |
3a922bb4 | 16402 | fi |
698dcdb6 | 16403 | |
36825681 GD |
16404 | # Extract the first word of "SetFile", so it can be a program name with args. |
16405 | set dummy SetFile; ac_word=$2 | |
16406 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
521196a2 | 16407 | echo "configure:16408: checking for $ac_word" >&5 |
36825681 GD |
16408 | if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then |
16409 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16410 | else | |
16411 | if test -n "$SETFILE"; then | |
16412 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
16413 | else | |
16414 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
16415 | ac_dummy="$PATH" | |
16416 | for ac_dir in $ac_dummy; do | |
16417 | test -z "$ac_dir" && ac_dir=. | |
16418 | if test -f $ac_dir/$ac_word; then | |
16419 | ac_cv_prog_SETFILE="SetFile" | |
16420 | break | |
16421 | fi | |
16422 | done | |
16423 | IFS="$ac_save_ifs" | |
16424 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
16425 | fi | |
16426 | fi | |
16427 | SETFILE="$ac_cv_prog_SETFILE" | |
16428 | if test -n "$SETFILE"; then | |
16429 | echo "$ac_t""$SETFILE" 1>&6 | |
16430 | else | |
16431 | echo "$ac_t""no" 1>&6 | |
16432 | fi | |
16433 | ||
21d1c967 | 16434 | MACOSX_BUNDLE="bundle" |
36825681 GD |
16435 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" |
16436 | MACSETFILE="\$(SETFILE)" | |
16437 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o" | |
21d1c967 GD |
16438 | else |
16439 | if test "$wxUSE_PM" = 1; then | |
36825681 | 16440 | MACRESCOMP="emxbind -ep" |
90dd450c | 16441 | fi |
4f14bcd8 | 16442 | fi |
10f2d63a | 16443 | |
8284b0c5 | 16444 | |
a0b9e27f | 16445 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
521196a2 | 16446 | echo "configure:16447: checking for ANSI C header files" >&5 |
a0b9e27f MB |
16447 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
16448 | echo $ac_n "(cached) $ac_c" 1>&6 | |
52127426 | 16449 | else |
a0b9e27f | 16450 | cat > conftest.$ac_ext <<EOF |
521196a2 | 16451 | #line 16452 "configure" |
52127426 | 16452 | #include "confdefs.h" |
a0b9e27f MB |
16453 | #include <stdlib.h> |
16454 | #include <stdarg.h> | |
16455 | #include <string.h> | |
16456 | #include <float.h> | |
16457 | EOF | |
16458 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 16459 | { (eval echo configure:16460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
16460 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16461 | if test -z "$ac_err"; then | |
16462 | rm -rf conftest* | |
16463 | ac_cv_header_stdc=yes | |
16464 | else | |
16465 | echo "$ac_err" >&5 | |
16466 | echo "configure: failed program was:" >&5 | |
16467 | cat conftest.$ac_ext >&5 | |
16468 | rm -rf conftest* | |
16469 | ac_cv_header_stdc=no | |
16470 | fi | |
16471 | rm -f conftest* | |
16472 | ||
16473 | if test $ac_cv_header_stdc = yes; then | |
16474 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
16475 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 16476 | #line 16477 "configure" |
a0b9e27f MB |
16477 | #include "confdefs.h" |
16478 | #include <string.h> | |
16479 | EOF | |
16480 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16481 | egrep "memchr" >/dev/null 2>&1; then | |
16482 | : | |
16483 | else | |
16484 | rm -rf conftest* | |
16485 | ac_cv_header_stdc=no | |
16486 | fi | |
16487 | rm -f conftest* | |
16488 | ||
16489 | fi | |
16490 | ||
16491 | if test $ac_cv_header_stdc = yes; then | |
16492 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
16493 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 16494 | #line 16495 "configure" |
a0b9e27f MB |
16495 | #include "confdefs.h" |
16496 | #include <stdlib.h> | |
16497 | EOF | |
16498 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16499 | egrep "free" >/dev/null 2>&1; then | |
16500 | : | |
7b4a847f | 16501 | else |
a0b9e27f MB |
16502 | rm -rf conftest* |
16503 | ac_cv_header_stdc=no | |
52127426 | 16504 | fi |
a0b9e27f MB |
16505 | rm -f conftest* |
16506 | ||
52127426 | 16507 | fi |
a0b9e27f MB |
16508 | |
16509 | if test $ac_cv_header_stdc = yes; then | |
16510 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
16511 | if test "$cross_compiling" = yes; then | |
247f5006 VZ |
16512 | : |
16513 | else | |
a0b9e27f | 16514 | cat > conftest.$ac_ext <<EOF |
521196a2 | 16515 | #line 16516 "configure" |
a0b9e27f MB |
16516 | #include "confdefs.h" |
16517 | #include <ctype.h> | |
16518 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
16519 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
16520 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
16521 | int main () { int i; for (i = 0; i < 256; i++) | |
16522 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
16523 | exit (0); } | |
247f5006 | 16524 | |
a0b9e27f | 16525 | EOF |
521196a2 | 16526 | if { (eval echo configure:16527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
16527 | then |
16528 | : | |
16529 | else | |
16530 | echo "configure: failed program was:" >&5 | |
16531 | cat conftest.$ac_ext >&5 | |
16532 | rm -fr conftest* | |
16533 | ac_cv_header_stdc=no | |
16534 | fi | |
16535 | rm -fr conftest* | |
16536 | fi | |
16537 | ||
16538 | fi | |
16539 | fi | |
16540 | ||
16541 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
16542 | if test $ac_cv_header_stdc = yes; then | |
16543 | cat >> confdefs.h <<\EOF | |
16544 | #define STDC_HEADERS 1 | |
16545 | EOF | |
8284b0c5 MB |
16546 | |
16547 | fi | |
16548 | ||
a0b9e27f | 16549 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
521196a2 | 16550 | echo "configure:16551: checking for mode_t" >&5 |
a0b9e27f MB |
16551 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
16552 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16553 | else |
a0b9e27f | 16554 | cat > conftest.$ac_ext <<EOF |
521196a2 | 16555 | #line 16556 "configure" |
8284b0c5 | 16556 | #include "confdefs.h" |
a0b9e27f MB |
16557 | #include <sys/types.h> |
16558 | #if STDC_HEADERS | |
16559 | #include <stdlib.h> | |
16560 | #include <stddef.h> | |
8284b0c5 | 16561 | #endif |
a0b9e27f MB |
16562 | EOF |
16563 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16564 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16565 | rm -rf conftest* | |
16566 | ac_cv_type_mode_t=yes | |
5c6fa7d2 | 16567 | else |
a0b9e27f MB |
16568 | rm -rf conftest* |
16569 | ac_cv_type_mode_t=no | |
16570 | fi | |
16571 | rm -f conftest* | |
16572 | ||
8284b0c5 | 16573 | fi |
a0b9e27f MB |
16574 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
16575 | if test $ac_cv_type_mode_t = no; then | |
16576 | cat >> confdefs.h <<\EOF | |
16577 | #define mode_t int | |
16578 | EOF | |
16579 | ||
8284b0c5 | 16580 | fi |
a0b9e27f MB |
16581 | |
16582 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
521196a2 | 16583 | echo "configure:16584: checking for off_t" >&5 |
a0b9e27f MB |
16584 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
16585 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16586 | else | |
16587 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 16588 | #line 16589 "configure" |
a0b9e27f MB |
16589 | #include "confdefs.h" |
16590 | #include <sys/types.h> | |
16591 | #if STDC_HEADERS | |
16592 | #include <stdlib.h> | |
16593 | #include <stddef.h> | |
16594 | #endif | |
16595 | EOF | |
16596 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16597 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16598 | rm -rf conftest* | |
16599 | ac_cv_type_off_t=yes | |
247f5006 | 16600 | else |
a0b9e27f MB |
16601 | rm -rf conftest* |
16602 | ac_cv_type_off_t=no | |
16603 | fi | |
16604 | rm -f conftest* | |
247f5006 | 16605 | |
a0b9e27f MB |
16606 | fi |
16607 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
16608 | if test $ac_cv_type_off_t = no; then | |
16609 | cat >> confdefs.h <<\EOF | |
90dd450c | 16610 | #define off_t long |
a0b9e27f | 16611 | EOF |
10f2d63a | 16612 | |
90dd450c | 16613 | fi |
10f2d63a | 16614 | |
a0b9e27f | 16615 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
521196a2 | 16616 | echo "configure:16617: checking for pid_t" >&5 |
a0b9e27f MB |
16617 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
16618 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 16619 | else |
a0b9e27f | 16620 | cat > conftest.$ac_ext <<EOF |
521196a2 | 16621 | #line 16622 "configure" |
10f2d63a | 16622 | #include "confdefs.h" |
a0b9e27f MB |
16623 | #include <sys/types.h> |
16624 | #if STDC_HEADERS | |
16625 | #include <stdlib.h> | |
16626 | #include <stddef.h> | |
8284b0c5 | 16627 | #endif |
a0b9e27f MB |
16628 | EOF |
16629 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16630 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16631 | rm -rf conftest* | |
90dd450c | 16632 | ac_cv_type_pid_t=yes |
698dcdb6 | 16633 | else |
a0b9e27f MB |
16634 | rm -rf conftest* |
16635 | ac_cv_type_pid_t=no | |
8284b0c5 | 16636 | fi |
a0b9e27f | 16637 | rm -f conftest* |
247f5006 | 16638 | |
a0b9e27f MB |
16639 | fi |
16640 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
16641 | if test $ac_cv_type_pid_t = no; then | |
16642 | cat >> confdefs.h <<\EOF | |
90dd450c | 16643 | #define pid_t int |
a0b9e27f | 16644 | EOF |
10f2d63a | 16645 | |
7b4a847f RR |
16646 | fi |
16647 | ||
a0b9e27f | 16648 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
521196a2 | 16649 | echo "configure:16650: checking for size_t" >&5 |
a0b9e27f MB |
16650 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
16651 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 16652 | else |
a0b9e27f | 16653 | cat > conftest.$ac_ext <<EOF |
521196a2 | 16654 | #line 16655 "configure" |
7b4a847f | 16655 | #include "confdefs.h" |
a0b9e27f MB |
16656 | #include <sys/types.h> |
16657 | #if STDC_HEADERS | |
16658 | #include <stdlib.h> | |
16659 | #include <stddef.h> | |
8284b0c5 | 16660 | #endif |
a0b9e27f MB |
16661 | EOF |
16662 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16663 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16664 | rm -rf conftest* | |
90dd450c | 16665 | ac_cv_type_size_t=yes |
18dbb1f6 | 16666 | else |
a0b9e27f MB |
16667 | rm -rf conftest* |
16668 | ac_cv_type_size_t=no | |
52127426 | 16669 | fi |
a0b9e27f | 16670 | rm -f conftest* |
247f5006 | 16671 | |
a0b9e27f MB |
16672 | fi |
16673 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
16674 | if test $ac_cv_type_size_t = no; then | |
16675 | cat >> confdefs.h <<\EOF | |
90dd450c | 16676 | #define size_t unsigned |
a0b9e27f | 16677 | EOF |
90dd450c VZ |
16678 | |
16679 | fi | |
16680 | ||
a0b9e27f | 16681 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
521196a2 | 16682 | echo "configure:16683: checking for uid_t in sys/types.h" >&5 |
a0b9e27f MB |
16683 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
16684 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a | 16685 | else |
a0b9e27f | 16686 | cat > conftest.$ac_ext <<EOF |
521196a2 | 16687 | #line 16688 "configure" |
b3e8d00a | 16688 | #include "confdefs.h" |
90dd450c | 16689 | #include <sys/types.h> |
a0b9e27f | 16690 | EOF |
90dd450c VZ |
16691 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
16692 | egrep "uid_t" >/dev/null 2>&1; then | |
a0b9e27f | 16693 | rm -rf conftest* |
90dd450c | 16694 | ac_cv_type_uid_t=yes |
b3e8d00a | 16695 | else |
a0b9e27f | 16696 | rm -rf conftest* |
90dd450c | 16697 | ac_cv_type_uid_t=no |
b3e8d00a | 16698 | fi |
90dd450c | 16699 | rm -f conftest* |
b3e8d00a | 16700 | |
4f14bcd8 | 16701 | fi |
247f5006 | 16702 | |
a0b9e27f MB |
16703 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
16704 | if test $ac_cv_type_uid_t = no; then | |
16705 | cat >> confdefs.h <<\EOF | |
90dd450c | 16706 | #define uid_t int |
a0b9e27f | 16707 | EOF |
247f5006 | 16708 | |
a0b9e27f | 16709 | cat >> confdefs.h <<\EOF |
90dd450c | 16710 | #define gid_t int |
a0b9e27f | 16711 | EOF |
4f14bcd8 | 16712 | |
b3e8d00a | 16713 | fi |
b3e8d00a | 16714 | |
8284b0c5 MB |
16715 | |
16716 | ||
a0b9e27f MB |
16717 | ac_ext=C |
16718 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 16719 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16720 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16721 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16722 | cross_compiling=$ac_cv_prog_cxx_cross | |
90dd450c | 16723 | |
a0b9e27f | 16724 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
521196a2 | 16725 | echo "configure:16726: checking if size_t is unsigned int" >&5 |
a0b9e27f MB |
16726 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
16727 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 16728 | else |
a0b9e27f | 16729 | cat > conftest.$ac_ext <<EOF |
521196a2 | 16730 | #line 16731 "configure" |
10f2d63a | 16731 | #include "confdefs.h" |
90dd450c | 16732 | #include <stddef.h> |
a0b9e27f | 16733 | int main() { |
90dd450c VZ |
16734 | |
16735 | return 0; } | |
16736 | ||
16737 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
16738 | ||
16739 | int bar() { | |
a0b9e27f MB |
16740 | |
16741 | ; return 0; } | |
16742 | EOF | |
521196a2 | 16743 | if { (eval echo configure:16744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16744 | rm -rf conftest* |
90dd450c | 16745 | wx_cv_size_t_is_uint=no |
698dcdb6 | 16746 | else |
a0b9e27f MB |
16747 | echo "configure: failed program was:" >&5 |
16748 | cat conftest.$ac_ext >&5 | |
16749 | rm -rf conftest* | |
16750 | wx_cv_size_t_is_uint=yes | |
16751 | ||
5c6fa7d2 | 16752 | fi |
a0b9e27f | 16753 | rm -f conftest* |
8284b0c5 | 16754 | |
247f5006 | 16755 | fi |
a0b9e27f MB |
16756 | |
16757 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
4f14bcd8 | 16758 | |
90dd450c | 16759 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
a0b9e27f | 16760 | cat >> confdefs.h <<\EOF |
90dd450c | 16761 | #define wxSIZE_T_IS_UINT 1 |
a0b9e27f | 16762 | EOF |
698dcdb6 | 16763 | |
90dd450c | 16764 | else |
a0b9e27f | 16765 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 |
521196a2 | 16766 | echo "configure:16767: checking if size_t is unsigned long" >&5 |
a0b9e27f MB |
16767 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
16768 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 16769 | else |
a0b9e27f | 16770 | cat > conftest.$ac_ext <<EOF |
521196a2 | 16771 | #line 16772 "configure" |
10f2d63a | 16772 | #include "confdefs.h" |
90dd450c | 16773 | #include <stddef.h> |
a0b9e27f | 16774 | int main() { |
90dd450c VZ |
16775 | |
16776 | return 0; } | |
16777 | ||
16778 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
16779 | ||
16780 | int bar() { | |
a0b9e27f MB |
16781 | |
16782 | ; return 0; } | |
16783 | EOF | |
521196a2 | 16784 | if { (eval echo configure:16785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16785 | rm -rf conftest* |
90dd450c | 16786 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 16787 | else |
a0b9e27f MB |
16788 | echo "configure: failed program was:" >&5 |
16789 | cat conftest.$ac_ext >&5 | |
16790 | rm -rf conftest* | |
16791 | wx_cv_size_t_is_ulong=yes | |
16792 | ||
5c6fa7d2 | 16793 | fi |
a0b9e27f MB |
16794 | rm -f conftest* |
16795 | ||
247f5006 | 16796 | fi |
a0b9e27f MB |
16797 | |
16798 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
10f2d63a | 16799 | |
90dd450c | 16800 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
a0b9e27f | 16801 | cat >> confdefs.h <<\EOF |
90dd450c | 16802 | #define wxSIZE_T_IS_ULONG 1 |
a0b9e27f | 16803 | EOF |
4f14bcd8 GD |
16804 | |
16805 | fi | |
90dd450c | 16806 | fi |
1e487827 | 16807 | |
90dd450c | 16808 | ac_ext=c |
a0b9e27f | 16809 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 16810 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
16811 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16812 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16813 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 16814 | |
5c6fa7d2 | 16815 | |
8284b0c5 | 16816 | |
a0b9e27f | 16817 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
521196a2 | 16818 | echo "configure:16819: checking for pw_gecos in struct passwd" >&5 |
a0b9e27f MB |
16819 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
16820 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16821 | else |
a0b9e27f MB |
16822 | |
16823 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 16824 | #line 16825 "configure" |
4f14bcd8 | 16825 | #include "confdefs.h" |
90dd450c | 16826 | #include <pwd.h> |
a0b9e27f | 16827 | int main() { |
f6bcfd97 | 16828 | |
90dd450c VZ |
16829 | char *p; |
16830 | struct passwd *pw; | |
16831 | p = pw->pw_gecos; | |
a0b9e27f MB |
16832 | |
16833 | ; return 0; } | |
16834 | EOF | |
521196a2 | 16835 | if { (eval echo configure:16836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
16836 | rm -rf conftest* |
16837 | ||
90dd450c | 16838 | wx_cv_struct_pw_gecos=yes |
a0b9e27f | 16839 | |
10f2d63a | 16840 | else |
a0b9e27f MB |
16841 | echo "configure: failed program was:" >&5 |
16842 | cat conftest.$ac_ext >&5 | |
16843 | rm -rf conftest* | |
16844 | ||
90dd450c | 16845 | wx_cv_struct_pw_gecos=no |
a0b9e27f MB |
16846 | |
16847 | ||
5c6fa7d2 | 16848 | fi |
a0b9e27f MB |
16849 | rm -f conftest* |
16850 | ||
247f5006 VZ |
16851 | |
16852 | fi | |
a0b9e27f MB |
16853 | |
16854 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
c521c494 | 16855 | |
90dd450c | 16856 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
a0b9e27f | 16857 | cat >> confdefs.h <<\EOF |
90dd450c | 16858 | #define HAVE_PW_GECOS 1 |
a0b9e27f | 16859 | EOF |
c521c494 | 16860 | |
90dd450c | 16861 | fi |
4f14bcd8 | 16862 | |
8284b0c5 | 16863 | |
d29b553b | 16864 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
a0b9e27f | 16865 | cat >> confdefs.h <<\EOF |
d74f4b5a | 16866 | #define wxUSE_WCHAR_T 1 |
a0b9e27f | 16867 | EOF |
d74f4b5a | 16868 | |
8284b0c5 | 16869 | |
d74f4b5a VZ |
16870 | WCSLEN_FOUND=0 |
16871 | WCHAR_LINK= | |
a0b9e27f | 16872 | for ac_func in wcslen |
7a30264c | 16873 | do |
a0b9e27f | 16874 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 16875 | echo "configure:16876: checking for $ac_func" >&5 |
a0b9e27f MB |
16876 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16877 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16878 | else | |
16879 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 16880 | #line 16881 "configure" |
4f14bcd8 | 16881 | #include "confdefs.h" |
7a30264c | 16882 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 16883 | which can conflict with char $ac_func(); below. */ |
7a30264c | 16884 | #include <assert.h> |
4f14bcd8 GD |
16885 | /* Override any gcc2 internal prototype to avoid an error. */ |
16886 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16887 | builtin and then its argument prototype would still apply. */ |
16888 | char $ac_func(); | |
16889 | ||
16890 | int main() { | |
16891 | ||
7a30264c VZ |
16892 | /* The GNU C library defines this for functions which it implements |
16893 | to always fail with ENOSYS. Some functions are actually named | |
16894 | something starting with __ and the normal name is an alias. */ | |
16895 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16896 | choke me | |
16897 | #else | |
a0b9e27f | 16898 | $ac_func(); |
7a30264c VZ |
16899 | #endif |
16900 | ||
a0b9e27f MB |
16901 | ; return 0; } |
16902 | EOF | |
521196a2 | 16903 | if { (eval echo configure:16904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16904 | rm -rf conftest* |
16905 | eval "ac_cv_func_$ac_func=yes" | |
16906 | else | |
16907 | echo "configure: failed program was:" >&5 | |
16908 | cat conftest.$ac_ext >&5 | |
16909 | rm -rf conftest* | |
16910 | eval "ac_cv_func_$ac_func=no" | |
16911 | fi | |
16912 | rm -f conftest* | |
16913 | fi | |
16914 | ||
16915 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16916 | echo "$ac_t""yes" 1>&6 | |
16917 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16918 | cat >> confdefs.h <<EOF | |
16919 | #define $ac_tr_func 1 | |
16920 | EOF | |
d74f4b5a | 16921 | WCSLEN_FOUND=1 |
a0b9e27f MB |
16922 | else |
16923 | echo "$ac_t""no" 1>&6 | |
7a30264c VZ |
16924 | fi |
16925 | done | |
9d8deca0 | 16926 | |
8284b0c5 | 16927 | |
d74f4b5a | 16928 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 16929 | if test "$TOOLKIT" = "MSW"; then |
a0b9e27f | 16930 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
521196a2 | 16931 | echo "configure:16932: checking for wcslen in -lmsvcrt" >&5 |
a0b9e27f MB |
16932 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
16933 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16934 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16935 | else |
a0b9e27f | 16936 | ac_save_LIBS="$LIBS" |
7a30264c | 16937 | LIBS="-lmsvcrt $LIBS" |
a0b9e27f | 16938 | cat > conftest.$ac_ext <<EOF |
521196a2 | 16939 | #line 16940 "configure" |
10f2d63a | 16940 | #include "confdefs.h" |
4f14bcd8 GD |
16941 | /* Override any gcc2 internal prototype to avoid an error. */ |
16942 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16943 | builtin and then its argument prototype would still apply. */ |
16944 | char wcslen(); | |
16945 | ||
16946 | int main() { | |
16947 | wcslen() | |
16948 | ; return 0; } | |
16949 | EOF | |
521196a2 | 16950 | if { (eval echo configure:16951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16951 | rm -rf conftest* |
16952 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16953 | else | |
16954 | echo "configure: failed program was:" >&5 | |
16955 | cat conftest.$ac_ext >&5 | |
16956 | rm -rf conftest* | |
16957 | eval "ac_cv_lib_$ac_lib_var=no" | |
16958 | fi | |
16959 | rm -f conftest* | |
16960 | LIBS="$ac_save_LIBS" | |
16961 | ||
16962 | fi | |
16963 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16964 | echo "$ac_t""yes" 1>&6 | |
d74f4b5a | 16965 | WCHAR_OK=1 |
a0b9e27f MB |
16966 | else |
16967 | echo "$ac_t""no" 1>&6 | |
d29b553b | 16968 | fi |
698dcdb6 | 16969 | |
7a30264c | 16970 | else |
a0b9e27f | 16971 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
521196a2 | 16972 | echo "configure:16973: checking for wcslen in -lw" >&5 |
a0b9e27f MB |
16973 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
16974 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16975 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 16976 | else |
a0b9e27f | 16977 | ac_save_LIBS="$LIBS" |
7a30264c | 16978 | LIBS="-lw $LIBS" |
a0b9e27f | 16979 | cat > conftest.$ac_ext <<EOF |
521196a2 | 16980 | #line 16981 "configure" |
95c8801c | 16981 | #include "confdefs.h" |
4f14bcd8 GD |
16982 | /* Override any gcc2 internal prototype to avoid an error. */ |
16983 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16984 | builtin and then its argument prototype would still apply. */ |
16985 | char wcslen(); | |
52127426 | 16986 | |
a0b9e27f MB |
16987 | int main() { |
16988 | wcslen() | |
16989 | ; return 0; } | |
16990 | EOF | |
521196a2 | 16991 | if { (eval echo configure:16992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16992 | rm -rf conftest* |
16993 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16994 | else | |
16995 | echo "configure: failed program was:" >&5 | |
16996 | cat conftest.$ac_ext >&5 | |
16997 | rm -rf conftest* | |
16998 | eval "ac_cv_lib_$ac_lib_var=no" | |
16999 | fi | |
17000 | rm -f conftest* | |
17001 | LIBS="$ac_save_LIBS" | |
17002 | ||
17003 | fi | |
17004 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17005 | echo "$ac_t""yes" 1>&6 | |
17006 | ||
7a30264c | 17007 | WCHAR_LINK=" -lw" |
d74f4b5a | 17008 | WCSLEN_FOUND=1 |
a0b9e27f MB |
17009 | |
17010 | else | |
17011 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17012 | fi |
10f2d63a | 17013 | |
7a30264c | 17014 | fi |
d29b553b | 17015 | fi |
95c8801c | 17016 | |
d74f4b5a | 17017 | if test "$WCSLEN_FOUND" = 1; then |
a0b9e27f | 17018 | cat >> confdefs.h <<\EOF |
d74f4b5a | 17019 | #define HAVE_WCSLEN 1 |
a0b9e27f | 17020 | EOF |
10f2d63a | 17021 | |
d74f4b5a | 17022 | fi |
52127426 | 17023 | |
a0b9e27f | 17024 | for ac_func in wcsrtombs |
eb4efbdc | 17025 | do |
a0b9e27f | 17026 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 17027 | echo "configure:17028: checking for $ac_func" >&5 |
a0b9e27f MB |
17028 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17029 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17030 | else | |
17031 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 17032 | #line 17033 "configure" |
eb4efbdc VZ |
17033 | #include "confdefs.h" |
17034 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17035 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
17036 | #include <assert.h> |
17037 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4f14bcd8 | 17038 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17039 | builtin and then its argument prototype would still apply. */ |
17040 | char $ac_func(); | |
17041 | ||
17042 | int main() { | |
17043 | ||
10f2d63a VZ |
17044 | /* The GNU C library defines this for functions which it implements |
17045 | to always fail with ENOSYS. Some functions are actually named | |
17046 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 17047 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
17048 | choke me |
17049 | #else | |
a0b9e27f | 17050 | $ac_func(); |
10f2d63a VZ |
17051 | #endif |
17052 | ||
a0b9e27f MB |
17053 | ; return 0; } |
17054 | EOF | |
521196a2 | 17055 | if { (eval echo configure:17056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17056 | rm -rf conftest* |
17057 | eval "ac_cv_func_$ac_func=yes" | |
17058 | else | |
17059 | echo "configure: failed program was:" >&5 | |
17060 | cat conftest.$ac_ext >&5 | |
17061 | rm -rf conftest* | |
17062 | eval "ac_cv_func_$ac_func=no" | |
17063 | fi | |
17064 | rm -f conftest* | |
17065 | fi | |
270a909e | 17066 | |
a0b9e27f MB |
17067 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17068 | echo "$ac_t""yes" 1>&6 | |
17069 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17070 | cat >> confdefs.h <<EOF | |
17071 | #define $ac_tr_func 1 | |
17072 | EOF | |
17073 | ||
17074 | else | |
17075 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17076 | fi |
247f5006 | 17077 | done |
1e487827 | 17078 | |
af15babd | 17079 | else |
a0b9e27f | 17080 | echo "configure: warning: Wide character support is unavailable" 1>&2 |
7b4a847f | 17081 | fi |
52127426 | 17082 | |
8284b0c5 | 17083 | |
a0b9e27f MB |
17084 | ac_ext=C |
17085 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
247f5006 | 17086 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17087 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17088 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17089 | cross_compiling=$ac_cv_prog_cxx_cross | |
af15babd | 17090 | |
247f5006 VZ |
17091 | |
17092 | for ac_func in vsnprintf | |
17093 | do | |
a0b9e27f | 17094 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 17095 | echo "configure:17096: checking for $ac_func" >&5 |
a0b9e27f MB |
17096 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17097 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17098 | else | |
17099 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 17100 | #line 17101 "configure" |
af15babd | 17101 | #include "confdefs.h" |
247f5006 | 17102 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17103 | which can conflict with char $ac_func(); below. */ |
247f5006 VZ |
17104 | #include <assert.h> |
17105 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17106 | #ifdef __cplusplus | |
17107 | extern "C" | |
17108 | #endif | |
17109 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17110 | builtin and then its argument prototype would still apply. */ |
17111 | char $ac_func(); | |
17112 | ||
17113 | int main() { | |
17114 | ||
247f5006 VZ |
17115 | /* The GNU C library defines this for functions which it implements |
17116 | to always fail with ENOSYS. Some functions are actually named | |
17117 | something starting with __ and the normal name is an alias. */ | |
17118 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17119 | choke me | |
17120 | #else | |
a0b9e27f | 17121 | $ac_func(); |
247f5006 | 17122 | #endif |
af15babd | 17123 | |
a0b9e27f MB |
17124 | ; return 0; } |
17125 | EOF | |
521196a2 | 17126 | if { (eval echo configure:17127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17127 | rm -rf conftest* |
17128 | eval "ac_cv_func_$ac_func=yes" | |
17129 | else | |
17130 | echo "configure: failed program was:" >&5 | |
17131 | cat conftest.$ac_ext >&5 | |
17132 | rm -rf conftest* | |
17133 | eval "ac_cv_func_$ac_func=no" | |
17134 | fi | |
17135 | rm -f conftest* | |
17136 | fi | |
52127426 | 17137 | |
a0b9e27f MB |
17138 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17139 | echo "$ac_t""yes" 1>&6 | |
17140 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17141 | cat >> confdefs.h <<EOF | |
17142 | #define $ac_tr_func 1 | |
17143 | EOF | |
17144 | ||
17145 | else | |
17146 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 17147 | fi |
247f5006 | 17148 | done |
8284b0c5 | 17149 | |
4f14bcd8 | 17150 | |
8d90d2f2 VZ |
17151 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
17152 | echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6 | |
521196a2 | 17153 | echo "configure:17154: checking for vsnprintf declaration" >&5 |
8d90d2f2 VZ |
17154 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then |
17155 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17156 | else | |
17157 | ||
17158 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 17159 | #line 17160 "configure" |
8d90d2f2 VZ |
17160 | #include "confdefs.h" |
17161 | ||
17162 | #include <stdio.h> | |
17163 | #include <stdarg.h> | |
17164 | ||
17165 | int main() { | |
17166 | ||
17167 | char *buf; | |
17168 | va_list ap; | |
17169 | vsnprintf(buf, 10u, "%s", ap); | |
17170 | ||
17171 | ; return 0; } | |
17172 | EOF | |
521196a2 | 17173 | if { (eval echo configure:17174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
8d90d2f2 VZ |
17174 | rm -rf conftest* |
17175 | wx_cv_func_vsnprintf_decl=yes | |
17176 | else | |
17177 | echo "configure: failed program was:" >&5 | |
17178 | cat conftest.$ac_ext >&5 | |
17179 | rm -rf conftest* | |
17180 | wx_cv_func_vsnprintf_decl=no | |
17181 | ||
17182 | fi | |
17183 | rm -f conftest* | |
17184 | ||
17185 | ||
17186 | fi | |
17187 | ||
17188 | echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6 | |
17189 | ||
17190 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
17191 | cat >> confdefs.h <<\EOF | |
17192 | #define HAVE_VSNPRINTF_DECL 1 | |
17193 | EOF | |
17194 | ||
17195 | fi | |
17196 | fi | |
17197 | ||
247f5006 | 17198 | if test "$wxUSE_UNICODE" = yes; then |
a0b9e27f | 17199 | for ac_func in fputwc wprintf vswprintf |
d74f4b5a | 17200 | do |
a0b9e27f | 17201 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 17202 | echo "configure:17203: checking for $ac_func" >&5 |
a0b9e27f MB |
17203 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17204 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17205 | else | |
17206 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 17207 | #line 17208 "configure" |
d74f4b5a VZ |
17208 | #include "confdefs.h" |
17209 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17210 | which can conflict with char $ac_func(); below. */ |
d74f4b5a VZ |
17211 | #include <assert.h> |
17212 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
17213 | #ifdef __cplusplus |
17214 | extern "C" | |
17215 | #endif | |
d74f4b5a | 17216 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17217 | builtin and then its argument prototype would still apply. */ |
17218 | char $ac_func(); | |
17219 | ||
17220 | int main() { | |
17221 | ||
d74f4b5a VZ |
17222 | /* The GNU C library defines this for functions which it implements |
17223 | to always fail with ENOSYS. Some functions are actually named | |
17224 | something starting with __ and the normal name is an alias. */ | |
17225 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17226 | choke me | |
17227 | #else | |
a0b9e27f | 17228 | $ac_func(); |
d74f4b5a VZ |
17229 | #endif |
17230 | ||
a0b9e27f MB |
17231 | ; return 0; } |
17232 | EOF | |
521196a2 | 17233 | if { (eval echo configure:17234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17234 | rm -rf conftest* |
17235 | eval "ac_cv_func_$ac_func=yes" | |
17236 | else | |
17237 | echo "configure: failed program was:" >&5 | |
17238 | cat conftest.$ac_ext >&5 | |
17239 | rm -rf conftest* | |
17240 | eval "ac_cv_func_$ac_func=no" | |
17241 | fi | |
17242 | rm -f conftest* | |
17243 | fi | |
d74f4b5a | 17244 | |
a0b9e27f MB |
17245 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17246 | echo "$ac_t""yes" 1>&6 | |
17247 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17248 | cat >> confdefs.h <<EOF | |
17249 | #define $ac_tr_func 1 | |
17250 | EOF | |
17251 | ||
17252 | else | |
17253 | echo "$ac_t""no" 1>&6 | |
d74f4b5a VZ |
17254 | fi |
17255 | done | |
17256 | ||
8d90d2f2 | 17257 | |
79668cae | 17258 | echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6 |
521196a2 | 17259 | echo "configure:17260: checking for _vsnwprintf" >&5 |
79668cae | 17260 | cat > conftest.$ac_ext <<EOF |
521196a2 | 17261 | #line 17262 "configure" |
79668cae MB |
17262 | #include "confdefs.h" |
17263 | #include <wchar.h> | |
17264 | int main() { | |
17265 | &_vsnwprintf; | |
17266 | ; return 0; } | |
17267 | EOF | |
521196a2 | 17268 | if { (eval echo configure:17269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
79668cae MB |
17269 | rm -rf conftest* |
17270 | echo "$ac_t""yes" 1>&6 | |
17271 | cat >> confdefs.h <<\EOF | |
17272 | #define HAVE__VSNWPRINTF 1 | |
17273 | EOF | |
17274 | ||
17275 | else | |
17276 | echo "configure: failed program was:" >&5 | |
17277 | cat conftest.$ac_ext >&5 | |
17278 | rm -rf conftest* | |
17279 | echo "$ac_t""no" 1>&6 | |
17280 | fi | |
17281 | rm -f conftest*; | |
d74f4b5a VZ |
17282 | fi |
17283 | ||
247f5006 | 17284 | ac_ext=c |
a0b9e27f | 17285 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
247f5006 | 17286 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17287 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17288 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17289 | cross_compiling=$ac_cv_prog_cc_cross | |
247f5006 VZ |
17290 | |
17291 | ||
17292 | ||
17293 | ||
4f14bcd8 | 17294 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 17295 | |
8284b0c5 MB |
17296 | |
17297 | ||
a0b9e27f MB |
17298 | ac_ext=C |
17299 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 17300 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17301 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17302 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17303 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 17304 | |
52127426 | 17305 | |
a0b9e27f MB |
17306 | |
17307 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
17308 | if test "${with_libiconv_prefix+set}" = set; then |
17309 | withval="$with_libiconv_prefix" | |
a0b9e27f | 17310 | |
b040e242 VS |
17311 | for dir in `echo "$withval" | tr : ' '`; do |
17312 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
17313 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
17314 | done | |
a0b9e27f MB |
17315 | |
17316 | fi | |
b040e242 VS |
17317 | |
17318 | ||
a0b9e27f | 17319 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
521196a2 | 17320 | echo "configure:17321: checking for iconv" >&5 |
a0b9e27f MB |
17321 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
17322 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 17323 | else |
a0b9e27f | 17324 | |
b040e242 VS |
17325 | am_cv_func_iconv="no, consider installing GNU libiconv" |
17326 | am_cv_lib_iconv=no | |
a0b9e27f | 17327 | cat > conftest.$ac_ext <<EOF |
521196a2 | 17328 | #line 17329 "configure" |
af15babd | 17329 | #include "confdefs.h" |
b040e242 | 17330 | #include <stdlib.h> |
4f14bcd8 | 17331 | #include <iconv.h> |
a0b9e27f | 17332 | int main() { |
b040e242 VS |
17333 | iconv_t cd = iconv_open("",""); |
17334 | iconv(cd,NULL,NULL,NULL,NULL); | |
17335 | iconv_close(cd); | |
a0b9e27f MB |
17336 | ; return 0; } |
17337 | EOF | |
521196a2 | 17338 | if { (eval echo configure:17339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17339 | rm -rf conftest* |
b040e242 | 17340 | am_cv_func_iconv=yes |
af15babd | 17341 | else |
a0b9e27f MB |
17342 | echo "configure: failed program was:" >&5 |
17343 | cat conftest.$ac_ext >&5 | |
b040e242 | 17344 | fi |
a0b9e27f | 17345 | rm -f conftest* |
b040e242 VS |
17346 | if test "$am_cv_func_iconv" != yes; then |
17347 | am_save_LIBS="$LIBS" | |
17348 | LIBS="$LIBS -liconv" | |
a0b9e27f | 17349 | cat > conftest.$ac_ext <<EOF |
521196a2 | 17350 | #line 17351 "configure" |
b040e242 VS |
17351 | #include "confdefs.h" |
17352 | #include <stdlib.h> | |
17353 | #include <iconv.h> | |
a0b9e27f | 17354 | int main() { |
b040e242 VS |
17355 | iconv_t cd = iconv_open("",""); |
17356 | iconv(cd,NULL,NULL,NULL,NULL); | |
17357 | iconv_close(cd); | |
a0b9e27f MB |
17358 | ; return 0; } |
17359 | EOF | |
521196a2 | 17360 | if { (eval echo configure:17361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17361 | rm -rf conftest* |
b040e242 VS |
17362 | am_cv_lib_iconv=yes |
17363 | am_cv_func_iconv=yes | |
17364 | else | |
a0b9e27f MB |
17365 | echo "configure: failed program was:" >&5 |
17366 | cat conftest.$ac_ext >&5 | |
af15babd | 17367 | fi |
a0b9e27f | 17368 | rm -f conftest* |
b040e242 VS |
17369 | LIBS="$am_save_LIBS" |
17370 | fi | |
a0b9e27f | 17371 | |
247f5006 | 17372 | fi |
247f5006 | 17373 | |
a0b9e27f MB |
17374 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
17375 | if test "$am_cv_func_iconv" = yes; then | |
17376 | cat >> confdefs.h <<\EOF | |
b040e242 | 17377 | #define HAVE_ICONV 1 |
a0b9e27f | 17378 | EOF |
b040e242 | 17379 | |
a0b9e27f | 17380 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
521196a2 | 17381 | echo "configure:17382: checking if iconv needs const" >&5 |
a0b9e27f MB |
17382 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
17383 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b040e242 | 17384 | else |
a0b9e27f | 17385 | cat > conftest.$ac_ext <<EOF |
521196a2 | 17386 | #line 17387 "configure" |
b040e242 VS |
17387 | #include "confdefs.h" |
17388 | ||
17389 | #include <stdlib.h> | |
17390 | #include <iconv.h> | |
17391 | extern | |
17392 | #ifdef __cplusplus | |
17393 | "C" | |
17394 | #endif | |
17395 | #if defined(__STDC__) || defined(__cplusplus) | |
17396 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
17397 | #else | |
17398 | size_t iconv(); | |
17399 | #endif | |
a0b9e27f MB |
17400 | |
17401 | int main() { | |
af15babd | 17402 | |
a0b9e27f MB |
17403 | ; return 0; } |
17404 | EOF | |
521196a2 | 17405 | if { (eval echo configure:17406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 17406 | rm -rf conftest* |
b7043674 | 17407 | wx_cv_func_iconv_const="no" |
b040e242 | 17408 | else |
a0b9e27f MB |
17409 | echo "configure: failed program was:" >&5 |
17410 | cat conftest.$ac_ext >&5 | |
17411 | rm -rf conftest* | |
17412 | wx_cv_func_iconv_const="yes" | |
17413 | ||
5c6fa7d2 | 17414 | fi |
a0b9e27f MB |
17415 | rm -f conftest* |
17416 | ||
247f5006 | 17417 | fi |
a0b9e27f MB |
17418 | |
17419 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 | |
b7043674 VZ |
17420 | |
17421 | iconv_const= | |
1c405bb5 | 17422 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
17423 | iconv_const="const" |
17424 | fi | |
17425 | ||
a0b9e27f | 17426 | cat >> confdefs.h <<EOF |
f09359cf | 17427 | #define ICONV_CONST $iconv_const |
a0b9e27f | 17428 | EOF |
b040e242 VS |
17429 | |
17430 | fi | |
17431 | LIBICONV= | |
17432 | if test "$am_cv_lib_iconv" = yes; then | |
17433 | LIBICONV="-liconv" | |
17434 | fi | |
a0b9e27f | 17435 | |
b040e242 VS |
17436 | |
17437 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 17438 | ac_ext=c |
a0b9e27f | 17439 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17440 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17441 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17442 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17443 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 17444 | |
5c6fa7d2 | 17445 | |
8284b0c5 | 17446 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 17447 | for ac_func in sigaction |
af15babd | 17448 | do |
a0b9e27f | 17449 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 17450 | echo "configure:17451: checking for $ac_func" >&5 |
a0b9e27f MB |
17451 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17452 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17453 | else | |
17454 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 17455 | #line 17456 "configure" |
af15babd VZ |
17456 | #include "confdefs.h" |
17457 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17458 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17459 | #include <assert.h> |
17460 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17461 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17462 | builtin and then its argument prototype would still apply. */ |
17463 | char $ac_func(); | |
17464 | ||
17465 | int main() { | |
17466 | ||
af15babd VZ |
17467 | /* The GNU C library defines this for functions which it implements |
17468 | to always fail with ENOSYS. Some functions are actually named | |
17469 | something starting with __ and the normal name is an alias. */ | |
17470 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17471 | choke me | |
17472 | #else | |
a0b9e27f | 17473 | $ac_func(); |
af15babd VZ |
17474 | #endif |
17475 | ||
a0b9e27f MB |
17476 | ; return 0; } |
17477 | EOF | |
521196a2 | 17478 | if { (eval echo configure:17479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17479 | rm -rf conftest* |
17480 | eval "ac_cv_func_$ac_func=yes" | |
17481 | else | |
17482 | echo "configure: failed program was:" >&5 | |
17483 | cat conftest.$ac_ext >&5 | |
17484 | rm -rf conftest* | |
17485 | eval "ac_cv_func_$ac_func=no" | |
17486 | fi | |
17487 | rm -f conftest* | |
17488 | fi | |
7b4a847f | 17489 | |
a0b9e27f MB |
17490 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17491 | echo "$ac_t""yes" 1>&6 | |
17492 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17493 | cat >> confdefs.h <<EOF | |
17494 | #define $ac_tr_func 1 | |
17495 | EOF | |
17496 | ||
17497 | else | |
17498 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
17499 | fi |
17500 | done | |
17501 | ||
8284b0c5 | 17502 | |
4f14bcd8 | 17503 | if test "$ac_cv_func_sigaction" = "no"; then |
a0b9e27f | 17504 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
4f14bcd8 GD |
17505 | wxUSE_ON_FATAL_EXCEPTION=no |
17506 | fi | |
17507 | ||
17508 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a0b9e27f MB |
17509 | |
17510 | ac_ext=C | |
17511 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 17512 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17513 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17514 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17515 | cross_compiling=$ac_cv_prog_cxx_cross | |
7b4a847f | 17516 | |
5c6fa7d2 | 17517 | |
a0b9e27f | 17518 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
521196a2 | 17519 | echo "configure:17520: checking for sa_handler type" >&5 |
a0b9e27f MB |
17520 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
17521 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 17522 | else |
a0b9e27f MB |
17523 | |
17524 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 17525 | #line 17526 "configure" |
af15babd | 17526 | #include "confdefs.h" |
4f14bcd8 | 17527 | #include <signal.h> |
a0b9e27f | 17528 | int main() { |
4f14bcd8 GD |
17529 | |
17530 | extern void testSigHandler(int); | |
17531 | ||
17532 | struct sigaction sa; | |
17533 | sa.sa_handler = testSigHandler; | |
a0b9e27f MB |
17534 | |
17535 | ; return 0; } | |
17536 | EOF | |
521196a2 | 17537 | if { (eval echo configure:17538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17538 | rm -rf conftest* |
17539 | ||
4f14bcd8 | 17540 | wx_cv_type_sa_handler=int |
a0b9e27f | 17541 | |
af15babd | 17542 | else |
a0b9e27f MB |
17543 | echo "configure: failed program was:" >&5 |
17544 | cat conftest.$ac_ext >&5 | |
17545 | rm -rf conftest* | |
17546 | ||
4f14bcd8 | 17547 | wx_cv_type_sa_handler=void |
a0b9e27f | 17548 | |
5c6fa7d2 | 17549 | fi |
a0b9e27f MB |
17550 | rm -f conftest* |
17551 | ||
247f5006 | 17552 | fi |
a0b9e27f MB |
17553 | |
17554 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
4f14bcd8 GD |
17555 | |
17556 | ac_ext=c | |
a0b9e27f | 17557 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17558 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17559 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17560 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17561 | cross_compiling=$ac_cv_prog_cc_cross | |
579d8138 | 17562 | |
8284b0c5 | 17563 | |
a0b9e27f | 17564 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17565 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
a0b9e27f | 17566 | EOF |
af15babd | 17567 | |
4f14bcd8 GD |
17568 | fi |
17569 | fi | |
af15babd | 17570 | |
a1d22ad7 | 17571 | for ac_func in mkstemp mktemp |
af15babd | 17572 | do |
a0b9e27f | 17573 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 17574 | echo "configure:17575: checking for $ac_func" >&5 |
a0b9e27f MB |
17575 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17576 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17577 | else | |
17578 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 17579 | #line 17580 "configure" |
af15babd VZ |
17580 | #include "confdefs.h" |
17581 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17582 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17583 | #include <assert.h> |
17584 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17585 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17586 | builtin and then its argument prototype would still apply. */ |
17587 | char $ac_func(); | |
17588 | ||
17589 | int main() { | |
17590 | ||
af15babd VZ |
17591 | /* The GNU C library defines this for functions which it implements |
17592 | to always fail with ENOSYS. Some functions are actually named | |
17593 | something starting with __ and the normal name is an alias. */ | |
17594 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17595 | choke me | |
17596 | #else | |
a0b9e27f | 17597 | $ac_func(); |
af15babd VZ |
17598 | #endif |
17599 | ||
a0b9e27f MB |
17600 | ; return 0; } |
17601 | EOF | |
521196a2 | 17602 | if { (eval echo configure:17603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17603 | rm -rf conftest* |
17604 | eval "ac_cv_func_$ac_func=yes" | |
17605 | else | |
17606 | echo "configure: failed program was:" >&5 | |
17607 | cat conftest.$ac_ext >&5 | |
17608 | rm -rf conftest* | |
17609 | eval "ac_cv_func_$ac_func=no" | |
17610 | fi | |
17611 | rm -f conftest* | |
17612 | fi | |
af15babd | 17613 | |
a0b9e27f MB |
17614 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17615 | echo "$ac_t""yes" 1>&6 | |
17616 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17617 | cat >> confdefs.h <<EOF | |
17618 | #define $ac_tr_func 1 | |
17619 | EOF | |
ade35f11 | 17620 | break |
a0b9e27f MB |
17621 | else |
17622 | echo "$ac_t""no" 1>&6 | |
ade35f11 VZ |
17623 | fi |
17624 | done | |
17625 | ||
8284b0c5 | 17626 | |
a0b9e27f | 17627 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
521196a2 | 17628 | echo "configure:17629: checking for statfs" >&5 |
a0b9e27f MB |
17629 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
17630 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 17631 | else |
a0b9e27f | 17632 | cat > conftest.$ac_ext <<EOF |
521196a2 | 17633 | #line 17634 "configure" |
4f14bcd8 GD |
17634 | #include "confdefs.h" |
17635 | ||
17636 | #if defined(__BSD__) | |
17637 | #include <sys/param.h> | |
17638 | #include <sys/mount.h> | |
17639 | #else | |
17640 | #include <sys/vfs.h> | |
17641 | #endif | |
a0b9e27f MB |
17642 | |
17643 | int main() { | |
4f14bcd8 GD |
17644 | |
17645 | long l; | |
17646 | struct statfs fs; | |
17647 | statfs("/", &fs); | |
17648 | l = fs.f_bsize; | |
17649 | l += fs.f_blocks; | |
17650 | l += fs.f_bavail; | |
a0b9e27f MB |
17651 | |
17652 | ; return 0; } | |
17653 | EOF | |
521196a2 | 17654 | if { (eval echo configure:17655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17655 | rm -rf conftest* |
17656 | ||
4f14bcd8 | 17657 | wx_cv_func_statfs=yes |
a0b9e27f | 17658 | |
4f14bcd8 | 17659 | else |
a0b9e27f MB |
17660 | echo "configure: failed program was:" >&5 |
17661 | cat conftest.$ac_ext >&5 | |
17662 | rm -rf conftest* | |
17663 | ||
4f14bcd8 | 17664 | wx_cv_func_statfs=no |
a0b9e27f MB |
17665 | |
17666 | ||
5c6fa7d2 | 17667 | fi |
a0b9e27f | 17668 | rm -f conftest* |
8284b0c5 | 17669 | |
247f5006 | 17670 | fi |
a0b9e27f MB |
17671 | |
17672 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
4f14bcd8 GD |
17673 | |
17674 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 17675 | wx_cv_type_statvfs_t="struct statfs" |
a0b9e27f | 17676 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17677 | #define HAVE_STATFS 1 |
a0b9e27f | 17678 | EOF |
4f14bcd8 GD |
17679 | |
17680 | else | |
a0b9e27f | 17681 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 |
521196a2 | 17682 | echo "configure:17683: checking for statvfs" >&5 |
a0b9e27f MB |
17683 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
17684 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 17685 | else |
a0b9e27f | 17686 | cat > conftest.$ac_ext <<EOF |
521196a2 | 17687 | #line 17688 "configure" |
af15babd | 17688 | #include "confdefs.h" |
af15babd | 17689 | |
54ab82b3 VZ |
17690 | #include <stddef.h> |
17691 | #include <sys/statvfs.h> | |
a0b9e27f MB |
17692 | |
17693 | int main() { | |
af15babd | 17694 | |
54ab82b3 | 17695 | statvfs("/", NULL); |
a0b9e27f MB |
17696 | |
17697 | ; return 0; } | |
17698 | EOF | |
521196a2 | 17699 | if { (eval echo configure:17700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 17700 | rm -rf conftest* |
54ab82b3 | 17701 | wx_cv_func_statvfs=yes |
af15babd | 17702 | else |
a0b9e27f MB |
17703 | echo "configure: failed program was:" >&5 |
17704 | cat conftest.$ac_ext >&5 | |
17705 | rm -rf conftest* | |
54ab82b3 | 17706 | wx_cv_func_statvfs=no |
a0b9e27f | 17707 | |
5c6fa7d2 | 17708 | fi |
a0b9e27f MB |
17709 | rm -f conftest* |
17710 | ||
247f5006 | 17711 | fi |
a0b9e27f MB |
17712 | |
17713 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 | |
af15babd | 17714 | |
4f14bcd8 | 17715 | if test "$wx_cv_func_statvfs" = "yes"; then |
54ab82b3 VZ |
17716 | |
17717 | ac_ext=C | |
17718 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17719 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17720 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17721 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17722 | cross_compiling=$ac_cv_prog_cxx_cross | |
17723 | ||
17724 | ||
17725 | echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6 | |
521196a2 | 17726 | echo "configure:17727: checking for statvfs argument type" >&5 |
54ab82b3 VZ |
17727 | if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then |
17728 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17729 | else | |
17730 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 17731 | #line 17732 "configure" |
54ab82b3 VZ |
17732 | #include "confdefs.h" |
17733 | ||
17734 | #include <sys/statvfs.h> | |
17735 | ||
17736 | int main() { | |
17737 | ||
17738 | long l; | |
17739 | statvfs_t fs; | |
17740 | statvfs("/", &fs); | |
17741 | l = fs.f_bsize; | |
17742 | l += fs.f_blocks; | |
17743 | l += fs.f_bavail; | |
17744 | ||
17745 | ; return 0; } | |
17746 | EOF | |
521196a2 | 17747 | if { (eval echo configure:17748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54ab82b3 VZ |
17748 | rm -rf conftest* |
17749 | wx_cv_type_statvfs_t=statvfs_t | |
17750 | else | |
17751 | echo "configure: failed program was:" >&5 | |
17752 | cat conftest.$ac_ext >&5 | |
17753 | rm -rf conftest* | |
17754 | ||
17755 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 17756 | #line 17757 "configure" |
54ab82b3 VZ |
17757 | #include "confdefs.h" |
17758 | ||
17759 | #include <sys/statvfs.h> | |
17760 | ||
17761 | int main() { | |
17762 | ||
17763 | long l; | |
65d8ef1e | 17764 | struct statvfs fs; |
54ab82b3 VZ |
17765 | statvfs("/", &fs); |
17766 | l = fs.f_bsize; | |
17767 | l += fs.f_blocks; | |
17768 | l += fs.f_bavail; | |
17769 | ||
17770 | ; return 0; } | |
17771 | EOF | |
521196a2 | 17772 | if { (eval echo configure:17773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54ab82b3 VZ |
17773 | rm -rf conftest* |
17774 | wx_cv_type_statvfs_t="struct statvfs" | |
17775 | else | |
17776 | echo "configure: failed program was:" >&5 | |
17777 | cat conftest.$ac_ext >&5 | |
17778 | rm -rf conftest* | |
17779 | wx_cv_type_statvfs_t="unknown" | |
17780 | ||
17781 | fi | |
17782 | rm -f conftest* | |
17783 | ||
17784 | ||
17785 | fi | |
17786 | rm -f conftest* | |
17787 | ||
17788 | fi | |
17789 | ||
17790 | echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6 | |
17791 | ||
17792 | ac_ext=c | |
17793 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17794 | ac_cpp='$CPP $CPPFLAGS' | |
17795 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17796 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17797 | cross_compiling=$ac_cv_prog_cc_cross | |
17798 | ||
17799 | ||
17800 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
17801 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17802 | #define HAVE_STATVFS 1 |
a0b9e27f | 17803 | EOF |
af15babd | 17804 | |
54ab82b3 | 17805 | fi |
4f14bcd8 | 17806 | else |
54ab82b3 | 17807 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
17808 | fi |
17809 | fi | |
af15babd | 17810 | |
54ab82b3 VZ |
17811 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
17812 | cat >> confdefs.h <<EOF | |
17813 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
17814 | EOF | |
17815 | ||
17816 | else | |
17817 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
17818 | fi | |
17819 | ||
4f14bcd8 | 17820 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 17821 | for ac_func in fcntl flock |
af15babd | 17822 | do |
a0b9e27f | 17823 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 17824 | echo "configure:17825: checking for $ac_func" >&5 |
a0b9e27f MB |
17825 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17826 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17827 | else | |
17828 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 17829 | #line 17830 "configure" |
af15babd VZ |
17830 | #include "confdefs.h" |
17831 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17832 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17833 | #include <assert.h> |
17834 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd | 17835 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17836 | builtin and then its argument prototype would still apply. */ |
17837 | char $ac_func(); | |
17838 | ||
17839 | int main() { | |
17840 | ||
af15babd VZ |
17841 | /* The GNU C library defines this for functions which it implements |
17842 | to always fail with ENOSYS. Some functions are actually named | |
17843 | something starting with __ and the normal name is an alias. */ | |
17844 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17845 | choke me | |
17846 | #else | |
a0b9e27f | 17847 | $ac_func(); |
af15babd VZ |
17848 | #endif |
17849 | ||
a0b9e27f MB |
17850 | ; return 0; } |
17851 | EOF | |
521196a2 | 17852 | if { (eval echo configure:17853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17853 | rm -rf conftest* |
17854 | eval "ac_cv_func_$ac_func=yes" | |
17855 | else | |
17856 | echo "configure: failed program was:" >&5 | |
17857 | cat conftest.$ac_ext >&5 | |
17858 | rm -rf conftest* | |
17859 | eval "ac_cv_func_$ac_func=no" | |
17860 | fi | |
17861 | rm -f conftest* | |
17862 | fi | |
17863 | ||
17864 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17865 | echo "$ac_t""yes" 1>&6 | |
17866 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17867 | cat >> confdefs.h <<EOF | |
17868 | #define $ac_tr_func 1 | |
17869 | EOF | |
4f14bcd8 | 17870 | break |
a0b9e27f MB |
17871 | else |
17872 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
17873 | fi |
17874 | done | |
17875 | ||
8284b0c5 | 17876 | |
4f14bcd8 | 17877 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
a0b9e27f | 17878 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f14bcd8 GD |
17879 | wxUSE_SNGLINST_CHECKER=no |
17880 | fi | |
17881 | fi | |
af15babd | 17882 | |
4f14bcd8 | 17883 | for ac_func in timegm |
af15babd | 17884 | do |
a0b9e27f | 17885 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 17886 | echo "configure:17887: checking for $ac_func" >&5 |
a0b9e27f MB |
17887 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17888 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17889 | else | |
17890 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 17891 | #line 17892 "configure" |
af15babd VZ |
17892 | #include "confdefs.h" |
17893 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17894 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17895 | #include <assert.h> |
17896 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17897 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17898 | builtin and then its argument prototype would still apply. */ |
17899 | char $ac_func(); | |
17900 | ||
17901 | int main() { | |
17902 | ||
af15babd VZ |
17903 | /* The GNU C library defines this for functions which it implements |
17904 | to always fail with ENOSYS. Some functions are actually named | |
17905 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
17906 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
17907 | choke me | |
17908 | #else | |
a0b9e27f | 17909 | $ac_func(); |
247f5006 VZ |
17910 | #endif |
17911 | ||
a0b9e27f MB |
17912 | ; return 0; } |
17913 | EOF | |
521196a2 | 17914 | if { (eval echo configure:17915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17915 | rm -rf conftest* |
17916 | eval "ac_cv_func_$ac_func=yes" | |
17917 | else | |
17918 | echo "configure: failed program was:" >&5 | |
17919 | cat conftest.$ac_ext >&5 | |
17920 | rm -rf conftest* | |
17921 | eval "ac_cv_func_$ac_func=no" | |
17922 | fi | |
17923 | rm -f conftest* | |
17924 | fi | |
703e0a69 | 17925 | |
a0b9e27f MB |
17926 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17927 | echo "$ac_t""yes" 1>&6 | |
17928 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17929 | cat >> confdefs.h <<EOF | |
17930 | #define $ac_tr_func 1 | |
17931 | EOF | |
17932 | ||
17933 | else | |
17934 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
17935 | fi |
17936 | done | |
17937 | ||
8284b0c5 | 17938 | |
4f14bcd8 | 17939 | for ac_func in putenv setenv |
10f2d63a | 17940 | do |
a0b9e27f | 17941 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 17942 | echo "configure:17943: checking for $ac_func" >&5 |
a0b9e27f MB |
17943 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17944 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17945 | else | |
17946 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 17947 | #line 17948 "configure" |
af15babd VZ |
17948 | #include "confdefs.h" |
17949 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17950 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17951 | #include <assert.h> |
17952 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17953 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17954 | builtin and then its argument prototype would still apply. */ |
17955 | char $ac_func(); | |
17956 | ||
17957 | int main() { | |
17958 | ||
af15babd VZ |
17959 | /* The GNU C library defines this for functions which it implements |
17960 | to always fail with ENOSYS. Some functions are actually named | |
17961 | something starting with __ and the normal name is an alias. */ | |
17962 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17963 | choke me | |
17964 | #else | |
a0b9e27f | 17965 | $ac_func(); |
af15babd VZ |
17966 | #endif |
17967 | ||
a0b9e27f MB |
17968 | ; return 0; } |
17969 | EOF | |
521196a2 | 17970 | if { (eval echo configure:17971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17971 | rm -rf conftest* |
17972 | eval "ac_cv_func_$ac_func=yes" | |
17973 | else | |
17974 | echo "configure: failed program was:" >&5 | |
17975 | cat conftest.$ac_ext >&5 | |
17976 | rm -rf conftest* | |
17977 | eval "ac_cv_func_$ac_func=no" | |
17978 | fi | |
17979 | rm -f conftest* | |
17980 | fi | |
17981 | ||
17982 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17983 | echo "$ac_t""yes" 1>&6 | |
17984 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17985 | cat >> confdefs.h <<EOF | |
17986 | #define $ac_tr_func 1 | |
17987 | EOF | |
4f14bcd8 | 17988 | break |
a0b9e27f MB |
17989 | else |
17990 | echo "$ac_t""no" 1>&6 | |
af15babd | 17991 | fi |
af15babd VZ |
17992 | done |
17993 | ||
8284b0c5 | 17994 | |
4f14bcd8 GD |
17995 | HAVE_SOME_SLEEP_FUNC=0 |
17996 | if test "$USE_BEOS" = 1; then | |
a0b9e27f | 17997 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17998 | #define HAVE_SLEEP 1 |
a0b9e27f | 17999 | EOF |
af15babd | 18000 | |
4f14bcd8 | 18001 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
18002 | fi |
18003 | ||
4f14bcd8 | 18004 | if test "$USE_DARWIN" = 1; then |
a0b9e27f | 18005 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18006 | #define HAVE_USLEEP 1 |
a0b9e27f | 18007 | EOF |
10f2d63a | 18008 | |
4f14bcd8 | 18009 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
18010 | fi |
18011 | ||
4f14bcd8 GD |
18012 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
18013 | POSIX4_LINK= | |
a0b9e27f | 18014 | for ac_func in nanosleep |
4f14bcd8 | 18015 | do |
a0b9e27f | 18016 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 18017 | echo "configure:18018: checking for $ac_func" >&5 |
a0b9e27f MB |
18018 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18019 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18020 | else | |
18021 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 18022 | #line 18023 "configure" |
10f2d63a | 18023 | #include "confdefs.h" |
4f14bcd8 | 18024 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18025 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18026 | #include <assert.h> |
10f2d63a VZ |
18027 | /* Override any gcc2 internal prototype to avoid an error. */ |
18028 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18029 | builtin and then its argument prototype would still apply. */ |
18030 | char $ac_func(); | |
18031 | ||
18032 | int main() { | |
18033 | ||
4f14bcd8 GD |
18034 | /* The GNU C library defines this for functions which it implements |
18035 | to always fail with ENOSYS. Some functions are actually named | |
18036 | something starting with __ and the normal name is an alias. */ | |
18037 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18038 | choke me | |
18039 | #else | |
a0b9e27f | 18040 | $ac_func(); |
4f14bcd8 GD |
18041 | #endif |
18042 | ||
a0b9e27f MB |
18043 | ; return 0; } |
18044 | EOF | |
521196a2 | 18045 | if { (eval echo configure:18046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18046 | rm -rf conftest* |
18047 | eval "ac_cv_func_$ac_func=yes" | |
18048 | else | |
18049 | echo "configure: failed program was:" >&5 | |
18050 | cat conftest.$ac_ext >&5 | |
18051 | rm -rf conftest* | |
18052 | eval "ac_cv_func_$ac_func=no" | |
18053 | fi | |
18054 | rm -f conftest* | |
18055 | fi | |
18056 | ||
18057 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18058 | echo "$ac_t""yes" 1>&6 | |
18059 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18060 | cat >> confdefs.h <<EOF | |
18061 | #define $ac_tr_func 1 | |
18062 | EOF | |
18063 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18064 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 18065 | EOF |
4f14bcd8 | 18066 | |
10f2d63a | 18067 | else |
a0b9e27f MB |
18068 | echo "$ac_t""no" 1>&6 |
18069 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
521196a2 | 18070 | echo "configure:18071: checking for nanosleep in -lposix4" >&5 |
a0b9e27f MB |
18071 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
18072 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18073 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18074 | else |
a0b9e27f | 18075 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18076 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 18077 | cat > conftest.$ac_ext <<EOF |
521196a2 | 18078 | #line 18079 "configure" |
10f2d63a VZ |
18079 | #include "confdefs.h" |
18080 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18081 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18082 | builtin and then its argument prototype would still apply. */ |
18083 | char nanosleep(); | |
18084 | ||
18085 | int main() { | |
18086 | nanosleep() | |
18087 | ; return 0; } | |
18088 | EOF | |
521196a2 | 18089 | if { (eval echo configure:18090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18090 | rm -rf conftest* |
18091 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18092 | else | |
18093 | echo "configure: failed program was:" >&5 | |
18094 | cat conftest.$ac_ext >&5 | |
18095 | rm -rf conftest* | |
18096 | eval "ac_cv_lib_$ac_lib_var=no" | |
18097 | fi | |
18098 | rm -f conftest* | |
18099 | LIBS="$ac_save_LIBS" | |
18100 | ||
18101 | fi | |
18102 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18103 | echo "$ac_t""yes" 1>&6 | |
18104 | ||
18105 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18106 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 18107 | EOF |
4f14bcd8 | 18108 | |
3d63bc3a | 18109 | POSIX4_LINK=" -lposix4" |
a0b9e27f | 18110 | |
10f2d63a | 18111 | else |
a0b9e27f | 18112 | echo "$ac_t""no" 1>&6 |
10f2d63a | 18113 | |
a0b9e27f | 18114 | for ac_func in usleep |
4f14bcd8 | 18115 | do |
a0b9e27f | 18116 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 18117 | echo "configure:18118: checking for $ac_func" >&5 |
a0b9e27f MB |
18118 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18119 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18120 | else | |
18121 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 18122 | #line 18123 "configure" |
10f2d63a | 18123 | #include "confdefs.h" |
4f14bcd8 | 18124 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18125 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18126 | #include <assert.h> |
18127 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18128 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18129 | builtin and then its argument prototype would still apply. */ |
18130 | char $ac_func(); | |
18131 | ||
18132 | int main() { | |
18133 | ||
4f14bcd8 GD |
18134 | /* The GNU C library defines this for functions which it implements |
18135 | to always fail with ENOSYS. Some functions are actually named | |
18136 | something starting with __ and the normal name is an alias. */ | |
18137 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18138 | choke me | |
18139 | #else | |
a0b9e27f | 18140 | $ac_func(); |
4f14bcd8 GD |
18141 | #endif |
18142 | ||
a0b9e27f MB |
18143 | ; return 0; } |
18144 | EOF | |
521196a2 | 18145 | if { (eval echo configure:18146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18146 | rm -rf conftest* |
18147 | eval "ac_cv_func_$ac_func=yes" | |
18148 | else | |
18149 | echo "configure: failed program was:" >&5 | |
18150 | cat conftest.$ac_ext >&5 | |
18151 | rm -rf conftest* | |
18152 | eval "ac_cv_func_$ac_func=no" | |
18153 | fi | |
18154 | rm -f conftest* | |
18155 | fi | |
18156 | ||
18157 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18158 | echo "$ac_t""yes" 1>&6 | |
18159 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18160 | cat >> confdefs.h <<EOF | |
18161 | #define $ac_tr_func 1 | |
18162 | EOF | |
18163 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18164 | #define HAVE_USLEEP 1 |
a0b9e27f | 18165 | EOF |
4f14bcd8 | 18166 | |
698dcdb6 | 18167 | else |
a0b9e27f MB |
18168 | echo "$ac_t""no" 1>&6 |
18169 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
18170 | ||
10f2d63a | 18171 | fi |
4f14bcd8 | 18172 | done |
10f2d63a | 18173 | |
a0b9e27f MB |
18174 | |
18175 | ||
6232543b | 18176 | fi |
10f2d63a | 18177 | |
a0b9e27f MB |
18178 | |
18179 | ||
1e487827 | 18180 | fi |
4f14bcd8 | 18181 | done |
703e0a69 | 18182 | |
10f2d63a VZ |
18183 | fi |
18184 | ||
4f14bcd8 | 18185 | for ac_func in uname gethostname |
70846f0a | 18186 | do |
a0b9e27f | 18187 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 18188 | echo "configure:18189: checking for $ac_func" >&5 |
a0b9e27f MB |
18189 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18190 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18191 | else | |
18192 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 18193 | #line 18194 "configure" |
70846f0a VZ |
18194 | #include "confdefs.h" |
18195 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 18196 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
18197 | #include <assert.h> |
18198 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18199 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18200 | builtin and then its argument prototype would still apply. */ |
18201 | char $ac_func(); | |
18202 | ||
18203 | int main() { | |
18204 | ||
70846f0a VZ |
18205 | /* The GNU C library defines this for functions which it implements |
18206 | to always fail with ENOSYS. Some functions are actually named | |
18207 | something starting with __ and the normal name is an alias. */ | |
18208 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18209 | choke me | |
18210 | #else | |
a0b9e27f | 18211 | $ac_func(); |
70846f0a VZ |
18212 | #endif |
18213 | ||
a0b9e27f MB |
18214 | ; return 0; } |
18215 | EOF | |
521196a2 | 18216 | if { (eval echo configure:18217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18217 | rm -rf conftest* |
18218 | eval "ac_cv_func_$ac_func=yes" | |
18219 | else | |
18220 | echo "configure: failed program was:" >&5 | |
18221 | cat conftest.$ac_ext >&5 | |
18222 | rm -rf conftest* | |
18223 | eval "ac_cv_func_$ac_func=no" | |
18224 | fi | |
18225 | rm -f conftest* | |
18226 | fi | |
18227 | ||
18228 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18229 | echo "$ac_t""yes" 1>&6 | |
18230 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18231 | cat >> confdefs.h <<EOF | |
18232 | #define $ac_tr_func 1 | |
18233 | EOF | |
4f14bcd8 | 18234 | break |
a0b9e27f MB |
18235 | else |
18236 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
18237 | fi |
18238 | done | |
18239 | ||
8284b0c5 MB |
18240 | |
18241 | ||
a0b9e27f MB |
18242 | ac_ext=C |
18243 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 18244 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
18245 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18246 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18247 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 18248 | |
4f14bcd8 GD |
18249 | |
18250 | for ac_func in strtok_r | |
10f2d63a | 18251 | do |
a0b9e27f | 18252 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 18253 | echo "configure:18254: checking for $ac_func" >&5 |
a0b9e27f MB |
18254 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18255 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18256 | else | |
18257 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 18258 | #line 18259 "configure" |
10f2d63a | 18259 | #include "confdefs.h" |
4f14bcd8 | 18260 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18261 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18262 | #include <assert.h> |
18263 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18264 | #ifdef __cplusplus | |
18265 | extern "C" | |
18266 | #endif | |
18267 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18268 | builtin and then its argument prototype would still apply. */ |
18269 | char $ac_func(); | |
18270 | ||
18271 | int main() { | |
18272 | ||
4f14bcd8 GD |
18273 | /* The GNU C library defines this for functions which it implements |
18274 | to always fail with ENOSYS. Some functions are actually named | |
18275 | something starting with __ and the normal name is an alias. */ | |
18276 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18277 | choke me | |
18278 | #else | |
a0b9e27f | 18279 | $ac_func(); |
4f14bcd8 GD |
18280 | #endif |
18281 | ||
a0b9e27f MB |
18282 | ; return 0; } |
18283 | EOF | |
521196a2 | 18284 | if { (eval echo configure:18285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18285 | rm -rf conftest* |
18286 | eval "ac_cv_func_$ac_func=yes" | |
18287 | else | |
18288 | echo "configure: failed program was:" >&5 | |
18289 | cat conftest.$ac_ext >&5 | |
18290 | rm -rf conftest* | |
18291 | eval "ac_cv_func_$ac_func=no" | |
18292 | fi | |
18293 | rm -f conftest* | |
18294 | fi | |
4f14bcd8 | 18295 | |
a0b9e27f MB |
18296 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18297 | echo "$ac_t""yes" 1>&6 | |
18298 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18299 | cat >> confdefs.h <<EOF | |
18300 | #define $ac_tr_func 1 | |
18301 | EOF | |
18302 | ||
18303 | else | |
18304 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
18305 | fi |
18306 | done | |
18307 | ||
8284b0c5 | 18308 | |
4f14bcd8 | 18309 | ac_ext=c |
a0b9e27f | 18310 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 18311 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
18312 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18313 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18314 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 18315 | |
5c6fa7d2 | 18316 | |
8284b0c5 | 18317 | INET_LINK= |
4f14bcd8 GD |
18318 | for ac_func in inet_addr |
18319 | do | |
a0b9e27f | 18320 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 18321 | echo "configure:18322: checking for $ac_func" >&5 |
a0b9e27f MB |
18322 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18323 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18324 | else | |
18325 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 18326 | #line 18327 "configure" |
10f2d63a | 18327 | #include "confdefs.h" |
4f14bcd8 | 18328 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18329 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18330 | #include <assert.h> |
10f2d63a VZ |
18331 | /* Override any gcc2 internal prototype to avoid an error. */ |
18332 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18333 | builtin and then its argument prototype would still apply. */ |
18334 | char $ac_func(); | |
18335 | ||
18336 | int main() { | |
18337 | ||
4f14bcd8 GD |
18338 | /* The GNU C library defines this for functions which it implements |
18339 | to always fail with ENOSYS. Some functions are actually named | |
18340 | something starting with __ and the normal name is an alias. */ | |
18341 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18342 | choke me | |
18343 | #else | |
a0b9e27f | 18344 | $ac_func(); |
4f14bcd8 GD |
18345 | #endif |
18346 | ||
a0b9e27f MB |
18347 | ; return 0; } |
18348 | EOF | |
521196a2 | 18349 | if { (eval echo configure:18350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18350 | rm -rf conftest* |
18351 | eval "ac_cv_func_$ac_func=yes" | |
18352 | else | |
18353 | echo "configure: failed program was:" >&5 | |
18354 | cat conftest.$ac_ext >&5 | |
18355 | rm -rf conftest* | |
18356 | eval "ac_cv_func_$ac_func=no" | |
18357 | fi | |
18358 | rm -f conftest* | |
18359 | fi | |
18360 | ||
18361 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18362 | echo "$ac_t""yes" 1>&6 | |
18363 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18364 | cat >> confdefs.h <<EOF | |
18365 | #define $ac_tr_func 1 | |
18366 | EOF | |
18367 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18368 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 18369 | EOF |
10f2d63a VZ |
18370 | |
18371 | else | |
a0b9e27f MB |
18372 | echo "$ac_t""no" 1>&6 |
18373 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
521196a2 | 18374 | echo "configure:18375: checking for inet_addr in -lnsl" >&5 |
a0b9e27f MB |
18375 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
18376 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18377 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18378 | else |
a0b9e27f | 18379 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18380 | LIBS="-lnsl $LIBS" |
a0b9e27f | 18381 | cat > conftest.$ac_ext <<EOF |
521196a2 | 18382 | #line 18383 "configure" |
10f2d63a VZ |
18383 | #include "confdefs.h" |
18384 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18385 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18386 | builtin and then its argument prototype would still apply. */ |
18387 | char inet_addr(); | |
18388 | ||
18389 | int main() { | |
18390 | inet_addr() | |
18391 | ; return 0; } | |
18392 | EOF | |
521196a2 | 18393 | if { (eval echo configure:18394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18394 | rm -rf conftest* |
18395 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18396 | else | |
18397 | echo "configure: failed program was:" >&5 | |
18398 | cat conftest.$ac_ext >&5 | |
18399 | rm -rf conftest* | |
18400 | eval "ac_cv_lib_$ac_lib_var=no" | |
18401 | fi | |
18402 | rm -f conftest* | |
18403 | LIBS="$ac_save_LIBS" | |
18404 | ||
18405 | fi | |
18406 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18407 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 18408 | INET_LINK="nsl" |
10f2d63a | 18409 | else |
a0b9e27f MB |
18410 | echo "$ac_t""no" 1>&6 |
18411 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
521196a2 | 18412 | echo "configure:18413: checking for inet_addr in -lresolv" >&5 |
a0b9e27f MB |
18413 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
18414 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18415 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18416 | else |
a0b9e27f | 18417 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18418 | LIBS="-lresolv $LIBS" |
a0b9e27f | 18419 | cat > conftest.$ac_ext <<EOF |
521196a2 | 18420 | #line 18421 "configure" |
7b4a847f | 18421 | #include "confdefs.h" |
5c6fa7d2 | 18422 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 18423 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18424 | builtin and then its argument prototype would still apply. */ |
18425 | char inet_addr(); | |
18426 | ||
18427 | int main() { | |
18428 | inet_addr() | |
18429 | ; return 0; } | |
18430 | EOF | |
521196a2 | 18431 | if { (eval echo configure:18432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18432 | rm -rf conftest* |
18433 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18434 | else | |
18435 | echo "configure: failed program was:" >&5 | |
18436 | cat conftest.$ac_ext >&5 | |
18437 | rm -rf conftest* | |
18438 | eval "ac_cv_lib_$ac_lib_var=no" | |
18439 | fi | |
18440 | rm -f conftest* | |
18441 | LIBS="$ac_save_LIBS" | |
18442 | ||
18443 | fi | |
18444 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18445 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 18446 | INET_LINK="resolv" |
698dcdb6 | 18447 | else |
a0b9e27f MB |
18448 | echo "$ac_t""no" 1>&6 |
18449 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 | |
521196a2 | 18450 | echo "configure:18451: checking for inet_addr in -lsocket" >&5 |
a0b9e27f MB |
18451 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
18452 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18453 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3c011993 | 18454 | else |
a0b9e27f | 18455 | ac_save_LIBS="$LIBS" |
3c011993 | 18456 | LIBS="-lsocket $LIBS" |
a0b9e27f | 18457 | cat > conftest.$ac_ext <<EOF |
521196a2 | 18458 | #line 18459 "configure" |
3c011993 VZ |
18459 | #include "confdefs.h" |
18460 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18461 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18462 | builtin and then its argument prototype would still apply. */ |
18463 | char inet_addr(); | |
4f14bcd8 | 18464 | |
a0b9e27f MB |
18465 | int main() { |
18466 | inet_addr() | |
18467 | ; return 0; } | |
18468 | EOF | |
521196a2 | 18469 | if { (eval echo configure:18470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18470 | rm -rf conftest* |
18471 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18472 | else | |
18473 | echo "configure: failed program was:" >&5 | |
18474 | cat conftest.$ac_ext >&5 | |
18475 | rm -rf conftest* | |
18476 | eval "ac_cv_lib_$ac_lib_var=no" | |
8284b0c5 | 18477 | fi |
a0b9e27f MB |
18478 | rm -f conftest* |
18479 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 18480 | |
7b4a847f | 18481 | fi |
a0b9e27f MB |
18482 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18483 | echo "$ac_t""yes" 1>&6 | |
18484 | INET_LINK="socket" | |
18485 | ||
18486 | else | |
18487 | echo "$ac_t""no" 1>&6 | |
18488 | fi | |
579d8138 | 18489 | |
a0b9e27f | 18490 | |
5c6fa7d2 | 18491 | fi |
52127426 | 18492 | |
a0b9e27f MB |
18493 | |
18494 | fi | |
247f5006 | 18495 | |
a0b9e27f | 18496 | |
8284b0c5 | 18497 | |
698dcdb6 | 18498 | fi |
4f14bcd8 GD |
18499 | done |
18500 | ||
8284b0c5 | 18501 | |
4f14bcd8 GD |
18502 | for ac_func in inet_aton |
18503 | do | |
a0b9e27f | 18504 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 18505 | echo "configure:18506: checking for $ac_func" >&5 |
a0b9e27f MB |
18506 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18507 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18508 | else | |
18509 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 18510 | #line 18511 "configure" |
f6bcfd97 | 18511 | #include "confdefs.h" |
4f14bcd8 | 18512 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18513 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18514 | #include <assert.h> |
f6bcfd97 BP |
18515 | /* Override any gcc2 internal prototype to avoid an error. */ |
18516 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18517 | builtin and then its argument prototype would still apply. */ |
18518 | char $ac_func(); | |
18519 | ||
18520 | int main() { | |
18521 | ||
4f14bcd8 GD |
18522 | /* The GNU C library defines this for functions which it implements |
18523 | to always fail with ENOSYS. Some functions are actually named | |
18524 | something starting with __ and the normal name is an alias. */ | |
18525 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18526 | choke me | |
18527 | #else | |
a0b9e27f | 18528 | $ac_func(); |
4f14bcd8 GD |
18529 | #endif |
18530 | ||
a0b9e27f MB |
18531 | ; return 0; } |
18532 | EOF | |
521196a2 | 18533 | if { (eval echo configure:18534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18534 | rm -rf conftest* |
18535 | eval "ac_cv_func_$ac_func=yes" | |
18536 | else | |
18537 | echo "configure: failed program was:" >&5 | |
18538 | cat conftest.$ac_ext >&5 | |
18539 | rm -rf conftest* | |
18540 | eval "ac_cv_func_$ac_func=no" | |
18541 | fi | |
18542 | rm -f conftest* | |
18543 | fi | |
18544 | ||
18545 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18546 | echo "$ac_t""yes" 1>&6 | |
18547 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18548 | cat >> confdefs.h <<EOF | |
18549 | #define $ac_tr_func 1 | |
18550 | EOF | |
18551 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18552 | #define HAVE_INET_ATON 1 |
a0b9e27f | 18553 | EOF |
4f14bcd8 | 18554 | |
10f2d63a | 18555 | else |
a0b9e27f MB |
18556 | echo "$ac_t""no" 1>&6 |
18557 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
521196a2 | 18558 | echo "configure:18559: checking for inet_aton in -l$INET_LINK" >&5 |
a0b9e27f MB |
18559 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
18560 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18561 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 18562 | else |
a0b9e27f | 18563 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18564 | LIBS="-l$INET_LINK $LIBS" |
a0b9e27f | 18565 | cat > conftest.$ac_ext <<EOF |
521196a2 | 18566 | #line 18567 "configure" |
10f2d63a | 18567 | #include "confdefs.h" |
6232543b | 18568 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 18569 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18570 | builtin and then its argument prototype would still apply. */ |
18571 | char inet_aton(); | |
18572 | ||
18573 | int main() { | |
18574 | inet_aton() | |
18575 | ; return 0; } | |
18576 | EOF | |
521196a2 | 18577 | if { (eval echo configure:18578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18578 | rm -rf conftest* |
18579 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18580 | else | |
18581 | echo "configure: failed program was:" >&5 | |
18582 | cat conftest.$ac_ext >&5 | |
18583 | rm -rf conftest* | |
18584 | eval "ac_cv_lib_$ac_lib_var=no" | |
18585 | fi | |
18586 | rm -f conftest* | |
18587 | LIBS="$ac_save_LIBS" | |
4f14bcd8 | 18588 | |
10f2d63a | 18589 | fi |
a0b9e27f MB |
18590 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18591 | echo "$ac_t""yes" 1>&6 | |
18592 | cat >> confdefs.h <<\EOF | |
18593 | #define HAVE_INET_ATON 1 | |
18594 | EOF | |
10f2d63a | 18595 | |
a0b9e27f MB |
18596 | else |
18597 | echo "$ac_t""no" 1>&6 | |
18598 | fi | |
247f5006 | 18599 | |
a0b9e27f | 18600 | |
10f2d63a | 18601 | fi |
4f14bcd8 | 18602 | done |
10f2d63a | 18603 | |
8284b0c5 | 18604 | |
4f14bcd8 | 18605 | if test "x$INET_LINK" != "x"; then |
a0b9e27f | 18606 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18607 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 18608 | EOF |
4f14bcd8 | 18609 | |
3d63bc3a | 18610 | INET_LINK=" -l$INET_LINK" |
6232543b | 18611 | fi |
10f2d63a | 18612 | |
1e487827 | 18613 | fi |
703e0a69 | 18614 | |
8284b0c5 | 18615 | |
a0b9e27f | 18616 | cat > confcache <<\EOF |
4f14bcd8 GD |
18617 | # This file is a shell script that caches the results of configure |
18618 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
18619 | # scripts and configure runs. It is not useful on other systems. |
18620 | # If it contains results you don't want to keep, you may remove or edit it. | |
4f14bcd8 | 18621 | # |
a0b9e27f MB |
18622 | # By default, configure uses ./config.cache as the cache file, |
18623 | # creating it if it does not exist already. You can give configure | |
18624 | # the --cache-file=FILE option to use a different cache file; that is | |
18625 | # what configure does when it calls configure scripts in | |
18626 | # subdirectories, so they share the cache. | |
18627 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
18628 | # config.status only pays attention to the cache file if you give it the | |
18629 | # --recheck option to rerun configure. | |
4f14bcd8 | 18630 | # |
a0b9e27f | 18631 | EOF |
4f14bcd8 GD |
18632 | # The following way of writing the cache mishandles newlines in values, |
18633 | # but we know of no workaround that is simple, portable, and efficient. | |
18634 | # So, don't put newlines in cache variables' values. | |
18635 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18636 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
18637 | (set) 2>&1 | |
18638 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18639 | *ac_space=\ *) | |
18640 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
18641 | # turns \\\\ into \\, and sed turns \\ into \). | |
18642 | sed -n \ | |
18643 | -e "s/'/'\\\\''/g" \ | |
18644 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
18645 | ;; | |
18646 | *) | |
18647 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18648 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
18649 | ;; | |
18650 | esac >> confcache | |
18651 | if cmp -s $cache_file confcache; then | |
18652 | : | |
18653 | else | |
4f14bcd8 | 18654 | if test -w $cache_file; then |
a0b9e27f MB |
18655 | echo "updating cache $cache_file" |
18656 | cat confcache > $cache_file | |
f6bcfd97 | 18657 | else |
4f14bcd8 | 18658 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 18659 | fi |
4f14bcd8 GD |
18660 | fi |
18661 | rm -f confcache | |
f6bcfd97 | 18662 | |
8284b0c5 | 18663 | |
a0b9e27f | 18664 | |
009fead0 | 18665 | CPP_MT_FLAG= |
4f14bcd8 GD |
18666 | if test "$TOOLKIT" != "MSW"; then |
18667 | ||
a0b9e27f | 18668 | |
7274f1c7 | 18669 | THREADS_LINK= |
009fead0 | 18670 | THREADS_CFLAGS= |
7274f1c7 RL |
18671 | |
18672 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 18673 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 18674 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
18675 | wxUSE_THREADS="no" |
18676 | fi | |
4f14bcd8 | 18677 | fi |
4f14bcd8 | 18678 | |
7274f1c7 | 18679 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f MB |
18680 | |
18681 | ||
009fead0 VZ |
18682 | THREAD_OPTS="-pthread" |
18683 | case "${host}" in | |
18684 | *-*-solaris2* | *-*-sunos4* ) | |
18685 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 18686 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
18687 | else |
18688 | THREAD_OPTS="-mt $THREAD_OPTS" | |
18689 | fi | |
18690 | ;; | |
18691 | *-*-freebsd*) | |
18692 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
18693 | ;; | |
17234b26 MB |
18694 | *-*-darwin* | *-*-cygwin* ) |
18695 | THREAD_OPTS="" | |
4101db81 | 18696 | ;; |
8f4a9a10 | 18697 | *-*-aix*) |
009fead0 VZ |
18698 | THREAD_OPTS="pthreads" |
18699 | ;; | |
4f5a7f74 VZ |
18700 | *-hp-hpux* ) |
18701 | if test "x$GCC" != "xyes"; then | |
18702 | THREAD_OPTS="" | |
18703 | fi | |
009fead0 | 18704 | esac |
4f14bcd8 | 18705 | |
02a1dfba | 18706 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 18707 | |
009fead0 VZ |
18708 | THREADS_OK=no |
18709 | for flag in $THREAD_OPTS; do | |
18710 | case $flag in | |
18711 | none) | |
a0b9e27f | 18712 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 |
521196a2 | 18713 | echo "configure:18714: checking whether pthreads work without any flags" >&5 |
009fead0 | 18714 | ;; |
698dcdb6 | 18715 | |
009fead0 | 18716 | -*) |
a0b9e27f | 18717 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 |
521196a2 | 18718 | echo "configure:18719: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
18719 | THREADS_CFLAGS="$flag" |
18720 | ;; | |
698dcdb6 | 18721 | |
009fead0 | 18722 | *) |
a0b9e27f | 18723 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 |
521196a2 | 18724 | echo "configure:18725: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
18725 | THREADS_LINK="-l$flag" |
18726 | ;; | |
18727 | esac | |
10f2d63a | 18728 | |
009fead0 VZ |
18729 | save_LIBS="$LIBS" |
18730 | save_CFLAGS="$CFLAGS" | |
18731 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 18732 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 18733 | |
a0b9e27f | 18734 | cat > conftest.$ac_ext <<EOF |
521196a2 | 18735 | #line 18736 "configure" |
009fead0 VZ |
18736 | #include "confdefs.h" |
18737 | #include <pthread.h> | |
a0b9e27f | 18738 | int main() { |
009fead0 | 18739 | pthread_create(0,0,0,0); |
a0b9e27f MB |
18740 | ; return 0; } |
18741 | EOF | |
521196a2 | 18742 | if { (eval echo configure:18743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 18743 | rm -rf conftest* |
009fead0 | 18744 | THREADS_OK=yes |
10f2d63a | 18745 | else |
a0b9e27f MB |
18746 | echo "configure: failed program was:" >&5 |
18747 | cat conftest.$ac_ext >&5 | |
6232543b | 18748 | fi |
a0b9e27f | 18749 | rm -f conftest* |
698dcdb6 | 18750 | |
009fead0 VZ |
18751 | LIBS="$save_LIBS" |
18752 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 18753 | |
a0b9e27f | 18754 | echo "$ac_t""$THREADS_OK" 1>&6 |
009fead0 VZ |
18755 | if test "x$THREADS_OK" = "xyes"; then |
18756 | break; | |
18757 | fi | |
d9b9876f | 18758 | |
009fead0 VZ |
18759 | THREADS_LINK="" |
18760 | THREADS_CFLAGS="" | |
18761 | done | |
4f14bcd8 | 18762 | |
009fead0 VZ |
18763 | if test "x$THREADS_OK" != "xyes"; then |
18764 | wxUSE_THREADS=no | |
a0b9e27f | 18765 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
009fead0 | 18766 | else |
db82f09e VZ |
18767 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
18768 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 18769 | |
a0b9e27f | 18770 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
521196a2 | 18771 | echo "configure:18772: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
18772 | flag=no |
18773 | case "${host}" in | |
2b5f62a0 VZ |
18774 | *-aix*) |
18775 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
18776 | flag="-D_THREAD_SAFE" | |
18777 | ;; | |
18778 | *-freebsd*) | |
009fead0 VZ |
18779 | flag="-D_THREAD_SAFE" |
18780 | ;; | |
06313569 GD |
18781 | *-hp-hpux* ) |
18782 | flag="-D_REENTRANT" | |
4f5a7f74 VZ |
18783 | if test "x$GCC" != "xyes"; then |
18784 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
18785 | fi | |
06313569 | 18786 | ;; |
009fead0 VZ |
18787 | *solaris* | alpha*-osf*) |
18788 | flag="-D_REENTRANT" | |
18789 | ;; | |
18790 | esac | |
a0b9e27f | 18791 | echo "$ac_t""${flag}" 1>&6 |
009fead0 | 18792 | if test "x$flag" != xno; then |
04727afd | 18793 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
18794 | fi |
18795 | ||
009fead0 | 18796 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 18797 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
18798 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
18799 | fi | |
18800 | fi | |
4f14bcd8 | 18801 | fi |
4f14bcd8 | 18802 | |
7274f1c7 | 18803 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f | 18804 | for ac_func in thr_setconcurrency |
4f14bcd8 | 18805 | do |
a0b9e27f | 18806 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 18807 | echo "configure:18808: checking for $ac_func" >&5 |
a0b9e27f MB |
18808 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18809 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18810 | else | |
18811 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 18812 | #line 18813 "configure" |
d9b9876f | 18813 | #include "confdefs.h" |
4f14bcd8 | 18814 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18815 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18816 | #include <assert.h> |
18817 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18818 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18819 | builtin and then its argument prototype would still apply. */ |
18820 | char $ac_func(); | |
18821 | ||
18822 | int main() { | |
18823 | ||
4f14bcd8 GD |
18824 | /* The GNU C library defines this for functions which it implements |
18825 | to always fail with ENOSYS. Some functions are actually named | |
18826 | something starting with __ and the normal name is an alias. */ | |
18827 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18828 | choke me | |
18829 | #else | |
a0b9e27f | 18830 | $ac_func(); |
4f14bcd8 GD |
18831 | #endif |
18832 | ||
a0b9e27f MB |
18833 | ; return 0; } |
18834 | EOF | |
521196a2 | 18835 | if { (eval echo configure:18836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18836 | rm -rf conftest* |
18837 | eval "ac_cv_func_$ac_func=yes" | |
18838 | else | |
18839 | echo "configure: failed program was:" >&5 | |
18840 | cat conftest.$ac_ext >&5 | |
18841 | rm -rf conftest* | |
18842 | eval "ac_cv_func_$ac_func=no" | |
18843 | fi | |
18844 | rm -f conftest* | |
18845 | fi | |
698dcdb6 | 18846 | |
a0b9e27f MB |
18847 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18848 | echo "$ac_t""yes" 1>&6 | |
18849 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18850 | cat >> confdefs.h <<EOF | |
18851 | #define $ac_tr_func 1 | |
18852 | EOF | |
18853 | ||
18854 | else | |
18855 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 18856 | fi |
4f14bcd8 | 18857 | done |
10f2d63a | 18858 | |
8284b0c5 | 18859 | |
a0b9e27f | 18860 | for ac_hdr in sched.h |
4f14bcd8 | 18861 | do |
a0b9e27f MB |
18862 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18863 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
521196a2 | 18864 | echo "configure:18865: checking for $ac_hdr" >&5 |
a0b9e27f MB |
18865 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18866 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18867 | else | |
18868 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 18869 | #line 18870 "configure" |
247f5006 | 18870 | #include "confdefs.h" |
a0b9e27f MB |
18871 | #include <$ac_hdr> |
18872 | EOF | |
18873 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 18874 | { (eval echo configure:18875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
18875 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18876 | if test -z "$ac_err"; then | |
18877 | rm -rf conftest* | |
18878 | eval "ac_cv_header_$ac_safe=yes" | |
18879 | else | |
18880 | echo "$ac_err" >&5 | |
18881 | echo "configure: failed program was:" >&5 | |
4f14bcd8 | 18882 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
18883 | rm -rf conftest* |
18884 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 18885 | fi |
a0b9e27f | 18886 | rm -f conftest* |
10f2d63a | 18887 | fi |
a0b9e27f MB |
18888 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18889 | echo "$ac_t""yes" 1>&6 | |
18890 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18891 | cat >> confdefs.h <<EOF | |
18892 | #define $ac_tr_hdr 1 | |
18893 | EOF | |
18894 | ||
18895 | else | |
18896 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 18897 | fi |
4f14bcd8 | 18898 | done |
f6bcfd97 | 18899 | |
009fead0 | 18900 | if test "$ac_cv_header_sched_h" = "yes"; then |
a0b9e27f | 18901 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 |
521196a2 | 18902 | echo "configure:18903: checking for sched_yield" >&5 |
a0b9e27f MB |
18903 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
18904 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 18905 | else |
a0b9e27f | 18906 | cat > conftest.$ac_ext <<EOF |
521196a2 | 18907 | #line 18908 "configure" |
4f14bcd8 | 18908 | #include "confdefs.h" |
009fead0 | 18909 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18910 | which can conflict with char sched_yield(); below. */ |
009fead0 | 18911 | #include <assert.h> |
4f14bcd8 GD |
18912 | /* Override any gcc2 internal prototype to avoid an error. */ |
18913 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18914 | builtin and then its argument prototype would still apply. */ |
18915 | char sched_yield(); | |
18916 | ||
18917 | int main() { | |
18918 | ||
009fead0 VZ |
18919 | /* The GNU C library defines this for functions which it implements |
18920 | to always fail with ENOSYS. Some functions are actually named | |
18921 | something starting with __ and the normal name is an alias. */ | |
18922 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
18923 | choke me | |
18924 | #else | |
a0b9e27f | 18925 | sched_yield(); |
009fead0 VZ |
18926 | #endif |
18927 | ||
a0b9e27f MB |
18928 | ; return 0; } |
18929 | EOF | |
521196a2 | 18930 | if { (eval echo configure:18931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18931 | rm -rf conftest* |
18932 | eval "ac_cv_func_sched_yield=yes" | |
18933 | else | |
18934 | echo "configure: failed program was:" >&5 | |
18935 | cat conftest.$ac_ext >&5 | |
18936 | rm -rf conftest* | |
18937 | eval "ac_cv_func_sched_yield=no" | |
18938 | fi | |
18939 | rm -f conftest* | |
18940 | fi | |
18941 | ||
18942 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
18943 | echo "$ac_t""yes" 1>&6 | |
18944 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18945 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 18946 | EOF |
10f2d63a | 18947 | |
4f14bcd8 | 18948 | else |
a0b9e27f | 18949 | echo "$ac_t""no" 1>&6 |
009fead0 | 18950 | |
a0b9e27f | 18951 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 |
521196a2 | 18952 | echo "configure:18953: checking for sched_yield in -lposix4" >&5 |
a0b9e27f MB |
18953 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
18954 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18955 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 18956 | else |
a0b9e27f | 18957 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18958 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 18959 | cat > conftest.$ac_ext <<EOF |
521196a2 | 18960 | #line 18961 "configure" |
4f14bcd8 GD |
18961 | #include "confdefs.h" |
18962 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18963 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18964 | builtin and then its argument prototype would still apply. */ |
18965 | char sched_yield(); | |
18966 | ||
18967 | int main() { | |
18968 | sched_yield() | |
18969 | ; return 0; } | |
18970 | EOF | |
521196a2 | 18971 | if { (eval echo configure:18972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18972 | rm -rf conftest* |
18973 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18974 | else | |
18975 | echo "configure: failed program was:" >&5 | |
18976 | cat conftest.$ac_ext >&5 | |
18977 | rm -rf conftest* | |
18978 | eval "ac_cv_lib_$ac_lib_var=no" | |
18979 | fi | |
18980 | rm -f conftest* | |
18981 | LIBS="$ac_save_LIBS" | |
18982 | ||
18983 | fi | |
18984 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18985 | echo "$ac_t""yes" 1>&6 | |
18986 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18987 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 18988 | EOF |
3d63bc3a | 18989 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 18990 | else |
a0b9e27f MB |
18991 | echo "$ac_t""no" 1>&6 |
18992 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
18993 | ||
54276ccf VZ |
18994 | fi |
18995 | ||
a0b9e27f MB |
18996 | |
18997 | ||
4f14bcd8 | 18998 | fi |
698dcdb6 | 18999 | |
009fead0 | 19000 | fi |
10f2d63a | 19001 | |
7274f1c7 | 19002 | HAVE_PRIOR_FUNCS=0 |
a0b9e27f | 19003 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
521196a2 | 19004 | echo "configure:19005: checking for pthread_attr_getschedpolicy" >&5 |
a0b9e27f MB |
19005 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
19006 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 19007 | else |
a0b9e27f | 19008 | cat > conftest.$ac_ext <<EOF |
521196a2 | 19009 | #line 19010 "configure" |
422107f9 | 19010 | #include "confdefs.h" |
009fead0 | 19011 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19012 | which can conflict with char pthread_attr_getschedpolicy(); below. */ |
009fead0 | 19013 | #include <assert.h> |
4f14bcd8 GD |
19014 | /* Override any gcc2 internal prototype to avoid an error. */ |
19015 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19016 | builtin and then its argument prototype would still apply. */ |
19017 | char pthread_attr_getschedpolicy(); | |
19018 | ||
19019 | int main() { | |
19020 | ||
009fead0 VZ |
19021 | /* The GNU C library defines this for functions which it implements |
19022 | to always fail with ENOSYS. Some functions are actually named | |
19023 | something starting with __ and the normal name is an alias. */ | |
19024 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
19025 | choke me | |
19026 | #else | |
a0b9e27f | 19027 | pthread_attr_getschedpolicy(); |
009fead0 VZ |
19028 | #endif |
19029 | ||
a0b9e27f MB |
19030 | ; return 0; } |
19031 | EOF | |
521196a2 | 19032 | if { (eval echo configure:19033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19033 | rm -rf conftest* |
19034 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" | |
19035 | else | |
19036 | echo "configure: failed program was:" >&5 | |
19037 | cat conftest.$ac_ext >&5 | |
19038 | rm -rf conftest* | |
19039 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" | |
19040 | fi | |
19041 | rm -f conftest* | |
19042 | fi | |
19043 | ||
19044 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
19045 | echo "$ac_t""yes" 1>&6 | |
19046 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 | |
521196a2 | 19047 | echo "configure:19048: checking for pthread_attr_setschedparam" >&5 |
a0b9e27f MB |
19048 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
19049 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 19050 | else |
a0b9e27f | 19051 | cat > conftest.$ac_ext <<EOF |
521196a2 | 19052 | #line 19053 "configure" |
a0b9e27f MB |
19053 | #include "confdefs.h" |
19054 | /* System header to define __stub macros and hopefully few prototypes, | |
19055 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
009fead0 | 19056 | #include <assert.h> |
422107f9 VZ |
19057 | /* Override any gcc2 internal prototype to avoid an error. */ |
19058 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19059 | builtin and then its argument prototype would still apply. */ |
19060 | char pthread_attr_setschedparam(); | |
19061 | ||
19062 | int main() { | |
19063 | ||
009fead0 VZ |
19064 | /* The GNU C library defines this for functions which it implements |
19065 | to always fail with ENOSYS. Some functions are actually named | |
19066 | something starting with __ and the normal name is an alias. */ | |
19067 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
19068 | choke me | |
19069 | #else | |
a0b9e27f | 19070 | pthread_attr_setschedparam(); |
009fead0 VZ |
19071 | #endif |
19072 | ||
a0b9e27f MB |
19073 | ; return 0; } |
19074 | EOF | |
521196a2 | 19075 | if { (eval echo configure:19076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19076 | rm -rf conftest* |
19077 | eval "ac_cv_func_pthread_attr_setschedparam=yes" | |
19078 | else | |
19079 | echo "configure: failed program was:" >&5 | |
19080 | cat conftest.$ac_ext >&5 | |
19081 | rm -rf conftest* | |
19082 | eval "ac_cv_func_pthread_attr_setschedparam=no" | |
19083 | fi | |
19084 | rm -f conftest* | |
19085 | fi | |
19086 | ||
19087 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
19088 | echo "$ac_t""yes" 1>&6 | |
19089 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 | |
521196a2 | 19090 | echo "configure:19091: checking for sched_get_priority_max" >&5 |
a0b9e27f MB |
19091 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
19092 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19093 | else | |
19094 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 19095 | #line 19096 "configure" |
422107f9 | 19096 | #include "confdefs.h" |
009fead0 VZ |
19097 | /* System header to define __stub macros and hopefully few prototypes |
19098 | else | |
a0b9e27f MB |
19099 | echo "$ac_t""no" 1>&6 |
19100 | which can conflict with char sched_get_priority_max(); below. */ | |
009fead0 | 19101 | #include <assert.h> |
4f14bcd8 GD |
19102 | /* Override any gcc2 internal prototype to avoid an error. */ |
19103 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19104 | builtin and then its argument prototype would still apply. */ |
19105 | char sched_get_priority_max(); | |
19106 | ||
19107 | int main() { | |
19108 | ||
009fead0 VZ |
19109 | /* The GNU C library defines this for functions which it implements |
19110 | to always fail with ENOSYS. Some functions are actually named | |
19111 | something starting with __ and the normal name is an alias. */ | |
19112 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
19113 | choke me | |
19114 | #else | |
a0b9e27f | 19115 | sched_get_priority_max(); |
009fead0 VZ |
19116 | #endif |
19117 | ||
a0b9e27f MB |
19118 | ; return 0; } |
19119 | EOF | |
521196a2 | 19120 | if { (eval echo configure:19121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19121 | rm -rf conftest* |
19122 | eval "ac_cv_func_sched_get_priority_max=yes" | |
19123 | else | |
19124 | echo "configure: failed program was:" >&5 | |
19125 | cat conftest.$ac_ext >&5 | |
19126 | rm -rf conftest* | |
19127 | eval "ac_cv_func_sched_get_priority_max=no" | |
19128 | fi | |
19129 | rm -f conftest* | |
19130 | fi | |
19131 | ||
19132 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
19133 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
19134 | HAVE_PRIOR_FUNCS=1 |
19135 | else | |
a0b9e27f MB |
19136 | echo "$ac_t""no" 1>&6 |
19137 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
521196a2 | 19138 | echo "configure:19139: checking for sched_get_priority_max in -lposix4" >&5 |
a0b9e27f MB |
19139 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
19140 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19141 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 19142 | else |
a0b9e27f | 19143 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 19144 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 19145 | cat > conftest.$ac_ext <<EOF |
521196a2 | 19146 | #line 19147 "configure" |
422107f9 VZ |
19147 | #include "confdefs.h" |
19148 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19149 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19150 | builtin and then its argument prototype would still apply. */ |
19151 | char sched_get_priority_max(); | |
19152 | ||
19153 | int main() { | |
19154 | sched_get_priority_max() | |
19155 | ; return 0; } | |
19156 | EOF | |
521196a2 | 19157 | if { (eval echo configure:19158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19158 | rm -rf conftest* |
19159 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19160 | else | |
19161 | echo "configure: failed program was:" >&5 | |
19162 | cat conftest.$ac_ext >&5 | |
19163 | rm -rf conftest* | |
19164 | eval "ac_cv_lib_$ac_lib_var=no" | |
19165 | fi | |
19166 | rm -f conftest* | |
19167 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 19168 | |
a0b9e27f MB |
19169 | fi |
19170 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19171 | echo "$ac_t""yes" 1>&6 | |
19172 | ||
7274f1c7 RL |
19173 | HAVE_PRIOR_FUNCS=1 |
19174 | POSIX4_LINK=" -lposix4" | |
a0b9e27f MB |
19175 | |
19176 | else | |
19177 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 19178 | fi |
463abc64 | 19179 | |
a0b9e27f | 19180 | |
328a083c | 19181 | fi |
463abc64 | 19182 | |
a0b9e27f MB |
19183 | |
19184 | else | |
19185 | echo "$ac_t""no" 1>&6 | |
7b4a847f | 19186 | fi |
579d8138 | 19187 | |
a0b9e27f | 19188 | |
5c6fa7d2 | 19189 | fi |
52127426 | 19190 | |
8284b0c5 | 19191 | |
7274f1c7 | 19192 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
a0b9e27f | 19193 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19194 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
a0b9e27f | 19195 | EOF |
463abc64 | 19196 | |
7274f1c7 | 19197 | else |
a0b9e27f | 19198 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
7274f1c7 | 19199 | fi |
463abc64 | 19200 | |
a0b9e27f | 19201 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
521196a2 | 19202 | echo "configure:19203: checking for pthread_cancel" >&5 |
a0b9e27f MB |
19203 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
19204 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 19205 | else |
a0b9e27f | 19206 | cat > conftest.$ac_ext <<EOF |
521196a2 | 19207 | #line 19208 "configure" |
422107f9 | 19208 | #include "confdefs.h" |
009fead0 | 19209 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19210 | which can conflict with char pthread_cancel(); below. */ |
009fead0 | 19211 | #include <assert.h> |
422107f9 VZ |
19212 | /* Override any gcc2 internal prototype to avoid an error. */ |
19213 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19214 | builtin and then its argument prototype would still apply. */ |
19215 | char pthread_cancel(); | |
19216 | ||
19217 | int main() { | |
19218 | ||
009fead0 VZ |
19219 | /* The GNU C library defines this for functions which it implements |
19220 | to always fail with ENOSYS. Some functions are actually named | |
19221 | something starting with __ and the normal name is an alias. */ | |
19222 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
19223 | choke me | |
19224 | #else | |
a0b9e27f | 19225 | pthread_cancel(); |
009fead0 VZ |
19226 | #endif |
19227 | ||
a0b9e27f MB |
19228 | ; return 0; } |
19229 | EOF | |
521196a2 | 19230 | if { (eval echo configure:19231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19231 | rm -rf conftest* |
19232 | eval "ac_cv_func_pthread_cancel=yes" | |
19233 | else | |
19234 | echo "configure: failed program was:" >&5 | |
19235 | cat conftest.$ac_ext >&5 | |
19236 | rm -rf conftest* | |
19237 | eval "ac_cv_func_pthread_cancel=no" | |
19238 | fi | |
19239 | rm -f conftest* | |
19240 | fi | |
19241 | ||
19242 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
19243 | echo "$ac_t""yes" 1>&6 | |
19244 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 19245 | #define HAVE_PTHREAD_CANCEL 1 |
a0b9e27f | 19246 | EOF |
4f14bcd8 | 19247 | |
698dcdb6 | 19248 | else |
a0b9e27f MB |
19249 | echo "$ac_t""no" 1>&6 |
19250 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
422107f9 VZ |
19251 | fi |
19252 | ||
5c6fa7d2 | 19253 | |
a0b9e27f | 19254 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
521196a2 | 19255 | echo "configure:19256: checking for pthread_cleanup_push/pop" >&5 |
a0b9e27f MB |
19256 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
19257 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 19258 | else |
a0b9e27f MB |
19259 | |
19260 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 19261 | #line 19262 "configure" |
4f14bcd8 GD |
19262 | #include "confdefs.h" |
19263 | #include <pthread.h> | |
a0b9e27f | 19264 | int main() { |
4f14bcd8 | 19265 | |
7274f1c7 RL |
19266 | pthread_cleanup_push(NULL, NULL); |
19267 | pthread_cleanup_pop(0); | |
a0b9e27f MB |
19268 | |
19269 | ; return 0; } | |
19270 | EOF | |
521196a2 | 19271 | if { (eval echo configure:19272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19272 | rm -rf conftest* |
19273 | ||
7274f1c7 | 19274 | wx_cv_func_pthread_cleanup_push=yes |
a0b9e27f | 19275 | |
4f14bcd8 | 19276 | else |
a0b9e27f MB |
19277 | echo "configure: failed program was:" >&5 |
19278 | cat conftest.$ac_ext >&5 | |
19279 | rm -rf conftest* | |
19280 | ||
7274f1c7 | 19281 | wx_cv_func_pthread_cleanup_push=no |
a0b9e27f | 19282 | |
5c6fa7d2 | 19283 | fi |
a0b9e27f MB |
19284 | rm -f conftest* |
19285 | ||
247f5006 | 19286 | fi |
a0b9e27f MB |
19287 | |
19288 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
4f14bcd8 | 19289 | |
7274f1c7 | 19290 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
a0b9e27f | 19291 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19292 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
a0b9e27f | 19293 | EOF |
c7a2bf27 | 19294 | |
7274f1c7 | 19295 | fi |
4f14bcd8 | 19296 | |
a0b9e27f MB |
19297 | |
19298 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
521196a2 | 19299 | echo "configure:19300: checking for pthread_mutexattr_t" >&5 |
a0b9e27f MB |
19300 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
19301 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 19302 | else |
a0b9e27f MB |
19303 | |
19304 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 19305 | #line 19306 "configure" |
0dcf9893 | 19306 | #include "confdefs.h" |
4f14bcd8 | 19307 | #include <pthread.h> |
a0b9e27f | 19308 | int main() { |
4f14bcd8 | 19309 | |
7274f1c7 RL |
19310 | pthread_mutexattr_t attr; |
19311 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
a0b9e27f MB |
19312 | |
19313 | ; return 0; } | |
19314 | EOF | |
521196a2 | 19315 | if { (eval echo configure:19316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19316 | rm -rf conftest* |
19317 | ||
7274f1c7 | 19318 | wx_cv_type_pthread_mutexattr_t=yes |
a0b9e27f | 19319 | |
3fed1840 | 19320 | else |
a0b9e27f MB |
19321 | echo "configure: failed program was:" >&5 |
19322 | cat conftest.$ac_ext >&5 | |
19323 | rm -rf conftest* | |
19324 | ||
7274f1c7 | 19325 | wx_cv_type_pthread_mutexattr_t=no |
a0b9e27f MB |
19326 | |
19327 | ||
5c6fa7d2 | 19328 | fi |
a0b9e27f MB |
19329 | rm -f conftest* |
19330 | ||
247f5006 | 19331 | fi |
a0b9e27f MB |
19332 | |
19333 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
4f14bcd8 | 19334 | |
7274f1c7 | 19335 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
a0b9e27f | 19336 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19337 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
a0b9e27f | 19338 | EOF |
4f14bcd8 | 19339 | |
7274f1c7 | 19340 | else |
a0b9e27f | 19341 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
521196a2 | 19342 | echo "configure:19343: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
a0b9e27f MB |
19343 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
19344 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19345 | else | |
19346 | ||
19347 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 19348 | #line 19349 "configure" |
3fed1840 | 19349 | #include "confdefs.h" |
4f14bcd8 | 19350 | #include <pthread.h> |
a0b9e27f | 19351 | int main() { |
4f14bcd8 | 19352 | |
7274f1c7 | 19353 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
a0b9e27f MB |
19354 | |
19355 | ; return 0; } | |
19356 | EOF | |
521196a2 | 19357 | if { (eval echo configure:19358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19358 | rm -rf conftest* |
19359 | ||
7274f1c7 | 19360 | wx_cv_type_pthread_rec_mutex_init=yes |
a0b9e27f | 19361 | |
698dcdb6 | 19362 | else |
a0b9e27f MB |
19363 | echo "configure: failed program was:" >&5 |
19364 | cat conftest.$ac_ext >&5 | |
19365 | rm -rf conftest* | |
19366 | ||
7274f1c7 | 19367 | wx_cv_type_pthread_rec_mutex_init=no |
a0b9e27f MB |
19368 | |
19369 | ||
5c6fa7d2 | 19370 | fi |
a0b9e27f MB |
19371 | rm -f conftest* |
19372 | ||
247f5006 | 19373 | fi |
a0b9e27f MB |
19374 | |
19375 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
7274f1c7 | 19376 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
a0b9e27f | 19377 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19378 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
a0b9e27f | 19379 | EOF |
3fed1840 | 19380 | |
7274f1c7 | 19381 | else |
a0b9e27f | 19382 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
7274f1c7 RL |
19383 | fi |
19384 | fi | |
7274f1c7 | 19385 | fi |
3fed1840 | 19386 | |
a0b9e27f MB |
19387 | else |
19388 | if test "$wxUSE_THREADS" = "yes" ; then | |
19389 | case "${host}" in | |
19390 | *-*-mingw32* ) | |
ca8e52b3 | 19391 | echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6 |
521196a2 | 19392 | echo "configure:19393: checking if compiler supports -mthreads" >&5 |
ca8e52b3 VZ |
19393 | if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then |
19394 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19395 | else | |
19396 | ||
19397 | CFLAGS_OLD="$CFLAGS" | |
19398 | CFLAGS="$CFLAGS -mthreads" | |
19399 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 19400 | #line 19401 "configure" |
ca8e52b3 VZ |
19401 | #include "confdefs.h" |
19402 | ||
19403 | int main() { | |
19404 | ||
19405 | ; return 0; } | |
19406 | EOF | |
521196a2 | 19407 | if { (eval echo configure:19408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ca8e52b3 VZ |
19408 | rm -rf conftest* |
19409 | wx_cv_cflags_mthread=yes | |
19410 | else | |
19411 | echo "configure: failed program was:" >&5 | |
19412 | cat conftest.$ac_ext >&5 | |
19413 | rm -rf conftest* | |
19414 | wx_cv_cflags_mthread=no | |
19415 | ||
19416 | fi | |
19417 | rm -f conftest* | |
19418 | ||
19419 | ||
19420 | fi | |
19421 | ||
19422 | echo "$ac_t""$wx_cv_cflags_mthread" 1>&6 | |
19423 | ||
19424 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
19425 | CXXFLAGS="$CXXFLAGS -mthreads" | |
19426 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
19427 | LDFLAGS="$LDFLAGS -mthreads" | |
19428 | else | |
19429 | CFLAGS="$CFLAGS_OLD" | |
19430 | fi | |
a0b9e27f MB |
19431 | ;; |
19432 | esac | |
19433 | fi | |
4f14bcd8 GD |
19434 | fi |
19435 | ||
19436 | if test "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 19437 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19438 | #define wxUSE_THREADS 1 |
a0b9e27f | 19439 | EOF |
7b6058cd | 19440 | |
8284b0c5 | 19441 | |
4f14bcd8 | 19442 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 19443 | else |
4f14bcd8 | 19444 | if test "$ac_cv_func_strtok_r" = "yes"; then |
a0b9e27f | 19445 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
521196a2 | 19446 | echo "configure:19447: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
19447 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
19448 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
a0b9e27f | 19449 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 19450 | else |
a0b9e27f | 19451 | echo "$ac_t""no" 1>&6 |
4f14bcd8 GD |
19452 | fi |
19453 | fi | |
19454 | fi | |
19455 | ||
19456 | if test "$WXGTK20" = 1 ; then | |
a0b9e27f | 19457 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19458 | #define __WXGTK20__ $WXGTK20 |
a0b9e27f | 19459 | EOF |
4f14bcd8 GD |
19460 | |
19461 | WXGTK12=1 | |
10f2d63a | 19462 | fi |
4f14bcd8 GD |
19463 | |
19464 | if test "$WXGTK12" = 1 ; then | |
a0b9e27f | 19465 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19466 | #define __WXGTK12__ $WXGTK12 |
a0b9e27f | 19467 | EOF |
4f14bcd8 | 19468 | |
10f2d63a | 19469 | fi |
698dcdb6 | 19470 | |
4f14bcd8 | 19471 | if test "$WXGTK127" = 1 ; then |
a0b9e27f | 19472 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19473 | #define __WXGTK127__ $WXGTK127 |
a0b9e27f | 19474 | EOF |
4f14bcd8 | 19475 | |
698dcdb6 | 19476 | fi |
10f2d63a | 19477 | |
4f14bcd8 GD |
19478 | WXDEBUG= |
19479 | ||
19480 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
19481 | WXDEBUG="-g" | |
19482 | wxUSE_OPTIMISE=no | |
698dcdb6 | 19483 | fi |
4f14bcd8 GD |
19484 | |
19485 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
19486 | wxUSE_DEBUG_INFO=yes | |
19487 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
19488 | fi |
19489 | ||
4f14bcd8 | 19490 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
a0b9e27f | 19491 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19492 | #define WXDEBUG 1 |
a0b9e27f | 19493 | EOF |
4f14bcd8 GD |
19494 | |
19495 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 19496 | else |
4f14bcd8 GD |
19497 | if test "$wxUSE_GTK" = 1 ; then |
19498 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
19499 | fi | |
19500 | fi | |
19501 | ||
19502 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
a0b9e27f | 19503 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19504 | #define wxUSE_MEMORY_TRACING 1 |
a0b9e27f | 19505 | EOF |
4f14bcd8 | 19506 | |
a0b9e27f | 19507 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19508 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
a0b9e27f | 19509 | EOF |
4f14bcd8 | 19510 | |
a0b9e27f | 19511 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19512 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
a0b9e27f | 19513 | EOF |
4f14bcd8 GD |
19514 | |
19515 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
19516 | fi | |
19517 | ||
19518 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 19519 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
19520 | fi |
19521 | ||
19522 | PROFILE= | |
19523 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 19524 | PROFILE=" -pg" |
10f2d63a VZ |
19525 | fi |
19526 | ||
009fead0 VZ |
19527 | CODE_GEN_FLAGS= |
19528 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 19529 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
19530 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
19531 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 19532 | fi |
4f14bcd8 GD |
19533 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
19534 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
19535 | fi | |
19536 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
19537 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
19538 | fi | |
4f14bcd8 GD |
19539 | if test "$USE_WIN32" = 1 ; then |
19540 | # I'm not even really sure what this was ever added to solve, | |
19541 | # but someone added it for mingw native builds, so I guess | |
19542 | # they had a reason, right?? | |
19543 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
19544 | fi | |
1d1b75ac | 19545 | |
2b5f62a0 | 19546 | case "${host}" in |
1d1b75ac VZ |
19547 | powerpc*-*-aix* ) |
19548 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
19549 | ;; | |
2b5f62a0 VZ |
19550 | *-hppa* ) |
19551 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
19552 | ;; | |
1d1b75ac | 19553 | esac |
4f14bcd8 GD |
19554 | fi |
19555 | ||
af7b5345 | 19556 | OPTIMISE= |
4f14bcd8 | 19557 | if test "$wxUSE_OPTIMISE" = "no" ; then |
af7b5345 VZ |
19558 | if test "$GCC" = yes ; then |
19559 | OPTIMISE="-O0" | |
19560 | fi | |
4f14bcd8 GD |
19561 | else |
19562 | if test "$GCC" = yes ; then | |
19563 | OPTIMISE="-O2" | |
af7b5345 VZ |
19564 | |
19565 | case "${host}" in | |
4f14bcd8 GD |
19566 | i586-*-*|i686-*-* ) |
19567 | OPTIMISE="${OPTIMISE} " | |
19568 | ;; | |
19569 | esac | |
19570 | else | |
19571 | OPTIMISE="-O" | |
19572 | fi | |
19573 | fi | |
19574 | ||
8d90d2f2 | 19575 | |
4f14bcd8 | 19576 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
a0b9e27f | 19577 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19578 | #define WXWIN_COMPATIBILITY_2 1 |
a0b9e27f | 19579 | EOF |
4f14bcd8 | 19580 | |
8284b0c5 | 19581 | |
4f14bcd8 GD |
19582 | WXWIN_COMPATIBILITY_2_2="yes" |
19583 | fi | |
19584 | ||
65d8ef1e | 19585 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
a0b9e27f | 19586 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19587 | #define WXWIN_COMPATIBILITY_2_2 1 |
a0b9e27f | 19588 | EOF |
4f14bcd8 | 19589 | |
8d90d2f2 VZ |
19590 | |
19591 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
19592 | fi |
19593 | ||
65d8ef1e VS |
19594 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
19595 | cat >> confdefs.h <<\EOF | |
19596 | #define WXWIN_COMPATIBILITY_2_4 1 | |
19597 | EOF | |
19598 | ||
19599 | fi | |
19600 | ||
8284b0c5 | 19601 | |
10f2d63a | 19602 | if test "$wxUSE_GUI" = "yes"; then |
a0b9e27f | 19603 | cat >> confdefs.h <<\EOF |
10f2d63a | 19604 | #define wxUSE_GUI 1 |
a0b9e27f | 19605 | EOF |
10f2d63a | 19606 | |
8284b0c5 | 19607 | |
10f2d63a | 19608 | else |
a0b9e27f | 19609 | cat >> confdefs.h <<\EOF |
10f2d63a | 19610 | #define wxUSE_NOGUI 1 |
a0b9e27f | 19611 | EOF |
10f2d63a VZ |
19612 | |
19613 | fi | |
19614 | ||
8284b0c5 | 19615 | |
10f2d63a | 19616 | if test "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 19617 | cat >> confdefs.h <<\EOF |
10f2d63a | 19618 | #define wxUSE_UNIX 1 |
a0b9e27f | 19619 | EOF |
10f2d63a VZ |
19620 | |
19621 | fi | |
19622 | ||
8284b0c5 | 19623 | |
10f2d63a | 19624 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
a0b9e27f | 19625 | cat >> confdefs.h <<\EOF |
10f2d63a | 19626 | #define wxUSE_APPLE_IEEE 1 |
a0b9e27f | 19627 | EOF |
10f2d63a VZ |
19628 | |
19629 | fi | |
19630 | ||
1e6feb95 | 19631 | if test "$wxUSE_TIMER" = "yes"; then |
a0b9e27f | 19632 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19633 | #define wxUSE_TIMER 1 |
a0b9e27f | 19634 | EOF |
1e6feb95 VZ |
19635 | |
19636 | fi | |
19637 | ||
10f2d63a | 19638 | if test "$wxUSE_WAVE" = "yes"; then |
a0b9e27f | 19639 | cat >> confdefs.h <<\EOF |
10f2d63a | 19640 | #define wxUSE_WAVE 1 |
a0b9e27f | 19641 | EOF |
10f2d63a VZ |
19642 | |
19643 | fi | |
19644 | ||
1e6feb95 | 19645 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
a0b9e27f | 19646 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19647 | #define wxUSE_CMDLINE_PARSER 1 |
a0b9e27f | 19648 | EOF |
1e6feb95 VZ |
19649 | |
19650 | fi | |
19651 | ||
19652 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
a0b9e27f | 19653 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19654 | #define wxUSE_STOPWATCH 1 |
a0b9e27f | 19655 | EOF |
1e6feb95 VZ |
19656 | |
19657 | fi | |
19658 | ||
19659 | if test "$wxUSE_DATETIME" = "yes"; then | |
a0b9e27f | 19660 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19661 | #define wxUSE_DATETIME 1 |
a0b9e27f | 19662 | EOF |
1e6feb95 VZ |
19663 | |
19664 | fi | |
19665 | ||
19666 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
a0b9e27f | 19667 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19668 | #define wxUSE_TIMEDATE 1 |
a0b9e27f | 19669 | EOF |
1e6feb95 VZ |
19670 | |
19671 | fi | |
19672 | ||
10f2d63a | 19673 | if test "$wxUSE_FILE" = "yes"; then |
a0b9e27f | 19674 | cat >> confdefs.h <<\EOF |
10f2d63a | 19675 | #define wxUSE_FILE 1 |
a0b9e27f | 19676 | EOF |
10f2d63a VZ |
19677 | |
19678 | fi | |
19679 | ||
1e6feb95 | 19680 | if test "$wxUSE_FFILE" = "yes"; then |
a0b9e27f | 19681 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19682 | #define wxUSE_FFILE 1 |
a0b9e27f | 19683 | EOF |
1e6feb95 VZ |
19684 | |
19685 | fi | |
19686 | ||
24528b0c | 19687 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
a0b9e27f | 19688 | cat >> confdefs.h <<\EOF |
24528b0c | 19689 | #define wxUSE_FILESYSTEM 1 |
a0b9e27f | 19690 | EOF |
24528b0c VS |
19691 | |
19692 | fi | |
19693 | ||
10f2d63a | 19694 | if test "$wxUSE_FS_INET" = "yes"; then |
a0b9e27f | 19695 | cat >> confdefs.h <<\EOF |
10f2d63a | 19696 | #define wxUSE_FS_INET 1 |
a0b9e27f | 19697 | EOF |
10f2d63a VZ |
19698 | |
19699 | fi | |
19700 | ||
19701 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
a0b9e27f | 19702 | cat >> confdefs.h <<\EOF |
10f2d63a | 19703 | #define wxUSE_FS_ZIP 1 |
a0b9e27f | 19704 | EOF |
10f2d63a VZ |
19705 | |
19706 | fi | |
19707 | ||
19708 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
a0b9e27f | 19709 | cat >> confdefs.h <<\EOF |
10f2d63a | 19710 | #define wxUSE_ZIPSTREAM 1 |
a0b9e27f | 19711 | EOF |
10f2d63a VZ |
19712 | |
19713 | fi | |
19714 | ||
eb4efbdc | 19715 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
a0b9e27f | 19716 | cat >> confdefs.h <<\EOF |
eb4efbdc | 19717 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
a0b9e27f | 19718 | EOF |
eb4efbdc VZ |
19719 | |
19720 | fi | |
19721 | ||
4f3c5f06 | 19722 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 19723 | cat >> confdefs.h <<\EOF |
4f3c5f06 | 19724 | #define wxUSE_SNGLINST_CHECKER 1 |
a0b9e27f | 19725 | EOF |
4f3c5f06 VZ |
19726 | |
19727 | fi | |
19728 | ||
10f2d63a | 19729 | if test "$wxUSE_BUSYINFO" = "yes"; then |
a0b9e27f | 19730 | cat >> confdefs.h <<\EOF |
10f2d63a | 19731 | #define wxUSE_BUSYINFO 1 |
a0b9e27f | 19732 | EOF |
10f2d63a VZ |
19733 | |
19734 | fi | |
19735 | ||
19736 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
a0b9e27f | 19737 | cat >> confdefs.h <<\EOF |
10f2d63a | 19738 | #define wxUSE_STD_IOSTREAM 1 |
a0b9e27f | 19739 | EOF |
10f2d63a VZ |
19740 | |
19741 | fi | |
19742 | ||
a3a584a7 | 19743 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
a0b9e27f | 19744 | cat >> confdefs.h <<\EOF |
a3a584a7 | 19745 | #define wxUSE_TEXTBUFFER 1 |
a0b9e27f | 19746 | EOF |
a3a584a7 VZ |
19747 | |
19748 | fi | |
19749 | ||
10f2d63a | 19750 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 19751 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
a0b9e27f | 19752 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 19753 | else |
a0b9e27f | 19754 | cat >> confdefs.h <<\EOF |
10f2d63a | 19755 | #define wxUSE_TEXTFILE 1 |
a0b9e27f | 19756 | EOF |
10f2d63a VZ |
19757 | |
19758 | fi | |
19759 | fi | |
19760 | ||
19761 | if test "$wxUSE_CONFIG" = "yes" ; then | |
19762 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
a0b9e27f | 19763 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 19764 | else |
a0b9e27f | 19765 | cat >> confdefs.h <<\EOF |
10f2d63a | 19766 | #define wxUSE_CONFIG 1 |
a0b9e27f | 19767 | EOF |
10f2d63a VZ |
19768 | |
19769 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
19770 | fi | |
19771 | fi | |
19772 | ||
19773 | if test "$wxUSE_INTL" = "yes" ; then | |
19774 | if test "$wxUSE_FILE" != "yes"; then | |
a0b9e27f | 19775 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 19776 | else |
a0b9e27f | 19777 | cat >> confdefs.h <<\EOF |
10f2d63a | 19778 | #define wxUSE_INTL 1 |
a0b9e27f | 19779 | EOF |
10f2d63a VZ |
19780 | |
19781 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 19782 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
19783 | fi |
19784 | fi | |
19785 | ||
19786 | if test "$wxUSE_LOG" = "yes"; then | |
a0b9e27f | 19787 | cat >> confdefs.h <<\EOF |
10f2d63a | 19788 | #define wxUSE_LOG 1 |
a0b9e27f | 19789 | EOF |
10f2d63a | 19790 | |
8284b0c5 | 19791 | |
d73be714 | 19792 | if test "$wxUSE_LOGGUI" = "yes"; then |
a0b9e27f | 19793 | cat >> confdefs.h <<\EOF |
d73be714 | 19794 | #define wxUSE_LOGGUI 1 |
a0b9e27f | 19795 | EOF |
d73be714 VZ |
19796 | |
19797 | fi | |
19798 | ||
19799 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
a0b9e27f | 19800 | cat >> confdefs.h <<\EOF |
d73be714 | 19801 | #define wxUSE_LOGWINDOW 1 |
a0b9e27f | 19802 | EOF |
69d27ff7 MB |
19803 | |
19804 | fi | |
19805 | ||
19806 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
a0b9e27f | 19807 | cat >> confdefs.h <<\EOF |
69d27ff7 | 19808 | #define wxUSE_LOG_DIALOG 1 |
a0b9e27f | 19809 | EOF |
d73be714 VZ |
19810 | |
19811 | fi | |
10f2d63a VZ |
19812 | fi |
19813 | ||
19814 | if test "$wxUSE_LONGLONG" = "yes"; then | |
a0b9e27f | 19815 | cat >> confdefs.h <<\EOF |
10f2d63a | 19816 | #define wxUSE_LONGLONG 1 |
a0b9e27f | 19817 | EOF |
10f2d63a VZ |
19818 | |
19819 | fi | |
19820 | ||
e8f65ba6 | 19821 | if test "$wxUSE_GEOMETRY" = "yes"; then |
a0b9e27f | 19822 | cat >> confdefs.h <<\EOF |
e8f65ba6 | 19823 | #define wxUSE_GEOMETRY 1 |
a0b9e27f | 19824 | EOF |
e8f65ba6 RR |
19825 | |
19826 | fi | |
19827 | ||
10f2d63a | 19828 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
a0b9e27f | 19829 | cat >> confdefs.h <<\EOF |
10f2d63a | 19830 | #define wxUSE_DIALUP_MANAGER 1 |
a0b9e27f | 19831 | EOF |
10f2d63a | 19832 | |
70f7a477 | 19833 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
19834 | fi |
19835 | ||
19836 | if test "$wxUSE_STREAMS" = "yes" ; then | |
a0b9e27f | 19837 | cat >> confdefs.h <<\EOF |
10f2d63a | 19838 | #define wxUSE_STREAMS 1 |
a0b9e27f | 19839 | EOF |
10f2d63a VZ |
19840 | |
19841 | fi | |
19842 | ||
5c6fa7d2 | 19843 | |
8284b0c5 | 19844 | if test "$wxUSE_DATETIME" = "yes"; then |
a0b9e27f | 19845 | for ac_func in strptime |
83307f33 | 19846 | do |
a0b9e27f | 19847 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 19848 | echo "configure:19849: checking for $ac_func" >&5 |
a0b9e27f MB |
19849 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19850 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19851 | else | |
19852 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 19853 | #line 19854 "configure" |
83307f33 VZ |
19854 | #include "confdefs.h" |
19855 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19856 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
19857 | #include <assert.h> |
19858 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19859 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19860 | builtin and then its argument prototype would still apply. */ |
19861 | char $ac_func(); | |
19862 | ||
19863 | int main() { | |
19864 | ||
83307f33 VZ |
19865 | /* The GNU C library defines this for functions which it implements |
19866 | to always fail with ENOSYS. Some functions are actually named | |
19867 | something starting with __ and the normal name is an alias. */ | |
19868 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19869 | choke me | |
19870 | #else | |
a0b9e27f | 19871 | $ac_func(); |
83307f33 VZ |
19872 | #endif |
19873 | ||
a0b9e27f MB |
19874 | ; return 0; } |
19875 | EOF | |
521196a2 | 19876 | if { (eval echo configure:19877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19877 | rm -rf conftest* |
19878 | eval "ac_cv_func_$ac_func=yes" | |
19879 | else | |
19880 | echo "configure: failed program was:" >&5 | |
19881 | cat conftest.$ac_ext >&5 | |
19882 | rm -rf conftest* | |
19883 | eval "ac_cv_func_$ac_func=no" | |
19884 | fi | |
19885 | rm -f conftest* | |
19886 | fi | |
83307f33 | 19887 | |
a0b9e27f MB |
19888 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
19889 | echo "$ac_t""yes" 1>&6 | |
19890 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19891 | cat >> confdefs.h <<EOF | |
19892 | #define $ac_tr_func 1 | |
19893 | EOF | |
19894 | ||
19895 | else | |
19896 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
19897 | fi |
19898 | done | |
19899 | ||
5c6fa7d2 | 19900 | |
a0b9e27f | 19901 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
521196a2 | 19902 | echo "configure:19903: checking for timezone variable in <time.h>" >&5 |
a0b9e27f MB |
19903 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
19904 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 19905 | else |
a0b9e27f MB |
19906 | |
19907 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 19908 | #line 19909 "configure" |
360d6699 VZ |
19909 | #include "confdefs.h" |
19910 | ||
b4085ce6 | 19911 | #include <time.h> |
a0b9e27f MB |
19912 | |
19913 | int main() { | |
360d6699 VZ |
19914 | |
19915 | int tz; | |
4f11a343 | 19916 | tz = timezone; |
a0b9e27f MB |
19917 | |
19918 | ; return 0; } | |
19919 | EOF | |
521196a2 | 19920 | if { (eval echo configure:19921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19921 | rm -rf conftest* |
19922 | ||
4f11a343 | 19923 | wx_cv_var_timezone=timezone |
a0b9e27f | 19924 | |
360d6699 | 19925 | else |
a0b9e27f MB |
19926 | echo "configure: failed program was:" >&5 |
19927 | cat conftest.$ac_ext >&5 | |
19928 | rm -rf conftest* | |
19929 | ||
19930 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 19931 | #line 19932 "configure" |
360d6699 VZ |
19932 | #include "confdefs.h" |
19933 | ||
b4085ce6 | 19934 | #include <time.h> |
a0b9e27f MB |
19935 | |
19936 | int main() { | |
360d6699 VZ |
19937 | |
19938 | int tz; | |
19939 | tz = _timezone; | |
a0b9e27f MB |
19940 | |
19941 | ; return 0; } | |
19942 | EOF | |
521196a2 | 19943 | if { (eval echo configure:19944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19944 | rm -rf conftest* |
19945 | ||
360d6699 | 19946 | wx_cv_var_timezone=_timezone |
a0b9e27f | 19947 | |
5357c8e8 | 19948 | else |
a0b9e27f MB |
19949 | echo "configure: failed program was:" >&5 |
19950 | cat conftest.$ac_ext >&5 | |
19951 | rm -rf conftest* | |
19952 | ||
19953 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 19954 | #line 19955 "configure" |
5357c8e8 VZ |
19955 | #include "confdefs.h" |
19956 | ||
b4085ce6 | 19957 | #include <time.h> |
a0b9e27f MB |
19958 | |
19959 | int main() { | |
5357c8e8 VZ |
19960 | |
19961 | int tz; | |
4f11a343 | 19962 | tz = __timezone; |
a0b9e27f MB |
19963 | |
19964 | ; return 0; } | |
19965 | EOF | |
521196a2 | 19966 | if { (eval echo configure:19967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19967 | rm -rf conftest* |
19968 | ||
4f11a343 | 19969 | wx_cv_var_timezone=__timezone |
a0b9e27f | 19970 | |
360d6699 | 19971 | else |
a0b9e27f MB |
19972 | echo "configure: failed program was:" >&5 |
19973 | cat conftest.$ac_ext >&5 | |
19974 | rm -rf conftest* | |
19975 | ||
f9bc1684 | 19976 | if test "$USE_DOS" = 0 ; then |
a0b9e27f | 19977 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 | 19978 | fi |
a0b9e27f MB |
19979 | |
19980 | ||
328a083c | 19981 | fi |
a0b9e27f MB |
19982 | rm -f conftest* |
19983 | ||
19984 | ||
7b4a847f | 19985 | fi |
a0b9e27f MB |
19986 | rm -f conftest* |
19987 | ||
19988 | ||
5c6fa7d2 | 19989 | fi |
a0b9e27f MB |
19990 | rm -f conftest* |
19991 | ||
19992 | ||
247f5006 | 19993 | fi |
a0b9e27f MB |
19994 | |
19995 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
698dcdb6 | 19996 | |
f9bc1684 | 19997 | if test "x$wx_cv_var_timezone" != x ; then |
a0b9e27f | 19998 | cat >> confdefs.h <<EOF |
360d6699 | 19999 | #define WX_TIMEZONE $wx_cv_var_timezone |
a0b9e27f | 20000 | EOF |
360d6699 | 20001 | |
f9bc1684 | 20002 | fi |
698dcdb6 | 20003 | |
a0b9e27f | 20004 | for ac_func in localtime |
afc31813 | 20005 | do |
a0b9e27f | 20006 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 20007 | echo "configure:20008: checking for $ac_func" >&5 |
a0b9e27f MB |
20008 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20009 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20010 | else | |
20011 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 20012 | #line 20013 "configure" |
10f2d63a | 20013 | #include "confdefs.h" |
afc31813 | 20014 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 20015 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
20016 | #include <assert.h> |
20017 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20018 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20019 | builtin and then its argument prototype would still apply. */ |
20020 | char $ac_func(); | |
20021 | ||
20022 | int main() { | |
20023 | ||
afc31813 VZ |
20024 | /* The GNU C library defines this for functions which it implements |
20025 | to always fail with ENOSYS. Some functions are actually named | |
20026 | something starting with __ and the normal name is an alias. */ | |
20027 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20028 | choke me | |
20029 | #else | |
a0b9e27f | 20030 | $ac_func(); |
afc31813 VZ |
20031 | #endif |
20032 | ||
a0b9e27f MB |
20033 | ; return 0; } |
20034 | EOF | |
521196a2 | 20035 | if { (eval echo configure:20036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20036 | rm -rf conftest* |
20037 | eval "ac_cv_func_$ac_func=yes" | |
20038 | else | |
20039 | echo "configure: failed program was:" >&5 | |
20040 | cat conftest.$ac_ext >&5 | |
20041 | rm -rf conftest* | |
20042 | eval "ac_cv_func_$ac_func=no" | |
20043 | fi | |
20044 | rm -f conftest* | |
20045 | fi | |
afc31813 | 20046 | |
a0b9e27f MB |
20047 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
20048 | echo "$ac_t""yes" 1>&6 | |
20049 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20050 | cat >> confdefs.h <<EOF | |
20051 | #define $ac_tr_func 1 | |
20052 | EOF | |
20053 | ||
20054 | else | |
20055 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
20056 | fi |
20057 | done | |
20058 | ||
5c6fa7d2 | 20059 | |
8284b0c5 | 20060 | if test "$ac_cv_func_localtime" = "yes"; then |
a0b9e27f | 20061 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
521196a2 | 20062 | echo "configure:20063: checking for tm_gmtoff in struct tm" >&5 |
a0b9e27f MB |
20063 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
20064 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20065 | else | |
20066 | ||
20067 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 20068 | #line 20069 "configure" |
0470b1e6 VZ |
20069 | #include "confdefs.h" |
20070 | ||
b4085ce6 | 20071 | #include <time.h> |
a0b9e27f MB |
20072 | |
20073 | int main() { | |
0470b1e6 VZ |
20074 | |
20075 | struct tm tm; | |
20076 | tm.tm_gmtoff++; | |
a0b9e27f MB |
20077 | |
20078 | ; return 0; } | |
20079 | EOF | |
521196a2 | 20080 | if { (eval echo configure:20081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
20081 | rm -rf conftest* |
20082 | ||
f03a98d8 | 20083 | wx_cv_struct_tm_has_gmtoff=yes |
a0b9e27f | 20084 | |
0470b1e6 | 20085 | else |
a0b9e27f MB |
20086 | echo "configure: failed program was:" >&5 |
20087 | cat conftest.$ac_ext >&5 | |
20088 | rm -rf conftest* | |
20089 | wx_cv_struct_tm_has_gmtoff=no | |
20090 | ||
5c6fa7d2 | 20091 | fi |
a0b9e27f MB |
20092 | rm -f conftest* |
20093 | ||
247f5006 | 20094 | fi |
a0b9e27f MB |
20095 | |
20096 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
20097 | fi |
20098 | ||
20099 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
a0b9e27f | 20100 | cat >> confdefs.h <<\EOF |
6232543b | 20101 | #define WX_GMTOFF_IN_TM 1 |
a0b9e27f | 20102 | EOF |
0470b1e6 | 20103 | |
3fcdd07b VZ |
20104 | fi |
20105 | ||
a0b9e27f | 20106 | for ac_func in gettimeofday ftime |
3fcdd07b | 20107 | do |
a0b9e27f | 20108 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 20109 | echo "configure:20110: checking for $ac_func" >&5 |
a0b9e27f MB |
20110 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20111 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20112 | else | |
20113 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 20114 | #line 20115 "configure" |
3fcdd07b VZ |
20115 | #include "confdefs.h" |
20116 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20117 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
20118 | #include <assert.h> |
20119 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20120 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20121 | builtin and then its argument prototype would still apply. */ |
20122 | char $ac_func(); | |
20123 | ||
20124 | int main() { | |
20125 | ||
3fcdd07b VZ |
20126 | /* The GNU C library defines this for functions which it implements |
20127 | to always fail with ENOSYS. Some functions are actually named | |
20128 | something starting with __ and the normal name is an alias. */ | |
20129 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20130 | choke me | |
20131 | #else | |
a0b9e27f | 20132 | $ac_func(); |
3fcdd07b VZ |
20133 | #endif |
20134 | ||
a0b9e27f MB |
20135 | ; return 0; } |
20136 | EOF | |
521196a2 | 20137 | if { (eval echo configure:20138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20138 | rm -rf conftest* |
20139 | eval "ac_cv_func_$ac_func=yes" | |
20140 | else | |
20141 | echo "configure: failed program was:" >&5 | |
20142 | cat conftest.$ac_ext >&5 | |
20143 | rm -rf conftest* | |
20144 | eval "ac_cv_func_$ac_func=no" | |
20145 | fi | |
20146 | rm -f conftest* | |
20147 | fi | |
20148 | ||
20149 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20150 | echo "$ac_t""yes" 1>&6 | |
20151 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20152 | cat >> confdefs.h <<EOF | |
20153 | #define $ac_tr_func 1 | |
20154 | EOF | |
3fcdd07b | 20155 | break |
a0b9e27f MB |
20156 | else |
20157 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
20158 | fi |
20159 | done | |
20160 | ||
698dcdb6 | 20161 | |
8284b0c5 | 20162 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
a0b9e27f | 20163 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
521196a2 | 20164 | echo "configure:20165: checking whether gettimeofday takes two arguments" >&5 |
a0b9e27f MB |
20165 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
20166 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20167 | else | |
20168 | ||
20169 | ||
20170 | ac_ext=C | |
20171 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 20172 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20173 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20174 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20175 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 20176 | |
8284b0c5 | 20177 | |
a0b9e27f | 20178 | cat > conftest.$ac_ext <<EOF |
521196a2 | 20179 | #line 20180 "configure" |
10f2d63a | 20180 | #include "confdefs.h" |
afc31813 VZ |
20181 | |
20182 | #include <sys/time.h> | |
20183 | #include <unistd.h> | |
a0b9e27f MB |
20184 | |
20185 | int main() { | |
afc31813 VZ |
20186 | |
20187 | struct timeval tv; | |
776862b4 | 20188 | gettimeofday(&tv, NULL); |
a0b9e27f MB |
20189 | |
20190 | ; return 0; } | |
20191 | EOF | |
521196a2 | 20192 | if { (eval echo configure:20193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20193 | rm -rf conftest* |
afc31813 | 20194 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 20195 | else |
a0b9e27f MB |
20196 | echo "configure: failed program was:" >&5 |
20197 | cat conftest.$ac_ext >&5 | |
20198 | rm -rf conftest* | |
20199 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 20200 | #line 20201 "configure" |
10f2d63a | 20201 | #include "confdefs.h" |
afc31813 VZ |
20202 | |
20203 | #include <sys/time.h> | |
20204 | #include <unistd.h> | |
a0b9e27f MB |
20205 | |
20206 | int main() { | |
afc31813 VZ |
20207 | |
20208 | struct timeval tv; | |
20209 | gettimeofday(&tv); | |
a0b9e27f MB |
20210 | |
20211 | ; return 0; } | |
20212 | EOF | |
521196a2 | 20213 | if { (eval echo configure:20214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20214 | rm -rf conftest* |
afc31813 | 20215 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 20216 | else |
a0b9e27f MB |
20217 | echo "configure: failed program was:" >&5 |
20218 | cat conftest.$ac_ext >&5 | |
20219 | rm -rf conftest* | |
20220 | ||
20221 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
776862b4 | 20222 | wx_cv_func_gettimeofday_has_2_args=unknown |
a0b9e27f MB |
20223 | |
20224 | ||
10f2d63a | 20225 | fi |
a0b9e27f MB |
20226 | rm -f conftest* |
20227 | ||
10f2d63a | 20228 | fi |
a0b9e27f | 20229 | rm -f conftest* |
afc31813 | 20230 | ac_ext=c |
a0b9e27f | 20231 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 20232 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20233 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20234 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20235 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20236 | |
a0b9e27f | 20237 | |
247f5006 | 20238 | fi |
a0b9e27f MB |
20239 | |
20240 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 20241 | |
afc31813 | 20242 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
a0b9e27f | 20243 | cat >> confdefs.h <<\EOF |
afc31813 | 20244 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
a0b9e27f | 20245 | EOF |
afc31813 VZ |
20246 | |
20247 | fi | |
20248 | fi | |
20249 | ||
a0b9e27f | 20250 | cat >> confdefs.h <<\EOF |
afc31813 | 20251 | #define wxUSE_TIMEDATE 1 |
a0b9e27f | 20252 | EOF |
afc31813 VZ |
20253 | |
20254 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
20255 | fi | |
20256 | ||
8284b0c5 | 20257 | |
52127426 | 20258 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 20259 | if test "$wxUSE_MGL" = "1"; then |
a0b9e27f | 20260 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
20261 | wxUSE_SOCKETS="no" |
20262 | fi | |
0feee163 | 20263 | fi |
b089607b | 20264 | |
0feee163 VZ |
20265 | if test "$wxUSE_SOCKETS" = "yes"; then |
20266 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 20267 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
521196a2 | 20268 | echo "configure:20269: checking for socket" >&5 |
a0b9e27f MB |
20269 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
20270 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 20271 | else |
a0b9e27f | 20272 | cat > conftest.$ac_ext <<EOF |
521196a2 | 20273 | #line 20274 "configure" |
c63c7106 VZ |
20274 | #include "confdefs.h" |
20275 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20276 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
20277 | #include <assert.h> |
20278 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20279 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20280 | builtin and then its argument prototype would still apply. */ |
20281 | char socket(); | |
20282 | ||
20283 | int main() { | |
20284 | ||
c63c7106 VZ |
20285 | /* The GNU C library defines this for functions which it implements |
20286 | to always fail with ENOSYS. Some functions are actually named | |
20287 | something starting with __ and the normal name is an alias. */ | |
20288 | #if defined (__stub_socket) || defined (__stub___socket) | |
20289 | choke me | |
20290 | #else | |
a0b9e27f | 20291 | socket(); |
c63c7106 VZ |
20292 | #endif |
20293 | ||
a0b9e27f MB |
20294 | ; return 0; } |
20295 | EOF | |
521196a2 | 20296 | if { (eval echo configure:20297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20297 | rm -rf conftest* |
20298 | eval "ac_cv_func_socket=yes" | |
20299 | else | |
20300 | echo "configure: failed program was:" >&5 | |
20301 | cat conftest.$ac_ext >&5 | |
20302 | rm -rf conftest* | |
20303 | eval "ac_cv_func_socket=no" | |
20304 | fi | |
20305 | rm -f conftest* | |
20306 | fi | |
20307 | ||
20308 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
20309 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
20310 | : |
20311 | else | |
a0b9e27f MB |
20312 | echo "$ac_t""no" 1>&6 |
20313 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
521196a2 | 20314 | echo "configure:20315: checking for socket in -lsocket" >&5 |
a0b9e27f MB |
20315 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
20316 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20317 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 20318 | else |
a0b9e27f | 20319 | ac_save_LIBS="$LIBS" |
c63c7106 | 20320 | LIBS="-lsocket $LIBS" |
a0b9e27f | 20321 | cat > conftest.$ac_ext <<EOF |
521196a2 | 20322 | #line 20323 "configure" |
c63c7106 VZ |
20323 | #include "confdefs.h" |
20324 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20325 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20326 | builtin and then its argument prototype would still apply. */ |
20327 | char socket(); | |
20328 | ||
20329 | int main() { | |
20330 | socket() | |
20331 | ; return 0; } | |
20332 | EOF | |
521196a2 | 20333 | if { (eval echo configure:20334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20334 | rm -rf conftest* |
20335 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20336 | else | |
20337 | echo "configure: failed program was:" >&5 | |
20338 | cat conftest.$ac_ext >&5 | |
20339 | rm -rf conftest* | |
20340 | eval "ac_cv_lib_$ac_lib_var=no" | |
20341 | fi | |
20342 | rm -f conftest* | |
20343 | LIBS="$ac_save_LIBS" | |
20344 | ||
20345 | fi | |
20346 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20347 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
20348 | if test "$INET_LINK" != " -lsocket"; then |
20349 | INET_LINK="$INET_LINK -lsocket" | |
20350 | fi | |
c63c7106 | 20351 | else |
a0b9e27f | 20352 | echo "$ac_t""no" 1>&6 |
afc31813 | 20353 | |
a0b9e27f | 20354 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
3a922bb4 | 20355 | wxUSE_SOCKETS=no |
a0b9e27f MB |
20356 | |
20357 | ||
6232543b | 20358 | fi |
b089607b | 20359 | |
a0b9e27f | 20360 | |
1e487827 | 20361 | fi |
afc31813 | 20362 | |
3a922bb4 | 20363 | fi |
0feee163 | 20364 | fi |
51a9faba | 20365 | |
0feee163 VZ |
20366 | if test "$wxUSE_SOCKETS" = "yes" ; then |
20367 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 20368 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
521196a2 | 20369 | echo "configure:20370: checking what is the type of the third argument of getsockname" >&5 |
a0b9e27f MB |
20370 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
20371 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20372 | else | |
20373 | ||
20374 | ||
20375 | ac_ext=C | |
20376 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 20377 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20378 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20379 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20380 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 20381 | |
8284b0c5 | 20382 | |
a0b9e27f | 20383 | cat > conftest.$ac_ext <<EOF |
521196a2 | 20384 | #line 20385 "configure" |
afc31813 | 20385 | #include "confdefs.h" |
51a9faba | 20386 | |
3a922bb4 RL |
20387 | #include <sys/types.h> |
20388 | #include <sys/socket.h> | |
a0b9e27f MB |
20389 | |
20390 | int main() { | |
51a9faba | 20391 | |
3a922bb4 RL |
20392 | socklen_t len; |
20393 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20394 | |
20395 | ; return 0; } | |
20396 | EOF | |
521196a2 | 20397 | if { (eval echo configure:20398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20398 | rm -rf conftest* |
51a9faba | 20399 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 20400 | else |
a0b9e27f MB |
20401 | echo "configure: failed program was:" >&5 |
20402 | cat conftest.$ac_ext >&5 | |
20403 | rm -rf conftest* | |
20404 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 20405 | #line 20406 "configure" |
afc31813 | 20406 | #include "confdefs.h" |
51a9faba | 20407 | |
3a922bb4 RL |
20408 | #include <sys/types.h> |
20409 | #include <sys/socket.h> | |
a0b9e27f MB |
20410 | |
20411 | int main() { | |
51a9faba | 20412 | |
3a922bb4 RL |
20413 | size_t len; |
20414 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20415 | |
20416 | ; return 0; } | |
20417 | EOF | |
521196a2 | 20418 | if { (eval echo configure:20419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20419 | rm -rf conftest* |
51a9faba | 20420 | wx_cv_type_getsockname3=size_t |
afc31813 | 20421 | else |
a0b9e27f MB |
20422 | echo "configure: failed program was:" >&5 |
20423 | cat conftest.$ac_ext >&5 | |
20424 | rm -rf conftest* | |
20425 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 20426 | #line 20427 "configure" |
afc31813 | 20427 | #include "confdefs.h" |
51a9faba | 20428 | |
3a922bb4 RL |
20429 | #include <sys/types.h> |
20430 | #include <sys/socket.h> | |
a0b9e27f MB |
20431 | |
20432 | int main() { | |
51a9faba | 20433 | |
3a922bb4 RL |
20434 | int len; |
20435 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20436 | |
20437 | ; return 0; } | |
20438 | EOF | |
521196a2 | 20439 | if { (eval echo configure:20440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20440 | rm -rf conftest* |
51a9faba | 20441 | wx_cv_type_getsockname3=int |
afc31813 | 20442 | else |
a0b9e27f MB |
20443 | echo "configure: failed program was:" >&5 |
20444 | cat conftest.$ac_ext >&5 | |
20445 | rm -rf conftest* | |
20446 | wx_cv_type_getsockname3=unknown | |
20447 | ||
afc31813 | 20448 | fi |
a0b9e27f MB |
20449 | rm -f conftest* |
20450 | ||
afc31813 | 20451 | fi |
a0b9e27f MB |
20452 | rm -f conftest* |
20453 | ||
afc31813 | 20454 | fi |
a0b9e27f | 20455 | rm -f conftest* |
51a9faba | 20456 | |
3a922bb4 | 20457 | ac_ext=c |
a0b9e27f | 20458 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 20459 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20460 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20461 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20462 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20463 | |
a0b9e27f | 20464 | |
247f5006 | 20465 | fi |
a0b9e27f MB |
20466 | |
20467 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 20468 | |
3a922bb4 RL |
20469 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
20470 | wxUSE_SOCKETS=no | |
a0b9e27f | 20471 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
3a922bb4 | 20472 | else |
a0b9e27f | 20473 | cat >> confdefs.h <<EOF |
51a9faba | 20474 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
a0b9e27f | 20475 | EOF |
51a9faba | 20476 | |
3a922bb4 | 20477 | fi |
51a9faba VZ |
20478 | fi |
20479 | fi | |
afc31813 | 20480 | |
51a9faba | 20481 | if test "$wxUSE_SOCKETS" = "yes" ; then |
a0b9e27f | 20482 | cat >> confdefs.h <<\EOF |
afc31813 | 20483 | #define wxUSE_SOCKETS 1 |
a0b9e27f | 20484 | EOF |
afc31813 | 20485 | |
70f7a477 | 20486 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
20487 | fi |
20488 | ||
8284b0c5 | 20489 | |
dc3d889d VZ |
20490 | if test "$wxUSE_GUI" = "yes"; then |
20491 | ||
156b2523 | 20492 | if test "$TOOLKIT" = "MAC"; then |
a0b9e27f | 20493 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
20494 | wxUSE_JOYSTICK=no |
20495 | fi | |
20496 | if test "$TOOLKIT" = "MOTIF"; then | |
a0b9e27f | 20497 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 |
156b2523 | 20498 | wxUSE_JOYSTICK=no |
f79bd02d JS |
20499 | fi |
20500 | if test "$TOOLKIT" = "X11"; then | |
a0b9e27f | 20501 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 |
f79bd02d | 20502 | wxUSE_JOYSTICK=no |
156b2523 GD |
20503 | fi |
20504 | ||
3a922bb4 RL |
20505 | if test "$TOOLKIT" != "MSW"; then |
20506 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
a0b9e27f | 20507 | for ac_hdr in linux/joystick.h |
10f2d63a | 20508 | do |
a0b9e27f MB |
20509 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
20510 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
521196a2 | 20511 | echo "configure:20512: checking for $ac_hdr" >&5 |
a0b9e27f MB |
20512 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20513 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20514 | else | |
20515 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 20516 | #line 20517 "configure" |
247f5006 | 20517 | #include "confdefs.h" |
a0b9e27f MB |
20518 | #include <$ac_hdr> |
20519 | EOF | |
20520 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 20521 | { (eval echo configure:20522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
20522 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20523 | if test -z "$ac_err"; then | |
20524 | rm -rf conftest* | |
20525 | eval "ac_cv_header_$ac_safe=yes" | |
20526 | else | |
20527 | echo "$ac_err" >&5 | |
20528 | echo "configure: failed program was:" >&5 | |
247f5006 | 20529 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
20530 | rm -rf conftest* |
20531 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 20532 | fi |
a0b9e27f | 20533 | rm -f conftest* |
10f2d63a | 20534 | fi |
a0b9e27f MB |
20535 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
20536 | echo "$ac_t""yes" 1>&6 | |
20537 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20538 | cat >> confdefs.h <<EOF | |
20539 | #define $ac_tr_hdr 1 | |
20540 | EOF | |
20541 | ||
20542 | else | |
20543 | echo "$ac_t""no" 1>&6 | |
247f5006 | 20544 | fi |
10f2d63a VZ |
20545 | done |
20546 | ||
3a922bb4 RL |
20547 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
20548 | wxUSE_JOYSTICK=no | |
a0b9e27f | 20549 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
20550 | fi |
20551 | fi | |
20552 | fi | |
b089607b | 20553 | |
3a922bb4 | 20554 | if test "$wxUSE_JOYSTICK" = "yes"; then |
a0b9e27f | 20555 | cat >> confdefs.h <<\EOF |
10f2d63a | 20556 | #define wxUSE_JOYSTICK 1 |
a0b9e27f | 20557 | EOF |
10f2d63a | 20558 | |
3a922bb4 RL |
20559 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
20560 | fi | |
dc3d889d VZ |
20561 | fi |
20562 | ||
8284b0c5 | 20563 | |
b089607b VZ |
20564 | if test "$TOOLKIT" != "MSW"; then |
20565 | ||
3a922bb4 RL |
20566 | HAVE_DL_FUNCS=0 |
20567 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 20568 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
20569 | if test "$USE_DARWIN" = 1; then |
20570 | HAVE_DL_FUNCS=1 | |
20571 | else | |
a0b9e27f | 20572 | for ac_func in dlopen |
10f2d63a | 20573 | do |
a0b9e27f | 20574 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 20575 | echo "configure:20576: checking for $ac_func" >&5 |
a0b9e27f MB |
20576 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20577 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20578 | else | |
20579 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 20580 | #line 20581 "configure" |
10f2d63a VZ |
20581 | #include "confdefs.h" |
20582 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20583 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
20584 | #include <assert.h> |
20585 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20586 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20587 | builtin and then its argument prototype would still apply. */ |
20588 | char $ac_func(); | |
20589 | ||
20590 | int main() { | |
20591 | ||
10f2d63a VZ |
20592 | /* The GNU C library defines this for functions which it implements |
20593 | to always fail with ENOSYS. Some functions are actually named | |
20594 | something starting with __ and the normal name is an alias. */ | |
20595 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20596 | choke me | |
20597 | #else | |
a0b9e27f | 20598 | $ac_func(); |
10f2d63a VZ |
20599 | #endif |
20600 | ||
a0b9e27f MB |
20601 | ; return 0; } |
20602 | EOF | |
521196a2 | 20603 | if { (eval echo configure:20604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20604 | rm -rf conftest* |
20605 | eval "ac_cv_func_$ac_func=yes" | |
20606 | else | |
20607 | echo "configure: failed program was:" >&5 | |
20608 | cat conftest.$ac_ext >&5 | |
20609 | rm -rf conftest* | |
20610 | eval "ac_cv_func_$ac_func=no" | |
20611 | fi | |
20612 | rm -f conftest* | |
20613 | fi | |
20614 | ||
20615 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20616 | echo "$ac_t""yes" 1>&6 | |
20617 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20618 | cat >> confdefs.h <<EOF | |
20619 | #define $ac_tr_func 1 | |
20620 | EOF | |
20621 | ||
20622 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20623 | #define HAVE_DLOPEN 1 |
a0b9e27f | 20624 | EOF |
10f2d63a | 20625 | |
3a922bb4 | 20626 | HAVE_DL_FUNCS=1 |
a0b9e27f | 20627 | |
10f2d63a | 20628 | else |
a0b9e27f MB |
20629 | echo "$ac_t""no" 1>&6 |
20630 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
521196a2 | 20631 | echo "configure:20632: checking for dlopen in -ldl" >&5 |
a0b9e27f MB |
20632 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
20633 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20634 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20635 | else |
a0b9e27f | 20636 | ac_save_LIBS="$LIBS" |
10f2d63a | 20637 | LIBS="-ldl $LIBS" |
a0b9e27f | 20638 | cat > conftest.$ac_ext <<EOF |
521196a2 | 20639 | #line 20640 "configure" |
10f2d63a VZ |
20640 | #include "confdefs.h" |
20641 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20642 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20643 | builtin and then its argument prototype would still apply. */ |
20644 | char dlopen(); | |
20645 | ||
20646 | int main() { | |
20647 | dlopen() | |
20648 | ; return 0; } | |
20649 | EOF | |
521196a2 | 20650 | if { (eval echo configure:20651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20651 | rm -rf conftest* |
20652 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20653 | else | |
20654 | echo "configure: failed program was:" >&5 | |
20655 | cat conftest.$ac_ext >&5 | |
20656 | rm -rf conftest* | |
20657 | eval "ac_cv_lib_$ac_lib_var=no" | |
20658 | fi | |
20659 | rm -f conftest* | |
20660 | LIBS="$ac_save_LIBS" | |
20661 | ||
20662 | fi | |
20663 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20664 | echo "$ac_t""yes" 1>&6 | |
20665 | ||
20666 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20667 | #define HAVE_DLOPEN 1 |
a0b9e27f | 20668 | EOF |
10f2d63a | 20669 | |
3a922bb4 | 20670 | HAVE_DL_FUNCS=1 |
3d63bc3a | 20671 | DL_LINK=" -ldl$DL_LINK" |
a0b9e27f | 20672 | |
10f2d63a | 20673 | else |
a0b9e27f | 20674 | echo "$ac_t""no" 1>&6 |
10f2d63a | 20675 | |
a0b9e27f | 20676 | for ac_func in shl_load |
10f2d63a | 20677 | do |
a0b9e27f | 20678 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 20679 | echo "configure:20680: checking for $ac_func" >&5 |
a0b9e27f MB |
20680 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20681 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20682 | else | |
20683 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 20684 | #line 20685 "configure" |
10f2d63a VZ |
20685 | #include "confdefs.h" |
20686 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20687 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
20688 | #include <assert.h> |
20689 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20690 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20691 | builtin and then its argument prototype would still apply. */ |
20692 | char $ac_func(); | |
20693 | ||
20694 | int main() { | |
20695 | ||
10f2d63a VZ |
20696 | /* The GNU C library defines this for functions which it implements |
20697 | to always fail with ENOSYS. Some functions are actually named | |
20698 | something starting with __ and the normal name is an alias. */ | |
20699 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20700 | choke me | |
20701 | #else | |
a0b9e27f | 20702 | $ac_func(); |
10f2d63a VZ |
20703 | #endif |
20704 | ||
a0b9e27f MB |
20705 | ; return 0; } |
20706 | EOF | |
521196a2 | 20707 | if { (eval echo configure:20708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20708 | rm -rf conftest* |
20709 | eval "ac_cv_func_$ac_func=yes" | |
20710 | else | |
20711 | echo "configure: failed program was:" >&5 | |
20712 | cat conftest.$ac_ext >&5 | |
20713 | rm -rf conftest* | |
20714 | eval "ac_cv_func_$ac_func=no" | |
20715 | fi | |
20716 | rm -f conftest* | |
20717 | fi | |
20718 | ||
20719 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20720 | echo "$ac_t""yes" 1>&6 | |
20721 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20722 | cat >> confdefs.h <<EOF | |
20723 | #define $ac_tr_func 1 | |
20724 | EOF | |
20725 | ||
20726 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20727 | #define HAVE_SHL_LOAD 1 |
a0b9e27f | 20728 | EOF |
10f2d63a | 20729 | |
3a922bb4 | 20730 | HAVE_SHL_FUNCS=1 |
a0b9e27f | 20731 | |
10f2d63a | 20732 | else |
a0b9e27f MB |
20733 | echo "$ac_t""no" 1>&6 |
20734 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
521196a2 | 20735 | echo "configure:20736: checking for dld in -lshl_load" >&5 |
a0b9e27f MB |
20736 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
20737 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20738 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 20739 | else |
a0b9e27f | 20740 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 20741 | LIBS="-lshl_load $LIBS" |
a0b9e27f | 20742 | cat > conftest.$ac_ext <<EOF |
521196a2 | 20743 | #line 20744 "configure" |
f6bcfd97 | 20744 | #include "confdefs.h" |
8284b0c5 | 20745 | /* Override any gcc2 internal prototype to avoid an error. */ |
f6bcfd97 | 20746 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
20747 | builtin and then its argument prototype would still apply. */ |
20748 | char dld(); | |
20749 | ||
20750 | int main() { | |
20751 | dld() | |
20752 | ; return 0; } | |
20753 | EOF | |
521196a2 | 20754 | if { (eval echo configure:20755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20755 | rm -rf conftest* |
20756 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20757 | else | |
20758 | echo "configure: failed program was:" >&5 | |
20759 | cat conftest.$ac_ext >&5 | |
20760 | rm -rf conftest* | |
20761 | eval "ac_cv_lib_$ac_lib_var=no" | |
20762 | fi | |
20763 | rm -f conftest* | |
20764 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 20765 | |
a0b9e27f MB |
20766 | fi |
20767 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20768 | echo "$ac_t""yes" 1>&6 | |
20769 | ||
3a922bb4 | 20770 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 20771 | DL_LINK=" -ldld$DL_LINK" |
a0b9e27f MB |
20772 | |
20773 | else | |
20774 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
20775 | fi |
20776 | ||
a0b9e27f | 20777 | |
10f2d63a VZ |
20778 | fi |
20779 | done | |
20780 | ||
a0b9e27f | 20781 | |
10f2d63a VZ |
20782 | fi |
20783 | ||
a0b9e27f | 20784 | |
10f2d63a VZ |
20785 | fi |
20786 | done | |
20787 | ||
5c6fa7d2 | 20788 | |
8284b0c5 | 20789 | if test "$HAVE_DL_FUNCS" = 1; then |
a0b9e27f | 20790 | for ac_func in dlerror |
f6bcfd97 | 20791 | do |
a0b9e27f | 20792 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
521196a2 | 20793 | echo "configure:20794: checking for $ac_func" >&5 |
a0b9e27f MB |
20794 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20795 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20796 | else | |
20797 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 20798 | #line 20799 "configure" |
f6bcfd97 BP |
20799 | #include "confdefs.h" |
20800 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20801 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
20802 | #include <assert.h> |
20803 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20804 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20805 | builtin and then its argument prototype would still apply. */ |
20806 | char $ac_func(); | |
20807 | ||
20808 | int main() { | |
20809 | ||
f6bcfd97 BP |
20810 | /* The GNU C library defines this for functions which it implements |
20811 | to always fail with ENOSYS. Some functions are actually named | |
20812 | something starting with __ and the normal name is an alias. */ | |
20813 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20814 | choke me | |
20815 | #else | |
a0b9e27f | 20816 | $ac_func(); |
f6bcfd97 BP |
20817 | #endif |
20818 | ||
a0b9e27f MB |
20819 | ; return 0; } |
20820 | EOF | |
521196a2 | 20821 | if { (eval echo configure:20822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20822 | rm -rf conftest* |
20823 | eval "ac_cv_func_$ac_func=yes" | |
20824 | else | |
20825 | echo "configure: failed program was:" >&5 | |
20826 | cat conftest.$ac_ext >&5 | |
20827 | rm -rf conftest* | |
20828 | eval "ac_cv_func_$ac_func=no" | |
20829 | fi | |
20830 | rm -f conftest* | |
20831 | fi | |
20832 | ||
20833 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20834 | echo "$ac_t""yes" 1>&6 | |
20835 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20836 | cat >> confdefs.h <<EOF | |
20837 | #define $ac_tr_func 1 | |
20838 | EOF | |
20839 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 20840 | #define HAVE_DLERROR 1 |
a0b9e27f | 20841 | EOF |
f6bcfd97 BP |
20842 | |
20843 | else | |
a0b9e27f MB |
20844 | echo "$ac_t""no" 1>&6 |
20845 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
521196a2 | 20846 | echo "configure:20847: checking for dlerror in -ldl" >&5 |
a0b9e27f MB |
20847 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
20848 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20849 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 20850 | else |
a0b9e27f | 20851 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 20852 | LIBS="-ldl $LIBS" |
a0b9e27f | 20853 | cat > conftest.$ac_ext <<EOF |
521196a2 | 20854 | #line 20855 "configure" |
f6bcfd97 BP |
20855 | #include "confdefs.h" |
20856 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20857 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20858 | builtin and then its argument prototype would still apply. */ |
20859 | char dlerror(); | |
20860 | ||
20861 | int main() { | |
20862 | dlerror() | |
20863 | ; return 0; } | |
20864 | EOF | |
521196a2 | 20865 | if { (eval echo configure:20866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20866 | rm -rf conftest* |
20867 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20868 | else | |
20869 | echo "configure: failed program was:" >&5 | |
20870 | cat conftest.$ac_ext >&5 | |
20871 | rm -rf conftest* | |
20872 | eval "ac_cv_lib_$ac_lib_var=no" | |
20873 | fi | |
20874 | rm -f conftest* | |
20875 | LIBS="$ac_save_LIBS" | |
20876 | ||
20877 | fi | |
20878 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20879 | echo "$ac_t""yes" 1>&6 | |
20880 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 20881 | #define HAVE_DLERROR 1 |
a0b9e27f | 20882 | EOF |
f6bcfd97 | 20883 | |
a0b9e27f MB |
20884 | else |
20885 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
20886 | fi |
20887 | ||
20888 | fi | |
20889 | done | |
20890 | ||
3a922bb4 RL |
20891 | fi |
20892 | fi | |
f6bcfd97 | 20893 | |
3a922bb4 RL |
20894 | if test "$HAVE_DL_FUNCS" = 0; then |
20895 | if test "$HAVE_SHL_FUNCS" = 0; then | |
20896 | if test "$USE_UNIX" = 1; then | |
a0b9e27f | 20897 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
0b9ab0bd | 20898 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
20899 | wxUSE_DYNLIB_CLASS=no |
20900 | else | |
a0b9e27f | 20901 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
3a922bb4 RL |
20902 | fi |
20903 | fi | |
10f2d63a VZ |
20904 | fi |
20905 | fi | |
20906 | fi | |
20907 | ||
0b9ab0bd | 20908 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
a0b9e27f | 20909 | cat >> confdefs.h <<\EOF |
0b9ab0bd | 20910 | #define wxUSE_DYNAMIC_LOADER 1 |
a0b9e27f | 20911 | EOF |
0b9ab0bd RL |
20912 | |
20913 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
a0b9e27f | 20914 | cat >> confdefs.h <<\EOF |
10f2d63a | 20915 | #define wxUSE_DYNLIB_CLASS 1 |
a0b9e27f | 20916 | EOF |
10f2d63a VZ |
20917 | |
20918 | fi | |
20919 | ||
8284b0c5 | 20920 | |
1e6feb95 | 20921 | if test "$wxUSE_FONTMAP" = "yes" ; then |
a0b9e27f | 20922 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20923 | #define wxUSE_FONTMAP 1 |
a0b9e27f | 20924 | EOF |
1e6feb95 VZ |
20925 | |
20926 | fi | |
20927 | ||
10f2d63a | 20928 | if test "$wxUSE_UNICODE" = "yes" ; then |
a0b9e27f | 20929 | cat >> confdefs.h <<\EOF |
10f2d63a | 20930 | #define wxUSE_UNICODE 1 |
a0b9e27f | 20931 | EOF |
10f2d63a | 20932 | |
8284b0c5 | 20933 | |
bbc3925a VS |
20934 | if test "$wxUSE_MSW" != 1; then |
20935 | wxUSE_UNICODE_MSLU=no | |
20936 | fi | |
a72a4bfa VS |
20937 | |
20938 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
a0b9e27f | 20939 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 |
521196a2 | 20940 | echo "configure:20941: checking for main in -lunicows" >&5 |
a0b9e27f MB |
20941 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
20942 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20943 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a72a4bfa | 20944 | else |
a0b9e27f | 20945 | ac_save_LIBS="$LIBS" |
a72a4bfa | 20946 | LIBS="-lunicows $LIBS" |
a0b9e27f | 20947 | cat > conftest.$ac_ext <<EOF |
521196a2 | 20948 | #line 20949 "configure" |
a72a4bfa VS |
20949 | #include "confdefs.h" |
20950 | ||
a0b9e27f MB |
20951 | int main() { |
20952 | main() | |
20953 | ; return 0; } | |
20954 | EOF | |
521196a2 | 20955 | if { (eval echo configure:20956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20956 | rm -rf conftest* |
20957 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20958 | else | |
20959 | echo "configure: failed program was:" >&5 | |
20960 | cat conftest.$ac_ext >&5 | |
20961 | rm -rf conftest* | |
20962 | eval "ac_cv_lib_$ac_lib_var=no" | |
20963 | fi | |
20964 | rm -f conftest* | |
20965 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 20966 | |
a0b9e27f MB |
20967 | fi |
20968 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20969 | echo "$ac_t""yes" 1>&6 | |
20970 | ||
20971 | cat >> confdefs.h <<\EOF | |
a72a4bfa | 20972 | #define wxUSE_UNICODE_MSLU 1 |
a0b9e27f | 20973 | EOF |
a72a4bfa | 20974 | |
a0b9e27f | 20975 | |
a72a4bfa | 20976 | else |
a0b9e27f | 20977 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 20978 | |
a0b9e27f MB |
20979 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. |
20980 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
a72a4bfa | 20981 | wxUSE_UNICODE_MSLU=no |
a0b9e27f | 20982 | |
a72a4bfa VS |
20983 | fi |
20984 | ||
20985 | fi | |
10f2d63a VZ |
20986 | fi |
20987 | ||
10f2d63a | 20988 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
a0b9e27f | 20989 | cat >> confdefs.h <<\EOF |
10f2d63a | 20990 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
a0b9e27f | 20991 | EOF |
10f2d63a VZ |
20992 | |
20993 | fi | |
20994 | ||
8284b0c5 MB |
20995 | |
20996 | ||
10f2d63a VZ |
20997 | IODBC_C_SRC="" |
20998 | if test "$wxUSE_ODBC" = "yes" ; then | |
a0b9e27f | 20999 | cat >> confdefs.h <<\EOF |
10f2d63a | 21000 | #define wxUSE_ODBC 1 |
a0b9e27f | 21001 | EOF |
10f2d63a VZ |
21002 | |
21003 | WXODBCFLAG="-D_IODBC_" | |
21004 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
21005 | fi |
21006 | ||
8284b0c5 | 21007 | |
10f2d63a | 21008 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
a0b9e27f | 21009 | cat >> confdefs.h <<\EOF |
10f2d63a | 21010 | #define wxUSE_POSTSCRIPT 1 |
a0b9e27f | 21011 | EOF |
10f2d63a VZ |
21012 | |
21013 | fi | |
21014 | ||
a0b9e27f | 21015 | cat >> confdefs.h <<\EOF |
10f2d63a | 21016 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
a0b9e27f | 21017 | EOF |
10f2d63a | 21018 | |
8284b0c5 | 21019 | |
a0b9e27f | 21020 | cat >> confdefs.h <<\EOF |
10f2d63a | 21021 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
a0b9e27f | 21022 | EOF |
10f2d63a | 21023 | |
8284b0c5 MB |
21024 | |
21025 | ||
10f2d63a | 21026 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
a0b9e27f | 21027 | cat >> confdefs.h <<\EOF |
10f2d63a | 21028 | #define wxUSE_CONSTRAINTS 1 |
a0b9e27f | 21029 | EOF |
10f2d63a VZ |
21030 | |
21031 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
21032 | fi | |
21033 | ||
21034 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 21035 | |
8284b0c5 | 21036 | |
bb811f17 | 21037 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
a0b9e27f | 21038 | cat >> confdefs.h <<\EOF |
10f2d63a | 21039 | #define wxUSE_MDI_ARCHITECTURE 1 |
a0b9e27f | 21040 | EOF |
10f2d63a | 21041 | |
bb811f17 JS |
21042 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
21043 | fi | |
10f2d63a VZ |
21044 | fi |
21045 | ||
21046 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 21047 | cat >> confdefs.h <<\EOF |
10f2d63a | 21048 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
a0b9e27f | 21049 | EOF |
10f2d63a VZ |
21050 | |
21051 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
21052 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
21053 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
21054 | fi | |
21055 | fi | |
21056 | ||
21057 | if test "$wxUSE_HELP" = "yes"; then | |
a0b9e27f | 21058 | cat >> confdefs.h <<\EOF |
10f2d63a | 21059 | #define wxUSE_HELP 1 |
a0b9e27f | 21060 | EOF |
10f2d63a VZ |
21061 | |
21062 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 21063 | |
77e13408 | 21064 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 21065 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
a0b9e27f | 21066 | cat >> confdefs.h <<\EOF |
29fd3c0c | 21067 | #define wxUSE_MS_HTML_HELP 1 |
a0b9e27f | 21068 | EOF |
29fd3c0c | 21069 | |
3e44f09d | 21070 | fi |
3379ed37 | 21071 | fi |
031d8228 VS |
21072 | |
21073 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
21074 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 21075 | cat >> confdefs.h <<\EOF |
031d8228 | 21076 | #define wxUSE_WXHTML_HELP 1 |
a0b9e27f | 21077 | EOF |
031d8228 VS |
21078 | |
21079 | else | |
a0b9e27f | 21080 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 |
031d8228 VS |
21081 | wxUSE_WXHTML_HELP=no |
21082 | fi | |
21083 | fi | |
10f2d63a VZ |
21084 | fi |
21085 | ||
21086 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
21087 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21088 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 21089 | else |
a0b9e27f | 21090 | cat >> confdefs.h <<\EOF |
10f2d63a | 21091 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
a0b9e27f | 21092 | EOF |
10f2d63a VZ |
21093 | |
21094 | fi | |
21095 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
21096 | fi | |
21097 | ||
21098 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
a0b9e27f | 21099 | cat >> confdefs.h <<\EOF |
10f2d63a | 21100 | #define wxUSE_PROLOGIO 1 |
a0b9e27f | 21101 | EOF |
10f2d63a | 21102 | |
2b5f62a0 | 21103 | ALL_OBJECTS="$ALL_OBJECTS parser.o" |
10f2d63a VZ |
21104 | fi |
21105 | ||
21106 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea | 21107 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 21108 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 |
2b5f62a0 VZ |
21109 | else |
21110 | cat >> confdefs.h <<\EOF | |
10f2d63a | 21111 | #define wxUSE_RESOURCES 1 |
a0b9e27f | 21112 | EOF |
10f2d63a | 21113 | |
2b5f62a0 VZ |
21114 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
21115 | fi | |
21116 | if test "$wxUSE_PROLOGIO" != "yes" ; then | |
21117 | ALL_OBJECTS="$ALL_OBJECTS parser.o" | |
e334d0ea | 21118 | fi |
10f2d63a VZ |
21119 | fi |
21120 | ||
21121 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
a0b9e27f | 21122 | cat >> confdefs.h <<\EOF |
10f2d63a | 21123 | #define wxUSE_X_RESOURCES 1 |
a0b9e27f | 21124 | EOF |
10f2d63a VZ |
21125 | |
21126 | fi | |
21127 | ||
8284b0c5 | 21128 | |
77e13408 RL |
21129 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
21130 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
3bce6687 | 21131 | -o "$wxUSE_OLE" = "yes" \ |
77e13408 | 21132 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then |
a0b9e27f | 21133 | for ac_hdr in ole2.h |
10f2d63a | 21134 | do |
a0b9e27f MB |
21135 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
21136 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
521196a2 | 21137 | echo "configure:21138: checking for $ac_hdr" >&5 |
a0b9e27f MB |
21138 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
21139 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21140 | else | |
21141 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 21142 | #line 21143 "configure" |
10f2d63a | 21143 | #include "confdefs.h" |
a0b9e27f MB |
21144 | #include <$ac_hdr> |
21145 | EOF | |
21146 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
521196a2 | 21147 | { (eval echo configure:21148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
21148 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
21149 | if test -z "$ac_err"; then | |
21150 | rm -rf conftest* | |
21151 | eval "ac_cv_header_$ac_safe=yes" | |
21152 | else | |
21153 | echo "$ac_err" >&5 | |
21154 | echo "configure: failed program was:" >&5 | |
10f2d63a | 21155 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
21156 | rm -rf conftest* |
21157 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 21158 | fi |
a0b9e27f | 21159 | rm -f conftest* |
10f2d63a | 21160 | fi |
a0b9e27f MB |
21161 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
21162 | echo "$ac_t""yes" 1>&6 | |
21163 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
21164 | cat >> confdefs.h <<EOF | |
21165 | #define $ac_tr_hdr 1 | |
21166 | EOF | |
21167 | ||
21168 | else | |
21169 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
21170 | fi |
21171 | done | |
21172 | ||
8284b0c5 | 21173 | |
2b9bdf71 VZ |
21174 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
21175 | if test "$GCC" = yes ; then | |
a0b9e27f MB |
21176 | |
21177 | ac_ext=C | |
21178 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8284b0c5 | 21179 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
21180 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
21181 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
21182 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 MB |
21183 | |
21184 | ||
a0b9e27f | 21185 | echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6 |
521196a2 | 21186 | echo "configure:21187: checking if g++ requires -fvtable-thunks" >&5 |
a0b9e27f | 21187 | cat > conftest.$ac_ext <<EOF |
521196a2 | 21188 | #line 21189 "configure" |
8284b0c5 MB |
21189 | #include "confdefs.h" |
21190 | #include <windows.h> | |
21191 | #include <ole2.h> | |
a0b9e27f | 21192 | int main() { |
8284b0c5 | 21193 | |
a0b9e27f MB |
21194 | ; return 0; } |
21195 | EOF | |
521196a2 | 21196 | if { (eval echo configure:21197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
21197 | rm -rf conftest* |
21198 | echo "$ac_t""no" 1>&6 | |
21199 | else | |
21200 | echo "configure: failed program was:" >&5 | |
21201 | cat conftest.$ac_ext >&5 | |
21202 | rm -rf conftest* | |
21203 | echo "$ac_t""yes" 1>&6 | |
8284b0c5 MB |
21204 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
21205 | fi | |
a0b9e27f | 21206 | rm -f conftest* |
8284b0c5 | 21207 | ac_ext=c |
a0b9e27f | 21208 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8284b0c5 | 21209 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
21210 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
21211 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
21212 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 21213 | |
2b9bdf71 | 21214 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 21215 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
a0b9e27f | 21216 | cat >> confdefs.h <<\EOF |
4f11a343 | 21217 | #define wxUSE_OLE 1 |
a0b9e27f | 21218 | EOF |
4f11a343 | 21219 | |
8284b0c5 | 21220 | |
2b9bdf71 VZ |
21221 | fi |
21222 | ||
a0b9e27f | 21223 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21224 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 21225 | EOF |
2b9bdf71 VZ |
21226 | |
21227 | else | |
a0b9e27f | 21228 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 |
2b9bdf71 VZ |
21229 | |
21230 | wxUSE_CLIPBOARD=no | |
21231 | wxUSE_DRAG_AND_DROP=no | |
21232 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
21233 | wxUSE_OLE=no |
21234 | fi | |
21235 | ||
21236 | if test "$wxUSE_METAFILE" = "yes"; then | |
21237 | cat >> confdefs.h <<\EOF | |
21238 | #define wxUSE_METAFILE 1 | |
21239 | EOF | |
21240 | ||
21241 | ||
21242 | cat >> confdefs.h <<\EOF | |
21243 | #define wxUSE_ENH_METAFILE 1 | |
21244 | EOF | |
21245 | ||
21246 | fi | |
21247 | fi | |
21248 | ||
2b9bdf71 VZ |
21249 | if test "$wxUSE_IPC" = "yes"; then |
21250 | if test "$wxUSE_SOCKETS" != "yes"; then | |
a0b9e27f | 21251 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
21252 | fi |
21253 | ||
a0b9e27f | 21254 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21255 | #define wxUSE_IPC 1 |
a0b9e27f | 21256 | EOF |
2b9bdf71 VZ |
21257 | |
21258 | fi | |
21259 | ||
21260 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 21261 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 21262 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
21263 | wxUSE_CLIPBOARD=no |
21264 | fi | |
21265 | ||
21266 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
a0b9e27f | 21267 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21268 | #define wxUSE_CLIPBOARD 1 |
a0b9e27f | 21269 | EOF |
2b9bdf71 | 21270 | |
8284b0c5 | 21271 | |
a0b9e27f | 21272 | cat >> confdefs.h <<\EOF |
673f4220 | 21273 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 21274 | EOF |
673f4220 | 21275 | |
6c657b52 | 21276 | fi |
2b9bdf71 VZ |
21277 | fi |
21278 | ||
21279 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
21280 | if test "$wxUSE_GTK" = 1; then | |
21281 | if test "$WXGTK12" != 1; then | |
a0b9e27f | 21282 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
21283 | wxUSE_DRAG_AND_DROP=no |
21284 | fi | |
21285 | fi | |
21286 | ||
2b9bdf71 | 21287 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 21288 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
21289 | wxUSE_DRAG_AND_DROP=no |
21290 | fi | |
21291 | ||
f79bd02d | 21292 | if test "$wxUSE_X11" = 1; then |
a0b9e27f | 21293 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 |
f79bd02d JS |
21294 | wxUSE_DRAG_AND_DROP=no |
21295 | fi | |
21296 | ||
6c657b52 | 21297 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 21298 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
21299 | wxUSE_DRAG_AND_DROP=no |
21300 | fi | |
21301 | ||
10f2d63a | 21302 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
a0b9e27f | 21303 | cat >> confdefs.h <<\EOF |
10f2d63a | 21304 | #define wxUSE_DRAG_AND_DROP 1 |
a0b9e27f | 21305 | EOF |
10f2d63a VZ |
21306 | |
21307 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
21308 | fi | |
21309 | ||
21310 | fi | |
21311 | ||
21312 | if test "$wxUSE_SPLINES" = "yes" ; then | |
a0b9e27f | 21313 | cat >> confdefs.h <<\EOF |
10f2d63a | 21314 | #define wxUSE_SPLINES 1 |
a0b9e27f | 21315 | EOF |
10f2d63a VZ |
21316 | |
21317 | fi | |
21318 | ||
8284b0c5 | 21319 | |
1e6feb95 VZ |
21320 | USES_CONTROLS=0 |
21321 | if test "$wxUSE_CONTROLS" = "yes"; then | |
21322 | USES_CONTROLS=1 | |
21323 | fi | |
21324 | ||
10f2d63a | 21325 | if test "$wxUSE_ACCEL" = "yes"; then |
a0b9e27f | 21326 | cat >> confdefs.h <<\EOF |
10f2d63a | 21327 | #define wxUSE_ACCEL 1 |
a0b9e27f | 21328 | EOF |
10f2d63a | 21329 | |
1e6feb95 VZ |
21330 | USES_CONTROLS=1 |
21331 | fi | |
21332 | ||
21333 | if test "$wxUSE_BUTTON" = "yes"; then | |
a0b9e27f | 21334 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21335 | #define wxUSE_BUTTON 1 |
a0b9e27f | 21336 | EOF |
1e6feb95 VZ |
21337 | |
21338 | USES_CONTROLS=1 | |
21339 | fi | |
21340 | ||
21341 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
a0b9e27f | 21342 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21343 | #define wxUSE_BMPBUTTON 1 |
a0b9e27f | 21344 | EOF |
1e6feb95 VZ |
21345 | |
21346 | USES_CONTROLS=1 | |
21347 | fi | |
21348 | ||
21349 | if test "$wxUSE_CALCTRL" = "yes"; then | |
a0b9e27f | 21350 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21351 | #define wxUSE_CALENDARCTRL 1 |
a0b9e27f | 21352 | EOF |
1e6feb95 VZ |
21353 | |
21354 | USES_CONTROLS=1 | |
21355 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
21356 | fi |
21357 | ||
21358 | if test "$wxUSE_CARET" = "yes"; then | |
a0b9e27f | 21359 | cat >> confdefs.h <<\EOF |
10f2d63a | 21360 | #define wxUSE_CARET 1 |
a0b9e27f | 21361 | EOF |
10f2d63a | 21362 | |
1e6feb95 | 21363 | USES_CONTROLS=1 |
10f2d63a VZ |
21364 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
21365 | fi | |
21366 | ||
21367 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
a0b9e27f | 21368 | cat >> confdefs.h <<\EOF |
10f2d63a | 21369 | #define wxUSE_COMBOBOX 1 |
a0b9e27f | 21370 | EOF |
10f2d63a | 21371 | |
1e6feb95 | 21372 | USES_CONTROLS=1 |
10f2d63a VZ |
21373 | fi |
21374 | ||
21375 | if test "$wxUSE_CHOICE" = "yes"; then | |
a0b9e27f | 21376 | cat >> confdefs.h <<\EOF |
10f2d63a | 21377 | #define wxUSE_CHOICE 1 |
a0b9e27f | 21378 | EOF |
10f2d63a | 21379 | |
1e6feb95 | 21380 | USES_CONTROLS=1 |
10f2d63a VZ |
21381 | fi |
21382 | ||
21383 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
a0b9e27f | 21384 | cat >> confdefs.h <<\EOF |
10f2d63a | 21385 | #define wxUSE_CHECKBOX 1 |
a0b9e27f | 21386 | EOF |
10f2d63a | 21387 | |
1e6feb95 | 21388 | USES_CONTROLS=1 |
10f2d63a VZ |
21389 | fi |
21390 | ||
21391 | if test "$wxUSE_CHECKLST" = "yes"; then | |
a0b9e27f | 21392 | cat >> confdefs.h <<\EOF |
10f2d63a | 21393 | #define wxUSE_CHECKLISTBOX 1 |
a0b9e27f | 21394 | EOF |
10f2d63a | 21395 | |
1e6feb95 | 21396 | USES_CONTROLS=1 |
10f2d63a VZ |
21397 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
21398 | fi | |
21399 | ||
da494b40 MB |
21400 | if test "$wxUSE_DISPLAY" = "yes"; then |
21401 | cat >> confdefs.h <<\EOF | |
21402 | #define wxUSE_DISPLAY 1 | |
21403 | EOF | |
21404 | ||
21405 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
21406 | fi | |
21407 | ||
10f2d63a | 21408 | if test "$wxUSE_GAUGE" = "yes"; then |
a0b9e27f | 21409 | cat >> confdefs.h <<\EOF |
10f2d63a | 21410 | #define wxUSE_GAUGE 1 |
a0b9e27f | 21411 | EOF |
10f2d63a | 21412 | |
1e6feb95 | 21413 | USES_CONTROLS=1 |
10f2d63a VZ |
21414 | fi |
21415 | ||
d6a55c4b VZ |
21416 | if test "$wxUSE_NEW_GRID" = "yes"; then |
21417 | wxUSE_GRID="yes" | |
a0b9e27f | 21418 | cat >> confdefs.h <<\EOF |
d6a55c4b | 21419 | #define wxUSE_NEW_GRID 1 |
a0b9e27f | 21420 | EOF |
10f2d63a | 21421 | |
1e6feb95 | 21422 | USES_CONTROLS=1 |
d6a55c4b | 21423 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
21424 | fi |
21425 | ||
d6a55c4b | 21426 | if test "$wxUSE_GRID" = "yes"; then |
a0b9e27f | 21427 | cat >> confdefs.h <<\EOF |
d6a55c4b | 21428 | #define wxUSE_GRID 1 |
a0b9e27f | 21429 | EOF |
10f2d63a | 21430 | |
1e6feb95 | 21431 | USES_CONTROLS=1 |
d6a55c4b | 21432 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
21433 | fi |
21434 | ||
21435 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21436 | cat >> confdefs.h <<\EOF |
10f2d63a | 21437 | #define wxUSE_IMAGLIST 1 |
a0b9e27f | 21438 | EOF |
10f2d63a VZ |
21439 | |
21440 | fi | |
21441 | ||
21442 | if test "$wxUSE_LISTBOX" = "yes"; then | |
a0b9e27f | 21443 | cat >> confdefs.h <<\EOF |
10f2d63a | 21444 | #define wxUSE_LISTBOX 1 |
a0b9e27f | 21445 | EOF |
10f2d63a | 21446 | |
1e6feb95 | 21447 | USES_CONTROLS=1 |
10f2d63a VZ |
21448 | fi |
21449 | ||
21450 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
21451 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21452 | cat >> confdefs.h <<\EOF |
10f2d63a | 21453 | #define wxUSE_LISTCTRL 1 |
a0b9e27f | 21454 | EOF |
10f2d63a | 21455 | |
1e6feb95 | 21456 | USES_CONTROLS=1 |
10f2d63a VZ |
21457 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
21458 | else | |
a0b9e27f | 21459 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
21460 | fi |
21461 | fi | |
21462 | ||
21463 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
a0b9e27f | 21464 | cat >> confdefs.h <<\EOF |
10f2d63a | 21465 | #define wxUSE_NOTEBOOK 1 |
a0b9e27f | 21466 | EOF |
10f2d63a | 21467 | |
1e6feb95 | 21468 | USES_CONTROLS=1 |
10f2d63a VZ |
21469 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
21470 | fi | |
21471 | ||
24176f2c | 21472 | if test "$wxUSE_PROPSHEET" = "yes"; then |
a0b9e27f | 21473 | cat >> confdefs.h <<\EOF |
24176f2c | 21474 | #define wxUSE_PROPSHEET 1 |
a0b9e27f | 21475 | EOF |
24176f2c GD |
21476 | |
21477 | USES_CONTROLS=1 | |
21478 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
21479 | fi | |
21480 | ||
10f2d63a | 21481 | if test "$wxUSE_RADIOBOX" = "yes"; then |
a0b9e27f | 21482 | cat >> confdefs.h <<\EOF |
10f2d63a | 21483 | #define wxUSE_RADIOBOX 1 |
a0b9e27f | 21484 | EOF |
10f2d63a | 21485 | |
1e6feb95 | 21486 | USES_CONTROLS=1 |
10f2d63a VZ |
21487 | fi |
21488 | ||
21489 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
a0b9e27f | 21490 | cat >> confdefs.h <<\EOF |
10f2d63a | 21491 | #define wxUSE_RADIOBTN 1 |
a0b9e27f | 21492 | EOF |
10f2d63a | 21493 | |
1e6feb95 | 21494 | USES_CONTROLS=1 |
10f2d63a VZ |
21495 | fi |
21496 | ||
21497 | if test "$wxUSE_SASH" = "yes"; then | |
a0b9e27f | 21498 | cat >> confdefs.h <<\EOF |
10f2d63a | 21499 | #define wxUSE_SASH 1 |
a0b9e27f | 21500 | EOF |
10f2d63a VZ |
21501 | |
21502 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
21503 | fi | |
21504 | ||
21505 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
a0b9e27f | 21506 | cat >> confdefs.h <<\EOF |
10f2d63a | 21507 | #define wxUSE_SCROLLBAR 1 |
a0b9e27f | 21508 | EOF |
10f2d63a | 21509 | |
1e6feb95 | 21510 | USES_CONTROLS=1 |
741a9306 | 21511 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
21512 | fi |
21513 | ||
21514 | if test "$wxUSE_SLIDER" = "yes"; then | |
a0b9e27f | 21515 | cat >> confdefs.h <<\EOF |
10f2d63a | 21516 | #define wxUSE_SLIDER 1 |
a0b9e27f | 21517 | EOF |
10f2d63a | 21518 | |
1e6feb95 | 21519 | USES_CONTROLS=1 |
10f2d63a VZ |
21520 | fi |
21521 | ||
21522 | if test "$wxUSE_SPINBTN" = "yes"; then | |
a0b9e27f | 21523 | cat >> confdefs.h <<\EOF |
10f2d63a | 21524 | #define wxUSE_SPINBTN 1 |
a0b9e27f | 21525 | EOF |
10f2d63a | 21526 | |
1e6feb95 | 21527 | USES_CONTROLS=1 |
10f2d63a VZ |
21528 | fi |
21529 | ||
56cfaa52 | 21530 | if test "$wxUSE_SPINCTRL" = "yes"; then |
a0b9e27f | 21531 | cat >> confdefs.h <<\EOF |
56cfaa52 | 21532 | #define wxUSE_SPINCTRL 1 |
a0b9e27f | 21533 | EOF |
56cfaa52 | 21534 | |
1e6feb95 | 21535 | USES_CONTROLS=1 |
56cfaa52 RR |
21536 | fi |
21537 | ||
10f2d63a | 21538 | if test "$wxUSE_SPLITTER" = "yes"; then |
a0b9e27f | 21539 | cat >> confdefs.h <<\EOF |
10f2d63a | 21540 | #define wxUSE_SPLITTER 1 |
a0b9e27f | 21541 | EOF |
10f2d63a VZ |
21542 | |
21543 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
21544 | fi | |
21545 | ||
21546 | if test "$wxUSE_STATBMP" = "yes"; then | |
a0b9e27f | 21547 | cat >> confdefs.h <<\EOF |
10f2d63a | 21548 | #define wxUSE_STATBMP 1 |
a0b9e27f | 21549 | EOF |
10f2d63a | 21550 | |
1e6feb95 | 21551 | USES_CONTROLS=1 |
10f2d63a VZ |
21552 | fi |
21553 | ||
21554 | if test "$wxUSE_STATBOX" = "yes"; then | |
a0b9e27f | 21555 | cat >> confdefs.h <<\EOF |
10f2d63a | 21556 | #define wxUSE_STATBOX 1 |
a0b9e27f | 21557 | EOF |
10f2d63a | 21558 | |
1e6feb95 VZ |
21559 | USES_CONTROLS=1 |
21560 | fi | |
21561 | ||
21562 | if test "$wxUSE_STATTEXT" = "yes"; then | |
a0b9e27f | 21563 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21564 | #define wxUSE_STATTEXT 1 |
a0b9e27f | 21565 | EOF |
1e6feb95 VZ |
21566 | |
21567 | USES_CONTROLS=1 | |
10f2d63a VZ |
21568 | fi |
21569 | ||
21570 | if test "$wxUSE_STATLINE" = "yes"; then | |
89e6bf6d | 21571 | cat >> confdefs.h <<\EOF |
10f2d63a | 21572 | #define wxUSE_STATLINE 1 |
a0b9e27f | 21573 | EOF |
10f2d63a | 21574 | |
89e6bf6d | 21575 | USES_CONTROLS=1 |
10f2d63a VZ |
21576 | fi |
21577 | ||
21578 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
a0b9e27f | 21579 | cat >> confdefs.h <<\EOF |
10f2d63a | 21580 | #define wxUSE_STATUSBAR 1 |
a0b9e27f | 21581 | EOF |
10f2d63a | 21582 | |
1e6feb95 | 21583 | USES_CONTROLS=1 |
698dcdb6 | 21584 | |
2286341c | 21585 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
21586 | fi |
21587 | ||
21588 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
a0b9e27f | 21589 | cat >> confdefs.h <<\EOF |
10f2d63a | 21590 | #define wxUSE_TAB_DIALOG 1 |
a0b9e27f | 21591 | EOF |
10f2d63a VZ |
21592 | |
21593 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
21594 | fi | |
21595 | ||
1e6feb95 | 21596 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
a0b9e27f | 21597 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21598 | #define wxUSE_TEXTCTRL 1 |
a0b9e27f | 21599 | EOF |
1e6feb95 VZ |
21600 | |
21601 | USES_CONTROLS=1 | |
21602 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
21603 | fi | |
21604 | ||
1db8dc4a | 21605 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 | 21606 | if test "$wxUSE_MAC" = 1; then |
a0b9e27f | 21607 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
21608 | wxUSE_TOGGLEBTN=no |
21609 | fi | |
21610 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
a0b9e27f | 21611 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
21612 | wxUSE_TOGGLEBTN=no |
21613 | fi | |
21614 | ||
21615 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
a0b9e27f | 21616 | cat >> confdefs.h <<\EOF |
1db8dc4a | 21617 | #define wxUSE_TOGGLEBTN 1 |
a0b9e27f | 21618 | EOF |
1db8dc4a | 21619 | |
1e6feb95 | 21620 | USES_CONTROLS=1 |
a45d7ab7 | 21621 | fi |
1db8dc4a VZ |
21622 | fi |
21623 | ||
360d6699 | 21624 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
a0b9e27f | 21625 | cat >> confdefs.h <<\EOF |
360d6699 | 21626 | #define wxUSE_TOOLBAR_SIMPLE 1 |
a0b9e27f | 21627 | EOF |
360d6699 VZ |
21628 | |
21629 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 21630 | USES_CONTROLS=1 |
360d6699 VZ |
21631 | fi |
21632 | ||
10f2d63a | 21633 | if test "$wxUSE_TOOLBAR" = "yes"; then |
a0b9e27f | 21634 | cat >> confdefs.h <<\EOF |
10f2d63a | 21635 | #define wxUSE_TOOLBAR 1 |
a0b9e27f | 21636 | EOF |
10f2d63a | 21637 | |
1e6feb95 | 21638 | USES_CONTROLS=1 |
698dcdb6 | 21639 | |
360d6699 VZ |
21640 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
21641 | wxUSE_TOOLBAR_NATIVE="yes" | |
21642 | fi | |
21643 | ||
1e6feb95 | 21644 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
a0b9e27f | 21645 | cat >> confdefs.h <<\EOF |
360d6699 | 21646 | #define wxUSE_TOOLBAR_NATIVE 1 |
a0b9e27f | 21647 | EOF |
360d6699 | 21648 | |
1e6feb95 VZ |
21649 | USES_CONTROLS=1 |
21650 | fi | |
21651 | ||
21652 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
21653 | fi |
21654 | ||
10f2d63a VZ |
21655 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
21656 | if test "$wxUSE_MOTIF" = 1; then | |
a0b9e27f | 21657 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a | 21658 | else |
89e6bf6d VZ |
21659 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
21660 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 | |
10f2d63a | 21661 | else |
89e6bf6d | 21662 | cat >> confdefs.h <<\EOF |
10f2d63a | 21663 | #define wxUSE_TOOLTIPS 1 |
a0b9e27f | 21664 | EOF |
10f2d63a VZ |
21665 | |
21666 | fi | |
21667 | fi | |
21668 | fi | |
21669 | ||
21670 | if test "$wxUSE_TREECTRL" = "yes"; then | |
21671 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21672 | cat >> confdefs.h <<\EOF |
10f2d63a | 21673 | #define wxUSE_TREECTRL 1 |
a0b9e27f | 21674 | EOF |
10f2d63a | 21675 | |
1e6feb95 | 21676 | USES_CONTROLS=1 |
10f2d63a VZ |
21677 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
21678 | else | |
a0b9e27f | 21679 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
21680 | fi |
21681 | fi | |
21682 | ||
9f41d601 | 21683 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 21684 | if test "$wxUSE_MAC" = 1; then |
a0b9e27f | 21685 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 21686 | else |
485cf710 | 21687 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 21688 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 |
485cf710 | 21689 | else |
3c011993 | 21690 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 21691 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 21692 | else |
a0b9e27f | 21693 | cat >> confdefs.h <<\EOF |
9f41d601 | 21694 | #define wxUSE_POPUPWIN 1 |
a0b9e27f | 21695 | EOF |
9f41d601 | 21696 | |
8284b0c5 | 21697 | |
3c011993 VZ |
21698 | USES_CONTROLS=1 |
21699 | fi | |
485cf710 | 21700 | fi |
6abe4b65 | 21701 | fi |
9f41d601 RR |
21702 | fi |
21703 | ||
dd964dcc | 21704 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 21705 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 21706 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 21707 | else |
a0b9e27f | 21708 | cat >> confdefs.h <<\EOF |
dd964dcc | 21709 | #define wxUSE_TIPWINDOW 1 |
a0b9e27f | 21710 | EOF |
dd964dcc | 21711 | |
3c011993 | 21712 | fi |
dd964dcc VZ |
21713 | fi |
21714 | ||
1e6feb95 | 21715 | if test "$USES_CONTROLS" = 1; then |
a0b9e27f | 21716 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21717 | #define wxUSE_CONTROLS 1 |
a0b9e27f | 21718 | EOF |
10f2d63a | 21719 | |
10f2d63a VZ |
21720 | fi |
21721 | ||
8284b0c5 | 21722 | |
24176f2c | 21723 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
a0b9e27f | 21724 | cat >> confdefs.h <<\EOF |
24176f2c | 21725 | #define wxUSE_TREELAYOUT 1 |
a0b9e27f | 21726 | EOF |
24176f2c GD |
21727 | |
21728 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
21729 | fi | |
1e6feb95 | 21730 | |
24fd6d87 | 21731 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
a0b9e27f | 21732 | cat >> confdefs.h <<\EOF |
24fd6d87 | 21733 | #define wxUSE_DRAGIMAGE 1 |
a0b9e27f | 21734 | EOF |
24fd6d87 VZ |
21735 | |
21736 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
21737 | fi | |
21738 | ||
1e6feb95 | 21739 | if test "$wxUSE_MENUS" = "yes"; then |
a0b9e27f | 21740 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21741 | #define wxUSE_MENUS 1 |
a0b9e27f | 21742 | EOF |
10f2d63a | 21743 | |
1e6feb95 | 21744 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
21745 | fi |
21746 | ||
1e6feb95 | 21747 | if test "$wxUSE_METAFILE" = "yes"; then |
a0b9e27f | 21748 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21749 | #define wxUSE_METAFILE 1 |
a0b9e27f | 21750 | EOF |
10f2d63a | 21751 | |
10f2d63a VZ |
21752 | fi |
21753 | ||
1e6feb95 | 21754 | if test "$wxUSE_MIMETYPE" = "yes"; then |
a0b9e27f | 21755 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21756 | #define wxUSE_MIMETYPE 1 |
a0b9e27f | 21757 | EOF |
10f2d63a | 21758 | |
10f2d63a VZ |
21759 | fi |
21760 | ||
3e44f09d | 21761 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
a0b9e27f | 21762 | cat >> confdefs.h <<\EOF |
3e44f09d | 21763 | #define wxUSE_SYSTEM_OPTIONS 1 |
a0b9e27f | 21764 | EOF |
3e44f09d | 21765 | |
321d2b14 VZ |
21766 | if test "$TOOLKIT" = "MSW"; then |
21767 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
21768 | fi | |
21769 | ||
3e44f09d VZ |
21770 | fi |
21771 | ||
4cdb0ab0 | 21772 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca | 21773 | if test "$wxUSE_SOCKETS" != "yes"; then |
a0b9e27f | 21774 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 |
3954f9ca VS |
21775 | wxUSE_PROTOCOL=no |
21776 | fi | |
21777 | ||
21778 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
a0b9e27f | 21779 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21780 | #define wxUSE_PROTOCOL 1 |
a0b9e27f | 21781 | EOF |
4cdb0ab0 | 21782 | |
8284b0c5 | 21783 | |
3954f9ca | 21784 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
a0b9e27f | 21785 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21786 | #define wxUSE_PROTOCOL_HTTP 1 |
a0b9e27f | 21787 | EOF |
4cdb0ab0 | 21788 | |
3954f9ca VS |
21789 | fi |
21790 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
a0b9e27f | 21791 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21792 | #define wxUSE_PROTOCOL_FTP 1 |
a0b9e27f | 21793 | EOF |
4cdb0ab0 | 21794 | |
3954f9ca VS |
21795 | fi |
21796 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
a0b9e27f | 21797 | cat >> confdefs.h <<\EOF |
3954f9ca | 21798 | #define wxUSE_PROTOCOL_FILE 1 |
a0b9e27f | 21799 | EOF |
3954f9ca VS |
21800 | |
21801 | fi | |
4cdb0ab0 | 21802 | fi |
3954f9ca VS |
21803 | fi |
21804 | ||
21805 | if test "$wxUSE_URL" = "yes"; then | |
21806 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
a0b9e27f | 21807 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 |
3954f9ca VS |
21808 | wxUSE_URL=no |
21809 | fi | |
21810 | if test "$wxUSE_URL" = "yes"; then | |
a0b9e27f | 21811 | cat >> confdefs.h <<\EOF |
3954f9ca | 21812 | #define wxUSE_URL 1 |
a0b9e27f | 21813 | EOF |
4cdb0ab0 VS |
21814 | |
21815 | fi | |
21816 | fi | |
21817 | ||
10f2d63a | 21818 | if test "$wxUSE_MINIFRAME" = "yes"; then |
a0b9e27f | 21819 | cat >> confdefs.h <<\EOF |
10f2d63a | 21820 | #define wxUSE_MINIFRAME 1 |
a0b9e27f | 21821 | EOF |
10f2d63a VZ |
21822 | |
21823 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
21824 | fi | |
21825 | ||
21826 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 21827 | cat >> confdefs.h <<\EOF |
10f2d63a | 21828 | #define wxUSE_HTML 1 |
a0b9e27f | 21829 | EOF |
10f2d63a VZ |
21830 | |
21831 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
21832 | fi |
21833 | ||
21834 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
a0b9e27f | 21835 | cat >> confdefs.h <<\EOF |
1e487827 | 21836 | #define wxUSE_VALIDATORS 1 |
a0b9e27f | 21837 | EOF |
703e0a69 | 21838 | |
698dcdb6 VZ |
21839 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
21840 | fi | |
21841 | ||
edae8572 | 21842 | if test "$wxUSE_PALETTE" = "yes" ; then |
a0b9e27f | 21843 | cat >> confdefs.h <<\EOF |
edae8572 | 21844 | #define wxUSE_PALETTE 1 |
a0b9e27f | 21845 | EOF |
edae8572 VZ |
21846 | |
21847 | fi | |
21848 | ||
698dcdb6 | 21849 | if test "$wxUSE_IMAGE" = "yes" ; then |
a0b9e27f | 21850 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21851 | #define wxUSE_IMAGE 1 |
a0b9e27f | 21852 | EOF |
698dcdb6 VZ |
21853 | |
21854 | fi | |
21855 | ||
21856 | if test "$wxUSE_GIF" = "yes" ; then | |
a0b9e27f | 21857 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21858 | #define wxUSE_GIF 1 |
a0b9e27f | 21859 | EOF |
698dcdb6 VZ |
21860 | |
21861 | fi | |
21862 | ||
21863 | if test "$wxUSE_PCX" = "yes" ; then | |
a0b9e27f | 21864 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21865 | #define wxUSE_PCX 1 |
a0b9e27f | 21866 | EOF |
698dcdb6 VZ |
21867 | |
21868 | fi | |
21869 | ||
4b6b4dfc | 21870 | if test "$wxUSE_IFF" = "yes" ; then |
a0b9e27f | 21871 | cat >> confdefs.h <<\EOF |
4b6b4dfc | 21872 | #define wxUSE_IFF 1 |
a0b9e27f | 21873 | EOF |
4b6b4dfc RR |
21874 | |
21875 | fi | |
21876 | ||
698dcdb6 | 21877 | if test "$wxUSE_PNM" = "yes" ; then |
a0b9e27f | 21878 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21879 | #define wxUSE_PNM 1 |
a0b9e27f | 21880 | EOF |
698dcdb6 VZ |
21881 | |
21882 | fi | |
21883 | ||
21884 | if test "$wxUSE_XPM" = "yes" ; then | |
a0b9e27f | 21885 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21886 | #define wxUSE_XPM 1 |
a0b9e27f | 21887 | EOF |
698dcdb6 VZ |
21888 | |
21889 | fi | |
21890 | ||
658974ae | 21891 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
a0b9e27f | 21892 | cat >> confdefs.h <<\EOF |
658974ae | 21893 | #define wxUSE_ICO_CUR 1 |
a0b9e27f | 21894 | EOF |
658974ae VS |
21895 | |
21896 | fi | |
21897 | ||
a72a4bfa VS |
21898 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
21899 | LIBS=" -lunicows $LIBS" | |
21900 | fi | |
21901 | ||
8284b0c5 | 21902 | |
1e6feb95 | 21903 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
a0b9e27f | 21904 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21905 | #define wxUSE_CHOICEDLG 1 |
a0b9e27f | 21906 | EOF |
1e6feb95 VZ |
21907 | |
21908 | fi | |
21909 | ||
21910 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
a0b9e27f | 21911 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21912 | #define wxUSE_COLOURDLG 1 |
a0b9e27f | 21913 | EOF |
1e6feb95 VZ |
21914 | |
21915 | fi | |
21916 | ||
21917 | if test "$wxUSE_FILEDLG" = "yes"; then | |
a0b9e27f | 21918 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21919 | #define wxUSE_FILEDLG 1 |
a0b9e27f | 21920 | EOF |
1e6feb95 VZ |
21921 | |
21922 | fi | |
21923 | ||
8db37e06 | 21924 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
a0b9e27f | 21925 | cat >> confdefs.h <<\EOF |
8db37e06 | 21926 | #define wxUSE_FINDREPLDLG 1 |
a0b9e27f | 21927 | EOF |
8db37e06 VZ |
21928 | |
21929 | fi | |
21930 | ||
1e6feb95 | 21931 | if test "$wxUSE_FONTDLG" = "yes"; then |
a0b9e27f | 21932 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21933 | #define wxUSE_FONTDLG 1 |
a0b9e27f | 21934 | EOF |
1e6feb95 VZ |
21935 | |
21936 | fi | |
21937 | ||
21938 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 21939 | if test "$wxUSE_TREECTRL" != "yes"; then |
a0b9e27f | 21940 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 |
1e6feb95 | 21941 | else |
a0b9e27f | 21942 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21943 | #define wxUSE_DIRDLG 1 |
a0b9e27f | 21944 | EOF |
1e6feb95 | 21945 | |
1e6feb95 VZ |
21946 | fi |
21947 | fi | |
21948 | ||
21949 | if test "$wxUSE_MSGDLG" = "yes"; then | |
a0b9e27f | 21950 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21951 | #define wxUSE_MSGDLG 1 |
a0b9e27f | 21952 | EOF |
1e6feb95 VZ |
21953 | |
21954 | fi | |
21955 | ||
21956 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
a0b9e27f | 21957 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21958 | #define wxUSE_NUMBERDLG 1 |
a0b9e27f | 21959 | EOF |
1e6feb95 VZ |
21960 | |
21961 | fi | |
21962 | ||
21963 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
21964 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21965 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 |
1e6feb95 | 21966 | else |
a0b9e27f | 21967 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21968 | #define wxUSE_PROGRESSDLG 1 |
a0b9e27f | 21969 | EOF |
1e6feb95 VZ |
21970 | |
21971 | fi | |
21972 | fi | |
21973 | ||
cbca9943 | 21974 | if test "$wxUSE_SPLASH" = "yes"; then |
a0b9e27f | 21975 | cat >> confdefs.h <<\EOF |
cbca9943 | 21976 | #define wxUSE_SPLASH 1 |
a0b9e27f | 21977 | EOF |
cbca9943 VZ |
21978 | |
21979 | fi | |
21980 | ||
1e6feb95 VZ |
21981 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
21982 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21983 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 |
1e6feb95 | 21984 | else |
a0b9e27f | 21985 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21986 | #define wxUSE_STARTUP_TIPS 1 |
a0b9e27f | 21987 | EOF |
1e6feb95 | 21988 | |
7b4a847f RR |
21989 | fi |
21990 | fi | |
579d8138 | 21991 | |
8284b0c5 | 21992 | if test "$wxUSE_TEXTDLG" = "yes"; then |
a0b9e27f | 21993 | cat >> confdefs.h <<\EOF |
8284b0c5 | 21994 | #define wxUSE_TEXTDLG 1 |
a0b9e27f | 21995 | EOF |
8284b0c5 MB |
21996 | |
21997 | fi | |
21998 | ||
21999 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
a0b9e27f | 22000 | cat >> confdefs.h <<\EOF |
8284b0c5 | 22001 | #define wxUSE_WIZARDDLG 1 |
a0b9e27f | 22002 | EOF |
8284b0c5 MB |
22003 | |
22004 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
22005 | fi | |
22006 | ||
22007 | ||
22008 | if test "$cross_compiling" = "yes"; then | |
22009 | OSINFO="\"$host\"" | |
22010 | else | |
22011 | OSINFO=`uname -s -r -m` | |
22012 | OSINFO="\"$OSINFO\"" | |
22013 | fi | |
22014 | ||
a0b9e27f | 22015 | cat >> confdefs.h <<EOF |
8284b0c5 | 22016 | #define WXWIN_OS_DESCRIPTION $OSINFO |
a0b9e27f | 22017 | EOF |
8284b0c5 MB |
22018 | |
22019 | ||
22020 | ||
22021 | if test "x$prefix" != "xNONE"; then | |
22022 | wxPREFIX=$prefix | |
22023 | else | |
22024 | wxPREFIX=$ac_default_prefix | |
22025 | fi | |
22026 | ||
a0b9e27f | 22027 | cat >> confdefs.h <<EOF |
8284b0c5 | 22028 | #define wxINSTALL_PREFIX "$wxPREFIX" |
a0b9e27f | 22029 | EOF |
8284b0c5 MB |
22030 | |
22031 | ||
52c71b80 VZ |
22032 | top_builddir=`pwd` |
22033 | ||
8284b0c5 MB |
22034 | |
22035 | ||
22036 | ||
22037 | if test "$wxUSE_MAC" = 1 ; then | |
22038 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
22039 | fi | |
22040 | ||
22041 | ||
2b5f62a0 VZ |
22042 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
22043 | ||
22044 | have_cos=0 | |
22045 | have_floor=0 | |
22046 | for ac_func in cos | |
22047 | do | |
22048 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
521196a2 | 22049 | echo "configure:22050: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22050 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22051 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22052 | else | |
22053 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 22054 | #line 22055 "configure" |
2b5f62a0 VZ |
22055 | #include "confdefs.h" |
22056 | /* System header to define __stub macros and hopefully few prototypes, | |
22057 | which can conflict with char $ac_func(); below. */ | |
22058 | #include <assert.h> | |
22059 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22060 | /* We use char because int might match the return type of a gcc2 | |
22061 | builtin and then its argument prototype would still apply. */ | |
22062 | char $ac_func(); | |
22063 | ||
22064 | int main() { | |
22065 | ||
22066 | /* The GNU C library defines this for functions which it implements | |
22067 | to always fail with ENOSYS. Some functions are actually named | |
22068 | something starting with __ and the normal name is an alias. */ | |
22069 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22070 | choke me | |
22071 | #else | |
22072 | $ac_func(); | |
22073 | #endif | |
22074 | ||
22075 | ; return 0; } | |
22076 | EOF | |
521196a2 | 22077 | if { (eval echo configure:22078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22078 | rm -rf conftest* |
22079 | eval "ac_cv_func_$ac_func=yes" | |
22080 | else | |
22081 | echo "configure: failed program was:" >&5 | |
22082 | cat conftest.$ac_ext >&5 | |
22083 | rm -rf conftest* | |
22084 | eval "ac_cv_func_$ac_func=no" | |
22085 | fi | |
22086 | rm -f conftest* | |
22087 | fi | |
22088 | ||
22089 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22090 | echo "$ac_t""yes" 1>&6 | |
22091 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22092 | cat >> confdefs.h <<EOF | |
22093 | #define $ac_tr_func 1 | |
22094 | EOF | |
22095 | have_cos=1 | |
22096 | else | |
22097 | echo "$ac_t""no" 1>&6 | |
22098 | fi | |
22099 | done | |
22100 | ||
22101 | for ac_func in floor | |
22102 | do | |
22103 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
521196a2 | 22104 | echo "configure:22105: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22105 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22106 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22107 | else | |
22108 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 22109 | #line 22110 "configure" |
2b5f62a0 VZ |
22110 | #include "confdefs.h" |
22111 | /* System header to define __stub macros and hopefully few prototypes, | |
22112 | which can conflict with char $ac_func(); below. */ | |
22113 | #include <assert.h> | |
22114 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22115 | /* We use char because int might match the return type of a gcc2 | |
22116 | builtin and then its argument prototype would still apply. */ | |
22117 | char $ac_func(); | |
22118 | ||
22119 | int main() { | |
22120 | ||
22121 | /* The GNU C library defines this for functions which it implements | |
22122 | to always fail with ENOSYS. Some functions are actually named | |
22123 | something starting with __ and the normal name is an alias. */ | |
22124 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22125 | choke me | |
22126 | #else | |
22127 | $ac_func(); | |
22128 | #endif | |
22129 | ||
22130 | ; return 0; } | |
22131 | EOF | |
521196a2 | 22132 | if { (eval echo configure:22133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22133 | rm -rf conftest* |
22134 | eval "ac_cv_func_$ac_func=yes" | |
22135 | else | |
22136 | echo "configure: failed program was:" >&5 | |
22137 | cat conftest.$ac_ext >&5 | |
22138 | rm -rf conftest* | |
22139 | eval "ac_cv_func_$ac_func=no" | |
22140 | fi | |
22141 | rm -f conftest* | |
22142 | fi | |
22143 | ||
22144 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22145 | echo "$ac_t""yes" 1>&6 | |
22146 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22147 | cat >> confdefs.h <<EOF | |
22148 | #define $ac_tr_func 1 | |
22149 | EOF | |
22150 | have_floor=1 | |
22151 | else | |
22152 | echo "$ac_t""no" 1>&6 | |
22153 | fi | |
22154 | done | |
22155 | ||
22156 | echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6 | |
521196a2 | 22157 | echo "configure:22158: checking if floating point functions link without -lm" >&5 |
2b5f62a0 VZ |
22158 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
22159 | echo "$ac_t""yes" 1>&6 | |
22160 | else | |
22161 | echo "$ac_t""no" 1>&6 | |
22162 | LIBS="$LIBS -lm" | |
22163 | # use different functions to avoid configure caching | |
22164 | have_sin=0 | |
22165 | have_ceil=0 | |
22166 | for ac_func in sin | |
22167 | do | |
22168 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
521196a2 | 22169 | echo "configure:22170: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22170 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22171 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22172 | else | |
22173 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 22174 | #line 22175 "configure" |
2b5f62a0 VZ |
22175 | #include "confdefs.h" |
22176 | /* System header to define __stub macros and hopefully few prototypes, | |
22177 | which can conflict with char $ac_func(); below. */ | |
22178 | #include <assert.h> | |
22179 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22180 | /* We use char because int might match the return type of a gcc2 | |
22181 | builtin and then its argument prototype would still apply. */ | |
22182 | char $ac_func(); | |
22183 | ||
22184 | int main() { | |
22185 | ||
22186 | /* The GNU C library defines this for functions which it implements | |
22187 | to always fail with ENOSYS. Some functions are actually named | |
22188 | something starting with __ and the normal name is an alias. */ | |
22189 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22190 | choke me | |
22191 | #else | |
22192 | $ac_func(); | |
22193 | #endif | |
22194 | ||
22195 | ; return 0; } | |
22196 | EOF | |
521196a2 | 22197 | if { (eval echo configure:22198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22198 | rm -rf conftest* |
22199 | eval "ac_cv_func_$ac_func=yes" | |
22200 | else | |
22201 | echo "configure: failed program was:" >&5 | |
22202 | cat conftest.$ac_ext >&5 | |
22203 | rm -rf conftest* | |
22204 | eval "ac_cv_func_$ac_func=no" | |
22205 | fi | |
22206 | rm -f conftest* | |
22207 | fi | |
22208 | ||
22209 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22210 | echo "$ac_t""yes" 1>&6 | |
22211 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22212 | cat >> confdefs.h <<EOF | |
22213 | #define $ac_tr_func 1 | |
22214 | EOF | |
22215 | have_sin=1 | |
22216 | else | |
22217 | echo "$ac_t""no" 1>&6 | |
22218 | fi | |
22219 | done | |
22220 | ||
22221 | for ac_func in ceil | |
22222 | do | |
22223 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
521196a2 | 22224 | echo "configure:22225: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22225 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22226 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22227 | else | |
22228 | cat > conftest.$ac_ext <<EOF | |
521196a2 | 22229 | #line 22230 "configure" |
2b5f62a0 VZ |
22230 | #include "confdefs.h" |
22231 | /* System header to define __stub macros and hopefully few prototypes, | |
22232 | which can conflict with char $ac_func(); below. */ | |
22233 | #include <assert.h> | |
22234 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22235 | /* We use char because int might match the return type of a gcc2 | |
22236 | builtin and then its argument prototype would still apply. */ | |
22237 | char $ac_func(); | |
22238 | ||
22239 | int main() { | |
22240 | ||
22241 | /* The GNU C library defines this for functions which it implements | |
22242 | to always fail with ENOSYS. Some functions are actually named | |
22243 | something starting with __ and the normal name is an alias. */ | |
22244 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22245 | choke me | |
22246 | #else | |
22247 | $ac_func(); | |
22248 | #endif | |
22249 | ||
22250 | ; return 0; } | |
22251 | EOF | |
521196a2 | 22252 | if { (eval echo configure:22253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22253 | rm -rf conftest* |
22254 | eval "ac_cv_func_$ac_func=yes" | |
22255 | else | |
22256 | echo "configure: failed program was:" >&5 | |
22257 | cat conftest.$ac_ext >&5 | |
22258 | rm -rf conftest* | |
22259 | eval "ac_cv_func_$ac_func=no" | |
22260 | fi | |
22261 | rm -f conftest* | |
22262 | fi | |
22263 | ||
22264 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22265 | echo "$ac_t""yes" 1>&6 | |
22266 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22267 | cat >> confdefs.h <<EOF | |
22268 | #define $ac_tr_func 1 | |
22269 | EOF | |
22270 | have_ceil=1 | |
22271 | else | |
22272 | echo "$ac_t""no" 1>&6 | |
22273 | fi | |
22274 | done | |
22275 | ||
22276 | echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6 | |
521196a2 | 22277 | echo "configure:22278: checking if floating point functions link with -lm" >&5 |
2b5f62a0 VZ |
22278 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
22279 | echo "$ac_t""yes" 1>&6 | |
22280 | else | |
22281 | echo "$ac_t""no" 1>&6 | |
22282 | # not sure we should warn the user, crash, etc. | |
22283 | fi | |
22284 | fi | |
8284b0c5 MB |
22285 | |
22286 | if test "$wxUSE_GUI" = "yes"; then | |
22287 | ||
22288 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" | |
22289 | ||
a0b9e27f | 22290 | |
8284b0c5 MB |
22291 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
22292 | drawing dynamic erase event exec font image \ | |
22293 | minimal propsize rotate widgets" | |
22294 | ||
22295 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
22296 | else | |
22297 | SAMPLES_SUBDIRS="console" | |
22298 | fi | |
22299 | ||
22300 | ||
22301 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ | |
22302 | -I\${top_srcdir}/include \ | |
22303 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
22304 | $TOOLKIT_INCLUDE" | |
22305 | ||
22306 | if test "$wxUSE_GTK" = 1; then | |
22307 | WXCONFIG_INCLUDE= | |
22308 | else | |
22309 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
22310 | fi | |
22311 | ||
22312 | if test "$GXX" = yes ; then | |
22313 | CXXWARNINGS="-Wall" | |
a0b9e27f | 22314 | |
8284b0c5 MB |
22315 | if test "$wxUSE_NO_DEPS" = "no" ; then |
22316 | CFLAGS="-MMD $CFLAGS" | |
22317 | CXXFLAGS="-MMD $CXXFLAGS" | |
22318 | fi | |
22319 | fi | |
22320 | ||
b2fee376 | 22321 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" |
8284b0c5 | 22322 | |
b2fee376 | 22323 | CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
8284b0c5 MB |
22324 | CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
22325 | CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
22326 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
22327 | ||
22328 | LDFLAGS="$LDFLAGS $PROFILE" | |
22329 | ||
22330 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
22331 | ||
22332 | ||
22333 | ||
22334 | ||
22335 | ||
22336 | ||
22337 | ||
22338 | ||
22339 | ||
22340 | ||
22341 | ||
22342 | ||
22343 | ||
22344 | ||
22345 | ||
22346 | ||
22347 | ||
22348 | ||
22349 | ||
22350 | ||
22351 | ||
22352 | ||
22353 | ||
22354 | ||
22355 | ||
22356 | ||
22357 | ||
22358 | ||
22359 | ||
22360 | ||
22361 | ||
22362 | ||
22363 | ||
22364 | ||
22365 | ||
22366 | ||
22367 | ||
22368 | ||
22369 | ||
22370 | ||
22371 | ||
22372 | ||
22373 | ||
22374 | ||
22375 | ||
22376 | ||
22377 | ||
22378 | ||
22379 | ||
22380 | ||
22381 | ||
22382 | ||
22383 | ||
22384 | ||
22385 | ||
22386 | ||
22387 | ||
22388 | ||
22389 | ||
22390 | ||
22391 | ||
22392 | ||
22393 | ||
22394 | ||
22395 | ||
22396 | ||
22397 | ||
22398 | ||
2f51a9ec GD |
22399 | |
22400 | ||
22401 | ||
22402 | ||
f6bcfd97 | 22403 | |
dad6c0ea | 22404 | |
caa2c79b | 22405 | |
3711412e | 22406 | |
1e6feb95 VZ |
22407 | |
22408 | ||
885d4bf5 VS |
22409 | |
22410 | ||
22411 | ||
22412 | ||
9b695262 VZ |
22413 | |
22414 | ||
62d0491b | 22415 | |
ef7f2189 | 22416 | |
40f7145c | 22417 | |
2b5f62a0 VZ |
22418 | |
22419 | ||
22420 | ||
22421 | ||
22422 | ||
2bffed64 VZ |
22423 | |
22424 | ||
3bd8fb5f | 22425 | |
e26c13cf | 22426 | |
52c71b80 | 22427 | |
36825681 | 22428 | |
4f5a7f74 | 22429 | |
10f2d63a | 22430 | |
a0b9e27f MB |
22431 | |
22432 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
521196a2 | 22433 | echo "configure:22434: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
a0b9e27f MB |
22434 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
22435 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
22436 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 22437 | else |
a0b9e27f | 22438 | cat > conftestmake <<\EOF |
10f2d63a VZ |
22439 | all: |
22440 | @echo 'ac_maketemp="${MAKE}"' | |
a0b9e27f | 22441 | EOF |
10f2d63a | 22442 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
a0b9e27f | 22443 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
22444 | if test -n "$ac_maketemp"; then |
22445 | eval ac_cv_prog_make_${ac_make}_set=yes | |
22446 | else | |
22447 | eval ac_cv_prog_make_${ac_make}_set=no | |
22448 | fi | |
a0b9e27f | 22449 | rm -f conftestmake |
10f2d63a VZ |
22450 | fi |
22451 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
a0b9e27f | 22452 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
22453 | SET_MAKE= |
22454 | else | |
a0b9e27f | 22455 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
22456 | SET_MAKE="MAKE=${MAKE-make}" |
22457 | fi | |
22458 | ||
8284b0c5 | 22459 | |
3a922bb4 RL |
22460 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
22461 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 22462 | fi |
665bbe97 | 22463 | |
8284b0c5 | 22464 | |
10f2d63a | 22465 | |
57973b9c VZ |
22466 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
22467 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
22468 | wx_cv_path_ifs=$PATH_IFS | |
22469 | wx_cv_program_ext=$PROGRAM_EXT | |
22470 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
22471 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
22472 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
2b5f62a0 VZ |
22473 | wx_cv_library_basename=${WX_LIBRARY_BASENAME} |
22474 | wx_cv_release=${WX_RELEASE} | |
22475 | wx_cv_current=${WX_CURRENT} | |
22476 | wx_cv_revision=${WX_REVISION} | |
22477 | wx_cv_age=${WX_AGE} | |
27635a90 | 22478 | wx_cv_use_gui=${USE_GUI} |
5e66eee1 | 22479 | wx_cv_use_resources=${wxUSE_RESOURCES} |
57973b9c VZ |
22480 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ |
22481 | wx_cv_path_ifs wx_cv_program_ext \ | |
2b5f62a0 | 22482 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \ |
27635a90 | 22483 | wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \ |
5e66eee1 | 22484 | wx_cv_use_gui wx_cv_use_resources |
57973b9c | 22485 | |
a0b9e27f | 22486 | subdirs="demos samples utils contrib" |
8284b0c5 | 22487 | |
10f2d63a | 22488 | |
a0b9e27f MB |
22489 | trap '' 1 2 15 |
22490 | cat > confcache <<\EOF | |
10f2d63a VZ |
22491 | # This file is a shell script that caches the results of configure |
22492 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
22493 | # scripts and configure runs. It is not useful on other systems. |
22494 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 22495 | # |
a0b9e27f MB |
22496 | # By default, configure uses ./config.cache as the cache file, |
22497 | # creating it if it does not exist already. You can give configure | |
22498 | # the --cache-file=FILE option to use a different cache file; that is | |
22499 | # what configure does when it calls configure scripts in | |
22500 | # subdirectories, so they share the cache. | |
22501 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
22502 | # config.status only pays attention to the cache file if you give it the | |
22503 | # --recheck option to rerun configure. | |
10f2d63a | 22504 | # |
a0b9e27f | 22505 | EOF |
10f2d63a VZ |
22506 | # The following way of writing the cache mishandles newlines in values, |
22507 | # but we know of no workaround that is simple, portable, and efficient. | |
22508 | # So, don't put newlines in cache variables' values. | |
22509 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
22510 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
22511 | (set) 2>&1 | |
22512 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
22513 | *ac_space=\ *) | |
22514 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
22515 | # turns \\\\ into \\, and sed turns \\ into \). | |
22516 | sed -n \ | |
22517 | -e "s/'/'\\\\''/g" \ | |
22518 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
22519 | ;; | |
22520 | *) | |
22521 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
22522 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
22523 | ;; | |
22524 | esac >> confcache | |
22525 | if cmp -s $cache_file confcache; then | |
22526 | : | |
22527 | else | |
10f2d63a | 22528 | if test -w $cache_file; then |
a0b9e27f MB |
22529 | echo "updating cache $cache_file" |
22530 | cat confcache > $cache_file | |
10f2d63a VZ |
22531 | else |
22532 | echo "not updating unwritable cache $cache_file" | |
22533 | fi | |
22534 | fi | |
22535 | rm -f confcache | |
22536 | ||
a0b9e27f MB |
22537 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
22538 | ||
10f2d63a VZ |
22539 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
22540 | # Let make expand exec_prefix. | |
22541 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
22542 | ||
a0b9e27f MB |
22543 | # Any assignment to VPATH causes Sun make to only execute |
22544 | # the first set of double-colon rules, so remove it if not needed. | |
22545 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 22546 | if test "x$srcdir" = x.; then |
a0b9e27f | 22547 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
22548 | fi |
22549 | ||
a0b9e27f | 22550 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
10f2d63a | 22551 | |
a0b9e27f | 22552 | DEFS=-DHAVE_CONFIG_H |
8284b0c5 | 22553 | |
a0b9e27f | 22554 | # Without the "./", some shells look in PATH for config.status. |
247f5006 | 22555 | : ${CONFIG_STATUS=./config.status} |
52127426 | 22556 | |
a0b9e27f MB |
22557 | echo creating $CONFIG_STATUS |
22558 | rm -f $CONFIG_STATUS | |
22559 | cat > $CONFIG_STATUS <<EOF | |
22560 | #! /bin/sh | |
22561 | # Generated automatically by configure. | |
22562 | # Run this file to recreate the current configuration. | |
22563 | # This directory was configured as follows, | |
22564 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
247f5006 | 22565 | # |
a0b9e27f | 22566 | # $0 $ac_configure_args |
247f5006 | 22567 | # |
a0b9e27f MB |
22568 | # Compiler output produced by configure, useful for debugging |
22569 | # configure, is in ./config.log if it exists. | |
247f5006 | 22570 | |
a0b9e27f MB |
22571 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
22572 | for ac_option | |
247f5006 | 22573 | do |
a0b9e27f MB |
22574 | case "\$ac_option" in |
22575 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22576 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
22577 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
22578 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
22579 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
22580 | exit 0 ;; | |
22581 | -help | --help | --hel | --he | --h) | |
22582 | echo "\$ac_cs_usage"; exit 0 ;; | |
22583 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
247f5006 VZ |
22584 | esac |
22585 | done | |
22586 | ||
a0b9e27f MB |
22587 | ac_given_srcdir=$srcdir |
22588 | ac_given_INSTALL="$INSTALL" | |
247f5006 | 22589 | |
a0b9e27f MB |
22590 | trap 'rm -fr `echo " |
22591 | wx-config | |
2b5f62a0 | 22592 | version-script |
a0b9e27f MB |
22593 | src/make.env |
22594 | src/makeprog.env | |
22595 | src/makelib.env | |
22596 | Makefile | |
22597 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
22598 | EOF | |
22599 | cat >> $CONFIG_STATUS <<EOF | |
247f5006 | 22600 | |
a0b9e27f MB |
22601 | # Protect against being on the right side of a sed subst in config.status. |
22602 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
22603 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
22604 | $ac_vpsub | |
22605 | $extrasub | |
22606 | s%@SHELL@%$SHELL%g | |
22607 | s%@CFLAGS@%$CFLAGS%g | |
22608 | s%@CPPFLAGS@%$CPPFLAGS%g | |
22609 | s%@CXXFLAGS@%$CXXFLAGS%g | |
22610 | s%@FFLAGS@%$FFLAGS%g | |
22611 | s%@DEFS@%$DEFS%g | |
22612 | s%@LDFLAGS@%$LDFLAGS%g | |
22613 | s%@LIBS@%$LIBS%g | |
22614 | s%@exec_prefix@%$exec_prefix%g | |
22615 | s%@prefix@%$prefix%g | |
22616 | s%@program_transform_name@%$program_transform_name%g | |
22617 | s%@bindir@%$bindir%g | |
22618 | s%@sbindir@%$sbindir%g | |
22619 | s%@libexecdir@%$libexecdir%g | |
22620 | s%@datadir@%$datadir%g | |
22621 | s%@sysconfdir@%$sysconfdir%g | |
22622 | s%@sharedstatedir@%$sharedstatedir%g | |
22623 | s%@localstatedir@%$localstatedir%g | |
22624 | s%@libdir@%$libdir%g | |
22625 | s%@includedir@%$includedir%g | |
22626 | s%@oldincludedir@%$oldincludedir%g | |
22627 | s%@infodir@%$infodir%g | |
22628 | s%@mandir@%$mandir%g | |
22629 | s%@host@%$host%g | |
22630 | s%@host_alias@%$host_alias%g | |
22631 | s%@host_cpu@%$host_cpu%g | |
22632 | s%@host_vendor@%$host_vendor%g | |
22633 | s%@host_os@%$host_os%g | |
22634 | s%@target@%$target%g | |
22635 | s%@target_alias@%$target_alias%g | |
22636 | s%@target_cpu@%$target_cpu%g | |
22637 | s%@target_vendor@%$target_vendor%g | |
22638 | s%@target_os@%$target_os%g | |
22639 | s%@build@%$build%g | |
22640 | s%@build_alias@%$build_alias%g | |
22641 | s%@build_cpu@%$build_cpu%g | |
22642 | s%@build_vendor@%$build_vendor%g | |
22643 | s%@build_os@%$build_os%g | |
22644 | s%@CC@%$CC%g | |
22645 | s%@CPP@%$CPP%g | |
22646 | s%@CXX@%$CXX%g | |
22647 | s%@RANLIB@%$RANLIB%g | |
22648 | s%@AR@%$AR%g | |
22649 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
22650 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
22651 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
22652 | s%@STRIP@%$STRIP%g | |
22653 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g | |
22654 | s%@YACC@%$YACC%g | |
22655 | s%@LEX@%$LEX%g | |
22656 | s%@LEXLIB@%$LEXLIB%g | |
22657 | s%@LN_S@%$LN_S%g | |
22658 | s%@CXXCPP@%$CXXCPP%g | |
22659 | s%@PKG_CONFIG@%$PKG_CONFIG%g | |
22660 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
22661 | s%@GTK_LIBS@%$GTK_LIBS%g | |
22662 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
22663 | s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g | |
22664 | s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g | |
22665 | s%@X_CFLAGS@%$X_CFLAGS%g | |
22666 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
22667 | s%@X_LIBS@%$X_LIBS%g | |
22668 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
2b5f62a0 VZ |
22669 | s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g |
22670 | s%@PANGOX_LIBS@%$PANGOX_LIBS%g | |
22671 | s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g | |
22672 | s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g | |
a0b9e27f MB |
22673 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g |
22674 | s%@RESCOMP@%$RESCOMP%g | |
22675 | s%@DEREZ@%$DEREZ%g | |
36825681 | 22676 | s%@SETFILE@%$SETFILE%g |
a0b9e27f MB |
22677 | s%@LIBICONV@%$LIBICONV%g |
22678 | s%@LEX_STEM@%$LEX_STEM%g | |
22679 | s%@PATH_IFS@%$PATH_IFS%g | |
22680 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
22681 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
22682 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
22683 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
22684 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
2b5f62a0 | 22685 | s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g |
a0b9e27f MB |
22686 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
22687 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
22688 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
22689 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
22690 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
22691 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
22692 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
22693 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
22694 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
22695 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
22696 | s%@WX_ALL@%$WX_ALL%g | |
22697 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
22698 | s%@SHARED_LD@%$SHARED_LD%g | |
22699 | s%@PIC_FLAG@%$PIC_FLAG%g | |
22700 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
22701 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
22702 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g | |
22703 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
22704 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
22705 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
2bffed64 | 22706 | s%@STATIC_FLAG@%$STATIC_FLAG%g |
a0b9e27f MB |
22707 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
22708 | s%@USE_GUI@%$USE_GUI%g | |
22709 | s%@AFMINSTALL@%$AFMINSTALL%g | |
2b5f62a0 | 22710 | s%@WIN32INSTALL@%$WIN32INSTALL%g |
a0b9e27f MB |
22711 | s%@TOOLKIT@%$TOOLKIT%g |
22712 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
22713 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g | |
22714 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g | |
22715 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
22716 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g | |
52c71b80 | 22717 | s%@top_builddir@%$top_builddir%g |
a0b9e27f MB |
22718 | s%@cross_compiling@%$cross_compiling%g |
22719 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
22720 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
22721 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g | |
22722 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
22723 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
22724 | s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g | |
e26c13cf | 22725 | s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g |
a0b9e27f MB |
22726 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g |
22727 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
22728 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
22729 | s%@GUIDIST@%$GUIDIST%g | |
22730 | s%@PORT_FILES@%$PORT_FILES%g | |
22731 | s%@DISTDIR@%$DISTDIR%g | |
a0b9e27f MB |
22732 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
22733 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g | |
2b5f62a0 | 22734 | s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g |
a0b9e27f MB |
22735 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g |
22736 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
22737 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g | |
22738 | s%@EXTRADEFS@%$EXTRADEFS%g | |
2b5f62a0 | 22739 | s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g |
a0b9e27f MB |
22740 | s%@RESFLAGS@%$RESFLAGS%g |
22741 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g | |
22742 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g | |
22743 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
22744 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g | |
22745 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
36825681 GD |
22746 | s%@MACRESCOMP@%$MACRESCOMP%g |
22747 | s%@MACSETFILE@%$MACSETFILE%g | |
22748 | s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g | |
2b5f62a0 | 22749 | s%@GCC@%$GCC%g |
a0b9e27f MB |
22750 | s%@DLLTOOL@%$DLLTOOL%g |
22751 | s%@AS@%$AS%g | |
22752 | s%@NM@%$NM%g | |
22753 | s%@LD@%$LD%g | |
22754 | s%@MAKEINFO@%$MAKEINFO%g | |
22755 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g | |
4f5a7f74 | 22756 | s%@INSTALL_DIR@%$INSTALL_DIR%g |
a0b9e27f MB |
22757 | s%@SET_MAKE@%$SET_MAKE%g |
22758 | s%@subdirs@%$subdirs%g | |
247f5006 | 22759 | |
247f5006 | 22760 | CEOF |
a0b9e27f | 22761 | EOF |
247f5006 | 22762 | |
a0b9e27f MB |
22763 | cat >> $CONFIG_STATUS <<\EOF |
22764 | ||
22765 | # Split the substitutions into bite-sized pieces for seds with | |
22766 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
22767 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
22768 | ac_file=1 # Number of current file. | |
22769 | ac_beg=1 # First line for current file. | |
22770 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
22771 | ac_more_lines=: | |
22772 | ac_sed_cmds="" | |
22773 | while $ac_more_lines; do | |
22774 | if test $ac_beg -gt 1; then | |
22775 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
22776 | else | |
22777 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
22778 | fi | |
22779 | if test ! -s conftest.s$ac_file; then | |
22780 | ac_more_lines=false | |
22781 | rm -f conftest.s$ac_file | |
22782 | else | |
22783 | if test -z "$ac_sed_cmds"; then | |
22784 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
247f5006 | 22785 | else |
a0b9e27f | 22786 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
247f5006 | 22787 | fi |
a0b9e27f MB |
22788 | ac_file=`expr $ac_file + 1` |
22789 | ac_beg=$ac_end | |
22790 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 22791 | fi |
a0b9e27f MB |
22792 | done |
22793 | if test -z "$ac_sed_cmds"; then | |
22794 | ac_sed_cmds=cat | |
22795 | fi | |
22796 | EOF | |
10f2d63a | 22797 | |
a0b9e27f | 22798 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 22799 | |
a0b9e27f | 22800 | CONFIG_FILES=\${CONFIG_FILES-"wx-config |
2b5f62a0 | 22801 | version-script |
a0b9e27f MB |
22802 | src/make.env |
22803 | src/makeprog.env | |
22804 | src/makelib.env | |
22805 | Makefile | |
22806 | "} | |
22807 | EOF | |
22808 | cat >> $CONFIG_STATUS <<\EOF | |
22809 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
22810 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
22811 | case "$ac_file" in | |
22812 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
22813 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22814 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a | 22815 | esac |
247f5006 | 22816 | |
a0b9e27f | 22817 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
247f5006 | 22818 | |
a0b9e27f MB |
22819 | # Remove last slash and all that follows it. Not all systems have dirname. |
22820 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
22821 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
22822 | # The file is in a subdirectory. | |
22823 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
22824 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
22825 | # A "../" for each directory in $ac_dir_suffix. | |
22826 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
22827 | else | |
22828 | ac_dir_suffix= ac_dots= | |
22829 | fi | |
247f5006 | 22830 | |
a0b9e27f MB |
22831 | case "$ac_given_srcdir" in |
22832 | .) srcdir=. | |
22833 | if test -z "$ac_dots"; then top_srcdir=. | |
22834 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
22835 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
247f5006 | 22836 | *) # Relative path. |
a0b9e27f MB |
22837 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
22838 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8284b0c5 | 22839 | esac |
10f2d63a | 22840 | |
a0b9e27f MB |
22841 | case "$ac_given_INSTALL" in |
22842 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
22843 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
22844 | esac | |
247f5006 | 22845 | |
a0b9e27f MB |
22846 | echo creating "$ac_file" |
22847 | rm -f "$ac_file" | |
22848 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
22849 | case "$ac_file" in | |
22850 | *Makefile*) ac_comsub="1i\\ | |
22851 | # $configure_input" ;; | |
22852 | *) ac_comsub= ;; | |
22853 | esac | |
247f5006 | 22854 | |
a0b9e27f MB |
22855 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
22856 | sed -e "$ac_comsub | |
22857 | s%@configure_input@%$configure_input%g | |
22858 | s%@srcdir@%$srcdir%g | |
22859 | s%@top_srcdir@%$top_srcdir%g | |
22860 | s%@INSTALL@%$INSTALL%g | |
22861 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
22862 | fi; done | |
22863 | rm -f conftest.s* | |
10f2d63a VZ |
22864 | |
22865 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
22866 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
22867 | # | |
22868 | # ac_d sets the value in "#define NAME VALUE" lines. | |
a0b9e27f MB |
22869 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
22870 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
22871 | ac_dC='\3' | |
22872 | ac_dD='%g' | |
22873 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
22874 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22875 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 22876 | ac_uC=' ' |
a0b9e27f MB |
22877 | ac_uD='\4%g' |
22878 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
22879 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22880 | ac_eB='$%\1#\2define\3' | |
22881 | ac_eC=' ' | |
22882 | ac_eD='%g' | |
22883 | ||
22884 | if test "${CONFIG_HEADERS+set}" != set; then | |
22885 | EOF | |
22886 | cat >> $CONFIG_STATUS <<EOF | |
22887 | CONFIG_HEADERS="setup.h:setup.h.in" | |
22888 | EOF | |
22889 | cat >> $CONFIG_STATUS <<\EOF | |
22890 | fi | |
22891 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 22892 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
a0b9e27f MB |
22893 | case "$ac_file" in |
22894 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
22895 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22896 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
22897 | esac |
22898 | ||
a0b9e27f MB |
22899 | echo creating $ac_file |
22900 | ||
22901 | rm -f conftest.frag conftest.in conftest.out | |
22902 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
22903 | cat $ac_file_inputs > conftest.in | |
22904 | ||
22905 | EOF | |
22906 | ||
22907 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
22908 | # the proper values into config.h.in to produce config.h. And first: | |
22909 | # Protect against being on the right side of a sed subst in config.status. | |
22910 | # Protect against being in an unquoted here document in config.status. | |
22911 | rm -f conftest.vals | |
22912 | cat > conftest.hdr <<\EOF | |
22913 | s/[\\&%]/\\&/g | |
22914 | s%[\\$`]%\\&%g | |
22915 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
22916 | s%ac_d%ac_u%gp | |
22917 | s%ac_u%ac_e%gp | |
22918 | EOF | |
22919 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
22920 | rm -f conftest.hdr | |
10f2d63a VZ |
22921 | |
22922 | # This sed command replaces #undef with comments. This is necessary, for | |
22923 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
22924 | # on some systems where configure will not decide to define it. | |
a0b9e27f MB |
22925 | cat >> conftest.vals <<\EOF |
22926 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
22927 | EOF | |
22928 | ||
22929 | # Break up conftest.vals because some shells have a limit on | |
22930 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
22931 | |
22932 | rm -f conftest.tail | |
a0b9e27f | 22933 | while : |
10f2d63a | 22934 | do |
a0b9e27f MB |
22935 | ac_lines=`grep -c . conftest.vals` |
22936 | # grep -c gives empty output for an empty file on some AIX systems. | |
22937 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
22938 | # Write a limited-size here document to conftest.frag. | |
22939 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
22940 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 22941 | echo 'CEOF |
a0b9e27f MB |
22942 | sed -f conftest.frag conftest.in > conftest.out |
22943 | rm -f conftest.in | |
22944 | mv conftest.out conftest.in | |
22945 | ' >> $CONFIG_STATUS | |
22946 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
22947 | rm -f conftest.vals | |
22948 | mv conftest.tail conftest.vals | |
10f2d63a | 22949 | done |
a0b9e27f MB |
22950 | rm -f conftest.vals |
22951 | ||
22952 | cat >> $CONFIG_STATUS <<\EOF | |
22953 | rm -f conftest.frag conftest.h | |
22954 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
22955 | cat conftest.in >> conftest.h | |
22956 | rm -f conftest.in | |
22957 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
22958 | echo "$ac_file is unchanged" | |
22959 | rm -f conftest.h | |
10f2d63a | 22960 | else |
a0b9e27f MB |
22961 | # Remove last slash and all that follows it. Not all systems have dirname. |
22962 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
22963 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
22964 | # The file is in a subdirectory. | |
22965 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
247f5006 | 22966 | fi |
a0b9e27f MB |
22967 | rm -f $ac_file |
22968 | mv conftest.h $ac_file | |
247f5006 | 22969 | fi |
a0b9e27f MB |
22970 | fi; done |
22971 | ||
22972 | EOF | |
22973 | cat >> $CONFIG_STATUS <<EOF | |
22974 | ||
22975 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
22976 | LN_S="${LN_S}" | |
22977 | ||
22978 | ||
22979 | EOF | |
22980 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 22981 | |
652d930d | 22982 | if test ! -h wx-config; then |
991a5759 | 22983 | chmod +x wx-config |
3a922bb4 RL |
22984 | mv wx-config wx${TOOLCHAIN_NAME}-config |
22985 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 22986 | fi |
665bbe97 | 22987 | |
00cf1208 RR |
22988 | if test ! -d lib; then |
22989 | mkdir lib | |
22990 | fi | |
22991 | if test ! -d lib/wx; then | |
22992 | mkdir lib/wx | |
22993 | fi | |
22994 | if test ! -d lib/wx/include; then | |
22995 | mkdir lib/wx/include | |
22996 | fi | |
3a922bb4 RL |
22997 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
22998 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 22999 | fi |
3a922bb4 RL |
23000 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
23001 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
23002 | fi |
23003 | if test -f setup.h; then | |
3a922bb4 | 23004 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 23005 | fi |
a0b9e27f MB |
23006 | |
23007 | exit 0 | |
23008 | EOF | |
10f2d63a | 23009 | chmod +x $CONFIG_STATUS |
a0b9e27f MB |
23010 | rm -fr confdefs* $ac_clean_files |
23011 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 23012 | |
2224580a VZ |
23013 | if test "$no_recursion" != yes; then |
23014 | ||
23015 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
23016 | ac_sub_configure_args= | |
23017 | ac_prev= | |
23018 | for ac_arg in $ac_configure_args; do | |
23019 | if test -n "$ac_prev"; then | |
23020 | ac_prev= | |
23021 | continue | |
23022 | fi | |
a0b9e27f | 23023 | case "$ac_arg" in |
2224580a VZ |
23024 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
23025 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
23026 | ac_prev=cache_file ;; | |
23027 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
a0b9e27f | 23028 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
23029 | ;; |
23030 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
23031 | ac_prev=srcdir ;; | |
23032 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
23033 | ;; | |
23034 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
23035 | esac | |
23036 | done | |
23037 | ||
a0b9e27f | 23038 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
23039 | |
23040 | # Do not complain, so a configure script can configure whichever | |
23041 | # parts of a large source tree are present. | |
a0b9e27f MB |
23042 | if test ! -d $srcdir/$ac_config_dir; then |
23043 | continue | |
23044 | fi | |
2224580a | 23045 | |
a0b9e27f | 23046 | echo configuring in $ac_config_dir |
2224580a | 23047 | |
a0b9e27f MB |
23048 | case "$srcdir" in |
23049 | .) ;; | |
23050 | *) | |
23051 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
23052 | else | |
23053 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
23054 | fi | |
23055 | ;; | |
23056 | esac | |
2224580a | 23057 | |
a0b9e27f MB |
23058 | ac_popdir=`pwd` |
23059 | cd $ac_config_dir | |
247f5006 | 23060 | |
a0b9e27f MB |
23061 | # A "../" for each directory in /$ac_config_dir. |
23062 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
247f5006 | 23063 | |
a0b9e27f MB |
23064 | case "$srcdir" in |
23065 | .) # No --srcdir option. We are building in place. | |
23066 | ac_sub_srcdir=$srcdir ;; | |
23067 | /*) # Absolute path. | |
23068 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
23069 | *) # Relative path. | |
23070 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
23071 | esac | |
2224580a VZ |
23072 | |
23073 | # Check for guested configure; otherwise get Cygnus style configure. | |
a0b9e27f MB |
23074 | if test -f $ac_sub_srcdir/configure; then |
23075 | ac_sub_configure=$ac_sub_srcdir/configure | |
23076 | elif test -f $ac_sub_srcdir/configure.in; then | |
2224580a VZ |
23077 | ac_sub_configure=$ac_configure |
23078 | else | |
a0b9e27f | 23079 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
23080 | ac_sub_configure= |
23081 | fi | |
23082 | ||
23083 | # The recursion is here. | |
23084 | if test -n "$ac_sub_configure"; then | |
a0b9e27f | 23085 | |
2224580a | 23086 | # Make the cache file name correct relative to the subdirectory. |
a0b9e27f MB |
23087 | case "$cache_file" in |
23088 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 23089 | *) # Relative path. |
a0b9e27f | 23090 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 23091 | esac |
a0b9e27f MB |
23092 | case "$ac_given_INSTALL" in |
23093 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
23094 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
23095 | esac | |
2224580a | 23096 | |
a0b9e27f | 23097 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 23098 | # The eval makes quoting arguments work. |
a0b9e27f MB |
23099 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
23100 | then : | |
23101 | else | |
23102 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
23103 | fi | |
2224580a VZ |
23104 | fi |
23105 | ||
23106 | cd $ac_popdir | |
23107 | done | |
23108 | fi | |
23109 | ||
8284b0c5 | 23110 | |
2b5f62a0 VZ |
23111 | echo |
23112 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
23113 | echo "" | |
23114 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}" | |
23115 | ||
23116 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
23117 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
23118 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
23119 | ||
0c98a14e GD |
23120 | echo " What level of wxWindows compatibility should be enabled?" |
23121 | echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}" | |
65d8ef1e VS |
23122 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
23123 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 23124 | |
2b5f62a0 VZ |
23125 | echo " Which libraries should wxWindows use?" |
23126 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
23127 | echo " png ${wxUSE_LIBPNG-none}" | |
23128 | echo " regex ${wxUSE_REGEX}" | |
23129 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
23130 | echo " zlib ${wxUSE_ZLIB}" | |
23131 | ||
23132 | echo "" | |
23133 |