]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
52127426 JS |
3 | # From configure.in Id: configure.in |
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
579d8138 | 37 | |
579d8138 VS |
38 | |
39 | ||
40 | ||
41 | ||
42 | ||
43 | ||
44 | ||
45 | ||
579d8138 VS |
46 | |
47 | ||
48 | ||
579d8138 | 49 | |
52127426 JS |
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. | |
52127426 JS |
459 | build=NONE |
460 | cache_file=./config.cache | |
10f2d63a | 461 | exec_prefix=NONE |
52127426 | 462 | host=NONE |
10f2d63a | 463 | no_create= |
52127426 | 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= | |
52127426 | 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 | ||
52127426 JS |
490 | # Initialize some other variables. |
491 | subdirs= | |
492 | MFLAGS= MAKEFLAGS= | |
493 | SHELL=${CONFIG_SHELL-/bin/sh} | |
494 | # Maximum number of lines to put in a shell here document. | |
495 | ac_max_here_lines=12 | |
10f2d63a VZ |
496 | |
497 | ac_prev= | |
498 | for ac_option | |
499 | do | |
52127426 | 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 | ||
52127426 JS |
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 | ||
52127426 | 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=*) | |
52127426 | 520 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
521 | |
522 | -build | --build | --buil | --bui | --bu) | |
52127426 | 523 | ac_prev=build ;; |
10f2d63a | 524 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
52127426 | 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=*) | |
52127426 | 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=*) | |
52127426 | 538 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
539 | |
540 | -disable-* | --disable-*) | |
52127426 | 541 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 542 | # Reject names that are not valid shell variable names. |
52127426 JS |
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-*) | |
52127426 | 550 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 551 | # Reject names that are not valid shell variable names. |
52127426 JS |
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 | |
52127426 | 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=*) | |
52127426 | 569 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
570 | |
571 | -gas | --gas | --ga | --g) | |
572 | # Obsolete; use --with-gas. | |
573 | with_gas=yes ;; | |
574 | ||
52127426 JS |
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) | |
52127426 | 631 | ac_prev=host ;; |
10f2d63a | 632 | -host=* | --host=* | --hos=* | --ho=*) |
52127426 | 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=*) | |
52127426 | 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=*) | |
52127426 | 645 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
646 | |
647 | -libdir | --libdir | --libdi | --libd) | |
648 | ac_prev=libdir ;; | |
649 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
52127426 | 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=*) | |
52127426 | 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=*) | |
52127426 | 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=*) | |
52127426 | 671 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
672 | |
673 | -nfp | --nfp | --nf) | |
674 | # Obsolete; use --without-fp. | |
675 | with_fp=no ;; | |
676 | ||
677 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
678 | | --no-cr | --no-c) | |
679 | no_create=yes ;; | |
680 | ||
681 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
682 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
683 | no_recursion=yes ;; | |
684 | ||
685 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
686 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
687 | | --oldin | --oldi | --old | --ol | --o) | |
688 | ac_prev=oldincludedir ;; | |
689 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
690 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
691 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
52127426 | 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=*) | |
52127426 | 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=*) | |
52127426 | 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=*) | |
52127426 | 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=*) | |
52127426 | 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=*) | |
52127426 | 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=*) | |
52127426 | 749 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
750 | |
751 | -site | --site | --sit) | |
752 | ac_prev=site ;; | |
753 | -site=* | --site=* | --sit=*) | |
52127426 | 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=*) | |
52127426 | 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=*) | |
52127426 | 766 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
767 | |
768 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
52127426 | 769 | ac_prev=target ;; |
10f2d63a | 770 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
52127426 | 771 | target="$ac_optarg" ;; |
10f2d63a VZ |
772 | |
773 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
774 | verbose=yes ;; | |
775 | ||
52127426 JS |
776 | -version | --version | --versio | --versi | --vers) |
777 | echo "configure generated by autoconf version 2.13" | |
778 | exit 0 ;; | |
10f2d63a VZ |
779 | |
780 | -with-* | --with-*) | |
52127426 | 781 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 782 | # Reject names that are not valid shell variable names. |
52127426 JS |
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'` |
52127426 JS |
787 | case "$ac_option" in |
788 | *=*) ;; | |
10f2d63a VZ |
789 | *) ac_optarg=yes ;; |
790 | esac | |
52127426 | 791 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
792 | |
793 | -without-* | --without-*) | |
52127426 | 794 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 795 | # Reject names that are not valid shell variable names. |
52127426 JS |
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=*) | |
52127426 | 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=*) | |
52127426 | 818 | x_libraries="$ac_optarg" ;; |
10f2d63a | 819 | |
52127426 | 820 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
821 | ;; |
822 | ||
823 | *) | |
52127426 JS |
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 | |
52127426 | 837 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
579d8138 | 838 | fi |
579d8138 | 839 | |
52127426 | 840 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
579d8138 | 841 | |
52127426 JS |
842 | # File descriptor usage: |
843 | # 0 standard input | |
844 | # 1 file creation | |
845 | # 2 errors and warnings | |
846 | # 3 some systems may open it to /dev/tty | |
847 | # 4 used on the Kubota Titan | |
848 | # 6 checking for... messages and results | |
849 | # 5 compiler messages saved in config.log | |
850 | if test "$silent" = yes; then | |
851 | exec 6>/dev/null | |
852 | else | |
853 | exec 6>&1 | |
854 | fi | |
855 | exec 5>./config.log | |
856 | ||
857 | echo "\ | |
858 | This file contains any messages produced by compilers while | |
859 | running configure, to aid debugging if configure makes a mistake. | |
860 | " 1>&5 | |
861 | ||
862 | # Strip out --no-create and --no-recursion so they do not pile up. | |
863 | # Also quote any args containing shell metacharacters. | |
864 | ac_configure_args= | |
865 | for ac_arg | |
10f2d63a | 866 | do |
52127426 JS |
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 | ||
52127426 JS |
878 | # NLS nuisances. |
879 | # Only set these to C if already set. These must not be set unconditionally | |
880 | # because not all systems understand e.g. LANG=C (notably SCO). | |
881 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
882 | # Non-C LC_CTYPE values break the ctype check. | |
883 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
884 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
885 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
886 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 887 | |
52127426 JS |
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 | |
52127426 JS |
893 | # A filename unique to this package, relative to the directory that |
894 | # configure is in, which we can look for to find out if srcdir is correct. | |
895 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
896 | |
897 | # Find the source files, if location was not specified. | |
898 | if test -z "$srcdir"; then | |
899 | ac_srcdir_defaulted=yes | |
900 | # Try the directory containing this script, then its parent. | |
901 | ac_prog=$0 | |
52127426 | 902 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
903 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
904 | srcdir=$ac_confdir | |
905 | if test ! -r $srcdir/$ac_unique_file; then | |
906 | srcdir=.. | |
907 | fi | |
908 | else | |
909 | ac_srcdir_defaulted=no | |
910 | fi | |
911 | if test ! -r $srcdir/$ac_unique_file; then | |
912 | if test "$ac_srcdir_defaulted" = yes; then | |
52127426 | 913 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 914 | else |
52127426 | 915 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
916 | fi |
917 | fi | |
52127426 | 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 | |
52127426 | 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 | |
52127426 JS |
936 | echo "loading cache $cache_file" |
937 | . $cache_file | |
10f2d63a | 938 | else |
52127426 JS |
939 | echo "creating cache $cache_file" |
940 | > $cache_file | |
10f2d63a VZ |
941 | fi |
942 | ||
943 | ac_ext=c | |
52127426 | 944 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 945 | ac_cpp='$CPP $CPPFLAGS' |
52127426 JS |
946 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
947 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
948 | cross_compiling=$ac_cv_prog_cc_cross | |
949 | ||
950 | ac_exeext= | |
951 | ac_objext=o | |
952 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
953 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
954 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
955 | ac_n= ac_c=' | |
956 | ' ac_t=' ' | |
957 | else | |
958 | ac_n=-n ac_c= ac_t= | |
959 | fi | |
10f2d63a | 960 | else |
52127426 | 961 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 962 | fi |
52127426 JS |
963 | |
964 | ||
10f2d63a | 965 | |
7c66a493 VZ |
966 | ac_aux_dir= |
967 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
968 | if test -f $ac_dir/install-sh; then | |
969 | ac_aux_dir=$ac_dir | |
970 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
971 | break | |
972 | elif test -f $ac_dir/install.sh; then | |
973 | ac_aux_dir=$ac_dir | |
974 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
975 | break | |
976 | fi | |
977 | done | |
978 | if test -z "$ac_aux_dir"; then | |
52127426 | 979 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 980 | fi |
52127426 JS |
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 | |
52127426 JS |
985 | |
986 | # Do some error checking and defaulting for the host and target type. | |
987 | # The inputs are: | |
988 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
989 | # | |
990 | # The rules are: | |
991 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
992 | # same time. | |
993 | # 2. Host defaults to nonopt. | |
994 | # 3. If nonopt is not specified, then host defaults to the current host, | |
995 | # as determined by config.guess. | |
996 | # 4. Target and build default to nonopt. | |
997 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
998 | |
999 | # The aliases save the names the user supplied, while $host etc. | |
1000 | # will get canonicalized. | |
52127426 JS |
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}- | |
52127426 JS |
1073 | |
1074 | ||
698dcdb6 | 1075 | |
10f2d63a | 1076 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1077 | WX_MINOR_VERSION_NUMBER=3 |
a0d927d1 | 1078 | WX_RELEASE_NUMBER=3 |
10f2d63a | 1079 | |
10f2d63a | 1080 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1081 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1082 | |
978f1259 RL |
1083 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1084 | ||
a0d927d1 | 1085 | WX_CURRENT=2 |
6426998c RL |
1086 | WX_REVISION=0 |
1087 | WX_AGE=0 | |
1088 | ||
52127426 JS |
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 |
52127426 | 1150 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1151 | #define __HPUX__ 1 |
1152 | EOF | |
1153 | ||
1154 | ;; | |
1155 | *-*-linux* ) | |
1156 | USE_LINUX=1 | |
52127426 | 1157 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1158 | #define __LINUX__ 1 |
1159 | EOF | |
1160 | ||
1161 | TMP=`uname -m` | |
1162 | if test "x$TMP" = "xalpha"; then | |
1163 | USE_ALPHA=1 | |
52127426 | 1164 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1165 | #define __ALPHA__ 1 |
1166 | EOF | |
1167 | ||
1168 | fi | |
1169 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1170 | ;; | |
1171 | *-*-irix5* | *-*-irix6* ) | |
1172 | USE_SGI=1 | |
1173 | USE_SVR4=1 | |
52127426 | 1174 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1175 | #define __SGI__ 1 |
1176 | EOF | |
1177 | ||
52127426 | 1178 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1179 | #define __SVR4__ 1 |
1180 | EOF | |
1181 | ||
1182 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1183 | ;; | |
1184 | *-*-solaris2* ) | |
1185 | USE_SUN=1 | |
1186 | USE_SOLARIS=1 | |
1187 | USE_SVR4=1 | |
52127426 | 1188 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1189 | #define __SUN__ 1 |
1190 | EOF | |
1191 | ||
52127426 | 1192 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1193 | #define __SOLARIS__ 1 |
1194 | EOF | |
1195 | ||
52127426 | 1196 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1197 | #define __SVR4__ 1 |
1198 | EOF | |
1199 | ||
1200 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1201 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1202 | ;; |
1203 | *-*-sunos4* ) | |
1204 | USE_SUN=1 | |
1205 | USE_SUNOS=1 | |
1206 | USE_BSD=1 | |
52127426 | 1207 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1208 | #define __SUN__ 1 |
1209 | EOF | |
1210 | ||
52127426 | 1211 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1212 | #define __SUNOS__ 1 |
1213 | EOF | |
1214 | ||
52127426 | 1215 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1216 | #define __BSD__ 1 |
1217 | EOF | |
1218 | ||
1219 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1220 | ;; | |
f6bcfd97 | 1221 | *-*-freebsd*) |
10f2d63a VZ |
1222 | USE_BSD=1 |
1223 | USE_FREEBSD=1 | |
52127426 | 1224 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1225 | #define __FREEBSD__ 1 |
1226 | EOF | |
1227 | ||
52127426 | 1228 | cat >> confdefs.h <<\EOF |
10f2d63a | 1229 | #define __BSD__ 1 |
95c8801c VS |
1230 | EOF |
1231 | ||
1232 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1233 | ;; | |
1234 | *-*-openbsd*) | |
1235 | USE_BSD=1 | |
1236 | USE_OPENBSD=1 | |
52127426 | 1237 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1238 | #define __FREEBSD__ 1 |
1239 | EOF | |
1240 | ||
52127426 | 1241 | cat >> confdefs.h <<\EOF |
95c8801c | 1242 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1243 | EOF |
1244 | ||
1245 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1246 | ;; | |
1247 | *-*-netbsd*) | |
1248 | USE_BSD=1 | |
1249 | USE_NETBSD=1 | |
52127426 | 1250 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1251 | #define __FREEBSD__ 1 |
1252 | EOF | |
1253 | ||
52127426 | 1254 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1255 | #define __NETBSD__ 1 |
10f2d63a VZ |
1256 | EOF |
1257 | ||
1258 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1259 | ;; | |
1260 | *-*-osf* ) | |
1261 | USE_ALPHA=1 | |
1262 | USE_OSF=1 | |
52127426 | 1263 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1264 | #define __ALPHA__ 1 |
1265 | EOF | |
1266 | ||
52127426 | 1267 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1268 | #define __OSF__ 1 |
1269 | EOF | |
1270 | ||
1271 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1272 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1273 | ;; |
1274 | *-*-dgux5* ) | |
1275 | USE_ALPHA=1 | |
1276 | USE_SVR4=1 | |
52127426 | 1277 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1278 | #define __ALPHA__ 1 |
1279 | EOF | |
1280 | ||
52127426 | 1281 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1282 | #define __SVR4__ 1 |
1283 | EOF | |
1284 | ||
1285 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1286 | ;; | |
1287 | *-*-sysv5* ) | |
1288 | USE_SYSV=1 | |
1289 | USE_SVR4=1 | |
52127426 | 1290 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1291 | #define __SYSV__ 1 |
1292 | EOF | |
1293 | ||
52127426 | 1294 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1295 | #define __SVR4__ 1 |
1296 | EOF | |
1297 | ||
1298 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1299 | ;; | |
1300 | *-*-aix* ) | |
1301 | USE_AIX=1 | |
1302 | USE_SYSV=1 | |
1303 | USE_SVR4=1 | |
321d2b14 | 1304 | SO_SUFFIX=a |
52127426 | 1305 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1306 | #define __AIX__ 1 |
1307 | EOF | |
1308 | ||
52127426 | 1309 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1310 | #define __SYSV__ 1 |
1311 | EOF | |
1312 | ||
52127426 | 1313 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1314 | #define __SVR4__ 1 |
1315 | EOF | |
1316 | ||
1317 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1318 | ;; | |
1319 | ||
1c8183e2 | 1320 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1321 | SO_SUFFIX=dll |
cf27ef00 | 1322 | PROGRAM_EXT=".exe" |
7b7a7637 | 1323 | RESCOMP=windres |
10f2d63a VZ |
1324 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1325 | ;; | |
1326 | ||
f9bc1684 VS |
1327 | *-pc-msdosdjgpp ) |
1328 | USE_UNIX=0 | |
1329 | USE_DOS=1 | |
52127426 | 1330 | cat >> confdefs.h <<\EOF |
f9bc1684 VS |
1331 | #define __DOS__ 1 |
1332 | EOF | |
1333 | ||
1334 | PROGRAM_EXT=".exe" | |
1335 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1336 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1337 | ;; |
1338 | ||
6fa882bd | 1339 | *-pc-os2_emx | *-pc-os2-emx ) |
52127426 | 1340 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1341 | #define __EMX__ 1 |
1342 | EOF | |
1343 | ||
cf27ef00 | 1344 | PROGRAM_EXT=".exe" |
e07802fc | 1345 | DEFAULT_DEFAULT_wxUSE_PM=1 |
d558c907 | 1346 | LIBS="$LIBS -lstdcpp" |
10f2d63a VZ |
1347 | ;; |
1348 | ||
d08b457b GD |
1349 | powerpc-*-darwin* ) |
1350 | USE_BSD=1 | |
f11bdd03 | 1351 | USE_DARWIN=1 |
3a922bb4 | 1352 | SO_SUFFIX=dylib |
52127426 | 1353 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1354 | #define __BSD__ 1 |
b4085ce6 GD |
1355 | EOF |
1356 | ||
52127426 | 1357 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1358 | #define __DARWIN__ 1 |
d08b457b GD |
1359 | EOF |
1360 | ||
52127426 | 1361 | cat >> confdefs.h <<\EOF |
d08b457b | 1362 | #define __POWERPC__ 1 |
b4085ce6 GD |
1363 | EOF |
1364 | ||
1365 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1366 | ;; | |
1367 | ||
b12915c1 VZ |
1368 | *-*-beos* ) |
1369 | USE_BEOS=1 | |
52127426 | 1370 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1371 | #define __BEOS__ 1 |
1372 | EOF | |
1373 | ||
1374 | ;; | |
1375 | ||
10f2d63a | 1376 | *) |
52127426 | 1377 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1378 | esac |
1379 | ||
52127426 JS |
1380 | |
1381 | ||
1382 | ||
1383 | wx_arg_cache_file="configarg.cache" | |
1384 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1385 | rm -f ${wx_arg_cache_file}.tmp |
1386 | touch ${wx_arg_cache_file}.tmp | |
1387 | touch ${wx_arg_cache_file} | |
52127426 | 1388 | |
10f2d63a VZ |
1389 | |
1390 | DEBUG_CONFIGURE=0 | |
1391 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1392 | DEFAULT_wxUSE_UNIVERSAL=no |
1393 | ||
d8356fa3 VZ |
1394 | DEFAULT_wxUSE_NANOX=no |
1395 | ||
10f2d63a VZ |
1396 | DEFAULT_wxUSE_THREADS=yes |
1397 | ||
1398 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1399 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1400 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1401 | DEFAULT_wxUSE_PROFILE=no |
1402 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1403 | DEFAULT_wxUSE_NO_RTTI=no |
1404 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1405 | DEFAULT_wxUSE_PERMISSIVE=no |
1406 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1407 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1408 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1409 | DEFAULT_wxUSE_MEM_TRACING=no | |
1410 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1411 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1412 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1413 | DEFAULT_wxUSE_APPLE_IEEE=no |
1414 | ||
1415 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1416 | DEFAULT_wxUSE_LOGWINDOW=no |
1417 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1418 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1419 | |
1420 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1421 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1422 | |
3e44f09d | 1423 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1424 | DEFAULT_wxUSE_ZLIB=no |
1425 | DEFAULT_wxUSE_LIBPNG=no | |
1426 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1427 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1428 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1429 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1430 | |
eb4efbdc | 1431 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1432 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1433 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1434 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1435 | DEFAULT_wxUSE_DATETIME=no | |
1436 | DEFAULT_wxUSE_TIMEDATE=no | |
1437 | DEFAULT_wxUSE_TIMER=no | |
1438 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1439 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1440 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1441 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1442 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1443 | DEFAULT_wxUSE_WAVE=no |
1444 | DEFAULT_wxUSE_INTL=no | |
1445 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1446 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1447 | DEFAULT_wxUSE_STREAMS=no |
1448 | DEFAULT_wxUSE_SOCKETS=no | |
1449 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
10f2d63a | 1450 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1451 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1452 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1453 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1454 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1455 | |
1456 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1457 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1458 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1459 | ||
1460 | DEFAULT_wxUSE_X_RESOURCES=no | |
1461 | DEFAULT_wxUSE_CLIPBOARD=no | |
1462 | DEFAULT_wxUSE_TOOLTIPS=no | |
1463 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1464 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1465 | DEFAULT_wxUSE_SPLINES=no |
1466 | ||
1467 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1468 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1469 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1470 | ||
1471 | DEFAULT_wxUSE_PROLOGIO=no | |
1472 | DEFAULT_wxUSE_RESOURCES=no | |
1473 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1474 | DEFAULT_wxUSE_IPC=no | |
1475 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1476 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1477 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1478 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1479 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1480 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1481 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1482 | DEFAULT_wxUSE_PROTOCOL=no | |
1483 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1484 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1485 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1486 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 1487 | |
10f2d63a | 1488 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1489 | DEFAULT_wxUSE_CHOICEDLG=no |
1490 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1491 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1492 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1493 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1494 | DEFAULT_wxUSE_FONTDLG=no |
1495 | DEFAULT_wxUSE_MSGDLG=no | |
1496 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1497 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1498 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1499 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1500 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1501 | DEFAULT_wxUSE_WIZARDDLG=no |
1502 | ||
1e6feb95 | 1503 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1504 | DEFAULT_wxUSE_MINIFRAME=no |
1505 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1506 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1507 | DEFAULT_wxUSE_FS_INET=no |
1508 | DEFAULT_wxUSE_FS_ZIP=no | |
1509 | DEFAULT_wxUSE_BUSYINFO=no | |
1510 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1511 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1512 | |
1513 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1514 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1515 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1516 | DEFAULT_wxUSE_CALCTRL=no |
1517 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1518 | DEFAULT_wxUSE_CHECKBOX=no |
1519 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1520 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1521 | DEFAULT_wxUSE_COMBOBOX=no |
1522 | DEFAULT_wxUSE_GAUGE=no | |
1523 | DEFAULT_wxUSE_GRID=no | |
1524 | DEFAULT_wxUSE_NEW_GRID=no | |
1525 | DEFAULT_wxUSE_IMAGLIST=no | |
1526 | DEFAULT_wxUSE_LISTBOX=no | |
1527 | DEFAULT_wxUSE_LISTCTRL=no | |
1528 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1529 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1530 | DEFAULT_wxUSE_RADIOBOX=no |
1531 | DEFAULT_wxUSE_RADIOBTN=no | |
1532 | DEFAULT_wxUSE_SASH=no | |
1533 | DEFAULT_wxUSE_SCROLLBAR=no | |
1534 | DEFAULT_wxUSE_SLIDER=no | |
1535 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1536 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1537 | DEFAULT_wxUSE_SPLITTER=no |
1538 | DEFAULT_wxUSE_STATBMP=no | |
1539 | DEFAULT_wxUSE_STATBOX=no | |
1540 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1541 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1542 | DEFAULT_wxUSE_STATUSBAR=yes |
1543 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1544 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1545 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1546 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1547 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1548 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1549 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1550 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1551 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1552 | |
1553 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1554 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1555 | DEFAULT_wxUSE_WCSRTOMBS=no |
1556 | ||
edae8572 | 1557 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1558 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1559 | DEFAULT_wxUSE_GIF=no |
1560 | DEFAULT_wxUSE_PCX=no | |
1561 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1562 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1563 | DEFAULT_wxUSE_XPM=no |
658974ae | 1564 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1565 | else |
1e6feb95 VZ |
1566 | DEFAULT_wxUSE_UNIVERSAL=no |
1567 | ||
d8356fa3 VZ |
1568 | DEFAULT_wxUSE_NANOX=no |
1569 | ||
10f2d63a VZ |
1570 | DEFAULT_wxUSE_THREADS=yes |
1571 | ||
1572 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1573 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1574 | DEFAULT_wxUSE_OPTIMISE=yes |
1575 | DEFAULT_wxUSE_PROFILE=no | |
1576 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1577 | DEFAULT_wxUSE_NO_RTTI=no |
1578 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1579 | DEFAULT_wxUSE_PERMISSIVE=no |
1580 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1581 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1582 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1583 | DEFAULT_wxUSE_MEM_TRACING=no | |
1584 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1585 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1586 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1587 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1588 | ||
1589 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1590 | DEFAULT_wxUSE_LOGWINDOW=yes |
1591 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1592 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1593 | |
1594 | DEFAULT_wxUSE_GUI=yes | |
1595 | ||
831b3152 | 1596 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1597 | DEFAULT_wxUSE_ZLIB=yes |
1598 | DEFAULT_wxUSE_LIBPNG=yes | |
1599 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1600 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1601 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1602 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1603 | |
eb4efbdc | 1604 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1605 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1606 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1607 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1608 | DEFAULT_wxUSE_DATETIME=yes | |
1609 | DEFAULT_wxUSE_TIMEDATE=no | |
1610 | DEFAULT_wxUSE_TIMER=yes | |
1611 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1612 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1613 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1614 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1615 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1616 | DEFAULT_wxUSE_WAVE=no |
1617 | DEFAULT_wxUSE_INTL=yes | |
1618 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1619 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1620 | DEFAULT_wxUSE_STREAMS=yes |
1621 | DEFAULT_wxUSE_SOCKETS=yes | |
1622 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
10f2d63a | 1623 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1624 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1625 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1626 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1627 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1628 | |
1629 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1630 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1631 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1632 | ||
1633 | DEFAULT_wxUSE_X_RESOURCES=no | |
1634 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1635 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1636 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1637 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1638 | DEFAULT_wxUSE_SPLINES=yes |
1639 | ||
1640 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1641 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1642 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1643 | ||
1644 | DEFAULT_wxUSE_PROLOGIO=yes | |
1645 | DEFAULT_wxUSE_RESOURCES=yes | |
1646 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1647 | DEFAULT_wxUSE_IPC=yes | |
1648 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1649 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1650 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1651 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1652 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1653 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1654 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1655 | DEFAULT_wxUSE_PROTOCOL=yes |
1656 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1657 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1658 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1659 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1660 | |
1661 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1662 | DEFAULT_wxUSE_CHOICEDLG=yes |
1663 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1664 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1665 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1666 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1667 | DEFAULT_wxUSE_FONTDLG=yes |
1668 | DEFAULT_wxUSE_MSGDLG=yes | |
1669 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1670 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1671 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1672 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1673 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1674 | DEFAULT_wxUSE_WIZARDDLG=yes |
1675 | ||
1e6feb95 | 1676 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1677 | DEFAULT_wxUSE_MINIFRAME=yes |
1678 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1679 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1680 | DEFAULT_wxUSE_FS_INET=yes |
1681 | DEFAULT_wxUSE_FS_ZIP=yes | |
1682 | DEFAULT_wxUSE_BUSYINFO=yes | |
1683 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1684 | DEFAULT_wxUSE_VALIDATORS=yes | |
1685 | ||
1686 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1687 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1688 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1689 | DEFAULT_wxUSE_CALCTRL=yes |
1690 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1691 | DEFAULT_wxUSE_CHECKBOX=yes |
1692 | DEFAULT_wxUSE_CHECKLST=yes | |
1693 | DEFAULT_wxUSE_CHOICE=yes | |
1694 | DEFAULT_wxUSE_COMBOBOX=yes | |
1695 | DEFAULT_wxUSE_GAUGE=yes | |
1696 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1697 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1698 | DEFAULT_wxUSE_IMAGLIST=yes |
1699 | DEFAULT_wxUSE_LISTBOX=yes | |
1700 | DEFAULT_wxUSE_LISTCTRL=yes | |
1701 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1702 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1703 | DEFAULT_wxUSE_RADIOBOX=yes |
1704 | DEFAULT_wxUSE_RADIOBTN=yes | |
1705 | DEFAULT_wxUSE_SASH=yes | |
1706 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1707 | DEFAULT_wxUSE_SLIDER=yes | |
1708 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1709 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1710 | DEFAULT_wxUSE_SPLITTER=yes |
1711 | DEFAULT_wxUSE_STATBMP=yes | |
1712 | DEFAULT_wxUSE_STATBOX=yes | |
1713 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1714 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1715 | DEFAULT_wxUSE_STATUSBAR=yes |
1716 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1717 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1718 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1719 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1720 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1721 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1722 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1723 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1724 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1725 | |
1726 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1727 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1728 | DEFAULT_wxUSE_WCSRTOMBS=no |
1729 | ||
edae8572 | 1730 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1731 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1732 | DEFAULT_wxUSE_GIF=yes |
1733 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1734 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1735 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1736 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1737 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1738 | fi |
1739 | ||
52127426 JS |
1740 | |
1741 | ||
10f2d63a VZ |
1742 | for toolkit in `echo $ALL_TOOLKITS`; do |
1743 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1744 | if test "x$LINE" != x ; then | |
1745 | has_toolkit_in_cache=1 | |
1746 | eval "DEFAULT_$LINE" | |
1747 | eval "CACHE_$toolkit=1" | |
1748 | fi | |
1749 | done | |
1750 | ||
52127426 JS |
1751 | |
1752 | ||
1753 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
1754 | echo "configure:1755: checking for --enable-gui" >&5 | |
10f2d63a VZ |
1755 | no_cache=0 |
1756 | # Check whether --enable-gui or --disable-gui was given. | |
1757 | if test "${enable_gui+set}" = set; then | |
1758 | enableval="$enable_gui" | |
52127426 | 1759 | |
10f2d63a VZ |
1760 | if test "$enableval" = yes; then |
1761 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1762 | else | |
1763 | ac_cv_use_gui='wxUSE_GUI=no' | |
1764 | fi | |
52127426 | 1765 | |
10f2d63a | 1766 | else |
52127426 | 1767 | |
10f2d63a VZ |
1768 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1769 | if test "x$LINE" != x ; then | |
1770 | eval "DEFAULT_$LINE" | |
1771 | else | |
1772 | no_cache=1 | |
1773 | fi | |
1774 | ||
1775 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
52127426 JS |
1776 | |
1777 | fi | |
10f2d63a VZ |
1778 | |
1779 | ||
1780 | eval "$ac_cv_use_gui" | |
1781 | if test "$no_cache" != 1; then | |
1782 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1783 | fi | |
1784 | ||
1785 | if test "$wxUSE_GUI" = yes; then | |
52127426 | 1786 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1787 | else |
52127426 | 1788 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1789 | fi |
52127426 | 1790 | |
10f2d63a | 1791 | |
b12915c1 | 1792 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1793 | |
52127426 JS |
1794 | |
1795 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
1796 | echo "configure:1797: checking for --enable-universal" >&5 | |
1e6feb95 VZ |
1797 | no_cache=0 |
1798 | # Check whether --enable-universal or --disable-universal was given. | |
1799 | if test "${enable_universal+set}" = set; then | |
1800 | enableval="$enable_universal" | |
52127426 | 1801 | |
1e6feb95 VZ |
1802 | if test "$enableval" = yes; then |
1803 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1804 | else | |
1805 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1806 | fi | |
52127426 | 1807 | |
1e6feb95 | 1808 | else |
52127426 | 1809 | |
1e6feb95 VZ |
1810 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
1811 | if test "x$LINE" != x ; then | |
1812 | eval "DEFAULT_$LINE" | |
1813 | else | |
1814 | no_cache=1 | |
1815 | fi | |
1816 | ||
1817 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
52127426 JS |
1818 | |
1819 | fi | |
1e6feb95 VZ |
1820 | |
1821 | ||
1822 | eval "$ac_cv_use_universal" | |
1823 | if test "$no_cache" != 1; then | |
1824 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1825 | fi | |
1826 | ||
1827 | if test "$wxUSE_UNIVERSAL" = yes; then | |
52127426 | 1828 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 1829 | else |
52127426 | 1830 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 1831 | fi |
52127426 | 1832 | |
10f2d63a VZ |
1833 | # Check whether --with-gtk or --without-gtk was given. |
1834 | if test "${with_gtk+set}" = set; then | |
1835 | withval="$with_gtk" | |
1836 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
52127426 | 1837 | fi |
10f2d63a VZ |
1838 | |
1839 | # Check whether --with-motif or --without-motif was given. | |
1840 | if test "${with_motif+set}" = set; then | |
1841 | withval="$with_motif" | |
1842 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
52127426 | 1843 | fi |
10f2d63a | 1844 | |
b4085ce6 GD |
1845 | # Check whether --with-mac or --without-mac was given. |
1846 | if test "${with_mac+set}" = set; then | |
1847 | withval="$with_mac" | |
1848 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
52127426 | 1849 | fi |
b4085ce6 | 1850 | |
10f2d63a VZ |
1851 | # Check whether --with-wine or --without-wine was given. |
1852 | if test "${with_wine+set}" = set; then | |
1853 | withval="$with_wine" | |
1854 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
52127426 | 1855 | fi |
10f2d63a | 1856 | |
77e13408 RL |
1857 | # Check whether --with-msw or --without-msw was given. |
1858 | if test "${with_msw+set}" = set; then | |
1859 | withval="$with_msw" | |
b4efce5e | 1860 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
52127426 | 1861 | fi |
10f2d63a | 1862 | |
e07802fc VZ |
1863 | # Check whether --with-pm or --without-pm was given. |
1864 | if test "${with_pm+set}" = set; then | |
1865 | withval="$with_pm" | |
1866 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
52127426 | 1867 | fi |
698dcdb6 | 1868 | |
1e6feb95 VZ |
1869 | # Check whether --with-mgl or --without-mgl was given. |
1870 | if test "${with_mgl+set}" = set; then | |
1871 | withval="$with_mgl" | |
6c657b52 | 1872 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
52127426 | 1873 | fi |
1e6feb95 | 1874 | |
1725144d RR |
1875 | # Check whether --with-microwin or --without-microwin was given. |
1876 | if test "${with_microwin+set}" = set; then | |
1877 | withval="$with_microwin" | |
1878 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
52127426 | 1879 | fi |
1725144d | 1880 | |
f79bd02d JS |
1881 | # Check whether --with-x11 or --without-x11 was given. |
1882 | if test "${with_x11+set}" = set; then | |
1883 | withval="$with_x11" | |
3c011993 | 1884 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
52127426 | 1885 | fi |
10f2d63a | 1886 | |
52127426 JS |
1887 | |
1888 | echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6 | |
1889 | echo "configure:1890: checking for --enable-nanox" >&5 | |
d8356fa3 | 1890 | no_cache=0 |
ba875e66 VZ |
1891 | # Check whether --enable-nanox or --disable-nanox was given. |
1892 | if test "${enable_nanox+set}" = set; then | |
1893 | enableval="$enable_nanox" | |
52127426 | 1894 | |
d8356fa3 | 1895 | if test "$enableval" = yes; then |
ba875e66 | 1896 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1897 | else |
ba875e66 | 1898 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 1899 | fi |
52127426 | 1900 | |
d8356fa3 | 1901 | else |
52127426 | 1902 | |
d8356fa3 VZ |
1903 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
1904 | if test "x$LINE" != x ; then | |
1905 | eval "DEFAULT_$LINE" | |
1906 | else | |
1907 | no_cache=1 | |
1908 | fi | |
1909 | ||
ba875e66 | 1910 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
52127426 JS |
1911 | |
1912 | fi | |
d8356fa3 VZ |
1913 | |
1914 | ||
ba875e66 | 1915 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1916 | if test "$no_cache" != 1; then |
ba875e66 | 1917 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1918 | fi |
1919 | ||
1920 | if test "$wxUSE_NANOX" = yes; then | |
52127426 | 1921 | echo "$ac_t""yes" 1>&6 |
d8356fa3 | 1922 | else |
52127426 | 1923 | echo "$ac_t""no" 1>&6 |
d8356fa3 | 1924 | fi |
52127426 | 1925 | |
d8356fa3 | 1926 | |
8168de4c VZ |
1927 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1928 | if test "${enable_gtk2+set}" = set; then | |
1929 | enableval="$enable_gtk2" | |
9e691f46 | 1930 | wxUSE_GTK2="yes" |
10f2d63a | 1931 | else |
9e691f46 | 1932 | wxUSE_GTK2="no" |
52127426 JS |
1933 | fi |
1934 | ||
328a083c | 1935 | |
7b4a847f | 1936 | |
52127426 JS |
1937 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
1938 | echo "configure:1939: checking for --with-libpng" >&5 | |
1939 | no_cache=0 | |
1940 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1941 | if test "${with_libpng+set}" = set; then |
1942 | withval="$with_libpng" | |
52127426 | 1943 | |
10f2d63a | 1944 | if test "$withval" = yes; then |
b12915c1 | 1945 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1946 | elif test "$withval" = no; then |
b12915c1 | 1947 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1948 | elif test "$withval" = sys; then |
1949 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1950 | elif test "$withval" = builtin; then |
1951 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1952 | else |
52127426 | 1953 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1954 | fi |
52127426 | 1955 | |
10f2d63a | 1956 | else |
52127426 | 1957 | |
b12915c1 | 1958 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1959 | if test "x$LINE" != x ; then |
1960 | eval "DEFAULT_$LINE" | |
1961 | else | |
1962 | no_cache=1 | |
1963 | fi | |
1964 | ||
b12915c1 | 1965 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
52127426 JS |
1966 | |
1967 | fi | |
10f2d63a VZ |
1968 | |
1969 | ||
b12915c1 | 1970 | eval "$ac_cv_use_libpng" |
10f2d63a | 1971 | if test "$no_cache" != 1; then |
b12915c1 | 1972 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1973 | fi |
1974 | ||
b12915c1 | 1975 | if test "$wxUSE_LIBPNG" = yes; then |
52127426 | 1976 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1977 | elif test "$wxUSE_LIBPNG" = no; then |
52127426 | 1978 | echo "$ac_t""no" 1>&6 |
422107f9 | 1979 | elif test "$wxUSE_LIBPNG" = sys; then |
52127426 | 1980 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 1981 | elif test "$wxUSE_LIBPNG" = builtin; then |
52127426 | 1982 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 1983 | else |
52127426 | 1984 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1985 | fi |
52127426 | 1986 | |
10f2d63a | 1987 | |
52127426 JS |
1988 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
1989 | echo "configure:1990: checking for --with-libjpeg" >&5 | |
10f2d63a | 1990 | no_cache=0 |
52127426 | 1991 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1992 | if test "${with_libjpeg+set}" = set; then |
1993 | withval="$with_libjpeg" | |
52127426 | 1994 | |
10f2d63a | 1995 | if test "$withval" = yes; then |
b12915c1 | 1996 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1997 | elif test "$withval" = no; then |
b12915c1 | 1998 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1999 | elif test "$withval" = sys; then |
2000 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2001 | elif test "$withval" = builtin; then |
2002 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2003 | else |
52127426 | 2004 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2005 | fi |
52127426 | 2006 | |
10f2d63a | 2007 | else |
52127426 | 2008 | |
b12915c1 | 2009 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2010 | if test "x$LINE" != x ; then |
2011 | eval "DEFAULT_$LINE" | |
2012 | else | |
2013 | no_cache=1 | |
2014 | fi | |
2015 | ||
b12915c1 | 2016 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
52127426 JS |
2017 | |
2018 | fi | |
10f2d63a VZ |
2019 | |
2020 | ||
b12915c1 | 2021 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2022 | if test "$no_cache" != 1; then |
b12915c1 | 2023 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2024 | fi |
2025 | ||
b12915c1 | 2026 | if test "$wxUSE_LIBJPEG" = yes; then |
52127426 | 2027 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2028 | elif test "$wxUSE_LIBJPEG" = no; then |
52127426 | 2029 | echo "$ac_t""no" 1>&6 |
422107f9 | 2030 | elif test "$wxUSE_LIBJPEG" = sys; then |
52127426 | 2031 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2032 | elif test "$wxUSE_LIBJPEG" = builtin; then |
52127426 | 2033 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2034 | else |
52127426 | 2035 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2036 | fi |
52127426 | 2037 | |
10f2d63a | 2038 | |
52127426 JS |
2039 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
2040 | echo "configure:2041: checking for --with-libtiff" >&5 | |
10f2d63a | 2041 | no_cache=0 |
52127426 | 2042 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2043 | if test "${with_libtiff+set}" = set; then |
2044 | withval="$with_libtiff" | |
52127426 | 2045 | |
10f2d63a | 2046 | if test "$withval" = yes; then |
b12915c1 | 2047 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2048 | elif test "$withval" = no; then |
b12915c1 | 2049 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2050 | elif test "$withval" = sys; then |
2051 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2052 | elif test "$withval" = builtin; then |
2053 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2054 | else |
52127426 | 2055 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2056 | fi |
52127426 | 2057 | |
10f2d63a | 2058 | else |
52127426 | 2059 | |
b12915c1 | 2060 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2061 | if test "x$LINE" != x ; then |
2062 | eval "DEFAULT_$LINE" | |
2063 | else | |
2064 | no_cache=1 | |
2065 | fi | |
2066 | ||
b12915c1 | 2067 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
52127426 JS |
2068 | |
2069 | fi | |
10f2d63a VZ |
2070 | |
2071 | ||
b12915c1 | 2072 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2073 | if test "$no_cache" != 1; then |
b12915c1 | 2074 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2075 | fi |
2076 | ||
b12915c1 | 2077 | if test "$wxUSE_LIBTIFF" = yes; then |
52127426 | 2078 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2079 | elif test "$wxUSE_LIBTIFF" = no; then |
52127426 | 2080 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2081 | elif test "$wxUSE_LIBTIFF" = sys; then |
52127426 | 2082 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2083 | elif test "$wxUSE_LIBTIFF" = builtin; then |
52127426 | 2084 | echo "$ac_t""builtin version" 1>&6 |
0dcf9893 | 2085 | else |
52127426 | 2086 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2087 | fi |
52127426 | 2088 | |
10f2d63a | 2089 | |
52127426 JS |
2090 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
2091 | echo "configure:2092: checking for --with-opengl" >&5 | |
10f2d63a | 2092 | no_cache=0 |
52127426 | 2093 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2094 | if test "${with_opengl+set}" = set; then |
2095 | withval="$with_opengl" | |
52127426 | 2096 | |
10f2d63a | 2097 | if test "$withval" = yes; then |
b12915c1 | 2098 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2099 | else |
b12915c1 | 2100 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2101 | fi |
52127426 | 2102 | |
10f2d63a | 2103 | else |
52127426 | 2104 | |
b12915c1 | 2105 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2106 | if test "x$LINE" != x ; then |
2107 | eval "DEFAULT_$LINE" | |
2108 | else | |
2109 | no_cache=1 | |
2110 | fi | |
2111 | ||
b12915c1 | 2112 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
52127426 JS |
2113 | |
2114 | fi | |
10f2d63a VZ |
2115 | |
2116 | ||
b12915c1 | 2117 | eval "$ac_cv_use_opengl" |
10f2d63a | 2118 | if test "$no_cache" != 1; then |
b12915c1 | 2119 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2120 | fi |
2121 | ||
b12915c1 | 2122 | if test "$wxUSE_OPENGL" = yes; then |
52127426 | 2123 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2124 | else |
52127426 | 2125 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2126 | fi |
52127426 | 2127 | |
10f2d63a | 2128 | |
b12915c1 VZ |
2129 | fi |
2130 | ||
7b4a847f | 2131 | |
52127426 JS |
2132 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
2133 | echo "configure:2134: checking for --with-dmalloc" >&5 | |
2134 | no_cache=0 | |
2135 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2136 | if test "${with_dmalloc+set}" = set; then |
2137 | withval="$with_dmalloc" | |
52127426 | 2138 | |
c7a2bf27 | 2139 | if test "$withval" = yes; then |
b12915c1 | 2140 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2141 | else |
b12915c1 | 2142 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2143 | fi |
52127426 | 2144 | |
c7a2bf27 | 2145 | else |
52127426 | 2146 | |
b12915c1 | 2147 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2148 | if test "x$LINE" != x ; then |
2149 | eval "DEFAULT_$LINE" | |
2150 | else | |
2151 | no_cache=1 | |
2152 | fi | |
2153 | ||
b12915c1 | 2154 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
52127426 JS |
2155 | |
2156 | fi | |
c7a2bf27 RR |
2157 | |
2158 | ||
b12915c1 | 2159 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2160 | if test "$no_cache" != 1; then |
b12915c1 | 2161 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2162 | fi |
2163 | ||
b12915c1 | 2164 | if test "$wxUSE_DMALLOC" = yes; then |
52127426 | 2165 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2166 | else |
52127426 | 2167 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2168 | fi |
52127426 | 2169 | |
c7a2bf27 | 2170 | |
52127426 JS |
2171 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
2172 | echo "configure:2173: checking for --with-regex" >&5 | |
3e44f09d | 2173 | no_cache=0 |
52127426 | 2174 | # Check whether --with-regex or --without-regex was given. |
3e44f09d VZ |
2175 | if test "${with_regex+set}" = set; then |
2176 | withval="$with_regex" | |
52127426 | 2177 | |
3e44f09d VZ |
2178 | if test "$withval" = yes; then |
2179 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2180 | elif test "$withval" = no; then | |
2181 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2182 | elif test "$withval" = sys; then | |
2183 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2184 | elif test "$withval" = builtin; then |
2185 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2186 | else |
52127426 | 2187 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2188 | fi |
52127426 | 2189 | |
3e44f09d | 2190 | else |
52127426 | 2191 | |
3e44f09d VZ |
2192 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2193 | if test "x$LINE" != x ; then | |
2194 | eval "DEFAULT_$LINE" | |
2195 | else | |
2196 | no_cache=1 | |
2197 | fi | |
2198 | ||
2199 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
52127426 JS |
2200 | |
2201 | fi | |
3e44f09d VZ |
2202 | |
2203 | ||
2204 | eval "$ac_cv_use_regex" | |
2205 | if test "$no_cache" != 1; then | |
2206 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2207 | fi | |
2208 | ||
2209 | if test "$wxUSE_REGEX" = yes; then | |
52127426 | 2210 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 2211 | elif test "$wxUSE_REGEX" = no; then |
52127426 | 2212 | echo "$ac_t""no" 1>&6 |
3e44f09d | 2213 | elif test "$wxUSE_REGEX" = sys; then |
52127426 | 2214 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2215 | elif test "$wxUSE_REGEX" = builtin; then |
52127426 | 2216 | echo "$ac_t""builtin version" 1>&6 |
3e44f09d | 2217 | else |
52127426 | 2218 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2219 | fi |
52127426 | 2220 | |
3e44f09d | 2221 | |
52127426 JS |
2222 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
2223 | echo "configure:2224: checking for --with-zlib" >&5 | |
10f2d63a | 2224 | no_cache=0 |
52127426 | 2225 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2226 | if test "${with_zlib+set}" = set; then |
2227 | withval="$with_zlib" | |
52127426 | 2228 | |
10f2d63a | 2229 | if test "$withval" = yes; then |
b12915c1 | 2230 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2231 | elif test "$withval" = no; then |
b12915c1 | 2232 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2233 | elif test "$withval" = sys; then |
2234 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2235 | elif test "$withval" = builtin; then |
2236 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2237 | else |
52127426 | 2238 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2239 | fi |
52127426 | 2240 | |
10f2d63a | 2241 | else |
52127426 | 2242 | |
b12915c1 | 2243 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2244 | if test "x$LINE" != x ; then |
2245 | eval "DEFAULT_$LINE" | |
2246 | else | |
2247 | no_cache=1 | |
2248 | fi | |
2249 | ||
b12915c1 | 2250 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
52127426 JS |
2251 | |
2252 | fi | |
10f2d63a VZ |
2253 | |
2254 | ||
b12915c1 | 2255 | eval "$ac_cv_use_zlib" |
10f2d63a | 2256 | if test "$no_cache" != 1; then |
b12915c1 | 2257 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2258 | fi |
2259 | ||
b12915c1 | 2260 | if test "$wxUSE_ZLIB" = yes; then |
52127426 | 2261 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2262 | elif test "$wxUSE_ZLIB" = no; then |
52127426 | 2263 | echo "$ac_t""no" 1>&6 |
422107f9 | 2264 | elif test "$wxUSE_ZLIB" = sys; then |
52127426 | 2265 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2266 | elif test "$wxUSE_ZLIB" = builtin; then |
52127426 | 2267 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2268 | else |
52127426 | 2269 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2270 | fi |
52127426 | 2271 | |
10f2d63a | 2272 | |
52127426 JS |
2273 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
2274 | echo "configure:2275: checking for --with-odbc" >&5 | |
10f2d63a | 2275 | no_cache=0 |
52127426 | 2276 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2277 | if test "${with_odbc+set}" = set; then |
2278 | withval="$with_odbc" | |
52127426 | 2279 | |
10f2d63a VZ |
2280 | if test "$withval" = yes; then |
2281 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2282 | else | |
2283 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2284 | fi | |
52127426 | 2285 | |
10f2d63a | 2286 | else |
52127426 | 2287 | |
10f2d63a VZ |
2288 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2289 | if test "x$LINE" != x ; then | |
2290 | eval "DEFAULT_$LINE" | |
2291 | else | |
2292 | no_cache=1 | |
2293 | fi | |
2294 | ||
2295 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
52127426 JS |
2296 | |
2297 | fi | |
10f2d63a VZ |
2298 | |
2299 | ||
2300 | eval "$ac_cv_use_odbc" | |
2301 | if test "$no_cache" != 1; then | |
2302 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2303 | fi | |
2304 | ||
2305 | if test "$wxUSE_ODBC" = yes; then | |
52127426 | 2306 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2307 | else |
52127426 | 2308 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2309 | fi |
52127426 JS |
2310 | |
2311 | ||
698dcdb6 | 2312 | |
52127426 JS |
2313 | |
2314 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 | |
2315 | echo "configure:2316: checking for --enable-shared" >&5 | |
10f2d63a VZ |
2316 | no_cache=0 |
2317 | # Check whether --enable-shared or --disable-shared was given. | |
2318 | if test "${enable_shared+set}" = set; then | |
2319 | enableval="$enable_shared" | |
52127426 | 2320 | |
10f2d63a VZ |
2321 | if test "$enableval" = yes; then |
2322 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2323 | else | |
2324 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2325 | fi | |
52127426 | 2326 | |
10f2d63a | 2327 | else |
52127426 | 2328 | |
10f2d63a VZ |
2329 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2330 | if test "x$LINE" != x ; then | |
2331 | eval "DEFAULT_$LINE" | |
2332 | else | |
2333 | no_cache=1 | |
2334 | fi | |
2335 | ||
2336 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
52127426 JS |
2337 | |
2338 | fi | |
10f2d63a VZ |
2339 | |
2340 | ||
2341 | eval "$ac_cv_use_shared" | |
2342 | if test "$no_cache" != 1; then | |
2343 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2344 | fi | |
2345 | ||
2346 | if test "$wxUSE_SHARED" = yes; then | |
52127426 | 2347 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2348 | else |
52127426 | 2349 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2350 | fi |
52127426 | 2351 | |
10f2d63a | 2352 | |
52127426 JS |
2353 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
2354 | echo "configure:2355: checking for --enable-soname" >&5 | |
00cf1208 | 2355 | no_cache=0 |
3a922bb4 RL |
2356 | # Check whether --enable-soname or --disable-soname was given. |
2357 | if test "${enable_soname+set}" = set; then | |
2358 | enableval="$enable_soname" | |
52127426 | 2359 | |
00cf1208 | 2360 | if test "$enableval" = yes; then |
3a922bb4 | 2361 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2362 | else |
3a922bb4 | 2363 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2364 | fi |
52127426 | 2365 | |
00cf1208 | 2366 | else |
52127426 | 2367 | |
3a922bb4 | 2368 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2369 | if test "x$LINE" != x ; then |
2370 | eval "DEFAULT_$LINE" | |
2371 | else | |
2372 | no_cache=1 | |
2373 | fi | |
2374 | ||
3a922bb4 | 2375 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
52127426 JS |
2376 | |
2377 | fi | |
00cf1208 RR |
2378 | |
2379 | ||
3a922bb4 | 2380 | eval "$ac_cv_use_soname" |
00cf1208 | 2381 | if test "$no_cache" != 1; then |
3a922bb4 | 2382 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2383 | fi |
2384 | ||
3a922bb4 | 2385 | if test "$wxUSE_SONAME" = yes; then |
52127426 | 2386 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2387 | else |
52127426 | 2388 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2389 | fi |
52127426 | 2390 | |
00cf1208 | 2391 | |
52127426 JS |
2392 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
2393 | echo "configure:2394: checking for --enable-optimise" >&5 | |
10f2d63a VZ |
2394 | no_cache=0 |
2395 | # Check whether --enable-optimise or --disable-optimise was given. | |
2396 | if test "${enable_optimise+set}" = set; then | |
2397 | enableval="$enable_optimise" | |
52127426 | 2398 | |
10f2d63a VZ |
2399 | if test "$enableval" = yes; then |
2400 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2401 | else | |
2402 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2403 | fi | |
52127426 | 2404 | |
10f2d63a | 2405 | else |
52127426 | 2406 | |
10f2d63a VZ |
2407 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2408 | if test "x$LINE" != x ; then | |
2409 | eval "DEFAULT_$LINE" | |
2410 | else | |
2411 | no_cache=1 | |
2412 | fi | |
2413 | ||
2414 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
52127426 JS |
2415 | |
2416 | fi | |
10f2d63a VZ |
2417 | |
2418 | ||
2419 | eval "$ac_cv_use_optimise" | |
2420 | if test "$no_cache" != 1; then | |
2421 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2422 | fi | |
2423 | ||
2424 | if test "$wxUSE_OPTIMISE" = yes; then | |
52127426 | 2425 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2426 | else |
52127426 | 2427 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2428 | fi |
52127426 | 2429 | |
10f2d63a | 2430 | |
52127426 JS |
2431 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
2432 | echo "configure:2433: checking for --enable-debug" >&5 | |
10f2d63a VZ |
2433 | no_cache=0 |
2434 | # Check whether --enable-debug or --disable-debug was given. | |
2435 | if test "${enable_debug+set}" = set; then | |
2436 | enableval="$enable_debug" | |
52127426 | 2437 | |
10f2d63a VZ |
2438 | if test "$enableval" = yes; then |
2439 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2440 | else | |
2441 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2442 | fi | |
52127426 | 2443 | |
10f2d63a | 2444 | else |
52127426 | 2445 | |
10f2d63a VZ |
2446 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2447 | if test "x$LINE" != x ; then | |
2448 | eval "DEFAULT_$LINE" | |
2449 | else | |
2450 | no_cache=1 | |
2451 | fi | |
2452 | ||
2453 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
52127426 JS |
2454 | |
2455 | fi | |
10f2d63a VZ |
2456 | |
2457 | ||
2458 | eval "$ac_cv_use_debug" | |
2459 | if test "$no_cache" != 1; then | |
2460 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2461 | fi | |
2462 | ||
2463 | if test "$wxUSE_DEBUG" = yes; then | |
52127426 | 2464 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2465 | else |
52127426 | 2466 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2467 | fi |
52127426 JS |
2468 | |
2469 | ||
10f2d63a | 2470 | |
52127426 JS |
2471 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 |
2472 | echo "configure:2473: checking for --enable-precomp" >&5 | |
683dccda GD |
2473 | no_cache=0 |
2474 | # Check whether --enable-precomp or --disable-precomp was given. | |
2475 | if test "${enable_precomp+set}" = set; then | |
2476 | enableval="$enable_precomp" | |
52127426 | 2477 | |
683dccda GD |
2478 | if test "$enableval" = yes; then |
2479 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2480 | else | |
2481 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2482 | fi | |
52127426 | 2483 | |
683dccda | 2484 | else |
52127426 | 2485 | |
683dccda GD |
2486 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` |
2487 | if test "x$LINE" != x ; then | |
2488 | eval "DEFAULT_$LINE" | |
2489 | else | |
2490 | no_cache=1 | |
2491 | fi | |
2492 | ||
2493 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
52127426 JS |
2494 | |
2495 | fi | |
683dccda GD |
2496 | |
2497 | ||
2498 | eval "$ac_cv_use_precomp" | |
2499 | if test "$no_cache" != 1; then | |
2500 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2501 | fi | |
2502 | ||
2503 | if test "$wxUSE_PRECOMP" = yes; then | |
52127426 | 2504 | echo "$ac_t""yes" 1>&6 |
683dccda | 2505 | else |
52127426 | 2506 | echo "$ac_t""no" 1>&6 |
683dccda | 2507 | fi |
52127426 | 2508 | |
683dccda | 2509 | |
10f2d63a VZ |
2510 | if test "$wxUSE_DEBUG" = "yes"; then |
2511 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2512 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2513 | elif test "$wxUSE_DEBUG" = "no"; then | |
2514 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2515 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2516 | fi | |
2517 | ||
52127426 JS |
2518 | |
2519 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
2520 | echo "configure:2521: checking for --enable-debug_flag" >&5 | |
10f2d63a VZ |
2521 | no_cache=0 |
2522 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2523 | if test "${enable_debug_flag+set}" = set; then | |
2524 | enableval="$enable_debug_flag" | |
52127426 | 2525 | |
10f2d63a VZ |
2526 | if test "$enableval" = yes; then |
2527 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2528 | else | |
2529 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2530 | fi | |
52127426 | 2531 | |
10f2d63a | 2532 | else |
52127426 | 2533 | |
10f2d63a VZ |
2534 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2535 | if test "x$LINE" != x ; then | |
2536 | eval "DEFAULT_$LINE" | |
2537 | else | |
2538 | no_cache=1 | |
2539 | fi | |
2540 | ||
2541 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
52127426 JS |
2542 | |
2543 | fi | |
10f2d63a VZ |
2544 | |
2545 | ||
2546 | eval "$ac_cv_use_debug_flag" | |
2547 | if test "$no_cache" != 1; then | |
2548 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2549 | fi | |
2550 | ||
2551 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
52127426 | 2552 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2553 | else |
52127426 | 2554 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2555 | fi |
52127426 | 2556 | |
10f2d63a | 2557 | |
52127426 JS |
2558 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
2559 | echo "configure:2560: checking for --enable-debug_info" >&5 | |
10f2d63a VZ |
2560 | no_cache=0 |
2561 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2562 | if test "${enable_debug_info+set}" = set; then | |
2563 | enableval="$enable_debug_info" | |
52127426 | 2564 | |
10f2d63a VZ |
2565 | if test "$enableval" = yes; then |
2566 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2567 | else | |
2568 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2569 | fi | |
52127426 | 2570 | |
10f2d63a | 2571 | else |
52127426 | 2572 | |
10f2d63a VZ |
2573 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2574 | if test "x$LINE" != x ; then | |
2575 | eval "DEFAULT_$LINE" | |
2576 | else | |
2577 | no_cache=1 | |
2578 | fi | |
2579 | ||
2580 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
52127426 JS |
2581 | |
2582 | fi | |
10f2d63a VZ |
2583 | |
2584 | ||
2585 | eval "$ac_cv_use_debug_info" | |
2586 | if test "$no_cache" != 1; then | |
2587 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2588 | fi | |
2589 | ||
2590 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
52127426 | 2591 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2592 | else |
52127426 | 2593 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2594 | fi |
52127426 | 2595 | |
10f2d63a | 2596 | |
52127426 JS |
2597 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
2598 | echo "configure:2599: checking for --enable-debug_gdb" >&5 | |
10f2d63a VZ |
2599 | no_cache=0 |
2600 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2601 | if test "${enable_debug_gdb+set}" = set; then | |
2602 | enableval="$enable_debug_gdb" | |
52127426 | 2603 | |
10f2d63a VZ |
2604 | if test "$enableval" = yes; then |
2605 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2606 | else | |
2607 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2608 | fi | |
52127426 | 2609 | |
10f2d63a | 2610 | else |
52127426 | 2611 | |
10f2d63a VZ |
2612 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2613 | if test "x$LINE" != x ; then | |
2614 | eval "DEFAULT_$LINE" | |
2615 | else | |
2616 | no_cache=1 | |
2617 | fi | |
2618 | ||
2619 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
52127426 JS |
2620 | |
2621 | fi | |
10f2d63a VZ |
2622 | |
2623 | ||
2624 | eval "$ac_cv_use_debug_gdb" | |
2625 | if test "$no_cache" != 1; then | |
2626 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2627 | fi | |
2628 | ||
2629 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
52127426 | 2630 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2631 | else |
52127426 | 2632 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2633 | fi |
52127426 | 2634 | |
10f2d63a | 2635 | |
52127426 JS |
2636 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
2637 | echo "configure:2638: checking for --enable-debug_cntxt" >&5 | |
10f2d63a VZ |
2638 | no_cache=0 |
2639 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2640 | if test "${enable_debug_cntxt+set}" = set; then | |
2641 | enableval="$enable_debug_cntxt" | |
52127426 | 2642 | |
10f2d63a VZ |
2643 | if test "$enableval" = yes; then |
2644 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2645 | else | |
2646 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2647 | fi | |
52127426 | 2648 | |
10f2d63a | 2649 | else |
52127426 | 2650 | |
10f2d63a VZ |
2651 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2652 | if test "x$LINE" != x ; then | |
2653 | eval "DEFAULT_$LINE" | |
2654 | else | |
2655 | no_cache=1 | |
2656 | fi | |
2657 | ||
2658 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
52127426 JS |
2659 | |
2660 | fi | |
10f2d63a VZ |
2661 | |
2662 | ||
2663 | eval "$ac_cv_use_debug_cntxt" | |
2664 | if test "$no_cache" != 1; then | |
2665 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2666 | fi | |
2667 | ||
2668 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
52127426 | 2669 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2670 | else |
52127426 | 2671 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2672 | fi |
52127426 | 2673 | |
10f2d63a | 2674 | |
52127426 JS |
2675 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
2676 | echo "configure:2677: checking for --enable-mem_tracing" >&5 | |
10f2d63a VZ |
2677 | no_cache=0 |
2678 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2679 | if test "${enable_mem_tracing+set}" = set; then | |
2680 | enableval="$enable_mem_tracing" | |
52127426 | 2681 | |
10f2d63a VZ |
2682 | if test "$enableval" = yes; then |
2683 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2684 | else | |
2685 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2686 | fi | |
52127426 | 2687 | |
10f2d63a | 2688 | else |
52127426 | 2689 | |
10f2d63a VZ |
2690 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2691 | if test "x$LINE" != x ; then | |
2692 | eval "DEFAULT_$LINE" | |
2693 | else | |
2694 | no_cache=1 | |
2695 | fi | |
2696 | ||
2697 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
52127426 JS |
2698 | |
2699 | fi | |
10f2d63a VZ |
2700 | |
2701 | ||
2702 | eval "$ac_cv_use_mem_tracing" | |
2703 | if test "$no_cache" != 1; then | |
2704 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2705 | fi | |
2706 | ||
2707 | if test "$wxUSE_MEM_TRACING" = yes; then | |
52127426 | 2708 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2709 | else |
52127426 | 2710 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2711 | fi |
52127426 | 2712 | |
10f2d63a | 2713 | |
52127426 JS |
2714 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
2715 | echo "configure:2716: checking for --enable-profile" >&5 | |
10f2d63a VZ |
2716 | no_cache=0 |
2717 | # Check whether --enable-profile or --disable-profile was given. | |
2718 | if test "${enable_profile+set}" = set; then | |
2719 | enableval="$enable_profile" | |
52127426 | 2720 | |
10f2d63a VZ |
2721 | if test "$enableval" = yes; then |
2722 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2723 | else | |
2724 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2725 | fi | |
52127426 | 2726 | |
10f2d63a | 2727 | else |
52127426 | 2728 | |
10f2d63a VZ |
2729 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2730 | if test "x$LINE" != x ; then | |
2731 | eval "DEFAULT_$LINE" | |
2732 | else | |
2733 | no_cache=1 | |
2734 | fi | |
2735 | ||
2736 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
52127426 JS |
2737 | |
2738 | fi | |
10f2d63a VZ |
2739 | |
2740 | ||
2741 | eval "$ac_cv_use_profile" | |
2742 | if test "$no_cache" != 1; then | |
2743 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2744 | fi | |
2745 | ||
2746 | if test "$wxUSE_PROFILE" = yes; then | |
52127426 | 2747 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2748 | else |
52127426 | 2749 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2750 | fi |
52127426 | 2751 | |
10f2d63a | 2752 | |
52127426 JS |
2753 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
2754 | echo "configure:2755: checking for --enable-no_rtti" >&5 | |
10f2d63a VZ |
2755 | no_cache=0 |
2756 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2757 | if test "${enable_no_rtti+set}" = set; then | |
2758 | enableval="$enable_no_rtti" | |
52127426 | 2759 | |
10f2d63a VZ |
2760 | if test "$enableval" = yes; then |
2761 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2762 | else | |
2763 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2764 | fi | |
52127426 | 2765 | |
10f2d63a | 2766 | else |
52127426 | 2767 | |
10f2d63a VZ |
2768 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2769 | if test "x$LINE" != x ; then | |
2770 | eval "DEFAULT_$LINE" | |
2771 | else | |
2772 | no_cache=1 | |
2773 | fi | |
2774 | ||
2775 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
52127426 JS |
2776 | |
2777 | fi | |
10f2d63a VZ |
2778 | |
2779 | ||
2780 | eval "$ac_cv_use_no_rtti" | |
2781 | if test "$no_cache" != 1; then | |
2782 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2783 | fi | |
2784 | ||
2785 | if test "$wxUSE_NO_RTTI" = yes; then | |
52127426 | 2786 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2787 | else |
52127426 | 2788 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2789 | fi |
52127426 | 2790 | |
10f2d63a | 2791 | |
52127426 JS |
2792 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
2793 | echo "configure:2794: checking for --enable-no_exceptions" >&5 | |
10f2d63a VZ |
2794 | no_cache=0 |
2795 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2796 | if test "${enable_no_exceptions+set}" = set; then | |
2797 | enableval="$enable_no_exceptions" | |
52127426 | 2798 | |
10f2d63a VZ |
2799 | if test "$enableval" = yes; then |
2800 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2801 | else | |
2802 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2803 | fi | |
52127426 | 2804 | |
10f2d63a | 2805 | else |
52127426 | 2806 | |
10f2d63a VZ |
2807 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2808 | if test "x$LINE" != x ; then | |
2809 | eval "DEFAULT_$LINE" | |
2810 | else | |
2811 | no_cache=1 | |
2812 | fi | |
2813 | ||
2814 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
52127426 JS |
2815 | |
2816 | fi | |
10f2d63a VZ |
2817 | |
2818 | ||
2819 | eval "$ac_cv_use_no_exceptions" | |
2820 | if test "$no_cache" != 1; then | |
2821 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2822 | fi | |
2823 | ||
2824 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
52127426 | 2825 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2826 | else |
52127426 | 2827 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2828 | fi |
52127426 | 2829 | |
10f2d63a | 2830 | |
52127426 JS |
2831 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
2832 | echo "configure:2833: checking for --enable-permissive" >&5 | |
10f2d63a VZ |
2833 | no_cache=0 |
2834 | # Check whether --enable-permissive or --disable-permissive was given. | |
2835 | if test "${enable_permissive+set}" = set; then | |
2836 | enableval="$enable_permissive" | |
52127426 | 2837 | |
10f2d63a VZ |
2838 | if test "$enableval" = yes; then |
2839 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2840 | else | |
2841 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2842 | fi | |
52127426 | 2843 | |
10f2d63a | 2844 | else |
52127426 | 2845 | |
10f2d63a VZ |
2846 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2847 | if test "x$LINE" != x ; then | |
2848 | eval "DEFAULT_$LINE" | |
2849 | else | |
2850 | no_cache=1 | |
2851 | fi | |
2852 | ||
2853 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
52127426 JS |
2854 | |
2855 | fi | |
10f2d63a VZ |
2856 | |
2857 | ||
2858 | eval "$ac_cv_use_permissive" | |
2859 | if test "$no_cache" != 1; then | |
2860 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2861 | fi | |
2862 | ||
2863 | if test "$wxUSE_PERMISSIVE" = yes; then | |
52127426 | 2864 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2865 | else |
52127426 | 2866 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2867 | fi |
52127426 | 2868 | |
10f2d63a | 2869 | |
52127426 JS |
2870 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
2871 | echo "configure:2872: checking for --enable-no_deps" >&5 | |
10f2d63a VZ |
2872 | no_cache=0 |
2873 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2874 | if test "${enable_no_deps+set}" = set; then | |
2875 | enableval="$enable_no_deps" | |
52127426 | 2876 | |
10f2d63a VZ |
2877 | if test "$enableval" = yes; then |
2878 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2879 | else | |
2880 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2881 | fi | |
52127426 | 2882 | |
10f2d63a | 2883 | else |
52127426 | 2884 | |
10f2d63a VZ |
2885 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2886 | if test "x$LINE" != x ; then | |
2887 | eval "DEFAULT_$LINE" | |
2888 | else | |
2889 | no_cache=1 | |
2890 | fi | |
2891 | ||
2892 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
52127426 JS |
2893 | |
2894 | fi | |
10f2d63a VZ |
2895 | |
2896 | ||
2897 | eval "$ac_cv_use_no_deps" | |
2898 | if test "$no_cache" != 1; then | |
2899 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2900 | fi | |
2901 | ||
2902 | if test "$wxUSE_NO_DEPS" = yes; then | |
52127426 | 2903 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2904 | else |
52127426 | 2905 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2906 | fi |
52127426 JS |
2907 | |
2908 | ||
698dcdb6 | 2909 | |
52127426 JS |
2910 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
2911 | echo "configure:2912: checking for --enable-compat20" >&5 | |
54276ccf VZ |
2912 | no_cache=0 |
2913 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2914 | if test "${enable_compat20+set}" = set; then | |
2915 | enableval="$enable_compat20" | |
52127426 | 2916 | |
54276ccf VZ |
2917 | if test "$enableval" = yes; then |
2918 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2919 | else | |
2920 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2921 | fi | |
52127426 | 2922 | |
54276ccf | 2923 | else |
52127426 | 2924 | |
54276ccf VZ |
2925 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
2926 | if test "x$LINE" != x ; then | |
2927 | eval "DEFAULT_$LINE" | |
2928 | else | |
2929 | no_cache=1 | |
2930 | fi | |
2931 | ||
2932 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
52127426 JS |
2933 | |
2934 | fi | |
54276ccf VZ |
2935 | |
2936 | ||
2937 | eval "$ac_cv_use_compat20" | |
2938 | if test "$no_cache" != 1; then | |
2939 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2940 | fi | |
2941 | ||
2942 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
52127426 | 2943 | echo "$ac_t""yes" 1>&6 |
54276ccf | 2944 | else |
52127426 | 2945 | echo "$ac_t""no" 1>&6 |
54276ccf | 2946 | fi |
52127426 | 2947 | |
54276ccf | 2948 | |
52127426 JS |
2949 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 |
2950 | echo "configure:2951: checking for --enable-compat22" >&5 | |
54276ccf VZ |
2951 | no_cache=0 |
2952 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2953 | if test "${enable_compat22+set}" = set; then | |
2954 | enableval="$enable_compat22" | |
52127426 | 2955 | |
54276ccf VZ |
2956 | if test "$enableval" = yes; then |
2957 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2958 | else | |
2959 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2960 | fi | |
52127426 | 2961 | |
54276ccf | 2962 | else |
52127426 | 2963 | |
54276ccf VZ |
2964 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
2965 | if test "x$LINE" != x ; then | |
2966 | eval "DEFAULT_$LINE" | |
2967 | else | |
2968 | no_cache=1 | |
2969 | fi | |
2970 | ||
2971 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
52127426 JS |
2972 | |
2973 | fi | |
54276ccf VZ |
2974 | |
2975 | ||
2976 | eval "$ac_cv_use_compat22" | |
2977 | if test "$no_cache" != 1; then | |
2978 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2979 | fi | |
2980 | ||
2981 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
52127426 | 2982 | echo "$ac_t""yes" 1>&6 |
54276ccf | 2983 | else |
52127426 | 2984 | echo "$ac_t""no" 1>&6 |
54276ccf | 2985 | fi |
52127426 | 2986 | |
54276ccf | 2987 | |
3bd8fb5f RD |
2988 | # Check whether --enable-rpath or --disable-rpath was given. |
2989 | if test "${enable_rpath+set}" = set; then | |
2990 | enableval="$enable_rpath" | |
2991 | wxRPATH_DIR="$enableval" | |
52127426 JS |
2992 | fi |
2993 | ||
3bd8fb5f RD |
2994 | |
2995 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
2996 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
2997 | fi | |
2998 | ||
52127426 JS |
2999 | |
3000 | ||
3001 | ||
3002 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
3003 | echo "configure:3004: checking for --enable-intl" >&5 | |
10f2d63a VZ |
3004 | no_cache=0 |
3005 | # Check whether --enable-intl or --disable-intl was given. | |
3006 | if test "${enable_intl+set}" = set; then | |
3007 | enableval="$enable_intl" | |
52127426 | 3008 | |
10f2d63a VZ |
3009 | if test "$enableval" = yes; then |
3010 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3011 | else | |
3012 | ac_cv_use_intl='wxUSE_INTL=no' | |
3013 | fi | |
52127426 | 3014 | |
10f2d63a | 3015 | else |
52127426 | 3016 | |
10f2d63a VZ |
3017 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3018 | if test "x$LINE" != x ; then | |
3019 | eval "DEFAULT_$LINE" | |
3020 | else | |
3021 | no_cache=1 | |
3022 | fi | |
3023 | ||
3024 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
52127426 JS |
3025 | |
3026 | fi | |
10f2d63a VZ |
3027 | |
3028 | ||
3029 | eval "$ac_cv_use_intl" | |
3030 | if test "$no_cache" != 1; then | |
3031 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3032 | fi | |
3033 | ||
3034 | if test "$wxUSE_INTL" = yes; then | |
52127426 | 3035 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3036 | else |
52127426 | 3037 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3038 | fi |
52127426 | 3039 | |
10f2d63a | 3040 | |
52127426 JS |
3041 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
3042 | echo "configure:3043: checking for --enable-config" >&5 | |
10f2d63a VZ |
3043 | no_cache=0 |
3044 | # Check whether --enable-config or --disable-config was given. | |
3045 | if test "${enable_config+set}" = set; then | |
3046 | enableval="$enable_config" | |
52127426 | 3047 | |
10f2d63a VZ |
3048 | if test "$enableval" = yes; then |
3049 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3050 | else | |
3051 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3052 | fi | |
52127426 | 3053 | |
10f2d63a | 3054 | else |
52127426 | 3055 | |
10f2d63a VZ |
3056 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3057 | if test "x$LINE" != x ; then | |
3058 | eval "DEFAULT_$LINE" | |
3059 | else | |
3060 | no_cache=1 | |
3061 | fi | |
3062 | ||
3063 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
52127426 JS |
3064 | |
3065 | fi | |
10f2d63a VZ |
3066 | |
3067 | ||
3068 | eval "$ac_cv_use_config" | |
3069 | if test "$no_cache" != 1; then | |
3070 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3071 | fi | |
3072 | ||
3073 | if test "$wxUSE_CONFIG" = yes; then | |
52127426 | 3074 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3075 | else |
52127426 | 3076 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3077 | fi |
52127426 JS |
3078 | |
3079 | ||
698dcdb6 | 3080 | |
52127426 JS |
3081 | echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6 |
3082 | echo "configure:3083: checking for --enable-protocols" >&5 | |
a1622950 VZ |
3083 | no_cache=0 |
3084 | # Check whether --enable-protocols or --disable-protocols was given. | |
3085 | if test "${enable_protocols+set}" = set; then | |
3086 | enableval="$enable_protocols" | |
52127426 | 3087 | |
a1622950 VZ |
3088 | if test "$enableval" = yes; then |
3089 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3090 | else | |
3091 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3092 | fi | |
52127426 | 3093 | |
a1622950 | 3094 | else |
52127426 | 3095 | |
a1622950 VZ |
3096 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3097 | if test "x$LINE" != x ; then | |
3098 | eval "DEFAULT_$LINE" | |
3099 | else | |
3100 | no_cache=1 | |
3101 | fi | |
3102 | ||
3103 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
52127426 JS |
3104 | |
3105 | fi | |
a1622950 VZ |
3106 | |
3107 | ||
3108 | eval "$ac_cv_use_protocols" | |
3109 | if test "$no_cache" != 1; then | |
3110 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3111 | fi | |
3112 | ||
3113 | if test "$wxUSE_PROTOCOL" = yes; then | |
52127426 | 3114 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3115 | else |
52127426 | 3116 | echo "$ac_t""no" 1>&6 |
a1622950 | 3117 | fi |
52127426 | 3118 | |
a1622950 | 3119 | |
52127426 JS |
3120 | echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6 |
3121 | echo "configure:3122: checking for --enable-ftp" >&5 | |
a1622950 VZ |
3122 | no_cache=0 |
3123 | # Check whether --enable-ftp or --disable-ftp was given. | |
3124 | if test "${enable_ftp+set}" = set; then | |
3125 | enableval="$enable_ftp" | |
52127426 | 3126 | |
a1622950 VZ |
3127 | if test "$enableval" = yes; then |
3128 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3129 | else | |
3130 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3131 | fi | |
52127426 | 3132 | |
a1622950 | 3133 | else |
52127426 | 3134 | |
a1622950 VZ |
3135 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3136 | if test "x$LINE" != x ; then | |
3137 | eval "DEFAULT_$LINE" | |
3138 | else | |
3139 | no_cache=1 | |
3140 | fi | |
3141 | ||
3142 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
52127426 JS |
3143 | |
3144 | fi | |
a1622950 VZ |
3145 | |
3146 | ||
3147 | eval "$ac_cv_use_ftp" | |
3148 | if test "$no_cache" != 1; then | |
3149 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3150 | fi | |
3151 | ||
3152 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
52127426 | 3153 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3154 | else |
52127426 | 3155 | echo "$ac_t""no" 1>&6 |
a1622950 | 3156 | fi |
52127426 | 3157 | |
a1622950 | 3158 | |
52127426 JS |
3159 | echo $ac_n "checking for --enable-http""... $ac_c" 1>&6 |
3160 | echo "configure:3161: checking for --enable-http" >&5 | |
a1622950 VZ |
3161 | no_cache=0 |
3162 | # Check whether --enable-http or --disable-http was given. | |
3163 | if test "${enable_http+set}" = set; then | |
3164 | enableval="$enable_http" | |
52127426 | 3165 | |
a1622950 VZ |
3166 | if test "$enableval" = yes; then |
3167 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3168 | else | |
3169 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3170 | fi | |
52127426 | 3171 | |
a1622950 | 3172 | else |
52127426 | 3173 | |
a1622950 VZ |
3174 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3175 | if test "x$LINE" != x ; then | |
3176 | eval "DEFAULT_$LINE" | |
3177 | else | |
3178 | no_cache=1 | |
3179 | fi | |
3180 | ||
3181 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
52127426 JS |
3182 | |
3183 | fi | |
a1622950 VZ |
3184 | |
3185 | ||
3186 | eval "$ac_cv_use_http" | |
3187 | if test "$no_cache" != 1; then | |
3188 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3189 | fi | |
3190 | ||
3191 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
52127426 | 3192 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3193 | else |
52127426 | 3194 | echo "$ac_t""no" 1>&6 |
a1622950 | 3195 | fi |
52127426 | 3196 | |
a1622950 | 3197 | |
52127426 JS |
3198 | echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6 |
3199 | echo "configure:3200: checking for --enable-fileproto" >&5 | |
a1622950 VZ |
3200 | no_cache=0 |
3201 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3202 | if test "${enable_fileproto+set}" = set; then | |
3203 | enableval="$enable_fileproto" | |
52127426 | 3204 | |
a1622950 VZ |
3205 | if test "$enableval" = yes; then |
3206 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3207 | else | |
3208 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3209 | fi | |
52127426 | 3210 | |
a1622950 | 3211 | else |
52127426 | 3212 | |
a1622950 VZ |
3213 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
3214 | if test "x$LINE" != x ; then | |
3215 | eval "DEFAULT_$LINE" | |
3216 | else | |
3217 | no_cache=1 | |
3218 | fi | |
3219 | ||
3220 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
52127426 JS |
3221 | |
3222 | fi | |
a1622950 VZ |
3223 | |
3224 | ||
3225 | eval "$ac_cv_use_fileproto" | |
3226 | if test "$no_cache" != 1; then | |
3227 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3228 | fi | |
3229 | ||
3230 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
52127426 | 3231 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3232 | else |
52127426 | 3233 | echo "$ac_t""no" 1>&6 |
a1622950 | 3234 | fi |
52127426 | 3235 | |
a1622950 | 3236 | |
52127426 JS |
3237 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
3238 | echo "configure:3239: checking for --enable-sockets" >&5 | |
10f2d63a VZ |
3239 | no_cache=0 |
3240 | # Check whether --enable-sockets or --disable-sockets was given. | |
3241 | if test "${enable_sockets+set}" = set; then | |
3242 | enableval="$enable_sockets" | |
52127426 | 3243 | |
10f2d63a VZ |
3244 | if test "$enableval" = yes; then |
3245 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3246 | else | |
3247 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3248 | fi | |
52127426 | 3249 | |
10f2d63a | 3250 | else |
52127426 | 3251 | |
10f2d63a VZ |
3252 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3253 | if test "x$LINE" != x ; then | |
3254 | eval "DEFAULT_$LINE" | |
3255 | else | |
3256 | no_cache=1 | |
3257 | fi | |
3258 | ||
3259 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
52127426 JS |
3260 | |
3261 | fi | |
10f2d63a VZ |
3262 | |
3263 | ||
3264 | eval "$ac_cv_use_sockets" | |
3265 | if test "$no_cache" != 1; then | |
3266 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3267 | fi | |
3268 | ||
3269 | if test "$wxUSE_SOCKETS" = yes; then | |
52127426 | 3270 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3271 | else |
52127426 | 3272 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3273 | fi |
52127426 | 3274 | |
698dcdb6 | 3275 | |
52127426 JS |
3276 | |
3277 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
3278 | echo "configure:3279: checking for --enable-ipc" >&5 | |
10f2d63a | 3279 | no_cache=0 |
eb4efbdc VZ |
3280 | # Check whether --enable-ipc or --disable-ipc was given. |
3281 | if test "${enable_ipc+set}" = set; then | |
3282 | enableval="$enable_ipc" | |
52127426 | 3283 | |
10f2d63a | 3284 | if test "$enableval" = yes; then |
eb4efbdc | 3285 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3286 | else |
eb4efbdc | 3287 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3288 | fi |
52127426 | 3289 | |
10f2d63a | 3290 | else |
52127426 | 3291 | |
eb4efbdc | 3292 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3293 | if test "x$LINE" != x ; then |
3294 | eval "DEFAULT_$LINE" | |
3295 | else | |
3296 | no_cache=1 | |
3297 | fi | |
3298 | ||
eb4efbdc | 3299 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
52127426 JS |
3300 | |
3301 | fi | |
10f2d63a VZ |
3302 | |
3303 | ||
eb4efbdc | 3304 | eval "$ac_cv_use_ipc" |
10f2d63a | 3305 | if test "$no_cache" != 1; then |
eb4efbdc | 3306 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3307 | fi |
3308 | ||
eb4efbdc | 3309 | if test "$wxUSE_IPC" = yes; then |
52127426 | 3310 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3311 | else |
52127426 | 3312 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3313 | fi |
52127426 JS |
3314 | |
3315 | ||
698dcdb6 | 3316 | |
52127426 JS |
3317 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
3318 | echo "configure:3319: checking for --enable-cmdline" >&5 | |
1e6feb95 VZ |
3319 | no_cache=0 |
3320 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3321 | if test "${enable_cmdline+set}" = set; then | |
3322 | enableval="$enable_cmdline" | |
52127426 | 3323 | |
1e6feb95 VZ |
3324 | if test "$enableval" = yes; then |
3325 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3326 | else | |
3327 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3328 | fi | |
52127426 | 3329 | |
1e6feb95 | 3330 | else |
52127426 | 3331 | |
1e6feb95 VZ |
3332 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
3333 | if test "x$LINE" != x ; then | |
3334 | eval "DEFAULT_$LINE" | |
3335 | else | |
3336 | no_cache=1 | |
3337 | fi | |
3338 | ||
3339 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
52127426 JS |
3340 | |
3341 | fi | |
1e6feb95 VZ |
3342 | |
3343 | ||
3344 | eval "$ac_cv_use_cmdline" | |
3345 | if test "$no_cache" != 1; then | |
3346 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3347 | fi | |
3348 | ||
3349 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
52127426 | 3350 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3351 | else |
52127426 | 3352 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3353 | fi |
52127426 | 3354 | |
1e6feb95 | 3355 | |
52127426 JS |
3356 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 |
3357 | echo "configure:3358: checking for --enable-datetime" >&5 | |
1e6feb95 VZ |
3358 | no_cache=0 |
3359 | # Check whether --enable-datetime or --disable-datetime was given. | |
3360 | if test "${enable_datetime+set}" = set; then | |
3361 | enableval="$enable_datetime" | |
52127426 | 3362 | |
1e6feb95 VZ |
3363 | if test "$enableval" = yes; then |
3364 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3365 | else | |
3366 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3367 | fi | |
52127426 | 3368 | |
1e6feb95 | 3369 | else |
52127426 | 3370 | |
1e6feb95 VZ |
3371 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
3372 | if test "x$LINE" != x ; then | |
3373 | eval "DEFAULT_$LINE" | |
3374 | else | |
3375 | no_cache=1 | |
3376 | fi | |
3377 | ||
3378 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
52127426 JS |
3379 | |
3380 | fi | |
1e6feb95 VZ |
3381 | |
3382 | ||
3383 | eval "$ac_cv_use_datetime" | |
3384 | if test "$no_cache" != 1; then | |
3385 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3386 | fi | |
3387 | ||
3388 | if test "$wxUSE_DATETIME" = yes; then | |
52127426 | 3389 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3390 | else |
52127426 | 3391 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3392 | fi |
52127426 | 3393 | |
1e6feb95 | 3394 | |
52127426 JS |
3395 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 |
3396 | echo "configure:3397: checking for --enable-timedate" >&5 | |
1e6feb95 VZ |
3397 | no_cache=0 |
3398 | # Check whether --enable-timedate or --disable-timedate was given. | |
3399 | if test "${enable_timedate+set}" = set; then | |
3400 | enableval="$enable_timedate" | |
52127426 | 3401 | |
1e6feb95 VZ |
3402 | if test "$enableval" = yes; then |
3403 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3404 | else | |
3405 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3406 | fi | |
52127426 | 3407 | |
1e6feb95 | 3408 | else |
52127426 | 3409 | |
1e6feb95 VZ |
3410 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` |
3411 | if test "x$LINE" != x ; then | |
3412 | eval "DEFAULT_$LINE" | |
3413 | else | |
3414 | no_cache=1 | |
3415 | fi | |
3416 | ||
3417 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
52127426 JS |
3418 | |
3419 | fi | |
1e6feb95 VZ |
3420 | |
3421 | ||
3422 | eval "$ac_cv_use_timedate" | |
3423 | if test "$no_cache" != 1; then | |
3424 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3425 | fi | |
3426 | ||
3427 | if test "$wxUSE_TIMEDATE" = yes; then | |
52127426 | 3428 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3429 | else |
52127426 | 3430 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3431 | fi |
52127426 | 3432 | |
1e6feb95 | 3433 | |
52127426 JS |
3434 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 |
3435 | echo "configure:3436: checking for --enable-stopwatch" >&5 | |
1e6feb95 VZ |
3436 | no_cache=0 |
3437 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3438 | if test "${enable_stopwatch+set}" = set; then | |
3439 | enableval="$enable_stopwatch" | |
52127426 | 3440 | |
1e6feb95 VZ |
3441 | if test "$enableval" = yes; then |
3442 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3443 | else | |
3444 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3445 | fi | |
52127426 | 3446 | |
1e6feb95 | 3447 | else |
52127426 | 3448 | |
1e6feb95 VZ |
3449 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
3450 | if test "x$LINE" != x ; then | |
3451 | eval "DEFAULT_$LINE" | |
3452 | else | |
3453 | no_cache=1 | |
3454 | fi | |
3455 | ||
3456 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
52127426 JS |
3457 | |
3458 | fi | |
1e6feb95 VZ |
3459 | |
3460 | ||
3461 | eval "$ac_cv_use_stopwatch" | |
3462 | if test "$no_cache" != 1; then | |
3463 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3464 | fi | |
3465 | ||
3466 | if test "$wxUSE_STOPWATCH" = yes; then | |
52127426 | 3467 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3468 | else |
52127426 | 3469 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3470 | fi |
52127426 | 3471 | |
1e6feb95 | 3472 | |
52127426 JS |
3473 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
3474 | echo "configure:3475: checking for --enable-dialupman" >&5 | |
10f2d63a | 3475 | no_cache=0 |
eb4efbdc VZ |
3476 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3477 | if test "${enable_dialupman+set}" = set; then | |
3478 | enableval="$enable_dialupman" | |
52127426 | 3479 | |
10f2d63a | 3480 | if test "$enableval" = yes; then |
eb4efbdc | 3481 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3482 | else |
eb4efbdc | 3483 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3484 | fi |
52127426 | 3485 | |
10f2d63a | 3486 | else |
52127426 | 3487 | |
eb4efbdc | 3488 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3489 | if test "x$LINE" != x ; then |
3490 | eval "DEFAULT_$LINE" | |
3491 | else | |
3492 | no_cache=1 | |
3493 | fi | |
3494 | ||
eb4efbdc | 3495 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
52127426 JS |
3496 | |
3497 | fi | |
10f2d63a VZ |
3498 | |
3499 | ||
eb4efbdc | 3500 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3501 | if test "$no_cache" != 1; then |
eb4efbdc | 3502 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3503 | fi |
3504 | ||
eb4efbdc | 3505 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
52127426 | 3506 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3507 | else |
52127426 | 3508 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3509 | fi |
52127426 | 3510 | |
10f2d63a | 3511 | |
52127426 JS |
3512 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
3513 | echo "configure:3514: checking for --enable-apple_ieee" >&5 | |
10f2d63a VZ |
3514 | no_cache=0 |
3515 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3516 | if test "${enable_apple_ieee+set}" = set; then | |
3517 | enableval="$enable_apple_ieee" | |
52127426 | 3518 | |
10f2d63a VZ |
3519 | if test "$enableval" = yes; then |
3520 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3521 | else | |
3522 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3523 | fi | |
52127426 | 3524 | |
10f2d63a | 3525 | else |
52127426 | 3526 | |
10f2d63a VZ |
3527 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3528 | if test "x$LINE" != x ; then | |
3529 | eval "DEFAULT_$LINE" | |
3530 | else | |
3531 | no_cache=1 | |
3532 | fi | |
3533 | ||
3534 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
52127426 JS |
3535 | |
3536 | fi | |
10f2d63a VZ |
3537 | |
3538 | ||
3539 | eval "$ac_cv_use_apple_ieee" | |
3540 | if test "$no_cache" != 1; then | |
3541 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3542 | fi | |
3543 | ||
3544 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
52127426 | 3545 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3546 | else |
52127426 | 3547 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3548 | fi |
52127426 | 3549 | |
10f2d63a | 3550 | |
52127426 JS |
3551 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
3552 | echo "configure:3553: checking for --enable-timer" >&5 | |
10f2d63a | 3553 | no_cache=0 |
1e6feb95 VZ |
3554 | # Check whether --enable-timer or --disable-timer was given. |
3555 | if test "${enable_timer+set}" = set; then | |
3556 | enableval="$enable_timer" | |
52127426 | 3557 | |
10f2d63a | 3558 | if test "$enableval" = yes; then |
1e6feb95 | 3559 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3560 | else |
1e6feb95 | 3561 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3562 | fi |
52127426 | 3563 | |
10f2d63a | 3564 | else |
52127426 | 3565 | |
1e6feb95 | 3566 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3567 | if test "x$LINE" != x ; then |
3568 | eval "DEFAULT_$LINE" | |
3569 | else | |
3570 | no_cache=1 | |
3571 | fi | |
3572 | ||
1e6feb95 | 3573 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
52127426 JS |
3574 | |
3575 | fi | |
10f2d63a VZ |
3576 | |
3577 | ||
1e6feb95 | 3578 | eval "$ac_cv_use_timer" |
10f2d63a | 3579 | if test "$no_cache" != 1; then |
1e6feb95 | 3580 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3581 | fi |
3582 | ||
1e6feb95 | 3583 | if test "$wxUSE_TIMER" = yes; then |
52127426 | 3584 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3585 | else |
52127426 | 3586 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3587 | fi |
52127426 | 3588 | |
10f2d63a | 3589 | |
52127426 JS |
3590 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
3591 | echo "configure:3592: checking for --enable-wave" >&5 | |
10f2d63a VZ |
3592 | no_cache=0 |
3593 | # Check whether --enable-wave or --disable-wave was given. | |
3594 | if test "${enable_wave+set}" = set; then | |
3595 | enableval="$enable_wave" | |
52127426 | 3596 | |
10f2d63a VZ |
3597 | if test "$enableval" = yes; then |
3598 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3599 | else | |
3600 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3601 | fi | |
52127426 | 3602 | |
10f2d63a | 3603 | else |
52127426 | 3604 | |
10f2d63a VZ |
3605 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3606 | if test "x$LINE" != x ; then | |
3607 | eval "DEFAULT_$LINE" | |
3608 | else | |
3609 | no_cache=1 | |
3610 | fi | |
3611 | ||
3612 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
52127426 JS |
3613 | |
3614 | fi | |
10f2d63a VZ |
3615 | |
3616 | ||
3617 | eval "$ac_cv_use_wave" | |
3618 | if test "$no_cache" != 1; then | |
3619 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3620 | fi | |
3621 | ||
3622 | if test "$wxUSE_WAVE" = yes; then | |
52127426 | 3623 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3624 | else |
52127426 | 3625 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3626 | fi |
52127426 | 3627 | |
10f2d63a | 3628 | |
52127426 JS |
3629 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
3630 | echo "configure:3631: checking for --enable-fraction" >&5 | |
10f2d63a VZ |
3631 | no_cache=0 |
3632 | # Check whether --enable-fraction or --disable-fraction was given. | |
3633 | if test "${enable_fraction+set}" = set; then | |
3634 | enableval="$enable_fraction" | |
52127426 | 3635 | |
10f2d63a VZ |
3636 | if test "$enableval" = yes; then |
3637 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3638 | else | |
3639 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3640 | fi | |
52127426 | 3641 | |
10f2d63a | 3642 | else |
52127426 | 3643 | |
10f2d63a VZ |
3644 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3645 | if test "x$LINE" != x ; then | |
3646 | eval "DEFAULT_$LINE" | |
3647 | else | |
3648 | no_cache=1 | |
3649 | fi | |
3650 | ||
3651 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
52127426 JS |
3652 | |
3653 | fi | |
10f2d63a VZ |
3654 | |
3655 | ||
3656 | eval "$ac_cv_use_fraction" | |
3657 | if test "$no_cache" != 1; then | |
3658 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3659 | fi | |
3660 | ||
3661 | if test "$wxUSE_FRACTION" = yes; then | |
52127426 | 3662 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3663 | else |
52127426 | 3664 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3665 | fi |
52127426 | 3666 | |
10f2d63a | 3667 | |
52127426 JS |
3668 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
3669 | echo "configure:3670: checking for --enable-dynlib" >&5 | |
10f2d63a VZ |
3670 | no_cache=0 |
3671 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3672 | if test "${enable_dynlib+set}" = set; then | |
3673 | enableval="$enable_dynlib" | |
52127426 | 3674 | |
10f2d63a VZ |
3675 | if test "$enableval" = yes; then |
3676 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3677 | else | |
3678 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3679 | fi | |
52127426 | 3680 | |
10f2d63a | 3681 | else |
52127426 | 3682 | |
10f2d63a VZ |
3683 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3684 | if test "x$LINE" != x ; then | |
3685 | eval "DEFAULT_$LINE" | |
3686 | else | |
3687 | no_cache=1 | |
3688 | fi | |
3689 | ||
3690 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
52127426 JS |
3691 | |
3692 | fi | |
10f2d63a VZ |
3693 | |
3694 | ||
3695 | eval "$ac_cv_use_dynlib" | |
3696 | if test "$no_cache" != 1; then | |
3697 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3698 | fi | |
3699 | ||
3700 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
52127426 | 3701 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3702 | else |
52127426 | 3703 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3704 | fi |
52127426 | 3705 | |
10f2d63a | 3706 | |
52127426 JS |
3707 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 |
3708 | echo "configure:3709: checking for --enable-dynamicloader" >&5 | |
0b9ab0bd RL |
3709 | no_cache=0 |
3710 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3711 | if test "${enable_dynamicloader+set}" = set; then | |
3712 | enableval="$enable_dynamicloader" | |
52127426 | 3713 | |
0b9ab0bd RL |
3714 | if test "$enableval" = yes; then |
3715 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3716 | else | |
3717 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3718 | fi | |
52127426 | 3719 | |
0b9ab0bd | 3720 | else |
52127426 | 3721 | |
0b9ab0bd RL |
3722 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
3723 | if test "x$LINE" != x ; then | |
3724 | eval "DEFAULT_$LINE" | |
3725 | else | |
3726 | no_cache=1 | |
3727 | fi | |
3728 | ||
3729 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
52127426 JS |
3730 | |
3731 | fi | |
0b9ab0bd RL |
3732 | |
3733 | ||
3734 | eval "$ac_cv_use_dynamicloader" | |
3735 | if test "$no_cache" != 1; then | |
3736 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3737 | fi | |
3738 | ||
3739 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
52127426 | 3740 | echo "$ac_t""yes" 1>&6 |
0b9ab0bd | 3741 | else |
52127426 | 3742 | echo "$ac_t""no" 1>&6 |
0b9ab0bd | 3743 | fi |
52127426 | 3744 | |
0b9ab0bd | 3745 | |
52127426 JS |
3746 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
3747 | echo "configure:3748: checking for --enable-longlong" >&5 | |
10f2d63a VZ |
3748 | no_cache=0 |
3749 | # Check whether --enable-longlong or --disable-longlong was given. | |
3750 | if test "${enable_longlong+set}" = set; then | |
3751 | enableval="$enable_longlong" | |
52127426 | 3752 | |
10f2d63a VZ |
3753 | if test "$enableval" = yes; then |
3754 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3755 | else | |
3756 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3757 | fi | |
52127426 | 3758 | |
10f2d63a | 3759 | else |
52127426 | 3760 | |
10f2d63a VZ |
3761 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3762 | if test "x$LINE" != x ; then | |
3763 | eval "DEFAULT_$LINE" | |
3764 | else | |
3765 | no_cache=1 | |
3766 | fi | |
3767 | ||
3768 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
52127426 JS |
3769 | |
3770 | fi | |
10f2d63a VZ |
3771 | |
3772 | ||
3773 | eval "$ac_cv_use_longlong" | |
3774 | if test "$no_cache" != 1; then | |
3775 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3776 | fi | |
3777 | ||
3778 | if test "$wxUSE_LONGLONG" = yes; then | |
52127426 | 3779 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3780 | else |
52127426 | 3781 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3782 | fi |
52127426 | 3783 | |
10f2d63a | 3784 | |
52127426 JS |
3785 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
3786 | echo "configure:3787: checking for --enable-geometry" >&5 | |
e8f65ba6 RR |
3787 | no_cache=0 |
3788 | # Check whether --enable-geometry or --disable-geometry was given. | |
3789 | if test "${enable_geometry+set}" = set; then | |
3790 | enableval="$enable_geometry" | |
52127426 | 3791 | |
e8f65ba6 RR |
3792 | if test "$enableval" = yes; then |
3793 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3794 | else | |
3795 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3796 | fi | |
52127426 | 3797 | |
e8f65ba6 | 3798 | else |
52127426 | 3799 | |
e8f65ba6 RR |
3800 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3801 | if test "x$LINE" != x ; then | |
3802 | eval "DEFAULT_$LINE" | |
3803 | else | |
3804 | no_cache=1 | |
3805 | fi | |
3806 | ||
3807 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
52127426 JS |
3808 | |
3809 | fi | |
e8f65ba6 RR |
3810 | |
3811 | ||
3812 | eval "$ac_cv_use_geometry" | |
3813 | if test "$no_cache" != 1; then | |
3814 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3815 | fi | |
3816 | ||
3817 | if test "$wxUSE_GEOMETRY" = yes; then | |
52127426 | 3818 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3819 | else |
52127426 | 3820 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3821 | fi |
52127426 | 3822 | |
e8f65ba6 | 3823 | |
52127426 JS |
3824 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
3825 | echo "configure:3826: checking for --enable-log" >&5 | |
10f2d63a VZ |
3826 | no_cache=0 |
3827 | # Check whether --enable-log or --disable-log was given. | |
3828 | if test "${enable_log+set}" = set; then | |
3829 | enableval="$enable_log" | |
52127426 | 3830 | |
10f2d63a VZ |
3831 | if test "$enableval" = yes; then |
3832 | ac_cv_use_log='wxUSE_LOG=yes' | |
3833 | else | |
3834 | ac_cv_use_log='wxUSE_LOG=no' | |
3835 | fi | |
52127426 | 3836 | |
10f2d63a | 3837 | else |
52127426 | 3838 | |
10f2d63a VZ |
3839 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3840 | if test "x$LINE" != x ; then | |
3841 | eval "DEFAULT_$LINE" | |
3842 | else | |
3843 | no_cache=1 | |
3844 | fi | |
3845 | ||
3846 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
52127426 JS |
3847 | |
3848 | fi | |
10f2d63a VZ |
3849 | |
3850 | ||
3851 | eval "$ac_cv_use_log" | |
3852 | if test "$no_cache" != 1; then | |
3853 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3854 | fi | |
3855 | ||
3856 | if test "$wxUSE_LOG" = yes; then | |
52127426 | 3857 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3858 | else |
52127426 | 3859 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3860 | fi |
52127426 | 3861 | |
10f2d63a | 3862 | |
52127426 JS |
3863 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
3864 | echo "configure:3865: checking for --enable-streams" >&5 | |
10f2d63a VZ |
3865 | no_cache=0 |
3866 | # Check whether --enable-streams or --disable-streams was given. | |
3867 | if test "${enable_streams+set}" = set; then | |
3868 | enableval="$enable_streams" | |
52127426 | 3869 | |
10f2d63a VZ |
3870 | if test "$enableval" = yes; then |
3871 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3872 | else | |
3873 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3874 | fi | |
52127426 | 3875 | |
10f2d63a | 3876 | else |
52127426 | 3877 | |
10f2d63a VZ |
3878 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3879 | if test "x$LINE" != x ; then | |
3880 | eval "DEFAULT_$LINE" | |
3881 | else | |
3882 | no_cache=1 | |
3883 | fi | |
3884 | ||
3885 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
52127426 JS |
3886 | |
3887 | fi | |
10f2d63a VZ |
3888 | |
3889 | ||
3890 | eval "$ac_cv_use_streams" | |
3891 | if test "$no_cache" != 1; then | |
3892 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3893 | fi | |
3894 | ||
3895 | if test "$wxUSE_STREAMS" = yes; then | |
52127426 | 3896 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3897 | else |
52127426 | 3898 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3899 | fi |
52127426 | 3900 | |
10f2d63a | 3901 | |
52127426 JS |
3902 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
3903 | echo "configure:3904: checking for --enable-file" >&5 | |
10f2d63a VZ |
3904 | no_cache=0 |
3905 | # Check whether --enable-file or --disable-file was given. | |
3906 | if test "${enable_file+set}" = set; then | |
3907 | enableval="$enable_file" | |
52127426 | 3908 | |
10f2d63a VZ |
3909 | if test "$enableval" = yes; then |
3910 | ac_cv_use_file='wxUSE_FILE=yes' | |
3911 | else | |
3912 | ac_cv_use_file='wxUSE_FILE=no' | |
3913 | fi | |
52127426 | 3914 | |
10f2d63a | 3915 | else |
52127426 | 3916 | |
10f2d63a VZ |
3917 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3918 | if test "x$LINE" != x ; then | |
3919 | eval "DEFAULT_$LINE" | |
3920 | else | |
3921 | no_cache=1 | |
3922 | fi | |
3923 | ||
3924 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
52127426 JS |
3925 | |
3926 | fi | |
10f2d63a VZ |
3927 | |
3928 | ||
3929 | eval "$ac_cv_use_file" | |
3930 | if test "$no_cache" != 1; then | |
3931 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3932 | fi | |
3933 | ||
3934 | if test "$wxUSE_FILE" = yes; then | |
52127426 | 3935 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3936 | else |
52127426 | 3937 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3938 | fi |
52127426 | 3939 | |
10f2d63a | 3940 | |
52127426 JS |
3941 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
3942 | echo "configure:3943: checking for --enable-ffile" >&5 | |
10f2d63a | 3943 | no_cache=0 |
1e6feb95 VZ |
3944 | # Check whether --enable-ffile or --disable-ffile was given. |
3945 | if test "${enable_ffile+set}" = set; then | |
3946 | enableval="$enable_ffile" | |
52127426 | 3947 | |
10f2d63a | 3948 | if test "$enableval" = yes; then |
1e6feb95 | 3949 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3950 | else |
1e6feb95 | 3951 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3952 | fi |
52127426 | 3953 | |
10f2d63a | 3954 | else |
52127426 | 3955 | |
1e6feb95 | 3956 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3957 | if test "x$LINE" != x ; then |
3958 | eval "DEFAULT_$LINE" | |
3959 | else | |
3960 | no_cache=1 | |
3961 | fi | |
3962 | ||
1e6feb95 | 3963 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
52127426 JS |
3964 | |
3965 | fi | |
10f2d63a VZ |
3966 | |
3967 | ||
1e6feb95 | 3968 | eval "$ac_cv_use_ffile" |
10f2d63a | 3969 | if test "$no_cache" != 1; then |
1e6feb95 | 3970 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3971 | fi |
3972 | ||
1e6feb95 | 3973 | if test "$wxUSE_FFILE" = yes; then |
52127426 | 3974 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3975 | else |
52127426 | 3976 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3977 | fi |
52127426 | 3978 | |
10f2d63a | 3979 | |
52127426 JS |
3980 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
3981 | echo "configure:3982: checking for --enable-textbuf" >&5 | |
a3a584a7 VZ |
3982 | no_cache=0 |
3983 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
3984 | if test "${enable_textbuf+set}" = set; then | |
3985 | enableval="$enable_textbuf" | |
52127426 | 3986 | |
a3a584a7 VZ |
3987 | if test "$enableval" = yes; then |
3988 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
3989 | else | |
3990 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
3991 | fi | |
52127426 | 3992 | |
a3a584a7 | 3993 | else |
52127426 | 3994 | |
a3a584a7 VZ |
3995 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
3996 | if test "x$LINE" != x ; then | |
3997 | eval "DEFAULT_$LINE" | |
3998 | else | |
3999 | no_cache=1 | |
4000 | fi | |
4001 | ||
4002 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
52127426 JS |
4003 | |
4004 | fi | |
a3a584a7 VZ |
4005 | |
4006 | ||
4007 | eval "$ac_cv_use_textbuf" | |
4008 | if test "$no_cache" != 1; then | |
4009 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4010 | fi | |
4011 | ||
4012 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
52127426 | 4013 | echo "$ac_t""yes" 1>&6 |
a3a584a7 | 4014 | else |
52127426 | 4015 | echo "$ac_t""no" 1>&6 |
a3a584a7 | 4016 | fi |
52127426 | 4017 | |
a3a584a7 | 4018 | |
52127426 JS |
4019 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
4020 | echo "configure:4021: checking for --enable-textfile" >&5 | |
10f2d63a | 4021 | no_cache=0 |
1e6feb95 VZ |
4022 | # Check whether --enable-textfile or --disable-textfile was given. |
4023 | if test "${enable_textfile+set}" = set; then | |
4024 | enableval="$enable_textfile" | |
52127426 | 4025 | |
10f2d63a | 4026 | if test "$enableval" = yes; then |
1e6feb95 | 4027 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4028 | else |
1e6feb95 | 4029 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4030 | fi |
52127426 | 4031 | |
10f2d63a | 4032 | else |
52127426 | 4033 | |
1e6feb95 | 4034 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4035 | if test "x$LINE" != x ; then |
4036 | eval "DEFAULT_$LINE" | |
4037 | else | |
4038 | no_cache=1 | |
4039 | fi | |
4040 | ||
1e6feb95 | 4041 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
52127426 JS |
4042 | |
4043 | fi | |
10f2d63a VZ |
4044 | |
4045 | ||
1e6feb95 | 4046 | eval "$ac_cv_use_textfile" |
10f2d63a | 4047 | if test "$no_cache" != 1; then |
1e6feb95 | 4048 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4049 | fi |
4050 | ||
1e6feb95 | 4051 | if test "$wxUSE_TEXTFILE" = yes; then |
52127426 | 4052 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4053 | else |
52127426 | 4054 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4055 | fi |
52127426 | 4056 | |
10f2d63a | 4057 | |
52127426 JS |
4058 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
4059 | echo "configure:4060: checking for --enable-fontmap" >&5 | |
10f2d63a | 4060 | no_cache=0 |
1e6feb95 VZ |
4061 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4062 | if test "${enable_fontmap+set}" = set; then | |
4063 | enableval="$enable_fontmap" | |
52127426 | 4064 | |
10f2d63a | 4065 | if test "$enableval" = yes; then |
1e6feb95 | 4066 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4067 | else |
1e6feb95 | 4068 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4069 | fi |
52127426 | 4070 | |
10f2d63a | 4071 | else |
52127426 | 4072 | |
1e6feb95 | 4073 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4074 | if test "x$LINE" != x ; then |
4075 | eval "DEFAULT_$LINE" | |
4076 | else | |
4077 | no_cache=1 | |
4078 | fi | |
4079 | ||
1e6feb95 | 4080 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
52127426 JS |
4081 | |
4082 | fi | |
10f2d63a VZ |
4083 | |
4084 | ||
1e6feb95 | 4085 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4086 | if test "$no_cache" != 1; then |
1e6feb95 | 4087 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4088 | fi |
4089 | ||
1e6feb95 | 4090 | if test "$wxUSE_FONTMAP" = yes; then |
52127426 | 4091 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4092 | else |
52127426 | 4093 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4094 | fi |
52127426 | 4095 | |
10f2d63a | 4096 | |
52127426 JS |
4097 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
4098 | echo "configure:4099: checking for --enable-unicode" >&5 | |
10f2d63a | 4099 | no_cache=0 |
1e6feb95 VZ |
4100 | # Check whether --enable-unicode or --disable-unicode was given. |
4101 | if test "${enable_unicode+set}" = set; then | |
4102 | enableval="$enable_unicode" | |
52127426 | 4103 | |
1e6feb95 VZ |
4104 | if test "$enableval" = yes; then |
4105 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4106 | else | |
4107 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4108 | fi | |
52127426 | 4109 | |
1e6feb95 | 4110 | else |
52127426 | 4111 | |
1e6feb95 VZ |
4112 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4113 | if test "x$LINE" != x ; then | |
4114 | eval "DEFAULT_$LINE" | |
4115 | else | |
4116 | no_cache=1 | |
4117 | fi | |
4118 | ||
4119 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
52127426 JS |
4120 | |
4121 | fi | |
1e6feb95 VZ |
4122 | |
4123 | ||
4124 | eval "$ac_cv_use_unicode" | |
4125 | if test "$no_cache" != 1; then | |
4126 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4127 | fi | |
4128 | ||
4129 | if test "$wxUSE_UNICODE" = yes; then | |
52127426 | 4130 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4131 | else |
52127426 | 4132 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4133 | fi |
52127426 | 4134 | |
1e6feb95 | 4135 | |
52127426 JS |
4136 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 |
4137 | echo "configure:4138: checking for --enable-mslu" >&5 | |
a72a4bfa VS |
4138 | no_cache=0 |
4139 | # Check whether --enable-mslu or --disable-mslu was given. | |
4140 | if test "${enable_mslu+set}" = set; then | |
4141 | enableval="$enable_mslu" | |
52127426 | 4142 | |
a72a4bfa VS |
4143 | if test "$enableval" = yes; then |
4144 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4145 | else | |
4146 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4147 | fi | |
52127426 | 4148 | |
a72a4bfa | 4149 | else |
52127426 | 4150 | |
a72a4bfa VS |
4151 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
4152 | if test "x$LINE" != x ; then | |
4153 | eval "DEFAULT_$LINE" | |
4154 | else | |
4155 | no_cache=1 | |
4156 | fi | |
4157 | ||
4158 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
52127426 JS |
4159 | |
4160 | fi | |
a72a4bfa VS |
4161 | |
4162 | ||
4163 | eval "$ac_cv_use_mslu" | |
4164 | if test "$no_cache" != 1; then | |
4165 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4166 | fi | |
4167 | ||
4168 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
52127426 | 4169 | echo "$ac_t""yes" 1>&6 |
a72a4bfa | 4170 | else |
52127426 | 4171 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 4172 | fi |
52127426 | 4173 | |
a72a4bfa | 4174 | |
52127426 JS |
4175 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
4176 | echo "configure:4177: checking for --enable-wxprintfv" >&5 | |
1e6feb95 VZ |
4177 | no_cache=0 |
4178 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4179 | if test "${enable_wxprintfv+set}" = set; then | |
4180 | enableval="$enable_wxprintfv" | |
52127426 | 4181 | |
1e6feb95 | 4182 | if test "$enableval" = yes; then |
10f2d63a VZ |
4183 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4184 | else | |
4185 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4186 | fi | |
52127426 | 4187 | |
10f2d63a | 4188 | else |
52127426 | 4189 | |
10f2d63a VZ |
4190 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4191 | if test "x$LINE" != x ; then | |
4192 | eval "DEFAULT_$LINE" | |
4193 | else | |
4194 | no_cache=1 | |
4195 | fi | |
4196 | ||
4197 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
52127426 JS |
4198 | |
4199 | fi | |
10f2d63a VZ |
4200 | |
4201 | ||
4202 | eval "$ac_cv_use_wxprintfv" | |
4203 | if test "$no_cache" != 1; then | |
4204 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4205 | fi | |
4206 | ||
4207 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
52127426 | 4208 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4209 | else |
52127426 | 4210 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4211 | fi |
52127426 | 4212 | |
10f2d63a | 4213 | |
52127426 JS |
4214 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
4215 | echo "configure:4216: checking for --enable-std_iostreams" >&5 | |
10f2d63a VZ |
4216 | no_cache=0 |
4217 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4218 | if test "${enable_std_iostreams+set}" = set; then | |
4219 | enableval="$enable_std_iostreams" | |
52127426 | 4220 | |
10f2d63a VZ |
4221 | if test "$enableval" = yes; then |
4222 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4223 | else | |
4224 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4225 | fi | |
52127426 | 4226 | |
10f2d63a | 4227 | else |
52127426 | 4228 | |
10f2d63a VZ |
4229 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4230 | if test "x$LINE" != x ; then | |
4231 | eval "DEFAULT_$LINE" | |
4232 | else | |
4233 | no_cache=1 | |
4234 | fi | |
4235 | ||
4236 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
52127426 JS |
4237 | |
4238 | fi | |
10f2d63a VZ |
4239 | |
4240 | ||
4241 | eval "$ac_cv_use_std_iostreams" | |
4242 | if test "$no_cache" != 1; then | |
4243 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4244 | fi | |
4245 | ||
4246 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
52127426 | 4247 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4248 | else |
52127426 | 4249 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4250 | fi |
52127426 | 4251 | |
10f2d63a | 4252 | |
52127426 JS |
4253 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
4254 | echo "configure:4255: checking for --enable-filesystem" >&5 | |
24528b0c VS |
4255 | no_cache=0 |
4256 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4257 | if test "${enable_filesystem+set}" = set; then | |
4258 | enableval="$enable_filesystem" | |
52127426 | 4259 | |
24528b0c VS |
4260 | if test "$enableval" = yes; then |
4261 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4262 | else | |
4263 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4264 | fi | |
52127426 | 4265 | |
24528b0c | 4266 | else |
52127426 | 4267 | |
24528b0c VS |
4268 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4269 | if test "x$LINE" != x ; then | |
4270 | eval "DEFAULT_$LINE" | |
4271 | else | |
4272 | no_cache=1 | |
4273 | fi | |
4274 | ||
4275 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
52127426 JS |
4276 | |
4277 | fi | |
24528b0c VS |
4278 | |
4279 | ||
4280 | eval "$ac_cv_use_filesystem" | |
4281 | if test "$no_cache" != 1; then | |
4282 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4283 | fi | |
4284 | ||
4285 | if test "$wxUSE_FILESYSTEM" = yes; then | |
52127426 | 4286 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4287 | else |
52127426 | 4288 | echo "$ac_t""no" 1>&6 |
24528b0c | 4289 | fi |
52127426 | 4290 | |
24528b0c | 4291 | |
52127426 JS |
4292 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
4293 | echo "configure:4294: checking for --enable-fs_inet" >&5 | |
10f2d63a VZ |
4294 | no_cache=0 |
4295 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4296 | if test "${enable_fs_inet+set}" = set; then | |
4297 | enableval="$enable_fs_inet" | |
52127426 | 4298 | |
10f2d63a VZ |
4299 | if test "$enableval" = yes; then |
4300 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4301 | else | |
4302 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4303 | fi | |
52127426 | 4304 | |
10f2d63a | 4305 | else |
52127426 | 4306 | |
10f2d63a VZ |
4307 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4308 | if test "x$LINE" != x ; then | |
4309 | eval "DEFAULT_$LINE" | |
4310 | else | |
4311 | no_cache=1 | |
4312 | fi | |
4313 | ||
4314 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
52127426 JS |
4315 | |
4316 | fi | |
10f2d63a VZ |
4317 | |
4318 | ||
4319 | eval "$ac_cv_use_fs_inet" | |
4320 | if test "$no_cache" != 1; then | |
4321 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4322 | fi | |
4323 | ||
4324 | if test "$wxUSE_FS_INET" = yes; then | |
52127426 | 4325 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4326 | else |
52127426 | 4327 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4328 | fi |
52127426 | 4329 | |
10f2d63a | 4330 | |
52127426 JS |
4331 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
4332 | echo "configure:4333: checking for --enable-fs_zip" >&5 | |
10f2d63a VZ |
4333 | no_cache=0 |
4334 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4335 | if test "${enable_fs_zip+set}" = set; then | |
4336 | enableval="$enable_fs_zip" | |
52127426 | 4337 | |
10f2d63a VZ |
4338 | if test "$enableval" = yes; then |
4339 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4340 | else | |
4341 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4342 | fi | |
52127426 | 4343 | |
10f2d63a | 4344 | else |
52127426 | 4345 | |
10f2d63a VZ |
4346 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4347 | if test "x$LINE" != x ; then | |
4348 | eval "DEFAULT_$LINE" | |
4349 | else | |
4350 | no_cache=1 | |
4351 | fi | |
4352 | ||
4353 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
52127426 JS |
4354 | |
4355 | fi | |
10f2d63a VZ |
4356 | |
4357 | ||
4358 | eval "$ac_cv_use_fs_zip" | |
4359 | if test "$no_cache" != 1; then | |
4360 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4361 | fi | |
4362 | ||
4363 | if test "$wxUSE_FS_ZIP" = yes; then | |
52127426 | 4364 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4365 | else |
52127426 | 4366 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4367 | fi |
52127426 | 4368 | |
10f2d63a | 4369 | |
52127426 JS |
4370 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
4371 | echo "configure:4372: checking for --enable-zipstream" >&5 | |
10f2d63a VZ |
4372 | no_cache=0 |
4373 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4374 | if test "${enable_zipstream+set}" = set; then | |
4375 | enableval="$enable_zipstream" | |
52127426 | 4376 | |
10f2d63a VZ |
4377 | if test "$enableval" = yes; then |
4378 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4379 | else | |
4380 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4381 | fi | |
52127426 | 4382 | |
10f2d63a | 4383 | else |
52127426 | 4384 | |
10f2d63a VZ |
4385 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4386 | if test "x$LINE" != x ; then | |
4387 | eval "DEFAULT_$LINE" | |
4388 | else | |
4389 | no_cache=1 | |
4390 | fi | |
4391 | ||
4392 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
52127426 JS |
4393 | |
4394 | fi | |
10f2d63a VZ |
4395 | |
4396 | ||
4397 | eval "$ac_cv_use_zipstream" | |
4398 | if test "$no_cache" != 1; then | |
4399 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4400 | fi | |
4401 | ||
4402 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
52127426 | 4403 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4404 | else |
52127426 | 4405 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4406 | fi |
52127426 | 4407 | |
698dcdb6 | 4408 | |
52127426 JS |
4409 | |
4410 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
4411 | echo "configure:4412: checking for --enable-catch_segvs" >&5 | |
eb4efbdc VZ |
4412 | no_cache=0 |
4413 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4414 | if test "${enable_catch_segvs+set}" = set; then | |
4415 | enableval="$enable_catch_segvs" | |
52127426 | 4416 | |
eb4efbdc VZ |
4417 | if test "$enableval" = yes; then |
4418 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4419 | else | |
4420 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4421 | fi | |
52127426 | 4422 | |
eb4efbdc | 4423 | else |
52127426 | 4424 | |
eb4efbdc VZ |
4425 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4426 | if test "x$LINE" != x ; then | |
4427 | eval "DEFAULT_$LINE" | |
4428 | else | |
4429 | no_cache=1 | |
4430 | fi | |
4431 | ||
4432 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
52127426 JS |
4433 | |
4434 | fi | |
eb4efbdc VZ |
4435 | |
4436 | ||
4437 | eval "$ac_cv_use_catch_segvs" | |
4438 | if test "$no_cache" != 1; then | |
4439 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4440 | fi | |
4441 | ||
4442 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
52127426 | 4443 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4444 | else |
52127426 | 4445 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4446 | fi |
52127426 | 4447 | |
eb4efbdc | 4448 | |
52127426 JS |
4449 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
4450 | echo "configure:4451: checking for --enable-snglinst" >&5 | |
4f3c5f06 VZ |
4451 | no_cache=0 |
4452 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4453 | if test "${enable_snglinst+set}" = set; then | |
4454 | enableval="$enable_snglinst" | |
52127426 | 4455 | |
4f3c5f06 VZ |
4456 | if test "$enableval" = yes; then |
4457 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4458 | else | |
4459 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4460 | fi | |
52127426 | 4461 | |
4f3c5f06 | 4462 | else |
52127426 | 4463 | |
4f3c5f06 VZ |
4464 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4465 | if test "x$LINE" != x ; then | |
4466 | eval "DEFAULT_$LINE" | |
4467 | else | |
4468 | no_cache=1 | |
4469 | fi | |
4470 | ||
4471 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
52127426 JS |
4472 | |
4473 | fi | |
4f3c5f06 VZ |
4474 | |
4475 | ||
4476 | eval "$ac_cv_use_snglinst" | |
4477 | if test "$no_cache" != 1; then | |
4478 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4479 | fi | |
4480 | ||
4481 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
52127426 | 4482 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4483 | else |
52127426 | 4484 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4485 | fi |
52127426 JS |
4486 | |
4487 | ||
698dcdb6 | 4488 | |
52127426 JS |
4489 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
4490 | echo "configure:4491: checking for --enable-mimetype" >&5 | |
1e6feb95 VZ |
4491 | no_cache=0 |
4492 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4493 | if test "${enable_mimetype+set}" = set; then | |
4494 | enableval="$enable_mimetype" | |
52127426 | 4495 | |
1e6feb95 VZ |
4496 | if test "$enableval" = yes; then |
4497 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4498 | else | |
4499 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4500 | fi | |
52127426 | 4501 | |
1e6feb95 | 4502 | else |
52127426 | 4503 | |
1e6feb95 VZ |
4504 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
4505 | if test "x$LINE" != x ; then | |
4506 | eval "DEFAULT_$LINE" | |
4507 | else | |
4508 | no_cache=1 | |
4509 | fi | |
4510 | ||
4511 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
52127426 JS |
4512 | |
4513 | fi | |
1e6feb95 VZ |
4514 | |
4515 | ||
4516 | eval "$ac_cv_use_mimetype" | |
4517 | if test "$no_cache" != 1; then | |
4518 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4519 | fi | |
4520 | ||
4521 | if test "$wxUSE_MIMETYPE" = yes; then | |
52127426 | 4522 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4523 | else |
52127426 | 4524 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4525 | fi |
52127426 | 4526 | |
1e6feb95 | 4527 | |
52127426 JS |
4528 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
4529 | echo "configure:4530: checking for --enable-system_options" >&5 | |
3e44f09d VZ |
4530 | no_cache=0 |
4531 | # Check whether --enable-system_options or --disable-system_options was given. | |
4532 | if test "${enable_system_options+set}" = set; then | |
4533 | enableval="$enable_system_options" | |
52127426 | 4534 | |
3e44f09d VZ |
4535 | if test "$enableval" = yes; then |
4536 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4537 | else | |
4538 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4539 | fi | |
52127426 | 4540 | |
3e44f09d | 4541 | else |
52127426 | 4542 | |
3e44f09d VZ |
4543 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
4544 | if test "x$LINE" != x ; then | |
4545 | eval "DEFAULT_$LINE" | |
4546 | else | |
4547 | no_cache=1 | |
4548 | fi | |
4549 | ||
4550 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
52127426 JS |
4551 | |
4552 | fi | |
3e44f09d VZ |
4553 | |
4554 | ||
4555 | eval "$ac_cv_use_system_options" | |
4556 | if test "$no_cache" != 1; then | |
4557 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4558 | fi | |
4559 | ||
4560 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
52127426 | 4561 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 4562 | else |
52127426 | 4563 | echo "$ac_t""no" 1>&6 |
3e44f09d | 4564 | fi |
52127426 | 4565 | |
1e6feb95 | 4566 | |
52127426 JS |
4567 | |
4568 | echo $ac_n "checking for --enable-url""... $ac_c" 1>&6 | |
4569 | echo "configure:4570: checking for --enable-url" >&5 | |
4cdb0ab0 VS |
4570 | no_cache=0 |
4571 | # Check whether --enable-url or --disable-url was given. | |
4572 | if test "${enable_url+set}" = set; then | |
4573 | enableval="$enable_url" | |
52127426 | 4574 | |
4cdb0ab0 VS |
4575 | if test "$enableval" = yes; then |
4576 | ac_cv_use_url='wxUSE_URL=yes' | |
4577 | else | |
4578 | ac_cv_use_url='wxUSE_URL=no' | |
4579 | fi | |
52127426 | 4580 | |
4cdb0ab0 | 4581 | else |
52127426 | 4582 | |
4cdb0ab0 VS |
4583 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
4584 | if test "x$LINE" != x ; then | |
4585 | eval "DEFAULT_$LINE" | |
4586 | else | |
4587 | no_cache=1 | |
4588 | fi | |
4589 | ||
4590 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
52127426 JS |
4591 | |
4592 | fi | |
4cdb0ab0 VS |
4593 | |
4594 | ||
4595 | eval "$ac_cv_use_url" | |
4596 | if test "$no_cache" != 1; then | |
4597 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4598 | fi | |
4599 | ||
4600 | if test "$wxUSE_URL" = yes; then | |
52127426 | 4601 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4602 | else |
52127426 | 4603 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4604 | fi |
52127426 | 4605 | |
4cdb0ab0 | 4606 | |
52127426 JS |
4607 | echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6 |
4608 | echo "configure:4609: checking for --enable-protocol" >&5 | |
4cdb0ab0 VS |
4609 | no_cache=0 |
4610 | # Check whether --enable-protocol or --disable-protocol was given. | |
4611 | if test "${enable_protocol+set}" = set; then | |
4612 | enableval="$enable_protocol" | |
52127426 | 4613 | |
4cdb0ab0 VS |
4614 | if test "$enableval" = yes; then |
4615 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4616 | else | |
4617 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4618 | fi | |
52127426 | 4619 | |
4cdb0ab0 | 4620 | else |
52127426 | 4621 | |
4cdb0ab0 VS |
4622 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4623 | if test "x$LINE" != x ; then | |
4624 | eval "DEFAULT_$LINE" | |
4625 | else | |
4626 | no_cache=1 | |
4627 | fi | |
4628 | ||
4629 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
52127426 JS |
4630 | |
4631 | fi | |
4cdb0ab0 VS |
4632 | |
4633 | ||
4634 | eval "$ac_cv_use_protocol" | |
4635 | if test "$no_cache" != 1; then | |
4636 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4637 | fi | |
4638 | ||
4639 | if test "$wxUSE_PROTOCOL" = yes; then | |
52127426 | 4640 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4641 | else |
52127426 | 4642 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4643 | fi |
52127426 | 4644 | |
4cdb0ab0 | 4645 | |
52127426 JS |
4646 | echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6 |
4647 | echo "configure:4648: checking for --enable-protocol_http" >&5 | |
4cdb0ab0 VS |
4648 | no_cache=0 |
4649 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4650 | if test "${enable_protocol_http+set}" = set; then | |
4651 | enableval="$enable_protocol_http" | |
52127426 | 4652 | |
4cdb0ab0 VS |
4653 | if test "$enableval" = yes; then |
4654 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4655 | else | |
4656 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4657 | fi | |
52127426 | 4658 | |
4cdb0ab0 | 4659 | else |
52127426 | 4660 | |
4cdb0ab0 VS |
4661 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4662 | if test "x$LINE" != x ; then | |
4663 | eval "DEFAULT_$LINE" | |
4664 | else | |
4665 | no_cache=1 | |
4666 | fi | |
4667 | ||
4668 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
52127426 JS |
4669 | |
4670 | fi | |
4cdb0ab0 VS |
4671 | |
4672 | ||
4673 | eval "$ac_cv_use_protocol_http" | |
4674 | if test "$no_cache" != 1; then | |
4675 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4676 | fi | |
4677 | ||
4678 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
52127426 | 4679 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4680 | else |
52127426 | 4681 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4682 | fi |
52127426 | 4683 | |
4cdb0ab0 | 4684 | |
52127426 JS |
4685 | echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6 |
4686 | echo "configure:4687: checking for --enable-protocol_ftp" >&5 | |
4cdb0ab0 VS |
4687 | no_cache=0 |
4688 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4689 | if test "${enable_protocol_ftp+set}" = set; then | |
4690 | enableval="$enable_protocol_ftp" | |
52127426 | 4691 | |
4cdb0ab0 VS |
4692 | if test "$enableval" = yes; then |
4693 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4694 | else | |
4695 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4696 | fi | |
52127426 | 4697 | |
4cdb0ab0 | 4698 | else |
52127426 | 4699 | |
4cdb0ab0 VS |
4700 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4701 | if test "x$LINE" != x ; then | |
4702 | eval "DEFAULT_$LINE" | |
4703 | else | |
4704 | no_cache=1 | |
4705 | fi | |
4706 | ||
4707 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
52127426 JS |
4708 | |
4709 | fi | |
4cdb0ab0 VS |
4710 | |
4711 | ||
4712 | eval "$ac_cv_use_protocol_ftp" | |
4713 | if test "$no_cache" != 1; then | |
4714 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4715 | fi | |
4716 | ||
4717 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
52127426 | 4718 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4719 | else |
52127426 | 4720 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4721 | fi |
52127426 | 4722 | |
4cdb0ab0 | 4723 | |
52127426 JS |
4724 | echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6 |
4725 | echo "configure:4726: checking for --enable-protocol_file" >&5 | |
4cdb0ab0 VS |
4726 | no_cache=0 |
4727 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4728 | if test "${enable_protocol_file+set}" = set; then | |
4729 | enableval="$enable_protocol_file" | |
52127426 | 4730 | |
4cdb0ab0 VS |
4731 | if test "$enableval" = yes; then |
4732 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4733 | else | |
4734 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4735 | fi | |
52127426 | 4736 | |
4cdb0ab0 | 4737 | else |
52127426 | 4738 | |
4cdb0ab0 VS |
4739 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4740 | if test "x$LINE" != x ; then | |
4741 | eval "DEFAULT_$LINE" | |
4742 | else | |
4743 | no_cache=1 | |
4744 | fi | |
4745 | ||
4746 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
52127426 JS |
4747 | |
4748 | fi | |
4cdb0ab0 VS |
4749 | |
4750 | ||
4751 | eval "$ac_cv_use_protocol_file" | |
4752 | if test "$no_cache" != 1; then | |
4753 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4754 | fi | |
4755 | ||
4756 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
52127426 | 4757 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4758 | else |
52127426 | 4759 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4760 | fi |
52127426 JS |
4761 | |
4762 | ||
4763 | ||
4764 | ||
4cdb0ab0 | 4765 | |
52127426 JS |
4766 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 |
4767 | echo "configure:4768: checking for --enable-threads" >&5 | |
10f2d63a VZ |
4768 | no_cache=0 |
4769 | # Check whether --enable-threads or --disable-threads was given. | |
4770 | if test "${enable_threads+set}" = set; then | |
4771 | enableval="$enable_threads" | |
52127426 | 4772 | |
10f2d63a VZ |
4773 | if test "$enableval" = yes; then |
4774 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4775 | else | |
4776 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4777 | fi | |
52127426 | 4778 | |
10f2d63a | 4779 | else |
52127426 | 4780 | |
10f2d63a VZ |
4781 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4782 | if test "x$LINE" != x ; then | |
4783 | eval "DEFAULT_$LINE" | |
4784 | else | |
4785 | no_cache=1 | |
4786 | fi | |
4787 | ||
4788 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
52127426 JS |
4789 | |
4790 | fi | |
10f2d63a VZ |
4791 | |
4792 | ||
4793 | eval "$ac_cv_use_threads" | |
4794 | if test "$no_cache" != 1; then | |
4795 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4796 | fi | |
4797 | ||
4798 | if test "$wxUSE_THREADS" = yes; then | |
52127426 | 4799 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4800 | else |
52127426 | 4801 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4802 | fi |
52127426 | 4803 | |
10f2d63a | 4804 | |
b12915c1 VZ |
4805 | if test "$wxUSE_GUI" = "yes"; then |
4806 | ||
52127426 JS |
4807 | |
4808 | ||
4809 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
4810 | echo "configure:4811: checking for --enable-docview" >&5 | |
10f2d63a VZ |
4811 | no_cache=0 |
4812 | # Check whether --enable-docview or --disable-docview was given. | |
4813 | if test "${enable_docview+set}" = set; then | |
4814 | enableval="$enable_docview" | |
52127426 | 4815 | |
10f2d63a VZ |
4816 | if test "$enableval" = yes; then |
4817 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4818 | else | |
4819 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4820 | fi | |
52127426 | 4821 | |
10f2d63a | 4822 | else |
52127426 | 4823 | |
10f2d63a VZ |
4824 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4825 | if test "x$LINE" != x ; then | |
4826 | eval "DEFAULT_$LINE" | |
4827 | else | |
4828 | no_cache=1 | |
4829 | fi | |
4830 | ||
4831 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
52127426 JS |
4832 | |
4833 | fi | |
10f2d63a VZ |
4834 | |
4835 | ||
4836 | eval "$ac_cv_use_docview" | |
4837 | if test "$no_cache" != 1; then | |
4838 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4839 | fi | |
4840 | ||
4841 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
52127426 | 4842 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4843 | else |
52127426 | 4844 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4845 | fi |
52127426 | 4846 | |
10f2d63a | 4847 | |
52127426 JS |
4848 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
4849 | echo "configure:4850: checking for --enable-help" >&5 | |
10f2d63a VZ |
4850 | no_cache=0 |
4851 | # Check whether --enable-help or --disable-help was given. | |
4852 | if test "${enable_help+set}" = set; then | |
4853 | enableval="$enable_help" | |
52127426 | 4854 | |
10f2d63a VZ |
4855 | if test "$enableval" = yes; then |
4856 | ac_cv_use_help='wxUSE_HELP=yes' | |
4857 | else | |
4858 | ac_cv_use_help='wxUSE_HELP=no' | |
4859 | fi | |
52127426 | 4860 | |
10f2d63a | 4861 | else |
52127426 | 4862 | |
10f2d63a VZ |
4863 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4864 | if test "x$LINE" != x ; then | |
4865 | eval "DEFAULT_$LINE" | |
4866 | else | |
4867 | no_cache=1 | |
4868 | fi | |
4869 | ||
4870 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
52127426 JS |
4871 | |
4872 | fi | |
10f2d63a VZ |
4873 | |
4874 | ||
4875 | eval "$ac_cv_use_help" | |
4876 | if test "$no_cache" != 1; then | |
4877 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4878 | fi | |
4879 | ||
4880 | if test "$wxUSE_HELP" = yes; then | |
52127426 | 4881 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4882 | else |
52127426 | 4883 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4884 | fi |
52127426 | 4885 | |
10f2d63a | 4886 | |
52127426 JS |
4887 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
4888 | echo "configure:4889: checking for --enable-mshtmlhelp" >&5 | |
29fd3c0c VS |
4889 | no_cache=0 |
4890 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4891 | if test "${enable_mshtmlhelp+set}" = set; then | |
4892 | enableval="$enable_mshtmlhelp" | |
52127426 | 4893 | |
29fd3c0c VS |
4894 | if test "$enableval" = yes; then |
4895 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4896 | else | |
4897 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4898 | fi | |
52127426 | 4899 | |
29fd3c0c | 4900 | else |
52127426 | 4901 | |
29fd3c0c VS |
4902 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
4903 | if test "x$LINE" != x ; then | |
4904 | eval "DEFAULT_$LINE" | |
4905 | else | |
4906 | no_cache=1 | |
4907 | fi | |
4908 | ||
4909 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
52127426 JS |
4910 | |
4911 | fi | |
29fd3c0c VS |
4912 | |
4913 | ||
4914 | eval "$ac_cv_use_mshtmlhelp" | |
4915 | if test "$no_cache" != 1; then | |
4916 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4917 | fi | |
4918 | ||
4919 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
52127426 | 4920 | echo "$ac_t""yes" 1>&6 |
29fd3c0c | 4921 | else |
52127426 | 4922 | echo "$ac_t""no" 1>&6 |
29fd3c0c | 4923 | fi |
52127426 | 4924 | |
29fd3c0c | 4925 | |
52127426 JS |
4926 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
4927 | echo "configure:4928: checking for --enable-html" >&5 | |
3379ed37 VZ |
4928 | no_cache=0 |
4929 | # Check whether --enable-html or --disable-html was given. | |
4930 | if test "${enable_html+set}" = set; then | |
4931 | enableval="$enable_html" | |
52127426 | 4932 | |
3379ed37 VZ |
4933 | if test "$enableval" = yes; then |
4934 | ac_cv_use_html='wxUSE_HTML=yes' | |
4935 | else | |
4936 | ac_cv_use_html='wxUSE_HTML=no' | |
4937 | fi | |
52127426 | 4938 | |
3379ed37 | 4939 | else |
52127426 | 4940 | |
3379ed37 VZ |
4941 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
4942 | if test "x$LINE" != x ; then | |
4943 | eval "DEFAULT_$LINE" | |
4944 | else | |
4945 | no_cache=1 | |
4946 | fi | |
4947 | ||
4948 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
52127426 JS |
4949 | |
4950 | fi | |
3379ed37 VZ |
4951 | |
4952 | ||
4953 | eval "$ac_cv_use_html" | |
4954 | if test "$no_cache" != 1; then | |
4955 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4956 | fi | |
4957 | ||
4958 | if test "$wxUSE_HTML" = yes; then | |
52127426 | 4959 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 4960 | else |
52127426 | 4961 | echo "$ac_t""no" 1>&6 |
3379ed37 | 4962 | fi |
52127426 | 4963 | |
3379ed37 | 4964 | |
52127426 JS |
4965 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 |
4966 | echo "configure:4967: checking for --enable-htmlhelp" >&5 | |
3379ed37 VZ |
4967 | no_cache=0 |
4968 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4969 | if test "${enable_htmlhelp+set}" = set; then | |
4970 | enableval="$enable_htmlhelp" | |
52127426 | 4971 | |
3379ed37 VZ |
4972 | if test "$enableval" = yes; then |
4973 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4974 | else | |
4975 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4976 | fi | |
52127426 | 4977 | |
3379ed37 | 4978 | else |
52127426 | 4979 | |
3379ed37 VZ |
4980 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
4981 | if test "x$LINE" != x ; then | |
4982 | eval "DEFAULT_$LINE" | |
4983 | else | |
4984 | no_cache=1 | |
4985 | fi | |
4986 | ||
4987 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
52127426 JS |
4988 | |
4989 | fi | |
3379ed37 VZ |
4990 | |
4991 | ||
4992 | eval "$ac_cv_use_htmlhelp" | |
4993 | if test "$no_cache" != 1; then | |
4994 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
4995 | fi | |
4996 | ||
4997 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
52127426 | 4998 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 4999 | else |
52127426 | 5000 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5001 | fi |
52127426 | 5002 | |
3379ed37 | 5003 | |
52127426 JS |
5004 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
5005 | echo "configure:5006: checking for --enable-constraints" >&5 | |
10f2d63a VZ |
5006 | no_cache=0 |
5007 | # Check whether --enable-constraints or --disable-constraints was given. | |
5008 | if test "${enable_constraints+set}" = set; then | |
5009 | enableval="$enable_constraints" | |
52127426 | 5010 | |
10f2d63a VZ |
5011 | if test "$enableval" = yes; then |
5012 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5013 | else | |
5014 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5015 | fi | |
52127426 | 5016 | |
10f2d63a | 5017 | else |
52127426 | 5018 | |
10f2d63a VZ |
5019 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5020 | if test "x$LINE" != x ; then | |
5021 | eval "DEFAULT_$LINE" | |
5022 | else | |
5023 | no_cache=1 | |
5024 | fi | |
5025 | ||
5026 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
52127426 JS |
5027 | |
5028 | fi | |
10f2d63a VZ |
5029 | |
5030 | ||
5031 | eval "$ac_cv_use_constraints" | |
5032 | if test "$no_cache" != 1; then | |
5033 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5034 | fi | |
5035 | ||
5036 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
52127426 | 5037 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5038 | else |
52127426 | 5039 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5040 | fi |
52127426 | 5041 | |
10f2d63a | 5042 | |
52127426 JS |
5043 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
5044 | echo "configure:5045: checking for --enable-printarch" >&5 | |
10f2d63a VZ |
5045 | no_cache=0 |
5046 | # Check whether --enable-printarch or --disable-printarch was given. | |
5047 | if test "${enable_printarch+set}" = set; then | |
5048 | enableval="$enable_printarch" | |
52127426 | 5049 | |
10f2d63a VZ |
5050 | if test "$enableval" = yes; then |
5051 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5052 | else | |
5053 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5054 | fi | |
52127426 | 5055 | |
10f2d63a | 5056 | else |
52127426 | 5057 | |
10f2d63a VZ |
5058 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5059 | if test "x$LINE" != x ; then | |
5060 | eval "DEFAULT_$LINE" | |
5061 | else | |
5062 | no_cache=1 | |
5063 | fi | |
5064 | ||
5065 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
52127426 JS |
5066 | |
5067 | fi | |
10f2d63a VZ |
5068 | |
5069 | ||
5070 | eval "$ac_cv_use_printarch" | |
5071 | if test "$no_cache" != 1; then | |
5072 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5073 | fi | |
5074 | ||
5075 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
52127426 | 5076 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5077 | else |
52127426 | 5078 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5079 | fi |
52127426 | 5080 | |
10f2d63a | 5081 | |
52127426 JS |
5082 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
5083 | echo "configure:5084: checking for --enable-mdi" >&5 | |
10f2d63a VZ |
5084 | no_cache=0 |
5085 | # Check whether --enable-mdi or --disable-mdi was given. | |
5086 | if test "${enable_mdi+set}" = set; then | |
5087 | enableval="$enable_mdi" | |
52127426 | 5088 | |
10f2d63a VZ |
5089 | if test "$enableval" = yes; then |
5090 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5091 | else | |
5092 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5093 | fi | |
52127426 | 5094 | |
10f2d63a | 5095 | else |
52127426 | 5096 | |
10f2d63a VZ |
5097 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5098 | if test "x$LINE" != x ; then | |
5099 | eval "DEFAULT_$LINE" | |
5100 | else | |
5101 | no_cache=1 | |
5102 | fi | |
5103 | ||
5104 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
52127426 JS |
5105 | |
5106 | fi | |
10f2d63a VZ |
5107 | |
5108 | ||
5109 | eval "$ac_cv_use_mdi" | |
5110 | if test "$no_cache" != 1; then | |
5111 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5112 | fi | |
5113 | ||
5114 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
52127426 | 5115 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5116 | else |
52127426 | 5117 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5118 | fi |
52127426 | 5119 | |
698dcdb6 | 5120 | |
52127426 JS |
5121 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
5122 | echo "configure:5123: checking for --enable-loggui" >&5 | |
1e6feb95 VZ |
5123 | no_cache=0 |
5124 | # Check whether --enable-loggui or --disable-loggui was given. | |
5125 | if test "${enable_loggui+set}" = set; then | |
5126 | enableval="$enable_loggui" | |
52127426 | 5127 | |
1e6feb95 VZ |
5128 | if test "$enableval" = yes; then |
5129 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5130 | else | |
5131 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5132 | fi | |
52127426 | 5133 | |
1e6feb95 | 5134 | else |
52127426 | 5135 | |
1e6feb95 VZ |
5136 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
5137 | if test "x$LINE" != x ; then | |
5138 | eval "DEFAULT_$LINE" | |
5139 | else | |
5140 | no_cache=1 | |
5141 | fi | |
5142 | ||
5143 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
52127426 JS |
5144 | |
5145 | fi | |
1e6feb95 VZ |
5146 | |
5147 | ||
5148 | eval "$ac_cv_use_loggui" | |
5149 | if test "$no_cache" != 1; then | |
5150 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5151 | fi | |
5152 | ||
5153 | if test "$wxUSE_LOGGUI" = yes; then | |
52127426 | 5154 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5155 | else |
52127426 | 5156 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5157 | fi |
52127426 | 5158 | |
1e6feb95 | 5159 | |
52127426 JS |
5160 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 |
5161 | echo "configure:5162: checking for --enable-logwin" >&5 | |
1e6feb95 VZ |
5162 | no_cache=0 |
5163 | # Check whether --enable-logwin or --disable-logwin was given. | |
5164 | if test "${enable_logwin+set}" = set; then | |
5165 | enableval="$enable_logwin" | |
52127426 | 5166 | |
1e6feb95 VZ |
5167 | if test "$enableval" = yes; then |
5168 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5169 | else | |
5170 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5171 | fi | |
52127426 | 5172 | |
1e6feb95 | 5173 | else |
52127426 | 5174 | |
1e6feb95 VZ |
5175 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
5176 | if test "x$LINE" != x ; then | |
5177 | eval "DEFAULT_$LINE" | |
5178 | else | |
5179 | no_cache=1 | |
5180 | fi | |
5181 | ||
5182 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
52127426 JS |
5183 | |
5184 | fi | |
1e6feb95 VZ |
5185 | |
5186 | ||
5187 | eval "$ac_cv_use_logwin" | |
5188 | if test "$no_cache" != 1; then | |
5189 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5190 | fi | |
5191 | ||
5192 | if test "$wxUSE_LOGWINDOW" = yes; then | |
52127426 | 5193 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5194 | else |
52127426 | 5195 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5196 | fi |
52127426 | 5197 | |
1e6feb95 | 5198 | |
52127426 JS |
5199 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 |
5200 | echo "configure:5201: checking for --enable-logdialog" >&5 | |
69d27ff7 MB |
5201 | no_cache=0 |
5202 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5203 | if test "${enable_logdialog+set}" = set; then | |
5204 | enableval="$enable_logdialog" | |
52127426 | 5205 | |
69d27ff7 MB |
5206 | if test "$enableval" = yes; then |
5207 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5208 | else | |
5209 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5210 | fi | |
52127426 | 5211 | |
69d27ff7 | 5212 | else |
52127426 | 5213 | |
69d27ff7 MB |
5214 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
5215 | if test "x$LINE" != x ; then | |
5216 | eval "DEFAULT_$LINE" | |
5217 | else | |
5218 | no_cache=1 | |
5219 | fi | |
5220 | ||
5221 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
52127426 JS |
5222 | |
5223 | fi | |
69d27ff7 MB |
5224 | |
5225 | ||
5226 | eval "$ac_cv_use_logdialog" | |
5227 | if test "$no_cache" != 1; then | |
5228 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5229 | fi | |
5230 | ||
5231 | if test "$wxUSE_LOGDIALOG" = yes; then | |
52127426 | 5232 | echo "$ac_t""yes" 1>&6 |
69d27ff7 | 5233 | else |
52127426 | 5234 | echo "$ac_t""no" 1>&6 |
69d27ff7 | 5235 | fi |
52127426 | 5236 | |
10f2d63a | 5237 | |
52127426 JS |
5238 | |
5239 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 | |
5240 | echo "configure:5241: checking for --enable-postscript" >&5 | |
10f2d63a VZ |
5241 | no_cache=0 |
5242 | # Check whether --enable-postscript or --disable-postscript was given. | |
5243 | if test "${enable_postscript+set}" = set; then | |
5244 | enableval="$enable_postscript" | |
52127426 | 5245 | |
10f2d63a VZ |
5246 | if test "$enableval" = yes; then |
5247 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5248 | else | |
5249 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5250 | fi | |
52127426 | 5251 | |
10f2d63a | 5252 | else |
52127426 | 5253 | |
10f2d63a VZ |
5254 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5255 | if test "x$LINE" != x ; then | |
5256 | eval "DEFAULT_$LINE" | |
5257 | else | |
5258 | no_cache=1 | |
5259 | fi | |
5260 | ||
5261 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
52127426 JS |
5262 | |
5263 | fi | |
10f2d63a VZ |
5264 | |
5265 | ||
5266 | eval "$ac_cv_use_postscript" | |
5267 | if test "$no_cache" != 1; then | |
5268 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5269 | fi | |
5270 | ||
5271 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
52127426 | 5272 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5273 | else |
52127426 | 5274 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5275 | fi |
52127426 JS |
5276 | |
5277 | ||
10f2d63a | 5278 | |
52127426 JS |
5279 | |
5280 | ||
5281 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 | |
5282 | echo "configure:5283: checking for --enable-prologio" >&5 | |
10f2d63a VZ |
5283 | no_cache=0 |
5284 | # Check whether --enable-prologio or --disable-prologio was given. | |
5285 | if test "${enable_prologio+set}" = set; then | |
5286 | enableval="$enable_prologio" | |
52127426 | 5287 | |
10f2d63a VZ |
5288 | if test "$enableval" = yes; then |
5289 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5290 | else | |
5291 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5292 | fi | |
52127426 | 5293 | |
10f2d63a | 5294 | else |
52127426 | 5295 | |
10f2d63a VZ |
5296 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5297 | if test "x$LINE" != x ; then | |
5298 | eval "DEFAULT_$LINE" | |
5299 | else | |
5300 | no_cache=1 | |
5301 | fi | |
5302 | ||
5303 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
52127426 JS |
5304 | |
5305 | fi | |
10f2d63a VZ |
5306 | |
5307 | ||
5308 | eval "$ac_cv_use_prologio" | |
5309 | if test "$no_cache" != 1; then | |
5310 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5311 | fi | |
5312 | ||
5313 | if test "$wxUSE_PROLOGIO" = yes; then | |
52127426 | 5314 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5315 | else |
52127426 | 5316 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5317 | fi |
52127426 | 5318 | |
10f2d63a | 5319 | |
52127426 JS |
5320 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
5321 | echo "configure:5322: checking for --enable-resources" >&5 | |
10f2d63a VZ |
5322 | no_cache=0 |
5323 | # Check whether --enable-resources or --disable-resources was given. | |
5324 | if test "${enable_resources+set}" = set; then | |
5325 | enableval="$enable_resources" | |
52127426 | 5326 | |
10f2d63a VZ |
5327 | if test "$enableval" = yes; then |
5328 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5329 | else | |
5330 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5331 | fi | |
52127426 | 5332 | |
10f2d63a | 5333 | else |
52127426 | 5334 | |
10f2d63a VZ |
5335 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5336 | if test "x$LINE" != x ; then | |
5337 | eval "DEFAULT_$LINE" | |
5338 | else | |
5339 | no_cache=1 | |
5340 | fi | |
5341 | ||
5342 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
52127426 JS |
5343 | |
5344 | fi | |
10f2d63a VZ |
5345 | |
5346 | ||
5347 | eval "$ac_cv_use_resources" | |
5348 | if test "$no_cache" != 1; then | |
5349 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5350 | fi | |
5351 | ||
5352 | if test "$wxUSE_RESOURCES" = yes; then | |
52127426 | 5353 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5354 | else |
52127426 | 5355 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5356 | fi |
52127426 | 5357 | |
698dcdb6 | 5358 | |
52127426 JS |
5359 | |
5360 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
5361 | echo "configure:5362: checking for --enable-xresources" >&5 | |
10f2d63a VZ |
5362 | no_cache=0 |
5363 | # Check whether --enable-xresources or --disable-xresources was given. | |
5364 | if test "${enable_xresources+set}" = set; then | |
5365 | enableval="$enable_xresources" | |
52127426 | 5366 | |
10f2d63a VZ |
5367 | if test "$enableval" = yes; then |
5368 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5369 | else | |
5370 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5371 | fi | |
52127426 | 5372 | |
10f2d63a | 5373 | else |
52127426 | 5374 | |
10f2d63a VZ |
5375 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5376 | if test "x$LINE" != x ; then | |
5377 | eval "DEFAULT_$LINE" | |
5378 | else | |
5379 | no_cache=1 | |
5380 | fi | |
5381 | ||
5382 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
52127426 JS |
5383 | |
5384 | fi | |
10f2d63a VZ |
5385 | |
5386 | ||
5387 | eval "$ac_cv_use_xresources" | |
5388 | if test "$no_cache" != 1; then | |
5389 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5390 | fi | |
5391 | ||
5392 | if test "$wxUSE_X_RESOURCES" = yes; then | |
52127426 | 5393 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5394 | else |
52127426 | 5395 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5396 | fi |
52127426 JS |
5397 | |
5398 | ||
698dcdb6 | 5399 | |
52127426 JS |
5400 | |
5401 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
5402 | echo "configure:5403: checking for --enable-clipboard" >&5 | |
10f2d63a VZ |
5403 | no_cache=0 |
5404 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5405 | if test "${enable_clipboard+set}" = set; then | |
5406 | enableval="$enable_clipboard" | |
52127426 | 5407 | |
10f2d63a VZ |
5408 | if test "$enableval" = yes; then |
5409 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5410 | else | |
5411 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5412 | fi | |
52127426 | 5413 | |
10f2d63a | 5414 | else |
52127426 | 5415 | |
10f2d63a VZ |
5416 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5417 | if test "x$LINE" != x ; then | |
5418 | eval "DEFAULT_$LINE" | |
5419 | else | |
5420 | no_cache=1 | |
5421 | fi | |
5422 | ||
5423 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
52127426 JS |
5424 | |
5425 | fi | |
10f2d63a VZ |
5426 | |
5427 | ||
5428 | eval "$ac_cv_use_clipboard" | |
5429 | if test "$no_cache" != 1; then | |
5430 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5431 | fi | |
5432 | ||
5433 | if test "$wxUSE_CLIPBOARD" = yes; then | |
52127426 | 5434 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5435 | else |
52127426 | 5436 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5437 | fi |
52127426 | 5438 | |
10f2d63a | 5439 | |
52127426 JS |
5440 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
5441 | echo "configure:5442: checking for --enable-dnd" >&5 | |
10f2d63a VZ |
5442 | no_cache=0 |
5443 | # Check whether --enable-dnd or --disable-dnd was given. | |
5444 | if test "${enable_dnd+set}" = set; then | |
5445 | enableval="$enable_dnd" | |
52127426 | 5446 | |
10f2d63a VZ |
5447 | if test "$enableval" = yes; then |
5448 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5449 | else | |
5450 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5451 | fi | |
52127426 | 5452 | |
10f2d63a | 5453 | else |
52127426 | 5454 | |
10f2d63a VZ |
5455 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5456 | if test "x$LINE" != x ; then | |
5457 | eval "DEFAULT_$LINE" | |
5458 | else | |
5459 | no_cache=1 | |
5460 | fi | |
5461 | ||
5462 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
52127426 JS |
5463 | |
5464 | fi | |
10f2d63a VZ |
5465 | |
5466 | ||
5467 | eval "$ac_cv_use_dnd" | |
5468 | if test "$no_cache" != 1; then | |
5469 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5470 | fi | |
5471 | ||
5472 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
52127426 | 5473 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5474 | else |
52127426 | 5475 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5476 | fi |
52127426 | 5477 | |
10f2d63a | 5478 | |
52127426 JS |
5479 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
5480 | echo "configure:5481: checking for --enable-metafile" >&5 | |
b64f0a5f RL |
5481 | no_cache=0 |
5482 | # Check whether --enable-metafile or --disable-metafile was given. | |
5483 | if test "${enable_metafile+set}" = set; then | |
5484 | enableval="$enable_metafile" | |
52127426 | 5485 | |
b64f0a5f RL |
5486 | if test "$enableval" = yes; then |
5487 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5488 | else | |
5489 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5490 | fi | |
52127426 | 5491 | |
b64f0a5f | 5492 | else |
52127426 | 5493 | |
b64f0a5f RL |
5494 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5495 | if test "x$LINE" != x ; then | |
5496 | eval "DEFAULT_$LINE" | |
5497 | else | |
5498 | no_cache=1 | |
5499 | fi | |
5500 | ||
5501 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
52127426 JS |
5502 | |
5503 | fi | |
b64f0a5f RL |
5504 | |
5505 | ||
5506 | eval "$ac_cv_use_metafile" | |
5507 | if test "$no_cache" != 1; then | |
5508 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5509 | fi | |
5510 | ||
5511 | if test "$wxUSE_METAFILE" = yes; then | |
52127426 | 5512 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5513 | else |
52127426 | 5514 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5515 | fi |
52127426 JS |
5516 | |
5517 | ||
698dcdb6 | 5518 | |
52127426 JS |
5519 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
5520 | echo "configure:5521: checking for --enable-treelayout" >&5 | |
10f2d63a | 5521 | no_cache=0 |
24176f2c GD |
5522 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5523 | if test "${enable_treelayout+set}" = set; then | |
5524 | enableval="$enable_treelayout" | |
52127426 | 5525 | |
10f2d63a | 5526 | if test "$enableval" = yes; then |
24176f2c | 5527 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5528 | else |
24176f2c | 5529 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5530 | fi |
52127426 | 5531 | |
10f2d63a | 5532 | else |
52127426 | 5533 | |
24176f2c | 5534 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5535 | if test "x$LINE" != x ; then |
5536 | eval "DEFAULT_$LINE" | |
5537 | else | |
5538 | no_cache=1 | |
5539 | fi | |
5540 | ||
24176f2c | 5541 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
52127426 JS |
5542 | |
5543 | fi | |
10f2d63a VZ |
5544 | |
5545 | ||
24176f2c | 5546 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5547 | if test "$no_cache" != 1; then |
24176f2c | 5548 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5549 | fi |
5550 | ||
24176f2c | 5551 | if test "$wxUSE_TREELAYOUT" = yes; then |
52127426 | 5552 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5553 | else |
52127426 | 5554 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5555 | fi |
52127426 JS |
5556 | |
5557 | ||
5558 | ||
698dcdb6 | 5559 | |
52127426 JS |
5560 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 |
5561 | echo "configure:5562: checking for --enable-controls" >&5 | |
10f2d63a VZ |
5562 | no_cache=0 |
5563 | # Check whether --enable-controls or --disable-controls was given. | |
5564 | if test "${enable_controls+set}" = set; then | |
5565 | enableval="$enable_controls" | |
52127426 | 5566 | |
10f2d63a VZ |
5567 | if test "$enableval" = yes; then |
5568 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5569 | else | |
5570 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5571 | fi | |
52127426 | 5572 | |
10f2d63a | 5573 | else |
52127426 | 5574 | |
10f2d63a VZ |
5575 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5576 | if test "x$LINE" != x ; then | |
5577 | eval "DEFAULT_$LINE" | |
5578 | else | |
5579 | no_cache=1 | |
5580 | fi | |
5581 | ||
5582 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
52127426 JS |
5583 | |
5584 | fi | |
10f2d63a VZ |
5585 | |
5586 | ||
5587 | eval "$ac_cv_use_controls" | |
5588 | if test "$no_cache" != 1; then | |
5589 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5590 | fi | |
5591 | ||
5592 | if test "$wxUSE_CONTROLS" = yes; then | |
52127426 | 5593 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5594 | else |
52127426 | 5595 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5596 | fi |
52127426 | 5597 | |
10f2d63a VZ |
5598 | |
5599 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5600 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5601 | DEFAULT_wxUSE_BMPBUTTON=yes |
5602 | DEFAULT_wxUSE_BUTTON=yes | |
5603 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5604 | DEFAULT_wxUSE_CARET=yes |
5605 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5606 | DEFAULT_wxUSE_CHECKBOX=yes |
5607 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5608 | DEFAULT_wxUSE_CHOICE=yes | |
5609 | DEFAULT_wxUSE_GAUGE=yes | |
5610 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5611 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5612 | DEFAULT_wxUSE_IMAGLIST=yes |
5613 | DEFAULT_wxUSE_LISTBOX=yes | |
5614 | DEFAULT_wxUSE_LISTCTRL=yes | |
5615 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5616 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5617 | DEFAULT_wxUSE_RADIOBOX=yes |
5618 | DEFAULT_wxUSE_RADIOBTN=yes | |
5619 | DEFAULT_wxUSE_SASH=yes | |
5620 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5621 | DEFAULT_wxUSE_SLIDER=yes | |
5622 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5623 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5624 | DEFAULT_wxUSE_SPLITTER=yes |
5625 | DEFAULT_wxUSE_STATBMP=yes | |
5626 | DEFAULT_wxUSE_STATBOX=yes | |
5627 | DEFAULT_wxUSE_STATLINE=yes | |
5628 | DEFAULT_wxUSE_STATUSBAR=yes | |
5629 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5630 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5631 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5632 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5633 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5634 | DEFAULT_wxUSE_TOOLTIPS=yes |
5635 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5636 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5637 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5638 | elif test "$wxUSE_CONTROLS" = "no"; then |
5639 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5640 | DEFAULT_wxUSE_BMPBUTTON=no |
5641 | DEFAULT_wxUSE_BUTTON=no | |
5642 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5643 | DEFAULT_wxUSE_CARET=no |
5644 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5645 | DEFAULT_wxUSE_CHECKBOX=no |
5646 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5647 | DEFAULT_wxUSE_CHOICE=no | |
5648 | DEFAULT_wxUSE_GAUGE=no | |
5649 | DEFAULT_wxUSE_GRID=no | |
5650 | DEFAULT_wxUSE_NEW_GRID=no | |
5651 | DEFAULT_wxUSE_IMAGLIST=no | |
5652 | DEFAULT_wxUSE_LISTBOX=no | |
5653 | DEFAULT_wxUSE_LISTCTRL=no | |
5654 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5655 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5656 | DEFAULT_wxUSE_RADIOBOX=no |
5657 | DEFAULT_wxUSE_RADIOBTN=no | |
5658 | DEFAULT_wxUSE_SASH=no | |
5659 | DEFAULT_wxUSE_SCROLLBAR=no | |
5660 | DEFAULT_wxUSE_SLIDER=no | |
5661 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5662 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5663 | DEFAULT_wxUSE_SPLITTER=no |
5664 | DEFAULT_wxUSE_STATBMP=no | |
5665 | DEFAULT_wxUSE_STATBOX=no | |
5666 | DEFAULT_wxUSE_STATLINE=no | |
5667 | DEFAULT_wxUSE_STATUSBAR=no | |
5668 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5669 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5670 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5671 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5672 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5673 | DEFAULT_wxUSE_TOOLTIPS=no |
5674 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5675 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5676 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5677 | fi |
5678 | ||
52127426 JS |
5679 | |
5680 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
5681 | echo "configure:5682: checking for --enable-accel" >&5 | |
10f2d63a VZ |
5682 | no_cache=0 |
5683 | # Check whether --enable-accel or --disable-accel was given. | |
5684 | if test "${enable_accel+set}" = set; then | |
5685 | enableval="$enable_accel" | |
52127426 | 5686 | |
10f2d63a VZ |
5687 | if test "$enableval" = yes; then |
5688 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5689 | else | |
5690 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5691 | fi | |
52127426 | 5692 | |
10f2d63a | 5693 | else |
52127426 | 5694 | |
10f2d63a VZ |
5695 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5696 | if test "x$LINE" != x ; then | |
5697 | eval "DEFAULT_$LINE" | |
5698 | else | |
5699 | no_cache=1 | |
5700 | fi | |
5701 | ||
5702 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
52127426 JS |
5703 | |
5704 | fi | |
10f2d63a VZ |
5705 | |
5706 | ||
5707 | eval "$ac_cv_use_accel" | |
5708 | if test "$no_cache" != 1; then | |
5709 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5710 | fi | |
5711 | ||
5712 | if test "$wxUSE_ACCEL" = yes; then | |
52127426 | 5713 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5714 | else |
52127426 | 5715 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5716 | fi |
52127426 | 5717 | |
10f2d63a | 5718 | |
52127426 JS |
5719 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
5720 | echo "configure:5721: checking for --enable-button" >&5 | |
10f2d63a | 5721 | no_cache=0 |
1e6feb95 VZ |
5722 | # Check whether --enable-button or --disable-button was given. |
5723 | if test "${enable_button+set}" = set; then | |
5724 | enableval="$enable_button" | |
52127426 | 5725 | |
10f2d63a | 5726 | if test "$enableval" = yes; then |
1e6feb95 | 5727 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5728 | else |
1e6feb95 | 5729 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5730 | fi |
52127426 | 5731 | |
10f2d63a | 5732 | else |
52127426 | 5733 | |
1e6feb95 | 5734 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5735 | if test "x$LINE" != x ; then |
5736 | eval "DEFAULT_$LINE" | |
5737 | else | |
5738 | no_cache=1 | |
5739 | fi | |
5740 | ||
1e6feb95 | 5741 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
52127426 JS |
5742 | |
5743 | fi | |
10f2d63a VZ |
5744 | |
5745 | ||
1e6feb95 | 5746 | eval "$ac_cv_use_button" |
10f2d63a | 5747 | if test "$no_cache" != 1; then |
1e6feb95 | 5748 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5749 | fi |
5750 | ||
1e6feb95 | 5751 | if test "$wxUSE_BUTTON" = yes; then |
52127426 | 5752 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5753 | else |
52127426 | 5754 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5755 | fi |
52127426 | 5756 | |
10f2d63a | 5757 | |
52127426 JS |
5758 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
5759 | echo "configure:5760: checking for --enable-bmpbutton" >&5 | |
10f2d63a VZ |
5760 | no_cache=0 |
5761 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5762 | if test "${enable_bmpbutton+set}" = set; then | |
5763 | enableval="$enable_bmpbutton" | |
52127426 | 5764 | |
10f2d63a VZ |
5765 | if test "$enableval" = yes; then |
5766 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5767 | else | |
5768 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5769 | fi | |
52127426 | 5770 | |
10f2d63a | 5771 | else |
52127426 | 5772 | |
10f2d63a VZ |
5773 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5774 | if test "x$LINE" != x ; then | |
5775 | eval "DEFAULT_$LINE" | |
5776 | else | |
5777 | no_cache=1 | |
5778 | fi | |
5779 | ||
5780 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
52127426 JS |
5781 | |
5782 | fi | |
10f2d63a VZ |
5783 | |
5784 | ||
5785 | eval "$ac_cv_use_bmpbutton" | |
5786 | if test "$no_cache" != 1; then | |
5787 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5788 | fi | |
5789 | ||
5790 | if test "$wxUSE_BMPBUTTON" = yes; then | |
52127426 | 5791 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5792 | else |
52127426 | 5793 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5794 | fi |
52127426 | 5795 | |
10f2d63a | 5796 | |
52127426 JS |
5797 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
5798 | echo "configure:5799: checking for --enable-calendar" >&5 | |
1e6feb95 VZ |
5799 | no_cache=0 |
5800 | # Check whether --enable-calendar or --disable-calendar was given. | |
5801 | if test "${enable_calendar+set}" = set; then | |
5802 | enableval="$enable_calendar" | |
52127426 | 5803 | |
1e6feb95 VZ |
5804 | if test "$enableval" = yes; then |
5805 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5806 | else | |
5807 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5808 | fi | |
52127426 | 5809 | |
1e6feb95 | 5810 | else |
52127426 | 5811 | |
1e6feb95 VZ |
5812 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
5813 | if test "x$LINE" != x ; then | |
5814 | eval "DEFAULT_$LINE" | |
5815 | else | |
5816 | no_cache=1 | |
5817 | fi | |
5818 | ||
5819 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
52127426 JS |
5820 | |
5821 | fi | |
1e6feb95 VZ |
5822 | |
5823 | ||
5824 | eval "$ac_cv_use_calendar" | |
5825 | if test "$no_cache" != 1; then | |
5826 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5827 | fi | |
5828 | ||
5829 | if test "$wxUSE_CALCTRL" = yes; then | |
52127426 | 5830 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5831 | else |
52127426 | 5832 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5833 | fi |
52127426 | 5834 | |
1e6feb95 | 5835 | |
52127426 JS |
5836 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 |
5837 | echo "configure:5838: checking for --enable-caret" >&5 | |
1e6feb95 VZ |
5838 | no_cache=0 |
5839 | # Check whether --enable-caret or --disable-caret was given. | |
5840 | if test "${enable_caret+set}" = set; then | |
5841 | enableval="$enable_caret" | |
52127426 | 5842 | |
1e6feb95 VZ |
5843 | if test "$enableval" = yes; then |
5844 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5845 | else | |
5846 | ac_cv_use_caret='wxUSE_CARET=no' | |
5847 | fi | |
52127426 | 5848 | |
1e6feb95 | 5849 | else |
52127426 | 5850 | |
1e6feb95 VZ |
5851 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
5852 | if test "x$LINE" != x ; then | |
5853 | eval "DEFAULT_$LINE" | |
5854 | else | |
5855 | no_cache=1 | |
5856 | fi | |
5857 | ||
5858 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
52127426 JS |
5859 | |
5860 | fi | |
1e6feb95 VZ |
5861 | |
5862 | ||
5863 | eval "$ac_cv_use_caret" | |
5864 | if test "$no_cache" != 1; then | |
5865 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5866 | fi | |
5867 | ||
5868 | if test "$wxUSE_CARET" = yes; then | |
52127426 | 5869 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5870 | else |
52127426 | 5871 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5872 | fi |
52127426 | 5873 | |
1e6feb95 | 5874 | |
52127426 JS |
5875 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
5876 | echo "configure:5877: checking for --enable-checkbox" >&5 | |
10f2d63a VZ |
5877 | no_cache=0 |
5878 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5879 | if test "${enable_checkbox+set}" = set; then | |
5880 | enableval="$enable_checkbox" | |
52127426 | 5881 | |
10f2d63a VZ |
5882 | if test "$enableval" = yes; then |
5883 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5884 | else | |
5885 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5886 | fi | |
52127426 | 5887 | |
10f2d63a | 5888 | else |
52127426 | 5889 | |
10f2d63a VZ |
5890 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5891 | if test "x$LINE" != x ; then | |
5892 | eval "DEFAULT_$LINE" | |
5893 | else | |
5894 | no_cache=1 | |
5895 | fi | |
5896 | ||
5897 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
52127426 JS |
5898 | |
5899 | fi | |
10f2d63a VZ |
5900 | |
5901 | ||
5902 | eval "$ac_cv_use_checkbox" | |
5903 | if test "$no_cache" != 1; then | |
5904 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5905 | fi | |
5906 | ||
5907 | if test "$wxUSE_CHECKBOX" = yes; then | |
52127426 | 5908 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5909 | else |
52127426 | 5910 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5911 | fi |
52127426 | 5912 | |
10f2d63a | 5913 | |
52127426 JS |
5914 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
5915 | echo "configure:5916: checking for --enable-checklst" >&5 | |
10f2d63a VZ |
5916 | no_cache=0 |
5917 | # Check whether --enable-checklst or --disable-checklst was given. | |
5918 | if test "${enable_checklst+set}" = set; then | |
5919 | enableval="$enable_checklst" | |
52127426 | 5920 | |
10f2d63a VZ |
5921 | if test "$enableval" = yes; then |
5922 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5923 | else | |
5924 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5925 | fi | |
52127426 | 5926 | |
10f2d63a | 5927 | else |
52127426 | 5928 | |
10f2d63a VZ |
5929 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5930 | if test "x$LINE" != x ; then | |
5931 | eval "DEFAULT_$LINE" | |
5932 | else | |
5933 | no_cache=1 | |
5934 | fi | |
5935 | ||
5936 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
52127426 JS |
5937 | |
5938 | fi | |
10f2d63a VZ |
5939 | |
5940 | ||
5941 | eval "$ac_cv_use_checklst" | |
5942 | if test "$no_cache" != 1; then | |
5943 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5944 | fi | |
5945 | ||
5946 | if test "$wxUSE_CHECKLST" = yes; then | |
52127426 | 5947 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5948 | else |
52127426 | 5949 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5950 | fi |
52127426 | 5951 | |
10f2d63a | 5952 | |
52127426 JS |
5953 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
5954 | echo "configure:5955: checking for --enable-choice" >&5 | |
10f2d63a VZ |
5955 | no_cache=0 |
5956 | # Check whether --enable-choice or --disable-choice was given. | |
5957 | if test "${enable_choice+set}" = set; then | |
5958 | enableval="$enable_choice" | |
52127426 | 5959 | |
10f2d63a VZ |
5960 | if test "$enableval" = yes; then |
5961 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5962 | else | |
5963 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5964 | fi | |
52127426 | 5965 | |
10f2d63a | 5966 | else |
52127426 | 5967 | |
10f2d63a VZ |
5968 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5969 | if test "x$LINE" != x ; then | |
5970 | eval "DEFAULT_$LINE" | |
5971 | else | |
5972 | no_cache=1 | |
5973 | fi | |
5974 | ||
5975 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
52127426 JS |
5976 | |
5977 | fi | |
10f2d63a VZ |
5978 | |
5979 | ||
5980 | eval "$ac_cv_use_choice" | |
5981 | if test "$no_cache" != 1; then | |
5982 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5983 | fi | |
5984 | ||
5985 | if test "$wxUSE_CHOICE" = yes; then | |
52127426 | 5986 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5987 | else |
52127426 | 5988 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5989 | fi |
52127426 | 5990 | |
10f2d63a | 5991 | |
52127426 JS |
5992 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
5993 | echo "configure:5994: checking for --enable-combobox" >&5 | |
10f2d63a VZ |
5994 | no_cache=0 |
5995 | # Check whether --enable-combobox or --disable-combobox was given. | |
5996 | if test "${enable_combobox+set}" = set; then | |
5997 | enableval="$enable_combobox" | |
52127426 | 5998 | |
10f2d63a VZ |
5999 | if test "$enableval" = yes; then |
6000 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6001 | else | |
6002 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6003 | fi | |
52127426 | 6004 | |
10f2d63a | 6005 | else |
52127426 | 6006 | |
10f2d63a VZ |
6007 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6008 | if test "x$LINE" != x ; then | |
6009 | eval "DEFAULT_$LINE" | |
6010 | else | |
6011 | no_cache=1 | |
6012 | fi | |
6013 | ||
6014 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
52127426 JS |
6015 | |
6016 | fi | |
10f2d63a VZ |
6017 | |
6018 | ||
6019 | eval "$ac_cv_use_combobox" | |
6020 | if test "$no_cache" != 1; then | |
6021 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6022 | fi | |
6023 | ||
6024 | if test "$wxUSE_COMBOBOX" = yes; then | |
52127426 | 6025 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6026 | else |
52127426 | 6027 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6028 | fi |
52127426 | 6029 | |
10f2d63a | 6030 | |
52127426 JS |
6031 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
6032 | echo "configure:6033: checking for --enable-gauge" >&5 | |
10f2d63a VZ |
6033 | no_cache=0 |
6034 | # Check whether --enable-gauge or --disable-gauge was given. | |
6035 | if test "${enable_gauge+set}" = set; then | |
6036 | enableval="$enable_gauge" | |
52127426 | 6037 | |
10f2d63a VZ |
6038 | if test "$enableval" = yes; then |
6039 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6040 | else | |
6041 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6042 | fi | |
52127426 | 6043 | |
10f2d63a | 6044 | else |
52127426 | 6045 | |
10f2d63a VZ |
6046 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6047 | if test "x$LINE" != x ; then | |
6048 | eval "DEFAULT_$LINE" | |
6049 | else | |
6050 | no_cache=1 | |
6051 | fi | |
6052 | ||
6053 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
52127426 JS |
6054 | |
6055 | fi | |
10f2d63a VZ |
6056 | |
6057 | ||
6058 | eval "$ac_cv_use_gauge" | |
6059 | if test "$no_cache" != 1; then | |
6060 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6061 | fi | |
6062 | ||
6063 | if test "$wxUSE_GAUGE" = yes; then | |
52127426 | 6064 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6065 | else |
52127426 | 6066 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6067 | fi |
52127426 | 6068 | |
10f2d63a | 6069 | |
52127426 JS |
6070 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
6071 | echo "configure:6072: checking for --enable-grid" >&5 | |
10f2d63a VZ |
6072 | no_cache=0 |
6073 | # Check whether --enable-grid or --disable-grid was given. | |
6074 | if test "${enable_grid+set}" = set; then | |
6075 | enableval="$enable_grid" | |
52127426 | 6076 | |
10f2d63a VZ |
6077 | if test "$enableval" = yes; then |
6078 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6079 | else | |
6080 | ac_cv_use_grid='wxUSE_GRID=no' | |
6081 | fi | |
52127426 | 6082 | |
10f2d63a | 6083 | else |
52127426 | 6084 | |
10f2d63a VZ |
6085 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6086 | if test "x$LINE" != x ; then | |
6087 | eval "DEFAULT_$LINE" | |
6088 | else | |
6089 | no_cache=1 | |
6090 | fi | |
6091 | ||
6092 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
52127426 JS |
6093 | |
6094 | fi | |
10f2d63a VZ |
6095 | |
6096 | ||
6097 | eval "$ac_cv_use_grid" | |
6098 | if test "$no_cache" != 1; then | |
6099 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6100 | fi | |
6101 | ||
6102 | if test "$wxUSE_GRID" = yes; then | |
52127426 | 6103 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6104 | else |
52127426 | 6105 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6106 | fi |
52127426 | 6107 | |
10f2d63a | 6108 | |
52127426 JS |
6109 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
6110 | echo "configure:6111: checking for --enable-newgrid" >&5 | |
10f2d63a VZ |
6111 | no_cache=0 |
6112 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6113 | if test "${enable_newgrid+set}" = set; then | |
6114 | enableval="$enable_newgrid" | |
52127426 | 6115 | |
10f2d63a VZ |
6116 | if test "$enableval" = yes; then |
6117 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6118 | else | |
6119 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6120 | fi | |
52127426 | 6121 | |
10f2d63a | 6122 | else |
52127426 | 6123 | |
10f2d63a VZ |
6124 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6125 | if test "x$LINE" != x ; then | |
6126 | eval "DEFAULT_$LINE" | |
6127 | else | |
6128 | no_cache=1 | |
6129 | fi | |
6130 | ||
6131 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
52127426 JS |
6132 | |
6133 | fi | |
10f2d63a VZ |
6134 | |
6135 | ||
6136 | eval "$ac_cv_use_newgrid" | |
6137 | if test "$no_cache" != 1; then | |
6138 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6139 | fi | |
6140 | ||
6141 | if test "$wxUSE_NEW_GRID" = yes; then | |
52127426 | 6142 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6143 | else |
52127426 | 6144 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6145 | fi |
52127426 | 6146 | |
10f2d63a | 6147 | |
52127426 JS |
6148 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
6149 | echo "configure:6150: checking for --enable-imaglist" >&5 | |
10f2d63a VZ |
6150 | no_cache=0 |
6151 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6152 | if test "${enable_imaglist+set}" = set; then | |
6153 | enableval="$enable_imaglist" | |
52127426 | 6154 | |
10f2d63a VZ |
6155 | if test "$enableval" = yes; then |
6156 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6157 | else | |
6158 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6159 | fi | |
52127426 | 6160 | |
10f2d63a | 6161 | else |
52127426 | 6162 | |
10f2d63a VZ |
6163 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6164 | if test "x$LINE" != x ; then | |
6165 | eval "DEFAULT_$LINE" | |
6166 | else | |
6167 | no_cache=1 | |
6168 | fi | |
6169 | ||
6170 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
52127426 JS |
6171 | |
6172 | fi | |
10f2d63a VZ |
6173 | |
6174 | ||
6175 | eval "$ac_cv_use_imaglist" | |
6176 | if test "$no_cache" != 1; then | |
6177 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6178 | fi | |
6179 | ||
6180 | if test "$wxUSE_IMAGLIST" = yes; then | |
52127426 | 6181 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6182 | else |
52127426 | 6183 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6184 | fi |
52127426 | 6185 | |
10f2d63a | 6186 | |
52127426 JS |
6187 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
6188 | echo "configure:6189: checking for --enable-listbox" >&5 | |
10f2d63a VZ |
6189 | no_cache=0 |
6190 | # Check whether --enable-listbox or --disable-listbox was given. | |
6191 | if test "${enable_listbox+set}" = set; then | |
6192 | enableval="$enable_listbox" | |
52127426 | 6193 | |
10f2d63a VZ |
6194 | if test "$enableval" = yes; then |
6195 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6196 | else | |
6197 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6198 | fi | |
52127426 | 6199 | |
10f2d63a | 6200 | else |
52127426 | 6201 | |
10f2d63a VZ |
6202 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6203 | if test "x$LINE" != x ; then | |
6204 | eval "DEFAULT_$LINE" | |
6205 | else | |
6206 | no_cache=1 | |
6207 | fi | |
6208 | ||
6209 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
52127426 JS |
6210 | |
6211 | fi | |
10f2d63a VZ |
6212 | |
6213 | ||
6214 | eval "$ac_cv_use_listbox" | |
6215 | if test "$no_cache" != 1; then | |
6216 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6217 | fi | |
6218 | ||
6219 | if test "$wxUSE_LISTBOX" = yes; then | |
52127426 | 6220 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6221 | else |
52127426 | 6222 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6223 | fi |
52127426 | 6224 | |
10f2d63a | 6225 | |
52127426 JS |
6226 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
6227 | echo "configure:6228: checking for --enable-listctrl" >&5 | |
10f2d63a VZ |
6228 | no_cache=0 |
6229 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6230 | if test "${enable_listctrl+set}" = set; then | |
6231 | enableval="$enable_listctrl" | |
52127426 | 6232 | |
10f2d63a VZ |
6233 | if test "$enableval" = yes; then |
6234 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6235 | else | |
6236 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6237 | fi | |
52127426 | 6238 | |
10f2d63a | 6239 | else |
52127426 | 6240 | |
10f2d63a VZ |
6241 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6242 | if test "x$LINE" != x ; then | |
6243 | eval "DEFAULT_$LINE" | |
6244 | else | |
6245 | no_cache=1 | |
6246 | fi | |
6247 | ||
6248 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
52127426 JS |
6249 | |
6250 | fi | |
10f2d63a VZ |
6251 | |
6252 | ||
6253 | eval "$ac_cv_use_listctrl" | |
6254 | if test "$no_cache" != 1; then | |
6255 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6256 | fi | |
6257 | ||
6258 | if test "$wxUSE_LISTCTRL" = yes; then | |
52127426 | 6259 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6260 | else |
52127426 | 6261 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6262 | fi |
52127426 | 6263 | |
10f2d63a | 6264 | |
52127426 JS |
6265 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
6266 | echo "configure:6267: checking for --enable-notebook" >&5 | |
10f2d63a VZ |
6267 | no_cache=0 |
6268 | # Check whether --enable-notebook or --disable-notebook was given. | |
6269 | if test "${enable_notebook+set}" = set; then | |
6270 | enableval="$enable_notebook" | |
52127426 | 6271 | |
10f2d63a VZ |
6272 | if test "$enableval" = yes; then |
6273 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6274 | else | |
6275 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6276 | fi | |
52127426 | 6277 | |
10f2d63a | 6278 | else |
52127426 | 6279 | |
10f2d63a VZ |
6280 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6281 | if test "x$LINE" != x ; then | |
6282 | eval "DEFAULT_$LINE" | |
6283 | else | |
6284 | no_cache=1 | |
6285 | fi | |
6286 | ||
6287 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
52127426 JS |
6288 | |
6289 | fi | |
10f2d63a VZ |
6290 | |
6291 | ||
6292 | eval "$ac_cv_use_notebook" | |
6293 | if test "$no_cache" != 1; then | |
6294 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6295 | fi | |
6296 | ||
6297 | if test "$wxUSE_NOTEBOOK" = yes; then | |
52127426 | 6298 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6299 | else |
52127426 | 6300 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6301 | fi |
52127426 | 6302 | |
10f2d63a | 6303 | |
52127426 JS |
6304 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
6305 | echo "configure:6306: checking for --enable-propsheet" >&5 | |
24176f2c GD |
6306 | no_cache=0 |
6307 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6308 | if test "${enable_propsheet+set}" = set; then | |
6309 | enableval="$enable_propsheet" | |
52127426 | 6310 | |
24176f2c GD |
6311 | if test "$enableval" = yes; then |
6312 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6313 | else | |
6314 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6315 | fi | |
52127426 | 6316 | |
24176f2c | 6317 | else |
52127426 | 6318 | |
24176f2c GD |
6319 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` |
6320 | if test "x$LINE" != x ; then | |
6321 | eval "DEFAULT_$LINE" | |
6322 | else | |
6323 | no_cache=1 | |
6324 | fi | |
6325 | ||
6326 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
52127426 JS |
6327 | |
6328 | fi | |
24176f2c GD |
6329 | |
6330 | ||
6331 | eval "$ac_cv_use_propsheet" | |
6332 | if test "$no_cache" != 1; then | |
6333 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6334 | fi | |
6335 | ||
6336 | if test "$wxUSE_PROPSHEET" = yes; then | |
52127426 | 6337 | echo "$ac_t""yes" 1>&6 |
24176f2c | 6338 | else |
52127426 | 6339 | echo "$ac_t""no" 1>&6 |
24176f2c | 6340 | fi |
52127426 | 6341 | |
24176f2c | 6342 | |
52127426 JS |
6343 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
6344 | echo "configure:6345: checking for --enable-radiobox" >&5 | |
10f2d63a VZ |
6345 | no_cache=0 |
6346 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6347 | if test "${enable_radiobox+set}" = set; then | |
6348 | enableval="$enable_radiobox" | |
52127426 | 6349 | |
10f2d63a VZ |
6350 | if test "$enableval" = yes; then |
6351 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6352 | else | |
6353 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6354 | fi | |
52127426 | 6355 | |
10f2d63a | 6356 | else |
52127426 | 6357 | |
10f2d63a VZ |
6358 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6359 | if test "x$LINE" != x ; then | |
6360 | eval "DEFAULT_$LINE" | |
6361 | else | |
6362 | no_cache=1 | |
6363 | fi | |
6364 | ||
6365 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
52127426 JS |
6366 | |
6367 | fi | |
10f2d63a VZ |
6368 | |
6369 | ||
6370 | eval "$ac_cv_use_radiobox" | |
6371 | if test "$no_cache" != 1; then | |
6372 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6373 | fi | |
6374 | ||
6375 | if test "$wxUSE_RADIOBOX" = yes; then | |
52127426 | 6376 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6377 | else |
52127426 | 6378 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6379 | fi |
52127426 | 6380 | |
10f2d63a | 6381 | |
52127426 JS |
6382 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
6383 | echo "configure:6384: checking for --enable-radiobtn" >&5 | |
10f2d63a VZ |
6384 | no_cache=0 |
6385 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6386 | if test "${enable_radiobtn+set}" = set; then | |
6387 | enableval="$enable_radiobtn" | |
52127426 | 6388 | |
10f2d63a VZ |
6389 | if test "$enableval" = yes; then |
6390 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6391 | else | |
6392 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6393 | fi | |
52127426 | 6394 | |
10f2d63a | 6395 | else |
52127426 | 6396 | |
10f2d63a VZ |
6397 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6398 | if test "x$LINE" != x ; then | |
6399 | eval "DEFAULT_$LINE" | |
6400 | else | |
6401 | no_cache=1 | |
6402 | fi | |
6403 | ||
6404 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
52127426 JS |
6405 | |
6406 | fi | |
10f2d63a VZ |
6407 | |
6408 | ||
6409 | eval "$ac_cv_use_radiobtn" | |
6410 | if test "$no_cache" != 1; then | |
6411 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6412 | fi | |
6413 | ||
6414 | if test "$wxUSE_RADIOBTN" = yes; then | |
52127426 | 6415 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6416 | else |
52127426 | 6417 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6418 | fi |
52127426 | 6419 | |
10f2d63a | 6420 | |
52127426 JS |
6421 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
6422 | echo "configure:6423: checking for --enable-sash" >&5 | |
10f2d63a VZ |
6423 | no_cache=0 |
6424 | # Check whether --enable-sash or --disable-sash was given. | |
6425 | if test "${enable_sash+set}" = set; then | |
6426 | enableval="$enable_sash" | |
52127426 | 6427 | |
10f2d63a VZ |
6428 | if test "$enableval" = yes; then |
6429 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6430 | else | |
6431 | ac_cv_use_sash='wxUSE_SASH=no' | |
6432 | fi | |
52127426 | 6433 | |
10f2d63a | 6434 | else |
52127426 | 6435 | |
10f2d63a VZ |
6436 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6437 | if test "x$LINE" != x ; then | |
6438 | eval "DEFAULT_$LINE" | |
6439 | else | |
6440 | no_cache=1 | |
6441 | fi | |
6442 | ||
6443 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
52127426 JS |
6444 | |
6445 | fi | |
10f2d63a VZ |
6446 | |
6447 | ||
6448 | eval "$ac_cv_use_sash" | |
6449 | if test "$no_cache" != 1; then | |
6450 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6451 | fi | |
6452 | ||
6453 | if test "$wxUSE_SASH" = yes; then | |
52127426 | 6454 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6455 | else |
52127426 | 6456 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6457 | fi |
52127426 | 6458 | |
10f2d63a | 6459 | |
52127426 JS |
6460 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
6461 | echo "configure:6462: checking for --enable-scrollbar" >&5 | |
10f2d63a VZ |
6462 | no_cache=0 |
6463 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6464 | if test "${enable_scrollbar+set}" = set; then | |
6465 | enableval="$enable_scrollbar" | |
52127426 | 6466 | |
10f2d63a VZ |
6467 | if test "$enableval" = yes; then |
6468 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6469 | else | |
6470 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6471 | fi | |
52127426 | 6472 | |
10f2d63a | 6473 | else |
52127426 | 6474 | |
10f2d63a VZ |
6475 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6476 | if test "x$LINE" != x ; then | |
6477 | eval "DEFAULT_$LINE" | |
6478 | else | |
6479 | no_cache=1 | |
6480 | fi | |
6481 | ||
6482 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
52127426 JS |
6483 | |
6484 | fi | |
10f2d63a VZ |
6485 | |
6486 | ||
6487 | eval "$ac_cv_use_scrollbar" | |
6488 | if test "$no_cache" != 1; then | |
6489 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6490 | fi | |
6491 | ||
6492 | if test "$wxUSE_SCROLLBAR" = yes; then | |
52127426 | 6493 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6494 | else |
52127426 | 6495 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6496 | fi |
52127426 | 6497 | |
10f2d63a | 6498 | |
52127426 JS |
6499 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
6500 | echo "configure:6501: checking for --enable-slider" >&5 | |
10f2d63a VZ |
6501 | no_cache=0 |
6502 | # Check whether --enable-slider or --disable-slider was given. | |
6503 | if test "${enable_slider+set}" = set; then | |
6504 | enableval="$enable_slider" | |
52127426 | 6505 | |
10f2d63a VZ |
6506 | if test "$enableval" = yes; then |
6507 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6508 | else | |
6509 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6510 | fi | |
52127426 | 6511 | |
10f2d63a | 6512 | else |
52127426 | 6513 | |
10f2d63a VZ |
6514 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6515 | if test "x$LINE" != x ; then | |
6516 | eval "DEFAULT_$LINE" | |
6517 | else | |
6518 | no_cache=1 | |
6519 | fi | |
6520 | ||
6521 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
52127426 JS |
6522 | |
6523 | fi | |
10f2d63a VZ |
6524 | |
6525 | ||
6526 | eval "$ac_cv_use_slider" | |
6527 | if test "$no_cache" != 1; then | |
6528 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6529 | fi | |
6530 | ||
6531 | if test "$wxUSE_SLIDER" = yes; then | |
52127426 | 6532 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6533 | else |
52127426 | 6534 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6535 | fi |
52127426 | 6536 | |
10f2d63a | 6537 | |
52127426 JS |
6538 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
6539 | echo "configure:6540: checking for --enable-spinbtn" >&5 | |
10f2d63a VZ |
6540 | no_cache=0 |
6541 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6542 | if test "${enable_spinbtn+set}" = set; then | |
6543 | enableval="$enable_spinbtn" | |
52127426 | 6544 | |
10f2d63a VZ |
6545 | if test "$enableval" = yes; then |
6546 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6547 | else | |
6548 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6549 | fi | |
52127426 | 6550 | |
10f2d63a | 6551 | else |
52127426 | 6552 | |
10f2d63a VZ |
6553 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6554 | if test "x$LINE" != x ; then | |
6555 | eval "DEFAULT_$LINE" | |
6556 | else | |
6557 | no_cache=1 | |
6558 | fi | |
6559 | ||
6560 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
52127426 JS |
6561 | |
6562 | fi | |
10f2d63a VZ |
6563 | |
6564 | ||
6565 | eval "$ac_cv_use_spinbtn" | |
6566 | if test "$no_cache" != 1; then | |
6567 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6568 | fi | |
6569 | ||
6570 | if test "$wxUSE_SPINBTN" = yes; then | |
52127426 | 6571 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6572 | else |
52127426 | 6573 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6574 | fi |
52127426 | 6575 | |
10f2d63a | 6576 | |
52127426 JS |
6577 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
6578 | echo "configure:6579: checking for --enable-spinctrl" >&5 | |
56cfaa52 RR |
6579 | no_cache=0 |
6580 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6581 | if test "${enable_spinctrl+set}" = set; then | |
6582 | enableval="$enable_spinctrl" | |
52127426 | 6583 | |
56cfaa52 RR |
6584 | if test "$enableval" = yes; then |
6585 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6586 | else | |
6587 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6588 | fi | |
52127426 | 6589 | |
56cfaa52 | 6590 | else |
52127426 | 6591 | |
56cfaa52 RR |
6592 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6593 | if test "x$LINE" != x ; then | |
6594 | eval "DEFAULT_$LINE" | |
6595 | else | |
6596 | no_cache=1 | |
6597 | fi | |
6598 | ||
6599 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
52127426 JS |
6600 | |
6601 | fi | |
56cfaa52 RR |
6602 | |
6603 | ||
6604 | eval "$ac_cv_use_spinctrl" | |
6605 | if test "$no_cache" != 1; then | |
6606 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6607 | fi | |
6608 | ||
6609 | if test "$wxUSE_SPINCTRL" = yes; then | |
52127426 | 6610 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6611 | else |
52127426 | 6612 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6613 | fi |
52127426 | 6614 | |
56cfaa52 | 6615 | |
52127426 JS |
6616 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
6617 | echo "configure:6618: checking for --enable-splitter" >&5 | |
10f2d63a VZ |
6618 | no_cache=0 |
6619 | # Check whether --enable-splitter or --disable-splitter was given. | |
6620 | if test "${enable_splitter+set}" = set; then | |
6621 | enableval="$enable_splitter" | |
52127426 | 6622 | |
10f2d63a VZ |
6623 | if test "$enableval" = yes; then |
6624 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6625 | else | |
6626 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6627 | fi | |
52127426 | 6628 | |
10f2d63a | 6629 | else |
52127426 | 6630 | |
10f2d63a VZ |
6631 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6632 | if test "x$LINE" != x ; then | |
6633 | eval "DEFAULT_$LINE" | |
6634 | else | |
6635 | no_cache=1 | |
6636 | fi | |
6637 | ||
6638 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
52127426 JS |
6639 | |
6640 | fi | |
10f2d63a VZ |
6641 | |
6642 | ||
6643 | eval "$ac_cv_use_splitter" | |
6644 | if test "$no_cache" != 1; then | |
6645 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6646 | fi | |
6647 | ||
6648 | if test "$wxUSE_SPLITTER" = yes; then | |
52127426 | 6649 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6650 | else |
52127426 | 6651 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6652 | fi |
52127426 | 6653 | |
10f2d63a | 6654 | |
52127426 JS |
6655 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
6656 | echo "configure:6657: checking for --enable-statbmp" >&5 | |
10f2d63a VZ |
6657 | no_cache=0 |
6658 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6659 | if test "${enable_statbmp+set}" = set; then | |
6660 | enableval="$enable_statbmp" | |
52127426 | 6661 | |
10f2d63a VZ |
6662 | if test "$enableval" = yes; then |
6663 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6664 | else | |
6665 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6666 | fi | |
52127426 | 6667 | |
10f2d63a | 6668 | else |
52127426 | 6669 | |
10f2d63a VZ |
6670 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6671 | if test "x$LINE" != x ; then | |
6672 | eval "DEFAULT_$LINE" | |
6673 | else | |
6674 | no_cache=1 | |
6675 | fi | |
6676 | ||
6677 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
52127426 JS |
6678 | |
6679 | fi | |
10f2d63a VZ |
6680 | |
6681 | ||
6682 | eval "$ac_cv_use_statbmp" | |
6683 | if test "$no_cache" != 1; then | |
6684 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6685 | fi | |
6686 | ||
6687 | if test "$wxUSE_STATBMP" = yes; then | |
52127426 | 6688 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6689 | else |
52127426 | 6690 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6691 | fi |
52127426 | 6692 | |
10f2d63a | 6693 | |
52127426 JS |
6694 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
6695 | echo "configure:6696: checking for --enable-statbox" >&5 | |
10f2d63a VZ |
6696 | no_cache=0 |
6697 | # Check whether --enable-statbox or --disable-statbox was given. | |
6698 | if test "${enable_statbox+set}" = set; then | |
6699 | enableval="$enable_statbox" | |
52127426 | 6700 | |
10f2d63a VZ |
6701 | if test "$enableval" = yes; then |
6702 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6703 | else | |
6704 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6705 | fi | |
52127426 | 6706 | |
10f2d63a | 6707 | else |
52127426 | 6708 | |
10f2d63a VZ |
6709 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6710 | if test "x$LINE" != x ; then | |
6711 | eval "DEFAULT_$LINE" | |
6712 | else | |
6713 | no_cache=1 | |
6714 | fi | |
6715 | ||
6716 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
52127426 JS |
6717 | |
6718 | fi | |
10f2d63a VZ |
6719 | |
6720 | ||
6721 | eval "$ac_cv_use_statbox" | |
6722 | if test "$no_cache" != 1; then | |
6723 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6724 | fi | |
6725 | ||
6726 | if test "$wxUSE_STATBOX" = yes; then | |
52127426 | 6727 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6728 | else |
52127426 | 6729 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6730 | fi |
52127426 | 6731 | |
10f2d63a | 6732 | |
52127426 JS |
6733 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
6734 | echo "configure:6735: checking for --enable-statline" >&5 | |
10f2d63a VZ |
6735 | no_cache=0 |
6736 | # Check whether --enable-statline or --disable-statline was given. | |
6737 | if test "${enable_statline+set}" = set; then | |
6738 | enableval="$enable_statline" | |
52127426 | 6739 | |
10f2d63a VZ |
6740 | if test "$enableval" = yes; then |
6741 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6742 | else | |
6743 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6744 | fi | |
52127426 | 6745 | |
10f2d63a | 6746 | else |
52127426 | 6747 | |
10f2d63a VZ |
6748 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6749 | if test "x$LINE" != x ; then | |
6750 | eval "DEFAULT_$LINE" | |
6751 | else | |
6752 | no_cache=1 | |
6753 | fi | |
6754 | ||
6755 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
52127426 JS |
6756 | |
6757 | fi | |
10f2d63a VZ |
6758 | |
6759 | ||
6760 | eval "$ac_cv_use_statline" | |
6761 | if test "$no_cache" != 1; then | |
6762 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6763 | fi | |
6764 | ||
6765 | if test "$wxUSE_STATLINE" = yes; then | |
52127426 | 6766 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6767 | else |
52127426 | 6768 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6769 | fi |
52127426 | 6770 | |
10f2d63a | 6771 | |
52127426 JS |
6772 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
6773 | echo "configure:6774: checking for --enable-stattext" >&5 | |
1e6feb95 VZ |
6774 | no_cache=0 |
6775 | # Check whether --enable-stattext or --disable-stattext was given. | |
6776 | if test "${enable_stattext+set}" = set; then | |
6777 | enableval="$enable_stattext" | |
52127426 | 6778 | |
1e6feb95 VZ |
6779 | if test "$enableval" = yes; then |
6780 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6781 | else | |
6782 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6783 | fi | |
52127426 | 6784 | |
1e6feb95 | 6785 | else |
52127426 | 6786 | |
1e6feb95 VZ |
6787 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
6788 | if test "x$LINE" != x ; then | |
6789 | eval "DEFAULT_$LINE" | |
6790 | else | |
6791 | no_cache=1 | |
6792 | fi | |
6793 | ||
6794 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
52127426 JS |
6795 | |
6796 | fi | |
1e6feb95 VZ |
6797 | |
6798 | ||
6799 | eval "$ac_cv_use_stattext" | |
6800 | if test "$no_cache" != 1; then | |
6801 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6802 | fi | |
6803 | ||
6804 | if test "$wxUSE_STATTEXT" = yes; then | |
52127426 | 6805 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6806 | else |
52127426 | 6807 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6808 | fi |
52127426 | 6809 | |
1e6feb95 | 6810 | |
52127426 JS |
6811 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
6812 | echo "configure:6813: checking for --enable-statusbar" >&5 | |
10f2d63a VZ |
6813 | no_cache=0 |
6814 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6815 | if test "${enable_statusbar+set}" = set; then | |
6816 | enableval="$enable_statusbar" | |
52127426 | 6817 | |
10f2d63a VZ |
6818 | if test "$enableval" = yes; then |
6819 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6820 | else | |
6821 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6822 | fi | |
52127426 | 6823 | |
10f2d63a | 6824 | else |
52127426 | 6825 | |
10f2d63a VZ |
6826 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6827 | if test "x$LINE" != x ; then | |
6828 | eval "DEFAULT_$LINE" | |
6829 | else | |
6830 | no_cache=1 | |
6831 | fi | |
6832 | ||
6833 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
52127426 JS |
6834 | |
6835 | fi | |
10f2d63a VZ |
6836 | |
6837 | ||
6838 | eval "$ac_cv_use_statusbar" | |
6839 | if test "$no_cache" != 1; then | |
6840 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6841 | fi | |
6842 | ||
6843 | if test "$wxUSE_STATUSBAR" = yes; then | |
52127426 | 6844 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6845 | else |
52127426 | 6846 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6847 | fi |
52127426 | 6848 | |
10f2d63a | 6849 | |
52127426 JS |
6850 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
6851 | echo "configure:6852: checking for --enable-tabdialog" >&5 | |
10f2d63a VZ |
6852 | no_cache=0 |
6853 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6854 | if test "${enable_tabdialog+set}" = set; then | |
6855 | enableval="$enable_tabdialog" | |
52127426 | 6856 | |
10f2d63a VZ |
6857 | if test "$enableval" = yes; then |
6858 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6859 | else | |
6860 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6861 | fi | |
52127426 | 6862 | |
10f2d63a | 6863 | else |
52127426 | 6864 | |
10f2d63a VZ |
6865 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6866 | if test "x$LINE" != x ; then | |
6867 | eval "DEFAULT_$LINE" | |
6868 | else | |
6869 | no_cache=1 | |
6870 | fi | |
6871 | ||
6872 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
52127426 JS |
6873 | |
6874 | fi | |
10f2d63a VZ |
6875 | |
6876 | ||
6877 | eval "$ac_cv_use_tabdialog" | |
6878 | if test "$no_cache" != 1; then | |
6879 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6880 | fi | |
6881 | ||
6882 | if test "$wxUSE_TABDIALOG" = yes; then | |
52127426 | 6883 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6884 | else |
52127426 | 6885 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6886 | fi |
52127426 | 6887 | |
10f2d63a | 6888 | |
52127426 JS |
6889 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
6890 | echo "configure:6891: checking for --enable-textctrl" >&5 | |
1e6feb95 VZ |
6891 | no_cache=0 |
6892 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6893 | if test "${enable_textctrl+set}" = set; then | |
6894 | enableval="$enable_textctrl" | |
52127426 | 6895 | |
1e6feb95 VZ |
6896 | if test "$enableval" = yes; then |
6897 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6898 | else | |
6899 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6900 | fi | |
52127426 | 6901 | |
1e6feb95 | 6902 | else |
52127426 | 6903 | |
1e6feb95 VZ |
6904 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
6905 | if test "x$LINE" != x ; then | |
6906 | eval "DEFAULT_$LINE" | |
6907 | else | |
6908 | no_cache=1 | |
6909 | fi | |
6910 | ||
6911 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
52127426 JS |
6912 | |
6913 | fi | |
1e6feb95 VZ |
6914 | |
6915 | ||
6916 | eval "$ac_cv_use_textctrl" | |
6917 | if test "$no_cache" != 1; then | |
6918 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6919 | fi | |
6920 | ||
6921 | if test "$wxUSE_TEXTCTRL" = yes; then | |
52127426 | 6922 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6923 | else |
52127426 | 6924 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6925 | fi |
52127426 | 6926 | |
1e6feb95 | 6927 | |
52127426 JS |
6928 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
6929 | echo "configure:6930: checking for --enable-togglebtn" >&5 | |
1db8dc4a VZ |
6930 | no_cache=0 |
6931 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6932 | if test "${enable_togglebtn+set}" = set; then | |
6933 | enableval="$enable_togglebtn" | |
52127426 | 6934 | |
1db8dc4a VZ |
6935 | if test "$enableval" = yes; then |
6936 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6937 | else | |
6938 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6939 | fi | |
52127426 | 6940 | |
1db8dc4a | 6941 | else |
52127426 | 6942 | |
1db8dc4a VZ |
6943 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6944 | if test "x$LINE" != x ; then | |
6945 | eval "DEFAULT_$LINE" | |
6946 | else | |
6947 | no_cache=1 | |
6948 | fi | |
6949 | ||
6950 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
52127426 JS |
6951 | |
6952 | fi | |
1db8dc4a VZ |
6953 | |
6954 | ||
6955 | eval "$ac_cv_use_togglebtn" | |
6956 | if test "$no_cache" != 1; then | |
6957 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6958 | fi | |
6959 | ||
6960 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
52127426 | 6961 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6962 | else |
52127426 | 6963 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6964 | fi |
52127426 | 6965 | |
1db8dc4a | 6966 | |
52127426 JS |
6967 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
6968 | echo "configure:6969: checking for --enable-toolbar" >&5 | |
10f2d63a VZ |
6969 | no_cache=0 |
6970 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6971 | if test "${enable_toolbar+set}" = set; then | |
6972 | enableval="$enable_toolbar" | |
52127426 | 6973 | |
10f2d63a VZ |
6974 | if test "$enableval" = yes; then |
6975 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6976 | else | |
6977 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6978 | fi | |
52127426 | 6979 | |
10f2d63a | 6980 | else |
52127426 | 6981 | |
10f2d63a VZ |
6982 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6983 | if test "x$LINE" != x ; then | |
6984 | eval "DEFAULT_$LINE" | |
6985 | else | |
6986 | no_cache=1 | |
6987 | fi | |
6988 | ||
6989 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
52127426 JS |
6990 | |
6991 | fi | |
10f2d63a VZ |
6992 | |
6993 | ||
6994 | eval "$ac_cv_use_toolbar" | |
6995 | if test "$no_cache" != 1; then | |
6996 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6997 | fi | |
6998 | ||
6999 | if test "$wxUSE_TOOLBAR" = yes; then | |
52127426 | 7000 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7001 | else |
52127426 | 7002 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7003 | fi |
52127426 | 7004 | |
10f2d63a | 7005 | |
52127426 JS |
7006 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
7007 | echo "configure:7008: checking for --enable-tbarnative" >&5 | |
360d6699 VZ |
7008 | no_cache=0 |
7009 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7010 | if test "${enable_tbarnative+set}" = set; then | |
7011 | enableval="$enable_tbarnative" | |
52127426 | 7012 | |
360d6699 VZ |
7013 | if test "$enableval" = yes; then |
7014 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7015 | else | |
7016 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7017 | fi | |
52127426 | 7018 | |
360d6699 | 7019 | else |
52127426 | 7020 | |
360d6699 VZ |
7021 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7022 | if test "x$LINE" != x ; then | |
7023 | eval "DEFAULT_$LINE" | |
7024 | else | |
7025 | no_cache=1 | |
7026 | fi | |
7027 | ||
7028 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
52127426 JS |
7029 | |
7030 | fi | |
360d6699 VZ |
7031 | |
7032 | ||
7033 | eval "$ac_cv_use_tbarnative" | |
7034 | if test "$no_cache" != 1; then | |
7035 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7036 | fi | |
7037 | ||
7038 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
52127426 | 7039 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7040 | else |
52127426 | 7041 | echo "$ac_t""no" 1>&6 |
360d6699 | 7042 | fi |
52127426 | 7043 | |
360d6699 | 7044 | |
52127426 JS |
7045 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
7046 | echo "configure:7047: checking for --enable-tbarsmpl" >&5 | |
360d6699 VZ |
7047 | no_cache=0 |
7048 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7049 | if test "${enable_tbarsmpl+set}" = set; then | |
7050 | enableval="$enable_tbarsmpl" | |
52127426 | 7051 | |
360d6699 VZ |
7052 | if test "$enableval" = yes; then |
7053 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7054 | else | |
7055 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7056 | fi | |
52127426 | 7057 | |
360d6699 | 7058 | else |
52127426 | 7059 | |
360d6699 VZ |
7060 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7061 | if test "x$LINE" != x ; then | |
7062 | eval "DEFAULT_$LINE" | |
7063 | else | |
7064 | no_cache=1 | |
7065 | fi | |
7066 | ||
7067 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
52127426 JS |
7068 | |
7069 | fi | |
360d6699 VZ |
7070 | |
7071 | ||
7072 | eval "$ac_cv_use_tbarsmpl" | |
7073 | if test "$no_cache" != 1; then | |
7074 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7075 | fi | |
7076 | ||
7077 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
52127426 | 7078 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7079 | else |
52127426 | 7080 | echo "$ac_t""no" 1>&6 |
360d6699 | 7081 | fi |
52127426 | 7082 | |
360d6699 | 7083 | |
52127426 JS |
7084 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
7085 | echo "configure:7086: checking for --enable-treectrl" >&5 | |
10f2d63a VZ |
7086 | no_cache=0 |
7087 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7088 | if test "${enable_treectrl+set}" = set; then | |
7089 | enableval="$enable_treectrl" | |
52127426 | 7090 | |
10f2d63a VZ |
7091 | if test "$enableval" = yes; then |
7092 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7093 | else | |
7094 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7095 | fi | |
52127426 | 7096 | |
10f2d63a | 7097 | else |
52127426 | 7098 | |
10f2d63a VZ |
7099 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7100 | if test "x$LINE" != x ; then | |
7101 | eval "DEFAULT_$LINE" | |
7102 | else | |
7103 | no_cache=1 | |
7104 | fi | |
7105 | ||
7106 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
52127426 JS |
7107 | |
7108 | fi | |
10f2d63a VZ |
7109 | |
7110 | ||
1e6feb95 VZ |
7111 | eval "$ac_cv_use_treectrl" |
7112 | if test "$no_cache" != 1; then | |
7113 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7114 | fi | |
7115 | ||
7116 | if test "$wxUSE_TREECTRL" = yes; then | |
52127426 | 7117 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7118 | else |
52127426 | 7119 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7120 | fi |
52127426 | 7121 | |
1e6feb95 | 7122 | |
52127426 JS |
7123 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 |
7124 | echo "configure:7125: checking for --enable-tipwindow" >&5 | |
9926e4a4 VZ |
7125 | no_cache=0 |
7126 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7127 | if test "${enable_tipwindow+set}" = set; then | |
7128 | enableval="$enable_tipwindow" | |
52127426 | 7129 | |
9926e4a4 VZ |
7130 | if test "$enableval" = yes; then |
7131 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7132 | else | |
7133 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7134 | fi | |
52127426 | 7135 | |
9926e4a4 | 7136 | else |
52127426 | 7137 | |
9926e4a4 VZ |
7138 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
7139 | if test "x$LINE" != x ; then | |
7140 | eval "DEFAULT_$LINE" | |
7141 | else | |
7142 | no_cache=1 | |
7143 | fi | |
7144 | ||
7145 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
52127426 JS |
7146 | |
7147 | fi | |
9926e4a4 VZ |
7148 | |
7149 | ||
7150 | eval "$ac_cv_use_tipwindow" | |
7151 | if test "$no_cache" != 1; then | |
7152 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7153 | fi | |
7154 | ||
7155 | if test "$wxUSE_TIPWINDOW" = yes; then | |
52127426 | 7156 | echo "$ac_t""yes" 1>&6 |
9926e4a4 | 7157 | else |
52127426 | 7158 | echo "$ac_t""no" 1>&6 |
9926e4a4 | 7159 | fi |
52127426 | 7160 | |
9926e4a4 | 7161 | |
52127426 JS |
7162 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
7163 | echo "configure:7164: checking for --enable-popupwin" >&5 | |
9f41d601 RR |
7164 | no_cache=0 |
7165 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7166 | if test "${enable_popupwin+set}" = set; then | |
7167 | enableval="$enable_popupwin" | |
52127426 | 7168 | |
9f41d601 RR |
7169 | if test "$enableval" = yes; then |
7170 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7171 | else | |
7172 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7173 | fi | |
52127426 | 7174 | |
9f41d601 | 7175 | else |
52127426 | 7176 | |
9f41d601 RR |
7177 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
7178 | if test "x$LINE" != x ; then | |
7179 | eval "DEFAULT_$LINE" | |
7180 | else | |
7181 | no_cache=1 | |
7182 | fi | |
7183 | ||
7184 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
52127426 JS |
7185 | |
7186 | fi | |
9f41d601 RR |
7187 | |
7188 | ||
7189 | eval "$ac_cv_use_popupwin" | |
7190 | if test "$no_cache" != 1; then | |
7191 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7192 | fi | |
7193 | ||
7194 | if test "$wxUSE_POPUPWIN" = yes; then | |
52127426 | 7195 | echo "$ac_t""yes" 1>&6 |
9f41d601 | 7196 | else |
52127426 | 7197 | echo "$ac_t""no" 1>&6 |
9f41d601 | 7198 | fi |
52127426 JS |
7199 | |
7200 | ||
9f41d601 | 7201 | |
52127426 JS |
7202 | |
7203 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
7204 | echo "configure:7205: checking for --enable-commondlg" >&5 | |
1e6feb95 VZ |
7205 | no_cache=0 |
7206 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7207 | if test "${enable_commondlg+set}" = set; then | |
7208 | enableval="$enable_commondlg" | |
52127426 | 7209 | |
1e6feb95 VZ |
7210 | if test "$enableval" = yes; then |
7211 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7212 | else | |
7213 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7214 | fi | |
52127426 | 7215 | |
1e6feb95 | 7216 | else |
52127426 | 7217 | |
1e6feb95 VZ |
7218 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
7219 | if test "x$LINE" != x ; then | |
7220 | eval "DEFAULT_$LINE" | |
7221 | else | |
7222 | no_cache=1 | |
7223 | fi | |
7224 | ||
7225 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
52127426 JS |
7226 | |
7227 | fi | |
1e6feb95 VZ |
7228 | |
7229 | ||
7230 | eval "$ac_cv_use_commondlg" | |
7231 | if test "$no_cache" != 1; then | |
7232 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7233 | fi | |
7234 | ||
7235 | if test "$wxUSE_COMMONDLGS" = yes; then | |
52127426 | 7236 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7237 | else |
52127426 | 7238 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7239 | fi |
52127426 | 7240 | |
1e6feb95 | 7241 | |
52127426 JS |
7242 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 |
7243 | echo "configure:7244: checking for --enable-choicedlg" >&5 | |
1e6feb95 VZ |
7244 | no_cache=0 |
7245 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7246 | if test "${enable_choicedlg+set}" = set; then | |
7247 | enableval="$enable_choicedlg" | |
52127426 | 7248 | |
1e6feb95 VZ |
7249 | if test "$enableval" = yes; then |
7250 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7251 | else | |
7252 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7253 | fi | |
52127426 | 7254 | |
1e6feb95 | 7255 | else |
52127426 | 7256 | |
1e6feb95 VZ |
7257 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
7258 | if test "x$LINE" != x ; then | |
7259 | eval "DEFAULT_$LINE" | |
7260 | else | |
7261 | no_cache=1 | |
7262 | fi | |
7263 | ||
7264 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
52127426 JS |
7265 | |
7266 | fi | |
1e6feb95 VZ |
7267 | |
7268 | ||
7269 | eval "$ac_cv_use_choicedlg" | |
7270 | if test "$no_cache" != 1; then | |
7271 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7272 | fi | |
7273 | ||
7274 | if test "$wxUSE_CHOICEDLG" = yes; then | |
52127426 | 7275 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7276 | else |
52127426 | 7277 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7278 | fi |
52127426 | 7279 | |
1e6feb95 | 7280 | |
52127426 JS |
7281 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 |
7282 | echo "configure:7283: checking for --enable-coldlg" >&5 | |
1e6feb95 VZ |
7283 | no_cache=0 |
7284 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7285 | if test "${enable_coldlg+set}" = set; then | |
7286 | enableval="$enable_coldlg" | |
52127426 | 7287 | |
1e6feb95 VZ |
7288 | if test "$enableval" = yes; then |
7289 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7290 | else | |
7291 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7292 | fi | |
52127426 | 7293 | |
1e6feb95 | 7294 | else |
52127426 | 7295 | |
1e6feb95 VZ |
7296 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
7297 | if test "x$LINE" != x ; then | |
7298 | eval "DEFAULT_$LINE" | |
7299 | else | |
7300 | no_cache=1 | |
7301 | fi | |
7302 | ||
7303 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
52127426 JS |
7304 | |
7305 | fi | |
1e6feb95 VZ |
7306 | |
7307 | ||
7308 | eval "$ac_cv_use_coldlg" | |
7309 | if test "$no_cache" != 1; then | |
7310 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7311 | fi | |
7312 | ||
7313 | if test "$wxUSE_COLOURDLG" = yes; then | |
52127426 | 7314 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7315 | else |
52127426 | 7316 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7317 | fi |
52127426 | 7318 | |
1e6feb95 | 7319 | |
52127426 JS |
7320 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 |
7321 | echo "configure:7322: checking for --enable-filedlg" >&5 | |
1e6feb95 VZ |
7322 | no_cache=0 |
7323 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7324 | if test "${enable_filedlg+set}" = set; then | |
7325 | enableval="$enable_filedlg" | |
52127426 | 7326 | |
1e6feb95 VZ |
7327 | if test "$enableval" = yes; then |
7328 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7329 | else | |
7330 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7331 | fi | |
52127426 | 7332 | |
1e6feb95 | 7333 | else |
52127426 | 7334 | |
1e6feb95 VZ |
7335 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
7336 | if test "x$LINE" != x ; then | |
7337 | eval "DEFAULT_$LINE" | |
7338 | else | |
7339 | no_cache=1 | |
7340 | fi | |
7341 | ||
7342 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
52127426 JS |
7343 | |
7344 | fi | |
1e6feb95 VZ |
7345 | |
7346 | ||
7347 | eval "$ac_cv_use_filedlg" | |
7348 | if test "$no_cache" != 1; then | |
7349 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7350 | fi | |
7351 | ||
7352 | if test "$wxUSE_FILEDLG" = yes; then | |
52127426 | 7353 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7354 | else |
52127426 | 7355 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7356 | fi |
52127426 | 7357 | |
1e6feb95 | 7358 | |
52127426 JS |
7359 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 |
7360 | echo "configure:7361: checking for --enable-finddlg" >&5 | |
8db37e06 | 7361 | no_cache=0 |
69d27ff7 MB |
7362 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7363 | if test "${enable_finddlg+set}" = set; then | |
7364 | enableval="$enable_finddlg" | |
52127426 | 7365 | |
8db37e06 | 7366 | if test "$enableval" = yes; then |
69d27ff7 | 7367 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7368 | else |
69d27ff7 | 7369 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 7370 | fi |
52127426 | 7371 | |
8db37e06 | 7372 | else |
52127426 | 7373 | |
8db37e06 VZ |
7374 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
7375 | if test "x$LINE" != x ; then | |
7376 | eval "DEFAULT_$LINE" | |
7377 | else | |
7378 | no_cache=1 | |
7379 | fi | |
7380 | ||
69d27ff7 | 7381 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
52127426 JS |
7382 | |
7383 | fi | |
8db37e06 VZ |
7384 | |
7385 | ||
69d27ff7 | 7386 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7387 | if test "$no_cache" != 1; then |
69d27ff7 | 7388 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7389 | fi |
7390 | ||
7391 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
52127426 | 7392 | echo "$ac_t""yes" 1>&6 |
8db37e06 | 7393 | else |
52127426 | 7394 | echo "$ac_t""no" 1>&6 |
8db37e06 | 7395 | fi |
52127426 | 7396 | |
8db37e06 | 7397 | |
52127426 JS |
7398 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
7399 | echo "configure:7400: checking for --enable-fontdlg" >&5 | |
1e6feb95 VZ |
7400 | no_cache=0 |
7401 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7402 | if test "${enable_fontdlg+set}" = set; then | |
7403 | enableval="$enable_fontdlg" | |
52127426 | 7404 | |
1e6feb95 VZ |
7405 | if test "$enableval" = yes; then |
7406 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7407 | else | |
7408 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7409 | fi | |
52127426 | 7410 | |
1e6feb95 | 7411 | else |
52127426 | 7412 | |
1e6feb95 VZ |
7413 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
7414 | if test "x$LINE" != x ; then | |
7415 | eval "DEFAULT_$LINE" | |
7416 | else | |
7417 | no_cache=1 | |
7418 | fi | |
7419 | ||
7420 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
52127426 JS |
7421 | |
7422 | fi | |
1e6feb95 VZ |
7423 | |
7424 | ||
7425 | eval "$ac_cv_use_fontdlg" | |
7426 | if test "$no_cache" != 1; then | |
7427 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7428 | fi | |
7429 | ||
7430 | if test "$wxUSE_FONTDLG" = yes; then | |
52127426 | 7431 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7432 | else |
52127426 | 7433 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7434 | fi |
52127426 | 7435 | |
1e6feb95 | 7436 | |
52127426 JS |
7437 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 |
7438 | echo "configure:7439: checking for --enable-dirdlg" >&5 | |
1e6feb95 VZ |
7439 | no_cache=0 |
7440 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7441 | if test "${enable_dirdlg+set}" = set; then | |
7442 | enableval="$enable_dirdlg" | |
52127426 | 7443 | |
1e6feb95 VZ |
7444 | if test "$enableval" = yes; then |
7445 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7446 | else | |
7447 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7448 | fi | |
52127426 | 7449 | |
1e6feb95 | 7450 | else |
52127426 | 7451 | |
1e6feb95 VZ |
7452 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
7453 | if test "x$LINE" != x ; then | |
7454 | eval "DEFAULT_$LINE" | |
7455 | else | |
7456 | no_cache=1 | |
7457 | fi | |
7458 | ||
7459 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
52127426 JS |
7460 | |
7461 | fi | |
1e6feb95 VZ |
7462 | |
7463 | ||
7464 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7465 | if test "$no_cache" != 1; then |
1e6feb95 | 7466 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7467 | fi |
7468 | ||
1e6feb95 | 7469 | if test "$wxUSE_DIRDLG" = yes; then |
52127426 | 7470 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7471 | else |
52127426 | 7472 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7473 | fi |
52127426 | 7474 | |
698dcdb6 | 7475 | |
52127426 JS |
7476 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
7477 | echo "configure:7478: checking for --enable-msgdlg" >&5 | |
10f2d63a | 7478 | no_cache=0 |
1e6feb95 VZ |
7479 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7480 | if test "${enable_msgdlg+set}" = set; then | |
7481 | enableval="$enable_msgdlg" | |
52127426 | 7482 | |
10f2d63a | 7483 | if test "$enableval" = yes; then |
1e6feb95 | 7484 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7485 | else |
1e6feb95 | 7486 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7487 | fi |
52127426 | 7488 | |
10f2d63a | 7489 | else |
52127426 | 7490 | |
1e6feb95 | 7491 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7492 | if test "x$LINE" != x ; then |
7493 | eval "DEFAULT_$LINE" | |
7494 | else | |
7495 | no_cache=1 | |
7496 | fi | |
7497 | ||
1e6feb95 | 7498 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
52127426 JS |
7499 | |
7500 | fi | |
10f2d63a VZ |
7501 | |
7502 | ||
1e6feb95 | 7503 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7504 | if test "$no_cache" != 1; then |
1e6feb95 | 7505 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7506 | fi |
7507 | ||
1e6feb95 | 7508 | if test "$wxUSE_MSGDLG" = yes; then |
52127426 | 7509 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7510 | else |
52127426 | 7511 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7512 | fi |
52127426 | 7513 | |
10f2d63a | 7514 | |
52127426 JS |
7515 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
7516 | echo "configure:7517: checking for --enable-numberdlg" >&5 | |
10f2d63a | 7517 | no_cache=0 |
1e6feb95 VZ |
7518 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7519 | if test "${enable_numberdlg+set}" = set; then | |
7520 | enableval="$enable_numberdlg" | |
52127426 | 7521 | |
10f2d63a | 7522 | if test "$enableval" = yes; then |
1e6feb95 | 7523 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7524 | else |
1e6feb95 | 7525 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7526 | fi |
52127426 | 7527 | |
10f2d63a | 7528 | else |
52127426 | 7529 | |
1e6feb95 | 7530 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7531 | if test "x$LINE" != x ; then |
7532 | eval "DEFAULT_$LINE" | |
7533 | else | |
7534 | no_cache=1 | |
7535 | fi | |
7536 | ||
1e6feb95 | 7537 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
52127426 JS |
7538 | |
7539 | fi | |
10f2d63a VZ |
7540 | |
7541 | ||
1e6feb95 | 7542 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7543 | if test "$no_cache" != 1; then |
1e6feb95 | 7544 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7545 | fi |
7546 | ||
1e6feb95 | 7547 | if test "$wxUSE_NUMBERDLG" = yes; then |
52127426 | 7548 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7549 | else |
52127426 | 7550 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7551 | fi |
52127426 | 7552 | |
10f2d63a | 7553 | |
52127426 JS |
7554 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
7555 | echo "configure:7556: checking for --enable-splash" >&5 | |
cbca9943 VZ |
7556 | no_cache=0 |
7557 | # Check whether --enable-splash or --disable-splash was given. | |
7558 | if test "${enable_splash+set}" = set; then | |
7559 | enableval="$enable_splash" | |
52127426 | 7560 | |
cbca9943 VZ |
7561 | if test "$enableval" = yes; then |
7562 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7563 | else | |
7564 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7565 | fi | |
52127426 | 7566 | |
cbca9943 | 7567 | else |
52127426 | 7568 | |
cbca9943 VZ |
7569 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
7570 | if test "x$LINE" != x ; then | |
7571 | eval "DEFAULT_$LINE" | |
7572 | else | |
7573 | no_cache=1 | |
7574 | fi | |
7575 | ||
7576 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
52127426 JS |
7577 | |
7578 | fi | |
cbca9943 VZ |
7579 | |
7580 | ||
7581 | eval "$ac_cv_use_splash" | |
7582 | if test "$no_cache" != 1; then | |
7583 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7584 | fi | |
7585 | ||
7586 | if test "$wxUSE_SPLASH" = yes; then | |
52127426 | 7587 | echo "$ac_t""yes" 1>&6 |
cbca9943 | 7588 | else |
52127426 | 7589 | echo "$ac_t""no" 1>&6 |
cbca9943 | 7590 | fi |
52127426 | 7591 | |
cbca9943 | 7592 | |
52127426 JS |
7593 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
7594 | echo "configure:7595: checking for --enable-textdlg" >&5 | |
10f2d63a VZ |
7595 | no_cache=0 |
7596 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7597 | if test "${enable_textdlg+set}" = set; then | |
7598 | enableval="$enable_textdlg" | |
52127426 | 7599 | |
10f2d63a VZ |
7600 | if test "$enableval" = yes; then |
7601 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7602 | else | |
7603 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7604 | fi | |
52127426 | 7605 | |
10f2d63a | 7606 | else |
52127426 | 7607 | |
10f2d63a VZ |
7608 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7609 | if test "x$LINE" != x ; then | |
7610 | eval "DEFAULT_$LINE" | |
7611 | else | |
7612 | no_cache=1 | |
7613 | fi | |
7614 | ||
7615 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
52127426 JS |
7616 | |
7617 | fi | |
10f2d63a VZ |
7618 | |
7619 | ||
7620 | eval "$ac_cv_use_textdlg" | |
7621 | if test "$no_cache" != 1; then | |
7622 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7623 | fi | |
7624 | ||
7625 | if test "$wxUSE_TEXTDLG" = yes; then | |
52127426 | 7626 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7627 | else |
52127426 | 7628 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7629 | fi |
52127426 | 7630 | |
10f2d63a | 7631 | |
52127426 JS |
7632 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
7633 | echo "configure:7634: checking for --enable-tipdlg" >&5 | |
10f2d63a VZ |
7634 | no_cache=0 |
7635 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7636 | if test "${enable_tipdlg+set}" = set; then | |
7637 | enableval="$enable_tipdlg" | |
52127426 | 7638 | |
10f2d63a VZ |
7639 | if test "$enableval" = yes; then |
7640 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7641 | else | |
7642 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7643 | fi | |
52127426 | 7644 | |
10f2d63a | 7645 | else |
52127426 | 7646 | |
10f2d63a VZ |
7647 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7648 | if test "x$LINE" != x ; then | |
7649 | eval "DEFAULT_$LINE" | |
7650 | else | |
7651 | no_cache=1 | |
7652 | fi | |
7653 | ||
7654 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
52127426 JS |
7655 | |
7656 | fi | |
10f2d63a VZ |
7657 | |
7658 | ||
7659 | eval "$ac_cv_use_tipdlg" | |
7660 | if test "$no_cache" != 1; then | |
7661 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7662 | fi | |
7663 | ||
7664 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
52127426 | 7665 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7666 | else |
52127426 | 7667 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7668 | fi |
52127426 | 7669 | |
10f2d63a | 7670 | |
52127426 JS |
7671 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
7672 | echo "configure:7673: checking for --enable-progressdlg" >&5 | |
10f2d63a VZ |
7673 | no_cache=0 |
7674 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7675 | if test "${enable_progressdlg+set}" = set; then | |
7676 | enableval="$enable_progressdlg" | |
52127426 | 7677 | |
10f2d63a VZ |
7678 | if test "$enableval" = yes; then |
7679 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7680 | else | |
7681 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7682 | fi | |
52127426 | 7683 | |
10f2d63a | 7684 | else |
52127426 | 7685 | |
10f2d63a VZ |
7686 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7687 | if test "x$LINE" != x ; then | |
7688 | eval "DEFAULT_$LINE" | |
7689 | else | |
7690 | no_cache=1 | |
7691 | fi | |
7692 | ||
7693 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
52127426 JS |
7694 | |
7695 | fi | |
10f2d63a VZ |
7696 | |
7697 | ||
7698 | eval "$ac_cv_use_progressdlg" | |
7699 | if test "$no_cache" != 1; then | |
7700 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7701 | fi | |
7702 | ||
7703 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
52127426 | 7704 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7705 | else |
52127426 | 7706 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7707 | fi |
52127426 | 7708 | |
10f2d63a | 7709 | |
52127426 JS |
7710 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
7711 | echo "configure:7712: checking for --enable-wizarddlg" >&5 | |
b1f5d087 VZ |
7712 | no_cache=0 |
7713 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7714 | if test "${enable_wizarddlg+set}" = set; then | |
7715 | enableval="$enable_wizarddlg" | |
52127426 | 7716 | |
b1f5d087 VZ |
7717 | if test "$enableval" = yes; then |
7718 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7719 | else | |
7720 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7721 | fi | |
52127426 | 7722 | |
b1f5d087 | 7723 | else |
52127426 | 7724 | |
b1f5d087 VZ |
7725 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
7726 | if test "x$LINE" != x ; then | |
7727 | eval "DEFAULT_$LINE" | |
7728 | else | |
7729 | no_cache=1 | |
7730 | fi | |
7731 | ||
7732 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
52127426 JS |
7733 | |
7734 | fi | |
b1f5d087 VZ |
7735 | |
7736 | ||
7737 | eval "$ac_cv_use_wizarddlg" | |
7738 | if test "$no_cache" != 1; then | |
7739 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7740 | fi | |
7741 | ||
7742 | if test "$wxUSE_WIZARDDLG" = yes; then | |
52127426 | 7743 | echo "$ac_t""yes" 1>&6 |
b1f5d087 | 7744 | else |
52127426 | 7745 | echo "$ac_t""no" 1>&6 |
b1f5d087 | 7746 | fi |
52127426 JS |
7747 | |
7748 | ||
b1f5d087 | 7749 | |
52127426 JS |
7750 | |
7751 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 | |
7752 | echo "configure:7753: checking for --enable-menus" >&5 | |
1e6feb95 VZ |
7753 | no_cache=0 |
7754 | # Check whether --enable-menus or --disable-menus was given. | |
7755 | if test "${enable_menus+set}" = set; then | |
7756 | enableval="$enable_menus" | |
52127426 | 7757 | |
1e6feb95 VZ |
7758 | if test "$enableval" = yes; then |
7759 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7760 | else | |
7761 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7762 | fi | |
52127426 | 7763 | |
1e6feb95 | 7764 | else |
52127426 | 7765 | |
1e6feb95 VZ |
7766 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
7767 | if test "x$LINE" != x ; then | |
7768 | eval "DEFAULT_$LINE" | |
7769 | else | |
7770 | no_cache=1 | |
7771 | fi | |
7772 | ||
7773 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
52127426 JS |
7774 | |
7775 | fi | |
1e6feb95 VZ |
7776 | |
7777 | ||
7778 | eval "$ac_cv_use_menus" | |
7779 | if test "$no_cache" != 1; then | |
7780 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7781 | fi | |
7782 | ||
7783 | if test "$wxUSE_MENUS" = yes; then | |
52127426 | 7784 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7785 | else |
52127426 | 7786 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7787 | fi |
52127426 | 7788 | |
1e6feb95 | 7789 | |
52127426 JS |
7790 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
7791 | echo "configure:7792: checking for --enable-miniframe" >&5 | |
10f2d63a VZ |
7792 | no_cache=0 |
7793 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7794 | if test "${enable_miniframe+set}" = set; then | |
7795 | enableval="$enable_miniframe" | |
52127426 | 7796 | |
10f2d63a VZ |
7797 | if test "$enableval" = yes; then |
7798 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7799 | else | |
7800 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7801 | fi | |
52127426 | 7802 | |
10f2d63a | 7803 | else |
52127426 | 7804 | |
10f2d63a VZ |
7805 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7806 | if test "x$LINE" != x ; then | |
7807 | eval "DEFAULT_$LINE" | |
7808 | else | |
7809 | no_cache=1 | |
7810 | fi | |
7811 | ||
7812 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
52127426 JS |
7813 | |
7814 | fi | |
10f2d63a VZ |
7815 | |
7816 | ||
7817 | eval "$ac_cv_use_miniframe" | |
7818 | if test "$no_cache" != 1; then | |
7819 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7820 | fi | |
7821 | ||
7822 | if test "$wxUSE_MINIFRAME" = yes; then | |
52127426 | 7823 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7824 | else |
52127426 | 7825 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7826 | fi |
52127426 | 7827 | |
10f2d63a | 7828 | |
52127426 JS |
7829 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
7830 | echo "configure:7831: checking for --enable-tooltips" >&5 | |
10f2d63a VZ |
7831 | no_cache=0 |
7832 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7833 | if test "${enable_tooltips+set}" = set; then | |
7834 | enableval="$enable_tooltips" | |
52127426 | 7835 | |
10f2d63a VZ |
7836 | if test "$enableval" = yes; then |
7837 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7838 | else | |
7839 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7840 | fi | |
52127426 | 7841 | |
10f2d63a | 7842 | else |
52127426 | 7843 | |
10f2d63a VZ |
7844 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7845 | if test "x$LINE" != x ; then | |
7846 | eval "DEFAULT_$LINE" | |
7847 | else | |
7848 | no_cache=1 | |
7849 | fi | |
7850 | ||
7851 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
52127426 JS |
7852 | |
7853 | fi | |
10f2d63a VZ |
7854 | |
7855 | ||
7856 | eval "$ac_cv_use_tooltips" | |
7857 | if test "$no_cache" != 1; then | |
7858 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7859 | fi | |
7860 | ||
7861 | if test "$wxUSE_TOOLTIPS" = yes; then | |
52127426 | 7862 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7863 | else |
52127426 | 7864 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7865 | fi |
52127426 | 7866 | |
10f2d63a | 7867 | |
52127426 JS |
7868 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
7869 | echo "configure:7870: checking for --enable-splines" >&5 | |
10f2d63a VZ |
7870 | no_cache=0 |
7871 | # Check whether --enable-splines or --disable-splines was given. | |
7872 | if test "${enable_splines+set}" = set; then | |
7873 | enableval="$enable_splines" | |
52127426 | 7874 | |
10f2d63a VZ |
7875 | if test "$enableval" = yes; then |
7876 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7877 | else | |
7878 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7879 | fi | |
52127426 | 7880 | |
10f2d63a | 7881 | else |
52127426 | 7882 | |
10f2d63a VZ |
7883 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7884 | if test "x$LINE" != x ; then | |
7885 | eval "DEFAULT_$LINE" | |
7886 | else | |
7887 | no_cache=1 | |
7888 | fi | |
7889 | ||
7890 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
52127426 JS |
7891 | |
7892 | fi | |
10f2d63a VZ |
7893 | |
7894 | ||
7895 | eval "$ac_cv_use_splines" | |
7896 | if test "$no_cache" != 1; then | |
7897 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7898 | fi | |
7899 | ||
7900 | if test "$wxUSE_SPLINES" = yes; then | |
52127426 | 7901 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7902 | else |
52127426 | 7903 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7904 | fi |
52127426 | 7905 | |
10f2d63a | 7906 | |
52127426 JS |
7907 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
7908 | echo "configure:7909: checking for --enable-validators" >&5 | |
10f2d63a VZ |
7909 | no_cache=0 |
7910 | # Check whether --enable-validators or --disable-validators was given. | |
7911 | if test "${enable_validators+set}" = set; then | |
7912 | enableval="$enable_validators" | |
52127426 | 7913 | |
10f2d63a VZ |
7914 | if test "$enableval" = yes; then |
7915 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7916 | else | |
7917 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7918 | fi | |
52127426 | 7919 | |
10f2d63a | 7920 | else |
52127426 | 7921 | |
10f2d63a VZ |
7922 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7923 | if test "x$LINE" != x ; then | |
7924 | eval "DEFAULT_$LINE" | |
7925 | else | |
7926 | no_cache=1 | |
7927 | fi | |
7928 | ||
7929 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
52127426 JS |
7930 | |
7931 | fi | |
10f2d63a VZ |
7932 | |
7933 | ||
7934 | eval "$ac_cv_use_validators" | |
7935 | if test "$no_cache" != 1; then | |
7936 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7937 | fi | |
7938 | ||
7939 | if test "$wxUSE_VALIDATORS" = yes; then | |
52127426 | 7940 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7941 | else |
52127426 | 7942 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7943 | fi |
52127426 | 7944 | |
10f2d63a | 7945 | |
52127426 JS |
7946 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
7947 | echo "configure:7948: checking for --enable-busyinfo" >&5 | |
10f2d63a VZ |
7948 | no_cache=0 |
7949 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7950 | if test "${enable_busyinfo+set}" = set; then | |
7951 | enableval="$enable_busyinfo" | |
52127426 | 7952 | |
10f2d63a VZ |
7953 | if test "$enableval" = yes; then |
7954 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7955 | else | |
7956 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7957 | fi | |
52127426 | 7958 | |
10f2d63a | 7959 | else |
52127426 | 7960 | |
10f2d63a VZ |
7961 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7962 | if test "x$LINE" != x ; then | |
7963 | eval "DEFAULT_$LINE" | |
7964 | else | |
7965 | no_cache=1 | |
7966 | fi | |
7967 | ||
7968 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
52127426 JS |
7969 | |
7970 | fi | |
10f2d63a VZ |
7971 | |
7972 | ||
7973 | eval "$ac_cv_use_busyinfo" | |
7974 | if test "$no_cache" != 1; then | |
7975 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7976 | fi | |
7977 | ||
7978 | if test "$wxUSE_BUSYINFO" = yes; then | |
52127426 | 7979 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7980 | else |
52127426 | 7981 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7982 | fi |
52127426 | 7983 | |
10f2d63a | 7984 | |
52127426 JS |
7985 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
7986 | echo "configure:7987: checking for --enable-joystick" >&5 | |
f6bcfd97 BP |
7987 | no_cache=0 |
7988 | # Check whether --enable-joystick or --disable-joystick was given. | |
7989 | if test "${enable_joystick+set}" = set; then | |
7990 | enableval="$enable_joystick" | |
52127426 | 7991 | |
f6bcfd97 BP |
7992 | if test "$enableval" = yes; then |
7993 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7994 | else | |
7995 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7996 | fi | |
52127426 | 7997 | |
f6bcfd97 | 7998 | else |
52127426 | 7999 | |
f6bcfd97 BP |
8000 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8001 | if test "x$LINE" != x ; then | |
8002 | eval "DEFAULT_$LINE" | |
8003 | else | |
8004 | no_cache=1 | |
8005 | fi | |
8006 | ||
8007 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
52127426 JS |
8008 | |
8009 | fi | |
f6bcfd97 BP |
8010 | |
8011 | ||
8012 | eval "$ac_cv_use_joystick" | |
8013 | if test "$no_cache" != 1; then | |
8014 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8015 | fi | |
8016 | ||
8017 | if test "$wxUSE_JOYSTICK" = yes; then | |
52127426 | 8018 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8019 | else |
52127426 | 8020 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8021 | fi |
52127426 | 8022 | |
698dcdb6 | 8023 | |
52127426 JS |
8024 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
8025 | echo "configure:8026: checking for --enable-metafile" >&5 | |
1e6feb95 VZ |
8026 | no_cache=0 |
8027 | # Check whether --enable-metafile or --disable-metafile was given. | |
8028 | if test "${enable_metafile+set}" = set; then | |
8029 | enableval="$enable_metafile" | |
52127426 | 8030 | |
1e6feb95 VZ |
8031 | if test "$enableval" = yes; then |
8032 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8033 | else | |
8034 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8035 | fi | |
52127426 | 8036 | |
1e6feb95 | 8037 | else |
52127426 | 8038 | |
1e6feb95 VZ |
8039 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
8040 | if test "x$LINE" != x ; then | |
8041 | eval "DEFAULT_$LINE" | |
8042 | else | |
8043 | no_cache=1 | |
8044 | fi | |
8045 | ||
8046 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
52127426 JS |
8047 | |
8048 | fi | |
1e6feb95 VZ |
8049 | |
8050 | ||
8051 | eval "$ac_cv_use_metafile" | |
8052 | if test "$no_cache" != 1; then | |
8053 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8054 | fi | |
8055 | ||
8056 | if test "$wxUSE_METAFILE" = yes; then | |
52127426 | 8057 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8058 | else |
52127426 | 8059 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8060 | fi |
52127426 | 8061 | |
1e6feb95 | 8062 | |
52127426 JS |
8063 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
8064 | echo "configure:8065: checking for --enable-dragimage" >&5 | |
24fd6d87 VZ |
8065 | no_cache=0 |
8066 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8067 | if test "${enable_dragimage+set}" = set; then | |
8068 | enableval="$enable_dragimage" | |
52127426 | 8069 | |
24fd6d87 VZ |
8070 | if test "$enableval" = yes; then |
8071 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8072 | else | |
8073 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8074 | fi | |
52127426 | 8075 | |
24fd6d87 | 8076 | else |
52127426 | 8077 | |
24fd6d87 VZ |
8078 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
8079 | if test "x$LINE" != x ; then | |
8080 | eval "DEFAULT_$LINE" | |
8081 | else | |
8082 | no_cache=1 | |
8083 | fi | |
8084 | ||
8085 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
52127426 JS |
8086 | |
8087 | fi | |
24fd6d87 VZ |
8088 | |
8089 | ||
8090 | eval "$ac_cv_use_dragimage" | |
8091 | if test "$no_cache" != 1; then | |
8092 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8093 | fi | |
8094 | ||
8095 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
52127426 | 8096 | echo "$ac_t""yes" 1>&6 |
24fd6d87 | 8097 | else |
52127426 | 8098 | echo "$ac_t""no" 1>&6 |
24fd6d87 | 8099 | fi |
52127426 JS |
8100 | |
8101 | ||
24fd6d87 | 8102 | |
52127426 JS |
8103 | |
8104 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 | |
8105 | echo "configure:8106: checking for --enable-palette" >&5 | |
edae8572 VZ |
8106 | no_cache=0 |
8107 | # Check whether --enable-palette or --disable-palette was given. | |
8108 | if test "${enable_palette+set}" = set; then | |
8109 | enableval="$enable_palette" | |
52127426 | 8110 | |
edae8572 VZ |
8111 | if test "$enableval" = yes; then |
8112 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8113 | else | |
8114 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8115 | fi | |
52127426 | 8116 | |
edae8572 | 8117 | else |
52127426 | 8118 | |
edae8572 VZ |
8119 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
8120 | if test "x$LINE" != x ; then | |
8121 | eval "DEFAULT_$LINE" | |
8122 | else | |
8123 | no_cache=1 | |
8124 | fi | |
8125 | ||
8126 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
52127426 JS |
8127 | |
8128 | fi | |
edae8572 VZ |
8129 | |
8130 | ||
8131 | eval "$ac_cv_use_palette" | |
8132 | if test "$no_cache" != 1; then | |
8133 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8134 | fi | |
8135 | ||
8136 | if test "$wxUSE_PALETTE" = yes; then | |
52127426 | 8137 | echo "$ac_t""yes" 1>&6 |
edae8572 | 8138 | else |
52127426 | 8139 | echo "$ac_t""no" 1>&6 |
edae8572 | 8140 | fi |
52127426 | 8141 | |
edae8572 | 8142 | |
52127426 JS |
8143 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
8144 | echo "configure:8145: checking for --enable-image" >&5 | |
0046ff7c VS |
8145 | no_cache=0 |
8146 | # Check whether --enable-image or --disable-image was given. | |
8147 | if test "${enable_image+set}" = set; then | |
8148 | enableval="$enable_image" | |
52127426 | 8149 | |
0046ff7c VS |
8150 | if test "$enableval" = yes; then |
8151 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8152 | else | |
8153 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8154 | fi | |
52127426 | 8155 | |
0046ff7c | 8156 | else |
52127426 | 8157 | |
0046ff7c VS |
8158 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8159 | if test "x$LINE" != x ; then | |
8160 | eval "DEFAULT_$LINE" | |
8161 | else | |
8162 | no_cache=1 | |
8163 | fi | |
8164 | ||
8165 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
52127426 JS |
8166 | |
8167 | fi | |
0046ff7c VS |
8168 | |
8169 | ||
8170 | eval "$ac_cv_use_image" | |
8171 | if test "$no_cache" != 1; then | |
8172 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8173 | fi | |
8174 | ||
8175 | if test "$wxUSE_IMAGE" = yes; then | |
52127426 | 8176 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8177 | else |
52127426 | 8178 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8179 | fi |
52127426 | 8180 | |
0046ff7c | 8181 | |
52127426 JS |
8182 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
8183 | echo "configure:8184: checking for --enable-gif" >&5 | |
10f2d63a VZ |
8184 | no_cache=0 |
8185 | # Check whether --enable-gif or --disable-gif was given. | |
8186 | if test "${enable_gif+set}" = set; then | |
8187 | enableval="$enable_gif" | |
52127426 | 8188 | |
10f2d63a VZ |
8189 | if test "$enableval" = yes; then |
8190 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8191 | else | |
8192 | ac_cv_use_gif='wxUSE_GIF=no' | |
8193 | fi | |
52127426 | 8194 | |
10f2d63a | 8195 | else |
52127426 | 8196 | |
10f2d63a VZ |
8197 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8198 | if test "x$LINE" != x ; then | |
8199 | eval "DEFAULT_$LINE" | |
8200 | else | |
8201 | no_cache=1 | |
8202 | fi | |
8203 | ||
8204 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
52127426 JS |
8205 | |
8206 | fi | |
10f2d63a VZ |
8207 | |
8208 | ||
8209 | eval "$ac_cv_use_gif" | |
8210 | if test "$no_cache" != 1; then | |
8211 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8212 | fi | |
8213 | ||
8214 | if test "$wxUSE_GIF" = yes; then | |
52127426 | 8215 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8216 | else |
52127426 | 8217 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8218 | fi |
52127426 | 8219 | |
10f2d63a | 8220 | |
52127426 JS |
8221 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
8222 | echo "configure:8223: checking for --enable-pcx" >&5 | |
10f2d63a VZ |
8223 | no_cache=0 |
8224 | # Check whether --enable-pcx or --disable-pcx was given. | |
8225 | if test "${enable_pcx+set}" = set; then | |
8226 | enableval="$enable_pcx" | |
52127426 | 8227 | |
10f2d63a VZ |
8228 | if test "$enableval" = yes; then |
8229 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8230 | else | |
8231 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8232 | fi | |
52127426 | 8233 | |
10f2d63a | 8234 | else |
52127426 | 8235 | |
10f2d63a VZ |
8236 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8237 | if test "x$LINE" != x ; then | |
8238 | eval "DEFAULT_$LINE" | |
8239 | else | |
8240 | no_cache=1 | |
8241 | fi | |
8242 | ||
8243 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
52127426 JS |
8244 | |
8245 | fi | |
10f2d63a VZ |
8246 | |
8247 | ||
8248 | eval "$ac_cv_use_pcx" | |
8249 | if test "$no_cache" != 1; then | |
8250 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8251 | fi | |
8252 | ||
8253 | if test "$wxUSE_PCX" = yes; then | |
52127426 | 8254 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8255 | else |
52127426 | 8256 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8257 | fi |
52127426 | 8258 | |
10f2d63a | 8259 | |
52127426 JS |
8260 | echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6 |
8261 | echo "configure:8262: checking for --enable-iff" >&5 | |
4b6b4dfc RR |
8262 | no_cache=0 |
8263 | # Check whether --enable-iff or --disable-iff was given. | |
8264 | if test "${enable_iff+set}" = set; then | |
8265 | enableval="$enable_iff" | |
52127426 | 8266 | |
4b6b4dfc RR |
8267 | if test "$enableval" = yes; then |
8268 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8269 | else | |
8270 | ac_cv_use_iff='wxUSE_IFF=no' | |
8271 | fi | |
52127426 | 8272 | |
4b6b4dfc | 8273 | else |
52127426 | 8274 | |
4b6b4dfc RR |
8275 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
8276 | if test "x$LINE" != x ; then | |
8277 | eval "DEFAULT_$LINE" | |
8278 | else | |
8279 | no_cache=1 | |
8280 | fi | |
8281 | ||
8282 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
52127426 JS |
8283 | |
8284 | fi | |
4b6b4dfc RR |
8285 | |
8286 | ||
8287 | eval "$ac_cv_use_iff" | |
8288 | if test "$no_cache" != 1; then | |
8289 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8290 | fi | |
8291 | ||
8292 | if test "$wxUSE_IFF" = yes; then | |
52127426 | 8293 | echo "$ac_t""yes" 1>&6 |
4b6b4dfc | 8294 | else |
52127426 | 8295 | echo "$ac_t""no" 1>&6 |
4b6b4dfc | 8296 | fi |
52127426 | 8297 | |
4b6b4dfc | 8298 | |
52127426 JS |
8299 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
8300 | echo "configure:8301: checking for --enable-pnm" >&5 | |
10f2d63a VZ |
8301 | no_cache=0 |
8302 | # Check whether --enable-pnm or --disable-pnm was given. | |
8303 | if test "${enable_pnm+set}" = set; then | |
8304 | enableval="$enable_pnm" | |
52127426 | 8305 | |
10f2d63a VZ |
8306 | if test "$enableval" = yes; then |
8307 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8308 | else | |
8309 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8310 | fi | |
52127426 | 8311 | |
10f2d63a | 8312 | else |
52127426 | 8313 | |
10f2d63a VZ |
8314 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8315 | if test "x$LINE" != x ; then | |
8316 | eval "DEFAULT_$LINE" | |
8317 | else | |
8318 | no_cache=1 | |
8319 | fi | |
8320 | ||
8321 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
52127426 JS |
8322 | |
8323 | fi | |
10f2d63a VZ |
8324 | |
8325 | ||
8326 | eval "$ac_cv_use_pnm" | |
8327 | if test "$no_cache" != 1; then | |
8328 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8329 | fi | |
8330 | ||
8331 | if test "$wxUSE_PNM" = yes; then | |
52127426 | 8332 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8333 | else |
52127426 | 8334 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8335 | fi |
52127426 | 8336 | |
10f2d63a | 8337 | |
52127426 JS |
8338 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 |
8339 | echo "configure:8340: checking for --enable-xpm" >&5 | |
0046ff7c | 8340 | no_cache=0 |
69d27ff7 MB |
8341 | # Check whether --enable-xpm or --disable-xpm was given. |
8342 | if test "${enable_xpm+set}" = set; then | |
8343 | enableval="$enable_xpm" | |
52127426 | 8344 | |
0046ff7c | 8345 | if test "$enableval" = yes; then |
69d27ff7 | 8346 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8347 | else |
69d27ff7 | 8348 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8349 | fi |
52127426 | 8350 | |
0046ff7c | 8351 | else |
52127426 | 8352 | |
0046ff7c VS |
8353 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8354 | if test "x$LINE" != x ; then | |
8355 | eval "DEFAULT_$LINE" | |
8356 | else | |
8357 | no_cache=1 | |
8358 | fi | |
8359 | ||
69d27ff7 | 8360 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
52127426 JS |
8361 | |
8362 | fi | |
0046ff7c VS |
8363 | |
8364 | ||
69d27ff7 | 8365 | eval "$ac_cv_use_xpm" |
0046ff7c | 8366 | if test "$no_cache" != 1; then |
69d27ff7 | 8367 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8368 | fi |
8369 | ||
8370 | if test "$wxUSE_XPM" = yes; then | |
52127426 | 8371 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8372 | else |
52127426 | 8373 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8374 | fi |
52127426 | 8375 | |
0046ff7c | 8376 | |
52127426 JS |
8377 | echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6 |
8378 | echo "configure:8379: checking for --enable-ico_cur" >&5 | |
658974ae | 8379 | no_cache=0 |
c7206e64 VS |
8380 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8381 | if test "${enable_ico_cur+set}" = set; then | |
8382 | enableval="$enable_ico_cur" | |
52127426 | 8383 | |
658974ae | 8384 | if test "$enableval" = yes; then |
c7206e64 | 8385 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8386 | else |
c7206e64 | 8387 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 8388 | fi |
52127426 | 8389 | |
658974ae | 8390 | else |
52127426 | 8391 | |
658974ae VS |
8392 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
8393 | if test "x$LINE" != x ; then | |
8394 | eval "DEFAULT_$LINE" | |
8395 | else | |
8396 | no_cache=1 | |
8397 | fi | |
8398 | ||
c7206e64 | 8399 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
52127426 JS |
8400 | |
8401 | fi | |
658974ae VS |
8402 | |
8403 | ||
c7206e64 | 8404 | eval "$ac_cv_use_ico_cur" |
658974ae | 8405 | if test "$no_cache" != 1; then |
c7206e64 | 8406 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8407 | fi |
8408 | ||
8409 | if test "$wxUSE_ICO_CUR" = yes; then | |
52127426 | 8410 | echo "$ac_t""yes" 1>&6 |
658974ae | 8411 | else |
52127426 | 8412 | echo "$ac_t""no" 1>&6 |
658974ae | 8413 | fi |
52127426 | 8414 | |
658974ae | 8415 | |
b12915c1 VZ |
8416 | fi |
8417 | ||
d558c907 VS |
8418 | case "${host}" in |
8419 | *-pc-os2_emx | *-pc-os2-emx ) | |
8420 | LEX_STEM="lexyy" | |
8421 | ;; | |
8422 | *) | |
8423 | PATH_IFS=':' | |
8424 | LEX_STEM="lex.yy" | |
8425 | ;; | |
8426 | esac | |
8427 | ||
52127426 JS |
8428 | |
8429 | ||
10f2d63a VZ |
8430 | echo "saving argument cache $wx_arg_cache_file" |
8431 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
52127426 JS |
8432 | |
8433 | ||
10f2d63a | 8434 | |
52127426 JS |
8435 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 |
8436 | echo "configure:8437: checking for toolkit" >&5 | |
10f2d63a VZ |
8437 | |
8438 | if test "$wxUSE_GUI" = "yes"; then | |
8439 | ||
3a922bb4 | 8440 | if test "$USE_BEOS" = 1; then |
52127426 | 8441 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
3a922bb4 | 8442 | fi |
b12915c1 | 8443 | |
3a922bb4 RL |
8444 | if test "$TOOLKIT_GIVEN" = 1; then |
8445 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8446 | var=wxUSE_$toolkit | |
8447 | eval "value=\$${var}" | |
8448 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8449 | done | |
10f2d63a | 8450 | else |
3a922bb4 RL |
8451 | for toolkit in `echo $ALL_TOOLKITS`; do |
8452 | if test "$has_toolkit_in_cache" != 1; then | |
8453 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8454 | else | |
8455 | var=DEFAULT_wxUSE_$toolkit | |
8456 | fi | |
8457 | eval "wxUSE_$toolkit=\$${var}" | |
8458 | done | |
10f2d63a | 8459 | fi |
10f2d63a | 8460 | |
3a922bb4 | 8461 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
f79bd02d | 8462 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8463 | |
d558c907 | 8464 | case "${host}" in |
6fa882bd | 8465 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8466 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8467 | esac |
10f2d63a | 8468 | |
3a922bb4 RL |
8469 | case "$NUM_TOOLKITS" in |
8470 | 1) | |
8471 | ;; | |
8472 | 0) | |
52127426 | 8473 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } |
3a922bb4 RL |
8474 | ;; |
8475 | *) | |
52127426 | 8476 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } |
3a922bb4 | 8477 | esac |
10f2d63a | 8478 | |
3a922bb4 RL |
8479 | for toolkit in `echo $ALL_TOOLKITS`; do |
8480 | var=wxUSE_$toolkit | |
8481 | eval "value=\$${var}" | |
8482 | if test "x$value" != x; then | |
8483 | cache_var=CACHE_$toolkit | |
8484 | eval "cache=\$${cache_var}" | |
8485 | if test "$cache" = 1; then | |
8486 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8487 | fi | |
8488 | if test "$value" = 1; then | |
8489 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
52127426 | 8490 | echo "$ac_t""$toolkit_echo" 1>&6 |
3a922bb4 RL |
8491 | fi |
8492 | fi | |
8493 | done | |
10f2d63a | 8494 | else |
52127426 | 8495 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8496 | fi |
8497 | ||
52127426 | 8498 | |
43d99b6d VS |
8499 | wants_win32=0 |
8500 | doesnt_want_win32=0 | |
17234b26 MB |
8501 | case "${host}" in |
8502 | *-*-cygwin*) | |
8503 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
8504 | wants_win32=1 |
8505 | else | |
8506 | doesnt_want_win32=1 | |
17234b26 MB |
8507 | fi |
8508 | ;; | |
8509 | *-*-mingw*) | |
43d99b6d | 8510 | wants_win32=1 |
17234b26 MB |
8511 | ;; |
8512 | esac | |
8513 | ||
43d99b6d | 8514 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
8515 | USE_UNIX=0 |
8516 | USE_WIN32=1 | |
52127426 | 8517 | cat >> confdefs.h <<\EOF |
17234b26 MB |
8518 | #define __WIN32__ 1 |
8519 | EOF | |
8520 | ||
52127426 | 8521 | cat >> confdefs.h <<\EOF |
17234b26 MB |
8522 | #define __WIN95__ 1 |
8523 | EOF | |
8524 | ||
52127426 | 8525 | cat >> confdefs.h <<\EOF |
17234b26 MB |
8526 | #define __WINDOWS__ 1 |
8527 | EOF | |
8528 | ||
52127426 | 8529 | cat >> confdefs.h <<\EOF |
17234b26 MB |
8530 | #define __GNUWIN32__ 1 |
8531 | EOF | |
8532 | ||
52127426 | 8533 | cat >> confdefs.h <<\EOF |
17234b26 MB |
8534 | #define STRICT 1 |
8535 | EOF | |
8536 | ||
52127426 | 8537 | cat >> confdefs.h <<\EOF |
17234b26 MB |
8538 | #define WINVER 0x0400 |
8539 | EOF | |
8540 | ||
43d99b6d VS |
8541 | fi |
8542 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
8543 | USE_UNIX=1 |
8544 | USE_WIN32=0 | |
8545 | fi | |
8546 | ||
8547 | if test "$USE_UNIX" = 1 ; then | |
8548 | wxUSE_UNIX=yes | |
52127426 | 8549 | cat >> confdefs.h <<\EOF |
17234b26 MB |
8550 | #define __UNIX__ 1 |
8551 | EOF | |
8552 | ||
8553 | fi | |
8554 | ||
52127426 JS |
8555 | |
8556 | cat > confcache <<\EOF | |
10f2d63a VZ |
8557 | # This file is a shell script that caches the results of configure |
8558 | # tests run on this system so they can be shared between configure | |
52127426 JS |
8559 | # scripts and configure runs. It is not useful on other systems. |
8560 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8561 | # |
52127426 JS |
8562 | # By default, configure uses ./config.cache as the cache file, |
8563 | # creating it if it does not exist already. You can give configure | |
8564 | # the --cache-file=FILE option to use a different cache file; that is | |
8565 | # what configure does when it calls configure scripts in | |
8566 | # subdirectories, so they share the cache. | |
8567 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8568 | # config.status only pays attention to the cache file if you give it the | |
8569 | # --recheck option to rerun configure. | |
10f2d63a | 8570 | # |
52127426 | 8571 | EOF |
10f2d63a VZ |
8572 | # The following way of writing the cache mishandles newlines in values, |
8573 | # but we know of no workaround that is simple, portable, and efficient. | |
8574 | # So, don't put newlines in cache variables' values. | |
8575 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8576 | # and sets the high bit in the cache file unless we assign to the vars. | |
52127426 JS |
8577 | (set) 2>&1 | |
8578 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8579 | *ac_space=\ *) | |
8580 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8581 | # turns \\\\ into \\, and sed turns \\ into \). | |
8582 | sed -n \ | |
8583 | -e "s/'/'\\\\''/g" \ | |
8584 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8585 | ;; | |
8586 | *) | |
8587 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8588 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8589 | ;; | |
8590 | esac >> confcache | |
8591 | if cmp -s $cache_file confcache; then | |
8592 | : | |
8593 | else | |
10f2d63a | 8594 | if test -w $cache_file; then |
52127426 JS |
8595 | echo "updating cache $cache_file" |
8596 | cat confcache > $cache_file | |
10f2d63a VZ |
8597 | else |
8598 | echo "not updating unwritable cache $cache_file" | |
8599 | fi | |
8600 | fi | |
8601 | rm -f confcache | |
8602 | ||
52127426 | 8603 | |
e59890c3 | 8604 | if test "$build" != "$host" ; then |
9d353d4a | 8605 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8606 | CC=$host_alias-gcc |
8607 | CXX=$host_alias-c++ | |
8608 | AR=$host_alias-ar | |
8609 | RANLIB=$host_alias-ranlib | |
8610 | DLLTOOL=$host_alias-dlltool | |
8611 | RESCOMP=$host_alias-windres | |
8612 | LD=$host_alias-ld | |
8613 | NM=$host_alias-nm | |
8614 | STRIP=$host_alias-strip | |
8615 | else | |
52127426 | 8616 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } |
3a922bb4 | 8617 | fi |
10f2d63a VZ |
8618 | fi |
8619 | ||
ec603395 | 8620 | CFLAGS=${CFLAGS:=} |
52127426 JS |
8621 | # Extract the first word of "gcc", so it can be a program name with args. |
8622 | set dummy gcc; ac_word=$2 | |
8623 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8624 | echo "configure:8625: checking for $ac_word" >&5 | |
8625 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
8626 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8627 | else |
8628 | if test -n "$CC"; then | |
8629 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8630 | else |
52127426 JS |
8631 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8632 | ac_dummy="$PATH" | |
8633 | for ac_dir in $ac_dummy; do | |
8634 | test -z "$ac_dir" && ac_dir=. | |
8635 | if test -f $ac_dir/$ac_word; then | |
8636 | ac_cv_prog_CC="gcc" | |
8637 | break | |
8638 | fi | |
8639 | done | |
8640 | IFS="$ac_save_ifs" | |
10f2d63a | 8641 | fi |
6232543b | 8642 | fi |
52127426 | 8643 | CC="$ac_cv_prog_CC" |
6232543b | 8644 | if test -n "$CC"; then |
52127426 | 8645 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8646 | else |
52127426 | 8647 | echo "$ac_t""no" 1>&6 |
1e487827 | 8648 | fi |
6232543b | 8649 | |
1e487827 | 8650 | if test -z "$CC"; then |
52127426 JS |
8651 | # Extract the first word of "cc", so it can be a program name with args. |
8652 | set dummy cc; ac_word=$2 | |
8653 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8654 | echo "configure:8655: checking for $ac_word" >&5 | |
8655 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
8656 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f RR |
8657 | else |
8658 | if test -n "$CC"; then | |
8659 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8660 | else | |
52127426 | 8661 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7b4a847f | 8662 | ac_prog_rejected=no |
52127426 JS |
8663 | ac_dummy="$PATH" |
8664 | for ac_dir in $ac_dummy; do | |
8665 | test -z "$ac_dir" && ac_dir=. | |
8666 | if test -f $ac_dir/$ac_word; then | |
8667 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8668 | ac_prog_rejected=yes | |
8669 | continue | |
8670 | fi | |
8671 | ac_cv_prog_CC="cc" | |
8672 | break | |
8673 | fi | |
8674 | done | |
8675 | IFS="$ac_save_ifs" | |
328a083c RR |
8676 | if test $ac_prog_rejected = yes; then |
8677 | # We found a bogon in the path, so make sure we never use it. | |
8678 | set dummy $ac_cv_prog_CC | |
8679 | shift | |
52127426 | 8680 | if test $# -gt 0; then |
328a083c | 8681 | # We chose a different compiler from the bogus one. |
1e487827 VS |
8682 | # However, it has the same basename, so the bogon will be chosen |
8683 | # first if we set CC to just the basename; use the full file name. | |
8684 | shift | |
52127426 | 8685 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8686 | shift |
8687 | ac_cv_prog_CC="$@" | |
703e0a69 | 8688 | fi |
1e487827 VS |
8689 | fi |
8690 | fi | |
8691 | fi | |
52127426 | 8692 | CC="$ac_cv_prog_CC" |
1e487827 | 8693 | if test -n "$CC"; then |
52127426 | 8694 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8695 | else |
52127426 | 8696 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8697 | fi |
1e487827 | 8698 | |
52127426 JS |
8699 | if test -z "$CC"; then |
8700 | case "`uname -s`" in | |
8701 | *win32* | *WIN32*) | |
8702 | # Extract the first word of "cl", so it can be a program name with args. | |
8703 | set dummy cl; ac_word=$2 | |
8704 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8705 | echo "configure:8706: checking for $ac_word" >&5 | |
8706 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
8707 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf VS |
8708 | else |
8709 | if test -n "$CC"; then | |
8710 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8711 | else | |
52127426 JS |
8712 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8713 | ac_dummy="$PATH" | |
8714 | for ac_dir in $ac_dummy; do | |
8715 | test -z "$ac_dir" && ac_dir=. | |
8716 | if test -f $ac_dir/$ac_word; then | |
8717 | ac_cv_prog_CC="cl" | |
8718 | break | |
8719 | fi | |
8720 | done | |
8721 | IFS="$ac_save_ifs" | |
f09359cf VS |
8722 | fi |
8723 | fi | |
52127426 | 8724 | CC="$ac_cv_prog_CC" |
f09359cf | 8725 | if test -n "$CC"; then |
52127426 | 8726 | echo "$ac_t""$CC" 1>&6 |
f09359cf | 8727 | else |
52127426 | 8728 | echo "$ac_t""no" 1>&6 |
328a083c | 8729 | fi |
52127426 JS |
8730 | ;; |
8731 | esac | |
8732 | fi | |
8733 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
7b4a847f | 8734 | fi |
6232543b | 8735 | |
52127426 JS |
8736 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
8737 | echo "configure:8738: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
1e487827 | 8738 | |
52127426 JS |
8739 | ac_ext=c |
8740 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8741 | ac_cpp='$CPP $CPPFLAGS' | |
8742 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8743 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8744 | cross_compiling=$ac_cv_prog_cc_cross | |
f09359cf | 8745 | |
52127426 | 8746 | cat > conftest.$ac_ext << EOF |
f09359cf | 8747 | |
52127426 JS |
8748 | #line 8749 "configure" |
8749 | #include "confdefs.h" | |
7b4a847f | 8750 | |
52127426 JS |
8751 | main(){return(0);} |
8752 | EOF | |
8753 | if { (eval echo configure:8754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8754 | ac_cv_prog_cc_works=yes | |
8755 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8756 | if (./conftest; exit) 2>/dev/null; then | |
8757 | ac_cv_prog_cc_cross=no | |
698dcdb6 | 8758 | else |
52127426 | 8759 | ac_cv_prog_cc_cross=yes |
698dcdb6 | 8760 | fi |
328a083c | 8761 | else |
52127426 JS |
8762 | echo "configure: failed program was:" >&5 |
8763 | cat conftest.$ac_ext >&5 | |
8764 | ac_cv_prog_cc_works=no | |
579d8138 | 8765 | fi |
52127426 JS |
8766 | rm -fr conftest* |
8767 | ac_ext=c | |
8768 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8769 | ac_cpp='$CPP $CPPFLAGS' | |
8770 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8771 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8772 | cross_compiling=$ac_cv_prog_cc_cross | |
8773 | ||
8774 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8775 | if test $ac_cv_prog_cc_works = no; then | |
8776 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8777 | fi | |
8778 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
8779 | echo "configure:8780: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
8780 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
8781 | cross_compiling=$ac_cv_prog_cc_cross | |
8782 | ||
8783 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
8784 | echo "configure:8785: checking whether we are using GNU C" >&5 | |
8785 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
8786 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8787 | else | |
8788 | cat > conftest.c <<EOF | |
8789 | #ifdef __GNUC__ | |
8790 | yes; | |
8791 | #endif | |
8792 | EOF | |
8793 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
8794 | ac_cv_prog_gcc=yes | |
7b4a847f | 8795 | else |
52127426 JS |
8796 | ac_cv_prog_gcc=no |
8797 | fi | |
8798 | fi | |
7b4a847f | 8799 | |
52127426 | 8800 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8801 | |
52127426 JS |
8802 | if test $ac_cv_prog_gcc = yes; then |
8803 | GCC=yes | |
f09359cf | 8804 | else |
52127426 | 8805 | GCC= |
f09359cf VS |
8806 | fi |
8807 | ||
52127426 JS |
8808 | ac_test_CFLAGS="${CFLAGS+set}" |
8809 | ac_save_CFLAGS="$CFLAGS" | |
8810 | CFLAGS= | |
8811 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
8812 | echo "configure:8813: checking whether ${CC-cc} accepts -g" >&5 | |
8813 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | |
8814 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 8815 | else |
52127426 JS |
8816 | echo 'void f(){}' > conftest.c |
8817 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8818 | ac_cv_prog_cc_g=yes |
8819 | else | |
52127426 | 8820 | ac_cv_prog_cc_g=no |
10f2d63a | 8821 | fi |
52127426 JS |
8822 | rm -f conftest* |
8823 | ||
10f2d63a | 8824 | fi |
52127426 JS |
8825 | |
8826 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
f09359cf | 8827 | if test "$ac_test_CFLAGS" = set; then |
52127426 | 8828 | CFLAGS="$ac_save_CFLAGS" |
f09359cf VS |
8829 | elif test $ac_cv_prog_cc_g = yes; then |
8830 | if test "$GCC" = yes; then | |
10f2d63a VZ |
8831 | CFLAGS="-g -O2" |
8832 | else | |
f09359cf | 8833 | CFLAGS="-g" |
10f2d63a | 8834 | fi |
5c0a20c3 | 8835 | else |
f09359cf VS |
8836 | if test "$GCC" = yes; then |
8837 | CFLAGS="-O2" | |
8838 | else | |
8839 | CFLAGS= | |
8840 | fi | |
10f2d63a VZ |
8841 | fi |
8842 | ||
8843 | ||
52127426 JS |
8844 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
8845 | echo "configure:8846: checking how to run the C preprocessor" >&5 | |
10f2d63a VZ |
8846 | # On Suns, sometimes $CPP names a directory. |
8847 | if test -n "$CPP" && test -d "$CPP"; then | |
8848 | CPP= | |
8849 | fi | |
8850 | if test -z "$CPP"; then | |
52127426 JS |
8851 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8852 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8853 | else | |
8854 | # This must be in double quotes, not single quotes, because CPP may get | |
8855 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8856 | CPP="${CC-cc} -E" | |
10f2d63a | 8857 | # On the NeXT, cc -E runs the code through the compiler's parser, |
52127426 JS |
8858 | # not just through cpp. |
8859 | cat > conftest.$ac_ext <<EOF | |
8860 | #line 8861 "configure" | |
10f2d63a VZ |
8861 | #include "confdefs.h" |
8862 | #include <assert.h> | |
52127426 JS |
8863 | Syntax Error |
8864 | EOF | |
8865 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8866 | { (eval echo configure:8867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8867 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8868 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8869 | : |
8870 | else | |
52127426 JS |
8871 | echo "$ac_err" >&5 |
8872 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8873 | cat conftest.$ac_ext >&5 |
52127426 JS |
8874 | rm -rf conftest* |
8875 | CPP="${CC-cc} -E -traditional-cpp" | |
8876 | cat > conftest.$ac_ext <<EOF | |
8877 | #line 8878 "configure" | |
f09359cf | 8878 | #include "confdefs.h" |
52127426 JS |
8879 | #include <assert.h> |
8880 | Syntax Error | |
8881 | EOF | |
8882 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8883 | { (eval echo configure:8884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8884 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8885 | if test -z "$ac_err"; then | |
8886 | : | |
f09359cf | 8887 | else |
52127426 JS |
8888 | echo "$ac_err" >&5 |
8889 | echo "configure: failed program was:" >&5 | |
f09359cf | 8890 | cat conftest.$ac_ext >&5 |
52127426 JS |
8891 | rm -rf conftest* |
8892 | CPP="${CC-cc} -nologo -E" | |
8893 | cat > conftest.$ac_ext <<EOF | |
8894 | #line 8895 "configure" | |
10f2d63a VZ |
8895 | #include "confdefs.h" |
8896 | #include <assert.h> | |
52127426 JS |
8897 | Syntax Error |
8898 | EOF | |
8899 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8900 | { (eval echo configure:8901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8901 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8902 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8903 | : |
8904 | else | |
52127426 JS |
8905 | echo "$ac_err" >&5 |
8906 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8907 | cat conftest.$ac_ext >&5 |
52127426 JS |
8908 | rm -rf conftest* |
8909 | CPP=/lib/cpp | |
703e0a69 | 8910 | fi |
52127426 | 8911 | rm -f conftest* |
f09359cf | 8912 | fi |
52127426 | 8913 | rm -f conftest* |
579d8138 | 8914 | fi |
52127426 JS |
8915 | rm -f conftest* |
8916 | ac_cv_prog_CPP="$CPP" | |
8917 | fi | |
8918 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8919 | else |
52127426 | 8920 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8921 | fi |
52127426 | 8922 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8923 | |
52127426 JS |
8924 | if test $ac_cv_prog_gcc = yes; then |
8925 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
8926 | echo "configure:8927: checking whether ${CC-cc} needs -traditional" >&5 | |
8927 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then | |
8928 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8929 | else |
8930 | ac_pattern="Autoconf.*'x'" | |
52127426 JS |
8931 | cat > conftest.$ac_ext <<EOF |
8932 | #line 8933 "configure" | |
10f2d63a VZ |
8933 | #include "confdefs.h" |
8934 | #include <sgtty.h> | |
8935 | Autoconf TIOCGETP | |
52127426 | 8936 | EOF |
10f2d63a VZ |
8937 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8938 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
52127426 | 8939 | rm -rf conftest* |
10f2d63a VZ |
8940 | ac_cv_prog_gcc_traditional=yes |
8941 | else | |
52127426 | 8942 | rm -rf conftest* |
10f2d63a VZ |
8943 | ac_cv_prog_gcc_traditional=no |
8944 | fi | |
8945 | rm -f conftest* | |
8946 | ||
52127426 | 8947 | |
10f2d63a | 8948 | if test $ac_cv_prog_gcc_traditional = no; then |
52127426 JS |
8949 | cat > conftest.$ac_ext <<EOF |
8950 | #line 8951 "configure" | |
10f2d63a VZ |
8951 | #include "confdefs.h" |
8952 | #include <termio.h> | |
8953 | Autoconf TCGETA | |
52127426 | 8954 | EOF |
10f2d63a VZ |
8955 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8956 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
52127426 | 8957 | rm -rf conftest* |
10f2d63a VZ |
8958 | ac_cv_prog_gcc_traditional=yes |
8959 | fi | |
8960 | rm -f conftest* | |
8961 | ||
8962 | fi | |
8963 | fi | |
52127426 JS |
8964 | |
8965 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8966 | if test $ac_cv_prog_gcc_traditional = yes; then |
8967 | CC="$CC -traditional" | |
8968 | fi | |
8969 | fi | |
8970 | ||
52127426 JS |
8971 | |
8972 | ||
8973 | ac_ext=C | |
8974 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8975 | ac_cpp='$CXXCPP $CPPFLAGS' |
52127426 JS |
8976 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8977 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8978 | cross_compiling=$ac_cv_prog_cxx_cross | |
8979 | ||
698dcdb6 | 8980 | |
ec603395 | 8981 | CXXFLAGS=${CXXFLAGS:=} |
52127426 JS |
8982 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
8983 | do | |
8984 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8985 | set dummy $ac_prog; ac_word=$2 | |
8986 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8987 | echo "configure:8988: checking for $ac_word" >&5 | |
8988 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then | |
8989 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8990 | else |
8991 | if test -n "$CXX"; then | |
8992 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8993 | else | |
52127426 JS |
8994 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8995 | ac_dummy="$PATH" | |
8996 | for ac_dir in $ac_dummy; do | |
8997 | test -z "$ac_dir" && ac_dir=. | |
8998 | if test -f $ac_dir/$ac_word; then | |
8999 | ac_cv_prog_CXX="$ac_prog" | |
9000 | break | |
9001 | fi | |
9002 | done | |
9003 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9004 | fi |
9005 | fi | |
52127426 | 9006 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 9007 | if test -n "$CXX"; then |
52127426 | 9008 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9009 | else |
52127426 | 9010 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9011 | fi |
9012 | ||
52127426 | 9013 | test -n "$CXX" && break |
10f2d63a | 9014 | done |
52127426 | 9015 | test -n "$CXX" || CXX="gcc" |
698dcdb6 | 9016 | |
f09359cf | 9017 | |
52127426 JS |
9018 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
9019 | echo "configure:9020: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 | |
9020 | ||
9021 | ac_ext=C | |
9022 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9023 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9024 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9025 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9026 | cross_compiling=$ac_cv_prog_cxx_cross | |
9027 | ||
9028 | cat > conftest.$ac_ext << EOF | |
9029 | ||
9030 | #line 9031 "configure" | |
10f2d63a | 9031 | #include "confdefs.h" |
f09359cf | 9032 | |
52127426 JS |
9033 | int main(){return(0);} |
9034 | EOF | |
9035 | if { (eval echo configure:9036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9036 | ac_cv_prog_cxx_works=yes | |
9037 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9038 | if (./conftest; exit) 2>/dev/null; then | |
9039 | ac_cv_prog_cxx_cross=no | |
9040 | else | |
9041 | ac_cv_prog_cxx_cross=yes | |
9042 | fi | |
9043 | else | |
9044 | echo "configure: failed program was:" >&5 | |
9045 | cat conftest.$ac_ext >&5 | |
9046 | ac_cv_prog_cxx_works=no | |
9047 | fi | |
9048 | rm -fr conftest* | |
9049 | ac_ext=C | |
9050 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9051 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9052 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9053 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9054 | cross_compiling=$ac_cv_prog_cxx_cross | |
9055 | ||
9056 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
9057 | if test $ac_cv_prog_cxx_works = no; then | |
9058 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9059 | fi | |
9060 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
9061 | echo "configure:9062: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
9062 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 | |
9063 | cross_compiling=$ac_cv_prog_cxx_cross | |
9064 | ||
9065 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
9066 | echo "configure:9067: checking whether we are using GNU C++" >&5 | |
9067 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then | |
9068 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9069 | else | |
9070 | cat > conftest.C <<EOF | |
9071 | #ifdef __GNUC__ | |
9072 | yes; | |
10f2d63a | 9073 | #endif |
52127426 JS |
9074 | EOF |
9075 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
9076 | ac_cv_prog_gxx=yes | |
9077 | else | |
9078 | ac_cv_prog_gxx=no | |
9079 | fi | |
9080 | fi | |
10f2d63a | 9081 | |
52127426 | 9082 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9083 | |
52127426 JS |
9084 | if test $ac_cv_prog_gxx = yes; then |
9085 | GXX=yes | |
9086 | else | |
9087 | GXX= | |
9088 | fi | |
f09359cf | 9089 | |
52127426 JS |
9090 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9091 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9092 | CXXFLAGS= | |
9093 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
9094 | echo "configure:9095: checking whether ${CXX-g++} accepts -g" >&5 | |
9095 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then | |
9096 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9097 | else | |
9098 | echo 'void f(){}' > conftest.cc | |
9099 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9100 | ac_cv_prog_cxx_g=yes |
9101 | else | |
52127426 | 9102 | ac_cv_prog_cxx_g=no |
10f2d63a | 9103 | fi |
52127426 JS |
9104 | rm -f conftest* |
9105 | ||
10f2d63a | 9106 | fi |
52127426 JS |
9107 | |
9108 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
f09359cf | 9109 | if test "$ac_test_CXXFLAGS" = set; then |
52127426 | 9110 | CXXFLAGS="$ac_save_CXXFLAGS" |
f09359cf VS |
9111 | elif test $ac_cv_prog_cxx_g = yes; then |
9112 | if test "$GXX" = yes; then | |
10f2d63a VZ |
9113 | CXXFLAGS="-g -O2" |
9114 | else | |
f09359cf | 9115 | CXXFLAGS="-g" |
10f2d63a | 9116 | fi |
5c0a20c3 | 9117 | else |
f09359cf VS |
9118 | if test "$GXX" = yes; then |
9119 | CXXFLAGS="-O2" | |
9120 | else | |
9121 | CXXFLAGS= | |
9122 | fi | |
10f2d63a VZ |
9123 | fi |
9124 | ||
9125 | ||
10f2d63a | 9126 | ac_ext=c |
52127426 | 9127 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9128 | ac_cpp='$CPP $CPPFLAGS' |
52127426 JS |
9129 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9130 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9131 | cross_compiling=$ac_cv_prog_cc_cross | |
9132 | ||
9133 | ||
9134 | # Extract the first word of "ranlib", so it can be a program name with args. | |
9135 | set dummy ranlib; ac_word=$2 | |
9136 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9137 | echo "configure:9138: checking for $ac_word" >&5 | |
9138 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | |
9139 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9140 | else |
9141 | if test -n "$RANLIB"; then | |
9142 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9143 | else | |
52127426 JS |
9144 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9145 | ac_dummy="$PATH" | |
9146 | for ac_dir in $ac_dummy; do | |
9147 | test -z "$ac_dir" && ac_dir=. | |
9148 | if test -f $ac_dir/$ac_word; then | |
9149 | ac_cv_prog_RANLIB="ranlib" | |
9150 | break | |
9151 | fi | |
9152 | done | |
9153 | IFS="$ac_save_ifs" | |
9154 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9155 | fi |
9156 | fi | |
52127426 | 9157 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9158 | if test -n "$RANLIB"; then |
52127426 | 9159 | echo "$ac_t""$RANLIB" 1>&6 |
328a083c | 9160 | else |
52127426 | 9161 | echo "$ac_t""no" 1>&6 |
328a083c RR |
9162 | fi |
9163 | ||
10f2d63a VZ |
9164 | |
9165 | # Extract the first word of "ar", so it can be a program name with args. | |
9166 | set dummy ar; ac_word=$2 | |
52127426 JS |
9167 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9168 | echo "configure:9169: checking for $ac_word" >&5 | |
9169 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | |
9170 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9171 | else |
9172 | if test -n "$AR"; then | |
9173 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9174 | else | |
52127426 JS |
9175 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9176 | ac_dummy="$PATH" | |
9177 | for ac_dir in $ac_dummy; do | |
9178 | test -z "$ac_dir" && ac_dir=. | |
9179 | if test -f $ac_dir/$ac_word; then | |
9180 | ac_cv_prog_AR="ar" | |
9181 | break | |
9182 | fi | |
9183 | done | |
9184 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9185 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9186 | fi | |
9187 | fi | |
52127426 | 9188 | AR="$ac_cv_prog_AR" |
10f2d63a | 9189 | if test -n "$AR"; then |
52127426 | 9190 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9191 | else |
52127426 | 9192 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9193 | fi |
9194 | ||
52127426 | 9195 | |
6054113a | 9196 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9197 | # so one script is as good as another. But avoid the broken or |
9198 | # incompatible versions: | |
9199 | # SysV /etc/install, /usr/sbin/install | |
9200 | # SunOS /usr/etc/install | |
9201 | # IRIX /sbin/install | |
9202 | # AIX /bin/install | |
f09359cf | 9203 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
9204 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
9205 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9206 | # ./install, which can be erroneously created by make from ./install.sh. | |
52127426 JS |
9207 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
9208 | echo "configure:9209: checking for a BSD compatible install" >&5 | |
10f2d63a | 9209 | if test -z "$INSTALL"; then |
52127426 JS |
9210 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9211 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9212 | else |
52127426 | 9213 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
9214 | for ac_dir in $PATH; do |
9215 | # Account for people who put trailing slashes in PATH elements. | |
52127426 JS |
9216 | case "$ac_dir/" in |
9217 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
9218 | *) |
9219 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
f09359cf VS |
9220 | # Don't use installbsd from OSF since it installs stuff as root |
9221 | # by default. | |
9222 | for ac_prog in ginstall scoinst install; do | |
52127426 | 9223 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 9224 | if test $ac_prog = install && |
52127426 | 9225 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
9226 | # AIX install. It has an incompatible calling convention. |
9227 | : | |
9228 | else | |
9229 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9230 | break 2 | |
9231 | fi | |
9232 | fi | |
9233 | done | |
9234 | ;; | |
9235 | esac | |
9236 | done | |
52127426 | 9237 | IFS="$ac_save_IFS" |
10f2d63a VZ |
9238 | |
9239 | fi | |
9240 | if test "${ac_cv_path_install+set}" = set; then | |
52127426 | 9241 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9242 | else |
9243 | # As a last resort, use the slow shell script. We don't cache a | |
9244 | # path for INSTALL within a source directory, because that will | |
9245 | # break other packages using the cache if that directory is | |
9246 | # removed, or if the path is relative. | |
52127426 | 9247 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9248 | fi |
9249 | fi | |
52127426 | 9250 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9251 | |
9252 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9253 | # It thinks the first close brace ends the variable substitution. | |
9254 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9255 | ||
52127426 | 9256 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
f09359cf | 9257 | |
10f2d63a VZ |
9258 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9259 | ||
52127426 | 9260 | |
1d1b75ac VZ |
9261 | case ${INSTALL} in |
9262 | /* ) # Absolute | |
9263 | ;; | |
3bd8fb5f | 9264 | *) |
1d1b75ac VZ |
9265 | INSTALL=`pwd`/${INSTALL} ;; |
9266 | esac | |
9267 | ||
52127426 | 9268 | |
6054113a GD |
9269 | case "${host}" in |
9270 | ||
b5853384 | 9271 | powerpc-*-darwin* ) |
eb99ae0b GD |
9272 | INSTALL_PROGRAM="cp -fp" |
9273 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9274 | ;; |
9275 | *) | |
9276 | ;; | |
d6853540 | 9277 | esac |
698dcdb6 | 9278 | |
10f2d63a VZ |
9279 | # Extract the first word of "strip", so it can be a program name with args. |
9280 | set dummy strip; ac_word=$2 | |
52127426 JS |
9281 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9282 | echo "configure:9283: checking for $ac_word" >&5 | |
9283 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | |
9284 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9285 | else |
9286 | if test -n "$STRIP"; then | |
9287 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9288 | else | |
52127426 JS |
9289 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9290 | ac_dummy="$PATH" | |
9291 | for ac_dir in $ac_dummy; do | |
9292 | test -z "$ac_dir" && ac_dir=. | |
9293 | if test -f $ac_dir/$ac_word; then | |
9294 | ac_cv_prog_STRIP="strip" | |
9295 | break | |
9296 | fi | |
9297 | done | |
9298 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9299 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9300 | fi | |
9301 | fi | |
52127426 | 9302 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9303 | if test -n "$STRIP"; then |
52127426 | 9304 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9305 | else |
52127426 | 9306 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9307 | fi |
9308 | ||
7b4a847f | 9309 | |
52127426 JS |
9310 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
9311 | echo "configure:9312: checking if make is GNU make" >&5 | |
9312 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then | |
9313 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9314 | else | |
9315 | ||
414eab6d | 9316 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 9317 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9318 | wx_cv_prog_makeisgnu="yes" |
9319 | else | |
9320 | wx_cv_prog_makeisgnu="no" | |
9321 | fi | |
9322 | ||
9323 | fi | |
52127426 JS |
9324 | |
9325 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
414eab6d VZ |
9326 | |
9327 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9328 | IF_GNU_MAKE="" | |
9329 | else | |
9330 | IF_GNU_MAKE="#" | |
9331 | fi | |
9332 | ||
52127426 JS |
9333 | |
9334 | ||
414eab6d | 9335 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
52127426 JS |
9336 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
9337 | echo "configure:9338: checking if make supports VPATH" >&5 | |
9338 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then | |
9339 | echo $ac_n "(cached) $ac_c" 1>&6 | |
04e7a216 | 9340 | else |
52127426 | 9341 | |
10f2d63a VZ |
9342 | cat - << EOF > confMake |
9343 | check : file | |
9344 | cp \$? \$@ | |
9345 | cp \$? final_file | |
9346 | EOF | |
9347 | ||
9348 | if test ! -d sub ; then | |
9349 | mkdir sub | |
9350 | fi | |
9351 | echo dummy > sub/file | |
f6bcfd97 | 9352 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9353 | RESULT=$? |
9354 | rm -f sub/file check final_file confMake | |
9355 | rmdir sub | |
9356 | if test "$RESULT" = 0; then | |
04e7a216 | 9357 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9358 | else |
04e7a216 VZ |
9359 | wx_cv_prog_makevpath="no" |
9360 | fi | |
9361 | ||
9362 | fi | |
52127426 JS |
9363 | |
9364 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
04e7a216 VZ |
9365 | |
9366 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
52127426 | 9367 | { echo "configure: error: |
1e487827 VS |
9368 | You need a make-utility that is able to use the variable |
9369 | VPATH correctly. | |
9370 | If your version of make does not support VPATH correctly, | |
9371 | please install GNU-make (possibly as gmake), and start | |
9372 | configure with the following command: | |
9373 | export MAKE=gmake; ./configure for sh-type shells | |
9374 | setenv MAKE gmake; ./configure for csh-type shells | |
9375 | Also please do remember to use gmake in this case every time | |
9376 | you are trying to compile. | |
52127426 JS |
9377 | " 1>&2; exit 1; } |
9378 | fi fi | |
10f2d63a VZ |
9379 | for ac_prog in 'bison -y' byacc |
9380 | do | |
52127426 | 9381 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9382 | set dummy $ac_prog; ac_word=$2 |
52127426 JS |
9383 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9384 | echo "configure:9385: checking for $ac_word" >&5 | |
9385 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then | |
9386 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9387 | else |
9388 | if test -n "$YACC"; then | |
9389 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9390 | else | |
52127426 JS |
9391 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9392 | ac_dummy="$PATH" | |
9393 | for ac_dir in $ac_dummy; do | |
9394 | test -z "$ac_dir" && ac_dir=. | |
9395 | if test -f $ac_dir/$ac_word; then | |
9396 | ac_cv_prog_YACC="$ac_prog" | |
9397 | break | |
9398 | fi | |
9399 | done | |
9400 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9401 | fi |
9402 | fi | |
52127426 | 9403 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9404 | if test -n "$YACC"; then |
52127426 | 9405 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9406 | else |
52127426 | 9407 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9408 | fi |
9409 | ||
52127426 | 9410 | test -n "$YACC" && break |
10f2d63a VZ |
9411 | done |
9412 | test -n "$YACC" || YACC="yacc" | |
9413 | ||
52127426 JS |
9414 | |
9415 | # Extract the first word of "flex", so it can be a program name with args. | |
9416 | set dummy flex; ac_word=$2 | |
9417 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9418 | echo "configure:9419: checking for $ac_word" >&5 | |
9419 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then | |
9420 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9421 | else |
9422 | if test -n "$LEX"; then | |
9423 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9424 | else | |
52127426 JS |
9425 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9426 | ac_dummy="$PATH" | |
9427 | for ac_dir in $ac_dummy; do | |
9428 | test -z "$ac_dir" && ac_dir=. | |
9429 | if test -f $ac_dir/$ac_word; then | |
9430 | ac_cv_prog_LEX="flex" | |
9431 | break | |
9432 | fi | |
9433 | done | |
9434 | IFS="$ac_save_ifs" | |
9435 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9436 | fi |
9437 | fi | |
52127426 | 9438 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9439 | if test -n "$LEX"; then |
52127426 | 9440 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9441 | else |
52127426 | 9442 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9443 | fi |
9444 | ||
9445 | if test -z "$LEXLIB" | |
9446 | then | |
52127426 JS |
9447 | case "$LEX" in |
9448 | flex*) ac_lib=fl ;; | |
9449 | *) ac_lib=l ;; | |
9450 | esac | |
9451 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
9452 | echo "configure:9453: checking for yywrap in -l$ac_lib" >&5 | |
9453 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` | |
9454 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9455 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9456 | else | |
9457 | ac_save_LIBS="$LIBS" | |
9458 | LIBS="-l$ac_lib $LIBS" | |
9459 | cat > conftest.$ac_ext <<EOF | |
9460 | #line 9461 "configure" | |
10f2d63a VZ |
9461 | #include "confdefs.h" |
9462 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9463 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
9464 | builtin and then its argument prototype would still apply. */ |
9465 | char yywrap(); | |
10f2d63a | 9466 | |
52127426 JS |
9467 | int main() { |
9468 | yywrap() | |
9469 | ; return 0; } | |
9470 | EOF | |
9471 | if { (eval echo configure:9472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9472 | rm -rf conftest* | |
9473 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 9474 | else |
52127426 JS |
9475 | echo "configure: failed program was:" >&5 |
9476 | cat conftest.$ac_ext >&5 | |
9477 | rm -rf conftest* | |
9478 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9479 | fi |
52127426 JS |
9480 | rm -f conftest* |
9481 | LIBS="$ac_save_LIBS" | |
9482 | ||
10f2d63a | 9483 | fi |
52127426 JS |
9484 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9485 | echo "$ac_t""yes" 1>&6 | |
9486 | LEXLIB="-l$ac_lib" | |
9487 | else | |
9488 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
9489 | fi |
9490 | ||
9491 | fi | |
9492 | ||
9493 | ||
52127426 JS |
9494 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
9495 | echo "configure:9496: checking whether ln -s works" >&5 | |
9496 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | |
9497 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9498 | else |
52127426 JS |
9499 | rm -f conftestdata |
9500 | if ln -s X conftestdata 2>/dev/null | |
9501 | then | |
9502 | rm -f conftestdata | |
9503 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9504 | else |
52127426 | 9505 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
9506 | fi |
9507 | fi | |
52127426 JS |
9508 | LN_S="$ac_cv_prog_LN_S" |
9509 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9510 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9511 | else |
52127426 | 9512 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9513 | fi |
9514 | ||
9515 | ||
9516 | ||
21d1c967 | 9517 | if test "$wxUSE_MAC" != 1; then |
52127426 | 9518 | for ac_hdr in strings.h |
21d1c967 | 9519 | do |
52127426 JS |
9520 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9521 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9522 | echo "configure:9523: checking for $ac_hdr" >&5 | |
9523 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9524 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9525 | else | |
9526 | cat > conftest.$ac_ext <<EOF | |
9527 | #line 9528 "configure" | |
19bc6aad | 9528 | #include "confdefs.h" |
52127426 JS |
9529 | #include <$ac_hdr> |
9530 | EOF | |
9531 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9532 | { (eval echo configure:9533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9533 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9534 | if test -z "$ac_err"; then | |
9535 | rm -rf conftest* | |
9536 | eval "ac_cv_header_$ac_safe=yes" | |
7b4a847f | 9537 | else |
52127426 JS |
9538 | echo "$ac_err" >&5 |
9539 | echo "configure: failed program was:" >&5 | |
19bc6aad | 9540 | cat conftest.$ac_ext >&5 |
52127426 JS |
9541 | rm -rf conftest* |
9542 | eval "ac_cv_header_$ac_safe=no" | |
19bc6aad | 9543 | fi |
52127426 | 9544 | rm -f conftest* |
19bc6aad | 9545 | fi |
52127426 JS |
9546 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9547 | echo "$ac_t""yes" 1>&6 | |
9548 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9549 | cat >> confdefs.h <<EOF | |
9550 | #define $ac_tr_hdr 1 | |
19bc6aad | 9551 | EOF |
52127426 JS |
9552 | |
9553 | else | |
9554 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9555 | fi |
9556 | done | |
19bc6aad | 9557 | |
19bc6aad VZ |
9558 | fi |
9559 | ||
52127426 | 9560 | for ac_hdr in stdlib.h |
21d1c967 | 9561 | do |
52127426 JS |
9562 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9563 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9564 | echo "configure:9565: checking for $ac_hdr" >&5 | |
9565 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9566 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9567 | else | |
9568 | cat > conftest.$ac_ext <<EOF | |
9569 | #line 9570 "configure" | |
18dbb1f6 | 9570 | #include "confdefs.h" |
52127426 JS |
9571 | #include <$ac_hdr> |
9572 | EOF | |
9573 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9574 | { (eval echo configure:9575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9575 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9576 | if test -z "$ac_err"; then | |
9577 | rm -rf conftest* | |
9578 | eval "ac_cv_header_$ac_safe=yes" | |
7b4a847f | 9579 | else |
52127426 JS |
9580 | echo "$ac_err" >&5 |
9581 | echo "configure: failed program was:" >&5 | |
18dbb1f6 | 9582 | cat conftest.$ac_ext >&5 |
52127426 JS |
9583 | rm -rf conftest* |
9584 | eval "ac_cv_header_$ac_safe=no" | |
18dbb1f6 | 9585 | fi |
52127426 | 9586 | rm -f conftest* |
90dd450c | 9587 | fi |
52127426 JS |
9588 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9589 | echo "$ac_t""yes" 1>&6 | |
9590 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9591 | cat >> confdefs.h <<EOF | |
9592 | #define $ac_tr_hdr 1 | |
90dd450c | 9593 | EOF |
52127426 JS |
9594 | |
9595 | else | |
9596 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9597 | fi |
9598 | done | |
90dd450c | 9599 | |
52127426 | 9600 | for ac_hdr in malloc.h |
21d1c967 | 9601 | do |
52127426 JS |
9602 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9603 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9604 | echo "configure:9605: checking for $ac_hdr" >&5 | |
9605 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9606 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9607 | else | |
9608 | cat > conftest.$ac_ext <<EOF | |
9609 | #line 9610 "configure" | |
90dd450c | 9610 | #include "confdefs.h" |
52127426 JS |
9611 | #include <$ac_hdr> |
9612 | EOF | |
9613 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9614 | { (eval echo configure:9615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9615 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9616 | if test -z "$ac_err"; then | |
9617 | rm -rf conftest* | |
9618 | eval "ac_cv_header_$ac_safe=yes" | |
7b4a847f | 9619 | else |
52127426 JS |
9620 | echo "$ac_err" >&5 |
9621 | echo "configure: failed program was:" >&5 | |
18dbb1f6 | 9622 | cat conftest.$ac_ext >&5 |
52127426 JS |
9623 | rm -rf conftest* |
9624 | eval "ac_cv_header_$ac_safe=no" | |
18dbb1f6 | 9625 | fi |
52127426 | 9626 | rm -f conftest* |
18dbb1f6 | 9627 | fi |
52127426 JS |
9628 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9629 | echo "$ac_t""yes" 1>&6 | |
9630 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9631 | cat >> confdefs.h <<EOF | |
9632 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9633 | EOF |
52127426 JS |
9634 | |
9635 | else | |
9636 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9637 | fi |
9638 | done | |
dad6c0ea | 9639 | |
52127426 | 9640 | for ac_hdr in unistd.h |
21d1c967 | 9641 | do |
52127426 JS |
9642 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9643 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9644 | echo "configure:9645: checking for $ac_hdr" >&5 | |
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 | |
9649 | #line 9650 "configure" | |
3a922bb4 | 9650 | #include "confdefs.h" |
52127426 JS |
9651 | #include <$ac_hdr> |
9652 | EOF | |
9653 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9654 | { (eval echo configure:9655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
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" | |
7b4a847f | 9659 | else |
52127426 JS |
9660 | echo "$ac_err" >&5 |
9661 | echo "configure: failed program was:" >&5 | |
3a922bb4 | 9662 | cat conftest.$ac_ext >&5 |
52127426 JS |
9663 | rm -rf conftest* |
9664 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9665 | fi |
52127426 | 9666 | rm -f conftest* |
90dd450c | 9667 | fi |
52127426 JS |
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 | |
90dd450c | 9673 | EOF |
52127426 JS |
9674 | |
9675 | else | |
9676 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9677 | fi |
9678 | done | |
90dd450c | 9679 | |
52127426 | 9680 | for ac_hdr in wchar.h |
21d1c967 | 9681 | do |
52127426 JS |
9682 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9683 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9684 | echo "configure:9685: checking for $ac_hdr" >&5 | |
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 | |
9689 | #line 9690 "configure" | |
4f14bcd8 | 9690 | #include "confdefs.h" |
52127426 JS |
9691 | #include <$ac_hdr> |
9692 | EOF | |
9693 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9694 | { (eval echo configure:9695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
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" | |
7b4a847f | 9699 | else |
52127426 JS |
9700 | echo "$ac_err" >&5 |
9701 | echo "configure: failed program was:" >&5 | |
4f14bcd8 | 9702 | cat conftest.$ac_ext >&5 |
52127426 JS |
9703 | rm -rf conftest* |
9704 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9705 | fi |
52127426 | 9706 | rm -f conftest* |
4f14bcd8 | 9707 | fi |
52127426 JS |
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 | |
4f14bcd8 | 9713 | EOF |
52127426 JS |
9714 | |
9715 | else | |
9716 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9717 | fi |
9718 | done | |
4f14bcd8 | 9719 | |
7b4a847f | 9720 | |
52127426 JS |
9721 | if test "$ac_cv_header_wchar_h" != "yes"; then |
9722 | for ac_hdr in wcstr.h | |
21d1c967 | 9723 | do |
52127426 JS |
9724 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9725 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9726 | echo "configure:9727: checking for $ac_hdr" >&5 | |
9727 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9728 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9729 | else | |
9730 | cat > conftest.$ac_ext <<EOF | |
9731 | #line 9732 "configure" | |
d4158b5d | 9732 | #include "confdefs.h" |
52127426 JS |
9733 | #include <$ac_hdr> |
9734 | EOF | |
9735 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9736 | { (eval echo configure:9737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9737 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9738 | if test -z "$ac_err"; then | |
9739 | rm -rf conftest* | |
9740 | eval "ac_cv_header_$ac_safe=yes" | |
d4158b5d | 9741 | else |
52127426 JS |
9742 | echo "$ac_err" >&5 |
9743 | echo "configure: failed program was:" >&5 | |
d4158b5d | 9744 | cat conftest.$ac_ext >&5 |
52127426 JS |
9745 | rm -rf conftest* |
9746 | eval "ac_cv_header_$ac_safe=no" | |
d4158b5d | 9747 | fi |
52127426 | 9748 | rm -f conftest* |
21d1c967 | 9749 | fi |
52127426 JS |
9750 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9751 | echo "$ac_t""yes" 1>&6 | |
9752 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9753 | cat >> confdefs.h <<EOF | |
9754 | #define $ac_tr_hdr 1 | |
21d1c967 | 9755 | EOF |
52127426 JS |
9756 | |
9757 | else | |
9758 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 9759 | fi |
21d1c967 | 9760 | done |
f6bcfd97 | 9761 | |
90dd450c | 9762 | fi |
90dd450c | 9763 | |
52127426 JS |
9764 | |
9765 | for ac_hdr in fnmatch.h | |
21d1c967 | 9766 | do |
52127426 JS |
9767 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9768 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9769 | echo "configure:9770: checking for $ac_hdr" >&5 | |
9770 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9772 | else | |
9773 | cat > conftest.$ac_ext <<EOF | |
9774 | #line 9775 "configure" | |
90dd450c | 9775 | #include "confdefs.h" |
52127426 JS |
9776 | #include <$ac_hdr> |
9777 | EOF | |
9778 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9779 | { (eval echo configure:9780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9780 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9781 | if test -z "$ac_err"; then | |
9782 | rm -rf conftest* | |
9783 | eval "ac_cv_header_$ac_safe=yes" | |
3a922bb4 | 9784 | else |
52127426 JS |
9785 | echo "$ac_err" >&5 |
9786 | echo "configure: failed program was:" >&5 | |
3a922bb4 | 9787 | cat conftest.$ac_ext >&5 |
52127426 JS |
9788 | rm -rf conftest* |
9789 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9790 | fi |
52127426 | 9791 | rm -f conftest* |
4f14bcd8 | 9792 | fi |
52127426 JS |
9793 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9794 | echo "$ac_t""yes" 1>&6 | |
9795 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9796 | cat >> confdefs.h <<EOF | |
9797 | #define $ac_tr_hdr 1 | |
90dd450c | 9798 | EOF |
52127426 JS |
9799 | |
9800 | else | |
9801 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9802 | fi |
9803 | done | |
90dd450c | 9804 | |
7b4a847f | 9805 | |
52127426 JS |
9806 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
9807 | for ac_func in fnmatch | |
21d1c967 | 9808 | do |
52127426 JS |
9809 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9810 | echo "configure:9811: checking for $ac_func" >&5 | |
9811 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
9812 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9813 | else | |
9814 | cat > conftest.$ac_ext <<EOF | |
9815 | #line 9816 "configure" | |
90dd450c | 9816 | #include "confdefs.h" |
21d1c967 | 9817 | /* System header to define __stub macros and hopefully few prototypes, |
52127426 | 9818 | which can conflict with char $ac_func(); below. */ |
21d1c967 GD |
9819 | #include <assert.h> |
9820 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9821 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
9822 | builtin and then its argument prototype would still apply. */ |
9823 | char $ac_func(); | |
9824 | ||
9825 | int main() { | |
21d1c967 GD |
9826 | |
9827 | /* The GNU C library defines this for functions which it implements | |
9828 | to always fail with ENOSYS. Some functions are actually named | |
9829 | something starting with __ and the normal name is an alias. */ | |
9830 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9831 | choke me | |
9832 | #else | |
52127426 | 9833 | $ac_func(); |
21d1c967 GD |
9834 | #endif |
9835 | ||
52127426 | 9836 | ; return 0; } |
90dd450c | 9837 | EOF |
52127426 JS |
9838 | if { (eval echo configure:9839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9839 | rm -rf conftest* | |
9840 | eval "ac_cv_func_$ac_func=yes" | |
9841 | else | |
9842 | echo "configure: failed program was:" >&5 | |
9843 | cat conftest.$ac_ext >&5 | |
9844 | rm -rf conftest* | |
9845 | eval "ac_cv_func_$ac_func=no" | |
9846 | fi | |
9847 | rm -f conftest* | |
9848 | fi | |
32832908 | 9849 | |
52127426 JS |
9850 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9851 | echo "$ac_t""yes" 1>&6 | |
9852 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9853 | cat >> confdefs.h <<EOF | |
9854 | #define $ac_tr_func 1 | |
9855 | EOF | |
9856 | ||
9857 | else | |
9858 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9859 | fi |
9860 | done | |
90dd450c | 9861 | |
21d1c967 | 9862 | fi |
90dd450c | 9863 | |
52127426 | 9864 | for ac_hdr in langinfo.h |
21d1c967 | 9865 | do |
52127426 JS |
9866 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9867 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9868 | echo "configure:9869: checking for $ac_hdr" >&5 | |
9869 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9870 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9871 | else | |
9872 | cat > conftest.$ac_ext <<EOF | |
9873 | #line 9874 "configure" | |
90dd450c | 9874 | #include "confdefs.h" |
52127426 JS |
9875 | #include <$ac_hdr> |
9876 | EOF | |
9877 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9878 | { (eval echo configure:9879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9879 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9880 | if test -z "$ac_err"; then | |
9881 | rm -rf conftest* | |
9882 | eval "ac_cv_header_$ac_safe=yes" | |
7b4a847f | 9883 | else |
52127426 JS |
9884 | echo "$ac_err" >&5 |
9885 | echo "configure: failed program was:" >&5 | |
90dd450c | 9886 | cat conftest.$ac_ext >&5 |
52127426 JS |
9887 | rm -rf conftest* |
9888 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 9889 | fi |
52127426 | 9890 | rm -f conftest* |
4f14bcd8 | 9891 | fi |
52127426 JS |
9892 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9893 | echo "$ac_t""yes" 1>&6 | |
9894 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9895 | cat >> confdefs.h <<EOF | |
9896 | #define $ac_tr_hdr 1 | |
90dd450c | 9897 | EOF |
52127426 JS |
9898 | |
9899 | else | |
9900 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9901 | fi |
9902 | done | |
3a922bb4 | 9903 | |
52127426 | 9904 | |
21d1c967 GD |
9905 | if test "$wxUSE_GUI" = "yes"; then |
9906 | if test "$wxUSE_UNIX" = "yes"; then | |
52127426 | 9907 | for ac_hdr in X11/XKBlib.h |
21d1c967 | 9908 | do |
52127426 JS |
9909 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9910 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9911 | echo "configure:9912: checking for $ac_hdr" >&5 | |
9912 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9913 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9914 | else | |
9915 | cat > conftest.$ac_ext <<EOF | |
9916 | #line 9917 "configure" | |
90dd450c | 9917 | #include "confdefs.h" |
52127426 JS |
9918 | #include <$ac_hdr> |
9919 | EOF | |
9920 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9921 | { (eval echo configure:9922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9922 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9923 | if test -z "$ac_err"; then | |
9924 | rm -rf conftest* | |
9925 | eval "ac_cv_header_$ac_safe=yes" | |
328a083c | 9926 | else |
52127426 JS |
9927 | echo "$ac_err" >&5 |
9928 | echo "configure: failed program was:" >&5 | |
90dd450c | 9929 | cat conftest.$ac_ext >&5 |
52127426 JS |
9930 | rm -rf conftest* |
9931 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9932 | fi |
52127426 | 9933 | rm -f conftest* |
90dd450c | 9934 | fi |
52127426 JS |
9935 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9936 | echo "$ac_t""yes" 1>&6 | |
9937 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9938 | cat >> confdefs.h <<EOF | |
9939 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9940 | EOF |
52127426 JS |
9941 | |
9942 | else | |
9943 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9944 | fi |
9945 | done | |
10f2d63a | 9946 | |
21d1c967 | 9947 | fi |
90dd450c | 9948 | fi |
81809c07 | 9949 | |
52127426 JS |
9950 | |
9951 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
9952 | echo "configure:9953: checking for working const" >&5 | |
9953 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | |
9954 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8168de4c | 9955 | else |
52127426 JS |
9956 | cat > conftest.$ac_ext <<EOF |
9957 | #line 9958 "configure" | |
4f14bcd8 | 9958 | #include "confdefs.h" |
52127426 JS |
9959 | |
9960 | int main() { | |
9961 | ||
9962 | /* Ultrix mips cc rejects this. */ | |
9963 | typedef int charset[2]; const charset x; | |
9964 | /* SunOS 4.1.1 cc rejects this. */ | |
9965 | char const *const *ccp; | |
9966 | char **p; | |
9967 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
9968 | struct point {int x, y;}; | |
9969 | static struct point const zero = {0,0}; | |
9970 | /* AIX XL C 1.02.0.0 rejects this. | |
9971 | It does not let you subtract one const X* pointer from another in an arm | |
9972 | of an if-expression whose if-part is not a constant expression */ | |
9973 | const char *g = "string"; | |
9974 | ccp = &g + (g ? g-g : 0); | |
9975 | /* HPUX 7.0 cc rejects these. */ | |
9976 | ++ccp; | |
9977 | p = (char**) ccp; | |
9978 | ccp = (char const *const *) p; | |
9979 | { /* SCO 3.2v4 cc rejects this. */ | |
9980 | char *t; | |
9981 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
9982 | ||
9983 | *t++ = 0; | |
21d1c967 | 9984 | } |
52127426 JS |
9985 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
9986 | int x[] = {25, 17}; | |
9987 | const int *foo = &x[0]; | |
9988 | ++foo; | |
579d8138 | 9989 | } |
52127426 JS |
9990 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
9991 | typedef const int *iptr; | |
9992 | iptr p = 0; | |
9993 | ++p; | |
328a083c | 9994 | } |
52127426 JS |
9995 | { /* AIX XL C 1.02.0.0 rejects this saying |
9996 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
9997 | struct s { int j; const int *ap[3]; }; | |
9998 | struct s *b; b->j = 5; | |
9999 | } | |
10000 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
10001 | const int foo = 10; | |
7b4a847f | 10002 | } |
52127426 JS |
10003 | |
10004 | ; return 0; } | |
10005 | EOF | |
10006 | if { (eval echo configure:10007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10007 | rm -rf conftest* | |
21d1c967 | 10008 | ac_cv_c_const=yes |
6f72b082 | 10009 | else |
52127426 JS |
10010 | echo "configure: failed program was:" >&5 |
10011 | cat conftest.$ac_ext >&5 | |
10012 | rm -rf conftest* | |
10013 | ac_cv_c_const=no | |
4f14bcd8 | 10014 | fi |
52127426 | 10015 | rm -f conftest* |
698dcdb6 | 10016 | fi |
7b4a847f | 10017 | |
52127426 JS |
10018 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
10019 | if test $ac_cv_c_const = no; then | |
10020 | cat >> confdefs.h <<\EOF | |
10021 | #define const | |
90dd450c VZ |
10022 | EOF |
10023 | ||
21d1c967 | 10024 | fi |
90dd450c | 10025 | |
52127426 JS |
10026 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
10027 | echo "configure:10028: checking for inline" >&5 | |
10028 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | |
10029 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 10030 | else |
21d1c967 GD |
10031 | ac_cv_c_inline=no |
10032 | for ac_kw in inline __inline__ __inline; do | |
52127426 JS |
10033 | cat > conftest.$ac_ext <<EOF |
10034 | #line 10035 "configure" | |
4f14bcd8 | 10035 | #include "confdefs.h" |
90dd450c | 10036 | |
52127426 JS |
10037 | int main() { |
10038 | } $ac_kw foo() { | |
10039 | ; return 0; } | |
10040 | EOF | |
10041 | if { (eval echo configure:10042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10042 | rm -rf conftest* | |
21d1c967 | 10043 | ac_cv_c_inline=$ac_kw; break |
6f72b082 | 10044 | else |
52127426 JS |
10045 | echo "configure: failed program was:" >&5 |
10046 | cat conftest.$ac_ext >&5 | |
698dcdb6 | 10047 | fi |
52127426 | 10048 | rm -f conftest* |
21d1c967 | 10049 | done |
4f14bcd8 | 10050 | |
21d1c967 | 10051 | fi |
52127426 JS |
10052 | |
10053 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
10054 | case "$ac_cv_c_inline" in | |
21d1c967 | 10055 | inline | yes) ;; |
52127426 JS |
10056 | no) cat >> confdefs.h <<\EOF |
10057 | #define inline | |
90dd450c | 10058 | EOF |
21d1c967 | 10059 | ;; |
52127426 | 10060 | *) cat >> confdefs.h <<EOF |
21d1c967 | 10061 | #define inline $ac_cv_c_inline |
4f14bcd8 | 10062 | EOF |
21d1c967 GD |
10063 | ;; |
10064 | esac | |
4f14bcd8 | 10065 | |
7b4a847f | 10066 | |
52127426 JS |
10067 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
10068 | echo "configure:10069: checking size of char" >&5 | |
10069 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then | |
10070 | echo $ac_n "(cached) $ac_c" 1>&6 | |
328a083c | 10071 | else |
52127426 JS |
10072 | if test "$cross_compiling" = yes; then |
10073 | ac_cv_sizeof_char=1 | |
7b4a847f | 10074 | else |
52127426 JS |
10075 | cat > conftest.$ac_ext <<EOF |
10076 | #line 10077 "configure" | |
7b4a847f | 10077 | #include "confdefs.h" |
52127426 JS |
10078 | #include <stdio.h> |
10079 | main() | |
10080 | { | |
10081 | FILE *f=fopen("conftestval", "w"); | |
10082 | if (!f) exit(1); | |
10083 | fprintf(f, "%d\n", sizeof(char)); | |
10084 | exit(0); | |
10085 | } | |
10086 | EOF | |
10087 | if { (eval echo configure:10088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10088 | then | |
10089 | ac_cv_sizeof_char=`cat conftestval` | |
7b4a847f | 10090 | else |
52127426 JS |
10091 | echo "configure: failed program was:" >&5 |
10092 | cat conftest.$ac_ext >&5 | |
10093 | rm -fr conftest* | |
10094 | ac_cv_sizeof_char=0 | |
10095 | fi | |
10096 | rm -fr conftest* | |
328a083c RR |
10097 | fi |
10098 | ||
7b4a847f | 10099 | fi |
52127426 JS |
10100 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10101 | cat >> confdefs.h <<EOF | |
10102 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10103 | EOF | |
328a083c | 10104 | |
7b4a847f | 10105 | |
52127426 JS |
10106 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
10107 | echo "configure:10108: checking size of short" >&5 | |
10108 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then | |
10109 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 10110 | else |
21d1c967 | 10111 | if test "$cross_compiling" = yes; then |
52127426 | 10112 | ac_cv_sizeof_short=2 |
21d1c967 | 10113 | else |
52127426 JS |
10114 | cat > conftest.$ac_ext <<EOF |
10115 | #line 10116 "configure" | |
21d1c967 | 10116 | #include "confdefs.h" |
52127426 JS |
10117 | #include <stdio.h> |
10118 | main() | |
21d1c967 | 10119 | { |
52127426 JS |
10120 | FILE *f=fopen("conftestval", "w"); |
10121 | if (!f) exit(1); | |
10122 | fprintf(f, "%d\n", sizeof(short)); | |
10123 | exit(0); | |
21d1c967 | 10124 | } |
52127426 JS |
10125 | EOF |
10126 | if { (eval echo configure:10127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10127 | then | |
10128 | ac_cv_sizeof_short=`cat conftestval` | |
21d1c967 | 10129 | else |
52127426 JS |
10130 | echo "configure: failed program was:" >&5 |
10131 | cat conftest.$ac_ext >&5 | |
10132 | rm -fr conftest* | |
10133 | ac_cv_sizeof_short=0 | |
7b4a847f | 10134 | fi |
52127426 | 10135 | rm -fr conftest* |
7b4a847f | 10136 | fi |
4f14bcd8 | 10137 | |
4f14bcd8 | 10138 | fi |
52127426 JS |
10139 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10140 | cat >> confdefs.h <<EOF | |
10141 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
21d1c967 | 10142 | EOF |
4f14bcd8 GD |
10143 | |
10144 | ||
52127426 JS |
10145 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
10146 | echo "configure:10147: checking size of void *" >&5 | |
10147 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then | |
10148 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f RR |
10149 | else |
10150 | if test "$cross_compiling" = yes; then | |
52127426 | 10151 | ac_cv_sizeof_void_p=4 |
7b4a847f | 10152 | else |
52127426 JS |
10153 | cat > conftest.$ac_ext <<EOF |
10154 | #line 10155 "configure" | |
7b4a847f | 10155 | #include "confdefs.h" |
52127426 JS |
10156 | #include <stdio.h> |
10157 | main() | |
21d1c967 | 10158 | { |
52127426 JS |
10159 | FILE *f=fopen("conftestval", "w"); |
10160 | if (!f) exit(1); | |
10161 | fprintf(f, "%d\n", sizeof(void *)); | |
10162 | exit(0); | |
21d1c967 | 10163 | } |
4f14bcd8 | 10164 | EOF |
52127426 JS |
10165 | if { (eval echo configure:10166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10166 | then | |
10167 | ac_cv_sizeof_void_p=`cat conftestval` | |
7b4a847f | 10168 | else |
52127426 JS |
10169 | echo "configure: failed program was:" >&5 |
10170 | cat conftest.$ac_ext >&5 | |
10171 | rm -fr conftest* | |
10172 | ac_cv_sizeof_void_p=0 | |
7b4a847f | 10173 | fi |
52127426 | 10174 | rm -fr conftest* |
7b4a847f | 10175 | fi |
4f14bcd8 | 10176 | |
7b4a847f | 10177 | fi |
52127426 JS |
10178 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
10179 | cat >> confdefs.h <<EOF | |
21d1c967 | 10180 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
90dd450c VZ |
10181 | EOF |
10182 | ||
52127426 JS |
10183 | |
10184 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
10185 | echo "configure:10186: checking size of int" >&5 | |
10186 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then | |
10187 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 10188 | else |
328a083c | 10189 | if test "$cross_compiling" = yes; then |
52127426 | 10190 | ac_cv_sizeof_int=4 |
328a083c | 10191 | else |
52127426 JS |
10192 | cat > conftest.$ac_ext <<EOF |
10193 | #line 10194 "configure" | |
328a083c | 10194 | #include "confdefs.h" |
52127426 JS |
10195 | #include <stdio.h> |
10196 | main() | |
328a083c | 10197 | { |
52127426 JS |
10198 | FILE *f=fopen("conftestval", "w"); |
10199 | if (!f) exit(1); | |
10200 | fprintf(f, "%d\n", sizeof(int)); | |
10201 | exit(0); | |
328a083c | 10202 | } |
52127426 JS |
10203 | EOF |
10204 | if { (eval echo configure:10205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10205 | then | |
10206 | ac_cv_sizeof_int=`cat conftestval` | |
7b4a847f | 10207 | else |
52127426 JS |
10208 | echo "configure: failed program was:" >&5 |
10209 | cat conftest.$ac_ext >&5 | |
10210 | rm -fr conftest* | |
7b4a847f | 10211 | ac_cv_sizeof_int=0 |
21d1c967 | 10212 | fi |
52127426 | 10213 | rm -fr conftest* |
579d8138 | 10214 | fi |
52127426 JS |
10215 | |
10216 | fi | |
10217 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
10218 | cat >> confdefs.h <<EOF | |
21d1c967 | 10219 | #define SIZEOF_INT $ac_cv_sizeof_int |
90dd450c VZ |
10220 | EOF |
10221 | ||
52127426 JS |
10222 | |
10223 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
10224 | echo "configure:10225: checking size of long" >&5 | |
10225 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then | |
10226 | echo $ac_n "(cached) $ac_c" 1>&6 | |
328a083c | 10227 | else |
7b4a847f | 10228 | if test "$cross_compiling" = yes; then |
52127426 | 10229 | ac_cv_sizeof_long=4 |
7b4a847f | 10230 | else |
52127426 JS |
10231 | cat > conftest.$ac_ext <<EOF |
10232 | #line 10233 "configure" | |
7b4a847f | 10233 | #include "confdefs.h" |
52127426 JS |
10234 | #include <stdio.h> |
10235 | main() | |
7b4a847f | 10236 | { |
52127426 JS |
10237 | FILE *f=fopen("conftestval", "w"); |
10238 | if (!f) exit(1); | |
10239 | fprintf(f, "%d\n", sizeof(long)); | |
10240 | exit(0); | |
7b4a847f | 10241 | } |
52127426 JS |
10242 | EOF |
10243 | if { (eval echo configure:10244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10244 | then | |
10245 | ac_cv_sizeof_long=`cat conftestval` | |
7b4a847f | 10246 | else |
52127426 JS |
10247 | echo "configure: failed program was:" >&5 |
10248 | cat conftest.$ac_ext >&5 | |
10249 | rm -fr conftest* | |
7b4a847f | 10250 | ac_cv_sizeof_long=0 |
579d8138 | 10251 | fi |
52127426 | 10252 | rm -fr conftest* |
21d1c967 | 10253 | fi |
52127426 JS |
10254 | |
10255 | fi | |
10256 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
10257 | cat >> confdefs.h <<EOF | |
10258 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10259 | EOF | |
10260 | ||
10261 | ||
10262 | ||
10263 | case "${host}" in | |
10264 | arm-*-linux* ) | |
10265 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
10266 | echo "configure:10267: checking size of long long" >&5 | |
10267 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | |
10268 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 GD |
10269 | else |
10270 | if test "$cross_compiling" = yes; then | |
52127426 | 10271 | ac_cv_sizeof_long_long=8 |
21d1c967 | 10272 | else |
52127426 JS |
10273 | cat > conftest.$ac_ext <<EOF |
10274 | #line 10275 "configure" | |
21d1c967 | 10275 | #include "confdefs.h" |
52127426 JS |
10276 | #include <stdio.h> |
10277 | main() | |
21d1c967 | 10278 | { |
52127426 JS |
10279 | FILE *f=fopen("conftestval", "w"); |
10280 | if (!f) exit(1); | |
10281 | fprintf(f, "%d\n", sizeof(long long)); | |
10282 | exit(0); | |
21d1c967 | 10283 | } |
52127426 JS |
10284 | EOF |
10285 | if { (eval echo configure:10286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10286 | then | |
10287 | ac_cv_sizeof_long_long=`cat conftestval` | |
7b4a847f | 10288 | else |
52127426 JS |
10289 | echo "configure: failed program was:" >&5 |
10290 | cat conftest.$ac_ext >&5 | |
10291 | rm -fr conftest* | |
7b4a847f RR |
10292 | ac_cv_sizeof_long_long=0 |
10293 | fi | |
52127426 JS |
10294 | rm -fr conftest* |
10295 | fi | |
10296 | ||
7b4a847f | 10297 | fi |
52127426 JS |
10298 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10299 | cat >> confdefs.h <<EOF | |
21d1c967 GD |
10300 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
10301 | EOF | |
90dd450c | 10302 | |
52127426 | 10303 | |
21d1c967 GD |
10304 | ;; |
10305 | * ) | |
52127426 JS |
10306 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
10307 | echo "configure:10308: checking size of long long" >&5 | |
10308 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | |
10309 | echo $ac_n "(cached) $ac_c" 1>&6 | |
328a083c | 10310 | else |
7b4a847f | 10311 | if test "$cross_compiling" = yes; then |
52127426 | 10312 | ac_cv_sizeof_long_long=0 |
7b4a847f | 10313 | else |
52127426 JS |
10314 | cat > conftest.$ac_ext <<EOF |
10315 | #line 10316 "configure" | |
7b4a847f | 10316 | #include "confdefs.h" |
52127426 JS |
10317 | #include <stdio.h> |
10318 | main() | |
7b4a847f | 10319 | { |
52127426 JS |
10320 | FILE *f=fopen("conftestval", "w"); |
10321 | if (!f) exit(1); | |
10322 | fprintf(f, "%d\n", sizeof(long long)); | |
10323 | exit(0); | |
7b4a847f | 10324 | } |
52127426 JS |
10325 | EOF |
10326 | if { (eval echo configure:10327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10327 | then | |
10328 | ac_cv_sizeof_long_long=`cat conftestval` | |
7b4a847f | 10329 | else |
52127426 JS |
10330 | echo "configure: failed program was:" >&5 |
10331 | cat conftest.$ac_ext >&5 | |
10332 | rm -fr conftest* | |
7b4a847f RR |
10333 | ac_cv_sizeof_long_long=0 |
10334 | fi | |
52127426 JS |
10335 | rm -fr conftest* |
10336 | fi | |
10337 | ||
7b4a847f | 10338 | fi |
52127426 JS |
10339 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10340 | cat >> confdefs.h <<EOF | |
21d1c967 | 10341 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
90dd450c | 10342 | EOF |
9e691f46 | 10343 | |
52127426 | 10344 | |
21d1c967 GD |
10345 | esac |
10346 | ||
52127426 JS |
10347 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
10348 | echo "configure:10349: checking size of wchar_t" >&5 | |
10349 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then | |
10350 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 10351 | else |
52127426 | 10352 | |
21d1c967 GD |
10353 | if test "$cross_compiling" = yes; then |
10354 | wx_cv_sizeof_wchar_t=4 | |
52127426 | 10355 | |
6f72b082 | 10356 | else |
52127426 JS |
10357 | cat > conftest.$ac_ext <<EOF |
10358 | #line 10359 "configure" | |
6f72b082 | 10359 | #include "confdefs.h" |
21d1c967 GD |
10360 | |
10361 | #ifdef HAVE_WCHAR_H | |
10362 | # ifdef __CYGWIN__ | |
10363 | # include <stddef.h> | |
10364 | # endif | |
10365 | # include <wchar.h> | |
10366 | #endif | |
10367 | #ifdef HAVE_STDLIB_H | |
10368 | # include <stdlib.h> | |
10369 | #endif | |
10370 | #include <stdio.h> | |
10371 | int main() | |
10372 | { | |
10373 | FILE *f=fopen("conftestval", "w"); | |
10374 | if (!f) exit(1); | |
10375 | fprintf(f, "%i", sizeof(wchar_t)); | |
10376 | exit(0); | |
10377 | } | |
52127426 JS |
10378 | |
10379 | EOF | |
10380 | if { (eval echo configure:10381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10381 | then | |
21d1c967 | 10382 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 10383 | else |
52127426 JS |
10384 | echo "configure: failed program was:" >&5 |
10385 | cat conftest.$ac_ext >&5 | |
10386 | rm -fr conftest* | |
10387 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 10388 | fi |
52127426 | 10389 | rm -fr conftest* |
6f72b082 | 10390 | fi |
6f72b082 | 10391 | |
52127426 | 10392 | |
3f345b47 VZ |
10393 | fi |
10394 | ||
52127426 JS |
10395 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
10396 | ||
10397 | cat >> confdefs.h <<EOF | |
21d1c967 GD |
10398 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
10399 | EOF | |
90dd450c | 10400 | |
52127426 | 10401 | |
21d1c967 GD |
10402 | # Check whether --enable-largefile or --disable-largefile was given. |
10403 | if test "${enable_largefile+set}" = set; then | |
10404 | enableval="$enable_largefile" | |
52127426 JS |
10405 | : |
10406 | fi | |
3f345b47 | 10407 | |
21d1c967 GD |
10408 | if test "$enable_largefile" != no; then |
10409 | wx_largefile=no | |
52127426 JS |
10410 | |
10411 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
10412 | echo "configure:10413: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
10413 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then | |
10414 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10415 | else | |
10416 | ||
10417 | cat > conftest.$ac_ext <<EOF | |
10418 | #line 10419 "configure" | |
90dd450c | 10419 | #include "confdefs.h" |
21d1c967 GD |
10420 | #define _FILE_OFFSET_BITS 64 |
10421 | #include <sys/types.h> | |
52127426 | 10422 | int main() { |
21d1c967 GD |
10423 | typedef struct { |
10424 | unsigned int field: sizeof(off_t) == 8; | |
10425 | } wxlf; | |
10426 | ||
52127426 JS |
10427 | ; return 0; } |
10428 | EOF | |
10429 | if { (eval echo configure:10430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10430 | rm -rf conftest* | |
21d1c967 | 10431 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 10432 | else |
52127426 JS |
10433 | echo "configure: failed program was:" >&5 |
10434 | cat conftest.$ac_ext >&5 | |
10435 | rm -rf conftest* | |
10436 | ac_cv_sys_file_offset_bits=no | |
328a083c | 10437 | fi |
52127426 JS |
10438 | rm -f conftest* |
10439 | ||
10440 | ||
7b4a847f | 10441 | fi |
52127426 JS |
10442 | |
10443 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
21d1c967 GD |
10444 | |
10445 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
10446 | wx_largefile=yes | |
52127426 | 10447 | cat >> confdefs.h <<EOF |
21d1c967 GD |
10448 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
10449 | EOF | |
10450 | ||
10451 | fi | |
10452 | ||
10453 | if test "x$wx_largefile" != "xyes"; then | |
52127426 JS |
10454 | |
10455 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
10456 | echo "configure:10457: checking for _LARGE_FILES value needed for large files" >&5 | |
10457 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then | |
10458 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10459 | else | |
10460 | ||
10461 | cat > conftest.$ac_ext <<EOF | |
10462 | #line 10463 "configure" | |
f6bcfd97 | 10463 | #include "confdefs.h" |
21d1c967 GD |
10464 | #define _LARGE_FILES 1 |
10465 | #include <sys/types.h> | |
52127426 | 10466 | int main() { |
21d1c967 GD |
10467 | typedef struct { |
10468 | unsigned int field: sizeof(off_t) == 8; | |
10469 | } wxlf; | |
10470 | ||
52127426 JS |
10471 | ; return 0; } |
10472 | EOF | |
10473 | if { (eval echo configure:10474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10474 | rm -rf conftest* | |
21d1c967 | 10475 | ac_cv_sys_large_files=1 |
f6bcfd97 | 10476 | else |
52127426 JS |
10477 | echo "configure: failed program was:" >&5 |
10478 | cat conftest.$ac_ext >&5 | |
10479 | rm -rf conftest* | |
10480 | ac_cv_sys_large_files=no | |
328a083c | 10481 | fi |
52127426 JS |
10482 | rm -f conftest* |
10483 | ||
10484 | ||
7b4a847f | 10485 | fi |
52127426 JS |
10486 | |
10487 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
3f345b47 | 10488 | |
21d1c967 GD |
10489 | if test "$ac_cv_sys_large_files" != no; then |
10490 | wx_largefile=yes | |
52127426 | 10491 | cat >> confdefs.h <<EOF |
21d1c967 GD |
10492 | #define _LARGE_FILES $ac_cv_sys_large_files |
10493 | EOF | |
90dd450c | 10494 | |
90dd450c VZ |
10495 | fi |
10496 | ||
90dd450c | 10497 | fi |
90dd450c | 10498 | |
52127426 JS |
10499 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
10500 | echo "configure:10501: checking if large file support is available" >&5 | |
21d1c967 | 10501 | if test "x$wx_largefile" = "xyes"; then |
52127426 | 10502 | cat >> confdefs.h <<\EOF |
21d1c967 | 10503 | #define HAVE_LARGEFILE_SUPPORT 1 |
90dd450c VZ |
10504 | EOF |
10505 | ||
90dd450c | 10506 | fi |
52127426 | 10507 | echo "$ac_t""$wx_largefile" 1>&6 |
21d1c967 | 10508 | fi |
90dd450c | 10509 | |
52127426 JS |
10510 | |
10511 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
10512 | echo "configure:10513: checking whether byte ordering is bigendian" >&5 | |
10513 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then | |
10514 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 10515 | else |
21d1c967 GD |
10516 | ac_cv_c_bigendian=unknown |
10517 | # See if sys/param.h defines the BYTE_ORDER macro. | |
52127426 JS |
10518 | cat > conftest.$ac_ext <<EOF |
10519 | #line 10520 "configure" | |
90dd450c | 10520 | #include "confdefs.h" |
21d1c967 GD |
10521 | #include <sys/types.h> |
10522 | #include <sys/param.h> | |
52127426 | 10523 | int main() { |
21d1c967 GD |
10524 | |
10525 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10526 | bogus endian macros | |
10527 | #endif | |
52127426 JS |
10528 | ; return 0; } |
10529 | EOF | |
10530 | if { (eval echo configure:10531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10531 | rm -rf conftest* | |
21d1c967 | 10532 | # It does; now see whether it defined to BIG_ENDIAN or not. |
52127426 JS |
10533 | cat > conftest.$ac_ext <<EOF |
10534 | #line 10535 "configure" | |
90dd450c | 10535 | #include "confdefs.h" |
21d1c967 GD |
10536 | #include <sys/types.h> |
10537 | #include <sys/param.h> | |
52127426 | 10538 | int main() { |
21d1c967 GD |
10539 | |
10540 | #if BYTE_ORDER != BIG_ENDIAN | |
10541 | not big endian | |
10542 | #endif | |
52127426 JS |
10543 | ; return 0; } |
10544 | EOF | |
10545 | if { (eval echo configure:10546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10546 | rm -rf conftest* | |
21d1c967 | 10547 | ac_cv_c_bigendian=yes |
3f345b47 | 10548 | else |
52127426 JS |
10549 | echo "configure: failed program was:" >&5 |
10550 | cat conftest.$ac_ext >&5 | |
10551 | rm -rf conftest* | |
10552 | ac_cv_c_bigendian=no | |
3f345b47 | 10553 | fi |
52127426 | 10554 | rm -f conftest* |
3f345b47 | 10555 | else |
52127426 JS |
10556 | echo "configure: failed program was:" >&5 |
10557 | cat conftest.$ac_ext >&5 | |
3f345b47 | 10558 | fi |
52127426 | 10559 | rm -f conftest* |
21d1c967 GD |
10560 | if test $ac_cv_c_bigendian = unknown; then |
10561 | if test "$cross_compiling" = yes; then | |
10562 | ac_cv_c_bigendian=unknown | |
10f2d63a | 10563 | else |
52127426 JS |
10564 | cat > conftest.$ac_ext <<EOF |
10565 | #line 10566 "configure" | |
90dd450c | 10566 | #include "confdefs.h" |
21d1c967 GD |
10567 | main () { |
10568 | /* Are we little or big endian? From Harbison&Steele. */ | |
10569 | union | |
10570 | { | |
10571 | long l; | |
10572 | char c[sizeof (long)]; | |
10573 | } u; | |
10574 | u.l = 1; | |
10575 | exit (u.c[sizeof (long) - 1] == 1); | |
10576 | } | |
52127426 JS |
10577 | EOF |
10578 | if { (eval echo configure:10579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10579 | then | |
21d1c967 | 10580 | ac_cv_c_bigendian=no |
3f345b47 | 10581 | else |
52127426 JS |
10582 | echo "configure: failed program was:" >&5 |
10583 | cat conftest.$ac_ext >&5 | |
10584 | rm -fr conftest* | |
10585 | ac_cv_c_bigendian=yes | |
3f345b47 | 10586 | fi |
52127426 | 10587 | rm -fr conftest* |
8168de4c | 10588 | fi |
52127426 | 10589 | |
21d1c967 GD |
10590 | fi |
10591 | fi | |
52127426 JS |
10592 | |
10593 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
21d1c967 | 10594 | if test $ac_cv_c_bigendian = unknown; then |
52127426 | 10595 | echo "configure: warning: Assuming little-endian target machine - this may be overriden by adding the line "ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}" to config.cache file" 1>&2 |
21d1c967 GD |
10596 | fi |
10597 | if test $ac_cv_c_bigendian = yes; then | |
52127426 | 10598 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
10599 | #define WORDS_BIGENDIAN 1 |
10600 | EOF | |
10601 | ||
10602 | fi | |
10603 | ||
7b4a847f | 10604 | |
52127426 JS |
10605 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
10606 | echo "configure:10607: checking how to run the C++ preprocessor" >&5 | |
10607 | if test -z "$CXXCPP"; then | |
10608 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
10609 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 10610 | else |
52127426 JS |
10611 | ac_ext=C |
10612 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10613 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10614 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10615 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10616 | cross_compiling=$ac_cv_prog_cxx_cross | |
10617 | CXXCPP="${CXX-g++} -E" | |
10618 | cat > conftest.$ac_ext <<EOF | |
10619 | #line 10620 "configure" | |
7b4a847f | 10620 | #include "confdefs.h" |
52127426 JS |
10621 | #include <stdlib.h> |
10622 | EOF | |
10623 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10624 | { (eval echo configure:10625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10625 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10626 | if test -z "$ac_err"; then | |
21d1c967 | 10627 | : |
698dcdb6 | 10628 | else |
52127426 JS |
10629 | echo "$ac_err" >&5 |
10630 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 10631 | cat conftest.$ac_ext >&5 |
52127426 JS |
10632 | rm -rf conftest* |
10633 | CXXCPP=/lib/cpp | |
7ec2881a | 10634 | fi |
52127426 JS |
10635 | rm -f conftest* |
10636 | ac_cv_prog_CXXCPP="$CXXCPP" | |
10637 | ac_ext=C | |
10638 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10639 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10640 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10641 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10642 | cross_compiling=$ac_cv_prog_cxx_cross | |
328a083c | 10643 | fi |
90dd450c | 10644 | fi |
52127426 JS |
10645 | CXXCPP="$ac_cv_prog_CXXCPP" |
10646 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e6feb95 | 10647 | |
1725144d | 10648 | |
21d1c967 | 10649 | if test "$cross_compiling" = "yes"; then |
52127426 | 10650 | cat >> confdefs.h <<\EOF |
21d1c967 | 10651 | #define wxUSE_IOSTREAMH 1 |
90dd450c | 10652 | EOF |
ab9b9eab | 10653 | |
21d1c967 | 10654 | else |
52127426 JS |
10655 | |
10656 | ac_ext=C | |
10657 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7b4a847f | 10658 | ac_cpp='$CXXCPP $CPPFLAGS' |
52127426 JS |
10659 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10660 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10661 | cross_compiling=$ac_cv_prog_cxx_cross | |
579d8138 | 10662 | |
52127426 JS |
10663 | |
10664 | for ac_hdr in iostream | |
21d1c967 | 10665 | do |
52127426 JS |
10666 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10667 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
10668 | echo "configure:10669: checking for $ac_hdr" >&5 | |
10669 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10670 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10671 | else | |
10672 | cat > conftest.$ac_ext <<EOF | |
10673 | #line 10674 "configure" | |
ab9b9eab | 10674 | #include "confdefs.h" |
52127426 JS |
10675 | #include <$ac_hdr> |
10676 | EOF | |
10677 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10678 | { (eval echo configure:10679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10679 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10680 | if test -z "$ac_err"; then | |
10681 | rm -rf conftest* | |
10682 | eval "ac_cv_header_$ac_safe=yes" | |
7b4a847f | 10683 | else |
52127426 JS |
10684 | echo "$ac_err" >&5 |
10685 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 10686 | cat conftest.$ac_ext >&5 |
52127426 JS |
10687 | rm -rf conftest* |
10688 | eval "ac_cv_header_$ac_safe=no" | |
ab9b9eab | 10689 | fi |
52127426 | 10690 | rm -f conftest* |
90dd450c | 10691 | fi |
52127426 JS |
10692 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10693 | echo "$ac_t""yes" 1>&6 | |
10694 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10695 | cat >> confdefs.h <<EOF | |
10696 | #define $ac_tr_hdr 1 | |
698dcdb6 | 10697 | EOF |
52127426 JS |
10698 | |
10699 | else | |
10700 | echo "$ac_t""no" 1>&6 | |
90dd450c | 10701 | fi |
21d1c967 | 10702 | done |
10f2d63a | 10703 | |
52127426 | 10704 | |
21d1c967 GD |
10705 | if test "$ac_cv_header_iostream" = "yes" ; then |
10706 | : | |
10707 | else | |
52127426 | 10708 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
10709 | #define wxUSE_IOSTREAMH 1 |
10710 | EOF | |
788deba1 | 10711 | |
90dd450c | 10712 | fi |
ab9b9eab | 10713 | |
21d1c967 | 10714 | ac_ext=c |
52127426 | 10715 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 10716 | ac_cpp='$CPP $CPPFLAGS' |
52127426 JS |
10717 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10718 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10719 | cross_compiling=$ac_cv_prog_cc_cross | |
ab9b9eab | 10720 | |
21d1c967 | 10721 | fi |
ab9b9eab | 10722 | |
579d8138 | 10723 | |
52127426 JS |
10724 | |
10725 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
10726 | echo "configure:10727: checking if C++ compiler supports bool" >&5 | |
10727 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then | |
10728 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10729 | else | |
10730 | ||
10731 | ||
10732 | ac_ext=C | |
10733 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7b4a847f | 10734 | ac_cpp='$CXXCPP $CPPFLAGS' |
52127426 JS |
10735 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10736 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10737 | cross_compiling=$ac_cv_prog_cxx_cross | |
10738 | ||
21d1c967 | 10739 | |
52127426 JS |
10740 | cat > conftest.$ac_ext <<EOF |
10741 | #line 10742 "configure" | |
ab9b9eab | 10742 | #include "confdefs.h" |
21d1c967 | 10743 | |
52127426 JS |
10744 | |
10745 | int main() { | |
21d1c967 GD |
10746 | |
10747 | bool b = true; | |
10748 | ||
10749 | return 0; | |
52127426 JS |
10750 | |
10751 | ; return 0; } | |
10752 | EOF | |
10753 | if { (eval echo configure:10754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10754 | rm -rf conftest* | |
10755 | ||
21d1c967 | 10756 | wx_cv_cpp_bool=yes |
52127426 | 10757 | |
698dcdb6 | 10758 | else |
52127426 JS |
10759 | echo "configure: failed program was:" >&5 |
10760 | cat conftest.$ac_ext >&5 | |
10761 | rm -rf conftest* | |
10762 | ||
21d1c967 | 10763 | wx_cv_cpp_bool=no |
52127426 JS |
10764 | |
10765 | ||
698dcdb6 | 10766 | fi |
52127426 | 10767 | rm -f conftest* |
21d1c967 GD |
10768 | |
10769 | ac_ext=c | |
52127426 | 10770 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 10771 | ac_cpp='$CPP $CPPFLAGS' |
52127426 JS |
10772 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10773 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10774 | cross_compiling=$ac_cv_prog_cc_cross | |
21d1c967 | 10775 | |
52127426 | 10776 | |
698dcdb6 | 10777 | fi |
52127426 JS |
10778 | |
10779 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
21d1c967 GD |
10780 | |
10781 | if test "$wx_cv_cpp_bool" = "yes"; then | |
52127426 | 10782 | cat >> confdefs.h <<\EOF |
21d1c967 | 10783 | #define HAVE_BOOL 1 |
90dd450c | 10784 | EOF |
ab9b9eab | 10785 | |
21d1c967 GD |
10786 | fi |
10787 | ||
579d8138 | 10788 | |
52127426 JS |
10789 | |
10790 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 | |
10791 | echo "configure:10792: checking if C++ compiler supports the explicit keyword" >&5 | |
10792 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then | |
10793 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10794 | else | |
10795 | ||
10796 | ||
10797 | ac_ext=C | |
10798 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7b4a847f | 10799 | ac_cpp='$CXXCPP $CPPFLAGS' |
52127426 JS |
10800 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10801 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10802 | cross_compiling=$ac_cv_prog_cxx_cross | |
10803 | ||
986ecc86 | 10804 | |
52127426 JS |
10805 | cat > conftest.$ac_ext <<EOF |
10806 | #line 10807 "configure" | |
986ecc86 VZ |
10807 | #include "confdefs.h" |
10808 | ||
10809 | class Foo { public: explicit Foo(int) {} }; | |
52127426 JS |
10810 | |
10811 | int main() { | |
986ecc86 VZ |
10812 | |
10813 | return 0; | |
52127426 JS |
10814 | |
10815 | ; return 0; } | |
10816 | EOF | |
10817 | if { (eval echo configure:10818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10818 | rm -rf conftest* | |
10819 | ||
10820 | cat > conftest.$ac_ext <<EOF | |
10821 | #line 10822 "configure" | |
986ecc86 VZ |
10822 | #include "confdefs.h" |
10823 | ||
10824 | class Foo { public: explicit Foo(int) {} }; | |
10825 | static void TakeFoo(const Foo& foo) { } | |
52127426 JS |
10826 | |
10827 | int main() { | |
986ecc86 VZ |
10828 | |
10829 | TakeFoo(17); | |
10830 | return 0; | |
52127426 JS |
10831 | |
10832 | ; return 0; } | |
10833 | EOF | |
10834 | if { (eval echo configure:10835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10835 | rm -rf conftest* | |
986ecc86 VZ |
10836 | wx_cv_explicit=no |
10837 | else | |
52127426 JS |
10838 | echo "configure: failed program was:" >&5 |
10839 | cat conftest.$ac_ext >&5 | |
10840 | rm -rf conftest* | |
10841 | wx_cv_explicit=yes | |
10842 | ||
986ecc86 | 10843 | fi |
52127426 JS |
10844 | rm -f conftest* |
10845 | ||
986ecc86 | 10846 | else |
52127426 JS |
10847 | echo "configure: failed program was:" >&5 |
10848 | cat conftest.$ac_ext >&5 | |
10849 | rm -rf conftest* | |
10850 | wx_cv_explicit=no | |
10851 | ||
986ecc86 | 10852 | fi |
52127426 | 10853 | rm -f conftest* |
986ecc86 VZ |
10854 | |
10855 | ac_ext=c | |
52127426 | 10856 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
986ecc86 | 10857 | ac_cpp='$CPP $CPPFLAGS' |
52127426 JS |
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 | |
986ecc86 | 10861 | |
52127426 | 10862 | |
986ecc86 | 10863 | fi |
52127426 JS |
10864 | |
10865 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
986ecc86 VZ |
10866 | |
10867 | if test "$wx_cv_explicit" = "yes"; then | |
52127426 | 10868 | cat >> confdefs.h <<\EOF |
986ecc86 VZ |
10869 | #define HAVE_EXPLICIT 1 |
10870 | EOF | |
10871 | ||
10872 | fi | |
10873 | ||
52127426 JS |
10874 | |
10875 | ||
21d1c967 GD |
10876 | SEARCH_INCLUDE="\ |
10877 | /usr/local/include \ | |
10878 | \ | |
10879 | /usr/Motif-1.2/include \ | |
10880 | /usr/Motif-2.1/include \ | |
10881 | \ | |
10882 | /usr/include/Motif1.2 \ | |
10883 | /opt/xpm/include/X11 \ | |
10884 | /opt/GBxpm/include/ \ | |
10885 | /opt/GBxpm/X11/include/ \ | |
10886 | \ | |
10887 | /usr/Motif1.2/include \ | |
10888 | /usr/dt/include \ | |
10889 | /usr/openwin/include \ | |
10890 | \ | |
10891 | /usr/include/Xm \ | |
10892 | \ | |
10893 | /usr/X11R6/include \ | |
10894 | /usr/X11R6.4/include \ | |
10895 | /usr/X11R5/include \ | |
10896 | /usr/X11R4/include \ | |
10897 | \ | |
10898 | /usr/include/X11R6 \ | |
10899 | /usr/include/X11R5 \ | |
10900 | /usr/include/X11R4 \ | |
10901 | \ | |
10902 | /usr/local/X11R6/include \ | |
10903 | /usr/local/X11R5/include \ | |
10904 | /usr/local/X11R4/include \ | |
10905 | \ | |
10906 | /usr/local/include/X11R6 \ | |
10907 | /usr/local/include/X11R5 \ | |
10908 | /usr/local/include/X11R4 \ | |
10909 | \ | |
10910 | /usr/X11/include \ | |
10911 | /usr/include/X11 \ | |
10912 | /usr/local/X11/include \ | |
10913 | /usr/local/include/X11 \ | |
10914 | \ | |
10915 | /usr/X386/include \ | |
10916 | /usr/x386/include \ | |
10917 | /usr/XFree86/include/X11 \ | |
10918 | \ | |
10919 | X:/XFree86/include \ | |
10920 | X:/XFree86/include/X11 \ | |
10921 | \ | |
10922 | /usr/include/gtk \ | |
10923 | /usr/local/include/gtk \ | |
10924 | /usr/include/glib \ | |
10925 | /usr/local/include/glib \ | |
10926 | \ | |
10927 | /usr/include/qt \ | |
10928 | /usr/local/include/qt \ | |
10929 | \ | |
10930 | /usr/include/windows \ | |
10931 | /usr/include/wine \ | |
10932 | /usr/local/include/wine \ | |
10933 | \ | |
10934 | /usr/unsupported/include \ | |
10935 | /usr/athena/include \ | |
10936 | /usr/local/x11r5/include \ | |
10937 | /usr/lpp/Xamples/include \ | |
10938 | \ | |
10939 | /usr/openwin/share/include \ | |
10940 | \ | |
10941 | /usr/include" | |
10942 | ||
10943 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
10944 | ||
52127426 JS |
10945 | |
10946 | cat > confcache <<\EOF | |
21d1c967 GD |
10947 | # This file is a shell script that caches the results of configure |
10948 | # tests run on this system so they can be shared between configure | |
52127426 JS |
10949 | # scripts and configure runs. It is not useful on other systems. |
10950 | # If it contains results you don't want to keep, you may remove or edit it. | |
21d1c967 | 10951 | # |
52127426 JS |
10952 | # By default, configure uses ./config.cache as the cache file, |
10953 | # creating it if it does not exist already. You can give configure | |
10954 | # the --cache-file=FILE option to use a different cache file; that is | |
10955 | # what configure does when it calls configure scripts in | |
10956 | # subdirectories, so they share the cache. | |
10957 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
10958 | # config.status only pays attention to the cache file if you give it the | |
10959 | # --recheck option to rerun configure. | |
21d1c967 | 10960 | # |
52127426 | 10961 | EOF |
21d1c967 GD |
10962 | # The following way of writing the cache mishandles newlines in values, |
10963 | # but we know of no workaround that is simple, portable, and efficient. | |
10964 | # So, don't put newlines in cache variables' values. | |
10965 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10966 | # and sets the high bit in the cache file unless we assign to the vars. | |
52127426 JS |
10967 | (set) 2>&1 | |
10968 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10969 | *ac_space=\ *) | |
10970 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
10971 | # turns \\\\ into \\, and sed turns \\ into \). | |
10972 | sed -n \ | |
10973 | -e "s/'/'\\\\''/g" \ | |
10974 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
10975 | ;; | |
10976 | *) | |
10977 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10978 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
10979 | ;; | |
10980 | esac >> confcache | |
10981 | if cmp -s $cache_file confcache; then | |
10982 | : | |
10983 | else | |
21d1c967 | 10984 | if test -w $cache_file; then |
52127426 JS |
10985 | echo "updating cache $cache_file" |
10986 | cat confcache > $cache_file | |
21d1c967 GD |
10987 | else |
10988 | echo "not updating unwritable cache $cache_file" | |
10989 | fi | |
ab9b9eab | 10990 | fi |
21d1c967 | 10991 | rm -f confcache |
ab9b9eab | 10992 | |
7b4a847f | 10993 | |
52127426 JS |
10994 | if test "$USE_LINUX" = 1; then |
10995 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
10996 | echo "configure:10997: checking for glibc 2.1 or later" >&5 | |
10997 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then | |
10998 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10999 | else | |
11000 | ||
11001 | cat > conftest.$ac_ext <<EOF | |
11002 | #line 11003 "configure" | |
ab9b9eab | 11003 | #include "confdefs.h" |
21d1c967 | 11004 | #include <features.h> |
52127426 | 11005 | int main() { |
ab9b9eab | 11006 | |
21d1c967 GD |
11007 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
11008 | #error not glibc2.1 | |
11009 | #endif | |
52127426 JS |
11010 | |
11011 | ; return 0; } | |
11012 | EOF | |
11013 | if { (eval echo configure:11014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11014 | rm -rf conftest* | |
11015 | ||
21d1c967 | 11016 | wx_cv_lib_glibc21=yes |
52127426 | 11017 | |
698dcdb6 | 11018 | else |
52127426 JS |
11019 | echo "configure: failed program was:" >&5 |
11020 | cat conftest.$ac_ext >&5 | |
11021 | rm -rf conftest* | |
11022 | ||
21d1c967 | 11023 | wx_cv_lib_glibc21=no |
52127426 JS |
11024 | |
11025 | ||
11026 | fi | |
11027 | rm -f conftest* | |
11028 | ||
328a083c | 11029 | fi |
579d8138 | 11030 | |
52127426 | 11031 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 |
21d1c967 | 11032 | if test "$wx_cv_lib_glibc21" = "yes"; then |
52127426 | 11033 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
11034 | #define wxHAVE_GLIBC2 1 |
11035 | EOF | |
1e487827 | 11036 | |
90dd450c | 11037 | fi |
ab9b9eab VZ |
11038 | fi |
11039 | ||
5c0a20c3 VZ |
11040 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
11041 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
52127426 | 11042 | cat >> confdefs.h <<\EOF |
5c0a20c3 VZ |
11043 | #define _GNU_SOURCE 1 |
11044 | EOF | |
11045 | ||
11046 | fi | |
11047 | fi | |
11048 | ||
52127426 JS |
11049 | |
11050 | ||
21d1c967 GD |
11051 | REGEX_INCLUDE= |
11052 | if test "$wxUSE_REGEX" != "no"; then | |
52127426 | 11053 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
11054 | #define wxUSE_REGEX 1 |
11055 | EOF | |
698dcdb6 | 11056 | |
52127426 | 11057 | |
21d1c967 | 11058 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
52127426 JS |
11059 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` |
11060 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
11061 | echo "configure:11062: checking for regex.h" >&5 | |
11062 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11063 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11064 | else | |
11065 | cat > conftest.$ac_ext <<EOF | |
11066 | #line 11067 "configure" | |
21d1c967 GD |
11067 | #include "confdefs.h" |
11068 | #include <regex.h> | |
52127426 JS |
11069 | EOF |
11070 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11071 | { (eval echo configure:11072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11072 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11073 | if test -z "$ac_err"; then | |
11074 | rm -rf conftest* | |
11075 | eval "ac_cv_header_$ac_safe=yes" | |
7b4a847f | 11076 | else |
52127426 JS |
11077 | echo "$ac_err" >&5 |
11078 | echo "configure: failed program was:" >&5 | |
21d1c967 | 11079 | cat conftest.$ac_ext >&5 |
52127426 JS |
11080 | rm -rf conftest* |
11081 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 11082 | fi |
52127426 | 11083 | rm -f conftest* |
698dcdb6 | 11084 | fi |
52127426 JS |
11085 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11086 | echo "$ac_t""yes" 1>&6 | |
11087 | for ac_func in regcomp | |
21d1c967 | 11088 | do |
52127426 JS |
11089 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11090 | echo "configure:11091: checking for $ac_func" >&5 | |
11091 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
11092 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 11093 | else |
52127426 JS |
11094 | cat > conftest.$ac_ext <<EOF |
11095 | #line 11096 "configure" | |
11096 | #include "confdefs.h" | |
11097 | /* System header to define __stub macros and hopefully few prototypes, | |
11098 | which can conflict with char $ac_func(); below. */ | |
21d1c967 GD |
11099 | #include <assert.h> |
11100 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11101 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
11102 | builtin and then its argument prototype would still apply. */ |
11103 | char $ac_func(); | |
11104 | ||
11105 | int main() { | |
90dd450c | 11106 | |
21d1c967 GD |
11107 | /* The GNU C library defines this for functions which it implements |
11108 | to always fail with ENOSYS. Some functions are actually named | |
11109 | something starting with __ and the normal name is an alias. */ | |
11110 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11111 | choke me | |
11112 | #else | |
52127426 | 11113 | $ac_func(); |
21d1c967 | 11114 | #endif |
90dd450c | 11115 | |
52127426 | 11116 | ; return 0; } |
21d1c967 | 11117 | EOF |
52127426 JS |
11118 | if { (eval echo configure:11119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11119 | rm -rf conftest* | |
11120 | eval "ac_cv_func_$ac_func=yes" | |
11121 | else | |
11122 | echo "configure: failed program was:" >&5 | |
11123 | cat conftest.$ac_ext >&5 | |
11124 | rm -rf conftest* | |
11125 | eval "ac_cv_func_$ac_func=no" | |
11126 | fi | |
11127 | rm -f conftest* | |
11128 | fi | |
90dd450c | 11129 | |
52127426 JS |
11130 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11131 | echo "$ac_t""yes" 1>&6 | |
11132 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11133 | cat >> confdefs.h <<EOF | |
11134 | #define $ac_tr_func 1 | |
11135 | EOF | |
11136 | ||
11137 | else | |
11138 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 11139 | fi |
21d1c967 GD |
11140 | done |
11141 | ||
52127426 JS |
11142 | else |
11143 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11144 | fi |
11145 | ||
52127426 | 11146 | |
21d1c967 GD |
11147 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
11148 | if test "$wxUSE_REGEX" = "sys" ; then | |
52127426 | 11149 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11150 | else |
52127426 | 11151 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11152 | wxUSE_REGEX=builtin |
11153 | fi | |
11154 | else | |
11155 | wxUSE_REGEX=sys | |
11156 | fi | |
ab9b9eab | 11157 | fi |
90dd450c | 11158 | |
21d1c967 GD |
11159 | if test "$wxUSE_REGEX" = "builtin" ; then |
11160 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 11161 | fi |
21d1c967 | 11162 | fi |
90dd450c | 11163 | |
52127426 | 11164 | |
21d1c967 GD |
11165 | ZLIB_INCLUDE= |
11166 | ZLIB_LINK= | |
11167 | if test "$wxUSE_ZLIB" != "no" ; then | |
52127426 | 11168 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
11169 | #define wxUSE_ZLIB 1 |
11170 | EOF | |
11171 | ||
52127426 | 11172 | |
21d1c967 | 11173 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
52127426 JS |
11174 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
11175 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
11176 | echo "configure:11177: checking for zlib.h" >&5 | |
11177 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11178 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11179 | else | |
11180 | cat > conftest.$ac_ext <<EOF | |
11181 | #line 11182 "configure" | |
ab9b9eab | 11182 | #include "confdefs.h" |
21d1c967 | 11183 | #include <zlib.h> |
52127426 JS |
11184 | EOF |
11185 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11186 | { (eval echo configure:11187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11187 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11188 | if test -z "$ac_err"; then | |
11189 | rm -rf conftest* | |
11190 | eval "ac_cv_header_$ac_safe=yes" | |
328a083c | 11191 | else |
52127426 JS |
11192 | echo "$ac_err" >&5 |
11193 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 11194 | cat conftest.$ac_ext >&5 |
52127426 JS |
11195 | rm -rf conftest* |
11196 | eval "ac_cv_header_$ac_safe=no" | |
698dcdb6 | 11197 | fi |
52127426 | 11198 | rm -f conftest* |
ab9b9eab | 11199 | fi |
52127426 JS |
11200 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11201 | echo "$ac_t""yes" 1>&6 | |
11202 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
11203 | echo "configure:11204: checking for deflate in -lz" >&5 | |
11204 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` | |
11205 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11206 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11207 | else |
52127426 | 11208 | ac_save_LIBS="$LIBS" |
21d1c967 | 11209 | LIBS="-lz $LIBS" |
52127426 JS |
11210 | cat > conftest.$ac_ext <<EOF |
11211 | #line 11212 "configure" | |
ab9b9eab | 11212 | #include "confdefs.h" |
21d1c967 GD |
11213 | /* Override any gcc2 internal prototype to avoid an error. */ |
11214 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
11215 | builtin and then its argument prototype would still apply. */ |
11216 | char deflate(); | |
11217 | ||
11218 | int main() { | |
11219 | deflate() | |
11220 | ; return 0; } | |
11221 | EOF | |
11222 | if { (eval echo configure:11223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11223 | rm -rf conftest* | |
11224 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11225 | else | |
11226 | echo "configure: failed program was:" >&5 | |
11227 | cat conftest.$ac_ext >&5 | |
11228 | rm -rf conftest* | |
11229 | eval "ac_cv_lib_$ac_lib_var=no" | |
11230 | fi | |
11231 | rm -f conftest* | |
11232 | LIBS="$ac_save_LIBS" | |
11233 | ||
11234 | fi | |
11235 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11236 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11237 | ZLIB_LINK=" -lz" |
52127426 JS |
11238 | else |
11239 | echo "$ac_t""no" 1>&6 | |
90dd450c | 11240 | fi |
698dcdb6 | 11241 | |
52127426 JS |
11242 | else |
11243 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 11244 | fi |
698dcdb6 | 11245 | |
52127426 | 11246 | |
21d1c967 GD |
11247 | if test "x$ZLIB_LINK" = "x" ; then |
11248 | if test "$wxUSE_ZLIB" = "sys" ; then | |
52127426 | 11249 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11250 | else |
52127426 | 11251 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11252 | wxUSE_ZLIB=builtin |
11253 | fi | |
11254 | else | |
11255 | wxUSE_ZLIB=sys | |
11256 | fi | |
11257 | fi | |
11258 | ||
11259 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11260 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11261 | fi | |
ab9b9eab VZ |
11262 | fi |
11263 | ||
52127426 | 11264 | |
21d1c967 GD |
11265 | PNG_INCLUDE= |
11266 | PNG_LINK= | |
11267 | if test "$wxUSE_LIBPNG" != "no" ; then | |
52127426 | 11268 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
11269 | #define wxUSE_LIBPNG 1 |
11270 | EOF | |
90dd450c | 11271 | |
52127426 | 11272 | |
21d1c967 | 11273 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
52127426 | 11274 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11275 | wxUSE_LIBPNG=sys |
11276 | fi | |
90dd450c | 11277 | |
21d1c967 | 11278 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
52127426 | 11279 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
21d1c967 GD |
11280 | wxUSE_LIBPNG=builtin |
11281 | fi | |
11282 | ||
11283 | if test "$wxUSE_MGL" != 1 ; then | |
11284 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
52127426 JS |
11285 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
11286 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
11287 | echo "configure:11288: checking for png.h" >&5 | |
11288 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11289 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11290 | else | |
11291 | cat > conftest.$ac_ext <<EOF | |
11292 | #line 11293 "configure" | |
21d1c967 GD |
11293 | #include "confdefs.h" |
11294 | #include <png.h> | |
52127426 JS |
11295 | EOF |
11296 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11297 | { (eval echo configure:11298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11298 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11299 | if test -z "$ac_err"; then | |
11300 | rm -rf conftest* | |
11301 | eval "ac_cv_header_$ac_safe=yes" | |
90dd450c | 11302 | else |
52127426 JS |
11303 | echo "$ac_err" >&5 |
11304 | echo "configure: failed program was:" >&5 | |
90dd450c | 11305 | cat conftest.$ac_ext >&5 |
52127426 JS |
11306 | rm -rf conftest* |
11307 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 11308 | fi |
52127426 | 11309 | rm -f conftest* |
90dd450c | 11310 | fi |
52127426 JS |
11311 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11312 | echo "$ac_t""yes" 1>&6 | |
11313 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
11314 | echo "configure:11315: checking for png_check_sig in -lpng" >&5 | |
11315 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` | |
11316 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11317 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11318 | else |
52127426 | 11319 | ac_save_LIBS="$LIBS" |
21d1c967 | 11320 | LIBS="-lpng -lz -lm $LIBS" |
52127426 JS |
11321 | cat > conftest.$ac_ext <<EOF |
11322 | #line 11323 "configure" | |
90dd450c | 11323 | #include "confdefs.h" |
21d1c967 GD |
11324 | /* Override any gcc2 internal prototype to avoid an error. */ |
11325 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
11326 | builtin and then its argument prototype would still apply. */ |
11327 | char png_check_sig(); | |
11328 | ||
11329 | int main() { | |
11330 | png_check_sig() | |
11331 | ; return 0; } | |
11332 | EOF | |
11333 | if { (eval echo configure:11334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11334 | rm -rf conftest* | |
11335 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11336 | else | |
11337 | echo "configure: failed program was:" >&5 | |
11338 | cat conftest.$ac_ext >&5 | |
11339 | rm -rf conftest* | |
11340 | eval "ac_cv_lib_$ac_lib_var=no" | |
11341 | fi | |
11342 | rm -f conftest* | |
11343 | LIBS="$ac_save_LIBS" | |
11344 | ||
11345 | fi | |
11346 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11347 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11348 | PNG_LINK=" -lpng" |
52127426 JS |
11349 | else |
11350 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
11351 | fi |
11352 | ||
52127426 JS |
11353 | |
11354 | else | |
11355 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
11356 | fi |
11357 | ||
52127426 | 11358 | |
21d1c967 GD |
11359 | if test "x$PNG_LINK" = "x" ; then |
11360 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
52127426 | 11361 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11362 | else |
52127426 | 11363 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11364 | wxUSE_LIBPNG=builtin |
11365 | fi | |
11366 | else | |
11367 | wxUSE_LIBPNG=yes | |
11368 | fi | |
11369 | fi | |
11370 | fi | |
90dd450c | 11371 | |
21d1c967 GD |
11372 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
11373 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11374 | fi | |
90dd450c | 11375 | |
21d1c967 | 11376 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
11377 | fi |
11378 | ||
52127426 | 11379 | |
21d1c967 GD |
11380 | JPEG_INCLUDE= |
11381 | JPEG_LINK= | |
11382 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
52127426 | 11383 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
11384 | #define wxUSE_LIBJPEG 1 |
11385 | EOF | |
90dd450c | 11386 | |
52127426 | 11387 | |
21d1c967 | 11388 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
52127426 | 11389 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11390 | wxUSE_LIBJPEG=sys |
11391 | fi | |
90dd450c | 11392 | |
21d1c967 GD |
11393 | if test "$wxUSE_MGL" != 1 ; then |
11394 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
52127426 JS |
11395 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
11396 | echo "configure:11397: checking for jpeglib.h" >&5 | |
11397 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then | |
11398 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11399 | else |
52127426 JS |
11400 | cat > conftest.$ac_ext <<EOF |
11401 | #line 11402 "configure" | |
21d1c967 | 11402 | #include "confdefs.h" |
90dd450c | 11403 | |
21d1c967 GD |
11404 | #undef HAVE_STDLIB_H |
11405 | #include <stdio.h> | |
11406 | #include <jpeglib.h> | |
52127426 JS |
11407 | |
11408 | int main() { | |
90dd450c | 11409 | |
52127426 JS |
11410 | |
11411 | ; return 0; } | |
11412 | EOF | |
11413 | if { (eval echo configure:11414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11414 | rm -rf conftest* | |
21d1c967 | 11415 | ac_cv_header_jpeglib_h=yes |
90dd450c | 11416 | else |
52127426 JS |
11417 | echo "configure: failed program was:" >&5 |
11418 | cat conftest.$ac_ext >&5 | |
11419 | rm -rf conftest* | |
11420 | ac_cv_header_jpeglib_h=no | |
11421 | ||
90dd450c | 11422 | fi |
52127426 JS |
11423 | rm -f conftest* |
11424 | ||
90dd450c VZ |
11425 | fi |
11426 | ||
52127426 | 11427 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
90dd450c | 11428 | |
21d1c967 | 11429 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
52127426 JS |
11430 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 |
11431 | echo "configure:11432: checking for jpeg_read_header in -ljpeg" >&5 | |
11432 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` | |
11433 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11434 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11435 | else |
52127426 | 11436 | ac_save_LIBS="$LIBS" |
21d1c967 | 11437 | LIBS="-ljpeg $LIBS" |
52127426 JS |
11438 | cat > conftest.$ac_ext <<EOF |
11439 | #line 11440 "configure" | |
21d1c967 GD |
11440 | #include "confdefs.h" |
11441 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11442 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
11443 | builtin and then its argument prototype would still apply. */ |
11444 | char jpeg_read_header(); | |
11445 | ||
11446 | int main() { | |
11447 | jpeg_read_header() | |
11448 | ; return 0; } | |
11449 | EOF | |
11450 | if { (eval echo configure:11451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11451 | rm -rf conftest* | |
11452 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11453 | else | |
11454 | echo "configure: failed program was:" >&5 | |
11455 | cat conftest.$ac_ext >&5 | |
11456 | rm -rf conftest* | |
11457 | eval "ac_cv_lib_$ac_lib_var=no" | |
11458 | fi | |
11459 | rm -f conftest* | |
11460 | LIBS="$ac_save_LIBS" | |
11461 | ||
11462 | fi | |
11463 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11464 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11465 | JPEG_LINK=" -ljpeg" |
52127426 JS |
11466 | else |
11467 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
11468 | fi |
11469 | ||
21d1c967 | 11470 | fi |
90dd450c | 11471 | |
21d1c967 GD |
11472 | if test "x$JPEG_LINK" = "x" ; then |
11473 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
52127426 | 11474 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11475 | else |
52127426 | 11476 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11477 | wxUSE_LIBJPEG=builtin |
11478 | fi | |
11479 | else | |
11480 | wxUSE_LIBJPEG=sys | |
11481 | fi | |
11482 | fi | |
11483 | fi | |
90dd450c | 11484 | |
21d1c967 GD |
11485 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
11486 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
11487 | fi | |
11488 | fi | |
90dd450c | 11489 | |
52127426 | 11490 | |
21d1c967 GD |
11491 | TIFF_INCLUDE= |
11492 | TIFF_LINK= | |
11493 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
52127426 | 11494 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
11495 | #define wxUSE_LIBTIFF 1 |
11496 | EOF | |
11497 | ||
52127426 | 11498 | |
21d1c967 | 11499 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
52127426 JS |
11500 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
11501 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
11502 | echo "configure:11503: checking for tiffio.h" >&5 | |
11503 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11504 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11505 | else | |
11506 | cat > conftest.$ac_ext <<EOF | |
11507 | #line 11508 "configure" | |
21d1c967 GD |
11508 | #include "confdefs.h" |
11509 | #include <tiffio.h> | |
52127426 JS |
11510 | EOF |
11511 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11512 | { (eval echo configure:11513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11513 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11514 | if test -z "$ac_err"; then | |
11515 | rm -rf conftest* | |
11516 | eval "ac_cv_header_$ac_safe=yes" | |
21d1c967 | 11517 | else |
52127426 JS |
11518 | echo "$ac_err" >&5 |
11519 | echo "configure: failed program was:" >&5 | |
21d1c967 | 11520 | cat conftest.$ac_ext >&5 |
52127426 JS |
11521 | rm -rf conftest* |
11522 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 11523 | fi |
52127426 | 11524 | rm -f conftest* |
21d1c967 | 11525 | fi |
52127426 JS |
11526 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11527 | echo "$ac_t""yes" 1>&6 | |
11528 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
11529 | echo "configure:11530: checking for TIFFError in -ltiff" >&5 | |
11530 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` | |
11531 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11532 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 11533 | else |
52127426 | 11534 | ac_save_LIBS="$LIBS" |
21d1c967 | 11535 | LIBS="-ltiff -lm $LIBS" |
52127426 JS |
11536 | cat > conftest.$ac_ext <<EOF |
11537 | #line 11538 "configure" | |
ab9b9eab VZ |
11538 | #include "confdefs.h" |
11539 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11540 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
11541 | builtin and then its argument prototype would still apply. */ |
11542 | char TIFFError(); | |
11543 | ||
11544 | int main() { | |
11545 | TIFFError() | |
11546 | ; return 0; } | |
11547 | EOF | |
11548 | if { (eval echo configure:11549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11549 | rm -rf conftest* | |
11550 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11551 | else | |
11552 | echo "configure: failed program was:" >&5 | |
11553 | cat conftest.$ac_ext >&5 | |
11554 | rm -rf conftest* | |
11555 | eval "ac_cv_lib_$ac_lib_var=no" | |
11556 | fi | |
11557 | rm -f conftest* | |
11558 | LIBS="$ac_save_LIBS" | |
11559 | ||
11560 | fi | |
11561 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11562 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11563 | TIFF_LINK=" -ltiff" |
52127426 JS |
11564 | else |
11565 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11566 | fi |
11567 | ||
52127426 JS |
11568 | |
11569 | else | |
11570 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 11571 | fi |
cd6d6d5b | 11572 | |
52127426 | 11573 | |
21d1c967 GD |
11574 | if test "x$TIFF_LINK" = "x" ; then |
11575 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
52127426 | 11576 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } |
90dd450c | 11577 | else |
52127426 | 11578 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
21d1c967 | 11579 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 11580 | fi |
d8356fa3 | 11581 | else |
21d1c967 | 11582 | wxUSE_LIBTIFF=sys |
d8356fa3 | 11583 | fi |
21d1c967 | 11584 | fi |
d8356fa3 | 11585 | |
21d1c967 GD |
11586 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
11587 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 11588 | fi |
21d1c967 | 11589 | fi |
10f2d63a | 11590 | |
52127426 | 11591 | |
21d1c967 | 11592 | AFMINSTALL= |
90dd450c | 11593 | |
21d1c967 GD |
11594 | TOOLKIT= |
11595 | TOOLKIT_INCLUDE= | |
11596 | WIDGET_SET= | |
11597 | ||
11598 | if test "$USE_WIN32" = 1 ; then | |
52127426 | 11599 | for ac_hdr in w32api.h |
21d1c967 | 11600 | do |
52127426 JS |
11601 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11602 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
11603 | echo "configure:11604: checking for $ac_hdr" >&5 | |
11604 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11605 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11606 | else | |
11607 | cat > conftest.$ac_ext <<EOF | |
11608 | #line 11609 "configure" | |
f79bd02d | 11609 | #include "confdefs.h" |
52127426 JS |
11610 | #include <$ac_hdr> |
11611 | EOF | |
11612 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11613 | { (eval echo configure:11614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11614 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11615 | if test -z "$ac_err"; then | |
11616 | rm -rf conftest* | |
11617 | eval "ac_cv_header_$ac_safe=yes" | |
f79bd02d | 11618 | else |
52127426 JS |
11619 | echo "$ac_err" >&5 |
11620 | echo "configure: failed program was:" >&5 | |
f79bd02d | 11621 | cat conftest.$ac_ext >&5 |
52127426 JS |
11622 | rm -rf conftest* |
11623 | eval "ac_cv_header_$ac_safe=no" | |
f79bd02d | 11624 | fi |
52127426 | 11625 | rm -f conftest* |
21d1c967 | 11626 | fi |
52127426 JS |
11627 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11628 | echo "$ac_t""yes" 1>&6 | |
11629 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11630 | cat >> confdefs.h <<EOF | |
11631 | #define $ac_tr_hdr 1 | |
21d1c967 | 11632 | EOF |
52127426 JS |
11633 | |
11634 | else | |
11635 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
11636 | fi |
11637 | done | |
f79bd02d | 11638 | |
52127426 JS |
11639 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
11640 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
11641 | echo "configure:11642: checking for windows.h" >&5 | |
11642 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11643 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11644 | else |
52127426 JS |
11645 | cat > conftest.$ac_ext <<EOF |
11646 | #line 11647 "configure" | |
90dd450c | 11647 | #include "confdefs.h" |
21d1c967 | 11648 | #include <windows.h> |
52127426 JS |
11649 | EOF |
11650 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11651 | { (eval echo configure:11652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11652 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11653 | if test -z "$ac_err"; then | |
11654 | rm -rf conftest* | |
11655 | eval "ac_cv_header_$ac_safe=yes" | |
90dd450c | 11656 | else |
52127426 JS |
11657 | echo "$ac_err" >&5 |
11658 | echo "configure: failed program was:" >&5 | |
90dd450c | 11659 | cat conftest.$ac_ext >&5 |
52127426 JS |
11660 | rm -rf conftest* |
11661 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 11662 | fi |
52127426 | 11663 | rm -f conftest* |
90dd450c | 11664 | fi |
52127426 JS |
11665 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11666 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11667 | : |
90dd450c | 11668 | else |
52127426 | 11669 | echo "$ac_t""no" 1>&6 |
21d1c967 | 11670 | |
52127426 JS |
11671 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
11672 | ||
7b4a847f | 11673 | fi |
328a083c | 11674 | |
7b4a847f | 11675 | |
52127426 JS |
11676 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
11677 | echo "configure:11678: checking if w32api has good enough MSIE support" >&5 | |
11678 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then | |
11679 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11680 | else | |
11681 | ||
11682 | cat > conftest.$ac_ext <<EOF | |
11683 | #line 11684 "configure" | |
f79bd02d | 11684 | #include "confdefs.h" |
21d1c967 | 11685 | #include <w32api.h> |
52127426 | 11686 | int main() { |
f79bd02d | 11687 | |
21d1c967 GD |
11688 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
11689 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
11690 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
11691 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
11692 | ||
11693 | #if !wxCHECK_W32API_VERSION(1,1) | |
11694 | #error You need w32api 1.1 or newer | |
11695 | #endif | |
52127426 JS |
11696 | |
11697 | ; return 0; } | |
11698 | EOF | |
11699 | if { (eval echo configure:11700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11700 | rm -rf conftest* | |
11701 | ||
21d1c967 | 11702 | wx_cv_w32api_win32_ie=yes |
52127426 | 11703 | |
f79bd02d | 11704 | else |
52127426 JS |
11705 | echo "configure: failed program was:" >&5 |
11706 | cat conftest.$ac_ext >&5 | |
11707 | rm -rf conftest* | |
11708 | ||
21d1c967 | 11709 | wx_cv_w32api_win32_ie=no |
52127426 | 11710 | |
328a083c | 11711 | fi |
52127426 JS |
11712 | rm -f conftest* |
11713 | ||
7b4a847f | 11714 | fi |
52127426 JS |
11715 | |
11716 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 | |
21d1c967 GD |
11717 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then |
11718 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
11719 | fi | |
f79bd02d | 11720 | |
21d1c967 GD |
11721 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
11722 | ||
11723 | case "${host}" in | |
11724 | *-*-cygwin* ) | |
11725 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
11726 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 11727 | esac |
f79bd02d | 11728 | |
21d1c967 GD |
11729 | if test "$wxUSE_ODBC" = "yes" ; then |
11730 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
11731 | fi | |
f79bd02d | 11732 | |
21d1c967 GD |
11733 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
11734 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
f79bd02d | 11735 | fi |
f79bd02d | 11736 | |
21d1c967 GD |
11737 | if test "$wxUSE_GUI" = "yes"; then |
11738 | USE_GUI=1 | |
f79bd02d | 11739 | |
21d1c967 | 11740 | GUI_TK_LIBRARY= |
f79bd02d | 11741 | |
21d1c967 GD |
11742 | WXGTK12= |
11743 | WXGTK127= | |
11744 | WXGTK20= | |
f79bd02d | 11745 | |
21d1c967 GD |
11746 | if test "$wxUSE_MSW" = 1 ; then |
11747 | TOOLKIT=MSW | |
11748 | GUIDIST=MSW_DIST | |
f79bd02d | 11749 | |
21d1c967 GD |
11750 | case "${host}" in |
11751 | *-*-mingw32* ) | |
11752 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
11753 | esac | |
f79bd02d JS |
11754 | fi |
11755 | ||
21d1c967 | 11756 | if test "$wxUSE_GTK" = 1; then |
52127426 JS |
11757 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
11758 | echo "configure:11759: checking for GTK+ version" >&5 | |
21d1c967 GD |
11759 | |
11760 | gtk_version_cached=1 | |
52127426 JS |
11761 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then |
11762 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f79bd02d | 11763 | else |
52127426 | 11764 | |
21d1c967 | 11765 | gtk_version_cached=0 |
52127426 | 11766 | echo "$ac_t""" 1>&6 |
f79bd02d | 11767 | |
21d1c967 GD |
11768 | GTK_MODULES= |
11769 | if test "$wxUSE_THREADS" = "yes"; then | |
11770 | GTK_MODULES=gthread | |
11771 | fi | |
f79bd02d | 11772 | |
21d1c967 GD |
11773 | wx_cv_lib_gtk= |
11774 | if test "x$wxUSE_GTK2" = "xyes"; then | |
11775 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
11776 | if test "${enable_gtktest+set}" = set; then | |
11777 | enableval="$enable_gtktest" | |
52127426 | 11778 | : |
f79bd02d | 11779 | else |
21d1c967 | 11780 | enable_gtktest=yes |
52127426 JS |
11781 | fi |
11782 | ||
f79bd02d | 11783 | |
21d1c967 GD |
11784 | pkg_config_args=gtk+-2.0 |
11785 | for module in . $GTK_MODULES | |
11786 | do | |
11787 | case "$module" in | |
52127426 | 11788 | gthread) |
21d1c967 GD |
11789 | pkg_config_args="$pkg_config_args gthread-2.0" |
11790 | ;; | |
11791 | esac | |
11792 | done | |
11793 | ||
11794 | no_gtk="" | |
f79bd02d | 11795 | |
21d1c967 GD |
11796 | # Extract the first word of "pkg-config", so it can be a program name with args. |
11797 | set dummy pkg-config; ac_word=$2 | |
52127426 JS |
11798 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
11799 | echo "configure:11800: checking for $ac_word" >&5 | |
11800 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then | |
11801 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11802 | else |
52127426 JS |
11803 | case "$PKG_CONFIG" in |
11804 | /*) | |
21d1c967 GD |
11805 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
11806 | ;; | |
52127426 JS |
11807 | ?:/*) |
11808 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
11809 | ;; | |
21d1c967 | 11810 | *) |
52127426 JS |
11811 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
11812 | ac_dummy="$PATH" | |
11813 | for ac_dir in $ac_dummy; do | |
11814 | test -z "$ac_dir" && ac_dir=. | |
11815 | if test -f $ac_dir/$ac_word; then | |
11816 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
11817 | break | |
11818 | fi | |
11819 | done | |
11820 | IFS="$ac_save_ifs" | |
21d1c967 GD |
11821 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
11822 | ;; | |
11823 | esac | |
f79bd02d | 11824 | fi |
52127426 | 11825 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
21d1c967 | 11826 | if test -n "$PKG_CONFIG"; then |
52127426 | 11827 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f79bd02d | 11828 | else |
52127426 | 11829 | echo "$ac_t""no" 1>&6 |
f79bd02d JS |
11830 | fi |
11831 | ||
52127426 | 11832 | |
21d1c967 GD |
11833 | if test x$PKG_CONFIG != xno ; then |
11834 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
11835 | : | |
11836 | else | |
11837 | echo *** pkg-config too old; version 0.7 or better required. | |
11838 | no_gtk=yes | |
11839 | PKG_CONFIG=no | |
11840 | fi | |
11841 | else | |
11842 | no_gtk=yes | |
11843 | fi | |
f79bd02d | 11844 | |
21d1c967 | 11845 | min_gtk_version=2.0.0 |
52127426 JS |
11846 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 |
11847 | echo "configure:11848: checking for GTK+ - version >= $min_gtk_version" >&5 | |
f79bd02d | 11848 | |
21d1c967 GD |
11849 | if test x$PKG_CONFIG != xno ; then |
11850 | ## don't try to run the test against uninstalled libtool libs | |
11851 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
11852 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
11853 | enable_gtktest=no | |
11854 | fi | |
f79bd02d | 11855 | |
21d1c967 GD |
11856 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
11857 | : | |
11858 | else | |
11859 | no_gtk=yes | |
11860 | fi | |
11861 | fi | |
f79bd02d | 11862 | |
21d1c967 GD |
11863 | if test x"$no_gtk" = x ; then |
11864 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
11865 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
11866 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11867 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
11868 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11869 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
11870 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11871 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
11872 | if test "x$enable_gtktest" = "xyes" ; then | |
11873 | ac_save_CFLAGS="$CFLAGS" | |
11874 | ac_save_LIBS="$LIBS" | |
11875 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11876 | LIBS="$GTK_LIBS $LIBS" | |
11877 | rm -f conf.gtktest | |
11878 | if test "$cross_compiling" = yes; then | |
11879 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 11880 | else |
52127426 JS |
11881 | cat > conftest.$ac_ext <<EOF |
11882 | #line 11883 "configure" | |
f79bd02d | 11883 | #include "confdefs.h" |
f79bd02d | 11884 | |
21d1c967 GD |
11885 | #include <gtk/gtk.h> |
11886 | #include <stdio.h> | |
11887 | #include <stdlib.h> | |
f79bd02d | 11888 | |
52127426 | 11889 | int |
21d1c967 GD |
11890 | main () |
11891 | { | |
11892 | int major, minor, micro; | |
11893 | char *tmp_version; | |
f79bd02d | 11894 | |
21d1c967 | 11895 | system ("touch conf.gtktest"); |
f79bd02d | 11896 | |
21d1c967 GD |
11897 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
11898 | tmp_version = g_strdup("$min_gtk_version"); | |
11899 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
11900 | printf("%s, bad version string\n", "$min_gtk_version"); | |
11901 | exit(1); | |
11902 | } | |
f79bd02d | 11903 | |
21d1c967 GD |
11904 | if ((gtk_major_version != $gtk_config_major_version) || |
11905 | (gtk_minor_version != $gtk_config_minor_version) || | |
11906 | (gtk_micro_version != $gtk_config_micro_version)) | |
11907 | { | |
52127426 | 11908 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
11909 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
11910 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11911 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
11912 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
11913 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
11914 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
11915 | printf("*** required on your system.\n"); | |
11916 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
11917 | printf("*** to point to the correct configuration files\n"); | |
52127426 | 11918 | } |
21d1c967 GD |
11919 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
11920 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
11921 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
11922 | { | |
11923 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
11924 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
11925 | printf("*** library (version %d.%d.%d)\n", | |
11926 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11927 | } | |
11928 | else | |
11929 | { | |
11930 | if ((gtk_major_version > major) || | |
11931 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
11932 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
11933 | { | |
11934 | return 0; | |
11935 | } | |
11936 | else | |
11937 | { | |
11938 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
11939 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11940 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
11941 | major, minor, micro); | |
11942 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
11943 | printf("***\n"); | |
11944 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
11945 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
11946 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
11947 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
11948 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
11949 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
11950 | printf("*** so that the correct libraries are found at run-time))\n"); | |
11951 | } | |
11952 | } | |
11953 | return 1; | |
11954 | } | |
f79bd02d | 11955 | |
52127426 JS |
11956 | EOF |
11957 | if { (eval echo configure:11958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
11958 | then | |
21d1c967 | 11959 | : |
f79bd02d | 11960 | else |
52127426 JS |
11961 | echo "configure: failed program was:" >&5 |
11962 | cat conftest.$ac_ext >&5 | |
11963 | rm -fr conftest* | |
11964 | no_gtk=yes | |
f79bd02d | 11965 | fi |
52127426 | 11966 | rm -fr conftest* |
f79bd02d | 11967 | fi |
52127426 | 11968 | |
21d1c967 GD |
11969 | CFLAGS="$ac_save_CFLAGS" |
11970 | LIBS="$ac_save_LIBS" | |
11971 | fi | |
11972 | fi | |
11973 | if test "x$no_gtk" = x ; then | |
52127426 JS |
11974 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
11975 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 11976 | else |
52127426 | 11977 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
11978 | if test "$PKG_CONFIG" = "no" ; then |
11979 | echo "*** A new enough version of pkg-config was not found." | |
11980 | echo "*** See http://pkgconfig.sourceforge.net" | |
11981 | else | |
11982 | if test -f conf.gtktest ; then | |
11983 | : | |
11984 | else | |
11985 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
11986 | ac_save_CFLAGS="$CFLAGS" |
11987 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
11988 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
11989 | LIBS="$LIBS $GTK_LIBS" | |
52127426 JS |
11990 | cat > conftest.$ac_ext <<EOF |
11991 | #line 11992 "configure" | |
f79bd02d | 11992 | #include "confdefs.h" |
21d1c967 GD |
11993 | |
11994 | #include <gtk/gtk.h> | |
11995 | #include <stdio.h> | |
f79bd02d | 11996 | |
52127426 JS |
11997 | int main() { |
11998 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
11999 | ; return 0; } | |
12000 | EOF | |
12001 | if { (eval echo configure:12002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12002 | rm -rf conftest* | |
21d1c967 GD |
12003 | echo "*** The test program compiled, but did not run. This usually means" |
12004 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
12005 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
12006 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12007 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12008 | echo "*** is required on your system" | |
12009 | echo "***" | |
12010 | echo "*** If you have an old version installed, it is best to remove it, although" | |
52127426 | 12011 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 12012 | else |
52127426 JS |
12013 | echo "configure: failed program was:" >&5 |
12014 | cat conftest.$ac_ext >&5 | |
12015 | rm -rf conftest* | |
12016 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 12017 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 12018 | fi |
52127426 | 12019 | rm -f conftest* |
21d1c967 GD |
12020 | CFLAGS="$ac_save_CFLAGS" |
12021 | LIBS="$ac_save_LIBS" | |
12022 | fi | |
12023 | fi | |
12024 | GTK_CFLAGS="" | |
12025 | GTK_LIBS="" | |
12026 | : | |
12027 | fi | |
52127426 JS |
12028 | |
12029 | ||
21d1c967 | 12030 | rm -f conf.gtktest |
f79bd02d | 12031 | |
21d1c967 | 12032 | fi |
f79bd02d | 12033 | |
21d1c967 | 12034 | if test -z "$wx_cv_lib_gtk"; then |
52127426 | 12035 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12036 | if test "${with_gtk_prefix+set}" = set; then |
12037 | withval="$with_gtk_prefix" | |
12038 | gtk_config_prefix="$withval" | |
12039 | else | |
12040 | gtk_config_prefix="" | |
52127426 | 12041 | fi |
f79bd02d | 12042 | |
21d1c967 GD |
12043 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12044 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12045 | withval="$with_gtk_exec_prefix" | |
12046 | gtk_config_exec_prefix="$withval" | |
12047 | else | |
12048 | gtk_config_exec_prefix="" | |
52127426 JS |
12049 | fi |
12050 | ||
21d1c967 GD |
12051 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12052 | if test "${enable_gtktest+set}" = set; then | |
12053 | enableval="$enable_gtktest" | |
52127426 | 12054 | : |
21d1c967 GD |
12055 | else |
12056 | enable_gtktest=yes | |
52127426 JS |
12057 | fi |
12058 | ||
21d1c967 GD |
12059 | |
12060 | for module in . $GTK_MODULES | |
12061 | do | |
12062 | case "$module" in | |
52127426 | 12063 | gthread) |
21d1c967 GD |
12064 | gtk_config_args="$gtk_config_args gthread" |
12065 | ;; | |
12066 | esac | |
12067 | done | |
12068 | ||
12069 | if test x$gtk_config_exec_prefix != x ; then | |
12070 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12071 | if test x${GTK_CONFIG+set} != xset ; then | |
12072 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12073 | fi | |
12074 | fi | |
12075 | if test x$gtk_config_prefix != x ; then | |
12076 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12077 | if test x${GTK_CONFIG+set} != xset ; then | |
12078 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12079 | fi | |
12080 | fi | |
12081 | ||
12082 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12083 | set dummy gtk-config; ac_word=$2 | |
52127426 JS |
12084 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
12085 | echo "configure:12086: checking for $ac_word" >&5 | |
12086 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then | |
12087 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12088 | else |
52127426 JS |
12089 | case "$GTK_CONFIG" in |
12090 | /*) | |
21d1c967 GD |
12091 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12092 | ;; | |
52127426 JS |
12093 | ?:/*) |
12094 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12095 | ;; | |
21d1c967 | 12096 | *) |
52127426 JS |
12097 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12098 | ac_dummy="$PATH" | |
12099 | for ac_dir in $ac_dummy; do | |
12100 | test -z "$ac_dir" && ac_dir=. | |
12101 | if test -f $ac_dir/$ac_word; then | |
12102 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12103 | break | |
12104 | fi | |
12105 | done | |
12106 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12107 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12108 | ;; | |
12109 | esac | |
12110 | fi | |
52127426 | 12111 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12112 | if test -n "$GTK_CONFIG"; then |
52127426 | 12113 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12114 | else |
52127426 | 12115 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12116 | fi |
12117 | ||
12118 | min_gtk_version=1.2.7 | |
52127426 JS |
12119 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
12120 | echo "configure:12121: checking for GTK - version >= $min_gtk_version" >&5 | |
21d1c967 GD |
12121 | no_gtk="" |
12122 | if test "$GTK_CONFIG" = "no" ; then | |
12123 | no_gtk=yes | |
12124 | else | |
12125 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12126 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12127 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12128 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12129 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12130 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12131 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12132 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12133 | if test "x$enable_gtktest" = "xyes" ; then | |
12134 | ac_save_CFLAGS="$CFLAGS" | |
12135 | ac_save_LIBS="$LIBS" | |
12136 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12137 | LIBS="$GTK_LIBS $LIBS" | |
12138 | rm -f conf.gtktest | |
12139 | if test "$cross_compiling" = yes; then | |
12140 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12141 | else |
52127426 JS |
12142 | cat > conftest.$ac_ext <<EOF |
12143 | #line 12144 "configure" | |
f79bd02d JS |
12144 | #include "confdefs.h" |
12145 | ||
21d1c967 GD |
12146 | #include <gtk/gtk.h> |
12147 | #include <stdio.h> | |
12148 | #include <stdlib.h> | |
f79bd02d | 12149 | |
52127426 | 12150 | int |
21d1c967 GD |
12151 | main () |
12152 | { | |
12153 | int major, minor, micro; | |
12154 | char *tmp_version; | |
12155 | ||
12156 | system ("touch conf.gtktest"); | |
12157 | ||
12158 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12159 | tmp_version = g_strdup("$min_gtk_version"); | |
12160 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12161 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12162 | exit(1); | |
12163 | } | |
90dd450c | 12164 | |
21d1c967 GD |
12165 | if ((gtk_major_version != $gtk_config_major_version) || |
12166 | (gtk_minor_version != $gtk_config_minor_version) || | |
12167 | (gtk_micro_version != $gtk_config_micro_version)) | |
12168 | { | |
52127426 | 12169 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12170 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12171 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12172 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12173 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12174 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12175 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12176 | printf("*** required on your system.\n"); | |
12177 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12178 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12179 | printf("*** before re-running configure\n"); | |
52127426 | 12180 | } |
21d1c967 GD |
12181 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12182 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12183 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12184 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12185 | { | |
12186 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12187 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12188 | printf("*** library (version %d.%d.%d)\n", | |
12189 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12190 | } | |
12191 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12192 | else | |
12193 | { | |
12194 | if ((gtk_major_version > major) || | |
12195 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12196 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12197 | { | |
12198 | return 0; | |
12199 | } | |
12200 | else | |
12201 | { | |
12202 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12203 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12204 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12205 | major, minor, micro); | |
12206 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12207 | printf("***\n"); | |
12208 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12209 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12210 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12211 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12212 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12213 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12214 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12215 | } | |
12216 | } | |
12217 | return 1; | |
12218 | } | |
12219 | ||
52127426 JS |
12220 | EOF |
12221 | if { (eval echo configure:12222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
12222 | then | |
21d1c967 GD |
12223 | : |
12224 | else | |
52127426 JS |
12225 | echo "configure: failed program was:" >&5 |
12226 | cat conftest.$ac_ext >&5 | |
12227 | rm -fr conftest* | |
12228 | no_gtk=yes | |
21d1c967 | 12229 | fi |
52127426 | 12230 | rm -fr conftest* |
21d1c967 | 12231 | fi |
52127426 | 12232 | |
21d1c967 GD |
12233 | CFLAGS="$ac_save_CFLAGS" |
12234 | LIBS="$ac_save_LIBS" | |
12235 | fi | |
12236 | fi | |
12237 | if test "x$no_gtk" = x ; then | |
52127426 JS |
12238 | echo "$ac_t""yes" 1>&6 |
12239 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 12240 | else |
52127426 | 12241 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12242 | if test "$GTK_CONFIG" = "no" ; then |
12243 | echo "*** The gtk-config script installed by GTK could not be found" | |
12244 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12245 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12246 | echo "*** full path to gtk-config." | |
12247 | else | |
12248 | if test -f conf.gtktest ; then | |
12249 | : | |
12250 | else | |
12251 | echo "*** Could not run GTK test program, checking why..." | |
12252 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12253 | LIBS="$LIBS $GTK_LIBS" | |
52127426 JS |
12254 | cat > conftest.$ac_ext <<EOF |
12255 | #line 12256 "configure" | |
21d1c967 GD |
12256 | #include "confdefs.h" |
12257 | ||
12258 | #include <gtk/gtk.h> | |
12259 | #include <stdio.h> | |
12260 | ||
52127426 JS |
12261 | int main() { |
12262 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12263 | ; return 0; } | |
12264 | EOF | |
12265 | if { (eval echo configure:12266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12266 | rm -rf conftest* | |
21d1c967 GD |
12267 | echo "*** The test program compiled, but did not run. This usually means" |
12268 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12269 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12270 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12271 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12272 | echo "*** is required on your system" | |
12273 | echo "***" | |
12274 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12275 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12276 | echo "***" | |
12277 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12278 | echo "*** came with the system with the command" | |
12279 | echo "***" | |
52127426 | 12280 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 12281 | else |
52127426 JS |
12282 | echo "configure: failed program was:" >&5 |
12283 | cat conftest.$ac_ext >&5 | |
12284 | rm -rf conftest* | |
12285 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
12286 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
12287 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
52127426 | 12288 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 12289 | fi |
52127426 | 12290 | rm -f conftest* |
21d1c967 GD |
12291 | CFLAGS="$ac_save_CFLAGS" |
12292 | LIBS="$ac_save_LIBS" | |
12293 | fi | |
12294 | fi | |
12295 | GTK_CFLAGS="" | |
12296 | GTK_LIBS="" | |
12297 | : | |
12298 | fi | |
52127426 JS |
12299 | |
12300 | ||
21d1c967 GD |
12301 | rm -f conf.gtktest |
12302 | ||
12303 | fi | |
12304 | ||
12305 | if test -z "$wx_cv_lib_gtk"; then | |
52127426 | 12306 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12307 | if test "${with_gtk_prefix+set}" = set; then |
12308 | withval="$with_gtk_prefix" | |
12309 | gtk_config_prefix="$withval" | |
12310 | else | |
12311 | gtk_config_prefix="" | |
52127426 | 12312 | fi |
f79bd02d | 12313 | |
21d1c967 GD |
12314 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12315 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12316 | withval="$with_gtk_exec_prefix" | |
12317 | gtk_config_exec_prefix="$withval" | |
12318 | else | |
12319 | gtk_config_exec_prefix="" | |
52127426 JS |
12320 | fi |
12321 | ||
21d1c967 GD |
12322 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12323 | if test "${enable_gtktest+set}" = set; then | |
12324 | enableval="$enable_gtktest" | |
52127426 | 12325 | : |
90dd450c | 12326 | else |
21d1c967 | 12327 | enable_gtktest=yes |
52127426 JS |
12328 | fi |
12329 | ||
21d1c967 GD |
12330 | |
12331 | for module in . $GTK_MODULES | |
12332 | do | |
12333 | case "$module" in | |
52127426 | 12334 | gthread) |
21d1c967 GD |
12335 | gtk_config_args="$gtk_config_args gthread" |
12336 | ;; | |
12337 | esac | |
12338 | done | |
12339 | ||
12340 | if test x$gtk_config_exec_prefix != x ; then | |
12341 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12342 | if test x${GTK_CONFIG+set} != xset ; then | |
12343 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12344 | fi | |
12345 | fi | |
12346 | if test x$gtk_config_prefix != x ; then | |
12347 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12348 | if test x${GTK_CONFIG+set} != xset ; then | |
12349 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12350 | fi | |
12351 | fi | |
12352 | ||
12353 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12354 | set dummy gtk-config; ac_word=$2 | |
52127426 JS |
12355 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
12356 | echo "configure:12357: checking for $ac_word" >&5 | |
12357 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then | |
12358 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 12359 | else |
52127426 JS |
12360 | case "$GTK_CONFIG" in |
12361 | /*) | |
21d1c967 GD |
12362 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12363 | ;; | |
52127426 JS |
12364 | ?:/*) |
12365 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12366 | ;; | |
21d1c967 | 12367 | *) |
52127426 JS |
12368 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12369 | ac_dummy="$PATH" | |
12370 | for ac_dir in $ac_dummy; do | |
12371 | test -z "$ac_dir" && ac_dir=. | |
12372 | if test -f $ac_dir/$ac_word; then | |
12373 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12374 | break | |
12375 | fi | |
12376 | done | |
12377 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12378 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12379 | ;; | |
12380 | esac | |
12381 | fi | |
52127426 | 12382 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12383 | if test -n "$GTK_CONFIG"; then |
52127426 | 12384 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12385 | else |
52127426 | 12386 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12387 | fi |
12388 | ||
12389 | min_gtk_version=1.2.3 | |
52127426 JS |
12390 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
12391 | echo "configure:12392: checking for GTK - version >= $min_gtk_version" >&5 | |
21d1c967 GD |
12392 | no_gtk="" |
12393 | if test "$GTK_CONFIG" = "no" ; then | |
12394 | no_gtk=yes | |
12395 | else | |
12396 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12397 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12398 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12399 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12400 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12401 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12402 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12403 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12404 | if test "x$enable_gtktest" = "xyes" ; then | |
12405 | ac_save_CFLAGS="$CFLAGS" | |
12406 | ac_save_LIBS="$LIBS" | |
12407 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12408 | LIBS="$GTK_LIBS $LIBS" | |
12409 | rm -f conf.gtktest | |
12410 | if test "$cross_compiling" = yes; then | |
12411 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12412 | else | |
52127426 JS |
12413 | cat > conftest.$ac_ext <<EOF |
12414 | #line 12415 "configure" | |
f79bd02d | 12415 | #include "confdefs.h" |
21d1c967 GD |
12416 | |
12417 | #include <gtk/gtk.h> | |
12418 | #include <stdio.h> | |
12419 | #include <stdlib.h> | |
12420 | ||
52127426 | 12421 | int |
21d1c967 GD |
12422 | main () |
12423 | { | |
12424 | int major, minor, micro; | |
12425 | char *tmp_version; | |
12426 | ||
12427 | system ("touch conf.gtktest"); | |
12428 | ||
12429 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12430 | tmp_version = g_strdup("$min_gtk_version"); | |
12431 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12432 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12433 | exit(1); | |
12434 | } | |
12435 | ||
12436 | if ((gtk_major_version != $gtk_config_major_version) || | |
12437 | (gtk_minor_version != $gtk_config_minor_version) || | |
12438 | (gtk_micro_version != $gtk_config_micro_version)) | |
12439 | { | |
52127426 | 12440 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12441 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12442 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12443 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12444 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12445 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12446 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12447 | printf("*** required on your system.\n"); | |
12448 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12449 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12450 | printf("*** before re-running configure\n"); | |
52127426 | 12451 | } |
21d1c967 GD |
12452 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12453 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12454 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12455 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12456 | { | |
12457 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12458 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12459 | printf("*** library (version %d.%d.%d)\n", | |
12460 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12461 | } | |
12462 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12463 | else | |
12464 | { | |
12465 | if ((gtk_major_version > major) || | |
12466 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12467 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12468 | { | |
12469 | return 0; | |
12470 | } | |
12471 | else | |
12472 | { | |
12473 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12474 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12475 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12476 | major, minor, micro); | |
12477 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12478 | printf("***\n"); | |
12479 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12480 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12481 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12482 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12483 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12484 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12485 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12486 | } | |
12487 | } | |
12488 | return 1; | |
12489 | } | |
12490 | ||
52127426 JS |
12491 | EOF |
12492 | if { (eval echo configure:12493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
12493 | then | |
21d1c967 GD |
12494 | : |
12495 | else | |
52127426 JS |
12496 | echo "configure: failed program was:" >&5 |
12497 | cat conftest.$ac_ext >&5 | |
12498 | rm -fr conftest* | |
12499 | no_gtk=yes | |
21d1c967 | 12500 | fi |
52127426 | 12501 | rm -fr conftest* |
21d1c967 | 12502 | fi |
52127426 | 12503 | |
21d1c967 GD |
12504 | CFLAGS="$ac_save_CFLAGS" |
12505 | LIBS="$ac_save_LIBS" | |
12506 | fi | |
12507 | fi | |
12508 | if test "x$no_gtk" = x ; then | |
52127426 JS |
12509 | echo "$ac_t""yes" 1>&6 |
12510 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 12511 | else |
52127426 | 12512 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12513 | if test "$GTK_CONFIG" = "no" ; then |
12514 | echo "*** The gtk-config script installed by GTK could not be found" | |
12515 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12516 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12517 | echo "*** full path to gtk-config." | |
12518 | else | |
12519 | if test -f conf.gtktest ; then | |
12520 | : | |
12521 | else | |
12522 | echo "*** Could not run GTK test program, checking why..." | |
12523 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12524 | LIBS="$LIBS $GTK_LIBS" | |
52127426 JS |
12525 | cat > conftest.$ac_ext <<EOF |
12526 | #line 12527 "configure" | |
21d1c967 GD |
12527 | #include "confdefs.h" |
12528 | ||
12529 | #include <gtk/gtk.h> | |
12530 | #include <stdio.h> | |
f79bd02d | 12531 | |
52127426 JS |
12532 | int main() { |
12533 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12534 | ; return 0; } | |
12535 | EOF | |
12536 | if { (eval echo configure:12537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12537 | rm -rf conftest* | |
21d1c967 GD |
12538 | echo "*** The test program compiled, but did not run. This usually means" |
12539 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12540 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12541 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12542 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12543 | echo "*** is required on your system" | |
12544 | echo "***" | |
12545 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12546 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12547 | echo "***" | |
12548 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12549 | echo "*** came with the system with the command" | |
12550 | echo "***" | |
52127426 | 12551 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 12552 | else |
52127426 JS |
12553 | echo "configure: failed program was:" >&5 |
12554 | cat conftest.$ac_ext >&5 | |
12555 | rm -rf conftest* | |
12556 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
12557 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
12558 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
52127426 | 12559 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 12560 | fi |
52127426 | 12561 | rm -f conftest* |
21d1c967 GD |
12562 | CFLAGS="$ac_save_CFLAGS" |
12563 | LIBS="$ac_save_LIBS" | |
12564 | fi | |
12565 | fi | |
12566 | GTK_CFLAGS="" | |
12567 | GTK_LIBS="" | |
12568 | : | |
12569 | fi | |
52127426 JS |
12570 | |
12571 | ||
21d1c967 | 12572 | rm -f conf.gtktest |
f79bd02d | 12573 | |
21d1c967 GD |
12574 | fi |
12575 | ||
12576 | if test -z "$wx_cv_lib_gtk"; then | |
12577 | wx_cv_lib_gtk=none | |
12578 | else | |
12579 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
12580 | wx_cv_libs_gtk=$GTK_LIBS | |
12581 | fi | |
52127426 JS |
12582 | |
12583 | ||
7b4a847f | 12584 | fi |
579d8138 | 12585 | |
52127426 | 12586 | |
21d1c967 | 12587 | if test "$gtk_version_cached" = 1; then |
52127426 | 12588 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 |
21d1c967 GD |
12589 | fi |
12590 | ||
12591 | case "$wx_cv_lib_gtk" in | |
12592 | 2.0) WXGTK20=1 | |
12593 | ;; | |
12594 | 1.2.7) WXGTK127=1 | |
12595 | WXGTK12=1 | |
12596 | ;; | |
12597 | 1.2.3) WXGTK12=1 | |
12598 | ;; | |
52127426 | 12599 | *) { echo "configure: error: |
328a083c RR |
12600 | Please check that gtk-config is in path, the directory |
12601 | where GTK+ libraries are installed (returned by | |
12602 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
12603 | equivalent variable and GTK+ is version 1.2.3 or above. | |
52127426 | 12604 | " 1>&2; exit 1; } |
21d1c967 GD |
12605 | ;; |
12606 | esac | |
12607 | ||
b13cd66e VZ |
12608 | if test "$WXGTK20" = 1; then |
12609 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
52127426 | 12610 | |
f09359cf VS |
12611 | succeeded=no |
12612 | ||
12613 | if test -z "$PKG_CONFIG"; then | |
12614 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
12615 | set dummy pkg-config; ac_word=$2 | |
52127426 JS |
12616 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
12617 | echo "configure:12618: checking for $ac_word" >&5 | |
12618 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then | |
12619 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf | 12620 | else |
52127426 JS |
12621 | case "$PKG_CONFIG" in |
12622 | /*) | |
f09359cf VS |
12623 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12624 | ;; | |
52127426 JS |
12625 | ?:/*) |
12626 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
12627 | ;; | |
f09359cf | 12628 | *) |
52127426 JS |
12629 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12630 | ac_dummy="$PATH" | |
12631 | for ac_dir in $ac_dummy; do | |
12632 | test -z "$ac_dir" && ac_dir=. | |
12633 | if test -f $ac_dir/$ac_word; then | |
12634 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
12635 | break | |
12636 | fi | |
12637 | done | |
12638 | IFS="$ac_save_ifs" | |
f09359cf VS |
12639 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12640 | ;; | |
12641 | esac | |
12642 | fi | |
52127426 | 12643 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
f09359cf | 12644 | if test -n "$PKG_CONFIG"; then |
52127426 | 12645 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f09359cf | 12646 | else |
52127426 | 12647 | echo "$ac_t""no" 1>&6 |
f09359cf VS |
12648 | fi |
12649 | ||
12650 | fi | |
12651 | ||
12652 | if test "$PKG_CONFIG" = "no" ; then | |
12653 | echo "*** The pkg-config script could not be found. Make sure it is" | |
12654 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
12655 | echo "*** to the full path to pkg-config." | |
12656 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
12657 | else | |
12658 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
12659 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
52127426 JS |
12660 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 |
12661 | echo "configure:12662: checking for pangoft2" >&5 | |
f09359cf VS |
12662 | |
12663 | if $PKG_CONFIG --exists "pangoft2" ; then | |
52127426 | 12664 | echo "$ac_t""yes" 1>&6 |
f09359cf VS |
12665 | succeeded=yes |
12666 | ||
52127426 JS |
12667 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 |
12668 | echo "configure:12669: checking PANGOFT2_CFLAGS" >&5 | |
f09359cf | 12669 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
52127426 | 12670 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 |
f09359cf | 12671 | |
52127426 JS |
12672 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 |
12673 | echo "configure:12674: checking PANGOFT2_LIBS" >&5 | |
f09359cf | 12674 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
52127426 | 12675 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 |
f09359cf VS |
12676 | else |
12677 | PANGOFT2_CFLAGS="" | |
12678 | PANGOFT2_LIBS="" | |
52127426 | 12679 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
12680 | ## do set a variable so people can do so. |
12681 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
52127426 | 12682 | |
f09359cf VS |
12683 | fi |
12684 | ||
52127426 JS |
12685 | |
12686 | ||
f09359cf VS |
12687 | else |
12688 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
12689 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
12690 | fi | |
12691 | fi | |
12692 | ||
12693 | if test $succeeded = yes; then | |
52127426 | 12694 | |
b13cd66e VZ |
12695 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
12696 | LIBS="$LIBS $PANGOFT2_LIBS" | |
52127426 | 12697 | |
f09359cf | 12698 | else |
52127426 JS |
12699 | |
12700 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
b13cd66e | 12701 | wxUSE_PRINTING_ARCHITECTURE="no" |
52127426 JS |
12702 | |
12703 | ||
f09359cf VS |
12704 | fi |
12705 | ||
b13cd66e | 12706 | fi |
f09359cf VS |
12707 | fi |
12708 | ||
21d1c967 GD |
12709 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
12710 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
12711 | ||
12712 | AFMINSTALL=afminstall | |
12713 | TOOLKIT=GTK | |
12714 | GUIDIST=GTK_DIST | |
12715 | ||
52127426 JS |
12716 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
12717 | echo "configure:12718: checking for gdk_im_open in -lgdk" >&5 | |
12718 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` | |
12719 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12720 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 12721 | else |
52127426 | 12722 | ac_save_LIBS="$LIBS" |
21d1c967 | 12723 | LIBS="-lgdk $LIBS" |
52127426 JS |
12724 | cat > conftest.$ac_ext <<EOF |
12725 | #line 12726 "configure" | |
90dd450c VZ |
12726 | #include "confdefs.h" |
12727 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12728 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
12729 | builtin and then its argument prototype would still apply. */ |
12730 | char gdk_im_open(); | |
12731 | ||
12732 | int main() { | |
12733 | gdk_im_open() | |
12734 | ; return 0; } | |
12735 | EOF | |
12736 | if { (eval echo configure:12737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12737 | rm -rf conftest* | |
12738 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12739 | else | |
12740 | echo "configure: failed program was:" >&5 | |
12741 | cat conftest.$ac_ext >&5 | |
12742 | rm -rf conftest* | |
12743 | eval "ac_cv_lib_$ac_lib_var=no" | |
12744 | fi | |
12745 | rm -f conftest* | |
12746 | LIBS="$ac_save_LIBS" | |
12747 | ||
12748 | fi | |
12749 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12750 | echo "$ac_t""yes" 1>&6 | |
12751 | cat >> confdefs.h <<\EOF | |
21d1c967 GD |
12752 | #define HAVE_XIM 1 |
12753 | EOF | |
12754 | ||
52127426 JS |
12755 | else |
12756 | echo "$ac_t""no" 1>&6 | |
90dd450c | 12757 | fi |
1e6feb95 | 12758 | |
21d1c967 | 12759 | fi |
1e6feb95 | 12760 | |
21d1c967 | 12761 | if test "$wxUSE_MGL" = 1; then |
52127426 JS |
12762 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
12763 | echo "configure:12764: checking for SciTech MGL library" >&5 | |
21d1c967 | 12764 | if test "x$MGL_ROOT" = x ; then |
52127426 JS |
12765 | echo "$ac_t""not found" 1>&6 |
12766 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
21d1c967 | 12767 | else |
52127426 | 12768 | echo "$ac_t""$MGL_ROOT" 1>&6 |
21d1c967 GD |
12769 | fi |
12770 | ||
12771 | case "${host}" in | |
12772 | *-*-linux* ) | |
12773 | mgl_os=linux/gcc/glibc | |
12774 | ;; | |
12775 | *-pc-msdosdjgpp ) | |
12776 | mgl_os=dos32/dj2 | |
12777 | ;; | |
12778 | *) | |
52127426 | 12779 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } |
21d1c967 | 12780 | esac |
1e6feb95 | 12781 | |
21d1c967 | 12782 | mgl_lib_type="" |
3fcdd07b | 12783 | |
21d1c967 GD |
12784 | if test "$wxUSE_DEBUG_FLAG" = yes ; then |
12785 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ | |
12786 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
12787 | mgl_lib_type=debug | |
12788 | fi | |
12789 | fi | |
12790 | if test "x$mgl_lib_type" = x ; then | |
12791 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ | |
12792 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
12793 | mgl_lib_type=release | |
12794 | else | |
52127426 | 12795 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } |
21d1c967 | 12796 | fi |
90dd450c | 12797 | fi |
2224580a | 12798 | |
1d1b75ac VZ |
12799 | wxUSE_UNIVERSAL="yes" |
12800 | ||
21d1c967 GD |
12801 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
12802 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
12803 | ||
90dd450c | 12804 | AFMINSTALL=afminstall |
21d1c967 GD |
12805 | TOOLKIT=MGL |
12806 | GUIDIST=MGL_DIST | |
12807 | fi | |
dad6c0ea | 12808 | |
21d1c967 | 12809 | if test "$wxUSE_MICROWIN" = 1; then |
52127426 JS |
12810 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 |
12811 | echo "configure:12812: checking for MicroWindows" >&5 | |
21d1c967 | 12812 | if test "x$MICROWINDOWS" = x ; then |
52127426 JS |
12813 | echo "$ac_t""not found" 1>&6 |
12814 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
21d1c967 | 12815 | else |
52127426 | 12816 | echo "$ac_t""$MICROWINDOWS" 1>&6 |
21d1c967 | 12817 | fi |
f6bcfd97 | 12818 | |
21d1c967 | 12819 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
52127426 | 12820 | echo "$ac_t""MicroWindows' libraries found." 1>&6 |
21d1c967 | 12821 | else |
52127426 | 12822 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } |
90dd450c | 12823 | fi |
0b2effe9 | 12824 | |
21d1c967 GD |
12825 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
12826 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
12827 | ||
1d1b75ac VZ |
12828 | wxUSE_UNIVERSAL="yes" |
12829 | ||
21d1c967 GD |
12830 | AFMINSTALL=afminstall |
12831 | TOOLKIT=MICROWIN | |
12832 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
12833 | |
12834 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 12835 | fi |
f6bcfd97 | 12836 | |
21d1c967 | 12837 | if test "$wxUSE_X11" = 1; then |
52127426 JS |
12838 | # If we find X, set shell vars x_includes and x_libraries to the |
12839 | # paths, otherwise set no_x=yes. | |
12840 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
12841 | # --without-x overrides everything else, but does not touch the cache. | |
12842 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
12843 | echo "configure:12844: checking for X" >&5 | |
d8356fa3 | 12844 | |
21d1c967 GD |
12845 | # Check whether --with-x or --without-x was given. |
12846 | if test "${with_x+set}" = set; then | |
12847 | withval="$with_x" | |
52127426 JS |
12848 | : |
12849 | fi | |
2224580a | 12850 | |
21d1c967 GD |
12851 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
12852 | if test "x$with_x" = xno; then | |
12853 | # The user explicitly disabled X. | |
12854 | have_x=disabled | |
12855 | else | |
12856 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
12857 | # Both variables are already set. | |
12858 | have_x=yes | |
12859 | else | |
52127426 JS |
12860 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
12861 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 GD |
12862 | else |
12863 | # One or both of the vars are not set, and there is no cached value. | |
52127426 JS |
12864 | ac_x_includes=NO ac_x_libraries=NO |
12865 | rm -fr conftestdir | |
12866 | if mkdir conftestdir; then | |
12867 | cd conftestdir | |
21d1c967 | 12868 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
52127426 | 12869 | cat > Imakefile <<'EOF' |
21d1c967 GD |
12870 | acfindx: |
12871 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
12872 | EOF | |
12873 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
12874 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
12875 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
12876 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
12877 | for ac_extension in a so sl; do | |
12878 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
52127426 | 12879 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
12880 | ac_im_usrlibdir=$ac_im_libdir; break |
12881 | fi | |
12882 | done | |
12883 | # Screen out bogus values from the imake configuration. They are | |
12884 | # bogus both because they are the default anyway, and because | |
12885 | # using them would break gcc on systems where it needs fixed includes. | |
52127426 | 12886 | case "$ac_im_incroot" in |
21d1c967 | 12887 | /usr/include) ;; |
52127426 | 12888 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
21d1c967 | 12889 | esac |
52127426 | 12890 | case "$ac_im_usrlibdir" in |
21d1c967 | 12891 | /usr/lib | /lib) ;; |
52127426 | 12892 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
21d1c967 GD |
12893 | esac |
12894 | fi | |
12895 | cd .. | |
52127426 | 12896 | rm -fr conftestdir |
21d1c967 | 12897 | fi |
10f2d63a | 12898 | |
52127426 JS |
12899 | if test "$ac_x_includes" = NO; then |
12900 | # Guess where to find include files, by looking for this one X11 .h file. | |
12901 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
12902 | ||
21d1c967 | 12903 | # First, try using that file with no special directory specified. |
52127426 JS |
12904 | cat > conftest.$ac_ext <<EOF |
12905 | #line 12906 "configure" | |
21d1c967 | 12906 | #include "confdefs.h" |
52127426 JS |
12907 | #include <$x_direct_test_include> |
12908 | EOF | |
12909 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12910 | { (eval echo configure:12911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12911 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12912 | if test -z "$ac_err"; then | |
12913 | rm -rf conftest* | |
21d1c967 GD |
12914 | # We can compile using X headers with no special include directory. |
12915 | ac_x_includes= | |
90dd450c | 12916 | else |
52127426 JS |
12917 | echo "$ac_err" >&5 |
12918 | echo "configure: failed program was:" >&5 | |
90dd450c | 12919 | cat conftest.$ac_ext >&5 |
52127426 JS |
12920 | rm -rf conftest* |
12921 | # Look for the header file in a standard set of common directories. | |
12922 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
12923 | for ac_dir in \ | |
12924 | /usr/X11/include \ | |
12925 | /usr/X11R6/include \ | |
12926 | /usr/X11R5/include \ | |
12927 | /usr/X11R4/include \ | |
12928 | \ | |
12929 | /usr/include/X11 \ | |
12930 | /usr/include/X11R6 \ | |
12931 | /usr/include/X11R5 \ | |
12932 | /usr/include/X11R4 \ | |
12933 | \ | |
12934 | /usr/local/X11/include \ | |
12935 | /usr/local/X11R6/include \ | |
12936 | /usr/local/X11R5/include \ | |
12937 | /usr/local/X11R4/include \ | |
12938 | \ | |
12939 | /usr/local/include/X11 \ | |
12940 | /usr/local/include/X11R6 \ | |
12941 | /usr/local/include/X11R5 \ | |
12942 | /usr/local/include/X11R4 \ | |
12943 | \ | |
12944 | /usr/X386/include \ | |
12945 | /usr/x386/include \ | |
12946 | /usr/XFree86/include/X11 \ | |
12947 | \ | |
12948 | /usr/include \ | |
12949 | /usr/local/include \ | |
12950 | /usr/unsupported/include \ | |
12951 | /usr/athena/include \ | |
12952 | /usr/local/x11r5/include \ | |
12953 | /usr/lpp/Xamples/include \ | |
12954 | \ | |
12955 | /usr/openwin/include \ | |
12956 | /usr/openwin/share/include \ | |
12957 | ; \ | |
12958 | do | |
12959 | if test -r "$ac_dir/$x_direct_test_include"; then | |
12960 | ac_x_includes=$ac_dir | |
12961 | break | |
12962 | fi | |
12963 | done | |
3a922bb4 | 12964 | fi |
52127426 JS |
12965 | rm -f conftest* |
12966 | fi # $ac_x_includes = NO | |
10f2d63a | 12967 | |
52127426 | 12968 | if test "$ac_x_libraries" = NO; then |
21d1c967 | 12969 | # Check for the libraries. |
52127426 JS |
12970 | |
12971 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
12972 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
12973 | ||
21d1c967 GD |
12974 | # See if we find them without any special options. |
12975 | # Don't add to $LIBS permanently. | |
52127426 JS |
12976 | ac_save_LIBS="$LIBS" |
12977 | LIBS="-l$x_direct_test_library $LIBS" | |
12978 | cat > conftest.$ac_ext <<EOF | |
12979 | #line 12980 "configure" | |
3a922bb4 | 12980 | #include "confdefs.h" |
52127426 JS |
12981 | |
12982 | int main() { | |
12983 | ${x_direct_test_function}() | |
12984 | ; return 0; } | |
12985 | EOF | |
12986 | if { (eval echo configure:12987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12987 | rm -rf conftest* | |
12988 | LIBS="$ac_save_LIBS" | |
21d1c967 GD |
12989 | # We can link X programs with no special library path. |
12990 | ac_x_libraries= | |
3a922bb4 | 12991 | else |
52127426 JS |
12992 | echo "configure: failed program was:" >&5 |
12993 | cat conftest.$ac_ext >&5 | |
12994 | rm -rf conftest* | |
12995 | LIBS="$ac_save_LIBS" | |
12996 | # First see if replacing the include by lib works. | |
12997 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
12998 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
12999 | /usr/X11/lib \ | |
13000 | /usr/X11R6/lib \ | |
13001 | /usr/X11R5/lib \ | |
13002 | /usr/X11R4/lib \ | |
13003 | \ | |
13004 | /usr/lib/X11 \ | |
13005 | /usr/lib/X11R6 \ | |
13006 | /usr/lib/X11R5 \ | |
13007 | /usr/lib/X11R4 \ | |
13008 | \ | |
13009 | /usr/local/X11/lib \ | |
13010 | /usr/local/X11R6/lib \ | |
13011 | /usr/local/X11R5/lib \ | |
13012 | /usr/local/X11R4/lib \ | |
13013 | \ | |
13014 | /usr/local/lib/X11 \ | |
13015 | /usr/local/lib/X11R6 \ | |
13016 | /usr/local/lib/X11R5 \ | |
13017 | /usr/local/lib/X11R4 \ | |
13018 | \ | |
13019 | /usr/X386/lib \ | |
13020 | /usr/x386/lib \ | |
13021 | /usr/XFree86/lib/X11 \ | |
13022 | \ | |
13023 | /usr/lib \ | |
13024 | /usr/local/lib \ | |
13025 | /usr/unsupported/lib \ | |
13026 | /usr/athena/lib \ | |
13027 | /usr/local/x11r5/lib \ | |
13028 | /usr/lpp/Xamples/lib \ | |
13029 | /lib/usr/lib/X11 \ | |
13030 | \ | |
13031 | /usr/openwin/lib \ | |
13032 | /usr/openwin/share/lib \ | |
13033 | ; \ | |
21d1c967 GD |
13034 | do |
13035 | for ac_extension in a so sl; do | |
52127426 | 13036 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
21d1c967 GD |
13037 | ac_x_libraries=$ac_dir |
13038 | break 2 | |
13039 | fi | |
13040 | done | |
13041 | done | |
3a922bb4 | 13042 | fi |
52127426 JS |
13043 | rm -f conftest* |
13044 | fi # $ac_x_libraries = NO | |
90dd450c | 13045 | |
52127426 | 13046 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
21d1c967 GD |
13047 | # Didn't find X anywhere. Cache the known absence of X. |
13048 | ac_cv_have_x="have_x=no" | |
13049 | else | |
13050 | # Record where we found X for the cache. | |
13051 | ac_cv_have_x="have_x=yes \ | |
13052 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 13053 | fi |
21d1c967 GD |
13054 | fi |
13055 | fi | |
13056 | eval "$ac_cv_have_x" | |
13057 | fi # $with_x != no | |
90dd450c | 13058 | |
21d1c967 | 13059 | if test "$have_x" != yes; then |
52127426 | 13060 | echo "$ac_t""$have_x" 1>&6 |
21d1c967 GD |
13061 | no_x=yes |
13062 | else | |
13063 | # If each of the values was on the command line, it overrides each guess. | |
13064 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
13065 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
13066 | # Update the cache value to reflect the command line values. | |
13067 | ac_cv_have_x="have_x=yes \ | |
13068 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
52127426 | 13069 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
21d1c967 | 13070 | fi |
90dd450c | 13071 | |
21d1c967 | 13072 | if test "$no_x" = yes; then |
90dd450c | 13073 | # Not all programs may use this symbol, but it does not hurt to define it. |
52127426 | 13074 | cat >> confdefs.h <<\EOF |
90dd450c VZ |
13075 | #define X_DISPLAY_MISSING 1 |
13076 | EOF | |
13077 | ||
13078 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13079 | else | |
13080 | if test -n "$x_includes"; then | |
13081 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 13082 | fi |
3a922bb4 | 13083 | |
90dd450c VZ |
13084 | # It would also be nice to do this for all -L options, not just this one. |
13085 | if test -n "$x_libraries"; then | |
13086 | X_LIBS="$X_LIBS -L$x_libraries" | |
13087 | # For Solaris; some versions of Sun CC require a space after -R and | |
13088 | # others require no space. Words are not sufficient . . . . | |
52127426 | 13089 | case "`(uname -sr) 2>/dev/null`" in |
90dd450c | 13090 | "SunOS 5"*) |
52127426 JS |
13091 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
13092 | echo "configure:13093: checking whether -R must be followed by a space" >&5 | |
13093 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | |
13094 | cat > conftest.$ac_ext <<EOF | |
13095 | #line 13096 "configure" | |
90dd450c VZ |
13096 | #include "confdefs.h" |
13097 | ||
52127426 | 13098 | int main() { |
90dd450c | 13099 | |
52127426 JS |
13100 | ; return 0; } |
13101 | EOF | |
13102 | if { (eval echo configure:13103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13103 | rm -rf conftest* | |
90dd450c | 13104 | ac_R_nospace=yes |
3a922bb4 | 13105 | else |
52127426 JS |
13106 | echo "configure: failed program was:" >&5 |
13107 | cat conftest.$ac_ext >&5 | |
13108 | rm -rf conftest* | |
13109 | ac_R_nospace=no | |
3a922bb4 | 13110 | fi |
52127426 | 13111 | rm -f conftest* |
90dd450c | 13112 | if test $ac_R_nospace = yes; then |
52127426 | 13113 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
13114 | X_LIBS="$X_LIBS -R$x_libraries" |
13115 | else | |
13116 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
52127426 JS |
13117 | cat > conftest.$ac_ext <<EOF |
13118 | #line 13119 "configure" | |
90dd450c | 13119 | #include "confdefs.h" |
3a922bb4 | 13120 | |
52127426 | 13121 | int main() { |
6f754473 | 13122 | |
52127426 JS |
13123 | ; return 0; } |
13124 | EOF | |
13125 | if { (eval echo configure:13126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13126 | rm -rf conftest* | |
90dd450c VZ |
13127 | ac_R_space=yes |
13128 | else | |
52127426 JS |
13129 | echo "configure: failed program was:" >&5 |
13130 | cat conftest.$ac_ext >&5 | |
13131 | rm -rf conftest* | |
13132 | ac_R_space=no | |
90dd450c | 13133 | fi |
52127426 | 13134 | rm -f conftest* |
90dd450c | 13135 | if test $ac_R_space = yes; then |
52127426 | 13136 | echo "$ac_t""yes" 1>&6 |
90dd450c VZ |
13137 | X_LIBS="$X_LIBS -R $x_libraries" |
13138 | else | |
52127426 | 13139 | echo "$ac_t""neither works" 1>&6 |
90dd450c VZ |
13140 | fi |
13141 | fi | |
52127426 | 13142 | LIBS="$ac_xsave_LIBS" |
90dd450c VZ |
13143 | esac |
13144 | fi | |
13145 | ||
13146 | # Check for system-dependent libraries X programs must link with. | |
13147 | # Do this before checking for the system-independent R6 libraries | |
13148 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 13149 | |
90dd450c VZ |
13150 | if test "$ISC" = yes; then |
13151 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13152 | else | |
52127426 JS |
13153 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
13154 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
90dd450c | 13155 | # the Alpha needs dnet_stub (dnet does not exist). |
52127426 JS |
13156 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
13157 | echo "configure:13158: checking for dnet_ntoa in -ldnet" >&5 | |
13158 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
13159 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13160 | echo $ac_n "(cached) $ac_c" 1>&6 | |
579d8138 | 13161 | else |
52127426 | 13162 | ac_save_LIBS="$LIBS" |
7b4a847f | 13163 | LIBS="-ldnet $LIBS" |
52127426 JS |
13164 | cat > conftest.$ac_ext <<EOF |
13165 | #line 13166 "configure" | |
7b4a847f | 13166 | #include "confdefs.h" |
7b4a847f | 13167 | /* Override any gcc2 internal prototype to avoid an error. */ |
7b4a847f | 13168 | /* We use char because int might match the return type of a gcc2 |
52127426 JS |
13169 | builtin and then its argument prototype would still apply. */ |
13170 | char dnet_ntoa(); | |
13171 | ||
13172 | int main() { | |
13173 | dnet_ntoa() | |
13174 | ; return 0; } | |
13175 | EOF | |
13176 | if { (eval echo configure:13177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13177 | rm -rf conftest* | |
13178 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13179 | else | |
13180 | echo "configure: failed program was:" >&5 | |
13181 | cat conftest.$ac_ext >&5 | |
13182 | rm -rf conftest* | |
13183 | eval "ac_cv_lib_$ac_lib_var=no" | |
13184 | fi | |
13185 | rm -f conftest* | |
13186 | LIBS="$ac_save_LIBS" | |
13187 | ||
13188 | fi | |
13189 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13190 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13191 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
52127426 JS |
13192 | else |
13193 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13194 | fi |
13195 | ||
90dd450c | 13196 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
52127426 JS |
13197 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
13198 | echo "configure:13199: checking for dnet_ntoa in -ldnet_stub" >&5 | |
13199 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
13200 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13201 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13202 | else |
52127426 | 13203 | ac_save_LIBS="$LIBS" |
90dd450c | 13204 | LIBS="-ldnet_stub $LIBS" |
52127426 JS |
13205 | cat > conftest.$ac_ext <<EOF |
13206 | #line 13207 "configure" | |
90dd450c VZ |
13207 | #include "confdefs.h" |
13208 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13209 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
13210 | builtin and then its argument prototype would still apply. */ |
13211 | char dnet_ntoa(); | |
13212 | ||
13213 | int main() { | |
13214 | dnet_ntoa() | |
13215 | ; return 0; } | |
13216 | EOF | |
13217 | if { (eval echo configure:13218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13218 | rm -rf conftest* | |
13219 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13220 | else | |
13221 | echo "configure: failed program was:" >&5 | |
13222 | cat conftest.$ac_ext >&5 | |
13223 | rm -rf conftest* | |
13224 | eval "ac_cv_lib_$ac_lib_var=no" | |
13225 | fi | |
13226 | rm -f conftest* | |
13227 | LIBS="$ac_save_LIBS" | |
13228 | ||
13229 | fi | |
13230 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13231 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13232 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
52127426 JS |
13233 | else |
13234 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13235 | fi |
13236 | ||
90dd450c | 13237 | fi |
978f1259 | 13238 | |
90dd450c VZ |
13239 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13240 | # to get the SysV transport functions. | |
52127426 | 13241 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
13242 | # needs -lnsl. |
13243 | # The nsl library prevents programs from opening the X display | |
52127426 JS |
13244 | # on Irix 5.2, according to dickey@clark.net. |
13245 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
13246 | echo "configure:13247: checking for gethostbyname" >&5 | |
13247 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then | |
13248 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13249 | else | |
13250 | cat > conftest.$ac_ext <<EOF | |
13251 | #line 13252 "configure" | |
90dd450c VZ |
13252 | #include "confdefs.h" |
13253 | /* System header to define __stub macros and hopefully few prototypes, | |
52127426 | 13254 | which can conflict with char gethostbyname(); below. */ |
90dd450c VZ |
13255 | #include <assert.h> |
13256 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13257 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
13258 | builtin and then its argument prototype would still apply. */ |
13259 | char gethostbyname(); | |
13260 | ||
13261 | int main() { | |
978f1259 | 13262 | |
90dd450c VZ |
13263 | /* The GNU C library defines this for functions which it implements |
13264 | to always fail with ENOSYS. Some functions are actually named | |
13265 | something starting with __ and the normal name is an alias. */ | |
13266 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13267 | choke me | |
13268 | #else | |
52127426 | 13269 | gethostbyname(); |
90dd450c | 13270 | #endif |
978f1259 | 13271 | |
52127426 JS |
13272 | ; return 0; } |
13273 | EOF | |
13274 | if { (eval echo configure:13275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13275 | rm -rf conftest* | |
13276 | eval "ac_cv_func_gethostbyname=yes" | |
13277 | else | |
13278 | echo "configure: failed program was:" >&5 | |
13279 | cat conftest.$ac_ext >&5 | |
13280 | rm -rf conftest* | |
13281 | eval "ac_cv_func_gethostbyname=no" | |
13282 | fi | |
13283 | rm -f conftest* | |
13284 | fi | |
13285 | ||
13286 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
13287 | echo "$ac_t""yes" 1>&6 | |
13288 | : | |
13289 | else | |
13290 | echo "$ac_t""no" 1>&6 | |
13291 | fi | |
698dcdb6 | 13292 | |
90dd450c | 13293 | if test $ac_cv_func_gethostbyname = no; then |
52127426 JS |
13294 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
13295 | echo "configure:13296: checking for gethostbyname in -lnsl" >&5 | |
13296 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | |
13297 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13298 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13299 | else |
52127426 | 13300 | ac_save_LIBS="$LIBS" |
90dd450c | 13301 | LIBS="-lnsl $LIBS" |
52127426 JS |
13302 | cat > conftest.$ac_ext <<EOF |
13303 | #line 13304 "configure" | |
90dd450c VZ |
13304 | #include "confdefs.h" |
13305 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13306 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
13307 | builtin and then its argument prototype would still apply. */ |
13308 | char gethostbyname(); | |
328a083c | 13309 | |
52127426 JS |
13310 | int main() { |
13311 | gethostbyname() | |
13312 | ; return 0; } | |
13313 | EOF | |
13314 | if { (eval echo configure:13315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13315 | rm -rf conftest* | |
13316 | eval "ac_cv_lib_$ac_lib_var=yes" | |
579d8138 | 13317 | else |
52127426 JS |
13318 | echo "configure: failed program was:" >&5 |
13319 | cat conftest.$ac_ext >&5 | |
13320 | rm -rf conftest* | |
13321 | eval "ac_cv_lib_$ac_lib_var=no" | |
13322 | fi | |
13323 | rm -f conftest* | |
13324 | LIBS="$ac_save_LIBS" | |
7b4a847f | 13325 | |
52127426 JS |
13326 | fi |
13327 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13328 | echo "$ac_t""yes" 1>&6 | |
13329 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13330 | else | |
13331 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13332 | fi |
b12915c1 | 13333 | |
90dd450c VZ |
13334 | fi |
13335 | ||
13336 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
13337 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13338 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
52127426 JS |
13339 | # on later versions), says simon@lia.di.epfl.ch: it contains |
13340 | # gethostby* variants that don't use the nameserver (or something). | |
13341 | # -lsocket must be given before -lnsl if both are needed. | |
13342 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
13343 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
13344 | echo "configure:13345: checking for connect" >&5 | |
13345 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then | |
13346 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13347 | else | |
13348 | cat > conftest.$ac_ext <<EOF | |
13349 | #line 13350 "configure" | |
55e80573 | 13350 | #include "confdefs.h" |
90dd450c | 13351 | /* System header to define __stub macros and hopefully few prototypes, |
52127426 | 13352 | which can conflict with char connect(); below. */ |
90dd450c VZ |
13353 | #include <assert.h> |
13354 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13355 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
13356 | builtin and then its argument prototype would still apply. */ |
13357 | char connect(); | |
13358 | ||
13359 | int main() { | |
55e80573 | 13360 | |
90dd450c VZ |
13361 | /* The GNU C library defines this for functions which it implements |
13362 | to always fail with ENOSYS. Some functions are actually named | |
13363 | something starting with __ and the normal name is an alias. */ | |
13364 | #if defined (__stub_connect) || defined (__stub___connect) | |
13365 | choke me | |
13366 | #else | |
52127426 | 13367 | connect(); |
90dd450c VZ |
13368 | #endif |
13369 | ||
52127426 JS |
13370 | ; return 0; } |
13371 | EOF | |
13372 | if { (eval echo configure:13373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13373 | rm -rf conftest* | |
13374 | eval "ac_cv_func_connect=yes" | |
13375 | else | |
13376 | echo "configure: failed program was:" >&5 | |
13377 | cat conftest.$ac_ext >&5 | |
13378 | rm -rf conftest* | |
13379 | eval "ac_cv_func_connect=no" | |
13380 | fi | |
13381 | rm -f conftest* | |
13382 | fi | |
13383 | ||
13384 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
13385 | echo "$ac_t""yes" 1>&6 | |
13386 | : | |
13387 | else | |
13388 | echo "$ac_t""no" 1>&6 | |
13389 | fi | |
55e80573 | 13390 | |
90dd450c | 13391 | if test $ac_cv_func_connect = no; then |
52127426 JS |
13392 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
13393 | echo "configure:13394: checking for connect in -lsocket" >&5 | |
13394 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` | |
13395 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13396 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13397 | else |
52127426 | 13398 | ac_save_LIBS="$LIBS" |
90dd450c | 13399 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
52127426 JS |
13400 | cat > conftest.$ac_ext <<EOF |
13401 | #line 13402 "configure" | |
90dd450c VZ |
13402 | #include "confdefs.h" |
13403 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13404 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
13405 | builtin and then its argument prototype would still apply. */ |
13406 | char connect(); | |
13407 | ||
13408 | int main() { | |
13409 | connect() | |
13410 | ; return 0; } | |
13411 | EOF | |
13412 | if { (eval echo configure:13413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13413 | rm -rf conftest* | |
13414 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13415 | else | |
13416 | echo "configure: failed program was:" >&5 | |
13417 | cat conftest.$ac_ext >&5 | |
13418 | rm -rf conftest* | |
13419 | eval "ac_cv_lib_$ac_lib_var=no" | |
13420 | fi | |
13421 | rm -f conftest* | |
13422 | LIBS="$ac_save_LIBS" | |
13423 | ||
13424 | fi | |
13425 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13426 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13427 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
52127426 JS |
13428 | else |
13429 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13430 | fi |
77e13408 | 13431 | |
90dd450c | 13432 | fi |
25d0687a | 13433 | |
52127426 JS |
13434 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
13435 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
13436 | echo "configure:13437: checking for remove" >&5 | |
13437 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then | |
13438 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13439 | else |
52127426 JS |
13440 | cat > conftest.$ac_ext <<EOF |
13441 | #line 13442 "configure" | |
90dd450c VZ |
13442 | #include "confdefs.h" |
13443 | /* System header to define __stub macros and hopefully few prototypes, | |
52127426 | 13444 | which can conflict with char remove(); below. */ |
90dd450c VZ |
13445 | #include <assert.h> |
13446 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13447 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
13448 | builtin and then its argument prototype would still apply. */ |
13449 | char remove(); | |
13450 | ||
13451 | int main() { | |
55e80573 | 13452 | |
90dd450c VZ |
13453 | /* The GNU C library defines this for functions which it implements |
13454 | to always fail with ENOSYS. Some functions are actually named | |
13455 | something starting with __ and the normal name is an alias. */ | |
13456 | #if defined (__stub_remove) || defined (__stub___remove) | |
13457 | choke me | |
13458 | #else | |
52127426 | 13459 | remove(); |
90dd450c | 13460 | #endif |
55e80573 | 13461 | |
52127426 JS |
13462 | ; return 0; } |
13463 | EOF | |
13464 | if { (eval echo configure:13465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13465 | rm -rf conftest* | |
13466 | eval "ac_cv_func_remove=yes" | |
13467 | else | |
13468 | echo "configure: failed program was:" >&5 | |
13469 | cat conftest.$ac_ext >&5 | |
13470 | rm -rf conftest* | |
13471 | eval "ac_cv_func_remove=no" | |
13472 | fi | |
13473 | rm -f conftest* | |
13474 | fi | |
13475 | ||
13476 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
13477 | echo "$ac_t""yes" 1>&6 | |
13478 | : | |
13479 | else | |
13480 | echo "$ac_t""no" 1>&6 | |
13481 | fi | |
10f2d63a | 13482 | |
90dd450c | 13483 | if test $ac_cv_func_remove = no; then |
52127426 JS |
13484 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
13485 | echo "configure:13486: checking for remove in -lposix" >&5 | |
13486 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` | |
13487 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13488 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13489 | else |
52127426 | 13490 | ac_save_LIBS="$LIBS" |
90dd450c | 13491 | LIBS="-lposix $LIBS" |
52127426 JS |
13492 | cat > conftest.$ac_ext <<EOF |
13493 | #line 13494 "configure" | |
90dd450c VZ |
13494 | #include "confdefs.h" |
13495 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13496 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
13497 | builtin and then its argument prototype would still apply. */ |
13498 | char remove(); | |
13499 | ||
13500 | int main() { | |
13501 | remove() | |
13502 | ; return 0; } | |
13503 | EOF | |
13504 | if { (eval echo configure:13505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13505 | rm -rf conftest* | |
13506 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13507 | else | |
13508 | echo "configure: failed program was:" >&5 | |
13509 | cat conftest.$ac_ext >&5 | |
13510 | rm -rf conftest* | |
13511 | eval "ac_cv_lib_$ac_lib_var=no" | |
13512 | fi | |
13513 | rm -f conftest* | |
13514 | LIBS="$ac_save_LIBS" | |
13515 | ||
13516 | fi | |
13517 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13518 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13519 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
52127426 JS |
13520 | else |
13521 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13522 | fi |
f6bcfd97 | 13523 | |
6fa882bd RR |
13524 | fi |
13525 | ||
90dd450c | 13526 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
52127426 JS |
13527 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
13528 | echo "configure:13529: checking for shmat" >&5 | |
13529 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then | |
13530 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13531 | else |
52127426 JS |
13532 | cat > conftest.$ac_ext <<EOF |
13533 | #line 13534 "configure" | |
90dd450c VZ |
13534 | #include "confdefs.h" |
13535 | /* System header to define __stub macros and hopefully few prototypes, | |
52127426 | 13536 | which can conflict with char shmat(); below. */ |
90dd450c VZ |
13537 | #include <assert.h> |
13538 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13539 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
13540 | builtin and then its argument prototype would still apply. */ |
13541 | char shmat(); | |
13542 | ||
13543 | int main() { | |
3a922bb4 | 13544 | |
90dd450c VZ |
13545 | /* The GNU C library defines this for functions which it implements |
13546 | to always fail with ENOSYS. Some functions are actually named | |
13547 | something starting with __ and the normal name is an alias. */ | |
13548 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
13549 | choke me | |
13550 | #else | |
52127426 | 13551 | shmat(); |
90dd450c | 13552 | #endif |
10f2d63a | 13553 | |
52127426 JS |
13554 | ; return 0; } |
13555 | EOF | |
13556 | if { (eval echo configure:13557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13557 | rm -rf conftest* | |
13558 | eval "ac_cv_func_shmat=yes" | |
13559 | else | |
13560 | echo "configure: failed program was:" >&5 | |
13561 | cat conftest.$ac_ext >&5 | |
13562 | rm -rf conftest* | |
13563 | eval "ac_cv_func_shmat=no" | |
13564 | fi | |
13565 | rm -f conftest* | |
13566 | fi | |
13567 | ||
13568 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
13569 | echo "$ac_t""yes" 1>&6 | |
13570 | : | |
13571 | else | |
13572 | echo "$ac_t""no" 1>&6 | |
13573 | fi | |
d08b457b | 13574 | |
90dd450c | 13575 | if test $ac_cv_func_shmat = no; then |
52127426 JS |
13576 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
13577 | echo "configure:13578: checking for shmat in -lipc" >&5 | |
13578 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` | |
13579 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13580 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d08b457b | 13581 | else |
52127426 | 13582 | ac_save_LIBS="$LIBS" |
90dd450c | 13583 | LIBS="-lipc $LIBS" |
52127426 JS |
13584 | cat > conftest.$ac_ext <<EOF |
13585 | #line 13586 "configure" | |
90dd450c VZ |
13586 | #include "confdefs.h" |
13587 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13588 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
13589 | builtin and then its argument prototype would still apply. */ |
13590 | char shmat(); | |
13591 | ||
13592 | int main() { | |
13593 | shmat() | |
13594 | ; return 0; } | |
13595 | EOF | |
13596 | if { (eval echo configure:13597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13597 | rm -rf conftest* | |
13598 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13599 | else | |
13600 | echo "configure: failed program was:" >&5 | |
13601 | cat conftest.$ac_ext >&5 | |
13602 | rm -rf conftest* | |
13603 | eval "ac_cv_lib_$ac_lib_var=no" | |
13604 | fi | |
13605 | rm -f conftest* | |
13606 | LIBS="$ac_save_LIBS" | |
13607 | ||
13608 | fi | |
13609 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13610 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13611 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
52127426 JS |
13612 | else |
13613 | echo "$ac_t""no" 1>&6 | |
d08b457b GD |
13614 | fi |
13615 | ||
d558c907 | 13616 | fi |
90dd450c | 13617 | fi |
3a922bb4 | 13618 | |
90dd450c | 13619 | # Check for libraries that X11R6 Xt/Xaw programs need. |
52127426 | 13620 | ac_save_LDFLAGS="$LDFLAGS" |
90dd450c VZ |
13621 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
13622 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
13623 | # check for ICE first), but we must link in the order -lSM -lICE or | |
13624 | # we get undefined symbols. So assume we have SM if we have ICE. | |
13625 | # These have to be linked with before -lX11, unlike the other | |
13626 | # libraries we check for below, so use a different variable. | |
52127426 JS |
13627 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
13628 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
13629 | echo "configure:13630: checking for IceConnectionNumber in -lICE" >&5 | |
13630 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` | |
13631 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13632 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13633 | else | |
13634 | ac_save_LIBS="$LIBS" | |
f09359cf | 13635 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
52127426 JS |
13636 | cat > conftest.$ac_ext <<EOF |
13637 | #line 13638 "configure" | |
9cfadba2 | 13638 | #include "confdefs.h" |
90dd450c VZ |
13639 | /* Override any gcc2 internal prototype to avoid an error. */ |
13640 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
13641 | builtin and then its argument prototype would still apply. */ |
13642 | char IceConnectionNumber(); | |
13643 | ||
13644 | int main() { | |
13645 | IceConnectionNumber() | |
13646 | ; return 0; } | |
13647 | EOF | |
13648 | if { (eval echo configure:13649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13649 | rm -rf conftest* | |
13650 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13651 | else | |
13652 | echo "configure: failed program was:" >&5 | |
13653 | cat conftest.$ac_ext >&5 | |
13654 | rm -rf conftest* | |
13655 | eval "ac_cv_lib_$ac_lib_var=no" | |
13656 | fi | |
13657 | rm -f conftest* | |
13658 | LIBS="$ac_save_LIBS" | |
13659 | ||
13660 | fi | |
13661 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13662 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13663 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
52127426 JS |
13664 | else |
13665 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 13666 | fi |
10f2d63a | 13667 | |
52127426 | 13668 | LDFLAGS="$ac_save_LDFLAGS" |
90dd450c VZ |
13669 | |
13670 | fi | |
13671 | ||
52127426 | 13672 | |
90dd450c | 13673 | if test "$no_x" = "yes"; then |
52127426 | 13674 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
90dd450c VZ |
13675 | fi |
13676 | ||
13677 | GUI_TK_LIBRARY="$X_LIBS" | |
13678 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
13679 | AFMINSTALL=afminstall | |
13680 | COMPILED_X_PROGRAM=0 | |
13681 | ||
21d1c967 | 13682 | if test "$wxUSE_NANOX" = "yes"; then |
52127426 JS |
13683 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 |
13684 | echo "configure:13685: checking for MicroWindows/NanoX distribution" >&5 | |
21d1c967 | 13685 | if test "x$MICROWIN" = x ; then |
52127426 JS |
13686 | echo "$ac_t""not found" 1>&6 |
13687 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
90dd450c | 13688 | else |
52127426 JS |
13689 | echo "$ac_t""$MICROWIN" 1>&6 |
13690 | cat >> confdefs.h <<\EOF | |
21d1c967 | 13691 | #define wxUSE_NANOX 1 |
698dcdb6 | 13692 | EOF |
21d1c967 | 13693 | |
90dd450c VZ |
13694 | fi |
13695 | fi | |
13696 | ||
13697 | xpm_link= | |
52127426 JS |
13698 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
13699 | echo "configure:13700: checking for Xpm library" >&5 | |
13700 | ||
90dd450c VZ |
13701 | ac_find_libraries= |
13702 | for ac_dir in $SEARCH_LIB; | |
13703 | do | |
13704 | for ac_extension in a so sl dylib; do | |
13705 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
13706 | ac_find_libraries=$ac_dir | |
13707 | break 2 | |
13708 | fi | |
13709 | done | |
13710 | done | |
13711 | ||
13712 | if test "$ac_find_libraries" != "" ; then | |
52127426 | 13713 | |
90dd450c VZ |
13714 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
13715 | result=$? | |
13716 | if test $result = 0; then | |
13717 | ac_path_to_link="" | |
13718 | else | |
13719 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 13720 | fi |
90dd450c | 13721 | |
21d1c967 GD |
13722 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
13723 | xpm_link=" -lXpm" | |
52127426 | 13724 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
13725 | #define wxHAVE_LIB_XPM 1 |
13726 | EOF | |
90dd450c | 13727 | |
52127426 | 13728 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 13729 | else |
52127426 JS |
13730 | cat > conftest.$ac_ext <<EOF |
13731 | #line 13732 "configure" | |
21d1c967 | 13732 | #include "confdefs.h" |
90dd450c | 13733 | |
21d1c967 | 13734 | #include <X11/xpm.h> |
52127426 JS |
13735 | |
13736 | int main() { | |
6f72b082 | 13737 | |
21d1c967 GD |
13738 | int version; |
13739 | version = XpmLibraryVersion(); | |
52127426 JS |
13740 | |
13741 | ; return 0; } | |
13742 | EOF | |
13743 | if { (eval echo configure:13744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
13744 | rm -rf conftest* | |
13745 | ||
21d1c967 | 13746 | xpm_link=" -lXpm" |
52127426 | 13747 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
13748 | #define wxHAVE_LIB_XPM 1 |
13749 | EOF | |
90dd450c | 13750 | |
52127426 | 13751 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 13752 | COMPILED_X_PROGRAM=0 |
52127426 | 13753 | |
21d1c967 | 13754 | else |
52127426 JS |
13755 | echo "configure: failed program was:" >&5 |
13756 | cat conftest.$ac_ext >&5 | |
13757 | rm -rf conftest* | |
13758 | ||
13759 | echo "$ac_t""no" 1>&6 | |
13760 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13761 | ||
13762 | ||
6f72b082 | 13763 | fi |
52127426 | 13764 | rm -f conftest* |
21d1c967 | 13765 | fi |
90dd450c | 13766 | |
1d1b75ac VZ |
13767 | wxUSE_UNIVERSAL="yes" |
13768 | ||
21d1c967 GD |
13769 | if test "$wxUSE_NANOX" = "yes"; then |
13770 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
13771 | 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" | |
13772 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
13773 | else | |
13774 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
13775 | fi | |
6f72b082 | 13776 | |
21d1c967 GD |
13777 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" |
13778 | TOOLKIT=X11 | |
13779 | GUIDIST=X11_DIST | |
13780 | fi | |
90dd450c | 13781 | |
21d1c967 | 13782 | if test "$wxUSE_WINE" = 1; then |
52127426 JS |
13783 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
13784 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
13785 | echo "configure:13786: checking for windows.h" >&5 | |
13786 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
13787 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13788 | else | |
13789 | cat > conftest.$ac_ext <<EOF | |
13790 | #line 13791 "configure" | |
6f72b082 | 13791 | #include "confdefs.h" |
21d1c967 | 13792 | #include <windows.h> |
52127426 JS |
13793 | EOF |
13794 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
13795 | { (eval echo configure:13796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
13796 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
13797 | if test -z "$ac_err"; then | |
13798 | rm -rf conftest* | |
13799 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 13800 | else |
52127426 JS |
13801 | echo "$ac_err" >&5 |
13802 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13803 | cat conftest.$ac_ext >&5 |
52127426 JS |
13804 | rm -rf conftest* |
13805 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13806 | fi |
52127426 | 13807 | rm -f conftest* |
10f2d63a | 13808 | fi |
52127426 JS |
13809 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13810 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
13811 | : |
13812 | else | |
52127426 | 13813 | echo "$ac_t""no" 1>&6 |
21d1c967 | 13814 | |
52127426 JS |
13815 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
13816 | ||
7b4a847f | 13817 | fi |
328a083c | 13818 | |
7b4a847f | 13819 | |
52127426 JS |
13820 | xpm_link= |
13821 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
13822 | echo "configure:13823: checking for Xpm library" >&5 | |
13823 | ||
90dd450c VZ |
13824 | ac_find_libraries= |
13825 | for ac_dir in $SEARCH_LIB; | |
13826 | do | |
13827 | for ac_extension in a so sl dylib; do | |
21d1c967 | 13828 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
90dd450c VZ |
13829 | ac_find_libraries=$ac_dir |
13830 | break 2 | |
13831 | fi | |
13832 | done | |
13833 | done | |
13834 | ||
21d1c967 GD |
13835 | if test "$ac_find_libraries" != "" ; then |
13836 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
13837 | xpm_link=" -lXpm" | |
52127426 | 13838 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
13839 | #define wxHAVE_LIB_XPM 1 |
13840 | EOF | |
90dd450c | 13841 | |
52127426 | 13842 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 13843 | else |
52127426 JS |
13844 | echo "$ac_t""no" 1>&6 |
13845 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
21d1c967 GD |
13846 | fi |
13847 | ||
13848 | mesa_link= | |
52127426 JS |
13849 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 |
13850 | echo "configure:13851: checking for Mesa library" >&5 | |
13851 | ||
90dd450c VZ |
13852 | ac_find_libraries= |
13853 | for ac_dir in $SEARCH_LIB; | |
13854 | do | |
13855 | for ac_extension in a so sl dylib; do | |
13856 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
13857 | ac_find_libraries=$ac_dir | |
13858 | break 2 | |
13859 | fi | |
13860 | done | |
13861 | done | |
13862 | ||
21d1c967 GD |
13863 | if test "$ac_find_libraries" != "" ; then |
13864 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
13865 | mesa_link=" -lMesaGL" | |
52127426 | 13866 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 13867 | else |
52127426 | 13868 | { echo "configure: error: no" 1>&2; exit 1; } |
21d1c967 GD |
13869 | fi |
13870 | ||
13871 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
13872 | TOOLKIT=MSW | |
13873 | GUIDIST=MSW_DIST | |
13874 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
13875 | fi | |
13876 | ||
13877 | if test "$wxUSE_MOTIF" = 1; then | |
13878 | if test "$no_x" = yes; then | |
13879 | # Not all programs may use this symbol, but it does not hurt to define it. | |
52127426 | 13880 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
13881 | #define X_DISPLAY_MISSING 1 |
13882 | EOF | |
13883 | ||
13884 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13885 | else | |
13886 | if test -n "$x_includes"; then | |
13887 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
13888 | fi |
13889 | ||
21d1c967 GD |
13890 | # It would also be nice to do this for all -L options, not just this one. |
13891 | if test -n "$x_libraries"; then | |
13892 | X_LIBS="$X_LIBS -L$x_libraries" | |
13893 | # For Solaris; some versions of Sun CC require a space after -R and | |
13894 | # others require no space. Words are not sufficient . . . . | |
52127426 | 13895 | case "`(uname -sr) 2>/dev/null`" in |
21d1c967 | 13896 | "SunOS 5"*) |
52127426 JS |
13897 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
13898 | echo "configure:13899: checking whether -R must be followed by a space" >&5 | |
13899 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | |
13900 | cat > conftest.$ac_ext <<EOF | |
13901 | #line 13902 "configure" | |
21d1c967 GD |
13902 | #include "confdefs.h" |
13903 | ||
52127426 | 13904 | int main() { |
21d1c967 | 13905 | |
52127426 JS |
13906 | ; return 0; } |
13907 | EOF | |
13908 | if { (eval echo configure:13909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13909 | rm -rf conftest* | |
21d1c967 | 13910 | ac_R_nospace=yes |
698dcdb6 | 13911 | else |
52127426 JS |
13912 | echo "configure: failed program was:" >&5 |
13913 | cat conftest.$ac_ext >&5 | |
13914 | rm -rf conftest* | |
13915 | ac_R_nospace=no | |
10f2d63a | 13916 | fi |
52127426 | 13917 | rm -f conftest* |
21d1c967 | 13918 | if test $ac_R_nospace = yes; then |
52127426 | 13919 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
13920 | X_LIBS="$X_LIBS -R$x_libraries" |
13921 | else | |
13922 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
52127426 JS |
13923 | cat > conftest.$ac_ext <<EOF |
13924 | #line 13925 "configure" | |
21d1c967 | 13925 | #include "confdefs.h" |
10f2d63a | 13926 | |
52127426 | 13927 | int main() { |
f0c87536 | 13928 | |
52127426 JS |
13929 | ; return 0; } |
13930 | EOF | |
13931 | if { (eval echo configure:13932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13932 | rm -rf conftest* | |
21d1c967 GD |
13933 | ac_R_space=yes |
13934 | else | |
52127426 JS |
13935 | echo "configure: failed program was:" >&5 |
13936 | cat conftest.$ac_ext >&5 | |
13937 | rm -rf conftest* | |
13938 | ac_R_space=no | |
21d1c967 | 13939 | fi |
52127426 | 13940 | rm -f conftest* |
21d1c967 | 13941 | if test $ac_R_space = yes; then |
52127426 | 13942 | echo "$ac_t""yes" 1>&6 |
21d1c967 GD |
13943 | X_LIBS="$X_LIBS -R $x_libraries" |
13944 | else | |
52127426 | 13945 | echo "$ac_t""neither works" 1>&6 |
21d1c967 GD |
13946 | fi |
13947 | fi | |
52127426 | 13948 | LIBS="$ac_xsave_LIBS" |
21d1c967 GD |
13949 | esac |
13950 | fi | |
90dd450c | 13951 | |
21d1c967 GD |
13952 | # Check for system-dependent libraries X programs must link with. |
13953 | # Do this before checking for the system-independent R6 libraries | |
13954 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
13955 | ||
13956 | if test "$ISC" = yes; then | |
13957 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13958 | else | |
52127426 JS |
13959 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
13960 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
21d1c967 | 13961 | # the Alpha needs dnet_stub (dnet does not exist). |
52127426 JS |
13962 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
13963 | echo "configure:13964: checking for dnet_ntoa in -ldnet" >&5 | |
13964 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
13965 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13966 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 13967 | else |
52127426 | 13968 | ac_save_LIBS="$LIBS" |
7b4a847f | 13969 | LIBS="-ldnet $LIBS" |
52127426 JS |
13970 | cat > conftest.$ac_ext <<EOF |
13971 | #line 13972 "configure" | |
7b4a847f | 13972 | #include "confdefs.h" |
7b4a847f | 13973 | /* Override any gcc2 internal prototype to avoid an error. */ |
7b4a847f | 13974 | /* We use char because int might match the return type of a gcc2 |
52127426 JS |
13975 | builtin and then its argument prototype would still apply. */ |
13976 | char dnet_ntoa(); | |
13977 | ||
13978 | int main() { | |
13979 | dnet_ntoa() | |
13980 | ; return 0; } | |
13981 | EOF | |
13982 | if { (eval echo configure:13983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13983 | rm -rf conftest* | |
13984 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13985 | else | |
13986 | echo "configure: failed program was:" >&5 | |
13987 | cat conftest.$ac_ext >&5 | |
13988 | rm -rf conftest* | |
13989 | eval "ac_cv_lib_$ac_lib_var=no" | |
13990 | fi | |
13991 | rm -f conftest* | |
13992 | LIBS="$ac_save_LIBS" | |
13993 | ||
13994 | fi | |
13995 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13996 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 13997 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
52127426 JS |
13998 | else |
13999 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 | 14000 | fi |
0fb0dd83 | 14001 | |
21d1c967 | 14002 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
52127426 JS |
14003 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
14004 | echo "configure:14005: checking for dnet_ntoa in -ldnet_stub" >&5 | |
14005 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
14006 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14007 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14008 | else |
52127426 | 14009 | ac_save_LIBS="$LIBS" |
21d1c967 | 14010 | LIBS="-ldnet_stub $LIBS" |
52127426 JS |
14011 | cat > conftest.$ac_ext <<EOF |
14012 | #line 14013 "configure" | |
21d1c967 GD |
14013 | #include "confdefs.h" |
14014 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14015 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
14016 | builtin and then its argument prototype would still apply. */ |
14017 | char dnet_ntoa(); | |
14018 | ||
14019 | int main() { | |
14020 | dnet_ntoa() | |
14021 | ; return 0; } | |
14022 | EOF | |
14023 | if { (eval echo configure:14024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14024 | rm -rf conftest* | |
14025 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14026 | else | |
14027 | echo "configure: failed program was:" >&5 | |
14028 | cat conftest.$ac_ext >&5 | |
14029 | rm -rf conftest* | |
14030 | eval "ac_cv_lib_$ac_lib_var=no" | |
14031 | fi | |
14032 | rm -f conftest* | |
14033 | LIBS="$ac_save_LIBS" | |
14034 | ||
14035 | fi | |
14036 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14037 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14038 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
52127426 JS |
14039 | else |
14040 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
14041 | fi |
14042 | ||
21d1c967 | 14043 | fi |
90dd450c | 14044 | |
21d1c967 GD |
14045 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
14046 | # to get the SysV transport functions. | |
52127426 | 14047 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
14048 | # needs -lnsl. |
14049 | # The nsl library prevents programs from opening the X display | |
52127426 JS |
14050 | # on Irix 5.2, according to dickey@clark.net. |
14051 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
14052 | echo "configure:14053: checking for gethostbyname" >&5 | |
14053 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then | |
14054 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14055 | else | |
14056 | cat > conftest.$ac_ext <<EOF | |
14057 | #line 14058 "configure" | |
21d1c967 GD |
14058 | #include "confdefs.h" |
14059 | /* System header to define __stub macros and hopefully few prototypes, | |
52127426 | 14060 | which can conflict with char gethostbyname(); below. */ |
21d1c967 GD |
14061 | #include <assert.h> |
14062 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14063 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
14064 | builtin and then its argument prototype would still apply. */ |
14065 | char gethostbyname(); | |
14066 | ||
14067 | int main() { | |
90dd450c | 14068 | |
21d1c967 GD |
14069 | /* The GNU C library defines this for functions which it implements |
14070 | to always fail with ENOSYS. Some functions are actually named | |
14071 | something starting with __ and the normal name is an alias. */ | |
14072 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
14073 | choke me | |
14074 | #else | |
52127426 | 14075 | gethostbyname(); |
21d1c967 | 14076 | #endif |
90dd450c | 14077 | |
52127426 JS |
14078 | ; return 0; } |
14079 | EOF | |
14080 | if { (eval echo configure:14081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14081 | rm -rf conftest* | |
14082 | eval "ac_cv_func_gethostbyname=yes" | |
14083 | else | |
14084 | echo "configure: failed program was:" >&5 | |
14085 | cat conftest.$ac_ext >&5 | |
14086 | rm -rf conftest* | |
14087 | eval "ac_cv_func_gethostbyname=no" | |
14088 | fi | |
14089 | rm -f conftest* | |
14090 | fi | |
14091 | ||
14092 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
14093 | echo "$ac_t""yes" 1>&6 | |
14094 | : | |
14095 | else | |
14096 | echo "$ac_t""no" 1>&6 | |
14097 | fi | |
90dd450c | 14098 | |
21d1c967 | 14099 | if test $ac_cv_func_gethostbyname = no; then |
52127426 JS |
14100 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
14101 | echo "configure:14102: checking for gethostbyname in -lnsl" >&5 | |
14102 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | |
14103 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14104 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14105 | else |
52127426 | 14106 | ac_save_LIBS="$LIBS" |
21d1c967 | 14107 | LIBS="-lnsl $LIBS" |
52127426 JS |
14108 | cat > conftest.$ac_ext <<EOF |
14109 | #line 14110 "configure" | |
21d1c967 GD |
14110 | #include "confdefs.h" |
14111 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14112 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
14113 | builtin and then its argument prototype would still apply. */ |
14114 | char gethostbyname(); | |
328a083c | 14115 | |
52127426 JS |
14116 | int main() { |
14117 | gethostbyname() | |
14118 | ; return 0; } | |
14119 | EOF | |
14120 | if { (eval echo configure:14121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14121 | rm -rf conftest* | |
14122 | eval "ac_cv_lib_$ac_lib_var=yes" | |
579d8138 | 14123 | else |
52127426 JS |
14124 | echo "configure: failed program was:" >&5 |
14125 | cat conftest.$ac_ext >&5 | |
14126 | rm -rf conftest* | |
14127 | eval "ac_cv_lib_$ac_lib_var=no" | |
14128 | fi | |
14129 | rm -f conftest* | |
14130 | LIBS="$ac_save_LIBS" | |
7b4a847f | 14131 | |
52127426 JS |
14132 | fi |
14133 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14134 | echo "$ac_t""yes" 1>&6 | |
14135 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
14136 | else | |
14137 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 14138 | fi |
90dd450c | 14139 | |
90dd450c VZ |
14140 | fi |
14141 | ||
21d1c967 GD |
14142 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
14143 | # socket/setsockopt and other routines are undefined under SCO ODT | |
14144 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
52127426 JS |
14145 | # on later versions), says simon@lia.di.epfl.ch: it contains |
14146 | # gethostby* variants that don't use the nameserver (or something). | |
14147 | # -lsocket must be given before -lnsl if both are needed. | |
14148 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
14149 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
14150 | echo "configure:14151: checking for connect" >&5 | |
14151 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then | |
14152 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14153 | else | |
14154 | cat > conftest.$ac_ext <<EOF | |
14155 | #line 14156 "configure" | |
21d1c967 GD |
14156 | #include "confdefs.h" |
14157 | /* System header to define __stub macros and hopefully few prototypes, | |
52127426 | 14158 | which can conflict with char connect(); below. */ |
21d1c967 GD |
14159 | #include <assert.h> |
14160 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14161 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
14162 | builtin and then its argument prototype would still apply. */ |
14163 | char connect(); | |
14164 | ||
14165 | int main() { | |
90dd450c | 14166 | |
21d1c967 GD |
14167 | /* The GNU C library defines this for functions which it implements |
14168 | to always fail with ENOSYS. Some functions are actually named | |
14169 | something starting with __ and the normal name is an alias. */ | |
14170 | #if defined (__stub_connect) || defined (__stub___connect) | |
14171 | choke me | |
14172 | #else | |
52127426 | 14173 | connect(); |
21d1c967 | 14174 | #endif |
90dd450c | 14175 | |
52127426 JS |
14176 | ; return 0; } |
14177 | EOF | |
14178 | if { (eval echo configure:14179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14179 | rm -rf conftest* | |
14180 | eval "ac_cv_func_connect=yes" | |
14181 | else | |
14182 | echo "configure: failed program was:" >&5 | |
14183 | cat conftest.$ac_ext >&5 | |
14184 | rm -rf conftest* | |
14185 | eval "ac_cv_func_connect=no" | |
14186 | fi | |
14187 | rm -f conftest* | |
14188 | fi | |
14189 | ||
14190 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
14191 | echo "$ac_t""yes" 1>&6 | |
14192 | : | |
14193 | else | |
14194 | echo "$ac_t""no" 1>&6 | |
14195 | fi | |
1f8ae82f | 14196 | |
21d1c967 | 14197 | if test $ac_cv_func_connect = no; then |
52127426 JS |
14198 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
14199 | echo "configure:14200: checking for connect in -lsocket" >&5 | |
14200 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` | |
14201 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14202 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0fbb762e | 14203 | else |
52127426 | 14204 | ac_save_LIBS="$LIBS" |
21d1c967 | 14205 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
52127426 JS |
14206 | cat > conftest.$ac_ext <<EOF |
14207 | #line 14208 "configure" | |
0fbb762e | 14208 | #include "confdefs.h" |
21d1c967 GD |
14209 | /* Override any gcc2 internal prototype to avoid an error. */ |
14210 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
14211 | builtin and then its argument prototype would still apply. */ |
14212 | char connect(); | |
14213 | ||
14214 | int main() { | |
14215 | connect() | |
14216 | ; return 0; } | |
14217 | EOF | |
14218 | if { (eval echo configure:14219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14219 | rm -rf conftest* | |
14220 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14221 | else | |
14222 | echo "configure: failed program was:" >&5 | |
14223 | cat conftest.$ac_ext >&5 | |
14224 | rm -rf conftest* | |
14225 | eval "ac_cv_lib_$ac_lib_var=no" | |
14226 | fi | |
14227 | rm -f conftest* | |
14228 | LIBS="$ac_save_LIBS" | |
14229 | ||
14230 | fi | |
14231 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14232 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14233 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
52127426 JS |
14234 | else |
14235 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 14236 | fi |
90dd450c | 14237 | |
21d1c967 | 14238 | fi |
90dd450c | 14239 | |
52127426 JS |
14240 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
14241 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
14242 | echo "configure:14243: checking for remove" >&5 | |
14243 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then | |
14244 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14245 | else |
52127426 JS |
14246 | cat > conftest.$ac_ext <<EOF |
14247 | #line 14248 "configure" | |
21d1c967 GD |
14248 | #include "confdefs.h" |
14249 | /* System header to define __stub macros and hopefully few prototypes, | |
52127426 | 14250 | which can conflict with char remove(); below. */ |
21d1c967 GD |
14251 | #include <assert.h> |
14252 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14253 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
14254 | builtin and then its argument prototype would still apply. */ |
14255 | char remove(); | |
14256 | ||
14257 | int main() { | |
90dd450c | 14258 | |
21d1c967 GD |
14259 | /* The GNU C library defines this for functions which it implements |
14260 | to always fail with ENOSYS. Some functions are actually named | |
14261 | something starting with __ and the normal name is an alias. */ | |
14262 | #if defined (__stub_remove) || defined (__stub___remove) | |
14263 | choke me | |
14264 | #else | |
52127426 | 14265 | remove(); |
21d1c967 | 14266 | #endif |
90dd450c | 14267 | |
52127426 JS |
14268 | ; return 0; } |
14269 | EOF | |
14270 | if { (eval echo configure:14271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14271 | rm -rf conftest* | |
14272 | eval "ac_cv_func_remove=yes" | |
14273 | else | |
14274 | echo "configure: failed program was:" >&5 | |
14275 | cat conftest.$ac_ext >&5 | |
14276 | rm -rf conftest* | |
14277 | eval "ac_cv_func_remove=no" | |
14278 | fi | |
14279 | rm -f conftest* | |
14280 | fi | |
14281 | ||
14282 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
14283 | echo "$ac_t""yes" 1>&6 | |
14284 | : | |
14285 | else | |
14286 | echo "$ac_t""no" 1>&6 | |
14287 | fi | |
90dd450c | 14288 | |
21d1c967 | 14289 | if test $ac_cv_func_remove = no; then |
52127426 JS |
14290 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
14291 | echo "configure:14292: checking for remove in -lposix" >&5 | |
14292 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` | |
14293 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14294 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14295 | else |
52127426 | 14296 | ac_save_LIBS="$LIBS" |
21d1c967 | 14297 | LIBS="-lposix $LIBS" |
52127426 JS |
14298 | cat > conftest.$ac_ext <<EOF |
14299 | #line 14300 "configure" | |
21d1c967 GD |
14300 | #include "confdefs.h" |
14301 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14302 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
14303 | builtin and then its argument prototype would still apply. */ |
14304 | char remove(); | |
14305 | ||
14306 | int main() { | |
14307 | remove() | |
14308 | ; return 0; } | |
14309 | EOF | |
14310 | if { (eval echo configure:14311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14311 | rm -rf conftest* | |
14312 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14313 | else | |
14314 | echo "configure: failed program was:" >&5 | |
14315 | cat conftest.$ac_ext >&5 | |
14316 | rm -rf conftest* | |
14317 | eval "ac_cv_lib_$ac_lib_var=no" | |
14318 | fi | |
14319 | rm -f conftest* | |
14320 | LIBS="$ac_save_LIBS" | |
14321 | ||
14322 | fi | |
14323 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14324 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14325 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
52127426 JS |
14326 | else |
14327 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 14328 | fi |
19bc6aad | 14329 | |
90dd450c | 14330 | fi |
19bc6aad | 14331 | |
21d1c967 | 14332 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
52127426 JS |
14333 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
14334 | echo "configure:14335: checking for shmat" >&5 | |
14335 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then | |
14336 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14337 | else |
52127426 JS |
14338 | cat > conftest.$ac_ext <<EOF |
14339 | #line 14340 "configure" | |
21d1c967 GD |
14340 | #include "confdefs.h" |
14341 | /* System header to define __stub macros and hopefully few prototypes, | |
52127426 | 14342 | which can conflict with char shmat(); below. */ |
21d1c967 GD |
14343 | #include <assert.h> |
14344 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14345 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
14346 | builtin and then its argument prototype would still apply. */ |
14347 | char shmat(); | |
14348 | ||
14349 | int main() { | |
90dd450c | 14350 | |
21d1c967 GD |
14351 | /* The GNU C library defines this for functions which it implements |
14352 | to always fail with ENOSYS. Some functions are actually named | |
14353 | something starting with __ and the normal name is an alias. */ | |
14354 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14355 | choke me | |
14356 | #else | |
52127426 | 14357 | shmat(); |
21d1c967 | 14358 | #endif |
90dd450c | 14359 | |
52127426 JS |
14360 | ; return 0; } |
14361 | EOF | |
14362 | if { (eval echo configure:14363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14363 | rm -rf conftest* | |
14364 | eval "ac_cv_func_shmat=yes" | |
14365 | else | |
14366 | echo "configure: failed program was:" >&5 | |
14367 | cat conftest.$ac_ext >&5 | |
14368 | rm -rf conftest* | |
14369 | eval "ac_cv_func_shmat=no" | |
14370 | fi | |
14371 | rm -f conftest* | |
14372 | fi | |
14373 | ||
14374 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14375 | echo "$ac_t""yes" 1>&6 | |
14376 | : | |
14377 | else | |
14378 | echo "$ac_t""no" 1>&6 | |
14379 | fi | |
19bc6aad | 14380 | |
21d1c967 | 14381 | if test $ac_cv_func_shmat = no; then |
52127426 JS |
14382 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
14383 | echo "configure:14384: checking for shmat in -lipc" >&5 | |
14384 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` | |
14385 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14386 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9f8148b1 | 14387 | else |
52127426 | 14388 | ac_save_LIBS="$LIBS" |
21d1c967 | 14389 | LIBS="-lipc $LIBS" |
52127426 JS |
14390 | cat > conftest.$ac_ext <<EOF |
14391 | #line 14392 "configure" | |
21d1c967 GD |
14392 | #include "confdefs.h" |
14393 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14394 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
14395 | builtin and then its argument prototype would still apply. */ |
14396 | char shmat(); | |
14397 | ||
14398 | int main() { | |
14399 | shmat() | |
14400 | ; return 0; } | |
14401 | EOF | |
14402 | if { (eval echo configure:14403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14403 | rm -rf conftest* | |
14404 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14405 | else | |
14406 | echo "configure: failed program was:" >&5 | |
14407 | cat conftest.$ac_ext >&5 | |
14408 | rm -rf conftest* | |
14409 | eval "ac_cv_lib_$ac_lib_var=no" | |
14410 | fi | |
14411 | rm -f conftest* | |
14412 | LIBS="$ac_save_LIBS" | |
14413 | ||
14414 | fi | |
14415 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14416 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14417 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
52127426 JS |
14418 | else |
14419 | echo "$ac_t""no" 1>&6 | |
9f8148b1 | 14420 | fi |
90dd450c | 14421 | |
90dd450c | 14422 | fi |
21d1c967 | 14423 | fi |
10f2d63a | 14424 | |
21d1c967 | 14425 | # Check for libraries that X11R6 Xt/Xaw programs need. |
52127426 | 14426 | ac_save_LDFLAGS="$LDFLAGS" |
21d1c967 GD |
14427 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
14428 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14429 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14430 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14431 | # These have to be linked with before -lX11, unlike the other | |
14432 | # libraries we check for below, so use a different variable. | |
52127426 JS |
14433 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
14434 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
14435 | echo "configure:14436: checking for IceConnectionNumber in -lICE" >&5 | |
14436 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` | |
14437 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14438 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14439 | else | |
14440 | ac_save_LIBS="$LIBS" | |
f09359cf | 14441 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
52127426 JS |
14442 | cat > conftest.$ac_ext <<EOF |
14443 | #line 14444 "configure" | |
29fd3c0c | 14444 | #include "confdefs.h" |
21d1c967 GD |
14445 | /* Override any gcc2 internal prototype to avoid an error. */ |
14446 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
14447 | builtin and then its argument prototype would still apply. */ |
14448 | char IceConnectionNumber(); | |
14449 | ||
14450 | int main() { | |
14451 | IceConnectionNumber() | |
14452 | ; return 0; } | |
14453 | EOF | |
14454 | if { (eval echo configure:14455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14455 | rm -rf conftest* | |
14456 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14457 | else | |
14458 | echo "configure: failed program was:" >&5 | |
14459 | cat conftest.$ac_ext >&5 | |
14460 | rm -rf conftest* | |
14461 | eval "ac_cv_lib_$ac_lib_var=no" | |
14462 | fi | |
14463 | rm -f conftest* | |
14464 | LIBS="$ac_save_LIBS" | |
14465 | ||
14466 | fi | |
14467 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14468 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14469 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
52127426 JS |
14470 | else |
14471 | echo "$ac_t""no" 1>&6 | |
29fd3c0c | 14472 | fi |
21d1c967 | 14473 | |
52127426 | 14474 | LDFLAGS="$ac_save_LDFLAGS" |
29fd3c0c | 14475 | |
10f2d63a VZ |
14476 | fi |
14477 | ||
52127426 | 14478 | |
21d1c967 | 14479 | if test "$no_x" = "yes"; then |
52127426 | 14480 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
21d1c967 GD |
14481 | fi |
14482 | ||
14483 | GUI_TK_LIBRARY="$X_LIBS" | |
14484 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14485 | AFMINSTALL=afminstall | |
14486 | COMPILED_X_PROGRAM=0 | |
14487 | ||
52127426 JS |
14488 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
14489 | echo "configure:14490: checking for Motif/Lesstif headers" >&5 | |
14490 | ||
21d1c967 GD |
14491 | ac_find_includes= |
14492 | for ac_dir in $SEARCH_INCLUDE; | |
14493 | do | |
14494 | if test -f "$ac_dir/Xm/Xm.h"; then | |
14495 | ac_find_includes=$ac_dir | |
14496 | break | |
14497 | fi | |
14498 | done | |
14499 | ||
14500 | if test "$ac_find_includes" != "" ; then | |
dd0e4a90 VZ |
14501 | echo "$ac_t""found in $ac_find_includes" 1>&6 |
14502 | ||
14503 | ac_path_to_include=$ac_find_includes | |
14504 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
14505 | result=$? | |
14506 | if test $result = 0; then | |
14507 | ac_path_to_include="" | |
14508 | else | |
14509 | ac_path_to_include=" -I$ac_find_includes" | |
14510 | fi | |
14511 | ||
14512 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 14513 | else |
52127426 | 14514 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 14515 | #line 14516 "configure" |
10f2d63a | 14516 | #include "confdefs.h" |
21d1c967 GD |
14517 | |
14518 | #include <Xm/Xm.h> | |
52127426 JS |
14519 | |
14520 | int main() { | |
21d1c967 GD |
14521 | |
14522 | int version; | |
14523 | version = xmUseVersion; | |
52127426 JS |
14524 | |
14525 | ; return 0; } | |
14526 | EOF | |
dd0e4a90 | 14527 | if { (eval echo configure:14528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 JS |
14528 | rm -rf conftest* |
14529 | ||
14530 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 14531 | COMPILED_X_PROGRAM=1 |
52127426 | 14532 | |
10f2d63a | 14533 | else |
52127426 JS |
14534 | echo "configure: failed program was:" >&5 |
14535 | cat conftest.$ac_ext >&5 | |
14536 | rm -rf conftest* | |
14537 | ||
14538 | echo "$ac_t""no" 1>&6 | |
14539 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
14540 | ||
14541 | ||
10f2d63a | 14542 | fi |
52127426 | 14543 | rm -f conftest* |
21d1c967 | 14544 | fi |
10f2d63a | 14545 | |
21d1c967 | 14546 | if test "$COMPILED_X_PROGRAM" = 0; then |
52127426 | 14547 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 |
dd0e4a90 | 14548 | echo "configure:14549: checking for Motif/Lesstif library" >&5 |
52127426 | 14549 | |
21d1c967 GD |
14550 | ac_find_libraries= |
14551 | for ac_dir in $SEARCH_LIB; | |
14552 | do | |
14553 | for ac_extension in a so sl dylib; do | |
14554 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
14555 | ac_find_libraries=$ac_dir | |
14556 | break 2 | |
14557 | fi | |
14558 | done | |
14559 | done | |
14560 | ||
14561 | if test "$ac_find_libraries" != "" ; then | |
dd0e4a90 | 14562 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14563 | |
52127426 | 14564 | |
21d1c967 GD |
14565 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14566 | result=$? | |
14567 | if test $result = 0; then | |
14568 | ac_path_to_link="" | |
14569 | else | |
14570 | ac_path_to_link=" -L$ac_find_libraries" | |
14571 | fi | |
14572 | ||
21d1c967 | 14573 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 14574 | else |
dd0e4a90 VZ |
14575 | save_CFLAGS=$CFLAGS |
14576 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
14577 | ||
14578 | cat > conftest.$ac_ext <<EOF | |
14579 | #line 14580 "configure" | |
d836ee96 | 14580 | #include "confdefs.h" |
21d1c967 GD |
14581 | |
14582 | #include <Xm/Xm.h> | |
52127426 JS |
14583 | |
14584 | int main() { | |
21d1c967 GD |
14585 | |
14586 | int version; | |
14587 | version = xmUseVersion; | |
52127426 JS |
14588 | |
14589 | ; return 0; } | |
14590 | EOF | |
dd0e4a90 | 14591 | if { (eval echo configure:14592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 JS |
14592 | rm -rf conftest* |
14593 | ||
14594 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 14595 | COMPILED_X_PROGRAM=1 |
52127426 | 14596 | |
d836ee96 | 14597 | else |
52127426 JS |
14598 | echo "configure: failed program was:" >&5 |
14599 | cat conftest.$ac_ext >&5 | |
14600 | rm -rf conftest* | |
14601 | ||
14602 | echo "$ac_t""no" 1>&6 | |
14603 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
14604 | ||
14605 | ||
d836ee96 | 14606 | fi |
52127426 | 14607 | rm -f conftest* |
dd0e4a90 VZ |
14608 | |
14609 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
14610 | fi |
14611 | fi | |
14612 | ||
14613 | xpm_link= | |
52127426 | 14614 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
dd0e4a90 | 14615 | echo "configure:14616: checking for Xpm library" >&5 |
52127426 | 14616 | |
21d1c967 GD |
14617 | ac_find_libraries= |
14618 | for ac_dir in $SEARCH_LIB; | |
14619 | do | |
14620 | for ac_extension in a so sl dylib; do | |
14621 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14622 | ac_find_libraries=$ac_dir | |
14623 | break 2 | |
14624 | fi | |
14625 | done | |
14626 | done | |
14627 | ||
14628 | if test "$ac_find_libraries" != "" ; then | |
52127426 | 14629 | |
21d1c967 GD |
14630 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14631 | result=$? | |
14632 | if test $result = 0; then | |
14633 | ac_path_to_link="" | |
14634 | else | |
14635 | ac_path_to_link=" -L$ac_find_libraries" | |
14636 | fi | |
14637 | ||
14638 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 14639 | |
21d1c967 | 14640 | xpm_link=" -lXpm" |
52127426 | 14641 | cat >> confdefs.h <<\EOF |
21d1c967 | 14642 | #define wxHAVE_LIB_XPM 1 |
d836ee96 | 14643 | EOF |
90dd450c | 14644 | |
52127426 | 14645 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14646 | else |
dd0e4a90 VZ |
14647 | save_CFLAGS=$CFLAGS |
14648 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
14649 | ||
52127426 | 14650 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 14651 | #line 14652 "configure" |
d836ee96 | 14652 | #include "confdefs.h" |
21d1c967 GD |
14653 | |
14654 | #include <X11/xpm.h> | |
52127426 JS |
14655 | |
14656 | int main() { | |
21d1c967 GD |
14657 | |
14658 | int version; | |
14659 | version = XpmLibraryVersion(); | |
52127426 JS |
14660 | |
14661 | ; return 0; } | |
14662 | EOF | |
dd0e4a90 | 14663 | if { (eval echo configure:14664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 JS |
14664 | rm -rf conftest* |
14665 | ||
21d1c967 | 14666 | xpm_link=" -lXpm" |
52127426 | 14667 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
14668 | #define wxHAVE_LIB_XPM 1 |
14669 | EOF | |
14670 | ||
52127426 | 14671 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 14672 | COMPILED_X_PROGRAM=0 |
52127426 | 14673 | |
d836ee96 | 14674 | else |
52127426 JS |
14675 | echo "configure: failed program was:" >&5 |
14676 | cat conftest.$ac_ext >&5 | |
14677 | rm -rf conftest* | |
14678 | ||
14679 | echo "$ac_t""no" 1>&6 | |
14680 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14681 | ||
14682 | ||
d836ee96 | 14683 | fi |
52127426 | 14684 | rm -f conftest* |
dd0e4a90 VZ |
14685 | |
14686 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
14687 | fi |
14688 | ||
52127426 | 14689 | echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6 |
dd0e4a90 | 14690 | echo "configure:14691: checking if we need -lXp and/or -lSM -lICE" >&5 |
6a30f1c8 MB |
14691 | libp_link="" |
14692 | libsm_ice_link="" | |
14693 | libs_found=0 | |
14694 | for libp in "" " -lXp"; do | |
14695 | if test "$libs_found" = "0"; then | |
14696 | for libsm_ice in " -lSM -lICE"; do | |
52127426 | 14697 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
14698 | save_LIBS="$LIBS" |
14699 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
14700 | save_CFLAGS=$CFLAGS |
14701 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
14702 | ||
52127426 | 14703 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 14704 | #line 14705 "configure" |
6a30f1c8 | 14705 | #include "confdefs.h" |
17234b26 | 14706 | |
6a30f1c8 MB |
14707 | #include <Xm/Xm.h> |
14708 | #include <Xm/List.h> | |
52127426 JS |
14709 | |
14710 | int main() { | |
6a30f1c8 MB |
14711 | |
14712 | XmString string = NULL; | |
14713 | Widget w = NULL; | |
14714 | int position = 0; | |
14715 | XmListAddItem(w, string, position); | |
52127426 JS |
14716 | |
14717 | ; return 0; } | |
14718 | EOF | |
dd0e4a90 | 14719 | if { (eval echo configure:14720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
14720 | rm -rf conftest* |
14721 | ||
6a30f1c8 MB |
14722 | libp_link="$libp" |
14723 | libsm_ice_link="$libsm_ice" | |
52127426 | 14724 | echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6 |
6a30f1c8 | 14725 | libs_found=1 |
52127426 | 14726 | |
6a30f1c8 | 14727 | else |
52127426 JS |
14728 | echo "configure: failed program was:" >&5 |
14729 | cat conftest.$ac_ext >&5 | |
14730 | rm -rf conftest* | |
14731 | ||
14732 | ||
6a30f1c8 | 14733 | fi |
52127426 | 14734 | rm -f conftest* |
dd0e4a90 | 14735 | |
6a30f1c8 | 14736 | LIBS="$save_LIBS" |
dd0e4a90 | 14737 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
14738 | fi |
14739 | done | |
14740 | fi | |
14741 | done | |
14742 | ||
14743 | if test "$libs_found" = "0"; then | |
52127426 JS |
14744 | echo "$ac_t""can't find the right libraries" 1>&6 |
14745 | { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; } | |
6a30f1c8 MB |
14746 | fi |
14747 | ||
14748 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
21d1c967 GD |
14749 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
14750 | TOOLKIT=MOTIF | |
14751 | GUIDIST=MOTIF_DIST | |
14752 | fi | |
14753 | ||
14754 | if test "$wxUSE_MAC" = 1; then | |
14755 | if test "$wxUSE_PRECOMP" = "yes"; then | |
14756 | CPPFLAGS="$CPPFLAGS -cpp-precomp" | |
14757 | else | |
14758 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
14759 | fi | |
14760 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" | |
14761 | CFLAGS="$CFLAGS -fpascal-strings" | |
14762 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
14763 | ||
14764 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
14765 | TOOLKIT=MAC | |
14766 | GUIDIST=MACX_DIST | |
14767 | fi | |
14768 | ||
14769 | if test "$wxUSE_PM" = 1; then | |
14770 | TOOLKIT=PM | |
14771 | GUIDIST=GTK_DIST | |
14772 | fi | |
14773 | ||
14774 | if test "$TOOLKIT" = "PM" ; then | |
14775 | TOOLKIT_DIR="os2" | |
14776 | else | |
14777 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
14778 | fi | |
14779 | ||
14780 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
14781 | ||
14782 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
14783 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
14784 | ||
14785 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
14786 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
14787 | ||
14788 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
14789 | if test "$wxUSE_X11" = 1; then | |
14790 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
14791 | else | |
14792 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
14793 | fi | |
14794 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
14795 | WIDGET_SET=univ | |
14796 | else | |
14797 | ALL_OBJECTS="\$(GUIOBJS)" | |
14798 | ALL_SOURCES="\$(ALL_SOURCES)" | |
14799 | ALL_HEADERS="\$(ALL_HEADERS)" | |
14800 | fi | |
14801 | ||
14802 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
14803 | ||
14804 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
14805 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
14806 | fi | |
14807 | ||
14808 | if test "$wxUSE_HTML" = "yes"; then | |
14809 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
14810 | fi | |
14811 | ||
14812 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
14813 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
14814 | fi | |
14815 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
14816 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
14817 | fi | |
14818 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
14819 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
14820 | fi | |
14821 | ||
14822 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
14823 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 14824 | else |
21d1c967 GD |
14825 | USE_GUI=0 |
14826 | ||
14827 | TOOLKIT_DIR="base" | |
14828 | ||
14829 | if test "$USE_WIN32" = 1 ; then | |
14830 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
14831 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
14832 | ||
14833 | TOOLKIT="MSW" | |
14834 | else | |
14835 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
14836 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
14837 | fi | |
14838 | ||
14839 | ALL_SOURCES="\$(ALL_SOURCES)" | |
14840 | ALL_HEADERS="\$(ALL_HEADERS)" | |
14841 | ||
14842 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
14843 | ||
14844 | GUIDIST="BASE_DIST" | |
14845 | DISTDIR="wxBase" | |
d836ee96 VZ |
14846 | fi |
14847 | ||
52127426 | 14848 | |
21d1c967 GD |
14849 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
14850 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
6232543b | 14851 | fi |
21d1c967 GD |
14852 | |
14853 | if test "$wxUSE_REGEX" = "builtin" ; then | |
14854 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 14855 | fi |
21d1c967 GD |
14856 | if test "$wxUSE_ZLIB" = "builtin" ; then |
14857 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
14858 | fi |
14859 | ||
52127426 | 14860 | |
21d1c967 GD |
14861 | if test "$wxUSE_OPENGL" = "yes"; then |
14862 | if test "$wxUSE_MAC" = 1; then | |
14863 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
14864 | elif test "$wxUSE_MSW" = 1; then | |
14865 | OPENGL_LIBS="-lopengl32 -lglu32" | |
14866 | else | |
52127426 JS |
14867 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
14868 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
dd0e4a90 | 14869 | echo "configure:14870: checking for GL/gl.h" >&5 |
52127426 JS |
14870 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14871 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14872 | else | |
14873 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 14874 | #line 14875 "configure" |
10f2d63a | 14875 | #include "confdefs.h" |
21d1c967 | 14876 | #include <GL/gl.h> |
52127426 JS |
14877 | EOF |
14878 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dd0e4a90 | 14879 | { (eval echo configure:14880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
52127426 JS |
14880 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14881 | if test -z "$ac_err"; then | |
14882 | rm -rf conftest* | |
14883 | eval "ac_cv_header_$ac_safe=yes" | |
328a083c | 14884 | else |
52127426 JS |
14885 | echo "$ac_err" >&5 |
14886 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 14887 | cat conftest.$ac_ext >&5 |
52127426 JS |
14888 | rm -rf conftest* |
14889 | eval "ac_cv_header_$ac_safe=no" | |
703e0a69 | 14890 | fi |
52127426 | 14891 | rm -f conftest* |
698dcdb6 | 14892 | fi |
52127426 JS |
14893 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14894 | echo "$ac_t""yes" 1>&6 | |
14895 | ||
14896 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
dd0e4a90 | 14897 | echo "configure:14898: checking for -lGL" >&5 |
52127426 | 14898 | |
21d1c967 GD |
14899 | ac_find_libraries= |
14900 | for ac_dir in $SEARCH_LIB; | |
14901 | do | |
14902 | for ac_extension in a so sl dylib; do | |
14903 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
14904 | ac_find_libraries=$ac_dir | |
14905 | break 2 | |
14906 | fi | |
14907 | done | |
14908 | done | |
14909 | ||
14910 | if test "$ac_find_libraries" != "" ; then | |
52127426 | 14911 | |
21d1c967 GD |
14912 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
14913 | result=$? | |
14914 | if test $result = 0; then | |
14915 | ac_path_to_link="" | |
14916 | else | |
14917 | ac_path_to_link=" -L$ac_find_libraries" | |
14918 | fi | |
14919 | ||
14920 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
14921 | LDFLAGS_GL="$LDFLAGS" | |
14922 | else | |
14923 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
14924 | fi | |
14925 | OPENGL_LIBS="-lGL -lGLU" | |
52127426 | 14926 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 14927 | else |
52127426 JS |
14928 | echo "$ac_t""no" 1>&6 |
14929 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
dd0e4a90 | 14930 | echo "configure:14931: checking for -lMesaGL" >&5 |
52127426 | 14931 | |
21d1c967 GD |
14932 | ac_find_libraries= |
14933 | for ac_dir in $SEARCH_LIB; | |
14934 | do | |
14935 | for ac_extension in a so sl dylib; do | |
14936 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
14937 | ac_find_libraries=$ac_dir | |
14938 | break 2 | |
14939 | fi | |
14940 | done | |
14941 | done | |
14942 | ||
14943 | if test "$ac_find_libraries" != "" ; then | |
52127426 | 14944 | |
21d1c967 GD |
14945 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
14946 | result=$? | |
14947 | if test $result = 0; then | |
14948 | ac_path_to_link="" | |
14949 | else | |
14950 | ac_path_to_link=" -L$ac_find_libraries" | |
14951 | fi | |
14952 | ||
14953 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
14954 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
52127426 | 14955 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 14956 | else |
52127426 | 14957 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
14958 | fi |
14959 | fi | |
52127426 JS |
14960 | |
14961 | else | |
14962 | echo "$ac_t""no" 1>&6 | |
7b4a847f | 14963 | fi |
579d8138 | 14964 | |
52127426 | 14965 | |
21d1c967 | 14966 | if test "x$OPENGL_LIBS" = "x"; then |
52127426 | 14967 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } |
21d1c967 GD |
14968 | fi |
14969 | fi | |
90dd450c | 14970 | |
21d1c967 | 14971 | if test "$wxUSE_OPENGL" = "yes"; then |
52127426 | 14972 | cat >> confdefs.h <<\EOF |
21d1c967 | 14973 | #define wxUSE_OPENGL 1 |
698dcdb6 | 14974 | EOF |
21d1c967 | 14975 | |
52127426 | 14976 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
14977 | #define wxUSE_GLCANVAS 1 |
14978 | EOF | |
14979 | ||
14980 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
14981 | fi | |
10f2d63a | 14982 | fi |
21d1c967 GD |
14983 | |
14984 | if test -z "$TOOLKIT_VPATH" ; then | |
14985 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 14986 | fi |
21d1c967 GD |
14987 | |
14988 | if test -n "$TOOLKIT" ; then | |
14989 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
14990 | fi | |
14991 | ||
14992 | lib_unicode_suffix= | |
14993 | if test "$wxUSE_UNICODE" = "yes"; then | |
14994 | lib_unicode_suffix=u | |
90dd450c | 14995 | fi |
698dcdb6 | 14996 | |
21d1c967 GD |
14997 | lib_debug_suffix= |
14998 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
14999 | lib_debug_suffix=d | |
15000 | fi | |
698dcdb6 | 15001 | |
21d1c967 GD |
15002 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
15003 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
15004 | ||
15005 | if test "$cross_compiling" = "yes"; then | |
15006 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
15007 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
15008 | fi | |
15009 | ||
15010 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
15011 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
15012 | ||
15013 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
15014 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
15015 | ||
15016 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
15017 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15018 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
15019 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15020 | ||
15021 | case "${host}" in | |
15022 | *-*-cygwin* | *-*-mingw32* ) | |
15023 | ||
52127426 JS |
15024 | |
15025 | ||
17234b26 | 15026 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
15027 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
15028 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
15029 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
15030 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15031 | else | |
15032 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15033 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15034 | fi | |
15035 | ;; | |
15036 | ||
15037 | *-*-darwin* ) | |
15038 | if test "$wxUSE_MAC" = 1; then | |
3bd8fb5f | 15039 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r" |
21d1c967 GD |
15040 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc" |
15041 | fi | |
15042 | ;; | |
15043 | esac | |
15044 | ||
15045 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
15046 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
15047 | ||
15048 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
15049 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
15050 | ||
15051 | if test "$wxUSE_OPENGL" = "yes"; then | |
15052 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
15053 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
15054 | fi | |
15055 | ||
52127426 JS |
15056 | |
15057 | ||
21d1c967 GD |
15058 | if test "$wxUSE_SHARED" = "yes"; then |
15059 | case "${host}" in | |
15060 | *-pc-os2_emx | *-pc-os2-emx | \ | |
15061 | *-pc-msdosdjgpp ) | |
15062 | wxUSE_SHARED=no | |
52127426 | 15063 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 |
21d1c967 GD |
15064 | ;; |
15065 | esac | |
15066 | fi | |
15067 | ||
15068 | if test "$wxUSE_SHARED" = "yes"; then | |
15069 | ||
15070 | if test "$wxUSE_OPENGL" = "yes"; then | |
15071 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
15072 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
15073 | else | |
15074 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
15075 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
15076 | fi | |
15077 | ||
15078 | if test "$GCC" = "yes"; then | |
15079 | PIC_FLAG="-fPIC" | |
15080 | fi | |
15081 | ||
15082 | SHARED_LD="${CXX} -shared -o" | |
15083 | ||
15084 | case "${host}" in | |
15085 | *-hp-hpux* ) | |
15086 | if test "$GCC" == "yes"; then | |
15087 | SHARED_LD="${SHARED_LD} ${PIC_FLAG}" | |
15088 | else | |
15089 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
15090 | ||
15091 | SHARED_LD="${CXX} -b -o" | |
15092 | PIC_FLAG="+Z" | |
15093 | fi | |
15094 | ||
15095 | if test "$wxUSE_OPENGL" = "yes"; then | |
15096 | WX_ALL_INSTALLED="preinstall_gl" | |
15097 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
15098 | else | |
15099 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
15100 | fi | |
15101 | ;; | |
15102 | ||
15103 | *-*-linux* ) | |
15104 | if test "$GCC" != "yes"; then | |
52127426 | 15105 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 |
dd0e4a90 | 15106 | echo "configure:15107: checking for Intel compiler" >&5 |
52127426 JS |
15107 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
15108 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15109 | else | |
15110 | ||
15111 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 15112 | #line 15113 "configure" |
698dcdb6 | 15113 | #include "confdefs.h" |
90dd450c | 15114 | |
52127426 | 15115 | int main() { |
90dd450c | 15116 | |
21d1c967 GD |
15117 | #ifndef __INTEL_COMPILER |
15118 | #error Not icc | |
15119 | #endif | |
52127426 JS |
15120 | |
15121 | ; return 0; } | |
15122 | EOF | |
dd0e4a90 | 15123 | if { (eval echo configure:15124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 | 15124 | rm -rf conftest* |
21d1c967 | 15125 | wx_cv_prog_icc=yes |
6232543b | 15126 | else |
52127426 JS |
15127 | echo "configure: failed program was:" >&5 |
15128 | cat conftest.$ac_ext >&5 | |
15129 | rm -rf conftest* | |
15130 | wx_cv_prog_icc=no | |
15131 | ||
328a083c | 15132 | fi |
52127426 JS |
15133 | rm -f conftest* |
15134 | ||
7b4a847f | 15135 | fi |
52127426 JS |
15136 | |
15137 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
21d1c967 GD |
15138 | if test "$wx_cv_prog_icc" = "yes"; then |
15139 | PIC_FLAG="-KPIC" | |
15140 | fi | |
15141 | fi | |
15142 | ||
15143 | if test "$wxUSE_SONAME" = "yes" ; then | |
15144 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
15145 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
15146 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
15147 | fi | |
15148 | ;; | |
15149 | ||
15150 | *-*-solaris2* ) | |
15151 | if test "$GCC" = yes ; then | |
15152 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
15153 | else | |
15154 | SHARED_LD="${CXX} -G -o" | |
15155 | PIC_FLAG="-KPIC" | |
15156 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
15157 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
15158 | fi | |
15159 | ;; | |
15160 | ||
15161 | *-*-darwin* ) | |
15162 | CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL" | |
15163 | CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL" | |
15164 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" | |
15165 | PIC_FLAG="-dynamic -fPIC" | |
15166 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}" | |
15167 | SONAME_FLAGS_GL=${SONAME_FLAGS} | |
15168 | ;; | |
15169 | ||
15170 | *-*-aix* ) | |
321d2b14 VZ |
15171 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. |
15172 | set dummy makeC++SharedLib; ac_word=$2 | |
52127426 | 15173 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
dd0e4a90 | 15174 | echo "configure:15175: checking for $ac_word" >&5 |
52127426 JS |
15175 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then |
15176 | echo $ac_n "(cached) $ac_c" 1>&6 | |
321d2b14 VZ |
15177 | else |
15178 | if test -n "$AIX_CXX_LD"; then | |
15179 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
15180 | else | |
52127426 JS |
15181 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15182 | ac_dummy="$PATH" | |
15183 | for ac_dir in $ac_dummy; do | |
15184 | test -z "$ac_dir" && ac_dir=. | |
15185 | if test -f $ac_dir/$ac_word; then | |
15186 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
15187 | break | |
15188 | fi | |
15189 | done | |
15190 | IFS="$ac_save_ifs" | |
321d2b14 VZ |
15191 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
15192 | fi | |
15193 | fi | |
52127426 | 15194 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" |
321d2b14 | 15195 | if test -n "$AIX_CXX_LD"; then |
52127426 | 15196 | echo "$ac_t""$AIX_CXX_LD" 1>&6 |
321d2b14 | 15197 | else |
52127426 | 15198 | echo "$ac_t""no" 1>&6 |
321d2b14 VZ |
15199 | fi |
15200 | ||
52127426 | 15201 | |
321d2b14 | 15202 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" |
21d1c967 GD |
15203 | ;; |
15204 | ||
15205 | *-*-cygwin* | *-*-mingw32* ) | |
15206 | ||
15207 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" | |
15208 | ||
15209 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
15210 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
15211 | ||
15212 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
15213 | ||
15214 | if test "$wxUSE_OPENGL" = "yes"; then | |
15215 | WX_ALL_INSTALLED="preinstall_gl" | |
15216 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
15217 | else | |
15218 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
15219 | fi | |
15220 | ;; | |
15221 | ||
15222 | *-*-beos* ) | |
15223 | SHARED_LD="${LD} -shared -o" | |
15224 | ;; | |
15225 | ||
15226 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
15227 | *-*-sunos4* | \ | |
15228 | *-*-irix5* | *-*-irix6* | \ | |
15229 | *-*-osf* | \ | |
15230 | *-*-dgux5* | \ | |
15231 | *-*-sysv5* ) | |
15232 | ;; | |
15233 | ||
15234 | *) | |
52127426 | 15235 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
21d1c967 GD |
15236 | esac |
15237 | ||
15238 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
15239 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
15240 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
15241 | fi | |
15242 | ||
15243 | WX_TARGET_LIBRARY_TYPE="so" | |
15244 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 15245 | fi |
10f2d63a | 15246 | |
21d1c967 GD |
15247 | if test "$wxUSE_SHARED" = "no"; then |
15248 | ||
15249 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
15250 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
15251 | fi | |
15252 | ||
15253 | if test "$wxUSE_MAC" = 1; then | |
15254 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
15255 | fi | |
15256 | ||
15257 | if test "$wxUSE_OPENGL" = "yes"; then | |
15258 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
15259 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
15260 | else | |
15261 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
15262 | fi | |
15263 | ||
15264 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
15265 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
15266 | ||
15267 | WX_TARGET_LIBRARY_TYPE="a" | |
15268 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
90dd450c | 15269 | fi |
1e487827 | 15270 | |
21d1c967 GD |
15271 | if test "$wxUSE_MAC" = 1; then |
15272 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
15273 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
15274 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
15275 | # Extract the first word of "Rez", so it can be a program name with args. | |
15276 | set dummy Rez; ac_word=$2 | |
52127426 | 15277 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
dd0e4a90 | 15278 | echo "configure:15279: checking for $ac_word" >&5 |
52127426 JS |
15279 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
15280 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b93d0d08 | 15281 | else |
21d1c967 GD |
15282 | if test -n "$RESCOMP"; then |
15283 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 15284 | else |
52127426 JS |
15285 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15286 | ac_dummy="$PATH" | |
15287 | for ac_dir in $ac_dummy; do | |
15288 | test -z "$ac_dir" && ac_dir=. | |
15289 | if test -f $ac_dir/$ac_word; then | |
15290 | ac_cv_prog_RESCOMP="Rez" | |
15291 | break | |
15292 | fi | |
15293 | done | |
15294 | IFS="$ac_save_ifs" | |
21d1c967 | 15295 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 15296 | fi |
b93d0d08 | 15297 | fi |
52127426 | 15298 | RESCOMP="$ac_cv_prog_RESCOMP" |
21d1c967 | 15299 | if test -n "$RESCOMP"; then |
52127426 | 15300 | echo "$ac_t""$RESCOMP" 1>&6 |
90dd450c | 15301 | else |
52127426 | 15302 | echo "$ac_t""no" 1>&6 |
90dd450c | 15303 | fi |
b93d0d08 | 15304 | |
21d1c967 GD |
15305 | # Extract the first word of "DeRez", so it can be a program name with args. |
15306 | set dummy DeRez; ac_word=$2 | |
52127426 | 15307 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
dd0e4a90 | 15308 | echo "configure:15309: checking for $ac_word" >&5 |
52127426 JS |
15309 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
15310 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3a922bb4 | 15311 | else |
21d1c967 GD |
15312 | if test -n "$DEREZ"; then |
15313 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 15314 | else |
52127426 JS |
15315 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15316 | ac_dummy="$PATH" | |
15317 | for ac_dir in $ac_dummy; do | |
15318 | test -z "$ac_dir" && ac_dir=. | |
15319 | if test -f $ac_dir/$ac_word; then | |
15320 | ac_cv_prog_DEREZ="DeRez" | |
15321 | break | |
15322 | fi | |
15323 | done | |
15324 | IFS="$ac_save_ifs" | |
21d1c967 | 15325 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 15326 | fi |
90dd450c | 15327 | fi |
52127426 | 15328 | DEREZ="$ac_cv_prog_DEREZ" |
21d1c967 | 15329 | if test -n "$DEREZ"; then |
52127426 | 15330 | echo "$ac_t""$DEREZ" 1>&6 |
90dd450c | 15331 | else |
52127426 | 15332 | echo "$ac_t""no" 1>&6 |
3a922bb4 | 15333 | fi |
698dcdb6 | 15334 | |
21d1c967 GD |
15335 | MACOSX_BUNDLE="bundle" |
15336 | if test "$wxUSE_SHARED" = "yes"; then | |
15337 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)" | |
15338 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o" | |
15339 | else | |
15340 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
15341 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
15342 | fi | |
15343 | else | |
15344 | if test "$wxUSE_PM" = 1; then | |
15345 | LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)" | |
90dd450c | 15346 | fi |
4f14bcd8 | 15347 | fi |
10f2d63a | 15348 | |
52127426 JS |
15349 | |
15350 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
dd0e4a90 | 15351 | echo "configure:15352: checking for ANSI C header files" >&5 |
52127426 JS |
15352 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
15353 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 15354 | else |
52127426 | 15355 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 15356 | #line 15357 "configure" |
579d8138 | 15357 | #include "confdefs.h" |
52127426 JS |
15358 | #include <stdlib.h> |
15359 | #include <stdarg.h> | |
15360 | #include <string.h> | |
15361 | #include <float.h> | |
15362 | EOF | |
15363 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dd0e4a90 | 15364 | { (eval echo configure:15365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
52127426 JS |
15365 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15366 | if test -z "$ac_err"; then | |
15367 | rm -rf conftest* | |
15368 | ac_cv_header_stdc=yes | |
15369 | else | |
15370 | echo "$ac_err" >&5 | |
15371 | echo "configure: failed program was:" >&5 | |
15372 | cat conftest.$ac_ext >&5 | |
15373 | rm -rf conftest* | |
15374 | ac_cv_header_stdc=no | |
15375 | fi | |
15376 | rm -f conftest* | |
15377 | ||
15378 | if test $ac_cv_header_stdc = yes; then | |
15379 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15380 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 15381 | #line 15382 "configure" |
52127426 JS |
15382 | #include "confdefs.h" |
15383 | #include <string.h> | |
15384 | EOF | |
15385 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15386 | egrep "memchr" >/dev/null 2>&1; then | |
15387 | : | |
10f2d63a | 15388 | else |
52127426 JS |
15389 | rm -rf conftest* |
15390 | ac_cv_header_stdc=no | |
579d8138 | 15391 | fi |
52127426 JS |
15392 | rm -f conftest* |
15393 | ||
579d8138 | 15394 | fi |
52127426 JS |
15395 | |
15396 | if test $ac_cv_header_stdc = yes; then | |
15397 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15398 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 15399 | #line 15400 "configure" |
52127426 JS |
15400 | #include "confdefs.h" |
15401 | #include <stdlib.h> | |
15402 | EOF | |
15403 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15404 | egrep "free" >/dev/null 2>&1; then | |
579d8138 VS |
15405 | : |
15406 | else | |
52127426 JS |
15407 | rm -rf conftest* |
15408 | ac_cv_header_stdc=no | |
15409 | fi | |
15410 | rm -f conftest* | |
579d8138 | 15411 | |
52127426 JS |
15412 | fi |
15413 | ||
15414 | if test $ac_cv_header_stdc = yes; then | |
15415 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15416 | if test "$cross_compiling" = yes; then | |
15417 | : | |
15418 | else | |
15419 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 15420 | #line 15421 "configure" |
52127426 JS |
15421 | #include "confdefs.h" |
15422 | #include <ctype.h> | |
15423 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15424 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15425 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15426 | int main () { int i; for (i = 0; i < 256; i++) | |
15427 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
15428 | exit (0); } | |
15429 | ||
15430 | EOF | |
dd0e4a90 | 15431 | if { (eval echo configure:15432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
52127426 JS |
15432 | then |
15433 | : | |
15434 | else | |
15435 | echo "configure: failed program was:" >&5 | |
15436 | cat conftest.$ac_ext >&5 | |
15437 | rm -fr conftest* | |
15438 | ac_cv_header_stdc=no | |
15439 | fi | |
15440 | rm -fr conftest* | |
15441 | fi | |
15442 | ||
15443 | fi | |
15444 | fi | |
15445 | ||
15446 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
15447 | if test $ac_cv_header_stdc = yes; then | |
15448 | cat >> confdefs.h <<\EOF | |
15449 | #define STDC_HEADERS 1 | |
579d8138 VS |
15450 | EOF |
15451 | ||
15452 | fi | |
15453 | ||
52127426 | 15454 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
dd0e4a90 | 15455 | echo "configure:15456: checking for mode_t" >&5 |
52127426 JS |
15456 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
15457 | echo $ac_n "(cached) $ac_c" 1>&6 | |
579d8138 | 15458 | else |
52127426 | 15459 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 15460 | #line 15461 "configure" |
579d8138 | 15461 | #include "confdefs.h" |
52127426 JS |
15462 | #include <sys/types.h> |
15463 | #if STDC_HEADERS | |
15464 | #include <stdlib.h> | |
15465 | #include <stddef.h> | |
15466 | #endif | |
15467 | EOF | |
15468 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15469 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15470 | rm -rf conftest* | |
15471 | ac_cv_type_mode_t=yes | |
328a083c | 15472 | else |
52127426 JS |
15473 | rm -rf conftest* |
15474 | ac_cv_type_mode_t=no | |
579d8138 | 15475 | fi |
52127426 JS |
15476 | rm -f conftest* |
15477 | ||
579d8138 | 15478 | fi |
52127426 JS |
15479 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
15480 | if test $ac_cv_type_mode_t = no; then | |
15481 | cat >> confdefs.h <<\EOF | |
15482 | #define mode_t int | |
15483 | EOF | |
15484 | ||
15485 | fi | |
15486 | ||
15487 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
dd0e4a90 | 15488 | echo "configure:15489: checking for off_t" >&5 |
52127426 JS |
15489 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
15490 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15491 | else | |
15492 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 15493 | #line 15494 "configure" |
52127426 JS |
15494 | #include "confdefs.h" |
15495 | #include <sys/types.h> | |
15496 | #if STDC_HEADERS | |
15497 | #include <stdlib.h> | |
15498 | #include <stddef.h> | |
15499 | #endif | |
15500 | EOF | |
15501 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15502 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15503 | rm -rf conftest* | |
15504 | ac_cv_type_off_t=yes | |
7b4a847f | 15505 | else |
52127426 JS |
15506 | rm -rf conftest* |
15507 | ac_cv_type_off_t=no | |
15508 | fi | |
15509 | rm -f conftest* | |
7b4a847f | 15510 | |
52127426 JS |
15511 | fi |
15512 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
15513 | if test $ac_cv_type_off_t = no; then | |
15514 | cat >> confdefs.h <<\EOF | |
90dd450c | 15515 | #define off_t long |
10f2d63a VZ |
15516 | EOF |
15517 | ||
90dd450c | 15518 | fi |
10f2d63a | 15519 | |
52127426 | 15520 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
dd0e4a90 | 15521 | echo "configure:15522: checking for pid_t" >&5 |
52127426 JS |
15522 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
15523 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 15524 | else |
52127426 | 15525 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 15526 | #line 15527 "configure" |
10f2d63a | 15527 | #include "confdefs.h" |
52127426 JS |
15528 | #include <sys/types.h> |
15529 | #if STDC_HEADERS | |
15530 | #include <stdlib.h> | |
15531 | #include <stddef.h> | |
15532 | #endif | |
15533 | EOF | |
15534 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15535 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15536 | rm -rf conftest* | |
90dd450c | 15537 | ac_cv_type_pid_t=yes |
698dcdb6 | 15538 | else |
52127426 JS |
15539 | rm -rf conftest* |
15540 | ac_cv_type_pid_t=no | |
579d8138 | 15541 | fi |
52127426 | 15542 | rm -f conftest* |
7b4a847f | 15543 | |
52127426 JS |
15544 | fi |
15545 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
15546 | if test $ac_cv_type_pid_t = no; then | |
15547 | cat >> confdefs.h <<\EOF | |
90dd450c | 15548 | #define pid_t int |
10f2d63a VZ |
15549 | EOF |
15550 | ||
7b4a847f RR |
15551 | fi |
15552 | ||
52127426 | 15553 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
dd0e4a90 | 15554 | echo "configure:15555: checking for size_t" >&5 |
52127426 JS |
15555 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
15556 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 15557 | else |
52127426 | 15558 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 15559 | #line 15560 "configure" |
7b4a847f | 15560 | #include "confdefs.h" |
52127426 JS |
15561 | #include <sys/types.h> |
15562 | #if STDC_HEADERS | |
15563 | #include <stdlib.h> | |
15564 | #include <stddef.h> | |
15565 | #endif | |
15566 | EOF | |
15567 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15568 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15569 | rm -rf conftest* | |
90dd450c | 15570 | ac_cv_type_size_t=yes |
18dbb1f6 | 15571 | else |
52127426 JS |
15572 | rm -rf conftest* |
15573 | ac_cv_type_size_t=no | |
18dbb1f6 | 15574 | fi |
52127426 | 15575 | rm -f conftest* |
7b4a847f | 15576 | |
52127426 JS |
15577 | fi |
15578 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
15579 | if test $ac_cv_type_size_t = no; then | |
15580 | cat >> confdefs.h <<\EOF | |
90dd450c VZ |
15581 | #define size_t unsigned |
15582 | EOF | |
15583 | ||
15584 | fi | |
15585 | ||
52127426 | 15586 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
dd0e4a90 | 15587 | echo "configure:15588: checking for uid_t in sys/types.h" >&5 |
52127426 JS |
15588 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
15589 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a | 15590 | else |
52127426 | 15591 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 15592 | #line 15593 "configure" |
b3e8d00a | 15593 | #include "confdefs.h" |
90dd450c | 15594 | #include <sys/types.h> |
52127426 | 15595 | EOF |
90dd450c VZ |
15596 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15597 | egrep "uid_t" >/dev/null 2>&1; then | |
52127426 | 15598 | rm -rf conftest* |
90dd450c | 15599 | ac_cv_type_uid_t=yes |
b3e8d00a | 15600 | else |
52127426 | 15601 | rm -rf conftest* |
90dd450c | 15602 | ac_cv_type_uid_t=no |
b3e8d00a | 15603 | fi |
90dd450c | 15604 | rm -f conftest* |
b3e8d00a | 15605 | |
4f14bcd8 | 15606 | fi |
7b4a847f | 15607 | |
52127426 JS |
15608 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
15609 | if test $ac_cv_type_uid_t = no; then | |
15610 | cat >> confdefs.h <<\EOF | |
90dd450c VZ |
15611 | #define uid_t int |
15612 | EOF | |
15613 | ||
52127426 | 15614 | cat >> confdefs.h <<\EOF |
90dd450c | 15615 | #define gid_t int |
b3e8d00a | 15616 | EOF |
4f14bcd8 | 15617 | |
b3e8d00a | 15618 | fi |
b3e8d00a | 15619 | |
52127426 JS |
15620 | |
15621 | ||
15622 | ac_ext=C | |
15623 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 15624 | ac_cpp='$CXXCPP $CPPFLAGS' |
52127426 JS |
15625 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15626 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15627 | cross_compiling=$ac_cv_prog_cxx_cross | |
90dd450c | 15628 | |
52127426 | 15629 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
dd0e4a90 | 15630 | echo "configure:15631: checking if size_t is unsigned int" >&5 |
52127426 JS |
15631 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
15632 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 15633 | else |
52127426 | 15634 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 15635 | #line 15636 "configure" |
10f2d63a | 15636 | #include "confdefs.h" |
90dd450c | 15637 | #include <stddef.h> |
52127426 | 15638 | int main() { |
90dd450c VZ |
15639 | |
15640 | return 0; } | |
15641 | ||
15642 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
15643 | ||
15644 | int bar() { | |
52127426 JS |
15645 | |
15646 | ; return 0; } | |
15647 | EOF | |
dd0e4a90 | 15648 | if { (eval echo configure:15649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 | 15649 | rm -rf conftest* |
90dd450c | 15650 | wx_cv_size_t_is_uint=no |
698dcdb6 | 15651 | else |
52127426 JS |
15652 | echo "configure: failed program was:" >&5 |
15653 | cat conftest.$ac_ext >&5 | |
15654 | rm -rf conftest* | |
15655 | wx_cv_size_t_is_uint=yes | |
15656 | ||
328a083c | 15657 | fi |
52127426 | 15658 | rm -f conftest* |
579d8138 | 15659 | |
7b4a847f | 15660 | fi |
52127426 JS |
15661 | |
15662 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
4f14bcd8 | 15663 | |
90dd450c | 15664 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
52127426 | 15665 | cat >> confdefs.h <<\EOF |
90dd450c | 15666 | #define wxSIZE_T_IS_UINT 1 |
698dcdb6 VZ |
15667 | EOF |
15668 | ||
90dd450c | 15669 | else |
52127426 | 15670 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 |
dd0e4a90 | 15671 | echo "configure:15672: checking if size_t is unsigned long" >&5 |
52127426 JS |
15672 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
15673 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 15674 | else |
52127426 | 15675 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 15676 | #line 15677 "configure" |
10f2d63a | 15677 | #include "confdefs.h" |
90dd450c | 15678 | #include <stddef.h> |
52127426 | 15679 | int main() { |
90dd450c VZ |
15680 | |
15681 | return 0; } | |
15682 | ||
15683 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
15684 | ||
15685 | int bar() { | |
52127426 JS |
15686 | |
15687 | ; return 0; } | |
15688 | EOF | |
dd0e4a90 | 15689 | if { (eval echo configure:15690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 | 15690 | rm -rf conftest* |
90dd450c | 15691 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 15692 | else |
52127426 JS |
15693 | echo "configure: failed program was:" >&5 |
15694 | cat conftest.$ac_ext >&5 | |
15695 | rm -rf conftest* | |
15696 | wx_cv_size_t_is_ulong=yes | |
15697 | ||
328a083c | 15698 | fi |
52127426 JS |
15699 | rm -f conftest* |
15700 | ||
7b4a847f | 15701 | fi |
52127426 JS |
15702 | |
15703 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
10f2d63a | 15704 | |
90dd450c | 15705 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
52127426 | 15706 | cat >> confdefs.h <<\EOF |
90dd450c | 15707 | #define wxSIZE_T_IS_ULONG 1 |
4f14bcd8 GD |
15708 | EOF |
15709 | ||
15710 | fi | |
90dd450c | 15711 | fi |
1e487827 | 15712 | |
90dd450c | 15713 | ac_ext=c |
52127426 | 15714 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 15715 | ac_cpp='$CPP $CPPFLAGS' |
52127426 JS |
15716 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15717 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15718 | cross_compiling=$ac_cv_prog_cc_cross | |
15719 | ||
698dcdb6 | 15720 | |
7b4a847f | 15721 | |
52127426 | 15722 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
dd0e4a90 | 15723 | echo "configure:15724: checking for pw_gecos in struct passwd" >&5 |
52127426 JS |
15724 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
15725 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15726 | else | |
15727 | ||
15728 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 15729 | #line 15730 "configure" |
4f14bcd8 | 15730 | #include "confdefs.h" |
90dd450c | 15731 | #include <pwd.h> |
52127426 | 15732 | int main() { |
f6bcfd97 | 15733 | |
90dd450c VZ |
15734 | char *p; |
15735 | struct passwd *pw; | |
15736 | p = pw->pw_gecos; | |
52127426 JS |
15737 | |
15738 | ; return 0; } | |
15739 | EOF | |
dd0e4a90 | 15740 | if { (eval echo configure:15741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 JS |
15741 | rm -rf conftest* |
15742 | ||
90dd450c | 15743 | wx_cv_struct_pw_gecos=yes |
52127426 | 15744 | |
10f2d63a | 15745 | else |
52127426 JS |
15746 | echo "configure: failed program was:" >&5 |
15747 | cat conftest.$ac_ext >&5 | |
15748 | rm -rf conftest* | |
15749 | ||
90dd450c | 15750 | wx_cv_struct_pw_gecos=no |
52127426 JS |
15751 | |
15752 | ||
328a083c | 15753 | fi |
52127426 JS |
15754 | rm -f conftest* |
15755 | ||
579d8138 | 15756 | |
7b4a847f | 15757 | fi |
52127426 JS |
15758 | |
15759 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
c521c494 | 15760 | |
90dd450c | 15761 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
52127426 | 15762 | cat >> confdefs.h <<\EOF |
90dd450c | 15763 | #define HAVE_PW_GECOS 1 |
4f14bcd8 | 15764 | EOF |
c521c494 | 15765 | |
90dd450c | 15766 | fi |
4f14bcd8 | 15767 | |
52127426 | 15768 | |
d29b553b VZ |
15769 | WCHAR_OK=0 |
15770 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
15771 | WCHAR_LINK= | |
52127426 | 15772 | for ac_func in wcslen |
7a30264c | 15773 | do |
52127426 | 15774 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dd0e4a90 | 15775 | echo "configure:15776: checking for $ac_func" >&5 |
52127426 JS |
15776 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15777 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15778 | else | |
15779 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 15780 | #line 15781 "configure" |
4f14bcd8 | 15781 | #include "confdefs.h" |
7a30264c | 15782 | /* System header to define __stub macros and hopefully few prototypes, |
52127426 | 15783 | which can conflict with char $ac_func(); below. */ |
7a30264c | 15784 | #include <assert.h> |
4f14bcd8 GD |
15785 | /* Override any gcc2 internal prototype to avoid an error. */ |
15786 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
15787 | builtin and then its argument prototype would still apply. */ |
15788 | char $ac_func(); | |
15789 | ||
15790 | int main() { | |
7a30264c VZ |
15791 | |
15792 | /* The GNU C library defines this for functions which it implements | |
15793 | to always fail with ENOSYS. Some functions are actually named | |
15794 | something starting with __ and the normal name is an alias. */ | |
15795 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15796 | choke me | |
15797 | #else | |
52127426 | 15798 | $ac_func(); |
7a30264c VZ |
15799 | #endif |
15800 | ||
52127426 JS |
15801 | ; return 0; } |
15802 | EOF | |
dd0e4a90 | 15803 | if { (eval echo configure:15804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
15804 | rm -rf conftest* |
15805 | eval "ac_cv_func_$ac_func=yes" | |
15806 | else | |
15807 | echo "configure: failed program was:" >&5 | |
15808 | cat conftest.$ac_ext >&5 | |
15809 | rm -rf conftest* | |
15810 | eval "ac_cv_func_$ac_func=no" | |
15811 | fi | |
15812 | rm -f conftest* | |
15813 | fi | |
15814 | ||
15815 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15816 | echo "$ac_t""yes" 1>&6 | |
15817 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15818 | cat >> confdefs.h <<EOF | |
15819 | #define $ac_tr_func 1 | |
15820 | EOF | |
15821 | ||
15822 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 15823 | #define HAVE_WCSLEN 1 |
9d8deca0 VZ |
15824 | EOF |
15825 | ||
7a30264c | 15826 | WCHAR_OK=1 |
52127426 JS |
15827 | |
15828 | else | |
15829 | echo "$ac_t""no" 1>&6 | |
7a30264c VZ |
15830 | fi |
15831 | done | |
9d8deca0 | 15832 | |
52127426 | 15833 | |
7a30264c VZ |
15834 | if test "$WCHAR_OK" = 0; then |
15835 | if test "$TOOLKIT" = "MSW"; then | |
52127426 | 15836 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
dd0e4a90 | 15837 | echo "configure:15838: checking for wcslen in -lmsvcrt" >&5 |
52127426 JS |
15838 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
15839 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15840 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15841 | else |
52127426 | 15842 | ac_save_LIBS="$LIBS" |
7a30264c | 15843 | LIBS="-lmsvcrt $LIBS" |
52127426 | 15844 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 15845 | #line 15846 "configure" |
10f2d63a | 15846 | #include "confdefs.h" |
4f14bcd8 GD |
15847 | /* Override any gcc2 internal prototype to avoid an error. */ |
15848 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
15849 | builtin and then its argument prototype would still apply. */ |
15850 | char wcslen(); | |
15851 | ||
15852 | int main() { | |
15853 | wcslen() | |
15854 | ; return 0; } | |
15855 | EOF | |
dd0e4a90 | 15856 | if { (eval echo configure:15857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
15857 | rm -rf conftest* |
15858 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15859 | else | |
15860 | echo "configure: failed program was:" >&5 | |
15861 | cat conftest.$ac_ext >&5 | |
15862 | rm -rf conftest* | |
15863 | eval "ac_cv_lib_$ac_lib_var=no" | |
15864 | fi | |
15865 | rm -f conftest* | |
15866 | LIBS="$ac_save_LIBS" | |
15867 | ||
15868 | fi | |
15869 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15870 | echo "$ac_t""yes" 1>&6 | |
15871 | ||
15872 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 15873 | #define HAVE_WCSLEN 1 |
9d8deca0 VZ |
15874 | EOF |
15875 | ||
7a30264c | 15876 | WCHAR_OK=1 |
52127426 JS |
15877 | |
15878 | else | |
15879 | echo "$ac_t""no" 1>&6 | |
d29b553b | 15880 | fi |
698dcdb6 | 15881 | |
7a30264c | 15882 | else |
52127426 | 15883 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
dd0e4a90 | 15884 | echo "configure:15885: checking for wcslen in -lw" >&5 |
52127426 JS |
15885 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
15886 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15887 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 15888 | else |
52127426 | 15889 | ac_save_LIBS="$LIBS" |
7a30264c | 15890 | LIBS="-lw $LIBS" |
52127426 | 15891 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 15892 | #line 15893 "configure" |
95c8801c | 15893 | #include "confdefs.h" |
4f14bcd8 GD |
15894 | /* Override any gcc2 internal prototype to avoid an error. */ |
15895 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
15896 | builtin and then its argument prototype would still apply. */ |
15897 | char wcslen(); | |
15898 | ||
15899 | int main() { | |
15900 | wcslen() | |
15901 | ; return 0; } | |
15902 | EOF | |
dd0e4a90 | 15903 | if { (eval echo configure:15904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
15904 | rm -rf conftest* |
15905 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15906 | else | |
15907 | echo "configure: failed program was:" >&5 | |
15908 | cat conftest.$ac_ext >&5 | |
15909 | rm -rf conftest* | |
15910 | eval "ac_cv_lib_$ac_lib_var=no" | |
15911 | fi | |
15912 | rm -f conftest* | |
15913 | LIBS="$ac_save_LIBS" | |
15914 | ||
15915 | fi | |
15916 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15917 | echo "$ac_t""yes" 1>&6 | |
15918 | ||
15919 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
15920 | #define HAVE_WCSLEN 1 |
15921 | EOF | |
698dcdb6 | 15922 | |
7a30264c VZ |
15923 | WCHAR_LINK=" -lw" |
15924 | WCHAR_OK=1 | |
52127426 JS |
15925 | |
15926 | else | |
15927 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 15928 | fi |
10f2d63a | 15929 | |
7a30264c | 15930 | fi |
d29b553b | 15931 | fi |
4f14bcd8 | 15932 | fi |
95c8801c | 15933 | |
d29b553b | 15934 | if test "$WCHAR_OK" = 1; then |
52127426 | 15935 | cat >> confdefs.h <<\EOF |
d29b553b VZ |
15936 | #define wxUSE_WCHAR_T 1 |
15937 | EOF | |
10f2d63a | 15938 | |
52127426 JS |
15939 | |
15940 | for ac_func in wcsrtombs | |
eb4efbdc | 15941 | do |
52127426 | 15942 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dd0e4a90 | 15943 | echo "configure:15944: checking for $ac_func" >&5 |
52127426 JS |
15944 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15945 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15946 | else | |
15947 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 15948 | #line 15949 "configure" |
eb4efbdc VZ |
15949 | #include "confdefs.h" |
15950 | /* System header to define __stub macros and hopefully few prototypes, | |
52127426 | 15951 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
15952 | #include <assert.h> |
15953 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15954 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
15955 | builtin and then its argument prototype would still apply. */ |
15956 | char $ac_func(); | |
15957 | ||
15958 | int main() { | |
eb4efbdc VZ |
15959 | |
15960 | /* The GNU C library defines this for functions which it implements | |
15961 | to always fail with ENOSYS. Some functions are actually named | |
15962 | something starting with __ and the normal name is an alias. */ | |
15963 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15964 | choke me | |
15965 | #else | |
52127426 | 15966 | $ac_func(); |
eb4efbdc VZ |
15967 | #endif |
15968 | ||
52127426 | 15969 | ; return 0; } |
eb4efbdc | 15970 | EOF |
dd0e4a90 | 15971 | if { (eval echo configure:15972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
15972 | rm -rf conftest* |
15973 | eval "ac_cv_func_$ac_func=yes" | |
15974 | else | |
15975 | echo "configure: failed program was:" >&5 | |
15976 | cat conftest.$ac_ext >&5 | |
15977 | rm -rf conftest* | |
15978 | eval "ac_cv_func_$ac_func=no" | |
15979 | fi | |
15980 | rm -f conftest* | |
15981 | fi | |
eb4efbdc | 15982 | |
52127426 JS |
15983 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15984 | echo "$ac_t""yes" 1>&6 | |
15985 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15986 | cat >> confdefs.h <<EOF | |
15987 | #define $ac_tr_func 1 | |
15988 | EOF | |
15989 | ||
15990 | else | |
15991 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15992 | fi |
15993 | done | |
15994 | ||
d29b553b | 15995 | else |
a1ea5055 | 15996 | if test "$USE_DARWIN" = 1; then |
52127426 | 15997 | cat >> confdefs.h <<\EOF |
a1ea5055 GD |
15998 | #define wxUSE_WCHAR_T 1 |
15999 | EOF | |
16000 | ||
16001 | else | |
52127426 | 16002 | echo "configure: warning: Wide character support is unavailable" 1>&2 |
a1ea5055 | 16003 | fi |
d29b553b | 16004 | fi |
698dcdb6 | 16005 | |
52127426 | 16006 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
dd0e4a90 | 16007 | echo "configure:16008: checking for vprintf" >&5 |
52127426 JS |
16008 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
16009 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16010 | else | |
16011 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 16012 | #line 16013 "configure" |
f6bcfd97 | 16013 | #include "confdefs.h" |
4f14bcd8 | 16014 | /* System header to define __stub macros and hopefully few prototypes, |
52127426 | 16015 | which can conflict with char vprintf(); below. */ |
4f14bcd8 GD |
16016 | #include <assert.h> |
16017 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16018 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
16019 | builtin and then its argument prototype would still apply. */ |
16020 | char vprintf(); | |
16021 | ||
16022 | int main() { | |
f6bcfd97 | 16023 | |
4f14bcd8 GD |
16024 | /* The GNU C library defines this for functions which it implements |
16025 | to always fail with ENOSYS. Some functions are actually named | |
16026 | something starting with __ and the normal name is an alias. */ | |
52127426 | 16027 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
4f14bcd8 GD |
16028 | choke me |
16029 | #else | |
52127426 | 16030 | vprintf(); |
4f14bcd8 | 16031 | #endif |
f6bcfd97 | 16032 | |
52127426 JS |
16033 | ; return 0; } |
16034 | EOF | |
dd0e4a90 | 16035 | if { (eval echo configure:16036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
16036 | rm -rf conftest* |
16037 | eval "ac_cv_func_vprintf=yes" | |
16038 | else | |
16039 | echo "configure: failed program was:" >&5 | |
16040 | cat conftest.$ac_ext >&5 | |
16041 | rm -rf conftest* | |
16042 | eval "ac_cv_func_vprintf=no" | |
16043 | fi | |
16044 | rm -f conftest* | |
16045 | fi | |
16046 | ||
16047 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
16048 | echo "$ac_t""yes" 1>&6 | |
16049 | cat >> confdefs.h <<\EOF | |
16050 | #define HAVE_VPRINTF 1 | |
16051 | EOF | |
16052 | ||
16053 | else | |
16054 | echo "$ac_t""no" 1>&6 | |
16055 | fi | |
16056 | ||
16057 | if test "$ac_cv_func_vprintf" != yes; then | |
16058 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
dd0e4a90 | 16059 | echo "configure:16060: checking for _doprnt" >&5 |
52127426 JS |
16060 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
16061 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16062 | else | |
16063 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 16064 | #line 16065 "configure" |
10f2d63a VZ |
16065 | #include "confdefs.h" |
16066 | /* System header to define __stub macros and hopefully few prototypes, | |
52127426 | 16067 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
16068 | #include <assert.h> |
16069 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16070 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
16071 | builtin and then its argument prototype would still apply. */ |
16072 | char _doprnt(); | |
16073 | ||
16074 | int main() { | |
10f2d63a VZ |
16075 | |
16076 | /* The GNU C library defines this for functions which it implements | |
16077 | to always fail with ENOSYS. Some functions are actually named | |
16078 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 16079 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
16080 | choke me |
16081 | #else | |
52127426 | 16082 | _doprnt(); |
10f2d63a VZ |
16083 | #endif |
16084 | ||
52127426 JS |
16085 | ; return 0; } |
16086 | EOF | |
dd0e4a90 | 16087 | if { (eval echo configure:16088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
16088 | rm -rf conftest* |
16089 | eval "ac_cv_func__doprnt=yes" | |
16090 | else | |
16091 | echo "configure: failed program was:" >&5 | |
16092 | cat conftest.$ac_ext >&5 | |
16093 | rm -rf conftest* | |
16094 | eval "ac_cv_func__doprnt=no" | |
16095 | fi | |
16096 | rm -f conftest* | |
16097 | fi | |
16098 | ||
16099 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
16100 | echo "$ac_t""yes" 1>&6 | |
16101 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 16102 | #define HAVE_DOPRNT 1 |
698dcdb6 | 16103 | EOF |
4f14bcd8 | 16104 | |
52127426 JS |
16105 | else |
16106 | echo "$ac_t""no" 1>&6 | |
270a909e | 16107 | fi |
270a909e | 16108 | |
4f14bcd8 | 16109 | fi |
1e487827 | 16110 | |
7b4a847f | 16111 | |
52127426 JS |
16112 | |
16113 | ||
16114 | ||
16115 | ||
16116 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 | |
dd0e4a90 | 16117 | echo "configure:16118: checking for vsnprintf" >&5 |
52127426 JS |
16118 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
16119 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16120 | else | |
16121 | ||
16122 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 16123 | #line 16124 "configure" |
c63c7106 | 16124 | #include "confdefs.h" |
698dcdb6 | 16125 | |
4f14bcd8 GD |
16126 | #include <stdio.h> |
16127 | #include <stdarg.h> | |
52127426 JS |
16128 | |
16129 | int main() { | |
af15babd | 16130 | |
4f14bcd8 GD |
16131 | int wx_test_vsnprintf(const char *, ...); |
16132 | ||
16133 | wx_test_vsnprintf("%s"); | |
16134 | return 0; | |
16135 | } | |
16136 | ||
16137 | int wx_test_vsnprintf(const char *fmt, ...) | |
16138 | { | |
16139 | char *s; | |
16140 | ||
16141 | va_list argp; | |
16142 | va_start(argp, fmt); | |
16143 | vsnprintf(s, 42, fmt, argp); | |
16144 | va_end(argp); | |
52127426 JS |
16145 | |
16146 | ; return 0; } | |
16147 | EOF | |
dd0e4a90 | 16148 | if { (eval echo configure:16149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
16149 | rm -rf conftest* |
16150 | ||
4f14bcd8 | 16151 | wx_cv_func_vsnprintf=yes |
52127426 | 16152 | |
af15babd | 16153 | else |
52127426 JS |
16154 | echo "configure: failed program was:" >&5 |
16155 | cat conftest.$ac_ext >&5 | |
16156 | rm -rf conftest* | |
16157 | ||
16158 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 16159 | #line 16160 "configure" |
af15babd | 16160 | #include "confdefs.h" |
af15babd | 16161 | |
4f14bcd8 GD |
16162 | #include <stdio.h> |
16163 | #include <stdarg.h> | |
52127426 JS |
16164 | |
16165 | int main() { | |
af15babd | 16166 | |
4f14bcd8 GD |
16167 | int wx_test_vsnprintf(const char *, ...); |
16168 | ||
16169 | wx_test_vsnprintf("%s"); | |
16170 | return 0; | |
16171 | } | |
16172 | ||
16173 | int wx_test_vsnprintf(const char *fmt, ...) | |
16174 | { | |
16175 | char *s; | |
af15babd | 16176 | |
4f14bcd8 GD |
16177 | va_list argp; |
16178 | va_start(argp, fmt); | |
16179 | _vsnprintf(s, 42, fmt, argp); | |
16180 | va_end(argp); | |
52127426 JS |
16181 | |
16182 | ; return 0; } | |
16183 | EOF | |
dd0e4a90 | 16184 | if { (eval echo configure:16185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
16185 | rm -rf conftest* |
16186 | ||
4f14bcd8 | 16187 | wx_cv_func_vsnprintf=yes |
52127426 | 16188 | |
af15babd | 16189 | else |
52127426 JS |
16190 | echo "configure: failed program was:" >&5 |
16191 | cat conftest.$ac_ext >&5 | |
16192 | rm -rf conftest* | |
16193 | ||
4f14bcd8 | 16194 | wx_cv_func_vsnprintf=no |
52127426 | 16195 | |
af15babd | 16196 | fi |
52127426 JS |
16197 | rm -f conftest* |
16198 | ||
328a083c | 16199 | fi |
52127426 | 16200 | rm -f conftest* |
579d8138 | 16201 | |
7b4a847f | 16202 | fi |
52127426 JS |
16203 | |
16204 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 | |
af15babd | 16205 | |
4f14bcd8 | 16206 | if test "$wx_cv_func_vsnprintf" = yes; then |
52127426 | 16207 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
16208 | #define HAVE_VSNPRINTF 1 |
16209 | EOF | |
16210 | ||
16211 | else | |
52127426 | 16212 | echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2 |
af15babd VZ |
16213 | fi |
16214 | ||
52127426 | 16215 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
dd0e4a90 | 16216 | echo "configure:16217: checking for vsscanf" >&5 |
52127426 JS |
16217 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
16218 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 16219 | else |
52127426 JS |
16220 | |
16221 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 16222 | #line 16223 "configure" |
af15babd | 16223 | #include "confdefs.h" |
af15babd | 16224 | |
4f14bcd8 GD |
16225 | #include <stdio.h> |
16226 | #include <stdarg.h> | |
52127426 JS |
16227 | |
16228 | int main() { | |
af15babd | 16229 | |
4f14bcd8 GD |
16230 | int wx_test_vsscanf(const char *, ...); |
16231 | ||
16232 | wx_test_vsscanf("%d"); | |
16233 | return 0; | |
16234 | } | |
af15babd | 16235 | |
4f14bcd8 GD |
16236 | int wx_test_vsscanf(const char *fmt, ...) |
16237 | { | |
16238 | va_list argp; | |
16239 | va_start(argp, fmt); | |
16240 | vsscanf("42", fmt, argp); | |
16241 | va_end(argp); | |
52127426 JS |
16242 | |
16243 | ; return 0; } | |
16244 | EOF | |
dd0e4a90 | 16245 | if { (eval echo configure:16246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 JS |
16246 | rm -rf conftest* |
16247 | ||
4f14bcd8 | 16248 | wx_cv_func_vsscanf=yes |
52127426 | 16249 | |
af15babd | 16250 | else |
52127426 JS |
16251 | echo "configure: failed program was:" >&5 |
16252 | cat conftest.$ac_ext >&5 | |
16253 | rm -rf conftest* | |
16254 | ||
4f14bcd8 | 16255 | wx_cv_func_vsscanf=no |
52127426 | 16256 | |
328a083c | 16257 | fi |
52127426 | 16258 | rm -f conftest* |
579d8138 | 16259 | |
7b4a847f | 16260 | fi |
52127426 JS |
16261 | |
16262 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
4f14bcd8 GD |
16263 | |
16264 | if test "$wx_cv_func_vsscanf" = yes; then | |
52127426 | 16265 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 16266 | #define HAVE_VSSCANF 1 |
af15babd | 16267 | EOF |
4f14bcd8 | 16268 | |
af15babd | 16269 | fi |
af15babd | 16270 | |
4f14bcd8 | 16271 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 16272 | |
52127426 JS |
16273 | |
16274 | ||
16275 | ac_ext=C | |
16276 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 16277 | ac_cpp='$CXXCPP $CPPFLAGS' |
52127426 JS |
16278 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16279 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16280 | cross_compiling=$ac_cv_prog_cxx_cross | |
579d8138 | 16281 | |
52127426 JS |
16282 | |
16283 | ||
16284 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
16285 | if test "${with_libiconv_prefix+set}" = set; then |
16286 | withval="$with_libiconv_prefix" | |
52127426 | 16287 | |
b040e242 VS |
16288 | for dir in `echo "$withval" | tr : ' '`; do |
16289 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
16290 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
16291 | done | |
52127426 JS |
16292 | |
16293 | fi | |
b040e242 VS |
16294 | |
16295 | ||
52127426 | 16296 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
dd0e4a90 | 16297 | echo "configure:16298: checking for iconv" >&5 |
52127426 JS |
16298 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
16299 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 16300 | else |
52127426 | 16301 | |
b040e242 VS |
16302 | am_cv_func_iconv="no, consider installing GNU libiconv" |
16303 | am_cv_lib_iconv=no | |
52127426 | 16304 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 16305 | #line 16306 "configure" |
af15babd | 16306 | #include "confdefs.h" |
b040e242 | 16307 | #include <stdlib.h> |
4f14bcd8 | 16308 | #include <iconv.h> |
52127426 | 16309 | int main() { |
b040e242 VS |
16310 | iconv_t cd = iconv_open("",""); |
16311 | iconv(cd,NULL,NULL,NULL,NULL); | |
16312 | iconv_close(cd); | |
52127426 JS |
16313 | ; return 0; } |
16314 | EOF | |
dd0e4a90 | 16315 | if { (eval echo configure:16316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 | 16316 | rm -rf conftest* |
b040e242 | 16317 | am_cv_func_iconv=yes |
af15babd | 16318 | else |
52127426 JS |
16319 | echo "configure: failed program was:" >&5 |
16320 | cat conftest.$ac_ext >&5 | |
b040e242 | 16321 | fi |
52127426 | 16322 | rm -f conftest* |
b040e242 VS |
16323 | if test "$am_cv_func_iconv" != yes; then |
16324 | am_save_LIBS="$LIBS" | |
16325 | LIBS="$LIBS -liconv" | |
52127426 | 16326 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 16327 | #line 16328 "configure" |
b040e242 VS |
16328 | #include "confdefs.h" |
16329 | #include <stdlib.h> | |
16330 | #include <iconv.h> | |
52127426 | 16331 | int main() { |
b040e242 VS |
16332 | iconv_t cd = iconv_open("",""); |
16333 | iconv(cd,NULL,NULL,NULL,NULL); | |
16334 | iconv_close(cd); | |
52127426 JS |
16335 | ; return 0; } |
16336 | EOF | |
dd0e4a90 | 16337 | if { (eval echo configure:16338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 | 16338 | rm -rf conftest* |
b040e242 VS |
16339 | am_cv_lib_iconv=yes |
16340 | am_cv_func_iconv=yes | |
16341 | else | |
52127426 JS |
16342 | echo "configure: failed program was:" >&5 |
16343 | cat conftest.$ac_ext >&5 | |
af15babd | 16344 | fi |
52127426 | 16345 | rm -f conftest* |
b040e242 VS |
16346 | LIBS="$am_save_LIBS" |
16347 | fi | |
52127426 | 16348 | |
7b4a847f | 16349 | fi |
7b4a847f | 16350 | |
52127426 JS |
16351 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
16352 | if test "$am_cv_func_iconv" = yes; then | |
16353 | cat >> confdefs.h <<\EOF | |
b040e242 VS |
16354 | #define HAVE_ICONV 1 |
16355 | EOF | |
16356 | ||
52127426 | 16357 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
dd0e4a90 | 16358 | echo "configure:16359: checking if iconv needs const" >&5 |
52127426 JS |
16359 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
16360 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b040e242 | 16361 | else |
52127426 | 16362 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 16363 | #line 16364 "configure" |
b040e242 VS |
16364 | #include "confdefs.h" |
16365 | ||
16366 | #include <stdlib.h> | |
16367 | #include <iconv.h> | |
16368 | extern | |
16369 | #ifdef __cplusplus | |
16370 | "C" | |
16371 | #endif | |
16372 | #if defined(__STDC__) || defined(__cplusplus) | |
16373 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
16374 | #else | |
16375 | size_t iconv(); | |
16376 | #endif | |
52127426 JS |
16377 | |
16378 | int main() { | |
af15babd | 16379 | |
52127426 JS |
16380 | ; return 0; } |
16381 | EOF | |
dd0e4a90 | 16382 | if { (eval echo configure:16383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 | 16383 | rm -rf conftest* |
b7043674 | 16384 | wx_cv_func_iconv_const="no" |
b040e242 | 16385 | else |
52127426 JS |
16386 | echo "configure: failed program was:" >&5 |
16387 | cat conftest.$ac_ext >&5 | |
16388 | rm -rf conftest* | |
16389 | wx_cv_func_iconv_const="yes" | |
16390 | ||
328a083c | 16391 | fi |
52127426 JS |
16392 | rm -f conftest* |
16393 | ||
7b4a847f | 16394 | fi |
52127426 JS |
16395 | |
16396 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 | |
b7043674 VZ |
16397 | |
16398 | iconv_const= | |
1c405bb5 | 16399 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
16400 | iconv_const="const" |
16401 | fi | |
16402 | ||
52127426 | 16403 | cat >> confdefs.h <<EOF |
f09359cf | 16404 | #define ICONV_CONST $iconv_const |
b040e242 VS |
16405 | EOF |
16406 | ||
16407 | fi | |
16408 | LIBICONV= | |
16409 | if test "$am_cv_lib_iconv" = yes; then | |
16410 | LIBICONV="-liconv" | |
16411 | fi | |
52127426 | 16412 | |
b040e242 VS |
16413 | |
16414 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 16415 | ac_ext=c |
52127426 | 16416 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 16417 | ac_cpp='$CPP $CPPFLAGS' |
52127426 JS |
16418 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16419 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16420 | cross_compiling=$ac_cv_prog_cc_cross | |
328a083c | 16421 | |
7b4a847f | 16422 | |
52127426 JS |
16423 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
16424 | for ac_func in sigaction | |
af15babd | 16425 | do |
52127426 | 16426 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dd0e4a90 | 16427 | echo "configure:16428: checking for $ac_func" >&5 |
52127426 JS |
16428 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16429 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16430 | else | |
16431 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 16432 | #line 16433 "configure" |
af15babd VZ |
16433 | #include "confdefs.h" |
16434 | /* System header to define __stub macros and hopefully few prototypes, | |
52127426 | 16435 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16436 | #include <assert.h> |
16437 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16438 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
16439 | builtin and then its argument prototype would still apply. */ |
16440 | char $ac_func(); | |
16441 | ||
16442 | int main() { | |
af15babd VZ |
16443 | |
16444 | /* The GNU C library defines this for functions which it implements | |
16445 | to always fail with ENOSYS. Some functions are actually named | |
16446 | something starting with __ and the normal name is an alias. */ | |
16447 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16448 | choke me | |
16449 | #else | |
52127426 | 16450 | $ac_func(); |
af15babd VZ |
16451 | #endif |
16452 | ||
52127426 | 16453 | ; return 0; } |
579d8138 | 16454 | EOF |
dd0e4a90 | 16455 | if { (eval echo configure:16456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
16456 | rm -rf conftest* |
16457 | eval "ac_cv_func_$ac_func=yes" | |
16458 | else | |
16459 | echo "configure: failed program was:" >&5 | |
16460 | cat conftest.$ac_ext >&5 | |
16461 | rm -rf conftest* | |
16462 | eval "ac_cv_func_$ac_func=no" | |
16463 | fi | |
16464 | rm -f conftest* | |
16465 | fi | |
7b4a847f | 16466 | |
52127426 JS |
16467 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16468 | echo "$ac_t""yes" 1>&6 | |
16469 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16470 | cat >> confdefs.h <<EOF | |
16471 | #define $ac_tr_func 1 | |
16472 | EOF | |
16473 | ||
16474 | else | |
16475 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16476 | fi |
16477 | done | |
16478 | ||
52127426 | 16479 | |
4f14bcd8 | 16480 | if test "$ac_cv_func_sigaction" = "no"; then |
52127426 | 16481 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
4f14bcd8 GD |
16482 | wxUSE_ON_FATAL_EXCEPTION=no |
16483 | fi | |
16484 | ||
16485 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
52127426 JS |
16486 | |
16487 | ac_ext=C | |
16488 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7b4a847f | 16489 | ac_cpp='$CXXCPP $CPPFLAGS' |
52127426 JS |
16490 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16491 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16492 | cross_compiling=$ac_cv_prog_cxx_cross | |
328a083c | 16493 | |
7b4a847f | 16494 | |
52127426 | 16495 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
dd0e4a90 | 16496 | echo "configure:16497: checking for sa_handler type" >&5 |
52127426 JS |
16497 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
16498 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16499 | else | |
16500 | ||
16501 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 16502 | #line 16503 "configure" |
af15babd | 16503 | #include "confdefs.h" |
4f14bcd8 | 16504 | #include <signal.h> |
52127426 | 16505 | int main() { |
4f14bcd8 GD |
16506 | |
16507 | extern void testSigHandler(int); | |
16508 | ||
16509 | struct sigaction sa; | |
16510 | sa.sa_handler = testSigHandler; | |
52127426 JS |
16511 | |
16512 | ; return 0; } | |
16513 | EOF | |
dd0e4a90 | 16514 | if { (eval echo configure:16515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 JS |
16515 | rm -rf conftest* |
16516 | ||
4f14bcd8 | 16517 | wx_cv_type_sa_handler=int |
52127426 | 16518 | |
af15babd | 16519 | else |
52127426 JS |
16520 | echo "configure: failed program was:" >&5 |
16521 | cat conftest.$ac_ext >&5 | |
16522 | rm -rf conftest* | |
16523 | ||
4f14bcd8 | 16524 | wx_cv_type_sa_handler=void |
52127426 | 16525 | |
328a083c | 16526 | fi |
52127426 JS |
16527 | rm -f conftest* |
16528 | ||
7b4a847f | 16529 | fi |
52127426 JS |
16530 | |
16531 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
4f14bcd8 GD |
16532 | |
16533 | ac_ext=c | |
52127426 | 16534 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 16535 | ac_cpp='$CPP $CPPFLAGS' |
52127426 JS |
16536 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16537 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16538 | cross_compiling=$ac_cv_prog_cc_cross | |
16539 | ||
579d8138 | 16540 | |
52127426 | 16541 | cat >> confdefs.h <<EOF |
4f14bcd8 | 16542 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
af15babd VZ |
16543 | EOF |
16544 | ||
4f14bcd8 GD |
16545 | fi |
16546 | fi | |
af15babd | 16547 | |
4f14bcd8 | 16548 | for ac_func in vfork |
af15babd | 16549 | do |
52127426 | 16550 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dd0e4a90 | 16551 | echo "configure:16552: checking for $ac_func" >&5 |
52127426 JS |
16552 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16553 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16554 | else | |
16555 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 16556 | #line 16557 "configure" |
af15babd VZ |
16557 | #include "confdefs.h" |
16558 | /* System header to define __stub macros and hopefully few prototypes, | |
52127426 | 16559 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16560 | #include <assert.h> |
16561 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16562 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
16563 | builtin and then its argument prototype would still apply. */ |
16564 | char $ac_func(); | |
16565 | ||
16566 | int main() { | |
af15babd VZ |
16567 | |
16568 | /* The GNU C library defines this for functions which it implements | |
16569 | to always fail with ENOSYS. Some functions are actually named | |
16570 | something starting with __ and the normal name is an alias. */ | |
16571 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16572 | choke me | |
16573 | #else | |
52127426 | 16574 | $ac_func(); |
af15babd VZ |
16575 | #endif |
16576 | ||
52127426 | 16577 | ; return 0; } |
af15babd | 16578 | EOF |
dd0e4a90 | 16579 | if { (eval echo configure:16580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
16580 | rm -rf conftest* |
16581 | eval "ac_cv_func_$ac_func=yes" | |
16582 | else | |
16583 | echo "configure: failed program was:" >&5 | |
16584 | cat conftest.$ac_ext >&5 | |
16585 | rm -rf conftest* | |
16586 | eval "ac_cv_func_$ac_func=no" | |
16587 | fi | |
16588 | rm -f conftest* | |
16589 | fi | |
af15babd | 16590 | |
52127426 JS |
16591 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16592 | echo "$ac_t""yes" 1>&6 | |
16593 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16594 | cat >> confdefs.h <<EOF | |
16595 | #define $ac_tr_func 1 | |
16596 | EOF | |
16597 | ||
16598 | else | |
16599 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16600 | fi |
16601 | done | |
16602 | ||
52127426 | 16603 | |
ade35f11 VZ |
16604 | for ac_func in mkstemp mktemp |
16605 | do | |
52127426 | 16606 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dd0e4a90 | 16607 | echo "configure:16608: checking for $ac_func" >&5 |
52127426 JS |
16608 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16609 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16610 | else | |
16611 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 16612 | #line 16613 "configure" |
ade35f11 VZ |
16613 | #include "confdefs.h" |
16614 | /* System header to define __stub macros and hopefully few prototypes, | |
52127426 | 16615 | which can conflict with char $ac_func(); below. */ |
ade35f11 VZ |
16616 | #include <assert.h> |
16617 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16618 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
16619 | builtin and then its argument prototype would still apply. */ |
16620 | char $ac_func(); | |
16621 | ||
16622 | int main() { | |
ade35f11 VZ |
16623 | |
16624 | /* The GNU C library defines this for functions which it implements | |
16625 | to always fail with ENOSYS. Some functions are actually named | |
16626 | something starting with __ and the normal name is an alias. */ | |
16627 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16628 | choke me | |
16629 | #else | |
52127426 | 16630 | $ac_func(); |
ade35f11 VZ |
16631 | #endif |
16632 | ||
52127426 JS |
16633 | ; return 0; } |
16634 | EOF | |
dd0e4a90 | 16635 | if { (eval echo configure:16636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
16636 | rm -rf conftest* |
16637 | eval "ac_cv_func_$ac_func=yes" | |
16638 | else | |
16639 | echo "configure: failed program was:" >&5 | |
16640 | cat conftest.$ac_ext >&5 | |
16641 | rm -rf conftest* | |
16642 | eval "ac_cv_func_$ac_func=no" | |
16643 | fi | |
16644 | rm -f conftest* | |
16645 | fi | |
16646 | ||
16647 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16648 | echo "$ac_t""yes" 1>&6 | |
16649 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16650 | cat >> confdefs.h <<EOF | |
16651 | #define $ac_tr_func 1 | |
ade35f11 VZ |
16652 | EOF |
16653 | break | |
52127426 JS |
16654 | else |
16655 | echo "$ac_t""no" 1>&6 | |
ade35f11 VZ |
16656 | fi |
16657 | done | |
16658 | ||
52127426 JS |
16659 | |
16660 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 | |
dd0e4a90 | 16661 | echo "configure:16662: checking for statfs" >&5 |
52127426 JS |
16662 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
16663 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 16664 | else |
52127426 | 16665 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 16666 | #line 16667 "configure" |
4f14bcd8 GD |
16667 | #include "confdefs.h" |
16668 | ||
16669 | #if defined(__BSD__) | |
16670 | #include <sys/param.h> | |
16671 | #include <sys/mount.h> | |
16672 | #else | |
16673 | #include <sys/vfs.h> | |
16674 | #endif | |
52127426 JS |
16675 | |
16676 | int main() { | |
4f14bcd8 GD |
16677 | |
16678 | long l; | |
16679 | struct statfs fs; | |
16680 | statfs("/", &fs); | |
16681 | l = fs.f_bsize; | |
16682 | l += fs.f_blocks; | |
16683 | l += fs.f_bavail; | |
52127426 JS |
16684 | |
16685 | ; return 0; } | |
16686 | EOF | |
dd0e4a90 | 16687 | if { (eval echo configure:16688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 JS |
16688 | rm -rf conftest* |
16689 | ||
4f14bcd8 | 16690 | wx_cv_func_statfs=yes |
52127426 | 16691 | |
4f14bcd8 | 16692 | else |
52127426 JS |
16693 | echo "configure: failed program was:" >&5 |
16694 | cat conftest.$ac_ext >&5 | |
16695 | rm -rf conftest* | |
16696 | ||
4f14bcd8 | 16697 | wx_cv_func_statfs=no |
52127426 JS |
16698 | |
16699 | ||
328a083c | 16700 | fi |
52127426 | 16701 | rm -f conftest* |
579d8138 | 16702 | |
7b4a847f | 16703 | fi |
52127426 JS |
16704 | |
16705 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
4f14bcd8 GD |
16706 | |
16707 | if test "$wx_cv_func_statfs" = "yes"; then | |
52127426 | 16708 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
16709 | #define HAVE_STATFS 1 |
16710 | EOF | |
16711 | ||
16712 | else | |
52127426 | 16713 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 |
dd0e4a90 | 16714 | echo "configure:16715: checking for statvfs" >&5 |
52127426 JS |
16715 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
16716 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 16717 | else |
52127426 | 16718 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 16719 | #line 16720 "configure" |
af15babd | 16720 | #include "confdefs.h" |
af15babd | 16721 | |
4f14bcd8 | 16722 | #include <sys/statvfs.h> |
52127426 JS |
16723 | |
16724 | int main() { | |
af15babd | 16725 | |
4f14bcd8 GD |
16726 | long l; |
16727 | struct statvfs fs; | |
16728 | statvfs("/", &fs); | |
16729 | l = fs.f_bsize; | |
16730 | l += fs.f_blocks; | |
16731 | l += fs.f_bavail; | |
52127426 JS |
16732 | |
16733 | ; return 0; } | |
16734 | EOF | |
dd0e4a90 | 16735 | if { (eval echo configure:16736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 JS |
16736 | rm -rf conftest* |
16737 | ||
4f14bcd8 | 16738 | wx_cv_func_statvfs=yes |
52127426 | 16739 | |
af15babd | 16740 | else |
52127426 JS |
16741 | echo "configure: failed program was:" >&5 |
16742 | cat conftest.$ac_ext >&5 | |
16743 | rm -rf conftest* | |
16744 | ||
4f14bcd8 | 16745 | wx_cv_func_statvfs=no |
52127426 JS |
16746 | |
16747 | ||
328a083c | 16748 | fi |
52127426 JS |
16749 | rm -f conftest* |
16750 | ||
7b4a847f | 16751 | fi |
52127426 JS |
16752 | |
16753 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 | |
af15babd | 16754 | |
4f14bcd8 | 16755 | if test "$wx_cv_func_statvfs" = "yes"; then |
52127426 | 16756 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
16757 | #define HAVE_STATVFS 1 |
16758 | EOF | |
af15babd | 16759 | |
4f14bcd8 | 16760 | else |
52127426 | 16761 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 |
4f14bcd8 GD |
16762 | fi |
16763 | fi | |
af15babd | 16764 | |
4f14bcd8 | 16765 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
52127426 | 16766 | for ac_func in fcntl flock |
af15babd | 16767 | do |
52127426 | 16768 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dd0e4a90 | 16769 | echo "configure:16770: checking for $ac_func" >&5 |
52127426 JS |
16770 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16772 | else | |
16773 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 16774 | #line 16775 "configure" |
af15babd VZ |
16775 | #include "confdefs.h" |
16776 | /* System header to define __stub macros and hopefully few prototypes, | |
52127426 | 16777 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16778 | #include <assert.h> |
16779 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd | 16780 | /* We use char because int might match the return type of a gcc2 |
52127426 JS |
16781 | builtin and then its argument prototype would still apply. */ |
16782 | char $ac_func(); | |
16783 | ||
16784 | int main() { | |
af15babd VZ |
16785 | |
16786 | /* The GNU C library defines this for functions which it implements | |
16787 | to always fail with ENOSYS. Some functions are actually named | |
16788 | something starting with __ and the normal name is an alias. */ | |
16789 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16790 | choke me | |
16791 | #else | |
52127426 | 16792 | $ac_func(); |
af15babd VZ |
16793 | #endif |
16794 | ||
52127426 JS |
16795 | ; return 0; } |
16796 | EOF | |
dd0e4a90 | 16797 | if { (eval echo configure:16798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
16798 | rm -rf conftest* |
16799 | eval "ac_cv_func_$ac_func=yes" | |
16800 | else | |
16801 | echo "configure: failed program was:" >&5 | |
16802 | cat conftest.$ac_ext >&5 | |
16803 | rm -rf conftest* | |
16804 | eval "ac_cv_func_$ac_func=no" | |
16805 | fi | |
16806 | rm -f conftest* | |
16807 | fi | |
16808 | ||
16809 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16810 | echo "$ac_t""yes" 1>&6 | |
16811 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16812 | cat >> confdefs.h <<EOF | |
16813 | #define $ac_tr_func 1 | |
af15babd | 16814 | EOF |
4f14bcd8 | 16815 | break |
52127426 JS |
16816 | else |
16817 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16818 | fi |
16819 | done | |
16820 | ||
52127426 | 16821 | |
4f14bcd8 | 16822 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
52127426 | 16823 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f14bcd8 GD |
16824 | wxUSE_SNGLINST_CHECKER=no |
16825 | fi | |
16826 | fi | |
af15babd | 16827 | |
4f14bcd8 | 16828 | for ac_func in timegm |
af15babd | 16829 | do |
52127426 | 16830 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dd0e4a90 | 16831 | echo "configure:16832: checking for $ac_func" >&5 |
52127426 JS |
16832 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16833 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16834 | else | |
16835 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 16836 | #line 16837 "configure" |
af15babd VZ |
16837 | #include "confdefs.h" |
16838 | /* System header to define __stub macros and hopefully few prototypes, | |
52127426 | 16839 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16840 | #include <assert.h> |
16841 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16842 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
16843 | builtin and then its argument prototype would still apply. */ |
16844 | char $ac_func(); | |
16845 | ||
16846 | int main() { | |
698dcdb6 | 16847 | |
af15babd VZ |
16848 | /* The GNU C library defines this for functions which it implements |
16849 | to always fail with ENOSYS. Some functions are actually named | |
16850 | something starting with __ and the normal name is an alias. */ | |
16851 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16852 | choke me | |
16853 | #else | |
52127426 | 16854 | $ac_func(); |
af15babd VZ |
16855 | #endif |
16856 | ||
52127426 | 16857 | ; return 0; } |
698dcdb6 | 16858 | EOF |
dd0e4a90 | 16859 | if { (eval echo configure:16860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
16860 | rm -rf conftest* |
16861 | eval "ac_cv_func_$ac_func=yes" | |
16862 | else | |
16863 | echo "configure: failed program was:" >&5 | |
16864 | cat conftest.$ac_ext >&5 | |
16865 | rm -rf conftest* | |
16866 | eval "ac_cv_func_$ac_func=no" | |
16867 | fi | |
16868 | rm -f conftest* | |
16869 | fi | |
703e0a69 | 16870 | |
52127426 JS |
16871 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16872 | echo "$ac_t""yes" 1>&6 | |
16873 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16874 | cat >> confdefs.h <<EOF | |
16875 | #define $ac_tr_func 1 | |
16876 | EOF | |
16877 | ||
16878 | else | |
16879 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16880 | fi |
16881 | done | |
16882 | ||
52127426 | 16883 | |
4f14bcd8 | 16884 | for ac_func in putenv setenv |
10f2d63a | 16885 | do |
52127426 | 16886 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dd0e4a90 | 16887 | echo "configure:16888: checking for $ac_func" >&5 |
52127426 JS |
16888 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16889 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16890 | else | |
16891 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 16892 | #line 16893 "configure" |
af15babd VZ |
16893 | #include "confdefs.h" |
16894 | /* System header to define __stub macros and hopefully few prototypes, | |
52127426 | 16895 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16896 | #include <assert.h> |
16897 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16898 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
16899 | builtin and then its argument prototype would still apply. */ |
16900 | char $ac_func(); | |
16901 | ||
16902 | int main() { | |
af15babd VZ |
16903 | |
16904 | /* The GNU C library defines this for functions which it implements | |
16905 | to always fail with ENOSYS. Some functions are actually named | |
16906 | something starting with __ and the normal name is an alias. */ | |
16907 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16908 | choke me | |
16909 | #else | |
52127426 | 16910 | $ac_func(); |
af15babd VZ |
16911 | #endif |
16912 | ||
52127426 JS |
16913 | ; return 0; } |
16914 | EOF | |
dd0e4a90 | 16915 | if { (eval echo configure:16916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
16916 | rm -rf conftest* |
16917 | eval "ac_cv_func_$ac_func=yes" | |
16918 | else | |
16919 | echo "configure: failed program was:" >&5 | |
16920 | cat conftest.$ac_ext >&5 | |
16921 | rm -rf conftest* | |
16922 | eval "ac_cv_func_$ac_func=no" | |
16923 | fi | |
16924 | rm -f conftest* | |
16925 | fi | |
16926 | ||
16927 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16928 | echo "$ac_t""yes" 1>&6 | |
16929 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16930 | cat >> confdefs.h <<EOF | |
16931 | #define $ac_tr_func 1 | |
af15babd | 16932 | EOF |
4f14bcd8 | 16933 | break |
52127426 JS |
16934 | else |
16935 | echo "$ac_t""no" 1>&6 | |
af15babd | 16936 | fi |
af15babd VZ |
16937 | done |
16938 | ||
52127426 | 16939 | |
4f14bcd8 GD |
16940 | HAVE_SOME_SLEEP_FUNC=0 |
16941 | if test "$USE_BEOS" = 1; then | |
52127426 | 16942 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 16943 | #define HAVE_SLEEP 1 |
af15babd VZ |
16944 | EOF |
16945 | ||
4f14bcd8 | 16946 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16947 | fi |
16948 | ||
4f14bcd8 | 16949 | if test "$USE_DARWIN" = 1; then |
52127426 | 16950 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 16951 | #define HAVE_USLEEP 1 |
af15babd | 16952 | EOF |
10f2d63a | 16953 | |
4f14bcd8 | 16954 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16955 | fi |
16956 | ||
4f14bcd8 GD |
16957 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
16958 | POSIX4_LINK= | |
52127426 | 16959 | for ac_func in nanosleep |
4f14bcd8 | 16960 | do |
52127426 | 16961 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dd0e4a90 | 16962 | echo "configure:16963: checking for $ac_func" >&5 |
52127426 JS |
16963 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16964 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16965 | else | |
16966 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 16967 | #line 16968 "configure" |
10f2d63a | 16968 | #include "confdefs.h" |
4f14bcd8 | 16969 | /* System header to define __stub macros and hopefully few prototypes, |
52127426 | 16970 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 16971 | #include <assert.h> |
10f2d63a VZ |
16972 | /* Override any gcc2 internal prototype to avoid an error. */ |
16973 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
16974 | builtin and then its argument prototype would still apply. */ |
16975 | char $ac_func(); | |
16976 | ||
16977 | int main() { | |
4f14bcd8 GD |
16978 | |
16979 | /* The GNU C library defines this for functions which it implements | |
16980 | to always fail with ENOSYS. Some functions are actually named | |
16981 | something starting with __ and the normal name is an alias. */ | |
16982 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16983 | choke me | |
16984 | #else | |
52127426 | 16985 | $ac_func(); |
4f14bcd8 GD |
16986 | #endif |
16987 | ||
52127426 JS |
16988 | ; return 0; } |
16989 | EOF | |
dd0e4a90 | 16990 | if { (eval echo configure:16991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
16991 | rm -rf conftest* |
16992 | eval "ac_cv_func_$ac_func=yes" | |
16993 | else | |
16994 | echo "configure: failed program was:" >&5 | |
16995 | cat conftest.$ac_ext >&5 | |
16996 | rm -rf conftest* | |
16997 | eval "ac_cv_func_$ac_func=no" | |
16998 | fi | |
16999 | rm -f conftest* | |
17000 | fi | |
17001 | ||
17002 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17003 | echo "$ac_t""yes" 1>&6 | |
17004 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17005 | cat >> confdefs.h <<EOF | |
17006 | #define $ac_tr_func 1 | |
17007 | EOF | |
17008 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17009 | #define HAVE_NANOSLEEP 1 |
17010 | EOF | |
17011 | ||
10f2d63a | 17012 | else |
52127426 JS |
17013 | echo "$ac_t""no" 1>&6 |
17014 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
dd0e4a90 | 17015 | echo "configure:17016: checking for nanosleep in -lposix4" >&5 |
52127426 JS |
17016 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
17017 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17018 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17019 | else |
52127426 | 17020 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17021 | LIBS="-lposix4 $LIBS" |
52127426 | 17022 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 17023 | #line 17024 "configure" |
10f2d63a VZ |
17024 | #include "confdefs.h" |
17025 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17026 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
17027 | builtin and then its argument prototype would still apply. */ |
17028 | char nanosleep(); | |
17029 | ||
17030 | int main() { | |
17031 | nanosleep() | |
17032 | ; return 0; } | |
17033 | EOF | |
dd0e4a90 | 17034 | if { (eval echo configure:17035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
17035 | rm -rf conftest* |
17036 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17037 | else | |
17038 | echo "configure: failed program was:" >&5 | |
17039 | cat conftest.$ac_ext >&5 | |
17040 | rm -rf conftest* | |
17041 | eval "ac_cv_lib_$ac_lib_var=no" | |
17042 | fi | |
17043 | rm -f conftest* | |
17044 | LIBS="$ac_save_LIBS" | |
17045 | ||
17046 | fi | |
17047 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17048 | echo "$ac_t""yes" 1>&6 | |
17049 | ||
17050 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17051 | #define HAVE_NANOSLEEP 1 |
17052 | EOF | |
17053 | ||
3d63bc3a | 17054 | POSIX4_LINK=" -lposix4" |
52127426 | 17055 | |
10f2d63a | 17056 | else |
52127426 | 17057 | echo "$ac_t""no" 1>&6 |
10f2d63a | 17058 | |
52127426 | 17059 | for ac_func in usleep |
4f14bcd8 | 17060 | do |
52127426 | 17061 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dd0e4a90 | 17062 | echo "configure:17063: checking for $ac_func" >&5 |
52127426 JS |
17063 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17064 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17065 | else | |
17066 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 17067 | #line 17068 "configure" |
10f2d63a | 17068 | #include "confdefs.h" |
4f14bcd8 | 17069 | /* System header to define __stub macros and hopefully few prototypes, |
52127426 | 17070 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17071 | #include <assert.h> |
17072 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17073 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
17074 | builtin and then its argument prototype would still apply. */ |
17075 | char $ac_func(); | |
17076 | ||
17077 | int main() { | |
4f14bcd8 GD |
17078 | |
17079 | /* The GNU C library defines this for functions which it implements | |
17080 | to always fail with ENOSYS. Some functions are actually named | |
17081 | something starting with __ and the normal name is an alias. */ | |
17082 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17083 | choke me | |
17084 | #else | |
52127426 | 17085 | $ac_func(); |
4f14bcd8 GD |
17086 | #endif |
17087 | ||
52127426 JS |
17088 | ; return 0; } |
17089 | EOF | |
dd0e4a90 | 17090 | if { (eval echo configure:17091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
17091 | rm -rf conftest* |
17092 | eval "ac_cv_func_$ac_func=yes" | |
17093 | else | |
17094 | echo "configure: failed program was:" >&5 | |
17095 | cat conftest.$ac_ext >&5 | |
17096 | rm -rf conftest* | |
17097 | eval "ac_cv_func_$ac_func=no" | |
17098 | fi | |
17099 | rm -f conftest* | |
17100 | fi | |
17101 | ||
17102 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17103 | echo "$ac_t""yes" 1>&6 | |
17104 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17105 | cat >> confdefs.h <<EOF | |
17106 | #define $ac_tr_func 1 | |
17107 | EOF | |
17108 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17109 | #define HAVE_USLEEP 1 |
17110 | EOF | |
17111 | ||
698dcdb6 | 17112 | else |
52127426 JS |
17113 | echo "$ac_t""no" 1>&6 |
17114 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
17115 | ||
10f2d63a | 17116 | fi |
4f14bcd8 | 17117 | done |
10f2d63a | 17118 | |
52127426 JS |
17119 | |
17120 | ||
6232543b | 17121 | fi |
10f2d63a | 17122 | |
52127426 JS |
17123 | |
17124 | ||
1e487827 | 17125 | fi |
4f14bcd8 | 17126 | done |
703e0a69 | 17127 | |
10f2d63a VZ |
17128 | fi |
17129 | ||
4f14bcd8 | 17130 | for ac_func in uname gethostname |
70846f0a | 17131 | do |
52127426 | 17132 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dd0e4a90 | 17133 | echo "configure:17134: checking for $ac_func" >&5 |
52127426 JS |
17134 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17135 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17136 | else | |
17137 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 17138 | #line 17139 "configure" |
70846f0a VZ |
17139 | #include "confdefs.h" |
17140 | /* System header to define __stub macros and hopefully few prototypes, | |
52127426 | 17141 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
17142 | #include <assert.h> |
17143 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17144 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
17145 | builtin and then its argument prototype would still apply. */ |
17146 | char $ac_func(); | |
17147 | ||
17148 | int main() { | |
70846f0a VZ |
17149 | |
17150 | /* The GNU C library defines this for functions which it implements | |
17151 | to always fail with ENOSYS. Some functions are actually named | |
17152 | something starting with __ and the normal name is an alias. */ | |
17153 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17154 | choke me | |
17155 | #else | |
52127426 | 17156 | $ac_func(); |
70846f0a VZ |
17157 | #endif |
17158 | ||
52127426 JS |
17159 | ; return 0; } |
17160 | EOF | |
dd0e4a90 | 17161 | if { (eval echo configure:17162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
17162 | rm -rf conftest* |
17163 | eval "ac_cv_func_$ac_func=yes" | |
17164 | else | |
17165 | echo "configure: failed program was:" >&5 | |
17166 | cat conftest.$ac_ext >&5 | |
17167 | rm -rf conftest* | |
17168 | eval "ac_cv_func_$ac_func=no" | |
17169 | fi | |
17170 | rm -f conftest* | |
17171 | fi | |
17172 | ||
17173 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17174 | echo "$ac_t""yes" 1>&6 | |
17175 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17176 | cat >> confdefs.h <<EOF | |
17177 | #define $ac_tr_func 1 | |
698dcdb6 | 17178 | EOF |
4f14bcd8 | 17179 | break |
52127426 JS |
17180 | else |
17181 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
17182 | fi |
17183 | done | |
17184 | ||
52127426 JS |
17185 | |
17186 | ||
17187 | ac_ext=C | |
17188 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 17189 | ac_cpp='$CXXCPP $CPPFLAGS' |
52127426 JS |
17190 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17191 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17192 | cross_compiling=$ac_cv_prog_cxx_cross | |
17193 | ||
4f14bcd8 GD |
17194 | |
17195 | for ac_func in strtok_r | |
10f2d63a | 17196 | do |
52127426 | 17197 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dd0e4a90 | 17198 | echo "configure:17199: checking for $ac_func" >&5 |
52127426 JS |
17199 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17200 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17201 | else | |
17202 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 17203 | #line 17204 "configure" |
10f2d63a | 17204 | #include "confdefs.h" |
4f14bcd8 | 17205 | /* System header to define __stub macros and hopefully few prototypes, |
52127426 | 17206 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17207 | #include <assert.h> |
17208 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17209 | #ifdef __cplusplus | |
17210 | extern "C" | |
17211 | #endif | |
17212 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
17213 | builtin and then its argument prototype would still apply. */ |
17214 | char $ac_func(); | |
17215 | ||
17216 | int main() { | |
4f14bcd8 GD |
17217 | |
17218 | /* The GNU C library defines this for functions which it implements | |
17219 | to always fail with ENOSYS. Some functions are actually named | |
17220 | something starting with __ and the normal name is an alias. */ | |
17221 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17222 | choke me | |
17223 | #else | |
52127426 | 17224 | $ac_func(); |
4f14bcd8 GD |
17225 | #endif |
17226 | ||
52127426 | 17227 | ; return 0; } |
698dcdb6 | 17228 | EOF |
dd0e4a90 | 17229 | if { (eval echo configure:17230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
17230 | rm -rf conftest* |
17231 | eval "ac_cv_func_$ac_func=yes" | |
17232 | else | |
17233 | echo "configure: failed program was:" >&5 | |
17234 | cat conftest.$ac_ext >&5 | |
17235 | rm -rf conftest* | |
17236 | eval "ac_cv_func_$ac_func=no" | |
17237 | fi | |
17238 | rm -f conftest* | |
17239 | fi | |
4f14bcd8 | 17240 | |
52127426 JS |
17241 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17242 | echo "$ac_t""yes" 1>&6 | |
17243 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17244 | cat >> confdefs.h <<EOF | |
17245 | #define $ac_tr_func 1 | |
17246 | EOF | |
17247 | ||
17248 | else | |
17249 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17250 | fi |
17251 | done | |
17252 | ||
52127426 | 17253 | |
4f14bcd8 | 17254 | ac_ext=c |
52127426 | 17255 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17256 | ac_cpp='$CPP $CPPFLAGS' |
52127426 JS |
17257 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17258 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17259 | cross_compiling=$ac_cv_prog_cc_cross | |
328a083c | 17260 | |
7b4a847f | 17261 | |
52127426 | 17262 | INET_LINK= |
4f14bcd8 GD |
17263 | for ac_func in inet_addr |
17264 | do | |
52127426 | 17265 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dd0e4a90 | 17266 | echo "configure:17267: checking for $ac_func" >&5 |
52127426 JS |
17267 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17268 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17269 | else | |
17270 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 17271 | #line 17272 "configure" |
10f2d63a | 17272 | #include "confdefs.h" |
4f14bcd8 | 17273 | /* System header to define __stub macros and hopefully few prototypes, |
52127426 | 17274 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 17275 | #include <assert.h> |
10f2d63a VZ |
17276 | /* Override any gcc2 internal prototype to avoid an error. */ |
17277 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
17278 | builtin and then its argument prototype would still apply. */ |
17279 | char $ac_func(); | |
17280 | ||
17281 | int main() { | |
4f14bcd8 GD |
17282 | |
17283 | /* The GNU C library defines this for functions which it implements | |
17284 | to always fail with ENOSYS. Some functions are actually named | |
17285 | something starting with __ and the normal name is an alias. */ | |
17286 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17287 | choke me | |
17288 | #else | |
52127426 | 17289 | $ac_func(); |
4f14bcd8 GD |
17290 | #endif |
17291 | ||
52127426 JS |
17292 | ; return 0; } |
17293 | EOF | |
dd0e4a90 | 17294 | if { (eval echo configure:17295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
17295 | rm -rf conftest* |
17296 | eval "ac_cv_func_$ac_func=yes" | |
17297 | else | |
17298 | echo "configure: failed program was:" >&5 | |
17299 | cat conftest.$ac_ext >&5 | |
17300 | rm -rf conftest* | |
17301 | eval "ac_cv_func_$ac_func=no" | |
17302 | fi | |
17303 | rm -f conftest* | |
17304 | fi | |
17305 | ||
17306 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17307 | echo "$ac_t""yes" 1>&6 | |
17308 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17309 | cat >> confdefs.h <<EOF | |
17310 | #define $ac_tr_func 1 | |
17311 | EOF | |
17312 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17313 | #define HAVE_INET_ADDR 1 |
10f2d63a VZ |
17314 | EOF |
17315 | ||
17316 | else | |
52127426 JS |
17317 | echo "$ac_t""no" 1>&6 |
17318 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
dd0e4a90 | 17319 | echo "configure:17320: checking for inet_addr in -lnsl" >&5 |
52127426 JS |
17320 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
17321 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17322 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17323 | else |
52127426 | 17324 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17325 | LIBS="-lnsl $LIBS" |
52127426 | 17326 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 17327 | #line 17328 "configure" |
10f2d63a VZ |
17328 | #include "confdefs.h" |
17329 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17330 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
17331 | builtin and then its argument prototype would still apply. */ |
17332 | char inet_addr(); | |
17333 | ||
17334 | int main() { | |
17335 | inet_addr() | |
17336 | ; return 0; } | |
17337 | EOF | |
dd0e4a90 | 17338 | if { (eval echo configure:17339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
17339 | rm -rf conftest* |
17340 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17341 | else | |
17342 | echo "configure: failed program was:" >&5 | |
17343 | cat conftest.$ac_ext >&5 | |
17344 | rm -rf conftest* | |
17345 | eval "ac_cv_lib_$ac_lib_var=no" | |
17346 | fi | |
17347 | rm -f conftest* | |
17348 | LIBS="$ac_save_LIBS" | |
17349 | ||
17350 | fi | |
17351 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17352 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17353 | INET_LINK="nsl" |
10f2d63a | 17354 | else |
52127426 JS |
17355 | echo "$ac_t""no" 1>&6 |
17356 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
dd0e4a90 | 17357 | echo "configure:17358: checking for inet_addr in -lresolv" >&5 |
52127426 JS |
17358 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
17359 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17360 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17361 | else |
52127426 | 17362 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17363 | LIBS="-lresolv $LIBS" |
52127426 | 17364 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 17365 | #line 17366 "configure" |
7b4a847f | 17366 | #include "confdefs.h" |
7b4a847f | 17367 | /* Override any gcc2 internal prototype to avoid an error. */ |
7b4a847f | 17368 | /* We use char because int might match the return type of a gcc2 |
52127426 JS |
17369 | builtin and then its argument prototype would still apply. */ |
17370 | char inet_addr(); | |
17371 | ||
17372 | int main() { | |
17373 | inet_addr() | |
17374 | ; return 0; } | |
17375 | EOF | |
dd0e4a90 | 17376 | if { (eval echo configure:17377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
17377 | rm -rf conftest* |
17378 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17379 | else | |
17380 | echo "configure: failed program was:" >&5 | |
17381 | cat conftest.$ac_ext >&5 | |
17382 | rm -rf conftest* | |
17383 | eval "ac_cv_lib_$ac_lib_var=no" | |
17384 | fi | |
17385 | rm -f conftest* | |
17386 | LIBS="$ac_save_LIBS" | |
17387 | ||
17388 | fi | |
17389 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17390 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17391 | INET_LINK="resolv" |
698dcdb6 | 17392 | else |
52127426 JS |
17393 | echo "$ac_t""no" 1>&6 |
17394 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 | |
dd0e4a90 | 17395 | echo "configure:17396: checking for inet_addr in -lsocket" >&5 |
52127426 JS |
17396 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
17397 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17398 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3c011993 | 17399 | else |
52127426 | 17400 | ac_save_LIBS="$LIBS" |
3c011993 | 17401 | LIBS="-lsocket $LIBS" |
52127426 | 17402 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 17403 | #line 17404 "configure" |
3c011993 VZ |
17404 | #include "confdefs.h" |
17405 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17406 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
17407 | builtin and then its argument prototype would still apply. */ |
17408 | char inet_addr(); | |
17409 | ||
17410 | int main() { | |
17411 | inet_addr() | |
17412 | ; return 0; } | |
17413 | EOF | |
dd0e4a90 | 17414 | if { (eval echo configure:17415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
17415 | rm -rf conftest* |
17416 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17417 | else | |
17418 | echo "configure: failed program was:" >&5 | |
17419 | cat conftest.$ac_ext >&5 | |
17420 | rm -rf conftest* | |
17421 | eval "ac_cv_lib_$ac_lib_var=no" | |
17422 | fi | |
17423 | rm -f conftest* | |
17424 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 17425 | |
698dcdb6 | 17426 | fi |
52127426 JS |
17427 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17428 | echo "$ac_t""yes" 1>&6 | |
17429 | INET_LINK="socket" | |
17430 | ||
17431 | else | |
17432 | echo "$ac_t""no" 1>&6 | |
17433 | fi | |
4f14bcd8 | 17434 | |
52127426 | 17435 | |
328a083c | 17436 | fi |
698dcdb6 | 17437 | |
52127426 | 17438 | |
7b4a847f | 17439 | fi |
579d8138 | 17440 | |
52127426 JS |
17441 | |
17442 | ||
698dcdb6 | 17443 | fi |
4f14bcd8 GD |
17444 | done |
17445 | ||
52127426 | 17446 | |
4f14bcd8 GD |
17447 | for ac_func in inet_aton |
17448 | do | |
52127426 | 17449 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dd0e4a90 | 17450 | echo "configure:17451: checking for $ac_func" >&5 |
52127426 JS |
17451 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17452 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17453 | else | |
17454 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 17455 | #line 17456 "configure" |
f6bcfd97 | 17456 | #include "confdefs.h" |
4f14bcd8 | 17457 | /* System header to define __stub macros and hopefully few prototypes, |
52127426 | 17458 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 17459 | #include <assert.h> |
f6bcfd97 BP |
17460 | /* Override any gcc2 internal prototype to avoid an error. */ |
17461 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
17462 | builtin and then its argument prototype would still apply. */ |
17463 | char $ac_func(); | |
17464 | ||
17465 | int main() { | |
4f14bcd8 GD |
17466 | |
17467 | /* The GNU C library defines this for functions which it implements | |
17468 | to always fail with ENOSYS. Some functions are actually named | |
17469 | something starting with __ and the normal name is an alias. */ | |
17470 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17471 | choke me | |
17472 | #else | |
52127426 | 17473 | $ac_func(); |
4f14bcd8 GD |
17474 | #endif |
17475 | ||
52127426 JS |
17476 | ; return 0; } |
17477 | EOF | |
dd0e4a90 | 17478 | if { (eval echo configure:17479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
17479 | rm -rf conftest* |
17480 | eval "ac_cv_func_$ac_func=yes" | |
17481 | else | |
17482 | echo "configure: failed program was:" >&5 | |
17483 | cat conftest.$ac_ext >&5 | |
17484 | rm -rf conftest* | |
17485 | eval "ac_cv_func_$ac_func=no" | |
17486 | fi | |
17487 | rm -f conftest* | |
17488 | fi | |
17489 | ||
17490 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17491 | echo "$ac_t""yes" 1>&6 | |
17492 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17493 | cat >> confdefs.h <<EOF | |
17494 | #define $ac_tr_func 1 | |
17495 | EOF | |
17496 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17497 | #define HAVE_INET_ATON 1 |
17498 | EOF | |
17499 | ||
10f2d63a | 17500 | else |
52127426 JS |
17501 | echo "$ac_t""no" 1>&6 |
17502 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
dd0e4a90 | 17503 | echo "configure:17504: checking for inet_aton in -l$INET_LINK" >&5 |
52127426 JS |
17504 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
17505 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17506 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 17507 | else |
52127426 | 17508 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17509 | LIBS="-l$INET_LINK $LIBS" |
52127426 | 17510 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 17511 | #line 17512 "configure" |
10f2d63a | 17512 | #include "confdefs.h" |
6232543b | 17513 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 17514 | /* We use char because int might match the return type of a gcc2 |
52127426 JS |
17515 | builtin and then its argument prototype would still apply. */ |
17516 | char inet_aton(); | |
17517 | ||
17518 | int main() { | |
17519 | inet_aton() | |
17520 | ; return 0; } | |
17521 | EOF | |
dd0e4a90 | 17522 | if { (eval echo configure:17523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
17523 | rm -rf conftest* |
17524 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17525 | else | |
17526 | echo "configure: failed program was:" >&5 | |
17527 | cat conftest.$ac_ext >&5 | |
17528 | rm -rf conftest* | |
17529 | eval "ac_cv_lib_$ac_lib_var=no" | |
17530 | fi | |
17531 | rm -f conftest* | |
17532 | LIBS="$ac_save_LIBS" | |
17533 | ||
17534 | fi | |
17535 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17536 | echo "$ac_t""yes" 1>&6 | |
17537 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17538 | #define HAVE_INET_ATON 1 |
17539 | EOF | |
17540 | ||
52127426 JS |
17541 | else |
17542 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17543 | fi |
17544 | ||
52127426 | 17545 | |
10f2d63a | 17546 | fi |
4f14bcd8 | 17547 | done |
10f2d63a | 17548 | |
52127426 | 17549 | |
4f14bcd8 | 17550 | if test "x$INET_LINK" != "x"; then |
52127426 | 17551 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
17552 | #define HAVE_INET_ADDR 1 |
17553 | EOF | |
17554 | ||
3d63bc3a | 17555 | INET_LINK=" -l$INET_LINK" |
6232543b | 17556 | fi |
10f2d63a | 17557 | |
1e487827 | 17558 | fi |
703e0a69 | 17559 | |
52127426 JS |
17560 | |
17561 | cat > confcache <<\EOF | |
4f14bcd8 GD |
17562 | # This file is a shell script that caches the results of configure |
17563 | # tests run on this system so they can be shared between configure | |
52127426 JS |
17564 | # scripts and configure runs. It is not useful on other systems. |
17565 | # If it contains results you don't want to keep, you may remove or edit it. | |
4f14bcd8 | 17566 | # |
52127426 JS |
17567 | # By default, configure uses ./config.cache as the cache file, |
17568 | # creating it if it does not exist already. You can give configure | |
17569 | # the --cache-file=FILE option to use a different cache file; that is | |
17570 | # what configure does when it calls configure scripts in | |
17571 | # subdirectories, so they share the cache. | |
17572 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17573 | # config.status only pays attention to the cache file if you give it the | |
17574 | # --recheck option to rerun configure. | |
4f14bcd8 | 17575 | # |
52127426 | 17576 | EOF |
4f14bcd8 GD |
17577 | # The following way of writing the cache mishandles newlines in values, |
17578 | # but we know of no workaround that is simple, portable, and efficient. | |
17579 | # So, don't put newlines in cache variables' values. | |
17580 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17581 | # and sets the high bit in the cache file unless we assign to the vars. | |
52127426 JS |
17582 | (set) 2>&1 | |
17583 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17584 | *ac_space=\ *) | |
17585 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17586 | # turns \\\\ into \\, and sed turns \\ into \). | |
17587 | sed -n \ | |
17588 | -e "s/'/'\\\\''/g" \ | |
17589 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17590 | ;; | |
17591 | *) | |
17592 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17593 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17594 | ;; | |
17595 | esac >> confcache | |
17596 | if cmp -s $cache_file confcache; then | |
17597 | : | |
17598 | else | |
4f14bcd8 | 17599 | if test -w $cache_file; then |
52127426 JS |
17600 | echo "updating cache $cache_file" |
17601 | cat confcache > $cache_file | |
f6bcfd97 | 17602 | else |
4f14bcd8 | 17603 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 17604 | fi |
4f14bcd8 GD |
17605 | fi |
17606 | rm -f confcache | |
f6bcfd97 | 17607 | |
52127426 JS |
17608 | |
17609 | ||
009fead0 | 17610 | CPP_MT_FLAG= |
4f14bcd8 GD |
17611 | if test "$TOOLKIT" != "MSW"; then |
17612 | ||
52127426 | 17613 | |
7274f1c7 | 17614 | THREADS_LINK= |
009fead0 | 17615 | THREADS_CFLAGS= |
7274f1c7 RL |
17616 | |
17617 | if test "$wxUSE_THREADS" = "yes" ; then | |
17618 | if test "$wxUSE_WINE" = 1 ; then | |
52127426 | 17619 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
17620 | wxUSE_THREADS="no" |
17621 | elif test "$USE_BEOS" = 1; then | |
52127426 | 17622 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
17623 | wxUSE_THREADS="no" |
17624 | fi | |
4f14bcd8 | 17625 | fi |
4f14bcd8 | 17626 | |
7274f1c7 | 17627 | if test "$wxUSE_THREADS" = "yes" ; then |
52127426 JS |
17628 | |
17629 | ||
009fead0 VZ |
17630 | THREAD_OPTS="-pthread" |
17631 | case "${host}" in | |
17632 | *-*-solaris2* | *-*-sunos4* ) | |
17633 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 17634 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
17635 | else |
17636 | THREAD_OPTS="-mt $THREAD_OPTS" | |
17637 | fi | |
17638 | ;; | |
17639 | *-*-freebsd*) | |
17640 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
17641 | ;; | |
17234b26 MB |
17642 | *-*-darwin* | *-*-cygwin* ) |
17643 | THREAD_OPTS="" | |
4101db81 | 17644 | ;; |
8f4a9a10 | 17645 | *-*-aix*) |
009fead0 VZ |
17646 | THREAD_OPTS="pthreads" |
17647 | ;; | |
009fead0 | 17648 | esac |
4f14bcd8 | 17649 | |
02a1dfba | 17650 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 17651 | |
009fead0 VZ |
17652 | THREADS_OK=no |
17653 | for flag in $THREAD_OPTS; do | |
17654 | case $flag in | |
17655 | none) | |
52127426 | 17656 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 |
dd0e4a90 | 17657 | echo "configure:17658: checking whether pthreads work without any flags" >&5 |
009fead0 | 17658 | ;; |
698dcdb6 | 17659 | |
009fead0 | 17660 | -*) |
52127426 | 17661 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 |
dd0e4a90 | 17662 | echo "configure:17663: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
17663 | THREADS_CFLAGS="$flag" |
17664 | ;; | |
698dcdb6 | 17665 | |
009fead0 | 17666 | *) |
52127426 | 17667 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 |
dd0e4a90 | 17668 | echo "configure:17669: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
17669 | THREADS_LINK="-l$flag" |
17670 | ;; | |
17671 | esac | |
10f2d63a | 17672 | |
009fead0 VZ |
17673 | save_LIBS="$LIBS" |
17674 | save_CFLAGS="$CFLAGS" | |
17675 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 17676 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 17677 | |
52127426 | 17678 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 17679 | #line 17680 "configure" |
009fead0 VZ |
17680 | #include "confdefs.h" |
17681 | #include <pthread.h> | |
52127426 | 17682 | int main() { |
009fead0 | 17683 | pthread_create(0,0,0,0); |
52127426 JS |
17684 | ; return 0; } |
17685 | EOF | |
dd0e4a90 | 17686 | if { (eval echo configure:17687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 | 17687 | rm -rf conftest* |
009fead0 | 17688 | THREADS_OK=yes |
10f2d63a | 17689 | else |
52127426 JS |
17690 | echo "configure: failed program was:" >&5 |
17691 | cat conftest.$ac_ext >&5 | |
6232543b | 17692 | fi |
52127426 | 17693 | rm -f conftest* |
698dcdb6 | 17694 | |
009fead0 VZ |
17695 | LIBS="$save_LIBS" |
17696 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 17697 | |
52127426 | 17698 | echo "$ac_t""$THREADS_OK" 1>&6 |
009fead0 VZ |
17699 | if test "x$THREADS_OK" = "xyes"; then |
17700 | break; | |
17701 | fi | |
d9b9876f | 17702 | |
009fead0 VZ |
17703 | THREADS_LINK="" |
17704 | THREADS_CFLAGS="" | |
17705 | done | |
4f14bcd8 | 17706 | |
009fead0 VZ |
17707 | if test "x$THREADS_OK" != "xyes"; then |
17708 | wxUSE_THREADS=no | |
52127426 | 17709 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
009fead0 | 17710 | else |
fe5a9cab VZ |
17711 | LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS" |
17712 | ||
52127426 | 17713 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
dd0e4a90 | 17714 | echo "configure:17715: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
17715 | flag=no |
17716 | case "${host}" in | |
17717 | *-aix* | *-freebsd*) | |
17718 | flag="-D_THREAD_SAFE" | |
17719 | ;; | |
17720 | *solaris* | alpha*-osf*) | |
17721 | flag="-D_REENTRANT" | |
17722 | ;; | |
17723 | esac | |
52127426 | 17724 | echo "$ac_t""${flag}" 1>&6 |
009fead0 | 17725 | if test "x$flag" != xno; then |
04727afd | 17726 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
17727 | fi |
17728 | ||
009fead0 | 17729 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 17730 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
17731 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
17732 | fi | |
17733 | fi | |
4f14bcd8 | 17734 | fi |
4f14bcd8 | 17735 | |
7274f1c7 | 17736 | if test "$wxUSE_THREADS" = "yes" ; then |
52127426 | 17737 | for ac_func in thr_setconcurrency |
4f14bcd8 | 17738 | do |
52127426 | 17739 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dd0e4a90 | 17740 | echo "configure:17741: checking for $ac_func" >&5 |
52127426 JS |
17741 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17742 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17743 | else | |
17744 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 17745 | #line 17746 "configure" |
d9b9876f | 17746 | #include "confdefs.h" |
4f14bcd8 | 17747 | /* System header to define __stub macros and hopefully few prototypes, |
52127426 | 17748 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17749 | #include <assert.h> |
17750 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17751 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
17752 | builtin and then its argument prototype would still apply. */ |
17753 | char $ac_func(); | |
17754 | ||
17755 | int main() { | |
d9b9876f | 17756 | |
4f14bcd8 GD |
17757 | /* The GNU C library defines this for functions which it implements |
17758 | to always fail with ENOSYS. Some functions are actually named | |
17759 | something starting with __ and the normal name is an alias. */ | |
17760 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17761 | choke me | |
17762 | #else | |
52127426 | 17763 | $ac_func(); |
4f14bcd8 GD |
17764 | #endif |
17765 | ||
52127426 | 17766 | ; return 0; } |
698dcdb6 | 17767 | EOF |
dd0e4a90 | 17768 | if { (eval echo configure:17769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
17769 | rm -rf conftest* |
17770 | eval "ac_cv_func_$ac_func=yes" | |
17771 | else | |
17772 | echo "configure: failed program was:" >&5 | |
17773 | cat conftest.$ac_ext >&5 | |
17774 | rm -rf conftest* | |
17775 | eval "ac_cv_func_$ac_func=no" | |
17776 | fi | |
17777 | rm -f conftest* | |
17778 | fi | |
698dcdb6 | 17779 | |
52127426 JS |
17780 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17781 | echo "$ac_t""yes" 1>&6 | |
17782 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17783 | cat >> confdefs.h <<EOF | |
17784 | #define $ac_tr_func 1 | |
17785 | EOF | |
17786 | ||
17787 | else | |
17788 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 17789 | fi |
4f14bcd8 | 17790 | done |
10f2d63a | 17791 | |
52127426 JS |
17792 | |
17793 | for ac_hdr in sched.h | |
4f14bcd8 | 17794 | do |
52127426 JS |
17795 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17796 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
dd0e4a90 | 17797 | echo "configure:17798: checking for $ac_hdr" >&5 |
52127426 JS |
17798 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17799 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17800 | else | |
17801 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 17802 | #line 17803 "configure" |
4f14bcd8 | 17803 | #include "confdefs.h" |
52127426 JS |
17804 | #include <$ac_hdr> |
17805 | EOF | |
17806 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dd0e4a90 | 17807 | { (eval echo configure:17808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
52127426 JS |
17808 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17809 | if test -z "$ac_err"; then | |
17810 | rm -rf conftest* | |
17811 | eval "ac_cv_header_$ac_safe=yes" | |
4f14bcd8 | 17812 | else |
52127426 JS |
17813 | echo "$ac_err" >&5 |
17814 | echo "configure: failed program was:" >&5 | |
4f14bcd8 | 17815 | cat conftest.$ac_ext >&5 |
52127426 JS |
17816 | rm -rf conftest* |
17817 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 17818 | fi |
52127426 | 17819 | rm -f conftest* |
10f2d63a | 17820 | fi |
52127426 JS |
17821 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17822 | echo "$ac_t""yes" 1>&6 | |
17823 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17824 | cat >> confdefs.h <<EOF | |
17825 | #define $ac_tr_hdr 1 | |
f6bcfd97 | 17826 | EOF |
52127426 JS |
17827 | |
17828 | else | |
17829 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 17830 | fi |
4f14bcd8 | 17831 | done |
f6bcfd97 | 17832 | |
009fead0 | 17833 | if test "$ac_cv_header_sched_h" = "yes"; then |
52127426 | 17834 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 |
dd0e4a90 | 17835 | echo "configure:17836: checking for sched_yield" >&5 |
52127426 JS |
17836 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
17837 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 17838 | else |
52127426 | 17839 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 17840 | #line 17841 "configure" |
4f14bcd8 | 17841 | #include "confdefs.h" |
009fead0 | 17842 | /* System header to define __stub macros and hopefully few prototypes, |
52127426 | 17843 | which can conflict with char sched_yield(); below. */ |
009fead0 | 17844 | #include <assert.h> |
4f14bcd8 GD |
17845 | /* Override any gcc2 internal prototype to avoid an error. */ |
17846 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
17847 | builtin and then its argument prototype would still apply. */ |
17848 | char sched_yield(); | |
17849 | ||
17850 | int main() { | |
009fead0 VZ |
17851 | |
17852 | /* The GNU C library defines this for functions which it implements | |
17853 | to always fail with ENOSYS. Some functions are actually named | |
17854 | something starting with __ and the normal name is an alias. */ | |
17855 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
17856 | choke me | |
17857 | #else | |
52127426 | 17858 | sched_yield(); |
009fead0 VZ |
17859 | #endif |
17860 | ||
52127426 JS |
17861 | ; return 0; } |
17862 | EOF | |
dd0e4a90 | 17863 | if { (eval echo configure:17864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
17864 | rm -rf conftest* |
17865 | eval "ac_cv_func_sched_yield=yes" | |
17866 | else | |
17867 | echo "configure: failed program was:" >&5 | |
17868 | cat conftest.$ac_ext >&5 | |
17869 | rm -rf conftest* | |
17870 | eval "ac_cv_func_sched_yield=no" | |
17871 | fi | |
17872 | rm -f conftest* | |
17873 | fi | |
17874 | ||
17875 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
17876 | echo "$ac_t""yes" 1>&6 | |
17877 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17878 | #define HAVE_SCHED_YIELD 1 |
10f2d63a VZ |
17879 | EOF |
17880 | ||
4f14bcd8 | 17881 | else |
52127426 | 17882 | echo "$ac_t""no" 1>&6 |
009fead0 | 17883 | |
52127426 | 17884 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 |
dd0e4a90 | 17885 | echo "configure:17886: checking for sched_yield in -lposix4" >&5 |
52127426 JS |
17886 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
17887 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17888 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 17889 | else |
52127426 | 17890 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17891 | LIBS="-lposix4 $LIBS" |
52127426 | 17892 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 17893 | #line 17894 "configure" |
4f14bcd8 GD |
17894 | #include "confdefs.h" |
17895 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17896 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
17897 | builtin and then its argument prototype would still apply. */ |
17898 | char sched_yield(); | |
17899 | ||
17900 | int main() { | |
17901 | sched_yield() | |
17902 | ; return 0; } | |
17903 | EOF | |
dd0e4a90 | 17904 | if { (eval echo configure:17905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
17905 | rm -rf conftest* |
17906 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17907 | else | |
17908 | echo "configure: failed program was:" >&5 | |
17909 | cat conftest.$ac_ext >&5 | |
17910 | rm -rf conftest* | |
17911 | eval "ac_cv_lib_$ac_lib_var=no" | |
17912 | fi | |
17913 | rm -f conftest* | |
17914 | LIBS="$ac_save_LIBS" | |
17915 | ||
17916 | fi | |
17917 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17918 | echo "$ac_t""yes" 1>&6 | |
17919 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17920 | #define HAVE_SCHED_YIELD 1 |
54276ccf | 17921 | EOF |
3d63bc3a | 17922 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 17923 | else |
52127426 JS |
17924 | echo "$ac_t""no" 1>&6 |
17925 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
17926 | ||
54276ccf VZ |
17927 | fi |
17928 | ||
52127426 JS |
17929 | |
17930 | ||
4f14bcd8 | 17931 | fi |
698dcdb6 | 17932 | |
009fead0 | 17933 | fi |
10f2d63a | 17934 | |
7274f1c7 | 17935 | HAVE_PRIOR_FUNCS=0 |
52127426 | 17936 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
dd0e4a90 | 17937 | echo "configure:17938: checking for pthread_attr_getschedpolicy" >&5 |
52127426 JS |
17938 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
17939 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 17940 | else |
52127426 | 17941 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 17942 | #line 17943 "configure" |
422107f9 | 17943 | #include "confdefs.h" |
009fead0 | 17944 | /* System header to define __stub macros and hopefully few prototypes, |
52127426 | 17945 | which can conflict with char pthread_attr_getschedpolicy(); below. */ |
009fead0 | 17946 | #include <assert.h> |
4f14bcd8 GD |
17947 | /* Override any gcc2 internal prototype to avoid an error. */ |
17948 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
17949 | builtin and then its argument prototype would still apply. */ |
17950 | char pthread_attr_getschedpolicy(); | |
17951 | ||
17952 | int main() { | |
009fead0 VZ |
17953 | |
17954 | /* The GNU C library defines this for functions which it implements | |
17955 | to always fail with ENOSYS. Some functions are actually named | |
17956 | something starting with __ and the normal name is an alias. */ | |
17957 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
17958 | choke me | |
17959 | #else | |
52127426 | 17960 | pthread_attr_getschedpolicy(); |
009fead0 VZ |
17961 | #endif |
17962 | ||
52127426 JS |
17963 | ; return 0; } |
17964 | EOF | |
dd0e4a90 | 17965 | if { (eval echo configure:17966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
17966 | rm -rf conftest* |
17967 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" | |
17968 | else | |
17969 | echo "configure: failed program was:" >&5 | |
17970 | cat conftest.$ac_ext >&5 | |
17971 | rm -rf conftest* | |
17972 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" | |
17973 | fi | |
17974 | rm -f conftest* | |
17975 | fi | |
17976 | ||
17977 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
17978 | echo "$ac_t""yes" 1>&6 | |
17979 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 | |
dd0e4a90 | 17980 | echo "configure:17981: checking for pthread_attr_setschedparam" >&5 |
52127426 JS |
17981 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
17982 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 17983 | else |
52127426 | 17984 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 17985 | #line 17986 "configure" |
52127426 JS |
17986 | #include "confdefs.h" |
17987 | /* System header to define __stub macros and hopefully few prototypes, | |
17988 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
009fead0 | 17989 | #include <assert.h> |
422107f9 VZ |
17990 | /* Override any gcc2 internal prototype to avoid an error. */ |
17991 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
17992 | builtin and then its argument prototype would still apply. */ |
17993 | char pthread_attr_setschedparam(); | |
17994 | ||
17995 | int main() { | |
009fead0 VZ |
17996 | |
17997 | /* The GNU C library defines this for functions which it implements | |
17998 | to always fail with ENOSYS. Some functions are actually named | |
17999 | something starting with __ and the normal name is an alias. */ | |
18000 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
18001 | choke me | |
18002 | #else | |
52127426 | 18003 | pthread_attr_setschedparam(); |
009fead0 VZ |
18004 | #endif |
18005 | ||
52127426 JS |
18006 | ; return 0; } |
18007 | EOF | |
dd0e4a90 | 18008 | if { (eval echo configure:18009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
18009 | rm -rf conftest* |
18010 | eval "ac_cv_func_pthread_attr_setschedparam=yes" | |
18011 | else | |
18012 | echo "configure: failed program was:" >&5 | |
18013 | cat conftest.$ac_ext >&5 | |
18014 | rm -rf conftest* | |
18015 | eval "ac_cv_func_pthread_attr_setschedparam=no" | |
18016 | fi | |
18017 | rm -f conftest* | |
18018 | fi | |
18019 | ||
18020 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
18021 | echo "$ac_t""yes" 1>&6 | |
18022 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 | |
dd0e4a90 | 18023 | echo "configure:18024: checking for sched_get_priority_max" >&5 |
52127426 JS |
18024 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
18025 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18026 | else | |
18027 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 18028 | #line 18029 "configure" |
422107f9 | 18029 | #include "confdefs.h" |
009fead0 VZ |
18030 | /* System header to define __stub macros and hopefully few prototypes |
18031 | else | |
52127426 JS |
18032 | echo "$ac_t""no" 1>&6 |
18033 | which can conflict with char sched_get_priority_max(); below. */ | |
009fead0 | 18034 | #include <assert.h> |
4f14bcd8 GD |
18035 | /* Override any gcc2 internal prototype to avoid an error. */ |
18036 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
18037 | builtin and then its argument prototype would still apply. */ |
18038 | char sched_get_priority_max(); | |
18039 | ||
18040 | int main() { | |
009fead0 VZ |
18041 | |
18042 | /* The GNU C library defines this for functions which it implements | |
18043 | to always fail with ENOSYS. Some functions are actually named | |
18044 | something starting with __ and the normal name is an alias. */ | |
18045 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
18046 | choke me | |
18047 | #else | |
52127426 | 18048 | sched_get_priority_max(); |
009fead0 VZ |
18049 | #endif |
18050 | ||
52127426 JS |
18051 | ; return 0; } |
18052 | EOF | |
dd0e4a90 | 18053 | if { (eval echo configure:18054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
18054 | rm -rf conftest* |
18055 | eval "ac_cv_func_sched_get_priority_max=yes" | |
18056 | else | |
18057 | echo "configure: failed program was:" >&5 | |
18058 | cat conftest.$ac_ext >&5 | |
18059 | rm -rf conftest* | |
18060 | eval "ac_cv_func_sched_get_priority_max=no" | |
18061 | fi | |
18062 | rm -f conftest* | |
18063 | fi | |
18064 | ||
18065 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
18066 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
18067 | HAVE_PRIOR_FUNCS=1 |
18068 | else | |
52127426 JS |
18069 | echo "$ac_t""no" 1>&6 |
18070 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
dd0e4a90 | 18071 | echo "configure:18072: checking for sched_get_priority_max in -lposix4" >&5 |
52127426 JS |
18072 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
18073 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18074 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 18075 | else |
52127426 | 18076 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18077 | LIBS="-lposix4 $LIBS" |
52127426 | 18078 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 18079 | #line 18080 "configure" |
422107f9 VZ |
18080 | #include "confdefs.h" |
18081 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18082 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
18083 | builtin and then its argument prototype would still apply. */ |
18084 | char sched_get_priority_max(); | |
18085 | ||
18086 | int main() { | |
18087 | sched_get_priority_max() | |
18088 | ; return 0; } | |
18089 | EOF | |
dd0e4a90 | 18090 | if { (eval echo configure:18091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
18091 | rm -rf conftest* |
18092 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18093 | else | |
18094 | echo "configure: failed program was:" >&5 | |
18095 | cat conftest.$ac_ext >&5 | |
18096 | rm -rf conftest* | |
18097 | eval "ac_cv_lib_$ac_lib_var=no" | |
18098 | fi | |
18099 | rm -f conftest* | |
18100 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 18101 | |
52127426 JS |
18102 | fi |
18103 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18104 | echo "$ac_t""yes" 1>&6 | |
18105 | ||
7274f1c7 RL |
18106 | HAVE_PRIOR_FUNCS=1 |
18107 | POSIX4_LINK=" -lposix4" | |
52127426 JS |
18108 | |
18109 | else | |
18110 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
18111 | fi |
18112 | ||
52127426 | 18113 | |
4f14bcd8 | 18114 | fi |
463abc64 | 18115 | |
52127426 JS |
18116 | |
18117 | else | |
18118 | echo "$ac_t""no" 1>&6 | |
328a083c | 18119 | fi |
463abc64 | 18120 | |
52127426 | 18121 | |
7b4a847f | 18122 | fi |
579d8138 | 18123 | |
52127426 | 18124 | |
7274f1c7 | 18125 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
52127426 | 18126 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18127 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
698dcdb6 | 18128 | EOF |
463abc64 | 18129 | |
7274f1c7 | 18130 | else |
52127426 | 18131 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
7274f1c7 | 18132 | fi |
463abc64 | 18133 | |
52127426 | 18134 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
dd0e4a90 | 18135 | echo "configure:18136: checking for pthread_cancel" >&5 |
52127426 JS |
18136 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
18137 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 18138 | else |
52127426 | 18139 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 18140 | #line 18141 "configure" |
422107f9 | 18141 | #include "confdefs.h" |
009fead0 | 18142 | /* System header to define __stub macros and hopefully few prototypes, |
52127426 | 18143 | which can conflict with char pthread_cancel(); below. */ |
009fead0 | 18144 | #include <assert.h> |
422107f9 VZ |
18145 | /* Override any gcc2 internal prototype to avoid an error. */ |
18146 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
18147 | builtin and then its argument prototype would still apply. */ |
18148 | char pthread_cancel(); | |
18149 | ||
18150 | int main() { | |
009fead0 VZ |
18151 | |
18152 | /* The GNU C library defines this for functions which it implements | |
18153 | to always fail with ENOSYS. Some functions are actually named | |
18154 | something starting with __ and the normal name is an alias. */ | |
18155 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
18156 | choke me | |
18157 | #else | |
52127426 | 18158 | pthread_cancel(); |
009fead0 VZ |
18159 | #endif |
18160 | ||
52127426 JS |
18161 | ; return 0; } |
18162 | EOF | |
dd0e4a90 | 18163 | if { (eval echo configure:18164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
18164 | rm -rf conftest* |
18165 | eval "ac_cv_func_pthread_cancel=yes" | |
18166 | else | |
18167 | echo "configure: failed program was:" >&5 | |
18168 | cat conftest.$ac_ext >&5 | |
18169 | rm -rf conftest* | |
18170 | eval "ac_cv_func_pthread_cancel=no" | |
18171 | fi | |
18172 | rm -f conftest* | |
18173 | fi | |
18174 | ||
18175 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
18176 | echo "$ac_t""yes" 1>&6 | |
18177 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
18178 | #define HAVE_PTHREAD_CANCEL 1 |
18179 | EOF | |
18180 | ||
698dcdb6 | 18181 | else |
52127426 JS |
18182 | echo "$ac_t""no" 1>&6 |
18183 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
422107f9 VZ |
18184 | fi |
18185 | ||
7b4a847f | 18186 | |
52127426 | 18187 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
dd0e4a90 | 18188 | echo "configure:18189: checking for pthread_cleanup_push/pop" >&5 |
52127426 JS |
18189 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
18190 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18191 | else | |
18192 | ||
18193 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 18194 | #line 18195 "configure" |
4f14bcd8 GD |
18195 | #include "confdefs.h" |
18196 | #include <pthread.h> | |
52127426 | 18197 | int main() { |
4f14bcd8 | 18198 | |
7274f1c7 RL |
18199 | pthread_cleanup_push(NULL, NULL); |
18200 | pthread_cleanup_pop(0); | |
52127426 JS |
18201 | |
18202 | ; return 0; } | |
18203 | EOF | |
dd0e4a90 | 18204 | if { (eval echo configure:18205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 JS |
18205 | rm -rf conftest* |
18206 | ||
7274f1c7 | 18207 | wx_cv_func_pthread_cleanup_push=yes |
52127426 | 18208 | |
4f14bcd8 | 18209 | else |
52127426 JS |
18210 | echo "configure: failed program was:" >&5 |
18211 | cat conftest.$ac_ext >&5 | |
18212 | rm -rf conftest* | |
18213 | ||
7274f1c7 | 18214 | wx_cv_func_pthread_cleanup_push=no |
52127426 | 18215 | |
328a083c | 18216 | fi |
52127426 JS |
18217 | rm -f conftest* |
18218 | ||
7b4a847f | 18219 | fi |
52127426 JS |
18220 | |
18221 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
4f14bcd8 | 18222 | |
7274f1c7 | 18223 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
52127426 | 18224 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18225 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
c7a2bf27 RR |
18226 | EOF |
18227 | ||
7274f1c7 | 18228 | fi |
4f14bcd8 | 18229 | |
52127426 JS |
18230 | |
18231 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
dd0e4a90 | 18232 | echo "configure:18233: checking for pthread_mutexattr_t" >&5 |
52127426 JS |
18233 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
18234 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 18235 | else |
52127426 JS |
18236 | |
18237 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 18238 | #line 18239 "configure" |
0dcf9893 | 18239 | #include "confdefs.h" |
4f14bcd8 | 18240 | #include <pthread.h> |
52127426 | 18241 | int main() { |
4f14bcd8 | 18242 | |
7274f1c7 RL |
18243 | pthread_mutexattr_t attr; |
18244 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
52127426 JS |
18245 | |
18246 | ; return 0; } | |
18247 | EOF | |
dd0e4a90 | 18248 | if { (eval echo configure:18249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 JS |
18249 | rm -rf conftest* |
18250 | ||
7274f1c7 | 18251 | wx_cv_type_pthread_mutexattr_t=yes |
52127426 | 18252 | |
3fed1840 | 18253 | else |
52127426 JS |
18254 | echo "configure: failed program was:" >&5 |
18255 | cat conftest.$ac_ext >&5 | |
18256 | rm -rf conftest* | |
18257 | ||
7274f1c7 | 18258 | wx_cv_type_pthread_mutexattr_t=no |
52127426 JS |
18259 | |
18260 | ||
328a083c | 18261 | fi |
52127426 JS |
18262 | rm -f conftest* |
18263 | ||
7b4a847f | 18264 | fi |
52127426 JS |
18265 | |
18266 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
4f14bcd8 | 18267 | |
7274f1c7 | 18268 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
52127426 | 18269 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18270 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
18271 | EOF | |
18272 | ||
7274f1c7 | 18273 | else |
52127426 | 18274 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
dd0e4a90 | 18275 | echo "configure:18276: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
52127426 JS |
18276 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
18277 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18278 | else | |
18279 | ||
18280 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 18281 | #line 18282 "configure" |
3fed1840 | 18282 | #include "confdefs.h" |
4f14bcd8 | 18283 | #include <pthread.h> |
52127426 | 18284 | int main() { |
4f14bcd8 | 18285 | |
7274f1c7 | 18286 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
52127426 JS |
18287 | |
18288 | ; return 0; } | |
18289 | EOF | |
dd0e4a90 | 18290 | if { (eval echo configure:18291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 JS |
18291 | rm -rf conftest* |
18292 | ||
7274f1c7 | 18293 | wx_cv_type_pthread_rec_mutex_init=yes |
52127426 | 18294 | |
698dcdb6 | 18295 | else |
52127426 JS |
18296 | echo "configure: failed program was:" >&5 |
18297 | cat conftest.$ac_ext >&5 | |
18298 | rm -rf conftest* | |
18299 | ||
7274f1c7 | 18300 | wx_cv_type_pthread_rec_mutex_init=no |
52127426 JS |
18301 | |
18302 | ||
328a083c | 18303 | fi |
52127426 JS |
18304 | rm -f conftest* |
18305 | ||
7b4a847f | 18306 | fi |
52127426 JS |
18307 | |
18308 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
7274f1c7 | 18309 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
52127426 | 18310 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18311 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
18312 | EOF | |
3fed1840 | 18313 | |
7274f1c7 | 18314 | else |
52127426 | 18315 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
7274f1c7 RL |
18316 | fi |
18317 | fi | |
7274f1c7 | 18318 | fi |
3fed1840 | 18319 | |
4f14bcd8 GD |
18320 | fi |
18321 | ||
18322 | if test "$wxUSE_THREADS" = "yes"; then | |
52127426 | 18323 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18324 | #define wxUSE_THREADS 1 |
7b6058cd GD |
18325 | EOF |
18326 | ||
52127426 | 18327 | |
4f14bcd8 | 18328 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 18329 | else |
4f14bcd8 | 18330 | if test "$ac_cv_func_strtok_r" = "yes"; then |
52127426 | 18331 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
dd0e4a90 | 18332 | echo "configure:18333: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
18333 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
18334 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
52127426 | 18335 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 18336 | else |
52127426 | 18337 | echo "$ac_t""no" 1>&6 |
4f14bcd8 GD |
18338 | fi |
18339 | fi | |
18340 | fi | |
18341 | ||
18342 | if test "$WXGTK20" = 1 ; then | |
52127426 | 18343 | cat >> confdefs.h <<EOF |
4f14bcd8 | 18344 | #define __WXGTK20__ $WXGTK20 |
698dcdb6 | 18345 | EOF |
4f14bcd8 GD |
18346 | |
18347 | WXGTK12=1 | |
10f2d63a | 18348 | fi |
4f14bcd8 GD |
18349 | |
18350 | if test "$WXGTK12" = 1 ; then | |
52127426 | 18351 | cat >> confdefs.h <<EOF |
4f14bcd8 GD |
18352 | #define __WXGTK12__ $WXGTK12 |
18353 | EOF | |
18354 | ||
10f2d63a | 18355 | fi |
698dcdb6 | 18356 | |
4f14bcd8 | 18357 | if test "$WXGTK127" = 1 ; then |
52127426 | 18358 | cat >> confdefs.h <<EOF |
4f14bcd8 | 18359 | #define __WXGTK127__ $WXGTK127 |
698dcdb6 | 18360 | EOF |
4f14bcd8 | 18361 | |
698dcdb6 | 18362 | fi |
10f2d63a | 18363 | |
4f14bcd8 GD |
18364 | WXDEBUG= |
18365 | ||
18366 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
18367 | WXDEBUG="-g" | |
18368 | wxUSE_OPTIMISE=no | |
698dcdb6 | 18369 | fi |
4f14bcd8 GD |
18370 | |
18371 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
18372 | wxUSE_DEBUG_INFO=yes | |
18373 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
18374 | fi |
18375 | ||
4f14bcd8 | 18376 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
52127426 | 18377 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18378 | #define WXDEBUG 1 |
18379 | EOF | |
18380 | ||
18381 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 18382 | else |
4f14bcd8 GD |
18383 | if test "$wxUSE_GTK" = 1 ; then |
18384 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
18385 | fi | |
18386 | fi | |
18387 | ||
18388 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
52127426 | 18389 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18390 | #define wxUSE_MEMORY_TRACING 1 |
18391 | EOF | |
18392 | ||
52127426 | 18393 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18394 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
18395 | EOF | |
18396 | ||
52127426 | 18397 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18398 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
18399 | EOF | |
18400 | ||
18401 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
18402 | fi | |
18403 | ||
18404 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 18405 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
18406 | fi |
18407 | ||
18408 | PROFILE= | |
18409 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 18410 | PROFILE=" -pg" |
10f2d63a VZ |
18411 | fi |
18412 | ||
009fead0 VZ |
18413 | CODE_GEN_FLAGS= |
18414 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 18415 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
18416 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
18417 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 18418 | fi |
4f14bcd8 GD |
18419 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
18420 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
18421 | fi | |
18422 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
18423 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
18424 | fi | |
4f14bcd8 GD |
18425 | if test "$USE_WIN32" = 1 ; then |
18426 | # I'm not even really sure what this was ever added to solve, | |
18427 | # but someone added it for mingw native builds, so I guess | |
18428 | # they had a reason, right?? | |
18429 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
18430 | fi | |
1d1b75ac VZ |
18431 | |
18432 | case "${host}" in | |
18433 | powerpc*-*-aix* ) | |
18434 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
18435 | ;; | |
18436 | esac | |
4f14bcd8 GD |
18437 | fi |
18438 | ||
4f14bcd8 GD |
18439 | if test "$wxUSE_OPTIMISE" = "no" ; then |
18440 | OPTIMISE= | |
18441 | else | |
18442 | if test "$GCC" = yes ; then | |
18443 | OPTIMISE="-O2" | |
18444 | case "${host}" in | |
18445 | i586-*-*|i686-*-* ) | |
18446 | OPTIMISE="${OPTIMISE} " | |
18447 | ;; | |
18448 | esac | |
18449 | else | |
18450 | OPTIMISE="-O" | |
18451 | fi | |
18452 | fi | |
18453 | ||
18454 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
52127426 | 18455 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18456 | #define WXWIN_COMPATIBILITY_2 1 |
18457 | EOF | |
18458 | ||
52127426 | 18459 | |
4f14bcd8 GD |
18460 | WXWIN_COMPATIBILITY_2_2="yes" |
18461 | fi | |
18462 | ||
0c9a1c32 | 18463 | if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then |
52127426 | 18464 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18465 | #define WXWIN_COMPATIBILITY_2_2 1 |
18466 | EOF | |
18467 | ||
10f2d63a VZ |
18468 | fi |
18469 | ||
52127426 | 18470 | |
10f2d63a | 18471 | if test "$wxUSE_GUI" = "yes"; then |
52127426 | 18472 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18473 | #define wxUSE_GUI 1 |
18474 | EOF | |
18475 | ||
52127426 | 18476 | |
10f2d63a | 18477 | else |
52127426 | 18478 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18479 | #define wxUSE_NOGUI 1 |
18480 | EOF | |
18481 | ||
18482 | fi | |
18483 | ||
52127426 | 18484 | |
10f2d63a | 18485 | if test "$wxUSE_UNIX" = "yes"; then |
52127426 | 18486 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18487 | #define wxUSE_UNIX 1 |
18488 | EOF | |
18489 | ||
18490 | fi | |
18491 | ||
52127426 | 18492 | |
10f2d63a | 18493 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
52127426 | 18494 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18495 | #define wxUSE_APPLE_IEEE 1 |
18496 | EOF | |
18497 | ||
18498 | fi | |
18499 | ||
1e6feb95 | 18500 | if test "$wxUSE_TIMER" = "yes"; then |
52127426 | 18501 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
18502 | #define wxUSE_TIMER 1 |
18503 | EOF | |
18504 | ||
18505 | fi | |
18506 | ||
10f2d63a | 18507 | if test "$wxUSE_WAVE" = "yes"; then |
52127426 | 18508 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18509 | #define wxUSE_WAVE 1 |
18510 | EOF | |
18511 | ||
18512 | fi | |
18513 | ||
1e6feb95 | 18514 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
52127426 | 18515 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
18516 | #define wxUSE_CMDLINE_PARSER 1 |
18517 | EOF | |
18518 | ||
18519 | fi | |
18520 | ||
18521 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
52127426 | 18522 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
18523 | #define wxUSE_STOPWATCH 1 |
18524 | EOF | |
18525 | ||
18526 | fi | |
18527 | ||
18528 | if test "$wxUSE_DATETIME" = "yes"; then | |
52127426 | 18529 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
18530 | #define wxUSE_DATETIME 1 |
18531 | EOF | |
18532 | ||
18533 | fi | |
18534 | ||
18535 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
52127426 | 18536 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
18537 | #define wxUSE_TIMEDATE 1 |
18538 | EOF | |
18539 | ||
18540 | fi | |
18541 | ||
10f2d63a | 18542 | if test "$wxUSE_FILE" = "yes"; then |
52127426 | 18543 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18544 | #define wxUSE_FILE 1 |
18545 | EOF | |
18546 | ||
18547 | fi | |
18548 | ||
1e6feb95 | 18549 | if test "$wxUSE_FFILE" = "yes"; then |
52127426 | 18550 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
18551 | #define wxUSE_FFILE 1 |
18552 | EOF | |
18553 | ||
18554 | fi | |
18555 | ||
24528b0c | 18556 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
52127426 | 18557 | cat >> confdefs.h <<\EOF |
24528b0c VS |
18558 | #define wxUSE_FILESYSTEM 1 |
18559 | EOF | |
18560 | ||
18561 | fi | |
18562 | ||
10f2d63a | 18563 | if test "$wxUSE_FS_INET" = "yes"; then |
52127426 | 18564 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18565 | #define wxUSE_FS_INET 1 |
18566 | EOF | |
18567 | ||
18568 | fi | |
18569 | ||
18570 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
52127426 | 18571 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18572 | #define wxUSE_FS_ZIP 1 |
18573 | EOF | |
18574 | ||
18575 | fi | |
18576 | ||
18577 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
52127426 | 18578 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18579 | #define wxUSE_ZIPSTREAM 1 |
18580 | EOF | |
18581 | ||
18582 | fi | |
18583 | ||
eb4efbdc | 18584 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
52127426 | 18585 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
18586 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
18587 | EOF | |
18588 | ||
18589 | fi | |
18590 | ||
4f3c5f06 | 18591 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
52127426 | 18592 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
18593 | #define wxUSE_SNGLINST_CHECKER 1 |
18594 | EOF | |
18595 | ||
18596 | fi | |
18597 | ||
10f2d63a | 18598 | if test "$wxUSE_BUSYINFO" = "yes"; then |
52127426 | 18599 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18600 | #define wxUSE_BUSYINFO 1 |
18601 | EOF | |
18602 | ||
18603 | fi | |
18604 | ||
18605 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
52127426 | 18606 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18607 | #define wxUSE_STD_IOSTREAM 1 |
18608 | EOF | |
18609 | ||
18610 | fi | |
18611 | ||
a3a584a7 | 18612 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
52127426 | 18613 | cat >> confdefs.h <<\EOF |
a3a584a7 VZ |
18614 | #define wxUSE_TEXTBUFFER 1 |
18615 | EOF | |
18616 | ||
18617 | fi | |
18618 | ||
10f2d63a | 18619 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 18620 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
52127426 | 18621 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 18622 | else |
52127426 | 18623 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18624 | #define wxUSE_TEXTFILE 1 |
18625 | EOF | |
18626 | ||
18627 | fi | |
18628 | fi | |
18629 | ||
18630 | if test "$wxUSE_CONFIG" = "yes" ; then | |
18631 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
52127426 | 18632 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 18633 | else |
52127426 | 18634 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18635 | #define wxUSE_CONFIG 1 |
18636 | EOF | |
18637 | ||
18638 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
18639 | fi | |
18640 | fi | |
18641 | ||
18642 | if test "$wxUSE_INTL" = "yes" ; then | |
18643 | if test "$wxUSE_FILE" != "yes"; then | |
52127426 | 18644 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 18645 | else |
52127426 | 18646 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18647 | #define wxUSE_INTL 1 |
18648 | EOF | |
18649 | ||
18650 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 18651 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
18652 | fi |
18653 | fi | |
18654 | ||
18655 | if test "$wxUSE_LOG" = "yes"; then | |
52127426 | 18656 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18657 | #define wxUSE_LOG 1 |
18658 | EOF | |
18659 | ||
52127426 | 18660 | |
d73be714 | 18661 | if test "$wxUSE_LOGGUI" = "yes"; then |
52127426 | 18662 | cat >> confdefs.h <<\EOF |
d73be714 VZ |
18663 | #define wxUSE_LOGGUI 1 |
18664 | EOF | |
18665 | ||
18666 | fi | |
18667 | ||
18668 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
52127426 | 18669 | cat >> confdefs.h <<\EOF |
d73be714 | 18670 | #define wxUSE_LOGWINDOW 1 |
69d27ff7 MB |
18671 | EOF |
18672 | ||
18673 | fi | |
18674 | ||
18675 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
52127426 | 18676 | cat >> confdefs.h <<\EOF |
69d27ff7 | 18677 | #define wxUSE_LOG_DIALOG 1 |
d73be714 VZ |
18678 | EOF |
18679 | ||
18680 | fi | |
10f2d63a VZ |
18681 | fi |
18682 | ||
18683 | if test "$wxUSE_LONGLONG" = "yes"; then | |
52127426 | 18684 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18685 | #define wxUSE_LONGLONG 1 |
18686 | EOF | |
18687 | ||
18688 | fi | |
18689 | ||
e8f65ba6 | 18690 | if test "$wxUSE_GEOMETRY" = "yes"; then |
52127426 | 18691 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
18692 | #define wxUSE_GEOMETRY 1 |
18693 | EOF | |
18694 | ||
18695 | fi | |
18696 | ||
10f2d63a | 18697 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
52127426 | 18698 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18699 | #define wxUSE_DIALUP_MANAGER 1 |
18700 | EOF | |
18701 | ||
70f7a477 | 18702 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
18703 | fi |
18704 | ||
18705 | if test "$wxUSE_STREAMS" = "yes" ; then | |
52127426 | 18706 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18707 | #define wxUSE_STREAMS 1 |
18708 | EOF | |
18709 | ||
18710 | fi | |
18711 | ||
7b4a847f | 18712 | |
52127426 JS |
18713 | if test "$wxUSE_DATETIME" = "yes"; then |
18714 | for ac_func in strptime | |
83307f33 | 18715 | do |
52127426 | 18716 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dd0e4a90 | 18717 | echo "configure:18718: checking for $ac_func" >&5 |
52127426 JS |
18718 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18719 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18720 | else | |
18721 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 18722 | #line 18723 "configure" |
83307f33 VZ |
18723 | #include "confdefs.h" |
18724 | /* System header to define __stub macros and hopefully few prototypes, | |
52127426 | 18725 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
18726 | #include <assert.h> |
18727 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18728 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
18729 | builtin and then its argument prototype would still apply. */ |
18730 | char $ac_func(); | |
18731 | ||
18732 | int main() { | |
83307f33 VZ |
18733 | |
18734 | /* The GNU C library defines this for functions which it implements | |
18735 | to always fail with ENOSYS. Some functions are actually named | |
18736 | something starting with __ and the normal name is an alias. */ | |
18737 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18738 | choke me | |
18739 | #else | |
52127426 | 18740 | $ac_func(); |
83307f33 VZ |
18741 | #endif |
18742 | ||
52127426 | 18743 | ; return 0; } |
83307f33 | 18744 | EOF |
dd0e4a90 | 18745 | if { (eval echo configure:18746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
18746 | rm -rf conftest* |
18747 | eval "ac_cv_func_$ac_func=yes" | |
18748 | else | |
18749 | echo "configure: failed program was:" >&5 | |
18750 | cat conftest.$ac_ext >&5 | |
18751 | rm -rf conftest* | |
18752 | eval "ac_cv_func_$ac_func=no" | |
18753 | fi | |
18754 | rm -f conftest* | |
18755 | fi | |
83307f33 | 18756 | |
52127426 JS |
18757 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18758 | echo "$ac_t""yes" 1>&6 | |
18759 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18760 | cat >> confdefs.h <<EOF | |
18761 | #define $ac_tr_func 1 | |
18762 | EOF | |
18763 | ||
18764 | else | |
18765 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
18766 | fi |
18767 | done | |
18768 | ||
7b4a847f | 18769 | |
52127426 | 18770 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
dd0e4a90 | 18771 | echo "configure:18772: checking for timezone variable in <time.h>" >&5 |
52127426 JS |
18772 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
18773 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18774 | else | |
18775 | ||
18776 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 18777 | #line 18778 "configure" |
360d6699 VZ |
18778 | #include "confdefs.h" |
18779 | ||
b4085ce6 | 18780 | #include <time.h> |
52127426 JS |
18781 | |
18782 | int main() { | |
360d6699 VZ |
18783 | |
18784 | int tz; | |
4f11a343 | 18785 | tz = timezone; |
52127426 JS |
18786 | |
18787 | ; return 0; } | |
18788 | EOF | |
dd0e4a90 | 18789 | if { (eval echo configure:18790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 JS |
18790 | rm -rf conftest* |
18791 | ||
4f11a343 | 18792 | wx_cv_var_timezone=timezone |
52127426 | 18793 | |
360d6699 | 18794 | else |
52127426 JS |
18795 | echo "configure: failed program was:" >&5 |
18796 | cat conftest.$ac_ext >&5 | |
18797 | rm -rf conftest* | |
18798 | ||
18799 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 18800 | #line 18801 "configure" |
360d6699 VZ |
18801 | #include "confdefs.h" |
18802 | ||
b4085ce6 | 18803 | #include <time.h> |
52127426 JS |
18804 | |
18805 | int main() { | |
360d6699 VZ |
18806 | |
18807 | int tz; | |
18808 | tz = _timezone; | |
52127426 JS |
18809 | |
18810 | ; return 0; } | |
18811 | EOF | |
dd0e4a90 | 18812 | if { (eval echo configure:18813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 JS |
18813 | rm -rf conftest* |
18814 | ||
360d6699 | 18815 | wx_cv_var_timezone=_timezone |
52127426 | 18816 | |
5357c8e8 | 18817 | else |
52127426 JS |
18818 | echo "configure: failed program was:" >&5 |
18819 | cat conftest.$ac_ext >&5 | |
18820 | rm -rf conftest* | |
18821 | ||
18822 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 18823 | #line 18824 "configure" |
5357c8e8 VZ |
18824 | #include "confdefs.h" |
18825 | ||
b4085ce6 | 18826 | #include <time.h> |
52127426 JS |
18827 | |
18828 | int main() { | |
5357c8e8 VZ |
18829 | |
18830 | int tz; | |
4f11a343 | 18831 | tz = __timezone; |
52127426 JS |
18832 | |
18833 | ; return 0; } | |
18834 | EOF | |
dd0e4a90 | 18835 | if { (eval echo configure:18836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 JS |
18836 | rm -rf conftest* |
18837 | ||
4f11a343 | 18838 | wx_cv_var_timezone=__timezone |
52127426 | 18839 | |
360d6699 | 18840 | else |
52127426 JS |
18841 | echo "configure: failed program was:" >&5 |
18842 | cat conftest.$ac_ext >&5 | |
18843 | rm -rf conftest* | |
18844 | ||
f9bc1684 | 18845 | if test "$USE_DOS" = 0 ; then |
52127426 | 18846 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 | 18847 | fi |
52127426 JS |
18848 | |
18849 | ||
6232543b | 18850 | fi |
52127426 JS |
18851 | rm -f conftest* |
18852 | ||
18853 | ||
1e487827 | 18854 | fi |
52127426 JS |
18855 | rm -f conftest* |
18856 | ||
18857 | ||
328a083c | 18858 | fi |
52127426 JS |
18859 | rm -f conftest* |
18860 | ||
18861 | ||
7b4a847f | 18862 | fi |
52127426 JS |
18863 | |
18864 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
698dcdb6 | 18865 | |
f9bc1684 | 18866 | if test "x$wx_cv_var_timezone" != x ; then |
52127426 | 18867 | cat >> confdefs.h <<EOF |
360d6699 VZ |
18868 | #define WX_TIMEZONE $wx_cv_var_timezone |
18869 | EOF | |
18870 | ||
f9bc1684 | 18871 | fi |
698dcdb6 | 18872 | |
52127426 | 18873 | for ac_func in localtime |
afc31813 | 18874 | do |
52127426 | 18875 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dd0e4a90 | 18876 | echo "configure:18877: checking for $ac_func" >&5 |
52127426 JS |
18877 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18878 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18879 | else | |
18880 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 18881 | #line 18882 "configure" |
10f2d63a | 18882 | #include "confdefs.h" |
afc31813 | 18883 | /* System header to define __stub macros and hopefully few prototypes, |
52127426 | 18884 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
18885 | #include <assert.h> |
18886 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18887 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
18888 | builtin and then its argument prototype would still apply. */ |
18889 | char $ac_func(); | |
18890 | ||
18891 | int main() { | |
afc31813 VZ |
18892 | |
18893 | /* The GNU C library defines this for functions which it implements | |
18894 | to always fail with ENOSYS. Some functions are actually named | |
18895 | something starting with __ and the normal name is an alias. */ | |
18896 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18897 | choke me | |
18898 | #else | |
52127426 | 18899 | $ac_func(); |
afc31813 VZ |
18900 | #endif |
18901 | ||
52127426 | 18902 | ; return 0; } |
10f2d63a | 18903 | EOF |
dd0e4a90 | 18904 | if { (eval echo configure:18905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
18905 | rm -rf conftest* |
18906 | eval "ac_cv_func_$ac_func=yes" | |
18907 | else | |
18908 | echo "configure: failed program was:" >&5 | |
18909 | cat conftest.$ac_ext >&5 | |
18910 | rm -rf conftest* | |
18911 | eval "ac_cv_func_$ac_func=no" | |
18912 | fi | |
18913 | rm -f conftest* | |
18914 | fi | |
afc31813 | 18915 | |
52127426 JS |
18916 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18917 | echo "$ac_t""yes" 1>&6 | |
18918 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18919 | cat >> confdefs.h <<EOF | |
18920 | #define $ac_tr_func 1 | |
18921 | EOF | |
18922 | ||
18923 | else | |
18924 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
18925 | fi |
18926 | done | |
18927 | ||
7b4a847f | 18928 | |
52127426 JS |
18929 | if test "$ac_cv_func_localtime" = "yes"; then |
18930 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
dd0e4a90 | 18931 | echo "configure:18932: checking for tm_gmtoff in struct tm" >&5 |
52127426 JS |
18932 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
18933 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18934 | else | |
18935 | ||
18936 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 18937 | #line 18938 "configure" |
0470b1e6 VZ |
18938 | #include "confdefs.h" |
18939 | ||
b4085ce6 | 18940 | #include <time.h> |
52127426 JS |
18941 | |
18942 | int main() { | |
0470b1e6 VZ |
18943 | |
18944 | struct tm tm; | |
18945 | tm.tm_gmtoff++; | |
52127426 JS |
18946 | |
18947 | ; return 0; } | |
18948 | EOF | |
dd0e4a90 | 18949 | if { (eval echo configure:18950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 JS |
18950 | rm -rf conftest* |
18951 | ||
f03a98d8 | 18952 | wx_cv_struct_tm_has_gmtoff=yes |
52127426 | 18953 | |
0470b1e6 | 18954 | else |
52127426 JS |
18955 | echo "configure: failed program was:" >&5 |
18956 | cat conftest.$ac_ext >&5 | |
18957 | rm -rf conftest* | |
18958 | wx_cv_struct_tm_has_gmtoff=no | |
18959 | ||
328a083c | 18960 | fi |
52127426 JS |
18961 | rm -f conftest* |
18962 | ||
7b4a847f | 18963 | fi |
52127426 JS |
18964 | |
18965 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
18966 | fi |
18967 | ||
18968 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
52127426 | 18969 | cat >> confdefs.h <<\EOF |
6232543b VS |
18970 | #define WX_GMTOFF_IN_TM 1 |
18971 | EOF | |
0470b1e6 | 18972 | |
3fcdd07b VZ |
18973 | fi |
18974 | ||
52127426 | 18975 | for ac_func in gettimeofday ftime |
3fcdd07b | 18976 | do |
52127426 | 18977 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dd0e4a90 | 18978 | echo "configure:18979: checking for $ac_func" >&5 |
52127426 JS |
18979 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18980 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18981 | else | |
18982 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 18983 | #line 18984 "configure" |
3fcdd07b VZ |
18984 | #include "confdefs.h" |
18985 | /* System header to define __stub macros and hopefully few prototypes, | |
52127426 | 18986 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
18987 | #include <assert.h> |
18988 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18989 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
18990 | builtin and then its argument prototype would still apply. */ |
18991 | char $ac_func(); | |
18992 | ||
18993 | int main() { | |
3fcdd07b VZ |
18994 | |
18995 | /* The GNU C library defines this for functions which it implements | |
18996 | to always fail with ENOSYS. Some functions are actually named | |
18997 | something starting with __ and the normal name is an alias. */ | |
18998 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18999 | choke me | |
19000 | #else | |
52127426 | 19001 | $ac_func(); |
3fcdd07b VZ |
19002 | #endif |
19003 | ||
52127426 JS |
19004 | ; return 0; } |
19005 | EOF | |
dd0e4a90 | 19006 | if { (eval echo configure:19007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
19007 | rm -rf conftest* |
19008 | eval "ac_cv_func_$ac_func=yes" | |
19009 | else | |
19010 | echo "configure: failed program was:" >&5 | |
19011 | cat conftest.$ac_ext >&5 | |
19012 | rm -rf conftest* | |
19013 | eval "ac_cv_func_$ac_func=no" | |
19014 | fi | |
19015 | rm -f conftest* | |
19016 | fi | |
19017 | ||
19018 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19019 | echo "$ac_t""yes" 1>&6 | |
19020 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19021 | cat >> confdefs.h <<EOF | |
19022 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
19023 | EOF |
19024 | break | |
52127426 JS |
19025 | else |
19026 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
19027 | fi |
19028 | done | |
19029 | ||
579d8138 | 19030 | |
52127426 JS |
19031 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
19032 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
dd0e4a90 | 19033 | echo "configure:19034: checking whether gettimeofday takes two arguments" >&5 |
52127426 JS |
19034 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
19035 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19036 | else | |
19037 | ||
19038 | ||
19039 | ac_ext=C | |
19040 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7b4a847f | 19041 | ac_cpp='$CXXCPP $CPPFLAGS' |
52127426 JS |
19042 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19043 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19044 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 19045 | |
52127426 JS |
19046 | |
19047 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 19048 | #line 19049 "configure" |
10f2d63a | 19049 | #include "confdefs.h" |
afc31813 VZ |
19050 | |
19051 | #include <sys/time.h> | |
19052 | #include <unistd.h> | |
52127426 JS |
19053 | |
19054 | int main() { | |
afc31813 VZ |
19055 | |
19056 | struct timeval tv; | |
776862b4 | 19057 | gettimeofday(&tv, NULL); |
52127426 JS |
19058 | |
19059 | ; return 0; } | |
19060 | EOF | |
dd0e4a90 | 19061 | if { (eval echo configure:19062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 | 19062 | rm -rf conftest* |
afc31813 | 19063 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 19064 | else |
52127426 JS |
19065 | echo "configure: failed program was:" >&5 |
19066 | cat conftest.$ac_ext >&5 | |
19067 | rm -rf conftest* | |
19068 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 19069 | #line 19070 "configure" |
10f2d63a | 19070 | #include "confdefs.h" |
afc31813 VZ |
19071 | |
19072 | #include <sys/time.h> | |
19073 | #include <unistd.h> | |
52127426 JS |
19074 | |
19075 | int main() { | |
afc31813 VZ |
19076 | |
19077 | struct timeval tv; | |
19078 | gettimeofday(&tv); | |
52127426 JS |
19079 | |
19080 | ; return 0; } | |
19081 | EOF | |
dd0e4a90 | 19082 | if { (eval echo configure:19083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 | 19083 | rm -rf conftest* |
afc31813 | 19084 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 19085 | else |
52127426 JS |
19086 | echo "configure: failed program was:" >&5 |
19087 | cat conftest.$ac_ext >&5 | |
19088 | rm -rf conftest* | |
19089 | ||
19090 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
776862b4 | 19091 | wx_cv_func_gettimeofday_has_2_args=unknown |
52127426 JS |
19092 | |
19093 | ||
10f2d63a | 19094 | fi |
52127426 JS |
19095 | rm -f conftest* |
19096 | ||
10f2d63a | 19097 | fi |
52127426 | 19098 | rm -f conftest* |
afc31813 | 19099 | ac_ext=c |
52127426 | 19100 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 19101 | ac_cpp='$CPP $CPPFLAGS' |
52127426 JS |
19102 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19103 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19104 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 19105 | |
52127426 | 19106 | |
afc31813 | 19107 | fi |
52127426 JS |
19108 | |
19109 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 19110 | |
afc31813 | 19111 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
52127426 | 19112 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
19113 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
19114 | EOF | |
19115 | ||
19116 | fi | |
19117 | fi | |
19118 | ||
52127426 | 19119 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
19120 | #define wxUSE_TIMEDATE 1 |
19121 | EOF | |
19122 | ||
19123 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
19124 | fi | |
19125 | ||
6c657b52 | 19126 | |
52127426 | 19127 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 19128 | if test "$wxUSE_MGL" = "1"; then |
52127426 | 19129 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
19130 | wxUSE_SOCKETS="no" |
19131 | fi | |
0feee163 | 19132 | fi |
b089607b | 19133 | |
0feee163 VZ |
19134 | if test "$wxUSE_SOCKETS" = "yes"; then |
19135 | if test "$TOOLKIT" != "MSW"; then | |
52127426 | 19136 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
dd0e4a90 | 19137 | echo "configure:19138: checking for socket" >&5 |
52127426 JS |
19138 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
19139 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 19140 | else |
52127426 | 19141 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 19142 | #line 19143 "configure" |
c63c7106 VZ |
19143 | #include "confdefs.h" |
19144 | /* System header to define __stub macros and hopefully few prototypes, | |
52127426 | 19145 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
19146 | #include <assert.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 | |
52127426 JS |
19149 | builtin and then its argument prototype would still apply. */ |
19150 | char socket(); | |
19151 | ||
19152 | int main() { | |
c63c7106 VZ |
19153 | |
19154 | /* The GNU C library defines this for functions which it implements | |
19155 | to always fail with ENOSYS. Some functions are actually named | |
19156 | something starting with __ and the normal name is an alias. */ | |
19157 | #if defined (__stub_socket) || defined (__stub___socket) | |
19158 | choke me | |
19159 | #else | |
52127426 | 19160 | socket(); |
c63c7106 VZ |
19161 | #endif |
19162 | ||
52127426 JS |
19163 | ; return 0; } |
19164 | EOF | |
dd0e4a90 | 19165 | if { (eval echo configure:19166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
19166 | rm -rf conftest* |
19167 | eval "ac_cv_func_socket=yes" | |
19168 | else | |
19169 | echo "configure: failed program was:" >&5 | |
19170 | cat conftest.$ac_ext >&5 | |
19171 | rm -rf conftest* | |
19172 | eval "ac_cv_func_socket=no" | |
19173 | fi | |
19174 | rm -f conftest* | |
19175 | fi | |
19176 | ||
19177 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
19178 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
19179 | : |
19180 | else | |
52127426 JS |
19181 | echo "$ac_t""no" 1>&6 |
19182 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
dd0e4a90 | 19183 | echo "configure:19184: checking for socket in -lsocket" >&5 |
52127426 JS |
19184 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
19185 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19186 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 19187 | else |
52127426 | 19188 | ac_save_LIBS="$LIBS" |
c63c7106 | 19189 | LIBS="-lsocket $LIBS" |
52127426 | 19190 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 19191 | #line 19192 "configure" |
c63c7106 VZ |
19192 | #include "confdefs.h" |
19193 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19194 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
19195 | builtin and then its argument prototype would still apply. */ |
19196 | char socket(); | |
19197 | ||
19198 | int main() { | |
19199 | socket() | |
19200 | ; return 0; } | |
19201 | EOF | |
dd0e4a90 | 19202 | if { (eval echo configure:19203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
19203 | rm -rf conftest* |
19204 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19205 | else | |
19206 | echo "configure: failed program was:" >&5 | |
19207 | cat conftest.$ac_ext >&5 | |
19208 | rm -rf conftest* | |
19209 | eval "ac_cv_lib_$ac_lib_var=no" | |
19210 | fi | |
19211 | rm -f conftest* | |
19212 | LIBS="$ac_save_LIBS" | |
19213 | ||
19214 | fi | |
19215 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19216 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
19217 | if test "$INET_LINK" != " -lsocket"; then |
19218 | INET_LINK="$INET_LINK -lsocket" | |
19219 | fi | |
c63c7106 | 19220 | else |
52127426 | 19221 | echo "$ac_t""no" 1>&6 |
afc31813 | 19222 | |
52127426 | 19223 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
3a922bb4 | 19224 | wxUSE_SOCKETS=no |
52127426 JS |
19225 | |
19226 | ||
6232543b | 19227 | fi |
b089607b | 19228 | |
52127426 | 19229 | |
1e487827 | 19230 | fi |
afc31813 | 19231 | |
3a922bb4 | 19232 | fi |
0feee163 | 19233 | fi |
51a9faba | 19234 | |
0feee163 VZ |
19235 | if test "$wxUSE_SOCKETS" = "yes" ; then |
19236 | if test "$TOOLKIT" != "MSW"; then | |
52127426 | 19237 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
dd0e4a90 | 19238 | echo "configure:19239: checking what is the type of the third argument of getsockname" >&5 |
52127426 JS |
19239 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
19240 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19241 | else | |
19242 | ||
19243 | ||
19244 | ac_ext=C | |
19245 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7b4a847f | 19246 | ac_cpp='$CXXCPP $CPPFLAGS' |
52127426 JS |
19247 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19248 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19249 | cross_compiling=$ac_cv_prog_cxx_cross | |
19250 | ||
698dcdb6 | 19251 | |
52127426 | 19252 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 19253 | #line 19254 "configure" |
afc31813 | 19254 | #include "confdefs.h" |
51a9faba | 19255 | |
3a922bb4 RL |
19256 | #include <sys/types.h> |
19257 | #include <sys/socket.h> | |
52127426 JS |
19258 | |
19259 | int main() { | |
51a9faba | 19260 | |
3a922bb4 RL |
19261 | socklen_t len; |
19262 | getsockname(0, 0, &len); | |
52127426 JS |
19263 | |
19264 | ; return 0; } | |
19265 | EOF | |
dd0e4a90 | 19266 | if { (eval echo configure:19267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 | 19267 | rm -rf conftest* |
51a9faba | 19268 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 19269 | else |
52127426 JS |
19270 | echo "configure: failed program was:" >&5 |
19271 | cat conftest.$ac_ext >&5 | |
19272 | rm -rf conftest* | |
19273 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 19274 | #line 19275 "configure" |
afc31813 | 19275 | #include "confdefs.h" |
51a9faba | 19276 | |
3a922bb4 RL |
19277 | #include <sys/types.h> |
19278 | #include <sys/socket.h> | |
52127426 JS |
19279 | |
19280 | int main() { | |
51a9faba | 19281 | |
3a922bb4 RL |
19282 | size_t len; |
19283 | getsockname(0, 0, &len); | |
52127426 JS |
19284 | |
19285 | ; return 0; } | |
19286 | EOF | |
dd0e4a90 | 19287 | if { (eval echo configure:19288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 | 19288 | rm -rf conftest* |
51a9faba | 19289 | wx_cv_type_getsockname3=size_t |
afc31813 | 19290 | else |
52127426 JS |
19291 | echo "configure: failed program was:" >&5 |
19292 | cat conftest.$ac_ext >&5 | |
19293 | rm -rf conftest* | |
19294 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 19295 | #line 19296 "configure" |
afc31813 | 19296 | #include "confdefs.h" |
51a9faba | 19297 | |
3a922bb4 RL |
19298 | #include <sys/types.h> |
19299 | #include <sys/socket.h> | |
52127426 JS |
19300 | |
19301 | int main() { | |
51a9faba | 19302 | |
3a922bb4 RL |
19303 | int len; |
19304 | getsockname(0, 0, &len); | |
52127426 JS |
19305 | |
19306 | ; return 0; } | |
19307 | EOF | |
dd0e4a90 | 19308 | if { (eval echo configure:19309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52127426 | 19309 | rm -rf conftest* |
51a9faba | 19310 | wx_cv_type_getsockname3=int |
afc31813 | 19311 | else |
52127426 JS |
19312 | echo "configure: failed program was:" >&5 |
19313 | cat conftest.$ac_ext >&5 | |
19314 | rm -rf conftest* | |
19315 | wx_cv_type_getsockname3=unknown | |
19316 | ||
afc31813 | 19317 | fi |
52127426 JS |
19318 | rm -f conftest* |
19319 | ||
afc31813 | 19320 | fi |
52127426 JS |
19321 | rm -f conftest* |
19322 | ||
afc31813 | 19323 | fi |
52127426 | 19324 | rm -f conftest* |
51a9faba | 19325 | |
3a922bb4 | 19326 | ac_ext=c |
52127426 | 19327 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 19328 | ac_cpp='$CPP $CPPFLAGS' |
52127426 JS |
19329 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19330 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19331 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 19332 | |
52127426 | 19333 | |
51a9faba | 19334 | fi |
52127426 JS |
19335 | |
19336 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 19337 | |
3a922bb4 RL |
19338 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
19339 | wxUSE_SOCKETS=no | |
52127426 | 19340 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
3a922bb4 | 19341 | else |
52127426 | 19342 | cat >> confdefs.h <<EOF |
51a9faba VZ |
19343 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
19344 | EOF | |
19345 | ||
3a922bb4 | 19346 | fi |
51a9faba VZ |
19347 | fi |
19348 | fi | |
afc31813 | 19349 | |
51a9faba | 19350 | if test "$wxUSE_SOCKETS" = "yes" ; then |
52127426 | 19351 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
19352 | #define wxUSE_SOCKETS 1 |
19353 | EOF | |
19354 | ||
70f7a477 | 19355 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
19356 | fi |
19357 | ||
52127426 | 19358 | |
dc3d889d VZ |
19359 | if test "$wxUSE_GUI" = "yes"; then |
19360 | ||
156b2523 | 19361 | if test "$TOOLKIT" = "MAC"; then |
52127426 | 19362 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
19363 | wxUSE_JOYSTICK=no |
19364 | fi | |
19365 | if test "$TOOLKIT" = "MOTIF"; then | |
52127426 | 19366 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 |
156b2523 | 19367 | wxUSE_JOYSTICK=no |
f79bd02d JS |
19368 | fi |
19369 | if test "$TOOLKIT" = "X11"; then | |
52127426 | 19370 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 |
f79bd02d | 19371 | wxUSE_JOYSTICK=no |
156b2523 GD |
19372 | fi |
19373 | ||
3a922bb4 RL |
19374 | if test "$TOOLKIT" != "MSW"; then |
19375 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
52127426 | 19376 | for ac_hdr in linux/joystick.h |
10f2d63a | 19377 | do |
52127426 JS |
19378 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19379 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
dd0e4a90 | 19380 | echo "configure:19381: checking for $ac_hdr" >&5 |
52127426 JS |
19381 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19382 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19383 | else | |
19384 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 19385 | #line 19386 "configure" |
10f2d63a | 19386 | #include "confdefs.h" |
52127426 JS |
19387 | #include <$ac_hdr> |
19388 | EOF | |
19389 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dd0e4a90 | 19390 | { (eval echo configure:19391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
52127426 JS |
19391 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19392 | if test -z "$ac_err"; then | |
19393 | rm -rf conftest* | |
19394 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 19395 | else |
52127426 JS |
19396 | echo "$ac_err" >&5 |
19397 | echo "configure: failed program was:" >&5 | |
10f2d63a | 19398 | cat conftest.$ac_ext >&5 |
52127426 JS |
19399 | rm -rf conftest* |
19400 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 19401 | fi |
52127426 | 19402 | rm -f conftest* |
10f2d63a | 19403 | fi |
52127426 JS |
19404 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19405 | echo "$ac_t""yes" 1>&6 | |
19406 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19407 | cat >> confdefs.h <<EOF | |
19408 | #define $ac_tr_hdr 1 | |
10f2d63a | 19409 | EOF |
52127426 JS |
19410 | |
19411 | else | |
19412 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
19413 | fi |
19414 | done | |
19415 | ||
3a922bb4 RL |
19416 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
19417 | wxUSE_JOYSTICK=no | |
52127426 | 19418 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
19419 | fi |
19420 | fi | |
19421 | fi | |
b089607b | 19422 | |
3a922bb4 | 19423 | if test "$wxUSE_JOYSTICK" = "yes"; then |
52127426 | 19424 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19425 | #define wxUSE_JOYSTICK 1 |
19426 | EOF | |
19427 | ||
3a922bb4 RL |
19428 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
19429 | fi | |
dc3d889d VZ |
19430 | fi |
19431 | ||
52127426 | 19432 | |
b089607b VZ |
19433 | if test "$TOOLKIT" != "MSW"; then |
19434 | ||
3a922bb4 RL |
19435 | HAVE_DL_FUNCS=0 |
19436 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 19437 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
19438 | if test "$USE_DARWIN" = 1; then |
19439 | HAVE_DL_FUNCS=1 | |
19440 | else | |
52127426 | 19441 | for ac_func in dlopen |
10f2d63a | 19442 | do |
52127426 | 19443 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dd0e4a90 | 19444 | echo "configure:19445: checking for $ac_func" >&5 |
52127426 JS |
19445 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19446 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19447 | else | |
19448 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 19449 | #line 19450 "configure" |
10f2d63a VZ |
19450 | #include "confdefs.h" |
19451 | /* System header to define __stub macros and hopefully few prototypes, | |
52127426 | 19452 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19453 | #include <assert.h> |
19454 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19455 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
19456 | builtin and then its argument prototype would still apply. */ |
19457 | char $ac_func(); | |
19458 | ||
19459 | int main() { | |
10f2d63a VZ |
19460 | |
19461 | /* The GNU C library defines this for functions which it implements | |
19462 | to always fail with ENOSYS. Some functions are actually named | |
19463 | something starting with __ and the normal name is an alias. */ | |
19464 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19465 | choke me | |
19466 | #else | |
52127426 | 19467 | $ac_func(); |
10f2d63a VZ |
19468 | #endif |
19469 | ||
52127426 JS |
19470 | ; return 0; } |
19471 | EOF | |
dd0e4a90 | 19472 | if { (eval echo configure:19473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
19473 | rm -rf conftest* |
19474 | eval "ac_cv_func_$ac_func=yes" | |
19475 | else | |
19476 | echo "configure: failed program was:" >&5 | |
19477 | cat conftest.$ac_ext >&5 | |
19478 | rm -rf conftest* | |
19479 | eval "ac_cv_func_$ac_func=no" | |
19480 | fi | |
19481 | rm -f conftest* | |
19482 | fi | |
19483 | ||
19484 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19485 | echo "$ac_t""yes" 1>&6 | |
19486 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19487 | cat >> confdefs.h <<EOF | |
19488 | #define $ac_tr_func 1 | |
19489 | EOF | |
19490 | ||
19491 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19492 | #define HAVE_DLOPEN 1 |
19493 | EOF | |
19494 | ||
3a922bb4 | 19495 | HAVE_DL_FUNCS=1 |
52127426 | 19496 | |
10f2d63a | 19497 | else |
52127426 JS |
19498 | echo "$ac_t""no" 1>&6 |
19499 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
dd0e4a90 | 19500 | echo "configure:19501: checking for dlopen in -ldl" >&5 |
52127426 JS |
19501 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
19502 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19503 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 19504 | else |
52127426 | 19505 | ac_save_LIBS="$LIBS" |
10f2d63a | 19506 | LIBS="-ldl $LIBS" |
52127426 | 19507 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 19508 | #line 19509 "configure" |
10f2d63a VZ |
19509 | #include "confdefs.h" |
19510 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19511 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
19512 | builtin and then its argument prototype would still apply. */ |
19513 | char dlopen(); | |
19514 | ||
19515 | int main() { | |
19516 | dlopen() | |
19517 | ; return 0; } | |
19518 | EOF | |
dd0e4a90 | 19519 | if { (eval echo configure:19520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
19520 | rm -rf conftest* |
19521 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19522 | else | |
19523 | echo "configure: failed program was:" >&5 | |
19524 | cat conftest.$ac_ext >&5 | |
19525 | rm -rf conftest* | |
19526 | eval "ac_cv_lib_$ac_lib_var=no" | |
19527 | fi | |
19528 | rm -f conftest* | |
19529 | LIBS="$ac_save_LIBS" | |
19530 | ||
19531 | fi | |
19532 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19533 | echo "$ac_t""yes" 1>&6 | |
19534 | ||
19535 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19536 | #define HAVE_DLOPEN 1 |
19537 | EOF | |
19538 | ||
3a922bb4 | 19539 | HAVE_DL_FUNCS=1 |
3d63bc3a | 19540 | DL_LINK=" -ldl$DL_LINK" |
52127426 | 19541 | |
10f2d63a | 19542 | else |
52127426 | 19543 | echo "$ac_t""no" 1>&6 |
10f2d63a | 19544 | |
52127426 | 19545 | for ac_func in shl_load |
10f2d63a | 19546 | do |
52127426 | 19547 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dd0e4a90 | 19548 | echo "configure:19549: checking for $ac_func" >&5 |
52127426 JS |
19549 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19550 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19551 | else | |
19552 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 19553 | #line 19554 "configure" |
10f2d63a VZ |
19554 | #include "confdefs.h" |
19555 | /* System header to define __stub macros and hopefully few prototypes, | |
52127426 | 19556 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19557 | #include <assert.h> |
19558 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19559 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
19560 | builtin and then its argument prototype would still apply. */ |
19561 | char $ac_func(); | |
19562 | ||
19563 | int main() { | |
10f2d63a VZ |
19564 | |
19565 | /* The GNU C library defines this for functions which it implements | |
19566 | to always fail with ENOSYS. Some functions are actually named | |
19567 | something starting with __ and the normal name is an alias. */ | |
19568 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19569 | choke me | |
19570 | #else | |
52127426 | 19571 | $ac_func(); |
10f2d63a VZ |
19572 | #endif |
19573 | ||
52127426 JS |
19574 | ; return 0; } |
19575 | EOF | |
dd0e4a90 | 19576 | if { (eval echo configure:19577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
19577 | rm -rf conftest* |
19578 | eval "ac_cv_func_$ac_func=yes" | |
19579 | else | |
19580 | echo "configure: failed program was:" >&5 | |
19581 | cat conftest.$ac_ext >&5 | |
19582 | rm -rf conftest* | |
19583 | eval "ac_cv_func_$ac_func=no" | |
19584 | fi | |
19585 | rm -f conftest* | |
19586 | fi | |
19587 | ||
19588 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19589 | echo "$ac_t""yes" 1>&6 | |
19590 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19591 | cat >> confdefs.h <<EOF | |
19592 | #define $ac_tr_func 1 | |
19593 | EOF | |
19594 | ||
19595 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19596 | #define HAVE_SHL_LOAD 1 |
19597 | EOF | |
19598 | ||
3a922bb4 | 19599 | HAVE_SHL_FUNCS=1 |
52127426 | 19600 | |
10f2d63a | 19601 | else |
52127426 JS |
19602 | echo "$ac_t""no" 1>&6 |
19603 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
dd0e4a90 | 19604 | echo "configure:19605: checking for dld in -lshl_load" >&5 |
52127426 JS |
19605 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
19606 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19607 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19608 | else |
52127426 | 19609 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19610 | LIBS="-lshl_load $LIBS" |
52127426 | 19611 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 19612 | #line 19613 "configure" |
f6bcfd97 BP |
19613 | #include "confdefs.h" |
19614 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19615 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
19616 | builtin and then its argument prototype would still apply. */ |
19617 | char dld(); | |
19618 | ||
19619 | int main() { | |
19620 | dld() | |
19621 | ; return 0; } | |
19622 | EOF | |
dd0e4a90 | 19623 | if { (eval echo configure:19624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
19624 | rm -rf conftest* |
19625 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19626 | else | |
19627 | echo "configure: failed program was:" >&5 | |
19628 | cat conftest.$ac_ext >&5 | |
19629 | rm -rf conftest* | |
19630 | eval "ac_cv_lib_$ac_lib_var=no" | |
19631 | fi | |
19632 | rm -f conftest* | |
19633 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 19634 | |
52127426 JS |
19635 | fi |
19636 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19637 | echo "$ac_t""yes" 1>&6 | |
19638 | ||
3a922bb4 | 19639 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 19640 | DL_LINK=" -ldld$DL_LINK" |
52127426 JS |
19641 | |
19642 | else | |
19643 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19644 | fi |
19645 | ||
52127426 | 19646 | |
10f2d63a VZ |
19647 | fi |
19648 | done | |
19649 | ||
52127426 | 19650 | |
10f2d63a VZ |
19651 | fi |
19652 | ||
52127426 | 19653 | |
10f2d63a VZ |
19654 | fi |
19655 | done | |
19656 | ||
7b4a847f | 19657 | |
52127426 JS |
19658 | if test "$HAVE_DL_FUNCS" = 1; then |
19659 | for ac_func in dlerror | |
f6bcfd97 | 19660 | do |
52127426 | 19661 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dd0e4a90 | 19662 | echo "configure:19663: checking for $ac_func" >&5 |
52127426 JS |
19663 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19664 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19665 | else | |
19666 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 19667 | #line 19668 "configure" |
f6bcfd97 BP |
19668 | #include "confdefs.h" |
19669 | /* System header to define __stub macros and hopefully few prototypes, | |
52127426 | 19670 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
19671 | #include <assert.h> |
19672 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19673 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
19674 | builtin and then its argument prototype would still apply. */ |
19675 | char $ac_func(); | |
19676 | ||
19677 | int main() { | |
f6bcfd97 BP |
19678 | |
19679 | /* The GNU C library defines this for functions which it implements | |
19680 | to always fail with ENOSYS. Some functions are actually named | |
19681 | something starting with __ and the normal name is an alias. */ | |
19682 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19683 | choke me | |
19684 | #else | |
52127426 | 19685 | $ac_func(); |
f6bcfd97 BP |
19686 | #endif |
19687 | ||
52127426 JS |
19688 | ; return 0; } |
19689 | EOF | |
dd0e4a90 | 19690 | if { (eval echo configure:19691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
19691 | rm -rf conftest* |
19692 | eval "ac_cv_func_$ac_func=yes" | |
19693 | else | |
19694 | echo "configure: failed program was:" >&5 | |
19695 | cat conftest.$ac_ext >&5 | |
19696 | rm -rf conftest* | |
19697 | eval "ac_cv_func_$ac_func=no" | |
19698 | fi | |
19699 | rm -f conftest* | |
19700 | fi | |
19701 | ||
19702 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19703 | echo "$ac_t""yes" 1>&6 | |
19704 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19705 | cat >> confdefs.h <<EOF | |
19706 | #define $ac_tr_func 1 | |
19707 | EOF | |
19708 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19709 | #define HAVE_DLERROR 1 |
19710 | EOF | |
19711 | ||
19712 | else | |
52127426 JS |
19713 | echo "$ac_t""no" 1>&6 |
19714 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
dd0e4a90 | 19715 | echo "configure:19716: checking for dlerror in -ldl" >&5 |
52127426 JS |
19716 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
19717 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19718 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19719 | else |
52127426 | 19720 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19721 | LIBS="-ldl $LIBS" |
52127426 | 19722 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 19723 | #line 19724 "configure" |
f6bcfd97 BP |
19724 | #include "confdefs.h" |
19725 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19726 | /* We use char because int might match the return type of a gcc2 | |
52127426 JS |
19727 | builtin and then its argument prototype would still apply. */ |
19728 | char dlerror(); | |
19729 | ||
19730 | int main() { | |
19731 | dlerror() | |
19732 | ; return 0; } | |
19733 | EOF | |
dd0e4a90 | 19734 | if { (eval echo configure:19735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
19735 | rm -rf conftest* |
19736 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19737 | else | |
19738 | echo "configure: failed program was:" >&5 | |
19739 | cat conftest.$ac_ext >&5 | |
19740 | rm -rf conftest* | |
19741 | eval "ac_cv_lib_$ac_lib_var=no" | |
19742 | fi | |
19743 | rm -f conftest* | |
19744 | LIBS="$ac_save_LIBS" | |
19745 | ||
19746 | fi | |
19747 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19748 | echo "$ac_t""yes" 1>&6 | |
19749 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19750 | #define HAVE_DLERROR 1 |
19751 | EOF | |
19752 | ||
52127426 JS |
19753 | else |
19754 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19755 | fi |
19756 | ||
19757 | fi | |
19758 | done | |
19759 | ||
3a922bb4 RL |
19760 | fi |
19761 | fi | |
f6bcfd97 | 19762 | |
3a922bb4 RL |
19763 | if test "$HAVE_DL_FUNCS" = 0; then |
19764 | if test "$HAVE_SHL_FUNCS" = 0; then | |
19765 | if test "$USE_UNIX" = 1; then | |
52127426 | 19766 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
0b9ab0bd | 19767 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
19768 | wxUSE_DYNLIB_CLASS=no |
19769 | else | |
52127426 | 19770 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
3a922bb4 RL |
19771 | fi |
19772 | fi | |
10f2d63a VZ |
19773 | fi |
19774 | fi | |
19775 | fi | |
19776 | ||
0b9ab0bd | 19777 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
52127426 | 19778 | cat >> confdefs.h <<\EOF |
0b9ab0bd RL |
19779 | #define wxUSE_DYNAMIC_LOADER 1 |
19780 | EOF | |
19781 | ||
19782 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
52127426 | 19783 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19784 | #define wxUSE_DYNLIB_CLASS 1 |
19785 | EOF | |
19786 | ||
19787 | fi | |
19788 | ||
52127426 | 19789 | |
1e6feb95 | 19790 | if test "$wxUSE_FONTMAP" = "yes" ; then |
52127426 | 19791 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
19792 | #define wxUSE_FONTMAP 1 |
19793 | EOF | |
19794 | ||
19795 | fi | |
19796 | ||
10f2d63a | 19797 | if test "$wxUSE_UNICODE" = "yes" ; then |
52127426 | 19798 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19799 | #define wxUSE_UNICODE 1 |
19800 | EOF | |
19801 | ||
52127426 | 19802 | |
bbc3925a VS |
19803 | if test "$wxUSE_MSW" != 1; then |
19804 | wxUSE_UNICODE_MSLU=no | |
19805 | fi | |
a72a4bfa VS |
19806 | |
19807 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
52127426 | 19808 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 |
dd0e4a90 | 19809 | echo "configure:19810: checking for main in -lunicows" >&5 |
52127426 JS |
19810 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
19811 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19812 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a72a4bfa | 19813 | else |
52127426 | 19814 | ac_save_LIBS="$LIBS" |
a72a4bfa | 19815 | LIBS="-lunicows $LIBS" |
52127426 | 19816 | cat > conftest.$ac_ext <<EOF |
dd0e4a90 | 19817 | #line 19818 "configure" |
a72a4bfa VS |
19818 | #include "confdefs.h" |
19819 | ||
52127426 JS |
19820 | int main() { |
19821 | main() | |
19822 | ; return 0; } | |
19823 | EOF | |
dd0e4a90 | 19824 | if { (eval echo configure:19825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
52127426 JS |
19825 | rm -rf conftest* |
19826 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19827 | else | |
19828 | echo "configure: failed program was:" >&5 | |
19829 | cat conftest.$ac_ext >&5 | |
19830 | rm -rf conftest* | |
19831 | eval "ac_cv_lib_$ac_lib_var=no" | |
19832 | fi | |
19833 | rm -f conftest* | |
19834 | LIBS="$ac_save_LIBS" | |
19835 | ||
19836 | fi | |
19837 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19838 | echo "$ac_t""yes" 1>&6 | |
19839 | ||
19840 | cat >> confdefs.h <<\EOF | |
a72a4bfa VS |
19841 | #define wxUSE_UNICODE_MSLU 1 |
19842 | EOF | |
19843 | ||
52127426 | 19844 | |
a72a4bfa | 19845 | else |
52127426 | 19846 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 19847 | |
52127426 JS |
19848 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. |
19849 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
a72a4bfa | 19850 | wxUSE_UNICODE_MSLU=no |
52127426 | 19851 | |
a72a4bfa VS |
19852 | fi |
19853 | ||
19854 | fi | |
10f2d63a VZ |
19855 | fi |
19856 | ||
10f2d63a | 19857 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
52127426 | 19858 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19859 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
19860 | EOF | |
19861 | ||
19862 | fi | |
19863 | ||
52127426 JS |
19864 | |
19865 | ||
10f2d63a VZ |
19866 | IODBC_C_SRC="" |
19867 | if test "$wxUSE_ODBC" = "yes" ; then | |
52127426 | 19868 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19869 | #define wxUSE_ODBC 1 |
19870 | EOF | |
19871 | ||
19872 | WXODBCFLAG="-D_IODBC_" | |
19873 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
19874 | fi |
19875 | ||
52127426 | 19876 | |
10f2d63a | 19877 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
52127426 | 19878 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19879 | #define wxUSE_POSTSCRIPT 1 |
19880 | EOF | |
19881 | ||
19882 | fi | |
19883 | ||
52127426 | 19884 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19885 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
19886 | EOF | |
19887 | ||
52127426 JS |
19888 | |
19889 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19890 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
19891 | EOF | |
19892 | ||
52127426 JS |
19893 | |
19894 | ||
10f2d63a | 19895 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
52127426 | 19896 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19897 | #define wxUSE_CONSTRAINTS 1 |
19898 | EOF | |
19899 | ||
19900 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
19901 | fi | |
19902 | ||
19903 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 19904 | |
bb811f17 JS |
19905 | |
19906 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19907 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19908 | #define wxUSE_MDI_ARCHITECTURE 1 |
19909 | EOF | |
19910 | ||
bb811f17 JS |
19911 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
19912 | fi | |
10f2d63a VZ |
19913 | fi |
19914 | ||
19915 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
52127426 | 19916 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19917 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
19918 | EOF | |
19919 | ||
19920 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
19921 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19922 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
19923 | fi | |
19924 | fi | |
19925 | ||
19926 | if test "$wxUSE_HELP" = "yes"; then | |
52127426 | 19927 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19928 | #define wxUSE_HELP 1 |
19929 | EOF | |
19930 | ||
19931 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 19932 | |
77e13408 | 19933 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 19934 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
52127426 | 19935 | cat >> confdefs.h <<\EOF |
29fd3c0c VS |
19936 | #define wxUSE_MS_HTML_HELP 1 |
19937 | EOF | |
19938 | ||
3e44f09d | 19939 | fi |
3379ed37 | 19940 | fi |
031d8228 VS |
19941 | |
19942 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
19943 | if test "$wxUSE_HTML" = "yes"; then | |
52127426 | 19944 | cat >> confdefs.h <<\EOF |
031d8228 VS |
19945 | #define wxUSE_WXHTML_HELP 1 |
19946 | EOF | |
19947 | ||
19948 | else | |
52127426 | 19949 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 |
031d8228 VS |
19950 | wxUSE_WXHTML_HELP=no |
19951 | fi | |
19952 | fi | |
10f2d63a VZ |
19953 | fi |
19954 | ||
19955 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
19956 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
52127426 | 19957 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 19958 | else |
52127426 | 19959 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19960 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
19961 | EOF | |
19962 | ||
19963 | fi | |
19964 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
19965 | fi | |
19966 | ||
19967 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
52127426 | 19968 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19969 | #define wxUSE_PROLOGIO 1 |
19970 | EOF | |
19971 | ||
19972 | fi | |
19973 | ||
19974 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea | 19975 | if test "$wxUSE_NANOX" = "yes"; then |
52127426 | 19976 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 |
e334d0ea | 19977 | else |
52127426 | 19978 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19979 | #define wxUSE_RESOURCES 1 |
19980 | EOF | |
19981 | ||
e334d0ea JS |
19982 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
19983 | fi | |
10f2d63a VZ |
19984 | fi |
19985 | ||
19986 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
52127426 | 19987 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19988 | #define wxUSE_X_RESOURCES 1 |
19989 | EOF | |
19990 | ||
19991 | fi | |
19992 | ||
52127426 | 19993 | |
77e13408 RL |
19994 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
19995 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
19996 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
52127426 | 19997 | for ac_hdr in ole2.h |
10f2d63a | 19998 | do |
52127426 JS |
19999 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
20000 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
dd0e4a90 | 20001 | echo "configure:20002: checking for $ac_hdr" >&5 |
52127426 JS |
20002 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20003 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20004 | else | |
20005 | cat > conftest.$ac_ext <<EOF | |
dd0e4a90 | 20006 | #line 20007 "configure" |
10f2d63a | 20007 | #include "confdefs.h" |
52127426 JS |
20008 | #include <$ac_hdr> |
20009 | EOF | |
20010 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dd0e4a90 | 20011 | { (eval echo configure:20012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
52127426 JS |
20012 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20013 | if test -z "$ac_err"; then | |
20014 | rm -rf conftest* | |
20015 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 20016 | else |
52127426 JS |
20017 | echo "$ac_err" >&5 |
20018 | echo "configure: failed program was:" >&5 | |
10f2d63a | 20019 | cat conftest.$ac_ext >&5 |
52127426 JS |
20020 | rm -rf conftest* |
20021 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 20022 | fi |
52127426 | 20023 | rm -f conftest* |
10f2d63a | 20024 | fi |
52127426 JS |
20025 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
20026 | echo "$ac_t""yes" 1>&6 | |
20027 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20028 | cat >> confdefs.h <<EOF | |
20029 | #define $ac_tr_hdr 1 | |
10f2d63a | 20030 | EOF |
52127426 JS |
20031 | |
20032 | else | |
20033 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
20034 | fi |
20035 | done | |
20036 | ||
52127426 | 20037 | |
2b9bdf71 VZ |
20038 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
20039 | if test "$GCC" = yes ; then | |
20040 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 | 20041 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
3d63bc3a | 20042 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
52127426 | 20043 | cat >> confdefs.h <<\EOF |
4f11a343 VS |
20044 | #define wxUSE_OLE 1 |
20045 | EOF | |
20046 | ||
52127426 | 20047 | |
2b9bdf71 VZ |
20048 | fi |
20049 | ||
52127426 | 20050 | cat >> confdefs.h <<\EOF |
2b9bdf71 VZ |
20051 | #define wxUSE_DATAOBJ 1 |
20052 | EOF | |
20053 | ||
20054 | else | |
52127426 | 20055 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 |
2b9bdf71 VZ |
20056 | |
20057 | wxUSE_CLIPBOARD=no | |
20058 | wxUSE_DRAG_AND_DROP=no | |
20059 | wxUSE_DATAOBJ=no | |
20060 | fi | |
20061 | ||
77e13408 | 20062 | if test "$wxUSE_METAFILE" = "yes"; then |
52127426 | 20063 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
20064 | #define wxUSE_METAFILE 1 |
20065 | EOF | |
20066 | ||
52127426 JS |
20067 | |
20068 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
20069 | #define wxUSE_ENH_METAFILE 1 |
20070 | EOF | |
20071 | ||
2b9bdf71 VZ |
20072 | fi |
20073 | fi | |
20074 | ||
20075 | if test "$wxUSE_IPC" = "yes"; then | |
20076 | if test "$wxUSE_SOCKETS" != "yes"; then | |
52127426 | 20077 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
20078 | fi |
20079 | ||
52127426 | 20080 | cat >> confdefs.h <<\EOF |
2b9bdf71 VZ |
20081 | #define wxUSE_IPC 1 |
20082 | EOF | |
20083 | ||
20084 | fi | |
20085 | ||
20086 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 20087 | if test "$wxUSE_MGL" = 1; then |
52127426 | 20088 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
20089 | wxUSE_CLIPBOARD=no |
20090 | fi | |
20091 | ||
20092 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
52127426 | 20093 | cat >> confdefs.h <<\EOF |
2b9bdf71 VZ |
20094 | #define wxUSE_CLIPBOARD 1 |
20095 | EOF | |
20096 | ||
52127426 JS |
20097 | |
20098 | cat >> confdefs.h <<\EOF | |
673f4220 VZ |
20099 | #define wxUSE_DATAOBJ 1 |
20100 | EOF | |
20101 | ||
6c657b52 | 20102 | fi |
2b9bdf71 VZ |
20103 | fi |
20104 | ||
20105 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
20106 | if test "$wxUSE_GTK" = 1; then | |
20107 | if test "$WXGTK12" != 1; then | |
52127426 | 20108 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
20109 | wxUSE_DRAG_AND_DROP=no |
20110 | fi | |
20111 | fi | |
20112 | ||
2b9bdf71 | 20113 | if test "$wxUSE_MOTIF" = 1; then |
52127426 | 20114 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
20115 | wxUSE_DRAG_AND_DROP=no |
20116 | fi | |
20117 | ||
f79bd02d | 20118 | if test "$wxUSE_X11" = 1; then |
52127426 | 20119 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 |
f79bd02d JS |
20120 | wxUSE_DRAG_AND_DROP=no |
20121 | fi | |
20122 | ||
6c657b52 | 20123 | if test "$wxUSE_MGL" = 1; then |
52127426 | 20124 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
20125 | wxUSE_DRAG_AND_DROP=no |
20126 | fi | |
20127 | ||
10f2d63a | 20128 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
52127426 | 20129 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20130 | #define wxUSE_DRAG_AND_DROP 1 |
20131 | EOF | |
20132 | ||
20133 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
20134 | fi | |
20135 | ||
20136 | fi | |
20137 | ||
20138 | if test "$wxUSE_SPLINES" = "yes" ; then | |
52127426 | 20139 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20140 | #define wxUSE_SPLINES 1 |
20141 | EOF | |
20142 | ||
20143 | fi | |
20144 | ||
52127426 | 20145 | |
1e6feb95 VZ |
20146 | USES_CONTROLS=0 |
20147 | if test "$wxUSE_CONTROLS" = "yes"; then | |
20148 | USES_CONTROLS=1 | |
20149 | fi | |
20150 | ||
10f2d63a | 20151 | if test "$wxUSE_ACCEL" = "yes"; then |
52127426 | 20152 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20153 | #define wxUSE_ACCEL 1 |
20154 | EOF | |
20155 | ||
1e6feb95 VZ |
20156 | USES_CONTROLS=1 |
20157 | fi | |
20158 | ||
20159 | if test "$wxUSE_BUTTON" = "yes"; then | |
52127426 | 20160 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20161 | #define wxUSE_BUTTON 1 |
20162 | EOF | |
20163 | ||
20164 | USES_CONTROLS=1 | |
20165 | fi | |
20166 | ||
20167 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
52127426 | 20168 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20169 | #define wxUSE_BMPBUTTON 1 |
20170 | EOF | |
20171 | ||
20172 | USES_CONTROLS=1 | |
20173 | fi | |
20174 | ||
20175 | if test "$wxUSE_CALCTRL" = "yes"; then | |
52127426 | 20176 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20177 | #define wxUSE_CALENDARCTRL 1 |
20178 | EOF | |
20179 | ||
20180 | USES_CONTROLS=1 | |
20181 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
20182 | fi |
20183 | ||
20184 | if test "$wxUSE_CARET" = "yes"; then | |
52127426 | 20185 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20186 | #define wxUSE_CARET 1 |
20187 | EOF | |
20188 | ||
1e6feb95 | 20189 | USES_CONTROLS=1 |
10f2d63a VZ |
20190 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
20191 | fi | |
20192 | ||
20193 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
52127426 | 20194 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20195 | #define wxUSE_COMBOBOX 1 |
20196 | EOF | |
20197 | ||
1e6feb95 | 20198 | USES_CONTROLS=1 |
10f2d63a VZ |
20199 | fi |
20200 | ||
20201 | if test "$wxUSE_CHOICE" = "yes"; then | |
52127426 | 20202 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20203 | #define wxUSE_CHOICE 1 |
20204 | EOF | |
20205 | ||
1e6feb95 | 20206 | USES_CONTROLS=1 |
10f2d63a VZ |
20207 | fi |
20208 | ||
20209 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
52127426 | 20210 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20211 | #define wxUSE_CHECKBOX 1 |
20212 | EOF | |
20213 | ||
1e6feb95 | 20214 | USES_CONTROLS=1 |
10f2d63a VZ |
20215 | fi |
20216 | ||
20217 | if test "$wxUSE_CHECKLST" = "yes"; then | |
52127426 | 20218 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20219 | #define wxUSE_CHECKLISTBOX 1 |
20220 | EOF | |
20221 | ||
1e6feb95 | 20222 | USES_CONTROLS=1 |
10f2d63a VZ |
20223 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
20224 | fi | |
20225 | ||
20226 | if test "$wxUSE_GAUGE" = "yes"; then | |
52127426 | 20227 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20228 | #define wxUSE_GAUGE 1 |
20229 | EOF | |
20230 | ||
1e6feb95 | 20231 | USES_CONTROLS=1 |
10f2d63a VZ |
20232 | fi |
20233 | ||
d6a55c4b VZ |
20234 | if test "$wxUSE_NEW_GRID" = "yes"; then |
20235 | wxUSE_GRID="yes" | |
52127426 | 20236 | cat >> confdefs.h <<\EOF |
d6a55c4b | 20237 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
20238 | EOF |
20239 | ||
1e6feb95 | 20240 | USES_CONTROLS=1 |
d6a55c4b | 20241 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
20242 | fi |
20243 | ||
d6a55c4b | 20244 | if test "$wxUSE_GRID" = "yes"; then |
52127426 | 20245 | cat >> confdefs.h <<\EOF |
d6a55c4b | 20246 | #define wxUSE_GRID 1 |
10f2d63a VZ |
20247 | EOF |
20248 | ||
1e6feb95 | 20249 | USES_CONTROLS=1 |
d6a55c4b | 20250 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
20251 | fi |
20252 | ||
20253 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
52127426 | 20254 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20255 | #define wxUSE_IMAGLIST 1 |
20256 | EOF | |
20257 | ||
20258 | fi | |
20259 | ||
20260 | if test "$wxUSE_LISTBOX" = "yes"; then | |
52127426 | 20261 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20262 | #define wxUSE_LISTBOX 1 |
20263 | EOF | |
20264 | ||
1e6feb95 | 20265 | USES_CONTROLS=1 |
10f2d63a VZ |
20266 | fi |
20267 | ||
20268 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
20269 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
52127426 | 20270 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20271 | #define wxUSE_LISTCTRL 1 |
20272 | EOF | |
20273 | ||
1e6feb95 | 20274 | USES_CONTROLS=1 |
10f2d63a VZ |
20275 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
20276 | else | |
52127426 | 20277 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20278 | fi |
20279 | fi | |
20280 | ||
20281 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
52127426 | 20282 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20283 | #define wxUSE_NOTEBOOK 1 |
20284 | EOF | |
20285 | ||
1e6feb95 | 20286 | USES_CONTROLS=1 |
10f2d63a VZ |
20287 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
20288 | fi | |
20289 | ||
24176f2c | 20290 | if test "$wxUSE_PROPSHEET" = "yes"; then |
52127426 | 20291 | cat >> confdefs.h <<\EOF |
24176f2c GD |
20292 | #define wxUSE_PROPSHEET 1 |
20293 | EOF | |
20294 | ||
20295 | USES_CONTROLS=1 | |
20296 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
20297 | fi | |
20298 | ||
10f2d63a | 20299 | if test "$wxUSE_RADIOBOX" = "yes"; then |
52127426 | 20300 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20301 | #define wxUSE_RADIOBOX 1 |
20302 | EOF | |
20303 | ||
1e6feb95 | 20304 | USES_CONTROLS=1 |
10f2d63a VZ |
20305 | fi |
20306 | ||
20307 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
52127426 | 20308 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20309 | #define wxUSE_RADIOBTN 1 |
20310 | EOF | |
20311 | ||
1e6feb95 | 20312 | USES_CONTROLS=1 |
10f2d63a VZ |
20313 | fi |
20314 | ||
20315 | if test "$wxUSE_SASH" = "yes"; then | |
52127426 | 20316 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20317 | #define wxUSE_SASH 1 |
20318 | EOF | |
20319 | ||
20320 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
20321 | fi | |
20322 | ||
20323 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
52127426 | 20324 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20325 | #define wxUSE_SCROLLBAR 1 |
20326 | EOF | |
20327 | ||
1e6feb95 | 20328 | USES_CONTROLS=1 |
741a9306 | 20329 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
20330 | fi |
20331 | ||
20332 | if test "$wxUSE_SLIDER" = "yes"; then | |
52127426 | 20333 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20334 | #define wxUSE_SLIDER 1 |
20335 | EOF | |
20336 | ||
1e6feb95 | 20337 | USES_CONTROLS=1 |
10f2d63a VZ |
20338 | fi |
20339 | ||
20340 | if test "$wxUSE_SPINBTN" = "yes"; then | |
52127426 | 20341 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20342 | #define wxUSE_SPINBTN 1 |
20343 | EOF | |
20344 | ||
1e6feb95 | 20345 | USES_CONTROLS=1 |
10f2d63a VZ |
20346 | fi |
20347 | ||
56cfaa52 | 20348 | if test "$wxUSE_SPINCTRL" = "yes"; then |
52127426 | 20349 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
20350 | #define wxUSE_SPINCTRL 1 |
20351 | EOF | |
20352 | ||
1e6feb95 | 20353 | USES_CONTROLS=1 |
56cfaa52 RR |
20354 | fi |
20355 | ||
10f2d63a | 20356 | if test "$wxUSE_SPLITTER" = "yes"; then |
52127426 | 20357 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20358 | #define wxUSE_SPLITTER 1 |
20359 | EOF | |
20360 | ||
20361 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
20362 | fi | |
20363 | ||
20364 | if test "$wxUSE_STATBMP" = "yes"; then | |
52127426 | 20365 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20366 | #define wxUSE_STATBMP 1 |
20367 | EOF | |
20368 | ||
1e6feb95 | 20369 | USES_CONTROLS=1 |
10f2d63a VZ |
20370 | fi |
20371 | ||
20372 | if test "$wxUSE_STATBOX" = "yes"; then | |
52127426 | 20373 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20374 | #define wxUSE_STATBOX 1 |
20375 | EOF | |
20376 | ||
1e6feb95 VZ |
20377 | USES_CONTROLS=1 |
20378 | fi | |
20379 | ||
20380 | if test "$wxUSE_STATTEXT" = "yes"; then | |
52127426 | 20381 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20382 | #define wxUSE_STATTEXT 1 |
20383 | EOF | |
20384 | ||
20385 | USES_CONTROLS=1 | |
10f2d63a VZ |
20386 | fi |
20387 | ||
20388 | if test "$wxUSE_STATLINE" = "yes"; then | |
20389 | if test "$wxUSE_WINE" = 1 ; then | |
52127426 | 20390 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 20391 | else |
52127426 | 20392 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20393 | #define wxUSE_STATLINE 1 |
20394 | EOF | |
20395 | ||
1e6feb95 | 20396 | USES_CONTROLS=1 |
10f2d63a VZ |
20397 | fi |
20398 | fi | |
20399 | ||
20400 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
52127426 | 20401 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20402 | #define wxUSE_STATUSBAR 1 |
20403 | EOF | |
20404 | ||
1e6feb95 | 20405 | USES_CONTROLS=1 |
698dcdb6 | 20406 | |
2286341c | 20407 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
20408 | fi |
20409 | ||
20410 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
52127426 | 20411 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20412 | #define wxUSE_TAB_DIALOG 1 |
20413 | EOF | |
20414 | ||
20415 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
20416 | fi | |
20417 | ||
1e6feb95 | 20418 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
52127426 | 20419 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20420 | #define wxUSE_TEXTCTRL 1 |
20421 | EOF | |
20422 | ||
20423 | USES_CONTROLS=1 | |
20424 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
20425 | fi | |
20426 | ||
1db8dc4a | 20427 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 | 20428 | if test "$wxUSE_MAC" = 1; then |
52127426 | 20429 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
20430 | wxUSE_TOGGLEBTN=no |
20431 | fi | |
20432 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
52127426 | 20433 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
20434 | wxUSE_TOGGLEBTN=no |
20435 | fi | |
20436 | ||
20437 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
52127426 | 20438 | cat >> confdefs.h <<\EOF |
1db8dc4a VZ |
20439 | #define wxUSE_TOGGLEBTN 1 |
20440 | EOF | |
20441 | ||
1e6feb95 | 20442 | USES_CONTROLS=1 |
a45d7ab7 | 20443 | fi |
1db8dc4a VZ |
20444 | fi |
20445 | ||
360d6699 | 20446 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
52127426 | 20447 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
20448 | #define wxUSE_TOOLBAR_SIMPLE 1 |
20449 | EOF | |
20450 | ||
20451 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 20452 | USES_CONTROLS=1 |
360d6699 VZ |
20453 | fi |
20454 | ||
10f2d63a | 20455 | if test "$wxUSE_TOOLBAR" = "yes"; then |
52127426 | 20456 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20457 | #define wxUSE_TOOLBAR 1 |
20458 | EOF | |
20459 | ||
1e6feb95 | 20460 | USES_CONTROLS=1 |
698dcdb6 | 20461 | |
360d6699 VZ |
20462 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
20463 | wxUSE_TOOLBAR_NATIVE="yes" | |
20464 | fi | |
20465 | ||
1e6feb95 | 20466 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
52127426 | 20467 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
20468 | #define wxUSE_TOOLBAR_NATIVE 1 |
20469 | EOF | |
20470 | ||
1e6feb95 VZ |
20471 | USES_CONTROLS=1 |
20472 | fi | |
20473 | ||
20474 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
20475 | fi |
20476 | ||
10f2d63a VZ |
20477 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
20478 | if test "$wxUSE_MOTIF" = 1; then | |
52127426 | 20479 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
20480 | else |
20481 | if test "$wxUSE_WINE" = 1; then | |
52127426 | 20482 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 20483 | else |
69d27ff7 | 20484 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
52127426 | 20485 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 |
69d27ff7 | 20486 | else |
52127426 | 20487 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20488 | #define wxUSE_TOOLTIPS 1 |
20489 | EOF | |
20490 | ||
69d27ff7 | 20491 | fi |
10f2d63a VZ |
20492 | fi |
20493 | fi | |
20494 | fi | |
20495 | ||
20496 | if test "$wxUSE_TREECTRL" = "yes"; then | |
20497 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
52127426 | 20498 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20499 | #define wxUSE_TREECTRL 1 |
20500 | EOF | |
20501 | ||
1e6feb95 | 20502 | USES_CONTROLS=1 |
10f2d63a VZ |
20503 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
20504 | else | |
52127426 | 20505 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20506 | fi |
20507 | fi | |
20508 | ||
9f41d601 | 20509 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 20510 | if test "$wxUSE_MAC" = 1; then |
52127426 | 20511 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 20512 | else |
485cf710 | 20513 | if test "$wxUSE_MOTIF" = 1; then |
52127426 | 20514 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 |
485cf710 | 20515 | else |
3c011993 | 20516 | if test "$wxUSE_PM" = 1; then |
52127426 | 20517 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 20518 | else |
52127426 | 20519 | cat >> confdefs.h <<\EOF |
9f41d601 RR |
20520 | #define wxUSE_POPUPWIN 1 |
20521 | EOF | |
20522 | ||
52127426 | 20523 | |
3c011993 VZ |
20524 | USES_CONTROLS=1 |
20525 | fi | |
485cf710 | 20526 | fi |
6abe4b65 | 20527 | fi |
9f41d601 RR |
20528 | fi |
20529 | ||
dd964dcc | 20530 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 20531 | if test "$wxUSE_PM" = 1; then |
52127426 | 20532 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 20533 | else |
52127426 | 20534 | cat >> confdefs.h <<\EOF |
dd964dcc VZ |
20535 | #define wxUSE_TIPWINDOW 1 |
20536 | EOF | |
20537 | ||
3c011993 | 20538 | fi |
dd964dcc VZ |
20539 | fi |
20540 | ||
1e6feb95 | 20541 | if test "$USES_CONTROLS" = 1; then |
52127426 | 20542 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20543 | #define wxUSE_CONTROLS 1 |
10f2d63a VZ |
20544 | EOF |
20545 | ||
10f2d63a VZ |
20546 | fi |
20547 | ||
52127426 | 20548 | |
24176f2c | 20549 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
52127426 | 20550 | cat >> confdefs.h <<\EOF |
24176f2c GD |
20551 | #define wxUSE_TREELAYOUT 1 |
20552 | EOF | |
20553 | ||
20554 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
20555 | fi | |
1e6feb95 | 20556 | |
24fd6d87 | 20557 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
52127426 | 20558 | cat >> confdefs.h <<\EOF |
24fd6d87 VZ |
20559 | #define wxUSE_DRAGIMAGE 1 |
20560 | EOF | |
20561 | ||
20562 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
20563 | fi | |
20564 | ||
1e6feb95 | 20565 | if test "$wxUSE_MENUS" = "yes"; then |
52127426 | 20566 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20567 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
20568 | EOF |
20569 | ||
1e6feb95 | 20570 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
20571 | fi |
20572 | ||
1e6feb95 | 20573 | if test "$wxUSE_METAFILE" = "yes"; then |
52127426 | 20574 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20575 | #define wxUSE_METAFILE 1 |
10f2d63a VZ |
20576 | EOF |
20577 | ||
10f2d63a VZ |
20578 | fi |
20579 | ||
1e6feb95 | 20580 | if test "$wxUSE_MIMETYPE" = "yes"; then |
52127426 | 20581 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20582 | #define wxUSE_MIMETYPE 1 |
10f2d63a VZ |
20583 | EOF |
20584 | ||
10f2d63a VZ |
20585 | fi |
20586 | ||
3e44f09d | 20587 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
52127426 | 20588 | cat >> confdefs.h <<\EOF |
3e44f09d VZ |
20589 | #define wxUSE_SYSTEM_OPTIONS 1 |
20590 | EOF | |
20591 | ||
321d2b14 VZ |
20592 | if test "$TOOLKIT" = "MSW"; then |
20593 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
20594 | fi | |
20595 | ||
3e44f09d VZ |
20596 | fi |
20597 | ||
4cdb0ab0 | 20598 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca | 20599 | if test "$wxUSE_SOCKETS" != "yes"; then |
52127426 | 20600 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 |
3954f9ca VS |
20601 | wxUSE_PROTOCOL=no |
20602 | fi | |
20603 | ||
20604 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
52127426 | 20605 | cat >> confdefs.h <<\EOF |
4cdb0ab0 VS |
20606 | #define wxUSE_PROTOCOL 1 |
20607 | EOF | |
20608 | ||
52127426 | 20609 | |
3954f9ca | 20610 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
52127426 | 20611 | cat >> confdefs.h <<\EOF |
4cdb0ab0 VS |
20612 | #define wxUSE_PROTOCOL_HTTP 1 |
20613 | EOF | |
20614 | ||
3954f9ca VS |
20615 | fi |
20616 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
52127426 | 20617 | cat >> confdefs.h <<\EOF |
4cdb0ab0 VS |
20618 | #define wxUSE_PROTOCOL_FTP 1 |
20619 | EOF | |
20620 | ||
3954f9ca VS |
20621 | fi |
20622 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
52127426 | 20623 | cat >> confdefs.h <<\EOF |
3954f9ca VS |
20624 | #define wxUSE_PROTOCOL_FILE 1 |
20625 | EOF | |
20626 | ||
20627 | fi | |
4cdb0ab0 | 20628 | fi |
3954f9ca VS |
20629 | fi |
20630 | ||
20631 | if test "$wxUSE_URL" = "yes"; then | |
20632 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
52127426 | 20633 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 |
3954f9ca VS |
20634 | wxUSE_URL=no |
20635 | fi | |
20636 | if test "$wxUSE_URL" = "yes"; then | |
52127426 | 20637 | cat >> confdefs.h <<\EOF |
3954f9ca | 20638 | #define wxUSE_URL 1 |
4cdb0ab0 VS |
20639 | EOF |
20640 | ||
20641 | fi | |
20642 | fi | |
20643 | ||
10f2d63a | 20644 | if test "$wxUSE_MINIFRAME" = "yes"; then |
52127426 | 20645 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20646 | #define wxUSE_MINIFRAME 1 |
20647 | EOF | |
20648 | ||
20649 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
20650 | fi | |
20651 | ||
20652 | if test "$wxUSE_HTML" = "yes"; then | |
52127426 | 20653 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20654 | #define wxUSE_HTML 1 |
20655 | EOF | |
20656 | ||
20657 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
20658 | fi |
20659 | ||
20660 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
52127426 | 20661 | cat >> confdefs.h <<\EOF |
1e487827 VS |
20662 | #define wxUSE_VALIDATORS 1 |
20663 | EOF | |
703e0a69 | 20664 | |
698dcdb6 VZ |
20665 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
20666 | fi | |
20667 | ||
edae8572 | 20668 | if test "$wxUSE_PALETTE" = "yes" ; then |
52127426 | 20669 | cat >> confdefs.h <<\EOF |
edae8572 VZ |
20670 | #define wxUSE_PALETTE 1 |
20671 | EOF | |
20672 | ||
20673 | fi | |
20674 | ||
698dcdb6 | 20675 | if test "$wxUSE_IMAGE" = "yes" ; then |
52127426 | 20676 | cat >> confdefs.h <<\EOF |
698dcdb6 VZ |
20677 | #define wxUSE_IMAGE 1 |
20678 | EOF | |
20679 | ||
20680 | fi | |
20681 | ||
20682 | if test "$wxUSE_GIF" = "yes" ; then | |
52127426 | 20683 | cat >> confdefs.h <<\EOF |
698dcdb6 VZ |
20684 | #define wxUSE_GIF 1 |
20685 | EOF | |
20686 | ||
20687 | fi | |
20688 | ||
20689 | if test "$wxUSE_PCX" = "yes" ; then | |
52127426 | 20690 | cat >> confdefs.h <<\EOF |
698dcdb6 VZ |
20691 | #define wxUSE_PCX 1 |
20692 | EOF | |
20693 | ||
20694 | fi | |
20695 | ||
4b6b4dfc | 20696 | if test "$wxUSE_IFF" = "yes" ; then |
52127426 | 20697 | cat >> confdefs.h <<\EOF |
4b6b4dfc RR |
20698 | #define wxUSE_IFF 1 |
20699 | EOF | |
20700 | ||
20701 | fi | |
20702 | ||
698dcdb6 | 20703 | if test "$wxUSE_PNM" = "yes" ; then |
52127426 | 20704 | cat >> confdefs.h <<\EOF |
698dcdb6 VZ |
20705 | #define wxUSE_PNM 1 |
20706 | EOF | |
20707 | ||
20708 | fi | |
20709 | ||
20710 | if test "$wxUSE_XPM" = "yes" ; then | |
52127426 | 20711 | cat >> confdefs.h <<\EOF |
698dcdb6 VZ |
20712 | #define wxUSE_XPM 1 |
20713 | EOF | |
20714 | ||
20715 | fi | |
20716 | ||
658974ae | 20717 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
52127426 | 20718 | cat >> confdefs.h <<\EOF |
658974ae VS |
20719 | #define wxUSE_ICO_CUR 1 |
20720 | EOF | |
20721 | ||
20722 | fi | |
20723 | ||
a72a4bfa VS |
20724 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
20725 | LIBS=" -lunicows $LIBS" | |
20726 | fi | |
20727 | ||
52127426 | 20728 | |
1e6feb95 | 20729 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
52127426 | 20730 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20731 | #define wxUSE_CHOICEDLG 1 |
20732 | EOF | |
20733 | ||
20734 | fi | |
20735 | ||
20736 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
52127426 | 20737 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20738 | #define wxUSE_COLOURDLG 1 |
20739 | EOF | |
20740 | ||
20741 | fi | |
20742 | ||
20743 | if test "$wxUSE_FILEDLG" = "yes"; then | |
52127426 | 20744 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20745 | #define wxUSE_FILEDLG 1 |
20746 | EOF | |
20747 | ||
20748 | fi | |
20749 | ||
8db37e06 | 20750 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
52127426 | 20751 | cat >> confdefs.h <<\EOF |
8db37e06 VZ |
20752 | #define wxUSE_FINDREPLDLG 1 |
20753 | EOF | |
20754 | ||
20755 | fi | |
20756 | ||
1e6feb95 | 20757 | if test "$wxUSE_FONTDLG" = "yes"; then |
52127426 | 20758 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20759 | #define wxUSE_FONTDLG 1 |
20760 | EOF | |
20761 | ||
20762 | fi | |
20763 | ||
20764 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 20765 | if test "$wxUSE_TREECTRL" != "yes"; then |
52127426 | 20766 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 |
1e6feb95 | 20767 | else |
52127426 | 20768 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20769 | #define wxUSE_DIRDLG 1 |
20770 | EOF | |
20771 | ||
1e6feb95 VZ |
20772 | fi |
20773 | fi | |
20774 | ||
20775 | if test "$wxUSE_MSGDLG" = "yes"; then | |
52127426 | 20776 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20777 | #define wxUSE_MSGDLG 1 |
20778 | EOF | |
20779 | ||
20780 | fi | |
20781 | ||
20782 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
52127426 | 20783 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20784 | #define wxUSE_NUMBERDLG 1 |
20785 | EOF | |
20786 | ||
20787 | fi | |
20788 | ||
20789 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
20790 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
52127426 | 20791 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 |
1e6feb95 | 20792 | else |
52127426 | 20793 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20794 | #define wxUSE_PROGRESSDLG 1 |
20795 | EOF | |
20796 | ||
20797 | fi | |
20798 | fi | |
20799 | ||
cbca9943 | 20800 | if test "$wxUSE_SPLASH" = "yes"; then |
52127426 | 20801 | cat >> confdefs.h <<\EOF |
cbca9943 VZ |
20802 | #define wxUSE_SPLASH 1 |
20803 | EOF | |
20804 | ||
20805 | fi | |
20806 | ||
1e6feb95 VZ |
20807 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
20808 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
52127426 | 20809 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 |
1e6feb95 | 20810 | else |
52127426 | 20811 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20812 | #define wxUSE_STARTUP_TIPS 1 |
20813 | EOF | |
20814 | ||
7b4a847f RR |
20815 | fi |
20816 | fi | |
579d8138 | 20817 | |
52127426 JS |
20818 | if test "$wxUSE_TEXTDLG" = "yes"; then |
20819 | cat >> confdefs.h <<\EOF | |
20820 | #define wxUSE_TEXTDLG 1 | |
20821 | EOF | |
20822 | ||
20823 | fi | |
20824 | ||
20825 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
20826 | cat >> confdefs.h <<\EOF | |
20827 | #define wxUSE_WIZARDDLG 1 | |
20828 | EOF | |
20829 | ||
20830 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
20831 | fi | |
20832 | ||
20833 | ||
20834 | if test "$cross_compiling" = "yes"; then | |
20835 | OSINFO="\"$host\"" | |
20836 | else | |
20837 | OSINFO=`uname -s -r -m` | |
20838 | OSINFO="\"$OSINFO\"" | |
20839 | fi | |
20840 | ||
20841 | cat >> confdefs.h <<EOF | |
20842 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
20843 | EOF | |
20844 | ||
20845 | ||
20846 | ||
20847 | if test "x$prefix" != "xNONE"; then | |
20848 | wxPREFIX=$prefix | |
20849 | else | |
20850 | wxPREFIX=$ac_default_prefix | |
20851 | fi | |
20852 | ||
20853 | cat >> confdefs.h <<EOF | |
20854 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
20855 | EOF | |
20856 | ||
20857 | ||
20858 | ||
20859 | ||
20860 | ||
20861 | if test "$wxUSE_MAC" = 1 ; then | |
20862 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
20863 | fi | |
20864 | ||
20865 | ||
20866 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS" | |
20867 | ||
20868 | if test "$wxUSE_GUI" = "yes"; then | |
20869 | ||
20870 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" | |
20871 | ||
20872 | ||
20873 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
20874 | drawing dynamic erase event exec font image \ | |
79bbbd1b | 20875 | minimal propsize rotate widgets" |
52127426 JS |
20876 | |
20877 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
20878 | else | |
20879 | SAMPLES_SUBDIRS="console" | |
20880 | fi | |
20881 | ||
20882 | ||
20883 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ | |
20884 | -I\${top_srcdir}/include \ | |
20885 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
20886 | $TOOLKIT_INCLUDE" | |
20887 | ||
20888 | if test "$wxUSE_GTK" = 1; then | |
20889 | WXCONFIG_INCLUDE= | |
20890 | else | |
20891 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
20892 | fi | |
20893 | ||
20894 | if test "$GXX" = yes ; then | |
20895 | CXXWARNINGS="-Wall" | |
20896 | ||
20897 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
20898 | CFLAGS="-MMD $CFLAGS" | |
20899 | CXXFLAGS="-MMD $CXXFLAGS" | |
20900 | fi | |
20901 | fi | |
20902 | ||
20903 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
20904 | ||
20905 | CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
20906 | CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
20907 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
20908 | ||
20909 | LDFLAGS="$LDFLAGS $PROFILE" | |
20910 | ||
20911 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
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 | ||
20971 | ||
20972 | ||
20973 | ||
20974 | ||
20975 | ||
20976 | ||
20977 | ||
20978 | ||
20979 | ||
2f51a9ec GD |
20980 | |
20981 | ||
20982 | ||
20983 | ||
f6bcfd97 | 20984 | |
dad6c0ea | 20985 | |
caa2c79b | 20986 | |
3711412e | 20987 | |
1e6feb95 VZ |
20988 | |
20989 | ||
885d4bf5 VS |
20990 | |
20991 | ||
20992 | ||
20993 | ||
9b695262 VZ |
20994 | |
20995 | ||
62d0491b | 20996 | |
ef7f2189 | 20997 | |
40f7145c | 20998 | |
3bd8fb5f | 20999 | |
10f2d63a VZ |
21000 | |
21001 | ||
52127426 | 21002 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
dd0e4a90 | 21003 | echo "configure:21004: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
52127426 JS |
21004 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
21005 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
21006 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 21007 | else |
52127426 | 21008 | cat > conftestmake <<\EOF |
10f2d63a VZ |
21009 | all: |
21010 | @echo 'ac_maketemp="${MAKE}"' | |
21011 | EOF | |
21012 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
52127426 | 21013 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
21014 | if test -n "$ac_maketemp"; then |
21015 | eval ac_cv_prog_make_${ac_make}_set=yes | |
21016 | else | |
21017 | eval ac_cv_prog_make_${ac_make}_set=no | |
21018 | fi | |
52127426 | 21019 | rm -f conftestmake |
10f2d63a VZ |
21020 | fi |
21021 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
52127426 | 21022 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
21023 | SET_MAKE= |
21024 | else | |
52127426 | 21025 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
21026 | SET_MAKE="MAKE=${MAKE-make}" |
21027 | fi | |
21028 | ||
52127426 | 21029 | |
3a922bb4 RL |
21030 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
21031 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 21032 | fi |
665bbe97 | 21033 | |
52127426 | 21034 | |
10f2d63a | 21035 | |
57973b9c VZ |
21036 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
21037 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
21038 | wx_cv_path_ifs=$PATH_IFS | |
21039 | wx_cv_program_ext=$PROGRAM_EXT | |
21040 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
21041 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
21042 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
21043 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ | |
21044 | wx_cv_path_ifs wx_cv_program_ext \ | |
21045 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype | |
21046 | ||
52127426 JS |
21047 | subdirs="demos samples utils contrib" |
21048 | ||
10f2d63a | 21049 | |
52127426 JS |
21050 | trap '' 1 2 15 |
21051 | cat > confcache <<\EOF | |
10f2d63a VZ |
21052 | # This file is a shell script that caches the results of configure |
21053 | # tests run on this system so they can be shared between configure | |
52127426 JS |
21054 | # scripts and configure runs. It is not useful on other systems. |
21055 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 21056 | # |
52127426 JS |
21057 | # By default, configure uses ./config.cache as the cache file, |
21058 | # creating it if it does not exist already. You can give configure | |
21059 | # the --cache-file=FILE option to use a different cache file; that is | |
21060 | # what configure does when it calls configure scripts in | |
21061 | # subdirectories, so they share the cache. | |
21062 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
21063 | # config.status only pays attention to the cache file if you give it the | |
21064 | # --recheck option to rerun configure. | |
10f2d63a | 21065 | # |
52127426 | 21066 | EOF |
10f2d63a VZ |
21067 | # The following way of writing the cache mishandles newlines in values, |
21068 | # but we know of no workaround that is simple, portable, and efficient. | |
21069 | # So, don't put newlines in cache variables' values. | |
21070 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21071 | # and sets the high bit in the cache file unless we assign to the vars. | |
52127426 JS |
21072 | (set) 2>&1 | |
21073 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
21074 | *ac_space=\ *) | |
21075 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
21076 | # turns \\\\ into \\, and sed turns \\ into \). | |
21077 | sed -n \ | |
21078 | -e "s/'/'\\\\''/g" \ | |
21079 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
21080 | ;; | |
21081 | *) | |
21082 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21083 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
21084 | ;; | |
21085 | esac >> confcache | |
21086 | if cmp -s $cache_file confcache; then | |
21087 | : | |
21088 | else | |
10f2d63a | 21089 | if test -w $cache_file; then |
52127426 JS |
21090 | echo "updating cache $cache_file" |
21091 | cat confcache > $cache_file | |
10f2d63a VZ |
21092 | else |
21093 | echo "not updating unwritable cache $cache_file" | |
21094 | fi | |
21095 | fi | |
21096 | rm -f confcache | |
21097 | ||
52127426 JS |
21098 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
21099 | ||
10f2d63a VZ |
21100 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
21101 | # Let make expand exec_prefix. | |
21102 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
21103 | ||
52127426 JS |
21104 | # Any assignment to VPATH causes Sun make to only execute |
21105 | # the first set of double-colon rules, so remove it if not needed. | |
21106 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 21107 | if test "x$srcdir" = x.; then |
52127426 | 21108 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
21109 | fi |
21110 | ||
52127426 JS |
21111 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
21112 | ||
10f2d63a VZ |
21113 | DEFS=-DHAVE_CONFIG_H |
21114 | ||
52127426 | 21115 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 21116 | : ${CONFIG_STATUS=./config.status} |
52127426 JS |
21117 | |
21118 | echo creating $CONFIG_STATUS | |
21119 | rm -f $CONFIG_STATUS | |
21120 | cat > $CONFIG_STATUS <<EOF | |
21121 | #! /bin/sh | |
10f2d63a VZ |
21122 | # Generated automatically by configure. |
21123 | # Run this file to recreate the current configuration. | |
52127426 JS |
21124 | # This directory was configured as follows, |
21125 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
7b4a847f | 21126 | # |
52127426 | 21127 | # $0 $ac_configure_args |
7b4a847f | 21128 | # |
52127426 JS |
21129 | # Compiler output produced by configure, useful for debugging |
21130 | # configure, is in ./config.log if it exists. | |
579d8138 | 21131 | |
52127426 JS |
21132 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
21133 | for ac_option | |
7b4a847f | 21134 | do |
52127426 JS |
21135 | case "\$ac_option" in |
21136 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
21137 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
21138 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
21139 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
21140 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
21141 | exit 0 ;; | |
21142 | -help | --help | --hel | --he | --h) | |
21143 | echo "\$ac_cs_usage"; exit 0 ;; | |
21144 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
7b4a847f | 21145 | esac |
579d8138 | 21146 | done |
7b4a847f | 21147 | |
52127426 JS |
21148 | ac_given_srcdir=$srcdir |
21149 | ac_given_INSTALL="$INSTALL" | |
7b4a847f | 21150 | |
52127426 JS |
21151 | trap 'rm -fr `echo " |
21152 | wx-config | |
21153 | src/make.env | |
21154 | src/makeprog.env | |
21155 | src/makelib.env | |
21156 | Makefile | |
21157 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
7b4a847f | 21158 | EOF |
52127426 | 21159 | cat >> $CONFIG_STATUS <<EOF |
7b4a847f | 21160 | |
52127426 JS |
21161 | # Protect against being on the right side of a sed subst in config.status. |
21162 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
21163 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
21164 | $ac_vpsub | |
21165 | $extrasub | |
21166 | s%@SHELL@%$SHELL%g | |
21167 | s%@CFLAGS@%$CFLAGS%g | |
21168 | s%@CPPFLAGS@%$CPPFLAGS%g | |
21169 | s%@CXXFLAGS@%$CXXFLAGS%g | |
21170 | s%@FFLAGS@%$FFLAGS%g | |
21171 | s%@DEFS@%$DEFS%g | |
21172 | s%@LDFLAGS@%$LDFLAGS%g | |
21173 | s%@LIBS@%$LIBS%g | |
21174 | s%@exec_prefix@%$exec_prefix%g | |
21175 | s%@prefix@%$prefix%g | |
21176 | s%@program_transform_name@%$program_transform_name%g | |
21177 | s%@bindir@%$bindir%g | |
21178 | s%@sbindir@%$sbindir%g | |
21179 | s%@libexecdir@%$libexecdir%g | |
21180 | s%@datadir@%$datadir%g | |
21181 | s%@sysconfdir@%$sysconfdir%g | |
21182 | s%@sharedstatedir@%$sharedstatedir%g | |
21183 | s%@localstatedir@%$localstatedir%g | |
21184 | s%@libdir@%$libdir%g | |
21185 | s%@includedir@%$includedir%g | |
21186 | s%@oldincludedir@%$oldincludedir%g | |
21187 | s%@infodir@%$infodir%g | |
21188 | s%@mandir@%$mandir%g | |
21189 | s%@host@%$host%g | |
21190 | s%@host_alias@%$host_alias%g | |
21191 | s%@host_cpu@%$host_cpu%g | |
21192 | s%@host_vendor@%$host_vendor%g | |
21193 | s%@host_os@%$host_os%g | |
21194 | s%@target@%$target%g | |
21195 | s%@target_alias@%$target_alias%g | |
21196 | s%@target_cpu@%$target_cpu%g | |
21197 | s%@target_vendor@%$target_vendor%g | |
21198 | s%@target_os@%$target_os%g | |
21199 | s%@build@%$build%g | |
21200 | s%@build_alias@%$build_alias%g | |
21201 | s%@build_cpu@%$build_cpu%g | |
21202 | s%@build_vendor@%$build_vendor%g | |
21203 | s%@build_os@%$build_os%g | |
21204 | s%@CC@%$CC%g | |
21205 | s%@CPP@%$CPP%g | |
21206 | s%@CXX@%$CXX%g | |
21207 | s%@RANLIB@%$RANLIB%g | |
21208 | s%@AR@%$AR%g | |
21209 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
21210 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
21211 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
21212 | s%@STRIP@%$STRIP%g | |
21213 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g | |
21214 | s%@YACC@%$YACC%g | |
21215 | s%@LEX@%$LEX%g | |
21216 | s%@LEXLIB@%$LEXLIB%g | |
21217 | s%@LN_S@%$LN_S%g | |
21218 | s%@CXXCPP@%$CXXCPP%g | |
21219 | s%@PKG_CONFIG@%$PKG_CONFIG%g | |
21220 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
21221 | s%@GTK_LIBS@%$GTK_LIBS%g | |
21222 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
21223 | s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g | |
21224 | s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g | |
21225 | s%@X_CFLAGS@%$X_CFLAGS%g | |
21226 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
21227 | s%@X_LIBS@%$X_LIBS%g | |
21228 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
21229 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g | |
21230 | s%@RESCOMP@%$RESCOMP%g | |
21231 | s%@DEREZ@%$DEREZ%g | |
21232 | s%@LIBICONV@%$LIBICONV%g | |
21233 | s%@LEX_STEM@%$LEX_STEM%g | |
21234 | s%@PATH_IFS@%$PATH_IFS%g | |
21235 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
21236 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
21237 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
21238 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
21239 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
21240 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g | |
21241 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
21242 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
21243 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
21244 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
21245 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
21246 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
21247 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
21248 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
21249 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
21250 | s%@WX_ALL@%$WX_ALL%g | |
21251 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
21252 | s%@SHARED_LD@%$SHARED_LD%g | |
21253 | s%@PIC_FLAG@%$PIC_FLAG%g | |
21254 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
21255 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
21256 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g | |
21257 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
21258 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
21259 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
21260 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
21261 | s%@USE_GUI@%$USE_GUI%g | |
21262 | s%@AFMINSTALL@%$AFMINSTALL%g | |
21263 | s%@TOOLKIT@%$TOOLKIT%g | |
21264 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
21265 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g | |
21266 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g | |
21267 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
21268 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g | |
21269 | s%@cross_compiling@%$cross_compiling%g | |
21270 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
21271 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
21272 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g | |
21273 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
21274 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
21275 | s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g | |
21276 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
21277 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
21278 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
21279 | s%@GUIDIST@%$GUIDIST%g | |
21280 | s%@PORT_FILES@%$PORT_FILES%g | |
21281 | s%@DISTDIR@%$DISTDIR%g | |
21282 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
21283 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g | |
21284 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g | |
21285 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
21286 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g | |
21287 | s%@EXTRADEFS@%$EXTRADEFS%g | |
21288 | s%@RESFLAGS@%$RESFLAGS%g | |
21289 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g | |
21290 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g | |
21291 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
21292 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g | |
21293 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
21294 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
21295 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g | |
21296 | s%@DLLTOOL@%$DLLTOOL%g | |
21297 | s%@AS@%$AS%g | |
21298 | s%@NM@%$NM%g | |
21299 | s%@LD@%$LD%g | |
21300 | s%@MAKEINFO@%$MAKEINFO%g | |
21301 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g | |
21302 | s%@SET_MAKE@%$SET_MAKE%g | |
21303 | s%@subdirs@%$subdirs%g | |
7b4a847f | 21304 | |
7b4a847f | 21305 | CEOF |
579d8138 VS |
21306 | EOF |
21307 | ||
52127426 JS |
21308 | cat >> $CONFIG_STATUS <<\EOF |
21309 | ||
21310 | # Split the substitutions into bite-sized pieces for seds with | |
21311 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
21312 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
21313 | ac_file=1 # Number of current file. | |
21314 | ac_beg=1 # First line for current file. | |
21315 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
21316 | ac_more_lines=: | |
21317 | ac_sed_cmds="" | |
21318 | while $ac_more_lines; do | |
21319 | if test $ac_beg -gt 1; then | |
21320 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
21321 | else | |
21322 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
21323 | fi | |
21324 | if test ! -s conftest.s$ac_file; then | |
21325 | ac_more_lines=false | |
21326 | rm -f conftest.s$ac_file | |
21327 | else | |
21328 | if test -z "$ac_sed_cmds"; then | |
21329 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
7b4a847f | 21330 | else |
52127426 | 21331 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
7b4a847f | 21332 | fi |
52127426 JS |
21333 | ac_file=`expr $ac_file + 1` |
21334 | ac_beg=$ac_end | |
21335 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
7b4a847f | 21336 | fi |
52127426 JS |
21337 | done |
21338 | if test -z "$ac_sed_cmds"; then | |
21339 | ac_sed_cmds=cat | |
21340 | fi | |
21341 | EOF | |
21342 | ||
21343 | cat >> $CONFIG_STATUS <<EOF | |
698dcdb6 | 21344 | |
52127426 JS |
21345 | CONFIG_FILES=\${CONFIG_FILES-"wx-config |
21346 | src/make.env | |
21347 | src/makeprog.env | |
21348 | src/makelib.env | |
21349 | Makefile | |
21350 | "} | |
10f2d63a | 21351 | EOF |
52127426 JS |
21352 | cat >> $CONFIG_STATUS <<\EOF |
21353 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 21354 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
52127426 JS |
21355 | case "$ac_file" in |
21356 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21357 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21358 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
21359 | esac |
21360 | ||
52127426 | 21361 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
7b4a847f | 21362 | |
52127426 JS |
21363 | # Remove last slash and all that follows it. Not all systems have dirname. |
21364 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
21365 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
21366 | # The file is in a subdirectory. | |
21367 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
21368 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 21369 | # A "../" for each directory in $ac_dir_suffix. |
52127426 | 21370 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
21371 | else |
21372 | ac_dir_suffix= ac_dots= | |
21373 | fi | |
21374 | ||
52127426 JS |
21375 | case "$ac_given_srcdir" in |
21376 | .) srcdir=. | |
21377 | if test -z "$ac_dots"; then top_srcdir=. | |
21378 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
21379 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 21380 | *) # Relative path. |
52127426 JS |
21381 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
21382 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
21383 | esac |
21384 | ||
52127426 JS |
21385 | case "$ac_given_INSTALL" in |
21386 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21387 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
21388 | esac |
21389 | ||
52127426 JS |
21390 | echo creating "$ac_file" |
21391 | rm -f "$ac_file" | |
21392 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
21393 | case "$ac_file" in | |
21394 | *Makefile*) ac_comsub="1i\\ | |
21395 | # $configure_input" ;; | |
21396 | *) ac_comsub= ;; | |
21397 | esac | |
10f2d63a | 21398 | |
52127426 JS |
21399 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
21400 | sed -e "$ac_comsub | |
21401 | s%@configure_input@%$configure_input%g | |
21402 | s%@srcdir@%$srcdir%g | |
21403 | s%@top_srcdir@%$top_srcdir%g | |
21404 | s%@INSTALL@%$INSTALL%g | |
21405 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
21406 | fi; done | |
21407 | rm -f conftest.s* | |
10f2d63a VZ |
21408 | |
21409 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
21410 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
21411 | # | |
21412 | # ac_d sets the value in "#define NAME VALUE" lines. | |
52127426 JS |
21413 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
21414 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
21415 | ac_dC='\3' | |
21416 | ac_dD='%g' | |
21417 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
21418 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21419 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 21420 | ac_uC=' ' |
52127426 JS |
21421 | ac_uD='\4%g' |
21422 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
21423 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21424 | ac_eB='$%\1#\2define\3' | |
21425 | ac_eC=' ' | |
21426 | ac_eD='%g' | |
10f2d63a | 21427 | |
52127426 JS |
21428 | if test "${CONFIG_HEADERS+set}" != set; then |
21429 | EOF | |
21430 | cat >> $CONFIG_STATUS <<EOF | |
21431 | CONFIG_HEADERS="setup.h:setup.h.in" | |
21432 | EOF | |
21433 | cat >> $CONFIG_STATUS <<\EOF | |
21434 | fi | |
21435 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 21436 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
52127426 JS |
21437 | case "$ac_file" in |
21438 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21439 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21440 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
21441 | esac |
21442 | ||
52127426 JS |
21443 | echo creating $ac_file |
21444 | ||
21445 | rm -f conftest.frag conftest.in conftest.out | |
21446 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
21447 | cat $ac_file_inputs > conftest.in | |
21448 | ||
21449 | EOF | |
21450 | ||
21451 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
21452 | # the proper values into config.h.in to produce config.h. And first: | |
21453 | # Protect against being on the right side of a sed subst in config.status. | |
21454 | # Protect against being in an unquoted here document in config.status. | |
21455 | rm -f conftest.vals | |
21456 | cat > conftest.hdr <<\EOF | |
21457 | s/[\\&%]/\\&/g | |
21458 | s%[\\$`]%\\&%g | |
21459 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
21460 | s%ac_d%ac_u%gp | |
21461 | s%ac_u%ac_e%gp | |
21462 | EOF | |
21463 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
21464 | rm -f conftest.hdr | |
10f2d63a VZ |
21465 | |
21466 | # This sed command replaces #undef with comments. This is necessary, for | |
21467 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
21468 | # on some systems where configure will not decide to define it. | |
52127426 JS |
21469 | cat >> conftest.vals <<\EOF |
21470 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
21471 | EOF |
21472 | ||
52127426 JS |
21473 | # Break up conftest.vals because some shells have a limit on |
21474 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
21475 | |
21476 | rm -f conftest.tail | |
52127426 | 21477 | while : |
10f2d63a | 21478 | do |
52127426 JS |
21479 | ac_lines=`grep -c . conftest.vals` |
21480 | # grep -c gives empty output for an empty file on some AIX systems. | |
21481 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
21482 | # Write a limited-size here document to conftest.frag. | |
21483 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
21484 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 21485 | echo 'CEOF |
52127426 JS |
21486 | sed -f conftest.frag conftest.in > conftest.out |
21487 | rm -f conftest.in | |
21488 | mv conftest.out conftest.in | |
21489 | ' >> $CONFIG_STATUS | |
21490 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
21491 | rm -f conftest.vals | |
21492 | mv conftest.tail conftest.vals | |
10f2d63a | 21493 | done |
52127426 JS |
21494 | rm -f conftest.vals |
21495 | ||
21496 | cat >> $CONFIG_STATUS <<\EOF | |
21497 | rm -f conftest.frag conftest.h | |
21498 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
21499 | cat conftest.in >> conftest.h | |
21500 | rm -f conftest.in | |
21501 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
21502 | echo "$ac_file is unchanged" | |
21503 | rm -f conftest.h | |
10f2d63a | 21504 | else |
52127426 JS |
21505 | # Remove last slash and all that follows it. Not all systems have dirname. |
21506 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 21507 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
52127426 JS |
21508 | # The file is in a subdirectory. |
21509 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 21510 | fi |
52127426 JS |
21511 | rm -f $ac_file |
21512 | mv conftest.h $ac_file | |
10f2d63a | 21513 | fi |
52127426 JS |
21514 | fi; done |
21515 | ||
10f2d63a | 21516 | EOF |
52127426 | 21517 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 21518 | |
52127426 JS |
21519 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
21520 | LN_S="${LN_S}" | |
21521 | ||
21522 | ||
21523 | EOF | |
21524 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 21525 | |
652d930d | 21526 | if test ! -h wx-config; then |
991a5759 | 21527 | chmod +x wx-config |
3a922bb4 RL |
21528 | mv wx-config wx${TOOLCHAIN_NAME}-config |
21529 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 21530 | fi |
665bbe97 | 21531 | |
00cf1208 RR |
21532 | if test ! -d lib; then |
21533 | mkdir lib | |
21534 | fi | |
21535 | if test ! -d lib/wx; then | |
21536 | mkdir lib/wx | |
21537 | fi | |
21538 | if test ! -d lib/wx/include; then | |
21539 | mkdir lib/wx/include | |
21540 | fi | |
3a922bb4 RL |
21541 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
21542 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 21543 | fi |
3a922bb4 RL |
21544 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
21545 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
21546 | fi |
21547 | if test -f setup.h; then | |
3a922bb4 | 21548 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 21549 | fi |
52127426 JS |
21550 | |
21551 | exit 0 | |
10f2d63a VZ |
21552 | EOF |
21553 | chmod +x $CONFIG_STATUS | |
52127426 JS |
21554 | rm -fr confdefs* $ac_clean_files |
21555 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 21556 | |
2224580a VZ |
21557 | if test "$no_recursion" != yes; then |
21558 | ||
21559 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
21560 | ac_sub_configure_args= | |
21561 | ac_prev= | |
21562 | for ac_arg in $ac_configure_args; do | |
21563 | if test -n "$ac_prev"; then | |
21564 | ac_prev= | |
21565 | continue | |
21566 | fi | |
52127426 | 21567 | case "$ac_arg" in |
2224580a VZ |
21568 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
21569 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
21570 | ac_prev=cache_file ;; | |
21571 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
52127426 | 21572 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
21573 | ;; |
21574 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
21575 | ac_prev=srcdir ;; | |
21576 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
21577 | ;; | |
21578 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
21579 | esac | |
21580 | done | |
21581 | ||
52127426 | 21582 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
21583 | |
21584 | # Do not complain, so a configure script can configure whichever | |
21585 | # parts of a large source tree are present. | |
52127426 JS |
21586 | if test ! -d $srcdir/$ac_config_dir; then |
21587 | continue | |
21588 | fi | |
21589 | ||
21590 | echo configuring in $ac_config_dir | |
2224580a | 21591 | |
52127426 | 21592 | case "$srcdir" in |
2224580a VZ |
21593 | .) ;; |
21594 | *) | |
52127426 JS |
21595 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
21596 | else | |
21597 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
21598 | fi | |
21599 | ;; | |
2224580a VZ |
21600 | esac |
21601 | ||
21602 | ac_popdir=`pwd` | |
52127426 | 21603 | cd $ac_config_dir |
2224580a | 21604 | |
52127426 JS |
21605 | # A "../" for each directory in /$ac_config_dir. |
21606 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 21607 | |
52127426 | 21608 | case "$srcdir" in |
2224580a VZ |
21609 | .) # No --srcdir option. We are building in place. |
21610 | ac_sub_srcdir=$srcdir ;; | |
52127426 JS |
21611 | /*) # Absolute path. |
21612 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 21613 | *) # Relative path. |
52127426 | 21614 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
21615 | esac |
21616 | ||
21617 | # Check for guested configure; otherwise get Cygnus style configure. | |
52127426 JS |
21618 | if test -f $ac_sub_srcdir/configure; then |
21619 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
21620 | elif test -f $ac_sub_srcdir/configure.in; then |
21621 | ac_sub_configure=$ac_configure | |
21622 | else | |
52127426 | 21623 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
21624 | ac_sub_configure= |
21625 | fi | |
21626 | ||
21627 | # The recursion is here. | |
21628 | if test -n "$ac_sub_configure"; then | |
52127426 | 21629 | |
2224580a | 21630 | # Make the cache file name correct relative to the subdirectory. |
52127426 JS |
21631 | case "$cache_file" in |
21632 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 21633 | *) # Relative path. |
52127426 | 21634 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 21635 | esac |
52127426 JS |
21636 | case "$ac_given_INSTALL" in |
21637 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21638 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
21639 | esac | |
2224580a | 21640 | |
52127426 | 21641 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 21642 | # The eval makes quoting arguments work. |
52127426 JS |
21643 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
21644 | then : | |
21645 | else | |
21646 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
21647 | fi | |
2224580a VZ |
21648 | fi |
21649 | ||
21650 | cd $ac_popdir | |
21651 | done | |
21652 | fi | |
21653 | ||
52127426 | 21654 |