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 | ||
55 | ||
56 | ||
57 | ||
58 | ||
59 | # Configure paths for GTK+ | |
60 | # Owen Taylor 1997-2001 | |
61 | ||
62 | ||
63 | ||
64 | ||
65 | ||
66 | ||
67 | ||
68 | ||
69 | # Configure paths for GTK+ | |
70 | # Owen Taylor 97-11-3 | |
71 | ||
72 | ||
73 | ||
74 | # Guess values for system-dependent variables and create Makefiles. | |
75 | # Generated automatically using autoconf version 2.13 | |
76 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
77 | # | |
78 | # This configure script is free software; the Free Software Foundation | |
79 | # gives unlimited permission to copy, distribute and modify it. | |
80 | ||
81 | # Defaults: | |
82 | ac_help= | |
83 | ac_default_prefix=/usr/local | |
84 | # Any additions from configure.in: | |
85 | ac_help="$ac_help | |
86 | --enable-gui use GUI classes" | |
87 | ac_help="$ac_help | |
88 | --enable-universal use wxWindows GUI controls instead of native ones" | |
89 | ac_help="$ac_help | |
90 | --with-gtk use GTK+" | |
91 | ac_help="$ac_help | |
92 | --with-motif use Motif/Lesstif" | |
93 | ac_help="$ac_help | |
94 | --with-mac use Mac OS X" | |
95 | ac_help="$ac_help | |
96 | --with-wine use WINE" | |
97 | ac_help="$ac_help | |
98 | --with-msw use MS-Windows" | |
99 | ac_help="$ac_help | |
100 | --with-pm use OS/2 Presentation Manager" | |
101 | ac_help="$ac_help | |
102 | --with-mgl use SciTech MGL" | |
103 | ac_help="$ac_help | |
104 | --with-microwin use MicroWindows" | |
105 | ac_help="$ac_help | |
106 | --with-x11 use X11" | |
107 | ac_help="$ac_help | |
108 | --enable-nanox use NanoX" | |
109 | ac_help="$ac_help | |
110 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" | |
111 | ac_help="$ac_help | |
112 | --with-libpng use libpng (PNG image format)" | |
113 | ac_help="$ac_help | |
114 | --with-libjpeg use libjpeg (JPEG file format)" | |
115 | ac_help="$ac_help | |
116 | --with-libtiff use libtiff (TIFF file format)" | |
117 | ac_help="$ac_help | |
118 | --with-opengl use OpenGL (or Mesa)" | |
119 | ac_help="$ac_help | |
120 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" | |
121 | ac_help="$ac_help | |
122 | --with-regex enable support for wxRegEx class" | |
123 | ac_help="$ac_help | |
124 | --with-zlib use zlib for LZW compression" | |
125 | ac_help="$ac_help | |
126 | --with-odbc use the IODBC and wxODBC classes" | |
127 | ac_help="$ac_help | |
128 | --enable-shared create shared library code" | |
129 | ac_help="$ac_help | |
130 | --enable-soname set the DT_SONAME field in ELF shared libraries" | |
131 | ac_help="$ac_help | |
132 | --enable-optimise create optimised code" | |
133 | ac_help="$ac_help | |
134 | --enable-debug same as debug_flag and debug_info" | |
135 | ac_help="$ac_help | |
136 | --enable-precomp enable use of precompiled headers (Mac OS X)" | |
137 | ac_help="$ac_help | |
138 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
139 | ac_help="$ac_help | |
140 | --enable-debug_info create code with debugging information" | |
141 | ac_help="$ac_help | |
142 | --enable-debug_gdb create code with extra GDB debugging information" | |
143 | ac_help="$ac_help | |
144 | --enable-debug_cntxt use wxDebugContext" | |
145 | ac_help="$ac_help | |
146 | --enable-mem_tracing create code with memory tracing" | |
147 | ac_help="$ac_help | |
148 | --enable-profile create code with profiling information" | |
149 | ac_help="$ac_help | |
150 | --enable-no_rtti create code without RTTI information" | |
151 | ac_help="$ac_help | |
152 | --enable-no_exceptions create code without C++ exceptions handling" | |
153 | ac_help="$ac_help | |
154 | --enable-permissive compile code disregarding strict ANSI" | |
155 | ac_help="$ac_help | |
156 | --enable-no_deps create code without dependency information" | |
157 | ac_help="$ac_help | |
158 | --enable-compat20 enable wxWindows 2.0 compatibility" | |
159 | ac_help="$ac_help | |
160 | --disable-compat22 disable wxWindows 2.2 compatibility" | |
161 | ac_help="$ac_help | |
162 | --enable-rpath=DIR output the rpath flag from wx-config" | |
163 | ac_help="$ac_help | |
164 | --enable-intl use internationalization system" | |
165 | ac_help="$ac_help | |
166 | --enable-config use wxConfig (and derived) classes" | |
167 | ac_help="$ac_help | |
168 | --enable-protocols use wxProtocol and derived classes" | |
169 | ac_help="$ac_help | |
170 | --enable-ftp use wxFTP (requires wxProtocol" | |
171 | ac_help="$ac_help | |
172 | --enable-http use wxHTTP (requires wxProtocol" | |
173 | ac_help="$ac_help | |
174 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
175 | ac_help="$ac_help | |
176 | --enable-sockets use socket/network classes" | |
177 | ac_help="$ac_help | |
178 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
179 | ac_help="$ac_help | |
180 | --enable-cmdline use wxCmdLineParser class" | |
181 | ac_help="$ac_help | |
182 | --enable-datetime use wxDateTime class" | |
183 | ac_help="$ac_help | |
184 | --enable-timedate use obsolete wxDate/wxTime classes" | |
185 | ac_help="$ac_help | |
186 | --enable-stopwatch use wxStopWatch class" | |
187 | ac_help="$ac_help | |
188 | --enable-dialupman use dialup network classes" | |
189 | ac_help="$ac_help | |
190 | --enable-apple_ieee use the Apple IEEE codec" | |
191 | ac_help="$ac_help | |
192 | --enable-timer use wxTimer class" | |
193 | ac_help="$ac_help | |
194 | --enable-wave use wxWave class" | |
195 | ac_help="$ac_help | |
196 | --enable-fraction use wxFraction class" | |
197 | ac_help="$ac_help | |
198 | --enable-dynlib use wxLibrary class for DLL loading" | |
199 | ac_help="$ac_help | |
200 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
201 | ac_help="$ac_help | |
202 | --enable-longlong use wxLongLong class" | |
203 | ac_help="$ac_help | |
204 | --enable-geometry use geometry class" | |
205 | ac_help="$ac_help | |
206 | --enable-log use logging system" | |
207 | ac_help="$ac_help | |
208 | --enable-streams use wxStream etc classes" | |
209 | ac_help="$ac_help | |
210 | --enable-file use wxFile classes" | |
211 | ac_help="$ac_help | |
212 | --enable-ffile use wxFFile classes" | |
213 | ac_help="$ac_help | |
214 | --enable-textbuf use wxTextBuffer class" | |
215 | ac_help="$ac_help | |
216 | --enable-textfile use wxTextFile class" | |
217 | ac_help="$ac_help | |
218 | --enable-fontmap use font encodings conversion classes" | |
219 | ac_help="$ac_help | |
220 | --enable-unicode compile wxString with Unicode support" | |
221 | ac_help="$ac_help | |
222 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
223 | ac_help="$ac_help | |
224 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
225 | ac_help="$ac_help | |
226 | --enable-std_iostreams use standard C++ stream classes" | |
227 | ac_help="$ac_help | |
228 | --enable-filesystem use virtual file systems classes" | |
229 | ac_help="$ac_help | |
230 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
231 | ac_help="$ac_help | |
232 | --enable-fs_zip use virtual ZIP filesystems" | |
233 | ac_help="$ac_help | |
234 | --enable-zipstream use wxZipInputStream" | |
235 | ac_help="$ac_help | |
236 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" | |
237 | ac_help="$ac_help | |
238 | --enable-snglinst use wxSingleInstanceChecker class" | |
239 | ac_help="$ac_help | |
240 | --enable-mimetype use wxMimeTypesManager" | |
241 | ac_help="$ac_help | |
242 | --enable-sysoptions use wxSystemOptions" | |
243 | ac_help="$ac_help | |
244 | --enable-url use wxURL class" | |
245 | ac_help="$ac_help | |
246 | --enable-protocol use wxProtocol class" | |
247 | ac_help="$ac_help | |
248 | --enable-protocol-http HTTP support in wxProtocol" | |
249 | ac_help="$ac_help | |
250 | --enable-protocol-ftp FTP support in wxProtocol" | |
251 | ac_help="$ac_help | |
252 | --enable-protocol-file FILE support in wxProtocol" | |
253 | ac_help="$ac_help | |
254 | --enable-threads use threads" | |
255 | ac_help="$ac_help | |
256 | --enable-docview use document view architecture" | |
257 | ac_help="$ac_help | |
258 | --enable-help use help subsystem" | |
259 | ac_help="$ac_help | |
260 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
261 | ac_help="$ac_help | |
262 | --enable-html use wxHTML sub-library" | |
263 | ac_help="$ac_help | |
264 | --enable-htmlhelp use wxHTML-based help" | |
265 | ac_help="$ac_help | |
266 | --enable-constraints use layout-constraints system" | |
267 | ac_help="$ac_help | |
268 | --enable-printarch use printing architecture" | |
269 | ac_help="$ac_help | |
270 | --enable-mdi use multiple document interface architecture" | |
271 | ac_help="$ac_help | |
272 | --enable-loggui use standard GUI logger" | |
273 | ac_help="$ac_help | |
274 | --enable-logwin use wxLogWindow" | |
275 | ac_help="$ac_help | |
276 | --enable-logdialog use wxLogDialog" | |
277 | ac_help="$ac_help | |
278 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
279 | ac_help="$ac_help | |
280 | --enable-prologio use Prolog IO library" | |
281 | ac_help="$ac_help | |
282 | --enable-resources use wxWindows resources" | |
283 | ac_help="$ac_help | |
284 | --enable-xresources use X resources for save (default for gtk+)" | |
285 | ac_help="$ac_help | |
286 | --enable-clipboard use wxClipboard classes" | |
287 | ac_help="$ac_help | |
288 | --enable-dnd use Drag'n'Drop classes" | |
289 | ac_help="$ac_help | |
290 | --enable-metafile use win32 metafiles" | |
291 | ac_help="$ac_help | |
292 | --enable-treelayout use wxTreeLayout classes" | |
293 | ac_help="$ac_help | |
294 | --enable-controls use all usual controls" | |
295 | ac_help="$ac_help | |
296 | --enable-accel use accelerators" | |
297 | ac_help="$ac_help | |
298 | --enable-button use wxButton class" | |
299 | ac_help="$ac_help | |
300 | --enable-bmpbutton use wxBitmapButton class" | |
301 | ac_help="$ac_help | |
302 | --enable-calendar use wxCalendarCtrl class" | |
303 | ac_help="$ac_help | |
304 | --enable-caret use wxCaret class" | |
305 | ac_help="$ac_help | |
306 | --enable-checkbox use wxCheckBox class" | |
307 | ac_help="$ac_help | |
308 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
309 | ac_help="$ac_help | |
310 | --enable-choice use wxChoice class" | |
311 | ac_help="$ac_help | |
312 | --enable-combobox use wxComboBox classes" | |
313 | ac_help="$ac_help | |
314 | --enable-gauge use wxGauge class" | |
315 | ac_help="$ac_help | |
316 | --enable-grid use wxGrid class" | |
317 | ac_help="$ac_help | |
318 | --enable-newgrid use new wxGrid class" | |
319 | ac_help="$ac_help | |
320 | --enable-imaglist use wxImageList class" | |
321 | ac_help="$ac_help | |
322 | --enable-listbox use wxListBox class" | |
323 | ac_help="$ac_help | |
324 | --enable-listctrl use wxListCtrl class" | |
325 | ac_help="$ac_help | |
326 | --enable-notebook use wxNotebook class" | |
327 | ac_help="$ac_help | |
328 | --enable-propsheet use wxPropertySheet class" | |
329 | ac_help="$ac_help | |
330 | --enable-radiobox use wxRadioBox class" | |
331 | ac_help="$ac_help | |
332 | --enable-radiobtn use wxRadioButton class" | |
333 | ac_help="$ac_help | |
334 | --enable-sash use wxSashWindow class" | |
335 | ac_help="$ac_help | |
336 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
337 | ac_help="$ac_help | |
338 | --enable-slider use wxSlider class" | |
339 | ac_help="$ac_help | |
340 | --enable-spinbtn use wxSpinButton class" | |
341 | ac_help="$ac_help | |
342 | --enable-spinctrl use wxSpinCtrl class" | |
343 | ac_help="$ac_help | |
344 | --enable-splitter use wxSplitterWindow class" | |
345 | ac_help="$ac_help | |
346 | --enable-statbmp use wxStaticBitmap class" | |
347 | ac_help="$ac_help | |
348 | --enable-statbox use wxStaticBox class" | |
349 | ac_help="$ac_help | |
350 | --enable-statline use wxStaticLine class" | |
351 | ac_help="$ac_help | |
352 | --enable-stattext use wxStaticText class" | |
353 | ac_help="$ac_help | |
354 | --enable-statusbar use wxStatusBar class" | |
355 | ac_help="$ac_help | |
356 | --enable-tabdialog use wxTabControl class" | |
357 | ac_help="$ac_help | |
358 | --enable-textctrl use wxTextCtrl class" | |
359 | ac_help="$ac_help | |
360 | --enable-togglebtn use wxToggleButton class" | |
361 | ac_help="$ac_help | |
362 | --enable-toolbar use wxToolBar class" | |
363 | ac_help="$ac_help | |
364 | --enable-tbarnative use native wxToolBar class" | |
365 | ac_help="$ac_help | |
366 | --enable-tbarsmpl use wxToolBarSimple class" | |
367 | ac_help="$ac_help | |
368 | --enable-treectrl use wxTreeCtrl class" | |
369 | ac_help="$ac_help | |
370 | --enable-tipwindow use wxTipWindow class" | |
371 | ac_help="$ac_help | |
372 | --enable-popupwin use wxPopUpWindow class" | |
373 | ac_help="$ac_help | |
374 | --enable-commondlg use all common dialogs" | |
375 | ac_help="$ac_help | |
376 | --enable-choicedlg use wxChoiceDialog" | |
377 | ac_help="$ac_help | |
378 | --enable-coldlg use wxColourDialog" | |
379 | ac_help="$ac_help | |
380 | --enable-filedlg use wxFileDialog" | |
381 | ac_help="$ac_help | |
382 | --enable-finddlg use wxFindReplaceDialog" | |
383 | ac_help="$ac_help | |
384 | --enable-fontdlg use wxFontDialog" | |
385 | ac_help="$ac_help | |
386 | --enable-dirdlg use wxDirDialog" | |
387 | ac_help="$ac_help | |
388 | --enable-msgdlg use wxMessageDialog" | |
389 | ac_help="$ac_help | |
390 | --enable-numberdlg use wxNumberEntryDialog" | |
391 | ac_help="$ac_help | |
392 | --enable-splash use wxSplashScreen" | |
393 | ac_help="$ac_help | |
394 | --enable-textdlg use wxTextDialog" | |
395 | ac_help="$ac_help | |
396 | --enable-tipdlg use startup tips" | |
397 | ac_help="$ac_help | |
398 | --enable-progressdlg use wxProgressDialog" | |
399 | ac_help="$ac_help | |
400 | --enable-wizarddlg use wxWizard" | |
401 | ac_help="$ac_help | |
402 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" | |
403 | ac_help="$ac_help | |
404 | --enable-miniframe use wxMiniFrame class" | |
405 | ac_help="$ac_help | |
406 | --enable-tooltips use wxToolTip class" | |
407 | ac_help="$ac_help | |
408 | --enable-splines use spline drawing code" | |
409 | ac_help="$ac_help | |
410 | --enable-validators use wxValidator and derived classes" | |
411 | ac_help="$ac_help | |
412 | --enable-busyinfo use wxBusyInfo" | |
413 | ac_help="$ac_help | |
414 | --enable-joystick use wxJoystick (Linux only)" | |
415 | ac_help="$ac_help | |
416 | --enable-metafiles use wxMetaFile (Windows only)" | |
417 | ac_help="$ac_help | |
418 | --enable-dragimage use wxDragImage" | |
419 | ac_help="$ac_help | |
420 | --enable-palette use wxPalette class" | |
421 | ac_help="$ac_help | |
422 | --enable-image use wxImage class" | |
423 | ac_help="$ac_help | |
424 | --enable-gif use gif images (GIF file format)" | |
425 | ac_help="$ac_help | |
426 | --enable-pcx use pcx images (PCX file format)" | |
427 | ac_help="$ac_help | |
428 | --enable-iff use iff images (IFF file format)" | |
429 | ac_help="$ac_help | |
430 | --enable-pnm use pnm images (PNM file format)" | |
431 | ac_help="$ac_help | |
432 | --enable-xpm use xpm images (XPM file format)" | |
433 | ac_help="$ac_help | |
434 | --enable-icocur use Windows ICO and CUR formats" | |
435 | ac_help="$ac_help | |
436 | --disable-largefile omit support for large files" | |
437 | ac_help="$ac_help | |
438 | --disable-gtktest do not try to compile and run a test GTK+ program" | |
439 | ac_help="$ac_help | |
440 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
441 | ac_help="$ac_help | |
442 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
443 | ac_help="$ac_help | |
444 | --disable-gtktest Do not try to compile and run a test GTK program" | |
445 | ac_help="$ac_help | |
446 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
447 | ac_help="$ac_help | |
448 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
449 | ac_help="$ac_help | |
450 | --disable-gtktest Do not try to compile and run a test GTK program" | |
451 | ac_help="$ac_help | |
452 | --with-x use the X Window System" | |
453 | ac_help="$ac_help | |
454 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
455 | |
456 | # Initialize some variables set by options. | |
457 | # The variables have the same names as the options, with | |
458 | # dashes changed to underlines. | |
a0b9e27f MB |
459 | build=NONE |
460 | cache_file=./config.cache | |
10f2d63a | 461 | exec_prefix=NONE |
a0b9e27f | 462 | host=NONE |
10f2d63a | 463 | no_create= |
a0b9e27f | 464 | nonopt=NONE |
10f2d63a VZ |
465 | no_recursion= |
466 | prefix=NONE | |
467 | program_prefix=NONE | |
468 | program_suffix=NONE | |
469 | program_transform_name=s,x,x, | |
470 | silent= | |
471 | site= | |
472 | srcdir= | |
a0b9e27f | 473 | target=NONE |
10f2d63a VZ |
474 | verbose= |
475 | x_includes=NONE | |
476 | x_libraries=NONE | |
477 | bindir='${exec_prefix}/bin' | |
478 | sbindir='${exec_prefix}/sbin' | |
479 | libexecdir='${exec_prefix}/libexec' | |
480 | datadir='${prefix}/share' | |
481 | sysconfdir='${prefix}/etc' | |
482 | sharedstatedir='${prefix}/com' | |
483 | localstatedir='${prefix}/var' | |
484 | libdir='${exec_prefix}/lib' | |
485 | includedir='${prefix}/include' | |
486 | oldincludedir='/usr/include' | |
487 | infodir='${prefix}/info' | |
488 | mandir='${prefix}/man' | |
489 | ||
a0b9e27f MB |
490 | # Initialize some other variables. |
491 | subdirs= | |
492 | MFLAGS= MAKEFLAGS= | |
493 | SHELL=${CONFIG_SHELL-/bin/sh} | |
494 | # Maximum number of lines to put in a shell here document. | |
495 | ac_max_here_lines=12 | |
496 | ||
10f2d63a VZ |
497 | ac_prev= |
498 | for ac_option | |
499 | do | |
a0b9e27f | 500 | |
10f2d63a VZ |
501 | # If the previous option needs an argument, assign it. |
502 | if test -n "$ac_prev"; then | |
503 | eval "$ac_prev=\$ac_option" | |
504 | ac_prev= | |
505 | continue | |
506 | fi | |
507 | ||
a0b9e27f MB |
508 | case "$ac_option" in |
509 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
510 | *) ac_optarg= ;; | |
511 | esac | |
10f2d63a VZ |
512 | |
513 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
514 | ||
a0b9e27f | 515 | case "$ac_option" in |
10f2d63a VZ |
516 | |
517 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
518 | ac_prev=bindir ;; | |
519 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
a0b9e27f | 520 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
521 | |
522 | -build | --build | --buil | --bui | --bu) | |
a0b9e27f | 523 | ac_prev=build ;; |
10f2d63a | 524 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
a0b9e27f | 525 | build="$ac_optarg" ;; |
10f2d63a VZ |
526 | |
527 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
528 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
529 | ac_prev=cache_file ;; | |
530 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
531 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
a0b9e27f | 532 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
533 | |
534 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
535 | ac_prev=datadir ;; | |
536 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
537 | | --da=*) | |
a0b9e27f | 538 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
539 | |
540 | -disable-* | --disable-*) | |
a0b9e27f | 541 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 542 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
543 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
544 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
545 | fi | |
546 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
547 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
548 | |
549 | -enable-* | --enable-*) | |
a0b9e27f | 550 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 551 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
552 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
553 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
554 | fi | |
555 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
556 | case "$ac_option" in | |
557 | *=*) ;; | |
10f2d63a VZ |
558 | *) ac_optarg=yes ;; |
559 | esac | |
a0b9e27f | 560 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
561 | |
562 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
563 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
564 | | --exec | --exe | --ex) | |
565 | ac_prev=exec_prefix ;; | |
566 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
567 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
568 | | --exec=* | --exe=* | --ex=*) | |
a0b9e27f | 569 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
570 | |
571 | -gas | --gas | --ga | --g) | |
572 | # Obsolete; use --with-gas. | |
573 | with_gas=yes ;; | |
574 | ||
a0b9e27f MB |
575 | -help | --help | --hel | --he) |
576 | # Omit some internal or obsolete options to make the list less imposing. | |
577 | # This message is too long to be a string in the A/UX 3.1 sh. | |
578 | cat << EOF | |
579 | Usage: configure [options] [host] | |
580 | Options: [defaults in brackets after descriptions] | |
581 | Configuration: | |
582 | --cache-file=FILE cache test results in FILE | |
583 | --help print this message | |
584 | --no-create do not create output files | |
585 | --quiet, --silent do not print \`checking...' messages | |
586 | --version print the version of autoconf that created configure | |
587 | Directory and file names: | |
588 | --prefix=PREFIX install architecture-independent files in PREFIX | |
589 | [$ac_default_prefix] | |
590 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
591 | [same as prefix] | |
592 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
593 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
594 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
595 | --datadir=DIR read-only architecture-independent data in DIR | |
596 | [PREFIX/share] | |
597 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
598 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
599 | [PREFIX/com] | |
600 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
601 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
602 | --includedir=DIR C header files in DIR [PREFIX/include] | |
603 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
604 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
605 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
606 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
607 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
608 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
609 | --program-transform-name=PROGRAM | |
610 | run sed PROGRAM on installed program names | |
611 | EOF | |
612 | cat << EOF | |
613 | Host type: | |
614 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
615 | --host=HOST configure for HOST [guessed] | |
616 | --target=TARGET configure for TARGET [TARGET=HOST] | |
617 | Features and packages: | |
618 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
619 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
620 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
621 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
622 | --x-includes=DIR X include files are in DIR | |
623 | --x-libraries=DIR X library files are in DIR | |
624 | EOF | |
625 | if test -n "$ac_help"; then | |
626 | echo "--enable and --with options recognized:$ac_help" | |
627 | fi | |
628 | exit 0 ;; | |
10f2d63a VZ |
629 | |
630 | -host | --host | --hos | --ho) | |
a0b9e27f | 631 | ac_prev=host ;; |
10f2d63a | 632 | -host=* | --host=* | --hos=* | --ho=*) |
a0b9e27f | 633 | host="$ac_optarg" ;; |
10f2d63a VZ |
634 | |
635 | -includedir | --includedir | --includedi | --included | --include \ | |
636 | | --includ | --inclu | --incl | --inc) | |
637 | ac_prev=includedir ;; | |
638 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
639 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
a0b9e27f | 640 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
641 | |
642 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
643 | ac_prev=infodir ;; | |
644 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
a0b9e27f | 645 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
646 | |
647 | -libdir | --libdir | --libdi | --libd) | |
648 | ac_prev=libdir ;; | |
649 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
a0b9e27f | 650 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
651 | |
652 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
653 | | --libexe | --libex | --libe) | |
654 | ac_prev=libexecdir ;; | |
655 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
656 | | --libexe=* | --libex=* | --libe=*) | |
a0b9e27f | 657 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
658 | |
659 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
660 | | --localstate | --localstat | --localsta | --localst \ | |
661 | | --locals | --local | --loca | --loc | --lo) | |
662 | ac_prev=localstatedir ;; | |
663 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
664 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
665 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
a0b9e27f | 666 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
667 | |
668 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
669 | ac_prev=mandir ;; | |
670 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
a0b9e27f | 671 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
672 | |
673 | -nfp | --nfp | --nf) | |
674 | # Obsolete; use --without-fp. | |
675 | with_fp=no ;; | |
676 | ||
677 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
a0b9e27f | 678 | | --no-cr | --no-c) |
10f2d63a VZ |
679 | no_create=yes ;; |
680 | ||
681 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
682 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
683 | no_recursion=yes ;; | |
684 | ||
685 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
686 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
687 | | --oldin | --oldi | --old | --ol | --o) | |
688 | ac_prev=oldincludedir ;; | |
689 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
690 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
691 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
a0b9e27f | 692 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
693 | |
694 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
695 | ac_prev=prefix ;; | |
696 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
a0b9e27f | 697 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
698 | |
699 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
700 | | --program-pre | --program-pr | --program-p) | |
701 | ac_prev=program_prefix ;; | |
702 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
703 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
a0b9e27f | 704 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
705 | |
706 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
707 | | --program-suf | --program-su | --program-s) | |
708 | ac_prev=program_suffix ;; | |
709 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
710 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
a0b9e27f | 711 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
712 | |
713 | -program-transform-name | --program-transform-name \ | |
714 | | --program-transform-nam | --program-transform-na \ | |
715 | | --program-transform-n | --program-transform- \ | |
716 | | --program-transform | --program-transfor \ | |
717 | | --program-transfo | --program-transf \ | |
718 | | --program-trans | --program-tran \ | |
719 | | --progr-tra | --program-tr | --program-t) | |
720 | ac_prev=program_transform_name ;; | |
721 | -program-transform-name=* | --program-transform-name=* \ | |
722 | | --program-transform-nam=* | --program-transform-na=* \ | |
723 | | --program-transform-n=* | --program-transform-=* \ | |
724 | | --program-transform=* | --program-transfor=* \ | |
725 | | --program-transfo=* | --program-transf=* \ | |
726 | | --program-trans=* | --program-tran=* \ | |
727 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
a0b9e27f | 728 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
729 | |
730 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
731 | | -silent | --silent | --silen | --sile | --sil) | |
732 | silent=yes ;; | |
733 | ||
734 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
735 | ac_prev=sbindir ;; | |
736 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
737 | | --sbi=* | --sb=*) | |
a0b9e27f | 738 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
739 | |
740 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
741 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
742 | | --sharedst | --shareds | --shared | --share | --shar \ | |
743 | | --sha | --sh) | |
744 | ac_prev=sharedstatedir ;; | |
745 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
746 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
747 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
748 | | --sha=* | --sh=*) | |
a0b9e27f | 749 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
750 | |
751 | -site | --site | --sit) | |
752 | ac_prev=site ;; | |
753 | -site=* | --site=* | --sit=*) | |
a0b9e27f | 754 | site="$ac_optarg" ;; |
10f2d63a VZ |
755 | |
756 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
757 | ac_prev=srcdir ;; | |
758 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
a0b9e27f | 759 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
760 | |
761 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
762 | | --syscon | --sysco | --sysc | --sys | --sy) | |
763 | ac_prev=sysconfdir ;; | |
764 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
765 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
a0b9e27f | 766 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
767 | |
768 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
a0b9e27f | 769 | ac_prev=target ;; |
10f2d63a | 770 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
a0b9e27f | 771 | target="$ac_optarg" ;; |
10f2d63a VZ |
772 | |
773 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
774 | verbose=yes ;; | |
775 | ||
a0b9e27f MB |
776 | -version | --version | --versio | --versi | --vers) |
777 | echo "configure generated by autoconf version 2.13" | |
778 | exit 0 ;; | |
10f2d63a VZ |
779 | |
780 | -with-* | --with-*) | |
a0b9e27f | 781 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 782 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
783 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
784 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
785 | fi | |
10f2d63a | 786 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
a0b9e27f MB |
787 | case "$ac_option" in |
788 | *=*) ;; | |
10f2d63a VZ |
789 | *) ac_optarg=yes ;; |
790 | esac | |
a0b9e27f | 791 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
792 | |
793 | -without-* | --without-*) | |
a0b9e27f | 794 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 795 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
796 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
797 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
798 | fi | |
799 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
800 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
801 | |
802 | --x) | |
803 | # Obsolete; use --with-x. | |
804 | with_x=yes ;; | |
805 | ||
806 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
807 | | --x-incl | --x-inc | --x-in | --x-i) | |
808 | ac_prev=x_includes ;; | |
809 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
810 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
a0b9e27f | 811 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
812 | |
813 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
814 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
815 | ac_prev=x_libraries ;; | |
816 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
817 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
a0b9e27f | 818 | x_libraries="$ac_optarg" ;; |
10f2d63a | 819 | |
a0b9e27f | 820 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
821 | ;; |
822 | ||
823 | *) | |
a0b9e27f MB |
824 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
825 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
826 | fi | |
827 | if test "x$nonopt" != xNONE; then | |
828 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
829 | fi | |
830 | nonopt="$ac_option" | |
10f2d63a VZ |
831 | ;; |
832 | ||
833 | esac | |
834 | done | |
835 | ||
836 | if test -n "$ac_prev"; then | |
a0b9e27f | 837 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
8284b0c5 | 838 | fi |
8284b0c5 | 839 | |
a0b9e27f MB |
840 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
841 | ||
842 | # File descriptor usage: | |
843 | # 0 standard input | |
844 | # 1 file creation | |
845 | # 2 errors and warnings | |
846 | # 3 some systems may open it to /dev/tty | |
847 | # 4 used on the Kubota Titan | |
848 | # 6 checking for... messages and results | |
849 | # 5 compiler messages saved in config.log | |
850 | if test "$silent" = yes; then | |
851 | exec 6>/dev/null | |
852 | else | |
853 | exec 6>&1 | |
854 | fi | |
855 | exec 5>./config.log | |
856 | ||
857 | echo "\ | |
858 | This file contains any messages produced by compilers while | |
859 | running configure, to aid debugging if configure makes a mistake. | |
860 | " 1>&5 | |
8284b0c5 | 861 | |
a0b9e27f MB |
862 | # Strip out --no-create and --no-recursion so they do not pile up. |
863 | # Also quote any args containing shell metacharacters. | |
864 | ac_configure_args= | |
865 | for ac_arg | |
10f2d63a | 866 | do |
a0b9e27f MB |
867 | case "$ac_arg" in |
868 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
869 | | --no-cr | --no-c) ;; | |
870 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
871 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
872 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
873 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
874 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
875 | esac |
876 | done | |
877 | ||
a0b9e27f MB |
878 | # NLS nuisances. |
879 | # Only set these to C if already set. These must not be set unconditionally | |
880 | # because not all systems understand e.g. LANG=C (notably SCO). | |
881 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
882 | # Non-C LC_CTYPE values break the ctype check. | |
883 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
884 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
885 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
886 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
247f5006 | 887 | |
a0b9e27f MB |
888 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
889 | rm -rf conftest* confdefs.h | |
890 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
891 | echo > confdefs.h | |
10f2d63a | 892 | |
a0b9e27f MB |
893 | # A filename unique to this package, relative to the directory that |
894 | # configure is in, which we can look for to find out if srcdir is correct. | |
895 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
896 | |
897 | # Find the source files, if location was not specified. | |
898 | if test -z "$srcdir"; then | |
899 | ac_srcdir_defaulted=yes | |
900 | # Try the directory containing this script, then its parent. | |
a0b9e27f MB |
901 | ac_prog=$0 |
902 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
903 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
10f2d63a VZ |
904 | srcdir=$ac_confdir |
905 | if test ! -r $srcdir/$ac_unique_file; then | |
906 | srcdir=.. | |
907 | fi | |
908 | else | |
909 | ac_srcdir_defaulted=no | |
910 | fi | |
911 | if test ! -r $srcdir/$ac_unique_file; then | |
912 | if test "$ac_srcdir_defaulted" = yes; then | |
a0b9e27f | 913 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 914 | else |
a0b9e27f | 915 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
916 | fi |
917 | fi | |
a0b9e27f | 918 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
328a083c | 919 | |
10f2d63a VZ |
920 | # Prefer explicitly selected file to automatically selected ones. |
921 | if test -z "$CONFIG_SITE"; then | |
922 | if test "x$prefix" != xNONE; then | |
923 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
924 | else | |
925 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
926 | fi | |
927 | fi | |
928 | for ac_site_file in $CONFIG_SITE; do | |
929 | if test -r "$ac_site_file"; then | |
a0b9e27f | 930 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
931 | . "$ac_site_file" |
932 | fi | |
933 | done | |
934 | ||
935 | if test -r "$cache_file"; then | |
a0b9e27f MB |
936 | echo "loading cache $cache_file" |
937 | . $cache_file | |
10f2d63a | 938 | else |
a0b9e27f MB |
939 | echo "creating cache $cache_file" |
940 | > $cache_file | |
10f2d63a VZ |
941 | fi |
942 | ||
943 | ac_ext=c | |
a0b9e27f | 944 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 945 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
946 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
947 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
948 | cross_compiling=$ac_cv_prog_cc_cross | |
949 | ||
950 | ac_exeext= | |
951 | ac_objext=o | |
952 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
953 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
954 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
955 | ac_n= ac_c=' | |
956 | ' ac_t=' ' | |
957 | else | |
958 | ac_n=-n ac_c= ac_t= | |
959 | fi | |
960 | else | |
961 | ac_n= ac_c='\c' ac_t= | |
962 | fi | |
8284b0c5 MB |
963 | |
964 | ||
10f2d63a | 965 | |
7c66a493 VZ |
966 | ac_aux_dir= |
967 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
968 | if test -f $ac_dir/install-sh; then | |
969 | ac_aux_dir=$ac_dir | |
970 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
971 | break | |
972 | elif test -f $ac_dir/install.sh; then | |
973 | ac_aux_dir=$ac_dir | |
974 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
975 | break | |
247f5006 | 976 | fi |
7c66a493 VZ |
977 | done |
978 | if test -z "$ac_aux_dir"; then | |
a0b9e27f | 979 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 980 | fi |
a0b9e27f MB |
981 | ac_config_guess=$ac_aux_dir/config.guess |
982 | ac_config_sub=$ac_aux_dir/config.sub | |
983 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
698dcdb6 | 984 | |
8284b0c5 | 985 | |
a0b9e27f MB |
986 | # Do some error checking and defaulting for the host and target type. |
987 | # The inputs are: | |
988 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
989 | # | |
990 | # The rules are: | |
991 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
992 | # same time. | |
993 | # 2. Host defaults to nonopt. | |
994 | # 3. If nonopt is not specified, then host defaults to the current host, | |
995 | # as determined by config.guess. | |
996 | # 4. Target and build default to nonopt. | |
997 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
998 | |
999 | # The aliases save the names the user supplied, while $host etc. | |
1000 | # will get canonicalized. | |
a0b9e27f MB |
1001 | case $host---$target---$nonopt in |
1002 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
1003 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
1004 | esac | |
1005 | ||
1006 | ||
1007 | # Make sure we can run config.sub. | |
1008 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1009 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1010 | fi | |
1011 | ||
1012 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
1013 | echo "configure:1014: checking host system type" >&5 | |
1014 | ||
1015 | host_alias=$host | |
1016 | case "$host_alias" in | |
1017 | NONE) | |
1018 | case $nonopt in | |
1019 | NONE) | |
1020 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1021 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1022 | fi ;; | |
1023 | *) host_alias=$nonopt ;; | |
1024 | esac ;; | |
1025 | esac | |
1026 | ||
1027 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1028 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1029 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1030 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1031 | echo "$ac_t""$host" 1>&6 | |
1032 | ||
1033 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
1034 | echo "configure:1035: checking target system type" >&5 | |
1035 | ||
1036 | target_alias=$target | |
1037 | case "$target_alias" in | |
1038 | NONE) | |
1039 | case $nonopt in | |
1040 | NONE) target_alias=$host_alias ;; | |
1041 | *) target_alias=$nonopt ;; | |
1042 | esac ;; | |
1043 | esac | |
1044 | ||
1045 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1046 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1047 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1048 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1049 | echo "$ac_t""$target" 1>&6 | |
1050 | ||
1051 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
1052 | echo "configure:1053: checking build system type" >&5 | |
1053 | ||
1054 | build_alias=$build | |
1055 | case "$build_alias" in | |
1056 | NONE) | |
1057 | case $nonopt in | |
1058 | NONE) build_alias=$host_alias ;; | |
1059 | *) build_alias=$nonopt ;; | |
1060 | esac ;; | |
1061 | esac | |
1062 | ||
1063 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1064 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1065 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1066 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1067 | echo "$ac_t""$build" 1>&6 | |
1068 | ||
1069 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1070 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1071 | NONENONEs,x,x, && | |
1072 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1073 | |
1074 | ||
a0b9e27f | 1075 | |
10f2d63a | 1076 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1077 | WX_MINOR_VERSION_NUMBER=3 |
a0d927d1 | 1078 | WX_RELEASE_NUMBER=3 |
10f2d63a | 1079 | |
10f2d63a | 1080 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1081 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1082 | |
978f1259 RL |
1083 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1084 | ||
a0d927d1 | 1085 | WX_CURRENT=2 |
6426998c RL |
1086 | WX_REVISION=0 |
1087 | WX_AGE=0 | |
1088 | ||
8284b0c5 MB |
1089 | |
1090 | ||
10f2d63a VZ |
1091 | USE_UNIX=1 |
1092 | USE_WIN32=0 | |
f9bc1684 | 1093 | USE_DOS=0 |
b12915c1 | 1094 | USE_BEOS=0 |
1216f52d | 1095 | USE_MAC=0 |
b12915c1 | 1096 | |
10f2d63a VZ |
1097 | USE_LINUX= |
1098 | USE_SGI= | |
1099 | USE_HPUX= | |
1100 | USE_SYSV= | |
1101 | USE_SVR4= | |
1102 | USE_AIX= | |
1103 | USE_SUN= | |
1104 | USE_SOLARIS= | |
1105 | USE_SUNOS= | |
1106 | USE_ALPHA= | |
1107 | USE_OSF= | |
1108 | USE_BSD= | |
f11bdd03 | 1109 | USE_DARWIN= |
10f2d63a | 1110 | USE_FREEBSD= |
95c8801c | 1111 | USE_OPENBSD= |
f6bcfd97 | 1112 | USE_NETBSD= |
10f2d63a VZ |
1113 | USE_VMS= |
1114 | USE_ULTRIX= | |
10f2d63a VZ |
1115 | USE_DATA_GENERAL= |
1116 | ||
ab9b9eab VZ |
1117 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1118 | ||
f79bd02d | 1119 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11" |
10f2d63a VZ |
1120 | |
1121 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1122 | DEFAULT_wxUSE_MAC=0 |
1123 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1124 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1125 | DEFAULT_wxUSE_MOTIF=0 |
1126 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1127 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1128 | DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1129 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1130 | |
1131 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1132 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1133 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1134 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1135 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1136 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1137 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1138 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1139 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1140 | |
d6a55c4b | 1141 | PROGRAM_EXT= |
3a922bb4 | 1142 | SO_SUFFIX=so |
d6a55c4b | 1143 | |
10f2d63a VZ |
1144 | case "${host}" in |
1145 | *-hp-hpux* ) | |
1146 | USE_HPUX=1 | |
1147 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1148 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1149 | SO_SUFFIX=sl |
a0b9e27f | 1150 | cat >> confdefs.h <<\EOF |
10f2d63a | 1151 | #define __HPUX__ 1 |
a0b9e27f | 1152 | EOF |
10f2d63a VZ |
1153 | |
1154 | ;; | |
1155 | *-*-linux* ) | |
1156 | USE_LINUX=1 | |
a0b9e27f | 1157 | cat >> confdefs.h <<\EOF |
10f2d63a | 1158 | #define __LINUX__ 1 |
a0b9e27f | 1159 | EOF |
10f2d63a VZ |
1160 | |
1161 | TMP=`uname -m` | |
1162 | if test "x$TMP" = "xalpha"; then | |
1163 | USE_ALPHA=1 | |
a0b9e27f | 1164 | cat >> confdefs.h <<\EOF |
10f2d63a | 1165 | #define __ALPHA__ 1 |
a0b9e27f | 1166 | EOF |
10f2d63a VZ |
1167 | |
1168 | fi | |
1169 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1170 | ;; | |
1171 | *-*-irix5* | *-*-irix6* ) | |
1172 | USE_SGI=1 | |
1173 | USE_SVR4=1 | |
a0b9e27f | 1174 | cat >> confdefs.h <<\EOF |
10f2d63a | 1175 | #define __SGI__ 1 |
a0b9e27f | 1176 | EOF |
10f2d63a | 1177 | |
a0b9e27f | 1178 | cat >> confdefs.h <<\EOF |
10f2d63a | 1179 | #define __SVR4__ 1 |
a0b9e27f | 1180 | EOF |
10f2d63a VZ |
1181 | |
1182 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1183 | ;; | |
1184 | *-*-solaris2* ) | |
1185 | USE_SUN=1 | |
1186 | USE_SOLARIS=1 | |
1187 | USE_SVR4=1 | |
a0b9e27f | 1188 | cat >> confdefs.h <<\EOF |
10f2d63a | 1189 | #define __SUN__ 1 |
a0b9e27f | 1190 | EOF |
10f2d63a | 1191 | |
a0b9e27f | 1192 | cat >> confdefs.h <<\EOF |
10f2d63a | 1193 | #define __SOLARIS__ 1 |
a0b9e27f | 1194 | EOF |
10f2d63a | 1195 | |
a0b9e27f | 1196 | cat >> confdefs.h <<\EOF |
10f2d63a | 1197 | #define __SVR4__ 1 |
a0b9e27f | 1198 | EOF |
10f2d63a VZ |
1199 | |
1200 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1201 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1202 | ;; |
1203 | *-*-sunos4* ) | |
1204 | USE_SUN=1 | |
1205 | USE_SUNOS=1 | |
1206 | USE_BSD=1 | |
a0b9e27f | 1207 | cat >> confdefs.h <<\EOF |
10f2d63a | 1208 | #define __SUN__ 1 |
a0b9e27f | 1209 | EOF |
10f2d63a | 1210 | |
a0b9e27f | 1211 | cat >> confdefs.h <<\EOF |
10f2d63a | 1212 | #define __SUNOS__ 1 |
a0b9e27f | 1213 | EOF |
10f2d63a | 1214 | |
a0b9e27f | 1215 | cat >> confdefs.h <<\EOF |
10f2d63a | 1216 | #define __BSD__ 1 |
a0b9e27f | 1217 | EOF |
10f2d63a VZ |
1218 | |
1219 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1220 | ;; | |
f6bcfd97 | 1221 | *-*-freebsd*) |
10f2d63a VZ |
1222 | USE_BSD=1 |
1223 | USE_FREEBSD=1 | |
a0b9e27f | 1224 | cat >> confdefs.h <<\EOF |
10f2d63a | 1225 | #define __FREEBSD__ 1 |
a0b9e27f | 1226 | EOF |
10f2d63a | 1227 | |
a0b9e27f | 1228 | cat >> confdefs.h <<\EOF |
10f2d63a | 1229 | #define __BSD__ 1 |
a0b9e27f | 1230 | EOF |
95c8801c VS |
1231 | |
1232 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1233 | ;; | |
1234 | *-*-openbsd*) | |
1235 | USE_BSD=1 | |
1236 | USE_OPENBSD=1 | |
a0b9e27f | 1237 | cat >> confdefs.h <<\EOF |
95c8801c | 1238 | #define __FREEBSD__ 1 |
a0b9e27f | 1239 | EOF |
95c8801c | 1240 | |
a0b9e27f | 1241 | cat >> confdefs.h <<\EOF |
95c8801c | 1242 | #define __OPENBSD__ 1 |
a0b9e27f | 1243 | EOF |
f6bcfd97 BP |
1244 | |
1245 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1246 | ;; | |
1247 | *-*-netbsd*) | |
1248 | USE_BSD=1 | |
1249 | USE_NETBSD=1 | |
a0b9e27f | 1250 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1251 | #define __FREEBSD__ 1 |
a0b9e27f | 1252 | EOF |
f6bcfd97 | 1253 | |
a0b9e27f | 1254 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1255 | #define __NETBSD__ 1 |
a0b9e27f | 1256 | EOF |
10f2d63a VZ |
1257 | |
1258 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1259 | ;; | |
1260 | *-*-osf* ) | |
1261 | USE_ALPHA=1 | |
1262 | USE_OSF=1 | |
a0b9e27f | 1263 | cat >> confdefs.h <<\EOF |
10f2d63a | 1264 | #define __ALPHA__ 1 |
a0b9e27f | 1265 | EOF |
10f2d63a | 1266 | |
a0b9e27f | 1267 | cat >> confdefs.h <<\EOF |
10f2d63a | 1268 | #define __OSF__ 1 |
a0b9e27f | 1269 | EOF |
10f2d63a VZ |
1270 | |
1271 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1272 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1273 | ;; |
1274 | *-*-dgux5* ) | |
1275 | USE_ALPHA=1 | |
1276 | USE_SVR4=1 | |
a0b9e27f | 1277 | cat >> confdefs.h <<\EOF |
10f2d63a | 1278 | #define __ALPHA__ 1 |
a0b9e27f | 1279 | EOF |
10f2d63a | 1280 | |
a0b9e27f | 1281 | cat >> confdefs.h <<\EOF |
10f2d63a | 1282 | #define __SVR4__ 1 |
a0b9e27f | 1283 | EOF |
10f2d63a VZ |
1284 | |
1285 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1286 | ;; | |
1287 | *-*-sysv5* ) | |
1288 | USE_SYSV=1 | |
1289 | USE_SVR4=1 | |
a0b9e27f | 1290 | cat >> confdefs.h <<\EOF |
10f2d63a | 1291 | #define __SYSV__ 1 |
a0b9e27f | 1292 | EOF |
10f2d63a | 1293 | |
a0b9e27f | 1294 | cat >> confdefs.h <<\EOF |
10f2d63a | 1295 | #define __SVR4__ 1 |
a0b9e27f | 1296 | EOF |
10f2d63a VZ |
1297 | |
1298 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1299 | ;; | |
1300 | *-*-aix* ) | |
1301 | USE_AIX=1 | |
1302 | USE_SYSV=1 | |
1303 | USE_SVR4=1 | |
321d2b14 | 1304 | SO_SUFFIX=a |
a0b9e27f | 1305 | cat >> confdefs.h <<\EOF |
10f2d63a | 1306 | #define __AIX__ 1 |
a0b9e27f | 1307 | EOF |
10f2d63a | 1308 | |
a0b9e27f | 1309 | cat >> confdefs.h <<\EOF |
10f2d63a | 1310 | #define __SYSV__ 1 |
a0b9e27f | 1311 | EOF |
10f2d63a | 1312 | |
a0b9e27f | 1313 | cat >> confdefs.h <<\EOF |
10f2d63a | 1314 | #define __SVR4__ 1 |
a0b9e27f | 1315 | EOF |
10f2d63a VZ |
1316 | |
1317 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1318 | ;; | |
1319 | ||
1c8183e2 | 1320 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1321 | SO_SUFFIX=dll |
cf27ef00 | 1322 | PROGRAM_EXT=".exe" |
7b7a7637 | 1323 | RESCOMP=windres |
10f2d63a VZ |
1324 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1325 | ;; | |
1326 | ||
f9bc1684 VS |
1327 | *-pc-msdosdjgpp ) |
1328 | USE_UNIX=0 | |
1329 | USE_DOS=1 | |
a0b9e27f | 1330 | cat >> confdefs.h <<\EOF |
f9bc1684 | 1331 | #define __DOS__ 1 |
a0b9e27f | 1332 | EOF |
f9bc1684 VS |
1333 | |
1334 | PROGRAM_EXT=".exe" | |
1335 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1336 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1337 | ;; |
1338 | ||
6fa882bd | 1339 | *-pc-os2_emx | *-pc-os2-emx ) |
a0b9e27f | 1340 | cat >> confdefs.h <<\EOF |
10f2d63a | 1341 | #define __EMX__ 1 |
a0b9e27f | 1342 | EOF |
10f2d63a | 1343 | |
cf27ef00 | 1344 | PROGRAM_EXT=".exe" |
e07802fc | 1345 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1346 | ;; |
1347 | ||
d08b457b GD |
1348 | powerpc-*-darwin* ) |
1349 | USE_BSD=1 | |
f11bdd03 | 1350 | USE_DARWIN=1 |
3a922bb4 | 1351 | SO_SUFFIX=dylib |
a0b9e27f | 1352 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1353 | #define __BSD__ 1 |
a0b9e27f | 1354 | EOF |
b4085ce6 | 1355 | |
a0b9e27f | 1356 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1357 | #define __DARWIN__ 1 |
a0b9e27f | 1358 | EOF |
d08b457b | 1359 | |
a0b9e27f | 1360 | cat >> confdefs.h <<\EOF |
d08b457b | 1361 | #define __POWERPC__ 1 |
a0b9e27f | 1362 | EOF |
b4085ce6 GD |
1363 | |
1364 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1365 | ;; | |
1366 | ||
b12915c1 VZ |
1367 | *-*-beos* ) |
1368 | USE_BEOS=1 | |
a0b9e27f | 1369 | cat >> confdefs.h <<\EOF |
b12915c1 | 1370 | #define __BEOS__ 1 |
a0b9e27f | 1371 | EOF |
b12915c1 VZ |
1372 | |
1373 | ;; | |
1374 | ||
10f2d63a | 1375 | *) |
a0b9e27f | 1376 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1377 | esac |
1378 | ||
8284b0c5 MB |
1379 | |
1380 | ||
1381 | ||
1382 | wx_arg_cache_file="configarg.cache" | |
1383 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1384 | rm -f ${wx_arg_cache_file}.tmp |
1385 | touch ${wx_arg_cache_file}.tmp | |
1386 | touch ${wx_arg_cache_file} | |
a0b9e27f | 1387 | |
10f2d63a VZ |
1388 | |
1389 | DEBUG_CONFIGURE=0 | |
1390 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1391 | DEFAULT_wxUSE_UNIVERSAL=no |
1392 | ||
d8356fa3 VZ |
1393 | DEFAULT_wxUSE_NANOX=no |
1394 | ||
10f2d63a VZ |
1395 | DEFAULT_wxUSE_THREADS=yes |
1396 | ||
1397 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1398 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1399 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1400 | DEFAULT_wxUSE_PROFILE=no |
1401 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1402 | DEFAULT_wxUSE_NO_RTTI=no |
1403 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1404 | DEFAULT_wxUSE_PERMISSIVE=no |
1405 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1406 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1407 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1408 | DEFAULT_wxUSE_MEM_TRACING=no | |
1409 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1410 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1411 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1412 | DEFAULT_wxUSE_APPLE_IEEE=no |
1413 | ||
1414 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1415 | DEFAULT_wxUSE_LOGWINDOW=no |
1416 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1417 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1418 | |
1419 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1420 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1421 | |
3e44f09d | 1422 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1423 | DEFAULT_wxUSE_ZLIB=no |
1424 | DEFAULT_wxUSE_LIBPNG=no | |
1425 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1426 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1427 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1428 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1429 | |
eb4efbdc | 1430 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1431 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1432 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1433 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1434 | DEFAULT_wxUSE_DATETIME=no | |
1435 | DEFAULT_wxUSE_TIMEDATE=no | |
1436 | DEFAULT_wxUSE_TIMER=no | |
1437 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1438 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1439 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1440 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1441 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1442 | DEFAULT_wxUSE_WAVE=no |
1443 | DEFAULT_wxUSE_INTL=no | |
1444 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1445 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1446 | DEFAULT_wxUSE_STREAMS=no |
1447 | DEFAULT_wxUSE_SOCKETS=no | |
1448 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
10f2d63a | 1449 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1450 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1451 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1452 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1453 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1454 | |
1455 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1456 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1457 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1458 | ||
1459 | DEFAULT_wxUSE_X_RESOURCES=no | |
1460 | DEFAULT_wxUSE_CLIPBOARD=no | |
1461 | DEFAULT_wxUSE_TOOLTIPS=no | |
1462 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1463 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1464 | DEFAULT_wxUSE_SPLINES=no |
1465 | ||
1466 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1467 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1468 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1469 | ||
1470 | DEFAULT_wxUSE_PROLOGIO=no | |
1471 | DEFAULT_wxUSE_RESOURCES=no | |
1472 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1473 | DEFAULT_wxUSE_IPC=no | |
1474 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1475 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1476 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1477 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1478 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1479 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1480 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1481 | DEFAULT_wxUSE_PROTOCOL=no | |
1482 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1483 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1484 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1485 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 1486 | |
10f2d63a | 1487 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1488 | DEFAULT_wxUSE_CHOICEDLG=no |
1489 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1490 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1491 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1492 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1493 | DEFAULT_wxUSE_FONTDLG=no |
1494 | DEFAULT_wxUSE_MSGDLG=no | |
1495 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1496 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1497 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1498 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1499 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1500 | DEFAULT_wxUSE_WIZARDDLG=no |
1501 | ||
1e6feb95 | 1502 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1503 | DEFAULT_wxUSE_MINIFRAME=no |
1504 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1505 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1506 | DEFAULT_wxUSE_FS_INET=no |
1507 | DEFAULT_wxUSE_FS_ZIP=no | |
1508 | DEFAULT_wxUSE_BUSYINFO=no | |
1509 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1510 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1511 | |
1512 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1513 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1514 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1515 | DEFAULT_wxUSE_CALCTRL=no |
1516 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1517 | DEFAULT_wxUSE_CHECKBOX=no |
1518 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1519 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1520 | DEFAULT_wxUSE_COMBOBOX=no |
1521 | DEFAULT_wxUSE_GAUGE=no | |
1522 | DEFAULT_wxUSE_GRID=no | |
1523 | DEFAULT_wxUSE_NEW_GRID=no | |
1524 | DEFAULT_wxUSE_IMAGLIST=no | |
1525 | DEFAULT_wxUSE_LISTBOX=no | |
1526 | DEFAULT_wxUSE_LISTCTRL=no | |
1527 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1528 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1529 | DEFAULT_wxUSE_RADIOBOX=no |
1530 | DEFAULT_wxUSE_RADIOBTN=no | |
1531 | DEFAULT_wxUSE_SASH=no | |
1532 | DEFAULT_wxUSE_SCROLLBAR=no | |
1533 | DEFAULT_wxUSE_SLIDER=no | |
1534 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1535 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1536 | DEFAULT_wxUSE_SPLITTER=no |
1537 | DEFAULT_wxUSE_STATBMP=no | |
1538 | DEFAULT_wxUSE_STATBOX=no | |
1539 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1540 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1541 | DEFAULT_wxUSE_STATUSBAR=yes |
1542 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1543 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1544 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1545 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1546 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1547 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1548 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1549 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1550 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1551 | |
1552 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1553 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1554 | DEFAULT_wxUSE_WCSRTOMBS=no |
1555 | ||
edae8572 | 1556 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1557 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1558 | DEFAULT_wxUSE_GIF=no |
1559 | DEFAULT_wxUSE_PCX=no | |
1560 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1561 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1562 | DEFAULT_wxUSE_XPM=no |
658974ae | 1563 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1564 | else |
1e6feb95 VZ |
1565 | DEFAULT_wxUSE_UNIVERSAL=no |
1566 | ||
d8356fa3 VZ |
1567 | DEFAULT_wxUSE_NANOX=no |
1568 | ||
10f2d63a VZ |
1569 | DEFAULT_wxUSE_THREADS=yes |
1570 | ||
1571 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1572 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1573 | DEFAULT_wxUSE_OPTIMISE=yes |
1574 | DEFAULT_wxUSE_PROFILE=no | |
1575 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1576 | DEFAULT_wxUSE_NO_RTTI=no |
1577 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1578 | DEFAULT_wxUSE_PERMISSIVE=no |
1579 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1580 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1581 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1582 | DEFAULT_wxUSE_MEM_TRACING=no | |
1583 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1584 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1585 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1586 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1587 | ||
1588 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1589 | DEFAULT_wxUSE_LOGWINDOW=yes |
1590 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1591 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1592 | |
1593 | DEFAULT_wxUSE_GUI=yes | |
1594 | ||
831b3152 | 1595 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1596 | DEFAULT_wxUSE_ZLIB=yes |
1597 | DEFAULT_wxUSE_LIBPNG=yes | |
1598 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1599 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1600 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1601 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1602 | |
eb4efbdc | 1603 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1604 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1605 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1606 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1607 | DEFAULT_wxUSE_DATETIME=yes | |
1608 | DEFAULT_wxUSE_TIMEDATE=no | |
1609 | DEFAULT_wxUSE_TIMER=yes | |
1610 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1611 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1612 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1613 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1614 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1615 | DEFAULT_wxUSE_WAVE=no |
1616 | DEFAULT_wxUSE_INTL=yes | |
1617 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1618 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1619 | DEFAULT_wxUSE_STREAMS=yes |
1620 | DEFAULT_wxUSE_SOCKETS=yes | |
1621 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
10f2d63a | 1622 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1623 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1624 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1625 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1626 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1627 | |
1628 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1629 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1630 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1631 | ||
1632 | DEFAULT_wxUSE_X_RESOURCES=no | |
1633 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1634 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1635 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1636 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1637 | DEFAULT_wxUSE_SPLINES=yes |
1638 | ||
1639 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1640 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1641 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1642 | ||
1643 | DEFAULT_wxUSE_PROLOGIO=yes | |
1644 | DEFAULT_wxUSE_RESOURCES=yes | |
1645 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1646 | DEFAULT_wxUSE_IPC=yes | |
1647 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1648 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1649 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1650 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1651 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1652 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1653 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1654 | DEFAULT_wxUSE_PROTOCOL=yes |
1655 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1656 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1657 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1658 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1659 | |
1660 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1661 | DEFAULT_wxUSE_CHOICEDLG=yes |
1662 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1663 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1664 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1665 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1666 | DEFAULT_wxUSE_FONTDLG=yes |
1667 | DEFAULT_wxUSE_MSGDLG=yes | |
1668 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1669 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1670 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1671 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1672 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1673 | DEFAULT_wxUSE_WIZARDDLG=yes |
1674 | ||
1e6feb95 | 1675 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1676 | DEFAULT_wxUSE_MINIFRAME=yes |
1677 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1678 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1679 | DEFAULT_wxUSE_FS_INET=yes |
1680 | DEFAULT_wxUSE_FS_ZIP=yes | |
1681 | DEFAULT_wxUSE_BUSYINFO=yes | |
1682 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1683 | DEFAULT_wxUSE_VALIDATORS=yes | |
1684 | ||
1685 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1686 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1687 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1688 | DEFAULT_wxUSE_CALCTRL=yes |
1689 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1690 | DEFAULT_wxUSE_CHECKBOX=yes |
1691 | DEFAULT_wxUSE_CHECKLST=yes | |
1692 | DEFAULT_wxUSE_CHOICE=yes | |
1693 | DEFAULT_wxUSE_COMBOBOX=yes | |
1694 | DEFAULT_wxUSE_GAUGE=yes | |
1695 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1696 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1697 | DEFAULT_wxUSE_IMAGLIST=yes |
1698 | DEFAULT_wxUSE_LISTBOX=yes | |
1699 | DEFAULT_wxUSE_LISTCTRL=yes | |
1700 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1701 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1702 | DEFAULT_wxUSE_RADIOBOX=yes |
1703 | DEFAULT_wxUSE_RADIOBTN=yes | |
1704 | DEFAULT_wxUSE_SASH=yes | |
1705 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1706 | DEFAULT_wxUSE_SLIDER=yes | |
1707 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1708 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1709 | DEFAULT_wxUSE_SPLITTER=yes |
1710 | DEFAULT_wxUSE_STATBMP=yes | |
1711 | DEFAULT_wxUSE_STATBOX=yes | |
1712 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1713 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1714 | DEFAULT_wxUSE_STATUSBAR=yes |
1715 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1716 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1717 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1718 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1719 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1720 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1721 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1722 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1723 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1724 | |
1725 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1726 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1727 | DEFAULT_wxUSE_WCSRTOMBS=no |
1728 | ||
edae8572 | 1729 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1730 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1731 | DEFAULT_wxUSE_GIF=yes |
1732 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1733 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1734 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1735 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1736 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1737 | fi |
1738 | ||
8284b0c5 MB |
1739 | |
1740 | ||
10f2d63a | 1741 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
1742 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
1743 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
1744 | has_toolkit_in_cache=1 |
1745 | eval "DEFAULT_$LINE" | |
1746 | eval "CACHE_$toolkit=1" | |
1747 | fi | |
1748 | done | |
1749 | ||
8284b0c5 MB |
1750 | |
1751 | ||
a0b9e27f | 1752 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 |
6969f178 | 1753 | echo "configure:1754: checking for --enable-gui" >&5 |
10f2d63a VZ |
1754 | no_cache=0 |
1755 | # Check whether --enable-gui or --disable-gui was given. | |
1756 | if test "${enable_gui+set}" = set; then | |
1757 | enableval="$enable_gui" | |
a0b9e27f | 1758 | |
10f2d63a VZ |
1759 | if test "$enableval" = yes; then |
1760 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1761 | else | |
1762 | ac_cv_use_gui='wxUSE_GUI=no' | |
1763 | fi | |
a0b9e27f | 1764 | |
10f2d63a | 1765 | else |
a0b9e27f | 1766 | |
10f2d63a VZ |
1767 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1768 | if test "x$LINE" != x ; then | |
1769 | eval "DEFAULT_$LINE" | |
1770 | else | |
1771 | no_cache=1 | |
1772 | fi | |
1773 | ||
1774 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
a0b9e27f MB |
1775 | |
1776 | fi | |
10f2d63a VZ |
1777 | |
1778 | ||
1779 | eval "$ac_cv_use_gui" | |
1780 | if test "$no_cache" != 1; then | |
1781 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1782 | fi | |
1783 | ||
1784 | if test "$wxUSE_GUI" = yes; then | |
a0b9e27f | 1785 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1786 | else |
a0b9e27f | 1787 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1788 | fi |
a0b9e27f | 1789 | |
10f2d63a | 1790 | |
b12915c1 | 1791 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1792 | |
8284b0c5 | 1793 | |
a0b9e27f | 1794 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 |
6969f178 | 1795 | echo "configure:1796: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1796 | no_cache=0 |
1797 | # Check whether --enable-universal or --disable-universal was given. | |
1798 | if test "${enable_universal+set}" = set; then | |
1799 | enableval="$enable_universal" | |
a0b9e27f | 1800 | |
1e6feb95 VZ |
1801 | if test "$enableval" = yes; then |
1802 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1803 | else | |
1804 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1805 | fi | |
a0b9e27f | 1806 | |
1e6feb95 | 1807 | else |
a0b9e27f | 1808 | |
1e6feb95 VZ |
1809 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
1810 | if test "x$LINE" != x ; then | |
1811 | eval "DEFAULT_$LINE" | |
1812 | else | |
1813 | no_cache=1 | |
1814 | fi | |
1815 | ||
1816 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
a0b9e27f MB |
1817 | |
1818 | fi | |
1e6feb95 VZ |
1819 | |
1820 | ||
1821 | eval "$ac_cv_use_universal" | |
1822 | if test "$no_cache" != 1; then | |
1823 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1824 | fi | |
1825 | ||
1826 | if test "$wxUSE_UNIVERSAL" = yes; then | |
a0b9e27f | 1827 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 1828 | else |
a0b9e27f | 1829 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 1830 | fi |
a0b9e27f | 1831 | |
10f2d63a VZ |
1832 | # Check whether --with-gtk or --without-gtk was given. |
1833 | if test "${with_gtk+set}" = set; then | |
1834 | withval="$with_gtk" | |
1835 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1836 | fi |
10f2d63a VZ |
1837 | |
1838 | # Check whether --with-motif or --without-motif was given. | |
1839 | if test "${with_motif+set}" = set; then | |
1840 | withval="$with_motif" | |
1841 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1842 | fi |
10f2d63a | 1843 | |
b4085ce6 GD |
1844 | # Check whether --with-mac or --without-mac was given. |
1845 | if test "${with_mac+set}" = set; then | |
1846 | withval="$with_mac" | |
1847 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
a0b9e27f | 1848 | fi |
b4085ce6 | 1849 | |
10f2d63a VZ |
1850 | # Check whether --with-wine or --without-wine was given. |
1851 | if test "${with_wine+set}" = set; then | |
1852 | withval="$with_wine" | |
1853 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1854 | fi |
10f2d63a | 1855 | |
77e13408 RL |
1856 | # Check whether --with-msw or --without-msw was given. |
1857 | if test "${with_msw+set}" = set; then | |
1858 | withval="$with_msw" | |
b4efce5e | 1859 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1860 | fi |
10f2d63a | 1861 | |
e07802fc VZ |
1862 | # Check whether --with-pm or --without-pm was given. |
1863 | if test "${with_pm+set}" = set; then | |
1864 | withval="$with_pm" | |
1865 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1866 | fi |
698dcdb6 | 1867 | |
1e6feb95 VZ |
1868 | # Check whether --with-mgl or --without-mgl was given. |
1869 | if test "${with_mgl+set}" = set; then | |
1870 | withval="$with_mgl" | |
6c657b52 | 1871 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1872 | fi |
1e6feb95 | 1873 | |
1725144d RR |
1874 | # Check whether --with-microwin or --without-microwin was given. |
1875 | if test "${with_microwin+set}" = set; then | |
1876 | withval="$with_microwin" | |
1877 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1878 | fi |
1725144d | 1879 | |
f79bd02d JS |
1880 | # Check whether --with-x11 or --without-x11 was given. |
1881 | if test "${with_x11+set}" = set; then | |
1882 | withval="$with_x11" | |
3c011993 | 1883 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1884 | fi |
10f2d63a | 1885 | |
a0b9e27f MB |
1886 | |
1887 | echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6 | |
6969f178 | 1888 | echo "configure:1889: checking for --enable-nanox" >&5 |
d8356fa3 | 1889 | no_cache=0 |
ba875e66 VZ |
1890 | # Check whether --enable-nanox or --disable-nanox was given. |
1891 | if test "${enable_nanox+set}" = set; then | |
1892 | enableval="$enable_nanox" | |
a0b9e27f | 1893 | |
d8356fa3 | 1894 | if test "$enableval" = yes; then |
ba875e66 | 1895 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1896 | else |
ba875e66 | 1897 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 1898 | fi |
a0b9e27f | 1899 | |
d8356fa3 | 1900 | else |
a0b9e27f | 1901 | |
d8356fa3 VZ |
1902 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
1903 | if test "x$LINE" != x ; then | |
1904 | eval "DEFAULT_$LINE" | |
1905 | else | |
1906 | no_cache=1 | |
1907 | fi | |
1908 | ||
ba875e66 | 1909 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
a0b9e27f MB |
1910 | |
1911 | fi | |
d8356fa3 VZ |
1912 | |
1913 | ||
ba875e66 | 1914 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1915 | if test "$no_cache" != 1; then |
ba875e66 | 1916 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1917 | fi |
1918 | ||
1919 | if test "$wxUSE_NANOX" = yes; then | |
a0b9e27f | 1920 | echo "$ac_t""yes" 1>&6 |
d8356fa3 | 1921 | else |
a0b9e27f | 1922 | echo "$ac_t""no" 1>&6 |
d8356fa3 | 1923 | fi |
a0b9e27f | 1924 | |
8284b0c5 | 1925 | |
d74f4b5a | 1926 | |
a0b9e27f | 1927 | echo $ac_n "checking for --enable-gtk2""... $ac_c" 1>&6 |
6969f178 | 1928 | echo "configure:1929: checking for --enable-gtk2" >&5 |
d74f4b5a VZ |
1929 | no_cache=0 |
1930 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
1931 | if test "${enable_gtk2+set}" = set; then |
1932 | enableval="$enable_gtk2" | |
a0b9e27f | 1933 | |
d74f4b5a VZ |
1934 | if test "$enableval" = yes; then |
1935 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
1936 | else | |
1937 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
1938 | fi | |
a0b9e27f | 1939 | |
10f2d63a | 1940 | else |
a0b9e27f | 1941 | |
d74f4b5a VZ |
1942 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
1943 | if test "x$LINE" != x ; then | |
1944 | eval "DEFAULT_$LINE" | |
1945 | else | |
1946 | no_cache=1 | |
1947 | fi | |
1948 | ||
1949 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
a0b9e27f MB |
1950 | |
1951 | fi | |
52127426 | 1952 | |
328a083c | 1953 | |
d74f4b5a VZ |
1954 | eval "$ac_cv_use_gtk2" |
1955 | if test "$no_cache" != 1; then | |
1956 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
1957 | fi | |
1958 | ||
1959 | if test "$wxUSE_GTK2" = yes; then | |
a0b9e27f | 1960 | echo "$ac_t""yes" 1>&6 |
d74f4b5a | 1961 | else |
a0b9e27f | 1962 | echo "$ac_t""no" 1>&6 |
d74f4b5a | 1963 | fi |
a0b9e27f | 1964 | |
d74f4b5a | 1965 | |
5c6fa7d2 | 1966 | |
a0b9e27f | 1967 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
6969f178 | 1968 | echo "configure:1969: checking for --with-libpng" >&5 |
8284b0c5 | 1969 | no_cache=0 |
a0b9e27f | 1970 | # Check whether --with-libpng or --without-libpng was given. |
b12915c1 VZ |
1971 | if test "${with_libpng+set}" = set; then |
1972 | withval="$with_libpng" | |
a0b9e27f | 1973 | |
10f2d63a | 1974 | if test "$withval" = yes; then |
b12915c1 | 1975 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1976 | elif test "$withval" = no; then |
b12915c1 | 1977 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1978 | elif test "$withval" = sys; then |
1979 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1980 | elif test "$withval" = builtin; then |
1981 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1982 | else |
a0b9e27f | 1983 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1984 | fi |
a0b9e27f | 1985 | |
10f2d63a | 1986 | else |
a0b9e27f | 1987 | |
b12915c1 | 1988 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1989 | if test "x$LINE" != x ; then |
1990 | eval "DEFAULT_$LINE" | |
1991 | else | |
1992 | no_cache=1 | |
1993 | fi | |
1994 | ||
b12915c1 | 1995 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
a0b9e27f MB |
1996 | |
1997 | fi | |
10f2d63a VZ |
1998 | |
1999 | ||
b12915c1 | 2000 | eval "$ac_cv_use_libpng" |
10f2d63a | 2001 | if test "$no_cache" != 1; then |
b12915c1 | 2002 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2003 | fi |
2004 | ||
b12915c1 | 2005 | if test "$wxUSE_LIBPNG" = yes; then |
a0b9e27f | 2006 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2007 | elif test "$wxUSE_LIBPNG" = no; then |
a0b9e27f | 2008 | echo "$ac_t""no" 1>&6 |
422107f9 | 2009 | elif test "$wxUSE_LIBPNG" = sys; then |
a0b9e27f | 2010 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2011 | elif test "$wxUSE_LIBPNG" = builtin; then |
a0b9e27f | 2012 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2013 | else |
a0b9e27f | 2014 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2015 | fi |
a0b9e27f | 2016 | |
10f2d63a | 2017 | |
a0b9e27f | 2018 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
6969f178 | 2019 | echo "configure:2020: checking for --with-libjpeg" >&5 |
10f2d63a | 2020 | no_cache=0 |
a0b9e27f | 2021 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2022 | if test "${with_libjpeg+set}" = set; then |
2023 | withval="$with_libjpeg" | |
a0b9e27f | 2024 | |
10f2d63a | 2025 | if test "$withval" = yes; then |
b12915c1 | 2026 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2027 | elif test "$withval" = no; then |
b12915c1 | 2028 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2029 | elif test "$withval" = sys; then |
2030 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2031 | elif test "$withval" = builtin; then |
2032 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2033 | else |
a0b9e27f | 2034 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2035 | fi |
a0b9e27f | 2036 | |
10f2d63a | 2037 | else |
a0b9e27f | 2038 | |
b12915c1 | 2039 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2040 | if test "x$LINE" != x ; then |
2041 | eval "DEFAULT_$LINE" | |
2042 | else | |
2043 | no_cache=1 | |
2044 | fi | |
2045 | ||
b12915c1 | 2046 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
a0b9e27f MB |
2047 | |
2048 | fi | |
10f2d63a VZ |
2049 | |
2050 | ||
b12915c1 | 2051 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2052 | if test "$no_cache" != 1; then |
b12915c1 | 2053 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2054 | fi |
2055 | ||
b12915c1 | 2056 | if test "$wxUSE_LIBJPEG" = yes; then |
a0b9e27f | 2057 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2058 | elif test "$wxUSE_LIBJPEG" = no; then |
a0b9e27f | 2059 | echo "$ac_t""no" 1>&6 |
422107f9 | 2060 | elif test "$wxUSE_LIBJPEG" = sys; then |
a0b9e27f | 2061 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2062 | elif test "$wxUSE_LIBJPEG" = builtin; then |
a0b9e27f | 2063 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2064 | else |
a0b9e27f | 2065 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2066 | fi |
a0b9e27f | 2067 | |
10f2d63a | 2068 | |
a0b9e27f | 2069 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
6969f178 | 2070 | echo "configure:2071: checking for --with-libtiff" >&5 |
10f2d63a | 2071 | no_cache=0 |
a0b9e27f | 2072 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2073 | if test "${with_libtiff+set}" = set; then |
2074 | withval="$with_libtiff" | |
a0b9e27f | 2075 | |
10f2d63a | 2076 | if test "$withval" = yes; then |
b12915c1 | 2077 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2078 | elif test "$withval" = no; then |
b12915c1 | 2079 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2080 | elif test "$withval" = sys; then |
2081 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2082 | elif test "$withval" = builtin; then |
2083 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2084 | else |
a0b9e27f | 2085 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2086 | fi |
a0b9e27f | 2087 | |
10f2d63a | 2088 | else |
a0b9e27f | 2089 | |
b12915c1 | 2090 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2091 | if test "x$LINE" != x ; then |
2092 | eval "DEFAULT_$LINE" | |
2093 | else | |
2094 | no_cache=1 | |
2095 | fi | |
2096 | ||
b12915c1 | 2097 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
a0b9e27f MB |
2098 | |
2099 | fi | |
10f2d63a VZ |
2100 | |
2101 | ||
b12915c1 | 2102 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2103 | if test "$no_cache" != 1; then |
b12915c1 | 2104 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2105 | fi |
2106 | ||
b12915c1 | 2107 | if test "$wxUSE_LIBTIFF" = yes; then |
a0b9e27f | 2108 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2109 | elif test "$wxUSE_LIBTIFF" = no; then |
a0b9e27f | 2110 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2111 | elif test "$wxUSE_LIBTIFF" = sys; then |
a0b9e27f | 2112 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2113 | elif test "$wxUSE_LIBTIFF" = builtin; then |
a0b9e27f | 2114 | echo "$ac_t""builtin version" 1>&6 |
0dcf9893 | 2115 | else |
a0b9e27f | 2116 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2117 | fi |
a0b9e27f | 2118 | |
10f2d63a | 2119 | |
a0b9e27f | 2120 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
6969f178 | 2121 | echo "configure:2122: checking for --with-opengl" >&5 |
10f2d63a | 2122 | no_cache=0 |
a0b9e27f | 2123 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2124 | if test "${with_opengl+set}" = set; then |
2125 | withval="$with_opengl" | |
a0b9e27f | 2126 | |
10f2d63a | 2127 | if test "$withval" = yes; then |
b12915c1 | 2128 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2129 | else |
b12915c1 | 2130 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2131 | fi |
a0b9e27f | 2132 | |
10f2d63a | 2133 | else |
a0b9e27f | 2134 | |
b12915c1 | 2135 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2136 | if test "x$LINE" != x ; then |
2137 | eval "DEFAULT_$LINE" | |
2138 | else | |
2139 | no_cache=1 | |
2140 | fi | |
2141 | ||
b12915c1 | 2142 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
a0b9e27f MB |
2143 | |
2144 | fi | |
10f2d63a VZ |
2145 | |
2146 | ||
b12915c1 | 2147 | eval "$ac_cv_use_opengl" |
10f2d63a | 2148 | if test "$no_cache" != 1; then |
b12915c1 | 2149 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2150 | fi |
2151 | ||
b12915c1 | 2152 | if test "$wxUSE_OPENGL" = yes; then |
a0b9e27f | 2153 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2154 | else |
a0b9e27f | 2155 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2156 | fi |
a0b9e27f | 2157 | |
10f2d63a | 2158 | |
b12915c1 VZ |
2159 | fi |
2160 | ||
5c6fa7d2 | 2161 | |
a0b9e27f | 2162 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
6969f178 | 2163 | echo "configure:2164: checking for --with-dmalloc" >&5 |
8284b0c5 | 2164 | no_cache=0 |
a0b9e27f | 2165 | # Check whether --with-dmalloc or --without-dmalloc was given. |
b12915c1 VZ |
2166 | if test "${with_dmalloc+set}" = set; then |
2167 | withval="$with_dmalloc" | |
a0b9e27f | 2168 | |
c7a2bf27 | 2169 | if test "$withval" = yes; then |
b12915c1 | 2170 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2171 | else |
b12915c1 | 2172 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2173 | fi |
a0b9e27f | 2174 | |
c7a2bf27 | 2175 | else |
a0b9e27f | 2176 | |
b12915c1 | 2177 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2178 | if test "x$LINE" != x ; then |
2179 | eval "DEFAULT_$LINE" | |
2180 | else | |
2181 | no_cache=1 | |
2182 | fi | |
2183 | ||
b12915c1 | 2184 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
a0b9e27f MB |
2185 | |
2186 | fi | |
c7a2bf27 RR |
2187 | |
2188 | ||
b12915c1 | 2189 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2190 | if test "$no_cache" != 1; then |
b12915c1 | 2191 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2192 | fi |
2193 | ||
b12915c1 | 2194 | if test "$wxUSE_DMALLOC" = yes; then |
a0b9e27f | 2195 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2196 | else |
a0b9e27f | 2197 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2198 | fi |
a0b9e27f | 2199 | |
c7a2bf27 | 2200 | |
a0b9e27f | 2201 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
6969f178 | 2202 | echo "configure:2203: checking for --with-regex" >&5 |
3e44f09d | 2203 | no_cache=0 |
a0b9e27f | 2204 | # Check whether --with-regex or --without-regex was given. |
3e44f09d VZ |
2205 | if test "${with_regex+set}" = set; then |
2206 | withval="$with_regex" | |
a0b9e27f | 2207 | |
3e44f09d VZ |
2208 | if test "$withval" = yes; then |
2209 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2210 | elif test "$withval" = no; then | |
2211 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2212 | elif test "$withval" = sys; then | |
2213 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2214 | elif test "$withval" = builtin; then |
2215 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2216 | else |
a0b9e27f | 2217 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2218 | fi |
a0b9e27f | 2219 | |
3e44f09d | 2220 | else |
a0b9e27f | 2221 | |
3e44f09d VZ |
2222 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2223 | if test "x$LINE" != x ; then | |
2224 | eval "DEFAULT_$LINE" | |
2225 | else | |
2226 | no_cache=1 | |
2227 | fi | |
2228 | ||
2229 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
a0b9e27f MB |
2230 | |
2231 | fi | |
3e44f09d VZ |
2232 | |
2233 | ||
2234 | eval "$ac_cv_use_regex" | |
2235 | if test "$no_cache" != 1; then | |
2236 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2237 | fi | |
2238 | ||
2239 | if test "$wxUSE_REGEX" = yes; then | |
a0b9e27f | 2240 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 2241 | elif test "$wxUSE_REGEX" = no; then |
a0b9e27f | 2242 | echo "$ac_t""no" 1>&6 |
3e44f09d | 2243 | elif test "$wxUSE_REGEX" = sys; then |
a0b9e27f | 2244 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2245 | elif test "$wxUSE_REGEX" = builtin; then |
a0b9e27f | 2246 | echo "$ac_t""builtin version" 1>&6 |
3e44f09d | 2247 | else |
a0b9e27f | 2248 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2249 | fi |
a0b9e27f | 2250 | |
3e44f09d | 2251 | |
a0b9e27f | 2252 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
6969f178 | 2253 | echo "configure:2254: checking for --with-zlib" >&5 |
10f2d63a | 2254 | no_cache=0 |
a0b9e27f | 2255 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2256 | if test "${with_zlib+set}" = set; then |
2257 | withval="$with_zlib" | |
a0b9e27f | 2258 | |
10f2d63a | 2259 | if test "$withval" = yes; then |
b12915c1 | 2260 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2261 | elif test "$withval" = no; then |
b12915c1 | 2262 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2263 | elif test "$withval" = sys; then |
2264 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2265 | elif test "$withval" = builtin; then |
2266 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2267 | else |
a0b9e27f | 2268 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2269 | fi |
a0b9e27f | 2270 | |
10f2d63a | 2271 | else |
a0b9e27f | 2272 | |
b12915c1 | 2273 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2274 | if test "x$LINE" != x ; then |
2275 | eval "DEFAULT_$LINE" | |
2276 | else | |
2277 | no_cache=1 | |
2278 | fi | |
2279 | ||
b12915c1 | 2280 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
a0b9e27f MB |
2281 | |
2282 | fi | |
10f2d63a VZ |
2283 | |
2284 | ||
b12915c1 | 2285 | eval "$ac_cv_use_zlib" |
10f2d63a | 2286 | if test "$no_cache" != 1; then |
b12915c1 | 2287 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2288 | fi |
2289 | ||
b12915c1 | 2290 | if test "$wxUSE_ZLIB" = yes; then |
a0b9e27f | 2291 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2292 | elif test "$wxUSE_ZLIB" = no; then |
a0b9e27f | 2293 | echo "$ac_t""no" 1>&6 |
422107f9 | 2294 | elif test "$wxUSE_ZLIB" = sys; then |
a0b9e27f | 2295 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2296 | elif test "$wxUSE_ZLIB" = builtin; then |
a0b9e27f | 2297 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2298 | else |
a0b9e27f | 2299 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2300 | fi |
a0b9e27f | 2301 | |
10f2d63a | 2302 | |
a0b9e27f | 2303 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
6969f178 | 2304 | echo "configure:2305: checking for --with-odbc" >&5 |
10f2d63a | 2305 | no_cache=0 |
a0b9e27f | 2306 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2307 | if test "${with_odbc+set}" = set; then |
2308 | withval="$with_odbc" | |
a0b9e27f | 2309 | |
10f2d63a VZ |
2310 | if test "$withval" = yes; then |
2311 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2312 | else | |
2313 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2314 | fi | |
a0b9e27f | 2315 | |
10f2d63a | 2316 | else |
a0b9e27f | 2317 | |
10f2d63a VZ |
2318 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2319 | if test "x$LINE" != x ; then | |
2320 | eval "DEFAULT_$LINE" | |
2321 | else | |
2322 | no_cache=1 | |
2323 | fi | |
2324 | ||
2325 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
a0b9e27f MB |
2326 | |
2327 | fi | |
10f2d63a VZ |
2328 | |
2329 | ||
2330 | eval "$ac_cv_use_odbc" | |
2331 | if test "$no_cache" != 1; then | |
2332 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2333 | fi | |
2334 | ||
2335 | if test "$wxUSE_ODBC" = yes; then | |
a0b9e27f | 2336 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2337 | else |
a0b9e27f | 2338 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2339 | fi |
a0b9e27f | 2340 | |
52127426 | 2341 | |
8284b0c5 MB |
2342 | |
2343 | ||
a0b9e27f | 2344 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
6969f178 | 2345 | echo "configure:2346: checking for --enable-shared" >&5 |
10f2d63a VZ |
2346 | no_cache=0 |
2347 | # Check whether --enable-shared or --disable-shared was given. | |
2348 | if test "${enable_shared+set}" = set; then | |
2349 | enableval="$enable_shared" | |
a0b9e27f | 2350 | |
10f2d63a VZ |
2351 | if test "$enableval" = yes; then |
2352 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2353 | else | |
2354 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2355 | fi | |
a0b9e27f | 2356 | |
10f2d63a | 2357 | else |
a0b9e27f | 2358 | |
10f2d63a VZ |
2359 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2360 | if test "x$LINE" != x ; then | |
2361 | eval "DEFAULT_$LINE" | |
2362 | else | |
2363 | no_cache=1 | |
2364 | fi | |
2365 | ||
2366 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
a0b9e27f MB |
2367 | |
2368 | fi | |
10f2d63a VZ |
2369 | |
2370 | ||
2371 | eval "$ac_cv_use_shared" | |
2372 | if test "$no_cache" != 1; then | |
2373 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2374 | fi | |
2375 | ||
2376 | if test "$wxUSE_SHARED" = yes; then | |
a0b9e27f | 2377 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2378 | else |
a0b9e27f | 2379 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2380 | fi |
a0b9e27f | 2381 | |
10f2d63a | 2382 | |
a0b9e27f | 2383 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
6969f178 | 2384 | echo "configure:2385: checking for --enable-soname" >&5 |
00cf1208 | 2385 | no_cache=0 |
3a922bb4 RL |
2386 | # Check whether --enable-soname or --disable-soname was given. |
2387 | if test "${enable_soname+set}" = set; then | |
2388 | enableval="$enable_soname" | |
a0b9e27f | 2389 | |
00cf1208 | 2390 | if test "$enableval" = yes; then |
3a922bb4 | 2391 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2392 | else |
3a922bb4 | 2393 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2394 | fi |
a0b9e27f | 2395 | |
00cf1208 | 2396 | else |
a0b9e27f | 2397 | |
3a922bb4 | 2398 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2399 | if test "x$LINE" != x ; then |
2400 | eval "DEFAULT_$LINE" | |
2401 | else | |
2402 | no_cache=1 | |
2403 | fi | |
2404 | ||
3a922bb4 | 2405 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
a0b9e27f MB |
2406 | |
2407 | fi | |
00cf1208 RR |
2408 | |
2409 | ||
3a922bb4 | 2410 | eval "$ac_cv_use_soname" |
00cf1208 | 2411 | if test "$no_cache" != 1; then |
3a922bb4 | 2412 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2413 | fi |
2414 | ||
3a922bb4 | 2415 | if test "$wxUSE_SONAME" = yes; then |
a0b9e27f | 2416 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2417 | else |
a0b9e27f | 2418 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2419 | fi |
a0b9e27f | 2420 | |
00cf1208 | 2421 | |
a0b9e27f | 2422 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
6969f178 | 2423 | echo "configure:2424: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2424 | no_cache=0 |
2425 | # Check whether --enable-optimise or --disable-optimise was given. | |
2426 | if test "${enable_optimise+set}" = set; then | |
2427 | enableval="$enable_optimise" | |
a0b9e27f | 2428 | |
10f2d63a VZ |
2429 | if test "$enableval" = yes; then |
2430 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2431 | else | |
2432 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2433 | fi | |
a0b9e27f | 2434 | |
10f2d63a | 2435 | else |
a0b9e27f | 2436 | |
10f2d63a VZ |
2437 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2438 | if test "x$LINE" != x ; then | |
2439 | eval "DEFAULT_$LINE" | |
2440 | else | |
2441 | no_cache=1 | |
2442 | fi | |
2443 | ||
2444 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
a0b9e27f MB |
2445 | |
2446 | fi | |
10f2d63a VZ |
2447 | |
2448 | ||
2449 | eval "$ac_cv_use_optimise" | |
2450 | if test "$no_cache" != 1; then | |
2451 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2452 | fi | |
2453 | ||
2454 | if test "$wxUSE_OPTIMISE" = yes; then | |
a0b9e27f | 2455 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2456 | else |
a0b9e27f | 2457 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2458 | fi |
a0b9e27f | 2459 | |
10f2d63a | 2460 | |
a0b9e27f | 2461 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
6969f178 | 2462 | echo "configure:2463: checking for --enable-debug" >&5 |
10f2d63a VZ |
2463 | no_cache=0 |
2464 | # Check whether --enable-debug or --disable-debug was given. | |
2465 | if test "${enable_debug+set}" = set; then | |
2466 | enableval="$enable_debug" | |
a0b9e27f | 2467 | |
10f2d63a VZ |
2468 | if test "$enableval" = yes; then |
2469 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2470 | else | |
2471 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2472 | fi | |
a0b9e27f | 2473 | |
10f2d63a | 2474 | else |
a0b9e27f | 2475 | |
10f2d63a VZ |
2476 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2477 | if test "x$LINE" != x ; then | |
2478 | eval "DEFAULT_$LINE" | |
2479 | else | |
2480 | no_cache=1 | |
2481 | fi | |
2482 | ||
2483 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
a0b9e27f MB |
2484 | |
2485 | fi | |
10f2d63a VZ |
2486 | |
2487 | ||
2488 | eval "$ac_cv_use_debug" | |
2489 | if test "$no_cache" != 1; then | |
2490 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2491 | fi | |
2492 | ||
2493 | if test "$wxUSE_DEBUG" = yes; then | |
a0b9e27f | 2494 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2495 | else |
a0b9e27f | 2496 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2497 | fi |
a0b9e27f | 2498 | |
52127426 | 2499 | |
8284b0c5 | 2500 | |
a0b9e27f | 2501 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 |
6969f178 | 2502 | echo "configure:2503: checking for --enable-precomp" >&5 |
683dccda GD |
2503 | no_cache=0 |
2504 | # Check whether --enable-precomp or --disable-precomp was given. | |
2505 | if test "${enable_precomp+set}" = set; then | |
2506 | enableval="$enable_precomp" | |
a0b9e27f | 2507 | |
683dccda GD |
2508 | if test "$enableval" = yes; then |
2509 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2510 | else | |
2511 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2512 | fi | |
a0b9e27f | 2513 | |
683dccda | 2514 | else |
a0b9e27f | 2515 | |
683dccda GD |
2516 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` |
2517 | if test "x$LINE" != x ; then | |
2518 | eval "DEFAULT_$LINE" | |
2519 | else | |
2520 | no_cache=1 | |
2521 | fi | |
2522 | ||
2523 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
a0b9e27f MB |
2524 | |
2525 | fi | |
683dccda GD |
2526 | |
2527 | ||
2528 | eval "$ac_cv_use_precomp" | |
2529 | if test "$no_cache" != 1; then | |
2530 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2531 | fi | |
2532 | ||
2533 | if test "$wxUSE_PRECOMP" = yes; then | |
a0b9e27f | 2534 | echo "$ac_t""yes" 1>&6 |
683dccda | 2535 | else |
a0b9e27f | 2536 | echo "$ac_t""no" 1>&6 |
683dccda | 2537 | fi |
a0b9e27f | 2538 | |
683dccda | 2539 | |
10f2d63a VZ |
2540 | if test "$wxUSE_DEBUG" = "yes"; then |
2541 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2542 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2543 | elif test "$wxUSE_DEBUG" = "no"; then | |
2544 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2545 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2546 | fi | |
2547 | ||
8284b0c5 | 2548 | |
a0b9e27f | 2549 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 |
6969f178 | 2550 | echo "configure:2551: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2551 | no_cache=0 |
2552 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2553 | if test "${enable_debug_flag+set}" = set; then | |
2554 | enableval="$enable_debug_flag" | |
a0b9e27f | 2555 | |
10f2d63a VZ |
2556 | if test "$enableval" = yes; then |
2557 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2558 | else | |
2559 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2560 | fi | |
a0b9e27f | 2561 | |
10f2d63a | 2562 | else |
a0b9e27f | 2563 | |
10f2d63a VZ |
2564 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2565 | if test "x$LINE" != x ; then | |
2566 | eval "DEFAULT_$LINE" | |
2567 | else | |
2568 | no_cache=1 | |
2569 | fi | |
2570 | ||
2571 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
a0b9e27f MB |
2572 | |
2573 | fi | |
10f2d63a VZ |
2574 | |
2575 | ||
2576 | eval "$ac_cv_use_debug_flag" | |
2577 | if test "$no_cache" != 1; then | |
2578 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2579 | fi | |
2580 | ||
2581 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
a0b9e27f | 2582 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2583 | else |
a0b9e27f | 2584 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2585 | fi |
a0b9e27f | 2586 | |
10f2d63a | 2587 | |
a0b9e27f | 2588 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
6969f178 | 2589 | echo "configure:2590: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2590 | no_cache=0 |
2591 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2592 | if test "${enable_debug_info+set}" = set; then | |
2593 | enableval="$enable_debug_info" | |
a0b9e27f | 2594 | |
10f2d63a VZ |
2595 | if test "$enableval" = yes; then |
2596 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2597 | else | |
2598 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2599 | fi | |
a0b9e27f | 2600 | |
10f2d63a | 2601 | else |
a0b9e27f | 2602 | |
10f2d63a VZ |
2603 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2604 | if test "x$LINE" != x ; then | |
2605 | eval "DEFAULT_$LINE" | |
2606 | else | |
2607 | no_cache=1 | |
2608 | fi | |
2609 | ||
2610 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
a0b9e27f MB |
2611 | |
2612 | fi | |
10f2d63a VZ |
2613 | |
2614 | ||
2615 | eval "$ac_cv_use_debug_info" | |
2616 | if test "$no_cache" != 1; then | |
2617 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2618 | fi | |
2619 | ||
2620 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
a0b9e27f | 2621 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2622 | else |
a0b9e27f | 2623 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2624 | fi |
a0b9e27f | 2625 | |
10f2d63a | 2626 | |
a0b9e27f | 2627 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
6969f178 | 2628 | echo "configure:2629: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2629 | no_cache=0 |
2630 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2631 | if test "${enable_debug_gdb+set}" = set; then | |
2632 | enableval="$enable_debug_gdb" | |
a0b9e27f | 2633 | |
10f2d63a VZ |
2634 | if test "$enableval" = yes; then |
2635 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2636 | else | |
2637 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2638 | fi | |
a0b9e27f | 2639 | |
10f2d63a | 2640 | else |
a0b9e27f | 2641 | |
10f2d63a VZ |
2642 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2643 | if test "x$LINE" != x ; then | |
2644 | eval "DEFAULT_$LINE" | |
2645 | else | |
2646 | no_cache=1 | |
2647 | fi | |
2648 | ||
2649 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
a0b9e27f MB |
2650 | |
2651 | fi | |
10f2d63a VZ |
2652 | |
2653 | ||
2654 | eval "$ac_cv_use_debug_gdb" | |
2655 | if test "$no_cache" != 1; then | |
2656 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2657 | fi | |
2658 | ||
2659 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
a0b9e27f | 2660 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2661 | else |
a0b9e27f | 2662 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2663 | fi |
a0b9e27f | 2664 | |
10f2d63a | 2665 | |
a0b9e27f | 2666 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
6969f178 | 2667 | echo "configure:2668: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2668 | no_cache=0 |
2669 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2670 | if test "${enable_debug_cntxt+set}" = set; then | |
2671 | enableval="$enable_debug_cntxt" | |
a0b9e27f | 2672 | |
10f2d63a VZ |
2673 | if test "$enableval" = yes; then |
2674 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2675 | else | |
2676 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2677 | fi | |
a0b9e27f | 2678 | |
10f2d63a | 2679 | else |
a0b9e27f | 2680 | |
10f2d63a VZ |
2681 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2682 | if test "x$LINE" != x ; then | |
2683 | eval "DEFAULT_$LINE" | |
2684 | else | |
2685 | no_cache=1 | |
2686 | fi | |
2687 | ||
2688 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
a0b9e27f MB |
2689 | |
2690 | fi | |
10f2d63a VZ |
2691 | |
2692 | ||
2693 | eval "$ac_cv_use_debug_cntxt" | |
2694 | if test "$no_cache" != 1; then | |
2695 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2696 | fi | |
2697 | ||
2698 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
a0b9e27f | 2699 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2700 | else |
a0b9e27f | 2701 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2702 | fi |
a0b9e27f | 2703 | |
10f2d63a | 2704 | |
a0b9e27f | 2705 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
6969f178 | 2706 | echo "configure:2707: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2707 | no_cache=0 |
2708 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2709 | if test "${enable_mem_tracing+set}" = set; then | |
2710 | enableval="$enable_mem_tracing" | |
a0b9e27f | 2711 | |
10f2d63a VZ |
2712 | if test "$enableval" = yes; then |
2713 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2714 | else | |
2715 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2716 | fi | |
a0b9e27f | 2717 | |
10f2d63a | 2718 | else |
a0b9e27f | 2719 | |
10f2d63a VZ |
2720 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2721 | if test "x$LINE" != x ; then | |
2722 | eval "DEFAULT_$LINE" | |
2723 | else | |
2724 | no_cache=1 | |
2725 | fi | |
2726 | ||
2727 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
a0b9e27f MB |
2728 | |
2729 | fi | |
10f2d63a VZ |
2730 | |
2731 | ||
2732 | eval "$ac_cv_use_mem_tracing" | |
2733 | if test "$no_cache" != 1; then | |
2734 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2735 | fi | |
2736 | ||
2737 | if test "$wxUSE_MEM_TRACING" = yes; then | |
a0b9e27f | 2738 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2739 | else |
a0b9e27f | 2740 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2741 | fi |
a0b9e27f | 2742 | |
10f2d63a | 2743 | |
a0b9e27f | 2744 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
6969f178 | 2745 | echo "configure:2746: checking for --enable-profile" >&5 |
10f2d63a VZ |
2746 | no_cache=0 |
2747 | # Check whether --enable-profile or --disable-profile was given. | |
2748 | if test "${enable_profile+set}" = set; then | |
2749 | enableval="$enable_profile" | |
a0b9e27f | 2750 | |
10f2d63a VZ |
2751 | if test "$enableval" = yes; then |
2752 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2753 | else | |
2754 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2755 | fi | |
a0b9e27f | 2756 | |
10f2d63a | 2757 | else |
a0b9e27f | 2758 | |
10f2d63a VZ |
2759 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2760 | if test "x$LINE" != x ; then | |
2761 | eval "DEFAULT_$LINE" | |
2762 | else | |
2763 | no_cache=1 | |
2764 | fi | |
2765 | ||
2766 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
a0b9e27f MB |
2767 | |
2768 | fi | |
10f2d63a VZ |
2769 | |
2770 | ||
2771 | eval "$ac_cv_use_profile" | |
2772 | if test "$no_cache" != 1; then | |
2773 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2774 | fi | |
2775 | ||
2776 | if test "$wxUSE_PROFILE" = yes; then | |
a0b9e27f | 2777 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2778 | else |
a0b9e27f | 2779 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2780 | fi |
a0b9e27f | 2781 | |
10f2d63a | 2782 | |
a0b9e27f | 2783 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
6969f178 | 2784 | echo "configure:2785: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2785 | no_cache=0 |
2786 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2787 | if test "${enable_no_rtti+set}" = set; then | |
2788 | enableval="$enable_no_rtti" | |
a0b9e27f | 2789 | |
10f2d63a VZ |
2790 | if test "$enableval" = yes; then |
2791 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2792 | else | |
2793 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2794 | fi | |
a0b9e27f | 2795 | |
10f2d63a | 2796 | else |
a0b9e27f | 2797 | |
10f2d63a VZ |
2798 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2799 | if test "x$LINE" != x ; then | |
2800 | eval "DEFAULT_$LINE" | |
2801 | else | |
2802 | no_cache=1 | |
2803 | fi | |
2804 | ||
2805 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
a0b9e27f MB |
2806 | |
2807 | fi | |
10f2d63a VZ |
2808 | |
2809 | ||
2810 | eval "$ac_cv_use_no_rtti" | |
2811 | if test "$no_cache" != 1; then | |
2812 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2813 | fi | |
2814 | ||
2815 | if test "$wxUSE_NO_RTTI" = yes; then | |
a0b9e27f | 2816 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2817 | else |
a0b9e27f | 2818 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2819 | fi |
a0b9e27f | 2820 | |
10f2d63a | 2821 | |
a0b9e27f | 2822 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
6969f178 | 2823 | echo "configure:2824: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2824 | no_cache=0 |
2825 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2826 | if test "${enable_no_exceptions+set}" = set; then | |
2827 | enableval="$enable_no_exceptions" | |
a0b9e27f | 2828 | |
10f2d63a VZ |
2829 | if test "$enableval" = yes; then |
2830 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2831 | else | |
2832 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2833 | fi | |
a0b9e27f | 2834 | |
10f2d63a | 2835 | else |
a0b9e27f | 2836 | |
10f2d63a VZ |
2837 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2838 | if test "x$LINE" != x ; then | |
2839 | eval "DEFAULT_$LINE" | |
2840 | else | |
2841 | no_cache=1 | |
2842 | fi | |
2843 | ||
2844 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
a0b9e27f MB |
2845 | |
2846 | fi | |
10f2d63a VZ |
2847 | |
2848 | ||
2849 | eval "$ac_cv_use_no_exceptions" | |
2850 | if test "$no_cache" != 1; then | |
2851 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2852 | fi | |
2853 | ||
2854 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
a0b9e27f | 2855 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2856 | else |
a0b9e27f | 2857 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2858 | fi |
a0b9e27f | 2859 | |
10f2d63a | 2860 | |
a0b9e27f | 2861 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
6969f178 | 2862 | echo "configure:2863: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2863 | no_cache=0 |
2864 | # Check whether --enable-permissive or --disable-permissive was given. | |
2865 | if test "${enable_permissive+set}" = set; then | |
2866 | enableval="$enable_permissive" | |
a0b9e27f | 2867 | |
10f2d63a VZ |
2868 | if test "$enableval" = yes; then |
2869 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2870 | else | |
2871 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2872 | fi | |
a0b9e27f | 2873 | |
10f2d63a | 2874 | else |
a0b9e27f | 2875 | |
10f2d63a VZ |
2876 | LINE=`grep "wxUSE_PERMISSIVE" ${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_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
a0b9e27f MB |
2884 | |
2885 | fi | |
10f2d63a VZ |
2886 | |
2887 | ||
2888 | eval "$ac_cv_use_permissive" | |
2889 | if test "$no_cache" != 1; then | |
2890 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2891 | fi | |
2892 | ||
2893 | if test "$wxUSE_PERMISSIVE" = 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 | |
a0b9e27f | 2900 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
6969f178 | 2901 | echo "configure:2902: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2902 | no_cache=0 |
2903 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2904 | if test "${enable_no_deps+set}" = set; then | |
2905 | enableval="$enable_no_deps" | |
a0b9e27f | 2906 | |
10f2d63a VZ |
2907 | if test "$enableval" = yes; then |
2908 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2909 | else | |
2910 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2911 | fi | |
a0b9e27f | 2912 | |
10f2d63a | 2913 | else |
a0b9e27f | 2914 | |
10f2d63a VZ |
2915 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2916 | if test "x$LINE" != x ; then | |
2917 | eval "DEFAULT_$LINE" | |
2918 | else | |
2919 | no_cache=1 | |
2920 | fi | |
2921 | ||
2922 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
a0b9e27f MB |
2923 | |
2924 | fi | |
10f2d63a VZ |
2925 | |
2926 | ||
2927 | eval "$ac_cv_use_no_deps" | |
2928 | if test "$no_cache" != 1; then | |
2929 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2930 | fi | |
2931 | ||
2932 | if test "$wxUSE_NO_DEPS" = yes; then | |
a0b9e27f | 2933 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2934 | else |
a0b9e27f | 2935 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2936 | fi |
a0b9e27f | 2937 | |
52127426 | 2938 | |
8284b0c5 | 2939 | |
a0b9e27f | 2940 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
6969f178 | 2941 | echo "configure:2942: checking for --enable-compat20" >&5 |
54276ccf VZ |
2942 | no_cache=0 |
2943 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2944 | if test "${enable_compat20+set}" = set; then | |
2945 | enableval="$enable_compat20" | |
a0b9e27f | 2946 | |
54276ccf VZ |
2947 | if test "$enableval" = yes; then |
2948 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2949 | else | |
2950 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2951 | fi | |
a0b9e27f | 2952 | |
54276ccf | 2953 | else |
a0b9e27f | 2954 | |
54276ccf VZ |
2955 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
2956 | if test "x$LINE" != x ; then | |
2957 | eval "DEFAULT_$LINE" | |
2958 | else | |
2959 | no_cache=1 | |
2960 | fi | |
2961 | ||
2962 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
a0b9e27f MB |
2963 | |
2964 | fi | |
54276ccf VZ |
2965 | |
2966 | ||
2967 | eval "$ac_cv_use_compat20" | |
2968 | if test "$no_cache" != 1; then | |
2969 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2970 | fi | |
2971 | ||
2972 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
a0b9e27f | 2973 | echo "$ac_t""yes" 1>&6 |
54276ccf | 2974 | else |
a0b9e27f | 2975 | echo "$ac_t""no" 1>&6 |
54276ccf | 2976 | fi |
a0b9e27f | 2977 | |
54276ccf | 2978 | |
a0b9e27f | 2979 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 |
6969f178 | 2980 | echo "configure:2981: checking for --enable-compat22" >&5 |
54276ccf VZ |
2981 | no_cache=0 |
2982 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2983 | if test "${enable_compat22+set}" = set; then | |
2984 | enableval="$enable_compat22" | |
a0b9e27f | 2985 | |
54276ccf VZ |
2986 | if test "$enableval" = yes; then |
2987 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2988 | else | |
2989 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2990 | fi | |
a0b9e27f | 2991 | |
54276ccf | 2992 | else |
a0b9e27f | 2993 | |
54276ccf VZ |
2994 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
2995 | if test "x$LINE" != x ; then | |
2996 | eval "DEFAULT_$LINE" | |
2997 | else | |
2998 | no_cache=1 | |
2999 | fi | |
3000 | ||
3001 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
a0b9e27f MB |
3002 | |
3003 | fi | |
54276ccf VZ |
3004 | |
3005 | ||
3006 | eval "$ac_cv_use_compat22" | |
3007 | if test "$no_cache" != 1; then | |
3008 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3009 | fi | |
3010 | ||
3011 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
a0b9e27f | 3012 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3013 | else |
a0b9e27f | 3014 | echo "$ac_t""no" 1>&6 |
54276ccf | 3015 | fi |
a0b9e27f | 3016 | |
54276ccf | 3017 | |
3bd8fb5f RD |
3018 | # Check whether --enable-rpath or --disable-rpath was given. |
3019 | if test "${enable_rpath+set}" = set; then | |
3020 | enableval="$enable_rpath" | |
3021 | wxRPATH_DIR="$enableval" | |
a0b9e27f MB |
3022 | fi |
3023 | ||
3bd8fb5f RD |
3024 | |
3025 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3026 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3027 | fi | |
3028 | ||
8284b0c5 MB |
3029 | |
3030 | ||
3031 | ||
a0b9e27f | 3032 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 |
6969f178 | 3033 | echo "configure:3034: checking for --enable-intl" >&5 |
10f2d63a VZ |
3034 | no_cache=0 |
3035 | # Check whether --enable-intl or --disable-intl was given. | |
3036 | if test "${enable_intl+set}" = set; then | |
3037 | enableval="$enable_intl" | |
a0b9e27f | 3038 | |
10f2d63a VZ |
3039 | if test "$enableval" = yes; then |
3040 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3041 | else | |
3042 | ac_cv_use_intl='wxUSE_INTL=no' | |
3043 | fi | |
a0b9e27f | 3044 | |
10f2d63a | 3045 | else |
a0b9e27f | 3046 | |
10f2d63a VZ |
3047 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3048 | if test "x$LINE" != x ; then | |
3049 | eval "DEFAULT_$LINE" | |
3050 | else | |
3051 | no_cache=1 | |
3052 | fi | |
3053 | ||
3054 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
a0b9e27f MB |
3055 | |
3056 | fi | |
10f2d63a VZ |
3057 | |
3058 | ||
3059 | eval "$ac_cv_use_intl" | |
3060 | if test "$no_cache" != 1; then | |
3061 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3062 | fi | |
3063 | ||
3064 | if test "$wxUSE_INTL" = yes; then | |
a0b9e27f | 3065 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3066 | else |
a0b9e27f | 3067 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3068 | fi |
a0b9e27f | 3069 | |
10f2d63a | 3070 | |
a0b9e27f | 3071 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
6969f178 | 3072 | echo "configure:3073: checking for --enable-config" >&5 |
10f2d63a VZ |
3073 | no_cache=0 |
3074 | # Check whether --enable-config or --disable-config was given. | |
3075 | if test "${enable_config+set}" = set; then | |
3076 | enableval="$enable_config" | |
a0b9e27f | 3077 | |
10f2d63a VZ |
3078 | if test "$enableval" = yes; then |
3079 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3080 | else | |
3081 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3082 | fi | |
a0b9e27f | 3083 | |
10f2d63a | 3084 | else |
a0b9e27f | 3085 | |
10f2d63a VZ |
3086 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3087 | if test "x$LINE" != x ; then | |
3088 | eval "DEFAULT_$LINE" | |
3089 | else | |
3090 | no_cache=1 | |
3091 | fi | |
3092 | ||
3093 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
a0b9e27f MB |
3094 | |
3095 | fi | |
10f2d63a VZ |
3096 | |
3097 | ||
3098 | eval "$ac_cv_use_config" | |
3099 | if test "$no_cache" != 1; then | |
3100 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3101 | fi | |
3102 | ||
3103 | if test "$wxUSE_CONFIG" = yes; then | |
a0b9e27f | 3104 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3105 | else |
a0b9e27f | 3106 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3107 | fi |
a0b9e27f | 3108 | |
52127426 | 3109 | |
8284b0c5 | 3110 | |
a0b9e27f | 3111 | echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6 |
6969f178 | 3112 | echo "configure:3113: checking for --enable-protocols" >&5 |
a1622950 VZ |
3113 | no_cache=0 |
3114 | # Check whether --enable-protocols or --disable-protocols was given. | |
3115 | if test "${enable_protocols+set}" = set; then | |
3116 | enableval="$enable_protocols" | |
a0b9e27f | 3117 | |
a1622950 VZ |
3118 | if test "$enableval" = yes; then |
3119 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3120 | else | |
3121 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3122 | fi | |
a0b9e27f | 3123 | |
a1622950 | 3124 | else |
a0b9e27f | 3125 | |
a1622950 VZ |
3126 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3127 | if test "x$LINE" != x ; then | |
3128 | eval "DEFAULT_$LINE" | |
3129 | else | |
3130 | no_cache=1 | |
3131 | fi | |
3132 | ||
3133 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
3134 | |
3135 | fi | |
a1622950 VZ |
3136 | |
3137 | ||
3138 | eval "$ac_cv_use_protocols" | |
3139 | if test "$no_cache" != 1; then | |
3140 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3141 | fi | |
3142 | ||
3143 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 3144 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3145 | else |
a0b9e27f | 3146 | echo "$ac_t""no" 1>&6 |
a1622950 | 3147 | fi |
a0b9e27f | 3148 | |
a1622950 | 3149 | |
a0b9e27f | 3150 | echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6 |
6969f178 | 3151 | echo "configure:3152: checking for --enable-ftp" >&5 |
a1622950 VZ |
3152 | no_cache=0 |
3153 | # Check whether --enable-ftp or --disable-ftp was given. | |
3154 | if test "${enable_ftp+set}" = set; then | |
3155 | enableval="$enable_ftp" | |
a0b9e27f | 3156 | |
a1622950 VZ |
3157 | if test "$enableval" = yes; then |
3158 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3159 | else | |
3160 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3161 | fi | |
a0b9e27f | 3162 | |
a1622950 | 3163 | else |
a0b9e27f | 3164 | |
a1622950 VZ |
3165 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3166 | if test "x$LINE" != x ; then | |
3167 | eval "DEFAULT_$LINE" | |
3168 | else | |
3169 | no_cache=1 | |
3170 | fi | |
3171 | ||
3172 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
3173 | |
3174 | fi | |
a1622950 VZ |
3175 | |
3176 | ||
3177 | eval "$ac_cv_use_ftp" | |
3178 | if test "$no_cache" != 1; then | |
3179 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3180 | fi | |
3181 | ||
3182 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 3183 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3184 | else |
a0b9e27f | 3185 | echo "$ac_t""no" 1>&6 |
a1622950 | 3186 | fi |
a0b9e27f | 3187 | |
a1622950 | 3188 | |
a0b9e27f | 3189 | echo $ac_n "checking for --enable-http""... $ac_c" 1>&6 |
6969f178 | 3190 | echo "configure:3191: checking for --enable-http" >&5 |
a1622950 VZ |
3191 | no_cache=0 |
3192 | # Check whether --enable-http or --disable-http was given. | |
3193 | if test "${enable_http+set}" = set; then | |
3194 | enableval="$enable_http" | |
a0b9e27f | 3195 | |
a1622950 VZ |
3196 | if test "$enableval" = yes; then |
3197 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3198 | else | |
3199 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3200 | fi | |
a0b9e27f | 3201 | |
a1622950 | 3202 | else |
a0b9e27f | 3203 | |
a1622950 VZ |
3204 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3205 | if test "x$LINE" != x ; then | |
3206 | eval "DEFAULT_$LINE" | |
3207 | else | |
3208 | no_cache=1 | |
3209 | fi | |
3210 | ||
3211 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
3212 | |
3213 | fi | |
a1622950 VZ |
3214 | |
3215 | ||
3216 | eval "$ac_cv_use_http" | |
3217 | if test "$no_cache" != 1; then | |
3218 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3219 | fi | |
3220 | ||
3221 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 3222 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3223 | else |
a0b9e27f | 3224 | echo "$ac_t""no" 1>&6 |
a1622950 | 3225 | fi |
a0b9e27f | 3226 | |
a1622950 | 3227 | |
a0b9e27f | 3228 | echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6 |
6969f178 | 3229 | echo "configure:3230: checking for --enable-fileproto" >&5 |
a1622950 VZ |
3230 | no_cache=0 |
3231 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3232 | if test "${enable_fileproto+set}" = set; then | |
3233 | enableval="$enable_fileproto" | |
a0b9e27f | 3234 | |
a1622950 VZ |
3235 | if test "$enableval" = yes; then |
3236 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3237 | else | |
3238 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3239 | fi | |
a0b9e27f | 3240 | |
a1622950 | 3241 | else |
a0b9e27f | 3242 | |
a1622950 VZ |
3243 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
3244 | if test "x$LINE" != x ; then | |
3245 | eval "DEFAULT_$LINE" | |
3246 | else | |
3247 | no_cache=1 | |
3248 | fi | |
3249 | ||
3250 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
3251 | |
3252 | fi | |
a1622950 VZ |
3253 | |
3254 | ||
3255 | eval "$ac_cv_use_fileproto" | |
3256 | if test "$no_cache" != 1; then | |
3257 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3258 | fi | |
3259 | ||
3260 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 3261 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3262 | else |
a0b9e27f | 3263 | echo "$ac_t""no" 1>&6 |
a1622950 | 3264 | fi |
a0b9e27f | 3265 | |
a1622950 | 3266 | |
a0b9e27f | 3267 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
6969f178 | 3268 | echo "configure:3269: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3269 | no_cache=0 |
3270 | # Check whether --enable-sockets or --disable-sockets was given. | |
3271 | if test "${enable_sockets+set}" = set; then | |
3272 | enableval="$enable_sockets" | |
a0b9e27f | 3273 | |
10f2d63a VZ |
3274 | if test "$enableval" = yes; then |
3275 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3276 | else | |
3277 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3278 | fi | |
a0b9e27f | 3279 | |
10f2d63a | 3280 | else |
a0b9e27f | 3281 | |
10f2d63a VZ |
3282 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3283 | if test "x$LINE" != x ; then | |
3284 | eval "DEFAULT_$LINE" | |
3285 | else | |
3286 | no_cache=1 | |
3287 | fi | |
3288 | ||
3289 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
a0b9e27f MB |
3290 | |
3291 | fi | |
10f2d63a VZ |
3292 | |
3293 | ||
3294 | eval "$ac_cv_use_sockets" | |
3295 | if test "$no_cache" != 1; then | |
3296 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3297 | fi | |
3298 | ||
3299 | if test "$wxUSE_SOCKETS" = yes; then | |
a0b9e27f | 3300 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3301 | else |
a0b9e27f | 3302 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3303 | fi |
a0b9e27f | 3304 | |
8284b0c5 | 3305 | |
52127426 | 3306 | |
a0b9e27f | 3307 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 |
6969f178 | 3308 | echo "configure:3309: checking for --enable-ipc" >&5 |
10f2d63a | 3309 | no_cache=0 |
eb4efbdc VZ |
3310 | # Check whether --enable-ipc or --disable-ipc was given. |
3311 | if test "${enable_ipc+set}" = set; then | |
3312 | enableval="$enable_ipc" | |
a0b9e27f | 3313 | |
10f2d63a | 3314 | if test "$enableval" = yes; then |
eb4efbdc | 3315 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3316 | else |
eb4efbdc | 3317 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3318 | fi |
a0b9e27f | 3319 | |
10f2d63a | 3320 | else |
a0b9e27f | 3321 | |
eb4efbdc | 3322 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3323 | if test "x$LINE" != x ; then |
3324 | eval "DEFAULT_$LINE" | |
3325 | else | |
3326 | no_cache=1 | |
3327 | fi | |
3328 | ||
eb4efbdc | 3329 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
a0b9e27f MB |
3330 | |
3331 | fi | |
10f2d63a VZ |
3332 | |
3333 | ||
eb4efbdc | 3334 | eval "$ac_cv_use_ipc" |
10f2d63a | 3335 | if test "$no_cache" != 1; then |
eb4efbdc | 3336 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3337 | fi |
3338 | ||
eb4efbdc | 3339 | if test "$wxUSE_IPC" = yes; then |
a0b9e27f | 3340 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3341 | else |
a0b9e27f | 3342 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3343 | fi |
a0b9e27f | 3344 | |
52127426 | 3345 | |
8284b0c5 | 3346 | |
a0b9e27f | 3347 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
6969f178 | 3348 | echo "configure:3349: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3349 | no_cache=0 |
3350 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3351 | if test "${enable_cmdline+set}" = set; then | |
3352 | enableval="$enable_cmdline" | |
a0b9e27f | 3353 | |
1e6feb95 VZ |
3354 | if test "$enableval" = yes; then |
3355 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3356 | else | |
3357 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3358 | fi | |
a0b9e27f | 3359 | |
1e6feb95 | 3360 | else |
a0b9e27f | 3361 | |
1e6feb95 VZ |
3362 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
3363 | if test "x$LINE" != x ; then | |
3364 | eval "DEFAULT_$LINE" | |
3365 | else | |
3366 | no_cache=1 | |
3367 | fi | |
3368 | ||
3369 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
a0b9e27f MB |
3370 | |
3371 | fi | |
1e6feb95 VZ |
3372 | |
3373 | ||
3374 | eval "$ac_cv_use_cmdline" | |
3375 | if test "$no_cache" != 1; then | |
3376 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3377 | fi | |
3378 | ||
3379 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
a0b9e27f | 3380 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3381 | else |
a0b9e27f | 3382 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3383 | fi |
a0b9e27f | 3384 | |
1e6feb95 | 3385 | |
a0b9e27f | 3386 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 |
6969f178 | 3387 | echo "configure:3388: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3388 | no_cache=0 |
3389 | # Check whether --enable-datetime or --disable-datetime was given. | |
3390 | if test "${enable_datetime+set}" = set; then | |
3391 | enableval="$enable_datetime" | |
a0b9e27f | 3392 | |
1e6feb95 VZ |
3393 | if test "$enableval" = yes; then |
3394 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3395 | else | |
3396 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3397 | fi | |
a0b9e27f | 3398 | |
1e6feb95 | 3399 | else |
a0b9e27f | 3400 | |
1e6feb95 VZ |
3401 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
3402 | if test "x$LINE" != x ; then | |
3403 | eval "DEFAULT_$LINE" | |
3404 | else | |
3405 | no_cache=1 | |
3406 | fi | |
3407 | ||
3408 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
a0b9e27f MB |
3409 | |
3410 | fi | |
1e6feb95 VZ |
3411 | |
3412 | ||
3413 | eval "$ac_cv_use_datetime" | |
3414 | if test "$no_cache" != 1; then | |
3415 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3416 | fi | |
3417 | ||
3418 | if test "$wxUSE_DATETIME" = yes; then | |
a0b9e27f | 3419 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3420 | else |
a0b9e27f | 3421 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3422 | fi |
a0b9e27f | 3423 | |
1e6feb95 | 3424 | |
a0b9e27f | 3425 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 |
6969f178 | 3426 | echo "configure:3427: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3427 | no_cache=0 |
3428 | # Check whether --enable-timedate or --disable-timedate was given. | |
3429 | if test "${enable_timedate+set}" = set; then | |
3430 | enableval="$enable_timedate" | |
a0b9e27f | 3431 | |
1e6feb95 VZ |
3432 | if test "$enableval" = yes; then |
3433 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3434 | else | |
3435 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3436 | fi | |
a0b9e27f | 3437 | |
1e6feb95 | 3438 | else |
a0b9e27f | 3439 | |
1e6feb95 VZ |
3440 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` |
3441 | if test "x$LINE" != x ; then | |
3442 | eval "DEFAULT_$LINE" | |
3443 | else | |
3444 | no_cache=1 | |
3445 | fi | |
3446 | ||
3447 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
a0b9e27f MB |
3448 | |
3449 | fi | |
1e6feb95 VZ |
3450 | |
3451 | ||
3452 | eval "$ac_cv_use_timedate" | |
3453 | if test "$no_cache" != 1; then | |
3454 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3455 | fi | |
3456 | ||
3457 | if test "$wxUSE_TIMEDATE" = yes; then | |
a0b9e27f | 3458 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3459 | else |
a0b9e27f | 3460 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3461 | fi |
a0b9e27f | 3462 | |
1e6feb95 | 3463 | |
a0b9e27f | 3464 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 |
6969f178 | 3465 | echo "configure:3466: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3466 | no_cache=0 |
3467 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3468 | if test "${enable_stopwatch+set}" = set; then | |
3469 | enableval="$enable_stopwatch" | |
a0b9e27f | 3470 | |
1e6feb95 VZ |
3471 | if test "$enableval" = yes; then |
3472 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3473 | else | |
3474 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3475 | fi | |
a0b9e27f | 3476 | |
1e6feb95 | 3477 | else |
a0b9e27f | 3478 | |
1e6feb95 VZ |
3479 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
3480 | if test "x$LINE" != x ; then | |
3481 | eval "DEFAULT_$LINE" | |
3482 | else | |
3483 | no_cache=1 | |
3484 | fi | |
3485 | ||
3486 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
a0b9e27f MB |
3487 | |
3488 | fi | |
1e6feb95 VZ |
3489 | |
3490 | ||
3491 | eval "$ac_cv_use_stopwatch" | |
3492 | if test "$no_cache" != 1; then | |
3493 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3494 | fi | |
3495 | ||
3496 | if test "$wxUSE_STOPWATCH" = yes; then | |
a0b9e27f | 3497 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3498 | else |
a0b9e27f | 3499 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3500 | fi |
a0b9e27f | 3501 | |
1e6feb95 | 3502 | |
a0b9e27f | 3503 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
6969f178 | 3504 | echo "configure:3505: checking for --enable-dialupman" >&5 |
10f2d63a | 3505 | no_cache=0 |
eb4efbdc VZ |
3506 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3507 | if test "${enable_dialupman+set}" = set; then | |
3508 | enableval="$enable_dialupman" | |
a0b9e27f | 3509 | |
10f2d63a | 3510 | if test "$enableval" = yes; then |
eb4efbdc | 3511 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3512 | else |
eb4efbdc | 3513 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3514 | fi |
a0b9e27f | 3515 | |
10f2d63a | 3516 | else |
a0b9e27f | 3517 | |
eb4efbdc | 3518 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3519 | if test "x$LINE" != x ; then |
3520 | eval "DEFAULT_$LINE" | |
3521 | else | |
3522 | no_cache=1 | |
3523 | fi | |
3524 | ||
eb4efbdc | 3525 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
a0b9e27f MB |
3526 | |
3527 | fi | |
10f2d63a VZ |
3528 | |
3529 | ||
eb4efbdc | 3530 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3531 | if test "$no_cache" != 1; then |
eb4efbdc | 3532 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3533 | fi |
3534 | ||
eb4efbdc | 3535 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
a0b9e27f | 3536 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3537 | else |
a0b9e27f | 3538 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3539 | fi |
a0b9e27f | 3540 | |
10f2d63a | 3541 | |
a0b9e27f | 3542 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
6969f178 | 3543 | echo "configure:3544: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3544 | no_cache=0 |
3545 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3546 | if test "${enable_apple_ieee+set}" = set; then | |
3547 | enableval="$enable_apple_ieee" | |
a0b9e27f | 3548 | |
10f2d63a VZ |
3549 | if test "$enableval" = yes; then |
3550 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3551 | else | |
3552 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3553 | fi | |
a0b9e27f | 3554 | |
10f2d63a | 3555 | else |
a0b9e27f | 3556 | |
10f2d63a VZ |
3557 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3558 | if test "x$LINE" != x ; then | |
3559 | eval "DEFAULT_$LINE" | |
3560 | else | |
3561 | no_cache=1 | |
3562 | fi | |
3563 | ||
3564 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
a0b9e27f MB |
3565 | |
3566 | fi | |
10f2d63a VZ |
3567 | |
3568 | ||
3569 | eval "$ac_cv_use_apple_ieee" | |
3570 | if test "$no_cache" != 1; then | |
3571 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3572 | fi | |
3573 | ||
3574 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
a0b9e27f | 3575 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3576 | else |
a0b9e27f | 3577 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3578 | fi |
a0b9e27f | 3579 | |
10f2d63a | 3580 | |
a0b9e27f | 3581 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
6969f178 | 3582 | echo "configure:3583: checking for --enable-timer" >&5 |
10f2d63a | 3583 | no_cache=0 |
1e6feb95 VZ |
3584 | # Check whether --enable-timer or --disable-timer was given. |
3585 | if test "${enable_timer+set}" = set; then | |
3586 | enableval="$enable_timer" | |
a0b9e27f | 3587 | |
10f2d63a | 3588 | if test "$enableval" = yes; then |
1e6feb95 | 3589 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3590 | else |
1e6feb95 | 3591 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3592 | fi |
a0b9e27f | 3593 | |
10f2d63a | 3594 | else |
a0b9e27f | 3595 | |
1e6feb95 | 3596 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3597 | if test "x$LINE" != x ; then |
3598 | eval "DEFAULT_$LINE" | |
3599 | else | |
3600 | no_cache=1 | |
3601 | fi | |
3602 | ||
1e6feb95 | 3603 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
a0b9e27f MB |
3604 | |
3605 | fi | |
10f2d63a VZ |
3606 | |
3607 | ||
1e6feb95 | 3608 | eval "$ac_cv_use_timer" |
10f2d63a | 3609 | if test "$no_cache" != 1; then |
1e6feb95 | 3610 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3611 | fi |
3612 | ||
1e6feb95 | 3613 | if test "$wxUSE_TIMER" = yes; then |
a0b9e27f | 3614 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3615 | else |
a0b9e27f | 3616 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3617 | fi |
a0b9e27f | 3618 | |
10f2d63a | 3619 | |
a0b9e27f | 3620 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
6969f178 | 3621 | echo "configure:3622: checking for --enable-wave" >&5 |
10f2d63a VZ |
3622 | no_cache=0 |
3623 | # Check whether --enable-wave or --disable-wave was given. | |
3624 | if test "${enable_wave+set}" = set; then | |
3625 | enableval="$enable_wave" | |
a0b9e27f | 3626 | |
10f2d63a VZ |
3627 | if test "$enableval" = yes; then |
3628 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3629 | else | |
3630 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3631 | fi | |
a0b9e27f | 3632 | |
10f2d63a | 3633 | else |
a0b9e27f | 3634 | |
10f2d63a VZ |
3635 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3636 | if test "x$LINE" != x ; then | |
3637 | eval "DEFAULT_$LINE" | |
3638 | else | |
3639 | no_cache=1 | |
3640 | fi | |
3641 | ||
3642 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
a0b9e27f MB |
3643 | |
3644 | fi | |
10f2d63a VZ |
3645 | |
3646 | ||
3647 | eval "$ac_cv_use_wave" | |
3648 | if test "$no_cache" != 1; then | |
3649 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3650 | fi | |
3651 | ||
3652 | if test "$wxUSE_WAVE" = yes; then | |
a0b9e27f | 3653 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3654 | else |
a0b9e27f | 3655 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3656 | fi |
a0b9e27f | 3657 | |
10f2d63a | 3658 | |
a0b9e27f | 3659 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
6969f178 | 3660 | echo "configure:3661: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3661 | no_cache=0 |
3662 | # Check whether --enable-fraction or --disable-fraction was given. | |
3663 | if test "${enable_fraction+set}" = set; then | |
3664 | enableval="$enable_fraction" | |
a0b9e27f | 3665 | |
10f2d63a VZ |
3666 | if test "$enableval" = yes; then |
3667 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3668 | else | |
3669 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3670 | fi | |
a0b9e27f | 3671 | |
10f2d63a | 3672 | else |
a0b9e27f | 3673 | |
10f2d63a VZ |
3674 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3675 | if test "x$LINE" != x ; then | |
3676 | eval "DEFAULT_$LINE" | |
3677 | else | |
3678 | no_cache=1 | |
3679 | fi | |
3680 | ||
3681 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
a0b9e27f MB |
3682 | |
3683 | fi | |
10f2d63a VZ |
3684 | |
3685 | ||
3686 | eval "$ac_cv_use_fraction" | |
3687 | if test "$no_cache" != 1; then | |
3688 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3689 | fi | |
3690 | ||
3691 | if test "$wxUSE_FRACTION" = yes; then | |
a0b9e27f | 3692 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3693 | else |
a0b9e27f | 3694 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3695 | fi |
a0b9e27f | 3696 | |
10f2d63a | 3697 | |
a0b9e27f | 3698 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
6969f178 | 3699 | echo "configure:3700: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3700 | no_cache=0 |
3701 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3702 | if test "${enable_dynlib+set}" = set; then | |
3703 | enableval="$enable_dynlib" | |
a0b9e27f | 3704 | |
10f2d63a VZ |
3705 | if test "$enableval" = yes; then |
3706 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3707 | else | |
3708 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3709 | fi | |
a0b9e27f | 3710 | |
10f2d63a | 3711 | else |
a0b9e27f | 3712 | |
10f2d63a VZ |
3713 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3714 | if test "x$LINE" != x ; then | |
3715 | eval "DEFAULT_$LINE" | |
3716 | else | |
3717 | no_cache=1 | |
3718 | fi | |
3719 | ||
3720 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
a0b9e27f MB |
3721 | |
3722 | fi | |
10f2d63a VZ |
3723 | |
3724 | ||
3725 | eval "$ac_cv_use_dynlib" | |
3726 | if test "$no_cache" != 1; then | |
3727 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3728 | fi | |
3729 | ||
3730 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
a0b9e27f | 3731 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3732 | else |
a0b9e27f | 3733 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3734 | fi |
a0b9e27f | 3735 | |
10f2d63a | 3736 | |
a0b9e27f | 3737 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 |
6969f178 | 3738 | echo "configure:3739: checking for --enable-dynamicloader" >&5 |
0b9ab0bd RL |
3739 | no_cache=0 |
3740 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3741 | if test "${enable_dynamicloader+set}" = set; then | |
3742 | enableval="$enable_dynamicloader" | |
a0b9e27f | 3743 | |
0b9ab0bd RL |
3744 | if test "$enableval" = yes; then |
3745 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3746 | else | |
3747 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3748 | fi | |
a0b9e27f | 3749 | |
0b9ab0bd | 3750 | else |
a0b9e27f | 3751 | |
0b9ab0bd RL |
3752 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
3753 | if test "x$LINE" != x ; then | |
3754 | eval "DEFAULT_$LINE" | |
3755 | else | |
3756 | no_cache=1 | |
3757 | fi | |
3758 | ||
3759 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
a0b9e27f MB |
3760 | |
3761 | fi | |
0b9ab0bd RL |
3762 | |
3763 | ||
3764 | eval "$ac_cv_use_dynamicloader" | |
3765 | if test "$no_cache" != 1; then | |
3766 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3767 | fi | |
3768 | ||
3769 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
a0b9e27f | 3770 | echo "$ac_t""yes" 1>&6 |
0b9ab0bd | 3771 | else |
a0b9e27f | 3772 | echo "$ac_t""no" 1>&6 |
0b9ab0bd | 3773 | fi |
a0b9e27f | 3774 | |
0b9ab0bd | 3775 | |
a0b9e27f | 3776 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
6969f178 | 3777 | echo "configure:3778: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3778 | no_cache=0 |
3779 | # Check whether --enable-longlong or --disable-longlong was given. | |
3780 | if test "${enable_longlong+set}" = set; then | |
3781 | enableval="$enable_longlong" | |
a0b9e27f | 3782 | |
10f2d63a VZ |
3783 | if test "$enableval" = yes; then |
3784 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3785 | else | |
3786 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3787 | fi | |
a0b9e27f | 3788 | |
10f2d63a | 3789 | else |
a0b9e27f | 3790 | |
10f2d63a VZ |
3791 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3792 | if test "x$LINE" != x ; then | |
3793 | eval "DEFAULT_$LINE" | |
3794 | else | |
3795 | no_cache=1 | |
3796 | fi | |
3797 | ||
3798 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
a0b9e27f MB |
3799 | |
3800 | fi | |
10f2d63a VZ |
3801 | |
3802 | ||
3803 | eval "$ac_cv_use_longlong" | |
3804 | if test "$no_cache" != 1; then | |
3805 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3806 | fi | |
3807 | ||
3808 | if test "$wxUSE_LONGLONG" = yes; then | |
a0b9e27f | 3809 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3810 | else |
a0b9e27f | 3811 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3812 | fi |
a0b9e27f | 3813 | |
10f2d63a | 3814 | |
a0b9e27f | 3815 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
6969f178 | 3816 | echo "configure:3817: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3817 | no_cache=0 |
3818 | # Check whether --enable-geometry or --disable-geometry was given. | |
3819 | if test "${enable_geometry+set}" = set; then | |
3820 | enableval="$enable_geometry" | |
a0b9e27f | 3821 | |
e8f65ba6 RR |
3822 | if test "$enableval" = yes; then |
3823 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3824 | else | |
3825 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3826 | fi | |
a0b9e27f | 3827 | |
e8f65ba6 | 3828 | else |
a0b9e27f | 3829 | |
e8f65ba6 RR |
3830 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3831 | if test "x$LINE" != x ; then | |
3832 | eval "DEFAULT_$LINE" | |
3833 | else | |
3834 | no_cache=1 | |
3835 | fi | |
3836 | ||
3837 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
a0b9e27f MB |
3838 | |
3839 | fi | |
e8f65ba6 RR |
3840 | |
3841 | ||
3842 | eval "$ac_cv_use_geometry" | |
3843 | if test "$no_cache" != 1; then | |
3844 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3845 | fi | |
3846 | ||
3847 | if test "$wxUSE_GEOMETRY" = yes; then | |
a0b9e27f | 3848 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3849 | else |
a0b9e27f | 3850 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3851 | fi |
a0b9e27f | 3852 | |
e8f65ba6 | 3853 | |
a0b9e27f | 3854 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
6969f178 | 3855 | echo "configure:3856: checking for --enable-log" >&5 |
10f2d63a VZ |
3856 | no_cache=0 |
3857 | # Check whether --enable-log or --disable-log was given. | |
3858 | if test "${enable_log+set}" = set; then | |
3859 | enableval="$enable_log" | |
a0b9e27f | 3860 | |
10f2d63a VZ |
3861 | if test "$enableval" = yes; then |
3862 | ac_cv_use_log='wxUSE_LOG=yes' | |
3863 | else | |
3864 | ac_cv_use_log='wxUSE_LOG=no' | |
3865 | fi | |
a0b9e27f | 3866 | |
10f2d63a | 3867 | else |
a0b9e27f | 3868 | |
10f2d63a VZ |
3869 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3870 | if test "x$LINE" != x ; then | |
3871 | eval "DEFAULT_$LINE" | |
3872 | else | |
3873 | no_cache=1 | |
3874 | fi | |
3875 | ||
3876 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
a0b9e27f MB |
3877 | |
3878 | fi | |
10f2d63a VZ |
3879 | |
3880 | ||
3881 | eval "$ac_cv_use_log" | |
3882 | if test "$no_cache" != 1; then | |
3883 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3884 | fi | |
3885 | ||
3886 | if test "$wxUSE_LOG" = yes; then | |
a0b9e27f | 3887 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3888 | else |
a0b9e27f | 3889 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3890 | fi |
a0b9e27f | 3891 | |
10f2d63a | 3892 | |
a0b9e27f | 3893 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
6969f178 | 3894 | echo "configure:3895: checking for --enable-streams" >&5 |
10f2d63a VZ |
3895 | no_cache=0 |
3896 | # Check whether --enable-streams or --disable-streams was given. | |
3897 | if test "${enable_streams+set}" = set; then | |
3898 | enableval="$enable_streams" | |
a0b9e27f | 3899 | |
10f2d63a VZ |
3900 | if test "$enableval" = yes; then |
3901 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3902 | else | |
3903 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3904 | fi | |
a0b9e27f | 3905 | |
10f2d63a | 3906 | else |
a0b9e27f | 3907 | |
10f2d63a VZ |
3908 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3909 | if test "x$LINE" != x ; then | |
3910 | eval "DEFAULT_$LINE" | |
3911 | else | |
3912 | no_cache=1 | |
3913 | fi | |
3914 | ||
3915 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
a0b9e27f MB |
3916 | |
3917 | fi | |
10f2d63a VZ |
3918 | |
3919 | ||
3920 | eval "$ac_cv_use_streams" | |
3921 | if test "$no_cache" != 1; then | |
3922 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3923 | fi | |
3924 | ||
3925 | if test "$wxUSE_STREAMS" = yes; then | |
a0b9e27f | 3926 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3927 | else |
a0b9e27f | 3928 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3929 | fi |
a0b9e27f | 3930 | |
10f2d63a | 3931 | |
a0b9e27f | 3932 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
6969f178 | 3933 | echo "configure:3934: checking for --enable-file" >&5 |
10f2d63a VZ |
3934 | no_cache=0 |
3935 | # Check whether --enable-file or --disable-file was given. | |
3936 | if test "${enable_file+set}" = set; then | |
3937 | enableval="$enable_file" | |
a0b9e27f | 3938 | |
10f2d63a VZ |
3939 | if test "$enableval" = yes; then |
3940 | ac_cv_use_file='wxUSE_FILE=yes' | |
3941 | else | |
3942 | ac_cv_use_file='wxUSE_FILE=no' | |
3943 | fi | |
a0b9e27f | 3944 | |
10f2d63a | 3945 | else |
a0b9e27f | 3946 | |
10f2d63a VZ |
3947 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3948 | if test "x$LINE" != x ; then | |
3949 | eval "DEFAULT_$LINE" | |
3950 | else | |
3951 | no_cache=1 | |
3952 | fi | |
3953 | ||
3954 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
a0b9e27f MB |
3955 | |
3956 | fi | |
10f2d63a VZ |
3957 | |
3958 | ||
3959 | eval "$ac_cv_use_file" | |
3960 | if test "$no_cache" != 1; then | |
3961 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3962 | fi | |
3963 | ||
3964 | if test "$wxUSE_FILE" = yes; then | |
a0b9e27f | 3965 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3966 | else |
a0b9e27f | 3967 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3968 | fi |
a0b9e27f | 3969 | |
10f2d63a | 3970 | |
a0b9e27f | 3971 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
6969f178 | 3972 | echo "configure:3973: checking for --enable-ffile" >&5 |
10f2d63a | 3973 | no_cache=0 |
1e6feb95 VZ |
3974 | # Check whether --enable-ffile or --disable-ffile was given. |
3975 | if test "${enable_ffile+set}" = set; then | |
3976 | enableval="$enable_ffile" | |
a0b9e27f | 3977 | |
10f2d63a | 3978 | if test "$enableval" = yes; then |
1e6feb95 | 3979 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3980 | else |
1e6feb95 | 3981 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3982 | fi |
a0b9e27f | 3983 | |
10f2d63a | 3984 | else |
a0b9e27f | 3985 | |
1e6feb95 | 3986 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3987 | if test "x$LINE" != x ; then |
3988 | eval "DEFAULT_$LINE" | |
3989 | else | |
3990 | no_cache=1 | |
3991 | fi | |
3992 | ||
1e6feb95 | 3993 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
a0b9e27f MB |
3994 | |
3995 | fi | |
10f2d63a VZ |
3996 | |
3997 | ||
1e6feb95 | 3998 | eval "$ac_cv_use_ffile" |
10f2d63a | 3999 | if test "$no_cache" != 1; then |
1e6feb95 | 4000 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4001 | fi |
4002 | ||
1e6feb95 | 4003 | if test "$wxUSE_FFILE" = yes; then |
a0b9e27f | 4004 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4005 | else |
a0b9e27f | 4006 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4007 | fi |
a0b9e27f | 4008 | |
10f2d63a | 4009 | |
a0b9e27f | 4010 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
6969f178 | 4011 | echo "configure:4012: checking for --enable-textbuf" >&5 |
a3a584a7 VZ |
4012 | no_cache=0 |
4013 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4014 | if test "${enable_textbuf+set}" = set; then | |
4015 | enableval="$enable_textbuf" | |
a0b9e27f | 4016 | |
a3a584a7 VZ |
4017 | if test "$enableval" = yes; then |
4018 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4019 | else | |
4020 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4021 | fi | |
a0b9e27f | 4022 | |
a3a584a7 | 4023 | else |
a0b9e27f | 4024 | |
a3a584a7 VZ |
4025 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4026 | if test "x$LINE" != x ; then | |
4027 | eval "DEFAULT_$LINE" | |
4028 | else | |
4029 | no_cache=1 | |
4030 | fi | |
4031 | ||
4032 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a0b9e27f MB |
4033 | |
4034 | fi | |
a3a584a7 VZ |
4035 | |
4036 | ||
4037 | eval "$ac_cv_use_textbuf" | |
4038 | if test "$no_cache" != 1; then | |
4039 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4040 | fi | |
4041 | ||
4042 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
a0b9e27f | 4043 | echo "$ac_t""yes" 1>&6 |
a3a584a7 | 4044 | else |
a0b9e27f | 4045 | echo "$ac_t""no" 1>&6 |
a3a584a7 | 4046 | fi |
a0b9e27f | 4047 | |
a3a584a7 | 4048 | |
a0b9e27f | 4049 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
6969f178 | 4050 | echo "configure:4051: checking for --enable-textfile" >&5 |
10f2d63a | 4051 | no_cache=0 |
1e6feb95 VZ |
4052 | # Check whether --enable-textfile or --disable-textfile was given. |
4053 | if test "${enable_textfile+set}" = set; then | |
4054 | enableval="$enable_textfile" | |
a0b9e27f | 4055 | |
10f2d63a | 4056 | if test "$enableval" = yes; then |
1e6feb95 | 4057 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4058 | else |
1e6feb95 | 4059 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4060 | fi |
a0b9e27f | 4061 | |
10f2d63a | 4062 | else |
a0b9e27f | 4063 | |
1e6feb95 | 4064 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4065 | if test "x$LINE" != x ; then |
4066 | eval "DEFAULT_$LINE" | |
4067 | else | |
4068 | no_cache=1 | |
4069 | fi | |
4070 | ||
1e6feb95 | 4071 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
a0b9e27f MB |
4072 | |
4073 | fi | |
10f2d63a VZ |
4074 | |
4075 | ||
1e6feb95 | 4076 | eval "$ac_cv_use_textfile" |
10f2d63a | 4077 | if test "$no_cache" != 1; then |
1e6feb95 | 4078 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4079 | fi |
4080 | ||
1e6feb95 | 4081 | if test "$wxUSE_TEXTFILE" = yes; then |
a0b9e27f | 4082 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4083 | else |
a0b9e27f | 4084 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4085 | fi |
a0b9e27f | 4086 | |
10f2d63a | 4087 | |
a0b9e27f | 4088 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
6969f178 | 4089 | echo "configure:4090: checking for --enable-fontmap" >&5 |
10f2d63a | 4090 | no_cache=0 |
1e6feb95 VZ |
4091 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4092 | if test "${enable_fontmap+set}" = set; then | |
4093 | enableval="$enable_fontmap" | |
a0b9e27f | 4094 | |
10f2d63a | 4095 | if test "$enableval" = yes; then |
1e6feb95 | 4096 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4097 | else |
1e6feb95 | 4098 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4099 | fi |
a0b9e27f | 4100 | |
10f2d63a | 4101 | else |
a0b9e27f | 4102 | |
1e6feb95 | 4103 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4104 | if test "x$LINE" != x ; then |
4105 | eval "DEFAULT_$LINE" | |
4106 | else | |
4107 | no_cache=1 | |
4108 | fi | |
4109 | ||
1e6feb95 | 4110 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
a0b9e27f MB |
4111 | |
4112 | fi | |
10f2d63a VZ |
4113 | |
4114 | ||
1e6feb95 | 4115 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4116 | if test "$no_cache" != 1; then |
1e6feb95 | 4117 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4118 | fi |
4119 | ||
1e6feb95 | 4120 | if test "$wxUSE_FONTMAP" = yes; then |
a0b9e27f | 4121 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4122 | else |
a0b9e27f | 4123 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4124 | fi |
a0b9e27f | 4125 | |
10f2d63a | 4126 | |
a0b9e27f | 4127 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
6969f178 | 4128 | echo "configure:4129: checking for --enable-unicode" >&5 |
10f2d63a | 4129 | no_cache=0 |
1e6feb95 VZ |
4130 | # Check whether --enable-unicode or --disable-unicode was given. |
4131 | if test "${enable_unicode+set}" = set; then | |
4132 | enableval="$enable_unicode" | |
a0b9e27f | 4133 | |
1e6feb95 VZ |
4134 | if test "$enableval" = yes; then |
4135 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4136 | else | |
4137 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4138 | fi | |
a0b9e27f | 4139 | |
1e6feb95 | 4140 | else |
a0b9e27f | 4141 | |
1e6feb95 VZ |
4142 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4143 | if test "x$LINE" != x ; then | |
4144 | eval "DEFAULT_$LINE" | |
4145 | else | |
4146 | no_cache=1 | |
4147 | fi | |
4148 | ||
4149 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
a0b9e27f MB |
4150 | |
4151 | fi | |
1e6feb95 VZ |
4152 | |
4153 | ||
4154 | eval "$ac_cv_use_unicode" | |
4155 | if test "$no_cache" != 1; then | |
4156 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4157 | fi | |
4158 | ||
4159 | if test "$wxUSE_UNICODE" = yes; then | |
a0b9e27f | 4160 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4161 | else |
a0b9e27f | 4162 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4163 | fi |
a0b9e27f | 4164 | |
1e6feb95 | 4165 | |
a0b9e27f | 4166 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 |
6969f178 | 4167 | echo "configure:4168: checking for --enable-mslu" >&5 |
a72a4bfa VS |
4168 | no_cache=0 |
4169 | # Check whether --enable-mslu or --disable-mslu was given. | |
4170 | if test "${enable_mslu+set}" = set; then | |
4171 | enableval="$enable_mslu" | |
a0b9e27f | 4172 | |
a72a4bfa VS |
4173 | if test "$enableval" = yes; then |
4174 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4175 | else | |
4176 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4177 | fi | |
a0b9e27f | 4178 | |
a72a4bfa | 4179 | else |
a0b9e27f | 4180 | |
a72a4bfa VS |
4181 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
4182 | if test "x$LINE" != x ; then | |
4183 | eval "DEFAULT_$LINE" | |
4184 | else | |
4185 | no_cache=1 | |
4186 | fi | |
4187 | ||
4188 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a0b9e27f MB |
4189 | |
4190 | fi | |
a72a4bfa VS |
4191 | |
4192 | ||
4193 | eval "$ac_cv_use_mslu" | |
4194 | if test "$no_cache" != 1; then | |
4195 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4196 | fi | |
4197 | ||
4198 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
a0b9e27f | 4199 | echo "$ac_t""yes" 1>&6 |
a72a4bfa | 4200 | else |
a0b9e27f | 4201 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 4202 | fi |
a0b9e27f | 4203 | |
a72a4bfa | 4204 | |
a0b9e27f | 4205 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
6969f178 | 4206 | echo "configure:4207: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
4207 | no_cache=0 |
4208 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4209 | if test "${enable_wxprintfv+set}" = set; then | |
4210 | enableval="$enable_wxprintfv" | |
a0b9e27f | 4211 | |
1e6feb95 | 4212 | if test "$enableval" = yes; then |
10f2d63a VZ |
4213 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4214 | else | |
4215 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4216 | fi | |
a0b9e27f | 4217 | |
10f2d63a | 4218 | else |
a0b9e27f | 4219 | |
10f2d63a VZ |
4220 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4221 | if test "x$LINE" != x ; then | |
4222 | eval "DEFAULT_$LINE" | |
4223 | else | |
4224 | no_cache=1 | |
4225 | fi | |
4226 | ||
4227 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
a0b9e27f MB |
4228 | |
4229 | fi | |
10f2d63a VZ |
4230 | |
4231 | ||
4232 | eval "$ac_cv_use_wxprintfv" | |
4233 | if test "$no_cache" != 1; then | |
4234 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4235 | fi | |
4236 | ||
4237 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
a0b9e27f | 4238 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4239 | else |
a0b9e27f | 4240 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4241 | fi |
a0b9e27f | 4242 | |
10f2d63a | 4243 | |
a0b9e27f | 4244 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
6969f178 | 4245 | echo "configure:4246: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
4246 | no_cache=0 |
4247 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4248 | if test "${enable_std_iostreams+set}" = set; then | |
4249 | enableval="$enable_std_iostreams" | |
a0b9e27f | 4250 | |
10f2d63a VZ |
4251 | if test "$enableval" = yes; then |
4252 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4253 | else | |
4254 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4255 | fi | |
a0b9e27f | 4256 | |
10f2d63a | 4257 | else |
a0b9e27f | 4258 | |
10f2d63a VZ |
4259 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4260 | if test "x$LINE" != x ; then | |
4261 | eval "DEFAULT_$LINE" | |
4262 | else | |
4263 | no_cache=1 | |
4264 | fi | |
4265 | ||
4266 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
a0b9e27f MB |
4267 | |
4268 | fi | |
10f2d63a VZ |
4269 | |
4270 | ||
4271 | eval "$ac_cv_use_std_iostreams" | |
4272 | if test "$no_cache" != 1; then | |
4273 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4274 | fi | |
4275 | ||
4276 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
a0b9e27f | 4277 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4278 | else |
a0b9e27f | 4279 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4280 | fi |
a0b9e27f | 4281 | |
10f2d63a | 4282 | |
a0b9e27f | 4283 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
6969f178 | 4284 | echo "configure:4285: checking for --enable-filesystem" >&5 |
24528b0c VS |
4285 | no_cache=0 |
4286 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4287 | if test "${enable_filesystem+set}" = set; then | |
4288 | enableval="$enable_filesystem" | |
a0b9e27f | 4289 | |
24528b0c VS |
4290 | if test "$enableval" = yes; then |
4291 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4292 | else | |
4293 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4294 | fi | |
a0b9e27f | 4295 | |
24528b0c | 4296 | else |
a0b9e27f | 4297 | |
24528b0c VS |
4298 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4299 | if test "x$LINE" != x ; then | |
4300 | eval "DEFAULT_$LINE" | |
4301 | else | |
4302 | no_cache=1 | |
4303 | fi | |
4304 | ||
4305 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
a0b9e27f MB |
4306 | |
4307 | fi | |
24528b0c VS |
4308 | |
4309 | ||
4310 | eval "$ac_cv_use_filesystem" | |
4311 | if test "$no_cache" != 1; then | |
4312 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4313 | fi | |
4314 | ||
4315 | if test "$wxUSE_FILESYSTEM" = yes; then | |
a0b9e27f | 4316 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4317 | else |
a0b9e27f | 4318 | echo "$ac_t""no" 1>&6 |
24528b0c | 4319 | fi |
a0b9e27f | 4320 | |
24528b0c | 4321 | |
a0b9e27f | 4322 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
6969f178 | 4323 | echo "configure:4324: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
4324 | no_cache=0 |
4325 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4326 | if test "${enable_fs_inet+set}" = set; then | |
4327 | enableval="$enable_fs_inet" | |
a0b9e27f | 4328 | |
10f2d63a VZ |
4329 | if test "$enableval" = yes; then |
4330 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4331 | else | |
4332 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4333 | fi | |
a0b9e27f | 4334 | |
10f2d63a | 4335 | else |
a0b9e27f | 4336 | |
10f2d63a VZ |
4337 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4338 | if test "x$LINE" != x ; then | |
4339 | eval "DEFAULT_$LINE" | |
4340 | else | |
4341 | no_cache=1 | |
4342 | fi | |
4343 | ||
4344 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
a0b9e27f MB |
4345 | |
4346 | fi | |
10f2d63a VZ |
4347 | |
4348 | ||
4349 | eval "$ac_cv_use_fs_inet" | |
4350 | if test "$no_cache" != 1; then | |
4351 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4352 | fi | |
4353 | ||
4354 | if test "$wxUSE_FS_INET" = yes; then | |
a0b9e27f | 4355 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4356 | else |
a0b9e27f | 4357 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4358 | fi |
a0b9e27f | 4359 | |
10f2d63a | 4360 | |
a0b9e27f | 4361 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
6969f178 | 4362 | echo "configure:4363: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4363 | no_cache=0 |
4364 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4365 | if test "${enable_fs_zip+set}" = set; then | |
4366 | enableval="$enable_fs_zip" | |
a0b9e27f | 4367 | |
10f2d63a VZ |
4368 | if test "$enableval" = yes; then |
4369 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4370 | else | |
4371 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4372 | fi | |
a0b9e27f | 4373 | |
10f2d63a | 4374 | else |
a0b9e27f | 4375 | |
10f2d63a VZ |
4376 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4377 | if test "x$LINE" != x ; then | |
4378 | eval "DEFAULT_$LINE" | |
4379 | else | |
4380 | no_cache=1 | |
4381 | fi | |
4382 | ||
4383 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
a0b9e27f MB |
4384 | |
4385 | fi | |
10f2d63a VZ |
4386 | |
4387 | ||
4388 | eval "$ac_cv_use_fs_zip" | |
4389 | if test "$no_cache" != 1; then | |
4390 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4391 | fi | |
4392 | ||
4393 | if test "$wxUSE_FS_ZIP" = yes; then | |
a0b9e27f | 4394 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4395 | else |
a0b9e27f | 4396 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4397 | fi |
a0b9e27f | 4398 | |
10f2d63a | 4399 | |
a0b9e27f | 4400 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
6969f178 | 4401 | echo "configure:4402: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4402 | no_cache=0 |
4403 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4404 | if test "${enable_zipstream+set}" = set; then | |
4405 | enableval="$enable_zipstream" | |
a0b9e27f | 4406 | |
10f2d63a VZ |
4407 | if test "$enableval" = yes; then |
4408 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4409 | else | |
4410 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4411 | fi | |
a0b9e27f | 4412 | |
10f2d63a | 4413 | else |
a0b9e27f | 4414 | |
10f2d63a VZ |
4415 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4416 | if test "x$LINE" != x ; then | |
4417 | eval "DEFAULT_$LINE" | |
4418 | else | |
4419 | no_cache=1 | |
4420 | fi | |
4421 | ||
4422 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
a0b9e27f MB |
4423 | |
4424 | fi | |
10f2d63a VZ |
4425 | |
4426 | ||
4427 | eval "$ac_cv_use_zipstream" | |
4428 | if test "$no_cache" != 1; then | |
4429 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4430 | fi | |
4431 | ||
4432 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
a0b9e27f | 4433 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4434 | else |
a0b9e27f | 4435 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4436 | fi |
a0b9e27f | 4437 | |
8284b0c5 | 4438 | |
52127426 | 4439 | |
a0b9e27f | 4440 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 |
6969f178 | 4441 | echo "configure:4442: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4442 | no_cache=0 |
4443 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4444 | if test "${enable_catch_segvs+set}" = set; then | |
4445 | enableval="$enable_catch_segvs" | |
a0b9e27f | 4446 | |
eb4efbdc VZ |
4447 | if test "$enableval" = yes; then |
4448 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4449 | else | |
4450 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4451 | fi | |
a0b9e27f | 4452 | |
eb4efbdc | 4453 | else |
a0b9e27f | 4454 | |
eb4efbdc VZ |
4455 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4456 | if test "x$LINE" != x ; then | |
4457 | eval "DEFAULT_$LINE" | |
4458 | else | |
4459 | no_cache=1 | |
4460 | fi | |
4461 | ||
4462 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
a0b9e27f MB |
4463 | |
4464 | fi | |
eb4efbdc VZ |
4465 | |
4466 | ||
4467 | eval "$ac_cv_use_catch_segvs" | |
4468 | if test "$no_cache" != 1; then | |
4469 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4470 | fi | |
4471 | ||
4472 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
a0b9e27f | 4473 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4474 | else |
a0b9e27f | 4475 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4476 | fi |
a0b9e27f | 4477 | |
eb4efbdc | 4478 | |
a0b9e27f | 4479 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
6969f178 | 4480 | echo "configure:4481: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4481 | no_cache=0 |
4482 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4483 | if test "${enable_snglinst+set}" = set; then | |
4484 | enableval="$enable_snglinst" | |
a0b9e27f | 4485 | |
4f3c5f06 VZ |
4486 | if test "$enableval" = yes; then |
4487 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4488 | else | |
4489 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4490 | fi | |
a0b9e27f | 4491 | |
4f3c5f06 | 4492 | else |
a0b9e27f | 4493 | |
4f3c5f06 VZ |
4494 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${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_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
a0b9e27f MB |
4502 | |
4503 | fi | |
4f3c5f06 VZ |
4504 | |
4505 | ||
4506 | eval "$ac_cv_use_snglinst" | |
4507 | if test "$no_cache" != 1; then | |
4508 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4509 | fi | |
4510 | ||
4511 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
a0b9e27f | 4512 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4513 | else |
a0b9e27f | 4514 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4515 | fi |
a0b9e27f | 4516 | |
52127426 | 4517 | |
8284b0c5 | 4518 | |
a0b9e27f | 4519 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
6969f178 | 4520 | echo "configure:4521: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4521 | no_cache=0 |
4522 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4523 | if test "${enable_mimetype+set}" = set; then | |
4524 | enableval="$enable_mimetype" | |
a0b9e27f | 4525 | |
1e6feb95 VZ |
4526 | if test "$enableval" = yes; then |
4527 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4528 | else | |
4529 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4530 | fi | |
a0b9e27f | 4531 | |
1e6feb95 | 4532 | else |
a0b9e27f | 4533 | |
1e6feb95 VZ |
4534 | LINE=`grep "wxUSE_MIMETYPE" ${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_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
a0b9e27f MB |
4542 | |
4543 | fi | |
1e6feb95 VZ |
4544 | |
4545 | ||
4546 | eval "$ac_cv_use_mimetype" | |
4547 | if test "$no_cache" != 1; then | |
4548 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4549 | fi | |
4550 | ||
4551 | if test "$wxUSE_MIMETYPE" = yes; then | |
a0b9e27f | 4552 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4553 | else |
a0b9e27f | 4554 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4555 | fi |
a0b9e27f | 4556 | |
1e6feb95 | 4557 | |
a0b9e27f | 4558 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
6969f178 | 4559 | echo "configure:4560: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4560 | no_cache=0 |
4561 | # Check whether --enable-system_options or --disable-system_options was given. | |
4562 | if test "${enable_system_options+set}" = set; then | |
4563 | enableval="$enable_system_options" | |
a0b9e27f | 4564 | |
3e44f09d VZ |
4565 | if test "$enableval" = yes; then |
4566 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4567 | else | |
4568 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4569 | fi | |
a0b9e27f | 4570 | |
3e44f09d | 4571 | else |
a0b9e27f | 4572 | |
3e44f09d VZ |
4573 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
4574 | if test "x$LINE" != x ; then | |
4575 | eval "DEFAULT_$LINE" | |
4576 | else | |
4577 | no_cache=1 | |
4578 | fi | |
4579 | ||
4580 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
a0b9e27f MB |
4581 | |
4582 | fi | |
3e44f09d VZ |
4583 | |
4584 | ||
4585 | eval "$ac_cv_use_system_options" | |
4586 | if test "$no_cache" != 1; then | |
4587 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4588 | fi | |
4589 | ||
4590 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
a0b9e27f | 4591 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 4592 | else |
a0b9e27f | 4593 | echo "$ac_t""no" 1>&6 |
3e44f09d | 4594 | fi |
a0b9e27f | 4595 | |
8284b0c5 | 4596 | |
52127426 | 4597 | |
a0b9e27f | 4598 | echo $ac_n "checking for --enable-url""... $ac_c" 1>&6 |
6969f178 | 4599 | echo "configure:4600: checking for --enable-url" >&5 |
4cdb0ab0 VS |
4600 | no_cache=0 |
4601 | # Check whether --enable-url or --disable-url was given. | |
4602 | if test "${enable_url+set}" = set; then | |
4603 | enableval="$enable_url" | |
a0b9e27f | 4604 | |
4cdb0ab0 VS |
4605 | if test "$enableval" = yes; then |
4606 | ac_cv_use_url='wxUSE_URL=yes' | |
4607 | else | |
4608 | ac_cv_use_url='wxUSE_URL=no' | |
4609 | fi | |
a0b9e27f | 4610 | |
4cdb0ab0 | 4611 | else |
a0b9e27f | 4612 | |
4cdb0ab0 VS |
4613 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
4614 | if test "x$LINE" != x ; then | |
4615 | eval "DEFAULT_$LINE" | |
4616 | else | |
4617 | no_cache=1 | |
4618 | fi | |
4619 | ||
4620 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
a0b9e27f MB |
4621 | |
4622 | fi | |
4cdb0ab0 VS |
4623 | |
4624 | ||
4625 | eval "$ac_cv_use_url" | |
4626 | if test "$no_cache" != 1; then | |
4627 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4628 | fi | |
4629 | ||
4630 | if test "$wxUSE_URL" = yes; then | |
a0b9e27f | 4631 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4632 | else |
a0b9e27f | 4633 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4634 | fi |
a0b9e27f | 4635 | |
4cdb0ab0 | 4636 | |
a0b9e27f | 4637 | echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6 |
6969f178 | 4638 | echo "configure:4639: checking for --enable-protocol" >&5 |
4cdb0ab0 VS |
4639 | no_cache=0 |
4640 | # Check whether --enable-protocol or --disable-protocol was given. | |
4641 | if test "${enable_protocol+set}" = set; then | |
4642 | enableval="$enable_protocol" | |
a0b9e27f | 4643 | |
4cdb0ab0 VS |
4644 | if test "$enableval" = yes; then |
4645 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4646 | else | |
4647 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4648 | fi | |
a0b9e27f | 4649 | |
4cdb0ab0 | 4650 | else |
a0b9e27f | 4651 | |
4cdb0ab0 VS |
4652 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4653 | if test "x$LINE" != x ; then | |
4654 | eval "DEFAULT_$LINE" | |
4655 | else | |
4656 | no_cache=1 | |
4657 | fi | |
4658 | ||
4659 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
4660 | |
4661 | fi | |
4cdb0ab0 VS |
4662 | |
4663 | ||
4664 | eval "$ac_cv_use_protocol" | |
4665 | if test "$no_cache" != 1; then | |
4666 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4667 | fi | |
4668 | ||
4669 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 4670 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4671 | else |
a0b9e27f | 4672 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4673 | fi |
a0b9e27f | 4674 | |
4cdb0ab0 | 4675 | |
a0b9e27f | 4676 | echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6 |
6969f178 | 4677 | echo "configure:4678: checking for --enable-protocol_http" >&5 |
4cdb0ab0 VS |
4678 | no_cache=0 |
4679 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4680 | if test "${enable_protocol_http+set}" = set; then | |
4681 | enableval="$enable_protocol_http" | |
a0b9e27f | 4682 | |
4cdb0ab0 VS |
4683 | if test "$enableval" = yes; then |
4684 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4685 | else | |
4686 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4687 | fi | |
a0b9e27f | 4688 | |
4cdb0ab0 | 4689 | else |
a0b9e27f | 4690 | |
4cdb0ab0 VS |
4691 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4692 | if test "x$LINE" != x ; then | |
4693 | eval "DEFAULT_$LINE" | |
4694 | else | |
4695 | no_cache=1 | |
4696 | fi | |
4697 | ||
4698 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
4699 | |
4700 | fi | |
4cdb0ab0 VS |
4701 | |
4702 | ||
4703 | eval "$ac_cv_use_protocol_http" | |
4704 | if test "$no_cache" != 1; then | |
4705 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4706 | fi | |
4707 | ||
4708 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 4709 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4710 | else |
a0b9e27f | 4711 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4712 | fi |
a0b9e27f | 4713 | |
4cdb0ab0 | 4714 | |
a0b9e27f | 4715 | echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6 |
6969f178 | 4716 | echo "configure:4717: checking for --enable-protocol_ftp" >&5 |
4cdb0ab0 VS |
4717 | no_cache=0 |
4718 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4719 | if test "${enable_protocol_ftp+set}" = set; then | |
4720 | enableval="$enable_protocol_ftp" | |
a0b9e27f | 4721 | |
4cdb0ab0 VS |
4722 | if test "$enableval" = yes; then |
4723 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4724 | else | |
4725 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4726 | fi | |
a0b9e27f | 4727 | |
4cdb0ab0 | 4728 | else |
a0b9e27f | 4729 | |
4cdb0ab0 VS |
4730 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4731 | if test "x$LINE" != x ; then | |
4732 | eval "DEFAULT_$LINE" | |
4733 | else | |
4734 | no_cache=1 | |
4735 | fi | |
4736 | ||
4737 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
4738 | |
4739 | fi | |
4cdb0ab0 VS |
4740 | |
4741 | ||
4742 | eval "$ac_cv_use_protocol_ftp" | |
4743 | if test "$no_cache" != 1; then | |
4744 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4745 | fi | |
4746 | ||
4747 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 4748 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4749 | else |
a0b9e27f | 4750 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4751 | fi |
a0b9e27f | 4752 | |
4cdb0ab0 | 4753 | |
a0b9e27f | 4754 | echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6 |
6969f178 | 4755 | echo "configure:4756: checking for --enable-protocol_file" >&5 |
4cdb0ab0 VS |
4756 | no_cache=0 |
4757 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4758 | if test "${enable_protocol_file+set}" = set; then | |
4759 | enableval="$enable_protocol_file" | |
a0b9e27f | 4760 | |
4cdb0ab0 VS |
4761 | if test "$enableval" = yes; then |
4762 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4763 | else | |
4764 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4765 | fi | |
a0b9e27f | 4766 | |
4cdb0ab0 | 4767 | else |
a0b9e27f | 4768 | |
4cdb0ab0 VS |
4769 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4770 | if test "x$LINE" != x ; then | |
4771 | eval "DEFAULT_$LINE" | |
4772 | else | |
4773 | no_cache=1 | |
4774 | fi | |
4775 | ||
4776 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
4777 | |
4778 | fi | |
4cdb0ab0 VS |
4779 | |
4780 | ||
4781 | eval "$ac_cv_use_protocol_file" | |
4782 | if test "$no_cache" != 1; then | |
4783 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4784 | fi | |
4785 | ||
4786 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 4787 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4788 | else |
a0b9e27f | 4789 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4790 | fi |
a0b9e27f | 4791 | |
52127426 | 4792 | |
8284b0c5 MB |
4793 | |
4794 | ||
4795 | ||
a0b9e27f | 4796 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 |
6969f178 | 4797 | echo "configure:4798: checking for --enable-threads" >&5 |
10f2d63a VZ |
4798 | no_cache=0 |
4799 | # Check whether --enable-threads or --disable-threads was given. | |
4800 | if test "${enable_threads+set}" = set; then | |
4801 | enableval="$enable_threads" | |
a0b9e27f | 4802 | |
10f2d63a VZ |
4803 | if test "$enableval" = yes; then |
4804 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4805 | else | |
4806 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4807 | fi | |
a0b9e27f | 4808 | |
10f2d63a | 4809 | else |
a0b9e27f | 4810 | |
10f2d63a VZ |
4811 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4812 | if test "x$LINE" != x ; then | |
4813 | eval "DEFAULT_$LINE" | |
4814 | else | |
4815 | no_cache=1 | |
4816 | fi | |
4817 | ||
4818 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
a0b9e27f MB |
4819 | |
4820 | fi | |
10f2d63a VZ |
4821 | |
4822 | ||
4823 | eval "$ac_cv_use_threads" | |
4824 | if test "$no_cache" != 1; then | |
4825 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4826 | fi | |
4827 | ||
4828 | if test "$wxUSE_THREADS" = yes; then | |
a0b9e27f | 4829 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4830 | else |
a0b9e27f | 4831 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4832 | fi |
a0b9e27f | 4833 | |
10f2d63a | 4834 | |
b12915c1 VZ |
4835 | if test "$wxUSE_GUI" = "yes"; then |
4836 | ||
8284b0c5 MB |
4837 | |
4838 | ||
a0b9e27f | 4839 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 |
6969f178 | 4840 | echo "configure:4841: checking for --enable-docview" >&5 |
10f2d63a VZ |
4841 | no_cache=0 |
4842 | # Check whether --enable-docview or --disable-docview was given. | |
4843 | if test "${enable_docview+set}" = set; then | |
4844 | enableval="$enable_docview" | |
a0b9e27f | 4845 | |
10f2d63a VZ |
4846 | if test "$enableval" = yes; then |
4847 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4848 | else | |
4849 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4850 | fi | |
a0b9e27f | 4851 | |
10f2d63a | 4852 | else |
a0b9e27f | 4853 | |
10f2d63a VZ |
4854 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4855 | if test "x$LINE" != x ; then | |
4856 | eval "DEFAULT_$LINE" | |
4857 | else | |
4858 | no_cache=1 | |
4859 | fi | |
4860 | ||
4861 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
a0b9e27f MB |
4862 | |
4863 | fi | |
10f2d63a VZ |
4864 | |
4865 | ||
4866 | eval "$ac_cv_use_docview" | |
4867 | if test "$no_cache" != 1; then | |
4868 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4869 | fi | |
4870 | ||
4871 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
a0b9e27f | 4872 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4873 | else |
a0b9e27f | 4874 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4875 | fi |
a0b9e27f | 4876 | |
10f2d63a | 4877 | |
a0b9e27f | 4878 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
6969f178 | 4879 | echo "configure:4880: checking for --enable-help" >&5 |
10f2d63a VZ |
4880 | no_cache=0 |
4881 | # Check whether --enable-help or --disable-help was given. | |
4882 | if test "${enable_help+set}" = set; then | |
4883 | enableval="$enable_help" | |
a0b9e27f | 4884 | |
10f2d63a VZ |
4885 | if test "$enableval" = yes; then |
4886 | ac_cv_use_help='wxUSE_HELP=yes' | |
4887 | else | |
4888 | ac_cv_use_help='wxUSE_HELP=no' | |
4889 | fi | |
a0b9e27f | 4890 | |
10f2d63a | 4891 | else |
a0b9e27f | 4892 | |
10f2d63a VZ |
4893 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4894 | if test "x$LINE" != x ; then | |
4895 | eval "DEFAULT_$LINE" | |
4896 | else | |
4897 | no_cache=1 | |
4898 | fi | |
4899 | ||
4900 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
a0b9e27f MB |
4901 | |
4902 | fi | |
10f2d63a VZ |
4903 | |
4904 | ||
4905 | eval "$ac_cv_use_help" | |
4906 | if test "$no_cache" != 1; then | |
4907 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4908 | fi | |
4909 | ||
4910 | if test "$wxUSE_HELP" = yes; then | |
a0b9e27f | 4911 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4912 | else |
a0b9e27f | 4913 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4914 | fi |
a0b9e27f | 4915 | |
10f2d63a | 4916 | |
a0b9e27f | 4917 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
6969f178 | 4918 | echo "configure:4919: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4919 | no_cache=0 |
4920 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4921 | if test "${enable_mshtmlhelp+set}" = set; then | |
4922 | enableval="$enable_mshtmlhelp" | |
a0b9e27f | 4923 | |
29fd3c0c VS |
4924 | if test "$enableval" = yes; then |
4925 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4926 | else | |
4927 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4928 | fi | |
a0b9e27f | 4929 | |
29fd3c0c | 4930 | else |
a0b9e27f | 4931 | |
29fd3c0c VS |
4932 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
4933 | if test "x$LINE" != x ; then | |
4934 | eval "DEFAULT_$LINE" | |
4935 | else | |
4936 | no_cache=1 | |
4937 | fi | |
4938 | ||
4939 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
a0b9e27f MB |
4940 | |
4941 | fi | |
29fd3c0c VS |
4942 | |
4943 | ||
4944 | eval "$ac_cv_use_mshtmlhelp" | |
4945 | if test "$no_cache" != 1; then | |
4946 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4947 | fi | |
4948 | ||
4949 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
a0b9e27f | 4950 | echo "$ac_t""yes" 1>&6 |
29fd3c0c | 4951 | else |
a0b9e27f | 4952 | echo "$ac_t""no" 1>&6 |
29fd3c0c | 4953 | fi |
a0b9e27f | 4954 | |
29fd3c0c | 4955 | |
a0b9e27f | 4956 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
6969f178 | 4957 | echo "configure:4958: checking for --enable-html" >&5 |
3379ed37 VZ |
4958 | no_cache=0 |
4959 | # Check whether --enable-html or --disable-html was given. | |
4960 | if test "${enable_html+set}" = set; then | |
4961 | enableval="$enable_html" | |
a0b9e27f | 4962 | |
3379ed37 VZ |
4963 | if test "$enableval" = yes; then |
4964 | ac_cv_use_html='wxUSE_HTML=yes' | |
4965 | else | |
4966 | ac_cv_use_html='wxUSE_HTML=no' | |
4967 | fi | |
a0b9e27f | 4968 | |
3379ed37 | 4969 | else |
a0b9e27f | 4970 | |
3379ed37 VZ |
4971 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
4972 | if test "x$LINE" != x ; then | |
4973 | eval "DEFAULT_$LINE" | |
4974 | else | |
4975 | no_cache=1 | |
4976 | fi | |
4977 | ||
4978 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
a0b9e27f MB |
4979 | |
4980 | fi | |
3379ed37 VZ |
4981 | |
4982 | ||
4983 | eval "$ac_cv_use_html" | |
4984 | if test "$no_cache" != 1; then | |
4985 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4986 | fi | |
4987 | ||
4988 | if test "$wxUSE_HTML" = yes; then | |
a0b9e27f | 4989 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 4990 | else |
a0b9e27f | 4991 | echo "$ac_t""no" 1>&6 |
3379ed37 | 4992 | fi |
a0b9e27f | 4993 | |
3379ed37 | 4994 | |
a0b9e27f | 4995 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 |
6969f178 | 4996 | echo "configure:4997: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4997 | no_cache=0 |
4998 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4999 | if test "${enable_htmlhelp+set}" = set; then | |
5000 | enableval="$enable_htmlhelp" | |
a0b9e27f | 5001 | |
3379ed37 VZ |
5002 | if test "$enableval" = yes; then |
5003 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5004 | else | |
5005 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5006 | fi | |
a0b9e27f | 5007 | |
3379ed37 | 5008 | else |
a0b9e27f | 5009 | |
3379ed37 VZ |
5010 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5011 | if test "x$LINE" != x ; then | |
5012 | eval "DEFAULT_$LINE" | |
5013 | else | |
5014 | no_cache=1 | |
5015 | fi | |
5016 | ||
5017 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
a0b9e27f MB |
5018 | |
5019 | fi | |
3379ed37 VZ |
5020 | |
5021 | ||
5022 | eval "$ac_cv_use_htmlhelp" | |
5023 | if test "$no_cache" != 1; then | |
5024 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5025 | fi | |
5026 | ||
5027 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
a0b9e27f | 5028 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5029 | else |
a0b9e27f | 5030 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5031 | fi |
a0b9e27f | 5032 | |
3379ed37 | 5033 | |
a0b9e27f | 5034 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
6969f178 | 5035 | echo "configure:5036: checking for --enable-constraints" >&5 |
10f2d63a VZ |
5036 | no_cache=0 |
5037 | # Check whether --enable-constraints or --disable-constraints was given. | |
5038 | if test "${enable_constraints+set}" = set; then | |
5039 | enableval="$enable_constraints" | |
a0b9e27f | 5040 | |
10f2d63a VZ |
5041 | if test "$enableval" = yes; then |
5042 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5043 | else | |
5044 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5045 | fi | |
a0b9e27f | 5046 | |
10f2d63a | 5047 | else |
a0b9e27f | 5048 | |
10f2d63a VZ |
5049 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5050 | if test "x$LINE" != x ; then | |
5051 | eval "DEFAULT_$LINE" | |
5052 | else | |
5053 | no_cache=1 | |
5054 | fi | |
5055 | ||
5056 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
a0b9e27f MB |
5057 | |
5058 | fi | |
10f2d63a VZ |
5059 | |
5060 | ||
5061 | eval "$ac_cv_use_constraints" | |
5062 | if test "$no_cache" != 1; then | |
5063 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5064 | fi | |
5065 | ||
5066 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
a0b9e27f | 5067 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5068 | else |
a0b9e27f | 5069 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5070 | fi |
a0b9e27f | 5071 | |
10f2d63a | 5072 | |
a0b9e27f | 5073 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
6969f178 | 5074 | echo "configure:5075: checking for --enable-printarch" >&5 |
10f2d63a VZ |
5075 | no_cache=0 |
5076 | # Check whether --enable-printarch or --disable-printarch was given. | |
5077 | if test "${enable_printarch+set}" = set; then | |
5078 | enableval="$enable_printarch" | |
a0b9e27f | 5079 | |
10f2d63a VZ |
5080 | if test "$enableval" = yes; then |
5081 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5082 | else | |
5083 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5084 | fi | |
a0b9e27f | 5085 | |
10f2d63a | 5086 | else |
a0b9e27f | 5087 | |
10f2d63a VZ |
5088 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5089 | if test "x$LINE" != x ; then | |
5090 | eval "DEFAULT_$LINE" | |
5091 | else | |
5092 | no_cache=1 | |
5093 | fi | |
5094 | ||
5095 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
a0b9e27f MB |
5096 | |
5097 | fi | |
10f2d63a VZ |
5098 | |
5099 | ||
5100 | eval "$ac_cv_use_printarch" | |
5101 | if test "$no_cache" != 1; then | |
5102 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5103 | fi | |
5104 | ||
5105 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
a0b9e27f | 5106 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5107 | else |
a0b9e27f | 5108 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5109 | fi |
a0b9e27f | 5110 | |
10f2d63a | 5111 | |
a0b9e27f | 5112 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
6969f178 | 5113 | echo "configure:5114: checking for --enable-mdi" >&5 |
10f2d63a VZ |
5114 | no_cache=0 |
5115 | # Check whether --enable-mdi or --disable-mdi was given. | |
5116 | if test "${enable_mdi+set}" = set; then | |
5117 | enableval="$enable_mdi" | |
a0b9e27f | 5118 | |
10f2d63a VZ |
5119 | if test "$enableval" = yes; then |
5120 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5121 | else | |
5122 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5123 | fi | |
a0b9e27f | 5124 | |
10f2d63a | 5125 | else |
a0b9e27f | 5126 | |
10f2d63a VZ |
5127 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5128 | if test "x$LINE" != x ; then | |
5129 | eval "DEFAULT_$LINE" | |
5130 | else | |
5131 | no_cache=1 | |
5132 | fi | |
5133 | ||
5134 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
a0b9e27f MB |
5135 | |
5136 | fi | |
10f2d63a VZ |
5137 | |
5138 | ||
5139 | eval "$ac_cv_use_mdi" | |
5140 | if test "$no_cache" != 1; then | |
5141 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5142 | fi | |
5143 | ||
5144 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
a0b9e27f | 5145 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5146 | else |
a0b9e27f | 5147 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5148 | fi |
a0b9e27f | 5149 | |
698dcdb6 | 5150 | |
a0b9e27f | 5151 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
6969f178 | 5152 | echo "configure:5153: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
5153 | no_cache=0 |
5154 | # Check whether --enable-loggui or --disable-loggui was given. | |
5155 | if test "${enable_loggui+set}" = set; then | |
5156 | enableval="$enable_loggui" | |
a0b9e27f | 5157 | |
1e6feb95 VZ |
5158 | if test "$enableval" = yes; then |
5159 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5160 | else | |
5161 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5162 | fi | |
a0b9e27f | 5163 | |
1e6feb95 | 5164 | else |
a0b9e27f | 5165 | |
1e6feb95 VZ |
5166 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
5167 | if test "x$LINE" != x ; then | |
5168 | eval "DEFAULT_$LINE" | |
5169 | else | |
5170 | no_cache=1 | |
5171 | fi | |
5172 | ||
5173 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
a0b9e27f MB |
5174 | |
5175 | fi | |
1e6feb95 VZ |
5176 | |
5177 | ||
5178 | eval "$ac_cv_use_loggui" | |
5179 | if test "$no_cache" != 1; then | |
5180 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5181 | fi | |
5182 | ||
5183 | if test "$wxUSE_LOGGUI" = yes; then | |
a0b9e27f | 5184 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5185 | else |
a0b9e27f | 5186 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5187 | fi |
a0b9e27f | 5188 | |
1e6feb95 | 5189 | |
a0b9e27f | 5190 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 |
6969f178 | 5191 | echo "configure:5192: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
5192 | no_cache=0 |
5193 | # Check whether --enable-logwin or --disable-logwin was given. | |
5194 | if test "${enable_logwin+set}" = set; then | |
5195 | enableval="$enable_logwin" | |
a0b9e27f | 5196 | |
1e6feb95 VZ |
5197 | if test "$enableval" = yes; then |
5198 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5199 | else | |
5200 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5201 | fi | |
a0b9e27f | 5202 | |
1e6feb95 | 5203 | else |
a0b9e27f | 5204 | |
1e6feb95 VZ |
5205 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
5206 | if test "x$LINE" != x ; then | |
5207 | eval "DEFAULT_$LINE" | |
5208 | else | |
5209 | no_cache=1 | |
5210 | fi | |
5211 | ||
5212 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
a0b9e27f MB |
5213 | |
5214 | fi | |
1e6feb95 VZ |
5215 | |
5216 | ||
5217 | eval "$ac_cv_use_logwin" | |
5218 | if test "$no_cache" != 1; then | |
5219 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5220 | fi | |
5221 | ||
5222 | if test "$wxUSE_LOGWINDOW" = yes; then | |
a0b9e27f | 5223 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5224 | else |
a0b9e27f | 5225 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5226 | fi |
a0b9e27f | 5227 | |
1e6feb95 | 5228 | |
a0b9e27f | 5229 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 |
6969f178 | 5230 | echo "configure:5231: checking for --enable-logdialog" >&5 |
69d27ff7 MB |
5231 | no_cache=0 |
5232 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5233 | if test "${enable_logdialog+set}" = set; then | |
5234 | enableval="$enable_logdialog" | |
a0b9e27f | 5235 | |
69d27ff7 MB |
5236 | if test "$enableval" = yes; then |
5237 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5238 | else | |
5239 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5240 | fi | |
a0b9e27f | 5241 | |
69d27ff7 | 5242 | else |
a0b9e27f | 5243 | |
69d27ff7 MB |
5244 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
5245 | if test "x$LINE" != x ; then | |
5246 | eval "DEFAULT_$LINE" | |
5247 | else | |
5248 | no_cache=1 | |
5249 | fi | |
5250 | ||
5251 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
a0b9e27f MB |
5252 | |
5253 | fi | |
69d27ff7 MB |
5254 | |
5255 | ||
5256 | eval "$ac_cv_use_logdialog" | |
5257 | if test "$no_cache" != 1; then | |
5258 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5259 | fi | |
5260 | ||
5261 | if test "$wxUSE_LOGDIALOG" = yes; then | |
a0b9e27f | 5262 | echo "$ac_t""yes" 1>&6 |
69d27ff7 | 5263 | else |
a0b9e27f | 5264 | echo "$ac_t""no" 1>&6 |
69d27ff7 | 5265 | fi |
a0b9e27f | 5266 | |
8284b0c5 | 5267 | |
52127426 | 5268 | |
a0b9e27f | 5269 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
6969f178 | 5270 | echo "configure:5271: checking for --enable-postscript" >&5 |
10f2d63a VZ |
5271 | no_cache=0 |
5272 | # Check whether --enable-postscript or --disable-postscript was given. | |
5273 | if test "${enable_postscript+set}" = set; then | |
5274 | enableval="$enable_postscript" | |
a0b9e27f | 5275 | |
10f2d63a VZ |
5276 | if test "$enableval" = yes; then |
5277 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5278 | else | |
5279 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5280 | fi | |
a0b9e27f | 5281 | |
10f2d63a | 5282 | else |
a0b9e27f | 5283 | |
10f2d63a VZ |
5284 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5285 | if test "x$LINE" != x ; then | |
5286 | eval "DEFAULT_$LINE" | |
5287 | else | |
5288 | no_cache=1 | |
5289 | fi | |
5290 | ||
5291 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
a0b9e27f MB |
5292 | |
5293 | fi | |
10f2d63a VZ |
5294 | |
5295 | ||
5296 | eval "$ac_cv_use_postscript" | |
5297 | if test "$no_cache" != 1; then | |
5298 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5299 | fi | |
5300 | ||
5301 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
a0b9e27f | 5302 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5303 | else |
a0b9e27f | 5304 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5305 | fi |
a0b9e27f | 5306 | |
8284b0c5 MB |
5307 | |
5308 | ||
52127426 | 5309 | |
8284b0c5 | 5310 | |
a0b9e27f | 5311 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
6969f178 | 5312 | echo "configure:5313: checking for --enable-prologio" >&5 |
10f2d63a VZ |
5313 | no_cache=0 |
5314 | # Check whether --enable-prologio or --disable-prologio was given. | |
5315 | if test "${enable_prologio+set}" = set; then | |
5316 | enableval="$enable_prologio" | |
a0b9e27f | 5317 | |
10f2d63a VZ |
5318 | if test "$enableval" = yes; then |
5319 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5320 | else | |
5321 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5322 | fi | |
a0b9e27f | 5323 | |
10f2d63a | 5324 | else |
a0b9e27f | 5325 | |
10f2d63a VZ |
5326 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5327 | if test "x$LINE" != x ; then | |
5328 | eval "DEFAULT_$LINE" | |
5329 | else | |
5330 | no_cache=1 | |
5331 | fi | |
5332 | ||
5333 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
a0b9e27f MB |
5334 | |
5335 | fi | |
10f2d63a VZ |
5336 | |
5337 | ||
5338 | eval "$ac_cv_use_prologio" | |
5339 | if test "$no_cache" != 1; then | |
5340 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5341 | fi | |
5342 | ||
5343 | if test "$wxUSE_PROLOGIO" = yes; then | |
a0b9e27f | 5344 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5345 | else |
a0b9e27f | 5346 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5347 | fi |
a0b9e27f | 5348 | |
10f2d63a | 5349 | |
a0b9e27f | 5350 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
6969f178 | 5351 | echo "configure:5352: checking for --enable-resources" >&5 |
10f2d63a VZ |
5352 | no_cache=0 |
5353 | # Check whether --enable-resources or --disable-resources was given. | |
5354 | if test "${enable_resources+set}" = set; then | |
5355 | enableval="$enable_resources" | |
a0b9e27f | 5356 | |
10f2d63a VZ |
5357 | if test "$enableval" = yes; then |
5358 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5359 | else | |
5360 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5361 | fi | |
a0b9e27f | 5362 | |
10f2d63a | 5363 | else |
a0b9e27f | 5364 | |
10f2d63a VZ |
5365 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5366 | if test "x$LINE" != x ; then | |
5367 | eval "DEFAULT_$LINE" | |
5368 | else | |
5369 | no_cache=1 | |
5370 | fi | |
5371 | ||
5372 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
a0b9e27f MB |
5373 | |
5374 | fi | |
10f2d63a VZ |
5375 | |
5376 | ||
5377 | eval "$ac_cv_use_resources" | |
5378 | if test "$no_cache" != 1; then | |
5379 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5380 | fi | |
5381 | ||
5382 | if test "$wxUSE_RESOURCES" = yes; then | |
a0b9e27f | 5383 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5384 | else |
a0b9e27f | 5385 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5386 | fi |
a0b9e27f | 5387 | |
8284b0c5 | 5388 | |
52127426 | 5389 | |
a0b9e27f | 5390 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 |
6969f178 | 5391 | echo "configure:5392: checking for --enable-xresources" >&5 |
10f2d63a VZ |
5392 | no_cache=0 |
5393 | # Check whether --enable-xresources or --disable-xresources was given. | |
5394 | if test "${enable_xresources+set}" = set; then | |
5395 | enableval="$enable_xresources" | |
a0b9e27f | 5396 | |
10f2d63a VZ |
5397 | if test "$enableval" = yes; then |
5398 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5399 | else | |
5400 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5401 | fi | |
a0b9e27f | 5402 | |
10f2d63a | 5403 | else |
a0b9e27f | 5404 | |
10f2d63a VZ |
5405 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5406 | if test "x$LINE" != x ; then | |
5407 | eval "DEFAULT_$LINE" | |
5408 | else | |
5409 | no_cache=1 | |
5410 | fi | |
5411 | ||
5412 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
a0b9e27f MB |
5413 | |
5414 | fi | |
10f2d63a VZ |
5415 | |
5416 | ||
5417 | eval "$ac_cv_use_xresources" | |
5418 | if test "$no_cache" != 1; then | |
5419 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5420 | fi | |
5421 | ||
5422 | if test "$wxUSE_X_RESOURCES" = yes; then | |
a0b9e27f | 5423 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5424 | else |
a0b9e27f | 5425 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5426 | fi |
a0b9e27f | 5427 | |
8284b0c5 MB |
5428 | |
5429 | ||
52127426 | 5430 | |
a0b9e27f | 5431 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 |
6969f178 | 5432 | echo "configure:5433: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
5433 | no_cache=0 |
5434 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5435 | if test "${enable_clipboard+set}" = set; then | |
5436 | enableval="$enable_clipboard" | |
a0b9e27f | 5437 | |
10f2d63a VZ |
5438 | if test "$enableval" = yes; then |
5439 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5440 | else | |
5441 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5442 | fi | |
a0b9e27f | 5443 | |
10f2d63a | 5444 | else |
a0b9e27f | 5445 | |
10f2d63a VZ |
5446 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5447 | if test "x$LINE" != x ; then | |
5448 | eval "DEFAULT_$LINE" | |
5449 | else | |
5450 | no_cache=1 | |
5451 | fi | |
5452 | ||
5453 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
a0b9e27f MB |
5454 | |
5455 | fi | |
10f2d63a VZ |
5456 | |
5457 | ||
5458 | eval "$ac_cv_use_clipboard" | |
5459 | if test "$no_cache" != 1; then | |
5460 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5461 | fi | |
5462 | ||
5463 | if test "$wxUSE_CLIPBOARD" = yes; then | |
a0b9e27f | 5464 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5465 | else |
a0b9e27f | 5466 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5467 | fi |
a0b9e27f | 5468 | |
10f2d63a | 5469 | |
a0b9e27f | 5470 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
6969f178 | 5471 | echo "configure:5472: checking for --enable-dnd" >&5 |
10f2d63a VZ |
5472 | no_cache=0 |
5473 | # Check whether --enable-dnd or --disable-dnd was given. | |
5474 | if test "${enable_dnd+set}" = set; then | |
5475 | enableval="$enable_dnd" | |
a0b9e27f | 5476 | |
10f2d63a VZ |
5477 | if test "$enableval" = yes; then |
5478 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5479 | else | |
5480 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5481 | fi | |
a0b9e27f | 5482 | |
10f2d63a | 5483 | else |
a0b9e27f | 5484 | |
10f2d63a VZ |
5485 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5486 | if test "x$LINE" != x ; then | |
5487 | eval "DEFAULT_$LINE" | |
5488 | else | |
5489 | no_cache=1 | |
5490 | fi | |
5491 | ||
5492 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
a0b9e27f MB |
5493 | |
5494 | fi | |
10f2d63a VZ |
5495 | |
5496 | ||
5497 | eval "$ac_cv_use_dnd" | |
5498 | if test "$no_cache" != 1; then | |
5499 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5500 | fi | |
5501 | ||
5502 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
a0b9e27f | 5503 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5504 | else |
a0b9e27f | 5505 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5506 | fi |
a0b9e27f | 5507 | |
10f2d63a | 5508 | |
a0b9e27f | 5509 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
6969f178 | 5510 | echo "configure:5511: checking for --enable-metafile" >&5 |
b64f0a5f RL |
5511 | no_cache=0 |
5512 | # Check whether --enable-metafile or --disable-metafile was given. | |
5513 | if test "${enable_metafile+set}" = set; then | |
5514 | enableval="$enable_metafile" | |
a0b9e27f | 5515 | |
b64f0a5f RL |
5516 | if test "$enableval" = yes; then |
5517 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5518 | else | |
5519 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5520 | fi | |
a0b9e27f | 5521 | |
b64f0a5f | 5522 | else |
a0b9e27f | 5523 | |
b64f0a5f RL |
5524 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5525 | if test "x$LINE" != x ; then | |
5526 | eval "DEFAULT_$LINE" | |
5527 | else | |
5528 | no_cache=1 | |
5529 | fi | |
5530 | ||
5531 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
5532 | |
5533 | fi | |
b64f0a5f RL |
5534 | |
5535 | ||
5536 | eval "$ac_cv_use_metafile" | |
5537 | if test "$no_cache" != 1; then | |
5538 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5539 | fi | |
5540 | ||
5541 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 5542 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5543 | else |
a0b9e27f | 5544 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5545 | fi |
a0b9e27f | 5546 | |
52127426 | 5547 | |
8284b0c5 | 5548 | |
a0b9e27f | 5549 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
6969f178 | 5550 | echo "configure:5551: checking for --enable-treelayout" >&5 |
10f2d63a | 5551 | no_cache=0 |
24176f2c GD |
5552 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5553 | if test "${enable_treelayout+set}" = set; then | |
5554 | enableval="$enable_treelayout" | |
a0b9e27f | 5555 | |
10f2d63a | 5556 | if test "$enableval" = yes; then |
24176f2c | 5557 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5558 | else |
24176f2c | 5559 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5560 | fi |
a0b9e27f | 5561 | |
10f2d63a | 5562 | else |
a0b9e27f | 5563 | |
24176f2c | 5564 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5565 | if test "x$LINE" != x ; then |
5566 | eval "DEFAULT_$LINE" | |
5567 | else | |
5568 | no_cache=1 | |
5569 | fi | |
5570 | ||
24176f2c | 5571 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
a0b9e27f MB |
5572 | |
5573 | fi | |
10f2d63a VZ |
5574 | |
5575 | ||
24176f2c | 5576 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5577 | if test "$no_cache" != 1; then |
24176f2c | 5578 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5579 | fi |
5580 | ||
24176f2c | 5581 | if test "$wxUSE_TREELAYOUT" = yes; then |
a0b9e27f | 5582 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5583 | else |
a0b9e27f | 5584 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5585 | fi |
a0b9e27f | 5586 | |
8284b0c5 | 5587 | |
52127426 | 5588 | |
8284b0c5 | 5589 | |
a0b9e27f | 5590 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 |
6969f178 | 5591 | echo "configure:5592: checking for --enable-controls" >&5 |
10f2d63a VZ |
5592 | no_cache=0 |
5593 | # Check whether --enable-controls or --disable-controls was given. | |
5594 | if test "${enable_controls+set}" = set; then | |
5595 | enableval="$enable_controls" | |
a0b9e27f | 5596 | |
10f2d63a VZ |
5597 | if test "$enableval" = yes; then |
5598 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5599 | else | |
5600 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5601 | fi | |
a0b9e27f | 5602 | |
10f2d63a | 5603 | else |
a0b9e27f | 5604 | |
10f2d63a VZ |
5605 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5606 | if test "x$LINE" != x ; then | |
5607 | eval "DEFAULT_$LINE" | |
5608 | else | |
5609 | no_cache=1 | |
5610 | fi | |
5611 | ||
5612 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
a0b9e27f MB |
5613 | |
5614 | fi | |
10f2d63a VZ |
5615 | |
5616 | ||
5617 | eval "$ac_cv_use_controls" | |
5618 | if test "$no_cache" != 1; then | |
5619 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5620 | fi | |
5621 | ||
5622 | if test "$wxUSE_CONTROLS" = yes; then | |
a0b9e27f | 5623 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5624 | else |
a0b9e27f | 5625 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5626 | fi |
a0b9e27f | 5627 | |
10f2d63a VZ |
5628 | |
5629 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5630 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5631 | DEFAULT_wxUSE_BMPBUTTON=yes |
5632 | DEFAULT_wxUSE_BUTTON=yes | |
5633 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5634 | DEFAULT_wxUSE_CARET=yes |
5635 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5636 | DEFAULT_wxUSE_CHECKBOX=yes |
5637 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5638 | DEFAULT_wxUSE_CHOICE=yes | |
5639 | DEFAULT_wxUSE_GAUGE=yes | |
5640 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5641 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5642 | DEFAULT_wxUSE_IMAGLIST=yes |
5643 | DEFAULT_wxUSE_LISTBOX=yes | |
5644 | DEFAULT_wxUSE_LISTCTRL=yes | |
5645 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5646 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5647 | DEFAULT_wxUSE_RADIOBOX=yes |
5648 | DEFAULT_wxUSE_RADIOBTN=yes | |
5649 | DEFAULT_wxUSE_SASH=yes | |
5650 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5651 | DEFAULT_wxUSE_SLIDER=yes | |
5652 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5653 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5654 | DEFAULT_wxUSE_SPLITTER=yes |
5655 | DEFAULT_wxUSE_STATBMP=yes | |
5656 | DEFAULT_wxUSE_STATBOX=yes | |
5657 | DEFAULT_wxUSE_STATLINE=yes | |
5658 | DEFAULT_wxUSE_STATUSBAR=yes | |
5659 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5660 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5661 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5662 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5663 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5664 | DEFAULT_wxUSE_TOOLTIPS=yes |
5665 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5666 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5667 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5668 | elif test "$wxUSE_CONTROLS" = "no"; then |
5669 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5670 | DEFAULT_wxUSE_BMPBUTTON=no |
5671 | DEFAULT_wxUSE_BUTTON=no | |
5672 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5673 | DEFAULT_wxUSE_CARET=no |
5674 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5675 | DEFAULT_wxUSE_CHECKBOX=no |
5676 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5677 | DEFAULT_wxUSE_CHOICE=no | |
5678 | DEFAULT_wxUSE_GAUGE=no | |
5679 | DEFAULT_wxUSE_GRID=no | |
5680 | DEFAULT_wxUSE_NEW_GRID=no | |
5681 | DEFAULT_wxUSE_IMAGLIST=no | |
5682 | DEFAULT_wxUSE_LISTBOX=no | |
5683 | DEFAULT_wxUSE_LISTCTRL=no | |
5684 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5685 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5686 | DEFAULT_wxUSE_RADIOBOX=no |
5687 | DEFAULT_wxUSE_RADIOBTN=no | |
5688 | DEFAULT_wxUSE_SASH=no | |
5689 | DEFAULT_wxUSE_SCROLLBAR=no | |
5690 | DEFAULT_wxUSE_SLIDER=no | |
5691 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5692 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5693 | DEFAULT_wxUSE_SPLITTER=no |
5694 | DEFAULT_wxUSE_STATBMP=no | |
5695 | DEFAULT_wxUSE_STATBOX=no | |
5696 | DEFAULT_wxUSE_STATLINE=no | |
5697 | DEFAULT_wxUSE_STATUSBAR=no | |
5698 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5699 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5700 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5701 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5702 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5703 | DEFAULT_wxUSE_TOOLTIPS=no |
5704 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5705 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5706 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5707 | fi |
5708 | ||
8284b0c5 | 5709 | |
a0b9e27f | 5710 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 |
6969f178 | 5711 | echo "configure:5712: checking for --enable-accel" >&5 |
10f2d63a VZ |
5712 | no_cache=0 |
5713 | # Check whether --enable-accel or --disable-accel was given. | |
5714 | if test "${enable_accel+set}" = set; then | |
5715 | enableval="$enable_accel" | |
a0b9e27f | 5716 | |
10f2d63a VZ |
5717 | if test "$enableval" = yes; then |
5718 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5719 | else | |
5720 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5721 | fi | |
a0b9e27f | 5722 | |
10f2d63a | 5723 | else |
a0b9e27f | 5724 | |
10f2d63a VZ |
5725 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5726 | if test "x$LINE" != x ; then | |
5727 | eval "DEFAULT_$LINE" | |
5728 | else | |
5729 | no_cache=1 | |
5730 | fi | |
5731 | ||
5732 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
a0b9e27f MB |
5733 | |
5734 | fi | |
10f2d63a VZ |
5735 | |
5736 | ||
5737 | eval "$ac_cv_use_accel" | |
5738 | if test "$no_cache" != 1; then | |
5739 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5740 | fi | |
5741 | ||
5742 | if test "$wxUSE_ACCEL" = yes; then | |
a0b9e27f | 5743 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5744 | else |
a0b9e27f | 5745 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5746 | fi |
a0b9e27f | 5747 | |
10f2d63a | 5748 | |
a0b9e27f | 5749 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
6969f178 | 5750 | echo "configure:5751: checking for --enable-button" >&5 |
10f2d63a | 5751 | no_cache=0 |
1e6feb95 VZ |
5752 | # Check whether --enable-button or --disable-button was given. |
5753 | if test "${enable_button+set}" = set; then | |
5754 | enableval="$enable_button" | |
a0b9e27f | 5755 | |
10f2d63a | 5756 | if test "$enableval" = yes; then |
1e6feb95 | 5757 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5758 | else |
1e6feb95 | 5759 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5760 | fi |
a0b9e27f | 5761 | |
10f2d63a | 5762 | else |
a0b9e27f | 5763 | |
1e6feb95 | 5764 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5765 | if test "x$LINE" != x ; then |
5766 | eval "DEFAULT_$LINE" | |
5767 | else | |
5768 | no_cache=1 | |
5769 | fi | |
5770 | ||
1e6feb95 | 5771 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
a0b9e27f MB |
5772 | |
5773 | fi | |
10f2d63a VZ |
5774 | |
5775 | ||
1e6feb95 | 5776 | eval "$ac_cv_use_button" |
10f2d63a | 5777 | if test "$no_cache" != 1; then |
1e6feb95 | 5778 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5779 | fi |
5780 | ||
1e6feb95 | 5781 | if test "$wxUSE_BUTTON" = yes; then |
a0b9e27f | 5782 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5783 | else |
a0b9e27f | 5784 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5785 | fi |
a0b9e27f | 5786 | |
10f2d63a | 5787 | |
a0b9e27f | 5788 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
6969f178 | 5789 | echo "configure:5790: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5790 | no_cache=0 |
5791 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5792 | if test "${enable_bmpbutton+set}" = set; then | |
5793 | enableval="$enable_bmpbutton" | |
a0b9e27f | 5794 | |
10f2d63a VZ |
5795 | if test "$enableval" = yes; then |
5796 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5797 | else | |
5798 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5799 | fi | |
a0b9e27f | 5800 | |
10f2d63a | 5801 | else |
a0b9e27f | 5802 | |
10f2d63a VZ |
5803 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5804 | if test "x$LINE" != x ; then | |
5805 | eval "DEFAULT_$LINE" | |
5806 | else | |
5807 | no_cache=1 | |
5808 | fi | |
5809 | ||
5810 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
a0b9e27f MB |
5811 | |
5812 | fi | |
10f2d63a VZ |
5813 | |
5814 | ||
5815 | eval "$ac_cv_use_bmpbutton" | |
5816 | if test "$no_cache" != 1; then | |
5817 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5818 | fi | |
5819 | ||
5820 | if test "$wxUSE_BMPBUTTON" = yes; then | |
a0b9e27f | 5821 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5822 | else |
a0b9e27f | 5823 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5824 | fi |
a0b9e27f | 5825 | |
10f2d63a | 5826 | |
a0b9e27f | 5827 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
6969f178 | 5828 | echo "configure:5829: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5829 | no_cache=0 |
5830 | # Check whether --enable-calendar or --disable-calendar was given. | |
5831 | if test "${enable_calendar+set}" = set; then | |
5832 | enableval="$enable_calendar" | |
a0b9e27f | 5833 | |
1e6feb95 VZ |
5834 | if test "$enableval" = yes; then |
5835 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5836 | else | |
5837 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5838 | fi | |
a0b9e27f | 5839 | |
1e6feb95 | 5840 | else |
a0b9e27f | 5841 | |
1e6feb95 VZ |
5842 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
5843 | if test "x$LINE" != x ; then | |
5844 | eval "DEFAULT_$LINE" | |
5845 | else | |
5846 | no_cache=1 | |
5847 | fi | |
5848 | ||
5849 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
a0b9e27f MB |
5850 | |
5851 | fi | |
1e6feb95 VZ |
5852 | |
5853 | ||
5854 | eval "$ac_cv_use_calendar" | |
5855 | if test "$no_cache" != 1; then | |
5856 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5857 | fi | |
5858 | ||
5859 | if test "$wxUSE_CALCTRL" = yes; then | |
a0b9e27f | 5860 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5861 | else |
a0b9e27f | 5862 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5863 | fi |
a0b9e27f | 5864 | |
1e6feb95 | 5865 | |
a0b9e27f | 5866 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 |
6969f178 | 5867 | echo "configure:5868: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5868 | no_cache=0 |
5869 | # Check whether --enable-caret or --disable-caret was given. | |
5870 | if test "${enable_caret+set}" = set; then | |
5871 | enableval="$enable_caret" | |
a0b9e27f | 5872 | |
1e6feb95 VZ |
5873 | if test "$enableval" = yes; then |
5874 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5875 | else | |
5876 | ac_cv_use_caret='wxUSE_CARET=no' | |
5877 | fi | |
a0b9e27f | 5878 | |
1e6feb95 | 5879 | else |
a0b9e27f | 5880 | |
1e6feb95 VZ |
5881 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
5882 | if test "x$LINE" != x ; then | |
5883 | eval "DEFAULT_$LINE" | |
5884 | else | |
5885 | no_cache=1 | |
5886 | fi | |
5887 | ||
5888 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
a0b9e27f MB |
5889 | |
5890 | fi | |
1e6feb95 VZ |
5891 | |
5892 | ||
5893 | eval "$ac_cv_use_caret" | |
5894 | if test "$no_cache" != 1; then | |
5895 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5896 | fi | |
5897 | ||
5898 | if test "$wxUSE_CARET" = yes; then | |
a0b9e27f | 5899 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5900 | else |
a0b9e27f | 5901 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5902 | fi |
a0b9e27f | 5903 | |
1e6feb95 | 5904 | |
a0b9e27f | 5905 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
6969f178 | 5906 | echo "configure:5907: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5907 | no_cache=0 |
5908 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5909 | if test "${enable_checkbox+set}" = set; then | |
5910 | enableval="$enable_checkbox" | |
a0b9e27f | 5911 | |
10f2d63a VZ |
5912 | if test "$enableval" = yes; then |
5913 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5914 | else | |
5915 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5916 | fi | |
a0b9e27f | 5917 | |
10f2d63a | 5918 | else |
a0b9e27f | 5919 | |
10f2d63a VZ |
5920 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5921 | if test "x$LINE" != x ; then | |
5922 | eval "DEFAULT_$LINE" | |
5923 | else | |
5924 | no_cache=1 | |
5925 | fi | |
5926 | ||
5927 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
a0b9e27f MB |
5928 | |
5929 | fi | |
10f2d63a VZ |
5930 | |
5931 | ||
5932 | eval "$ac_cv_use_checkbox" | |
5933 | if test "$no_cache" != 1; then | |
5934 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5935 | fi | |
5936 | ||
5937 | if test "$wxUSE_CHECKBOX" = yes; then | |
a0b9e27f | 5938 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5939 | else |
a0b9e27f | 5940 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5941 | fi |
a0b9e27f | 5942 | |
10f2d63a | 5943 | |
a0b9e27f | 5944 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
6969f178 | 5945 | echo "configure:5946: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5946 | no_cache=0 |
5947 | # Check whether --enable-checklst or --disable-checklst was given. | |
5948 | if test "${enable_checklst+set}" = set; then | |
5949 | enableval="$enable_checklst" | |
a0b9e27f | 5950 | |
10f2d63a VZ |
5951 | if test "$enableval" = yes; then |
5952 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5953 | else | |
5954 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5955 | fi | |
a0b9e27f | 5956 | |
10f2d63a | 5957 | else |
a0b9e27f | 5958 | |
10f2d63a VZ |
5959 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5960 | if test "x$LINE" != x ; then | |
5961 | eval "DEFAULT_$LINE" | |
5962 | else | |
5963 | no_cache=1 | |
5964 | fi | |
5965 | ||
5966 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
a0b9e27f MB |
5967 | |
5968 | fi | |
10f2d63a VZ |
5969 | |
5970 | ||
5971 | eval "$ac_cv_use_checklst" | |
5972 | if test "$no_cache" != 1; then | |
5973 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5974 | fi | |
5975 | ||
5976 | if test "$wxUSE_CHECKLST" = yes; then | |
a0b9e27f | 5977 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5978 | else |
a0b9e27f | 5979 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5980 | fi |
a0b9e27f | 5981 | |
10f2d63a | 5982 | |
a0b9e27f | 5983 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
6969f178 | 5984 | echo "configure:5985: checking for --enable-choice" >&5 |
10f2d63a VZ |
5985 | no_cache=0 |
5986 | # Check whether --enable-choice or --disable-choice was given. | |
5987 | if test "${enable_choice+set}" = set; then | |
5988 | enableval="$enable_choice" | |
a0b9e27f | 5989 | |
10f2d63a VZ |
5990 | if test "$enableval" = yes; then |
5991 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5992 | else | |
5993 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5994 | fi | |
a0b9e27f | 5995 | |
10f2d63a | 5996 | else |
a0b9e27f | 5997 | |
10f2d63a VZ |
5998 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5999 | if test "x$LINE" != x ; then | |
6000 | eval "DEFAULT_$LINE" | |
6001 | else | |
6002 | no_cache=1 | |
6003 | fi | |
6004 | ||
6005 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
a0b9e27f MB |
6006 | |
6007 | fi | |
10f2d63a VZ |
6008 | |
6009 | ||
6010 | eval "$ac_cv_use_choice" | |
6011 | if test "$no_cache" != 1; then | |
6012 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6013 | fi | |
6014 | ||
6015 | if test "$wxUSE_CHOICE" = yes; then | |
a0b9e27f | 6016 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6017 | else |
a0b9e27f | 6018 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6019 | fi |
a0b9e27f | 6020 | |
10f2d63a | 6021 | |
a0b9e27f | 6022 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
6969f178 | 6023 | echo "configure:6024: checking for --enable-combobox" >&5 |
10f2d63a VZ |
6024 | no_cache=0 |
6025 | # Check whether --enable-combobox or --disable-combobox was given. | |
6026 | if test "${enable_combobox+set}" = set; then | |
6027 | enableval="$enable_combobox" | |
a0b9e27f | 6028 | |
10f2d63a VZ |
6029 | if test "$enableval" = yes; then |
6030 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6031 | else | |
6032 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6033 | fi | |
a0b9e27f | 6034 | |
10f2d63a | 6035 | else |
a0b9e27f | 6036 | |
10f2d63a VZ |
6037 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6038 | if test "x$LINE" != x ; then | |
6039 | eval "DEFAULT_$LINE" | |
6040 | else | |
6041 | no_cache=1 | |
6042 | fi | |
6043 | ||
6044 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
a0b9e27f MB |
6045 | |
6046 | fi | |
10f2d63a VZ |
6047 | |
6048 | ||
6049 | eval "$ac_cv_use_combobox" | |
6050 | if test "$no_cache" != 1; then | |
6051 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6052 | fi | |
6053 | ||
6054 | if test "$wxUSE_COMBOBOX" = yes; then | |
a0b9e27f | 6055 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6056 | else |
a0b9e27f | 6057 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6058 | fi |
a0b9e27f | 6059 | |
10f2d63a | 6060 | |
a0b9e27f | 6061 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
6969f178 | 6062 | echo "configure:6063: checking for --enable-gauge" >&5 |
10f2d63a VZ |
6063 | no_cache=0 |
6064 | # Check whether --enable-gauge or --disable-gauge was given. | |
6065 | if test "${enable_gauge+set}" = set; then | |
6066 | enableval="$enable_gauge" | |
a0b9e27f | 6067 | |
10f2d63a VZ |
6068 | if test "$enableval" = yes; then |
6069 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6070 | else | |
6071 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6072 | fi | |
a0b9e27f | 6073 | |
10f2d63a | 6074 | else |
a0b9e27f | 6075 | |
10f2d63a VZ |
6076 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6077 | if test "x$LINE" != x ; then | |
6078 | eval "DEFAULT_$LINE" | |
6079 | else | |
6080 | no_cache=1 | |
6081 | fi | |
6082 | ||
6083 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
a0b9e27f MB |
6084 | |
6085 | fi | |
10f2d63a VZ |
6086 | |
6087 | ||
6088 | eval "$ac_cv_use_gauge" | |
6089 | if test "$no_cache" != 1; then | |
6090 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6091 | fi | |
6092 | ||
6093 | if test "$wxUSE_GAUGE" = yes; then | |
a0b9e27f | 6094 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6095 | else |
a0b9e27f | 6096 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6097 | fi |
a0b9e27f | 6098 | |
10f2d63a | 6099 | |
a0b9e27f | 6100 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
6969f178 | 6101 | echo "configure:6102: checking for --enable-grid" >&5 |
10f2d63a VZ |
6102 | no_cache=0 |
6103 | # Check whether --enable-grid or --disable-grid was given. | |
6104 | if test "${enable_grid+set}" = set; then | |
6105 | enableval="$enable_grid" | |
a0b9e27f | 6106 | |
10f2d63a VZ |
6107 | if test "$enableval" = yes; then |
6108 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6109 | else | |
6110 | ac_cv_use_grid='wxUSE_GRID=no' | |
6111 | fi | |
a0b9e27f | 6112 | |
10f2d63a | 6113 | else |
a0b9e27f | 6114 | |
10f2d63a VZ |
6115 | LINE=`grep "wxUSE_GRID" ${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_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
a0b9e27f MB |
6123 | |
6124 | fi | |
10f2d63a VZ |
6125 | |
6126 | ||
6127 | eval "$ac_cv_use_grid" | |
6128 | if test "$no_cache" != 1; then | |
6129 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6130 | fi | |
6131 | ||
6132 | if test "$wxUSE_GRID" = yes; then | |
a0b9e27f | 6133 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6134 | else |
a0b9e27f | 6135 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6136 | fi |
a0b9e27f | 6137 | |
10f2d63a | 6138 | |
a0b9e27f | 6139 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
6969f178 | 6140 | echo "configure:6141: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
6141 | no_cache=0 |
6142 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6143 | if test "${enable_newgrid+set}" = set; then | |
6144 | enableval="$enable_newgrid" | |
a0b9e27f | 6145 | |
10f2d63a VZ |
6146 | if test "$enableval" = yes; then |
6147 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6148 | else | |
6149 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6150 | fi | |
a0b9e27f | 6151 | |
10f2d63a | 6152 | else |
a0b9e27f | 6153 | |
10f2d63a VZ |
6154 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6155 | if test "x$LINE" != x ; then | |
6156 | eval "DEFAULT_$LINE" | |
6157 | else | |
6158 | no_cache=1 | |
6159 | fi | |
6160 | ||
6161 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
a0b9e27f MB |
6162 | |
6163 | fi | |
10f2d63a VZ |
6164 | |
6165 | ||
6166 | eval "$ac_cv_use_newgrid" | |
6167 | if test "$no_cache" != 1; then | |
6168 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6169 | fi | |
6170 | ||
6171 | if test "$wxUSE_NEW_GRID" = yes; then | |
a0b9e27f | 6172 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6173 | else |
a0b9e27f | 6174 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6175 | fi |
a0b9e27f | 6176 | |
10f2d63a | 6177 | |
a0b9e27f | 6178 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
6969f178 | 6179 | echo "configure:6180: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
6180 | no_cache=0 |
6181 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6182 | if test "${enable_imaglist+set}" = set; then | |
6183 | enableval="$enable_imaglist" | |
a0b9e27f | 6184 | |
10f2d63a VZ |
6185 | if test "$enableval" = yes; then |
6186 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6187 | else | |
6188 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6189 | fi | |
a0b9e27f | 6190 | |
10f2d63a | 6191 | else |
a0b9e27f | 6192 | |
10f2d63a VZ |
6193 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6194 | if test "x$LINE" != x ; then | |
6195 | eval "DEFAULT_$LINE" | |
6196 | else | |
6197 | no_cache=1 | |
6198 | fi | |
6199 | ||
6200 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
a0b9e27f MB |
6201 | |
6202 | fi | |
10f2d63a VZ |
6203 | |
6204 | ||
6205 | eval "$ac_cv_use_imaglist" | |
6206 | if test "$no_cache" != 1; then | |
6207 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6208 | fi | |
6209 | ||
6210 | if test "$wxUSE_IMAGLIST" = yes; then | |
a0b9e27f | 6211 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6212 | else |
a0b9e27f | 6213 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6214 | fi |
a0b9e27f | 6215 | |
10f2d63a | 6216 | |
a0b9e27f | 6217 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
6969f178 | 6218 | echo "configure:6219: checking for --enable-listbox" >&5 |
10f2d63a VZ |
6219 | no_cache=0 |
6220 | # Check whether --enable-listbox or --disable-listbox was given. | |
6221 | if test "${enable_listbox+set}" = set; then | |
6222 | enableval="$enable_listbox" | |
a0b9e27f | 6223 | |
10f2d63a VZ |
6224 | if test "$enableval" = yes; then |
6225 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6226 | else | |
6227 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6228 | fi | |
a0b9e27f | 6229 | |
10f2d63a | 6230 | else |
a0b9e27f | 6231 | |
10f2d63a VZ |
6232 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6233 | if test "x$LINE" != x ; then | |
6234 | eval "DEFAULT_$LINE" | |
6235 | else | |
6236 | no_cache=1 | |
6237 | fi | |
6238 | ||
6239 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
a0b9e27f MB |
6240 | |
6241 | fi | |
10f2d63a VZ |
6242 | |
6243 | ||
6244 | eval "$ac_cv_use_listbox" | |
6245 | if test "$no_cache" != 1; then | |
6246 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6247 | fi | |
6248 | ||
6249 | if test "$wxUSE_LISTBOX" = yes; then | |
a0b9e27f | 6250 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6251 | else |
a0b9e27f | 6252 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6253 | fi |
a0b9e27f | 6254 | |
10f2d63a | 6255 | |
a0b9e27f | 6256 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
6969f178 | 6257 | echo "configure:6258: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
6258 | no_cache=0 |
6259 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6260 | if test "${enable_listctrl+set}" = set; then | |
6261 | enableval="$enable_listctrl" | |
a0b9e27f | 6262 | |
10f2d63a VZ |
6263 | if test "$enableval" = yes; then |
6264 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6265 | else | |
6266 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6267 | fi | |
a0b9e27f | 6268 | |
10f2d63a | 6269 | else |
a0b9e27f | 6270 | |
10f2d63a VZ |
6271 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6272 | if test "x$LINE" != x ; then | |
6273 | eval "DEFAULT_$LINE" | |
6274 | else | |
6275 | no_cache=1 | |
6276 | fi | |
6277 | ||
6278 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
a0b9e27f MB |
6279 | |
6280 | fi | |
10f2d63a VZ |
6281 | |
6282 | ||
6283 | eval "$ac_cv_use_listctrl" | |
6284 | if test "$no_cache" != 1; then | |
6285 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6286 | fi | |
6287 | ||
6288 | if test "$wxUSE_LISTCTRL" = yes; then | |
a0b9e27f | 6289 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6290 | else |
a0b9e27f | 6291 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6292 | fi |
a0b9e27f | 6293 | |
10f2d63a | 6294 | |
a0b9e27f | 6295 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
6969f178 | 6296 | echo "configure:6297: checking for --enable-notebook" >&5 |
10f2d63a VZ |
6297 | no_cache=0 |
6298 | # Check whether --enable-notebook or --disable-notebook was given. | |
6299 | if test "${enable_notebook+set}" = set; then | |
6300 | enableval="$enable_notebook" | |
a0b9e27f | 6301 | |
10f2d63a VZ |
6302 | if test "$enableval" = yes; then |
6303 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6304 | else | |
6305 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6306 | fi | |
a0b9e27f | 6307 | |
10f2d63a | 6308 | else |
a0b9e27f | 6309 | |
10f2d63a VZ |
6310 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6311 | if test "x$LINE" != x ; then | |
6312 | eval "DEFAULT_$LINE" | |
6313 | else | |
6314 | no_cache=1 | |
6315 | fi | |
6316 | ||
6317 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
a0b9e27f MB |
6318 | |
6319 | fi | |
10f2d63a VZ |
6320 | |
6321 | ||
6322 | eval "$ac_cv_use_notebook" | |
6323 | if test "$no_cache" != 1; then | |
6324 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6325 | fi | |
6326 | ||
6327 | if test "$wxUSE_NOTEBOOK" = yes; then | |
a0b9e27f | 6328 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6329 | else |
a0b9e27f | 6330 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6331 | fi |
a0b9e27f | 6332 | |
10f2d63a | 6333 | |
a0b9e27f | 6334 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
6969f178 | 6335 | echo "configure:6336: checking for --enable-propsheet" >&5 |
24176f2c GD |
6336 | no_cache=0 |
6337 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6338 | if test "${enable_propsheet+set}" = set; then | |
6339 | enableval="$enable_propsheet" | |
a0b9e27f | 6340 | |
24176f2c GD |
6341 | if test "$enableval" = yes; then |
6342 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6343 | else | |
6344 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6345 | fi | |
a0b9e27f | 6346 | |
24176f2c | 6347 | else |
a0b9e27f | 6348 | |
24176f2c GD |
6349 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` |
6350 | if test "x$LINE" != x ; then | |
6351 | eval "DEFAULT_$LINE" | |
6352 | else | |
6353 | no_cache=1 | |
6354 | fi | |
6355 | ||
6356 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
a0b9e27f MB |
6357 | |
6358 | fi | |
24176f2c GD |
6359 | |
6360 | ||
6361 | eval "$ac_cv_use_propsheet" | |
6362 | if test "$no_cache" != 1; then | |
6363 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6364 | fi | |
6365 | ||
6366 | if test "$wxUSE_PROPSHEET" = yes; then | |
a0b9e27f | 6367 | echo "$ac_t""yes" 1>&6 |
24176f2c | 6368 | else |
a0b9e27f | 6369 | echo "$ac_t""no" 1>&6 |
24176f2c | 6370 | fi |
a0b9e27f | 6371 | |
24176f2c | 6372 | |
a0b9e27f | 6373 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
6969f178 | 6374 | echo "configure:6375: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
6375 | no_cache=0 |
6376 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6377 | if test "${enable_radiobox+set}" = set; then | |
6378 | enableval="$enable_radiobox" | |
a0b9e27f | 6379 | |
10f2d63a VZ |
6380 | if test "$enableval" = yes; then |
6381 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6382 | else | |
6383 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6384 | fi | |
a0b9e27f | 6385 | |
10f2d63a | 6386 | else |
a0b9e27f | 6387 | |
10f2d63a VZ |
6388 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6389 | if test "x$LINE" != x ; then | |
6390 | eval "DEFAULT_$LINE" | |
6391 | else | |
6392 | no_cache=1 | |
6393 | fi | |
6394 | ||
6395 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
a0b9e27f MB |
6396 | |
6397 | fi | |
10f2d63a VZ |
6398 | |
6399 | ||
6400 | eval "$ac_cv_use_radiobox" | |
6401 | if test "$no_cache" != 1; then | |
6402 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6403 | fi | |
6404 | ||
6405 | if test "$wxUSE_RADIOBOX" = yes; then | |
a0b9e27f | 6406 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6407 | else |
a0b9e27f | 6408 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6409 | fi |
a0b9e27f | 6410 | |
10f2d63a | 6411 | |
a0b9e27f | 6412 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
6969f178 | 6413 | echo "configure:6414: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
6414 | no_cache=0 |
6415 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6416 | if test "${enable_radiobtn+set}" = set; then | |
6417 | enableval="$enable_radiobtn" | |
a0b9e27f | 6418 | |
10f2d63a VZ |
6419 | if test "$enableval" = yes; then |
6420 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6421 | else | |
6422 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6423 | fi | |
a0b9e27f | 6424 | |
10f2d63a | 6425 | else |
a0b9e27f | 6426 | |
10f2d63a VZ |
6427 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6428 | if test "x$LINE" != x ; then | |
6429 | eval "DEFAULT_$LINE" | |
6430 | else | |
6431 | no_cache=1 | |
6432 | fi | |
6433 | ||
6434 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
a0b9e27f MB |
6435 | |
6436 | fi | |
10f2d63a VZ |
6437 | |
6438 | ||
6439 | eval "$ac_cv_use_radiobtn" | |
6440 | if test "$no_cache" != 1; then | |
6441 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6442 | fi | |
6443 | ||
6444 | if test "$wxUSE_RADIOBTN" = yes; then | |
a0b9e27f | 6445 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6446 | else |
a0b9e27f | 6447 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6448 | fi |
a0b9e27f | 6449 | |
10f2d63a | 6450 | |
a0b9e27f | 6451 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
6969f178 | 6452 | echo "configure:6453: checking for --enable-sash" >&5 |
10f2d63a VZ |
6453 | no_cache=0 |
6454 | # Check whether --enable-sash or --disable-sash was given. | |
6455 | if test "${enable_sash+set}" = set; then | |
6456 | enableval="$enable_sash" | |
a0b9e27f | 6457 | |
10f2d63a VZ |
6458 | if test "$enableval" = yes; then |
6459 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6460 | else | |
6461 | ac_cv_use_sash='wxUSE_SASH=no' | |
6462 | fi | |
a0b9e27f | 6463 | |
10f2d63a | 6464 | else |
a0b9e27f | 6465 | |
10f2d63a VZ |
6466 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6467 | if test "x$LINE" != x ; then | |
6468 | eval "DEFAULT_$LINE" | |
6469 | else | |
6470 | no_cache=1 | |
6471 | fi | |
6472 | ||
6473 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
a0b9e27f MB |
6474 | |
6475 | fi | |
10f2d63a VZ |
6476 | |
6477 | ||
6478 | eval "$ac_cv_use_sash" | |
6479 | if test "$no_cache" != 1; then | |
6480 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6481 | fi | |
6482 | ||
6483 | if test "$wxUSE_SASH" = yes; then | |
a0b9e27f | 6484 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6485 | else |
a0b9e27f | 6486 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6487 | fi |
a0b9e27f | 6488 | |
10f2d63a | 6489 | |
a0b9e27f | 6490 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
6969f178 | 6491 | echo "configure:6492: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
6492 | no_cache=0 |
6493 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6494 | if test "${enable_scrollbar+set}" = set; then | |
6495 | enableval="$enable_scrollbar" | |
a0b9e27f | 6496 | |
10f2d63a VZ |
6497 | if test "$enableval" = yes; then |
6498 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6499 | else | |
6500 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6501 | fi | |
a0b9e27f | 6502 | |
10f2d63a | 6503 | else |
a0b9e27f | 6504 | |
10f2d63a VZ |
6505 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6506 | if test "x$LINE" != x ; then | |
6507 | eval "DEFAULT_$LINE" | |
6508 | else | |
6509 | no_cache=1 | |
6510 | fi | |
6511 | ||
6512 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
a0b9e27f MB |
6513 | |
6514 | fi | |
10f2d63a VZ |
6515 | |
6516 | ||
6517 | eval "$ac_cv_use_scrollbar" | |
6518 | if test "$no_cache" != 1; then | |
6519 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6520 | fi | |
6521 | ||
6522 | if test "$wxUSE_SCROLLBAR" = yes; then | |
a0b9e27f | 6523 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6524 | else |
a0b9e27f | 6525 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6526 | fi |
a0b9e27f | 6527 | |
10f2d63a | 6528 | |
a0b9e27f | 6529 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
6969f178 | 6530 | echo "configure:6531: checking for --enable-slider" >&5 |
10f2d63a VZ |
6531 | no_cache=0 |
6532 | # Check whether --enable-slider or --disable-slider was given. | |
6533 | if test "${enable_slider+set}" = set; then | |
6534 | enableval="$enable_slider" | |
a0b9e27f | 6535 | |
10f2d63a VZ |
6536 | if test "$enableval" = yes; then |
6537 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6538 | else | |
6539 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6540 | fi | |
a0b9e27f | 6541 | |
10f2d63a | 6542 | else |
a0b9e27f | 6543 | |
10f2d63a VZ |
6544 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6545 | if test "x$LINE" != x ; then | |
6546 | eval "DEFAULT_$LINE" | |
6547 | else | |
6548 | no_cache=1 | |
6549 | fi | |
6550 | ||
6551 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
a0b9e27f MB |
6552 | |
6553 | fi | |
10f2d63a VZ |
6554 | |
6555 | ||
6556 | eval "$ac_cv_use_slider" | |
6557 | if test "$no_cache" != 1; then | |
6558 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6559 | fi | |
6560 | ||
6561 | if test "$wxUSE_SLIDER" = yes; then | |
a0b9e27f | 6562 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6563 | else |
a0b9e27f | 6564 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6565 | fi |
a0b9e27f | 6566 | |
10f2d63a | 6567 | |
a0b9e27f | 6568 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
6969f178 | 6569 | echo "configure:6570: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6570 | no_cache=0 |
6571 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6572 | if test "${enable_spinbtn+set}" = set; then | |
6573 | enableval="$enable_spinbtn" | |
a0b9e27f | 6574 | |
10f2d63a VZ |
6575 | if test "$enableval" = yes; then |
6576 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6577 | else | |
6578 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6579 | fi | |
a0b9e27f | 6580 | |
10f2d63a | 6581 | else |
a0b9e27f | 6582 | |
10f2d63a VZ |
6583 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6584 | if test "x$LINE" != x ; then | |
6585 | eval "DEFAULT_$LINE" | |
6586 | else | |
6587 | no_cache=1 | |
6588 | fi | |
6589 | ||
6590 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
a0b9e27f MB |
6591 | |
6592 | fi | |
10f2d63a VZ |
6593 | |
6594 | ||
6595 | eval "$ac_cv_use_spinbtn" | |
6596 | if test "$no_cache" != 1; then | |
6597 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6598 | fi | |
6599 | ||
6600 | if test "$wxUSE_SPINBTN" = yes; then | |
a0b9e27f | 6601 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6602 | else |
a0b9e27f | 6603 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6604 | fi |
a0b9e27f | 6605 | |
10f2d63a | 6606 | |
a0b9e27f | 6607 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
6969f178 | 6608 | echo "configure:6609: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6609 | no_cache=0 |
6610 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6611 | if test "${enable_spinctrl+set}" = set; then | |
6612 | enableval="$enable_spinctrl" | |
a0b9e27f | 6613 | |
56cfaa52 RR |
6614 | if test "$enableval" = yes; then |
6615 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6616 | else | |
6617 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6618 | fi | |
a0b9e27f | 6619 | |
56cfaa52 | 6620 | else |
a0b9e27f | 6621 | |
56cfaa52 RR |
6622 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6623 | if test "x$LINE" != x ; then | |
6624 | eval "DEFAULT_$LINE" | |
6625 | else | |
6626 | no_cache=1 | |
6627 | fi | |
6628 | ||
6629 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
a0b9e27f MB |
6630 | |
6631 | fi | |
56cfaa52 RR |
6632 | |
6633 | ||
6634 | eval "$ac_cv_use_spinctrl" | |
6635 | if test "$no_cache" != 1; then | |
6636 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6637 | fi | |
6638 | ||
6639 | if test "$wxUSE_SPINCTRL" = yes; then | |
a0b9e27f | 6640 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6641 | else |
a0b9e27f | 6642 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6643 | fi |
a0b9e27f | 6644 | |
56cfaa52 | 6645 | |
a0b9e27f | 6646 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
6969f178 | 6647 | echo "configure:6648: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6648 | no_cache=0 |
6649 | # Check whether --enable-splitter or --disable-splitter was given. | |
6650 | if test "${enable_splitter+set}" = set; then | |
6651 | enableval="$enable_splitter" | |
a0b9e27f | 6652 | |
10f2d63a VZ |
6653 | if test "$enableval" = yes; then |
6654 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6655 | else | |
6656 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6657 | fi | |
a0b9e27f | 6658 | |
10f2d63a | 6659 | else |
a0b9e27f | 6660 | |
10f2d63a VZ |
6661 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6662 | if test "x$LINE" != x ; then | |
6663 | eval "DEFAULT_$LINE" | |
6664 | else | |
6665 | no_cache=1 | |
6666 | fi | |
6667 | ||
6668 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
a0b9e27f MB |
6669 | |
6670 | fi | |
10f2d63a VZ |
6671 | |
6672 | ||
6673 | eval "$ac_cv_use_splitter" | |
6674 | if test "$no_cache" != 1; then | |
6675 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6676 | fi | |
6677 | ||
6678 | if test "$wxUSE_SPLITTER" = yes; then | |
a0b9e27f | 6679 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6680 | else |
a0b9e27f | 6681 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6682 | fi |
a0b9e27f | 6683 | |
10f2d63a | 6684 | |
a0b9e27f | 6685 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
6969f178 | 6686 | echo "configure:6687: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6687 | no_cache=0 |
6688 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6689 | if test "${enable_statbmp+set}" = set; then | |
6690 | enableval="$enable_statbmp" | |
a0b9e27f | 6691 | |
10f2d63a VZ |
6692 | if test "$enableval" = yes; then |
6693 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6694 | else | |
6695 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6696 | fi | |
a0b9e27f | 6697 | |
10f2d63a | 6698 | else |
a0b9e27f | 6699 | |
10f2d63a VZ |
6700 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6701 | if test "x$LINE" != x ; then | |
6702 | eval "DEFAULT_$LINE" | |
6703 | else | |
6704 | no_cache=1 | |
6705 | fi | |
6706 | ||
6707 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
a0b9e27f MB |
6708 | |
6709 | fi | |
10f2d63a VZ |
6710 | |
6711 | ||
6712 | eval "$ac_cv_use_statbmp" | |
6713 | if test "$no_cache" != 1; then | |
6714 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6715 | fi | |
6716 | ||
6717 | if test "$wxUSE_STATBMP" = yes; then | |
a0b9e27f | 6718 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6719 | else |
a0b9e27f | 6720 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6721 | fi |
a0b9e27f | 6722 | |
10f2d63a | 6723 | |
a0b9e27f | 6724 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
6969f178 | 6725 | echo "configure:6726: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6726 | no_cache=0 |
6727 | # Check whether --enable-statbox or --disable-statbox was given. | |
6728 | if test "${enable_statbox+set}" = set; then | |
6729 | enableval="$enable_statbox" | |
a0b9e27f | 6730 | |
10f2d63a VZ |
6731 | if test "$enableval" = yes; then |
6732 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6733 | else | |
6734 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6735 | fi | |
a0b9e27f | 6736 | |
10f2d63a | 6737 | else |
a0b9e27f | 6738 | |
10f2d63a VZ |
6739 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6740 | if test "x$LINE" != x ; then | |
6741 | eval "DEFAULT_$LINE" | |
6742 | else | |
6743 | no_cache=1 | |
6744 | fi | |
6745 | ||
6746 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
a0b9e27f MB |
6747 | |
6748 | fi | |
10f2d63a VZ |
6749 | |
6750 | ||
6751 | eval "$ac_cv_use_statbox" | |
6752 | if test "$no_cache" != 1; then | |
6753 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6754 | fi | |
6755 | ||
6756 | if test "$wxUSE_STATBOX" = yes; then | |
a0b9e27f | 6757 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6758 | else |
a0b9e27f | 6759 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6760 | fi |
a0b9e27f | 6761 | |
10f2d63a | 6762 | |
a0b9e27f | 6763 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
6969f178 | 6764 | echo "configure:6765: checking for --enable-statline" >&5 |
10f2d63a VZ |
6765 | no_cache=0 |
6766 | # Check whether --enable-statline or --disable-statline was given. | |
6767 | if test "${enable_statline+set}" = set; then | |
6768 | enableval="$enable_statline" | |
a0b9e27f | 6769 | |
10f2d63a VZ |
6770 | if test "$enableval" = yes; then |
6771 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6772 | else | |
6773 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6774 | fi | |
a0b9e27f | 6775 | |
10f2d63a | 6776 | else |
a0b9e27f | 6777 | |
10f2d63a VZ |
6778 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6779 | if test "x$LINE" != x ; then | |
6780 | eval "DEFAULT_$LINE" | |
6781 | else | |
6782 | no_cache=1 | |
6783 | fi | |
6784 | ||
6785 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
a0b9e27f MB |
6786 | |
6787 | fi | |
10f2d63a VZ |
6788 | |
6789 | ||
6790 | eval "$ac_cv_use_statline" | |
6791 | if test "$no_cache" != 1; then | |
6792 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6793 | fi | |
6794 | ||
6795 | if test "$wxUSE_STATLINE" = yes; then | |
a0b9e27f | 6796 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6797 | else |
a0b9e27f | 6798 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6799 | fi |
a0b9e27f | 6800 | |
10f2d63a | 6801 | |
a0b9e27f | 6802 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
6969f178 | 6803 | echo "configure:6804: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6804 | no_cache=0 |
6805 | # Check whether --enable-stattext or --disable-stattext was given. | |
6806 | if test "${enable_stattext+set}" = set; then | |
6807 | enableval="$enable_stattext" | |
a0b9e27f | 6808 | |
1e6feb95 VZ |
6809 | if test "$enableval" = yes; then |
6810 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6811 | else | |
6812 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6813 | fi | |
a0b9e27f | 6814 | |
1e6feb95 | 6815 | else |
a0b9e27f | 6816 | |
1e6feb95 VZ |
6817 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
6818 | if test "x$LINE" != x ; then | |
6819 | eval "DEFAULT_$LINE" | |
6820 | else | |
6821 | no_cache=1 | |
6822 | fi | |
6823 | ||
6824 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
a0b9e27f MB |
6825 | |
6826 | fi | |
1e6feb95 VZ |
6827 | |
6828 | ||
6829 | eval "$ac_cv_use_stattext" | |
6830 | if test "$no_cache" != 1; then | |
6831 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6832 | fi | |
6833 | ||
6834 | if test "$wxUSE_STATTEXT" = yes; then | |
a0b9e27f | 6835 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6836 | else |
a0b9e27f | 6837 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6838 | fi |
a0b9e27f | 6839 | |
1e6feb95 | 6840 | |
a0b9e27f | 6841 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
6969f178 | 6842 | echo "configure:6843: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6843 | no_cache=0 |
6844 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6845 | if test "${enable_statusbar+set}" = set; then | |
6846 | enableval="$enable_statusbar" | |
a0b9e27f | 6847 | |
10f2d63a VZ |
6848 | if test "$enableval" = yes; then |
6849 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6850 | else | |
6851 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6852 | fi | |
a0b9e27f | 6853 | |
10f2d63a | 6854 | else |
a0b9e27f | 6855 | |
10f2d63a VZ |
6856 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6857 | if test "x$LINE" != x ; then | |
6858 | eval "DEFAULT_$LINE" | |
6859 | else | |
6860 | no_cache=1 | |
6861 | fi | |
6862 | ||
6863 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
a0b9e27f MB |
6864 | |
6865 | fi | |
10f2d63a VZ |
6866 | |
6867 | ||
6868 | eval "$ac_cv_use_statusbar" | |
6869 | if test "$no_cache" != 1; then | |
6870 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6871 | fi | |
6872 | ||
6873 | if test "$wxUSE_STATUSBAR" = yes; then | |
a0b9e27f | 6874 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6875 | else |
a0b9e27f | 6876 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6877 | fi |
a0b9e27f | 6878 | |
10f2d63a | 6879 | |
a0b9e27f | 6880 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
6969f178 | 6881 | echo "configure:6882: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6882 | no_cache=0 |
6883 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6884 | if test "${enable_tabdialog+set}" = set; then | |
6885 | enableval="$enable_tabdialog" | |
a0b9e27f | 6886 | |
10f2d63a VZ |
6887 | if test "$enableval" = yes; then |
6888 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6889 | else | |
6890 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6891 | fi | |
a0b9e27f | 6892 | |
10f2d63a | 6893 | else |
a0b9e27f | 6894 | |
10f2d63a VZ |
6895 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6896 | if test "x$LINE" != x ; then | |
6897 | eval "DEFAULT_$LINE" | |
6898 | else | |
6899 | no_cache=1 | |
6900 | fi | |
6901 | ||
6902 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
a0b9e27f MB |
6903 | |
6904 | fi | |
10f2d63a VZ |
6905 | |
6906 | ||
6907 | eval "$ac_cv_use_tabdialog" | |
6908 | if test "$no_cache" != 1; then | |
6909 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6910 | fi | |
6911 | ||
6912 | if test "$wxUSE_TABDIALOG" = yes; then | |
a0b9e27f | 6913 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6914 | else |
a0b9e27f | 6915 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6916 | fi |
a0b9e27f | 6917 | |
10f2d63a | 6918 | |
a0b9e27f | 6919 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
6969f178 | 6920 | echo "configure:6921: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6921 | no_cache=0 |
6922 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6923 | if test "${enable_textctrl+set}" = set; then | |
6924 | enableval="$enable_textctrl" | |
a0b9e27f | 6925 | |
1e6feb95 VZ |
6926 | if test "$enableval" = yes; then |
6927 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6928 | else | |
6929 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6930 | fi | |
a0b9e27f | 6931 | |
1e6feb95 | 6932 | else |
a0b9e27f | 6933 | |
1e6feb95 VZ |
6934 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
6935 | if test "x$LINE" != x ; then | |
6936 | eval "DEFAULT_$LINE" | |
6937 | else | |
6938 | no_cache=1 | |
6939 | fi | |
6940 | ||
6941 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
a0b9e27f MB |
6942 | |
6943 | fi | |
1e6feb95 VZ |
6944 | |
6945 | ||
6946 | eval "$ac_cv_use_textctrl" | |
6947 | if test "$no_cache" != 1; then | |
6948 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6949 | fi | |
6950 | ||
6951 | if test "$wxUSE_TEXTCTRL" = yes; then | |
a0b9e27f | 6952 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6953 | else |
a0b9e27f | 6954 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6955 | fi |
a0b9e27f | 6956 | |
1e6feb95 | 6957 | |
a0b9e27f | 6958 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
6969f178 | 6959 | echo "configure:6960: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6960 | no_cache=0 |
6961 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6962 | if test "${enable_togglebtn+set}" = set; then | |
6963 | enableval="$enable_togglebtn" | |
a0b9e27f | 6964 | |
1db8dc4a VZ |
6965 | if test "$enableval" = yes; then |
6966 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6967 | else | |
6968 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6969 | fi | |
a0b9e27f | 6970 | |
1db8dc4a | 6971 | else |
a0b9e27f | 6972 | |
1db8dc4a VZ |
6973 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6974 | if test "x$LINE" != x ; then | |
6975 | eval "DEFAULT_$LINE" | |
6976 | else | |
6977 | no_cache=1 | |
6978 | fi | |
6979 | ||
6980 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
a0b9e27f MB |
6981 | |
6982 | fi | |
1db8dc4a VZ |
6983 | |
6984 | ||
6985 | eval "$ac_cv_use_togglebtn" | |
6986 | if test "$no_cache" != 1; then | |
6987 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6988 | fi | |
6989 | ||
6990 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
a0b9e27f | 6991 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6992 | else |
a0b9e27f | 6993 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6994 | fi |
a0b9e27f | 6995 | |
1db8dc4a | 6996 | |
a0b9e27f | 6997 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
6969f178 | 6998 | echo "configure:6999: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6999 | no_cache=0 |
7000 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7001 | if test "${enable_toolbar+set}" = set; then | |
7002 | enableval="$enable_toolbar" | |
a0b9e27f | 7003 | |
10f2d63a VZ |
7004 | if test "$enableval" = yes; then |
7005 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7006 | else | |
7007 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7008 | fi | |
a0b9e27f | 7009 | |
10f2d63a | 7010 | else |
a0b9e27f | 7011 | |
10f2d63a VZ |
7012 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7013 | if test "x$LINE" != x ; then | |
7014 | eval "DEFAULT_$LINE" | |
7015 | else | |
7016 | no_cache=1 | |
7017 | fi | |
7018 | ||
7019 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
a0b9e27f MB |
7020 | |
7021 | fi | |
10f2d63a VZ |
7022 | |
7023 | ||
7024 | eval "$ac_cv_use_toolbar" | |
7025 | if test "$no_cache" != 1; then | |
7026 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7027 | fi | |
7028 | ||
7029 | if test "$wxUSE_TOOLBAR" = yes; then | |
a0b9e27f | 7030 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7031 | else |
a0b9e27f | 7032 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7033 | fi |
a0b9e27f | 7034 | |
10f2d63a | 7035 | |
a0b9e27f | 7036 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
6969f178 | 7037 | echo "configure:7038: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
7038 | no_cache=0 |
7039 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7040 | if test "${enable_tbarnative+set}" = set; then | |
7041 | enableval="$enable_tbarnative" | |
a0b9e27f | 7042 | |
360d6699 VZ |
7043 | if test "$enableval" = yes; then |
7044 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7045 | else | |
7046 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7047 | fi | |
a0b9e27f | 7048 | |
360d6699 | 7049 | else |
a0b9e27f | 7050 | |
360d6699 VZ |
7051 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7052 | if test "x$LINE" != x ; then | |
7053 | eval "DEFAULT_$LINE" | |
7054 | else | |
7055 | no_cache=1 | |
7056 | fi | |
7057 | ||
7058 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
a0b9e27f MB |
7059 | |
7060 | fi | |
360d6699 VZ |
7061 | |
7062 | ||
7063 | eval "$ac_cv_use_tbarnative" | |
7064 | if test "$no_cache" != 1; then | |
7065 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7066 | fi | |
7067 | ||
7068 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
a0b9e27f | 7069 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7070 | else |
a0b9e27f | 7071 | echo "$ac_t""no" 1>&6 |
360d6699 | 7072 | fi |
a0b9e27f | 7073 | |
360d6699 | 7074 | |
a0b9e27f | 7075 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
6969f178 | 7076 | echo "configure:7077: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
7077 | no_cache=0 |
7078 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7079 | if test "${enable_tbarsmpl+set}" = set; then | |
7080 | enableval="$enable_tbarsmpl" | |
a0b9e27f | 7081 | |
360d6699 VZ |
7082 | if test "$enableval" = yes; then |
7083 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7084 | else | |
7085 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7086 | fi | |
a0b9e27f | 7087 | |
360d6699 | 7088 | else |
a0b9e27f | 7089 | |
360d6699 VZ |
7090 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7091 | if test "x$LINE" != x ; then | |
7092 | eval "DEFAULT_$LINE" | |
7093 | else | |
7094 | no_cache=1 | |
7095 | fi | |
7096 | ||
7097 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
a0b9e27f MB |
7098 | |
7099 | fi | |
360d6699 VZ |
7100 | |
7101 | ||
7102 | eval "$ac_cv_use_tbarsmpl" | |
7103 | if test "$no_cache" != 1; then | |
7104 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7105 | fi | |
7106 | ||
7107 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
a0b9e27f | 7108 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7109 | else |
a0b9e27f | 7110 | echo "$ac_t""no" 1>&6 |
360d6699 | 7111 | fi |
a0b9e27f | 7112 | |
360d6699 | 7113 | |
a0b9e27f | 7114 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
6969f178 | 7115 | echo "configure:7116: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
7116 | no_cache=0 |
7117 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7118 | if test "${enable_treectrl+set}" = set; then | |
7119 | enableval="$enable_treectrl" | |
a0b9e27f | 7120 | |
10f2d63a VZ |
7121 | if test "$enableval" = yes; then |
7122 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7123 | else | |
7124 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7125 | fi | |
a0b9e27f | 7126 | |
10f2d63a | 7127 | else |
a0b9e27f | 7128 | |
10f2d63a VZ |
7129 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7130 | if test "x$LINE" != x ; then | |
7131 | eval "DEFAULT_$LINE" | |
7132 | else | |
7133 | no_cache=1 | |
7134 | fi | |
7135 | ||
7136 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
a0b9e27f MB |
7137 | |
7138 | fi | |
10f2d63a VZ |
7139 | |
7140 | ||
1e6feb95 VZ |
7141 | eval "$ac_cv_use_treectrl" |
7142 | if test "$no_cache" != 1; then | |
7143 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7144 | fi | |
7145 | ||
7146 | if test "$wxUSE_TREECTRL" = yes; then | |
a0b9e27f | 7147 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7148 | else |
a0b9e27f | 7149 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7150 | fi |
a0b9e27f | 7151 | |
1e6feb95 | 7152 | |
a0b9e27f | 7153 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 |
6969f178 | 7154 | echo "configure:7155: checking for --enable-tipwindow" >&5 |
9926e4a4 VZ |
7155 | no_cache=0 |
7156 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7157 | if test "${enable_tipwindow+set}" = set; then | |
7158 | enableval="$enable_tipwindow" | |
a0b9e27f | 7159 | |
9926e4a4 VZ |
7160 | if test "$enableval" = yes; then |
7161 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7162 | else | |
7163 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7164 | fi | |
a0b9e27f | 7165 | |
9926e4a4 | 7166 | else |
a0b9e27f | 7167 | |
9926e4a4 VZ |
7168 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
7169 | if test "x$LINE" != x ; then | |
7170 | eval "DEFAULT_$LINE" | |
7171 | else | |
7172 | no_cache=1 | |
7173 | fi | |
7174 | ||
7175 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
a0b9e27f MB |
7176 | |
7177 | fi | |
9926e4a4 VZ |
7178 | |
7179 | ||
7180 | eval "$ac_cv_use_tipwindow" | |
7181 | if test "$no_cache" != 1; then | |
7182 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7183 | fi | |
7184 | ||
7185 | if test "$wxUSE_TIPWINDOW" = yes; then | |
a0b9e27f | 7186 | echo "$ac_t""yes" 1>&6 |
9926e4a4 | 7187 | else |
a0b9e27f | 7188 | echo "$ac_t""no" 1>&6 |
9926e4a4 | 7189 | fi |
a0b9e27f | 7190 | |
9926e4a4 | 7191 | |
a0b9e27f | 7192 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
6969f178 | 7193 | echo "configure:7194: checking for --enable-popupwin" >&5 |
9f41d601 RR |
7194 | no_cache=0 |
7195 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7196 | if test "${enable_popupwin+set}" = set; then | |
7197 | enableval="$enable_popupwin" | |
a0b9e27f | 7198 | |
9f41d601 RR |
7199 | if test "$enableval" = yes; then |
7200 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7201 | else | |
7202 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7203 | fi | |
a0b9e27f | 7204 | |
9f41d601 | 7205 | else |
a0b9e27f | 7206 | |
9f41d601 RR |
7207 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
7208 | if test "x$LINE" != x ; then | |
7209 | eval "DEFAULT_$LINE" | |
7210 | else | |
7211 | no_cache=1 | |
7212 | fi | |
7213 | ||
7214 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
a0b9e27f MB |
7215 | |
7216 | fi | |
9f41d601 RR |
7217 | |
7218 | ||
7219 | eval "$ac_cv_use_popupwin" | |
7220 | if test "$no_cache" != 1; then | |
7221 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7222 | fi | |
7223 | ||
7224 | if test "$wxUSE_POPUPWIN" = yes; then | |
a0b9e27f | 7225 | echo "$ac_t""yes" 1>&6 |
9f41d601 | 7226 | else |
a0b9e27f | 7227 | echo "$ac_t""no" 1>&6 |
9f41d601 | 7228 | fi |
a0b9e27f | 7229 | |
52127426 | 7230 | |
8284b0c5 MB |
7231 | |
7232 | ||
a0b9e27f | 7233 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 |
6969f178 | 7234 | echo "configure:7235: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
7235 | no_cache=0 |
7236 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7237 | if test "${enable_commondlg+set}" = set; then | |
7238 | enableval="$enable_commondlg" | |
a0b9e27f | 7239 | |
1e6feb95 VZ |
7240 | if test "$enableval" = yes; then |
7241 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7242 | else | |
7243 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7244 | fi | |
a0b9e27f | 7245 | |
1e6feb95 | 7246 | else |
a0b9e27f | 7247 | |
1e6feb95 VZ |
7248 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
7249 | if test "x$LINE" != x ; then | |
7250 | eval "DEFAULT_$LINE" | |
7251 | else | |
7252 | no_cache=1 | |
7253 | fi | |
7254 | ||
7255 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
a0b9e27f MB |
7256 | |
7257 | fi | |
1e6feb95 VZ |
7258 | |
7259 | ||
7260 | eval "$ac_cv_use_commondlg" | |
7261 | if test "$no_cache" != 1; then | |
7262 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7263 | fi | |
7264 | ||
7265 | if test "$wxUSE_COMMONDLGS" = yes; then | |
a0b9e27f | 7266 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7267 | else |
a0b9e27f | 7268 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7269 | fi |
a0b9e27f | 7270 | |
1e6feb95 | 7271 | |
a0b9e27f | 7272 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 |
6969f178 | 7273 | echo "configure:7274: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
7274 | no_cache=0 |
7275 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7276 | if test "${enable_choicedlg+set}" = set; then | |
7277 | enableval="$enable_choicedlg" | |
a0b9e27f | 7278 | |
1e6feb95 VZ |
7279 | if test "$enableval" = yes; then |
7280 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7281 | else | |
7282 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7283 | fi | |
a0b9e27f | 7284 | |
1e6feb95 | 7285 | else |
a0b9e27f | 7286 | |
1e6feb95 VZ |
7287 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
7288 | if test "x$LINE" != x ; then | |
7289 | eval "DEFAULT_$LINE" | |
7290 | else | |
7291 | no_cache=1 | |
7292 | fi | |
7293 | ||
7294 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
a0b9e27f MB |
7295 | |
7296 | fi | |
1e6feb95 VZ |
7297 | |
7298 | ||
7299 | eval "$ac_cv_use_choicedlg" | |
7300 | if test "$no_cache" != 1; then | |
7301 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7302 | fi | |
7303 | ||
7304 | if test "$wxUSE_CHOICEDLG" = yes; then | |
a0b9e27f | 7305 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7306 | else |
a0b9e27f | 7307 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7308 | fi |
a0b9e27f | 7309 | |
1e6feb95 | 7310 | |
a0b9e27f | 7311 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 |
6969f178 | 7312 | echo "configure:7313: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
7313 | no_cache=0 |
7314 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7315 | if test "${enable_coldlg+set}" = set; then | |
7316 | enableval="$enable_coldlg" | |
a0b9e27f | 7317 | |
1e6feb95 VZ |
7318 | if test "$enableval" = yes; then |
7319 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7320 | else | |
7321 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7322 | fi | |
a0b9e27f | 7323 | |
1e6feb95 | 7324 | else |
a0b9e27f | 7325 | |
1e6feb95 VZ |
7326 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
7327 | if test "x$LINE" != x ; then | |
7328 | eval "DEFAULT_$LINE" | |
7329 | else | |
7330 | no_cache=1 | |
7331 | fi | |
7332 | ||
7333 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
a0b9e27f MB |
7334 | |
7335 | fi | |
1e6feb95 VZ |
7336 | |
7337 | ||
7338 | eval "$ac_cv_use_coldlg" | |
7339 | if test "$no_cache" != 1; then | |
7340 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7341 | fi | |
7342 | ||
7343 | if test "$wxUSE_COLOURDLG" = yes; then | |
a0b9e27f | 7344 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7345 | else |
a0b9e27f | 7346 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7347 | fi |
a0b9e27f | 7348 | |
1e6feb95 | 7349 | |
a0b9e27f | 7350 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 |
6969f178 | 7351 | echo "configure:7352: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
7352 | no_cache=0 |
7353 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7354 | if test "${enable_filedlg+set}" = set; then | |
7355 | enableval="$enable_filedlg" | |
a0b9e27f | 7356 | |
1e6feb95 VZ |
7357 | if test "$enableval" = yes; then |
7358 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7359 | else | |
7360 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7361 | fi | |
a0b9e27f | 7362 | |
1e6feb95 | 7363 | else |
a0b9e27f | 7364 | |
1e6feb95 VZ |
7365 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
7366 | if test "x$LINE" != x ; then | |
7367 | eval "DEFAULT_$LINE" | |
7368 | else | |
7369 | no_cache=1 | |
7370 | fi | |
7371 | ||
7372 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
a0b9e27f MB |
7373 | |
7374 | fi | |
1e6feb95 VZ |
7375 | |
7376 | ||
7377 | eval "$ac_cv_use_filedlg" | |
7378 | if test "$no_cache" != 1; then | |
7379 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7380 | fi | |
7381 | ||
7382 | if test "$wxUSE_FILEDLG" = yes; then | |
a0b9e27f | 7383 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7384 | else |
a0b9e27f | 7385 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7386 | fi |
a0b9e27f | 7387 | |
1e6feb95 | 7388 | |
a0b9e27f | 7389 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 |
6969f178 | 7390 | echo "configure:7391: checking for --enable-finddlg" >&5 |
8db37e06 | 7391 | no_cache=0 |
69d27ff7 MB |
7392 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7393 | if test "${enable_finddlg+set}" = set; then | |
7394 | enableval="$enable_finddlg" | |
a0b9e27f | 7395 | |
8db37e06 | 7396 | if test "$enableval" = yes; then |
69d27ff7 | 7397 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7398 | else |
69d27ff7 | 7399 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 7400 | fi |
a0b9e27f | 7401 | |
8db37e06 | 7402 | else |
a0b9e27f | 7403 | |
8db37e06 VZ |
7404 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
7405 | if test "x$LINE" != x ; then | |
7406 | eval "DEFAULT_$LINE" | |
7407 | else | |
7408 | no_cache=1 | |
7409 | fi | |
7410 | ||
69d27ff7 | 7411 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
a0b9e27f MB |
7412 | |
7413 | fi | |
8db37e06 VZ |
7414 | |
7415 | ||
69d27ff7 | 7416 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7417 | if test "$no_cache" != 1; then |
69d27ff7 | 7418 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7419 | fi |
7420 | ||
7421 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
a0b9e27f | 7422 | echo "$ac_t""yes" 1>&6 |
8db37e06 | 7423 | else |
a0b9e27f | 7424 | echo "$ac_t""no" 1>&6 |
8db37e06 | 7425 | fi |
a0b9e27f | 7426 | |
8db37e06 | 7427 | |
a0b9e27f | 7428 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
6969f178 | 7429 | echo "configure:7430: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
7430 | no_cache=0 |
7431 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7432 | if test "${enable_fontdlg+set}" = set; then | |
7433 | enableval="$enable_fontdlg" | |
a0b9e27f | 7434 | |
1e6feb95 VZ |
7435 | if test "$enableval" = yes; then |
7436 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7437 | else | |
7438 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7439 | fi | |
a0b9e27f | 7440 | |
1e6feb95 | 7441 | else |
a0b9e27f | 7442 | |
1e6feb95 VZ |
7443 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
7444 | if test "x$LINE" != x ; then | |
7445 | eval "DEFAULT_$LINE" | |
7446 | else | |
7447 | no_cache=1 | |
7448 | fi | |
7449 | ||
7450 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
a0b9e27f MB |
7451 | |
7452 | fi | |
1e6feb95 VZ |
7453 | |
7454 | ||
7455 | eval "$ac_cv_use_fontdlg" | |
7456 | if test "$no_cache" != 1; then | |
7457 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7458 | fi | |
7459 | ||
7460 | if test "$wxUSE_FONTDLG" = yes; then | |
a0b9e27f | 7461 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7462 | else |
a0b9e27f | 7463 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7464 | fi |
a0b9e27f | 7465 | |
1e6feb95 | 7466 | |
a0b9e27f | 7467 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 |
6969f178 | 7468 | echo "configure:7469: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
7469 | no_cache=0 |
7470 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7471 | if test "${enable_dirdlg+set}" = set; then | |
7472 | enableval="$enable_dirdlg" | |
a0b9e27f | 7473 | |
1e6feb95 VZ |
7474 | if test "$enableval" = yes; then |
7475 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7476 | else | |
7477 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7478 | fi | |
a0b9e27f | 7479 | |
1e6feb95 | 7480 | else |
a0b9e27f | 7481 | |
1e6feb95 VZ |
7482 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
7483 | if test "x$LINE" != x ; then | |
7484 | eval "DEFAULT_$LINE" | |
7485 | else | |
7486 | no_cache=1 | |
7487 | fi | |
7488 | ||
7489 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
a0b9e27f MB |
7490 | |
7491 | fi | |
1e6feb95 VZ |
7492 | |
7493 | ||
7494 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7495 | if test "$no_cache" != 1; then |
1e6feb95 | 7496 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7497 | fi |
7498 | ||
1e6feb95 | 7499 | if test "$wxUSE_DIRDLG" = yes; then |
a0b9e27f | 7500 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7501 | else |
a0b9e27f | 7502 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7503 | fi |
a0b9e27f | 7504 | |
698dcdb6 | 7505 | |
a0b9e27f | 7506 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
6969f178 | 7507 | echo "configure:7508: checking for --enable-msgdlg" >&5 |
10f2d63a | 7508 | no_cache=0 |
1e6feb95 VZ |
7509 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7510 | if test "${enable_msgdlg+set}" = set; then | |
7511 | enableval="$enable_msgdlg" | |
a0b9e27f | 7512 | |
10f2d63a | 7513 | if test "$enableval" = yes; then |
1e6feb95 | 7514 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7515 | else |
1e6feb95 | 7516 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7517 | fi |
a0b9e27f | 7518 | |
10f2d63a | 7519 | else |
a0b9e27f | 7520 | |
1e6feb95 | 7521 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7522 | if test "x$LINE" != x ; then |
7523 | eval "DEFAULT_$LINE" | |
7524 | else | |
7525 | no_cache=1 | |
7526 | fi | |
7527 | ||
1e6feb95 | 7528 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
a0b9e27f MB |
7529 | |
7530 | fi | |
10f2d63a VZ |
7531 | |
7532 | ||
1e6feb95 | 7533 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7534 | if test "$no_cache" != 1; then |
1e6feb95 | 7535 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7536 | fi |
7537 | ||
1e6feb95 | 7538 | if test "$wxUSE_MSGDLG" = yes; then |
a0b9e27f | 7539 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7540 | else |
a0b9e27f | 7541 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7542 | fi |
a0b9e27f | 7543 | |
10f2d63a | 7544 | |
a0b9e27f | 7545 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
6969f178 | 7546 | echo "configure:7547: checking for --enable-numberdlg" >&5 |
10f2d63a | 7547 | no_cache=0 |
1e6feb95 VZ |
7548 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7549 | if test "${enable_numberdlg+set}" = set; then | |
7550 | enableval="$enable_numberdlg" | |
a0b9e27f | 7551 | |
10f2d63a | 7552 | if test "$enableval" = yes; then |
1e6feb95 | 7553 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7554 | else |
1e6feb95 | 7555 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7556 | fi |
a0b9e27f | 7557 | |
10f2d63a | 7558 | else |
a0b9e27f | 7559 | |
1e6feb95 | 7560 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7561 | if test "x$LINE" != x ; then |
7562 | eval "DEFAULT_$LINE" | |
7563 | else | |
7564 | no_cache=1 | |
7565 | fi | |
7566 | ||
1e6feb95 | 7567 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
a0b9e27f MB |
7568 | |
7569 | fi | |
10f2d63a VZ |
7570 | |
7571 | ||
1e6feb95 | 7572 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7573 | if test "$no_cache" != 1; then |
1e6feb95 | 7574 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7575 | fi |
7576 | ||
1e6feb95 | 7577 | if test "$wxUSE_NUMBERDLG" = yes; then |
a0b9e27f | 7578 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7579 | else |
a0b9e27f | 7580 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7581 | fi |
a0b9e27f | 7582 | |
10f2d63a | 7583 | |
a0b9e27f | 7584 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
6969f178 | 7585 | echo "configure:7586: checking for --enable-splash" >&5 |
cbca9943 VZ |
7586 | no_cache=0 |
7587 | # Check whether --enable-splash or --disable-splash was given. | |
7588 | if test "${enable_splash+set}" = set; then | |
7589 | enableval="$enable_splash" | |
a0b9e27f | 7590 | |
cbca9943 VZ |
7591 | if test "$enableval" = yes; then |
7592 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7593 | else | |
7594 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7595 | fi | |
a0b9e27f | 7596 | |
cbca9943 | 7597 | else |
a0b9e27f | 7598 | |
cbca9943 VZ |
7599 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
7600 | if test "x$LINE" != x ; then | |
7601 | eval "DEFAULT_$LINE" | |
7602 | else | |
7603 | no_cache=1 | |
7604 | fi | |
7605 | ||
7606 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
a0b9e27f MB |
7607 | |
7608 | fi | |
cbca9943 VZ |
7609 | |
7610 | ||
7611 | eval "$ac_cv_use_splash" | |
7612 | if test "$no_cache" != 1; then | |
7613 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7614 | fi | |
7615 | ||
7616 | if test "$wxUSE_SPLASH" = yes; then | |
a0b9e27f | 7617 | echo "$ac_t""yes" 1>&6 |
cbca9943 | 7618 | else |
a0b9e27f | 7619 | echo "$ac_t""no" 1>&6 |
cbca9943 | 7620 | fi |
a0b9e27f | 7621 | |
cbca9943 | 7622 | |
a0b9e27f | 7623 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
6969f178 | 7624 | echo "configure:7625: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7625 | no_cache=0 |
7626 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7627 | if test "${enable_textdlg+set}" = set; then | |
7628 | enableval="$enable_textdlg" | |
a0b9e27f | 7629 | |
10f2d63a VZ |
7630 | if test "$enableval" = yes; then |
7631 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7632 | else | |
7633 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7634 | fi | |
a0b9e27f | 7635 | |
10f2d63a | 7636 | else |
a0b9e27f | 7637 | |
10f2d63a VZ |
7638 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7639 | if test "x$LINE" != x ; then | |
7640 | eval "DEFAULT_$LINE" | |
7641 | else | |
7642 | no_cache=1 | |
7643 | fi | |
7644 | ||
7645 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
a0b9e27f MB |
7646 | |
7647 | fi | |
10f2d63a VZ |
7648 | |
7649 | ||
7650 | eval "$ac_cv_use_textdlg" | |
7651 | if test "$no_cache" != 1; then | |
7652 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7653 | fi | |
7654 | ||
7655 | if test "$wxUSE_TEXTDLG" = yes; then | |
a0b9e27f | 7656 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7657 | else |
a0b9e27f | 7658 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7659 | fi |
a0b9e27f | 7660 | |
10f2d63a | 7661 | |
a0b9e27f | 7662 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
6969f178 | 7663 | echo "configure:7664: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7664 | no_cache=0 |
7665 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7666 | if test "${enable_tipdlg+set}" = set; then | |
7667 | enableval="$enable_tipdlg" | |
a0b9e27f | 7668 | |
10f2d63a VZ |
7669 | if test "$enableval" = yes; then |
7670 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7671 | else | |
7672 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7673 | fi | |
a0b9e27f | 7674 | |
10f2d63a | 7675 | else |
a0b9e27f | 7676 | |
10f2d63a VZ |
7677 | LINE=`grep "wxUSE_STARTUP_TIPS" ${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_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
a0b9e27f MB |
7685 | |
7686 | fi | |
10f2d63a VZ |
7687 | |
7688 | ||
7689 | eval "$ac_cv_use_tipdlg" | |
7690 | if test "$no_cache" != 1; then | |
7691 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7692 | fi | |
7693 | ||
7694 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
a0b9e27f | 7695 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7696 | else |
a0b9e27f | 7697 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7698 | fi |
a0b9e27f | 7699 | |
10f2d63a | 7700 | |
a0b9e27f | 7701 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
6969f178 | 7702 | echo "configure:7703: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7703 | no_cache=0 |
7704 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7705 | if test "${enable_progressdlg+set}" = set; then | |
7706 | enableval="$enable_progressdlg" | |
a0b9e27f | 7707 | |
10f2d63a VZ |
7708 | if test "$enableval" = yes; then |
7709 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7710 | else | |
7711 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7712 | fi | |
a0b9e27f | 7713 | |
10f2d63a | 7714 | else |
a0b9e27f | 7715 | |
10f2d63a VZ |
7716 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7717 | if test "x$LINE" != x ; then | |
7718 | eval "DEFAULT_$LINE" | |
7719 | else | |
7720 | no_cache=1 | |
7721 | fi | |
7722 | ||
7723 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
a0b9e27f MB |
7724 | |
7725 | fi | |
10f2d63a VZ |
7726 | |
7727 | ||
7728 | eval "$ac_cv_use_progressdlg" | |
7729 | if test "$no_cache" != 1; then | |
7730 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7731 | fi | |
7732 | ||
7733 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
a0b9e27f | 7734 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7735 | else |
a0b9e27f | 7736 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7737 | fi |
a0b9e27f | 7738 | |
10f2d63a | 7739 | |
a0b9e27f | 7740 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
6969f178 | 7741 | echo "configure:7742: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7742 | no_cache=0 |
7743 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7744 | if test "${enable_wizarddlg+set}" = set; then | |
7745 | enableval="$enable_wizarddlg" | |
a0b9e27f | 7746 | |
b1f5d087 VZ |
7747 | if test "$enableval" = yes; then |
7748 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7749 | else | |
7750 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7751 | fi | |
a0b9e27f | 7752 | |
b1f5d087 | 7753 | else |
a0b9e27f | 7754 | |
b1f5d087 VZ |
7755 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
7756 | if test "x$LINE" != x ; then | |
7757 | eval "DEFAULT_$LINE" | |
7758 | else | |
7759 | no_cache=1 | |
7760 | fi | |
7761 | ||
7762 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
a0b9e27f MB |
7763 | |
7764 | fi | |
b1f5d087 VZ |
7765 | |
7766 | ||
7767 | eval "$ac_cv_use_wizarddlg" | |
7768 | if test "$no_cache" != 1; then | |
7769 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7770 | fi | |
7771 | ||
7772 | if test "$wxUSE_WIZARDDLG" = yes; then | |
a0b9e27f | 7773 | echo "$ac_t""yes" 1>&6 |
b1f5d087 | 7774 | else |
a0b9e27f | 7775 | echo "$ac_t""no" 1>&6 |
b1f5d087 | 7776 | fi |
a0b9e27f | 7777 | |
8284b0c5 MB |
7778 | |
7779 | ||
52127426 | 7780 | |
a0b9e27f | 7781 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
6969f178 | 7782 | echo "configure:7783: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7783 | no_cache=0 |
7784 | # Check whether --enable-menus or --disable-menus was given. | |
7785 | if test "${enable_menus+set}" = set; then | |
7786 | enableval="$enable_menus" | |
a0b9e27f | 7787 | |
1e6feb95 VZ |
7788 | if test "$enableval" = yes; then |
7789 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7790 | else | |
7791 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7792 | fi | |
a0b9e27f | 7793 | |
1e6feb95 | 7794 | else |
a0b9e27f | 7795 | |
1e6feb95 VZ |
7796 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
7797 | if test "x$LINE" != x ; then | |
7798 | eval "DEFAULT_$LINE" | |
7799 | else | |
7800 | no_cache=1 | |
7801 | fi | |
7802 | ||
7803 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
a0b9e27f MB |
7804 | |
7805 | fi | |
1e6feb95 VZ |
7806 | |
7807 | ||
7808 | eval "$ac_cv_use_menus" | |
7809 | if test "$no_cache" != 1; then | |
7810 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7811 | fi | |
7812 | ||
7813 | if test "$wxUSE_MENUS" = yes; then | |
a0b9e27f | 7814 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7815 | else |
a0b9e27f | 7816 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7817 | fi |
a0b9e27f | 7818 | |
1e6feb95 | 7819 | |
a0b9e27f | 7820 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
6969f178 | 7821 | echo "configure:7822: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7822 | no_cache=0 |
7823 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7824 | if test "${enable_miniframe+set}" = set; then | |
7825 | enableval="$enable_miniframe" | |
a0b9e27f | 7826 | |
10f2d63a VZ |
7827 | if test "$enableval" = yes; then |
7828 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7829 | else | |
7830 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7831 | fi | |
a0b9e27f | 7832 | |
10f2d63a | 7833 | else |
a0b9e27f | 7834 | |
10f2d63a VZ |
7835 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7836 | if test "x$LINE" != x ; then | |
7837 | eval "DEFAULT_$LINE" | |
7838 | else | |
7839 | no_cache=1 | |
7840 | fi | |
7841 | ||
7842 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
a0b9e27f MB |
7843 | |
7844 | fi | |
10f2d63a VZ |
7845 | |
7846 | ||
7847 | eval "$ac_cv_use_miniframe" | |
7848 | if test "$no_cache" != 1; then | |
7849 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7850 | fi | |
7851 | ||
7852 | if test "$wxUSE_MINIFRAME" = yes; then | |
a0b9e27f | 7853 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7854 | else |
a0b9e27f | 7855 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7856 | fi |
a0b9e27f | 7857 | |
10f2d63a | 7858 | |
a0b9e27f | 7859 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
6969f178 | 7860 | echo "configure:7861: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7861 | no_cache=0 |
7862 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7863 | if test "${enable_tooltips+set}" = set; then | |
7864 | enableval="$enable_tooltips" | |
a0b9e27f | 7865 | |
10f2d63a VZ |
7866 | if test "$enableval" = yes; then |
7867 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7868 | else | |
7869 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7870 | fi | |
a0b9e27f | 7871 | |
10f2d63a | 7872 | else |
a0b9e27f | 7873 | |
10f2d63a VZ |
7874 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7875 | if test "x$LINE" != x ; then | |
7876 | eval "DEFAULT_$LINE" | |
7877 | else | |
7878 | no_cache=1 | |
7879 | fi | |
7880 | ||
7881 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
a0b9e27f MB |
7882 | |
7883 | fi | |
10f2d63a VZ |
7884 | |
7885 | ||
7886 | eval "$ac_cv_use_tooltips" | |
7887 | if test "$no_cache" != 1; then | |
7888 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7889 | fi | |
7890 | ||
7891 | if test "$wxUSE_TOOLTIPS" = yes; then | |
a0b9e27f | 7892 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7893 | else |
a0b9e27f | 7894 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7895 | fi |
a0b9e27f | 7896 | |
10f2d63a | 7897 | |
a0b9e27f | 7898 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
6969f178 | 7899 | echo "configure:7900: checking for --enable-splines" >&5 |
10f2d63a VZ |
7900 | no_cache=0 |
7901 | # Check whether --enable-splines or --disable-splines was given. | |
7902 | if test "${enable_splines+set}" = set; then | |
7903 | enableval="$enable_splines" | |
a0b9e27f | 7904 | |
10f2d63a VZ |
7905 | if test "$enableval" = yes; then |
7906 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7907 | else | |
7908 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7909 | fi | |
a0b9e27f | 7910 | |
10f2d63a | 7911 | else |
a0b9e27f | 7912 | |
10f2d63a VZ |
7913 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7914 | if test "x$LINE" != x ; then | |
7915 | eval "DEFAULT_$LINE" | |
7916 | else | |
7917 | no_cache=1 | |
7918 | fi | |
7919 | ||
7920 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
a0b9e27f MB |
7921 | |
7922 | fi | |
10f2d63a VZ |
7923 | |
7924 | ||
7925 | eval "$ac_cv_use_splines" | |
7926 | if test "$no_cache" != 1; then | |
7927 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7928 | fi | |
7929 | ||
7930 | if test "$wxUSE_SPLINES" = yes; then | |
a0b9e27f | 7931 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7932 | else |
a0b9e27f | 7933 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7934 | fi |
a0b9e27f | 7935 | |
10f2d63a | 7936 | |
a0b9e27f | 7937 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
6969f178 | 7938 | echo "configure:7939: checking for --enable-validators" >&5 |
10f2d63a VZ |
7939 | no_cache=0 |
7940 | # Check whether --enable-validators or --disable-validators was given. | |
7941 | if test "${enable_validators+set}" = set; then | |
7942 | enableval="$enable_validators" | |
a0b9e27f | 7943 | |
10f2d63a VZ |
7944 | if test "$enableval" = yes; then |
7945 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7946 | else | |
7947 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7948 | fi | |
a0b9e27f | 7949 | |
10f2d63a | 7950 | else |
a0b9e27f | 7951 | |
10f2d63a VZ |
7952 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7953 | if test "x$LINE" != x ; then | |
7954 | eval "DEFAULT_$LINE" | |
7955 | else | |
7956 | no_cache=1 | |
7957 | fi | |
7958 | ||
7959 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
a0b9e27f MB |
7960 | |
7961 | fi | |
10f2d63a VZ |
7962 | |
7963 | ||
7964 | eval "$ac_cv_use_validators" | |
7965 | if test "$no_cache" != 1; then | |
7966 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7967 | fi | |
7968 | ||
7969 | if test "$wxUSE_VALIDATORS" = yes; then | |
a0b9e27f | 7970 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7971 | else |
a0b9e27f | 7972 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7973 | fi |
a0b9e27f | 7974 | |
10f2d63a | 7975 | |
a0b9e27f | 7976 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
6969f178 | 7977 | echo "configure:7978: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7978 | no_cache=0 |
7979 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7980 | if test "${enable_busyinfo+set}" = set; then | |
7981 | enableval="$enable_busyinfo" | |
a0b9e27f | 7982 | |
10f2d63a VZ |
7983 | if test "$enableval" = yes; then |
7984 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7985 | else | |
7986 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7987 | fi | |
a0b9e27f | 7988 | |
10f2d63a | 7989 | else |
a0b9e27f | 7990 | |
10f2d63a VZ |
7991 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7992 | if test "x$LINE" != x ; then | |
7993 | eval "DEFAULT_$LINE" | |
7994 | else | |
7995 | no_cache=1 | |
7996 | fi | |
7997 | ||
7998 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
a0b9e27f MB |
7999 | |
8000 | fi | |
10f2d63a VZ |
8001 | |
8002 | ||
8003 | eval "$ac_cv_use_busyinfo" | |
8004 | if test "$no_cache" != 1; then | |
8005 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8006 | fi | |
8007 | ||
8008 | if test "$wxUSE_BUSYINFO" = yes; then | |
a0b9e27f | 8009 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8010 | else |
a0b9e27f | 8011 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8012 | fi |
a0b9e27f | 8013 | |
10f2d63a | 8014 | |
a0b9e27f | 8015 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
6969f178 | 8016 | echo "configure:8017: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
8017 | no_cache=0 |
8018 | # Check whether --enable-joystick or --disable-joystick was given. | |
8019 | if test "${enable_joystick+set}" = set; then | |
8020 | enableval="$enable_joystick" | |
a0b9e27f | 8021 | |
f6bcfd97 BP |
8022 | if test "$enableval" = yes; then |
8023 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8024 | else | |
8025 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8026 | fi | |
a0b9e27f | 8027 | |
f6bcfd97 | 8028 | else |
a0b9e27f | 8029 | |
f6bcfd97 BP |
8030 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8031 | if test "x$LINE" != x ; then | |
8032 | eval "DEFAULT_$LINE" | |
8033 | else | |
8034 | no_cache=1 | |
8035 | fi | |
8036 | ||
8037 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
a0b9e27f MB |
8038 | |
8039 | fi | |
f6bcfd97 BP |
8040 | |
8041 | ||
8042 | eval "$ac_cv_use_joystick" | |
8043 | if test "$no_cache" != 1; then | |
8044 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8045 | fi | |
8046 | ||
8047 | if test "$wxUSE_JOYSTICK" = yes; then | |
a0b9e27f | 8048 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8049 | else |
a0b9e27f | 8050 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8051 | fi |
a0b9e27f | 8052 | |
698dcdb6 | 8053 | |
a0b9e27f | 8054 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
6969f178 | 8055 | echo "configure:8056: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
8056 | no_cache=0 |
8057 | # Check whether --enable-metafile or --disable-metafile was given. | |
8058 | if test "${enable_metafile+set}" = set; then | |
8059 | enableval="$enable_metafile" | |
a0b9e27f | 8060 | |
1e6feb95 VZ |
8061 | if test "$enableval" = yes; then |
8062 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8063 | else | |
8064 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8065 | fi | |
a0b9e27f | 8066 | |
1e6feb95 | 8067 | else |
a0b9e27f | 8068 | |
1e6feb95 VZ |
8069 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
8070 | if test "x$LINE" != x ; then | |
8071 | eval "DEFAULT_$LINE" | |
8072 | else | |
8073 | no_cache=1 | |
8074 | fi | |
8075 | ||
8076 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
8077 | |
8078 | fi | |
1e6feb95 VZ |
8079 | |
8080 | ||
8081 | eval "$ac_cv_use_metafile" | |
8082 | if test "$no_cache" != 1; then | |
8083 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8084 | fi | |
8085 | ||
8086 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 8087 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8088 | else |
a0b9e27f | 8089 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8090 | fi |
a0b9e27f | 8091 | |
1e6feb95 | 8092 | |
a0b9e27f | 8093 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
6969f178 | 8094 | echo "configure:8095: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
8095 | no_cache=0 |
8096 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8097 | if test "${enable_dragimage+set}" = set; then | |
8098 | enableval="$enable_dragimage" | |
a0b9e27f | 8099 | |
24fd6d87 VZ |
8100 | if test "$enableval" = yes; then |
8101 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8102 | else | |
8103 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8104 | fi | |
a0b9e27f | 8105 | |
24fd6d87 | 8106 | else |
a0b9e27f | 8107 | |
24fd6d87 VZ |
8108 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
8109 | if test "x$LINE" != x ; then | |
8110 | eval "DEFAULT_$LINE" | |
8111 | else | |
8112 | no_cache=1 | |
8113 | fi | |
8114 | ||
8115 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
a0b9e27f MB |
8116 | |
8117 | fi | |
24fd6d87 VZ |
8118 | |
8119 | ||
8120 | eval "$ac_cv_use_dragimage" | |
8121 | if test "$no_cache" != 1; then | |
8122 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8123 | fi | |
8124 | ||
8125 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
a0b9e27f | 8126 | echo "$ac_t""yes" 1>&6 |
24fd6d87 | 8127 | else |
a0b9e27f | 8128 | echo "$ac_t""no" 1>&6 |
24fd6d87 | 8129 | fi |
a0b9e27f | 8130 | |
52127426 | 8131 | |
8284b0c5 MB |
8132 | |
8133 | ||
a0b9e27f | 8134 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
6969f178 | 8135 | echo "configure:8136: checking for --enable-palette" >&5 |
edae8572 VZ |
8136 | no_cache=0 |
8137 | # Check whether --enable-palette or --disable-palette was given. | |
8138 | if test "${enable_palette+set}" = set; then | |
8139 | enableval="$enable_palette" | |
a0b9e27f | 8140 | |
edae8572 VZ |
8141 | if test "$enableval" = yes; then |
8142 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8143 | else | |
8144 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8145 | fi | |
a0b9e27f | 8146 | |
edae8572 | 8147 | else |
a0b9e27f | 8148 | |
edae8572 VZ |
8149 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
8150 | if test "x$LINE" != x ; then | |
8151 | eval "DEFAULT_$LINE" | |
8152 | else | |
8153 | no_cache=1 | |
8154 | fi | |
8155 | ||
8156 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
a0b9e27f MB |
8157 | |
8158 | fi | |
edae8572 VZ |
8159 | |
8160 | ||
8161 | eval "$ac_cv_use_palette" | |
8162 | if test "$no_cache" != 1; then | |
8163 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8164 | fi | |
8165 | ||
8166 | if test "$wxUSE_PALETTE" = yes; then | |
a0b9e27f | 8167 | echo "$ac_t""yes" 1>&6 |
edae8572 | 8168 | else |
a0b9e27f | 8169 | echo "$ac_t""no" 1>&6 |
edae8572 | 8170 | fi |
a0b9e27f | 8171 | |
edae8572 | 8172 | |
a0b9e27f | 8173 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
6969f178 | 8174 | echo "configure:8175: checking for --enable-image" >&5 |
0046ff7c VS |
8175 | no_cache=0 |
8176 | # Check whether --enable-image or --disable-image was given. | |
8177 | if test "${enable_image+set}" = set; then | |
8178 | enableval="$enable_image" | |
a0b9e27f | 8179 | |
0046ff7c VS |
8180 | if test "$enableval" = yes; then |
8181 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8182 | else | |
8183 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8184 | fi | |
a0b9e27f | 8185 | |
0046ff7c | 8186 | else |
a0b9e27f | 8187 | |
0046ff7c VS |
8188 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8189 | if test "x$LINE" != x ; then | |
8190 | eval "DEFAULT_$LINE" | |
8191 | else | |
8192 | no_cache=1 | |
8193 | fi | |
8194 | ||
8195 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
a0b9e27f MB |
8196 | |
8197 | fi | |
0046ff7c VS |
8198 | |
8199 | ||
8200 | eval "$ac_cv_use_image" | |
8201 | if test "$no_cache" != 1; then | |
8202 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8203 | fi | |
8204 | ||
8205 | if test "$wxUSE_IMAGE" = yes; then | |
a0b9e27f | 8206 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8207 | else |
a0b9e27f | 8208 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8209 | fi |
a0b9e27f | 8210 | |
0046ff7c | 8211 | |
a0b9e27f | 8212 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
6969f178 | 8213 | echo "configure:8214: checking for --enable-gif" >&5 |
10f2d63a VZ |
8214 | no_cache=0 |
8215 | # Check whether --enable-gif or --disable-gif was given. | |
8216 | if test "${enable_gif+set}" = set; then | |
8217 | enableval="$enable_gif" | |
a0b9e27f | 8218 | |
10f2d63a VZ |
8219 | if test "$enableval" = yes; then |
8220 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8221 | else | |
8222 | ac_cv_use_gif='wxUSE_GIF=no' | |
8223 | fi | |
a0b9e27f | 8224 | |
10f2d63a | 8225 | else |
a0b9e27f | 8226 | |
10f2d63a VZ |
8227 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8228 | if test "x$LINE" != x ; then | |
8229 | eval "DEFAULT_$LINE" | |
8230 | else | |
8231 | no_cache=1 | |
8232 | fi | |
8233 | ||
8234 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
a0b9e27f MB |
8235 | |
8236 | fi | |
10f2d63a VZ |
8237 | |
8238 | ||
8239 | eval "$ac_cv_use_gif" | |
8240 | if test "$no_cache" != 1; then | |
8241 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8242 | fi | |
8243 | ||
8244 | if test "$wxUSE_GIF" = yes; then | |
a0b9e27f | 8245 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8246 | else |
a0b9e27f | 8247 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8248 | fi |
a0b9e27f | 8249 | |
10f2d63a | 8250 | |
a0b9e27f | 8251 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
6969f178 | 8252 | echo "configure:8253: checking for --enable-pcx" >&5 |
10f2d63a VZ |
8253 | no_cache=0 |
8254 | # Check whether --enable-pcx or --disable-pcx was given. | |
8255 | if test "${enable_pcx+set}" = set; then | |
8256 | enableval="$enable_pcx" | |
a0b9e27f | 8257 | |
10f2d63a VZ |
8258 | if test "$enableval" = yes; then |
8259 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8260 | else | |
8261 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8262 | fi | |
a0b9e27f | 8263 | |
10f2d63a | 8264 | else |
a0b9e27f | 8265 | |
10f2d63a VZ |
8266 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8267 | if test "x$LINE" != x ; then | |
8268 | eval "DEFAULT_$LINE" | |
8269 | else | |
8270 | no_cache=1 | |
8271 | fi | |
8272 | ||
8273 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
a0b9e27f MB |
8274 | |
8275 | fi | |
10f2d63a VZ |
8276 | |
8277 | ||
8278 | eval "$ac_cv_use_pcx" | |
8279 | if test "$no_cache" != 1; then | |
8280 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8281 | fi | |
8282 | ||
8283 | if test "$wxUSE_PCX" = yes; then | |
a0b9e27f | 8284 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8285 | else |
a0b9e27f | 8286 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8287 | fi |
a0b9e27f | 8288 | |
10f2d63a | 8289 | |
a0b9e27f | 8290 | echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6 |
6969f178 | 8291 | echo "configure:8292: checking for --enable-iff" >&5 |
4b6b4dfc RR |
8292 | no_cache=0 |
8293 | # Check whether --enable-iff or --disable-iff was given. | |
8294 | if test "${enable_iff+set}" = set; then | |
8295 | enableval="$enable_iff" | |
a0b9e27f | 8296 | |
4b6b4dfc RR |
8297 | if test "$enableval" = yes; then |
8298 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8299 | else | |
8300 | ac_cv_use_iff='wxUSE_IFF=no' | |
8301 | fi | |
a0b9e27f | 8302 | |
4b6b4dfc | 8303 | else |
a0b9e27f | 8304 | |
4b6b4dfc RR |
8305 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
8306 | if test "x$LINE" != x ; then | |
8307 | eval "DEFAULT_$LINE" | |
8308 | else | |
8309 | no_cache=1 | |
8310 | fi | |
8311 | ||
8312 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
a0b9e27f MB |
8313 | |
8314 | fi | |
4b6b4dfc RR |
8315 | |
8316 | ||
8317 | eval "$ac_cv_use_iff" | |
8318 | if test "$no_cache" != 1; then | |
8319 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8320 | fi | |
8321 | ||
8322 | if test "$wxUSE_IFF" = yes; then | |
a0b9e27f | 8323 | echo "$ac_t""yes" 1>&6 |
4b6b4dfc | 8324 | else |
a0b9e27f | 8325 | echo "$ac_t""no" 1>&6 |
4b6b4dfc | 8326 | fi |
a0b9e27f | 8327 | |
4b6b4dfc | 8328 | |
a0b9e27f | 8329 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
6969f178 | 8330 | echo "configure:8331: checking for --enable-pnm" >&5 |
10f2d63a VZ |
8331 | no_cache=0 |
8332 | # Check whether --enable-pnm or --disable-pnm was given. | |
8333 | if test "${enable_pnm+set}" = set; then | |
8334 | enableval="$enable_pnm" | |
a0b9e27f | 8335 | |
10f2d63a VZ |
8336 | if test "$enableval" = yes; then |
8337 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8338 | else | |
8339 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8340 | fi | |
a0b9e27f | 8341 | |
10f2d63a | 8342 | else |
a0b9e27f | 8343 | |
10f2d63a VZ |
8344 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8345 | if test "x$LINE" != x ; then | |
8346 | eval "DEFAULT_$LINE" | |
8347 | else | |
8348 | no_cache=1 | |
8349 | fi | |
8350 | ||
8351 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
a0b9e27f MB |
8352 | |
8353 | fi | |
10f2d63a VZ |
8354 | |
8355 | ||
8356 | eval "$ac_cv_use_pnm" | |
8357 | if test "$no_cache" != 1; then | |
8358 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8359 | fi | |
8360 | ||
8361 | if test "$wxUSE_PNM" = yes; then | |
a0b9e27f | 8362 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8363 | else |
a0b9e27f | 8364 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8365 | fi |
a0b9e27f | 8366 | |
10f2d63a | 8367 | |
a0b9e27f | 8368 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 |
6969f178 | 8369 | echo "configure:8370: checking for --enable-xpm" >&5 |
0046ff7c | 8370 | no_cache=0 |
69d27ff7 MB |
8371 | # Check whether --enable-xpm or --disable-xpm was given. |
8372 | if test "${enable_xpm+set}" = set; then | |
8373 | enableval="$enable_xpm" | |
a0b9e27f | 8374 | |
0046ff7c | 8375 | if test "$enableval" = yes; then |
69d27ff7 | 8376 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8377 | else |
69d27ff7 | 8378 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8379 | fi |
a0b9e27f | 8380 | |
0046ff7c | 8381 | else |
a0b9e27f | 8382 | |
0046ff7c VS |
8383 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8384 | if test "x$LINE" != x ; then | |
8385 | eval "DEFAULT_$LINE" | |
8386 | else | |
8387 | no_cache=1 | |
8388 | fi | |
8389 | ||
69d27ff7 | 8390 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
a0b9e27f MB |
8391 | |
8392 | fi | |
0046ff7c VS |
8393 | |
8394 | ||
69d27ff7 | 8395 | eval "$ac_cv_use_xpm" |
0046ff7c | 8396 | if test "$no_cache" != 1; then |
69d27ff7 | 8397 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8398 | fi |
8399 | ||
8400 | if test "$wxUSE_XPM" = yes; then | |
a0b9e27f | 8401 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8402 | else |
a0b9e27f | 8403 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8404 | fi |
a0b9e27f | 8405 | |
0046ff7c | 8406 | |
a0b9e27f | 8407 | echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6 |
6969f178 | 8408 | echo "configure:8409: checking for --enable-ico_cur" >&5 |
658974ae | 8409 | no_cache=0 |
c7206e64 VS |
8410 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8411 | if test "${enable_ico_cur+set}" = set; then | |
8412 | enableval="$enable_ico_cur" | |
a0b9e27f | 8413 | |
658974ae | 8414 | if test "$enableval" = yes; then |
c7206e64 | 8415 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8416 | else |
c7206e64 | 8417 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 8418 | fi |
a0b9e27f | 8419 | |
658974ae | 8420 | else |
a0b9e27f | 8421 | |
658974ae VS |
8422 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
8423 | if test "x$LINE" != x ; then | |
8424 | eval "DEFAULT_$LINE" | |
8425 | else | |
8426 | no_cache=1 | |
8427 | fi | |
8428 | ||
c7206e64 | 8429 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
a0b9e27f MB |
8430 | |
8431 | fi | |
658974ae VS |
8432 | |
8433 | ||
c7206e64 | 8434 | eval "$ac_cv_use_ico_cur" |
658974ae | 8435 | if test "$no_cache" != 1; then |
c7206e64 | 8436 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8437 | fi |
8438 | ||
8439 | if test "$wxUSE_ICO_CUR" = yes; then | |
a0b9e27f | 8440 | echo "$ac_t""yes" 1>&6 |
658974ae | 8441 | else |
a0b9e27f | 8442 | echo "$ac_t""no" 1>&6 |
658974ae | 8443 | fi |
a0b9e27f | 8444 | |
658974ae | 8445 | |
b12915c1 VZ |
8446 | fi |
8447 | ||
d558c907 VS |
8448 | case "${host}" in |
8449 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 MB |
8450 | PATH_IFS=';' |
8451 | LEX_STEM="lexyy" | |
d558c907 VS |
8452 | ;; |
8453 | *) | |
8454 | PATH_IFS=':' | |
8455 | LEX_STEM="lex.yy" | |
8456 | ;; | |
8457 | esac | |
8458 | ||
8284b0c5 MB |
8459 | |
8460 | ||
10f2d63a VZ |
8461 | echo "saving argument cache $wx_arg_cache_file" |
8462 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
a0b9e27f | 8463 | |
52127426 | 8464 | |
8284b0c5 | 8465 | |
a0b9e27f MB |
8466 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 |
8467 | echo "configure:8468: checking for toolkit" >&5 | |
10f2d63a VZ |
8468 | |
8469 | if test "$wxUSE_GUI" = "yes"; then | |
8470 | ||
3a922bb4 | 8471 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 8472 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
3a922bb4 | 8473 | fi |
b12915c1 | 8474 | |
3a922bb4 RL |
8475 | if test "$TOOLKIT_GIVEN" = 1; then |
8476 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8477 | var=wxUSE_$toolkit | |
8478 | eval "value=\$${var}" | |
8479 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8480 | done | |
10f2d63a | 8481 | else |
3a922bb4 RL |
8482 | for toolkit in `echo $ALL_TOOLKITS`; do |
8483 | if test "$has_toolkit_in_cache" != 1; then | |
8484 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8485 | else | |
8486 | var=DEFAULT_wxUSE_$toolkit | |
8487 | fi | |
8488 | eval "wxUSE_$toolkit=\$${var}" | |
8489 | done | |
10f2d63a | 8490 | fi |
10f2d63a | 8491 | |
3a922bb4 | 8492 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
f79bd02d | 8493 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8494 | |
d558c907 | 8495 | case "${host}" in |
6fa882bd | 8496 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8497 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8498 | esac |
10f2d63a | 8499 | |
3a922bb4 RL |
8500 | case "$NUM_TOOLKITS" in |
8501 | 1) | |
8502 | ;; | |
8503 | 0) | |
a0b9e27f | 8504 | { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; } |
3a922bb4 RL |
8505 | ;; |
8506 | *) | |
a0b9e27f | 8507 | { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; } |
3a922bb4 | 8508 | esac |
10f2d63a | 8509 | |
3a922bb4 RL |
8510 | for toolkit in `echo $ALL_TOOLKITS`; do |
8511 | var=wxUSE_$toolkit | |
8512 | eval "value=\$${var}" | |
8513 | if test "x$value" != x; then | |
8514 | cache_var=CACHE_$toolkit | |
8515 | eval "cache=\$${cache_var}" | |
8516 | if test "$cache" = 1; then | |
8517 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8518 | fi | |
8519 | if test "$value" = 1; then | |
8520 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
a0b9e27f | 8521 | echo "$ac_t""$toolkit_echo" 1>&6 |
3a922bb4 RL |
8522 | fi |
8523 | fi | |
8524 | done | |
10f2d63a | 8525 | else |
a0b9e27f | 8526 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8527 | fi |
8528 | ||
6969f178 MB |
8529 | case "${host}" in |
8530 | *-pc-os2_emx | *-pc-os2-emx ) | |
8531 | LIBS="$LIBS -lstdcpp" | |
8532 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
8533 | echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6 | |
8534 | echo "configure:8535: checking for drand48 in -lcExt" >&5 | |
8535 | ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'` | |
8536 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8537 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8538 | else | |
8539 | ac_save_LIBS="$LIBS" | |
8540 | LIBS="-lcExt $LIBS" | |
8541 | cat > conftest.$ac_ext <<EOF | |
8542 | #line 8543 "configure" | |
8543 | #include "confdefs.h" | |
8544 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8545 | /* We use char because int might match the return type of a gcc2 | |
8546 | builtin and then its argument prototype would still apply. */ | |
8547 | char drand48(); | |
8548 | ||
8549 | int main() { | |
8550 | drand48() | |
8551 | ; return 0; } | |
8552 | EOF | |
8553 | if { (eval echo configure:8554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8554 | rm -rf conftest* | |
8555 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8556 | else | |
8557 | echo "configure: failed program was:" >&5 | |
8558 | cat conftest.$ac_ext >&5 | |
8559 | rm -rf conftest* | |
8560 | eval "ac_cv_lib_$ac_lib_var=no" | |
8561 | fi | |
8562 | rm -f conftest* | |
8563 | LIBS="$ac_save_LIBS" | |
8564 | ||
8565 | fi | |
8566 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8567 | echo "$ac_t""yes" 1>&6 | |
8568 | LIBS="$LIBS -lcExt" | |
8569 | else | |
8570 | echo "$ac_t""no" 1>&6 | |
8571 | fi | |
8572 | ||
8573 | else | |
8574 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
8575 | fi | |
8576 | ;; | |
8577 | esac | |
8284b0c5 | 8578 | |
43d99b6d VS |
8579 | wants_win32=0 |
8580 | doesnt_want_win32=0 | |
17234b26 MB |
8581 | case "${host}" in |
8582 | *-*-cygwin*) | |
8583 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
8584 | wants_win32=1 |
8585 | else | |
8586 | doesnt_want_win32=1 | |
17234b26 MB |
8587 | fi |
8588 | ;; | |
8589 | *-*-mingw*) | |
43d99b6d | 8590 | wants_win32=1 |
17234b26 MB |
8591 | ;; |
8592 | esac | |
8593 | ||
43d99b6d | 8594 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
8595 | USE_UNIX=0 |
8596 | USE_WIN32=1 | |
a0b9e27f | 8597 | cat >> confdefs.h <<\EOF |
17234b26 | 8598 | #define __WIN32__ 1 |
a0b9e27f | 8599 | EOF |
17234b26 | 8600 | |
a0b9e27f | 8601 | cat >> confdefs.h <<\EOF |
17234b26 | 8602 | #define __WIN95__ 1 |
a0b9e27f | 8603 | EOF |
17234b26 | 8604 | |
a0b9e27f | 8605 | cat >> confdefs.h <<\EOF |
17234b26 | 8606 | #define __WINDOWS__ 1 |
a0b9e27f | 8607 | EOF |
17234b26 | 8608 | |
a0b9e27f | 8609 | cat >> confdefs.h <<\EOF |
17234b26 | 8610 | #define __GNUWIN32__ 1 |
a0b9e27f | 8611 | EOF |
17234b26 | 8612 | |
a0b9e27f | 8613 | cat >> confdefs.h <<\EOF |
17234b26 | 8614 | #define STRICT 1 |
a0b9e27f | 8615 | EOF |
17234b26 | 8616 | |
a0b9e27f | 8617 | cat >> confdefs.h <<\EOF |
17234b26 | 8618 | #define WINVER 0x0400 |
a0b9e27f | 8619 | EOF |
17234b26 | 8620 | |
43d99b6d VS |
8621 | fi |
8622 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
8623 | USE_UNIX=1 |
8624 | USE_WIN32=0 | |
8625 | fi | |
8626 | ||
8627 | if test "$USE_UNIX" = 1 ; then | |
8628 | wxUSE_UNIX=yes | |
a0b9e27f | 8629 | cat >> confdefs.h <<\EOF |
17234b26 | 8630 | #define __UNIX__ 1 |
a0b9e27f | 8631 | EOF |
17234b26 MB |
8632 | |
8633 | fi | |
8634 | ||
8284b0c5 | 8635 | |
a0b9e27f | 8636 | cat > confcache <<\EOF |
10f2d63a VZ |
8637 | # This file is a shell script that caches the results of configure |
8638 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
8639 | # scripts and configure runs. It is not useful on other systems. |
8640 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8641 | # |
a0b9e27f MB |
8642 | # By default, configure uses ./config.cache as the cache file, |
8643 | # creating it if it does not exist already. You can give configure | |
8644 | # the --cache-file=FILE option to use a different cache file; that is | |
8645 | # what configure does when it calls configure scripts in | |
8646 | # subdirectories, so they share the cache. | |
8647 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8648 | # config.status only pays attention to the cache file if you give it the | |
8649 | # --recheck option to rerun configure. | |
10f2d63a | 8650 | # |
a0b9e27f | 8651 | EOF |
10f2d63a VZ |
8652 | # The following way of writing the cache mishandles newlines in values, |
8653 | # but we know of no workaround that is simple, portable, and efficient. | |
8654 | # So, don't put newlines in cache variables' values. | |
8655 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8656 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
8657 | (set) 2>&1 | |
8658 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8659 | *ac_space=\ *) | |
8660 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8661 | # turns \\\\ into \\, and sed turns \\ into \). | |
8662 | sed -n \ | |
8663 | -e "s/'/'\\\\''/g" \ | |
8664 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8665 | ;; | |
8666 | *) | |
8667 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8668 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8669 | ;; | |
8670 | esac >> confcache | |
8671 | if cmp -s $cache_file confcache; then | |
8672 | : | |
8673 | else | |
10f2d63a | 8674 | if test -w $cache_file; then |
a0b9e27f MB |
8675 | echo "updating cache $cache_file" |
8676 | cat confcache > $cache_file | |
10f2d63a VZ |
8677 | else |
8678 | echo "not updating unwritable cache $cache_file" | |
8679 | fi | |
8680 | fi | |
8681 | rm -f confcache | |
8682 | ||
a0b9e27f | 8683 | |
e59890c3 | 8684 | if test "$build" != "$host" ; then |
9d353d4a | 8685 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8686 | CC=$host_alias-gcc |
8687 | CXX=$host_alias-c++ | |
8688 | AR=$host_alias-ar | |
8689 | RANLIB=$host_alias-ranlib | |
8690 | DLLTOOL=$host_alias-dlltool | |
8691 | RESCOMP=$host_alias-windres | |
8692 | LD=$host_alias-ld | |
8693 | NM=$host_alias-nm | |
8694 | STRIP=$host_alias-strip | |
8695 | else | |
a0b9e27f | 8696 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } |
3a922bb4 | 8697 | fi |
10f2d63a VZ |
8698 | fi |
8699 | ||
ec603395 | 8700 | CFLAGS=${CFLAGS:=} |
a0b9e27f | 8701 | # Extract the first word of "gcc", so it can be a program name with args. |
8284b0c5 | 8702 | set dummy gcc; ac_word=$2 |
a0b9e27f | 8703 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
6969f178 | 8704 | echo "configure:8705: checking for $ac_word" >&5 |
a0b9e27f MB |
8705 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8706 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8707 | else |
8708 | if test -n "$CC"; then | |
8709 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8710 | else |
a0b9e27f MB |
8711 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8712 | ac_dummy="$PATH" | |
8713 | for ac_dir in $ac_dummy; do | |
8714 | test -z "$ac_dir" && ac_dir=. | |
8715 | if test -f $ac_dir/$ac_word; then | |
8716 | ac_cv_prog_CC="gcc" | |
8717 | break | |
8718 | fi | |
8719 | done | |
8720 | IFS="$ac_save_ifs" | |
10f2d63a | 8721 | fi |
6232543b | 8722 | fi |
a0b9e27f | 8723 | CC="$ac_cv_prog_CC" |
6232543b | 8724 | if test -n "$CC"; then |
a0b9e27f | 8725 | echo "$ac_t""$CC" 1>&6 |
247f5006 | 8726 | else |
a0b9e27f | 8727 | echo "$ac_t""no" 1>&6 |
247f5006 VZ |
8728 | fi |
8729 | ||
5c6fa7d2 RR |
8730 | if test -z "$CC"; then |
8731 | # Extract the first word of "cc", so it can be a program name with args. | |
8732 | set dummy cc; ac_word=$2 | |
a0b9e27f | 8733 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
6969f178 | 8734 | echo "configure:8735: checking for $ac_word" >&5 |
a0b9e27f MB |
8735 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8736 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 RR |
8737 | else |
8738 | if test -n "$CC"; then | |
8739 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8740 | else | |
a0b9e27f | 8741 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5c6fa7d2 | 8742 | ac_prog_rejected=no |
a0b9e27f MB |
8743 | ac_dummy="$PATH" |
8744 | for ac_dir in $ac_dummy; do | |
8745 | test -z "$ac_dir" && ac_dir=. | |
8746 | if test -f $ac_dir/$ac_word; then | |
8747 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8748 | ac_prog_rejected=yes | |
8749 | continue | |
8750 | fi | |
8751 | ac_cv_prog_CC="cc" | |
8752 | break | |
8753 | fi | |
8754 | done | |
8755 | IFS="$ac_save_ifs" | |
328a083c RR |
8756 | if test $ac_prog_rejected = yes; then |
8757 | # We found a bogon in the path, so make sure we never use it. | |
8758 | set dummy $ac_cv_prog_CC | |
8759 | shift | |
a0b9e27f | 8760 | if test $# -gt 0; then |
328a083c | 8761 | # We chose a different compiler from the bogus one. |
1e487827 VS |
8762 | # However, it has the same basename, so the bogon will be chosen |
8763 | # first if we set CC to just the basename; use the full file name. | |
8764 | shift | |
a0b9e27f | 8765 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8766 | shift |
8767 | ac_cv_prog_CC="$@" | |
703e0a69 | 8768 | fi |
1e487827 VS |
8769 | fi |
8770 | fi | |
8771 | fi | |
a0b9e27f | 8772 | CC="$ac_cv_prog_CC" |
1e487827 | 8773 | if test -n "$CC"; then |
a0b9e27f | 8774 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8775 | else |
a0b9e27f | 8776 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8777 | fi |
1e487827 | 8778 | |
a0b9e27f MB |
8779 | if test -z "$CC"; then |
8780 | case "`uname -s`" in | |
8781 | *win32* | *WIN32*) | |
8782 | # Extract the first word of "cl", so it can be a program name with args. | |
8783 | set dummy cl; ac_word=$2 | |
8784 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6969f178 | 8785 | echo "configure:8786: checking for $ac_word" >&5 |
a0b9e27f MB |
8786 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8787 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf VS |
8788 | else |
8789 | if test -n "$CC"; then | |
8790 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8791 | else | |
a0b9e27f MB |
8792 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8793 | ac_dummy="$PATH" | |
8794 | for ac_dir in $ac_dummy; do | |
8795 | test -z "$ac_dir" && ac_dir=. | |
8796 | if test -f $ac_dir/$ac_word; then | |
8797 | ac_cv_prog_CC="cl" | |
8798 | break | |
8799 | fi | |
8800 | done | |
8801 | IFS="$ac_save_ifs" | |
f09359cf VS |
8802 | fi |
8803 | fi | |
a0b9e27f | 8804 | CC="$ac_cv_prog_CC" |
f09359cf | 8805 | if test -n "$CC"; then |
a0b9e27f | 8806 | echo "$ac_t""$CC" 1>&6 |
f09359cf | 8807 | else |
a0b9e27f | 8808 | echo "$ac_t""no" 1>&6 |
247f5006 | 8809 | fi |
a0b9e27f MB |
8810 | ;; |
8811 | esac | |
8284b0c5 | 8812 | fi |
a0b9e27f | 8813 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
5c6fa7d2 | 8814 | fi |
1e487827 | 8815 | |
a0b9e27f | 8816 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
6969f178 | 8817 | echo "configure:8818: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
f09359cf | 8818 | |
a0b9e27f MB |
8819 | ac_ext=c |
8820 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8821 | ac_cpp='$CPP $CPPFLAGS' | |
8822 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8823 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8824 | cross_compiling=$ac_cv_prog_cc_cross | |
f09359cf | 8825 | |
a0b9e27f | 8826 | cat > conftest.$ac_ext << EOF |
247f5006 | 8827 | |
6969f178 | 8828 | #line 8829 "configure" |
a0b9e27f | 8829 | #include "confdefs.h" |
247f5006 | 8830 | |
a0b9e27f MB |
8831 | main(){return(0);} |
8832 | EOF | |
6969f178 | 8833 | if { (eval echo configure:8834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
8834 | ac_cv_prog_cc_works=yes |
8835 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8836 | if (./conftest; exit) 2>/dev/null; then | |
8837 | ac_cv_prog_cc_cross=no | |
698dcdb6 | 8838 | else |
a0b9e27f | 8839 | ac_cv_prog_cc_cross=yes |
698dcdb6 | 8840 | fi |
7b4a847f | 8841 | else |
a0b9e27f MB |
8842 | echo "configure: failed program was:" >&5 |
8843 | cat conftest.$ac_ext >&5 | |
8844 | ac_cv_prog_cc_works=no | |
52127426 | 8845 | fi |
a0b9e27f MB |
8846 | rm -fr conftest* |
8847 | ac_ext=c | |
8848 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8849 | ac_cpp='$CPP $CPPFLAGS' | |
8850 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8851 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8852 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 8853 | |
a0b9e27f MB |
8854 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
8855 | if test $ac_cv_prog_cc_works = no; then | |
8856 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8857 | fi | |
8858 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
6969f178 | 8859 | echo "configure:8860: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
8860 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8861 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 8862 | |
a0b9e27f | 8863 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
6969f178 | 8864 | echo "configure:8865: checking whether we are using GNU C" >&5 |
a0b9e27f MB |
8865 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8866 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 8867 | else |
a0b9e27f MB |
8868 | cat > conftest.c <<EOF |
8869 | #ifdef __GNUC__ | |
8870 | yes; | |
8284b0c5 | 8871 | #endif |
a0b9e27f | 8872 | EOF |
6969f178 | 8873 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f | 8874 | ac_cv_prog_gcc=yes |
5c6fa7d2 | 8875 | else |
a0b9e27f | 8876 | ac_cv_prog_gcc=no |
8284b0c5 MB |
8877 | fi |
8878 | fi | |
1e487827 | 8879 | |
a0b9e27f | 8880 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
f09359cf | 8881 | |
a0b9e27f MB |
8882 | if test $ac_cv_prog_gcc = yes; then |
8883 | GCC=yes | |
8884 | else | |
8885 | GCC= | |
8886 | fi | |
247f5006 | 8887 | |
a0b9e27f MB |
8888 | ac_test_CFLAGS="${CFLAGS+set}" |
8889 | ac_save_CFLAGS="$CFLAGS" | |
8890 | CFLAGS= | |
8891 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
6969f178 | 8892 | echo "configure:8893: checking whether ${CC-cc} accepts -g" >&5 |
a0b9e27f MB |
8893 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8894 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8895 | else | |
8896 | echo 'void f(){}' > conftest.c | |
8897 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8898 | ac_cv_prog_cc_g=yes |
8899 | else | |
a0b9e27f | 8900 | ac_cv_prog_cc_g=no |
10f2d63a | 8901 | fi |
a0b9e27f MB |
8902 | rm -f conftest* |
8903 | ||
10f2d63a | 8904 | fi |
a0b9e27f MB |
8905 | |
8906 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
f09359cf | 8907 | if test "$ac_test_CFLAGS" = set; then |
a0b9e27f | 8908 | CFLAGS="$ac_save_CFLAGS" |
f09359cf VS |
8909 | elif test $ac_cv_prog_cc_g = yes; then |
8910 | if test "$GCC" = yes; then | |
10f2d63a VZ |
8911 | CFLAGS="-g -O2" |
8912 | else | |
f09359cf | 8913 | CFLAGS="-g" |
10f2d63a | 8914 | fi |
5c0a20c3 | 8915 | else |
f09359cf VS |
8916 | if test "$GCC" = yes; then |
8917 | CFLAGS="-O2" | |
8918 | else | |
8919 | CFLAGS= | |
8920 | fi | |
10f2d63a VZ |
8921 | fi |
8922 | ||
8923 | ||
a0b9e27f | 8924 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
6969f178 | 8925 | echo "configure:8926: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8926 | # On Suns, sometimes $CPP names a directory. |
8927 | if test -n "$CPP" && test -d "$CPP"; then | |
8928 | CPP= | |
8929 | fi | |
8930 | if test -z "$CPP"; then | |
a0b9e27f MB |
8931 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8932 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8933 | else | |
8934 | # This must be in double quotes, not single quotes, because CPP may get | |
8935 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8936 | CPP="${CC-cc} -E" | |
10f2d63a | 8937 | # On the NeXT, cc -E runs the code through the compiler's parser, |
a0b9e27f MB |
8938 | # not just through cpp. |
8939 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 8940 | #line 8941 "configure" |
10f2d63a VZ |
8941 | #include "confdefs.h" |
8942 | #include <assert.h> | |
a0b9e27f MB |
8943 | Syntax Error |
8944 | EOF | |
8945 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 8946 | { (eval echo configure:8947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
8947 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8948 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8949 | : |
8950 | else | |
a0b9e27f MB |
8951 | echo "$ac_err" >&5 |
8952 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8953 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
8954 | rm -rf conftest* |
8955 | CPP="${CC-cc} -E -traditional-cpp" | |
8956 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 8957 | #line 8958 "configure" |
f09359cf | 8958 | #include "confdefs.h" |
a0b9e27f MB |
8959 | #include <assert.h> |
8960 | Syntax Error | |
8961 | EOF | |
8962 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 8963 | { (eval echo configure:8964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
8964 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8965 | if test -z "$ac_err"; then | |
8966 | : | |
247f5006 | 8967 | else |
a0b9e27f MB |
8968 | echo "$ac_err" >&5 |
8969 | echo "configure: failed program was:" >&5 | |
f09359cf | 8970 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
8971 | rm -rf conftest* |
8972 | CPP="${CC-cc} -nologo -E" | |
8973 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 8974 | #line 8975 "configure" |
10f2d63a VZ |
8975 | #include "confdefs.h" |
8976 | #include <assert.h> | |
a0b9e27f MB |
8977 | Syntax Error |
8978 | EOF | |
8979 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 8980 | { (eval echo configure:8981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
8981 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8982 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8983 | : |
8984 | else | |
a0b9e27f MB |
8985 | echo "$ac_err" >&5 |
8986 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8987 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
8988 | rm -rf conftest* |
8989 | CPP=/lib/cpp | |
579d8138 | 8990 | fi |
a0b9e27f | 8991 | rm -f conftest* |
52127426 | 8992 | fi |
a0b9e27f | 8993 | rm -f conftest* |
8284b0c5 | 8994 | fi |
a0b9e27f MB |
8995 | rm -f conftest* |
8996 | ac_cv_prog_CPP="$CPP" | |
8997 | fi | |
8998 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8999 | else |
a0b9e27f | 9000 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 9001 | fi |
a0b9e27f | 9002 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 9003 | |
a0b9e27f MB |
9004 | if test $ac_cv_prog_gcc = yes; then |
9005 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
6969f178 | 9006 | echo "configure:9007: checking whether ${CC-cc} needs -traditional" >&5 |
a0b9e27f MB |
9007 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
9008 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9009 | else |
9010 | ac_pattern="Autoconf.*'x'" | |
a0b9e27f | 9011 | cat > conftest.$ac_ext <<EOF |
6969f178 | 9012 | #line 9013 "configure" |
10f2d63a VZ |
9013 | #include "confdefs.h" |
9014 | #include <sgtty.h> | |
9015 | Autoconf TIOCGETP | |
a0b9e27f | 9016 | EOF |
10f2d63a VZ |
9017 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9018 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9019 | rm -rf conftest* |
10f2d63a VZ |
9020 | ac_cv_prog_gcc_traditional=yes |
9021 | else | |
a0b9e27f | 9022 | rm -rf conftest* |
10f2d63a VZ |
9023 | ac_cv_prog_gcc_traditional=no |
9024 | fi | |
9025 | rm -f conftest* | |
9026 | ||
8284b0c5 | 9027 | |
10f2d63a | 9028 | if test $ac_cv_prog_gcc_traditional = no; then |
a0b9e27f | 9029 | cat > conftest.$ac_ext <<EOF |
6969f178 | 9030 | #line 9031 "configure" |
10f2d63a VZ |
9031 | #include "confdefs.h" |
9032 | #include <termio.h> | |
9033 | Autoconf TCGETA | |
a0b9e27f | 9034 | EOF |
10f2d63a VZ |
9035 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9036 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9037 | rm -rf conftest* |
10f2d63a VZ |
9038 | ac_cv_prog_gcc_traditional=yes |
9039 | fi | |
9040 | rm -f conftest* | |
9041 | ||
9042 | fi | |
9043 | fi | |
a0b9e27f MB |
9044 | |
9045 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
9046 | if test $ac_cv_prog_gcc_traditional = yes; then |
9047 | CC="$CC -traditional" | |
9048 | fi | |
9049 | fi | |
9050 | ||
8284b0c5 MB |
9051 | |
9052 | ||
a0b9e27f MB |
9053 | ac_ext=C |
9054 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 9055 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
9056 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9057 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9058 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9059 | |
698dcdb6 | 9060 | |
ec603395 | 9061 | CXXFLAGS=${CXXFLAGS:=} |
a0b9e27f MB |
9062 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
9063 | do | |
9064 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9065 | set dummy $ac_prog; ac_word=$2 | |
9066 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6969f178 | 9067 | echo "configure:9068: checking for $ac_word" >&5 |
a0b9e27f MB |
9068 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
9069 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9070 | else |
9071 | if test -n "$CXX"; then | |
9072 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
9073 | else | |
a0b9e27f MB |
9074 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9075 | ac_dummy="$PATH" | |
9076 | for ac_dir in $ac_dummy; do | |
9077 | test -z "$ac_dir" && ac_dir=. | |
9078 | if test -f $ac_dir/$ac_word; then | |
9079 | ac_cv_prog_CXX="$ac_prog" | |
9080 | break | |
9081 | fi | |
9082 | done | |
9083 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9084 | fi |
9085 | fi | |
a0b9e27f | 9086 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 9087 | if test -n "$CXX"; then |
a0b9e27f | 9088 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9089 | else |
a0b9e27f | 9090 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9091 | fi |
9092 | ||
a0b9e27f | 9093 | test -n "$CXX" && break |
10f2d63a | 9094 | done |
a0b9e27f | 9095 | test -n "$CXX" || CXX="gcc" |
f09359cf | 9096 | |
a0b9e27f MB |
9097 | |
9098 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
6969f178 | 9099 | echo "configure:9100: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
a0b9e27f MB |
9100 | |
9101 | ac_ext=C | |
9102 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9103 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9104 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9105 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9106 | cross_compiling=$ac_cv_prog_cxx_cross | |
9107 | ||
9108 | cat > conftest.$ac_ext << EOF | |
9109 | ||
6969f178 | 9110 | #line 9111 "configure" |
a0b9e27f MB |
9111 | #include "confdefs.h" |
9112 | ||
9113 | int main(){return(0);} | |
9114 | EOF | |
6969f178 | 9115 | if { (eval echo configure:9116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9116 | ac_cv_prog_cxx_works=yes |
9117 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9118 | if (./conftest; exit) 2>/dev/null; then | |
9119 | ac_cv_prog_cxx_cross=no | |
9120 | else | |
9121 | ac_cv_prog_cxx_cross=yes | |
9122 | fi | |
8284b0c5 | 9123 | else |
a0b9e27f MB |
9124 | echo "configure: failed program was:" >&5 |
9125 | cat conftest.$ac_ext >&5 | |
9126 | ac_cv_prog_cxx_works=no | |
8284b0c5 | 9127 | fi |
a0b9e27f MB |
9128 | rm -fr conftest* |
9129 | ac_ext=C | |
9130 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9131 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9132 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9133 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9134 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9135 | |
a0b9e27f MB |
9136 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
9137 | if test $ac_cv_prog_cxx_works = no; then | |
9138 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9139 | fi | |
9140 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
6969f178 | 9141 | echo "configure:9142: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9142 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9143 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9144 | |
a0b9e27f | 9145 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
6969f178 | 9146 | echo "configure:9147: checking whether we are using GNU C++" >&5 |
a0b9e27f MB |
9147 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9148 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9149 | else | |
9150 | cat > conftest.C <<EOF | |
9151 | #ifdef __GNUC__ | |
9152 | yes; | |
10f2d63a | 9153 | #endif |
a0b9e27f | 9154 | EOF |
6969f178 | 9155 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f MB |
9156 | ac_cv_prog_gxx=yes |
9157 | else | |
9158 | ac_cv_prog_gxx=no | |
9159 | fi | |
9160 | fi | |
10f2d63a | 9161 | |
a0b9e27f | 9162 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9163 | |
a0b9e27f MB |
9164 | if test $ac_cv_prog_gxx = yes; then |
9165 | GXX=yes | |
9166 | else | |
9167 | GXX= | |
9168 | fi | |
f09359cf | 9169 | |
a0b9e27f MB |
9170 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9171 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9172 | CXXFLAGS= | |
9173 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
6969f178 | 9174 | echo "configure:9175: checking whether ${CXX-g++} accepts -g" >&5 |
a0b9e27f MB |
9175 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9176 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9177 | else | |
9178 | echo 'void f(){}' > conftest.cc | |
9179 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9180 | ac_cv_prog_cxx_g=yes |
9181 | else | |
a0b9e27f | 9182 | ac_cv_prog_cxx_g=no |
10f2d63a | 9183 | fi |
a0b9e27f MB |
9184 | rm -f conftest* |
9185 | ||
10f2d63a | 9186 | fi |
a0b9e27f MB |
9187 | |
9188 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
f09359cf | 9189 | if test "$ac_test_CXXFLAGS" = set; then |
a0b9e27f | 9190 | CXXFLAGS="$ac_save_CXXFLAGS" |
f09359cf VS |
9191 | elif test $ac_cv_prog_cxx_g = yes; then |
9192 | if test "$GXX" = yes; then | |
10f2d63a VZ |
9193 | CXXFLAGS="-g -O2" |
9194 | else | |
f09359cf | 9195 | CXXFLAGS="-g" |
10f2d63a | 9196 | fi |
5c0a20c3 | 9197 | else |
f09359cf VS |
9198 | if test "$GXX" = yes; then |
9199 | CXXFLAGS="-O2" | |
9200 | else | |
9201 | CXXFLAGS= | |
9202 | fi | |
10f2d63a VZ |
9203 | fi |
9204 | ||
9205 | ||
10f2d63a | 9206 | ac_ext=c |
a0b9e27f | 9207 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9208 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
9209 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9210 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9211 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 MB |
9212 | |
9213 | ||
a0b9e27f MB |
9214 | # Extract the first word of "ranlib", so it can be a program name with args. |
9215 | set dummy ranlib; ac_word=$2 | |
9216 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6969f178 | 9217 | echo "configure:9218: checking for $ac_word" >&5 |
a0b9e27f MB |
9218 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9219 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9220 | else |
9221 | if test -n "$RANLIB"; then | |
9222 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9223 | else | |
a0b9e27f MB |
9224 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9225 | ac_dummy="$PATH" | |
9226 | for ac_dir in $ac_dummy; do | |
9227 | test -z "$ac_dir" && ac_dir=. | |
9228 | if test -f $ac_dir/$ac_word; then | |
9229 | ac_cv_prog_RANLIB="ranlib" | |
9230 | break | |
9231 | fi | |
9232 | done | |
9233 | IFS="$ac_save_ifs" | |
9234 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9235 | fi |
9236 | fi | |
a0b9e27f | 9237 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9238 | if test -n "$RANLIB"; then |
a0b9e27f | 9239 | echo "$ac_t""$RANLIB" 1>&6 |
328a083c | 9240 | else |
a0b9e27f | 9241 | echo "$ac_t""no" 1>&6 |
328a083c RR |
9242 | fi |
9243 | ||
10f2d63a VZ |
9244 | |
9245 | # Extract the first word of "ar", so it can be a program name with args. | |
9246 | set dummy ar; ac_word=$2 | |
a0b9e27f | 9247 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
6969f178 | 9248 | echo "configure:9249: checking for $ac_word" >&5 |
a0b9e27f MB |
9249 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9250 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9251 | else |
9252 | if test -n "$AR"; then | |
9253 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9254 | else | |
a0b9e27f MB |
9255 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9256 | ac_dummy="$PATH" | |
9257 | for ac_dir in $ac_dummy; do | |
9258 | test -z "$ac_dir" && ac_dir=. | |
9259 | if test -f $ac_dir/$ac_word; then | |
9260 | ac_cv_prog_AR="ar" | |
9261 | break | |
9262 | fi | |
9263 | done | |
9264 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9265 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9266 | fi | |
9267 | fi | |
a0b9e27f | 9268 | AR="$ac_cv_prog_AR" |
10f2d63a | 9269 | if test -n "$AR"; then |
a0b9e27f | 9270 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9271 | else |
a0b9e27f | 9272 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9273 | fi |
9274 | ||
8284b0c5 | 9275 | |
6054113a | 9276 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9277 | # so one script is as good as another. But avoid the broken or |
9278 | # incompatible versions: | |
9279 | # SysV /etc/install, /usr/sbin/install | |
9280 | # SunOS /usr/etc/install | |
9281 | # IRIX /sbin/install | |
9282 | # AIX /bin/install | |
f09359cf | 9283 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
9284 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
9285 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9286 | # ./install, which can be erroneously created by make from ./install.sh. | |
a0b9e27f | 9287 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
6969f178 | 9288 | echo "configure:9289: checking for a BSD compatible install" >&5 |
10f2d63a | 9289 | if test -z "$INSTALL"; then |
a0b9e27f MB |
9290 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9291 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9292 | else | |
9293 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
9294 | for ac_dir in $PATH; do | |
9295 | # Account for people who put trailing slashes in PATH elements. | |
9296 | case "$ac_dir/" in | |
9297 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
9298 | *) | |
9299 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9300 | # Don't use installbsd from OSF since it installs stuff as root | |
9301 | # by default. | |
9302 | for ac_prog in ginstall scoinst install; do | |
9303 | if test -f $ac_dir/$ac_prog; then | |
9304 | if test $ac_prog = install && | |
9305 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
9306 | # AIX install. It has an incompatible calling convention. | |
9307 | : | |
9308 | else | |
9309 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9310 | break 2 | |
9311 | fi | |
9312 | fi | |
10f2d63a | 9313 | done |
a0b9e27f MB |
9314 | ;; |
9315 | esac | |
9316 | done | |
9317 | IFS="$ac_save_IFS" | |
10f2d63a VZ |
9318 | |
9319 | fi | |
9320 | if test "${ac_cv_path_install+set}" = set; then | |
a0b9e27f | 9321 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9322 | else |
9323 | # As a last resort, use the slow shell script. We don't cache a | |
9324 | # path for INSTALL within a source directory, because that will | |
9325 | # break other packages using the cache if that directory is | |
9326 | # removed, or if the path is relative. | |
a0b9e27f | 9327 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9328 | fi |
9329 | fi | |
a0b9e27f | 9330 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9331 | |
9332 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9333 | # It thinks the first close brace ends the variable substitution. | |
9334 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9335 | ||
a0b9e27f | 9336 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
f09359cf | 9337 | |
10f2d63a VZ |
9338 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9339 | ||
8284b0c5 | 9340 | |
1d1b75ac VZ |
9341 | case ${INSTALL} in |
9342 | /* ) # Absolute | |
9343 | ;; | |
3bd8fb5f | 9344 | *) |
1d1b75ac VZ |
9345 | INSTALL=`pwd`/${INSTALL} ;; |
9346 | esac | |
9347 | ||
8284b0c5 | 9348 | |
6054113a GD |
9349 | case "${host}" in |
9350 | ||
b5853384 | 9351 | powerpc-*-darwin* ) |
eb99ae0b GD |
9352 | INSTALL_PROGRAM="cp -fp" |
9353 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9354 | ;; |
9355 | *) | |
9356 | ;; | |
d6853540 | 9357 | esac |
698dcdb6 | 9358 | |
10f2d63a VZ |
9359 | # Extract the first word of "strip", so it can be a program name with args. |
9360 | set dummy strip; ac_word=$2 | |
a0b9e27f | 9361 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
6969f178 | 9362 | echo "configure:9363: checking for $ac_word" >&5 |
a0b9e27f MB |
9363 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9364 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9365 | else |
9366 | if test -n "$STRIP"; then | |
9367 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9368 | else | |
a0b9e27f MB |
9369 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9370 | ac_dummy="$PATH" | |
9371 | for ac_dir in $ac_dummy; do | |
9372 | test -z "$ac_dir" && ac_dir=. | |
9373 | if test -f $ac_dir/$ac_word; then | |
9374 | ac_cv_prog_STRIP="strip" | |
9375 | break | |
9376 | fi | |
9377 | done | |
9378 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9379 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9380 | fi | |
9381 | fi | |
a0b9e27f | 9382 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9383 | if test -n "$STRIP"; then |
a0b9e27f | 9384 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9385 | else |
a0b9e27f | 9386 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9387 | fi |
9388 | ||
5c6fa7d2 | 9389 | |
a0b9e27f | 9390 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
6969f178 | 9391 | echo "configure:9392: checking if make is GNU make" >&5 |
a0b9e27f MB |
9392 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9393 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9394 | else |
a0b9e27f | 9395 | |
414eab6d | 9396 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 9397 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9398 | wx_cv_prog_makeisgnu="yes" |
9399 | else | |
9400 | wx_cv_prog_makeisgnu="no" | |
9401 | fi | |
9402 | ||
9403 | fi | |
a0b9e27f MB |
9404 | |
9405 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
414eab6d VZ |
9406 | |
9407 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9408 | IF_GNU_MAKE="" | |
9409 | else | |
9410 | IF_GNU_MAKE="#" | |
9411 | fi | |
9412 | ||
8284b0c5 MB |
9413 | |
9414 | ||
414eab6d | 9415 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
a0b9e27f | 9416 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
6969f178 | 9417 | echo "configure:9418: checking if make supports VPATH" >&5 |
a0b9e27f MB |
9418 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9419 | echo $ac_n "(cached) $ac_c" 1>&6 | |
04e7a216 | 9420 | else |
a0b9e27f | 9421 | |
10f2d63a VZ |
9422 | cat - << EOF > confMake |
9423 | check : file | |
9424 | cp \$? \$@ | |
9425 | cp \$? final_file | |
9426 | EOF | |
9427 | ||
9428 | if test ! -d sub ; then | |
9429 | mkdir sub | |
9430 | fi | |
9431 | echo dummy > sub/file | |
f6bcfd97 | 9432 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9433 | RESULT=$? |
9434 | rm -f sub/file check final_file confMake | |
9435 | rmdir sub | |
9436 | if test "$RESULT" = 0; then | |
04e7a216 | 9437 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9438 | else |
04e7a216 VZ |
9439 | wx_cv_prog_makevpath="no" |
9440 | fi | |
9441 | ||
9442 | fi | |
a0b9e27f MB |
9443 | |
9444 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
04e7a216 VZ |
9445 | |
9446 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
a0b9e27f | 9447 | { echo "configure: error: |
5c6fa7d2 RR |
9448 | You need a make-utility that is able to use the variable |
9449 | VPATH correctly. | |
9450 | If your version of make does not support VPATH correctly, | |
9451 | please install GNU-make (possibly as gmake), and start | |
9452 | configure with the following command: | |
9453 | export MAKE=gmake; ./configure for sh-type shells | |
9454 | setenv MAKE gmake; ./configure for csh-type shells | |
9455 | Also please do remember to use gmake in this case every time | |
9456 | you are trying to compile. | |
a0b9e27f MB |
9457 | " 1>&2; exit 1; } |
9458 | fi fi | |
10f2d63a VZ |
9459 | for ac_prog in 'bison -y' byacc |
9460 | do | |
a0b9e27f | 9461 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9462 | set dummy $ac_prog; ac_word=$2 |
a0b9e27f | 9463 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
6969f178 | 9464 | echo "configure:9465: checking for $ac_word" >&5 |
a0b9e27f MB |
9465 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9466 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9467 | else |
9468 | if test -n "$YACC"; then | |
9469 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9470 | else | |
a0b9e27f MB |
9471 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9472 | ac_dummy="$PATH" | |
9473 | for ac_dir in $ac_dummy; do | |
9474 | test -z "$ac_dir" && ac_dir=. | |
9475 | if test -f $ac_dir/$ac_word; then | |
9476 | ac_cv_prog_YACC="$ac_prog" | |
9477 | break | |
9478 | fi | |
9479 | done | |
9480 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9481 | fi |
9482 | fi | |
a0b9e27f | 9483 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9484 | if test -n "$YACC"; then |
a0b9e27f | 9485 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9486 | else |
a0b9e27f | 9487 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9488 | fi |
9489 | ||
a0b9e27f | 9490 | test -n "$YACC" && break |
10f2d63a VZ |
9491 | done |
9492 | test -n "$YACC" || YACC="yacc" | |
9493 | ||
8284b0c5 | 9494 | |
a0b9e27f MB |
9495 | # Extract the first word of "flex", so it can be a program name with args. |
9496 | set dummy flex; ac_word=$2 | |
9497 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6969f178 | 9498 | echo "configure:9499: checking for $ac_word" >&5 |
a0b9e27f MB |
9499 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9500 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9501 | else |
9502 | if test -n "$LEX"; then | |
9503 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9504 | else | |
a0b9e27f MB |
9505 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9506 | ac_dummy="$PATH" | |
9507 | for ac_dir in $ac_dummy; do | |
9508 | test -z "$ac_dir" && ac_dir=. | |
9509 | if test -f $ac_dir/$ac_word; then | |
9510 | ac_cv_prog_LEX="flex" | |
9511 | break | |
9512 | fi | |
9513 | done | |
9514 | IFS="$ac_save_ifs" | |
9515 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9516 | fi |
9517 | fi | |
a0b9e27f | 9518 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9519 | if test -n "$LEX"; then |
a0b9e27f | 9520 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9521 | else |
a0b9e27f | 9522 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9523 | fi |
9524 | ||
9525 | if test -z "$LEXLIB" | |
9526 | then | |
a0b9e27f MB |
9527 | case "$LEX" in |
9528 | flex*) ac_lib=fl ;; | |
9529 | *) ac_lib=l ;; | |
9530 | esac | |
9531 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
6969f178 | 9532 | echo "configure:9533: checking for yywrap in -l$ac_lib" >&5 |
a0b9e27f MB |
9533 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9534 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9535 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9536 | else | |
9537 | ac_save_LIBS="$LIBS" | |
9538 | LIBS="-l$ac_lib $LIBS" | |
9539 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 9540 | #line 9541 "configure" |
247f5006 | 9541 | #include "confdefs.h" |
247f5006 | 9542 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 9543 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
9544 | builtin and then its argument prototype would still apply. */ |
9545 | char yywrap(); | |
10f2d63a | 9546 | |
a0b9e27f MB |
9547 | int main() { |
9548 | yywrap() | |
9549 | ; return 0; } | |
9550 | EOF | |
6969f178 | 9551 | if { (eval echo configure:9552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9552 | rm -rf conftest* |
9553 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9554 | else | |
9555 | echo "configure: failed program was:" >&5 | |
9556 | cat conftest.$ac_ext >&5 | |
9557 | rm -rf conftest* | |
9558 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9559 | fi |
a0b9e27f MB |
9560 | rm -f conftest* |
9561 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 9562 | |
10f2d63a | 9563 | fi |
a0b9e27f MB |
9564 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9565 | echo "$ac_t""yes" 1>&6 | |
9566 | LEXLIB="-l$ac_lib" | |
8284b0c5 | 9567 | else |
a0b9e27f | 9568 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9569 | fi |
9570 | ||
a0b9e27f | 9571 | fi |
10f2d63a VZ |
9572 | |
9573 | ||
a0b9e27f | 9574 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
6969f178 | 9575 | echo "configure:9576: checking whether ln -s works" >&5 |
a0b9e27f MB |
9576 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9577 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9578 | else |
a0b9e27f MB |
9579 | rm -f conftestdata |
9580 | if ln -s X conftestdata 2>/dev/null | |
9581 | then | |
9582 | rm -f conftestdata | |
9583 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9584 | else |
a0b9e27f | 9585 | ac_cv_prog_LN_S=ln |
10f2d63a | 9586 | fi |
a0b9e27f MB |
9587 | fi |
9588 | LN_S="$ac_cv_prog_LN_S" | |
9589 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9590 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9591 | else |
a0b9e27f | 9592 | echo "$ac_t""no" 1>&6 |
5c6fa7d2 | 9593 | fi |
5c6fa7d2 | 9594 | |
247f5006 | 9595 | |
a0b9e27f MB |
9596 | |
9597 | if test "$wxUSE_MAC" != 1; then | |
9598 | for ac_hdr in strings.h | |
9599 | do | |
9600 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9601 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6969f178 | 9602 | echo "configure:9603: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9603 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9604 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9605 | else | |
9606 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 9607 | #line 9608 "configure" |
a0b9e27f MB |
9608 | #include "confdefs.h" |
9609 | #include <$ac_hdr> | |
9610 | EOF | |
9611 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 9612 | { (eval echo configure:9613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9613 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9614 | if test -z "$ac_err"; then | |
9615 | rm -rf conftest* | |
9616 | eval "ac_cv_header_$ac_safe=yes" | |
9617 | else | |
9618 | echo "$ac_err" >&5 | |
9619 | echo "configure: failed program was:" >&5 | |
9620 | cat conftest.$ac_ext >&5 | |
9621 | rm -rf conftest* | |
9622 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 9623 | fi |
247f5006 | 9624 | rm -f conftest* |
19bc6aad | 9625 | fi |
a0b9e27f MB |
9626 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9627 | echo "$ac_t""yes" 1>&6 | |
9628 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9629 | cat >> confdefs.h <<EOF | |
9630 | #define $ac_tr_hdr 1 | |
9631 | EOF | |
9632 | ||
247f5006 | 9633 | else |
a0b9e27f | 9634 | echo "$ac_t""no" 1>&6 |
18dbb1f6 | 9635 | fi |
a0b9e27f | 9636 | done |
247f5006 | 9637 | |
90dd450c | 9638 | fi |
90dd450c | 9639 | |
a0b9e27f MB |
9640 | for ac_hdr in stdlib.h |
9641 | do | |
9642 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9643 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6969f178 | 9644 | echo "configure:9645: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9645 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9646 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9647 | else | |
9648 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 9649 | #line 9650 "configure" |
90dd450c | 9650 | #include "confdefs.h" |
a0b9e27f MB |
9651 | #include <$ac_hdr> |
9652 | EOF | |
9653 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 9654 | { (eval echo configure:9655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9655 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9656 | if test -z "$ac_err"; then | |
9657 | rm -rf conftest* | |
9658 | eval "ac_cv_header_$ac_safe=yes" | |
9659 | else | |
9660 | echo "$ac_err" >&5 | |
9661 | echo "configure: failed program was:" >&5 | |
9662 | cat conftest.$ac_ext >&5 | |
9663 | rm -rf conftest* | |
9664 | eval "ac_cv_header_$ac_safe=no" | |
9665 | fi | |
9666 | rm -f conftest* | |
9667 | fi | |
9668 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9669 | echo "$ac_t""yes" 1>&6 | |
9670 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9671 | cat >> confdefs.h <<EOF | |
9672 | #define $ac_tr_hdr 1 | |
9673 | EOF | |
9674 | ||
8284b0c5 | 9675 | else |
a0b9e27f | 9676 | echo "$ac_t""no" 1>&6 |
21d1c967 | 9677 | fi |
a0b9e27f MB |
9678 | done |
9679 | ||
9680 | for ac_hdr in malloc.h | |
9681 | do | |
9682 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9683 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6969f178 | 9684 | echo "configure:9685: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9685 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9686 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9687 | else | |
9688 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 9689 | #line 9690 "configure" |
a0b9e27f MB |
9690 | #include "confdefs.h" |
9691 | #include <$ac_hdr> | |
9692 | EOF | |
9693 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 9694 | { (eval echo configure:9695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9695 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9696 | if test -z "$ac_err"; then | |
9697 | rm -rf conftest* | |
9698 | eval "ac_cv_header_$ac_safe=yes" | |
9699 | else | |
9700 | echo "$ac_err" >&5 | |
9701 | echo "configure: failed program was:" >&5 | |
9702 | cat conftest.$ac_ext >&5 | |
9703 | rm -rf conftest* | |
9704 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9705 | fi |
a0b9e27f | 9706 | rm -f conftest* |
90dd450c | 9707 | fi |
a0b9e27f MB |
9708 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9709 | echo "$ac_t""yes" 1>&6 | |
9710 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9711 | cat >> confdefs.h <<EOF | |
9712 | #define $ac_tr_hdr 1 | |
9713 | EOF | |
9714 | ||
9715 | else | |
9716 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 9717 | fi |
a0b9e27f | 9718 | done |
247f5006 | 9719 | |
a0b9e27f MB |
9720 | for ac_hdr in unistd.h |
9721 | do | |
9722 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9723 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6969f178 | 9724 | echo "configure:9725: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9725 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9726 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9727 | else | |
9728 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 9729 | #line 9730 "configure" |
a0b9e27f MB |
9730 | #include "confdefs.h" |
9731 | #include <$ac_hdr> | |
9732 | EOF | |
9733 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 9734 | { (eval echo configure:9735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9735 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9736 | if test -z "$ac_err"; then | |
9737 | rm -rf conftest* | |
9738 | eval "ac_cv_header_$ac_safe=yes" | |
9739 | else | |
9740 | echo "$ac_err" >&5 | |
9741 | echo "configure: failed program was:" >&5 | |
9742 | cat conftest.$ac_ext >&5 | |
9743 | rm -rf conftest* | |
9744 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 9745 | fi |
a0b9e27f MB |
9746 | rm -f conftest* |
9747 | fi | |
9748 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9749 | echo "$ac_t""yes" 1>&6 | |
9750 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9751 | cat >> confdefs.h <<EOF | |
9752 | #define $ac_tr_hdr 1 | |
9753 | EOF | |
9754 | ||
9755 | else | |
9756 | echo "$ac_t""no" 1>&6 | |
9757 | fi | |
9758 | done | |
90dd450c | 9759 | |
a0b9e27f | 9760 | for ac_hdr in wchar.h |
21d1c967 | 9761 | do |
a0b9e27f MB |
9762 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9763 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6969f178 | 9764 | echo "configure:9765: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9765 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9766 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9767 | else | |
9768 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 9769 | #line 9770 "configure" |
4f14bcd8 | 9770 | #include "confdefs.h" |
a0b9e27f MB |
9771 | #include <$ac_hdr> |
9772 | EOF | |
9773 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 9774 | { (eval echo configure:9775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9775 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9776 | if test -z "$ac_err"; then | |
9777 | rm -rf conftest* | |
9778 | eval "ac_cv_header_$ac_safe=yes" | |
9779 | else | |
9780 | echo "$ac_err" >&5 | |
9781 | echo "configure: failed program was:" >&5 | |
9782 | cat conftest.$ac_ext >&5 | |
9783 | rm -rf conftest* | |
9784 | eval "ac_cv_header_$ac_safe=no" | |
9785 | fi | |
9786 | rm -f conftest* | |
9787 | fi | |
9788 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9789 | echo "$ac_t""yes" 1>&6 | |
9790 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9791 | cat >> confdefs.h <<EOF | |
9792 | #define $ac_tr_hdr 1 | |
9793 | EOF | |
9794 | ||
9795 | else | |
9796 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9797 | fi |
9798 | done | |
4f14bcd8 | 9799 | |
5c6fa7d2 | 9800 | |
a0b9e27f MB |
9801 | if test "$ac_cv_header_wchar_h" != "yes"; then |
9802 | for ac_hdr in wcstr.h | |
21d1c967 | 9803 | do |
a0b9e27f MB |
9804 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9805 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6969f178 | 9806 | echo "configure:9807: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9807 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9808 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9809 | else | |
9810 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 9811 | #line 9812 "configure" |
d4158b5d | 9812 | #include "confdefs.h" |
a0b9e27f MB |
9813 | #include <$ac_hdr> |
9814 | EOF | |
9815 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 9816 | { (eval echo configure:9817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9817 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9818 | if test -z "$ac_err"; then | |
9819 | rm -rf conftest* | |
9820 | eval "ac_cv_header_$ac_safe=yes" | |
9821 | else | |
9822 | echo "$ac_err" >&5 | |
9823 | echo "configure: failed program was:" >&5 | |
d4158b5d | 9824 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9825 | rm -rf conftest* |
9826 | eval "ac_cv_header_$ac_safe=no" | |
d4158b5d | 9827 | fi |
a0b9e27f | 9828 | rm -f conftest* |
21d1c967 | 9829 | fi |
a0b9e27f MB |
9830 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9831 | echo "$ac_t""yes" 1>&6 | |
9832 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9833 | cat >> confdefs.h <<EOF | |
9834 | #define $ac_tr_hdr 1 | |
9835 | EOF | |
9836 | ||
9837 | else | |
9838 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 9839 | fi |
21d1c967 | 9840 | done |
f6bcfd97 | 9841 | |
90dd450c | 9842 | fi |
90dd450c | 9843 | |
a0b9e27f | 9844 | for ac_hdr in fnmatch.h |
21d1c967 | 9845 | do |
a0b9e27f MB |
9846 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9847 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6969f178 | 9848 | echo "configure:9849: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9849 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9850 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9851 | else | |
9852 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 9853 | #line 9854 "configure" |
90dd450c | 9854 | #include "confdefs.h" |
a0b9e27f MB |
9855 | #include <$ac_hdr> |
9856 | EOF | |
9857 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 9858 | { (eval echo configure:9859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9859 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9860 | if test -z "$ac_err"; then | |
9861 | rm -rf conftest* | |
9862 | eval "ac_cv_header_$ac_safe=yes" | |
9863 | else | |
9864 | echo "$ac_err" >&5 | |
9865 | echo "configure: failed program was:" >&5 | |
3a922bb4 | 9866 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9867 | rm -rf conftest* |
9868 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9869 | fi |
a0b9e27f | 9870 | rm -f conftest* |
4f14bcd8 | 9871 | fi |
a0b9e27f MB |
9872 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9873 | echo "$ac_t""yes" 1>&6 | |
9874 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9875 | cat >> confdefs.h <<EOF | |
9876 | #define $ac_tr_hdr 1 | |
9877 | EOF | |
9878 | ||
9879 | else | |
9880 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9881 | fi |
9882 | done | |
90dd450c | 9883 | |
5c6fa7d2 | 9884 | |
a0b9e27f MB |
9885 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
9886 | for ac_func in fnmatch | |
21d1c967 | 9887 | do |
a0b9e27f | 9888 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 9889 | echo "configure:9890: checking for $ac_func" >&5 |
a0b9e27f MB |
9890 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9891 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 9892 | else |
a0b9e27f | 9893 | cat > conftest.$ac_ext <<EOF |
6969f178 | 9894 | #line 9895 "configure" |
a0b9e27f MB |
9895 | #include "confdefs.h" |
9896 | /* System header to define __stub macros and hopefully few prototypes, | |
9897 | which can conflict with char $ac_func(); below. */ | |
9898 | #include <assert.h> | |
9899 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9900 | /* We use char because int might match the return type of a gcc2 | |
9901 | builtin and then its argument prototype would still apply. */ | |
9902 | char $ac_func(); | |
9903 | ||
9904 | int main() { | |
9905 | ||
9906 | /* The GNU C library defines this for functions which it implements | |
9907 | to always fail with ENOSYS. Some functions are actually named | |
9908 | something starting with __ and the normal name is an alias. */ | |
9909 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9910 | choke me | |
9911 | #else | |
9912 | $ac_func(); | |
9913 | #endif | |
9914 | ||
9915 | ; return 0; } | |
9916 | EOF | |
6969f178 | 9917 | if { (eval echo configure:9918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9918 | rm -rf conftest* |
9919 | eval "ac_cv_func_$ac_func=yes" | |
8284b0c5 | 9920 | else |
a0b9e27f | 9921 | echo "configure: failed program was:" >&5 |
8284b0c5 | 9922 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9923 | rm -rf conftest* |
9924 | eval "ac_cv_func_$ac_func=no" | |
8284b0c5 | 9925 | fi |
a0b9e27f | 9926 | rm -f conftest* |
8284b0c5 | 9927 | fi |
32832908 | 9928 | |
a0b9e27f MB |
9929 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9930 | echo "$ac_t""yes" 1>&6 | |
9931 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9932 | cat >> confdefs.h <<EOF | |
9933 | #define $ac_tr_func 1 | |
9934 | EOF | |
9935 | ||
9936 | else | |
9937 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9938 | fi |
9939 | done | |
90dd450c | 9940 | |
a0b9e27f | 9941 | fi |
90dd450c | 9942 | |
a0b9e27f | 9943 | for ac_hdr in langinfo.h |
21d1c967 | 9944 | do |
a0b9e27f MB |
9945 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9946 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6969f178 | 9947 | echo "configure:9948: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9948 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9949 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9950 | else | |
9951 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 9952 | #line 9953 "configure" |
247f5006 | 9953 | #include "confdefs.h" |
a0b9e27f MB |
9954 | #include <$ac_hdr> |
9955 | EOF | |
9956 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 9957 | { (eval echo configure:9958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9958 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9959 | if test -z "$ac_err"; then | |
9960 | rm -rf conftest* | |
9961 | eval "ac_cv_header_$ac_safe=yes" | |
9962 | else | |
9963 | echo "$ac_err" >&5 | |
9964 | echo "configure: failed program was:" >&5 | |
90dd450c | 9965 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9966 | rm -rf conftest* |
9967 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 9968 | fi |
a0b9e27f | 9969 | rm -f conftest* |
4f14bcd8 | 9970 | fi |
a0b9e27f MB |
9971 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9972 | echo "$ac_t""yes" 1>&6 | |
9973 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9974 | cat >> confdefs.h <<EOF | |
9975 | #define $ac_tr_hdr 1 | |
9976 | EOF | |
9977 | ||
9978 | else | |
9979 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9980 | fi |
9981 | done | |
3a922bb4 | 9982 | |
8284b0c5 | 9983 | |
a0b9e27f MB |
9984 | if test "$wxUSE_GUI" = "yes"; then |
9985 | if test "$wxUSE_UNIX" = "yes"; then | |
9986 | for ac_hdr in X11/XKBlib.h | |
21d1c967 | 9987 | do |
a0b9e27f MB |
9988 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9989 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6969f178 | 9990 | echo "configure:9991: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9991 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9992 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9993 | else | |
9994 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 9995 | #line 9996 "configure" |
90dd450c | 9996 | #include "confdefs.h" |
a0b9e27f MB |
9997 | #include <$ac_hdr> |
9998 | EOF | |
9999 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 10000 | { (eval echo configure:10001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10001 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10002 | if test -z "$ac_err"; then | |
10003 | rm -rf conftest* | |
10004 | eval "ac_cv_header_$ac_safe=yes" | |
10005 | else | |
10006 | echo "$ac_err" >&5 | |
10007 | echo "configure: failed program was:" >&5 | |
90dd450c | 10008 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10009 | rm -rf conftest* |
10010 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10011 | fi |
a0b9e27f | 10012 | rm -f conftest* |
90dd450c | 10013 | fi |
a0b9e27f MB |
10014 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10015 | echo "$ac_t""yes" 1>&6 | |
10016 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10017 | cat >> confdefs.h <<EOF | |
10018 | #define $ac_tr_hdr 1 | |
10019 | EOF | |
10020 | ||
10021 | else | |
10022 | echo "$ac_t""no" 1>&6 | |
247f5006 | 10023 | fi |
247f5006 VZ |
10024 | done |
10025 | ||
a0b9e27f MB |
10026 | fi |
10027 | fi | |
247f5006 | 10028 | |
247f5006 | 10029 | |
a0b9e27f | 10030 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
6969f178 | 10031 | echo "configure:10032: checking for working const" >&5 |
a0b9e27f MB |
10032 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
10033 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10034 | else |
a0b9e27f | 10035 | cat > conftest.$ac_ext <<EOF |
6969f178 | 10036 | #line 10037 "configure" |
a0b9e27f MB |
10037 | #include "confdefs.h" |
10038 | ||
10039 | int main() { | |
10040 | ||
10041 | /* Ultrix mips cc rejects this. */ | |
10042 | typedef int charset[2]; const charset x; | |
10043 | /* SunOS 4.1.1 cc rejects this. */ | |
10044 | char const *const *ccp; | |
10045 | char **p; | |
10046 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
10047 | struct point {int x, y;}; | |
10048 | static struct point const zero = {0,0}; | |
10049 | /* AIX XL C 1.02.0.0 rejects this. | |
10050 | It does not let you subtract one const X* pointer from another in an arm | |
10051 | of an if-expression whose if-part is not a constant expression */ | |
10052 | const char *g = "string"; | |
10053 | ccp = &g + (g ? g-g : 0); | |
10054 | /* HPUX 7.0 cc rejects these. */ | |
10055 | ++ccp; | |
10056 | p = (char**) ccp; | |
10057 | ccp = (char const *const *) p; | |
10058 | { /* SCO 3.2v4 cc rejects this. */ | |
10059 | char *t; | |
10060 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
10061 | ||
10062 | *t++ = 0; | |
10063 | } | |
10064 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
10065 | int x[] = {25, 17}; | |
10066 | const int *foo = &x[0]; | |
10067 | ++foo; | |
10068 | } | |
10069 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
10070 | typedef const int *iptr; | |
10071 | iptr p = 0; | |
10072 | ++p; | |
10073 | } | |
10074 | { /* AIX XL C 1.02.0.0 rejects this saying | |
10075 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
10076 | struct s { int j; const int *ap[3]; }; | |
10077 | struct s *b; b->j = 5; | |
10078 | } | |
10079 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
10080 | const int foo = 10; | |
10081 | } | |
10082 | ||
10083 | ; return 0; } | |
10084 | EOF | |
6969f178 | 10085 | if { (eval echo configure:10086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10086 | rm -rf conftest* |
10087 | ac_cv_c_const=yes | |
247f5006 | 10088 | else |
a0b9e27f | 10089 | echo "configure: failed program was:" >&5 |
247f5006 | 10090 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10091 | rm -rf conftest* |
10092 | ac_cv_c_const=no | |
247f5006 | 10093 | fi |
a0b9e27f | 10094 | rm -f conftest* |
21d1c967 | 10095 | fi |
247f5006 | 10096 | |
a0b9e27f MB |
10097 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
10098 | if test $ac_cv_c_const = no; then | |
10099 | cat >> confdefs.h <<\EOF | |
10100 | #define const | |
10101 | EOF | |
10f2d63a | 10102 | |
90dd450c | 10103 | fi |
81809c07 | 10104 | |
a0b9e27f | 10105 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
6969f178 | 10106 | echo "configure:10107: checking for inline" >&5 |
a0b9e27f MB |
10107 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
10108 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8168de4c | 10109 | else |
a0b9e27f MB |
10110 | ac_cv_c_inline=no |
10111 | for ac_kw in inline __inline__ __inline; do | |
10112 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 10113 | #line 10114 "configure" |
a0b9e27f MB |
10114 | #include "confdefs.h" |
10115 | ||
10116 | int main() { | |
10117 | } $ac_kw foo() { | |
10118 | ; return 0; } | |
10119 | EOF | |
6969f178 | 10120 | if { (eval echo configure:10121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10121 | rm -rf conftest* |
10122 | ac_cv_c_inline=$ac_kw; break | |
247f5006 | 10123 | else |
a0b9e27f | 10124 | echo "configure: failed program was:" >&5 |
247f5006 | 10125 | cat conftest.$ac_ext >&5 |
247f5006 | 10126 | fi |
a0b9e27f MB |
10127 | rm -f conftest* |
10128 | done | |
247f5006 VZ |
10129 | |
10130 | fi | |
10131 | ||
a0b9e27f MB |
10132 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
10133 | case "$ac_cv_c_inline" in | |
10134 | inline | yes) ;; | |
10135 | no) cat >> confdefs.h <<\EOF | |
10136 | #define inline | |
10137 | EOF | |
10138 | ;; | |
10139 | *) cat >> confdefs.h <<EOF | |
10140 | #define inline $ac_cv_c_inline | |
10141 | EOF | |
10142 | ;; | |
10143 | esac | |
247f5006 | 10144 | |
247f5006 | 10145 | |
a0b9e27f | 10146 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
6969f178 | 10147 | echo "configure:10148: checking size of char" >&5 |
a0b9e27f MB |
10148 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
10149 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10150 | else | |
10151 | if test "$cross_compiling" = yes; then | |
10152 | ac_cv_sizeof_char=1 | |
10153 | else | |
10154 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 10155 | #line 10156 "configure" |
4f14bcd8 | 10156 | #include "confdefs.h" |
a0b9e27f MB |
10157 | #include <stdio.h> |
10158 | #include <sys/types.h> | |
10159 | main() | |
247f5006 | 10160 | { |
a0b9e27f MB |
10161 | FILE *f=fopen("conftestval", "w"); |
10162 | if (!f) exit(1); | |
10163 | fprintf(f, "%d\n", sizeof(char)); | |
10164 | exit(0); | |
52127426 | 10165 | } |
a0b9e27f | 10166 | EOF |
6969f178 | 10167 | if { (eval echo configure:10168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10168 | then |
10169 | ac_cv_sizeof_char=`cat conftestval` | |
247f5006 | 10170 | else |
a0b9e27f | 10171 | echo "configure: failed program was:" >&5 |
247f5006 | 10172 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10173 | rm -fr conftest* |
10174 | ac_cv_sizeof_char=0 | |
247f5006 | 10175 | fi |
a0b9e27f | 10176 | rm -fr conftest* |
247f5006 | 10177 | fi |
247f5006 VZ |
10178 | |
10179 | fi | |
a0b9e27f MB |
10180 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10181 | cat >> confdefs.h <<EOF | |
10182 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10183 | EOF | |
247f5006 | 10184 | |
247f5006 | 10185 | |
a0b9e27f | 10186 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
6969f178 | 10187 | echo "configure:10188: checking size of short" >&5 |
a0b9e27f MB |
10188 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10189 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10190 | else |
a0b9e27f MB |
10191 | if test "$cross_compiling" = yes; then |
10192 | ac_cv_sizeof_short=2 | |
247f5006 | 10193 | else |
a0b9e27f | 10194 | cat > conftest.$ac_ext <<EOF |
6969f178 | 10195 | #line 10196 "configure" |
a0b9e27f MB |
10196 | #include "confdefs.h" |
10197 | #include <stdio.h> | |
10198 | #include <sys/types.h> | |
10199 | main() | |
10200 | { | |
10201 | FILE *f=fopen("conftestval", "w"); | |
10202 | if (!f) exit(1); | |
10203 | fprintf(f, "%d\n", sizeof(short)); | |
10204 | exit(0); | |
10205 | } | |
10206 | EOF | |
6969f178 | 10207 | if { (eval echo configure:10208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10208 | then |
10209 | ac_cv_sizeof_short=`cat conftestval` | |
247f5006 | 10210 | else |
a0b9e27f MB |
10211 | echo "configure: failed program was:" >&5 |
10212 | cat conftest.$ac_ext >&5 | |
10213 | rm -fr conftest* | |
10214 | ac_cv_sizeof_short=0 | |
247f5006 | 10215 | fi |
a0b9e27f | 10216 | rm -fr conftest* |
247f5006 VZ |
10217 | fi |
10218 | ||
247f5006 | 10219 | fi |
a0b9e27f MB |
10220 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10221 | cat >> confdefs.h <<EOF | |
10222 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10223 | EOF | |
247f5006 VZ |
10224 | |
10225 | ||
a0b9e27f | 10226 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
6969f178 | 10227 | echo "configure:10228: checking size of void *" >&5 |
a0b9e27f MB |
10228 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
10229 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10230 | else | |
10231 | if test "$cross_compiling" = yes; then | |
10232 | ac_cv_sizeof_void_p=4 | |
247f5006 | 10233 | else |
a0b9e27f | 10234 | cat > conftest.$ac_ext <<EOF |
6969f178 | 10235 | #line 10236 "configure" |
247f5006 | 10236 | #include "confdefs.h" |
247f5006 VZ |
10237 | #include <stdio.h> |
10238 | #include <sys/types.h> | |
a0b9e27f | 10239 | main() |
247f5006 | 10240 | { |
a0b9e27f MB |
10241 | FILE *f=fopen("conftestval", "w"); |
10242 | if (!f) exit(1); | |
10243 | fprintf(f, "%d\n", sizeof(void *)); | |
10244 | exit(0); | |
5c6fa7d2 | 10245 | } |
a0b9e27f | 10246 | EOF |
6969f178 | 10247 | if { (eval echo configure:10248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10248 | then |
10249 | ac_cv_sizeof_void_p=`cat conftestval` | |
10250 | else | |
10251 | echo "configure: failed program was:" >&5 | |
10252 | cat conftest.$ac_ext >&5 | |
10253 | rm -fr conftest* | |
10254 | ac_cv_sizeof_void_p=0 | |
10255 | fi | |
10256 | rm -fr conftest* | |
10257 | fi | |
8284b0c5 | 10258 | |
247f5006 | 10259 | fi |
a0b9e27f MB |
10260 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
10261 | cat >> confdefs.h <<EOF | |
10262 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
10263 | EOF | |
247f5006 | 10264 | |
247f5006 | 10265 | |
a0b9e27f | 10266 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
6969f178 | 10267 | echo "configure:10268: checking size of int" >&5 |
a0b9e27f MB |
10268 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
10269 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10270 | else |
a0b9e27f MB |
10271 | if test "$cross_compiling" = yes; then |
10272 | ac_cv_sizeof_int=4 | |
10273 | else | |
10274 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 10275 | #line 10276 "configure" |
247f5006 | 10276 | #include "confdefs.h" |
a0b9e27f MB |
10277 | #include <stdio.h> |
10278 | #include <sys/types.h> | |
10279 | main() | |
247f5006 | 10280 | { |
a0b9e27f MB |
10281 | FILE *f=fopen("conftestval", "w"); |
10282 | if (!f) exit(1); | |
10283 | fprintf(f, "%d\n", sizeof(int)); | |
10284 | exit(0); | |
247f5006 | 10285 | } |
a0b9e27f | 10286 | EOF |
6969f178 | 10287 | if { (eval echo configure:10288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10288 | then |
10289 | ac_cv_sizeof_int=`cat conftestval` | |
6f72b082 | 10290 | else |
a0b9e27f MB |
10291 | echo "configure: failed program was:" >&5 |
10292 | cat conftest.$ac_ext >&5 | |
10293 | rm -fr conftest* | |
10294 | ac_cv_sizeof_int=0 | |
21d1c967 | 10295 | fi |
a0b9e27f | 10296 | rm -fr conftest* |
698dcdb6 | 10297 | fi |
4f14bcd8 | 10298 | |
21d1c967 | 10299 | fi |
a0b9e27f MB |
10300 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
10301 | cat >> confdefs.h <<EOF | |
10302 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10303 | EOF | |
4f14bcd8 | 10304 | |
5c6fa7d2 | 10305 | |
a0b9e27f | 10306 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
6969f178 | 10307 | echo "configure:10308: checking size of long" >&5 |
a0b9e27f MB |
10308 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
10309 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10310 | else |
247f5006 | 10311 | if test "$cross_compiling" = yes; then |
a0b9e27f | 10312 | ac_cv_sizeof_long=4 |
247f5006 | 10313 | else |
a0b9e27f | 10314 | cat > conftest.$ac_ext <<EOF |
6969f178 | 10315 | #line 10316 "configure" |
247f5006 | 10316 | #include "confdefs.h" |
a0b9e27f MB |
10317 | #include <stdio.h> |
10318 | #include <sys/types.h> | |
10319 | main() | |
247f5006 | 10320 | { |
a0b9e27f MB |
10321 | FILE *f=fopen("conftestval", "w"); |
10322 | if (!f) exit(1); | |
10323 | fprintf(f, "%d\n", sizeof(long)); | |
10324 | exit(0); | |
247f5006 | 10325 | } |
a0b9e27f | 10326 | EOF |
6969f178 | 10327 | if { (eval echo configure:10328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10328 | then |
10329 | ac_cv_sizeof_long=`cat conftestval` | |
247f5006 | 10330 | else |
a0b9e27f MB |
10331 | echo "configure: failed program was:" >&5 |
10332 | cat conftest.$ac_ext >&5 | |
10333 | rm -fr conftest* | |
10334 | ac_cv_sizeof_long=0 | |
247f5006 | 10335 | fi |
a0b9e27f | 10336 | rm -fr conftest* |
247f5006 | 10337 | fi |
247f5006 | 10338 | |
5c6fa7d2 | 10339 | fi |
a0b9e27f MB |
10340 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
10341 | cat >> confdefs.h <<EOF | |
10342 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10343 | EOF | |
247f5006 | 10344 | |
a0b9e27f MB |
10345 | |
10346 | ||
10347 | case "${host}" in | |
10348 | arm-*-linux* ) | |
10349 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
6969f178 | 10350 | echo "configure:10351: checking size of long long" >&5 |
a0b9e27f MB |
10351 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10352 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10353 | else | |
10354 | if test "$cross_compiling" = yes; then | |
10355 | ac_cv_sizeof_long_long=8 | |
10356 | else | |
10357 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 10358 | #line 10359 "configure" |
247f5006 | 10359 | #include "confdefs.h" |
a0b9e27f MB |
10360 | #include <stdio.h> |
10361 | #include <sys/types.h> | |
10362 | main() | |
247f5006 | 10363 | { |
a0b9e27f MB |
10364 | FILE *f=fopen("conftestval", "w"); |
10365 | if (!f) exit(1); | |
10366 | fprintf(f, "%d\n", sizeof(long long)); | |
10367 | exit(0); | |
247f5006 | 10368 | } |
a0b9e27f | 10369 | EOF |
6969f178 | 10370 | if { (eval echo configure:10371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10371 | then |
10372 | ac_cv_sizeof_long_long=`cat conftestval` | |
7b4a847f | 10373 | else |
a0b9e27f MB |
10374 | echo "configure: failed program was:" >&5 |
10375 | cat conftest.$ac_ext >&5 | |
10376 | rm -fr conftest* | |
10377 | ac_cv_sizeof_long_long=0 | |
5c6fa7d2 | 10378 | fi |
a0b9e27f | 10379 | rm -fr conftest* |
5c6fa7d2 | 10380 | fi |
8284b0c5 | 10381 | |
a0b9e27f MB |
10382 | fi |
10383 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10384 | cat >> confdefs.h <<EOF | |
10385 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10386 | EOF | |
10387 | ||
10388 | ||
10389 | ;; | |
10390 | * ) | |
10391 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
6969f178 | 10392 | echo "configure:10393: checking size of long long" >&5 |
a0b9e27f MB |
10393 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10394 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 MB |
10395 | else |
10396 | if test "$cross_compiling" = yes; then | |
a0b9e27f | 10397 | ac_cv_sizeof_long_long=0 |
8284b0c5 | 10398 | else |
a0b9e27f | 10399 | cat > conftest.$ac_ext <<EOF |
6969f178 | 10400 | #line 10401 "configure" |
8284b0c5 MB |
10401 | #include "confdefs.h" |
10402 | #include <stdio.h> | |
a0b9e27f MB |
10403 | #include <sys/types.h> |
10404 | main() | |
8284b0c5 | 10405 | { |
a0b9e27f MB |
10406 | FILE *f=fopen("conftestval", "w"); |
10407 | if (!f) exit(1); | |
10408 | fprintf(f, "%d\n", sizeof(long long)); | |
10409 | exit(0); | |
8284b0c5 | 10410 | } |
a0b9e27f | 10411 | EOF |
6969f178 | 10412 | if { (eval echo configure:10413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10413 | then |
10414 | ac_cv_sizeof_long_long=`cat conftestval` | |
5c6fa7d2 | 10415 | else |
a0b9e27f MB |
10416 | echo "configure: failed program was:" >&5 |
10417 | cat conftest.$ac_ext >&5 | |
10418 | rm -fr conftest* | |
5c6fa7d2 | 10419 | ac_cv_sizeof_long_long=0 |
52127426 | 10420 | fi |
a0b9e27f MB |
10421 | rm -fr conftest* |
10422 | fi | |
10423 | ||
7b4a847f | 10424 | fi |
a0b9e27f MB |
10425 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10426 | cat >> confdefs.h <<EOF | |
21d1c967 | 10427 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
a0b9e27f | 10428 | EOF |
9e691f46 | 10429 | |
8284b0c5 | 10430 | |
21d1c967 GD |
10431 | esac |
10432 | ||
a0b9e27f | 10433 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
6969f178 | 10434 | echo "configure:10435: checking size of wchar_t" >&5 |
a0b9e27f MB |
10435 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
10436 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 10437 | else |
a0b9e27f | 10438 | |
21d1c967 GD |
10439 | if test "$cross_compiling" = yes; then |
10440 | wx_cv_sizeof_wchar_t=4 | |
a0b9e27f | 10441 | |
6f72b082 | 10442 | else |
a0b9e27f | 10443 | cat > conftest.$ac_ext <<EOF |
6969f178 | 10444 | #line 10445 "configure" |
6f72b082 | 10445 | #include "confdefs.h" |
21d1c967 GD |
10446 | |
10447 | #ifdef HAVE_WCHAR_H | |
10448 | # ifdef __CYGWIN__ | |
10449 | # include <stddef.h> | |
10450 | # endif | |
10451 | # include <wchar.h> | |
10452 | #endif | |
10453 | #ifdef HAVE_STDLIB_H | |
10454 | # include <stdlib.h> | |
10455 | #endif | |
10456 | #include <stdio.h> | |
10457 | int main() | |
10458 | { | |
10459 | FILE *f=fopen("conftestval", "w"); | |
10460 | if (!f) exit(1); | |
10461 | fprintf(f, "%i", sizeof(wchar_t)); | |
10462 | exit(0); | |
10463 | } | |
a0b9e27f MB |
10464 | |
10465 | EOF | |
6969f178 | 10466 | if { (eval echo configure:10467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10467 | then |
21d1c967 | 10468 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 10469 | else |
a0b9e27f MB |
10470 | echo "configure: failed program was:" >&5 |
10471 | cat conftest.$ac_ext >&5 | |
10472 | rm -fr conftest* | |
10473 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 10474 | fi |
a0b9e27f | 10475 | rm -fr conftest* |
6f72b082 | 10476 | fi |
6f72b082 | 10477 | |
a0b9e27f | 10478 | |
3f345b47 VZ |
10479 | fi |
10480 | ||
a0b9e27f MB |
10481 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
10482 | ||
10483 | cat >> confdefs.h <<EOF | |
21d1c967 | 10484 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
a0b9e27f | 10485 | EOF |
90dd450c | 10486 | |
8284b0c5 | 10487 | |
21d1c967 GD |
10488 | # Check whether --enable-largefile or --disable-largefile was given. |
10489 | if test "${enable_largefile+set}" = set; then | |
10490 | enableval="$enable_largefile" | |
a0b9e27f MB |
10491 | : |
10492 | fi | |
3f345b47 | 10493 | |
21d1c967 GD |
10494 | if test "$enable_largefile" != no; then |
10495 | wx_largefile=no | |
a0b9e27f MB |
10496 | |
10497 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
6969f178 | 10498 | echo "configure:10499: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
a0b9e27f MB |
10499 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
10500 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10501 | else | |
10502 | ||
10503 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 10504 | #line 10505 "configure" |
90dd450c | 10505 | #include "confdefs.h" |
21d1c967 GD |
10506 | #define _FILE_OFFSET_BITS 64 |
10507 | #include <sys/types.h> | |
a0b9e27f | 10508 | int main() { |
21d1c967 GD |
10509 | typedef struct { |
10510 | unsigned int field: sizeof(off_t) == 8; | |
10511 | } wxlf; | |
10512 | ||
a0b9e27f MB |
10513 | ; return 0; } |
10514 | EOF | |
6969f178 | 10515 | if { (eval echo configure:10516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10516 | rm -rf conftest* |
21d1c967 | 10517 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 10518 | else |
a0b9e27f MB |
10519 | echo "configure: failed program was:" >&5 |
10520 | cat conftest.$ac_ext >&5 | |
10521 | rm -rf conftest* | |
10522 | ac_cv_sys_file_offset_bits=no | |
5c6fa7d2 | 10523 | fi |
a0b9e27f MB |
10524 | rm -f conftest* |
10525 | ||
10526 | ||
247f5006 | 10527 | fi |
a0b9e27f MB |
10528 | |
10529 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
21d1c967 GD |
10530 | |
10531 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
10532 | wx_largefile=yes | |
a0b9e27f | 10533 | cat >> confdefs.h <<EOF |
21d1c967 | 10534 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
a0b9e27f | 10535 | EOF |
21d1c967 GD |
10536 | |
10537 | fi | |
10538 | ||
10539 | if test "x$wx_largefile" != "xyes"; then | |
a0b9e27f MB |
10540 | |
10541 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
6969f178 | 10542 | echo "configure:10543: checking for _LARGE_FILES value needed for large files" >&5 |
a0b9e27f MB |
10543 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
10544 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10545 | else | |
10546 | ||
10547 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 10548 | #line 10549 "configure" |
f6bcfd97 | 10549 | #include "confdefs.h" |
21d1c967 GD |
10550 | #define _LARGE_FILES 1 |
10551 | #include <sys/types.h> | |
a0b9e27f | 10552 | int main() { |
21d1c967 GD |
10553 | typedef struct { |
10554 | unsigned int field: sizeof(off_t) == 8; | |
10555 | } wxlf; | |
10556 | ||
a0b9e27f MB |
10557 | ; return 0; } |
10558 | EOF | |
6969f178 | 10559 | if { (eval echo configure:10560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10560 | rm -rf conftest* |
21d1c967 | 10561 | ac_cv_sys_large_files=1 |
f6bcfd97 | 10562 | else |
a0b9e27f MB |
10563 | echo "configure: failed program was:" >&5 |
10564 | cat conftest.$ac_ext >&5 | |
10565 | rm -rf conftest* | |
10566 | ac_cv_sys_large_files=no | |
5c6fa7d2 | 10567 | fi |
a0b9e27f MB |
10568 | rm -f conftest* |
10569 | ||
10570 | ||
247f5006 | 10571 | fi |
a0b9e27f MB |
10572 | |
10573 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
3f345b47 | 10574 | |
21d1c967 GD |
10575 | if test "$ac_cv_sys_large_files" != no; then |
10576 | wx_largefile=yes | |
a0b9e27f | 10577 | cat >> confdefs.h <<EOF |
21d1c967 | 10578 | #define _LARGE_FILES $ac_cv_sys_large_files |
a0b9e27f | 10579 | EOF |
90dd450c | 10580 | |
90dd450c VZ |
10581 | fi |
10582 | ||
90dd450c | 10583 | fi |
90dd450c | 10584 | |
a0b9e27f | 10585 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
6969f178 | 10586 | echo "configure:10587: checking if large file support is available" >&5 |
21d1c967 | 10587 | if test "x$wx_largefile" = "xyes"; then |
a0b9e27f | 10588 | cat >> confdefs.h <<\EOF |
21d1c967 | 10589 | #define HAVE_LARGEFILE_SUPPORT 1 |
a0b9e27f | 10590 | EOF |
90dd450c | 10591 | |
90dd450c | 10592 | fi |
a0b9e27f | 10593 | echo "$ac_t""$wx_largefile" 1>&6 |
21d1c967 | 10594 | fi |
90dd450c | 10595 | |
8284b0c5 | 10596 | |
a0b9e27f | 10597 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
6969f178 | 10598 | echo "configure:10599: checking whether byte ordering is bigendian" >&5 |
a0b9e27f MB |
10599 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
10600 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 10601 | else |
21d1c967 GD |
10602 | ac_cv_c_bigendian=unknown |
10603 | # See if sys/param.h defines the BYTE_ORDER macro. | |
a0b9e27f | 10604 | cat > conftest.$ac_ext <<EOF |
6969f178 | 10605 | #line 10606 "configure" |
90dd450c | 10606 | #include "confdefs.h" |
21d1c967 GD |
10607 | #include <sys/types.h> |
10608 | #include <sys/param.h> | |
a0b9e27f | 10609 | int main() { |
21d1c967 GD |
10610 | |
10611 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10612 | bogus endian macros | |
10613 | #endif | |
a0b9e27f MB |
10614 | ; return 0; } |
10615 | EOF | |
6969f178 | 10616 | if { (eval echo configure:10617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10617 | rm -rf conftest* |
21d1c967 | 10618 | # It does; now see whether it defined to BIG_ENDIAN or not. |
a0b9e27f | 10619 | cat > conftest.$ac_ext <<EOF |
6969f178 | 10620 | #line 10621 "configure" |
90dd450c | 10621 | #include "confdefs.h" |
21d1c967 GD |
10622 | #include <sys/types.h> |
10623 | #include <sys/param.h> | |
a0b9e27f | 10624 | int main() { |
21d1c967 GD |
10625 | |
10626 | #if BYTE_ORDER != BIG_ENDIAN | |
10627 | not big endian | |
10628 | #endif | |
a0b9e27f MB |
10629 | ; return 0; } |
10630 | EOF | |
6969f178 | 10631 | if { (eval echo configure:10632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10632 | rm -rf conftest* |
21d1c967 | 10633 | ac_cv_c_bigendian=yes |
3f345b47 | 10634 | else |
a0b9e27f MB |
10635 | echo "configure: failed program was:" >&5 |
10636 | cat conftest.$ac_ext >&5 | |
10637 | rm -rf conftest* | |
10638 | ac_cv_c_bigendian=no | |
3f345b47 | 10639 | fi |
a0b9e27f | 10640 | rm -f conftest* |
3f345b47 | 10641 | else |
a0b9e27f MB |
10642 | echo "configure: failed program was:" >&5 |
10643 | cat conftest.$ac_ext >&5 | |
3f345b47 | 10644 | fi |
a0b9e27f | 10645 | rm -f conftest* |
21d1c967 GD |
10646 | if test $ac_cv_c_bigendian = unknown; then |
10647 | if test "$cross_compiling" = yes; then | |
10648 | ac_cv_c_bigendian=unknown | |
10f2d63a | 10649 | else |
a0b9e27f | 10650 | cat > conftest.$ac_ext <<EOF |
6969f178 | 10651 | #line 10652 "configure" |
90dd450c | 10652 | #include "confdefs.h" |
21d1c967 GD |
10653 | main () { |
10654 | /* Are we little or big endian? From Harbison&Steele. */ | |
10655 | union | |
10656 | { | |
10657 | long l; | |
10658 | char c[sizeof (long)]; | |
10659 | } u; | |
10660 | u.l = 1; | |
10661 | exit (u.c[sizeof (long) - 1] == 1); | |
10662 | } | |
a0b9e27f | 10663 | EOF |
6969f178 | 10664 | if { (eval echo configure:10665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10665 | then |
21d1c967 | 10666 | ac_cv_c_bigendian=no |
3f345b47 | 10667 | else |
a0b9e27f MB |
10668 | echo "configure: failed program was:" >&5 |
10669 | cat conftest.$ac_ext >&5 | |
10670 | rm -fr conftest* | |
10671 | ac_cv_c_bigendian=yes | |
247f5006 | 10672 | fi |
a0b9e27f | 10673 | rm -fr conftest* |
247f5006 | 10674 | fi |
a0b9e27f | 10675 | |
3f345b47 | 10676 | fi |
8168de4c | 10677 | fi |
a0b9e27f MB |
10678 | |
10679 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
247f5006 | 10680 | if test $ac_cv_c_bigendian = unknown; then |
a0b9e27f | 10681 | 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 |
10682 | fi |
10683 | if test $ac_cv_c_bigendian = yes; then | |
a0b9e27f | 10684 | cat >> confdefs.h <<\EOF |
247f5006 | 10685 | #define WORDS_BIGENDIAN 1 |
a0b9e27f | 10686 | EOF |
247f5006 VZ |
10687 | |
10688 | fi | |
10689 | ||
10690 | ||
a0b9e27f | 10691 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
6969f178 | 10692 | echo "configure:10693: checking how to run the C++ preprocessor" >&5 |
247f5006 | 10693 | if test -z "$CXXCPP"; then |
a0b9e27f MB |
10694 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
10695 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10696 | else |
a0b9e27f MB |
10697 | ac_ext=C |
10698 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10699 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10700 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10701 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10702 | cross_compiling=$ac_cv_prog_cxx_cross | |
10703 | CXXCPP="${CXX-g++} -E" | |
10704 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 10705 | #line 10706 "configure" |
5c6fa7d2 | 10706 | #include "confdefs.h" |
a0b9e27f MB |
10707 | #include <stdlib.h> |
10708 | EOF | |
10709 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 10710 | { (eval echo configure:10711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10711 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10712 | if test -z "$ac_err"; then | |
21d1c967 | 10713 | : |
698dcdb6 | 10714 | else |
a0b9e27f MB |
10715 | echo "$ac_err" >&5 |
10716 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 10717 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10718 | rm -rf conftest* |
10719 | CXXCPP=/lib/cpp | |
247f5006 | 10720 | fi |
a0b9e27f MB |
10721 | rm -f conftest* |
10722 | ac_cv_prog_CXXCPP="$CXXCPP" | |
10723 | ac_ext=C | |
10724 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10725 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10726 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10727 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10728 | cross_compiling=$ac_cv_prog_cxx_cross | |
328a083c | 10729 | fi |
90dd450c | 10730 | fi |
a0b9e27f MB |
10731 | CXXCPP="$ac_cv_prog_CXXCPP" |
10732 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e6feb95 | 10733 | |
1725144d | 10734 | |
21d1c967 | 10735 | if test "$cross_compiling" = "yes"; then |
a0b9e27f | 10736 | cat >> confdefs.h <<\EOF |
21d1c967 | 10737 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 10738 | EOF |
ab9b9eab | 10739 | |
21d1c967 | 10740 | else |
a0b9e27f MB |
10741 | |
10742 | ac_ext=C | |
10743 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 10744 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
10745 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10746 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10747 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 10748 | |
247f5006 | 10749 | |
a0b9e27f | 10750 | for ac_hdr in iostream |
21d1c967 | 10751 | do |
a0b9e27f MB |
10752 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10753 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6969f178 | 10754 | echo "configure:10755: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10755 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10756 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10757 | else | |
10758 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 10759 | #line 10760 "configure" |
ab9b9eab | 10760 | #include "confdefs.h" |
a0b9e27f MB |
10761 | #include <$ac_hdr> |
10762 | EOF | |
10763 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 10764 | { (eval echo configure:10765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10765 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10766 | if test -z "$ac_err"; then | |
10767 | rm -rf conftest* | |
10768 | eval "ac_cv_header_$ac_safe=yes" | |
10769 | else | |
10770 | echo "$ac_err" >&5 | |
10771 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 10772 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10773 | rm -rf conftest* |
10774 | eval "ac_cv_header_$ac_safe=no" | |
ab9b9eab | 10775 | fi |
a0b9e27f | 10776 | rm -f conftest* |
90dd450c | 10777 | fi |
a0b9e27f MB |
10778 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10779 | echo "$ac_t""yes" 1>&6 | |
10780 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10781 | cat >> confdefs.h <<EOF | |
10782 | #define $ac_tr_hdr 1 | |
10783 | EOF | |
10784 | ||
10785 | else | |
10786 | echo "$ac_t""no" 1>&6 | |
90dd450c | 10787 | fi |
21d1c967 | 10788 | done |
10f2d63a | 10789 | |
8284b0c5 | 10790 | |
21d1c967 GD |
10791 | if test "$ac_cv_header_iostream" = "yes" ; then |
10792 | : | |
10793 | else | |
a0b9e27f | 10794 | cat >> confdefs.h <<\EOF |
21d1c967 | 10795 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 10796 | EOF |
788deba1 | 10797 | |
90dd450c | 10798 | fi |
ab9b9eab | 10799 | |
21d1c967 | 10800 | ac_ext=c |
a0b9e27f | 10801 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 10802 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
10803 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10804 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10805 | cross_compiling=$ac_cv_prog_cc_cross | |
ab9b9eab | 10806 | |
21d1c967 | 10807 | fi |
ab9b9eab | 10808 | |
52127426 | 10809 | |
8284b0c5 | 10810 | |
a0b9e27f | 10811 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
6969f178 | 10812 | echo "configure:10813: checking if C++ compiler supports bool" >&5 |
a0b9e27f MB |
10813 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
10814 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 10815 | else |
a0b9e27f MB |
10816 | |
10817 | ||
10818 | ac_ext=C | |
10819 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 10820 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
10821 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10822 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10823 | cross_compiling=$ac_cv_prog_cxx_cross | |
21d1c967 | 10824 | |
8284b0c5 | 10825 | |
a0b9e27f | 10826 | cat > conftest.$ac_ext <<EOF |
6969f178 | 10827 | #line 10828 "configure" |
ab9b9eab | 10828 | #include "confdefs.h" |
21d1c967 | 10829 | |
a0b9e27f MB |
10830 | |
10831 | int main() { | |
21d1c967 GD |
10832 | |
10833 | bool b = true; | |
10834 | ||
10835 | return 0; | |
a0b9e27f MB |
10836 | |
10837 | ; return 0; } | |
10838 | EOF | |
6969f178 | 10839 | if { (eval echo configure:10840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10840 | rm -rf conftest* |
10841 | ||
21d1c967 | 10842 | wx_cv_cpp_bool=yes |
a0b9e27f | 10843 | |
698dcdb6 | 10844 | else |
a0b9e27f MB |
10845 | echo "configure: failed program was:" >&5 |
10846 | cat conftest.$ac_ext >&5 | |
10847 | rm -rf conftest* | |
10848 | ||
21d1c967 | 10849 | wx_cv_cpp_bool=no |
a0b9e27f MB |
10850 | |
10851 | ||
698dcdb6 | 10852 | fi |
a0b9e27f | 10853 | rm -f conftest* |
21d1c967 GD |
10854 | |
10855 | ac_ext=c | |
a0b9e27f | 10856 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 10857 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
10858 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10859 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10860 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 10861 | |
a0b9e27f | 10862 | |
247f5006 | 10863 | fi |
a0b9e27f MB |
10864 | |
10865 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
21d1c967 GD |
10866 | |
10867 | if test "$wx_cv_cpp_bool" = "yes"; then | |
a0b9e27f | 10868 | cat >> confdefs.h <<\EOF |
21d1c967 | 10869 | #define HAVE_BOOL 1 |
a0b9e27f | 10870 | EOF |
ab9b9eab | 10871 | |
21d1c967 GD |
10872 | fi |
10873 | ||
52127426 | 10874 | |
8284b0c5 | 10875 | |
a0b9e27f | 10876 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 |
6969f178 | 10877 | echo "configure:10878: checking if C++ compiler supports the explicit keyword" >&5 |
a0b9e27f MB |
10878 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then |
10879 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 10880 | else |
a0b9e27f MB |
10881 | |
10882 | ||
10883 | ac_ext=C | |
10884 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 10885 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
10886 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10887 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10888 | cross_compiling=$ac_cv_prog_cxx_cross | |
986ecc86 | 10889 | |
8284b0c5 | 10890 | |
a0b9e27f | 10891 | cat > conftest.$ac_ext <<EOF |
6969f178 | 10892 | #line 10893 "configure" |
986ecc86 VZ |
10893 | #include "confdefs.h" |
10894 | ||
10895 | class Foo { public: explicit Foo(int) {} }; | |
a0b9e27f MB |
10896 | |
10897 | int main() { | |
986ecc86 VZ |
10898 | |
10899 | return 0; | |
a0b9e27f MB |
10900 | |
10901 | ; return 0; } | |
10902 | EOF | |
6969f178 | 10903 | if { (eval echo configure:10904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10904 | rm -rf conftest* |
10905 | ||
10906 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 10907 | #line 10908 "configure" |
986ecc86 VZ |
10908 | #include "confdefs.h" |
10909 | ||
10910 | class Foo { public: explicit Foo(int) {} }; | |
10911 | static void TakeFoo(const Foo& foo) { } | |
a0b9e27f MB |
10912 | |
10913 | int main() { | |
986ecc86 VZ |
10914 | |
10915 | TakeFoo(17); | |
10916 | return 0; | |
a0b9e27f MB |
10917 | |
10918 | ; return 0; } | |
10919 | EOF | |
6969f178 | 10920 | if { (eval echo configure:10921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10921 | rm -rf conftest* |
986ecc86 VZ |
10922 | wx_cv_explicit=no |
10923 | else | |
a0b9e27f MB |
10924 | echo "configure: failed program was:" >&5 |
10925 | cat conftest.$ac_ext >&5 | |
10926 | rm -rf conftest* | |
10927 | wx_cv_explicit=yes | |
10928 | ||
986ecc86 | 10929 | fi |
a0b9e27f MB |
10930 | rm -f conftest* |
10931 | ||
986ecc86 | 10932 | else |
a0b9e27f MB |
10933 | echo "configure: failed program was:" >&5 |
10934 | cat conftest.$ac_ext >&5 | |
10935 | rm -rf conftest* | |
10936 | wx_cv_explicit=no | |
10937 | ||
986ecc86 | 10938 | fi |
a0b9e27f | 10939 | rm -f conftest* |
986ecc86 VZ |
10940 | |
10941 | ac_ext=c | |
a0b9e27f | 10942 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
986ecc86 | 10943 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
10944 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10945 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10946 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 10947 | |
a0b9e27f | 10948 | |
247f5006 | 10949 | fi |
a0b9e27f MB |
10950 | |
10951 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
986ecc86 VZ |
10952 | |
10953 | if test "$wx_cv_explicit" = "yes"; then | |
a0b9e27f | 10954 | cat >> confdefs.h <<\EOF |
986ecc86 | 10955 | #define HAVE_EXPLICIT 1 |
a0b9e27f | 10956 | EOF |
986ecc86 VZ |
10957 | |
10958 | fi | |
10959 | ||
8284b0c5 MB |
10960 | |
10961 | ||
21d1c967 GD |
10962 | SEARCH_INCLUDE="\ |
10963 | /usr/local/include \ | |
10964 | \ | |
10965 | /usr/Motif-1.2/include \ | |
10966 | /usr/Motif-2.1/include \ | |
10967 | \ | |
10968 | /usr/include/Motif1.2 \ | |
10969 | /opt/xpm/include/X11 \ | |
10970 | /opt/GBxpm/include/ \ | |
10971 | /opt/GBxpm/X11/include/ \ | |
10972 | \ | |
10973 | /usr/Motif1.2/include \ | |
10974 | /usr/dt/include \ | |
10975 | /usr/openwin/include \ | |
10976 | \ | |
10977 | /usr/include/Xm \ | |
10978 | \ | |
10979 | /usr/X11R6/include \ | |
10980 | /usr/X11R6.4/include \ | |
10981 | /usr/X11R5/include \ | |
10982 | /usr/X11R4/include \ | |
10983 | \ | |
10984 | /usr/include/X11R6 \ | |
10985 | /usr/include/X11R5 \ | |
10986 | /usr/include/X11R4 \ | |
10987 | \ | |
10988 | /usr/local/X11R6/include \ | |
10989 | /usr/local/X11R5/include \ | |
10990 | /usr/local/X11R4/include \ | |
10991 | \ | |
10992 | /usr/local/include/X11R6 \ | |
10993 | /usr/local/include/X11R5 \ | |
10994 | /usr/local/include/X11R4 \ | |
10995 | \ | |
10996 | /usr/X11/include \ | |
10997 | /usr/include/X11 \ | |
10998 | /usr/local/X11/include \ | |
10999 | /usr/local/include/X11 \ | |
11000 | \ | |
11001 | /usr/X386/include \ | |
11002 | /usr/x386/include \ | |
11003 | /usr/XFree86/include/X11 \ | |
11004 | \ | |
11005 | X:/XFree86/include \ | |
11006 | X:/XFree86/include/X11 \ | |
11007 | \ | |
11008 | /usr/include/gtk \ | |
11009 | /usr/local/include/gtk \ | |
11010 | /usr/include/glib \ | |
11011 | /usr/local/include/glib \ | |
11012 | \ | |
11013 | /usr/include/qt \ | |
11014 | /usr/local/include/qt \ | |
11015 | \ | |
11016 | /usr/include/windows \ | |
11017 | /usr/include/wine \ | |
11018 | /usr/local/include/wine \ | |
11019 | \ | |
11020 | /usr/unsupported/include \ | |
11021 | /usr/athena/include \ | |
11022 | /usr/local/x11r5/include \ | |
11023 | /usr/lpp/Xamples/include \ | |
11024 | \ | |
11025 | /usr/openwin/share/include \ | |
11026 | \ | |
11027 | /usr/include" | |
11028 | ||
11029 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
11030 | ||
8284b0c5 | 11031 | |
a0b9e27f | 11032 | cat > confcache <<\EOF |
21d1c967 GD |
11033 | # This file is a shell script that caches the results of configure |
11034 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
11035 | # scripts and configure runs. It is not useful on other systems. |
11036 | # If it contains results you don't want to keep, you may remove or edit it. | |
21d1c967 | 11037 | # |
a0b9e27f MB |
11038 | # By default, configure uses ./config.cache as the cache file, |
11039 | # creating it if it does not exist already. You can give configure | |
11040 | # the --cache-file=FILE option to use a different cache file; that is | |
11041 | # what configure does when it calls configure scripts in | |
11042 | # subdirectories, so they share the cache. | |
11043 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
11044 | # config.status only pays attention to the cache file if you give it the | |
11045 | # --recheck option to rerun configure. | |
21d1c967 | 11046 | # |
a0b9e27f | 11047 | EOF |
21d1c967 GD |
11048 | # The following way of writing the cache mishandles newlines in values, |
11049 | # but we know of no workaround that is simple, portable, and efficient. | |
11050 | # So, don't put newlines in cache variables' values. | |
11051 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11052 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
11053 | (set) 2>&1 | |
11054 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11055 | *ac_space=\ *) | |
11056 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11057 | # turns \\\\ into \\, and sed turns \\ into \). | |
11058 | sed -n \ | |
11059 | -e "s/'/'\\\\''/g" \ | |
11060 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11061 | ;; | |
11062 | *) | |
11063 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11064 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11065 | ;; | |
11066 | esac >> confcache | |
11067 | if cmp -s $cache_file confcache; then | |
11068 | : | |
11069 | else | |
21d1c967 | 11070 | if test -w $cache_file; then |
a0b9e27f MB |
11071 | echo "updating cache $cache_file" |
11072 | cat confcache > $cache_file | |
21d1c967 GD |
11073 | else |
11074 | echo "not updating unwritable cache $cache_file" | |
11075 | fi | |
ab9b9eab | 11076 | fi |
21d1c967 | 11077 | rm -f confcache |
ab9b9eab | 11078 | |
247f5006 | 11079 | |
a0b9e27f MB |
11080 | if test "$USE_LINUX" = 1; then |
11081 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
6969f178 | 11082 | echo "configure:11083: checking for glibc 2.1 or later" >&5 |
a0b9e27f MB |
11083 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then |
11084 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11085 | else | |
11086 | ||
11087 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 11088 | #line 11089 "configure" |
ab9b9eab | 11089 | #include "confdefs.h" |
21d1c967 | 11090 | #include <features.h> |
a0b9e27f | 11091 | int main() { |
ab9b9eab | 11092 | |
21d1c967 GD |
11093 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
11094 | #error not glibc2.1 | |
11095 | #endif | |
a0b9e27f MB |
11096 | |
11097 | ; return 0; } | |
11098 | EOF | |
6969f178 | 11099 | if { (eval echo configure:11100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11100 | rm -rf conftest* |
11101 | ||
21d1c967 | 11102 | wx_cv_lib_glibc21=yes |
a0b9e27f | 11103 | |
698dcdb6 | 11104 | else |
a0b9e27f MB |
11105 | echo "configure: failed program was:" >&5 |
11106 | cat conftest.$ac_ext >&5 | |
11107 | rm -rf conftest* | |
11108 | ||
21d1c967 | 11109 | wx_cv_lib_glibc21=no |
a0b9e27f MB |
11110 | |
11111 | ||
5c6fa7d2 | 11112 | fi |
a0b9e27f MB |
11113 | rm -f conftest* |
11114 | ||
247f5006 | 11115 | fi |
a0b9e27f MB |
11116 | |
11117 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 | |
21d1c967 | 11118 | if test "$wx_cv_lib_glibc21" = "yes"; then |
a0b9e27f | 11119 | cat >> confdefs.h <<\EOF |
21d1c967 | 11120 | #define wxHAVE_GLIBC2 1 |
a0b9e27f | 11121 | EOF |
1e487827 | 11122 | |
90dd450c | 11123 | fi |
ab9b9eab VZ |
11124 | fi |
11125 | ||
5c0a20c3 VZ |
11126 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
11127 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 11128 | cat >> confdefs.h <<\EOF |
5c0a20c3 | 11129 | #define _GNU_SOURCE 1 |
a0b9e27f | 11130 | EOF |
5c0a20c3 VZ |
11131 | |
11132 | fi | |
11133 | fi | |
11134 | ||
8284b0c5 MB |
11135 | |
11136 | ||
21d1c967 GD |
11137 | REGEX_INCLUDE= |
11138 | if test "$wxUSE_REGEX" != "no"; then | |
a0b9e27f | 11139 | cat >> confdefs.h <<\EOF |
21d1c967 | 11140 | #define wxUSE_REGEX 1 |
a0b9e27f | 11141 | EOF |
698dcdb6 | 11142 | |
8284b0c5 | 11143 | |
21d1c967 | 11144 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
a0b9e27f MB |
11145 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` |
11146 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
6969f178 | 11147 | echo "configure:11148: checking for regex.h" >&5 |
a0b9e27f MB |
11148 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11149 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11150 | else | |
11151 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 11152 | #line 11153 "configure" |
247f5006 VZ |
11153 | #include "confdefs.h" |
11154 | #include <regex.h> | |
a0b9e27f MB |
11155 | EOF |
11156 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 11157 | { (eval echo configure:11158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11158 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11159 | if test -z "$ac_err"; then | |
11160 | rm -rf conftest* | |
11161 | eval "ac_cv_header_$ac_safe=yes" | |
11162 | else | |
11163 | echo "$ac_err" >&5 | |
11164 | echo "configure: failed program was:" >&5 | |
21d1c967 | 11165 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11166 | rm -rf conftest* |
11167 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 11168 | fi |
a0b9e27f | 11169 | rm -f conftest* |
698dcdb6 | 11170 | fi |
a0b9e27f MB |
11171 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11172 | echo "$ac_t""yes" 1>&6 | |
11173 | for ac_func in regcomp | |
21d1c967 | 11174 | do |
a0b9e27f | 11175 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 11176 | echo "configure:11177: checking for $ac_func" >&5 |
a0b9e27f MB |
11177 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11178 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11179 | else |
a0b9e27f | 11180 | cat > conftest.$ac_ext <<EOF |
6969f178 | 11181 | #line 11182 "configure" |
a0b9e27f MB |
11182 | #include "confdefs.h" |
11183 | /* System header to define __stub macros and hopefully few prototypes, | |
11184 | which can conflict with char $ac_func(); below. */ | |
21d1c967 GD |
11185 | #include <assert.h> |
11186 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11187 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11188 | builtin and then its argument prototype would still apply. */ |
11189 | char $ac_func(); | |
11190 | ||
11191 | int main() { | |
11192 | ||
21d1c967 GD |
11193 | /* The GNU C library defines this for functions which it implements |
11194 | to always fail with ENOSYS. Some functions are actually named | |
11195 | something starting with __ and the normal name is an alias. */ | |
11196 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11197 | choke me | |
11198 | #else | |
a0b9e27f | 11199 | $ac_func(); |
21d1c967 | 11200 | #endif |
90dd450c | 11201 | |
a0b9e27f MB |
11202 | ; return 0; } |
11203 | EOF | |
6969f178 | 11204 | if { (eval echo configure:11205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11205 | rm -rf conftest* |
11206 | eval "ac_cv_func_$ac_func=yes" | |
11207 | else | |
11208 | echo "configure: failed program was:" >&5 | |
11209 | cat conftest.$ac_ext >&5 | |
11210 | rm -rf conftest* | |
11211 | eval "ac_cv_func_$ac_func=no" | |
11212 | fi | |
11213 | rm -f conftest* | |
11214 | fi | |
5c6fa7d2 | 11215 | |
a0b9e27f MB |
11216 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11217 | echo "$ac_t""yes" 1>&6 | |
11218 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11219 | cat >> confdefs.h <<EOF | |
11220 | #define $ac_tr_func 1 | |
11221 | EOF | |
11222 | ||
11223 | else | |
11224 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 11225 | fi |
21d1c967 GD |
11226 | done |
11227 | ||
a0b9e27f MB |
11228 | else |
11229 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11230 | fi |
11231 | ||
8284b0c5 | 11232 | |
21d1c967 GD |
11233 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
11234 | if test "$wxUSE_REGEX" = "sys" ; then | |
a0b9e27f | 11235 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11236 | else |
a0b9e27f | 11237 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11238 | wxUSE_REGEX=builtin |
11239 | fi | |
11240 | else | |
11241 | wxUSE_REGEX=sys | |
11242 | fi | |
ab9b9eab | 11243 | fi |
90dd450c | 11244 | |
21d1c967 GD |
11245 | if test "$wxUSE_REGEX" = "builtin" ; then |
11246 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 11247 | fi |
21d1c967 | 11248 | fi |
90dd450c | 11249 | |
8284b0c5 | 11250 | |
21d1c967 GD |
11251 | ZLIB_INCLUDE= |
11252 | ZLIB_LINK= | |
11253 | if test "$wxUSE_ZLIB" != "no" ; then | |
a0b9e27f | 11254 | cat >> confdefs.h <<\EOF |
21d1c967 | 11255 | #define wxUSE_ZLIB 1 |
a0b9e27f | 11256 | EOF |
21d1c967 | 11257 | |
8284b0c5 | 11258 | |
21d1c967 | 11259 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
a0b9e27f MB |
11260 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
11261 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
6969f178 | 11262 | echo "configure:11263: checking for zlib.h" >&5 |
a0b9e27f MB |
11263 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11264 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11265 | else | |
11266 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 11267 | #line 11268 "configure" |
ab9b9eab | 11268 | #include "confdefs.h" |
21d1c967 | 11269 | #include <zlib.h> |
a0b9e27f MB |
11270 | EOF |
11271 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 11272 | { (eval echo configure:11273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11273 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11274 | if test -z "$ac_err"; then | |
11275 | rm -rf conftest* | |
11276 | eval "ac_cv_header_$ac_safe=yes" | |
11277 | else | |
11278 | echo "$ac_err" >&5 | |
11279 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 11280 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11281 | rm -rf conftest* |
11282 | eval "ac_cv_header_$ac_safe=no" | |
698dcdb6 | 11283 | fi |
a0b9e27f | 11284 | rm -f conftest* |
ab9b9eab | 11285 | fi |
a0b9e27f MB |
11286 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11287 | echo "$ac_t""yes" 1>&6 | |
11288 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
6969f178 | 11289 | echo "configure:11290: checking for deflate in -lz" >&5 |
a0b9e27f MB |
11290 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
11291 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11292 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11293 | else |
a0b9e27f | 11294 | ac_save_LIBS="$LIBS" |
21d1c967 | 11295 | LIBS="-lz $LIBS" |
a0b9e27f | 11296 | cat > conftest.$ac_ext <<EOF |
6969f178 | 11297 | #line 11298 "configure" |
ab9b9eab | 11298 | #include "confdefs.h" |
21d1c967 GD |
11299 | /* Override any gcc2 internal prototype to avoid an error. */ |
11300 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11301 | builtin and then its argument prototype would still apply. */ |
11302 | char deflate(); | |
11303 | ||
11304 | int main() { | |
11305 | deflate() | |
11306 | ; return 0; } | |
11307 | EOF | |
6969f178 | 11308 | if { (eval echo configure:11309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11309 | rm -rf conftest* |
11310 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11311 | else | |
11312 | echo "configure: failed program was:" >&5 | |
11313 | cat conftest.$ac_ext >&5 | |
11314 | rm -rf conftest* | |
11315 | eval "ac_cv_lib_$ac_lib_var=no" | |
90dd450c | 11316 | fi |
a0b9e27f MB |
11317 | rm -f conftest* |
11318 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 11319 | |
698dcdb6 | 11320 | fi |
a0b9e27f MB |
11321 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11322 | echo "$ac_t""yes" 1>&6 | |
11323 | ZLIB_LINK=" -lz" | |
11324 | else | |
11325 | echo "$ac_t""no" 1>&6 | |
11326 | fi | |
698dcdb6 | 11327 | |
a0b9e27f MB |
11328 | else |
11329 | echo "$ac_t""no" 1>&6 | |
11330 | fi | |
8284b0c5 | 11331 | |
247f5006 | 11332 | |
21d1c967 GD |
11333 | if test "x$ZLIB_LINK" = "x" ; then |
11334 | if test "$wxUSE_ZLIB" = "sys" ; then | |
a0b9e27f | 11335 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11336 | else |
a0b9e27f | 11337 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11338 | wxUSE_ZLIB=builtin |
11339 | fi | |
11340 | else | |
11341 | wxUSE_ZLIB=sys | |
11342 | fi | |
11343 | fi | |
11344 | ||
11345 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11346 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11347 | fi | |
ab9b9eab VZ |
11348 | fi |
11349 | ||
8284b0c5 | 11350 | |
21d1c967 GD |
11351 | PNG_INCLUDE= |
11352 | PNG_LINK= | |
11353 | if test "$wxUSE_LIBPNG" != "no" ; then | |
a0b9e27f | 11354 | cat >> confdefs.h <<\EOF |
21d1c967 | 11355 | #define wxUSE_LIBPNG 1 |
a0b9e27f | 11356 | EOF |
90dd450c | 11357 | |
8284b0c5 | 11358 | |
21d1c967 | 11359 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
a0b9e27f | 11360 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11361 | wxUSE_LIBPNG=sys |
11362 | fi | |
90dd450c | 11363 | |
21d1c967 | 11364 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
a0b9e27f | 11365 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
21d1c967 GD |
11366 | wxUSE_LIBPNG=builtin |
11367 | fi | |
11368 | ||
11369 | if test "$wxUSE_MGL" != 1 ; then | |
11370 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
a0b9e27f MB |
11371 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
11372 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
6969f178 | 11373 | echo "configure:11374: checking for png.h" >&5 |
a0b9e27f MB |
11374 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11375 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11376 | else | |
11377 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 11378 | #line 11379 "configure" |
21d1c967 GD |
11379 | #include "confdefs.h" |
11380 | #include <png.h> | |
a0b9e27f MB |
11381 | EOF |
11382 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 11383 | { (eval echo configure:11384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11384 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11385 | if test -z "$ac_err"; then | |
11386 | rm -rf conftest* | |
11387 | eval "ac_cv_header_$ac_safe=yes" | |
11388 | else | |
11389 | echo "$ac_err" >&5 | |
11390 | echo "configure: failed program was:" >&5 | |
90dd450c | 11391 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11392 | rm -rf conftest* |
11393 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 11394 | fi |
a0b9e27f | 11395 | rm -f conftest* |
90dd450c | 11396 | fi |
a0b9e27f MB |
11397 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11398 | echo "$ac_t""yes" 1>&6 | |
11399 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
6969f178 | 11400 | echo "configure:11401: checking for png_check_sig in -lpng" >&5 |
a0b9e27f MB |
11401 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
11402 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11403 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11404 | else |
a0b9e27f | 11405 | ac_save_LIBS="$LIBS" |
21d1c967 | 11406 | LIBS="-lpng -lz -lm $LIBS" |
a0b9e27f | 11407 | cat > conftest.$ac_ext <<EOF |
6969f178 | 11408 | #line 11409 "configure" |
90dd450c | 11409 | #include "confdefs.h" |
21d1c967 GD |
11410 | /* Override any gcc2 internal prototype to avoid an error. */ |
11411 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11412 | builtin and then its argument prototype would still apply. */ |
11413 | char png_check_sig(); | |
90dd450c | 11414 | |
a0b9e27f MB |
11415 | int main() { |
11416 | png_check_sig() | |
11417 | ; return 0; } | |
11418 | EOF | |
6969f178 | 11419 | if { (eval echo configure:11420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11420 | rm -rf conftest* |
11421 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11422 | else | |
11423 | echo "configure: failed program was:" >&5 | |
11424 | cat conftest.$ac_ext >&5 | |
11425 | rm -rf conftest* | |
11426 | eval "ac_cv_lib_$ac_lib_var=no" | |
11427 | fi | |
11428 | rm -f conftest* | |
11429 | LIBS="$ac_save_LIBS" | |
247f5006 | 11430 | |
90dd450c | 11431 | fi |
a0b9e27f MB |
11432 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11433 | echo "$ac_t""yes" 1>&6 | |
11434 | PNG_LINK=" -lpng" | |
11435 | else | |
11436 | echo "$ac_t""no" 1>&6 | |
11437 | fi | |
90dd450c | 11438 | |
a0b9e27f MB |
11439 | |
11440 | else | |
11441 | echo "$ac_t""no" 1>&6 | |
11442 | fi | |
8284b0c5 | 11443 | |
247f5006 | 11444 | |
21d1c967 GD |
11445 | if test "x$PNG_LINK" = "x" ; then |
11446 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
a0b9e27f | 11447 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11448 | else |
a0b9e27f | 11449 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11450 | wxUSE_LIBPNG=builtin |
11451 | fi | |
11452 | else | |
11453 | wxUSE_LIBPNG=yes | |
11454 | fi | |
11455 | fi | |
11456 | fi | |
90dd450c | 11457 | |
21d1c967 GD |
11458 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
11459 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11460 | fi | |
90dd450c | 11461 | |
21d1c967 | 11462 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
11463 | fi |
11464 | ||
8284b0c5 | 11465 | |
21d1c967 GD |
11466 | JPEG_INCLUDE= |
11467 | JPEG_LINK= | |
11468 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
a0b9e27f | 11469 | cat >> confdefs.h <<\EOF |
21d1c967 | 11470 | #define wxUSE_LIBJPEG 1 |
a0b9e27f | 11471 | EOF |
90dd450c | 11472 | |
8284b0c5 | 11473 | |
21d1c967 | 11474 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
a0b9e27f | 11475 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11476 | wxUSE_LIBJPEG=sys |
11477 | fi | |
90dd450c | 11478 | |
21d1c967 GD |
11479 | if test "$wxUSE_MGL" != 1 ; then |
11480 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
a0b9e27f | 11481 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
6969f178 | 11482 | echo "configure:11483: checking for jpeglib.h" >&5 |
a0b9e27f MB |
11483 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
11484 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11485 | else |
a0b9e27f | 11486 | cat > conftest.$ac_ext <<EOF |
6969f178 | 11487 | #line 11488 "configure" |
21d1c967 | 11488 | #include "confdefs.h" |
90dd450c | 11489 | |
21d1c967 GD |
11490 | #undef HAVE_STDLIB_H |
11491 | #include <stdio.h> | |
11492 | #include <jpeglib.h> | |
a0b9e27f MB |
11493 | |
11494 | int main() { | |
90dd450c | 11495 | |
a0b9e27f MB |
11496 | |
11497 | ; return 0; } | |
11498 | EOF | |
6969f178 | 11499 | if { (eval echo configure:11500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11500 | rm -rf conftest* |
21d1c967 | 11501 | ac_cv_header_jpeglib_h=yes |
90dd450c | 11502 | else |
a0b9e27f MB |
11503 | echo "configure: failed program was:" >&5 |
11504 | cat conftest.$ac_ext >&5 | |
11505 | rm -rf conftest* | |
11506 | ac_cv_header_jpeglib_h=no | |
11507 | ||
90dd450c | 11508 | fi |
a0b9e27f MB |
11509 | rm -f conftest* |
11510 | ||
90dd450c VZ |
11511 | fi |
11512 | ||
a0b9e27f | 11513 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
90dd450c | 11514 | |
21d1c967 | 11515 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
a0b9e27f | 11516 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 |
6969f178 | 11517 | echo "configure:11518: checking for jpeg_read_header in -ljpeg" >&5 |
a0b9e27f MB |
11518 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
11519 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11520 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11521 | else |
a0b9e27f | 11522 | ac_save_LIBS="$LIBS" |
21d1c967 | 11523 | LIBS="-ljpeg $LIBS" |
a0b9e27f | 11524 | cat > conftest.$ac_ext <<EOF |
6969f178 | 11525 | #line 11526 "configure" |
21d1c967 GD |
11526 | #include "confdefs.h" |
11527 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11528 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11529 | builtin and then its argument prototype would still apply. */ |
11530 | char jpeg_read_header(); | |
11531 | ||
11532 | int main() { | |
11533 | jpeg_read_header() | |
11534 | ; return 0; } | |
11535 | EOF | |
6969f178 | 11536 | if { (eval echo configure:11537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11537 | rm -rf conftest* |
11538 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11539 | else | |
11540 | echo "configure: failed program was:" >&5 | |
11541 | cat conftest.$ac_ext >&5 | |
11542 | rm -rf conftest* | |
11543 | eval "ac_cv_lib_$ac_lib_var=no" | |
11544 | fi | |
11545 | rm -f conftest* | |
11546 | LIBS="$ac_save_LIBS" | |
11547 | ||
11548 | fi | |
11549 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11550 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11551 | JPEG_LINK=" -ljpeg" |
a0b9e27f MB |
11552 | else |
11553 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
11554 | fi |
11555 | ||
21d1c967 | 11556 | fi |
90dd450c | 11557 | |
21d1c967 GD |
11558 | if test "x$JPEG_LINK" = "x" ; then |
11559 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
a0b9e27f | 11560 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11561 | else |
a0b9e27f | 11562 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11563 | wxUSE_LIBJPEG=builtin |
11564 | fi | |
11565 | else | |
11566 | wxUSE_LIBJPEG=sys | |
11567 | fi | |
11568 | fi | |
11569 | fi | |
90dd450c | 11570 | |
21d1c967 GD |
11571 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
11572 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
11573 | fi | |
11574 | fi | |
90dd450c | 11575 | |
8284b0c5 | 11576 | |
21d1c967 GD |
11577 | TIFF_INCLUDE= |
11578 | TIFF_LINK= | |
11579 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
a0b9e27f | 11580 | cat >> confdefs.h <<\EOF |
21d1c967 | 11581 | #define wxUSE_LIBTIFF 1 |
a0b9e27f | 11582 | EOF |
21d1c967 | 11583 | |
8284b0c5 | 11584 | |
21d1c967 | 11585 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
a0b9e27f MB |
11586 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
11587 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
6969f178 | 11588 | echo "configure:11589: checking for tiffio.h" >&5 |
a0b9e27f MB |
11589 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11590 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11591 | else | |
11592 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 11593 | #line 11594 "configure" |
247f5006 VZ |
11594 | #include "confdefs.h" |
11595 | #include <tiffio.h> | |
a0b9e27f MB |
11596 | EOF |
11597 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 11598 | { (eval echo configure:11599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11599 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11600 | if test -z "$ac_err"; then | |
11601 | rm -rf conftest* | |
11602 | eval "ac_cv_header_$ac_safe=yes" | |
11603 | else | |
11604 | echo "$ac_err" >&5 | |
11605 | echo "configure: failed program was:" >&5 | |
21d1c967 | 11606 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11607 | rm -rf conftest* |
11608 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 11609 | fi |
a0b9e27f | 11610 | rm -f conftest* |
21d1c967 | 11611 | fi |
a0b9e27f MB |
11612 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11613 | echo "$ac_t""yes" 1>&6 | |
11614 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
6969f178 | 11615 | echo "configure:11616: checking for TIFFError in -ltiff" >&5 |
a0b9e27f MB |
11616 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
11617 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11618 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 11619 | else |
a0b9e27f | 11620 | ac_save_LIBS="$LIBS" |
21d1c967 | 11621 | LIBS="-ltiff -lm $LIBS" |
a0b9e27f | 11622 | cat > conftest.$ac_ext <<EOF |
6969f178 | 11623 | #line 11624 "configure" |
ab9b9eab VZ |
11624 | #include "confdefs.h" |
11625 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11626 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11627 | builtin and then its argument prototype would still apply. */ |
11628 | char TIFFError(); | |
ab9b9eab | 11629 | |
a0b9e27f MB |
11630 | int main() { |
11631 | TIFFError() | |
11632 | ; return 0; } | |
11633 | EOF | |
6969f178 | 11634 | if { (eval echo configure:11635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11635 | rm -rf conftest* |
11636 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11637 | else | |
11638 | echo "configure: failed program was:" >&5 | |
11639 | cat conftest.$ac_ext >&5 | |
11640 | rm -rf conftest* | |
11641 | eval "ac_cv_lib_$ac_lib_var=no" | |
11642 | fi | |
11643 | rm -f conftest* | |
11644 | LIBS="$ac_save_LIBS" | |
247f5006 | 11645 | |
21d1c967 | 11646 | fi |
a0b9e27f MB |
11647 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11648 | echo "$ac_t""yes" 1>&6 | |
11649 | TIFF_LINK=" -ltiff" | |
11650 | else | |
11651 | echo "$ac_t""no" 1>&6 | |
11652 | fi | |
cd6d6d5b | 11653 | |
a0b9e27f MB |
11654 | |
11655 | else | |
11656 | echo "$ac_t""no" 1>&6 | |
11657 | fi | |
8284b0c5 | 11658 | |
247f5006 | 11659 | |
21d1c967 GD |
11660 | if test "x$TIFF_LINK" = "x" ; then |
11661 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
a0b9e27f | 11662 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } |
90dd450c | 11663 | else |
a0b9e27f | 11664 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
21d1c967 | 11665 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 11666 | fi |
d8356fa3 | 11667 | else |
21d1c967 | 11668 | wxUSE_LIBTIFF=sys |
d8356fa3 | 11669 | fi |
21d1c967 | 11670 | fi |
d8356fa3 | 11671 | |
21d1c967 GD |
11672 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
11673 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 11674 | fi |
21d1c967 | 11675 | fi |
10f2d63a | 11676 | |
8284b0c5 | 11677 | |
21d1c967 | 11678 | AFMINSTALL= |
90dd450c | 11679 | |
21d1c967 GD |
11680 | TOOLKIT= |
11681 | TOOLKIT_INCLUDE= | |
11682 | WIDGET_SET= | |
11683 | ||
11684 | if test "$USE_WIN32" = 1 ; then | |
a0b9e27f | 11685 | for ac_hdr in w32api.h |
21d1c967 | 11686 | do |
a0b9e27f MB |
11687 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11688 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6969f178 | 11689 | echo "configure:11690: checking for $ac_hdr" >&5 |
a0b9e27f MB |
11690 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11691 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11692 | else | |
11693 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 11694 | #line 11695 "configure" |
247f5006 | 11695 | #include "confdefs.h" |
a0b9e27f MB |
11696 | #include <$ac_hdr> |
11697 | EOF | |
11698 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 11699 | { (eval echo configure:11700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11700 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11701 | if test -z "$ac_err"; then | |
11702 | rm -rf conftest* | |
11703 | eval "ac_cv_header_$ac_safe=yes" | |
11704 | else | |
11705 | echo "$ac_err" >&5 | |
11706 | echo "configure: failed program was:" >&5 | |
f79bd02d | 11707 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11708 | rm -rf conftest* |
11709 | eval "ac_cv_header_$ac_safe=no" | |
f79bd02d | 11710 | fi |
a0b9e27f | 11711 | rm -f conftest* |
21d1c967 | 11712 | fi |
a0b9e27f MB |
11713 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11714 | echo "$ac_t""yes" 1>&6 | |
11715 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11716 | cat >> confdefs.h <<EOF | |
11717 | #define $ac_tr_hdr 1 | |
11718 | EOF | |
11719 | ||
11720 | else | |
11721 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
11722 | fi |
11723 | done | |
f79bd02d | 11724 | |
a0b9e27f MB |
11725 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
11726 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
6969f178 | 11727 | echo "configure:11728: checking for windows.h" >&5 |
a0b9e27f MB |
11728 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11730 | else |
a0b9e27f | 11731 | cat > conftest.$ac_ext <<EOF |
6969f178 | 11732 | #line 11733 "configure" |
247f5006 VZ |
11733 | #include "confdefs.h" |
11734 | #include <windows.h> | |
a0b9e27f MB |
11735 | EOF |
11736 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 11737 | { (eval echo configure:11738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11738 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11739 | if test -z "$ac_err"; then | |
11740 | rm -rf conftest* | |
11741 | eval "ac_cv_header_$ac_safe=yes" | |
11742 | else | |
11743 | echo "$ac_err" >&5 | |
11744 | echo "configure: failed program was:" >&5 | |
90dd450c | 11745 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11746 | rm -rf conftest* |
11747 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 11748 | fi |
a0b9e27f | 11749 | rm -f conftest* |
90dd450c | 11750 | fi |
a0b9e27f MB |
11751 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11752 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11753 | : |
90dd450c | 11754 | else |
a0b9e27f | 11755 | echo "$ac_t""no" 1>&6 |
21d1c967 | 11756 | |
a0b9e27f MB |
11757 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
11758 | ||
5c6fa7d2 | 11759 | fi |
7b4a847f | 11760 | |
5c6fa7d2 | 11761 | |
a0b9e27f | 11762 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
6969f178 | 11763 | echo "configure:11764: checking if w32api has good enough MSIE support" >&5 |
a0b9e27f MB |
11764 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
11765 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11766 | else |
a0b9e27f MB |
11767 | |
11768 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 11769 | #line 11770 "configure" |
f79bd02d | 11770 | #include "confdefs.h" |
21d1c967 | 11771 | #include <w32api.h> |
a0b9e27f | 11772 | int main() { |
f79bd02d | 11773 | |
21d1c967 GD |
11774 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
11775 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
11776 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
11777 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
11778 | ||
11779 | #if !wxCHECK_W32API_VERSION(1,1) | |
11780 | #error You need w32api 1.1 or newer | |
11781 | #endif | |
a0b9e27f MB |
11782 | |
11783 | ; return 0; } | |
11784 | EOF | |
6969f178 | 11785 | if { (eval echo configure:11786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11786 | rm -rf conftest* |
11787 | ||
21d1c967 | 11788 | wx_cv_w32api_win32_ie=yes |
a0b9e27f | 11789 | |
f79bd02d | 11790 | else |
a0b9e27f MB |
11791 | echo "configure: failed program was:" >&5 |
11792 | cat conftest.$ac_ext >&5 | |
11793 | rm -rf conftest* | |
11794 | ||
21d1c967 | 11795 | wx_cv_w32api_win32_ie=no |
a0b9e27f | 11796 | |
5c6fa7d2 | 11797 | fi |
a0b9e27f MB |
11798 | rm -f conftest* |
11799 | ||
247f5006 | 11800 | fi |
a0b9e27f MB |
11801 | |
11802 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 | |
21d1c967 GD |
11803 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then |
11804 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
11805 | fi | |
f79bd02d | 11806 | |
21d1c967 GD |
11807 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
11808 | ||
11809 | case "${host}" in | |
11810 | *-*-cygwin* ) | |
11811 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
11812 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 11813 | esac |
f79bd02d | 11814 | |
21d1c967 GD |
11815 | if test "$wxUSE_ODBC" = "yes" ; then |
11816 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
11817 | fi | |
f79bd02d | 11818 | |
21d1c967 GD |
11819 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
11820 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
f79bd02d | 11821 | fi |
f79bd02d | 11822 | |
21d1c967 GD |
11823 | if test "$wxUSE_GUI" = "yes"; then |
11824 | USE_GUI=1 | |
f79bd02d | 11825 | |
21d1c967 | 11826 | GUI_TK_LIBRARY= |
f79bd02d | 11827 | |
21d1c967 GD |
11828 | WXGTK12= |
11829 | WXGTK127= | |
11830 | WXGTK20= | |
f79bd02d | 11831 | |
21d1c967 GD |
11832 | if test "$wxUSE_MSW" = 1 ; then |
11833 | TOOLKIT=MSW | |
11834 | GUIDIST=MSW_DIST | |
f79bd02d | 11835 | |
21d1c967 GD |
11836 | case "${host}" in |
11837 | *-*-mingw32* ) | |
11838 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
11839 | esac | |
f79bd02d JS |
11840 | fi |
11841 | ||
21d1c967 | 11842 | if test "$wxUSE_GTK" = 1; then |
a0b9e27f | 11843 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
6969f178 | 11844 | echo "configure:11845: checking for GTK+ version" >&5 |
21d1c967 GD |
11845 | |
11846 | gtk_version_cached=1 | |
a0b9e27f MB |
11847 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then |
11848 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f79bd02d | 11849 | else |
a0b9e27f | 11850 | |
21d1c967 | 11851 | gtk_version_cached=0 |
a0b9e27f | 11852 | echo "$ac_t""" 1>&6 |
f79bd02d | 11853 | |
21d1c967 GD |
11854 | GTK_MODULES= |
11855 | if test "$wxUSE_THREADS" = "yes"; then | |
11856 | GTK_MODULES=gthread | |
11857 | fi | |
f79bd02d | 11858 | |
21d1c967 GD |
11859 | wx_cv_lib_gtk= |
11860 | if test "x$wxUSE_GTK2" = "xyes"; then | |
11861 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
11862 | if test "${enable_gtktest+set}" = set; then | |
11863 | enableval="$enable_gtktest" | |
a0b9e27f | 11864 | : |
f79bd02d | 11865 | else |
21d1c967 | 11866 | enable_gtktest=yes |
a0b9e27f MB |
11867 | fi |
11868 | ||
f79bd02d | 11869 | |
21d1c967 GD |
11870 | pkg_config_args=gtk+-2.0 |
11871 | for module in . $GTK_MODULES | |
11872 | do | |
11873 | case "$module" in | |
a0b9e27f | 11874 | gthread) |
21d1c967 GD |
11875 | pkg_config_args="$pkg_config_args gthread-2.0" |
11876 | ;; | |
11877 | esac | |
11878 | done | |
11879 | ||
11880 | no_gtk="" | |
f79bd02d | 11881 | |
21d1c967 GD |
11882 | # Extract the first word of "pkg-config", so it can be a program name with args. |
11883 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 11884 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
6969f178 | 11885 | echo "configure:11886: checking for $ac_word" >&5 |
a0b9e27f MB |
11886 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
11887 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11888 | else |
a0b9e27f MB |
11889 | case "$PKG_CONFIG" in |
11890 | /*) | |
21d1c967 GD |
11891 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
11892 | ;; | |
a0b9e27f MB |
11893 | ?:/*) |
11894 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
11895 | ;; | |
21d1c967 | 11896 | *) |
a0b9e27f MB |
11897 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
11898 | ac_dummy="$PATH" | |
11899 | for ac_dir in $ac_dummy; do | |
11900 | test -z "$ac_dir" && ac_dir=. | |
11901 | if test -f $ac_dir/$ac_word; then | |
11902 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
11903 | break | |
11904 | fi | |
11905 | done | |
11906 | IFS="$ac_save_ifs" | |
21d1c967 GD |
11907 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
11908 | ;; | |
11909 | esac | |
f79bd02d | 11910 | fi |
a0b9e27f | 11911 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
21d1c967 | 11912 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 11913 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f79bd02d | 11914 | else |
a0b9e27f | 11915 | echo "$ac_t""no" 1>&6 |
f79bd02d JS |
11916 | fi |
11917 | ||
8284b0c5 | 11918 | |
21d1c967 GD |
11919 | if test x$PKG_CONFIG != xno ; then |
11920 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
11921 | : | |
11922 | else | |
11923 | echo *** pkg-config too old; version 0.7 or better required. | |
11924 | no_gtk=yes | |
11925 | PKG_CONFIG=no | |
11926 | fi | |
11927 | else | |
11928 | no_gtk=yes | |
11929 | fi | |
f79bd02d | 11930 | |
21d1c967 | 11931 | min_gtk_version=2.0.0 |
a0b9e27f | 11932 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 |
6969f178 | 11933 | echo "configure:11934: checking for GTK+ - version >= $min_gtk_version" >&5 |
f79bd02d | 11934 | |
21d1c967 GD |
11935 | if test x$PKG_CONFIG != xno ; then |
11936 | ## don't try to run the test against uninstalled libtool libs | |
11937 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
11938 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
11939 | enable_gtktest=no | |
11940 | fi | |
f79bd02d | 11941 | |
21d1c967 GD |
11942 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
11943 | : | |
11944 | else | |
11945 | no_gtk=yes | |
11946 | fi | |
11947 | fi | |
f79bd02d | 11948 | |
21d1c967 GD |
11949 | if test x"$no_gtk" = x ; then |
11950 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
11951 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
11952 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11953 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
11954 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11955 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
11956 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11957 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
11958 | if test "x$enable_gtktest" = "xyes" ; then | |
11959 | ac_save_CFLAGS="$CFLAGS" | |
11960 | ac_save_LIBS="$LIBS" | |
11961 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11962 | LIBS="$GTK_LIBS $LIBS" | |
11963 | rm -f conf.gtktest | |
11964 | if test "$cross_compiling" = yes; then | |
11965 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 11966 | else |
a0b9e27f | 11967 | cat > conftest.$ac_ext <<EOF |
6969f178 | 11968 | #line 11969 "configure" |
f79bd02d | 11969 | #include "confdefs.h" |
f79bd02d | 11970 | |
21d1c967 GD |
11971 | #include <gtk/gtk.h> |
11972 | #include <stdio.h> | |
11973 | #include <stdlib.h> | |
f79bd02d | 11974 | |
a0b9e27f | 11975 | int |
21d1c967 GD |
11976 | main () |
11977 | { | |
11978 | int major, minor, micro; | |
11979 | char *tmp_version; | |
f79bd02d | 11980 | |
21d1c967 | 11981 | system ("touch conf.gtktest"); |
f79bd02d | 11982 | |
21d1c967 GD |
11983 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
11984 | tmp_version = g_strdup("$min_gtk_version"); | |
11985 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
11986 | printf("%s, bad version string\n", "$min_gtk_version"); | |
11987 | exit(1); | |
11988 | } | |
f79bd02d | 11989 | |
21d1c967 GD |
11990 | if ((gtk_major_version != $gtk_config_major_version) || |
11991 | (gtk_minor_version != $gtk_config_minor_version) || | |
11992 | (gtk_micro_version != $gtk_config_micro_version)) | |
11993 | { | |
a0b9e27f | 11994 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
11995 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
11996 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11997 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
11998 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
11999 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12000 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12001 | printf("*** required on your system.\n"); | |
12002 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
12003 | printf("*** to point to the correct configuration files\n"); | |
a0b9e27f | 12004 | } |
21d1c967 GD |
12005 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
12006 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12007 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12008 | { | |
12009 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12010 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12011 | printf("*** library (version %d.%d.%d)\n", | |
12012 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12013 | } | |
12014 | else | |
12015 | { | |
12016 | if ((gtk_major_version > major) || | |
12017 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12018 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12019 | { | |
12020 | return 0; | |
12021 | } | |
12022 | else | |
12023 | { | |
12024 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12025 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12026 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12027 | major, minor, micro); | |
12028 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12029 | printf("***\n"); | |
12030 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12031 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
12032 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12033 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
12034 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
12035 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12036 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12037 | } | |
12038 | } | |
12039 | return 1; | |
12040 | } | |
f79bd02d | 12041 | |
a0b9e27f | 12042 | EOF |
6969f178 | 12043 | if { (eval echo configure:12044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12044 | then |
21d1c967 | 12045 | : |
f79bd02d | 12046 | else |
a0b9e27f MB |
12047 | echo "configure: failed program was:" >&5 |
12048 | cat conftest.$ac_ext >&5 | |
12049 | rm -fr conftest* | |
12050 | no_gtk=yes | |
f79bd02d | 12051 | fi |
a0b9e27f | 12052 | rm -fr conftest* |
f79bd02d | 12053 | fi |
a0b9e27f | 12054 | |
21d1c967 GD |
12055 | CFLAGS="$ac_save_CFLAGS" |
12056 | LIBS="$ac_save_LIBS" | |
12057 | fi | |
12058 | fi | |
12059 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12060 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
12061 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 12062 | else |
a0b9e27f | 12063 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12064 | if test "$PKG_CONFIG" = "no" ; then |
12065 | echo "*** A new enough version of pkg-config was not found." | |
12066 | echo "*** See http://pkgconfig.sourceforge.net" | |
12067 | else | |
12068 | if test -f conf.gtktest ; then | |
12069 | : | |
12070 | else | |
12071 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
12072 | ac_save_CFLAGS="$CFLAGS" |
12073 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
12074 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
12075 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12076 | cat > conftest.$ac_ext <<EOF |
6969f178 | 12077 | #line 12078 "configure" |
f79bd02d | 12078 | #include "confdefs.h" |
21d1c967 GD |
12079 | |
12080 | #include <gtk/gtk.h> | |
12081 | #include <stdio.h> | |
f79bd02d | 12082 | |
a0b9e27f MB |
12083 | int main() { |
12084 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12085 | ; return 0; } | |
12086 | EOF | |
6969f178 | 12087 | if { (eval echo configure:12088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12088 | rm -rf conftest* |
21d1c967 GD |
12089 | echo "*** The test program compiled, but did not run. This usually means" |
12090 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
12091 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
12092 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12093 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12094 | echo "*** is required on your system" | |
12095 | echo "***" | |
12096 | echo "*** If you have an old version installed, it is best to remove it, although" | |
a0b9e27f | 12097 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 12098 | else |
a0b9e27f MB |
12099 | echo "configure: failed program was:" >&5 |
12100 | cat conftest.$ac_ext >&5 | |
12101 | rm -rf conftest* | |
12102 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 12103 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 12104 | fi |
a0b9e27f | 12105 | rm -f conftest* |
21d1c967 GD |
12106 | CFLAGS="$ac_save_CFLAGS" |
12107 | LIBS="$ac_save_LIBS" | |
12108 | fi | |
12109 | fi | |
12110 | GTK_CFLAGS="" | |
12111 | GTK_LIBS="" | |
12112 | : | |
12113 | fi | |
a0b9e27f MB |
12114 | |
12115 | ||
21d1c967 | 12116 | rm -f conf.gtktest |
f79bd02d | 12117 | |
21d1c967 | 12118 | fi |
f79bd02d | 12119 | |
21d1c967 | 12120 | if test -z "$wx_cv_lib_gtk"; then |
a0b9e27f | 12121 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12122 | if test "${with_gtk_prefix+set}" = set; then |
12123 | withval="$with_gtk_prefix" | |
12124 | gtk_config_prefix="$withval" | |
12125 | else | |
12126 | gtk_config_prefix="" | |
a0b9e27f | 12127 | fi |
f79bd02d | 12128 | |
21d1c967 GD |
12129 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12130 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12131 | withval="$with_gtk_exec_prefix" | |
12132 | gtk_config_exec_prefix="$withval" | |
12133 | else | |
12134 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12135 | fi |
12136 | ||
21d1c967 GD |
12137 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12138 | if test "${enable_gtktest+set}" = set; then | |
12139 | enableval="$enable_gtktest" | |
a0b9e27f | 12140 | : |
21d1c967 GD |
12141 | else |
12142 | enable_gtktest=yes | |
a0b9e27f MB |
12143 | fi |
12144 | ||
21d1c967 GD |
12145 | |
12146 | for module in . $GTK_MODULES | |
12147 | do | |
12148 | case "$module" in | |
a0b9e27f | 12149 | gthread) |
21d1c967 GD |
12150 | gtk_config_args="$gtk_config_args gthread" |
12151 | ;; | |
12152 | esac | |
12153 | done | |
12154 | ||
12155 | if test x$gtk_config_exec_prefix != x ; then | |
12156 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12157 | if test x${GTK_CONFIG+set} != xset ; then | |
12158 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12159 | fi | |
12160 | fi | |
12161 | if test x$gtk_config_prefix != x ; then | |
12162 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12163 | if test x${GTK_CONFIG+set} != xset ; then | |
12164 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12165 | fi | |
12166 | fi | |
12167 | ||
12168 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12169 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12170 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
6969f178 | 12171 | echo "configure:12172: checking for $ac_word" >&5 |
a0b9e27f MB |
12172 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12173 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12174 | else |
a0b9e27f MB |
12175 | case "$GTK_CONFIG" in |
12176 | /*) | |
21d1c967 GD |
12177 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12178 | ;; | |
a0b9e27f MB |
12179 | ?:/*) |
12180 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12181 | ;; | |
21d1c967 | 12182 | *) |
a0b9e27f MB |
12183 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12184 | ac_dummy="$PATH" | |
12185 | for ac_dir in $ac_dummy; do | |
12186 | test -z "$ac_dir" && ac_dir=. | |
12187 | if test -f $ac_dir/$ac_word; then | |
12188 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12189 | break | |
12190 | fi | |
12191 | done | |
12192 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12193 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12194 | ;; | |
12195 | esac | |
12196 | fi | |
a0b9e27f | 12197 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12198 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12199 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12200 | else |
a0b9e27f | 12201 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12202 | fi |
12203 | ||
12204 | min_gtk_version=1.2.7 | |
a0b9e27f | 12205 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
6969f178 | 12206 | echo "configure:12207: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12207 | no_gtk="" |
12208 | if test "$GTK_CONFIG" = "no" ; then | |
12209 | no_gtk=yes | |
12210 | else | |
12211 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12212 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12213 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12214 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12215 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12216 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12217 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12218 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12219 | if test "x$enable_gtktest" = "xyes" ; then | |
12220 | ac_save_CFLAGS="$CFLAGS" | |
12221 | ac_save_LIBS="$LIBS" | |
12222 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12223 | LIBS="$GTK_LIBS $LIBS" | |
12224 | rm -f conf.gtktest | |
12225 | if test "$cross_compiling" = yes; then | |
12226 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12227 | else |
a0b9e27f | 12228 | cat > conftest.$ac_ext <<EOF |
6969f178 | 12229 | #line 12230 "configure" |
f79bd02d JS |
12230 | #include "confdefs.h" |
12231 | ||
21d1c967 GD |
12232 | #include <gtk/gtk.h> |
12233 | #include <stdio.h> | |
12234 | #include <stdlib.h> | |
f79bd02d | 12235 | |
a0b9e27f | 12236 | int |
21d1c967 GD |
12237 | main () |
12238 | { | |
12239 | int major, minor, micro; | |
12240 | char *tmp_version; | |
12241 | ||
12242 | system ("touch conf.gtktest"); | |
12243 | ||
12244 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12245 | tmp_version = g_strdup("$min_gtk_version"); | |
12246 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12247 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12248 | exit(1); | |
12249 | } | |
90dd450c | 12250 | |
21d1c967 GD |
12251 | if ((gtk_major_version != $gtk_config_major_version) || |
12252 | (gtk_minor_version != $gtk_config_minor_version) || | |
12253 | (gtk_micro_version != $gtk_config_micro_version)) | |
12254 | { | |
a0b9e27f | 12255 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12256 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12257 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12258 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12259 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12260 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12261 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12262 | printf("*** required on your system.\n"); | |
12263 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12264 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12265 | printf("*** before re-running configure\n"); | |
a0b9e27f | 12266 | } |
21d1c967 GD |
12267 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12268 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12269 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12270 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12271 | { | |
12272 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12273 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12274 | printf("*** library (version %d.%d.%d)\n", | |
12275 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12276 | } | |
12277 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12278 | else | |
12279 | { | |
12280 | if ((gtk_major_version > major) || | |
12281 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12282 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12283 | { | |
12284 | return 0; | |
12285 | } | |
12286 | else | |
12287 | { | |
12288 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12289 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12290 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12291 | major, minor, micro); | |
12292 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12293 | printf("***\n"); | |
12294 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12295 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12296 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12297 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12298 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12299 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12300 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12301 | } | |
12302 | } | |
12303 | return 1; | |
12304 | } | |
12305 | ||
a0b9e27f | 12306 | EOF |
6969f178 | 12307 | if { (eval echo configure:12308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12308 | then |
21d1c967 GD |
12309 | : |
12310 | else | |
a0b9e27f MB |
12311 | echo "configure: failed program was:" >&5 |
12312 | cat conftest.$ac_ext >&5 | |
12313 | rm -fr conftest* | |
12314 | no_gtk=yes | |
21d1c967 | 12315 | fi |
a0b9e27f | 12316 | rm -fr conftest* |
21d1c967 | 12317 | fi |
a0b9e27f | 12318 | |
21d1c967 GD |
12319 | CFLAGS="$ac_save_CFLAGS" |
12320 | LIBS="$ac_save_LIBS" | |
12321 | fi | |
12322 | fi | |
12323 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12324 | echo "$ac_t""yes" 1>&6 |
12325 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 12326 | else |
a0b9e27f | 12327 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12328 | if test "$GTK_CONFIG" = "no" ; then |
12329 | echo "*** The gtk-config script installed by GTK could not be found" | |
12330 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12331 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12332 | echo "*** full path to gtk-config." | |
12333 | else | |
12334 | if test -f conf.gtktest ; then | |
12335 | : | |
12336 | else | |
12337 | echo "*** Could not run GTK test program, checking why..." | |
12338 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12339 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12340 | cat > conftest.$ac_ext <<EOF |
6969f178 | 12341 | #line 12342 "configure" |
21d1c967 GD |
12342 | #include "confdefs.h" |
12343 | ||
12344 | #include <gtk/gtk.h> | |
12345 | #include <stdio.h> | |
12346 | ||
a0b9e27f MB |
12347 | int main() { |
12348 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12349 | ; return 0; } | |
12350 | EOF | |
6969f178 | 12351 | if { (eval echo configure:12352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12352 | rm -rf conftest* |
21d1c967 GD |
12353 | echo "*** The test program compiled, but did not run. This usually means" |
12354 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12355 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12356 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12357 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12358 | echo "*** is required on your system" | |
12359 | echo "***" | |
12360 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12361 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12362 | echo "***" | |
12363 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12364 | echo "*** came with the system with the command" | |
12365 | echo "***" | |
a0b9e27f | 12366 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 12367 | else |
a0b9e27f MB |
12368 | echo "configure: failed program was:" >&5 |
12369 | cat conftest.$ac_ext >&5 | |
12370 | rm -rf conftest* | |
12371 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
12372 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
12373 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 12374 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 12375 | fi |
a0b9e27f | 12376 | rm -f conftest* |
21d1c967 GD |
12377 | CFLAGS="$ac_save_CFLAGS" |
12378 | LIBS="$ac_save_LIBS" | |
12379 | fi | |
12380 | fi | |
12381 | GTK_CFLAGS="" | |
12382 | GTK_LIBS="" | |
12383 | : | |
12384 | fi | |
a0b9e27f MB |
12385 | |
12386 | ||
21d1c967 GD |
12387 | rm -f conf.gtktest |
12388 | ||
12389 | fi | |
12390 | ||
12391 | if test -z "$wx_cv_lib_gtk"; then | |
a0b9e27f | 12392 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12393 | if test "${with_gtk_prefix+set}" = set; then |
12394 | withval="$with_gtk_prefix" | |
12395 | gtk_config_prefix="$withval" | |
12396 | else | |
12397 | gtk_config_prefix="" | |
a0b9e27f | 12398 | fi |
f79bd02d | 12399 | |
21d1c967 GD |
12400 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12401 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12402 | withval="$with_gtk_exec_prefix" | |
12403 | gtk_config_exec_prefix="$withval" | |
12404 | else | |
12405 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12406 | fi |
12407 | ||
21d1c967 GD |
12408 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12409 | if test "${enable_gtktest+set}" = set; then | |
12410 | enableval="$enable_gtktest" | |
a0b9e27f | 12411 | : |
90dd450c | 12412 | else |
21d1c967 | 12413 | enable_gtktest=yes |
a0b9e27f MB |
12414 | fi |
12415 | ||
21d1c967 GD |
12416 | |
12417 | for module in . $GTK_MODULES | |
12418 | do | |
12419 | case "$module" in | |
a0b9e27f | 12420 | gthread) |
21d1c967 GD |
12421 | gtk_config_args="$gtk_config_args gthread" |
12422 | ;; | |
12423 | esac | |
12424 | done | |
12425 | ||
12426 | if test x$gtk_config_exec_prefix != x ; then | |
12427 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12428 | if test x${GTK_CONFIG+set} != xset ; then | |
12429 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12430 | fi | |
12431 | fi | |
12432 | if test x$gtk_config_prefix != x ; then | |
12433 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12434 | if test x${GTK_CONFIG+set} != xset ; then | |
12435 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12436 | fi | |
12437 | fi | |
12438 | ||
12439 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12440 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12441 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
6969f178 | 12442 | echo "configure:12443: checking for $ac_word" >&5 |
a0b9e27f MB |
12443 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12444 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 12445 | else |
a0b9e27f MB |
12446 | case "$GTK_CONFIG" in |
12447 | /*) | |
21d1c967 GD |
12448 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12449 | ;; | |
a0b9e27f MB |
12450 | ?:/*) |
12451 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12452 | ;; | |
21d1c967 | 12453 | *) |
a0b9e27f MB |
12454 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12455 | ac_dummy="$PATH" | |
12456 | for ac_dir in $ac_dummy; do | |
12457 | test -z "$ac_dir" && ac_dir=. | |
12458 | if test -f $ac_dir/$ac_word; then | |
12459 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12460 | break | |
12461 | fi | |
12462 | done | |
12463 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12464 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12465 | ;; | |
12466 | esac | |
12467 | fi | |
a0b9e27f | 12468 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12469 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12470 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12471 | else |
a0b9e27f | 12472 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12473 | fi |
12474 | ||
12475 | min_gtk_version=1.2.3 | |
a0b9e27f | 12476 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
6969f178 | 12477 | echo "configure:12478: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12478 | no_gtk="" |
12479 | if test "$GTK_CONFIG" = "no" ; then | |
12480 | no_gtk=yes | |
12481 | else | |
12482 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12483 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12484 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12485 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12486 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12487 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12488 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12489 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12490 | if test "x$enable_gtktest" = "xyes" ; then | |
12491 | ac_save_CFLAGS="$CFLAGS" | |
12492 | ac_save_LIBS="$LIBS" | |
12493 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12494 | LIBS="$GTK_LIBS $LIBS" | |
12495 | rm -f conf.gtktest | |
12496 | if test "$cross_compiling" = yes; then | |
12497 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12498 | else | |
a0b9e27f | 12499 | cat > conftest.$ac_ext <<EOF |
6969f178 | 12500 | #line 12501 "configure" |
f79bd02d | 12501 | #include "confdefs.h" |
21d1c967 GD |
12502 | |
12503 | #include <gtk/gtk.h> | |
12504 | #include <stdio.h> | |
12505 | #include <stdlib.h> | |
12506 | ||
a0b9e27f | 12507 | int |
21d1c967 GD |
12508 | main () |
12509 | { | |
12510 | int major, minor, micro; | |
12511 | char *tmp_version; | |
12512 | ||
12513 | system ("touch conf.gtktest"); | |
12514 | ||
12515 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12516 | tmp_version = g_strdup("$min_gtk_version"); | |
12517 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12518 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12519 | exit(1); | |
12520 | } | |
12521 | ||
12522 | if ((gtk_major_version != $gtk_config_major_version) || | |
12523 | (gtk_minor_version != $gtk_config_minor_version) || | |
12524 | (gtk_micro_version != $gtk_config_micro_version)) | |
12525 | { | |
a0b9e27f | 12526 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12527 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12528 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12529 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12530 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12531 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12532 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12533 | printf("*** required on your system.\n"); | |
12534 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12535 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12536 | printf("*** before re-running configure\n"); | |
a0b9e27f | 12537 | } |
21d1c967 GD |
12538 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12539 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12540 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12541 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12542 | { | |
12543 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12544 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12545 | printf("*** library (version %d.%d.%d)\n", | |
12546 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12547 | } | |
12548 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12549 | else | |
12550 | { | |
12551 | if ((gtk_major_version > major) || | |
12552 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12553 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12554 | { | |
12555 | return 0; | |
12556 | } | |
12557 | else | |
12558 | { | |
12559 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12560 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12561 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12562 | major, minor, micro); | |
12563 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12564 | printf("***\n"); | |
12565 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12566 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12567 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12568 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12569 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12570 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12571 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12572 | } | |
12573 | } | |
12574 | return 1; | |
12575 | } | |
12576 | ||
a0b9e27f | 12577 | EOF |
6969f178 | 12578 | if { (eval echo configure:12579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12579 | then |
21d1c967 GD |
12580 | : |
12581 | else | |
a0b9e27f MB |
12582 | echo "configure: failed program was:" >&5 |
12583 | cat conftest.$ac_ext >&5 | |
12584 | rm -fr conftest* | |
12585 | no_gtk=yes | |
21d1c967 | 12586 | fi |
a0b9e27f | 12587 | rm -fr conftest* |
21d1c967 | 12588 | fi |
a0b9e27f | 12589 | |
21d1c967 GD |
12590 | CFLAGS="$ac_save_CFLAGS" |
12591 | LIBS="$ac_save_LIBS" | |
12592 | fi | |
12593 | fi | |
12594 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12595 | echo "$ac_t""yes" 1>&6 |
12596 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 12597 | else |
a0b9e27f | 12598 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12599 | if test "$GTK_CONFIG" = "no" ; then |
12600 | echo "*** The gtk-config script installed by GTK could not be found" | |
12601 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12602 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12603 | echo "*** full path to gtk-config." | |
12604 | else | |
12605 | if test -f conf.gtktest ; then | |
12606 | : | |
12607 | else | |
12608 | echo "*** Could not run GTK test program, checking why..." | |
12609 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12610 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12611 | cat > conftest.$ac_ext <<EOF |
6969f178 | 12612 | #line 12613 "configure" |
21d1c967 GD |
12613 | #include "confdefs.h" |
12614 | ||
12615 | #include <gtk/gtk.h> | |
12616 | #include <stdio.h> | |
f79bd02d | 12617 | |
a0b9e27f MB |
12618 | int main() { |
12619 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12620 | ; return 0; } | |
12621 | EOF | |
6969f178 | 12622 | if { (eval echo configure:12623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12623 | rm -rf conftest* |
21d1c967 GD |
12624 | echo "*** The test program compiled, but did not run. This usually means" |
12625 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12626 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12627 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12628 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12629 | echo "*** is required on your system" | |
12630 | echo "***" | |
12631 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12632 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12633 | echo "***" | |
12634 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12635 | echo "*** came with the system with the command" | |
12636 | echo "***" | |
a0b9e27f | 12637 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 12638 | else |
a0b9e27f MB |
12639 | echo "configure: failed program was:" >&5 |
12640 | cat conftest.$ac_ext >&5 | |
12641 | rm -rf conftest* | |
12642 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
12643 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
12644 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 12645 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 12646 | fi |
a0b9e27f | 12647 | rm -f conftest* |
21d1c967 GD |
12648 | CFLAGS="$ac_save_CFLAGS" |
12649 | LIBS="$ac_save_LIBS" | |
12650 | fi | |
12651 | fi | |
12652 | GTK_CFLAGS="" | |
12653 | GTK_LIBS="" | |
12654 | : | |
12655 | fi | |
a0b9e27f MB |
12656 | |
12657 | ||
21d1c967 | 12658 | rm -f conf.gtktest |
f79bd02d | 12659 | |
21d1c967 GD |
12660 | fi |
12661 | ||
12662 | if test -z "$wx_cv_lib_gtk"; then | |
12663 | wx_cv_lib_gtk=none | |
12664 | else | |
12665 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
12666 | wx_cv_libs_gtk=$GTK_LIBS | |
12667 | fi | |
a0b9e27f MB |
12668 | |
12669 | ||
5c6fa7d2 | 12670 | fi |
52127426 | 12671 | |
8284b0c5 | 12672 | |
21d1c967 | 12673 | if test "$gtk_version_cached" = 1; then |
a0b9e27f | 12674 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 |
21d1c967 GD |
12675 | fi |
12676 | ||
12677 | case "$wx_cv_lib_gtk" in | |
12678 | 2.0) WXGTK20=1 | |
12679 | ;; | |
12680 | 1.2.7) WXGTK127=1 | |
12681 | WXGTK12=1 | |
12682 | ;; | |
12683 | 1.2.3) WXGTK12=1 | |
12684 | ;; | |
a0b9e27f | 12685 | *) { echo "configure: error: |
247f5006 VZ |
12686 | Please check that gtk-config is in path, the directory |
12687 | where GTK+ libraries are installed (returned by | |
12688 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
12689 | equivalent variable and GTK+ is version 1.2.3 or above. | |
a0b9e27f | 12690 | " 1>&2; exit 1; } |
21d1c967 GD |
12691 | ;; |
12692 | esac | |
12693 | ||
b13cd66e VZ |
12694 | if test "$WXGTK20" = 1; then |
12695 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 12696 | |
f09359cf VS |
12697 | succeeded=no |
12698 | ||
12699 | if test -z "$PKG_CONFIG"; then | |
12700 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
12701 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 12702 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
6969f178 | 12703 | echo "configure:12704: checking for $ac_word" >&5 |
a0b9e27f MB |
12704 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
12705 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf | 12706 | else |
a0b9e27f MB |
12707 | case "$PKG_CONFIG" in |
12708 | /*) | |
f09359cf VS |
12709 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12710 | ;; | |
a0b9e27f MB |
12711 | ?:/*) |
12712 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
12713 | ;; | |
f09359cf | 12714 | *) |
a0b9e27f MB |
12715 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12716 | ac_dummy="$PATH" | |
12717 | for ac_dir in $ac_dummy; do | |
12718 | test -z "$ac_dir" && ac_dir=. | |
12719 | if test -f $ac_dir/$ac_word; then | |
12720 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
12721 | break | |
12722 | fi | |
12723 | done | |
12724 | IFS="$ac_save_ifs" | |
f09359cf VS |
12725 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12726 | ;; | |
12727 | esac | |
12728 | fi | |
a0b9e27f | 12729 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
f09359cf | 12730 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 12731 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f09359cf | 12732 | else |
a0b9e27f | 12733 | echo "$ac_t""no" 1>&6 |
f09359cf VS |
12734 | fi |
12735 | ||
12736 | fi | |
12737 | ||
12738 | if test "$PKG_CONFIG" = "no" ; then | |
12739 | echo "*** The pkg-config script could not be found. Make sure it is" | |
12740 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
12741 | echo "*** to the full path to pkg-config." | |
12742 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
12743 | else | |
12744 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
12745 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
a0b9e27f | 12746 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 |
6969f178 | 12747 | echo "configure:12748: checking for pangoft2" >&5 |
f09359cf VS |
12748 | |
12749 | if $PKG_CONFIG --exists "pangoft2" ; then | |
a0b9e27f | 12750 | echo "$ac_t""yes" 1>&6 |
f09359cf VS |
12751 | succeeded=yes |
12752 | ||
a0b9e27f | 12753 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 |
6969f178 | 12754 | echo "configure:12755: checking PANGOFT2_CFLAGS" >&5 |
f09359cf | 12755 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
a0b9e27f | 12756 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 |
f09359cf | 12757 | |
a0b9e27f | 12758 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 |
6969f178 | 12759 | echo "configure:12760: checking PANGOFT2_LIBS" >&5 |
f09359cf | 12760 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
a0b9e27f | 12761 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 |
f09359cf VS |
12762 | else |
12763 | PANGOFT2_CFLAGS="" | |
12764 | PANGOFT2_LIBS="" | |
a0b9e27f | 12765 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
12766 | ## do set a variable so people can do so. |
12767 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
a0b9e27f | 12768 | |
f09359cf VS |
12769 | fi |
12770 | ||
a0b9e27f MB |
12771 | |
12772 | ||
f09359cf VS |
12773 | else |
12774 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
12775 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
12776 | fi | |
12777 | fi | |
12778 | ||
12779 | if test $succeeded = yes; then | |
a0b9e27f | 12780 | |
b13cd66e VZ |
12781 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
12782 | LIBS="$LIBS $PANGOFT2_LIBS" | |
a0b9e27f | 12783 | |
f09359cf | 12784 | else |
a0b9e27f MB |
12785 | |
12786 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
b13cd66e | 12787 | wxUSE_PRINTING_ARCHITECTURE="no" |
a0b9e27f MB |
12788 | |
12789 | ||
f09359cf VS |
12790 | fi |
12791 | ||
b13cd66e | 12792 | fi |
f09359cf VS |
12793 | fi |
12794 | ||
21d1c967 GD |
12795 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
12796 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
12797 | ||
12798 | AFMINSTALL=afminstall | |
12799 | TOOLKIT=GTK | |
12800 | GUIDIST=GTK_DIST | |
12801 | ||
a0b9e27f | 12802 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
6969f178 | 12803 | echo "configure:12804: checking for gdk_im_open in -lgdk" >&5 |
a0b9e27f MB |
12804 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
12805 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12806 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 12807 | else |
a0b9e27f | 12808 | ac_save_LIBS="$LIBS" |
21d1c967 | 12809 | LIBS="-lgdk $LIBS" |
a0b9e27f | 12810 | cat > conftest.$ac_ext <<EOF |
6969f178 | 12811 | #line 12812 "configure" |
90dd450c | 12812 | #include "confdefs.h" |
5c6fa7d2 | 12813 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 12814 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
12815 | builtin and then its argument prototype would still apply. */ |
12816 | char gdk_im_open(); | |
12817 | ||
12818 | int main() { | |
12819 | gdk_im_open() | |
12820 | ; return 0; } | |
12821 | EOF | |
6969f178 | 12822 | if { (eval echo configure:12823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12823 | rm -rf conftest* |
12824 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12825 | else | |
12826 | echo "configure: failed program was:" >&5 | |
12827 | cat conftest.$ac_ext >&5 | |
12828 | rm -rf conftest* | |
12829 | eval "ac_cv_lib_$ac_lib_var=no" | |
12830 | fi | |
12831 | rm -f conftest* | |
12832 | LIBS="$ac_save_LIBS" | |
12833 | ||
12834 | fi | |
12835 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12836 | echo "$ac_t""yes" 1>&6 | |
12837 | cat >> confdefs.h <<\EOF | |
21d1c967 | 12838 | #define HAVE_XIM 1 |
a0b9e27f | 12839 | EOF |
21d1c967 | 12840 | |
a0b9e27f MB |
12841 | else |
12842 | echo "$ac_t""no" 1>&6 | |
90dd450c | 12843 | fi |
1e6feb95 | 12844 | |
21d1c967 | 12845 | fi |
1e6feb95 | 12846 | |
21d1c967 | 12847 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 12848 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
6969f178 | 12849 | echo "configure:12850: checking for SciTech MGL library" >&5 |
21d1c967 | 12850 | if test "x$MGL_ROOT" = x ; then |
a0b9e27f MB |
12851 | echo "$ac_t""not found" 1>&6 |
12852 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
21d1c967 | 12853 | else |
a0b9e27f | 12854 | echo "$ac_t""$MGL_ROOT" 1>&6 |
21d1c967 GD |
12855 | fi |
12856 | ||
12857 | case "${host}" in | |
12858 | *-*-linux* ) | |
12859 | mgl_os=linux/gcc/glibc | |
12860 | ;; | |
12861 | *-pc-msdosdjgpp ) | |
12862 | mgl_os=dos32/dj2 | |
12863 | ;; | |
12864 | *) | |
a0b9e27f | 12865 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } |
21d1c967 | 12866 | esac |
1e6feb95 | 12867 | |
21d1c967 | 12868 | mgl_lib_type="" |
3fcdd07b | 12869 | |
21d1c967 GD |
12870 | if test "$wxUSE_DEBUG_FLAG" = yes ; then |
12871 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ | |
12872 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
12873 | mgl_lib_type=debug | |
12874 | fi | |
12875 | fi | |
12876 | if test "x$mgl_lib_type" = x ; then | |
12877 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ | |
12878 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
12879 | mgl_lib_type=release | |
12880 | else | |
a0b9e27f | 12881 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } |
21d1c967 | 12882 | fi |
90dd450c | 12883 | fi |
2224580a | 12884 | |
1d1b75ac VZ |
12885 | wxUSE_UNIVERSAL="yes" |
12886 | ||
21d1c967 GD |
12887 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
12888 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
12889 | ||
90dd450c | 12890 | AFMINSTALL=afminstall |
21d1c967 GD |
12891 | TOOLKIT=MGL |
12892 | GUIDIST=MGL_DIST | |
12893 | fi | |
dad6c0ea | 12894 | |
21d1c967 | 12895 | if test "$wxUSE_MICROWIN" = 1; then |
a0b9e27f | 12896 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 |
6969f178 | 12897 | echo "configure:12898: checking for MicroWindows" >&5 |
21d1c967 | 12898 | if test "x$MICROWINDOWS" = x ; then |
a0b9e27f MB |
12899 | echo "$ac_t""not found" 1>&6 |
12900 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
21d1c967 | 12901 | else |
a0b9e27f | 12902 | echo "$ac_t""$MICROWINDOWS" 1>&6 |
21d1c967 | 12903 | fi |
f6bcfd97 | 12904 | |
21d1c967 | 12905 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
a0b9e27f | 12906 | echo "$ac_t""MicroWindows' libraries found." 1>&6 |
21d1c967 | 12907 | else |
a0b9e27f | 12908 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } |
90dd450c | 12909 | fi |
0b2effe9 | 12910 | |
21d1c967 GD |
12911 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
12912 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
12913 | ||
1d1b75ac VZ |
12914 | wxUSE_UNIVERSAL="yes" |
12915 | ||
21d1c967 GD |
12916 | AFMINSTALL=afminstall |
12917 | TOOLKIT=MICROWIN | |
12918 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
12919 | |
12920 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 12921 | fi |
f6bcfd97 | 12922 | |
21d1c967 | 12923 | if test "$wxUSE_X11" = 1; then |
a0b9e27f MB |
12924 | # If we find X, set shell vars x_includes and x_libraries to the |
12925 | # paths, otherwise set no_x=yes. | |
12926 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
12927 | # --without-x overrides everything else, but does not touch the cache. | |
12928 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
6969f178 | 12929 | echo "configure:12930: checking for X" >&5 |
d8356fa3 | 12930 | |
21d1c967 GD |
12931 | # Check whether --with-x or --without-x was given. |
12932 | if test "${with_x+set}" = set; then | |
12933 | withval="$with_x" | |
a0b9e27f MB |
12934 | : |
12935 | fi | |
2224580a | 12936 | |
21d1c967 GD |
12937 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
12938 | if test "x$with_x" = xno; then | |
12939 | # The user explicitly disabled X. | |
12940 | have_x=disabled | |
12941 | else | |
12942 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
12943 | # Both variables are already set. | |
12944 | have_x=yes | |
12945 | else | |
a0b9e27f MB |
12946 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
12947 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 GD |
12948 | else |
12949 | # One or both of the vars are not set, and there is no cached value. | |
a0b9e27f MB |
12950 | ac_x_includes=NO ac_x_libraries=NO |
12951 | rm -fr conftestdir | |
12952 | if mkdir conftestdir; then | |
12953 | cd conftestdir | |
21d1c967 | 12954 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
a0b9e27f | 12955 | cat > Imakefile <<'EOF' |
21d1c967 GD |
12956 | acfindx: |
12957 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
a0b9e27f | 12958 | EOF |
21d1c967 GD |
12959 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
12960 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
12961 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
12962 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
12963 | for ac_extension in a so sl; do | |
12964 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
a0b9e27f | 12965 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
12966 | ac_im_usrlibdir=$ac_im_libdir; break |
12967 | fi | |
12968 | done | |
12969 | # Screen out bogus values from the imake configuration. They are | |
12970 | # bogus both because they are the default anyway, and because | |
12971 | # using them would break gcc on systems where it needs fixed includes. | |
a0b9e27f | 12972 | case "$ac_im_incroot" in |
21d1c967 | 12973 | /usr/include) ;; |
a0b9e27f | 12974 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
21d1c967 | 12975 | esac |
a0b9e27f | 12976 | case "$ac_im_usrlibdir" in |
21d1c967 | 12977 | /usr/lib | /lib) ;; |
a0b9e27f | 12978 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
21d1c967 GD |
12979 | esac |
12980 | fi | |
12981 | cd .. | |
a0b9e27f | 12982 | rm -fr conftestdir |
21d1c967 | 12983 | fi |
10f2d63a | 12984 | |
a0b9e27f MB |
12985 | if test "$ac_x_includes" = NO; then |
12986 | # Guess where to find include files, by looking for this one X11 .h file. | |
12987 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
12988 | ||
21d1c967 | 12989 | # First, try using that file with no special directory specified. |
a0b9e27f | 12990 | cat > conftest.$ac_ext <<EOF |
6969f178 | 12991 | #line 12992 "configure" |
21d1c967 | 12992 | #include "confdefs.h" |
a0b9e27f MB |
12993 | #include <$x_direct_test_include> |
12994 | EOF | |
12995 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 12996 | { (eval echo configure:12997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12997 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12998 | if test -z "$ac_err"; then | |
12999 | rm -rf conftest* | |
21d1c967 GD |
13000 | # We can compile using X headers with no special include directory. |
13001 | ac_x_includes= | |
90dd450c | 13002 | else |
a0b9e27f MB |
13003 | echo "$ac_err" >&5 |
13004 | echo "configure: failed program was:" >&5 | |
90dd450c | 13005 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
13006 | rm -rf conftest* |
13007 | # Look for the header file in a standard set of common directories. | |
13008 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13009 | for ac_dir in \ | |
13010 | /usr/X11/include \ | |
13011 | /usr/X11R6/include \ | |
13012 | /usr/X11R5/include \ | |
13013 | /usr/X11R4/include \ | |
13014 | \ | |
13015 | /usr/include/X11 \ | |
13016 | /usr/include/X11R6 \ | |
13017 | /usr/include/X11R5 \ | |
13018 | /usr/include/X11R4 \ | |
13019 | \ | |
13020 | /usr/local/X11/include \ | |
13021 | /usr/local/X11R6/include \ | |
13022 | /usr/local/X11R5/include \ | |
13023 | /usr/local/X11R4/include \ | |
13024 | \ | |
13025 | /usr/local/include/X11 \ | |
13026 | /usr/local/include/X11R6 \ | |
13027 | /usr/local/include/X11R5 \ | |
13028 | /usr/local/include/X11R4 \ | |
13029 | \ | |
13030 | /usr/X386/include \ | |
13031 | /usr/x386/include \ | |
13032 | /usr/XFree86/include/X11 \ | |
13033 | \ | |
13034 | /usr/include \ | |
13035 | /usr/local/include \ | |
13036 | /usr/unsupported/include \ | |
13037 | /usr/athena/include \ | |
13038 | /usr/local/x11r5/include \ | |
13039 | /usr/lpp/Xamples/include \ | |
13040 | \ | |
13041 | /usr/openwin/include \ | |
13042 | /usr/openwin/share/include \ | |
13043 | ; \ | |
13044 | do | |
13045 | if test -r "$ac_dir/$x_direct_test_include"; then | |
13046 | ac_x_includes=$ac_dir | |
13047 | break | |
13048 | fi | |
13049 | done | |
3a922bb4 | 13050 | fi |
a0b9e27f MB |
13051 | rm -f conftest* |
13052 | fi # $ac_x_includes = NO | |
10f2d63a | 13053 | |
a0b9e27f | 13054 | if test "$ac_x_libraries" = NO; then |
21d1c967 | 13055 | # Check for the libraries. |
a0b9e27f MB |
13056 | |
13057 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
13058 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
13059 | ||
21d1c967 GD |
13060 | # See if we find them without any special options. |
13061 | # Don't add to $LIBS permanently. | |
a0b9e27f MB |
13062 | ac_save_LIBS="$LIBS" |
13063 | LIBS="-l$x_direct_test_library $LIBS" | |
13064 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 13065 | #line 13066 "configure" |
3a922bb4 | 13066 | #include "confdefs.h" |
a0b9e27f MB |
13067 | |
13068 | int main() { | |
13069 | ${x_direct_test_function}() | |
13070 | ; return 0; } | |
13071 | EOF | |
6969f178 | 13072 | if { (eval echo configure:13073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13073 | rm -rf conftest* |
13074 | LIBS="$ac_save_LIBS" | |
21d1c967 GD |
13075 | # We can link X programs with no special library path. |
13076 | ac_x_libraries= | |
3a922bb4 | 13077 | else |
a0b9e27f MB |
13078 | echo "configure: failed program was:" >&5 |
13079 | cat conftest.$ac_ext >&5 | |
13080 | rm -rf conftest* | |
13081 | LIBS="$ac_save_LIBS" | |
13082 | # First see if replacing the include by lib works. | |
13083 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13084 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
13085 | /usr/X11/lib \ | |
13086 | /usr/X11R6/lib \ | |
13087 | /usr/X11R5/lib \ | |
13088 | /usr/X11R4/lib \ | |
13089 | \ | |
13090 | /usr/lib/X11 \ | |
13091 | /usr/lib/X11R6 \ | |
13092 | /usr/lib/X11R5 \ | |
13093 | /usr/lib/X11R4 \ | |
13094 | \ | |
13095 | /usr/local/X11/lib \ | |
13096 | /usr/local/X11R6/lib \ | |
13097 | /usr/local/X11R5/lib \ | |
13098 | /usr/local/X11R4/lib \ | |
13099 | \ | |
13100 | /usr/local/lib/X11 \ | |
13101 | /usr/local/lib/X11R6 \ | |
13102 | /usr/local/lib/X11R5 \ | |
13103 | /usr/local/lib/X11R4 \ | |
13104 | \ | |
13105 | /usr/X386/lib \ | |
13106 | /usr/x386/lib \ | |
13107 | /usr/XFree86/lib/X11 \ | |
13108 | \ | |
13109 | /usr/lib \ | |
13110 | /usr/local/lib \ | |
13111 | /usr/unsupported/lib \ | |
13112 | /usr/athena/lib \ | |
13113 | /usr/local/x11r5/lib \ | |
13114 | /usr/lpp/Xamples/lib \ | |
13115 | /lib/usr/lib/X11 \ | |
13116 | \ | |
13117 | /usr/openwin/lib \ | |
13118 | /usr/openwin/share/lib \ | |
13119 | ; \ | |
21d1c967 GD |
13120 | do |
13121 | for ac_extension in a so sl; do | |
a0b9e27f | 13122 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
21d1c967 GD |
13123 | ac_x_libraries=$ac_dir |
13124 | break 2 | |
13125 | fi | |
13126 | done | |
13127 | done | |
3a922bb4 | 13128 | fi |
a0b9e27f MB |
13129 | rm -f conftest* |
13130 | fi # $ac_x_libraries = NO | |
90dd450c | 13131 | |
a0b9e27f | 13132 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
21d1c967 GD |
13133 | # Didn't find X anywhere. Cache the known absence of X. |
13134 | ac_cv_have_x="have_x=no" | |
13135 | else | |
13136 | # Record where we found X for the cache. | |
13137 | ac_cv_have_x="have_x=yes \ | |
13138 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 13139 | fi |
21d1c967 GD |
13140 | fi |
13141 | fi | |
13142 | eval "$ac_cv_have_x" | |
13143 | fi # $with_x != no | |
90dd450c | 13144 | |
21d1c967 | 13145 | if test "$have_x" != yes; then |
a0b9e27f | 13146 | echo "$ac_t""$have_x" 1>&6 |
21d1c967 GD |
13147 | no_x=yes |
13148 | else | |
13149 | # If each of the values was on the command line, it overrides each guess. | |
13150 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
13151 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
13152 | # Update the cache value to reflect the command line values. | |
13153 | ac_cv_have_x="have_x=yes \ | |
13154 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
a0b9e27f | 13155 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
21d1c967 | 13156 | fi |
90dd450c | 13157 | |
21d1c967 | 13158 | if test "$no_x" = yes; then |
90dd450c | 13159 | # Not all programs may use this symbol, but it does not hurt to define it. |
a0b9e27f | 13160 | cat >> confdefs.h <<\EOF |
90dd450c | 13161 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 13162 | EOF |
90dd450c VZ |
13163 | |
13164 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13165 | else | |
13166 | if test -n "$x_includes"; then | |
13167 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 13168 | fi |
3a922bb4 | 13169 | |
90dd450c VZ |
13170 | # It would also be nice to do this for all -L options, not just this one. |
13171 | if test -n "$x_libraries"; then | |
13172 | X_LIBS="$X_LIBS -L$x_libraries" | |
13173 | # For Solaris; some versions of Sun CC require a space after -R and | |
13174 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 13175 | case "`(uname -sr) 2>/dev/null`" in |
90dd450c | 13176 | "SunOS 5"*) |
a0b9e27f | 13177 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
6969f178 | 13178 | echo "configure:13179: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
13179 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
13180 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 13181 | #line 13182 "configure" |
90dd450c VZ |
13182 | #include "confdefs.h" |
13183 | ||
a0b9e27f | 13184 | int main() { |
90dd450c | 13185 | |
a0b9e27f MB |
13186 | ; return 0; } |
13187 | EOF | |
6969f178 | 13188 | if { (eval echo configure:13189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13189 | rm -rf conftest* |
90dd450c | 13190 | ac_R_nospace=yes |
3a922bb4 | 13191 | else |
a0b9e27f MB |
13192 | echo "configure: failed program was:" >&5 |
13193 | cat conftest.$ac_ext >&5 | |
13194 | rm -rf conftest* | |
13195 | ac_R_nospace=no | |
3a922bb4 | 13196 | fi |
a0b9e27f | 13197 | rm -f conftest* |
90dd450c | 13198 | if test $ac_R_nospace = yes; then |
a0b9e27f | 13199 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
13200 | X_LIBS="$X_LIBS -R$x_libraries" |
13201 | else | |
13202 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 13203 | cat > conftest.$ac_ext <<EOF |
6969f178 | 13204 | #line 13205 "configure" |
90dd450c | 13205 | #include "confdefs.h" |
3a922bb4 | 13206 | |
a0b9e27f | 13207 | int main() { |
6f754473 | 13208 | |
a0b9e27f MB |
13209 | ; return 0; } |
13210 | EOF | |
6969f178 | 13211 | if { (eval echo configure:13212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13212 | rm -rf conftest* |
90dd450c VZ |
13213 | ac_R_space=yes |
13214 | else | |
a0b9e27f MB |
13215 | echo "configure: failed program was:" >&5 |
13216 | cat conftest.$ac_ext >&5 | |
13217 | rm -rf conftest* | |
13218 | ac_R_space=no | |
90dd450c | 13219 | fi |
a0b9e27f | 13220 | rm -f conftest* |
90dd450c | 13221 | if test $ac_R_space = yes; then |
a0b9e27f | 13222 | echo "$ac_t""yes" 1>&6 |
90dd450c VZ |
13223 | X_LIBS="$X_LIBS -R $x_libraries" |
13224 | else | |
a0b9e27f | 13225 | echo "$ac_t""neither works" 1>&6 |
90dd450c VZ |
13226 | fi |
13227 | fi | |
a0b9e27f | 13228 | LIBS="$ac_xsave_LIBS" |
90dd450c VZ |
13229 | esac |
13230 | fi | |
13231 | ||
13232 | # Check for system-dependent libraries X programs must link with. | |
13233 | # Do this before checking for the system-independent R6 libraries | |
13234 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 13235 | |
90dd450c VZ |
13236 | if test "$ISC" = yes; then |
13237 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13238 | else | |
a0b9e27f MB |
13239 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
13240 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
90dd450c | 13241 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 13242 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
6969f178 | 13243 | echo "configure:13244: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
13244 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13245 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13246 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 13247 | else |
a0b9e27f | 13248 | ac_save_LIBS="$LIBS" |
247f5006 | 13249 | LIBS="-ldnet $LIBS" |
a0b9e27f | 13250 | cat > conftest.$ac_ext <<EOF |
6969f178 | 13251 | #line 13252 "configure" |
247f5006 | 13252 | #include "confdefs.h" |
247f5006 | 13253 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 13254 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13255 | builtin and then its argument prototype would still apply. */ |
13256 | char dnet_ntoa(); | |
13257 | ||
13258 | int main() { | |
13259 | dnet_ntoa() | |
13260 | ; return 0; } | |
13261 | EOF | |
6969f178 | 13262 | if { (eval echo configure:13263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13263 | rm -rf conftest* |
13264 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13265 | else | |
13266 | echo "configure: failed program was:" >&5 | |
13267 | cat conftest.$ac_ext >&5 | |
13268 | rm -rf conftest* | |
13269 | eval "ac_cv_lib_$ac_lib_var=no" | |
13270 | fi | |
13271 | rm -f conftest* | |
13272 | LIBS="$ac_save_LIBS" | |
13273 | ||
13274 | fi | |
13275 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13276 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13277 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
13278 | else |
13279 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13280 | fi |
13281 | ||
90dd450c | 13282 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 13283 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
6969f178 | 13284 | echo "configure:13285: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
13285 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13286 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13287 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13288 | else |
a0b9e27f | 13289 | ac_save_LIBS="$LIBS" |
90dd450c | 13290 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 13291 | cat > conftest.$ac_ext <<EOF |
6969f178 | 13292 | #line 13293 "configure" |
90dd450c VZ |
13293 | #include "confdefs.h" |
13294 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13295 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13296 | builtin and then its argument prototype would still apply. */ |
13297 | char dnet_ntoa(); | |
13298 | ||
13299 | int main() { | |
13300 | dnet_ntoa() | |
13301 | ; return 0; } | |
13302 | EOF | |
6969f178 | 13303 | if { (eval echo configure:13304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13304 | rm -rf conftest* |
13305 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13306 | else | |
13307 | echo "configure: failed program was:" >&5 | |
13308 | cat conftest.$ac_ext >&5 | |
13309 | rm -rf conftest* | |
13310 | eval "ac_cv_lib_$ac_lib_var=no" | |
13311 | fi | |
13312 | rm -f conftest* | |
13313 | LIBS="$ac_save_LIBS" | |
13314 | ||
13315 | fi | |
13316 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13317 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13318 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
13319 | else |
13320 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13321 | fi |
13322 | ||
90dd450c | 13323 | fi |
978f1259 | 13324 | |
90dd450c VZ |
13325 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13326 | # to get the SysV transport functions. | |
a0b9e27f | 13327 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
13328 | # needs -lnsl. |
13329 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
13330 | # on Irix 5.2, according to dickey@clark.net. |
13331 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
6969f178 | 13332 | echo "configure:13333: checking for gethostbyname" >&5 |
a0b9e27f MB |
13333 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13334 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13335 | else | |
13336 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 13337 | #line 13338 "configure" |
90dd450c VZ |
13338 | #include "confdefs.h" |
13339 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 13340 | which can conflict with char gethostbyname(); below. */ |
90dd450c VZ |
13341 | #include <assert.h> |
13342 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13343 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13344 | builtin and then its argument prototype would still apply. */ |
13345 | char gethostbyname(); | |
13346 | ||
13347 | int main() { | |
13348 | ||
90dd450c VZ |
13349 | /* The GNU C library defines this for functions which it implements |
13350 | to always fail with ENOSYS. Some functions are actually named | |
13351 | something starting with __ and the normal name is an alias. */ | |
13352 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13353 | choke me | |
13354 | #else | |
a0b9e27f | 13355 | gethostbyname(); |
90dd450c | 13356 | #endif |
978f1259 | 13357 | |
a0b9e27f MB |
13358 | ; return 0; } |
13359 | EOF | |
6969f178 | 13360 | if { (eval echo configure:13361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13361 | rm -rf conftest* |
13362 | eval "ac_cv_func_gethostbyname=yes" | |
13363 | else | |
13364 | echo "configure: failed program was:" >&5 | |
13365 | cat conftest.$ac_ext >&5 | |
13366 | rm -rf conftest* | |
13367 | eval "ac_cv_func_gethostbyname=no" | |
13368 | fi | |
13369 | rm -f conftest* | |
13370 | fi | |
13371 | ||
13372 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
13373 | echo "$ac_t""yes" 1>&6 | |
13374 | : | |
13375 | else | |
13376 | echo "$ac_t""no" 1>&6 | |
13377 | fi | |
698dcdb6 | 13378 | |
90dd450c | 13379 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 13380 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
6969f178 | 13381 | echo "configure:13382: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
13382 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13383 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13384 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13385 | else |
a0b9e27f | 13386 | ac_save_LIBS="$LIBS" |
90dd450c | 13387 | LIBS="-lnsl $LIBS" |
a0b9e27f | 13388 | cat > conftest.$ac_ext <<EOF |
6969f178 | 13389 | #line 13390 "configure" |
90dd450c VZ |
13390 | #include "confdefs.h" |
13391 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13392 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13393 | builtin and then its argument prototype would still apply. */ |
13394 | char gethostbyname(); | |
5c6fa7d2 | 13395 | |
a0b9e27f MB |
13396 | int main() { |
13397 | gethostbyname() | |
13398 | ; return 0; } | |
13399 | EOF | |
6969f178 | 13400 | if { (eval echo configure:13401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13401 | rm -rf conftest* |
13402 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 13403 | else |
a0b9e27f MB |
13404 | echo "configure: failed program was:" >&5 |
13405 | cat conftest.$ac_ext >&5 | |
13406 | rm -rf conftest* | |
13407 | eval "ac_cv_lib_$ac_lib_var=no" | |
13408 | fi | |
13409 | rm -f conftest* | |
13410 | LIBS="$ac_save_LIBS" | |
247f5006 | 13411 | |
a0b9e27f MB |
13412 | fi |
13413 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13414 | echo "$ac_t""yes" 1>&6 | |
13415 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13416 | else | |
13417 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13418 | fi |
b12915c1 | 13419 | |
90dd450c VZ |
13420 | fi |
13421 | ||
13422 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
13423 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13424 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
13425 | # on later versions), says simon@lia.di.epfl.ch: it contains |
13426 | # gethostby* variants that don't use the nameserver (or something). | |
13427 | # -lsocket must be given before -lnsl if both are needed. | |
13428 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
13429 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
6969f178 | 13430 | echo "configure:13431: checking for connect" >&5 |
a0b9e27f MB |
13431 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
13432 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13433 | else | |
13434 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 13435 | #line 13436 "configure" |
55e80573 | 13436 | #include "confdefs.h" |
90dd450c | 13437 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 13438 | which can conflict with char connect(); below. */ |
90dd450c VZ |
13439 | #include <assert.h> |
13440 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13441 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13442 | builtin and then its argument prototype would still apply. */ |
13443 | char connect(); | |
13444 | ||
13445 | int main() { | |
13446 | ||
90dd450c VZ |
13447 | /* The GNU C library defines this for functions which it implements |
13448 | to always fail with ENOSYS. Some functions are actually named | |
13449 | something starting with __ and the normal name is an alias. */ | |
13450 | #if defined (__stub_connect) || defined (__stub___connect) | |
13451 | choke me | |
13452 | #else | |
a0b9e27f | 13453 | connect(); |
90dd450c VZ |
13454 | #endif |
13455 | ||
a0b9e27f MB |
13456 | ; return 0; } |
13457 | EOF | |
6969f178 | 13458 | if { (eval echo configure:13459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13459 | rm -rf conftest* |
13460 | eval "ac_cv_func_connect=yes" | |
13461 | else | |
13462 | echo "configure: failed program was:" >&5 | |
13463 | cat conftest.$ac_ext >&5 | |
13464 | rm -rf conftest* | |
13465 | eval "ac_cv_func_connect=no" | |
13466 | fi | |
13467 | rm -f conftest* | |
13468 | fi | |
13469 | ||
13470 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
13471 | echo "$ac_t""yes" 1>&6 | |
13472 | : | |
13473 | else | |
13474 | echo "$ac_t""no" 1>&6 | |
13475 | fi | |
55e80573 | 13476 | |
90dd450c | 13477 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 13478 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
6969f178 | 13479 | echo "configure:13480: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
13480 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
13481 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13482 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13483 | else |
a0b9e27f | 13484 | ac_save_LIBS="$LIBS" |
90dd450c | 13485 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 13486 | cat > conftest.$ac_ext <<EOF |
6969f178 | 13487 | #line 13488 "configure" |
90dd450c VZ |
13488 | #include "confdefs.h" |
13489 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13490 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13491 | builtin and then its argument prototype would still apply. */ |
13492 | char connect(); | |
13493 | ||
13494 | int main() { | |
13495 | connect() | |
13496 | ; return 0; } | |
13497 | EOF | |
6969f178 | 13498 | if { (eval echo configure:13499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13499 | rm -rf conftest* |
13500 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13501 | else | |
13502 | echo "configure: failed program was:" >&5 | |
13503 | cat conftest.$ac_ext >&5 | |
13504 | rm -rf conftest* | |
13505 | eval "ac_cv_lib_$ac_lib_var=no" | |
13506 | fi | |
13507 | rm -f conftest* | |
13508 | LIBS="$ac_save_LIBS" | |
13509 | ||
13510 | fi | |
13511 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13512 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13513 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
13514 | else |
13515 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13516 | fi |
77e13408 | 13517 | |
90dd450c | 13518 | fi |
25d0687a | 13519 | |
a0b9e27f MB |
13520 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
13521 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
6969f178 | 13522 | echo "configure:13523: checking for remove" >&5 |
a0b9e27f MB |
13523 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
13524 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13525 | else |
a0b9e27f | 13526 | cat > conftest.$ac_ext <<EOF |
6969f178 | 13527 | #line 13528 "configure" |
90dd450c VZ |
13528 | #include "confdefs.h" |
13529 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 13530 | which can conflict with char remove(); below. */ |
90dd450c VZ |
13531 | #include <assert.h> |
13532 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13533 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13534 | builtin and then its argument prototype would still apply. */ |
13535 | char remove(); | |
13536 | ||
13537 | int main() { | |
13538 | ||
90dd450c VZ |
13539 | /* The GNU C library defines this for functions which it implements |
13540 | to always fail with ENOSYS. Some functions are actually named | |
13541 | something starting with __ and the normal name is an alias. */ | |
13542 | #if defined (__stub_remove) || defined (__stub___remove) | |
13543 | choke me | |
13544 | #else | |
a0b9e27f | 13545 | remove(); |
90dd450c | 13546 | #endif |
55e80573 | 13547 | |
a0b9e27f MB |
13548 | ; return 0; } |
13549 | EOF | |
6969f178 | 13550 | if { (eval echo configure:13551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13551 | rm -rf conftest* |
13552 | eval "ac_cv_func_remove=yes" | |
13553 | else | |
13554 | echo "configure: failed program was:" >&5 | |
13555 | cat conftest.$ac_ext >&5 | |
13556 | rm -rf conftest* | |
13557 | eval "ac_cv_func_remove=no" | |
13558 | fi | |
13559 | rm -f conftest* | |
13560 | fi | |
13561 | ||
13562 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
13563 | echo "$ac_t""yes" 1>&6 | |
13564 | : | |
13565 | else | |
13566 | echo "$ac_t""no" 1>&6 | |
13567 | fi | |
10f2d63a | 13568 | |
90dd450c | 13569 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 13570 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
6969f178 | 13571 | echo "configure:13572: checking for remove in -lposix" >&5 |
a0b9e27f MB |
13572 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
13573 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13574 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13575 | else |
a0b9e27f | 13576 | ac_save_LIBS="$LIBS" |
90dd450c | 13577 | LIBS="-lposix $LIBS" |
a0b9e27f | 13578 | cat > conftest.$ac_ext <<EOF |
6969f178 | 13579 | #line 13580 "configure" |
90dd450c VZ |
13580 | #include "confdefs.h" |
13581 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13582 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13583 | builtin and then its argument prototype would still apply. */ |
13584 | char remove(); | |
13585 | ||
13586 | int main() { | |
13587 | remove() | |
13588 | ; return 0; } | |
13589 | EOF | |
6969f178 | 13590 | if { (eval echo configure:13591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13591 | rm -rf conftest* |
13592 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13593 | else | |
13594 | echo "configure: failed program was:" >&5 | |
13595 | cat conftest.$ac_ext >&5 | |
13596 | rm -rf conftest* | |
13597 | eval "ac_cv_lib_$ac_lib_var=no" | |
13598 | fi | |
13599 | rm -f conftest* | |
13600 | LIBS="$ac_save_LIBS" | |
13601 | ||
13602 | fi | |
13603 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13604 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13605 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
13606 | else |
13607 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13608 | fi |
f6bcfd97 | 13609 | |
6fa882bd RR |
13610 | fi |
13611 | ||
90dd450c | 13612 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 13613 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
6969f178 | 13614 | echo "configure:13615: checking for shmat" >&5 |
a0b9e27f MB |
13615 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
13616 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13617 | else |
a0b9e27f | 13618 | cat > conftest.$ac_ext <<EOF |
6969f178 | 13619 | #line 13620 "configure" |
90dd450c VZ |
13620 | #include "confdefs.h" |
13621 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 13622 | which can conflict with char shmat(); below. */ |
90dd450c VZ |
13623 | #include <assert.h> |
13624 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13625 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13626 | builtin and then its argument prototype would still apply. */ |
13627 | char shmat(); | |
13628 | ||
13629 | int main() { | |
13630 | ||
90dd450c VZ |
13631 | /* The GNU C library defines this for functions which it implements |
13632 | to always fail with ENOSYS. Some functions are actually named | |
13633 | something starting with __ and the normal name is an alias. */ | |
13634 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
13635 | choke me | |
13636 | #else | |
a0b9e27f | 13637 | shmat(); |
90dd450c | 13638 | #endif |
10f2d63a | 13639 | |
a0b9e27f MB |
13640 | ; return 0; } |
13641 | EOF | |
6969f178 | 13642 | if { (eval echo configure:13643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13643 | rm -rf conftest* |
13644 | eval "ac_cv_func_shmat=yes" | |
13645 | else | |
13646 | echo "configure: failed program was:" >&5 | |
13647 | cat conftest.$ac_ext >&5 | |
13648 | rm -rf conftest* | |
13649 | eval "ac_cv_func_shmat=no" | |
13650 | fi | |
13651 | rm -f conftest* | |
13652 | fi | |
13653 | ||
13654 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
13655 | echo "$ac_t""yes" 1>&6 | |
13656 | : | |
13657 | else | |
13658 | echo "$ac_t""no" 1>&6 | |
13659 | fi | |
d08b457b | 13660 | |
90dd450c | 13661 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 13662 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
6969f178 | 13663 | echo "configure:13664: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
13664 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
13665 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13666 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d08b457b | 13667 | else |
a0b9e27f | 13668 | ac_save_LIBS="$LIBS" |
90dd450c | 13669 | LIBS="-lipc $LIBS" |
a0b9e27f | 13670 | cat > conftest.$ac_ext <<EOF |
6969f178 | 13671 | #line 13672 "configure" |
90dd450c | 13672 | #include "confdefs.h" |
8284b0c5 | 13673 | /* Override any gcc2 internal prototype to avoid an error. */ |
90dd450c | 13674 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13675 | builtin and then its argument prototype would still apply. */ |
13676 | char shmat(); | |
13677 | ||
13678 | int main() { | |
13679 | shmat() | |
13680 | ; return 0; } | |
13681 | EOF | |
6969f178 | 13682 | if { (eval echo configure:13683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13683 | rm -rf conftest* |
13684 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13685 | else | |
13686 | echo "configure: failed program was:" >&5 | |
13687 | cat conftest.$ac_ext >&5 | |
13688 | rm -rf conftest* | |
13689 | eval "ac_cv_lib_$ac_lib_var=no" | |
13690 | fi | |
13691 | rm -f conftest* | |
13692 | LIBS="$ac_save_LIBS" | |
13693 | ||
13694 | fi | |
13695 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13696 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13697 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
13698 | else |
13699 | echo "$ac_t""no" 1>&6 | |
d08b457b GD |
13700 | fi |
13701 | ||
d558c907 | 13702 | fi |
90dd450c | 13703 | fi |
3a922bb4 | 13704 | |
90dd450c | 13705 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 13706 | ac_save_LDFLAGS="$LDFLAGS" |
90dd450c VZ |
13707 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
13708 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
13709 | # check for ICE first), but we must link in the order -lSM -lICE or | |
13710 | # we get undefined symbols. So assume we have SM if we have ICE. | |
13711 | # These have to be linked with before -lX11, unlike the other | |
13712 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
13713 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
13714 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
6969f178 | 13715 | echo "configure:13716: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
13716 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
13717 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13718 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13719 | else | |
13720 | ac_save_LIBS="$LIBS" | |
f09359cf | 13721 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 13722 | cat > conftest.$ac_ext <<EOF |
6969f178 | 13723 | #line 13724 "configure" |
9cfadba2 | 13724 | #include "confdefs.h" |
90dd450c VZ |
13725 | /* Override any gcc2 internal prototype to avoid an error. */ |
13726 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13727 | builtin and then its argument prototype would still apply. */ |
13728 | char IceConnectionNumber(); | |
13729 | ||
13730 | int main() { | |
13731 | IceConnectionNumber() | |
13732 | ; return 0; } | |
13733 | EOF | |
6969f178 | 13734 | if { (eval echo configure:13735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13735 | rm -rf conftest* |
13736 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13737 | else | |
13738 | echo "configure: failed program was:" >&5 | |
13739 | cat conftest.$ac_ext >&5 | |
13740 | rm -rf conftest* | |
13741 | eval "ac_cv_lib_$ac_lib_var=no" | |
13742 | fi | |
13743 | rm -f conftest* | |
13744 | LIBS="$ac_save_LIBS" | |
13745 | ||
13746 | fi | |
13747 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13748 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13749 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
13750 | else |
13751 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 13752 | fi |
10f2d63a | 13753 | |
a0b9e27f | 13754 | LDFLAGS="$ac_save_LDFLAGS" |
90dd450c VZ |
13755 | |
13756 | fi | |
13757 | ||
8284b0c5 | 13758 | |
90dd450c | 13759 | if test "$no_x" = "yes"; then |
a0b9e27f | 13760 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
90dd450c VZ |
13761 | fi |
13762 | ||
13763 | GUI_TK_LIBRARY="$X_LIBS" | |
13764 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
13765 | AFMINSTALL=afminstall | |
13766 | COMPILED_X_PROGRAM=0 | |
13767 | ||
21d1c967 | 13768 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 13769 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 |
6969f178 | 13770 | echo "configure:13771: checking for MicroWindows/NanoX distribution" >&5 |
21d1c967 | 13771 | if test "x$MICROWIN" = x ; then |
a0b9e27f MB |
13772 | echo "$ac_t""not found" 1>&6 |
13773 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
90dd450c | 13774 | else |
a0b9e27f MB |
13775 | echo "$ac_t""$MICROWIN" 1>&6 |
13776 | cat >> confdefs.h <<\EOF | |
21d1c967 | 13777 | #define wxUSE_NANOX 1 |
a0b9e27f | 13778 | EOF |
21d1c967 | 13779 | |
90dd450c VZ |
13780 | fi |
13781 | fi | |
13782 | ||
13783 | xpm_link= | |
a0b9e27f | 13784 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
6969f178 | 13785 | echo "configure:13786: checking for Xpm library" >&5 |
a0b9e27f | 13786 | |
90dd450c VZ |
13787 | ac_find_libraries= |
13788 | for ac_dir in $SEARCH_LIB; | |
13789 | do | |
13790 | for ac_extension in a so sl dylib; do | |
13791 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
13792 | ac_find_libraries=$ac_dir | |
13793 | break 2 | |
13794 | fi | |
13795 | done | |
13796 | done | |
13797 | ||
13798 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 13799 | |
90dd450c VZ |
13800 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
13801 | result=$? | |
13802 | if test $result = 0; then | |
13803 | ac_path_to_link="" | |
13804 | else | |
13805 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 13806 | fi |
90dd450c | 13807 | |
21d1c967 GD |
13808 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
13809 | xpm_link=" -lXpm" | |
a0b9e27f | 13810 | cat >> confdefs.h <<\EOF |
21d1c967 | 13811 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 13812 | EOF |
90dd450c | 13813 | |
a0b9e27f | 13814 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 13815 | else |
a0b9e27f | 13816 | cat > conftest.$ac_ext <<EOF |
6969f178 | 13817 | #line 13818 "configure" |
21d1c967 | 13818 | #include "confdefs.h" |
90dd450c | 13819 | |
21d1c967 | 13820 | #include <X11/xpm.h> |
a0b9e27f MB |
13821 | |
13822 | int main() { | |
6f72b082 | 13823 | |
21d1c967 GD |
13824 | int version; |
13825 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
13826 | |
13827 | ; return 0; } | |
13828 | EOF | |
6969f178 | 13829 | if { (eval echo configure:13830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
13830 | rm -rf conftest* |
13831 | ||
21d1c967 | 13832 | xpm_link=" -lXpm" |
a0b9e27f | 13833 | cat >> confdefs.h <<\EOF |
21d1c967 | 13834 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 13835 | EOF |
90dd450c | 13836 | |
a0b9e27f | 13837 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 13838 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 13839 | |
21d1c967 | 13840 | else |
a0b9e27f MB |
13841 | echo "configure: failed program was:" >&5 |
13842 | cat conftest.$ac_ext >&5 | |
13843 | rm -rf conftest* | |
13844 | ||
13845 | echo "$ac_t""no" 1>&6 | |
13846 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13847 | ||
13848 | ||
6f72b082 | 13849 | fi |
a0b9e27f | 13850 | rm -f conftest* |
21d1c967 | 13851 | fi |
90dd450c | 13852 | |
1d1b75ac VZ |
13853 | wxUSE_UNIVERSAL="yes" |
13854 | ||
21d1c967 GD |
13855 | if test "$wxUSE_NANOX" = "yes"; then |
13856 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
13857 | 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" | |
13858 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
13859 | else | |
13860 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
13861 | fi | |
6f72b082 | 13862 | |
21d1c967 GD |
13863 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" |
13864 | TOOLKIT=X11 | |
13865 | GUIDIST=X11_DIST | |
13866 | fi | |
90dd450c | 13867 | |
21d1c967 | 13868 | if test "$wxUSE_WINE" = 1; then |
a0b9e27f MB |
13869 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
13870 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
6969f178 | 13871 | echo "configure:13872: checking for windows.h" >&5 |
a0b9e27f MB |
13872 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13873 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13874 | else | |
13875 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 13876 | #line 13877 "configure" |
247f5006 VZ |
13877 | #include "confdefs.h" |
13878 | #include <windows.h> | |
a0b9e27f MB |
13879 | EOF |
13880 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 13881 | { (eval echo configure:13882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
13882 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13883 | if test -z "$ac_err"; then | |
13884 | rm -rf conftest* | |
13885 | eval "ac_cv_header_$ac_safe=yes" | |
13886 | else | |
13887 | echo "$ac_err" >&5 | |
13888 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13889 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
13890 | rm -rf conftest* |
13891 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13892 | fi |
a0b9e27f | 13893 | rm -f conftest* |
10f2d63a | 13894 | fi |
a0b9e27f MB |
13895 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13896 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
13897 | : |
13898 | else | |
a0b9e27f | 13899 | echo "$ac_t""no" 1>&6 |
21d1c967 | 13900 | |
a0b9e27f MB |
13901 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
13902 | ||
5c6fa7d2 | 13903 | fi |
7b4a847f | 13904 | |
5c6fa7d2 | 13905 | |
8284b0c5 | 13906 | xpm_link= |
a0b9e27f | 13907 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
6969f178 | 13908 | echo "configure:13909: checking for Xpm library" >&5 |
a0b9e27f | 13909 | |
90dd450c VZ |
13910 | ac_find_libraries= |
13911 | for ac_dir in $SEARCH_LIB; | |
13912 | do | |
13913 | for ac_extension in a so sl dylib; do | |
21d1c967 | 13914 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
90dd450c VZ |
13915 | ac_find_libraries=$ac_dir |
13916 | break 2 | |
13917 | fi | |
13918 | done | |
13919 | done | |
13920 | ||
21d1c967 GD |
13921 | if test "$ac_find_libraries" != "" ; then |
13922 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
13923 | xpm_link=" -lXpm" | |
a0b9e27f | 13924 | cat >> confdefs.h <<\EOF |
21d1c967 | 13925 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 13926 | EOF |
90dd450c | 13927 | |
a0b9e27f | 13928 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 13929 | else |
a0b9e27f MB |
13930 | echo "$ac_t""no" 1>&6 |
13931 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
21d1c967 GD |
13932 | fi |
13933 | ||
13934 | mesa_link= | |
a0b9e27f | 13935 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 |
6969f178 | 13936 | echo "configure:13937: checking for Mesa library" >&5 |
a0b9e27f | 13937 | |
90dd450c VZ |
13938 | ac_find_libraries= |
13939 | for ac_dir in $SEARCH_LIB; | |
13940 | do | |
13941 | for ac_extension in a so sl dylib; do | |
13942 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
13943 | ac_find_libraries=$ac_dir | |
13944 | break 2 | |
13945 | fi | |
13946 | done | |
13947 | done | |
13948 | ||
21d1c967 GD |
13949 | if test "$ac_find_libraries" != "" ; then |
13950 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
13951 | mesa_link=" -lMesaGL" | |
a0b9e27f | 13952 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 13953 | else |
a0b9e27f | 13954 | { echo "configure: error: no" 1>&2; exit 1; } |
21d1c967 GD |
13955 | fi |
13956 | ||
13957 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
13958 | TOOLKIT=MSW | |
13959 | GUIDIST=MSW_DIST | |
13960 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
13961 | fi | |
13962 | ||
13963 | if test "$wxUSE_MOTIF" = 1; then | |
13964 | if test "$no_x" = yes; then | |
13965 | # Not all programs may use this symbol, but it does not hurt to define it. | |
a0b9e27f | 13966 | cat >> confdefs.h <<\EOF |
21d1c967 | 13967 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 13968 | EOF |
21d1c967 GD |
13969 | |
13970 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13971 | else | |
13972 | if test -n "$x_includes"; then | |
13973 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
13974 | fi |
13975 | ||
21d1c967 GD |
13976 | # It would also be nice to do this for all -L options, not just this one. |
13977 | if test -n "$x_libraries"; then | |
13978 | X_LIBS="$X_LIBS -L$x_libraries" | |
13979 | # For Solaris; some versions of Sun CC require a space after -R and | |
13980 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 13981 | case "`(uname -sr) 2>/dev/null`" in |
21d1c967 | 13982 | "SunOS 5"*) |
a0b9e27f | 13983 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
6969f178 | 13984 | echo "configure:13985: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
13985 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
13986 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 13987 | #line 13988 "configure" |
21d1c967 GD |
13988 | #include "confdefs.h" |
13989 | ||
a0b9e27f | 13990 | int main() { |
21d1c967 | 13991 | |
a0b9e27f MB |
13992 | ; return 0; } |
13993 | EOF | |
6969f178 | 13994 | if { (eval echo configure:13995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13995 | rm -rf conftest* |
21d1c967 | 13996 | ac_R_nospace=yes |
698dcdb6 | 13997 | else |
a0b9e27f MB |
13998 | echo "configure: failed program was:" >&5 |
13999 | cat conftest.$ac_ext >&5 | |
14000 | rm -rf conftest* | |
14001 | ac_R_nospace=no | |
10f2d63a | 14002 | fi |
a0b9e27f | 14003 | rm -f conftest* |
21d1c967 | 14004 | if test $ac_R_nospace = yes; then |
a0b9e27f | 14005 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
14006 | X_LIBS="$X_LIBS -R$x_libraries" |
14007 | else | |
14008 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 14009 | cat > conftest.$ac_ext <<EOF |
6969f178 | 14010 | #line 14011 "configure" |
21d1c967 | 14011 | #include "confdefs.h" |
10f2d63a | 14012 | |
a0b9e27f | 14013 | int main() { |
f0c87536 | 14014 | |
a0b9e27f MB |
14015 | ; return 0; } |
14016 | EOF | |
6969f178 | 14017 | if { (eval echo configure:14018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14018 | rm -rf conftest* |
21d1c967 GD |
14019 | ac_R_space=yes |
14020 | else | |
a0b9e27f MB |
14021 | echo "configure: failed program was:" >&5 |
14022 | cat conftest.$ac_ext >&5 | |
14023 | rm -rf conftest* | |
14024 | ac_R_space=no | |
21d1c967 | 14025 | fi |
a0b9e27f | 14026 | rm -f conftest* |
21d1c967 | 14027 | if test $ac_R_space = yes; then |
a0b9e27f | 14028 | echo "$ac_t""yes" 1>&6 |
21d1c967 GD |
14029 | X_LIBS="$X_LIBS -R $x_libraries" |
14030 | else | |
a0b9e27f | 14031 | echo "$ac_t""neither works" 1>&6 |
21d1c967 GD |
14032 | fi |
14033 | fi | |
a0b9e27f | 14034 | LIBS="$ac_xsave_LIBS" |
21d1c967 GD |
14035 | esac |
14036 | fi | |
90dd450c | 14037 | |
21d1c967 GD |
14038 | # Check for system-dependent libraries X programs must link with. |
14039 | # Do this before checking for the system-independent R6 libraries | |
14040 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
14041 | ||
14042 | if test "$ISC" = yes; then | |
14043 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
14044 | else | |
a0b9e27f MB |
14045 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
14046 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
21d1c967 | 14047 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 14048 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
6969f178 | 14049 | echo "configure:14050: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
14050 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14051 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14052 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 14053 | else |
a0b9e27f | 14054 | ac_save_LIBS="$LIBS" |
247f5006 | 14055 | LIBS="-ldnet $LIBS" |
a0b9e27f | 14056 | cat > conftest.$ac_ext <<EOF |
6969f178 | 14057 | #line 14058 "configure" |
247f5006 | 14058 | #include "confdefs.h" |
247f5006 | 14059 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 14060 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14061 | builtin and then its argument prototype would still apply. */ |
14062 | char dnet_ntoa(); | |
14063 | ||
14064 | int main() { | |
14065 | dnet_ntoa() | |
14066 | ; return 0; } | |
14067 | EOF | |
6969f178 | 14068 | if { (eval echo configure:14069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14069 | rm -rf conftest* |
14070 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14071 | else | |
14072 | echo "configure: failed program was:" >&5 | |
14073 | cat conftest.$ac_ext >&5 | |
14074 | rm -rf conftest* | |
14075 | eval "ac_cv_lib_$ac_lib_var=no" | |
14076 | fi | |
14077 | rm -f conftest* | |
14078 | LIBS="$ac_save_LIBS" | |
14079 | ||
14080 | fi | |
14081 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14082 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14083 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
14084 | else |
14085 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 | 14086 | fi |
0fb0dd83 | 14087 | |
21d1c967 | 14088 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 14089 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
6969f178 | 14090 | echo "configure:14091: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
14091 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14092 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14093 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14094 | else |
a0b9e27f | 14095 | ac_save_LIBS="$LIBS" |
21d1c967 | 14096 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 14097 | cat > conftest.$ac_ext <<EOF |
6969f178 | 14098 | #line 14099 "configure" |
21d1c967 GD |
14099 | #include "confdefs.h" |
14100 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14101 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14102 | builtin and then its argument prototype would still apply. */ |
14103 | char dnet_ntoa(); | |
14104 | ||
14105 | int main() { | |
14106 | dnet_ntoa() | |
14107 | ; return 0; } | |
14108 | EOF | |
6969f178 | 14109 | if { (eval echo configure:14110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14110 | rm -rf conftest* |
14111 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14112 | else | |
14113 | echo "configure: failed program was:" >&5 | |
14114 | cat conftest.$ac_ext >&5 | |
14115 | rm -rf conftest* | |
14116 | eval "ac_cv_lib_$ac_lib_var=no" | |
14117 | fi | |
14118 | rm -f conftest* | |
14119 | LIBS="$ac_save_LIBS" | |
14120 | ||
14121 | fi | |
14122 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14123 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14124 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
14125 | else |
14126 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
14127 | fi |
14128 | ||
21d1c967 | 14129 | fi |
90dd450c | 14130 | |
21d1c967 GD |
14131 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
14132 | # to get the SysV transport functions. | |
a0b9e27f | 14133 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
14134 | # needs -lnsl. |
14135 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
14136 | # on Irix 5.2, according to dickey@clark.net. |
14137 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
6969f178 | 14138 | echo "configure:14139: checking for gethostbyname" >&5 |
a0b9e27f MB |
14139 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
14140 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14141 | else | |
14142 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 14143 | #line 14144 "configure" |
21d1c967 GD |
14144 | #include "confdefs.h" |
14145 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14146 | which can conflict with char gethostbyname(); below. */ |
21d1c967 GD |
14147 | #include <assert.h> |
14148 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14149 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14150 | builtin and then its argument prototype would still apply. */ |
14151 | char gethostbyname(); | |
14152 | ||
14153 | int main() { | |
14154 | ||
21d1c967 GD |
14155 | /* The GNU C library defines this for functions which it implements |
14156 | to always fail with ENOSYS. Some functions are actually named | |
14157 | something starting with __ and the normal name is an alias. */ | |
14158 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
14159 | choke me | |
14160 | #else | |
a0b9e27f | 14161 | gethostbyname(); |
21d1c967 | 14162 | #endif |
90dd450c | 14163 | |
a0b9e27f MB |
14164 | ; return 0; } |
14165 | EOF | |
6969f178 | 14166 | if { (eval echo configure:14167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14167 | rm -rf conftest* |
14168 | eval "ac_cv_func_gethostbyname=yes" | |
14169 | else | |
14170 | echo "configure: failed program was:" >&5 | |
14171 | cat conftest.$ac_ext >&5 | |
14172 | rm -rf conftest* | |
14173 | eval "ac_cv_func_gethostbyname=no" | |
14174 | fi | |
14175 | rm -f conftest* | |
14176 | fi | |
14177 | ||
14178 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
14179 | echo "$ac_t""yes" 1>&6 | |
14180 | : | |
14181 | else | |
14182 | echo "$ac_t""no" 1>&6 | |
14183 | fi | |
90dd450c | 14184 | |
21d1c967 | 14185 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 14186 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
6969f178 | 14187 | echo "configure:14188: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
14188 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
14189 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14190 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14191 | else |
a0b9e27f | 14192 | ac_save_LIBS="$LIBS" |
21d1c967 | 14193 | LIBS="-lnsl $LIBS" |
a0b9e27f | 14194 | cat > conftest.$ac_ext <<EOF |
6969f178 | 14195 | #line 14196 "configure" |
21d1c967 GD |
14196 | #include "confdefs.h" |
14197 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14198 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14199 | builtin and then its argument prototype would still apply. */ |
14200 | char gethostbyname(); | |
5c6fa7d2 | 14201 | |
a0b9e27f MB |
14202 | int main() { |
14203 | gethostbyname() | |
14204 | ; return 0; } | |
14205 | EOF | |
6969f178 | 14206 | if { (eval echo configure:14207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14207 | rm -rf conftest* |
14208 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 14209 | else |
a0b9e27f MB |
14210 | echo "configure: failed program was:" >&5 |
14211 | cat conftest.$ac_ext >&5 | |
14212 | rm -rf conftest* | |
14213 | eval "ac_cv_lib_$ac_lib_var=no" | |
14214 | fi | |
14215 | rm -f conftest* | |
14216 | LIBS="$ac_save_LIBS" | |
247f5006 | 14217 | |
a0b9e27f MB |
14218 | fi |
14219 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14220 | echo "$ac_t""yes" 1>&6 | |
14221 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
14222 | else | |
14223 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 14224 | fi |
90dd450c | 14225 | |
90dd450c VZ |
14226 | fi |
14227 | ||
21d1c967 GD |
14228 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
14229 | # socket/setsockopt and other routines are undefined under SCO ODT | |
14230 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
14231 | # on later versions), says simon@lia.di.epfl.ch: it contains |
14232 | # gethostby* variants that don't use the nameserver (or something). | |
14233 | # -lsocket must be given before -lnsl if both are needed. | |
14234 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
14235 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
6969f178 | 14236 | echo "configure:14237: checking for connect" >&5 |
a0b9e27f MB |
14237 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
14238 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14239 | else | |
14240 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 14241 | #line 14242 "configure" |
21d1c967 GD |
14242 | #include "confdefs.h" |
14243 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14244 | which can conflict with char connect(); below. */ |
21d1c967 GD |
14245 | #include <assert.h> |
14246 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14247 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14248 | builtin and then its argument prototype would still apply. */ |
14249 | char connect(); | |
14250 | ||
14251 | int main() { | |
14252 | ||
21d1c967 GD |
14253 | /* The GNU C library defines this for functions which it implements |
14254 | to always fail with ENOSYS. Some functions are actually named | |
14255 | something starting with __ and the normal name is an alias. */ | |
14256 | #if defined (__stub_connect) || defined (__stub___connect) | |
14257 | choke me | |
14258 | #else | |
a0b9e27f | 14259 | connect(); |
21d1c967 | 14260 | #endif |
90dd450c | 14261 | |
a0b9e27f MB |
14262 | ; return 0; } |
14263 | EOF | |
6969f178 | 14264 | if { (eval echo configure:14265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14265 | rm -rf conftest* |
14266 | eval "ac_cv_func_connect=yes" | |
14267 | else | |
14268 | echo "configure: failed program was:" >&5 | |
14269 | cat conftest.$ac_ext >&5 | |
14270 | rm -rf conftest* | |
14271 | eval "ac_cv_func_connect=no" | |
14272 | fi | |
14273 | rm -f conftest* | |
14274 | fi | |
14275 | ||
14276 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
14277 | echo "$ac_t""yes" 1>&6 | |
14278 | : | |
14279 | else | |
14280 | echo "$ac_t""no" 1>&6 | |
14281 | fi | |
1f8ae82f | 14282 | |
21d1c967 | 14283 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 14284 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
6969f178 | 14285 | echo "configure:14286: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
14286 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
14287 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14288 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0fbb762e | 14289 | else |
a0b9e27f | 14290 | ac_save_LIBS="$LIBS" |
21d1c967 | 14291 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14292 | cat > conftest.$ac_ext <<EOF |
6969f178 | 14293 | #line 14294 "configure" |
0fbb762e | 14294 | #include "confdefs.h" |
21d1c967 GD |
14295 | /* Override any gcc2 internal prototype to avoid an error. */ |
14296 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14297 | builtin and then its argument prototype would still apply. */ |
14298 | char connect(); | |
14299 | ||
14300 | int main() { | |
14301 | connect() | |
14302 | ; return 0; } | |
14303 | EOF | |
6969f178 | 14304 | if { (eval echo configure:14305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14305 | rm -rf conftest* |
14306 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14307 | else | |
14308 | echo "configure: failed program was:" >&5 | |
14309 | cat conftest.$ac_ext >&5 | |
14310 | rm -rf conftest* | |
14311 | eval "ac_cv_lib_$ac_lib_var=no" | |
14312 | fi | |
14313 | rm -f conftest* | |
14314 | LIBS="$ac_save_LIBS" | |
14315 | ||
14316 | fi | |
14317 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14318 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14319 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
14320 | else |
14321 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 14322 | fi |
90dd450c | 14323 | |
21d1c967 | 14324 | fi |
90dd450c | 14325 | |
a0b9e27f MB |
14326 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
14327 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
6969f178 | 14328 | echo "configure:14329: checking for remove" >&5 |
a0b9e27f MB |
14329 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
14330 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14331 | else |
a0b9e27f | 14332 | cat > conftest.$ac_ext <<EOF |
6969f178 | 14333 | #line 14334 "configure" |
21d1c967 GD |
14334 | #include "confdefs.h" |
14335 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14336 | which can conflict with char remove(); below. */ |
21d1c967 GD |
14337 | #include <assert.h> |
14338 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14339 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14340 | builtin and then its argument prototype would still apply. */ |
14341 | char remove(); | |
14342 | ||
14343 | int main() { | |
14344 | ||
21d1c967 GD |
14345 | /* The GNU C library defines this for functions which it implements |
14346 | to always fail with ENOSYS. Some functions are actually named | |
14347 | something starting with __ and the normal name is an alias. */ | |
14348 | #if defined (__stub_remove) || defined (__stub___remove) | |
14349 | choke me | |
14350 | #else | |
a0b9e27f | 14351 | remove(); |
21d1c967 | 14352 | #endif |
90dd450c | 14353 | |
a0b9e27f MB |
14354 | ; return 0; } |
14355 | EOF | |
6969f178 | 14356 | if { (eval echo configure:14357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14357 | rm -rf conftest* |
14358 | eval "ac_cv_func_remove=yes" | |
14359 | else | |
14360 | echo "configure: failed program was:" >&5 | |
14361 | cat conftest.$ac_ext >&5 | |
14362 | rm -rf conftest* | |
14363 | eval "ac_cv_func_remove=no" | |
14364 | fi | |
14365 | rm -f conftest* | |
14366 | fi | |
14367 | ||
14368 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
14369 | echo "$ac_t""yes" 1>&6 | |
14370 | : | |
14371 | else | |
14372 | echo "$ac_t""no" 1>&6 | |
14373 | fi | |
90dd450c | 14374 | |
21d1c967 | 14375 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 14376 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
6969f178 | 14377 | echo "configure:14378: checking for remove in -lposix" >&5 |
a0b9e27f MB |
14378 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
14379 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14380 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14381 | else |
a0b9e27f | 14382 | ac_save_LIBS="$LIBS" |
21d1c967 | 14383 | LIBS="-lposix $LIBS" |
a0b9e27f | 14384 | cat > conftest.$ac_ext <<EOF |
6969f178 | 14385 | #line 14386 "configure" |
21d1c967 GD |
14386 | #include "confdefs.h" |
14387 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14388 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14389 | builtin and then its argument prototype would still apply. */ |
14390 | char remove(); | |
14391 | ||
14392 | int main() { | |
14393 | remove() | |
14394 | ; return 0; } | |
14395 | EOF | |
6969f178 | 14396 | if { (eval echo configure:14397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14397 | rm -rf conftest* |
14398 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14399 | else | |
14400 | echo "configure: failed program was:" >&5 | |
14401 | cat conftest.$ac_ext >&5 | |
14402 | rm -rf conftest* | |
14403 | eval "ac_cv_lib_$ac_lib_var=no" | |
14404 | fi | |
14405 | rm -f conftest* | |
14406 | LIBS="$ac_save_LIBS" | |
14407 | ||
14408 | fi | |
14409 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14410 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14411 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
14412 | else |
14413 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 14414 | fi |
19bc6aad | 14415 | |
90dd450c | 14416 | fi |
19bc6aad | 14417 | |
21d1c967 | 14418 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 14419 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
6969f178 | 14420 | echo "configure:14421: checking for shmat" >&5 |
a0b9e27f MB |
14421 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
14422 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14423 | else |
a0b9e27f | 14424 | cat > conftest.$ac_ext <<EOF |
6969f178 | 14425 | #line 14426 "configure" |
21d1c967 GD |
14426 | #include "confdefs.h" |
14427 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14428 | which can conflict with char shmat(); below. */ |
21d1c967 GD |
14429 | #include <assert.h> |
14430 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14431 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14432 | builtin and then its argument prototype would still apply. */ |
14433 | char shmat(); | |
14434 | ||
14435 | int main() { | |
14436 | ||
21d1c967 GD |
14437 | /* The GNU C library defines this for functions which it implements |
14438 | to always fail with ENOSYS. Some functions are actually named | |
14439 | something starting with __ and the normal name is an alias. */ | |
14440 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14441 | choke me | |
14442 | #else | |
a0b9e27f | 14443 | shmat(); |
21d1c967 | 14444 | #endif |
90dd450c | 14445 | |
a0b9e27f MB |
14446 | ; return 0; } |
14447 | EOF | |
6969f178 | 14448 | if { (eval echo configure:14449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14449 | rm -rf conftest* |
14450 | eval "ac_cv_func_shmat=yes" | |
14451 | else | |
14452 | echo "configure: failed program was:" >&5 | |
14453 | cat conftest.$ac_ext >&5 | |
14454 | rm -rf conftest* | |
14455 | eval "ac_cv_func_shmat=no" | |
14456 | fi | |
14457 | rm -f conftest* | |
14458 | fi | |
14459 | ||
14460 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14461 | echo "$ac_t""yes" 1>&6 | |
14462 | : | |
14463 | else | |
14464 | echo "$ac_t""no" 1>&6 | |
14465 | fi | |
19bc6aad | 14466 | |
21d1c967 | 14467 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 14468 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
6969f178 | 14469 | echo "configure:14470: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
14470 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
14471 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14472 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 | 14473 | else |
a0b9e27f | 14474 | ac_save_LIBS="$LIBS" |
5c6fa7d2 | 14475 | LIBS="-lipc $LIBS" |
a0b9e27f | 14476 | cat > conftest.$ac_ext <<EOF |
6969f178 | 14477 | #line 14478 "configure" |
5c6fa7d2 | 14478 | #include "confdefs.h" |
5c6fa7d2 | 14479 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 14480 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14481 | builtin and then its argument prototype would still apply. */ |
14482 | char shmat(); | |
14483 | ||
14484 | int main() { | |
14485 | shmat() | |
14486 | ; return 0; } | |
14487 | EOF | |
6969f178 | 14488 | if { (eval echo configure:14489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14489 | rm -rf conftest* |
14490 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14491 | else | |
14492 | echo "configure: failed program was:" >&5 | |
14493 | cat conftest.$ac_ext >&5 | |
14494 | rm -rf conftest* | |
14495 | eval "ac_cv_lib_$ac_lib_var=no" | |
14496 | fi | |
14497 | rm -f conftest* | |
14498 | LIBS="$ac_save_LIBS" | |
14499 | ||
14500 | fi | |
14501 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14502 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14503 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
14504 | else |
14505 | echo "$ac_t""no" 1>&6 | |
9f8148b1 | 14506 | fi |
90dd450c | 14507 | |
90dd450c | 14508 | fi |
21d1c967 | 14509 | fi |
10f2d63a | 14510 | |
21d1c967 | 14511 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 14512 | ac_save_LDFLAGS="$LDFLAGS" |
21d1c967 GD |
14513 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
14514 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14515 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14516 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14517 | # These have to be linked with before -lX11, unlike the other | |
14518 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
14519 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
14520 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
6969f178 | 14521 | echo "configure:14522: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
14522 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
14523 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14524 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14525 | else | |
14526 | ac_save_LIBS="$LIBS" | |
f09359cf | 14527 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14528 | cat > conftest.$ac_ext <<EOF |
6969f178 | 14529 | #line 14530 "configure" |
29fd3c0c | 14530 | #include "confdefs.h" |
21d1c967 GD |
14531 | /* Override any gcc2 internal prototype to avoid an error. */ |
14532 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14533 | builtin and then its argument prototype would still apply. */ |
14534 | char IceConnectionNumber(); | |
14535 | ||
14536 | int main() { | |
14537 | IceConnectionNumber() | |
14538 | ; return 0; } | |
14539 | EOF | |
6969f178 | 14540 | if { (eval echo configure:14541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14541 | rm -rf conftest* |
14542 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14543 | else | |
14544 | echo "configure: failed program was:" >&5 | |
14545 | cat conftest.$ac_ext >&5 | |
14546 | rm -rf conftest* | |
14547 | eval "ac_cv_lib_$ac_lib_var=no" | |
14548 | fi | |
14549 | rm -f conftest* | |
14550 | LIBS="$ac_save_LIBS" | |
14551 | ||
14552 | fi | |
14553 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14554 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14555 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
14556 | else |
14557 | echo "$ac_t""no" 1>&6 | |
29fd3c0c | 14558 | fi |
21d1c967 | 14559 | |
a0b9e27f | 14560 | LDFLAGS="$ac_save_LDFLAGS" |
29fd3c0c | 14561 | |
10f2d63a VZ |
14562 | fi |
14563 | ||
8284b0c5 | 14564 | |
21d1c967 | 14565 | if test "$no_x" = "yes"; then |
a0b9e27f | 14566 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
21d1c967 GD |
14567 | fi |
14568 | ||
14569 | GUI_TK_LIBRARY="$X_LIBS" | |
14570 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14571 | AFMINSTALL=afminstall | |
14572 | COMPILED_X_PROGRAM=0 | |
14573 | ||
a0b9e27f | 14574 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
6969f178 | 14575 | echo "configure:14576: checking for Motif/Lesstif headers" >&5 |
a0b9e27f | 14576 | |
21d1c967 GD |
14577 | ac_find_includes= |
14578 | for ac_dir in $SEARCH_INCLUDE; | |
14579 | do | |
14580 | if test -f "$ac_dir/Xm/Xm.h"; then | |
14581 | ac_find_includes=$ac_dir | |
14582 | break | |
14583 | fi | |
14584 | done | |
14585 | ||
14586 | if test "$ac_find_includes" != "" ; then | |
a0b9e27f MB |
14587 | echo "$ac_t""found in $ac_find_includes" 1>&6 |
14588 | ||
dd0e4a90 VZ |
14589 | ac_path_to_include=$ac_find_includes |
14590 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
14591 | result=$? | |
14592 | if test $result = 0; then | |
14593 | ac_path_to_include="" | |
14594 | else | |
14595 | ac_path_to_include=" -I$ac_find_includes" | |
14596 | fi | |
14597 | ||
14598 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 14599 | else |
a0b9e27f | 14600 | cat > conftest.$ac_ext <<EOF |
6969f178 | 14601 | #line 14602 "configure" |
10f2d63a | 14602 | #include "confdefs.h" |
21d1c967 GD |
14603 | |
14604 | #include <Xm/Xm.h> | |
a0b9e27f MB |
14605 | |
14606 | int main() { | |
21d1c967 GD |
14607 | |
14608 | int version; | |
14609 | version = xmUseVersion; | |
a0b9e27f MB |
14610 | |
14611 | ; return 0; } | |
14612 | EOF | |
6969f178 | 14613 | if { (eval echo configure:14614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
14614 | rm -rf conftest* |
14615 | ||
14616 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 14617 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 14618 | |
10f2d63a | 14619 | else |
a0b9e27f MB |
14620 | echo "configure: failed program was:" >&5 |
14621 | cat conftest.$ac_ext >&5 | |
14622 | rm -rf conftest* | |
14623 | ||
14624 | echo "$ac_t""no" 1>&6 | |
14625 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
14626 | ||
14627 | ||
10f2d63a | 14628 | fi |
a0b9e27f | 14629 | rm -f conftest* |
21d1c967 | 14630 | fi |
10f2d63a | 14631 | |
21d1c967 | 14632 | if test "$COMPILED_X_PROGRAM" = 0; then |
a0b9e27f | 14633 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 |
6969f178 | 14634 | echo "configure:14635: checking for Motif/Lesstif library" >&5 |
a0b9e27f | 14635 | |
21d1c967 GD |
14636 | ac_find_libraries= |
14637 | for ac_dir in $SEARCH_LIB; | |
14638 | do | |
14639 | for ac_extension in a so sl dylib; do | |
14640 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
14641 | ac_find_libraries=$ac_dir | |
14642 | break 2 | |
14643 | fi | |
14644 | done | |
14645 | done | |
14646 | ||
14647 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 14648 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14649 | |
a0b9e27f | 14650 | |
21d1c967 GD |
14651 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14652 | result=$? | |
14653 | if test $result = 0; then | |
14654 | ac_path_to_link="" | |
14655 | else | |
14656 | ac_path_to_link=" -L$ac_find_libraries" | |
14657 | fi | |
14658 | ||
21d1c967 | 14659 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 14660 | else |
dd0e4a90 VZ |
14661 | save_CFLAGS=$CFLAGS |
14662 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
14663 | ||
a0b9e27f | 14664 | cat > conftest.$ac_ext <<EOF |
6969f178 | 14665 | #line 14666 "configure" |
d836ee96 | 14666 | #include "confdefs.h" |
21d1c967 GD |
14667 | |
14668 | #include <Xm/Xm.h> | |
a0b9e27f MB |
14669 | |
14670 | int main() { | |
21d1c967 GD |
14671 | |
14672 | int version; | |
14673 | version = xmUseVersion; | |
a0b9e27f MB |
14674 | |
14675 | ; return 0; } | |
14676 | EOF | |
6969f178 | 14677 | if { (eval echo configure:14678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
14678 | rm -rf conftest* |
14679 | ||
14680 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 14681 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 14682 | |
d836ee96 | 14683 | else |
a0b9e27f MB |
14684 | echo "configure: failed program was:" >&5 |
14685 | cat conftest.$ac_ext >&5 | |
14686 | rm -rf conftest* | |
14687 | ||
14688 | echo "$ac_t""no" 1>&6 | |
14689 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
14690 | ||
14691 | ||
d836ee96 | 14692 | fi |
a0b9e27f | 14693 | rm -f conftest* |
dd0e4a90 VZ |
14694 | |
14695 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
14696 | fi |
14697 | fi | |
14698 | ||
14699 | xpm_link= | |
a0b9e27f | 14700 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
6969f178 | 14701 | echo "configure:14702: checking for Xpm library" >&5 |
a0b9e27f | 14702 | |
21d1c967 GD |
14703 | ac_find_libraries= |
14704 | for ac_dir in $SEARCH_LIB; | |
14705 | do | |
14706 | for ac_extension in a so sl dylib; do | |
14707 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14708 | ac_find_libraries=$ac_dir | |
14709 | break 2 | |
14710 | fi | |
14711 | done | |
14712 | done | |
14713 | ||
14714 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 14715 | |
21d1c967 GD |
14716 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14717 | result=$? | |
14718 | if test $result = 0; then | |
14719 | ac_path_to_link="" | |
14720 | else | |
14721 | ac_path_to_link=" -L$ac_find_libraries" | |
14722 | fi | |
14723 | ||
14724 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 14725 | |
21d1c967 | 14726 | xpm_link=" -lXpm" |
a0b9e27f | 14727 | cat >> confdefs.h <<\EOF |
21d1c967 | 14728 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14729 | EOF |
90dd450c | 14730 | |
a0b9e27f | 14731 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14732 | else |
dd0e4a90 VZ |
14733 | save_CFLAGS=$CFLAGS |
14734 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
14735 | ||
a0b9e27f | 14736 | cat > conftest.$ac_ext <<EOF |
6969f178 | 14737 | #line 14738 "configure" |
d836ee96 | 14738 | #include "confdefs.h" |
21d1c967 GD |
14739 | |
14740 | #include <X11/xpm.h> | |
a0b9e27f MB |
14741 | |
14742 | int main() { | |
21d1c967 GD |
14743 | |
14744 | int version; | |
14745 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
14746 | |
14747 | ; return 0; } | |
14748 | EOF | |
6969f178 | 14749 | if { (eval echo configure:14750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
14750 | rm -rf conftest* |
14751 | ||
21d1c967 | 14752 | xpm_link=" -lXpm" |
a0b9e27f | 14753 | cat >> confdefs.h <<\EOF |
21d1c967 | 14754 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14755 | EOF |
21d1c967 | 14756 | |
a0b9e27f | 14757 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 14758 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 14759 | |
d836ee96 | 14760 | else |
a0b9e27f MB |
14761 | echo "configure: failed program was:" >&5 |
14762 | cat conftest.$ac_ext >&5 | |
14763 | rm -rf conftest* | |
14764 | ||
14765 | echo "$ac_t""no" 1>&6 | |
14766 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14767 | ||
14768 | ||
d836ee96 | 14769 | fi |
a0b9e27f | 14770 | rm -f conftest* |
dd0e4a90 VZ |
14771 | |
14772 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
14773 | fi |
14774 | ||
a0b9e27f | 14775 | echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6 |
6969f178 | 14776 | echo "configure:14777: checking if we need -lXp and/or -lSM -lICE" >&5 |
6a30f1c8 MB |
14777 | libp_link="" |
14778 | libsm_ice_link="" | |
14779 | libs_found=0 | |
14780 | for libp in "" " -lXp"; do | |
14781 | if test "$libs_found" = "0"; then | |
14782 | for libsm_ice in " -lSM -lICE"; do | |
a0b9e27f | 14783 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
14784 | save_LIBS="$LIBS" |
14785 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
14786 | save_CFLAGS=$CFLAGS |
14787 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
14788 | ||
a0b9e27f | 14789 | cat > conftest.$ac_ext <<EOF |
6969f178 | 14790 | #line 14791 "configure" |
6a30f1c8 | 14791 | #include "confdefs.h" |
17234b26 | 14792 | |
6a30f1c8 MB |
14793 | #include <Xm/Xm.h> |
14794 | #include <Xm/List.h> | |
a0b9e27f MB |
14795 | |
14796 | int main() { | |
6a30f1c8 MB |
14797 | |
14798 | XmString string = NULL; | |
14799 | Widget w = NULL; | |
14800 | int position = 0; | |
14801 | XmListAddItem(w, string, position); | |
a0b9e27f MB |
14802 | |
14803 | ; return 0; } | |
14804 | EOF | |
6969f178 | 14805 | if { (eval echo configure:14806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14806 | rm -rf conftest* |
14807 | ||
6a30f1c8 MB |
14808 | libp_link="$libp" |
14809 | libsm_ice_link="$libsm_ice" | |
a0b9e27f | 14810 | echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6 |
6a30f1c8 | 14811 | libs_found=1 |
a0b9e27f | 14812 | |
6a30f1c8 | 14813 | else |
a0b9e27f MB |
14814 | echo "configure: failed program was:" >&5 |
14815 | cat conftest.$ac_ext >&5 | |
14816 | rm -rf conftest* | |
14817 | ||
14818 | ||
6a30f1c8 | 14819 | fi |
a0b9e27f | 14820 | rm -f conftest* |
dd0e4a90 | 14821 | |
6a30f1c8 | 14822 | LIBS="$save_LIBS" |
dd0e4a90 | 14823 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
14824 | fi |
14825 | done | |
14826 | fi | |
14827 | done | |
14828 | ||
14829 | if test "$libs_found" = "0"; then | |
a0b9e27f MB |
14830 | echo "$ac_t""can't find the right libraries" 1>&6 |
14831 | { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; } | |
6a30f1c8 MB |
14832 | fi |
14833 | ||
14834 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
21d1c967 GD |
14835 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
14836 | TOOLKIT=MOTIF | |
14837 | GUIDIST=MOTIF_DIST | |
14838 | fi | |
14839 | ||
14840 | if test "$wxUSE_MAC" = 1; then | |
14841 | if test "$wxUSE_PRECOMP" = "yes"; then | |
14842 | CPPFLAGS="$CPPFLAGS -cpp-precomp" | |
14843 | else | |
14844 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
14845 | fi | |
14846 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" | |
14847 | CFLAGS="$CFLAGS -fpascal-strings" | |
14848 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
14849 | ||
14850 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
14851 | TOOLKIT=MAC | |
14852 | GUIDIST=MACX_DIST | |
14853 | fi | |
14854 | ||
14855 | if test "$wxUSE_PM" = 1; then | |
14856 | TOOLKIT=PM | |
14857 | GUIDIST=GTK_DIST | |
14858 | fi | |
14859 | ||
14860 | if test "$TOOLKIT" = "PM" ; then | |
14861 | TOOLKIT_DIR="os2" | |
14862 | else | |
14863 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
14864 | fi | |
14865 | ||
14866 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
14867 | ||
14868 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
14869 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
14870 | ||
14871 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
14872 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
14873 | ||
14874 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
14875 | if test "$wxUSE_X11" = 1; then | |
14876 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
14877 | else | |
14878 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
14879 | fi | |
14880 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
14881 | WIDGET_SET=univ | |
14882 | else | |
14883 | ALL_OBJECTS="\$(GUIOBJS)" | |
14884 | ALL_SOURCES="\$(ALL_SOURCES)" | |
14885 | ALL_HEADERS="\$(ALL_HEADERS)" | |
14886 | fi | |
14887 | ||
14888 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
14889 | ||
14890 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
14891 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
14892 | fi | |
14893 | ||
14894 | if test "$wxUSE_HTML" = "yes"; then | |
14895 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
14896 | fi | |
14897 | ||
14898 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
14899 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
14900 | fi | |
14901 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
14902 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
14903 | fi | |
14904 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
14905 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
14906 | fi | |
14907 | ||
14908 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
14909 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 14910 | else |
21d1c967 GD |
14911 | USE_GUI=0 |
14912 | ||
14913 | TOOLKIT_DIR="base" | |
14914 | ||
14915 | if test "$USE_WIN32" = 1 ; then | |
14916 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
14917 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
14918 | ||
14919 | TOOLKIT="MSW" | |
14920 | else | |
14921 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
14922 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
14923 | fi | |
14924 | ||
14925 | ALL_SOURCES="\$(ALL_SOURCES)" | |
14926 | ALL_HEADERS="\$(ALL_HEADERS)" | |
14927 | ||
14928 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
14929 | ||
14930 | GUIDIST="BASE_DIST" | |
14931 | DISTDIR="wxBase" | |
d836ee96 VZ |
14932 | fi |
14933 | ||
8284b0c5 | 14934 | |
21d1c967 GD |
14935 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
14936 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
6232543b | 14937 | fi |
21d1c967 GD |
14938 | |
14939 | if test "$wxUSE_REGEX" = "builtin" ; then | |
14940 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 14941 | fi |
21d1c967 GD |
14942 | if test "$wxUSE_ZLIB" = "builtin" ; then |
14943 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
14944 | fi |
14945 | ||
8284b0c5 | 14946 | |
21d1c967 GD |
14947 | if test "$wxUSE_OPENGL" = "yes"; then |
14948 | if test "$wxUSE_MAC" = 1; then | |
14949 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
14950 | elif test "$wxUSE_MSW" = 1; then | |
14951 | OPENGL_LIBS="-lopengl32 -lglu32" | |
14952 | else | |
a0b9e27f MB |
14953 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
14954 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
6969f178 | 14955 | echo "configure:14956: checking for GL/gl.h" >&5 |
a0b9e27f MB |
14956 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14957 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14958 | else | |
14959 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 14960 | #line 14961 "configure" |
10f2d63a | 14961 | #include "confdefs.h" |
21d1c967 | 14962 | #include <GL/gl.h> |
a0b9e27f MB |
14963 | EOF |
14964 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 14965 | { (eval echo configure:14966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
14966 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14967 | if test -z "$ac_err"; then | |
14968 | rm -rf conftest* | |
14969 | eval "ac_cv_header_$ac_safe=yes" | |
14970 | else | |
14971 | echo "$ac_err" >&5 | |
14972 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 14973 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
14974 | rm -rf conftest* |
14975 | eval "ac_cv_header_$ac_safe=no" | |
703e0a69 | 14976 | fi |
a0b9e27f | 14977 | rm -f conftest* |
698dcdb6 | 14978 | fi |
a0b9e27f MB |
14979 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14980 | echo "$ac_t""yes" 1>&6 | |
14981 | ||
14982 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
6969f178 | 14983 | echo "configure:14984: checking for -lGL" >&5 |
a0b9e27f | 14984 | |
21d1c967 GD |
14985 | ac_find_libraries= |
14986 | for ac_dir in $SEARCH_LIB; | |
14987 | do | |
14988 | for ac_extension in a so sl dylib; do | |
14989 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
14990 | ac_find_libraries=$ac_dir | |
14991 | break 2 | |
14992 | fi | |
14993 | done | |
14994 | done | |
14995 | ||
14996 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 14997 | |
21d1c967 GD |
14998 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
14999 | result=$? | |
15000 | if test $result = 0; then | |
15001 | ac_path_to_link="" | |
15002 | else | |
15003 | ac_path_to_link=" -L$ac_find_libraries" | |
15004 | fi | |
15005 | ||
15006 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
15007 | LDFLAGS_GL="$LDFLAGS" | |
15008 | else | |
15009 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15010 | fi | |
15011 | OPENGL_LIBS="-lGL -lGLU" | |
a0b9e27f | 15012 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 15013 | else |
a0b9e27f MB |
15014 | echo "$ac_t""no" 1>&6 |
15015 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
6969f178 | 15016 | echo "configure:15017: checking for -lMesaGL" >&5 |
a0b9e27f | 15017 | |
21d1c967 GD |
15018 | ac_find_libraries= |
15019 | for ac_dir in $SEARCH_LIB; | |
15020 | do | |
15021 | for ac_extension in a so sl dylib; do | |
15022 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
15023 | ac_find_libraries=$ac_dir | |
15024 | break 2 | |
15025 | fi | |
15026 | done | |
15027 | done | |
15028 | ||
15029 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15030 | |
21d1c967 GD |
15031 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15032 | result=$? | |
15033 | if test $result = 0; then | |
15034 | ac_path_to_link="" | |
15035 | else | |
15036 | ac_path_to_link=" -L$ac_find_libraries" | |
15037 | fi | |
15038 | ||
15039 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15040 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
a0b9e27f | 15041 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 15042 | else |
a0b9e27f | 15043 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
15044 | fi |
15045 | fi | |
a0b9e27f MB |
15046 | |
15047 | else | |
15048 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 15049 | fi |
52127426 | 15050 | |
8284b0c5 | 15051 | |
21d1c967 | 15052 | if test "x$OPENGL_LIBS" = "x"; then |
a0b9e27f | 15053 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } |
21d1c967 GD |
15054 | fi |
15055 | fi | |
90dd450c | 15056 | |
21d1c967 | 15057 | if test "$wxUSE_OPENGL" = "yes"; then |
a0b9e27f | 15058 | cat >> confdefs.h <<\EOF |
21d1c967 | 15059 | #define wxUSE_OPENGL 1 |
a0b9e27f | 15060 | EOF |
21d1c967 | 15061 | |
a0b9e27f | 15062 | cat >> confdefs.h <<\EOF |
21d1c967 | 15063 | #define wxUSE_GLCANVAS 1 |
a0b9e27f | 15064 | EOF |
21d1c967 GD |
15065 | |
15066 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
15067 | fi | |
10f2d63a | 15068 | fi |
21d1c967 GD |
15069 | |
15070 | if test -z "$TOOLKIT_VPATH" ; then | |
15071 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 15072 | fi |
21d1c967 GD |
15073 | |
15074 | if test -n "$TOOLKIT" ; then | |
15075 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
15076 | fi | |
15077 | ||
15078 | lib_unicode_suffix= | |
15079 | if test "$wxUSE_UNICODE" = "yes"; then | |
15080 | lib_unicode_suffix=u | |
90dd450c | 15081 | fi |
698dcdb6 | 15082 | |
21d1c967 GD |
15083 | lib_debug_suffix= |
15084 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
15085 | lib_debug_suffix=d | |
15086 | fi | |
698dcdb6 | 15087 | |
21d1c967 GD |
15088 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
15089 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
15090 | ||
15091 | if test "$cross_compiling" = "yes"; then | |
15092 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
15093 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
15094 | fi | |
15095 | ||
15096 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
15097 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
15098 | ||
15099 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
15100 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
15101 | ||
15102 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
15103 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15104 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
15105 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15106 | ||
15107 | case "${host}" in | |
15108 | *-*-cygwin* | *-*-mingw32* ) | |
15109 | ||
a0b9e27f MB |
15110 | |
15111 | ||
17234b26 | 15112 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
15113 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
15114 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
15115 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
15116 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15117 | else | |
15118 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15119 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15120 | fi | |
15121 | ;; | |
15122 | ||
15123 | *-*-darwin* ) | |
15124 | if test "$wxUSE_MAC" = 1; then | |
3bd8fb5f | 15125 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r" |
21d1c967 GD |
15126 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc" |
15127 | fi | |
15128 | ;; | |
15129 | esac | |
15130 | ||
15131 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
15132 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
15133 | ||
15134 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
15135 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
15136 | ||
15137 | if test "$wxUSE_OPENGL" = "yes"; then | |
15138 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
15139 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
15140 | fi | |
15141 | ||
8284b0c5 MB |
15142 | |
15143 | ||
21d1c967 GD |
15144 | if test "$wxUSE_SHARED" = "yes"; then |
15145 | case "${host}" in | |
15146 | *-pc-os2_emx | *-pc-os2-emx | \ | |
15147 | *-pc-msdosdjgpp ) | |
15148 | wxUSE_SHARED=no | |
a0b9e27f | 15149 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 |
21d1c967 GD |
15150 | ;; |
15151 | esac | |
15152 | fi | |
15153 | ||
15154 | if test "$wxUSE_SHARED" = "yes"; then | |
15155 | ||
15156 | if test "$wxUSE_OPENGL" = "yes"; then | |
15157 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
15158 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
15159 | else | |
15160 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
15161 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
15162 | fi | |
15163 | ||
15164 | if test "$GCC" = "yes"; then | |
15165 | PIC_FLAG="-fPIC" | |
15166 | fi | |
15167 | ||
15168 | SHARED_LD="${CXX} -shared -o" | |
15169 | ||
15170 | case "${host}" in | |
15171 | *-hp-hpux* ) | |
15172 | if test "$GCC" == "yes"; then | |
15173 | SHARED_LD="${SHARED_LD} ${PIC_FLAG}" | |
15174 | else | |
15175 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
15176 | ||
15177 | SHARED_LD="${CXX} -b -o" | |
15178 | PIC_FLAG="+Z" | |
15179 | fi | |
15180 | ||
15181 | if test "$wxUSE_OPENGL" = "yes"; then | |
15182 | WX_ALL_INSTALLED="preinstall_gl" | |
15183 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
15184 | else | |
15185 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
15186 | fi | |
15187 | ;; | |
15188 | ||
15189 | *-*-linux* ) | |
15190 | if test "$GCC" != "yes"; then | |
a0b9e27f | 15191 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 |
6969f178 | 15192 | echo "configure:15193: checking for Intel compiler" >&5 |
a0b9e27f MB |
15193 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
15194 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15195 | else | |
15196 | ||
15197 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 15198 | #line 15199 "configure" |
698dcdb6 | 15199 | #include "confdefs.h" |
90dd450c | 15200 | |
a0b9e27f | 15201 | int main() { |
90dd450c | 15202 | |
21d1c967 GD |
15203 | #ifndef __INTEL_COMPILER |
15204 | #error Not icc | |
15205 | #endif | |
a0b9e27f MB |
15206 | |
15207 | ; return 0; } | |
15208 | EOF | |
6969f178 | 15209 | if { (eval echo configure:15210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 15210 | rm -rf conftest* |
21d1c967 | 15211 | wx_cv_prog_icc=yes |
6232543b | 15212 | else |
a0b9e27f MB |
15213 | echo "configure: failed program was:" >&5 |
15214 | cat conftest.$ac_ext >&5 | |
15215 | rm -rf conftest* | |
15216 | wx_cv_prog_icc=no | |
15217 | ||
5c6fa7d2 | 15218 | fi |
a0b9e27f MB |
15219 | rm -f conftest* |
15220 | ||
247f5006 | 15221 | fi |
a0b9e27f MB |
15222 | |
15223 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
21d1c967 GD |
15224 | if test "$wx_cv_prog_icc" = "yes"; then |
15225 | PIC_FLAG="-KPIC" | |
15226 | fi | |
15227 | fi | |
15228 | ||
15229 | if test "$wxUSE_SONAME" = "yes" ; then | |
15230 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
15231 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
15232 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
15233 | fi | |
15234 | ;; | |
15235 | ||
15236 | *-*-solaris2* ) | |
15237 | if test "$GCC" = yes ; then | |
15238 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
15239 | else | |
15240 | SHARED_LD="${CXX} -G -o" | |
15241 | PIC_FLAG="-KPIC" | |
15242 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
15243 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
15244 | fi | |
15245 | ;; | |
15246 | ||
15247 | *-*-darwin* ) | |
15248 | CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL" | |
15249 | CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL" | |
15250 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" | |
15251 | PIC_FLAG="-dynamic -fPIC" | |
15252 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}" | |
15253 | SONAME_FLAGS_GL=${SONAME_FLAGS} | |
15254 | ;; | |
15255 | ||
15256 | *-*-aix* ) | |
321d2b14 VZ |
15257 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. |
15258 | set dummy makeC++SharedLib; ac_word=$2 | |
a0b9e27f | 15259 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
6969f178 | 15260 | echo "configure:15261: checking for $ac_word" >&5 |
a0b9e27f MB |
15261 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then |
15262 | echo $ac_n "(cached) $ac_c" 1>&6 | |
321d2b14 VZ |
15263 | else |
15264 | if test -n "$AIX_CXX_LD"; then | |
15265 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
15266 | else | |
a0b9e27f MB |
15267 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15268 | ac_dummy="$PATH" | |
15269 | for ac_dir in $ac_dummy; do | |
15270 | test -z "$ac_dir" && ac_dir=. | |
15271 | if test -f $ac_dir/$ac_word; then | |
15272 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
15273 | break | |
15274 | fi | |
15275 | done | |
15276 | IFS="$ac_save_ifs" | |
321d2b14 VZ |
15277 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
15278 | fi | |
15279 | fi | |
a0b9e27f | 15280 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" |
321d2b14 | 15281 | if test -n "$AIX_CXX_LD"; then |
a0b9e27f | 15282 | echo "$ac_t""$AIX_CXX_LD" 1>&6 |
321d2b14 | 15283 | else |
a0b9e27f | 15284 | echo "$ac_t""no" 1>&6 |
321d2b14 VZ |
15285 | fi |
15286 | ||
8284b0c5 | 15287 | |
321d2b14 | 15288 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" |
21d1c967 GD |
15289 | ;; |
15290 | ||
15291 | *-*-cygwin* | *-*-mingw32* ) | |
15292 | ||
15293 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" | |
15294 | ||
15295 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
15296 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
15297 | ||
15298 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
15299 | ||
15300 | if test "$wxUSE_OPENGL" = "yes"; then | |
15301 | WX_ALL_INSTALLED="preinstall_gl" | |
15302 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
15303 | else | |
15304 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
15305 | fi | |
15306 | ;; | |
15307 | ||
15308 | *-*-beos* ) | |
15309 | SHARED_LD="${LD} -shared -o" | |
15310 | ;; | |
15311 | ||
15312 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
15313 | *-*-sunos4* | \ | |
15314 | *-*-irix5* | *-*-irix6* | \ | |
15315 | *-*-osf* | \ | |
15316 | *-*-dgux5* | \ | |
15317 | *-*-sysv5* ) | |
15318 | ;; | |
15319 | ||
15320 | *) | |
a0b9e27f | 15321 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
21d1c967 GD |
15322 | esac |
15323 | ||
15324 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
15325 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
15326 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
15327 | fi | |
15328 | ||
15329 | WX_TARGET_LIBRARY_TYPE="so" | |
15330 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 15331 | fi |
10f2d63a | 15332 | |
21d1c967 GD |
15333 | if test "$wxUSE_SHARED" = "no"; then |
15334 | ||
15335 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
15336 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
15337 | fi | |
15338 | ||
15339 | if test "$wxUSE_MAC" = 1; then | |
15340 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
15341 | fi | |
15342 | ||
15343 | if test "$wxUSE_OPENGL" = "yes"; then | |
15344 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
15345 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
15346 | else | |
15347 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
15348 | fi | |
15349 | ||
15350 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
15351 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
15352 | ||
15353 | WX_TARGET_LIBRARY_TYPE="a" | |
15354 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
90dd450c | 15355 | fi |
1e487827 | 15356 | |
21d1c967 GD |
15357 | if test "$wxUSE_MAC" = 1; then |
15358 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
15359 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
15360 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
15361 | # Extract the first word of "Rez", so it can be a program name with args. | |
15362 | set dummy Rez; ac_word=$2 | |
a0b9e27f | 15363 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
6969f178 | 15364 | echo "configure:15365: checking for $ac_word" >&5 |
a0b9e27f MB |
15365 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
15366 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b93d0d08 | 15367 | else |
21d1c967 GD |
15368 | if test -n "$RESCOMP"; then |
15369 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 15370 | else |
a0b9e27f MB |
15371 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15372 | ac_dummy="$PATH" | |
15373 | for ac_dir in $ac_dummy; do | |
15374 | test -z "$ac_dir" && ac_dir=. | |
15375 | if test -f $ac_dir/$ac_word; then | |
15376 | ac_cv_prog_RESCOMP="Rez" | |
15377 | break | |
15378 | fi | |
15379 | done | |
15380 | IFS="$ac_save_ifs" | |
21d1c967 | 15381 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 15382 | fi |
b93d0d08 | 15383 | fi |
a0b9e27f | 15384 | RESCOMP="$ac_cv_prog_RESCOMP" |
21d1c967 | 15385 | if test -n "$RESCOMP"; then |
a0b9e27f | 15386 | echo "$ac_t""$RESCOMP" 1>&6 |
90dd450c | 15387 | else |
a0b9e27f | 15388 | echo "$ac_t""no" 1>&6 |
90dd450c | 15389 | fi |
b93d0d08 | 15390 | |
21d1c967 GD |
15391 | # Extract the first word of "DeRez", so it can be a program name with args. |
15392 | set dummy DeRez; ac_word=$2 | |
a0b9e27f | 15393 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
6969f178 | 15394 | echo "configure:15395: checking for $ac_word" >&5 |
a0b9e27f MB |
15395 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
15396 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3a922bb4 | 15397 | else |
21d1c967 GD |
15398 | if test -n "$DEREZ"; then |
15399 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 15400 | else |
a0b9e27f MB |
15401 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15402 | ac_dummy="$PATH" | |
15403 | for ac_dir in $ac_dummy; do | |
15404 | test -z "$ac_dir" && ac_dir=. | |
15405 | if test -f $ac_dir/$ac_word; then | |
15406 | ac_cv_prog_DEREZ="DeRez" | |
15407 | break | |
15408 | fi | |
15409 | done | |
15410 | IFS="$ac_save_ifs" | |
21d1c967 | 15411 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 15412 | fi |
90dd450c | 15413 | fi |
a0b9e27f | 15414 | DEREZ="$ac_cv_prog_DEREZ" |
21d1c967 | 15415 | if test -n "$DEREZ"; then |
a0b9e27f | 15416 | echo "$ac_t""$DEREZ" 1>&6 |
90dd450c | 15417 | else |
a0b9e27f | 15418 | echo "$ac_t""no" 1>&6 |
3a922bb4 | 15419 | fi |
698dcdb6 | 15420 | |
21d1c967 GD |
15421 | MACOSX_BUNDLE="bundle" |
15422 | if test "$wxUSE_SHARED" = "yes"; then | |
15423 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)" | |
15424 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o" | |
15425 | else | |
15426 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
15427 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
15428 | fi | |
15429 | else | |
15430 | if test "$wxUSE_PM" = 1; then | |
15431 | LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)" | |
90dd450c | 15432 | fi |
4f14bcd8 | 15433 | fi |
10f2d63a | 15434 | |
8284b0c5 | 15435 | |
a0b9e27f | 15436 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
6969f178 | 15437 | echo "configure:15438: checking for ANSI C header files" >&5 |
a0b9e27f MB |
15438 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
15439 | echo $ac_n "(cached) $ac_c" 1>&6 | |
52127426 | 15440 | else |
a0b9e27f | 15441 | cat > conftest.$ac_ext <<EOF |
6969f178 | 15442 | #line 15443 "configure" |
52127426 | 15443 | #include "confdefs.h" |
a0b9e27f MB |
15444 | #include <stdlib.h> |
15445 | #include <stdarg.h> | |
15446 | #include <string.h> | |
15447 | #include <float.h> | |
15448 | EOF | |
15449 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 15450 | { (eval echo configure:15451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
15451 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15452 | if test -z "$ac_err"; then | |
15453 | rm -rf conftest* | |
15454 | ac_cv_header_stdc=yes | |
15455 | else | |
15456 | echo "$ac_err" >&5 | |
15457 | echo "configure: failed program was:" >&5 | |
15458 | cat conftest.$ac_ext >&5 | |
15459 | rm -rf conftest* | |
15460 | ac_cv_header_stdc=no | |
15461 | fi | |
15462 | rm -f conftest* | |
15463 | ||
15464 | if test $ac_cv_header_stdc = yes; then | |
15465 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15466 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 15467 | #line 15468 "configure" |
a0b9e27f MB |
15468 | #include "confdefs.h" |
15469 | #include <string.h> | |
15470 | EOF | |
15471 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15472 | egrep "memchr" >/dev/null 2>&1; then | |
15473 | : | |
15474 | else | |
15475 | rm -rf conftest* | |
15476 | ac_cv_header_stdc=no | |
15477 | fi | |
15478 | rm -f conftest* | |
15479 | ||
15480 | fi | |
15481 | ||
15482 | if test $ac_cv_header_stdc = yes; then | |
15483 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15484 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 15485 | #line 15486 "configure" |
a0b9e27f MB |
15486 | #include "confdefs.h" |
15487 | #include <stdlib.h> | |
15488 | EOF | |
15489 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15490 | egrep "free" >/dev/null 2>&1; then | |
15491 | : | |
7b4a847f | 15492 | else |
a0b9e27f MB |
15493 | rm -rf conftest* |
15494 | ac_cv_header_stdc=no | |
52127426 | 15495 | fi |
a0b9e27f MB |
15496 | rm -f conftest* |
15497 | ||
52127426 | 15498 | fi |
a0b9e27f MB |
15499 | |
15500 | if test $ac_cv_header_stdc = yes; then | |
15501 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15502 | if test "$cross_compiling" = yes; then | |
247f5006 VZ |
15503 | : |
15504 | else | |
a0b9e27f | 15505 | cat > conftest.$ac_ext <<EOF |
6969f178 | 15506 | #line 15507 "configure" |
a0b9e27f MB |
15507 | #include "confdefs.h" |
15508 | #include <ctype.h> | |
15509 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15510 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15511 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15512 | int main () { int i; for (i = 0; i < 256; i++) | |
15513 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
15514 | exit (0); } | |
247f5006 | 15515 | |
a0b9e27f | 15516 | EOF |
6969f178 | 15517 | if { (eval echo configure:15518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
15518 | then |
15519 | : | |
15520 | else | |
15521 | echo "configure: failed program was:" >&5 | |
15522 | cat conftest.$ac_ext >&5 | |
15523 | rm -fr conftest* | |
15524 | ac_cv_header_stdc=no | |
15525 | fi | |
15526 | rm -fr conftest* | |
15527 | fi | |
15528 | ||
15529 | fi | |
15530 | fi | |
15531 | ||
15532 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
15533 | if test $ac_cv_header_stdc = yes; then | |
15534 | cat >> confdefs.h <<\EOF | |
15535 | #define STDC_HEADERS 1 | |
15536 | EOF | |
8284b0c5 MB |
15537 | |
15538 | fi | |
15539 | ||
a0b9e27f | 15540 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
6969f178 | 15541 | echo "configure:15542: checking for mode_t" >&5 |
a0b9e27f MB |
15542 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
15543 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 15544 | else |
a0b9e27f | 15545 | cat > conftest.$ac_ext <<EOF |
6969f178 | 15546 | #line 15547 "configure" |
8284b0c5 | 15547 | #include "confdefs.h" |
a0b9e27f MB |
15548 | #include <sys/types.h> |
15549 | #if STDC_HEADERS | |
15550 | #include <stdlib.h> | |
15551 | #include <stddef.h> | |
8284b0c5 | 15552 | #endif |
a0b9e27f MB |
15553 | EOF |
15554 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15555 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15556 | rm -rf conftest* | |
15557 | ac_cv_type_mode_t=yes | |
5c6fa7d2 | 15558 | else |
a0b9e27f MB |
15559 | rm -rf conftest* |
15560 | ac_cv_type_mode_t=no | |
15561 | fi | |
15562 | rm -f conftest* | |
15563 | ||
8284b0c5 | 15564 | fi |
a0b9e27f MB |
15565 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
15566 | if test $ac_cv_type_mode_t = no; then | |
15567 | cat >> confdefs.h <<\EOF | |
15568 | #define mode_t int | |
15569 | EOF | |
15570 | ||
8284b0c5 | 15571 | fi |
a0b9e27f MB |
15572 | |
15573 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
6969f178 | 15574 | echo "configure:15575: checking for off_t" >&5 |
a0b9e27f MB |
15575 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
15576 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15577 | else | |
15578 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 15579 | #line 15580 "configure" |
a0b9e27f MB |
15580 | #include "confdefs.h" |
15581 | #include <sys/types.h> | |
15582 | #if STDC_HEADERS | |
15583 | #include <stdlib.h> | |
15584 | #include <stddef.h> | |
15585 | #endif | |
15586 | EOF | |
15587 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15588 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15589 | rm -rf conftest* | |
15590 | ac_cv_type_off_t=yes | |
247f5006 | 15591 | else |
a0b9e27f MB |
15592 | rm -rf conftest* |
15593 | ac_cv_type_off_t=no | |
15594 | fi | |
15595 | rm -f conftest* | |
247f5006 | 15596 | |
a0b9e27f MB |
15597 | fi |
15598 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
15599 | if test $ac_cv_type_off_t = no; then | |
15600 | cat >> confdefs.h <<\EOF | |
90dd450c | 15601 | #define off_t long |
a0b9e27f | 15602 | EOF |
10f2d63a | 15603 | |
90dd450c | 15604 | fi |
10f2d63a | 15605 | |
a0b9e27f | 15606 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
6969f178 | 15607 | echo "configure:15608: checking for pid_t" >&5 |
a0b9e27f MB |
15608 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
15609 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 15610 | else |
a0b9e27f | 15611 | cat > conftest.$ac_ext <<EOF |
6969f178 | 15612 | #line 15613 "configure" |
10f2d63a | 15613 | #include "confdefs.h" |
a0b9e27f MB |
15614 | #include <sys/types.h> |
15615 | #if STDC_HEADERS | |
15616 | #include <stdlib.h> | |
15617 | #include <stddef.h> | |
8284b0c5 | 15618 | #endif |
a0b9e27f MB |
15619 | EOF |
15620 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15621 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15622 | rm -rf conftest* | |
90dd450c | 15623 | ac_cv_type_pid_t=yes |
698dcdb6 | 15624 | else |
a0b9e27f MB |
15625 | rm -rf conftest* |
15626 | ac_cv_type_pid_t=no | |
8284b0c5 | 15627 | fi |
a0b9e27f | 15628 | rm -f conftest* |
247f5006 | 15629 | |
a0b9e27f MB |
15630 | fi |
15631 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
15632 | if test $ac_cv_type_pid_t = no; then | |
15633 | cat >> confdefs.h <<\EOF | |
90dd450c | 15634 | #define pid_t int |
a0b9e27f | 15635 | EOF |
10f2d63a | 15636 | |
7b4a847f RR |
15637 | fi |
15638 | ||
a0b9e27f | 15639 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
6969f178 | 15640 | echo "configure:15641: checking for size_t" >&5 |
a0b9e27f MB |
15641 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
15642 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 15643 | else |
a0b9e27f | 15644 | cat > conftest.$ac_ext <<EOF |
6969f178 | 15645 | #line 15646 "configure" |
7b4a847f | 15646 | #include "confdefs.h" |
a0b9e27f MB |
15647 | #include <sys/types.h> |
15648 | #if STDC_HEADERS | |
15649 | #include <stdlib.h> | |
15650 | #include <stddef.h> | |
8284b0c5 | 15651 | #endif |
a0b9e27f MB |
15652 | EOF |
15653 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15654 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15655 | rm -rf conftest* | |
90dd450c | 15656 | ac_cv_type_size_t=yes |
18dbb1f6 | 15657 | else |
a0b9e27f MB |
15658 | rm -rf conftest* |
15659 | ac_cv_type_size_t=no | |
52127426 | 15660 | fi |
a0b9e27f | 15661 | rm -f conftest* |
247f5006 | 15662 | |
a0b9e27f MB |
15663 | fi |
15664 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
15665 | if test $ac_cv_type_size_t = no; then | |
15666 | cat >> confdefs.h <<\EOF | |
90dd450c | 15667 | #define size_t unsigned |
a0b9e27f | 15668 | EOF |
90dd450c VZ |
15669 | |
15670 | fi | |
15671 | ||
a0b9e27f | 15672 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
6969f178 | 15673 | echo "configure:15674: checking for uid_t in sys/types.h" >&5 |
a0b9e27f MB |
15674 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
15675 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a | 15676 | else |
a0b9e27f | 15677 | cat > conftest.$ac_ext <<EOF |
6969f178 | 15678 | #line 15679 "configure" |
b3e8d00a | 15679 | #include "confdefs.h" |
90dd450c | 15680 | #include <sys/types.h> |
a0b9e27f | 15681 | EOF |
90dd450c VZ |
15682 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15683 | egrep "uid_t" >/dev/null 2>&1; then | |
a0b9e27f | 15684 | rm -rf conftest* |
90dd450c | 15685 | ac_cv_type_uid_t=yes |
b3e8d00a | 15686 | else |
a0b9e27f | 15687 | rm -rf conftest* |
90dd450c | 15688 | ac_cv_type_uid_t=no |
b3e8d00a | 15689 | fi |
90dd450c | 15690 | rm -f conftest* |
b3e8d00a | 15691 | |
4f14bcd8 | 15692 | fi |
247f5006 | 15693 | |
a0b9e27f MB |
15694 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
15695 | if test $ac_cv_type_uid_t = no; then | |
15696 | cat >> confdefs.h <<\EOF | |
90dd450c | 15697 | #define uid_t int |
a0b9e27f | 15698 | EOF |
247f5006 | 15699 | |
a0b9e27f | 15700 | cat >> confdefs.h <<\EOF |
90dd450c | 15701 | #define gid_t int |
a0b9e27f | 15702 | EOF |
4f14bcd8 | 15703 | |
b3e8d00a | 15704 | fi |
b3e8d00a | 15705 | |
8284b0c5 MB |
15706 | |
15707 | ||
a0b9e27f MB |
15708 | ac_ext=C |
15709 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 15710 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
15711 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15712 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15713 | cross_compiling=$ac_cv_prog_cxx_cross | |
90dd450c | 15714 | |
a0b9e27f | 15715 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
6969f178 | 15716 | echo "configure:15717: checking if size_t is unsigned int" >&5 |
a0b9e27f MB |
15717 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
15718 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 15719 | else |
a0b9e27f | 15720 | cat > conftest.$ac_ext <<EOF |
6969f178 | 15721 | #line 15722 "configure" |
10f2d63a | 15722 | #include "confdefs.h" |
90dd450c | 15723 | #include <stddef.h> |
a0b9e27f | 15724 | int main() { |
90dd450c VZ |
15725 | |
15726 | return 0; } | |
15727 | ||
15728 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
15729 | ||
15730 | int bar() { | |
a0b9e27f MB |
15731 | |
15732 | ; return 0; } | |
15733 | EOF | |
6969f178 | 15734 | if { (eval echo configure:15735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 15735 | rm -rf conftest* |
90dd450c | 15736 | wx_cv_size_t_is_uint=no |
698dcdb6 | 15737 | else |
a0b9e27f MB |
15738 | echo "configure: failed program was:" >&5 |
15739 | cat conftest.$ac_ext >&5 | |
15740 | rm -rf conftest* | |
15741 | wx_cv_size_t_is_uint=yes | |
15742 | ||
5c6fa7d2 | 15743 | fi |
a0b9e27f | 15744 | rm -f conftest* |
8284b0c5 | 15745 | |
247f5006 | 15746 | fi |
a0b9e27f MB |
15747 | |
15748 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
4f14bcd8 | 15749 | |
90dd450c | 15750 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
a0b9e27f | 15751 | cat >> confdefs.h <<\EOF |
90dd450c | 15752 | #define wxSIZE_T_IS_UINT 1 |
a0b9e27f | 15753 | EOF |
698dcdb6 | 15754 | |
90dd450c | 15755 | else |
a0b9e27f | 15756 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 |
6969f178 | 15757 | echo "configure:15758: checking if size_t is unsigned long" >&5 |
a0b9e27f MB |
15758 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
15759 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 15760 | else |
a0b9e27f | 15761 | cat > conftest.$ac_ext <<EOF |
6969f178 | 15762 | #line 15763 "configure" |
10f2d63a | 15763 | #include "confdefs.h" |
90dd450c | 15764 | #include <stddef.h> |
a0b9e27f | 15765 | int main() { |
90dd450c VZ |
15766 | |
15767 | return 0; } | |
15768 | ||
15769 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
15770 | ||
15771 | int bar() { | |
a0b9e27f MB |
15772 | |
15773 | ; return 0; } | |
15774 | EOF | |
6969f178 | 15775 | if { (eval echo configure:15776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 15776 | rm -rf conftest* |
90dd450c | 15777 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 15778 | else |
a0b9e27f MB |
15779 | echo "configure: failed program was:" >&5 |
15780 | cat conftest.$ac_ext >&5 | |
15781 | rm -rf conftest* | |
15782 | wx_cv_size_t_is_ulong=yes | |
15783 | ||
5c6fa7d2 | 15784 | fi |
a0b9e27f MB |
15785 | rm -f conftest* |
15786 | ||
247f5006 | 15787 | fi |
a0b9e27f MB |
15788 | |
15789 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
10f2d63a | 15790 | |
90dd450c | 15791 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
a0b9e27f | 15792 | cat >> confdefs.h <<\EOF |
90dd450c | 15793 | #define wxSIZE_T_IS_ULONG 1 |
a0b9e27f | 15794 | EOF |
4f14bcd8 GD |
15795 | |
15796 | fi | |
90dd450c | 15797 | fi |
1e487827 | 15798 | |
90dd450c | 15799 | ac_ext=c |
a0b9e27f | 15800 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 15801 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
15802 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15803 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15804 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 15805 | |
5c6fa7d2 | 15806 | |
8284b0c5 | 15807 | |
a0b9e27f | 15808 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
6969f178 | 15809 | echo "configure:15810: checking for pw_gecos in struct passwd" >&5 |
a0b9e27f MB |
15810 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
15811 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 15812 | else |
a0b9e27f MB |
15813 | |
15814 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 15815 | #line 15816 "configure" |
4f14bcd8 | 15816 | #include "confdefs.h" |
90dd450c | 15817 | #include <pwd.h> |
a0b9e27f | 15818 | int main() { |
f6bcfd97 | 15819 | |
90dd450c VZ |
15820 | char *p; |
15821 | struct passwd *pw; | |
15822 | p = pw->pw_gecos; | |
a0b9e27f MB |
15823 | |
15824 | ; return 0; } | |
15825 | EOF | |
6969f178 | 15826 | if { (eval echo configure:15827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15827 | rm -rf conftest* |
15828 | ||
90dd450c | 15829 | wx_cv_struct_pw_gecos=yes |
a0b9e27f | 15830 | |
10f2d63a | 15831 | else |
a0b9e27f MB |
15832 | echo "configure: failed program was:" >&5 |
15833 | cat conftest.$ac_ext >&5 | |
15834 | rm -rf conftest* | |
15835 | ||
90dd450c | 15836 | wx_cv_struct_pw_gecos=no |
a0b9e27f MB |
15837 | |
15838 | ||
5c6fa7d2 | 15839 | fi |
a0b9e27f MB |
15840 | rm -f conftest* |
15841 | ||
247f5006 VZ |
15842 | |
15843 | fi | |
a0b9e27f MB |
15844 | |
15845 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
c521c494 | 15846 | |
90dd450c | 15847 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
a0b9e27f | 15848 | cat >> confdefs.h <<\EOF |
90dd450c | 15849 | #define HAVE_PW_GECOS 1 |
a0b9e27f | 15850 | EOF |
c521c494 | 15851 | |
90dd450c | 15852 | fi |
4f14bcd8 | 15853 | |
8284b0c5 | 15854 | |
d29b553b | 15855 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
a0b9e27f | 15856 | cat >> confdefs.h <<\EOF |
d74f4b5a | 15857 | #define wxUSE_WCHAR_T 1 |
a0b9e27f | 15858 | EOF |
d74f4b5a | 15859 | |
8284b0c5 | 15860 | |
d74f4b5a VZ |
15861 | WCSLEN_FOUND=0 |
15862 | WCHAR_LINK= | |
a0b9e27f | 15863 | for ac_func in wcslen |
7a30264c | 15864 | do |
a0b9e27f | 15865 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 15866 | echo "configure:15867: checking for $ac_func" >&5 |
a0b9e27f MB |
15867 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15868 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15869 | else | |
15870 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 15871 | #line 15872 "configure" |
4f14bcd8 | 15872 | #include "confdefs.h" |
7a30264c | 15873 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 15874 | which can conflict with char $ac_func(); below. */ |
7a30264c | 15875 | #include <assert.h> |
4f14bcd8 GD |
15876 | /* Override any gcc2 internal prototype to avoid an error. */ |
15877 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15878 | builtin and then its argument prototype would still apply. */ |
15879 | char $ac_func(); | |
15880 | ||
15881 | int main() { | |
15882 | ||
7a30264c VZ |
15883 | /* The GNU C library defines this for functions which it implements |
15884 | to always fail with ENOSYS. Some functions are actually named | |
15885 | something starting with __ and the normal name is an alias. */ | |
15886 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15887 | choke me | |
15888 | #else | |
a0b9e27f | 15889 | $ac_func(); |
7a30264c VZ |
15890 | #endif |
15891 | ||
a0b9e27f MB |
15892 | ; return 0; } |
15893 | EOF | |
6969f178 | 15894 | if { (eval echo configure:15895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15895 | rm -rf conftest* |
15896 | eval "ac_cv_func_$ac_func=yes" | |
15897 | else | |
15898 | echo "configure: failed program was:" >&5 | |
15899 | cat conftest.$ac_ext >&5 | |
15900 | rm -rf conftest* | |
15901 | eval "ac_cv_func_$ac_func=no" | |
15902 | fi | |
15903 | rm -f conftest* | |
15904 | fi | |
15905 | ||
15906 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15907 | echo "$ac_t""yes" 1>&6 | |
15908 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15909 | cat >> confdefs.h <<EOF | |
15910 | #define $ac_tr_func 1 | |
15911 | EOF | |
d74f4b5a | 15912 | WCSLEN_FOUND=1 |
a0b9e27f MB |
15913 | else |
15914 | echo "$ac_t""no" 1>&6 | |
7a30264c VZ |
15915 | fi |
15916 | done | |
9d8deca0 | 15917 | |
8284b0c5 | 15918 | |
d74f4b5a | 15919 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 15920 | if test "$TOOLKIT" = "MSW"; then |
a0b9e27f | 15921 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
6969f178 | 15922 | echo "configure:15923: checking for wcslen in -lmsvcrt" >&5 |
a0b9e27f MB |
15923 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
15924 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15925 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15926 | else |
a0b9e27f | 15927 | ac_save_LIBS="$LIBS" |
7a30264c | 15928 | LIBS="-lmsvcrt $LIBS" |
a0b9e27f | 15929 | cat > conftest.$ac_ext <<EOF |
6969f178 | 15930 | #line 15931 "configure" |
10f2d63a | 15931 | #include "confdefs.h" |
4f14bcd8 GD |
15932 | /* Override any gcc2 internal prototype to avoid an error. */ |
15933 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15934 | builtin and then its argument prototype would still apply. */ |
15935 | char wcslen(); | |
15936 | ||
15937 | int main() { | |
15938 | wcslen() | |
15939 | ; return 0; } | |
15940 | EOF | |
6969f178 | 15941 | if { (eval echo configure:15942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15942 | rm -rf conftest* |
15943 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15944 | else | |
15945 | echo "configure: failed program was:" >&5 | |
15946 | cat conftest.$ac_ext >&5 | |
15947 | rm -rf conftest* | |
15948 | eval "ac_cv_lib_$ac_lib_var=no" | |
15949 | fi | |
15950 | rm -f conftest* | |
15951 | LIBS="$ac_save_LIBS" | |
15952 | ||
15953 | fi | |
15954 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15955 | echo "$ac_t""yes" 1>&6 | |
d74f4b5a | 15956 | WCHAR_OK=1 |
a0b9e27f MB |
15957 | else |
15958 | echo "$ac_t""no" 1>&6 | |
d29b553b | 15959 | fi |
698dcdb6 | 15960 | |
7a30264c | 15961 | else |
a0b9e27f | 15962 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
6969f178 | 15963 | echo "configure:15964: checking for wcslen in -lw" >&5 |
a0b9e27f MB |
15964 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
15965 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15966 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 15967 | else |
a0b9e27f | 15968 | ac_save_LIBS="$LIBS" |
7a30264c | 15969 | LIBS="-lw $LIBS" |
a0b9e27f | 15970 | cat > conftest.$ac_ext <<EOF |
6969f178 | 15971 | #line 15972 "configure" |
95c8801c | 15972 | #include "confdefs.h" |
4f14bcd8 GD |
15973 | /* Override any gcc2 internal prototype to avoid an error. */ |
15974 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15975 | builtin and then its argument prototype would still apply. */ |
15976 | char wcslen(); | |
52127426 | 15977 | |
a0b9e27f MB |
15978 | int main() { |
15979 | wcslen() | |
15980 | ; return 0; } | |
15981 | EOF | |
6969f178 | 15982 | if { (eval echo configure:15983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15983 | rm -rf conftest* |
15984 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15985 | else | |
15986 | echo "configure: failed program was:" >&5 | |
15987 | cat conftest.$ac_ext >&5 | |
15988 | rm -rf conftest* | |
15989 | eval "ac_cv_lib_$ac_lib_var=no" | |
15990 | fi | |
15991 | rm -f conftest* | |
15992 | LIBS="$ac_save_LIBS" | |
15993 | ||
15994 | fi | |
15995 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15996 | echo "$ac_t""yes" 1>&6 | |
15997 | ||
7a30264c | 15998 | WCHAR_LINK=" -lw" |
d74f4b5a | 15999 | WCSLEN_FOUND=1 |
a0b9e27f MB |
16000 | |
16001 | else | |
16002 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 16003 | fi |
10f2d63a | 16004 | |
7a30264c | 16005 | fi |
d29b553b | 16006 | fi |
95c8801c | 16007 | |
d74f4b5a | 16008 | if test "$WCSLEN_FOUND" = 1; then |
a0b9e27f | 16009 | cat >> confdefs.h <<\EOF |
d74f4b5a | 16010 | #define HAVE_WCSLEN 1 |
a0b9e27f | 16011 | EOF |
10f2d63a | 16012 | |
d74f4b5a | 16013 | fi |
52127426 | 16014 | |
a0b9e27f | 16015 | for ac_func in wcsrtombs |
eb4efbdc | 16016 | do |
a0b9e27f | 16017 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 16018 | echo "configure:16019: checking for $ac_func" >&5 |
a0b9e27f MB |
16019 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16020 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16021 | else | |
16022 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 16023 | #line 16024 "configure" |
eb4efbdc VZ |
16024 | #include "confdefs.h" |
16025 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16026 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
16027 | #include <assert.h> |
16028 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4f14bcd8 | 16029 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
16030 | builtin and then its argument prototype would still apply. */ |
16031 | char $ac_func(); | |
16032 | ||
16033 | int main() { | |
16034 | ||
10f2d63a VZ |
16035 | /* The GNU C library defines this for functions which it implements |
16036 | to always fail with ENOSYS. Some functions are actually named | |
16037 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 16038 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
16039 | choke me |
16040 | #else | |
a0b9e27f | 16041 | $ac_func(); |
10f2d63a VZ |
16042 | #endif |
16043 | ||
a0b9e27f MB |
16044 | ; return 0; } |
16045 | EOF | |
6969f178 | 16046 | if { (eval echo configure:16047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16047 | rm -rf conftest* |
16048 | eval "ac_cv_func_$ac_func=yes" | |
16049 | else | |
16050 | echo "configure: failed program was:" >&5 | |
16051 | cat conftest.$ac_ext >&5 | |
16052 | rm -rf conftest* | |
16053 | eval "ac_cv_func_$ac_func=no" | |
16054 | fi | |
16055 | rm -f conftest* | |
16056 | fi | |
270a909e | 16057 | |
a0b9e27f MB |
16058 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16059 | echo "$ac_t""yes" 1>&6 | |
16060 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16061 | cat >> confdefs.h <<EOF | |
16062 | #define $ac_tr_func 1 | |
16063 | EOF | |
16064 | ||
16065 | else | |
16066 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 16067 | fi |
247f5006 | 16068 | done |
1e487827 | 16069 | |
af15babd | 16070 | else |
a0b9e27f | 16071 | echo "configure: warning: Wide character support is unavailable" 1>&2 |
7b4a847f | 16072 | fi |
52127426 | 16073 | |
8284b0c5 | 16074 | |
a0b9e27f MB |
16075 | ac_ext=C |
16076 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
247f5006 | 16077 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16078 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16079 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16080 | cross_compiling=$ac_cv_prog_cxx_cross | |
af15babd | 16081 | |
247f5006 VZ |
16082 | |
16083 | for ac_func in vsnprintf | |
16084 | do | |
a0b9e27f | 16085 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 16086 | echo "configure:16087: checking for $ac_func" >&5 |
a0b9e27f MB |
16087 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16088 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16089 | else | |
16090 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 16091 | #line 16092 "configure" |
af15babd | 16092 | #include "confdefs.h" |
247f5006 | 16093 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 16094 | which can conflict with char $ac_func(); below. */ |
247f5006 VZ |
16095 | #include <assert.h> |
16096 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16097 | #ifdef __cplusplus | |
16098 | extern "C" | |
16099 | #endif | |
16100 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16101 | builtin and then its argument prototype would still apply. */ |
16102 | char $ac_func(); | |
16103 | ||
16104 | int main() { | |
16105 | ||
247f5006 VZ |
16106 | /* The GNU C library defines this for functions which it implements |
16107 | to always fail with ENOSYS. Some functions are actually named | |
16108 | something starting with __ and the normal name is an alias. */ | |
16109 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16110 | choke me | |
16111 | #else | |
a0b9e27f | 16112 | $ac_func(); |
247f5006 | 16113 | #endif |
af15babd | 16114 | |
a0b9e27f MB |
16115 | ; return 0; } |
16116 | EOF | |
6969f178 | 16117 | if { (eval echo configure:16118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16118 | rm -rf conftest* |
16119 | eval "ac_cv_func_$ac_func=yes" | |
16120 | else | |
16121 | echo "configure: failed program was:" >&5 | |
16122 | cat conftest.$ac_ext >&5 | |
16123 | rm -rf conftest* | |
16124 | eval "ac_cv_func_$ac_func=no" | |
16125 | fi | |
16126 | rm -f conftest* | |
16127 | fi | |
52127426 | 16128 | |
a0b9e27f MB |
16129 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16130 | echo "$ac_t""yes" 1>&6 | |
16131 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16132 | cat >> confdefs.h <<EOF | |
16133 | #define $ac_tr_func 1 | |
16134 | EOF | |
16135 | ||
16136 | else | |
16137 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 16138 | fi |
247f5006 | 16139 | done |
8284b0c5 | 16140 | |
4f14bcd8 | 16141 | |
247f5006 | 16142 | if test "$wxUSE_UNICODE" = yes; then |
a0b9e27f | 16143 | for ac_func in fputwc wprintf vswprintf |
d74f4b5a | 16144 | do |
a0b9e27f | 16145 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 16146 | echo "configure:16147: checking for $ac_func" >&5 |
a0b9e27f MB |
16147 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16148 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16149 | else | |
16150 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 16151 | #line 16152 "configure" |
d74f4b5a VZ |
16152 | #include "confdefs.h" |
16153 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16154 | which can conflict with char $ac_func(); below. */ |
d74f4b5a VZ |
16155 | #include <assert.h> |
16156 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
16157 | #ifdef __cplusplus |
16158 | extern "C" | |
16159 | #endif | |
d74f4b5a | 16160 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
16161 | builtin and then its argument prototype would still apply. */ |
16162 | char $ac_func(); | |
16163 | ||
16164 | int main() { | |
16165 | ||
d74f4b5a VZ |
16166 | /* The GNU C library defines this for functions which it implements |
16167 | to always fail with ENOSYS. Some functions are actually named | |
16168 | something starting with __ and the normal name is an alias. */ | |
16169 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16170 | choke me | |
16171 | #else | |
a0b9e27f | 16172 | $ac_func(); |
d74f4b5a VZ |
16173 | #endif |
16174 | ||
a0b9e27f MB |
16175 | ; return 0; } |
16176 | EOF | |
6969f178 | 16177 | if { (eval echo configure:16178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16178 | rm -rf conftest* |
16179 | eval "ac_cv_func_$ac_func=yes" | |
16180 | else | |
16181 | echo "configure: failed program was:" >&5 | |
16182 | cat conftest.$ac_ext >&5 | |
16183 | rm -rf conftest* | |
16184 | eval "ac_cv_func_$ac_func=no" | |
16185 | fi | |
16186 | rm -f conftest* | |
16187 | fi | |
d74f4b5a | 16188 | |
a0b9e27f MB |
16189 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16190 | echo "$ac_t""yes" 1>&6 | |
16191 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16192 | cat >> confdefs.h <<EOF | |
16193 | #define $ac_tr_func 1 | |
16194 | EOF | |
16195 | ||
16196 | else | |
16197 | echo "$ac_t""no" 1>&6 | |
d74f4b5a VZ |
16198 | fi |
16199 | done | |
16200 | ||
16201 | fi | |
16202 | ||
247f5006 | 16203 | ac_ext=c |
a0b9e27f | 16204 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
247f5006 | 16205 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
16206 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16207 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16208 | cross_compiling=$ac_cv_prog_cc_cross | |
247f5006 VZ |
16209 | |
16210 | ||
16211 | ||
16212 | ||
4f14bcd8 | 16213 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 16214 | |
8284b0c5 MB |
16215 | |
16216 | ||
a0b9e27f MB |
16217 | ac_ext=C |
16218 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 16219 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16220 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16221 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16222 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 16223 | |
52127426 | 16224 | |
a0b9e27f MB |
16225 | |
16226 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
16227 | if test "${with_libiconv_prefix+set}" = set; then |
16228 | withval="$with_libiconv_prefix" | |
a0b9e27f | 16229 | |
b040e242 VS |
16230 | for dir in `echo "$withval" | tr : ' '`; do |
16231 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
16232 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
16233 | done | |
a0b9e27f MB |
16234 | |
16235 | fi | |
b040e242 VS |
16236 | |
16237 | ||
a0b9e27f | 16238 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
6969f178 | 16239 | echo "configure:16240: checking for iconv" >&5 |
a0b9e27f MB |
16240 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
16241 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 16242 | else |
a0b9e27f | 16243 | |
b040e242 VS |
16244 | am_cv_func_iconv="no, consider installing GNU libiconv" |
16245 | am_cv_lib_iconv=no | |
a0b9e27f | 16246 | cat > conftest.$ac_ext <<EOF |
6969f178 | 16247 | #line 16248 "configure" |
af15babd | 16248 | #include "confdefs.h" |
b040e242 | 16249 | #include <stdlib.h> |
4f14bcd8 | 16250 | #include <iconv.h> |
a0b9e27f | 16251 | int main() { |
b040e242 VS |
16252 | iconv_t cd = iconv_open("",""); |
16253 | iconv(cd,NULL,NULL,NULL,NULL); | |
16254 | iconv_close(cd); | |
a0b9e27f MB |
16255 | ; return 0; } |
16256 | EOF | |
6969f178 | 16257 | if { (eval echo configure:16258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 16258 | rm -rf conftest* |
b040e242 | 16259 | am_cv_func_iconv=yes |
af15babd | 16260 | else |
a0b9e27f MB |
16261 | echo "configure: failed program was:" >&5 |
16262 | cat conftest.$ac_ext >&5 | |
b040e242 | 16263 | fi |
a0b9e27f | 16264 | rm -f conftest* |
b040e242 VS |
16265 | if test "$am_cv_func_iconv" != yes; then |
16266 | am_save_LIBS="$LIBS" | |
16267 | LIBS="$LIBS -liconv" | |
a0b9e27f | 16268 | cat > conftest.$ac_ext <<EOF |
6969f178 | 16269 | #line 16270 "configure" |
b040e242 VS |
16270 | #include "confdefs.h" |
16271 | #include <stdlib.h> | |
16272 | #include <iconv.h> | |
a0b9e27f | 16273 | int main() { |
b040e242 VS |
16274 | iconv_t cd = iconv_open("",""); |
16275 | iconv(cd,NULL,NULL,NULL,NULL); | |
16276 | iconv_close(cd); | |
a0b9e27f MB |
16277 | ; return 0; } |
16278 | EOF | |
6969f178 | 16279 | if { (eval echo configure:16280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 16280 | rm -rf conftest* |
b040e242 VS |
16281 | am_cv_lib_iconv=yes |
16282 | am_cv_func_iconv=yes | |
16283 | else | |
a0b9e27f MB |
16284 | echo "configure: failed program was:" >&5 |
16285 | cat conftest.$ac_ext >&5 | |
af15babd | 16286 | fi |
a0b9e27f | 16287 | rm -f conftest* |
b040e242 VS |
16288 | LIBS="$am_save_LIBS" |
16289 | fi | |
a0b9e27f | 16290 | |
247f5006 | 16291 | fi |
247f5006 | 16292 | |
a0b9e27f MB |
16293 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
16294 | if test "$am_cv_func_iconv" = yes; then | |
16295 | cat >> confdefs.h <<\EOF | |
b040e242 | 16296 | #define HAVE_ICONV 1 |
a0b9e27f | 16297 | EOF |
b040e242 | 16298 | |
a0b9e27f | 16299 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
6969f178 | 16300 | echo "configure:16301: checking if iconv needs const" >&5 |
a0b9e27f MB |
16301 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
16302 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b040e242 | 16303 | else |
a0b9e27f | 16304 | cat > conftest.$ac_ext <<EOF |
6969f178 | 16305 | #line 16306 "configure" |
b040e242 VS |
16306 | #include "confdefs.h" |
16307 | ||
16308 | #include <stdlib.h> | |
16309 | #include <iconv.h> | |
16310 | extern | |
16311 | #ifdef __cplusplus | |
16312 | "C" | |
16313 | #endif | |
16314 | #if defined(__STDC__) || defined(__cplusplus) | |
16315 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
16316 | #else | |
16317 | size_t iconv(); | |
16318 | #endif | |
a0b9e27f MB |
16319 | |
16320 | int main() { | |
af15babd | 16321 | |
a0b9e27f MB |
16322 | ; return 0; } |
16323 | EOF | |
6969f178 | 16324 | if { (eval echo configure:16325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16325 | rm -rf conftest* |
b7043674 | 16326 | wx_cv_func_iconv_const="no" |
b040e242 | 16327 | else |
a0b9e27f MB |
16328 | echo "configure: failed program was:" >&5 |
16329 | cat conftest.$ac_ext >&5 | |
16330 | rm -rf conftest* | |
16331 | wx_cv_func_iconv_const="yes" | |
16332 | ||
5c6fa7d2 | 16333 | fi |
a0b9e27f MB |
16334 | rm -f conftest* |
16335 | ||
247f5006 | 16336 | fi |
a0b9e27f MB |
16337 | |
16338 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 | |
b7043674 VZ |
16339 | |
16340 | iconv_const= | |
1c405bb5 | 16341 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
16342 | iconv_const="const" |
16343 | fi | |
16344 | ||
a0b9e27f | 16345 | cat >> confdefs.h <<EOF |
f09359cf | 16346 | #define ICONV_CONST $iconv_const |
a0b9e27f | 16347 | EOF |
b040e242 VS |
16348 | |
16349 | fi | |
16350 | LIBICONV= | |
16351 | if test "$am_cv_lib_iconv" = yes; then | |
16352 | LIBICONV="-liconv" | |
16353 | fi | |
a0b9e27f | 16354 | |
b040e242 VS |
16355 | |
16356 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 16357 | ac_ext=c |
a0b9e27f | 16358 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 16359 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
16360 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16361 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16362 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 16363 | |
5c6fa7d2 | 16364 | |
8284b0c5 | 16365 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 16366 | for ac_func in sigaction |
af15babd | 16367 | do |
a0b9e27f | 16368 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 16369 | echo "configure:16370: checking for $ac_func" >&5 |
a0b9e27f MB |
16370 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16371 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16372 | else | |
16373 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 16374 | #line 16375 "configure" |
af15babd VZ |
16375 | #include "confdefs.h" |
16376 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16377 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16378 | #include <assert.h> |
16379 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16380 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16381 | builtin and then its argument prototype would still apply. */ |
16382 | char $ac_func(); | |
16383 | ||
16384 | int main() { | |
16385 | ||
af15babd VZ |
16386 | /* The GNU C library defines this for functions which it implements |
16387 | to always fail with ENOSYS. Some functions are actually named | |
16388 | something starting with __ and the normal name is an alias. */ | |
16389 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16390 | choke me | |
16391 | #else | |
a0b9e27f | 16392 | $ac_func(); |
af15babd VZ |
16393 | #endif |
16394 | ||
a0b9e27f MB |
16395 | ; return 0; } |
16396 | EOF | |
6969f178 | 16397 | if { (eval echo configure:16398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16398 | rm -rf conftest* |
16399 | eval "ac_cv_func_$ac_func=yes" | |
16400 | else | |
16401 | echo "configure: failed program was:" >&5 | |
16402 | cat conftest.$ac_ext >&5 | |
16403 | rm -rf conftest* | |
16404 | eval "ac_cv_func_$ac_func=no" | |
16405 | fi | |
16406 | rm -f conftest* | |
16407 | fi | |
7b4a847f | 16408 | |
a0b9e27f MB |
16409 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16410 | echo "$ac_t""yes" 1>&6 | |
16411 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16412 | cat >> confdefs.h <<EOF | |
16413 | #define $ac_tr_func 1 | |
16414 | EOF | |
16415 | ||
16416 | else | |
16417 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16418 | fi |
16419 | done | |
16420 | ||
8284b0c5 | 16421 | |
4f14bcd8 | 16422 | if test "$ac_cv_func_sigaction" = "no"; then |
a0b9e27f | 16423 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
4f14bcd8 GD |
16424 | wxUSE_ON_FATAL_EXCEPTION=no |
16425 | fi | |
16426 | ||
16427 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a0b9e27f MB |
16428 | |
16429 | ac_ext=C | |
16430 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 16431 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16432 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16433 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16434 | cross_compiling=$ac_cv_prog_cxx_cross | |
7b4a847f | 16435 | |
5c6fa7d2 | 16436 | |
a0b9e27f | 16437 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
6969f178 | 16438 | echo "configure:16439: checking for sa_handler type" >&5 |
a0b9e27f MB |
16439 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
16440 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16441 | else |
a0b9e27f MB |
16442 | |
16443 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 16444 | #line 16445 "configure" |
af15babd | 16445 | #include "confdefs.h" |
4f14bcd8 | 16446 | #include <signal.h> |
a0b9e27f | 16447 | int main() { |
4f14bcd8 GD |
16448 | |
16449 | extern void testSigHandler(int); | |
16450 | ||
16451 | struct sigaction sa; | |
16452 | sa.sa_handler = testSigHandler; | |
a0b9e27f MB |
16453 | |
16454 | ; return 0; } | |
16455 | EOF | |
6969f178 | 16456 | if { (eval echo configure:16457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
16457 | rm -rf conftest* |
16458 | ||
4f14bcd8 | 16459 | wx_cv_type_sa_handler=int |
a0b9e27f | 16460 | |
af15babd | 16461 | else |
a0b9e27f MB |
16462 | echo "configure: failed program was:" >&5 |
16463 | cat conftest.$ac_ext >&5 | |
16464 | rm -rf conftest* | |
16465 | ||
4f14bcd8 | 16466 | wx_cv_type_sa_handler=void |
a0b9e27f | 16467 | |
5c6fa7d2 | 16468 | fi |
a0b9e27f MB |
16469 | rm -f conftest* |
16470 | ||
247f5006 | 16471 | fi |
a0b9e27f MB |
16472 | |
16473 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
4f14bcd8 GD |
16474 | |
16475 | ac_ext=c | |
a0b9e27f | 16476 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 16477 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
16478 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16479 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16480 | cross_compiling=$ac_cv_prog_cc_cross | |
579d8138 | 16481 | |
8284b0c5 | 16482 | |
a0b9e27f | 16483 | cat >> confdefs.h <<EOF |
4f14bcd8 | 16484 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
a0b9e27f | 16485 | EOF |
af15babd | 16486 | |
4f14bcd8 GD |
16487 | fi |
16488 | fi | |
af15babd | 16489 | |
4f14bcd8 | 16490 | for ac_func in vfork |
af15babd | 16491 | do |
a0b9e27f | 16492 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 16493 | echo "configure:16494: checking for $ac_func" >&5 |
a0b9e27f MB |
16494 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16495 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16496 | else | |
16497 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 16498 | #line 16499 "configure" |
af15babd VZ |
16499 | #include "confdefs.h" |
16500 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16501 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16502 | #include <assert.h> |
16503 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16504 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16505 | builtin and then its argument prototype would still apply. */ |
16506 | char $ac_func(); | |
16507 | ||
16508 | int main() { | |
16509 | ||
af15babd VZ |
16510 | /* The GNU C library defines this for functions which it implements |
16511 | to always fail with ENOSYS. Some functions are actually named | |
16512 | something starting with __ and the normal name is an alias. */ | |
16513 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16514 | choke me | |
16515 | #else | |
a0b9e27f | 16516 | $ac_func(); |
af15babd VZ |
16517 | #endif |
16518 | ||
a0b9e27f MB |
16519 | ; return 0; } |
16520 | EOF | |
6969f178 | 16521 | if { (eval echo configure:16522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16522 | rm -rf conftest* |
16523 | eval "ac_cv_func_$ac_func=yes" | |
16524 | else | |
16525 | echo "configure: failed program was:" >&5 | |
16526 | cat conftest.$ac_ext >&5 | |
16527 | rm -rf conftest* | |
16528 | eval "ac_cv_func_$ac_func=no" | |
16529 | fi | |
16530 | rm -f conftest* | |
16531 | fi | |
af15babd | 16532 | |
a0b9e27f MB |
16533 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16534 | echo "$ac_t""yes" 1>&6 | |
16535 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16536 | cat >> confdefs.h <<EOF | |
16537 | #define $ac_tr_func 1 | |
16538 | EOF | |
16539 | ||
16540 | else | |
16541 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16542 | fi |
16543 | done | |
16544 | ||
8284b0c5 | 16545 | |
ade35f11 VZ |
16546 | for ac_func in mkstemp mktemp |
16547 | do | |
a0b9e27f | 16548 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 16549 | echo "configure:16550: checking for $ac_func" >&5 |
a0b9e27f MB |
16550 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16551 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16552 | else | |
16553 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 16554 | #line 16555 "configure" |
ade35f11 VZ |
16555 | #include "confdefs.h" |
16556 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16557 | which can conflict with char $ac_func(); below. */ |
ade35f11 VZ |
16558 | #include <assert.h> |
16559 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16560 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16561 | builtin and then its argument prototype would still apply. */ |
16562 | char $ac_func(); | |
16563 | ||
16564 | int main() { | |
16565 | ||
ade35f11 VZ |
16566 | /* The GNU C library defines this for functions which it implements |
16567 | to always fail with ENOSYS. Some functions are actually named | |
16568 | something starting with __ and the normal name is an alias. */ | |
16569 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16570 | choke me | |
16571 | #else | |
a0b9e27f | 16572 | $ac_func(); |
ade35f11 VZ |
16573 | #endif |
16574 | ||
a0b9e27f MB |
16575 | ; return 0; } |
16576 | EOF | |
6969f178 | 16577 | if { (eval echo configure:16578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16578 | rm -rf conftest* |
16579 | eval "ac_cv_func_$ac_func=yes" | |
16580 | else | |
16581 | echo "configure: failed program was:" >&5 | |
16582 | cat conftest.$ac_ext >&5 | |
16583 | rm -rf conftest* | |
16584 | eval "ac_cv_func_$ac_func=no" | |
16585 | fi | |
16586 | rm -f conftest* | |
16587 | fi | |
16588 | ||
16589 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16590 | echo "$ac_t""yes" 1>&6 | |
16591 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16592 | cat >> confdefs.h <<EOF | |
16593 | #define $ac_tr_func 1 | |
16594 | EOF | |
ade35f11 | 16595 | break |
a0b9e27f MB |
16596 | else |
16597 | echo "$ac_t""no" 1>&6 | |
ade35f11 VZ |
16598 | fi |
16599 | done | |
16600 | ||
8284b0c5 | 16601 | |
a0b9e27f | 16602 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
6969f178 | 16603 | echo "configure:16604: checking for statfs" >&5 |
a0b9e27f MB |
16604 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
16605 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 16606 | else |
a0b9e27f | 16607 | cat > conftest.$ac_ext <<EOF |
6969f178 | 16608 | #line 16609 "configure" |
4f14bcd8 GD |
16609 | #include "confdefs.h" |
16610 | ||
16611 | #if defined(__BSD__) | |
16612 | #include <sys/param.h> | |
16613 | #include <sys/mount.h> | |
16614 | #else | |
16615 | #include <sys/vfs.h> | |
16616 | #endif | |
a0b9e27f MB |
16617 | |
16618 | int main() { | |
4f14bcd8 GD |
16619 | |
16620 | long l; | |
16621 | struct statfs fs; | |
16622 | statfs("/", &fs); | |
16623 | l = fs.f_bsize; | |
16624 | l += fs.f_blocks; | |
16625 | l += fs.f_bavail; | |
a0b9e27f MB |
16626 | |
16627 | ; return 0; } | |
16628 | EOF | |
6969f178 | 16629 | if { (eval echo configure:16630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
16630 | rm -rf conftest* |
16631 | ||
4f14bcd8 | 16632 | wx_cv_func_statfs=yes |
a0b9e27f | 16633 | |
4f14bcd8 | 16634 | else |
a0b9e27f MB |
16635 | echo "configure: failed program was:" >&5 |
16636 | cat conftest.$ac_ext >&5 | |
16637 | rm -rf conftest* | |
16638 | ||
4f14bcd8 | 16639 | wx_cv_func_statfs=no |
a0b9e27f MB |
16640 | |
16641 | ||
5c6fa7d2 | 16642 | fi |
a0b9e27f | 16643 | rm -f conftest* |
8284b0c5 | 16644 | |
247f5006 | 16645 | fi |
a0b9e27f MB |
16646 | |
16647 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
4f14bcd8 GD |
16648 | |
16649 | if test "$wx_cv_func_statfs" = "yes"; then | |
a0b9e27f | 16650 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 16651 | #define HAVE_STATFS 1 |
a0b9e27f | 16652 | EOF |
4f14bcd8 GD |
16653 | |
16654 | else | |
a0b9e27f | 16655 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 |
6969f178 | 16656 | echo "configure:16657: checking for statvfs" >&5 |
a0b9e27f MB |
16657 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
16658 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 16659 | else |
a0b9e27f | 16660 | cat > conftest.$ac_ext <<EOF |
6969f178 | 16661 | #line 16662 "configure" |
af15babd | 16662 | #include "confdefs.h" |
af15babd | 16663 | |
4f14bcd8 | 16664 | #include <sys/statvfs.h> |
a0b9e27f MB |
16665 | |
16666 | int main() { | |
af15babd | 16667 | |
4f14bcd8 GD |
16668 | long l; |
16669 | struct statvfs fs; | |
16670 | statvfs("/", &fs); | |
16671 | l = fs.f_bsize; | |
16672 | l += fs.f_blocks; | |
16673 | l += fs.f_bavail; | |
a0b9e27f MB |
16674 | |
16675 | ; return 0; } | |
16676 | EOF | |
6969f178 | 16677 | if { (eval echo configure:16678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
16678 | rm -rf conftest* |
16679 | ||
4f14bcd8 | 16680 | wx_cv_func_statvfs=yes |
a0b9e27f | 16681 | |
af15babd | 16682 | else |
a0b9e27f MB |
16683 | echo "configure: failed program was:" >&5 |
16684 | cat conftest.$ac_ext >&5 | |
16685 | rm -rf conftest* | |
16686 | ||
4f14bcd8 | 16687 | wx_cv_func_statvfs=no |
a0b9e27f MB |
16688 | |
16689 | ||
5c6fa7d2 | 16690 | fi |
a0b9e27f MB |
16691 | rm -f conftest* |
16692 | ||
247f5006 | 16693 | fi |
a0b9e27f MB |
16694 | |
16695 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 | |
af15babd | 16696 | |
4f14bcd8 | 16697 | if test "$wx_cv_func_statvfs" = "yes"; then |
a0b9e27f | 16698 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 16699 | #define HAVE_STATVFS 1 |
a0b9e27f | 16700 | EOF |
af15babd | 16701 | |
4f14bcd8 | 16702 | else |
a0b9e27f | 16703 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 |
4f14bcd8 GD |
16704 | fi |
16705 | fi | |
af15babd | 16706 | |
4f14bcd8 | 16707 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 16708 | for ac_func in fcntl flock |
af15babd | 16709 | do |
a0b9e27f | 16710 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 16711 | echo "configure:16712: checking for $ac_func" >&5 |
a0b9e27f MB |
16712 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16713 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16714 | else | |
16715 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 16716 | #line 16717 "configure" |
af15babd VZ |
16717 | #include "confdefs.h" |
16718 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16719 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16720 | #include <assert.h> |
16721 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd | 16722 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
16723 | builtin and then its argument prototype would still apply. */ |
16724 | char $ac_func(); | |
16725 | ||
16726 | int main() { | |
16727 | ||
af15babd VZ |
16728 | /* The GNU C library defines this for functions which it implements |
16729 | to always fail with ENOSYS. Some functions are actually named | |
16730 | something starting with __ and the normal name is an alias. */ | |
16731 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16732 | choke me | |
16733 | #else | |
a0b9e27f | 16734 | $ac_func(); |
af15babd VZ |
16735 | #endif |
16736 | ||
a0b9e27f MB |
16737 | ; return 0; } |
16738 | EOF | |
6969f178 | 16739 | if { (eval echo configure:16740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16740 | rm -rf conftest* |
16741 | eval "ac_cv_func_$ac_func=yes" | |
16742 | else | |
16743 | echo "configure: failed program was:" >&5 | |
16744 | cat conftest.$ac_ext >&5 | |
16745 | rm -rf conftest* | |
16746 | eval "ac_cv_func_$ac_func=no" | |
16747 | fi | |
16748 | rm -f conftest* | |
16749 | fi | |
16750 | ||
16751 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16752 | echo "$ac_t""yes" 1>&6 | |
16753 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16754 | cat >> confdefs.h <<EOF | |
16755 | #define $ac_tr_func 1 | |
16756 | EOF | |
4f14bcd8 | 16757 | break |
a0b9e27f MB |
16758 | else |
16759 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16760 | fi |
16761 | done | |
16762 | ||
8284b0c5 | 16763 | |
4f14bcd8 | 16764 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
a0b9e27f | 16765 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f14bcd8 GD |
16766 | wxUSE_SNGLINST_CHECKER=no |
16767 | fi | |
16768 | fi | |
af15babd | 16769 | |
4f14bcd8 | 16770 | for ac_func in timegm |
af15babd | 16771 | do |
a0b9e27f | 16772 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 16773 | echo "configure:16774: checking for $ac_func" >&5 |
a0b9e27f MB |
16774 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16775 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16776 | else | |
16777 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 16778 | #line 16779 "configure" |
af15babd VZ |
16779 | #include "confdefs.h" |
16780 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16781 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16782 | #include <assert.h> |
16783 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16784 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16785 | builtin and then its argument prototype would still apply. */ |
16786 | char $ac_func(); | |
16787 | ||
16788 | int main() { | |
16789 | ||
af15babd VZ |
16790 | /* The GNU C library defines this for functions which it implements |
16791 | to always fail with ENOSYS. Some functions are actually named | |
16792 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
16793 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
16794 | choke me | |
16795 | #else | |
a0b9e27f | 16796 | $ac_func(); |
247f5006 VZ |
16797 | #endif |
16798 | ||
a0b9e27f MB |
16799 | ; return 0; } |
16800 | EOF | |
6969f178 | 16801 | if { (eval echo configure:16802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16802 | rm -rf conftest* |
16803 | eval "ac_cv_func_$ac_func=yes" | |
16804 | else | |
16805 | echo "configure: failed program was:" >&5 | |
16806 | cat conftest.$ac_ext >&5 | |
16807 | rm -rf conftest* | |
16808 | eval "ac_cv_func_$ac_func=no" | |
16809 | fi | |
16810 | rm -f conftest* | |
16811 | fi | |
703e0a69 | 16812 | |
a0b9e27f MB |
16813 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16814 | echo "$ac_t""yes" 1>&6 | |
16815 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16816 | cat >> confdefs.h <<EOF | |
16817 | #define $ac_tr_func 1 | |
16818 | EOF | |
16819 | ||
16820 | else | |
16821 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16822 | fi |
16823 | done | |
16824 | ||
8284b0c5 | 16825 | |
4f14bcd8 | 16826 | for ac_func in putenv setenv |
10f2d63a | 16827 | do |
a0b9e27f | 16828 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 16829 | echo "configure:16830: checking for $ac_func" >&5 |
a0b9e27f MB |
16830 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16831 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16832 | else | |
16833 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 16834 | #line 16835 "configure" |
af15babd VZ |
16835 | #include "confdefs.h" |
16836 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16837 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16838 | #include <assert.h> |
16839 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16840 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16841 | builtin and then its argument prototype would still apply. */ |
16842 | char $ac_func(); | |
16843 | ||
16844 | int main() { | |
16845 | ||
af15babd VZ |
16846 | /* The GNU C library defines this for functions which it implements |
16847 | to always fail with ENOSYS. Some functions are actually named | |
16848 | something starting with __ and the normal name is an alias. */ | |
16849 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16850 | choke me | |
16851 | #else | |
a0b9e27f | 16852 | $ac_func(); |
af15babd VZ |
16853 | #endif |
16854 | ||
a0b9e27f MB |
16855 | ; return 0; } |
16856 | EOF | |
6969f178 | 16857 | if { (eval echo configure:16858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16858 | rm -rf conftest* |
16859 | eval "ac_cv_func_$ac_func=yes" | |
16860 | else | |
16861 | echo "configure: failed program was:" >&5 | |
16862 | cat conftest.$ac_ext >&5 | |
16863 | rm -rf conftest* | |
16864 | eval "ac_cv_func_$ac_func=no" | |
16865 | fi | |
16866 | rm -f conftest* | |
16867 | fi | |
16868 | ||
16869 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16870 | echo "$ac_t""yes" 1>&6 | |
16871 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16872 | cat >> confdefs.h <<EOF | |
16873 | #define $ac_tr_func 1 | |
16874 | EOF | |
4f14bcd8 | 16875 | break |
a0b9e27f MB |
16876 | else |
16877 | echo "$ac_t""no" 1>&6 | |
af15babd | 16878 | fi |
af15babd VZ |
16879 | done |
16880 | ||
8284b0c5 | 16881 | |
4f14bcd8 GD |
16882 | HAVE_SOME_SLEEP_FUNC=0 |
16883 | if test "$USE_BEOS" = 1; then | |
a0b9e27f | 16884 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 16885 | #define HAVE_SLEEP 1 |
a0b9e27f | 16886 | EOF |
af15babd | 16887 | |
4f14bcd8 | 16888 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16889 | fi |
16890 | ||
4f14bcd8 | 16891 | if test "$USE_DARWIN" = 1; then |
a0b9e27f | 16892 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 16893 | #define HAVE_USLEEP 1 |
a0b9e27f | 16894 | EOF |
10f2d63a | 16895 | |
4f14bcd8 | 16896 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16897 | fi |
16898 | ||
4f14bcd8 GD |
16899 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
16900 | POSIX4_LINK= | |
a0b9e27f | 16901 | for ac_func in nanosleep |
4f14bcd8 | 16902 | do |
a0b9e27f | 16903 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 16904 | echo "configure:16905: checking for $ac_func" >&5 |
a0b9e27f MB |
16905 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16906 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16907 | else | |
16908 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 16909 | #line 16910 "configure" |
10f2d63a | 16910 | #include "confdefs.h" |
4f14bcd8 | 16911 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 16912 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 16913 | #include <assert.h> |
10f2d63a VZ |
16914 | /* Override any gcc2 internal prototype to avoid an error. */ |
16915 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16916 | builtin and then its argument prototype would still apply. */ |
16917 | char $ac_func(); | |
16918 | ||
16919 | int main() { | |
16920 | ||
4f14bcd8 GD |
16921 | /* The GNU C library defines this for functions which it implements |
16922 | to always fail with ENOSYS. Some functions are actually named | |
16923 | something starting with __ and the normal name is an alias. */ | |
16924 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16925 | choke me | |
16926 | #else | |
a0b9e27f | 16927 | $ac_func(); |
4f14bcd8 GD |
16928 | #endif |
16929 | ||
a0b9e27f MB |
16930 | ; return 0; } |
16931 | EOF | |
6969f178 | 16932 | if { (eval echo configure:16933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16933 | rm -rf conftest* |
16934 | eval "ac_cv_func_$ac_func=yes" | |
16935 | else | |
16936 | echo "configure: failed program was:" >&5 | |
16937 | cat conftest.$ac_ext >&5 | |
16938 | rm -rf conftest* | |
16939 | eval "ac_cv_func_$ac_func=no" | |
16940 | fi | |
16941 | rm -f conftest* | |
16942 | fi | |
16943 | ||
16944 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16945 | echo "$ac_t""yes" 1>&6 | |
16946 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16947 | cat >> confdefs.h <<EOF | |
16948 | #define $ac_tr_func 1 | |
16949 | EOF | |
16950 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 16951 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 16952 | EOF |
4f14bcd8 | 16953 | |
10f2d63a | 16954 | else |
a0b9e27f MB |
16955 | echo "$ac_t""no" 1>&6 |
16956 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
6969f178 | 16957 | echo "configure:16958: checking for nanosleep in -lposix4" >&5 |
a0b9e27f MB |
16958 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
16959 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16960 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16961 | else |
a0b9e27f | 16962 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16963 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 16964 | cat > conftest.$ac_ext <<EOF |
6969f178 | 16965 | #line 16966 "configure" |
10f2d63a VZ |
16966 | #include "confdefs.h" |
16967 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16968 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16969 | builtin and then its argument prototype would still apply. */ |
16970 | char nanosleep(); | |
16971 | ||
16972 | int main() { | |
16973 | nanosleep() | |
16974 | ; return 0; } | |
16975 | EOF | |
6969f178 | 16976 | if { (eval echo configure:16977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16977 | rm -rf conftest* |
16978 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16979 | else | |
16980 | echo "configure: failed program was:" >&5 | |
16981 | cat conftest.$ac_ext >&5 | |
16982 | rm -rf conftest* | |
16983 | eval "ac_cv_lib_$ac_lib_var=no" | |
16984 | fi | |
16985 | rm -f conftest* | |
16986 | LIBS="$ac_save_LIBS" | |
16987 | ||
16988 | fi | |
16989 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16990 | echo "$ac_t""yes" 1>&6 | |
16991 | ||
16992 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 16993 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 16994 | EOF |
4f14bcd8 | 16995 | |
3d63bc3a | 16996 | POSIX4_LINK=" -lposix4" |
a0b9e27f | 16997 | |
10f2d63a | 16998 | else |
a0b9e27f | 16999 | echo "$ac_t""no" 1>&6 |
10f2d63a | 17000 | |
a0b9e27f | 17001 | for ac_func in usleep |
4f14bcd8 | 17002 | do |
a0b9e27f | 17003 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 17004 | echo "configure:17005: checking for $ac_func" >&5 |
a0b9e27f MB |
17005 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17006 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17007 | else | |
17008 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 17009 | #line 17010 "configure" |
10f2d63a | 17010 | #include "confdefs.h" |
4f14bcd8 | 17011 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17012 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17013 | #include <assert.h> |
17014 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17015 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17016 | builtin and then its argument prototype would still apply. */ |
17017 | char $ac_func(); | |
17018 | ||
17019 | int main() { | |
17020 | ||
4f14bcd8 GD |
17021 | /* The GNU C library defines this for functions which it implements |
17022 | to always fail with ENOSYS. Some functions are actually named | |
17023 | something starting with __ and the normal name is an alias. */ | |
17024 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17025 | choke me | |
17026 | #else | |
a0b9e27f | 17027 | $ac_func(); |
4f14bcd8 GD |
17028 | #endif |
17029 | ||
a0b9e27f MB |
17030 | ; return 0; } |
17031 | EOF | |
6969f178 | 17032 | if { (eval echo configure:17033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17033 | rm -rf conftest* |
17034 | eval "ac_cv_func_$ac_func=yes" | |
17035 | else | |
17036 | echo "configure: failed program was:" >&5 | |
17037 | cat conftest.$ac_ext >&5 | |
17038 | rm -rf conftest* | |
17039 | eval "ac_cv_func_$ac_func=no" | |
17040 | fi | |
17041 | rm -f conftest* | |
17042 | fi | |
17043 | ||
17044 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17045 | echo "$ac_t""yes" 1>&6 | |
17046 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17047 | cat >> confdefs.h <<EOF | |
17048 | #define $ac_tr_func 1 | |
17049 | EOF | |
17050 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17051 | #define HAVE_USLEEP 1 |
a0b9e27f | 17052 | EOF |
4f14bcd8 | 17053 | |
698dcdb6 | 17054 | else |
a0b9e27f MB |
17055 | echo "$ac_t""no" 1>&6 |
17056 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
17057 | ||
10f2d63a | 17058 | fi |
4f14bcd8 | 17059 | done |
10f2d63a | 17060 | |
a0b9e27f MB |
17061 | |
17062 | ||
6232543b | 17063 | fi |
10f2d63a | 17064 | |
a0b9e27f MB |
17065 | |
17066 | ||
1e487827 | 17067 | fi |
4f14bcd8 | 17068 | done |
703e0a69 | 17069 | |
10f2d63a VZ |
17070 | fi |
17071 | ||
4f14bcd8 | 17072 | for ac_func in uname gethostname |
70846f0a | 17073 | do |
a0b9e27f | 17074 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 17075 | echo "configure:17076: checking for $ac_func" >&5 |
a0b9e27f MB |
17076 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17077 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17078 | else | |
17079 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 17080 | #line 17081 "configure" |
70846f0a VZ |
17081 | #include "confdefs.h" |
17082 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17083 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
17084 | #include <assert.h> |
17085 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17086 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17087 | builtin and then its argument prototype would still apply. */ |
17088 | char $ac_func(); | |
17089 | ||
17090 | int main() { | |
17091 | ||
70846f0a VZ |
17092 | /* The GNU C library defines this for functions which it implements |
17093 | to always fail with ENOSYS. Some functions are actually named | |
17094 | something starting with __ and the normal name is an alias. */ | |
17095 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17096 | choke me | |
17097 | #else | |
a0b9e27f | 17098 | $ac_func(); |
70846f0a VZ |
17099 | #endif |
17100 | ||
a0b9e27f MB |
17101 | ; return 0; } |
17102 | EOF | |
6969f178 | 17103 | if { (eval echo configure:17104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17104 | rm -rf conftest* |
17105 | eval "ac_cv_func_$ac_func=yes" | |
17106 | else | |
17107 | echo "configure: failed program was:" >&5 | |
17108 | cat conftest.$ac_ext >&5 | |
17109 | rm -rf conftest* | |
17110 | eval "ac_cv_func_$ac_func=no" | |
17111 | fi | |
17112 | rm -f conftest* | |
17113 | fi | |
17114 | ||
17115 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17116 | echo "$ac_t""yes" 1>&6 | |
17117 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17118 | cat >> confdefs.h <<EOF | |
17119 | #define $ac_tr_func 1 | |
17120 | EOF | |
4f14bcd8 | 17121 | break |
a0b9e27f MB |
17122 | else |
17123 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
17124 | fi |
17125 | done | |
17126 | ||
8284b0c5 MB |
17127 | |
17128 | ||
a0b9e27f MB |
17129 | ac_ext=C |
17130 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 17131 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17132 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17133 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17134 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 17135 | |
4f14bcd8 GD |
17136 | |
17137 | for ac_func in strtok_r | |
10f2d63a | 17138 | do |
a0b9e27f | 17139 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 17140 | echo "configure:17141: checking for $ac_func" >&5 |
a0b9e27f MB |
17141 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17142 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17143 | else | |
17144 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 17145 | #line 17146 "configure" |
10f2d63a | 17146 | #include "confdefs.h" |
4f14bcd8 | 17147 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17148 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17149 | #include <assert.h> |
17150 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17151 | #ifdef __cplusplus | |
17152 | extern "C" | |
17153 | #endif | |
17154 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17155 | builtin and then its argument prototype would still apply. */ |
17156 | char $ac_func(); | |
17157 | ||
17158 | int main() { | |
17159 | ||
4f14bcd8 GD |
17160 | /* The GNU C library defines this for functions which it implements |
17161 | to always fail with ENOSYS. Some functions are actually named | |
17162 | something starting with __ and the normal name is an alias. */ | |
17163 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17164 | choke me | |
17165 | #else | |
a0b9e27f | 17166 | $ac_func(); |
4f14bcd8 GD |
17167 | #endif |
17168 | ||
a0b9e27f MB |
17169 | ; return 0; } |
17170 | EOF | |
6969f178 | 17171 | if { (eval echo configure:17172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17172 | rm -rf conftest* |
17173 | eval "ac_cv_func_$ac_func=yes" | |
17174 | else | |
17175 | echo "configure: failed program was:" >&5 | |
17176 | cat conftest.$ac_ext >&5 | |
17177 | rm -rf conftest* | |
17178 | eval "ac_cv_func_$ac_func=no" | |
17179 | fi | |
17180 | rm -f conftest* | |
17181 | fi | |
4f14bcd8 | 17182 | |
a0b9e27f MB |
17183 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17184 | echo "$ac_t""yes" 1>&6 | |
17185 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17186 | cat >> confdefs.h <<EOF | |
17187 | #define $ac_tr_func 1 | |
17188 | EOF | |
17189 | ||
17190 | else | |
17191 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17192 | fi |
17193 | done | |
17194 | ||
8284b0c5 | 17195 | |
4f14bcd8 | 17196 | ac_ext=c |
a0b9e27f | 17197 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17198 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17199 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17200 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17201 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 17202 | |
5c6fa7d2 | 17203 | |
8284b0c5 | 17204 | INET_LINK= |
4f14bcd8 GD |
17205 | for ac_func in inet_addr |
17206 | do | |
a0b9e27f | 17207 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 17208 | echo "configure:17209: checking for $ac_func" >&5 |
a0b9e27f MB |
17209 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17210 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17211 | else | |
17212 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 17213 | #line 17214 "configure" |
10f2d63a | 17214 | #include "confdefs.h" |
4f14bcd8 | 17215 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17216 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 17217 | #include <assert.h> |
10f2d63a VZ |
17218 | /* Override any gcc2 internal prototype to avoid an error. */ |
17219 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17220 | builtin and then its argument prototype would still apply. */ |
17221 | char $ac_func(); | |
17222 | ||
17223 | int main() { | |
17224 | ||
4f14bcd8 GD |
17225 | /* The GNU C library defines this for functions which it implements |
17226 | to always fail with ENOSYS. Some functions are actually named | |
17227 | something starting with __ and the normal name is an alias. */ | |
17228 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17229 | choke me | |
17230 | #else | |
a0b9e27f | 17231 | $ac_func(); |
4f14bcd8 GD |
17232 | #endif |
17233 | ||
a0b9e27f MB |
17234 | ; return 0; } |
17235 | EOF | |
6969f178 | 17236 | if { (eval echo configure:17237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17237 | rm -rf conftest* |
17238 | eval "ac_cv_func_$ac_func=yes" | |
17239 | else | |
17240 | echo "configure: failed program was:" >&5 | |
17241 | cat conftest.$ac_ext >&5 | |
17242 | rm -rf conftest* | |
17243 | eval "ac_cv_func_$ac_func=no" | |
17244 | fi | |
17245 | rm -f conftest* | |
17246 | fi | |
17247 | ||
17248 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17249 | echo "$ac_t""yes" 1>&6 | |
17250 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17251 | cat >> confdefs.h <<EOF | |
17252 | #define $ac_tr_func 1 | |
17253 | EOF | |
17254 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17255 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 17256 | EOF |
10f2d63a VZ |
17257 | |
17258 | else | |
a0b9e27f MB |
17259 | echo "$ac_t""no" 1>&6 |
17260 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
6969f178 | 17261 | echo "configure:17262: checking for inet_addr in -lnsl" >&5 |
a0b9e27f MB |
17262 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
17263 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17264 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17265 | else |
a0b9e27f | 17266 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17267 | LIBS="-lnsl $LIBS" |
a0b9e27f | 17268 | cat > conftest.$ac_ext <<EOF |
6969f178 | 17269 | #line 17270 "configure" |
10f2d63a VZ |
17270 | #include "confdefs.h" |
17271 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17272 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17273 | builtin and then its argument prototype would still apply. */ |
17274 | char inet_addr(); | |
17275 | ||
17276 | int main() { | |
17277 | inet_addr() | |
17278 | ; return 0; } | |
17279 | EOF | |
6969f178 | 17280 | if { (eval echo configure:17281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17281 | rm -rf conftest* |
17282 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17283 | else | |
17284 | echo "configure: failed program was:" >&5 | |
17285 | cat conftest.$ac_ext >&5 | |
17286 | rm -rf conftest* | |
17287 | eval "ac_cv_lib_$ac_lib_var=no" | |
17288 | fi | |
17289 | rm -f conftest* | |
17290 | LIBS="$ac_save_LIBS" | |
17291 | ||
17292 | fi | |
17293 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17294 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17295 | INET_LINK="nsl" |
10f2d63a | 17296 | else |
a0b9e27f MB |
17297 | echo "$ac_t""no" 1>&6 |
17298 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
6969f178 | 17299 | echo "configure:17300: checking for inet_addr in -lresolv" >&5 |
a0b9e27f MB |
17300 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
17301 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17302 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17303 | else |
a0b9e27f | 17304 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17305 | LIBS="-lresolv $LIBS" |
a0b9e27f | 17306 | cat > conftest.$ac_ext <<EOF |
6969f178 | 17307 | #line 17308 "configure" |
7b4a847f | 17308 | #include "confdefs.h" |
5c6fa7d2 | 17309 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 17310 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17311 | builtin and then its argument prototype would still apply. */ |
17312 | char inet_addr(); | |
17313 | ||
17314 | int main() { | |
17315 | inet_addr() | |
17316 | ; return 0; } | |
17317 | EOF | |
6969f178 | 17318 | if { (eval echo configure:17319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17319 | rm -rf conftest* |
17320 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17321 | else | |
17322 | echo "configure: failed program was:" >&5 | |
17323 | cat conftest.$ac_ext >&5 | |
17324 | rm -rf conftest* | |
17325 | eval "ac_cv_lib_$ac_lib_var=no" | |
17326 | fi | |
17327 | rm -f conftest* | |
17328 | LIBS="$ac_save_LIBS" | |
17329 | ||
17330 | fi | |
17331 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17332 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17333 | INET_LINK="resolv" |
698dcdb6 | 17334 | else |
a0b9e27f MB |
17335 | echo "$ac_t""no" 1>&6 |
17336 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 | |
6969f178 | 17337 | echo "configure:17338: checking for inet_addr in -lsocket" >&5 |
a0b9e27f MB |
17338 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
17339 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17340 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3c011993 | 17341 | else |
a0b9e27f | 17342 | ac_save_LIBS="$LIBS" |
3c011993 | 17343 | LIBS="-lsocket $LIBS" |
a0b9e27f | 17344 | cat > conftest.$ac_ext <<EOF |
6969f178 | 17345 | #line 17346 "configure" |
3c011993 VZ |
17346 | #include "confdefs.h" |
17347 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17348 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17349 | builtin and then its argument prototype would still apply. */ |
17350 | char inet_addr(); | |
4f14bcd8 | 17351 | |
a0b9e27f MB |
17352 | int main() { |
17353 | inet_addr() | |
17354 | ; return 0; } | |
17355 | EOF | |
6969f178 | 17356 | if { (eval echo configure:17357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17357 | rm -rf conftest* |
17358 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17359 | else | |
17360 | echo "configure: failed program was:" >&5 | |
17361 | cat conftest.$ac_ext >&5 | |
17362 | rm -rf conftest* | |
17363 | eval "ac_cv_lib_$ac_lib_var=no" | |
8284b0c5 | 17364 | fi |
a0b9e27f MB |
17365 | rm -f conftest* |
17366 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 17367 | |
7b4a847f | 17368 | fi |
a0b9e27f MB |
17369 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17370 | echo "$ac_t""yes" 1>&6 | |
17371 | INET_LINK="socket" | |
17372 | ||
17373 | else | |
17374 | echo "$ac_t""no" 1>&6 | |
17375 | fi | |
579d8138 | 17376 | |
a0b9e27f | 17377 | |
5c6fa7d2 | 17378 | fi |
52127426 | 17379 | |
a0b9e27f MB |
17380 | |
17381 | fi | |
247f5006 | 17382 | |
a0b9e27f | 17383 | |
8284b0c5 | 17384 | |
698dcdb6 | 17385 | fi |
4f14bcd8 GD |
17386 | done |
17387 | ||
8284b0c5 | 17388 | |
4f14bcd8 GD |
17389 | for ac_func in inet_aton |
17390 | do | |
a0b9e27f | 17391 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 17392 | echo "configure:17393: checking for $ac_func" >&5 |
a0b9e27f MB |
17393 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17394 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17395 | else | |
17396 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 17397 | #line 17398 "configure" |
f6bcfd97 | 17398 | #include "confdefs.h" |
4f14bcd8 | 17399 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17400 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 17401 | #include <assert.h> |
f6bcfd97 BP |
17402 | /* Override any gcc2 internal prototype to avoid an error. */ |
17403 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17404 | builtin and then its argument prototype would still apply. */ |
17405 | char $ac_func(); | |
17406 | ||
17407 | int main() { | |
17408 | ||
4f14bcd8 GD |
17409 | /* The GNU C library defines this for functions which it implements |
17410 | to always fail with ENOSYS. Some functions are actually named | |
17411 | something starting with __ and the normal name is an alias. */ | |
17412 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17413 | choke me | |
17414 | #else | |
a0b9e27f | 17415 | $ac_func(); |
4f14bcd8 GD |
17416 | #endif |
17417 | ||
a0b9e27f MB |
17418 | ; return 0; } |
17419 | EOF | |
6969f178 | 17420 | if { (eval echo configure:17421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17421 | rm -rf conftest* |
17422 | eval "ac_cv_func_$ac_func=yes" | |
17423 | else | |
17424 | echo "configure: failed program was:" >&5 | |
17425 | cat conftest.$ac_ext >&5 | |
17426 | rm -rf conftest* | |
17427 | eval "ac_cv_func_$ac_func=no" | |
17428 | fi | |
17429 | rm -f conftest* | |
17430 | fi | |
17431 | ||
17432 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17433 | echo "$ac_t""yes" 1>&6 | |
17434 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17435 | cat >> confdefs.h <<EOF | |
17436 | #define $ac_tr_func 1 | |
17437 | EOF | |
17438 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17439 | #define HAVE_INET_ATON 1 |
a0b9e27f | 17440 | EOF |
4f14bcd8 | 17441 | |
10f2d63a | 17442 | else |
a0b9e27f MB |
17443 | echo "$ac_t""no" 1>&6 |
17444 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
6969f178 | 17445 | echo "configure:17446: checking for inet_aton in -l$INET_LINK" >&5 |
a0b9e27f MB |
17446 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
17447 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17448 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 17449 | else |
a0b9e27f | 17450 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17451 | LIBS="-l$INET_LINK $LIBS" |
a0b9e27f | 17452 | cat > conftest.$ac_ext <<EOF |
6969f178 | 17453 | #line 17454 "configure" |
10f2d63a | 17454 | #include "confdefs.h" |
6232543b | 17455 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 17456 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17457 | builtin and then its argument prototype would still apply. */ |
17458 | char inet_aton(); | |
17459 | ||
17460 | int main() { | |
17461 | inet_aton() | |
17462 | ; return 0; } | |
17463 | EOF | |
6969f178 | 17464 | if { (eval echo configure:17465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17465 | rm -rf conftest* |
17466 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17467 | else | |
17468 | echo "configure: failed program was:" >&5 | |
17469 | cat conftest.$ac_ext >&5 | |
17470 | rm -rf conftest* | |
17471 | eval "ac_cv_lib_$ac_lib_var=no" | |
17472 | fi | |
17473 | rm -f conftest* | |
17474 | LIBS="$ac_save_LIBS" | |
4f14bcd8 | 17475 | |
10f2d63a | 17476 | fi |
a0b9e27f MB |
17477 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17478 | echo "$ac_t""yes" 1>&6 | |
17479 | cat >> confdefs.h <<\EOF | |
17480 | #define HAVE_INET_ATON 1 | |
17481 | EOF | |
10f2d63a | 17482 | |
a0b9e27f MB |
17483 | else |
17484 | echo "$ac_t""no" 1>&6 | |
17485 | fi | |
247f5006 | 17486 | |
a0b9e27f | 17487 | |
10f2d63a | 17488 | fi |
4f14bcd8 | 17489 | done |
10f2d63a | 17490 | |
8284b0c5 | 17491 | |
4f14bcd8 | 17492 | if test "x$INET_LINK" != "x"; then |
a0b9e27f | 17493 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17494 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 17495 | EOF |
4f14bcd8 | 17496 | |
3d63bc3a | 17497 | INET_LINK=" -l$INET_LINK" |
6232543b | 17498 | fi |
10f2d63a | 17499 | |
1e487827 | 17500 | fi |
703e0a69 | 17501 | |
8284b0c5 | 17502 | |
a0b9e27f | 17503 | cat > confcache <<\EOF |
4f14bcd8 GD |
17504 | # This file is a shell script that caches the results of configure |
17505 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
17506 | # scripts and configure runs. It is not useful on other systems. |
17507 | # If it contains results you don't want to keep, you may remove or edit it. | |
4f14bcd8 | 17508 | # |
a0b9e27f MB |
17509 | # By default, configure uses ./config.cache as the cache file, |
17510 | # creating it if it does not exist already. You can give configure | |
17511 | # the --cache-file=FILE option to use a different cache file; that is | |
17512 | # what configure does when it calls configure scripts in | |
17513 | # subdirectories, so they share the cache. | |
17514 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17515 | # config.status only pays attention to the cache file if you give it the | |
17516 | # --recheck option to rerun configure. | |
4f14bcd8 | 17517 | # |
a0b9e27f | 17518 | EOF |
4f14bcd8 GD |
17519 | # The following way of writing the cache mishandles newlines in values, |
17520 | # but we know of no workaround that is simple, portable, and efficient. | |
17521 | # So, don't put newlines in cache variables' values. | |
17522 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17523 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
17524 | (set) 2>&1 | |
17525 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17526 | *ac_space=\ *) | |
17527 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17528 | # turns \\\\ into \\, and sed turns \\ into \). | |
17529 | sed -n \ | |
17530 | -e "s/'/'\\\\''/g" \ | |
17531 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17532 | ;; | |
17533 | *) | |
17534 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17535 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17536 | ;; | |
17537 | esac >> confcache | |
17538 | if cmp -s $cache_file confcache; then | |
17539 | : | |
17540 | else | |
4f14bcd8 | 17541 | if test -w $cache_file; then |
a0b9e27f MB |
17542 | echo "updating cache $cache_file" |
17543 | cat confcache > $cache_file | |
f6bcfd97 | 17544 | else |
4f14bcd8 | 17545 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 17546 | fi |
4f14bcd8 GD |
17547 | fi |
17548 | rm -f confcache | |
f6bcfd97 | 17549 | |
8284b0c5 | 17550 | |
a0b9e27f | 17551 | |
009fead0 | 17552 | CPP_MT_FLAG= |
a0b9e27f | 17553 | COMMON_THREADCPPFLAGS= |
4f14bcd8 GD |
17554 | if test "$TOOLKIT" != "MSW"; then |
17555 | ||
a0b9e27f | 17556 | |
7274f1c7 | 17557 | THREADS_LINK= |
009fead0 | 17558 | THREADS_CFLAGS= |
7274f1c7 RL |
17559 | |
17560 | if test "$wxUSE_THREADS" = "yes" ; then | |
17561 | if test "$wxUSE_WINE" = 1 ; then | |
a0b9e27f | 17562 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
17563 | wxUSE_THREADS="no" |
17564 | elif test "$USE_BEOS" = 1; then | |
a0b9e27f | 17565 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
17566 | wxUSE_THREADS="no" |
17567 | fi | |
4f14bcd8 | 17568 | fi |
4f14bcd8 | 17569 | |
7274f1c7 | 17570 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f MB |
17571 | |
17572 | ||
009fead0 VZ |
17573 | THREAD_OPTS="-pthread" |
17574 | case "${host}" in | |
17575 | *-*-solaris2* | *-*-sunos4* ) | |
17576 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 17577 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
17578 | else |
17579 | THREAD_OPTS="-mt $THREAD_OPTS" | |
17580 | fi | |
17581 | ;; | |
17582 | *-*-freebsd*) | |
17583 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
17584 | ;; | |
17234b26 MB |
17585 | *-*-darwin* | *-*-cygwin* ) |
17586 | THREAD_OPTS="" | |
4101db81 | 17587 | ;; |
8f4a9a10 | 17588 | *-*-aix*) |
009fead0 VZ |
17589 | THREAD_OPTS="pthreads" |
17590 | ;; | |
009fead0 | 17591 | esac |
4f14bcd8 | 17592 | |
02a1dfba | 17593 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 17594 | |
009fead0 VZ |
17595 | THREADS_OK=no |
17596 | for flag in $THREAD_OPTS; do | |
17597 | case $flag in | |
17598 | none) | |
a0b9e27f | 17599 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 |
6969f178 | 17600 | echo "configure:17601: checking whether pthreads work without any flags" >&5 |
009fead0 | 17601 | ;; |
698dcdb6 | 17602 | |
009fead0 | 17603 | -*) |
a0b9e27f | 17604 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 |
6969f178 | 17605 | echo "configure:17606: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
17606 | THREADS_CFLAGS="$flag" |
17607 | ;; | |
698dcdb6 | 17608 | |
009fead0 | 17609 | *) |
a0b9e27f | 17610 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 |
6969f178 | 17611 | echo "configure:17612: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
17612 | THREADS_LINK="-l$flag" |
17613 | ;; | |
17614 | esac | |
10f2d63a | 17615 | |
009fead0 VZ |
17616 | save_LIBS="$LIBS" |
17617 | save_CFLAGS="$CFLAGS" | |
17618 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 17619 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 17620 | |
a0b9e27f | 17621 | cat > conftest.$ac_ext <<EOF |
6969f178 | 17622 | #line 17623 "configure" |
009fead0 VZ |
17623 | #include "confdefs.h" |
17624 | #include <pthread.h> | |
a0b9e27f | 17625 | int main() { |
009fead0 | 17626 | pthread_create(0,0,0,0); |
a0b9e27f MB |
17627 | ; return 0; } |
17628 | EOF | |
6969f178 | 17629 | if { (eval echo configure:17630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17630 | rm -rf conftest* |
009fead0 | 17631 | THREADS_OK=yes |
10f2d63a | 17632 | else |
a0b9e27f MB |
17633 | echo "configure: failed program was:" >&5 |
17634 | cat conftest.$ac_ext >&5 | |
6232543b | 17635 | fi |
a0b9e27f | 17636 | rm -f conftest* |
698dcdb6 | 17637 | |
009fead0 VZ |
17638 | LIBS="$save_LIBS" |
17639 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 17640 | |
a0b9e27f | 17641 | echo "$ac_t""$THREADS_OK" 1>&6 |
009fead0 VZ |
17642 | if test "x$THREADS_OK" = "xyes"; then |
17643 | break; | |
17644 | fi | |
d9b9876f | 17645 | |
009fead0 VZ |
17646 | THREADS_LINK="" |
17647 | THREADS_CFLAGS="" | |
17648 | done | |
4f14bcd8 | 17649 | |
009fead0 VZ |
17650 | if test "x$THREADS_OK" != "xyes"; then |
17651 | wxUSE_THREADS=no | |
a0b9e27f | 17652 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
009fead0 | 17653 | else |
fe5a9cab VZ |
17654 | LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS" |
17655 | ||
a0b9e27f | 17656 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
6969f178 | 17657 | echo "configure:17658: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
17658 | flag=no |
17659 | case "${host}" in | |
17660 | *-aix* | *-freebsd*) | |
17661 | flag="-D_THREAD_SAFE" | |
17662 | ;; | |
17663 | *solaris* | alpha*-osf*) | |
17664 | flag="-D_REENTRANT" | |
17665 | ;; | |
17666 | esac | |
a0b9e27f | 17667 | echo "$ac_t""${flag}" 1>&6 |
009fead0 | 17668 | if test "x$flag" != xno; then |
04727afd | 17669 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
17670 | fi |
17671 | ||
009fead0 | 17672 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 17673 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
17674 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
17675 | fi | |
17676 | fi | |
4f14bcd8 | 17677 | fi |
4f14bcd8 | 17678 | |
7274f1c7 | 17679 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f | 17680 | for ac_func in thr_setconcurrency |
4f14bcd8 | 17681 | do |
a0b9e27f | 17682 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 17683 | echo "configure:17684: checking for $ac_func" >&5 |
a0b9e27f MB |
17684 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17686 | else | |
17687 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 17688 | #line 17689 "configure" |
d9b9876f | 17689 | #include "confdefs.h" |
4f14bcd8 | 17690 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17691 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17692 | #include <assert.h> |
17693 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17694 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17695 | builtin and then its argument prototype would still apply. */ |
17696 | char $ac_func(); | |
17697 | ||
17698 | int main() { | |
17699 | ||
4f14bcd8 GD |
17700 | /* The GNU C library defines this for functions which it implements |
17701 | to always fail with ENOSYS. Some functions are actually named | |
17702 | something starting with __ and the normal name is an alias. */ | |
17703 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17704 | choke me | |
17705 | #else | |
a0b9e27f | 17706 | $ac_func(); |
4f14bcd8 GD |
17707 | #endif |
17708 | ||
a0b9e27f MB |
17709 | ; return 0; } |
17710 | EOF | |
6969f178 | 17711 | if { (eval echo configure:17712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17712 | rm -rf conftest* |
17713 | eval "ac_cv_func_$ac_func=yes" | |
17714 | else | |
17715 | echo "configure: failed program was:" >&5 | |
17716 | cat conftest.$ac_ext >&5 | |
17717 | rm -rf conftest* | |
17718 | eval "ac_cv_func_$ac_func=no" | |
17719 | fi | |
17720 | rm -f conftest* | |
17721 | fi | |
698dcdb6 | 17722 | |
a0b9e27f MB |
17723 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17724 | echo "$ac_t""yes" 1>&6 | |
17725 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17726 | cat >> confdefs.h <<EOF | |
17727 | #define $ac_tr_func 1 | |
17728 | EOF | |
17729 | ||
17730 | else | |
17731 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 17732 | fi |
4f14bcd8 | 17733 | done |
10f2d63a | 17734 | |
8284b0c5 | 17735 | |
a0b9e27f | 17736 | for ac_hdr in sched.h |
4f14bcd8 | 17737 | do |
a0b9e27f MB |
17738 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17739 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6969f178 | 17740 | echo "configure:17741: checking for $ac_hdr" >&5 |
a0b9e27f MB |
17741 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17742 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17743 | else | |
17744 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 17745 | #line 17746 "configure" |
247f5006 | 17746 | #include "confdefs.h" |
a0b9e27f MB |
17747 | #include <$ac_hdr> |
17748 | EOF | |
17749 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 17750 | { (eval echo configure:17751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
17751 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17752 | if test -z "$ac_err"; then | |
17753 | rm -rf conftest* | |
17754 | eval "ac_cv_header_$ac_safe=yes" | |
17755 | else | |
17756 | echo "$ac_err" >&5 | |
17757 | echo "configure: failed program was:" >&5 | |
4f14bcd8 | 17758 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
17759 | rm -rf conftest* |
17760 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 17761 | fi |
a0b9e27f | 17762 | rm -f conftest* |
10f2d63a | 17763 | fi |
a0b9e27f MB |
17764 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17765 | echo "$ac_t""yes" 1>&6 | |
17766 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17767 | cat >> confdefs.h <<EOF | |
17768 | #define $ac_tr_hdr 1 | |
17769 | EOF | |
17770 | ||
17771 | else | |
17772 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 17773 | fi |
4f14bcd8 | 17774 | done |
f6bcfd97 | 17775 | |
009fead0 | 17776 | if test "$ac_cv_header_sched_h" = "yes"; then |
a0b9e27f | 17777 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 |
6969f178 | 17778 | echo "configure:17779: checking for sched_yield" >&5 |
a0b9e27f MB |
17779 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
17780 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 17781 | else |
a0b9e27f | 17782 | cat > conftest.$ac_ext <<EOF |
6969f178 | 17783 | #line 17784 "configure" |
4f14bcd8 | 17784 | #include "confdefs.h" |
009fead0 | 17785 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17786 | which can conflict with char sched_yield(); below. */ |
009fead0 | 17787 | #include <assert.h> |
4f14bcd8 GD |
17788 | /* Override any gcc2 internal prototype to avoid an error. */ |
17789 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17790 | builtin and then its argument prototype would still apply. */ |
17791 | char sched_yield(); | |
17792 | ||
17793 | int main() { | |
17794 | ||
009fead0 VZ |
17795 | /* The GNU C library defines this for functions which it implements |
17796 | to always fail with ENOSYS. Some functions are actually named | |
17797 | something starting with __ and the normal name is an alias. */ | |
17798 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
17799 | choke me | |
17800 | #else | |
a0b9e27f | 17801 | sched_yield(); |
009fead0 VZ |
17802 | #endif |
17803 | ||
a0b9e27f MB |
17804 | ; return 0; } |
17805 | EOF | |
6969f178 | 17806 | if { (eval echo configure:17807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17807 | rm -rf conftest* |
17808 | eval "ac_cv_func_sched_yield=yes" | |
17809 | else | |
17810 | echo "configure: failed program was:" >&5 | |
17811 | cat conftest.$ac_ext >&5 | |
17812 | rm -rf conftest* | |
17813 | eval "ac_cv_func_sched_yield=no" | |
17814 | fi | |
17815 | rm -f conftest* | |
17816 | fi | |
17817 | ||
17818 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
17819 | echo "$ac_t""yes" 1>&6 | |
17820 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17821 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 17822 | EOF |
10f2d63a | 17823 | |
4f14bcd8 | 17824 | else |
a0b9e27f | 17825 | echo "$ac_t""no" 1>&6 |
009fead0 | 17826 | |
a0b9e27f | 17827 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 |
6969f178 | 17828 | echo "configure:17829: checking for sched_yield in -lposix4" >&5 |
a0b9e27f MB |
17829 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
17830 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17831 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 17832 | else |
a0b9e27f | 17833 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17834 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 17835 | cat > conftest.$ac_ext <<EOF |
6969f178 | 17836 | #line 17837 "configure" |
4f14bcd8 GD |
17837 | #include "confdefs.h" |
17838 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17839 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17840 | builtin and then its argument prototype would still apply. */ |
17841 | char sched_yield(); | |
17842 | ||
17843 | int main() { | |
17844 | sched_yield() | |
17845 | ; return 0; } | |
17846 | EOF | |
6969f178 | 17847 | if { (eval echo configure:17848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17848 | rm -rf conftest* |
17849 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17850 | else | |
17851 | echo "configure: failed program was:" >&5 | |
17852 | cat conftest.$ac_ext >&5 | |
17853 | rm -rf conftest* | |
17854 | eval "ac_cv_lib_$ac_lib_var=no" | |
17855 | fi | |
17856 | rm -f conftest* | |
17857 | LIBS="$ac_save_LIBS" | |
17858 | ||
17859 | fi | |
17860 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17861 | echo "$ac_t""yes" 1>&6 | |
17862 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17863 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 17864 | EOF |
3d63bc3a | 17865 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 17866 | else |
a0b9e27f MB |
17867 | echo "$ac_t""no" 1>&6 |
17868 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
17869 | ||
54276ccf VZ |
17870 | fi |
17871 | ||
a0b9e27f MB |
17872 | |
17873 | ||
4f14bcd8 | 17874 | fi |
698dcdb6 | 17875 | |
009fead0 | 17876 | fi |
10f2d63a | 17877 | |
7274f1c7 | 17878 | HAVE_PRIOR_FUNCS=0 |
a0b9e27f | 17879 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
6969f178 | 17880 | echo "configure:17881: checking for pthread_attr_getschedpolicy" >&5 |
a0b9e27f MB |
17881 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
17882 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 17883 | else |
a0b9e27f | 17884 | cat > conftest.$ac_ext <<EOF |
6969f178 | 17885 | #line 17886 "configure" |
422107f9 | 17886 | #include "confdefs.h" |
009fead0 | 17887 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17888 | which can conflict with char pthread_attr_getschedpolicy(); below. */ |
009fead0 | 17889 | #include <assert.h> |
4f14bcd8 GD |
17890 | /* Override any gcc2 internal prototype to avoid an error. */ |
17891 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17892 | builtin and then its argument prototype would still apply. */ |
17893 | char pthread_attr_getschedpolicy(); | |
17894 | ||
17895 | int main() { | |
17896 | ||
009fead0 VZ |
17897 | /* The GNU C library defines this for functions which it implements |
17898 | to always fail with ENOSYS. Some functions are actually named | |
17899 | something starting with __ and the normal name is an alias. */ | |
17900 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
17901 | choke me | |
17902 | #else | |
a0b9e27f | 17903 | pthread_attr_getschedpolicy(); |
009fead0 VZ |
17904 | #endif |
17905 | ||
a0b9e27f MB |
17906 | ; return 0; } |
17907 | EOF | |
6969f178 | 17908 | if { (eval echo configure:17909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17909 | rm -rf conftest* |
17910 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" | |
17911 | else | |
17912 | echo "configure: failed program was:" >&5 | |
17913 | cat conftest.$ac_ext >&5 | |
17914 | rm -rf conftest* | |
17915 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" | |
17916 | fi | |
17917 | rm -f conftest* | |
17918 | fi | |
17919 | ||
17920 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
17921 | echo "$ac_t""yes" 1>&6 | |
17922 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 | |
6969f178 | 17923 | echo "configure:17924: checking for pthread_attr_setschedparam" >&5 |
a0b9e27f MB |
17924 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
17925 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 17926 | else |
a0b9e27f | 17927 | cat > conftest.$ac_ext <<EOF |
6969f178 | 17928 | #line 17929 "configure" |
a0b9e27f MB |
17929 | #include "confdefs.h" |
17930 | /* System header to define __stub macros and hopefully few prototypes, | |
17931 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
009fead0 | 17932 | #include <assert.h> |
422107f9 VZ |
17933 | /* Override any gcc2 internal prototype to avoid an error. */ |
17934 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17935 | builtin and then its argument prototype would still apply. */ |
17936 | char pthread_attr_setschedparam(); | |
17937 | ||
17938 | int main() { | |
17939 | ||
009fead0 VZ |
17940 | /* The GNU C library defines this for functions which it implements |
17941 | to always fail with ENOSYS. Some functions are actually named | |
17942 | something starting with __ and the normal name is an alias. */ | |
17943 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
17944 | choke me | |
17945 | #else | |
a0b9e27f | 17946 | pthread_attr_setschedparam(); |
009fead0 VZ |
17947 | #endif |
17948 | ||
a0b9e27f MB |
17949 | ; return 0; } |
17950 | EOF | |
6969f178 | 17951 | if { (eval echo configure:17952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17952 | rm -rf conftest* |
17953 | eval "ac_cv_func_pthread_attr_setschedparam=yes" | |
17954 | else | |
17955 | echo "configure: failed program was:" >&5 | |
17956 | cat conftest.$ac_ext >&5 | |
17957 | rm -rf conftest* | |
17958 | eval "ac_cv_func_pthread_attr_setschedparam=no" | |
17959 | fi | |
17960 | rm -f conftest* | |
17961 | fi | |
17962 | ||
17963 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
17964 | echo "$ac_t""yes" 1>&6 | |
17965 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 | |
6969f178 | 17966 | echo "configure:17967: checking for sched_get_priority_max" >&5 |
a0b9e27f MB |
17967 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
17968 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17969 | else | |
17970 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 17971 | #line 17972 "configure" |
422107f9 | 17972 | #include "confdefs.h" |
009fead0 VZ |
17973 | /* System header to define __stub macros and hopefully few prototypes |
17974 | else | |
a0b9e27f MB |
17975 | echo "$ac_t""no" 1>&6 |
17976 | which can conflict with char sched_get_priority_max(); below. */ | |
009fead0 | 17977 | #include <assert.h> |
4f14bcd8 GD |
17978 | /* Override any gcc2 internal prototype to avoid an error. */ |
17979 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17980 | builtin and then its argument prototype would still apply. */ |
17981 | char sched_get_priority_max(); | |
17982 | ||
17983 | int main() { | |
17984 | ||
009fead0 VZ |
17985 | /* The GNU C library defines this for functions which it implements |
17986 | to always fail with ENOSYS. Some functions are actually named | |
17987 | something starting with __ and the normal name is an alias. */ | |
17988 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
17989 | choke me | |
17990 | #else | |
a0b9e27f | 17991 | sched_get_priority_max(); |
009fead0 VZ |
17992 | #endif |
17993 | ||
a0b9e27f MB |
17994 | ; return 0; } |
17995 | EOF | |
6969f178 | 17996 | if { (eval echo configure:17997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17997 | rm -rf conftest* |
17998 | eval "ac_cv_func_sched_get_priority_max=yes" | |
17999 | else | |
18000 | echo "configure: failed program was:" >&5 | |
18001 | cat conftest.$ac_ext >&5 | |
18002 | rm -rf conftest* | |
18003 | eval "ac_cv_func_sched_get_priority_max=no" | |
18004 | fi | |
18005 | rm -f conftest* | |
18006 | fi | |
18007 | ||
18008 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
18009 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
18010 | HAVE_PRIOR_FUNCS=1 |
18011 | else | |
a0b9e27f MB |
18012 | echo "$ac_t""no" 1>&6 |
18013 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
6969f178 | 18014 | echo "configure:18015: checking for sched_get_priority_max in -lposix4" >&5 |
a0b9e27f MB |
18015 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
18016 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18017 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 18018 | else |
a0b9e27f | 18019 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18020 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 18021 | cat > conftest.$ac_ext <<EOF |
6969f178 | 18022 | #line 18023 "configure" |
422107f9 VZ |
18023 | #include "confdefs.h" |
18024 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18025 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18026 | builtin and then its argument prototype would still apply. */ |
18027 | char sched_get_priority_max(); | |
18028 | ||
18029 | int main() { | |
18030 | sched_get_priority_max() | |
18031 | ; return 0; } | |
18032 | EOF | |
6969f178 | 18033 | if { (eval echo configure:18034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18034 | rm -rf conftest* |
18035 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18036 | else | |
18037 | echo "configure: failed program was:" >&5 | |
18038 | cat conftest.$ac_ext >&5 | |
18039 | rm -rf conftest* | |
18040 | eval "ac_cv_lib_$ac_lib_var=no" | |
18041 | fi | |
18042 | rm -f conftest* | |
18043 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 18044 | |
a0b9e27f MB |
18045 | fi |
18046 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18047 | echo "$ac_t""yes" 1>&6 | |
18048 | ||
7274f1c7 RL |
18049 | HAVE_PRIOR_FUNCS=1 |
18050 | POSIX4_LINK=" -lposix4" | |
a0b9e27f MB |
18051 | |
18052 | else | |
18053 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 18054 | fi |
463abc64 | 18055 | |
a0b9e27f | 18056 | |
328a083c | 18057 | fi |
463abc64 | 18058 | |
a0b9e27f MB |
18059 | |
18060 | else | |
18061 | echo "$ac_t""no" 1>&6 | |
7b4a847f | 18062 | fi |
579d8138 | 18063 | |
a0b9e27f | 18064 | |
5c6fa7d2 | 18065 | fi |
52127426 | 18066 | |
8284b0c5 | 18067 | |
7274f1c7 | 18068 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
a0b9e27f | 18069 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18070 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
a0b9e27f | 18071 | EOF |
463abc64 | 18072 | |
7274f1c7 | 18073 | else |
a0b9e27f | 18074 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
7274f1c7 | 18075 | fi |
463abc64 | 18076 | |
a0b9e27f | 18077 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
6969f178 | 18078 | echo "configure:18079: checking for pthread_cancel" >&5 |
a0b9e27f MB |
18079 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
18080 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 18081 | else |
a0b9e27f | 18082 | cat > conftest.$ac_ext <<EOF |
6969f178 | 18083 | #line 18084 "configure" |
422107f9 | 18084 | #include "confdefs.h" |
009fead0 | 18085 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18086 | which can conflict with char pthread_cancel(); below. */ |
009fead0 | 18087 | #include <assert.h> |
422107f9 VZ |
18088 | /* Override any gcc2 internal prototype to avoid an error. */ |
18089 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18090 | builtin and then its argument prototype would still apply. */ |
18091 | char pthread_cancel(); | |
18092 | ||
18093 | int main() { | |
18094 | ||
009fead0 VZ |
18095 | /* The GNU C library defines this for functions which it implements |
18096 | to always fail with ENOSYS. Some functions are actually named | |
18097 | something starting with __ and the normal name is an alias. */ | |
18098 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
18099 | choke me | |
18100 | #else | |
a0b9e27f | 18101 | pthread_cancel(); |
009fead0 VZ |
18102 | #endif |
18103 | ||
a0b9e27f MB |
18104 | ; return 0; } |
18105 | EOF | |
6969f178 | 18106 | if { (eval echo configure:18107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18107 | rm -rf conftest* |
18108 | eval "ac_cv_func_pthread_cancel=yes" | |
18109 | else | |
18110 | echo "configure: failed program was:" >&5 | |
18111 | cat conftest.$ac_ext >&5 | |
18112 | rm -rf conftest* | |
18113 | eval "ac_cv_func_pthread_cancel=no" | |
18114 | fi | |
18115 | rm -f conftest* | |
18116 | fi | |
18117 | ||
18118 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
18119 | echo "$ac_t""yes" 1>&6 | |
18120 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18121 | #define HAVE_PTHREAD_CANCEL 1 |
a0b9e27f | 18122 | EOF |
4f14bcd8 | 18123 | |
698dcdb6 | 18124 | else |
a0b9e27f MB |
18125 | echo "$ac_t""no" 1>&6 |
18126 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
422107f9 VZ |
18127 | fi |
18128 | ||
5c6fa7d2 | 18129 | |
a0b9e27f | 18130 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
6969f178 | 18131 | echo "configure:18132: checking for pthread_cleanup_push/pop" >&5 |
a0b9e27f MB |
18132 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
18133 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 18134 | else |
a0b9e27f MB |
18135 | |
18136 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 18137 | #line 18138 "configure" |
4f14bcd8 GD |
18138 | #include "confdefs.h" |
18139 | #include <pthread.h> | |
a0b9e27f | 18140 | int main() { |
4f14bcd8 | 18141 | |
7274f1c7 RL |
18142 | pthread_cleanup_push(NULL, NULL); |
18143 | pthread_cleanup_pop(0); | |
a0b9e27f MB |
18144 | |
18145 | ; return 0; } | |
18146 | EOF | |
6969f178 | 18147 | if { (eval echo configure:18148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
18148 | rm -rf conftest* |
18149 | ||
7274f1c7 | 18150 | wx_cv_func_pthread_cleanup_push=yes |
a0b9e27f | 18151 | |
4f14bcd8 | 18152 | else |
a0b9e27f MB |
18153 | echo "configure: failed program was:" >&5 |
18154 | cat conftest.$ac_ext >&5 | |
18155 | rm -rf conftest* | |
18156 | ||
7274f1c7 | 18157 | wx_cv_func_pthread_cleanup_push=no |
a0b9e27f | 18158 | |
5c6fa7d2 | 18159 | fi |
a0b9e27f MB |
18160 | rm -f conftest* |
18161 | ||
247f5006 | 18162 | fi |
a0b9e27f MB |
18163 | |
18164 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
4f14bcd8 | 18165 | |
7274f1c7 | 18166 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
a0b9e27f | 18167 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18168 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
a0b9e27f | 18169 | EOF |
c7a2bf27 | 18170 | |
7274f1c7 | 18171 | fi |
4f14bcd8 | 18172 | |
a0b9e27f MB |
18173 | |
18174 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
6969f178 | 18175 | echo "configure:18176: checking for pthread_mutexattr_t" >&5 |
a0b9e27f MB |
18176 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
18177 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 18178 | else |
a0b9e27f MB |
18179 | |
18180 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 18181 | #line 18182 "configure" |
0dcf9893 | 18182 | #include "confdefs.h" |
4f14bcd8 | 18183 | #include <pthread.h> |
a0b9e27f | 18184 | int main() { |
4f14bcd8 | 18185 | |
7274f1c7 RL |
18186 | pthread_mutexattr_t attr; |
18187 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
a0b9e27f MB |
18188 | |
18189 | ; return 0; } | |
18190 | EOF | |
6969f178 | 18191 | if { (eval echo configure:18192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
18192 | rm -rf conftest* |
18193 | ||
7274f1c7 | 18194 | wx_cv_type_pthread_mutexattr_t=yes |
a0b9e27f | 18195 | |
3fed1840 | 18196 | else |
a0b9e27f MB |
18197 | echo "configure: failed program was:" >&5 |
18198 | cat conftest.$ac_ext >&5 | |
18199 | rm -rf conftest* | |
18200 | ||
7274f1c7 | 18201 | wx_cv_type_pthread_mutexattr_t=no |
a0b9e27f MB |
18202 | |
18203 | ||
5c6fa7d2 | 18204 | fi |
a0b9e27f MB |
18205 | rm -f conftest* |
18206 | ||
247f5006 | 18207 | fi |
a0b9e27f MB |
18208 | |
18209 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
4f14bcd8 | 18210 | |
7274f1c7 | 18211 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
a0b9e27f | 18212 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18213 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
a0b9e27f | 18214 | EOF |
4f14bcd8 | 18215 | |
7274f1c7 | 18216 | else |
a0b9e27f | 18217 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
6969f178 | 18218 | echo "configure:18219: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
a0b9e27f MB |
18219 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
18220 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18221 | else | |
18222 | ||
18223 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 18224 | #line 18225 "configure" |
3fed1840 | 18225 | #include "confdefs.h" |
4f14bcd8 | 18226 | #include <pthread.h> |
a0b9e27f | 18227 | int main() { |
4f14bcd8 | 18228 | |
7274f1c7 | 18229 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
a0b9e27f MB |
18230 | |
18231 | ; return 0; } | |
18232 | EOF | |
6969f178 | 18233 | if { (eval echo configure:18234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
18234 | rm -rf conftest* |
18235 | ||
7274f1c7 | 18236 | wx_cv_type_pthread_rec_mutex_init=yes |
a0b9e27f | 18237 | |
698dcdb6 | 18238 | else |
a0b9e27f MB |
18239 | echo "configure: failed program was:" >&5 |
18240 | cat conftest.$ac_ext >&5 | |
18241 | rm -rf conftest* | |
18242 | ||
7274f1c7 | 18243 | wx_cv_type_pthread_rec_mutex_init=no |
a0b9e27f MB |
18244 | |
18245 | ||
5c6fa7d2 | 18246 | fi |
a0b9e27f MB |
18247 | rm -f conftest* |
18248 | ||
247f5006 | 18249 | fi |
a0b9e27f MB |
18250 | |
18251 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
7274f1c7 | 18252 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
a0b9e27f | 18253 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18254 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
a0b9e27f | 18255 | EOF |
3fed1840 | 18256 | |
7274f1c7 | 18257 | else |
a0b9e27f | 18258 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
7274f1c7 RL |
18259 | fi |
18260 | fi | |
7274f1c7 | 18261 | fi |
3fed1840 | 18262 | |
a0b9e27f MB |
18263 | else |
18264 | if test "$wxUSE_THREADS" = "yes" ; then | |
18265 | case "${host}" in | |
18266 | *-*-mingw32* ) | |
18267 | CFLAGS="$CFLAGS -mthreads" | |
18268 | CXXFLAGS="$CXXFLAGS -mthreads" | |
18269 | COMMON_THREADCPPFLAGS="-mthreads" | |
18270 | LDFLAGS="$LDFLAGS -mthreads" | |
18271 | ;; | |
18272 | esac | |
18273 | fi | |
4f14bcd8 GD |
18274 | fi |
18275 | ||
18276 | if test "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 18277 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18278 | #define wxUSE_THREADS 1 |
a0b9e27f | 18279 | EOF |
7b6058cd | 18280 | |
8284b0c5 | 18281 | |
4f14bcd8 | 18282 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 18283 | else |
4f14bcd8 | 18284 | if test "$ac_cv_func_strtok_r" = "yes"; then |
a0b9e27f | 18285 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
6969f178 | 18286 | echo "configure:18287: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
18287 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
18288 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
a0b9e27f | 18289 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 18290 | else |
a0b9e27f | 18291 | echo "$ac_t""no" 1>&6 |
4f14bcd8 GD |
18292 | fi |
18293 | fi | |
18294 | fi | |
18295 | ||
18296 | if test "$WXGTK20" = 1 ; then | |
a0b9e27f | 18297 | cat >> confdefs.h <<EOF |
4f14bcd8 | 18298 | #define __WXGTK20__ $WXGTK20 |
a0b9e27f | 18299 | EOF |
4f14bcd8 GD |
18300 | |
18301 | WXGTK12=1 | |
10f2d63a | 18302 | fi |
4f14bcd8 GD |
18303 | |
18304 | if test "$WXGTK12" = 1 ; then | |
a0b9e27f | 18305 | cat >> confdefs.h <<EOF |
4f14bcd8 | 18306 | #define __WXGTK12__ $WXGTK12 |
a0b9e27f | 18307 | EOF |
4f14bcd8 | 18308 | |
10f2d63a | 18309 | fi |
698dcdb6 | 18310 | |
4f14bcd8 | 18311 | if test "$WXGTK127" = 1 ; then |
a0b9e27f | 18312 | cat >> confdefs.h <<EOF |
4f14bcd8 | 18313 | #define __WXGTK127__ $WXGTK127 |
a0b9e27f | 18314 | EOF |
4f14bcd8 | 18315 | |
698dcdb6 | 18316 | fi |
10f2d63a | 18317 | |
4f14bcd8 GD |
18318 | WXDEBUG= |
18319 | ||
18320 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
18321 | WXDEBUG="-g" | |
18322 | wxUSE_OPTIMISE=no | |
698dcdb6 | 18323 | fi |
4f14bcd8 GD |
18324 | |
18325 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
18326 | wxUSE_DEBUG_INFO=yes | |
18327 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
18328 | fi |
18329 | ||
4f14bcd8 | 18330 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
a0b9e27f | 18331 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18332 | #define WXDEBUG 1 |
a0b9e27f | 18333 | EOF |
4f14bcd8 GD |
18334 | |
18335 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 18336 | else |
4f14bcd8 GD |
18337 | if test "$wxUSE_GTK" = 1 ; then |
18338 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
18339 | fi | |
18340 | fi | |
18341 | ||
18342 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
a0b9e27f | 18343 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18344 | #define wxUSE_MEMORY_TRACING 1 |
a0b9e27f | 18345 | EOF |
4f14bcd8 | 18346 | |
a0b9e27f | 18347 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18348 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
a0b9e27f | 18349 | EOF |
4f14bcd8 | 18350 | |
a0b9e27f | 18351 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18352 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
a0b9e27f | 18353 | EOF |
4f14bcd8 GD |
18354 | |
18355 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
18356 | fi | |
18357 | ||
18358 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 18359 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
18360 | fi |
18361 | ||
18362 | PROFILE= | |
18363 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 18364 | PROFILE=" -pg" |
10f2d63a VZ |
18365 | fi |
18366 | ||
009fead0 VZ |
18367 | CODE_GEN_FLAGS= |
18368 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 18369 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
18370 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
18371 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 18372 | fi |
4f14bcd8 GD |
18373 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
18374 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
18375 | fi | |
18376 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
18377 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
18378 | fi | |
4f14bcd8 GD |
18379 | if test "$USE_WIN32" = 1 ; then |
18380 | # I'm not even really sure what this was ever added to solve, | |
18381 | # but someone added it for mingw native builds, so I guess | |
18382 | # they had a reason, right?? | |
18383 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
18384 | fi | |
1d1b75ac VZ |
18385 | |
18386 | case "${host}" in | |
18387 | powerpc*-*-aix* ) | |
18388 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
18389 | ;; | |
18390 | esac | |
4f14bcd8 GD |
18391 | fi |
18392 | ||
4f14bcd8 GD |
18393 | if test "$wxUSE_OPTIMISE" = "no" ; then |
18394 | OPTIMISE= | |
18395 | else | |
18396 | if test "$GCC" = yes ; then | |
18397 | OPTIMISE="-O2" | |
18398 | case "${host}" in | |
18399 | i586-*-*|i686-*-* ) | |
18400 | OPTIMISE="${OPTIMISE} " | |
18401 | ;; | |
18402 | esac | |
18403 | else | |
18404 | OPTIMISE="-O" | |
18405 | fi | |
18406 | fi | |
18407 | ||
18408 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
a0b9e27f | 18409 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18410 | #define WXWIN_COMPATIBILITY_2 1 |
a0b9e27f | 18411 | EOF |
4f14bcd8 | 18412 | |
8284b0c5 | 18413 | |
4f14bcd8 GD |
18414 | WXWIN_COMPATIBILITY_2_2="yes" |
18415 | fi | |
18416 | ||
0c9a1c32 | 18417 | if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then |
a0b9e27f | 18418 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18419 | #define WXWIN_COMPATIBILITY_2_2 1 |
a0b9e27f | 18420 | EOF |
4f14bcd8 | 18421 | |
10f2d63a VZ |
18422 | fi |
18423 | ||
8284b0c5 | 18424 | |
10f2d63a | 18425 | if test "$wxUSE_GUI" = "yes"; then |
a0b9e27f | 18426 | cat >> confdefs.h <<\EOF |
10f2d63a | 18427 | #define wxUSE_GUI 1 |
a0b9e27f | 18428 | EOF |
10f2d63a | 18429 | |
8284b0c5 | 18430 | |
10f2d63a | 18431 | else |
a0b9e27f | 18432 | cat >> confdefs.h <<\EOF |
10f2d63a | 18433 | #define wxUSE_NOGUI 1 |
a0b9e27f | 18434 | EOF |
10f2d63a VZ |
18435 | |
18436 | fi | |
18437 | ||
8284b0c5 | 18438 | |
10f2d63a | 18439 | if test "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 18440 | cat >> confdefs.h <<\EOF |
10f2d63a | 18441 | #define wxUSE_UNIX 1 |
a0b9e27f | 18442 | EOF |
10f2d63a VZ |
18443 | |
18444 | fi | |
18445 | ||
8284b0c5 | 18446 | |
10f2d63a | 18447 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
a0b9e27f | 18448 | cat >> confdefs.h <<\EOF |
10f2d63a | 18449 | #define wxUSE_APPLE_IEEE 1 |
a0b9e27f | 18450 | EOF |
10f2d63a VZ |
18451 | |
18452 | fi | |
18453 | ||
1e6feb95 | 18454 | if test "$wxUSE_TIMER" = "yes"; then |
a0b9e27f | 18455 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18456 | #define wxUSE_TIMER 1 |
a0b9e27f | 18457 | EOF |
1e6feb95 VZ |
18458 | |
18459 | fi | |
18460 | ||
10f2d63a | 18461 | if test "$wxUSE_WAVE" = "yes"; then |
a0b9e27f | 18462 | cat >> confdefs.h <<\EOF |
10f2d63a | 18463 | #define wxUSE_WAVE 1 |
a0b9e27f | 18464 | EOF |
10f2d63a VZ |
18465 | |
18466 | fi | |
18467 | ||
1e6feb95 | 18468 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
a0b9e27f | 18469 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18470 | #define wxUSE_CMDLINE_PARSER 1 |
a0b9e27f | 18471 | EOF |
1e6feb95 VZ |
18472 | |
18473 | fi | |
18474 | ||
18475 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
a0b9e27f | 18476 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18477 | #define wxUSE_STOPWATCH 1 |
a0b9e27f | 18478 | EOF |
1e6feb95 VZ |
18479 | |
18480 | fi | |
18481 | ||
18482 | if test "$wxUSE_DATETIME" = "yes"; then | |
a0b9e27f | 18483 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18484 | #define wxUSE_DATETIME 1 |
a0b9e27f | 18485 | EOF |
1e6feb95 VZ |
18486 | |
18487 | fi | |
18488 | ||
18489 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
a0b9e27f | 18490 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18491 | #define wxUSE_TIMEDATE 1 |
a0b9e27f | 18492 | EOF |
1e6feb95 VZ |
18493 | |
18494 | fi | |
18495 | ||
10f2d63a | 18496 | if test "$wxUSE_FILE" = "yes"; then |
a0b9e27f | 18497 | cat >> confdefs.h <<\EOF |
10f2d63a | 18498 | #define wxUSE_FILE 1 |
a0b9e27f | 18499 | EOF |
10f2d63a VZ |
18500 | |
18501 | fi | |
18502 | ||
1e6feb95 | 18503 | if test "$wxUSE_FFILE" = "yes"; then |
a0b9e27f | 18504 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18505 | #define wxUSE_FFILE 1 |
a0b9e27f | 18506 | EOF |
1e6feb95 VZ |
18507 | |
18508 | fi | |
18509 | ||
24528b0c | 18510 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
a0b9e27f | 18511 | cat >> confdefs.h <<\EOF |
24528b0c | 18512 | #define wxUSE_FILESYSTEM 1 |
a0b9e27f | 18513 | EOF |
24528b0c VS |
18514 | |
18515 | fi | |
18516 | ||
10f2d63a | 18517 | if test "$wxUSE_FS_INET" = "yes"; then |
a0b9e27f | 18518 | cat >> confdefs.h <<\EOF |
10f2d63a | 18519 | #define wxUSE_FS_INET 1 |
a0b9e27f | 18520 | EOF |
10f2d63a VZ |
18521 | |
18522 | fi | |
18523 | ||
18524 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
a0b9e27f | 18525 | cat >> confdefs.h <<\EOF |
10f2d63a | 18526 | #define wxUSE_FS_ZIP 1 |
a0b9e27f | 18527 | EOF |
10f2d63a VZ |
18528 | |
18529 | fi | |
18530 | ||
18531 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
a0b9e27f | 18532 | cat >> confdefs.h <<\EOF |
10f2d63a | 18533 | #define wxUSE_ZIPSTREAM 1 |
a0b9e27f | 18534 | EOF |
10f2d63a VZ |
18535 | |
18536 | fi | |
18537 | ||
eb4efbdc | 18538 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
a0b9e27f | 18539 | cat >> confdefs.h <<\EOF |
eb4efbdc | 18540 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
a0b9e27f | 18541 | EOF |
eb4efbdc VZ |
18542 | |
18543 | fi | |
18544 | ||
4f3c5f06 | 18545 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 18546 | cat >> confdefs.h <<\EOF |
4f3c5f06 | 18547 | #define wxUSE_SNGLINST_CHECKER 1 |
a0b9e27f | 18548 | EOF |
4f3c5f06 VZ |
18549 | |
18550 | fi | |
18551 | ||
10f2d63a | 18552 | if test "$wxUSE_BUSYINFO" = "yes"; then |
a0b9e27f | 18553 | cat >> confdefs.h <<\EOF |
10f2d63a | 18554 | #define wxUSE_BUSYINFO 1 |
a0b9e27f | 18555 | EOF |
10f2d63a VZ |
18556 | |
18557 | fi | |
18558 | ||
18559 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
a0b9e27f | 18560 | cat >> confdefs.h <<\EOF |
10f2d63a | 18561 | #define wxUSE_STD_IOSTREAM 1 |
a0b9e27f | 18562 | EOF |
10f2d63a VZ |
18563 | |
18564 | fi | |
18565 | ||
a3a584a7 | 18566 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
a0b9e27f | 18567 | cat >> confdefs.h <<\EOF |
a3a584a7 | 18568 | #define wxUSE_TEXTBUFFER 1 |
a0b9e27f | 18569 | EOF |
a3a584a7 VZ |
18570 | |
18571 | fi | |
18572 | ||
10f2d63a | 18573 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 18574 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
a0b9e27f | 18575 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 18576 | else |
a0b9e27f | 18577 | cat >> confdefs.h <<\EOF |
10f2d63a | 18578 | #define wxUSE_TEXTFILE 1 |
a0b9e27f | 18579 | EOF |
10f2d63a VZ |
18580 | |
18581 | fi | |
18582 | fi | |
18583 | ||
18584 | if test "$wxUSE_CONFIG" = "yes" ; then | |
18585 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
a0b9e27f | 18586 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 18587 | else |
a0b9e27f | 18588 | cat >> confdefs.h <<\EOF |
10f2d63a | 18589 | #define wxUSE_CONFIG 1 |
a0b9e27f | 18590 | EOF |
10f2d63a VZ |
18591 | |
18592 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
18593 | fi | |
18594 | fi | |
18595 | ||
18596 | if test "$wxUSE_INTL" = "yes" ; then | |
18597 | if test "$wxUSE_FILE" != "yes"; then | |
a0b9e27f | 18598 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 18599 | else |
a0b9e27f | 18600 | cat >> confdefs.h <<\EOF |
10f2d63a | 18601 | #define wxUSE_INTL 1 |
a0b9e27f | 18602 | EOF |
10f2d63a VZ |
18603 | |
18604 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 18605 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
18606 | fi |
18607 | fi | |
18608 | ||
18609 | if test "$wxUSE_LOG" = "yes"; then | |
a0b9e27f | 18610 | cat >> confdefs.h <<\EOF |
10f2d63a | 18611 | #define wxUSE_LOG 1 |
a0b9e27f | 18612 | EOF |
10f2d63a | 18613 | |
8284b0c5 | 18614 | |
d73be714 | 18615 | if test "$wxUSE_LOGGUI" = "yes"; then |
a0b9e27f | 18616 | cat >> confdefs.h <<\EOF |
d73be714 | 18617 | #define wxUSE_LOGGUI 1 |
a0b9e27f | 18618 | EOF |
d73be714 VZ |
18619 | |
18620 | fi | |
18621 | ||
18622 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
a0b9e27f | 18623 | cat >> confdefs.h <<\EOF |
d73be714 | 18624 | #define wxUSE_LOGWINDOW 1 |
a0b9e27f | 18625 | EOF |
69d27ff7 MB |
18626 | |
18627 | fi | |
18628 | ||
18629 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
a0b9e27f | 18630 | cat >> confdefs.h <<\EOF |
69d27ff7 | 18631 | #define wxUSE_LOG_DIALOG 1 |
a0b9e27f | 18632 | EOF |
d73be714 VZ |
18633 | |
18634 | fi | |
10f2d63a VZ |
18635 | fi |
18636 | ||
18637 | if test "$wxUSE_LONGLONG" = "yes"; then | |
a0b9e27f | 18638 | cat >> confdefs.h <<\EOF |
10f2d63a | 18639 | #define wxUSE_LONGLONG 1 |
a0b9e27f | 18640 | EOF |
10f2d63a VZ |
18641 | |
18642 | fi | |
18643 | ||
e8f65ba6 | 18644 | if test "$wxUSE_GEOMETRY" = "yes"; then |
a0b9e27f | 18645 | cat >> confdefs.h <<\EOF |
e8f65ba6 | 18646 | #define wxUSE_GEOMETRY 1 |
a0b9e27f | 18647 | EOF |
e8f65ba6 RR |
18648 | |
18649 | fi | |
18650 | ||
10f2d63a | 18651 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
a0b9e27f | 18652 | cat >> confdefs.h <<\EOF |
10f2d63a | 18653 | #define wxUSE_DIALUP_MANAGER 1 |
a0b9e27f | 18654 | EOF |
10f2d63a | 18655 | |
70f7a477 | 18656 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
18657 | fi |
18658 | ||
18659 | if test "$wxUSE_STREAMS" = "yes" ; then | |
a0b9e27f | 18660 | cat >> confdefs.h <<\EOF |
10f2d63a | 18661 | #define wxUSE_STREAMS 1 |
a0b9e27f | 18662 | EOF |
10f2d63a VZ |
18663 | |
18664 | fi | |
18665 | ||
5c6fa7d2 | 18666 | |
8284b0c5 | 18667 | if test "$wxUSE_DATETIME" = "yes"; then |
a0b9e27f | 18668 | for ac_func in strptime |
83307f33 | 18669 | do |
a0b9e27f | 18670 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 18671 | echo "configure:18672: checking for $ac_func" >&5 |
a0b9e27f MB |
18672 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18673 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18674 | else | |
18675 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 18676 | #line 18677 "configure" |
83307f33 VZ |
18677 | #include "confdefs.h" |
18678 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 18679 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
18680 | #include <assert.h> |
18681 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18682 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18683 | builtin and then its argument prototype would still apply. */ |
18684 | char $ac_func(); | |
18685 | ||
18686 | int main() { | |
18687 | ||
83307f33 VZ |
18688 | /* The GNU C library defines this for functions which it implements |
18689 | to always fail with ENOSYS. Some functions are actually named | |
18690 | something starting with __ and the normal name is an alias. */ | |
18691 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18692 | choke me | |
18693 | #else | |
a0b9e27f | 18694 | $ac_func(); |
83307f33 VZ |
18695 | #endif |
18696 | ||
a0b9e27f MB |
18697 | ; return 0; } |
18698 | EOF | |
6969f178 | 18699 | if { (eval echo configure:18700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18700 | rm -rf conftest* |
18701 | eval "ac_cv_func_$ac_func=yes" | |
18702 | else | |
18703 | echo "configure: failed program was:" >&5 | |
18704 | cat conftest.$ac_ext >&5 | |
18705 | rm -rf conftest* | |
18706 | eval "ac_cv_func_$ac_func=no" | |
18707 | fi | |
18708 | rm -f conftest* | |
18709 | fi | |
83307f33 | 18710 | |
a0b9e27f MB |
18711 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18712 | echo "$ac_t""yes" 1>&6 | |
18713 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18714 | cat >> confdefs.h <<EOF | |
18715 | #define $ac_tr_func 1 | |
18716 | EOF | |
18717 | ||
18718 | else | |
18719 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
18720 | fi |
18721 | done | |
18722 | ||
5c6fa7d2 | 18723 | |
a0b9e27f | 18724 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
6969f178 | 18725 | echo "configure:18726: checking for timezone variable in <time.h>" >&5 |
a0b9e27f MB |
18726 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
18727 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 18728 | else |
a0b9e27f MB |
18729 | |
18730 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 18731 | #line 18732 "configure" |
360d6699 VZ |
18732 | #include "confdefs.h" |
18733 | ||
b4085ce6 | 18734 | #include <time.h> |
a0b9e27f MB |
18735 | |
18736 | int main() { | |
360d6699 VZ |
18737 | |
18738 | int tz; | |
4f11a343 | 18739 | tz = timezone; |
a0b9e27f MB |
18740 | |
18741 | ; return 0; } | |
18742 | EOF | |
6969f178 | 18743 | if { (eval echo configure:18744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
18744 | rm -rf conftest* |
18745 | ||
4f11a343 | 18746 | wx_cv_var_timezone=timezone |
a0b9e27f | 18747 | |
360d6699 | 18748 | else |
a0b9e27f MB |
18749 | echo "configure: failed program was:" >&5 |
18750 | cat conftest.$ac_ext >&5 | |
18751 | rm -rf conftest* | |
18752 | ||
18753 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 18754 | #line 18755 "configure" |
360d6699 VZ |
18755 | #include "confdefs.h" |
18756 | ||
b4085ce6 | 18757 | #include <time.h> |
a0b9e27f MB |
18758 | |
18759 | int main() { | |
360d6699 VZ |
18760 | |
18761 | int tz; | |
18762 | tz = _timezone; | |
a0b9e27f MB |
18763 | |
18764 | ; return 0; } | |
18765 | EOF | |
6969f178 | 18766 | if { (eval echo configure:18767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
18767 | rm -rf conftest* |
18768 | ||
360d6699 | 18769 | wx_cv_var_timezone=_timezone |
a0b9e27f | 18770 | |
5357c8e8 | 18771 | else |
a0b9e27f MB |
18772 | echo "configure: failed program was:" >&5 |
18773 | cat conftest.$ac_ext >&5 | |
18774 | rm -rf conftest* | |
18775 | ||
18776 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 18777 | #line 18778 "configure" |
5357c8e8 VZ |
18778 | #include "confdefs.h" |
18779 | ||
b4085ce6 | 18780 | #include <time.h> |
a0b9e27f MB |
18781 | |
18782 | int main() { | |
5357c8e8 VZ |
18783 | |
18784 | int tz; | |
4f11a343 | 18785 | tz = __timezone; |
a0b9e27f MB |
18786 | |
18787 | ; return 0; } | |
18788 | EOF | |
6969f178 | 18789 | if { (eval echo configure:18790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
18790 | rm -rf conftest* |
18791 | ||
4f11a343 | 18792 | wx_cv_var_timezone=__timezone |
a0b9e27f | 18793 | |
360d6699 | 18794 | else |
a0b9e27f MB |
18795 | echo "configure: failed program was:" >&5 |
18796 | cat conftest.$ac_ext >&5 | |
18797 | rm -rf conftest* | |
18798 | ||
f9bc1684 | 18799 | if test "$USE_DOS" = 0 ; then |
a0b9e27f | 18800 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 | 18801 | fi |
a0b9e27f MB |
18802 | |
18803 | ||
328a083c | 18804 | fi |
a0b9e27f MB |
18805 | rm -f conftest* |
18806 | ||
18807 | ||
7b4a847f | 18808 | fi |
a0b9e27f MB |
18809 | rm -f conftest* |
18810 | ||
18811 | ||
5c6fa7d2 | 18812 | fi |
a0b9e27f MB |
18813 | rm -f conftest* |
18814 | ||
18815 | ||
247f5006 | 18816 | fi |
a0b9e27f MB |
18817 | |
18818 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
698dcdb6 | 18819 | |
f9bc1684 | 18820 | if test "x$wx_cv_var_timezone" != x ; then |
a0b9e27f | 18821 | cat >> confdefs.h <<EOF |
360d6699 | 18822 | #define WX_TIMEZONE $wx_cv_var_timezone |
a0b9e27f | 18823 | EOF |
360d6699 | 18824 | |
f9bc1684 | 18825 | fi |
698dcdb6 | 18826 | |
a0b9e27f | 18827 | for ac_func in localtime |
afc31813 | 18828 | do |
a0b9e27f | 18829 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 18830 | echo "configure:18831: checking for $ac_func" >&5 |
a0b9e27f MB |
18831 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18832 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18833 | else | |
18834 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 18835 | #line 18836 "configure" |
10f2d63a | 18836 | #include "confdefs.h" |
afc31813 | 18837 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18838 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
18839 | #include <assert.h> |
18840 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18841 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18842 | builtin and then its argument prototype would still apply. */ |
18843 | char $ac_func(); | |
18844 | ||
18845 | int main() { | |
18846 | ||
afc31813 VZ |
18847 | /* The GNU C library defines this for functions which it implements |
18848 | to always fail with ENOSYS. Some functions are actually named | |
18849 | something starting with __ and the normal name is an alias. */ | |
18850 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18851 | choke me | |
18852 | #else | |
a0b9e27f | 18853 | $ac_func(); |
afc31813 VZ |
18854 | #endif |
18855 | ||
a0b9e27f MB |
18856 | ; return 0; } |
18857 | EOF | |
6969f178 | 18858 | if { (eval echo configure:18859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18859 | rm -rf conftest* |
18860 | eval "ac_cv_func_$ac_func=yes" | |
18861 | else | |
18862 | echo "configure: failed program was:" >&5 | |
18863 | cat conftest.$ac_ext >&5 | |
18864 | rm -rf conftest* | |
18865 | eval "ac_cv_func_$ac_func=no" | |
18866 | fi | |
18867 | rm -f conftest* | |
18868 | fi | |
afc31813 | 18869 | |
a0b9e27f MB |
18870 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18871 | echo "$ac_t""yes" 1>&6 | |
18872 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18873 | cat >> confdefs.h <<EOF | |
18874 | #define $ac_tr_func 1 | |
18875 | EOF | |
18876 | ||
18877 | else | |
18878 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
18879 | fi |
18880 | done | |
18881 | ||
5c6fa7d2 | 18882 | |
8284b0c5 | 18883 | if test "$ac_cv_func_localtime" = "yes"; then |
a0b9e27f | 18884 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
6969f178 | 18885 | echo "configure:18886: checking for tm_gmtoff in struct tm" >&5 |
a0b9e27f MB |
18886 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
18887 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18888 | else | |
18889 | ||
18890 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 18891 | #line 18892 "configure" |
0470b1e6 VZ |
18892 | #include "confdefs.h" |
18893 | ||
b4085ce6 | 18894 | #include <time.h> |
a0b9e27f MB |
18895 | |
18896 | int main() { | |
0470b1e6 VZ |
18897 | |
18898 | struct tm tm; | |
18899 | tm.tm_gmtoff++; | |
a0b9e27f MB |
18900 | |
18901 | ; return 0; } | |
18902 | EOF | |
6969f178 | 18903 | if { (eval echo configure:18904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
18904 | rm -rf conftest* |
18905 | ||
f03a98d8 | 18906 | wx_cv_struct_tm_has_gmtoff=yes |
a0b9e27f | 18907 | |
0470b1e6 | 18908 | else |
a0b9e27f MB |
18909 | echo "configure: failed program was:" >&5 |
18910 | cat conftest.$ac_ext >&5 | |
18911 | rm -rf conftest* | |
18912 | wx_cv_struct_tm_has_gmtoff=no | |
18913 | ||
5c6fa7d2 | 18914 | fi |
a0b9e27f MB |
18915 | rm -f conftest* |
18916 | ||
247f5006 | 18917 | fi |
a0b9e27f MB |
18918 | |
18919 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
18920 | fi |
18921 | ||
18922 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
a0b9e27f | 18923 | cat >> confdefs.h <<\EOF |
6232543b | 18924 | #define WX_GMTOFF_IN_TM 1 |
a0b9e27f | 18925 | EOF |
0470b1e6 | 18926 | |
3fcdd07b VZ |
18927 | fi |
18928 | ||
a0b9e27f | 18929 | for ac_func in gettimeofday ftime |
3fcdd07b | 18930 | do |
a0b9e27f | 18931 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 18932 | echo "configure:18933: checking for $ac_func" >&5 |
a0b9e27f MB |
18933 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18934 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18935 | else | |
18936 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 18937 | #line 18938 "configure" |
3fcdd07b VZ |
18938 | #include "confdefs.h" |
18939 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 18940 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
18941 | #include <assert.h> |
18942 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18943 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18944 | builtin and then its argument prototype would still apply. */ |
18945 | char $ac_func(); | |
18946 | ||
18947 | int main() { | |
18948 | ||
3fcdd07b VZ |
18949 | /* The GNU C library defines this for functions which it implements |
18950 | to always fail with ENOSYS. Some functions are actually named | |
18951 | something starting with __ and the normal name is an alias. */ | |
18952 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18953 | choke me | |
18954 | #else | |
a0b9e27f | 18955 | $ac_func(); |
3fcdd07b VZ |
18956 | #endif |
18957 | ||
a0b9e27f MB |
18958 | ; return 0; } |
18959 | EOF | |
6969f178 | 18960 | if { (eval echo configure:18961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18961 | rm -rf conftest* |
18962 | eval "ac_cv_func_$ac_func=yes" | |
18963 | else | |
18964 | echo "configure: failed program was:" >&5 | |
18965 | cat conftest.$ac_ext >&5 | |
18966 | rm -rf conftest* | |
18967 | eval "ac_cv_func_$ac_func=no" | |
18968 | fi | |
18969 | rm -f conftest* | |
18970 | fi | |
18971 | ||
18972 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18973 | echo "$ac_t""yes" 1>&6 | |
18974 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18975 | cat >> confdefs.h <<EOF | |
18976 | #define $ac_tr_func 1 | |
18977 | EOF | |
3fcdd07b | 18978 | break |
a0b9e27f MB |
18979 | else |
18980 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
18981 | fi |
18982 | done | |
18983 | ||
698dcdb6 | 18984 | |
8284b0c5 | 18985 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
a0b9e27f | 18986 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
6969f178 | 18987 | echo "configure:18988: checking whether gettimeofday takes two arguments" >&5 |
a0b9e27f MB |
18988 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
18989 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18990 | else | |
18991 | ||
18992 | ||
18993 | ac_ext=C | |
18994 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 18995 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
18996 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18997 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18998 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 18999 | |
8284b0c5 | 19000 | |
a0b9e27f | 19001 | cat > conftest.$ac_ext <<EOF |
6969f178 | 19002 | #line 19003 "configure" |
10f2d63a | 19003 | #include "confdefs.h" |
afc31813 VZ |
19004 | |
19005 | #include <sys/time.h> | |
19006 | #include <unistd.h> | |
a0b9e27f MB |
19007 | |
19008 | int main() { | |
afc31813 VZ |
19009 | |
19010 | struct timeval tv; | |
776862b4 | 19011 | gettimeofday(&tv, NULL); |
a0b9e27f MB |
19012 | |
19013 | ; return 0; } | |
19014 | EOF | |
6969f178 | 19015 | if { (eval echo configure:19016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19016 | rm -rf conftest* |
afc31813 | 19017 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 19018 | else |
a0b9e27f MB |
19019 | echo "configure: failed program was:" >&5 |
19020 | cat conftest.$ac_ext >&5 | |
19021 | rm -rf conftest* | |
19022 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 19023 | #line 19024 "configure" |
10f2d63a | 19024 | #include "confdefs.h" |
afc31813 VZ |
19025 | |
19026 | #include <sys/time.h> | |
19027 | #include <unistd.h> | |
a0b9e27f MB |
19028 | |
19029 | int main() { | |
afc31813 VZ |
19030 | |
19031 | struct timeval tv; | |
19032 | gettimeofday(&tv); | |
a0b9e27f MB |
19033 | |
19034 | ; return 0; } | |
19035 | EOF | |
6969f178 | 19036 | if { (eval echo configure:19037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19037 | rm -rf conftest* |
afc31813 | 19038 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 19039 | else |
a0b9e27f MB |
19040 | echo "configure: failed program was:" >&5 |
19041 | cat conftest.$ac_ext >&5 | |
19042 | rm -rf conftest* | |
19043 | ||
19044 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
776862b4 | 19045 | wx_cv_func_gettimeofday_has_2_args=unknown |
a0b9e27f MB |
19046 | |
19047 | ||
10f2d63a | 19048 | fi |
a0b9e27f MB |
19049 | rm -f conftest* |
19050 | ||
10f2d63a | 19051 | fi |
a0b9e27f | 19052 | rm -f conftest* |
afc31813 | 19053 | ac_ext=c |
a0b9e27f | 19054 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 19055 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
19056 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19057 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19058 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 19059 | |
a0b9e27f | 19060 | |
247f5006 | 19061 | fi |
a0b9e27f MB |
19062 | |
19063 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 19064 | |
afc31813 | 19065 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
a0b9e27f | 19066 | cat >> confdefs.h <<\EOF |
afc31813 | 19067 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
a0b9e27f | 19068 | EOF |
afc31813 VZ |
19069 | |
19070 | fi | |
19071 | fi | |
19072 | ||
a0b9e27f | 19073 | cat >> confdefs.h <<\EOF |
afc31813 | 19074 | #define wxUSE_TIMEDATE 1 |
a0b9e27f | 19075 | EOF |
afc31813 VZ |
19076 | |
19077 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
19078 | fi | |
19079 | ||
8284b0c5 | 19080 | |
52127426 | 19081 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 19082 | if test "$wxUSE_MGL" = "1"; then |
a0b9e27f | 19083 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
19084 | wxUSE_SOCKETS="no" |
19085 | fi | |
0feee163 | 19086 | fi |
b089607b | 19087 | |
0feee163 VZ |
19088 | if test "$wxUSE_SOCKETS" = "yes"; then |
19089 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 19090 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
6969f178 | 19091 | echo "configure:19092: checking for socket" >&5 |
a0b9e27f MB |
19092 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
19093 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 19094 | else |
a0b9e27f | 19095 | cat > conftest.$ac_ext <<EOF |
6969f178 | 19096 | #line 19097 "configure" |
c63c7106 VZ |
19097 | #include "confdefs.h" |
19098 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19099 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
19100 | #include <assert.h> |
19101 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19102 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19103 | builtin and then its argument prototype would still apply. */ |
19104 | char socket(); | |
19105 | ||
19106 | int main() { | |
19107 | ||
c63c7106 VZ |
19108 | /* The GNU C library defines this for functions which it implements |
19109 | to always fail with ENOSYS. Some functions are actually named | |
19110 | something starting with __ and the normal name is an alias. */ | |
19111 | #if defined (__stub_socket) || defined (__stub___socket) | |
19112 | choke me | |
19113 | #else | |
a0b9e27f | 19114 | socket(); |
c63c7106 VZ |
19115 | #endif |
19116 | ||
a0b9e27f MB |
19117 | ; return 0; } |
19118 | EOF | |
6969f178 | 19119 | if { (eval echo configure:19120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19120 | rm -rf conftest* |
19121 | eval "ac_cv_func_socket=yes" | |
19122 | else | |
19123 | echo "configure: failed program was:" >&5 | |
19124 | cat conftest.$ac_ext >&5 | |
19125 | rm -rf conftest* | |
19126 | eval "ac_cv_func_socket=no" | |
19127 | fi | |
19128 | rm -f conftest* | |
19129 | fi | |
19130 | ||
19131 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
19132 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
19133 | : |
19134 | else | |
a0b9e27f MB |
19135 | echo "$ac_t""no" 1>&6 |
19136 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
6969f178 | 19137 | echo "configure:19138: checking for socket in -lsocket" >&5 |
a0b9e27f MB |
19138 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
19139 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19140 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 19141 | else |
a0b9e27f | 19142 | ac_save_LIBS="$LIBS" |
c63c7106 | 19143 | LIBS="-lsocket $LIBS" |
a0b9e27f | 19144 | cat > conftest.$ac_ext <<EOF |
6969f178 | 19145 | #line 19146 "configure" |
c63c7106 VZ |
19146 | #include "confdefs.h" |
19147 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19148 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19149 | builtin and then its argument prototype would still apply. */ |
19150 | char socket(); | |
19151 | ||
19152 | int main() { | |
19153 | socket() | |
19154 | ; return 0; } | |
19155 | EOF | |
6969f178 | 19156 | if { (eval echo configure:19157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19157 | rm -rf conftest* |
19158 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19159 | else | |
19160 | echo "configure: failed program was:" >&5 | |
19161 | cat conftest.$ac_ext >&5 | |
19162 | rm -rf conftest* | |
19163 | eval "ac_cv_lib_$ac_lib_var=no" | |
19164 | fi | |
19165 | rm -f conftest* | |
19166 | LIBS="$ac_save_LIBS" | |
19167 | ||
19168 | fi | |
19169 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19170 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
19171 | if test "$INET_LINK" != " -lsocket"; then |
19172 | INET_LINK="$INET_LINK -lsocket" | |
19173 | fi | |
c63c7106 | 19174 | else |
a0b9e27f | 19175 | echo "$ac_t""no" 1>&6 |
afc31813 | 19176 | |
a0b9e27f | 19177 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
3a922bb4 | 19178 | wxUSE_SOCKETS=no |
a0b9e27f MB |
19179 | |
19180 | ||
6232543b | 19181 | fi |
b089607b | 19182 | |
a0b9e27f | 19183 | |
1e487827 | 19184 | fi |
afc31813 | 19185 | |
3a922bb4 | 19186 | fi |
0feee163 | 19187 | fi |
51a9faba | 19188 | |
0feee163 VZ |
19189 | if test "$wxUSE_SOCKETS" = "yes" ; then |
19190 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 19191 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
6969f178 | 19192 | echo "configure:19193: checking what is the type of the third argument of getsockname" >&5 |
a0b9e27f MB |
19193 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
19194 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19195 | else | |
19196 | ||
19197 | ||
19198 | ac_ext=C | |
19199 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 19200 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
19201 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19202 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19203 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 19204 | |
8284b0c5 | 19205 | |
a0b9e27f | 19206 | cat > conftest.$ac_ext <<EOF |
6969f178 | 19207 | #line 19208 "configure" |
afc31813 | 19208 | #include "confdefs.h" |
51a9faba | 19209 | |
3a922bb4 RL |
19210 | #include <sys/types.h> |
19211 | #include <sys/socket.h> | |
a0b9e27f MB |
19212 | |
19213 | int main() { | |
51a9faba | 19214 | |
3a922bb4 RL |
19215 | socklen_t len; |
19216 | getsockname(0, 0, &len); | |
a0b9e27f MB |
19217 | |
19218 | ; return 0; } | |
19219 | EOF | |
6969f178 | 19220 | if { (eval echo configure:19221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19221 | rm -rf conftest* |
51a9faba | 19222 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 19223 | else |
a0b9e27f MB |
19224 | echo "configure: failed program was:" >&5 |
19225 | cat conftest.$ac_ext >&5 | |
19226 | rm -rf conftest* | |
19227 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 19228 | #line 19229 "configure" |
afc31813 | 19229 | #include "confdefs.h" |
51a9faba | 19230 | |
3a922bb4 RL |
19231 | #include <sys/types.h> |
19232 | #include <sys/socket.h> | |
a0b9e27f MB |
19233 | |
19234 | int main() { | |
51a9faba | 19235 | |
3a922bb4 RL |
19236 | size_t len; |
19237 | getsockname(0, 0, &len); | |
a0b9e27f MB |
19238 | |
19239 | ; return 0; } | |
19240 | EOF | |
6969f178 | 19241 | if { (eval echo configure:19242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19242 | rm -rf conftest* |
51a9faba | 19243 | wx_cv_type_getsockname3=size_t |
afc31813 | 19244 | else |
a0b9e27f MB |
19245 | echo "configure: failed program was:" >&5 |
19246 | cat conftest.$ac_ext >&5 | |
19247 | rm -rf conftest* | |
19248 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 19249 | #line 19250 "configure" |
afc31813 | 19250 | #include "confdefs.h" |
51a9faba | 19251 | |
3a922bb4 RL |
19252 | #include <sys/types.h> |
19253 | #include <sys/socket.h> | |
a0b9e27f MB |
19254 | |
19255 | int main() { | |
51a9faba | 19256 | |
3a922bb4 RL |
19257 | int len; |
19258 | getsockname(0, 0, &len); | |
a0b9e27f MB |
19259 | |
19260 | ; return 0; } | |
19261 | EOF | |
6969f178 | 19262 | if { (eval echo configure:19263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19263 | rm -rf conftest* |
51a9faba | 19264 | wx_cv_type_getsockname3=int |
afc31813 | 19265 | else |
a0b9e27f MB |
19266 | echo "configure: failed program was:" >&5 |
19267 | cat conftest.$ac_ext >&5 | |
19268 | rm -rf conftest* | |
19269 | wx_cv_type_getsockname3=unknown | |
19270 | ||
afc31813 | 19271 | fi |
a0b9e27f MB |
19272 | rm -f conftest* |
19273 | ||
afc31813 | 19274 | fi |
a0b9e27f MB |
19275 | rm -f conftest* |
19276 | ||
afc31813 | 19277 | fi |
a0b9e27f | 19278 | rm -f conftest* |
51a9faba | 19279 | |
3a922bb4 | 19280 | ac_ext=c |
a0b9e27f | 19281 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 19282 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
19283 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19284 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19285 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 19286 | |
a0b9e27f | 19287 | |
247f5006 | 19288 | fi |
a0b9e27f MB |
19289 | |
19290 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 19291 | |
3a922bb4 RL |
19292 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
19293 | wxUSE_SOCKETS=no | |
a0b9e27f | 19294 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
3a922bb4 | 19295 | else |
a0b9e27f | 19296 | cat >> confdefs.h <<EOF |
51a9faba | 19297 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
a0b9e27f | 19298 | EOF |
51a9faba | 19299 | |
3a922bb4 | 19300 | fi |
51a9faba VZ |
19301 | fi |
19302 | fi | |
afc31813 | 19303 | |
51a9faba | 19304 | if test "$wxUSE_SOCKETS" = "yes" ; then |
a0b9e27f | 19305 | cat >> confdefs.h <<\EOF |
afc31813 | 19306 | #define wxUSE_SOCKETS 1 |
a0b9e27f | 19307 | EOF |
afc31813 | 19308 | |
70f7a477 | 19309 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
19310 | fi |
19311 | ||
8284b0c5 | 19312 | |
dc3d889d VZ |
19313 | if test "$wxUSE_GUI" = "yes"; then |
19314 | ||
156b2523 | 19315 | if test "$TOOLKIT" = "MAC"; then |
a0b9e27f | 19316 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
19317 | wxUSE_JOYSTICK=no |
19318 | fi | |
19319 | if test "$TOOLKIT" = "MOTIF"; then | |
a0b9e27f | 19320 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 |
156b2523 | 19321 | wxUSE_JOYSTICK=no |
f79bd02d JS |
19322 | fi |
19323 | if test "$TOOLKIT" = "X11"; then | |
a0b9e27f | 19324 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 |
f79bd02d | 19325 | wxUSE_JOYSTICK=no |
156b2523 GD |
19326 | fi |
19327 | ||
3a922bb4 RL |
19328 | if test "$TOOLKIT" != "MSW"; then |
19329 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
a0b9e27f | 19330 | for ac_hdr in linux/joystick.h |
10f2d63a | 19331 | do |
a0b9e27f MB |
19332 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19333 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6969f178 | 19334 | echo "configure:19335: checking for $ac_hdr" >&5 |
a0b9e27f MB |
19335 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19336 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19337 | else | |
19338 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 19339 | #line 19340 "configure" |
247f5006 | 19340 | #include "confdefs.h" |
a0b9e27f MB |
19341 | #include <$ac_hdr> |
19342 | EOF | |
19343 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 19344 | { (eval echo configure:19345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
19345 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19346 | if test -z "$ac_err"; then | |
19347 | rm -rf conftest* | |
19348 | eval "ac_cv_header_$ac_safe=yes" | |
19349 | else | |
19350 | echo "$ac_err" >&5 | |
19351 | echo "configure: failed program was:" >&5 | |
247f5006 | 19352 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
19353 | rm -rf conftest* |
19354 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 19355 | fi |
a0b9e27f | 19356 | rm -f conftest* |
10f2d63a | 19357 | fi |
a0b9e27f MB |
19358 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19359 | echo "$ac_t""yes" 1>&6 | |
19360 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19361 | cat >> confdefs.h <<EOF | |
19362 | #define $ac_tr_hdr 1 | |
19363 | EOF | |
19364 | ||
19365 | else | |
19366 | echo "$ac_t""no" 1>&6 | |
247f5006 | 19367 | fi |
10f2d63a VZ |
19368 | done |
19369 | ||
3a922bb4 RL |
19370 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
19371 | wxUSE_JOYSTICK=no | |
a0b9e27f | 19372 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
19373 | fi |
19374 | fi | |
19375 | fi | |
b089607b | 19376 | |
3a922bb4 | 19377 | if test "$wxUSE_JOYSTICK" = "yes"; then |
a0b9e27f | 19378 | cat >> confdefs.h <<\EOF |
10f2d63a | 19379 | #define wxUSE_JOYSTICK 1 |
a0b9e27f | 19380 | EOF |
10f2d63a | 19381 | |
3a922bb4 RL |
19382 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
19383 | fi | |
dc3d889d VZ |
19384 | fi |
19385 | ||
8284b0c5 | 19386 | |
b089607b VZ |
19387 | if test "$TOOLKIT" != "MSW"; then |
19388 | ||
3a922bb4 RL |
19389 | HAVE_DL_FUNCS=0 |
19390 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 19391 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
19392 | if test "$USE_DARWIN" = 1; then |
19393 | HAVE_DL_FUNCS=1 | |
19394 | else | |
a0b9e27f | 19395 | for ac_func in dlopen |
10f2d63a | 19396 | do |
a0b9e27f | 19397 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 19398 | echo "configure:19399: checking for $ac_func" >&5 |
a0b9e27f MB |
19399 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19400 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19401 | else | |
19402 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 19403 | #line 19404 "configure" |
10f2d63a VZ |
19404 | #include "confdefs.h" |
19405 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19406 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19407 | #include <assert.h> |
19408 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19409 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19410 | builtin and then its argument prototype would still apply. */ |
19411 | char $ac_func(); | |
19412 | ||
19413 | int main() { | |
19414 | ||
10f2d63a VZ |
19415 | /* The GNU C library defines this for functions which it implements |
19416 | to always fail with ENOSYS. Some functions are actually named | |
19417 | something starting with __ and the normal name is an alias. */ | |
19418 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19419 | choke me | |
19420 | #else | |
a0b9e27f | 19421 | $ac_func(); |
10f2d63a VZ |
19422 | #endif |
19423 | ||
a0b9e27f MB |
19424 | ; return 0; } |
19425 | EOF | |
6969f178 | 19426 | if { (eval echo configure:19427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19427 | rm -rf conftest* |
19428 | eval "ac_cv_func_$ac_func=yes" | |
19429 | else | |
19430 | echo "configure: failed program was:" >&5 | |
19431 | cat conftest.$ac_ext >&5 | |
19432 | rm -rf conftest* | |
19433 | eval "ac_cv_func_$ac_func=no" | |
19434 | fi | |
19435 | rm -f conftest* | |
19436 | fi | |
19437 | ||
19438 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19439 | echo "$ac_t""yes" 1>&6 | |
19440 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19441 | cat >> confdefs.h <<EOF | |
19442 | #define $ac_tr_func 1 | |
19443 | EOF | |
19444 | ||
19445 | cat >> confdefs.h <<\EOF | |
10f2d63a | 19446 | #define HAVE_DLOPEN 1 |
a0b9e27f | 19447 | EOF |
10f2d63a | 19448 | |
3a922bb4 | 19449 | HAVE_DL_FUNCS=1 |
a0b9e27f | 19450 | |
10f2d63a | 19451 | else |
a0b9e27f MB |
19452 | echo "$ac_t""no" 1>&6 |
19453 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
6969f178 | 19454 | echo "configure:19455: checking for dlopen in -ldl" >&5 |
a0b9e27f MB |
19455 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
19456 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19457 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 19458 | else |
a0b9e27f | 19459 | ac_save_LIBS="$LIBS" |
10f2d63a | 19460 | LIBS="-ldl $LIBS" |
a0b9e27f | 19461 | cat > conftest.$ac_ext <<EOF |
6969f178 | 19462 | #line 19463 "configure" |
10f2d63a VZ |
19463 | #include "confdefs.h" |
19464 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19465 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19466 | builtin and then its argument prototype would still apply. */ |
19467 | char dlopen(); | |
19468 | ||
19469 | int main() { | |
19470 | dlopen() | |
19471 | ; return 0; } | |
19472 | EOF | |
6969f178 | 19473 | if { (eval echo configure:19474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19474 | rm -rf conftest* |
19475 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19476 | else | |
19477 | echo "configure: failed program was:" >&5 | |
19478 | cat conftest.$ac_ext >&5 | |
19479 | rm -rf conftest* | |
19480 | eval "ac_cv_lib_$ac_lib_var=no" | |
19481 | fi | |
19482 | rm -f conftest* | |
19483 | LIBS="$ac_save_LIBS" | |
19484 | ||
19485 | fi | |
19486 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19487 | echo "$ac_t""yes" 1>&6 | |
19488 | ||
19489 | cat >> confdefs.h <<\EOF | |
10f2d63a | 19490 | #define HAVE_DLOPEN 1 |
a0b9e27f | 19491 | EOF |
10f2d63a | 19492 | |
3a922bb4 | 19493 | HAVE_DL_FUNCS=1 |
3d63bc3a | 19494 | DL_LINK=" -ldl$DL_LINK" |
a0b9e27f | 19495 | |
10f2d63a | 19496 | else |
a0b9e27f | 19497 | echo "$ac_t""no" 1>&6 |
10f2d63a | 19498 | |
a0b9e27f | 19499 | for ac_func in shl_load |
10f2d63a | 19500 | do |
a0b9e27f | 19501 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 19502 | echo "configure:19503: checking for $ac_func" >&5 |
a0b9e27f MB |
19503 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19504 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19505 | else | |
19506 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 19507 | #line 19508 "configure" |
10f2d63a VZ |
19508 | #include "confdefs.h" |
19509 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19510 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19511 | #include <assert.h> |
19512 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19513 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19514 | builtin and then its argument prototype would still apply. */ |
19515 | char $ac_func(); | |
19516 | ||
19517 | int main() { | |
19518 | ||
10f2d63a VZ |
19519 | /* The GNU C library defines this for functions which it implements |
19520 | to always fail with ENOSYS. Some functions are actually named | |
19521 | something starting with __ and the normal name is an alias. */ | |
19522 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19523 | choke me | |
19524 | #else | |
a0b9e27f | 19525 | $ac_func(); |
10f2d63a VZ |
19526 | #endif |
19527 | ||
a0b9e27f MB |
19528 | ; return 0; } |
19529 | EOF | |
6969f178 | 19530 | if { (eval echo configure:19531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19531 | rm -rf conftest* |
19532 | eval "ac_cv_func_$ac_func=yes" | |
19533 | else | |
19534 | echo "configure: failed program was:" >&5 | |
19535 | cat conftest.$ac_ext >&5 | |
19536 | rm -rf conftest* | |
19537 | eval "ac_cv_func_$ac_func=no" | |
19538 | fi | |
19539 | rm -f conftest* | |
19540 | fi | |
19541 | ||
19542 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19543 | echo "$ac_t""yes" 1>&6 | |
19544 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19545 | cat >> confdefs.h <<EOF | |
19546 | #define $ac_tr_func 1 | |
19547 | EOF | |
19548 | ||
19549 | cat >> confdefs.h <<\EOF | |
10f2d63a | 19550 | #define HAVE_SHL_LOAD 1 |
a0b9e27f | 19551 | EOF |
10f2d63a | 19552 | |
3a922bb4 | 19553 | HAVE_SHL_FUNCS=1 |
a0b9e27f | 19554 | |
10f2d63a | 19555 | else |
a0b9e27f MB |
19556 | echo "$ac_t""no" 1>&6 |
19557 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
6969f178 | 19558 | echo "configure:19559: checking for dld in -lshl_load" >&5 |
a0b9e27f MB |
19559 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
19560 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19561 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19562 | else |
a0b9e27f | 19563 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19564 | LIBS="-lshl_load $LIBS" |
a0b9e27f | 19565 | cat > conftest.$ac_ext <<EOF |
6969f178 | 19566 | #line 19567 "configure" |
f6bcfd97 | 19567 | #include "confdefs.h" |
8284b0c5 | 19568 | /* Override any gcc2 internal prototype to avoid an error. */ |
f6bcfd97 | 19569 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
19570 | builtin and then its argument prototype would still apply. */ |
19571 | char dld(); | |
19572 | ||
19573 | int main() { | |
19574 | dld() | |
19575 | ; return 0; } | |
19576 | EOF | |
6969f178 | 19577 | if { (eval echo configure:19578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19578 | rm -rf conftest* |
19579 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19580 | else | |
19581 | echo "configure: failed program was:" >&5 | |
19582 | cat conftest.$ac_ext >&5 | |
19583 | rm -rf conftest* | |
19584 | eval "ac_cv_lib_$ac_lib_var=no" | |
19585 | fi | |
19586 | rm -f conftest* | |
19587 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 19588 | |
a0b9e27f MB |
19589 | fi |
19590 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19591 | echo "$ac_t""yes" 1>&6 | |
19592 | ||
3a922bb4 | 19593 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 19594 | DL_LINK=" -ldld$DL_LINK" |
a0b9e27f MB |
19595 | |
19596 | else | |
19597 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19598 | fi |
19599 | ||
a0b9e27f | 19600 | |
10f2d63a VZ |
19601 | fi |
19602 | done | |
19603 | ||
a0b9e27f | 19604 | |
10f2d63a VZ |
19605 | fi |
19606 | ||
a0b9e27f | 19607 | |
10f2d63a VZ |
19608 | fi |
19609 | done | |
19610 | ||
5c6fa7d2 | 19611 | |
8284b0c5 | 19612 | if test "$HAVE_DL_FUNCS" = 1; then |
a0b9e27f | 19613 | for ac_func in dlerror |
f6bcfd97 | 19614 | do |
a0b9e27f | 19615 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6969f178 | 19616 | echo "configure:19617: checking for $ac_func" >&5 |
a0b9e27f MB |
19617 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19618 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19619 | else | |
19620 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 19621 | #line 19622 "configure" |
f6bcfd97 BP |
19622 | #include "confdefs.h" |
19623 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19624 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
19625 | #include <assert.h> |
19626 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19627 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19628 | builtin and then its argument prototype would still apply. */ |
19629 | char $ac_func(); | |
19630 | ||
19631 | int main() { | |
19632 | ||
f6bcfd97 BP |
19633 | /* The GNU C library defines this for functions which it implements |
19634 | to always fail with ENOSYS. Some functions are actually named | |
19635 | something starting with __ and the normal name is an alias. */ | |
19636 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19637 | choke me | |
19638 | #else | |
a0b9e27f | 19639 | $ac_func(); |
f6bcfd97 BP |
19640 | #endif |
19641 | ||
a0b9e27f MB |
19642 | ; return 0; } |
19643 | EOF | |
6969f178 | 19644 | if { (eval echo configure:19645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19645 | rm -rf conftest* |
19646 | eval "ac_cv_func_$ac_func=yes" | |
19647 | else | |
19648 | echo "configure: failed program was:" >&5 | |
19649 | cat conftest.$ac_ext >&5 | |
19650 | rm -rf conftest* | |
19651 | eval "ac_cv_func_$ac_func=no" | |
19652 | fi | |
19653 | rm -f conftest* | |
19654 | fi | |
19655 | ||
19656 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19657 | echo "$ac_t""yes" 1>&6 | |
19658 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19659 | cat >> confdefs.h <<EOF | |
19660 | #define $ac_tr_func 1 | |
19661 | EOF | |
19662 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 19663 | #define HAVE_DLERROR 1 |
a0b9e27f | 19664 | EOF |
f6bcfd97 BP |
19665 | |
19666 | else | |
a0b9e27f MB |
19667 | echo "$ac_t""no" 1>&6 |
19668 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
6969f178 | 19669 | echo "configure:19670: checking for dlerror in -ldl" >&5 |
a0b9e27f MB |
19670 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
19671 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19672 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19673 | else |
a0b9e27f | 19674 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19675 | LIBS="-ldl $LIBS" |
a0b9e27f | 19676 | cat > conftest.$ac_ext <<EOF |
6969f178 | 19677 | #line 19678 "configure" |
f6bcfd97 BP |
19678 | #include "confdefs.h" |
19679 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19680 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19681 | builtin and then its argument prototype would still apply. */ |
19682 | char dlerror(); | |
19683 | ||
19684 | int main() { | |
19685 | dlerror() | |
19686 | ; return 0; } | |
19687 | EOF | |
6969f178 | 19688 | if { (eval echo configure:19689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19689 | rm -rf conftest* |
19690 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19691 | else | |
19692 | echo "configure: failed program was:" >&5 | |
19693 | cat conftest.$ac_ext >&5 | |
19694 | rm -rf conftest* | |
19695 | eval "ac_cv_lib_$ac_lib_var=no" | |
19696 | fi | |
19697 | rm -f conftest* | |
19698 | LIBS="$ac_save_LIBS" | |
19699 | ||
19700 | fi | |
19701 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19702 | echo "$ac_t""yes" 1>&6 | |
19703 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 19704 | #define HAVE_DLERROR 1 |
a0b9e27f | 19705 | EOF |
f6bcfd97 | 19706 | |
a0b9e27f MB |
19707 | else |
19708 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19709 | fi |
19710 | ||
19711 | fi | |
19712 | done | |
19713 | ||
3a922bb4 RL |
19714 | fi |
19715 | fi | |
f6bcfd97 | 19716 | |
3a922bb4 RL |
19717 | if test "$HAVE_DL_FUNCS" = 0; then |
19718 | if test "$HAVE_SHL_FUNCS" = 0; then | |
19719 | if test "$USE_UNIX" = 1; then | |
a0b9e27f | 19720 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
0b9ab0bd | 19721 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
19722 | wxUSE_DYNLIB_CLASS=no |
19723 | else | |
a0b9e27f | 19724 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
3a922bb4 RL |
19725 | fi |
19726 | fi | |
10f2d63a VZ |
19727 | fi |
19728 | fi | |
19729 | fi | |
19730 | ||
0b9ab0bd | 19731 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
a0b9e27f | 19732 | cat >> confdefs.h <<\EOF |
0b9ab0bd | 19733 | #define wxUSE_DYNAMIC_LOADER 1 |
a0b9e27f | 19734 | EOF |
0b9ab0bd RL |
19735 | |
19736 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
a0b9e27f | 19737 | cat >> confdefs.h <<\EOF |
10f2d63a | 19738 | #define wxUSE_DYNLIB_CLASS 1 |
a0b9e27f | 19739 | EOF |
10f2d63a VZ |
19740 | |
19741 | fi | |
19742 | ||
8284b0c5 | 19743 | |
1e6feb95 | 19744 | if test "$wxUSE_FONTMAP" = "yes" ; then |
a0b9e27f | 19745 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19746 | #define wxUSE_FONTMAP 1 |
a0b9e27f | 19747 | EOF |
1e6feb95 VZ |
19748 | |
19749 | fi | |
19750 | ||
10f2d63a | 19751 | if test "$wxUSE_UNICODE" = "yes" ; then |
a0b9e27f | 19752 | cat >> confdefs.h <<\EOF |
10f2d63a | 19753 | #define wxUSE_UNICODE 1 |
a0b9e27f | 19754 | EOF |
10f2d63a | 19755 | |
8284b0c5 | 19756 | |
bbc3925a VS |
19757 | if test "$wxUSE_MSW" != 1; then |
19758 | wxUSE_UNICODE_MSLU=no | |
19759 | fi | |
a72a4bfa VS |
19760 | |
19761 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
a0b9e27f | 19762 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 |
6969f178 | 19763 | echo "configure:19764: checking for main in -lunicows" >&5 |
a0b9e27f MB |
19764 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
19765 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19766 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a72a4bfa | 19767 | else |
a0b9e27f | 19768 | ac_save_LIBS="$LIBS" |
a72a4bfa | 19769 | LIBS="-lunicows $LIBS" |
a0b9e27f | 19770 | cat > conftest.$ac_ext <<EOF |
6969f178 | 19771 | #line 19772 "configure" |
a72a4bfa VS |
19772 | #include "confdefs.h" |
19773 | ||
a0b9e27f MB |
19774 | int main() { |
19775 | main() | |
19776 | ; return 0; } | |
19777 | EOF | |
6969f178 | 19778 | if { (eval echo configure:19779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19779 | rm -rf conftest* |
19780 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19781 | else | |
19782 | echo "configure: failed program was:" >&5 | |
19783 | cat conftest.$ac_ext >&5 | |
19784 | rm -rf conftest* | |
19785 | eval "ac_cv_lib_$ac_lib_var=no" | |
19786 | fi | |
19787 | rm -f conftest* | |
19788 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 19789 | |
a0b9e27f MB |
19790 | fi |
19791 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19792 | echo "$ac_t""yes" 1>&6 | |
19793 | ||
19794 | cat >> confdefs.h <<\EOF | |
a72a4bfa | 19795 | #define wxUSE_UNICODE_MSLU 1 |
a0b9e27f | 19796 | EOF |
a72a4bfa | 19797 | |
a0b9e27f | 19798 | |
a72a4bfa | 19799 | else |
a0b9e27f | 19800 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 19801 | |
a0b9e27f MB |
19802 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. |
19803 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
a72a4bfa | 19804 | wxUSE_UNICODE_MSLU=no |
a0b9e27f | 19805 | |
a72a4bfa VS |
19806 | fi |
19807 | ||
19808 | fi | |
10f2d63a VZ |
19809 | fi |
19810 | ||
10f2d63a | 19811 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
a0b9e27f | 19812 | cat >> confdefs.h <<\EOF |
10f2d63a | 19813 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
a0b9e27f | 19814 | EOF |
10f2d63a VZ |
19815 | |
19816 | fi | |
19817 | ||
8284b0c5 MB |
19818 | |
19819 | ||
10f2d63a VZ |
19820 | IODBC_C_SRC="" |
19821 | if test "$wxUSE_ODBC" = "yes" ; then | |
a0b9e27f | 19822 | cat >> confdefs.h <<\EOF |
10f2d63a | 19823 | #define wxUSE_ODBC 1 |
a0b9e27f | 19824 | EOF |
10f2d63a VZ |
19825 | |
19826 | WXODBCFLAG="-D_IODBC_" | |
19827 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
19828 | fi |
19829 | ||
8284b0c5 | 19830 | |
10f2d63a | 19831 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
a0b9e27f | 19832 | cat >> confdefs.h <<\EOF |
10f2d63a | 19833 | #define wxUSE_POSTSCRIPT 1 |
a0b9e27f | 19834 | EOF |
10f2d63a VZ |
19835 | |
19836 | fi | |
19837 | ||
a0b9e27f | 19838 | cat >> confdefs.h <<\EOF |
10f2d63a | 19839 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
a0b9e27f | 19840 | EOF |
10f2d63a | 19841 | |
8284b0c5 | 19842 | |
a0b9e27f | 19843 | cat >> confdefs.h <<\EOF |
10f2d63a | 19844 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
a0b9e27f | 19845 | EOF |
10f2d63a | 19846 | |
8284b0c5 MB |
19847 | |
19848 | ||
10f2d63a | 19849 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
a0b9e27f | 19850 | cat >> confdefs.h <<\EOF |
10f2d63a | 19851 | #define wxUSE_CONSTRAINTS 1 |
a0b9e27f | 19852 | EOF |
10f2d63a VZ |
19853 | |
19854 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
19855 | fi | |
19856 | ||
19857 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 19858 | |
8284b0c5 | 19859 | |
bb811f17 | 19860 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
a0b9e27f | 19861 | cat >> confdefs.h <<\EOF |
10f2d63a | 19862 | #define wxUSE_MDI_ARCHITECTURE 1 |
a0b9e27f | 19863 | EOF |
10f2d63a | 19864 | |
bb811f17 JS |
19865 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
19866 | fi | |
10f2d63a VZ |
19867 | fi |
19868 | ||
19869 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 19870 | cat >> confdefs.h <<\EOF |
10f2d63a | 19871 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
a0b9e27f | 19872 | EOF |
10f2d63a VZ |
19873 | |
19874 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
19875 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19876 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
19877 | fi | |
19878 | fi | |
19879 | ||
19880 | if test "$wxUSE_HELP" = "yes"; then | |
a0b9e27f | 19881 | cat >> confdefs.h <<\EOF |
10f2d63a | 19882 | #define wxUSE_HELP 1 |
a0b9e27f | 19883 | EOF |
10f2d63a VZ |
19884 | |
19885 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 19886 | |
77e13408 | 19887 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 19888 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
a0b9e27f | 19889 | cat >> confdefs.h <<\EOF |
29fd3c0c | 19890 | #define wxUSE_MS_HTML_HELP 1 |
a0b9e27f | 19891 | EOF |
29fd3c0c | 19892 | |
3e44f09d | 19893 | fi |
3379ed37 | 19894 | fi |
031d8228 VS |
19895 | |
19896 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
19897 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 19898 | cat >> confdefs.h <<\EOF |
031d8228 | 19899 | #define wxUSE_WXHTML_HELP 1 |
a0b9e27f | 19900 | EOF |
031d8228 VS |
19901 | |
19902 | else | |
a0b9e27f | 19903 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 |
031d8228 VS |
19904 | wxUSE_WXHTML_HELP=no |
19905 | fi | |
19906 | fi | |
10f2d63a VZ |
19907 | fi |
19908 | ||
19909 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
19910 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 19911 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 19912 | else |
a0b9e27f | 19913 | cat >> confdefs.h <<\EOF |
10f2d63a | 19914 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
a0b9e27f | 19915 | EOF |
10f2d63a VZ |
19916 | |
19917 | fi | |
19918 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
19919 | fi | |
19920 | ||
19921 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
a0b9e27f | 19922 | cat >> confdefs.h <<\EOF |
10f2d63a | 19923 | #define wxUSE_PROLOGIO 1 |
a0b9e27f | 19924 | EOF |
10f2d63a VZ |
19925 | |
19926 | fi | |
19927 | ||
19928 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea | 19929 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 19930 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 |
e334d0ea | 19931 | else |
a0b9e27f | 19932 | cat >> confdefs.h <<\EOF |
10f2d63a | 19933 | #define wxUSE_RESOURCES 1 |
a0b9e27f | 19934 | EOF |
10f2d63a | 19935 | |
e334d0ea JS |
19936 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
19937 | fi | |
10f2d63a VZ |
19938 | fi |
19939 | ||
19940 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
a0b9e27f | 19941 | cat >> confdefs.h <<\EOF |
10f2d63a | 19942 | #define wxUSE_X_RESOURCES 1 |
a0b9e27f | 19943 | EOF |
10f2d63a VZ |
19944 | |
19945 | fi | |
19946 | ||
8284b0c5 | 19947 | |
77e13408 RL |
19948 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
19949 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
19950 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
a0b9e27f | 19951 | for ac_hdr in ole2.h |
10f2d63a | 19952 | do |
a0b9e27f MB |
19953 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19954 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6969f178 | 19955 | echo "configure:19956: checking for $ac_hdr" >&5 |
a0b9e27f MB |
19956 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19957 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19958 | else | |
19959 | cat > conftest.$ac_ext <<EOF | |
6969f178 | 19960 | #line 19961 "configure" |
10f2d63a | 19961 | #include "confdefs.h" |
a0b9e27f MB |
19962 | #include <$ac_hdr> |
19963 | EOF | |
19964 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6969f178 | 19965 | { (eval echo configure:19966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
19966 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19967 | if test -z "$ac_err"; then | |
19968 | rm -rf conftest* | |
19969 | eval "ac_cv_header_$ac_safe=yes" | |
19970 | else | |
19971 | echo "$ac_err" >&5 | |
19972 | echo "configure: failed program was:" >&5 | |
10f2d63a | 19973 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
19974 | rm -rf conftest* |
19975 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 19976 | fi |
a0b9e27f | 19977 | rm -f conftest* |
10f2d63a | 19978 | fi |
a0b9e27f MB |
19979 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19980 | echo "$ac_t""yes" 1>&6 | |
19981 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19982 | cat >> confdefs.h <<EOF | |
19983 | #define $ac_tr_hdr 1 | |
19984 | EOF | |
19985 | ||
19986 | else | |
19987 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
19988 | fi |
19989 | done | |
19990 | ||
8284b0c5 | 19991 | |
2b9bdf71 VZ |
19992 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
19993 | if test "$GCC" = yes ; then | |
a0b9e27f MB |
19994 | |
19995 | ac_ext=C | |
19996 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8284b0c5 | 19997 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
19998 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19999 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20000 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 MB |
20001 | |
20002 | ||
a0b9e27f | 20003 | echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6 |
6969f178 | 20004 | echo "configure:20005: checking if g++ requires -fvtable-thunks" >&5 |
a0b9e27f | 20005 | cat > conftest.$ac_ext <<EOF |
6969f178 | 20006 | #line 20007 "configure" |
8284b0c5 MB |
20007 | #include "confdefs.h" |
20008 | #include <windows.h> | |
20009 | #include <ole2.h> | |
a0b9e27f | 20010 | int main() { |
8284b0c5 | 20011 | |
a0b9e27f MB |
20012 | ; return 0; } |
20013 | EOF | |
6969f178 | 20014 | if { (eval echo configure:20015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
20015 | rm -rf conftest* |
20016 | echo "$ac_t""no" 1>&6 | |
20017 | else | |
20018 | echo "configure: failed program was:" >&5 | |
20019 | cat conftest.$ac_ext >&5 | |
20020 | rm -rf conftest* | |
20021 | echo "$ac_t""yes" 1>&6 | |
8284b0c5 MB |
20022 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
20023 | fi | |
a0b9e27f | 20024 | rm -f conftest* |
8284b0c5 | 20025 | ac_ext=c |
a0b9e27f | 20026 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8284b0c5 | 20027 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20028 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20029 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20030 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20031 | |
2b9bdf71 | 20032 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 20033 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
a0b9e27f | 20034 | cat >> confdefs.h <<\EOF |
4f11a343 | 20035 | #define wxUSE_OLE 1 |
a0b9e27f | 20036 | EOF |
4f11a343 | 20037 | |
8284b0c5 | 20038 | |
2b9bdf71 VZ |
20039 | fi |
20040 | ||
a0b9e27f | 20041 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 20042 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 20043 | EOF |
2b9bdf71 VZ |
20044 | |
20045 | else | |
a0b9e27f | 20046 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 |
2b9bdf71 VZ |
20047 | |
20048 | wxUSE_CLIPBOARD=no | |
20049 | wxUSE_DRAG_AND_DROP=no | |
20050 | wxUSE_DATAOBJ=no | |
20051 | fi | |
20052 | ||
77e13408 | 20053 | if test "$wxUSE_METAFILE" = "yes"; then |
a0b9e27f | 20054 | cat >> confdefs.h <<\EOF |
b64f0a5f | 20055 | #define wxUSE_METAFILE 1 |
a0b9e27f | 20056 | EOF |
b64f0a5f | 20057 | |
8284b0c5 | 20058 | |
a0b9e27f | 20059 | cat >> confdefs.h <<\EOF |
b64f0a5f | 20060 | #define wxUSE_ENH_METAFILE 1 |
a0b9e27f | 20061 | EOF |
b64f0a5f | 20062 | |
2b9bdf71 VZ |
20063 | fi |
20064 | fi | |
20065 | ||
20066 | if test "$wxUSE_IPC" = "yes"; then | |
20067 | if test "$wxUSE_SOCKETS" != "yes"; then | |
a0b9e27f | 20068 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
20069 | fi |
20070 | ||
a0b9e27f | 20071 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 20072 | #define wxUSE_IPC 1 |
a0b9e27f | 20073 | EOF |
2b9bdf71 VZ |
20074 | |
20075 | fi | |
20076 | ||
20077 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 20078 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 20079 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
20080 | wxUSE_CLIPBOARD=no |
20081 | fi | |
20082 | ||
20083 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
a0b9e27f | 20084 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 20085 | #define wxUSE_CLIPBOARD 1 |
a0b9e27f | 20086 | EOF |
2b9bdf71 | 20087 | |
8284b0c5 | 20088 | |
a0b9e27f | 20089 | cat >> confdefs.h <<\EOF |
673f4220 | 20090 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 20091 | EOF |
673f4220 | 20092 | |
6c657b52 | 20093 | fi |
2b9bdf71 VZ |
20094 | fi |
20095 | ||
20096 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
20097 | if test "$wxUSE_GTK" = 1; then | |
20098 | if test "$WXGTK12" != 1; then | |
a0b9e27f | 20099 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
20100 | wxUSE_DRAG_AND_DROP=no |
20101 | fi | |
20102 | fi | |
20103 | ||
2b9bdf71 | 20104 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 20105 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
20106 | wxUSE_DRAG_AND_DROP=no |
20107 | fi | |
20108 | ||
f79bd02d | 20109 | if test "$wxUSE_X11" = 1; then |
a0b9e27f | 20110 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 |
f79bd02d JS |
20111 | wxUSE_DRAG_AND_DROP=no |
20112 | fi | |
20113 | ||
6c657b52 | 20114 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 20115 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
20116 | wxUSE_DRAG_AND_DROP=no |
20117 | fi | |
20118 | ||
10f2d63a | 20119 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
a0b9e27f | 20120 | cat >> confdefs.h <<\EOF |
10f2d63a | 20121 | #define wxUSE_DRAG_AND_DROP 1 |
a0b9e27f | 20122 | EOF |
10f2d63a VZ |
20123 | |
20124 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
20125 | fi | |
20126 | ||
20127 | fi | |
20128 | ||
20129 | if test "$wxUSE_SPLINES" = "yes" ; then | |
a0b9e27f | 20130 | cat >> confdefs.h <<\EOF |
10f2d63a | 20131 | #define wxUSE_SPLINES 1 |
a0b9e27f | 20132 | EOF |
10f2d63a VZ |
20133 | |
20134 | fi | |
20135 | ||
8284b0c5 | 20136 | |
1e6feb95 VZ |
20137 | USES_CONTROLS=0 |
20138 | if test "$wxUSE_CONTROLS" = "yes"; then | |
20139 | USES_CONTROLS=1 | |
20140 | fi | |
20141 | ||
10f2d63a | 20142 | if test "$wxUSE_ACCEL" = "yes"; then |
a0b9e27f | 20143 | cat >> confdefs.h <<\EOF |
10f2d63a | 20144 | #define wxUSE_ACCEL 1 |
a0b9e27f | 20145 | EOF |
10f2d63a | 20146 | |
1e6feb95 VZ |
20147 | USES_CONTROLS=1 |
20148 | fi | |
20149 | ||
20150 | if test "$wxUSE_BUTTON" = "yes"; then | |
a0b9e27f | 20151 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20152 | #define wxUSE_BUTTON 1 |
a0b9e27f | 20153 | EOF |
1e6feb95 VZ |
20154 | |
20155 | USES_CONTROLS=1 | |
20156 | fi | |
20157 | ||
20158 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
a0b9e27f | 20159 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20160 | #define wxUSE_BMPBUTTON 1 |
a0b9e27f | 20161 | EOF |
1e6feb95 VZ |
20162 | |
20163 | USES_CONTROLS=1 | |
20164 | fi | |
20165 | ||
20166 | if test "$wxUSE_CALCTRL" = "yes"; then | |
a0b9e27f | 20167 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20168 | #define wxUSE_CALENDARCTRL 1 |
a0b9e27f | 20169 | EOF |
1e6feb95 VZ |
20170 | |
20171 | USES_CONTROLS=1 | |
20172 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
20173 | fi |
20174 | ||
20175 | if test "$wxUSE_CARET" = "yes"; then | |
a0b9e27f | 20176 | cat >> confdefs.h <<\EOF |
10f2d63a | 20177 | #define wxUSE_CARET 1 |
a0b9e27f | 20178 | EOF |
10f2d63a | 20179 | |
1e6feb95 | 20180 | USES_CONTROLS=1 |
10f2d63a VZ |
20181 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
20182 | fi | |
20183 | ||
20184 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
a0b9e27f | 20185 | cat >> confdefs.h <<\EOF |
10f2d63a | 20186 | #define wxUSE_COMBOBOX 1 |
a0b9e27f | 20187 | EOF |
10f2d63a | 20188 | |
1e6feb95 | 20189 | USES_CONTROLS=1 |
10f2d63a VZ |
20190 | fi |
20191 | ||
20192 | if test "$wxUSE_CHOICE" = "yes"; then | |
a0b9e27f | 20193 | cat >> confdefs.h <<\EOF |
10f2d63a | 20194 | #define wxUSE_CHOICE 1 |
a0b9e27f | 20195 | EOF |
10f2d63a | 20196 | |
1e6feb95 | 20197 | USES_CONTROLS=1 |
10f2d63a VZ |
20198 | fi |
20199 | ||
20200 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
a0b9e27f | 20201 | cat >> confdefs.h <<\EOF |
10f2d63a | 20202 | #define wxUSE_CHECKBOX 1 |
a0b9e27f | 20203 | EOF |
10f2d63a | 20204 | |
1e6feb95 | 20205 | USES_CONTROLS=1 |
10f2d63a VZ |
20206 | fi |
20207 | ||
20208 | if test "$wxUSE_CHECKLST" = "yes"; then | |
a0b9e27f | 20209 | cat >> confdefs.h <<\EOF |
10f2d63a | 20210 | #define wxUSE_CHECKLISTBOX 1 |
a0b9e27f | 20211 | EOF |
10f2d63a | 20212 | |
1e6feb95 | 20213 | USES_CONTROLS=1 |
10f2d63a VZ |
20214 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
20215 | fi | |
20216 | ||
20217 | if test "$wxUSE_GAUGE" = "yes"; then | |
a0b9e27f | 20218 | cat >> confdefs.h <<\EOF |
10f2d63a | 20219 | #define wxUSE_GAUGE 1 |
a0b9e27f | 20220 | EOF |
10f2d63a | 20221 | |
1e6feb95 | 20222 | USES_CONTROLS=1 |
10f2d63a VZ |
20223 | fi |
20224 | ||
d6a55c4b VZ |
20225 | if test "$wxUSE_NEW_GRID" = "yes"; then |
20226 | wxUSE_GRID="yes" | |
a0b9e27f | 20227 | cat >> confdefs.h <<\EOF |
d6a55c4b | 20228 | #define wxUSE_NEW_GRID 1 |
a0b9e27f | 20229 | EOF |
10f2d63a | 20230 | |
1e6feb95 | 20231 | USES_CONTROLS=1 |
d6a55c4b | 20232 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
20233 | fi |
20234 | ||
d6a55c4b | 20235 | if test "$wxUSE_GRID" = "yes"; then |
a0b9e27f | 20236 | cat >> confdefs.h <<\EOF |
d6a55c4b | 20237 | #define wxUSE_GRID 1 |
a0b9e27f | 20238 | EOF |
10f2d63a | 20239 | |
1e6feb95 | 20240 | USES_CONTROLS=1 |
d6a55c4b | 20241 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
20242 | fi |
20243 | ||
20244 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 20245 | cat >> confdefs.h <<\EOF |
10f2d63a | 20246 | #define wxUSE_IMAGLIST 1 |
a0b9e27f | 20247 | EOF |
10f2d63a VZ |
20248 | |
20249 | fi | |
20250 | ||
20251 | if test "$wxUSE_LISTBOX" = "yes"; then | |
a0b9e27f | 20252 | cat >> confdefs.h <<\EOF |
10f2d63a | 20253 | #define wxUSE_LISTBOX 1 |
a0b9e27f | 20254 | EOF |
10f2d63a | 20255 | |
1e6feb95 | 20256 | USES_CONTROLS=1 |
10f2d63a VZ |
20257 | fi |
20258 | ||
20259 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
20260 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 20261 | cat >> confdefs.h <<\EOF |
10f2d63a | 20262 | #define wxUSE_LISTCTRL 1 |
a0b9e27f | 20263 | EOF |
10f2d63a | 20264 | |
1e6feb95 | 20265 | USES_CONTROLS=1 |
10f2d63a VZ |
20266 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
20267 | else | |
a0b9e27f | 20268 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20269 | fi |
20270 | fi | |
20271 | ||
20272 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
a0b9e27f | 20273 | cat >> confdefs.h <<\EOF |
10f2d63a | 20274 | #define wxUSE_NOTEBOOK 1 |
a0b9e27f | 20275 | EOF |
10f2d63a | 20276 | |
1e6feb95 | 20277 | USES_CONTROLS=1 |
10f2d63a VZ |
20278 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
20279 | fi | |
20280 | ||
24176f2c | 20281 | if test "$wxUSE_PROPSHEET" = "yes"; then |
a0b9e27f | 20282 | cat >> confdefs.h <<\EOF |
24176f2c | 20283 | #define wxUSE_PROPSHEET 1 |
a0b9e27f | 20284 | EOF |
24176f2c GD |
20285 | |
20286 | USES_CONTROLS=1 | |
20287 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
20288 | fi | |
20289 | ||
10f2d63a | 20290 | if test "$wxUSE_RADIOBOX" = "yes"; then |
a0b9e27f | 20291 | cat >> confdefs.h <<\EOF |
10f2d63a | 20292 | #define wxUSE_RADIOBOX 1 |
a0b9e27f | 20293 | EOF |
10f2d63a | 20294 | |
1e6feb95 | 20295 | USES_CONTROLS=1 |
10f2d63a VZ |
20296 | fi |
20297 | ||
20298 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
a0b9e27f | 20299 | cat >> confdefs.h <<\EOF |
10f2d63a | 20300 | #define wxUSE_RADIOBTN 1 |
a0b9e27f | 20301 | EOF |
10f2d63a | 20302 | |
1e6feb95 | 20303 | USES_CONTROLS=1 |
10f2d63a VZ |
20304 | fi |
20305 | ||
20306 | if test "$wxUSE_SASH" = "yes"; then | |
a0b9e27f | 20307 | cat >> confdefs.h <<\EOF |
10f2d63a | 20308 | #define wxUSE_SASH 1 |
a0b9e27f | 20309 | EOF |
10f2d63a VZ |
20310 | |
20311 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
20312 | fi | |
20313 | ||
20314 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
a0b9e27f | 20315 | cat >> confdefs.h <<\EOF |
10f2d63a | 20316 | #define wxUSE_SCROLLBAR 1 |
a0b9e27f | 20317 | EOF |
10f2d63a | 20318 | |
1e6feb95 | 20319 | USES_CONTROLS=1 |
741a9306 | 20320 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
20321 | fi |
20322 | ||
20323 | if test "$wxUSE_SLIDER" = "yes"; then | |
a0b9e27f | 20324 | cat >> confdefs.h <<\EOF |
10f2d63a | 20325 | #define wxUSE_SLIDER 1 |
a0b9e27f | 20326 | EOF |
10f2d63a | 20327 | |
1e6feb95 | 20328 | USES_CONTROLS=1 |
10f2d63a VZ |
20329 | fi |
20330 | ||
20331 | if test "$wxUSE_SPINBTN" = "yes"; then | |
a0b9e27f | 20332 | cat >> confdefs.h <<\EOF |
10f2d63a | 20333 | #define wxUSE_SPINBTN 1 |
a0b9e27f | 20334 | EOF |
10f2d63a | 20335 | |
1e6feb95 | 20336 | USES_CONTROLS=1 |
10f2d63a VZ |
20337 | fi |
20338 | ||
56cfaa52 | 20339 | if test "$wxUSE_SPINCTRL" = "yes"; then |
a0b9e27f | 20340 | cat >> confdefs.h <<\EOF |
56cfaa52 | 20341 | #define wxUSE_SPINCTRL 1 |
a0b9e27f | 20342 | EOF |
56cfaa52 | 20343 | |
1e6feb95 | 20344 | USES_CONTROLS=1 |
56cfaa52 RR |
20345 | fi |
20346 | ||
10f2d63a | 20347 | if test "$wxUSE_SPLITTER" = "yes"; then |
a0b9e27f | 20348 | cat >> confdefs.h <<\EOF |
10f2d63a | 20349 | #define wxUSE_SPLITTER 1 |
a0b9e27f | 20350 | EOF |
10f2d63a VZ |
20351 | |
20352 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
20353 | fi | |
20354 | ||
20355 | if test "$wxUSE_STATBMP" = "yes"; then | |
a0b9e27f | 20356 | cat >> confdefs.h <<\EOF |
10f2d63a | 20357 | #define wxUSE_STATBMP 1 |
a0b9e27f | 20358 | EOF |
10f2d63a | 20359 | |
1e6feb95 | 20360 | USES_CONTROLS=1 |
10f2d63a VZ |
20361 | fi |
20362 | ||
20363 | if test "$wxUSE_STATBOX" = "yes"; then | |
a0b9e27f | 20364 | cat >> confdefs.h <<\EOF |
10f2d63a | 20365 | #define wxUSE_STATBOX 1 |
a0b9e27f | 20366 | EOF |
10f2d63a | 20367 | |
1e6feb95 VZ |
20368 | USES_CONTROLS=1 |
20369 | fi | |
20370 | ||
20371 | if test "$wxUSE_STATTEXT" = "yes"; then | |
a0b9e27f | 20372 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20373 | #define wxUSE_STATTEXT 1 |
a0b9e27f | 20374 | EOF |
1e6feb95 VZ |
20375 | |
20376 | USES_CONTROLS=1 | |
10f2d63a VZ |
20377 | fi |
20378 | ||
20379 | if test "$wxUSE_STATLINE" = "yes"; then | |
20380 | if test "$wxUSE_WINE" = 1 ; then | |
a0b9e27f | 20381 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 20382 | else |
a0b9e27f | 20383 | cat >> confdefs.h <<\EOF |
10f2d63a | 20384 | #define wxUSE_STATLINE 1 |
a0b9e27f | 20385 | EOF |
10f2d63a | 20386 | |
1e6feb95 | 20387 | USES_CONTROLS=1 |
10f2d63a VZ |
20388 | fi |
20389 | fi | |
20390 | ||
20391 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
a0b9e27f | 20392 | cat >> confdefs.h <<\EOF |
10f2d63a | 20393 | #define wxUSE_STATUSBAR 1 |
a0b9e27f | 20394 | EOF |
10f2d63a | 20395 | |
1e6feb95 | 20396 | USES_CONTROLS=1 |
698dcdb6 | 20397 | |
2286341c | 20398 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
20399 | fi |
20400 | ||
20401 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
a0b9e27f | 20402 | cat >> confdefs.h <<\EOF |
10f2d63a | 20403 | #define wxUSE_TAB_DIALOG 1 |
a0b9e27f | 20404 | EOF |
10f2d63a VZ |
20405 | |
20406 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
20407 | fi | |
20408 | ||
1e6feb95 | 20409 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
a0b9e27f | 20410 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20411 | #define wxUSE_TEXTCTRL 1 |
a0b9e27f | 20412 | EOF |
1e6feb95 VZ |
20413 | |
20414 | USES_CONTROLS=1 | |
20415 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
20416 | fi | |
20417 | ||
1db8dc4a | 20418 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 | 20419 | if test "$wxUSE_MAC" = 1; then |
a0b9e27f | 20420 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
20421 | wxUSE_TOGGLEBTN=no |
20422 | fi | |
20423 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
a0b9e27f | 20424 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
20425 | wxUSE_TOGGLEBTN=no |
20426 | fi | |
20427 | ||
20428 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
a0b9e27f | 20429 | cat >> confdefs.h <<\EOF |
1db8dc4a | 20430 | #define wxUSE_TOGGLEBTN 1 |
a0b9e27f | 20431 | EOF |
1db8dc4a | 20432 | |
1e6feb95 | 20433 | USES_CONTROLS=1 |
a45d7ab7 | 20434 | fi |
1db8dc4a VZ |
20435 | fi |
20436 | ||
360d6699 | 20437 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
a0b9e27f | 20438 | cat >> confdefs.h <<\EOF |
360d6699 | 20439 | #define wxUSE_TOOLBAR_SIMPLE 1 |
a0b9e27f | 20440 | EOF |
360d6699 VZ |
20441 | |
20442 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 20443 | USES_CONTROLS=1 |
360d6699 VZ |
20444 | fi |
20445 | ||
10f2d63a | 20446 | if test "$wxUSE_TOOLBAR" = "yes"; then |
a0b9e27f | 20447 | cat >> confdefs.h <<\EOF |
10f2d63a | 20448 | #define wxUSE_TOOLBAR 1 |
a0b9e27f | 20449 | EOF |
10f2d63a | 20450 | |
1e6feb95 | 20451 | USES_CONTROLS=1 |
698dcdb6 | 20452 | |
360d6699 VZ |
20453 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
20454 | wxUSE_TOOLBAR_NATIVE="yes" | |
20455 | fi | |
20456 | ||
1e6feb95 | 20457 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
a0b9e27f | 20458 | cat >> confdefs.h <<\EOF |
360d6699 | 20459 | #define wxUSE_TOOLBAR_NATIVE 1 |
a0b9e27f | 20460 | EOF |
360d6699 | 20461 | |
1e6feb95 VZ |
20462 | USES_CONTROLS=1 |
20463 | fi | |
20464 | ||
20465 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
20466 | fi |
20467 | ||
10f2d63a VZ |
20468 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
20469 | if test "$wxUSE_MOTIF" = 1; then | |
a0b9e27f | 20470 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
20471 | else |
20472 | if test "$wxUSE_WINE" = 1; then | |
a0b9e27f | 20473 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 20474 | else |
69d27ff7 | 20475 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a0b9e27f | 20476 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 |
69d27ff7 | 20477 | else |
a0b9e27f | 20478 | cat >> confdefs.h <<\EOF |
10f2d63a | 20479 | #define wxUSE_TOOLTIPS 1 |
a0b9e27f | 20480 | EOF |
10f2d63a | 20481 | |
69d27ff7 | 20482 | fi |
10f2d63a VZ |
20483 | fi |
20484 | fi | |
20485 | fi | |
20486 | ||
20487 | if test "$wxUSE_TREECTRL" = "yes"; then | |
20488 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 20489 | cat >> confdefs.h <<\EOF |
10f2d63a | 20490 | #define wxUSE_TREECTRL 1 |
a0b9e27f | 20491 | EOF |
10f2d63a | 20492 | |
1e6feb95 | 20493 | USES_CONTROLS=1 |
10f2d63a VZ |
20494 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
20495 | else | |
a0b9e27f | 20496 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20497 | fi |
20498 | fi | |
20499 | ||
9f41d601 | 20500 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 20501 | if test "$wxUSE_MAC" = 1; then |
a0b9e27f | 20502 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 20503 | else |
485cf710 | 20504 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 20505 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 |
485cf710 | 20506 | else |
3c011993 | 20507 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 20508 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 20509 | else |
a0b9e27f | 20510 | cat >> confdefs.h <<\EOF |
9f41d601 | 20511 | #define wxUSE_POPUPWIN 1 |
a0b9e27f | 20512 | EOF |
9f41d601 | 20513 | |
8284b0c5 | 20514 | |
3c011993 VZ |
20515 | USES_CONTROLS=1 |
20516 | fi | |
485cf710 | 20517 | fi |
6abe4b65 | 20518 | fi |
9f41d601 RR |
20519 | fi |
20520 | ||
dd964dcc | 20521 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 20522 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 20523 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 20524 | else |
a0b9e27f | 20525 | cat >> confdefs.h <<\EOF |
dd964dcc | 20526 | #define wxUSE_TIPWINDOW 1 |
a0b9e27f | 20527 | EOF |
dd964dcc | 20528 | |
3c011993 | 20529 | fi |
dd964dcc VZ |
20530 | fi |
20531 | ||
1e6feb95 | 20532 | if test "$USES_CONTROLS" = 1; then |
a0b9e27f | 20533 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20534 | #define wxUSE_CONTROLS 1 |
a0b9e27f | 20535 | EOF |
10f2d63a | 20536 | |
10f2d63a VZ |
20537 | fi |
20538 | ||
8284b0c5 | 20539 | |
24176f2c | 20540 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
a0b9e27f | 20541 | cat >> confdefs.h <<\EOF |
24176f2c | 20542 | #define wxUSE_TREELAYOUT 1 |
a0b9e27f | 20543 | EOF |
24176f2c GD |
20544 | |
20545 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
20546 | fi | |
1e6feb95 | 20547 | |
24fd6d87 | 20548 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
a0b9e27f | 20549 | cat >> confdefs.h <<\EOF |
24fd6d87 | 20550 | #define wxUSE_DRAGIMAGE 1 |
a0b9e27f | 20551 | EOF |
24fd6d87 VZ |
20552 | |
20553 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
20554 | fi | |
20555 | ||
1e6feb95 | 20556 | if test "$wxUSE_MENUS" = "yes"; then |
a0b9e27f | 20557 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20558 | #define wxUSE_MENUS 1 |
a0b9e27f | 20559 | EOF |
10f2d63a | 20560 | |
1e6feb95 | 20561 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
20562 | fi |
20563 | ||
1e6feb95 | 20564 | if test "$wxUSE_METAFILE" = "yes"; then |
a0b9e27f | 20565 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20566 | #define wxUSE_METAFILE 1 |
a0b9e27f | 20567 | EOF |
10f2d63a | 20568 | |
10f2d63a VZ |
20569 | fi |
20570 | ||
1e6feb95 | 20571 | if test "$wxUSE_MIMETYPE" = "yes"; then |
a0b9e27f | 20572 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20573 | #define wxUSE_MIMETYPE 1 |
a0b9e27f | 20574 | EOF |
10f2d63a | 20575 | |
10f2d63a VZ |
20576 | fi |
20577 | ||
3e44f09d | 20578 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
a0b9e27f | 20579 | cat >> confdefs.h <<\EOF |
3e44f09d | 20580 | #define wxUSE_SYSTEM_OPTIONS 1 |
a0b9e27f | 20581 | EOF |
3e44f09d | 20582 | |
321d2b14 VZ |
20583 | if test "$TOOLKIT" = "MSW"; then |
20584 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
20585 | fi | |
20586 | ||
3e44f09d VZ |
20587 | fi |
20588 | ||
4cdb0ab0 | 20589 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca | 20590 | if test "$wxUSE_SOCKETS" != "yes"; then |
a0b9e27f | 20591 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 |
3954f9ca VS |
20592 | wxUSE_PROTOCOL=no |
20593 | fi | |
20594 | ||
20595 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
a0b9e27f | 20596 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 20597 | #define wxUSE_PROTOCOL 1 |
a0b9e27f | 20598 | EOF |
4cdb0ab0 | 20599 | |
8284b0c5 | 20600 | |
3954f9ca | 20601 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
a0b9e27f | 20602 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 20603 | #define wxUSE_PROTOCOL_HTTP 1 |
a0b9e27f | 20604 | EOF |
4cdb0ab0 | 20605 | |
3954f9ca VS |
20606 | fi |
20607 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
a0b9e27f | 20608 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 20609 | #define wxUSE_PROTOCOL_FTP 1 |
a0b9e27f | 20610 | EOF |
4cdb0ab0 | 20611 | |
3954f9ca VS |
20612 | fi |
20613 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
a0b9e27f | 20614 | cat >> confdefs.h <<\EOF |
3954f9ca | 20615 | #define wxUSE_PROTOCOL_FILE 1 |
a0b9e27f | 20616 | EOF |
3954f9ca VS |
20617 | |
20618 | fi | |
4cdb0ab0 | 20619 | fi |
3954f9ca VS |
20620 | fi |
20621 | ||
20622 | if test "$wxUSE_URL" = "yes"; then | |
20623 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
a0b9e27f | 20624 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 |
3954f9ca VS |
20625 | wxUSE_URL=no |
20626 | fi | |
20627 | if test "$wxUSE_URL" = "yes"; then | |
a0b9e27f | 20628 | cat >> confdefs.h <<\EOF |
3954f9ca | 20629 | #define wxUSE_URL 1 |
a0b9e27f | 20630 | EOF |
4cdb0ab0 VS |
20631 | |
20632 | fi | |
20633 | fi | |
20634 | ||
10f2d63a | 20635 | if test "$wxUSE_MINIFRAME" = "yes"; then |
a0b9e27f | 20636 | cat >> confdefs.h <<\EOF |
10f2d63a | 20637 | #define wxUSE_MINIFRAME 1 |
a0b9e27f | 20638 | EOF |
10f2d63a VZ |
20639 | |
20640 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
20641 | fi | |
20642 | ||
20643 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 20644 | cat >> confdefs.h <<\EOF |
10f2d63a | 20645 | #define wxUSE_HTML 1 |
a0b9e27f | 20646 | EOF |
10f2d63a VZ |
20647 | |
20648 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
20649 | fi |
20650 | ||
20651 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
a0b9e27f | 20652 | cat >> confdefs.h <<\EOF |
1e487827 | 20653 | #define wxUSE_VALIDATORS 1 |
a0b9e27f | 20654 | EOF |
703e0a69 | 20655 | |
698dcdb6 VZ |
20656 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
20657 | fi | |
20658 | ||
edae8572 | 20659 | if test "$wxUSE_PALETTE" = "yes" ; then |
a0b9e27f | 20660 | cat >> confdefs.h <<\EOF |
edae8572 | 20661 | #define wxUSE_PALETTE 1 |
a0b9e27f | 20662 | EOF |
edae8572 VZ |
20663 | |
20664 | fi | |
20665 | ||
698dcdb6 | 20666 | if test "$wxUSE_IMAGE" = "yes" ; then |
a0b9e27f | 20667 | cat >> confdefs.h <<\EOF |
698dcdb6 | 20668 | #define wxUSE_IMAGE 1 |
a0b9e27f | 20669 | EOF |
698dcdb6 VZ |
20670 | |
20671 | fi | |
20672 | ||
20673 | if test "$wxUSE_GIF" = "yes" ; then | |
a0b9e27f | 20674 | cat >> confdefs.h <<\EOF |
698dcdb6 | 20675 | #define wxUSE_GIF 1 |
a0b9e27f | 20676 | EOF |
698dcdb6 VZ |
20677 | |
20678 | fi | |
20679 | ||
20680 | if test "$wxUSE_PCX" = "yes" ; then | |
a0b9e27f | 20681 | cat >> confdefs.h <<\EOF |
698dcdb6 | 20682 | #define wxUSE_PCX 1 |
a0b9e27f | 20683 | EOF |
698dcdb6 VZ |
20684 | |
20685 | fi | |
20686 | ||
4b6b4dfc | 20687 | if test "$wxUSE_IFF" = "yes" ; then |
a0b9e27f | 20688 | cat >> confdefs.h <<\EOF |
4b6b4dfc | 20689 | #define wxUSE_IFF 1 |
a0b9e27f | 20690 | EOF |
4b6b4dfc RR |
20691 | |
20692 | fi | |
20693 | ||
698dcdb6 | 20694 | if test "$wxUSE_PNM" = "yes" ; then |
a0b9e27f | 20695 | cat >> confdefs.h <<\EOF |
698dcdb6 | 20696 | #define wxUSE_PNM 1 |
a0b9e27f | 20697 | EOF |
698dcdb6 VZ |
20698 | |
20699 | fi | |
20700 | ||
20701 | if test "$wxUSE_XPM" = "yes" ; then | |
a0b9e27f | 20702 | cat >> confdefs.h <<\EOF |
698dcdb6 | 20703 | #define wxUSE_XPM 1 |
a0b9e27f | 20704 | EOF |
698dcdb6 VZ |
20705 | |
20706 | fi | |
20707 | ||
658974ae | 20708 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
a0b9e27f | 20709 | cat >> confdefs.h <<\EOF |
658974ae | 20710 | #define wxUSE_ICO_CUR 1 |
a0b9e27f | 20711 | EOF |
658974ae VS |
20712 | |
20713 | fi | |
20714 | ||
a72a4bfa VS |
20715 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
20716 | LIBS=" -lunicows $LIBS" | |
20717 | fi | |
20718 | ||
8284b0c5 | 20719 | |
1e6feb95 | 20720 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
a0b9e27f | 20721 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20722 | #define wxUSE_CHOICEDLG 1 |
a0b9e27f | 20723 | EOF |
1e6feb95 VZ |
20724 | |
20725 | fi | |
20726 | ||
20727 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
a0b9e27f | 20728 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20729 | #define wxUSE_COLOURDLG 1 |
a0b9e27f | 20730 | EOF |
1e6feb95 VZ |
20731 | |
20732 | fi | |
20733 | ||
20734 | if test "$wxUSE_FILEDLG" = "yes"; then | |
a0b9e27f | 20735 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20736 | #define wxUSE_FILEDLG 1 |
a0b9e27f | 20737 | EOF |
1e6feb95 VZ |
20738 | |
20739 | fi | |
20740 | ||
8db37e06 | 20741 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
a0b9e27f | 20742 | cat >> confdefs.h <<\EOF |
8db37e06 | 20743 | #define wxUSE_FINDREPLDLG 1 |
a0b9e27f | 20744 | EOF |
8db37e06 VZ |
20745 | |
20746 | fi | |
20747 | ||
1e6feb95 | 20748 | if test "$wxUSE_FONTDLG" = "yes"; then |
a0b9e27f | 20749 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20750 | #define wxUSE_FONTDLG 1 |
a0b9e27f | 20751 | EOF |
1e6feb95 VZ |
20752 | |
20753 | fi | |
20754 | ||
20755 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 20756 | if test "$wxUSE_TREECTRL" != "yes"; then |
a0b9e27f | 20757 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 |
1e6feb95 | 20758 | else |
a0b9e27f | 20759 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20760 | #define wxUSE_DIRDLG 1 |
a0b9e27f | 20761 | EOF |
1e6feb95 | 20762 | |
1e6feb95 VZ |
20763 | fi |
20764 | fi | |
20765 | ||
20766 | if test "$wxUSE_MSGDLG" = "yes"; then | |
a0b9e27f | 20767 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20768 | #define wxUSE_MSGDLG 1 |
a0b9e27f | 20769 | EOF |
1e6feb95 VZ |
20770 | |
20771 | fi | |
20772 | ||
20773 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
a0b9e27f | 20774 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20775 | #define wxUSE_NUMBERDLG 1 |
a0b9e27f | 20776 | EOF |
1e6feb95 VZ |
20777 | |
20778 | fi | |
20779 | ||
20780 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
20781 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 20782 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 |
1e6feb95 | 20783 | else |
a0b9e27f | 20784 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20785 | #define wxUSE_PROGRESSDLG 1 |
a0b9e27f | 20786 | EOF |
1e6feb95 VZ |
20787 | |
20788 | fi | |
20789 | fi | |
20790 | ||
cbca9943 | 20791 | if test "$wxUSE_SPLASH" = "yes"; then |
a0b9e27f | 20792 | cat >> confdefs.h <<\EOF |
cbca9943 | 20793 | #define wxUSE_SPLASH 1 |
a0b9e27f | 20794 | EOF |
cbca9943 VZ |
20795 | |
20796 | fi | |
20797 | ||
1e6feb95 VZ |
20798 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
20799 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 20800 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 |
1e6feb95 | 20801 | else |
a0b9e27f | 20802 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20803 | #define wxUSE_STARTUP_TIPS 1 |
a0b9e27f | 20804 | EOF |
1e6feb95 | 20805 | |
7b4a847f RR |
20806 | fi |
20807 | fi | |
579d8138 | 20808 | |
8284b0c5 | 20809 | if test "$wxUSE_TEXTDLG" = "yes"; then |
a0b9e27f | 20810 | cat >> confdefs.h <<\EOF |
8284b0c5 | 20811 | #define wxUSE_TEXTDLG 1 |
a0b9e27f | 20812 | EOF |
8284b0c5 MB |
20813 | |
20814 | fi | |
20815 | ||
20816 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
a0b9e27f | 20817 | cat >> confdefs.h <<\EOF |
8284b0c5 | 20818 | #define wxUSE_WIZARDDLG 1 |
a0b9e27f | 20819 | EOF |
8284b0c5 MB |
20820 | |
20821 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
20822 | fi | |
20823 | ||
20824 | ||
20825 | if test "$cross_compiling" = "yes"; then | |
20826 | OSINFO="\"$host\"" | |
20827 | else | |
20828 | OSINFO=`uname -s -r -m` | |
20829 | OSINFO="\"$OSINFO\"" | |
20830 | fi | |
20831 | ||
a0b9e27f | 20832 | cat >> confdefs.h <<EOF |
8284b0c5 | 20833 | #define WXWIN_OS_DESCRIPTION $OSINFO |
a0b9e27f | 20834 | EOF |
8284b0c5 MB |
20835 | |
20836 | ||
20837 | ||
20838 | if test "x$prefix" != "xNONE"; then | |
20839 | wxPREFIX=$prefix | |
20840 | else | |
20841 | wxPREFIX=$ac_default_prefix | |
20842 | fi | |
20843 | ||
a0b9e27f | 20844 | cat >> confdefs.h <<EOF |
8284b0c5 | 20845 | #define wxINSTALL_PREFIX "$wxPREFIX" |
a0b9e27f | 20846 | EOF |
8284b0c5 MB |
20847 | |
20848 | ||
20849 | ||
20850 | ||
20851 | ||
20852 | if test "$wxUSE_MAC" = 1 ; then | |
20853 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
20854 | fi | |
20855 | ||
20856 | ||
20857 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS" | |
20858 | ||
20859 | if test "$wxUSE_GUI" = "yes"; then | |
20860 | ||
20861 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" | |
20862 | ||
a0b9e27f | 20863 | |
8284b0c5 MB |
20864 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
20865 | drawing dynamic erase event exec font image \ | |
20866 | minimal propsize rotate widgets" | |
20867 | ||
20868 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
20869 | else | |
20870 | SAMPLES_SUBDIRS="console" | |
20871 | fi | |
20872 | ||
20873 | ||
20874 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ | |
20875 | -I\${top_srcdir}/include \ | |
20876 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
20877 | $TOOLKIT_INCLUDE" | |
20878 | ||
20879 | if test "$wxUSE_GTK" = 1; then | |
20880 | WXCONFIG_INCLUDE= | |
20881 | else | |
20882 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
20883 | fi | |
20884 | ||
20885 | if test "$GXX" = yes ; then | |
20886 | CXXWARNINGS="-Wall" | |
a0b9e27f | 20887 | |
8284b0c5 MB |
20888 | if test "$wxUSE_NO_DEPS" = "no" ; then |
20889 | CFLAGS="-MMD $CFLAGS" | |
20890 | CXXFLAGS="-MMD $CXXFLAGS" | |
20891 | fi | |
20892 | fi | |
20893 | ||
20894 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
20895 | ||
20896 | CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
20897 | CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
20898 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
20899 | ||
20900 | LDFLAGS="$LDFLAGS $PROFILE" | |
20901 | ||
20902 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
20903 | ||
20904 | ||
20905 | ||
20906 | ||
20907 | ||
20908 | ||
20909 | ||
20910 | ||
20911 | ||
20912 | ||
20913 | ||
20914 | ||
20915 | ||
20916 | ||
20917 | ||
20918 | ||
20919 | ||
20920 | ||
20921 | ||
20922 | ||
20923 | ||
20924 | ||
20925 | ||
20926 | ||
20927 | ||
20928 | ||
20929 | ||
20930 | ||
20931 | ||
20932 | ||
20933 | ||
20934 | ||
20935 | ||
20936 | ||
20937 | ||
20938 | ||
20939 | ||
20940 | ||
20941 | ||
20942 | ||
20943 | ||
20944 | ||
20945 | ||
20946 | ||
20947 | ||
20948 | ||
20949 | ||
20950 | ||
20951 | ||
20952 | ||
20953 | ||
20954 | ||
20955 | ||
20956 | ||
20957 | ||
20958 | ||
20959 | ||
20960 | ||
20961 | ||
20962 | ||
20963 | ||
20964 | ||
20965 | ||
20966 | ||
20967 | ||
20968 | ||
20969 | ||
20970 | ||
2f51a9ec GD |
20971 | |
20972 | ||
20973 | ||
20974 | ||
f6bcfd97 | 20975 | |
dad6c0ea | 20976 | |
caa2c79b | 20977 | |
3711412e | 20978 | |
1e6feb95 VZ |
20979 | |
20980 | ||
885d4bf5 VS |
20981 | |
20982 | ||
20983 | ||
20984 | ||
9b695262 VZ |
20985 | |
20986 | ||
62d0491b | 20987 | |
ef7f2189 | 20988 | |
40f7145c | 20989 | |
3bd8fb5f | 20990 | |
10f2d63a VZ |
20991 | |
20992 | ||
a0b9e27f MB |
20993 | |
20994 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
6969f178 | 20995 | echo "configure:20996: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
a0b9e27f MB |
20996 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
20997 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
20998 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20999 | else |
a0b9e27f | 21000 | cat > conftestmake <<\EOF |
10f2d63a VZ |
21001 | all: |
21002 | @echo 'ac_maketemp="${MAKE}"' | |
a0b9e27f | 21003 | EOF |
10f2d63a | 21004 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
a0b9e27f | 21005 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
21006 | if test -n "$ac_maketemp"; then |
21007 | eval ac_cv_prog_make_${ac_make}_set=yes | |
21008 | else | |
21009 | eval ac_cv_prog_make_${ac_make}_set=no | |
21010 | fi | |
a0b9e27f | 21011 | rm -f conftestmake |
10f2d63a VZ |
21012 | fi |
21013 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
a0b9e27f | 21014 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
21015 | SET_MAKE= |
21016 | else | |
a0b9e27f | 21017 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
21018 | SET_MAKE="MAKE=${MAKE-make}" |
21019 | fi | |
21020 | ||
8284b0c5 | 21021 | |
3a922bb4 RL |
21022 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
21023 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 21024 | fi |
665bbe97 | 21025 | |
8284b0c5 | 21026 | |
10f2d63a | 21027 | |
57973b9c VZ |
21028 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
21029 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
21030 | wx_cv_path_ifs=$PATH_IFS | |
21031 | wx_cv_program_ext=$PROGRAM_EXT | |
21032 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
21033 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
21034 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
21035 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ | |
21036 | wx_cv_path_ifs wx_cv_program_ext \ | |
21037 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype | |
21038 | ||
a0b9e27f | 21039 | subdirs="demos samples utils contrib" |
8284b0c5 | 21040 | |
10f2d63a | 21041 | |
a0b9e27f MB |
21042 | trap '' 1 2 15 |
21043 | cat > confcache <<\EOF | |
10f2d63a VZ |
21044 | # This file is a shell script that caches the results of configure |
21045 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
21046 | # scripts and configure runs. It is not useful on other systems. |
21047 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 21048 | # |
a0b9e27f MB |
21049 | # By default, configure uses ./config.cache as the cache file, |
21050 | # creating it if it does not exist already. You can give configure | |
21051 | # the --cache-file=FILE option to use a different cache file; that is | |
21052 | # what configure does when it calls configure scripts in | |
21053 | # subdirectories, so they share the cache. | |
21054 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
21055 | # config.status only pays attention to the cache file if you give it the | |
21056 | # --recheck option to rerun configure. | |
10f2d63a | 21057 | # |
a0b9e27f | 21058 | EOF |
10f2d63a VZ |
21059 | # The following way of writing the cache mishandles newlines in values, |
21060 | # but we know of no workaround that is simple, portable, and efficient. | |
21061 | # So, don't put newlines in cache variables' values. | |
21062 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21063 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
21064 | (set) 2>&1 | |
21065 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
21066 | *ac_space=\ *) | |
21067 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
21068 | # turns \\\\ into \\, and sed turns \\ into \). | |
21069 | sed -n \ | |
21070 | -e "s/'/'\\\\''/g" \ | |
21071 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
21072 | ;; | |
21073 | *) | |
21074 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21075 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
21076 | ;; | |
21077 | esac >> confcache | |
21078 | if cmp -s $cache_file confcache; then | |
21079 | : | |
21080 | else | |
10f2d63a | 21081 | if test -w $cache_file; then |
a0b9e27f MB |
21082 | echo "updating cache $cache_file" |
21083 | cat confcache > $cache_file | |
10f2d63a VZ |
21084 | else |
21085 | echo "not updating unwritable cache $cache_file" | |
21086 | fi | |
21087 | fi | |
21088 | rm -f confcache | |
21089 | ||
a0b9e27f MB |
21090 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
21091 | ||
10f2d63a VZ |
21092 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
21093 | # Let make expand exec_prefix. | |
21094 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
21095 | ||
a0b9e27f MB |
21096 | # Any assignment to VPATH causes Sun make to only execute |
21097 | # the first set of double-colon rules, so remove it if not needed. | |
21098 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 21099 | if test "x$srcdir" = x.; then |
a0b9e27f | 21100 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
21101 | fi |
21102 | ||
a0b9e27f | 21103 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
10f2d63a | 21104 | |
a0b9e27f | 21105 | DEFS=-DHAVE_CONFIG_H |
8284b0c5 | 21106 | |
a0b9e27f | 21107 | # Without the "./", some shells look in PATH for config.status. |
247f5006 | 21108 | : ${CONFIG_STATUS=./config.status} |
52127426 | 21109 | |
a0b9e27f MB |
21110 | echo creating $CONFIG_STATUS |
21111 | rm -f $CONFIG_STATUS | |
21112 | cat > $CONFIG_STATUS <<EOF | |
21113 | #! /bin/sh | |
21114 | # Generated automatically by configure. | |
21115 | # Run this file to recreate the current configuration. | |
21116 | # This directory was configured as follows, | |
21117 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
247f5006 | 21118 | # |
a0b9e27f | 21119 | # $0 $ac_configure_args |
247f5006 | 21120 | # |
a0b9e27f MB |
21121 | # Compiler output produced by configure, useful for debugging |
21122 | # configure, is in ./config.log if it exists. | |
247f5006 | 21123 | |
a0b9e27f MB |
21124 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
21125 | for ac_option | |
247f5006 | 21126 | do |
a0b9e27f MB |
21127 | case "\$ac_option" in |
21128 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
21129 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
21130 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
21131 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
21132 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
21133 | exit 0 ;; | |
21134 | -help | --help | --hel | --he | --h) | |
21135 | echo "\$ac_cs_usage"; exit 0 ;; | |
21136 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
247f5006 VZ |
21137 | esac |
21138 | done | |
21139 | ||
a0b9e27f MB |
21140 | ac_given_srcdir=$srcdir |
21141 | ac_given_INSTALL="$INSTALL" | |
247f5006 | 21142 | |
a0b9e27f MB |
21143 | trap 'rm -fr `echo " |
21144 | wx-config | |
21145 | src/make.env | |
21146 | src/makeprog.env | |
21147 | src/makelib.env | |
21148 | Makefile | |
21149 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
21150 | EOF | |
21151 | cat >> $CONFIG_STATUS <<EOF | |
247f5006 | 21152 | |
a0b9e27f MB |
21153 | # Protect against being on the right side of a sed subst in config.status. |
21154 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
21155 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
21156 | $ac_vpsub | |
21157 | $extrasub | |
21158 | s%@SHELL@%$SHELL%g | |
21159 | s%@CFLAGS@%$CFLAGS%g | |
21160 | s%@CPPFLAGS@%$CPPFLAGS%g | |
21161 | s%@CXXFLAGS@%$CXXFLAGS%g | |
21162 | s%@FFLAGS@%$FFLAGS%g | |
21163 | s%@DEFS@%$DEFS%g | |
21164 | s%@LDFLAGS@%$LDFLAGS%g | |
21165 | s%@LIBS@%$LIBS%g | |
21166 | s%@exec_prefix@%$exec_prefix%g | |
21167 | s%@prefix@%$prefix%g | |
21168 | s%@program_transform_name@%$program_transform_name%g | |
21169 | s%@bindir@%$bindir%g | |
21170 | s%@sbindir@%$sbindir%g | |
21171 | s%@libexecdir@%$libexecdir%g | |
21172 | s%@datadir@%$datadir%g | |
21173 | s%@sysconfdir@%$sysconfdir%g | |
21174 | s%@sharedstatedir@%$sharedstatedir%g | |
21175 | s%@localstatedir@%$localstatedir%g | |
21176 | s%@libdir@%$libdir%g | |
21177 | s%@includedir@%$includedir%g | |
21178 | s%@oldincludedir@%$oldincludedir%g | |
21179 | s%@infodir@%$infodir%g | |
21180 | s%@mandir@%$mandir%g | |
21181 | s%@host@%$host%g | |
21182 | s%@host_alias@%$host_alias%g | |
21183 | s%@host_cpu@%$host_cpu%g | |
21184 | s%@host_vendor@%$host_vendor%g | |
21185 | s%@host_os@%$host_os%g | |
21186 | s%@target@%$target%g | |
21187 | s%@target_alias@%$target_alias%g | |
21188 | s%@target_cpu@%$target_cpu%g | |
21189 | s%@target_vendor@%$target_vendor%g | |
21190 | s%@target_os@%$target_os%g | |
21191 | s%@build@%$build%g | |
21192 | s%@build_alias@%$build_alias%g | |
21193 | s%@build_cpu@%$build_cpu%g | |
21194 | s%@build_vendor@%$build_vendor%g | |
21195 | s%@build_os@%$build_os%g | |
21196 | s%@CC@%$CC%g | |
21197 | s%@CPP@%$CPP%g | |
21198 | s%@CXX@%$CXX%g | |
21199 | s%@RANLIB@%$RANLIB%g | |
21200 | s%@AR@%$AR%g | |
21201 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
21202 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
21203 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
21204 | s%@STRIP@%$STRIP%g | |
21205 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g | |
21206 | s%@YACC@%$YACC%g | |
21207 | s%@LEX@%$LEX%g | |
21208 | s%@LEXLIB@%$LEXLIB%g | |
21209 | s%@LN_S@%$LN_S%g | |
21210 | s%@CXXCPP@%$CXXCPP%g | |
21211 | s%@PKG_CONFIG@%$PKG_CONFIG%g | |
21212 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
21213 | s%@GTK_LIBS@%$GTK_LIBS%g | |
21214 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
21215 | s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g | |
21216 | s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g | |
21217 | s%@X_CFLAGS@%$X_CFLAGS%g | |
21218 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
21219 | s%@X_LIBS@%$X_LIBS%g | |
21220 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
21221 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g | |
21222 | s%@RESCOMP@%$RESCOMP%g | |
21223 | s%@DEREZ@%$DEREZ%g | |
21224 | s%@LIBICONV@%$LIBICONV%g | |
21225 | s%@LEX_STEM@%$LEX_STEM%g | |
21226 | s%@PATH_IFS@%$PATH_IFS%g | |
21227 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
21228 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
21229 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
21230 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
21231 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
21232 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g | |
21233 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
21234 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
21235 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
21236 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
21237 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
21238 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
21239 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
21240 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
21241 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
21242 | s%@WX_ALL@%$WX_ALL%g | |
21243 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
21244 | s%@SHARED_LD@%$SHARED_LD%g | |
21245 | s%@PIC_FLAG@%$PIC_FLAG%g | |
21246 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
21247 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
21248 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g | |
21249 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
21250 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
21251 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
21252 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
21253 | s%@USE_GUI@%$USE_GUI%g | |
21254 | s%@AFMINSTALL@%$AFMINSTALL%g | |
21255 | s%@TOOLKIT@%$TOOLKIT%g | |
21256 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
21257 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g | |
21258 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g | |
21259 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
21260 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g | |
21261 | s%@cross_compiling@%$cross_compiling%g | |
21262 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
21263 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
21264 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g | |
21265 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
21266 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
21267 | s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g | |
21268 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
21269 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
21270 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
21271 | s%@GUIDIST@%$GUIDIST%g | |
21272 | s%@PORT_FILES@%$PORT_FILES%g | |
21273 | s%@DISTDIR@%$DISTDIR%g | |
21274 | s%@COMMON_THREADCPPFLAGS@%$COMMON_THREADCPPFLAGS%g | |
21275 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
21276 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g | |
21277 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g | |
21278 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
21279 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g | |
21280 | s%@EXTRADEFS@%$EXTRADEFS%g | |
21281 | s%@RESFLAGS@%$RESFLAGS%g | |
21282 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g | |
21283 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g | |
21284 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
21285 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g | |
21286 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
21287 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
21288 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g | |
21289 | s%@DLLTOOL@%$DLLTOOL%g | |
21290 | s%@AS@%$AS%g | |
21291 | s%@NM@%$NM%g | |
21292 | s%@LD@%$LD%g | |
21293 | s%@MAKEINFO@%$MAKEINFO%g | |
21294 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g | |
21295 | s%@SET_MAKE@%$SET_MAKE%g | |
21296 | s%@subdirs@%$subdirs%g | |
247f5006 | 21297 | |
247f5006 | 21298 | CEOF |
a0b9e27f | 21299 | EOF |
247f5006 | 21300 | |
a0b9e27f MB |
21301 | cat >> $CONFIG_STATUS <<\EOF |
21302 | ||
21303 | # Split the substitutions into bite-sized pieces for seds with | |
21304 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
21305 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
21306 | ac_file=1 # Number of current file. | |
21307 | ac_beg=1 # First line for current file. | |
21308 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
21309 | ac_more_lines=: | |
21310 | ac_sed_cmds="" | |
21311 | while $ac_more_lines; do | |
21312 | if test $ac_beg -gt 1; then | |
21313 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
21314 | else | |
21315 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
21316 | fi | |
21317 | if test ! -s conftest.s$ac_file; then | |
21318 | ac_more_lines=false | |
21319 | rm -f conftest.s$ac_file | |
21320 | else | |
21321 | if test -z "$ac_sed_cmds"; then | |
21322 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
247f5006 | 21323 | else |
a0b9e27f | 21324 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
247f5006 | 21325 | fi |
a0b9e27f MB |
21326 | ac_file=`expr $ac_file + 1` |
21327 | ac_beg=$ac_end | |
21328 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 21329 | fi |
a0b9e27f MB |
21330 | done |
21331 | if test -z "$ac_sed_cmds"; then | |
21332 | ac_sed_cmds=cat | |
21333 | fi | |
21334 | EOF | |
10f2d63a | 21335 | |
a0b9e27f | 21336 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 21337 | |
a0b9e27f MB |
21338 | CONFIG_FILES=\${CONFIG_FILES-"wx-config |
21339 | src/make.env | |
21340 | src/makeprog.env | |
21341 | src/makelib.env | |
21342 | Makefile | |
21343 | "} | |
21344 | EOF | |
21345 | cat >> $CONFIG_STATUS <<\EOF | |
21346 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
21347 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
21348 | case "$ac_file" in | |
21349 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21350 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21351 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a | 21352 | esac |
247f5006 | 21353 | |
a0b9e27f | 21354 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
247f5006 | 21355 | |
a0b9e27f MB |
21356 | # Remove last slash and all that follows it. Not all systems have dirname. |
21357 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
21358 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
21359 | # The file is in a subdirectory. | |
21360 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
21361 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
21362 | # A "../" for each directory in $ac_dir_suffix. | |
21363 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
21364 | else | |
21365 | ac_dir_suffix= ac_dots= | |
21366 | fi | |
247f5006 | 21367 | |
a0b9e27f MB |
21368 | case "$ac_given_srcdir" in |
21369 | .) srcdir=. | |
21370 | if test -z "$ac_dots"; then top_srcdir=. | |
21371 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
21372 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
247f5006 | 21373 | *) # Relative path. |
a0b9e27f MB |
21374 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
21375 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8284b0c5 | 21376 | esac |
10f2d63a | 21377 | |
a0b9e27f MB |
21378 | case "$ac_given_INSTALL" in |
21379 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21380 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
21381 | esac | |
247f5006 | 21382 | |
a0b9e27f MB |
21383 | echo creating "$ac_file" |
21384 | rm -f "$ac_file" | |
21385 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
21386 | case "$ac_file" in | |
21387 | *Makefile*) ac_comsub="1i\\ | |
21388 | # $configure_input" ;; | |
21389 | *) ac_comsub= ;; | |
21390 | esac | |
247f5006 | 21391 | |
a0b9e27f MB |
21392 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
21393 | sed -e "$ac_comsub | |
21394 | s%@configure_input@%$configure_input%g | |
21395 | s%@srcdir@%$srcdir%g | |
21396 | s%@top_srcdir@%$top_srcdir%g | |
21397 | s%@INSTALL@%$INSTALL%g | |
21398 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
21399 | fi; done | |
21400 | rm -f conftest.s* | |
10f2d63a VZ |
21401 | |
21402 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
21403 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
21404 | # | |
21405 | # ac_d sets the value in "#define NAME VALUE" lines. | |
a0b9e27f MB |
21406 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
21407 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
21408 | ac_dC='\3' | |
21409 | ac_dD='%g' | |
21410 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
21411 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21412 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 21413 | ac_uC=' ' |
a0b9e27f MB |
21414 | ac_uD='\4%g' |
21415 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
21416 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21417 | ac_eB='$%\1#\2define\3' | |
21418 | ac_eC=' ' | |
21419 | ac_eD='%g' | |
21420 | ||
21421 | if test "${CONFIG_HEADERS+set}" != set; then | |
21422 | EOF | |
21423 | cat >> $CONFIG_STATUS <<EOF | |
21424 | CONFIG_HEADERS="setup.h:setup.h.in" | |
21425 | EOF | |
21426 | cat >> $CONFIG_STATUS <<\EOF | |
21427 | fi | |
21428 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 21429 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
a0b9e27f MB |
21430 | case "$ac_file" in |
21431 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21432 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21433 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
21434 | esac |
21435 | ||
a0b9e27f MB |
21436 | echo creating $ac_file |
21437 | ||
21438 | rm -f conftest.frag conftest.in conftest.out | |
21439 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
21440 | cat $ac_file_inputs > conftest.in | |
21441 | ||
21442 | EOF | |
21443 | ||
21444 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
21445 | # the proper values into config.h.in to produce config.h. And first: | |
21446 | # Protect against being on the right side of a sed subst in config.status. | |
21447 | # Protect against being in an unquoted here document in config.status. | |
21448 | rm -f conftest.vals | |
21449 | cat > conftest.hdr <<\EOF | |
21450 | s/[\\&%]/\\&/g | |
21451 | s%[\\$`]%\\&%g | |
21452 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
21453 | s%ac_d%ac_u%gp | |
21454 | s%ac_u%ac_e%gp | |
21455 | EOF | |
21456 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
21457 | rm -f conftest.hdr | |
10f2d63a VZ |
21458 | |
21459 | # This sed command replaces #undef with comments. This is necessary, for | |
21460 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
21461 | # on some systems where configure will not decide to define it. | |
a0b9e27f MB |
21462 | cat >> conftest.vals <<\EOF |
21463 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
21464 | EOF | |
21465 | ||
21466 | # Break up conftest.vals because some shells have a limit on | |
21467 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
21468 | |
21469 | rm -f conftest.tail | |
a0b9e27f | 21470 | while : |
10f2d63a | 21471 | do |
a0b9e27f MB |
21472 | ac_lines=`grep -c . conftest.vals` |
21473 | # grep -c gives empty output for an empty file on some AIX systems. | |
21474 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
21475 | # Write a limited-size here document to conftest.frag. | |
21476 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
21477 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 21478 | echo 'CEOF |
a0b9e27f MB |
21479 | sed -f conftest.frag conftest.in > conftest.out |
21480 | rm -f conftest.in | |
21481 | mv conftest.out conftest.in | |
21482 | ' >> $CONFIG_STATUS | |
21483 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
21484 | rm -f conftest.vals | |
21485 | mv conftest.tail conftest.vals | |
10f2d63a | 21486 | done |
a0b9e27f MB |
21487 | rm -f conftest.vals |
21488 | ||
21489 | cat >> $CONFIG_STATUS <<\EOF | |
21490 | rm -f conftest.frag conftest.h | |
21491 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
21492 | cat conftest.in >> conftest.h | |
21493 | rm -f conftest.in | |
21494 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
21495 | echo "$ac_file is unchanged" | |
21496 | rm -f conftest.h | |
10f2d63a | 21497 | else |
a0b9e27f MB |
21498 | # Remove last slash and all that follows it. Not all systems have dirname. |
21499 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
21500 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
21501 | # The file is in a subdirectory. | |
21502 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
247f5006 | 21503 | fi |
a0b9e27f MB |
21504 | rm -f $ac_file |
21505 | mv conftest.h $ac_file | |
247f5006 | 21506 | fi |
a0b9e27f MB |
21507 | fi; done |
21508 | ||
21509 | EOF | |
21510 | cat >> $CONFIG_STATUS <<EOF | |
21511 | ||
21512 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
21513 | LN_S="${LN_S}" | |
21514 | ||
21515 | ||
21516 | EOF | |
21517 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 21518 | |
652d930d | 21519 | if test ! -h wx-config; then |
991a5759 | 21520 | chmod +x wx-config |
3a922bb4 RL |
21521 | mv wx-config wx${TOOLCHAIN_NAME}-config |
21522 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 21523 | fi |
665bbe97 | 21524 | |
00cf1208 RR |
21525 | if test ! -d lib; then |
21526 | mkdir lib | |
21527 | fi | |
21528 | if test ! -d lib/wx; then | |
21529 | mkdir lib/wx | |
21530 | fi | |
21531 | if test ! -d lib/wx/include; then | |
21532 | mkdir lib/wx/include | |
21533 | fi | |
3a922bb4 RL |
21534 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
21535 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 21536 | fi |
3a922bb4 RL |
21537 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
21538 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
21539 | fi |
21540 | if test -f setup.h; then | |
3a922bb4 | 21541 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 21542 | fi |
a0b9e27f MB |
21543 | |
21544 | exit 0 | |
21545 | EOF | |
10f2d63a | 21546 | chmod +x $CONFIG_STATUS |
a0b9e27f MB |
21547 | rm -fr confdefs* $ac_clean_files |
21548 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 21549 | |
2224580a VZ |
21550 | if test "$no_recursion" != yes; then |
21551 | ||
21552 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
21553 | ac_sub_configure_args= | |
21554 | ac_prev= | |
21555 | for ac_arg in $ac_configure_args; do | |
21556 | if test -n "$ac_prev"; then | |
21557 | ac_prev= | |
21558 | continue | |
21559 | fi | |
a0b9e27f | 21560 | case "$ac_arg" in |
2224580a VZ |
21561 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
21562 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
21563 | ac_prev=cache_file ;; | |
21564 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
a0b9e27f | 21565 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
21566 | ;; |
21567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
21568 | ac_prev=srcdir ;; | |
21569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
21570 | ;; | |
21571 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
21572 | esac | |
21573 | done | |
21574 | ||
a0b9e27f | 21575 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
21576 | |
21577 | # Do not complain, so a configure script can configure whichever | |
21578 | # parts of a large source tree are present. | |
a0b9e27f MB |
21579 | if test ! -d $srcdir/$ac_config_dir; then |
21580 | continue | |
21581 | fi | |
2224580a | 21582 | |
a0b9e27f | 21583 | echo configuring in $ac_config_dir |
2224580a | 21584 | |
a0b9e27f MB |
21585 | case "$srcdir" in |
21586 | .) ;; | |
21587 | *) | |
21588 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
21589 | else | |
21590 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
21591 | fi | |
21592 | ;; | |
21593 | esac | |
2224580a | 21594 | |
a0b9e27f MB |
21595 | ac_popdir=`pwd` |
21596 | cd $ac_config_dir | |
247f5006 | 21597 | |
a0b9e27f MB |
21598 | # A "../" for each directory in /$ac_config_dir. |
21599 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
247f5006 | 21600 | |
a0b9e27f MB |
21601 | case "$srcdir" in |
21602 | .) # No --srcdir option. We are building in place. | |
21603 | ac_sub_srcdir=$srcdir ;; | |
21604 | /*) # Absolute path. | |
21605 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
21606 | *) # Relative path. | |
21607 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
21608 | esac | |
2224580a VZ |
21609 | |
21610 | # Check for guested configure; otherwise get Cygnus style configure. | |
a0b9e27f MB |
21611 | if test -f $ac_sub_srcdir/configure; then |
21612 | ac_sub_configure=$ac_sub_srcdir/configure | |
21613 | elif test -f $ac_sub_srcdir/configure.in; then | |
2224580a VZ |
21614 | ac_sub_configure=$ac_configure |
21615 | else | |
a0b9e27f | 21616 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
21617 | ac_sub_configure= |
21618 | fi | |
21619 | ||
21620 | # The recursion is here. | |
21621 | if test -n "$ac_sub_configure"; then | |
a0b9e27f | 21622 | |
2224580a | 21623 | # Make the cache file name correct relative to the subdirectory. |
a0b9e27f MB |
21624 | case "$cache_file" in |
21625 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 21626 | *) # Relative path. |
a0b9e27f | 21627 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 21628 | esac |
a0b9e27f MB |
21629 | case "$ac_given_INSTALL" in |
21630 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21631 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
21632 | esac | |
2224580a | 21633 | |
a0b9e27f | 21634 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 21635 | # The eval makes quoting arguments work. |
a0b9e27f MB |
21636 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
21637 | then : | |
21638 | else | |
21639 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
21640 | fi | |
2224580a VZ |
21641 | fi |
21642 | ||
21643 | cd $ac_popdir | |
21644 | done | |
21645 | fi | |
21646 | ||
8284b0c5 | 21647 |