]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
a0b9e27f MB |
3 | # From configure.in Id: configure.in |
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
52127426 | 25 | |
52127426 | 26 | |
8284b0c5 MB |
27 | |
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
8284b0c5 MB |
36 | |
37 | ||
38 | ||
39 | ||
40 | ||
41 | ||
42 | ||
43 | ||
8284b0c5 MB |
44 | |
45 | ||
46 | ||
247f5006 | 47 | |
247f5006 | 48 | |
a0b9e27f MB |
49 | |
50 | ||
51 | ||
52 | ||
53 | ||
54 | ||
2b5f62a0 VZ |
55 | |
56 | ||
57 | ||
521196a2 MB |
58 | |
59 | ||
60 | ||
a0b9e27f MB |
61 | |
62 | ||
63 | ||
64 | ||
65 | # Configure paths for GTK+ | |
66 | # Owen Taylor 1997-2001 | |
67 | ||
68 | ||
69 | ||
2b5f62a0 VZ |
70 | # Configure paths for GTK+ |
71 | # Owen Taylor 97-11-3 | |
a0b9e27f MB |
72 | |
73 | ||
74 | ||
75 | ||
76 | ||
a0b9e27f MB |
77 | |
78 | ||
79 | ||
80 | # Guess values for system-dependent variables and create Makefiles. | |
81 | # Generated automatically using autoconf version 2.13 | |
82 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
83 | # | |
84 | # This configure script is free software; the Free Software Foundation | |
85 | # gives unlimited permission to copy, distribute and modify it. | |
86 | ||
87 | # Defaults: | |
88 | ac_help= | |
89 | ac_default_prefix=/usr/local | |
90 | # Any additions from configure.in: | |
91 | ac_help="$ac_help | |
92 | --enable-gui use GUI classes" | |
93 | ac_help="$ac_help | |
94 | --enable-universal use wxWindows GUI controls instead of native ones" | |
95 | ac_help="$ac_help | |
96 | --with-gtk use GTK+" | |
97 | ac_help="$ac_help | |
98 | --with-motif use Motif/Lesstif" | |
99 | ac_help="$ac_help | |
100 | --with-mac use Mac OS X" | |
ac0c4cc3 DE |
101 | ac_help="$ac_help |
102 | --with-cocoa use Cocoa" | |
a0b9e27f | 103 | ac_help="$ac_help |
89e6bf6d | 104 | --with-wine use Wine" |
a0b9e27f MB |
105 | ac_help="$ac_help |
106 | --with-msw use MS-Windows" | |
107 | ac_help="$ac_help | |
108 | --with-pm use OS/2 Presentation Manager" | |
109 | ac_help="$ac_help | |
110 | --with-mgl use SciTech MGL" | |
111 | ac_help="$ac_help | |
112 | --with-microwin use MicroWindows" | |
113 | ac_help="$ac_help | |
114 | --with-x11 use X11" | |
115 | ac_help="$ac_help | |
116 | --enable-nanox use NanoX" | |
117 | ac_help="$ac_help | |
118 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" | |
119 | ac_help="$ac_help | |
120 | --with-libpng use libpng (PNG image format)" | |
121 | ac_help="$ac_help | |
122 | --with-libjpeg use libjpeg (JPEG file format)" | |
123 | ac_help="$ac_help | |
124 | --with-libtiff use libtiff (TIFF file format)" | |
125 | ac_help="$ac_help | |
126 | --with-opengl use OpenGL (or Mesa)" | |
127 | ac_help="$ac_help | |
128 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" | |
129 | ac_help="$ac_help | |
130 | --with-regex enable support for wxRegEx class" | |
131 | ac_help="$ac_help | |
132 | --with-zlib use zlib for LZW compression" | |
133 | ac_help="$ac_help | |
134 | --with-odbc use the IODBC and wxODBC classes" | |
135 | ac_help="$ac_help | |
136 | --enable-shared create shared library code" | |
137 | ac_help="$ac_help | |
138 | --enable-soname set the DT_SONAME field in ELF shared libraries" | |
139 | ac_help="$ac_help | |
140 | --enable-optimise create optimised code" | |
141 | ac_help="$ac_help | |
142 | --enable-debug same as debug_flag and debug_info" | |
143 | ac_help="$ac_help | |
b2fee376 | 144 | --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)" |
a0b9e27f MB |
145 | ac_help="$ac_help |
146 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
147 | ac_help="$ac_help | |
148 | --enable-debug_info create code with debugging information" | |
149 | ac_help="$ac_help | |
150 | --enable-debug_gdb create code with extra GDB debugging information" | |
151 | ac_help="$ac_help | |
152 | --enable-debug_cntxt use wxDebugContext" | |
153 | ac_help="$ac_help | |
154 | --enable-mem_tracing create code with memory tracing" | |
155 | ac_help="$ac_help | |
156 | --enable-profile create code with profiling information" | |
157 | ac_help="$ac_help | |
158 | --enable-no_rtti create code without RTTI information" | |
159 | ac_help="$ac_help | |
160 | --enable-no_exceptions create code without C++ exceptions handling" | |
161 | ac_help="$ac_help | |
162 | --enable-permissive compile code disregarding strict ANSI" | |
163 | ac_help="$ac_help | |
164 | --enable-no_deps create code without dependency information" | |
165 | ac_help="$ac_help | |
166 | --enable-compat20 enable wxWindows 2.0 compatibility" | |
167 | ac_help="$ac_help | |
65d8ef1e VS |
168 | --enable-compat22 enable wxWindows 2.2 compatibility" |
169 | ac_help="$ac_help | |
170 | --disable-compat24 disable wxWindows 2.4 compatibility" | |
a0b9e27f MB |
171 | ac_help="$ac_help |
172 | --enable-rpath=DIR output the rpath flag from wx-config" | |
173 | ac_help="$ac_help | |
174 | --enable-intl use internationalization system" | |
175 | ac_help="$ac_help | |
176 | --enable-config use wxConfig (and derived) classes" | |
177 | ac_help="$ac_help | |
178 | --enable-protocols use wxProtocol and derived classes" | |
179 | ac_help="$ac_help | |
180 | --enable-ftp use wxFTP (requires wxProtocol" | |
181 | ac_help="$ac_help | |
182 | --enable-http use wxHTTP (requires wxProtocol" | |
183 | ac_help="$ac_help | |
184 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
185 | ac_help="$ac_help | |
186 | --enable-sockets use socket/network classes" | |
3bce6687 JS |
187 | ac_help="$ac_help |
188 | --enable-ole use OLE classes" | |
189 | ac_help="$ac_help | |
190 | --enable-dataobj use data object classes" | |
a0b9e27f MB |
191 | ac_help="$ac_help |
192 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
193 | ac_help="$ac_help | |
194 | --enable-cmdline use wxCmdLineParser class" | |
195 | ac_help="$ac_help | |
196 | --enable-datetime use wxDateTime class" | |
197 | ac_help="$ac_help | |
198 | --enable-timedate use obsolete wxDate/wxTime classes" | |
199 | ac_help="$ac_help | |
200 | --enable-stopwatch use wxStopWatch class" | |
201 | ac_help="$ac_help | |
202 | --enable-dialupman use dialup network classes" | |
203 | ac_help="$ac_help | |
204 | --enable-apple_ieee use the Apple IEEE codec" | |
205 | ac_help="$ac_help | |
206 | --enable-timer use wxTimer class" | |
207 | ac_help="$ac_help | |
208 | --enable-wave use wxWave class" | |
209 | ac_help="$ac_help | |
210 | --enable-fraction use wxFraction class" | |
211 | ac_help="$ac_help | |
212 | --enable-dynlib use wxLibrary class for DLL loading" | |
213 | ac_help="$ac_help | |
214 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
215 | ac_help="$ac_help | |
216 | --enable-longlong use wxLongLong class" | |
217 | ac_help="$ac_help | |
218 | --enable-geometry use geometry class" | |
219 | ac_help="$ac_help | |
220 | --enable-log use logging system" | |
221 | ac_help="$ac_help | |
222 | --enable-streams use wxStream etc classes" | |
223 | ac_help="$ac_help | |
224 | --enable-file use wxFile classes" | |
225 | ac_help="$ac_help | |
226 | --enable-ffile use wxFFile classes" | |
227 | ac_help="$ac_help | |
228 | --enable-textbuf use wxTextBuffer class" | |
229 | ac_help="$ac_help | |
230 | --enable-textfile use wxTextFile class" | |
231 | ac_help="$ac_help | |
232 | --enable-fontmap use font encodings conversion classes" | |
233 | ac_help="$ac_help | |
234 | --enable-unicode compile wxString with Unicode support" | |
235 | ac_help="$ac_help | |
236 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
237 | ac_help="$ac_help | |
238 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
239 | ac_help="$ac_help | |
240 | --enable-std_iostreams use standard C++ stream classes" | |
241 | ac_help="$ac_help | |
242 | --enable-filesystem use virtual file systems classes" | |
243 | ac_help="$ac_help | |
244 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
245 | ac_help="$ac_help | |
246 | --enable-fs_zip use virtual ZIP filesystems" | |
247 | ac_help="$ac_help | |
248 | --enable-zipstream use wxZipInputStream" | |
249 | ac_help="$ac_help | |
250 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" | |
251 | ac_help="$ac_help | |
252 | --enable-snglinst use wxSingleInstanceChecker class" | |
253 | ac_help="$ac_help | |
254 | --enable-mimetype use wxMimeTypesManager" | |
255 | ac_help="$ac_help | |
256 | --enable-sysoptions use wxSystemOptions" | |
257 | ac_help="$ac_help | |
258 | --enable-url use wxURL class" | |
259 | ac_help="$ac_help | |
260 | --enable-protocol use wxProtocol class" | |
261 | ac_help="$ac_help | |
262 | --enable-protocol-http HTTP support in wxProtocol" | |
263 | ac_help="$ac_help | |
264 | --enable-protocol-ftp FTP support in wxProtocol" | |
265 | ac_help="$ac_help | |
266 | --enable-protocol-file FILE support in wxProtocol" | |
267 | ac_help="$ac_help | |
268 | --enable-threads use threads" | |
269 | ac_help="$ac_help | |
270 | --enable-docview use document view architecture" | |
271 | ac_help="$ac_help | |
272 | --enable-help use help subsystem" | |
273 | ac_help="$ac_help | |
274 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
275 | ac_help="$ac_help | |
276 | --enable-html use wxHTML sub-library" | |
277 | ac_help="$ac_help | |
278 | --enable-htmlhelp use wxHTML-based help" | |
279 | ac_help="$ac_help | |
280 | --enable-constraints use layout-constraints system" | |
281 | ac_help="$ac_help | |
282 | --enable-printarch use printing architecture" | |
283 | ac_help="$ac_help | |
284 | --enable-mdi use multiple document interface architecture" | |
285 | ac_help="$ac_help | |
286 | --enable-loggui use standard GUI logger" | |
287 | ac_help="$ac_help | |
288 | --enable-logwin use wxLogWindow" | |
289 | ac_help="$ac_help | |
290 | --enable-logdialog use wxLogDialog" | |
291 | ac_help="$ac_help | |
292 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
293 | ac_help="$ac_help | |
294 | --enable-prologio use Prolog IO library" | |
295 | ac_help="$ac_help | |
296 | --enable-resources use wxWindows resources" | |
297 | ac_help="$ac_help | |
298 | --enable-xresources use X resources for save (default for gtk+)" | |
299 | ac_help="$ac_help | |
da494b40 | 300 | --enable-clipboard use wxClipboard class" |
a0b9e27f MB |
301 | ac_help="$ac_help |
302 | --enable-dnd use Drag'n'Drop classes" | |
303 | ac_help="$ac_help | |
304 | --enable-metafile use win32 metafiles" | |
305 | ac_help="$ac_help | |
da494b40 | 306 | --enable-treelayout use wxTreeLayout class" |
a0b9e27f MB |
307 | ac_help="$ac_help |
308 | --enable-controls use all usual controls" | |
309 | ac_help="$ac_help | |
310 | --enable-accel use accelerators" | |
311 | ac_help="$ac_help | |
312 | --enable-button use wxButton class" | |
313 | ac_help="$ac_help | |
314 | --enable-bmpbutton use wxBitmapButton class" | |
315 | ac_help="$ac_help | |
316 | --enable-calendar use wxCalendarCtrl class" | |
317 | ac_help="$ac_help | |
318 | --enable-caret use wxCaret class" | |
319 | ac_help="$ac_help | |
320 | --enable-checkbox use wxCheckBox class" | |
321 | ac_help="$ac_help | |
322 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
323 | ac_help="$ac_help | |
324 | --enable-choice use wxChoice class" | |
325 | ac_help="$ac_help | |
da494b40 MB |
326 | --enable-combobox use wxComboBox class" |
327 | ac_help="$ac_help | |
328 | --enable-display use wxDisplay class" | |
a0b9e27f MB |
329 | ac_help="$ac_help |
330 | --enable-gauge use wxGauge class" | |
331 | ac_help="$ac_help | |
332 | --enable-grid use wxGrid class" | |
333 | ac_help="$ac_help | |
334 | --enable-newgrid use new wxGrid class" | |
335 | ac_help="$ac_help | |
336 | --enable-imaglist use wxImageList class" | |
337 | ac_help="$ac_help | |
338 | --enable-listbox use wxListBox class" | |
339 | ac_help="$ac_help | |
340 | --enable-listctrl use wxListCtrl class" | |
341 | ac_help="$ac_help | |
342 | --enable-notebook use wxNotebook class" | |
343 | ac_help="$ac_help | |
344 | --enable-propsheet use wxPropertySheet class" | |
345 | ac_help="$ac_help | |
346 | --enable-radiobox use wxRadioBox class" | |
347 | ac_help="$ac_help | |
348 | --enable-radiobtn use wxRadioButton class" | |
349 | ac_help="$ac_help | |
350 | --enable-sash use wxSashWindow class" | |
351 | ac_help="$ac_help | |
352 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
353 | ac_help="$ac_help | |
354 | --enable-slider use wxSlider class" | |
355 | ac_help="$ac_help | |
356 | --enable-spinbtn use wxSpinButton class" | |
357 | ac_help="$ac_help | |
358 | --enable-spinctrl use wxSpinCtrl class" | |
359 | ac_help="$ac_help | |
360 | --enable-splitter use wxSplitterWindow class" | |
361 | ac_help="$ac_help | |
362 | --enable-statbmp use wxStaticBitmap class" | |
363 | ac_help="$ac_help | |
364 | --enable-statbox use wxStaticBox class" | |
365 | ac_help="$ac_help | |
366 | --enable-statline use wxStaticLine class" | |
367 | ac_help="$ac_help | |
368 | --enable-stattext use wxStaticText class" | |
369 | ac_help="$ac_help | |
370 | --enable-statusbar use wxStatusBar class" | |
371 | ac_help="$ac_help | |
372 | --enable-tabdialog use wxTabControl class" | |
373 | ac_help="$ac_help | |
374 | --enable-textctrl use wxTextCtrl class" | |
375 | ac_help="$ac_help | |
376 | --enable-togglebtn use wxToggleButton class" | |
377 | ac_help="$ac_help | |
378 | --enable-toolbar use wxToolBar class" | |
379 | ac_help="$ac_help | |
380 | --enable-tbarnative use native wxToolBar class" | |
381 | ac_help="$ac_help | |
382 | --enable-tbarsmpl use wxToolBarSimple class" | |
383 | ac_help="$ac_help | |
384 | --enable-treectrl use wxTreeCtrl class" | |
385 | ac_help="$ac_help | |
386 | --enable-tipwindow use wxTipWindow class" | |
387 | ac_help="$ac_help | |
388 | --enable-popupwin use wxPopUpWindow class" | |
389 | ac_help="$ac_help | |
390 | --enable-commondlg use all common dialogs" | |
391 | ac_help="$ac_help | |
392 | --enable-choicedlg use wxChoiceDialog" | |
393 | ac_help="$ac_help | |
394 | --enable-coldlg use wxColourDialog" | |
395 | ac_help="$ac_help | |
396 | --enable-filedlg use wxFileDialog" | |
397 | ac_help="$ac_help | |
398 | --enable-finddlg use wxFindReplaceDialog" | |
399 | ac_help="$ac_help | |
400 | --enable-fontdlg use wxFontDialog" | |
401 | ac_help="$ac_help | |
402 | --enable-dirdlg use wxDirDialog" | |
403 | ac_help="$ac_help | |
404 | --enable-msgdlg use wxMessageDialog" | |
405 | ac_help="$ac_help | |
406 | --enable-numberdlg use wxNumberEntryDialog" | |
407 | ac_help="$ac_help | |
408 | --enable-splash use wxSplashScreen" | |
409 | ac_help="$ac_help | |
410 | --enable-textdlg use wxTextDialog" | |
411 | ac_help="$ac_help | |
412 | --enable-tipdlg use startup tips" | |
413 | ac_help="$ac_help | |
414 | --enable-progressdlg use wxProgressDialog" | |
415 | ac_help="$ac_help | |
416 | --enable-wizarddlg use wxWizard" | |
417 | ac_help="$ac_help | |
418 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" | |
419 | ac_help="$ac_help | |
420 | --enable-miniframe use wxMiniFrame class" | |
421 | ac_help="$ac_help | |
422 | --enable-tooltips use wxToolTip class" | |
423 | ac_help="$ac_help | |
424 | --enable-splines use spline drawing code" | |
425 | ac_help="$ac_help | |
426 | --enable-validators use wxValidator and derived classes" | |
427 | ac_help="$ac_help | |
428 | --enable-busyinfo use wxBusyInfo" | |
429 | ac_help="$ac_help | |
430 | --enable-joystick use wxJoystick (Linux only)" | |
431 | ac_help="$ac_help | |
432 | --enable-metafiles use wxMetaFile (Windows only)" | |
433 | ac_help="$ac_help | |
434 | --enable-dragimage use wxDragImage" | |
435 | ac_help="$ac_help | |
436 | --enable-palette use wxPalette class" | |
437 | ac_help="$ac_help | |
438 | --enable-image use wxImage class" | |
439 | ac_help="$ac_help | |
440 | --enable-gif use gif images (GIF file format)" | |
441 | ac_help="$ac_help | |
442 | --enable-pcx use pcx images (PCX file format)" | |
443 | ac_help="$ac_help | |
444 | --enable-iff use iff images (IFF file format)" | |
445 | ac_help="$ac_help | |
446 | --enable-pnm use pnm images (PNM file format)" | |
447 | ac_help="$ac_help | |
448 | --enable-xpm use xpm images (XPM file format)" | |
449 | ac_help="$ac_help | |
450 | --enable-icocur use Windows ICO and CUR formats" | |
451 | ac_help="$ac_help | |
452 | --disable-largefile omit support for large files" | |
453 | ac_help="$ac_help | |
454 | --disable-gtktest do not try to compile and run a test GTK+ program" | |
455 | ac_help="$ac_help | |
456 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
457 | ac_help="$ac_help | |
458 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
459 | ac_help="$ac_help | |
460 | --disable-gtktest Do not try to compile and run a test GTK program" | |
461 | ac_help="$ac_help | |
462 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
463 | ac_help="$ac_help | |
464 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
465 | ac_help="$ac_help | |
466 | --disable-gtktest Do not try to compile and run a test GTK program" | |
467 | ac_help="$ac_help | |
468 | --with-x use the X Window System" | |
469 | ac_help="$ac_help | |
470 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
471 | |
472 | # Initialize some variables set by options. | |
473 | # The variables have the same names as the options, with | |
474 | # dashes changed to underlines. | |
a0b9e27f MB |
475 | build=NONE |
476 | cache_file=./config.cache | |
10f2d63a | 477 | exec_prefix=NONE |
a0b9e27f | 478 | host=NONE |
10f2d63a | 479 | no_create= |
a0b9e27f | 480 | nonopt=NONE |
10f2d63a VZ |
481 | no_recursion= |
482 | prefix=NONE | |
483 | program_prefix=NONE | |
484 | program_suffix=NONE | |
485 | program_transform_name=s,x,x, | |
486 | silent= | |
487 | site= | |
488 | srcdir= | |
a0b9e27f | 489 | target=NONE |
10f2d63a VZ |
490 | verbose= |
491 | x_includes=NONE | |
492 | x_libraries=NONE | |
493 | bindir='${exec_prefix}/bin' | |
494 | sbindir='${exec_prefix}/sbin' | |
495 | libexecdir='${exec_prefix}/libexec' | |
496 | datadir='${prefix}/share' | |
497 | sysconfdir='${prefix}/etc' | |
498 | sharedstatedir='${prefix}/com' | |
499 | localstatedir='${prefix}/var' | |
500 | libdir='${exec_prefix}/lib' | |
501 | includedir='${prefix}/include' | |
502 | oldincludedir='/usr/include' | |
503 | infodir='${prefix}/info' | |
504 | mandir='${prefix}/man' | |
505 | ||
a0b9e27f MB |
506 | # Initialize some other variables. |
507 | subdirs= | |
508 | MFLAGS= MAKEFLAGS= | |
509 | SHELL=${CONFIG_SHELL-/bin/sh} | |
510 | # Maximum number of lines to put in a shell here document. | |
511 | ac_max_here_lines=12 | |
512 | ||
10f2d63a VZ |
513 | ac_prev= |
514 | for ac_option | |
515 | do | |
a0b9e27f | 516 | |
10f2d63a VZ |
517 | # If the previous option needs an argument, assign it. |
518 | if test -n "$ac_prev"; then | |
519 | eval "$ac_prev=\$ac_option" | |
520 | ac_prev= | |
521 | continue | |
522 | fi | |
523 | ||
a0b9e27f MB |
524 | case "$ac_option" in |
525 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
526 | *) ac_optarg= ;; | |
527 | esac | |
10f2d63a VZ |
528 | |
529 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
530 | ||
a0b9e27f | 531 | case "$ac_option" in |
10f2d63a VZ |
532 | |
533 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
534 | ac_prev=bindir ;; | |
535 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
a0b9e27f | 536 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
537 | |
538 | -build | --build | --buil | --bui | --bu) | |
a0b9e27f | 539 | ac_prev=build ;; |
10f2d63a | 540 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
a0b9e27f | 541 | build="$ac_optarg" ;; |
10f2d63a VZ |
542 | |
543 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
544 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
545 | ac_prev=cache_file ;; | |
546 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
547 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
a0b9e27f | 548 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
549 | |
550 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
551 | ac_prev=datadir ;; | |
552 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
553 | | --da=*) | |
a0b9e27f | 554 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
555 | |
556 | -disable-* | --disable-*) | |
a0b9e27f | 557 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 558 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
559 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
560 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
561 | fi | |
562 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
563 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
564 | |
565 | -enable-* | --enable-*) | |
a0b9e27f | 566 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 567 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
568 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
569 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
570 | fi | |
571 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
572 | case "$ac_option" in | |
573 | *=*) ;; | |
10f2d63a VZ |
574 | *) ac_optarg=yes ;; |
575 | esac | |
a0b9e27f | 576 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
577 | |
578 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
579 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
580 | | --exec | --exe | --ex) | |
581 | ac_prev=exec_prefix ;; | |
582 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
583 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
584 | | --exec=* | --exe=* | --ex=*) | |
a0b9e27f | 585 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
586 | |
587 | -gas | --gas | --ga | --g) | |
588 | # Obsolete; use --with-gas. | |
589 | with_gas=yes ;; | |
590 | ||
a0b9e27f MB |
591 | -help | --help | --hel | --he) |
592 | # Omit some internal or obsolete options to make the list less imposing. | |
593 | # This message is too long to be a string in the A/UX 3.1 sh. | |
594 | cat << EOF | |
595 | Usage: configure [options] [host] | |
596 | Options: [defaults in brackets after descriptions] | |
597 | Configuration: | |
598 | --cache-file=FILE cache test results in FILE | |
599 | --help print this message | |
600 | --no-create do not create output files | |
601 | --quiet, --silent do not print \`checking...' messages | |
602 | --version print the version of autoconf that created configure | |
603 | Directory and file names: | |
604 | --prefix=PREFIX install architecture-independent files in PREFIX | |
605 | [$ac_default_prefix] | |
606 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
607 | [same as prefix] | |
608 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
609 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
610 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
611 | --datadir=DIR read-only architecture-independent data in DIR | |
612 | [PREFIX/share] | |
613 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
614 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
615 | [PREFIX/com] | |
616 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
617 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
618 | --includedir=DIR C header files in DIR [PREFIX/include] | |
619 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
620 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
621 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
622 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
623 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
624 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
625 | --program-transform-name=PROGRAM | |
626 | run sed PROGRAM on installed program names | |
627 | EOF | |
628 | cat << EOF | |
629 | Host type: | |
630 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
631 | --host=HOST configure for HOST [guessed] | |
632 | --target=TARGET configure for TARGET [TARGET=HOST] | |
633 | Features and packages: | |
634 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
635 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
636 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
637 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
638 | --x-includes=DIR X include files are in DIR | |
639 | --x-libraries=DIR X library files are in DIR | |
640 | EOF | |
641 | if test -n "$ac_help"; then | |
642 | echo "--enable and --with options recognized:$ac_help" | |
643 | fi | |
644 | exit 0 ;; | |
10f2d63a VZ |
645 | |
646 | -host | --host | --hos | --ho) | |
a0b9e27f | 647 | ac_prev=host ;; |
10f2d63a | 648 | -host=* | --host=* | --hos=* | --ho=*) |
a0b9e27f | 649 | host="$ac_optarg" ;; |
10f2d63a VZ |
650 | |
651 | -includedir | --includedir | --includedi | --included | --include \ | |
652 | | --includ | --inclu | --incl | --inc) | |
653 | ac_prev=includedir ;; | |
654 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
655 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
a0b9e27f | 656 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
657 | |
658 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
659 | ac_prev=infodir ;; | |
660 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
a0b9e27f | 661 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
662 | |
663 | -libdir | --libdir | --libdi | --libd) | |
664 | ac_prev=libdir ;; | |
665 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
a0b9e27f | 666 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
667 | |
668 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
669 | | --libexe | --libex | --libe) | |
670 | ac_prev=libexecdir ;; | |
671 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
672 | | --libexe=* | --libex=* | --libe=*) | |
a0b9e27f | 673 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
674 | |
675 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
676 | | --localstate | --localstat | --localsta | --localst \ | |
677 | | --locals | --local | --loca | --loc | --lo) | |
678 | ac_prev=localstatedir ;; | |
679 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
680 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
681 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
a0b9e27f | 682 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
683 | |
684 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
685 | ac_prev=mandir ;; | |
686 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
a0b9e27f | 687 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
688 | |
689 | -nfp | --nfp | --nf) | |
690 | # Obsolete; use --without-fp. | |
691 | with_fp=no ;; | |
692 | ||
693 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
a0b9e27f | 694 | | --no-cr | --no-c) |
10f2d63a VZ |
695 | no_create=yes ;; |
696 | ||
697 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
698 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
699 | no_recursion=yes ;; | |
700 | ||
701 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
702 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
703 | | --oldin | --oldi | --old | --ol | --o) | |
704 | ac_prev=oldincludedir ;; | |
705 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
706 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
707 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
a0b9e27f | 708 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
709 | |
710 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
711 | ac_prev=prefix ;; | |
712 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
a0b9e27f | 713 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
714 | |
715 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
716 | | --program-pre | --program-pr | --program-p) | |
717 | ac_prev=program_prefix ;; | |
718 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
719 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
a0b9e27f | 720 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
721 | |
722 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
723 | | --program-suf | --program-su | --program-s) | |
724 | ac_prev=program_suffix ;; | |
725 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
726 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
a0b9e27f | 727 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
728 | |
729 | -program-transform-name | --program-transform-name \ | |
730 | | --program-transform-nam | --program-transform-na \ | |
731 | | --program-transform-n | --program-transform- \ | |
732 | | --program-transform | --program-transfor \ | |
733 | | --program-transfo | --program-transf \ | |
734 | | --program-trans | --program-tran \ | |
735 | | --progr-tra | --program-tr | --program-t) | |
736 | ac_prev=program_transform_name ;; | |
737 | -program-transform-name=* | --program-transform-name=* \ | |
738 | | --program-transform-nam=* | --program-transform-na=* \ | |
739 | | --program-transform-n=* | --program-transform-=* \ | |
740 | | --program-transform=* | --program-transfor=* \ | |
741 | | --program-transfo=* | --program-transf=* \ | |
742 | | --program-trans=* | --program-tran=* \ | |
743 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
a0b9e27f | 744 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
745 | |
746 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
747 | | -silent | --silent | --silen | --sile | --sil) | |
748 | silent=yes ;; | |
749 | ||
750 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
751 | ac_prev=sbindir ;; | |
752 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
753 | | --sbi=* | --sb=*) | |
a0b9e27f | 754 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
755 | |
756 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
757 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
758 | | --sharedst | --shareds | --shared | --share | --shar \ | |
759 | | --sha | --sh) | |
760 | ac_prev=sharedstatedir ;; | |
761 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
762 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
763 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
764 | | --sha=* | --sh=*) | |
a0b9e27f | 765 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
766 | |
767 | -site | --site | --sit) | |
768 | ac_prev=site ;; | |
769 | -site=* | --site=* | --sit=*) | |
a0b9e27f | 770 | site="$ac_optarg" ;; |
10f2d63a VZ |
771 | |
772 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
773 | ac_prev=srcdir ;; | |
774 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
a0b9e27f | 775 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
776 | |
777 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
778 | | --syscon | --sysco | --sysc | --sys | --sy) | |
779 | ac_prev=sysconfdir ;; | |
780 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
781 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
a0b9e27f | 782 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
783 | |
784 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
a0b9e27f | 785 | ac_prev=target ;; |
10f2d63a | 786 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
a0b9e27f | 787 | target="$ac_optarg" ;; |
10f2d63a VZ |
788 | |
789 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
790 | verbose=yes ;; | |
791 | ||
a0b9e27f MB |
792 | -version | --version | --versio | --versi | --vers) |
793 | echo "configure generated by autoconf version 2.13" | |
794 | exit 0 ;; | |
10f2d63a VZ |
795 | |
796 | -with-* | --with-*) | |
a0b9e27f | 797 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 798 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
799 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
800 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
801 | fi | |
10f2d63a | 802 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
a0b9e27f MB |
803 | case "$ac_option" in |
804 | *=*) ;; | |
10f2d63a VZ |
805 | *) ac_optarg=yes ;; |
806 | esac | |
a0b9e27f | 807 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
808 | |
809 | -without-* | --without-*) | |
a0b9e27f | 810 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 811 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
812 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
813 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
814 | fi | |
815 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
816 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
817 | |
818 | --x) | |
819 | # Obsolete; use --with-x. | |
820 | with_x=yes ;; | |
821 | ||
822 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
823 | | --x-incl | --x-inc | --x-in | --x-i) | |
824 | ac_prev=x_includes ;; | |
825 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
826 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
a0b9e27f | 827 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
828 | |
829 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
830 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
831 | ac_prev=x_libraries ;; | |
832 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
833 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
a0b9e27f | 834 | x_libraries="$ac_optarg" ;; |
10f2d63a | 835 | |
a0b9e27f | 836 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
837 | ;; |
838 | ||
839 | *) | |
a0b9e27f MB |
840 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
841 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
842 | fi | |
843 | if test "x$nonopt" != xNONE; then | |
844 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
845 | fi | |
846 | nonopt="$ac_option" | |
10f2d63a VZ |
847 | ;; |
848 | ||
849 | esac | |
850 | done | |
851 | ||
852 | if test -n "$ac_prev"; then | |
a0b9e27f | 853 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
8284b0c5 | 854 | fi |
8284b0c5 | 855 | |
a0b9e27f MB |
856 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
857 | ||
858 | # File descriptor usage: | |
859 | # 0 standard input | |
860 | # 1 file creation | |
861 | # 2 errors and warnings | |
862 | # 3 some systems may open it to /dev/tty | |
863 | # 4 used on the Kubota Titan | |
864 | # 6 checking for... messages and results | |
865 | # 5 compiler messages saved in config.log | |
866 | if test "$silent" = yes; then | |
867 | exec 6>/dev/null | |
868 | else | |
869 | exec 6>&1 | |
870 | fi | |
871 | exec 5>./config.log | |
872 | ||
873 | echo "\ | |
874 | This file contains any messages produced by compilers while | |
875 | running configure, to aid debugging if configure makes a mistake. | |
876 | " 1>&5 | |
8284b0c5 | 877 | |
a0b9e27f MB |
878 | # Strip out --no-create and --no-recursion so they do not pile up. |
879 | # Also quote any args containing shell metacharacters. | |
880 | ac_configure_args= | |
881 | for ac_arg | |
10f2d63a | 882 | do |
a0b9e27f MB |
883 | case "$ac_arg" in |
884 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
885 | | --no-cr | --no-c) ;; | |
886 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
887 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
888 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
889 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
890 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
891 | esac |
892 | done | |
893 | ||
a0b9e27f MB |
894 | # NLS nuisances. |
895 | # Only set these to C if already set. These must not be set unconditionally | |
896 | # because not all systems understand e.g. LANG=C (notably SCO). | |
897 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
898 | # Non-C LC_CTYPE values break the ctype check. | |
899 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
900 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
901 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
902 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
247f5006 | 903 | |
a0b9e27f MB |
904 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
905 | rm -rf conftest* confdefs.h | |
906 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
907 | echo > confdefs.h | |
10f2d63a | 908 | |
a0b9e27f MB |
909 | # A filename unique to this package, relative to the directory that |
910 | # configure is in, which we can look for to find out if srcdir is correct. | |
911 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
912 | |
913 | # Find the source files, if location was not specified. | |
914 | if test -z "$srcdir"; then | |
915 | ac_srcdir_defaulted=yes | |
916 | # Try the directory containing this script, then its parent. | |
a0b9e27f MB |
917 | ac_prog=$0 |
918 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
919 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
10f2d63a VZ |
920 | srcdir=$ac_confdir |
921 | if test ! -r $srcdir/$ac_unique_file; then | |
922 | srcdir=.. | |
923 | fi | |
924 | else | |
925 | ac_srcdir_defaulted=no | |
926 | fi | |
927 | if test ! -r $srcdir/$ac_unique_file; then | |
928 | if test "$ac_srcdir_defaulted" = yes; then | |
a0b9e27f | 929 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 930 | else |
a0b9e27f | 931 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
932 | fi |
933 | fi | |
a0b9e27f | 934 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
328a083c | 935 | |
10f2d63a VZ |
936 | # Prefer explicitly selected file to automatically selected ones. |
937 | if test -z "$CONFIG_SITE"; then | |
938 | if test "x$prefix" != xNONE; then | |
939 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
940 | else | |
941 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
942 | fi | |
943 | fi | |
944 | for ac_site_file in $CONFIG_SITE; do | |
945 | if test -r "$ac_site_file"; then | |
a0b9e27f | 946 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
947 | . "$ac_site_file" |
948 | fi | |
949 | done | |
950 | ||
951 | if test -r "$cache_file"; then | |
a0b9e27f MB |
952 | echo "loading cache $cache_file" |
953 | . $cache_file | |
10f2d63a | 954 | else |
a0b9e27f MB |
955 | echo "creating cache $cache_file" |
956 | > $cache_file | |
10f2d63a VZ |
957 | fi |
958 | ||
959 | ac_ext=c | |
a0b9e27f | 960 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 961 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
962 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
963 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
964 | cross_compiling=$ac_cv_prog_cc_cross | |
965 | ||
966 | ac_exeext= | |
967 | ac_objext=o | |
968 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
969 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
970 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
971 | ac_n= ac_c=' | |
972 | ' ac_t=' ' | |
973 | else | |
974 | ac_n=-n ac_c= ac_t= | |
975 | fi | |
976 | else | |
977 | ac_n= ac_c='\c' ac_t= | |
978 | fi | |
8284b0c5 MB |
979 | |
980 | ||
10f2d63a | 981 | |
7c66a493 VZ |
982 | ac_aux_dir= |
983 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
984 | if test -f $ac_dir/install-sh; then | |
985 | ac_aux_dir=$ac_dir | |
986 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
987 | break | |
988 | elif test -f $ac_dir/install.sh; then | |
989 | ac_aux_dir=$ac_dir | |
990 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
991 | break | |
247f5006 | 992 | fi |
7c66a493 VZ |
993 | done |
994 | if test -z "$ac_aux_dir"; then | |
a0b9e27f | 995 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 996 | fi |
a0b9e27f MB |
997 | ac_config_guess=$ac_aux_dir/config.guess |
998 | ac_config_sub=$ac_aux_dir/config.sub | |
999 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
698dcdb6 | 1000 | |
8284b0c5 | 1001 | |
a0b9e27f MB |
1002 | # Do some error checking and defaulting for the host and target type. |
1003 | # The inputs are: | |
1004 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
1005 | # | |
1006 | # The rules are: | |
1007 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
1008 | # same time. | |
1009 | # 2. Host defaults to nonopt. | |
1010 | # 3. If nonopt is not specified, then host defaults to the current host, | |
1011 | # as determined by config.guess. | |
1012 | # 4. Target and build default to nonopt. | |
1013 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
1014 | |
1015 | # The aliases save the names the user supplied, while $host etc. | |
1016 | # will get canonicalized. | |
a0b9e27f MB |
1017 | case $host---$target---$nonopt in |
1018 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
1019 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
1020 | esac | |
1021 | ||
1022 | ||
1023 | # Make sure we can run config.sub. | |
1024 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1025 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1026 | fi | |
1027 | ||
1028 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
ac0c4cc3 | 1029 | echo "configure:1030: checking host system type" >&5 |
a0b9e27f MB |
1030 | |
1031 | host_alias=$host | |
1032 | case "$host_alias" in | |
1033 | NONE) | |
1034 | case $nonopt in | |
1035 | NONE) | |
1036 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1037 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1038 | fi ;; | |
1039 | *) host_alias=$nonopt ;; | |
1040 | esac ;; | |
1041 | esac | |
1042 | ||
1043 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1044 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1045 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1046 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1047 | echo "$ac_t""$host" 1>&6 | |
1048 | ||
1049 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
ac0c4cc3 | 1050 | echo "configure:1051: checking target system type" >&5 |
a0b9e27f MB |
1051 | |
1052 | target_alias=$target | |
1053 | case "$target_alias" in | |
1054 | NONE) | |
1055 | case $nonopt in | |
1056 | NONE) target_alias=$host_alias ;; | |
1057 | *) target_alias=$nonopt ;; | |
1058 | esac ;; | |
1059 | esac | |
1060 | ||
1061 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1062 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1063 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1064 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1065 | echo "$ac_t""$target" 1>&6 | |
1066 | ||
1067 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
ac0c4cc3 | 1068 | echo "configure:1069: checking build system type" >&5 |
a0b9e27f MB |
1069 | |
1070 | build_alias=$build | |
1071 | case "$build_alias" in | |
1072 | NONE) | |
1073 | case $nonopt in | |
1074 | NONE) build_alias=$host_alias ;; | |
1075 | *) build_alias=$nonopt ;; | |
1076 | esac ;; | |
1077 | esac | |
1078 | ||
1079 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1080 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1081 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1082 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1083 | echo "$ac_t""$build" 1>&6 | |
1084 | ||
1085 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1086 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1087 | NONENONEs,x,x, && | |
1088 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1089 | |
1090 | ||
a0b9e27f | 1091 | |
10f2d63a | 1092 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 VZ |
1093 | WX_MINOR_VERSION_NUMBER=5 |
1094 | WX_RELEASE_NUMBER=0 | |
10f2d63a | 1095 | |
10f2d63a | 1096 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1097 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1098 | |
978f1259 RL |
1099 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1100 | ||
34bed6d9 | 1101 | WX_CURRENT=0 |
6426998c RL |
1102 | WX_REVISION=0 |
1103 | WX_AGE=0 | |
1104 | ||
8284b0c5 MB |
1105 | |
1106 | ||
10f2d63a VZ |
1107 | USE_UNIX=1 |
1108 | USE_WIN32=0 | |
f9bc1684 | 1109 | USE_DOS=0 |
b12915c1 | 1110 | USE_BEOS=0 |
1216f52d | 1111 | USE_MAC=0 |
b12915c1 | 1112 | |
10f2d63a VZ |
1113 | USE_LINUX= |
1114 | USE_SGI= | |
1115 | USE_HPUX= | |
1116 | USE_SYSV= | |
1117 | USE_SVR4= | |
1118 | USE_AIX= | |
1119 | USE_SUN= | |
1120 | USE_SOLARIS= | |
1121 | USE_SUNOS= | |
1122 | USE_ALPHA= | |
1123 | USE_OSF= | |
1124 | USE_BSD= | |
f11bdd03 | 1125 | USE_DARWIN= |
10f2d63a | 1126 | USE_FREEBSD= |
95c8801c | 1127 | USE_OPENBSD= |
f6bcfd97 | 1128 | USE_NETBSD= |
10f2d63a VZ |
1129 | USE_VMS= |
1130 | USE_ULTRIX= | |
10f2d63a VZ |
1131 | USE_DATA_GENERAL= |
1132 | ||
ab9b9eab VZ |
1133 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1134 | ||
ac0c4cc3 | 1135 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a | 1136 | |
ac0c4cc3 | 1137 | DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1138 | DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1139 | DEFAULT_wxUSE_MAC=0 |
1140 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1141 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1142 | DEFAULT_wxUSE_MOTIF=0 |
1143 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1144 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1145 | DEFAULT_wxUSE_X11=0 |
10f2d63a | 1146 | |
ac0c4cc3 | 1147 | DEFAULT_DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1148 | DEFAULT_DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1149 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1150 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1151 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1152 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1153 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1154 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1155 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1156 | |
d6a55c4b | 1157 | PROGRAM_EXT= |
3a922bb4 | 1158 | SO_SUFFIX=so |
d6a55c4b | 1159 | |
10f2d63a VZ |
1160 | case "${host}" in |
1161 | *-hp-hpux* ) | |
1162 | USE_HPUX=1 | |
1163 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1164 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1165 | SO_SUFFIX=sl |
a0b9e27f | 1166 | cat >> confdefs.h <<\EOF |
10f2d63a | 1167 | #define __HPUX__ 1 |
a0b9e27f | 1168 | EOF |
10f2d63a VZ |
1169 | |
1170 | ;; | |
1171 | *-*-linux* ) | |
1172 | USE_LINUX=1 | |
a0b9e27f | 1173 | cat >> confdefs.h <<\EOF |
10f2d63a | 1174 | #define __LINUX__ 1 |
a0b9e27f | 1175 | EOF |
10f2d63a VZ |
1176 | |
1177 | TMP=`uname -m` | |
1178 | if test "x$TMP" = "xalpha"; then | |
1179 | USE_ALPHA=1 | |
a0b9e27f | 1180 | cat >> confdefs.h <<\EOF |
10f2d63a | 1181 | #define __ALPHA__ 1 |
a0b9e27f | 1182 | EOF |
10f2d63a VZ |
1183 | |
1184 | fi | |
1185 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1186 | ;; | |
1187 | *-*-irix5* | *-*-irix6* ) | |
1188 | USE_SGI=1 | |
1189 | USE_SVR4=1 | |
a0b9e27f | 1190 | cat >> confdefs.h <<\EOF |
10f2d63a | 1191 | #define __SGI__ 1 |
a0b9e27f | 1192 | EOF |
10f2d63a | 1193 | |
a0b9e27f | 1194 | cat >> confdefs.h <<\EOF |
10f2d63a | 1195 | #define __SVR4__ 1 |
a0b9e27f | 1196 | EOF |
10f2d63a VZ |
1197 | |
1198 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1199 | ;; | |
1200 | *-*-solaris2* ) | |
1201 | USE_SUN=1 | |
1202 | USE_SOLARIS=1 | |
1203 | USE_SVR4=1 | |
a0b9e27f | 1204 | cat >> confdefs.h <<\EOF |
10f2d63a | 1205 | #define __SUN__ 1 |
a0b9e27f | 1206 | EOF |
10f2d63a | 1207 | |
a0b9e27f | 1208 | cat >> confdefs.h <<\EOF |
10f2d63a | 1209 | #define __SOLARIS__ 1 |
a0b9e27f | 1210 | EOF |
10f2d63a | 1211 | |
a0b9e27f | 1212 | cat >> confdefs.h <<\EOF |
10f2d63a | 1213 | #define __SVR4__ 1 |
a0b9e27f | 1214 | EOF |
10f2d63a VZ |
1215 | |
1216 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1217 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1218 | ;; |
1219 | *-*-sunos4* ) | |
1220 | USE_SUN=1 | |
1221 | USE_SUNOS=1 | |
1222 | USE_BSD=1 | |
a0b9e27f | 1223 | cat >> confdefs.h <<\EOF |
10f2d63a | 1224 | #define __SUN__ 1 |
a0b9e27f | 1225 | EOF |
10f2d63a | 1226 | |
a0b9e27f | 1227 | cat >> confdefs.h <<\EOF |
10f2d63a | 1228 | #define __SUNOS__ 1 |
a0b9e27f | 1229 | EOF |
10f2d63a | 1230 | |
a0b9e27f | 1231 | cat >> confdefs.h <<\EOF |
10f2d63a | 1232 | #define __BSD__ 1 |
a0b9e27f | 1233 | EOF |
10f2d63a VZ |
1234 | |
1235 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1236 | ;; | |
f6bcfd97 | 1237 | *-*-freebsd*) |
10f2d63a VZ |
1238 | USE_BSD=1 |
1239 | USE_FREEBSD=1 | |
a0b9e27f | 1240 | cat >> confdefs.h <<\EOF |
10f2d63a | 1241 | #define __FREEBSD__ 1 |
a0b9e27f | 1242 | EOF |
10f2d63a | 1243 | |
a0b9e27f | 1244 | cat >> confdefs.h <<\EOF |
10f2d63a | 1245 | #define __BSD__ 1 |
a0b9e27f | 1246 | EOF |
95c8801c VS |
1247 | |
1248 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1249 | ;; | |
1250 | *-*-openbsd*) | |
1251 | USE_BSD=1 | |
1252 | USE_OPENBSD=1 | |
a0b9e27f | 1253 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1254 | #define __OPENBSD__ 1 |
a0b9e27f | 1255 | EOF |
95c8801c | 1256 | |
a0b9e27f | 1257 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1258 | #define __BSD__ 1 |
a0b9e27f | 1259 | EOF |
f6bcfd97 BP |
1260 | |
1261 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1262 | ;; | |
1263 | *-*-netbsd*) | |
1264 | USE_BSD=1 | |
1265 | USE_NETBSD=1 | |
a0b9e27f | 1266 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1267 | #define __NETBSD__ 1 |
a0b9e27f | 1268 | EOF |
f6bcfd97 | 1269 | |
a0b9e27f | 1270 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1271 | #define __BSD__ 1 |
a0b9e27f | 1272 | EOF |
10f2d63a VZ |
1273 | |
1274 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1275 | ;; | |
1276 | *-*-osf* ) | |
1277 | USE_ALPHA=1 | |
1278 | USE_OSF=1 | |
a0b9e27f | 1279 | cat >> confdefs.h <<\EOF |
10f2d63a | 1280 | #define __ALPHA__ 1 |
a0b9e27f | 1281 | EOF |
10f2d63a | 1282 | |
a0b9e27f | 1283 | cat >> confdefs.h <<\EOF |
10f2d63a | 1284 | #define __OSF__ 1 |
a0b9e27f | 1285 | EOF |
10f2d63a VZ |
1286 | |
1287 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1288 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1289 | ;; |
1290 | *-*-dgux5* ) | |
1291 | USE_ALPHA=1 | |
1292 | USE_SVR4=1 | |
a0b9e27f | 1293 | cat >> confdefs.h <<\EOF |
10f2d63a | 1294 | #define __ALPHA__ 1 |
a0b9e27f | 1295 | EOF |
10f2d63a | 1296 | |
a0b9e27f | 1297 | cat >> confdefs.h <<\EOF |
10f2d63a | 1298 | #define __SVR4__ 1 |
a0b9e27f | 1299 | EOF |
10f2d63a VZ |
1300 | |
1301 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1302 | ;; | |
1303 | *-*-sysv5* ) | |
1304 | USE_SYSV=1 | |
1305 | USE_SVR4=1 | |
a0b9e27f | 1306 | cat >> confdefs.h <<\EOF |
10f2d63a | 1307 | #define __SYSV__ 1 |
a0b9e27f | 1308 | EOF |
10f2d63a | 1309 | |
a0b9e27f | 1310 | cat >> confdefs.h <<\EOF |
10f2d63a | 1311 | #define __SVR4__ 1 |
a0b9e27f | 1312 | EOF |
10f2d63a VZ |
1313 | |
1314 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1315 | ;; | |
1316 | *-*-aix* ) | |
1317 | USE_AIX=1 | |
1318 | USE_SYSV=1 | |
1319 | USE_SVR4=1 | |
2b5f62a0 | 1320 | SO_SUFFIX=a |
a0b9e27f | 1321 | cat >> confdefs.h <<\EOF |
10f2d63a | 1322 | #define __AIX__ 1 |
a0b9e27f | 1323 | EOF |
10f2d63a | 1324 | |
a0b9e27f | 1325 | cat >> confdefs.h <<\EOF |
10f2d63a | 1326 | #define __SYSV__ 1 |
a0b9e27f | 1327 | EOF |
10f2d63a | 1328 | |
a0b9e27f | 1329 | cat >> confdefs.h <<\EOF |
10f2d63a | 1330 | #define __SVR4__ 1 |
a0b9e27f | 1331 | EOF |
10f2d63a VZ |
1332 | |
1333 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1334 | ;; | |
1335 | ||
1c8183e2 | 1336 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1337 | SO_SUFFIX=dll |
cf27ef00 | 1338 | PROGRAM_EXT=".exe" |
7b7a7637 | 1339 | RESCOMP=windres |
10f2d63a VZ |
1340 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1341 | ;; | |
1342 | ||
f9bc1684 VS |
1343 | *-pc-msdosdjgpp ) |
1344 | USE_UNIX=0 | |
1345 | USE_DOS=1 | |
a0b9e27f | 1346 | cat >> confdefs.h <<\EOF |
f9bc1684 | 1347 | #define __DOS__ 1 |
a0b9e27f | 1348 | EOF |
f9bc1684 VS |
1349 | |
1350 | PROGRAM_EXT=".exe" | |
1351 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1352 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1353 | ;; |
1354 | ||
6fa882bd | 1355 | *-pc-os2_emx | *-pc-os2-emx ) |
a0b9e27f | 1356 | cat >> confdefs.h <<\EOF |
10f2d63a | 1357 | #define __EMX__ 1 |
a0b9e27f | 1358 | EOF |
10f2d63a | 1359 | |
cf27ef00 | 1360 | PROGRAM_EXT=".exe" |
e07802fc | 1361 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1362 | ;; |
1363 | ||
d08b457b GD |
1364 | powerpc-*-darwin* ) |
1365 | USE_BSD=1 | |
f11bdd03 | 1366 | USE_DARWIN=1 |
3a922bb4 | 1367 | SO_SUFFIX=dylib |
a0b9e27f | 1368 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1369 | #define __BSD__ 1 |
a0b9e27f | 1370 | EOF |
b4085ce6 | 1371 | |
a0b9e27f | 1372 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1373 | #define __DARWIN__ 1 |
a0b9e27f | 1374 | EOF |
d08b457b | 1375 | |
a0b9e27f | 1376 | cat >> confdefs.h <<\EOF |
d08b457b | 1377 | #define __POWERPC__ 1 |
82d43113 GD |
1378 | EOF |
1379 | ||
1380 | cat >> confdefs.h <<\EOF | |
1381 | #define TARGET_CARBON 1 | |
a0b9e27f | 1382 | EOF |
b4085ce6 GD |
1383 | |
1384 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1385 | ;; | |
1386 | ||
b12915c1 VZ |
1387 | *-*-beos* ) |
1388 | USE_BEOS=1 | |
a0b9e27f | 1389 | cat >> confdefs.h <<\EOF |
b12915c1 | 1390 | #define __BEOS__ 1 |
a0b9e27f | 1391 | EOF |
b12915c1 VZ |
1392 | |
1393 | ;; | |
1394 | ||
10f2d63a | 1395 | *) |
a0b9e27f | 1396 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1397 | esac |
1398 | ||
8284b0c5 MB |
1399 | |
1400 | ||
1401 | ||
1402 | wx_arg_cache_file="configarg.cache" | |
1403 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1404 | rm -f ${wx_arg_cache_file}.tmp |
1405 | touch ${wx_arg_cache_file}.tmp | |
1406 | touch ${wx_arg_cache_file} | |
a0b9e27f | 1407 | |
10f2d63a VZ |
1408 | |
1409 | DEBUG_CONFIGURE=0 | |
1410 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1411 | DEFAULT_wxUSE_UNIVERSAL=no |
1412 | ||
d8356fa3 VZ |
1413 | DEFAULT_wxUSE_NANOX=no |
1414 | ||
10f2d63a VZ |
1415 | DEFAULT_wxUSE_THREADS=yes |
1416 | ||
1417 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1418 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1419 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1420 | DEFAULT_wxUSE_PROFILE=no |
1421 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1422 | DEFAULT_wxUSE_NO_RTTI=no |
1423 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1424 | DEFAULT_wxUSE_PERMISSIVE=no |
1425 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1426 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1427 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1428 | DEFAULT_wxUSE_MEM_TRACING=no | |
1429 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1430 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1431 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1432 | DEFAULT_wxUSE_APPLE_IEEE=no |
1433 | ||
1434 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1435 | DEFAULT_wxUSE_LOGWINDOW=no |
1436 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1437 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1438 | |
1439 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1440 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1441 | |
3e44f09d | 1442 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1443 | DEFAULT_wxUSE_ZLIB=no |
1444 | DEFAULT_wxUSE_LIBPNG=no | |
1445 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1446 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1447 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1448 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1449 | |
eb4efbdc | 1450 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1451 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1452 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1453 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1454 | DEFAULT_wxUSE_DATETIME=no | |
1455 | DEFAULT_wxUSE_TIMEDATE=no | |
1456 | DEFAULT_wxUSE_TIMER=no | |
1457 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1458 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1459 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1460 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1461 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1462 | DEFAULT_wxUSE_WAVE=no |
1463 | DEFAULT_wxUSE_INTL=no | |
1464 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1465 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1466 | DEFAULT_wxUSE_STREAMS=no |
1467 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
1468 | DEFAULT_wxUSE_OLE=no |
1469 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 1470 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 1471 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1472 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1473 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1474 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1475 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1476 | |
1477 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1478 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1479 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1480 | ||
1481 | DEFAULT_wxUSE_X_RESOURCES=no | |
1482 | DEFAULT_wxUSE_CLIPBOARD=no | |
1483 | DEFAULT_wxUSE_TOOLTIPS=no | |
1484 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1485 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1486 | DEFAULT_wxUSE_SPLINES=no |
1487 | ||
1488 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1489 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1490 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1491 | ||
1492 | DEFAULT_wxUSE_PROLOGIO=no | |
1493 | DEFAULT_wxUSE_RESOURCES=no | |
1494 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1495 | DEFAULT_wxUSE_IPC=no | |
1496 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1497 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1498 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1499 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1500 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1501 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1502 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1503 | DEFAULT_wxUSE_PROTOCOL=no | |
1504 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1505 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1506 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1507 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 1508 | |
10f2d63a | 1509 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1510 | DEFAULT_wxUSE_CHOICEDLG=no |
1511 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1512 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1513 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1514 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1515 | DEFAULT_wxUSE_FONTDLG=no |
1516 | DEFAULT_wxUSE_MSGDLG=no | |
1517 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1518 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1519 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1520 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1521 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1522 | DEFAULT_wxUSE_WIZARDDLG=no |
1523 | ||
1e6feb95 | 1524 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1525 | DEFAULT_wxUSE_MINIFRAME=no |
1526 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1527 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1528 | DEFAULT_wxUSE_FS_INET=no |
1529 | DEFAULT_wxUSE_FS_ZIP=no | |
1530 | DEFAULT_wxUSE_BUSYINFO=no | |
1531 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1532 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1533 | |
1534 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1535 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1536 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1537 | DEFAULT_wxUSE_CALCTRL=no |
1538 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1539 | DEFAULT_wxUSE_CHECKBOX=no |
1540 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1541 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a | 1542 | DEFAULT_wxUSE_COMBOBOX=no |
da494b40 | 1543 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
1544 | DEFAULT_wxUSE_GAUGE=no |
1545 | DEFAULT_wxUSE_GRID=no | |
1546 | DEFAULT_wxUSE_NEW_GRID=no | |
1547 | DEFAULT_wxUSE_IMAGLIST=no | |
1548 | DEFAULT_wxUSE_LISTBOX=no | |
1549 | DEFAULT_wxUSE_LISTCTRL=no | |
1550 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1551 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1552 | DEFAULT_wxUSE_RADIOBOX=no |
1553 | DEFAULT_wxUSE_RADIOBTN=no | |
1554 | DEFAULT_wxUSE_SASH=no | |
1555 | DEFAULT_wxUSE_SCROLLBAR=no | |
1556 | DEFAULT_wxUSE_SLIDER=no | |
1557 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1558 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1559 | DEFAULT_wxUSE_SPLITTER=no |
1560 | DEFAULT_wxUSE_STATBMP=no | |
1561 | DEFAULT_wxUSE_STATBOX=no | |
1562 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1563 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1564 | DEFAULT_wxUSE_STATUSBAR=yes |
1565 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1566 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1567 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1568 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1569 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1570 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1571 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1572 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1573 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1574 | |
1575 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1576 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1577 | DEFAULT_wxUSE_WCSRTOMBS=no |
1578 | ||
edae8572 | 1579 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1580 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1581 | DEFAULT_wxUSE_GIF=no |
1582 | DEFAULT_wxUSE_PCX=no | |
1583 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1584 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1585 | DEFAULT_wxUSE_XPM=no |
658974ae | 1586 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1587 | else |
1e6feb95 VZ |
1588 | DEFAULT_wxUSE_UNIVERSAL=no |
1589 | ||
d8356fa3 VZ |
1590 | DEFAULT_wxUSE_NANOX=no |
1591 | ||
10f2d63a VZ |
1592 | DEFAULT_wxUSE_THREADS=yes |
1593 | ||
1594 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1595 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1596 | DEFAULT_wxUSE_OPTIMISE=yes |
1597 | DEFAULT_wxUSE_PROFILE=no | |
1598 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1599 | DEFAULT_wxUSE_NO_RTTI=no |
1600 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1601 | DEFAULT_wxUSE_PERMISSIVE=no |
1602 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1603 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1604 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1605 | DEFAULT_wxUSE_MEM_TRACING=no | |
1606 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1607 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1608 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1609 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1610 | ||
1611 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1612 | DEFAULT_wxUSE_LOGWINDOW=yes |
1613 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1614 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1615 | |
1616 | DEFAULT_wxUSE_GUI=yes | |
1617 | ||
831b3152 | 1618 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1619 | DEFAULT_wxUSE_ZLIB=yes |
1620 | DEFAULT_wxUSE_LIBPNG=yes | |
1621 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1622 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1623 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1624 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1625 | |
eb4efbdc | 1626 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1627 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1628 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1629 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1630 | DEFAULT_wxUSE_DATETIME=yes | |
1631 | DEFAULT_wxUSE_TIMEDATE=no | |
1632 | DEFAULT_wxUSE_TIMER=yes | |
1633 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1634 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1635 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1636 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1637 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1638 | DEFAULT_wxUSE_WAVE=no |
1639 | DEFAULT_wxUSE_INTL=yes | |
1640 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1641 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1642 | DEFAULT_wxUSE_STREAMS=yes |
1643 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
1644 | DEFAULT_wxUSE_OLE=yes |
1645 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 1646 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 1647 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1648 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1649 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1650 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1651 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1652 | |
1653 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1654 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1655 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1656 | ||
1657 | DEFAULT_wxUSE_X_RESOURCES=no | |
1658 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1659 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1660 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1661 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1662 | DEFAULT_wxUSE_SPLINES=yes |
1663 | ||
1664 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1665 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1666 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1667 | ||
2b5f62a0 VZ |
1668 | DEFAULT_wxUSE_PROLOGIO=no |
1669 | DEFAULT_wxUSE_RESOURCES=no | |
10f2d63a VZ |
1670 | DEFAULT_wxUSE_CONSTRAINTS=yes |
1671 | DEFAULT_wxUSE_IPC=yes | |
1672 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1673 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1674 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1675 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1676 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1677 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1678 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1679 | DEFAULT_wxUSE_PROTOCOL=yes |
1680 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1681 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1682 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1683 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1684 | |
1685 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1686 | DEFAULT_wxUSE_CHOICEDLG=yes |
1687 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1688 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1689 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1690 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1691 | DEFAULT_wxUSE_FONTDLG=yes |
1692 | DEFAULT_wxUSE_MSGDLG=yes | |
1693 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1694 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1695 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1696 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1697 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1698 | DEFAULT_wxUSE_WIZARDDLG=yes |
1699 | ||
1e6feb95 | 1700 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1701 | DEFAULT_wxUSE_MINIFRAME=yes |
1702 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1703 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1704 | DEFAULT_wxUSE_FS_INET=yes |
1705 | DEFAULT_wxUSE_FS_ZIP=yes | |
1706 | DEFAULT_wxUSE_BUSYINFO=yes | |
1707 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1708 | DEFAULT_wxUSE_VALIDATORS=yes | |
1709 | ||
1710 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1711 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1712 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1713 | DEFAULT_wxUSE_CALCTRL=yes |
1714 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1715 | DEFAULT_wxUSE_CHECKBOX=yes |
1716 | DEFAULT_wxUSE_CHECKLST=yes | |
1717 | DEFAULT_wxUSE_CHOICE=yes | |
1718 | DEFAULT_wxUSE_COMBOBOX=yes | |
da494b40 | 1719 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
1720 | DEFAULT_wxUSE_GAUGE=yes |
1721 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1722 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1723 | DEFAULT_wxUSE_IMAGLIST=yes |
1724 | DEFAULT_wxUSE_LISTBOX=yes | |
1725 | DEFAULT_wxUSE_LISTCTRL=yes | |
1726 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1727 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1728 | DEFAULT_wxUSE_RADIOBOX=yes |
1729 | DEFAULT_wxUSE_RADIOBTN=yes | |
1730 | DEFAULT_wxUSE_SASH=yes | |
1731 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1732 | DEFAULT_wxUSE_SLIDER=yes | |
1733 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1734 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1735 | DEFAULT_wxUSE_SPLITTER=yes |
1736 | DEFAULT_wxUSE_STATBMP=yes | |
1737 | DEFAULT_wxUSE_STATBOX=yes | |
1738 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1739 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1740 | DEFAULT_wxUSE_STATUSBAR=yes |
1741 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1742 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1743 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1744 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1745 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1746 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1747 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1748 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1749 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1750 | |
1751 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1752 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1753 | DEFAULT_wxUSE_WCSRTOMBS=no |
1754 | ||
edae8572 | 1755 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1756 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1757 | DEFAULT_wxUSE_GIF=yes |
1758 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1759 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1760 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1761 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1762 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1763 | fi |
1764 | ||
8284b0c5 MB |
1765 | |
1766 | ||
10f2d63a | 1767 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
1768 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
1769 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
1770 | has_toolkit_in_cache=1 |
1771 | eval "DEFAULT_$LINE" | |
1772 | eval "CACHE_$toolkit=1" | |
1773 | fi | |
1774 | done | |
1775 | ||
8284b0c5 MB |
1776 | |
1777 | ||
5005acfe VZ |
1778 | enablestring= |
1779 | echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6 | |
ac0c4cc3 | 1780 | echo "configure:1781: checking for --${enablestring:-enable}-gui" >&5 |
10f2d63a VZ |
1781 | no_cache=0 |
1782 | # Check whether --enable-gui or --disable-gui was given. | |
1783 | if test "${enable_gui+set}" = set; then | |
1784 | enableval="$enable_gui" | |
a0b9e27f | 1785 | |
10f2d63a VZ |
1786 | if test "$enableval" = yes; then |
1787 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1788 | else | |
1789 | ac_cv_use_gui='wxUSE_GUI=no' | |
1790 | fi | |
a0b9e27f | 1791 | |
10f2d63a | 1792 | else |
a0b9e27f | 1793 | |
10f2d63a VZ |
1794 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1795 | if test "x$LINE" != x ; then | |
1796 | eval "DEFAULT_$LINE" | |
1797 | else | |
1798 | no_cache=1 | |
1799 | fi | |
1800 | ||
1801 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
a0b9e27f MB |
1802 | |
1803 | fi | |
10f2d63a VZ |
1804 | |
1805 | ||
1806 | eval "$ac_cv_use_gui" | |
1807 | if test "$no_cache" != 1; then | |
1808 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1809 | fi | |
1810 | ||
1811 | if test "$wxUSE_GUI" = yes; then | |
a0b9e27f | 1812 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1813 | else |
a0b9e27f | 1814 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1815 | fi |
a0b9e27f | 1816 | |
10f2d63a | 1817 | |
b12915c1 | 1818 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1819 | |
8284b0c5 | 1820 | |
5005acfe VZ |
1821 | enablestring= |
1822 | echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6 | |
ac0c4cc3 | 1823 | echo "configure:1824: checking for --${enablestring:-enable}-universal" >&5 |
1e6feb95 VZ |
1824 | no_cache=0 |
1825 | # Check whether --enable-universal or --disable-universal was given. | |
1826 | if test "${enable_universal+set}" = set; then | |
1827 | enableval="$enable_universal" | |
a0b9e27f | 1828 | |
1e6feb95 VZ |
1829 | if test "$enableval" = yes; then |
1830 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1831 | else | |
1832 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1833 | fi | |
a0b9e27f | 1834 | |
1e6feb95 | 1835 | else |
a0b9e27f | 1836 | |
1e6feb95 VZ |
1837 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
1838 | if test "x$LINE" != x ; then | |
1839 | eval "DEFAULT_$LINE" | |
1840 | else | |
1841 | no_cache=1 | |
1842 | fi | |
1843 | ||
1844 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
a0b9e27f MB |
1845 | |
1846 | fi | |
1e6feb95 VZ |
1847 | |
1848 | ||
1849 | eval "$ac_cv_use_universal" | |
1850 | if test "$no_cache" != 1; then | |
1851 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1852 | fi | |
1853 | ||
1854 | if test "$wxUSE_UNIVERSAL" = yes; then | |
a0b9e27f | 1855 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 1856 | else |
a0b9e27f | 1857 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 1858 | fi |
a0b9e27f | 1859 | |
10f2d63a VZ |
1860 | # Check whether --with-gtk or --without-gtk was given. |
1861 | if test "${with_gtk+set}" = set; then | |
1862 | withval="$with_gtk" | |
1863 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1864 | fi |
10f2d63a VZ |
1865 | |
1866 | # Check whether --with-motif or --without-motif was given. | |
1867 | if test "${with_motif+set}" = set; then | |
1868 | withval="$with_motif" | |
1869 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1870 | fi |
10f2d63a | 1871 | |
b4085ce6 GD |
1872 | # Check whether --with-mac or --without-mac was given. |
1873 | if test "${with_mac+set}" = set; then | |
1874 | withval="$with_mac" | |
1875 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
a0b9e27f | 1876 | fi |
b4085ce6 | 1877 | |
ac0c4cc3 DE |
1878 | # Check whether --with-cocoa or --without-cocoa was given. |
1879 | if test "${with_cocoa+set}" = set; then | |
1880 | withval="$with_cocoa" | |
1881 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
1882 | fi | |
1883 | ||
10f2d63a VZ |
1884 | # Check whether --with-wine or --without-wine was given. |
1885 | if test "${with_wine+set}" = set; then | |
1886 | withval="$with_wine" | |
89e6bf6d | 1887 | wxUSE_WINE="$withval" CACHE_WINE=1 |
a0b9e27f | 1888 | fi |
10f2d63a | 1889 | |
77e13408 RL |
1890 | # Check whether --with-msw or --without-msw was given. |
1891 | if test "${with_msw+set}" = set; then | |
1892 | withval="$with_msw" | |
b4efce5e | 1893 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1894 | fi |
10f2d63a | 1895 | |
e07802fc VZ |
1896 | # Check whether --with-pm or --without-pm was given. |
1897 | if test "${with_pm+set}" = set; then | |
1898 | withval="$with_pm" | |
1899 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1900 | fi |
698dcdb6 | 1901 | |
1e6feb95 VZ |
1902 | # Check whether --with-mgl or --without-mgl was given. |
1903 | if test "${with_mgl+set}" = set; then | |
1904 | withval="$with_mgl" | |
6c657b52 | 1905 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1906 | fi |
1e6feb95 | 1907 | |
1725144d RR |
1908 | # Check whether --with-microwin or --without-microwin was given. |
1909 | if test "${with_microwin+set}" = set; then | |
1910 | withval="$with_microwin" | |
1911 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1912 | fi |
1725144d | 1913 | |
f79bd02d JS |
1914 | # Check whether --with-x11 or --without-x11 was given. |
1915 | if test "${with_x11+set}" = set; then | |
1916 | withval="$with_x11" | |
3c011993 | 1917 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1918 | fi |
10f2d63a | 1919 | |
a0b9e27f | 1920 | |
5005acfe VZ |
1921 | enablestring= |
1922 | echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6 | |
ac0c4cc3 | 1923 | echo "configure:1924: checking for --${enablestring:-enable}-nanox" >&5 |
d8356fa3 | 1924 | no_cache=0 |
ba875e66 VZ |
1925 | # Check whether --enable-nanox or --disable-nanox was given. |
1926 | if test "${enable_nanox+set}" = set; then | |
1927 | enableval="$enable_nanox" | |
a0b9e27f | 1928 | |
d8356fa3 | 1929 | if test "$enableval" = yes; then |
ba875e66 | 1930 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1931 | else |
ba875e66 | 1932 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 1933 | fi |
a0b9e27f | 1934 | |
d8356fa3 | 1935 | else |
a0b9e27f | 1936 | |
d8356fa3 VZ |
1937 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
1938 | if test "x$LINE" != x ; then | |
1939 | eval "DEFAULT_$LINE" | |
1940 | else | |
1941 | no_cache=1 | |
1942 | fi | |
1943 | ||
ba875e66 | 1944 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
a0b9e27f MB |
1945 | |
1946 | fi | |
d8356fa3 VZ |
1947 | |
1948 | ||
ba875e66 | 1949 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1950 | if test "$no_cache" != 1; then |
ba875e66 | 1951 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1952 | fi |
1953 | ||
1954 | if test "$wxUSE_NANOX" = yes; then | |
a0b9e27f | 1955 | echo "$ac_t""yes" 1>&6 |
d8356fa3 | 1956 | else |
a0b9e27f | 1957 | echo "$ac_t""no" 1>&6 |
d8356fa3 | 1958 | fi |
a0b9e27f | 1959 | |
8284b0c5 | 1960 | |
d74f4b5a | 1961 | |
5005acfe VZ |
1962 | enablestring= |
1963 | echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6 | |
ac0c4cc3 | 1964 | echo "configure:1965: checking for --${enablestring:-enable}-gtk2" >&5 |
d74f4b5a VZ |
1965 | no_cache=0 |
1966 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
1967 | if test "${enable_gtk2+set}" = set; then |
1968 | enableval="$enable_gtk2" | |
a0b9e27f | 1969 | |
d74f4b5a VZ |
1970 | if test "$enableval" = yes; then |
1971 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
1972 | else | |
1973 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
1974 | fi | |
a0b9e27f | 1975 | |
10f2d63a | 1976 | else |
a0b9e27f | 1977 | |
d74f4b5a VZ |
1978 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
1979 | if test "x$LINE" != x ; then | |
1980 | eval "DEFAULT_$LINE" | |
1981 | else | |
1982 | no_cache=1 | |
1983 | fi | |
1984 | ||
1985 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
a0b9e27f MB |
1986 | |
1987 | fi | |
52127426 | 1988 | |
328a083c | 1989 | |
d74f4b5a VZ |
1990 | eval "$ac_cv_use_gtk2" |
1991 | if test "$no_cache" != 1; then | |
1992 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
1993 | fi | |
1994 | ||
1995 | if test "$wxUSE_GTK2" = yes; then | |
a0b9e27f | 1996 | echo "$ac_t""yes" 1>&6 |
d74f4b5a | 1997 | else |
a0b9e27f | 1998 | echo "$ac_t""no" 1>&6 |
d74f4b5a | 1999 | fi |
a0b9e27f | 2000 | |
d74f4b5a | 2001 | |
5c6fa7d2 | 2002 | |
a0b9e27f | 2003 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
ac0c4cc3 | 2004 | echo "configure:2005: checking for --with-libpng" >&5 |
8284b0c5 | 2005 | no_cache=0 |
a0b9e27f | 2006 | # Check whether --with-libpng or --without-libpng was given. |
b12915c1 VZ |
2007 | if test "${with_libpng+set}" = set; then |
2008 | withval="$with_libpng" | |
a0b9e27f | 2009 | |
10f2d63a | 2010 | if test "$withval" = yes; then |
b12915c1 | 2011 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2012 | elif test "$withval" = no; then |
b12915c1 | 2013 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2014 | elif test "$withval" = sys; then |
2015 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2016 | elif test "$withval" = builtin; then |
2017 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2018 | else |
a0b9e27f | 2019 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2020 | fi |
a0b9e27f | 2021 | |
10f2d63a | 2022 | else |
a0b9e27f | 2023 | |
b12915c1 | 2024 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2025 | if test "x$LINE" != x ; then |
2026 | eval "DEFAULT_$LINE" | |
2027 | else | |
2028 | no_cache=1 | |
2029 | fi | |
2030 | ||
b12915c1 | 2031 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
a0b9e27f MB |
2032 | |
2033 | fi | |
10f2d63a VZ |
2034 | |
2035 | ||
b12915c1 | 2036 | eval "$ac_cv_use_libpng" |
10f2d63a | 2037 | if test "$no_cache" != 1; then |
b12915c1 | 2038 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2039 | fi |
2040 | ||
b12915c1 | 2041 | if test "$wxUSE_LIBPNG" = yes; then |
a0b9e27f | 2042 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2043 | elif test "$wxUSE_LIBPNG" = no; then |
a0b9e27f | 2044 | echo "$ac_t""no" 1>&6 |
422107f9 | 2045 | elif test "$wxUSE_LIBPNG" = sys; then |
a0b9e27f | 2046 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2047 | elif test "$wxUSE_LIBPNG" = builtin; then |
a0b9e27f | 2048 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2049 | else |
a0b9e27f | 2050 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2051 | fi |
a0b9e27f | 2052 | |
10f2d63a | 2053 | |
a0b9e27f | 2054 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
ac0c4cc3 | 2055 | echo "configure:2056: checking for --with-libjpeg" >&5 |
10f2d63a | 2056 | no_cache=0 |
a0b9e27f | 2057 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2058 | if test "${with_libjpeg+set}" = set; then |
2059 | withval="$with_libjpeg" | |
a0b9e27f | 2060 | |
10f2d63a | 2061 | if test "$withval" = yes; then |
b12915c1 | 2062 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2063 | elif test "$withval" = no; then |
b12915c1 | 2064 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2065 | elif test "$withval" = sys; then |
2066 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2067 | elif test "$withval" = builtin; then |
2068 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2069 | else |
a0b9e27f | 2070 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2071 | fi |
a0b9e27f | 2072 | |
10f2d63a | 2073 | else |
a0b9e27f | 2074 | |
b12915c1 | 2075 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2076 | if test "x$LINE" != x ; then |
2077 | eval "DEFAULT_$LINE" | |
2078 | else | |
2079 | no_cache=1 | |
2080 | fi | |
2081 | ||
b12915c1 | 2082 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
a0b9e27f MB |
2083 | |
2084 | fi | |
10f2d63a VZ |
2085 | |
2086 | ||
b12915c1 | 2087 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2088 | if test "$no_cache" != 1; then |
b12915c1 | 2089 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2090 | fi |
2091 | ||
b12915c1 | 2092 | if test "$wxUSE_LIBJPEG" = yes; then |
a0b9e27f | 2093 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2094 | elif test "$wxUSE_LIBJPEG" = no; then |
a0b9e27f | 2095 | echo "$ac_t""no" 1>&6 |
422107f9 | 2096 | elif test "$wxUSE_LIBJPEG" = sys; then |
a0b9e27f | 2097 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2098 | elif test "$wxUSE_LIBJPEG" = builtin; then |
a0b9e27f | 2099 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2100 | else |
a0b9e27f | 2101 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2102 | fi |
a0b9e27f | 2103 | |
10f2d63a | 2104 | |
a0b9e27f | 2105 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
ac0c4cc3 | 2106 | echo "configure:2107: checking for --with-libtiff" >&5 |
10f2d63a | 2107 | no_cache=0 |
a0b9e27f | 2108 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2109 | if test "${with_libtiff+set}" = set; then |
2110 | withval="$with_libtiff" | |
a0b9e27f | 2111 | |
10f2d63a | 2112 | if test "$withval" = yes; then |
b12915c1 | 2113 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2114 | elif test "$withval" = no; then |
b12915c1 | 2115 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2116 | elif test "$withval" = sys; then |
2117 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2118 | elif test "$withval" = builtin; then |
2119 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2120 | else |
a0b9e27f | 2121 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2122 | fi |
a0b9e27f | 2123 | |
10f2d63a | 2124 | else |
a0b9e27f | 2125 | |
b12915c1 | 2126 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2127 | if test "x$LINE" != x ; then |
2128 | eval "DEFAULT_$LINE" | |
2129 | else | |
2130 | no_cache=1 | |
2131 | fi | |
2132 | ||
b12915c1 | 2133 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
a0b9e27f MB |
2134 | |
2135 | fi | |
10f2d63a VZ |
2136 | |
2137 | ||
b12915c1 | 2138 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2139 | if test "$no_cache" != 1; then |
b12915c1 | 2140 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2141 | fi |
2142 | ||
b12915c1 | 2143 | if test "$wxUSE_LIBTIFF" = yes; then |
a0b9e27f | 2144 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2145 | elif test "$wxUSE_LIBTIFF" = no; then |
a0b9e27f | 2146 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2147 | elif test "$wxUSE_LIBTIFF" = sys; then |
a0b9e27f | 2148 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2149 | elif test "$wxUSE_LIBTIFF" = builtin; then |
a0b9e27f | 2150 | echo "$ac_t""builtin version" 1>&6 |
0dcf9893 | 2151 | else |
a0b9e27f | 2152 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2153 | fi |
a0b9e27f | 2154 | |
10f2d63a | 2155 | |
a0b9e27f | 2156 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
ac0c4cc3 | 2157 | echo "configure:2158: checking for --with-opengl" >&5 |
10f2d63a | 2158 | no_cache=0 |
a0b9e27f | 2159 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2160 | if test "${with_opengl+set}" = set; then |
2161 | withval="$with_opengl" | |
a0b9e27f | 2162 | |
10f2d63a | 2163 | if test "$withval" = yes; then |
b12915c1 | 2164 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2165 | else |
b12915c1 | 2166 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2167 | fi |
a0b9e27f | 2168 | |
10f2d63a | 2169 | else |
a0b9e27f | 2170 | |
b12915c1 | 2171 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2172 | if test "x$LINE" != x ; then |
2173 | eval "DEFAULT_$LINE" | |
2174 | else | |
2175 | no_cache=1 | |
2176 | fi | |
2177 | ||
b12915c1 | 2178 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
a0b9e27f MB |
2179 | |
2180 | fi | |
10f2d63a VZ |
2181 | |
2182 | ||
b12915c1 | 2183 | eval "$ac_cv_use_opengl" |
10f2d63a | 2184 | if test "$no_cache" != 1; then |
b12915c1 | 2185 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2186 | fi |
2187 | ||
b12915c1 | 2188 | if test "$wxUSE_OPENGL" = yes; then |
a0b9e27f | 2189 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2190 | else |
a0b9e27f | 2191 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2192 | fi |
a0b9e27f | 2193 | |
10f2d63a | 2194 | |
b12915c1 VZ |
2195 | fi |
2196 | ||
5c6fa7d2 | 2197 | |
a0b9e27f | 2198 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
ac0c4cc3 | 2199 | echo "configure:2200: checking for --with-dmalloc" >&5 |
8284b0c5 | 2200 | no_cache=0 |
a0b9e27f | 2201 | # Check whether --with-dmalloc or --without-dmalloc was given. |
b12915c1 VZ |
2202 | if test "${with_dmalloc+set}" = set; then |
2203 | withval="$with_dmalloc" | |
a0b9e27f | 2204 | |
c7a2bf27 | 2205 | if test "$withval" = yes; then |
b12915c1 | 2206 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2207 | else |
b12915c1 | 2208 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2209 | fi |
a0b9e27f | 2210 | |
c7a2bf27 | 2211 | else |
a0b9e27f | 2212 | |
b12915c1 | 2213 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2214 | if test "x$LINE" != x ; then |
2215 | eval "DEFAULT_$LINE" | |
2216 | else | |
2217 | no_cache=1 | |
2218 | fi | |
2219 | ||
b12915c1 | 2220 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
a0b9e27f MB |
2221 | |
2222 | fi | |
c7a2bf27 RR |
2223 | |
2224 | ||
b12915c1 | 2225 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2226 | if test "$no_cache" != 1; then |
b12915c1 | 2227 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2228 | fi |
2229 | ||
b12915c1 | 2230 | if test "$wxUSE_DMALLOC" = yes; then |
a0b9e27f | 2231 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2232 | else |
a0b9e27f | 2233 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2234 | fi |
a0b9e27f | 2235 | |
c7a2bf27 | 2236 | |
a0b9e27f | 2237 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
ac0c4cc3 | 2238 | echo "configure:2239: checking for --with-regex" >&5 |
3e44f09d | 2239 | no_cache=0 |
a0b9e27f | 2240 | # Check whether --with-regex or --without-regex was given. |
3e44f09d VZ |
2241 | if test "${with_regex+set}" = set; then |
2242 | withval="$with_regex" | |
a0b9e27f | 2243 | |
3e44f09d VZ |
2244 | if test "$withval" = yes; then |
2245 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2246 | elif test "$withval" = no; then | |
2247 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2248 | elif test "$withval" = sys; then | |
2249 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2250 | elif test "$withval" = builtin; then |
2251 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2252 | else |
a0b9e27f | 2253 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2254 | fi |
a0b9e27f | 2255 | |
3e44f09d | 2256 | else |
a0b9e27f | 2257 | |
3e44f09d VZ |
2258 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2259 | if test "x$LINE" != x ; then | |
2260 | eval "DEFAULT_$LINE" | |
2261 | else | |
2262 | no_cache=1 | |
2263 | fi | |
2264 | ||
2265 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
a0b9e27f MB |
2266 | |
2267 | fi | |
3e44f09d VZ |
2268 | |
2269 | ||
2270 | eval "$ac_cv_use_regex" | |
2271 | if test "$no_cache" != 1; then | |
2272 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2273 | fi | |
2274 | ||
2275 | if test "$wxUSE_REGEX" = yes; then | |
a0b9e27f | 2276 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 2277 | elif test "$wxUSE_REGEX" = no; then |
a0b9e27f | 2278 | echo "$ac_t""no" 1>&6 |
3e44f09d | 2279 | elif test "$wxUSE_REGEX" = sys; then |
a0b9e27f | 2280 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2281 | elif test "$wxUSE_REGEX" = builtin; then |
a0b9e27f | 2282 | echo "$ac_t""builtin version" 1>&6 |
3e44f09d | 2283 | else |
a0b9e27f | 2284 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2285 | fi |
a0b9e27f | 2286 | |
3e44f09d | 2287 | |
a0b9e27f | 2288 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
ac0c4cc3 | 2289 | echo "configure:2290: checking for --with-zlib" >&5 |
10f2d63a | 2290 | no_cache=0 |
a0b9e27f | 2291 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2292 | if test "${with_zlib+set}" = set; then |
2293 | withval="$with_zlib" | |
a0b9e27f | 2294 | |
10f2d63a | 2295 | if test "$withval" = yes; then |
b12915c1 | 2296 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2297 | elif test "$withval" = no; then |
b12915c1 | 2298 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2299 | elif test "$withval" = sys; then |
2300 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2301 | elif test "$withval" = builtin; then |
2302 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2303 | else |
a0b9e27f | 2304 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2305 | fi |
a0b9e27f | 2306 | |
10f2d63a | 2307 | else |
a0b9e27f | 2308 | |
b12915c1 | 2309 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2310 | if test "x$LINE" != x ; then |
2311 | eval "DEFAULT_$LINE" | |
2312 | else | |
2313 | no_cache=1 | |
2314 | fi | |
2315 | ||
b12915c1 | 2316 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
a0b9e27f MB |
2317 | |
2318 | fi | |
10f2d63a VZ |
2319 | |
2320 | ||
b12915c1 | 2321 | eval "$ac_cv_use_zlib" |
10f2d63a | 2322 | if test "$no_cache" != 1; then |
b12915c1 | 2323 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2324 | fi |
2325 | ||
b12915c1 | 2326 | if test "$wxUSE_ZLIB" = yes; then |
a0b9e27f | 2327 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2328 | elif test "$wxUSE_ZLIB" = no; then |
a0b9e27f | 2329 | echo "$ac_t""no" 1>&6 |
422107f9 | 2330 | elif test "$wxUSE_ZLIB" = sys; then |
a0b9e27f | 2331 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2332 | elif test "$wxUSE_ZLIB" = builtin; then |
a0b9e27f | 2333 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2334 | else |
a0b9e27f | 2335 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2336 | fi |
a0b9e27f | 2337 | |
10f2d63a | 2338 | |
a0b9e27f | 2339 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
ac0c4cc3 | 2340 | echo "configure:2341: checking for --with-odbc" >&5 |
10f2d63a | 2341 | no_cache=0 |
a0b9e27f | 2342 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2343 | if test "${with_odbc+set}" = set; then |
2344 | withval="$with_odbc" | |
a0b9e27f | 2345 | |
10f2d63a VZ |
2346 | if test "$withval" = yes; then |
2347 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2348 | else | |
2349 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2350 | fi | |
a0b9e27f | 2351 | |
10f2d63a | 2352 | else |
a0b9e27f | 2353 | |
10f2d63a VZ |
2354 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2355 | if test "x$LINE" != x ; then | |
2356 | eval "DEFAULT_$LINE" | |
2357 | else | |
2358 | no_cache=1 | |
2359 | fi | |
2360 | ||
2361 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
a0b9e27f MB |
2362 | |
2363 | fi | |
10f2d63a VZ |
2364 | |
2365 | ||
2366 | eval "$ac_cv_use_odbc" | |
2367 | if test "$no_cache" != 1; then | |
2368 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2369 | fi | |
2370 | ||
2371 | if test "$wxUSE_ODBC" = yes; then | |
a0b9e27f | 2372 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2373 | else |
a0b9e27f | 2374 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2375 | fi |
a0b9e27f | 2376 | |
52127426 | 2377 | |
8284b0c5 MB |
2378 | |
2379 | ||
5005acfe VZ |
2380 | enablestring= |
2381 | echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6 | |
ac0c4cc3 | 2382 | echo "configure:2383: checking for --${enablestring:-enable}-shared" >&5 |
10f2d63a VZ |
2383 | no_cache=0 |
2384 | # Check whether --enable-shared or --disable-shared was given. | |
2385 | if test "${enable_shared+set}" = set; then | |
2386 | enableval="$enable_shared" | |
a0b9e27f | 2387 | |
10f2d63a VZ |
2388 | if test "$enableval" = yes; then |
2389 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2390 | else | |
2391 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2392 | fi | |
a0b9e27f | 2393 | |
10f2d63a | 2394 | else |
a0b9e27f | 2395 | |
10f2d63a VZ |
2396 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2397 | if test "x$LINE" != x ; then | |
2398 | eval "DEFAULT_$LINE" | |
2399 | else | |
2400 | no_cache=1 | |
2401 | fi | |
2402 | ||
2403 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
a0b9e27f MB |
2404 | |
2405 | fi | |
10f2d63a VZ |
2406 | |
2407 | ||
2408 | eval "$ac_cv_use_shared" | |
2409 | if test "$no_cache" != 1; then | |
2410 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2411 | fi | |
2412 | ||
2413 | if test "$wxUSE_SHARED" = yes; then | |
a0b9e27f | 2414 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2415 | else |
a0b9e27f | 2416 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2417 | fi |
a0b9e27f | 2418 | |
10f2d63a | 2419 | |
5005acfe VZ |
2420 | enablestring= |
2421 | echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6 | |
ac0c4cc3 | 2422 | echo "configure:2423: checking for --${enablestring:-enable}-soname" >&5 |
00cf1208 | 2423 | no_cache=0 |
3a922bb4 RL |
2424 | # Check whether --enable-soname or --disable-soname was given. |
2425 | if test "${enable_soname+set}" = set; then | |
2426 | enableval="$enable_soname" | |
a0b9e27f | 2427 | |
00cf1208 | 2428 | if test "$enableval" = yes; then |
3a922bb4 | 2429 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2430 | else |
3a922bb4 | 2431 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2432 | fi |
a0b9e27f | 2433 | |
00cf1208 | 2434 | else |
a0b9e27f | 2435 | |
3a922bb4 | 2436 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2437 | if test "x$LINE" != x ; then |
2438 | eval "DEFAULT_$LINE" | |
2439 | else | |
2440 | no_cache=1 | |
2441 | fi | |
2442 | ||
3a922bb4 | 2443 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
a0b9e27f MB |
2444 | |
2445 | fi | |
00cf1208 RR |
2446 | |
2447 | ||
3a922bb4 | 2448 | eval "$ac_cv_use_soname" |
00cf1208 | 2449 | if test "$no_cache" != 1; then |
3a922bb4 | 2450 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2451 | fi |
2452 | ||
3a922bb4 | 2453 | if test "$wxUSE_SONAME" = yes; then |
a0b9e27f | 2454 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2455 | else |
a0b9e27f | 2456 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2457 | fi |
a0b9e27f | 2458 | |
00cf1208 | 2459 | |
5005acfe VZ |
2460 | enablestring= |
2461 | echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6 | |
ac0c4cc3 | 2462 | echo "configure:2463: checking for --${enablestring:-enable}-optimise" >&5 |
10f2d63a VZ |
2463 | no_cache=0 |
2464 | # Check whether --enable-optimise or --disable-optimise was given. | |
2465 | if test "${enable_optimise+set}" = set; then | |
2466 | enableval="$enable_optimise" | |
a0b9e27f | 2467 | |
10f2d63a VZ |
2468 | if test "$enableval" = yes; then |
2469 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2470 | else | |
2471 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2472 | fi | |
a0b9e27f | 2473 | |
10f2d63a | 2474 | else |
a0b9e27f | 2475 | |
10f2d63a VZ |
2476 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2477 | if test "x$LINE" != x ; then | |
2478 | eval "DEFAULT_$LINE" | |
2479 | else | |
2480 | no_cache=1 | |
2481 | fi | |
2482 | ||
2483 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
a0b9e27f MB |
2484 | |
2485 | fi | |
10f2d63a VZ |
2486 | |
2487 | ||
2488 | eval "$ac_cv_use_optimise" | |
2489 | if test "$no_cache" != 1; then | |
2490 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2491 | fi | |
2492 | ||
2493 | if test "$wxUSE_OPTIMISE" = yes; then | |
a0b9e27f | 2494 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2495 | else |
a0b9e27f | 2496 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2497 | fi |
a0b9e27f | 2498 | |
10f2d63a | 2499 | |
5005acfe VZ |
2500 | enablestring= |
2501 | echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6 | |
ac0c4cc3 | 2502 | echo "configure:2503: checking for --${enablestring:-enable}-debug" >&5 |
10f2d63a VZ |
2503 | no_cache=0 |
2504 | # Check whether --enable-debug or --disable-debug was given. | |
2505 | if test "${enable_debug+set}" = set; then | |
2506 | enableval="$enable_debug" | |
a0b9e27f | 2507 | |
10f2d63a VZ |
2508 | if test "$enableval" = yes; then |
2509 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2510 | else | |
2511 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2512 | fi | |
a0b9e27f | 2513 | |
10f2d63a | 2514 | else |
a0b9e27f | 2515 | |
10f2d63a VZ |
2516 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2517 | if test "x$LINE" != x ; then | |
2518 | eval "DEFAULT_$LINE" | |
2519 | else | |
2520 | no_cache=1 | |
2521 | fi | |
2522 | ||
2523 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
a0b9e27f MB |
2524 | |
2525 | fi | |
10f2d63a VZ |
2526 | |
2527 | ||
2528 | eval "$ac_cv_use_debug" | |
2529 | if test "$no_cache" != 1; then | |
2530 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2531 | fi | |
2532 | ||
2533 | if test "$wxUSE_DEBUG" = yes; then | |
a0b9e27f | 2534 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2535 | else |
a0b9e27f | 2536 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2537 | fi |
a0b9e27f | 2538 | |
52127426 | 2539 | |
8284b0c5 | 2540 | |
5005acfe VZ |
2541 | enablestring= |
2542 | echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6 | |
ac0c4cc3 | 2543 | echo "configure:2544: checking for --${enablestring:-enable}-precomp" >&5 |
683dccda GD |
2544 | no_cache=0 |
2545 | # Check whether --enable-precomp or --disable-precomp was given. | |
2546 | if test "${enable_precomp+set}" = set; then | |
2547 | enableval="$enable_precomp" | |
a0b9e27f | 2548 | |
683dccda GD |
2549 | if test "$enableval" = yes; then |
2550 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2551 | else | |
2552 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2553 | fi | |
a0b9e27f | 2554 | |
683dccda | 2555 | else |
a0b9e27f | 2556 | |
683dccda GD |
2557 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` |
2558 | if test "x$LINE" != x ; then | |
2559 | eval "DEFAULT_$LINE" | |
2560 | else | |
2561 | no_cache=1 | |
2562 | fi | |
2563 | ||
2564 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
a0b9e27f MB |
2565 | |
2566 | fi | |
683dccda GD |
2567 | |
2568 | ||
2569 | eval "$ac_cv_use_precomp" | |
2570 | if test "$no_cache" != 1; then | |
2571 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2572 | fi | |
2573 | ||
2574 | if test "$wxUSE_PRECOMP" = yes; then | |
a0b9e27f | 2575 | echo "$ac_t""yes" 1>&6 |
683dccda | 2576 | else |
a0b9e27f | 2577 | echo "$ac_t""no" 1>&6 |
683dccda | 2578 | fi |
a0b9e27f | 2579 | |
683dccda | 2580 | |
10f2d63a VZ |
2581 | if test "$wxUSE_DEBUG" = "yes"; then |
2582 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2583 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2584 | elif test "$wxUSE_DEBUG" = "no"; then | |
2585 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2586 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2587 | fi | |
2588 | ||
8284b0c5 | 2589 | |
5005acfe VZ |
2590 | enablestring= |
2591 | echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6 | |
ac0c4cc3 | 2592 | echo "configure:2593: checking for --${enablestring:-enable}-debug_flag" >&5 |
10f2d63a VZ |
2593 | no_cache=0 |
2594 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2595 | if test "${enable_debug_flag+set}" = set; then | |
2596 | enableval="$enable_debug_flag" | |
a0b9e27f | 2597 | |
10f2d63a VZ |
2598 | if test "$enableval" = yes; then |
2599 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2600 | else | |
2601 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2602 | fi | |
a0b9e27f | 2603 | |
10f2d63a | 2604 | else |
a0b9e27f | 2605 | |
10f2d63a VZ |
2606 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2607 | if test "x$LINE" != x ; then | |
2608 | eval "DEFAULT_$LINE" | |
2609 | else | |
2610 | no_cache=1 | |
2611 | fi | |
2612 | ||
2613 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
a0b9e27f MB |
2614 | |
2615 | fi | |
10f2d63a VZ |
2616 | |
2617 | ||
2618 | eval "$ac_cv_use_debug_flag" | |
2619 | if test "$no_cache" != 1; then | |
2620 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2621 | fi | |
2622 | ||
2623 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
a0b9e27f | 2624 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2625 | else |
a0b9e27f | 2626 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2627 | fi |
a0b9e27f | 2628 | |
10f2d63a | 2629 | |
5005acfe VZ |
2630 | enablestring= |
2631 | echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6 | |
ac0c4cc3 | 2632 | echo "configure:2633: checking for --${enablestring:-enable}-debug_info" >&5 |
10f2d63a VZ |
2633 | no_cache=0 |
2634 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2635 | if test "${enable_debug_info+set}" = set; then | |
2636 | enableval="$enable_debug_info" | |
a0b9e27f | 2637 | |
10f2d63a VZ |
2638 | if test "$enableval" = yes; then |
2639 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2640 | else | |
2641 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2642 | fi | |
a0b9e27f | 2643 | |
10f2d63a | 2644 | else |
a0b9e27f | 2645 | |
10f2d63a VZ |
2646 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2647 | if test "x$LINE" != x ; then | |
2648 | eval "DEFAULT_$LINE" | |
2649 | else | |
2650 | no_cache=1 | |
2651 | fi | |
2652 | ||
2653 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
a0b9e27f MB |
2654 | |
2655 | fi | |
10f2d63a VZ |
2656 | |
2657 | ||
2658 | eval "$ac_cv_use_debug_info" | |
2659 | if test "$no_cache" != 1; then | |
2660 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2661 | fi | |
2662 | ||
2663 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
a0b9e27f | 2664 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2665 | else |
a0b9e27f | 2666 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2667 | fi |
a0b9e27f | 2668 | |
10f2d63a | 2669 | |
5005acfe VZ |
2670 | enablestring= |
2671 | echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6 | |
ac0c4cc3 | 2672 | echo "configure:2673: checking for --${enablestring:-enable}-debug_gdb" >&5 |
10f2d63a VZ |
2673 | no_cache=0 |
2674 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2675 | if test "${enable_debug_gdb+set}" = set; then | |
2676 | enableval="$enable_debug_gdb" | |
a0b9e27f | 2677 | |
10f2d63a VZ |
2678 | if test "$enableval" = yes; then |
2679 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2680 | else | |
2681 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2682 | fi | |
a0b9e27f | 2683 | |
10f2d63a | 2684 | else |
a0b9e27f | 2685 | |
10f2d63a VZ |
2686 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2687 | if test "x$LINE" != x ; then | |
2688 | eval "DEFAULT_$LINE" | |
2689 | else | |
2690 | no_cache=1 | |
2691 | fi | |
2692 | ||
2693 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
a0b9e27f MB |
2694 | |
2695 | fi | |
10f2d63a VZ |
2696 | |
2697 | ||
2698 | eval "$ac_cv_use_debug_gdb" | |
2699 | if test "$no_cache" != 1; then | |
2700 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2701 | fi | |
2702 | ||
2703 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
a0b9e27f | 2704 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2705 | else |
a0b9e27f | 2706 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2707 | fi |
a0b9e27f | 2708 | |
10f2d63a | 2709 | |
5005acfe VZ |
2710 | enablestring= |
2711 | echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6 | |
ac0c4cc3 | 2712 | echo "configure:2713: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
10f2d63a VZ |
2713 | no_cache=0 |
2714 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2715 | if test "${enable_debug_cntxt+set}" = set; then | |
2716 | enableval="$enable_debug_cntxt" | |
a0b9e27f | 2717 | |
10f2d63a VZ |
2718 | if test "$enableval" = yes; then |
2719 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2720 | else | |
2721 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2722 | fi | |
a0b9e27f | 2723 | |
10f2d63a | 2724 | else |
a0b9e27f | 2725 | |
10f2d63a VZ |
2726 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2727 | if test "x$LINE" != x ; then | |
2728 | eval "DEFAULT_$LINE" | |
2729 | else | |
2730 | no_cache=1 | |
2731 | fi | |
2732 | ||
2733 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
a0b9e27f MB |
2734 | |
2735 | fi | |
10f2d63a VZ |
2736 | |
2737 | ||
2738 | eval "$ac_cv_use_debug_cntxt" | |
2739 | if test "$no_cache" != 1; then | |
2740 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2741 | fi | |
2742 | ||
2743 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
a0b9e27f | 2744 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2745 | else |
a0b9e27f | 2746 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2747 | fi |
a0b9e27f | 2748 | |
10f2d63a | 2749 | |
5005acfe VZ |
2750 | enablestring= |
2751 | echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6 | |
ac0c4cc3 | 2752 | echo "configure:2753: checking for --${enablestring:-enable}-mem_tracing" >&5 |
10f2d63a VZ |
2753 | no_cache=0 |
2754 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2755 | if test "${enable_mem_tracing+set}" = set; then | |
2756 | enableval="$enable_mem_tracing" | |
a0b9e27f | 2757 | |
10f2d63a VZ |
2758 | if test "$enableval" = yes; then |
2759 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2760 | else | |
2761 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2762 | fi | |
a0b9e27f | 2763 | |
10f2d63a | 2764 | else |
a0b9e27f | 2765 | |
10f2d63a VZ |
2766 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2767 | if test "x$LINE" != x ; then | |
2768 | eval "DEFAULT_$LINE" | |
2769 | else | |
2770 | no_cache=1 | |
2771 | fi | |
2772 | ||
2773 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
a0b9e27f MB |
2774 | |
2775 | fi | |
10f2d63a VZ |
2776 | |
2777 | ||
2778 | eval "$ac_cv_use_mem_tracing" | |
2779 | if test "$no_cache" != 1; then | |
2780 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2781 | fi | |
2782 | ||
2783 | if test "$wxUSE_MEM_TRACING" = yes; then | |
a0b9e27f | 2784 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2785 | else |
a0b9e27f | 2786 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2787 | fi |
a0b9e27f | 2788 | |
10f2d63a | 2789 | |
5005acfe VZ |
2790 | enablestring= |
2791 | echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6 | |
ac0c4cc3 | 2792 | echo "configure:2793: checking for --${enablestring:-enable}-profile" >&5 |
10f2d63a VZ |
2793 | no_cache=0 |
2794 | # Check whether --enable-profile or --disable-profile was given. | |
2795 | if test "${enable_profile+set}" = set; then | |
2796 | enableval="$enable_profile" | |
a0b9e27f | 2797 | |
10f2d63a VZ |
2798 | if test "$enableval" = yes; then |
2799 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2800 | else | |
2801 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2802 | fi | |
a0b9e27f | 2803 | |
10f2d63a | 2804 | else |
a0b9e27f | 2805 | |
10f2d63a VZ |
2806 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2807 | if test "x$LINE" != x ; then | |
2808 | eval "DEFAULT_$LINE" | |
2809 | else | |
2810 | no_cache=1 | |
2811 | fi | |
2812 | ||
2813 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
a0b9e27f MB |
2814 | |
2815 | fi | |
10f2d63a VZ |
2816 | |
2817 | ||
2818 | eval "$ac_cv_use_profile" | |
2819 | if test "$no_cache" != 1; then | |
2820 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2821 | fi | |
2822 | ||
2823 | if test "$wxUSE_PROFILE" = yes; then | |
a0b9e27f | 2824 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2825 | else |
a0b9e27f | 2826 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2827 | fi |
a0b9e27f | 2828 | |
10f2d63a | 2829 | |
5005acfe VZ |
2830 | enablestring= |
2831 | echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6 | |
ac0c4cc3 | 2832 | echo "configure:2833: checking for --${enablestring:-enable}-no_rtti" >&5 |
10f2d63a VZ |
2833 | no_cache=0 |
2834 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2835 | if test "${enable_no_rtti+set}" = set; then | |
2836 | enableval="$enable_no_rtti" | |
a0b9e27f | 2837 | |
10f2d63a VZ |
2838 | if test "$enableval" = yes; then |
2839 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2840 | else | |
2841 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2842 | fi | |
a0b9e27f | 2843 | |
10f2d63a | 2844 | else |
a0b9e27f | 2845 | |
10f2d63a VZ |
2846 | LINE=`grep "wxUSE_NO_RTTI" ${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_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
a0b9e27f MB |
2854 | |
2855 | fi | |
10f2d63a VZ |
2856 | |
2857 | ||
2858 | eval "$ac_cv_use_no_rtti" | |
2859 | if test "$no_cache" != 1; then | |
2860 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2861 | fi | |
2862 | ||
2863 | if test "$wxUSE_NO_RTTI" = yes; then | |
a0b9e27f | 2864 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2865 | else |
a0b9e27f | 2866 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2867 | fi |
a0b9e27f | 2868 | |
10f2d63a | 2869 | |
5005acfe VZ |
2870 | enablestring= |
2871 | echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6 | |
ac0c4cc3 | 2872 | echo "configure:2873: checking for --${enablestring:-enable}-no_exceptions" >&5 |
10f2d63a VZ |
2873 | no_cache=0 |
2874 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2875 | if test "${enable_no_exceptions+set}" = set; then | |
2876 | enableval="$enable_no_exceptions" | |
a0b9e27f | 2877 | |
10f2d63a VZ |
2878 | if test "$enableval" = yes; then |
2879 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2880 | else | |
2881 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2882 | fi | |
a0b9e27f | 2883 | |
10f2d63a | 2884 | else |
a0b9e27f | 2885 | |
10f2d63a VZ |
2886 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2887 | if test "x$LINE" != x ; then | |
2888 | eval "DEFAULT_$LINE" | |
2889 | else | |
2890 | no_cache=1 | |
2891 | fi | |
2892 | ||
2893 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
a0b9e27f MB |
2894 | |
2895 | fi | |
10f2d63a VZ |
2896 | |
2897 | ||
2898 | eval "$ac_cv_use_no_exceptions" | |
2899 | if test "$no_cache" != 1; then | |
2900 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2901 | fi | |
2902 | ||
2903 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
a0b9e27f | 2904 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2905 | else |
a0b9e27f | 2906 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2907 | fi |
a0b9e27f | 2908 | |
10f2d63a | 2909 | |
5005acfe VZ |
2910 | enablestring= |
2911 | echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6 | |
ac0c4cc3 | 2912 | echo "configure:2913: checking for --${enablestring:-enable}-permissive" >&5 |
10f2d63a VZ |
2913 | no_cache=0 |
2914 | # Check whether --enable-permissive or --disable-permissive was given. | |
2915 | if test "${enable_permissive+set}" = set; then | |
2916 | enableval="$enable_permissive" | |
a0b9e27f | 2917 | |
10f2d63a VZ |
2918 | if test "$enableval" = yes; then |
2919 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2920 | else | |
2921 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2922 | fi | |
a0b9e27f | 2923 | |
10f2d63a | 2924 | else |
a0b9e27f | 2925 | |
10f2d63a VZ |
2926 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2927 | if test "x$LINE" != x ; then | |
2928 | eval "DEFAULT_$LINE" | |
2929 | else | |
2930 | no_cache=1 | |
2931 | fi | |
2932 | ||
2933 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
a0b9e27f MB |
2934 | |
2935 | fi | |
10f2d63a VZ |
2936 | |
2937 | ||
2938 | eval "$ac_cv_use_permissive" | |
2939 | if test "$no_cache" != 1; then | |
2940 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2941 | fi | |
2942 | ||
2943 | if test "$wxUSE_PERMISSIVE" = yes; then | |
a0b9e27f | 2944 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2945 | else |
a0b9e27f | 2946 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2947 | fi |
a0b9e27f | 2948 | |
10f2d63a | 2949 | |
5005acfe VZ |
2950 | enablestring= |
2951 | echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6 | |
ac0c4cc3 | 2952 | echo "configure:2953: checking for --${enablestring:-enable}-no_deps" >&5 |
10f2d63a VZ |
2953 | no_cache=0 |
2954 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2955 | if test "${enable_no_deps+set}" = set; then | |
2956 | enableval="$enable_no_deps" | |
a0b9e27f | 2957 | |
10f2d63a VZ |
2958 | if test "$enableval" = yes; then |
2959 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2960 | else | |
2961 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2962 | fi | |
a0b9e27f | 2963 | |
10f2d63a | 2964 | else |
a0b9e27f | 2965 | |
10f2d63a VZ |
2966 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2967 | if test "x$LINE" != x ; then | |
2968 | eval "DEFAULT_$LINE" | |
2969 | else | |
2970 | no_cache=1 | |
2971 | fi | |
2972 | ||
2973 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
a0b9e27f MB |
2974 | |
2975 | fi | |
10f2d63a VZ |
2976 | |
2977 | ||
2978 | eval "$ac_cv_use_no_deps" | |
2979 | if test "$no_cache" != 1; then | |
2980 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2981 | fi | |
2982 | ||
2983 | if test "$wxUSE_NO_DEPS" = yes; then | |
a0b9e27f | 2984 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2985 | else |
a0b9e27f | 2986 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2987 | fi |
a0b9e27f | 2988 | |
52127426 | 2989 | |
8284b0c5 | 2990 | |
5005acfe VZ |
2991 | enablestring= |
2992 | echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6 | |
ac0c4cc3 | 2993 | echo "configure:2994: checking for --${enablestring:-enable}-compat20" >&5 |
54276ccf VZ |
2994 | no_cache=0 |
2995 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2996 | if test "${enable_compat20+set}" = set; then | |
2997 | enableval="$enable_compat20" | |
a0b9e27f | 2998 | |
54276ccf VZ |
2999 | if test "$enableval" = yes; then |
3000 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
3001 | else | |
3002 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
3003 | fi | |
a0b9e27f | 3004 | |
54276ccf | 3005 | else |
a0b9e27f | 3006 | |
54276ccf VZ |
3007 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
3008 | if test "x$LINE" != x ; then | |
3009 | eval "DEFAULT_$LINE" | |
3010 | else | |
3011 | no_cache=1 | |
3012 | fi | |
3013 | ||
3014 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
a0b9e27f MB |
3015 | |
3016 | fi | |
54276ccf VZ |
3017 | |
3018 | ||
3019 | eval "$ac_cv_use_compat20" | |
3020 | if test "$no_cache" != 1; then | |
3021 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3022 | fi | |
3023 | ||
3024 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
a0b9e27f | 3025 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3026 | else |
a0b9e27f | 3027 | echo "$ac_t""no" 1>&6 |
54276ccf | 3028 | fi |
a0b9e27f | 3029 | |
54276ccf | 3030 | |
65d8ef1e | 3031 | enablestring= |
5005acfe | 3032 | echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6 |
ac0c4cc3 | 3033 | echo "configure:3034: checking for --${enablestring:-enable}-compat22" >&5 |
54276ccf VZ |
3034 | no_cache=0 |
3035 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3036 | if test "${enable_compat22+set}" = set; then | |
3037 | enableval="$enable_compat22" | |
a0b9e27f | 3038 | |
54276ccf VZ |
3039 | if test "$enableval" = yes; then |
3040 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3041 | else | |
3042 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3043 | fi | |
a0b9e27f | 3044 | |
54276ccf | 3045 | else |
a0b9e27f | 3046 | |
54276ccf VZ |
3047 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3048 | if test "x$LINE" != x ; then | |
3049 | eval "DEFAULT_$LINE" | |
3050 | else | |
3051 | no_cache=1 | |
3052 | fi | |
3053 | ||
3054 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
a0b9e27f MB |
3055 | |
3056 | fi | |
54276ccf VZ |
3057 | |
3058 | ||
3059 | eval "$ac_cv_use_compat22" | |
3060 | if test "$no_cache" != 1; then | |
3061 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3062 | fi | |
3063 | ||
3064 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
a0b9e27f | 3065 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3066 | else |
a0b9e27f | 3067 | echo "$ac_t""no" 1>&6 |
54276ccf | 3068 | fi |
a0b9e27f | 3069 | |
54276ccf | 3070 | |
65d8ef1e VS |
3071 | enablestring=disable |
3072 | echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6 | |
ac0c4cc3 | 3073 | echo "configure:3074: checking for --${enablestring:-enable}-compat24" >&5 |
65d8ef1e VS |
3074 | no_cache=0 |
3075 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
3076 | if test "${enable_compat24+set}" = set; then | |
3077 | enableval="$enable_compat24" | |
3078 | ||
3079 | if test "$enableval" = yes; then | |
3080 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
3081 | else | |
3082 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
3083 | fi | |
3084 | ||
3085 | else | |
3086 | ||
3087 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
3088 | if test "x$LINE" != x ; then | |
3089 | eval "DEFAULT_$LINE" | |
3090 | else | |
3091 | no_cache=1 | |
3092 | fi | |
3093 | ||
3094 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
3095 | ||
3096 | fi | |
3097 | ||
3098 | ||
3099 | eval "$ac_cv_use_compat24" | |
3100 | if test "$no_cache" != 1; then | |
3101 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
3102 | fi | |
3103 | ||
3104 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
3105 | echo "$ac_t""yes" 1>&6 | |
3106 | else | |
3107 | echo "$ac_t""no" 1>&6 | |
3108 | fi | |
3109 | ||
3110 | ||
3bd8fb5f RD |
3111 | # Check whether --enable-rpath or --disable-rpath was given. |
3112 | if test "${enable_rpath+set}" = set; then | |
3113 | enableval="$enable_rpath" | |
3114 | wxRPATH_DIR="$enableval" | |
a0b9e27f MB |
3115 | fi |
3116 | ||
3bd8fb5f RD |
3117 | |
3118 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3119 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3120 | fi | |
3121 | ||
8284b0c5 MB |
3122 | |
3123 | ||
3124 | ||
5005acfe VZ |
3125 | enablestring= |
3126 | echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6 | |
ac0c4cc3 | 3127 | echo "configure:3128: checking for --${enablestring:-enable}-intl" >&5 |
10f2d63a VZ |
3128 | no_cache=0 |
3129 | # Check whether --enable-intl or --disable-intl was given. | |
3130 | if test "${enable_intl+set}" = set; then | |
3131 | enableval="$enable_intl" | |
a0b9e27f | 3132 | |
10f2d63a VZ |
3133 | if test "$enableval" = yes; then |
3134 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3135 | else | |
3136 | ac_cv_use_intl='wxUSE_INTL=no' | |
3137 | fi | |
a0b9e27f | 3138 | |
10f2d63a | 3139 | else |
a0b9e27f | 3140 | |
10f2d63a VZ |
3141 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3142 | if test "x$LINE" != x ; then | |
3143 | eval "DEFAULT_$LINE" | |
3144 | else | |
3145 | no_cache=1 | |
3146 | fi | |
3147 | ||
3148 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
a0b9e27f MB |
3149 | |
3150 | fi | |
10f2d63a VZ |
3151 | |
3152 | ||
3153 | eval "$ac_cv_use_intl" | |
3154 | if test "$no_cache" != 1; then | |
3155 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3156 | fi | |
3157 | ||
3158 | if test "$wxUSE_INTL" = yes; then | |
a0b9e27f | 3159 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3160 | else |
a0b9e27f | 3161 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3162 | fi |
a0b9e27f | 3163 | |
10f2d63a | 3164 | |
5005acfe VZ |
3165 | enablestring= |
3166 | echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6 | |
ac0c4cc3 | 3167 | echo "configure:3168: checking for --${enablestring:-enable}-config" >&5 |
10f2d63a VZ |
3168 | no_cache=0 |
3169 | # Check whether --enable-config or --disable-config was given. | |
3170 | if test "${enable_config+set}" = set; then | |
3171 | enableval="$enable_config" | |
a0b9e27f | 3172 | |
10f2d63a VZ |
3173 | if test "$enableval" = yes; then |
3174 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3175 | else | |
3176 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3177 | fi | |
a0b9e27f | 3178 | |
10f2d63a | 3179 | else |
a0b9e27f | 3180 | |
10f2d63a VZ |
3181 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3182 | if test "x$LINE" != x ; then | |
3183 | eval "DEFAULT_$LINE" | |
3184 | else | |
3185 | no_cache=1 | |
3186 | fi | |
3187 | ||
3188 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
a0b9e27f MB |
3189 | |
3190 | fi | |
10f2d63a VZ |
3191 | |
3192 | ||
3193 | eval "$ac_cv_use_config" | |
3194 | if test "$no_cache" != 1; then | |
3195 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3196 | fi | |
3197 | ||
3198 | if test "$wxUSE_CONFIG" = yes; then | |
a0b9e27f | 3199 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3200 | else |
a0b9e27f | 3201 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3202 | fi |
a0b9e27f | 3203 | |
52127426 | 3204 | |
8284b0c5 | 3205 | |
5005acfe VZ |
3206 | enablestring= |
3207 | echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6 | |
ac0c4cc3 | 3208 | echo "configure:3209: checking for --${enablestring:-enable}-protocols" >&5 |
a1622950 VZ |
3209 | no_cache=0 |
3210 | # Check whether --enable-protocols or --disable-protocols was given. | |
3211 | if test "${enable_protocols+set}" = set; then | |
3212 | enableval="$enable_protocols" | |
a0b9e27f | 3213 | |
a1622950 VZ |
3214 | if test "$enableval" = yes; then |
3215 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3216 | else | |
3217 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3218 | fi | |
a0b9e27f | 3219 | |
a1622950 | 3220 | else |
a0b9e27f | 3221 | |
a1622950 VZ |
3222 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3223 | if test "x$LINE" != x ; then | |
3224 | eval "DEFAULT_$LINE" | |
3225 | else | |
3226 | no_cache=1 | |
3227 | fi | |
3228 | ||
3229 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
3230 | |
3231 | fi | |
a1622950 VZ |
3232 | |
3233 | ||
3234 | eval "$ac_cv_use_protocols" | |
3235 | if test "$no_cache" != 1; then | |
3236 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3237 | fi | |
3238 | ||
3239 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 3240 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3241 | else |
a0b9e27f | 3242 | echo "$ac_t""no" 1>&6 |
a1622950 | 3243 | fi |
a0b9e27f | 3244 | |
a1622950 | 3245 | |
5005acfe VZ |
3246 | enablestring= |
3247 | echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6 | |
ac0c4cc3 | 3248 | echo "configure:3249: checking for --${enablestring:-enable}-ftp" >&5 |
a1622950 VZ |
3249 | no_cache=0 |
3250 | # Check whether --enable-ftp or --disable-ftp was given. | |
3251 | if test "${enable_ftp+set}" = set; then | |
3252 | enableval="$enable_ftp" | |
a0b9e27f | 3253 | |
a1622950 VZ |
3254 | if test "$enableval" = yes; then |
3255 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3256 | else | |
3257 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3258 | fi | |
a0b9e27f | 3259 | |
a1622950 | 3260 | else |
a0b9e27f | 3261 | |
a1622950 VZ |
3262 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3263 | if test "x$LINE" != x ; then | |
3264 | eval "DEFAULT_$LINE" | |
3265 | else | |
3266 | no_cache=1 | |
3267 | fi | |
3268 | ||
3269 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
3270 | |
3271 | fi | |
a1622950 VZ |
3272 | |
3273 | ||
3274 | eval "$ac_cv_use_ftp" | |
3275 | if test "$no_cache" != 1; then | |
3276 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3277 | fi | |
3278 | ||
3279 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 3280 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3281 | else |
a0b9e27f | 3282 | echo "$ac_t""no" 1>&6 |
a1622950 | 3283 | fi |
a0b9e27f | 3284 | |
a1622950 | 3285 | |
5005acfe VZ |
3286 | enablestring= |
3287 | echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6 | |
ac0c4cc3 | 3288 | echo "configure:3289: checking for --${enablestring:-enable}-http" >&5 |
a1622950 VZ |
3289 | no_cache=0 |
3290 | # Check whether --enable-http or --disable-http was given. | |
3291 | if test "${enable_http+set}" = set; then | |
3292 | enableval="$enable_http" | |
a0b9e27f | 3293 | |
a1622950 VZ |
3294 | if test "$enableval" = yes; then |
3295 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3296 | else | |
3297 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3298 | fi | |
a0b9e27f | 3299 | |
a1622950 | 3300 | else |
a0b9e27f | 3301 | |
a1622950 VZ |
3302 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3303 | if test "x$LINE" != x ; then | |
3304 | eval "DEFAULT_$LINE" | |
3305 | else | |
3306 | no_cache=1 | |
3307 | fi | |
3308 | ||
3309 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
3310 | |
3311 | fi | |
a1622950 VZ |
3312 | |
3313 | ||
3314 | eval "$ac_cv_use_http" | |
3315 | if test "$no_cache" != 1; then | |
3316 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3317 | fi | |
3318 | ||
3319 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 3320 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3321 | else |
a0b9e27f | 3322 | echo "$ac_t""no" 1>&6 |
a1622950 | 3323 | fi |
a0b9e27f | 3324 | |
a1622950 | 3325 | |
5005acfe VZ |
3326 | enablestring= |
3327 | echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6 | |
ac0c4cc3 | 3328 | echo "configure:3329: checking for --${enablestring:-enable}-fileproto" >&5 |
a1622950 VZ |
3329 | no_cache=0 |
3330 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3331 | if test "${enable_fileproto+set}" = set; then | |
3332 | enableval="$enable_fileproto" | |
a0b9e27f | 3333 | |
a1622950 VZ |
3334 | if test "$enableval" = yes; then |
3335 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3336 | else | |
3337 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3338 | fi | |
a0b9e27f | 3339 | |
a1622950 | 3340 | else |
a0b9e27f | 3341 | |
a1622950 VZ |
3342 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
3343 | if test "x$LINE" != x ; then | |
3344 | eval "DEFAULT_$LINE" | |
3345 | else | |
3346 | no_cache=1 | |
3347 | fi | |
3348 | ||
3349 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
3350 | |
3351 | fi | |
a1622950 VZ |
3352 | |
3353 | ||
3354 | eval "$ac_cv_use_fileproto" | |
3355 | if test "$no_cache" != 1; then | |
3356 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3357 | fi | |
3358 | ||
3359 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 3360 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3361 | else |
a0b9e27f | 3362 | echo "$ac_t""no" 1>&6 |
a1622950 | 3363 | fi |
a0b9e27f | 3364 | |
a1622950 | 3365 | |
5005acfe VZ |
3366 | enablestring= |
3367 | echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6 | |
ac0c4cc3 | 3368 | echo "configure:3369: checking for --${enablestring:-enable}-sockets" >&5 |
10f2d63a VZ |
3369 | no_cache=0 |
3370 | # Check whether --enable-sockets or --disable-sockets was given. | |
3371 | if test "${enable_sockets+set}" = set; then | |
3372 | enableval="$enable_sockets" | |
a0b9e27f | 3373 | |
10f2d63a VZ |
3374 | if test "$enableval" = yes; then |
3375 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3376 | else | |
3377 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3378 | fi | |
a0b9e27f | 3379 | |
10f2d63a | 3380 | else |
a0b9e27f | 3381 | |
10f2d63a VZ |
3382 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3383 | if test "x$LINE" != x ; then | |
3384 | eval "DEFAULT_$LINE" | |
3385 | else | |
3386 | no_cache=1 | |
3387 | fi | |
3388 | ||
3389 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
a0b9e27f MB |
3390 | |
3391 | fi | |
10f2d63a VZ |
3392 | |
3393 | ||
3394 | eval "$ac_cv_use_sockets" | |
3395 | if test "$no_cache" != 1; then | |
3396 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3397 | fi | |
3398 | ||
3399 | if test "$wxUSE_SOCKETS" = yes; then | |
a0b9e27f | 3400 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3401 | else |
a0b9e27f | 3402 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3403 | fi |
a0b9e27f | 3404 | |
8284b0c5 | 3405 | |
5005acfe VZ |
3406 | enablestring= |
3407 | echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6 | |
ac0c4cc3 | 3408 | echo "configure:3409: checking for --${enablestring:-enable}-ole" >&5 |
3bce6687 JS |
3409 | no_cache=0 |
3410 | # Check whether --enable-ole or --disable-ole was given. | |
3411 | if test "${enable_ole+set}" = set; then | |
3412 | enableval="$enable_ole" | |
3413 | ||
3414 | if test "$enableval" = yes; then | |
3415 | ac_cv_use_ole='wxUSE_OLE=yes' | |
3416 | else | |
3417 | ac_cv_use_ole='wxUSE_OLE=no' | |
3418 | fi | |
3419 | ||
3420 | else | |
3421 | ||
3422 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
3423 | if test "x$LINE" != x ; then | |
3424 | eval "DEFAULT_$LINE" | |
3425 | else | |
3426 | no_cache=1 | |
3427 | fi | |
3428 | ||
3429 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3430 | ||
3431 | fi | |
3432 | ||
3433 | ||
3434 | eval "$ac_cv_use_ole" | |
3435 | if test "$no_cache" != 1; then | |
3436 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
3437 | fi | |
3438 | ||
3439 | if test "$wxUSE_OLE" = yes; then | |
3440 | echo "$ac_t""yes" 1>&6 | |
3441 | else | |
3442 | echo "$ac_t""no" 1>&6 | |
3443 | fi | |
3444 | ||
3445 | ||
5005acfe VZ |
3446 | enablestring= |
3447 | echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6 | |
ac0c4cc3 | 3448 | echo "configure:3449: checking for --${enablestring:-enable}-dataobj" >&5 |
3bce6687 JS |
3449 | no_cache=0 |
3450 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
3451 | if test "${enable_dataobj+set}" = set; then | |
3452 | enableval="$enable_dataobj" | |
3453 | ||
3454 | if test "$enableval" = yes; then | |
3455 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
3456 | else | |
3457 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
3458 | fi | |
3459 | ||
3460 | else | |
3461 | ||
3462 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
3463 | if test "x$LINE" != x ; then | |
3464 | eval "DEFAULT_$LINE" | |
3465 | else | |
3466 | no_cache=1 | |
3467 | fi | |
3468 | ||
3469 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3470 | ||
3471 | fi | |
3472 | ||
3473 | ||
3474 | eval "$ac_cv_use_dataobj" | |
3475 | if test "$no_cache" != 1; then | |
3476 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
3477 | fi | |
3478 | ||
3479 | if test "$wxUSE_DATAOBJ" = yes; then | |
3480 | echo "$ac_t""yes" 1>&6 | |
3481 | else | |
3482 | echo "$ac_t""no" 1>&6 | |
3483 | fi | |
3484 | ||
3485 | ||
52127426 | 3486 | |
5005acfe VZ |
3487 | enablestring= |
3488 | echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6 | |
ac0c4cc3 | 3489 | echo "configure:3490: checking for --${enablestring:-enable}-ipc" >&5 |
10f2d63a | 3490 | no_cache=0 |
eb4efbdc VZ |
3491 | # Check whether --enable-ipc or --disable-ipc was given. |
3492 | if test "${enable_ipc+set}" = set; then | |
3493 | enableval="$enable_ipc" | |
a0b9e27f | 3494 | |
10f2d63a | 3495 | if test "$enableval" = yes; then |
eb4efbdc | 3496 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3497 | else |
eb4efbdc | 3498 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3499 | fi |
a0b9e27f | 3500 | |
10f2d63a | 3501 | else |
a0b9e27f | 3502 | |
eb4efbdc | 3503 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3504 | if test "x$LINE" != x ; then |
3505 | eval "DEFAULT_$LINE" | |
3506 | else | |
3507 | no_cache=1 | |
3508 | fi | |
3509 | ||
eb4efbdc | 3510 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
a0b9e27f MB |
3511 | |
3512 | fi | |
10f2d63a VZ |
3513 | |
3514 | ||
eb4efbdc | 3515 | eval "$ac_cv_use_ipc" |
10f2d63a | 3516 | if test "$no_cache" != 1; then |
eb4efbdc | 3517 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3518 | fi |
3519 | ||
eb4efbdc | 3520 | if test "$wxUSE_IPC" = yes; then |
a0b9e27f | 3521 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3522 | else |
a0b9e27f | 3523 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3524 | fi |
a0b9e27f | 3525 | |
52127426 | 3526 | |
8284b0c5 | 3527 | |
5005acfe VZ |
3528 | enablestring= |
3529 | echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6 | |
ac0c4cc3 | 3530 | echo "configure:3531: checking for --${enablestring:-enable}-cmdline" >&5 |
1e6feb95 VZ |
3531 | no_cache=0 |
3532 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3533 | if test "${enable_cmdline+set}" = set; then | |
3534 | enableval="$enable_cmdline" | |
a0b9e27f | 3535 | |
1e6feb95 VZ |
3536 | if test "$enableval" = yes; then |
3537 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3538 | else | |
3539 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3540 | fi | |
a0b9e27f | 3541 | |
1e6feb95 | 3542 | else |
a0b9e27f | 3543 | |
1e6feb95 VZ |
3544 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
3545 | if test "x$LINE" != x ; then | |
3546 | eval "DEFAULT_$LINE" | |
3547 | else | |
3548 | no_cache=1 | |
3549 | fi | |
3550 | ||
3551 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
a0b9e27f MB |
3552 | |
3553 | fi | |
1e6feb95 VZ |
3554 | |
3555 | ||
3556 | eval "$ac_cv_use_cmdline" | |
3557 | if test "$no_cache" != 1; then | |
3558 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3559 | fi | |
3560 | ||
3561 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
a0b9e27f | 3562 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3563 | else |
a0b9e27f | 3564 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3565 | fi |
a0b9e27f | 3566 | |
1e6feb95 | 3567 | |
5005acfe VZ |
3568 | enablestring= |
3569 | echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6 | |
ac0c4cc3 | 3570 | echo "configure:3571: checking for --${enablestring:-enable}-datetime" >&5 |
1e6feb95 VZ |
3571 | no_cache=0 |
3572 | # Check whether --enable-datetime or --disable-datetime was given. | |
3573 | if test "${enable_datetime+set}" = set; then | |
3574 | enableval="$enable_datetime" | |
a0b9e27f | 3575 | |
1e6feb95 VZ |
3576 | if test "$enableval" = yes; then |
3577 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3578 | else | |
3579 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3580 | fi | |
a0b9e27f | 3581 | |
1e6feb95 | 3582 | else |
a0b9e27f | 3583 | |
1e6feb95 VZ |
3584 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
3585 | if test "x$LINE" != x ; then | |
3586 | eval "DEFAULT_$LINE" | |
3587 | else | |
3588 | no_cache=1 | |
3589 | fi | |
3590 | ||
3591 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
a0b9e27f MB |
3592 | |
3593 | fi | |
1e6feb95 VZ |
3594 | |
3595 | ||
3596 | eval "$ac_cv_use_datetime" | |
3597 | if test "$no_cache" != 1; then | |
3598 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3599 | fi | |
3600 | ||
3601 | if test "$wxUSE_DATETIME" = yes; then | |
a0b9e27f | 3602 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3603 | else |
a0b9e27f | 3604 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3605 | fi |
a0b9e27f | 3606 | |
1e6feb95 | 3607 | |
5005acfe VZ |
3608 | enablestring= |
3609 | echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6 | |
ac0c4cc3 | 3610 | echo "configure:3611: checking for --${enablestring:-enable}-timedate" >&5 |
1e6feb95 VZ |
3611 | no_cache=0 |
3612 | # Check whether --enable-timedate or --disable-timedate was given. | |
3613 | if test "${enable_timedate+set}" = set; then | |
3614 | enableval="$enable_timedate" | |
a0b9e27f | 3615 | |
1e6feb95 VZ |
3616 | if test "$enableval" = yes; then |
3617 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3618 | else | |
3619 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3620 | fi | |
a0b9e27f | 3621 | |
1e6feb95 | 3622 | else |
a0b9e27f | 3623 | |
1e6feb95 VZ |
3624 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` |
3625 | if test "x$LINE" != x ; then | |
3626 | eval "DEFAULT_$LINE" | |
3627 | else | |
3628 | no_cache=1 | |
3629 | fi | |
3630 | ||
3631 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
a0b9e27f MB |
3632 | |
3633 | fi | |
1e6feb95 VZ |
3634 | |
3635 | ||
3636 | eval "$ac_cv_use_timedate" | |
3637 | if test "$no_cache" != 1; then | |
3638 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3639 | fi | |
3640 | ||
3641 | if test "$wxUSE_TIMEDATE" = yes; then | |
a0b9e27f | 3642 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3643 | else |
a0b9e27f | 3644 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3645 | fi |
a0b9e27f | 3646 | |
1e6feb95 | 3647 | |
5005acfe VZ |
3648 | enablestring= |
3649 | echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6 | |
ac0c4cc3 | 3650 | echo "configure:3651: checking for --${enablestring:-enable}-stopwatch" >&5 |
1e6feb95 VZ |
3651 | no_cache=0 |
3652 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3653 | if test "${enable_stopwatch+set}" = set; then | |
3654 | enableval="$enable_stopwatch" | |
a0b9e27f | 3655 | |
1e6feb95 VZ |
3656 | if test "$enableval" = yes; then |
3657 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3658 | else | |
3659 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3660 | fi | |
a0b9e27f | 3661 | |
1e6feb95 | 3662 | else |
a0b9e27f | 3663 | |
1e6feb95 VZ |
3664 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
3665 | if test "x$LINE" != x ; then | |
3666 | eval "DEFAULT_$LINE" | |
3667 | else | |
3668 | no_cache=1 | |
3669 | fi | |
3670 | ||
3671 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
a0b9e27f MB |
3672 | |
3673 | fi | |
1e6feb95 VZ |
3674 | |
3675 | ||
3676 | eval "$ac_cv_use_stopwatch" | |
3677 | if test "$no_cache" != 1; then | |
3678 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3679 | fi | |
3680 | ||
3681 | if test "$wxUSE_STOPWATCH" = yes; then | |
a0b9e27f | 3682 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3683 | else |
a0b9e27f | 3684 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3685 | fi |
a0b9e27f | 3686 | |
1e6feb95 | 3687 | |
5005acfe VZ |
3688 | enablestring= |
3689 | echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6 | |
ac0c4cc3 | 3690 | echo "configure:3691: checking for --${enablestring:-enable}-dialupman" >&5 |
10f2d63a | 3691 | no_cache=0 |
eb4efbdc VZ |
3692 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3693 | if test "${enable_dialupman+set}" = set; then | |
3694 | enableval="$enable_dialupman" | |
a0b9e27f | 3695 | |
10f2d63a | 3696 | if test "$enableval" = yes; then |
eb4efbdc | 3697 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3698 | else |
eb4efbdc | 3699 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3700 | fi |
a0b9e27f | 3701 | |
10f2d63a | 3702 | else |
a0b9e27f | 3703 | |
eb4efbdc | 3704 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3705 | if test "x$LINE" != x ; then |
3706 | eval "DEFAULT_$LINE" | |
3707 | else | |
3708 | no_cache=1 | |
3709 | fi | |
3710 | ||
eb4efbdc | 3711 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
a0b9e27f MB |
3712 | |
3713 | fi | |
10f2d63a VZ |
3714 | |
3715 | ||
eb4efbdc | 3716 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3717 | if test "$no_cache" != 1; then |
eb4efbdc | 3718 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3719 | fi |
3720 | ||
eb4efbdc | 3721 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
a0b9e27f | 3722 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3723 | else |
a0b9e27f | 3724 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3725 | fi |
a0b9e27f | 3726 | |
10f2d63a | 3727 | |
5005acfe VZ |
3728 | enablestring= |
3729 | echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6 | |
ac0c4cc3 | 3730 | echo "configure:3731: checking for --${enablestring:-enable}-apple_ieee" >&5 |
10f2d63a VZ |
3731 | no_cache=0 |
3732 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3733 | if test "${enable_apple_ieee+set}" = set; then | |
3734 | enableval="$enable_apple_ieee" | |
a0b9e27f | 3735 | |
10f2d63a VZ |
3736 | if test "$enableval" = yes; then |
3737 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3738 | else | |
3739 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3740 | fi | |
a0b9e27f | 3741 | |
10f2d63a | 3742 | else |
a0b9e27f | 3743 | |
10f2d63a VZ |
3744 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3745 | if test "x$LINE" != x ; then | |
3746 | eval "DEFAULT_$LINE" | |
3747 | else | |
3748 | no_cache=1 | |
3749 | fi | |
3750 | ||
3751 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
a0b9e27f MB |
3752 | |
3753 | fi | |
10f2d63a VZ |
3754 | |
3755 | ||
3756 | eval "$ac_cv_use_apple_ieee" | |
3757 | if test "$no_cache" != 1; then | |
3758 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3759 | fi | |
3760 | ||
3761 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
a0b9e27f | 3762 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3763 | else |
a0b9e27f | 3764 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3765 | fi |
a0b9e27f | 3766 | |
10f2d63a | 3767 | |
5005acfe VZ |
3768 | enablestring= |
3769 | echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6 | |
ac0c4cc3 | 3770 | echo "configure:3771: checking for --${enablestring:-enable}-timer" >&5 |
10f2d63a | 3771 | no_cache=0 |
1e6feb95 VZ |
3772 | # Check whether --enable-timer or --disable-timer was given. |
3773 | if test "${enable_timer+set}" = set; then | |
3774 | enableval="$enable_timer" | |
a0b9e27f | 3775 | |
10f2d63a | 3776 | if test "$enableval" = yes; then |
1e6feb95 | 3777 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3778 | else |
1e6feb95 | 3779 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3780 | fi |
a0b9e27f | 3781 | |
10f2d63a | 3782 | else |
a0b9e27f | 3783 | |
1e6feb95 | 3784 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3785 | if test "x$LINE" != x ; then |
3786 | eval "DEFAULT_$LINE" | |
3787 | else | |
3788 | no_cache=1 | |
3789 | fi | |
3790 | ||
1e6feb95 | 3791 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
a0b9e27f MB |
3792 | |
3793 | fi | |
10f2d63a VZ |
3794 | |
3795 | ||
1e6feb95 | 3796 | eval "$ac_cv_use_timer" |
10f2d63a | 3797 | if test "$no_cache" != 1; then |
1e6feb95 | 3798 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3799 | fi |
3800 | ||
1e6feb95 | 3801 | if test "$wxUSE_TIMER" = yes; then |
a0b9e27f | 3802 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3803 | else |
a0b9e27f | 3804 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3805 | fi |
a0b9e27f | 3806 | |
10f2d63a | 3807 | |
5005acfe VZ |
3808 | enablestring= |
3809 | echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6 | |
ac0c4cc3 | 3810 | echo "configure:3811: checking for --${enablestring:-enable}-wave" >&5 |
10f2d63a VZ |
3811 | no_cache=0 |
3812 | # Check whether --enable-wave or --disable-wave was given. | |
3813 | if test "${enable_wave+set}" = set; then | |
3814 | enableval="$enable_wave" | |
a0b9e27f | 3815 | |
10f2d63a VZ |
3816 | if test "$enableval" = yes; then |
3817 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3818 | else | |
3819 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3820 | fi | |
a0b9e27f | 3821 | |
10f2d63a | 3822 | else |
a0b9e27f | 3823 | |
10f2d63a VZ |
3824 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3825 | if test "x$LINE" != x ; then | |
3826 | eval "DEFAULT_$LINE" | |
3827 | else | |
3828 | no_cache=1 | |
3829 | fi | |
3830 | ||
3831 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
a0b9e27f MB |
3832 | |
3833 | fi | |
10f2d63a VZ |
3834 | |
3835 | ||
3836 | eval "$ac_cv_use_wave" | |
3837 | if test "$no_cache" != 1; then | |
3838 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3839 | fi | |
3840 | ||
3841 | if test "$wxUSE_WAVE" = yes; then | |
a0b9e27f | 3842 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3843 | else |
a0b9e27f | 3844 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3845 | fi |
a0b9e27f | 3846 | |
10f2d63a | 3847 | |
5005acfe VZ |
3848 | enablestring= |
3849 | echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6 | |
ac0c4cc3 | 3850 | echo "configure:3851: checking for --${enablestring:-enable}-fraction" >&5 |
10f2d63a VZ |
3851 | no_cache=0 |
3852 | # Check whether --enable-fraction or --disable-fraction was given. | |
3853 | if test "${enable_fraction+set}" = set; then | |
3854 | enableval="$enable_fraction" | |
a0b9e27f | 3855 | |
10f2d63a VZ |
3856 | if test "$enableval" = yes; then |
3857 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3858 | else | |
3859 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3860 | fi | |
a0b9e27f | 3861 | |
10f2d63a | 3862 | else |
a0b9e27f | 3863 | |
10f2d63a VZ |
3864 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3865 | if test "x$LINE" != x ; then | |
3866 | eval "DEFAULT_$LINE" | |
3867 | else | |
3868 | no_cache=1 | |
3869 | fi | |
3870 | ||
3871 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
a0b9e27f MB |
3872 | |
3873 | fi | |
10f2d63a VZ |
3874 | |
3875 | ||
3876 | eval "$ac_cv_use_fraction" | |
3877 | if test "$no_cache" != 1; then | |
3878 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3879 | fi | |
3880 | ||
3881 | if test "$wxUSE_FRACTION" = yes; then | |
a0b9e27f | 3882 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3883 | else |
a0b9e27f | 3884 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3885 | fi |
a0b9e27f | 3886 | |
10f2d63a | 3887 | |
5005acfe VZ |
3888 | enablestring= |
3889 | echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6 | |
ac0c4cc3 | 3890 | echo "configure:3891: checking for --${enablestring:-enable}-dynlib" >&5 |
10f2d63a VZ |
3891 | no_cache=0 |
3892 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3893 | if test "${enable_dynlib+set}" = set; then | |
3894 | enableval="$enable_dynlib" | |
a0b9e27f | 3895 | |
10f2d63a VZ |
3896 | if test "$enableval" = yes; then |
3897 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3898 | else | |
3899 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3900 | fi | |
a0b9e27f | 3901 | |
10f2d63a | 3902 | else |
a0b9e27f | 3903 | |
10f2d63a VZ |
3904 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3905 | if test "x$LINE" != x ; then | |
3906 | eval "DEFAULT_$LINE" | |
3907 | else | |
3908 | no_cache=1 | |
3909 | fi | |
3910 | ||
3911 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
a0b9e27f MB |
3912 | |
3913 | fi | |
10f2d63a VZ |
3914 | |
3915 | ||
3916 | eval "$ac_cv_use_dynlib" | |
3917 | if test "$no_cache" != 1; then | |
3918 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3919 | fi | |
3920 | ||
3921 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
a0b9e27f | 3922 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3923 | else |
a0b9e27f | 3924 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3925 | fi |
a0b9e27f | 3926 | |
10f2d63a | 3927 | |
5005acfe VZ |
3928 | enablestring= |
3929 | echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6 | |
ac0c4cc3 | 3930 | echo "configure:3931: checking for --${enablestring:-enable}-dynamicloader" >&5 |
0b9ab0bd RL |
3931 | no_cache=0 |
3932 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3933 | if test "${enable_dynamicloader+set}" = set; then | |
3934 | enableval="$enable_dynamicloader" | |
a0b9e27f | 3935 | |
0b9ab0bd RL |
3936 | if test "$enableval" = yes; then |
3937 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3938 | else | |
3939 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3940 | fi | |
a0b9e27f | 3941 | |
0b9ab0bd | 3942 | else |
a0b9e27f | 3943 | |
0b9ab0bd RL |
3944 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
3945 | if test "x$LINE" != x ; then | |
3946 | eval "DEFAULT_$LINE" | |
3947 | else | |
3948 | no_cache=1 | |
3949 | fi | |
3950 | ||
3951 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
a0b9e27f MB |
3952 | |
3953 | fi | |
0b9ab0bd RL |
3954 | |
3955 | ||
3956 | eval "$ac_cv_use_dynamicloader" | |
3957 | if test "$no_cache" != 1; then | |
3958 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3959 | fi | |
3960 | ||
3961 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
a0b9e27f | 3962 | echo "$ac_t""yes" 1>&6 |
0b9ab0bd | 3963 | else |
a0b9e27f | 3964 | echo "$ac_t""no" 1>&6 |
0b9ab0bd | 3965 | fi |
a0b9e27f | 3966 | |
0b9ab0bd | 3967 | |
5005acfe VZ |
3968 | enablestring= |
3969 | echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6 | |
ac0c4cc3 | 3970 | echo "configure:3971: checking for --${enablestring:-enable}-longlong" >&5 |
10f2d63a VZ |
3971 | no_cache=0 |
3972 | # Check whether --enable-longlong or --disable-longlong was given. | |
3973 | if test "${enable_longlong+set}" = set; then | |
3974 | enableval="$enable_longlong" | |
a0b9e27f | 3975 | |
10f2d63a VZ |
3976 | if test "$enableval" = yes; then |
3977 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3978 | else | |
3979 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3980 | fi | |
a0b9e27f | 3981 | |
10f2d63a | 3982 | else |
a0b9e27f | 3983 | |
10f2d63a VZ |
3984 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3985 | if test "x$LINE" != x ; then | |
3986 | eval "DEFAULT_$LINE" | |
3987 | else | |
3988 | no_cache=1 | |
3989 | fi | |
3990 | ||
3991 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
a0b9e27f MB |
3992 | |
3993 | fi | |
10f2d63a VZ |
3994 | |
3995 | ||
3996 | eval "$ac_cv_use_longlong" | |
3997 | if test "$no_cache" != 1; then | |
3998 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3999 | fi | |
4000 | ||
4001 | if test "$wxUSE_LONGLONG" = yes; then | |
a0b9e27f | 4002 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4003 | else |
a0b9e27f | 4004 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4005 | fi |
a0b9e27f | 4006 | |
10f2d63a | 4007 | |
5005acfe VZ |
4008 | enablestring= |
4009 | echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6 | |
ac0c4cc3 | 4010 | echo "configure:4011: checking for --${enablestring:-enable}-geometry" >&5 |
e8f65ba6 RR |
4011 | no_cache=0 |
4012 | # Check whether --enable-geometry or --disable-geometry was given. | |
4013 | if test "${enable_geometry+set}" = set; then | |
4014 | enableval="$enable_geometry" | |
a0b9e27f | 4015 | |
e8f65ba6 RR |
4016 | if test "$enableval" = yes; then |
4017 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
4018 | else | |
4019 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
4020 | fi | |
a0b9e27f | 4021 | |
e8f65ba6 | 4022 | else |
a0b9e27f | 4023 | |
e8f65ba6 RR |
4024 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
4025 | if test "x$LINE" != x ; then | |
4026 | eval "DEFAULT_$LINE" | |
4027 | else | |
4028 | no_cache=1 | |
4029 | fi | |
4030 | ||
4031 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
a0b9e27f MB |
4032 | |
4033 | fi | |
e8f65ba6 RR |
4034 | |
4035 | ||
4036 | eval "$ac_cv_use_geometry" | |
4037 | if test "$no_cache" != 1; then | |
4038 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
4039 | fi | |
4040 | ||
4041 | if test "$wxUSE_GEOMETRY" = yes; then | |
a0b9e27f | 4042 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 4043 | else |
a0b9e27f | 4044 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 4045 | fi |
a0b9e27f | 4046 | |
e8f65ba6 | 4047 | |
5005acfe VZ |
4048 | enablestring= |
4049 | echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6 | |
ac0c4cc3 | 4050 | echo "configure:4051: checking for --${enablestring:-enable}-log" >&5 |
10f2d63a VZ |
4051 | no_cache=0 |
4052 | # Check whether --enable-log or --disable-log was given. | |
4053 | if test "${enable_log+set}" = set; then | |
4054 | enableval="$enable_log" | |
a0b9e27f | 4055 | |
10f2d63a VZ |
4056 | if test "$enableval" = yes; then |
4057 | ac_cv_use_log='wxUSE_LOG=yes' | |
4058 | else | |
4059 | ac_cv_use_log='wxUSE_LOG=no' | |
4060 | fi | |
a0b9e27f | 4061 | |
10f2d63a | 4062 | else |
a0b9e27f | 4063 | |
10f2d63a VZ |
4064 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
4065 | if test "x$LINE" != x ; then | |
4066 | eval "DEFAULT_$LINE" | |
4067 | else | |
4068 | no_cache=1 | |
4069 | fi | |
4070 | ||
4071 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
a0b9e27f MB |
4072 | |
4073 | fi | |
10f2d63a VZ |
4074 | |
4075 | ||
4076 | eval "$ac_cv_use_log" | |
4077 | if test "$no_cache" != 1; then | |
4078 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4079 | fi | |
4080 | ||
4081 | if test "$wxUSE_LOG" = yes; then | |
a0b9e27f | 4082 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4083 | else |
a0b9e27f | 4084 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4085 | fi |
a0b9e27f | 4086 | |
10f2d63a | 4087 | |
5005acfe VZ |
4088 | enablestring= |
4089 | echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6 | |
ac0c4cc3 | 4090 | echo "configure:4091: checking for --${enablestring:-enable}-streams" >&5 |
10f2d63a VZ |
4091 | no_cache=0 |
4092 | # Check whether --enable-streams or --disable-streams was given. | |
4093 | if test "${enable_streams+set}" = set; then | |
4094 | enableval="$enable_streams" | |
a0b9e27f | 4095 | |
10f2d63a VZ |
4096 | if test "$enableval" = yes; then |
4097 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4098 | else | |
4099 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4100 | fi | |
a0b9e27f | 4101 | |
10f2d63a | 4102 | else |
a0b9e27f | 4103 | |
10f2d63a VZ |
4104 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
4105 | if test "x$LINE" != x ; then | |
4106 | eval "DEFAULT_$LINE" | |
4107 | else | |
4108 | no_cache=1 | |
4109 | fi | |
4110 | ||
4111 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
a0b9e27f MB |
4112 | |
4113 | fi | |
10f2d63a VZ |
4114 | |
4115 | ||
4116 | eval "$ac_cv_use_streams" | |
4117 | if test "$no_cache" != 1; then | |
4118 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4119 | fi | |
4120 | ||
4121 | if test "$wxUSE_STREAMS" = yes; then | |
a0b9e27f | 4122 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4123 | else |
a0b9e27f | 4124 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4125 | fi |
a0b9e27f | 4126 | |
10f2d63a | 4127 | |
5005acfe VZ |
4128 | enablestring= |
4129 | echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6 | |
ac0c4cc3 | 4130 | echo "configure:4131: checking for --${enablestring:-enable}-file" >&5 |
10f2d63a VZ |
4131 | no_cache=0 |
4132 | # Check whether --enable-file or --disable-file was given. | |
4133 | if test "${enable_file+set}" = set; then | |
4134 | enableval="$enable_file" | |
a0b9e27f | 4135 | |
10f2d63a VZ |
4136 | if test "$enableval" = yes; then |
4137 | ac_cv_use_file='wxUSE_FILE=yes' | |
4138 | else | |
4139 | ac_cv_use_file='wxUSE_FILE=no' | |
4140 | fi | |
a0b9e27f | 4141 | |
10f2d63a | 4142 | else |
a0b9e27f | 4143 | |
10f2d63a VZ |
4144 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4145 | if test "x$LINE" != x ; then | |
4146 | eval "DEFAULT_$LINE" | |
4147 | else | |
4148 | no_cache=1 | |
4149 | fi | |
4150 | ||
4151 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
a0b9e27f MB |
4152 | |
4153 | fi | |
10f2d63a VZ |
4154 | |
4155 | ||
4156 | eval "$ac_cv_use_file" | |
4157 | if test "$no_cache" != 1; then | |
4158 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4159 | fi | |
4160 | ||
4161 | if test "$wxUSE_FILE" = yes; then | |
a0b9e27f | 4162 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4163 | else |
a0b9e27f | 4164 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4165 | fi |
a0b9e27f | 4166 | |
10f2d63a | 4167 | |
5005acfe VZ |
4168 | enablestring= |
4169 | echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6 | |
ac0c4cc3 | 4170 | echo "configure:4171: checking for --${enablestring:-enable}-ffile" >&5 |
10f2d63a | 4171 | no_cache=0 |
1e6feb95 VZ |
4172 | # Check whether --enable-ffile or --disable-ffile was given. |
4173 | if test "${enable_ffile+set}" = set; then | |
4174 | enableval="$enable_ffile" | |
a0b9e27f | 4175 | |
10f2d63a | 4176 | if test "$enableval" = yes; then |
1e6feb95 | 4177 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4178 | else |
1e6feb95 | 4179 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4180 | fi |
a0b9e27f | 4181 | |
10f2d63a | 4182 | else |
a0b9e27f | 4183 | |
1e6feb95 | 4184 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4185 | if test "x$LINE" != x ; then |
4186 | eval "DEFAULT_$LINE" | |
4187 | else | |
4188 | no_cache=1 | |
4189 | fi | |
4190 | ||
1e6feb95 | 4191 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
a0b9e27f MB |
4192 | |
4193 | fi | |
10f2d63a VZ |
4194 | |
4195 | ||
1e6feb95 | 4196 | eval "$ac_cv_use_ffile" |
10f2d63a | 4197 | if test "$no_cache" != 1; then |
1e6feb95 | 4198 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4199 | fi |
4200 | ||
1e6feb95 | 4201 | if test "$wxUSE_FFILE" = yes; then |
a0b9e27f | 4202 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4203 | else |
a0b9e27f | 4204 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4205 | fi |
a0b9e27f | 4206 | |
10f2d63a | 4207 | |
5005acfe VZ |
4208 | enablestring= |
4209 | echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6 | |
ac0c4cc3 | 4210 | echo "configure:4211: checking for --${enablestring:-enable}-textbuf" >&5 |
a3a584a7 VZ |
4211 | no_cache=0 |
4212 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4213 | if test "${enable_textbuf+set}" = set; then | |
4214 | enableval="$enable_textbuf" | |
a0b9e27f | 4215 | |
a3a584a7 VZ |
4216 | if test "$enableval" = yes; then |
4217 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4218 | else | |
4219 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4220 | fi | |
a0b9e27f | 4221 | |
a3a584a7 | 4222 | else |
a0b9e27f | 4223 | |
a3a584a7 VZ |
4224 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4225 | if test "x$LINE" != x ; then | |
4226 | eval "DEFAULT_$LINE" | |
4227 | else | |
4228 | no_cache=1 | |
4229 | fi | |
4230 | ||
4231 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a0b9e27f MB |
4232 | |
4233 | fi | |
a3a584a7 VZ |
4234 | |
4235 | ||
4236 | eval "$ac_cv_use_textbuf" | |
4237 | if test "$no_cache" != 1; then | |
4238 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4239 | fi | |
4240 | ||
4241 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
a0b9e27f | 4242 | echo "$ac_t""yes" 1>&6 |
a3a584a7 | 4243 | else |
a0b9e27f | 4244 | echo "$ac_t""no" 1>&6 |
a3a584a7 | 4245 | fi |
a0b9e27f | 4246 | |
a3a584a7 | 4247 | |
5005acfe VZ |
4248 | enablestring= |
4249 | echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6 | |
ac0c4cc3 | 4250 | echo "configure:4251: checking for --${enablestring:-enable}-textfile" >&5 |
10f2d63a | 4251 | no_cache=0 |
1e6feb95 VZ |
4252 | # Check whether --enable-textfile or --disable-textfile was given. |
4253 | if test "${enable_textfile+set}" = set; then | |
4254 | enableval="$enable_textfile" | |
a0b9e27f | 4255 | |
10f2d63a | 4256 | if test "$enableval" = yes; then |
1e6feb95 | 4257 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4258 | else |
1e6feb95 | 4259 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4260 | fi |
a0b9e27f | 4261 | |
10f2d63a | 4262 | else |
a0b9e27f | 4263 | |
1e6feb95 | 4264 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4265 | if test "x$LINE" != x ; then |
4266 | eval "DEFAULT_$LINE" | |
4267 | else | |
4268 | no_cache=1 | |
4269 | fi | |
4270 | ||
1e6feb95 | 4271 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
a0b9e27f MB |
4272 | |
4273 | fi | |
10f2d63a VZ |
4274 | |
4275 | ||
1e6feb95 | 4276 | eval "$ac_cv_use_textfile" |
10f2d63a | 4277 | if test "$no_cache" != 1; then |
1e6feb95 | 4278 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4279 | fi |
4280 | ||
1e6feb95 | 4281 | if test "$wxUSE_TEXTFILE" = yes; then |
a0b9e27f | 4282 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4283 | else |
a0b9e27f | 4284 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4285 | fi |
a0b9e27f | 4286 | |
10f2d63a | 4287 | |
5005acfe VZ |
4288 | enablestring= |
4289 | echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6 | |
ac0c4cc3 | 4290 | echo "configure:4291: checking for --${enablestring:-enable}-fontmap" >&5 |
10f2d63a | 4291 | no_cache=0 |
1e6feb95 VZ |
4292 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4293 | if test "${enable_fontmap+set}" = set; then | |
4294 | enableval="$enable_fontmap" | |
a0b9e27f | 4295 | |
10f2d63a | 4296 | if test "$enableval" = yes; then |
1e6feb95 | 4297 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4298 | else |
1e6feb95 | 4299 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4300 | fi |
a0b9e27f | 4301 | |
10f2d63a | 4302 | else |
a0b9e27f | 4303 | |
1e6feb95 | 4304 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4305 | if test "x$LINE" != x ; then |
4306 | eval "DEFAULT_$LINE" | |
4307 | else | |
4308 | no_cache=1 | |
4309 | fi | |
4310 | ||
1e6feb95 | 4311 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
a0b9e27f MB |
4312 | |
4313 | fi | |
10f2d63a VZ |
4314 | |
4315 | ||
1e6feb95 | 4316 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4317 | if test "$no_cache" != 1; then |
1e6feb95 | 4318 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4319 | fi |
4320 | ||
1e6feb95 | 4321 | if test "$wxUSE_FONTMAP" = yes; then |
a0b9e27f | 4322 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4323 | else |
a0b9e27f | 4324 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4325 | fi |
a0b9e27f | 4326 | |
10f2d63a | 4327 | |
5005acfe VZ |
4328 | enablestring= |
4329 | echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6 | |
ac0c4cc3 | 4330 | echo "configure:4331: checking for --${enablestring:-enable}-unicode" >&5 |
10f2d63a | 4331 | no_cache=0 |
1e6feb95 VZ |
4332 | # Check whether --enable-unicode or --disable-unicode was given. |
4333 | if test "${enable_unicode+set}" = set; then | |
4334 | enableval="$enable_unicode" | |
a0b9e27f | 4335 | |
1e6feb95 VZ |
4336 | if test "$enableval" = yes; then |
4337 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4338 | else | |
4339 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4340 | fi | |
a0b9e27f | 4341 | |
1e6feb95 | 4342 | else |
a0b9e27f | 4343 | |
1e6feb95 VZ |
4344 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4345 | if test "x$LINE" != x ; then | |
4346 | eval "DEFAULT_$LINE" | |
4347 | else | |
4348 | no_cache=1 | |
4349 | fi | |
4350 | ||
4351 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
a0b9e27f MB |
4352 | |
4353 | fi | |
1e6feb95 VZ |
4354 | |
4355 | ||
4356 | eval "$ac_cv_use_unicode" | |
4357 | if test "$no_cache" != 1; then | |
4358 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4359 | fi | |
4360 | ||
4361 | if test "$wxUSE_UNICODE" = yes; then | |
a0b9e27f | 4362 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4363 | else |
a0b9e27f | 4364 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4365 | fi |
a0b9e27f | 4366 | |
1e6feb95 | 4367 | |
5005acfe VZ |
4368 | enablestring= |
4369 | echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6 | |
ac0c4cc3 | 4370 | echo "configure:4371: checking for --${enablestring:-enable}-mslu" >&5 |
a72a4bfa VS |
4371 | no_cache=0 |
4372 | # Check whether --enable-mslu or --disable-mslu was given. | |
4373 | if test "${enable_mslu+set}" = set; then | |
4374 | enableval="$enable_mslu" | |
a0b9e27f | 4375 | |
a72a4bfa VS |
4376 | if test "$enableval" = yes; then |
4377 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4378 | else | |
4379 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4380 | fi | |
a0b9e27f | 4381 | |
a72a4bfa | 4382 | else |
a0b9e27f | 4383 | |
a72a4bfa VS |
4384 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
4385 | if test "x$LINE" != x ; then | |
4386 | eval "DEFAULT_$LINE" | |
4387 | else | |
4388 | no_cache=1 | |
4389 | fi | |
4390 | ||
4391 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a0b9e27f MB |
4392 | |
4393 | fi | |
a72a4bfa VS |
4394 | |
4395 | ||
4396 | eval "$ac_cv_use_mslu" | |
4397 | if test "$no_cache" != 1; then | |
4398 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4399 | fi | |
4400 | ||
4401 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
a0b9e27f | 4402 | echo "$ac_t""yes" 1>&6 |
a72a4bfa | 4403 | else |
a0b9e27f | 4404 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 4405 | fi |
a0b9e27f | 4406 | |
a72a4bfa | 4407 | |
5005acfe VZ |
4408 | enablestring= |
4409 | echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6 | |
ac0c4cc3 | 4410 | echo "configure:4411: checking for --${enablestring:-enable}-wxprintfv" >&5 |
1e6feb95 VZ |
4411 | no_cache=0 |
4412 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4413 | if test "${enable_wxprintfv+set}" = set; then | |
4414 | enableval="$enable_wxprintfv" | |
a0b9e27f | 4415 | |
1e6feb95 | 4416 | if test "$enableval" = yes; then |
10f2d63a VZ |
4417 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4418 | else | |
4419 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4420 | fi | |
a0b9e27f | 4421 | |
10f2d63a | 4422 | else |
a0b9e27f | 4423 | |
10f2d63a VZ |
4424 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4425 | if test "x$LINE" != x ; then | |
4426 | eval "DEFAULT_$LINE" | |
4427 | else | |
4428 | no_cache=1 | |
4429 | fi | |
4430 | ||
4431 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
a0b9e27f MB |
4432 | |
4433 | fi | |
10f2d63a VZ |
4434 | |
4435 | ||
4436 | eval "$ac_cv_use_wxprintfv" | |
4437 | if test "$no_cache" != 1; then | |
4438 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4439 | fi | |
4440 | ||
4441 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
a0b9e27f | 4442 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4443 | else |
a0b9e27f | 4444 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4445 | fi |
a0b9e27f | 4446 | |
10f2d63a | 4447 | |
5005acfe VZ |
4448 | enablestring= |
4449 | echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6 | |
ac0c4cc3 | 4450 | echo "configure:4451: checking for --${enablestring:-enable}-std_iostreams" >&5 |
10f2d63a VZ |
4451 | no_cache=0 |
4452 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4453 | if test "${enable_std_iostreams+set}" = set; then | |
4454 | enableval="$enable_std_iostreams" | |
a0b9e27f | 4455 | |
10f2d63a VZ |
4456 | if test "$enableval" = yes; then |
4457 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4458 | else | |
4459 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4460 | fi | |
a0b9e27f | 4461 | |
10f2d63a | 4462 | else |
a0b9e27f | 4463 | |
10f2d63a VZ |
4464 | LINE=`grep "wxUSE_STD_IOSTREAM" ${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_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
a0b9e27f MB |
4472 | |
4473 | fi | |
10f2d63a VZ |
4474 | |
4475 | ||
4476 | eval "$ac_cv_use_std_iostreams" | |
4477 | if test "$no_cache" != 1; then | |
4478 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4479 | fi | |
4480 | ||
4481 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
a0b9e27f | 4482 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4483 | else |
a0b9e27f | 4484 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4485 | fi |
a0b9e27f | 4486 | |
10f2d63a | 4487 | |
5005acfe VZ |
4488 | enablestring= |
4489 | echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6 | |
ac0c4cc3 | 4490 | echo "configure:4491: checking for --${enablestring:-enable}-filesystem" >&5 |
24528b0c VS |
4491 | no_cache=0 |
4492 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4493 | if test "${enable_filesystem+set}" = set; then | |
4494 | enableval="$enable_filesystem" | |
a0b9e27f | 4495 | |
24528b0c VS |
4496 | if test "$enableval" = yes; then |
4497 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4498 | else | |
4499 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4500 | fi | |
a0b9e27f | 4501 | |
24528b0c | 4502 | else |
a0b9e27f | 4503 | |
24528b0c VS |
4504 | LINE=`grep "wxUSE_FILESYSTEM" ${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_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
a0b9e27f MB |
4512 | |
4513 | fi | |
24528b0c VS |
4514 | |
4515 | ||
4516 | eval "$ac_cv_use_filesystem" | |
4517 | if test "$no_cache" != 1; then | |
4518 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4519 | fi | |
4520 | ||
4521 | if test "$wxUSE_FILESYSTEM" = yes; then | |
a0b9e27f | 4522 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4523 | else |
a0b9e27f | 4524 | echo "$ac_t""no" 1>&6 |
24528b0c | 4525 | fi |
a0b9e27f | 4526 | |
24528b0c | 4527 | |
5005acfe VZ |
4528 | enablestring= |
4529 | echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6 | |
ac0c4cc3 | 4530 | echo "configure:4531: checking for --${enablestring:-enable}-fs_inet" >&5 |
10f2d63a VZ |
4531 | no_cache=0 |
4532 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4533 | if test "${enable_fs_inet+set}" = set; then | |
4534 | enableval="$enable_fs_inet" | |
a0b9e27f | 4535 | |
10f2d63a VZ |
4536 | if test "$enableval" = yes; then |
4537 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4538 | else | |
4539 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4540 | fi | |
a0b9e27f | 4541 | |
10f2d63a | 4542 | else |
a0b9e27f | 4543 | |
10f2d63a VZ |
4544 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4545 | if test "x$LINE" != x ; then | |
4546 | eval "DEFAULT_$LINE" | |
4547 | else | |
4548 | no_cache=1 | |
4549 | fi | |
4550 | ||
4551 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
a0b9e27f MB |
4552 | |
4553 | fi | |
10f2d63a VZ |
4554 | |
4555 | ||
4556 | eval "$ac_cv_use_fs_inet" | |
4557 | if test "$no_cache" != 1; then | |
4558 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4559 | fi | |
4560 | ||
4561 | if test "$wxUSE_FS_INET" = yes; then | |
a0b9e27f | 4562 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4563 | else |
a0b9e27f | 4564 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4565 | fi |
a0b9e27f | 4566 | |
10f2d63a | 4567 | |
5005acfe VZ |
4568 | enablestring= |
4569 | echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6 | |
ac0c4cc3 | 4570 | echo "configure:4571: checking for --${enablestring:-enable}-fs_zip" >&5 |
10f2d63a VZ |
4571 | no_cache=0 |
4572 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4573 | if test "${enable_fs_zip+set}" = set; then | |
4574 | enableval="$enable_fs_zip" | |
a0b9e27f | 4575 | |
10f2d63a VZ |
4576 | if test "$enableval" = yes; then |
4577 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4578 | else | |
4579 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4580 | fi | |
a0b9e27f | 4581 | |
10f2d63a | 4582 | else |
a0b9e27f | 4583 | |
10f2d63a VZ |
4584 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4585 | if test "x$LINE" != x ; then | |
4586 | eval "DEFAULT_$LINE" | |
4587 | else | |
4588 | no_cache=1 | |
4589 | fi | |
4590 | ||
4591 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
a0b9e27f MB |
4592 | |
4593 | fi | |
10f2d63a VZ |
4594 | |
4595 | ||
4596 | eval "$ac_cv_use_fs_zip" | |
4597 | if test "$no_cache" != 1; then | |
4598 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4599 | fi | |
4600 | ||
4601 | if test "$wxUSE_FS_ZIP" = yes; then | |
a0b9e27f | 4602 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4603 | else |
a0b9e27f | 4604 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4605 | fi |
a0b9e27f | 4606 | |
10f2d63a | 4607 | |
5005acfe VZ |
4608 | enablestring= |
4609 | echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6 | |
ac0c4cc3 | 4610 | echo "configure:4611: checking for --${enablestring:-enable}-zipstream" >&5 |
10f2d63a VZ |
4611 | no_cache=0 |
4612 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4613 | if test "${enable_zipstream+set}" = set; then | |
4614 | enableval="$enable_zipstream" | |
a0b9e27f | 4615 | |
10f2d63a VZ |
4616 | if test "$enableval" = yes; then |
4617 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4618 | else | |
4619 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4620 | fi | |
a0b9e27f | 4621 | |
10f2d63a | 4622 | else |
a0b9e27f | 4623 | |
10f2d63a VZ |
4624 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4625 | if test "x$LINE" != x ; then | |
4626 | eval "DEFAULT_$LINE" | |
4627 | else | |
4628 | no_cache=1 | |
4629 | fi | |
4630 | ||
4631 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
a0b9e27f MB |
4632 | |
4633 | fi | |
10f2d63a VZ |
4634 | |
4635 | ||
4636 | eval "$ac_cv_use_zipstream" | |
4637 | if test "$no_cache" != 1; then | |
4638 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4639 | fi | |
4640 | ||
4641 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
a0b9e27f | 4642 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4643 | else |
a0b9e27f | 4644 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4645 | fi |
a0b9e27f | 4646 | |
8284b0c5 | 4647 | |
52127426 | 4648 | |
5005acfe VZ |
4649 | enablestring= |
4650 | echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6 | |
ac0c4cc3 | 4651 | echo "configure:4652: checking for --${enablestring:-enable}-catch_segvs" >&5 |
eb4efbdc VZ |
4652 | no_cache=0 |
4653 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4654 | if test "${enable_catch_segvs+set}" = set; then | |
4655 | enableval="$enable_catch_segvs" | |
a0b9e27f | 4656 | |
eb4efbdc VZ |
4657 | if test "$enableval" = yes; then |
4658 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4659 | else | |
4660 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4661 | fi | |
a0b9e27f | 4662 | |
eb4efbdc | 4663 | else |
a0b9e27f | 4664 | |
eb4efbdc VZ |
4665 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4666 | if test "x$LINE" != x ; then | |
4667 | eval "DEFAULT_$LINE" | |
4668 | else | |
4669 | no_cache=1 | |
4670 | fi | |
4671 | ||
4672 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
a0b9e27f MB |
4673 | |
4674 | fi | |
eb4efbdc VZ |
4675 | |
4676 | ||
4677 | eval "$ac_cv_use_catch_segvs" | |
4678 | if test "$no_cache" != 1; then | |
4679 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4680 | fi | |
4681 | ||
4682 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
a0b9e27f | 4683 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4684 | else |
a0b9e27f | 4685 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4686 | fi |
a0b9e27f | 4687 | |
eb4efbdc | 4688 | |
5005acfe VZ |
4689 | enablestring= |
4690 | echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6 | |
ac0c4cc3 | 4691 | echo "configure:4692: checking for --${enablestring:-enable}-snglinst" >&5 |
4f3c5f06 VZ |
4692 | no_cache=0 |
4693 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4694 | if test "${enable_snglinst+set}" = set; then | |
4695 | enableval="$enable_snglinst" | |
a0b9e27f | 4696 | |
4f3c5f06 VZ |
4697 | if test "$enableval" = yes; then |
4698 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4699 | else | |
4700 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4701 | fi | |
a0b9e27f | 4702 | |
4f3c5f06 | 4703 | else |
a0b9e27f | 4704 | |
4f3c5f06 VZ |
4705 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4706 | if test "x$LINE" != x ; then | |
4707 | eval "DEFAULT_$LINE" | |
4708 | else | |
4709 | no_cache=1 | |
4710 | fi | |
4711 | ||
4712 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
a0b9e27f MB |
4713 | |
4714 | fi | |
4f3c5f06 VZ |
4715 | |
4716 | ||
4717 | eval "$ac_cv_use_snglinst" | |
4718 | if test "$no_cache" != 1; then | |
4719 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4720 | fi | |
4721 | ||
4722 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
a0b9e27f | 4723 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4724 | else |
a0b9e27f | 4725 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4726 | fi |
a0b9e27f | 4727 | |
52127426 | 4728 | |
8284b0c5 | 4729 | |
5005acfe VZ |
4730 | enablestring= |
4731 | echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6 | |
ac0c4cc3 | 4732 | echo "configure:4733: checking for --${enablestring:-enable}-mimetype" >&5 |
1e6feb95 VZ |
4733 | no_cache=0 |
4734 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4735 | if test "${enable_mimetype+set}" = set; then | |
4736 | enableval="$enable_mimetype" | |
a0b9e27f | 4737 | |
1e6feb95 VZ |
4738 | if test "$enableval" = yes; then |
4739 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4740 | else | |
4741 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4742 | fi | |
a0b9e27f | 4743 | |
1e6feb95 | 4744 | else |
a0b9e27f | 4745 | |
1e6feb95 VZ |
4746 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
4747 | if test "x$LINE" != x ; then | |
4748 | eval "DEFAULT_$LINE" | |
4749 | else | |
4750 | no_cache=1 | |
4751 | fi | |
4752 | ||
4753 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
a0b9e27f MB |
4754 | |
4755 | fi | |
1e6feb95 VZ |
4756 | |
4757 | ||
4758 | eval "$ac_cv_use_mimetype" | |
4759 | if test "$no_cache" != 1; then | |
4760 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4761 | fi | |
4762 | ||
4763 | if test "$wxUSE_MIMETYPE" = yes; then | |
a0b9e27f | 4764 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4765 | else |
a0b9e27f | 4766 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4767 | fi |
a0b9e27f | 4768 | |
1e6feb95 | 4769 | |
5005acfe VZ |
4770 | enablestring= |
4771 | echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6 | |
ac0c4cc3 | 4772 | echo "configure:4773: checking for --${enablestring:-enable}-system_options" >&5 |
3e44f09d VZ |
4773 | no_cache=0 |
4774 | # Check whether --enable-system_options or --disable-system_options was given. | |
4775 | if test "${enable_system_options+set}" = set; then | |
4776 | enableval="$enable_system_options" | |
a0b9e27f | 4777 | |
3e44f09d VZ |
4778 | if test "$enableval" = yes; then |
4779 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4780 | else | |
4781 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4782 | fi | |
a0b9e27f | 4783 | |
3e44f09d | 4784 | else |
a0b9e27f | 4785 | |
3e44f09d VZ |
4786 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
4787 | if test "x$LINE" != x ; then | |
4788 | eval "DEFAULT_$LINE" | |
4789 | else | |
4790 | no_cache=1 | |
4791 | fi | |
4792 | ||
4793 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
a0b9e27f MB |
4794 | |
4795 | fi | |
3e44f09d VZ |
4796 | |
4797 | ||
4798 | eval "$ac_cv_use_system_options" | |
4799 | if test "$no_cache" != 1; then | |
4800 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4801 | fi | |
4802 | ||
4803 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
a0b9e27f | 4804 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 4805 | else |
a0b9e27f | 4806 | echo "$ac_t""no" 1>&6 |
3e44f09d | 4807 | fi |
a0b9e27f | 4808 | |
8284b0c5 | 4809 | |
52127426 | 4810 | |
5005acfe VZ |
4811 | enablestring= |
4812 | echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6 | |
ac0c4cc3 | 4813 | echo "configure:4814: checking for --${enablestring:-enable}-url" >&5 |
4cdb0ab0 VS |
4814 | no_cache=0 |
4815 | # Check whether --enable-url or --disable-url was given. | |
4816 | if test "${enable_url+set}" = set; then | |
4817 | enableval="$enable_url" | |
a0b9e27f | 4818 | |
4cdb0ab0 VS |
4819 | if test "$enableval" = yes; then |
4820 | ac_cv_use_url='wxUSE_URL=yes' | |
4821 | else | |
4822 | ac_cv_use_url='wxUSE_URL=no' | |
4823 | fi | |
a0b9e27f | 4824 | |
4cdb0ab0 | 4825 | else |
a0b9e27f | 4826 | |
4cdb0ab0 VS |
4827 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
4828 | if test "x$LINE" != x ; then | |
4829 | eval "DEFAULT_$LINE" | |
4830 | else | |
4831 | no_cache=1 | |
4832 | fi | |
4833 | ||
4834 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
a0b9e27f MB |
4835 | |
4836 | fi | |
4cdb0ab0 VS |
4837 | |
4838 | ||
4839 | eval "$ac_cv_use_url" | |
4840 | if test "$no_cache" != 1; then | |
4841 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4842 | fi | |
4843 | ||
4844 | if test "$wxUSE_URL" = yes; then | |
a0b9e27f | 4845 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4846 | else |
a0b9e27f | 4847 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4848 | fi |
a0b9e27f | 4849 | |
4cdb0ab0 | 4850 | |
5005acfe VZ |
4851 | enablestring= |
4852 | echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6 | |
ac0c4cc3 | 4853 | echo "configure:4854: checking for --${enablestring:-enable}-protocol" >&5 |
4cdb0ab0 VS |
4854 | no_cache=0 |
4855 | # Check whether --enable-protocol or --disable-protocol was given. | |
4856 | if test "${enable_protocol+set}" = set; then | |
4857 | enableval="$enable_protocol" | |
a0b9e27f | 4858 | |
4cdb0ab0 VS |
4859 | if test "$enableval" = yes; then |
4860 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4861 | else | |
4862 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4863 | fi | |
a0b9e27f | 4864 | |
4cdb0ab0 | 4865 | else |
a0b9e27f | 4866 | |
4cdb0ab0 VS |
4867 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4868 | if test "x$LINE" != x ; then | |
4869 | eval "DEFAULT_$LINE" | |
4870 | else | |
4871 | no_cache=1 | |
4872 | fi | |
4873 | ||
4874 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
4875 | |
4876 | fi | |
4cdb0ab0 VS |
4877 | |
4878 | ||
4879 | eval "$ac_cv_use_protocol" | |
4880 | if test "$no_cache" != 1; then | |
4881 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4882 | fi | |
4883 | ||
4884 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 4885 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4886 | else |
a0b9e27f | 4887 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4888 | fi |
a0b9e27f | 4889 | |
4cdb0ab0 | 4890 | |
5005acfe VZ |
4891 | enablestring= |
4892 | echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6 | |
ac0c4cc3 | 4893 | echo "configure:4894: checking for --${enablestring:-enable}-protocol_http" >&5 |
4cdb0ab0 VS |
4894 | no_cache=0 |
4895 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4896 | if test "${enable_protocol_http+set}" = set; then | |
4897 | enableval="$enable_protocol_http" | |
a0b9e27f | 4898 | |
4cdb0ab0 VS |
4899 | if test "$enableval" = yes; then |
4900 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4901 | else | |
4902 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4903 | fi | |
a0b9e27f | 4904 | |
4cdb0ab0 | 4905 | else |
a0b9e27f | 4906 | |
4cdb0ab0 VS |
4907 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4908 | if test "x$LINE" != x ; then | |
4909 | eval "DEFAULT_$LINE" | |
4910 | else | |
4911 | no_cache=1 | |
4912 | fi | |
4913 | ||
4914 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
4915 | |
4916 | fi | |
4cdb0ab0 VS |
4917 | |
4918 | ||
4919 | eval "$ac_cv_use_protocol_http" | |
4920 | if test "$no_cache" != 1; then | |
4921 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4922 | fi | |
4923 | ||
4924 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 4925 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4926 | else |
a0b9e27f | 4927 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4928 | fi |
a0b9e27f | 4929 | |
4cdb0ab0 | 4930 | |
5005acfe VZ |
4931 | enablestring= |
4932 | echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6 | |
ac0c4cc3 | 4933 | echo "configure:4934: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
4cdb0ab0 VS |
4934 | no_cache=0 |
4935 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4936 | if test "${enable_protocol_ftp+set}" = set; then | |
4937 | enableval="$enable_protocol_ftp" | |
a0b9e27f | 4938 | |
4cdb0ab0 VS |
4939 | if test "$enableval" = yes; then |
4940 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4941 | else | |
4942 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4943 | fi | |
a0b9e27f | 4944 | |
4cdb0ab0 | 4945 | else |
a0b9e27f | 4946 | |
4cdb0ab0 VS |
4947 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4948 | if test "x$LINE" != x ; then | |
4949 | eval "DEFAULT_$LINE" | |
4950 | else | |
4951 | no_cache=1 | |
4952 | fi | |
4953 | ||
4954 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
4955 | |
4956 | fi | |
4cdb0ab0 VS |
4957 | |
4958 | ||
4959 | eval "$ac_cv_use_protocol_ftp" | |
4960 | if test "$no_cache" != 1; then | |
4961 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4962 | fi | |
4963 | ||
4964 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 4965 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4966 | else |
a0b9e27f | 4967 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4968 | fi |
a0b9e27f | 4969 | |
4cdb0ab0 | 4970 | |
5005acfe VZ |
4971 | enablestring= |
4972 | echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6 | |
ac0c4cc3 | 4973 | echo "configure:4974: checking for --${enablestring:-enable}-protocol_file" >&5 |
4cdb0ab0 VS |
4974 | no_cache=0 |
4975 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4976 | if test "${enable_protocol_file+set}" = set; then | |
4977 | enableval="$enable_protocol_file" | |
a0b9e27f | 4978 | |
4cdb0ab0 VS |
4979 | if test "$enableval" = yes; then |
4980 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4981 | else | |
4982 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4983 | fi | |
a0b9e27f | 4984 | |
4cdb0ab0 | 4985 | else |
a0b9e27f | 4986 | |
4cdb0ab0 VS |
4987 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4988 | if test "x$LINE" != x ; then | |
4989 | eval "DEFAULT_$LINE" | |
4990 | else | |
4991 | no_cache=1 | |
4992 | fi | |
4993 | ||
4994 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
4995 | |
4996 | fi | |
4cdb0ab0 VS |
4997 | |
4998 | ||
4999 | eval "$ac_cv_use_protocol_file" | |
5000 | if test "$no_cache" != 1; then | |
5001 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5002 | fi | |
5003 | ||
5004 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 5005 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 5006 | else |
a0b9e27f | 5007 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 5008 | fi |
a0b9e27f | 5009 | |
52127426 | 5010 | |
8284b0c5 MB |
5011 | |
5012 | ||
5013 | ||
5005acfe VZ |
5014 | enablestring= |
5015 | echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6 | |
ac0c4cc3 | 5016 | echo "configure:5017: checking for --${enablestring:-enable}-threads" >&5 |
10f2d63a VZ |
5017 | no_cache=0 |
5018 | # Check whether --enable-threads or --disable-threads was given. | |
5019 | if test "${enable_threads+set}" = set; then | |
5020 | enableval="$enable_threads" | |
a0b9e27f | 5021 | |
10f2d63a VZ |
5022 | if test "$enableval" = yes; then |
5023 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
5024 | else | |
5025 | ac_cv_use_threads='wxUSE_THREADS=no' | |
5026 | fi | |
a0b9e27f | 5027 | |
10f2d63a | 5028 | else |
a0b9e27f | 5029 | |
10f2d63a VZ |
5030 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
5031 | if test "x$LINE" != x ; then | |
5032 | eval "DEFAULT_$LINE" | |
5033 | else | |
5034 | no_cache=1 | |
5035 | fi | |
5036 | ||
5037 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
a0b9e27f MB |
5038 | |
5039 | fi | |
10f2d63a VZ |
5040 | |
5041 | ||
5042 | eval "$ac_cv_use_threads" | |
5043 | if test "$no_cache" != 1; then | |
5044 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5045 | fi | |
5046 | ||
5047 | if test "$wxUSE_THREADS" = yes; then | |
a0b9e27f | 5048 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5049 | else |
a0b9e27f | 5050 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5051 | fi |
a0b9e27f | 5052 | |
10f2d63a | 5053 | |
b12915c1 VZ |
5054 | if test "$wxUSE_GUI" = "yes"; then |
5055 | ||
8284b0c5 MB |
5056 | |
5057 | ||
5005acfe VZ |
5058 | enablestring= |
5059 | echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6 | |
ac0c4cc3 | 5060 | echo "configure:5061: checking for --${enablestring:-enable}-docview" >&5 |
10f2d63a VZ |
5061 | no_cache=0 |
5062 | # Check whether --enable-docview or --disable-docview was given. | |
5063 | if test "${enable_docview+set}" = set; then | |
5064 | enableval="$enable_docview" | |
a0b9e27f | 5065 | |
10f2d63a VZ |
5066 | if test "$enableval" = yes; then |
5067 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5068 | else | |
5069 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5070 | fi | |
a0b9e27f | 5071 | |
10f2d63a | 5072 | else |
a0b9e27f | 5073 | |
10f2d63a VZ |
5074 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5075 | if test "x$LINE" != x ; then | |
5076 | eval "DEFAULT_$LINE" | |
5077 | else | |
5078 | no_cache=1 | |
5079 | fi | |
5080 | ||
5081 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
a0b9e27f MB |
5082 | |
5083 | fi | |
10f2d63a VZ |
5084 | |
5085 | ||
5086 | eval "$ac_cv_use_docview" | |
5087 | if test "$no_cache" != 1; then | |
5088 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5089 | fi | |
5090 | ||
5091 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
a0b9e27f | 5092 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5093 | else |
a0b9e27f | 5094 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5095 | fi |
a0b9e27f | 5096 | |
10f2d63a | 5097 | |
5005acfe VZ |
5098 | enablestring= |
5099 | echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6 | |
ac0c4cc3 | 5100 | echo "configure:5101: checking for --${enablestring:-enable}-help" >&5 |
10f2d63a VZ |
5101 | no_cache=0 |
5102 | # Check whether --enable-help or --disable-help was given. | |
5103 | if test "${enable_help+set}" = set; then | |
5104 | enableval="$enable_help" | |
a0b9e27f | 5105 | |
10f2d63a VZ |
5106 | if test "$enableval" = yes; then |
5107 | ac_cv_use_help='wxUSE_HELP=yes' | |
5108 | else | |
5109 | ac_cv_use_help='wxUSE_HELP=no' | |
5110 | fi | |
a0b9e27f | 5111 | |
10f2d63a | 5112 | else |
a0b9e27f | 5113 | |
10f2d63a VZ |
5114 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5115 | if test "x$LINE" != x ; then | |
5116 | eval "DEFAULT_$LINE" | |
5117 | else | |
5118 | no_cache=1 | |
5119 | fi | |
5120 | ||
5121 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
a0b9e27f MB |
5122 | |
5123 | fi | |
10f2d63a VZ |
5124 | |
5125 | ||
5126 | eval "$ac_cv_use_help" | |
5127 | if test "$no_cache" != 1; then | |
5128 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5129 | fi | |
5130 | ||
5131 | if test "$wxUSE_HELP" = yes; then | |
a0b9e27f | 5132 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5133 | else |
a0b9e27f | 5134 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5135 | fi |
a0b9e27f | 5136 | |
10f2d63a | 5137 | |
5005acfe VZ |
5138 | enablestring= |
5139 | echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6 | |
ac0c4cc3 | 5140 | echo "configure:5141: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
29fd3c0c VS |
5141 | no_cache=0 |
5142 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5143 | if test "${enable_mshtmlhelp+set}" = set; then | |
5144 | enableval="$enable_mshtmlhelp" | |
a0b9e27f | 5145 | |
29fd3c0c VS |
5146 | if test "$enableval" = yes; then |
5147 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5148 | else | |
5149 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5150 | fi | |
a0b9e27f | 5151 | |
29fd3c0c | 5152 | else |
a0b9e27f | 5153 | |
29fd3c0c VS |
5154 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5155 | if test "x$LINE" != x ; then | |
5156 | eval "DEFAULT_$LINE" | |
5157 | else | |
5158 | no_cache=1 | |
5159 | fi | |
5160 | ||
5161 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
a0b9e27f MB |
5162 | |
5163 | fi | |
29fd3c0c VS |
5164 | |
5165 | ||
5166 | eval "$ac_cv_use_mshtmlhelp" | |
5167 | if test "$no_cache" != 1; then | |
5168 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5169 | fi | |
5170 | ||
5171 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
a0b9e27f | 5172 | echo "$ac_t""yes" 1>&6 |
29fd3c0c | 5173 | else |
a0b9e27f | 5174 | echo "$ac_t""no" 1>&6 |
29fd3c0c | 5175 | fi |
a0b9e27f | 5176 | |
29fd3c0c | 5177 | |
5005acfe VZ |
5178 | enablestring= |
5179 | echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6 | |
ac0c4cc3 | 5180 | echo "configure:5181: checking for --${enablestring:-enable}-html" >&5 |
3379ed37 VZ |
5181 | no_cache=0 |
5182 | # Check whether --enable-html or --disable-html was given. | |
5183 | if test "${enable_html+set}" = set; then | |
5184 | enableval="$enable_html" | |
a0b9e27f | 5185 | |
3379ed37 VZ |
5186 | if test "$enableval" = yes; then |
5187 | ac_cv_use_html='wxUSE_HTML=yes' | |
5188 | else | |
5189 | ac_cv_use_html='wxUSE_HTML=no' | |
5190 | fi | |
a0b9e27f | 5191 | |
3379ed37 | 5192 | else |
a0b9e27f | 5193 | |
3379ed37 VZ |
5194 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
5195 | if test "x$LINE" != x ; then | |
5196 | eval "DEFAULT_$LINE" | |
5197 | else | |
5198 | no_cache=1 | |
5199 | fi | |
5200 | ||
5201 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
a0b9e27f MB |
5202 | |
5203 | fi | |
3379ed37 VZ |
5204 | |
5205 | ||
5206 | eval "$ac_cv_use_html" | |
5207 | if test "$no_cache" != 1; then | |
5208 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5209 | fi | |
5210 | ||
5211 | if test "$wxUSE_HTML" = yes; then | |
a0b9e27f | 5212 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5213 | else |
a0b9e27f | 5214 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5215 | fi |
a0b9e27f | 5216 | |
3379ed37 | 5217 | |
5005acfe VZ |
5218 | enablestring= |
5219 | echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6 | |
ac0c4cc3 | 5220 | echo "configure:5221: checking for --${enablestring:-enable}-htmlhelp" >&5 |
3379ed37 VZ |
5221 | no_cache=0 |
5222 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5223 | if test "${enable_htmlhelp+set}" = set; then | |
5224 | enableval="$enable_htmlhelp" | |
a0b9e27f | 5225 | |
3379ed37 VZ |
5226 | if test "$enableval" = yes; then |
5227 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5228 | else | |
5229 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5230 | fi | |
a0b9e27f | 5231 | |
3379ed37 | 5232 | else |
a0b9e27f | 5233 | |
3379ed37 VZ |
5234 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5235 | if test "x$LINE" != x ; then | |
5236 | eval "DEFAULT_$LINE" | |
5237 | else | |
5238 | no_cache=1 | |
5239 | fi | |
5240 | ||
5241 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
a0b9e27f MB |
5242 | |
5243 | fi | |
3379ed37 VZ |
5244 | |
5245 | ||
5246 | eval "$ac_cv_use_htmlhelp" | |
5247 | if test "$no_cache" != 1; then | |
5248 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5249 | fi | |
5250 | ||
5251 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
a0b9e27f | 5252 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5253 | else |
a0b9e27f | 5254 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5255 | fi |
a0b9e27f | 5256 | |
3379ed37 | 5257 | |
5005acfe VZ |
5258 | enablestring= |
5259 | echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6 | |
ac0c4cc3 | 5260 | echo "configure:5261: checking for --${enablestring:-enable}-constraints" >&5 |
10f2d63a VZ |
5261 | no_cache=0 |
5262 | # Check whether --enable-constraints or --disable-constraints was given. | |
5263 | if test "${enable_constraints+set}" = set; then | |
5264 | enableval="$enable_constraints" | |
a0b9e27f | 5265 | |
10f2d63a VZ |
5266 | if test "$enableval" = yes; then |
5267 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5268 | else | |
5269 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5270 | fi | |
a0b9e27f | 5271 | |
10f2d63a | 5272 | else |
a0b9e27f | 5273 | |
10f2d63a VZ |
5274 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5275 | if test "x$LINE" != x ; then | |
5276 | eval "DEFAULT_$LINE" | |
5277 | else | |
5278 | no_cache=1 | |
5279 | fi | |
5280 | ||
5281 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
a0b9e27f MB |
5282 | |
5283 | fi | |
10f2d63a VZ |
5284 | |
5285 | ||
5286 | eval "$ac_cv_use_constraints" | |
5287 | if test "$no_cache" != 1; then | |
5288 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5289 | fi | |
5290 | ||
5291 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
a0b9e27f | 5292 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5293 | else |
a0b9e27f | 5294 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5295 | fi |
a0b9e27f | 5296 | |
10f2d63a | 5297 | |
5005acfe VZ |
5298 | enablestring= |
5299 | echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6 | |
ac0c4cc3 | 5300 | echo "configure:5301: checking for --${enablestring:-enable}-printarch" >&5 |
10f2d63a VZ |
5301 | no_cache=0 |
5302 | # Check whether --enable-printarch or --disable-printarch was given. | |
5303 | if test "${enable_printarch+set}" = set; then | |
5304 | enableval="$enable_printarch" | |
a0b9e27f | 5305 | |
10f2d63a VZ |
5306 | if test "$enableval" = yes; then |
5307 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5308 | else | |
5309 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5310 | fi | |
a0b9e27f | 5311 | |
10f2d63a | 5312 | else |
a0b9e27f | 5313 | |
10f2d63a VZ |
5314 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5315 | if test "x$LINE" != x ; then | |
5316 | eval "DEFAULT_$LINE" | |
5317 | else | |
5318 | no_cache=1 | |
5319 | fi | |
5320 | ||
5321 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
a0b9e27f MB |
5322 | |
5323 | fi | |
10f2d63a VZ |
5324 | |
5325 | ||
5326 | eval "$ac_cv_use_printarch" | |
5327 | if test "$no_cache" != 1; then | |
5328 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5329 | fi | |
5330 | ||
5331 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
a0b9e27f | 5332 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5333 | else |
a0b9e27f | 5334 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5335 | fi |
a0b9e27f | 5336 | |
10f2d63a | 5337 | |
5005acfe VZ |
5338 | enablestring= |
5339 | echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6 | |
ac0c4cc3 | 5340 | echo "configure:5341: checking for --${enablestring:-enable}-mdi" >&5 |
10f2d63a VZ |
5341 | no_cache=0 |
5342 | # Check whether --enable-mdi or --disable-mdi was given. | |
5343 | if test "${enable_mdi+set}" = set; then | |
5344 | enableval="$enable_mdi" | |
a0b9e27f | 5345 | |
10f2d63a VZ |
5346 | if test "$enableval" = yes; then |
5347 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5348 | else | |
5349 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5350 | fi | |
a0b9e27f | 5351 | |
10f2d63a | 5352 | else |
a0b9e27f | 5353 | |
10f2d63a VZ |
5354 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5355 | if test "x$LINE" != x ; then | |
5356 | eval "DEFAULT_$LINE" | |
5357 | else | |
5358 | no_cache=1 | |
5359 | fi | |
5360 | ||
5361 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
a0b9e27f MB |
5362 | |
5363 | fi | |
10f2d63a VZ |
5364 | |
5365 | ||
5366 | eval "$ac_cv_use_mdi" | |
5367 | if test "$no_cache" != 1; then | |
5368 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5369 | fi | |
5370 | ||
5371 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
a0b9e27f | 5372 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5373 | else |
a0b9e27f | 5374 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5375 | fi |
a0b9e27f | 5376 | |
698dcdb6 | 5377 | |
5005acfe VZ |
5378 | enablestring= |
5379 | echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6 | |
ac0c4cc3 | 5380 | echo "configure:5381: checking for --${enablestring:-enable}-loggui" >&5 |
1e6feb95 VZ |
5381 | no_cache=0 |
5382 | # Check whether --enable-loggui or --disable-loggui was given. | |
5383 | if test "${enable_loggui+set}" = set; then | |
5384 | enableval="$enable_loggui" | |
a0b9e27f | 5385 | |
1e6feb95 VZ |
5386 | if test "$enableval" = yes; then |
5387 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5388 | else | |
5389 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5390 | fi | |
a0b9e27f | 5391 | |
1e6feb95 | 5392 | else |
a0b9e27f | 5393 | |
1e6feb95 VZ |
5394 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
5395 | if test "x$LINE" != x ; then | |
5396 | eval "DEFAULT_$LINE" | |
5397 | else | |
5398 | no_cache=1 | |
5399 | fi | |
5400 | ||
5401 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
a0b9e27f MB |
5402 | |
5403 | fi | |
1e6feb95 VZ |
5404 | |
5405 | ||
5406 | eval "$ac_cv_use_loggui" | |
5407 | if test "$no_cache" != 1; then | |
5408 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5409 | fi | |
5410 | ||
5411 | if test "$wxUSE_LOGGUI" = yes; then | |
a0b9e27f | 5412 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5413 | else |
a0b9e27f | 5414 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5415 | fi |
a0b9e27f | 5416 | |
1e6feb95 | 5417 | |
5005acfe VZ |
5418 | enablestring= |
5419 | echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6 | |
ac0c4cc3 | 5420 | echo "configure:5421: checking for --${enablestring:-enable}-logwin" >&5 |
1e6feb95 VZ |
5421 | no_cache=0 |
5422 | # Check whether --enable-logwin or --disable-logwin was given. | |
5423 | if test "${enable_logwin+set}" = set; then | |
5424 | enableval="$enable_logwin" | |
a0b9e27f | 5425 | |
1e6feb95 VZ |
5426 | if test "$enableval" = yes; then |
5427 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5428 | else | |
5429 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5430 | fi | |
a0b9e27f | 5431 | |
1e6feb95 | 5432 | else |
a0b9e27f | 5433 | |
1e6feb95 VZ |
5434 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
5435 | if test "x$LINE" != x ; then | |
5436 | eval "DEFAULT_$LINE" | |
5437 | else | |
5438 | no_cache=1 | |
5439 | fi | |
5440 | ||
5441 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
a0b9e27f MB |
5442 | |
5443 | fi | |
1e6feb95 VZ |
5444 | |
5445 | ||
5446 | eval "$ac_cv_use_logwin" | |
5447 | if test "$no_cache" != 1; then | |
5448 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5449 | fi | |
5450 | ||
5451 | if test "$wxUSE_LOGWINDOW" = yes; then | |
a0b9e27f | 5452 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5453 | else |
a0b9e27f | 5454 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5455 | fi |
a0b9e27f | 5456 | |
1e6feb95 | 5457 | |
5005acfe VZ |
5458 | enablestring= |
5459 | echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6 | |
ac0c4cc3 | 5460 | echo "configure:5461: checking for --${enablestring:-enable}-logdialog" >&5 |
69d27ff7 MB |
5461 | no_cache=0 |
5462 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5463 | if test "${enable_logdialog+set}" = set; then | |
5464 | enableval="$enable_logdialog" | |
a0b9e27f | 5465 | |
69d27ff7 MB |
5466 | if test "$enableval" = yes; then |
5467 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5468 | else | |
5469 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5470 | fi | |
a0b9e27f | 5471 | |
69d27ff7 | 5472 | else |
a0b9e27f | 5473 | |
69d27ff7 MB |
5474 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
5475 | if test "x$LINE" != x ; then | |
5476 | eval "DEFAULT_$LINE" | |
5477 | else | |
5478 | no_cache=1 | |
5479 | fi | |
5480 | ||
5481 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
a0b9e27f MB |
5482 | |
5483 | fi | |
69d27ff7 MB |
5484 | |
5485 | ||
5486 | eval "$ac_cv_use_logdialog" | |
5487 | if test "$no_cache" != 1; then | |
5488 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5489 | fi | |
5490 | ||
5491 | if test "$wxUSE_LOGDIALOG" = yes; then | |
a0b9e27f | 5492 | echo "$ac_t""yes" 1>&6 |
69d27ff7 | 5493 | else |
a0b9e27f | 5494 | echo "$ac_t""no" 1>&6 |
69d27ff7 | 5495 | fi |
a0b9e27f | 5496 | |
8284b0c5 | 5497 | |
52127426 | 5498 | |
5005acfe VZ |
5499 | enablestring= |
5500 | echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6 | |
ac0c4cc3 | 5501 | echo "configure:5502: checking for --${enablestring:-enable}-postscript" >&5 |
10f2d63a VZ |
5502 | no_cache=0 |
5503 | # Check whether --enable-postscript or --disable-postscript was given. | |
5504 | if test "${enable_postscript+set}" = set; then | |
5505 | enableval="$enable_postscript" | |
a0b9e27f | 5506 | |
10f2d63a VZ |
5507 | if test "$enableval" = yes; then |
5508 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5509 | else | |
5510 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5511 | fi | |
a0b9e27f | 5512 | |
10f2d63a | 5513 | else |
a0b9e27f | 5514 | |
10f2d63a VZ |
5515 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5516 | if test "x$LINE" != x ; then | |
5517 | eval "DEFAULT_$LINE" | |
5518 | else | |
5519 | no_cache=1 | |
5520 | fi | |
5521 | ||
5522 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
a0b9e27f MB |
5523 | |
5524 | fi | |
10f2d63a VZ |
5525 | |
5526 | ||
5527 | eval "$ac_cv_use_postscript" | |
5528 | if test "$no_cache" != 1; then | |
5529 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5530 | fi | |
5531 | ||
5532 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
a0b9e27f | 5533 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5534 | else |
a0b9e27f | 5535 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5536 | fi |
a0b9e27f | 5537 | |
8284b0c5 MB |
5538 | |
5539 | ||
52127426 | 5540 | |
8284b0c5 | 5541 | |
5005acfe VZ |
5542 | enablestring= |
5543 | echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6 | |
ac0c4cc3 | 5544 | echo "configure:5545: checking for --${enablestring:-enable}-prologio" >&5 |
10f2d63a VZ |
5545 | no_cache=0 |
5546 | # Check whether --enable-prologio or --disable-prologio was given. | |
5547 | if test "${enable_prologio+set}" = set; then | |
5548 | enableval="$enable_prologio" | |
a0b9e27f | 5549 | |
10f2d63a VZ |
5550 | if test "$enableval" = yes; then |
5551 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5552 | else | |
5553 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5554 | fi | |
a0b9e27f | 5555 | |
10f2d63a | 5556 | else |
a0b9e27f | 5557 | |
10f2d63a VZ |
5558 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5559 | if test "x$LINE" != x ; then | |
5560 | eval "DEFAULT_$LINE" | |
5561 | else | |
5562 | no_cache=1 | |
5563 | fi | |
5564 | ||
5565 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
a0b9e27f MB |
5566 | |
5567 | fi | |
10f2d63a VZ |
5568 | |
5569 | ||
5570 | eval "$ac_cv_use_prologio" | |
5571 | if test "$no_cache" != 1; then | |
5572 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5573 | fi | |
5574 | ||
5575 | if test "$wxUSE_PROLOGIO" = yes; then | |
a0b9e27f | 5576 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5577 | else |
a0b9e27f | 5578 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5579 | fi |
a0b9e27f | 5580 | |
10f2d63a | 5581 | |
5005acfe VZ |
5582 | enablestring= |
5583 | echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6 | |
ac0c4cc3 | 5584 | echo "configure:5585: checking for --${enablestring:-enable}-resources" >&5 |
10f2d63a VZ |
5585 | no_cache=0 |
5586 | # Check whether --enable-resources or --disable-resources was given. | |
5587 | if test "${enable_resources+set}" = set; then | |
5588 | enableval="$enable_resources" | |
a0b9e27f | 5589 | |
10f2d63a VZ |
5590 | if test "$enableval" = yes; then |
5591 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5592 | else | |
5593 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5594 | fi | |
a0b9e27f | 5595 | |
10f2d63a | 5596 | else |
a0b9e27f | 5597 | |
10f2d63a VZ |
5598 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5599 | if test "x$LINE" != x ; then | |
5600 | eval "DEFAULT_$LINE" | |
5601 | else | |
5602 | no_cache=1 | |
5603 | fi | |
5604 | ||
5605 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
a0b9e27f MB |
5606 | |
5607 | fi | |
10f2d63a VZ |
5608 | |
5609 | ||
5610 | eval "$ac_cv_use_resources" | |
5611 | if test "$no_cache" != 1; then | |
5612 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5613 | fi | |
5614 | ||
5615 | if test "$wxUSE_RESOURCES" = yes; then | |
a0b9e27f | 5616 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5617 | else |
a0b9e27f | 5618 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5619 | fi |
a0b9e27f | 5620 | |
8284b0c5 | 5621 | |
52127426 | 5622 | |
5005acfe VZ |
5623 | enablestring= |
5624 | echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6 | |
ac0c4cc3 | 5625 | echo "configure:5626: checking for --${enablestring:-enable}-xresources" >&5 |
10f2d63a VZ |
5626 | no_cache=0 |
5627 | # Check whether --enable-xresources or --disable-xresources was given. | |
5628 | if test "${enable_xresources+set}" = set; then | |
5629 | enableval="$enable_xresources" | |
a0b9e27f | 5630 | |
10f2d63a VZ |
5631 | if test "$enableval" = yes; then |
5632 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5633 | else | |
5634 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5635 | fi | |
a0b9e27f | 5636 | |
10f2d63a | 5637 | else |
a0b9e27f | 5638 | |
10f2d63a VZ |
5639 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5640 | if test "x$LINE" != x ; then | |
5641 | eval "DEFAULT_$LINE" | |
5642 | else | |
5643 | no_cache=1 | |
5644 | fi | |
5645 | ||
5646 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
a0b9e27f MB |
5647 | |
5648 | fi | |
10f2d63a VZ |
5649 | |
5650 | ||
5651 | eval "$ac_cv_use_xresources" | |
5652 | if test "$no_cache" != 1; then | |
5653 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5654 | fi | |
5655 | ||
5656 | if test "$wxUSE_X_RESOURCES" = yes; then | |
a0b9e27f | 5657 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5658 | else |
a0b9e27f | 5659 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5660 | fi |
a0b9e27f | 5661 | |
8284b0c5 MB |
5662 | |
5663 | ||
52127426 | 5664 | |
5005acfe VZ |
5665 | enablestring= |
5666 | echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6 | |
ac0c4cc3 | 5667 | echo "configure:5668: checking for --${enablestring:-enable}-clipboard" >&5 |
10f2d63a VZ |
5668 | no_cache=0 |
5669 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5670 | if test "${enable_clipboard+set}" = set; then | |
5671 | enableval="$enable_clipboard" | |
a0b9e27f | 5672 | |
10f2d63a VZ |
5673 | if test "$enableval" = yes; then |
5674 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5675 | else | |
5676 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5677 | fi | |
a0b9e27f | 5678 | |
10f2d63a | 5679 | else |
a0b9e27f | 5680 | |
10f2d63a VZ |
5681 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5682 | if test "x$LINE" != x ; then | |
5683 | eval "DEFAULT_$LINE" | |
5684 | else | |
5685 | no_cache=1 | |
5686 | fi | |
5687 | ||
5688 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
a0b9e27f MB |
5689 | |
5690 | fi | |
10f2d63a VZ |
5691 | |
5692 | ||
5693 | eval "$ac_cv_use_clipboard" | |
5694 | if test "$no_cache" != 1; then | |
5695 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5696 | fi | |
5697 | ||
5698 | if test "$wxUSE_CLIPBOARD" = yes; then | |
a0b9e27f | 5699 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5700 | else |
a0b9e27f | 5701 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5702 | fi |
a0b9e27f | 5703 | |
10f2d63a | 5704 | |
5005acfe VZ |
5705 | enablestring= |
5706 | echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6 | |
ac0c4cc3 | 5707 | echo "configure:5708: checking for --${enablestring:-enable}-dnd" >&5 |
10f2d63a VZ |
5708 | no_cache=0 |
5709 | # Check whether --enable-dnd or --disable-dnd was given. | |
5710 | if test "${enable_dnd+set}" = set; then | |
5711 | enableval="$enable_dnd" | |
a0b9e27f | 5712 | |
10f2d63a VZ |
5713 | if test "$enableval" = yes; then |
5714 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5715 | else | |
5716 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5717 | fi | |
a0b9e27f | 5718 | |
10f2d63a | 5719 | else |
a0b9e27f | 5720 | |
10f2d63a VZ |
5721 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5722 | if test "x$LINE" != x ; then | |
5723 | eval "DEFAULT_$LINE" | |
5724 | else | |
5725 | no_cache=1 | |
5726 | fi | |
5727 | ||
5728 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
a0b9e27f MB |
5729 | |
5730 | fi | |
10f2d63a VZ |
5731 | |
5732 | ||
5733 | eval "$ac_cv_use_dnd" | |
5734 | if test "$no_cache" != 1; then | |
5735 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5736 | fi | |
5737 | ||
5738 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
a0b9e27f | 5739 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5740 | else |
a0b9e27f | 5741 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5742 | fi |
a0b9e27f | 5743 | |
10f2d63a | 5744 | |
5005acfe VZ |
5745 | enablestring= |
5746 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
ac0c4cc3 | 5747 | echo "configure:5748: checking for --${enablestring:-enable}-metafile" >&5 |
b64f0a5f RL |
5748 | no_cache=0 |
5749 | # Check whether --enable-metafile or --disable-metafile was given. | |
5750 | if test "${enable_metafile+set}" = set; then | |
5751 | enableval="$enable_metafile" | |
a0b9e27f | 5752 | |
b64f0a5f RL |
5753 | if test "$enableval" = yes; then |
5754 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5755 | else | |
5756 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5757 | fi | |
a0b9e27f | 5758 | |
b64f0a5f | 5759 | else |
a0b9e27f | 5760 | |
b64f0a5f RL |
5761 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5762 | if test "x$LINE" != x ; then | |
5763 | eval "DEFAULT_$LINE" | |
5764 | else | |
5765 | no_cache=1 | |
5766 | fi | |
5767 | ||
5768 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
5769 | |
5770 | fi | |
b64f0a5f RL |
5771 | |
5772 | ||
5773 | eval "$ac_cv_use_metafile" | |
5774 | if test "$no_cache" != 1; then | |
5775 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5776 | fi | |
5777 | ||
5778 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 5779 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5780 | else |
a0b9e27f | 5781 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5782 | fi |
a0b9e27f | 5783 | |
52127426 | 5784 | |
8284b0c5 | 5785 | |
5005acfe VZ |
5786 | enablestring= |
5787 | echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6 | |
ac0c4cc3 | 5788 | echo "configure:5789: checking for --${enablestring:-enable}-treelayout" >&5 |
10f2d63a | 5789 | no_cache=0 |
24176f2c GD |
5790 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5791 | if test "${enable_treelayout+set}" = set; then | |
5792 | enableval="$enable_treelayout" | |
a0b9e27f | 5793 | |
10f2d63a | 5794 | if test "$enableval" = yes; then |
24176f2c | 5795 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5796 | else |
24176f2c | 5797 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5798 | fi |
a0b9e27f | 5799 | |
10f2d63a | 5800 | else |
a0b9e27f | 5801 | |
24176f2c | 5802 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5803 | if test "x$LINE" != x ; then |
5804 | eval "DEFAULT_$LINE" | |
5805 | else | |
5806 | no_cache=1 | |
5807 | fi | |
5808 | ||
24176f2c | 5809 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
a0b9e27f MB |
5810 | |
5811 | fi | |
10f2d63a VZ |
5812 | |
5813 | ||
24176f2c | 5814 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5815 | if test "$no_cache" != 1; then |
24176f2c | 5816 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5817 | fi |
5818 | ||
24176f2c | 5819 | if test "$wxUSE_TREELAYOUT" = yes; then |
a0b9e27f | 5820 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5821 | else |
a0b9e27f | 5822 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5823 | fi |
a0b9e27f | 5824 | |
8284b0c5 | 5825 | |
52127426 | 5826 | |
8284b0c5 | 5827 | |
5005acfe VZ |
5828 | enablestring= |
5829 | echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6 | |
ac0c4cc3 | 5830 | echo "configure:5831: checking for --${enablestring:-enable}-controls" >&5 |
10f2d63a VZ |
5831 | no_cache=0 |
5832 | # Check whether --enable-controls or --disable-controls was given. | |
5833 | if test "${enable_controls+set}" = set; then | |
5834 | enableval="$enable_controls" | |
a0b9e27f | 5835 | |
10f2d63a VZ |
5836 | if test "$enableval" = yes; then |
5837 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5838 | else | |
5839 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5840 | fi | |
a0b9e27f | 5841 | |
10f2d63a | 5842 | else |
a0b9e27f | 5843 | |
10f2d63a VZ |
5844 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5845 | if test "x$LINE" != x ; then | |
5846 | eval "DEFAULT_$LINE" | |
5847 | else | |
5848 | no_cache=1 | |
5849 | fi | |
5850 | ||
5851 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
a0b9e27f MB |
5852 | |
5853 | fi | |
10f2d63a VZ |
5854 | |
5855 | ||
5856 | eval "$ac_cv_use_controls" | |
5857 | if test "$no_cache" != 1; then | |
5858 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5859 | fi | |
5860 | ||
5861 | if test "$wxUSE_CONTROLS" = yes; then | |
a0b9e27f | 5862 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5863 | else |
a0b9e27f | 5864 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5865 | fi |
a0b9e27f | 5866 | |
10f2d63a VZ |
5867 | |
5868 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5869 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5870 | DEFAULT_wxUSE_BMPBUTTON=yes |
5871 | DEFAULT_wxUSE_BUTTON=yes | |
5872 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5873 | DEFAULT_wxUSE_CARET=yes |
5874 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5875 | DEFAULT_wxUSE_CHECKBOX=yes |
5876 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5877 | DEFAULT_wxUSE_CHOICE=yes | |
5878 | DEFAULT_wxUSE_GAUGE=yes | |
5879 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5880 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5881 | DEFAULT_wxUSE_IMAGLIST=yes |
5882 | DEFAULT_wxUSE_LISTBOX=yes | |
5883 | DEFAULT_wxUSE_LISTCTRL=yes | |
5884 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5885 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5886 | DEFAULT_wxUSE_RADIOBOX=yes |
5887 | DEFAULT_wxUSE_RADIOBTN=yes | |
5888 | DEFAULT_wxUSE_SASH=yes | |
5889 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5890 | DEFAULT_wxUSE_SLIDER=yes | |
5891 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5892 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5893 | DEFAULT_wxUSE_SPLITTER=yes |
5894 | DEFAULT_wxUSE_STATBMP=yes | |
5895 | DEFAULT_wxUSE_STATBOX=yes | |
5896 | DEFAULT_wxUSE_STATLINE=yes | |
5897 | DEFAULT_wxUSE_STATUSBAR=yes | |
5898 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5899 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5900 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5901 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5902 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5903 | DEFAULT_wxUSE_TOOLTIPS=yes |
5904 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5905 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5906 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5907 | elif test "$wxUSE_CONTROLS" = "no"; then |
5908 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5909 | DEFAULT_wxUSE_BMPBUTTON=no |
5910 | DEFAULT_wxUSE_BUTTON=no | |
5911 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5912 | DEFAULT_wxUSE_CARET=no |
5913 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5914 | DEFAULT_wxUSE_CHECKBOX=no |
5915 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5916 | DEFAULT_wxUSE_CHOICE=no | |
5917 | DEFAULT_wxUSE_GAUGE=no | |
5918 | DEFAULT_wxUSE_GRID=no | |
5919 | DEFAULT_wxUSE_NEW_GRID=no | |
5920 | DEFAULT_wxUSE_IMAGLIST=no | |
5921 | DEFAULT_wxUSE_LISTBOX=no | |
5922 | DEFAULT_wxUSE_LISTCTRL=no | |
5923 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5924 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5925 | DEFAULT_wxUSE_RADIOBOX=no |
5926 | DEFAULT_wxUSE_RADIOBTN=no | |
5927 | DEFAULT_wxUSE_SASH=no | |
5928 | DEFAULT_wxUSE_SCROLLBAR=no | |
5929 | DEFAULT_wxUSE_SLIDER=no | |
5930 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5931 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5932 | DEFAULT_wxUSE_SPLITTER=no |
5933 | DEFAULT_wxUSE_STATBMP=no | |
5934 | DEFAULT_wxUSE_STATBOX=no | |
5935 | DEFAULT_wxUSE_STATLINE=no | |
5936 | DEFAULT_wxUSE_STATUSBAR=no | |
5937 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5938 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5939 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5940 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5941 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5942 | DEFAULT_wxUSE_TOOLTIPS=no |
5943 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5944 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5945 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5946 | fi |
5947 | ||
ac0c4cc3 DE |
5948 | ## FIXME: This is a blatant hack |
5949 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
5950 | wxUSE_PRINTING_ARCHITECTURE=no | |
5951 | wxUSE_HELP=no | |
5952 | wxUSE_CLIPBOARD=no | |
5953 | wxUSE_DRAG_AND_DROP=no | |
5954 | wxUSE_DATAOBJ=no | |
5955 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
5956 | DEFAULT_wxUSE_TEXTDLG=no | |
5957 | DEFAULT_wxUSE_GAUGE=no | |
5958 | DEFAULT_wxUSE_SCROLLBAR=no | |
5959 | DEFAULT_wxUSE_SLIDER=no | |
5960 | DEFAULT_wxUSE_COMBOBOX=no | |
5961 | DEFAULT_wxUSE_CALCTRL=no | |
5962 | DEFAULT_wxUSE_SPINBTN=no | |
5963 | DEFAULT_wxUSE_SPINCTRL=no | |
5964 | DEFAULT_wxUSE_TOOLTIPS=no | |
ac0c4cc3 DE |
5965 | DEFAULT_wxUSE_COLOURDLG=no |
5966 | DEFAULT_wxUSE_DIRDLG=no | |
5967 | DEFAULT_wxUSE_DRAGIMAGE=no | |
5968 | DEFAULT_wxUSE_FINDREPLDLG=no | |
5969 | DEFAULT_wxUSE_FONTDLG=no | |
5970 | DEFAULT_wxUSE_GRID=no | |
5971 | DEFAULT_wxUSE_NEW_GRID=no | |
5972 | DEFAULT_wxUSE_NUMBERDLG=no | |
5973 | DEFAULT_wxUSE_PROGRESSDLG=no | |
5974 | DEFAULT_wxUSE_PROPSHEET=no | |
5975 | DEFAULT_wxUSE_SASH=no | |
5976 | DEFAULT_wxUSE_SPLITTER=no | |
5977 | DEFAULT_wxUSE_WIZARDDLG=no | |
5978 | DEFAULT_wxUSE_SPLITTER=no | |
5979 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
5980 | DEFAULT_wxUSE_TREECTRL=no | |
5981 | fi | |
5982 | ||
8284b0c5 | 5983 | |
5005acfe VZ |
5984 | enablestring= |
5985 | echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6 | |
9b4d9d56 | 5986 | echo "configure:5987: checking for --${enablestring:-enable}-accel" >&5 |
10f2d63a VZ |
5987 | no_cache=0 |
5988 | # Check whether --enable-accel or --disable-accel was given. | |
5989 | if test "${enable_accel+set}" = set; then | |
5990 | enableval="$enable_accel" | |
a0b9e27f | 5991 | |
10f2d63a VZ |
5992 | if test "$enableval" = yes; then |
5993 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5994 | else | |
5995 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5996 | fi | |
a0b9e27f | 5997 | |
10f2d63a | 5998 | else |
a0b9e27f | 5999 | |
10f2d63a VZ |
6000 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
6001 | if test "x$LINE" != x ; then | |
6002 | eval "DEFAULT_$LINE" | |
6003 | else | |
6004 | no_cache=1 | |
6005 | fi | |
6006 | ||
6007 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
a0b9e27f MB |
6008 | |
6009 | fi | |
10f2d63a VZ |
6010 | |
6011 | ||
6012 | eval "$ac_cv_use_accel" | |
6013 | if test "$no_cache" != 1; then | |
6014 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6015 | fi | |
6016 | ||
6017 | if test "$wxUSE_ACCEL" = yes; then | |
a0b9e27f | 6018 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6019 | else |
a0b9e27f | 6020 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6021 | fi |
a0b9e27f | 6022 | |
10f2d63a | 6023 | |
5005acfe VZ |
6024 | enablestring= |
6025 | echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6 | |
9b4d9d56 | 6026 | echo "configure:6027: checking for --${enablestring:-enable}-button" >&5 |
10f2d63a | 6027 | no_cache=0 |
1e6feb95 VZ |
6028 | # Check whether --enable-button or --disable-button was given. |
6029 | if test "${enable_button+set}" = set; then | |
6030 | enableval="$enable_button" | |
a0b9e27f | 6031 | |
10f2d63a | 6032 | if test "$enableval" = yes; then |
1e6feb95 | 6033 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 6034 | else |
1e6feb95 | 6035 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 6036 | fi |
a0b9e27f | 6037 | |
10f2d63a | 6038 | else |
a0b9e27f | 6039 | |
1e6feb95 | 6040 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
6041 | if test "x$LINE" != x ; then |
6042 | eval "DEFAULT_$LINE" | |
6043 | else | |
6044 | no_cache=1 | |
6045 | fi | |
6046 | ||
1e6feb95 | 6047 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
a0b9e27f MB |
6048 | |
6049 | fi | |
10f2d63a VZ |
6050 | |
6051 | ||
1e6feb95 | 6052 | eval "$ac_cv_use_button" |
10f2d63a | 6053 | if test "$no_cache" != 1; then |
1e6feb95 | 6054 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6055 | fi |
6056 | ||
1e6feb95 | 6057 | if test "$wxUSE_BUTTON" = yes; then |
a0b9e27f | 6058 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6059 | else |
a0b9e27f | 6060 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6061 | fi |
a0b9e27f | 6062 | |
10f2d63a | 6063 | |
5005acfe VZ |
6064 | enablestring= |
6065 | echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6 | |
9b4d9d56 | 6066 | echo "configure:6067: checking for --${enablestring:-enable}-bmpbutton" >&5 |
10f2d63a VZ |
6067 | no_cache=0 |
6068 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6069 | if test "${enable_bmpbutton+set}" = set; then | |
6070 | enableval="$enable_bmpbutton" | |
a0b9e27f | 6071 | |
10f2d63a VZ |
6072 | if test "$enableval" = yes; then |
6073 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6074 | else | |
6075 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6076 | fi | |
a0b9e27f | 6077 | |
10f2d63a | 6078 | else |
a0b9e27f | 6079 | |
10f2d63a VZ |
6080 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
6081 | if test "x$LINE" != x ; then | |
6082 | eval "DEFAULT_$LINE" | |
6083 | else | |
6084 | no_cache=1 | |
6085 | fi | |
6086 | ||
6087 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
a0b9e27f MB |
6088 | |
6089 | fi | |
10f2d63a VZ |
6090 | |
6091 | ||
6092 | eval "$ac_cv_use_bmpbutton" | |
6093 | if test "$no_cache" != 1; then | |
6094 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6095 | fi | |
6096 | ||
6097 | if test "$wxUSE_BMPBUTTON" = yes; then | |
a0b9e27f | 6098 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6099 | else |
a0b9e27f | 6100 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6101 | fi |
a0b9e27f | 6102 | |
10f2d63a | 6103 | |
5005acfe VZ |
6104 | enablestring= |
6105 | echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6 | |
9b4d9d56 | 6106 | echo "configure:6107: checking for --${enablestring:-enable}-calendar" >&5 |
1e6feb95 VZ |
6107 | no_cache=0 |
6108 | # Check whether --enable-calendar or --disable-calendar was given. | |
6109 | if test "${enable_calendar+set}" = set; then | |
6110 | enableval="$enable_calendar" | |
a0b9e27f | 6111 | |
1e6feb95 VZ |
6112 | if test "$enableval" = yes; then |
6113 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6114 | else | |
6115 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6116 | fi | |
a0b9e27f | 6117 | |
1e6feb95 | 6118 | else |
a0b9e27f | 6119 | |
1e6feb95 VZ |
6120 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6121 | if test "x$LINE" != x ; then | |
6122 | eval "DEFAULT_$LINE" | |
6123 | else | |
6124 | no_cache=1 | |
6125 | fi | |
6126 | ||
6127 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
a0b9e27f MB |
6128 | |
6129 | fi | |
1e6feb95 VZ |
6130 | |
6131 | ||
6132 | eval "$ac_cv_use_calendar" | |
6133 | if test "$no_cache" != 1; then | |
6134 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6135 | fi | |
6136 | ||
6137 | if test "$wxUSE_CALCTRL" = yes; then | |
a0b9e27f | 6138 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6139 | else |
a0b9e27f | 6140 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6141 | fi |
a0b9e27f | 6142 | |
1e6feb95 | 6143 | |
5005acfe VZ |
6144 | enablestring= |
6145 | echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6 | |
9b4d9d56 | 6146 | echo "configure:6147: checking for --${enablestring:-enable}-caret" >&5 |
1e6feb95 VZ |
6147 | no_cache=0 |
6148 | # Check whether --enable-caret or --disable-caret was given. | |
6149 | if test "${enable_caret+set}" = set; then | |
6150 | enableval="$enable_caret" | |
a0b9e27f | 6151 | |
1e6feb95 VZ |
6152 | if test "$enableval" = yes; then |
6153 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6154 | else | |
6155 | ac_cv_use_caret='wxUSE_CARET=no' | |
6156 | fi | |
a0b9e27f | 6157 | |
1e6feb95 | 6158 | else |
a0b9e27f | 6159 | |
1e6feb95 VZ |
6160 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6161 | if test "x$LINE" != x ; then | |
6162 | eval "DEFAULT_$LINE" | |
6163 | else | |
6164 | no_cache=1 | |
6165 | fi | |
6166 | ||
6167 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
a0b9e27f MB |
6168 | |
6169 | fi | |
1e6feb95 VZ |
6170 | |
6171 | ||
6172 | eval "$ac_cv_use_caret" | |
6173 | if test "$no_cache" != 1; then | |
6174 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6175 | fi | |
6176 | ||
6177 | if test "$wxUSE_CARET" = yes; then | |
a0b9e27f | 6178 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6179 | else |
a0b9e27f | 6180 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6181 | fi |
a0b9e27f | 6182 | |
1e6feb95 | 6183 | |
5005acfe VZ |
6184 | enablestring= |
6185 | echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6 | |
9b4d9d56 | 6186 | echo "configure:6187: checking for --${enablestring:-enable}-checkbox" >&5 |
10f2d63a VZ |
6187 | no_cache=0 |
6188 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6189 | if test "${enable_checkbox+set}" = set; then | |
6190 | enableval="$enable_checkbox" | |
a0b9e27f | 6191 | |
10f2d63a VZ |
6192 | if test "$enableval" = yes; then |
6193 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6194 | else | |
6195 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6196 | fi | |
a0b9e27f | 6197 | |
10f2d63a | 6198 | else |
a0b9e27f | 6199 | |
10f2d63a VZ |
6200 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6201 | if test "x$LINE" != x ; then | |
6202 | eval "DEFAULT_$LINE" | |
6203 | else | |
6204 | no_cache=1 | |
6205 | fi | |
6206 | ||
6207 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
a0b9e27f MB |
6208 | |
6209 | fi | |
10f2d63a VZ |
6210 | |
6211 | ||
6212 | eval "$ac_cv_use_checkbox" | |
6213 | if test "$no_cache" != 1; then | |
6214 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6215 | fi | |
6216 | ||
6217 | if test "$wxUSE_CHECKBOX" = yes; then | |
a0b9e27f | 6218 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6219 | else |
a0b9e27f | 6220 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6221 | fi |
a0b9e27f | 6222 | |
10f2d63a | 6223 | |
5005acfe VZ |
6224 | enablestring= |
6225 | echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6 | |
9b4d9d56 | 6226 | echo "configure:6227: checking for --${enablestring:-enable}-checklst" >&5 |
10f2d63a VZ |
6227 | no_cache=0 |
6228 | # Check whether --enable-checklst or --disable-checklst was given. | |
6229 | if test "${enable_checklst+set}" = set; then | |
6230 | enableval="$enable_checklst" | |
a0b9e27f | 6231 | |
10f2d63a VZ |
6232 | if test "$enableval" = yes; then |
6233 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6234 | else | |
6235 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6236 | fi | |
a0b9e27f | 6237 | |
10f2d63a | 6238 | else |
a0b9e27f | 6239 | |
10f2d63a VZ |
6240 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6241 | if test "x$LINE" != x ; then | |
6242 | eval "DEFAULT_$LINE" | |
6243 | else | |
6244 | no_cache=1 | |
6245 | fi | |
6246 | ||
6247 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
a0b9e27f MB |
6248 | |
6249 | fi | |
10f2d63a VZ |
6250 | |
6251 | ||
6252 | eval "$ac_cv_use_checklst" | |
6253 | if test "$no_cache" != 1; then | |
6254 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6255 | fi | |
6256 | ||
6257 | if test "$wxUSE_CHECKLST" = yes; then | |
a0b9e27f | 6258 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6259 | else |
a0b9e27f | 6260 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6261 | fi |
a0b9e27f | 6262 | |
10f2d63a | 6263 | |
5005acfe VZ |
6264 | enablestring= |
6265 | echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6 | |
9b4d9d56 | 6266 | echo "configure:6267: checking for --${enablestring:-enable}-choice" >&5 |
10f2d63a VZ |
6267 | no_cache=0 |
6268 | # Check whether --enable-choice or --disable-choice was given. | |
6269 | if test "${enable_choice+set}" = set; then | |
6270 | enableval="$enable_choice" | |
a0b9e27f | 6271 | |
10f2d63a VZ |
6272 | if test "$enableval" = yes; then |
6273 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6274 | else | |
6275 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6276 | fi | |
a0b9e27f | 6277 | |
10f2d63a | 6278 | else |
a0b9e27f | 6279 | |
10f2d63a VZ |
6280 | LINE=`grep "wxUSE_CHOICE" ${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_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
a0b9e27f MB |
6288 | |
6289 | fi | |
10f2d63a VZ |
6290 | |
6291 | ||
6292 | eval "$ac_cv_use_choice" | |
6293 | if test "$no_cache" != 1; then | |
6294 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6295 | fi | |
6296 | ||
6297 | if test "$wxUSE_CHOICE" = yes; then | |
a0b9e27f | 6298 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6299 | else |
a0b9e27f | 6300 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6301 | fi |
a0b9e27f | 6302 | |
10f2d63a | 6303 | |
5005acfe VZ |
6304 | enablestring= |
6305 | echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6 | |
9b4d9d56 | 6306 | echo "configure:6307: checking for --${enablestring:-enable}-combobox" >&5 |
10f2d63a VZ |
6307 | no_cache=0 |
6308 | # Check whether --enable-combobox or --disable-combobox was given. | |
6309 | if test "${enable_combobox+set}" = set; then | |
6310 | enableval="$enable_combobox" | |
a0b9e27f | 6311 | |
10f2d63a VZ |
6312 | if test "$enableval" = yes; then |
6313 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6314 | else | |
6315 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6316 | fi | |
a0b9e27f | 6317 | |
10f2d63a | 6318 | else |
a0b9e27f | 6319 | |
10f2d63a VZ |
6320 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6321 | if test "x$LINE" != x ; then | |
6322 | eval "DEFAULT_$LINE" | |
6323 | else | |
6324 | no_cache=1 | |
6325 | fi | |
6326 | ||
6327 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
a0b9e27f MB |
6328 | |
6329 | fi | |
10f2d63a VZ |
6330 | |
6331 | ||
6332 | eval "$ac_cv_use_combobox" | |
6333 | if test "$no_cache" != 1; then | |
6334 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6335 | fi | |
6336 | ||
6337 | if test "$wxUSE_COMBOBOX" = yes; then | |
a0b9e27f | 6338 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6339 | else |
a0b9e27f | 6340 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6341 | fi |
a0b9e27f | 6342 | |
10f2d63a | 6343 | |
da494b40 MB |
6344 | enablestring= |
6345 | echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6 | |
9b4d9d56 | 6346 | echo "configure:6347: checking for --${enablestring:-enable}-display" >&5 |
da494b40 MB |
6347 | no_cache=0 |
6348 | # Check whether --enable-display or --disable-display was given. | |
6349 | if test "${enable_display+set}" = set; then | |
6350 | enableval="$enable_display" | |
6351 | ||
6352 | if test "$enableval" = yes; then | |
6353 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
6354 | else | |
6355 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
6356 | fi | |
6357 | ||
6358 | else | |
6359 | ||
6360 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
6361 | if test "x$LINE" != x ; then | |
6362 | eval "DEFAULT_$LINE" | |
6363 | else | |
6364 | no_cache=1 | |
6365 | fi | |
6366 | ||
6367 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
6368 | ||
6369 | fi | |
6370 | ||
6371 | ||
6372 | eval "$ac_cv_use_display" | |
6373 | if test "$no_cache" != 1; then | |
6374 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
6375 | fi | |
6376 | ||
6377 | if test "$wxUSE_DISPLAY" = yes; then | |
6378 | echo "$ac_t""yes" 1>&6 | |
6379 | else | |
6380 | echo "$ac_t""no" 1>&6 | |
6381 | fi | |
6382 | ||
6383 | ||
5005acfe VZ |
6384 | enablestring= |
6385 | echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6 | |
9b4d9d56 | 6386 | echo "configure:6387: checking for --${enablestring:-enable}-gauge" >&5 |
10f2d63a VZ |
6387 | no_cache=0 |
6388 | # Check whether --enable-gauge or --disable-gauge was given. | |
6389 | if test "${enable_gauge+set}" = set; then | |
6390 | enableval="$enable_gauge" | |
a0b9e27f | 6391 | |
10f2d63a VZ |
6392 | if test "$enableval" = yes; then |
6393 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6394 | else | |
6395 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6396 | fi | |
a0b9e27f | 6397 | |
10f2d63a | 6398 | else |
a0b9e27f | 6399 | |
10f2d63a VZ |
6400 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6401 | if test "x$LINE" != x ; then | |
6402 | eval "DEFAULT_$LINE" | |
6403 | else | |
6404 | no_cache=1 | |
6405 | fi | |
6406 | ||
6407 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
a0b9e27f MB |
6408 | |
6409 | fi | |
10f2d63a VZ |
6410 | |
6411 | ||
6412 | eval "$ac_cv_use_gauge" | |
6413 | if test "$no_cache" != 1; then | |
6414 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6415 | fi | |
6416 | ||
6417 | if test "$wxUSE_GAUGE" = yes; then | |
a0b9e27f | 6418 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6419 | else |
a0b9e27f | 6420 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6421 | fi |
a0b9e27f | 6422 | |
10f2d63a | 6423 | |
5005acfe VZ |
6424 | enablestring= |
6425 | echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6 | |
9b4d9d56 | 6426 | echo "configure:6427: checking for --${enablestring:-enable}-grid" >&5 |
10f2d63a VZ |
6427 | no_cache=0 |
6428 | # Check whether --enable-grid or --disable-grid was given. | |
6429 | if test "${enable_grid+set}" = set; then | |
6430 | enableval="$enable_grid" | |
a0b9e27f | 6431 | |
10f2d63a VZ |
6432 | if test "$enableval" = yes; then |
6433 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6434 | else | |
6435 | ac_cv_use_grid='wxUSE_GRID=no' | |
6436 | fi | |
a0b9e27f | 6437 | |
10f2d63a | 6438 | else |
a0b9e27f | 6439 | |
10f2d63a VZ |
6440 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6441 | if test "x$LINE" != x ; then | |
6442 | eval "DEFAULT_$LINE" | |
6443 | else | |
6444 | no_cache=1 | |
6445 | fi | |
6446 | ||
6447 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
a0b9e27f MB |
6448 | |
6449 | fi | |
10f2d63a VZ |
6450 | |
6451 | ||
6452 | eval "$ac_cv_use_grid" | |
6453 | if test "$no_cache" != 1; then | |
6454 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6455 | fi | |
6456 | ||
6457 | if test "$wxUSE_GRID" = yes; then | |
a0b9e27f | 6458 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6459 | else |
a0b9e27f | 6460 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6461 | fi |
a0b9e27f | 6462 | |
10f2d63a | 6463 | |
5005acfe VZ |
6464 | enablestring= |
6465 | echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6 | |
9b4d9d56 | 6466 | echo "configure:6467: checking for --${enablestring:-enable}-newgrid" >&5 |
10f2d63a VZ |
6467 | no_cache=0 |
6468 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6469 | if test "${enable_newgrid+set}" = set; then | |
6470 | enableval="$enable_newgrid" | |
a0b9e27f | 6471 | |
10f2d63a VZ |
6472 | if test "$enableval" = yes; then |
6473 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6474 | else | |
6475 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6476 | fi | |
a0b9e27f | 6477 | |
10f2d63a | 6478 | else |
a0b9e27f | 6479 | |
10f2d63a VZ |
6480 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6481 | if test "x$LINE" != x ; then | |
6482 | eval "DEFAULT_$LINE" | |
6483 | else | |
6484 | no_cache=1 | |
6485 | fi | |
6486 | ||
6487 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
a0b9e27f MB |
6488 | |
6489 | fi | |
10f2d63a VZ |
6490 | |
6491 | ||
6492 | eval "$ac_cv_use_newgrid" | |
6493 | if test "$no_cache" != 1; then | |
6494 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6495 | fi | |
6496 | ||
6497 | if test "$wxUSE_NEW_GRID" = yes; then | |
a0b9e27f | 6498 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6499 | else |
a0b9e27f | 6500 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6501 | fi |
a0b9e27f | 6502 | |
10f2d63a | 6503 | |
5005acfe VZ |
6504 | enablestring= |
6505 | echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6 | |
9b4d9d56 | 6506 | echo "configure:6507: checking for --${enablestring:-enable}-imaglist" >&5 |
10f2d63a VZ |
6507 | no_cache=0 |
6508 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6509 | if test "${enable_imaglist+set}" = set; then | |
6510 | enableval="$enable_imaglist" | |
a0b9e27f | 6511 | |
10f2d63a VZ |
6512 | if test "$enableval" = yes; then |
6513 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6514 | else | |
6515 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6516 | fi | |
a0b9e27f | 6517 | |
10f2d63a | 6518 | else |
a0b9e27f | 6519 | |
10f2d63a VZ |
6520 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6521 | if test "x$LINE" != x ; then | |
6522 | eval "DEFAULT_$LINE" | |
6523 | else | |
6524 | no_cache=1 | |
6525 | fi | |
6526 | ||
6527 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
a0b9e27f MB |
6528 | |
6529 | fi | |
10f2d63a VZ |
6530 | |
6531 | ||
6532 | eval "$ac_cv_use_imaglist" | |
6533 | if test "$no_cache" != 1; then | |
6534 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6535 | fi | |
6536 | ||
6537 | if test "$wxUSE_IMAGLIST" = yes; then | |
a0b9e27f | 6538 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6539 | else |
a0b9e27f | 6540 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6541 | fi |
a0b9e27f | 6542 | |
10f2d63a | 6543 | |
5005acfe VZ |
6544 | enablestring= |
6545 | echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6 | |
9b4d9d56 | 6546 | echo "configure:6547: checking for --${enablestring:-enable}-listbox" >&5 |
10f2d63a VZ |
6547 | no_cache=0 |
6548 | # Check whether --enable-listbox or --disable-listbox was given. | |
6549 | if test "${enable_listbox+set}" = set; then | |
6550 | enableval="$enable_listbox" | |
a0b9e27f | 6551 | |
10f2d63a VZ |
6552 | if test "$enableval" = yes; then |
6553 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6554 | else | |
6555 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6556 | fi | |
a0b9e27f | 6557 | |
10f2d63a | 6558 | else |
a0b9e27f | 6559 | |
10f2d63a VZ |
6560 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6561 | if test "x$LINE" != x ; then | |
6562 | eval "DEFAULT_$LINE" | |
6563 | else | |
6564 | no_cache=1 | |
6565 | fi | |
6566 | ||
6567 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
a0b9e27f MB |
6568 | |
6569 | fi | |
10f2d63a VZ |
6570 | |
6571 | ||
6572 | eval "$ac_cv_use_listbox" | |
6573 | if test "$no_cache" != 1; then | |
6574 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6575 | fi | |
6576 | ||
6577 | if test "$wxUSE_LISTBOX" = yes; then | |
a0b9e27f | 6578 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6579 | else |
a0b9e27f | 6580 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6581 | fi |
a0b9e27f | 6582 | |
10f2d63a | 6583 | |
5005acfe VZ |
6584 | enablestring= |
6585 | echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6 | |
9b4d9d56 | 6586 | echo "configure:6587: checking for --${enablestring:-enable}-listctrl" >&5 |
10f2d63a VZ |
6587 | no_cache=0 |
6588 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6589 | if test "${enable_listctrl+set}" = set; then | |
6590 | enableval="$enable_listctrl" | |
a0b9e27f | 6591 | |
10f2d63a VZ |
6592 | if test "$enableval" = yes; then |
6593 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6594 | else | |
6595 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6596 | fi | |
a0b9e27f | 6597 | |
10f2d63a | 6598 | else |
a0b9e27f | 6599 | |
10f2d63a VZ |
6600 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6601 | if test "x$LINE" != x ; then | |
6602 | eval "DEFAULT_$LINE" | |
6603 | else | |
6604 | no_cache=1 | |
6605 | fi | |
6606 | ||
6607 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
a0b9e27f MB |
6608 | |
6609 | fi | |
10f2d63a VZ |
6610 | |
6611 | ||
6612 | eval "$ac_cv_use_listctrl" | |
6613 | if test "$no_cache" != 1; then | |
6614 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6615 | fi | |
6616 | ||
6617 | if test "$wxUSE_LISTCTRL" = yes; then | |
a0b9e27f | 6618 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6619 | else |
a0b9e27f | 6620 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6621 | fi |
a0b9e27f | 6622 | |
10f2d63a | 6623 | |
5005acfe VZ |
6624 | enablestring= |
6625 | echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6 | |
9b4d9d56 | 6626 | echo "configure:6627: checking for --${enablestring:-enable}-notebook" >&5 |
10f2d63a VZ |
6627 | no_cache=0 |
6628 | # Check whether --enable-notebook or --disable-notebook was given. | |
6629 | if test "${enable_notebook+set}" = set; then | |
6630 | enableval="$enable_notebook" | |
a0b9e27f | 6631 | |
10f2d63a VZ |
6632 | if test "$enableval" = yes; then |
6633 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6634 | else | |
6635 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6636 | fi | |
a0b9e27f | 6637 | |
10f2d63a | 6638 | else |
a0b9e27f | 6639 | |
10f2d63a VZ |
6640 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6641 | if test "x$LINE" != x ; then | |
6642 | eval "DEFAULT_$LINE" | |
6643 | else | |
6644 | no_cache=1 | |
6645 | fi | |
6646 | ||
6647 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
a0b9e27f MB |
6648 | |
6649 | fi | |
10f2d63a VZ |
6650 | |
6651 | ||
6652 | eval "$ac_cv_use_notebook" | |
6653 | if test "$no_cache" != 1; then | |
6654 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6655 | fi | |
6656 | ||
6657 | if test "$wxUSE_NOTEBOOK" = yes; then | |
a0b9e27f | 6658 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6659 | else |
a0b9e27f | 6660 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6661 | fi |
a0b9e27f | 6662 | |
10f2d63a | 6663 | |
5005acfe VZ |
6664 | enablestring= |
6665 | echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6 | |
9b4d9d56 | 6666 | echo "configure:6667: checking for --${enablestring:-enable}-propsheet" >&5 |
24176f2c GD |
6667 | no_cache=0 |
6668 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6669 | if test "${enable_propsheet+set}" = set; then | |
6670 | enableval="$enable_propsheet" | |
a0b9e27f | 6671 | |
24176f2c GD |
6672 | if test "$enableval" = yes; then |
6673 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6674 | else | |
6675 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6676 | fi | |
a0b9e27f | 6677 | |
24176f2c | 6678 | else |
a0b9e27f | 6679 | |
24176f2c GD |
6680 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` |
6681 | if test "x$LINE" != x ; then | |
6682 | eval "DEFAULT_$LINE" | |
6683 | else | |
6684 | no_cache=1 | |
6685 | fi | |
6686 | ||
6687 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
a0b9e27f MB |
6688 | |
6689 | fi | |
24176f2c GD |
6690 | |
6691 | ||
6692 | eval "$ac_cv_use_propsheet" | |
6693 | if test "$no_cache" != 1; then | |
6694 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6695 | fi | |
6696 | ||
6697 | if test "$wxUSE_PROPSHEET" = yes; then | |
a0b9e27f | 6698 | echo "$ac_t""yes" 1>&6 |
24176f2c | 6699 | else |
a0b9e27f | 6700 | echo "$ac_t""no" 1>&6 |
24176f2c | 6701 | fi |
a0b9e27f | 6702 | |
24176f2c | 6703 | |
5005acfe VZ |
6704 | enablestring= |
6705 | echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6 | |
9b4d9d56 | 6706 | echo "configure:6707: checking for --${enablestring:-enable}-radiobox" >&5 |
10f2d63a VZ |
6707 | no_cache=0 |
6708 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6709 | if test "${enable_radiobox+set}" = set; then | |
6710 | enableval="$enable_radiobox" | |
a0b9e27f | 6711 | |
10f2d63a VZ |
6712 | if test "$enableval" = yes; then |
6713 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6714 | else | |
6715 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6716 | fi | |
a0b9e27f | 6717 | |
10f2d63a | 6718 | else |
a0b9e27f | 6719 | |
10f2d63a VZ |
6720 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6721 | if test "x$LINE" != x ; then | |
6722 | eval "DEFAULT_$LINE" | |
6723 | else | |
6724 | no_cache=1 | |
6725 | fi | |
6726 | ||
6727 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
a0b9e27f MB |
6728 | |
6729 | fi | |
10f2d63a VZ |
6730 | |
6731 | ||
6732 | eval "$ac_cv_use_radiobox" | |
6733 | if test "$no_cache" != 1; then | |
6734 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6735 | fi | |
6736 | ||
6737 | if test "$wxUSE_RADIOBOX" = yes; then | |
a0b9e27f | 6738 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6739 | else |
a0b9e27f | 6740 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6741 | fi |
a0b9e27f | 6742 | |
10f2d63a | 6743 | |
5005acfe VZ |
6744 | enablestring= |
6745 | echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6 | |
9b4d9d56 | 6746 | echo "configure:6747: checking for --${enablestring:-enable}-radiobtn" >&5 |
10f2d63a VZ |
6747 | no_cache=0 |
6748 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6749 | if test "${enable_radiobtn+set}" = set; then | |
6750 | enableval="$enable_radiobtn" | |
a0b9e27f | 6751 | |
10f2d63a VZ |
6752 | if test "$enableval" = yes; then |
6753 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6754 | else | |
6755 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6756 | fi | |
a0b9e27f | 6757 | |
10f2d63a | 6758 | else |
a0b9e27f | 6759 | |
10f2d63a VZ |
6760 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6761 | if test "x$LINE" != x ; then | |
6762 | eval "DEFAULT_$LINE" | |
6763 | else | |
6764 | no_cache=1 | |
6765 | fi | |
6766 | ||
6767 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
a0b9e27f MB |
6768 | |
6769 | fi | |
10f2d63a VZ |
6770 | |
6771 | ||
6772 | eval "$ac_cv_use_radiobtn" | |
6773 | if test "$no_cache" != 1; then | |
6774 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6775 | fi | |
6776 | ||
6777 | if test "$wxUSE_RADIOBTN" = yes; then | |
a0b9e27f | 6778 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6779 | else |
a0b9e27f | 6780 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6781 | fi |
a0b9e27f | 6782 | |
10f2d63a | 6783 | |
5005acfe VZ |
6784 | enablestring= |
6785 | echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6 | |
9b4d9d56 | 6786 | echo "configure:6787: checking for --${enablestring:-enable}-sash" >&5 |
10f2d63a VZ |
6787 | no_cache=0 |
6788 | # Check whether --enable-sash or --disable-sash was given. | |
6789 | if test "${enable_sash+set}" = set; then | |
6790 | enableval="$enable_sash" | |
a0b9e27f | 6791 | |
10f2d63a VZ |
6792 | if test "$enableval" = yes; then |
6793 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6794 | else | |
6795 | ac_cv_use_sash='wxUSE_SASH=no' | |
6796 | fi | |
a0b9e27f | 6797 | |
10f2d63a | 6798 | else |
a0b9e27f | 6799 | |
10f2d63a VZ |
6800 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6801 | if test "x$LINE" != x ; then | |
6802 | eval "DEFAULT_$LINE" | |
6803 | else | |
6804 | no_cache=1 | |
6805 | fi | |
6806 | ||
6807 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
a0b9e27f MB |
6808 | |
6809 | fi | |
10f2d63a VZ |
6810 | |
6811 | ||
6812 | eval "$ac_cv_use_sash" | |
6813 | if test "$no_cache" != 1; then | |
6814 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6815 | fi | |
6816 | ||
6817 | if test "$wxUSE_SASH" = yes; then | |
a0b9e27f | 6818 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6819 | else |
a0b9e27f | 6820 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6821 | fi |
a0b9e27f | 6822 | |
10f2d63a | 6823 | |
5005acfe VZ |
6824 | enablestring= |
6825 | echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6 | |
9b4d9d56 | 6826 | echo "configure:6827: checking for --${enablestring:-enable}-scrollbar" >&5 |
10f2d63a VZ |
6827 | no_cache=0 |
6828 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6829 | if test "${enable_scrollbar+set}" = set; then | |
6830 | enableval="$enable_scrollbar" | |
a0b9e27f | 6831 | |
10f2d63a VZ |
6832 | if test "$enableval" = yes; then |
6833 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6834 | else | |
6835 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6836 | fi | |
a0b9e27f | 6837 | |
10f2d63a | 6838 | else |
a0b9e27f | 6839 | |
10f2d63a VZ |
6840 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6841 | if test "x$LINE" != x ; then | |
6842 | eval "DEFAULT_$LINE" | |
6843 | else | |
6844 | no_cache=1 | |
6845 | fi | |
6846 | ||
6847 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
a0b9e27f MB |
6848 | |
6849 | fi | |
10f2d63a VZ |
6850 | |
6851 | ||
6852 | eval "$ac_cv_use_scrollbar" | |
6853 | if test "$no_cache" != 1; then | |
6854 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6855 | fi | |
6856 | ||
6857 | if test "$wxUSE_SCROLLBAR" = yes; then | |
a0b9e27f | 6858 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6859 | else |
a0b9e27f | 6860 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6861 | fi |
a0b9e27f | 6862 | |
10f2d63a | 6863 | |
5005acfe VZ |
6864 | enablestring= |
6865 | echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6 | |
9b4d9d56 | 6866 | echo "configure:6867: checking for --${enablestring:-enable}-slider" >&5 |
10f2d63a VZ |
6867 | no_cache=0 |
6868 | # Check whether --enable-slider or --disable-slider was given. | |
6869 | if test "${enable_slider+set}" = set; then | |
6870 | enableval="$enable_slider" | |
a0b9e27f | 6871 | |
10f2d63a VZ |
6872 | if test "$enableval" = yes; then |
6873 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6874 | else | |
6875 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6876 | fi | |
a0b9e27f | 6877 | |
10f2d63a | 6878 | else |
a0b9e27f | 6879 | |
10f2d63a VZ |
6880 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6881 | if test "x$LINE" != x ; then | |
6882 | eval "DEFAULT_$LINE" | |
6883 | else | |
6884 | no_cache=1 | |
6885 | fi | |
6886 | ||
6887 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
a0b9e27f MB |
6888 | |
6889 | fi | |
10f2d63a VZ |
6890 | |
6891 | ||
6892 | eval "$ac_cv_use_slider" | |
6893 | if test "$no_cache" != 1; then | |
6894 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6895 | fi | |
6896 | ||
6897 | if test "$wxUSE_SLIDER" = yes; then | |
a0b9e27f | 6898 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6899 | else |
a0b9e27f | 6900 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6901 | fi |
a0b9e27f | 6902 | |
10f2d63a | 6903 | |
5005acfe VZ |
6904 | enablestring= |
6905 | echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6 | |
9b4d9d56 | 6906 | echo "configure:6907: checking for --${enablestring:-enable}-spinbtn" >&5 |
10f2d63a VZ |
6907 | no_cache=0 |
6908 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6909 | if test "${enable_spinbtn+set}" = set; then | |
6910 | enableval="$enable_spinbtn" | |
a0b9e27f | 6911 | |
10f2d63a VZ |
6912 | if test "$enableval" = yes; then |
6913 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6914 | else | |
6915 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6916 | fi | |
a0b9e27f | 6917 | |
10f2d63a | 6918 | else |
a0b9e27f | 6919 | |
10f2d63a VZ |
6920 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6921 | if test "x$LINE" != x ; then | |
6922 | eval "DEFAULT_$LINE" | |
6923 | else | |
6924 | no_cache=1 | |
6925 | fi | |
6926 | ||
6927 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
a0b9e27f MB |
6928 | |
6929 | fi | |
10f2d63a VZ |
6930 | |
6931 | ||
6932 | eval "$ac_cv_use_spinbtn" | |
6933 | if test "$no_cache" != 1; then | |
6934 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6935 | fi | |
6936 | ||
6937 | if test "$wxUSE_SPINBTN" = yes; then | |
a0b9e27f | 6938 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6939 | else |
a0b9e27f | 6940 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6941 | fi |
a0b9e27f | 6942 | |
10f2d63a | 6943 | |
5005acfe VZ |
6944 | enablestring= |
6945 | echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6 | |
9b4d9d56 | 6946 | echo "configure:6947: checking for --${enablestring:-enable}-spinctrl" >&5 |
56cfaa52 RR |
6947 | no_cache=0 |
6948 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6949 | if test "${enable_spinctrl+set}" = set; then | |
6950 | enableval="$enable_spinctrl" | |
a0b9e27f | 6951 | |
56cfaa52 RR |
6952 | if test "$enableval" = yes; then |
6953 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6954 | else | |
6955 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6956 | fi | |
a0b9e27f | 6957 | |
56cfaa52 | 6958 | else |
a0b9e27f | 6959 | |
56cfaa52 RR |
6960 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6961 | if test "x$LINE" != x ; then | |
6962 | eval "DEFAULT_$LINE" | |
6963 | else | |
6964 | no_cache=1 | |
6965 | fi | |
6966 | ||
6967 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
a0b9e27f MB |
6968 | |
6969 | fi | |
56cfaa52 RR |
6970 | |
6971 | ||
6972 | eval "$ac_cv_use_spinctrl" | |
6973 | if test "$no_cache" != 1; then | |
6974 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6975 | fi | |
6976 | ||
6977 | if test "$wxUSE_SPINCTRL" = yes; then | |
a0b9e27f | 6978 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6979 | else |
a0b9e27f | 6980 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6981 | fi |
a0b9e27f | 6982 | |
56cfaa52 | 6983 | |
5005acfe VZ |
6984 | enablestring= |
6985 | echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6 | |
9b4d9d56 | 6986 | echo "configure:6987: checking for --${enablestring:-enable}-splitter" >&5 |
10f2d63a VZ |
6987 | no_cache=0 |
6988 | # Check whether --enable-splitter or --disable-splitter was given. | |
6989 | if test "${enable_splitter+set}" = set; then | |
6990 | enableval="$enable_splitter" | |
a0b9e27f | 6991 | |
10f2d63a VZ |
6992 | if test "$enableval" = yes; then |
6993 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6994 | else | |
6995 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6996 | fi | |
a0b9e27f | 6997 | |
10f2d63a | 6998 | else |
a0b9e27f | 6999 | |
10f2d63a VZ |
7000 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
7001 | if test "x$LINE" != x ; then | |
7002 | eval "DEFAULT_$LINE" | |
7003 | else | |
7004 | no_cache=1 | |
7005 | fi | |
7006 | ||
7007 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
a0b9e27f MB |
7008 | |
7009 | fi | |
10f2d63a VZ |
7010 | |
7011 | ||
7012 | eval "$ac_cv_use_splitter" | |
7013 | if test "$no_cache" != 1; then | |
7014 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7015 | fi | |
7016 | ||
7017 | if test "$wxUSE_SPLITTER" = yes; then | |
a0b9e27f | 7018 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7019 | else |
a0b9e27f | 7020 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7021 | fi |
a0b9e27f | 7022 | |
10f2d63a | 7023 | |
5005acfe VZ |
7024 | enablestring= |
7025 | echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6 | |
9b4d9d56 | 7026 | echo "configure:7027: checking for --${enablestring:-enable}-statbmp" >&5 |
10f2d63a VZ |
7027 | no_cache=0 |
7028 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7029 | if test "${enable_statbmp+set}" = set; then | |
7030 | enableval="$enable_statbmp" | |
a0b9e27f | 7031 | |
10f2d63a VZ |
7032 | if test "$enableval" = yes; then |
7033 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
7034 | else | |
7035 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
7036 | fi | |
a0b9e27f | 7037 | |
10f2d63a | 7038 | else |
a0b9e27f | 7039 | |
10f2d63a VZ |
7040 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
7041 | if test "x$LINE" != x ; then | |
7042 | eval "DEFAULT_$LINE" | |
7043 | else | |
7044 | no_cache=1 | |
7045 | fi | |
7046 | ||
7047 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
a0b9e27f MB |
7048 | |
7049 | fi | |
10f2d63a VZ |
7050 | |
7051 | ||
7052 | eval "$ac_cv_use_statbmp" | |
7053 | if test "$no_cache" != 1; then | |
7054 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7055 | fi | |
7056 | ||
7057 | if test "$wxUSE_STATBMP" = yes; then | |
a0b9e27f | 7058 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7059 | else |
a0b9e27f | 7060 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7061 | fi |
a0b9e27f | 7062 | |
10f2d63a | 7063 | |
5005acfe VZ |
7064 | enablestring= |
7065 | echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6 | |
9b4d9d56 | 7066 | echo "configure:7067: checking for --${enablestring:-enable}-statbox" >&5 |
10f2d63a VZ |
7067 | no_cache=0 |
7068 | # Check whether --enable-statbox or --disable-statbox was given. | |
7069 | if test "${enable_statbox+set}" = set; then | |
7070 | enableval="$enable_statbox" | |
a0b9e27f | 7071 | |
10f2d63a VZ |
7072 | if test "$enableval" = yes; then |
7073 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7074 | else | |
7075 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7076 | fi | |
a0b9e27f | 7077 | |
10f2d63a | 7078 | else |
a0b9e27f | 7079 | |
10f2d63a VZ |
7080 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
7081 | if test "x$LINE" != x ; then | |
7082 | eval "DEFAULT_$LINE" | |
7083 | else | |
7084 | no_cache=1 | |
7085 | fi | |
7086 | ||
7087 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
a0b9e27f MB |
7088 | |
7089 | fi | |
10f2d63a VZ |
7090 | |
7091 | ||
7092 | eval "$ac_cv_use_statbox" | |
7093 | if test "$no_cache" != 1; then | |
7094 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7095 | fi | |
7096 | ||
7097 | if test "$wxUSE_STATBOX" = yes; then | |
a0b9e27f | 7098 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7099 | else |
a0b9e27f | 7100 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7101 | fi |
a0b9e27f | 7102 | |
10f2d63a | 7103 | |
5005acfe VZ |
7104 | enablestring= |
7105 | echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6 | |
9b4d9d56 | 7106 | echo "configure:7107: checking for --${enablestring:-enable}-statline" >&5 |
10f2d63a VZ |
7107 | no_cache=0 |
7108 | # Check whether --enable-statline or --disable-statline was given. | |
7109 | if test "${enable_statline+set}" = set; then | |
7110 | enableval="$enable_statline" | |
a0b9e27f | 7111 | |
10f2d63a VZ |
7112 | if test "$enableval" = yes; then |
7113 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7114 | else | |
7115 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
7116 | fi | |
a0b9e27f | 7117 | |
10f2d63a | 7118 | else |
a0b9e27f | 7119 | |
10f2d63a VZ |
7120 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
7121 | if test "x$LINE" != x ; then | |
7122 | eval "DEFAULT_$LINE" | |
7123 | else | |
7124 | no_cache=1 | |
7125 | fi | |
7126 | ||
7127 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
a0b9e27f MB |
7128 | |
7129 | fi | |
10f2d63a VZ |
7130 | |
7131 | ||
7132 | eval "$ac_cv_use_statline" | |
7133 | if test "$no_cache" != 1; then | |
7134 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
7135 | fi | |
7136 | ||
7137 | if test "$wxUSE_STATLINE" = yes; then | |
a0b9e27f | 7138 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7139 | else |
a0b9e27f | 7140 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7141 | fi |
a0b9e27f | 7142 | |
10f2d63a | 7143 | |
5005acfe VZ |
7144 | enablestring= |
7145 | echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6 | |
9b4d9d56 | 7146 | echo "configure:7147: checking for --${enablestring:-enable}-stattext" >&5 |
1e6feb95 VZ |
7147 | no_cache=0 |
7148 | # Check whether --enable-stattext or --disable-stattext was given. | |
7149 | if test "${enable_stattext+set}" = set; then | |
7150 | enableval="$enable_stattext" | |
a0b9e27f | 7151 | |
1e6feb95 VZ |
7152 | if test "$enableval" = yes; then |
7153 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7154 | else | |
7155 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7156 | fi | |
a0b9e27f | 7157 | |
1e6feb95 | 7158 | else |
a0b9e27f | 7159 | |
1e6feb95 VZ |
7160 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
7161 | if test "x$LINE" != x ; then | |
7162 | eval "DEFAULT_$LINE" | |
7163 | else | |
7164 | no_cache=1 | |
7165 | fi | |
7166 | ||
7167 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
a0b9e27f MB |
7168 | |
7169 | fi | |
1e6feb95 VZ |
7170 | |
7171 | ||
7172 | eval "$ac_cv_use_stattext" | |
7173 | if test "$no_cache" != 1; then | |
7174 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7175 | fi | |
7176 | ||
7177 | if test "$wxUSE_STATTEXT" = yes; then | |
a0b9e27f | 7178 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7179 | else |
a0b9e27f | 7180 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7181 | fi |
a0b9e27f | 7182 | |
1e6feb95 | 7183 | |
5005acfe VZ |
7184 | enablestring= |
7185 | echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6 | |
9b4d9d56 | 7186 | echo "configure:7187: checking for --${enablestring:-enable}-statusbar" >&5 |
10f2d63a VZ |
7187 | no_cache=0 |
7188 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7189 | if test "${enable_statusbar+set}" = set; then | |
7190 | enableval="$enable_statusbar" | |
a0b9e27f | 7191 | |
10f2d63a VZ |
7192 | if test "$enableval" = yes; then |
7193 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7194 | else | |
7195 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7196 | fi | |
a0b9e27f | 7197 | |
10f2d63a | 7198 | else |
a0b9e27f | 7199 | |
10f2d63a VZ |
7200 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
7201 | if test "x$LINE" != x ; then | |
7202 | eval "DEFAULT_$LINE" | |
7203 | else | |
7204 | no_cache=1 | |
7205 | fi | |
7206 | ||
7207 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
a0b9e27f MB |
7208 | |
7209 | fi | |
10f2d63a VZ |
7210 | |
7211 | ||
7212 | eval "$ac_cv_use_statusbar" | |
7213 | if test "$no_cache" != 1; then | |
7214 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7215 | fi | |
7216 | ||
7217 | if test "$wxUSE_STATUSBAR" = yes; then | |
a0b9e27f | 7218 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7219 | else |
a0b9e27f | 7220 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7221 | fi |
a0b9e27f | 7222 | |
10f2d63a | 7223 | |
5005acfe VZ |
7224 | enablestring= |
7225 | echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6 | |
9b4d9d56 | 7226 | echo "configure:7227: checking for --${enablestring:-enable}-tabdialog" >&5 |
10f2d63a VZ |
7227 | no_cache=0 |
7228 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7229 | if test "${enable_tabdialog+set}" = set; then | |
7230 | enableval="$enable_tabdialog" | |
a0b9e27f | 7231 | |
10f2d63a VZ |
7232 | if test "$enableval" = yes; then |
7233 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7234 | else | |
7235 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7236 | fi | |
a0b9e27f | 7237 | |
10f2d63a | 7238 | else |
a0b9e27f | 7239 | |
10f2d63a VZ |
7240 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7241 | if test "x$LINE" != x ; then | |
7242 | eval "DEFAULT_$LINE" | |
7243 | else | |
7244 | no_cache=1 | |
7245 | fi | |
7246 | ||
7247 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
a0b9e27f MB |
7248 | |
7249 | fi | |
10f2d63a VZ |
7250 | |
7251 | ||
7252 | eval "$ac_cv_use_tabdialog" | |
7253 | if test "$no_cache" != 1; then | |
7254 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7255 | fi | |
7256 | ||
7257 | if test "$wxUSE_TABDIALOG" = yes; then | |
a0b9e27f | 7258 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7259 | else |
a0b9e27f | 7260 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7261 | fi |
a0b9e27f | 7262 | |
10f2d63a | 7263 | |
5005acfe VZ |
7264 | enablestring= |
7265 | echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6 | |
9b4d9d56 | 7266 | echo "configure:7267: checking for --${enablestring:-enable}-textctrl" >&5 |
1e6feb95 VZ |
7267 | no_cache=0 |
7268 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7269 | if test "${enable_textctrl+set}" = set; then | |
7270 | enableval="$enable_textctrl" | |
a0b9e27f | 7271 | |
1e6feb95 VZ |
7272 | if test "$enableval" = yes; then |
7273 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7274 | else | |
7275 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7276 | fi | |
a0b9e27f | 7277 | |
1e6feb95 | 7278 | else |
a0b9e27f | 7279 | |
1e6feb95 VZ |
7280 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
7281 | if test "x$LINE" != x ; then | |
7282 | eval "DEFAULT_$LINE" | |
7283 | else | |
7284 | no_cache=1 | |
7285 | fi | |
7286 | ||
7287 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
a0b9e27f MB |
7288 | |
7289 | fi | |
1e6feb95 VZ |
7290 | |
7291 | ||
7292 | eval "$ac_cv_use_textctrl" | |
7293 | if test "$no_cache" != 1; then | |
7294 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7295 | fi | |
7296 | ||
7297 | if test "$wxUSE_TEXTCTRL" = yes; then | |
a0b9e27f | 7298 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7299 | else |
a0b9e27f | 7300 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7301 | fi |
a0b9e27f | 7302 | |
1e6feb95 | 7303 | |
5005acfe VZ |
7304 | enablestring= |
7305 | echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6 | |
9b4d9d56 | 7306 | echo "configure:7307: checking for --${enablestring:-enable}-togglebtn" >&5 |
1db8dc4a VZ |
7307 | no_cache=0 |
7308 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7309 | if test "${enable_togglebtn+set}" = set; then | |
7310 | enableval="$enable_togglebtn" | |
a0b9e27f | 7311 | |
1db8dc4a VZ |
7312 | if test "$enableval" = yes; then |
7313 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7314 | else | |
7315 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7316 | fi | |
a0b9e27f | 7317 | |
1db8dc4a | 7318 | else |
a0b9e27f | 7319 | |
1db8dc4a VZ |
7320 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7321 | if test "x$LINE" != x ; then | |
7322 | eval "DEFAULT_$LINE" | |
7323 | else | |
7324 | no_cache=1 | |
7325 | fi | |
7326 | ||
7327 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
a0b9e27f MB |
7328 | |
7329 | fi | |
1db8dc4a VZ |
7330 | |
7331 | ||
7332 | eval "$ac_cv_use_togglebtn" | |
7333 | if test "$no_cache" != 1; then | |
7334 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7335 | fi | |
7336 | ||
7337 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
a0b9e27f | 7338 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 7339 | else |
a0b9e27f | 7340 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 7341 | fi |
a0b9e27f | 7342 | |
1db8dc4a | 7343 | |
5005acfe VZ |
7344 | enablestring= |
7345 | echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6 | |
9b4d9d56 | 7346 | echo "configure:7347: checking for --${enablestring:-enable}-toolbar" >&5 |
10f2d63a VZ |
7347 | no_cache=0 |
7348 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7349 | if test "${enable_toolbar+set}" = set; then | |
7350 | enableval="$enable_toolbar" | |
a0b9e27f | 7351 | |
10f2d63a VZ |
7352 | if test "$enableval" = yes; then |
7353 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7354 | else | |
7355 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7356 | fi | |
a0b9e27f | 7357 | |
10f2d63a | 7358 | else |
a0b9e27f | 7359 | |
10f2d63a VZ |
7360 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7361 | if test "x$LINE" != x ; then | |
7362 | eval "DEFAULT_$LINE" | |
7363 | else | |
7364 | no_cache=1 | |
7365 | fi | |
7366 | ||
7367 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
a0b9e27f MB |
7368 | |
7369 | fi | |
10f2d63a VZ |
7370 | |
7371 | ||
7372 | eval "$ac_cv_use_toolbar" | |
7373 | if test "$no_cache" != 1; then | |
7374 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7375 | fi | |
7376 | ||
7377 | if test "$wxUSE_TOOLBAR" = yes; then | |
a0b9e27f | 7378 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7379 | else |
a0b9e27f | 7380 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7381 | fi |
a0b9e27f | 7382 | |
10f2d63a | 7383 | |
5005acfe VZ |
7384 | enablestring= |
7385 | echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6 | |
9b4d9d56 | 7386 | echo "configure:7387: checking for --${enablestring:-enable}-tbarnative" >&5 |
360d6699 VZ |
7387 | no_cache=0 |
7388 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7389 | if test "${enable_tbarnative+set}" = set; then | |
7390 | enableval="$enable_tbarnative" | |
a0b9e27f | 7391 | |
360d6699 VZ |
7392 | if test "$enableval" = yes; then |
7393 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7394 | else | |
7395 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7396 | fi | |
a0b9e27f | 7397 | |
360d6699 | 7398 | else |
a0b9e27f | 7399 | |
360d6699 VZ |
7400 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7401 | if test "x$LINE" != x ; then | |
7402 | eval "DEFAULT_$LINE" | |
7403 | else | |
7404 | no_cache=1 | |
7405 | fi | |
7406 | ||
7407 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
a0b9e27f MB |
7408 | |
7409 | fi | |
360d6699 VZ |
7410 | |
7411 | ||
7412 | eval "$ac_cv_use_tbarnative" | |
7413 | if test "$no_cache" != 1; then | |
7414 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7415 | fi | |
7416 | ||
7417 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
a0b9e27f | 7418 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7419 | else |
a0b9e27f | 7420 | echo "$ac_t""no" 1>&6 |
360d6699 | 7421 | fi |
a0b9e27f | 7422 | |
360d6699 | 7423 | |
5005acfe VZ |
7424 | enablestring= |
7425 | echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6 | |
9b4d9d56 | 7426 | echo "configure:7427: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
360d6699 VZ |
7427 | no_cache=0 |
7428 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7429 | if test "${enable_tbarsmpl+set}" = set; then | |
7430 | enableval="$enable_tbarsmpl" | |
a0b9e27f | 7431 | |
360d6699 VZ |
7432 | if test "$enableval" = yes; then |
7433 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7434 | else | |
7435 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7436 | fi | |
a0b9e27f | 7437 | |
360d6699 | 7438 | else |
a0b9e27f | 7439 | |
360d6699 VZ |
7440 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7441 | if test "x$LINE" != x ; then | |
7442 | eval "DEFAULT_$LINE" | |
7443 | else | |
7444 | no_cache=1 | |
7445 | fi | |
7446 | ||
7447 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
a0b9e27f MB |
7448 | |
7449 | fi | |
360d6699 VZ |
7450 | |
7451 | ||
7452 | eval "$ac_cv_use_tbarsmpl" | |
7453 | if test "$no_cache" != 1; then | |
7454 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7455 | fi | |
7456 | ||
7457 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
a0b9e27f | 7458 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7459 | else |
a0b9e27f | 7460 | echo "$ac_t""no" 1>&6 |
360d6699 | 7461 | fi |
a0b9e27f | 7462 | |
360d6699 | 7463 | |
5005acfe VZ |
7464 | enablestring= |
7465 | echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6 | |
9b4d9d56 | 7466 | echo "configure:7467: checking for --${enablestring:-enable}-treectrl" >&5 |
10f2d63a VZ |
7467 | no_cache=0 |
7468 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7469 | if test "${enable_treectrl+set}" = set; then | |
7470 | enableval="$enable_treectrl" | |
a0b9e27f | 7471 | |
10f2d63a VZ |
7472 | if test "$enableval" = yes; then |
7473 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7474 | else | |
7475 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7476 | fi | |
a0b9e27f | 7477 | |
10f2d63a | 7478 | else |
a0b9e27f | 7479 | |
10f2d63a VZ |
7480 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7481 | if test "x$LINE" != x ; then | |
7482 | eval "DEFAULT_$LINE" | |
7483 | else | |
7484 | no_cache=1 | |
7485 | fi | |
7486 | ||
7487 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
a0b9e27f MB |
7488 | |
7489 | fi | |
10f2d63a VZ |
7490 | |
7491 | ||
1e6feb95 VZ |
7492 | eval "$ac_cv_use_treectrl" |
7493 | if test "$no_cache" != 1; then | |
7494 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7495 | fi | |
7496 | ||
7497 | if test "$wxUSE_TREECTRL" = yes; then | |
a0b9e27f | 7498 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7499 | else |
a0b9e27f | 7500 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7501 | fi |
a0b9e27f | 7502 | |
1e6feb95 | 7503 | |
5005acfe VZ |
7504 | enablestring= |
7505 | echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6 | |
9b4d9d56 | 7506 | echo "configure:7507: checking for --${enablestring:-enable}-tipwindow" >&5 |
9926e4a4 VZ |
7507 | no_cache=0 |
7508 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7509 | if test "${enable_tipwindow+set}" = set; then | |
7510 | enableval="$enable_tipwindow" | |
a0b9e27f | 7511 | |
9926e4a4 VZ |
7512 | if test "$enableval" = yes; then |
7513 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7514 | else | |
7515 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7516 | fi | |
a0b9e27f | 7517 | |
9926e4a4 | 7518 | else |
a0b9e27f | 7519 | |
9926e4a4 VZ |
7520 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
7521 | if test "x$LINE" != x ; then | |
7522 | eval "DEFAULT_$LINE" | |
7523 | else | |
7524 | no_cache=1 | |
7525 | fi | |
7526 | ||
7527 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
a0b9e27f MB |
7528 | |
7529 | fi | |
9926e4a4 VZ |
7530 | |
7531 | ||
7532 | eval "$ac_cv_use_tipwindow" | |
7533 | if test "$no_cache" != 1; then | |
7534 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7535 | fi | |
7536 | ||
7537 | if test "$wxUSE_TIPWINDOW" = yes; then | |
a0b9e27f | 7538 | echo "$ac_t""yes" 1>&6 |
9926e4a4 | 7539 | else |
a0b9e27f | 7540 | echo "$ac_t""no" 1>&6 |
9926e4a4 | 7541 | fi |
a0b9e27f | 7542 | |
9926e4a4 | 7543 | |
5005acfe VZ |
7544 | enablestring= |
7545 | echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6 | |
9b4d9d56 | 7546 | echo "configure:7547: checking for --${enablestring:-enable}-popupwin" >&5 |
9f41d601 RR |
7547 | no_cache=0 |
7548 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7549 | if test "${enable_popupwin+set}" = set; then | |
7550 | enableval="$enable_popupwin" | |
a0b9e27f | 7551 | |
9f41d601 RR |
7552 | if test "$enableval" = yes; then |
7553 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7554 | else | |
7555 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7556 | fi | |
a0b9e27f | 7557 | |
9f41d601 | 7558 | else |
a0b9e27f | 7559 | |
9f41d601 RR |
7560 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
7561 | if test "x$LINE" != x ; then | |
7562 | eval "DEFAULT_$LINE" | |
7563 | else | |
7564 | no_cache=1 | |
7565 | fi | |
7566 | ||
7567 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
a0b9e27f MB |
7568 | |
7569 | fi | |
9f41d601 RR |
7570 | |
7571 | ||
7572 | eval "$ac_cv_use_popupwin" | |
7573 | if test "$no_cache" != 1; then | |
7574 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7575 | fi | |
7576 | ||
7577 | if test "$wxUSE_POPUPWIN" = yes; then | |
a0b9e27f | 7578 | echo "$ac_t""yes" 1>&6 |
9f41d601 | 7579 | else |
a0b9e27f | 7580 | echo "$ac_t""no" 1>&6 |
9f41d601 | 7581 | fi |
a0b9e27f | 7582 | |
52127426 | 7583 | |
8284b0c5 MB |
7584 | |
7585 | ||
5005acfe VZ |
7586 | enablestring= |
7587 | echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6 | |
9b4d9d56 | 7588 | echo "configure:7589: checking for --${enablestring:-enable}-commondlg" >&5 |
1e6feb95 VZ |
7589 | no_cache=0 |
7590 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7591 | if test "${enable_commondlg+set}" = set; then | |
7592 | enableval="$enable_commondlg" | |
a0b9e27f | 7593 | |
1e6feb95 VZ |
7594 | if test "$enableval" = yes; then |
7595 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7596 | else | |
7597 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7598 | fi | |
a0b9e27f | 7599 | |
1e6feb95 | 7600 | else |
a0b9e27f | 7601 | |
1e6feb95 VZ |
7602 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
7603 | if test "x$LINE" != x ; then | |
7604 | eval "DEFAULT_$LINE" | |
7605 | else | |
7606 | no_cache=1 | |
7607 | fi | |
7608 | ||
7609 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
a0b9e27f MB |
7610 | |
7611 | fi | |
1e6feb95 VZ |
7612 | |
7613 | ||
7614 | eval "$ac_cv_use_commondlg" | |
7615 | if test "$no_cache" != 1; then | |
7616 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7617 | fi | |
7618 | ||
7619 | if test "$wxUSE_COMMONDLGS" = yes; then | |
a0b9e27f | 7620 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7621 | else |
a0b9e27f | 7622 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7623 | fi |
a0b9e27f | 7624 | |
1e6feb95 | 7625 | |
5005acfe VZ |
7626 | enablestring= |
7627 | echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6 | |
9b4d9d56 | 7628 | echo "configure:7629: checking for --${enablestring:-enable}-choicedlg" >&5 |
1e6feb95 VZ |
7629 | no_cache=0 |
7630 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7631 | if test "${enable_choicedlg+set}" = set; then | |
7632 | enableval="$enable_choicedlg" | |
a0b9e27f | 7633 | |
1e6feb95 VZ |
7634 | if test "$enableval" = yes; then |
7635 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7636 | else | |
7637 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7638 | fi | |
a0b9e27f | 7639 | |
1e6feb95 | 7640 | else |
a0b9e27f | 7641 | |
1e6feb95 VZ |
7642 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
7643 | if test "x$LINE" != x ; then | |
7644 | eval "DEFAULT_$LINE" | |
7645 | else | |
7646 | no_cache=1 | |
7647 | fi | |
7648 | ||
7649 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
a0b9e27f MB |
7650 | |
7651 | fi | |
1e6feb95 VZ |
7652 | |
7653 | ||
7654 | eval "$ac_cv_use_choicedlg" | |
7655 | if test "$no_cache" != 1; then | |
7656 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7657 | fi | |
7658 | ||
7659 | if test "$wxUSE_CHOICEDLG" = yes; then | |
a0b9e27f | 7660 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7661 | else |
a0b9e27f | 7662 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7663 | fi |
a0b9e27f | 7664 | |
1e6feb95 | 7665 | |
5005acfe VZ |
7666 | enablestring= |
7667 | echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6 | |
9b4d9d56 | 7668 | echo "configure:7669: checking for --${enablestring:-enable}-coldlg" >&5 |
1e6feb95 VZ |
7669 | no_cache=0 |
7670 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7671 | if test "${enable_coldlg+set}" = set; then | |
7672 | enableval="$enable_coldlg" | |
a0b9e27f | 7673 | |
1e6feb95 VZ |
7674 | if test "$enableval" = yes; then |
7675 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7676 | else | |
7677 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7678 | fi | |
a0b9e27f | 7679 | |
1e6feb95 | 7680 | else |
a0b9e27f | 7681 | |
1e6feb95 VZ |
7682 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
7683 | if test "x$LINE" != x ; then | |
7684 | eval "DEFAULT_$LINE" | |
7685 | else | |
7686 | no_cache=1 | |
7687 | fi | |
7688 | ||
7689 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
a0b9e27f MB |
7690 | |
7691 | fi | |
1e6feb95 VZ |
7692 | |
7693 | ||
7694 | eval "$ac_cv_use_coldlg" | |
7695 | if test "$no_cache" != 1; then | |
7696 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7697 | fi | |
7698 | ||
7699 | if test "$wxUSE_COLOURDLG" = yes; then | |
a0b9e27f | 7700 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7701 | else |
a0b9e27f | 7702 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7703 | fi |
a0b9e27f | 7704 | |
1e6feb95 | 7705 | |
5005acfe VZ |
7706 | enablestring= |
7707 | echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6 | |
9b4d9d56 | 7708 | echo "configure:7709: checking for --${enablestring:-enable}-filedlg" >&5 |
1e6feb95 VZ |
7709 | no_cache=0 |
7710 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7711 | if test "${enable_filedlg+set}" = set; then | |
7712 | enableval="$enable_filedlg" | |
a0b9e27f | 7713 | |
1e6feb95 VZ |
7714 | if test "$enableval" = yes; then |
7715 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7716 | else | |
7717 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7718 | fi | |
a0b9e27f | 7719 | |
1e6feb95 | 7720 | else |
a0b9e27f | 7721 | |
1e6feb95 VZ |
7722 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
7723 | if test "x$LINE" != x ; then | |
7724 | eval "DEFAULT_$LINE" | |
7725 | else | |
7726 | no_cache=1 | |
7727 | fi | |
7728 | ||
7729 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
a0b9e27f MB |
7730 | |
7731 | fi | |
1e6feb95 VZ |
7732 | |
7733 | ||
7734 | eval "$ac_cv_use_filedlg" | |
7735 | if test "$no_cache" != 1; then | |
7736 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7737 | fi | |
7738 | ||
7739 | if test "$wxUSE_FILEDLG" = yes; then | |
a0b9e27f | 7740 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7741 | else |
a0b9e27f | 7742 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7743 | fi |
a0b9e27f | 7744 | |
1e6feb95 | 7745 | |
5005acfe VZ |
7746 | enablestring= |
7747 | echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6 | |
9b4d9d56 | 7748 | echo "configure:7749: checking for --${enablestring:-enable}-finddlg" >&5 |
8db37e06 | 7749 | no_cache=0 |
69d27ff7 MB |
7750 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7751 | if test "${enable_finddlg+set}" = set; then | |
7752 | enableval="$enable_finddlg" | |
a0b9e27f | 7753 | |
8db37e06 | 7754 | if test "$enableval" = yes; then |
69d27ff7 | 7755 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7756 | else |
69d27ff7 | 7757 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 7758 | fi |
a0b9e27f | 7759 | |
8db37e06 | 7760 | else |
a0b9e27f | 7761 | |
8db37e06 VZ |
7762 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
7763 | if test "x$LINE" != x ; then | |
7764 | eval "DEFAULT_$LINE" | |
7765 | else | |
7766 | no_cache=1 | |
7767 | fi | |
7768 | ||
69d27ff7 | 7769 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
a0b9e27f MB |
7770 | |
7771 | fi | |
8db37e06 VZ |
7772 | |
7773 | ||
69d27ff7 | 7774 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7775 | if test "$no_cache" != 1; then |
69d27ff7 | 7776 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7777 | fi |
7778 | ||
7779 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
a0b9e27f | 7780 | echo "$ac_t""yes" 1>&6 |
8db37e06 | 7781 | else |
a0b9e27f | 7782 | echo "$ac_t""no" 1>&6 |
8db37e06 | 7783 | fi |
a0b9e27f | 7784 | |
8db37e06 | 7785 | |
5005acfe VZ |
7786 | enablestring= |
7787 | echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6 | |
9b4d9d56 | 7788 | echo "configure:7789: checking for --${enablestring:-enable}-fontdlg" >&5 |
1e6feb95 VZ |
7789 | no_cache=0 |
7790 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7791 | if test "${enable_fontdlg+set}" = set; then | |
7792 | enableval="$enable_fontdlg" | |
a0b9e27f | 7793 | |
1e6feb95 VZ |
7794 | if test "$enableval" = yes; then |
7795 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7796 | else | |
7797 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7798 | fi | |
a0b9e27f | 7799 | |
1e6feb95 | 7800 | else |
a0b9e27f | 7801 | |
1e6feb95 VZ |
7802 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
7803 | if test "x$LINE" != x ; then | |
7804 | eval "DEFAULT_$LINE" | |
7805 | else | |
7806 | no_cache=1 | |
7807 | fi | |
7808 | ||
7809 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
a0b9e27f MB |
7810 | |
7811 | fi | |
1e6feb95 VZ |
7812 | |
7813 | ||
7814 | eval "$ac_cv_use_fontdlg" | |
7815 | if test "$no_cache" != 1; then | |
7816 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7817 | fi | |
7818 | ||
7819 | if test "$wxUSE_FONTDLG" = yes; then | |
a0b9e27f | 7820 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7821 | else |
a0b9e27f | 7822 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7823 | fi |
a0b9e27f | 7824 | |
1e6feb95 | 7825 | |
5005acfe VZ |
7826 | enablestring= |
7827 | echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6 | |
9b4d9d56 | 7828 | echo "configure:7829: checking for --${enablestring:-enable}-dirdlg" >&5 |
1e6feb95 VZ |
7829 | no_cache=0 |
7830 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7831 | if test "${enable_dirdlg+set}" = set; then | |
7832 | enableval="$enable_dirdlg" | |
a0b9e27f | 7833 | |
1e6feb95 VZ |
7834 | if test "$enableval" = yes; then |
7835 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7836 | else | |
7837 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7838 | fi | |
a0b9e27f | 7839 | |
1e6feb95 | 7840 | else |
a0b9e27f | 7841 | |
1e6feb95 VZ |
7842 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
7843 | if test "x$LINE" != x ; then | |
7844 | eval "DEFAULT_$LINE" | |
7845 | else | |
7846 | no_cache=1 | |
7847 | fi | |
7848 | ||
7849 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
a0b9e27f MB |
7850 | |
7851 | fi | |
1e6feb95 VZ |
7852 | |
7853 | ||
7854 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7855 | if test "$no_cache" != 1; then |
1e6feb95 | 7856 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7857 | fi |
7858 | ||
1e6feb95 | 7859 | if test "$wxUSE_DIRDLG" = yes; then |
a0b9e27f | 7860 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7861 | else |
a0b9e27f | 7862 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7863 | fi |
a0b9e27f | 7864 | |
698dcdb6 | 7865 | |
5005acfe VZ |
7866 | enablestring= |
7867 | echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6 | |
9b4d9d56 | 7868 | echo "configure:7869: checking for --${enablestring:-enable}-msgdlg" >&5 |
10f2d63a | 7869 | no_cache=0 |
1e6feb95 VZ |
7870 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7871 | if test "${enable_msgdlg+set}" = set; then | |
7872 | enableval="$enable_msgdlg" | |
a0b9e27f | 7873 | |
10f2d63a | 7874 | if test "$enableval" = yes; then |
1e6feb95 | 7875 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7876 | else |
1e6feb95 | 7877 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7878 | fi |
a0b9e27f | 7879 | |
10f2d63a | 7880 | else |
a0b9e27f | 7881 | |
1e6feb95 | 7882 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7883 | if test "x$LINE" != x ; then |
7884 | eval "DEFAULT_$LINE" | |
7885 | else | |
7886 | no_cache=1 | |
7887 | fi | |
7888 | ||
1e6feb95 | 7889 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
a0b9e27f MB |
7890 | |
7891 | fi | |
10f2d63a VZ |
7892 | |
7893 | ||
1e6feb95 | 7894 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7895 | if test "$no_cache" != 1; then |
1e6feb95 | 7896 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7897 | fi |
7898 | ||
1e6feb95 | 7899 | if test "$wxUSE_MSGDLG" = yes; then |
a0b9e27f | 7900 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7901 | else |
a0b9e27f | 7902 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7903 | fi |
a0b9e27f | 7904 | |
10f2d63a | 7905 | |
5005acfe VZ |
7906 | enablestring= |
7907 | echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6 | |
9b4d9d56 | 7908 | echo "configure:7909: checking for --${enablestring:-enable}-numberdlg" >&5 |
10f2d63a | 7909 | no_cache=0 |
1e6feb95 VZ |
7910 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7911 | if test "${enable_numberdlg+set}" = set; then | |
7912 | enableval="$enable_numberdlg" | |
a0b9e27f | 7913 | |
10f2d63a | 7914 | if test "$enableval" = yes; then |
1e6feb95 | 7915 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7916 | else |
1e6feb95 | 7917 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7918 | fi |
a0b9e27f | 7919 | |
10f2d63a | 7920 | else |
a0b9e27f | 7921 | |
1e6feb95 | 7922 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7923 | if test "x$LINE" != x ; then |
7924 | eval "DEFAULT_$LINE" | |
7925 | else | |
7926 | no_cache=1 | |
7927 | fi | |
7928 | ||
1e6feb95 | 7929 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
a0b9e27f MB |
7930 | |
7931 | fi | |
10f2d63a VZ |
7932 | |
7933 | ||
1e6feb95 | 7934 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7935 | if test "$no_cache" != 1; then |
1e6feb95 | 7936 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7937 | fi |
7938 | ||
1e6feb95 | 7939 | if test "$wxUSE_NUMBERDLG" = yes; then |
a0b9e27f | 7940 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7941 | else |
a0b9e27f | 7942 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7943 | fi |
a0b9e27f | 7944 | |
10f2d63a | 7945 | |
5005acfe VZ |
7946 | enablestring= |
7947 | echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6 | |
9b4d9d56 | 7948 | echo "configure:7949: checking for --${enablestring:-enable}-splash" >&5 |
cbca9943 VZ |
7949 | no_cache=0 |
7950 | # Check whether --enable-splash or --disable-splash was given. | |
7951 | if test "${enable_splash+set}" = set; then | |
7952 | enableval="$enable_splash" | |
a0b9e27f | 7953 | |
cbca9943 VZ |
7954 | if test "$enableval" = yes; then |
7955 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7956 | else | |
7957 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7958 | fi | |
a0b9e27f | 7959 | |
cbca9943 | 7960 | else |
a0b9e27f | 7961 | |
cbca9943 VZ |
7962 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
7963 | if test "x$LINE" != x ; then | |
7964 | eval "DEFAULT_$LINE" | |
7965 | else | |
7966 | no_cache=1 | |
7967 | fi | |
7968 | ||
7969 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
a0b9e27f MB |
7970 | |
7971 | fi | |
cbca9943 VZ |
7972 | |
7973 | ||
7974 | eval "$ac_cv_use_splash" | |
7975 | if test "$no_cache" != 1; then | |
7976 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7977 | fi | |
7978 | ||
7979 | if test "$wxUSE_SPLASH" = yes; then | |
a0b9e27f | 7980 | echo "$ac_t""yes" 1>&6 |
cbca9943 | 7981 | else |
a0b9e27f | 7982 | echo "$ac_t""no" 1>&6 |
cbca9943 | 7983 | fi |
a0b9e27f | 7984 | |
cbca9943 | 7985 | |
5005acfe VZ |
7986 | enablestring= |
7987 | echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6 | |
9b4d9d56 | 7988 | echo "configure:7989: checking for --${enablestring:-enable}-textdlg" >&5 |
10f2d63a VZ |
7989 | no_cache=0 |
7990 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7991 | if test "${enable_textdlg+set}" = set; then | |
7992 | enableval="$enable_textdlg" | |
a0b9e27f | 7993 | |
10f2d63a VZ |
7994 | if test "$enableval" = yes; then |
7995 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7996 | else | |
7997 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7998 | fi | |
a0b9e27f | 7999 | |
10f2d63a | 8000 | else |
a0b9e27f | 8001 | |
10f2d63a VZ |
8002 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
8003 | if test "x$LINE" != x ; then | |
8004 | eval "DEFAULT_$LINE" | |
8005 | else | |
8006 | no_cache=1 | |
8007 | fi | |
8008 | ||
8009 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
a0b9e27f MB |
8010 | |
8011 | fi | |
10f2d63a VZ |
8012 | |
8013 | ||
8014 | eval "$ac_cv_use_textdlg" | |
8015 | if test "$no_cache" != 1; then | |
8016 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
8017 | fi | |
8018 | ||
8019 | if test "$wxUSE_TEXTDLG" = yes; then | |
a0b9e27f | 8020 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8021 | else |
a0b9e27f | 8022 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8023 | fi |
a0b9e27f | 8024 | |
10f2d63a | 8025 | |
5005acfe VZ |
8026 | enablestring= |
8027 | echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6 | |
9b4d9d56 | 8028 | echo "configure:8029: checking for --${enablestring:-enable}-tipdlg" >&5 |
10f2d63a VZ |
8029 | no_cache=0 |
8030 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
8031 | if test "${enable_tipdlg+set}" = set; then | |
8032 | enableval="$enable_tipdlg" | |
a0b9e27f | 8033 | |
10f2d63a VZ |
8034 | if test "$enableval" = yes; then |
8035 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
8036 | else | |
8037 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
8038 | fi | |
a0b9e27f | 8039 | |
10f2d63a | 8040 | else |
a0b9e27f | 8041 | |
10f2d63a VZ |
8042 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
8043 | if test "x$LINE" != x ; then | |
8044 | eval "DEFAULT_$LINE" | |
8045 | else | |
8046 | no_cache=1 | |
8047 | fi | |
8048 | ||
8049 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
a0b9e27f MB |
8050 | |
8051 | fi | |
10f2d63a VZ |
8052 | |
8053 | ||
8054 | eval "$ac_cv_use_tipdlg" | |
8055 | if test "$no_cache" != 1; then | |
8056 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8057 | fi | |
8058 | ||
8059 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
a0b9e27f | 8060 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8061 | else |
a0b9e27f | 8062 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8063 | fi |
a0b9e27f | 8064 | |
10f2d63a | 8065 | |
5005acfe VZ |
8066 | enablestring= |
8067 | echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6 | |
9b4d9d56 | 8068 | echo "configure:8069: checking for --${enablestring:-enable}-progressdlg" >&5 |
10f2d63a VZ |
8069 | no_cache=0 |
8070 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8071 | if test "${enable_progressdlg+set}" = set; then | |
8072 | enableval="$enable_progressdlg" | |
a0b9e27f | 8073 | |
10f2d63a VZ |
8074 | if test "$enableval" = yes; then |
8075 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8076 | else | |
8077 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8078 | fi | |
a0b9e27f | 8079 | |
10f2d63a | 8080 | else |
a0b9e27f | 8081 | |
10f2d63a VZ |
8082 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
8083 | if test "x$LINE" != x ; then | |
8084 | eval "DEFAULT_$LINE" | |
8085 | else | |
8086 | no_cache=1 | |
8087 | fi | |
8088 | ||
8089 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
a0b9e27f MB |
8090 | |
8091 | fi | |
10f2d63a VZ |
8092 | |
8093 | ||
8094 | eval "$ac_cv_use_progressdlg" | |
8095 | if test "$no_cache" != 1; then | |
8096 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
8097 | fi | |
8098 | ||
8099 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
a0b9e27f | 8100 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8101 | else |
a0b9e27f | 8102 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8103 | fi |
a0b9e27f | 8104 | |
10f2d63a | 8105 | |
5005acfe VZ |
8106 | enablestring= |
8107 | echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6 | |
9b4d9d56 | 8108 | echo "configure:8109: checking for --${enablestring:-enable}-wizarddlg" >&5 |
b1f5d087 VZ |
8109 | no_cache=0 |
8110 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
8111 | if test "${enable_wizarddlg+set}" = set; then | |
8112 | enableval="$enable_wizarddlg" | |
a0b9e27f | 8113 | |
b1f5d087 VZ |
8114 | if test "$enableval" = yes; then |
8115 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
8116 | else | |
8117 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
8118 | fi | |
a0b9e27f | 8119 | |
b1f5d087 | 8120 | else |
a0b9e27f | 8121 | |
b1f5d087 VZ |
8122 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
8123 | if test "x$LINE" != x ; then | |
8124 | eval "DEFAULT_$LINE" | |
8125 | else | |
8126 | no_cache=1 | |
8127 | fi | |
8128 | ||
8129 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
a0b9e27f MB |
8130 | |
8131 | fi | |
b1f5d087 VZ |
8132 | |
8133 | ||
8134 | eval "$ac_cv_use_wizarddlg" | |
8135 | if test "$no_cache" != 1; then | |
8136 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
8137 | fi | |
8138 | ||
8139 | if test "$wxUSE_WIZARDDLG" = yes; then | |
a0b9e27f | 8140 | echo "$ac_t""yes" 1>&6 |
b1f5d087 | 8141 | else |
a0b9e27f | 8142 | echo "$ac_t""no" 1>&6 |
b1f5d087 | 8143 | fi |
a0b9e27f | 8144 | |
8284b0c5 MB |
8145 | |
8146 | ||
52127426 | 8147 | |
5005acfe VZ |
8148 | enablestring= |
8149 | echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6 | |
9b4d9d56 | 8150 | echo "configure:8151: checking for --${enablestring:-enable}-menus" >&5 |
1e6feb95 VZ |
8151 | no_cache=0 |
8152 | # Check whether --enable-menus or --disable-menus was given. | |
8153 | if test "${enable_menus+set}" = set; then | |
8154 | enableval="$enable_menus" | |
a0b9e27f | 8155 | |
1e6feb95 VZ |
8156 | if test "$enableval" = yes; then |
8157 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8158 | else | |
8159 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8160 | fi | |
a0b9e27f | 8161 | |
1e6feb95 | 8162 | else |
a0b9e27f | 8163 | |
1e6feb95 VZ |
8164 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
8165 | if test "x$LINE" != x ; then | |
8166 | eval "DEFAULT_$LINE" | |
8167 | else | |
8168 | no_cache=1 | |
8169 | fi | |
8170 | ||
8171 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
a0b9e27f MB |
8172 | |
8173 | fi | |
1e6feb95 VZ |
8174 | |
8175 | ||
8176 | eval "$ac_cv_use_menus" | |
8177 | if test "$no_cache" != 1; then | |
8178 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8179 | fi | |
8180 | ||
8181 | if test "$wxUSE_MENUS" = yes; then | |
a0b9e27f | 8182 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8183 | else |
a0b9e27f | 8184 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8185 | fi |
a0b9e27f | 8186 | |
1e6feb95 | 8187 | |
5005acfe VZ |
8188 | enablestring= |
8189 | echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6 | |
9b4d9d56 | 8190 | echo "configure:8191: checking for --${enablestring:-enable}-miniframe" >&5 |
10f2d63a VZ |
8191 | no_cache=0 |
8192 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8193 | if test "${enable_miniframe+set}" = set; then | |
8194 | enableval="$enable_miniframe" | |
a0b9e27f | 8195 | |
10f2d63a VZ |
8196 | if test "$enableval" = yes; then |
8197 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8198 | else | |
8199 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8200 | fi | |
a0b9e27f | 8201 | |
10f2d63a | 8202 | else |
a0b9e27f | 8203 | |
10f2d63a VZ |
8204 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
8205 | if test "x$LINE" != x ; then | |
8206 | eval "DEFAULT_$LINE" | |
8207 | else | |
8208 | no_cache=1 | |
8209 | fi | |
8210 | ||
8211 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
a0b9e27f MB |
8212 | |
8213 | fi | |
10f2d63a VZ |
8214 | |
8215 | ||
8216 | eval "$ac_cv_use_miniframe" | |
8217 | if test "$no_cache" != 1; then | |
8218 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8219 | fi | |
8220 | ||
8221 | if test "$wxUSE_MINIFRAME" = yes; then | |
a0b9e27f | 8222 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8223 | else |
a0b9e27f | 8224 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8225 | fi |
a0b9e27f | 8226 | |
10f2d63a | 8227 | |
5005acfe VZ |
8228 | enablestring= |
8229 | echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6 | |
9b4d9d56 | 8230 | echo "configure:8231: checking for --${enablestring:-enable}-tooltips" >&5 |
10f2d63a VZ |
8231 | no_cache=0 |
8232 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8233 | if test "${enable_tooltips+set}" = set; then | |
8234 | enableval="$enable_tooltips" | |
a0b9e27f | 8235 | |
10f2d63a VZ |
8236 | if test "$enableval" = yes; then |
8237 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8238 | else | |
8239 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8240 | fi | |
a0b9e27f | 8241 | |
10f2d63a | 8242 | else |
a0b9e27f | 8243 | |
10f2d63a VZ |
8244 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
8245 | if test "x$LINE" != x ; then | |
8246 | eval "DEFAULT_$LINE" | |
8247 | else | |
8248 | no_cache=1 | |
8249 | fi | |
8250 | ||
8251 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
a0b9e27f MB |
8252 | |
8253 | fi | |
10f2d63a VZ |
8254 | |
8255 | ||
8256 | eval "$ac_cv_use_tooltips" | |
8257 | if test "$no_cache" != 1; then | |
8258 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8259 | fi | |
8260 | ||
8261 | if test "$wxUSE_TOOLTIPS" = yes; then | |
a0b9e27f | 8262 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8263 | else |
a0b9e27f | 8264 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8265 | fi |
a0b9e27f | 8266 | |
10f2d63a | 8267 | |
5005acfe VZ |
8268 | enablestring= |
8269 | echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6 | |
9b4d9d56 | 8270 | echo "configure:8271: checking for --${enablestring:-enable}-splines" >&5 |
10f2d63a VZ |
8271 | no_cache=0 |
8272 | # Check whether --enable-splines or --disable-splines was given. | |
8273 | if test "${enable_splines+set}" = set; then | |
8274 | enableval="$enable_splines" | |
a0b9e27f | 8275 | |
10f2d63a VZ |
8276 | if test "$enableval" = yes; then |
8277 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8278 | else | |
8279 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8280 | fi | |
a0b9e27f | 8281 | |
10f2d63a | 8282 | else |
a0b9e27f | 8283 | |
10f2d63a VZ |
8284 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
8285 | if test "x$LINE" != x ; then | |
8286 | eval "DEFAULT_$LINE" | |
8287 | else | |
8288 | no_cache=1 | |
8289 | fi | |
8290 | ||
8291 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
a0b9e27f MB |
8292 | |
8293 | fi | |
10f2d63a VZ |
8294 | |
8295 | ||
8296 | eval "$ac_cv_use_splines" | |
8297 | if test "$no_cache" != 1; then | |
8298 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8299 | fi | |
8300 | ||
8301 | if test "$wxUSE_SPLINES" = yes; then | |
a0b9e27f | 8302 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8303 | else |
a0b9e27f | 8304 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8305 | fi |
a0b9e27f | 8306 | |
10f2d63a | 8307 | |
5005acfe VZ |
8308 | enablestring= |
8309 | echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6 | |
9b4d9d56 | 8310 | echo "configure:8311: checking for --${enablestring:-enable}-validators" >&5 |
10f2d63a VZ |
8311 | no_cache=0 |
8312 | # Check whether --enable-validators or --disable-validators was given. | |
8313 | if test "${enable_validators+set}" = set; then | |
8314 | enableval="$enable_validators" | |
a0b9e27f | 8315 | |
10f2d63a VZ |
8316 | if test "$enableval" = yes; then |
8317 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8318 | else | |
8319 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8320 | fi | |
a0b9e27f | 8321 | |
10f2d63a | 8322 | else |
a0b9e27f | 8323 | |
10f2d63a VZ |
8324 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
8325 | if test "x$LINE" != x ; then | |
8326 | eval "DEFAULT_$LINE" | |
8327 | else | |
8328 | no_cache=1 | |
8329 | fi | |
8330 | ||
8331 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
a0b9e27f MB |
8332 | |
8333 | fi | |
10f2d63a VZ |
8334 | |
8335 | ||
8336 | eval "$ac_cv_use_validators" | |
8337 | if test "$no_cache" != 1; then | |
8338 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8339 | fi | |
8340 | ||
8341 | if test "$wxUSE_VALIDATORS" = yes; then | |
a0b9e27f | 8342 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8343 | else |
a0b9e27f | 8344 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8345 | fi |
a0b9e27f | 8346 | |
10f2d63a | 8347 | |
5005acfe VZ |
8348 | enablestring= |
8349 | echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6 | |
9b4d9d56 | 8350 | echo "configure:8351: checking for --${enablestring:-enable}-busyinfo" >&5 |
10f2d63a VZ |
8351 | no_cache=0 |
8352 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8353 | if test "${enable_busyinfo+set}" = set; then | |
8354 | enableval="$enable_busyinfo" | |
a0b9e27f | 8355 | |
10f2d63a VZ |
8356 | if test "$enableval" = yes; then |
8357 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8358 | else | |
8359 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8360 | fi | |
a0b9e27f | 8361 | |
10f2d63a | 8362 | else |
a0b9e27f | 8363 | |
10f2d63a VZ |
8364 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8365 | if test "x$LINE" != x ; then | |
8366 | eval "DEFAULT_$LINE" | |
8367 | else | |
8368 | no_cache=1 | |
8369 | fi | |
8370 | ||
8371 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
a0b9e27f MB |
8372 | |
8373 | fi | |
10f2d63a VZ |
8374 | |
8375 | ||
8376 | eval "$ac_cv_use_busyinfo" | |
8377 | if test "$no_cache" != 1; then | |
8378 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8379 | fi | |
8380 | ||
8381 | if test "$wxUSE_BUSYINFO" = yes; then | |
a0b9e27f | 8382 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8383 | else |
a0b9e27f | 8384 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8385 | fi |
a0b9e27f | 8386 | |
10f2d63a | 8387 | |
5005acfe VZ |
8388 | enablestring= |
8389 | echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6 | |
9b4d9d56 | 8390 | echo "configure:8391: checking for --${enablestring:-enable}-joystick" >&5 |
f6bcfd97 BP |
8391 | no_cache=0 |
8392 | # Check whether --enable-joystick or --disable-joystick was given. | |
8393 | if test "${enable_joystick+set}" = set; then | |
8394 | enableval="$enable_joystick" | |
a0b9e27f | 8395 | |
f6bcfd97 BP |
8396 | if test "$enableval" = yes; then |
8397 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8398 | else | |
8399 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8400 | fi | |
a0b9e27f | 8401 | |
f6bcfd97 | 8402 | else |
a0b9e27f | 8403 | |
f6bcfd97 BP |
8404 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8405 | if test "x$LINE" != x ; then | |
8406 | eval "DEFAULT_$LINE" | |
8407 | else | |
8408 | no_cache=1 | |
8409 | fi | |
8410 | ||
8411 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
a0b9e27f MB |
8412 | |
8413 | fi | |
f6bcfd97 BP |
8414 | |
8415 | ||
8416 | eval "$ac_cv_use_joystick" | |
8417 | if test "$no_cache" != 1; then | |
8418 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8419 | fi | |
8420 | ||
8421 | if test "$wxUSE_JOYSTICK" = yes; then | |
a0b9e27f | 8422 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8423 | else |
a0b9e27f | 8424 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8425 | fi |
a0b9e27f | 8426 | |
698dcdb6 | 8427 | |
5005acfe VZ |
8428 | enablestring= |
8429 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
9b4d9d56 | 8430 | echo "configure:8431: checking for --${enablestring:-enable}-metafile" >&5 |
1e6feb95 VZ |
8431 | no_cache=0 |
8432 | # Check whether --enable-metafile or --disable-metafile was given. | |
8433 | if test "${enable_metafile+set}" = set; then | |
8434 | enableval="$enable_metafile" | |
a0b9e27f | 8435 | |
1e6feb95 VZ |
8436 | if test "$enableval" = yes; then |
8437 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8438 | else | |
8439 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8440 | fi | |
a0b9e27f | 8441 | |
1e6feb95 | 8442 | else |
a0b9e27f | 8443 | |
1e6feb95 VZ |
8444 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
8445 | if test "x$LINE" != x ; then | |
8446 | eval "DEFAULT_$LINE" | |
8447 | else | |
8448 | no_cache=1 | |
8449 | fi | |
8450 | ||
8451 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
8452 | |
8453 | fi | |
1e6feb95 VZ |
8454 | |
8455 | ||
8456 | eval "$ac_cv_use_metafile" | |
8457 | if test "$no_cache" != 1; then | |
8458 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8459 | fi | |
8460 | ||
8461 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 8462 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8463 | else |
a0b9e27f | 8464 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8465 | fi |
a0b9e27f | 8466 | |
1e6feb95 | 8467 | |
5005acfe VZ |
8468 | enablestring= |
8469 | echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6 | |
9b4d9d56 | 8470 | echo "configure:8471: checking for --${enablestring:-enable}-dragimage" >&5 |
24fd6d87 VZ |
8471 | no_cache=0 |
8472 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8473 | if test "${enable_dragimage+set}" = set; then | |
8474 | enableval="$enable_dragimage" | |
a0b9e27f | 8475 | |
24fd6d87 VZ |
8476 | if test "$enableval" = yes; then |
8477 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8478 | else | |
8479 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8480 | fi | |
a0b9e27f | 8481 | |
24fd6d87 | 8482 | else |
a0b9e27f | 8483 | |
24fd6d87 VZ |
8484 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
8485 | if test "x$LINE" != x ; then | |
8486 | eval "DEFAULT_$LINE" | |
8487 | else | |
8488 | no_cache=1 | |
8489 | fi | |
8490 | ||
8491 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
a0b9e27f MB |
8492 | |
8493 | fi | |
24fd6d87 VZ |
8494 | |
8495 | ||
8496 | eval "$ac_cv_use_dragimage" | |
8497 | if test "$no_cache" != 1; then | |
8498 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8499 | fi | |
8500 | ||
8501 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
a0b9e27f | 8502 | echo "$ac_t""yes" 1>&6 |
24fd6d87 | 8503 | else |
a0b9e27f | 8504 | echo "$ac_t""no" 1>&6 |
24fd6d87 | 8505 | fi |
a0b9e27f | 8506 | |
52127426 | 8507 | |
8284b0c5 MB |
8508 | |
8509 | ||
5005acfe VZ |
8510 | enablestring= |
8511 | echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6 | |
9b4d9d56 | 8512 | echo "configure:8513: checking for --${enablestring:-enable}-palette" >&5 |
edae8572 VZ |
8513 | no_cache=0 |
8514 | # Check whether --enable-palette or --disable-palette was given. | |
8515 | if test "${enable_palette+set}" = set; then | |
8516 | enableval="$enable_palette" | |
a0b9e27f | 8517 | |
edae8572 VZ |
8518 | if test "$enableval" = yes; then |
8519 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8520 | else | |
8521 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8522 | fi | |
a0b9e27f | 8523 | |
edae8572 | 8524 | else |
a0b9e27f | 8525 | |
edae8572 VZ |
8526 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
8527 | if test "x$LINE" != x ; then | |
8528 | eval "DEFAULT_$LINE" | |
8529 | else | |
8530 | no_cache=1 | |
8531 | fi | |
8532 | ||
8533 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
a0b9e27f MB |
8534 | |
8535 | fi | |
edae8572 VZ |
8536 | |
8537 | ||
8538 | eval "$ac_cv_use_palette" | |
8539 | if test "$no_cache" != 1; then | |
8540 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8541 | fi | |
8542 | ||
8543 | if test "$wxUSE_PALETTE" = yes; then | |
a0b9e27f | 8544 | echo "$ac_t""yes" 1>&6 |
edae8572 | 8545 | else |
a0b9e27f | 8546 | echo "$ac_t""no" 1>&6 |
edae8572 | 8547 | fi |
a0b9e27f | 8548 | |
edae8572 | 8549 | |
5005acfe VZ |
8550 | enablestring= |
8551 | echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6 | |
9b4d9d56 | 8552 | echo "configure:8553: checking for --${enablestring:-enable}-image" >&5 |
0046ff7c VS |
8553 | no_cache=0 |
8554 | # Check whether --enable-image or --disable-image was given. | |
8555 | if test "${enable_image+set}" = set; then | |
8556 | enableval="$enable_image" | |
a0b9e27f | 8557 | |
0046ff7c VS |
8558 | if test "$enableval" = yes; then |
8559 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8560 | else | |
8561 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8562 | fi | |
a0b9e27f | 8563 | |
0046ff7c | 8564 | else |
a0b9e27f | 8565 | |
0046ff7c VS |
8566 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8567 | if test "x$LINE" != x ; then | |
8568 | eval "DEFAULT_$LINE" | |
8569 | else | |
8570 | no_cache=1 | |
8571 | fi | |
8572 | ||
8573 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
a0b9e27f MB |
8574 | |
8575 | fi | |
0046ff7c VS |
8576 | |
8577 | ||
8578 | eval "$ac_cv_use_image" | |
8579 | if test "$no_cache" != 1; then | |
8580 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8581 | fi | |
8582 | ||
8583 | if test "$wxUSE_IMAGE" = yes; then | |
a0b9e27f | 8584 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8585 | else |
a0b9e27f | 8586 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8587 | fi |
a0b9e27f | 8588 | |
0046ff7c | 8589 | |
5005acfe VZ |
8590 | enablestring= |
8591 | echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6 | |
9b4d9d56 | 8592 | echo "configure:8593: checking for --${enablestring:-enable}-gif" >&5 |
10f2d63a VZ |
8593 | no_cache=0 |
8594 | # Check whether --enable-gif or --disable-gif was given. | |
8595 | if test "${enable_gif+set}" = set; then | |
8596 | enableval="$enable_gif" | |
a0b9e27f | 8597 | |
10f2d63a VZ |
8598 | if test "$enableval" = yes; then |
8599 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8600 | else | |
8601 | ac_cv_use_gif='wxUSE_GIF=no' | |
8602 | fi | |
a0b9e27f | 8603 | |
10f2d63a | 8604 | else |
a0b9e27f | 8605 | |
10f2d63a VZ |
8606 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8607 | if test "x$LINE" != x ; then | |
8608 | eval "DEFAULT_$LINE" | |
8609 | else | |
8610 | no_cache=1 | |
8611 | fi | |
8612 | ||
8613 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
a0b9e27f MB |
8614 | |
8615 | fi | |
10f2d63a VZ |
8616 | |
8617 | ||
8618 | eval "$ac_cv_use_gif" | |
8619 | if test "$no_cache" != 1; then | |
8620 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8621 | fi | |
8622 | ||
8623 | if test "$wxUSE_GIF" = yes; then | |
a0b9e27f | 8624 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8625 | else |
a0b9e27f | 8626 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8627 | fi |
a0b9e27f | 8628 | |
10f2d63a | 8629 | |
5005acfe VZ |
8630 | enablestring= |
8631 | echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6 | |
9b4d9d56 | 8632 | echo "configure:8633: checking for --${enablestring:-enable}-pcx" >&5 |
10f2d63a VZ |
8633 | no_cache=0 |
8634 | # Check whether --enable-pcx or --disable-pcx was given. | |
8635 | if test "${enable_pcx+set}" = set; then | |
8636 | enableval="$enable_pcx" | |
a0b9e27f | 8637 | |
10f2d63a VZ |
8638 | if test "$enableval" = yes; then |
8639 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8640 | else | |
8641 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8642 | fi | |
a0b9e27f | 8643 | |
10f2d63a | 8644 | else |
a0b9e27f | 8645 | |
10f2d63a VZ |
8646 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8647 | if test "x$LINE" != x ; then | |
8648 | eval "DEFAULT_$LINE" | |
8649 | else | |
8650 | no_cache=1 | |
8651 | fi | |
8652 | ||
8653 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
a0b9e27f MB |
8654 | |
8655 | fi | |
10f2d63a VZ |
8656 | |
8657 | ||
8658 | eval "$ac_cv_use_pcx" | |
8659 | if test "$no_cache" != 1; then | |
8660 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8661 | fi | |
8662 | ||
8663 | if test "$wxUSE_PCX" = yes; then | |
a0b9e27f | 8664 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8665 | else |
a0b9e27f | 8666 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8667 | fi |
a0b9e27f | 8668 | |
10f2d63a | 8669 | |
5005acfe VZ |
8670 | enablestring= |
8671 | echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6 | |
9b4d9d56 | 8672 | echo "configure:8673: checking for --${enablestring:-enable}-iff" >&5 |
4b6b4dfc RR |
8673 | no_cache=0 |
8674 | # Check whether --enable-iff or --disable-iff was given. | |
8675 | if test "${enable_iff+set}" = set; then | |
8676 | enableval="$enable_iff" | |
a0b9e27f | 8677 | |
4b6b4dfc RR |
8678 | if test "$enableval" = yes; then |
8679 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8680 | else | |
8681 | ac_cv_use_iff='wxUSE_IFF=no' | |
8682 | fi | |
a0b9e27f | 8683 | |
4b6b4dfc | 8684 | else |
a0b9e27f | 8685 | |
4b6b4dfc RR |
8686 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
8687 | if test "x$LINE" != x ; then | |
8688 | eval "DEFAULT_$LINE" | |
8689 | else | |
8690 | no_cache=1 | |
8691 | fi | |
8692 | ||
8693 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
a0b9e27f MB |
8694 | |
8695 | fi | |
4b6b4dfc RR |
8696 | |
8697 | ||
8698 | eval "$ac_cv_use_iff" | |
8699 | if test "$no_cache" != 1; then | |
8700 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8701 | fi | |
8702 | ||
8703 | if test "$wxUSE_IFF" = yes; then | |
a0b9e27f | 8704 | echo "$ac_t""yes" 1>&6 |
4b6b4dfc | 8705 | else |
a0b9e27f | 8706 | echo "$ac_t""no" 1>&6 |
4b6b4dfc | 8707 | fi |
a0b9e27f | 8708 | |
4b6b4dfc | 8709 | |
5005acfe VZ |
8710 | enablestring= |
8711 | echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6 | |
9b4d9d56 | 8712 | echo "configure:8713: checking for --${enablestring:-enable}-pnm" >&5 |
10f2d63a VZ |
8713 | no_cache=0 |
8714 | # Check whether --enable-pnm or --disable-pnm was given. | |
8715 | if test "${enable_pnm+set}" = set; then | |
8716 | enableval="$enable_pnm" | |
a0b9e27f | 8717 | |
10f2d63a VZ |
8718 | if test "$enableval" = yes; then |
8719 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8720 | else | |
8721 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8722 | fi | |
a0b9e27f | 8723 | |
10f2d63a | 8724 | else |
a0b9e27f | 8725 | |
10f2d63a VZ |
8726 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8727 | if test "x$LINE" != x ; then | |
8728 | eval "DEFAULT_$LINE" | |
8729 | else | |
8730 | no_cache=1 | |
8731 | fi | |
8732 | ||
8733 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
a0b9e27f MB |
8734 | |
8735 | fi | |
10f2d63a VZ |
8736 | |
8737 | ||
8738 | eval "$ac_cv_use_pnm" | |
8739 | if test "$no_cache" != 1; then | |
8740 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8741 | fi | |
8742 | ||
8743 | if test "$wxUSE_PNM" = yes; then | |
a0b9e27f | 8744 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8745 | else |
a0b9e27f | 8746 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8747 | fi |
a0b9e27f | 8748 | |
10f2d63a | 8749 | |
5005acfe VZ |
8750 | enablestring= |
8751 | echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6 | |
9b4d9d56 | 8752 | echo "configure:8753: checking for --${enablestring:-enable}-xpm" >&5 |
0046ff7c | 8753 | no_cache=0 |
69d27ff7 MB |
8754 | # Check whether --enable-xpm or --disable-xpm was given. |
8755 | if test "${enable_xpm+set}" = set; then | |
8756 | enableval="$enable_xpm" | |
a0b9e27f | 8757 | |
0046ff7c | 8758 | if test "$enableval" = yes; then |
69d27ff7 | 8759 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8760 | else |
69d27ff7 | 8761 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8762 | fi |
a0b9e27f | 8763 | |
0046ff7c | 8764 | else |
a0b9e27f | 8765 | |
0046ff7c VS |
8766 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8767 | if test "x$LINE" != x ; then | |
8768 | eval "DEFAULT_$LINE" | |
8769 | else | |
8770 | no_cache=1 | |
8771 | fi | |
8772 | ||
69d27ff7 | 8773 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
a0b9e27f MB |
8774 | |
8775 | fi | |
0046ff7c VS |
8776 | |
8777 | ||
69d27ff7 | 8778 | eval "$ac_cv_use_xpm" |
0046ff7c | 8779 | if test "$no_cache" != 1; then |
69d27ff7 | 8780 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8781 | fi |
8782 | ||
8783 | if test "$wxUSE_XPM" = yes; then | |
a0b9e27f | 8784 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8785 | else |
a0b9e27f | 8786 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8787 | fi |
a0b9e27f | 8788 | |
0046ff7c | 8789 | |
5005acfe VZ |
8790 | enablestring= |
8791 | echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6 | |
9b4d9d56 | 8792 | echo "configure:8793: checking for --${enablestring:-enable}-ico_cur" >&5 |
658974ae | 8793 | no_cache=0 |
c7206e64 VS |
8794 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8795 | if test "${enable_ico_cur+set}" = set; then | |
8796 | enableval="$enable_ico_cur" | |
a0b9e27f | 8797 | |
658974ae | 8798 | if test "$enableval" = yes; then |
c7206e64 | 8799 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8800 | else |
c7206e64 | 8801 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 8802 | fi |
a0b9e27f | 8803 | |
658974ae | 8804 | else |
a0b9e27f | 8805 | |
658974ae VS |
8806 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
8807 | if test "x$LINE" != x ; then | |
8808 | eval "DEFAULT_$LINE" | |
8809 | else | |
8810 | no_cache=1 | |
8811 | fi | |
8812 | ||
c7206e64 | 8813 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
a0b9e27f MB |
8814 | |
8815 | fi | |
658974ae VS |
8816 | |
8817 | ||
c7206e64 | 8818 | eval "$ac_cv_use_ico_cur" |
658974ae | 8819 | if test "$no_cache" != 1; then |
c7206e64 | 8820 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8821 | fi |
8822 | ||
8823 | if test "$wxUSE_ICO_CUR" = yes; then | |
a0b9e27f | 8824 | echo "$ac_t""yes" 1>&6 |
658974ae | 8825 | else |
a0b9e27f | 8826 | echo "$ac_t""no" 1>&6 |
658974ae | 8827 | fi |
a0b9e27f | 8828 | |
658974ae | 8829 | |
b12915c1 VZ |
8830 | fi |
8831 | ||
d558c907 VS |
8832 | case "${host}" in |
8833 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 MB |
8834 | PATH_IFS=';' |
8835 | LEX_STEM="lexyy" | |
d558c907 VS |
8836 | ;; |
8837 | *) | |
8838 | PATH_IFS=':' | |
8839 | LEX_STEM="lex.yy" | |
8840 | ;; | |
8841 | esac | |
8842 | ||
8284b0c5 MB |
8843 | |
8844 | ||
10f2d63a VZ |
8845 | echo "saving argument cache $wx_arg_cache_file" |
8846 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
a0b9e27f | 8847 | |
52127426 | 8848 | |
8284b0c5 | 8849 | |
a0b9e27f | 8850 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 |
9b4d9d56 | 8851 | echo "configure:8852: checking for toolkit" >&5 |
89e6bf6d VZ |
8852 | |
8853 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
8854 | if test "$wxUSE_WINE" = "yes"; then | |
8855 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
8856 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
8857 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
8858 | fi | |
10f2d63a VZ |
8859 | |
8860 | if test "$wxUSE_GUI" = "yes"; then | |
8861 | ||
3a922bb4 | 8862 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 8863 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
3a922bb4 | 8864 | fi |
b12915c1 | 8865 | |
3a922bb4 RL |
8866 | if test "$TOOLKIT_GIVEN" = 1; then |
8867 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8868 | var=wxUSE_$toolkit | |
8869 | eval "value=\$${var}" | |
8870 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8871 | done | |
10f2d63a | 8872 | else |
3a922bb4 RL |
8873 | for toolkit in `echo $ALL_TOOLKITS`; do |
8874 | if test "$has_toolkit_in_cache" != 1; then | |
8875 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8876 | else | |
8877 | var=DEFAULT_wxUSE_$toolkit | |
8878 | fi | |
8879 | eval "wxUSE_$toolkit=\$${var}" | |
8880 | done | |
10f2d63a | 8881 | fi |
10f2d63a | 8882 | |
ac0c4cc3 DE |
8883 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ |
8884 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
8885 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10f2d63a | 8886 | |
d558c907 | 8887 | case "${host}" in |
6fa882bd | 8888 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8889 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8890 | esac |
10f2d63a | 8891 | |
3a922bb4 RL |
8892 | case "$NUM_TOOLKITS" in |
8893 | 1) | |
8894 | ;; | |
8895 | 0) | |
a0b9e27f | 8896 | { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; } |
3a922bb4 RL |
8897 | ;; |
8898 | *) | |
a0b9e27f | 8899 | { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; } |
3a922bb4 | 8900 | esac |
10f2d63a | 8901 | |
3a922bb4 RL |
8902 | for toolkit in `echo $ALL_TOOLKITS`; do |
8903 | var=wxUSE_$toolkit | |
8904 | eval "value=\$${var}" | |
8905 | if test "x$value" != x; then | |
8906 | cache_var=CACHE_$toolkit | |
8907 | eval "cache=\$${cache_var}" | |
8908 | if test "$cache" = 1; then | |
8909 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8910 | fi | |
8911 | if test "$value" = 1; then | |
8912 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
a0b9e27f | 8913 | echo "$ac_t""$toolkit_echo" 1>&6 |
3a922bb4 RL |
8914 | fi |
8915 | fi | |
8916 | done | |
10f2d63a | 8917 | else |
a0b9e27f | 8918 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8919 | fi |
8920 | ||
43d99b6d VS |
8921 | wants_win32=0 |
8922 | doesnt_want_win32=0 | |
17234b26 MB |
8923 | case "${host}" in |
8924 | *-*-cygwin*) | |
8925 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
8926 | wants_win32=1 |
8927 | else | |
8928 | doesnt_want_win32=1 | |
17234b26 MB |
8929 | fi |
8930 | ;; | |
8931 | *-*-mingw*) | |
43d99b6d | 8932 | wants_win32=1 |
17234b26 MB |
8933 | ;; |
8934 | esac | |
8935 | ||
89e6bf6d VZ |
8936 | if test "$wxUSE_WINE" = "yes"; then |
8937 | wants_win32=1 | |
8938 | CC=winegcc | |
8939 | CXX=wineg++ | |
8940 | RESCOMP=wrc | |
8941 | fi | |
8942 | ||
43d99b6d | 8943 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
8944 | USE_UNIX=0 |
8945 | USE_WIN32=1 | |
a0b9e27f | 8946 | cat >> confdefs.h <<\EOF |
17234b26 | 8947 | #define __WIN32__ 1 |
a0b9e27f | 8948 | EOF |
17234b26 | 8949 | |
a0b9e27f | 8950 | cat >> confdefs.h <<\EOF |
17234b26 | 8951 | #define __WIN95__ 1 |
a0b9e27f | 8952 | EOF |
17234b26 | 8953 | |
a0b9e27f | 8954 | cat >> confdefs.h <<\EOF |
17234b26 | 8955 | #define __WINDOWS__ 1 |
a0b9e27f | 8956 | EOF |
17234b26 | 8957 | |
a0b9e27f | 8958 | cat >> confdefs.h <<\EOF |
17234b26 | 8959 | #define __GNUWIN32__ 1 |
a0b9e27f | 8960 | EOF |
17234b26 | 8961 | |
a0b9e27f | 8962 | cat >> confdefs.h <<\EOF |
17234b26 | 8963 | #define STRICT 1 |
a0b9e27f | 8964 | EOF |
17234b26 | 8965 | |
a0b9e27f | 8966 | cat >> confdefs.h <<\EOF |
17234b26 | 8967 | #define WINVER 0x0400 |
a0b9e27f | 8968 | EOF |
17234b26 | 8969 | |
43d99b6d VS |
8970 | fi |
8971 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
8972 | USE_UNIX=1 |
8973 | USE_WIN32=0 | |
8974 | fi | |
8975 | ||
8976 | if test "$USE_UNIX" = 1 ; then | |
8977 | wxUSE_UNIX=yes | |
a0b9e27f | 8978 | cat >> confdefs.h <<\EOF |
17234b26 | 8979 | #define __UNIX__ 1 |
a0b9e27f | 8980 | EOF |
17234b26 MB |
8981 | |
8982 | fi | |
8983 | ||
8284b0c5 | 8984 | |
a0b9e27f | 8985 | cat > confcache <<\EOF |
10f2d63a VZ |
8986 | # This file is a shell script that caches the results of configure |
8987 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
8988 | # scripts and configure runs. It is not useful on other systems. |
8989 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8990 | # |
a0b9e27f MB |
8991 | # By default, configure uses ./config.cache as the cache file, |
8992 | # creating it if it does not exist already. You can give configure | |
8993 | # the --cache-file=FILE option to use a different cache file; that is | |
8994 | # what configure does when it calls configure scripts in | |
8995 | # subdirectories, so they share the cache. | |
8996 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8997 | # config.status only pays attention to the cache file if you give it the | |
8998 | # --recheck option to rerun configure. | |
10f2d63a | 8999 | # |
a0b9e27f | 9000 | EOF |
10f2d63a VZ |
9001 | # The following way of writing the cache mishandles newlines in values, |
9002 | # but we know of no workaround that is simple, portable, and efficient. | |
9003 | # So, don't put newlines in cache variables' values. | |
9004 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9005 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
9006 | (set) 2>&1 | |
9007 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9008 | *ac_space=\ *) | |
9009 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
9010 | # turns \\\\ into \\, and sed turns \\ into \). | |
9011 | sed -n \ | |
9012 | -e "s/'/'\\\\''/g" \ | |
9013 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
9014 | ;; | |
9015 | *) | |
9016 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9017 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
9018 | ;; | |
9019 | esac >> confcache | |
9020 | if cmp -s $cache_file confcache; then | |
9021 | : | |
9022 | else | |
10f2d63a | 9023 | if test -w $cache_file; then |
a0b9e27f MB |
9024 | echo "updating cache $cache_file" |
9025 | cat confcache > $cache_file | |
10f2d63a VZ |
9026 | else |
9027 | echo "not updating unwritable cache $cache_file" | |
9028 | fi | |
9029 | fi | |
9030 | rm -f confcache | |
9031 | ||
a0b9e27f | 9032 | |
e59890c3 | 9033 | if test "$build" != "$host" ; then |
9d353d4a | 9034 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
9035 | CC=$host_alias-gcc |
9036 | CXX=$host_alias-c++ | |
9037 | AR=$host_alias-ar | |
9038 | RANLIB=$host_alias-ranlib | |
9039 | DLLTOOL=$host_alias-dlltool | |
9040 | RESCOMP=$host_alias-windres | |
9041 | LD=$host_alias-ld | |
9042 | NM=$host_alias-nm | |
9043 | STRIP=$host_alias-strip | |
9044 | else | |
a0b9e27f | 9045 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } |
3a922bb4 | 9046 | fi |
10f2d63a VZ |
9047 | fi |
9048 | ||
ec603395 | 9049 | CFLAGS=${CFLAGS:=} |
a0b9e27f | 9050 | # Extract the first word of "gcc", so it can be a program name with args. |
8284b0c5 | 9051 | set dummy gcc; ac_word=$2 |
a0b9e27f | 9052 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9b4d9d56 | 9053 | echo "configure:9054: checking for $ac_word" >&5 |
a0b9e27f MB |
9054 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
9055 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
9056 | else |
9057 | if test -n "$CC"; then | |
9058 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 9059 | else |
a0b9e27f MB |
9060 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9061 | ac_dummy="$PATH" | |
9062 | for ac_dir in $ac_dummy; do | |
9063 | test -z "$ac_dir" && ac_dir=. | |
9064 | if test -f $ac_dir/$ac_word; then | |
9065 | ac_cv_prog_CC="gcc" | |
9066 | break | |
9067 | fi | |
9068 | done | |
9069 | IFS="$ac_save_ifs" | |
10f2d63a | 9070 | fi |
6232543b | 9071 | fi |
a0b9e27f | 9072 | CC="$ac_cv_prog_CC" |
6232543b | 9073 | if test -n "$CC"; then |
a0b9e27f | 9074 | echo "$ac_t""$CC" 1>&6 |
247f5006 | 9075 | else |
a0b9e27f | 9076 | echo "$ac_t""no" 1>&6 |
247f5006 VZ |
9077 | fi |
9078 | ||
5c6fa7d2 RR |
9079 | if test -z "$CC"; then |
9080 | # Extract the first word of "cc", so it can be a program name with args. | |
9081 | set dummy cc; ac_word=$2 | |
a0b9e27f | 9082 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9b4d9d56 | 9083 | echo "configure:9084: checking for $ac_word" >&5 |
a0b9e27f MB |
9084 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
9085 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 RR |
9086 | else |
9087 | if test -n "$CC"; then | |
9088 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9089 | else | |
a0b9e27f | 9090 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5c6fa7d2 | 9091 | ac_prog_rejected=no |
a0b9e27f MB |
9092 | ac_dummy="$PATH" |
9093 | for ac_dir in $ac_dummy; do | |
9094 | test -z "$ac_dir" && ac_dir=. | |
9095 | if test -f $ac_dir/$ac_word; then | |
9096 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
9097 | ac_prog_rejected=yes | |
9098 | continue | |
9099 | fi | |
9100 | ac_cv_prog_CC="cc" | |
9101 | break | |
9102 | fi | |
9103 | done | |
9104 | IFS="$ac_save_ifs" | |
328a083c RR |
9105 | if test $ac_prog_rejected = yes; then |
9106 | # We found a bogon in the path, so make sure we never use it. | |
9107 | set dummy $ac_cv_prog_CC | |
9108 | shift | |
a0b9e27f | 9109 | if test $# -gt 0; then |
328a083c | 9110 | # We chose a different compiler from the bogus one. |
1e487827 VS |
9111 | # However, it has the same basename, so the bogon will be chosen |
9112 | # first if we set CC to just the basename; use the full file name. | |
9113 | shift | |
a0b9e27f | 9114 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
9115 | shift |
9116 | ac_cv_prog_CC="$@" | |
703e0a69 | 9117 | fi |
1e487827 VS |
9118 | fi |
9119 | fi | |
9120 | fi | |
a0b9e27f | 9121 | CC="$ac_cv_prog_CC" |
1e487827 | 9122 | if test -n "$CC"; then |
a0b9e27f | 9123 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 9124 | else |
a0b9e27f | 9125 | echo "$ac_t""no" 1>&6 |
703e0a69 | 9126 | fi |
1e487827 | 9127 | |
a0b9e27f MB |
9128 | if test -z "$CC"; then |
9129 | case "`uname -s`" in | |
9130 | *win32* | *WIN32*) | |
9131 | # Extract the first word of "cl", so it can be a program name with args. | |
9132 | set dummy cl; ac_word=$2 | |
9133 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9b4d9d56 | 9134 | echo "configure:9135: checking for $ac_word" >&5 |
a0b9e27f MB |
9135 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
9136 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf VS |
9137 | else |
9138 | if test -n "$CC"; then | |
9139 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9140 | else | |
a0b9e27f MB |
9141 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9142 | ac_dummy="$PATH" | |
9143 | for ac_dir in $ac_dummy; do | |
9144 | test -z "$ac_dir" && ac_dir=. | |
9145 | if test -f $ac_dir/$ac_word; then | |
9146 | ac_cv_prog_CC="cl" | |
9147 | break | |
9148 | fi | |
9149 | done | |
9150 | IFS="$ac_save_ifs" | |
f09359cf VS |
9151 | fi |
9152 | fi | |
a0b9e27f | 9153 | CC="$ac_cv_prog_CC" |
f09359cf | 9154 | if test -n "$CC"; then |
a0b9e27f | 9155 | echo "$ac_t""$CC" 1>&6 |
f09359cf | 9156 | else |
a0b9e27f | 9157 | echo "$ac_t""no" 1>&6 |
247f5006 | 9158 | fi |
a0b9e27f MB |
9159 | ;; |
9160 | esac | |
8284b0c5 | 9161 | fi |
a0b9e27f | 9162 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
5c6fa7d2 | 9163 | fi |
1e487827 | 9164 | |
a0b9e27f | 9165 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
9b4d9d56 | 9166 | echo "configure:9167: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
f09359cf | 9167 | |
a0b9e27f MB |
9168 | ac_ext=c |
9169 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9170 | ac_cpp='$CPP $CPPFLAGS' | |
9171 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9172 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9173 | cross_compiling=$ac_cv_prog_cc_cross | |
f09359cf | 9174 | |
a0b9e27f | 9175 | cat > conftest.$ac_ext << EOF |
247f5006 | 9176 | |
9b4d9d56 | 9177 | #line 9178 "configure" |
a0b9e27f | 9178 | #include "confdefs.h" |
247f5006 | 9179 | |
a0b9e27f MB |
9180 | main(){return(0);} |
9181 | EOF | |
9b4d9d56 | 9182 | if { (eval echo configure:9183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9183 | ac_cv_prog_cc_works=yes |
9184 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9185 | if (./conftest; exit) 2>/dev/null; then | |
9186 | ac_cv_prog_cc_cross=no | |
698dcdb6 | 9187 | else |
a0b9e27f | 9188 | ac_cv_prog_cc_cross=yes |
698dcdb6 | 9189 | fi |
7b4a847f | 9190 | else |
a0b9e27f MB |
9191 | echo "configure: failed program was:" >&5 |
9192 | cat conftest.$ac_ext >&5 | |
9193 | ac_cv_prog_cc_works=no | |
52127426 | 9194 | fi |
a0b9e27f MB |
9195 | rm -fr conftest* |
9196 | ac_ext=c | |
9197 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9198 | ac_cpp='$CPP $CPPFLAGS' | |
9199 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9200 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9201 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 9202 | |
a0b9e27f MB |
9203 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
9204 | if test $ac_cv_prog_cc_works = no; then | |
9205 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
9206 | fi | |
9207 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
9b4d9d56 | 9208 | echo "configure:9209: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9209 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
9210 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 9211 | |
a0b9e27f | 9212 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
9b4d9d56 | 9213 | echo "configure:9214: checking whether we are using GNU C" >&5 |
a0b9e27f MB |
9214 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
9215 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9216 | else |
a0b9e27f MB |
9217 | cat > conftest.c <<EOF |
9218 | #ifdef __GNUC__ | |
9219 | yes; | |
8284b0c5 | 9220 | #endif |
a0b9e27f | 9221 | EOF |
9b4d9d56 | 9222 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f | 9223 | ac_cv_prog_gcc=yes |
5c6fa7d2 | 9224 | else |
a0b9e27f | 9225 | ac_cv_prog_gcc=no |
8284b0c5 MB |
9226 | fi |
9227 | fi | |
1e487827 | 9228 | |
a0b9e27f | 9229 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
f09359cf | 9230 | |
a0b9e27f MB |
9231 | if test $ac_cv_prog_gcc = yes; then |
9232 | GCC=yes | |
9233 | else | |
9234 | GCC= | |
9235 | fi | |
247f5006 | 9236 | |
a0b9e27f MB |
9237 | ac_test_CFLAGS="${CFLAGS+set}" |
9238 | ac_save_CFLAGS="$CFLAGS" | |
9239 | CFLAGS= | |
9240 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
9b4d9d56 | 9241 | echo "configure:9242: checking whether ${CC-cc} accepts -g" >&5 |
a0b9e27f MB |
9242 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
9243 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9244 | else | |
9245 | echo 'void f(){}' > conftest.c | |
9246 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
9247 | ac_cv_prog_cc_g=yes |
9248 | else | |
a0b9e27f | 9249 | ac_cv_prog_cc_g=no |
10f2d63a | 9250 | fi |
a0b9e27f MB |
9251 | rm -f conftest* |
9252 | ||
10f2d63a | 9253 | fi |
a0b9e27f MB |
9254 | |
9255 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
f09359cf | 9256 | if test "$ac_test_CFLAGS" = set; then |
a0b9e27f | 9257 | CFLAGS="$ac_save_CFLAGS" |
f09359cf VS |
9258 | elif test $ac_cv_prog_cc_g = yes; then |
9259 | if test "$GCC" = yes; then | |
10f2d63a VZ |
9260 | CFLAGS="-g -O2" |
9261 | else | |
f09359cf | 9262 | CFLAGS="-g" |
10f2d63a | 9263 | fi |
5c0a20c3 | 9264 | else |
f09359cf VS |
9265 | if test "$GCC" = yes; then |
9266 | CFLAGS="-O2" | |
9267 | else | |
9268 | CFLAGS= | |
9269 | fi | |
10f2d63a VZ |
9270 | fi |
9271 | ||
9272 | ||
a0b9e27f | 9273 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
9b4d9d56 | 9274 | echo "configure:9275: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
9275 | # On Suns, sometimes $CPP names a directory. |
9276 | if test -n "$CPP" && test -d "$CPP"; then | |
9277 | CPP= | |
9278 | fi | |
9279 | if test -z "$CPP"; then | |
a0b9e27f MB |
9280 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
9281 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9282 | else | |
9283 | # This must be in double quotes, not single quotes, because CPP may get | |
9284 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
9285 | CPP="${CC-cc} -E" | |
10f2d63a | 9286 | # On the NeXT, cc -E runs the code through the compiler's parser, |
a0b9e27f MB |
9287 | # not just through cpp. |
9288 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 9289 | #line 9290 "configure" |
10f2d63a VZ |
9290 | #include "confdefs.h" |
9291 | #include <assert.h> | |
a0b9e27f MB |
9292 | Syntax Error |
9293 | EOF | |
9294 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 9295 | { (eval echo configure:9296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9296 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9297 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9298 | : |
9299 | else | |
a0b9e27f MB |
9300 | echo "$ac_err" >&5 |
9301 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9302 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9303 | rm -rf conftest* |
9304 | CPP="${CC-cc} -E -traditional-cpp" | |
9305 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 9306 | #line 9307 "configure" |
f09359cf | 9307 | #include "confdefs.h" |
a0b9e27f MB |
9308 | #include <assert.h> |
9309 | Syntax Error | |
9310 | EOF | |
9311 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 9312 | { (eval echo configure:9313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9313 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9314 | if test -z "$ac_err"; then | |
9315 | : | |
247f5006 | 9316 | else |
a0b9e27f MB |
9317 | echo "$ac_err" >&5 |
9318 | echo "configure: failed program was:" >&5 | |
f09359cf | 9319 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9320 | rm -rf conftest* |
9321 | CPP="${CC-cc} -nologo -E" | |
9322 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 9323 | #line 9324 "configure" |
10f2d63a VZ |
9324 | #include "confdefs.h" |
9325 | #include <assert.h> | |
a0b9e27f MB |
9326 | Syntax Error |
9327 | EOF | |
9328 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 9329 | { (eval echo configure:9330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9330 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9331 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9332 | : |
9333 | else | |
a0b9e27f MB |
9334 | echo "$ac_err" >&5 |
9335 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9336 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9337 | rm -rf conftest* |
9338 | CPP=/lib/cpp | |
579d8138 | 9339 | fi |
a0b9e27f | 9340 | rm -f conftest* |
52127426 | 9341 | fi |
a0b9e27f | 9342 | rm -f conftest* |
8284b0c5 | 9343 | fi |
a0b9e27f MB |
9344 | rm -f conftest* |
9345 | ac_cv_prog_CPP="$CPP" | |
9346 | fi | |
9347 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 9348 | else |
a0b9e27f | 9349 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 9350 | fi |
a0b9e27f | 9351 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 9352 | |
a0b9e27f MB |
9353 | if test $ac_cv_prog_gcc = yes; then |
9354 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
9b4d9d56 | 9355 | echo "configure:9356: checking whether ${CC-cc} needs -traditional" >&5 |
a0b9e27f MB |
9356 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
9357 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9358 | else |
9359 | ac_pattern="Autoconf.*'x'" | |
a0b9e27f | 9360 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 9361 | #line 9362 "configure" |
10f2d63a VZ |
9362 | #include "confdefs.h" |
9363 | #include <sgtty.h> | |
9364 | Autoconf TIOCGETP | |
a0b9e27f | 9365 | EOF |
10f2d63a VZ |
9366 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9367 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9368 | rm -rf conftest* |
10f2d63a VZ |
9369 | ac_cv_prog_gcc_traditional=yes |
9370 | else | |
a0b9e27f | 9371 | rm -rf conftest* |
10f2d63a VZ |
9372 | ac_cv_prog_gcc_traditional=no |
9373 | fi | |
9374 | rm -f conftest* | |
9375 | ||
8284b0c5 | 9376 | |
10f2d63a | 9377 | if test $ac_cv_prog_gcc_traditional = no; then |
a0b9e27f | 9378 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 9379 | #line 9380 "configure" |
10f2d63a VZ |
9380 | #include "confdefs.h" |
9381 | #include <termio.h> | |
9382 | Autoconf TCGETA | |
a0b9e27f | 9383 | EOF |
10f2d63a VZ |
9384 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9385 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9386 | rm -rf conftest* |
10f2d63a VZ |
9387 | ac_cv_prog_gcc_traditional=yes |
9388 | fi | |
9389 | rm -f conftest* | |
9390 | ||
9391 | fi | |
9392 | fi | |
a0b9e27f MB |
9393 | |
9394 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
9395 | if test $ac_cv_prog_gcc_traditional = yes; then |
9396 | CC="$CC -traditional" | |
9397 | fi | |
9398 | fi | |
9399 | ||
8284b0c5 MB |
9400 | |
9401 | ||
a0b9e27f MB |
9402 | ac_ext=C |
9403 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 9404 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
9405 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9406 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9407 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9408 | |
698dcdb6 | 9409 | |
ec603395 | 9410 | CXXFLAGS=${CXXFLAGS:=} |
a0b9e27f MB |
9411 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
9412 | do | |
9413 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9414 | set dummy $ac_prog; ac_word=$2 | |
9415 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9b4d9d56 | 9416 | echo "configure:9417: checking for $ac_word" >&5 |
a0b9e27f MB |
9417 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
9418 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9419 | else |
9420 | if test -n "$CXX"; then | |
9421 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
9422 | else | |
a0b9e27f MB |
9423 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9424 | ac_dummy="$PATH" | |
9425 | for ac_dir in $ac_dummy; do | |
9426 | test -z "$ac_dir" && ac_dir=. | |
9427 | if test -f $ac_dir/$ac_word; then | |
9428 | ac_cv_prog_CXX="$ac_prog" | |
9429 | break | |
9430 | fi | |
9431 | done | |
9432 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9433 | fi |
9434 | fi | |
a0b9e27f | 9435 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 9436 | if test -n "$CXX"; then |
a0b9e27f | 9437 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9438 | else |
a0b9e27f | 9439 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9440 | fi |
9441 | ||
a0b9e27f | 9442 | test -n "$CXX" && break |
10f2d63a | 9443 | done |
a0b9e27f | 9444 | test -n "$CXX" || CXX="gcc" |
f09359cf | 9445 | |
a0b9e27f MB |
9446 | |
9447 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
9b4d9d56 | 9448 | echo "configure:9449: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
a0b9e27f MB |
9449 | |
9450 | ac_ext=C | |
9451 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9452 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9453 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9454 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9455 | cross_compiling=$ac_cv_prog_cxx_cross | |
9456 | ||
9457 | cat > conftest.$ac_ext << EOF | |
9458 | ||
9b4d9d56 | 9459 | #line 9460 "configure" |
a0b9e27f MB |
9460 | #include "confdefs.h" |
9461 | ||
9462 | int main(){return(0);} | |
9463 | EOF | |
9b4d9d56 | 9464 | if { (eval echo configure:9465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9465 | ac_cv_prog_cxx_works=yes |
9466 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9467 | if (./conftest; exit) 2>/dev/null; then | |
9468 | ac_cv_prog_cxx_cross=no | |
9469 | else | |
9470 | ac_cv_prog_cxx_cross=yes | |
9471 | fi | |
8284b0c5 | 9472 | else |
a0b9e27f MB |
9473 | echo "configure: failed program was:" >&5 |
9474 | cat conftest.$ac_ext >&5 | |
9475 | ac_cv_prog_cxx_works=no | |
8284b0c5 | 9476 | fi |
a0b9e27f MB |
9477 | rm -fr conftest* |
9478 | ac_ext=C | |
9479 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9480 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9481 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9482 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9483 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9484 | |
a0b9e27f MB |
9485 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
9486 | if test $ac_cv_prog_cxx_works = no; then | |
9487 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9488 | fi | |
9489 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
9b4d9d56 | 9490 | echo "configure:9491: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9491 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9492 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9493 | |
a0b9e27f | 9494 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
9b4d9d56 | 9495 | echo "configure:9496: checking whether we are using GNU C++" >&5 |
a0b9e27f MB |
9496 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9497 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9498 | else | |
9499 | cat > conftest.C <<EOF | |
9500 | #ifdef __GNUC__ | |
9501 | yes; | |
10f2d63a | 9502 | #endif |
a0b9e27f | 9503 | EOF |
9b4d9d56 | 9504 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f MB |
9505 | ac_cv_prog_gxx=yes |
9506 | else | |
9507 | ac_cv_prog_gxx=no | |
9508 | fi | |
9509 | fi | |
10f2d63a | 9510 | |
a0b9e27f | 9511 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9512 | |
a0b9e27f MB |
9513 | if test $ac_cv_prog_gxx = yes; then |
9514 | GXX=yes | |
9515 | else | |
9516 | GXX= | |
9517 | fi | |
f09359cf | 9518 | |
a0b9e27f MB |
9519 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9520 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9521 | CXXFLAGS= | |
9522 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
9b4d9d56 | 9523 | echo "configure:9524: checking whether ${CXX-g++} accepts -g" >&5 |
a0b9e27f MB |
9524 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9525 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9526 | else | |
9527 | echo 'void f(){}' > conftest.cc | |
9528 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9529 | ac_cv_prog_cxx_g=yes |
9530 | else | |
a0b9e27f | 9531 | ac_cv_prog_cxx_g=no |
10f2d63a | 9532 | fi |
a0b9e27f MB |
9533 | rm -f conftest* |
9534 | ||
10f2d63a | 9535 | fi |
a0b9e27f MB |
9536 | |
9537 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
f09359cf | 9538 | if test "$ac_test_CXXFLAGS" = set; then |
a0b9e27f | 9539 | CXXFLAGS="$ac_save_CXXFLAGS" |
f09359cf VS |
9540 | elif test $ac_cv_prog_cxx_g = yes; then |
9541 | if test "$GXX" = yes; then | |
10f2d63a VZ |
9542 | CXXFLAGS="-g -O2" |
9543 | else | |
f09359cf | 9544 | CXXFLAGS="-g" |
10f2d63a | 9545 | fi |
5c0a20c3 | 9546 | else |
f09359cf VS |
9547 | if test "$GXX" = yes; then |
9548 | CXXFLAGS="-O2" | |
9549 | else | |
9550 | CXXFLAGS= | |
9551 | fi | |
10f2d63a VZ |
9552 | fi |
9553 | ||
9554 | ||
10f2d63a | 9555 | ac_ext=c |
a0b9e27f | 9556 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9557 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
9558 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9559 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9560 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 MB |
9561 | |
9562 | ||
a0b9e27f MB |
9563 | # Extract the first word of "ranlib", so it can be a program name with args. |
9564 | set dummy ranlib; ac_word=$2 | |
9565 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9b4d9d56 | 9566 | echo "configure:9567: checking for $ac_word" >&5 |
a0b9e27f MB |
9567 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9568 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9569 | else |
9570 | if test -n "$RANLIB"; then | |
9571 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9572 | else | |
a0b9e27f MB |
9573 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9574 | ac_dummy="$PATH" | |
9575 | for ac_dir in $ac_dummy; do | |
9576 | test -z "$ac_dir" && ac_dir=. | |
9577 | if test -f $ac_dir/$ac_word; then | |
9578 | ac_cv_prog_RANLIB="ranlib" | |
9579 | break | |
9580 | fi | |
9581 | done | |
9582 | IFS="$ac_save_ifs" | |
9583 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9584 | fi |
9585 | fi | |
a0b9e27f | 9586 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9587 | if test -n "$RANLIB"; then |
a0b9e27f | 9588 | echo "$ac_t""$RANLIB" 1>&6 |
328a083c | 9589 | else |
a0b9e27f | 9590 | echo "$ac_t""no" 1>&6 |
328a083c RR |
9591 | fi |
9592 | ||
10f2d63a VZ |
9593 | |
9594 | # Extract the first word of "ar", so it can be a program name with args. | |
9595 | set dummy ar; ac_word=$2 | |
a0b9e27f | 9596 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9b4d9d56 | 9597 | echo "configure:9598: checking for $ac_word" >&5 |
a0b9e27f MB |
9598 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9599 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9600 | else |
9601 | if test -n "$AR"; then | |
9602 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9603 | else | |
a0b9e27f MB |
9604 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9605 | ac_dummy="$PATH" | |
9606 | for ac_dir in $ac_dummy; do | |
9607 | test -z "$ac_dir" && ac_dir=. | |
9608 | if test -f $ac_dir/$ac_word; then | |
9609 | ac_cv_prog_AR="ar" | |
9610 | break | |
9611 | fi | |
9612 | done | |
9613 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9614 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9615 | fi | |
9616 | fi | |
a0b9e27f | 9617 | AR="$ac_cv_prog_AR" |
10f2d63a | 9618 | if test -n "$AR"; then |
a0b9e27f | 9619 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9620 | else |
a0b9e27f | 9621 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9622 | fi |
9623 | ||
8284b0c5 | 9624 | |
6054113a | 9625 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9626 | # so one script is as good as another. But avoid the broken or |
9627 | # incompatible versions: | |
9628 | # SysV /etc/install, /usr/sbin/install | |
9629 | # SunOS /usr/etc/install | |
9630 | # IRIX /sbin/install | |
9631 | # AIX /bin/install | |
f09359cf | 9632 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
9633 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
9634 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9635 | # ./install, which can be erroneously created by make from ./install.sh. | |
a0b9e27f | 9636 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
9b4d9d56 | 9637 | echo "configure:9638: checking for a BSD compatible install" >&5 |
10f2d63a | 9638 | if test -z "$INSTALL"; then |
a0b9e27f MB |
9639 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9640 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9641 | else | |
9642 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
9643 | for ac_dir in $PATH; do | |
9644 | # Account for people who put trailing slashes in PATH elements. | |
9645 | case "$ac_dir/" in | |
9646 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
9647 | *) | |
9648 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9649 | # Don't use installbsd from OSF since it installs stuff as root | |
9650 | # by default. | |
9651 | for ac_prog in ginstall scoinst install; do | |
9652 | if test -f $ac_dir/$ac_prog; then | |
9653 | if test $ac_prog = install && | |
9654 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
9655 | # AIX install. It has an incompatible calling convention. | |
9656 | : | |
9657 | else | |
9658 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9659 | break 2 | |
9660 | fi | |
9661 | fi | |
10f2d63a | 9662 | done |
a0b9e27f MB |
9663 | ;; |
9664 | esac | |
9665 | done | |
9666 | IFS="$ac_save_IFS" | |
10f2d63a VZ |
9667 | |
9668 | fi | |
9669 | if test "${ac_cv_path_install+set}" = set; then | |
a0b9e27f | 9670 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9671 | else |
9672 | # As a last resort, use the slow shell script. We don't cache a | |
9673 | # path for INSTALL within a source directory, because that will | |
9674 | # break other packages using the cache if that directory is | |
9675 | # removed, or if the path is relative. | |
a0b9e27f | 9676 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9677 | fi |
9678 | fi | |
a0b9e27f | 9679 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9680 | |
9681 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9682 | # It thinks the first close brace ends the variable substitution. | |
9683 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9684 | ||
a0b9e27f | 9685 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
f09359cf | 9686 | |
10f2d63a VZ |
9687 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9688 | ||
8284b0c5 | 9689 | |
1d1b75ac VZ |
9690 | case ${INSTALL} in |
9691 | /* ) # Absolute | |
9692 | ;; | |
4f5a7f74 VZ |
9693 | ?:* ) # Drive letter, considered as absolute. |
9694 | ;; | |
3bd8fb5f | 9695 | *) |
1d1b75ac VZ |
9696 | INSTALL=`pwd`/${INSTALL} ;; |
9697 | esac | |
9698 | ||
4f5a7f74 VZ |
9699 | case ${host} in |
9700 | *-hp-hpux* ) | |
9701 | INSTALL_DIR="mkdir" | |
9702 | ;; | |
9703 | ||
9704 | *) INSTALL_DIR="$INSTALL -d" | |
9705 | ;; | |
9706 | esac | |
9707 | ||
8284b0c5 | 9708 | |
6054113a GD |
9709 | case "${host}" in |
9710 | ||
b5853384 | 9711 | powerpc-*-darwin* ) |
eb99ae0b GD |
9712 | INSTALL_PROGRAM="cp -fp" |
9713 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9714 | ;; |
9715 | *) | |
9716 | ;; | |
d6853540 | 9717 | esac |
698dcdb6 | 9718 | |
10f2d63a VZ |
9719 | # Extract the first word of "strip", so it can be a program name with args. |
9720 | set dummy strip; ac_word=$2 | |
a0b9e27f | 9721 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9b4d9d56 | 9722 | echo "configure:9723: checking for $ac_word" >&5 |
a0b9e27f MB |
9723 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9724 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9725 | else |
9726 | if test -n "$STRIP"; then | |
9727 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9728 | else | |
a0b9e27f MB |
9729 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9730 | ac_dummy="$PATH" | |
9731 | for ac_dir in $ac_dummy; do | |
9732 | test -z "$ac_dir" && ac_dir=. | |
9733 | if test -f $ac_dir/$ac_word; then | |
9734 | ac_cv_prog_STRIP="strip" | |
9735 | break | |
9736 | fi | |
9737 | done | |
9738 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9739 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9740 | fi | |
9741 | fi | |
a0b9e27f | 9742 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9743 | if test -n "$STRIP"; then |
a0b9e27f | 9744 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9745 | else |
a0b9e27f | 9746 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9747 | fi |
9748 | ||
5c6fa7d2 | 9749 | |
a0b9e27f | 9750 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
9b4d9d56 | 9751 | echo "configure:9752: checking if make is GNU make" >&5 |
a0b9e27f MB |
9752 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9753 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9754 | else |
a0b9e27f | 9755 | |
414eab6d | 9756 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 9757 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9758 | wx_cv_prog_makeisgnu="yes" |
9759 | else | |
9760 | wx_cv_prog_makeisgnu="no" | |
9761 | fi | |
9762 | ||
9763 | fi | |
a0b9e27f MB |
9764 | |
9765 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
414eab6d VZ |
9766 | |
9767 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9768 | IF_GNU_MAKE="" | |
9769 | else | |
9770 | IF_GNU_MAKE="#" | |
9771 | fi | |
9772 | ||
8284b0c5 MB |
9773 | |
9774 | ||
414eab6d | 9775 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
a0b9e27f | 9776 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
9b4d9d56 | 9777 | echo "configure:9778: checking if make supports VPATH" >&5 |
a0b9e27f MB |
9778 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9779 | echo $ac_n "(cached) $ac_c" 1>&6 | |
04e7a216 | 9780 | else |
a0b9e27f | 9781 | |
10f2d63a VZ |
9782 | cat - << EOF > confMake |
9783 | check : file | |
9784 | cp \$? \$@ | |
9785 | cp \$? final_file | |
9786 | EOF | |
9787 | ||
9788 | if test ! -d sub ; then | |
9789 | mkdir sub | |
9790 | fi | |
9791 | echo dummy > sub/file | |
f6bcfd97 | 9792 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9793 | RESULT=$? |
9794 | rm -f sub/file check final_file confMake | |
9795 | rmdir sub | |
9796 | if test "$RESULT" = 0; then | |
04e7a216 | 9797 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9798 | else |
04e7a216 VZ |
9799 | wx_cv_prog_makevpath="no" |
9800 | fi | |
9801 | ||
9802 | fi | |
a0b9e27f MB |
9803 | |
9804 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
04e7a216 VZ |
9805 | |
9806 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
a0b9e27f | 9807 | { echo "configure: error: |
5c6fa7d2 RR |
9808 | You need a make-utility that is able to use the variable |
9809 | VPATH correctly. | |
9810 | If your version of make does not support VPATH correctly, | |
9811 | please install GNU-make (possibly as gmake), and start | |
9812 | configure with the following command: | |
9813 | export MAKE=gmake; ./configure for sh-type shells | |
9814 | setenv MAKE gmake; ./configure for csh-type shells | |
9815 | Also please do remember to use gmake in this case every time | |
9816 | you are trying to compile. | |
a0b9e27f MB |
9817 | " 1>&2; exit 1; } |
9818 | fi fi | |
10f2d63a VZ |
9819 | for ac_prog in 'bison -y' byacc |
9820 | do | |
a0b9e27f | 9821 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9822 | set dummy $ac_prog; ac_word=$2 |
a0b9e27f | 9823 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9b4d9d56 | 9824 | echo "configure:9825: checking for $ac_word" >&5 |
a0b9e27f MB |
9825 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9826 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9827 | else |
9828 | if test -n "$YACC"; then | |
9829 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9830 | else | |
a0b9e27f MB |
9831 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9832 | ac_dummy="$PATH" | |
9833 | for ac_dir in $ac_dummy; do | |
9834 | test -z "$ac_dir" && ac_dir=. | |
9835 | if test -f $ac_dir/$ac_word; then | |
9836 | ac_cv_prog_YACC="$ac_prog" | |
9837 | break | |
9838 | fi | |
9839 | done | |
9840 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9841 | fi |
9842 | fi | |
a0b9e27f | 9843 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9844 | if test -n "$YACC"; then |
a0b9e27f | 9845 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9846 | else |
a0b9e27f | 9847 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9848 | fi |
9849 | ||
a0b9e27f | 9850 | test -n "$YACC" && break |
10f2d63a VZ |
9851 | done |
9852 | test -n "$YACC" || YACC="yacc" | |
9853 | ||
8284b0c5 | 9854 | |
a0b9e27f MB |
9855 | # Extract the first word of "flex", so it can be a program name with args. |
9856 | set dummy flex; ac_word=$2 | |
9857 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9b4d9d56 | 9858 | echo "configure:9859: checking for $ac_word" >&5 |
a0b9e27f MB |
9859 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9860 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9861 | else |
9862 | if test -n "$LEX"; then | |
9863 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9864 | else | |
a0b9e27f MB |
9865 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9866 | ac_dummy="$PATH" | |
9867 | for ac_dir in $ac_dummy; do | |
9868 | test -z "$ac_dir" && ac_dir=. | |
9869 | if test -f $ac_dir/$ac_word; then | |
9870 | ac_cv_prog_LEX="flex" | |
9871 | break | |
9872 | fi | |
9873 | done | |
9874 | IFS="$ac_save_ifs" | |
9875 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9876 | fi |
9877 | fi | |
a0b9e27f | 9878 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9879 | if test -n "$LEX"; then |
a0b9e27f | 9880 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9881 | else |
a0b9e27f | 9882 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9883 | fi |
9884 | ||
9885 | if test -z "$LEXLIB" | |
9886 | then | |
a0b9e27f MB |
9887 | case "$LEX" in |
9888 | flex*) ac_lib=fl ;; | |
9889 | *) ac_lib=l ;; | |
9890 | esac | |
9891 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
9b4d9d56 | 9892 | echo "configure:9893: checking for yywrap in -l$ac_lib" >&5 |
a0b9e27f MB |
9893 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9894 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9895 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9896 | else | |
9897 | ac_save_LIBS="$LIBS" | |
9898 | LIBS="-l$ac_lib $LIBS" | |
9899 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 9900 | #line 9901 "configure" |
247f5006 | 9901 | #include "confdefs.h" |
247f5006 | 9902 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 9903 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
9904 | builtin and then its argument prototype would still apply. */ |
9905 | char yywrap(); | |
10f2d63a | 9906 | |
a0b9e27f MB |
9907 | int main() { |
9908 | yywrap() | |
9909 | ; return 0; } | |
9910 | EOF | |
9b4d9d56 | 9911 | if { (eval echo configure:9912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9912 | rm -rf conftest* |
9913 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9914 | else | |
9915 | echo "configure: failed program was:" >&5 | |
9916 | cat conftest.$ac_ext >&5 | |
9917 | rm -rf conftest* | |
9918 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9919 | fi |
a0b9e27f MB |
9920 | rm -f conftest* |
9921 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 9922 | |
10f2d63a | 9923 | fi |
a0b9e27f MB |
9924 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9925 | echo "$ac_t""yes" 1>&6 | |
9926 | LEXLIB="-l$ac_lib" | |
8284b0c5 | 9927 | else |
a0b9e27f | 9928 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9929 | fi |
9930 | ||
a0b9e27f | 9931 | fi |
10f2d63a VZ |
9932 | |
9933 | ||
a0b9e27f | 9934 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
9b4d9d56 | 9935 | echo "configure:9936: checking whether ln -s works" >&5 |
a0b9e27f MB |
9936 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9937 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9938 | else |
a0b9e27f MB |
9939 | rm -f conftestdata |
9940 | if ln -s X conftestdata 2>/dev/null | |
9941 | then | |
9942 | rm -f conftestdata | |
9943 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9944 | else |
a0b9e27f | 9945 | ac_cv_prog_LN_S=ln |
10f2d63a | 9946 | fi |
a0b9e27f MB |
9947 | fi |
9948 | LN_S="$ac_cv_prog_LN_S" | |
9949 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9950 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9951 | else |
a0b9e27f | 9952 | echo "$ac_t""no" 1>&6 |
5c6fa7d2 | 9953 | fi |
5c6fa7d2 | 9954 | |
247f5006 | 9955 | |
2b5f62a0 VZ |
9956 | case "${host}" in |
9957 | *-pc-os2_emx | *-pc-os2-emx ) | |
9958 | LIBS="$LIBS -lstdcpp" | |
9959 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
9960 | echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6 | |
9b4d9d56 | 9961 | echo "configure:9962: checking for drand48 in -lcExt" >&5 |
2b5f62a0 VZ |
9962 | ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'` |
9963 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9964 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9965 | else | |
9966 | ac_save_LIBS="$LIBS" | |
9967 | LIBS="-lcExt $LIBS" | |
9968 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 9969 | #line 9970 "configure" |
2b5f62a0 VZ |
9970 | #include "confdefs.h" |
9971 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9972 | /* We use char because int might match the return type of a gcc2 | |
9973 | builtin and then its argument prototype would still apply. */ | |
9974 | char drand48(); | |
9975 | ||
9976 | int main() { | |
9977 | drand48() | |
9978 | ; return 0; } | |
9979 | EOF | |
9b4d9d56 | 9980 | if { (eval echo configure:9981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
9981 | rm -rf conftest* |
9982 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9983 | else | |
9984 | echo "configure: failed program was:" >&5 | |
9985 | cat conftest.$ac_ext >&5 | |
9986 | rm -rf conftest* | |
9987 | eval "ac_cv_lib_$ac_lib_var=no" | |
9988 | fi | |
9989 | rm -f conftest* | |
9990 | LIBS="$ac_save_LIBS" | |
9991 | ||
9992 | fi | |
9993 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9994 | echo "$ac_t""yes" 1>&6 | |
9995 | LIBS="$LIBS -lcExt" | |
9996 | else | |
9997 | echo "$ac_t""no" 1>&6 | |
9998 | fi | |
9999 | ||
10000 | else | |
10001 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
10002 | fi | |
10003 | ;; | |
10004 | esac | |
10005 | ||
a0b9e27f | 10006 | |
ac0c4cc3 | 10007 | if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a0b9e27f MB |
10008 | for ac_hdr in strings.h |
10009 | do | |
10010 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10011 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9b4d9d56 | 10012 | echo "configure:10013: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10013 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10014 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10015 | else | |
10016 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 10017 | #line 10018 "configure" |
a0b9e27f MB |
10018 | #include "confdefs.h" |
10019 | #include <$ac_hdr> | |
10020 | EOF | |
10021 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 10022 | { (eval echo configure:10023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10023 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10024 | if test -z "$ac_err"; then | |
10025 | rm -rf conftest* | |
10026 | eval "ac_cv_header_$ac_safe=yes" | |
10027 | else | |
10028 | echo "$ac_err" >&5 | |
10029 | echo "configure: failed program was:" >&5 | |
10030 | cat conftest.$ac_ext >&5 | |
10031 | rm -rf conftest* | |
10032 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 10033 | fi |
247f5006 | 10034 | rm -f conftest* |
19bc6aad | 10035 | fi |
a0b9e27f MB |
10036 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10037 | echo "$ac_t""yes" 1>&6 | |
10038 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10039 | cat >> confdefs.h <<EOF | |
10040 | #define $ac_tr_hdr 1 | |
10041 | EOF | |
10042 | ||
247f5006 | 10043 | else |
a0b9e27f | 10044 | echo "$ac_t""no" 1>&6 |
18dbb1f6 | 10045 | fi |
a0b9e27f | 10046 | done |
247f5006 | 10047 | |
90dd450c | 10048 | fi |
90dd450c | 10049 | |
a0b9e27f MB |
10050 | for ac_hdr in stdlib.h |
10051 | do | |
10052 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10053 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9b4d9d56 | 10054 | echo "configure:10055: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10055 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10056 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10057 | else | |
10058 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 10059 | #line 10060 "configure" |
90dd450c | 10060 | #include "confdefs.h" |
a0b9e27f MB |
10061 | #include <$ac_hdr> |
10062 | EOF | |
10063 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 10064 | { (eval echo configure:10065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10065 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10066 | if test -z "$ac_err"; then | |
10067 | rm -rf conftest* | |
10068 | eval "ac_cv_header_$ac_safe=yes" | |
10069 | else | |
10070 | echo "$ac_err" >&5 | |
10071 | echo "configure: failed program was:" >&5 | |
10072 | cat conftest.$ac_ext >&5 | |
10073 | rm -rf conftest* | |
10074 | eval "ac_cv_header_$ac_safe=no" | |
10075 | fi | |
10076 | rm -f conftest* | |
10077 | fi | |
10078 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10079 | echo "$ac_t""yes" 1>&6 | |
10080 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10081 | cat >> confdefs.h <<EOF | |
10082 | #define $ac_tr_hdr 1 | |
10083 | EOF | |
10084 | ||
8284b0c5 | 10085 | else |
a0b9e27f | 10086 | echo "$ac_t""no" 1>&6 |
21d1c967 | 10087 | fi |
a0b9e27f MB |
10088 | done |
10089 | ||
10090 | for ac_hdr in malloc.h | |
10091 | do | |
10092 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10093 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9b4d9d56 | 10094 | echo "configure:10095: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10095 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10096 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10097 | else | |
10098 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 10099 | #line 10100 "configure" |
a0b9e27f MB |
10100 | #include "confdefs.h" |
10101 | #include <$ac_hdr> | |
10102 | EOF | |
10103 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 10104 | { (eval echo configure:10105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10105 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10106 | if test -z "$ac_err"; then | |
10107 | rm -rf conftest* | |
10108 | eval "ac_cv_header_$ac_safe=yes" | |
10109 | else | |
10110 | echo "$ac_err" >&5 | |
10111 | echo "configure: failed program was:" >&5 | |
10112 | cat conftest.$ac_ext >&5 | |
10113 | rm -rf conftest* | |
10114 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10115 | fi |
a0b9e27f | 10116 | rm -f conftest* |
90dd450c | 10117 | fi |
a0b9e27f MB |
10118 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10119 | echo "$ac_t""yes" 1>&6 | |
10120 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10121 | cat >> confdefs.h <<EOF | |
10122 | #define $ac_tr_hdr 1 | |
10123 | EOF | |
10124 | ||
10125 | else | |
10126 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 10127 | fi |
a0b9e27f | 10128 | done |
247f5006 | 10129 | |
a0b9e27f MB |
10130 | for ac_hdr in unistd.h |
10131 | do | |
10132 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10133 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9b4d9d56 | 10134 | echo "configure:10135: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10135 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10136 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10137 | else | |
10138 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 10139 | #line 10140 "configure" |
a0b9e27f MB |
10140 | #include "confdefs.h" |
10141 | #include <$ac_hdr> | |
10142 | EOF | |
10143 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 10144 | { (eval echo configure:10145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10145 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10146 | if test -z "$ac_err"; then | |
10147 | rm -rf conftest* | |
10148 | eval "ac_cv_header_$ac_safe=yes" | |
10149 | else | |
10150 | echo "$ac_err" >&5 | |
10151 | echo "configure: failed program was:" >&5 | |
10152 | cat conftest.$ac_ext >&5 | |
10153 | rm -rf conftest* | |
10154 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 10155 | fi |
a0b9e27f MB |
10156 | rm -f conftest* |
10157 | fi | |
10158 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10159 | echo "$ac_t""yes" 1>&6 | |
10160 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10161 | cat >> confdefs.h <<EOF | |
10162 | #define $ac_tr_hdr 1 | |
10163 | EOF | |
10164 | ||
10165 | else | |
10166 | echo "$ac_t""no" 1>&6 | |
10167 | fi | |
10168 | done | |
90dd450c | 10169 | |
a0b9e27f | 10170 | for ac_hdr in wchar.h |
21d1c967 | 10171 | do |
a0b9e27f MB |
10172 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10173 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9b4d9d56 | 10174 | echo "configure:10175: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10175 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10176 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10177 | else | |
10178 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 10179 | #line 10180 "configure" |
4f14bcd8 | 10180 | #include "confdefs.h" |
a0b9e27f MB |
10181 | #include <$ac_hdr> |
10182 | EOF | |
10183 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 10184 | { (eval echo configure:10185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10185 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10186 | if test -z "$ac_err"; then | |
10187 | rm -rf conftest* | |
10188 | eval "ac_cv_header_$ac_safe=yes" | |
10189 | else | |
10190 | echo "$ac_err" >&5 | |
10191 | echo "configure: failed program was:" >&5 | |
10192 | cat conftest.$ac_ext >&5 | |
10193 | rm -rf conftest* | |
10194 | eval "ac_cv_header_$ac_safe=no" | |
10195 | fi | |
10196 | rm -f conftest* | |
10197 | fi | |
10198 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10199 | echo "$ac_t""yes" 1>&6 | |
10200 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10201 | cat >> confdefs.h <<EOF | |
10202 | #define $ac_tr_hdr 1 | |
10203 | EOF | |
10204 | ||
10205 | else | |
10206 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10207 | fi |
10208 | done | |
4f14bcd8 | 10209 | |
5c6fa7d2 | 10210 | |
a0b9e27f MB |
10211 | if test "$ac_cv_header_wchar_h" != "yes"; then |
10212 | for ac_hdr in wcstr.h | |
21d1c967 | 10213 | do |
a0b9e27f MB |
10214 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10215 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9b4d9d56 | 10216 | echo "configure:10217: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10217 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10218 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10219 | else | |
10220 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 10221 | #line 10222 "configure" |
d4158b5d | 10222 | #include "confdefs.h" |
a0b9e27f MB |
10223 | #include <$ac_hdr> |
10224 | EOF | |
10225 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 10226 | { (eval echo configure:10227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10227 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10228 | if test -z "$ac_err"; then | |
10229 | rm -rf conftest* | |
10230 | eval "ac_cv_header_$ac_safe=yes" | |
10231 | else | |
10232 | echo "$ac_err" >&5 | |
10233 | echo "configure: failed program was:" >&5 | |
d4158b5d | 10234 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10235 | rm -rf conftest* |
10236 | eval "ac_cv_header_$ac_safe=no" | |
d4158b5d | 10237 | fi |
a0b9e27f | 10238 | rm -f conftest* |
21d1c967 | 10239 | fi |
a0b9e27f MB |
10240 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10241 | echo "$ac_t""yes" 1>&6 | |
10242 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10243 | cat >> confdefs.h <<EOF | |
10244 | #define $ac_tr_hdr 1 | |
10245 | EOF | |
10246 | ||
10247 | else | |
10248 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 10249 | fi |
21d1c967 | 10250 | done |
f6bcfd97 | 10251 | |
90dd450c | 10252 | fi |
90dd450c | 10253 | |
a0b9e27f | 10254 | for ac_hdr in fnmatch.h |
21d1c967 | 10255 | do |
a0b9e27f MB |
10256 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10257 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9b4d9d56 | 10258 | echo "configure:10259: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10259 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10260 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10261 | else | |
10262 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 10263 | #line 10264 "configure" |
90dd450c | 10264 | #include "confdefs.h" |
a0b9e27f MB |
10265 | #include <$ac_hdr> |
10266 | EOF | |
10267 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 10268 | { (eval echo configure:10269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10269 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10270 | if test -z "$ac_err"; then | |
10271 | rm -rf conftest* | |
10272 | eval "ac_cv_header_$ac_safe=yes" | |
10273 | else | |
10274 | echo "$ac_err" >&5 | |
10275 | echo "configure: failed program was:" >&5 | |
3a922bb4 | 10276 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10277 | rm -rf conftest* |
10278 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10279 | fi |
a0b9e27f | 10280 | rm -f conftest* |
4f14bcd8 | 10281 | fi |
a0b9e27f MB |
10282 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10283 | echo "$ac_t""yes" 1>&6 | |
10284 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10285 | cat >> confdefs.h <<EOF | |
10286 | #define $ac_tr_hdr 1 | |
10287 | EOF | |
10288 | ||
10289 | else | |
10290 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10291 | fi |
10292 | done | |
90dd450c | 10293 | |
5c6fa7d2 | 10294 | |
a0b9e27f MB |
10295 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
10296 | for ac_func in fnmatch | |
21d1c967 | 10297 | do |
a0b9e27f | 10298 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 10299 | echo "configure:10300: checking for $ac_func" >&5 |
a0b9e27f MB |
10300 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10301 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10302 | else |
a0b9e27f | 10303 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 10304 | #line 10305 "configure" |
a0b9e27f MB |
10305 | #include "confdefs.h" |
10306 | /* System header to define __stub macros and hopefully few prototypes, | |
10307 | which can conflict with char $ac_func(); below. */ | |
10308 | #include <assert.h> | |
10309 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10310 | /* We use char because int might match the return type of a gcc2 | |
10311 | builtin and then its argument prototype would still apply. */ | |
10312 | char $ac_func(); | |
10313 | ||
10314 | int main() { | |
10315 | ||
10316 | /* The GNU C library defines this for functions which it implements | |
10317 | to always fail with ENOSYS. Some functions are actually named | |
10318 | something starting with __ and the normal name is an alias. */ | |
10319 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10320 | choke me | |
10321 | #else | |
10322 | $ac_func(); | |
10323 | #endif | |
10324 | ||
10325 | ; return 0; } | |
10326 | EOF | |
9b4d9d56 | 10327 | if { (eval echo configure:10328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
10328 | rm -rf conftest* |
10329 | eval "ac_cv_func_$ac_func=yes" | |
8284b0c5 | 10330 | else |
a0b9e27f | 10331 | echo "configure: failed program was:" >&5 |
8284b0c5 | 10332 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10333 | rm -rf conftest* |
10334 | eval "ac_cv_func_$ac_func=no" | |
8284b0c5 | 10335 | fi |
a0b9e27f | 10336 | rm -f conftest* |
8284b0c5 | 10337 | fi |
32832908 | 10338 | |
a0b9e27f MB |
10339 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10340 | echo "$ac_t""yes" 1>&6 | |
10341 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10342 | cat >> confdefs.h <<EOF | |
10343 | #define $ac_tr_func 1 | |
10344 | EOF | |
10345 | ||
10346 | else | |
10347 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10348 | fi |
10349 | done | |
90dd450c | 10350 | |
a0b9e27f | 10351 | fi |
90dd450c | 10352 | |
a0b9e27f | 10353 | for ac_hdr in langinfo.h |
21d1c967 | 10354 | do |
a0b9e27f MB |
10355 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10356 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9b4d9d56 | 10357 | echo "configure:10358: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10358 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10359 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10360 | else | |
10361 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 10362 | #line 10363 "configure" |
247f5006 | 10363 | #include "confdefs.h" |
a0b9e27f MB |
10364 | #include <$ac_hdr> |
10365 | EOF | |
10366 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 10367 | { (eval echo configure:10368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10368 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10369 | if test -z "$ac_err"; then | |
10370 | rm -rf conftest* | |
10371 | eval "ac_cv_header_$ac_safe=yes" | |
10372 | else | |
10373 | echo "$ac_err" >&5 | |
10374 | echo "configure: failed program was:" >&5 | |
90dd450c | 10375 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10376 | rm -rf conftest* |
10377 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 10378 | fi |
a0b9e27f | 10379 | rm -f conftest* |
4f14bcd8 | 10380 | fi |
a0b9e27f MB |
10381 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10382 | echo "$ac_t""yes" 1>&6 | |
10383 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10384 | cat >> confdefs.h <<EOF | |
10385 | #define $ac_tr_hdr 1 | |
10386 | EOF | |
10387 | ||
10388 | else | |
10389 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10390 | fi |
10391 | done | |
3a922bb4 | 10392 | |
8284b0c5 | 10393 | |
4f5a7f74 VZ |
10394 | case "${host}" in |
10395 | *-pc-os2_emx | *-pc-os2-emx ) | |
10396 | if test $ac_cv_header_langinfo_h = "yes"; then | |
10397 | LIBS="$LIBS -lintl" | |
10398 | fi | |
10399 | ;; | |
10400 | esac | |
10401 | ||
a0b9e27f MB |
10402 | if test "$wxUSE_GUI" = "yes"; then |
10403 | if test "$wxUSE_UNIX" = "yes"; then | |
10404 | for ac_hdr in X11/XKBlib.h | |
21d1c967 | 10405 | do |
a0b9e27f MB |
10406 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10407 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9b4d9d56 | 10408 | echo "configure:10409: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10409 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10410 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10411 | else | |
10412 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 10413 | #line 10414 "configure" |
90dd450c | 10414 | #include "confdefs.h" |
a0b9e27f MB |
10415 | #include <$ac_hdr> |
10416 | EOF | |
10417 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 10418 | { (eval echo configure:10419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10419 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10420 | if test -z "$ac_err"; then | |
10421 | rm -rf conftest* | |
10422 | eval "ac_cv_header_$ac_safe=yes" | |
10423 | else | |
10424 | echo "$ac_err" >&5 | |
10425 | echo "configure: failed program was:" >&5 | |
90dd450c | 10426 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10427 | rm -rf conftest* |
10428 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10429 | fi |
a0b9e27f | 10430 | rm -f conftest* |
90dd450c | 10431 | fi |
a0b9e27f MB |
10432 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10433 | echo "$ac_t""yes" 1>&6 | |
10434 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10435 | cat >> confdefs.h <<EOF | |
10436 | #define $ac_tr_hdr 1 | |
10437 | EOF | |
10438 | ||
10439 | else | |
10440 | echo "$ac_t""no" 1>&6 | |
247f5006 | 10441 | fi |
247f5006 VZ |
10442 | done |
10443 | ||
a0b9e27f MB |
10444 | fi |
10445 | fi | |
247f5006 | 10446 | |
247f5006 | 10447 | |
a0b9e27f | 10448 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
9b4d9d56 | 10449 | echo "configure:10450: checking for working const" >&5 |
a0b9e27f MB |
10450 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
10451 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10452 | else |
a0b9e27f | 10453 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 10454 | #line 10455 "configure" |
a0b9e27f MB |
10455 | #include "confdefs.h" |
10456 | ||
10457 | int main() { | |
10458 | ||
10459 | /* Ultrix mips cc rejects this. */ | |
10460 | typedef int charset[2]; const charset x; | |
10461 | /* SunOS 4.1.1 cc rejects this. */ | |
10462 | char const *const *ccp; | |
10463 | char **p; | |
10464 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
10465 | struct point {int x, y;}; | |
10466 | static struct point const zero = {0,0}; | |
10467 | /* AIX XL C 1.02.0.0 rejects this. | |
10468 | It does not let you subtract one const X* pointer from another in an arm | |
10469 | of an if-expression whose if-part is not a constant expression */ | |
10470 | const char *g = "string"; | |
10471 | ccp = &g + (g ? g-g : 0); | |
10472 | /* HPUX 7.0 cc rejects these. */ | |
10473 | ++ccp; | |
10474 | p = (char**) ccp; | |
10475 | ccp = (char const *const *) p; | |
10476 | { /* SCO 3.2v4 cc rejects this. */ | |
10477 | char *t; | |
10478 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
10479 | ||
10480 | *t++ = 0; | |
10481 | } | |
10482 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
10483 | int x[] = {25, 17}; | |
10484 | const int *foo = &x[0]; | |
10485 | ++foo; | |
10486 | } | |
10487 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
10488 | typedef const int *iptr; | |
10489 | iptr p = 0; | |
10490 | ++p; | |
10491 | } | |
10492 | { /* AIX XL C 1.02.0.0 rejects this saying | |
10493 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
10494 | struct s { int j; const int *ap[3]; }; | |
10495 | struct s *b; b->j = 5; | |
10496 | } | |
10497 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
10498 | const int foo = 10; | |
10499 | } | |
10500 | ||
10501 | ; return 0; } | |
10502 | EOF | |
9b4d9d56 | 10503 | if { (eval echo configure:10504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10504 | rm -rf conftest* |
10505 | ac_cv_c_const=yes | |
247f5006 | 10506 | else |
a0b9e27f | 10507 | echo "configure: failed program was:" >&5 |
247f5006 | 10508 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10509 | rm -rf conftest* |
10510 | ac_cv_c_const=no | |
247f5006 | 10511 | fi |
a0b9e27f | 10512 | rm -f conftest* |
21d1c967 | 10513 | fi |
247f5006 | 10514 | |
a0b9e27f MB |
10515 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
10516 | if test $ac_cv_c_const = no; then | |
10517 | cat >> confdefs.h <<\EOF | |
10518 | #define const | |
10519 | EOF | |
10f2d63a | 10520 | |
90dd450c | 10521 | fi |
81809c07 | 10522 | |
a0b9e27f | 10523 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
9b4d9d56 | 10524 | echo "configure:10525: checking for inline" >&5 |
a0b9e27f MB |
10525 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
10526 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8168de4c | 10527 | else |
a0b9e27f MB |
10528 | ac_cv_c_inline=no |
10529 | for ac_kw in inline __inline__ __inline; do | |
10530 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 10531 | #line 10532 "configure" |
a0b9e27f MB |
10532 | #include "confdefs.h" |
10533 | ||
10534 | int main() { | |
10535 | } $ac_kw foo() { | |
10536 | ; return 0; } | |
10537 | EOF | |
9b4d9d56 | 10538 | if { (eval echo configure:10539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10539 | rm -rf conftest* |
10540 | ac_cv_c_inline=$ac_kw; break | |
247f5006 | 10541 | else |
a0b9e27f | 10542 | echo "configure: failed program was:" >&5 |
247f5006 | 10543 | cat conftest.$ac_ext >&5 |
247f5006 | 10544 | fi |
a0b9e27f MB |
10545 | rm -f conftest* |
10546 | done | |
247f5006 VZ |
10547 | |
10548 | fi | |
10549 | ||
a0b9e27f MB |
10550 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
10551 | case "$ac_cv_c_inline" in | |
10552 | inline | yes) ;; | |
10553 | no) cat >> confdefs.h <<\EOF | |
10554 | #define inline | |
10555 | EOF | |
10556 | ;; | |
10557 | *) cat >> confdefs.h <<EOF | |
10558 | #define inline $ac_cv_c_inline | |
10559 | EOF | |
10560 | ;; | |
10561 | esac | |
247f5006 | 10562 | |
247f5006 | 10563 | |
a0b9e27f | 10564 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
9b4d9d56 | 10565 | echo "configure:10566: checking size of char" >&5 |
a0b9e27f MB |
10566 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
10567 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10568 | else | |
10569 | if test "$cross_compiling" = yes; then | |
10570 | ac_cv_sizeof_char=1 | |
10571 | else | |
10572 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 10573 | #line 10574 "configure" |
4f14bcd8 | 10574 | #include "confdefs.h" |
a0b9e27f | 10575 | #include <stdio.h> |
a0b9e27f | 10576 | main() |
247f5006 | 10577 | { |
a0b9e27f MB |
10578 | FILE *f=fopen("conftestval", "w"); |
10579 | if (!f) exit(1); | |
10580 | fprintf(f, "%d\n", sizeof(char)); | |
10581 | exit(0); | |
52127426 | 10582 | } |
a0b9e27f | 10583 | EOF |
9b4d9d56 | 10584 | if { (eval echo configure:10585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10585 | then |
10586 | ac_cv_sizeof_char=`cat conftestval` | |
247f5006 | 10587 | else |
a0b9e27f | 10588 | echo "configure: failed program was:" >&5 |
247f5006 | 10589 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10590 | rm -fr conftest* |
10591 | ac_cv_sizeof_char=0 | |
247f5006 | 10592 | fi |
a0b9e27f | 10593 | rm -fr conftest* |
247f5006 | 10594 | fi |
247f5006 VZ |
10595 | |
10596 | fi | |
a0b9e27f MB |
10597 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10598 | cat >> confdefs.h <<EOF | |
10599 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10600 | EOF | |
247f5006 | 10601 | |
247f5006 | 10602 | |
a0b9e27f | 10603 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
9b4d9d56 | 10604 | echo "configure:10605: checking size of short" >&5 |
a0b9e27f MB |
10605 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10606 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10607 | else |
a0b9e27f MB |
10608 | if test "$cross_compiling" = yes; then |
10609 | ac_cv_sizeof_short=2 | |
247f5006 | 10610 | else |
a0b9e27f | 10611 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 10612 | #line 10613 "configure" |
a0b9e27f MB |
10613 | #include "confdefs.h" |
10614 | #include <stdio.h> | |
a0b9e27f MB |
10615 | main() |
10616 | { | |
10617 | FILE *f=fopen("conftestval", "w"); | |
10618 | if (!f) exit(1); | |
10619 | fprintf(f, "%d\n", sizeof(short)); | |
10620 | exit(0); | |
10621 | } | |
10622 | EOF | |
9b4d9d56 | 10623 | if { (eval echo configure:10624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10624 | then |
10625 | ac_cv_sizeof_short=`cat conftestval` | |
247f5006 | 10626 | else |
a0b9e27f MB |
10627 | echo "configure: failed program was:" >&5 |
10628 | cat conftest.$ac_ext >&5 | |
10629 | rm -fr conftest* | |
10630 | ac_cv_sizeof_short=0 | |
247f5006 | 10631 | fi |
a0b9e27f | 10632 | rm -fr conftest* |
247f5006 VZ |
10633 | fi |
10634 | ||
247f5006 | 10635 | fi |
a0b9e27f MB |
10636 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10637 | cat >> confdefs.h <<EOF | |
10638 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10639 | EOF | |
247f5006 VZ |
10640 | |
10641 | ||
a0b9e27f | 10642 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
9b4d9d56 | 10643 | echo "configure:10644: checking size of void *" >&5 |
a0b9e27f MB |
10644 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
10645 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10646 | else | |
10647 | if test "$cross_compiling" = yes; then | |
10648 | ac_cv_sizeof_void_p=4 | |
247f5006 | 10649 | else |
a0b9e27f | 10650 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 10651 | #line 10652 "configure" |
247f5006 | 10652 | #include "confdefs.h" |
247f5006 | 10653 | #include <stdio.h> |
a0b9e27f | 10654 | main() |
247f5006 | 10655 | { |
a0b9e27f MB |
10656 | FILE *f=fopen("conftestval", "w"); |
10657 | if (!f) exit(1); | |
10658 | fprintf(f, "%d\n", sizeof(void *)); | |
10659 | exit(0); | |
5c6fa7d2 | 10660 | } |
a0b9e27f | 10661 | EOF |
9b4d9d56 | 10662 | if { (eval echo configure:10663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10663 | then |
10664 | ac_cv_sizeof_void_p=`cat conftestval` | |
10665 | else | |
10666 | echo "configure: failed program was:" >&5 | |
10667 | cat conftest.$ac_ext >&5 | |
10668 | rm -fr conftest* | |
10669 | ac_cv_sizeof_void_p=0 | |
10670 | fi | |
10671 | rm -fr conftest* | |
10672 | fi | |
8284b0c5 | 10673 | |
247f5006 | 10674 | fi |
a0b9e27f MB |
10675 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
10676 | cat >> confdefs.h <<EOF | |
10677 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
10678 | EOF | |
247f5006 | 10679 | |
247f5006 | 10680 | |
a0b9e27f | 10681 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
9b4d9d56 | 10682 | echo "configure:10683: checking size of int" >&5 |
a0b9e27f MB |
10683 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
10684 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10685 | else |
a0b9e27f MB |
10686 | if test "$cross_compiling" = yes; then |
10687 | ac_cv_sizeof_int=4 | |
10688 | else | |
10689 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 10690 | #line 10691 "configure" |
247f5006 | 10691 | #include "confdefs.h" |
a0b9e27f | 10692 | #include <stdio.h> |
a0b9e27f | 10693 | main() |
247f5006 | 10694 | { |
a0b9e27f MB |
10695 | FILE *f=fopen("conftestval", "w"); |
10696 | if (!f) exit(1); | |
10697 | fprintf(f, "%d\n", sizeof(int)); | |
10698 | exit(0); | |
247f5006 | 10699 | } |
a0b9e27f | 10700 | EOF |
9b4d9d56 | 10701 | if { (eval echo configure:10702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10702 | then |
10703 | ac_cv_sizeof_int=`cat conftestval` | |
6f72b082 | 10704 | else |
a0b9e27f MB |
10705 | echo "configure: failed program was:" >&5 |
10706 | cat conftest.$ac_ext >&5 | |
10707 | rm -fr conftest* | |
10708 | ac_cv_sizeof_int=0 | |
21d1c967 | 10709 | fi |
a0b9e27f | 10710 | rm -fr conftest* |
698dcdb6 | 10711 | fi |
4f14bcd8 | 10712 | |
21d1c967 | 10713 | fi |
a0b9e27f MB |
10714 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
10715 | cat >> confdefs.h <<EOF | |
10716 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10717 | EOF | |
4f14bcd8 | 10718 | |
5c6fa7d2 | 10719 | |
a0b9e27f | 10720 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
9b4d9d56 | 10721 | echo "configure:10722: checking size of long" >&5 |
a0b9e27f MB |
10722 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
10723 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10724 | else |
247f5006 | 10725 | if test "$cross_compiling" = yes; then |
a0b9e27f | 10726 | ac_cv_sizeof_long=4 |
247f5006 | 10727 | else |
a0b9e27f | 10728 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 10729 | #line 10730 "configure" |
247f5006 | 10730 | #include "confdefs.h" |
a0b9e27f | 10731 | #include <stdio.h> |
a0b9e27f | 10732 | main() |
247f5006 | 10733 | { |
a0b9e27f MB |
10734 | FILE *f=fopen("conftestval", "w"); |
10735 | if (!f) exit(1); | |
10736 | fprintf(f, "%d\n", sizeof(long)); | |
10737 | exit(0); | |
247f5006 | 10738 | } |
a0b9e27f | 10739 | EOF |
9b4d9d56 | 10740 | if { (eval echo configure:10741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10741 | then |
10742 | ac_cv_sizeof_long=`cat conftestval` | |
247f5006 | 10743 | else |
a0b9e27f MB |
10744 | echo "configure: failed program was:" >&5 |
10745 | cat conftest.$ac_ext >&5 | |
10746 | rm -fr conftest* | |
10747 | ac_cv_sizeof_long=0 | |
247f5006 | 10748 | fi |
a0b9e27f | 10749 | rm -fr conftest* |
247f5006 | 10750 | fi |
247f5006 | 10751 | |
5c6fa7d2 | 10752 | fi |
a0b9e27f MB |
10753 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
10754 | cat >> confdefs.h <<EOF | |
10755 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10756 | EOF | |
247f5006 | 10757 | |
a0b9e27f MB |
10758 | |
10759 | ||
10760 | case "${host}" in | |
10761 | arm-*-linux* ) | |
10762 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
9b4d9d56 | 10763 | echo "configure:10764: checking size of long long" >&5 |
a0b9e27f MB |
10764 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10765 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10766 | else | |
10767 | if test "$cross_compiling" = yes; then | |
10768 | ac_cv_sizeof_long_long=8 | |
10769 | else | |
10770 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 10771 | #line 10772 "configure" |
247f5006 | 10772 | #include "confdefs.h" |
a0b9e27f | 10773 | #include <stdio.h> |
a0b9e27f | 10774 | main() |
247f5006 | 10775 | { |
a0b9e27f MB |
10776 | FILE *f=fopen("conftestval", "w"); |
10777 | if (!f) exit(1); | |
10778 | fprintf(f, "%d\n", sizeof(long long)); | |
10779 | exit(0); | |
247f5006 | 10780 | } |
a0b9e27f | 10781 | EOF |
9b4d9d56 | 10782 | if { (eval echo configure:10783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10783 | then |
10784 | ac_cv_sizeof_long_long=`cat conftestval` | |
7b4a847f | 10785 | else |
a0b9e27f MB |
10786 | echo "configure: failed program was:" >&5 |
10787 | cat conftest.$ac_ext >&5 | |
10788 | rm -fr conftest* | |
10789 | ac_cv_sizeof_long_long=0 | |
5c6fa7d2 | 10790 | fi |
a0b9e27f | 10791 | rm -fr conftest* |
5c6fa7d2 | 10792 | fi |
8284b0c5 | 10793 | |
a0b9e27f MB |
10794 | fi |
10795 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10796 | cat >> confdefs.h <<EOF | |
10797 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10798 | EOF | |
10799 | ||
10800 | ||
10801 | ;; | |
4f57cf11 | 10802 | *-hp-hpux* ) |
a0b9e27f | 10803 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
9b4d9d56 | 10804 | echo "configure:10805: checking size of long long" >&5 |
a0b9e27f MB |
10805 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10806 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 MB |
10807 | else |
10808 | if test "$cross_compiling" = yes; then | |
a0b9e27f | 10809 | ac_cv_sizeof_long_long=0 |
8284b0c5 | 10810 | else |
a0b9e27f | 10811 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 10812 | #line 10813 "configure" |
8284b0c5 MB |
10813 | #include "confdefs.h" |
10814 | #include <stdio.h> | |
a0b9e27f | 10815 | main() |
8284b0c5 | 10816 | { |
a0b9e27f MB |
10817 | FILE *f=fopen("conftestval", "w"); |
10818 | if (!f) exit(1); | |
10819 | fprintf(f, "%d\n", sizeof(long long)); | |
10820 | exit(0); | |
8284b0c5 | 10821 | } |
a0b9e27f | 10822 | EOF |
9b4d9d56 | 10823 | if { (eval echo configure:10824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10824 | then |
10825 | ac_cv_sizeof_long_long=`cat conftestval` | |
5c6fa7d2 | 10826 | else |
a0b9e27f MB |
10827 | echo "configure: failed program was:" >&5 |
10828 | cat conftest.$ac_ext >&5 | |
10829 | rm -fr conftest* | |
5c6fa7d2 | 10830 | ac_cv_sizeof_long_long=0 |
52127426 | 10831 | fi |
a0b9e27f MB |
10832 | rm -fr conftest* |
10833 | fi | |
10834 | ||
4f57cf11 GD |
10835 | fi |
10836 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10837 | cat >> confdefs.h <<EOF | |
10838 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10839 | EOF | |
10840 | ||
10841 | ||
10842 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
10843 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
10844 | fi | |
10845 | ;; | |
10846 | * ) | |
10847 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
9b4d9d56 | 10848 | echo "configure:10849: checking size of long long" >&5 |
4f57cf11 GD |
10849 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10850 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10851 | else | |
10852 | if test "$cross_compiling" = yes; then | |
10853 | ac_cv_sizeof_long_long=0 | |
10854 | else | |
10855 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 10856 | #line 10857 "configure" |
4f57cf11 GD |
10857 | #include "confdefs.h" |
10858 | #include <stdio.h> | |
10859 | main() | |
10860 | { | |
10861 | FILE *f=fopen("conftestval", "w"); | |
10862 | if (!f) exit(1); | |
10863 | fprintf(f, "%d\n", sizeof(long long)); | |
10864 | exit(0); | |
10865 | } | |
10866 | EOF | |
9b4d9d56 | 10867 | if { (eval echo configure:10868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f57cf11 GD |
10868 | then |
10869 | ac_cv_sizeof_long_long=`cat conftestval` | |
10870 | else | |
10871 | echo "configure: failed program was:" >&5 | |
10872 | cat conftest.$ac_ext >&5 | |
10873 | rm -fr conftest* | |
10874 | ac_cv_sizeof_long_long=0 | |
10875 | fi | |
10876 | rm -fr conftest* | |
10877 | fi | |
10878 | ||
7b4a847f | 10879 | fi |
a0b9e27f MB |
10880 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10881 | cat >> confdefs.h <<EOF | |
21d1c967 | 10882 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
a0b9e27f | 10883 | EOF |
9e691f46 | 10884 | |
8284b0c5 | 10885 | |
21d1c967 GD |
10886 | esac |
10887 | ||
a0b9e27f | 10888 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
9b4d9d56 | 10889 | echo "configure:10890: checking size of wchar_t" >&5 |
a0b9e27f MB |
10890 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
10891 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 10892 | else |
a0b9e27f | 10893 | |
21d1c967 | 10894 | if test "$cross_compiling" = yes; then |
2b5f62a0 VZ |
10895 | |
10896 | case "${host}" in | |
10897 | *-pc-msdosdjgpp ) | |
10898 | wx_cv_sizeof_wchar_t=0 | |
10899 | ;; | |
10900 | * ) | |
10901 | wx_cv_sizeof_wchar_t=4 | |
10902 | ;; | |
10903 | esac | |
10904 | ||
a0b9e27f | 10905 | |
6f72b082 | 10906 | else |
a0b9e27f | 10907 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 10908 | #line 10909 "configure" |
6f72b082 | 10909 | #include "confdefs.h" |
21d1c967 | 10910 | |
2b5f62a0 VZ |
10911 | /* DJGPP only has fake wchar_t: */ |
10912 | #ifdef __DJGPP__ | |
10913 | # error "fake wchar_t" | |
10914 | #endif | |
21d1c967 GD |
10915 | #ifdef HAVE_WCHAR_H |
10916 | # ifdef __CYGWIN__ | |
10917 | # include <stddef.h> | |
10918 | # endif | |
10919 | # include <wchar.h> | |
10920 | #endif | |
10921 | #ifdef HAVE_STDLIB_H | |
10922 | # include <stdlib.h> | |
10923 | #endif | |
10924 | #include <stdio.h> | |
10925 | int main() | |
10926 | { | |
10927 | FILE *f=fopen("conftestval", "w"); | |
10928 | if (!f) exit(1); | |
10929 | fprintf(f, "%i", sizeof(wchar_t)); | |
10930 | exit(0); | |
10931 | } | |
a0b9e27f MB |
10932 | |
10933 | EOF | |
9b4d9d56 | 10934 | if { (eval echo configure:10935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10935 | then |
21d1c967 | 10936 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 10937 | else |
a0b9e27f MB |
10938 | echo "configure: failed program was:" >&5 |
10939 | cat conftest.$ac_ext >&5 | |
10940 | rm -fr conftest* | |
10941 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 10942 | fi |
a0b9e27f | 10943 | rm -fr conftest* |
6f72b082 | 10944 | fi |
6f72b082 | 10945 | |
a0b9e27f | 10946 | |
3f345b47 VZ |
10947 | fi |
10948 | ||
a0b9e27f MB |
10949 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
10950 | ||
10951 | cat >> confdefs.h <<EOF | |
21d1c967 | 10952 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
a0b9e27f | 10953 | EOF |
90dd450c | 10954 | |
8284b0c5 | 10955 | |
21d1c967 GD |
10956 | # Check whether --enable-largefile or --disable-largefile was given. |
10957 | if test "${enable_largefile+set}" = set; then | |
10958 | enableval="$enable_largefile" | |
a0b9e27f MB |
10959 | : |
10960 | fi | |
3f345b47 | 10961 | |
21d1c967 GD |
10962 | if test "$enable_largefile" != no; then |
10963 | wx_largefile=no | |
a0b9e27f MB |
10964 | |
10965 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
9b4d9d56 | 10966 | echo "configure:10967: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
a0b9e27f MB |
10967 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
10968 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10969 | else | |
10970 | ||
10971 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 10972 | #line 10973 "configure" |
90dd450c | 10973 | #include "confdefs.h" |
21d1c967 GD |
10974 | #define _FILE_OFFSET_BITS 64 |
10975 | #include <sys/types.h> | |
a0b9e27f | 10976 | int main() { |
21d1c967 GD |
10977 | typedef struct { |
10978 | unsigned int field: sizeof(off_t) == 8; | |
10979 | } wxlf; | |
10980 | ||
a0b9e27f MB |
10981 | ; return 0; } |
10982 | EOF | |
9b4d9d56 | 10983 | if { (eval echo configure:10984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10984 | rm -rf conftest* |
21d1c967 | 10985 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 10986 | else |
a0b9e27f MB |
10987 | echo "configure: failed program was:" >&5 |
10988 | cat conftest.$ac_ext >&5 | |
10989 | rm -rf conftest* | |
10990 | ac_cv_sys_file_offset_bits=no | |
5c6fa7d2 | 10991 | fi |
a0b9e27f MB |
10992 | rm -f conftest* |
10993 | ||
10994 | ||
247f5006 | 10995 | fi |
a0b9e27f MB |
10996 | |
10997 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
21d1c967 GD |
10998 | |
10999 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
11000 | wx_largefile=yes | |
a0b9e27f | 11001 | cat >> confdefs.h <<EOF |
21d1c967 | 11002 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
a0b9e27f | 11003 | EOF |
21d1c967 GD |
11004 | |
11005 | fi | |
11006 | ||
11007 | if test "x$wx_largefile" != "xyes"; then | |
a0b9e27f MB |
11008 | |
11009 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
9b4d9d56 | 11010 | echo "configure:11011: checking for _LARGE_FILES value needed for large files" >&5 |
a0b9e27f MB |
11011 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
11012 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11013 | else | |
11014 | ||
11015 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 11016 | #line 11017 "configure" |
f6bcfd97 | 11017 | #include "confdefs.h" |
21d1c967 GD |
11018 | #define _LARGE_FILES 1 |
11019 | #include <sys/types.h> | |
a0b9e27f | 11020 | int main() { |
21d1c967 GD |
11021 | typedef struct { |
11022 | unsigned int field: sizeof(off_t) == 8; | |
11023 | } wxlf; | |
11024 | ||
a0b9e27f MB |
11025 | ; return 0; } |
11026 | EOF | |
9b4d9d56 | 11027 | if { (eval echo configure:11028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11028 | rm -rf conftest* |
21d1c967 | 11029 | ac_cv_sys_large_files=1 |
f6bcfd97 | 11030 | else |
a0b9e27f MB |
11031 | echo "configure: failed program was:" >&5 |
11032 | cat conftest.$ac_ext >&5 | |
11033 | rm -rf conftest* | |
11034 | ac_cv_sys_large_files=no | |
5c6fa7d2 | 11035 | fi |
a0b9e27f MB |
11036 | rm -f conftest* |
11037 | ||
11038 | ||
247f5006 | 11039 | fi |
a0b9e27f MB |
11040 | |
11041 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
3f345b47 | 11042 | |
21d1c967 GD |
11043 | if test "$ac_cv_sys_large_files" != no; then |
11044 | wx_largefile=yes | |
a0b9e27f | 11045 | cat >> confdefs.h <<EOF |
21d1c967 | 11046 | #define _LARGE_FILES $ac_cv_sys_large_files |
a0b9e27f | 11047 | EOF |
90dd450c | 11048 | |
90dd450c VZ |
11049 | fi |
11050 | ||
90dd450c | 11051 | fi |
90dd450c | 11052 | |
a0b9e27f | 11053 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
9b4d9d56 | 11054 | echo "configure:11055: checking if large file support is available" >&5 |
21d1c967 | 11055 | if test "x$wx_largefile" = "xyes"; then |
a0b9e27f | 11056 | cat >> confdefs.h <<\EOF |
21d1c967 | 11057 | #define HAVE_LARGEFILE_SUPPORT 1 |
a0b9e27f | 11058 | EOF |
90dd450c | 11059 | |
90dd450c | 11060 | fi |
a0b9e27f | 11061 | echo "$ac_t""$wx_largefile" 1>&6 |
21d1c967 | 11062 | fi |
90dd450c | 11063 | |
8284b0c5 | 11064 | |
f02444d0 | 11065 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
11066 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
11067 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 11068 | else |
e26c13cf | 11069 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 11070 | fi |
e26c13cf | 11071 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
11072 | fi |
11073 | ||
a0b9e27f | 11074 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
9b4d9d56 | 11075 | echo "configure:11076: checking whether byte ordering is bigendian" >&5 |
a0b9e27f MB |
11076 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
11077 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 11078 | else |
21d1c967 GD |
11079 | ac_cv_c_bigendian=unknown |
11080 | # See if sys/param.h defines the BYTE_ORDER macro. | |
a0b9e27f | 11081 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 11082 | #line 11083 "configure" |
90dd450c | 11083 | #include "confdefs.h" |
21d1c967 GD |
11084 | #include <sys/types.h> |
11085 | #include <sys/param.h> | |
a0b9e27f | 11086 | int main() { |
21d1c967 GD |
11087 | |
11088 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
11089 | bogus endian macros | |
11090 | #endif | |
a0b9e27f MB |
11091 | ; return 0; } |
11092 | EOF | |
9b4d9d56 | 11093 | if { (eval echo configure:11094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11094 | rm -rf conftest* |
21d1c967 | 11095 | # It does; now see whether it defined to BIG_ENDIAN or not. |
a0b9e27f | 11096 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 11097 | #line 11098 "configure" |
90dd450c | 11098 | #include "confdefs.h" |
21d1c967 GD |
11099 | #include <sys/types.h> |
11100 | #include <sys/param.h> | |
a0b9e27f | 11101 | int main() { |
21d1c967 GD |
11102 | |
11103 | #if BYTE_ORDER != BIG_ENDIAN | |
11104 | not big endian | |
11105 | #endif | |
a0b9e27f MB |
11106 | ; return 0; } |
11107 | EOF | |
9b4d9d56 | 11108 | if { (eval echo configure:11109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11109 | rm -rf conftest* |
21d1c967 | 11110 | ac_cv_c_bigendian=yes |
3f345b47 | 11111 | else |
a0b9e27f MB |
11112 | echo "configure: failed program was:" >&5 |
11113 | cat conftest.$ac_ext >&5 | |
11114 | rm -rf conftest* | |
11115 | ac_cv_c_bigendian=no | |
3f345b47 | 11116 | fi |
a0b9e27f | 11117 | rm -f conftest* |
3f345b47 | 11118 | else |
a0b9e27f MB |
11119 | echo "configure: failed program was:" >&5 |
11120 | cat conftest.$ac_ext >&5 | |
3f345b47 | 11121 | fi |
a0b9e27f | 11122 | rm -f conftest* |
21d1c967 GD |
11123 | if test $ac_cv_c_bigendian = unknown; then |
11124 | if test "$cross_compiling" = yes; then | |
11125 | ac_cv_c_bigendian=unknown | |
10f2d63a | 11126 | else |
a0b9e27f | 11127 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 11128 | #line 11129 "configure" |
90dd450c | 11129 | #include "confdefs.h" |
21d1c967 GD |
11130 | main () { |
11131 | /* Are we little or big endian? From Harbison&Steele. */ | |
11132 | union | |
11133 | { | |
11134 | long l; | |
11135 | char c[sizeof (long)]; | |
11136 | } u; | |
11137 | u.l = 1; | |
11138 | exit (u.c[sizeof (long) - 1] == 1); | |
11139 | } | |
a0b9e27f | 11140 | EOF |
9b4d9d56 | 11141 | if { (eval echo configure:11142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 11142 | then |
21d1c967 | 11143 | ac_cv_c_bigendian=no |
3f345b47 | 11144 | else |
a0b9e27f MB |
11145 | echo "configure: failed program was:" >&5 |
11146 | cat conftest.$ac_ext >&5 | |
11147 | rm -fr conftest* | |
11148 | ac_cv_c_bigendian=yes | |
247f5006 | 11149 | fi |
a0b9e27f | 11150 | rm -fr conftest* |
247f5006 | 11151 | fi |
a0b9e27f | 11152 | |
3f345b47 | 11153 | fi |
8168de4c | 11154 | fi |
a0b9e27f MB |
11155 | |
11156 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
247f5006 | 11157 | if test $ac_cv_c_bigendian = unknown; then |
a0b9e27f | 11158 | echo "configure: warning: Assuming little-endian target machine - this may be overriden by adding the line "ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}" to config.cache file" 1>&2 |
247f5006 VZ |
11159 | fi |
11160 | if test $ac_cv_c_bigendian = yes; then | |
a0b9e27f | 11161 | cat >> confdefs.h <<\EOF |
247f5006 | 11162 | #define WORDS_BIGENDIAN 1 |
a0b9e27f | 11163 | EOF |
247f5006 VZ |
11164 | |
11165 | fi | |
11166 | ||
11167 | ||
a0b9e27f | 11168 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
9b4d9d56 | 11169 | echo "configure:11170: checking how to run the C++ preprocessor" >&5 |
247f5006 | 11170 | if test -z "$CXXCPP"; then |
a0b9e27f MB |
11171 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
11172 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11173 | else |
a0b9e27f MB |
11174 | ac_ext=C |
11175 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11176 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11177 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11178 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11179 | cross_compiling=$ac_cv_prog_cxx_cross | |
11180 | CXXCPP="${CXX-g++} -E" | |
11181 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 11182 | #line 11183 "configure" |
5c6fa7d2 | 11183 | #include "confdefs.h" |
a0b9e27f MB |
11184 | #include <stdlib.h> |
11185 | EOF | |
11186 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 11187 | { (eval echo configure:11188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11188 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11189 | if test -z "$ac_err"; then | |
21d1c967 | 11190 | : |
698dcdb6 | 11191 | else |
a0b9e27f MB |
11192 | echo "$ac_err" >&5 |
11193 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 11194 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11195 | rm -rf conftest* |
11196 | CXXCPP=/lib/cpp | |
247f5006 | 11197 | fi |
a0b9e27f MB |
11198 | rm -f conftest* |
11199 | ac_cv_prog_CXXCPP="$CXXCPP" | |
11200 | ac_ext=C | |
11201 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11202 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11203 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11204 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11205 | cross_compiling=$ac_cv_prog_cxx_cross | |
328a083c | 11206 | fi |
90dd450c | 11207 | fi |
a0b9e27f MB |
11208 | CXXCPP="$ac_cv_prog_CXXCPP" |
11209 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e6feb95 | 11210 | |
1725144d | 11211 | |
21d1c967 | 11212 | if test "$cross_compiling" = "yes"; then |
a0b9e27f | 11213 | cat >> confdefs.h <<\EOF |
21d1c967 | 11214 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11215 | EOF |
ab9b9eab | 11216 | |
21d1c967 | 11217 | else |
a0b9e27f MB |
11218 | |
11219 | ac_ext=C | |
11220 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11221 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11222 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11223 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11224 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 11225 | |
247f5006 | 11226 | |
a0b9e27f | 11227 | for ac_hdr in iostream |
21d1c967 | 11228 | do |
a0b9e27f MB |
11229 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11230 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9b4d9d56 | 11231 | echo "configure:11232: checking for $ac_hdr" >&5 |
a0b9e27f MB |
11232 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11233 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11234 | else | |
11235 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 11236 | #line 11237 "configure" |
ab9b9eab | 11237 | #include "confdefs.h" |
a0b9e27f MB |
11238 | #include <$ac_hdr> |
11239 | EOF | |
11240 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 11241 | { (eval echo configure:11242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11242 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11243 | if test -z "$ac_err"; then | |
11244 | rm -rf conftest* | |
11245 | eval "ac_cv_header_$ac_safe=yes" | |
11246 | else | |
11247 | echo "$ac_err" >&5 | |
11248 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 11249 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11250 | rm -rf conftest* |
11251 | eval "ac_cv_header_$ac_safe=no" | |
ab9b9eab | 11252 | fi |
a0b9e27f | 11253 | rm -f conftest* |
90dd450c | 11254 | fi |
a0b9e27f MB |
11255 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11256 | echo "$ac_t""yes" 1>&6 | |
11257 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11258 | cat >> confdefs.h <<EOF | |
11259 | #define $ac_tr_hdr 1 | |
11260 | EOF | |
11261 | ||
11262 | else | |
11263 | echo "$ac_t""no" 1>&6 | |
90dd450c | 11264 | fi |
21d1c967 | 11265 | done |
10f2d63a | 11266 | |
8284b0c5 | 11267 | |
21d1c967 GD |
11268 | if test "$ac_cv_header_iostream" = "yes" ; then |
11269 | : | |
11270 | else | |
a0b9e27f | 11271 | cat >> confdefs.h <<\EOF |
21d1c967 | 11272 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11273 | EOF |
788deba1 | 11274 | |
90dd450c | 11275 | fi |
ab9b9eab | 11276 | |
21d1c967 | 11277 | ac_ext=c |
a0b9e27f | 11278 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11279 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11280 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11281 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11282 | cross_compiling=$ac_cv_prog_cc_cross | |
ab9b9eab | 11283 | |
21d1c967 | 11284 | fi |
ab9b9eab | 11285 | |
52127426 | 11286 | |
8284b0c5 | 11287 | |
a0b9e27f | 11288 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
9b4d9d56 | 11289 | echo "configure:11290: checking if C++ compiler supports bool" >&5 |
a0b9e27f MB |
11290 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
11291 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11292 | else |
a0b9e27f MB |
11293 | |
11294 | ||
11295 | ac_ext=C | |
11296 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11297 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11298 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11299 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11300 | cross_compiling=$ac_cv_prog_cxx_cross | |
21d1c967 | 11301 | |
8284b0c5 | 11302 | |
a0b9e27f | 11303 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 11304 | #line 11305 "configure" |
ab9b9eab | 11305 | #include "confdefs.h" |
21d1c967 | 11306 | |
a0b9e27f MB |
11307 | |
11308 | int main() { | |
21d1c967 GD |
11309 | |
11310 | bool b = true; | |
11311 | ||
11312 | return 0; | |
a0b9e27f MB |
11313 | |
11314 | ; return 0; } | |
11315 | EOF | |
9b4d9d56 | 11316 | if { (eval echo configure:11317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11317 | rm -rf conftest* |
11318 | ||
21d1c967 | 11319 | wx_cv_cpp_bool=yes |
a0b9e27f | 11320 | |
698dcdb6 | 11321 | else |
a0b9e27f MB |
11322 | echo "configure: failed program was:" >&5 |
11323 | cat conftest.$ac_ext >&5 | |
11324 | rm -rf conftest* | |
11325 | ||
21d1c967 | 11326 | wx_cv_cpp_bool=no |
a0b9e27f MB |
11327 | |
11328 | ||
698dcdb6 | 11329 | fi |
a0b9e27f | 11330 | rm -f conftest* |
21d1c967 GD |
11331 | |
11332 | ac_ext=c | |
a0b9e27f | 11333 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11334 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11335 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11336 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11337 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11338 | |
a0b9e27f | 11339 | |
247f5006 | 11340 | fi |
a0b9e27f MB |
11341 | |
11342 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
21d1c967 GD |
11343 | |
11344 | if test "$wx_cv_cpp_bool" = "yes"; then | |
a0b9e27f | 11345 | cat >> confdefs.h <<\EOF |
21d1c967 | 11346 | #define HAVE_BOOL 1 |
a0b9e27f | 11347 | EOF |
ab9b9eab | 11348 | |
21d1c967 GD |
11349 | fi |
11350 | ||
52127426 | 11351 | |
8284b0c5 | 11352 | |
a0b9e27f | 11353 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 |
9b4d9d56 | 11354 | echo "configure:11355: checking if C++ compiler supports the explicit keyword" >&5 |
a0b9e27f MB |
11355 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then |
11356 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11357 | else |
a0b9e27f MB |
11358 | |
11359 | ||
11360 | ac_ext=C | |
11361 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11362 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11363 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11364 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11365 | cross_compiling=$ac_cv_prog_cxx_cross | |
986ecc86 | 11366 | |
8284b0c5 | 11367 | |
a0b9e27f | 11368 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 11369 | #line 11370 "configure" |
986ecc86 VZ |
11370 | #include "confdefs.h" |
11371 | ||
11372 | class Foo { public: explicit Foo(int) {} }; | |
a0b9e27f MB |
11373 | |
11374 | int main() { | |
986ecc86 VZ |
11375 | |
11376 | return 0; | |
a0b9e27f MB |
11377 | |
11378 | ; return 0; } | |
11379 | EOF | |
9b4d9d56 | 11380 | if { (eval echo configure:11381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11381 | rm -rf conftest* |
11382 | ||
11383 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 11384 | #line 11385 "configure" |
986ecc86 VZ |
11385 | #include "confdefs.h" |
11386 | ||
11387 | class Foo { public: explicit Foo(int) {} }; | |
11388 | static void TakeFoo(const Foo& foo) { } | |
a0b9e27f MB |
11389 | |
11390 | int main() { | |
986ecc86 VZ |
11391 | |
11392 | TakeFoo(17); | |
11393 | return 0; | |
a0b9e27f MB |
11394 | |
11395 | ; return 0; } | |
11396 | EOF | |
9b4d9d56 | 11397 | if { (eval echo configure:11398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11398 | rm -rf conftest* |
986ecc86 VZ |
11399 | wx_cv_explicit=no |
11400 | else | |
a0b9e27f MB |
11401 | echo "configure: failed program was:" >&5 |
11402 | cat conftest.$ac_ext >&5 | |
11403 | rm -rf conftest* | |
11404 | wx_cv_explicit=yes | |
11405 | ||
986ecc86 | 11406 | fi |
a0b9e27f MB |
11407 | rm -f conftest* |
11408 | ||
986ecc86 | 11409 | else |
a0b9e27f MB |
11410 | echo "configure: failed program was:" >&5 |
11411 | cat conftest.$ac_ext >&5 | |
11412 | rm -rf conftest* | |
11413 | wx_cv_explicit=no | |
11414 | ||
986ecc86 | 11415 | fi |
a0b9e27f | 11416 | rm -f conftest* |
986ecc86 VZ |
11417 | |
11418 | ac_ext=c | |
a0b9e27f | 11419 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
986ecc86 | 11420 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11421 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11422 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11423 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11424 | |
a0b9e27f | 11425 | |
247f5006 | 11426 | fi |
a0b9e27f MB |
11427 | |
11428 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
986ecc86 VZ |
11429 | |
11430 | if test "$wx_cv_explicit" = "yes"; then | |
a0b9e27f | 11431 | cat >> confdefs.h <<\EOF |
986ecc86 | 11432 | #define HAVE_EXPLICIT 1 |
a0b9e27f | 11433 | EOF |
986ecc86 VZ |
11434 | |
11435 | fi | |
11436 | ||
8284b0c5 | 11437 | |
521196a2 | 11438 | echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6 |
9b4d9d56 | 11439 | echo "configure:11440: checking whether the compiler supports const_cast<>" >&5 |
521196a2 MB |
11440 | if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then |
11441 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11442 | else | |
11443 | ||
11444 | ac_ext=C | |
11445 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11446 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11447 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11448 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11449 | cross_compiling=$ac_cv_prog_cxx_cross | |
11450 | ||
11451 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 11452 | #line 11453 "configure" |
521196a2 MB |
11453 | #include "confdefs.h" |
11454 | ||
11455 | int main() { | |
11456 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
11457 | ; return 0; } | |
11458 | EOF | |
9b4d9d56 | 11459 | if { (eval echo configure:11460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
521196a2 MB |
11460 | rm -rf conftest* |
11461 | ac_cv_cxx_const_cast=yes | |
11462 | else | |
11463 | echo "configure: failed program was:" >&5 | |
11464 | cat conftest.$ac_ext >&5 | |
11465 | rm -rf conftest* | |
11466 | ac_cv_cxx_const_cast=no | |
11467 | fi | |
11468 | rm -f conftest* | |
11469 | ac_ext=c | |
11470 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11471 | ac_cpp='$CPP $CPPFLAGS' | |
11472 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11473 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11474 | cross_compiling=$ac_cv_prog_cc_cross | |
11475 | ||
11476 | ||
11477 | fi | |
11478 | ||
11479 | echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6 | |
11480 | if test "$ac_cv_cxx_const_cast" = yes; then | |
11481 | cat >> confdefs.h <<\EOF | |
11482 | #define HAVE_CONST_CAST | |
11483 | EOF | |
11484 | ||
11485 | fi | |
11486 | ||
11487 | ||
8284b0c5 | 11488 | |
21d1c967 GD |
11489 | SEARCH_INCLUDE="\ |
11490 | /usr/local/include \ | |
11491 | \ | |
11492 | /usr/Motif-1.2/include \ | |
11493 | /usr/Motif-2.1/include \ | |
11494 | \ | |
11495 | /usr/include/Motif1.2 \ | |
11496 | /opt/xpm/include/X11 \ | |
11497 | /opt/GBxpm/include/ \ | |
11498 | /opt/GBxpm/X11/include/ \ | |
11499 | \ | |
11500 | /usr/Motif1.2/include \ | |
11501 | /usr/dt/include \ | |
11502 | /usr/openwin/include \ | |
11503 | \ | |
11504 | /usr/include/Xm \ | |
11505 | \ | |
11506 | /usr/X11R6/include \ | |
11507 | /usr/X11R6.4/include \ | |
11508 | /usr/X11R5/include \ | |
11509 | /usr/X11R4/include \ | |
11510 | \ | |
11511 | /usr/include/X11R6 \ | |
11512 | /usr/include/X11R5 \ | |
11513 | /usr/include/X11R4 \ | |
11514 | \ | |
11515 | /usr/local/X11R6/include \ | |
11516 | /usr/local/X11R5/include \ | |
11517 | /usr/local/X11R4/include \ | |
11518 | \ | |
11519 | /usr/local/include/X11R6 \ | |
11520 | /usr/local/include/X11R5 \ | |
11521 | /usr/local/include/X11R4 \ | |
11522 | \ | |
11523 | /usr/X11/include \ | |
11524 | /usr/include/X11 \ | |
11525 | /usr/local/X11/include \ | |
11526 | /usr/local/include/X11 \ | |
11527 | \ | |
11528 | /usr/X386/include \ | |
11529 | /usr/x386/include \ | |
11530 | /usr/XFree86/include/X11 \ | |
11531 | \ | |
11532 | X:/XFree86/include \ | |
11533 | X:/XFree86/include/X11 \ | |
11534 | \ | |
11535 | /usr/include/gtk \ | |
11536 | /usr/local/include/gtk \ | |
11537 | /usr/include/glib \ | |
11538 | /usr/local/include/glib \ | |
11539 | \ | |
11540 | /usr/include/qt \ | |
11541 | /usr/local/include/qt \ | |
11542 | \ | |
11543 | /usr/include/windows \ | |
11544 | /usr/include/wine \ | |
11545 | /usr/local/include/wine \ | |
11546 | \ | |
11547 | /usr/unsupported/include \ | |
11548 | /usr/athena/include \ | |
11549 | /usr/local/x11r5/include \ | |
11550 | /usr/lpp/Xamples/include \ | |
11551 | \ | |
2b5f62a0 | 11552 | /usr/openwin/share/include" |
21d1c967 GD |
11553 | |
11554 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
11555 | ||
8284b0c5 | 11556 | |
a0b9e27f | 11557 | cat > confcache <<\EOF |
21d1c967 GD |
11558 | # This file is a shell script that caches the results of configure |
11559 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
11560 | # scripts and configure runs. It is not useful on other systems. |
11561 | # If it contains results you don't want to keep, you may remove or edit it. | |
21d1c967 | 11562 | # |
a0b9e27f MB |
11563 | # By default, configure uses ./config.cache as the cache file, |
11564 | # creating it if it does not exist already. You can give configure | |
11565 | # the --cache-file=FILE option to use a different cache file; that is | |
11566 | # what configure does when it calls configure scripts in | |
11567 | # subdirectories, so they share the cache. | |
11568 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
11569 | # config.status only pays attention to the cache file if you give it the | |
11570 | # --recheck option to rerun configure. | |
21d1c967 | 11571 | # |
a0b9e27f | 11572 | EOF |
21d1c967 GD |
11573 | # The following way of writing the cache mishandles newlines in values, |
11574 | # but we know of no workaround that is simple, portable, and efficient. | |
11575 | # So, don't put newlines in cache variables' values. | |
11576 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11577 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
11578 | (set) 2>&1 | |
11579 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11580 | *ac_space=\ *) | |
11581 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11582 | # turns \\\\ into \\, and sed turns \\ into \). | |
11583 | sed -n \ | |
11584 | -e "s/'/'\\\\''/g" \ | |
11585 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11586 | ;; | |
11587 | *) | |
11588 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11589 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11590 | ;; | |
11591 | esac >> confcache | |
11592 | if cmp -s $cache_file confcache; then | |
11593 | : | |
11594 | else | |
21d1c967 | 11595 | if test -w $cache_file; then |
a0b9e27f MB |
11596 | echo "updating cache $cache_file" |
11597 | cat confcache > $cache_file | |
21d1c967 GD |
11598 | else |
11599 | echo "not updating unwritable cache $cache_file" | |
11600 | fi | |
ab9b9eab | 11601 | fi |
21d1c967 | 11602 | rm -f confcache |
ab9b9eab | 11603 | |
247f5006 | 11604 | |
a0b9e27f MB |
11605 | if test "$USE_LINUX" = 1; then |
11606 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
9b4d9d56 | 11607 | echo "configure:11608: checking for glibc 2.1 or later" >&5 |
a0b9e27f MB |
11608 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then |
11609 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11610 | else | |
11611 | ||
11612 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 11613 | #line 11614 "configure" |
ab9b9eab | 11614 | #include "confdefs.h" |
21d1c967 | 11615 | #include <features.h> |
a0b9e27f | 11616 | int main() { |
ab9b9eab | 11617 | |
21d1c967 GD |
11618 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
11619 | #error not glibc2.1 | |
11620 | #endif | |
a0b9e27f MB |
11621 | |
11622 | ; return 0; } | |
11623 | EOF | |
9b4d9d56 | 11624 | if { (eval echo configure:11625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11625 | rm -rf conftest* |
11626 | ||
21d1c967 | 11627 | wx_cv_lib_glibc21=yes |
a0b9e27f | 11628 | |
698dcdb6 | 11629 | else |
a0b9e27f MB |
11630 | echo "configure: failed program was:" >&5 |
11631 | cat conftest.$ac_ext >&5 | |
11632 | rm -rf conftest* | |
11633 | ||
21d1c967 | 11634 | wx_cv_lib_glibc21=no |
a0b9e27f MB |
11635 | |
11636 | ||
5c6fa7d2 | 11637 | fi |
a0b9e27f MB |
11638 | rm -f conftest* |
11639 | ||
247f5006 | 11640 | fi |
a0b9e27f MB |
11641 | |
11642 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 | |
21d1c967 | 11643 | if test "$wx_cv_lib_glibc21" = "yes"; then |
a0b9e27f | 11644 | cat >> confdefs.h <<\EOF |
21d1c967 | 11645 | #define wxHAVE_GLIBC2 1 |
a0b9e27f | 11646 | EOF |
1e487827 | 11647 | |
90dd450c | 11648 | fi |
ab9b9eab VZ |
11649 | fi |
11650 | ||
5c0a20c3 VZ |
11651 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
11652 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 11653 | cat >> confdefs.h <<\EOF |
5c0a20c3 | 11654 | #define _GNU_SOURCE 1 |
a0b9e27f | 11655 | EOF |
5c0a20c3 VZ |
11656 | |
11657 | fi | |
11658 | fi | |
11659 | ||
8284b0c5 MB |
11660 | |
11661 | ||
21d1c967 GD |
11662 | REGEX_INCLUDE= |
11663 | if test "$wxUSE_REGEX" != "no"; then | |
a0b9e27f | 11664 | cat >> confdefs.h <<\EOF |
21d1c967 | 11665 | #define wxUSE_REGEX 1 |
a0b9e27f | 11666 | EOF |
698dcdb6 | 11667 | |
8284b0c5 | 11668 | |
21d1c967 | 11669 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
a0b9e27f MB |
11670 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` |
11671 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
9b4d9d56 | 11672 | echo "configure:11673: checking for regex.h" >&5 |
a0b9e27f MB |
11673 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11674 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11675 | else | |
11676 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 11677 | #line 11678 "configure" |
247f5006 VZ |
11678 | #include "confdefs.h" |
11679 | #include <regex.h> | |
a0b9e27f MB |
11680 | EOF |
11681 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 11682 | { (eval echo configure:11683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11683 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11684 | if test -z "$ac_err"; then | |
11685 | rm -rf conftest* | |
11686 | eval "ac_cv_header_$ac_safe=yes" | |
11687 | else | |
11688 | echo "$ac_err" >&5 | |
11689 | echo "configure: failed program was:" >&5 | |
21d1c967 | 11690 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11691 | rm -rf conftest* |
11692 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 11693 | fi |
a0b9e27f | 11694 | rm -f conftest* |
698dcdb6 | 11695 | fi |
a0b9e27f MB |
11696 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11697 | echo "$ac_t""yes" 1>&6 | |
11698 | for ac_func in regcomp | |
21d1c967 | 11699 | do |
a0b9e27f | 11700 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 11701 | echo "configure:11702: checking for $ac_func" >&5 |
a0b9e27f MB |
11702 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11703 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11704 | else |
a0b9e27f | 11705 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 11706 | #line 11707 "configure" |
a0b9e27f MB |
11707 | #include "confdefs.h" |
11708 | /* System header to define __stub macros and hopefully few prototypes, | |
11709 | which can conflict with char $ac_func(); below. */ | |
21d1c967 GD |
11710 | #include <assert.h> |
11711 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11712 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11713 | builtin and then its argument prototype would still apply. */ |
11714 | char $ac_func(); | |
11715 | ||
11716 | int main() { | |
11717 | ||
21d1c967 GD |
11718 | /* The GNU C library defines this for functions which it implements |
11719 | to always fail with ENOSYS. Some functions are actually named | |
11720 | something starting with __ and the normal name is an alias. */ | |
11721 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11722 | choke me | |
11723 | #else | |
a0b9e27f | 11724 | $ac_func(); |
21d1c967 | 11725 | #endif |
90dd450c | 11726 | |
a0b9e27f MB |
11727 | ; return 0; } |
11728 | EOF | |
9b4d9d56 | 11729 | if { (eval echo configure:11730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11730 | rm -rf conftest* |
11731 | eval "ac_cv_func_$ac_func=yes" | |
11732 | else | |
11733 | echo "configure: failed program was:" >&5 | |
11734 | cat conftest.$ac_ext >&5 | |
11735 | rm -rf conftest* | |
11736 | eval "ac_cv_func_$ac_func=no" | |
11737 | fi | |
11738 | rm -f conftest* | |
11739 | fi | |
5c6fa7d2 | 11740 | |
a0b9e27f MB |
11741 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11742 | echo "$ac_t""yes" 1>&6 | |
11743 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11744 | cat >> confdefs.h <<EOF | |
11745 | #define $ac_tr_func 1 | |
11746 | EOF | |
11747 | ||
11748 | else | |
11749 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 11750 | fi |
21d1c967 GD |
11751 | done |
11752 | ||
a0b9e27f MB |
11753 | else |
11754 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11755 | fi |
11756 | ||
8284b0c5 | 11757 | |
21d1c967 GD |
11758 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
11759 | if test "$wxUSE_REGEX" = "sys" ; then | |
a0b9e27f | 11760 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11761 | else |
a0b9e27f | 11762 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11763 | wxUSE_REGEX=builtin |
11764 | fi | |
11765 | else | |
11766 | wxUSE_REGEX=sys | |
11767 | fi | |
ab9b9eab | 11768 | fi |
90dd450c | 11769 | |
21d1c967 GD |
11770 | if test "$wxUSE_REGEX" = "builtin" ; then |
11771 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 11772 | fi |
21d1c967 | 11773 | fi |
90dd450c | 11774 | |
8284b0c5 | 11775 | |
21d1c967 GD |
11776 | ZLIB_INCLUDE= |
11777 | ZLIB_LINK= | |
11778 | if test "$wxUSE_ZLIB" != "no" ; then | |
a0b9e27f | 11779 | cat >> confdefs.h <<\EOF |
21d1c967 | 11780 | #define wxUSE_ZLIB 1 |
a0b9e27f | 11781 | EOF |
21d1c967 | 11782 | |
8284b0c5 | 11783 | |
21d1c967 | 11784 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
11785 | if test "$USE_DARWIN" = 1; then |
11786 | system_zlib_h_ok="yes" | |
11787 | else | |
11788 | echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6 | |
9b4d9d56 | 11789 | echo "configure:11790: checking for zlib.h >= 1.1.4" >&5 |
d643b80e VZ |
11790 | if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then |
11791 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11792 | else | |
11793 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 11794 | unset ac_cv_header_zlib_h |
d775acfa | 11795 | |
d643b80e VZ |
11796 | else |
11797 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 11798 | #line 11799 "configure" |
d643b80e VZ |
11799 | #include "confdefs.h" |
11800 | ||
d775acfa VZ |
11801 | #include <zlib.h> |
11802 | #include <stdio.h> | |
d643b80e | 11803 | |
d775acfa VZ |
11804 | |
11805 | int main() | |
11806 | { | |
11807 | FILE *f=fopen("conftestval", "w"); | |
11808 | if (!f) exit(1); | |
11809 | fprintf(f, "%s", | |
11810 | ZLIB_VERSION[0] == '1' && | |
11811 | (ZLIB_VERSION[2] > '1' || | |
11812 | (ZLIB_VERSION[2] == '1' && | |
11813 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
11814 | exit(0); | |
11815 | } | |
11816 | ||
d643b80e | 11817 | |
d643b80e | 11818 | EOF |
9b4d9d56 | 11819 | if { (eval echo configure:11820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
d643b80e VZ |
11820 | then |
11821 | ac_cv_header_zlib_h=`cat conftestval` | |
11822 | else | |
11823 | echo "configure: failed program was:" >&5 | |
11824 | cat conftest.$ac_ext >&5 | |
11825 | rm -fr conftest* | |
11826 | ac_cv_header_zlib_h=no | |
11827 | fi | |
11828 | rm -fr conftest* | |
11829 | fi | |
11830 | ||
d775acfa | 11831 | |
d643b80e VZ |
11832 | fi |
11833 | ||
11834 | echo "$ac_t""$ac_cv_header_zlib_h" 1>&6 | |
89e6bf6d VZ |
11835 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
11836 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
9b4d9d56 | 11837 | echo "configure:11838: checking for zlib.h" >&5 |
89e6bf6d VZ |
11838 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11839 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11840 | else | |
11841 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 11842 | #line 11843 "configure" |
89e6bf6d VZ |
11843 | #include "confdefs.h" |
11844 | #include <zlib.h> | |
11845 | EOF | |
11846 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 11847 | { (eval echo configure:11848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
89e6bf6d VZ |
11848 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11849 | if test -z "$ac_err"; then | |
11850 | rm -rf conftest* | |
11851 | eval "ac_cv_header_$ac_safe=yes" | |
11852 | else | |
11853 | echo "$ac_err" >&5 | |
11854 | echo "configure: failed program was:" >&5 | |
11855 | cat conftest.$ac_ext >&5 | |
11856 | rm -rf conftest* | |
11857 | eval "ac_cv_header_$ac_safe=no" | |
11858 | fi | |
11859 | rm -f conftest* | |
11860 | fi | |
11861 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11862 | echo "$ac_t""yes" 1>&6 | |
11863 | : | |
11864 | else | |
11865 | echo "$ac_t""no" 1>&6 | |
11866 | fi | |
11867 | ||
d643b80e | 11868 | |
d775acfa VZ |
11869 | system_zlib_h_ok=$ac_cv_header_zlib_h |
11870 | fi | |
11871 | ||
11872 | if test "$system_zlib_h_ok" = "yes"; then | |
d643b80e | 11873 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
9b4d9d56 | 11874 | echo "configure:11875: checking for deflate in -lz" >&5 |
a0b9e27f MB |
11875 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
11876 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11877 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11878 | else |
a0b9e27f | 11879 | ac_save_LIBS="$LIBS" |
21d1c967 | 11880 | LIBS="-lz $LIBS" |
a0b9e27f | 11881 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 11882 | #line 11883 "configure" |
ab9b9eab | 11883 | #include "confdefs.h" |
21d1c967 GD |
11884 | /* Override any gcc2 internal prototype to avoid an error. */ |
11885 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11886 | builtin and then its argument prototype would still apply. */ |
11887 | char deflate(); | |
11888 | ||
11889 | int main() { | |
11890 | deflate() | |
11891 | ; return 0; } | |
11892 | EOF | |
9b4d9d56 | 11893 | if { (eval echo configure:11894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11894 | rm -rf conftest* |
11895 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11896 | else | |
11897 | echo "configure: failed program was:" >&5 | |
11898 | cat conftest.$ac_ext >&5 | |
11899 | rm -rf conftest* | |
11900 | eval "ac_cv_lib_$ac_lib_var=no" | |
90dd450c | 11901 | fi |
a0b9e27f MB |
11902 | rm -f conftest* |
11903 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 11904 | |
698dcdb6 | 11905 | fi |
a0b9e27f MB |
11906 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11907 | echo "$ac_t""yes" 1>&6 | |
11908 | ZLIB_LINK=" -lz" | |
11909 | else | |
11910 | echo "$ac_t""no" 1>&6 | |
11911 | fi | |
698dcdb6 | 11912 | |
d643b80e | 11913 | fi |
247f5006 | 11914 | |
21d1c967 GD |
11915 | if test "x$ZLIB_LINK" = "x" ; then |
11916 | if test "$wxUSE_ZLIB" = "sys" ; then | |
d643b80e | 11917 | { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11918 | else |
d643b80e | 11919 | echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2 |
21d1c967 GD |
11920 | wxUSE_ZLIB=builtin |
11921 | fi | |
11922 | else | |
11923 | wxUSE_ZLIB=sys | |
11924 | fi | |
11925 | fi | |
11926 | ||
11927 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11928 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11929 | fi | |
ab9b9eab VZ |
11930 | fi |
11931 | ||
8284b0c5 | 11932 | |
21d1c967 GD |
11933 | PNG_INCLUDE= |
11934 | PNG_LINK= | |
11935 | if test "$wxUSE_LIBPNG" != "no" ; then | |
a0b9e27f | 11936 | cat >> confdefs.h <<\EOF |
21d1c967 | 11937 | #define wxUSE_LIBPNG 1 |
a0b9e27f | 11938 | EOF |
90dd450c | 11939 | |
8284b0c5 | 11940 | |
21d1c967 | 11941 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
a0b9e27f | 11942 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11943 | wxUSE_LIBPNG=sys |
11944 | fi | |
90dd450c | 11945 | |
21d1c967 | 11946 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
a0b9e27f | 11947 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
21d1c967 GD |
11948 | wxUSE_LIBPNG=builtin |
11949 | fi | |
11950 | ||
11951 | if test "$wxUSE_MGL" != 1 ; then | |
11952 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
5d3f766d | 11953 | echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6 |
9b4d9d56 | 11954 | echo "configure:11955: checking for png.h > 0.90" >&5 |
5d3f766d VZ |
11955 | if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then |
11956 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11957 | else | |
11958 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 11959 | unset ac_cv_header_png_h |
5d3f766d VZ |
11960 | |
11961 | else | |
11962 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 11963 | #line 11964 "configure" |
5d3f766d VZ |
11964 | #include "confdefs.h" |
11965 | ||
11966 | #include <png.h> | |
11967 | #include <stdio.h> | |
11968 | ||
11969 | int main() | |
11970 | { | |
11971 | FILE *f=fopen("conftestval", "w"); | |
11972 | if (!f) exit(1); | |
11973 | fprintf(f, "%s", | |
11974 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
11975 | exit(0); | |
11976 | } | |
11977 | ||
11978 | EOF | |
9b4d9d56 | 11979 | if { (eval echo configure:11980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5d3f766d VZ |
11980 | then |
11981 | ac_cv_header_png_h=`cat conftestval` | |
11982 | else | |
11983 | echo "configure: failed program was:" >&5 | |
11984 | cat conftest.$ac_ext >&5 | |
11985 | rm -fr conftest* | |
11986 | ac_cv_header_png_h=no | |
11987 | fi | |
11988 | rm -fr conftest* | |
11989 | fi | |
11990 | ||
11991 | ||
11992 | fi | |
11993 | ||
11994 | echo "$ac_t""$ac_cv_header_png_h" 1>&6 | |
89e6bf6d VZ |
11995 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
11996 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
9b4d9d56 | 11997 | echo "configure:11998: checking for png.h" >&5 |
89e6bf6d VZ |
11998 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11999 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12000 | else | |
12001 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 12002 | #line 12003 "configure" |
89e6bf6d VZ |
12003 | #include "confdefs.h" |
12004 | #include <png.h> | |
12005 | EOF | |
12006 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 12007 | { (eval echo configure:12008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
89e6bf6d VZ |
12008 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12009 | if test -z "$ac_err"; then | |
12010 | rm -rf conftest* | |
12011 | eval "ac_cv_header_$ac_safe=yes" | |
12012 | else | |
12013 | echo "$ac_err" >&5 | |
12014 | echo "configure: failed program was:" >&5 | |
12015 | cat conftest.$ac_ext >&5 | |
12016 | rm -rf conftest* | |
12017 | eval "ac_cv_header_$ac_safe=no" | |
12018 | fi | |
12019 | rm -f conftest* | |
12020 | fi | |
12021 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12022 | echo "$ac_t""yes" 1>&6 | |
12023 | : | |
12024 | else | |
12025 | echo "$ac_t""no" 1>&6 | |
12026 | fi | |
12027 | ||
5d3f766d VZ |
12028 | |
12029 | if test "$ac_cv_header_png_h" = "yes"; then | |
12030 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
9b4d9d56 | 12031 | echo "configure:12032: checking for png_check_sig in -lpng" >&5 |
a0b9e27f MB |
12032 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
12033 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12034 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12035 | else |
a0b9e27f | 12036 | ac_save_LIBS="$LIBS" |
21d1c967 | 12037 | LIBS="-lpng -lz -lm $LIBS" |
a0b9e27f | 12038 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 12039 | #line 12040 "configure" |
90dd450c | 12040 | #include "confdefs.h" |
21d1c967 GD |
12041 | /* Override any gcc2 internal prototype to avoid an error. */ |
12042 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
12043 | builtin and then its argument prototype would still apply. */ |
12044 | char png_check_sig(); | |
90dd450c | 12045 | |
a0b9e27f MB |
12046 | int main() { |
12047 | png_check_sig() | |
12048 | ; return 0; } | |
12049 | EOF | |
9b4d9d56 | 12050 | if { (eval echo configure:12051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12051 | rm -rf conftest* |
12052 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12053 | else | |
12054 | echo "configure: failed program was:" >&5 | |
12055 | cat conftest.$ac_ext >&5 | |
12056 | rm -rf conftest* | |
12057 | eval "ac_cv_lib_$ac_lib_var=no" | |
12058 | fi | |
12059 | rm -f conftest* | |
12060 | LIBS="$ac_save_LIBS" | |
247f5006 | 12061 | |
90dd450c | 12062 | fi |
a0b9e27f MB |
12063 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
12064 | echo "$ac_t""yes" 1>&6 | |
12065 | PNG_LINK=" -lpng" | |
12066 | else | |
12067 | echo "$ac_t""no" 1>&6 | |
12068 | fi | |
90dd450c | 12069 | |
5d3f766d | 12070 | fi |
247f5006 | 12071 | |
21d1c967 GD |
12072 | if test "x$PNG_LINK" = "x" ; then |
12073 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
0c98a14e | 12074 | { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 12075 | else |
0c98a14e | 12076 | echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2 |
21d1c967 GD |
12077 | wxUSE_LIBPNG=builtin |
12078 | fi | |
12079 | else | |
2b5f62a0 | 12080 | wxUSE_LIBPNG=sys |
21d1c967 GD |
12081 | fi |
12082 | fi | |
12083 | fi | |
90dd450c | 12084 | |
21d1c967 GD |
12085 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
12086 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
12087 | fi | |
90dd450c | 12088 | |
21d1c967 | 12089 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
12090 | fi |
12091 | ||
8284b0c5 | 12092 | |
21d1c967 GD |
12093 | JPEG_INCLUDE= |
12094 | JPEG_LINK= | |
12095 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
a0b9e27f | 12096 | cat >> confdefs.h <<\EOF |
21d1c967 | 12097 | #define wxUSE_LIBJPEG 1 |
a0b9e27f | 12098 | EOF |
90dd450c | 12099 | |
8284b0c5 | 12100 | |
21d1c967 | 12101 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
a0b9e27f | 12102 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 |
21d1c967 GD |
12103 | wxUSE_LIBJPEG=sys |
12104 | fi | |
90dd450c | 12105 | |
21d1c967 GD |
12106 | if test "$wxUSE_MGL" != 1 ; then |
12107 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
a0b9e27f | 12108 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
9b4d9d56 | 12109 | echo "configure:12110: checking for jpeglib.h" >&5 |
a0b9e27f MB |
12110 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
12111 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12112 | else |
a0b9e27f | 12113 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 12114 | #line 12115 "configure" |
21d1c967 | 12115 | #include "confdefs.h" |
90dd450c | 12116 | |
21d1c967 GD |
12117 | #undef HAVE_STDLIB_H |
12118 | #include <stdio.h> | |
12119 | #include <jpeglib.h> | |
a0b9e27f MB |
12120 | |
12121 | int main() { | |
90dd450c | 12122 | |
a0b9e27f MB |
12123 | |
12124 | ; return 0; } | |
12125 | EOF | |
9b4d9d56 | 12126 | if { (eval echo configure:12127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 12127 | rm -rf conftest* |
21d1c967 | 12128 | ac_cv_header_jpeglib_h=yes |
90dd450c | 12129 | else |
a0b9e27f MB |
12130 | echo "configure: failed program was:" >&5 |
12131 | cat conftest.$ac_ext >&5 | |
12132 | rm -rf conftest* | |
12133 | ac_cv_header_jpeglib_h=no | |
12134 | ||
90dd450c | 12135 | fi |
a0b9e27f MB |
12136 | rm -f conftest* |
12137 | ||
90dd450c VZ |
12138 | fi |
12139 | ||
a0b9e27f | 12140 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
90dd450c | 12141 | |
21d1c967 | 12142 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
a0b9e27f | 12143 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 |
9b4d9d56 | 12144 | echo "configure:12145: checking for jpeg_read_header in -ljpeg" >&5 |
a0b9e27f MB |
12145 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
12146 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12147 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12148 | else |
a0b9e27f | 12149 | ac_save_LIBS="$LIBS" |
21d1c967 | 12150 | LIBS="-ljpeg $LIBS" |
a0b9e27f | 12151 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 12152 | #line 12153 "configure" |
21d1c967 GD |
12153 | #include "confdefs.h" |
12154 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12155 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
12156 | builtin and then its argument prototype would still apply. */ |
12157 | char jpeg_read_header(); | |
12158 | ||
12159 | int main() { | |
12160 | jpeg_read_header() | |
12161 | ; return 0; } | |
12162 | EOF | |
9b4d9d56 | 12163 | if { (eval echo configure:12164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12164 | rm -rf conftest* |
12165 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12166 | else | |
12167 | echo "configure: failed program was:" >&5 | |
12168 | cat conftest.$ac_ext >&5 | |
12169 | rm -rf conftest* | |
12170 | eval "ac_cv_lib_$ac_lib_var=no" | |
12171 | fi | |
12172 | rm -f conftest* | |
12173 | LIBS="$ac_save_LIBS" | |
12174 | ||
12175 | fi | |
12176 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12177 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 12178 | JPEG_LINK=" -ljpeg" |
a0b9e27f MB |
12179 | else |
12180 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
12181 | fi |
12182 | ||
21d1c967 | 12183 | fi |
90dd450c | 12184 | |
21d1c967 GD |
12185 | if test "x$JPEG_LINK" = "x" ; then |
12186 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
a0b9e27f | 12187 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 12188 | else |
a0b9e27f | 12189 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
12190 | wxUSE_LIBJPEG=builtin |
12191 | fi | |
12192 | else | |
12193 | wxUSE_LIBJPEG=sys | |
12194 | fi | |
12195 | fi | |
12196 | fi | |
90dd450c | 12197 | |
21d1c967 GD |
12198 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
12199 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
12200 | fi | |
12201 | fi | |
90dd450c | 12202 | |
8284b0c5 | 12203 | |
21d1c967 GD |
12204 | TIFF_INCLUDE= |
12205 | TIFF_LINK= | |
2b5f62a0 | 12206 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 12207 | if test "$wxUSE_LIBTIFF" != "no" ; then |
a0b9e27f | 12208 | cat >> confdefs.h <<\EOF |
21d1c967 | 12209 | #define wxUSE_LIBTIFF 1 |
a0b9e27f | 12210 | EOF |
21d1c967 | 12211 | |
8284b0c5 | 12212 | |
21d1c967 | 12213 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
12214 | if test "$wxUSE_LIBJPEG" = "sys"; then |
12215 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
12216 | fi | |
12217 | if test "$wxUSE_ZLIB" = "sys"; then | |
12218 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
12219 | fi | |
a0b9e27f MB |
12220 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
12221 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
9b4d9d56 | 12222 | echo "configure:12223: checking for tiffio.h" >&5 |
a0b9e27f MB |
12223 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12224 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12225 | else | |
12226 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 12227 | #line 12228 "configure" |
247f5006 VZ |
12228 | #include "confdefs.h" |
12229 | #include <tiffio.h> | |
a0b9e27f MB |
12230 | EOF |
12231 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 12232 | { (eval echo configure:12233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12233 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12234 | if test -z "$ac_err"; then | |
12235 | rm -rf conftest* | |
12236 | eval "ac_cv_header_$ac_safe=yes" | |
12237 | else | |
12238 | echo "$ac_err" >&5 | |
12239 | echo "configure: failed program was:" >&5 | |
21d1c967 | 12240 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12241 | rm -rf conftest* |
12242 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 12243 | fi |
a0b9e27f | 12244 | rm -f conftest* |
21d1c967 | 12245 | fi |
a0b9e27f MB |
12246 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12247 | echo "$ac_t""yes" 1>&6 | |
12248 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
9b4d9d56 | 12249 | echo "configure:12250: checking for TIFFError in -ltiff" >&5 |
a0b9e27f MB |
12250 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
12251 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12252 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 12253 | else |
a0b9e27f | 12254 | ac_save_LIBS="$LIBS" |
2b5f62a0 | 12255 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
a0b9e27f | 12256 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 12257 | #line 12258 "configure" |
ab9b9eab VZ |
12258 | #include "confdefs.h" |
12259 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12260 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
12261 | builtin and then its argument prototype would still apply. */ |
12262 | char TIFFError(); | |
ab9b9eab | 12263 | |
a0b9e27f MB |
12264 | int main() { |
12265 | TIFFError() | |
12266 | ; return 0; } | |
12267 | EOF | |
9b4d9d56 | 12268 | if { (eval echo configure:12269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12269 | rm -rf conftest* |
12270 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12271 | else | |
12272 | echo "configure: failed program was:" >&5 | |
12273 | cat conftest.$ac_ext >&5 | |
12274 | rm -rf conftest* | |
12275 | eval "ac_cv_lib_$ac_lib_var=no" | |
12276 | fi | |
12277 | rm -f conftest* | |
12278 | LIBS="$ac_save_LIBS" | |
247f5006 | 12279 | |
21d1c967 | 12280 | fi |
a0b9e27f MB |
12281 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
12282 | echo "$ac_t""yes" 1>&6 | |
12283 | TIFF_LINK=" -ltiff" | |
12284 | else | |
12285 | echo "$ac_t""no" 1>&6 | |
12286 | fi | |
cd6d6d5b | 12287 | |
a0b9e27f MB |
12288 | |
12289 | else | |
12290 | echo "$ac_t""no" 1>&6 | |
12291 | fi | |
8284b0c5 | 12292 | |
247f5006 | 12293 | |
21d1c967 GD |
12294 | if test "x$TIFF_LINK" = "x" ; then |
12295 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
a0b9e27f | 12296 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } |
90dd450c | 12297 | else |
a0b9e27f | 12298 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
21d1c967 | 12299 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 12300 | fi |
d8356fa3 | 12301 | else |
21d1c967 | 12302 | wxUSE_LIBTIFF=sys |
d8356fa3 | 12303 | fi |
21d1c967 | 12304 | fi |
d8356fa3 | 12305 | |
21d1c967 GD |
12306 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
12307 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 12308 | fi |
21d1c967 | 12309 | fi |
10f2d63a | 12310 | |
8284b0c5 | 12311 | |
21d1c967 | 12312 | AFMINSTALL= |
2b5f62a0 | 12313 | WIN32INSTALL= |
90dd450c | 12314 | |
21d1c967 GD |
12315 | TOOLKIT= |
12316 | TOOLKIT_INCLUDE= | |
12317 | WIDGET_SET= | |
12318 | ||
12319 | if test "$USE_WIN32" = 1 ; then | |
a0b9e27f | 12320 | for ac_hdr in w32api.h |
21d1c967 | 12321 | do |
a0b9e27f MB |
12322 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12323 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9b4d9d56 | 12324 | echo "configure:12325: checking for $ac_hdr" >&5 |
a0b9e27f MB |
12325 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12326 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12327 | else | |
12328 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 12329 | #line 12330 "configure" |
247f5006 | 12330 | #include "confdefs.h" |
a0b9e27f MB |
12331 | #include <$ac_hdr> |
12332 | EOF | |
12333 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 12334 | { (eval echo configure:12335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12335 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12336 | if test -z "$ac_err"; then | |
12337 | rm -rf conftest* | |
12338 | eval "ac_cv_header_$ac_safe=yes" | |
12339 | else | |
12340 | echo "$ac_err" >&5 | |
12341 | echo "configure: failed program was:" >&5 | |
f79bd02d | 12342 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12343 | rm -rf conftest* |
12344 | eval "ac_cv_header_$ac_safe=no" | |
f79bd02d | 12345 | fi |
a0b9e27f | 12346 | rm -f conftest* |
21d1c967 | 12347 | fi |
a0b9e27f MB |
12348 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12349 | echo "$ac_t""yes" 1>&6 | |
12350 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12351 | cat >> confdefs.h <<EOF | |
12352 | #define $ac_tr_hdr 1 | |
12353 | EOF | |
12354 | ||
12355 | else | |
12356 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
12357 | fi |
12358 | done | |
f79bd02d | 12359 | |
a0b9e27f MB |
12360 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
12361 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
9b4d9d56 | 12362 | echo "configure:12363: checking for windows.h" >&5 |
a0b9e27f MB |
12363 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12364 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12365 | else |
a0b9e27f | 12366 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 12367 | #line 12368 "configure" |
247f5006 VZ |
12368 | #include "confdefs.h" |
12369 | #include <windows.h> | |
a0b9e27f MB |
12370 | EOF |
12371 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 12372 | { (eval echo configure:12373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12373 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12374 | if test -z "$ac_err"; then | |
12375 | rm -rf conftest* | |
12376 | eval "ac_cv_header_$ac_safe=yes" | |
12377 | else | |
12378 | echo "$ac_err" >&5 | |
12379 | echo "configure: failed program was:" >&5 | |
90dd450c | 12380 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12381 | rm -rf conftest* |
12382 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 12383 | fi |
a0b9e27f | 12384 | rm -f conftest* |
90dd450c | 12385 | fi |
a0b9e27f MB |
12386 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12387 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 12388 | : |
90dd450c | 12389 | else |
a0b9e27f | 12390 | echo "$ac_t""no" 1>&6 |
21d1c967 | 12391 | |
a0b9e27f MB |
12392 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
12393 | ||
5c6fa7d2 | 12394 | fi |
7b4a847f | 12395 | |
5c6fa7d2 | 12396 | |
a0b9e27f | 12397 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
9b4d9d56 | 12398 | echo "configure:12399: checking if w32api has good enough MSIE support" >&5 |
a0b9e27f MB |
12399 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
12400 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 12401 | else |
a0b9e27f MB |
12402 | |
12403 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 12404 | #line 12405 "configure" |
f79bd02d | 12405 | #include "confdefs.h" |
21d1c967 | 12406 | #include <w32api.h> |
a0b9e27f | 12407 | int main() { |
f79bd02d | 12408 | |
21d1c967 GD |
12409 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
12410 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
12411 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
12412 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
12413 | ||
12414 | #if !wxCHECK_W32API_VERSION(1,1) | |
12415 | #error You need w32api 1.1 or newer | |
12416 | #endif | |
a0b9e27f MB |
12417 | |
12418 | ; return 0; } | |
12419 | EOF | |
9b4d9d56 | 12420 | if { (eval echo configure:12421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
12421 | rm -rf conftest* |
12422 | ||
21d1c967 | 12423 | wx_cv_w32api_win32_ie=yes |
a0b9e27f | 12424 | |
f79bd02d | 12425 | else |
a0b9e27f MB |
12426 | echo "configure: failed program was:" >&5 |
12427 | cat conftest.$ac_ext >&5 | |
12428 | rm -rf conftest* | |
12429 | ||
21d1c967 | 12430 | wx_cv_w32api_win32_ie=no |
a0b9e27f | 12431 | |
5c6fa7d2 | 12432 | fi |
a0b9e27f MB |
12433 | rm -f conftest* |
12434 | ||
247f5006 | 12435 | fi |
a0b9e27f MB |
12436 | |
12437 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 | |
21d1c967 GD |
12438 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then |
12439 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
12440 | fi | |
f79bd02d | 12441 | |
21d1c967 GD |
12442 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
12443 | ||
12444 | case "${host}" in | |
12445 | *-*-cygwin* ) | |
12446 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
12447 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 12448 | esac |
f79bd02d | 12449 | |
21d1c967 GD |
12450 | if test "$wxUSE_ODBC" = "yes" ; then |
12451 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
12452 | fi | |
f79bd02d | 12453 | |
21d1c967 GD |
12454 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
12455 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
12456 | |
12457 | WIN32INSTALL=win32install | |
f79bd02d | 12458 | fi |
f79bd02d | 12459 | |
b2fee376 | 12460 | if test "$USE_DARWIN" = 1; then |
50bcbd3d | 12461 | if test "$wxUSE_PRECOMP" = "yes"; then |
b2fee376 GD |
12462 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
12463 | else | |
12464 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
12465 | fi | |
12466 | fi | |
12467 | ||
21d1c967 GD |
12468 | if test "$wxUSE_GUI" = "yes"; then |
12469 | USE_GUI=1 | |
f79bd02d | 12470 | |
21d1c967 | 12471 | GUI_TK_LIBRARY= |
f79bd02d | 12472 | |
21d1c967 GD |
12473 | WXGTK12= |
12474 | WXGTK127= | |
12475 | WXGTK20= | |
f79bd02d | 12476 | |
21d1c967 GD |
12477 | if test "$wxUSE_MSW" = 1 ; then |
12478 | TOOLKIT=MSW | |
12479 | GUIDIST=MSW_DIST | |
f79bd02d | 12480 | |
89e6bf6d | 12481 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" |
f79bd02d JS |
12482 | fi |
12483 | ||
21d1c967 | 12484 | if test "$wxUSE_GTK" = 1; then |
a0b9e27f | 12485 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
9b4d9d56 | 12486 | echo "configure:12487: checking for GTK+ version" >&5 |
21d1c967 GD |
12487 | |
12488 | gtk_version_cached=1 | |
a0b9e27f MB |
12489 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then |
12490 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f79bd02d | 12491 | else |
a0b9e27f | 12492 | |
21d1c967 | 12493 | gtk_version_cached=0 |
a0b9e27f | 12494 | echo "$ac_t""" 1>&6 |
f79bd02d | 12495 | |
21d1c967 GD |
12496 | GTK_MODULES= |
12497 | if test "$wxUSE_THREADS" = "yes"; then | |
12498 | GTK_MODULES=gthread | |
12499 | fi | |
f79bd02d | 12500 | |
2b5f62a0 | 12501 | wx_cv_lib_gtk= |
21d1c967 GD |
12502 | if test "x$wxUSE_GTK2" = "xyes"; then |
12503 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12504 | if test "${enable_gtktest+set}" = set; then | |
12505 | enableval="$enable_gtktest" | |
a0b9e27f | 12506 | : |
f79bd02d | 12507 | else |
21d1c967 | 12508 | enable_gtktest=yes |
a0b9e27f MB |
12509 | fi |
12510 | ||
f79bd02d | 12511 | |
21d1c967 GD |
12512 | pkg_config_args=gtk+-2.0 |
12513 | for module in . $GTK_MODULES | |
12514 | do | |
12515 | case "$module" in | |
a0b9e27f | 12516 | gthread) |
21d1c967 GD |
12517 | pkg_config_args="$pkg_config_args gthread-2.0" |
12518 | ;; | |
12519 | esac | |
12520 | done | |
12521 | ||
12522 | no_gtk="" | |
f79bd02d | 12523 | |
21d1c967 GD |
12524 | # Extract the first word of "pkg-config", so it can be a program name with args. |
12525 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 12526 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9b4d9d56 | 12527 | echo "configure:12528: checking for $ac_word" >&5 |
a0b9e27f MB |
12528 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
12529 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12530 | else |
a0b9e27f MB |
12531 | case "$PKG_CONFIG" in |
12532 | /*) | |
21d1c967 GD |
12533 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12534 | ;; | |
a0b9e27f MB |
12535 | ?:/*) |
12536 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
12537 | ;; | |
21d1c967 | 12538 | *) |
a0b9e27f MB |
12539 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12540 | ac_dummy="$PATH" | |
12541 | for ac_dir in $ac_dummy; do | |
12542 | test -z "$ac_dir" && ac_dir=. | |
12543 | if test -f $ac_dir/$ac_word; then | |
12544 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
12545 | break | |
12546 | fi | |
12547 | done | |
12548 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12549 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12550 | ;; | |
12551 | esac | |
f79bd02d | 12552 | fi |
a0b9e27f | 12553 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
21d1c967 | 12554 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 12555 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f79bd02d | 12556 | else |
a0b9e27f | 12557 | echo "$ac_t""no" 1>&6 |
f79bd02d JS |
12558 | fi |
12559 | ||
8284b0c5 | 12560 | |
21d1c967 GD |
12561 | if test x$PKG_CONFIG != xno ; then |
12562 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
12563 | : | |
12564 | else | |
12565 | echo *** pkg-config too old; version 0.7 or better required. | |
12566 | no_gtk=yes | |
12567 | PKG_CONFIG=no | |
12568 | fi | |
12569 | else | |
12570 | no_gtk=yes | |
12571 | fi | |
f79bd02d | 12572 | |
21d1c967 | 12573 | min_gtk_version=2.0.0 |
a0b9e27f | 12574 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 |
9b4d9d56 | 12575 | echo "configure:12576: checking for GTK+ - version >= $min_gtk_version" >&5 |
f79bd02d | 12576 | |
21d1c967 GD |
12577 | if test x$PKG_CONFIG != xno ; then |
12578 | ## don't try to run the test against uninstalled libtool libs | |
12579 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
12580 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
12581 | enable_gtktest=no | |
12582 | fi | |
f79bd02d | 12583 | |
21d1c967 GD |
12584 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
12585 | : | |
12586 | else | |
12587 | no_gtk=yes | |
12588 | fi | |
12589 | fi | |
f79bd02d | 12590 | |
21d1c967 GD |
12591 | if test x"$no_gtk" = x ; then |
12592 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
12593 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
12594 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12595 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12596 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12597 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12598 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12599 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12600 | if test "x$enable_gtktest" = "xyes" ; then | |
12601 | ac_save_CFLAGS="$CFLAGS" | |
12602 | ac_save_LIBS="$LIBS" | |
12603 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12604 | LIBS="$GTK_LIBS $LIBS" | |
12605 | rm -f conf.gtktest | |
12606 | if test "$cross_compiling" = yes; then | |
12607 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12608 | else |
a0b9e27f | 12609 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 12610 | #line 12611 "configure" |
f79bd02d | 12611 | #include "confdefs.h" |
f79bd02d | 12612 | |
21d1c967 GD |
12613 | #include <gtk/gtk.h> |
12614 | #include <stdio.h> | |
12615 | #include <stdlib.h> | |
f79bd02d | 12616 | |
a0b9e27f | 12617 | int |
21d1c967 GD |
12618 | main () |
12619 | { | |
12620 | int major, minor, micro; | |
12621 | char *tmp_version; | |
f79bd02d | 12622 | |
21d1c967 | 12623 | system ("touch conf.gtktest"); |
f79bd02d | 12624 | |
21d1c967 GD |
12625 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
12626 | tmp_version = g_strdup("$min_gtk_version"); | |
12627 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12628 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12629 | exit(1); | |
12630 | } | |
f79bd02d | 12631 | |
21d1c967 GD |
12632 | if ((gtk_major_version != $gtk_config_major_version) || |
12633 | (gtk_minor_version != $gtk_config_minor_version) || | |
12634 | (gtk_micro_version != $gtk_config_micro_version)) | |
12635 | { | |
a0b9e27f | 12636 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12637 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12638 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12639 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
12640 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12641 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12642 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12643 | printf("*** required on your system.\n"); | |
12644 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
12645 | printf("*** to point to the correct configuration files\n"); | |
a0b9e27f | 12646 | } |
21d1c967 GD |
12647 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
12648 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12649 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12650 | { | |
12651 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12652 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12653 | printf("*** library (version %d.%d.%d)\n", | |
12654 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12655 | } | |
12656 | else | |
12657 | { | |
12658 | if ((gtk_major_version > major) || | |
12659 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12660 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12661 | { | |
12662 | return 0; | |
12663 | } | |
12664 | else | |
12665 | { | |
12666 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12667 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12668 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12669 | major, minor, micro); | |
12670 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12671 | printf("***\n"); | |
12672 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12673 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
12674 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12675 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
12676 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
12677 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12678 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12679 | } | |
12680 | } | |
12681 | return 1; | |
12682 | } | |
f79bd02d | 12683 | |
a0b9e27f | 12684 | EOF |
9b4d9d56 | 12685 | if { (eval echo configure:12686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12686 | then |
21d1c967 | 12687 | : |
f79bd02d | 12688 | else |
a0b9e27f MB |
12689 | echo "configure: failed program was:" >&5 |
12690 | cat conftest.$ac_ext >&5 | |
12691 | rm -fr conftest* | |
12692 | no_gtk=yes | |
f79bd02d | 12693 | fi |
a0b9e27f | 12694 | rm -fr conftest* |
f79bd02d | 12695 | fi |
a0b9e27f | 12696 | |
21d1c967 GD |
12697 | CFLAGS="$ac_save_CFLAGS" |
12698 | LIBS="$ac_save_LIBS" | |
12699 | fi | |
12700 | fi | |
12701 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12702 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
12703 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 12704 | else |
a0b9e27f | 12705 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12706 | if test "$PKG_CONFIG" = "no" ; then |
12707 | echo "*** A new enough version of pkg-config was not found." | |
12708 | echo "*** See http://pkgconfig.sourceforge.net" | |
12709 | else | |
12710 | if test -f conf.gtktest ; then | |
12711 | : | |
12712 | else | |
12713 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
12714 | ac_save_CFLAGS="$CFLAGS" |
12715 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
12716 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
12717 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12718 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 12719 | #line 12720 "configure" |
f79bd02d | 12720 | #include "confdefs.h" |
21d1c967 GD |
12721 | |
12722 | #include <gtk/gtk.h> | |
12723 | #include <stdio.h> | |
f79bd02d | 12724 | |
a0b9e27f MB |
12725 | int main() { |
12726 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12727 | ; return 0; } | |
12728 | EOF | |
9b4d9d56 | 12729 | if { (eval echo configure:12730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12730 | rm -rf conftest* |
21d1c967 GD |
12731 | echo "*** The test program compiled, but did not run. This usually means" |
12732 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
12733 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
12734 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12735 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12736 | echo "*** is required on your system" | |
12737 | echo "***" | |
12738 | echo "*** If you have an old version installed, it is best to remove it, although" | |
a0b9e27f | 12739 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 12740 | else |
a0b9e27f MB |
12741 | echo "configure: failed program was:" >&5 |
12742 | cat conftest.$ac_ext >&5 | |
12743 | rm -rf conftest* | |
12744 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 12745 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 12746 | fi |
a0b9e27f | 12747 | rm -f conftest* |
21d1c967 GD |
12748 | CFLAGS="$ac_save_CFLAGS" |
12749 | LIBS="$ac_save_LIBS" | |
12750 | fi | |
12751 | fi | |
12752 | GTK_CFLAGS="" | |
12753 | GTK_LIBS="" | |
12754 | : | |
12755 | fi | |
a0b9e27f MB |
12756 | |
12757 | ||
21d1c967 | 12758 | rm -f conf.gtktest |
f79bd02d | 12759 | |
2b5f62a0 | 12760 | else |
a0b9e27f | 12761 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12762 | if test "${with_gtk_prefix+set}" = set; then |
12763 | withval="$with_gtk_prefix" | |
12764 | gtk_config_prefix="$withval" | |
12765 | else | |
12766 | gtk_config_prefix="" | |
a0b9e27f | 12767 | fi |
f79bd02d | 12768 | |
21d1c967 GD |
12769 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12770 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12771 | withval="$with_gtk_exec_prefix" | |
12772 | gtk_config_exec_prefix="$withval" | |
12773 | else | |
12774 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12775 | fi |
12776 | ||
21d1c967 GD |
12777 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12778 | if test "${enable_gtktest+set}" = set; then | |
12779 | enableval="$enable_gtktest" | |
a0b9e27f | 12780 | : |
21d1c967 GD |
12781 | else |
12782 | enable_gtktest=yes | |
a0b9e27f MB |
12783 | fi |
12784 | ||
21d1c967 GD |
12785 | |
12786 | for module in . $GTK_MODULES | |
12787 | do | |
12788 | case "$module" in | |
a0b9e27f | 12789 | gthread) |
21d1c967 GD |
12790 | gtk_config_args="$gtk_config_args gthread" |
12791 | ;; | |
12792 | esac | |
12793 | done | |
12794 | ||
12795 | if test x$gtk_config_exec_prefix != x ; then | |
12796 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12797 | if test x${GTK_CONFIG+set} != xset ; then | |
12798 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12799 | fi | |
12800 | fi | |
12801 | if test x$gtk_config_prefix != x ; then | |
12802 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12803 | if test x${GTK_CONFIG+set} != xset ; then | |
12804 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12805 | fi | |
12806 | fi | |
12807 | ||
12808 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12809 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12810 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9b4d9d56 | 12811 | echo "configure:12812: checking for $ac_word" >&5 |
a0b9e27f MB |
12812 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12813 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12814 | else |
a0b9e27f MB |
12815 | case "$GTK_CONFIG" in |
12816 | /*) | |
21d1c967 GD |
12817 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12818 | ;; | |
a0b9e27f MB |
12819 | ?:/*) |
12820 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12821 | ;; | |
21d1c967 | 12822 | *) |
a0b9e27f MB |
12823 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12824 | ac_dummy="$PATH" | |
12825 | for ac_dir in $ac_dummy; do | |
12826 | test -z "$ac_dir" && ac_dir=. | |
12827 | if test -f $ac_dir/$ac_word; then | |
12828 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12829 | break | |
12830 | fi | |
12831 | done | |
12832 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12833 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12834 | ;; | |
12835 | esac | |
12836 | fi | |
a0b9e27f | 12837 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12838 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12839 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12840 | else |
a0b9e27f | 12841 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12842 | fi |
12843 | ||
12844 | min_gtk_version=1.2.7 | |
a0b9e27f | 12845 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
9b4d9d56 | 12846 | echo "configure:12847: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12847 | no_gtk="" |
12848 | if test "$GTK_CONFIG" = "no" ; then | |
12849 | no_gtk=yes | |
12850 | else | |
12851 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12852 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12853 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12854 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12855 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12856 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12857 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12858 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12859 | if test "x$enable_gtktest" = "xyes" ; then | |
12860 | ac_save_CFLAGS="$CFLAGS" | |
12861 | ac_save_LIBS="$LIBS" | |
12862 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12863 | LIBS="$GTK_LIBS $LIBS" | |
12864 | rm -f conf.gtktest | |
12865 | if test "$cross_compiling" = yes; then | |
12866 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12867 | else |
a0b9e27f | 12868 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 12869 | #line 12870 "configure" |
f79bd02d JS |
12870 | #include "confdefs.h" |
12871 | ||
21d1c967 GD |
12872 | #include <gtk/gtk.h> |
12873 | #include <stdio.h> | |
12874 | #include <stdlib.h> | |
f79bd02d | 12875 | |
a0b9e27f | 12876 | int |
21d1c967 GD |
12877 | main () |
12878 | { | |
12879 | int major, minor, micro; | |
12880 | char *tmp_version; | |
12881 | ||
12882 | system ("touch conf.gtktest"); | |
12883 | ||
12884 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12885 | tmp_version = g_strdup("$min_gtk_version"); | |
12886 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12887 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12888 | exit(1); | |
12889 | } | |
90dd450c | 12890 | |
21d1c967 GD |
12891 | if ((gtk_major_version != $gtk_config_major_version) || |
12892 | (gtk_minor_version != $gtk_config_minor_version) || | |
12893 | (gtk_micro_version != $gtk_config_micro_version)) | |
12894 | { | |
a0b9e27f | 12895 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12896 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12897 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12898 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12899 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12900 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12901 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12902 | printf("*** required on your system.\n"); | |
12903 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12904 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12905 | printf("*** before re-running configure\n"); | |
a0b9e27f | 12906 | } |
21d1c967 GD |
12907 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12908 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12909 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12910 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12911 | { | |
12912 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12913 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12914 | printf("*** library (version %d.%d.%d)\n", | |
12915 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12916 | } | |
12917 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12918 | else | |
12919 | { | |
12920 | if ((gtk_major_version > major) || | |
12921 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12922 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12923 | { | |
12924 | return 0; | |
12925 | } | |
12926 | else | |
12927 | { | |
12928 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12929 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12930 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12931 | major, minor, micro); | |
12932 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12933 | printf("***\n"); | |
12934 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12935 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12936 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12937 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12938 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12939 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12940 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12941 | } | |
12942 | } | |
12943 | return 1; | |
12944 | } | |
12945 | ||
a0b9e27f | 12946 | EOF |
9b4d9d56 | 12947 | if { (eval echo configure:12948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12948 | then |
21d1c967 GD |
12949 | : |
12950 | else | |
a0b9e27f MB |
12951 | echo "configure: failed program was:" >&5 |
12952 | cat conftest.$ac_ext >&5 | |
12953 | rm -fr conftest* | |
12954 | no_gtk=yes | |
21d1c967 | 12955 | fi |
a0b9e27f | 12956 | rm -fr conftest* |
21d1c967 | 12957 | fi |
a0b9e27f | 12958 | |
21d1c967 GD |
12959 | CFLAGS="$ac_save_CFLAGS" |
12960 | LIBS="$ac_save_LIBS" | |
12961 | fi | |
12962 | fi | |
12963 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12964 | echo "$ac_t""yes" 1>&6 |
12965 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 12966 | else |
a0b9e27f | 12967 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12968 | if test "$GTK_CONFIG" = "no" ; then |
12969 | echo "*** The gtk-config script installed by GTK could not be found" | |
12970 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12971 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12972 | echo "*** full path to gtk-config." | |
12973 | else | |
12974 | if test -f conf.gtktest ; then | |
12975 | : | |
12976 | else | |
12977 | echo "*** Could not run GTK test program, checking why..." | |
12978 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12979 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12980 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 12981 | #line 12982 "configure" |
21d1c967 GD |
12982 | #include "confdefs.h" |
12983 | ||
12984 | #include <gtk/gtk.h> | |
12985 | #include <stdio.h> | |
12986 | ||
a0b9e27f MB |
12987 | int main() { |
12988 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12989 | ; return 0; } | |
12990 | EOF | |
9b4d9d56 | 12991 | if { (eval echo configure:12992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12992 | rm -rf conftest* |
21d1c967 GD |
12993 | echo "*** The test program compiled, but did not run. This usually means" |
12994 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12995 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12996 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12997 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12998 | echo "*** is required on your system" | |
12999 | echo "***" | |
13000 | echo "*** If you have an old version installed, it is best to remove it, although" | |
13001 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
13002 | echo "***" | |
13003 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
13004 | echo "*** came with the system with the command" | |
13005 | echo "***" | |
a0b9e27f | 13006 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 13007 | else |
a0b9e27f MB |
13008 | echo "configure: failed program was:" >&5 |
13009 | cat conftest.$ac_ext >&5 | |
13010 | rm -rf conftest* | |
13011 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
13012 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
13013 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 13014 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 13015 | fi |
a0b9e27f | 13016 | rm -f conftest* |
21d1c967 GD |
13017 | CFLAGS="$ac_save_CFLAGS" |
13018 | LIBS="$ac_save_LIBS" | |
13019 | fi | |
13020 | fi | |
13021 | GTK_CFLAGS="" | |
13022 | GTK_LIBS="" | |
13023 | : | |
13024 | fi | |
a0b9e27f MB |
13025 | |
13026 | ||
21d1c967 GD |
13027 | rm -f conf.gtktest |
13028 | ||
21d1c967 | 13029 | |
2b5f62a0 VZ |
13030 | if test -z "$wx_cv_lib_gtk"; then |
13031 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
13032 | if test "${with_gtk_prefix+set}" = set; then |
13033 | withval="$with_gtk_prefix" | |
13034 | gtk_config_prefix="$withval" | |
13035 | else | |
13036 | gtk_config_prefix="" | |
a0b9e27f | 13037 | fi |
f79bd02d | 13038 | |
21d1c967 GD |
13039 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
13040 | if test "${with_gtk_exec_prefix+set}" = set; then | |
13041 | withval="$with_gtk_exec_prefix" | |
13042 | gtk_config_exec_prefix="$withval" | |
13043 | else | |
13044 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
13045 | fi |
13046 | ||
21d1c967 GD |
13047 | # Check whether --enable-gtktest or --disable-gtktest was given. |
13048 | if test "${enable_gtktest+set}" = set; then | |
13049 | enableval="$enable_gtktest" | |
a0b9e27f | 13050 | : |
90dd450c | 13051 | else |
21d1c967 | 13052 | enable_gtktest=yes |
a0b9e27f MB |
13053 | fi |
13054 | ||
21d1c967 GD |
13055 | |
13056 | for module in . $GTK_MODULES | |
13057 | do | |
13058 | case "$module" in | |
a0b9e27f | 13059 | gthread) |
21d1c967 GD |
13060 | gtk_config_args="$gtk_config_args gthread" |
13061 | ;; | |
13062 | esac | |
13063 | done | |
13064 | ||
13065 | if test x$gtk_config_exec_prefix != x ; then | |
13066 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
13067 | if test x${GTK_CONFIG+set} != xset ; then | |
13068 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
13069 | fi | |
13070 | fi | |
13071 | if test x$gtk_config_prefix != x ; then | |
13072 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
13073 | if test x${GTK_CONFIG+set} != xset ; then | |
13074 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
13075 | fi | |
13076 | fi | |
13077 | ||
13078 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
13079 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 13080 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9b4d9d56 | 13081 | echo "configure:13082: checking for $ac_word" >&5 |
a0b9e27f MB |
13082 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
13083 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13084 | else |
a0b9e27f MB |
13085 | case "$GTK_CONFIG" in |
13086 | /*) | |
21d1c967 GD |
13087 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
13088 | ;; | |
a0b9e27f MB |
13089 | ?:/*) |
13090 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
13091 | ;; | |
21d1c967 | 13092 | *) |
a0b9e27f MB |
13093 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
13094 | ac_dummy="$PATH" | |
13095 | for ac_dir in $ac_dummy; do | |
13096 | test -z "$ac_dir" && ac_dir=. | |
13097 | if test -f $ac_dir/$ac_word; then | |
13098 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
13099 | break | |
13100 | fi | |
13101 | done | |
13102 | IFS="$ac_save_ifs" | |
21d1c967 GD |
13103 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
13104 | ;; | |
13105 | esac | |
13106 | fi | |
a0b9e27f | 13107 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 13108 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 13109 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 13110 | else |
a0b9e27f | 13111 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
13112 | fi |
13113 | ||
13114 | min_gtk_version=1.2.3 | |
a0b9e27f | 13115 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
9b4d9d56 | 13116 | echo "configure:13117: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
13117 | no_gtk="" |
13118 | if test "$GTK_CONFIG" = "no" ; then | |
13119 | no_gtk=yes | |
13120 | else | |
13121 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
13122 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
13123 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
13124 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
13125 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
13126 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
13127 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
13128 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
13129 | if test "x$enable_gtktest" = "xyes" ; then | |
13130 | ac_save_CFLAGS="$CFLAGS" | |
13131 | ac_save_LIBS="$LIBS" | |
13132 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
13133 | LIBS="$GTK_LIBS $LIBS" | |
13134 | rm -f conf.gtktest | |
13135 | if test "$cross_compiling" = yes; then | |
13136 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
13137 | else | |
a0b9e27f | 13138 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 13139 | #line 13140 "configure" |
f79bd02d | 13140 | #include "confdefs.h" |
21d1c967 GD |
13141 | |
13142 | #include <gtk/gtk.h> | |
13143 | #include <stdio.h> | |
13144 | #include <stdlib.h> | |
13145 | ||
a0b9e27f | 13146 | int |
21d1c967 GD |
13147 | main () |
13148 | { | |
13149 | int major, minor, micro; | |
13150 | char *tmp_version; | |
13151 | ||
13152 | system ("touch conf.gtktest"); | |
13153 | ||
13154 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
13155 | tmp_version = g_strdup("$min_gtk_version"); | |
13156 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
13157 | printf("%s, bad version string\n", "$min_gtk_version"); | |
13158 | exit(1); | |
13159 | } | |
13160 | ||
13161 | if ((gtk_major_version != $gtk_config_major_version) || | |
13162 | (gtk_minor_version != $gtk_config_minor_version) || | |
13163 | (gtk_micro_version != $gtk_config_micro_version)) | |
13164 | { | |
a0b9e27f | 13165 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
13166 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
13167 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13168 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
13169 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
13170 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
13171 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
13172 | printf("*** required on your system.\n"); | |
13173 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
13174 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
13175 | printf("*** before re-running configure\n"); | |
a0b9e27f | 13176 | } |
21d1c967 GD |
13177 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
13178 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
13179 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
13180 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
13181 | { | |
13182 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
13183 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
13184 | printf("*** library (version %d.%d.%d)\n", | |
13185 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13186 | } | |
13187 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
13188 | else | |
13189 | { | |
13190 | if ((gtk_major_version > major) || | |
13191 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
13192 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
13193 | { | |
13194 | return 0; | |
13195 | } | |
13196 | else | |
13197 | { | |
13198 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
13199 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13200 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
13201 | major, minor, micro); | |
13202 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
13203 | printf("***\n"); | |
13204 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
13205 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
13206 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
13207 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
13208 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
13209 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
13210 | printf("*** so that the correct libraries are found at run-time))\n"); | |
13211 | } | |
13212 | } | |
13213 | return 1; | |
13214 | } | |
13215 | ||
a0b9e27f | 13216 | EOF |
9b4d9d56 | 13217 | if { (eval echo configure:13218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 13218 | then |
21d1c967 GD |
13219 | : |
13220 | else | |
a0b9e27f MB |
13221 | echo "configure: failed program was:" >&5 |
13222 | cat conftest.$ac_ext >&5 | |
13223 | rm -fr conftest* | |
13224 | no_gtk=yes | |
21d1c967 | 13225 | fi |
a0b9e27f | 13226 | rm -fr conftest* |
21d1c967 | 13227 | fi |
a0b9e27f | 13228 | |
21d1c967 GD |
13229 | CFLAGS="$ac_save_CFLAGS" |
13230 | LIBS="$ac_save_LIBS" | |
13231 | fi | |
13232 | fi | |
13233 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
13234 | echo "$ac_t""yes" 1>&6 |
13235 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 13236 | else |
a0b9e27f | 13237 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
13238 | if test "$GTK_CONFIG" = "no" ; then |
13239 | echo "*** The gtk-config script installed by GTK could not be found" | |
13240 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
13241 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
13242 | echo "*** full path to gtk-config." | |
13243 | else | |
13244 | if test -f conf.gtktest ; then | |
13245 | : | |
13246 | else | |
13247 | echo "*** Could not run GTK test program, checking why..." | |
13248 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
13249 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 13250 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 13251 | #line 13252 "configure" |
21d1c967 GD |
13252 | #include "confdefs.h" |
13253 | ||
13254 | #include <gtk/gtk.h> | |
13255 | #include <stdio.h> | |
f79bd02d | 13256 | |
a0b9e27f MB |
13257 | int main() { |
13258 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
13259 | ; return 0; } | |
13260 | EOF | |
9b4d9d56 | 13261 | if { (eval echo configure:13262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13262 | rm -rf conftest* |
21d1c967 GD |
13263 | echo "*** The test program compiled, but did not run. This usually means" |
13264 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
13265 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
13266 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
13267 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
13268 | echo "*** is required on your system" | |
13269 | echo "***" | |
13270 | echo "*** If you have an old version installed, it is best to remove it, although" | |
13271 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
13272 | echo "***" | |
13273 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
13274 | echo "*** came with the system with the command" | |
13275 | echo "***" | |
a0b9e27f | 13276 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 13277 | else |
a0b9e27f MB |
13278 | echo "configure: failed program was:" >&5 |
13279 | cat conftest.$ac_ext >&5 | |
13280 | rm -rf conftest* | |
13281 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
13282 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
13283 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 13284 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 13285 | fi |
a0b9e27f | 13286 | rm -f conftest* |
21d1c967 GD |
13287 | CFLAGS="$ac_save_CFLAGS" |
13288 | LIBS="$ac_save_LIBS" | |
13289 | fi | |
13290 | fi | |
13291 | GTK_CFLAGS="" | |
13292 | GTK_LIBS="" | |
13293 | : | |
13294 | fi | |
a0b9e27f MB |
13295 | |
13296 | ||
21d1c967 | 13297 | rm -f conf.gtktest |
f79bd02d | 13298 | |
2b5f62a0 | 13299 | fi |
21d1c967 GD |
13300 | fi |
13301 | ||
13302 | if test -z "$wx_cv_lib_gtk"; then | |
13303 | wx_cv_lib_gtk=none | |
13304 | else | |
13305 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
13306 | wx_cv_libs_gtk=$GTK_LIBS | |
13307 | fi | |
a0b9e27f MB |
13308 | |
13309 | ||
5c6fa7d2 | 13310 | fi |
52127426 | 13311 | |
8284b0c5 | 13312 | |
21d1c967 | 13313 | if test "$gtk_version_cached" = 1; then |
a0b9e27f | 13314 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 |
21d1c967 GD |
13315 | fi |
13316 | ||
13317 | case "$wx_cv_lib_gtk" in | |
13318 | 2.0) WXGTK20=1 | |
2b5f62a0 | 13319 | TOOLKIT_VERSION=2 |
21d1c967 GD |
13320 | ;; |
13321 | 1.2.7) WXGTK127=1 | |
13322 | WXGTK12=1 | |
13323 | ;; | |
13324 | 1.2.3) WXGTK12=1 | |
13325 | ;; | |
a0b9e27f | 13326 | *) { echo "configure: error: |
247f5006 VZ |
13327 | Please check that gtk-config is in path, the directory |
13328 | where GTK+ libraries are installed (returned by | |
13329 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
13330 | equivalent variable and GTK+ is version 1.2.3 or above. | |
a0b9e27f | 13331 | " 1>&2; exit 1; } |
21d1c967 GD |
13332 | ;; |
13333 | esac | |
13334 | ||
b13cd66e VZ |
13335 | if test "$WXGTK20" = 1; then |
13336 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 13337 | |
f09359cf VS |
13338 | succeeded=no |
13339 | ||
13340 | if test -z "$PKG_CONFIG"; then | |
13341 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
13342 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 13343 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9b4d9d56 | 13344 | echo "configure:13345: checking for $ac_word" >&5 |
a0b9e27f MB |
13345 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
13346 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf | 13347 | else |
a0b9e27f MB |
13348 | case "$PKG_CONFIG" in |
13349 | /*) | |
f09359cf VS |
13350 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
13351 | ;; | |
a0b9e27f MB |
13352 | ?:/*) |
13353 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
13354 | ;; | |
f09359cf | 13355 | *) |
a0b9e27f MB |
13356 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
13357 | ac_dummy="$PATH" | |
13358 | for ac_dir in $ac_dummy; do | |
13359 | test -z "$ac_dir" && ac_dir=. | |
13360 | if test -f $ac_dir/$ac_word; then | |
13361 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
13362 | break | |
13363 | fi | |
13364 | done | |
13365 | IFS="$ac_save_ifs" | |
f09359cf VS |
13366 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
13367 | ;; | |
13368 | esac | |
13369 | fi | |
a0b9e27f | 13370 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
f09359cf | 13371 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 13372 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f09359cf | 13373 | else |
a0b9e27f | 13374 | echo "$ac_t""no" 1>&6 |
f09359cf VS |
13375 | fi |
13376 | ||
13377 | fi | |
13378 | ||
13379 | if test "$PKG_CONFIG" = "no" ; then | |
13380 | echo "*** The pkg-config script could not be found. Make sure it is" | |
13381 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
13382 | echo "*** to the full path to pkg-config." | |
13383 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
13384 | else | |
13385 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
13386 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
a0b9e27f | 13387 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 |
9b4d9d56 | 13388 | echo "configure:13389: checking for pangoft2" >&5 |
f09359cf VS |
13389 | |
13390 | if $PKG_CONFIG --exists "pangoft2" ; then | |
a0b9e27f | 13391 | echo "$ac_t""yes" 1>&6 |
f09359cf VS |
13392 | succeeded=yes |
13393 | ||
a0b9e27f | 13394 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 |
9b4d9d56 | 13395 | echo "configure:13396: checking PANGOFT2_CFLAGS" >&5 |
f09359cf | 13396 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
a0b9e27f | 13397 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 |
f09359cf | 13398 | |
a0b9e27f | 13399 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 |
9b4d9d56 | 13400 | echo "configure:13401: checking PANGOFT2_LIBS" >&5 |
f09359cf | 13401 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
a0b9e27f | 13402 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 |
f09359cf VS |
13403 | else |
13404 | PANGOFT2_CFLAGS="" | |
13405 | PANGOFT2_LIBS="" | |
a0b9e27f | 13406 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
13407 | ## do set a variable so people can do so. |
13408 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
a0b9e27f | 13409 | |
f09359cf VS |
13410 | fi |
13411 | ||
a0b9e27f MB |
13412 | |
13413 | ||
f09359cf VS |
13414 | else |
13415 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
13416 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
13417 | fi | |
13418 | fi | |
13419 | ||
13420 | if test $succeeded = yes; then | |
a0b9e27f | 13421 | |
b13cd66e VZ |
13422 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
13423 | LIBS="$LIBS $PANGOFT2_LIBS" | |
a0b9e27f | 13424 | |
f09359cf | 13425 | else |
a0b9e27f MB |
13426 | |
13427 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
b13cd66e | 13428 | wxUSE_PRINTING_ARCHITECTURE="no" |
a0b9e27f MB |
13429 | |
13430 | ||
f09359cf VS |
13431 | fi |
13432 | ||
b13cd66e | 13433 | fi |
2b5f62a0 VZ |
13434 | else |
13435 | if test "$wxUSE_UNICODE" = "yes"; then | |
13436 | echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2 | |
13437 | wxUSE_UNICODE=no | |
13438 | fi | |
13439 | fi | |
13440 | ||
13441 | if test "$USE_DARWIN" != 1; then | |
13442 | for ac_func in poll | |
13443 | do | |
13444 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
9b4d9d56 | 13445 | echo "configure:13446: checking for $ac_func" >&5 |
2b5f62a0 VZ |
13446 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13447 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13448 | else | |
13449 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 13450 | #line 13451 "configure" |
2b5f62a0 VZ |
13451 | #include "confdefs.h" |
13452 | /* System header to define __stub macros and hopefully few prototypes, | |
13453 | which can conflict with char $ac_func(); below. */ | |
13454 | #include <assert.h> | |
13455 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13456 | /* We use char because int might match the return type of a gcc2 | |
13457 | builtin and then its argument prototype would still apply. */ | |
13458 | char $ac_func(); | |
13459 | ||
13460 | int main() { | |
13461 | ||
13462 | /* The GNU C library defines this for functions which it implements | |
13463 | to always fail with ENOSYS. Some functions are actually named | |
13464 | something starting with __ and the normal name is an alias. */ | |
13465 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13466 | choke me | |
13467 | #else | |
13468 | $ac_func(); | |
13469 | #endif | |
13470 | ||
13471 | ; return 0; } | |
13472 | EOF | |
9b4d9d56 | 13473 | if { (eval echo configure:13474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
13474 | rm -rf conftest* |
13475 | eval "ac_cv_func_$ac_func=yes" | |
13476 | else | |
13477 | echo "configure: failed program was:" >&5 | |
13478 | cat conftest.$ac_ext >&5 | |
13479 | rm -rf conftest* | |
13480 | eval "ac_cv_func_$ac_func=no" | |
13481 | fi | |
13482 | rm -f conftest* | |
13483 | fi | |
13484 | ||
13485 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13486 | echo "$ac_t""yes" 1>&6 | |
13487 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13488 | cat >> confdefs.h <<EOF | |
13489 | #define $ac_tr_func 1 | |
13490 | EOF | |
13491 | ||
13492 | else | |
13493 | echo "$ac_t""no" 1>&6 | |
13494 | fi | |
13495 | done | |
13496 | ||
f09359cf VS |
13497 | fi |
13498 | ||
21d1c967 GD |
13499 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
13500 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
13501 | ||
13502 | AFMINSTALL=afminstall | |
13503 | TOOLKIT=GTK | |
13504 | GUIDIST=GTK_DIST | |
13505 | ||
a0b9e27f | 13506 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
9b4d9d56 | 13507 | echo "configure:13508: checking for gdk_im_open in -lgdk" >&5 |
a0b9e27f MB |
13508 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
13509 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13510 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13511 | else |
a0b9e27f | 13512 | ac_save_LIBS="$LIBS" |
21d1c967 | 13513 | LIBS="-lgdk $LIBS" |
a0b9e27f | 13514 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 13515 | #line 13516 "configure" |
90dd450c | 13516 | #include "confdefs.h" |
5c6fa7d2 | 13517 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 13518 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13519 | builtin and then its argument prototype would still apply. */ |
13520 | char gdk_im_open(); | |
13521 | ||
13522 | int main() { | |
13523 | gdk_im_open() | |
13524 | ; return 0; } | |
13525 | EOF | |
9b4d9d56 | 13526 | if { (eval echo configure:13527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13527 | rm -rf conftest* |
13528 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13529 | else | |
13530 | echo "configure: failed program was:" >&5 | |
13531 | cat conftest.$ac_ext >&5 | |
13532 | rm -rf conftest* | |
13533 | eval "ac_cv_lib_$ac_lib_var=no" | |
13534 | fi | |
13535 | rm -f conftest* | |
13536 | LIBS="$ac_save_LIBS" | |
13537 | ||
13538 | fi | |
13539 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13540 | echo "$ac_t""yes" 1>&6 | |
13541 | cat >> confdefs.h <<\EOF | |
21d1c967 | 13542 | #define HAVE_XIM 1 |
a0b9e27f | 13543 | EOF |
21d1c967 | 13544 | |
a0b9e27f MB |
13545 | else |
13546 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13547 | fi |
1e6feb95 | 13548 | |
21d1c967 | 13549 | fi |
1e6feb95 | 13550 | |
21d1c967 | 13551 | if test "$wxUSE_MGL" = 1; then |
63a76696 | 13552 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
9b4d9d56 | 13553 | echo "configure:13554: checking for SciTech MGL library" >&5 |
21d1c967 | 13554 | if test "x$MGL_ROOT" = x ; then |
a0b9e27f MB |
13555 | echo "$ac_t""not found" 1>&6 |
13556 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
21d1c967 | 13557 | else |
a0b9e27f | 13558 | echo "$ac_t""$MGL_ROOT" 1>&6 |
21d1c967 GD |
13559 | fi |
13560 | ||
63a76696 | 13561 | echo $ac_n "checking for libmgl location""... $ac_c" 1>&6 |
9b4d9d56 | 13562 | echo "configure:13563: checking for libmgl location" >&5 |
21d1c967 GD |
13563 | case "${host}" in |
13564 | *-*-linux* ) | |
63a76696 VS |
13565 | if test "x$wxUSE_SHARED" = xyes ; then |
13566 | mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc" | |
13567 | else | |
13568 | mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so" | |
13569 | fi | |
21d1c967 GD |
13570 | ;; |
13571 | *-pc-msdosdjgpp ) | |
63a76696 | 13572 | mgl_os_candidates="dos32/dj2" |
21d1c967 GD |
13573 | ;; |
13574 | *) | |
a0b9e27f | 13575 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } |
21d1c967 | 13576 | esac |
1e6feb95 | 13577 | |
21d1c967 | 13578 | mgl_lib_type="" |
63a76696 VS |
13579 | mgl_os="" |
13580 | ||
13581 | for mgl_os_i in $mgl_os_candidates ; do | |
13582 | if test "x$mgl_os" = x ; then | |
13583 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
13584 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
13585 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
13586 | mgl_lib_type=debug | |
13587 | mgl_os=$mgl_os_i | |
13588 | fi | |
13589 | fi | |
13590 | if test "x$mgl_lib_type" = x ; then | |
13591 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
13592 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
13593 | mgl_lib_type=release | |
13594 | mgl_os=$mgl_os_i | |
13595 | fi | |
13596 | fi | |
21d1c967 | 13597 | fi |
63a76696 | 13598 | done |
2224580a | 13599 | |
63a76696 VS |
13600 | if test "x$mgl_os" = x ; then |
13601 | echo "$ac_t""not found" 1>&6 | |
13602 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
13603 | fi | |
13604 | echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6 | |
13605 | ||
1d1b75ac VZ |
13606 | wxUSE_UNIVERSAL="yes" |
13607 | ||
21d1c967 GD |
13608 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
13609 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
13610 | ||
90dd450c | 13611 | AFMINSTALL=afminstall |
21d1c967 GD |
13612 | TOOLKIT=MGL |
13613 | GUIDIST=MGL_DIST | |
13614 | fi | |
dad6c0ea | 13615 | |
21d1c967 | 13616 | if test "$wxUSE_MICROWIN" = 1; then |
a0b9e27f | 13617 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 |
9b4d9d56 | 13618 | echo "configure:13619: checking for MicroWindows" >&5 |
21d1c967 | 13619 | if test "x$MICROWINDOWS" = x ; then |
a0b9e27f MB |
13620 | echo "$ac_t""not found" 1>&6 |
13621 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
21d1c967 | 13622 | else |
a0b9e27f | 13623 | echo "$ac_t""$MICROWINDOWS" 1>&6 |
21d1c967 | 13624 | fi |
f6bcfd97 | 13625 | |
21d1c967 | 13626 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
a0b9e27f | 13627 | echo "$ac_t""MicroWindows' libraries found." 1>&6 |
21d1c967 | 13628 | else |
a0b9e27f | 13629 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } |
90dd450c | 13630 | fi |
0b2effe9 | 13631 | |
21d1c967 GD |
13632 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
13633 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
13634 | ||
1d1b75ac VZ |
13635 | wxUSE_UNIVERSAL="yes" |
13636 | ||
21d1c967 GD |
13637 | AFMINSTALL=afminstall |
13638 | TOOLKIT=MICROWIN | |
13639 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
13640 | |
13641 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 13642 | fi |
f6bcfd97 | 13643 | |
21d1c967 | 13644 | if test "$wxUSE_X11" = 1; then |
a0b9e27f MB |
13645 | # If we find X, set shell vars x_includes and x_libraries to the |
13646 | # paths, otherwise set no_x=yes. | |
13647 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
13648 | # --without-x overrides everything else, but does not touch the cache. | |
13649 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
9b4d9d56 | 13650 | echo "configure:13651: checking for X" >&5 |
d8356fa3 | 13651 | |
21d1c967 GD |
13652 | # Check whether --with-x or --without-x was given. |
13653 | if test "${with_x+set}" = set; then | |
13654 | withval="$with_x" | |
a0b9e27f MB |
13655 | : |
13656 | fi | |
2224580a | 13657 | |
21d1c967 GD |
13658 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
13659 | if test "x$with_x" = xno; then | |
13660 | # The user explicitly disabled X. | |
13661 | have_x=disabled | |
13662 | else | |
13663 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
13664 | # Both variables are already set. | |
13665 | have_x=yes | |
13666 | else | |
a0b9e27f MB |
13667 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
13668 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 GD |
13669 | else |
13670 | # One or both of the vars are not set, and there is no cached value. | |
a0b9e27f MB |
13671 | ac_x_includes=NO ac_x_libraries=NO |
13672 | rm -fr conftestdir | |
13673 | if mkdir conftestdir; then | |
13674 | cd conftestdir | |
21d1c967 | 13675 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
a0b9e27f | 13676 | cat > Imakefile <<'EOF' |
21d1c967 GD |
13677 | acfindx: |
13678 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
a0b9e27f | 13679 | EOF |
21d1c967 GD |
13680 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
13681 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
13682 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
13683 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
13684 | for ac_extension in a so sl; do | |
13685 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
a0b9e27f | 13686 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
13687 | ac_im_usrlibdir=$ac_im_libdir; break |
13688 | fi | |
13689 | done | |
13690 | # Screen out bogus values from the imake configuration. They are | |
13691 | # bogus both because they are the default anyway, and because | |
13692 | # using them would break gcc on systems where it needs fixed includes. | |
a0b9e27f | 13693 | case "$ac_im_incroot" in |
21d1c967 | 13694 | /usr/include) ;; |
a0b9e27f | 13695 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
21d1c967 | 13696 | esac |
a0b9e27f | 13697 | case "$ac_im_usrlibdir" in |
21d1c967 | 13698 | /usr/lib | /lib) ;; |
a0b9e27f | 13699 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
21d1c967 GD |
13700 | esac |
13701 | fi | |
13702 | cd .. | |
a0b9e27f | 13703 | rm -fr conftestdir |
21d1c967 | 13704 | fi |
10f2d63a | 13705 | |
a0b9e27f MB |
13706 | if test "$ac_x_includes" = NO; then |
13707 | # Guess where to find include files, by looking for this one X11 .h file. | |
13708 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
13709 | ||
21d1c967 | 13710 | # First, try using that file with no special directory specified. |
a0b9e27f | 13711 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 13712 | #line 13713 "configure" |
21d1c967 | 13713 | #include "confdefs.h" |
a0b9e27f MB |
13714 | #include <$x_direct_test_include> |
13715 | EOF | |
13716 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 13717 | { (eval echo configure:13718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
13718 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13719 | if test -z "$ac_err"; then | |
13720 | rm -rf conftest* | |
21d1c967 GD |
13721 | # We can compile using X headers with no special include directory. |
13722 | ac_x_includes= | |
90dd450c | 13723 | else |
a0b9e27f MB |
13724 | echo "$ac_err" >&5 |
13725 | echo "configure: failed program was:" >&5 | |
90dd450c | 13726 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
13727 | rm -rf conftest* |
13728 | # Look for the header file in a standard set of common directories. | |
13729 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13730 | for ac_dir in \ | |
13731 | /usr/X11/include \ | |
13732 | /usr/X11R6/include \ | |
13733 | /usr/X11R5/include \ | |
13734 | /usr/X11R4/include \ | |
13735 | \ | |
13736 | /usr/include/X11 \ | |
13737 | /usr/include/X11R6 \ | |
13738 | /usr/include/X11R5 \ | |
13739 | /usr/include/X11R4 \ | |
13740 | \ | |
13741 | /usr/local/X11/include \ | |
13742 | /usr/local/X11R6/include \ | |
13743 | /usr/local/X11R5/include \ | |
13744 | /usr/local/X11R4/include \ | |
13745 | \ | |
13746 | /usr/local/include/X11 \ | |
13747 | /usr/local/include/X11R6 \ | |
13748 | /usr/local/include/X11R5 \ | |
13749 | /usr/local/include/X11R4 \ | |
13750 | \ | |
13751 | /usr/X386/include \ | |
13752 | /usr/x386/include \ | |
13753 | /usr/XFree86/include/X11 \ | |
13754 | \ | |
13755 | /usr/include \ | |
13756 | /usr/local/include \ | |
13757 | /usr/unsupported/include \ | |
13758 | /usr/athena/include \ | |
13759 | /usr/local/x11r5/include \ | |
13760 | /usr/lpp/Xamples/include \ | |
13761 | \ | |
13762 | /usr/openwin/include \ | |
13763 | /usr/openwin/share/include \ | |
13764 | ; \ | |
13765 | do | |
13766 | if test -r "$ac_dir/$x_direct_test_include"; then | |
13767 | ac_x_includes=$ac_dir | |
13768 | break | |
13769 | fi | |
13770 | done | |
3a922bb4 | 13771 | fi |
a0b9e27f MB |
13772 | rm -f conftest* |
13773 | fi # $ac_x_includes = NO | |
10f2d63a | 13774 | |
a0b9e27f | 13775 | if test "$ac_x_libraries" = NO; then |
21d1c967 | 13776 | # Check for the libraries. |
a0b9e27f MB |
13777 | |
13778 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
13779 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
13780 | ||
21d1c967 GD |
13781 | # See if we find them without any special options. |
13782 | # Don't add to $LIBS permanently. | |
a0b9e27f MB |
13783 | ac_save_LIBS="$LIBS" |
13784 | LIBS="-l$x_direct_test_library $LIBS" | |
13785 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 13786 | #line 13787 "configure" |
3a922bb4 | 13787 | #include "confdefs.h" |
a0b9e27f MB |
13788 | |
13789 | int main() { | |
13790 | ${x_direct_test_function}() | |
13791 | ; return 0; } | |
13792 | EOF | |
9b4d9d56 | 13793 | if { (eval echo configure:13794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13794 | rm -rf conftest* |
13795 | LIBS="$ac_save_LIBS" | |
21d1c967 GD |
13796 | # We can link X programs with no special library path. |
13797 | ac_x_libraries= | |
3a922bb4 | 13798 | else |
a0b9e27f MB |
13799 | echo "configure: failed program was:" >&5 |
13800 | cat conftest.$ac_ext >&5 | |
13801 | rm -rf conftest* | |
13802 | LIBS="$ac_save_LIBS" | |
13803 | # First see if replacing the include by lib works. | |
13804 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13805 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
13806 | /usr/X11/lib \ | |
13807 | /usr/X11R6/lib \ | |
13808 | /usr/X11R5/lib \ | |
13809 | /usr/X11R4/lib \ | |
13810 | \ | |
13811 | /usr/lib/X11 \ | |
13812 | /usr/lib/X11R6 \ | |
13813 | /usr/lib/X11R5 \ | |
13814 | /usr/lib/X11R4 \ | |
13815 | \ | |
13816 | /usr/local/X11/lib \ | |
13817 | /usr/local/X11R6/lib \ | |
13818 | /usr/local/X11R5/lib \ | |
13819 | /usr/local/X11R4/lib \ | |
13820 | \ | |
13821 | /usr/local/lib/X11 \ | |
13822 | /usr/local/lib/X11R6 \ | |
13823 | /usr/local/lib/X11R5 \ | |
13824 | /usr/local/lib/X11R4 \ | |
13825 | \ | |
13826 | /usr/X386/lib \ | |
13827 | /usr/x386/lib \ | |
13828 | /usr/XFree86/lib/X11 \ | |
13829 | \ | |
13830 | /usr/lib \ | |
13831 | /usr/local/lib \ | |
13832 | /usr/unsupported/lib \ | |
13833 | /usr/athena/lib \ | |
13834 | /usr/local/x11r5/lib \ | |
13835 | /usr/lpp/Xamples/lib \ | |
13836 | /lib/usr/lib/X11 \ | |
13837 | \ | |
13838 | /usr/openwin/lib \ | |
13839 | /usr/openwin/share/lib \ | |
13840 | ; \ | |
21d1c967 GD |
13841 | do |
13842 | for ac_extension in a so sl; do | |
a0b9e27f | 13843 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
21d1c967 GD |
13844 | ac_x_libraries=$ac_dir |
13845 | break 2 | |
13846 | fi | |
13847 | done | |
13848 | done | |
3a922bb4 | 13849 | fi |
a0b9e27f MB |
13850 | rm -f conftest* |
13851 | fi # $ac_x_libraries = NO | |
90dd450c | 13852 | |
a0b9e27f | 13853 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
21d1c967 GD |
13854 | # Didn't find X anywhere. Cache the known absence of X. |
13855 | ac_cv_have_x="have_x=no" | |
13856 | else | |
13857 | # Record where we found X for the cache. | |
13858 | ac_cv_have_x="have_x=yes \ | |
13859 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 13860 | fi |
21d1c967 GD |
13861 | fi |
13862 | fi | |
13863 | eval "$ac_cv_have_x" | |
13864 | fi # $with_x != no | |
90dd450c | 13865 | |
21d1c967 | 13866 | if test "$have_x" != yes; then |
a0b9e27f | 13867 | echo "$ac_t""$have_x" 1>&6 |
21d1c967 GD |
13868 | no_x=yes |
13869 | else | |
13870 | # If each of the values was on the command line, it overrides each guess. | |
13871 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
13872 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
13873 | # Update the cache value to reflect the command line values. | |
13874 | ac_cv_have_x="have_x=yes \ | |
13875 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
a0b9e27f | 13876 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
21d1c967 | 13877 | fi |
90dd450c | 13878 | |
21d1c967 | 13879 | if test "$no_x" = yes; then |
90dd450c | 13880 | # Not all programs may use this symbol, but it does not hurt to define it. |
a0b9e27f | 13881 | cat >> confdefs.h <<\EOF |
90dd450c | 13882 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 13883 | EOF |
90dd450c VZ |
13884 | |
13885 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13886 | else | |
13887 | if test -n "$x_includes"; then | |
13888 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 13889 | fi |
3a922bb4 | 13890 | |
90dd450c VZ |
13891 | # It would also be nice to do this for all -L options, not just this one. |
13892 | if test -n "$x_libraries"; then | |
13893 | X_LIBS="$X_LIBS -L$x_libraries" | |
13894 | # For Solaris; some versions of Sun CC require a space after -R and | |
13895 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 13896 | case "`(uname -sr) 2>/dev/null`" in |
90dd450c | 13897 | "SunOS 5"*) |
a0b9e27f | 13898 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
9b4d9d56 | 13899 | echo "configure:13900: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
13900 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
13901 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 13902 | #line 13903 "configure" |
90dd450c VZ |
13903 | #include "confdefs.h" |
13904 | ||
a0b9e27f | 13905 | int main() { |
90dd450c | 13906 | |
a0b9e27f MB |
13907 | ; return 0; } |
13908 | EOF | |
9b4d9d56 | 13909 | if { (eval echo configure:13910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13910 | rm -rf conftest* |
90dd450c | 13911 | ac_R_nospace=yes |
3a922bb4 | 13912 | else |
a0b9e27f MB |
13913 | echo "configure: failed program was:" >&5 |
13914 | cat conftest.$ac_ext >&5 | |
13915 | rm -rf conftest* | |
13916 | ac_R_nospace=no | |
3a922bb4 | 13917 | fi |
a0b9e27f | 13918 | rm -f conftest* |
90dd450c | 13919 | if test $ac_R_nospace = yes; then |
a0b9e27f | 13920 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
13921 | X_LIBS="$X_LIBS -R$x_libraries" |
13922 | else | |
13923 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 13924 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 13925 | #line 13926 "configure" |
90dd450c | 13926 | #include "confdefs.h" |
3a922bb4 | 13927 | |
a0b9e27f | 13928 | int main() { |
6f754473 | 13929 | |
a0b9e27f MB |
13930 | ; return 0; } |
13931 | EOF | |
9b4d9d56 | 13932 | if { (eval echo configure:13933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13933 | rm -rf conftest* |
90dd450c VZ |
13934 | ac_R_space=yes |
13935 | else | |
a0b9e27f MB |
13936 | echo "configure: failed program was:" >&5 |
13937 | cat conftest.$ac_ext >&5 | |
13938 | rm -rf conftest* | |
13939 | ac_R_space=no | |
90dd450c | 13940 | fi |
a0b9e27f | 13941 | rm -f conftest* |
90dd450c | 13942 | if test $ac_R_space = yes; then |
a0b9e27f | 13943 | echo "$ac_t""yes" 1>&6 |
90dd450c VZ |
13944 | X_LIBS="$X_LIBS -R $x_libraries" |
13945 | else | |
a0b9e27f | 13946 | echo "$ac_t""neither works" 1>&6 |
90dd450c VZ |
13947 | fi |
13948 | fi | |
a0b9e27f | 13949 | LIBS="$ac_xsave_LIBS" |
90dd450c VZ |
13950 | esac |
13951 | fi | |
13952 | ||
13953 | # Check for system-dependent libraries X programs must link with. | |
13954 | # Do this before checking for the system-independent R6 libraries | |
13955 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 13956 | |
90dd450c VZ |
13957 | if test "$ISC" = yes; then |
13958 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13959 | else | |
a0b9e27f MB |
13960 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
13961 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
90dd450c | 13962 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 13963 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
9b4d9d56 | 13964 | echo "configure:13965: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
13965 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13966 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13967 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 13968 | else |
a0b9e27f | 13969 | ac_save_LIBS="$LIBS" |
247f5006 | 13970 | LIBS="-ldnet $LIBS" |
a0b9e27f | 13971 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 13972 | #line 13973 "configure" |
247f5006 | 13973 | #include "confdefs.h" |
247f5006 | 13974 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 13975 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13976 | builtin and then its argument prototype would still apply. */ |
13977 | char dnet_ntoa(); | |
13978 | ||
13979 | int main() { | |
13980 | dnet_ntoa() | |
13981 | ; return 0; } | |
13982 | EOF | |
9b4d9d56 | 13983 | if { (eval echo configure:13984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13984 | rm -rf conftest* |
13985 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13986 | else | |
13987 | echo "configure: failed program was:" >&5 | |
13988 | cat conftest.$ac_ext >&5 | |
13989 | rm -rf conftest* | |
13990 | eval "ac_cv_lib_$ac_lib_var=no" | |
13991 | fi | |
13992 | rm -f conftest* | |
13993 | LIBS="$ac_save_LIBS" | |
13994 | ||
13995 | fi | |
13996 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13997 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13998 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
13999 | else |
14000 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
14001 | fi |
14002 | ||
90dd450c | 14003 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 14004 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
9b4d9d56 | 14005 | echo "configure:14006: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
14006 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14007 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14008 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14009 | else |
a0b9e27f | 14010 | ac_save_LIBS="$LIBS" |
90dd450c | 14011 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 14012 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 14013 | #line 14014 "configure" |
90dd450c VZ |
14014 | #include "confdefs.h" |
14015 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14016 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14017 | builtin and then its argument prototype would still apply. */ |
14018 | char dnet_ntoa(); | |
14019 | ||
14020 | int main() { | |
14021 | dnet_ntoa() | |
14022 | ; return 0; } | |
14023 | EOF | |
9b4d9d56 | 14024 | if { (eval echo configure:14025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14025 | rm -rf conftest* |
14026 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14027 | else | |
14028 | echo "configure: failed program was:" >&5 | |
14029 | cat conftest.$ac_ext >&5 | |
14030 | rm -rf conftest* | |
14031 | eval "ac_cv_lib_$ac_lib_var=no" | |
14032 | fi | |
14033 | rm -f conftest* | |
14034 | LIBS="$ac_save_LIBS" | |
14035 | ||
14036 | fi | |
14037 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14038 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14039 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
14040 | else |
14041 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
14042 | fi |
14043 | ||
90dd450c | 14044 | fi |
978f1259 | 14045 | |
90dd450c VZ |
14046 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
14047 | # to get the SysV transport functions. | |
a0b9e27f | 14048 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
14049 | # needs -lnsl. |
14050 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
14051 | # on Irix 5.2, according to dickey@clark.net. |
14052 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
9b4d9d56 | 14053 | echo "configure:14054: checking for gethostbyname" >&5 |
a0b9e27f MB |
14054 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
14055 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14056 | else | |
14057 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 14058 | #line 14059 "configure" |
90dd450c VZ |
14059 | #include "confdefs.h" |
14060 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14061 | which can conflict with char gethostbyname(); below. */ |
90dd450c VZ |
14062 | #include <assert.h> |
14063 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14064 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14065 | builtin and then its argument prototype would still apply. */ |
14066 | char gethostbyname(); | |
14067 | ||
14068 | int main() { | |
14069 | ||
90dd450c VZ |
14070 | /* The GNU C library defines this for functions which it implements |
14071 | to always fail with ENOSYS. Some functions are actually named | |
14072 | something starting with __ and the normal name is an alias. */ | |
14073 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
14074 | choke me | |
14075 | #else | |
a0b9e27f | 14076 | gethostbyname(); |
90dd450c | 14077 | #endif |
978f1259 | 14078 | |
a0b9e27f MB |
14079 | ; return 0; } |
14080 | EOF | |
9b4d9d56 | 14081 | if { (eval echo configure:14082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14082 | rm -rf conftest* |
14083 | eval "ac_cv_func_gethostbyname=yes" | |
14084 | else | |
14085 | echo "configure: failed program was:" >&5 | |
14086 | cat conftest.$ac_ext >&5 | |
14087 | rm -rf conftest* | |
14088 | eval "ac_cv_func_gethostbyname=no" | |
14089 | fi | |
14090 | rm -f conftest* | |
14091 | fi | |
14092 | ||
14093 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
14094 | echo "$ac_t""yes" 1>&6 | |
14095 | : | |
14096 | else | |
14097 | echo "$ac_t""no" 1>&6 | |
14098 | fi | |
698dcdb6 | 14099 | |
90dd450c | 14100 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 14101 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
9b4d9d56 | 14102 | echo "configure:14103: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
14103 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
14104 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14105 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14106 | else |
a0b9e27f | 14107 | ac_save_LIBS="$LIBS" |
90dd450c | 14108 | LIBS="-lnsl $LIBS" |
a0b9e27f | 14109 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 14110 | #line 14111 "configure" |
90dd450c VZ |
14111 | #include "confdefs.h" |
14112 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14113 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14114 | builtin and then its argument prototype would still apply. */ |
14115 | char gethostbyname(); | |
5c6fa7d2 | 14116 | |
a0b9e27f MB |
14117 | int main() { |
14118 | gethostbyname() | |
14119 | ; return 0; } | |
14120 | EOF | |
9b4d9d56 | 14121 | if { (eval echo configure:14122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14122 | rm -rf conftest* |
14123 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 14124 | else |
a0b9e27f MB |
14125 | echo "configure: failed program was:" >&5 |
14126 | cat conftest.$ac_ext >&5 | |
14127 | rm -rf conftest* | |
14128 | eval "ac_cv_lib_$ac_lib_var=no" | |
14129 | fi | |
14130 | rm -f conftest* | |
14131 | LIBS="$ac_save_LIBS" | |
247f5006 | 14132 | |
a0b9e27f MB |
14133 | fi |
14134 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14135 | echo "$ac_t""yes" 1>&6 | |
14136 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
14137 | else | |
14138 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14139 | fi |
b12915c1 | 14140 | |
90dd450c VZ |
14141 | fi |
14142 | ||
14143 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
14144 | # socket/setsockopt and other routines are undefined under SCO ODT | |
14145 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
14146 | # on later versions), says simon@lia.di.epfl.ch: it contains |
14147 | # gethostby* variants that don't use the nameserver (or something). | |
14148 | # -lsocket must be given before -lnsl if both are needed. | |
14149 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
14150 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
9b4d9d56 | 14151 | echo "configure:14152: checking for connect" >&5 |
a0b9e27f MB |
14152 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
14153 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14154 | else | |
14155 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 14156 | #line 14157 "configure" |
55e80573 | 14157 | #include "confdefs.h" |
90dd450c | 14158 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 14159 | which can conflict with char connect(); below. */ |
90dd450c VZ |
14160 | #include <assert.h> |
14161 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14162 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14163 | builtin and then its argument prototype would still apply. */ |
14164 | char connect(); | |
14165 | ||
14166 | int main() { | |
14167 | ||
90dd450c VZ |
14168 | /* The GNU C library defines this for functions which it implements |
14169 | to always fail with ENOSYS. Some functions are actually named | |
14170 | something starting with __ and the normal name is an alias. */ | |
14171 | #if defined (__stub_connect) || defined (__stub___connect) | |
14172 | choke me | |
14173 | #else | |
a0b9e27f | 14174 | connect(); |
90dd450c VZ |
14175 | #endif |
14176 | ||
a0b9e27f MB |
14177 | ; return 0; } |
14178 | EOF | |
9b4d9d56 | 14179 | if { (eval echo configure:14180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14180 | rm -rf conftest* |
14181 | eval "ac_cv_func_connect=yes" | |
14182 | else | |
14183 | echo "configure: failed program was:" >&5 | |
14184 | cat conftest.$ac_ext >&5 | |
14185 | rm -rf conftest* | |
14186 | eval "ac_cv_func_connect=no" | |
14187 | fi | |
14188 | rm -f conftest* | |
14189 | fi | |
14190 | ||
14191 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
14192 | echo "$ac_t""yes" 1>&6 | |
14193 | : | |
14194 | else | |
14195 | echo "$ac_t""no" 1>&6 | |
14196 | fi | |
55e80573 | 14197 | |
90dd450c | 14198 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 14199 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
9b4d9d56 | 14200 | echo "configure:14201: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
14201 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
14202 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14203 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14204 | else |
a0b9e27f | 14205 | ac_save_LIBS="$LIBS" |
90dd450c | 14206 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14207 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 14208 | #line 14209 "configure" |
90dd450c VZ |
14209 | #include "confdefs.h" |
14210 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14211 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14212 | builtin and then its argument prototype would still apply. */ |
14213 | char connect(); | |
14214 | ||
14215 | int main() { | |
14216 | connect() | |
14217 | ; return 0; } | |
14218 | EOF | |
9b4d9d56 | 14219 | if { (eval echo configure:14220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14220 | rm -rf conftest* |
14221 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14222 | else | |
14223 | echo "configure: failed program was:" >&5 | |
14224 | cat conftest.$ac_ext >&5 | |
14225 | rm -rf conftest* | |
14226 | eval "ac_cv_lib_$ac_lib_var=no" | |
14227 | fi | |
14228 | rm -f conftest* | |
14229 | LIBS="$ac_save_LIBS" | |
14230 | ||
14231 | fi | |
14232 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14233 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14234 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
14235 | else |
14236 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14237 | fi |
77e13408 | 14238 | |
90dd450c | 14239 | fi |
25d0687a | 14240 | |
a0b9e27f MB |
14241 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
14242 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
9b4d9d56 | 14243 | echo "configure:14244: checking for remove" >&5 |
a0b9e27f MB |
14244 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
14245 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14246 | else |
a0b9e27f | 14247 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 14248 | #line 14249 "configure" |
90dd450c VZ |
14249 | #include "confdefs.h" |
14250 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14251 | which can conflict with char remove(); below. */ |
90dd450c VZ |
14252 | #include <assert.h> |
14253 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14254 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14255 | builtin and then its argument prototype would still apply. */ |
14256 | char remove(); | |
14257 | ||
14258 | int main() { | |
14259 | ||
90dd450c VZ |
14260 | /* The GNU C library defines this for functions which it implements |
14261 | to always fail with ENOSYS. Some functions are actually named | |
14262 | something starting with __ and the normal name is an alias. */ | |
14263 | #if defined (__stub_remove) || defined (__stub___remove) | |
14264 | choke me | |
14265 | #else | |
a0b9e27f | 14266 | remove(); |
90dd450c | 14267 | #endif |
55e80573 | 14268 | |
a0b9e27f MB |
14269 | ; return 0; } |
14270 | EOF | |
9b4d9d56 | 14271 | if { (eval echo configure:14272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14272 | rm -rf conftest* |
14273 | eval "ac_cv_func_remove=yes" | |
14274 | else | |
14275 | echo "configure: failed program was:" >&5 | |
14276 | cat conftest.$ac_ext >&5 | |
14277 | rm -rf conftest* | |
14278 | eval "ac_cv_func_remove=no" | |
14279 | fi | |
14280 | rm -f conftest* | |
14281 | fi | |
14282 | ||
14283 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
14284 | echo "$ac_t""yes" 1>&6 | |
14285 | : | |
14286 | else | |
14287 | echo "$ac_t""no" 1>&6 | |
14288 | fi | |
10f2d63a | 14289 | |
90dd450c | 14290 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 14291 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
9b4d9d56 | 14292 | echo "configure:14293: checking for remove in -lposix" >&5 |
a0b9e27f MB |
14293 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
14294 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14295 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14296 | else |
a0b9e27f | 14297 | ac_save_LIBS="$LIBS" |
90dd450c | 14298 | LIBS="-lposix $LIBS" |
a0b9e27f | 14299 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 14300 | #line 14301 "configure" |
90dd450c VZ |
14301 | #include "confdefs.h" |
14302 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14303 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14304 | builtin and then its argument prototype would still apply. */ |
14305 | char remove(); | |
14306 | ||
14307 | int main() { | |
14308 | remove() | |
14309 | ; return 0; } | |
14310 | EOF | |
9b4d9d56 | 14311 | if { (eval echo configure:14312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14312 | rm -rf conftest* |
14313 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14314 | else | |
14315 | echo "configure: failed program was:" >&5 | |
14316 | cat conftest.$ac_ext >&5 | |
14317 | rm -rf conftest* | |
14318 | eval "ac_cv_lib_$ac_lib_var=no" | |
14319 | fi | |
14320 | rm -f conftest* | |
14321 | LIBS="$ac_save_LIBS" | |
14322 | ||
14323 | fi | |
14324 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14325 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14326 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
14327 | else |
14328 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14329 | fi |
f6bcfd97 | 14330 | |
6fa882bd RR |
14331 | fi |
14332 | ||
90dd450c | 14333 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 14334 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
9b4d9d56 | 14335 | echo "configure:14336: checking for shmat" >&5 |
a0b9e27f MB |
14336 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
14337 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14338 | else |
a0b9e27f | 14339 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 14340 | #line 14341 "configure" |
90dd450c VZ |
14341 | #include "confdefs.h" |
14342 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14343 | which can conflict with char shmat(); below. */ |
90dd450c VZ |
14344 | #include <assert.h> |
14345 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14346 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14347 | builtin and then its argument prototype would still apply. */ |
14348 | char shmat(); | |
14349 | ||
14350 | int main() { | |
14351 | ||
90dd450c VZ |
14352 | /* The GNU C library defines this for functions which it implements |
14353 | to always fail with ENOSYS. Some functions are actually named | |
14354 | something starting with __ and the normal name is an alias. */ | |
14355 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14356 | choke me | |
14357 | #else | |
a0b9e27f | 14358 | shmat(); |
90dd450c | 14359 | #endif |
10f2d63a | 14360 | |
a0b9e27f MB |
14361 | ; return 0; } |
14362 | EOF | |
9b4d9d56 | 14363 | if { (eval echo configure:14364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14364 | rm -rf conftest* |
14365 | eval "ac_cv_func_shmat=yes" | |
14366 | else | |
14367 | echo "configure: failed program was:" >&5 | |
14368 | cat conftest.$ac_ext >&5 | |
14369 | rm -rf conftest* | |
14370 | eval "ac_cv_func_shmat=no" | |
14371 | fi | |
14372 | rm -f conftest* | |
14373 | fi | |
14374 | ||
14375 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14376 | echo "$ac_t""yes" 1>&6 | |
14377 | : | |
14378 | else | |
14379 | echo "$ac_t""no" 1>&6 | |
14380 | fi | |
d08b457b | 14381 | |
90dd450c | 14382 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 14383 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
9b4d9d56 | 14384 | echo "configure:14385: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
14385 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
14386 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14387 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d08b457b | 14388 | else |
a0b9e27f | 14389 | ac_save_LIBS="$LIBS" |
90dd450c | 14390 | LIBS="-lipc $LIBS" |
a0b9e27f | 14391 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 14392 | #line 14393 "configure" |
90dd450c | 14393 | #include "confdefs.h" |
8284b0c5 | 14394 | /* Override any gcc2 internal prototype to avoid an error. */ |
90dd450c | 14395 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14396 | builtin and then its argument prototype would still apply. */ |
14397 | char shmat(); | |
14398 | ||
14399 | int main() { | |
14400 | shmat() | |
14401 | ; return 0; } | |
14402 | EOF | |
9b4d9d56 | 14403 | if { (eval echo configure:14404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14404 | rm -rf conftest* |
14405 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14406 | else | |
14407 | echo "configure: failed program was:" >&5 | |
14408 | cat conftest.$ac_ext >&5 | |
14409 | rm -rf conftest* | |
14410 | eval "ac_cv_lib_$ac_lib_var=no" | |
14411 | fi | |
14412 | rm -f conftest* | |
14413 | LIBS="$ac_save_LIBS" | |
14414 | ||
14415 | fi | |
14416 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14417 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14418 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
14419 | else |
14420 | echo "$ac_t""no" 1>&6 | |
d08b457b GD |
14421 | fi |
14422 | ||
d558c907 | 14423 | fi |
90dd450c | 14424 | fi |
3a922bb4 | 14425 | |
90dd450c | 14426 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 14427 | ac_save_LDFLAGS="$LDFLAGS" |
90dd450c VZ |
14428 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
14429 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14430 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14431 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14432 | # These have to be linked with before -lX11, unlike the other | |
14433 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
14434 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
14435 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
9b4d9d56 | 14436 | echo "configure:14437: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
14437 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
14438 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14439 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14440 | else | |
14441 | ac_save_LIBS="$LIBS" | |
f09359cf | 14442 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14443 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 14444 | #line 14445 "configure" |
9cfadba2 | 14445 | #include "confdefs.h" |
90dd450c VZ |
14446 | /* Override any gcc2 internal prototype to avoid an error. */ |
14447 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14448 | builtin and then its argument prototype would still apply. */ |
14449 | char IceConnectionNumber(); | |
14450 | ||
14451 | int main() { | |
14452 | IceConnectionNumber() | |
14453 | ; return 0; } | |
14454 | EOF | |
9b4d9d56 | 14455 | if { (eval echo configure:14456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14456 | rm -rf conftest* |
14457 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14458 | else | |
14459 | echo "configure: failed program was:" >&5 | |
14460 | cat conftest.$ac_ext >&5 | |
14461 | rm -rf conftest* | |
14462 | eval "ac_cv_lib_$ac_lib_var=no" | |
14463 | fi | |
14464 | rm -f conftest* | |
14465 | LIBS="$ac_save_LIBS" | |
14466 | ||
14467 | fi | |
14468 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14469 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14470 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
14471 | else |
14472 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 14473 | fi |
10f2d63a | 14474 | |
a0b9e27f | 14475 | LDFLAGS="$ac_save_LDFLAGS" |
90dd450c VZ |
14476 | |
14477 | fi | |
14478 | ||
8284b0c5 | 14479 | |
90dd450c | 14480 | if test "$no_x" = "yes"; then |
a0b9e27f | 14481 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
90dd450c VZ |
14482 | fi |
14483 | ||
14484 | GUI_TK_LIBRARY="$X_LIBS" | |
14485 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14486 | AFMINSTALL=afminstall | |
14487 | COMPILED_X_PROGRAM=0 | |
14488 | ||
21d1c967 | 14489 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 14490 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 |
9b4d9d56 | 14491 | echo "configure:14492: checking for MicroWindows/NanoX distribution" >&5 |
21d1c967 | 14492 | if test "x$MICROWIN" = x ; then |
a0b9e27f MB |
14493 | echo "$ac_t""not found" 1>&6 |
14494 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
90dd450c | 14495 | else |
a0b9e27f MB |
14496 | echo "$ac_t""$MICROWIN" 1>&6 |
14497 | cat >> confdefs.h <<\EOF | |
21d1c967 | 14498 | #define wxUSE_NANOX 1 |
a0b9e27f | 14499 | EOF |
21d1c967 | 14500 | |
90dd450c VZ |
14501 | fi |
14502 | fi | |
14503 | ||
14504 | xpm_link= | |
a0b9e27f | 14505 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
9b4d9d56 | 14506 | echo "configure:14507: checking for Xpm library" >&5 |
a0b9e27f | 14507 | |
90dd450c | 14508 | ac_find_libraries= |
2b5f62a0 | 14509 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
14510 | do |
14511 | for ac_extension in a so sl dylib; do | |
14512 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14513 | ac_find_libraries=$ac_dir | |
14514 | break 2 | |
14515 | fi | |
14516 | done | |
14517 | done | |
14518 | ||
14519 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 14520 | |
90dd450c VZ |
14521 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14522 | result=$? | |
14523 | if test $result = 0; then | |
14524 | ac_path_to_link="" | |
14525 | else | |
14526 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 14527 | fi |
90dd450c | 14528 | |
21d1c967 GD |
14529 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
14530 | xpm_link=" -lXpm" | |
a0b9e27f | 14531 | cat >> confdefs.h <<\EOF |
21d1c967 | 14532 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14533 | EOF |
90dd450c | 14534 | |
a0b9e27f | 14535 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14536 | else |
a0b9e27f | 14537 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 14538 | #line 14539 "configure" |
21d1c967 | 14539 | #include "confdefs.h" |
90dd450c | 14540 | |
21d1c967 | 14541 | #include <X11/xpm.h> |
a0b9e27f MB |
14542 | |
14543 | int main() { | |
6f72b082 | 14544 | |
21d1c967 GD |
14545 | int version; |
14546 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
14547 | |
14548 | ; return 0; } | |
14549 | EOF | |
9b4d9d56 | 14550 | if { (eval echo configure:14551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
14551 | rm -rf conftest* |
14552 | ||
21d1c967 | 14553 | xpm_link=" -lXpm" |
a0b9e27f | 14554 | cat >> confdefs.h <<\EOF |
21d1c967 | 14555 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14556 | EOF |
90dd450c | 14557 | |
a0b9e27f | 14558 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 14559 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 14560 | |
21d1c967 | 14561 | else |
a0b9e27f MB |
14562 | echo "configure: failed program was:" >&5 |
14563 | cat conftest.$ac_ext >&5 | |
14564 | rm -rf conftest* | |
14565 | ||
14566 | echo "$ac_t""no" 1>&6 | |
14567 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14568 | ||
14569 | ||
6f72b082 | 14570 | fi |
a0b9e27f | 14571 | rm -f conftest* |
21d1c967 | 14572 | fi |
90dd450c | 14573 | |
2b5f62a0 VZ |
14574 | if test "$wxUSE_UNICODE" = "yes"; then |
14575 | ||
14576 | succeeded=no | |
90dd450c | 14577 | |
2b5f62a0 VZ |
14578 | if test -z "$PKG_CONFIG"; then |
14579 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14580 | set dummy pkg-config; ac_word=$2 | |
14581 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9b4d9d56 | 14582 | echo "configure:14583: checking for $ac_word" >&5 |
2b5f62a0 | 14583 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
a0b9e27f MB |
14584 | echo $ac_n "(cached) $ac_c" 1>&6 |
14585 | else | |
2b5f62a0 VZ |
14586 | case "$PKG_CONFIG" in |
14587 | /*) | |
14588 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14589 | ;; | |
14590 | ?:/*) | |
14591 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14592 | ;; | |
14593 | *) | |
14594 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14595 | ac_dummy="$PATH" | |
14596 | for ac_dir in $ac_dummy; do | |
14597 | test -z "$ac_dir" && ac_dir=. | |
14598 | if test -f $ac_dir/$ac_word; then | |
14599 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14600 | break | |
14601 | fi | |
14602 | done | |
14603 | IFS="$ac_save_ifs" | |
14604 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14605 | ;; | |
14606 | esac | |
14607 | fi | |
14608 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14609 | if test -n "$PKG_CONFIG"; then | |
14610 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14611 | else | |
14612 | echo "$ac_t""no" 1>&6 | |
14613 | fi | |
14614 | ||
14615 | fi | |
14616 | ||
14617 | if test "$PKG_CONFIG" = "no" ; then | |
14618 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14619 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14620 | echo "*** to the full path to pkg-config." | |
14621 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14622 | else | |
14623 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14624 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14625 | echo $ac_n "checking for pangox""... $ac_c" 1>&6 | |
9b4d9d56 | 14626 | echo "configure:14627: checking for pangox" >&5 |
2b5f62a0 VZ |
14627 | |
14628 | if $PKG_CONFIG --exists "pangox" ; then | |
14629 | echo "$ac_t""yes" 1>&6 | |
14630 | succeeded=yes | |
14631 | ||
14632 | echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6 | |
9b4d9d56 | 14633 | echo "configure:14634: checking PANGOX_CFLAGS" >&5 |
2b5f62a0 VZ |
14634 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
14635 | echo "$ac_t""$PANGOX_CFLAGS" 1>&6 | |
14636 | ||
14637 | echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6 | |
9b4d9d56 | 14638 | echo "configure:14639: checking PANGOX_LIBS" >&5 |
2b5f62a0 VZ |
14639 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
14640 | echo "$ac_t""$PANGOX_LIBS" 1>&6 | |
14641 | else | |
14642 | PANGOX_CFLAGS="" | |
14643 | PANGOX_LIBS="" | |
14644 | ## If we have a custom action on failure, don't print errors, but | |
14645 | ## do set a variable so people can do so. | |
14646 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
14647 | ||
14648 | fi | |
14649 | ||
14650 | ||
14651 | ||
14652 | else | |
14653 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14654 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14655 | fi | |
14656 | fi | |
14657 | ||
14658 | if test $succeeded = yes; then | |
14659 | ||
14660 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
14661 | LIBS="$LIBS $PANGOX_LIBS" | |
14662 | ||
14663 | else | |
14664 | ||
14665 | { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; } | |
14666 | ||
14667 | ||
14668 | fi | |
14669 | ||
14670 | ||
14671 | succeeded=no | |
14672 | ||
14673 | if test -z "$PKG_CONFIG"; then | |
14674 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14675 | set dummy pkg-config; ac_word=$2 | |
14676 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9b4d9d56 | 14677 | echo "configure:14678: checking for $ac_word" >&5 |
2b5f62a0 VZ |
14678 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
14679 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14680 | else | |
14681 | case "$PKG_CONFIG" in | |
14682 | /*) | |
14683 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14684 | ;; | |
14685 | ?:/*) | |
14686 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14687 | ;; | |
14688 | *) | |
14689 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14690 | ac_dummy="$PATH" | |
14691 | for ac_dir in $ac_dummy; do | |
14692 | test -z "$ac_dir" && ac_dir=. | |
14693 | if test -f $ac_dir/$ac_word; then | |
14694 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14695 | break | |
14696 | fi | |
14697 | done | |
14698 | IFS="$ac_save_ifs" | |
14699 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14700 | ;; | |
14701 | esac | |
14702 | fi | |
14703 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14704 | if test -n "$PKG_CONFIG"; then | |
14705 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14706 | else | |
14707 | echo "$ac_t""no" 1>&6 | |
14708 | fi | |
14709 | ||
14710 | fi | |
14711 | ||
14712 | if test "$PKG_CONFIG" = "no" ; then | |
14713 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14714 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14715 | echo "*** to the full path to pkg-config." | |
14716 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14717 | else | |
14718 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14719 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14720 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 | |
9b4d9d56 | 14721 | echo "configure:14722: checking for pangoft2" >&5 |
2b5f62a0 VZ |
14722 | |
14723 | if $PKG_CONFIG --exists "pangoft2" ; then | |
14724 | echo "$ac_t""yes" 1>&6 | |
14725 | succeeded=yes | |
14726 | ||
14727 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 | |
9b4d9d56 | 14728 | echo "configure:14729: checking PANGOFT2_CFLAGS" >&5 |
2b5f62a0 VZ |
14729 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
14730 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 | |
14731 | ||
14732 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 | |
9b4d9d56 | 14733 | echo "configure:14734: checking PANGOFT2_LIBS" >&5 |
2b5f62a0 VZ |
14734 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
14735 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 | |
14736 | else | |
14737 | PANGOFT2_CFLAGS="" | |
14738 | PANGOFT2_LIBS="" | |
14739 | ## If we have a custom action on failure, don't print errors, but | |
14740 | ## do set a variable so people can do so. | |
14741 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
14742 | ||
14743 | fi | |
14744 | ||
14745 | ||
14746 | ||
14747 | else | |
14748 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14749 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14750 | fi | |
14751 | fi | |
14752 | ||
14753 | if test $succeeded = yes; then | |
14754 | ||
14755 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
14756 | LIBS="$LIBS $PANGOFT2_LIBS" | |
14757 | ||
14758 | else | |
14759 | ||
14760 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
14761 | wxUSE_PRINTING_ARCHITECTURE="no" | |
14762 | ||
14763 | ||
14764 | fi | |
14765 | ||
14766 | ||
14767 | succeeded=no | |
14768 | ||
14769 | if test -z "$PKG_CONFIG"; then | |
14770 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14771 | set dummy pkg-config; ac_word=$2 | |
14772 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9b4d9d56 | 14773 | echo "configure:14774: checking for $ac_word" >&5 |
2b5f62a0 VZ |
14774 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
14775 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14776 | else | |
14777 | case "$PKG_CONFIG" in | |
14778 | /*) | |
14779 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14780 | ;; | |
14781 | ?:/*) | |
14782 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14783 | ;; | |
14784 | *) | |
14785 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14786 | ac_dummy="$PATH" | |
14787 | for ac_dir in $ac_dummy; do | |
14788 | test -z "$ac_dir" && ac_dir=. | |
14789 | if test -f $ac_dir/$ac_word; then | |
14790 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14791 | break | |
14792 | fi | |
14793 | done | |
14794 | IFS="$ac_save_ifs" | |
14795 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14796 | ;; | |
14797 | esac | |
14798 | fi | |
14799 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14800 | if test -n "$PKG_CONFIG"; then | |
14801 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14802 | else | |
14803 | echo "$ac_t""no" 1>&6 | |
14804 | fi | |
14805 | ||
14806 | fi | |
14807 | ||
14808 | if test "$PKG_CONFIG" = "no" ; then | |
14809 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14810 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14811 | echo "*** to the full path to pkg-config." | |
14812 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14813 | else | |
14814 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14815 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14816 | echo $ac_n "checking for pangoxft""... $ac_c" 1>&6 | |
9b4d9d56 | 14817 | echo "configure:14818: checking for pangoxft" >&5 |
2b5f62a0 VZ |
14818 | |
14819 | if $PKG_CONFIG --exists "pangoxft" ; then | |
14820 | echo "$ac_t""yes" 1>&6 | |
14821 | succeeded=yes | |
14822 | ||
14823 | echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6 | |
9b4d9d56 | 14824 | echo "configure:14825: checking PANGOXFT_CFLAGS" >&5 |
2b5f62a0 VZ |
14825 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
14826 | echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6 | |
14827 | ||
14828 | echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6 | |
9b4d9d56 | 14829 | echo "configure:14830: checking PANGOXFT_LIBS" >&5 |
2b5f62a0 VZ |
14830 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
14831 | echo "$ac_t""$PANGOXFT_LIBS" 1>&6 | |
14832 | else | |
14833 | PANGOXFT_CFLAGS="" | |
14834 | PANGOXFT_LIBS="" | |
14835 | ## If we have a custom action on failure, don't print errors, but | |
14836 | ## do set a variable so people can do so. | |
14837 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
14838 | ||
14839 | fi | |
14840 | ||
14841 | ||
14842 | ||
14843 | else | |
14844 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14845 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14846 | fi | |
14847 | fi | |
14848 | ||
14849 | if test $succeeded = yes; then | |
14850 | ||
14851 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
14852 | LIBS="$LIBS $PANGOXFT_LIBS" | |
14853 | ||
14854 | else | |
14855 | ||
14856 | echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2 | |
14857 | ||
14858 | ||
14859 | fi | |
14860 | ||
14861 | fi | |
14862 | ||
14863 | wxUSE_UNIVERSAL="yes" | |
14864 | ||
14865 | if test "$wxUSE_NANOX" = "yes"; then | |
14866 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
14867 | 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" | |
14868 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
14869 | else | |
14870 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
14871 | fi | |
14872 | ||
14873 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
14874 | TOOLKIT=X11 | |
14875 | GUIDIST=X11_DIST | |
14876 | fi | |
14877 | ||
21d1c967 GD |
14878 | if test "$wxUSE_MOTIF" = 1; then |
14879 | if test "$no_x" = yes; then | |
14880 | # Not all programs may use this symbol, but it does not hurt to define it. | |
a0b9e27f | 14881 | cat >> confdefs.h <<\EOF |
21d1c967 | 14882 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 14883 | EOF |
21d1c967 GD |
14884 | |
14885 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
14886 | else | |
14887 | if test -n "$x_includes"; then | |
14888 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
14889 | fi |
14890 | ||
21d1c967 GD |
14891 | # It would also be nice to do this for all -L options, not just this one. |
14892 | if test -n "$x_libraries"; then | |
14893 | X_LIBS="$X_LIBS -L$x_libraries" | |
14894 | # For Solaris; some versions of Sun CC require a space after -R and | |
14895 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 14896 | case "`(uname -sr) 2>/dev/null`" in |
21d1c967 | 14897 | "SunOS 5"*) |
a0b9e27f | 14898 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
9b4d9d56 | 14899 | echo "configure:14900: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
14900 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
14901 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 14902 | #line 14903 "configure" |
21d1c967 GD |
14903 | #include "confdefs.h" |
14904 | ||
a0b9e27f | 14905 | int main() { |
21d1c967 | 14906 | |
a0b9e27f MB |
14907 | ; return 0; } |
14908 | EOF | |
9b4d9d56 | 14909 | if { (eval echo configure:14910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14910 | rm -rf conftest* |
21d1c967 | 14911 | ac_R_nospace=yes |
698dcdb6 | 14912 | else |
a0b9e27f MB |
14913 | echo "configure: failed program was:" >&5 |
14914 | cat conftest.$ac_ext >&5 | |
14915 | rm -rf conftest* | |
14916 | ac_R_nospace=no | |
10f2d63a | 14917 | fi |
a0b9e27f | 14918 | rm -f conftest* |
21d1c967 | 14919 | if test $ac_R_nospace = yes; then |
a0b9e27f | 14920 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
14921 | X_LIBS="$X_LIBS -R$x_libraries" |
14922 | else | |
14923 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 14924 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 14925 | #line 14926 "configure" |
21d1c967 | 14926 | #include "confdefs.h" |
10f2d63a | 14927 | |
a0b9e27f | 14928 | int main() { |
f0c87536 | 14929 | |
a0b9e27f MB |
14930 | ; return 0; } |
14931 | EOF | |
9b4d9d56 | 14932 | if { (eval echo configure:14933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14933 | rm -rf conftest* |
21d1c967 GD |
14934 | ac_R_space=yes |
14935 | else | |
a0b9e27f MB |
14936 | echo "configure: failed program was:" >&5 |
14937 | cat conftest.$ac_ext >&5 | |
14938 | rm -rf conftest* | |
14939 | ac_R_space=no | |
21d1c967 | 14940 | fi |
a0b9e27f | 14941 | rm -f conftest* |
21d1c967 | 14942 | if test $ac_R_space = yes; then |
a0b9e27f | 14943 | echo "$ac_t""yes" 1>&6 |
21d1c967 GD |
14944 | X_LIBS="$X_LIBS -R $x_libraries" |
14945 | else | |
a0b9e27f | 14946 | echo "$ac_t""neither works" 1>&6 |
21d1c967 GD |
14947 | fi |
14948 | fi | |
a0b9e27f | 14949 | LIBS="$ac_xsave_LIBS" |
21d1c967 GD |
14950 | esac |
14951 | fi | |
90dd450c | 14952 | |
21d1c967 GD |
14953 | # Check for system-dependent libraries X programs must link with. |
14954 | # Do this before checking for the system-independent R6 libraries | |
14955 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
14956 | ||
14957 | if test "$ISC" = yes; then | |
14958 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
14959 | else | |
a0b9e27f MB |
14960 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
14961 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
21d1c967 | 14962 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 14963 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
9b4d9d56 | 14964 | echo "configure:14965: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
14965 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14966 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14967 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 14968 | else |
a0b9e27f | 14969 | ac_save_LIBS="$LIBS" |
247f5006 | 14970 | LIBS="-ldnet $LIBS" |
a0b9e27f | 14971 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 14972 | #line 14973 "configure" |
247f5006 | 14973 | #include "confdefs.h" |
247f5006 | 14974 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 14975 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14976 | builtin and then its argument prototype would still apply. */ |
14977 | char dnet_ntoa(); | |
14978 | ||
14979 | int main() { | |
14980 | dnet_ntoa() | |
14981 | ; return 0; } | |
14982 | EOF | |
9b4d9d56 | 14983 | if { (eval echo configure:14984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14984 | rm -rf conftest* |
14985 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14986 | else | |
14987 | echo "configure: failed program was:" >&5 | |
14988 | cat conftest.$ac_ext >&5 | |
14989 | rm -rf conftest* | |
14990 | eval "ac_cv_lib_$ac_lib_var=no" | |
14991 | fi | |
14992 | rm -f conftest* | |
14993 | LIBS="$ac_save_LIBS" | |
14994 | ||
14995 | fi | |
14996 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14997 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14998 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
14999 | else |
15000 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 | 15001 | fi |
0fb0dd83 | 15002 | |
21d1c967 | 15003 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 15004 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
9b4d9d56 | 15005 | echo "configure:15006: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
15006 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
15007 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15008 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15009 | else |
a0b9e27f | 15010 | ac_save_LIBS="$LIBS" |
21d1c967 | 15011 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 15012 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 15013 | #line 15014 "configure" |
21d1c967 GD |
15014 | #include "confdefs.h" |
15015 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15016 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15017 | builtin and then its argument prototype would still apply. */ |
15018 | char dnet_ntoa(); | |
15019 | ||
15020 | int main() { | |
15021 | dnet_ntoa() | |
15022 | ; return 0; } | |
15023 | EOF | |
9b4d9d56 | 15024 | if { (eval echo configure:15025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15025 | rm -rf conftest* |
15026 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15027 | else | |
15028 | echo "configure: failed program was:" >&5 | |
15029 | cat conftest.$ac_ext >&5 | |
15030 | rm -rf conftest* | |
15031 | eval "ac_cv_lib_$ac_lib_var=no" | |
15032 | fi | |
15033 | rm -f conftest* | |
15034 | LIBS="$ac_save_LIBS" | |
15035 | ||
15036 | fi | |
15037 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15038 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15039 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
15040 | else |
15041 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
15042 | fi |
15043 | ||
21d1c967 | 15044 | fi |
90dd450c | 15045 | |
21d1c967 GD |
15046 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
15047 | # to get the SysV transport functions. | |
a0b9e27f | 15048 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
15049 | # needs -lnsl. |
15050 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
15051 | # on Irix 5.2, according to dickey@clark.net. |
15052 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
9b4d9d56 | 15053 | echo "configure:15054: checking for gethostbyname" >&5 |
a0b9e27f MB |
15054 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
15055 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15056 | else | |
15057 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 15058 | #line 15059 "configure" |
21d1c967 GD |
15059 | #include "confdefs.h" |
15060 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15061 | which can conflict with char gethostbyname(); below. */ |
21d1c967 GD |
15062 | #include <assert.h> |
15063 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15064 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15065 | builtin and then its argument prototype would still apply. */ |
15066 | char gethostbyname(); | |
15067 | ||
15068 | int main() { | |
15069 | ||
21d1c967 GD |
15070 | /* The GNU C library defines this for functions which it implements |
15071 | to always fail with ENOSYS. Some functions are actually named | |
15072 | something starting with __ and the normal name is an alias. */ | |
15073 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
15074 | choke me | |
15075 | #else | |
a0b9e27f | 15076 | gethostbyname(); |
21d1c967 | 15077 | #endif |
90dd450c | 15078 | |
a0b9e27f MB |
15079 | ; return 0; } |
15080 | EOF | |
9b4d9d56 | 15081 | if { (eval echo configure:15082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15082 | rm -rf conftest* |
15083 | eval "ac_cv_func_gethostbyname=yes" | |
15084 | else | |
15085 | echo "configure: failed program was:" >&5 | |
15086 | cat conftest.$ac_ext >&5 | |
15087 | rm -rf conftest* | |
15088 | eval "ac_cv_func_gethostbyname=no" | |
15089 | fi | |
15090 | rm -f conftest* | |
15091 | fi | |
15092 | ||
15093 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
15094 | echo "$ac_t""yes" 1>&6 | |
15095 | : | |
15096 | else | |
15097 | echo "$ac_t""no" 1>&6 | |
15098 | fi | |
90dd450c | 15099 | |
21d1c967 | 15100 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 15101 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
9b4d9d56 | 15102 | echo "configure:15103: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
15103 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
15104 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15105 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15106 | else |
a0b9e27f | 15107 | ac_save_LIBS="$LIBS" |
21d1c967 | 15108 | LIBS="-lnsl $LIBS" |
a0b9e27f | 15109 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 15110 | #line 15111 "configure" |
21d1c967 GD |
15111 | #include "confdefs.h" |
15112 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15113 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15114 | builtin and then its argument prototype would still apply. */ |
15115 | char gethostbyname(); | |
5c6fa7d2 | 15116 | |
a0b9e27f MB |
15117 | int main() { |
15118 | gethostbyname() | |
15119 | ; return 0; } | |
15120 | EOF | |
9b4d9d56 | 15121 | if { (eval echo configure:15122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15122 | rm -rf conftest* |
15123 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 15124 | else |
a0b9e27f MB |
15125 | echo "configure: failed program was:" >&5 |
15126 | cat conftest.$ac_ext >&5 | |
15127 | rm -rf conftest* | |
15128 | eval "ac_cv_lib_$ac_lib_var=no" | |
15129 | fi | |
15130 | rm -f conftest* | |
15131 | LIBS="$ac_save_LIBS" | |
247f5006 | 15132 | |
a0b9e27f MB |
15133 | fi |
15134 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15135 | echo "$ac_t""yes" 1>&6 | |
15136 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
15137 | else | |
15138 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15139 | fi |
90dd450c | 15140 | |
90dd450c VZ |
15141 | fi |
15142 | ||
21d1c967 GD |
15143 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
15144 | # socket/setsockopt and other routines are undefined under SCO ODT | |
15145 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
15146 | # on later versions), says simon@lia.di.epfl.ch: it contains |
15147 | # gethostby* variants that don't use the nameserver (or something). | |
15148 | # -lsocket must be given before -lnsl if both are needed. | |
15149 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
15150 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
9b4d9d56 | 15151 | echo "configure:15152: checking for connect" >&5 |
a0b9e27f MB |
15152 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
15153 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15154 | else | |
15155 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 15156 | #line 15157 "configure" |
21d1c967 GD |
15157 | #include "confdefs.h" |
15158 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15159 | which can conflict with char connect(); below. */ |
21d1c967 GD |
15160 | #include <assert.h> |
15161 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15162 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15163 | builtin and then its argument prototype would still apply. */ |
15164 | char connect(); | |
15165 | ||
15166 | int main() { | |
15167 | ||
21d1c967 GD |
15168 | /* The GNU C library defines this for functions which it implements |
15169 | to always fail with ENOSYS. Some functions are actually named | |
15170 | something starting with __ and the normal name is an alias. */ | |
15171 | #if defined (__stub_connect) || defined (__stub___connect) | |
15172 | choke me | |
15173 | #else | |
a0b9e27f | 15174 | connect(); |
21d1c967 | 15175 | #endif |
90dd450c | 15176 | |
a0b9e27f MB |
15177 | ; return 0; } |
15178 | EOF | |
9b4d9d56 | 15179 | if { (eval echo configure:15180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15180 | rm -rf conftest* |
15181 | eval "ac_cv_func_connect=yes" | |
15182 | else | |
15183 | echo "configure: failed program was:" >&5 | |
15184 | cat conftest.$ac_ext >&5 | |
15185 | rm -rf conftest* | |
15186 | eval "ac_cv_func_connect=no" | |
15187 | fi | |
15188 | rm -f conftest* | |
15189 | fi | |
15190 | ||
15191 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
15192 | echo "$ac_t""yes" 1>&6 | |
15193 | : | |
15194 | else | |
15195 | echo "$ac_t""no" 1>&6 | |
15196 | fi | |
1f8ae82f | 15197 | |
21d1c967 | 15198 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 15199 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
9b4d9d56 | 15200 | echo "configure:15201: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
15201 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
15202 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15203 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0fbb762e | 15204 | else |
a0b9e27f | 15205 | ac_save_LIBS="$LIBS" |
21d1c967 | 15206 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 15207 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 15208 | #line 15209 "configure" |
0fbb762e | 15209 | #include "confdefs.h" |
21d1c967 GD |
15210 | /* Override any gcc2 internal prototype to avoid an error. */ |
15211 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15212 | builtin and then its argument prototype would still apply. */ |
15213 | char connect(); | |
15214 | ||
15215 | int main() { | |
15216 | connect() | |
15217 | ; return 0; } | |
15218 | EOF | |
9b4d9d56 | 15219 | if { (eval echo configure:15220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15220 | rm -rf conftest* |
15221 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15222 | else | |
15223 | echo "configure: failed program was:" >&5 | |
15224 | cat conftest.$ac_ext >&5 | |
15225 | rm -rf conftest* | |
15226 | eval "ac_cv_lib_$ac_lib_var=no" | |
15227 | fi | |
15228 | rm -f conftest* | |
15229 | LIBS="$ac_save_LIBS" | |
15230 | ||
15231 | fi | |
15232 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15233 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15234 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
15235 | else |
15236 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15237 | fi |
90dd450c | 15238 | |
21d1c967 | 15239 | fi |
90dd450c | 15240 | |
a0b9e27f MB |
15241 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
15242 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
9b4d9d56 | 15243 | echo "configure:15244: checking for remove" >&5 |
a0b9e27f MB |
15244 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
15245 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15246 | else |
a0b9e27f | 15247 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 15248 | #line 15249 "configure" |
21d1c967 GD |
15249 | #include "confdefs.h" |
15250 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15251 | which can conflict with char remove(); below. */ |
21d1c967 GD |
15252 | #include <assert.h> |
15253 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15254 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15255 | builtin and then its argument prototype would still apply. */ |
15256 | char remove(); | |
15257 | ||
15258 | int main() { | |
15259 | ||
21d1c967 GD |
15260 | /* The GNU C library defines this for functions which it implements |
15261 | to always fail with ENOSYS. Some functions are actually named | |
15262 | something starting with __ and the normal name is an alias. */ | |
15263 | #if defined (__stub_remove) || defined (__stub___remove) | |
15264 | choke me | |
15265 | #else | |
a0b9e27f | 15266 | remove(); |
21d1c967 | 15267 | #endif |
90dd450c | 15268 | |
a0b9e27f MB |
15269 | ; return 0; } |
15270 | EOF | |
9b4d9d56 | 15271 | if { (eval echo configure:15272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15272 | rm -rf conftest* |
15273 | eval "ac_cv_func_remove=yes" | |
15274 | else | |
15275 | echo "configure: failed program was:" >&5 | |
15276 | cat conftest.$ac_ext >&5 | |
15277 | rm -rf conftest* | |
15278 | eval "ac_cv_func_remove=no" | |
15279 | fi | |
15280 | rm -f conftest* | |
15281 | fi | |
15282 | ||
15283 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
15284 | echo "$ac_t""yes" 1>&6 | |
15285 | : | |
15286 | else | |
15287 | echo "$ac_t""no" 1>&6 | |
15288 | fi | |
90dd450c | 15289 | |
21d1c967 | 15290 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 15291 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
9b4d9d56 | 15292 | echo "configure:15293: checking for remove in -lposix" >&5 |
a0b9e27f MB |
15293 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
15294 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15295 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15296 | else |
a0b9e27f | 15297 | ac_save_LIBS="$LIBS" |
21d1c967 | 15298 | LIBS="-lposix $LIBS" |
a0b9e27f | 15299 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 15300 | #line 15301 "configure" |
21d1c967 GD |
15301 | #include "confdefs.h" |
15302 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15303 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15304 | builtin and then its argument prototype would still apply. */ |
15305 | char remove(); | |
15306 | ||
15307 | int main() { | |
15308 | remove() | |
15309 | ; return 0; } | |
15310 | EOF | |
9b4d9d56 | 15311 | if { (eval echo configure:15312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15312 | rm -rf conftest* |
15313 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15314 | else | |
15315 | echo "configure: failed program was:" >&5 | |
15316 | cat conftest.$ac_ext >&5 | |
15317 | rm -rf conftest* | |
15318 | eval "ac_cv_lib_$ac_lib_var=no" | |
15319 | fi | |
15320 | rm -f conftest* | |
15321 | LIBS="$ac_save_LIBS" | |
15322 | ||
15323 | fi | |
15324 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15325 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15326 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
15327 | else |
15328 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15329 | fi |
19bc6aad | 15330 | |
90dd450c | 15331 | fi |
19bc6aad | 15332 | |
21d1c967 | 15333 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 15334 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
9b4d9d56 | 15335 | echo "configure:15336: checking for shmat" >&5 |
a0b9e27f MB |
15336 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
15337 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15338 | else |
a0b9e27f | 15339 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 15340 | #line 15341 "configure" |
21d1c967 GD |
15341 | #include "confdefs.h" |
15342 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15343 | which can conflict with char shmat(); below. */ |
21d1c967 GD |
15344 | #include <assert.h> |
15345 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15346 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15347 | builtin and then its argument prototype would still apply. */ |
15348 | char shmat(); | |
15349 | ||
15350 | int main() { | |
15351 | ||
21d1c967 GD |
15352 | /* The GNU C library defines this for functions which it implements |
15353 | to always fail with ENOSYS. Some functions are actually named | |
15354 | something starting with __ and the normal name is an alias. */ | |
15355 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
15356 | choke me | |
15357 | #else | |
a0b9e27f | 15358 | shmat(); |
21d1c967 | 15359 | #endif |
90dd450c | 15360 | |
a0b9e27f MB |
15361 | ; return 0; } |
15362 | EOF | |
9b4d9d56 | 15363 | if { (eval echo configure:15364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15364 | rm -rf conftest* |
15365 | eval "ac_cv_func_shmat=yes" | |
15366 | else | |
15367 | echo "configure: failed program was:" >&5 | |
15368 | cat conftest.$ac_ext >&5 | |
15369 | rm -rf conftest* | |
15370 | eval "ac_cv_func_shmat=no" | |
15371 | fi | |
15372 | rm -f conftest* | |
15373 | fi | |
15374 | ||
15375 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
15376 | echo "$ac_t""yes" 1>&6 | |
15377 | : | |
15378 | else | |
15379 | echo "$ac_t""no" 1>&6 | |
15380 | fi | |
19bc6aad | 15381 | |
21d1c967 | 15382 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 15383 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
9b4d9d56 | 15384 | echo "configure:15385: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
15385 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
15386 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15387 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 | 15388 | else |
a0b9e27f | 15389 | ac_save_LIBS="$LIBS" |
5c6fa7d2 | 15390 | LIBS="-lipc $LIBS" |
a0b9e27f | 15391 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 15392 | #line 15393 "configure" |
5c6fa7d2 | 15393 | #include "confdefs.h" |
5c6fa7d2 | 15394 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 15395 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
15396 | builtin and then its argument prototype would still apply. */ |
15397 | char shmat(); | |
15398 | ||
15399 | int main() { | |
15400 | shmat() | |
15401 | ; return 0; } | |
15402 | EOF | |
9b4d9d56 | 15403 | if { (eval echo configure:15404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15404 | rm -rf conftest* |
15405 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15406 | else | |
15407 | echo "configure: failed program was:" >&5 | |
15408 | cat conftest.$ac_ext >&5 | |
15409 | rm -rf conftest* | |
15410 | eval "ac_cv_lib_$ac_lib_var=no" | |
15411 | fi | |
15412 | rm -f conftest* | |
15413 | LIBS="$ac_save_LIBS" | |
15414 | ||
15415 | fi | |
15416 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15417 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15418 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
15419 | else |
15420 | echo "$ac_t""no" 1>&6 | |
9f8148b1 | 15421 | fi |
90dd450c | 15422 | |
90dd450c | 15423 | fi |
21d1c967 | 15424 | fi |
10f2d63a | 15425 | |
21d1c967 | 15426 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 15427 | ac_save_LDFLAGS="$LDFLAGS" |
21d1c967 GD |
15428 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
15429 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
15430 | # check for ICE first), but we must link in the order -lSM -lICE or | |
15431 | # we get undefined symbols. So assume we have SM if we have ICE. | |
15432 | # These have to be linked with before -lX11, unlike the other | |
15433 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
15434 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
15435 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
9b4d9d56 | 15436 | echo "configure:15437: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
15437 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
15438 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15439 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15440 | else | |
15441 | ac_save_LIBS="$LIBS" | |
f09359cf | 15442 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 15443 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 15444 | #line 15445 "configure" |
29fd3c0c | 15445 | #include "confdefs.h" |
21d1c967 GD |
15446 | /* Override any gcc2 internal prototype to avoid an error. */ |
15447 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15448 | builtin and then its argument prototype would still apply. */ |
15449 | char IceConnectionNumber(); | |
15450 | ||
15451 | int main() { | |
15452 | IceConnectionNumber() | |
15453 | ; return 0; } | |
15454 | EOF | |
9b4d9d56 | 15455 | if { (eval echo configure:15456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15456 | rm -rf conftest* |
15457 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15458 | else | |
15459 | echo "configure: failed program was:" >&5 | |
15460 | cat conftest.$ac_ext >&5 | |
15461 | rm -rf conftest* | |
15462 | eval "ac_cv_lib_$ac_lib_var=no" | |
15463 | fi | |
15464 | rm -f conftest* | |
15465 | LIBS="$ac_save_LIBS" | |
15466 | ||
15467 | fi | |
15468 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15469 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15470 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
15471 | else |
15472 | echo "$ac_t""no" 1>&6 | |
29fd3c0c | 15473 | fi |
21d1c967 | 15474 | |
a0b9e27f | 15475 | LDFLAGS="$ac_save_LDFLAGS" |
29fd3c0c | 15476 | |
10f2d63a VZ |
15477 | fi |
15478 | ||
8284b0c5 | 15479 | |
21d1c967 | 15480 | if test "$no_x" = "yes"; then |
a0b9e27f | 15481 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
21d1c967 GD |
15482 | fi |
15483 | ||
2b5f62a0 VZ |
15484 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
15485 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
15486 | AFMINSTALL=afminstall |
15487 | COMPILED_X_PROGRAM=0 | |
15488 | ||
a0b9e27f | 15489 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
9b4d9d56 | 15490 | echo "configure:15491: checking for Motif/Lesstif headers" >&5 |
a0b9e27f | 15491 | |
21d1c967 | 15492 | ac_find_includes= |
2b5f62a0 | 15493 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
15494 | do |
15495 | if test -f "$ac_dir/Xm/Xm.h"; then | |
15496 | ac_find_includes=$ac_dir | |
15497 | break | |
15498 | fi | |
15499 | done | |
15500 | ||
15501 | if test "$ac_find_includes" != "" ; then | |
a0b9e27f MB |
15502 | echo "$ac_t""found in $ac_find_includes" 1>&6 |
15503 | ||
2b5f62a0 | 15504 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
15505 | ac_path_to_include="" |
15506 | else | |
2b5f62a0 VZ |
15507 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
15508 | result=$? | |
15509 | if test $result = 0; then | |
15510 | ac_path_to_include="" | |
15511 | else | |
15512 | ac_path_to_include=" -I$ac_find_includes" | |
15513 | fi | |
dd0e4a90 VZ |
15514 | fi |
15515 | ||
15516 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 15517 | else |
a0b9e27f | 15518 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 15519 | #line 15520 "configure" |
10f2d63a | 15520 | #include "confdefs.h" |
21d1c967 GD |
15521 | |
15522 | #include <Xm/Xm.h> | |
a0b9e27f MB |
15523 | |
15524 | int main() { | |
21d1c967 GD |
15525 | |
15526 | int version; | |
15527 | version = xmUseVersion; | |
a0b9e27f MB |
15528 | |
15529 | ; return 0; } | |
15530 | EOF | |
9b4d9d56 | 15531 | if { (eval echo configure:15532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15532 | rm -rf conftest* |
15533 | ||
15534 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 15535 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 15536 | |
10f2d63a | 15537 | else |
a0b9e27f MB |
15538 | echo "configure: failed program was:" >&5 |
15539 | cat conftest.$ac_ext >&5 | |
15540 | rm -rf conftest* | |
15541 | ||
15542 | echo "$ac_t""no" 1>&6 | |
15543 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
15544 | ||
15545 | ||
10f2d63a | 15546 | fi |
a0b9e27f | 15547 | rm -f conftest* |
21d1c967 | 15548 | fi |
10f2d63a | 15549 | |
21d1c967 | 15550 | if test "$COMPILED_X_PROGRAM" = 0; then |
a0b9e27f | 15551 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 |
9b4d9d56 | 15552 | echo "configure:15553: checking for Motif/Lesstif library" >&5 |
a0b9e27f | 15553 | |
21d1c967 | 15554 | ac_find_libraries= |
2b5f62a0 | 15555 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15556 | do |
15557 | for ac_extension in a so sl dylib; do | |
15558 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
15559 | ac_find_libraries=$ac_dir | |
15560 | break 2 | |
15561 | fi | |
15562 | done | |
15563 | done | |
15564 | ||
15565 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15566 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15567 | |
a0b9e27f | 15568 | |
21d1c967 GD |
15569 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15570 | result=$? | |
15571 | if test $result = 0; then | |
15572 | ac_path_to_link="" | |
15573 | else | |
15574 | ac_path_to_link=" -L$ac_find_libraries" | |
15575 | fi | |
15576 | ||
21d1c967 | 15577 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 15578 | else |
dd0e4a90 VZ |
15579 | save_CFLAGS=$CFLAGS |
15580 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15581 | ||
a0b9e27f | 15582 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 15583 | #line 15584 "configure" |
d836ee96 | 15584 | #include "confdefs.h" |
21d1c967 GD |
15585 | |
15586 | #include <Xm/Xm.h> | |
a0b9e27f MB |
15587 | |
15588 | int main() { | |
21d1c967 GD |
15589 | |
15590 | int version; | |
15591 | version = xmUseVersion; | |
a0b9e27f MB |
15592 | |
15593 | ; return 0; } | |
15594 | EOF | |
9b4d9d56 | 15595 | if { (eval echo configure:15596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15596 | rm -rf conftest* |
15597 | ||
15598 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 15599 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 15600 | |
d836ee96 | 15601 | else |
a0b9e27f MB |
15602 | echo "configure: failed program was:" >&5 |
15603 | cat conftest.$ac_ext >&5 | |
15604 | rm -rf conftest* | |
15605 | ||
15606 | echo "$ac_t""no" 1>&6 | |
15607 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
15608 | ||
15609 | ||
d836ee96 | 15610 | fi |
a0b9e27f | 15611 | rm -f conftest* |
dd0e4a90 VZ |
15612 | |
15613 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15614 | fi |
15615 | fi | |
15616 | ||
15617 | xpm_link= | |
a0b9e27f | 15618 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
9b4d9d56 | 15619 | echo "configure:15620: checking for Xpm library" >&5 |
a0b9e27f | 15620 | |
21d1c967 | 15621 | ac_find_libraries= |
2b5f62a0 | 15622 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15623 | do |
15624 | for ac_extension in a so sl dylib; do | |
15625 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
15626 | ac_find_libraries=$ac_dir | |
15627 | break 2 | |
15628 | fi | |
15629 | done | |
15630 | done | |
15631 | ||
15632 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15633 | |
21d1c967 GD |
15634 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15635 | result=$? | |
15636 | if test $result = 0; then | |
15637 | ac_path_to_link="" | |
15638 | else | |
15639 | ac_path_to_link=" -L$ac_find_libraries" | |
15640 | fi | |
15641 | ||
15642 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 15643 | |
21d1c967 | 15644 | xpm_link=" -lXpm" |
a0b9e27f | 15645 | cat >> confdefs.h <<\EOF |
21d1c967 | 15646 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15647 | EOF |
90dd450c | 15648 | |
a0b9e27f | 15649 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15650 | else |
dd0e4a90 VZ |
15651 | save_CFLAGS=$CFLAGS |
15652 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15653 | ||
a0b9e27f | 15654 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 15655 | #line 15656 "configure" |
d836ee96 | 15656 | #include "confdefs.h" |
21d1c967 GD |
15657 | |
15658 | #include <X11/xpm.h> | |
a0b9e27f MB |
15659 | |
15660 | int main() { | |
21d1c967 GD |
15661 | |
15662 | int version; | |
15663 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
15664 | |
15665 | ; return 0; } | |
15666 | EOF | |
9b4d9d56 | 15667 | if { (eval echo configure:15668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15668 | rm -rf conftest* |
15669 | ||
21d1c967 | 15670 | xpm_link=" -lXpm" |
a0b9e27f | 15671 | cat >> confdefs.h <<\EOF |
21d1c967 | 15672 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15673 | EOF |
21d1c967 | 15674 | |
a0b9e27f | 15675 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 15676 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 15677 | |
d836ee96 | 15678 | else |
a0b9e27f MB |
15679 | echo "configure: failed program was:" >&5 |
15680 | cat conftest.$ac_ext >&5 | |
15681 | rm -rf conftest* | |
15682 | ||
15683 | echo "$ac_t""no" 1>&6 | |
15684 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
15685 | ||
15686 | ||
d836ee96 | 15687 | fi |
a0b9e27f | 15688 | rm -f conftest* |
dd0e4a90 VZ |
15689 | |
15690 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15691 | fi |
15692 | ||
a0b9e27f | 15693 | echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6 |
9b4d9d56 | 15694 | echo "configure:15695: checking if we need -lXp and/or -lSM -lICE" >&5 |
6a30f1c8 MB |
15695 | libp_link="" |
15696 | libsm_ice_link="" | |
15697 | libs_found=0 | |
15698 | for libp in "" " -lXp"; do | |
15699 | if test "$libs_found" = "0"; then | |
15700 | for libsm_ice in " -lSM -lICE"; do | |
e26c13cf | 15701 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
15702 | save_LIBS="$LIBS" |
15703 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
15704 | save_CFLAGS=$CFLAGS |
15705 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15706 | ||
a0b9e27f | 15707 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 15708 | #line 15709 "configure" |
6a30f1c8 | 15709 | #include "confdefs.h" |
17234b26 | 15710 | |
6a30f1c8 MB |
15711 | #include <Xm/Xm.h> |
15712 | #include <Xm/List.h> | |
a0b9e27f MB |
15713 | |
15714 | int main() { | |
6a30f1c8 MB |
15715 | |
15716 | XmString string = NULL; | |
15717 | Widget w = NULL; | |
15718 | int position = 0; | |
15719 | XmListAddItem(w, string, position); | |
a0b9e27f MB |
15720 | |
15721 | ; return 0; } | |
15722 | EOF | |
9b4d9d56 | 15723 | if { (eval echo configure:15724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15724 | rm -rf conftest* |
15725 | ||
6a30f1c8 MB |
15726 | libp_link="$libp" |
15727 | libsm_ice_link="$libsm_ice" | |
a0b9e27f | 15728 | echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6 |
6a30f1c8 | 15729 | libs_found=1 |
a0b9e27f | 15730 | |
6a30f1c8 | 15731 | else |
a0b9e27f MB |
15732 | echo "configure: failed program was:" >&5 |
15733 | cat conftest.$ac_ext >&5 | |
15734 | rm -rf conftest* | |
15735 | ||
15736 | ||
6a30f1c8 | 15737 | fi |
a0b9e27f | 15738 | rm -f conftest* |
dd0e4a90 | 15739 | |
6a30f1c8 | 15740 | LIBS="$save_LIBS" |
dd0e4a90 | 15741 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
15742 | fi |
15743 | done | |
15744 | fi | |
15745 | done | |
15746 | ||
15747 | if test "$libs_found" = "0"; then | |
a0b9e27f MB |
15748 | echo "$ac_t""can't find the right libraries" 1>&6 |
15749 | { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; } | |
6a30f1c8 MB |
15750 | fi |
15751 | ||
da494b40 MB |
15752 | save_CFLAGS=$CFLAGS |
15753 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15754 | echo $ac_n "checking for Motif 2""... $ac_c" 1>&6 | |
9b4d9d56 | 15755 | echo "configure:15756: checking for Motif 2" >&5 |
da494b40 | 15756 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 15757 | #line 15758 "configure" |
da494b40 MB |
15758 | #include "confdefs.h" |
15759 | ||
15760 | #include <Xm/Xm.h> | |
15761 | ||
15762 | int main() { | |
15763 | ||
15764 | #if XmVersion < 2000 | |
15765 | #error "Not Motif 2" | |
15766 | #endif | |
15767 | ||
15768 | ; return 0; } | |
15769 | EOF | |
9b4d9d56 | 15770 | if { (eval echo configure:15771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
da494b40 MB |
15771 | rm -rf conftest* |
15772 | ||
15773 | cat >> confdefs.h <<\EOF | |
15774 | #define __WXMOTIF20__ 1 | |
15775 | EOF | |
15776 | ||
15777 | echo "$ac_t""found" 1>&6 | |
15778 | ||
15779 | else | |
15780 | echo "configure: failed program was:" >&5 | |
15781 | cat conftest.$ac_ext >&5 | |
15782 | rm -rf conftest* | |
15783 | ||
15784 | cat >> confdefs.h <<\EOF | |
15785 | #define __WXMOTIF20__ 0 | |
15786 | EOF | |
15787 | ||
15788 | echo "$ac_t""not found" 1>&6 | |
15789 | ||
15790 | fi | |
15791 | rm -f conftest* | |
15792 | CFLAGS=$save_CFLAGS | |
15793 | ||
6a30f1c8 | 15794 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
69c44812 | 15795 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" |
21d1c967 GD |
15796 | TOOLKIT=MOTIF |
15797 | GUIDIST=MOTIF_DIST | |
15798 | fi | |
15799 | ||
15800 | if test "$wxUSE_MAC" = 1; then | |
0c98a14e | 15801 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" |
21d1c967 | 15802 | |
0c98a14e | 15803 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
15804 | TOOLKIT=MAC |
15805 | GUIDIST=MACX_DIST | |
15806 | fi | |
15807 | ||
ac0c4cc3 DE |
15808 | if test "$wxUSE_COCOA" = 1; then |
15809 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
15810 | TOOLKIT=COCOA | |
15811 | GUIDIST=COCOA_DIST | |
15812 | fi | |
15813 | ||
21d1c967 GD |
15814 | if test "$wxUSE_PM" = 1; then |
15815 | TOOLKIT=PM | |
15816 | GUIDIST=GTK_DIST | |
2b5f62a0 | 15817 | echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2 |
f657dbe7 MB |
15818 | wxUSE_PROLOGIO="yes" |
15819 | wxUSE_RESOURCES="yes" | |
2b5f62a0 | 15820 | echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2 |
f657dbe7 | 15821 | wxUSE_THREADS="no" |
21d1c967 GD |
15822 | fi |
15823 | ||
15824 | if test "$TOOLKIT" = "PM" ; then | |
15825 | TOOLKIT_DIR="os2" | |
15826 | else | |
15827 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
15828 | fi | |
15829 | ||
15830 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
15831 | ||
15832 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
15833 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
15834 | ||
15835 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
15836 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
15837 | ||
15838 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
15839 | if test "$wxUSE_X11" = 1; then | |
15840 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
15841 | else | |
15842 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
15843 | fi | |
15844 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
15845 | WIDGET_SET=univ | |
15846 | else | |
15847 | ALL_OBJECTS="\$(GUIOBJS)" | |
15848 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15849 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15850 | fi | |
15851 | ||
15852 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
15853 | ||
15854 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
15855 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
15856 | fi | |
15857 | ||
15858 | if test "$wxUSE_HTML" = "yes"; then | |
15859 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
15860 | fi | |
15861 | ||
15862 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
15863 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
15864 | fi | |
15865 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
15866 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
15867 | fi | |
15868 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
15869 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
15870 | fi | |
15871 | ||
15872 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
15873 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 15874 | else |
21d1c967 GD |
15875 | USE_GUI=0 |
15876 | ||
15877 | TOOLKIT_DIR="base" | |
15878 | ||
15879 | if test "$USE_WIN32" = 1 ; then | |
15880 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
15881 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
15882 | ||
15883 | TOOLKIT="MSW" | |
15884 | else | |
15885 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
15886 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
15887 | fi | |
15888 | ||
15889 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15890 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15891 | ||
15892 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
15893 | ||
15894 | GUIDIST="BASE_DIST" | |
15895 | DISTDIR="wxBase" | |
d836ee96 VZ |
15896 | fi |
15897 | ||
8284b0c5 | 15898 | |
21d1c967 GD |
15899 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
15900 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
6232543b | 15901 | fi |
21d1c967 GD |
15902 | |
15903 | if test "$wxUSE_REGEX" = "builtin" ; then | |
15904 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 15905 | fi |
21d1c967 GD |
15906 | if test "$wxUSE_ZLIB" = "builtin" ; then |
15907 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
15908 | fi |
15909 | ||
8284b0c5 | 15910 | |
21d1c967 | 15911 | if test "$wxUSE_OPENGL" = "yes"; then |
ac0c4cc3 | 15912 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
21d1c967 GD |
15913 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
15914 | elif test "$wxUSE_MSW" = 1; then | |
15915 | OPENGL_LIBS="-lopengl32 -lglu32" | |
15916 | else | |
a0b9e27f MB |
15917 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
15918 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
9b4d9d56 | 15919 | echo "configure:15920: checking for GL/gl.h" >&5 |
a0b9e27f MB |
15920 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15921 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15922 | else | |
15923 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 15924 | #line 15925 "configure" |
10f2d63a | 15925 | #include "confdefs.h" |
21d1c967 | 15926 | #include <GL/gl.h> |
a0b9e27f MB |
15927 | EOF |
15928 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 15929 | { (eval echo configure:15930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
15930 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15931 | if test -z "$ac_err"; then | |
15932 | rm -rf conftest* | |
15933 | eval "ac_cv_header_$ac_safe=yes" | |
15934 | else | |
15935 | echo "$ac_err" >&5 | |
15936 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 15937 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
15938 | rm -rf conftest* |
15939 | eval "ac_cv_header_$ac_safe=no" | |
703e0a69 | 15940 | fi |
a0b9e27f | 15941 | rm -f conftest* |
698dcdb6 | 15942 | fi |
a0b9e27f MB |
15943 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15944 | echo "$ac_t""yes" 1>&6 | |
15945 | ||
15946 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
9b4d9d56 | 15947 | echo "configure:15948: checking for -lGL" >&5 |
a0b9e27f | 15948 | |
21d1c967 | 15949 | ac_find_libraries= |
2b5f62a0 | 15950 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15951 | do |
15952 | for ac_extension in a so sl dylib; do | |
15953 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
15954 | ac_find_libraries=$ac_dir | |
15955 | break 2 | |
15956 | fi | |
15957 | done | |
15958 | done | |
15959 | ||
15960 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15961 | |
21d1c967 GD |
15962 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15963 | result=$? | |
15964 | if test $result = 0; then | |
15965 | ac_path_to_link="" | |
15966 | else | |
15967 | ac_path_to_link=" -L$ac_find_libraries" | |
15968 | fi | |
15969 | ||
15970 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
15971 | LDFLAGS_GL="$LDFLAGS" | |
15972 | else | |
15973 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15974 | fi | |
15975 | OPENGL_LIBS="-lGL -lGLU" | |
a0b9e27f | 15976 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 15977 | else |
a0b9e27f MB |
15978 | echo "$ac_t""no" 1>&6 |
15979 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
9b4d9d56 | 15980 | echo "configure:15981: checking for -lMesaGL" >&5 |
a0b9e27f | 15981 | |
21d1c967 | 15982 | ac_find_libraries= |
2b5f62a0 | 15983 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15984 | do |
15985 | for ac_extension in a so sl dylib; do | |
15986 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
15987 | ac_find_libraries=$ac_dir | |
15988 | break 2 | |
15989 | fi | |
15990 | done | |
15991 | done | |
15992 | ||
15993 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15994 | |
21d1c967 GD |
15995 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15996 | result=$? | |
15997 | if test $result = 0; then | |
15998 | ac_path_to_link="" | |
15999 | else | |
16000 | ac_path_to_link=" -L$ac_find_libraries" | |
16001 | fi | |
16002 | ||
16003 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
16004 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
a0b9e27f | 16005 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 16006 | else |
a0b9e27f | 16007 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
16008 | fi |
16009 | fi | |
a0b9e27f MB |
16010 | |
16011 | else | |
16012 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 16013 | fi |
52127426 | 16014 | |
8284b0c5 | 16015 | |
21d1c967 | 16016 | if test "x$OPENGL_LIBS" = "x"; then |
a0b9e27f | 16017 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } |
21d1c967 GD |
16018 | fi |
16019 | fi | |
90dd450c | 16020 | |
21d1c967 | 16021 | if test "$wxUSE_OPENGL" = "yes"; then |
a0b9e27f | 16022 | cat >> confdefs.h <<\EOF |
21d1c967 | 16023 | #define wxUSE_OPENGL 1 |
a0b9e27f | 16024 | EOF |
21d1c967 | 16025 | |
a0b9e27f | 16026 | cat >> confdefs.h <<\EOF |
21d1c967 | 16027 | #define wxUSE_GLCANVAS 1 |
a0b9e27f | 16028 | EOF |
21d1c967 GD |
16029 | |
16030 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
16031 | fi | |
10f2d63a | 16032 | fi |
21d1c967 GD |
16033 | |
16034 | if test -z "$TOOLKIT_VPATH" ; then | |
16035 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 16036 | fi |
21d1c967 GD |
16037 | |
16038 | if test -n "$TOOLKIT" ; then | |
16039 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
16040 | fi | |
16041 | ||
16042 | lib_unicode_suffix= | |
16043 | if test "$wxUSE_UNICODE" = "yes"; then | |
16044 | lib_unicode_suffix=u | |
90dd450c | 16045 | fi |
698dcdb6 | 16046 | |
21d1c967 GD |
16047 | lib_debug_suffix= |
16048 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
16049 | lib_debug_suffix=d | |
16050 | fi | |
698dcdb6 | 16051 | |
2b5f62a0 VZ |
16052 | WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
16053 | ||
16054 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
16055 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
16056 | |
16057 | if test "$cross_compiling" = "yes"; then | |
16058 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
16059 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
16060 | fi | |
16061 | ||
16062 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
16063 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
2b5f62a0 | 16064 | WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" |
21d1c967 GD |
16065 | |
16066 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
16067 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
16068 | ||
16069 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
16070 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
16071 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
16072 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16073 | ||
16074 | case "${host}" in | |
16075 | *-*-cygwin* | *-*-mingw32* ) | |
16076 | ||
a0b9e27f MB |
16077 | |
16078 | ||
17234b26 | 16079 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
16080 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
16081 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
16082 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
16083 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16084 | else | |
16085 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
16086 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16087 | fi | |
16088 | ;; | |
16089 | ||
16090 | *-*-darwin* ) | |
0c98a14e | 16091 | |
05159a27 GD |
16092 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
16093 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
16094 | ||
16095 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
16096 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
16097 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
16098 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16099 | ||
21d1c967 | 16100 | if test "$wxUSE_MAC" = 1; then |
f346733b GD |
16101 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" |
16102 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
21d1c967 GD |
16103 | fi |
16104 | ;; | |
16105 | esac | |
16106 | ||
16107 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
16108 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
16109 | ||
16110 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
16111 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
16112 | ||
16113 | if test "$wxUSE_OPENGL" = "yes"; then | |
16114 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
16115 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
16116 | fi | |
16117 | ||
8284b0c5 MB |
16118 | |
16119 | ||
21d1c967 GD |
16120 | if test "$wxUSE_SHARED" = "yes"; then |
16121 | case "${host}" in | |
16122 | *-pc-os2_emx | *-pc-os2-emx | \ | |
16123 | *-pc-msdosdjgpp ) | |
16124 | wxUSE_SHARED=no | |
a0b9e27f | 16125 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 |
21d1c967 GD |
16126 | ;; |
16127 | esac | |
16128 | fi | |
16129 | ||
2b5f62a0 VZ |
16130 | if test "$wxUSE_SHARED" = "yes"; then |
16131 | ||
16132 | if test "$wxUSE_OPENGL" = "yes"; then | |
16133 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
16134 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
16135 | else | |
16136 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
16137 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
16138 | fi | |
16139 | ||
16140 | if test "$GCC" = "yes"; then | |
16141 | PIC_FLAG="-fPIC" | |
16142 | fi | |
16143 | ||
16144 | ||
16145 | ||
16146 | found_versioning=no | |
16147 | ||
b4eecb7e | 16148 | |
2b5f62a0 VZ |
16149 | if test $found_versioning = no ; then |
16150 | echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6 | |
9b4d9d56 | 16151 | echo "configure:16152: checking if the linker accepts --version-script" >&5 |
2b5f62a0 VZ |
16152 | if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then |
16153 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16154 | else | |
16155 | ||
16156 | echo "VER_1 { *; };" >conftest.sym | |
16157 | echo "int main() { return 0; }" >conftest.cpp | |
16158 | ||
16159 | if { ac_try=' | |
16160 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
9b4d9d56 | 16161 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then |
2b5f62a0 VZ |
16162 | if test -s conftest.stderr ; then |
16163 | wx_cv_version_script=no | |
16164 | else | |
16165 | wx_cv_version_script=yes | |
16166 | fi | |
16167 | else | |
16168 | wx_cv_version_script=no | |
16169 | fi | |
16170 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
16171 | ||
16172 | fi | |
16173 | ||
16174 | echo "$ac_t""$wx_cv_version_script" 1>&6 | |
16175 | if test $wx_cv_version_script = yes ; then | |
16176 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script" | |
16177 | fi | |
16178 | fi | |
21d1c967 | 16179 | |
21d1c967 GD |
16180 | |
16181 | SHARED_LD="${CXX} -shared -o" | |
16182 | ||
16183 | case "${host}" in | |
16184 | *-hp-hpux* ) | |
ad2622f1 | 16185 | if test "$GCC" = "yes"; then |
85d5e282 | 16186 | SHARED_LD="${CXX} -shared ${PIC_FLAG} -o" |
21d1c967 GD |
16187 | else |
16188 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
16189 | ||
16190 | SHARED_LD="${CXX} -b -o" | |
16191 | PIC_FLAG="+Z" | |
16192 | fi | |
16193 | ||
16194 | if test "$wxUSE_OPENGL" = "yes"; then | |
16195 | WX_ALL_INSTALLED="preinstall_gl" | |
16196 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
16197 | else | |
16198 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
16199 | fi | |
16200 | ;; | |
16201 | ||
16202 | *-*-linux* ) | |
16203 | if test "$GCC" != "yes"; then | |
a0b9e27f | 16204 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 |
9b4d9d56 | 16205 | echo "configure:16206: checking for Intel compiler" >&5 |
a0b9e27f MB |
16206 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
16207 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16208 | else | |
16209 | ||
16210 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 16211 | #line 16212 "configure" |
698dcdb6 | 16212 | #include "confdefs.h" |
90dd450c | 16213 | |
a0b9e27f | 16214 | int main() { |
90dd450c | 16215 | |
21d1c967 GD |
16216 | #ifndef __INTEL_COMPILER |
16217 | #error Not icc | |
16218 | #endif | |
a0b9e27f MB |
16219 | |
16220 | ; return 0; } | |
16221 | EOF | |
9b4d9d56 | 16222 | if { (eval echo configure:16223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16223 | rm -rf conftest* |
21d1c967 | 16224 | wx_cv_prog_icc=yes |
6232543b | 16225 | else |
a0b9e27f MB |
16226 | echo "configure: failed program was:" >&5 |
16227 | cat conftest.$ac_ext >&5 | |
16228 | rm -rf conftest* | |
16229 | wx_cv_prog_icc=no | |
16230 | ||
5c6fa7d2 | 16231 | fi |
a0b9e27f MB |
16232 | rm -f conftest* |
16233 | ||
247f5006 | 16234 | fi |
a0b9e27f MB |
16235 | |
16236 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
21d1c967 GD |
16237 | if test "$wx_cv_prog_icc" = "yes"; then |
16238 | PIC_FLAG="-KPIC" | |
16239 | fi | |
16240 | fi | |
16241 | ||
16242 | if test "$wxUSE_SONAME" = "yes" ; then | |
16243 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
16244 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
16245 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
16246 | fi | |
16247 | ;; | |
16248 | ||
16249 | *-*-solaris2* ) | |
16250 | if test "$GCC" = yes ; then | |
16251 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
16252 | else | |
16253 | SHARED_LD="${CXX} -G -o" | |
16254 | PIC_FLAG="-KPIC" | |
16255 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
16256 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
16257 | fi | |
16258 | ;; | |
16259 | ||
16260 | *-*-darwin* ) | |
b2fee376 GD |
16261 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL" |
16262 | CFLAGS="$CFLAGS -fno-common" | |
16263 | CXXFLAGS="$CXXFLAGS -fno-common" | |
21d1c967 GD |
16264 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" |
16265 | PIC_FLAG="-dynamic -fPIC" | |
f346733b | 16266 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}" |
05159a27 | 16267 | SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}" |
21d1c967 GD |
16268 | ;; |
16269 | ||
16270 | *-*-aix* ) | |
2b5f62a0 VZ |
16271 | if test "$GCC" != "yes"; then |
16272 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
321d2b14 | 16273 | set dummy makeC++SharedLib; ac_word=$2 |
a0b9e27f | 16274 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9b4d9d56 | 16275 | echo "configure:16276: checking for $ac_word" >&5 |
a0b9e27f MB |
16276 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then |
16277 | echo $ac_n "(cached) $ac_c" 1>&6 | |
321d2b14 VZ |
16278 | else |
16279 | if test -n "$AIX_CXX_LD"; then | |
16280 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
16281 | else | |
a0b9e27f MB |
16282 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16283 | ac_dummy="$PATH" | |
16284 | for ac_dir in $ac_dummy; do | |
16285 | test -z "$ac_dir" && ac_dir=. | |
16286 | if test -f $ac_dir/$ac_word; then | |
16287 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
16288 | break | |
16289 | fi | |
16290 | done | |
16291 | IFS="$ac_save_ifs" | |
321d2b14 VZ |
16292 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
16293 | fi | |
16294 | fi | |
a0b9e27f | 16295 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" |
321d2b14 | 16296 | if test -n "$AIX_CXX_LD"; then |
a0b9e27f | 16297 | echo "$ac_t""$AIX_CXX_LD" 1>&6 |
321d2b14 | 16298 | else |
a0b9e27f | 16299 | echo "$ac_t""no" 1>&6 |
321d2b14 VZ |
16300 | fi |
16301 | ||
8284b0c5 | 16302 | |
2b5f62a0 VZ |
16303 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" |
16304 | fi | |
21d1c967 GD |
16305 | ;; |
16306 | ||
16307 | *-*-cygwin* | *-*-mingw32* ) | |
21d1c967 GD |
16308 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
16309 | ||
16310 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
16311 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
16312 | ||
16313 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
16314 | ||
f657dbe7 MB |
16315 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
16316 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
16317 | ||
16318 | if test "$wxUSE_OPENGL" = "yes"; then | |
16319 | LIBS="${LIBS} ${OPENGL_LIBS}" | |
21d1c967 GD |
16320 | fi |
16321 | ;; | |
16322 | ||
16323 | *-*-beos* ) | |
16324 | SHARED_LD="${LD} -shared -o" | |
16325 | ;; | |
16326 | ||
2b5f62a0 VZ |
16327 | *-*-irix* ) |
16328 | if test "$GCC" != "yes"; then | |
16329 | PIC_FLAG="-KPIC" | |
16330 | fi | |
16331 | ;; | |
16332 | ||
21d1c967 GD |
16333 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
16334 | *-*-sunos4* | \ | |
21d1c967 GD |
16335 | *-*-osf* | \ |
16336 | *-*-dgux5* | \ | |
16337 | *-*-sysv5* ) | |
16338 | ;; | |
16339 | ||
16340 | *) | |
a0b9e27f | 16341 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
21d1c967 GD |
16342 | esac |
16343 | ||
16344 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
16345 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
16346 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
16347 | fi | |
16348 | ||
16349 | WX_TARGET_LIBRARY_TYPE="so" | |
16350 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 16351 | fi |
10f2d63a | 16352 | |
21d1c967 GD |
16353 | if test "$wxUSE_SHARED" = "no"; then |
16354 | ||
16355 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
16356 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
16357 | fi | |
16358 | ||
ac0c4cc3 | 16359 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
21d1c967 GD |
16360 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
16361 | fi | |
16362 | ||
16363 | if test "$wxUSE_OPENGL" = "yes"; then | |
16364 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
16365 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
16366 | else | |
16367 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
16368 | fi | |
16369 | ||
16370 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
16371 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
16372 | ||
16373 | WX_TARGET_LIBRARY_TYPE="a" | |
16374 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
16375 | |
16376 | STATIC_FLAG="yes" | |
16377 | else | |
16378 | STATIC_FLAG="no" | |
90dd450c | 16379 | fi |
1e487827 | 16380 | |
93fac604 VZ |
16381 | MACRESCOMP="@#" |
16382 | MACSETFILE="@#" | |
36825681 | 16383 | MACRESWXCONFIG="#" |
21d1c967 GD |
16384 | if test "$wxUSE_MAC" = 1; then |
16385 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
16386 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
16387 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
16388 | # Extract the first word of "Rez", so it can be a program name with args. | |
16389 | set dummy Rez; ac_word=$2 | |
a0b9e27f | 16390 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9b4d9d56 | 16391 | echo "configure:16392: checking for $ac_word" >&5 |
a0b9e27f MB |
16392 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
16393 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b93d0d08 | 16394 | else |
21d1c967 GD |
16395 | if test -n "$RESCOMP"; then |
16396 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 16397 | else |
a0b9e27f MB |
16398 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16399 | ac_dummy="$PATH" | |
16400 | for ac_dir in $ac_dummy; do | |
16401 | test -z "$ac_dir" && ac_dir=. | |
16402 | if test -f $ac_dir/$ac_word; then | |
16403 | ac_cv_prog_RESCOMP="Rez" | |
16404 | break | |
16405 | fi | |
16406 | done | |
16407 | IFS="$ac_save_ifs" | |
21d1c967 | 16408 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 16409 | fi |
b93d0d08 | 16410 | fi |
a0b9e27f | 16411 | RESCOMP="$ac_cv_prog_RESCOMP" |
21d1c967 | 16412 | if test -n "$RESCOMP"; then |
a0b9e27f | 16413 | echo "$ac_t""$RESCOMP" 1>&6 |
90dd450c | 16414 | else |
a0b9e27f | 16415 | echo "$ac_t""no" 1>&6 |
90dd450c | 16416 | fi |
b93d0d08 | 16417 | |
21d1c967 GD |
16418 | # Extract the first word of "DeRez", so it can be a program name with args. |
16419 | set dummy DeRez; ac_word=$2 | |
a0b9e27f | 16420 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9b4d9d56 | 16421 | echo "configure:16422: checking for $ac_word" >&5 |
a0b9e27f MB |
16422 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
16423 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3a922bb4 | 16424 | else |
21d1c967 GD |
16425 | if test -n "$DEREZ"; then |
16426 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 16427 | else |
a0b9e27f MB |
16428 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16429 | ac_dummy="$PATH" | |
16430 | for ac_dir in $ac_dummy; do | |
16431 | test -z "$ac_dir" && ac_dir=. | |
16432 | if test -f $ac_dir/$ac_word; then | |
16433 | ac_cv_prog_DEREZ="DeRez" | |
16434 | break | |
16435 | fi | |
16436 | done | |
16437 | IFS="$ac_save_ifs" | |
21d1c967 | 16438 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 16439 | fi |
90dd450c | 16440 | fi |
a0b9e27f | 16441 | DEREZ="$ac_cv_prog_DEREZ" |
21d1c967 | 16442 | if test -n "$DEREZ"; then |
a0b9e27f | 16443 | echo "$ac_t""$DEREZ" 1>&6 |
90dd450c | 16444 | else |
a0b9e27f | 16445 | echo "$ac_t""no" 1>&6 |
3a922bb4 | 16446 | fi |
698dcdb6 | 16447 | |
36825681 GD |
16448 | # Extract the first word of "SetFile", so it can be a program name with args. |
16449 | set dummy SetFile; ac_word=$2 | |
16450 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9b4d9d56 | 16451 | echo "configure:16452: checking for $ac_word" >&5 |
36825681 GD |
16452 | if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then |
16453 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16454 | else | |
16455 | if test -n "$SETFILE"; then | |
16456 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
16457 | else | |
16458 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
16459 | ac_dummy="$PATH" | |
16460 | for ac_dir in $ac_dummy; do | |
16461 | test -z "$ac_dir" && ac_dir=. | |
16462 | if test -f $ac_dir/$ac_word; then | |
16463 | ac_cv_prog_SETFILE="SetFile" | |
16464 | break | |
16465 | fi | |
16466 | done | |
16467 | IFS="$ac_save_ifs" | |
16468 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
16469 | fi | |
16470 | fi | |
16471 | SETFILE="$ac_cv_prog_SETFILE" | |
16472 | if test -n "$SETFILE"; then | |
16473 | echo "$ac_t""$SETFILE" 1>&6 | |
16474 | else | |
16475 | echo "$ac_t""no" 1>&6 | |
16476 | fi | |
16477 | ||
21d1c967 | 16478 | MACOSX_BUNDLE="bundle" |
36825681 GD |
16479 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" |
16480 | MACSETFILE="\$(SETFILE)" | |
16481 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o" | |
21d1c967 GD |
16482 | else |
16483 | if test "$wxUSE_PM" = 1; then | |
36825681 | 16484 | MACRESCOMP="emxbind -ep" |
90dd450c | 16485 | fi |
4f14bcd8 | 16486 | fi |
10f2d63a | 16487 | |
8284b0c5 | 16488 | |
a0b9e27f | 16489 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
9b4d9d56 | 16490 | echo "configure:16491: checking for ANSI C header files" >&5 |
a0b9e27f MB |
16491 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
16492 | echo $ac_n "(cached) $ac_c" 1>&6 | |
52127426 | 16493 | else |
a0b9e27f | 16494 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 16495 | #line 16496 "configure" |
52127426 | 16496 | #include "confdefs.h" |
a0b9e27f MB |
16497 | #include <stdlib.h> |
16498 | #include <stdarg.h> | |
16499 | #include <string.h> | |
16500 | #include <float.h> | |
16501 | EOF | |
16502 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 16503 | { (eval echo configure:16504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
16504 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16505 | if test -z "$ac_err"; then | |
16506 | rm -rf conftest* | |
16507 | ac_cv_header_stdc=yes | |
16508 | else | |
16509 | echo "$ac_err" >&5 | |
16510 | echo "configure: failed program was:" >&5 | |
16511 | cat conftest.$ac_ext >&5 | |
16512 | rm -rf conftest* | |
16513 | ac_cv_header_stdc=no | |
16514 | fi | |
16515 | rm -f conftest* | |
16516 | ||
16517 | if test $ac_cv_header_stdc = yes; then | |
16518 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
16519 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 16520 | #line 16521 "configure" |
a0b9e27f MB |
16521 | #include "confdefs.h" |
16522 | #include <string.h> | |
16523 | EOF | |
16524 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16525 | egrep "memchr" >/dev/null 2>&1; then | |
16526 | : | |
16527 | else | |
16528 | rm -rf conftest* | |
16529 | ac_cv_header_stdc=no | |
16530 | fi | |
16531 | rm -f conftest* | |
16532 | ||
16533 | fi | |
16534 | ||
16535 | if test $ac_cv_header_stdc = yes; then | |
16536 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
16537 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 16538 | #line 16539 "configure" |
a0b9e27f MB |
16539 | #include "confdefs.h" |
16540 | #include <stdlib.h> | |
16541 | EOF | |
16542 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16543 | egrep "free" >/dev/null 2>&1; then | |
16544 | : | |
7b4a847f | 16545 | else |
a0b9e27f MB |
16546 | rm -rf conftest* |
16547 | ac_cv_header_stdc=no | |
52127426 | 16548 | fi |
a0b9e27f MB |
16549 | rm -f conftest* |
16550 | ||
52127426 | 16551 | fi |
a0b9e27f MB |
16552 | |
16553 | if test $ac_cv_header_stdc = yes; then | |
16554 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
16555 | if test "$cross_compiling" = yes; then | |
247f5006 VZ |
16556 | : |
16557 | else | |
a0b9e27f | 16558 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 16559 | #line 16560 "configure" |
a0b9e27f MB |
16560 | #include "confdefs.h" |
16561 | #include <ctype.h> | |
16562 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
16563 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
16564 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
16565 | int main () { int i; for (i = 0; i < 256; i++) | |
16566 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
16567 | exit (0); } | |
247f5006 | 16568 | |
a0b9e27f | 16569 | EOF |
9b4d9d56 | 16570 | if { (eval echo configure:16571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
16571 | then |
16572 | : | |
16573 | else | |
16574 | echo "configure: failed program was:" >&5 | |
16575 | cat conftest.$ac_ext >&5 | |
16576 | rm -fr conftest* | |
16577 | ac_cv_header_stdc=no | |
16578 | fi | |
16579 | rm -fr conftest* | |
16580 | fi | |
16581 | ||
16582 | fi | |
16583 | fi | |
16584 | ||
16585 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
16586 | if test $ac_cv_header_stdc = yes; then | |
16587 | cat >> confdefs.h <<\EOF | |
16588 | #define STDC_HEADERS 1 | |
16589 | EOF | |
8284b0c5 MB |
16590 | |
16591 | fi | |
16592 | ||
a0b9e27f | 16593 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
9b4d9d56 | 16594 | echo "configure:16595: checking for mode_t" >&5 |
a0b9e27f MB |
16595 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
16596 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16597 | else |
a0b9e27f | 16598 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 16599 | #line 16600 "configure" |
8284b0c5 | 16600 | #include "confdefs.h" |
a0b9e27f MB |
16601 | #include <sys/types.h> |
16602 | #if STDC_HEADERS | |
16603 | #include <stdlib.h> | |
16604 | #include <stddef.h> | |
8284b0c5 | 16605 | #endif |
a0b9e27f MB |
16606 | EOF |
16607 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16608 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16609 | rm -rf conftest* | |
16610 | ac_cv_type_mode_t=yes | |
5c6fa7d2 | 16611 | else |
a0b9e27f MB |
16612 | rm -rf conftest* |
16613 | ac_cv_type_mode_t=no | |
16614 | fi | |
16615 | rm -f conftest* | |
16616 | ||
8284b0c5 | 16617 | fi |
a0b9e27f MB |
16618 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
16619 | if test $ac_cv_type_mode_t = no; then | |
16620 | cat >> confdefs.h <<\EOF | |
16621 | #define mode_t int | |
16622 | EOF | |
16623 | ||
8284b0c5 | 16624 | fi |
a0b9e27f MB |
16625 | |
16626 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
9b4d9d56 | 16627 | echo "configure:16628: checking for off_t" >&5 |
a0b9e27f MB |
16628 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
16629 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16630 | else | |
16631 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 16632 | #line 16633 "configure" |
a0b9e27f MB |
16633 | #include "confdefs.h" |
16634 | #include <sys/types.h> | |
16635 | #if STDC_HEADERS | |
16636 | #include <stdlib.h> | |
16637 | #include <stddef.h> | |
16638 | #endif | |
16639 | EOF | |
16640 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16641 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16642 | rm -rf conftest* | |
16643 | ac_cv_type_off_t=yes | |
247f5006 | 16644 | else |
a0b9e27f MB |
16645 | rm -rf conftest* |
16646 | ac_cv_type_off_t=no | |
16647 | fi | |
16648 | rm -f conftest* | |
247f5006 | 16649 | |
a0b9e27f MB |
16650 | fi |
16651 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
16652 | if test $ac_cv_type_off_t = no; then | |
16653 | cat >> confdefs.h <<\EOF | |
90dd450c | 16654 | #define off_t long |
a0b9e27f | 16655 | EOF |
10f2d63a | 16656 | |
90dd450c | 16657 | fi |
10f2d63a | 16658 | |
a0b9e27f | 16659 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
9b4d9d56 | 16660 | echo "configure:16661: checking for pid_t" >&5 |
a0b9e27f MB |
16661 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
16662 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 16663 | else |
a0b9e27f | 16664 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 16665 | #line 16666 "configure" |
10f2d63a | 16666 | #include "confdefs.h" |
a0b9e27f MB |
16667 | #include <sys/types.h> |
16668 | #if STDC_HEADERS | |
16669 | #include <stdlib.h> | |
16670 | #include <stddef.h> | |
8284b0c5 | 16671 | #endif |
a0b9e27f MB |
16672 | EOF |
16673 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16674 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16675 | rm -rf conftest* | |
90dd450c | 16676 | ac_cv_type_pid_t=yes |
698dcdb6 | 16677 | else |
a0b9e27f MB |
16678 | rm -rf conftest* |
16679 | ac_cv_type_pid_t=no | |
8284b0c5 | 16680 | fi |
a0b9e27f | 16681 | rm -f conftest* |
247f5006 | 16682 | |
a0b9e27f MB |
16683 | fi |
16684 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
16685 | if test $ac_cv_type_pid_t = no; then | |
16686 | cat >> confdefs.h <<\EOF | |
90dd450c | 16687 | #define pid_t int |
a0b9e27f | 16688 | EOF |
10f2d63a | 16689 | |
7b4a847f RR |
16690 | fi |
16691 | ||
a0b9e27f | 16692 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
9b4d9d56 | 16693 | echo "configure:16694: checking for size_t" >&5 |
a0b9e27f MB |
16694 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
16695 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 16696 | else |
a0b9e27f | 16697 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 16698 | #line 16699 "configure" |
7b4a847f | 16699 | #include "confdefs.h" |
a0b9e27f MB |
16700 | #include <sys/types.h> |
16701 | #if STDC_HEADERS | |
16702 | #include <stdlib.h> | |
16703 | #include <stddef.h> | |
8284b0c5 | 16704 | #endif |
a0b9e27f MB |
16705 | EOF |
16706 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16707 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16708 | rm -rf conftest* | |
90dd450c | 16709 | ac_cv_type_size_t=yes |
18dbb1f6 | 16710 | else |
a0b9e27f MB |
16711 | rm -rf conftest* |
16712 | ac_cv_type_size_t=no | |
52127426 | 16713 | fi |
a0b9e27f | 16714 | rm -f conftest* |
247f5006 | 16715 | |
a0b9e27f MB |
16716 | fi |
16717 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
16718 | if test $ac_cv_type_size_t = no; then | |
16719 | cat >> confdefs.h <<\EOF | |
90dd450c | 16720 | #define size_t unsigned |
a0b9e27f | 16721 | EOF |
90dd450c VZ |
16722 | |
16723 | fi | |
16724 | ||
a0b9e27f | 16725 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
9b4d9d56 | 16726 | echo "configure:16727: checking for uid_t in sys/types.h" >&5 |
a0b9e27f MB |
16727 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
16728 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a | 16729 | else |
a0b9e27f | 16730 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 16731 | #line 16732 "configure" |
b3e8d00a | 16732 | #include "confdefs.h" |
90dd450c | 16733 | #include <sys/types.h> |
a0b9e27f | 16734 | EOF |
90dd450c VZ |
16735 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
16736 | egrep "uid_t" >/dev/null 2>&1; then | |
a0b9e27f | 16737 | rm -rf conftest* |
90dd450c | 16738 | ac_cv_type_uid_t=yes |
b3e8d00a | 16739 | else |
a0b9e27f | 16740 | rm -rf conftest* |
90dd450c | 16741 | ac_cv_type_uid_t=no |
b3e8d00a | 16742 | fi |
90dd450c | 16743 | rm -f conftest* |
b3e8d00a | 16744 | |
4f14bcd8 | 16745 | fi |
247f5006 | 16746 | |
a0b9e27f MB |
16747 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
16748 | if test $ac_cv_type_uid_t = no; then | |
16749 | cat >> confdefs.h <<\EOF | |
90dd450c | 16750 | #define uid_t int |
a0b9e27f | 16751 | EOF |
247f5006 | 16752 | |
a0b9e27f | 16753 | cat >> confdefs.h <<\EOF |
90dd450c | 16754 | #define gid_t int |
a0b9e27f | 16755 | EOF |
4f14bcd8 | 16756 | |
b3e8d00a | 16757 | fi |
b3e8d00a | 16758 | |
8284b0c5 MB |
16759 | |
16760 | ||
a0b9e27f MB |
16761 | ac_ext=C |
16762 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 16763 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16764 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16765 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16766 | cross_compiling=$ac_cv_prog_cxx_cross | |
90dd450c | 16767 | |
a0b9e27f | 16768 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
9b4d9d56 | 16769 | echo "configure:16770: checking if size_t is unsigned int" >&5 |
a0b9e27f MB |
16770 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
16771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 16772 | else |
a0b9e27f | 16773 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 16774 | #line 16775 "configure" |
10f2d63a | 16775 | #include "confdefs.h" |
90dd450c | 16776 | #include <stddef.h> |
a0b9e27f | 16777 | int main() { |
90dd450c VZ |
16778 | |
16779 | return 0; } | |
16780 | ||
16781 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
16782 | ||
16783 | int bar() { | |
a0b9e27f MB |
16784 | |
16785 | ; return 0; } | |
16786 | EOF | |
9b4d9d56 | 16787 | if { (eval echo configure:16788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16788 | rm -rf conftest* |
90dd450c | 16789 | wx_cv_size_t_is_uint=no |
698dcdb6 | 16790 | else |
a0b9e27f MB |
16791 | echo "configure: failed program was:" >&5 |
16792 | cat conftest.$ac_ext >&5 | |
16793 | rm -rf conftest* | |
16794 | wx_cv_size_t_is_uint=yes | |
16795 | ||
5c6fa7d2 | 16796 | fi |
a0b9e27f | 16797 | rm -f conftest* |
8284b0c5 | 16798 | |
247f5006 | 16799 | fi |
a0b9e27f MB |
16800 | |
16801 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
4f14bcd8 | 16802 | |
90dd450c | 16803 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
a0b9e27f | 16804 | cat >> confdefs.h <<\EOF |
90dd450c | 16805 | #define wxSIZE_T_IS_UINT 1 |
a0b9e27f | 16806 | EOF |
698dcdb6 | 16807 | |
90dd450c | 16808 | else |
a0b9e27f | 16809 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 |
9b4d9d56 | 16810 | echo "configure:16811: checking if size_t is unsigned long" >&5 |
a0b9e27f MB |
16811 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
16812 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 16813 | else |
a0b9e27f | 16814 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 16815 | #line 16816 "configure" |
10f2d63a | 16816 | #include "confdefs.h" |
90dd450c | 16817 | #include <stddef.h> |
a0b9e27f | 16818 | int main() { |
90dd450c VZ |
16819 | |
16820 | return 0; } | |
16821 | ||
16822 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
16823 | ||
16824 | int bar() { | |
a0b9e27f MB |
16825 | |
16826 | ; return 0; } | |
16827 | EOF | |
9b4d9d56 | 16828 | if { (eval echo configure:16829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16829 | rm -rf conftest* |
90dd450c | 16830 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 16831 | else |
a0b9e27f MB |
16832 | echo "configure: failed program was:" >&5 |
16833 | cat conftest.$ac_ext >&5 | |
16834 | rm -rf conftest* | |
16835 | wx_cv_size_t_is_ulong=yes | |
16836 | ||
5c6fa7d2 | 16837 | fi |
a0b9e27f MB |
16838 | rm -f conftest* |
16839 | ||
247f5006 | 16840 | fi |
a0b9e27f MB |
16841 | |
16842 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
10f2d63a | 16843 | |
90dd450c | 16844 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
a0b9e27f | 16845 | cat >> confdefs.h <<\EOF |
90dd450c | 16846 | #define wxSIZE_T_IS_ULONG 1 |
a0b9e27f | 16847 | EOF |
4f14bcd8 GD |
16848 | |
16849 | fi | |
90dd450c | 16850 | fi |
1e487827 | 16851 | |
90dd450c | 16852 | ac_ext=c |
a0b9e27f | 16853 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 16854 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
16855 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16856 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16857 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 16858 | |
5c6fa7d2 | 16859 | |
8284b0c5 | 16860 | |
a0b9e27f | 16861 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
9b4d9d56 | 16862 | echo "configure:16863: checking for pw_gecos in struct passwd" >&5 |
a0b9e27f MB |
16863 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
16864 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16865 | else |
a0b9e27f MB |
16866 | |
16867 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 16868 | #line 16869 "configure" |
4f14bcd8 | 16869 | #include "confdefs.h" |
90dd450c | 16870 | #include <pwd.h> |
a0b9e27f | 16871 | int main() { |
f6bcfd97 | 16872 | |
90dd450c VZ |
16873 | char *p; |
16874 | struct passwd *pw; | |
16875 | p = pw->pw_gecos; | |
a0b9e27f MB |
16876 | |
16877 | ; return 0; } | |
16878 | EOF | |
9b4d9d56 | 16879 | if { (eval echo configure:16880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
16880 | rm -rf conftest* |
16881 | ||
90dd450c | 16882 | wx_cv_struct_pw_gecos=yes |
a0b9e27f | 16883 | |
10f2d63a | 16884 | else |
a0b9e27f MB |
16885 | echo "configure: failed program was:" >&5 |
16886 | cat conftest.$ac_ext >&5 | |
16887 | rm -rf conftest* | |
16888 | ||
90dd450c | 16889 | wx_cv_struct_pw_gecos=no |
a0b9e27f MB |
16890 | |
16891 | ||
5c6fa7d2 | 16892 | fi |
a0b9e27f MB |
16893 | rm -f conftest* |
16894 | ||
247f5006 VZ |
16895 | |
16896 | fi | |
a0b9e27f MB |
16897 | |
16898 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
c521c494 | 16899 | |
90dd450c | 16900 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
a0b9e27f | 16901 | cat >> confdefs.h <<\EOF |
90dd450c | 16902 | #define HAVE_PW_GECOS 1 |
a0b9e27f | 16903 | EOF |
c521c494 | 16904 | |
90dd450c | 16905 | fi |
4f14bcd8 | 16906 | |
8284b0c5 | 16907 | |
d29b553b | 16908 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
a0b9e27f | 16909 | cat >> confdefs.h <<\EOF |
d74f4b5a | 16910 | #define wxUSE_WCHAR_T 1 |
a0b9e27f | 16911 | EOF |
d74f4b5a | 16912 | |
8284b0c5 | 16913 | |
d74f4b5a VZ |
16914 | WCSLEN_FOUND=0 |
16915 | WCHAR_LINK= | |
a0b9e27f | 16916 | for ac_func in wcslen |
7a30264c | 16917 | do |
a0b9e27f | 16918 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 16919 | echo "configure:16920: checking for $ac_func" >&5 |
a0b9e27f MB |
16920 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16921 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16922 | else | |
16923 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 16924 | #line 16925 "configure" |
4f14bcd8 | 16925 | #include "confdefs.h" |
7a30264c | 16926 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 16927 | which can conflict with char $ac_func(); below. */ |
7a30264c | 16928 | #include <assert.h> |
4f14bcd8 GD |
16929 | /* Override any gcc2 internal prototype to avoid an error. */ |
16930 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16931 | builtin and then its argument prototype would still apply. */ |
16932 | char $ac_func(); | |
16933 | ||
16934 | int main() { | |
16935 | ||
7a30264c VZ |
16936 | /* The GNU C library defines this for functions which it implements |
16937 | to always fail with ENOSYS. Some functions are actually named | |
16938 | something starting with __ and the normal name is an alias. */ | |
16939 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16940 | choke me | |
16941 | #else | |
a0b9e27f | 16942 | $ac_func(); |
7a30264c VZ |
16943 | #endif |
16944 | ||
a0b9e27f MB |
16945 | ; return 0; } |
16946 | EOF | |
9b4d9d56 | 16947 | if { (eval echo configure:16948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16948 | rm -rf conftest* |
16949 | eval "ac_cv_func_$ac_func=yes" | |
16950 | else | |
16951 | echo "configure: failed program was:" >&5 | |
16952 | cat conftest.$ac_ext >&5 | |
16953 | rm -rf conftest* | |
16954 | eval "ac_cv_func_$ac_func=no" | |
16955 | fi | |
16956 | rm -f conftest* | |
16957 | fi | |
16958 | ||
16959 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16960 | echo "$ac_t""yes" 1>&6 | |
16961 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16962 | cat >> confdefs.h <<EOF | |
16963 | #define $ac_tr_func 1 | |
16964 | EOF | |
d74f4b5a | 16965 | WCSLEN_FOUND=1 |
a0b9e27f MB |
16966 | else |
16967 | echo "$ac_t""no" 1>&6 | |
7a30264c VZ |
16968 | fi |
16969 | done | |
9d8deca0 | 16970 | |
8284b0c5 | 16971 | |
d74f4b5a | 16972 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 16973 | if test "$TOOLKIT" = "MSW"; then |
a0b9e27f | 16974 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
9b4d9d56 | 16975 | echo "configure:16976: checking for wcslen in -lmsvcrt" >&5 |
a0b9e27f MB |
16976 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
16977 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16978 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16979 | else |
a0b9e27f | 16980 | ac_save_LIBS="$LIBS" |
7a30264c | 16981 | LIBS="-lmsvcrt $LIBS" |
a0b9e27f | 16982 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 16983 | #line 16984 "configure" |
10f2d63a | 16984 | #include "confdefs.h" |
4f14bcd8 GD |
16985 | /* Override any gcc2 internal prototype to avoid an error. */ |
16986 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16987 | builtin and then its argument prototype would still apply. */ |
16988 | char wcslen(); | |
16989 | ||
16990 | int main() { | |
16991 | wcslen() | |
16992 | ; return 0; } | |
16993 | EOF | |
9b4d9d56 | 16994 | if { (eval echo configure:16995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16995 | rm -rf conftest* |
16996 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16997 | else | |
16998 | echo "configure: failed program was:" >&5 | |
16999 | cat conftest.$ac_ext >&5 | |
17000 | rm -rf conftest* | |
17001 | eval "ac_cv_lib_$ac_lib_var=no" | |
17002 | fi | |
17003 | rm -f conftest* | |
17004 | LIBS="$ac_save_LIBS" | |
17005 | ||
17006 | fi | |
17007 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17008 | echo "$ac_t""yes" 1>&6 | |
d74f4b5a | 17009 | WCHAR_OK=1 |
a0b9e27f MB |
17010 | else |
17011 | echo "$ac_t""no" 1>&6 | |
d29b553b | 17012 | fi |
698dcdb6 | 17013 | |
7a30264c | 17014 | else |
a0b9e27f | 17015 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
9b4d9d56 | 17016 | echo "configure:17017: checking for wcslen in -lw" >&5 |
a0b9e27f MB |
17017 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
17018 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17019 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 17020 | else |
a0b9e27f | 17021 | ac_save_LIBS="$LIBS" |
7a30264c | 17022 | LIBS="-lw $LIBS" |
a0b9e27f | 17023 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 17024 | #line 17025 "configure" |
95c8801c | 17025 | #include "confdefs.h" |
4f14bcd8 GD |
17026 | /* Override any gcc2 internal prototype to avoid an error. */ |
17027 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17028 | builtin and then its argument prototype would still apply. */ |
17029 | char wcslen(); | |
52127426 | 17030 | |
a0b9e27f MB |
17031 | int main() { |
17032 | wcslen() | |
17033 | ; return 0; } | |
17034 | EOF | |
9b4d9d56 | 17035 | if { (eval echo configure:17036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17036 | rm -rf conftest* |
17037 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17038 | else | |
17039 | echo "configure: failed program was:" >&5 | |
17040 | cat conftest.$ac_ext >&5 | |
17041 | rm -rf conftest* | |
17042 | eval "ac_cv_lib_$ac_lib_var=no" | |
17043 | fi | |
17044 | rm -f conftest* | |
17045 | LIBS="$ac_save_LIBS" | |
17046 | ||
17047 | fi | |
17048 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17049 | echo "$ac_t""yes" 1>&6 | |
17050 | ||
7a30264c | 17051 | WCHAR_LINK=" -lw" |
d74f4b5a | 17052 | WCSLEN_FOUND=1 |
a0b9e27f MB |
17053 | |
17054 | else | |
17055 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17056 | fi |
10f2d63a | 17057 | |
7a30264c | 17058 | fi |
d29b553b | 17059 | fi |
95c8801c | 17060 | |
d74f4b5a | 17061 | if test "$WCSLEN_FOUND" = 1; then |
a0b9e27f | 17062 | cat >> confdefs.h <<\EOF |
d74f4b5a | 17063 | #define HAVE_WCSLEN 1 |
a0b9e27f | 17064 | EOF |
10f2d63a | 17065 | |
d74f4b5a | 17066 | fi |
52127426 | 17067 | |
a0b9e27f | 17068 | for ac_func in wcsrtombs |
eb4efbdc | 17069 | do |
a0b9e27f | 17070 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 17071 | echo "configure:17072: checking for $ac_func" >&5 |
a0b9e27f MB |
17072 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17073 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17074 | else | |
17075 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 17076 | #line 17077 "configure" |
eb4efbdc VZ |
17077 | #include "confdefs.h" |
17078 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17079 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
17080 | #include <assert.h> |
17081 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4f14bcd8 | 17082 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17083 | builtin and then its argument prototype would still apply. */ |
17084 | char $ac_func(); | |
17085 | ||
17086 | int main() { | |
17087 | ||
10f2d63a VZ |
17088 | /* The GNU C library defines this for functions which it implements |
17089 | to always fail with ENOSYS. Some functions are actually named | |
17090 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 17091 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
17092 | choke me |
17093 | #else | |
a0b9e27f | 17094 | $ac_func(); |
10f2d63a VZ |
17095 | #endif |
17096 | ||
a0b9e27f MB |
17097 | ; return 0; } |
17098 | EOF | |
9b4d9d56 | 17099 | if { (eval echo configure:17100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17100 | rm -rf conftest* |
17101 | eval "ac_cv_func_$ac_func=yes" | |
17102 | else | |
17103 | echo "configure: failed program was:" >&5 | |
17104 | cat conftest.$ac_ext >&5 | |
17105 | rm -rf conftest* | |
17106 | eval "ac_cv_func_$ac_func=no" | |
17107 | fi | |
17108 | rm -f conftest* | |
17109 | fi | |
270a909e | 17110 | |
a0b9e27f MB |
17111 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17112 | echo "$ac_t""yes" 1>&6 | |
17113 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17114 | cat >> confdefs.h <<EOF | |
17115 | #define $ac_tr_func 1 | |
17116 | EOF | |
17117 | ||
17118 | else | |
17119 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17120 | fi |
247f5006 | 17121 | done |
1e487827 | 17122 | |
af15babd | 17123 | else |
a0b9e27f | 17124 | echo "configure: warning: Wide character support is unavailable" 1>&2 |
7b4a847f | 17125 | fi |
52127426 | 17126 | |
8284b0c5 | 17127 | |
a0b9e27f MB |
17128 | ac_ext=C |
17129 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
247f5006 | 17130 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17131 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17132 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17133 | cross_compiling=$ac_cv_prog_cxx_cross | |
af15babd | 17134 | |
247f5006 VZ |
17135 | |
17136 | for ac_func in vsnprintf | |
17137 | do | |
a0b9e27f | 17138 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 17139 | echo "configure:17140: checking for $ac_func" >&5 |
a0b9e27f MB |
17140 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17141 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17142 | else | |
17143 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 17144 | #line 17145 "configure" |
af15babd | 17145 | #include "confdefs.h" |
247f5006 | 17146 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17147 | which can conflict with char $ac_func(); below. */ |
247f5006 VZ |
17148 | #include <assert.h> |
17149 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17150 | #ifdef __cplusplus | |
17151 | extern "C" | |
17152 | #endif | |
17153 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17154 | builtin and then its argument prototype would still apply. */ |
17155 | char $ac_func(); | |
17156 | ||
17157 | int main() { | |
17158 | ||
247f5006 VZ |
17159 | /* The GNU C library defines this for functions which it implements |
17160 | to always fail with ENOSYS. Some functions are actually named | |
17161 | something starting with __ and the normal name is an alias. */ | |
17162 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17163 | choke me | |
17164 | #else | |
a0b9e27f | 17165 | $ac_func(); |
247f5006 | 17166 | #endif |
af15babd | 17167 | |
a0b9e27f MB |
17168 | ; return 0; } |
17169 | EOF | |
9b4d9d56 | 17170 | if { (eval echo configure:17171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17171 | rm -rf conftest* |
17172 | eval "ac_cv_func_$ac_func=yes" | |
17173 | else | |
17174 | echo "configure: failed program was:" >&5 | |
17175 | cat conftest.$ac_ext >&5 | |
17176 | rm -rf conftest* | |
17177 | eval "ac_cv_func_$ac_func=no" | |
17178 | fi | |
17179 | rm -f conftest* | |
17180 | fi | |
52127426 | 17181 | |
a0b9e27f MB |
17182 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17183 | echo "$ac_t""yes" 1>&6 | |
17184 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17185 | cat >> confdefs.h <<EOF | |
17186 | #define $ac_tr_func 1 | |
17187 | EOF | |
17188 | ||
17189 | else | |
17190 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 17191 | fi |
247f5006 | 17192 | done |
8284b0c5 | 17193 | |
4f14bcd8 | 17194 | |
8d90d2f2 VZ |
17195 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
17196 | echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6 | |
9b4d9d56 | 17197 | echo "configure:17198: checking for vsnprintf declaration" >&5 |
8d90d2f2 VZ |
17198 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then |
17199 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17200 | else | |
17201 | ||
17202 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 17203 | #line 17204 "configure" |
8d90d2f2 VZ |
17204 | #include "confdefs.h" |
17205 | ||
17206 | #include <stdio.h> | |
17207 | #include <stdarg.h> | |
17208 | ||
17209 | int main() { | |
17210 | ||
17211 | char *buf; | |
17212 | va_list ap; | |
17213 | vsnprintf(buf, 10u, "%s", ap); | |
17214 | ||
17215 | ; return 0; } | |
17216 | EOF | |
9b4d9d56 | 17217 | if { (eval echo configure:17218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
8d90d2f2 VZ |
17218 | rm -rf conftest* |
17219 | wx_cv_func_vsnprintf_decl=yes | |
17220 | else | |
17221 | echo "configure: failed program was:" >&5 | |
17222 | cat conftest.$ac_ext >&5 | |
17223 | rm -rf conftest* | |
17224 | wx_cv_func_vsnprintf_decl=no | |
17225 | ||
17226 | fi | |
17227 | rm -f conftest* | |
17228 | ||
17229 | ||
17230 | fi | |
17231 | ||
17232 | echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6 | |
17233 | ||
17234 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
17235 | cat >> confdefs.h <<\EOF | |
17236 | #define HAVE_VSNPRINTF_DECL 1 | |
17237 | EOF | |
17238 | ||
17239 | fi | |
17240 | fi | |
17241 | ||
247f5006 | 17242 | if test "$wxUSE_UNICODE" = yes; then |
a0b9e27f | 17243 | for ac_func in fputwc wprintf vswprintf |
d74f4b5a | 17244 | do |
a0b9e27f | 17245 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 17246 | echo "configure:17247: checking for $ac_func" >&5 |
a0b9e27f MB |
17247 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17248 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17249 | else | |
17250 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 17251 | #line 17252 "configure" |
d74f4b5a VZ |
17252 | #include "confdefs.h" |
17253 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17254 | which can conflict with char $ac_func(); below. */ |
d74f4b5a VZ |
17255 | #include <assert.h> |
17256 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
17257 | #ifdef __cplusplus |
17258 | extern "C" | |
17259 | #endif | |
d74f4b5a | 17260 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17261 | builtin and then its argument prototype would still apply. */ |
17262 | char $ac_func(); | |
17263 | ||
17264 | int main() { | |
17265 | ||
d74f4b5a VZ |
17266 | /* The GNU C library defines this for functions which it implements |
17267 | to always fail with ENOSYS. Some functions are actually named | |
17268 | something starting with __ and the normal name is an alias. */ | |
17269 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17270 | choke me | |
17271 | #else | |
a0b9e27f | 17272 | $ac_func(); |
d74f4b5a VZ |
17273 | #endif |
17274 | ||
a0b9e27f MB |
17275 | ; return 0; } |
17276 | EOF | |
9b4d9d56 | 17277 | if { (eval echo configure:17278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17278 | rm -rf conftest* |
17279 | eval "ac_cv_func_$ac_func=yes" | |
17280 | else | |
17281 | echo "configure: failed program was:" >&5 | |
17282 | cat conftest.$ac_ext >&5 | |
17283 | rm -rf conftest* | |
17284 | eval "ac_cv_func_$ac_func=no" | |
17285 | fi | |
17286 | rm -f conftest* | |
17287 | fi | |
d74f4b5a | 17288 | |
a0b9e27f MB |
17289 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17290 | echo "$ac_t""yes" 1>&6 | |
17291 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17292 | cat >> confdefs.h <<EOF | |
17293 | #define $ac_tr_func 1 | |
17294 | EOF | |
17295 | ||
17296 | else | |
17297 | echo "$ac_t""no" 1>&6 | |
d74f4b5a VZ |
17298 | fi |
17299 | done | |
17300 | ||
8d90d2f2 | 17301 | |
79668cae | 17302 | echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6 |
9b4d9d56 | 17303 | echo "configure:17304: checking for _vsnwprintf" >&5 |
79668cae | 17304 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 17305 | #line 17306 "configure" |
79668cae MB |
17306 | #include "confdefs.h" |
17307 | #include <wchar.h> | |
17308 | int main() { | |
17309 | &_vsnwprintf; | |
17310 | ; return 0; } | |
17311 | EOF | |
9b4d9d56 | 17312 | if { (eval echo configure:17313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
79668cae MB |
17313 | rm -rf conftest* |
17314 | echo "$ac_t""yes" 1>&6 | |
17315 | cat >> confdefs.h <<\EOF | |
17316 | #define HAVE__VSNWPRINTF 1 | |
17317 | EOF | |
17318 | ||
17319 | else | |
17320 | echo "configure: failed program was:" >&5 | |
17321 | cat conftest.$ac_ext >&5 | |
17322 | rm -rf conftest* | |
17323 | echo "$ac_t""no" 1>&6 | |
17324 | fi | |
17325 | rm -f conftest*; | |
d74f4b5a VZ |
17326 | fi |
17327 | ||
247f5006 | 17328 | ac_ext=c |
a0b9e27f | 17329 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
247f5006 | 17330 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17331 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17332 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17333 | cross_compiling=$ac_cv_prog_cc_cross | |
247f5006 VZ |
17334 | |
17335 | ||
17336 | ||
17337 | ||
4f14bcd8 | 17338 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 17339 | |
8284b0c5 MB |
17340 | |
17341 | ||
a0b9e27f MB |
17342 | ac_ext=C |
17343 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 17344 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17345 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17346 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17347 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 17348 | |
52127426 | 17349 | |
a0b9e27f MB |
17350 | |
17351 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
17352 | if test "${with_libiconv_prefix+set}" = set; then |
17353 | withval="$with_libiconv_prefix" | |
a0b9e27f | 17354 | |
b040e242 VS |
17355 | for dir in `echo "$withval" | tr : ' '`; do |
17356 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
17357 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
17358 | done | |
a0b9e27f MB |
17359 | |
17360 | fi | |
b040e242 VS |
17361 | |
17362 | ||
a0b9e27f | 17363 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
9b4d9d56 | 17364 | echo "configure:17365: checking for iconv" >&5 |
a0b9e27f MB |
17365 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
17366 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 17367 | else |
a0b9e27f | 17368 | |
b040e242 VS |
17369 | am_cv_func_iconv="no, consider installing GNU libiconv" |
17370 | am_cv_lib_iconv=no | |
a0b9e27f | 17371 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 17372 | #line 17373 "configure" |
af15babd | 17373 | #include "confdefs.h" |
b040e242 | 17374 | #include <stdlib.h> |
4f14bcd8 | 17375 | #include <iconv.h> |
a0b9e27f | 17376 | int main() { |
b040e242 VS |
17377 | iconv_t cd = iconv_open("",""); |
17378 | iconv(cd,NULL,NULL,NULL,NULL); | |
17379 | iconv_close(cd); | |
a0b9e27f MB |
17380 | ; return 0; } |
17381 | EOF | |
9b4d9d56 | 17382 | if { (eval echo configure:17383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17383 | rm -rf conftest* |
b040e242 | 17384 | am_cv_func_iconv=yes |
af15babd | 17385 | else |
a0b9e27f MB |
17386 | echo "configure: failed program was:" >&5 |
17387 | cat conftest.$ac_ext >&5 | |
b040e242 | 17388 | fi |
a0b9e27f | 17389 | rm -f conftest* |
b040e242 VS |
17390 | if test "$am_cv_func_iconv" != yes; then |
17391 | am_save_LIBS="$LIBS" | |
17392 | LIBS="$LIBS -liconv" | |
a0b9e27f | 17393 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 17394 | #line 17395 "configure" |
b040e242 VS |
17395 | #include "confdefs.h" |
17396 | #include <stdlib.h> | |
17397 | #include <iconv.h> | |
a0b9e27f | 17398 | int main() { |
b040e242 VS |
17399 | iconv_t cd = iconv_open("",""); |
17400 | iconv(cd,NULL,NULL,NULL,NULL); | |
17401 | iconv_close(cd); | |
a0b9e27f MB |
17402 | ; return 0; } |
17403 | EOF | |
9b4d9d56 | 17404 | if { (eval echo configure:17405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17405 | rm -rf conftest* |
b040e242 VS |
17406 | am_cv_lib_iconv=yes |
17407 | am_cv_func_iconv=yes | |
17408 | else | |
a0b9e27f MB |
17409 | echo "configure: failed program was:" >&5 |
17410 | cat conftest.$ac_ext >&5 | |
af15babd | 17411 | fi |
a0b9e27f | 17412 | rm -f conftest* |
b040e242 VS |
17413 | LIBS="$am_save_LIBS" |
17414 | fi | |
a0b9e27f | 17415 | |
247f5006 | 17416 | fi |
247f5006 | 17417 | |
a0b9e27f MB |
17418 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
17419 | if test "$am_cv_func_iconv" = yes; then | |
17420 | cat >> confdefs.h <<\EOF | |
b040e242 | 17421 | #define HAVE_ICONV 1 |
a0b9e27f | 17422 | EOF |
b040e242 | 17423 | |
a0b9e27f | 17424 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
9b4d9d56 | 17425 | echo "configure:17426: checking if iconv needs const" >&5 |
a0b9e27f MB |
17426 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
17427 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b040e242 | 17428 | else |
a0b9e27f | 17429 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 17430 | #line 17431 "configure" |
b040e242 VS |
17431 | #include "confdefs.h" |
17432 | ||
17433 | #include <stdlib.h> | |
17434 | #include <iconv.h> | |
17435 | extern | |
17436 | #ifdef __cplusplus | |
17437 | "C" | |
17438 | #endif | |
17439 | #if defined(__STDC__) || defined(__cplusplus) | |
17440 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
17441 | #else | |
17442 | size_t iconv(); | |
17443 | #endif | |
a0b9e27f MB |
17444 | |
17445 | int main() { | |
af15babd | 17446 | |
a0b9e27f MB |
17447 | ; return 0; } |
17448 | EOF | |
9b4d9d56 | 17449 | if { (eval echo configure:17450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 17450 | rm -rf conftest* |
b7043674 | 17451 | wx_cv_func_iconv_const="no" |
b040e242 | 17452 | else |
a0b9e27f MB |
17453 | echo "configure: failed program was:" >&5 |
17454 | cat conftest.$ac_ext >&5 | |
17455 | rm -rf conftest* | |
17456 | wx_cv_func_iconv_const="yes" | |
17457 | ||
5c6fa7d2 | 17458 | fi |
a0b9e27f MB |
17459 | rm -f conftest* |
17460 | ||
247f5006 | 17461 | fi |
a0b9e27f MB |
17462 | |
17463 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 | |
b7043674 VZ |
17464 | |
17465 | iconv_const= | |
1c405bb5 | 17466 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
17467 | iconv_const="const" |
17468 | fi | |
17469 | ||
a0b9e27f | 17470 | cat >> confdefs.h <<EOF |
f09359cf | 17471 | #define ICONV_CONST $iconv_const |
a0b9e27f | 17472 | EOF |
b040e242 VS |
17473 | |
17474 | fi | |
17475 | LIBICONV= | |
17476 | if test "$am_cv_lib_iconv" = yes; then | |
17477 | LIBICONV="-liconv" | |
17478 | fi | |
a0b9e27f | 17479 | |
b040e242 VS |
17480 | |
17481 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 17482 | ac_ext=c |
a0b9e27f | 17483 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17484 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17485 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17486 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17487 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 17488 | |
5c6fa7d2 | 17489 | |
8284b0c5 | 17490 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 17491 | for ac_func in sigaction |
af15babd | 17492 | do |
a0b9e27f | 17493 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 17494 | echo "configure:17495: checking for $ac_func" >&5 |
a0b9e27f MB |
17495 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17496 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17497 | else | |
17498 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 17499 | #line 17500 "configure" |
af15babd VZ |
17500 | #include "confdefs.h" |
17501 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17502 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17503 | #include <assert.h> |
17504 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17505 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17506 | builtin and then its argument prototype would still apply. */ |
17507 | char $ac_func(); | |
17508 | ||
17509 | int main() { | |
17510 | ||
af15babd VZ |
17511 | /* The GNU C library defines this for functions which it implements |
17512 | to always fail with ENOSYS. Some functions are actually named | |
17513 | something starting with __ and the normal name is an alias. */ | |
17514 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17515 | choke me | |
17516 | #else | |
a0b9e27f | 17517 | $ac_func(); |
af15babd VZ |
17518 | #endif |
17519 | ||
a0b9e27f MB |
17520 | ; return 0; } |
17521 | EOF | |
9b4d9d56 | 17522 | if { (eval echo configure:17523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17523 | rm -rf conftest* |
17524 | eval "ac_cv_func_$ac_func=yes" | |
17525 | else | |
17526 | echo "configure: failed program was:" >&5 | |
17527 | cat conftest.$ac_ext >&5 | |
17528 | rm -rf conftest* | |
17529 | eval "ac_cv_func_$ac_func=no" | |
17530 | fi | |
17531 | rm -f conftest* | |
17532 | fi | |
7b4a847f | 17533 | |
a0b9e27f MB |
17534 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17535 | echo "$ac_t""yes" 1>&6 | |
17536 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17537 | cat >> confdefs.h <<EOF | |
17538 | #define $ac_tr_func 1 | |
17539 | EOF | |
17540 | ||
17541 | else | |
17542 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
17543 | fi |
17544 | done | |
17545 | ||
8284b0c5 | 17546 | |
4f14bcd8 | 17547 | if test "$ac_cv_func_sigaction" = "no"; then |
a0b9e27f | 17548 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
4f14bcd8 GD |
17549 | wxUSE_ON_FATAL_EXCEPTION=no |
17550 | fi | |
17551 | ||
17552 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a0b9e27f MB |
17553 | |
17554 | ac_ext=C | |
17555 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 17556 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17557 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17558 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17559 | cross_compiling=$ac_cv_prog_cxx_cross | |
7b4a847f | 17560 | |
5c6fa7d2 | 17561 | |
a0b9e27f | 17562 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
9b4d9d56 | 17563 | echo "configure:17564: checking for sa_handler type" >&5 |
a0b9e27f MB |
17564 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
17565 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 17566 | else |
a0b9e27f MB |
17567 | |
17568 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 17569 | #line 17570 "configure" |
af15babd | 17570 | #include "confdefs.h" |
4f14bcd8 | 17571 | #include <signal.h> |
a0b9e27f | 17572 | int main() { |
4f14bcd8 GD |
17573 | |
17574 | extern void testSigHandler(int); | |
17575 | ||
17576 | struct sigaction sa; | |
17577 | sa.sa_handler = testSigHandler; | |
a0b9e27f MB |
17578 | |
17579 | ; return 0; } | |
17580 | EOF | |
9b4d9d56 | 17581 | if { (eval echo configure:17582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17582 | rm -rf conftest* |
17583 | ||
4f14bcd8 | 17584 | wx_cv_type_sa_handler=int |
a0b9e27f | 17585 | |
af15babd | 17586 | else |
a0b9e27f MB |
17587 | echo "configure: failed program was:" >&5 |
17588 | cat conftest.$ac_ext >&5 | |
17589 | rm -rf conftest* | |
17590 | ||
4f14bcd8 | 17591 | wx_cv_type_sa_handler=void |
a0b9e27f | 17592 | |
5c6fa7d2 | 17593 | fi |
a0b9e27f MB |
17594 | rm -f conftest* |
17595 | ||
247f5006 | 17596 | fi |
a0b9e27f MB |
17597 | |
17598 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
4f14bcd8 GD |
17599 | |
17600 | ac_ext=c | |
a0b9e27f | 17601 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17602 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17603 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17604 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17605 | cross_compiling=$ac_cv_prog_cc_cross | |
579d8138 | 17606 | |
8284b0c5 | 17607 | |
a0b9e27f | 17608 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17609 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
a0b9e27f | 17610 | EOF |
af15babd | 17611 | |
4f14bcd8 GD |
17612 | fi |
17613 | fi | |
af15babd | 17614 | |
a1d22ad7 | 17615 | for ac_func in mkstemp mktemp |
af15babd | 17616 | do |
a0b9e27f | 17617 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 17618 | echo "configure:17619: checking for $ac_func" >&5 |
a0b9e27f MB |
17619 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17620 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17621 | else | |
17622 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 17623 | #line 17624 "configure" |
af15babd VZ |
17624 | #include "confdefs.h" |
17625 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17626 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17627 | #include <assert.h> |
17628 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17629 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17630 | builtin and then its argument prototype would still apply. */ |
17631 | char $ac_func(); | |
17632 | ||
17633 | int main() { | |
17634 | ||
af15babd VZ |
17635 | /* The GNU C library defines this for functions which it implements |
17636 | to always fail with ENOSYS. Some functions are actually named | |
17637 | something starting with __ and the normal name is an alias. */ | |
17638 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17639 | choke me | |
17640 | #else | |
a0b9e27f | 17641 | $ac_func(); |
af15babd VZ |
17642 | #endif |
17643 | ||
a0b9e27f MB |
17644 | ; return 0; } |
17645 | EOF | |
9b4d9d56 | 17646 | if { (eval echo configure:17647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17647 | rm -rf conftest* |
17648 | eval "ac_cv_func_$ac_func=yes" | |
17649 | else | |
17650 | echo "configure: failed program was:" >&5 | |
17651 | cat conftest.$ac_ext >&5 | |
17652 | rm -rf conftest* | |
17653 | eval "ac_cv_func_$ac_func=no" | |
17654 | fi | |
17655 | rm -f conftest* | |
17656 | fi | |
af15babd | 17657 | |
a0b9e27f MB |
17658 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17659 | echo "$ac_t""yes" 1>&6 | |
17660 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17661 | cat >> confdefs.h <<EOF | |
17662 | #define $ac_tr_func 1 | |
17663 | EOF | |
ade35f11 | 17664 | break |
a0b9e27f MB |
17665 | else |
17666 | echo "$ac_t""no" 1>&6 | |
ade35f11 VZ |
17667 | fi |
17668 | done | |
17669 | ||
8284b0c5 | 17670 | |
a0b9e27f | 17671 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
9b4d9d56 | 17672 | echo "configure:17673: checking for statfs" >&5 |
a0b9e27f MB |
17673 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
17674 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 17675 | else |
a0b9e27f | 17676 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 17677 | #line 17678 "configure" |
4f14bcd8 GD |
17678 | #include "confdefs.h" |
17679 | ||
17680 | #if defined(__BSD__) | |
17681 | #include <sys/param.h> | |
17682 | #include <sys/mount.h> | |
17683 | #else | |
17684 | #include <sys/vfs.h> | |
17685 | #endif | |
a0b9e27f MB |
17686 | |
17687 | int main() { | |
4f14bcd8 GD |
17688 | |
17689 | long l; | |
17690 | struct statfs fs; | |
17691 | statfs("/", &fs); | |
17692 | l = fs.f_bsize; | |
17693 | l += fs.f_blocks; | |
17694 | l += fs.f_bavail; | |
a0b9e27f MB |
17695 | |
17696 | ; return 0; } | |
17697 | EOF | |
9b4d9d56 | 17698 | if { (eval echo configure:17699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17699 | rm -rf conftest* |
17700 | ||
4f14bcd8 | 17701 | wx_cv_func_statfs=yes |
a0b9e27f | 17702 | |
4f14bcd8 | 17703 | else |
a0b9e27f MB |
17704 | echo "configure: failed program was:" >&5 |
17705 | cat conftest.$ac_ext >&5 | |
17706 | rm -rf conftest* | |
17707 | ||
4f14bcd8 | 17708 | wx_cv_func_statfs=no |
a0b9e27f MB |
17709 | |
17710 | ||
5c6fa7d2 | 17711 | fi |
a0b9e27f | 17712 | rm -f conftest* |
8284b0c5 | 17713 | |
247f5006 | 17714 | fi |
a0b9e27f MB |
17715 | |
17716 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
4f14bcd8 GD |
17717 | |
17718 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 17719 | wx_cv_type_statvfs_t="struct statfs" |
a0b9e27f | 17720 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17721 | #define HAVE_STATFS 1 |
a0b9e27f | 17722 | EOF |
4f14bcd8 GD |
17723 | |
17724 | else | |
a0b9e27f | 17725 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 |
9b4d9d56 | 17726 | echo "configure:17727: checking for statvfs" >&5 |
a0b9e27f MB |
17727 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
17728 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 17729 | else |
a0b9e27f | 17730 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 17731 | #line 17732 "configure" |
af15babd | 17732 | #include "confdefs.h" |
af15babd | 17733 | |
54ab82b3 VZ |
17734 | #include <stddef.h> |
17735 | #include <sys/statvfs.h> | |
a0b9e27f MB |
17736 | |
17737 | int main() { | |
af15babd | 17738 | |
54ab82b3 | 17739 | statvfs("/", NULL); |
a0b9e27f MB |
17740 | |
17741 | ; return 0; } | |
17742 | EOF | |
9b4d9d56 | 17743 | if { (eval echo configure:17744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 17744 | rm -rf conftest* |
54ab82b3 | 17745 | wx_cv_func_statvfs=yes |
af15babd | 17746 | else |
a0b9e27f MB |
17747 | echo "configure: failed program was:" >&5 |
17748 | cat conftest.$ac_ext >&5 | |
17749 | rm -rf conftest* | |
54ab82b3 | 17750 | wx_cv_func_statvfs=no |
a0b9e27f | 17751 | |
5c6fa7d2 | 17752 | fi |
a0b9e27f MB |
17753 | rm -f conftest* |
17754 | ||
247f5006 | 17755 | fi |
a0b9e27f MB |
17756 | |
17757 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 | |
af15babd | 17758 | |
4f14bcd8 | 17759 | if test "$wx_cv_func_statvfs" = "yes"; then |
54ab82b3 VZ |
17760 | |
17761 | ac_ext=C | |
17762 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17763 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17764 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17765 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17766 | cross_compiling=$ac_cv_prog_cxx_cross | |
17767 | ||
17768 | ||
17769 | echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6 | |
9b4d9d56 | 17770 | echo "configure:17771: checking for statvfs argument type" >&5 |
54ab82b3 VZ |
17771 | if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then |
17772 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17773 | else | |
17774 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 17775 | #line 17776 "configure" |
54ab82b3 VZ |
17776 | #include "confdefs.h" |
17777 | ||
17778 | #include <sys/statvfs.h> | |
17779 | ||
17780 | int main() { | |
17781 | ||
17782 | long l; | |
17783 | statvfs_t fs; | |
17784 | statvfs("/", &fs); | |
17785 | l = fs.f_bsize; | |
17786 | l += fs.f_blocks; | |
17787 | l += fs.f_bavail; | |
17788 | ||
17789 | ; return 0; } | |
17790 | EOF | |
9b4d9d56 | 17791 | if { (eval echo configure:17792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54ab82b3 VZ |
17792 | rm -rf conftest* |
17793 | wx_cv_type_statvfs_t=statvfs_t | |
17794 | else | |
17795 | echo "configure: failed program was:" >&5 | |
17796 | cat conftest.$ac_ext >&5 | |
17797 | rm -rf conftest* | |
17798 | ||
17799 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 17800 | #line 17801 "configure" |
54ab82b3 VZ |
17801 | #include "confdefs.h" |
17802 | ||
17803 | #include <sys/statvfs.h> | |
17804 | ||
17805 | int main() { | |
17806 | ||
17807 | long l; | |
65d8ef1e | 17808 | struct statvfs fs; |
54ab82b3 VZ |
17809 | statvfs("/", &fs); |
17810 | l = fs.f_bsize; | |
17811 | l += fs.f_blocks; | |
17812 | l += fs.f_bavail; | |
17813 | ||
17814 | ; return 0; } | |
17815 | EOF | |
9b4d9d56 | 17816 | if { (eval echo configure:17817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54ab82b3 VZ |
17817 | rm -rf conftest* |
17818 | wx_cv_type_statvfs_t="struct statvfs" | |
17819 | else | |
17820 | echo "configure: failed program was:" >&5 | |
17821 | cat conftest.$ac_ext >&5 | |
17822 | rm -rf conftest* | |
17823 | wx_cv_type_statvfs_t="unknown" | |
17824 | ||
17825 | fi | |
17826 | rm -f conftest* | |
17827 | ||
17828 | ||
17829 | fi | |
17830 | rm -f conftest* | |
17831 | ||
17832 | fi | |
17833 | ||
17834 | echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6 | |
17835 | ||
17836 | ac_ext=c | |
17837 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17838 | ac_cpp='$CPP $CPPFLAGS' | |
17839 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17840 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17841 | cross_compiling=$ac_cv_prog_cc_cross | |
17842 | ||
17843 | ||
17844 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
17845 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17846 | #define HAVE_STATVFS 1 |
a0b9e27f | 17847 | EOF |
af15babd | 17848 | |
54ab82b3 | 17849 | fi |
4f14bcd8 | 17850 | else |
54ab82b3 | 17851 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
17852 | fi |
17853 | fi | |
af15babd | 17854 | |
54ab82b3 VZ |
17855 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
17856 | cat >> confdefs.h <<EOF | |
17857 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
17858 | EOF | |
17859 | ||
17860 | else | |
17861 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
17862 | fi | |
17863 | ||
4f14bcd8 | 17864 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 17865 | for ac_func in fcntl flock |
af15babd | 17866 | do |
a0b9e27f | 17867 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 17868 | echo "configure:17869: checking for $ac_func" >&5 |
a0b9e27f MB |
17869 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17870 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17871 | else | |
17872 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 17873 | #line 17874 "configure" |
af15babd VZ |
17874 | #include "confdefs.h" |
17875 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17876 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17877 | #include <assert.h> |
17878 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd | 17879 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17880 | builtin and then its argument prototype would still apply. */ |
17881 | char $ac_func(); | |
17882 | ||
17883 | int main() { | |
17884 | ||
af15babd VZ |
17885 | /* The GNU C library defines this for functions which it implements |
17886 | to always fail with ENOSYS. Some functions are actually named | |
17887 | something starting with __ and the normal name is an alias. */ | |
17888 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17889 | choke me | |
17890 | #else | |
a0b9e27f | 17891 | $ac_func(); |
af15babd VZ |
17892 | #endif |
17893 | ||
a0b9e27f MB |
17894 | ; return 0; } |
17895 | EOF | |
9b4d9d56 | 17896 | if { (eval echo configure:17897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17897 | rm -rf conftest* |
17898 | eval "ac_cv_func_$ac_func=yes" | |
17899 | else | |
17900 | echo "configure: failed program was:" >&5 | |
17901 | cat conftest.$ac_ext >&5 | |
17902 | rm -rf conftest* | |
17903 | eval "ac_cv_func_$ac_func=no" | |
17904 | fi | |
17905 | rm -f conftest* | |
17906 | fi | |
17907 | ||
17908 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17909 | echo "$ac_t""yes" 1>&6 | |
17910 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17911 | cat >> confdefs.h <<EOF | |
17912 | #define $ac_tr_func 1 | |
17913 | EOF | |
4f14bcd8 | 17914 | break |
a0b9e27f MB |
17915 | else |
17916 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
17917 | fi |
17918 | done | |
17919 | ||
8284b0c5 | 17920 | |
4f14bcd8 | 17921 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
a0b9e27f | 17922 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f14bcd8 GD |
17923 | wxUSE_SNGLINST_CHECKER=no |
17924 | fi | |
17925 | fi | |
af15babd | 17926 | |
4f14bcd8 | 17927 | for ac_func in timegm |
af15babd | 17928 | do |
a0b9e27f | 17929 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 17930 | echo "configure:17931: checking for $ac_func" >&5 |
a0b9e27f MB |
17931 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17932 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17933 | else | |
17934 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 17935 | #line 17936 "configure" |
af15babd VZ |
17936 | #include "confdefs.h" |
17937 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17938 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17939 | #include <assert.h> |
17940 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17941 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17942 | builtin and then its argument prototype would still apply. */ |
17943 | char $ac_func(); | |
17944 | ||
17945 | int main() { | |
17946 | ||
af15babd VZ |
17947 | /* The GNU C library defines this for functions which it implements |
17948 | to always fail with ENOSYS. Some functions are actually named | |
17949 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
17950 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
17951 | choke me | |
17952 | #else | |
a0b9e27f | 17953 | $ac_func(); |
247f5006 VZ |
17954 | #endif |
17955 | ||
a0b9e27f MB |
17956 | ; return 0; } |
17957 | EOF | |
9b4d9d56 | 17958 | if { (eval echo configure:17959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17959 | rm -rf conftest* |
17960 | eval "ac_cv_func_$ac_func=yes" | |
17961 | else | |
17962 | echo "configure: failed program was:" >&5 | |
17963 | cat conftest.$ac_ext >&5 | |
17964 | rm -rf conftest* | |
17965 | eval "ac_cv_func_$ac_func=no" | |
17966 | fi | |
17967 | rm -f conftest* | |
17968 | fi | |
703e0a69 | 17969 | |
a0b9e27f MB |
17970 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17971 | echo "$ac_t""yes" 1>&6 | |
17972 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17973 | cat >> confdefs.h <<EOF | |
17974 | #define $ac_tr_func 1 | |
17975 | EOF | |
17976 | ||
17977 | else | |
17978 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
17979 | fi |
17980 | done | |
17981 | ||
8284b0c5 | 17982 | |
4f14bcd8 | 17983 | for ac_func in putenv setenv |
10f2d63a | 17984 | do |
a0b9e27f | 17985 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 17986 | echo "configure:17987: checking for $ac_func" >&5 |
a0b9e27f MB |
17987 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17988 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17989 | else | |
17990 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 17991 | #line 17992 "configure" |
af15babd VZ |
17992 | #include "confdefs.h" |
17993 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17994 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17995 | #include <assert.h> |
17996 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17997 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17998 | builtin and then its argument prototype would still apply. */ |
17999 | char $ac_func(); | |
18000 | ||
18001 | int main() { | |
18002 | ||
af15babd VZ |
18003 | /* The GNU C library defines this for functions which it implements |
18004 | to always fail with ENOSYS. Some functions are actually named | |
18005 | something starting with __ and the normal name is an alias. */ | |
18006 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18007 | choke me | |
18008 | #else | |
a0b9e27f | 18009 | $ac_func(); |
af15babd VZ |
18010 | #endif |
18011 | ||
a0b9e27f MB |
18012 | ; return 0; } |
18013 | EOF | |
9b4d9d56 | 18014 | if { (eval echo configure:18015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18015 | rm -rf conftest* |
18016 | eval "ac_cv_func_$ac_func=yes" | |
18017 | else | |
18018 | echo "configure: failed program was:" >&5 | |
18019 | cat conftest.$ac_ext >&5 | |
18020 | rm -rf conftest* | |
18021 | eval "ac_cv_func_$ac_func=no" | |
18022 | fi | |
18023 | rm -f conftest* | |
18024 | fi | |
18025 | ||
18026 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18027 | echo "$ac_t""yes" 1>&6 | |
18028 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18029 | cat >> confdefs.h <<EOF | |
18030 | #define $ac_tr_func 1 | |
18031 | EOF | |
4f14bcd8 | 18032 | break |
a0b9e27f MB |
18033 | else |
18034 | echo "$ac_t""no" 1>&6 | |
af15babd | 18035 | fi |
af15babd VZ |
18036 | done |
18037 | ||
8284b0c5 | 18038 | |
4f14bcd8 GD |
18039 | HAVE_SOME_SLEEP_FUNC=0 |
18040 | if test "$USE_BEOS" = 1; then | |
a0b9e27f | 18041 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18042 | #define HAVE_SLEEP 1 |
a0b9e27f | 18043 | EOF |
af15babd | 18044 | |
4f14bcd8 | 18045 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
18046 | fi |
18047 | ||
4f14bcd8 | 18048 | if test "$USE_DARWIN" = 1; then |
a0b9e27f | 18049 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18050 | #define HAVE_USLEEP 1 |
a0b9e27f | 18051 | EOF |
10f2d63a | 18052 | |
4f14bcd8 | 18053 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
18054 | fi |
18055 | ||
4f14bcd8 GD |
18056 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
18057 | POSIX4_LINK= | |
a0b9e27f | 18058 | for ac_func in nanosleep |
4f14bcd8 | 18059 | do |
a0b9e27f | 18060 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 18061 | echo "configure:18062: checking for $ac_func" >&5 |
a0b9e27f MB |
18062 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18063 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18064 | else | |
18065 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 18066 | #line 18067 "configure" |
10f2d63a | 18067 | #include "confdefs.h" |
4f14bcd8 | 18068 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18069 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18070 | #include <assert.h> |
10f2d63a VZ |
18071 | /* Override any gcc2 internal prototype to avoid an error. */ |
18072 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18073 | builtin and then its argument prototype would still apply. */ |
18074 | char $ac_func(); | |
18075 | ||
18076 | int main() { | |
18077 | ||
4f14bcd8 GD |
18078 | /* The GNU C library defines this for functions which it implements |
18079 | to always fail with ENOSYS. Some functions are actually named | |
18080 | something starting with __ and the normal name is an alias. */ | |
18081 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18082 | choke me | |
18083 | #else | |
a0b9e27f | 18084 | $ac_func(); |
4f14bcd8 GD |
18085 | #endif |
18086 | ||
a0b9e27f MB |
18087 | ; return 0; } |
18088 | EOF | |
9b4d9d56 | 18089 | if { (eval echo configure:18090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18090 | rm -rf conftest* |
18091 | eval "ac_cv_func_$ac_func=yes" | |
18092 | else | |
18093 | echo "configure: failed program was:" >&5 | |
18094 | cat conftest.$ac_ext >&5 | |
18095 | rm -rf conftest* | |
18096 | eval "ac_cv_func_$ac_func=no" | |
18097 | fi | |
18098 | rm -f conftest* | |
18099 | fi | |
18100 | ||
18101 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18102 | echo "$ac_t""yes" 1>&6 | |
18103 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18104 | cat >> confdefs.h <<EOF | |
18105 | #define $ac_tr_func 1 | |
18106 | EOF | |
18107 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18108 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 18109 | EOF |
4f14bcd8 | 18110 | |
10f2d63a | 18111 | else |
a0b9e27f MB |
18112 | echo "$ac_t""no" 1>&6 |
18113 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
9b4d9d56 | 18114 | echo "configure:18115: checking for nanosleep in -lposix4" >&5 |
a0b9e27f MB |
18115 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
18116 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18117 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18118 | else |
a0b9e27f | 18119 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18120 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 18121 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 18122 | #line 18123 "configure" |
10f2d63a VZ |
18123 | #include "confdefs.h" |
18124 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18125 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18126 | builtin and then its argument prototype would still apply. */ |
18127 | char nanosleep(); | |
18128 | ||
18129 | int main() { | |
18130 | nanosleep() | |
18131 | ; return 0; } | |
18132 | EOF | |
9b4d9d56 | 18133 | if { (eval echo configure:18134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18134 | rm -rf conftest* |
18135 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18136 | else | |
18137 | echo "configure: failed program was:" >&5 | |
18138 | cat conftest.$ac_ext >&5 | |
18139 | rm -rf conftest* | |
18140 | eval "ac_cv_lib_$ac_lib_var=no" | |
18141 | fi | |
18142 | rm -f conftest* | |
18143 | LIBS="$ac_save_LIBS" | |
18144 | ||
18145 | fi | |
18146 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18147 | echo "$ac_t""yes" 1>&6 | |
18148 | ||
18149 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18150 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 18151 | EOF |
4f14bcd8 | 18152 | |
3d63bc3a | 18153 | POSIX4_LINK=" -lposix4" |
a0b9e27f | 18154 | |
10f2d63a | 18155 | else |
a0b9e27f | 18156 | echo "$ac_t""no" 1>&6 |
10f2d63a | 18157 | |
a0b9e27f | 18158 | for ac_func in usleep |
4f14bcd8 | 18159 | do |
a0b9e27f | 18160 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 18161 | echo "configure:18162: checking for $ac_func" >&5 |
a0b9e27f MB |
18162 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18163 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18164 | else | |
18165 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 18166 | #line 18167 "configure" |
10f2d63a | 18167 | #include "confdefs.h" |
4f14bcd8 | 18168 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18169 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18170 | #include <assert.h> |
18171 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18172 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18173 | builtin and then its argument prototype would still apply. */ |
18174 | char $ac_func(); | |
18175 | ||
18176 | int main() { | |
18177 | ||
4f14bcd8 GD |
18178 | /* The GNU C library defines this for functions which it implements |
18179 | to always fail with ENOSYS. Some functions are actually named | |
18180 | something starting with __ and the normal name is an alias. */ | |
18181 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18182 | choke me | |
18183 | #else | |
a0b9e27f | 18184 | $ac_func(); |
4f14bcd8 GD |
18185 | #endif |
18186 | ||
a0b9e27f MB |
18187 | ; return 0; } |
18188 | EOF | |
9b4d9d56 | 18189 | if { (eval echo configure:18190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18190 | rm -rf conftest* |
18191 | eval "ac_cv_func_$ac_func=yes" | |
18192 | else | |
18193 | echo "configure: failed program was:" >&5 | |
18194 | cat conftest.$ac_ext >&5 | |
18195 | rm -rf conftest* | |
18196 | eval "ac_cv_func_$ac_func=no" | |
18197 | fi | |
18198 | rm -f conftest* | |
18199 | fi | |
18200 | ||
18201 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18202 | echo "$ac_t""yes" 1>&6 | |
18203 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18204 | cat >> confdefs.h <<EOF | |
18205 | #define $ac_tr_func 1 | |
18206 | EOF | |
18207 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18208 | #define HAVE_USLEEP 1 |
a0b9e27f | 18209 | EOF |
4f14bcd8 | 18210 | |
698dcdb6 | 18211 | else |
a0b9e27f MB |
18212 | echo "$ac_t""no" 1>&6 |
18213 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
18214 | ||
10f2d63a | 18215 | fi |
4f14bcd8 | 18216 | done |
10f2d63a | 18217 | |
a0b9e27f MB |
18218 | |
18219 | ||
6232543b | 18220 | fi |
10f2d63a | 18221 | |
a0b9e27f MB |
18222 | |
18223 | ||
1e487827 | 18224 | fi |
4f14bcd8 | 18225 | done |
703e0a69 | 18226 | |
10f2d63a VZ |
18227 | fi |
18228 | ||
4f14bcd8 | 18229 | for ac_func in uname gethostname |
70846f0a | 18230 | do |
a0b9e27f | 18231 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 18232 | echo "configure:18233: checking for $ac_func" >&5 |
a0b9e27f MB |
18233 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18234 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18235 | else | |
18236 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 18237 | #line 18238 "configure" |
70846f0a VZ |
18238 | #include "confdefs.h" |
18239 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 18240 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
18241 | #include <assert.h> |
18242 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18243 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18244 | builtin and then its argument prototype would still apply. */ |
18245 | char $ac_func(); | |
18246 | ||
18247 | int main() { | |
18248 | ||
70846f0a VZ |
18249 | /* The GNU C library defines this for functions which it implements |
18250 | to always fail with ENOSYS. Some functions are actually named | |
18251 | something starting with __ and the normal name is an alias. */ | |
18252 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18253 | choke me | |
18254 | #else | |
a0b9e27f | 18255 | $ac_func(); |
70846f0a VZ |
18256 | #endif |
18257 | ||
a0b9e27f MB |
18258 | ; return 0; } |
18259 | EOF | |
9b4d9d56 | 18260 | if { (eval echo configure:18261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18261 | rm -rf conftest* |
18262 | eval "ac_cv_func_$ac_func=yes" | |
18263 | else | |
18264 | echo "configure: failed program was:" >&5 | |
18265 | cat conftest.$ac_ext >&5 | |
18266 | rm -rf conftest* | |
18267 | eval "ac_cv_func_$ac_func=no" | |
18268 | fi | |
18269 | rm -f conftest* | |
18270 | fi | |
18271 | ||
18272 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18273 | echo "$ac_t""yes" 1>&6 | |
18274 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18275 | cat >> confdefs.h <<EOF | |
18276 | #define $ac_tr_func 1 | |
18277 | EOF | |
4f14bcd8 | 18278 | break |
a0b9e27f MB |
18279 | else |
18280 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
18281 | fi |
18282 | done | |
18283 | ||
8284b0c5 MB |
18284 | |
18285 | ||
a0b9e27f MB |
18286 | ac_ext=C |
18287 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 18288 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
18289 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18290 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18291 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 18292 | |
4f14bcd8 GD |
18293 | |
18294 | for ac_func in strtok_r | |
10f2d63a | 18295 | do |
a0b9e27f | 18296 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 18297 | echo "configure:18298: checking for $ac_func" >&5 |
a0b9e27f MB |
18298 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18299 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18300 | else | |
18301 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 18302 | #line 18303 "configure" |
10f2d63a | 18303 | #include "confdefs.h" |
4f14bcd8 | 18304 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18305 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18306 | #include <assert.h> |
18307 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18308 | #ifdef __cplusplus | |
18309 | extern "C" | |
18310 | #endif | |
18311 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18312 | builtin and then its argument prototype would still apply. */ |
18313 | char $ac_func(); | |
18314 | ||
18315 | int main() { | |
18316 | ||
4f14bcd8 GD |
18317 | /* The GNU C library defines this for functions which it implements |
18318 | to always fail with ENOSYS. Some functions are actually named | |
18319 | something starting with __ and the normal name is an alias. */ | |
18320 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18321 | choke me | |
18322 | #else | |
a0b9e27f | 18323 | $ac_func(); |
4f14bcd8 GD |
18324 | #endif |
18325 | ||
a0b9e27f MB |
18326 | ; return 0; } |
18327 | EOF | |
9b4d9d56 | 18328 | if { (eval echo configure:18329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18329 | rm -rf conftest* |
18330 | eval "ac_cv_func_$ac_func=yes" | |
18331 | else | |
18332 | echo "configure: failed program was:" >&5 | |
18333 | cat conftest.$ac_ext >&5 | |
18334 | rm -rf conftest* | |
18335 | eval "ac_cv_func_$ac_func=no" | |
18336 | fi | |
18337 | rm -f conftest* | |
18338 | fi | |
4f14bcd8 | 18339 | |
a0b9e27f MB |
18340 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18341 | echo "$ac_t""yes" 1>&6 | |
18342 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18343 | cat >> confdefs.h <<EOF | |
18344 | #define $ac_tr_func 1 | |
18345 | EOF | |
18346 | ||
18347 | else | |
18348 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
18349 | fi |
18350 | done | |
18351 | ||
8284b0c5 | 18352 | |
4f14bcd8 | 18353 | ac_ext=c |
a0b9e27f | 18354 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 18355 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
18356 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18357 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18358 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 18359 | |
5c6fa7d2 | 18360 | |
8284b0c5 | 18361 | INET_LINK= |
4f14bcd8 GD |
18362 | for ac_func in inet_addr |
18363 | do | |
a0b9e27f | 18364 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 18365 | echo "configure:18366: checking for $ac_func" >&5 |
a0b9e27f MB |
18366 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18367 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18368 | else | |
18369 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 18370 | #line 18371 "configure" |
10f2d63a | 18371 | #include "confdefs.h" |
4f14bcd8 | 18372 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18373 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18374 | #include <assert.h> |
10f2d63a VZ |
18375 | /* Override any gcc2 internal prototype to avoid an error. */ |
18376 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18377 | builtin and then its argument prototype would still apply. */ |
18378 | char $ac_func(); | |
18379 | ||
18380 | int main() { | |
18381 | ||
4f14bcd8 GD |
18382 | /* The GNU C library defines this for functions which it implements |
18383 | to always fail with ENOSYS. Some functions are actually named | |
18384 | something starting with __ and the normal name is an alias. */ | |
18385 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18386 | choke me | |
18387 | #else | |
a0b9e27f | 18388 | $ac_func(); |
4f14bcd8 GD |
18389 | #endif |
18390 | ||
a0b9e27f MB |
18391 | ; return 0; } |
18392 | EOF | |
9b4d9d56 | 18393 | if { (eval echo configure:18394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18394 | rm -rf conftest* |
18395 | eval "ac_cv_func_$ac_func=yes" | |
18396 | else | |
18397 | echo "configure: failed program was:" >&5 | |
18398 | cat conftest.$ac_ext >&5 | |
18399 | rm -rf conftest* | |
18400 | eval "ac_cv_func_$ac_func=no" | |
18401 | fi | |
18402 | rm -f conftest* | |
18403 | fi | |
18404 | ||
18405 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18406 | echo "$ac_t""yes" 1>&6 | |
18407 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18408 | cat >> confdefs.h <<EOF | |
18409 | #define $ac_tr_func 1 | |
18410 | EOF | |
18411 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18412 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 18413 | EOF |
10f2d63a VZ |
18414 | |
18415 | else | |
a0b9e27f MB |
18416 | echo "$ac_t""no" 1>&6 |
18417 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
9b4d9d56 | 18418 | echo "configure:18419: checking for inet_addr in -lnsl" >&5 |
a0b9e27f MB |
18419 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
18420 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18421 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18422 | else |
a0b9e27f | 18423 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18424 | LIBS="-lnsl $LIBS" |
a0b9e27f | 18425 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 18426 | #line 18427 "configure" |
10f2d63a VZ |
18427 | #include "confdefs.h" |
18428 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18429 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18430 | builtin and then its argument prototype would still apply. */ |
18431 | char inet_addr(); | |
18432 | ||
18433 | int main() { | |
18434 | inet_addr() | |
18435 | ; return 0; } | |
18436 | EOF | |
9b4d9d56 | 18437 | if { (eval echo configure:18438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18438 | rm -rf conftest* |
18439 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18440 | else | |
18441 | echo "configure: failed program was:" >&5 | |
18442 | cat conftest.$ac_ext >&5 | |
18443 | rm -rf conftest* | |
18444 | eval "ac_cv_lib_$ac_lib_var=no" | |
18445 | fi | |
18446 | rm -f conftest* | |
18447 | LIBS="$ac_save_LIBS" | |
18448 | ||
18449 | fi | |
18450 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18451 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 18452 | INET_LINK="nsl" |
10f2d63a | 18453 | else |
a0b9e27f MB |
18454 | echo "$ac_t""no" 1>&6 |
18455 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
9b4d9d56 | 18456 | echo "configure:18457: checking for inet_addr in -lresolv" >&5 |
a0b9e27f MB |
18457 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
18458 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18459 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18460 | else |
a0b9e27f | 18461 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18462 | LIBS="-lresolv $LIBS" |
a0b9e27f | 18463 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 18464 | #line 18465 "configure" |
7b4a847f | 18465 | #include "confdefs.h" |
5c6fa7d2 | 18466 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 18467 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18468 | builtin and then its argument prototype would still apply. */ |
18469 | char inet_addr(); | |
18470 | ||
18471 | int main() { | |
18472 | inet_addr() | |
18473 | ; return 0; } | |
18474 | EOF | |
9b4d9d56 | 18475 | if { (eval echo configure:18476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18476 | rm -rf conftest* |
18477 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18478 | else | |
18479 | echo "configure: failed program was:" >&5 | |
18480 | cat conftest.$ac_ext >&5 | |
18481 | rm -rf conftest* | |
18482 | eval "ac_cv_lib_$ac_lib_var=no" | |
18483 | fi | |
18484 | rm -f conftest* | |
18485 | LIBS="$ac_save_LIBS" | |
18486 | ||
18487 | fi | |
18488 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18489 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 18490 | INET_LINK="resolv" |
698dcdb6 | 18491 | else |
a0b9e27f MB |
18492 | echo "$ac_t""no" 1>&6 |
18493 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 | |
9b4d9d56 | 18494 | echo "configure:18495: checking for inet_addr in -lsocket" >&5 |
a0b9e27f MB |
18495 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
18496 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18497 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3c011993 | 18498 | else |
a0b9e27f | 18499 | ac_save_LIBS="$LIBS" |
3c011993 | 18500 | LIBS="-lsocket $LIBS" |
a0b9e27f | 18501 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 18502 | #line 18503 "configure" |
3c011993 VZ |
18503 | #include "confdefs.h" |
18504 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18505 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18506 | builtin and then its argument prototype would still apply. */ |
18507 | char inet_addr(); | |
4f14bcd8 | 18508 | |
a0b9e27f MB |
18509 | int main() { |
18510 | inet_addr() | |
18511 | ; return 0; } | |
18512 | EOF | |
9b4d9d56 | 18513 | if { (eval echo configure:18514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18514 | rm -rf conftest* |
18515 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18516 | else | |
18517 | echo "configure: failed program was:" >&5 | |
18518 | cat conftest.$ac_ext >&5 | |
18519 | rm -rf conftest* | |
18520 | eval "ac_cv_lib_$ac_lib_var=no" | |
8284b0c5 | 18521 | fi |
a0b9e27f MB |
18522 | rm -f conftest* |
18523 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 18524 | |
7b4a847f | 18525 | fi |
a0b9e27f MB |
18526 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18527 | echo "$ac_t""yes" 1>&6 | |
18528 | INET_LINK="socket" | |
18529 | ||
18530 | else | |
18531 | echo "$ac_t""no" 1>&6 | |
18532 | fi | |
579d8138 | 18533 | |
a0b9e27f | 18534 | |
5c6fa7d2 | 18535 | fi |
52127426 | 18536 | |
a0b9e27f MB |
18537 | |
18538 | fi | |
247f5006 | 18539 | |
a0b9e27f | 18540 | |
8284b0c5 | 18541 | |
698dcdb6 | 18542 | fi |
4f14bcd8 GD |
18543 | done |
18544 | ||
8284b0c5 | 18545 | |
4f14bcd8 GD |
18546 | for ac_func in inet_aton |
18547 | do | |
a0b9e27f | 18548 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 18549 | echo "configure:18550: checking for $ac_func" >&5 |
a0b9e27f MB |
18550 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18551 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18552 | else | |
18553 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 18554 | #line 18555 "configure" |
f6bcfd97 | 18555 | #include "confdefs.h" |
4f14bcd8 | 18556 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18557 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18558 | #include <assert.h> |
f6bcfd97 BP |
18559 | /* Override any gcc2 internal prototype to avoid an error. */ |
18560 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18561 | builtin and then its argument prototype would still apply. */ |
18562 | char $ac_func(); | |
18563 | ||
18564 | int main() { | |
18565 | ||
4f14bcd8 GD |
18566 | /* The GNU C library defines this for functions which it implements |
18567 | to always fail with ENOSYS. Some functions are actually named | |
18568 | something starting with __ and the normal name is an alias. */ | |
18569 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18570 | choke me | |
18571 | #else | |
a0b9e27f | 18572 | $ac_func(); |
4f14bcd8 GD |
18573 | #endif |
18574 | ||
a0b9e27f MB |
18575 | ; return 0; } |
18576 | EOF | |
9b4d9d56 | 18577 | if { (eval echo configure:18578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18578 | rm -rf conftest* |
18579 | eval "ac_cv_func_$ac_func=yes" | |
18580 | else | |
18581 | echo "configure: failed program was:" >&5 | |
18582 | cat conftest.$ac_ext >&5 | |
18583 | rm -rf conftest* | |
18584 | eval "ac_cv_func_$ac_func=no" | |
18585 | fi | |
18586 | rm -f conftest* | |
18587 | fi | |
18588 | ||
18589 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18590 | echo "$ac_t""yes" 1>&6 | |
18591 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18592 | cat >> confdefs.h <<EOF | |
18593 | #define $ac_tr_func 1 | |
18594 | EOF | |
18595 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18596 | #define HAVE_INET_ATON 1 |
a0b9e27f | 18597 | EOF |
4f14bcd8 | 18598 | |
10f2d63a | 18599 | else |
a0b9e27f MB |
18600 | echo "$ac_t""no" 1>&6 |
18601 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
9b4d9d56 | 18602 | echo "configure:18603: checking for inet_aton in -l$INET_LINK" >&5 |
a0b9e27f MB |
18603 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
18604 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18605 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 18606 | else |
a0b9e27f | 18607 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18608 | LIBS="-l$INET_LINK $LIBS" |
a0b9e27f | 18609 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 18610 | #line 18611 "configure" |
10f2d63a | 18611 | #include "confdefs.h" |
6232543b | 18612 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 18613 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18614 | builtin and then its argument prototype would still apply. */ |
18615 | char inet_aton(); | |
18616 | ||
18617 | int main() { | |
18618 | inet_aton() | |
18619 | ; return 0; } | |
18620 | EOF | |
9b4d9d56 | 18621 | if { (eval echo configure:18622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18622 | rm -rf conftest* |
18623 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18624 | else | |
18625 | echo "configure: failed program was:" >&5 | |
18626 | cat conftest.$ac_ext >&5 | |
18627 | rm -rf conftest* | |
18628 | eval "ac_cv_lib_$ac_lib_var=no" | |
18629 | fi | |
18630 | rm -f conftest* | |
18631 | LIBS="$ac_save_LIBS" | |
4f14bcd8 | 18632 | |
10f2d63a | 18633 | fi |
a0b9e27f MB |
18634 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18635 | echo "$ac_t""yes" 1>&6 | |
18636 | cat >> confdefs.h <<\EOF | |
18637 | #define HAVE_INET_ATON 1 | |
18638 | EOF | |
10f2d63a | 18639 | |
a0b9e27f MB |
18640 | else |
18641 | echo "$ac_t""no" 1>&6 | |
18642 | fi | |
247f5006 | 18643 | |
a0b9e27f | 18644 | |
10f2d63a | 18645 | fi |
4f14bcd8 | 18646 | done |
10f2d63a | 18647 | |
8284b0c5 | 18648 | |
4f14bcd8 | 18649 | if test "x$INET_LINK" != "x"; then |
a0b9e27f | 18650 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18651 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 18652 | EOF |
4f14bcd8 | 18653 | |
3d63bc3a | 18654 | INET_LINK=" -l$INET_LINK" |
6232543b | 18655 | fi |
10f2d63a | 18656 | |
1e487827 | 18657 | fi |
703e0a69 | 18658 | |
8284b0c5 | 18659 | |
a0b9e27f | 18660 | cat > confcache <<\EOF |
4f14bcd8 GD |
18661 | # This file is a shell script that caches the results of configure |
18662 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
18663 | # scripts and configure runs. It is not useful on other systems. |
18664 | # If it contains results you don't want to keep, you may remove or edit it. | |
4f14bcd8 | 18665 | # |
a0b9e27f MB |
18666 | # By default, configure uses ./config.cache as the cache file, |
18667 | # creating it if it does not exist already. You can give configure | |
18668 | # the --cache-file=FILE option to use a different cache file; that is | |
18669 | # what configure does when it calls configure scripts in | |
18670 | # subdirectories, so they share the cache. | |
18671 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
18672 | # config.status only pays attention to the cache file if you give it the | |
18673 | # --recheck option to rerun configure. | |
4f14bcd8 | 18674 | # |
a0b9e27f | 18675 | EOF |
4f14bcd8 GD |
18676 | # The following way of writing the cache mishandles newlines in values, |
18677 | # but we know of no workaround that is simple, portable, and efficient. | |
18678 | # So, don't put newlines in cache variables' values. | |
18679 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18680 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
18681 | (set) 2>&1 | |
18682 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18683 | *ac_space=\ *) | |
18684 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
18685 | # turns \\\\ into \\, and sed turns \\ into \). | |
18686 | sed -n \ | |
18687 | -e "s/'/'\\\\''/g" \ | |
18688 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
18689 | ;; | |
18690 | *) | |
18691 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18692 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
18693 | ;; | |
18694 | esac >> confcache | |
18695 | if cmp -s $cache_file confcache; then | |
18696 | : | |
18697 | else | |
4f14bcd8 | 18698 | if test -w $cache_file; then |
a0b9e27f MB |
18699 | echo "updating cache $cache_file" |
18700 | cat confcache > $cache_file | |
f6bcfd97 | 18701 | else |
4f14bcd8 | 18702 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 18703 | fi |
4f14bcd8 GD |
18704 | fi |
18705 | rm -f confcache | |
f6bcfd97 | 18706 | |
8284b0c5 | 18707 | |
a0b9e27f | 18708 | |
009fead0 | 18709 | CPP_MT_FLAG= |
4f14bcd8 GD |
18710 | if test "$TOOLKIT" != "MSW"; then |
18711 | ||
a0b9e27f | 18712 | |
7274f1c7 | 18713 | THREADS_LINK= |
009fead0 | 18714 | THREADS_CFLAGS= |
7274f1c7 RL |
18715 | |
18716 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 18717 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 18718 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
18719 | wxUSE_THREADS="no" |
18720 | fi | |
4f14bcd8 | 18721 | fi |
4f14bcd8 | 18722 | |
7274f1c7 | 18723 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f MB |
18724 | |
18725 | ||
009fead0 VZ |
18726 | THREAD_OPTS="-pthread" |
18727 | case "${host}" in | |
18728 | *-*-solaris2* | *-*-sunos4* ) | |
18729 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 18730 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
18731 | else |
18732 | THREAD_OPTS="-mt $THREAD_OPTS" | |
18733 | fi | |
18734 | ;; | |
18735 | *-*-freebsd*) | |
18736 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
18737 | ;; | |
17234b26 MB |
18738 | *-*-darwin* | *-*-cygwin* ) |
18739 | THREAD_OPTS="" | |
4101db81 | 18740 | ;; |
8f4a9a10 | 18741 | *-*-aix*) |
009fead0 VZ |
18742 | THREAD_OPTS="pthreads" |
18743 | ;; | |
4f5a7f74 VZ |
18744 | *-hp-hpux* ) |
18745 | if test "x$GCC" != "xyes"; then | |
18746 | THREAD_OPTS="" | |
18747 | fi | |
009fead0 | 18748 | esac |
4f14bcd8 | 18749 | |
02a1dfba | 18750 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 18751 | |
009fead0 VZ |
18752 | THREADS_OK=no |
18753 | for flag in $THREAD_OPTS; do | |
18754 | case $flag in | |
18755 | none) | |
a0b9e27f | 18756 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 |
9b4d9d56 | 18757 | echo "configure:18758: checking whether pthreads work without any flags" >&5 |
009fead0 | 18758 | ;; |
698dcdb6 | 18759 | |
009fead0 | 18760 | -*) |
a0b9e27f | 18761 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 |
9b4d9d56 | 18762 | echo "configure:18763: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
18763 | THREADS_CFLAGS="$flag" |
18764 | ;; | |
698dcdb6 | 18765 | |
009fead0 | 18766 | *) |
a0b9e27f | 18767 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 |
9b4d9d56 | 18768 | echo "configure:18769: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
18769 | THREADS_LINK="-l$flag" |
18770 | ;; | |
18771 | esac | |
10f2d63a | 18772 | |
009fead0 VZ |
18773 | save_LIBS="$LIBS" |
18774 | save_CFLAGS="$CFLAGS" | |
18775 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 18776 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 18777 | |
a0b9e27f | 18778 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 18779 | #line 18780 "configure" |
009fead0 VZ |
18780 | #include "confdefs.h" |
18781 | #include <pthread.h> | |
a0b9e27f | 18782 | int main() { |
009fead0 | 18783 | pthread_create(0,0,0,0); |
a0b9e27f MB |
18784 | ; return 0; } |
18785 | EOF | |
9b4d9d56 | 18786 | if { (eval echo configure:18787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 18787 | rm -rf conftest* |
009fead0 | 18788 | THREADS_OK=yes |
10f2d63a | 18789 | else |
a0b9e27f MB |
18790 | echo "configure: failed program was:" >&5 |
18791 | cat conftest.$ac_ext >&5 | |
6232543b | 18792 | fi |
a0b9e27f | 18793 | rm -f conftest* |
698dcdb6 | 18794 | |
009fead0 VZ |
18795 | LIBS="$save_LIBS" |
18796 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 18797 | |
a0b9e27f | 18798 | echo "$ac_t""$THREADS_OK" 1>&6 |
009fead0 VZ |
18799 | if test "x$THREADS_OK" = "xyes"; then |
18800 | break; | |
18801 | fi | |
d9b9876f | 18802 | |
009fead0 VZ |
18803 | THREADS_LINK="" |
18804 | THREADS_CFLAGS="" | |
18805 | done | |
4f14bcd8 | 18806 | |
009fead0 VZ |
18807 | if test "x$THREADS_OK" != "xyes"; then |
18808 | wxUSE_THREADS=no | |
a0b9e27f | 18809 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
009fead0 | 18810 | else |
db82f09e VZ |
18811 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
18812 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 18813 | |
a0b9e27f | 18814 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
9b4d9d56 | 18815 | echo "configure:18816: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
18816 | flag=no |
18817 | case "${host}" in | |
2b5f62a0 VZ |
18818 | *-aix*) |
18819 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
18820 | flag="-D_THREAD_SAFE" | |
18821 | ;; | |
18822 | *-freebsd*) | |
009fead0 VZ |
18823 | flag="-D_THREAD_SAFE" |
18824 | ;; | |
06313569 GD |
18825 | *-hp-hpux* ) |
18826 | flag="-D_REENTRANT" | |
4f5a7f74 VZ |
18827 | if test "x$GCC" != "xyes"; then |
18828 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
18829 | fi | |
06313569 | 18830 | ;; |
009fead0 VZ |
18831 | *solaris* | alpha*-osf*) |
18832 | flag="-D_REENTRANT" | |
18833 | ;; | |
18834 | esac | |
a0b9e27f | 18835 | echo "$ac_t""${flag}" 1>&6 |
009fead0 | 18836 | if test "x$flag" != xno; then |
04727afd | 18837 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
18838 | fi |
18839 | ||
009fead0 | 18840 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 18841 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
18842 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
18843 | fi | |
18844 | fi | |
4f14bcd8 | 18845 | fi |
4f14bcd8 | 18846 | |
7274f1c7 | 18847 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f | 18848 | for ac_func in thr_setconcurrency |
4f14bcd8 | 18849 | do |
a0b9e27f | 18850 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 18851 | echo "configure:18852: checking for $ac_func" >&5 |
a0b9e27f MB |
18852 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18853 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18854 | else | |
18855 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 18856 | #line 18857 "configure" |
d9b9876f | 18857 | #include "confdefs.h" |
4f14bcd8 | 18858 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18859 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18860 | #include <assert.h> |
18861 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18862 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18863 | builtin and then its argument prototype would still apply. */ |
18864 | char $ac_func(); | |
18865 | ||
18866 | int main() { | |
18867 | ||
4f14bcd8 GD |
18868 | /* The GNU C library defines this for functions which it implements |
18869 | to always fail with ENOSYS. Some functions are actually named | |
18870 | something starting with __ and the normal name is an alias. */ | |
18871 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18872 | choke me | |
18873 | #else | |
a0b9e27f | 18874 | $ac_func(); |
4f14bcd8 GD |
18875 | #endif |
18876 | ||
a0b9e27f MB |
18877 | ; return 0; } |
18878 | EOF | |
9b4d9d56 | 18879 | if { (eval echo configure:18880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18880 | rm -rf conftest* |
18881 | eval "ac_cv_func_$ac_func=yes" | |
18882 | else | |
18883 | echo "configure: failed program was:" >&5 | |
18884 | cat conftest.$ac_ext >&5 | |
18885 | rm -rf conftest* | |
18886 | eval "ac_cv_func_$ac_func=no" | |
18887 | fi | |
18888 | rm -f conftest* | |
18889 | fi | |
698dcdb6 | 18890 | |
a0b9e27f MB |
18891 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18892 | echo "$ac_t""yes" 1>&6 | |
18893 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18894 | cat >> confdefs.h <<EOF | |
18895 | #define $ac_tr_func 1 | |
18896 | EOF | |
18897 | ||
18898 | else | |
18899 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 18900 | fi |
4f14bcd8 | 18901 | done |
10f2d63a | 18902 | |
8284b0c5 | 18903 | |
a0b9e27f | 18904 | for ac_hdr in sched.h |
4f14bcd8 | 18905 | do |
a0b9e27f MB |
18906 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18907 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9b4d9d56 | 18908 | echo "configure:18909: checking for $ac_hdr" >&5 |
a0b9e27f MB |
18909 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18910 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18911 | else | |
18912 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 18913 | #line 18914 "configure" |
247f5006 | 18914 | #include "confdefs.h" |
a0b9e27f MB |
18915 | #include <$ac_hdr> |
18916 | EOF | |
18917 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 18918 | { (eval echo configure:18919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
18919 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18920 | if test -z "$ac_err"; then | |
18921 | rm -rf conftest* | |
18922 | eval "ac_cv_header_$ac_safe=yes" | |
18923 | else | |
18924 | echo "$ac_err" >&5 | |
18925 | echo "configure: failed program was:" >&5 | |
4f14bcd8 | 18926 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
18927 | rm -rf conftest* |
18928 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 18929 | fi |
a0b9e27f | 18930 | rm -f conftest* |
10f2d63a | 18931 | fi |
a0b9e27f MB |
18932 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18933 | echo "$ac_t""yes" 1>&6 | |
18934 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18935 | cat >> confdefs.h <<EOF | |
18936 | #define $ac_tr_hdr 1 | |
18937 | EOF | |
18938 | ||
18939 | else | |
18940 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 18941 | fi |
4f14bcd8 | 18942 | done |
f6bcfd97 | 18943 | |
009fead0 | 18944 | if test "$ac_cv_header_sched_h" = "yes"; then |
a0b9e27f | 18945 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 |
9b4d9d56 | 18946 | echo "configure:18947: checking for sched_yield" >&5 |
a0b9e27f MB |
18947 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
18948 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 18949 | else |
a0b9e27f | 18950 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 18951 | #line 18952 "configure" |
4f14bcd8 | 18952 | #include "confdefs.h" |
009fead0 | 18953 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18954 | which can conflict with char sched_yield(); below. */ |
009fead0 | 18955 | #include <assert.h> |
4f14bcd8 GD |
18956 | /* Override any gcc2 internal prototype to avoid an error. */ |
18957 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18958 | builtin and then its argument prototype would still apply. */ |
18959 | char sched_yield(); | |
18960 | ||
18961 | int main() { | |
18962 | ||
009fead0 VZ |
18963 | /* The GNU C library defines this for functions which it implements |
18964 | to always fail with ENOSYS. Some functions are actually named | |
18965 | something starting with __ and the normal name is an alias. */ | |
18966 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
18967 | choke me | |
18968 | #else | |
a0b9e27f | 18969 | sched_yield(); |
009fead0 VZ |
18970 | #endif |
18971 | ||
a0b9e27f MB |
18972 | ; return 0; } |
18973 | EOF | |
9b4d9d56 | 18974 | if { (eval echo configure:18975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18975 | rm -rf conftest* |
18976 | eval "ac_cv_func_sched_yield=yes" | |
18977 | else | |
18978 | echo "configure: failed program was:" >&5 | |
18979 | cat conftest.$ac_ext >&5 | |
18980 | rm -rf conftest* | |
18981 | eval "ac_cv_func_sched_yield=no" | |
18982 | fi | |
18983 | rm -f conftest* | |
18984 | fi | |
18985 | ||
18986 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
18987 | echo "$ac_t""yes" 1>&6 | |
18988 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18989 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 18990 | EOF |
10f2d63a | 18991 | |
4f14bcd8 | 18992 | else |
a0b9e27f | 18993 | echo "$ac_t""no" 1>&6 |
009fead0 | 18994 | |
a0b9e27f | 18995 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 |
9b4d9d56 | 18996 | echo "configure:18997: checking for sched_yield in -lposix4" >&5 |
a0b9e27f MB |
18997 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
18998 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18999 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 19000 | else |
a0b9e27f | 19001 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 19002 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 19003 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 19004 | #line 19005 "configure" |
4f14bcd8 GD |
19005 | #include "confdefs.h" |
19006 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19007 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19008 | builtin and then its argument prototype would still apply. */ |
19009 | char sched_yield(); | |
19010 | ||
19011 | int main() { | |
19012 | sched_yield() | |
19013 | ; return 0; } | |
19014 | EOF | |
9b4d9d56 | 19015 | if { (eval echo configure:19016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19016 | rm -rf conftest* |
19017 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19018 | else | |
19019 | echo "configure: failed program was:" >&5 | |
19020 | cat conftest.$ac_ext >&5 | |
19021 | rm -rf conftest* | |
19022 | eval "ac_cv_lib_$ac_lib_var=no" | |
19023 | fi | |
19024 | rm -f conftest* | |
19025 | LIBS="$ac_save_LIBS" | |
19026 | ||
19027 | fi | |
19028 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19029 | echo "$ac_t""yes" 1>&6 | |
19030 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 19031 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 19032 | EOF |
3d63bc3a | 19033 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 19034 | else |
a0b9e27f MB |
19035 | echo "$ac_t""no" 1>&6 |
19036 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
19037 | ||
54276ccf VZ |
19038 | fi |
19039 | ||
a0b9e27f MB |
19040 | |
19041 | ||
4f14bcd8 | 19042 | fi |
698dcdb6 | 19043 | |
009fead0 | 19044 | fi |
10f2d63a | 19045 | |
7274f1c7 | 19046 | HAVE_PRIOR_FUNCS=0 |
a0b9e27f | 19047 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
9b4d9d56 | 19048 | echo "configure:19049: checking for pthread_attr_getschedpolicy" >&5 |
a0b9e27f MB |
19049 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
19050 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 19051 | else |
a0b9e27f | 19052 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 19053 | #line 19054 "configure" |
422107f9 | 19054 | #include "confdefs.h" |
009fead0 | 19055 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19056 | which can conflict with char pthread_attr_getschedpolicy(); below. */ |
009fead0 | 19057 | #include <assert.h> |
4f14bcd8 GD |
19058 | /* Override any gcc2 internal prototype to avoid an error. */ |
19059 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19060 | builtin and then its argument prototype would still apply. */ |
19061 | char pthread_attr_getschedpolicy(); | |
19062 | ||
19063 | int main() { | |
19064 | ||
009fead0 VZ |
19065 | /* The GNU C library defines this for functions which it implements |
19066 | to always fail with ENOSYS. Some functions are actually named | |
19067 | something starting with __ and the normal name is an alias. */ | |
19068 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
19069 | choke me | |
19070 | #else | |
a0b9e27f | 19071 | pthread_attr_getschedpolicy(); |
009fead0 VZ |
19072 | #endif |
19073 | ||
a0b9e27f MB |
19074 | ; return 0; } |
19075 | EOF | |
9b4d9d56 | 19076 | if { (eval echo configure:19077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19077 | rm -rf conftest* |
19078 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" | |
19079 | else | |
19080 | echo "configure: failed program was:" >&5 | |
19081 | cat conftest.$ac_ext >&5 | |
19082 | rm -rf conftest* | |
19083 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" | |
19084 | fi | |
19085 | rm -f conftest* | |
19086 | fi | |
19087 | ||
19088 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
19089 | echo "$ac_t""yes" 1>&6 | |
19090 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 | |
9b4d9d56 | 19091 | echo "configure:19092: checking for pthread_attr_setschedparam" >&5 |
a0b9e27f MB |
19092 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
19093 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 19094 | else |
a0b9e27f | 19095 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 19096 | #line 19097 "configure" |
a0b9e27f MB |
19097 | #include "confdefs.h" |
19098 | /* System header to define __stub macros and hopefully few prototypes, | |
19099 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
009fead0 | 19100 | #include <assert.h> |
422107f9 VZ |
19101 | /* Override any gcc2 internal prototype to avoid an error. */ |
19102 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19103 | builtin and then its argument prototype would still apply. */ |
19104 | char pthread_attr_setschedparam(); | |
19105 | ||
19106 | int main() { | |
19107 | ||
009fead0 VZ |
19108 | /* The GNU C library defines this for functions which it implements |
19109 | to always fail with ENOSYS. Some functions are actually named | |
19110 | something starting with __ and the normal name is an alias. */ | |
19111 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
19112 | choke me | |
19113 | #else | |
a0b9e27f | 19114 | pthread_attr_setschedparam(); |
009fead0 VZ |
19115 | #endif |
19116 | ||
a0b9e27f MB |
19117 | ; return 0; } |
19118 | EOF | |
9b4d9d56 | 19119 | if { (eval echo configure:19120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19120 | rm -rf conftest* |
19121 | eval "ac_cv_func_pthread_attr_setschedparam=yes" | |
19122 | else | |
19123 | echo "configure: failed program was:" >&5 | |
19124 | cat conftest.$ac_ext >&5 | |
19125 | rm -rf conftest* | |
19126 | eval "ac_cv_func_pthread_attr_setschedparam=no" | |
19127 | fi | |
19128 | rm -f conftest* | |
19129 | fi | |
19130 | ||
19131 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
19132 | echo "$ac_t""yes" 1>&6 | |
19133 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 | |
9b4d9d56 | 19134 | echo "configure:19135: checking for sched_get_priority_max" >&5 |
a0b9e27f MB |
19135 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
19136 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19137 | else | |
19138 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 19139 | #line 19140 "configure" |
422107f9 | 19140 | #include "confdefs.h" |
009fead0 VZ |
19141 | /* System header to define __stub macros and hopefully few prototypes |
19142 | else | |
a0b9e27f MB |
19143 | echo "$ac_t""no" 1>&6 |
19144 | which can conflict with char sched_get_priority_max(); below. */ | |
009fead0 | 19145 | #include <assert.h> |
4f14bcd8 GD |
19146 | /* Override any gcc2 internal prototype to avoid an error. */ |
19147 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19148 | builtin and then its argument prototype would still apply. */ |
19149 | char sched_get_priority_max(); | |
19150 | ||
19151 | int main() { | |
19152 | ||
009fead0 VZ |
19153 | /* The GNU C library defines this for functions which it implements |
19154 | to always fail with ENOSYS. Some functions are actually named | |
19155 | something starting with __ and the normal name is an alias. */ | |
19156 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
19157 | choke me | |
19158 | #else | |
a0b9e27f | 19159 | sched_get_priority_max(); |
009fead0 VZ |
19160 | #endif |
19161 | ||
a0b9e27f MB |
19162 | ; return 0; } |
19163 | EOF | |
9b4d9d56 | 19164 | if { (eval echo configure:19165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19165 | rm -rf conftest* |
19166 | eval "ac_cv_func_sched_get_priority_max=yes" | |
19167 | else | |
19168 | echo "configure: failed program was:" >&5 | |
19169 | cat conftest.$ac_ext >&5 | |
19170 | rm -rf conftest* | |
19171 | eval "ac_cv_func_sched_get_priority_max=no" | |
19172 | fi | |
19173 | rm -f conftest* | |
19174 | fi | |
19175 | ||
19176 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
19177 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
19178 | HAVE_PRIOR_FUNCS=1 |
19179 | else | |
a0b9e27f MB |
19180 | echo "$ac_t""no" 1>&6 |
19181 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
9b4d9d56 | 19182 | echo "configure:19183: checking for sched_get_priority_max in -lposix4" >&5 |
a0b9e27f MB |
19183 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
19184 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19185 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 19186 | else |
a0b9e27f | 19187 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 19188 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 19189 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 19190 | #line 19191 "configure" |
422107f9 VZ |
19191 | #include "confdefs.h" |
19192 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19193 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19194 | builtin and then its argument prototype would still apply. */ |
19195 | char sched_get_priority_max(); | |
19196 | ||
19197 | int main() { | |
19198 | sched_get_priority_max() | |
19199 | ; return 0; } | |
19200 | EOF | |
9b4d9d56 | 19201 | if { (eval echo configure:19202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19202 | rm -rf conftest* |
19203 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19204 | else | |
19205 | echo "configure: failed program was:" >&5 | |
19206 | cat conftest.$ac_ext >&5 | |
19207 | rm -rf conftest* | |
19208 | eval "ac_cv_lib_$ac_lib_var=no" | |
19209 | fi | |
19210 | rm -f conftest* | |
19211 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 19212 | |
a0b9e27f MB |
19213 | fi |
19214 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19215 | echo "$ac_t""yes" 1>&6 | |
19216 | ||
7274f1c7 RL |
19217 | HAVE_PRIOR_FUNCS=1 |
19218 | POSIX4_LINK=" -lposix4" | |
a0b9e27f MB |
19219 | |
19220 | else | |
19221 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 19222 | fi |
463abc64 | 19223 | |
a0b9e27f | 19224 | |
328a083c | 19225 | fi |
463abc64 | 19226 | |
a0b9e27f MB |
19227 | |
19228 | else | |
19229 | echo "$ac_t""no" 1>&6 | |
7b4a847f | 19230 | fi |
579d8138 | 19231 | |
a0b9e27f | 19232 | |
5c6fa7d2 | 19233 | fi |
52127426 | 19234 | |
8284b0c5 | 19235 | |
7274f1c7 | 19236 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
a0b9e27f | 19237 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19238 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
a0b9e27f | 19239 | EOF |
463abc64 | 19240 | |
7274f1c7 | 19241 | else |
a0b9e27f | 19242 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
7274f1c7 | 19243 | fi |
463abc64 | 19244 | |
a0b9e27f | 19245 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
9b4d9d56 | 19246 | echo "configure:19247: checking for pthread_cancel" >&5 |
a0b9e27f MB |
19247 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
19248 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 19249 | else |
a0b9e27f | 19250 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 19251 | #line 19252 "configure" |
422107f9 | 19252 | #include "confdefs.h" |
009fead0 | 19253 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19254 | which can conflict with char pthread_cancel(); below. */ |
009fead0 | 19255 | #include <assert.h> |
422107f9 VZ |
19256 | /* Override any gcc2 internal prototype to avoid an error. */ |
19257 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19258 | builtin and then its argument prototype would still apply. */ |
19259 | char pthread_cancel(); | |
19260 | ||
19261 | int main() { | |
19262 | ||
009fead0 VZ |
19263 | /* The GNU C library defines this for functions which it implements |
19264 | to always fail with ENOSYS. Some functions are actually named | |
19265 | something starting with __ and the normal name is an alias. */ | |
19266 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
19267 | choke me | |
19268 | #else | |
a0b9e27f | 19269 | pthread_cancel(); |
009fead0 VZ |
19270 | #endif |
19271 | ||
a0b9e27f MB |
19272 | ; return 0; } |
19273 | EOF | |
9b4d9d56 | 19274 | if { (eval echo configure:19275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19275 | rm -rf conftest* |
19276 | eval "ac_cv_func_pthread_cancel=yes" | |
19277 | else | |
19278 | echo "configure: failed program was:" >&5 | |
19279 | cat conftest.$ac_ext >&5 | |
19280 | rm -rf conftest* | |
19281 | eval "ac_cv_func_pthread_cancel=no" | |
19282 | fi | |
19283 | rm -f conftest* | |
19284 | fi | |
19285 | ||
19286 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
19287 | echo "$ac_t""yes" 1>&6 | |
19288 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 19289 | #define HAVE_PTHREAD_CANCEL 1 |
a0b9e27f | 19290 | EOF |
4f14bcd8 | 19291 | |
698dcdb6 | 19292 | else |
a0b9e27f MB |
19293 | echo "$ac_t""no" 1>&6 |
19294 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
422107f9 VZ |
19295 | fi |
19296 | ||
5c6fa7d2 | 19297 | |
a0b9e27f | 19298 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
9b4d9d56 | 19299 | echo "configure:19300: checking for pthread_cleanup_push/pop" >&5 |
a0b9e27f MB |
19300 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
19301 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 19302 | else |
a0b9e27f MB |
19303 | |
19304 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 19305 | #line 19306 "configure" |
4f14bcd8 GD |
19306 | #include "confdefs.h" |
19307 | #include <pthread.h> | |
a0b9e27f | 19308 | int main() { |
4f14bcd8 | 19309 | |
7274f1c7 RL |
19310 | pthread_cleanup_push(NULL, NULL); |
19311 | pthread_cleanup_pop(0); | |
a0b9e27f MB |
19312 | |
19313 | ; return 0; } | |
19314 | EOF | |
9b4d9d56 | 19315 | if { (eval echo configure:19316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19316 | rm -rf conftest* |
19317 | ||
7274f1c7 | 19318 | wx_cv_func_pthread_cleanup_push=yes |
a0b9e27f | 19319 | |
4f14bcd8 | 19320 | else |
a0b9e27f MB |
19321 | echo "configure: failed program was:" >&5 |
19322 | cat conftest.$ac_ext >&5 | |
19323 | rm -rf conftest* | |
19324 | ||
7274f1c7 | 19325 | wx_cv_func_pthread_cleanup_push=no |
a0b9e27f | 19326 | |
5c6fa7d2 | 19327 | fi |
a0b9e27f MB |
19328 | rm -f conftest* |
19329 | ||
247f5006 | 19330 | fi |
a0b9e27f MB |
19331 | |
19332 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
4f14bcd8 | 19333 | |
7274f1c7 | 19334 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
a0b9e27f | 19335 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19336 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
a0b9e27f | 19337 | EOF |
c7a2bf27 | 19338 | |
7274f1c7 | 19339 | fi |
4f14bcd8 | 19340 | |
a0b9e27f MB |
19341 | |
19342 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
9b4d9d56 | 19343 | echo "configure:19344: checking for pthread_mutexattr_t" >&5 |
a0b9e27f MB |
19344 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
19345 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 19346 | else |
a0b9e27f MB |
19347 | |
19348 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 19349 | #line 19350 "configure" |
0dcf9893 | 19350 | #include "confdefs.h" |
4f14bcd8 | 19351 | #include <pthread.h> |
a0b9e27f | 19352 | int main() { |
4f14bcd8 | 19353 | |
7274f1c7 RL |
19354 | pthread_mutexattr_t attr; |
19355 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
a0b9e27f MB |
19356 | |
19357 | ; return 0; } | |
19358 | EOF | |
9b4d9d56 | 19359 | if { (eval echo configure:19360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19360 | rm -rf conftest* |
19361 | ||
7274f1c7 | 19362 | wx_cv_type_pthread_mutexattr_t=yes |
a0b9e27f | 19363 | |
3fed1840 | 19364 | else |
a0b9e27f MB |
19365 | echo "configure: failed program was:" >&5 |
19366 | cat conftest.$ac_ext >&5 | |
19367 | rm -rf conftest* | |
19368 | ||
7274f1c7 | 19369 | wx_cv_type_pthread_mutexattr_t=no |
a0b9e27f MB |
19370 | |
19371 | ||
5c6fa7d2 | 19372 | fi |
a0b9e27f MB |
19373 | rm -f conftest* |
19374 | ||
247f5006 | 19375 | fi |
a0b9e27f MB |
19376 | |
19377 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
4f14bcd8 | 19378 | |
7274f1c7 | 19379 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
a0b9e27f | 19380 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19381 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
a0b9e27f | 19382 | EOF |
4f14bcd8 | 19383 | |
7274f1c7 | 19384 | else |
a0b9e27f | 19385 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
9b4d9d56 | 19386 | echo "configure:19387: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
a0b9e27f MB |
19387 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
19388 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19389 | else | |
19390 | ||
19391 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 19392 | #line 19393 "configure" |
3fed1840 | 19393 | #include "confdefs.h" |
4f14bcd8 | 19394 | #include <pthread.h> |
a0b9e27f | 19395 | int main() { |
4f14bcd8 | 19396 | |
7274f1c7 | 19397 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
a0b9e27f MB |
19398 | |
19399 | ; return 0; } | |
19400 | EOF | |
9b4d9d56 | 19401 | if { (eval echo configure:19402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19402 | rm -rf conftest* |
19403 | ||
7274f1c7 | 19404 | wx_cv_type_pthread_rec_mutex_init=yes |
a0b9e27f | 19405 | |
698dcdb6 | 19406 | else |
a0b9e27f MB |
19407 | echo "configure: failed program was:" >&5 |
19408 | cat conftest.$ac_ext >&5 | |
19409 | rm -rf conftest* | |
19410 | ||
7274f1c7 | 19411 | wx_cv_type_pthread_rec_mutex_init=no |
a0b9e27f MB |
19412 | |
19413 | ||
5c6fa7d2 | 19414 | fi |
a0b9e27f MB |
19415 | rm -f conftest* |
19416 | ||
247f5006 | 19417 | fi |
a0b9e27f MB |
19418 | |
19419 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
7274f1c7 | 19420 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
a0b9e27f | 19421 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19422 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
a0b9e27f | 19423 | EOF |
3fed1840 | 19424 | |
7274f1c7 | 19425 | else |
a0b9e27f | 19426 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
7274f1c7 RL |
19427 | fi |
19428 | fi | |
7274f1c7 | 19429 | fi |
3fed1840 | 19430 | |
a0b9e27f MB |
19431 | else |
19432 | if test "$wxUSE_THREADS" = "yes" ; then | |
19433 | case "${host}" in | |
19434 | *-*-mingw32* ) | |
ca8e52b3 | 19435 | echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6 |
9b4d9d56 | 19436 | echo "configure:19437: checking if compiler supports -mthreads" >&5 |
ca8e52b3 VZ |
19437 | if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then |
19438 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19439 | else | |
19440 | ||
19441 | CFLAGS_OLD="$CFLAGS" | |
19442 | CFLAGS="$CFLAGS -mthreads" | |
19443 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 19444 | #line 19445 "configure" |
ca8e52b3 VZ |
19445 | #include "confdefs.h" |
19446 | ||
19447 | int main() { | |
19448 | ||
19449 | ; return 0; } | |
19450 | EOF | |
9b4d9d56 | 19451 | if { (eval echo configure:19452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ca8e52b3 VZ |
19452 | rm -rf conftest* |
19453 | wx_cv_cflags_mthread=yes | |
19454 | else | |
19455 | echo "configure: failed program was:" >&5 | |
19456 | cat conftest.$ac_ext >&5 | |
19457 | rm -rf conftest* | |
19458 | wx_cv_cflags_mthread=no | |
19459 | ||
19460 | fi | |
19461 | rm -f conftest* | |
19462 | ||
19463 | ||
19464 | fi | |
19465 | ||
19466 | echo "$ac_t""$wx_cv_cflags_mthread" 1>&6 | |
19467 | ||
19468 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
19469 | CXXFLAGS="$CXXFLAGS -mthreads" | |
19470 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
19471 | LDFLAGS="$LDFLAGS -mthreads" | |
19472 | else | |
19473 | CFLAGS="$CFLAGS_OLD" | |
19474 | fi | |
a0b9e27f MB |
19475 | ;; |
19476 | esac | |
19477 | fi | |
4f14bcd8 GD |
19478 | fi |
19479 | ||
19480 | if test "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 19481 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19482 | #define wxUSE_THREADS 1 |
a0b9e27f | 19483 | EOF |
7b6058cd | 19484 | |
8284b0c5 | 19485 | |
4f14bcd8 | 19486 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 19487 | else |
4f14bcd8 | 19488 | if test "$ac_cv_func_strtok_r" = "yes"; then |
a0b9e27f | 19489 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
9b4d9d56 | 19490 | echo "configure:19491: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
19491 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
19492 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
a0b9e27f | 19493 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 19494 | else |
a0b9e27f | 19495 | echo "$ac_t""no" 1>&6 |
4f14bcd8 GD |
19496 | fi |
19497 | fi | |
19498 | fi | |
19499 | ||
19500 | if test "$WXGTK20" = 1 ; then | |
a0b9e27f | 19501 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19502 | #define __WXGTK20__ $WXGTK20 |
a0b9e27f | 19503 | EOF |
4f14bcd8 GD |
19504 | |
19505 | WXGTK12=1 | |
10f2d63a | 19506 | fi |
4f14bcd8 GD |
19507 | |
19508 | if test "$WXGTK12" = 1 ; then | |
a0b9e27f | 19509 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19510 | #define __WXGTK12__ $WXGTK12 |
a0b9e27f | 19511 | EOF |
4f14bcd8 | 19512 | |
10f2d63a | 19513 | fi |
698dcdb6 | 19514 | |
4f14bcd8 | 19515 | if test "$WXGTK127" = 1 ; then |
a0b9e27f | 19516 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19517 | #define __WXGTK127__ $WXGTK127 |
a0b9e27f | 19518 | EOF |
4f14bcd8 | 19519 | |
698dcdb6 | 19520 | fi |
10f2d63a | 19521 | |
4f14bcd8 GD |
19522 | WXDEBUG= |
19523 | ||
19524 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
19525 | WXDEBUG="-g" | |
19526 | wxUSE_OPTIMISE=no | |
698dcdb6 | 19527 | fi |
4f14bcd8 GD |
19528 | |
19529 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
19530 | wxUSE_DEBUG_INFO=yes | |
19531 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
19532 | fi |
19533 | ||
4f14bcd8 | 19534 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
a0b9e27f | 19535 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19536 | #define WXDEBUG 1 |
a0b9e27f | 19537 | EOF |
4f14bcd8 GD |
19538 | |
19539 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 19540 | else |
4f14bcd8 GD |
19541 | if test "$wxUSE_GTK" = 1 ; then |
19542 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
19543 | fi | |
19544 | fi | |
19545 | ||
19546 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
a0b9e27f | 19547 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19548 | #define wxUSE_MEMORY_TRACING 1 |
a0b9e27f | 19549 | EOF |
4f14bcd8 | 19550 | |
a0b9e27f | 19551 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19552 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
a0b9e27f | 19553 | EOF |
4f14bcd8 | 19554 | |
a0b9e27f | 19555 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19556 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
a0b9e27f | 19557 | EOF |
4f14bcd8 GD |
19558 | |
19559 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
19560 | fi | |
19561 | ||
19562 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 19563 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
19564 | fi |
19565 | ||
19566 | PROFILE= | |
19567 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 19568 | PROFILE=" -pg" |
10f2d63a VZ |
19569 | fi |
19570 | ||
009fead0 VZ |
19571 | CODE_GEN_FLAGS= |
19572 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 19573 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
19574 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
19575 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 19576 | fi |
4f14bcd8 GD |
19577 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
19578 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
19579 | fi | |
19580 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
19581 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
19582 | fi | |
4f14bcd8 GD |
19583 | if test "$USE_WIN32" = 1 ; then |
19584 | # I'm not even really sure what this was ever added to solve, | |
19585 | # but someone added it for mingw native builds, so I guess | |
19586 | # they had a reason, right?? | |
19587 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
19588 | fi | |
1d1b75ac | 19589 | |
2b5f62a0 | 19590 | case "${host}" in |
1d1b75ac VZ |
19591 | powerpc*-*-aix* ) |
19592 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
19593 | ;; | |
2b5f62a0 VZ |
19594 | *-hppa* ) |
19595 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
19596 | ;; | |
1d1b75ac | 19597 | esac |
4f14bcd8 GD |
19598 | fi |
19599 | ||
af7b5345 | 19600 | OPTIMISE= |
4f14bcd8 | 19601 | if test "$wxUSE_OPTIMISE" = "no" ; then |
af7b5345 VZ |
19602 | if test "$GCC" = yes ; then |
19603 | OPTIMISE="-O0" | |
19604 | fi | |
4f14bcd8 GD |
19605 | else |
19606 | if test "$GCC" = yes ; then | |
19607 | OPTIMISE="-O2" | |
af7b5345 VZ |
19608 | |
19609 | case "${host}" in | |
4f14bcd8 GD |
19610 | i586-*-*|i686-*-* ) |
19611 | OPTIMISE="${OPTIMISE} " | |
19612 | ;; | |
19613 | esac | |
19614 | else | |
19615 | OPTIMISE="-O" | |
19616 | fi | |
19617 | fi | |
19618 | ||
8d90d2f2 | 19619 | |
4f14bcd8 | 19620 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
a0b9e27f | 19621 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19622 | #define WXWIN_COMPATIBILITY_2 1 |
a0b9e27f | 19623 | EOF |
4f14bcd8 | 19624 | |
8284b0c5 | 19625 | |
4f14bcd8 GD |
19626 | WXWIN_COMPATIBILITY_2_2="yes" |
19627 | fi | |
19628 | ||
65d8ef1e | 19629 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
a0b9e27f | 19630 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19631 | #define WXWIN_COMPATIBILITY_2_2 1 |
a0b9e27f | 19632 | EOF |
4f14bcd8 | 19633 | |
8d90d2f2 VZ |
19634 | |
19635 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
19636 | fi |
19637 | ||
65d8ef1e VS |
19638 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
19639 | cat >> confdefs.h <<\EOF | |
19640 | #define WXWIN_COMPATIBILITY_2_4 1 | |
19641 | EOF | |
19642 | ||
19643 | fi | |
19644 | ||
8284b0c5 | 19645 | |
10f2d63a | 19646 | if test "$wxUSE_GUI" = "yes"; then |
a0b9e27f | 19647 | cat >> confdefs.h <<\EOF |
10f2d63a | 19648 | #define wxUSE_GUI 1 |
a0b9e27f | 19649 | EOF |
10f2d63a | 19650 | |
8284b0c5 | 19651 | |
10f2d63a | 19652 | else |
a0b9e27f | 19653 | cat >> confdefs.h <<\EOF |
10f2d63a | 19654 | #define wxUSE_NOGUI 1 |
a0b9e27f | 19655 | EOF |
10f2d63a VZ |
19656 | |
19657 | fi | |
19658 | ||
8284b0c5 | 19659 | |
10f2d63a | 19660 | if test "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 19661 | cat >> confdefs.h <<\EOF |
10f2d63a | 19662 | #define wxUSE_UNIX 1 |
a0b9e27f | 19663 | EOF |
10f2d63a VZ |
19664 | |
19665 | fi | |
19666 | ||
8284b0c5 | 19667 | |
10f2d63a | 19668 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
a0b9e27f | 19669 | cat >> confdefs.h <<\EOF |
10f2d63a | 19670 | #define wxUSE_APPLE_IEEE 1 |
a0b9e27f | 19671 | EOF |
10f2d63a VZ |
19672 | |
19673 | fi | |
19674 | ||
1e6feb95 | 19675 | if test "$wxUSE_TIMER" = "yes"; then |
a0b9e27f | 19676 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19677 | #define wxUSE_TIMER 1 |
a0b9e27f | 19678 | EOF |
1e6feb95 VZ |
19679 | |
19680 | fi | |
19681 | ||
10f2d63a | 19682 | if test "$wxUSE_WAVE" = "yes"; then |
a0b9e27f | 19683 | cat >> confdefs.h <<\EOF |
10f2d63a | 19684 | #define wxUSE_WAVE 1 |
a0b9e27f | 19685 | EOF |
10f2d63a VZ |
19686 | |
19687 | fi | |
19688 | ||
1e6feb95 | 19689 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
a0b9e27f | 19690 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19691 | #define wxUSE_CMDLINE_PARSER 1 |
a0b9e27f | 19692 | EOF |
1e6feb95 VZ |
19693 | |
19694 | fi | |
19695 | ||
19696 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
a0b9e27f | 19697 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19698 | #define wxUSE_STOPWATCH 1 |
a0b9e27f | 19699 | EOF |
1e6feb95 VZ |
19700 | |
19701 | fi | |
19702 | ||
19703 | if test "$wxUSE_DATETIME" = "yes"; then | |
a0b9e27f | 19704 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19705 | #define wxUSE_DATETIME 1 |
a0b9e27f | 19706 | EOF |
1e6feb95 VZ |
19707 | |
19708 | fi | |
19709 | ||
19710 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
a0b9e27f | 19711 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19712 | #define wxUSE_TIMEDATE 1 |
a0b9e27f | 19713 | EOF |
1e6feb95 VZ |
19714 | |
19715 | fi | |
19716 | ||
10f2d63a | 19717 | if test "$wxUSE_FILE" = "yes"; then |
a0b9e27f | 19718 | cat >> confdefs.h <<\EOF |
10f2d63a | 19719 | #define wxUSE_FILE 1 |
a0b9e27f | 19720 | EOF |
10f2d63a VZ |
19721 | |
19722 | fi | |
19723 | ||
1e6feb95 | 19724 | if test "$wxUSE_FFILE" = "yes"; then |
a0b9e27f | 19725 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19726 | #define wxUSE_FFILE 1 |
a0b9e27f | 19727 | EOF |
1e6feb95 VZ |
19728 | |
19729 | fi | |
19730 | ||
24528b0c | 19731 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
a0b9e27f | 19732 | cat >> confdefs.h <<\EOF |
24528b0c | 19733 | #define wxUSE_FILESYSTEM 1 |
a0b9e27f | 19734 | EOF |
24528b0c VS |
19735 | |
19736 | fi | |
19737 | ||
10f2d63a | 19738 | if test "$wxUSE_FS_INET" = "yes"; then |
a0b9e27f | 19739 | cat >> confdefs.h <<\EOF |
10f2d63a | 19740 | #define wxUSE_FS_INET 1 |
a0b9e27f | 19741 | EOF |
10f2d63a VZ |
19742 | |
19743 | fi | |
19744 | ||
19745 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
a0b9e27f | 19746 | cat >> confdefs.h <<\EOF |
10f2d63a | 19747 | #define wxUSE_FS_ZIP 1 |
a0b9e27f | 19748 | EOF |
10f2d63a VZ |
19749 | |
19750 | fi | |
19751 | ||
19752 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
a0b9e27f | 19753 | cat >> confdefs.h <<\EOF |
10f2d63a | 19754 | #define wxUSE_ZIPSTREAM 1 |
a0b9e27f | 19755 | EOF |
10f2d63a VZ |
19756 | |
19757 | fi | |
19758 | ||
eb4efbdc | 19759 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
a0b9e27f | 19760 | cat >> confdefs.h <<\EOF |
eb4efbdc | 19761 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
a0b9e27f | 19762 | EOF |
eb4efbdc VZ |
19763 | |
19764 | fi | |
19765 | ||
4f3c5f06 | 19766 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 19767 | cat >> confdefs.h <<\EOF |
4f3c5f06 | 19768 | #define wxUSE_SNGLINST_CHECKER 1 |
a0b9e27f | 19769 | EOF |
4f3c5f06 VZ |
19770 | |
19771 | fi | |
19772 | ||
10f2d63a | 19773 | if test "$wxUSE_BUSYINFO" = "yes"; then |
a0b9e27f | 19774 | cat >> confdefs.h <<\EOF |
10f2d63a | 19775 | #define wxUSE_BUSYINFO 1 |
a0b9e27f | 19776 | EOF |
10f2d63a VZ |
19777 | |
19778 | fi | |
19779 | ||
19780 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
a0b9e27f | 19781 | cat >> confdefs.h <<\EOF |
10f2d63a | 19782 | #define wxUSE_STD_IOSTREAM 1 |
a0b9e27f | 19783 | EOF |
10f2d63a VZ |
19784 | |
19785 | fi | |
19786 | ||
a3a584a7 | 19787 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
a0b9e27f | 19788 | cat >> confdefs.h <<\EOF |
a3a584a7 | 19789 | #define wxUSE_TEXTBUFFER 1 |
a0b9e27f | 19790 | EOF |
a3a584a7 VZ |
19791 | |
19792 | fi | |
19793 | ||
10f2d63a | 19794 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 19795 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
a0b9e27f | 19796 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 19797 | else |
a0b9e27f | 19798 | cat >> confdefs.h <<\EOF |
10f2d63a | 19799 | #define wxUSE_TEXTFILE 1 |
a0b9e27f | 19800 | EOF |
10f2d63a VZ |
19801 | |
19802 | fi | |
19803 | fi | |
19804 | ||
19805 | if test "$wxUSE_CONFIG" = "yes" ; then | |
19806 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
a0b9e27f | 19807 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 19808 | else |
a0b9e27f | 19809 | cat >> confdefs.h <<\EOF |
10f2d63a | 19810 | #define wxUSE_CONFIG 1 |
a0b9e27f | 19811 | EOF |
10f2d63a VZ |
19812 | |
19813 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
19814 | fi | |
19815 | fi | |
19816 | ||
19817 | if test "$wxUSE_INTL" = "yes" ; then | |
19818 | if test "$wxUSE_FILE" != "yes"; then | |
a0b9e27f | 19819 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 19820 | else |
a0b9e27f | 19821 | cat >> confdefs.h <<\EOF |
10f2d63a | 19822 | #define wxUSE_INTL 1 |
a0b9e27f | 19823 | EOF |
10f2d63a VZ |
19824 | |
19825 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 19826 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
19827 | fi |
19828 | fi | |
19829 | ||
19830 | if test "$wxUSE_LOG" = "yes"; then | |
a0b9e27f | 19831 | cat >> confdefs.h <<\EOF |
10f2d63a | 19832 | #define wxUSE_LOG 1 |
a0b9e27f | 19833 | EOF |
10f2d63a | 19834 | |
8284b0c5 | 19835 | |
d73be714 | 19836 | if test "$wxUSE_LOGGUI" = "yes"; then |
a0b9e27f | 19837 | cat >> confdefs.h <<\EOF |
d73be714 | 19838 | #define wxUSE_LOGGUI 1 |
a0b9e27f | 19839 | EOF |
d73be714 VZ |
19840 | |
19841 | fi | |
19842 | ||
19843 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
a0b9e27f | 19844 | cat >> confdefs.h <<\EOF |
d73be714 | 19845 | #define wxUSE_LOGWINDOW 1 |
a0b9e27f | 19846 | EOF |
69d27ff7 MB |
19847 | |
19848 | fi | |
19849 | ||
19850 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
a0b9e27f | 19851 | cat >> confdefs.h <<\EOF |
69d27ff7 | 19852 | #define wxUSE_LOG_DIALOG 1 |
a0b9e27f | 19853 | EOF |
d73be714 VZ |
19854 | |
19855 | fi | |
10f2d63a VZ |
19856 | fi |
19857 | ||
19858 | if test "$wxUSE_LONGLONG" = "yes"; then | |
a0b9e27f | 19859 | cat >> confdefs.h <<\EOF |
10f2d63a | 19860 | #define wxUSE_LONGLONG 1 |
a0b9e27f | 19861 | EOF |
10f2d63a VZ |
19862 | |
19863 | fi | |
19864 | ||
e8f65ba6 | 19865 | if test "$wxUSE_GEOMETRY" = "yes"; then |
a0b9e27f | 19866 | cat >> confdefs.h <<\EOF |
e8f65ba6 | 19867 | #define wxUSE_GEOMETRY 1 |
a0b9e27f | 19868 | EOF |
e8f65ba6 RR |
19869 | |
19870 | fi | |
19871 | ||
10f2d63a | 19872 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
a0b9e27f | 19873 | cat >> confdefs.h <<\EOF |
10f2d63a | 19874 | #define wxUSE_DIALUP_MANAGER 1 |
a0b9e27f | 19875 | EOF |
10f2d63a | 19876 | |
70f7a477 | 19877 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
19878 | fi |
19879 | ||
19880 | if test "$wxUSE_STREAMS" = "yes" ; then | |
a0b9e27f | 19881 | cat >> confdefs.h <<\EOF |
10f2d63a | 19882 | #define wxUSE_STREAMS 1 |
a0b9e27f | 19883 | EOF |
10f2d63a VZ |
19884 | |
19885 | fi | |
19886 | ||
5c6fa7d2 | 19887 | |
8284b0c5 | 19888 | if test "$wxUSE_DATETIME" = "yes"; then |
a0b9e27f | 19889 | for ac_func in strptime |
83307f33 | 19890 | do |
a0b9e27f | 19891 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 19892 | echo "configure:19893: checking for $ac_func" >&5 |
a0b9e27f MB |
19893 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19894 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19895 | else | |
19896 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 19897 | #line 19898 "configure" |
83307f33 VZ |
19898 | #include "confdefs.h" |
19899 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19900 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
19901 | #include <assert.h> |
19902 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19903 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19904 | builtin and then its argument prototype would still apply. */ |
19905 | char $ac_func(); | |
19906 | ||
19907 | int main() { | |
19908 | ||
83307f33 VZ |
19909 | /* The GNU C library defines this for functions which it implements |
19910 | to always fail with ENOSYS. Some functions are actually named | |
19911 | something starting with __ and the normal name is an alias. */ | |
19912 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19913 | choke me | |
19914 | #else | |
a0b9e27f | 19915 | $ac_func(); |
83307f33 VZ |
19916 | #endif |
19917 | ||
a0b9e27f MB |
19918 | ; return 0; } |
19919 | EOF | |
9b4d9d56 | 19920 | if { (eval echo configure:19921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19921 | rm -rf conftest* |
19922 | eval "ac_cv_func_$ac_func=yes" | |
19923 | else | |
19924 | echo "configure: failed program was:" >&5 | |
19925 | cat conftest.$ac_ext >&5 | |
19926 | rm -rf conftest* | |
19927 | eval "ac_cv_func_$ac_func=no" | |
19928 | fi | |
19929 | rm -f conftest* | |
19930 | fi | |
83307f33 | 19931 | |
a0b9e27f MB |
19932 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
19933 | echo "$ac_t""yes" 1>&6 | |
19934 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19935 | cat >> confdefs.h <<EOF | |
19936 | #define $ac_tr_func 1 | |
19937 | EOF | |
19938 | ||
19939 | else | |
19940 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
19941 | fi |
19942 | done | |
19943 | ||
5c6fa7d2 | 19944 | |
a0b9e27f | 19945 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
9b4d9d56 | 19946 | echo "configure:19947: checking for timezone variable in <time.h>" >&5 |
a0b9e27f MB |
19947 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
19948 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 19949 | else |
a0b9e27f MB |
19950 | |
19951 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 19952 | #line 19953 "configure" |
360d6699 VZ |
19953 | #include "confdefs.h" |
19954 | ||
b4085ce6 | 19955 | #include <time.h> |
a0b9e27f MB |
19956 | |
19957 | int main() { | |
360d6699 VZ |
19958 | |
19959 | int tz; | |
4f11a343 | 19960 | tz = timezone; |
a0b9e27f MB |
19961 | |
19962 | ; return 0; } | |
19963 | EOF | |
9b4d9d56 | 19964 | if { (eval echo configure:19965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19965 | rm -rf conftest* |
19966 | ||
4f11a343 | 19967 | wx_cv_var_timezone=timezone |
a0b9e27f | 19968 | |
360d6699 | 19969 | else |
a0b9e27f MB |
19970 | echo "configure: failed program was:" >&5 |
19971 | cat conftest.$ac_ext >&5 | |
19972 | rm -rf conftest* | |
19973 | ||
19974 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 19975 | #line 19976 "configure" |
360d6699 VZ |
19976 | #include "confdefs.h" |
19977 | ||
b4085ce6 | 19978 | #include <time.h> |
a0b9e27f MB |
19979 | |
19980 | int main() { | |
360d6699 VZ |
19981 | |
19982 | int tz; | |
19983 | tz = _timezone; | |
a0b9e27f MB |
19984 | |
19985 | ; return 0; } | |
19986 | EOF | |
9b4d9d56 | 19987 | if { (eval echo configure:19988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19988 | rm -rf conftest* |
19989 | ||
360d6699 | 19990 | wx_cv_var_timezone=_timezone |
a0b9e27f | 19991 | |
5357c8e8 | 19992 | else |
a0b9e27f MB |
19993 | echo "configure: failed program was:" >&5 |
19994 | cat conftest.$ac_ext >&5 | |
19995 | rm -rf conftest* | |
19996 | ||
19997 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 19998 | #line 19999 "configure" |
5357c8e8 VZ |
19999 | #include "confdefs.h" |
20000 | ||
b4085ce6 | 20001 | #include <time.h> |
a0b9e27f MB |
20002 | |
20003 | int main() { | |
5357c8e8 VZ |
20004 | |
20005 | int tz; | |
4f11a343 | 20006 | tz = __timezone; |
a0b9e27f MB |
20007 | |
20008 | ; return 0; } | |
20009 | EOF | |
9b4d9d56 | 20010 | if { (eval echo configure:20011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
20011 | rm -rf conftest* |
20012 | ||
4f11a343 | 20013 | wx_cv_var_timezone=__timezone |
a0b9e27f | 20014 | |
360d6699 | 20015 | else |
a0b9e27f MB |
20016 | echo "configure: failed program was:" >&5 |
20017 | cat conftest.$ac_ext >&5 | |
20018 | rm -rf conftest* | |
20019 | ||
f9bc1684 | 20020 | if test "$USE_DOS" = 0 ; then |
a0b9e27f | 20021 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 | 20022 | fi |
a0b9e27f MB |
20023 | |
20024 | ||
328a083c | 20025 | fi |
a0b9e27f MB |
20026 | rm -f conftest* |
20027 | ||
20028 | ||
7b4a847f | 20029 | fi |
a0b9e27f MB |
20030 | rm -f conftest* |
20031 | ||
20032 | ||
5c6fa7d2 | 20033 | fi |
a0b9e27f MB |
20034 | rm -f conftest* |
20035 | ||
20036 | ||
247f5006 | 20037 | fi |
a0b9e27f MB |
20038 | |
20039 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
698dcdb6 | 20040 | |
f9bc1684 | 20041 | if test "x$wx_cv_var_timezone" != x ; then |
a0b9e27f | 20042 | cat >> confdefs.h <<EOF |
360d6699 | 20043 | #define WX_TIMEZONE $wx_cv_var_timezone |
a0b9e27f | 20044 | EOF |
360d6699 | 20045 | |
f9bc1684 | 20046 | fi |
698dcdb6 | 20047 | |
a0b9e27f | 20048 | for ac_func in localtime |
afc31813 | 20049 | do |
a0b9e27f | 20050 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 20051 | echo "configure:20052: checking for $ac_func" >&5 |
a0b9e27f MB |
20052 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20054 | else | |
20055 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 20056 | #line 20057 "configure" |
10f2d63a | 20057 | #include "confdefs.h" |
afc31813 | 20058 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 20059 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
20060 | #include <assert.h> |
20061 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20062 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20063 | builtin and then its argument prototype would still apply. */ |
20064 | char $ac_func(); | |
20065 | ||
20066 | int main() { | |
20067 | ||
afc31813 VZ |
20068 | /* The GNU C library defines this for functions which it implements |
20069 | to always fail with ENOSYS. Some functions are actually named | |
20070 | something starting with __ and the normal name is an alias. */ | |
20071 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20072 | choke me | |
20073 | #else | |
a0b9e27f | 20074 | $ac_func(); |
afc31813 VZ |
20075 | #endif |
20076 | ||
a0b9e27f MB |
20077 | ; return 0; } |
20078 | EOF | |
9b4d9d56 | 20079 | if { (eval echo configure:20080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20080 | rm -rf conftest* |
20081 | eval "ac_cv_func_$ac_func=yes" | |
20082 | else | |
20083 | echo "configure: failed program was:" >&5 | |
20084 | cat conftest.$ac_ext >&5 | |
20085 | rm -rf conftest* | |
20086 | eval "ac_cv_func_$ac_func=no" | |
20087 | fi | |
20088 | rm -f conftest* | |
20089 | fi | |
afc31813 | 20090 | |
a0b9e27f MB |
20091 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
20092 | echo "$ac_t""yes" 1>&6 | |
20093 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20094 | cat >> confdefs.h <<EOF | |
20095 | #define $ac_tr_func 1 | |
20096 | EOF | |
20097 | ||
20098 | else | |
20099 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
20100 | fi |
20101 | done | |
20102 | ||
5c6fa7d2 | 20103 | |
8284b0c5 | 20104 | if test "$ac_cv_func_localtime" = "yes"; then |
a0b9e27f | 20105 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
9b4d9d56 | 20106 | echo "configure:20107: checking for tm_gmtoff in struct tm" >&5 |
a0b9e27f MB |
20107 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
20108 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20109 | else | |
20110 | ||
20111 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 20112 | #line 20113 "configure" |
0470b1e6 VZ |
20113 | #include "confdefs.h" |
20114 | ||
b4085ce6 | 20115 | #include <time.h> |
a0b9e27f MB |
20116 | |
20117 | int main() { | |
0470b1e6 VZ |
20118 | |
20119 | struct tm tm; | |
20120 | tm.tm_gmtoff++; | |
a0b9e27f MB |
20121 | |
20122 | ; return 0; } | |
20123 | EOF | |
9b4d9d56 | 20124 | if { (eval echo configure:20125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
20125 | rm -rf conftest* |
20126 | ||
f03a98d8 | 20127 | wx_cv_struct_tm_has_gmtoff=yes |
a0b9e27f | 20128 | |
0470b1e6 | 20129 | else |
a0b9e27f MB |
20130 | echo "configure: failed program was:" >&5 |
20131 | cat conftest.$ac_ext >&5 | |
20132 | rm -rf conftest* | |
20133 | wx_cv_struct_tm_has_gmtoff=no | |
20134 | ||
5c6fa7d2 | 20135 | fi |
a0b9e27f MB |
20136 | rm -f conftest* |
20137 | ||
247f5006 | 20138 | fi |
a0b9e27f MB |
20139 | |
20140 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
20141 | fi |
20142 | ||
20143 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
a0b9e27f | 20144 | cat >> confdefs.h <<\EOF |
6232543b | 20145 | #define WX_GMTOFF_IN_TM 1 |
a0b9e27f | 20146 | EOF |
0470b1e6 | 20147 | |
3fcdd07b VZ |
20148 | fi |
20149 | ||
a0b9e27f | 20150 | for ac_func in gettimeofday ftime |
3fcdd07b | 20151 | do |
a0b9e27f | 20152 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 20153 | echo "configure:20154: checking for $ac_func" >&5 |
a0b9e27f MB |
20154 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20155 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20156 | else | |
20157 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 20158 | #line 20159 "configure" |
3fcdd07b VZ |
20159 | #include "confdefs.h" |
20160 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20161 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
20162 | #include <assert.h> |
20163 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20164 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20165 | builtin and then its argument prototype would still apply. */ |
20166 | char $ac_func(); | |
20167 | ||
20168 | int main() { | |
20169 | ||
3fcdd07b VZ |
20170 | /* The GNU C library defines this for functions which it implements |
20171 | to always fail with ENOSYS. Some functions are actually named | |
20172 | something starting with __ and the normal name is an alias. */ | |
20173 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20174 | choke me | |
20175 | #else | |
a0b9e27f | 20176 | $ac_func(); |
3fcdd07b VZ |
20177 | #endif |
20178 | ||
a0b9e27f MB |
20179 | ; return 0; } |
20180 | EOF | |
9b4d9d56 | 20181 | if { (eval echo configure:20182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20182 | rm -rf conftest* |
20183 | eval "ac_cv_func_$ac_func=yes" | |
20184 | else | |
20185 | echo "configure: failed program was:" >&5 | |
20186 | cat conftest.$ac_ext >&5 | |
20187 | rm -rf conftest* | |
20188 | eval "ac_cv_func_$ac_func=no" | |
20189 | fi | |
20190 | rm -f conftest* | |
20191 | fi | |
20192 | ||
20193 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20194 | echo "$ac_t""yes" 1>&6 | |
20195 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20196 | cat >> confdefs.h <<EOF | |
20197 | #define $ac_tr_func 1 | |
20198 | EOF | |
3fcdd07b | 20199 | break |
a0b9e27f MB |
20200 | else |
20201 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
20202 | fi |
20203 | done | |
20204 | ||
698dcdb6 | 20205 | |
8284b0c5 | 20206 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
a0b9e27f | 20207 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
9b4d9d56 | 20208 | echo "configure:20209: checking whether gettimeofday takes two arguments" >&5 |
a0b9e27f MB |
20209 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
20210 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20211 | else | |
20212 | ||
20213 | ||
20214 | ac_ext=C | |
20215 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 20216 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20217 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20218 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20219 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 20220 | |
8284b0c5 | 20221 | |
a0b9e27f | 20222 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 20223 | #line 20224 "configure" |
10f2d63a | 20224 | #include "confdefs.h" |
afc31813 VZ |
20225 | |
20226 | #include <sys/time.h> | |
20227 | #include <unistd.h> | |
a0b9e27f MB |
20228 | |
20229 | int main() { | |
afc31813 VZ |
20230 | |
20231 | struct timeval tv; | |
776862b4 | 20232 | gettimeofday(&tv, NULL); |
a0b9e27f MB |
20233 | |
20234 | ; return 0; } | |
20235 | EOF | |
9b4d9d56 | 20236 | if { (eval echo configure:20237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20237 | rm -rf conftest* |
afc31813 | 20238 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 20239 | else |
a0b9e27f MB |
20240 | echo "configure: failed program was:" >&5 |
20241 | cat conftest.$ac_ext >&5 | |
20242 | rm -rf conftest* | |
20243 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 20244 | #line 20245 "configure" |
10f2d63a | 20245 | #include "confdefs.h" |
afc31813 VZ |
20246 | |
20247 | #include <sys/time.h> | |
20248 | #include <unistd.h> | |
a0b9e27f MB |
20249 | |
20250 | int main() { | |
afc31813 VZ |
20251 | |
20252 | struct timeval tv; | |
20253 | gettimeofday(&tv); | |
a0b9e27f MB |
20254 | |
20255 | ; return 0; } | |
20256 | EOF | |
9b4d9d56 | 20257 | if { (eval echo configure:20258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20258 | rm -rf conftest* |
afc31813 | 20259 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 20260 | else |
a0b9e27f MB |
20261 | echo "configure: failed program was:" >&5 |
20262 | cat conftest.$ac_ext >&5 | |
20263 | rm -rf conftest* | |
20264 | ||
20265 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
776862b4 | 20266 | wx_cv_func_gettimeofday_has_2_args=unknown |
a0b9e27f MB |
20267 | |
20268 | ||
10f2d63a | 20269 | fi |
a0b9e27f MB |
20270 | rm -f conftest* |
20271 | ||
10f2d63a | 20272 | fi |
a0b9e27f | 20273 | rm -f conftest* |
afc31813 | 20274 | ac_ext=c |
a0b9e27f | 20275 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 20276 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20277 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20278 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20279 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20280 | |
a0b9e27f | 20281 | |
247f5006 | 20282 | fi |
a0b9e27f MB |
20283 | |
20284 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 20285 | |
afc31813 | 20286 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
a0b9e27f | 20287 | cat >> confdefs.h <<\EOF |
afc31813 | 20288 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
a0b9e27f | 20289 | EOF |
afc31813 VZ |
20290 | |
20291 | fi | |
20292 | fi | |
20293 | ||
a0b9e27f | 20294 | cat >> confdefs.h <<\EOF |
afc31813 | 20295 | #define wxUSE_TIMEDATE 1 |
a0b9e27f | 20296 | EOF |
afc31813 VZ |
20297 | |
20298 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
20299 | fi | |
20300 | ||
8284b0c5 | 20301 | |
52127426 | 20302 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 20303 | if test "$wxUSE_MGL" = "1"; then |
a0b9e27f | 20304 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
20305 | wxUSE_SOCKETS="no" |
20306 | fi | |
0feee163 | 20307 | fi |
b089607b | 20308 | |
0feee163 VZ |
20309 | if test "$wxUSE_SOCKETS" = "yes"; then |
20310 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 20311 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
9b4d9d56 | 20312 | echo "configure:20313: checking for socket" >&5 |
a0b9e27f MB |
20313 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
20314 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 20315 | else |
a0b9e27f | 20316 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 20317 | #line 20318 "configure" |
c63c7106 VZ |
20318 | #include "confdefs.h" |
20319 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20320 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
20321 | #include <assert.h> |
20322 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20323 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20324 | builtin and then its argument prototype would still apply. */ |
20325 | char socket(); | |
20326 | ||
20327 | int main() { | |
20328 | ||
c63c7106 VZ |
20329 | /* The GNU C library defines this for functions which it implements |
20330 | to always fail with ENOSYS. Some functions are actually named | |
20331 | something starting with __ and the normal name is an alias. */ | |
20332 | #if defined (__stub_socket) || defined (__stub___socket) | |
20333 | choke me | |
20334 | #else | |
a0b9e27f | 20335 | socket(); |
c63c7106 VZ |
20336 | #endif |
20337 | ||
a0b9e27f MB |
20338 | ; return 0; } |
20339 | EOF | |
9b4d9d56 | 20340 | if { (eval echo configure:20341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20341 | rm -rf conftest* |
20342 | eval "ac_cv_func_socket=yes" | |
20343 | else | |
20344 | echo "configure: failed program was:" >&5 | |
20345 | cat conftest.$ac_ext >&5 | |
20346 | rm -rf conftest* | |
20347 | eval "ac_cv_func_socket=no" | |
20348 | fi | |
20349 | rm -f conftest* | |
20350 | fi | |
20351 | ||
20352 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
20353 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
20354 | : |
20355 | else | |
a0b9e27f MB |
20356 | echo "$ac_t""no" 1>&6 |
20357 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
9b4d9d56 | 20358 | echo "configure:20359: checking for socket in -lsocket" >&5 |
a0b9e27f MB |
20359 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
20360 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20361 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 20362 | else |
a0b9e27f | 20363 | ac_save_LIBS="$LIBS" |
c63c7106 | 20364 | LIBS="-lsocket $LIBS" |
a0b9e27f | 20365 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 20366 | #line 20367 "configure" |
c63c7106 VZ |
20367 | #include "confdefs.h" |
20368 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20369 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20370 | builtin and then its argument prototype would still apply. */ |
20371 | char socket(); | |
20372 | ||
20373 | int main() { | |
20374 | socket() | |
20375 | ; return 0; } | |
20376 | EOF | |
9b4d9d56 | 20377 | if { (eval echo configure:20378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20378 | rm -rf conftest* |
20379 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20380 | else | |
20381 | echo "configure: failed program was:" >&5 | |
20382 | cat conftest.$ac_ext >&5 | |
20383 | rm -rf conftest* | |
20384 | eval "ac_cv_lib_$ac_lib_var=no" | |
20385 | fi | |
20386 | rm -f conftest* | |
20387 | LIBS="$ac_save_LIBS" | |
20388 | ||
20389 | fi | |
20390 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20391 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
20392 | if test "$INET_LINK" != " -lsocket"; then |
20393 | INET_LINK="$INET_LINK -lsocket" | |
20394 | fi | |
c63c7106 | 20395 | else |
a0b9e27f | 20396 | echo "$ac_t""no" 1>&6 |
afc31813 | 20397 | |
a0b9e27f | 20398 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
3a922bb4 | 20399 | wxUSE_SOCKETS=no |
a0b9e27f MB |
20400 | |
20401 | ||
6232543b | 20402 | fi |
b089607b | 20403 | |
a0b9e27f | 20404 | |
1e487827 | 20405 | fi |
afc31813 | 20406 | |
3a922bb4 | 20407 | fi |
0feee163 | 20408 | fi |
51a9faba | 20409 | |
0feee163 VZ |
20410 | if test "$wxUSE_SOCKETS" = "yes" ; then |
20411 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 20412 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
9b4d9d56 | 20413 | echo "configure:20414: checking what is the type of the third argument of getsockname" >&5 |
a0b9e27f MB |
20414 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
20415 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20416 | else | |
20417 | ||
20418 | ||
20419 | ac_ext=C | |
20420 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 20421 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20422 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20423 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20424 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 20425 | |
8284b0c5 | 20426 | |
a0b9e27f | 20427 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 20428 | #line 20429 "configure" |
afc31813 | 20429 | #include "confdefs.h" |
51a9faba | 20430 | |
3a922bb4 RL |
20431 | #include <sys/types.h> |
20432 | #include <sys/socket.h> | |
a0b9e27f MB |
20433 | |
20434 | int main() { | |
51a9faba | 20435 | |
3a922bb4 RL |
20436 | socklen_t len; |
20437 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20438 | |
20439 | ; return 0; } | |
20440 | EOF | |
9b4d9d56 | 20441 | if { (eval echo configure:20442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20442 | rm -rf conftest* |
51a9faba | 20443 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 20444 | else |
a0b9e27f MB |
20445 | echo "configure: failed program was:" >&5 |
20446 | cat conftest.$ac_ext >&5 | |
20447 | rm -rf conftest* | |
20448 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 20449 | #line 20450 "configure" |
afc31813 | 20450 | #include "confdefs.h" |
51a9faba | 20451 | |
3a922bb4 RL |
20452 | #include <sys/types.h> |
20453 | #include <sys/socket.h> | |
a0b9e27f MB |
20454 | |
20455 | int main() { | |
51a9faba | 20456 | |
3a922bb4 RL |
20457 | size_t len; |
20458 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20459 | |
20460 | ; return 0; } | |
20461 | EOF | |
9b4d9d56 | 20462 | if { (eval echo configure:20463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20463 | rm -rf conftest* |
51a9faba | 20464 | wx_cv_type_getsockname3=size_t |
afc31813 | 20465 | else |
a0b9e27f MB |
20466 | echo "configure: failed program was:" >&5 |
20467 | cat conftest.$ac_ext >&5 | |
20468 | rm -rf conftest* | |
20469 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 20470 | #line 20471 "configure" |
afc31813 | 20471 | #include "confdefs.h" |
51a9faba | 20472 | |
3a922bb4 RL |
20473 | #include <sys/types.h> |
20474 | #include <sys/socket.h> | |
a0b9e27f MB |
20475 | |
20476 | int main() { | |
51a9faba | 20477 | |
3a922bb4 RL |
20478 | int len; |
20479 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20480 | |
20481 | ; return 0; } | |
20482 | EOF | |
9b4d9d56 | 20483 | if { (eval echo configure:20484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20484 | rm -rf conftest* |
51a9faba | 20485 | wx_cv_type_getsockname3=int |
afc31813 | 20486 | else |
a0b9e27f MB |
20487 | echo "configure: failed program was:" >&5 |
20488 | cat conftest.$ac_ext >&5 | |
20489 | rm -rf conftest* | |
20490 | wx_cv_type_getsockname3=unknown | |
20491 | ||
afc31813 | 20492 | fi |
a0b9e27f MB |
20493 | rm -f conftest* |
20494 | ||
afc31813 | 20495 | fi |
a0b9e27f MB |
20496 | rm -f conftest* |
20497 | ||
afc31813 | 20498 | fi |
a0b9e27f | 20499 | rm -f conftest* |
51a9faba | 20500 | |
3a922bb4 | 20501 | ac_ext=c |
a0b9e27f | 20502 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 20503 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20504 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20505 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20506 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20507 | |
a0b9e27f | 20508 | |
247f5006 | 20509 | fi |
a0b9e27f MB |
20510 | |
20511 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 20512 | |
3a922bb4 RL |
20513 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
20514 | wxUSE_SOCKETS=no | |
a0b9e27f | 20515 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
3a922bb4 | 20516 | else |
a0b9e27f | 20517 | cat >> confdefs.h <<EOF |
51a9faba | 20518 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
a0b9e27f | 20519 | EOF |
51a9faba | 20520 | |
3a922bb4 | 20521 | fi |
51a9faba VZ |
20522 | fi |
20523 | fi | |
afc31813 | 20524 | |
51a9faba | 20525 | if test "$wxUSE_SOCKETS" = "yes" ; then |
a0b9e27f | 20526 | cat >> confdefs.h <<\EOF |
afc31813 | 20527 | #define wxUSE_SOCKETS 1 |
a0b9e27f | 20528 | EOF |
afc31813 | 20529 | |
70f7a477 | 20530 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
20531 | fi |
20532 | ||
8284b0c5 | 20533 | |
dc3d889d VZ |
20534 | if test "$wxUSE_GUI" = "yes"; then |
20535 | ||
ac0c4cc3 | 20536 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then |
a0b9e27f | 20537 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
20538 | wxUSE_JOYSTICK=no |
20539 | fi | |
20540 | if test "$TOOLKIT" = "MOTIF"; then | |
a0b9e27f | 20541 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 |
156b2523 | 20542 | wxUSE_JOYSTICK=no |
f79bd02d JS |
20543 | fi |
20544 | if test "$TOOLKIT" = "X11"; then | |
a0b9e27f | 20545 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 |
f79bd02d | 20546 | wxUSE_JOYSTICK=no |
156b2523 GD |
20547 | fi |
20548 | ||
3a922bb4 RL |
20549 | if test "$TOOLKIT" != "MSW"; then |
20550 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
a0b9e27f | 20551 | for ac_hdr in linux/joystick.h |
10f2d63a | 20552 | do |
a0b9e27f MB |
20553 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
20554 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9b4d9d56 | 20555 | echo "configure:20556: checking for $ac_hdr" >&5 |
a0b9e27f MB |
20556 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20557 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20558 | else | |
20559 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 20560 | #line 20561 "configure" |
247f5006 | 20561 | #include "confdefs.h" |
a0b9e27f MB |
20562 | #include <$ac_hdr> |
20563 | EOF | |
20564 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 20565 | { (eval echo configure:20566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
20566 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20567 | if test -z "$ac_err"; then | |
20568 | rm -rf conftest* | |
20569 | eval "ac_cv_header_$ac_safe=yes" | |
20570 | else | |
20571 | echo "$ac_err" >&5 | |
20572 | echo "configure: failed program was:" >&5 | |
247f5006 | 20573 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
20574 | rm -rf conftest* |
20575 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 20576 | fi |
a0b9e27f | 20577 | rm -f conftest* |
10f2d63a | 20578 | fi |
a0b9e27f MB |
20579 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
20580 | echo "$ac_t""yes" 1>&6 | |
20581 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20582 | cat >> confdefs.h <<EOF | |
20583 | #define $ac_tr_hdr 1 | |
20584 | EOF | |
20585 | ||
20586 | else | |
20587 | echo "$ac_t""no" 1>&6 | |
247f5006 | 20588 | fi |
10f2d63a VZ |
20589 | done |
20590 | ||
3a922bb4 RL |
20591 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
20592 | wxUSE_JOYSTICK=no | |
a0b9e27f | 20593 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
20594 | fi |
20595 | fi | |
20596 | fi | |
b089607b | 20597 | |
3a922bb4 | 20598 | if test "$wxUSE_JOYSTICK" = "yes"; then |
a0b9e27f | 20599 | cat >> confdefs.h <<\EOF |
10f2d63a | 20600 | #define wxUSE_JOYSTICK 1 |
a0b9e27f | 20601 | EOF |
10f2d63a | 20602 | |
3a922bb4 RL |
20603 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
20604 | fi | |
dc3d889d VZ |
20605 | fi |
20606 | ||
8284b0c5 | 20607 | |
b089607b VZ |
20608 | if test "$TOOLKIT" != "MSW"; then |
20609 | ||
3a922bb4 RL |
20610 | HAVE_DL_FUNCS=0 |
20611 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 20612 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
20613 | if test "$USE_DARWIN" = 1; then |
20614 | HAVE_DL_FUNCS=1 | |
20615 | else | |
a0b9e27f | 20616 | for ac_func in dlopen |
10f2d63a | 20617 | do |
a0b9e27f | 20618 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 20619 | echo "configure:20620: checking for $ac_func" >&5 |
a0b9e27f MB |
20620 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20621 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20622 | else | |
20623 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 20624 | #line 20625 "configure" |
10f2d63a VZ |
20625 | #include "confdefs.h" |
20626 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20627 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
20628 | #include <assert.h> |
20629 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20630 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20631 | builtin and then its argument prototype would still apply. */ |
20632 | char $ac_func(); | |
20633 | ||
20634 | int main() { | |
20635 | ||
10f2d63a VZ |
20636 | /* The GNU C library defines this for functions which it implements |
20637 | to always fail with ENOSYS. Some functions are actually named | |
20638 | something starting with __ and the normal name is an alias. */ | |
20639 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20640 | choke me | |
20641 | #else | |
a0b9e27f | 20642 | $ac_func(); |
10f2d63a VZ |
20643 | #endif |
20644 | ||
a0b9e27f MB |
20645 | ; return 0; } |
20646 | EOF | |
9b4d9d56 | 20647 | if { (eval echo configure:20648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20648 | rm -rf conftest* |
20649 | eval "ac_cv_func_$ac_func=yes" | |
20650 | else | |
20651 | echo "configure: failed program was:" >&5 | |
20652 | cat conftest.$ac_ext >&5 | |
20653 | rm -rf conftest* | |
20654 | eval "ac_cv_func_$ac_func=no" | |
20655 | fi | |
20656 | rm -f conftest* | |
20657 | fi | |
20658 | ||
20659 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20660 | echo "$ac_t""yes" 1>&6 | |
20661 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20662 | cat >> confdefs.h <<EOF | |
20663 | #define $ac_tr_func 1 | |
20664 | EOF | |
20665 | ||
20666 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20667 | #define HAVE_DLOPEN 1 |
a0b9e27f | 20668 | EOF |
10f2d63a | 20669 | |
3a922bb4 | 20670 | HAVE_DL_FUNCS=1 |
a0b9e27f | 20671 | |
10f2d63a | 20672 | else |
a0b9e27f MB |
20673 | echo "$ac_t""no" 1>&6 |
20674 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
9b4d9d56 | 20675 | echo "configure:20676: checking for dlopen in -ldl" >&5 |
a0b9e27f MB |
20676 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
20677 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20678 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20679 | else |
a0b9e27f | 20680 | ac_save_LIBS="$LIBS" |
10f2d63a | 20681 | LIBS="-ldl $LIBS" |
a0b9e27f | 20682 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 20683 | #line 20684 "configure" |
10f2d63a VZ |
20684 | #include "confdefs.h" |
20685 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20686 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20687 | builtin and then its argument prototype would still apply. */ |
20688 | char dlopen(); | |
20689 | ||
20690 | int main() { | |
20691 | dlopen() | |
20692 | ; return 0; } | |
20693 | EOF | |
9b4d9d56 | 20694 | if { (eval echo configure:20695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20695 | rm -rf conftest* |
20696 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20697 | else | |
20698 | echo "configure: failed program was:" >&5 | |
20699 | cat conftest.$ac_ext >&5 | |
20700 | rm -rf conftest* | |
20701 | eval "ac_cv_lib_$ac_lib_var=no" | |
20702 | fi | |
20703 | rm -f conftest* | |
20704 | LIBS="$ac_save_LIBS" | |
20705 | ||
20706 | fi | |
20707 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20708 | echo "$ac_t""yes" 1>&6 | |
20709 | ||
20710 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20711 | #define HAVE_DLOPEN 1 |
a0b9e27f | 20712 | EOF |
10f2d63a | 20713 | |
3a922bb4 | 20714 | HAVE_DL_FUNCS=1 |
3d63bc3a | 20715 | DL_LINK=" -ldl$DL_LINK" |
a0b9e27f | 20716 | |
10f2d63a | 20717 | else |
a0b9e27f | 20718 | echo "$ac_t""no" 1>&6 |
10f2d63a | 20719 | |
a0b9e27f | 20720 | for ac_func in shl_load |
10f2d63a | 20721 | do |
a0b9e27f | 20722 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 20723 | echo "configure:20724: checking for $ac_func" >&5 |
a0b9e27f MB |
20724 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20725 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20726 | else | |
20727 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 20728 | #line 20729 "configure" |
10f2d63a VZ |
20729 | #include "confdefs.h" |
20730 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20731 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
20732 | #include <assert.h> |
20733 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20734 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20735 | builtin and then its argument prototype would still apply. */ |
20736 | char $ac_func(); | |
20737 | ||
20738 | int main() { | |
20739 | ||
10f2d63a VZ |
20740 | /* The GNU C library defines this for functions which it implements |
20741 | to always fail with ENOSYS. Some functions are actually named | |
20742 | something starting with __ and the normal name is an alias. */ | |
20743 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20744 | choke me | |
20745 | #else | |
a0b9e27f | 20746 | $ac_func(); |
10f2d63a VZ |
20747 | #endif |
20748 | ||
a0b9e27f MB |
20749 | ; return 0; } |
20750 | EOF | |
9b4d9d56 | 20751 | if { (eval echo configure:20752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20752 | rm -rf conftest* |
20753 | eval "ac_cv_func_$ac_func=yes" | |
20754 | else | |
20755 | echo "configure: failed program was:" >&5 | |
20756 | cat conftest.$ac_ext >&5 | |
20757 | rm -rf conftest* | |
20758 | eval "ac_cv_func_$ac_func=no" | |
20759 | fi | |
20760 | rm -f conftest* | |
20761 | fi | |
20762 | ||
20763 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20764 | echo "$ac_t""yes" 1>&6 | |
20765 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20766 | cat >> confdefs.h <<EOF | |
20767 | #define $ac_tr_func 1 | |
20768 | EOF | |
20769 | ||
20770 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20771 | #define HAVE_SHL_LOAD 1 |
a0b9e27f | 20772 | EOF |
10f2d63a | 20773 | |
3a922bb4 | 20774 | HAVE_SHL_FUNCS=1 |
a0b9e27f | 20775 | |
10f2d63a | 20776 | else |
a0b9e27f MB |
20777 | echo "$ac_t""no" 1>&6 |
20778 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
9b4d9d56 | 20779 | echo "configure:20780: checking for dld in -lshl_load" >&5 |
a0b9e27f MB |
20780 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
20781 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20782 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 20783 | else |
a0b9e27f | 20784 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 20785 | LIBS="-lshl_load $LIBS" |
a0b9e27f | 20786 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 20787 | #line 20788 "configure" |
f6bcfd97 | 20788 | #include "confdefs.h" |
8284b0c5 | 20789 | /* Override any gcc2 internal prototype to avoid an error. */ |
f6bcfd97 | 20790 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
20791 | builtin and then its argument prototype would still apply. */ |
20792 | char dld(); | |
20793 | ||
20794 | int main() { | |
20795 | dld() | |
20796 | ; return 0; } | |
20797 | EOF | |
9b4d9d56 | 20798 | if { (eval echo configure:20799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20799 | rm -rf conftest* |
20800 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20801 | else | |
20802 | echo "configure: failed program was:" >&5 | |
20803 | cat conftest.$ac_ext >&5 | |
20804 | rm -rf conftest* | |
20805 | eval "ac_cv_lib_$ac_lib_var=no" | |
20806 | fi | |
20807 | rm -f conftest* | |
20808 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 20809 | |
a0b9e27f MB |
20810 | fi |
20811 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20812 | echo "$ac_t""yes" 1>&6 | |
20813 | ||
3a922bb4 | 20814 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 20815 | DL_LINK=" -ldld$DL_LINK" |
a0b9e27f MB |
20816 | |
20817 | else | |
20818 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
20819 | fi |
20820 | ||
a0b9e27f | 20821 | |
10f2d63a VZ |
20822 | fi |
20823 | done | |
20824 | ||
a0b9e27f | 20825 | |
10f2d63a VZ |
20826 | fi |
20827 | ||
a0b9e27f | 20828 | |
10f2d63a VZ |
20829 | fi |
20830 | done | |
20831 | ||
5c6fa7d2 | 20832 | |
8284b0c5 | 20833 | if test "$HAVE_DL_FUNCS" = 1; then |
a0b9e27f | 20834 | for ac_func in dlerror |
f6bcfd97 | 20835 | do |
a0b9e27f | 20836 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9b4d9d56 | 20837 | echo "configure:20838: checking for $ac_func" >&5 |
a0b9e27f MB |
20838 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20839 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20840 | else | |
20841 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 20842 | #line 20843 "configure" |
f6bcfd97 BP |
20843 | #include "confdefs.h" |
20844 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20845 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
20846 | #include <assert.h> |
20847 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20848 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20849 | builtin and then its argument prototype would still apply. */ |
20850 | char $ac_func(); | |
20851 | ||
20852 | int main() { | |
20853 | ||
f6bcfd97 BP |
20854 | /* The GNU C library defines this for functions which it implements |
20855 | to always fail with ENOSYS. Some functions are actually named | |
20856 | something starting with __ and the normal name is an alias. */ | |
20857 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20858 | choke me | |
20859 | #else | |
a0b9e27f | 20860 | $ac_func(); |
f6bcfd97 BP |
20861 | #endif |
20862 | ||
a0b9e27f MB |
20863 | ; return 0; } |
20864 | EOF | |
9b4d9d56 | 20865 | if { (eval echo configure:20866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20866 | rm -rf conftest* |
20867 | eval "ac_cv_func_$ac_func=yes" | |
20868 | else | |
20869 | echo "configure: failed program was:" >&5 | |
20870 | cat conftest.$ac_ext >&5 | |
20871 | rm -rf conftest* | |
20872 | eval "ac_cv_func_$ac_func=no" | |
20873 | fi | |
20874 | rm -f conftest* | |
20875 | fi | |
20876 | ||
20877 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20878 | echo "$ac_t""yes" 1>&6 | |
20879 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20880 | cat >> confdefs.h <<EOF | |
20881 | #define $ac_tr_func 1 | |
20882 | EOF | |
20883 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 20884 | #define HAVE_DLERROR 1 |
a0b9e27f | 20885 | EOF |
f6bcfd97 BP |
20886 | |
20887 | else | |
a0b9e27f MB |
20888 | echo "$ac_t""no" 1>&6 |
20889 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
9b4d9d56 | 20890 | echo "configure:20891: checking for dlerror in -ldl" >&5 |
a0b9e27f MB |
20891 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
20892 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20893 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 20894 | else |
a0b9e27f | 20895 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 20896 | LIBS="-ldl $LIBS" |
a0b9e27f | 20897 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 20898 | #line 20899 "configure" |
f6bcfd97 BP |
20899 | #include "confdefs.h" |
20900 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20901 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20902 | builtin and then its argument prototype would still apply. */ |
20903 | char dlerror(); | |
20904 | ||
20905 | int main() { | |
20906 | dlerror() | |
20907 | ; return 0; } | |
20908 | EOF | |
9b4d9d56 | 20909 | if { (eval echo configure:20910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20910 | rm -rf conftest* |
20911 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20912 | else | |
20913 | echo "configure: failed program was:" >&5 | |
20914 | cat conftest.$ac_ext >&5 | |
20915 | rm -rf conftest* | |
20916 | eval "ac_cv_lib_$ac_lib_var=no" | |
20917 | fi | |
20918 | rm -f conftest* | |
20919 | LIBS="$ac_save_LIBS" | |
20920 | ||
20921 | fi | |
20922 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20923 | echo "$ac_t""yes" 1>&6 | |
20924 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 20925 | #define HAVE_DLERROR 1 |
a0b9e27f | 20926 | EOF |
f6bcfd97 | 20927 | |
a0b9e27f MB |
20928 | else |
20929 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
20930 | fi |
20931 | ||
20932 | fi | |
20933 | done | |
20934 | ||
3a922bb4 RL |
20935 | fi |
20936 | fi | |
f6bcfd97 | 20937 | |
3a922bb4 RL |
20938 | if test "$HAVE_DL_FUNCS" = 0; then |
20939 | if test "$HAVE_SHL_FUNCS" = 0; then | |
20940 | if test "$USE_UNIX" = 1; then | |
a0b9e27f | 20941 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
0b9ab0bd | 20942 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
20943 | wxUSE_DYNLIB_CLASS=no |
20944 | else | |
a0b9e27f | 20945 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
3a922bb4 RL |
20946 | fi |
20947 | fi | |
10f2d63a VZ |
20948 | fi |
20949 | fi | |
20950 | fi | |
20951 | ||
0b9ab0bd | 20952 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
a0b9e27f | 20953 | cat >> confdefs.h <<\EOF |
0b9ab0bd | 20954 | #define wxUSE_DYNAMIC_LOADER 1 |
a0b9e27f | 20955 | EOF |
0b9ab0bd RL |
20956 | |
20957 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
a0b9e27f | 20958 | cat >> confdefs.h <<\EOF |
10f2d63a | 20959 | #define wxUSE_DYNLIB_CLASS 1 |
a0b9e27f | 20960 | EOF |
10f2d63a VZ |
20961 | |
20962 | fi | |
20963 | ||
8284b0c5 | 20964 | |
1e6feb95 | 20965 | if test "$wxUSE_FONTMAP" = "yes" ; then |
a0b9e27f | 20966 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20967 | #define wxUSE_FONTMAP 1 |
a0b9e27f | 20968 | EOF |
1e6feb95 VZ |
20969 | |
20970 | fi | |
20971 | ||
10f2d63a | 20972 | if test "$wxUSE_UNICODE" = "yes" ; then |
a0b9e27f | 20973 | cat >> confdefs.h <<\EOF |
10f2d63a | 20974 | #define wxUSE_UNICODE 1 |
a0b9e27f | 20975 | EOF |
10f2d63a | 20976 | |
8284b0c5 | 20977 | |
bbc3925a VS |
20978 | if test "$wxUSE_MSW" != 1; then |
20979 | wxUSE_UNICODE_MSLU=no | |
20980 | fi | |
a72a4bfa VS |
20981 | |
20982 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
a0b9e27f | 20983 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 |
9b4d9d56 | 20984 | echo "configure:20985: checking for main in -lunicows" >&5 |
a0b9e27f MB |
20985 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
20986 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20987 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a72a4bfa | 20988 | else |
a0b9e27f | 20989 | ac_save_LIBS="$LIBS" |
a72a4bfa | 20990 | LIBS="-lunicows $LIBS" |
a0b9e27f | 20991 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 20992 | #line 20993 "configure" |
a72a4bfa VS |
20993 | #include "confdefs.h" |
20994 | ||
a0b9e27f MB |
20995 | int main() { |
20996 | main() | |
20997 | ; return 0; } | |
20998 | EOF | |
9b4d9d56 | 20999 | if { (eval echo configure:21000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
21000 | rm -rf conftest* |
21001 | eval "ac_cv_lib_$ac_lib_var=yes" | |
21002 | else | |
21003 | echo "configure: failed program was:" >&5 | |
21004 | cat conftest.$ac_ext >&5 | |
21005 | rm -rf conftest* | |
21006 | eval "ac_cv_lib_$ac_lib_var=no" | |
21007 | fi | |
21008 | rm -f conftest* | |
21009 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 21010 | |
a0b9e27f MB |
21011 | fi |
21012 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
21013 | echo "$ac_t""yes" 1>&6 | |
21014 | ||
21015 | cat >> confdefs.h <<\EOF | |
a72a4bfa | 21016 | #define wxUSE_UNICODE_MSLU 1 |
a0b9e27f | 21017 | EOF |
a72a4bfa | 21018 | |
a0b9e27f | 21019 | |
a72a4bfa | 21020 | else |
a0b9e27f | 21021 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 21022 | |
a0b9e27f MB |
21023 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. |
21024 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
a72a4bfa | 21025 | wxUSE_UNICODE_MSLU=no |
a0b9e27f | 21026 | |
a72a4bfa VS |
21027 | fi |
21028 | ||
21029 | fi | |
10f2d63a VZ |
21030 | fi |
21031 | ||
10f2d63a | 21032 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
a0b9e27f | 21033 | cat >> confdefs.h <<\EOF |
10f2d63a | 21034 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
a0b9e27f | 21035 | EOF |
10f2d63a VZ |
21036 | |
21037 | fi | |
21038 | ||
8284b0c5 MB |
21039 | |
21040 | ||
10f2d63a VZ |
21041 | IODBC_C_SRC="" |
21042 | if test "$wxUSE_ODBC" = "yes" ; then | |
a0b9e27f | 21043 | cat >> confdefs.h <<\EOF |
10f2d63a | 21044 | #define wxUSE_ODBC 1 |
a0b9e27f | 21045 | EOF |
10f2d63a VZ |
21046 | |
21047 | WXODBCFLAG="-D_IODBC_" | |
21048 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
21049 | fi |
21050 | ||
8284b0c5 | 21051 | |
10f2d63a | 21052 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
a0b9e27f | 21053 | cat >> confdefs.h <<\EOF |
10f2d63a | 21054 | #define wxUSE_POSTSCRIPT 1 |
a0b9e27f | 21055 | EOF |
10f2d63a VZ |
21056 | |
21057 | fi | |
21058 | ||
a0b9e27f | 21059 | cat >> confdefs.h <<\EOF |
10f2d63a | 21060 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
a0b9e27f | 21061 | EOF |
10f2d63a | 21062 | |
8284b0c5 | 21063 | |
a0b9e27f | 21064 | cat >> confdefs.h <<\EOF |
10f2d63a | 21065 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
a0b9e27f | 21066 | EOF |
10f2d63a | 21067 | |
8284b0c5 MB |
21068 | |
21069 | ||
10f2d63a | 21070 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
a0b9e27f | 21071 | cat >> confdefs.h <<\EOF |
10f2d63a | 21072 | #define wxUSE_CONSTRAINTS 1 |
a0b9e27f | 21073 | EOF |
10f2d63a VZ |
21074 | |
21075 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
21076 | fi | |
21077 | ||
21078 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 21079 | |
8284b0c5 | 21080 | |
bb811f17 | 21081 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
a0b9e27f | 21082 | cat >> confdefs.h <<\EOF |
10f2d63a | 21083 | #define wxUSE_MDI_ARCHITECTURE 1 |
a0b9e27f | 21084 | EOF |
10f2d63a | 21085 | |
bb811f17 JS |
21086 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
21087 | fi | |
10f2d63a VZ |
21088 | fi |
21089 | ||
21090 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 21091 | cat >> confdefs.h <<\EOF |
10f2d63a | 21092 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
a0b9e27f | 21093 | EOF |
10f2d63a VZ |
21094 | |
21095 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
21096 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
21097 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
21098 | fi | |
21099 | fi | |
21100 | ||
21101 | if test "$wxUSE_HELP" = "yes"; then | |
a0b9e27f | 21102 | cat >> confdefs.h <<\EOF |
10f2d63a | 21103 | #define wxUSE_HELP 1 |
a0b9e27f | 21104 | EOF |
10f2d63a VZ |
21105 | |
21106 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 21107 | |
77e13408 | 21108 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 21109 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
a0b9e27f | 21110 | cat >> confdefs.h <<\EOF |
29fd3c0c | 21111 | #define wxUSE_MS_HTML_HELP 1 |
a0b9e27f | 21112 | EOF |
29fd3c0c | 21113 | |
3e44f09d | 21114 | fi |
3379ed37 | 21115 | fi |
031d8228 VS |
21116 | |
21117 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
21118 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 21119 | cat >> confdefs.h <<\EOF |
031d8228 | 21120 | #define wxUSE_WXHTML_HELP 1 |
a0b9e27f | 21121 | EOF |
031d8228 VS |
21122 | |
21123 | else | |
a0b9e27f | 21124 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 |
031d8228 VS |
21125 | wxUSE_WXHTML_HELP=no |
21126 | fi | |
21127 | fi | |
10f2d63a VZ |
21128 | fi |
21129 | ||
21130 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
21131 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21132 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 21133 | else |
a0b9e27f | 21134 | cat >> confdefs.h <<\EOF |
10f2d63a | 21135 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
a0b9e27f | 21136 | EOF |
10f2d63a VZ |
21137 | |
21138 | fi | |
21139 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
21140 | fi | |
21141 | ||
21142 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
a0b9e27f | 21143 | cat >> confdefs.h <<\EOF |
10f2d63a | 21144 | #define wxUSE_PROLOGIO 1 |
a0b9e27f | 21145 | EOF |
10f2d63a | 21146 | |
2b5f62a0 | 21147 | ALL_OBJECTS="$ALL_OBJECTS parser.o" |
10f2d63a VZ |
21148 | fi |
21149 | ||
21150 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea | 21151 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 21152 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 |
2b5f62a0 VZ |
21153 | else |
21154 | cat >> confdefs.h <<\EOF | |
10f2d63a | 21155 | #define wxUSE_RESOURCES 1 |
a0b9e27f | 21156 | EOF |
10f2d63a | 21157 | |
2b5f62a0 VZ |
21158 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
21159 | fi | |
21160 | if test "$wxUSE_PROLOGIO" != "yes" ; then | |
21161 | ALL_OBJECTS="$ALL_OBJECTS parser.o" | |
e334d0ea | 21162 | fi |
10f2d63a VZ |
21163 | fi |
21164 | ||
21165 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
a0b9e27f | 21166 | cat >> confdefs.h <<\EOF |
10f2d63a | 21167 | #define wxUSE_X_RESOURCES 1 |
a0b9e27f | 21168 | EOF |
10f2d63a VZ |
21169 | |
21170 | fi | |
21171 | ||
8284b0c5 | 21172 | |
77e13408 RL |
21173 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
21174 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
3bce6687 | 21175 | -o "$wxUSE_OLE" = "yes" \ |
77e13408 | 21176 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then |
a0b9e27f | 21177 | for ac_hdr in ole2.h |
10f2d63a | 21178 | do |
a0b9e27f MB |
21179 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
21180 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9b4d9d56 | 21181 | echo "configure:21182: checking for $ac_hdr" >&5 |
a0b9e27f MB |
21182 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
21183 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21184 | else | |
21185 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 21186 | #line 21187 "configure" |
10f2d63a | 21187 | #include "confdefs.h" |
a0b9e27f MB |
21188 | #include <$ac_hdr> |
21189 | EOF | |
21190 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9b4d9d56 | 21191 | { (eval echo configure:21192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
21192 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
21193 | if test -z "$ac_err"; then | |
21194 | rm -rf conftest* | |
21195 | eval "ac_cv_header_$ac_safe=yes" | |
21196 | else | |
21197 | echo "$ac_err" >&5 | |
21198 | echo "configure: failed program was:" >&5 | |
10f2d63a | 21199 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
21200 | rm -rf conftest* |
21201 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 21202 | fi |
a0b9e27f | 21203 | rm -f conftest* |
10f2d63a | 21204 | fi |
a0b9e27f MB |
21205 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
21206 | echo "$ac_t""yes" 1>&6 | |
21207 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
21208 | cat >> confdefs.h <<EOF | |
21209 | #define $ac_tr_hdr 1 | |
21210 | EOF | |
21211 | ||
21212 | else | |
21213 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
21214 | fi |
21215 | done | |
21216 | ||
8284b0c5 | 21217 | |
2b9bdf71 VZ |
21218 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
21219 | if test "$GCC" = yes ; then | |
a0b9e27f MB |
21220 | |
21221 | ac_ext=C | |
21222 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8284b0c5 | 21223 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
21224 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
21225 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
21226 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 MB |
21227 | |
21228 | ||
a0b9e27f | 21229 | echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6 |
9b4d9d56 | 21230 | echo "configure:21231: checking if g++ requires -fvtable-thunks" >&5 |
a0b9e27f | 21231 | cat > conftest.$ac_ext <<EOF |
9b4d9d56 | 21232 | #line 21233 "configure" |
8284b0c5 MB |
21233 | #include "confdefs.h" |
21234 | #include <windows.h> | |
21235 | #include <ole2.h> | |
a0b9e27f | 21236 | int main() { |
8284b0c5 | 21237 | |
a0b9e27f MB |
21238 | ; return 0; } |
21239 | EOF | |
9b4d9d56 | 21240 | if { (eval echo configure:21241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
21241 | rm -rf conftest* |
21242 | echo "$ac_t""no" 1>&6 | |
21243 | else | |
21244 | echo "configure: failed program was:" >&5 | |
21245 | cat conftest.$ac_ext >&5 | |
21246 | rm -rf conftest* | |
21247 | echo "$ac_t""yes" 1>&6 | |
8284b0c5 MB |
21248 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
21249 | fi | |
a0b9e27f | 21250 | rm -f conftest* |
8284b0c5 | 21251 | ac_ext=c |
a0b9e27f | 21252 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8284b0c5 | 21253 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
21254 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
21255 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
21256 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 21257 | |
2b9bdf71 | 21258 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 21259 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
a0b9e27f | 21260 | cat >> confdefs.h <<\EOF |
4f11a343 | 21261 | #define wxUSE_OLE 1 |
a0b9e27f | 21262 | EOF |
4f11a343 | 21263 | |
8284b0c5 | 21264 | |
2b9bdf71 VZ |
21265 | fi |
21266 | ||
a0b9e27f | 21267 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21268 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 21269 | EOF |
2b9bdf71 VZ |
21270 | |
21271 | else | |
a0b9e27f | 21272 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 |
2b9bdf71 VZ |
21273 | |
21274 | wxUSE_CLIPBOARD=no | |
21275 | wxUSE_DRAG_AND_DROP=no | |
21276 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
21277 | wxUSE_OLE=no |
21278 | fi | |
21279 | ||
21280 | if test "$wxUSE_METAFILE" = "yes"; then | |
21281 | cat >> confdefs.h <<\EOF | |
21282 | #define wxUSE_METAFILE 1 | |
21283 | EOF | |
21284 | ||
21285 | ||
21286 | cat >> confdefs.h <<\EOF | |
21287 | #define wxUSE_ENH_METAFILE 1 | |
21288 | EOF | |
21289 | ||
21290 | fi | |
21291 | fi | |
21292 | ||
2b9bdf71 VZ |
21293 | if test "$wxUSE_IPC" = "yes"; then |
21294 | if test "$wxUSE_SOCKETS" != "yes"; then | |
a0b9e27f | 21295 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
21296 | fi |
21297 | ||
a0b9e27f | 21298 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21299 | #define wxUSE_IPC 1 |
a0b9e27f | 21300 | EOF |
2b9bdf71 VZ |
21301 | |
21302 | fi | |
21303 | ||
21304 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 21305 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 21306 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
21307 | wxUSE_CLIPBOARD=no |
21308 | fi | |
21309 | ||
21310 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
a0b9e27f | 21311 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21312 | #define wxUSE_CLIPBOARD 1 |
a0b9e27f | 21313 | EOF |
2b9bdf71 | 21314 | |
8284b0c5 | 21315 | |
a0b9e27f | 21316 | cat >> confdefs.h <<\EOF |
673f4220 | 21317 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 21318 | EOF |
673f4220 | 21319 | |
6c657b52 | 21320 | fi |
2b9bdf71 VZ |
21321 | fi |
21322 | ||
21323 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
21324 | if test "$wxUSE_GTK" = 1; then | |
21325 | if test "$WXGTK12" != 1; then | |
a0b9e27f | 21326 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
21327 | wxUSE_DRAG_AND_DROP=no |
21328 | fi | |
21329 | fi | |
21330 | ||
2b9bdf71 | 21331 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 21332 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
21333 | wxUSE_DRAG_AND_DROP=no |
21334 | fi | |
21335 | ||
f79bd02d | 21336 | if test "$wxUSE_X11" = 1; then |
a0b9e27f | 21337 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 |
f79bd02d JS |
21338 | wxUSE_DRAG_AND_DROP=no |
21339 | fi | |
21340 | ||
6c657b52 | 21341 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 21342 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
21343 | wxUSE_DRAG_AND_DROP=no |
21344 | fi | |
21345 | ||
10f2d63a | 21346 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
a0b9e27f | 21347 | cat >> confdefs.h <<\EOF |
10f2d63a | 21348 | #define wxUSE_DRAG_AND_DROP 1 |
a0b9e27f | 21349 | EOF |
10f2d63a VZ |
21350 | |
21351 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
21352 | fi | |
21353 | ||
21354 | fi | |
21355 | ||
21356 | if test "$wxUSE_SPLINES" = "yes" ; then | |
a0b9e27f | 21357 | cat >> confdefs.h <<\EOF |
10f2d63a | 21358 | #define wxUSE_SPLINES 1 |
a0b9e27f | 21359 | EOF |
10f2d63a VZ |
21360 | |
21361 | fi | |
21362 | ||
8284b0c5 | 21363 | |
1e6feb95 VZ |
21364 | USES_CONTROLS=0 |
21365 | if test "$wxUSE_CONTROLS" = "yes"; then | |
21366 | USES_CONTROLS=1 | |
21367 | fi | |
21368 | ||
10f2d63a | 21369 | if test "$wxUSE_ACCEL" = "yes"; then |
a0b9e27f | 21370 | cat >> confdefs.h <<\EOF |
10f2d63a | 21371 | #define wxUSE_ACCEL 1 |
a0b9e27f | 21372 | EOF |
10f2d63a | 21373 | |
1e6feb95 VZ |
21374 | USES_CONTROLS=1 |
21375 | fi | |
21376 | ||
21377 | if test "$wxUSE_BUTTON" = "yes"; then | |
a0b9e27f | 21378 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21379 | #define wxUSE_BUTTON 1 |
a0b9e27f | 21380 | EOF |
1e6feb95 VZ |
21381 | |
21382 | USES_CONTROLS=1 | |
21383 | fi | |
21384 | ||
21385 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
a0b9e27f | 21386 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21387 | #define wxUSE_BMPBUTTON 1 |
a0b9e27f | 21388 | EOF |
1e6feb95 VZ |
21389 | |
21390 | USES_CONTROLS=1 | |
21391 | fi | |
21392 | ||
21393 | if test "$wxUSE_CALCTRL" = "yes"; then | |
a0b9e27f | 21394 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21395 | #define wxUSE_CALENDARCTRL 1 |
a0b9e27f | 21396 | EOF |
1e6feb95 VZ |
21397 | |
21398 | USES_CONTROLS=1 | |
21399 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
21400 | fi |
21401 | ||
21402 | if test "$wxUSE_CARET" = "yes"; then | |
a0b9e27f | 21403 | cat >> confdefs.h <<\EOF |
10f2d63a | 21404 | #define wxUSE_CARET 1 |
a0b9e27f | 21405 | EOF |
10f2d63a | 21406 | |
1e6feb95 | 21407 | USES_CONTROLS=1 |
10f2d63a VZ |
21408 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
21409 | fi | |
21410 | ||
21411 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
a0b9e27f | 21412 | cat >> confdefs.h <<\EOF |
10f2d63a | 21413 | #define wxUSE_COMBOBOX 1 |
a0b9e27f | 21414 | EOF |
10f2d63a | 21415 | |
1e6feb95 | 21416 | USES_CONTROLS=1 |
10f2d63a VZ |
21417 | fi |
21418 | ||
21419 | if test "$wxUSE_CHOICE" = "yes"; then | |
a0b9e27f | 21420 | cat >> confdefs.h <<\EOF |
10f2d63a | 21421 | #define wxUSE_CHOICE 1 |
a0b9e27f | 21422 | EOF |
10f2d63a | 21423 | |
1e6feb95 | 21424 | USES_CONTROLS=1 |
10f2d63a VZ |
21425 | fi |
21426 | ||
21427 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
a0b9e27f | 21428 | cat >> confdefs.h <<\EOF |
10f2d63a | 21429 | #define wxUSE_CHECKBOX 1 |
a0b9e27f | 21430 | EOF |
10f2d63a | 21431 | |
1e6feb95 | 21432 | USES_CONTROLS=1 |
10f2d63a VZ |
21433 | fi |
21434 | ||
21435 | if test "$wxUSE_CHECKLST" = "yes"; then | |
a0b9e27f | 21436 | cat >> confdefs.h <<\EOF |
10f2d63a | 21437 | #define wxUSE_CHECKLISTBOX 1 |
a0b9e27f | 21438 | EOF |
10f2d63a | 21439 | |
1e6feb95 | 21440 | USES_CONTROLS=1 |
10f2d63a VZ |
21441 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
21442 | fi | |
21443 | ||
da494b40 MB |
21444 | if test "$wxUSE_DISPLAY" = "yes"; then |
21445 | cat >> confdefs.h <<\EOF | |
21446 | #define wxUSE_DISPLAY 1 | |
21447 | EOF | |
21448 | ||
21449 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
21450 | fi | |
21451 | ||
10f2d63a | 21452 | if test "$wxUSE_GAUGE" = "yes"; then |
a0b9e27f | 21453 | cat >> confdefs.h <<\EOF |
10f2d63a | 21454 | #define wxUSE_GAUGE 1 |
a0b9e27f | 21455 | EOF |
10f2d63a | 21456 | |
1e6feb95 | 21457 | USES_CONTROLS=1 |
10f2d63a VZ |
21458 | fi |
21459 | ||
d6a55c4b VZ |
21460 | if test "$wxUSE_NEW_GRID" = "yes"; then |
21461 | wxUSE_GRID="yes" | |
a0b9e27f | 21462 | cat >> confdefs.h <<\EOF |
d6a55c4b | 21463 | #define wxUSE_NEW_GRID 1 |
a0b9e27f | 21464 | EOF |
10f2d63a | 21465 | |
1e6feb95 | 21466 | USES_CONTROLS=1 |
d6a55c4b | 21467 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
21468 | fi |
21469 | ||
d6a55c4b | 21470 | if test "$wxUSE_GRID" = "yes"; then |
a0b9e27f | 21471 | cat >> confdefs.h <<\EOF |
d6a55c4b | 21472 | #define wxUSE_GRID 1 |
a0b9e27f | 21473 | EOF |
10f2d63a | 21474 | |
1e6feb95 | 21475 | USES_CONTROLS=1 |
d6a55c4b | 21476 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
21477 | fi |
21478 | ||
21479 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21480 | cat >> confdefs.h <<\EOF |
10f2d63a | 21481 | #define wxUSE_IMAGLIST 1 |
a0b9e27f | 21482 | EOF |
10f2d63a VZ |
21483 | |
21484 | fi | |
21485 | ||
21486 | if test "$wxUSE_LISTBOX" = "yes"; then | |
a0b9e27f | 21487 | cat >> confdefs.h <<\EOF |
10f2d63a | 21488 | #define wxUSE_LISTBOX 1 |
a0b9e27f | 21489 | EOF |
10f2d63a | 21490 | |
1e6feb95 | 21491 | USES_CONTROLS=1 |
10f2d63a VZ |
21492 | fi |
21493 | ||
21494 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
21495 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21496 | cat >> confdefs.h <<\EOF |
10f2d63a | 21497 | #define wxUSE_LISTCTRL 1 |
a0b9e27f | 21498 | EOF |
10f2d63a | 21499 | |
1e6feb95 | 21500 | USES_CONTROLS=1 |
10f2d63a VZ |
21501 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
21502 | else | |
a0b9e27f | 21503 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
21504 | fi |
21505 | fi | |
21506 | ||
21507 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
a0b9e27f | 21508 | cat >> confdefs.h <<\EOF |
10f2d63a | 21509 | #define wxUSE_NOTEBOOK 1 |
a0b9e27f | 21510 | EOF |
10f2d63a | 21511 | |
1e6feb95 | 21512 | USES_CONTROLS=1 |
10f2d63a VZ |
21513 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
21514 | fi | |
21515 | ||
24176f2c | 21516 | if test "$wxUSE_PROPSHEET" = "yes"; then |
a0b9e27f | 21517 | cat >> confdefs.h <<\EOF |
24176f2c | 21518 | #define wxUSE_PROPSHEET 1 |
a0b9e27f | 21519 | EOF |
24176f2c GD |
21520 | |
21521 | USES_CONTROLS=1 | |
21522 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
21523 | fi | |
21524 | ||
10f2d63a | 21525 | if test "$wxUSE_RADIOBOX" = "yes"; then |
a0b9e27f | 21526 | cat >> confdefs.h <<\EOF |
10f2d63a | 21527 | #define wxUSE_RADIOBOX 1 |
a0b9e27f | 21528 | EOF |
10f2d63a | 21529 | |
1e6feb95 | 21530 | USES_CONTROLS=1 |
10f2d63a VZ |
21531 | fi |
21532 | ||
21533 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
a0b9e27f | 21534 | cat >> confdefs.h <<\EOF |
10f2d63a | 21535 | #define wxUSE_RADIOBTN 1 |
a0b9e27f | 21536 | EOF |
10f2d63a | 21537 | |
1e6feb95 | 21538 | USES_CONTROLS=1 |
10f2d63a VZ |
21539 | fi |
21540 | ||
21541 | if test "$wxUSE_SASH" = "yes"; then | |
a0b9e27f | 21542 | cat >> confdefs.h <<\EOF |
10f2d63a | 21543 | #define wxUSE_SASH 1 |
a0b9e27f | 21544 | EOF |
10f2d63a VZ |
21545 | |
21546 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
21547 | fi | |
21548 | ||
21549 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
a0b9e27f | 21550 | cat >> confdefs.h <<\EOF |
10f2d63a | 21551 | #define wxUSE_SCROLLBAR 1 |
a0b9e27f | 21552 | EOF |
10f2d63a | 21553 | |
1e6feb95 | 21554 | USES_CONTROLS=1 |
741a9306 | 21555 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
21556 | fi |
21557 | ||
21558 | if test "$wxUSE_SLIDER" = "yes"; then | |
a0b9e27f | 21559 | cat >> confdefs.h <<\EOF |
10f2d63a | 21560 | #define wxUSE_SLIDER 1 |
a0b9e27f | 21561 | EOF |
10f2d63a | 21562 | |
1e6feb95 | 21563 | USES_CONTROLS=1 |
10f2d63a VZ |
21564 | fi |
21565 | ||
21566 | if test "$wxUSE_SPINBTN" = "yes"; then | |
a0b9e27f | 21567 | cat >> confdefs.h <<\EOF |
10f2d63a | 21568 | #define wxUSE_SPINBTN 1 |
a0b9e27f | 21569 | EOF |
10f2d63a | 21570 | |
1e6feb95 | 21571 | USES_CONTROLS=1 |
10f2d63a VZ |
21572 | fi |
21573 | ||
56cfaa52 | 21574 | if test "$wxUSE_SPINCTRL" = "yes"; then |
a0b9e27f | 21575 | cat >> confdefs.h <<\EOF |
56cfaa52 | 21576 | #define wxUSE_SPINCTRL 1 |
a0b9e27f | 21577 | EOF |
56cfaa52 | 21578 | |
1e6feb95 | 21579 | USES_CONTROLS=1 |
56cfaa52 RR |
21580 | fi |
21581 | ||
10f2d63a | 21582 | if test "$wxUSE_SPLITTER" = "yes"; then |
a0b9e27f | 21583 | cat >> confdefs.h <<\EOF |
10f2d63a | 21584 | #define wxUSE_SPLITTER 1 |
a0b9e27f | 21585 | EOF |
10f2d63a VZ |
21586 | |
21587 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
21588 | fi | |
21589 | ||
21590 | if test "$wxUSE_STATBMP" = "yes"; then | |
a0b9e27f | 21591 | cat >> confdefs.h <<\EOF |
10f2d63a | 21592 | #define wxUSE_STATBMP 1 |
a0b9e27f | 21593 | EOF |
10f2d63a | 21594 | |
1e6feb95 | 21595 | USES_CONTROLS=1 |
10f2d63a VZ |
21596 | fi |
21597 | ||
21598 | if test "$wxUSE_STATBOX" = "yes"; then | |
a0b9e27f | 21599 | cat >> confdefs.h <<\EOF |
10f2d63a | 21600 | #define wxUSE_STATBOX 1 |
a0b9e27f | 21601 | EOF |
10f2d63a | 21602 | |
1e6feb95 VZ |
21603 | USES_CONTROLS=1 |
21604 | fi | |
21605 | ||
21606 | if test "$wxUSE_STATTEXT" = "yes"; then | |
a0b9e27f | 21607 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21608 | #define wxUSE_STATTEXT 1 |
a0b9e27f | 21609 | EOF |
1e6feb95 VZ |
21610 | |
21611 | USES_CONTROLS=1 | |
10f2d63a VZ |
21612 | fi |
21613 | ||
21614 | if test "$wxUSE_STATLINE" = "yes"; then | |
89e6bf6d | 21615 | cat >> confdefs.h <<\EOF |
10f2d63a | 21616 | #define wxUSE_STATLINE 1 |
a0b9e27f | 21617 | EOF |
10f2d63a | 21618 | |
89e6bf6d | 21619 | USES_CONTROLS=1 |
10f2d63a VZ |
21620 | fi |
21621 | ||
21622 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
a0b9e27f | 21623 | cat >> confdefs.h <<\EOF |
10f2d63a | 21624 | #define wxUSE_STATUSBAR 1 |
a0b9e27f | 21625 | EOF |
10f2d63a | 21626 | |
1e6feb95 | 21627 | USES_CONTROLS=1 |
698dcdb6 | 21628 | |
2286341c | 21629 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
21630 | fi |
21631 | ||
21632 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
a0b9e27f | 21633 | cat >> confdefs.h <<\EOF |
10f2d63a | 21634 | #define wxUSE_TAB_DIALOG 1 |
a0b9e27f | 21635 | EOF |
10f2d63a VZ |
21636 | |
21637 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
21638 | fi | |
21639 | ||
1e6feb95 | 21640 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
a0b9e27f | 21641 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21642 | #define wxUSE_TEXTCTRL 1 |
a0b9e27f | 21643 | EOF |
1e6feb95 VZ |
21644 | |
21645 | USES_CONTROLS=1 | |
21646 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
21647 | fi | |
21648 | ||
1db8dc4a | 21649 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
ac0c4cc3 | 21650 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
a0b9e27f | 21651 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
21652 | wxUSE_TOGGLEBTN=no |
21653 | fi | |
21654 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
a0b9e27f | 21655 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
21656 | wxUSE_TOGGLEBTN=no |
21657 | fi | |
21658 | ||
21659 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
a0b9e27f | 21660 | cat >> confdefs.h <<\EOF |
1db8dc4a | 21661 | #define wxUSE_TOGGLEBTN 1 |
a0b9e27f | 21662 | EOF |
1db8dc4a | 21663 | |
1e6feb95 | 21664 | USES_CONTROLS=1 |
a45d7ab7 | 21665 | fi |
1db8dc4a VZ |
21666 | fi |
21667 | ||
360d6699 | 21668 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
a0b9e27f | 21669 | cat >> confdefs.h <<\EOF |
360d6699 | 21670 | #define wxUSE_TOOLBAR_SIMPLE 1 |
a0b9e27f | 21671 | EOF |
360d6699 VZ |
21672 | |
21673 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 21674 | USES_CONTROLS=1 |
360d6699 VZ |
21675 | fi |
21676 | ||
10f2d63a | 21677 | if test "$wxUSE_TOOLBAR" = "yes"; then |
a0b9e27f | 21678 | cat >> confdefs.h <<\EOF |
10f2d63a | 21679 | #define wxUSE_TOOLBAR 1 |
a0b9e27f | 21680 | EOF |
10f2d63a | 21681 | |
1e6feb95 | 21682 | USES_CONTROLS=1 |
698dcdb6 | 21683 | |
360d6699 VZ |
21684 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
21685 | wxUSE_TOOLBAR_NATIVE="yes" | |
21686 | fi | |
21687 | ||
1e6feb95 | 21688 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
a0b9e27f | 21689 | cat >> confdefs.h <<\EOF |
360d6699 | 21690 | #define wxUSE_TOOLBAR_NATIVE 1 |
a0b9e27f | 21691 | EOF |
360d6699 | 21692 | |
1e6feb95 VZ |
21693 | USES_CONTROLS=1 |
21694 | fi | |
21695 | ||
21696 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
21697 | fi |
21698 | ||
10f2d63a VZ |
21699 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
21700 | if test "$wxUSE_MOTIF" = 1; then | |
a0b9e27f | 21701 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a | 21702 | else |
89e6bf6d VZ |
21703 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
21704 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 | |
10f2d63a | 21705 | else |
89e6bf6d | 21706 | cat >> confdefs.h <<\EOF |
10f2d63a | 21707 | #define wxUSE_TOOLTIPS 1 |
a0b9e27f | 21708 | EOF |
10f2d63a VZ |
21709 | |
21710 | fi | |
21711 | fi | |
21712 | fi | |
21713 | ||
21714 | if test "$wxUSE_TREECTRL" = "yes"; then | |
21715 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21716 | cat >> confdefs.h <<\EOF |
10f2d63a | 21717 | #define wxUSE_TREECTRL 1 |
a0b9e27f | 21718 | EOF |
10f2d63a | 21719 | |
1e6feb95 | 21720 | USES_CONTROLS=1 |
10f2d63a VZ |
21721 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
21722 | else | |
a0b9e27f | 21723 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
21724 | fi |
21725 | fi | |
21726 | ||
9f41d601 | 21727 | if test "$wxUSE_POPUPWIN" = "yes"; then |
ac0c4cc3 | 21728 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
a0b9e27f | 21729 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 21730 | else |
485cf710 | 21731 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 21732 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 |
485cf710 | 21733 | else |
3c011993 | 21734 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 21735 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 21736 | else |
a0b9e27f | 21737 | cat >> confdefs.h <<\EOF |
9f41d601 | 21738 | #define wxUSE_POPUPWIN 1 |
a0b9e27f | 21739 | EOF |
9f41d601 | 21740 | |
8284b0c5 | 21741 | |
3c011993 VZ |
21742 | USES_CONTROLS=1 |
21743 | fi | |
485cf710 | 21744 | fi |
6abe4b65 | 21745 | fi |
9f41d601 RR |
21746 | fi |
21747 | ||
dd964dcc | 21748 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 21749 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 21750 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 21751 | else |
a0b9e27f | 21752 | cat >> confdefs.h <<\EOF |
dd964dcc | 21753 | #define wxUSE_TIPWINDOW 1 |
a0b9e27f | 21754 | EOF |
dd964dcc | 21755 | |
3c011993 | 21756 | fi |
dd964dcc VZ |
21757 | fi |
21758 | ||
1e6feb95 | 21759 | if test "$USES_CONTROLS" = 1; then |
a0b9e27f | 21760 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21761 | #define wxUSE_CONTROLS 1 |
a0b9e27f | 21762 | EOF |
10f2d63a | 21763 | |
10f2d63a VZ |
21764 | fi |
21765 | ||
8284b0c5 | 21766 | |
24176f2c | 21767 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
a0b9e27f | 21768 | cat >> confdefs.h <<\EOF |
24176f2c | 21769 | #define wxUSE_TREELAYOUT 1 |
a0b9e27f | 21770 | EOF |
24176f2c GD |
21771 | |
21772 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
21773 | fi | |
1e6feb95 | 21774 | |
24fd6d87 | 21775 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
a0b9e27f | 21776 | cat >> confdefs.h <<\EOF |
24fd6d87 | 21777 | #define wxUSE_DRAGIMAGE 1 |
a0b9e27f | 21778 | EOF |
24fd6d87 VZ |
21779 | |
21780 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
21781 | fi | |
21782 | ||
1e6feb95 | 21783 | if test "$wxUSE_MENUS" = "yes"; then |
a0b9e27f | 21784 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21785 | #define wxUSE_MENUS 1 |
a0b9e27f | 21786 | EOF |
10f2d63a | 21787 | |
1e6feb95 | 21788 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
21789 | fi |
21790 | ||
1e6feb95 | 21791 | if test "$wxUSE_METAFILE" = "yes"; then |
a0b9e27f | 21792 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21793 | #define wxUSE_METAFILE 1 |
a0b9e27f | 21794 | EOF |
10f2d63a | 21795 | |
10f2d63a VZ |
21796 | fi |
21797 | ||
1e6feb95 | 21798 | if test "$wxUSE_MIMETYPE" = "yes"; then |
a0b9e27f | 21799 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21800 | #define wxUSE_MIMETYPE 1 |
a0b9e27f | 21801 | EOF |
10f2d63a | 21802 | |
10f2d63a VZ |
21803 | fi |
21804 | ||
3e44f09d | 21805 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
a0b9e27f | 21806 | cat >> confdefs.h <<\EOF |
3e44f09d | 21807 | #define wxUSE_SYSTEM_OPTIONS 1 |
a0b9e27f | 21808 | EOF |
3e44f09d | 21809 | |
321d2b14 VZ |
21810 | if test "$TOOLKIT" = "MSW"; then |
21811 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
21812 | fi | |
21813 | ||
3e44f09d VZ |
21814 | fi |
21815 | ||
4cdb0ab0 | 21816 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca | 21817 | if test "$wxUSE_SOCKETS" != "yes"; then |
a0b9e27f | 21818 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 |
3954f9ca VS |
21819 | wxUSE_PROTOCOL=no |
21820 | fi | |
21821 | ||
21822 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
a0b9e27f | 21823 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21824 | #define wxUSE_PROTOCOL 1 |
a0b9e27f | 21825 | EOF |
4cdb0ab0 | 21826 | |
8284b0c5 | 21827 | |
3954f9ca | 21828 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
a0b9e27f | 21829 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21830 | #define wxUSE_PROTOCOL_HTTP 1 |
a0b9e27f | 21831 | EOF |
4cdb0ab0 | 21832 | |
3954f9ca VS |
21833 | fi |
21834 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
a0b9e27f | 21835 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21836 | #define wxUSE_PROTOCOL_FTP 1 |
a0b9e27f | 21837 | EOF |
4cdb0ab0 | 21838 | |
3954f9ca VS |
21839 | fi |
21840 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
a0b9e27f | 21841 | cat >> confdefs.h <<\EOF |
3954f9ca | 21842 | #define wxUSE_PROTOCOL_FILE 1 |
a0b9e27f | 21843 | EOF |
3954f9ca VS |
21844 | |
21845 | fi | |
4cdb0ab0 | 21846 | fi |
3954f9ca VS |
21847 | fi |
21848 | ||
21849 | if test "$wxUSE_URL" = "yes"; then | |
21850 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
a0b9e27f | 21851 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 |
3954f9ca VS |
21852 | wxUSE_URL=no |
21853 | fi | |
21854 | if test "$wxUSE_URL" = "yes"; then | |
a0b9e27f | 21855 | cat >> confdefs.h <<\EOF |
3954f9ca | 21856 | #define wxUSE_URL 1 |
a0b9e27f | 21857 | EOF |
4cdb0ab0 VS |
21858 | |
21859 | fi | |
21860 | fi | |
21861 | ||
10f2d63a | 21862 | if test "$wxUSE_MINIFRAME" = "yes"; then |
a0b9e27f | 21863 | cat >> confdefs.h <<\EOF |
10f2d63a | 21864 | #define wxUSE_MINIFRAME 1 |
a0b9e27f | 21865 | EOF |
10f2d63a VZ |
21866 | |
21867 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
21868 | fi | |
21869 | ||
21870 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 21871 | cat >> confdefs.h <<\EOF |
10f2d63a | 21872 | #define wxUSE_HTML 1 |
a0b9e27f | 21873 | EOF |
10f2d63a VZ |
21874 | |
21875 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
21876 | fi |
21877 | ||
21878 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
a0b9e27f | 21879 | cat >> confdefs.h <<\EOF |
1e487827 | 21880 | #define wxUSE_VALIDATORS 1 |
a0b9e27f | 21881 | EOF |
703e0a69 | 21882 | |
698dcdb6 VZ |
21883 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
21884 | fi | |
21885 | ||
edae8572 | 21886 | if test "$wxUSE_PALETTE" = "yes" ; then |
a0b9e27f | 21887 | cat >> confdefs.h <<\EOF |
edae8572 | 21888 | #define wxUSE_PALETTE 1 |
a0b9e27f | 21889 | EOF |
edae8572 VZ |
21890 | |
21891 | fi | |
21892 | ||
698dcdb6 | 21893 | if test "$wxUSE_IMAGE" = "yes" ; then |
a0b9e27f | 21894 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21895 | #define wxUSE_IMAGE 1 |
a0b9e27f | 21896 | EOF |
698dcdb6 VZ |
21897 | |
21898 | fi | |
21899 | ||
21900 | if test "$wxUSE_GIF" = "yes" ; then | |
a0b9e27f | 21901 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21902 | #define wxUSE_GIF 1 |
a0b9e27f | 21903 | EOF |
698dcdb6 VZ |
21904 | |
21905 | fi | |
21906 | ||
21907 | if test "$wxUSE_PCX" = "yes" ; then | |
a0b9e27f | 21908 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21909 | #define wxUSE_PCX 1 |
a0b9e27f | 21910 | EOF |
698dcdb6 VZ |
21911 | |
21912 | fi | |
21913 | ||
4b6b4dfc | 21914 | if test "$wxUSE_IFF" = "yes" ; then |
a0b9e27f | 21915 | cat >> confdefs.h <<\EOF |
4b6b4dfc | 21916 | #define wxUSE_IFF 1 |
a0b9e27f | 21917 | EOF |
4b6b4dfc RR |
21918 | |
21919 | fi | |
21920 | ||
698dcdb6 | 21921 | if test "$wxUSE_PNM" = "yes" ; then |
a0b9e27f | 21922 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21923 | #define wxUSE_PNM 1 |
a0b9e27f | 21924 | EOF |
698dcdb6 VZ |
21925 | |
21926 | fi | |
21927 | ||
21928 | if test "$wxUSE_XPM" = "yes" ; then | |
a0b9e27f | 21929 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21930 | #define wxUSE_XPM 1 |
a0b9e27f | 21931 | EOF |
698dcdb6 VZ |
21932 | |
21933 | fi | |
21934 | ||
658974ae | 21935 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
a0b9e27f | 21936 | cat >> confdefs.h <<\EOF |
658974ae | 21937 | #define wxUSE_ICO_CUR 1 |
a0b9e27f | 21938 | EOF |
658974ae VS |
21939 | |
21940 | fi | |
21941 | ||
a72a4bfa VS |
21942 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
21943 | LIBS=" -lunicows $LIBS" | |
21944 | fi | |
21945 | ||
8284b0c5 | 21946 | |
1e6feb95 | 21947 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
a0b9e27f | 21948 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21949 | #define wxUSE_CHOICEDLG 1 |
a0b9e27f | 21950 | EOF |
1e6feb95 VZ |
21951 | |
21952 | fi | |
21953 | ||
21954 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
a0b9e27f | 21955 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21956 | #define wxUSE_COLOURDLG 1 |
a0b9e27f | 21957 | EOF |
1e6feb95 VZ |
21958 | |
21959 | fi | |
21960 | ||
21961 | if test "$wxUSE_FILEDLG" = "yes"; then | |
a0b9e27f | 21962 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21963 | #define wxUSE_FILEDLG 1 |
a0b9e27f | 21964 | EOF |
1e6feb95 VZ |
21965 | |
21966 | fi | |
21967 | ||
8db37e06 | 21968 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
a0b9e27f | 21969 | cat >> confdefs.h <<\EOF |
8db37e06 | 21970 | #define wxUSE_FINDREPLDLG 1 |
a0b9e27f | 21971 | EOF |
8db37e06 VZ |
21972 | |
21973 | fi | |
21974 | ||
1e6feb95 | 21975 | if test "$wxUSE_FONTDLG" = "yes"; then |
a0b9e27f | 21976 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21977 | #define wxUSE_FONTDLG 1 |
a0b9e27f | 21978 | EOF |
1e6feb95 VZ |
21979 | |
21980 | fi | |
21981 | ||
21982 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 21983 | if test "$wxUSE_TREECTRL" != "yes"; then |
a0b9e27f | 21984 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 |
1e6feb95 | 21985 | else |
a0b9e27f | 21986 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21987 | #define wxUSE_DIRDLG 1 |
a0b9e27f | 21988 | EOF |
1e6feb95 | 21989 | |
1e6feb95 VZ |
21990 | fi |
21991 | fi | |
21992 | ||
21993 | if test "$wxUSE_MSGDLG" = "yes"; then | |
a0b9e27f | 21994 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21995 | #define wxUSE_MSGDLG 1 |
a0b9e27f | 21996 | EOF |
1e6feb95 VZ |
21997 | |
21998 | fi | |
21999 | ||
22000 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
a0b9e27f | 22001 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22002 | #define wxUSE_NUMBERDLG 1 |
a0b9e27f | 22003 | EOF |
1e6feb95 VZ |
22004 | |
22005 | fi | |
22006 | ||
22007 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
22008 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 22009 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 |
1e6feb95 | 22010 | else |
a0b9e27f | 22011 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22012 | #define wxUSE_PROGRESSDLG 1 |
a0b9e27f | 22013 | EOF |
1e6feb95 VZ |
22014 | |
22015 | fi | |
22016 | fi | |
22017 | ||
cbca9943 | 22018 | if test "$wxUSE_SPLASH" = "yes"; then |
a0b9e27f | 22019 | cat >> confdefs.h <<\EOF |
cbca9943 | 22020 | #define wxUSE_SPLASH 1 |
a0b9e27f | 22021 | EOF |
cbca9943 VZ |
22022 | |
22023 | fi | |
22024 | ||
1e6feb95 VZ |
22025 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
22026 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 22027 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 |
1e6feb95 | 22028 | else |
a0b9e27f | 22029 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22030 | #define wxUSE_STARTUP_TIPS 1 |
a0b9e27f | 22031 | EOF |
1e6feb95 | 22032 | |
7b4a847f RR |
22033 | fi |
22034 | fi | |
579d8138 | 22035 | |
8284b0c5 | 22036 | if test "$wxUSE_TEXTDLG" = "yes"; then |
a0b9e27f | 22037 | cat >> confdefs.h <<\EOF |
8284b0c5 | 22038 | #define wxUSE_TEXTDLG 1 |
a0b9e27f | 22039 | EOF |
8284b0c5 MB |
22040 | |
22041 | fi | |
22042 | ||
22043 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
a0b9e27f | 22044 | cat >> confdefs.h <<\EOF |
8284b0c5 | 22045 | #define wxUSE_WIZARDDLG 1 |
a0b9e27f | 22046 | EOF |
8284b0c5 MB |
22047 | |
22048 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
22049 | fi | |
22050 | ||
22051 | ||
22052 | if test "$cross_compiling" = "yes"; then | |
22053 | OSINFO="\"$host\"" | |
22054 | else | |
22055 | OSINFO=`uname -s -r -m` | |
22056 | OSINFO="\"$OSINFO\"" | |
22057 | fi | |
22058 | ||
a0b9e27f | 22059 | cat >> confdefs.h <<EOF |
8284b0c5 | 22060 | #define WXWIN_OS_DESCRIPTION $OSINFO |
a0b9e27f | 22061 | EOF |
8284b0c5 MB |
22062 | |
22063 | ||
22064 | ||
22065 | if test "x$prefix" != "xNONE"; then | |
22066 | wxPREFIX=$prefix | |
22067 | else | |
22068 | wxPREFIX=$ac_default_prefix | |
22069 | fi | |
22070 | ||
a0b9e27f | 22071 | cat >> confdefs.h <<EOF |
8284b0c5 | 22072 | #define wxINSTALL_PREFIX "$wxPREFIX" |
a0b9e27f | 22073 | EOF |
8284b0c5 MB |
22074 | |
22075 | ||
52c71b80 VZ |
22076 | top_builddir=`pwd` |
22077 | ||
8284b0c5 MB |
22078 | |
22079 | ||
22080 | ||
22081 | if test "$wxUSE_MAC" = 1 ; then | |
22082 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
22083 | fi | |
ac0c4cc3 DE |
22084 | if test "$wxUSE_COCOA" = 1 ; then |
22085 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
22086 | fi | |
8284b0c5 MB |
22087 | |
22088 | ||
2b5f62a0 VZ |
22089 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
22090 | ||
22091 | have_cos=0 | |
22092 | have_floor=0 | |
22093 | for ac_func in cos | |
22094 | do | |
22095 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
9b4d9d56 | 22096 | echo "configure:22097: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22097 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22098 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22099 | else | |
22100 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 22101 | #line 22102 "configure" |
2b5f62a0 VZ |
22102 | #include "confdefs.h" |
22103 | /* System header to define __stub macros and hopefully few prototypes, | |
22104 | which can conflict with char $ac_func(); below. */ | |
22105 | #include <assert.h> | |
22106 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22107 | /* We use char because int might match the return type of a gcc2 | |
22108 | builtin and then its argument prototype would still apply. */ | |
22109 | char $ac_func(); | |
22110 | ||
22111 | int main() { | |
22112 | ||
22113 | /* The GNU C library defines this for functions which it implements | |
22114 | to always fail with ENOSYS. Some functions are actually named | |
22115 | something starting with __ and the normal name is an alias. */ | |
22116 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22117 | choke me | |
22118 | #else | |
22119 | $ac_func(); | |
22120 | #endif | |
22121 | ||
22122 | ; return 0; } | |
22123 | EOF | |
9b4d9d56 | 22124 | if { (eval echo configure:22125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22125 | rm -rf conftest* |
22126 | eval "ac_cv_func_$ac_func=yes" | |
22127 | else | |
22128 | echo "configure: failed program was:" >&5 | |
22129 | cat conftest.$ac_ext >&5 | |
22130 | rm -rf conftest* | |
22131 | eval "ac_cv_func_$ac_func=no" | |
22132 | fi | |
22133 | rm -f conftest* | |
22134 | fi | |
22135 | ||
22136 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22137 | echo "$ac_t""yes" 1>&6 | |
22138 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22139 | cat >> confdefs.h <<EOF | |
22140 | #define $ac_tr_func 1 | |
22141 | EOF | |
22142 | have_cos=1 | |
22143 | else | |
22144 | echo "$ac_t""no" 1>&6 | |
22145 | fi | |
22146 | done | |
22147 | ||
22148 | for ac_func in floor | |
22149 | do | |
22150 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
9b4d9d56 | 22151 | echo "configure:22152: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22152 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22153 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22154 | else | |
22155 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 22156 | #line 22157 "configure" |
2b5f62a0 VZ |
22157 | #include "confdefs.h" |
22158 | /* System header to define __stub macros and hopefully few prototypes, | |
22159 | which can conflict with char $ac_func(); below. */ | |
22160 | #include <assert.h> | |
22161 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22162 | /* We use char because int might match the return type of a gcc2 | |
22163 | builtin and then its argument prototype would still apply. */ | |
22164 | char $ac_func(); | |
22165 | ||
22166 | int main() { | |
22167 | ||
22168 | /* The GNU C library defines this for functions which it implements | |
22169 | to always fail with ENOSYS. Some functions are actually named | |
22170 | something starting with __ and the normal name is an alias. */ | |
22171 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22172 | choke me | |
22173 | #else | |
22174 | $ac_func(); | |
22175 | #endif | |
22176 | ||
22177 | ; return 0; } | |
22178 | EOF | |
9b4d9d56 | 22179 | if { (eval echo configure:22180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22180 | rm -rf conftest* |
22181 | eval "ac_cv_func_$ac_func=yes" | |
22182 | else | |
22183 | echo "configure: failed program was:" >&5 | |
22184 | cat conftest.$ac_ext >&5 | |
22185 | rm -rf conftest* | |
22186 | eval "ac_cv_func_$ac_func=no" | |
22187 | fi | |
22188 | rm -f conftest* | |
22189 | fi | |
22190 | ||
22191 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22192 | echo "$ac_t""yes" 1>&6 | |
22193 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22194 | cat >> confdefs.h <<EOF | |
22195 | #define $ac_tr_func 1 | |
22196 | EOF | |
22197 | have_floor=1 | |
22198 | else | |
22199 | echo "$ac_t""no" 1>&6 | |
22200 | fi | |
22201 | done | |
22202 | ||
22203 | echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6 | |
9b4d9d56 | 22204 | echo "configure:22205: checking if floating point functions link without -lm" >&5 |
2b5f62a0 VZ |
22205 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
22206 | echo "$ac_t""yes" 1>&6 | |
22207 | else | |
22208 | echo "$ac_t""no" 1>&6 | |
22209 | LIBS="$LIBS -lm" | |
22210 | # use different functions to avoid configure caching | |
22211 | have_sin=0 | |
22212 | have_ceil=0 | |
22213 | for ac_func in sin | |
22214 | do | |
22215 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
9b4d9d56 | 22216 | echo "configure:22217: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22217 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22218 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22219 | else | |
22220 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 22221 | #line 22222 "configure" |
2b5f62a0 VZ |
22222 | #include "confdefs.h" |
22223 | /* System header to define __stub macros and hopefully few prototypes, | |
22224 | which can conflict with char $ac_func(); below. */ | |
22225 | #include <assert.h> | |
22226 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22227 | /* We use char because int might match the return type of a gcc2 | |
22228 | builtin and then its argument prototype would still apply. */ | |
22229 | char $ac_func(); | |
22230 | ||
22231 | int main() { | |
22232 | ||
22233 | /* The GNU C library defines this for functions which it implements | |
22234 | to always fail with ENOSYS. Some functions are actually named | |
22235 | something starting with __ and the normal name is an alias. */ | |
22236 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22237 | choke me | |
22238 | #else | |
22239 | $ac_func(); | |
22240 | #endif | |
22241 | ||
22242 | ; return 0; } | |
22243 | EOF | |
9b4d9d56 | 22244 | if { (eval echo configure:22245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22245 | rm -rf conftest* |
22246 | eval "ac_cv_func_$ac_func=yes" | |
22247 | else | |
22248 | echo "configure: failed program was:" >&5 | |
22249 | cat conftest.$ac_ext >&5 | |
22250 | rm -rf conftest* | |
22251 | eval "ac_cv_func_$ac_func=no" | |
22252 | fi | |
22253 | rm -f conftest* | |
22254 | fi | |
22255 | ||
22256 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22257 | echo "$ac_t""yes" 1>&6 | |
22258 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22259 | cat >> confdefs.h <<EOF | |
22260 | #define $ac_tr_func 1 | |
22261 | EOF | |
22262 | have_sin=1 | |
22263 | else | |
22264 | echo "$ac_t""no" 1>&6 | |
22265 | fi | |
22266 | done | |
22267 | ||
22268 | for ac_func in ceil | |
22269 | do | |
22270 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
9b4d9d56 | 22271 | echo "configure:22272: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22272 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22273 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22274 | else | |
22275 | cat > conftest.$ac_ext <<EOF | |
9b4d9d56 | 22276 | #line 22277 "configure" |
2b5f62a0 VZ |
22277 | #include "confdefs.h" |
22278 | /* System header to define __stub macros and hopefully few prototypes, | |
22279 | which can conflict with char $ac_func(); below. */ | |
22280 | #include <assert.h> | |
22281 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22282 | /* We use char because int might match the return type of a gcc2 | |
22283 | builtin and then its argument prototype would still apply. */ | |
22284 | char $ac_func(); | |
22285 | ||
22286 | int main() { | |
22287 | ||
22288 | /* The GNU C library defines this for functions which it implements | |
22289 | to always fail with ENOSYS. Some functions are actually named | |
22290 | something starting with __ and the normal name is an alias. */ | |
22291 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22292 | choke me | |
22293 | #else | |
22294 | $ac_func(); | |
22295 | #endif | |
22296 | ||
22297 | ; return 0; } | |
22298 | EOF | |
9b4d9d56 | 22299 | if { (eval echo configure:22300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22300 | rm -rf conftest* |
22301 | eval "ac_cv_func_$ac_func=yes" | |
22302 | else | |
22303 | echo "configure: failed program was:" >&5 | |
22304 | cat conftest.$ac_ext >&5 | |
22305 | rm -rf conftest* | |
22306 | eval "ac_cv_func_$ac_func=no" | |
22307 | fi | |
22308 | rm -f conftest* | |
22309 | fi | |
22310 | ||
22311 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22312 | echo "$ac_t""yes" 1>&6 | |
22313 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22314 | cat >> confdefs.h <<EOF | |
22315 | #define $ac_tr_func 1 | |
22316 | EOF | |
22317 | have_ceil=1 | |
22318 | else | |
22319 | echo "$ac_t""no" 1>&6 | |
22320 | fi | |
22321 | done | |
22322 | ||
22323 | echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6 | |
9b4d9d56 | 22324 | echo "configure:22325: checking if floating point functions link with -lm" >&5 |
2b5f62a0 VZ |
22325 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
22326 | echo "$ac_t""yes" 1>&6 | |
22327 | else | |
22328 | echo "$ac_t""no" 1>&6 | |
22329 | # not sure we should warn the user, crash, etc. | |
22330 | fi | |
22331 | fi | |
8284b0c5 MB |
22332 | |
22333 | if test "$wxUSE_GUI" = "yes"; then | |
22334 | ||
22335 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" | |
22336 | ||
a0b9e27f | 22337 | |
8284b0c5 MB |
22338 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
22339 | drawing dynamic erase event exec font image \ | |
22340 | minimal propsize rotate widgets" | |
22341 | ||
22342 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
22343 | else | |
22344 | SAMPLES_SUBDIRS="console" | |
22345 | fi | |
22346 | ||
22347 | ||
22348 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ | |
22349 | -I\${top_srcdir}/include \ | |
22350 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
22351 | $TOOLKIT_INCLUDE" | |
22352 | ||
22353 | if test "$wxUSE_GTK" = 1; then | |
22354 | WXCONFIG_INCLUDE= | |
22355 | else | |
22356 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
22357 | fi | |
22358 | ||
22359 | if test "$GXX" = yes ; then | |
22360 | CXXWARNINGS="-Wall" | |
a0b9e27f | 22361 | |
8284b0c5 MB |
22362 | if test "$wxUSE_NO_DEPS" = "no" ; then |
22363 | CFLAGS="-MMD $CFLAGS" | |
22364 | CXXFLAGS="-MMD $CXXFLAGS" | |
22365 | fi | |
22366 | fi | |
22367 | ||
b2fee376 | 22368 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" |
8284b0c5 | 22369 | |
b2fee376 | 22370 | CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
8284b0c5 MB |
22371 | CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
22372 | CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
22373 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
22374 | ||
22375 | LDFLAGS="$LDFLAGS $PROFILE" | |
22376 | ||
22377 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
22378 | ||
22379 | ||
22380 | ||
22381 | ||
22382 | ||
22383 | ||
22384 | ||
22385 | ||
22386 | ||
22387 | ||
22388 | ||
22389 | ||
22390 | ||
22391 | ||
22392 | ||
22393 | ||
22394 | ||
22395 | ||
22396 | ||
22397 | ||
22398 | ||
22399 | ||
22400 | ||
22401 | ||
22402 | ||
22403 | ||
22404 | ||
22405 | ||
22406 | ||
22407 | ||
22408 | ||
22409 | ||
22410 | ||
22411 | ||
22412 | ||
22413 | ||
22414 | ||
22415 | ||
22416 | ||
22417 | ||
22418 | ||
22419 | ||
22420 | ||
22421 | ||
22422 | ||
22423 | ||
22424 | ||
22425 | ||
22426 | ||
22427 | ||
22428 | ||
22429 | ||
22430 | ||
22431 | ||
22432 | ||
22433 | ||
22434 | ||
22435 | ||
22436 | ||
22437 | ||
22438 | ||
22439 | ||
22440 | ||
22441 | ||
22442 | ||
22443 | ||
22444 | ||
22445 | ||
2f51a9ec GD |
22446 | |
22447 | ||
22448 | ||
22449 | ||
f6bcfd97 | 22450 | |
dad6c0ea | 22451 | |
caa2c79b | 22452 | |
3711412e | 22453 | |
1e6feb95 VZ |
22454 | |
22455 | ||
885d4bf5 VS |
22456 | |
22457 | ||
22458 | ||
22459 | ||
9b695262 VZ |
22460 | |
22461 | ||
62d0491b | 22462 | |
ef7f2189 | 22463 | |
40f7145c | 22464 | |
2b5f62a0 VZ |
22465 | |
22466 | ||
22467 | ||
22468 | ||
22469 | ||
2bffed64 VZ |
22470 | |
22471 | ||
3bd8fb5f | 22472 | |
e26c13cf | 22473 | |
52c71b80 | 22474 | |
36825681 | 22475 | |
4f5a7f74 | 22476 | |
10f2d63a | 22477 | |
a0b9e27f MB |
22478 | |
22479 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
9b4d9d56 | 22480 | echo "configure:22481: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
a0b9e27f MB |
22481 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
22482 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
22483 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 22484 | else |
a0b9e27f | 22485 | cat > conftestmake <<\EOF |
10f2d63a VZ |
22486 | all: |
22487 | @echo 'ac_maketemp="${MAKE}"' | |
a0b9e27f | 22488 | EOF |
10f2d63a | 22489 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
a0b9e27f | 22490 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
22491 | if test -n "$ac_maketemp"; then |
22492 | eval ac_cv_prog_make_${ac_make}_set=yes | |
22493 | else | |
22494 | eval ac_cv_prog_make_${ac_make}_set=no | |
22495 | fi | |
a0b9e27f | 22496 | rm -f conftestmake |
10f2d63a VZ |
22497 | fi |
22498 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
a0b9e27f | 22499 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
22500 | SET_MAKE= |
22501 | else | |
a0b9e27f | 22502 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
22503 | SET_MAKE="MAKE=${MAKE-make}" |
22504 | fi | |
22505 | ||
8284b0c5 | 22506 | |
3a922bb4 RL |
22507 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
22508 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 22509 | fi |
665bbe97 | 22510 | |
8284b0c5 | 22511 | |
10f2d63a | 22512 | |
57973b9c VZ |
22513 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
22514 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
22515 | wx_cv_path_ifs=$PATH_IFS | |
22516 | wx_cv_program_ext=$PROGRAM_EXT | |
22517 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
22518 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
22519 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
2b5f62a0 VZ |
22520 | wx_cv_library_basename=${WX_LIBRARY_BASENAME} |
22521 | wx_cv_release=${WX_RELEASE} | |
22522 | wx_cv_current=${WX_CURRENT} | |
22523 | wx_cv_revision=${WX_REVISION} | |
22524 | wx_cv_age=${WX_AGE} | |
27635a90 | 22525 | wx_cv_use_gui=${USE_GUI} |
5e66eee1 | 22526 | wx_cv_use_resources=${wxUSE_RESOURCES} |
57973b9c VZ |
22527 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ |
22528 | wx_cv_path_ifs wx_cv_program_ext \ | |
2b5f62a0 | 22529 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \ |
27635a90 | 22530 | wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \ |
5e66eee1 | 22531 | wx_cv_use_gui wx_cv_use_resources |
57973b9c | 22532 | |
a0b9e27f | 22533 | subdirs="demos samples utils contrib" |
8284b0c5 | 22534 | |
10f2d63a | 22535 | |
a0b9e27f MB |
22536 | trap '' 1 2 15 |
22537 | cat > confcache <<\EOF | |
10f2d63a VZ |
22538 | # This file is a shell script that caches the results of configure |
22539 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
22540 | # scripts and configure runs. It is not useful on other systems. |
22541 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 22542 | # |
a0b9e27f MB |
22543 | # By default, configure uses ./config.cache as the cache file, |
22544 | # creating it if it does not exist already. You can give configure | |
22545 | # the --cache-file=FILE option to use a different cache file; that is | |
22546 | # what configure does when it calls configure scripts in | |
22547 | # subdirectories, so they share the cache. | |
22548 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
22549 | # config.status only pays attention to the cache file if you give it the | |
22550 | # --recheck option to rerun configure. | |
10f2d63a | 22551 | # |
a0b9e27f | 22552 | EOF |
10f2d63a VZ |
22553 | # The following way of writing the cache mishandles newlines in values, |
22554 | # but we know of no workaround that is simple, portable, and efficient. | |
22555 | # So, don't put newlines in cache variables' values. | |
22556 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
22557 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
22558 | (set) 2>&1 | |
22559 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
22560 | *ac_space=\ *) | |
22561 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
22562 | # turns \\\\ into \\, and sed turns \\ into \). | |
22563 | sed -n \ | |
22564 | -e "s/'/'\\\\''/g" \ | |
22565 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
22566 | ;; | |
22567 | *) | |
22568 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
22569 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
22570 | ;; | |
22571 | esac >> confcache | |
22572 | if cmp -s $cache_file confcache; then | |
22573 | : | |
22574 | else | |
10f2d63a | 22575 | if test -w $cache_file; then |
a0b9e27f MB |
22576 | echo "updating cache $cache_file" |
22577 | cat confcache > $cache_file | |
10f2d63a VZ |
22578 | else |
22579 | echo "not updating unwritable cache $cache_file" | |
22580 | fi | |
22581 | fi | |
22582 | rm -f confcache | |
22583 | ||
a0b9e27f MB |
22584 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
22585 | ||
10f2d63a VZ |
22586 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
22587 | # Let make expand exec_prefix. | |
22588 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
22589 | ||
a0b9e27f MB |
22590 | # Any assignment to VPATH causes Sun make to only execute |
22591 | # the first set of double-colon rules, so remove it if not needed. | |
22592 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 22593 | if test "x$srcdir" = x.; then |
a0b9e27f | 22594 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
22595 | fi |
22596 | ||
a0b9e27f | 22597 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
10f2d63a | 22598 | |
a0b9e27f | 22599 | DEFS=-DHAVE_CONFIG_H |
8284b0c5 | 22600 | |
a0b9e27f | 22601 | # Without the "./", some shells look in PATH for config.status. |
247f5006 | 22602 | : ${CONFIG_STATUS=./config.status} |
52127426 | 22603 | |
a0b9e27f MB |
22604 | echo creating $CONFIG_STATUS |
22605 | rm -f $CONFIG_STATUS | |
22606 | cat > $CONFIG_STATUS <<EOF | |
22607 | #! /bin/sh | |
22608 | # Generated automatically by configure. | |
22609 | # Run this file to recreate the current configuration. | |
22610 | # This directory was configured as follows, | |
22611 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
247f5006 | 22612 | # |
a0b9e27f | 22613 | # $0 $ac_configure_args |
247f5006 | 22614 | # |
a0b9e27f MB |
22615 | # Compiler output produced by configure, useful for debugging |
22616 | # configure, is in ./config.log if it exists. | |
247f5006 | 22617 | |
a0b9e27f MB |
22618 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
22619 | for ac_option | |
247f5006 | 22620 | do |
a0b9e27f MB |
22621 | case "\$ac_option" in |
22622 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22623 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
22624 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
22625 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
22626 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
22627 | exit 0 ;; | |
22628 | -help | --help | --hel | --he | --h) | |
22629 | echo "\$ac_cs_usage"; exit 0 ;; | |
22630 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
247f5006 VZ |
22631 | esac |
22632 | done | |
22633 | ||
a0b9e27f MB |
22634 | ac_given_srcdir=$srcdir |
22635 | ac_given_INSTALL="$INSTALL" | |
247f5006 | 22636 | |
a0b9e27f MB |
22637 | trap 'rm -fr `echo " |
22638 | wx-config | |
2b5f62a0 | 22639 | version-script |
a0b9e27f MB |
22640 | src/make.env |
22641 | src/makeprog.env | |
22642 | src/makelib.env | |
22643 | Makefile | |
22644 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
22645 | EOF | |
22646 | cat >> $CONFIG_STATUS <<EOF | |
247f5006 | 22647 | |
a0b9e27f MB |
22648 | # Protect against being on the right side of a sed subst in config.status. |
22649 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
22650 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
22651 | $ac_vpsub | |
22652 | $extrasub | |
22653 | s%@SHELL@%$SHELL%g | |
22654 | s%@CFLAGS@%$CFLAGS%g | |
22655 | s%@CPPFLAGS@%$CPPFLAGS%g | |
22656 | s%@CXXFLAGS@%$CXXFLAGS%g | |
22657 | s%@FFLAGS@%$FFLAGS%g | |
22658 | s%@DEFS@%$DEFS%g | |
22659 | s%@LDFLAGS@%$LDFLAGS%g | |
22660 | s%@LIBS@%$LIBS%g | |
22661 | s%@exec_prefix@%$exec_prefix%g | |
22662 | s%@prefix@%$prefix%g | |
22663 | s%@program_transform_name@%$program_transform_name%g | |
22664 | s%@bindir@%$bindir%g | |
22665 | s%@sbindir@%$sbindir%g | |
22666 | s%@libexecdir@%$libexecdir%g | |
22667 | s%@datadir@%$datadir%g | |
22668 | s%@sysconfdir@%$sysconfdir%g | |
22669 | s%@sharedstatedir@%$sharedstatedir%g | |
22670 | s%@localstatedir@%$localstatedir%g | |
22671 | s%@libdir@%$libdir%g | |
22672 | s%@includedir@%$includedir%g | |
22673 | s%@oldincludedir@%$oldincludedir%g | |
22674 | s%@infodir@%$infodir%g | |
22675 | s%@mandir@%$mandir%g | |
22676 | s%@host@%$host%g | |
22677 | s%@host_alias@%$host_alias%g | |
22678 | s%@host_cpu@%$host_cpu%g | |
22679 | s%@host_vendor@%$host_vendor%g | |
22680 | s%@host_os@%$host_os%g | |
22681 | s%@target@%$target%g | |
22682 | s%@target_alias@%$target_alias%g | |
22683 | s%@target_cpu@%$target_cpu%g | |
22684 | s%@target_vendor@%$target_vendor%g | |
22685 | s%@target_os@%$target_os%g | |
22686 | s%@build@%$build%g | |
22687 | s%@build_alias@%$build_alias%g | |
22688 | s%@build_cpu@%$build_cpu%g | |
22689 | s%@build_vendor@%$build_vendor%g | |
22690 | s%@build_os@%$build_os%g | |
22691 | s%@CC@%$CC%g | |
22692 | s%@CPP@%$CPP%g | |
22693 | s%@CXX@%$CXX%g | |
22694 | s%@RANLIB@%$RANLIB%g | |
22695 | s%@AR@%$AR%g | |
22696 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
22697 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
22698 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
22699 | s%@STRIP@%$STRIP%g | |
22700 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g | |
22701 | s%@YACC@%$YACC%g | |
22702 | s%@LEX@%$LEX%g | |
22703 | s%@LEXLIB@%$LEXLIB%g | |
22704 | s%@LN_S@%$LN_S%g | |
22705 | s%@CXXCPP@%$CXXCPP%g | |
22706 | s%@PKG_CONFIG@%$PKG_CONFIG%g | |
22707 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
22708 | s%@GTK_LIBS@%$GTK_LIBS%g | |
22709 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
22710 | s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g | |
22711 | s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g | |
22712 | s%@X_CFLAGS@%$X_CFLAGS%g | |
22713 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
22714 | s%@X_LIBS@%$X_LIBS%g | |
22715 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
2b5f62a0 VZ |
22716 | s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g |
22717 | s%@PANGOX_LIBS@%$PANGOX_LIBS%g | |
22718 | s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g | |
22719 | s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g | |
a0b9e27f MB |
22720 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g |
22721 | s%@RESCOMP@%$RESCOMP%g | |
22722 | s%@DEREZ@%$DEREZ%g | |
36825681 | 22723 | s%@SETFILE@%$SETFILE%g |
a0b9e27f MB |
22724 | s%@LIBICONV@%$LIBICONV%g |
22725 | s%@LEX_STEM@%$LEX_STEM%g | |
22726 | s%@PATH_IFS@%$PATH_IFS%g | |
22727 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
22728 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
22729 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
22730 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
22731 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
2b5f62a0 | 22732 | s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g |
a0b9e27f MB |
22733 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
22734 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
22735 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
22736 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
22737 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
22738 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
22739 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
22740 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
22741 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
22742 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
22743 | s%@WX_ALL@%$WX_ALL%g | |
22744 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
22745 | s%@SHARED_LD@%$SHARED_LD%g | |
22746 | s%@PIC_FLAG@%$PIC_FLAG%g | |
22747 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
22748 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
22749 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g | |
22750 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
22751 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
22752 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
2bffed64 | 22753 | s%@STATIC_FLAG@%$STATIC_FLAG%g |
a0b9e27f MB |
22754 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
22755 | s%@USE_GUI@%$USE_GUI%g | |
22756 | s%@AFMINSTALL@%$AFMINSTALL%g | |
2b5f62a0 | 22757 | s%@WIN32INSTALL@%$WIN32INSTALL%g |
a0b9e27f MB |
22758 | s%@TOOLKIT@%$TOOLKIT%g |
22759 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
22760 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g | |
22761 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g | |
22762 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
22763 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g | |
52c71b80 | 22764 | s%@top_builddir@%$top_builddir%g |
a0b9e27f MB |
22765 | s%@cross_compiling@%$cross_compiling%g |
22766 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
22767 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
22768 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g | |
22769 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
22770 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
22771 | s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g | |
e26c13cf | 22772 | s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g |
a0b9e27f MB |
22773 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g |
22774 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
22775 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
22776 | s%@GUIDIST@%$GUIDIST%g | |
22777 | s%@PORT_FILES@%$PORT_FILES%g | |
22778 | s%@DISTDIR@%$DISTDIR%g | |
a0b9e27f MB |
22779 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
22780 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g | |
2b5f62a0 | 22781 | s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g |
a0b9e27f MB |
22782 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g |
22783 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
22784 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g | |
22785 | s%@EXTRADEFS@%$EXTRADEFS%g | |
2b5f62a0 | 22786 | s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g |
a0b9e27f MB |
22787 | s%@RESFLAGS@%$RESFLAGS%g |
22788 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g | |
22789 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g | |
22790 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
22791 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g | |
22792 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
36825681 GD |
22793 | s%@MACRESCOMP@%$MACRESCOMP%g |
22794 | s%@MACSETFILE@%$MACSETFILE%g | |
22795 | s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g | |
2b5f62a0 | 22796 | s%@GCC@%$GCC%g |
a0b9e27f MB |
22797 | s%@DLLTOOL@%$DLLTOOL%g |
22798 | s%@AS@%$AS%g | |
22799 | s%@NM@%$NM%g | |
22800 | s%@LD@%$LD%g | |
22801 | s%@MAKEINFO@%$MAKEINFO%g | |
22802 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g | |
4f5a7f74 | 22803 | s%@INSTALL_DIR@%$INSTALL_DIR%g |
a0b9e27f MB |
22804 | s%@SET_MAKE@%$SET_MAKE%g |
22805 | s%@subdirs@%$subdirs%g | |
247f5006 | 22806 | |
247f5006 | 22807 | CEOF |
a0b9e27f | 22808 | EOF |
247f5006 | 22809 | |
a0b9e27f MB |
22810 | cat >> $CONFIG_STATUS <<\EOF |
22811 | ||
22812 | # Split the substitutions into bite-sized pieces for seds with | |
22813 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
22814 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
22815 | ac_file=1 # Number of current file. | |
22816 | ac_beg=1 # First line for current file. | |
22817 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
22818 | ac_more_lines=: | |
22819 | ac_sed_cmds="" | |
22820 | while $ac_more_lines; do | |
22821 | if test $ac_beg -gt 1; then | |
22822 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
22823 | else | |
22824 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
22825 | fi | |
22826 | if test ! -s conftest.s$ac_file; then | |
22827 | ac_more_lines=false | |
22828 | rm -f conftest.s$ac_file | |
22829 | else | |
22830 | if test -z "$ac_sed_cmds"; then | |
22831 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
247f5006 | 22832 | else |
a0b9e27f | 22833 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
247f5006 | 22834 | fi |
a0b9e27f MB |
22835 | ac_file=`expr $ac_file + 1` |
22836 | ac_beg=$ac_end | |
22837 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 22838 | fi |
a0b9e27f MB |
22839 | done |
22840 | if test -z "$ac_sed_cmds"; then | |
22841 | ac_sed_cmds=cat | |
22842 | fi | |
22843 | EOF | |
10f2d63a | 22844 | |
a0b9e27f | 22845 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 22846 | |
a0b9e27f | 22847 | CONFIG_FILES=\${CONFIG_FILES-"wx-config |
2b5f62a0 | 22848 | version-script |
a0b9e27f MB |
22849 | src/make.env |
22850 | src/makeprog.env | |
22851 | src/makelib.env | |
22852 | Makefile | |
22853 | "} | |
22854 | EOF | |
22855 | cat >> $CONFIG_STATUS <<\EOF | |
22856 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
22857 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
22858 | case "$ac_file" in | |
22859 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
22860 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22861 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a | 22862 | esac |
247f5006 | 22863 | |
a0b9e27f | 22864 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
247f5006 | 22865 | |
a0b9e27f MB |
22866 | # Remove last slash and all that follows it. Not all systems have dirname. |
22867 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
22868 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
22869 | # The file is in a subdirectory. | |
22870 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
22871 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
22872 | # A "../" for each directory in $ac_dir_suffix. | |
22873 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
22874 | else | |
22875 | ac_dir_suffix= ac_dots= | |
22876 | fi | |
247f5006 | 22877 | |
a0b9e27f MB |
22878 | case "$ac_given_srcdir" in |
22879 | .) srcdir=. | |
22880 | if test -z "$ac_dots"; then top_srcdir=. | |
22881 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
22882 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
247f5006 | 22883 | *) # Relative path. |
a0b9e27f MB |
22884 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
22885 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8284b0c5 | 22886 | esac |
10f2d63a | 22887 | |
a0b9e27f MB |
22888 | case "$ac_given_INSTALL" in |
22889 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
22890 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
22891 | esac | |
247f5006 | 22892 | |
a0b9e27f MB |
22893 | echo creating "$ac_file" |
22894 | rm -f "$ac_file" | |
22895 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
22896 | case "$ac_file" in | |
22897 | *Makefile*) ac_comsub="1i\\ | |
22898 | # $configure_input" ;; | |
22899 | *) ac_comsub= ;; | |
22900 | esac | |
247f5006 | 22901 | |
a0b9e27f MB |
22902 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
22903 | sed -e "$ac_comsub | |
22904 | s%@configure_input@%$configure_input%g | |
22905 | s%@srcdir@%$srcdir%g | |
22906 | s%@top_srcdir@%$top_srcdir%g | |
22907 | s%@INSTALL@%$INSTALL%g | |
22908 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
22909 | fi; done | |
22910 | rm -f conftest.s* | |
10f2d63a VZ |
22911 | |
22912 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
22913 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
22914 | # | |
22915 | # ac_d sets the value in "#define NAME VALUE" lines. | |
a0b9e27f MB |
22916 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
22917 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
22918 | ac_dC='\3' | |
22919 | ac_dD='%g' | |
22920 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
22921 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22922 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 22923 | ac_uC=' ' |
a0b9e27f MB |
22924 | ac_uD='\4%g' |
22925 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
22926 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22927 | ac_eB='$%\1#\2define\3' | |
22928 | ac_eC=' ' | |
22929 | ac_eD='%g' | |
22930 | ||
22931 | if test "${CONFIG_HEADERS+set}" != set; then | |
22932 | EOF | |
22933 | cat >> $CONFIG_STATUS <<EOF | |
22934 | CONFIG_HEADERS="setup.h:setup.h.in" | |
22935 | EOF | |
22936 | cat >> $CONFIG_STATUS <<\EOF | |
22937 | fi | |
22938 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 22939 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
a0b9e27f MB |
22940 | case "$ac_file" in |
22941 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
22942 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22943 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
22944 | esac |
22945 | ||
a0b9e27f MB |
22946 | echo creating $ac_file |
22947 | ||
22948 | rm -f conftest.frag conftest.in conftest.out | |
22949 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
22950 | cat $ac_file_inputs > conftest.in | |
22951 | ||
22952 | EOF | |
22953 | ||
22954 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
22955 | # the proper values into config.h.in to produce config.h. And first: | |
22956 | # Protect against being on the right side of a sed subst in config.status. | |
22957 | # Protect against being in an unquoted here document in config.status. | |
22958 | rm -f conftest.vals | |
22959 | cat > conftest.hdr <<\EOF | |
22960 | s/[\\&%]/\\&/g | |
22961 | s%[\\$`]%\\&%g | |
22962 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
22963 | s%ac_d%ac_u%gp | |
22964 | s%ac_u%ac_e%gp | |
22965 | EOF | |
22966 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
22967 | rm -f conftest.hdr | |
10f2d63a VZ |
22968 | |
22969 | # This sed command replaces #undef with comments. This is necessary, for | |
22970 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
22971 | # on some systems where configure will not decide to define it. | |
a0b9e27f MB |
22972 | cat >> conftest.vals <<\EOF |
22973 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
22974 | EOF | |
22975 | ||
22976 | # Break up conftest.vals because some shells have a limit on | |
22977 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
22978 | |
22979 | rm -f conftest.tail | |
a0b9e27f | 22980 | while : |
10f2d63a | 22981 | do |
a0b9e27f MB |
22982 | ac_lines=`grep -c . conftest.vals` |
22983 | # grep -c gives empty output for an empty file on some AIX systems. | |
22984 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
22985 | # Write a limited-size here document to conftest.frag. | |
22986 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
22987 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 22988 | echo 'CEOF |
a0b9e27f MB |
22989 | sed -f conftest.frag conftest.in > conftest.out |
22990 | rm -f conftest.in | |
22991 | mv conftest.out conftest.in | |
22992 | ' >> $CONFIG_STATUS | |
22993 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
22994 | rm -f conftest.vals | |
22995 | mv conftest.tail conftest.vals | |
10f2d63a | 22996 | done |
a0b9e27f MB |
22997 | rm -f conftest.vals |
22998 | ||
22999 | cat >> $CONFIG_STATUS <<\EOF | |
23000 | rm -f conftest.frag conftest.h | |
23001 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
23002 | cat conftest.in >> conftest.h | |
23003 | rm -f conftest.in | |
23004 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
23005 | echo "$ac_file is unchanged" | |
23006 | rm -f conftest.h | |
10f2d63a | 23007 | else |
a0b9e27f MB |
23008 | # Remove last slash and all that follows it. Not all systems have dirname. |
23009 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
23010 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
23011 | # The file is in a subdirectory. | |
23012 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
247f5006 | 23013 | fi |
a0b9e27f MB |
23014 | rm -f $ac_file |
23015 | mv conftest.h $ac_file | |
247f5006 | 23016 | fi |
a0b9e27f MB |
23017 | fi; done |
23018 | ||
23019 | EOF | |
23020 | cat >> $CONFIG_STATUS <<EOF | |
23021 | ||
23022 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
23023 | LN_S="${LN_S}" | |
23024 | ||
23025 | ||
23026 | EOF | |
23027 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 23028 | |
652d930d | 23029 | if test ! -h wx-config; then |
991a5759 | 23030 | chmod +x wx-config |
3a922bb4 RL |
23031 | mv wx-config wx${TOOLCHAIN_NAME}-config |
23032 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 23033 | fi |
665bbe97 | 23034 | |
00cf1208 RR |
23035 | if test ! -d lib; then |
23036 | mkdir lib | |
23037 | fi | |
23038 | if test ! -d lib/wx; then | |
23039 | mkdir lib/wx | |
23040 | fi | |
23041 | if test ! -d lib/wx/include; then | |
23042 | mkdir lib/wx/include | |
23043 | fi | |
3a922bb4 RL |
23044 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
23045 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 23046 | fi |
3a922bb4 RL |
23047 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
23048 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
23049 | fi |
23050 | if test -f setup.h; then | |
3a922bb4 | 23051 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 23052 | fi |
a0b9e27f MB |
23053 | |
23054 | exit 0 | |
23055 | EOF | |
10f2d63a | 23056 | chmod +x $CONFIG_STATUS |
a0b9e27f MB |
23057 | rm -fr confdefs* $ac_clean_files |
23058 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 23059 | |
2224580a VZ |
23060 | if test "$no_recursion" != yes; then |
23061 | ||
23062 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
23063 | ac_sub_configure_args= | |
23064 | ac_prev= | |
23065 | for ac_arg in $ac_configure_args; do | |
23066 | if test -n "$ac_prev"; then | |
23067 | ac_prev= | |
23068 | continue | |
23069 | fi | |
a0b9e27f | 23070 | case "$ac_arg" in |
2224580a VZ |
23071 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
23072 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
23073 | ac_prev=cache_file ;; | |
23074 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
a0b9e27f | 23075 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
23076 | ;; |
23077 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
23078 | ac_prev=srcdir ;; | |
23079 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
23080 | ;; | |
23081 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
23082 | esac | |
23083 | done | |
23084 | ||
a0b9e27f | 23085 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
23086 | |
23087 | # Do not complain, so a configure script can configure whichever | |
23088 | # parts of a large source tree are present. | |
a0b9e27f MB |
23089 | if test ! -d $srcdir/$ac_config_dir; then |
23090 | continue | |
23091 | fi | |
2224580a | 23092 | |
a0b9e27f | 23093 | echo configuring in $ac_config_dir |
2224580a | 23094 | |
a0b9e27f MB |
23095 | case "$srcdir" in |
23096 | .) ;; | |
23097 | *) | |
23098 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
23099 | else | |
23100 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
23101 | fi | |
23102 | ;; | |
23103 | esac | |
2224580a | 23104 | |
a0b9e27f MB |
23105 | ac_popdir=`pwd` |
23106 | cd $ac_config_dir | |
247f5006 | 23107 | |
a0b9e27f MB |
23108 | # A "../" for each directory in /$ac_config_dir. |
23109 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
247f5006 | 23110 | |
a0b9e27f MB |
23111 | case "$srcdir" in |
23112 | .) # No --srcdir option. We are building in place. | |
23113 | ac_sub_srcdir=$srcdir ;; | |
23114 | /*) # Absolute path. | |
23115 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
23116 | *) # Relative path. | |
23117 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
23118 | esac | |
2224580a VZ |
23119 | |
23120 | # Check for guested configure; otherwise get Cygnus style configure. | |
a0b9e27f MB |
23121 | if test -f $ac_sub_srcdir/configure; then |
23122 | ac_sub_configure=$ac_sub_srcdir/configure | |
23123 | elif test -f $ac_sub_srcdir/configure.in; then | |
2224580a VZ |
23124 | ac_sub_configure=$ac_configure |
23125 | else | |
a0b9e27f | 23126 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
23127 | ac_sub_configure= |
23128 | fi | |
23129 | ||
23130 | # The recursion is here. | |
23131 | if test -n "$ac_sub_configure"; then | |
a0b9e27f | 23132 | |
2224580a | 23133 | # Make the cache file name correct relative to the subdirectory. |
a0b9e27f MB |
23134 | case "$cache_file" in |
23135 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 23136 | *) # Relative path. |
a0b9e27f | 23137 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 23138 | esac |
a0b9e27f MB |
23139 | case "$ac_given_INSTALL" in |
23140 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
23141 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
23142 | esac | |
2224580a | 23143 | |
a0b9e27f | 23144 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 23145 | # The eval makes quoting arguments work. |
a0b9e27f MB |
23146 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
23147 | then : | |
23148 | else | |
23149 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
23150 | fi | |
2224580a VZ |
23151 | fi |
23152 | ||
23153 | cd $ac_popdir | |
23154 | done | |
23155 | fi | |
23156 | ||
8284b0c5 | 23157 | |
2b5f62a0 VZ |
23158 | echo |
23159 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
23160 | echo "" | |
23161 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}" | |
23162 | ||
23163 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
23164 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
23165 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
23166 | ||
0c98a14e GD |
23167 | echo " What level of wxWindows compatibility should be enabled?" |
23168 | echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}" | |
65d8ef1e VS |
23169 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
23170 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 23171 | |
2b5f62a0 VZ |
23172 | echo " Which libraries should wxWindows use?" |
23173 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
23174 | echo " png ${wxUSE_LIBPNG-none}" | |
23175 | echo " regex ${wxUSE_REGEX}" | |
23176 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
23177 | echo " zlib ${wxUSE_ZLIB}" | |
23178 | ||
23179 | echo "" | |
23180 |