]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
a0b9e27f MB |
3 | # From configure.in Id: configure.in |
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
52127426 | 25 | |
52127426 | 26 | |
8284b0c5 MB |
27 | |
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
8284b0c5 MB |
36 | |
37 | ||
38 | ||
39 | ||
40 | ||
41 | ||
42 | ||
43 | ||
8284b0c5 MB |
44 | |
45 | ||
46 | ||
247f5006 | 47 | |
247f5006 | 48 | |
a0b9e27f MB |
49 | |
50 | ||
51 | ||
52 | ||
53 | ||
54 | ||
2b5f62a0 VZ |
55 | |
56 | ||
57 | ||
521196a2 MB |
58 | |
59 | ||
60 | ||
a0b9e27f MB |
61 | |
62 | ||
63 | ||
64 | ||
65 | # Configure paths for GTK+ | |
66 | # Owen Taylor 1997-2001 | |
67 | ||
68 | ||
69 | ||
2b5f62a0 VZ |
70 | # Configure paths for GTK+ |
71 | # Owen Taylor 97-11-3 | |
a0b9e27f MB |
72 | |
73 | ||
74 | ||
75 | ||
76 | ||
a0b9e27f MB |
77 | |
78 | ||
79 | ||
80 | # Guess values for system-dependent variables and create Makefiles. | |
81 | # Generated automatically using autoconf version 2.13 | |
82 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
83 | # | |
84 | # This configure script is free software; the Free Software Foundation | |
85 | # gives unlimited permission to copy, distribute and modify it. | |
86 | ||
87 | # Defaults: | |
88 | ac_help= | |
89 | ac_default_prefix=/usr/local | |
90 | # Any additions from configure.in: | |
91 | ac_help="$ac_help | |
92 | --enable-gui use GUI classes" | |
93 | ac_help="$ac_help | |
94 | --enable-universal use wxWindows GUI controls instead of native ones" | |
95 | ac_help="$ac_help | |
96 | --with-gtk use GTK+" | |
97 | ac_help="$ac_help | |
98 | --with-motif use Motif/Lesstif" | |
99 | ac_help="$ac_help | |
100 | --with-mac use Mac OS X" | |
ac0c4cc3 DE |
101 | ac_help="$ac_help |
102 | --with-cocoa use Cocoa" | |
a0b9e27f | 103 | ac_help="$ac_help |
89e6bf6d | 104 | --with-wine use Wine" |
a0b9e27f MB |
105 | ac_help="$ac_help |
106 | --with-msw use MS-Windows" | |
107 | ac_help="$ac_help | |
108 | --with-pm use OS/2 Presentation Manager" | |
109 | ac_help="$ac_help | |
110 | --with-mgl use SciTech MGL" | |
111 | ac_help="$ac_help | |
112 | --with-microwin use MicroWindows" | |
113 | ac_help="$ac_help | |
114 | --with-x11 use X11" | |
115 | ac_help="$ac_help | |
116 | --enable-nanox use NanoX" | |
117 | ac_help="$ac_help | |
118 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" | |
119 | ac_help="$ac_help | |
120 | --with-libpng use libpng (PNG image format)" | |
121 | ac_help="$ac_help | |
122 | --with-libjpeg use libjpeg (JPEG file format)" | |
123 | ac_help="$ac_help | |
124 | --with-libtiff use libtiff (TIFF file format)" | |
125 | ac_help="$ac_help | |
126 | --with-opengl use OpenGL (or Mesa)" | |
127 | ac_help="$ac_help | |
128 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" | |
129 | ac_help="$ac_help | |
130 | --with-regex enable support for wxRegEx class" | |
131 | ac_help="$ac_help | |
132 | --with-zlib use zlib for LZW compression" | |
133 | ac_help="$ac_help | |
134 | --with-odbc use the IODBC and wxODBC classes" | |
135 | ac_help="$ac_help | |
136 | --enable-shared create shared library code" | |
137 | ac_help="$ac_help | |
138 | --enable-soname set the DT_SONAME field in ELF shared libraries" | |
139 | ac_help="$ac_help | |
140 | --enable-optimise create optimised code" | |
141 | ac_help="$ac_help | |
142 | --enable-debug same as debug_flag and debug_info" | |
143 | ac_help="$ac_help | |
b2fee376 | 144 | --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)" |
a0b9e27f MB |
145 | ac_help="$ac_help |
146 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
147 | ac_help="$ac_help | |
148 | --enable-debug_info create code with debugging information" | |
149 | ac_help="$ac_help | |
150 | --enable-debug_gdb create code with extra GDB debugging information" | |
151 | ac_help="$ac_help | |
152 | --enable-debug_cntxt use wxDebugContext" | |
153 | ac_help="$ac_help | |
154 | --enable-mem_tracing create code with memory tracing" | |
155 | ac_help="$ac_help | |
156 | --enable-profile create code with profiling information" | |
157 | ac_help="$ac_help | |
158 | --enable-no_rtti create code without RTTI information" | |
159 | ac_help="$ac_help | |
160 | --enable-no_exceptions create code without C++ exceptions handling" | |
161 | ac_help="$ac_help | |
162 | --enable-permissive compile code disregarding strict ANSI" | |
163 | ac_help="$ac_help | |
164 | --enable-no_deps create code without dependency information" | |
165 | ac_help="$ac_help | |
166 | --enable-compat20 enable wxWindows 2.0 compatibility" | |
167 | ac_help="$ac_help | |
65d8ef1e VS |
168 | --enable-compat22 enable wxWindows 2.2 compatibility" |
169 | ac_help="$ac_help | |
170 | --disable-compat24 disable wxWindows 2.4 compatibility" | |
a0b9e27f MB |
171 | ac_help="$ac_help |
172 | --enable-rpath=DIR output the rpath flag from wx-config" | |
173 | ac_help="$ac_help | |
174 | --enable-intl use internationalization system" | |
175 | ac_help="$ac_help | |
176 | --enable-config use wxConfig (and derived) classes" | |
177 | ac_help="$ac_help | |
178 | --enable-protocols use wxProtocol and derived classes" | |
179 | ac_help="$ac_help | |
180 | --enable-ftp use wxFTP (requires wxProtocol" | |
181 | ac_help="$ac_help | |
182 | --enable-http use wxHTTP (requires wxProtocol" | |
183 | ac_help="$ac_help | |
184 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
185 | ac_help="$ac_help | |
186 | --enable-sockets use socket/network classes" | |
3bce6687 JS |
187 | ac_help="$ac_help |
188 | --enable-ole use OLE classes" | |
189 | ac_help="$ac_help | |
190 | --enable-dataobj use data object classes" | |
a0b9e27f MB |
191 | ac_help="$ac_help |
192 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
193 | ac_help="$ac_help | |
194 | --enable-cmdline use wxCmdLineParser class" | |
195 | ac_help="$ac_help | |
196 | --enable-datetime use wxDateTime class" | |
a0b9e27f MB |
197 | ac_help="$ac_help |
198 | --enable-stopwatch use wxStopWatch class" | |
199 | ac_help="$ac_help | |
200 | --enable-dialupman use dialup network classes" | |
201 | ac_help="$ac_help | |
202 | --enable-apple_ieee use the Apple IEEE codec" | |
203 | ac_help="$ac_help | |
204 | --enable-timer use wxTimer class" | |
205 | ac_help="$ac_help | |
206 | --enable-wave use wxWave class" | |
207 | ac_help="$ac_help | |
208 | --enable-fraction use wxFraction class" | |
209 | ac_help="$ac_help | |
210 | --enable-dynlib use wxLibrary class for DLL loading" | |
211 | ac_help="$ac_help | |
212 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
213 | ac_help="$ac_help | |
214 | --enable-longlong use wxLongLong class" | |
215 | ac_help="$ac_help | |
216 | --enable-geometry use geometry class" | |
217 | ac_help="$ac_help | |
218 | --enable-log use logging system" | |
219 | ac_help="$ac_help | |
220 | --enable-streams use wxStream etc classes" | |
221 | ac_help="$ac_help | |
222 | --enable-file use wxFile classes" | |
223 | ac_help="$ac_help | |
224 | --enable-ffile use wxFFile classes" | |
225 | ac_help="$ac_help | |
226 | --enable-textbuf use wxTextBuffer class" | |
227 | ac_help="$ac_help | |
228 | --enable-textfile use wxTextFile class" | |
229 | ac_help="$ac_help | |
230 | --enable-fontmap use font encodings conversion classes" | |
231 | ac_help="$ac_help | |
232 | --enable-unicode compile wxString with Unicode support" | |
233 | ac_help="$ac_help | |
234 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
235 | ac_help="$ac_help | |
236 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
237 | ac_help="$ac_help | |
238 | --enable-std_iostreams use standard C++ stream classes" | |
239 | ac_help="$ac_help | |
240 | --enable-filesystem use virtual file systems classes" | |
241 | ac_help="$ac_help | |
242 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
243 | ac_help="$ac_help | |
244 | --enable-fs_zip use virtual ZIP filesystems" | |
245 | ac_help="$ac_help | |
246 | --enable-zipstream use wxZipInputStream" | |
247 | ac_help="$ac_help | |
248 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" | |
249 | ac_help="$ac_help | |
250 | --enable-snglinst use wxSingleInstanceChecker class" | |
251 | ac_help="$ac_help | |
252 | --enable-mimetype use wxMimeTypesManager" | |
253 | ac_help="$ac_help | |
254 | --enable-sysoptions use wxSystemOptions" | |
255 | ac_help="$ac_help | |
256 | --enable-url use wxURL class" | |
257 | ac_help="$ac_help | |
258 | --enable-protocol use wxProtocol class" | |
259 | ac_help="$ac_help | |
260 | --enable-protocol-http HTTP support in wxProtocol" | |
261 | ac_help="$ac_help | |
262 | --enable-protocol-ftp FTP support in wxProtocol" | |
263 | ac_help="$ac_help | |
264 | --enable-protocol-file FILE support in wxProtocol" | |
265 | ac_help="$ac_help | |
266 | --enable-threads use threads" | |
267 | ac_help="$ac_help | |
268 | --enable-docview use document view architecture" | |
269 | ac_help="$ac_help | |
270 | --enable-help use help subsystem" | |
271 | ac_help="$ac_help | |
272 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
273 | ac_help="$ac_help | |
274 | --enable-html use wxHTML sub-library" | |
275 | ac_help="$ac_help | |
276 | --enable-htmlhelp use wxHTML-based help" | |
277 | ac_help="$ac_help | |
278 | --enable-constraints use layout-constraints system" | |
279 | ac_help="$ac_help | |
280 | --enable-printarch use printing architecture" | |
281 | ac_help="$ac_help | |
282 | --enable-mdi use multiple document interface architecture" | |
283 | ac_help="$ac_help | |
284 | --enable-loggui use standard GUI logger" | |
285 | ac_help="$ac_help | |
286 | --enable-logwin use wxLogWindow" | |
287 | ac_help="$ac_help | |
288 | --enable-logdialog use wxLogDialog" | |
289 | ac_help="$ac_help | |
290 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
a0b9e27f | 291 | ac_help="$ac_help |
3c907f20 | 292 | --enable-prologio not available; see contrib" |
a0b9e27f | 293 | ac_help="$ac_help |
3c907f20 | 294 | --enable-resources not available; see contrib" |
a0b9e27f | 295 | ac_help="$ac_help |
da494b40 | 296 | --enable-clipboard use wxClipboard class" |
a0b9e27f MB |
297 | ac_help="$ac_help |
298 | --enable-dnd use Drag'n'Drop classes" | |
299 | ac_help="$ac_help | |
300 | --enable-metafile use win32 metafiles" | |
a0b9e27f MB |
301 | ac_help="$ac_help |
302 | --enable-controls use all usual controls" | |
303 | ac_help="$ac_help | |
304 | --enable-accel use accelerators" | |
305 | ac_help="$ac_help | |
306 | --enable-button use wxButton class" | |
307 | ac_help="$ac_help | |
308 | --enable-bmpbutton use wxBitmapButton class" | |
309 | ac_help="$ac_help | |
310 | --enable-calendar use wxCalendarCtrl class" | |
311 | ac_help="$ac_help | |
312 | --enable-caret use wxCaret class" | |
313 | ac_help="$ac_help | |
314 | --enable-checkbox use wxCheckBox class" | |
315 | ac_help="$ac_help | |
316 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
317 | ac_help="$ac_help | |
318 | --enable-choice use wxChoice class" | |
319 | ac_help="$ac_help | |
da494b40 MB |
320 | --enable-combobox use wxComboBox class" |
321 | ac_help="$ac_help | |
322 | --enable-display use wxDisplay class" | |
a0b9e27f MB |
323 | ac_help="$ac_help |
324 | --enable-gauge use wxGauge class" | |
325 | ac_help="$ac_help | |
326 | --enable-grid use wxGrid class" | |
a0b9e27f MB |
327 | ac_help="$ac_help |
328 | --enable-imaglist use wxImageList class" | |
329 | ac_help="$ac_help | |
330 | --enable-listbox use wxListBox class" | |
331 | ac_help="$ac_help | |
332 | --enable-listctrl use wxListCtrl class" | |
333 | ac_help="$ac_help | |
334 | --enable-notebook use wxNotebook class" | |
a0b9e27f MB |
335 | ac_help="$ac_help |
336 | --enable-radiobox use wxRadioBox class" | |
337 | ac_help="$ac_help | |
338 | --enable-radiobtn use wxRadioButton class" | |
339 | ac_help="$ac_help | |
340 | --enable-sash use wxSashWindow class" | |
341 | ac_help="$ac_help | |
342 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
343 | ac_help="$ac_help | |
344 | --enable-slider use wxSlider class" | |
345 | ac_help="$ac_help | |
346 | --enable-spinbtn use wxSpinButton class" | |
347 | ac_help="$ac_help | |
348 | --enable-spinctrl use wxSpinCtrl class" | |
349 | ac_help="$ac_help | |
350 | --enable-splitter use wxSplitterWindow class" | |
351 | ac_help="$ac_help | |
352 | --enable-statbmp use wxStaticBitmap class" | |
353 | ac_help="$ac_help | |
354 | --enable-statbox use wxStaticBox class" | |
355 | ac_help="$ac_help | |
356 | --enable-statline use wxStaticLine class" | |
357 | ac_help="$ac_help | |
358 | --enable-stattext use wxStaticText class" | |
359 | ac_help="$ac_help | |
360 | --enable-statusbar use wxStatusBar class" | |
361 | ac_help="$ac_help | |
362 | --enable-tabdialog use wxTabControl class" | |
363 | ac_help="$ac_help | |
364 | --enable-textctrl use wxTextCtrl class" | |
365 | ac_help="$ac_help | |
366 | --enable-togglebtn use wxToggleButton class" | |
367 | ac_help="$ac_help | |
368 | --enable-toolbar use wxToolBar class" | |
369 | ac_help="$ac_help | |
370 | --enable-tbarnative use native wxToolBar class" | |
371 | ac_help="$ac_help | |
372 | --enable-tbarsmpl use wxToolBarSimple class" | |
373 | ac_help="$ac_help | |
374 | --enable-treectrl use wxTreeCtrl class" | |
375 | ac_help="$ac_help | |
376 | --enable-tipwindow use wxTipWindow class" | |
377 | ac_help="$ac_help | |
378 | --enable-popupwin use wxPopUpWindow class" | |
379 | ac_help="$ac_help | |
380 | --enable-commondlg use all common dialogs" | |
381 | ac_help="$ac_help | |
382 | --enable-choicedlg use wxChoiceDialog" | |
383 | ac_help="$ac_help | |
384 | --enable-coldlg use wxColourDialog" | |
385 | ac_help="$ac_help | |
386 | --enable-filedlg use wxFileDialog" | |
387 | ac_help="$ac_help | |
388 | --enable-finddlg use wxFindReplaceDialog" | |
389 | ac_help="$ac_help | |
390 | --enable-fontdlg use wxFontDialog" | |
391 | ac_help="$ac_help | |
392 | --enable-dirdlg use wxDirDialog" | |
393 | ac_help="$ac_help | |
394 | --enable-msgdlg use wxMessageDialog" | |
395 | ac_help="$ac_help | |
396 | --enable-numberdlg use wxNumberEntryDialog" | |
397 | ac_help="$ac_help | |
398 | --enable-splash use wxSplashScreen" | |
399 | ac_help="$ac_help | |
400 | --enable-textdlg use wxTextDialog" | |
401 | ac_help="$ac_help | |
402 | --enable-tipdlg use startup tips" | |
403 | ac_help="$ac_help | |
404 | --enable-progressdlg use wxProgressDialog" | |
405 | ac_help="$ac_help | |
406 | --enable-wizarddlg use wxWizard" | |
407 | ac_help="$ac_help | |
408 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" | |
409 | ac_help="$ac_help | |
410 | --enable-miniframe use wxMiniFrame class" | |
411 | ac_help="$ac_help | |
412 | --enable-tooltips use wxToolTip class" | |
413 | ac_help="$ac_help | |
414 | --enable-splines use spline drawing code" | |
415 | ac_help="$ac_help | |
416 | --enable-validators use wxValidator and derived classes" | |
417 | ac_help="$ac_help | |
418 | --enable-busyinfo use wxBusyInfo" | |
419 | ac_help="$ac_help | |
420 | --enable-joystick use wxJoystick (Linux only)" | |
421 | ac_help="$ac_help | |
422 | --enable-metafiles use wxMetaFile (Windows only)" | |
423 | ac_help="$ac_help | |
424 | --enable-dragimage use wxDragImage" | |
7bb2947d MB |
425 | ac_help="$ac_help |
426 | --enable-accessibility enable accessibility support" | |
a0b9e27f MB |
427 | ac_help="$ac_help |
428 | --enable-palette use wxPalette class" | |
429 | ac_help="$ac_help | |
430 | --enable-image use wxImage class" | |
431 | ac_help="$ac_help | |
432 | --enable-gif use gif images (GIF file format)" | |
433 | ac_help="$ac_help | |
434 | --enable-pcx use pcx images (PCX file format)" | |
435 | ac_help="$ac_help | |
436 | --enable-iff use iff images (IFF file format)" | |
437 | ac_help="$ac_help | |
438 | --enable-pnm use pnm images (PNM file format)" | |
439 | ac_help="$ac_help | |
440 | --enable-xpm use xpm images (XPM file format)" | |
441 | ac_help="$ac_help | |
442 | --enable-icocur use Windows ICO and CUR formats" | |
443 | ac_help="$ac_help | |
444 | --disable-largefile omit support for large files" | |
445 | ac_help="$ac_help | |
446 | --disable-gtktest do not try to compile and run a test GTK+ program" | |
447 | ac_help="$ac_help | |
448 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
449 | ac_help="$ac_help | |
450 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
451 | ac_help="$ac_help | |
452 | --disable-gtktest Do not try to compile and run a test GTK program" | |
453 | ac_help="$ac_help | |
454 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
455 | ac_help="$ac_help | |
456 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
457 | ac_help="$ac_help | |
458 | --disable-gtktest Do not try to compile and run a test GTK program" | |
459 | ac_help="$ac_help | |
460 | --with-x use the X Window System" | |
461 | ac_help="$ac_help | |
462 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
463 | |
464 | # Initialize some variables set by options. | |
465 | # The variables have the same names as the options, with | |
466 | # dashes changed to underlines. | |
a0b9e27f MB |
467 | build=NONE |
468 | cache_file=./config.cache | |
10f2d63a | 469 | exec_prefix=NONE |
a0b9e27f | 470 | host=NONE |
10f2d63a | 471 | no_create= |
a0b9e27f | 472 | nonopt=NONE |
10f2d63a VZ |
473 | no_recursion= |
474 | prefix=NONE | |
475 | program_prefix=NONE | |
476 | program_suffix=NONE | |
477 | program_transform_name=s,x,x, | |
478 | silent= | |
479 | site= | |
480 | srcdir= | |
a0b9e27f | 481 | target=NONE |
10f2d63a VZ |
482 | verbose= |
483 | x_includes=NONE | |
484 | x_libraries=NONE | |
485 | bindir='${exec_prefix}/bin' | |
486 | sbindir='${exec_prefix}/sbin' | |
487 | libexecdir='${exec_prefix}/libexec' | |
488 | datadir='${prefix}/share' | |
489 | sysconfdir='${prefix}/etc' | |
490 | sharedstatedir='${prefix}/com' | |
491 | localstatedir='${prefix}/var' | |
492 | libdir='${exec_prefix}/lib' | |
493 | includedir='${prefix}/include' | |
494 | oldincludedir='/usr/include' | |
495 | infodir='${prefix}/info' | |
496 | mandir='${prefix}/man' | |
497 | ||
a0b9e27f MB |
498 | # Initialize some other variables. |
499 | subdirs= | |
500 | MFLAGS= MAKEFLAGS= | |
501 | SHELL=${CONFIG_SHELL-/bin/sh} | |
502 | # Maximum number of lines to put in a shell here document. | |
503 | ac_max_here_lines=12 | |
504 | ||
10f2d63a VZ |
505 | ac_prev= |
506 | for ac_option | |
507 | do | |
a0b9e27f | 508 | |
10f2d63a VZ |
509 | # If the previous option needs an argument, assign it. |
510 | if test -n "$ac_prev"; then | |
511 | eval "$ac_prev=\$ac_option" | |
512 | ac_prev= | |
513 | continue | |
514 | fi | |
515 | ||
a0b9e27f MB |
516 | case "$ac_option" in |
517 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
518 | *) ac_optarg= ;; | |
519 | esac | |
10f2d63a VZ |
520 | |
521 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
522 | ||
a0b9e27f | 523 | case "$ac_option" in |
10f2d63a VZ |
524 | |
525 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
526 | ac_prev=bindir ;; | |
527 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
a0b9e27f | 528 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
529 | |
530 | -build | --build | --buil | --bui | --bu) | |
a0b9e27f | 531 | ac_prev=build ;; |
10f2d63a | 532 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
a0b9e27f | 533 | build="$ac_optarg" ;; |
10f2d63a VZ |
534 | |
535 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
536 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
537 | ac_prev=cache_file ;; | |
538 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
539 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
a0b9e27f | 540 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
541 | |
542 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
543 | ac_prev=datadir ;; | |
544 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
545 | | --da=*) | |
a0b9e27f | 546 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
547 | |
548 | -disable-* | --disable-*) | |
a0b9e27f | 549 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 550 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
551 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
552 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
553 | fi | |
554 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
555 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
556 | |
557 | -enable-* | --enable-*) | |
a0b9e27f | 558 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 559 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
560 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
561 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
562 | fi | |
563 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
564 | case "$ac_option" in | |
565 | *=*) ;; | |
10f2d63a VZ |
566 | *) ac_optarg=yes ;; |
567 | esac | |
a0b9e27f | 568 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
569 | |
570 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
571 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
572 | | --exec | --exe | --ex) | |
573 | ac_prev=exec_prefix ;; | |
574 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
575 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
576 | | --exec=* | --exe=* | --ex=*) | |
a0b9e27f | 577 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
578 | |
579 | -gas | --gas | --ga | --g) | |
580 | # Obsolete; use --with-gas. | |
581 | with_gas=yes ;; | |
582 | ||
a0b9e27f MB |
583 | -help | --help | --hel | --he) |
584 | # Omit some internal or obsolete options to make the list less imposing. | |
585 | # This message is too long to be a string in the A/UX 3.1 sh. | |
586 | cat << EOF | |
587 | Usage: configure [options] [host] | |
588 | Options: [defaults in brackets after descriptions] | |
589 | Configuration: | |
590 | --cache-file=FILE cache test results in FILE | |
591 | --help print this message | |
592 | --no-create do not create output files | |
593 | --quiet, --silent do not print \`checking...' messages | |
594 | --version print the version of autoconf that created configure | |
595 | Directory and file names: | |
596 | --prefix=PREFIX install architecture-independent files in PREFIX | |
597 | [$ac_default_prefix] | |
598 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
599 | [same as prefix] | |
600 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
601 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
602 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
603 | --datadir=DIR read-only architecture-independent data in DIR | |
604 | [PREFIX/share] | |
605 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
606 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
607 | [PREFIX/com] | |
608 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
609 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
610 | --includedir=DIR C header files in DIR [PREFIX/include] | |
611 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
612 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
613 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
614 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
615 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
616 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
617 | --program-transform-name=PROGRAM | |
618 | run sed PROGRAM on installed program names | |
619 | EOF | |
620 | cat << EOF | |
621 | Host type: | |
622 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
623 | --host=HOST configure for HOST [guessed] | |
624 | --target=TARGET configure for TARGET [TARGET=HOST] | |
625 | Features and packages: | |
626 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
627 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
628 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
629 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
630 | --x-includes=DIR X include files are in DIR | |
631 | --x-libraries=DIR X library files are in DIR | |
632 | EOF | |
633 | if test -n "$ac_help"; then | |
634 | echo "--enable and --with options recognized:$ac_help" | |
635 | fi | |
636 | exit 0 ;; | |
10f2d63a VZ |
637 | |
638 | -host | --host | --hos | --ho) | |
a0b9e27f | 639 | ac_prev=host ;; |
10f2d63a | 640 | -host=* | --host=* | --hos=* | --ho=*) |
a0b9e27f | 641 | host="$ac_optarg" ;; |
10f2d63a VZ |
642 | |
643 | -includedir | --includedir | --includedi | --included | --include \ | |
644 | | --includ | --inclu | --incl | --inc) | |
645 | ac_prev=includedir ;; | |
646 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
647 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
a0b9e27f | 648 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
649 | |
650 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
651 | ac_prev=infodir ;; | |
652 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
a0b9e27f | 653 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
654 | |
655 | -libdir | --libdir | --libdi | --libd) | |
656 | ac_prev=libdir ;; | |
657 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
a0b9e27f | 658 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
659 | |
660 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
661 | | --libexe | --libex | --libe) | |
662 | ac_prev=libexecdir ;; | |
663 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
664 | | --libexe=* | --libex=* | --libe=*) | |
a0b9e27f | 665 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
666 | |
667 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
668 | | --localstate | --localstat | --localsta | --localst \ | |
669 | | --locals | --local | --loca | --loc | --lo) | |
670 | ac_prev=localstatedir ;; | |
671 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
672 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
673 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
a0b9e27f | 674 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
675 | |
676 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
677 | ac_prev=mandir ;; | |
678 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
a0b9e27f | 679 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
680 | |
681 | -nfp | --nfp | --nf) | |
682 | # Obsolete; use --without-fp. | |
683 | with_fp=no ;; | |
684 | ||
685 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
a0b9e27f | 686 | | --no-cr | --no-c) |
10f2d63a VZ |
687 | no_create=yes ;; |
688 | ||
689 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
690 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
691 | no_recursion=yes ;; | |
692 | ||
693 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
694 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
695 | | --oldin | --oldi | --old | --ol | --o) | |
696 | ac_prev=oldincludedir ;; | |
697 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
698 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
699 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
a0b9e27f | 700 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
701 | |
702 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
703 | ac_prev=prefix ;; | |
704 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
a0b9e27f | 705 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
706 | |
707 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
708 | | --program-pre | --program-pr | --program-p) | |
709 | ac_prev=program_prefix ;; | |
710 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
711 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
a0b9e27f | 712 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
713 | |
714 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
715 | | --program-suf | --program-su | --program-s) | |
716 | ac_prev=program_suffix ;; | |
717 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
718 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
a0b9e27f | 719 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
720 | |
721 | -program-transform-name | --program-transform-name \ | |
722 | | --program-transform-nam | --program-transform-na \ | |
723 | | --program-transform-n | --program-transform- \ | |
724 | | --program-transform | --program-transfor \ | |
725 | | --program-transfo | --program-transf \ | |
726 | | --program-trans | --program-tran \ | |
727 | | --progr-tra | --program-tr | --program-t) | |
728 | ac_prev=program_transform_name ;; | |
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=*) | |
a0b9e27f | 736 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
737 | |
738 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
739 | | -silent | --silent | --silen | --sile | --sil) | |
740 | silent=yes ;; | |
741 | ||
742 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
743 | ac_prev=sbindir ;; | |
744 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
745 | | --sbi=* | --sb=*) | |
a0b9e27f | 746 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
747 | |
748 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
749 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
750 | | --sharedst | --shareds | --shared | --share | --shar \ | |
751 | | --sha | --sh) | |
752 | ac_prev=sharedstatedir ;; | |
753 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
754 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
755 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
756 | | --sha=* | --sh=*) | |
a0b9e27f | 757 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
758 | |
759 | -site | --site | --sit) | |
760 | ac_prev=site ;; | |
761 | -site=* | --site=* | --sit=*) | |
a0b9e27f | 762 | site="$ac_optarg" ;; |
10f2d63a VZ |
763 | |
764 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
765 | ac_prev=srcdir ;; | |
766 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
a0b9e27f | 767 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
768 | |
769 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
770 | | --syscon | --sysco | --sysc | --sys | --sy) | |
771 | ac_prev=sysconfdir ;; | |
772 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
773 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
a0b9e27f | 774 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
775 | |
776 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
a0b9e27f | 777 | ac_prev=target ;; |
10f2d63a | 778 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
a0b9e27f | 779 | target="$ac_optarg" ;; |
10f2d63a VZ |
780 | |
781 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
782 | verbose=yes ;; | |
783 | ||
a0b9e27f MB |
784 | -version | --version | --versio | --versi | --vers) |
785 | echo "configure generated by autoconf version 2.13" | |
786 | exit 0 ;; | |
10f2d63a VZ |
787 | |
788 | -with-* | --with-*) | |
a0b9e27f | 789 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 790 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
791 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
792 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
793 | fi | |
10f2d63a | 794 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
a0b9e27f MB |
795 | case "$ac_option" in |
796 | *=*) ;; | |
10f2d63a VZ |
797 | *) ac_optarg=yes ;; |
798 | esac | |
a0b9e27f | 799 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
800 | |
801 | -without-* | --without-*) | |
a0b9e27f | 802 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 803 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
804 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
805 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
806 | fi | |
807 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
808 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
809 | |
810 | --x) | |
811 | # Obsolete; use --with-x. | |
812 | with_x=yes ;; | |
813 | ||
814 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
815 | | --x-incl | --x-inc | --x-in | --x-i) | |
816 | ac_prev=x_includes ;; | |
817 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
818 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
a0b9e27f | 819 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
820 | |
821 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
822 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
823 | ac_prev=x_libraries ;; | |
824 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
825 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
a0b9e27f | 826 | x_libraries="$ac_optarg" ;; |
10f2d63a | 827 | |
a0b9e27f | 828 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
829 | ;; |
830 | ||
831 | *) | |
a0b9e27f MB |
832 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
833 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
834 | fi | |
835 | if test "x$nonopt" != xNONE; then | |
836 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
837 | fi | |
838 | nonopt="$ac_option" | |
10f2d63a VZ |
839 | ;; |
840 | ||
841 | esac | |
842 | done | |
843 | ||
844 | if test -n "$ac_prev"; then | |
a0b9e27f | 845 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
8284b0c5 | 846 | fi |
8284b0c5 | 847 | |
a0b9e27f MB |
848 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
849 | ||
850 | # File descriptor usage: | |
851 | # 0 standard input | |
852 | # 1 file creation | |
853 | # 2 errors and warnings | |
854 | # 3 some systems may open it to /dev/tty | |
855 | # 4 used on the Kubota Titan | |
856 | # 6 checking for... messages and results | |
857 | # 5 compiler messages saved in config.log | |
858 | if test "$silent" = yes; then | |
859 | exec 6>/dev/null | |
860 | else | |
861 | exec 6>&1 | |
862 | fi | |
863 | exec 5>./config.log | |
864 | ||
865 | echo "\ | |
866 | This file contains any messages produced by compilers while | |
867 | running configure, to aid debugging if configure makes a mistake. | |
868 | " 1>&5 | |
8284b0c5 | 869 | |
a0b9e27f MB |
870 | # Strip out --no-create and --no-recursion so they do not pile up. |
871 | # Also quote any args containing shell metacharacters. | |
872 | ac_configure_args= | |
873 | for ac_arg | |
10f2d63a | 874 | do |
a0b9e27f MB |
875 | case "$ac_arg" in |
876 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
877 | | --no-cr | --no-c) ;; | |
878 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
879 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
880 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
881 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
882 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
883 | esac |
884 | done | |
885 | ||
a0b9e27f MB |
886 | # NLS nuisances. |
887 | # Only set these to C if already set. These must not be set unconditionally | |
888 | # because not all systems understand e.g. LANG=C (notably SCO). | |
889 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
890 | # Non-C LC_CTYPE values break the ctype check. | |
891 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
892 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
893 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
894 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
247f5006 | 895 | |
a0b9e27f MB |
896 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
897 | rm -rf conftest* confdefs.h | |
898 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
899 | echo > confdefs.h | |
10f2d63a | 900 | |
a0b9e27f MB |
901 | # A filename unique to this package, relative to the directory that |
902 | # configure is in, which we can look for to find out if srcdir is correct. | |
903 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
904 | |
905 | # Find the source files, if location was not specified. | |
906 | if test -z "$srcdir"; then | |
907 | ac_srcdir_defaulted=yes | |
908 | # Try the directory containing this script, then its parent. | |
a0b9e27f MB |
909 | ac_prog=$0 |
910 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
911 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
10f2d63a VZ |
912 | srcdir=$ac_confdir |
913 | if test ! -r $srcdir/$ac_unique_file; then | |
914 | srcdir=.. | |
915 | fi | |
916 | else | |
917 | ac_srcdir_defaulted=no | |
918 | fi | |
919 | if test ! -r $srcdir/$ac_unique_file; then | |
920 | if test "$ac_srcdir_defaulted" = yes; then | |
a0b9e27f | 921 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 922 | else |
a0b9e27f | 923 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
924 | fi |
925 | fi | |
a0b9e27f | 926 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
328a083c | 927 | |
10f2d63a VZ |
928 | # Prefer explicitly selected file to automatically selected ones. |
929 | if test -z "$CONFIG_SITE"; then | |
930 | if test "x$prefix" != xNONE; then | |
931 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
932 | else | |
933 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
934 | fi | |
935 | fi | |
936 | for ac_site_file in $CONFIG_SITE; do | |
937 | if test -r "$ac_site_file"; then | |
a0b9e27f | 938 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
939 | . "$ac_site_file" |
940 | fi | |
941 | done | |
942 | ||
943 | if test -r "$cache_file"; then | |
a0b9e27f MB |
944 | echo "loading cache $cache_file" |
945 | . $cache_file | |
10f2d63a | 946 | else |
a0b9e27f MB |
947 | echo "creating cache $cache_file" |
948 | > $cache_file | |
10f2d63a VZ |
949 | fi |
950 | ||
951 | ac_ext=c | |
a0b9e27f | 952 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 953 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
954 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
955 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
956 | cross_compiling=$ac_cv_prog_cc_cross | |
957 | ||
958 | ac_exeext= | |
959 | ac_objext=o | |
960 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
961 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
962 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
963 | ac_n= ac_c=' | |
964 | ' ac_t=' ' | |
965 | else | |
966 | ac_n=-n ac_c= ac_t= | |
967 | fi | |
968 | else | |
969 | ac_n= ac_c='\c' ac_t= | |
970 | fi | |
8284b0c5 MB |
971 | |
972 | ||
10f2d63a | 973 | |
7c66a493 VZ |
974 | ac_aux_dir= |
975 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
976 | if test -f $ac_dir/install-sh; then | |
977 | ac_aux_dir=$ac_dir | |
978 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
979 | break | |
980 | elif test -f $ac_dir/install.sh; then | |
981 | ac_aux_dir=$ac_dir | |
982 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
983 | break | |
247f5006 | 984 | fi |
7c66a493 VZ |
985 | done |
986 | if test -z "$ac_aux_dir"; then | |
a0b9e27f | 987 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 988 | fi |
a0b9e27f MB |
989 | ac_config_guess=$ac_aux_dir/config.guess |
990 | ac_config_sub=$ac_aux_dir/config.sub | |
991 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
698dcdb6 | 992 | |
8284b0c5 | 993 | |
a0b9e27f MB |
994 | # Do some error checking and defaulting for the host and target type. |
995 | # The inputs are: | |
996 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
997 | # | |
998 | # The rules are: | |
999 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
1000 | # same time. | |
1001 | # 2. Host defaults to nonopt. | |
1002 | # 3. If nonopt is not specified, then host defaults to the current host, | |
1003 | # as determined by config.guess. | |
1004 | # 4. Target and build default to nonopt. | |
1005 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
1006 | |
1007 | # The aliases save the names the user supplied, while $host etc. | |
1008 | # will get canonicalized. | |
a0b9e27f MB |
1009 | case $host---$target---$nonopt in |
1010 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
1011 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
1012 | esac | |
1013 | ||
1014 | ||
1015 | # Make sure we can run config.sub. | |
1016 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1017 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1018 | fi | |
1019 | ||
1020 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
7bb2947d | 1021 | echo "configure:1022: checking host system type" >&5 |
a0b9e27f MB |
1022 | |
1023 | host_alias=$host | |
1024 | case "$host_alias" in | |
1025 | NONE) | |
1026 | case $nonopt in | |
1027 | NONE) | |
1028 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1029 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1030 | fi ;; | |
1031 | *) host_alias=$nonopt ;; | |
1032 | esac ;; | |
1033 | esac | |
1034 | ||
1035 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1036 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1037 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1038 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1039 | echo "$ac_t""$host" 1>&6 | |
1040 | ||
1041 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
7bb2947d | 1042 | echo "configure:1043: checking target system type" >&5 |
a0b9e27f MB |
1043 | |
1044 | target_alias=$target | |
1045 | case "$target_alias" in | |
1046 | NONE) | |
1047 | case $nonopt in | |
1048 | NONE) target_alias=$host_alias ;; | |
1049 | *) target_alias=$nonopt ;; | |
1050 | esac ;; | |
1051 | esac | |
1052 | ||
1053 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1054 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1055 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1056 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1057 | echo "$ac_t""$target" 1>&6 | |
1058 | ||
1059 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
7bb2947d | 1060 | echo "configure:1061: checking build system type" >&5 |
a0b9e27f MB |
1061 | |
1062 | build_alias=$build | |
1063 | case "$build_alias" in | |
1064 | NONE) | |
1065 | case $nonopt in | |
1066 | NONE) build_alias=$host_alias ;; | |
1067 | *) build_alias=$nonopt ;; | |
1068 | esac ;; | |
1069 | esac | |
1070 | ||
1071 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1072 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1073 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1074 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1075 | echo "$ac_t""$build" 1>&6 | |
1076 | ||
1077 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1078 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1079 | NONENONEs,x,x, && | |
1080 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1081 | |
1082 | ||
a0b9e27f | 1083 | |
10f2d63a | 1084 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 VZ |
1085 | WX_MINOR_VERSION_NUMBER=5 |
1086 | WX_RELEASE_NUMBER=0 | |
10f2d63a | 1087 | |
10f2d63a | 1088 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1089 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1090 | |
978f1259 RL |
1091 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1092 | ||
34bed6d9 | 1093 | WX_CURRENT=0 |
6426998c RL |
1094 | WX_REVISION=0 |
1095 | WX_AGE=0 | |
1096 | ||
8284b0c5 MB |
1097 | |
1098 | ||
10f2d63a VZ |
1099 | USE_UNIX=1 |
1100 | USE_WIN32=0 | |
f9bc1684 | 1101 | USE_DOS=0 |
b12915c1 | 1102 | USE_BEOS=0 |
1216f52d | 1103 | USE_MAC=0 |
b12915c1 | 1104 | |
10f2d63a | 1105 | USE_AIX= |
10f2d63a | 1106 | USE_BSD= |
f11bdd03 | 1107 | USE_DARWIN= |
10f2d63a | 1108 | USE_FREEBSD= |
89e3b3e4 VZ |
1109 | USE_HPUX= |
1110 | USE_LINUX= | |
f6bcfd97 | 1111 | USE_NETBSD= |
89e3b3e4 VZ |
1112 | USE_OPENBSD= |
1113 | USE_OSF= | |
1114 | USE_SGI= | |
1115 | USE_SOLARIS= | |
1116 | USE_SUN= | |
1117 | USE_SUNOS= | |
1118 | USE_SVR4= | |
1119 | USE_SYSV= | |
10f2d63a VZ |
1120 | USE_VMS= |
1121 | USE_ULTRIX= | |
89e3b3e4 VZ |
1122 | USE_UNIXWARE= |
1123 | ||
1124 | USE_ALPHA= | |
10f2d63a | 1125 | |
ab9b9eab VZ |
1126 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1127 | ||
ac0c4cc3 | 1128 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a | 1129 | |
ac0c4cc3 | 1130 | DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1131 | DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1132 | DEFAULT_wxUSE_MAC=0 |
1133 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1134 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1135 | DEFAULT_wxUSE_MOTIF=0 |
1136 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1137 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1138 | DEFAULT_wxUSE_X11=0 |
10f2d63a | 1139 | |
ac0c4cc3 | 1140 | DEFAULT_DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1141 | DEFAULT_DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1142 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1143 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1144 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1145 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1146 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1147 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1148 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1149 | |
d6a55c4b | 1150 | PROGRAM_EXT= |
3a922bb4 | 1151 | SO_SUFFIX=so |
d6a55c4b | 1152 | |
10f2d63a VZ |
1153 | case "${host}" in |
1154 | *-hp-hpux* ) | |
1155 | USE_HPUX=1 | |
1156 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1157 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1158 | SO_SUFFIX=sl |
a0b9e27f | 1159 | cat >> confdefs.h <<\EOF |
10f2d63a | 1160 | #define __HPUX__ 1 |
a0b9e27f | 1161 | EOF |
10f2d63a VZ |
1162 | |
1163 | ;; | |
1164 | *-*-linux* ) | |
1165 | USE_LINUX=1 | |
a0b9e27f | 1166 | cat >> confdefs.h <<\EOF |
10f2d63a | 1167 | #define __LINUX__ 1 |
a0b9e27f | 1168 | EOF |
10f2d63a VZ |
1169 | |
1170 | TMP=`uname -m` | |
1171 | if test "x$TMP" = "xalpha"; then | |
1172 | USE_ALPHA=1 | |
a0b9e27f | 1173 | cat >> confdefs.h <<\EOF |
10f2d63a | 1174 | #define __ALPHA__ 1 |
a0b9e27f | 1175 | EOF |
10f2d63a VZ |
1176 | |
1177 | fi | |
1178 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1179 | ;; | |
1180 | *-*-irix5* | *-*-irix6* ) | |
1181 | USE_SGI=1 | |
1182 | USE_SVR4=1 | |
a0b9e27f | 1183 | cat >> confdefs.h <<\EOF |
10f2d63a | 1184 | #define __SGI__ 1 |
a0b9e27f | 1185 | EOF |
10f2d63a | 1186 | |
a0b9e27f | 1187 | cat >> confdefs.h <<\EOF |
10f2d63a | 1188 | #define __SVR4__ 1 |
a0b9e27f | 1189 | EOF |
10f2d63a VZ |
1190 | |
1191 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1192 | ;; | |
1193 | *-*-solaris2* ) | |
1194 | USE_SUN=1 | |
1195 | USE_SOLARIS=1 | |
1196 | USE_SVR4=1 | |
a0b9e27f | 1197 | cat >> confdefs.h <<\EOF |
10f2d63a | 1198 | #define __SUN__ 1 |
a0b9e27f | 1199 | EOF |
10f2d63a | 1200 | |
a0b9e27f | 1201 | cat >> confdefs.h <<\EOF |
10f2d63a | 1202 | #define __SOLARIS__ 1 |
a0b9e27f | 1203 | EOF |
10f2d63a | 1204 | |
a0b9e27f | 1205 | cat >> confdefs.h <<\EOF |
10f2d63a | 1206 | #define __SVR4__ 1 |
a0b9e27f | 1207 | EOF |
10f2d63a VZ |
1208 | |
1209 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1210 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1211 | ;; |
1212 | *-*-sunos4* ) | |
1213 | USE_SUN=1 | |
1214 | USE_SUNOS=1 | |
1215 | USE_BSD=1 | |
a0b9e27f | 1216 | cat >> confdefs.h <<\EOF |
10f2d63a | 1217 | #define __SUN__ 1 |
a0b9e27f | 1218 | EOF |
10f2d63a | 1219 | |
a0b9e27f | 1220 | cat >> confdefs.h <<\EOF |
10f2d63a | 1221 | #define __SUNOS__ 1 |
a0b9e27f | 1222 | EOF |
10f2d63a | 1223 | |
a0b9e27f | 1224 | cat >> confdefs.h <<\EOF |
10f2d63a | 1225 | #define __BSD__ 1 |
a0b9e27f | 1226 | EOF |
10f2d63a VZ |
1227 | |
1228 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1229 | ;; | |
f6bcfd97 | 1230 | *-*-freebsd*) |
10f2d63a VZ |
1231 | USE_BSD=1 |
1232 | USE_FREEBSD=1 | |
a0b9e27f | 1233 | cat >> confdefs.h <<\EOF |
10f2d63a | 1234 | #define __FREEBSD__ 1 |
a0b9e27f | 1235 | EOF |
10f2d63a | 1236 | |
a0b9e27f | 1237 | cat >> confdefs.h <<\EOF |
10f2d63a | 1238 | #define __BSD__ 1 |
a0b9e27f | 1239 | EOF |
95c8801c VS |
1240 | |
1241 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1242 | ;; | |
1243 | *-*-openbsd*) | |
1244 | USE_BSD=1 | |
1245 | USE_OPENBSD=1 | |
a0b9e27f | 1246 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1247 | #define __OPENBSD__ 1 |
a0b9e27f | 1248 | EOF |
95c8801c | 1249 | |
a0b9e27f | 1250 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1251 | #define __BSD__ 1 |
a0b9e27f | 1252 | EOF |
f6bcfd97 BP |
1253 | |
1254 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1255 | ;; | |
1256 | *-*-netbsd*) | |
1257 | USE_BSD=1 | |
1258 | USE_NETBSD=1 | |
a0b9e27f | 1259 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1260 | #define __NETBSD__ 1 |
a0b9e27f | 1261 | EOF |
f6bcfd97 | 1262 | |
a0b9e27f | 1263 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1264 | #define __BSD__ 1 |
a0b9e27f | 1265 | EOF |
10f2d63a VZ |
1266 | |
1267 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1268 | ;; | |
1269 | *-*-osf* ) | |
1270 | USE_ALPHA=1 | |
1271 | USE_OSF=1 | |
a0b9e27f | 1272 | cat >> confdefs.h <<\EOF |
10f2d63a | 1273 | #define __ALPHA__ 1 |
a0b9e27f | 1274 | EOF |
10f2d63a | 1275 | |
a0b9e27f | 1276 | cat >> confdefs.h <<\EOF |
10f2d63a | 1277 | #define __OSF__ 1 |
a0b9e27f | 1278 | EOF |
10f2d63a VZ |
1279 | |
1280 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1281 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1282 | ;; |
1283 | *-*-dgux5* ) | |
1284 | USE_ALPHA=1 | |
1285 | USE_SVR4=1 | |
a0b9e27f | 1286 | cat >> confdefs.h <<\EOF |
10f2d63a | 1287 | #define __ALPHA__ 1 |
a0b9e27f | 1288 | EOF |
10f2d63a | 1289 | |
a0b9e27f | 1290 | cat >> confdefs.h <<\EOF |
10f2d63a | 1291 | #define __SVR4__ 1 |
a0b9e27f | 1292 | EOF |
10f2d63a VZ |
1293 | |
1294 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1295 | ;; | |
1296 | *-*-sysv5* ) | |
1297 | USE_SYSV=1 | |
1298 | USE_SVR4=1 | |
a0b9e27f | 1299 | cat >> confdefs.h <<\EOF |
10f2d63a | 1300 | #define __SYSV__ 1 |
a0b9e27f | 1301 | EOF |
10f2d63a | 1302 | |
a0b9e27f | 1303 | cat >> confdefs.h <<\EOF |
10f2d63a | 1304 | #define __SVR4__ 1 |
a0b9e27f | 1305 | EOF |
10f2d63a VZ |
1306 | |
1307 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1308 | ;; | |
1309 | *-*-aix* ) | |
1310 | USE_AIX=1 | |
1311 | USE_SYSV=1 | |
1312 | USE_SVR4=1 | |
2b5f62a0 | 1313 | SO_SUFFIX=a |
a0b9e27f | 1314 | cat >> confdefs.h <<\EOF |
10f2d63a | 1315 | #define __AIX__ 1 |
a0b9e27f | 1316 | EOF |
10f2d63a | 1317 | |
a0b9e27f | 1318 | cat >> confdefs.h <<\EOF |
10f2d63a | 1319 | #define __SYSV__ 1 |
a0b9e27f | 1320 | EOF |
10f2d63a | 1321 | |
a0b9e27f | 1322 | cat >> confdefs.h <<\EOF |
10f2d63a | 1323 | #define __SVR4__ 1 |
a0b9e27f | 1324 | EOF |
10f2d63a VZ |
1325 | |
1326 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1327 | ;; | |
1328 | ||
89e3b3e4 VZ |
1329 | *-*-*UnixWare*) |
1330 | USE_SYSV=1 | |
1331 | USE_SVR4=1 | |
1332 | USE_UNIXWARE=1 | |
1333 | cat >> confdefs.h <<\EOF | |
1334 | #define __UNIXWARE__ 1 | |
1335 | EOF | |
1336 | ||
1337 | ;; | |
1338 | ||
1c8183e2 | 1339 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1340 | SO_SUFFIX=dll |
cf27ef00 | 1341 | PROGRAM_EXT=".exe" |
7b7a7637 | 1342 | RESCOMP=windres |
10f2d63a VZ |
1343 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1344 | ;; | |
1345 | ||
f9bc1684 VS |
1346 | *-pc-msdosdjgpp ) |
1347 | USE_UNIX=0 | |
1348 | USE_DOS=1 | |
a0b9e27f | 1349 | cat >> confdefs.h <<\EOF |
f9bc1684 | 1350 | #define __DOS__ 1 |
a0b9e27f | 1351 | EOF |
f9bc1684 VS |
1352 | |
1353 | PROGRAM_EXT=".exe" | |
1354 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1355 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1356 | ;; |
1357 | ||
6fa882bd | 1358 | *-pc-os2_emx | *-pc-os2-emx ) |
a0b9e27f | 1359 | cat >> confdefs.h <<\EOF |
10f2d63a | 1360 | #define __EMX__ 1 |
a0b9e27f | 1361 | EOF |
10f2d63a | 1362 | |
cf27ef00 | 1363 | PROGRAM_EXT=".exe" |
e07802fc | 1364 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1365 | ;; |
1366 | ||
d08b457b GD |
1367 | powerpc-*-darwin* ) |
1368 | USE_BSD=1 | |
f11bdd03 | 1369 | USE_DARWIN=1 |
3a922bb4 | 1370 | SO_SUFFIX=dylib |
a0b9e27f | 1371 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1372 | #define __BSD__ 1 |
a0b9e27f | 1373 | EOF |
b4085ce6 | 1374 | |
a0b9e27f | 1375 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1376 | #define __DARWIN__ 1 |
a0b9e27f | 1377 | EOF |
d08b457b | 1378 | |
a0b9e27f | 1379 | cat >> confdefs.h <<\EOF |
d08b457b | 1380 | #define __POWERPC__ 1 |
82d43113 GD |
1381 | EOF |
1382 | ||
1383 | cat >> confdefs.h <<\EOF | |
1384 | #define TARGET_CARBON 1 | |
a0b9e27f | 1385 | EOF |
b4085ce6 GD |
1386 | |
1387 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1388 | ;; | |
1389 | ||
b12915c1 VZ |
1390 | *-*-beos* ) |
1391 | USE_BEOS=1 | |
a0b9e27f | 1392 | cat >> confdefs.h <<\EOF |
b12915c1 | 1393 | #define __BEOS__ 1 |
a0b9e27f | 1394 | EOF |
b12915c1 VZ |
1395 | |
1396 | ;; | |
1397 | ||
10f2d63a | 1398 | *) |
a0b9e27f | 1399 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1400 | esac |
1401 | ||
8284b0c5 MB |
1402 | |
1403 | ||
1404 | ||
1405 | wx_arg_cache_file="configarg.cache" | |
1406 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1407 | rm -f ${wx_arg_cache_file}.tmp |
1408 | touch ${wx_arg_cache_file}.tmp | |
1409 | touch ${wx_arg_cache_file} | |
a0b9e27f | 1410 | |
10f2d63a VZ |
1411 | |
1412 | DEBUG_CONFIGURE=0 | |
1413 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1414 | DEFAULT_wxUSE_UNIVERSAL=no |
1415 | ||
d8356fa3 VZ |
1416 | DEFAULT_wxUSE_NANOX=no |
1417 | ||
10f2d63a VZ |
1418 | DEFAULT_wxUSE_THREADS=yes |
1419 | ||
1420 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1421 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1422 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1423 | DEFAULT_wxUSE_PROFILE=no |
1424 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1425 | DEFAULT_wxUSE_NO_RTTI=no |
1426 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1427 | DEFAULT_wxUSE_PERMISSIVE=no |
1428 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1429 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1430 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1431 | DEFAULT_wxUSE_MEM_TRACING=no | |
1432 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1433 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1434 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1435 | DEFAULT_wxUSE_APPLE_IEEE=no |
1436 | ||
1437 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1438 | DEFAULT_wxUSE_LOGWINDOW=no |
1439 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1440 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1441 | |
1442 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1443 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1444 | |
3e44f09d | 1445 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1446 | DEFAULT_wxUSE_ZLIB=no |
1447 | DEFAULT_wxUSE_LIBPNG=no | |
1448 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1449 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1450 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1451 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1452 | |
eb4efbdc | 1453 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1454 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1455 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1456 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1457 | DEFAULT_wxUSE_DATETIME=no | |
1e6feb95 VZ |
1458 | DEFAULT_wxUSE_TIMER=no |
1459 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1460 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1461 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1462 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1463 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1464 | DEFAULT_wxUSE_WAVE=no |
1465 | DEFAULT_wxUSE_INTL=no | |
1466 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1467 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1468 | DEFAULT_wxUSE_STREAMS=no |
1469 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
1470 | DEFAULT_wxUSE_OLE=no |
1471 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 1472 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 1473 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1474 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1475 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1476 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1477 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1478 | |
1479 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1480 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1481 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1482 | ||
10f2d63a VZ |
1483 | DEFAULT_wxUSE_CLIPBOARD=no |
1484 | DEFAULT_wxUSE_TOOLTIPS=no | |
1485 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1486 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1487 | DEFAULT_wxUSE_SPLINES=no |
1488 | ||
1489 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1490 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1491 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1492 | ||
10f2d63a VZ |
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 | |
10f2d63a VZ |
1546 | DEFAULT_wxUSE_IMAGLIST=no |
1547 | DEFAULT_wxUSE_LISTBOX=no | |
1548 | DEFAULT_wxUSE_LISTCTRL=no | |
1549 | DEFAULT_wxUSE_NOTEBOOK=no | |
1550 | DEFAULT_wxUSE_RADIOBOX=no | |
1551 | DEFAULT_wxUSE_RADIOBTN=no | |
1552 | DEFAULT_wxUSE_SASH=no | |
1553 | DEFAULT_wxUSE_SCROLLBAR=no | |
1554 | DEFAULT_wxUSE_SLIDER=no | |
1555 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1556 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1557 | DEFAULT_wxUSE_SPLITTER=no |
1558 | DEFAULT_wxUSE_STATBMP=no | |
1559 | DEFAULT_wxUSE_STATBOX=no | |
1560 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1561 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1562 | DEFAULT_wxUSE_STATUSBAR=yes |
1563 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1564 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1565 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1566 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1567 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1568 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1569 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1570 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1571 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1572 | |
1573 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1574 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1575 | DEFAULT_wxUSE_WCSRTOMBS=no |
1576 | ||
edae8572 | 1577 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1578 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1579 | DEFAULT_wxUSE_GIF=no |
1580 | DEFAULT_wxUSE_PCX=no | |
1581 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1582 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1583 | DEFAULT_wxUSE_XPM=no |
658974ae | 1584 | DEFAULT_wxUSE_ICO_CUR=no |
7bb2947d | 1585 | DEFAULT_wxUSE_ACCESSIBILITY=no |
10f2d63a | 1586 | else |
1e6feb95 VZ |
1587 | DEFAULT_wxUSE_UNIVERSAL=no |
1588 | ||
d8356fa3 VZ |
1589 | DEFAULT_wxUSE_NANOX=no |
1590 | ||
10f2d63a VZ |
1591 | DEFAULT_wxUSE_THREADS=yes |
1592 | ||
1593 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1594 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1595 | DEFAULT_wxUSE_OPTIMISE=yes |
1596 | DEFAULT_wxUSE_PROFILE=no | |
1597 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1598 | DEFAULT_wxUSE_NO_RTTI=no |
1599 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1600 | DEFAULT_wxUSE_PERMISSIVE=no |
1601 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1602 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1603 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1604 | DEFAULT_wxUSE_MEM_TRACING=no | |
1605 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1606 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1607 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1608 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1609 | ||
1610 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1611 | DEFAULT_wxUSE_LOGWINDOW=yes |
1612 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1613 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1614 | |
1615 | DEFAULT_wxUSE_GUI=yes | |
1616 | ||
831b3152 | 1617 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1618 | DEFAULT_wxUSE_ZLIB=yes |
1619 | DEFAULT_wxUSE_LIBPNG=yes | |
1620 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1621 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1622 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1623 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1624 | |
eb4efbdc | 1625 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1626 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1627 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1628 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1629 | DEFAULT_wxUSE_DATETIME=yes | |
1e6feb95 VZ |
1630 | DEFAULT_wxUSE_TIMER=yes |
1631 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1632 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1633 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1634 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1635 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1636 | DEFAULT_wxUSE_WAVE=no |
1637 | DEFAULT_wxUSE_INTL=yes | |
1638 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1639 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1640 | DEFAULT_wxUSE_STREAMS=yes |
1641 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
1642 | DEFAULT_wxUSE_OLE=yes |
1643 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 1644 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 1645 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1646 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1647 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1648 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1649 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1650 | |
1651 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1652 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1653 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1654 | ||
10f2d63a VZ |
1655 | DEFAULT_wxUSE_CLIPBOARD=yes |
1656 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1657 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1658 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1659 | DEFAULT_wxUSE_SPLINES=yes |
1660 | ||
1661 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1662 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1663 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1664 | ||
2b5f62a0 | 1665 | DEFAULT_wxUSE_RESOURCES=no |
10f2d63a VZ |
1666 | DEFAULT_wxUSE_CONSTRAINTS=yes |
1667 | DEFAULT_wxUSE_IPC=yes | |
1668 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1669 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1670 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1671 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1672 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1673 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1674 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1675 | DEFAULT_wxUSE_PROTOCOL=yes |
1676 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1677 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1678 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1679 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1680 | |
1681 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1682 | DEFAULT_wxUSE_CHOICEDLG=yes |
1683 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1684 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1685 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1686 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1687 | DEFAULT_wxUSE_FONTDLG=yes |
1688 | DEFAULT_wxUSE_MSGDLG=yes | |
1689 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1690 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1691 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1692 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1693 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1694 | DEFAULT_wxUSE_WIZARDDLG=yes |
1695 | ||
1e6feb95 | 1696 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1697 | DEFAULT_wxUSE_MINIFRAME=yes |
1698 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1699 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1700 | DEFAULT_wxUSE_FS_INET=yes |
1701 | DEFAULT_wxUSE_FS_ZIP=yes | |
1702 | DEFAULT_wxUSE_BUSYINFO=yes | |
1703 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1704 | DEFAULT_wxUSE_VALIDATORS=yes | |
1705 | ||
1706 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1707 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1708 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1709 | DEFAULT_wxUSE_CALCTRL=yes |
1710 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1711 | DEFAULT_wxUSE_CHECKBOX=yes |
1712 | DEFAULT_wxUSE_CHECKLST=yes | |
1713 | DEFAULT_wxUSE_CHOICE=yes | |
1714 | DEFAULT_wxUSE_COMBOBOX=yes | |
da494b40 | 1715 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
1716 | DEFAULT_wxUSE_GAUGE=yes |
1717 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a VZ |
1718 | DEFAULT_wxUSE_IMAGLIST=yes |
1719 | DEFAULT_wxUSE_LISTBOX=yes | |
1720 | DEFAULT_wxUSE_LISTCTRL=yes | |
1721 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1722 | DEFAULT_wxUSE_RADIOBOX=yes | |
1723 | DEFAULT_wxUSE_RADIOBTN=yes | |
1724 | DEFAULT_wxUSE_SASH=yes | |
1725 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1726 | DEFAULT_wxUSE_SLIDER=yes | |
1727 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1728 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1729 | DEFAULT_wxUSE_SPLITTER=yes |
1730 | DEFAULT_wxUSE_STATBMP=yes | |
1731 | DEFAULT_wxUSE_STATBOX=yes | |
1732 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1733 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1734 | DEFAULT_wxUSE_STATUSBAR=yes |
1735 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1736 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1737 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1738 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1739 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1740 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1741 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1742 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1743 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1744 | |
1745 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1746 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1747 | DEFAULT_wxUSE_WCSRTOMBS=no |
1748 | ||
edae8572 | 1749 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1750 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1751 | DEFAULT_wxUSE_GIF=yes |
1752 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1753 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1754 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1755 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1756 | DEFAULT_wxUSE_ICO_CUR=yes |
7bb2947d | 1757 | DEFAULT_wxUSE_ACCESSIBILITY=no |
10f2d63a VZ |
1758 | fi |
1759 | ||
8284b0c5 MB |
1760 | |
1761 | ||
10f2d63a | 1762 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
1763 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
1764 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
1765 | has_toolkit_in_cache=1 |
1766 | eval "DEFAULT_$LINE" | |
1767 | eval "CACHE_$toolkit=1" | |
1768 | fi | |
1769 | done | |
1770 | ||
8284b0c5 MB |
1771 | |
1772 | ||
5005acfe VZ |
1773 | enablestring= |
1774 | echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6 | |
3c907f20 | 1775 | echo "configure:1776: checking for --${enablestring:-enable}-gui" >&5 |
10f2d63a VZ |
1776 | no_cache=0 |
1777 | # Check whether --enable-gui or --disable-gui was given. | |
1778 | if test "${enable_gui+set}" = set; then | |
1779 | enableval="$enable_gui" | |
a0b9e27f | 1780 | |
10f2d63a VZ |
1781 | if test "$enableval" = yes; then |
1782 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1783 | else | |
1784 | ac_cv_use_gui='wxUSE_GUI=no' | |
1785 | fi | |
a0b9e27f | 1786 | |
10f2d63a | 1787 | else |
a0b9e27f | 1788 | |
10f2d63a VZ |
1789 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1790 | if test "x$LINE" != x ; then | |
1791 | eval "DEFAULT_$LINE" | |
1792 | else | |
1793 | no_cache=1 | |
1794 | fi | |
1795 | ||
1796 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
a0b9e27f MB |
1797 | |
1798 | fi | |
10f2d63a VZ |
1799 | |
1800 | ||
1801 | eval "$ac_cv_use_gui" | |
1802 | if test "$no_cache" != 1; then | |
1803 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1804 | fi | |
1805 | ||
1806 | if test "$wxUSE_GUI" = yes; then | |
a0b9e27f | 1807 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1808 | else |
a0b9e27f | 1809 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1810 | fi |
a0b9e27f | 1811 | |
10f2d63a | 1812 | |
b12915c1 | 1813 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1814 | |
8284b0c5 | 1815 | |
5005acfe VZ |
1816 | enablestring= |
1817 | echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6 | |
3c907f20 | 1818 | echo "configure:1819: checking for --${enablestring:-enable}-universal" >&5 |
1e6feb95 VZ |
1819 | no_cache=0 |
1820 | # Check whether --enable-universal or --disable-universal was given. | |
1821 | if test "${enable_universal+set}" = set; then | |
1822 | enableval="$enable_universal" | |
a0b9e27f | 1823 | |
1e6feb95 VZ |
1824 | if test "$enableval" = yes; then |
1825 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1826 | else | |
1827 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1828 | fi | |
a0b9e27f | 1829 | |
1e6feb95 | 1830 | else |
a0b9e27f | 1831 | |
1e6feb95 VZ |
1832 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
1833 | if test "x$LINE" != x ; then | |
1834 | eval "DEFAULT_$LINE" | |
1835 | else | |
1836 | no_cache=1 | |
1837 | fi | |
1838 | ||
1839 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
a0b9e27f MB |
1840 | |
1841 | fi | |
1e6feb95 VZ |
1842 | |
1843 | ||
1844 | eval "$ac_cv_use_universal" | |
1845 | if test "$no_cache" != 1; then | |
1846 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1847 | fi | |
1848 | ||
1849 | if test "$wxUSE_UNIVERSAL" = yes; then | |
a0b9e27f | 1850 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 1851 | else |
a0b9e27f | 1852 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 1853 | fi |
a0b9e27f | 1854 | |
10f2d63a VZ |
1855 | # Check whether --with-gtk or --without-gtk was given. |
1856 | if test "${with_gtk+set}" = set; then | |
1857 | withval="$with_gtk" | |
1858 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1859 | fi |
10f2d63a VZ |
1860 | |
1861 | # Check whether --with-motif or --without-motif was given. | |
1862 | if test "${with_motif+set}" = set; then | |
1863 | withval="$with_motif" | |
1864 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1865 | fi |
10f2d63a | 1866 | |
b4085ce6 GD |
1867 | # Check whether --with-mac or --without-mac was given. |
1868 | if test "${with_mac+set}" = set; then | |
1869 | withval="$with_mac" | |
1870 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
a0b9e27f | 1871 | fi |
b4085ce6 | 1872 | |
ac0c4cc3 DE |
1873 | # Check whether --with-cocoa or --without-cocoa was given. |
1874 | if test "${with_cocoa+set}" = set; then | |
1875 | withval="$with_cocoa" | |
1876 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
1877 | fi | |
1878 | ||
10f2d63a VZ |
1879 | # Check whether --with-wine or --without-wine was given. |
1880 | if test "${with_wine+set}" = set; then | |
1881 | withval="$with_wine" | |
89e6bf6d | 1882 | wxUSE_WINE="$withval" CACHE_WINE=1 |
a0b9e27f | 1883 | fi |
10f2d63a | 1884 | |
77e13408 RL |
1885 | # Check whether --with-msw or --without-msw was given. |
1886 | if test "${with_msw+set}" = set; then | |
1887 | withval="$with_msw" | |
b4efce5e | 1888 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1889 | fi |
10f2d63a | 1890 | |
e07802fc VZ |
1891 | # Check whether --with-pm or --without-pm was given. |
1892 | if test "${with_pm+set}" = set; then | |
1893 | withval="$with_pm" | |
1894 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1895 | fi |
698dcdb6 | 1896 | |
1e6feb95 VZ |
1897 | # Check whether --with-mgl or --without-mgl was given. |
1898 | if test "${with_mgl+set}" = set; then | |
1899 | withval="$with_mgl" | |
6c657b52 | 1900 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1901 | fi |
1e6feb95 | 1902 | |
1725144d RR |
1903 | # Check whether --with-microwin or --without-microwin was given. |
1904 | if test "${with_microwin+set}" = set; then | |
1905 | withval="$with_microwin" | |
1906 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1907 | fi |
1725144d | 1908 | |
f79bd02d JS |
1909 | # Check whether --with-x11 or --without-x11 was given. |
1910 | if test "${with_x11+set}" = set; then | |
1911 | withval="$with_x11" | |
3c011993 | 1912 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1913 | fi |
10f2d63a | 1914 | |
a0b9e27f | 1915 | |
5005acfe VZ |
1916 | enablestring= |
1917 | echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6 | |
3c907f20 | 1918 | echo "configure:1919: checking for --${enablestring:-enable}-nanox" >&5 |
d8356fa3 | 1919 | no_cache=0 |
ba875e66 VZ |
1920 | # Check whether --enable-nanox or --disable-nanox was given. |
1921 | if test "${enable_nanox+set}" = set; then | |
1922 | enableval="$enable_nanox" | |
a0b9e27f | 1923 | |
d8356fa3 | 1924 | if test "$enableval" = yes; then |
ba875e66 | 1925 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1926 | else |
ba875e66 | 1927 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 1928 | fi |
a0b9e27f | 1929 | |
d8356fa3 | 1930 | else |
a0b9e27f | 1931 | |
d8356fa3 VZ |
1932 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
1933 | if test "x$LINE" != x ; then | |
1934 | eval "DEFAULT_$LINE" | |
1935 | else | |
1936 | no_cache=1 | |
1937 | fi | |
1938 | ||
ba875e66 | 1939 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
a0b9e27f MB |
1940 | |
1941 | fi | |
d8356fa3 VZ |
1942 | |
1943 | ||
ba875e66 | 1944 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1945 | if test "$no_cache" != 1; then |
ba875e66 | 1946 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1947 | fi |
1948 | ||
1949 | if test "$wxUSE_NANOX" = yes; then | |
a0b9e27f | 1950 | echo "$ac_t""yes" 1>&6 |
d8356fa3 | 1951 | else |
a0b9e27f | 1952 | echo "$ac_t""no" 1>&6 |
d8356fa3 | 1953 | fi |
a0b9e27f | 1954 | |
8284b0c5 | 1955 | |
d74f4b5a | 1956 | |
5005acfe VZ |
1957 | enablestring= |
1958 | echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6 | |
3c907f20 | 1959 | echo "configure:1960: checking for --${enablestring:-enable}-gtk2" >&5 |
d74f4b5a VZ |
1960 | no_cache=0 |
1961 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
1962 | if test "${enable_gtk2+set}" = set; then |
1963 | enableval="$enable_gtk2" | |
a0b9e27f | 1964 | |
d74f4b5a VZ |
1965 | if test "$enableval" = yes; then |
1966 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
1967 | else | |
1968 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
1969 | fi | |
a0b9e27f | 1970 | |
10f2d63a | 1971 | else |
a0b9e27f | 1972 | |
d74f4b5a VZ |
1973 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
1974 | if test "x$LINE" != x ; then | |
1975 | eval "DEFAULT_$LINE" | |
1976 | else | |
1977 | no_cache=1 | |
1978 | fi | |
1979 | ||
1980 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
a0b9e27f MB |
1981 | |
1982 | fi | |
52127426 | 1983 | |
328a083c | 1984 | |
d74f4b5a VZ |
1985 | eval "$ac_cv_use_gtk2" |
1986 | if test "$no_cache" != 1; then | |
1987 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
1988 | fi | |
1989 | ||
1990 | if test "$wxUSE_GTK2" = yes; then | |
a0b9e27f | 1991 | echo "$ac_t""yes" 1>&6 |
d74f4b5a | 1992 | else |
a0b9e27f | 1993 | echo "$ac_t""no" 1>&6 |
d74f4b5a | 1994 | fi |
a0b9e27f | 1995 | |
d74f4b5a | 1996 | |
5c6fa7d2 | 1997 | |
a0b9e27f | 1998 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
3c907f20 | 1999 | echo "configure:2000: checking for --with-libpng" >&5 |
8284b0c5 | 2000 | no_cache=0 |
a0b9e27f | 2001 | # Check whether --with-libpng or --without-libpng was given. |
b12915c1 VZ |
2002 | if test "${with_libpng+set}" = set; then |
2003 | withval="$with_libpng" | |
a0b9e27f | 2004 | |
10f2d63a | 2005 | if test "$withval" = yes; then |
b12915c1 | 2006 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2007 | elif test "$withval" = no; then |
b12915c1 | 2008 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2009 | elif test "$withval" = sys; then |
2010 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2011 | elif test "$withval" = builtin; then |
2012 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2013 | else |
a0b9e27f | 2014 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2015 | fi |
a0b9e27f | 2016 | |
10f2d63a | 2017 | else |
a0b9e27f | 2018 | |
b12915c1 | 2019 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2020 | if test "x$LINE" != x ; then |
2021 | eval "DEFAULT_$LINE" | |
2022 | else | |
2023 | no_cache=1 | |
2024 | fi | |
2025 | ||
b12915c1 | 2026 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
a0b9e27f MB |
2027 | |
2028 | fi | |
10f2d63a VZ |
2029 | |
2030 | ||
b12915c1 | 2031 | eval "$ac_cv_use_libpng" |
10f2d63a | 2032 | if test "$no_cache" != 1; then |
b12915c1 | 2033 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2034 | fi |
2035 | ||
b12915c1 | 2036 | if test "$wxUSE_LIBPNG" = yes; then |
a0b9e27f | 2037 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2038 | elif test "$wxUSE_LIBPNG" = no; then |
a0b9e27f | 2039 | echo "$ac_t""no" 1>&6 |
422107f9 | 2040 | elif test "$wxUSE_LIBPNG" = sys; then |
a0b9e27f | 2041 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2042 | elif test "$wxUSE_LIBPNG" = builtin; then |
a0b9e27f | 2043 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2044 | else |
a0b9e27f | 2045 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2046 | fi |
a0b9e27f | 2047 | |
10f2d63a | 2048 | |
a0b9e27f | 2049 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
3c907f20 | 2050 | echo "configure:2051: checking for --with-libjpeg" >&5 |
10f2d63a | 2051 | no_cache=0 |
a0b9e27f | 2052 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2053 | if test "${with_libjpeg+set}" = set; then |
2054 | withval="$with_libjpeg" | |
a0b9e27f | 2055 | |
10f2d63a | 2056 | if test "$withval" = yes; then |
b12915c1 | 2057 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2058 | elif test "$withval" = no; then |
b12915c1 | 2059 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2060 | elif test "$withval" = sys; then |
2061 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2062 | elif test "$withval" = builtin; then |
2063 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2064 | else |
a0b9e27f | 2065 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2066 | fi |
a0b9e27f | 2067 | |
10f2d63a | 2068 | else |
a0b9e27f | 2069 | |
b12915c1 | 2070 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2071 | if test "x$LINE" != x ; then |
2072 | eval "DEFAULT_$LINE" | |
2073 | else | |
2074 | no_cache=1 | |
2075 | fi | |
2076 | ||
b12915c1 | 2077 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
a0b9e27f MB |
2078 | |
2079 | fi | |
10f2d63a VZ |
2080 | |
2081 | ||
b12915c1 | 2082 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2083 | if test "$no_cache" != 1; then |
b12915c1 | 2084 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2085 | fi |
2086 | ||
b12915c1 | 2087 | if test "$wxUSE_LIBJPEG" = yes; then |
a0b9e27f | 2088 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2089 | elif test "$wxUSE_LIBJPEG" = no; then |
a0b9e27f | 2090 | echo "$ac_t""no" 1>&6 |
422107f9 | 2091 | elif test "$wxUSE_LIBJPEG" = sys; then |
a0b9e27f | 2092 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2093 | elif test "$wxUSE_LIBJPEG" = builtin; then |
a0b9e27f | 2094 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2095 | else |
a0b9e27f | 2096 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2097 | fi |
a0b9e27f | 2098 | |
10f2d63a | 2099 | |
a0b9e27f | 2100 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
3c907f20 | 2101 | echo "configure:2102: checking for --with-libtiff" >&5 |
10f2d63a | 2102 | no_cache=0 |
a0b9e27f | 2103 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2104 | if test "${with_libtiff+set}" = set; then |
2105 | withval="$with_libtiff" | |
a0b9e27f | 2106 | |
10f2d63a | 2107 | if test "$withval" = yes; then |
b12915c1 | 2108 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2109 | elif test "$withval" = no; then |
b12915c1 | 2110 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2111 | elif test "$withval" = sys; then |
2112 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2113 | elif test "$withval" = builtin; then |
2114 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2115 | else |
a0b9e27f | 2116 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2117 | fi |
a0b9e27f | 2118 | |
10f2d63a | 2119 | else |
a0b9e27f | 2120 | |
b12915c1 | 2121 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2122 | if test "x$LINE" != x ; then |
2123 | eval "DEFAULT_$LINE" | |
2124 | else | |
2125 | no_cache=1 | |
2126 | fi | |
2127 | ||
b12915c1 | 2128 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
a0b9e27f MB |
2129 | |
2130 | fi | |
10f2d63a VZ |
2131 | |
2132 | ||
b12915c1 | 2133 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2134 | if test "$no_cache" != 1; then |
b12915c1 | 2135 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2136 | fi |
2137 | ||
b12915c1 | 2138 | if test "$wxUSE_LIBTIFF" = yes; then |
a0b9e27f | 2139 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2140 | elif test "$wxUSE_LIBTIFF" = no; then |
a0b9e27f | 2141 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2142 | elif test "$wxUSE_LIBTIFF" = sys; then |
a0b9e27f | 2143 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2144 | elif test "$wxUSE_LIBTIFF" = builtin; then |
a0b9e27f | 2145 | echo "$ac_t""builtin version" 1>&6 |
0dcf9893 | 2146 | else |
a0b9e27f | 2147 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2148 | fi |
a0b9e27f | 2149 | |
10f2d63a | 2150 | |
a0b9e27f | 2151 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
3c907f20 | 2152 | echo "configure:2153: checking for --with-opengl" >&5 |
10f2d63a | 2153 | no_cache=0 |
a0b9e27f | 2154 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2155 | if test "${with_opengl+set}" = set; then |
2156 | withval="$with_opengl" | |
a0b9e27f | 2157 | |
10f2d63a | 2158 | if test "$withval" = yes; then |
b12915c1 | 2159 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2160 | else |
b12915c1 | 2161 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2162 | fi |
a0b9e27f | 2163 | |
10f2d63a | 2164 | else |
a0b9e27f | 2165 | |
b12915c1 | 2166 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2167 | if test "x$LINE" != x ; then |
2168 | eval "DEFAULT_$LINE" | |
2169 | else | |
2170 | no_cache=1 | |
2171 | fi | |
2172 | ||
b12915c1 | 2173 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
a0b9e27f MB |
2174 | |
2175 | fi | |
10f2d63a VZ |
2176 | |
2177 | ||
b12915c1 | 2178 | eval "$ac_cv_use_opengl" |
10f2d63a | 2179 | if test "$no_cache" != 1; then |
b12915c1 | 2180 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2181 | fi |
2182 | ||
b12915c1 | 2183 | if test "$wxUSE_OPENGL" = yes; then |
a0b9e27f | 2184 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2185 | else |
a0b9e27f | 2186 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2187 | fi |
a0b9e27f | 2188 | |
10f2d63a | 2189 | |
b12915c1 VZ |
2190 | fi |
2191 | ||
5c6fa7d2 | 2192 | |
a0b9e27f | 2193 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
3c907f20 | 2194 | echo "configure:2195: checking for --with-dmalloc" >&5 |
8284b0c5 | 2195 | no_cache=0 |
a0b9e27f | 2196 | # Check whether --with-dmalloc or --without-dmalloc was given. |
b12915c1 VZ |
2197 | if test "${with_dmalloc+set}" = set; then |
2198 | withval="$with_dmalloc" | |
a0b9e27f | 2199 | |
c7a2bf27 | 2200 | if test "$withval" = yes; then |
b12915c1 | 2201 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2202 | else |
b12915c1 | 2203 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2204 | fi |
a0b9e27f | 2205 | |
c7a2bf27 | 2206 | else |
a0b9e27f | 2207 | |
b12915c1 | 2208 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2209 | if test "x$LINE" != x ; then |
2210 | eval "DEFAULT_$LINE" | |
2211 | else | |
2212 | no_cache=1 | |
2213 | fi | |
2214 | ||
b12915c1 | 2215 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
a0b9e27f MB |
2216 | |
2217 | fi | |
c7a2bf27 RR |
2218 | |
2219 | ||
b12915c1 | 2220 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2221 | if test "$no_cache" != 1; then |
b12915c1 | 2222 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2223 | fi |
2224 | ||
b12915c1 | 2225 | if test "$wxUSE_DMALLOC" = yes; then |
a0b9e27f | 2226 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2227 | else |
a0b9e27f | 2228 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2229 | fi |
a0b9e27f | 2230 | |
c7a2bf27 | 2231 | |
a0b9e27f | 2232 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
3c907f20 | 2233 | echo "configure:2234: checking for --with-regex" >&5 |
3e44f09d | 2234 | no_cache=0 |
a0b9e27f | 2235 | # Check whether --with-regex or --without-regex was given. |
3e44f09d VZ |
2236 | if test "${with_regex+set}" = set; then |
2237 | withval="$with_regex" | |
a0b9e27f | 2238 | |
3e44f09d VZ |
2239 | if test "$withval" = yes; then |
2240 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2241 | elif test "$withval" = no; then | |
2242 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2243 | elif test "$withval" = sys; then | |
2244 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2245 | elif test "$withval" = builtin; then |
2246 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2247 | else |
a0b9e27f | 2248 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2249 | fi |
a0b9e27f | 2250 | |
3e44f09d | 2251 | else |
a0b9e27f | 2252 | |
3e44f09d VZ |
2253 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2254 | if test "x$LINE" != x ; then | |
2255 | eval "DEFAULT_$LINE" | |
2256 | else | |
2257 | no_cache=1 | |
2258 | fi | |
2259 | ||
2260 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
a0b9e27f MB |
2261 | |
2262 | fi | |
3e44f09d VZ |
2263 | |
2264 | ||
2265 | eval "$ac_cv_use_regex" | |
2266 | if test "$no_cache" != 1; then | |
2267 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2268 | fi | |
2269 | ||
2270 | if test "$wxUSE_REGEX" = yes; then | |
a0b9e27f | 2271 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 2272 | elif test "$wxUSE_REGEX" = no; then |
a0b9e27f | 2273 | echo "$ac_t""no" 1>&6 |
3e44f09d | 2274 | elif test "$wxUSE_REGEX" = sys; then |
a0b9e27f | 2275 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2276 | elif test "$wxUSE_REGEX" = builtin; then |
a0b9e27f | 2277 | echo "$ac_t""builtin version" 1>&6 |
3e44f09d | 2278 | else |
a0b9e27f | 2279 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2280 | fi |
a0b9e27f | 2281 | |
3e44f09d | 2282 | |
a0b9e27f | 2283 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
3c907f20 | 2284 | echo "configure:2285: checking for --with-zlib" >&5 |
10f2d63a | 2285 | no_cache=0 |
a0b9e27f | 2286 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2287 | if test "${with_zlib+set}" = set; then |
2288 | withval="$with_zlib" | |
a0b9e27f | 2289 | |
10f2d63a | 2290 | if test "$withval" = yes; then |
b12915c1 | 2291 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2292 | elif test "$withval" = no; then |
b12915c1 | 2293 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2294 | elif test "$withval" = sys; then |
2295 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2296 | elif test "$withval" = builtin; then |
2297 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2298 | else |
a0b9e27f | 2299 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2300 | fi |
a0b9e27f | 2301 | |
10f2d63a | 2302 | else |
a0b9e27f | 2303 | |
b12915c1 | 2304 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2305 | if test "x$LINE" != x ; then |
2306 | eval "DEFAULT_$LINE" | |
2307 | else | |
2308 | no_cache=1 | |
2309 | fi | |
2310 | ||
b12915c1 | 2311 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
a0b9e27f MB |
2312 | |
2313 | fi | |
10f2d63a VZ |
2314 | |
2315 | ||
b12915c1 | 2316 | eval "$ac_cv_use_zlib" |
10f2d63a | 2317 | if test "$no_cache" != 1; then |
b12915c1 | 2318 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2319 | fi |
2320 | ||
b12915c1 | 2321 | if test "$wxUSE_ZLIB" = yes; then |
a0b9e27f | 2322 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2323 | elif test "$wxUSE_ZLIB" = no; then |
a0b9e27f | 2324 | echo "$ac_t""no" 1>&6 |
422107f9 | 2325 | elif test "$wxUSE_ZLIB" = sys; then |
a0b9e27f | 2326 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2327 | elif test "$wxUSE_ZLIB" = builtin; then |
a0b9e27f | 2328 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2329 | else |
a0b9e27f | 2330 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2331 | fi |
a0b9e27f | 2332 | |
10f2d63a | 2333 | |
a0b9e27f | 2334 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
3c907f20 | 2335 | echo "configure:2336: checking for --with-odbc" >&5 |
10f2d63a | 2336 | no_cache=0 |
a0b9e27f | 2337 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2338 | if test "${with_odbc+set}" = set; then |
2339 | withval="$with_odbc" | |
a0b9e27f | 2340 | |
10f2d63a VZ |
2341 | if test "$withval" = yes; then |
2342 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
8647bec6 | 2343 | elif test "$withval" = no; then |
10f2d63a | 2344 | ac_cv_use_odbc='wxUSE_ODBC=no' |
8647bec6 RG |
2345 | elif test "$withval" = sys; then |
2346 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
2347 | elif test "$withval" = builtin; then | |
2348 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
2349 | else | |
2350 | { echo "configure: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
10f2d63a | 2351 | fi |
a0b9e27f | 2352 | |
10f2d63a | 2353 | else |
a0b9e27f | 2354 | |
10f2d63a VZ |
2355 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2356 | if test "x$LINE" != x ; then | |
2357 | eval "DEFAULT_$LINE" | |
2358 | else | |
2359 | no_cache=1 | |
2360 | fi | |
2361 | ||
2362 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
a0b9e27f MB |
2363 | |
2364 | fi | |
10f2d63a VZ |
2365 | |
2366 | ||
2367 | eval "$ac_cv_use_odbc" | |
2368 | if test "$no_cache" != 1; then | |
2369 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2370 | fi | |
2371 | ||
2372 | if test "$wxUSE_ODBC" = yes; then | |
a0b9e27f | 2373 | echo "$ac_t""yes" 1>&6 |
8647bec6 | 2374 | elif test "$wxUSE_ODBC" = no; then |
a0b9e27f | 2375 | echo "$ac_t""no" 1>&6 |
8647bec6 RG |
2376 | elif test "$wxUSE_ODBC" = sys; then |
2377 | echo "$ac_t""system version" 1>&6 | |
2378 | elif test "$wxUSE_ODBC" = builtin; then | |
2379 | echo "$ac_t""builtin version" 1>&6 | |
2380 | else | |
2381 | { echo "configure: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
10f2d63a | 2382 | fi |
a0b9e27f | 2383 | |
52127426 | 2384 | |
8284b0c5 MB |
2385 | |
2386 | ||
5005acfe VZ |
2387 | enablestring= |
2388 | echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6 | |
3c907f20 | 2389 | echo "configure:2390: checking for --${enablestring:-enable}-shared" >&5 |
10f2d63a VZ |
2390 | no_cache=0 |
2391 | # Check whether --enable-shared or --disable-shared was given. | |
2392 | if test "${enable_shared+set}" = set; then | |
2393 | enableval="$enable_shared" | |
a0b9e27f | 2394 | |
10f2d63a VZ |
2395 | if test "$enableval" = yes; then |
2396 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2397 | else | |
2398 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2399 | fi | |
a0b9e27f | 2400 | |
10f2d63a | 2401 | else |
a0b9e27f | 2402 | |
10f2d63a VZ |
2403 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2404 | if test "x$LINE" != x ; then | |
2405 | eval "DEFAULT_$LINE" | |
2406 | else | |
2407 | no_cache=1 | |
2408 | fi | |
2409 | ||
2410 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
a0b9e27f MB |
2411 | |
2412 | fi | |
10f2d63a VZ |
2413 | |
2414 | ||
2415 | eval "$ac_cv_use_shared" | |
2416 | if test "$no_cache" != 1; then | |
2417 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2418 | fi | |
2419 | ||
2420 | if test "$wxUSE_SHARED" = yes; then | |
a0b9e27f | 2421 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2422 | else |
a0b9e27f | 2423 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2424 | fi |
a0b9e27f | 2425 | |
10f2d63a | 2426 | |
5005acfe VZ |
2427 | enablestring= |
2428 | echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6 | |
3c907f20 | 2429 | echo "configure:2430: checking for --${enablestring:-enable}-soname" >&5 |
00cf1208 | 2430 | no_cache=0 |
3a922bb4 RL |
2431 | # Check whether --enable-soname or --disable-soname was given. |
2432 | if test "${enable_soname+set}" = set; then | |
2433 | enableval="$enable_soname" | |
a0b9e27f | 2434 | |
00cf1208 | 2435 | if test "$enableval" = yes; then |
3a922bb4 | 2436 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2437 | else |
3a922bb4 | 2438 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2439 | fi |
a0b9e27f | 2440 | |
00cf1208 | 2441 | else |
a0b9e27f | 2442 | |
3a922bb4 | 2443 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2444 | if test "x$LINE" != x ; then |
2445 | eval "DEFAULT_$LINE" | |
2446 | else | |
2447 | no_cache=1 | |
2448 | fi | |
2449 | ||
3a922bb4 | 2450 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
a0b9e27f MB |
2451 | |
2452 | fi | |
00cf1208 RR |
2453 | |
2454 | ||
3a922bb4 | 2455 | eval "$ac_cv_use_soname" |
00cf1208 | 2456 | if test "$no_cache" != 1; then |
3a922bb4 | 2457 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2458 | fi |
2459 | ||
3a922bb4 | 2460 | if test "$wxUSE_SONAME" = yes; then |
a0b9e27f | 2461 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2462 | else |
a0b9e27f | 2463 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2464 | fi |
a0b9e27f | 2465 | |
00cf1208 | 2466 | |
5005acfe VZ |
2467 | enablestring= |
2468 | echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6 | |
3c907f20 | 2469 | echo "configure:2470: checking for --${enablestring:-enable}-optimise" >&5 |
10f2d63a VZ |
2470 | no_cache=0 |
2471 | # Check whether --enable-optimise or --disable-optimise was given. | |
2472 | if test "${enable_optimise+set}" = set; then | |
2473 | enableval="$enable_optimise" | |
a0b9e27f | 2474 | |
10f2d63a VZ |
2475 | if test "$enableval" = yes; then |
2476 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2477 | else | |
2478 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2479 | fi | |
a0b9e27f | 2480 | |
10f2d63a | 2481 | else |
a0b9e27f | 2482 | |
10f2d63a VZ |
2483 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2484 | if test "x$LINE" != x ; then | |
2485 | eval "DEFAULT_$LINE" | |
2486 | else | |
2487 | no_cache=1 | |
2488 | fi | |
2489 | ||
2490 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
a0b9e27f MB |
2491 | |
2492 | fi | |
10f2d63a VZ |
2493 | |
2494 | ||
2495 | eval "$ac_cv_use_optimise" | |
2496 | if test "$no_cache" != 1; then | |
2497 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2498 | fi | |
2499 | ||
2500 | if test "$wxUSE_OPTIMISE" = yes; then | |
a0b9e27f | 2501 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2502 | else |
a0b9e27f | 2503 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2504 | fi |
a0b9e27f | 2505 | |
10f2d63a | 2506 | |
5005acfe VZ |
2507 | enablestring= |
2508 | echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6 | |
3c907f20 | 2509 | echo "configure:2510: checking for --${enablestring:-enable}-debug" >&5 |
10f2d63a VZ |
2510 | no_cache=0 |
2511 | # Check whether --enable-debug or --disable-debug was given. | |
2512 | if test "${enable_debug+set}" = set; then | |
2513 | enableval="$enable_debug" | |
a0b9e27f | 2514 | |
10f2d63a VZ |
2515 | if test "$enableval" = yes; then |
2516 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2517 | else | |
2518 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2519 | fi | |
a0b9e27f | 2520 | |
10f2d63a | 2521 | else |
a0b9e27f | 2522 | |
10f2d63a VZ |
2523 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2524 | if test "x$LINE" != x ; then | |
2525 | eval "DEFAULT_$LINE" | |
2526 | else | |
2527 | no_cache=1 | |
2528 | fi | |
2529 | ||
2530 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
a0b9e27f MB |
2531 | |
2532 | fi | |
10f2d63a VZ |
2533 | |
2534 | ||
2535 | eval "$ac_cv_use_debug" | |
2536 | if test "$no_cache" != 1; then | |
2537 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2538 | fi | |
2539 | ||
2540 | if test "$wxUSE_DEBUG" = yes; then | |
a0b9e27f | 2541 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2542 | else |
a0b9e27f | 2543 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2544 | fi |
a0b9e27f | 2545 | |
52127426 | 2546 | |
8284b0c5 | 2547 | |
5005acfe VZ |
2548 | enablestring= |
2549 | echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6 | |
3c907f20 | 2550 | echo "configure:2551: checking for --${enablestring:-enable}-precomp" >&5 |
683dccda GD |
2551 | no_cache=0 |
2552 | # Check whether --enable-precomp or --disable-precomp was given. | |
2553 | if test "${enable_precomp+set}" = set; then | |
2554 | enableval="$enable_precomp" | |
a0b9e27f | 2555 | |
683dccda GD |
2556 | if test "$enableval" = yes; then |
2557 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2558 | else | |
2559 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2560 | fi | |
a0b9e27f | 2561 | |
683dccda | 2562 | else |
a0b9e27f | 2563 | |
683dccda GD |
2564 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` |
2565 | if test "x$LINE" != x ; then | |
2566 | eval "DEFAULT_$LINE" | |
2567 | else | |
2568 | no_cache=1 | |
2569 | fi | |
2570 | ||
2571 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
a0b9e27f MB |
2572 | |
2573 | fi | |
683dccda GD |
2574 | |
2575 | ||
2576 | eval "$ac_cv_use_precomp" | |
2577 | if test "$no_cache" != 1; then | |
2578 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2579 | fi | |
2580 | ||
2581 | if test "$wxUSE_PRECOMP" = yes; then | |
a0b9e27f | 2582 | echo "$ac_t""yes" 1>&6 |
683dccda | 2583 | else |
a0b9e27f | 2584 | echo "$ac_t""no" 1>&6 |
683dccda | 2585 | fi |
a0b9e27f | 2586 | |
683dccda | 2587 | |
10f2d63a VZ |
2588 | if test "$wxUSE_DEBUG" = "yes"; then |
2589 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2590 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2591 | elif test "$wxUSE_DEBUG" = "no"; then | |
2592 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2593 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2594 | fi | |
2595 | ||
8284b0c5 | 2596 | |
5005acfe VZ |
2597 | enablestring= |
2598 | echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6 | |
3c907f20 | 2599 | echo "configure:2600: checking for --${enablestring:-enable}-debug_flag" >&5 |
10f2d63a VZ |
2600 | no_cache=0 |
2601 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2602 | if test "${enable_debug_flag+set}" = set; then | |
2603 | enableval="$enable_debug_flag" | |
a0b9e27f | 2604 | |
10f2d63a VZ |
2605 | if test "$enableval" = yes; then |
2606 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2607 | else | |
2608 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2609 | fi | |
a0b9e27f | 2610 | |
10f2d63a | 2611 | else |
a0b9e27f | 2612 | |
10f2d63a VZ |
2613 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2614 | if test "x$LINE" != x ; then | |
2615 | eval "DEFAULT_$LINE" | |
2616 | else | |
2617 | no_cache=1 | |
2618 | fi | |
2619 | ||
2620 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
a0b9e27f MB |
2621 | |
2622 | fi | |
10f2d63a VZ |
2623 | |
2624 | ||
2625 | eval "$ac_cv_use_debug_flag" | |
2626 | if test "$no_cache" != 1; then | |
2627 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2628 | fi | |
2629 | ||
2630 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
a0b9e27f | 2631 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2632 | else |
a0b9e27f | 2633 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2634 | fi |
a0b9e27f | 2635 | |
10f2d63a | 2636 | |
5005acfe VZ |
2637 | enablestring= |
2638 | echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6 | |
3c907f20 | 2639 | echo "configure:2640: checking for --${enablestring:-enable}-debug_info" >&5 |
10f2d63a VZ |
2640 | no_cache=0 |
2641 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2642 | if test "${enable_debug_info+set}" = set; then | |
2643 | enableval="$enable_debug_info" | |
a0b9e27f | 2644 | |
10f2d63a VZ |
2645 | if test "$enableval" = yes; then |
2646 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2647 | else | |
2648 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2649 | fi | |
a0b9e27f | 2650 | |
10f2d63a | 2651 | else |
a0b9e27f | 2652 | |
10f2d63a VZ |
2653 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2654 | if test "x$LINE" != x ; then | |
2655 | eval "DEFAULT_$LINE" | |
2656 | else | |
2657 | no_cache=1 | |
2658 | fi | |
2659 | ||
2660 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
a0b9e27f MB |
2661 | |
2662 | fi | |
10f2d63a VZ |
2663 | |
2664 | ||
2665 | eval "$ac_cv_use_debug_info" | |
2666 | if test "$no_cache" != 1; then | |
2667 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2668 | fi | |
2669 | ||
2670 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
a0b9e27f | 2671 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2672 | else |
a0b9e27f | 2673 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2674 | fi |
a0b9e27f | 2675 | |
10f2d63a | 2676 | |
5005acfe VZ |
2677 | enablestring= |
2678 | echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6 | |
3c907f20 | 2679 | echo "configure:2680: checking for --${enablestring:-enable}-debug_gdb" >&5 |
10f2d63a VZ |
2680 | no_cache=0 |
2681 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2682 | if test "${enable_debug_gdb+set}" = set; then | |
2683 | enableval="$enable_debug_gdb" | |
a0b9e27f | 2684 | |
10f2d63a VZ |
2685 | if test "$enableval" = yes; then |
2686 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2687 | else | |
2688 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2689 | fi | |
a0b9e27f | 2690 | |
10f2d63a | 2691 | else |
a0b9e27f | 2692 | |
10f2d63a VZ |
2693 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2694 | if test "x$LINE" != x ; then | |
2695 | eval "DEFAULT_$LINE" | |
2696 | else | |
2697 | no_cache=1 | |
2698 | fi | |
2699 | ||
2700 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
a0b9e27f MB |
2701 | |
2702 | fi | |
10f2d63a VZ |
2703 | |
2704 | ||
2705 | eval "$ac_cv_use_debug_gdb" | |
2706 | if test "$no_cache" != 1; then | |
2707 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2708 | fi | |
2709 | ||
2710 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
a0b9e27f | 2711 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2712 | else |
a0b9e27f | 2713 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2714 | fi |
a0b9e27f | 2715 | |
10f2d63a | 2716 | |
5005acfe VZ |
2717 | enablestring= |
2718 | echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6 | |
3c907f20 | 2719 | echo "configure:2720: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
10f2d63a VZ |
2720 | no_cache=0 |
2721 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2722 | if test "${enable_debug_cntxt+set}" = set; then | |
2723 | enableval="$enable_debug_cntxt" | |
a0b9e27f | 2724 | |
10f2d63a VZ |
2725 | if test "$enableval" = yes; then |
2726 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2727 | else | |
2728 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2729 | fi | |
a0b9e27f | 2730 | |
10f2d63a | 2731 | else |
a0b9e27f | 2732 | |
10f2d63a VZ |
2733 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2734 | if test "x$LINE" != x ; then | |
2735 | eval "DEFAULT_$LINE" | |
2736 | else | |
2737 | no_cache=1 | |
2738 | fi | |
2739 | ||
2740 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
a0b9e27f MB |
2741 | |
2742 | fi | |
10f2d63a VZ |
2743 | |
2744 | ||
2745 | eval "$ac_cv_use_debug_cntxt" | |
2746 | if test "$no_cache" != 1; then | |
2747 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2748 | fi | |
2749 | ||
2750 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
a0b9e27f | 2751 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2752 | else |
a0b9e27f | 2753 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2754 | fi |
a0b9e27f | 2755 | |
10f2d63a | 2756 | |
5005acfe VZ |
2757 | enablestring= |
2758 | echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6 | |
3c907f20 | 2759 | echo "configure:2760: checking for --${enablestring:-enable}-mem_tracing" >&5 |
10f2d63a VZ |
2760 | no_cache=0 |
2761 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2762 | if test "${enable_mem_tracing+set}" = set; then | |
2763 | enableval="$enable_mem_tracing" | |
a0b9e27f | 2764 | |
10f2d63a VZ |
2765 | if test "$enableval" = yes; then |
2766 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2767 | else | |
2768 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2769 | fi | |
a0b9e27f | 2770 | |
10f2d63a | 2771 | else |
a0b9e27f | 2772 | |
10f2d63a VZ |
2773 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2774 | if test "x$LINE" != x ; then | |
2775 | eval "DEFAULT_$LINE" | |
2776 | else | |
2777 | no_cache=1 | |
2778 | fi | |
2779 | ||
2780 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
a0b9e27f MB |
2781 | |
2782 | fi | |
10f2d63a VZ |
2783 | |
2784 | ||
2785 | eval "$ac_cv_use_mem_tracing" | |
2786 | if test "$no_cache" != 1; then | |
2787 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2788 | fi | |
2789 | ||
2790 | if test "$wxUSE_MEM_TRACING" = yes; then | |
a0b9e27f | 2791 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2792 | else |
a0b9e27f | 2793 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2794 | fi |
a0b9e27f | 2795 | |
10f2d63a | 2796 | |
5005acfe VZ |
2797 | enablestring= |
2798 | echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6 | |
3c907f20 | 2799 | echo "configure:2800: checking for --${enablestring:-enable}-profile" >&5 |
10f2d63a VZ |
2800 | no_cache=0 |
2801 | # Check whether --enable-profile or --disable-profile was given. | |
2802 | if test "${enable_profile+set}" = set; then | |
2803 | enableval="$enable_profile" | |
a0b9e27f | 2804 | |
10f2d63a VZ |
2805 | if test "$enableval" = yes; then |
2806 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2807 | else | |
2808 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2809 | fi | |
a0b9e27f | 2810 | |
10f2d63a | 2811 | else |
a0b9e27f | 2812 | |
10f2d63a VZ |
2813 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2814 | if test "x$LINE" != x ; then | |
2815 | eval "DEFAULT_$LINE" | |
2816 | else | |
2817 | no_cache=1 | |
2818 | fi | |
2819 | ||
2820 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
a0b9e27f MB |
2821 | |
2822 | fi | |
10f2d63a VZ |
2823 | |
2824 | ||
2825 | eval "$ac_cv_use_profile" | |
2826 | if test "$no_cache" != 1; then | |
2827 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2828 | fi | |
2829 | ||
2830 | if test "$wxUSE_PROFILE" = yes; then | |
a0b9e27f | 2831 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2832 | else |
a0b9e27f | 2833 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2834 | fi |
a0b9e27f | 2835 | |
10f2d63a | 2836 | |
5005acfe VZ |
2837 | enablestring= |
2838 | echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6 | |
3c907f20 | 2839 | echo "configure:2840: checking for --${enablestring:-enable}-no_rtti" >&5 |
10f2d63a VZ |
2840 | no_cache=0 |
2841 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2842 | if test "${enable_no_rtti+set}" = set; then | |
2843 | enableval="$enable_no_rtti" | |
a0b9e27f | 2844 | |
10f2d63a VZ |
2845 | if test "$enableval" = yes; then |
2846 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2847 | else | |
2848 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2849 | fi | |
a0b9e27f | 2850 | |
10f2d63a | 2851 | else |
a0b9e27f | 2852 | |
10f2d63a VZ |
2853 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2854 | if test "x$LINE" != x ; then | |
2855 | eval "DEFAULT_$LINE" | |
2856 | else | |
2857 | no_cache=1 | |
2858 | fi | |
2859 | ||
2860 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
a0b9e27f MB |
2861 | |
2862 | fi | |
10f2d63a VZ |
2863 | |
2864 | ||
2865 | eval "$ac_cv_use_no_rtti" | |
2866 | if test "$no_cache" != 1; then | |
2867 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2868 | fi | |
2869 | ||
2870 | if test "$wxUSE_NO_RTTI" = yes; then | |
a0b9e27f | 2871 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2872 | else |
a0b9e27f | 2873 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2874 | fi |
a0b9e27f | 2875 | |
10f2d63a | 2876 | |
5005acfe VZ |
2877 | enablestring= |
2878 | echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6 | |
3c907f20 | 2879 | echo "configure:2880: checking for --${enablestring:-enable}-no_exceptions" >&5 |
10f2d63a VZ |
2880 | no_cache=0 |
2881 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2882 | if test "${enable_no_exceptions+set}" = set; then | |
2883 | enableval="$enable_no_exceptions" | |
a0b9e27f | 2884 | |
10f2d63a VZ |
2885 | if test "$enableval" = yes; then |
2886 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2887 | else | |
2888 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2889 | fi | |
a0b9e27f | 2890 | |
10f2d63a | 2891 | else |
a0b9e27f | 2892 | |
10f2d63a VZ |
2893 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2894 | if test "x$LINE" != x ; then | |
2895 | eval "DEFAULT_$LINE" | |
2896 | else | |
2897 | no_cache=1 | |
2898 | fi | |
2899 | ||
2900 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
a0b9e27f MB |
2901 | |
2902 | fi | |
10f2d63a VZ |
2903 | |
2904 | ||
2905 | eval "$ac_cv_use_no_exceptions" | |
2906 | if test "$no_cache" != 1; then | |
2907 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2908 | fi | |
2909 | ||
2910 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
a0b9e27f | 2911 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2912 | else |
a0b9e27f | 2913 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2914 | fi |
a0b9e27f | 2915 | |
10f2d63a | 2916 | |
5005acfe VZ |
2917 | enablestring= |
2918 | echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6 | |
3c907f20 | 2919 | echo "configure:2920: checking for --${enablestring:-enable}-permissive" >&5 |
10f2d63a VZ |
2920 | no_cache=0 |
2921 | # Check whether --enable-permissive or --disable-permissive was given. | |
2922 | if test "${enable_permissive+set}" = set; then | |
2923 | enableval="$enable_permissive" | |
a0b9e27f | 2924 | |
10f2d63a VZ |
2925 | if test "$enableval" = yes; then |
2926 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2927 | else | |
2928 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2929 | fi | |
a0b9e27f | 2930 | |
10f2d63a | 2931 | else |
a0b9e27f | 2932 | |
10f2d63a VZ |
2933 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2934 | if test "x$LINE" != x ; then | |
2935 | eval "DEFAULT_$LINE" | |
2936 | else | |
2937 | no_cache=1 | |
2938 | fi | |
2939 | ||
2940 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
a0b9e27f MB |
2941 | |
2942 | fi | |
10f2d63a VZ |
2943 | |
2944 | ||
2945 | eval "$ac_cv_use_permissive" | |
2946 | if test "$no_cache" != 1; then | |
2947 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2948 | fi | |
2949 | ||
2950 | if test "$wxUSE_PERMISSIVE" = yes; then | |
a0b9e27f | 2951 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2952 | else |
a0b9e27f | 2953 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2954 | fi |
a0b9e27f | 2955 | |
10f2d63a | 2956 | |
5005acfe VZ |
2957 | enablestring= |
2958 | echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6 | |
3c907f20 | 2959 | echo "configure:2960: checking for --${enablestring:-enable}-no_deps" >&5 |
10f2d63a VZ |
2960 | no_cache=0 |
2961 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2962 | if test "${enable_no_deps+set}" = set; then | |
2963 | enableval="$enable_no_deps" | |
a0b9e27f | 2964 | |
10f2d63a VZ |
2965 | if test "$enableval" = yes; then |
2966 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2967 | else | |
2968 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2969 | fi | |
a0b9e27f | 2970 | |
10f2d63a | 2971 | else |
a0b9e27f | 2972 | |
10f2d63a VZ |
2973 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2974 | if test "x$LINE" != x ; then | |
2975 | eval "DEFAULT_$LINE" | |
2976 | else | |
2977 | no_cache=1 | |
2978 | fi | |
2979 | ||
2980 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
a0b9e27f MB |
2981 | |
2982 | fi | |
10f2d63a VZ |
2983 | |
2984 | ||
2985 | eval "$ac_cv_use_no_deps" | |
2986 | if test "$no_cache" != 1; then | |
2987 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2988 | fi | |
2989 | ||
2990 | if test "$wxUSE_NO_DEPS" = yes; then | |
a0b9e27f | 2991 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2992 | else |
a0b9e27f | 2993 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2994 | fi |
a0b9e27f | 2995 | |
52127426 | 2996 | |
8284b0c5 | 2997 | |
5005acfe VZ |
2998 | enablestring= |
2999 | echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6 | |
3c907f20 | 3000 | echo "configure:3001: checking for --${enablestring:-enable}-compat20" >&5 |
54276ccf VZ |
3001 | no_cache=0 |
3002 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
3003 | if test "${enable_compat20+set}" = set; then | |
3004 | enableval="$enable_compat20" | |
a0b9e27f | 3005 | |
54276ccf VZ |
3006 | if test "$enableval" = yes; then |
3007 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
3008 | else | |
3009 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
3010 | fi | |
a0b9e27f | 3011 | |
54276ccf | 3012 | else |
a0b9e27f | 3013 | |
54276ccf VZ |
3014 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
3015 | if test "x$LINE" != x ; then | |
3016 | eval "DEFAULT_$LINE" | |
3017 | else | |
3018 | no_cache=1 | |
3019 | fi | |
3020 | ||
3021 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
a0b9e27f MB |
3022 | |
3023 | fi | |
54276ccf VZ |
3024 | |
3025 | ||
3026 | eval "$ac_cv_use_compat20" | |
3027 | if test "$no_cache" != 1; then | |
3028 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3029 | fi | |
3030 | ||
3031 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
a0b9e27f | 3032 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3033 | else |
a0b9e27f | 3034 | echo "$ac_t""no" 1>&6 |
54276ccf | 3035 | fi |
a0b9e27f | 3036 | |
54276ccf | 3037 | |
65d8ef1e | 3038 | enablestring= |
5005acfe | 3039 | echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6 |
3c907f20 | 3040 | echo "configure:3041: checking for --${enablestring:-enable}-compat22" >&5 |
54276ccf VZ |
3041 | no_cache=0 |
3042 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3043 | if test "${enable_compat22+set}" = set; then | |
3044 | enableval="$enable_compat22" | |
a0b9e27f | 3045 | |
54276ccf VZ |
3046 | if test "$enableval" = yes; then |
3047 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3048 | else | |
3049 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3050 | fi | |
a0b9e27f | 3051 | |
54276ccf | 3052 | else |
a0b9e27f | 3053 | |
54276ccf VZ |
3054 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3055 | if test "x$LINE" != x ; then | |
3056 | eval "DEFAULT_$LINE" | |
3057 | else | |
3058 | no_cache=1 | |
3059 | fi | |
3060 | ||
3061 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
a0b9e27f MB |
3062 | |
3063 | fi | |
54276ccf VZ |
3064 | |
3065 | ||
3066 | eval "$ac_cv_use_compat22" | |
3067 | if test "$no_cache" != 1; then | |
3068 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3069 | fi | |
3070 | ||
3071 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
a0b9e27f | 3072 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3073 | else |
a0b9e27f | 3074 | echo "$ac_t""no" 1>&6 |
54276ccf | 3075 | fi |
a0b9e27f | 3076 | |
54276ccf | 3077 | |
65d8ef1e VS |
3078 | enablestring=disable |
3079 | echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6 | |
3c907f20 | 3080 | echo "configure:3081: checking for --${enablestring:-enable}-compat24" >&5 |
65d8ef1e VS |
3081 | no_cache=0 |
3082 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
3083 | if test "${enable_compat24+set}" = set; then | |
3084 | enableval="$enable_compat24" | |
3085 | ||
3086 | if test "$enableval" = yes; then | |
3087 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
3088 | else | |
3089 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
3090 | fi | |
3091 | ||
3092 | else | |
3093 | ||
3094 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
3095 | if test "x$LINE" != x ; then | |
3096 | eval "DEFAULT_$LINE" | |
3097 | else | |
3098 | no_cache=1 | |
3099 | fi | |
3100 | ||
3101 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
3102 | ||
3103 | fi | |
3104 | ||
3105 | ||
3106 | eval "$ac_cv_use_compat24" | |
3107 | if test "$no_cache" != 1; then | |
3108 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
3109 | fi | |
3110 | ||
3111 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
3112 | echo "$ac_t""yes" 1>&6 | |
3113 | else | |
3114 | echo "$ac_t""no" 1>&6 | |
3115 | fi | |
3116 | ||
3117 | ||
3bd8fb5f RD |
3118 | # Check whether --enable-rpath or --disable-rpath was given. |
3119 | if test "${enable_rpath+set}" = set; then | |
3120 | enableval="$enable_rpath" | |
3121 | wxRPATH_DIR="$enableval" | |
a0b9e27f MB |
3122 | fi |
3123 | ||
3bd8fb5f RD |
3124 | |
3125 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3126 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3127 | fi | |
3128 | ||
8284b0c5 MB |
3129 | |
3130 | ||
3131 | ||
5005acfe VZ |
3132 | enablestring= |
3133 | echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6 | |
3c907f20 | 3134 | echo "configure:3135: checking for --${enablestring:-enable}-intl" >&5 |
10f2d63a VZ |
3135 | no_cache=0 |
3136 | # Check whether --enable-intl or --disable-intl was given. | |
3137 | if test "${enable_intl+set}" = set; then | |
3138 | enableval="$enable_intl" | |
a0b9e27f | 3139 | |
10f2d63a VZ |
3140 | if test "$enableval" = yes; then |
3141 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3142 | else | |
3143 | ac_cv_use_intl='wxUSE_INTL=no' | |
3144 | fi | |
a0b9e27f | 3145 | |
10f2d63a | 3146 | else |
a0b9e27f | 3147 | |
10f2d63a VZ |
3148 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3149 | if test "x$LINE" != x ; then | |
3150 | eval "DEFAULT_$LINE" | |
3151 | else | |
3152 | no_cache=1 | |
3153 | fi | |
3154 | ||
3155 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
a0b9e27f MB |
3156 | |
3157 | fi | |
10f2d63a VZ |
3158 | |
3159 | ||
3160 | eval "$ac_cv_use_intl" | |
3161 | if test "$no_cache" != 1; then | |
3162 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3163 | fi | |
3164 | ||
3165 | if test "$wxUSE_INTL" = yes; then | |
a0b9e27f | 3166 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3167 | else |
a0b9e27f | 3168 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3169 | fi |
a0b9e27f | 3170 | |
10f2d63a | 3171 | |
5005acfe VZ |
3172 | enablestring= |
3173 | echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6 | |
3c907f20 | 3174 | echo "configure:3175: checking for --${enablestring:-enable}-config" >&5 |
10f2d63a VZ |
3175 | no_cache=0 |
3176 | # Check whether --enable-config or --disable-config was given. | |
3177 | if test "${enable_config+set}" = set; then | |
3178 | enableval="$enable_config" | |
a0b9e27f | 3179 | |
10f2d63a VZ |
3180 | if test "$enableval" = yes; then |
3181 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3182 | else | |
3183 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3184 | fi | |
a0b9e27f | 3185 | |
10f2d63a | 3186 | else |
a0b9e27f | 3187 | |
10f2d63a VZ |
3188 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3189 | if test "x$LINE" != x ; then | |
3190 | eval "DEFAULT_$LINE" | |
3191 | else | |
3192 | no_cache=1 | |
3193 | fi | |
3194 | ||
3195 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
a0b9e27f MB |
3196 | |
3197 | fi | |
10f2d63a VZ |
3198 | |
3199 | ||
3200 | eval "$ac_cv_use_config" | |
3201 | if test "$no_cache" != 1; then | |
3202 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3203 | fi | |
3204 | ||
3205 | if test "$wxUSE_CONFIG" = yes; then | |
a0b9e27f | 3206 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3207 | else |
a0b9e27f | 3208 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3209 | fi |
a0b9e27f | 3210 | |
52127426 | 3211 | |
8284b0c5 | 3212 | |
5005acfe VZ |
3213 | enablestring= |
3214 | echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6 | |
3c907f20 | 3215 | echo "configure:3216: checking for --${enablestring:-enable}-protocols" >&5 |
a1622950 VZ |
3216 | no_cache=0 |
3217 | # Check whether --enable-protocols or --disable-protocols was given. | |
3218 | if test "${enable_protocols+set}" = set; then | |
3219 | enableval="$enable_protocols" | |
a0b9e27f | 3220 | |
a1622950 VZ |
3221 | if test "$enableval" = yes; then |
3222 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3223 | else | |
3224 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3225 | fi | |
a0b9e27f | 3226 | |
a1622950 | 3227 | else |
a0b9e27f | 3228 | |
a1622950 VZ |
3229 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3230 | if test "x$LINE" != x ; then | |
3231 | eval "DEFAULT_$LINE" | |
3232 | else | |
3233 | no_cache=1 | |
3234 | fi | |
3235 | ||
3236 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
3237 | |
3238 | fi | |
a1622950 VZ |
3239 | |
3240 | ||
3241 | eval "$ac_cv_use_protocols" | |
3242 | if test "$no_cache" != 1; then | |
3243 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3244 | fi | |
3245 | ||
3246 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 3247 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3248 | else |
a0b9e27f | 3249 | echo "$ac_t""no" 1>&6 |
a1622950 | 3250 | fi |
a0b9e27f | 3251 | |
a1622950 | 3252 | |
5005acfe VZ |
3253 | enablestring= |
3254 | echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6 | |
3c907f20 | 3255 | echo "configure:3256: checking for --${enablestring:-enable}-ftp" >&5 |
a1622950 VZ |
3256 | no_cache=0 |
3257 | # Check whether --enable-ftp or --disable-ftp was given. | |
3258 | if test "${enable_ftp+set}" = set; then | |
3259 | enableval="$enable_ftp" | |
a0b9e27f | 3260 | |
a1622950 VZ |
3261 | if test "$enableval" = yes; then |
3262 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3263 | else | |
3264 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3265 | fi | |
a0b9e27f | 3266 | |
a1622950 | 3267 | else |
a0b9e27f | 3268 | |
a1622950 VZ |
3269 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3270 | if test "x$LINE" != x ; then | |
3271 | eval "DEFAULT_$LINE" | |
3272 | else | |
3273 | no_cache=1 | |
3274 | fi | |
3275 | ||
3276 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
3277 | |
3278 | fi | |
a1622950 VZ |
3279 | |
3280 | ||
3281 | eval "$ac_cv_use_ftp" | |
3282 | if test "$no_cache" != 1; then | |
3283 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3284 | fi | |
3285 | ||
3286 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 3287 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3288 | else |
a0b9e27f | 3289 | echo "$ac_t""no" 1>&6 |
a1622950 | 3290 | fi |
a0b9e27f | 3291 | |
a1622950 | 3292 | |
5005acfe VZ |
3293 | enablestring= |
3294 | echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6 | |
3c907f20 | 3295 | echo "configure:3296: checking for --${enablestring:-enable}-http" >&5 |
a1622950 VZ |
3296 | no_cache=0 |
3297 | # Check whether --enable-http or --disable-http was given. | |
3298 | if test "${enable_http+set}" = set; then | |
3299 | enableval="$enable_http" | |
a0b9e27f | 3300 | |
a1622950 VZ |
3301 | if test "$enableval" = yes; then |
3302 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3303 | else | |
3304 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3305 | fi | |
a0b9e27f | 3306 | |
a1622950 | 3307 | else |
a0b9e27f | 3308 | |
a1622950 VZ |
3309 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3310 | if test "x$LINE" != x ; then | |
3311 | eval "DEFAULT_$LINE" | |
3312 | else | |
3313 | no_cache=1 | |
3314 | fi | |
3315 | ||
3316 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
3317 | |
3318 | fi | |
a1622950 VZ |
3319 | |
3320 | ||
3321 | eval "$ac_cv_use_http" | |
3322 | if test "$no_cache" != 1; then | |
3323 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3324 | fi | |
3325 | ||
3326 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 3327 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3328 | else |
a0b9e27f | 3329 | echo "$ac_t""no" 1>&6 |
a1622950 | 3330 | fi |
a0b9e27f | 3331 | |
a1622950 | 3332 | |
5005acfe VZ |
3333 | enablestring= |
3334 | echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6 | |
3c907f20 | 3335 | echo "configure:3336: checking for --${enablestring:-enable}-fileproto" >&5 |
a1622950 VZ |
3336 | no_cache=0 |
3337 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3338 | if test "${enable_fileproto+set}" = set; then | |
3339 | enableval="$enable_fileproto" | |
a0b9e27f | 3340 | |
a1622950 VZ |
3341 | if test "$enableval" = yes; then |
3342 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3343 | else | |
3344 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3345 | fi | |
a0b9e27f | 3346 | |
a1622950 | 3347 | else |
a0b9e27f | 3348 | |
a1622950 VZ |
3349 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
3350 | if test "x$LINE" != x ; then | |
3351 | eval "DEFAULT_$LINE" | |
3352 | else | |
3353 | no_cache=1 | |
3354 | fi | |
3355 | ||
3356 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
3357 | |
3358 | fi | |
a1622950 VZ |
3359 | |
3360 | ||
3361 | eval "$ac_cv_use_fileproto" | |
3362 | if test "$no_cache" != 1; then | |
3363 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3364 | fi | |
3365 | ||
3366 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 3367 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3368 | else |
a0b9e27f | 3369 | echo "$ac_t""no" 1>&6 |
a1622950 | 3370 | fi |
a0b9e27f | 3371 | |
a1622950 | 3372 | |
5005acfe VZ |
3373 | enablestring= |
3374 | echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6 | |
3c907f20 | 3375 | echo "configure:3376: checking for --${enablestring:-enable}-sockets" >&5 |
10f2d63a VZ |
3376 | no_cache=0 |
3377 | # Check whether --enable-sockets or --disable-sockets was given. | |
3378 | if test "${enable_sockets+set}" = set; then | |
3379 | enableval="$enable_sockets" | |
a0b9e27f | 3380 | |
10f2d63a VZ |
3381 | if test "$enableval" = yes; then |
3382 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3383 | else | |
3384 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3385 | fi | |
a0b9e27f | 3386 | |
10f2d63a | 3387 | else |
a0b9e27f | 3388 | |
10f2d63a VZ |
3389 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3390 | if test "x$LINE" != x ; then | |
3391 | eval "DEFAULT_$LINE" | |
3392 | else | |
3393 | no_cache=1 | |
3394 | fi | |
3395 | ||
3396 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
a0b9e27f MB |
3397 | |
3398 | fi | |
10f2d63a VZ |
3399 | |
3400 | ||
3401 | eval "$ac_cv_use_sockets" | |
3402 | if test "$no_cache" != 1; then | |
3403 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3404 | fi | |
3405 | ||
3406 | if test "$wxUSE_SOCKETS" = yes; then | |
a0b9e27f | 3407 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3408 | else |
a0b9e27f | 3409 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3410 | fi |
a0b9e27f | 3411 | |
8284b0c5 | 3412 | |
5005acfe VZ |
3413 | enablestring= |
3414 | echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6 | |
3c907f20 | 3415 | echo "configure:3416: checking for --${enablestring:-enable}-ole" >&5 |
3bce6687 JS |
3416 | no_cache=0 |
3417 | # Check whether --enable-ole or --disable-ole was given. | |
3418 | if test "${enable_ole+set}" = set; then | |
3419 | enableval="$enable_ole" | |
3420 | ||
3421 | if test "$enableval" = yes; then | |
3422 | ac_cv_use_ole='wxUSE_OLE=yes' | |
3423 | else | |
3424 | ac_cv_use_ole='wxUSE_OLE=no' | |
3425 | fi | |
3426 | ||
3427 | else | |
3428 | ||
3429 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
3430 | if test "x$LINE" != x ; then | |
3431 | eval "DEFAULT_$LINE" | |
3432 | else | |
3433 | no_cache=1 | |
3434 | fi | |
3435 | ||
3436 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3437 | ||
3438 | fi | |
3439 | ||
3440 | ||
3441 | eval "$ac_cv_use_ole" | |
3442 | if test "$no_cache" != 1; then | |
3443 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
3444 | fi | |
3445 | ||
3446 | if test "$wxUSE_OLE" = yes; then | |
3447 | echo "$ac_t""yes" 1>&6 | |
3448 | else | |
3449 | echo "$ac_t""no" 1>&6 | |
3450 | fi | |
3451 | ||
3452 | ||
5005acfe VZ |
3453 | enablestring= |
3454 | echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6 | |
3c907f20 | 3455 | echo "configure:3456: checking for --${enablestring:-enable}-dataobj" >&5 |
3bce6687 JS |
3456 | no_cache=0 |
3457 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
3458 | if test "${enable_dataobj+set}" = set; then | |
3459 | enableval="$enable_dataobj" | |
3460 | ||
3461 | if test "$enableval" = yes; then | |
3462 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
3463 | else | |
3464 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
3465 | fi | |
3466 | ||
3467 | else | |
3468 | ||
3469 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
3470 | if test "x$LINE" != x ; then | |
3471 | eval "DEFAULT_$LINE" | |
3472 | else | |
3473 | no_cache=1 | |
3474 | fi | |
3475 | ||
3476 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3477 | ||
3478 | fi | |
3479 | ||
3480 | ||
3481 | eval "$ac_cv_use_dataobj" | |
3482 | if test "$no_cache" != 1; then | |
3483 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
3484 | fi | |
3485 | ||
3486 | if test "$wxUSE_DATAOBJ" = yes; then | |
3487 | echo "$ac_t""yes" 1>&6 | |
3488 | else | |
3489 | echo "$ac_t""no" 1>&6 | |
3490 | fi | |
3491 | ||
3492 | ||
52127426 | 3493 | |
5005acfe VZ |
3494 | enablestring= |
3495 | echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6 | |
3c907f20 | 3496 | echo "configure:3497: checking for --${enablestring:-enable}-ipc" >&5 |
10f2d63a | 3497 | no_cache=0 |
eb4efbdc VZ |
3498 | # Check whether --enable-ipc or --disable-ipc was given. |
3499 | if test "${enable_ipc+set}" = set; then | |
3500 | enableval="$enable_ipc" | |
a0b9e27f | 3501 | |
10f2d63a | 3502 | if test "$enableval" = yes; then |
eb4efbdc | 3503 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3504 | else |
eb4efbdc | 3505 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3506 | fi |
a0b9e27f | 3507 | |
10f2d63a | 3508 | else |
a0b9e27f | 3509 | |
eb4efbdc | 3510 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3511 | if test "x$LINE" != x ; then |
3512 | eval "DEFAULT_$LINE" | |
3513 | else | |
3514 | no_cache=1 | |
3515 | fi | |
3516 | ||
eb4efbdc | 3517 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
a0b9e27f MB |
3518 | |
3519 | fi | |
10f2d63a VZ |
3520 | |
3521 | ||
eb4efbdc | 3522 | eval "$ac_cv_use_ipc" |
10f2d63a | 3523 | if test "$no_cache" != 1; then |
eb4efbdc | 3524 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3525 | fi |
3526 | ||
eb4efbdc | 3527 | if test "$wxUSE_IPC" = yes; then |
a0b9e27f | 3528 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3529 | else |
a0b9e27f | 3530 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3531 | fi |
a0b9e27f | 3532 | |
52127426 | 3533 | |
8284b0c5 | 3534 | |
5005acfe VZ |
3535 | enablestring= |
3536 | echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6 | |
3c907f20 | 3537 | echo "configure:3538: checking for --${enablestring:-enable}-cmdline" >&5 |
1e6feb95 VZ |
3538 | no_cache=0 |
3539 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3540 | if test "${enable_cmdline+set}" = set; then | |
3541 | enableval="$enable_cmdline" | |
a0b9e27f | 3542 | |
1e6feb95 VZ |
3543 | if test "$enableval" = yes; then |
3544 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3545 | else | |
3546 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3547 | fi | |
a0b9e27f | 3548 | |
1e6feb95 | 3549 | else |
a0b9e27f | 3550 | |
1e6feb95 VZ |
3551 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
3552 | if test "x$LINE" != x ; then | |
3553 | eval "DEFAULT_$LINE" | |
3554 | else | |
3555 | no_cache=1 | |
3556 | fi | |
3557 | ||
3558 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
a0b9e27f MB |
3559 | |
3560 | fi | |
1e6feb95 VZ |
3561 | |
3562 | ||
3563 | eval "$ac_cv_use_cmdline" | |
3564 | if test "$no_cache" != 1; then | |
3565 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3566 | fi | |
3567 | ||
3568 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
a0b9e27f | 3569 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3570 | else |
a0b9e27f | 3571 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3572 | fi |
a0b9e27f | 3573 | |
1e6feb95 | 3574 | |
5005acfe VZ |
3575 | enablestring= |
3576 | echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6 | |
3c907f20 | 3577 | echo "configure:3578: checking for --${enablestring:-enable}-datetime" >&5 |
1e6feb95 VZ |
3578 | no_cache=0 |
3579 | # Check whether --enable-datetime or --disable-datetime was given. | |
3580 | if test "${enable_datetime+set}" = set; then | |
3581 | enableval="$enable_datetime" | |
a0b9e27f | 3582 | |
1e6feb95 VZ |
3583 | if test "$enableval" = yes; then |
3584 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3585 | else | |
3586 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3587 | fi | |
a0b9e27f | 3588 | |
1e6feb95 | 3589 | else |
a0b9e27f | 3590 | |
1e6feb95 VZ |
3591 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
3592 | if test "x$LINE" != x ; then | |
3593 | eval "DEFAULT_$LINE" | |
3594 | else | |
3595 | no_cache=1 | |
3596 | fi | |
3597 | ||
3598 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
a0b9e27f MB |
3599 | |
3600 | fi | |
1e6feb95 VZ |
3601 | |
3602 | ||
3603 | eval "$ac_cv_use_datetime" | |
3604 | if test "$no_cache" != 1; then | |
3605 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3606 | fi | |
3607 | ||
3608 | if test "$wxUSE_DATETIME" = yes; then | |
a0b9e27f | 3609 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3610 | else |
a0b9e27f | 3611 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3612 | fi |
a0b9e27f | 3613 | |
1e6feb95 | 3614 | |
5005acfe VZ |
3615 | enablestring= |
3616 | echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6 | |
3c907f20 | 3617 | echo "configure:3618: checking for --${enablestring:-enable}-stopwatch" >&5 |
1e6feb95 VZ |
3618 | no_cache=0 |
3619 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3620 | if test "${enable_stopwatch+set}" = set; then | |
3621 | enableval="$enable_stopwatch" | |
a0b9e27f | 3622 | |
1e6feb95 VZ |
3623 | if test "$enableval" = yes; then |
3624 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3625 | else | |
3626 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3627 | fi | |
a0b9e27f | 3628 | |
1e6feb95 | 3629 | else |
a0b9e27f | 3630 | |
1e6feb95 VZ |
3631 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
3632 | if test "x$LINE" != x ; then | |
3633 | eval "DEFAULT_$LINE" | |
3634 | else | |
3635 | no_cache=1 | |
3636 | fi | |
3637 | ||
3638 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
a0b9e27f MB |
3639 | |
3640 | fi | |
1e6feb95 VZ |
3641 | |
3642 | ||
3643 | eval "$ac_cv_use_stopwatch" | |
3644 | if test "$no_cache" != 1; then | |
3645 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3646 | fi | |
3647 | ||
3648 | if test "$wxUSE_STOPWATCH" = yes; then | |
a0b9e27f | 3649 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3650 | else |
a0b9e27f | 3651 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3652 | fi |
a0b9e27f | 3653 | |
1e6feb95 | 3654 | |
5005acfe VZ |
3655 | enablestring= |
3656 | echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6 | |
3c907f20 | 3657 | echo "configure:3658: checking for --${enablestring:-enable}-dialupman" >&5 |
10f2d63a | 3658 | no_cache=0 |
eb4efbdc VZ |
3659 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3660 | if test "${enable_dialupman+set}" = set; then | |
3661 | enableval="$enable_dialupman" | |
a0b9e27f | 3662 | |
10f2d63a | 3663 | if test "$enableval" = yes; then |
eb4efbdc | 3664 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3665 | else |
eb4efbdc | 3666 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3667 | fi |
a0b9e27f | 3668 | |
10f2d63a | 3669 | else |
a0b9e27f | 3670 | |
eb4efbdc | 3671 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3672 | if test "x$LINE" != x ; then |
3673 | eval "DEFAULT_$LINE" | |
3674 | else | |
3675 | no_cache=1 | |
3676 | fi | |
3677 | ||
eb4efbdc | 3678 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
a0b9e27f MB |
3679 | |
3680 | fi | |
10f2d63a VZ |
3681 | |
3682 | ||
eb4efbdc | 3683 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3684 | if test "$no_cache" != 1; then |
eb4efbdc | 3685 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3686 | fi |
3687 | ||
eb4efbdc | 3688 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
a0b9e27f | 3689 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3690 | else |
a0b9e27f | 3691 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3692 | fi |
a0b9e27f | 3693 | |
10f2d63a | 3694 | |
5005acfe VZ |
3695 | enablestring= |
3696 | echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6 | |
3c907f20 | 3697 | echo "configure:3698: checking for --${enablestring:-enable}-apple_ieee" >&5 |
10f2d63a VZ |
3698 | no_cache=0 |
3699 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3700 | if test "${enable_apple_ieee+set}" = set; then | |
3701 | enableval="$enable_apple_ieee" | |
a0b9e27f | 3702 | |
10f2d63a VZ |
3703 | if test "$enableval" = yes; then |
3704 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3705 | else | |
3706 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3707 | fi | |
a0b9e27f | 3708 | |
10f2d63a | 3709 | else |
a0b9e27f | 3710 | |
10f2d63a VZ |
3711 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3712 | if test "x$LINE" != x ; then | |
3713 | eval "DEFAULT_$LINE" | |
3714 | else | |
3715 | no_cache=1 | |
3716 | fi | |
3717 | ||
3718 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
a0b9e27f MB |
3719 | |
3720 | fi | |
10f2d63a VZ |
3721 | |
3722 | ||
3723 | eval "$ac_cv_use_apple_ieee" | |
3724 | if test "$no_cache" != 1; then | |
3725 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3726 | fi | |
3727 | ||
3728 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
a0b9e27f | 3729 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3730 | else |
a0b9e27f | 3731 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3732 | fi |
a0b9e27f | 3733 | |
10f2d63a | 3734 | |
5005acfe VZ |
3735 | enablestring= |
3736 | echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6 | |
3c907f20 | 3737 | echo "configure:3738: checking for --${enablestring:-enable}-timer" >&5 |
10f2d63a | 3738 | no_cache=0 |
1e6feb95 VZ |
3739 | # Check whether --enable-timer or --disable-timer was given. |
3740 | if test "${enable_timer+set}" = set; then | |
3741 | enableval="$enable_timer" | |
a0b9e27f | 3742 | |
10f2d63a | 3743 | if test "$enableval" = yes; then |
1e6feb95 | 3744 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3745 | else |
1e6feb95 | 3746 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3747 | fi |
a0b9e27f | 3748 | |
10f2d63a | 3749 | else |
a0b9e27f | 3750 | |
1e6feb95 | 3751 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3752 | if test "x$LINE" != x ; then |
3753 | eval "DEFAULT_$LINE" | |
3754 | else | |
3755 | no_cache=1 | |
3756 | fi | |
3757 | ||
1e6feb95 | 3758 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
a0b9e27f MB |
3759 | |
3760 | fi | |
10f2d63a VZ |
3761 | |
3762 | ||
1e6feb95 | 3763 | eval "$ac_cv_use_timer" |
10f2d63a | 3764 | if test "$no_cache" != 1; then |
1e6feb95 | 3765 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3766 | fi |
3767 | ||
1e6feb95 | 3768 | if test "$wxUSE_TIMER" = yes; then |
a0b9e27f | 3769 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3770 | else |
a0b9e27f | 3771 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3772 | fi |
a0b9e27f | 3773 | |
10f2d63a | 3774 | |
5005acfe VZ |
3775 | enablestring= |
3776 | echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6 | |
3c907f20 | 3777 | echo "configure:3778: checking for --${enablestring:-enable}-wave" >&5 |
10f2d63a VZ |
3778 | no_cache=0 |
3779 | # Check whether --enable-wave or --disable-wave was given. | |
3780 | if test "${enable_wave+set}" = set; then | |
3781 | enableval="$enable_wave" | |
a0b9e27f | 3782 | |
10f2d63a VZ |
3783 | if test "$enableval" = yes; then |
3784 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3785 | else | |
3786 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3787 | fi | |
a0b9e27f | 3788 | |
10f2d63a | 3789 | else |
a0b9e27f | 3790 | |
10f2d63a VZ |
3791 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3792 | if test "x$LINE" != x ; then | |
3793 | eval "DEFAULT_$LINE" | |
3794 | else | |
3795 | no_cache=1 | |
3796 | fi | |
3797 | ||
3798 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
a0b9e27f MB |
3799 | |
3800 | fi | |
10f2d63a VZ |
3801 | |
3802 | ||
3803 | eval "$ac_cv_use_wave" | |
3804 | if test "$no_cache" != 1; then | |
3805 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3806 | fi | |
3807 | ||
3808 | if test "$wxUSE_WAVE" = yes; then | |
a0b9e27f | 3809 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3810 | else |
a0b9e27f | 3811 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3812 | fi |
a0b9e27f | 3813 | |
10f2d63a | 3814 | |
5005acfe VZ |
3815 | enablestring= |
3816 | echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6 | |
3c907f20 | 3817 | echo "configure:3818: checking for --${enablestring:-enable}-fraction" >&5 |
10f2d63a VZ |
3818 | no_cache=0 |
3819 | # Check whether --enable-fraction or --disable-fraction was given. | |
3820 | if test "${enable_fraction+set}" = set; then | |
3821 | enableval="$enable_fraction" | |
a0b9e27f | 3822 | |
10f2d63a VZ |
3823 | if test "$enableval" = yes; then |
3824 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3825 | else | |
3826 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3827 | fi | |
a0b9e27f | 3828 | |
10f2d63a | 3829 | else |
a0b9e27f | 3830 | |
10f2d63a VZ |
3831 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3832 | if test "x$LINE" != x ; then | |
3833 | eval "DEFAULT_$LINE" | |
3834 | else | |
3835 | no_cache=1 | |
3836 | fi | |
3837 | ||
3838 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
a0b9e27f MB |
3839 | |
3840 | fi | |
10f2d63a VZ |
3841 | |
3842 | ||
3843 | eval "$ac_cv_use_fraction" | |
3844 | if test "$no_cache" != 1; then | |
3845 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3846 | fi | |
3847 | ||
3848 | if test "$wxUSE_FRACTION" = yes; then | |
a0b9e27f | 3849 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3850 | else |
a0b9e27f | 3851 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3852 | fi |
a0b9e27f | 3853 | |
10f2d63a | 3854 | |
5005acfe VZ |
3855 | enablestring= |
3856 | echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6 | |
3c907f20 | 3857 | echo "configure:3858: checking for --${enablestring:-enable}-dynlib" >&5 |
10f2d63a VZ |
3858 | no_cache=0 |
3859 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3860 | if test "${enable_dynlib+set}" = set; then | |
3861 | enableval="$enable_dynlib" | |
a0b9e27f | 3862 | |
10f2d63a VZ |
3863 | if test "$enableval" = yes; then |
3864 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3865 | else | |
3866 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3867 | fi | |
a0b9e27f | 3868 | |
10f2d63a | 3869 | else |
a0b9e27f | 3870 | |
10f2d63a VZ |
3871 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3872 | if test "x$LINE" != x ; then | |
3873 | eval "DEFAULT_$LINE" | |
3874 | else | |
3875 | no_cache=1 | |
3876 | fi | |
3877 | ||
3878 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
a0b9e27f MB |
3879 | |
3880 | fi | |
10f2d63a VZ |
3881 | |
3882 | ||
3883 | eval "$ac_cv_use_dynlib" | |
3884 | if test "$no_cache" != 1; then | |
3885 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3886 | fi | |
3887 | ||
3888 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
a0b9e27f | 3889 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3890 | else |
a0b9e27f | 3891 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3892 | fi |
a0b9e27f | 3893 | |
10f2d63a | 3894 | |
5005acfe VZ |
3895 | enablestring= |
3896 | echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6 | |
3c907f20 | 3897 | echo "configure:3898: checking for --${enablestring:-enable}-dynamicloader" >&5 |
0b9ab0bd RL |
3898 | no_cache=0 |
3899 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3900 | if test "${enable_dynamicloader+set}" = set; then | |
3901 | enableval="$enable_dynamicloader" | |
a0b9e27f | 3902 | |
0b9ab0bd RL |
3903 | if test "$enableval" = yes; then |
3904 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3905 | else | |
3906 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3907 | fi | |
a0b9e27f | 3908 | |
0b9ab0bd | 3909 | else |
a0b9e27f | 3910 | |
0b9ab0bd RL |
3911 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
3912 | if test "x$LINE" != x ; then | |
3913 | eval "DEFAULT_$LINE" | |
3914 | else | |
3915 | no_cache=1 | |
3916 | fi | |
3917 | ||
3918 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
a0b9e27f MB |
3919 | |
3920 | fi | |
0b9ab0bd RL |
3921 | |
3922 | ||
3923 | eval "$ac_cv_use_dynamicloader" | |
3924 | if test "$no_cache" != 1; then | |
3925 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3926 | fi | |
3927 | ||
3928 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
a0b9e27f | 3929 | echo "$ac_t""yes" 1>&6 |
0b9ab0bd | 3930 | else |
a0b9e27f | 3931 | echo "$ac_t""no" 1>&6 |
0b9ab0bd | 3932 | fi |
a0b9e27f | 3933 | |
0b9ab0bd | 3934 | |
5005acfe VZ |
3935 | enablestring= |
3936 | echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6 | |
3c907f20 | 3937 | echo "configure:3938: checking for --${enablestring:-enable}-longlong" >&5 |
10f2d63a VZ |
3938 | no_cache=0 |
3939 | # Check whether --enable-longlong or --disable-longlong was given. | |
3940 | if test "${enable_longlong+set}" = set; then | |
3941 | enableval="$enable_longlong" | |
a0b9e27f | 3942 | |
10f2d63a VZ |
3943 | if test "$enableval" = yes; then |
3944 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3945 | else | |
3946 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3947 | fi | |
a0b9e27f | 3948 | |
10f2d63a | 3949 | else |
a0b9e27f | 3950 | |
10f2d63a VZ |
3951 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3952 | if test "x$LINE" != x ; then | |
3953 | eval "DEFAULT_$LINE" | |
3954 | else | |
3955 | no_cache=1 | |
3956 | fi | |
3957 | ||
3958 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
a0b9e27f MB |
3959 | |
3960 | fi | |
10f2d63a VZ |
3961 | |
3962 | ||
3963 | eval "$ac_cv_use_longlong" | |
3964 | if test "$no_cache" != 1; then | |
3965 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3966 | fi | |
3967 | ||
3968 | if test "$wxUSE_LONGLONG" = yes; then | |
a0b9e27f | 3969 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3970 | else |
a0b9e27f | 3971 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3972 | fi |
a0b9e27f | 3973 | |
10f2d63a | 3974 | |
5005acfe VZ |
3975 | enablestring= |
3976 | echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6 | |
3c907f20 | 3977 | echo "configure:3978: checking for --${enablestring:-enable}-geometry" >&5 |
e8f65ba6 RR |
3978 | no_cache=0 |
3979 | # Check whether --enable-geometry or --disable-geometry was given. | |
3980 | if test "${enable_geometry+set}" = set; then | |
3981 | enableval="$enable_geometry" | |
a0b9e27f | 3982 | |
e8f65ba6 RR |
3983 | if test "$enableval" = yes; then |
3984 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3985 | else | |
3986 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3987 | fi | |
a0b9e27f | 3988 | |
e8f65ba6 | 3989 | else |
a0b9e27f | 3990 | |
e8f65ba6 RR |
3991 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3992 | if test "x$LINE" != x ; then | |
3993 | eval "DEFAULT_$LINE" | |
3994 | else | |
3995 | no_cache=1 | |
3996 | fi | |
3997 | ||
3998 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
a0b9e27f MB |
3999 | |
4000 | fi | |
e8f65ba6 RR |
4001 | |
4002 | ||
4003 | eval "$ac_cv_use_geometry" | |
4004 | if test "$no_cache" != 1; then | |
4005 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
4006 | fi | |
4007 | ||
4008 | if test "$wxUSE_GEOMETRY" = yes; then | |
a0b9e27f | 4009 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 4010 | else |
a0b9e27f | 4011 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 4012 | fi |
a0b9e27f | 4013 | |
e8f65ba6 | 4014 | |
5005acfe VZ |
4015 | enablestring= |
4016 | echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6 | |
3c907f20 | 4017 | echo "configure:4018: checking for --${enablestring:-enable}-log" >&5 |
10f2d63a VZ |
4018 | no_cache=0 |
4019 | # Check whether --enable-log or --disable-log was given. | |
4020 | if test "${enable_log+set}" = set; then | |
4021 | enableval="$enable_log" | |
a0b9e27f | 4022 | |
10f2d63a VZ |
4023 | if test "$enableval" = yes; then |
4024 | ac_cv_use_log='wxUSE_LOG=yes' | |
4025 | else | |
4026 | ac_cv_use_log='wxUSE_LOG=no' | |
4027 | fi | |
a0b9e27f | 4028 | |
10f2d63a | 4029 | else |
a0b9e27f | 4030 | |
10f2d63a VZ |
4031 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
4032 | if test "x$LINE" != x ; then | |
4033 | eval "DEFAULT_$LINE" | |
4034 | else | |
4035 | no_cache=1 | |
4036 | fi | |
4037 | ||
4038 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
a0b9e27f MB |
4039 | |
4040 | fi | |
10f2d63a VZ |
4041 | |
4042 | ||
4043 | eval "$ac_cv_use_log" | |
4044 | if test "$no_cache" != 1; then | |
4045 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4046 | fi | |
4047 | ||
4048 | if test "$wxUSE_LOG" = yes; then | |
a0b9e27f | 4049 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4050 | else |
a0b9e27f | 4051 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4052 | fi |
a0b9e27f | 4053 | |
10f2d63a | 4054 | |
5005acfe VZ |
4055 | enablestring= |
4056 | echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6 | |
3c907f20 | 4057 | echo "configure:4058: checking for --${enablestring:-enable}-streams" >&5 |
10f2d63a VZ |
4058 | no_cache=0 |
4059 | # Check whether --enable-streams or --disable-streams was given. | |
4060 | if test "${enable_streams+set}" = set; then | |
4061 | enableval="$enable_streams" | |
a0b9e27f | 4062 | |
10f2d63a VZ |
4063 | if test "$enableval" = yes; then |
4064 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4065 | else | |
4066 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4067 | fi | |
a0b9e27f | 4068 | |
10f2d63a | 4069 | else |
a0b9e27f | 4070 | |
10f2d63a VZ |
4071 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
4072 | if test "x$LINE" != x ; then | |
4073 | eval "DEFAULT_$LINE" | |
4074 | else | |
4075 | no_cache=1 | |
4076 | fi | |
4077 | ||
4078 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
a0b9e27f MB |
4079 | |
4080 | fi | |
10f2d63a VZ |
4081 | |
4082 | ||
4083 | eval "$ac_cv_use_streams" | |
4084 | if test "$no_cache" != 1; then | |
4085 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4086 | fi | |
4087 | ||
4088 | if test "$wxUSE_STREAMS" = yes; then | |
a0b9e27f | 4089 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4090 | else |
a0b9e27f | 4091 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4092 | fi |
a0b9e27f | 4093 | |
10f2d63a | 4094 | |
5005acfe VZ |
4095 | enablestring= |
4096 | echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6 | |
3c907f20 | 4097 | echo "configure:4098: checking for --${enablestring:-enable}-file" >&5 |
10f2d63a VZ |
4098 | no_cache=0 |
4099 | # Check whether --enable-file or --disable-file was given. | |
4100 | if test "${enable_file+set}" = set; then | |
4101 | enableval="$enable_file" | |
a0b9e27f | 4102 | |
10f2d63a VZ |
4103 | if test "$enableval" = yes; then |
4104 | ac_cv_use_file='wxUSE_FILE=yes' | |
4105 | else | |
4106 | ac_cv_use_file='wxUSE_FILE=no' | |
4107 | fi | |
a0b9e27f | 4108 | |
10f2d63a | 4109 | else |
a0b9e27f | 4110 | |
10f2d63a VZ |
4111 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4112 | if test "x$LINE" != x ; then | |
4113 | eval "DEFAULT_$LINE" | |
4114 | else | |
4115 | no_cache=1 | |
4116 | fi | |
4117 | ||
4118 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
a0b9e27f MB |
4119 | |
4120 | fi | |
10f2d63a VZ |
4121 | |
4122 | ||
4123 | eval "$ac_cv_use_file" | |
4124 | if test "$no_cache" != 1; then | |
4125 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4126 | fi | |
4127 | ||
4128 | if test "$wxUSE_FILE" = yes; then | |
a0b9e27f | 4129 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4130 | else |
a0b9e27f | 4131 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4132 | fi |
a0b9e27f | 4133 | |
10f2d63a | 4134 | |
5005acfe VZ |
4135 | enablestring= |
4136 | echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6 | |
3c907f20 | 4137 | echo "configure:4138: checking for --${enablestring:-enable}-ffile" >&5 |
10f2d63a | 4138 | no_cache=0 |
1e6feb95 VZ |
4139 | # Check whether --enable-ffile or --disable-ffile was given. |
4140 | if test "${enable_ffile+set}" = set; then | |
4141 | enableval="$enable_ffile" | |
a0b9e27f | 4142 | |
10f2d63a | 4143 | if test "$enableval" = yes; then |
1e6feb95 | 4144 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4145 | else |
1e6feb95 | 4146 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4147 | fi |
a0b9e27f | 4148 | |
10f2d63a | 4149 | else |
a0b9e27f | 4150 | |
1e6feb95 | 4151 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4152 | if test "x$LINE" != x ; then |
4153 | eval "DEFAULT_$LINE" | |
4154 | else | |
4155 | no_cache=1 | |
4156 | fi | |
4157 | ||
1e6feb95 | 4158 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
a0b9e27f MB |
4159 | |
4160 | fi | |
10f2d63a VZ |
4161 | |
4162 | ||
1e6feb95 | 4163 | eval "$ac_cv_use_ffile" |
10f2d63a | 4164 | if test "$no_cache" != 1; then |
1e6feb95 | 4165 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4166 | fi |
4167 | ||
1e6feb95 | 4168 | if test "$wxUSE_FFILE" = yes; then |
a0b9e27f | 4169 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4170 | else |
a0b9e27f | 4171 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4172 | fi |
a0b9e27f | 4173 | |
10f2d63a | 4174 | |
5005acfe VZ |
4175 | enablestring= |
4176 | echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6 | |
3c907f20 | 4177 | echo "configure:4178: checking for --${enablestring:-enable}-textbuf" >&5 |
a3a584a7 VZ |
4178 | no_cache=0 |
4179 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4180 | if test "${enable_textbuf+set}" = set; then | |
4181 | enableval="$enable_textbuf" | |
a0b9e27f | 4182 | |
a3a584a7 VZ |
4183 | if test "$enableval" = yes; then |
4184 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4185 | else | |
4186 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4187 | fi | |
a0b9e27f | 4188 | |
a3a584a7 | 4189 | else |
a0b9e27f | 4190 | |
a3a584a7 VZ |
4191 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4192 | if test "x$LINE" != x ; then | |
4193 | eval "DEFAULT_$LINE" | |
4194 | else | |
4195 | no_cache=1 | |
4196 | fi | |
4197 | ||
4198 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a0b9e27f MB |
4199 | |
4200 | fi | |
a3a584a7 VZ |
4201 | |
4202 | ||
4203 | eval "$ac_cv_use_textbuf" | |
4204 | if test "$no_cache" != 1; then | |
4205 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4206 | fi | |
4207 | ||
4208 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
a0b9e27f | 4209 | echo "$ac_t""yes" 1>&6 |
a3a584a7 | 4210 | else |
a0b9e27f | 4211 | echo "$ac_t""no" 1>&6 |
a3a584a7 | 4212 | fi |
a0b9e27f | 4213 | |
a3a584a7 | 4214 | |
5005acfe VZ |
4215 | enablestring= |
4216 | echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6 | |
3c907f20 | 4217 | echo "configure:4218: checking for --${enablestring:-enable}-textfile" >&5 |
10f2d63a | 4218 | no_cache=0 |
1e6feb95 VZ |
4219 | # Check whether --enable-textfile or --disable-textfile was given. |
4220 | if test "${enable_textfile+set}" = set; then | |
4221 | enableval="$enable_textfile" | |
a0b9e27f | 4222 | |
10f2d63a | 4223 | if test "$enableval" = yes; then |
1e6feb95 | 4224 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4225 | else |
1e6feb95 | 4226 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4227 | fi |
a0b9e27f | 4228 | |
10f2d63a | 4229 | else |
a0b9e27f | 4230 | |
1e6feb95 | 4231 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4232 | if test "x$LINE" != x ; then |
4233 | eval "DEFAULT_$LINE" | |
4234 | else | |
4235 | no_cache=1 | |
4236 | fi | |
4237 | ||
1e6feb95 | 4238 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
a0b9e27f MB |
4239 | |
4240 | fi | |
10f2d63a VZ |
4241 | |
4242 | ||
1e6feb95 | 4243 | eval "$ac_cv_use_textfile" |
10f2d63a | 4244 | if test "$no_cache" != 1; then |
1e6feb95 | 4245 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4246 | fi |
4247 | ||
1e6feb95 | 4248 | if test "$wxUSE_TEXTFILE" = yes; then |
a0b9e27f | 4249 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4250 | else |
a0b9e27f | 4251 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4252 | fi |
a0b9e27f | 4253 | |
10f2d63a | 4254 | |
5005acfe VZ |
4255 | enablestring= |
4256 | echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6 | |
3c907f20 | 4257 | echo "configure:4258: checking for --${enablestring:-enable}-fontmap" >&5 |
10f2d63a | 4258 | no_cache=0 |
1e6feb95 VZ |
4259 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4260 | if test "${enable_fontmap+set}" = set; then | |
4261 | enableval="$enable_fontmap" | |
a0b9e27f | 4262 | |
10f2d63a | 4263 | if test "$enableval" = yes; then |
1e6feb95 | 4264 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4265 | else |
1e6feb95 | 4266 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4267 | fi |
a0b9e27f | 4268 | |
10f2d63a | 4269 | else |
a0b9e27f | 4270 | |
1e6feb95 | 4271 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4272 | if test "x$LINE" != x ; then |
4273 | eval "DEFAULT_$LINE" | |
4274 | else | |
4275 | no_cache=1 | |
4276 | fi | |
4277 | ||
1e6feb95 | 4278 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
a0b9e27f MB |
4279 | |
4280 | fi | |
10f2d63a VZ |
4281 | |
4282 | ||
1e6feb95 | 4283 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4284 | if test "$no_cache" != 1; then |
1e6feb95 | 4285 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4286 | fi |
4287 | ||
1e6feb95 | 4288 | if test "$wxUSE_FONTMAP" = yes; then |
a0b9e27f | 4289 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4290 | else |
a0b9e27f | 4291 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4292 | fi |
a0b9e27f | 4293 | |
10f2d63a | 4294 | |
5005acfe VZ |
4295 | enablestring= |
4296 | echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6 | |
3c907f20 | 4297 | echo "configure:4298: checking for --${enablestring:-enable}-unicode" >&5 |
10f2d63a | 4298 | no_cache=0 |
1e6feb95 VZ |
4299 | # Check whether --enable-unicode or --disable-unicode was given. |
4300 | if test "${enable_unicode+set}" = set; then | |
4301 | enableval="$enable_unicode" | |
a0b9e27f | 4302 | |
1e6feb95 VZ |
4303 | if test "$enableval" = yes; then |
4304 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4305 | else | |
4306 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4307 | fi | |
a0b9e27f | 4308 | |
1e6feb95 | 4309 | else |
a0b9e27f | 4310 | |
1e6feb95 VZ |
4311 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4312 | if test "x$LINE" != x ; then | |
4313 | eval "DEFAULT_$LINE" | |
4314 | else | |
4315 | no_cache=1 | |
4316 | fi | |
4317 | ||
4318 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
a0b9e27f MB |
4319 | |
4320 | fi | |
1e6feb95 VZ |
4321 | |
4322 | ||
4323 | eval "$ac_cv_use_unicode" | |
4324 | if test "$no_cache" != 1; then | |
4325 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4326 | fi | |
4327 | ||
4328 | if test "$wxUSE_UNICODE" = yes; then | |
a0b9e27f | 4329 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4330 | else |
a0b9e27f | 4331 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4332 | fi |
a0b9e27f | 4333 | |
1e6feb95 | 4334 | |
5005acfe VZ |
4335 | enablestring= |
4336 | echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6 | |
3c907f20 | 4337 | echo "configure:4338: checking for --${enablestring:-enable}-mslu" >&5 |
a72a4bfa VS |
4338 | no_cache=0 |
4339 | # Check whether --enable-mslu or --disable-mslu was given. | |
4340 | if test "${enable_mslu+set}" = set; then | |
4341 | enableval="$enable_mslu" | |
a0b9e27f | 4342 | |
a72a4bfa VS |
4343 | if test "$enableval" = yes; then |
4344 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4345 | else | |
4346 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4347 | fi | |
a0b9e27f | 4348 | |
a72a4bfa | 4349 | else |
a0b9e27f | 4350 | |
a72a4bfa VS |
4351 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
4352 | if test "x$LINE" != x ; then | |
4353 | eval "DEFAULT_$LINE" | |
4354 | else | |
4355 | no_cache=1 | |
4356 | fi | |
4357 | ||
4358 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a0b9e27f MB |
4359 | |
4360 | fi | |
a72a4bfa VS |
4361 | |
4362 | ||
4363 | eval "$ac_cv_use_mslu" | |
4364 | if test "$no_cache" != 1; then | |
4365 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4366 | fi | |
4367 | ||
4368 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
a0b9e27f | 4369 | echo "$ac_t""yes" 1>&6 |
a72a4bfa | 4370 | else |
a0b9e27f | 4371 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 4372 | fi |
a0b9e27f | 4373 | |
a72a4bfa | 4374 | |
5005acfe VZ |
4375 | enablestring= |
4376 | echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6 | |
3c907f20 | 4377 | echo "configure:4378: checking for --${enablestring:-enable}-wxprintfv" >&5 |
1e6feb95 VZ |
4378 | no_cache=0 |
4379 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4380 | if test "${enable_wxprintfv+set}" = set; then | |
4381 | enableval="$enable_wxprintfv" | |
a0b9e27f | 4382 | |
1e6feb95 | 4383 | if test "$enableval" = yes; then |
10f2d63a VZ |
4384 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4385 | else | |
4386 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4387 | fi | |
a0b9e27f | 4388 | |
10f2d63a | 4389 | else |
a0b9e27f | 4390 | |
10f2d63a VZ |
4391 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4392 | if test "x$LINE" != x ; then | |
4393 | eval "DEFAULT_$LINE" | |
4394 | else | |
4395 | no_cache=1 | |
4396 | fi | |
4397 | ||
4398 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
a0b9e27f MB |
4399 | |
4400 | fi | |
10f2d63a VZ |
4401 | |
4402 | ||
4403 | eval "$ac_cv_use_wxprintfv" | |
4404 | if test "$no_cache" != 1; then | |
4405 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4406 | fi | |
4407 | ||
4408 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
a0b9e27f | 4409 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4410 | else |
a0b9e27f | 4411 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4412 | fi |
a0b9e27f | 4413 | |
10f2d63a | 4414 | |
5005acfe VZ |
4415 | enablestring= |
4416 | echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6 | |
3c907f20 | 4417 | echo "configure:4418: checking for --${enablestring:-enable}-std_iostreams" >&5 |
10f2d63a VZ |
4418 | no_cache=0 |
4419 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4420 | if test "${enable_std_iostreams+set}" = set; then | |
4421 | enableval="$enable_std_iostreams" | |
a0b9e27f | 4422 | |
10f2d63a VZ |
4423 | if test "$enableval" = yes; then |
4424 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4425 | else | |
4426 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4427 | fi | |
a0b9e27f | 4428 | |
10f2d63a | 4429 | else |
a0b9e27f | 4430 | |
10f2d63a VZ |
4431 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4432 | if test "x$LINE" != x ; then | |
4433 | eval "DEFAULT_$LINE" | |
4434 | else | |
4435 | no_cache=1 | |
4436 | fi | |
4437 | ||
4438 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
a0b9e27f MB |
4439 | |
4440 | fi | |
10f2d63a VZ |
4441 | |
4442 | ||
4443 | eval "$ac_cv_use_std_iostreams" | |
4444 | if test "$no_cache" != 1; then | |
4445 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4446 | fi | |
4447 | ||
4448 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
a0b9e27f | 4449 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4450 | else |
a0b9e27f | 4451 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4452 | fi |
a0b9e27f | 4453 | |
10f2d63a | 4454 | |
5005acfe VZ |
4455 | enablestring= |
4456 | echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6 | |
3c907f20 | 4457 | echo "configure:4458: checking for --${enablestring:-enable}-filesystem" >&5 |
24528b0c VS |
4458 | no_cache=0 |
4459 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4460 | if test "${enable_filesystem+set}" = set; then | |
4461 | enableval="$enable_filesystem" | |
a0b9e27f | 4462 | |
24528b0c VS |
4463 | if test "$enableval" = yes; then |
4464 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4465 | else | |
4466 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4467 | fi | |
a0b9e27f | 4468 | |
24528b0c | 4469 | else |
a0b9e27f | 4470 | |
24528b0c VS |
4471 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4472 | if test "x$LINE" != x ; then | |
4473 | eval "DEFAULT_$LINE" | |
4474 | else | |
4475 | no_cache=1 | |
4476 | fi | |
4477 | ||
4478 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
a0b9e27f MB |
4479 | |
4480 | fi | |
24528b0c VS |
4481 | |
4482 | ||
4483 | eval "$ac_cv_use_filesystem" | |
4484 | if test "$no_cache" != 1; then | |
4485 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4486 | fi | |
4487 | ||
4488 | if test "$wxUSE_FILESYSTEM" = yes; then | |
a0b9e27f | 4489 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4490 | else |
a0b9e27f | 4491 | echo "$ac_t""no" 1>&6 |
24528b0c | 4492 | fi |
a0b9e27f | 4493 | |
24528b0c | 4494 | |
5005acfe VZ |
4495 | enablestring= |
4496 | echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6 | |
3c907f20 | 4497 | echo "configure:4498: checking for --${enablestring:-enable}-fs_inet" >&5 |
10f2d63a VZ |
4498 | no_cache=0 |
4499 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4500 | if test "${enable_fs_inet+set}" = set; then | |
4501 | enableval="$enable_fs_inet" | |
a0b9e27f | 4502 | |
10f2d63a VZ |
4503 | if test "$enableval" = yes; then |
4504 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4505 | else | |
4506 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4507 | fi | |
a0b9e27f | 4508 | |
10f2d63a | 4509 | else |
a0b9e27f | 4510 | |
10f2d63a VZ |
4511 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4512 | if test "x$LINE" != x ; then | |
4513 | eval "DEFAULT_$LINE" | |
4514 | else | |
4515 | no_cache=1 | |
4516 | fi | |
4517 | ||
4518 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
a0b9e27f MB |
4519 | |
4520 | fi | |
10f2d63a VZ |
4521 | |
4522 | ||
4523 | eval "$ac_cv_use_fs_inet" | |
4524 | if test "$no_cache" != 1; then | |
4525 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4526 | fi | |
4527 | ||
4528 | if test "$wxUSE_FS_INET" = yes; then | |
a0b9e27f | 4529 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4530 | else |
a0b9e27f | 4531 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4532 | fi |
a0b9e27f | 4533 | |
10f2d63a | 4534 | |
5005acfe VZ |
4535 | enablestring= |
4536 | echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6 | |
3c907f20 | 4537 | echo "configure:4538: checking for --${enablestring:-enable}-fs_zip" >&5 |
10f2d63a VZ |
4538 | no_cache=0 |
4539 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4540 | if test "${enable_fs_zip+set}" = set; then | |
4541 | enableval="$enable_fs_zip" | |
a0b9e27f | 4542 | |
10f2d63a VZ |
4543 | if test "$enableval" = yes; then |
4544 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4545 | else | |
4546 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4547 | fi | |
a0b9e27f | 4548 | |
10f2d63a | 4549 | else |
a0b9e27f | 4550 | |
10f2d63a VZ |
4551 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4552 | if test "x$LINE" != x ; then | |
4553 | eval "DEFAULT_$LINE" | |
4554 | else | |
4555 | no_cache=1 | |
4556 | fi | |
4557 | ||
4558 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
a0b9e27f MB |
4559 | |
4560 | fi | |
10f2d63a VZ |
4561 | |
4562 | ||
4563 | eval "$ac_cv_use_fs_zip" | |
4564 | if test "$no_cache" != 1; then | |
4565 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4566 | fi | |
4567 | ||
4568 | if test "$wxUSE_FS_ZIP" = yes; then | |
a0b9e27f | 4569 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4570 | else |
a0b9e27f | 4571 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4572 | fi |
a0b9e27f | 4573 | |
10f2d63a | 4574 | |
5005acfe VZ |
4575 | enablestring= |
4576 | echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6 | |
3c907f20 | 4577 | echo "configure:4578: checking for --${enablestring:-enable}-zipstream" >&5 |
10f2d63a VZ |
4578 | no_cache=0 |
4579 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4580 | if test "${enable_zipstream+set}" = set; then | |
4581 | enableval="$enable_zipstream" | |
a0b9e27f | 4582 | |
10f2d63a VZ |
4583 | if test "$enableval" = yes; then |
4584 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4585 | else | |
4586 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4587 | fi | |
a0b9e27f | 4588 | |
10f2d63a | 4589 | else |
a0b9e27f | 4590 | |
10f2d63a VZ |
4591 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4592 | if test "x$LINE" != x ; then | |
4593 | eval "DEFAULT_$LINE" | |
4594 | else | |
4595 | no_cache=1 | |
4596 | fi | |
4597 | ||
4598 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
a0b9e27f MB |
4599 | |
4600 | fi | |
10f2d63a VZ |
4601 | |
4602 | ||
4603 | eval "$ac_cv_use_zipstream" | |
4604 | if test "$no_cache" != 1; then | |
4605 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4606 | fi | |
4607 | ||
4608 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
a0b9e27f | 4609 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4610 | else |
a0b9e27f | 4611 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4612 | fi |
a0b9e27f | 4613 | |
8284b0c5 | 4614 | |
52127426 | 4615 | |
5005acfe VZ |
4616 | enablestring= |
4617 | echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6 | |
3c907f20 | 4618 | echo "configure:4619: checking for --${enablestring:-enable}-catch_segvs" >&5 |
eb4efbdc VZ |
4619 | no_cache=0 |
4620 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4621 | if test "${enable_catch_segvs+set}" = set; then | |
4622 | enableval="$enable_catch_segvs" | |
a0b9e27f | 4623 | |
eb4efbdc VZ |
4624 | if test "$enableval" = yes; then |
4625 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4626 | else | |
4627 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4628 | fi | |
a0b9e27f | 4629 | |
eb4efbdc | 4630 | else |
a0b9e27f | 4631 | |
eb4efbdc VZ |
4632 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4633 | if test "x$LINE" != x ; then | |
4634 | eval "DEFAULT_$LINE" | |
4635 | else | |
4636 | no_cache=1 | |
4637 | fi | |
4638 | ||
4639 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
a0b9e27f MB |
4640 | |
4641 | fi | |
eb4efbdc VZ |
4642 | |
4643 | ||
4644 | eval "$ac_cv_use_catch_segvs" | |
4645 | if test "$no_cache" != 1; then | |
4646 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4647 | fi | |
4648 | ||
4649 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
a0b9e27f | 4650 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4651 | else |
a0b9e27f | 4652 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4653 | fi |
a0b9e27f | 4654 | |
eb4efbdc | 4655 | |
5005acfe VZ |
4656 | enablestring= |
4657 | echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6 | |
3c907f20 | 4658 | echo "configure:4659: checking for --${enablestring:-enable}-snglinst" >&5 |
4f3c5f06 VZ |
4659 | no_cache=0 |
4660 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4661 | if test "${enable_snglinst+set}" = set; then | |
4662 | enableval="$enable_snglinst" | |
a0b9e27f | 4663 | |
4f3c5f06 VZ |
4664 | if test "$enableval" = yes; then |
4665 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4666 | else | |
4667 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4668 | fi | |
a0b9e27f | 4669 | |
4f3c5f06 | 4670 | else |
a0b9e27f | 4671 | |
4f3c5f06 VZ |
4672 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4673 | if test "x$LINE" != x ; then | |
4674 | eval "DEFAULT_$LINE" | |
4675 | else | |
4676 | no_cache=1 | |
4677 | fi | |
4678 | ||
4679 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
a0b9e27f MB |
4680 | |
4681 | fi | |
4f3c5f06 VZ |
4682 | |
4683 | ||
4684 | eval "$ac_cv_use_snglinst" | |
4685 | if test "$no_cache" != 1; then | |
4686 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4687 | fi | |
4688 | ||
4689 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
a0b9e27f | 4690 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4691 | else |
a0b9e27f | 4692 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4693 | fi |
a0b9e27f | 4694 | |
52127426 | 4695 | |
8284b0c5 | 4696 | |
5005acfe VZ |
4697 | enablestring= |
4698 | echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6 | |
3c907f20 | 4699 | echo "configure:4700: checking for --${enablestring:-enable}-mimetype" >&5 |
1e6feb95 VZ |
4700 | no_cache=0 |
4701 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4702 | if test "${enable_mimetype+set}" = set; then | |
4703 | enableval="$enable_mimetype" | |
a0b9e27f | 4704 | |
1e6feb95 VZ |
4705 | if test "$enableval" = yes; then |
4706 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4707 | else | |
4708 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4709 | fi | |
a0b9e27f | 4710 | |
1e6feb95 | 4711 | else |
a0b9e27f | 4712 | |
1e6feb95 VZ |
4713 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
4714 | if test "x$LINE" != x ; then | |
4715 | eval "DEFAULT_$LINE" | |
4716 | else | |
4717 | no_cache=1 | |
4718 | fi | |
4719 | ||
4720 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
a0b9e27f MB |
4721 | |
4722 | fi | |
1e6feb95 VZ |
4723 | |
4724 | ||
4725 | eval "$ac_cv_use_mimetype" | |
4726 | if test "$no_cache" != 1; then | |
4727 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4728 | fi | |
4729 | ||
4730 | if test "$wxUSE_MIMETYPE" = yes; then | |
a0b9e27f | 4731 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4732 | else |
a0b9e27f | 4733 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4734 | fi |
a0b9e27f | 4735 | |
1e6feb95 | 4736 | |
5005acfe VZ |
4737 | enablestring= |
4738 | echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6 | |
3c907f20 | 4739 | echo "configure:4740: checking for --${enablestring:-enable}-system_options" >&5 |
3e44f09d VZ |
4740 | no_cache=0 |
4741 | # Check whether --enable-system_options or --disable-system_options was given. | |
4742 | if test "${enable_system_options+set}" = set; then | |
4743 | enableval="$enable_system_options" | |
a0b9e27f | 4744 | |
3e44f09d VZ |
4745 | if test "$enableval" = yes; then |
4746 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4747 | else | |
4748 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4749 | fi | |
a0b9e27f | 4750 | |
3e44f09d | 4751 | else |
a0b9e27f | 4752 | |
3e44f09d VZ |
4753 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
4754 | if test "x$LINE" != x ; then | |
4755 | eval "DEFAULT_$LINE" | |
4756 | else | |
4757 | no_cache=1 | |
4758 | fi | |
4759 | ||
4760 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
a0b9e27f MB |
4761 | |
4762 | fi | |
3e44f09d VZ |
4763 | |
4764 | ||
4765 | eval "$ac_cv_use_system_options" | |
4766 | if test "$no_cache" != 1; then | |
4767 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4768 | fi | |
4769 | ||
4770 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
a0b9e27f | 4771 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 4772 | else |
a0b9e27f | 4773 | echo "$ac_t""no" 1>&6 |
3e44f09d | 4774 | fi |
a0b9e27f | 4775 | |
8284b0c5 | 4776 | |
52127426 | 4777 | |
5005acfe VZ |
4778 | enablestring= |
4779 | echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6 | |
3c907f20 | 4780 | echo "configure:4781: checking for --${enablestring:-enable}-url" >&5 |
4cdb0ab0 VS |
4781 | no_cache=0 |
4782 | # Check whether --enable-url or --disable-url was given. | |
4783 | if test "${enable_url+set}" = set; then | |
4784 | enableval="$enable_url" | |
a0b9e27f | 4785 | |
4cdb0ab0 VS |
4786 | if test "$enableval" = yes; then |
4787 | ac_cv_use_url='wxUSE_URL=yes' | |
4788 | else | |
4789 | ac_cv_use_url='wxUSE_URL=no' | |
4790 | fi | |
a0b9e27f | 4791 | |
4cdb0ab0 | 4792 | else |
a0b9e27f | 4793 | |
4cdb0ab0 VS |
4794 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
4795 | if test "x$LINE" != x ; then | |
4796 | eval "DEFAULT_$LINE" | |
4797 | else | |
4798 | no_cache=1 | |
4799 | fi | |
4800 | ||
4801 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
a0b9e27f MB |
4802 | |
4803 | fi | |
4cdb0ab0 VS |
4804 | |
4805 | ||
4806 | eval "$ac_cv_use_url" | |
4807 | if test "$no_cache" != 1; then | |
4808 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4809 | fi | |
4810 | ||
4811 | if test "$wxUSE_URL" = yes; then | |
a0b9e27f | 4812 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4813 | else |
a0b9e27f | 4814 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4815 | fi |
a0b9e27f | 4816 | |
4cdb0ab0 | 4817 | |
5005acfe VZ |
4818 | enablestring= |
4819 | echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6 | |
3c907f20 | 4820 | echo "configure:4821: checking for --${enablestring:-enable}-protocol" >&5 |
4cdb0ab0 VS |
4821 | no_cache=0 |
4822 | # Check whether --enable-protocol or --disable-protocol was given. | |
4823 | if test "${enable_protocol+set}" = set; then | |
4824 | enableval="$enable_protocol" | |
a0b9e27f | 4825 | |
4cdb0ab0 VS |
4826 | if test "$enableval" = yes; then |
4827 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4828 | else | |
4829 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4830 | fi | |
a0b9e27f | 4831 | |
4cdb0ab0 | 4832 | else |
a0b9e27f | 4833 | |
4cdb0ab0 VS |
4834 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4835 | if test "x$LINE" != x ; then | |
4836 | eval "DEFAULT_$LINE" | |
4837 | else | |
4838 | no_cache=1 | |
4839 | fi | |
4840 | ||
4841 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
4842 | |
4843 | fi | |
4cdb0ab0 VS |
4844 | |
4845 | ||
4846 | eval "$ac_cv_use_protocol" | |
4847 | if test "$no_cache" != 1; then | |
4848 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4849 | fi | |
4850 | ||
4851 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 4852 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4853 | else |
a0b9e27f | 4854 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4855 | fi |
a0b9e27f | 4856 | |
4cdb0ab0 | 4857 | |
5005acfe VZ |
4858 | enablestring= |
4859 | echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6 | |
3c907f20 | 4860 | echo "configure:4861: checking for --${enablestring:-enable}-protocol_http" >&5 |
4cdb0ab0 VS |
4861 | no_cache=0 |
4862 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4863 | if test "${enable_protocol_http+set}" = set; then | |
4864 | enableval="$enable_protocol_http" | |
a0b9e27f | 4865 | |
4cdb0ab0 VS |
4866 | if test "$enableval" = yes; then |
4867 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4868 | else | |
4869 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4870 | fi | |
a0b9e27f | 4871 | |
4cdb0ab0 | 4872 | else |
a0b9e27f | 4873 | |
4cdb0ab0 VS |
4874 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4875 | if test "x$LINE" != x ; then | |
4876 | eval "DEFAULT_$LINE" | |
4877 | else | |
4878 | no_cache=1 | |
4879 | fi | |
4880 | ||
4881 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
4882 | |
4883 | fi | |
4cdb0ab0 VS |
4884 | |
4885 | ||
4886 | eval "$ac_cv_use_protocol_http" | |
4887 | if test "$no_cache" != 1; then | |
4888 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4889 | fi | |
4890 | ||
4891 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 4892 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4893 | else |
a0b9e27f | 4894 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4895 | fi |
a0b9e27f | 4896 | |
4cdb0ab0 | 4897 | |
5005acfe VZ |
4898 | enablestring= |
4899 | echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6 | |
3c907f20 | 4900 | echo "configure:4901: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
4cdb0ab0 VS |
4901 | no_cache=0 |
4902 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4903 | if test "${enable_protocol_ftp+set}" = set; then | |
4904 | enableval="$enable_protocol_ftp" | |
a0b9e27f | 4905 | |
4cdb0ab0 VS |
4906 | if test "$enableval" = yes; then |
4907 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4908 | else | |
4909 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4910 | fi | |
a0b9e27f | 4911 | |
4cdb0ab0 | 4912 | else |
a0b9e27f | 4913 | |
4cdb0ab0 VS |
4914 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4915 | if test "x$LINE" != x ; then | |
4916 | eval "DEFAULT_$LINE" | |
4917 | else | |
4918 | no_cache=1 | |
4919 | fi | |
4920 | ||
4921 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
4922 | |
4923 | fi | |
4cdb0ab0 VS |
4924 | |
4925 | ||
4926 | eval "$ac_cv_use_protocol_ftp" | |
4927 | if test "$no_cache" != 1; then | |
4928 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4929 | fi | |
4930 | ||
4931 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 4932 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4933 | else |
a0b9e27f | 4934 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4935 | fi |
a0b9e27f | 4936 | |
4cdb0ab0 | 4937 | |
5005acfe VZ |
4938 | enablestring= |
4939 | echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6 | |
3c907f20 | 4940 | echo "configure:4941: checking for --${enablestring:-enable}-protocol_file" >&5 |
4cdb0ab0 VS |
4941 | no_cache=0 |
4942 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4943 | if test "${enable_protocol_file+set}" = set; then | |
4944 | enableval="$enable_protocol_file" | |
a0b9e27f | 4945 | |
4cdb0ab0 VS |
4946 | if test "$enableval" = yes; then |
4947 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4948 | else | |
4949 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4950 | fi | |
a0b9e27f | 4951 | |
4cdb0ab0 | 4952 | else |
a0b9e27f | 4953 | |
4cdb0ab0 VS |
4954 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4955 | if test "x$LINE" != x ; then | |
4956 | eval "DEFAULT_$LINE" | |
4957 | else | |
4958 | no_cache=1 | |
4959 | fi | |
4960 | ||
4961 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
4962 | |
4963 | fi | |
4cdb0ab0 VS |
4964 | |
4965 | ||
4966 | eval "$ac_cv_use_protocol_file" | |
4967 | if test "$no_cache" != 1; then | |
4968 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4969 | fi | |
4970 | ||
4971 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 4972 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4973 | else |
a0b9e27f | 4974 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4975 | fi |
a0b9e27f | 4976 | |
52127426 | 4977 | |
8284b0c5 MB |
4978 | |
4979 | ||
4980 | ||
5005acfe VZ |
4981 | enablestring= |
4982 | echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6 | |
3c907f20 | 4983 | echo "configure:4984: checking for --${enablestring:-enable}-threads" >&5 |
10f2d63a VZ |
4984 | no_cache=0 |
4985 | # Check whether --enable-threads or --disable-threads was given. | |
4986 | if test "${enable_threads+set}" = set; then | |
4987 | enableval="$enable_threads" | |
a0b9e27f | 4988 | |
10f2d63a VZ |
4989 | if test "$enableval" = yes; then |
4990 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4991 | else | |
4992 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4993 | fi | |
a0b9e27f | 4994 | |
10f2d63a | 4995 | else |
a0b9e27f | 4996 | |
10f2d63a VZ |
4997 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4998 | if test "x$LINE" != x ; then | |
4999 | eval "DEFAULT_$LINE" | |
5000 | else | |
5001 | no_cache=1 | |
5002 | fi | |
5003 | ||
5004 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
a0b9e27f MB |
5005 | |
5006 | fi | |
10f2d63a VZ |
5007 | |
5008 | ||
5009 | eval "$ac_cv_use_threads" | |
5010 | if test "$no_cache" != 1; then | |
5011 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5012 | fi | |
5013 | ||
5014 | if test "$wxUSE_THREADS" = yes; then | |
a0b9e27f | 5015 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5016 | else |
a0b9e27f | 5017 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5018 | fi |
a0b9e27f | 5019 | |
10f2d63a | 5020 | |
b12915c1 VZ |
5021 | if test "$wxUSE_GUI" = "yes"; then |
5022 | ||
8284b0c5 MB |
5023 | |
5024 | ||
5005acfe VZ |
5025 | enablestring= |
5026 | echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6 | |
3c907f20 | 5027 | echo "configure:5028: checking for --${enablestring:-enable}-docview" >&5 |
10f2d63a VZ |
5028 | no_cache=0 |
5029 | # Check whether --enable-docview or --disable-docview was given. | |
5030 | if test "${enable_docview+set}" = set; then | |
5031 | enableval="$enable_docview" | |
a0b9e27f | 5032 | |
10f2d63a VZ |
5033 | if test "$enableval" = yes; then |
5034 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5035 | else | |
5036 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5037 | fi | |
a0b9e27f | 5038 | |
10f2d63a | 5039 | else |
a0b9e27f | 5040 | |
10f2d63a VZ |
5041 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5042 | if test "x$LINE" != x ; then | |
5043 | eval "DEFAULT_$LINE" | |
5044 | else | |
5045 | no_cache=1 | |
5046 | fi | |
5047 | ||
5048 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
a0b9e27f MB |
5049 | |
5050 | fi | |
10f2d63a VZ |
5051 | |
5052 | ||
5053 | eval "$ac_cv_use_docview" | |
5054 | if test "$no_cache" != 1; then | |
5055 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5056 | fi | |
5057 | ||
5058 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
a0b9e27f | 5059 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5060 | else |
a0b9e27f | 5061 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5062 | fi |
a0b9e27f | 5063 | |
10f2d63a | 5064 | |
5005acfe VZ |
5065 | enablestring= |
5066 | echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6 | |
3c907f20 | 5067 | echo "configure:5068: checking for --${enablestring:-enable}-help" >&5 |
10f2d63a VZ |
5068 | no_cache=0 |
5069 | # Check whether --enable-help or --disable-help was given. | |
5070 | if test "${enable_help+set}" = set; then | |
5071 | enableval="$enable_help" | |
a0b9e27f | 5072 | |
10f2d63a VZ |
5073 | if test "$enableval" = yes; then |
5074 | ac_cv_use_help='wxUSE_HELP=yes' | |
5075 | else | |
5076 | ac_cv_use_help='wxUSE_HELP=no' | |
5077 | fi | |
a0b9e27f | 5078 | |
10f2d63a | 5079 | else |
a0b9e27f | 5080 | |
10f2d63a VZ |
5081 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5082 | if test "x$LINE" != x ; then | |
5083 | eval "DEFAULT_$LINE" | |
5084 | else | |
5085 | no_cache=1 | |
5086 | fi | |
5087 | ||
5088 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
a0b9e27f MB |
5089 | |
5090 | fi | |
10f2d63a VZ |
5091 | |
5092 | ||
5093 | eval "$ac_cv_use_help" | |
5094 | if test "$no_cache" != 1; then | |
5095 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5096 | fi | |
5097 | ||
5098 | if test "$wxUSE_HELP" = yes; then | |
a0b9e27f | 5099 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5100 | else |
a0b9e27f | 5101 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5102 | fi |
a0b9e27f | 5103 | |
10f2d63a | 5104 | |
5005acfe VZ |
5105 | enablestring= |
5106 | echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6 | |
3c907f20 | 5107 | echo "configure:5108: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
29fd3c0c VS |
5108 | no_cache=0 |
5109 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5110 | if test "${enable_mshtmlhelp+set}" = set; then | |
5111 | enableval="$enable_mshtmlhelp" | |
a0b9e27f | 5112 | |
29fd3c0c VS |
5113 | if test "$enableval" = yes; then |
5114 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5115 | else | |
5116 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5117 | fi | |
a0b9e27f | 5118 | |
29fd3c0c | 5119 | else |
a0b9e27f | 5120 | |
29fd3c0c VS |
5121 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5122 | if test "x$LINE" != x ; then | |
5123 | eval "DEFAULT_$LINE" | |
5124 | else | |
5125 | no_cache=1 | |
5126 | fi | |
5127 | ||
5128 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
a0b9e27f MB |
5129 | |
5130 | fi | |
29fd3c0c VS |
5131 | |
5132 | ||
5133 | eval "$ac_cv_use_mshtmlhelp" | |
5134 | if test "$no_cache" != 1; then | |
5135 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5136 | fi | |
5137 | ||
5138 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
a0b9e27f | 5139 | echo "$ac_t""yes" 1>&6 |
29fd3c0c | 5140 | else |
a0b9e27f | 5141 | echo "$ac_t""no" 1>&6 |
29fd3c0c | 5142 | fi |
a0b9e27f | 5143 | |
29fd3c0c | 5144 | |
5005acfe VZ |
5145 | enablestring= |
5146 | echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6 | |
3c907f20 | 5147 | echo "configure:5148: checking for --${enablestring:-enable}-html" >&5 |
3379ed37 VZ |
5148 | no_cache=0 |
5149 | # Check whether --enable-html or --disable-html was given. | |
5150 | if test "${enable_html+set}" = set; then | |
5151 | enableval="$enable_html" | |
a0b9e27f | 5152 | |
3379ed37 VZ |
5153 | if test "$enableval" = yes; then |
5154 | ac_cv_use_html='wxUSE_HTML=yes' | |
5155 | else | |
5156 | ac_cv_use_html='wxUSE_HTML=no' | |
5157 | fi | |
a0b9e27f | 5158 | |
3379ed37 | 5159 | else |
a0b9e27f | 5160 | |
3379ed37 VZ |
5161 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
5162 | if test "x$LINE" != x ; then | |
5163 | eval "DEFAULT_$LINE" | |
5164 | else | |
5165 | no_cache=1 | |
5166 | fi | |
5167 | ||
5168 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
a0b9e27f MB |
5169 | |
5170 | fi | |
3379ed37 VZ |
5171 | |
5172 | ||
5173 | eval "$ac_cv_use_html" | |
5174 | if test "$no_cache" != 1; then | |
5175 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5176 | fi | |
5177 | ||
5178 | if test "$wxUSE_HTML" = yes; then | |
a0b9e27f | 5179 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5180 | else |
a0b9e27f | 5181 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5182 | fi |
a0b9e27f | 5183 | |
3379ed37 | 5184 | |
5005acfe VZ |
5185 | enablestring= |
5186 | echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6 | |
3c907f20 | 5187 | echo "configure:5188: checking for --${enablestring:-enable}-htmlhelp" >&5 |
3379ed37 VZ |
5188 | no_cache=0 |
5189 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5190 | if test "${enable_htmlhelp+set}" = set; then | |
5191 | enableval="$enable_htmlhelp" | |
a0b9e27f | 5192 | |
3379ed37 VZ |
5193 | if test "$enableval" = yes; then |
5194 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5195 | else | |
5196 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5197 | fi | |
a0b9e27f | 5198 | |
3379ed37 | 5199 | else |
a0b9e27f | 5200 | |
3379ed37 VZ |
5201 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5202 | if test "x$LINE" != x ; then | |
5203 | eval "DEFAULT_$LINE" | |
5204 | else | |
5205 | no_cache=1 | |
5206 | fi | |
5207 | ||
5208 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
a0b9e27f MB |
5209 | |
5210 | fi | |
3379ed37 VZ |
5211 | |
5212 | ||
5213 | eval "$ac_cv_use_htmlhelp" | |
5214 | if test "$no_cache" != 1; then | |
5215 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5216 | fi | |
5217 | ||
5218 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
a0b9e27f | 5219 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5220 | else |
a0b9e27f | 5221 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5222 | fi |
a0b9e27f | 5223 | |
3379ed37 | 5224 | |
5005acfe VZ |
5225 | enablestring= |
5226 | echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6 | |
3c907f20 | 5227 | echo "configure:5228: checking for --${enablestring:-enable}-constraints" >&5 |
10f2d63a VZ |
5228 | no_cache=0 |
5229 | # Check whether --enable-constraints or --disable-constraints was given. | |
5230 | if test "${enable_constraints+set}" = set; then | |
5231 | enableval="$enable_constraints" | |
a0b9e27f | 5232 | |
10f2d63a VZ |
5233 | if test "$enableval" = yes; then |
5234 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5235 | else | |
5236 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5237 | fi | |
a0b9e27f | 5238 | |
10f2d63a | 5239 | else |
a0b9e27f | 5240 | |
10f2d63a VZ |
5241 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5242 | if test "x$LINE" != x ; then | |
5243 | eval "DEFAULT_$LINE" | |
5244 | else | |
5245 | no_cache=1 | |
5246 | fi | |
5247 | ||
5248 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
a0b9e27f MB |
5249 | |
5250 | fi | |
10f2d63a VZ |
5251 | |
5252 | ||
5253 | eval "$ac_cv_use_constraints" | |
5254 | if test "$no_cache" != 1; then | |
5255 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5256 | fi | |
5257 | ||
5258 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
a0b9e27f | 5259 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5260 | else |
a0b9e27f | 5261 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5262 | fi |
a0b9e27f | 5263 | |
10f2d63a | 5264 | |
5005acfe VZ |
5265 | enablestring= |
5266 | echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6 | |
3c907f20 | 5267 | echo "configure:5268: checking for --${enablestring:-enable}-printarch" >&5 |
10f2d63a VZ |
5268 | no_cache=0 |
5269 | # Check whether --enable-printarch or --disable-printarch was given. | |
5270 | if test "${enable_printarch+set}" = set; then | |
5271 | enableval="$enable_printarch" | |
a0b9e27f | 5272 | |
10f2d63a VZ |
5273 | if test "$enableval" = yes; then |
5274 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5275 | else | |
5276 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5277 | fi | |
a0b9e27f | 5278 | |
10f2d63a | 5279 | else |
a0b9e27f | 5280 | |
10f2d63a VZ |
5281 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5282 | if test "x$LINE" != x ; then | |
5283 | eval "DEFAULT_$LINE" | |
5284 | else | |
5285 | no_cache=1 | |
5286 | fi | |
5287 | ||
5288 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
a0b9e27f MB |
5289 | |
5290 | fi | |
10f2d63a VZ |
5291 | |
5292 | ||
5293 | eval "$ac_cv_use_printarch" | |
5294 | if test "$no_cache" != 1; then | |
5295 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5296 | fi | |
5297 | ||
5298 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
a0b9e27f | 5299 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5300 | else |
a0b9e27f | 5301 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5302 | fi |
a0b9e27f | 5303 | |
10f2d63a | 5304 | |
5005acfe VZ |
5305 | enablestring= |
5306 | echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6 | |
3c907f20 | 5307 | echo "configure:5308: checking for --${enablestring:-enable}-mdi" >&5 |
10f2d63a VZ |
5308 | no_cache=0 |
5309 | # Check whether --enable-mdi or --disable-mdi was given. | |
5310 | if test "${enable_mdi+set}" = set; then | |
5311 | enableval="$enable_mdi" | |
a0b9e27f | 5312 | |
10f2d63a VZ |
5313 | if test "$enableval" = yes; then |
5314 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5315 | else | |
5316 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5317 | fi | |
a0b9e27f | 5318 | |
10f2d63a | 5319 | else |
a0b9e27f | 5320 | |
10f2d63a VZ |
5321 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5322 | if test "x$LINE" != x ; then | |
5323 | eval "DEFAULT_$LINE" | |
5324 | else | |
5325 | no_cache=1 | |
5326 | fi | |
5327 | ||
5328 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
a0b9e27f MB |
5329 | |
5330 | fi | |
10f2d63a VZ |
5331 | |
5332 | ||
5333 | eval "$ac_cv_use_mdi" | |
5334 | if test "$no_cache" != 1; then | |
5335 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5336 | fi | |
5337 | ||
5338 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
a0b9e27f | 5339 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5340 | else |
a0b9e27f | 5341 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5342 | fi |
a0b9e27f | 5343 | |
698dcdb6 | 5344 | |
5005acfe VZ |
5345 | enablestring= |
5346 | echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6 | |
3c907f20 | 5347 | echo "configure:5348: checking for --${enablestring:-enable}-loggui" >&5 |
1e6feb95 VZ |
5348 | no_cache=0 |
5349 | # Check whether --enable-loggui or --disable-loggui was given. | |
5350 | if test "${enable_loggui+set}" = set; then | |
5351 | enableval="$enable_loggui" | |
a0b9e27f | 5352 | |
1e6feb95 VZ |
5353 | if test "$enableval" = yes; then |
5354 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5355 | else | |
5356 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5357 | fi | |
a0b9e27f | 5358 | |
1e6feb95 | 5359 | else |
a0b9e27f | 5360 | |
1e6feb95 VZ |
5361 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
5362 | if test "x$LINE" != x ; then | |
5363 | eval "DEFAULT_$LINE" | |
5364 | else | |
5365 | no_cache=1 | |
5366 | fi | |
5367 | ||
5368 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
a0b9e27f MB |
5369 | |
5370 | fi | |
1e6feb95 VZ |
5371 | |
5372 | ||
5373 | eval "$ac_cv_use_loggui" | |
5374 | if test "$no_cache" != 1; then | |
5375 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5376 | fi | |
5377 | ||
5378 | if test "$wxUSE_LOGGUI" = yes; then | |
a0b9e27f | 5379 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5380 | else |
a0b9e27f | 5381 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5382 | fi |
a0b9e27f | 5383 | |
1e6feb95 | 5384 | |
5005acfe VZ |
5385 | enablestring= |
5386 | echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6 | |
3c907f20 | 5387 | echo "configure:5388: checking for --${enablestring:-enable}-logwin" >&5 |
1e6feb95 VZ |
5388 | no_cache=0 |
5389 | # Check whether --enable-logwin or --disable-logwin was given. | |
5390 | if test "${enable_logwin+set}" = set; then | |
5391 | enableval="$enable_logwin" | |
a0b9e27f | 5392 | |
1e6feb95 VZ |
5393 | if test "$enableval" = yes; then |
5394 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5395 | else | |
5396 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5397 | fi | |
a0b9e27f | 5398 | |
1e6feb95 | 5399 | else |
a0b9e27f | 5400 | |
1e6feb95 VZ |
5401 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
5402 | if test "x$LINE" != x ; then | |
5403 | eval "DEFAULT_$LINE" | |
5404 | else | |
5405 | no_cache=1 | |
5406 | fi | |
5407 | ||
5408 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
a0b9e27f MB |
5409 | |
5410 | fi | |
1e6feb95 VZ |
5411 | |
5412 | ||
5413 | eval "$ac_cv_use_logwin" | |
5414 | if test "$no_cache" != 1; then | |
5415 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5416 | fi | |
5417 | ||
5418 | if test "$wxUSE_LOGWINDOW" = yes; then | |
a0b9e27f | 5419 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5420 | else |
a0b9e27f | 5421 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5422 | fi |
a0b9e27f | 5423 | |
1e6feb95 | 5424 | |
5005acfe VZ |
5425 | enablestring= |
5426 | echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6 | |
3c907f20 | 5427 | echo "configure:5428: checking for --${enablestring:-enable}-logdialog" >&5 |
69d27ff7 MB |
5428 | no_cache=0 |
5429 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5430 | if test "${enable_logdialog+set}" = set; then | |
5431 | enableval="$enable_logdialog" | |
a0b9e27f | 5432 | |
69d27ff7 MB |
5433 | if test "$enableval" = yes; then |
5434 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5435 | else | |
5436 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5437 | fi | |
a0b9e27f | 5438 | |
69d27ff7 | 5439 | else |
a0b9e27f | 5440 | |
69d27ff7 MB |
5441 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
5442 | if test "x$LINE" != x ; then | |
5443 | eval "DEFAULT_$LINE" | |
5444 | else | |
5445 | no_cache=1 | |
5446 | fi | |
5447 | ||
5448 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
a0b9e27f MB |
5449 | |
5450 | fi | |
69d27ff7 MB |
5451 | |
5452 | ||
5453 | eval "$ac_cv_use_logdialog" | |
5454 | if test "$no_cache" != 1; then | |
5455 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5456 | fi | |
5457 | ||
5458 | if test "$wxUSE_LOGDIALOG" = yes; then | |
a0b9e27f | 5459 | echo "$ac_t""yes" 1>&6 |
69d27ff7 | 5460 | else |
a0b9e27f | 5461 | echo "$ac_t""no" 1>&6 |
69d27ff7 | 5462 | fi |
a0b9e27f | 5463 | |
8284b0c5 | 5464 | |
52127426 | 5465 | |
5005acfe VZ |
5466 | enablestring= |
5467 | echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6 | |
3c907f20 | 5468 | echo "configure:5469: checking for --${enablestring:-enable}-postscript" >&5 |
10f2d63a VZ |
5469 | no_cache=0 |
5470 | # Check whether --enable-postscript or --disable-postscript was given. | |
5471 | if test "${enable_postscript+set}" = set; then | |
5472 | enableval="$enable_postscript" | |
a0b9e27f | 5473 | |
10f2d63a VZ |
5474 | if test "$enableval" = yes; then |
5475 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5476 | else | |
5477 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5478 | fi | |
a0b9e27f | 5479 | |
10f2d63a | 5480 | else |
a0b9e27f | 5481 | |
10f2d63a VZ |
5482 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5483 | if test "x$LINE" != x ; then | |
5484 | eval "DEFAULT_$LINE" | |
5485 | else | |
5486 | no_cache=1 | |
5487 | fi | |
5488 | ||
5489 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
a0b9e27f MB |
5490 | |
5491 | fi | |
10f2d63a VZ |
5492 | |
5493 | ||
5494 | eval "$ac_cv_use_postscript" | |
5495 | if test "$no_cache" != 1; then | |
5496 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5497 | fi | |
5498 | ||
5499 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
a0b9e27f | 5500 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5501 | else |
a0b9e27f | 5502 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5503 | fi |
a0b9e27f | 5504 | |
8284b0c5 MB |
5505 | |
5506 | ||
52127426 | 5507 | |
8284b0c5 | 5508 | |
5005acfe | 5509 | enablestring= |
3c907f20 VZ |
5510 | echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6 |
5511 | echo "configure:5512: checking for --${enablestring:-enable}-prologio" >&5 | |
10f2d63a | 5512 | no_cache=0 |
3c907f20 VZ |
5513 | # Check whether --enable-prologio or --disable-prologio was given. |
5514 | if test "${enable_prologio+set}" = set; then | |
5515 | enableval="$enable_prologio" | |
a0b9e27f | 5516 | |
10f2d63a | 5517 | if test "$enableval" = yes; then |
3c907f20 | 5518 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' |
10f2d63a | 5519 | else |
3c907f20 | 5520 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' |
10f2d63a | 5521 | fi |
a0b9e27f | 5522 | |
10f2d63a | 5523 | else |
a0b9e27f | 5524 | |
3c907f20 | 5525 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
10f2d63a VZ |
5526 | if test "x$LINE" != x ; then |
5527 | eval "DEFAULT_$LINE" | |
5528 | else | |
5529 | no_cache=1 | |
5530 | fi | |
5531 | ||
3c907f20 | 5532 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO |
a0b9e27f MB |
5533 | |
5534 | fi | |
10f2d63a VZ |
5535 | |
5536 | ||
3c907f20 | 5537 | eval "$ac_cv_use_prologio" |
10f2d63a | 5538 | if test "$no_cache" != 1; then |
3c907f20 | 5539 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5540 | fi |
5541 | ||
3c907f20 | 5542 | if test "$wxUSE_PROLOGIO" = yes; then |
a0b9e27f | 5543 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5544 | else |
a0b9e27f | 5545 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5546 | fi |
a0b9e27f | 5547 | |
8284b0c5 | 5548 | |
5005acfe | 5549 | enablestring= |
3c907f20 VZ |
5550 | echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6 |
5551 | echo "configure:5552: checking for --${enablestring:-enable}-resources" >&5 | |
10f2d63a | 5552 | no_cache=0 |
3c907f20 VZ |
5553 | # Check whether --enable-resources or --disable-resources was given. |
5554 | if test "${enable_resources+set}" = set; then | |
5555 | enableval="$enable_resources" | |
a0b9e27f | 5556 | |
10f2d63a | 5557 | if test "$enableval" = yes; then |
3c907f20 | 5558 | ac_cv_use_resources='wxUSE_RESOURCES=yes' |
10f2d63a | 5559 | else |
3c907f20 | 5560 | ac_cv_use_resources='wxUSE_RESOURCES=no' |
10f2d63a | 5561 | fi |
a0b9e27f | 5562 | |
10f2d63a | 5563 | else |
a0b9e27f | 5564 | |
3c907f20 | 5565 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
10f2d63a VZ |
5566 | if test "x$LINE" != x ; then |
5567 | eval "DEFAULT_$LINE" | |
5568 | else | |
5569 | no_cache=1 | |
5570 | fi | |
5571 | ||
3c907f20 | 5572 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES |
a0b9e27f MB |
5573 | |
5574 | fi | |
10f2d63a VZ |
5575 | |
5576 | ||
3c907f20 | 5577 | eval "$ac_cv_use_resources" |
10f2d63a | 5578 | if test "$no_cache" != 1; then |
3c907f20 | 5579 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5580 | fi |
5581 | ||
3c907f20 | 5582 | if test "$wxUSE_RESOURCES" = yes; then |
a0b9e27f | 5583 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5584 | else |
a0b9e27f | 5585 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5586 | fi |
a0b9e27f | 5587 | |
8284b0c5 MB |
5588 | |
5589 | ||
52127426 | 5590 | |
5005acfe VZ |
5591 | enablestring= |
5592 | echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6 | |
3c907f20 | 5593 | echo "configure:5594: checking for --${enablestring:-enable}-clipboard" >&5 |
10f2d63a VZ |
5594 | no_cache=0 |
5595 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5596 | if test "${enable_clipboard+set}" = set; then | |
5597 | enableval="$enable_clipboard" | |
a0b9e27f | 5598 | |
10f2d63a VZ |
5599 | if test "$enableval" = yes; then |
5600 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5601 | else | |
5602 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5603 | fi | |
a0b9e27f | 5604 | |
10f2d63a | 5605 | else |
a0b9e27f | 5606 | |
10f2d63a VZ |
5607 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5608 | if test "x$LINE" != x ; then | |
5609 | eval "DEFAULT_$LINE" | |
5610 | else | |
5611 | no_cache=1 | |
5612 | fi | |
5613 | ||
5614 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
a0b9e27f MB |
5615 | |
5616 | fi | |
10f2d63a VZ |
5617 | |
5618 | ||
5619 | eval "$ac_cv_use_clipboard" | |
5620 | if test "$no_cache" != 1; then | |
5621 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5622 | fi | |
5623 | ||
5624 | if test "$wxUSE_CLIPBOARD" = yes; then | |
a0b9e27f | 5625 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5626 | else |
a0b9e27f | 5627 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5628 | fi |
a0b9e27f | 5629 | |
10f2d63a | 5630 | |
5005acfe VZ |
5631 | enablestring= |
5632 | echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6 | |
3c907f20 | 5633 | echo "configure:5634: checking for --${enablestring:-enable}-dnd" >&5 |
10f2d63a VZ |
5634 | no_cache=0 |
5635 | # Check whether --enable-dnd or --disable-dnd was given. | |
5636 | if test "${enable_dnd+set}" = set; then | |
5637 | enableval="$enable_dnd" | |
a0b9e27f | 5638 | |
10f2d63a VZ |
5639 | if test "$enableval" = yes; then |
5640 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5641 | else | |
5642 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5643 | fi | |
a0b9e27f | 5644 | |
10f2d63a | 5645 | else |
a0b9e27f | 5646 | |
10f2d63a VZ |
5647 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5648 | if test "x$LINE" != x ; then | |
5649 | eval "DEFAULT_$LINE" | |
5650 | else | |
5651 | no_cache=1 | |
5652 | fi | |
5653 | ||
5654 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
a0b9e27f MB |
5655 | |
5656 | fi | |
10f2d63a VZ |
5657 | |
5658 | ||
5659 | eval "$ac_cv_use_dnd" | |
5660 | if test "$no_cache" != 1; then | |
5661 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5662 | fi | |
5663 | ||
5664 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
a0b9e27f | 5665 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5666 | else |
a0b9e27f | 5667 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5668 | fi |
a0b9e27f | 5669 | |
10f2d63a | 5670 | |
5005acfe VZ |
5671 | enablestring= |
5672 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
3c907f20 | 5673 | echo "configure:5674: checking for --${enablestring:-enable}-metafile" >&5 |
b64f0a5f RL |
5674 | no_cache=0 |
5675 | # Check whether --enable-metafile or --disable-metafile was given. | |
5676 | if test "${enable_metafile+set}" = set; then | |
5677 | enableval="$enable_metafile" | |
a0b9e27f | 5678 | |
b64f0a5f RL |
5679 | if test "$enableval" = yes; then |
5680 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5681 | else | |
5682 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5683 | fi | |
a0b9e27f | 5684 | |
b64f0a5f | 5685 | else |
a0b9e27f | 5686 | |
b64f0a5f RL |
5687 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5688 | if test "x$LINE" != x ; then | |
5689 | eval "DEFAULT_$LINE" | |
5690 | else | |
5691 | no_cache=1 | |
5692 | fi | |
5693 | ||
5694 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
5695 | |
5696 | fi | |
b64f0a5f RL |
5697 | |
5698 | ||
5699 | eval "$ac_cv_use_metafile" | |
5700 | if test "$no_cache" != 1; then | |
5701 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5702 | fi | |
5703 | ||
5704 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 5705 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5706 | else |
a0b9e27f | 5707 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5708 | fi |
a0b9e27f | 5709 | |
52127426 | 5710 | |
8284b0c5 | 5711 | |
52127426 | 5712 | |
8284b0c5 | 5713 | |
5005acfe VZ |
5714 | enablestring= |
5715 | echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6 | |
3c907f20 | 5716 | echo "configure:5717: checking for --${enablestring:-enable}-controls" >&5 |
10f2d63a VZ |
5717 | no_cache=0 |
5718 | # Check whether --enable-controls or --disable-controls was given. | |
5719 | if test "${enable_controls+set}" = set; then | |
5720 | enableval="$enable_controls" | |
a0b9e27f | 5721 | |
10f2d63a VZ |
5722 | if test "$enableval" = yes; then |
5723 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5724 | else | |
5725 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5726 | fi | |
a0b9e27f | 5727 | |
10f2d63a | 5728 | else |
a0b9e27f | 5729 | |
10f2d63a VZ |
5730 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5731 | if test "x$LINE" != x ; then | |
5732 | eval "DEFAULT_$LINE" | |
5733 | else | |
5734 | no_cache=1 | |
5735 | fi | |
5736 | ||
5737 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
a0b9e27f MB |
5738 | |
5739 | fi | |
10f2d63a VZ |
5740 | |
5741 | ||
5742 | eval "$ac_cv_use_controls" | |
5743 | if test "$no_cache" != 1; then | |
5744 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5745 | fi | |
5746 | ||
5747 | if test "$wxUSE_CONTROLS" = yes; then | |
a0b9e27f | 5748 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5749 | else |
a0b9e27f | 5750 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5751 | fi |
a0b9e27f | 5752 | |
10f2d63a VZ |
5753 | |
5754 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5755 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5756 | DEFAULT_wxUSE_BMPBUTTON=yes |
5757 | DEFAULT_wxUSE_BUTTON=yes | |
5758 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5759 | DEFAULT_wxUSE_CARET=yes |
5760 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5761 | DEFAULT_wxUSE_CHECKBOX=yes |
5762 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5763 | DEFAULT_wxUSE_CHOICE=yes | |
5764 | DEFAULT_wxUSE_GAUGE=yes | |
5765 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a VZ |
5766 | DEFAULT_wxUSE_IMAGLIST=yes |
5767 | DEFAULT_wxUSE_LISTBOX=yes | |
5768 | DEFAULT_wxUSE_LISTCTRL=yes | |
5769 | DEFAULT_wxUSE_NOTEBOOK=yes | |
5770 | DEFAULT_wxUSE_RADIOBOX=yes | |
5771 | DEFAULT_wxUSE_RADIOBTN=yes | |
5772 | DEFAULT_wxUSE_SASH=yes | |
5773 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5774 | DEFAULT_wxUSE_SLIDER=yes | |
5775 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5776 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5777 | DEFAULT_wxUSE_SPLITTER=yes |
5778 | DEFAULT_wxUSE_STATBMP=yes | |
5779 | DEFAULT_wxUSE_STATBOX=yes | |
5780 | DEFAULT_wxUSE_STATLINE=yes | |
5781 | DEFAULT_wxUSE_STATUSBAR=yes | |
5782 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5783 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5784 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5785 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5786 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5787 | DEFAULT_wxUSE_TOOLTIPS=yes |
5788 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5789 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5790 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5791 | elif test "$wxUSE_CONTROLS" = "no"; then |
5792 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5793 | DEFAULT_wxUSE_BMPBUTTON=no |
5794 | DEFAULT_wxUSE_BUTTON=no | |
5795 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5796 | DEFAULT_wxUSE_CARET=no |
5797 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5798 | DEFAULT_wxUSE_CHECKBOX=no |
5799 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5800 | DEFAULT_wxUSE_CHOICE=no | |
5801 | DEFAULT_wxUSE_GAUGE=no | |
5802 | DEFAULT_wxUSE_GRID=no | |
10f2d63a VZ |
5803 | DEFAULT_wxUSE_IMAGLIST=no |
5804 | DEFAULT_wxUSE_LISTBOX=no | |
5805 | DEFAULT_wxUSE_LISTCTRL=no | |
5806 | DEFAULT_wxUSE_NOTEBOOK=no | |
5807 | DEFAULT_wxUSE_RADIOBOX=no | |
5808 | DEFAULT_wxUSE_RADIOBTN=no | |
5809 | DEFAULT_wxUSE_SASH=no | |
5810 | DEFAULT_wxUSE_SCROLLBAR=no | |
5811 | DEFAULT_wxUSE_SLIDER=no | |
5812 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5813 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5814 | DEFAULT_wxUSE_SPLITTER=no |
5815 | DEFAULT_wxUSE_STATBMP=no | |
5816 | DEFAULT_wxUSE_STATBOX=no | |
5817 | DEFAULT_wxUSE_STATLINE=no | |
5818 | DEFAULT_wxUSE_STATUSBAR=no | |
5819 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5820 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5821 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5822 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5823 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5824 | DEFAULT_wxUSE_TOOLTIPS=no |
5825 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5826 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5827 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5828 | fi |
5829 | ||
ac0c4cc3 DE |
5830 | ## FIXME: This is a blatant hack |
5831 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
5832 | wxUSE_PRINTING_ARCHITECTURE=no | |
5833 | wxUSE_HELP=no | |
5834 | wxUSE_CLIPBOARD=no | |
5835 | wxUSE_DRAG_AND_DROP=no | |
5836 | wxUSE_DATAOBJ=no | |
5837 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
ac0c4cc3 DE |
5838 | DEFAULT_wxUSE_GAUGE=no |
5839 | DEFAULT_wxUSE_SCROLLBAR=no | |
5840 | DEFAULT_wxUSE_SLIDER=no | |
5841 | DEFAULT_wxUSE_COMBOBOX=no | |
5842 | DEFAULT_wxUSE_CALCTRL=no | |
5843 | DEFAULT_wxUSE_SPINBTN=no | |
5844 | DEFAULT_wxUSE_SPINCTRL=no | |
5845 | DEFAULT_wxUSE_TOOLTIPS=no | |
ac0c4cc3 | 5846 | DEFAULT_wxUSE_COLOURDLG=no |
ac0c4cc3 DE |
5847 | DEFAULT_wxUSE_DRAGIMAGE=no |
5848 | DEFAULT_wxUSE_FINDREPLDLG=no | |
5849 | DEFAULT_wxUSE_FONTDLG=no | |
5850 | DEFAULT_wxUSE_GRID=no | |
ac0c4cc3 DE |
5851 | DEFAULT_wxUSE_NUMBERDLG=no |
5852 | DEFAULT_wxUSE_PROGRESSDLG=no | |
ac0c4cc3 DE |
5853 | DEFAULT_wxUSE_SASH=no |
5854 | DEFAULT_wxUSE_SPLITTER=no | |
5855 | DEFAULT_wxUSE_WIZARDDLG=no | |
5856 | DEFAULT_wxUSE_SPLITTER=no | |
5857 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
ac0c4cc3 DE |
5858 | fi |
5859 | ||
8284b0c5 | 5860 | |
5005acfe VZ |
5861 | enablestring= |
5862 | echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6 | |
3c907f20 | 5863 | echo "configure:5864: checking for --${enablestring:-enable}-accel" >&5 |
10f2d63a VZ |
5864 | no_cache=0 |
5865 | # Check whether --enable-accel or --disable-accel was given. | |
5866 | if test "${enable_accel+set}" = set; then | |
5867 | enableval="$enable_accel" | |
a0b9e27f | 5868 | |
10f2d63a VZ |
5869 | if test "$enableval" = yes; then |
5870 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5871 | else | |
5872 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5873 | fi | |
a0b9e27f | 5874 | |
10f2d63a | 5875 | else |
a0b9e27f | 5876 | |
10f2d63a VZ |
5877 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5878 | if test "x$LINE" != x ; then | |
5879 | eval "DEFAULT_$LINE" | |
5880 | else | |
5881 | no_cache=1 | |
5882 | fi | |
5883 | ||
5884 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
a0b9e27f MB |
5885 | |
5886 | fi | |
10f2d63a VZ |
5887 | |
5888 | ||
5889 | eval "$ac_cv_use_accel" | |
5890 | if test "$no_cache" != 1; then | |
5891 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5892 | fi | |
5893 | ||
5894 | if test "$wxUSE_ACCEL" = yes; then | |
a0b9e27f | 5895 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5896 | else |
a0b9e27f | 5897 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5898 | fi |
a0b9e27f | 5899 | |
10f2d63a | 5900 | |
5005acfe VZ |
5901 | enablestring= |
5902 | echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6 | |
3c907f20 | 5903 | echo "configure:5904: checking for --${enablestring:-enable}-button" >&5 |
10f2d63a | 5904 | no_cache=0 |
1e6feb95 VZ |
5905 | # Check whether --enable-button or --disable-button was given. |
5906 | if test "${enable_button+set}" = set; then | |
5907 | enableval="$enable_button" | |
a0b9e27f | 5908 | |
10f2d63a | 5909 | if test "$enableval" = yes; then |
1e6feb95 | 5910 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5911 | else |
1e6feb95 | 5912 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5913 | fi |
a0b9e27f | 5914 | |
10f2d63a | 5915 | else |
a0b9e27f | 5916 | |
1e6feb95 | 5917 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5918 | if test "x$LINE" != x ; then |
5919 | eval "DEFAULT_$LINE" | |
5920 | else | |
5921 | no_cache=1 | |
5922 | fi | |
5923 | ||
1e6feb95 | 5924 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
a0b9e27f MB |
5925 | |
5926 | fi | |
10f2d63a VZ |
5927 | |
5928 | ||
1e6feb95 | 5929 | eval "$ac_cv_use_button" |
10f2d63a | 5930 | if test "$no_cache" != 1; then |
1e6feb95 | 5931 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5932 | fi |
5933 | ||
1e6feb95 | 5934 | if test "$wxUSE_BUTTON" = yes; then |
a0b9e27f | 5935 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5936 | else |
a0b9e27f | 5937 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5938 | fi |
a0b9e27f | 5939 | |
10f2d63a | 5940 | |
5005acfe VZ |
5941 | enablestring= |
5942 | echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6 | |
3c907f20 | 5943 | echo "configure:5944: checking for --${enablestring:-enable}-bmpbutton" >&5 |
10f2d63a VZ |
5944 | no_cache=0 |
5945 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5946 | if test "${enable_bmpbutton+set}" = set; then | |
5947 | enableval="$enable_bmpbutton" | |
a0b9e27f | 5948 | |
10f2d63a VZ |
5949 | if test "$enableval" = yes; then |
5950 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5951 | else | |
5952 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5953 | fi | |
a0b9e27f | 5954 | |
10f2d63a | 5955 | else |
a0b9e27f | 5956 | |
10f2d63a VZ |
5957 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5958 | if test "x$LINE" != x ; then | |
5959 | eval "DEFAULT_$LINE" | |
5960 | else | |
5961 | no_cache=1 | |
5962 | fi | |
5963 | ||
5964 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
a0b9e27f MB |
5965 | |
5966 | fi | |
10f2d63a VZ |
5967 | |
5968 | ||
5969 | eval "$ac_cv_use_bmpbutton" | |
5970 | if test "$no_cache" != 1; then | |
5971 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5972 | fi | |
5973 | ||
5974 | if test "$wxUSE_BMPBUTTON" = yes; then | |
a0b9e27f | 5975 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5976 | else |
a0b9e27f | 5977 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5978 | fi |
a0b9e27f | 5979 | |
10f2d63a | 5980 | |
5005acfe VZ |
5981 | enablestring= |
5982 | echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6 | |
3c907f20 | 5983 | echo "configure:5984: checking for --${enablestring:-enable}-calendar" >&5 |
1e6feb95 VZ |
5984 | no_cache=0 |
5985 | # Check whether --enable-calendar or --disable-calendar was given. | |
5986 | if test "${enable_calendar+set}" = set; then | |
5987 | enableval="$enable_calendar" | |
a0b9e27f | 5988 | |
1e6feb95 VZ |
5989 | if test "$enableval" = yes; then |
5990 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5991 | else | |
5992 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5993 | fi | |
a0b9e27f | 5994 | |
1e6feb95 | 5995 | else |
a0b9e27f | 5996 | |
1e6feb95 VZ |
5997 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
5998 | if test "x$LINE" != x ; then | |
5999 | eval "DEFAULT_$LINE" | |
6000 | else | |
6001 | no_cache=1 | |
6002 | fi | |
6003 | ||
6004 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
a0b9e27f MB |
6005 | |
6006 | fi | |
1e6feb95 VZ |
6007 | |
6008 | ||
6009 | eval "$ac_cv_use_calendar" | |
6010 | if test "$no_cache" != 1; then | |
6011 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6012 | fi | |
6013 | ||
6014 | if test "$wxUSE_CALCTRL" = yes; then | |
a0b9e27f | 6015 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6016 | else |
a0b9e27f | 6017 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6018 | fi |
a0b9e27f | 6019 | |
1e6feb95 | 6020 | |
5005acfe VZ |
6021 | enablestring= |
6022 | echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6 | |
3c907f20 | 6023 | echo "configure:6024: checking for --${enablestring:-enable}-caret" >&5 |
1e6feb95 VZ |
6024 | no_cache=0 |
6025 | # Check whether --enable-caret or --disable-caret was given. | |
6026 | if test "${enable_caret+set}" = set; then | |
6027 | enableval="$enable_caret" | |
a0b9e27f | 6028 | |
1e6feb95 VZ |
6029 | if test "$enableval" = yes; then |
6030 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6031 | else | |
6032 | ac_cv_use_caret='wxUSE_CARET=no' | |
6033 | fi | |
a0b9e27f | 6034 | |
1e6feb95 | 6035 | else |
a0b9e27f | 6036 | |
1e6feb95 VZ |
6037 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6038 | if test "x$LINE" != x ; then | |
6039 | eval "DEFAULT_$LINE" | |
6040 | else | |
6041 | no_cache=1 | |
6042 | fi | |
6043 | ||
6044 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
a0b9e27f MB |
6045 | |
6046 | fi | |
1e6feb95 VZ |
6047 | |
6048 | ||
6049 | eval "$ac_cv_use_caret" | |
6050 | if test "$no_cache" != 1; then | |
6051 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6052 | fi | |
6053 | ||
6054 | if test "$wxUSE_CARET" = yes; then | |
a0b9e27f | 6055 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6056 | else |
a0b9e27f | 6057 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6058 | fi |
a0b9e27f | 6059 | |
1e6feb95 | 6060 | |
5005acfe VZ |
6061 | enablestring= |
6062 | echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6 | |
3c907f20 | 6063 | echo "configure:6064: checking for --${enablestring:-enable}-checkbox" >&5 |
10f2d63a VZ |
6064 | no_cache=0 |
6065 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6066 | if test "${enable_checkbox+set}" = set; then | |
6067 | enableval="$enable_checkbox" | |
a0b9e27f | 6068 | |
10f2d63a VZ |
6069 | if test "$enableval" = yes; then |
6070 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6071 | else | |
6072 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6073 | fi | |
a0b9e27f | 6074 | |
10f2d63a | 6075 | else |
a0b9e27f | 6076 | |
10f2d63a VZ |
6077 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6078 | if test "x$LINE" != x ; then | |
6079 | eval "DEFAULT_$LINE" | |
6080 | else | |
6081 | no_cache=1 | |
6082 | fi | |
6083 | ||
6084 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
a0b9e27f MB |
6085 | |
6086 | fi | |
10f2d63a VZ |
6087 | |
6088 | ||
6089 | eval "$ac_cv_use_checkbox" | |
6090 | if test "$no_cache" != 1; then | |
6091 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6092 | fi | |
6093 | ||
6094 | if test "$wxUSE_CHECKBOX" = yes; then | |
a0b9e27f | 6095 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6096 | else |
a0b9e27f | 6097 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6098 | fi |
a0b9e27f | 6099 | |
10f2d63a | 6100 | |
5005acfe VZ |
6101 | enablestring= |
6102 | echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6 | |
3c907f20 | 6103 | echo "configure:6104: checking for --${enablestring:-enable}-checklst" >&5 |
10f2d63a VZ |
6104 | no_cache=0 |
6105 | # Check whether --enable-checklst or --disable-checklst was given. | |
6106 | if test "${enable_checklst+set}" = set; then | |
6107 | enableval="$enable_checklst" | |
a0b9e27f | 6108 | |
10f2d63a VZ |
6109 | if test "$enableval" = yes; then |
6110 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6111 | else | |
6112 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6113 | fi | |
a0b9e27f | 6114 | |
10f2d63a | 6115 | else |
a0b9e27f | 6116 | |
10f2d63a VZ |
6117 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6118 | if test "x$LINE" != x ; then | |
6119 | eval "DEFAULT_$LINE" | |
6120 | else | |
6121 | no_cache=1 | |
6122 | fi | |
6123 | ||
6124 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
a0b9e27f MB |
6125 | |
6126 | fi | |
10f2d63a VZ |
6127 | |
6128 | ||
6129 | eval "$ac_cv_use_checklst" | |
6130 | if test "$no_cache" != 1; then | |
6131 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6132 | fi | |
6133 | ||
6134 | if test "$wxUSE_CHECKLST" = yes; then | |
a0b9e27f | 6135 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6136 | else |
a0b9e27f | 6137 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6138 | fi |
a0b9e27f | 6139 | |
10f2d63a | 6140 | |
5005acfe VZ |
6141 | enablestring= |
6142 | echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6 | |
3c907f20 | 6143 | echo "configure:6144: checking for --${enablestring:-enable}-choice" >&5 |
10f2d63a VZ |
6144 | no_cache=0 |
6145 | # Check whether --enable-choice or --disable-choice was given. | |
6146 | if test "${enable_choice+set}" = set; then | |
6147 | enableval="$enable_choice" | |
a0b9e27f | 6148 | |
10f2d63a VZ |
6149 | if test "$enableval" = yes; then |
6150 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6151 | else | |
6152 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6153 | fi | |
a0b9e27f | 6154 | |
10f2d63a | 6155 | else |
a0b9e27f | 6156 | |
10f2d63a VZ |
6157 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6158 | if test "x$LINE" != x ; then | |
6159 | eval "DEFAULT_$LINE" | |
6160 | else | |
6161 | no_cache=1 | |
6162 | fi | |
6163 | ||
6164 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
a0b9e27f MB |
6165 | |
6166 | fi | |
10f2d63a VZ |
6167 | |
6168 | ||
6169 | eval "$ac_cv_use_choice" | |
6170 | if test "$no_cache" != 1; then | |
6171 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6172 | fi | |
6173 | ||
6174 | if test "$wxUSE_CHOICE" = yes; then | |
a0b9e27f | 6175 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6176 | else |
a0b9e27f | 6177 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6178 | fi |
a0b9e27f | 6179 | |
10f2d63a | 6180 | |
5005acfe VZ |
6181 | enablestring= |
6182 | echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6 | |
3c907f20 | 6183 | echo "configure:6184: checking for --${enablestring:-enable}-combobox" >&5 |
10f2d63a VZ |
6184 | no_cache=0 |
6185 | # Check whether --enable-combobox or --disable-combobox was given. | |
6186 | if test "${enable_combobox+set}" = set; then | |
6187 | enableval="$enable_combobox" | |
a0b9e27f | 6188 | |
10f2d63a VZ |
6189 | if test "$enableval" = yes; then |
6190 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6191 | else | |
6192 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6193 | fi | |
a0b9e27f | 6194 | |
10f2d63a | 6195 | else |
a0b9e27f | 6196 | |
10f2d63a VZ |
6197 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6198 | if test "x$LINE" != x ; then | |
6199 | eval "DEFAULT_$LINE" | |
6200 | else | |
6201 | no_cache=1 | |
6202 | fi | |
6203 | ||
6204 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
a0b9e27f MB |
6205 | |
6206 | fi | |
10f2d63a VZ |
6207 | |
6208 | ||
6209 | eval "$ac_cv_use_combobox" | |
6210 | if test "$no_cache" != 1; then | |
6211 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6212 | fi | |
6213 | ||
6214 | if test "$wxUSE_COMBOBOX" = yes; then | |
a0b9e27f | 6215 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6216 | else |
a0b9e27f | 6217 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6218 | fi |
a0b9e27f | 6219 | |
10f2d63a | 6220 | |
da494b40 MB |
6221 | enablestring= |
6222 | echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6 | |
3c907f20 | 6223 | echo "configure:6224: checking for --${enablestring:-enable}-display" >&5 |
da494b40 MB |
6224 | no_cache=0 |
6225 | # Check whether --enable-display or --disable-display was given. | |
6226 | if test "${enable_display+set}" = set; then | |
6227 | enableval="$enable_display" | |
6228 | ||
6229 | if test "$enableval" = yes; then | |
6230 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
6231 | else | |
6232 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
6233 | fi | |
6234 | ||
6235 | else | |
6236 | ||
6237 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
6238 | if test "x$LINE" != x ; then | |
6239 | eval "DEFAULT_$LINE" | |
6240 | else | |
6241 | no_cache=1 | |
6242 | fi | |
6243 | ||
6244 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
6245 | ||
6246 | fi | |
6247 | ||
6248 | ||
6249 | eval "$ac_cv_use_display" | |
6250 | if test "$no_cache" != 1; then | |
6251 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
6252 | fi | |
6253 | ||
6254 | if test "$wxUSE_DISPLAY" = yes; then | |
6255 | echo "$ac_t""yes" 1>&6 | |
6256 | else | |
6257 | echo "$ac_t""no" 1>&6 | |
6258 | fi | |
6259 | ||
6260 | ||
5005acfe VZ |
6261 | enablestring= |
6262 | echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6 | |
3c907f20 | 6263 | echo "configure:6264: checking for --${enablestring:-enable}-gauge" >&5 |
10f2d63a VZ |
6264 | no_cache=0 |
6265 | # Check whether --enable-gauge or --disable-gauge was given. | |
6266 | if test "${enable_gauge+set}" = set; then | |
6267 | enableval="$enable_gauge" | |
a0b9e27f | 6268 | |
10f2d63a VZ |
6269 | if test "$enableval" = yes; then |
6270 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6271 | else | |
6272 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6273 | fi | |
a0b9e27f | 6274 | |
10f2d63a | 6275 | else |
a0b9e27f | 6276 | |
10f2d63a VZ |
6277 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6278 | if test "x$LINE" != x ; then | |
6279 | eval "DEFAULT_$LINE" | |
6280 | else | |
6281 | no_cache=1 | |
6282 | fi | |
6283 | ||
6284 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
a0b9e27f MB |
6285 | |
6286 | fi | |
10f2d63a VZ |
6287 | |
6288 | ||
6289 | eval "$ac_cv_use_gauge" | |
6290 | if test "$no_cache" != 1; then | |
6291 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6292 | fi | |
6293 | ||
6294 | if test "$wxUSE_GAUGE" = yes; then | |
a0b9e27f | 6295 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6296 | else |
a0b9e27f | 6297 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6298 | fi |
a0b9e27f | 6299 | |
10f2d63a | 6300 | |
5005acfe VZ |
6301 | enablestring= |
6302 | echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6 | |
3c907f20 | 6303 | echo "configure:6304: checking for --${enablestring:-enable}-grid" >&5 |
10f2d63a VZ |
6304 | no_cache=0 |
6305 | # Check whether --enable-grid or --disable-grid was given. | |
6306 | if test "${enable_grid+set}" = set; then | |
6307 | enableval="$enable_grid" | |
a0b9e27f | 6308 | |
10f2d63a VZ |
6309 | if test "$enableval" = yes; then |
6310 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6311 | else | |
6312 | ac_cv_use_grid='wxUSE_GRID=no' | |
6313 | fi | |
a0b9e27f | 6314 | |
10f2d63a | 6315 | else |
a0b9e27f | 6316 | |
10f2d63a VZ |
6317 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6318 | if test "x$LINE" != x ; then | |
6319 | eval "DEFAULT_$LINE" | |
6320 | else | |
6321 | no_cache=1 | |
6322 | fi | |
6323 | ||
6324 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
a0b9e27f MB |
6325 | |
6326 | fi | |
10f2d63a VZ |
6327 | |
6328 | ||
6329 | eval "$ac_cv_use_grid" | |
6330 | if test "$no_cache" != 1; then | |
6331 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6332 | fi | |
6333 | ||
6334 | if test "$wxUSE_GRID" = yes; then | |
a0b9e27f | 6335 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6336 | else |
a0b9e27f | 6337 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6338 | fi |
a0b9e27f | 6339 | |
10f2d63a | 6340 | |
5005acfe VZ |
6341 | enablestring= |
6342 | echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6 | |
3c907f20 | 6343 | echo "configure:6344: checking for --${enablestring:-enable}-imaglist" >&5 |
10f2d63a VZ |
6344 | no_cache=0 |
6345 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6346 | if test "${enable_imaglist+set}" = set; then | |
6347 | enableval="$enable_imaglist" | |
a0b9e27f | 6348 | |
10f2d63a VZ |
6349 | if test "$enableval" = yes; then |
6350 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6351 | else | |
6352 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6353 | fi | |
a0b9e27f | 6354 | |
10f2d63a | 6355 | else |
a0b9e27f | 6356 | |
10f2d63a VZ |
6357 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6358 | if test "x$LINE" != x ; then | |
6359 | eval "DEFAULT_$LINE" | |
6360 | else | |
6361 | no_cache=1 | |
6362 | fi | |
6363 | ||
6364 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
a0b9e27f MB |
6365 | |
6366 | fi | |
10f2d63a VZ |
6367 | |
6368 | ||
6369 | eval "$ac_cv_use_imaglist" | |
6370 | if test "$no_cache" != 1; then | |
6371 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6372 | fi | |
6373 | ||
6374 | if test "$wxUSE_IMAGLIST" = yes; then | |
a0b9e27f | 6375 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6376 | else |
a0b9e27f | 6377 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6378 | fi |
a0b9e27f | 6379 | |
10f2d63a | 6380 | |
5005acfe VZ |
6381 | enablestring= |
6382 | echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6 | |
3c907f20 | 6383 | echo "configure:6384: checking for --${enablestring:-enable}-listbox" >&5 |
10f2d63a VZ |
6384 | no_cache=0 |
6385 | # Check whether --enable-listbox or --disable-listbox was given. | |
6386 | if test "${enable_listbox+set}" = set; then | |
6387 | enableval="$enable_listbox" | |
a0b9e27f | 6388 | |
10f2d63a VZ |
6389 | if test "$enableval" = yes; then |
6390 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6391 | else | |
6392 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6393 | fi | |
a0b9e27f | 6394 | |
10f2d63a | 6395 | else |
a0b9e27f | 6396 | |
10f2d63a VZ |
6397 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6398 | if test "x$LINE" != x ; then | |
6399 | eval "DEFAULT_$LINE" | |
6400 | else | |
6401 | no_cache=1 | |
6402 | fi | |
6403 | ||
6404 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
a0b9e27f MB |
6405 | |
6406 | fi | |
10f2d63a VZ |
6407 | |
6408 | ||
6409 | eval "$ac_cv_use_listbox" | |
6410 | if test "$no_cache" != 1; then | |
6411 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6412 | fi | |
6413 | ||
6414 | if test "$wxUSE_LISTBOX" = yes; then | |
a0b9e27f | 6415 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6416 | else |
a0b9e27f | 6417 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6418 | fi |
a0b9e27f | 6419 | |
10f2d63a | 6420 | |
5005acfe VZ |
6421 | enablestring= |
6422 | echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6 | |
3c907f20 | 6423 | echo "configure:6424: checking for --${enablestring:-enable}-listctrl" >&5 |
10f2d63a VZ |
6424 | no_cache=0 |
6425 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6426 | if test "${enable_listctrl+set}" = set; then | |
6427 | enableval="$enable_listctrl" | |
a0b9e27f | 6428 | |
10f2d63a VZ |
6429 | if test "$enableval" = yes; then |
6430 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6431 | else | |
6432 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6433 | fi | |
a0b9e27f | 6434 | |
10f2d63a | 6435 | else |
a0b9e27f | 6436 | |
10f2d63a VZ |
6437 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6438 | if test "x$LINE" != x ; then | |
6439 | eval "DEFAULT_$LINE" | |
6440 | else | |
6441 | no_cache=1 | |
6442 | fi | |
6443 | ||
6444 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
a0b9e27f MB |
6445 | |
6446 | fi | |
10f2d63a VZ |
6447 | |
6448 | ||
6449 | eval "$ac_cv_use_listctrl" | |
6450 | if test "$no_cache" != 1; then | |
6451 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6452 | fi | |
6453 | ||
6454 | if test "$wxUSE_LISTCTRL" = yes; then | |
a0b9e27f | 6455 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6456 | else |
a0b9e27f | 6457 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6458 | fi |
a0b9e27f | 6459 | |
10f2d63a | 6460 | |
5005acfe VZ |
6461 | enablestring= |
6462 | echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6 | |
3c907f20 | 6463 | echo "configure:6464: checking for --${enablestring:-enable}-notebook" >&5 |
10f2d63a VZ |
6464 | no_cache=0 |
6465 | # Check whether --enable-notebook or --disable-notebook was given. | |
6466 | if test "${enable_notebook+set}" = set; then | |
6467 | enableval="$enable_notebook" | |
a0b9e27f | 6468 | |
10f2d63a VZ |
6469 | if test "$enableval" = yes; then |
6470 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6471 | else | |
6472 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6473 | fi | |
a0b9e27f | 6474 | |
10f2d63a | 6475 | else |
a0b9e27f | 6476 | |
10f2d63a VZ |
6477 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6478 | if test "x$LINE" != x ; then | |
6479 | eval "DEFAULT_$LINE" | |
6480 | else | |
6481 | no_cache=1 | |
6482 | fi | |
6483 | ||
6484 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
a0b9e27f MB |
6485 | |
6486 | fi | |
10f2d63a VZ |
6487 | |
6488 | ||
6489 | eval "$ac_cv_use_notebook" | |
6490 | if test "$no_cache" != 1; then | |
6491 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6492 | fi | |
6493 | ||
6494 | if test "$wxUSE_NOTEBOOK" = yes; then | |
a0b9e27f | 6495 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6496 | else |
a0b9e27f | 6497 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6498 | fi |
a0b9e27f | 6499 | |
10f2d63a | 6500 | |
5005acfe VZ |
6501 | enablestring= |
6502 | echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6 | |
3c907f20 | 6503 | echo "configure:6504: checking for --${enablestring:-enable}-radiobox" >&5 |
10f2d63a VZ |
6504 | no_cache=0 |
6505 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6506 | if test "${enable_radiobox+set}" = set; then | |
6507 | enableval="$enable_radiobox" | |
a0b9e27f | 6508 | |
10f2d63a VZ |
6509 | if test "$enableval" = yes; then |
6510 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6511 | else | |
6512 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6513 | fi | |
a0b9e27f | 6514 | |
10f2d63a | 6515 | else |
a0b9e27f | 6516 | |
10f2d63a VZ |
6517 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6518 | if test "x$LINE" != x ; then | |
6519 | eval "DEFAULT_$LINE" | |
6520 | else | |
6521 | no_cache=1 | |
6522 | fi | |
6523 | ||
6524 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
a0b9e27f MB |
6525 | |
6526 | fi | |
10f2d63a VZ |
6527 | |
6528 | ||
6529 | eval "$ac_cv_use_radiobox" | |
6530 | if test "$no_cache" != 1; then | |
6531 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6532 | fi | |
6533 | ||
6534 | if test "$wxUSE_RADIOBOX" = yes; then | |
a0b9e27f | 6535 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6536 | else |
a0b9e27f | 6537 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6538 | fi |
a0b9e27f | 6539 | |
10f2d63a | 6540 | |
5005acfe VZ |
6541 | enablestring= |
6542 | echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6 | |
3c907f20 | 6543 | echo "configure:6544: checking for --${enablestring:-enable}-radiobtn" >&5 |
10f2d63a VZ |
6544 | no_cache=0 |
6545 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6546 | if test "${enable_radiobtn+set}" = set; then | |
6547 | enableval="$enable_radiobtn" | |
a0b9e27f | 6548 | |
10f2d63a VZ |
6549 | if test "$enableval" = yes; then |
6550 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6551 | else | |
6552 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6553 | fi | |
a0b9e27f | 6554 | |
10f2d63a | 6555 | else |
a0b9e27f | 6556 | |
10f2d63a VZ |
6557 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6558 | if test "x$LINE" != x ; then | |
6559 | eval "DEFAULT_$LINE" | |
6560 | else | |
6561 | no_cache=1 | |
6562 | fi | |
6563 | ||
6564 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
a0b9e27f MB |
6565 | |
6566 | fi | |
10f2d63a VZ |
6567 | |
6568 | ||
6569 | eval "$ac_cv_use_radiobtn" | |
6570 | if test "$no_cache" != 1; then | |
6571 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6572 | fi | |
6573 | ||
6574 | if test "$wxUSE_RADIOBTN" = yes; then | |
a0b9e27f | 6575 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6576 | else |
a0b9e27f | 6577 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6578 | fi |
a0b9e27f | 6579 | |
10f2d63a | 6580 | |
5005acfe VZ |
6581 | enablestring= |
6582 | echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6 | |
3c907f20 | 6583 | echo "configure:6584: checking for --${enablestring:-enable}-sash" >&5 |
10f2d63a VZ |
6584 | no_cache=0 |
6585 | # Check whether --enable-sash or --disable-sash was given. | |
6586 | if test "${enable_sash+set}" = set; then | |
6587 | enableval="$enable_sash" | |
a0b9e27f | 6588 | |
10f2d63a VZ |
6589 | if test "$enableval" = yes; then |
6590 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6591 | else | |
6592 | ac_cv_use_sash='wxUSE_SASH=no' | |
6593 | fi | |
a0b9e27f | 6594 | |
10f2d63a | 6595 | else |
a0b9e27f | 6596 | |
10f2d63a VZ |
6597 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6598 | if test "x$LINE" != x ; then | |
6599 | eval "DEFAULT_$LINE" | |
6600 | else | |
6601 | no_cache=1 | |
6602 | fi | |
6603 | ||
6604 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
a0b9e27f MB |
6605 | |
6606 | fi | |
10f2d63a VZ |
6607 | |
6608 | ||
6609 | eval "$ac_cv_use_sash" | |
6610 | if test "$no_cache" != 1; then | |
6611 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6612 | fi | |
6613 | ||
6614 | if test "$wxUSE_SASH" = yes; then | |
a0b9e27f | 6615 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6616 | else |
a0b9e27f | 6617 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6618 | fi |
a0b9e27f | 6619 | |
10f2d63a | 6620 | |
5005acfe VZ |
6621 | enablestring= |
6622 | echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6 | |
3c907f20 | 6623 | echo "configure:6624: checking for --${enablestring:-enable}-scrollbar" >&5 |
10f2d63a VZ |
6624 | no_cache=0 |
6625 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6626 | if test "${enable_scrollbar+set}" = set; then | |
6627 | enableval="$enable_scrollbar" | |
a0b9e27f | 6628 | |
10f2d63a VZ |
6629 | if test "$enableval" = yes; then |
6630 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6631 | else | |
6632 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6633 | fi | |
a0b9e27f | 6634 | |
10f2d63a | 6635 | else |
a0b9e27f | 6636 | |
10f2d63a VZ |
6637 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6638 | if test "x$LINE" != x ; then | |
6639 | eval "DEFAULT_$LINE" | |
6640 | else | |
6641 | no_cache=1 | |
6642 | fi | |
6643 | ||
6644 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
a0b9e27f MB |
6645 | |
6646 | fi | |
10f2d63a VZ |
6647 | |
6648 | ||
6649 | eval "$ac_cv_use_scrollbar" | |
6650 | if test "$no_cache" != 1; then | |
6651 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6652 | fi | |
6653 | ||
6654 | if test "$wxUSE_SCROLLBAR" = yes; then | |
a0b9e27f | 6655 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6656 | else |
a0b9e27f | 6657 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6658 | fi |
a0b9e27f | 6659 | |
10f2d63a | 6660 | |
5005acfe VZ |
6661 | enablestring= |
6662 | echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6 | |
3c907f20 | 6663 | echo "configure:6664: checking for --${enablestring:-enable}-slider" >&5 |
10f2d63a VZ |
6664 | no_cache=0 |
6665 | # Check whether --enable-slider or --disable-slider was given. | |
6666 | if test "${enable_slider+set}" = set; then | |
6667 | enableval="$enable_slider" | |
a0b9e27f | 6668 | |
10f2d63a VZ |
6669 | if test "$enableval" = yes; then |
6670 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6671 | else | |
6672 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6673 | fi | |
a0b9e27f | 6674 | |
10f2d63a | 6675 | else |
a0b9e27f | 6676 | |
10f2d63a VZ |
6677 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6678 | if test "x$LINE" != x ; then | |
6679 | eval "DEFAULT_$LINE" | |
6680 | else | |
6681 | no_cache=1 | |
6682 | fi | |
6683 | ||
6684 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
a0b9e27f MB |
6685 | |
6686 | fi | |
10f2d63a VZ |
6687 | |
6688 | ||
6689 | eval "$ac_cv_use_slider" | |
6690 | if test "$no_cache" != 1; then | |
6691 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6692 | fi | |
6693 | ||
6694 | if test "$wxUSE_SLIDER" = yes; then | |
a0b9e27f | 6695 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6696 | else |
a0b9e27f | 6697 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6698 | fi |
a0b9e27f | 6699 | |
10f2d63a | 6700 | |
5005acfe VZ |
6701 | enablestring= |
6702 | echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6 | |
3c907f20 | 6703 | echo "configure:6704: checking for --${enablestring:-enable}-spinbtn" >&5 |
10f2d63a VZ |
6704 | no_cache=0 |
6705 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6706 | if test "${enable_spinbtn+set}" = set; then | |
6707 | enableval="$enable_spinbtn" | |
a0b9e27f | 6708 | |
10f2d63a VZ |
6709 | if test "$enableval" = yes; then |
6710 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6711 | else | |
6712 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6713 | fi | |
a0b9e27f | 6714 | |
10f2d63a | 6715 | else |
a0b9e27f | 6716 | |
10f2d63a VZ |
6717 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6718 | if test "x$LINE" != x ; then | |
6719 | eval "DEFAULT_$LINE" | |
6720 | else | |
6721 | no_cache=1 | |
6722 | fi | |
6723 | ||
6724 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
a0b9e27f MB |
6725 | |
6726 | fi | |
10f2d63a VZ |
6727 | |
6728 | ||
6729 | eval "$ac_cv_use_spinbtn" | |
6730 | if test "$no_cache" != 1; then | |
6731 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6732 | fi | |
6733 | ||
6734 | if test "$wxUSE_SPINBTN" = yes; then | |
a0b9e27f | 6735 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6736 | else |
a0b9e27f | 6737 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6738 | fi |
a0b9e27f | 6739 | |
10f2d63a | 6740 | |
5005acfe VZ |
6741 | enablestring= |
6742 | echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6 | |
3c907f20 | 6743 | echo "configure:6744: checking for --${enablestring:-enable}-spinctrl" >&5 |
56cfaa52 RR |
6744 | no_cache=0 |
6745 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6746 | if test "${enable_spinctrl+set}" = set; then | |
6747 | enableval="$enable_spinctrl" | |
a0b9e27f | 6748 | |
56cfaa52 RR |
6749 | if test "$enableval" = yes; then |
6750 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6751 | else | |
6752 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6753 | fi | |
a0b9e27f | 6754 | |
56cfaa52 | 6755 | else |
a0b9e27f | 6756 | |
56cfaa52 RR |
6757 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6758 | if test "x$LINE" != x ; then | |
6759 | eval "DEFAULT_$LINE" | |
6760 | else | |
6761 | no_cache=1 | |
6762 | fi | |
6763 | ||
6764 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
a0b9e27f MB |
6765 | |
6766 | fi | |
56cfaa52 RR |
6767 | |
6768 | ||
6769 | eval "$ac_cv_use_spinctrl" | |
6770 | if test "$no_cache" != 1; then | |
6771 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6772 | fi | |
6773 | ||
6774 | if test "$wxUSE_SPINCTRL" = yes; then | |
a0b9e27f | 6775 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6776 | else |
a0b9e27f | 6777 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6778 | fi |
a0b9e27f | 6779 | |
56cfaa52 | 6780 | |
5005acfe VZ |
6781 | enablestring= |
6782 | echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6 | |
3c907f20 | 6783 | echo "configure:6784: checking for --${enablestring:-enable}-splitter" >&5 |
10f2d63a VZ |
6784 | no_cache=0 |
6785 | # Check whether --enable-splitter or --disable-splitter was given. | |
6786 | if test "${enable_splitter+set}" = set; then | |
6787 | enableval="$enable_splitter" | |
a0b9e27f | 6788 | |
10f2d63a VZ |
6789 | if test "$enableval" = yes; then |
6790 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6791 | else | |
6792 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6793 | fi | |
a0b9e27f | 6794 | |
10f2d63a | 6795 | else |
a0b9e27f | 6796 | |
10f2d63a VZ |
6797 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6798 | if test "x$LINE" != x ; then | |
6799 | eval "DEFAULT_$LINE" | |
6800 | else | |
6801 | no_cache=1 | |
6802 | fi | |
6803 | ||
6804 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
a0b9e27f MB |
6805 | |
6806 | fi | |
10f2d63a VZ |
6807 | |
6808 | ||
6809 | eval "$ac_cv_use_splitter" | |
6810 | if test "$no_cache" != 1; then | |
6811 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6812 | fi | |
6813 | ||
6814 | if test "$wxUSE_SPLITTER" = yes; then | |
a0b9e27f | 6815 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6816 | else |
a0b9e27f | 6817 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6818 | fi |
a0b9e27f | 6819 | |
10f2d63a | 6820 | |
5005acfe VZ |
6821 | enablestring= |
6822 | echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6 | |
3c907f20 | 6823 | echo "configure:6824: checking for --${enablestring:-enable}-statbmp" >&5 |
10f2d63a VZ |
6824 | no_cache=0 |
6825 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6826 | if test "${enable_statbmp+set}" = set; then | |
6827 | enableval="$enable_statbmp" | |
a0b9e27f | 6828 | |
10f2d63a VZ |
6829 | if test "$enableval" = yes; then |
6830 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6831 | else | |
6832 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6833 | fi | |
a0b9e27f | 6834 | |
10f2d63a | 6835 | else |
a0b9e27f | 6836 | |
10f2d63a VZ |
6837 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6838 | if test "x$LINE" != x ; then | |
6839 | eval "DEFAULT_$LINE" | |
6840 | else | |
6841 | no_cache=1 | |
6842 | fi | |
6843 | ||
6844 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
a0b9e27f MB |
6845 | |
6846 | fi | |
10f2d63a VZ |
6847 | |
6848 | ||
6849 | eval "$ac_cv_use_statbmp" | |
6850 | if test "$no_cache" != 1; then | |
6851 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6852 | fi | |
6853 | ||
6854 | if test "$wxUSE_STATBMP" = yes; then | |
a0b9e27f | 6855 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6856 | else |
a0b9e27f | 6857 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6858 | fi |
a0b9e27f | 6859 | |
10f2d63a | 6860 | |
5005acfe VZ |
6861 | enablestring= |
6862 | echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6 | |
3c907f20 | 6863 | echo "configure:6864: checking for --${enablestring:-enable}-statbox" >&5 |
10f2d63a VZ |
6864 | no_cache=0 |
6865 | # Check whether --enable-statbox or --disable-statbox was given. | |
6866 | if test "${enable_statbox+set}" = set; then | |
6867 | enableval="$enable_statbox" | |
a0b9e27f | 6868 | |
10f2d63a VZ |
6869 | if test "$enableval" = yes; then |
6870 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6871 | else | |
6872 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6873 | fi | |
a0b9e27f | 6874 | |
10f2d63a | 6875 | else |
a0b9e27f | 6876 | |
10f2d63a VZ |
6877 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6878 | if test "x$LINE" != x ; then | |
6879 | eval "DEFAULT_$LINE" | |
6880 | else | |
6881 | no_cache=1 | |
6882 | fi | |
6883 | ||
6884 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
a0b9e27f MB |
6885 | |
6886 | fi | |
10f2d63a VZ |
6887 | |
6888 | ||
6889 | eval "$ac_cv_use_statbox" | |
6890 | if test "$no_cache" != 1; then | |
6891 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6892 | fi | |
6893 | ||
6894 | if test "$wxUSE_STATBOX" = yes; then | |
a0b9e27f | 6895 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6896 | else |
a0b9e27f | 6897 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6898 | fi |
a0b9e27f | 6899 | |
10f2d63a | 6900 | |
5005acfe VZ |
6901 | enablestring= |
6902 | echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6 | |
3c907f20 | 6903 | echo "configure:6904: checking for --${enablestring:-enable}-statline" >&5 |
10f2d63a VZ |
6904 | no_cache=0 |
6905 | # Check whether --enable-statline or --disable-statline was given. | |
6906 | if test "${enable_statline+set}" = set; then | |
6907 | enableval="$enable_statline" | |
a0b9e27f | 6908 | |
10f2d63a VZ |
6909 | if test "$enableval" = yes; then |
6910 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6911 | else | |
6912 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6913 | fi | |
a0b9e27f | 6914 | |
10f2d63a | 6915 | else |
a0b9e27f | 6916 | |
10f2d63a VZ |
6917 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6918 | if test "x$LINE" != x ; then | |
6919 | eval "DEFAULT_$LINE" | |
6920 | else | |
6921 | no_cache=1 | |
6922 | fi | |
6923 | ||
6924 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
a0b9e27f MB |
6925 | |
6926 | fi | |
10f2d63a VZ |
6927 | |
6928 | ||
6929 | eval "$ac_cv_use_statline" | |
6930 | if test "$no_cache" != 1; then | |
6931 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6932 | fi | |
6933 | ||
6934 | if test "$wxUSE_STATLINE" = yes; then | |
a0b9e27f | 6935 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6936 | else |
a0b9e27f | 6937 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6938 | fi |
a0b9e27f | 6939 | |
10f2d63a | 6940 | |
5005acfe VZ |
6941 | enablestring= |
6942 | echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6 | |
3c907f20 | 6943 | echo "configure:6944: checking for --${enablestring:-enable}-stattext" >&5 |
1e6feb95 VZ |
6944 | no_cache=0 |
6945 | # Check whether --enable-stattext or --disable-stattext was given. | |
6946 | if test "${enable_stattext+set}" = set; then | |
6947 | enableval="$enable_stattext" | |
a0b9e27f | 6948 | |
1e6feb95 VZ |
6949 | if test "$enableval" = yes; then |
6950 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6951 | else | |
6952 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6953 | fi | |
a0b9e27f | 6954 | |
1e6feb95 | 6955 | else |
a0b9e27f | 6956 | |
1e6feb95 VZ |
6957 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
6958 | if test "x$LINE" != x ; then | |
6959 | eval "DEFAULT_$LINE" | |
6960 | else | |
6961 | no_cache=1 | |
6962 | fi | |
6963 | ||
6964 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
a0b9e27f MB |
6965 | |
6966 | fi | |
1e6feb95 VZ |
6967 | |
6968 | ||
6969 | eval "$ac_cv_use_stattext" | |
6970 | if test "$no_cache" != 1; then | |
6971 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6972 | fi | |
6973 | ||
6974 | if test "$wxUSE_STATTEXT" = yes; then | |
a0b9e27f | 6975 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6976 | else |
a0b9e27f | 6977 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6978 | fi |
a0b9e27f | 6979 | |
1e6feb95 | 6980 | |
5005acfe VZ |
6981 | enablestring= |
6982 | echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6 | |
3c907f20 | 6983 | echo "configure:6984: checking for --${enablestring:-enable}-statusbar" >&5 |
10f2d63a VZ |
6984 | no_cache=0 |
6985 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6986 | if test "${enable_statusbar+set}" = set; then | |
6987 | enableval="$enable_statusbar" | |
a0b9e27f | 6988 | |
10f2d63a VZ |
6989 | if test "$enableval" = yes; then |
6990 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6991 | else | |
6992 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6993 | fi | |
a0b9e27f | 6994 | |
10f2d63a | 6995 | else |
a0b9e27f | 6996 | |
10f2d63a VZ |
6997 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6998 | if test "x$LINE" != x ; then | |
6999 | eval "DEFAULT_$LINE" | |
7000 | else | |
7001 | no_cache=1 | |
7002 | fi | |
7003 | ||
7004 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
a0b9e27f MB |
7005 | |
7006 | fi | |
10f2d63a VZ |
7007 | |
7008 | ||
7009 | eval "$ac_cv_use_statusbar" | |
7010 | if test "$no_cache" != 1; then | |
7011 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7012 | fi | |
7013 | ||
7014 | if test "$wxUSE_STATUSBAR" = yes; then | |
a0b9e27f | 7015 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7016 | else |
a0b9e27f | 7017 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7018 | fi |
a0b9e27f | 7019 | |
10f2d63a | 7020 | |
5005acfe VZ |
7021 | enablestring= |
7022 | echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6 | |
3c907f20 | 7023 | echo "configure:7024: checking for --${enablestring:-enable}-tabdialog" >&5 |
10f2d63a VZ |
7024 | no_cache=0 |
7025 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7026 | if test "${enable_tabdialog+set}" = set; then | |
7027 | enableval="$enable_tabdialog" | |
a0b9e27f | 7028 | |
10f2d63a VZ |
7029 | if test "$enableval" = yes; then |
7030 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7031 | else | |
7032 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7033 | fi | |
a0b9e27f | 7034 | |
10f2d63a | 7035 | else |
a0b9e27f | 7036 | |
10f2d63a VZ |
7037 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7038 | if test "x$LINE" != x ; then | |
7039 | eval "DEFAULT_$LINE" | |
7040 | else | |
7041 | no_cache=1 | |
7042 | fi | |
7043 | ||
7044 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
a0b9e27f MB |
7045 | |
7046 | fi | |
10f2d63a VZ |
7047 | |
7048 | ||
7049 | eval "$ac_cv_use_tabdialog" | |
7050 | if test "$no_cache" != 1; then | |
7051 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7052 | fi | |
7053 | ||
7054 | if test "$wxUSE_TABDIALOG" = yes; then | |
a0b9e27f | 7055 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7056 | else |
a0b9e27f | 7057 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7058 | fi |
a0b9e27f | 7059 | |
10f2d63a | 7060 | |
5005acfe VZ |
7061 | enablestring= |
7062 | echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6 | |
3c907f20 | 7063 | echo "configure:7064: checking for --${enablestring:-enable}-textctrl" >&5 |
1e6feb95 VZ |
7064 | no_cache=0 |
7065 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7066 | if test "${enable_textctrl+set}" = set; then | |
7067 | enableval="$enable_textctrl" | |
a0b9e27f | 7068 | |
1e6feb95 VZ |
7069 | if test "$enableval" = yes; then |
7070 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7071 | else | |
7072 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7073 | fi | |
a0b9e27f | 7074 | |
1e6feb95 | 7075 | else |
a0b9e27f | 7076 | |
1e6feb95 VZ |
7077 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
7078 | if test "x$LINE" != x ; then | |
7079 | eval "DEFAULT_$LINE" | |
7080 | else | |
7081 | no_cache=1 | |
7082 | fi | |
7083 | ||
7084 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
a0b9e27f MB |
7085 | |
7086 | fi | |
1e6feb95 VZ |
7087 | |
7088 | ||
7089 | eval "$ac_cv_use_textctrl" | |
7090 | if test "$no_cache" != 1; then | |
7091 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7092 | fi | |
7093 | ||
7094 | if test "$wxUSE_TEXTCTRL" = yes; then | |
a0b9e27f | 7095 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7096 | else |
a0b9e27f | 7097 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7098 | fi |
a0b9e27f | 7099 | |
1e6feb95 | 7100 | |
5005acfe VZ |
7101 | enablestring= |
7102 | echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6 | |
3c907f20 | 7103 | echo "configure:7104: checking for --${enablestring:-enable}-togglebtn" >&5 |
1db8dc4a VZ |
7104 | no_cache=0 |
7105 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7106 | if test "${enable_togglebtn+set}" = set; then | |
7107 | enableval="$enable_togglebtn" | |
a0b9e27f | 7108 | |
1db8dc4a VZ |
7109 | if test "$enableval" = yes; then |
7110 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7111 | else | |
7112 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7113 | fi | |
a0b9e27f | 7114 | |
1db8dc4a | 7115 | else |
a0b9e27f | 7116 | |
1db8dc4a VZ |
7117 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7118 | if test "x$LINE" != x ; then | |
7119 | eval "DEFAULT_$LINE" | |
7120 | else | |
7121 | no_cache=1 | |
7122 | fi | |
7123 | ||
7124 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
a0b9e27f MB |
7125 | |
7126 | fi | |
1db8dc4a VZ |
7127 | |
7128 | ||
7129 | eval "$ac_cv_use_togglebtn" | |
7130 | if test "$no_cache" != 1; then | |
7131 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7132 | fi | |
7133 | ||
7134 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
a0b9e27f | 7135 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 7136 | else |
a0b9e27f | 7137 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 7138 | fi |
a0b9e27f | 7139 | |
1db8dc4a | 7140 | |
5005acfe VZ |
7141 | enablestring= |
7142 | echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6 | |
3c907f20 | 7143 | echo "configure:7144: checking for --${enablestring:-enable}-toolbar" >&5 |
10f2d63a VZ |
7144 | no_cache=0 |
7145 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7146 | if test "${enable_toolbar+set}" = set; then | |
7147 | enableval="$enable_toolbar" | |
a0b9e27f | 7148 | |
10f2d63a VZ |
7149 | if test "$enableval" = yes; then |
7150 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7151 | else | |
7152 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7153 | fi | |
a0b9e27f | 7154 | |
10f2d63a | 7155 | else |
a0b9e27f | 7156 | |
10f2d63a VZ |
7157 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7158 | if test "x$LINE" != x ; then | |
7159 | eval "DEFAULT_$LINE" | |
7160 | else | |
7161 | no_cache=1 | |
7162 | fi | |
7163 | ||
7164 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
a0b9e27f MB |
7165 | |
7166 | fi | |
10f2d63a VZ |
7167 | |
7168 | ||
7169 | eval "$ac_cv_use_toolbar" | |
7170 | if test "$no_cache" != 1; then | |
7171 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7172 | fi | |
7173 | ||
7174 | if test "$wxUSE_TOOLBAR" = yes; then | |
a0b9e27f | 7175 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7176 | else |
a0b9e27f | 7177 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7178 | fi |
a0b9e27f | 7179 | |
10f2d63a | 7180 | |
5005acfe VZ |
7181 | enablestring= |
7182 | echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6 | |
3c907f20 | 7183 | echo "configure:7184: checking for --${enablestring:-enable}-tbarnative" >&5 |
360d6699 VZ |
7184 | no_cache=0 |
7185 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7186 | if test "${enable_tbarnative+set}" = set; then | |
7187 | enableval="$enable_tbarnative" | |
a0b9e27f | 7188 | |
360d6699 VZ |
7189 | if test "$enableval" = yes; then |
7190 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7191 | else | |
7192 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7193 | fi | |
a0b9e27f | 7194 | |
360d6699 | 7195 | else |
a0b9e27f | 7196 | |
360d6699 VZ |
7197 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7198 | if test "x$LINE" != x ; then | |
7199 | eval "DEFAULT_$LINE" | |
7200 | else | |
7201 | no_cache=1 | |
7202 | fi | |
7203 | ||
7204 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
a0b9e27f MB |
7205 | |
7206 | fi | |
360d6699 VZ |
7207 | |
7208 | ||
7209 | eval "$ac_cv_use_tbarnative" | |
7210 | if test "$no_cache" != 1; then | |
7211 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7212 | fi | |
7213 | ||
7214 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
a0b9e27f | 7215 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7216 | else |
a0b9e27f | 7217 | echo "$ac_t""no" 1>&6 |
360d6699 | 7218 | fi |
a0b9e27f | 7219 | |
360d6699 | 7220 | |
5005acfe VZ |
7221 | enablestring= |
7222 | echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6 | |
3c907f20 | 7223 | echo "configure:7224: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
360d6699 VZ |
7224 | no_cache=0 |
7225 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7226 | if test "${enable_tbarsmpl+set}" = set; then | |
7227 | enableval="$enable_tbarsmpl" | |
a0b9e27f | 7228 | |
360d6699 VZ |
7229 | if test "$enableval" = yes; then |
7230 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7231 | else | |
7232 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7233 | fi | |
a0b9e27f | 7234 | |
360d6699 | 7235 | else |
a0b9e27f | 7236 | |
360d6699 VZ |
7237 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7238 | if test "x$LINE" != x ; then | |
7239 | eval "DEFAULT_$LINE" | |
7240 | else | |
7241 | no_cache=1 | |
7242 | fi | |
7243 | ||
7244 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
a0b9e27f MB |
7245 | |
7246 | fi | |
360d6699 VZ |
7247 | |
7248 | ||
7249 | eval "$ac_cv_use_tbarsmpl" | |
7250 | if test "$no_cache" != 1; then | |
7251 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7252 | fi | |
7253 | ||
7254 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
a0b9e27f | 7255 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7256 | else |
a0b9e27f | 7257 | echo "$ac_t""no" 1>&6 |
360d6699 | 7258 | fi |
a0b9e27f | 7259 | |
360d6699 | 7260 | |
5005acfe VZ |
7261 | enablestring= |
7262 | echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6 | |
3c907f20 | 7263 | echo "configure:7264: checking for --${enablestring:-enable}-treectrl" >&5 |
10f2d63a VZ |
7264 | no_cache=0 |
7265 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7266 | if test "${enable_treectrl+set}" = set; then | |
7267 | enableval="$enable_treectrl" | |
a0b9e27f | 7268 | |
10f2d63a VZ |
7269 | if test "$enableval" = yes; then |
7270 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7271 | else | |
7272 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7273 | fi | |
a0b9e27f | 7274 | |
10f2d63a | 7275 | else |
a0b9e27f | 7276 | |
10f2d63a VZ |
7277 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7278 | if test "x$LINE" != x ; then | |
7279 | eval "DEFAULT_$LINE" | |
7280 | else | |
7281 | no_cache=1 | |
7282 | fi | |
7283 | ||
7284 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
a0b9e27f MB |
7285 | |
7286 | fi | |
10f2d63a VZ |
7287 | |
7288 | ||
1e6feb95 VZ |
7289 | eval "$ac_cv_use_treectrl" |
7290 | if test "$no_cache" != 1; then | |
7291 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7292 | fi | |
7293 | ||
7294 | if test "$wxUSE_TREECTRL" = yes; then | |
a0b9e27f | 7295 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7296 | else |
a0b9e27f | 7297 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7298 | fi |
a0b9e27f | 7299 | |
1e6feb95 | 7300 | |
5005acfe VZ |
7301 | enablestring= |
7302 | echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6 | |
3c907f20 | 7303 | echo "configure:7304: checking for --${enablestring:-enable}-tipwindow" >&5 |
9926e4a4 VZ |
7304 | no_cache=0 |
7305 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7306 | if test "${enable_tipwindow+set}" = set; then | |
7307 | enableval="$enable_tipwindow" | |
a0b9e27f | 7308 | |
9926e4a4 VZ |
7309 | if test "$enableval" = yes; then |
7310 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7311 | else | |
7312 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7313 | fi | |
a0b9e27f | 7314 | |
9926e4a4 | 7315 | else |
a0b9e27f | 7316 | |
9926e4a4 VZ |
7317 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
7318 | if test "x$LINE" != x ; then | |
7319 | eval "DEFAULT_$LINE" | |
7320 | else | |
7321 | no_cache=1 | |
7322 | fi | |
7323 | ||
7324 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
a0b9e27f MB |
7325 | |
7326 | fi | |
9926e4a4 VZ |
7327 | |
7328 | ||
7329 | eval "$ac_cv_use_tipwindow" | |
7330 | if test "$no_cache" != 1; then | |
7331 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7332 | fi | |
7333 | ||
7334 | if test "$wxUSE_TIPWINDOW" = yes; then | |
a0b9e27f | 7335 | echo "$ac_t""yes" 1>&6 |
9926e4a4 | 7336 | else |
a0b9e27f | 7337 | echo "$ac_t""no" 1>&6 |
9926e4a4 | 7338 | fi |
a0b9e27f | 7339 | |
9926e4a4 | 7340 | |
5005acfe VZ |
7341 | enablestring= |
7342 | echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6 | |
3c907f20 | 7343 | echo "configure:7344: checking for --${enablestring:-enable}-popupwin" >&5 |
9f41d601 RR |
7344 | no_cache=0 |
7345 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7346 | if test "${enable_popupwin+set}" = set; then | |
7347 | enableval="$enable_popupwin" | |
a0b9e27f | 7348 | |
9f41d601 RR |
7349 | if test "$enableval" = yes; then |
7350 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7351 | else | |
7352 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7353 | fi | |
a0b9e27f | 7354 | |
9f41d601 | 7355 | else |
a0b9e27f | 7356 | |
9f41d601 RR |
7357 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
7358 | if test "x$LINE" != x ; then | |
7359 | eval "DEFAULT_$LINE" | |
7360 | else | |
7361 | no_cache=1 | |
7362 | fi | |
7363 | ||
7364 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
a0b9e27f MB |
7365 | |
7366 | fi | |
9f41d601 RR |
7367 | |
7368 | ||
7369 | eval "$ac_cv_use_popupwin" | |
7370 | if test "$no_cache" != 1; then | |
7371 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7372 | fi | |
7373 | ||
7374 | if test "$wxUSE_POPUPWIN" = yes; then | |
a0b9e27f | 7375 | echo "$ac_t""yes" 1>&6 |
9f41d601 | 7376 | else |
a0b9e27f | 7377 | echo "$ac_t""no" 1>&6 |
9f41d601 | 7378 | fi |
a0b9e27f | 7379 | |
52127426 | 7380 | |
8284b0c5 MB |
7381 | |
7382 | ||
5005acfe VZ |
7383 | enablestring= |
7384 | echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6 | |
3c907f20 | 7385 | echo "configure:7386: checking for --${enablestring:-enable}-commondlg" >&5 |
1e6feb95 VZ |
7386 | no_cache=0 |
7387 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7388 | if test "${enable_commondlg+set}" = set; then | |
7389 | enableval="$enable_commondlg" | |
a0b9e27f | 7390 | |
1e6feb95 VZ |
7391 | if test "$enableval" = yes; then |
7392 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7393 | else | |
7394 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7395 | fi | |
a0b9e27f | 7396 | |
1e6feb95 | 7397 | else |
a0b9e27f | 7398 | |
1e6feb95 VZ |
7399 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
7400 | if test "x$LINE" != x ; then | |
7401 | eval "DEFAULT_$LINE" | |
7402 | else | |
7403 | no_cache=1 | |
7404 | fi | |
7405 | ||
7406 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
a0b9e27f MB |
7407 | |
7408 | fi | |
1e6feb95 VZ |
7409 | |
7410 | ||
7411 | eval "$ac_cv_use_commondlg" | |
7412 | if test "$no_cache" != 1; then | |
7413 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7414 | fi | |
7415 | ||
7416 | if test "$wxUSE_COMMONDLGS" = yes; then | |
a0b9e27f | 7417 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7418 | else |
a0b9e27f | 7419 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7420 | fi |
a0b9e27f | 7421 | |
1e6feb95 | 7422 | |
5005acfe VZ |
7423 | enablestring= |
7424 | echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6 | |
3c907f20 | 7425 | echo "configure:7426: checking for --${enablestring:-enable}-choicedlg" >&5 |
1e6feb95 VZ |
7426 | no_cache=0 |
7427 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7428 | if test "${enable_choicedlg+set}" = set; then | |
7429 | enableval="$enable_choicedlg" | |
a0b9e27f | 7430 | |
1e6feb95 VZ |
7431 | if test "$enableval" = yes; then |
7432 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7433 | else | |
7434 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7435 | fi | |
a0b9e27f | 7436 | |
1e6feb95 | 7437 | else |
a0b9e27f | 7438 | |
1e6feb95 VZ |
7439 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
7440 | if test "x$LINE" != x ; then | |
7441 | eval "DEFAULT_$LINE" | |
7442 | else | |
7443 | no_cache=1 | |
7444 | fi | |
7445 | ||
7446 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
a0b9e27f MB |
7447 | |
7448 | fi | |
1e6feb95 VZ |
7449 | |
7450 | ||
7451 | eval "$ac_cv_use_choicedlg" | |
7452 | if test "$no_cache" != 1; then | |
7453 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7454 | fi | |
7455 | ||
7456 | if test "$wxUSE_CHOICEDLG" = yes; then | |
a0b9e27f | 7457 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7458 | else |
a0b9e27f | 7459 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7460 | fi |
a0b9e27f | 7461 | |
1e6feb95 | 7462 | |
5005acfe VZ |
7463 | enablestring= |
7464 | echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6 | |
3c907f20 | 7465 | echo "configure:7466: checking for --${enablestring:-enable}-coldlg" >&5 |
1e6feb95 VZ |
7466 | no_cache=0 |
7467 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7468 | if test "${enable_coldlg+set}" = set; then | |
7469 | enableval="$enable_coldlg" | |
a0b9e27f | 7470 | |
1e6feb95 VZ |
7471 | if test "$enableval" = yes; then |
7472 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7473 | else | |
7474 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7475 | fi | |
a0b9e27f | 7476 | |
1e6feb95 | 7477 | else |
a0b9e27f | 7478 | |
1e6feb95 VZ |
7479 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
7480 | if test "x$LINE" != x ; then | |
7481 | eval "DEFAULT_$LINE" | |
7482 | else | |
7483 | no_cache=1 | |
7484 | fi | |
7485 | ||
7486 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
a0b9e27f MB |
7487 | |
7488 | fi | |
1e6feb95 VZ |
7489 | |
7490 | ||
7491 | eval "$ac_cv_use_coldlg" | |
7492 | if test "$no_cache" != 1; then | |
7493 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7494 | fi | |
7495 | ||
7496 | if test "$wxUSE_COLOURDLG" = yes; then | |
a0b9e27f | 7497 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7498 | else |
a0b9e27f | 7499 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7500 | fi |
a0b9e27f | 7501 | |
1e6feb95 | 7502 | |
5005acfe VZ |
7503 | enablestring= |
7504 | echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6 | |
3c907f20 | 7505 | echo "configure:7506: checking for --${enablestring:-enable}-filedlg" >&5 |
1e6feb95 VZ |
7506 | no_cache=0 |
7507 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7508 | if test "${enable_filedlg+set}" = set; then | |
7509 | enableval="$enable_filedlg" | |
a0b9e27f | 7510 | |
1e6feb95 VZ |
7511 | if test "$enableval" = yes; then |
7512 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7513 | else | |
7514 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7515 | fi | |
a0b9e27f | 7516 | |
1e6feb95 | 7517 | else |
a0b9e27f | 7518 | |
1e6feb95 VZ |
7519 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
7520 | if test "x$LINE" != x ; then | |
7521 | eval "DEFAULT_$LINE" | |
7522 | else | |
7523 | no_cache=1 | |
7524 | fi | |
7525 | ||
7526 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
a0b9e27f MB |
7527 | |
7528 | fi | |
1e6feb95 VZ |
7529 | |
7530 | ||
7531 | eval "$ac_cv_use_filedlg" | |
7532 | if test "$no_cache" != 1; then | |
7533 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7534 | fi | |
7535 | ||
7536 | if test "$wxUSE_FILEDLG" = yes; then | |
a0b9e27f | 7537 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7538 | else |
a0b9e27f | 7539 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7540 | fi |
a0b9e27f | 7541 | |
1e6feb95 | 7542 | |
5005acfe VZ |
7543 | enablestring= |
7544 | echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6 | |
3c907f20 | 7545 | echo "configure:7546: checking for --${enablestring:-enable}-finddlg" >&5 |
8db37e06 | 7546 | no_cache=0 |
69d27ff7 MB |
7547 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7548 | if test "${enable_finddlg+set}" = set; then | |
7549 | enableval="$enable_finddlg" | |
a0b9e27f | 7550 | |
8db37e06 | 7551 | if test "$enableval" = yes; then |
69d27ff7 | 7552 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7553 | else |
69d27ff7 | 7554 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 7555 | fi |
a0b9e27f | 7556 | |
8db37e06 | 7557 | else |
a0b9e27f | 7558 | |
8db37e06 VZ |
7559 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
7560 | if test "x$LINE" != x ; then | |
7561 | eval "DEFAULT_$LINE" | |
7562 | else | |
7563 | no_cache=1 | |
7564 | fi | |
7565 | ||
69d27ff7 | 7566 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
a0b9e27f MB |
7567 | |
7568 | fi | |
8db37e06 VZ |
7569 | |
7570 | ||
69d27ff7 | 7571 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7572 | if test "$no_cache" != 1; then |
69d27ff7 | 7573 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7574 | fi |
7575 | ||
7576 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
a0b9e27f | 7577 | echo "$ac_t""yes" 1>&6 |
8db37e06 | 7578 | else |
a0b9e27f | 7579 | echo "$ac_t""no" 1>&6 |
8db37e06 | 7580 | fi |
a0b9e27f | 7581 | |
8db37e06 | 7582 | |
5005acfe VZ |
7583 | enablestring= |
7584 | echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6 | |
3c907f20 | 7585 | echo "configure:7586: checking for --${enablestring:-enable}-fontdlg" >&5 |
1e6feb95 VZ |
7586 | no_cache=0 |
7587 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7588 | if test "${enable_fontdlg+set}" = set; then | |
7589 | enableval="$enable_fontdlg" | |
a0b9e27f | 7590 | |
1e6feb95 VZ |
7591 | if test "$enableval" = yes; then |
7592 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7593 | else | |
7594 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7595 | fi | |
a0b9e27f | 7596 | |
1e6feb95 | 7597 | else |
a0b9e27f | 7598 | |
1e6feb95 VZ |
7599 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
7600 | if test "x$LINE" != x ; then | |
7601 | eval "DEFAULT_$LINE" | |
7602 | else | |
7603 | no_cache=1 | |
7604 | fi | |
7605 | ||
7606 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
a0b9e27f MB |
7607 | |
7608 | fi | |
1e6feb95 VZ |
7609 | |
7610 | ||
7611 | eval "$ac_cv_use_fontdlg" | |
7612 | if test "$no_cache" != 1; then | |
7613 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7614 | fi | |
7615 | ||
7616 | if test "$wxUSE_FONTDLG" = yes; then | |
a0b9e27f | 7617 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7618 | else |
a0b9e27f | 7619 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7620 | fi |
a0b9e27f | 7621 | |
1e6feb95 | 7622 | |
5005acfe VZ |
7623 | enablestring= |
7624 | echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6 | |
3c907f20 | 7625 | echo "configure:7626: checking for --${enablestring:-enable}-dirdlg" >&5 |
1e6feb95 VZ |
7626 | no_cache=0 |
7627 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7628 | if test "${enable_dirdlg+set}" = set; then | |
7629 | enableval="$enable_dirdlg" | |
a0b9e27f | 7630 | |
1e6feb95 VZ |
7631 | if test "$enableval" = yes; then |
7632 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7633 | else | |
7634 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7635 | fi | |
a0b9e27f | 7636 | |
1e6feb95 | 7637 | else |
a0b9e27f | 7638 | |
1e6feb95 VZ |
7639 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
7640 | if test "x$LINE" != x ; then | |
7641 | eval "DEFAULT_$LINE" | |
7642 | else | |
7643 | no_cache=1 | |
7644 | fi | |
7645 | ||
7646 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
a0b9e27f MB |
7647 | |
7648 | fi | |
1e6feb95 VZ |
7649 | |
7650 | ||
7651 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7652 | if test "$no_cache" != 1; then |
1e6feb95 | 7653 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7654 | fi |
7655 | ||
1e6feb95 | 7656 | if test "$wxUSE_DIRDLG" = yes; then |
a0b9e27f | 7657 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7658 | else |
a0b9e27f | 7659 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7660 | fi |
a0b9e27f | 7661 | |
698dcdb6 | 7662 | |
5005acfe VZ |
7663 | enablestring= |
7664 | echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6 | |
3c907f20 | 7665 | echo "configure:7666: checking for --${enablestring:-enable}-msgdlg" >&5 |
10f2d63a | 7666 | no_cache=0 |
1e6feb95 VZ |
7667 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7668 | if test "${enable_msgdlg+set}" = set; then | |
7669 | enableval="$enable_msgdlg" | |
a0b9e27f | 7670 | |
10f2d63a | 7671 | if test "$enableval" = yes; then |
1e6feb95 | 7672 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7673 | else |
1e6feb95 | 7674 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7675 | fi |
a0b9e27f | 7676 | |
10f2d63a | 7677 | else |
a0b9e27f | 7678 | |
1e6feb95 | 7679 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7680 | if test "x$LINE" != x ; then |
7681 | eval "DEFAULT_$LINE" | |
7682 | else | |
7683 | no_cache=1 | |
7684 | fi | |
7685 | ||
1e6feb95 | 7686 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
a0b9e27f MB |
7687 | |
7688 | fi | |
10f2d63a VZ |
7689 | |
7690 | ||
1e6feb95 | 7691 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7692 | if test "$no_cache" != 1; then |
1e6feb95 | 7693 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7694 | fi |
7695 | ||
1e6feb95 | 7696 | if test "$wxUSE_MSGDLG" = yes; then |
a0b9e27f | 7697 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7698 | else |
a0b9e27f | 7699 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7700 | fi |
a0b9e27f | 7701 | |
10f2d63a | 7702 | |
5005acfe VZ |
7703 | enablestring= |
7704 | echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6 | |
3c907f20 | 7705 | echo "configure:7706: checking for --${enablestring:-enable}-numberdlg" >&5 |
10f2d63a | 7706 | no_cache=0 |
1e6feb95 VZ |
7707 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7708 | if test "${enable_numberdlg+set}" = set; then | |
7709 | enableval="$enable_numberdlg" | |
a0b9e27f | 7710 | |
10f2d63a | 7711 | if test "$enableval" = yes; then |
1e6feb95 | 7712 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7713 | else |
1e6feb95 | 7714 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7715 | fi |
a0b9e27f | 7716 | |
10f2d63a | 7717 | else |
a0b9e27f | 7718 | |
1e6feb95 | 7719 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7720 | if test "x$LINE" != x ; then |
7721 | eval "DEFAULT_$LINE" | |
7722 | else | |
7723 | no_cache=1 | |
7724 | fi | |
7725 | ||
1e6feb95 | 7726 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
a0b9e27f MB |
7727 | |
7728 | fi | |
10f2d63a VZ |
7729 | |
7730 | ||
1e6feb95 | 7731 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7732 | if test "$no_cache" != 1; then |
1e6feb95 | 7733 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7734 | fi |
7735 | ||
1e6feb95 | 7736 | if test "$wxUSE_NUMBERDLG" = yes; then |
a0b9e27f | 7737 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7738 | else |
a0b9e27f | 7739 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7740 | fi |
a0b9e27f | 7741 | |
10f2d63a | 7742 | |
5005acfe VZ |
7743 | enablestring= |
7744 | echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6 | |
3c907f20 | 7745 | echo "configure:7746: checking for --${enablestring:-enable}-splash" >&5 |
cbca9943 VZ |
7746 | no_cache=0 |
7747 | # Check whether --enable-splash or --disable-splash was given. | |
7748 | if test "${enable_splash+set}" = set; then | |
7749 | enableval="$enable_splash" | |
a0b9e27f | 7750 | |
cbca9943 VZ |
7751 | if test "$enableval" = yes; then |
7752 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7753 | else | |
7754 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7755 | fi | |
a0b9e27f | 7756 | |
cbca9943 | 7757 | else |
a0b9e27f | 7758 | |
cbca9943 VZ |
7759 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
7760 | if test "x$LINE" != x ; then | |
7761 | eval "DEFAULT_$LINE" | |
7762 | else | |
7763 | no_cache=1 | |
7764 | fi | |
7765 | ||
7766 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
a0b9e27f MB |
7767 | |
7768 | fi | |
cbca9943 VZ |
7769 | |
7770 | ||
7771 | eval "$ac_cv_use_splash" | |
7772 | if test "$no_cache" != 1; then | |
7773 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7774 | fi | |
7775 | ||
7776 | if test "$wxUSE_SPLASH" = yes; then | |
a0b9e27f | 7777 | echo "$ac_t""yes" 1>&6 |
cbca9943 | 7778 | else |
a0b9e27f | 7779 | echo "$ac_t""no" 1>&6 |
cbca9943 | 7780 | fi |
a0b9e27f | 7781 | |
cbca9943 | 7782 | |
5005acfe VZ |
7783 | enablestring= |
7784 | echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6 | |
3c907f20 | 7785 | echo "configure:7786: checking for --${enablestring:-enable}-textdlg" >&5 |
10f2d63a VZ |
7786 | no_cache=0 |
7787 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7788 | if test "${enable_textdlg+set}" = set; then | |
7789 | enableval="$enable_textdlg" | |
a0b9e27f | 7790 | |
10f2d63a VZ |
7791 | if test "$enableval" = yes; then |
7792 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7793 | else | |
7794 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7795 | fi | |
a0b9e27f | 7796 | |
10f2d63a | 7797 | else |
a0b9e27f | 7798 | |
10f2d63a VZ |
7799 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7800 | if test "x$LINE" != x ; then | |
7801 | eval "DEFAULT_$LINE" | |
7802 | else | |
7803 | no_cache=1 | |
7804 | fi | |
7805 | ||
7806 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
a0b9e27f MB |
7807 | |
7808 | fi | |
10f2d63a VZ |
7809 | |
7810 | ||
7811 | eval "$ac_cv_use_textdlg" | |
7812 | if test "$no_cache" != 1; then | |
7813 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7814 | fi | |
7815 | ||
7816 | if test "$wxUSE_TEXTDLG" = yes; then | |
a0b9e27f | 7817 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7818 | else |
a0b9e27f | 7819 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7820 | fi |
a0b9e27f | 7821 | |
10f2d63a | 7822 | |
5005acfe VZ |
7823 | enablestring= |
7824 | echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6 | |
3c907f20 | 7825 | echo "configure:7826: checking for --${enablestring:-enable}-tipdlg" >&5 |
10f2d63a VZ |
7826 | no_cache=0 |
7827 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7828 | if test "${enable_tipdlg+set}" = set; then | |
7829 | enableval="$enable_tipdlg" | |
a0b9e27f | 7830 | |
10f2d63a VZ |
7831 | if test "$enableval" = yes; then |
7832 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7833 | else | |
7834 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7835 | fi | |
a0b9e27f | 7836 | |
10f2d63a | 7837 | else |
a0b9e27f | 7838 | |
10f2d63a VZ |
7839 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7840 | if test "x$LINE" != x ; then | |
7841 | eval "DEFAULT_$LINE" | |
7842 | else | |
7843 | no_cache=1 | |
7844 | fi | |
7845 | ||
7846 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
a0b9e27f MB |
7847 | |
7848 | fi | |
10f2d63a VZ |
7849 | |
7850 | ||
7851 | eval "$ac_cv_use_tipdlg" | |
7852 | if test "$no_cache" != 1; then | |
7853 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7854 | fi | |
7855 | ||
7856 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
a0b9e27f | 7857 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7858 | else |
a0b9e27f | 7859 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7860 | fi |
a0b9e27f | 7861 | |
10f2d63a | 7862 | |
5005acfe VZ |
7863 | enablestring= |
7864 | echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6 | |
3c907f20 | 7865 | echo "configure:7866: checking for --${enablestring:-enable}-progressdlg" >&5 |
10f2d63a VZ |
7866 | no_cache=0 |
7867 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7868 | if test "${enable_progressdlg+set}" = set; then | |
7869 | enableval="$enable_progressdlg" | |
a0b9e27f | 7870 | |
10f2d63a VZ |
7871 | if test "$enableval" = yes; then |
7872 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7873 | else | |
7874 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7875 | fi | |
a0b9e27f | 7876 | |
10f2d63a | 7877 | else |
a0b9e27f | 7878 | |
10f2d63a VZ |
7879 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7880 | if test "x$LINE" != x ; then | |
7881 | eval "DEFAULT_$LINE" | |
7882 | else | |
7883 | no_cache=1 | |
7884 | fi | |
7885 | ||
7886 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
a0b9e27f MB |
7887 | |
7888 | fi | |
10f2d63a VZ |
7889 | |
7890 | ||
7891 | eval "$ac_cv_use_progressdlg" | |
7892 | if test "$no_cache" != 1; then | |
7893 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7894 | fi | |
7895 | ||
7896 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
a0b9e27f | 7897 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7898 | else |
a0b9e27f | 7899 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7900 | fi |
a0b9e27f | 7901 | |
10f2d63a | 7902 | |
5005acfe VZ |
7903 | enablestring= |
7904 | echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6 | |
3c907f20 | 7905 | echo "configure:7906: checking for --${enablestring:-enable}-wizarddlg" >&5 |
b1f5d087 VZ |
7906 | no_cache=0 |
7907 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7908 | if test "${enable_wizarddlg+set}" = set; then | |
7909 | enableval="$enable_wizarddlg" | |
a0b9e27f | 7910 | |
b1f5d087 VZ |
7911 | if test "$enableval" = yes; then |
7912 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7913 | else | |
7914 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7915 | fi | |
a0b9e27f | 7916 | |
b1f5d087 | 7917 | else |
a0b9e27f | 7918 | |
b1f5d087 VZ |
7919 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
7920 | if test "x$LINE" != x ; then | |
7921 | eval "DEFAULT_$LINE" | |
7922 | else | |
7923 | no_cache=1 | |
7924 | fi | |
7925 | ||
7926 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
a0b9e27f MB |
7927 | |
7928 | fi | |
b1f5d087 VZ |
7929 | |
7930 | ||
7931 | eval "$ac_cv_use_wizarddlg" | |
7932 | if test "$no_cache" != 1; then | |
7933 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7934 | fi | |
7935 | ||
7936 | if test "$wxUSE_WIZARDDLG" = yes; then | |
a0b9e27f | 7937 | echo "$ac_t""yes" 1>&6 |
b1f5d087 | 7938 | else |
a0b9e27f | 7939 | echo "$ac_t""no" 1>&6 |
b1f5d087 | 7940 | fi |
a0b9e27f | 7941 | |
8284b0c5 MB |
7942 | |
7943 | ||
52127426 | 7944 | |
5005acfe VZ |
7945 | enablestring= |
7946 | echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6 | |
3c907f20 | 7947 | echo "configure:7948: checking for --${enablestring:-enable}-menus" >&5 |
1e6feb95 VZ |
7948 | no_cache=0 |
7949 | # Check whether --enable-menus or --disable-menus was given. | |
7950 | if test "${enable_menus+set}" = set; then | |
7951 | enableval="$enable_menus" | |
a0b9e27f | 7952 | |
1e6feb95 VZ |
7953 | if test "$enableval" = yes; then |
7954 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7955 | else | |
7956 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7957 | fi | |
a0b9e27f | 7958 | |
1e6feb95 | 7959 | else |
a0b9e27f | 7960 | |
1e6feb95 VZ |
7961 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
7962 | if test "x$LINE" != x ; then | |
7963 | eval "DEFAULT_$LINE" | |
7964 | else | |
7965 | no_cache=1 | |
7966 | fi | |
7967 | ||
7968 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
a0b9e27f MB |
7969 | |
7970 | fi | |
1e6feb95 VZ |
7971 | |
7972 | ||
7973 | eval "$ac_cv_use_menus" | |
7974 | if test "$no_cache" != 1; then | |
7975 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7976 | fi | |
7977 | ||
7978 | if test "$wxUSE_MENUS" = yes; then | |
a0b9e27f | 7979 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7980 | else |
a0b9e27f | 7981 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7982 | fi |
a0b9e27f | 7983 | |
1e6feb95 | 7984 | |
5005acfe VZ |
7985 | enablestring= |
7986 | echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6 | |
3c907f20 | 7987 | echo "configure:7988: checking for --${enablestring:-enable}-miniframe" >&5 |
10f2d63a VZ |
7988 | no_cache=0 |
7989 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7990 | if test "${enable_miniframe+set}" = set; then | |
7991 | enableval="$enable_miniframe" | |
a0b9e27f | 7992 | |
10f2d63a VZ |
7993 | if test "$enableval" = yes; then |
7994 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7995 | else | |
7996 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7997 | fi | |
a0b9e27f | 7998 | |
10f2d63a | 7999 | else |
a0b9e27f | 8000 | |
10f2d63a VZ |
8001 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
8002 | if test "x$LINE" != x ; then | |
8003 | eval "DEFAULT_$LINE" | |
8004 | else | |
8005 | no_cache=1 | |
8006 | fi | |
8007 | ||
8008 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
a0b9e27f MB |
8009 | |
8010 | fi | |
10f2d63a VZ |
8011 | |
8012 | ||
8013 | eval "$ac_cv_use_miniframe" | |
8014 | if test "$no_cache" != 1; then | |
8015 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8016 | fi | |
8017 | ||
8018 | if test "$wxUSE_MINIFRAME" = yes; then | |
a0b9e27f | 8019 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8020 | else |
a0b9e27f | 8021 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8022 | fi |
a0b9e27f | 8023 | |
10f2d63a | 8024 | |
5005acfe VZ |
8025 | enablestring= |
8026 | echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6 | |
3c907f20 | 8027 | echo "configure:8028: checking for --${enablestring:-enable}-tooltips" >&5 |
10f2d63a VZ |
8028 | no_cache=0 |
8029 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8030 | if test "${enable_tooltips+set}" = set; then | |
8031 | enableval="$enable_tooltips" | |
a0b9e27f | 8032 | |
10f2d63a VZ |
8033 | if test "$enableval" = yes; then |
8034 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8035 | else | |
8036 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8037 | fi | |
a0b9e27f | 8038 | |
10f2d63a | 8039 | else |
a0b9e27f | 8040 | |
10f2d63a VZ |
8041 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
8042 | if test "x$LINE" != x ; then | |
8043 | eval "DEFAULT_$LINE" | |
8044 | else | |
8045 | no_cache=1 | |
8046 | fi | |
8047 | ||
8048 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
a0b9e27f MB |
8049 | |
8050 | fi | |
10f2d63a VZ |
8051 | |
8052 | ||
8053 | eval "$ac_cv_use_tooltips" | |
8054 | if test "$no_cache" != 1; then | |
8055 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8056 | fi | |
8057 | ||
8058 | if test "$wxUSE_TOOLTIPS" = yes; then | |
a0b9e27f | 8059 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8060 | else |
a0b9e27f | 8061 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8062 | fi |
a0b9e27f | 8063 | |
10f2d63a | 8064 | |
5005acfe VZ |
8065 | enablestring= |
8066 | echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6 | |
3c907f20 | 8067 | echo "configure:8068: checking for --${enablestring:-enable}-splines" >&5 |
10f2d63a VZ |
8068 | no_cache=0 |
8069 | # Check whether --enable-splines or --disable-splines was given. | |
8070 | if test "${enable_splines+set}" = set; then | |
8071 | enableval="$enable_splines" | |
a0b9e27f | 8072 | |
10f2d63a VZ |
8073 | if test "$enableval" = yes; then |
8074 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8075 | else | |
8076 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8077 | fi | |
a0b9e27f | 8078 | |
10f2d63a | 8079 | else |
a0b9e27f | 8080 | |
10f2d63a VZ |
8081 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
8082 | if test "x$LINE" != x ; then | |
8083 | eval "DEFAULT_$LINE" | |
8084 | else | |
8085 | no_cache=1 | |
8086 | fi | |
8087 | ||
8088 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
a0b9e27f MB |
8089 | |
8090 | fi | |
10f2d63a VZ |
8091 | |
8092 | ||
8093 | eval "$ac_cv_use_splines" | |
8094 | if test "$no_cache" != 1; then | |
8095 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8096 | fi | |
8097 | ||
8098 | if test "$wxUSE_SPLINES" = yes; then | |
a0b9e27f | 8099 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8100 | else |
a0b9e27f | 8101 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8102 | fi |
a0b9e27f | 8103 | |
10f2d63a | 8104 | |
5005acfe VZ |
8105 | enablestring= |
8106 | echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6 | |
3c907f20 | 8107 | echo "configure:8108: checking for --${enablestring:-enable}-validators" >&5 |
10f2d63a VZ |
8108 | no_cache=0 |
8109 | # Check whether --enable-validators or --disable-validators was given. | |
8110 | if test "${enable_validators+set}" = set; then | |
8111 | enableval="$enable_validators" | |
a0b9e27f | 8112 | |
10f2d63a VZ |
8113 | if test "$enableval" = yes; then |
8114 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8115 | else | |
8116 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8117 | fi | |
a0b9e27f | 8118 | |
10f2d63a | 8119 | else |
a0b9e27f | 8120 | |
10f2d63a VZ |
8121 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
8122 | if test "x$LINE" != x ; then | |
8123 | eval "DEFAULT_$LINE" | |
8124 | else | |
8125 | no_cache=1 | |
8126 | fi | |
8127 | ||
8128 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
a0b9e27f MB |
8129 | |
8130 | fi | |
10f2d63a VZ |
8131 | |
8132 | ||
8133 | eval "$ac_cv_use_validators" | |
8134 | if test "$no_cache" != 1; then | |
8135 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8136 | fi | |
8137 | ||
8138 | if test "$wxUSE_VALIDATORS" = yes; then | |
a0b9e27f | 8139 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8140 | else |
a0b9e27f | 8141 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8142 | fi |
a0b9e27f | 8143 | |
10f2d63a | 8144 | |
5005acfe VZ |
8145 | enablestring= |
8146 | echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6 | |
3c907f20 | 8147 | echo "configure:8148: checking for --${enablestring:-enable}-busyinfo" >&5 |
10f2d63a VZ |
8148 | no_cache=0 |
8149 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8150 | if test "${enable_busyinfo+set}" = set; then | |
8151 | enableval="$enable_busyinfo" | |
a0b9e27f | 8152 | |
10f2d63a VZ |
8153 | if test "$enableval" = yes; then |
8154 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8155 | else | |
8156 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8157 | fi | |
a0b9e27f | 8158 | |
10f2d63a | 8159 | else |
a0b9e27f | 8160 | |
10f2d63a VZ |
8161 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8162 | if test "x$LINE" != x ; then | |
8163 | eval "DEFAULT_$LINE" | |
8164 | else | |
8165 | no_cache=1 | |
8166 | fi | |
8167 | ||
8168 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
a0b9e27f MB |
8169 | |
8170 | fi | |
10f2d63a VZ |
8171 | |
8172 | ||
8173 | eval "$ac_cv_use_busyinfo" | |
8174 | if test "$no_cache" != 1; then | |
8175 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8176 | fi | |
8177 | ||
8178 | if test "$wxUSE_BUSYINFO" = yes; then | |
a0b9e27f | 8179 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8180 | else |
a0b9e27f | 8181 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8182 | fi |
a0b9e27f | 8183 | |
10f2d63a | 8184 | |
5005acfe VZ |
8185 | enablestring= |
8186 | echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6 | |
3c907f20 | 8187 | echo "configure:8188: checking for --${enablestring:-enable}-joystick" >&5 |
f6bcfd97 BP |
8188 | no_cache=0 |
8189 | # Check whether --enable-joystick or --disable-joystick was given. | |
8190 | if test "${enable_joystick+set}" = set; then | |
8191 | enableval="$enable_joystick" | |
a0b9e27f | 8192 | |
f6bcfd97 BP |
8193 | if test "$enableval" = yes; then |
8194 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8195 | else | |
8196 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8197 | fi | |
a0b9e27f | 8198 | |
f6bcfd97 | 8199 | else |
a0b9e27f | 8200 | |
f6bcfd97 BP |
8201 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8202 | if test "x$LINE" != x ; then | |
8203 | eval "DEFAULT_$LINE" | |
8204 | else | |
8205 | no_cache=1 | |
8206 | fi | |
8207 | ||
8208 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
a0b9e27f MB |
8209 | |
8210 | fi | |
f6bcfd97 BP |
8211 | |
8212 | ||
8213 | eval "$ac_cv_use_joystick" | |
8214 | if test "$no_cache" != 1; then | |
8215 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8216 | fi | |
8217 | ||
8218 | if test "$wxUSE_JOYSTICK" = yes; then | |
a0b9e27f | 8219 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8220 | else |
a0b9e27f | 8221 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8222 | fi |
a0b9e27f | 8223 | |
698dcdb6 | 8224 | |
5005acfe VZ |
8225 | enablestring= |
8226 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
3c907f20 | 8227 | echo "configure:8228: checking for --${enablestring:-enable}-metafile" >&5 |
1e6feb95 VZ |
8228 | no_cache=0 |
8229 | # Check whether --enable-metafile or --disable-metafile was given. | |
8230 | if test "${enable_metafile+set}" = set; then | |
8231 | enableval="$enable_metafile" | |
a0b9e27f | 8232 | |
1e6feb95 VZ |
8233 | if test "$enableval" = yes; then |
8234 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8235 | else | |
8236 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8237 | fi | |
a0b9e27f | 8238 | |
1e6feb95 | 8239 | else |
a0b9e27f | 8240 | |
1e6feb95 VZ |
8241 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
8242 | if test "x$LINE" != x ; then | |
8243 | eval "DEFAULT_$LINE" | |
8244 | else | |
8245 | no_cache=1 | |
8246 | fi | |
8247 | ||
8248 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
8249 | |
8250 | fi | |
1e6feb95 VZ |
8251 | |
8252 | ||
8253 | eval "$ac_cv_use_metafile" | |
8254 | if test "$no_cache" != 1; then | |
8255 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8256 | fi | |
8257 | ||
8258 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 8259 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8260 | else |
a0b9e27f | 8261 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8262 | fi |
a0b9e27f | 8263 | |
1e6feb95 | 8264 | |
5005acfe VZ |
8265 | enablestring= |
8266 | echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6 | |
3c907f20 | 8267 | echo "configure:8268: checking for --${enablestring:-enable}-dragimage" >&5 |
24fd6d87 VZ |
8268 | no_cache=0 |
8269 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8270 | if test "${enable_dragimage+set}" = set; then | |
8271 | enableval="$enable_dragimage" | |
a0b9e27f | 8272 | |
24fd6d87 VZ |
8273 | if test "$enableval" = yes; then |
8274 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8275 | else | |
8276 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8277 | fi | |
a0b9e27f | 8278 | |
24fd6d87 | 8279 | else |
a0b9e27f | 8280 | |
24fd6d87 VZ |
8281 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
8282 | if test "x$LINE" != x ; then | |
8283 | eval "DEFAULT_$LINE" | |
8284 | else | |
8285 | no_cache=1 | |
8286 | fi | |
8287 | ||
8288 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
a0b9e27f MB |
8289 | |
8290 | fi | |
24fd6d87 VZ |
8291 | |
8292 | ||
8293 | eval "$ac_cv_use_dragimage" | |
8294 | if test "$no_cache" != 1; then | |
8295 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8296 | fi | |
8297 | ||
8298 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
a0b9e27f | 8299 | echo "$ac_t""yes" 1>&6 |
24fd6d87 | 8300 | else |
a0b9e27f | 8301 | echo "$ac_t""no" 1>&6 |
24fd6d87 | 8302 | fi |
a0b9e27f | 8303 | |
52127426 | 8304 | |
7bb2947d MB |
8305 | enablestring= |
8306 | echo $ac_n "checking for --${enablestring:-enable}-accessibility""... $ac_c" 1>&6 | |
3c907f20 | 8307 | echo "configure:8308: checking for --${enablestring:-enable}-accessibility" >&5 |
7bb2947d MB |
8308 | no_cache=0 |
8309 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
8310 | if test "${enable_accessibility+set}" = set; then | |
8311 | enableval="$enable_accessibility" | |
8312 | ||
8313 | if test "$enableval" = yes; then | |
8314 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
8315 | else | |
8316 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
8317 | fi | |
8318 | ||
8319 | else | |
8320 | ||
8321 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
8322 | if test "x$LINE" != x ; then | |
8323 | eval "DEFAULT_$LINE" | |
8324 | else | |
8325 | no_cache=1 | |
8326 | fi | |
8327 | ||
8328 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
8329 | ||
8330 | fi | |
8331 | ||
8332 | ||
8333 | eval "$ac_cv_use_accessibility" | |
8334 | if test "$no_cache" != 1; then | |
8335 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
8336 | fi | |
8337 | ||
8338 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
8339 | echo "$ac_t""yes" 1>&6 | |
8340 | else | |
8341 | echo "$ac_t""no" 1>&6 | |
8342 | fi | |
8343 | ||
8344 | ||
8284b0c5 MB |
8345 | |
8346 | ||
5005acfe VZ |
8347 | enablestring= |
8348 | echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6 | |
3c907f20 | 8349 | echo "configure:8350: checking for --${enablestring:-enable}-palette" >&5 |
edae8572 VZ |
8350 | no_cache=0 |
8351 | # Check whether --enable-palette or --disable-palette was given. | |
8352 | if test "${enable_palette+set}" = set; then | |
8353 | enableval="$enable_palette" | |
a0b9e27f | 8354 | |
edae8572 VZ |
8355 | if test "$enableval" = yes; then |
8356 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8357 | else | |
8358 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8359 | fi | |
a0b9e27f | 8360 | |
edae8572 | 8361 | else |
a0b9e27f | 8362 | |
edae8572 VZ |
8363 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
8364 | if test "x$LINE" != x ; then | |
8365 | eval "DEFAULT_$LINE" | |
8366 | else | |
8367 | no_cache=1 | |
8368 | fi | |
8369 | ||
8370 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
a0b9e27f MB |
8371 | |
8372 | fi | |
edae8572 VZ |
8373 | |
8374 | ||
8375 | eval "$ac_cv_use_palette" | |
8376 | if test "$no_cache" != 1; then | |
8377 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8378 | fi | |
8379 | ||
8380 | if test "$wxUSE_PALETTE" = yes; then | |
a0b9e27f | 8381 | echo "$ac_t""yes" 1>&6 |
edae8572 | 8382 | else |
a0b9e27f | 8383 | echo "$ac_t""no" 1>&6 |
edae8572 | 8384 | fi |
a0b9e27f | 8385 | |
edae8572 | 8386 | |
5005acfe VZ |
8387 | enablestring= |
8388 | echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6 | |
3c907f20 | 8389 | echo "configure:8390: checking for --${enablestring:-enable}-image" >&5 |
0046ff7c VS |
8390 | no_cache=0 |
8391 | # Check whether --enable-image or --disable-image was given. | |
8392 | if test "${enable_image+set}" = set; then | |
8393 | enableval="$enable_image" | |
a0b9e27f | 8394 | |
0046ff7c VS |
8395 | if test "$enableval" = yes; then |
8396 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8397 | else | |
8398 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8399 | fi | |
a0b9e27f | 8400 | |
0046ff7c | 8401 | else |
a0b9e27f | 8402 | |
0046ff7c VS |
8403 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8404 | if test "x$LINE" != x ; then | |
8405 | eval "DEFAULT_$LINE" | |
8406 | else | |
8407 | no_cache=1 | |
8408 | fi | |
8409 | ||
8410 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
a0b9e27f MB |
8411 | |
8412 | fi | |
0046ff7c VS |
8413 | |
8414 | ||
8415 | eval "$ac_cv_use_image" | |
8416 | if test "$no_cache" != 1; then | |
8417 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8418 | fi | |
8419 | ||
8420 | if test "$wxUSE_IMAGE" = yes; then | |
a0b9e27f | 8421 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8422 | else |
a0b9e27f | 8423 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8424 | fi |
a0b9e27f | 8425 | |
0046ff7c | 8426 | |
5005acfe VZ |
8427 | enablestring= |
8428 | echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6 | |
3c907f20 | 8429 | echo "configure:8430: checking for --${enablestring:-enable}-gif" >&5 |
10f2d63a VZ |
8430 | no_cache=0 |
8431 | # Check whether --enable-gif or --disable-gif was given. | |
8432 | if test "${enable_gif+set}" = set; then | |
8433 | enableval="$enable_gif" | |
a0b9e27f | 8434 | |
10f2d63a VZ |
8435 | if test "$enableval" = yes; then |
8436 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8437 | else | |
8438 | ac_cv_use_gif='wxUSE_GIF=no' | |
8439 | fi | |
a0b9e27f | 8440 | |
10f2d63a | 8441 | else |
a0b9e27f | 8442 | |
10f2d63a VZ |
8443 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8444 | if test "x$LINE" != x ; then | |
8445 | eval "DEFAULT_$LINE" | |
8446 | else | |
8447 | no_cache=1 | |
8448 | fi | |
8449 | ||
8450 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
a0b9e27f MB |
8451 | |
8452 | fi | |
10f2d63a VZ |
8453 | |
8454 | ||
8455 | eval "$ac_cv_use_gif" | |
8456 | if test "$no_cache" != 1; then | |
8457 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8458 | fi | |
8459 | ||
8460 | if test "$wxUSE_GIF" = yes; then | |
a0b9e27f | 8461 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8462 | else |
a0b9e27f | 8463 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8464 | fi |
a0b9e27f | 8465 | |
10f2d63a | 8466 | |
5005acfe VZ |
8467 | enablestring= |
8468 | echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6 | |
3c907f20 | 8469 | echo "configure:8470: checking for --${enablestring:-enable}-pcx" >&5 |
10f2d63a VZ |
8470 | no_cache=0 |
8471 | # Check whether --enable-pcx or --disable-pcx was given. | |
8472 | if test "${enable_pcx+set}" = set; then | |
8473 | enableval="$enable_pcx" | |
a0b9e27f | 8474 | |
10f2d63a VZ |
8475 | if test "$enableval" = yes; then |
8476 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8477 | else | |
8478 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8479 | fi | |
a0b9e27f | 8480 | |
10f2d63a | 8481 | else |
a0b9e27f | 8482 | |
10f2d63a VZ |
8483 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8484 | if test "x$LINE" != x ; then | |
8485 | eval "DEFAULT_$LINE" | |
8486 | else | |
8487 | no_cache=1 | |
8488 | fi | |
8489 | ||
8490 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
a0b9e27f MB |
8491 | |
8492 | fi | |
10f2d63a VZ |
8493 | |
8494 | ||
8495 | eval "$ac_cv_use_pcx" | |
8496 | if test "$no_cache" != 1; then | |
8497 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8498 | fi | |
8499 | ||
8500 | if test "$wxUSE_PCX" = yes; then | |
a0b9e27f | 8501 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8502 | else |
a0b9e27f | 8503 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8504 | fi |
a0b9e27f | 8505 | |
10f2d63a | 8506 | |
5005acfe VZ |
8507 | enablestring= |
8508 | echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6 | |
3c907f20 | 8509 | echo "configure:8510: checking for --${enablestring:-enable}-iff" >&5 |
4b6b4dfc RR |
8510 | no_cache=0 |
8511 | # Check whether --enable-iff or --disable-iff was given. | |
8512 | if test "${enable_iff+set}" = set; then | |
8513 | enableval="$enable_iff" | |
a0b9e27f | 8514 | |
4b6b4dfc RR |
8515 | if test "$enableval" = yes; then |
8516 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8517 | else | |
8518 | ac_cv_use_iff='wxUSE_IFF=no' | |
8519 | fi | |
a0b9e27f | 8520 | |
4b6b4dfc | 8521 | else |
a0b9e27f | 8522 | |
4b6b4dfc RR |
8523 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
8524 | if test "x$LINE" != x ; then | |
8525 | eval "DEFAULT_$LINE" | |
8526 | else | |
8527 | no_cache=1 | |
8528 | fi | |
8529 | ||
8530 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
a0b9e27f MB |
8531 | |
8532 | fi | |
4b6b4dfc RR |
8533 | |
8534 | ||
8535 | eval "$ac_cv_use_iff" | |
8536 | if test "$no_cache" != 1; then | |
8537 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8538 | fi | |
8539 | ||
8540 | if test "$wxUSE_IFF" = yes; then | |
a0b9e27f | 8541 | echo "$ac_t""yes" 1>&6 |
4b6b4dfc | 8542 | else |
a0b9e27f | 8543 | echo "$ac_t""no" 1>&6 |
4b6b4dfc | 8544 | fi |
a0b9e27f | 8545 | |
4b6b4dfc | 8546 | |
5005acfe VZ |
8547 | enablestring= |
8548 | echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6 | |
3c907f20 | 8549 | echo "configure:8550: checking for --${enablestring:-enable}-pnm" >&5 |
10f2d63a VZ |
8550 | no_cache=0 |
8551 | # Check whether --enable-pnm or --disable-pnm was given. | |
8552 | if test "${enable_pnm+set}" = set; then | |
8553 | enableval="$enable_pnm" | |
a0b9e27f | 8554 | |
10f2d63a VZ |
8555 | if test "$enableval" = yes; then |
8556 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8557 | else | |
8558 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8559 | fi | |
a0b9e27f | 8560 | |
10f2d63a | 8561 | else |
a0b9e27f | 8562 | |
10f2d63a VZ |
8563 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8564 | if test "x$LINE" != x ; then | |
8565 | eval "DEFAULT_$LINE" | |
8566 | else | |
8567 | no_cache=1 | |
8568 | fi | |
8569 | ||
8570 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
a0b9e27f MB |
8571 | |
8572 | fi | |
10f2d63a VZ |
8573 | |
8574 | ||
8575 | eval "$ac_cv_use_pnm" | |
8576 | if test "$no_cache" != 1; then | |
8577 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8578 | fi | |
8579 | ||
8580 | if test "$wxUSE_PNM" = yes; then | |
a0b9e27f | 8581 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8582 | else |
a0b9e27f | 8583 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8584 | fi |
a0b9e27f | 8585 | |
10f2d63a | 8586 | |
5005acfe VZ |
8587 | enablestring= |
8588 | echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6 | |
3c907f20 | 8589 | echo "configure:8590: checking for --${enablestring:-enable}-xpm" >&5 |
0046ff7c | 8590 | no_cache=0 |
69d27ff7 MB |
8591 | # Check whether --enable-xpm or --disable-xpm was given. |
8592 | if test "${enable_xpm+set}" = set; then | |
8593 | enableval="$enable_xpm" | |
a0b9e27f | 8594 | |
0046ff7c | 8595 | if test "$enableval" = yes; then |
69d27ff7 | 8596 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8597 | else |
69d27ff7 | 8598 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8599 | fi |
a0b9e27f | 8600 | |
0046ff7c | 8601 | else |
a0b9e27f | 8602 | |
0046ff7c VS |
8603 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8604 | if test "x$LINE" != x ; then | |
8605 | eval "DEFAULT_$LINE" | |
8606 | else | |
8607 | no_cache=1 | |
8608 | fi | |
8609 | ||
69d27ff7 | 8610 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
a0b9e27f MB |
8611 | |
8612 | fi | |
0046ff7c VS |
8613 | |
8614 | ||
69d27ff7 | 8615 | eval "$ac_cv_use_xpm" |
0046ff7c | 8616 | if test "$no_cache" != 1; then |
69d27ff7 | 8617 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8618 | fi |
8619 | ||
8620 | if test "$wxUSE_XPM" = yes; then | |
a0b9e27f | 8621 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8622 | else |
a0b9e27f | 8623 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8624 | fi |
a0b9e27f | 8625 | |
0046ff7c | 8626 | |
5005acfe VZ |
8627 | enablestring= |
8628 | echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6 | |
3c907f20 | 8629 | echo "configure:8630: checking for --${enablestring:-enable}-ico_cur" >&5 |
658974ae | 8630 | no_cache=0 |
c7206e64 VS |
8631 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8632 | if test "${enable_ico_cur+set}" = set; then | |
8633 | enableval="$enable_ico_cur" | |
a0b9e27f | 8634 | |
658974ae | 8635 | if test "$enableval" = yes; then |
c7206e64 | 8636 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8637 | else |
c7206e64 | 8638 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 8639 | fi |
a0b9e27f | 8640 | |
658974ae | 8641 | else |
a0b9e27f | 8642 | |
658974ae VS |
8643 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
8644 | if test "x$LINE" != x ; then | |
8645 | eval "DEFAULT_$LINE" | |
8646 | else | |
8647 | no_cache=1 | |
8648 | fi | |
8649 | ||
c7206e64 | 8650 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
a0b9e27f MB |
8651 | |
8652 | fi | |
658974ae VS |
8653 | |
8654 | ||
c7206e64 | 8655 | eval "$ac_cv_use_ico_cur" |
658974ae | 8656 | if test "$no_cache" != 1; then |
c7206e64 | 8657 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8658 | fi |
8659 | ||
8660 | if test "$wxUSE_ICO_CUR" = yes; then | |
a0b9e27f | 8661 | echo "$ac_t""yes" 1>&6 |
658974ae | 8662 | else |
a0b9e27f | 8663 | echo "$ac_t""no" 1>&6 |
658974ae | 8664 | fi |
a0b9e27f | 8665 | |
658974ae | 8666 | |
b12915c1 VZ |
8667 | fi |
8668 | ||
d558c907 VS |
8669 | case "${host}" in |
8670 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 MB |
8671 | PATH_IFS=';' |
8672 | LEX_STEM="lexyy" | |
d558c907 VS |
8673 | ;; |
8674 | *) | |
8675 | PATH_IFS=':' | |
8676 | LEX_STEM="lex.yy" | |
8677 | ;; | |
8678 | esac | |
8679 | ||
8284b0c5 MB |
8680 | |
8681 | ||
10f2d63a VZ |
8682 | echo "saving argument cache $wx_arg_cache_file" |
8683 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
a0b9e27f | 8684 | |
52127426 | 8685 | |
8284b0c5 | 8686 | |
a0b9e27f | 8687 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 |
3c907f20 | 8688 | echo "configure:8689: checking for toolkit" >&5 |
89e6bf6d VZ |
8689 | |
8690 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
8691 | if test "$wxUSE_WINE" = "yes"; then | |
8692 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
8693 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
8694 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
8695 | fi | |
10f2d63a VZ |
8696 | |
8697 | if test "$wxUSE_GUI" = "yes"; then | |
8698 | ||
3a922bb4 | 8699 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 8700 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
3a922bb4 | 8701 | fi |
b12915c1 | 8702 | |
3a922bb4 RL |
8703 | if test "$TOOLKIT_GIVEN" = 1; then |
8704 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8705 | var=wxUSE_$toolkit | |
8706 | eval "value=\$${var}" | |
8707 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8708 | done | |
10f2d63a | 8709 | else |
3a922bb4 RL |
8710 | for toolkit in `echo $ALL_TOOLKITS`; do |
8711 | if test "$has_toolkit_in_cache" != 1; then | |
8712 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8713 | else | |
8714 | var=DEFAULT_wxUSE_$toolkit | |
8715 | fi | |
8716 | eval "wxUSE_$toolkit=\$${var}" | |
8717 | done | |
10f2d63a | 8718 | fi |
10f2d63a | 8719 | |
ac0c4cc3 DE |
8720 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ |
8721 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
8722 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10f2d63a | 8723 | |
d558c907 | 8724 | case "${host}" in |
6fa882bd | 8725 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8726 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8727 | esac |
10f2d63a | 8728 | |
3a922bb4 RL |
8729 | case "$NUM_TOOLKITS" in |
8730 | 1) | |
8731 | ;; | |
8732 | 0) | |
a0b9e27f | 8733 | { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; } |
3a922bb4 RL |
8734 | ;; |
8735 | *) | |
a0b9e27f | 8736 | { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; } |
3a922bb4 | 8737 | esac |
10f2d63a | 8738 | |
3a922bb4 RL |
8739 | for toolkit in `echo $ALL_TOOLKITS`; do |
8740 | var=wxUSE_$toolkit | |
8741 | eval "value=\$${var}" | |
8742 | if test "x$value" != x; then | |
8743 | cache_var=CACHE_$toolkit | |
8744 | eval "cache=\$${cache_var}" | |
8745 | if test "$cache" = 1; then | |
8746 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8747 | fi | |
8748 | if test "$value" = 1; then | |
8749 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
a0b9e27f | 8750 | echo "$ac_t""$toolkit_echo" 1>&6 |
3a922bb4 RL |
8751 | fi |
8752 | fi | |
8753 | done | |
10f2d63a | 8754 | else |
a0b9e27f | 8755 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8756 | fi |
8757 | ||
43d99b6d VS |
8758 | wants_win32=0 |
8759 | doesnt_want_win32=0 | |
17234b26 MB |
8760 | case "${host}" in |
8761 | *-*-cygwin*) | |
8762 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
8763 | wants_win32=1 |
8764 | else | |
8765 | doesnt_want_win32=1 | |
17234b26 MB |
8766 | fi |
8767 | ;; | |
8768 | *-*-mingw*) | |
43d99b6d | 8769 | wants_win32=1 |
17234b26 MB |
8770 | ;; |
8771 | esac | |
8772 | ||
89e6bf6d VZ |
8773 | if test "$wxUSE_WINE" = "yes"; then |
8774 | wants_win32=1 | |
8775 | CC=winegcc | |
8776 | CXX=wineg++ | |
8777 | RESCOMP=wrc | |
8778 | fi | |
8779 | ||
43d99b6d | 8780 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
8781 | USE_UNIX=0 |
8782 | USE_WIN32=1 | |
a0b9e27f | 8783 | cat >> confdefs.h <<\EOF |
17234b26 | 8784 | #define __WIN32__ 1 |
a0b9e27f | 8785 | EOF |
17234b26 | 8786 | |
a0b9e27f | 8787 | cat >> confdefs.h <<\EOF |
17234b26 | 8788 | #define __WIN95__ 1 |
a0b9e27f | 8789 | EOF |
17234b26 | 8790 | |
a0b9e27f | 8791 | cat >> confdefs.h <<\EOF |
17234b26 | 8792 | #define __WINDOWS__ 1 |
a0b9e27f | 8793 | EOF |
17234b26 | 8794 | |
a0b9e27f | 8795 | cat >> confdefs.h <<\EOF |
17234b26 | 8796 | #define __GNUWIN32__ 1 |
a0b9e27f | 8797 | EOF |
17234b26 | 8798 | |
a0b9e27f | 8799 | cat >> confdefs.h <<\EOF |
17234b26 | 8800 | #define STRICT 1 |
a0b9e27f | 8801 | EOF |
17234b26 | 8802 | |
a0b9e27f | 8803 | cat >> confdefs.h <<\EOF |
17234b26 | 8804 | #define WINVER 0x0400 |
a0b9e27f | 8805 | EOF |
17234b26 | 8806 | |
43d99b6d VS |
8807 | fi |
8808 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
8809 | USE_UNIX=1 |
8810 | USE_WIN32=0 | |
8811 | fi | |
8812 | ||
8813 | if test "$USE_UNIX" = 1 ; then | |
8814 | wxUSE_UNIX=yes | |
a0b9e27f | 8815 | cat >> confdefs.h <<\EOF |
17234b26 | 8816 | #define __UNIX__ 1 |
a0b9e27f | 8817 | EOF |
17234b26 MB |
8818 | |
8819 | fi | |
8820 | ||
8284b0c5 | 8821 | |
a0b9e27f | 8822 | cat > confcache <<\EOF |
10f2d63a VZ |
8823 | # This file is a shell script that caches the results of configure |
8824 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
8825 | # scripts and configure runs. It is not useful on other systems. |
8826 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8827 | # |
a0b9e27f MB |
8828 | # By default, configure uses ./config.cache as the cache file, |
8829 | # creating it if it does not exist already. You can give configure | |
8830 | # the --cache-file=FILE option to use a different cache file; that is | |
8831 | # what configure does when it calls configure scripts in | |
8832 | # subdirectories, so they share the cache. | |
8833 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8834 | # config.status only pays attention to the cache file if you give it the | |
8835 | # --recheck option to rerun configure. | |
10f2d63a | 8836 | # |
a0b9e27f | 8837 | EOF |
10f2d63a VZ |
8838 | # The following way of writing the cache mishandles newlines in values, |
8839 | # but we know of no workaround that is simple, portable, and efficient. | |
8840 | # So, don't put newlines in cache variables' values. | |
8841 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8842 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
8843 | (set) 2>&1 | |
8844 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8845 | *ac_space=\ *) | |
8846 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8847 | # turns \\\\ into \\, and sed turns \\ into \). | |
8848 | sed -n \ | |
8849 | -e "s/'/'\\\\''/g" \ | |
8850 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8851 | ;; | |
8852 | *) | |
8853 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8854 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8855 | ;; | |
8856 | esac >> confcache | |
8857 | if cmp -s $cache_file confcache; then | |
8858 | : | |
8859 | else | |
10f2d63a | 8860 | if test -w $cache_file; then |
a0b9e27f MB |
8861 | echo "updating cache $cache_file" |
8862 | cat confcache > $cache_file | |
10f2d63a VZ |
8863 | else |
8864 | echo "not updating unwritable cache $cache_file" | |
8865 | fi | |
8866 | fi | |
8867 | rm -f confcache | |
8868 | ||
a0b9e27f | 8869 | |
e59890c3 | 8870 | if test "$build" != "$host" ; then |
9d353d4a | 8871 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8872 | CC=$host_alias-gcc |
8873 | CXX=$host_alias-c++ | |
8874 | AR=$host_alias-ar | |
8875 | RANLIB=$host_alias-ranlib | |
8876 | DLLTOOL=$host_alias-dlltool | |
8877 | RESCOMP=$host_alias-windres | |
8878 | LD=$host_alias-ld | |
8879 | NM=$host_alias-nm | |
8880 | STRIP=$host_alias-strip | |
8881 | else | |
a0b9e27f | 8882 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } |
3a922bb4 | 8883 | fi |
10f2d63a VZ |
8884 | fi |
8885 | ||
ec603395 | 8886 | CFLAGS=${CFLAGS:=} |
a0b9e27f | 8887 | # Extract the first word of "gcc", so it can be a program name with args. |
8284b0c5 | 8888 | set dummy gcc; ac_word=$2 |
a0b9e27f | 8889 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3c907f20 | 8890 | echo "configure:8891: checking for $ac_word" >&5 |
a0b9e27f MB |
8891 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8892 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8893 | else |
8894 | if test -n "$CC"; then | |
8895 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8896 | else |
a0b9e27f MB |
8897 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8898 | ac_dummy="$PATH" | |
8899 | for ac_dir in $ac_dummy; do | |
8900 | test -z "$ac_dir" && ac_dir=. | |
8901 | if test -f $ac_dir/$ac_word; then | |
8902 | ac_cv_prog_CC="gcc" | |
8903 | break | |
8904 | fi | |
8905 | done | |
8906 | IFS="$ac_save_ifs" | |
10f2d63a | 8907 | fi |
6232543b | 8908 | fi |
a0b9e27f | 8909 | CC="$ac_cv_prog_CC" |
6232543b | 8910 | if test -n "$CC"; then |
a0b9e27f | 8911 | echo "$ac_t""$CC" 1>&6 |
247f5006 | 8912 | else |
a0b9e27f | 8913 | echo "$ac_t""no" 1>&6 |
247f5006 VZ |
8914 | fi |
8915 | ||
5c6fa7d2 RR |
8916 | if test -z "$CC"; then |
8917 | # Extract the first word of "cc", so it can be a program name with args. | |
8918 | set dummy cc; ac_word=$2 | |
a0b9e27f | 8919 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3c907f20 | 8920 | echo "configure:8921: checking for $ac_word" >&5 |
a0b9e27f MB |
8921 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8922 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 RR |
8923 | else |
8924 | if test -n "$CC"; then | |
8925 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8926 | else | |
a0b9e27f | 8927 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5c6fa7d2 | 8928 | ac_prog_rejected=no |
a0b9e27f MB |
8929 | ac_dummy="$PATH" |
8930 | for ac_dir in $ac_dummy; do | |
8931 | test -z "$ac_dir" && ac_dir=. | |
8932 | if test -f $ac_dir/$ac_word; then | |
8933 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8934 | ac_prog_rejected=yes | |
8935 | continue | |
8936 | fi | |
8937 | ac_cv_prog_CC="cc" | |
8938 | break | |
8939 | fi | |
8940 | done | |
8941 | IFS="$ac_save_ifs" | |
328a083c RR |
8942 | if test $ac_prog_rejected = yes; then |
8943 | # We found a bogon in the path, so make sure we never use it. | |
8944 | set dummy $ac_cv_prog_CC | |
8945 | shift | |
a0b9e27f | 8946 | if test $# -gt 0; then |
328a083c | 8947 | # We chose a different compiler from the bogus one. |
1e487827 VS |
8948 | # However, it has the same basename, so the bogon will be chosen |
8949 | # first if we set CC to just the basename; use the full file name. | |
8950 | shift | |
a0b9e27f | 8951 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8952 | shift |
8953 | ac_cv_prog_CC="$@" | |
703e0a69 | 8954 | fi |
1e487827 VS |
8955 | fi |
8956 | fi | |
8957 | fi | |
a0b9e27f | 8958 | CC="$ac_cv_prog_CC" |
1e487827 | 8959 | if test -n "$CC"; then |
a0b9e27f | 8960 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8961 | else |
a0b9e27f | 8962 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8963 | fi |
1e487827 | 8964 | |
a0b9e27f MB |
8965 | if test -z "$CC"; then |
8966 | case "`uname -s`" in | |
8967 | *win32* | *WIN32*) | |
8968 | # Extract the first word of "cl", so it can be a program name with args. | |
8969 | set dummy cl; ac_word=$2 | |
8970 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3c907f20 | 8971 | echo "configure:8972: checking for $ac_word" >&5 |
a0b9e27f MB |
8972 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8973 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf VS |
8974 | else |
8975 | if test -n "$CC"; then | |
8976 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8977 | else | |
a0b9e27f MB |
8978 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8979 | ac_dummy="$PATH" | |
8980 | for ac_dir in $ac_dummy; do | |
8981 | test -z "$ac_dir" && ac_dir=. | |
8982 | if test -f $ac_dir/$ac_word; then | |
8983 | ac_cv_prog_CC="cl" | |
8984 | break | |
8985 | fi | |
8986 | done | |
8987 | IFS="$ac_save_ifs" | |
f09359cf VS |
8988 | fi |
8989 | fi | |
a0b9e27f | 8990 | CC="$ac_cv_prog_CC" |
f09359cf | 8991 | if test -n "$CC"; then |
a0b9e27f | 8992 | echo "$ac_t""$CC" 1>&6 |
f09359cf | 8993 | else |
a0b9e27f | 8994 | echo "$ac_t""no" 1>&6 |
247f5006 | 8995 | fi |
a0b9e27f MB |
8996 | ;; |
8997 | esac | |
8284b0c5 | 8998 | fi |
a0b9e27f | 8999 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
5c6fa7d2 | 9000 | fi |
1e487827 | 9001 | |
a0b9e27f | 9002 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
3c907f20 | 9003 | echo "configure:9004: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
f09359cf | 9004 | |
a0b9e27f MB |
9005 | ac_ext=c |
9006 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9007 | ac_cpp='$CPP $CPPFLAGS' | |
9008 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9009 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9010 | cross_compiling=$ac_cv_prog_cc_cross | |
f09359cf | 9011 | |
a0b9e27f | 9012 | cat > conftest.$ac_ext << EOF |
247f5006 | 9013 | |
3c907f20 | 9014 | #line 9015 "configure" |
a0b9e27f | 9015 | #include "confdefs.h" |
247f5006 | 9016 | |
a0b9e27f MB |
9017 | main(){return(0);} |
9018 | EOF | |
3c907f20 | 9019 | if { (eval echo configure:9020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9020 | ac_cv_prog_cc_works=yes |
9021 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9022 | if (./conftest; exit) 2>/dev/null; then | |
9023 | ac_cv_prog_cc_cross=no | |
698dcdb6 | 9024 | else |
a0b9e27f | 9025 | ac_cv_prog_cc_cross=yes |
698dcdb6 | 9026 | fi |
7b4a847f | 9027 | else |
a0b9e27f MB |
9028 | echo "configure: failed program was:" >&5 |
9029 | cat conftest.$ac_ext >&5 | |
9030 | ac_cv_prog_cc_works=no | |
52127426 | 9031 | fi |
a0b9e27f MB |
9032 | rm -fr conftest* |
9033 | ac_ext=c | |
9034 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9035 | ac_cpp='$CPP $CPPFLAGS' | |
9036 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9037 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9038 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 9039 | |
a0b9e27f MB |
9040 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
9041 | if test $ac_cv_prog_cc_works = no; then | |
9042 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
9043 | fi | |
9044 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
3c907f20 | 9045 | echo "configure:9046: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9046 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
9047 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 9048 | |
a0b9e27f | 9049 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
3c907f20 | 9050 | echo "configure:9051: checking whether we are using GNU C" >&5 |
a0b9e27f MB |
9051 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
9052 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9053 | else |
a0b9e27f MB |
9054 | cat > conftest.c <<EOF |
9055 | #ifdef __GNUC__ | |
9056 | yes; | |
8284b0c5 | 9057 | #endif |
a0b9e27f | 9058 | EOF |
3c907f20 | 9059 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f | 9060 | ac_cv_prog_gcc=yes |
5c6fa7d2 | 9061 | else |
a0b9e27f | 9062 | ac_cv_prog_gcc=no |
8284b0c5 MB |
9063 | fi |
9064 | fi | |
1e487827 | 9065 | |
a0b9e27f | 9066 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
f09359cf | 9067 | |
a0b9e27f MB |
9068 | if test $ac_cv_prog_gcc = yes; then |
9069 | GCC=yes | |
9070 | else | |
9071 | GCC= | |
9072 | fi | |
247f5006 | 9073 | |
a0b9e27f MB |
9074 | ac_test_CFLAGS="${CFLAGS+set}" |
9075 | ac_save_CFLAGS="$CFLAGS" | |
9076 | CFLAGS= | |
9077 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
3c907f20 | 9078 | echo "configure:9079: checking whether ${CC-cc} accepts -g" >&5 |
a0b9e27f MB |
9079 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
9080 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9081 | else | |
9082 | echo 'void f(){}' > conftest.c | |
9083 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
9084 | ac_cv_prog_cc_g=yes |
9085 | else | |
a0b9e27f | 9086 | ac_cv_prog_cc_g=no |
10f2d63a | 9087 | fi |
a0b9e27f MB |
9088 | rm -f conftest* |
9089 | ||
10f2d63a | 9090 | fi |
a0b9e27f MB |
9091 | |
9092 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
f09359cf | 9093 | if test "$ac_test_CFLAGS" = set; then |
a0b9e27f | 9094 | CFLAGS="$ac_save_CFLAGS" |
f09359cf VS |
9095 | elif test $ac_cv_prog_cc_g = yes; then |
9096 | if test "$GCC" = yes; then | |
10f2d63a VZ |
9097 | CFLAGS="-g -O2" |
9098 | else | |
f09359cf | 9099 | CFLAGS="-g" |
10f2d63a | 9100 | fi |
5c0a20c3 | 9101 | else |
f09359cf VS |
9102 | if test "$GCC" = yes; then |
9103 | CFLAGS="-O2" | |
9104 | else | |
9105 | CFLAGS= | |
9106 | fi | |
10f2d63a VZ |
9107 | fi |
9108 | ||
9109 | ||
a0b9e27f | 9110 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
3c907f20 | 9111 | echo "configure:9112: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
9112 | # On Suns, sometimes $CPP names a directory. |
9113 | if test -n "$CPP" && test -d "$CPP"; then | |
9114 | CPP= | |
9115 | fi | |
9116 | if test -z "$CPP"; then | |
a0b9e27f MB |
9117 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
9118 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9119 | else | |
9120 | # This must be in double quotes, not single quotes, because CPP may get | |
9121 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
9122 | CPP="${CC-cc} -E" | |
10f2d63a | 9123 | # On the NeXT, cc -E runs the code through the compiler's parser, |
a0b9e27f MB |
9124 | # not just through cpp. |
9125 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 9126 | #line 9127 "configure" |
10f2d63a VZ |
9127 | #include "confdefs.h" |
9128 | #include <assert.h> | |
a0b9e27f MB |
9129 | Syntax Error |
9130 | EOF | |
9131 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c907f20 | 9132 | { (eval echo configure:9133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9133 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9134 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9135 | : |
9136 | else | |
a0b9e27f MB |
9137 | echo "$ac_err" >&5 |
9138 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9139 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9140 | rm -rf conftest* |
9141 | CPP="${CC-cc} -E -traditional-cpp" | |
9142 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 9143 | #line 9144 "configure" |
f09359cf | 9144 | #include "confdefs.h" |
a0b9e27f MB |
9145 | #include <assert.h> |
9146 | Syntax Error | |
9147 | EOF | |
9148 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c907f20 | 9149 | { (eval echo configure:9150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9150 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9151 | if test -z "$ac_err"; then | |
9152 | : | |
247f5006 | 9153 | else |
a0b9e27f MB |
9154 | echo "$ac_err" >&5 |
9155 | echo "configure: failed program was:" >&5 | |
f09359cf | 9156 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9157 | rm -rf conftest* |
9158 | CPP="${CC-cc} -nologo -E" | |
9159 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 9160 | #line 9161 "configure" |
10f2d63a VZ |
9161 | #include "confdefs.h" |
9162 | #include <assert.h> | |
a0b9e27f MB |
9163 | Syntax Error |
9164 | EOF | |
9165 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c907f20 | 9166 | { (eval echo configure:9167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9167 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9168 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9169 | : |
9170 | else | |
a0b9e27f MB |
9171 | echo "$ac_err" >&5 |
9172 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9173 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9174 | rm -rf conftest* |
9175 | CPP=/lib/cpp | |
579d8138 | 9176 | fi |
a0b9e27f | 9177 | rm -f conftest* |
52127426 | 9178 | fi |
a0b9e27f | 9179 | rm -f conftest* |
8284b0c5 | 9180 | fi |
a0b9e27f MB |
9181 | rm -f conftest* |
9182 | ac_cv_prog_CPP="$CPP" | |
9183 | fi | |
9184 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 9185 | else |
a0b9e27f | 9186 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 9187 | fi |
a0b9e27f | 9188 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 9189 | |
a0b9e27f MB |
9190 | if test $ac_cv_prog_gcc = yes; then |
9191 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
3c907f20 | 9192 | echo "configure:9193: checking whether ${CC-cc} needs -traditional" >&5 |
a0b9e27f MB |
9193 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
9194 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9195 | else |
9196 | ac_pattern="Autoconf.*'x'" | |
a0b9e27f | 9197 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 9198 | #line 9199 "configure" |
10f2d63a VZ |
9199 | #include "confdefs.h" |
9200 | #include <sgtty.h> | |
9201 | Autoconf TIOCGETP | |
a0b9e27f | 9202 | EOF |
10f2d63a VZ |
9203 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9204 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9205 | rm -rf conftest* |
10f2d63a VZ |
9206 | ac_cv_prog_gcc_traditional=yes |
9207 | else | |
a0b9e27f | 9208 | rm -rf conftest* |
10f2d63a VZ |
9209 | ac_cv_prog_gcc_traditional=no |
9210 | fi | |
9211 | rm -f conftest* | |
9212 | ||
8284b0c5 | 9213 | |
10f2d63a | 9214 | if test $ac_cv_prog_gcc_traditional = no; then |
a0b9e27f | 9215 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 9216 | #line 9217 "configure" |
10f2d63a VZ |
9217 | #include "confdefs.h" |
9218 | #include <termio.h> | |
9219 | Autoconf TCGETA | |
a0b9e27f | 9220 | EOF |
10f2d63a VZ |
9221 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9222 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9223 | rm -rf conftest* |
10f2d63a VZ |
9224 | ac_cv_prog_gcc_traditional=yes |
9225 | fi | |
9226 | rm -f conftest* | |
9227 | ||
9228 | fi | |
9229 | fi | |
a0b9e27f MB |
9230 | |
9231 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
9232 | if test $ac_cv_prog_gcc_traditional = yes; then |
9233 | CC="$CC -traditional" | |
9234 | fi | |
9235 | fi | |
9236 | ||
8284b0c5 MB |
9237 | |
9238 | ||
a0b9e27f MB |
9239 | ac_ext=C |
9240 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 9241 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
9242 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9243 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9244 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9245 | |
698dcdb6 | 9246 | |
ec603395 | 9247 | CXXFLAGS=${CXXFLAGS:=} |
a0b9e27f MB |
9248 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
9249 | do | |
9250 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9251 | set dummy $ac_prog; ac_word=$2 | |
9252 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3c907f20 | 9253 | echo "configure:9254: checking for $ac_word" >&5 |
a0b9e27f MB |
9254 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
9255 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9256 | else |
9257 | if test -n "$CXX"; then | |
9258 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
9259 | else | |
a0b9e27f MB |
9260 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9261 | ac_dummy="$PATH" | |
9262 | for ac_dir in $ac_dummy; do | |
9263 | test -z "$ac_dir" && ac_dir=. | |
9264 | if test -f $ac_dir/$ac_word; then | |
9265 | ac_cv_prog_CXX="$ac_prog" | |
9266 | break | |
9267 | fi | |
9268 | done | |
9269 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9270 | fi |
9271 | fi | |
a0b9e27f | 9272 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 9273 | if test -n "$CXX"; then |
a0b9e27f | 9274 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9275 | else |
a0b9e27f | 9276 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9277 | fi |
9278 | ||
a0b9e27f | 9279 | test -n "$CXX" && break |
10f2d63a | 9280 | done |
a0b9e27f | 9281 | test -n "$CXX" || CXX="gcc" |
f09359cf | 9282 | |
a0b9e27f MB |
9283 | |
9284 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
3c907f20 | 9285 | echo "configure:9286: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
a0b9e27f MB |
9286 | |
9287 | ac_ext=C | |
9288 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9289 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9290 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9291 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9292 | cross_compiling=$ac_cv_prog_cxx_cross | |
9293 | ||
9294 | cat > conftest.$ac_ext << EOF | |
9295 | ||
3c907f20 | 9296 | #line 9297 "configure" |
a0b9e27f MB |
9297 | #include "confdefs.h" |
9298 | ||
9299 | int main(){return(0);} | |
9300 | EOF | |
3c907f20 | 9301 | if { (eval echo configure:9302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9302 | ac_cv_prog_cxx_works=yes |
9303 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9304 | if (./conftest; exit) 2>/dev/null; then | |
9305 | ac_cv_prog_cxx_cross=no | |
9306 | else | |
9307 | ac_cv_prog_cxx_cross=yes | |
9308 | fi | |
8284b0c5 | 9309 | else |
a0b9e27f MB |
9310 | echo "configure: failed program was:" >&5 |
9311 | cat conftest.$ac_ext >&5 | |
9312 | ac_cv_prog_cxx_works=no | |
8284b0c5 | 9313 | fi |
a0b9e27f MB |
9314 | rm -fr conftest* |
9315 | ac_ext=C | |
9316 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9317 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9318 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9319 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9320 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9321 | |
a0b9e27f MB |
9322 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
9323 | if test $ac_cv_prog_cxx_works = no; then | |
9324 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9325 | fi | |
9326 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
3c907f20 | 9327 | echo "configure:9328: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9328 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9329 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9330 | |
a0b9e27f | 9331 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
3c907f20 | 9332 | echo "configure:9333: checking whether we are using GNU C++" >&5 |
a0b9e27f MB |
9333 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9334 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9335 | else | |
9336 | cat > conftest.C <<EOF | |
9337 | #ifdef __GNUC__ | |
9338 | yes; | |
10f2d63a | 9339 | #endif |
a0b9e27f | 9340 | EOF |
3c907f20 | 9341 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f MB |
9342 | ac_cv_prog_gxx=yes |
9343 | else | |
9344 | ac_cv_prog_gxx=no | |
9345 | fi | |
9346 | fi | |
10f2d63a | 9347 | |
a0b9e27f | 9348 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9349 | |
a0b9e27f MB |
9350 | if test $ac_cv_prog_gxx = yes; then |
9351 | GXX=yes | |
9352 | else | |
9353 | GXX= | |
9354 | fi | |
f09359cf | 9355 | |
a0b9e27f MB |
9356 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9357 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9358 | CXXFLAGS= | |
9359 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
3c907f20 | 9360 | echo "configure:9361: checking whether ${CXX-g++} accepts -g" >&5 |
a0b9e27f MB |
9361 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9362 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9363 | else | |
9364 | echo 'void f(){}' > conftest.cc | |
9365 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9366 | ac_cv_prog_cxx_g=yes |
9367 | else | |
a0b9e27f | 9368 | ac_cv_prog_cxx_g=no |
10f2d63a | 9369 | fi |
a0b9e27f MB |
9370 | rm -f conftest* |
9371 | ||
10f2d63a | 9372 | fi |
a0b9e27f MB |
9373 | |
9374 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
f09359cf | 9375 | if test "$ac_test_CXXFLAGS" = set; then |
a0b9e27f | 9376 | CXXFLAGS="$ac_save_CXXFLAGS" |
f09359cf VS |
9377 | elif test $ac_cv_prog_cxx_g = yes; then |
9378 | if test "$GXX" = yes; then | |
10f2d63a VZ |
9379 | CXXFLAGS="-g -O2" |
9380 | else | |
f09359cf | 9381 | CXXFLAGS="-g" |
10f2d63a | 9382 | fi |
5c0a20c3 | 9383 | else |
f09359cf VS |
9384 | if test "$GXX" = yes; then |
9385 | CXXFLAGS="-O2" | |
9386 | else | |
9387 | CXXFLAGS= | |
9388 | fi | |
10f2d63a VZ |
9389 | fi |
9390 | ||
9391 | ||
10f2d63a | 9392 | ac_ext=c |
a0b9e27f | 9393 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9394 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
9395 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9396 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9397 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 MB |
9398 | |
9399 | ||
a0b9e27f MB |
9400 | # Extract the first word of "ranlib", so it can be a program name with args. |
9401 | set dummy ranlib; ac_word=$2 | |
9402 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3c907f20 | 9403 | echo "configure:9404: checking for $ac_word" >&5 |
a0b9e27f MB |
9404 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9405 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9406 | else |
9407 | if test -n "$RANLIB"; then | |
9408 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9409 | else | |
a0b9e27f MB |
9410 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9411 | ac_dummy="$PATH" | |
9412 | for ac_dir in $ac_dummy; do | |
9413 | test -z "$ac_dir" && ac_dir=. | |
9414 | if test -f $ac_dir/$ac_word; then | |
9415 | ac_cv_prog_RANLIB="ranlib" | |
9416 | break | |
9417 | fi | |
9418 | done | |
9419 | IFS="$ac_save_ifs" | |
9420 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9421 | fi |
9422 | fi | |
a0b9e27f | 9423 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9424 | if test -n "$RANLIB"; then |
a0b9e27f | 9425 | echo "$ac_t""$RANLIB" 1>&6 |
328a083c | 9426 | else |
a0b9e27f | 9427 | echo "$ac_t""no" 1>&6 |
328a083c RR |
9428 | fi |
9429 | ||
10f2d63a VZ |
9430 | |
9431 | # Extract the first word of "ar", so it can be a program name with args. | |
9432 | set dummy ar; ac_word=$2 | |
a0b9e27f | 9433 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3c907f20 | 9434 | echo "configure:9435: checking for $ac_word" >&5 |
a0b9e27f MB |
9435 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9436 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9437 | else |
9438 | if test -n "$AR"; then | |
9439 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9440 | else | |
a0b9e27f MB |
9441 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9442 | ac_dummy="$PATH" | |
9443 | for ac_dir in $ac_dummy; do | |
9444 | test -z "$ac_dir" && ac_dir=. | |
9445 | if test -f $ac_dir/$ac_word; then | |
9446 | ac_cv_prog_AR="ar" | |
9447 | break | |
9448 | fi | |
9449 | done | |
9450 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9451 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9452 | fi | |
9453 | fi | |
a0b9e27f | 9454 | AR="$ac_cv_prog_AR" |
10f2d63a | 9455 | if test -n "$AR"; then |
a0b9e27f | 9456 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9457 | else |
a0b9e27f | 9458 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9459 | fi |
9460 | ||
8284b0c5 | 9461 | |
6054113a | 9462 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9463 | # so one script is as good as another. But avoid the broken or |
9464 | # incompatible versions: | |
9465 | # SysV /etc/install, /usr/sbin/install | |
9466 | # SunOS /usr/etc/install | |
9467 | # IRIX /sbin/install | |
9468 | # AIX /bin/install | |
f09359cf | 9469 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
9470 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
9471 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9472 | # ./install, which can be erroneously created by make from ./install.sh. | |
a0b9e27f | 9473 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
3c907f20 | 9474 | echo "configure:9475: checking for a BSD compatible install" >&5 |
10f2d63a | 9475 | if test -z "$INSTALL"; then |
a0b9e27f MB |
9476 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9477 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9478 | else | |
9479 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
9480 | for ac_dir in $PATH; do | |
9481 | # Account for people who put trailing slashes in PATH elements. | |
9482 | case "$ac_dir/" in | |
9483 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
9484 | *) | |
9485 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9486 | # Don't use installbsd from OSF since it installs stuff as root | |
9487 | # by default. | |
9488 | for ac_prog in ginstall scoinst install; do | |
9489 | if test -f $ac_dir/$ac_prog; then | |
9490 | if test $ac_prog = install && | |
9491 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
9492 | # AIX install. It has an incompatible calling convention. | |
9493 | : | |
9494 | else | |
9495 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9496 | break 2 | |
9497 | fi | |
9498 | fi | |
10f2d63a | 9499 | done |
a0b9e27f MB |
9500 | ;; |
9501 | esac | |
9502 | done | |
9503 | IFS="$ac_save_IFS" | |
10f2d63a VZ |
9504 | |
9505 | fi | |
9506 | if test "${ac_cv_path_install+set}" = set; then | |
a0b9e27f | 9507 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9508 | else |
9509 | # As a last resort, use the slow shell script. We don't cache a | |
9510 | # path for INSTALL within a source directory, because that will | |
9511 | # break other packages using the cache if that directory is | |
9512 | # removed, or if the path is relative. | |
a0b9e27f | 9513 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9514 | fi |
9515 | fi | |
a0b9e27f | 9516 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9517 | |
9518 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9519 | # It thinks the first close brace ends the variable substitution. | |
9520 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9521 | ||
a0b9e27f | 9522 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
f09359cf | 9523 | |
10f2d63a VZ |
9524 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9525 | ||
8284b0c5 | 9526 | |
1d1b75ac VZ |
9527 | case ${INSTALL} in |
9528 | /* ) # Absolute | |
9529 | ;; | |
4f5a7f74 VZ |
9530 | ?:* ) # Drive letter, considered as absolute. |
9531 | ;; | |
3bd8fb5f | 9532 | *) |
1d1b75ac VZ |
9533 | INSTALL=`pwd`/${INSTALL} ;; |
9534 | esac | |
9535 | ||
4f5a7f74 VZ |
9536 | case ${host} in |
9537 | *-hp-hpux* ) | |
9538 | INSTALL_DIR="mkdir" | |
9539 | ;; | |
9540 | ||
9541 | *) INSTALL_DIR="$INSTALL -d" | |
9542 | ;; | |
9543 | esac | |
9544 | ||
8284b0c5 | 9545 | |
6054113a GD |
9546 | case "${host}" in |
9547 | ||
b5853384 | 9548 | powerpc-*-darwin* ) |
eb99ae0b GD |
9549 | INSTALL_PROGRAM="cp -fp" |
9550 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9551 | ;; |
9552 | *) | |
9553 | ;; | |
d6853540 | 9554 | esac |
698dcdb6 | 9555 | |
10f2d63a VZ |
9556 | # Extract the first word of "strip", so it can be a program name with args. |
9557 | set dummy strip; ac_word=$2 | |
a0b9e27f | 9558 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3c907f20 | 9559 | echo "configure:9560: checking for $ac_word" >&5 |
a0b9e27f MB |
9560 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9561 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9562 | else |
9563 | if test -n "$STRIP"; then | |
9564 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9565 | else | |
a0b9e27f MB |
9566 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9567 | ac_dummy="$PATH" | |
9568 | for ac_dir in $ac_dummy; do | |
9569 | test -z "$ac_dir" && ac_dir=. | |
9570 | if test -f $ac_dir/$ac_word; then | |
9571 | ac_cv_prog_STRIP="strip" | |
9572 | break | |
9573 | fi | |
9574 | done | |
9575 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9576 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9577 | fi | |
9578 | fi | |
a0b9e27f | 9579 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9580 | if test -n "$STRIP"; then |
a0b9e27f | 9581 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9582 | else |
a0b9e27f | 9583 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9584 | fi |
9585 | ||
5c6fa7d2 | 9586 | |
a0b9e27f | 9587 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
3c907f20 | 9588 | echo "configure:9589: checking if make is GNU make" >&5 |
a0b9e27f MB |
9589 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9590 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9591 | else |
a0b9e27f | 9592 | |
414eab6d | 9593 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 9594 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9595 | wx_cv_prog_makeisgnu="yes" |
9596 | else | |
9597 | wx_cv_prog_makeisgnu="no" | |
9598 | fi | |
9599 | ||
9600 | fi | |
a0b9e27f MB |
9601 | |
9602 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
414eab6d VZ |
9603 | |
9604 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9605 | IF_GNU_MAKE="" | |
9606 | else | |
9607 | IF_GNU_MAKE="#" | |
9608 | fi | |
9609 | ||
8284b0c5 MB |
9610 | |
9611 | ||
414eab6d | 9612 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
a0b9e27f | 9613 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
3c907f20 | 9614 | echo "configure:9615: checking if make supports VPATH" >&5 |
a0b9e27f MB |
9615 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9616 | echo $ac_n "(cached) $ac_c" 1>&6 | |
04e7a216 | 9617 | else |
a0b9e27f | 9618 | |
10f2d63a VZ |
9619 | cat - << EOF > confMake |
9620 | check : file | |
9621 | cp \$? \$@ | |
9622 | cp \$? final_file | |
9623 | EOF | |
9624 | ||
9625 | if test ! -d sub ; then | |
9626 | mkdir sub | |
9627 | fi | |
9628 | echo dummy > sub/file | |
f6bcfd97 | 9629 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9630 | RESULT=$? |
9631 | rm -f sub/file check final_file confMake | |
9632 | rmdir sub | |
9633 | if test "$RESULT" = 0; then | |
04e7a216 | 9634 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9635 | else |
04e7a216 VZ |
9636 | wx_cv_prog_makevpath="no" |
9637 | fi | |
9638 | ||
9639 | fi | |
a0b9e27f MB |
9640 | |
9641 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
04e7a216 VZ |
9642 | |
9643 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
a0b9e27f | 9644 | { echo "configure: error: |
5c6fa7d2 RR |
9645 | You need a make-utility that is able to use the variable |
9646 | VPATH correctly. | |
9647 | If your version of make does not support VPATH correctly, | |
9648 | please install GNU-make (possibly as gmake), and start | |
9649 | configure with the following command: | |
9650 | export MAKE=gmake; ./configure for sh-type shells | |
9651 | setenv MAKE gmake; ./configure for csh-type shells | |
9652 | Also please do remember to use gmake in this case every time | |
9653 | you are trying to compile. | |
a0b9e27f MB |
9654 | " 1>&2; exit 1; } |
9655 | fi fi | |
10f2d63a VZ |
9656 | for ac_prog in 'bison -y' byacc |
9657 | do | |
a0b9e27f | 9658 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9659 | set dummy $ac_prog; ac_word=$2 |
a0b9e27f | 9660 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3c907f20 | 9661 | echo "configure:9662: checking for $ac_word" >&5 |
a0b9e27f MB |
9662 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9663 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9664 | else |
9665 | if test -n "$YACC"; then | |
9666 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9667 | else | |
a0b9e27f MB |
9668 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9669 | ac_dummy="$PATH" | |
9670 | for ac_dir in $ac_dummy; do | |
9671 | test -z "$ac_dir" && ac_dir=. | |
9672 | if test -f $ac_dir/$ac_word; then | |
9673 | ac_cv_prog_YACC="$ac_prog" | |
9674 | break | |
9675 | fi | |
9676 | done | |
9677 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9678 | fi |
9679 | fi | |
a0b9e27f | 9680 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9681 | if test -n "$YACC"; then |
a0b9e27f | 9682 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9683 | else |
a0b9e27f | 9684 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9685 | fi |
9686 | ||
a0b9e27f | 9687 | test -n "$YACC" && break |
10f2d63a VZ |
9688 | done |
9689 | test -n "$YACC" || YACC="yacc" | |
9690 | ||
8284b0c5 | 9691 | |
a0b9e27f MB |
9692 | # Extract the first word of "flex", so it can be a program name with args. |
9693 | set dummy flex; ac_word=$2 | |
9694 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3c907f20 | 9695 | echo "configure:9696: checking for $ac_word" >&5 |
a0b9e27f MB |
9696 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9697 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9698 | else |
9699 | if test -n "$LEX"; then | |
9700 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9701 | else | |
a0b9e27f MB |
9702 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9703 | ac_dummy="$PATH" | |
9704 | for ac_dir in $ac_dummy; do | |
9705 | test -z "$ac_dir" && ac_dir=. | |
9706 | if test -f $ac_dir/$ac_word; then | |
9707 | ac_cv_prog_LEX="flex" | |
9708 | break | |
9709 | fi | |
9710 | done | |
9711 | IFS="$ac_save_ifs" | |
9712 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9713 | fi |
9714 | fi | |
a0b9e27f | 9715 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9716 | if test -n "$LEX"; then |
a0b9e27f | 9717 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9718 | else |
a0b9e27f | 9719 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9720 | fi |
9721 | ||
9722 | if test -z "$LEXLIB" | |
9723 | then | |
a0b9e27f MB |
9724 | case "$LEX" in |
9725 | flex*) ac_lib=fl ;; | |
9726 | *) ac_lib=l ;; | |
9727 | esac | |
9728 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
3c907f20 | 9729 | echo "configure:9730: checking for yywrap in -l$ac_lib" >&5 |
a0b9e27f MB |
9730 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9731 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9732 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9733 | else | |
9734 | ac_save_LIBS="$LIBS" | |
9735 | LIBS="-l$ac_lib $LIBS" | |
9736 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 9737 | #line 9738 "configure" |
247f5006 | 9738 | #include "confdefs.h" |
247f5006 | 9739 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 9740 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
9741 | builtin and then its argument prototype would still apply. */ |
9742 | char yywrap(); | |
10f2d63a | 9743 | |
a0b9e27f MB |
9744 | int main() { |
9745 | yywrap() | |
9746 | ; return 0; } | |
9747 | EOF | |
3c907f20 | 9748 | if { (eval echo configure:9749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9749 | rm -rf conftest* |
9750 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9751 | else | |
9752 | echo "configure: failed program was:" >&5 | |
9753 | cat conftest.$ac_ext >&5 | |
9754 | rm -rf conftest* | |
9755 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9756 | fi |
a0b9e27f MB |
9757 | rm -f conftest* |
9758 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 9759 | |
10f2d63a | 9760 | fi |
a0b9e27f MB |
9761 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9762 | echo "$ac_t""yes" 1>&6 | |
9763 | LEXLIB="-l$ac_lib" | |
8284b0c5 | 9764 | else |
a0b9e27f | 9765 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9766 | fi |
9767 | ||
a0b9e27f | 9768 | fi |
10f2d63a VZ |
9769 | |
9770 | ||
a0b9e27f | 9771 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
3c907f20 | 9772 | echo "configure:9773: checking whether ln -s works" >&5 |
a0b9e27f MB |
9773 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9774 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9775 | else |
a0b9e27f MB |
9776 | rm -f conftestdata |
9777 | if ln -s X conftestdata 2>/dev/null | |
9778 | then | |
9779 | rm -f conftestdata | |
9780 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9781 | else |
a0b9e27f | 9782 | ac_cv_prog_LN_S=ln |
10f2d63a | 9783 | fi |
a0b9e27f MB |
9784 | fi |
9785 | LN_S="$ac_cv_prog_LN_S" | |
9786 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9787 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9788 | else |
a0b9e27f | 9789 | echo "$ac_t""no" 1>&6 |
5c6fa7d2 | 9790 | fi |
5c6fa7d2 | 9791 | |
247f5006 | 9792 | |
2b5f62a0 VZ |
9793 | case "${host}" in |
9794 | *-pc-os2_emx | *-pc-os2-emx ) | |
9795 | LIBS="$LIBS -lstdcpp" | |
9796 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
9797 | echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6 | |
3c907f20 | 9798 | echo "configure:9799: checking for drand48 in -lcExt" >&5 |
2b5f62a0 VZ |
9799 | ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'` |
9800 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9801 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9802 | else | |
9803 | ac_save_LIBS="$LIBS" | |
9804 | LIBS="-lcExt $LIBS" | |
9805 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 9806 | #line 9807 "configure" |
2b5f62a0 VZ |
9807 | #include "confdefs.h" |
9808 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9809 | /* We use char because int might match the return type of a gcc2 | |
9810 | builtin and then its argument prototype would still apply. */ | |
9811 | char drand48(); | |
9812 | ||
9813 | int main() { | |
9814 | drand48() | |
9815 | ; return 0; } | |
9816 | EOF | |
3c907f20 | 9817 | if { (eval echo configure:9818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
9818 | rm -rf conftest* |
9819 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9820 | else | |
9821 | echo "configure: failed program was:" >&5 | |
9822 | cat conftest.$ac_ext >&5 | |
9823 | rm -rf conftest* | |
9824 | eval "ac_cv_lib_$ac_lib_var=no" | |
9825 | fi | |
9826 | rm -f conftest* | |
9827 | LIBS="$ac_save_LIBS" | |
9828 | ||
9829 | fi | |
9830 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9831 | echo "$ac_t""yes" 1>&6 | |
9832 | LIBS="$LIBS -lcExt" | |
9833 | else | |
9834 | echo "$ac_t""no" 1>&6 | |
9835 | fi | |
9836 | ||
9837 | else | |
9838 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
9839 | fi | |
9840 | ;; | |
9841 | esac | |
9842 | ||
a0b9e27f | 9843 | |
ac0c4cc3 | 9844 | if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a0b9e27f MB |
9845 | for ac_hdr in strings.h |
9846 | do | |
9847 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9848 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c907f20 | 9849 | echo "configure:9850: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9850 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9852 | else | |
9853 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 9854 | #line 9855 "configure" |
a0b9e27f MB |
9855 | #include "confdefs.h" |
9856 | #include <$ac_hdr> | |
9857 | EOF | |
9858 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c907f20 | 9859 | { (eval echo configure:9860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9860 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9861 | if test -z "$ac_err"; then | |
9862 | rm -rf conftest* | |
9863 | eval "ac_cv_header_$ac_safe=yes" | |
9864 | else | |
9865 | echo "$ac_err" >&5 | |
9866 | echo "configure: failed program was:" >&5 | |
9867 | cat conftest.$ac_ext >&5 | |
9868 | rm -rf conftest* | |
9869 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 9870 | fi |
247f5006 | 9871 | rm -f conftest* |
19bc6aad | 9872 | fi |
a0b9e27f MB |
9873 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9874 | echo "$ac_t""yes" 1>&6 | |
9875 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9876 | cat >> confdefs.h <<EOF | |
9877 | #define $ac_tr_hdr 1 | |
9878 | EOF | |
9879 | ||
247f5006 | 9880 | else |
a0b9e27f | 9881 | echo "$ac_t""no" 1>&6 |
18dbb1f6 | 9882 | fi |
a0b9e27f | 9883 | done |
247f5006 | 9884 | |
90dd450c | 9885 | fi |
90dd450c | 9886 | |
a0b9e27f MB |
9887 | for ac_hdr in stdlib.h |
9888 | do | |
9889 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9890 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c907f20 | 9891 | echo "configure:9892: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9892 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9893 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9894 | else | |
9895 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 9896 | #line 9897 "configure" |
90dd450c | 9897 | #include "confdefs.h" |
a0b9e27f MB |
9898 | #include <$ac_hdr> |
9899 | EOF | |
9900 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c907f20 | 9901 | { (eval echo configure:9902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9902 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9903 | if test -z "$ac_err"; then | |
9904 | rm -rf conftest* | |
9905 | eval "ac_cv_header_$ac_safe=yes" | |
9906 | else | |
9907 | echo "$ac_err" >&5 | |
9908 | echo "configure: failed program was:" >&5 | |
9909 | cat conftest.$ac_ext >&5 | |
9910 | rm -rf conftest* | |
9911 | eval "ac_cv_header_$ac_safe=no" | |
9912 | fi | |
9913 | rm -f conftest* | |
9914 | fi | |
9915 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9916 | echo "$ac_t""yes" 1>&6 | |
9917 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9918 | cat >> confdefs.h <<EOF | |
9919 | #define $ac_tr_hdr 1 | |
9920 | EOF | |
9921 | ||
8284b0c5 | 9922 | else |
a0b9e27f | 9923 | echo "$ac_t""no" 1>&6 |
21d1c967 | 9924 | fi |
a0b9e27f MB |
9925 | done |
9926 | ||
9927 | for ac_hdr in malloc.h | |
9928 | do | |
9929 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9930 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c907f20 | 9931 | echo "configure:9932: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9932 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9933 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9934 | else | |
9935 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 9936 | #line 9937 "configure" |
a0b9e27f MB |
9937 | #include "confdefs.h" |
9938 | #include <$ac_hdr> | |
9939 | EOF | |
9940 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c907f20 | 9941 | { (eval echo configure:9942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9942 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9943 | if test -z "$ac_err"; then | |
9944 | rm -rf conftest* | |
9945 | eval "ac_cv_header_$ac_safe=yes" | |
9946 | else | |
9947 | echo "$ac_err" >&5 | |
9948 | echo "configure: failed program was:" >&5 | |
9949 | cat conftest.$ac_ext >&5 | |
9950 | rm -rf conftest* | |
9951 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9952 | fi |
a0b9e27f | 9953 | rm -f conftest* |
90dd450c | 9954 | fi |
a0b9e27f MB |
9955 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9956 | echo "$ac_t""yes" 1>&6 | |
9957 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9958 | cat >> confdefs.h <<EOF | |
9959 | #define $ac_tr_hdr 1 | |
9960 | EOF | |
9961 | ||
9962 | else | |
9963 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 9964 | fi |
a0b9e27f | 9965 | done |
247f5006 | 9966 | |
a0b9e27f MB |
9967 | for ac_hdr in unistd.h |
9968 | do | |
9969 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9970 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c907f20 | 9971 | echo "configure:9972: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9972 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9973 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9974 | else | |
9975 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 9976 | #line 9977 "configure" |
a0b9e27f MB |
9977 | #include "confdefs.h" |
9978 | #include <$ac_hdr> | |
9979 | EOF | |
9980 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c907f20 | 9981 | { (eval echo configure:9982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9982 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9983 | if test -z "$ac_err"; then | |
9984 | rm -rf conftest* | |
9985 | eval "ac_cv_header_$ac_safe=yes" | |
9986 | else | |
9987 | echo "$ac_err" >&5 | |
9988 | echo "configure: failed program was:" >&5 | |
9989 | cat conftest.$ac_ext >&5 | |
9990 | rm -rf conftest* | |
9991 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 9992 | fi |
a0b9e27f MB |
9993 | rm -f conftest* |
9994 | fi | |
9995 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9996 | echo "$ac_t""yes" 1>&6 | |
9997 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9998 | cat >> confdefs.h <<EOF | |
9999 | #define $ac_tr_hdr 1 | |
10000 | EOF | |
10001 | ||
10002 | else | |
10003 | echo "$ac_t""no" 1>&6 | |
10004 | fi | |
10005 | done | |
90dd450c | 10006 | |
a0b9e27f | 10007 | for ac_hdr in wchar.h |
21d1c967 | 10008 | do |
a0b9e27f MB |
10009 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10010 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c907f20 | 10011 | echo "configure:10012: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10012 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10013 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10014 | else | |
10015 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 10016 | #line 10017 "configure" |
4f14bcd8 | 10017 | #include "confdefs.h" |
a0b9e27f MB |
10018 | #include <$ac_hdr> |
10019 | EOF | |
10020 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c907f20 | 10021 | { (eval echo configure:10022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10022 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10023 | if test -z "$ac_err"; then | |
10024 | rm -rf conftest* | |
10025 | eval "ac_cv_header_$ac_safe=yes" | |
10026 | else | |
10027 | echo "$ac_err" >&5 | |
10028 | echo "configure: failed program was:" >&5 | |
10029 | cat conftest.$ac_ext >&5 | |
10030 | rm -rf conftest* | |
10031 | eval "ac_cv_header_$ac_safe=no" | |
10032 | fi | |
10033 | rm -f conftest* | |
10034 | fi | |
10035 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10036 | echo "$ac_t""yes" 1>&6 | |
10037 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10038 | cat >> confdefs.h <<EOF | |
10039 | #define $ac_tr_hdr 1 | |
10040 | EOF | |
10041 | ||
10042 | else | |
10043 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10044 | fi |
10045 | done | |
4f14bcd8 | 10046 | |
5c6fa7d2 | 10047 | |
a0b9e27f MB |
10048 | if test "$ac_cv_header_wchar_h" != "yes"; then |
10049 | for ac_hdr in wcstr.h | |
21d1c967 | 10050 | do |
a0b9e27f MB |
10051 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10052 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c907f20 | 10053 | echo "configure:10054: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10054 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10055 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10056 | else | |
10057 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 10058 | #line 10059 "configure" |
d4158b5d | 10059 | #include "confdefs.h" |
a0b9e27f MB |
10060 | #include <$ac_hdr> |
10061 | EOF | |
10062 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c907f20 | 10063 | { (eval echo configure:10064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10064 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10065 | if test -z "$ac_err"; then | |
10066 | rm -rf conftest* | |
10067 | eval "ac_cv_header_$ac_safe=yes" | |
10068 | else | |
10069 | echo "$ac_err" >&5 | |
10070 | echo "configure: failed program was:" >&5 | |
d4158b5d | 10071 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10072 | rm -rf conftest* |
10073 | eval "ac_cv_header_$ac_safe=no" | |
d4158b5d | 10074 | fi |
a0b9e27f | 10075 | rm -f conftest* |
21d1c967 | 10076 | fi |
a0b9e27f MB |
10077 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10078 | echo "$ac_t""yes" 1>&6 | |
10079 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10080 | cat >> confdefs.h <<EOF | |
10081 | #define $ac_tr_hdr 1 | |
10082 | EOF | |
10083 | ||
10084 | else | |
10085 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 10086 | fi |
21d1c967 | 10087 | done |
f6bcfd97 | 10088 | |
90dd450c | 10089 | fi |
90dd450c | 10090 | |
a0b9e27f | 10091 | for ac_hdr in fnmatch.h |
21d1c967 | 10092 | do |
a0b9e27f MB |
10093 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10094 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c907f20 | 10095 | echo "configure:10096: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10096 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10097 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10098 | else | |
10099 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 10100 | #line 10101 "configure" |
90dd450c | 10101 | #include "confdefs.h" |
a0b9e27f MB |
10102 | #include <$ac_hdr> |
10103 | EOF | |
10104 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c907f20 | 10105 | { (eval echo configure:10106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10106 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10107 | if test -z "$ac_err"; then | |
10108 | rm -rf conftest* | |
10109 | eval "ac_cv_header_$ac_safe=yes" | |
10110 | else | |
10111 | echo "$ac_err" >&5 | |
10112 | echo "configure: failed program was:" >&5 | |
3a922bb4 | 10113 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10114 | rm -rf conftest* |
10115 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10116 | fi |
a0b9e27f | 10117 | rm -f conftest* |
4f14bcd8 | 10118 | fi |
a0b9e27f MB |
10119 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10120 | echo "$ac_t""yes" 1>&6 | |
10121 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10122 | cat >> confdefs.h <<EOF | |
10123 | #define $ac_tr_hdr 1 | |
10124 | EOF | |
10125 | ||
10126 | else | |
10127 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10128 | fi |
10129 | done | |
90dd450c | 10130 | |
5c6fa7d2 | 10131 | |
a0b9e27f MB |
10132 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
10133 | for ac_func in fnmatch | |
21d1c967 | 10134 | do |
a0b9e27f | 10135 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3c907f20 | 10136 | echo "configure:10137: checking for $ac_func" >&5 |
a0b9e27f MB |
10137 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10138 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10139 | else |
a0b9e27f | 10140 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 10141 | #line 10142 "configure" |
a0b9e27f MB |
10142 | #include "confdefs.h" |
10143 | /* System header to define __stub macros and hopefully few prototypes, | |
10144 | which can conflict with char $ac_func(); below. */ | |
10145 | #include <assert.h> | |
10146 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10147 | /* We use char because int might match the return type of a gcc2 | |
10148 | builtin and then its argument prototype would still apply. */ | |
10149 | char $ac_func(); | |
10150 | ||
10151 | int main() { | |
10152 | ||
10153 | /* The GNU C library defines this for functions which it implements | |
10154 | to always fail with ENOSYS. Some functions are actually named | |
10155 | something starting with __ and the normal name is an alias. */ | |
10156 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10157 | choke me | |
10158 | #else | |
10159 | $ac_func(); | |
10160 | #endif | |
10161 | ||
10162 | ; return 0; } | |
10163 | EOF | |
3c907f20 | 10164 | if { (eval echo configure:10165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
10165 | rm -rf conftest* |
10166 | eval "ac_cv_func_$ac_func=yes" | |
8284b0c5 | 10167 | else |
a0b9e27f | 10168 | echo "configure: failed program was:" >&5 |
8284b0c5 | 10169 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10170 | rm -rf conftest* |
10171 | eval "ac_cv_func_$ac_func=no" | |
8284b0c5 | 10172 | fi |
a0b9e27f | 10173 | rm -f conftest* |
8284b0c5 | 10174 | fi |
32832908 | 10175 | |
a0b9e27f MB |
10176 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10177 | echo "$ac_t""yes" 1>&6 | |
10178 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10179 | cat >> confdefs.h <<EOF | |
10180 | #define $ac_tr_func 1 | |
10181 | EOF | |
10182 | ||
10183 | else | |
10184 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10185 | fi |
10186 | done | |
90dd450c | 10187 | |
a0b9e27f | 10188 | fi |
90dd450c | 10189 | |
a0b9e27f | 10190 | for ac_hdr in langinfo.h |
21d1c967 | 10191 | do |
a0b9e27f MB |
10192 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10193 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c907f20 | 10194 | echo "configure:10195: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10195 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10196 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10197 | else | |
10198 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 10199 | #line 10200 "configure" |
247f5006 | 10200 | #include "confdefs.h" |
a0b9e27f MB |
10201 | #include <$ac_hdr> |
10202 | EOF | |
10203 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c907f20 | 10204 | { (eval echo configure:10205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10205 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10206 | if test -z "$ac_err"; then | |
10207 | rm -rf conftest* | |
10208 | eval "ac_cv_header_$ac_safe=yes" | |
10209 | else | |
10210 | echo "$ac_err" >&5 | |
10211 | echo "configure: failed program was:" >&5 | |
90dd450c | 10212 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10213 | rm -rf conftest* |
10214 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 10215 | fi |
a0b9e27f | 10216 | rm -f conftest* |
4f14bcd8 | 10217 | fi |
a0b9e27f MB |
10218 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10219 | echo "$ac_t""yes" 1>&6 | |
10220 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10221 | cat >> confdefs.h <<EOF | |
10222 | #define $ac_tr_hdr 1 | |
10223 | EOF | |
10224 | ||
10225 | else | |
10226 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10227 | fi |
10228 | done | |
3a922bb4 | 10229 | |
8284b0c5 | 10230 | |
4f5a7f74 VZ |
10231 | case "${host}" in |
10232 | *-pc-os2_emx | *-pc-os2-emx ) | |
10233 | if test $ac_cv_header_langinfo_h = "yes"; then | |
10234 | LIBS="$LIBS -lintl" | |
10235 | fi | |
10236 | ;; | |
10237 | esac | |
1542ea39 | 10238 | |
a0b9e27f MB |
10239 | if test "$wxUSE_GUI" = "yes"; then |
10240 | if test "$wxUSE_UNIX" = "yes"; then | |
10241 | for ac_hdr in X11/XKBlib.h | |
21d1c967 | 10242 | do |
a0b9e27f MB |
10243 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10244 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c907f20 | 10245 | echo "configure:10246: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10246 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10247 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10248 | else | |
10249 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 10250 | #line 10251 "configure" |
90dd450c | 10251 | #include "confdefs.h" |
a0b9e27f MB |
10252 | #include <$ac_hdr> |
10253 | EOF | |
10254 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c907f20 | 10255 | { (eval echo configure:10256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10256 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10257 | if test -z "$ac_err"; then | |
10258 | rm -rf conftest* | |
10259 | eval "ac_cv_header_$ac_safe=yes" | |
10260 | else | |
10261 | echo "$ac_err" >&5 | |
10262 | echo "configure: failed program was:" >&5 | |
90dd450c | 10263 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10264 | rm -rf conftest* |
10265 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10266 | fi |
a0b9e27f | 10267 | rm -f conftest* |
90dd450c | 10268 | fi |
a0b9e27f MB |
10269 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10270 | echo "$ac_t""yes" 1>&6 | |
10271 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10272 | cat >> confdefs.h <<EOF | |
10273 | #define $ac_tr_hdr 1 | |
10274 | EOF | |
10275 | ||
10276 | else | |
10277 | echo "$ac_t""no" 1>&6 | |
247f5006 | 10278 | fi |
247f5006 VZ |
10279 | done |
10280 | ||
a0b9e27f MB |
10281 | fi |
10282 | fi | |
247f5006 | 10283 | |
247f5006 | 10284 | |
a0b9e27f | 10285 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
3c907f20 | 10286 | echo "configure:10287: checking for working const" >&5 |
a0b9e27f MB |
10287 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
10288 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10289 | else |
a0b9e27f | 10290 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 10291 | #line 10292 "configure" |
a0b9e27f MB |
10292 | #include "confdefs.h" |
10293 | ||
10294 | int main() { | |
10295 | ||
10296 | /* Ultrix mips cc rejects this. */ | |
10297 | typedef int charset[2]; const charset x; | |
10298 | /* SunOS 4.1.1 cc rejects this. */ | |
10299 | char const *const *ccp; | |
10300 | char **p; | |
10301 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
10302 | struct point {int x, y;}; | |
10303 | static struct point const zero = {0,0}; | |
10304 | /* AIX XL C 1.02.0.0 rejects this. | |
10305 | It does not let you subtract one const X* pointer from another in an arm | |
10306 | of an if-expression whose if-part is not a constant expression */ | |
10307 | const char *g = "string"; | |
10308 | ccp = &g + (g ? g-g : 0); | |
10309 | /* HPUX 7.0 cc rejects these. */ | |
10310 | ++ccp; | |
10311 | p = (char**) ccp; | |
10312 | ccp = (char const *const *) p; | |
10313 | { /* SCO 3.2v4 cc rejects this. */ | |
10314 | char *t; | |
10315 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
10316 | ||
10317 | *t++ = 0; | |
10318 | } | |
10319 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
10320 | int x[] = {25, 17}; | |
10321 | const int *foo = &x[0]; | |
10322 | ++foo; | |
10323 | } | |
10324 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
10325 | typedef const int *iptr; | |
10326 | iptr p = 0; | |
10327 | ++p; | |
10328 | } | |
10329 | { /* AIX XL C 1.02.0.0 rejects this saying | |
10330 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
10331 | struct s { int j; const int *ap[3]; }; | |
10332 | struct s *b; b->j = 5; | |
10333 | } | |
10334 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
10335 | const int foo = 10; | |
10336 | } | |
10337 | ||
10338 | ; return 0; } | |
10339 | EOF | |
3c907f20 | 10340 | if { (eval echo configure:10341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10341 | rm -rf conftest* |
10342 | ac_cv_c_const=yes | |
247f5006 | 10343 | else |
a0b9e27f | 10344 | echo "configure: failed program was:" >&5 |
247f5006 | 10345 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10346 | rm -rf conftest* |
10347 | ac_cv_c_const=no | |
247f5006 | 10348 | fi |
a0b9e27f | 10349 | rm -f conftest* |
21d1c967 | 10350 | fi |
247f5006 | 10351 | |
a0b9e27f MB |
10352 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
10353 | if test $ac_cv_c_const = no; then | |
10354 | cat >> confdefs.h <<\EOF | |
10355 | #define const | |
10356 | EOF | |
10f2d63a | 10357 | |
90dd450c | 10358 | fi |
81809c07 | 10359 | |
a0b9e27f | 10360 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
3c907f20 | 10361 | echo "configure:10362: checking for inline" >&5 |
a0b9e27f MB |
10362 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
10363 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8168de4c | 10364 | else |
a0b9e27f MB |
10365 | ac_cv_c_inline=no |
10366 | for ac_kw in inline __inline__ __inline; do | |
10367 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 10368 | #line 10369 "configure" |
a0b9e27f MB |
10369 | #include "confdefs.h" |
10370 | ||
10371 | int main() { | |
10372 | } $ac_kw foo() { | |
10373 | ; return 0; } | |
10374 | EOF | |
3c907f20 | 10375 | if { (eval echo configure:10376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10376 | rm -rf conftest* |
10377 | ac_cv_c_inline=$ac_kw; break | |
247f5006 | 10378 | else |
a0b9e27f | 10379 | echo "configure: failed program was:" >&5 |
247f5006 | 10380 | cat conftest.$ac_ext >&5 |
247f5006 | 10381 | fi |
a0b9e27f MB |
10382 | rm -f conftest* |
10383 | done | |
247f5006 VZ |
10384 | |
10385 | fi | |
10386 | ||
a0b9e27f MB |
10387 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
10388 | case "$ac_cv_c_inline" in | |
10389 | inline | yes) ;; | |
10390 | no) cat >> confdefs.h <<\EOF | |
10391 | #define inline | |
10392 | EOF | |
10393 | ;; | |
10394 | *) cat >> confdefs.h <<EOF | |
10395 | #define inline $ac_cv_c_inline | |
10396 | EOF | |
10397 | ;; | |
10398 | esac | |
247f5006 | 10399 | |
247f5006 | 10400 | |
a0b9e27f | 10401 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
3c907f20 | 10402 | echo "configure:10403: checking size of char" >&5 |
a0b9e27f MB |
10403 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
10404 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10405 | else | |
10406 | if test "$cross_compiling" = yes; then | |
10407 | ac_cv_sizeof_char=1 | |
10408 | else | |
10409 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 10410 | #line 10411 "configure" |
4f14bcd8 | 10411 | #include "confdefs.h" |
a0b9e27f | 10412 | #include <stdio.h> |
ef33c576 | 10413 | #include <sys/types.h> |
a0b9e27f | 10414 | main() |
247f5006 | 10415 | { |
a0b9e27f MB |
10416 | FILE *f=fopen("conftestval", "w"); |
10417 | if (!f) exit(1); | |
10418 | fprintf(f, "%d\n", sizeof(char)); | |
10419 | exit(0); | |
52127426 | 10420 | } |
a0b9e27f | 10421 | EOF |
3c907f20 | 10422 | if { (eval echo configure:10423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10423 | then |
10424 | ac_cv_sizeof_char=`cat conftestval` | |
247f5006 | 10425 | else |
a0b9e27f | 10426 | echo "configure: failed program was:" >&5 |
247f5006 | 10427 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10428 | rm -fr conftest* |
10429 | ac_cv_sizeof_char=0 | |
247f5006 | 10430 | fi |
a0b9e27f | 10431 | rm -fr conftest* |
247f5006 | 10432 | fi |
247f5006 VZ |
10433 | |
10434 | fi | |
a0b9e27f MB |
10435 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10436 | cat >> confdefs.h <<EOF | |
10437 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10438 | EOF | |
247f5006 | 10439 | |
247f5006 | 10440 | |
a0b9e27f | 10441 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
3c907f20 | 10442 | echo "configure:10443: checking size of short" >&5 |
a0b9e27f MB |
10443 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10444 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10445 | else |
a0b9e27f MB |
10446 | if test "$cross_compiling" = yes; then |
10447 | ac_cv_sizeof_short=2 | |
247f5006 | 10448 | else |
a0b9e27f | 10449 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 10450 | #line 10451 "configure" |
a0b9e27f MB |
10451 | #include "confdefs.h" |
10452 | #include <stdio.h> | |
ef33c576 | 10453 | #include <sys/types.h> |
a0b9e27f MB |
10454 | main() |
10455 | { | |
10456 | FILE *f=fopen("conftestval", "w"); | |
10457 | if (!f) exit(1); | |
10458 | fprintf(f, "%d\n", sizeof(short)); | |
10459 | exit(0); | |
10460 | } | |
10461 | EOF | |
3c907f20 | 10462 | if { (eval echo configure:10463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10463 | then |
10464 | ac_cv_sizeof_short=`cat conftestval` | |
247f5006 | 10465 | else |
a0b9e27f MB |
10466 | echo "configure: failed program was:" >&5 |
10467 | cat conftest.$ac_ext >&5 | |
10468 | rm -fr conftest* | |
10469 | ac_cv_sizeof_short=0 | |
247f5006 | 10470 | fi |
a0b9e27f | 10471 | rm -fr conftest* |
247f5006 VZ |
10472 | fi |
10473 | ||
247f5006 | 10474 | fi |
a0b9e27f MB |
10475 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10476 | cat >> confdefs.h <<EOF | |
10477 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10478 | EOF | |
247f5006 VZ |
10479 | |
10480 | ||
a0b9e27f | 10481 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
3c907f20 | 10482 | echo "configure:10483: checking size of void *" >&5 |
a0b9e27f MB |
10483 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
10484 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10485 | else | |
10486 | if test "$cross_compiling" = yes; then | |
10487 | ac_cv_sizeof_void_p=4 | |
247f5006 | 10488 | else |
a0b9e27f | 10489 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 10490 | #line 10491 "configure" |
247f5006 | 10491 | #include "confdefs.h" |
247f5006 | 10492 | #include <stdio.h> |
ef33c576 | 10493 | #include <sys/types.h> |
a0b9e27f | 10494 | main() |
247f5006 | 10495 | { |
a0b9e27f MB |
10496 | FILE *f=fopen("conftestval", "w"); |
10497 | if (!f) exit(1); | |
10498 | fprintf(f, "%d\n", sizeof(void *)); | |
10499 | exit(0); | |
5c6fa7d2 | 10500 | } |
a0b9e27f | 10501 | EOF |
3c907f20 | 10502 | if { (eval echo configure:10503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10503 | then |
10504 | ac_cv_sizeof_void_p=`cat conftestval` | |
10505 | else | |
10506 | echo "configure: failed program was:" >&5 | |
10507 | cat conftest.$ac_ext >&5 | |
10508 | rm -fr conftest* | |
10509 | ac_cv_sizeof_void_p=0 | |
10510 | fi | |
10511 | rm -fr conftest* | |
10512 | fi | |
8284b0c5 | 10513 | |
247f5006 | 10514 | fi |
a0b9e27f MB |
10515 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
10516 | cat >> confdefs.h <<EOF | |
10517 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
10518 | EOF | |
247f5006 | 10519 | |
247f5006 | 10520 | |
a0b9e27f | 10521 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
3c907f20 | 10522 | echo "configure:10523: checking size of int" >&5 |
a0b9e27f MB |
10523 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
10524 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10525 | else |
a0b9e27f MB |
10526 | if test "$cross_compiling" = yes; then |
10527 | ac_cv_sizeof_int=4 | |
10528 | else | |
10529 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 10530 | #line 10531 "configure" |
247f5006 | 10531 | #include "confdefs.h" |
a0b9e27f | 10532 | #include <stdio.h> |
ef33c576 | 10533 | #include <sys/types.h> |
a0b9e27f | 10534 | main() |
247f5006 | 10535 | { |
a0b9e27f MB |
10536 | FILE *f=fopen("conftestval", "w"); |
10537 | if (!f) exit(1); | |
10538 | fprintf(f, "%d\n", sizeof(int)); | |
10539 | exit(0); | |
247f5006 | 10540 | } |
a0b9e27f | 10541 | EOF |
3c907f20 | 10542 | if { (eval echo configure:10543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10543 | then |
10544 | ac_cv_sizeof_int=`cat conftestval` | |
6f72b082 | 10545 | else |
a0b9e27f MB |
10546 | echo "configure: failed program was:" >&5 |
10547 | cat conftest.$ac_ext >&5 | |
10548 | rm -fr conftest* | |
10549 | ac_cv_sizeof_int=0 | |
21d1c967 | 10550 | fi |
a0b9e27f | 10551 | rm -fr conftest* |
698dcdb6 | 10552 | fi |
4f14bcd8 | 10553 | |
21d1c967 | 10554 | fi |
a0b9e27f MB |
10555 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
10556 | cat >> confdefs.h <<EOF | |
10557 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10558 | EOF | |
4f14bcd8 | 10559 | |
5c6fa7d2 | 10560 | |
a0b9e27f | 10561 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
3c907f20 | 10562 | echo "configure:10563: checking size of long" >&5 |
a0b9e27f MB |
10563 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
10564 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10565 | else |
247f5006 | 10566 | if test "$cross_compiling" = yes; then |
a0b9e27f | 10567 | ac_cv_sizeof_long=4 |
247f5006 | 10568 | else |
a0b9e27f | 10569 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 10570 | #line 10571 "configure" |
247f5006 | 10571 | #include "confdefs.h" |
a0b9e27f | 10572 | #include <stdio.h> |
ef33c576 | 10573 | #include <sys/types.h> |
a0b9e27f | 10574 | main() |
247f5006 | 10575 | { |
a0b9e27f MB |
10576 | FILE *f=fopen("conftestval", "w"); |
10577 | if (!f) exit(1); | |
10578 | fprintf(f, "%d\n", sizeof(long)); | |
10579 | exit(0); | |
247f5006 | 10580 | } |
a0b9e27f | 10581 | EOF |
3c907f20 | 10582 | if { (eval echo configure:10583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10583 | then |
10584 | ac_cv_sizeof_long=`cat conftestval` | |
247f5006 | 10585 | else |
a0b9e27f MB |
10586 | echo "configure: failed program was:" >&5 |
10587 | cat conftest.$ac_ext >&5 | |
10588 | rm -fr conftest* | |
10589 | ac_cv_sizeof_long=0 | |
247f5006 | 10590 | fi |
a0b9e27f | 10591 | rm -fr conftest* |
247f5006 | 10592 | fi |
247f5006 | 10593 | |
5c6fa7d2 | 10594 | fi |
a0b9e27f MB |
10595 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
10596 | cat >> confdefs.h <<EOF | |
10597 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10598 | EOF | |
247f5006 | 10599 | |
a0b9e27f MB |
10600 | |
10601 | ||
10602 | case "${host}" in | |
10603 | arm-*-linux* ) | |
10604 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
3c907f20 | 10605 | echo "configure:10606: checking size of long long" >&5 |
a0b9e27f MB |
10606 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10607 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10608 | else | |
10609 | if test "$cross_compiling" = yes; then | |
10610 | ac_cv_sizeof_long_long=8 | |
10611 | else | |
10612 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 10613 | #line 10614 "configure" |
247f5006 | 10614 | #include "confdefs.h" |
a0b9e27f | 10615 | #include <stdio.h> |
ef33c576 | 10616 | #include <sys/types.h> |
a0b9e27f | 10617 | main() |
247f5006 | 10618 | { |
a0b9e27f MB |
10619 | FILE *f=fopen("conftestval", "w"); |
10620 | if (!f) exit(1); | |
10621 | fprintf(f, "%d\n", sizeof(long long)); | |
10622 | exit(0); | |
247f5006 | 10623 | } |
a0b9e27f | 10624 | EOF |
3c907f20 | 10625 | if { (eval echo configure:10626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10626 | then |
10627 | ac_cv_sizeof_long_long=`cat conftestval` | |
7b4a847f | 10628 | else |
a0b9e27f MB |
10629 | echo "configure: failed program was:" >&5 |
10630 | cat conftest.$ac_ext >&5 | |
10631 | rm -fr conftest* | |
10632 | ac_cv_sizeof_long_long=0 | |
5c6fa7d2 | 10633 | fi |
a0b9e27f | 10634 | rm -fr conftest* |
5c6fa7d2 | 10635 | fi |
8284b0c5 | 10636 | |
a0b9e27f MB |
10637 | fi |
10638 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10639 | cat >> confdefs.h <<EOF | |
10640 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10641 | EOF | |
10642 | ||
10643 | ||
10644 | ;; | |
4f57cf11 | 10645 | *-hp-hpux* ) |
a0b9e27f | 10646 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
3c907f20 | 10647 | echo "configure:10648: checking size of long long" >&5 |
a0b9e27f MB |
10648 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10649 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 MB |
10650 | else |
10651 | if test "$cross_compiling" = yes; then | |
a0b9e27f | 10652 | ac_cv_sizeof_long_long=0 |
8284b0c5 | 10653 | else |
a0b9e27f | 10654 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 10655 | #line 10656 "configure" |
8284b0c5 MB |
10656 | #include "confdefs.h" |
10657 | #include <stdio.h> | |
ef33c576 | 10658 | #include <sys/types.h> |
a0b9e27f | 10659 | main() |
8284b0c5 | 10660 | { |
a0b9e27f MB |
10661 | FILE *f=fopen("conftestval", "w"); |
10662 | if (!f) exit(1); | |
10663 | fprintf(f, "%d\n", sizeof(long long)); | |
10664 | exit(0); | |
8284b0c5 | 10665 | } |
a0b9e27f | 10666 | EOF |
3c907f20 | 10667 | if { (eval echo configure:10668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10668 | then |
10669 | ac_cv_sizeof_long_long=`cat conftestval` | |
5c6fa7d2 | 10670 | else |
a0b9e27f MB |
10671 | echo "configure: failed program was:" >&5 |
10672 | cat conftest.$ac_ext >&5 | |
10673 | rm -fr conftest* | |
5c6fa7d2 | 10674 | ac_cv_sizeof_long_long=0 |
52127426 | 10675 | fi |
a0b9e27f MB |
10676 | rm -fr conftest* |
10677 | fi | |
10678 | ||
4f57cf11 GD |
10679 | fi |
10680 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10681 | cat >> confdefs.h <<EOF | |
10682 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10683 | EOF | |
10684 | ||
10685 | ||
10686 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
10687 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
10688 | fi | |
10689 | ;; | |
10690 | * ) | |
10691 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
3c907f20 | 10692 | echo "configure:10693: checking size of long long" >&5 |
4f57cf11 GD |
10693 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10694 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10695 | else | |
10696 | if test "$cross_compiling" = yes; then | |
10697 | ac_cv_sizeof_long_long=0 | |
10698 | else | |
10699 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 10700 | #line 10701 "configure" |
4f57cf11 GD |
10701 | #include "confdefs.h" |
10702 | #include <stdio.h> | |
ef33c576 | 10703 | #include <sys/types.h> |
4f57cf11 GD |
10704 | main() |
10705 | { | |
10706 | FILE *f=fopen("conftestval", "w"); | |
10707 | if (!f) exit(1); | |
10708 | fprintf(f, "%d\n", sizeof(long long)); | |
10709 | exit(0); | |
10710 | } | |
10711 | EOF | |
3c907f20 | 10712 | if { (eval echo configure:10713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f57cf11 GD |
10713 | then |
10714 | ac_cv_sizeof_long_long=`cat conftestval` | |
10715 | else | |
10716 | echo "configure: failed program was:" >&5 | |
10717 | cat conftest.$ac_ext >&5 | |
10718 | rm -fr conftest* | |
10719 | ac_cv_sizeof_long_long=0 | |
10720 | fi | |
10721 | rm -fr conftest* | |
10722 | fi | |
10723 | ||
7b4a847f | 10724 | fi |
a0b9e27f MB |
10725 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10726 | cat >> confdefs.h <<EOF | |
21d1c967 | 10727 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
a0b9e27f | 10728 | EOF |
9e691f46 | 10729 | |
8284b0c5 | 10730 | |
21d1c967 GD |
10731 | esac |
10732 | ||
a0b9e27f | 10733 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
3c907f20 | 10734 | echo "configure:10735: checking size of wchar_t" >&5 |
a0b9e27f MB |
10735 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
10736 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 10737 | else |
a0b9e27f | 10738 | |
21d1c967 | 10739 | if test "$cross_compiling" = yes; then |
2b5f62a0 VZ |
10740 | |
10741 | case "${host}" in | |
10742 | *-pc-msdosdjgpp ) | |
10743 | wx_cv_sizeof_wchar_t=0 | |
10744 | ;; | |
10745 | * ) | |
10746 | wx_cv_sizeof_wchar_t=4 | |
10747 | ;; | |
10748 | esac | |
10749 | ||
a0b9e27f | 10750 | |
6f72b082 | 10751 | else |
a0b9e27f | 10752 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 10753 | #line 10754 "configure" |
6f72b082 | 10754 | #include "confdefs.h" |
21d1c967 | 10755 | |
2b5f62a0 VZ |
10756 | /* DJGPP only has fake wchar_t: */ |
10757 | #ifdef __DJGPP__ | |
10758 | # error "fake wchar_t" | |
10759 | #endif | |
21d1c967 GD |
10760 | #ifdef HAVE_WCHAR_H |
10761 | # ifdef __CYGWIN__ | |
10762 | # include <stddef.h> | |
10763 | # endif | |
10764 | # include <wchar.h> | |
10765 | #endif | |
10766 | #ifdef HAVE_STDLIB_H | |
10767 | # include <stdlib.h> | |
10768 | #endif | |
10769 | #include <stdio.h> | |
10770 | int main() | |
10771 | { | |
10772 | FILE *f=fopen("conftestval", "w"); | |
10773 | if (!f) exit(1); | |
10774 | fprintf(f, "%i", sizeof(wchar_t)); | |
10775 | exit(0); | |
10776 | } | |
a0b9e27f MB |
10777 | |
10778 | EOF | |
3c907f20 | 10779 | if { (eval echo configure:10780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10780 | then |
21d1c967 | 10781 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 10782 | else |
a0b9e27f MB |
10783 | echo "configure: failed program was:" >&5 |
10784 | cat conftest.$ac_ext >&5 | |
10785 | rm -fr conftest* | |
10786 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 10787 | fi |
a0b9e27f | 10788 | rm -fr conftest* |
6f72b082 | 10789 | fi |
6f72b082 | 10790 | |
a0b9e27f | 10791 | |
3f345b47 VZ |
10792 | fi |
10793 | ||
a0b9e27f MB |
10794 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
10795 | ||
10796 | cat >> confdefs.h <<EOF | |
21d1c967 | 10797 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
a0b9e27f | 10798 | EOF |
90dd450c | 10799 | |
8284b0c5 | 10800 | |
21d1c967 GD |
10801 | # Check whether --enable-largefile or --disable-largefile was given. |
10802 | if test "${enable_largefile+set}" = set; then | |
10803 | enableval="$enable_largefile" | |
a0b9e27f MB |
10804 | : |
10805 | fi | |
3f345b47 | 10806 | |
21d1c967 GD |
10807 | if test "$enable_largefile" != no; then |
10808 | wx_largefile=no | |
a0b9e27f MB |
10809 | |
10810 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
3c907f20 | 10811 | echo "configure:10812: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
a0b9e27f MB |
10812 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
10813 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10814 | else | |
10815 | ||
10816 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 10817 | #line 10818 "configure" |
90dd450c | 10818 | #include "confdefs.h" |
21d1c967 GD |
10819 | #define _FILE_OFFSET_BITS 64 |
10820 | #include <sys/types.h> | |
a0b9e27f | 10821 | int main() { |
21d1c967 GD |
10822 | typedef struct { |
10823 | unsigned int field: sizeof(off_t) == 8; | |
10824 | } wxlf; | |
10825 | ||
a0b9e27f MB |
10826 | ; return 0; } |
10827 | EOF | |
3c907f20 | 10828 | if { (eval echo configure:10829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10829 | rm -rf conftest* |
21d1c967 | 10830 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 10831 | else |
a0b9e27f MB |
10832 | echo "configure: failed program was:" >&5 |
10833 | cat conftest.$ac_ext >&5 | |
10834 | rm -rf conftest* | |
10835 | ac_cv_sys_file_offset_bits=no | |
5c6fa7d2 | 10836 | fi |
a0b9e27f MB |
10837 | rm -f conftest* |
10838 | ||
10839 | ||
247f5006 | 10840 | fi |
a0b9e27f MB |
10841 | |
10842 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
21d1c967 GD |
10843 | |
10844 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
10845 | wx_largefile=yes | |
a0b9e27f | 10846 | cat >> confdefs.h <<EOF |
21d1c967 | 10847 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
a0b9e27f | 10848 | EOF |
21d1c967 GD |
10849 | |
10850 | fi | |
10851 | ||
10852 | if test "x$wx_largefile" != "xyes"; then | |
a0b9e27f MB |
10853 | |
10854 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
3c907f20 | 10855 | echo "configure:10856: checking for _LARGE_FILES value needed for large files" >&5 |
a0b9e27f MB |
10856 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
10857 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10858 | else | |
10859 | ||
10860 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 10861 | #line 10862 "configure" |
f6bcfd97 | 10862 | #include "confdefs.h" |
21d1c967 GD |
10863 | #define _LARGE_FILES 1 |
10864 | #include <sys/types.h> | |
a0b9e27f | 10865 | int main() { |
21d1c967 GD |
10866 | typedef struct { |
10867 | unsigned int field: sizeof(off_t) == 8; | |
10868 | } wxlf; | |
10869 | ||
a0b9e27f MB |
10870 | ; return 0; } |
10871 | EOF | |
3c907f20 | 10872 | if { (eval echo configure:10873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10873 | rm -rf conftest* |
21d1c967 | 10874 | ac_cv_sys_large_files=1 |
f6bcfd97 | 10875 | else |
a0b9e27f MB |
10876 | echo "configure: failed program was:" >&5 |
10877 | cat conftest.$ac_ext >&5 | |
10878 | rm -rf conftest* | |
10879 | ac_cv_sys_large_files=no | |
5c6fa7d2 | 10880 | fi |
a0b9e27f MB |
10881 | rm -f conftest* |
10882 | ||
10883 | ||
247f5006 | 10884 | fi |
a0b9e27f MB |
10885 | |
10886 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
3f345b47 | 10887 | |
21d1c967 GD |
10888 | if test "$ac_cv_sys_large_files" != no; then |
10889 | wx_largefile=yes | |
a0b9e27f | 10890 | cat >> confdefs.h <<EOF |
21d1c967 | 10891 | #define _LARGE_FILES $ac_cv_sys_large_files |
a0b9e27f | 10892 | EOF |
90dd450c | 10893 | |
90dd450c VZ |
10894 | fi |
10895 | ||
90dd450c | 10896 | fi |
90dd450c | 10897 | |
a0b9e27f | 10898 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
3c907f20 | 10899 | echo "configure:10900: checking if large file support is available" >&5 |
21d1c967 | 10900 | if test "x$wx_largefile" = "xyes"; then |
a0b9e27f | 10901 | cat >> confdefs.h <<\EOF |
21d1c967 | 10902 | #define HAVE_LARGEFILE_SUPPORT 1 |
a0b9e27f | 10903 | EOF |
90dd450c | 10904 | |
90dd450c | 10905 | fi |
a0b9e27f | 10906 | echo "$ac_t""$wx_largefile" 1>&6 |
21d1c967 | 10907 | fi |
90dd450c | 10908 | |
8284b0c5 | 10909 | |
f02444d0 | 10910 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
10911 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
10912 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 10913 | else |
e26c13cf | 10914 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 10915 | fi |
e26c13cf | 10916 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
10917 | fi |
10918 | ||
a0b9e27f | 10919 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
3c907f20 | 10920 | echo "configure:10921: checking whether byte ordering is bigendian" >&5 |
a0b9e27f MB |
10921 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
10922 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 10923 | else |
21d1c967 GD |
10924 | ac_cv_c_bigendian=unknown |
10925 | # See if sys/param.h defines the BYTE_ORDER macro. | |
a0b9e27f | 10926 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 10927 | #line 10928 "configure" |
90dd450c | 10928 | #include "confdefs.h" |
21d1c967 GD |
10929 | #include <sys/types.h> |
10930 | #include <sys/param.h> | |
a0b9e27f | 10931 | int main() { |
21d1c967 GD |
10932 | |
10933 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10934 | bogus endian macros | |
10935 | #endif | |
a0b9e27f MB |
10936 | ; return 0; } |
10937 | EOF | |
3c907f20 | 10938 | if { (eval echo configure:10939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10939 | rm -rf conftest* |
21d1c967 | 10940 | # It does; now see whether it defined to BIG_ENDIAN or not. |
a0b9e27f | 10941 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 10942 | #line 10943 "configure" |
90dd450c | 10943 | #include "confdefs.h" |
21d1c967 GD |
10944 | #include <sys/types.h> |
10945 | #include <sys/param.h> | |
a0b9e27f | 10946 | int main() { |
21d1c967 GD |
10947 | |
10948 | #if BYTE_ORDER != BIG_ENDIAN | |
10949 | not big endian | |
10950 | #endif | |
a0b9e27f MB |
10951 | ; return 0; } |
10952 | EOF | |
3c907f20 | 10953 | if { (eval echo configure:10954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10954 | rm -rf conftest* |
21d1c967 | 10955 | ac_cv_c_bigendian=yes |
3f345b47 | 10956 | else |
a0b9e27f MB |
10957 | echo "configure: failed program was:" >&5 |
10958 | cat conftest.$ac_ext >&5 | |
10959 | rm -rf conftest* | |
10960 | ac_cv_c_bigendian=no | |
3f345b47 | 10961 | fi |
a0b9e27f | 10962 | rm -f conftest* |
3f345b47 | 10963 | else |
a0b9e27f MB |
10964 | echo "configure: failed program was:" >&5 |
10965 | cat conftest.$ac_ext >&5 | |
3f345b47 | 10966 | fi |
a0b9e27f | 10967 | rm -f conftest* |
21d1c967 GD |
10968 | if test $ac_cv_c_bigendian = unknown; then |
10969 | if test "$cross_compiling" = yes; then | |
10970 | ac_cv_c_bigendian=unknown | |
10f2d63a | 10971 | else |
a0b9e27f | 10972 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 10973 | #line 10974 "configure" |
90dd450c | 10974 | #include "confdefs.h" |
21d1c967 GD |
10975 | main () { |
10976 | /* Are we little or big endian? From Harbison&Steele. */ | |
10977 | union | |
10978 | { | |
10979 | long l; | |
10980 | char c[sizeof (long)]; | |
10981 | } u; | |
10982 | u.l = 1; | |
10983 | exit (u.c[sizeof (long) - 1] == 1); | |
10984 | } | |
a0b9e27f | 10985 | EOF |
3c907f20 | 10986 | if { (eval echo configure:10987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10987 | then |
21d1c967 | 10988 | ac_cv_c_bigendian=no |
3f345b47 | 10989 | else |
a0b9e27f MB |
10990 | echo "configure: failed program was:" >&5 |
10991 | cat conftest.$ac_ext >&5 | |
10992 | rm -fr conftest* | |
10993 | ac_cv_c_bigendian=yes | |
247f5006 | 10994 | fi |
a0b9e27f | 10995 | rm -fr conftest* |
247f5006 | 10996 | fi |
a0b9e27f | 10997 | |
3f345b47 | 10998 | fi |
8168de4c | 10999 | fi |
a0b9e27f MB |
11000 | |
11001 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
247f5006 | 11002 | if test $ac_cv_c_bigendian = unknown; then |
a0b9e27f | 11003 | 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 |
11004 | fi |
11005 | if test $ac_cv_c_bigendian = yes; then | |
a0b9e27f | 11006 | cat >> confdefs.h <<\EOF |
247f5006 | 11007 | #define WORDS_BIGENDIAN 1 |
a0b9e27f | 11008 | EOF |
247f5006 VZ |
11009 | |
11010 | fi | |
11011 | ||
11012 | ||
a0b9e27f | 11013 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
3c907f20 | 11014 | echo "configure:11015: checking how to run the C++ preprocessor" >&5 |
247f5006 | 11015 | if test -z "$CXXCPP"; then |
a0b9e27f MB |
11016 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
11017 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11018 | else |
a0b9e27f MB |
11019 | ac_ext=C |
11020 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11021 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11022 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11023 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11024 | cross_compiling=$ac_cv_prog_cxx_cross | |
11025 | CXXCPP="${CXX-g++} -E" | |
11026 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 11027 | #line 11028 "configure" |
5c6fa7d2 | 11028 | #include "confdefs.h" |
a0b9e27f MB |
11029 | #include <stdlib.h> |
11030 | EOF | |
11031 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c907f20 | 11032 | { (eval echo configure:11033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11033 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11034 | if test -z "$ac_err"; then | |
21d1c967 | 11035 | : |
698dcdb6 | 11036 | else |
a0b9e27f MB |
11037 | echo "$ac_err" >&5 |
11038 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 11039 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11040 | rm -rf conftest* |
11041 | CXXCPP=/lib/cpp | |
247f5006 | 11042 | fi |
a0b9e27f MB |
11043 | rm -f conftest* |
11044 | ac_cv_prog_CXXCPP="$CXXCPP" | |
11045 | ac_ext=C | |
11046 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11047 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11048 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11049 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11050 | cross_compiling=$ac_cv_prog_cxx_cross | |
328a083c | 11051 | fi |
90dd450c | 11052 | fi |
a0b9e27f MB |
11053 | CXXCPP="$ac_cv_prog_CXXCPP" |
11054 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e6feb95 | 11055 | |
1725144d | 11056 | |
21d1c967 | 11057 | if test "$cross_compiling" = "yes"; then |
a0b9e27f | 11058 | cat >> confdefs.h <<\EOF |
21d1c967 | 11059 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11060 | EOF |
ab9b9eab | 11061 | |
21d1c967 | 11062 | else |
a0b9e27f MB |
11063 | |
11064 | ac_ext=C | |
11065 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11066 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11067 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11068 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11069 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 11070 | |
247f5006 | 11071 | |
a0b9e27f | 11072 | for ac_hdr in iostream |
21d1c967 | 11073 | do |
a0b9e27f MB |
11074 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11075 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c907f20 | 11076 | echo "configure:11077: checking for $ac_hdr" >&5 |
a0b9e27f MB |
11077 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11078 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11079 | else | |
11080 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 11081 | #line 11082 "configure" |
ab9b9eab | 11082 | #include "confdefs.h" |
a0b9e27f MB |
11083 | #include <$ac_hdr> |
11084 | EOF | |
11085 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c907f20 | 11086 | { (eval echo configure:11087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11087 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11088 | if test -z "$ac_err"; then | |
11089 | rm -rf conftest* | |
11090 | eval "ac_cv_header_$ac_safe=yes" | |
11091 | else | |
11092 | echo "$ac_err" >&5 | |
11093 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 11094 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11095 | rm -rf conftest* |
11096 | eval "ac_cv_header_$ac_safe=no" | |
ab9b9eab | 11097 | fi |
a0b9e27f | 11098 | rm -f conftest* |
90dd450c | 11099 | fi |
a0b9e27f MB |
11100 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11101 | echo "$ac_t""yes" 1>&6 | |
11102 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11103 | cat >> confdefs.h <<EOF | |
11104 | #define $ac_tr_hdr 1 | |
11105 | EOF | |
11106 | ||
11107 | else | |
11108 | echo "$ac_t""no" 1>&6 | |
90dd450c | 11109 | fi |
21d1c967 | 11110 | done |
10f2d63a | 11111 | |
8284b0c5 | 11112 | |
21d1c967 GD |
11113 | if test "$ac_cv_header_iostream" = "yes" ; then |
11114 | : | |
11115 | else | |
a0b9e27f | 11116 | cat >> confdefs.h <<\EOF |
21d1c967 | 11117 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11118 | EOF |
788deba1 | 11119 | |
90dd450c | 11120 | fi |
ab9b9eab | 11121 | |
21d1c967 | 11122 | ac_ext=c |
a0b9e27f | 11123 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11124 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11125 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11126 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11127 | cross_compiling=$ac_cv_prog_cc_cross | |
ab9b9eab | 11128 | |
21d1c967 | 11129 | fi |
ab9b9eab | 11130 | |
52127426 | 11131 | |
8284b0c5 | 11132 | |
a0b9e27f | 11133 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
3c907f20 | 11134 | echo "configure:11135: checking if C++ compiler supports bool" >&5 |
a0b9e27f MB |
11135 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
11136 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11137 | else |
a0b9e27f MB |
11138 | |
11139 | ||
11140 | ac_ext=C | |
11141 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11142 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11143 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11144 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11145 | cross_compiling=$ac_cv_prog_cxx_cross | |
21d1c967 | 11146 | |
8284b0c5 | 11147 | |
a0b9e27f | 11148 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 11149 | #line 11150 "configure" |
ab9b9eab | 11150 | #include "confdefs.h" |
21d1c967 | 11151 | |
a0b9e27f MB |
11152 | |
11153 | int main() { | |
21d1c967 GD |
11154 | |
11155 | bool b = true; | |
11156 | ||
11157 | return 0; | |
a0b9e27f MB |
11158 | |
11159 | ; return 0; } | |
11160 | EOF | |
3c907f20 | 11161 | if { (eval echo configure:11162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11162 | rm -rf conftest* |
11163 | ||
21d1c967 | 11164 | wx_cv_cpp_bool=yes |
a0b9e27f | 11165 | |
698dcdb6 | 11166 | else |
a0b9e27f MB |
11167 | echo "configure: failed program was:" >&5 |
11168 | cat conftest.$ac_ext >&5 | |
11169 | rm -rf conftest* | |
11170 | ||
21d1c967 | 11171 | wx_cv_cpp_bool=no |
a0b9e27f MB |
11172 | |
11173 | ||
698dcdb6 | 11174 | fi |
a0b9e27f | 11175 | rm -f conftest* |
21d1c967 GD |
11176 | |
11177 | ac_ext=c | |
a0b9e27f | 11178 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11179 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11180 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11181 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11182 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11183 | |
a0b9e27f | 11184 | |
247f5006 | 11185 | fi |
a0b9e27f MB |
11186 | |
11187 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
21d1c967 GD |
11188 | |
11189 | if test "$wx_cv_cpp_bool" = "yes"; then | |
a0b9e27f | 11190 | cat >> confdefs.h <<\EOF |
21d1c967 | 11191 | #define HAVE_BOOL 1 |
a0b9e27f | 11192 | EOF |
ab9b9eab | 11193 | |
21d1c967 GD |
11194 | fi |
11195 | ||
52127426 | 11196 | |
8284b0c5 | 11197 | |
a0b9e27f | 11198 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 |
3c907f20 | 11199 | echo "configure:11200: checking if C++ compiler supports the explicit keyword" >&5 |
a0b9e27f MB |
11200 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then |
11201 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11202 | else |
a0b9e27f MB |
11203 | |
11204 | ||
11205 | ac_ext=C | |
11206 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11207 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11208 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11209 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11210 | cross_compiling=$ac_cv_prog_cxx_cross | |
986ecc86 | 11211 | |
8284b0c5 | 11212 | |
a0b9e27f | 11213 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 11214 | #line 11215 "configure" |
986ecc86 VZ |
11215 | #include "confdefs.h" |
11216 | ||
11217 | class Foo { public: explicit Foo(int) {} }; | |
a0b9e27f MB |
11218 | |
11219 | int main() { | |
986ecc86 VZ |
11220 | |
11221 | return 0; | |
a0b9e27f MB |
11222 | |
11223 | ; return 0; } | |
11224 | EOF | |
3c907f20 | 11225 | if { (eval echo configure:11226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11226 | rm -rf conftest* |
11227 | ||
11228 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 11229 | #line 11230 "configure" |
986ecc86 VZ |
11230 | #include "confdefs.h" |
11231 | ||
11232 | class Foo { public: explicit Foo(int) {} }; | |
11233 | static void TakeFoo(const Foo& foo) { } | |
a0b9e27f MB |
11234 | |
11235 | int main() { | |
986ecc86 VZ |
11236 | |
11237 | TakeFoo(17); | |
11238 | return 0; | |
a0b9e27f MB |
11239 | |
11240 | ; return 0; } | |
11241 | EOF | |
3c907f20 | 11242 | if { (eval echo configure:11243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11243 | rm -rf conftest* |
986ecc86 VZ |
11244 | wx_cv_explicit=no |
11245 | else | |
a0b9e27f MB |
11246 | echo "configure: failed program was:" >&5 |
11247 | cat conftest.$ac_ext >&5 | |
11248 | rm -rf conftest* | |
11249 | wx_cv_explicit=yes | |
11250 | ||
986ecc86 | 11251 | fi |
a0b9e27f MB |
11252 | rm -f conftest* |
11253 | ||
986ecc86 | 11254 | else |
a0b9e27f MB |
11255 | echo "configure: failed program was:" >&5 |
11256 | cat conftest.$ac_ext >&5 | |
11257 | rm -rf conftest* | |
11258 | wx_cv_explicit=no | |
11259 | ||
986ecc86 | 11260 | fi |
a0b9e27f | 11261 | rm -f conftest* |
986ecc86 VZ |
11262 | |
11263 | ac_ext=c | |
a0b9e27f | 11264 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
986ecc86 | 11265 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11266 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11267 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11268 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11269 | |
a0b9e27f | 11270 | |
247f5006 | 11271 | fi |
a0b9e27f MB |
11272 | |
11273 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
986ecc86 VZ |
11274 | |
11275 | if test "$wx_cv_explicit" = "yes"; then | |
a0b9e27f | 11276 | cat >> confdefs.h <<\EOF |
986ecc86 | 11277 | #define HAVE_EXPLICIT 1 |
a0b9e27f | 11278 | EOF |
986ecc86 VZ |
11279 | |
11280 | fi | |
11281 | ||
8284b0c5 | 11282 | |
521196a2 | 11283 | echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6 |
3c907f20 | 11284 | echo "configure:11285: checking whether the compiler supports const_cast<>" >&5 |
521196a2 MB |
11285 | if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then |
11286 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11287 | else | |
11288 | ||
11289 | ac_ext=C | |
11290 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11291 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11292 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11293 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11294 | cross_compiling=$ac_cv_prog_cxx_cross | |
11295 | ||
11296 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 11297 | #line 11298 "configure" |
521196a2 MB |
11298 | #include "confdefs.h" |
11299 | ||
11300 | int main() { | |
11301 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
11302 | ; return 0; } | |
11303 | EOF | |
3c907f20 | 11304 | if { (eval echo configure:11305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
521196a2 MB |
11305 | rm -rf conftest* |
11306 | ac_cv_cxx_const_cast=yes | |
11307 | else | |
11308 | echo "configure: failed program was:" >&5 | |
11309 | cat conftest.$ac_ext >&5 | |
11310 | rm -rf conftest* | |
11311 | ac_cv_cxx_const_cast=no | |
11312 | fi | |
11313 | rm -f conftest* | |
11314 | ac_ext=c | |
11315 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11316 | ac_cpp='$CPP $CPPFLAGS' | |
11317 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11318 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11319 | cross_compiling=$ac_cv_prog_cc_cross | |
11320 | ||
11321 | ||
11322 | fi | |
11323 | ||
11324 | echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6 | |
11325 | if test "$ac_cv_cxx_const_cast" = yes; then | |
11326 | cat >> confdefs.h <<\EOF | |
11327 | #define HAVE_CONST_CAST | |
11328 | EOF | |
11329 | ||
11330 | fi | |
11331 | ||
11332 | ||
8284b0c5 | 11333 | |
21d1c967 GD |
11334 | SEARCH_INCLUDE="\ |
11335 | /usr/local/include \ | |
11336 | \ | |
11337 | /usr/Motif-1.2/include \ | |
11338 | /usr/Motif-2.1/include \ | |
11339 | \ | |
11340 | /usr/include/Motif1.2 \ | |
11341 | /opt/xpm/include/X11 \ | |
11342 | /opt/GBxpm/include/ \ | |
11343 | /opt/GBxpm/X11/include/ \ | |
11344 | \ | |
11345 | /usr/Motif1.2/include \ | |
11346 | /usr/dt/include \ | |
11347 | /usr/openwin/include \ | |
11348 | \ | |
11349 | /usr/include/Xm \ | |
11350 | \ | |
11351 | /usr/X11R6/include \ | |
11352 | /usr/X11R6.4/include \ | |
11353 | /usr/X11R5/include \ | |
11354 | /usr/X11R4/include \ | |
11355 | \ | |
11356 | /usr/include/X11R6 \ | |
11357 | /usr/include/X11R5 \ | |
11358 | /usr/include/X11R4 \ | |
11359 | \ | |
11360 | /usr/local/X11R6/include \ | |
11361 | /usr/local/X11R5/include \ | |
11362 | /usr/local/X11R4/include \ | |
11363 | \ | |
11364 | /usr/local/include/X11R6 \ | |
11365 | /usr/local/include/X11R5 \ | |
11366 | /usr/local/include/X11R4 \ | |
11367 | \ | |
11368 | /usr/X11/include \ | |
11369 | /usr/include/X11 \ | |
11370 | /usr/local/X11/include \ | |
11371 | /usr/local/include/X11 \ | |
11372 | \ | |
11373 | /usr/X386/include \ | |
11374 | /usr/x386/include \ | |
11375 | /usr/XFree86/include/X11 \ | |
11376 | \ | |
11377 | X:/XFree86/include \ | |
11378 | X:/XFree86/include/X11 \ | |
11379 | \ | |
11380 | /usr/include/gtk \ | |
11381 | /usr/local/include/gtk \ | |
11382 | /usr/include/glib \ | |
11383 | /usr/local/include/glib \ | |
11384 | \ | |
11385 | /usr/include/qt \ | |
11386 | /usr/local/include/qt \ | |
11387 | \ | |
11388 | /usr/include/windows \ | |
11389 | /usr/include/wine \ | |
11390 | /usr/local/include/wine \ | |
11391 | \ | |
11392 | /usr/unsupported/include \ | |
11393 | /usr/athena/include \ | |
11394 | /usr/local/x11r5/include \ | |
11395 | /usr/lpp/Xamples/include \ | |
11396 | \ | |
2b5f62a0 | 11397 | /usr/openwin/share/include" |
21d1c967 GD |
11398 | |
11399 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
11400 | ||
8284b0c5 | 11401 | |
a0b9e27f | 11402 | cat > confcache <<\EOF |
21d1c967 GD |
11403 | # This file is a shell script that caches the results of configure |
11404 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
11405 | # scripts and configure runs. It is not useful on other systems. |
11406 | # If it contains results you don't want to keep, you may remove or edit it. | |
21d1c967 | 11407 | # |
a0b9e27f MB |
11408 | # By default, configure uses ./config.cache as the cache file, |
11409 | # creating it if it does not exist already. You can give configure | |
11410 | # the --cache-file=FILE option to use a different cache file; that is | |
11411 | # what configure does when it calls configure scripts in | |
11412 | # subdirectories, so they share the cache. | |
11413 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
11414 | # config.status only pays attention to the cache file if you give it the | |
11415 | # --recheck option to rerun configure. | |
21d1c967 | 11416 | # |
a0b9e27f | 11417 | EOF |
21d1c967 GD |
11418 | # The following way of writing the cache mishandles newlines in values, |
11419 | # but we know of no workaround that is simple, portable, and efficient. | |
11420 | # So, don't put newlines in cache variables' values. | |
11421 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11422 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
11423 | (set) 2>&1 | |
11424 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11425 | *ac_space=\ *) | |
11426 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11427 | # turns \\\\ into \\, and sed turns \\ into \). | |
11428 | sed -n \ | |
11429 | -e "s/'/'\\\\''/g" \ | |
11430 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11431 | ;; | |
11432 | *) | |
11433 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11434 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11435 | ;; | |
11436 | esac >> confcache | |
11437 | if cmp -s $cache_file confcache; then | |
11438 | : | |
11439 | else | |
21d1c967 | 11440 | if test -w $cache_file; then |
a0b9e27f MB |
11441 | echo "updating cache $cache_file" |
11442 | cat confcache > $cache_file | |
21d1c967 GD |
11443 | else |
11444 | echo "not updating unwritable cache $cache_file" | |
11445 | fi | |
ab9b9eab | 11446 | fi |
21d1c967 | 11447 | rm -f confcache |
ab9b9eab | 11448 | |
247f5006 | 11449 | |
a0b9e27f MB |
11450 | if test "$USE_LINUX" = 1; then |
11451 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
3c907f20 | 11452 | echo "configure:11453: checking for glibc 2.1 or later" >&5 |
a0b9e27f MB |
11453 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then |
11454 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11455 | else | |
11456 | ||
11457 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 11458 | #line 11459 "configure" |
ab9b9eab | 11459 | #include "confdefs.h" |
21d1c967 | 11460 | #include <features.h> |
a0b9e27f | 11461 | int main() { |
ab9b9eab | 11462 | |
21d1c967 GD |
11463 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
11464 | #error not glibc2.1 | |
11465 | #endif | |
a0b9e27f MB |
11466 | |
11467 | ; return 0; } | |
11468 | EOF | |
3c907f20 | 11469 | if { (eval echo configure:11470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11470 | rm -rf conftest* |
11471 | ||
21d1c967 | 11472 | wx_cv_lib_glibc21=yes |
a0b9e27f | 11473 | |
698dcdb6 | 11474 | else |
a0b9e27f MB |
11475 | echo "configure: failed program was:" >&5 |
11476 | cat conftest.$ac_ext >&5 | |
11477 | rm -rf conftest* | |
11478 | ||
21d1c967 | 11479 | wx_cv_lib_glibc21=no |
a0b9e27f MB |
11480 | |
11481 | ||
5c6fa7d2 | 11482 | fi |
a0b9e27f MB |
11483 | rm -f conftest* |
11484 | ||
247f5006 | 11485 | fi |
a0b9e27f MB |
11486 | |
11487 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 | |
21d1c967 | 11488 | if test "$wx_cv_lib_glibc21" = "yes"; then |
a0b9e27f | 11489 | cat >> confdefs.h <<\EOF |
21d1c967 | 11490 | #define wxHAVE_GLIBC2 1 |
a0b9e27f | 11491 | EOF |
1e487827 | 11492 | |
90dd450c | 11493 | fi |
ab9b9eab VZ |
11494 | fi |
11495 | ||
5c0a20c3 VZ |
11496 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
11497 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 11498 | cat >> confdefs.h <<\EOF |
5c0a20c3 | 11499 | #define _GNU_SOURCE 1 |
a0b9e27f | 11500 | EOF |
5c0a20c3 VZ |
11501 | |
11502 | fi | |
11503 | fi | |
11504 | ||
8284b0c5 MB |
11505 | |
11506 | ||
21d1c967 GD |
11507 | REGEX_INCLUDE= |
11508 | if test "$wxUSE_REGEX" != "no"; then | |
a0b9e27f | 11509 | cat >> confdefs.h <<\EOF |
21d1c967 | 11510 | #define wxUSE_REGEX 1 |
a0b9e27f | 11511 | EOF |
698dcdb6 | 11512 | |
8284b0c5 | 11513 | |
21d1c967 | 11514 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
a0b9e27f MB |
11515 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` |
11516 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
3c907f20 | 11517 | echo "configure:11518: checking for regex.h" >&5 |
a0b9e27f MB |
11518 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11519 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11520 | else | |
11521 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 11522 | #line 11523 "configure" |
247f5006 VZ |
11523 | #include "confdefs.h" |
11524 | #include <regex.h> | |
a0b9e27f MB |
11525 | EOF |
11526 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c907f20 | 11527 | { (eval echo configure:11528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11528 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11529 | if test -z "$ac_err"; then | |
11530 | rm -rf conftest* | |
11531 | eval "ac_cv_header_$ac_safe=yes" | |
11532 | else | |
11533 | echo "$ac_err" >&5 | |
11534 | echo "configure: failed program was:" >&5 | |
21d1c967 | 11535 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11536 | rm -rf conftest* |
11537 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 11538 | fi |
a0b9e27f | 11539 | rm -f conftest* |
698dcdb6 | 11540 | fi |
a0b9e27f MB |
11541 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11542 | echo "$ac_t""yes" 1>&6 | |
11543 | for ac_func in regcomp | |
21d1c967 | 11544 | do |
a0b9e27f | 11545 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3c907f20 | 11546 | echo "configure:11547: checking for $ac_func" >&5 |
a0b9e27f MB |
11547 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11548 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11549 | else |
a0b9e27f | 11550 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 11551 | #line 11552 "configure" |
a0b9e27f MB |
11552 | #include "confdefs.h" |
11553 | /* System header to define __stub macros and hopefully few prototypes, | |
11554 | which can conflict with char $ac_func(); below. */ | |
21d1c967 GD |
11555 | #include <assert.h> |
11556 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11557 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11558 | builtin and then its argument prototype would still apply. */ |
11559 | char $ac_func(); | |
11560 | ||
11561 | int main() { | |
11562 | ||
21d1c967 GD |
11563 | /* The GNU C library defines this for functions which it implements |
11564 | to always fail with ENOSYS. Some functions are actually named | |
11565 | something starting with __ and the normal name is an alias. */ | |
11566 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11567 | choke me | |
11568 | #else | |
a0b9e27f | 11569 | $ac_func(); |
21d1c967 | 11570 | #endif |
90dd450c | 11571 | |
a0b9e27f MB |
11572 | ; return 0; } |
11573 | EOF | |
3c907f20 | 11574 | if { (eval echo configure:11575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11575 | rm -rf conftest* |
11576 | eval "ac_cv_func_$ac_func=yes" | |
11577 | else | |
11578 | echo "configure: failed program was:" >&5 | |
11579 | cat conftest.$ac_ext >&5 | |
11580 | rm -rf conftest* | |
11581 | eval "ac_cv_func_$ac_func=no" | |
11582 | fi | |
11583 | rm -f conftest* | |
11584 | fi | |
5c6fa7d2 | 11585 | |
a0b9e27f MB |
11586 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11587 | echo "$ac_t""yes" 1>&6 | |
11588 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11589 | cat >> confdefs.h <<EOF | |
11590 | #define $ac_tr_func 1 | |
11591 | EOF | |
11592 | ||
11593 | else | |
11594 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 11595 | fi |
21d1c967 GD |
11596 | done |
11597 | ||
a0b9e27f MB |
11598 | else |
11599 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11600 | fi |
11601 | ||
8284b0c5 | 11602 | |
21d1c967 GD |
11603 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
11604 | if test "$wxUSE_REGEX" = "sys" ; then | |
a0b9e27f | 11605 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11606 | else |
a0b9e27f | 11607 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11608 | wxUSE_REGEX=builtin |
11609 | fi | |
11610 | else | |
11611 | wxUSE_REGEX=sys | |
11612 | fi | |
ab9b9eab | 11613 | fi |
90dd450c | 11614 | |
21d1c967 GD |
11615 | if test "$wxUSE_REGEX" = "builtin" ; then |
11616 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 11617 | fi |
21d1c967 | 11618 | fi |
90dd450c | 11619 | |
8284b0c5 | 11620 | |
21d1c967 GD |
11621 | ZLIB_INCLUDE= |
11622 | ZLIB_LINK= | |
11623 | if test "$wxUSE_ZLIB" != "no" ; then | |
a0b9e27f | 11624 | cat >> confdefs.h <<\EOF |
21d1c967 | 11625 | #define wxUSE_ZLIB 1 |
a0b9e27f | 11626 | EOF |
21d1c967 | 11627 | |
8284b0c5 | 11628 | |
21d1c967 | 11629 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
11630 | if test "$USE_DARWIN" = 1; then |
11631 | system_zlib_h_ok="yes" | |
11632 | else | |
11633 | echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6 | |
3c907f20 | 11634 | echo "configure:11635: checking for zlib.h >= 1.1.4" >&5 |
d643b80e VZ |
11635 | if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then |
11636 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11637 | else | |
11638 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 11639 | unset ac_cv_header_zlib_h |
d775acfa | 11640 | |
d643b80e VZ |
11641 | else |
11642 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 11643 | #line 11644 "configure" |
d643b80e | 11644 | #include "confdefs.h" |
ef33c576 VZ |
11645 | |
11646 | #include <zlib.h> | |
d775acfa | 11647 | #include <stdio.h> |
d643b80e | 11648 | |
d775acfa VZ |
11649 | int main() |
11650 | { | |
11651 | FILE *f=fopen("conftestval", "w"); | |
11652 | if (!f) exit(1); | |
11653 | fprintf(f, "%s", | |
11654 | ZLIB_VERSION[0] == '1' && | |
11655 | (ZLIB_VERSION[2] > '1' || | |
11656 | (ZLIB_VERSION[2] == '1' && | |
11657 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
11658 | exit(0); | |
11659 | } | |
d643b80e | 11660 | |
d643b80e | 11661 | EOF |
3c907f20 | 11662 | if { (eval echo configure:11663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
d643b80e VZ |
11663 | then |
11664 | ac_cv_header_zlib_h=`cat conftestval` | |
11665 | else | |
11666 | echo "configure: failed program was:" >&5 | |
11667 | cat conftest.$ac_ext >&5 | |
11668 | rm -fr conftest* | |
11669 | ac_cv_header_zlib_h=no | |
11670 | fi | |
11671 | rm -fr conftest* | |
11672 | fi | |
11673 | ||
d775acfa | 11674 | |
d643b80e VZ |
11675 | fi |
11676 | ||
11677 | echo "$ac_t""$ac_cv_header_zlib_h" 1>&6 | |
89e6bf6d VZ |
11678 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
11679 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
3c907f20 | 11680 | echo "configure:11681: checking for zlib.h" >&5 |
89e6bf6d VZ |
11681 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11682 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11683 | else | |
11684 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 11685 | #line 11686 "configure" |
89e6bf6d VZ |
11686 | #include "confdefs.h" |
11687 | #include <zlib.h> | |
11688 | EOF | |
11689 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c907f20 | 11690 | { (eval echo configure:11691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
89e6bf6d VZ |
11691 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11692 | if test -z "$ac_err"; then | |
11693 | rm -rf conftest* | |
11694 | eval "ac_cv_header_$ac_safe=yes" | |
11695 | else | |
11696 | echo "$ac_err" >&5 | |
11697 | echo "configure: failed program was:" >&5 | |
11698 | cat conftest.$ac_ext >&5 | |
11699 | rm -rf conftest* | |
11700 | eval "ac_cv_header_$ac_safe=no" | |
11701 | fi | |
11702 | rm -f conftest* | |
11703 | fi | |
11704 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11705 | echo "$ac_t""yes" 1>&6 | |
11706 | : | |
11707 | else | |
11708 | echo "$ac_t""no" 1>&6 | |
11709 | fi | |
11710 | ||
d643b80e | 11711 | |
d775acfa VZ |
11712 | system_zlib_h_ok=$ac_cv_header_zlib_h |
11713 | fi | |
11714 | ||
11715 | if test "$system_zlib_h_ok" = "yes"; then | |
d643b80e | 11716 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
3c907f20 | 11717 | echo "configure:11718: checking for deflate in -lz" >&5 |
a0b9e27f MB |
11718 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
11719 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11720 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11721 | else |
a0b9e27f | 11722 | ac_save_LIBS="$LIBS" |
21d1c967 | 11723 | LIBS="-lz $LIBS" |
a0b9e27f | 11724 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 11725 | #line 11726 "configure" |
ab9b9eab | 11726 | #include "confdefs.h" |
21d1c967 GD |
11727 | /* Override any gcc2 internal prototype to avoid an error. */ |
11728 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11729 | builtin and then its argument prototype would still apply. */ |
11730 | char deflate(); | |
11731 | ||
11732 | int main() { | |
11733 | deflate() | |
11734 | ; return 0; } | |
11735 | EOF | |
3c907f20 | 11736 | if { (eval echo configure:11737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11737 | rm -rf conftest* |
11738 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11739 | else | |
11740 | echo "configure: failed program was:" >&5 | |
11741 | cat conftest.$ac_ext >&5 | |
11742 | rm -rf conftest* | |
11743 | eval "ac_cv_lib_$ac_lib_var=no" | |
90dd450c | 11744 | fi |
a0b9e27f MB |
11745 | rm -f conftest* |
11746 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 11747 | |
698dcdb6 | 11748 | fi |
a0b9e27f MB |
11749 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11750 | echo "$ac_t""yes" 1>&6 | |
11751 | ZLIB_LINK=" -lz" | |
11752 | else | |
11753 | echo "$ac_t""no" 1>&6 | |
11754 | fi | |
698dcdb6 | 11755 | |
d643b80e | 11756 | fi |
247f5006 | 11757 | |
21d1c967 GD |
11758 | if test "x$ZLIB_LINK" = "x" ; then |
11759 | if test "$wxUSE_ZLIB" = "sys" ; then | |
d643b80e | 11760 | { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11761 | else |
d643b80e | 11762 | echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2 |
21d1c967 GD |
11763 | wxUSE_ZLIB=builtin |
11764 | fi | |
11765 | else | |
11766 | wxUSE_ZLIB=sys | |
11767 | fi | |
11768 | fi | |
11769 | ||
11770 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11771 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11772 | fi | |
ab9b9eab VZ |
11773 | fi |
11774 | ||
8284b0c5 | 11775 | |
21d1c967 GD |
11776 | PNG_INCLUDE= |
11777 | PNG_LINK= | |
11778 | if test "$wxUSE_LIBPNG" != "no" ; then | |
a0b9e27f | 11779 | cat >> confdefs.h <<\EOF |
21d1c967 | 11780 | #define wxUSE_LIBPNG 1 |
a0b9e27f | 11781 | EOF |
90dd450c | 11782 | |
8284b0c5 | 11783 | |
21d1c967 | 11784 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
a0b9e27f | 11785 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11786 | wxUSE_LIBPNG=sys |
11787 | fi | |
90dd450c | 11788 | |
21d1c967 | 11789 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
a0b9e27f | 11790 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
21d1c967 GD |
11791 | wxUSE_LIBPNG=builtin |
11792 | fi | |
11793 | ||
11794 | if test "$wxUSE_MGL" != 1 ; then | |
11795 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
5d3f766d | 11796 | echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6 |
3c907f20 | 11797 | echo "configure:11798: checking for png.h > 0.90" >&5 |
5d3f766d VZ |
11798 | if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then |
11799 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11800 | else | |
11801 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 11802 | unset ac_cv_header_png_h |
5d3f766d VZ |
11803 | |
11804 | else | |
11805 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 11806 | #line 11807 "configure" |
5d3f766d | 11807 | #include "confdefs.h" |
ef33c576 VZ |
11808 | |
11809 | #include <png.h> | |
5d3f766d VZ |
11810 | #include <stdio.h> |
11811 | ||
11812 | int main() | |
11813 | { | |
11814 | FILE *f=fopen("conftestval", "w"); | |
11815 | if (!f) exit(1); | |
11816 | fprintf(f, "%s", | |
11817 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
11818 | exit(0); | |
11819 | } | |
11820 | ||
11821 | EOF | |
3c907f20 | 11822 | if { (eval echo configure:11823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5d3f766d VZ |
11823 | then |
11824 | ac_cv_header_png_h=`cat conftestval` | |
11825 | else | |
11826 | echo "configure: failed program was:" >&5 | |
11827 | cat conftest.$ac_ext >&5 | |
11828 | rm -fr conftest* | |
11829 | ac_cv_header_png_h=no | |
11830 | fi | |
11831 | rm -fr conftest* | |
11832 | fi | |
11833 | ||
11834 | ||
11835 | fi | |
11836 | ||
11837 | echo "$ac_t""$ac_cv_header_png_h" 1>&6 | |
89e6bf6d VZ |
11838 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
11839 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
3c907f20 | 11840 | echo "configure:11841: checking for png.h" >&5 |
89e6bf6d VZ |
11841 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11842 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11843 | else | |
11844 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 11845 | #line 11846 "configure" |
89e6bf6d VZ |
11846 | #include "confdefs.h" |
11847 | #include <png.h> | |
11848 | EOF | |
11849 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c907f20 | 11850 | { (eval echo configure:11851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
89e6bf6d VZ |
11851 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11852 | if test -z "$ac_err"; then | |
11853 | rm -rf conftest* | |
11854 | eval "ac_cv_header_$ac_safe=yes" | |
11855 | else | |
11856 | echo "$ac_err" >&5 | |
11857 | echo "configure: failed program was:" >&5 | |
11858 | cat conftest.$ac_ext >&5 | |
11859 | rm -rf conftest* | |
11860 | eval "ac_cv_header_$ac_safe=no" | |
11861 | fi | |
11862 | rm -f conftest* | |
11863 | fi | |
11864 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11865 | echo "$ac_t""yes" 1>&6 | |
11866 | : | |
11867 | else | |
11868 | echo "$ac_t""no" 1>&6 | |
11869 | fi | |
11870 | ||
5d3f766d VZ |
11871 | |
11872 | if test "$ac_cv_header_png_h" = "yes"; then | |
11873 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
3c907f20 | 11874 | echo "configure:11875: checking for png_check_sig in -lpng" >&5 |
a0b9e27f MB |
11875 | ac_lib_var=`echo png'_'png_check_sig | 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="-lpng -lz -lm $LIBS" |
a0b9e27f | 11881 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 11882 | #line 11883 "configure" |
90dd450c | 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 png_check_sig(); | |
90dd450c | 11888 | |
a0b9e27f MB |
11889 | int main() { |
11890 | png_check_sig() | |
11891 | ; return 0; } | |
11892 | EOF | |
3c907f20 | 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" | |
11901 | fi | |
11902 | rm -f conftest* | |
11903 | LIBS="$ac_save_LIBS" | |
247f5006 | 11904 | |
90dd450c | 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 | PNG_LINK=" -lpng" | |
11909 | else | |
11910 | echo "$ac_t""no" 1>&6 | |
11911 | fi | |
90dd450c | 11912 | |
5d3f766d | 11913 | fi |
247f5006 | 11914 | |
21d1c967 GD |
11915 | if test "x$PNG_LINK" = "x" ; then |
11916 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
0c98a14e | 11917 | { 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 | 11918 | else |
0c98a14e | 11919 | echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2 |
21d1c967 GD |
11920 | wxUSE_LIBPNG=builtin |
11921 | fi | |
11922 | else | |
2b5f62a0 | 11923 | wxUSE_LIBPNG=sys |
21d1c967 GD |
11924 | fi |
11925 | fi | |
11926 | fi | |
90dd450c | 11927 | |
21d1c967 GD |
11928 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
11929 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11930 | fi | |
90dd450c | 11931 | |
21d1c967 | 11932 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
11933 | fi |
11934 | ||
8284b0c5 | 11935 | |
21d1c967 GD |
11936 | JPEG_INCLUDE= |
11937 | JPEG_LINK= | |
11938 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
a0b9e27f | 11939 | cat >> confdefs.h <<\EOF |
21d1c967 | 11940 | #define wxUSE_LIBJPEG 1 |
a0b9e27f | 11941 | EOF |
90dd450c | 11942 | |
8284b0c5 | 11943 | |
21d1c967 | 11944 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
a0b9e27f | 11945 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11946 | wxUSE_LIBJPEG=sys |
11947 | fi | |
90dd450c | 11948 | |
21d1c967 GD |
11949 | if test "$wxUSE_MGL" != 1 ; then |
11950 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
a0b9e27f | 11951 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
3c907f20 | 11952 | echo "configure:11953: checking for jpeglib.h" >&5 |
a0b9e27f MB |
11953 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
11954 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11955 | else |
a0b9e27f | 11956 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 11957 | #line 11958 "configure" |
21d1c967 | 11958 | #include "confdefs.h" |
90dd450c | 11959 | |
21d1c967 GD |
11960 | #undef HAVE_STDLIB_H |
11961 | #include <stdio.h> | |
11962 | #include <jpeglib.h> | |
a0b9e27f MB |
11963 | |
11964 | int main() { | |
90dd450c | 11965 | |
a0b9e27f MB |
11966 | |
11967 | ; return 0; } | |
11968 | EOF | |
3c907f20 | 11969 | if { (eval echo configure:11970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11970 | rm -rf conftest* |
21d1c967 | 11971 | ac_cv_header_jpeglib_h=yes |
90dd450c | 11972 | else |
a0b9e27f MB |
11973 | echo "configure: failed program was:" >&5 |
11974 | cat conftest.$ac_ext >&5 | |
11975 | rm -rf conftest* | |
11976 | ac_cv_header_jpeglib_h=no | |
11977 | ||
90dd450c | 11978 | fi |
a0b9e27f MB |
11979 | rm -f conftest* |
11980 | ||
90dd450c VZ |
11981 | fi |
11982 | ||
a0b9e27f | 11983 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
90dd450c | 11984 | |
21d1c967 | 11985 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
a0b9e27f | 11986 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 |
3c907f20 | 11987 | echo "configure:11988: checking for jpeg_read_header in -ljpeg" >&5 |
a0b9e27f MB |
11988 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
11989 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11990 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11991 | else |
a0b9e27f | 11992 | ac_save_LIBS="$LIBS" |
21d1c967 | 11993 | LIBS="-ljpeg $LIBS" |
a0b9e27f | 11994 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 11995 | #line 11996 "configure" |
21d1c967 GD |
11996 | #include "confdefs.h" |
11997 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11998 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11999 | builtin and then its argument prototype would still apply. */ |
12000 | char jpeg_read_header(); | |
12001 | ||
12002 | int main() { | |
12003 | jpeg_read_header() | |
12004 | ; return 0; } | |
12005 | EOF | |
3c907f20 | 12006 | if { (eval echo configure:12007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12007 | rm -rf conftest* |
12008 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12009 | else | |
12010 | echo "configure: failed program was:" >&5 | |
12011 | cat conftest.$ac_ext >&5 | |
12012 | rm -rf conftest* | |
12013 | eval "ac_cv_lib_$ac_lib_var=no" | |
12014 | fi | |
12015 | rm -f conftest* | |
12016 | LIBS="$ac_save_LIBS" | |
12017 | ||
12018 | fi | |
12019 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12020 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 12021 | JPEG_LINK=" -ljpeg" |
a0b9e27f MB |
12022 | else |
12023 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
12024 | fi |
12025 | ||
21d1c967 | 12026 | fi |
90dd450c | 12027 | |
21d1c967 GD |
12028 | if test "x$JPEG_LINK" = "x" ; then |
12029 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
a0b9e27f | 12030 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 12031 | else |
a0b9e27f | 12032 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
12033 | wxUSE_LIBJPEG=builtin |
12034 | fi | |
12035 | else | |
12036 | wxUSE_LIBJPEG=sys | |
12037 | fi | |
12038 | fi | |
12039 | fi | |
90dd450c | 12040 | |
21d1c967 GD |
12041 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
12042 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
12043 | fi | |
12044 | fi | |
90dd450c | 12045 | |
8284b0c5 | 12046 | |
21d1c967 GD |
12047 | TIFF_INCLUDE= |
12048 | TIFF_LINK= | |
2b5f62a0 | 12049 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 12050 | if test "$wxUSE_LIBTIFF" != "no" ; then |
a0b9e27f | 12051 | cat >> confdefs.h <<\EOF |
21d1c967 | 12052 | #define wxUSE_LIBTIFF 1 |
a0b9e27f | 12053 | EOF |
21d1c967 | 12054 | |
8284b0c5 | 12055 | |
21d1c967 | 12056 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
12057 | if test "$wxUSE_LIBJPEG" = "sys"; then |
12058 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
12059 | fi | |
12060 | if test "$wxUSE_ZLIB" = "sys"; then | |
12061 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
12062 | fi | |
a0b9e27f MB |
12063 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
12064 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
3c907f20 | 12065 | echo "configure:12066: checking for tiffio.h" >&5 |
a0b9e27f MB |
12066 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12067 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12068 | else | |
12069 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 12070 | #line 12071 "configure" |
247f5006 VZ |
12071 | #include "confdefs.h" |
12072 | #include <tiffio.h> | |
a0b9e27f MB |
12073 | EOF |
12074 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c907f20 | 12075 | { (eval echo configure:12076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12076 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12077 | if test -z "$ac_err"; then | |
12078 | rm -rf conftest* | |
12079 | eval "ac_cv_header_$ac_safe=yes" | |
12080 | else | |
12081 | echo "$ac_err" >&5 | |
12082 | echo "configure: failed program was:" >&5 | |
21d1c967 | 12083 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12084 | rm -rf conftest* |
12085 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 12086 | fi |
a0b9e27f | 12087 | rm -f conftest* |
21d1c967 | 12088 | fi |
a0b9e27f MB |
12089 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12090 | echo "$ac_t""yes" 1>&6 | |
12091 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
3c907f20 | 12092 | echo "configure:12093: checking for TIFFError in -ltiff" >&5 |
a0b9e27f MB |
12093 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
12094 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12095 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 12096 | else |
a0b9e27f | 12097 | ac_save_LIBS="$LIBS" |
2b5f62a0 | 12098 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
a0b9e27f | 12099 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 12100 | #line 12101 "configure" |
ab9b9eab VZ |
12101 | #include "confdefs.h" |
12102 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12103 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
12104 | builtin and then its argument prototype would still apply. */ |
12105 | char TIFFError(); | |
ab9b9eab | 12106 | |
a0b9e27f MB |
12107 | int main() { |
12108 | TIFFError() | |
12109 | ; return 0; } | |
12110 | EOF | |
3c907f20 | 12111 | if { (eval echo configure:12112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12112 | rm -rf conftest* |
12113 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12114 | else | |
12115 | echo "configure: failed program was:" >&5 | |
12116 | cat conftest.$ac_ext >&5 | |
12117 | rm -rf conftest* | |
12118 | eval "ac_cv_lib_$ac_lib_var=no" | |
12119 | fi | |
12120 | rm -f conftest* | |
12121 | LIBS="$ac_save_LIBS" | |
247f5006 | 12122 | |
21d1c967 | 12123 | fi |
a0b9e27f MB |
12124 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
12125 | echo "$ac_t""yes" 1>&6 | |
12126 | TIFF_LINK=" -ltiff" | |
12127 | else | |
12128 | echo "$ac_t""no" 1>&6 | |
12129 | fi | |
cd6d6d5b | 12130 | |
a0b9e27f MB |
12131 | |
12132 | else | |
12133 | echo "$ac_t""no" 1>&6 | |
12134 | fi | |
8284b0c5 | 12135 | |
247f5006 | 12136 | |
21d1c967 GD |
12137 | if test "x$TIFF_LINK" = "x" ; then |
12138 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
a0b9e27f | 12139 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } |
90dd450c | 12140 | else |
a0b9e27f | 12141 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
21d1c967 | 12142 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 12143 | fi |
d8356fa3 | 12144 | else |
21d1c967 | 12145 | wxUSE_LIBTIFF=sys |
d8356fa3 | 12146 | fi |
21d1c967 | 12147 | fi |
d8356fa3 | 12148 | |
21d1c967 GD |
12149 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
12150 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 12151 | fi |
21d1c967 | 12152 | fi |
10f2d63a | 12153 | |
8284b0c5 | 12154 | |
21d1c967 | 12155 | AFMINSTALL= |
2b5f62a0 | 12156 | WIN32INSTALL= |
90dd450c | 12157 | |
21d1c967 GD |
12158 | TOOLKIT= |
12159 | TOOLKIT_INCLUDE= | |
12160 | WIDGET_SET= | |
12161 | ||
12162 | if test "$USE_WIN32" = 1 ; then | |
a0b9e27f | 12163 | for ac_hdr in w32api.h |
21d1c967 | 12164 | do |
a0b9e27f MB |
12165 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12166 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c907f20 | 12167 | echo "configure:12168: checking for $ac_hdr" >&5 |
a0b9e27f MB |
12168 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12169 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12170 | else | |
12171 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 12172 | #line 12173 "configure" |
247f5006 | 12173 | #include "confdefs.h" |
a0b9e27f MB |
12174 | #include <$ac_hdr> |
12175 | EOF | |
12176 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c907f20 | 12177 | { (eval echo configure:12178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12178 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12179 | if test -z "$ac_err"; then | |
12180 | rm -rf conftest* | |
12181 | eval "ac_cv_header_$ac_safe=yes" | |
12182 | else | |
12183 | echo "$ac_err" >&5 | |
12184 | echo "configure: failed program was:" >&5 | |
f79bd02d | 12185 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12186 | rm -rf conftest* |
12187 | eval "ac_cv_header_$ac_safe=no" | |
f79bd02d | 12188 | fi |
a0b9e27f | 12189 | rm -f conftest* |
21d1c967 | 12190 | fi |
a0b9e27f MB |
12191 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12192 | echo "$ac_t""yes" 1>&6 | |
12193 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12194 | cat >> confdefs.h <<EOF | |
12195 | #define $ac_tr_hdr 1 | |
12196 | EOF | |
12197 | ||
12198 | else | |
12199 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
12200 | fi |
12201 | done | |
f79bd02d | 12202 | |
a0b9e27f MB |
12203 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
12204 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
3c907f20 | 12205 | echo "configure:12206: checking for windows.h" >&5 |
a0b9e27f MB |
12206 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12207 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12208 | else |
a0b9e27f | 12209 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 12210 | #line 12211 "configure" |
247f5006 VZ |
12211 | #include "confdefs.h" |
12212 | #include <windows.h> | |
a0b9e27f MB |
12213 | EOF |
12214 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c907f20 | 12215 | { (eval echo configure:12216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12216 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12217 | if test -z "$ac_err"; then | |
12218 | rm -rf conftest* | |
12219 | eval "ac_cv_header_$ac_safe=yes" | |
12220 | else | |
12221 | echo "$ac_err" >&5 | |
12222 | echo "configure: failed program was:" >&5 | |
90dd450c | 12223 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12224 | rm -rf conftest* |
12225 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 12226 | fi |
a0b9e27f | 12227 | rm -f conftest* |
90dd450c | 12228 | fi |
a0b9e27f MB |
12229 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12230 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 12231 | : |
90dd450c | 12232 | else |
a0b9e27f | 12233 | echo "$ac_t""no" 1>&6 |
21d1c967 | 12234 | |
a0b9e27f MB |
12235 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
12236 | ||
5c6fa7d2 | 12237 | fi |
7b4a847f | 12238 | |
5c6fa7d2 | 12239 | |
a0b9e27f | 12240 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
3c907f20 | 12241 | echo "configure:12242: checking if w32api has good enough MSIE support" >&5 |
a0b9e27f MB |
12242 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
12243 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 12244 | else |
a0b9e27f MB |
12245 | |
12246 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 12247 | #line 12248 "configure" |
f79bd02d | 12248 | #include "confdefs.h" |
21d1c967 | 12249 | #include <w32api.h> |
a0b9e27f | 12250 | int main() { |
f79bd02d | 12251 | |
21d1c967 GD |
12252 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
12253 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
12254 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
12255 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
12256 | ||
12257 | #if !wxCHECK_W32API_VERSION(1,1) | |
12258 | #error You need w32api 1.1 or newer | |
12259 | #endif | |
a0b9e27f MB |
12260 | |
12261 | ; return 0; } | |
12262 | EOF | |
3c907f20 | 12263 | if { (eval echo configure:12264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
12264 | rm -rf conftest* |
12265 | ||
21d1c967 | 12266 | wx_cv_w32api_win32_ie=yes |
a0b9e27f | 12267 | |
f79bd02d | 12268 | else |
a0b9e27f MB |
12269 | echo "configure: failed program was:" >&5 |
12270 | cat conftest.$ac_ext >&5 | |
12271 | rm -rf conftest* | |
12272 | ||
21d1c967 | 12273 | wx_cv_w32api_win32_ie=no |
a0b9e27f | 12274 | |
5c6fa7d2 | 12275 | fi |
a0b9e27f MB |
12276 | rm -f conftest* |
12277 | ||
247f5006 | 12278 | fi |
a0b9e27f MB |
12279 | |
12280 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 | |
21d1c967 GD |
12281 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then |
12282 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
12283 | fi | |
f79bd02d | 12284 | |
21d1c967 GD |
12285 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
12286 | ||
7bb2947d MB |
12287 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then |
12288 | LIBS="$LIBS -loleacc" | |
12289 | fi | |
12290 | ||
21d1c967 GD |
12291 | case "${host}" in |
12292 | *-*-cygwin* ) | |
12293 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
12294 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 12295 | esac |
f79bd02d | 12296 | |
8647bec6 RG |
12297 | if test "$wxUSE_ODBC" = "sys" ; then |
12298 | wxUSE_ODBC = "yes" | |
21d1c967 | 12299 | fi |
8647bec6 RG |
12300 | if test "$wxUSE_ODBC" = "yes" ; then |
12301 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
12302 | cat >> confdefs.h <<\EOF | |
12303 | #define wxUSE_ODBC 1 | |
12304 | EOF | |
f79bd02d | 12305 | |
8647bec6 RG |
12306 | fi |
12307 | ||
21d1c967 GD |
12308 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
12309 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
12310 | |
12311 | WIN32INSTALL=win32install | |
f79bd02d | 12312 | fi |
f79bd02d | 12313 | |
b2fee376 | 12314 | if test "$USE_DARWIN" = 1; then |
50bcbd3d | 12315 | if test "$wxUSE_PRECOMP" = "yes"; then |
b2fee376 GD |
12316 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
12317 | else | |
12318 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
12319 | fi | |
12320 | fi | |
12321 | ||
21d1c967 GD |
12322 | if test "$wxUSE_GUI" = "yes"; then |
12323 | USE_GUI=1 | |
f79bd02d | 12324 | |
21d1c967 | 12325 | GUI_TK_LIBRARY= |
f79bd02d | 12326 | |
21d1c967 GD |
12327 | WXGTK12= |
12328 | WXGTK127= | |
12329 | WXGTK20= | |
f79bd02d | 12330 | |
21d1c967 GD |
12331 | if test "$wxUSE_MSW" = 1 ; then |
12332 | TOOLKIT=MSW | |
12333 | GUIDIST=MSW_DIST | |
f79bd02d | 12334 | |
89e6bf6d | 12335 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" |
f79bd02d JS |
12336 | fi |
12337 | ||
21d1c967 | 12338 | if test "$wxUSE_GTK" = 1; then |
a0b9e27f | 12339 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
3c907f20 | 12340 | echo "configure:12341: checking for GTK+ version" >&5 |
21d1c967 GD |
12341 | |
12342 | gtk_version_cached=1 | |
a0b9e27f MB |
12343 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then |
12344 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f79bd02d | 12345 | else |
a0b9e27f | 12346 | |
21d1c967 | 12347 | gtk_version_cached=0 |
a0b9e27f | 12348 | echo "$ac_t""" 1>&6 |
f79bd02d | 12349 | |
21d1c967 GD |
12350 | GTK_MODULES= |
12351 | if test "$wxUSE_THREADS" = "yes"; then | |
12352 | GTK_MODULES=gthread | |
12353 | fi | |
f79bd02d | 12354 | |
2b5f62a0 | 12355 | wx_cv_lib_gtk= |
21d1c967 GD |
12356 | if test "x$wxUSE_GTK2" = "xyes"; then |
12357 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12358 | if test "${enable_gtktest+set}" = set; then | |
12359 | enableval="$enable_gtktest" | |
a0b9e27f | 12360 | : |
f79bd02d | 12361 | else |
21d1c967 | 12362 | enable_gtktest=yes |
a0b9e27f MB |
12363 | fi |
12364 | ||
f79bd02d | 12365 | |
21d1c967 GD |
12366 | pkg_config_args=gtk+-2.0 |
12367 | for module in . $GTK_MODULES | |
12368 | do | |
12369 | case "$module" in | |
a0b9e27f | 12370 | gthread) |
21d1c967 GD |
12371 | pkg_config_args="$pkg_config_args gthread-2.0" |
12372 | ;; | |
12373 | esac | |
12374 | done | |
12375 | ||
12376 | no_gtk="" | |
f79bd02d | 12377 | |
21d1c967 GD |
12378 | # Extract the first word of "pkg-config", so it can be a program name with args. |
12379 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 12380 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3c907f20 | 12381 | echo "configure:12382: checking for $ac_word" >&5 |
a0b9e27f MB |
12382 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
12383 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12384 | else |
a0b9e27f MB |
12385 | case "$PKG_CONFIG" in |
12386 | /*) | |
21d1c967 GD |
12387 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12388 | ;; | |
a0b9e27f MB |
12389 | ?:/*) |
12390 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
12391 | ;; | |
21d1c967 | 12392 | *) |
a0b9e27f MB |
12393 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12394 | ac_dummy="$PATH" | |
12395 | for ac_dir in $ac_dummy; do | |
12396 | test -z "$ac_dir" && ac_dir=. | |
12397 | if test -f $ac_dir/$ac_word; then | |
12398 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
12399 | break | |
12400 | fi | |
12401 | done | |
12402 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12403 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12404 | ;; | |
12405 | esac | |
f79bd02d | 12406 | fi |
a0b9e27f | 12407 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
21d1c967 | 12408 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 12409 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f79bd02d | 12410 | else |
a0b9e27f | 12411 | echo "$ac_t""no" 1>&6 |
f79bd02d JS |
12412 | fi |
12413 | ||
8284b0c5 | 12414 | |
21d1c967 GD |
12415 | if test x$PKG_CONFIG != xno ; then |
12416 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
12417 | : | |
12418 | else | |
12419 | echo *** pkg-config too old; version 0.7 or better required. | |
12420 | no_gtk=yes | |
12421 | PKG_CONFIG=no | |
12422 | fi | |
12423 | else | |
12424 | no_gtk=yes | |
12425 | fi | |
f79bd02d | 12426 | |
21d1c967 | 12427 | min_gtk_version=2.0.0 |
a0b9e27f | 12428 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 |
3c907f20 | 12429 | echo "configure:12430: checking for GTK+ - version >= $min_gtk_version" >&5 |
f79bd02d | 12430 | |
21d1c967 GD |
12431 | if test x$PKG_CONFIG != xno ; then |
12432 | ## don't try to run the test against uninstalled libtool libs | |
12433 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
12434 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
12435 | enable_gtktest=no | |
12436 | fi | |
f79bd02d | 12437 | |
21d1c967 GD |
12438 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
12439 | : | |
12440 | else | |
12441 | no_gtk=yes | |
12442 | fi | |
12443 | fi | |
f79bd02d | 12444 | |
21d1c967 GD |
12445 | if test x"$no_gtk" = x ; then |
12446 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
12447 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
12448 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12449 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12450 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12451 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12452 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12453 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12454 | if test "x$enable_gtktest" = "xyes" ; then | |
12455 | ac_save_CFLAGS="$CFLAGS" | |
12456 | ac_save_LIBS="$LIBS" | |
12457 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12458 | LIBS="$GTK_LIBS $LIBS" | |
12459 | rm -f conf.gtktest | |
12460 | if test "$cross_compiling" = yes; then | |
12461 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12462 | else |
a0b9e27f | 12463 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 12464 | #line 12465 "configure" |
f79bd02d | 12465 | #include "confdefs.h" |
f79bd02d | 12466 | |
21d1c967 GD |
12467 | #include <gtk/gtk.h> |
12468 | #include <stdio.h> | |
12469 | #include <stdlib.h> | |
f79bd02d | 12470 | |
a0b9e27f | 12471 | int |
21d1c967 GD |
12472 | main () |
12473 | { | |
12474 | int major, minor, micro; | |
12475 | char *tmp_version; | |
f79bd02d | 12476 | |
21d1c967 | 12477 | system ("touch conf.gtktest"); |
f79bd02d | 12478 | |
21d1c967 GD |
12479 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
12480 | tmp_version = g_strdup("$min_gtk_version"); | |
12481 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12482 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12483 | exit(1); | |
12484 | } | |
f79bd02d | 12485 | |
21d1c967 GD |
12486 | if ((gtk_major_version != $gtk_config_major_version) || |
12487 | (gtk_minor_version != $gtk_config_minor_version) || | |
12488 | (gtk_micro_version != $gtk_config_micro_version)) | |
12489 | { | |
a0b9e27f | 12490 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12491 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12492 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12493 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
12494 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12495 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12496 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12497 | printf("*** required on your system.\n"); | |
12498 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
12499 | printf("*** to point to the correct configuration files\n"); | |
a0b9e27f | 12500 | } |
21d1c967 GD |
12501 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
12502 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12503 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12504 | { | |
12505 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12506 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12507 | printf("*** library (version %d.%d.%d)\n", | |
12508 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12509 | } | |
12510 | else | |
12511 | { | |
12512 | if ((gtk_major_version > major) || | |
12513 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12514 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12515 | { | |
12516 | return 0; | |
12517 | } | |
12518 | else | |
12519 | { | |
12520 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12521 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12522 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12523 | major, minor, micro); | |
12524 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12525 | printf("***\n"); | |
12526 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12527 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
12528 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12529 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
12530 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
12531 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12532 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12533 | } | |
12534 | } | |
12535 | return 1; | |
12536 | } | |
f79bd02d | 12537 | |
a0b9e27f | 12538 | EOF |
3c907f20 | 12539 | if { (eval echo configure:12540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12540 | then |
21d1c967 | 12541 | : |
f79bd02d | 12542 | else |
a0b9e27f MB |
12543 | echo "configure: failed program was:" >&5 |
12544 | cat conftest.$ac_ext >&5 | |
12545 | rm -fr conftest* | |
12546 | no_gtk=yes | |
f79bd02d | 12547 | fi |
a0b9e27f | 12548 | rm -fr conftest* |
f79bd02d | 12549 | fi |
a0b9e27f | 12550 | |
21d1c967 GD |
12551 | CFLAGS="$ac_save_CFLAGS" |
12552 | LIBS="$ac_save_LIBS" | |
12553 | fi | |
12554 | fi | |
12555 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12556 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
12557 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 12558 | else |
a0b9e27f | 12559 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12560 | if test "$PKG_CONFIG" = "no" ; then |
12561 | echo "*** A new enough version of pkg-config was not found." | |
12562 | echo "*** See http://pkgconfig.sourceforge.net" | |
12563 | else | |
12564 | if test -f conf.gtktest ; then | |
12565 | : | |
12566 | else | |
12567 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
12568 | ac_save_CFLAGS="$CFLAGS" |
12569 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
12570 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
12571 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12572 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 12573 | #line 12574 "configure" |
f79bd02d | 12574 | #include "confdefs.h" |
21d1c967 GD |
12575 | |
12576 | #include <gtk/gtk.h> | |
12577 | #include <stdio.h> | |
f79bd02d | 12578 | |
a0b9e27f MB |
12579 | int main() { |
12580 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12581 | ; return 0; } | |
12582 | EOF | |
3c907f20 | 12583 | if { (eval echo configure:12584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12584 | rm -rf conftest* |
21d1c967 GD |
12585 | echo "*** The test program compiled, but did not run. This usually means" |
12586 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
12587 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
12588 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12589 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12590 | echo "*** is required on your system" | |
12591 | echo "***" | |
12592 | echo "*** If you have an old version installed, it is best to remove it, although" | |
a0b9e27f | 12593 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 12594 | else |
a0b9e27f MB |
12595 | echo "configure: failed program was:" >&5 |
12596 | cat conftest.$ac_ext >&5 | |
12597 | rm -rf conftest* | |
12598 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 12599 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 12600 | fi |
a0b9e27f | 12601 | rm -f conftest* |
21d1c967 GD |
12602 | CFLAGS="$ac_save_CFLAGS" |
12603 | LIBS="$ac_save_LIBS" | |
12604 | fi | |
12605 | fi | |
12606 | GTK_CFLAGS="" | |
12607 | GTK_LIBS="" | |
12608 | : | |
12609 | fi | |
a0b9e27f MB |
12610 | |
12611 | ||
21d1c967 | 12612 | rm -f conf.gtktest |
f79bd02d | 12613 | |
2b5f62a0 | 12614 | else |
a0b9e27f | 12615 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12616 | if test "${with_gtk_prefix+set}" = set; then |
12617 | withval="$with_gtk_prefix" | |
12618 | gtk_config_prefix="$withval" | |
12619 | else | |
12620 | gtk_config_prefix="" | |
a0b9e27f | 12621 | fi |
f79bd02d | 12622 | |
21d1c967 GD |
12623 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12624 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12625 | withval="$with_gtk_exec_prefix" | |
12626 | gtk_config_exec_prefix="$withval" | |
12627 | else | |
12628 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12629 | fi |
12630 | ||
21d1c967 GD |
12631 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12632 | if test "${enable_gtktest+set}" = set; then | |
12633 | enableval="$enable_gtktest" | |
a0b9e27f | 12634 | : |
21d1c967 GD |
12635 | else |
12636 | enable_gtktest=yes | |
a0b9e27f MB |
12637 | fi |
12638 | ||
21d1c967 GD |
12639 | |
12640 | for module in . $GTK_MODULES | |
12641 | do | |
12642 | case "$module" in | |
a0b9e27f | 12643 | gthread) |
21d1c967 GD |
12644 | gtk_config_args="$gtk_config_args gthread" |
12645 | ;; | |
12646 | esac | |
12647 | done | |
12648 | ||
12649 | if test x$gtk_config_exec_prefix != x ; then | |
12650 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12651 | if test x${GTK_CONFIG+set} != xset ; then | |
12652 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12653 | fi | |
12654 | fi | |
12655 | if test x$gtk_config_prefix != x ; then | |
12656 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12657 | if test x${GTK_CONFIG+set} != xset ; then | |
12658 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12659 | fi | |
12660 | fi | |
12661 | ||
12662 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12663 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12664 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3c907f20 | 12665 | echo "configure:12666: checking for $ac_word" >&5 |
a0b9e27f MB |
12666 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12667 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12668 | else |
a0b9e27f MB |
12669 | case "$GTK_CONFIG" in |
12670 | /*) | |
21d1c967 GD |
12671 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12672 | ;; | |
a0b9e27f MB |
12673 | ?:/*) |
12674 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12675 | ;; | |
21d1c967 | 12676 | *) |
a0b9e27f MB |
12677 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12678 | ac_dummy="$PATH" | |
12679 | for ac_dir in $ac_dummy; do | |
12680 | test -z "$ac_dir" && ac_dir=. | |
12681 | if test -f $ac_dir/$ac_word; then | |
12682 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12683 | break | |
12684 | fi | |
12685 | done | |
12686 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12687 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12688 | ;; | |
12689 | esac | |
12690 | fi | |
a0b9e27f | 12691 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12692 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12693 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12694 | else |
a0b9e27f | 12695 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12696 | fi |
12697 | ||
12698 | min_gtk_version=1.2.7 | |
a0b9e27f | 12699 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
3c907f20 | 12700 | echo "configure:12701: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12701 | no_gtk="" |
12702 | if test "$GTK_CONFIG" = "no" ; then | |
12703 | no_gtk=yes | |
12704 | else | |
12705 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12706 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12707 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12708 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12709 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12710 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12711 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12712 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12713 | if test "x$enable_gtktest" = "xyes" ; then | |
12714 | ac_save_CFLAGS="$CFLAGS" | |
12715 | ac_save_LIBS="$LIBS" | |
12716 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12717 | LIBS="$GTK_LIBS $LIBS" | |
12718 | rm -f conf.gtktest | |
12719 | if test "$cross_compiling" = yes; then | |
12720 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12721 | else |
a0b9e27f | 12722 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 12723 | #line 12724 "configure" |
f79bd02d JS |
12724 | #include "confdefs.h" |
12725 | ||
21d1c967 GD |
12726 | #include <gtk/gtk.h> |
12727 | #include <stdio.h> | |
12728 | #include <stdlib.h> | |
f79bd02d | 12729 | |
a0b9e27f | 12730 | int |
21d1c967 GD |
12731 | main () |
12732 | { | |
12733 | int major, minor, micro; | |
12734 | char *tmp_version; | |
12735 | ||
12736 | system ("touch conf.gtktest"); | |
12737 | ||
12738 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12739 | tmp_version = g_strdup("$min_gtk_version"); | |
12740 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12741 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12742 | exit(1); | |
12743 | } | |
90dd450c | 12744 | |
21d1c967 GD |
12745 | if ((gtk_major_version != $gtk_config_major_version) || |
12746 | (gtk_minor_version != $gtk_config_minor_version) || | |
12747 | (gtk_micro_version != $gtk_config_micro_version)) | |
12748 | { | |
a0b9e27f | 12749 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12750 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12751 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12752 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12753 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12754 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12755 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12756 | printf("*** required on your system.\n"); | |
12757 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12758 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12759 | printf("*** before re-running configure\n"); | |
a0b9e27f | 12760 | } |
21d1c967 GD |
12761 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12762 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12763 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12764 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12765 | { | |
12766 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12767 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12768 | printf("*** library (version %d.%d.%d)\n", | |
12769 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12770 | } | |
12771 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12772 | else | |
12773 | { | |
12774 | if ((gtk_major_version > major) || | |
12775 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12776 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12777 | { | |
12778 | return 0; | |
12779 | } | |
12780 | else | |
12781 | { | |
12782 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12783 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12784 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12785 | major, minor, micro); | |
12786 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12787 | printf("***\n"); | |
12788 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12789 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12790 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12791 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12792 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12793 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12794 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12795 | } | |
12796 | } | |
12797 | return 1; | |
12798 | } | |
12799 | ||
a0b9e27f | 12800 | EOF |
3c907f20 | 12801 | if { (eval echo configure:12802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12802 | then |
21d1c967 GD |
12803 | : |
12804 | else | |
a0b9e27f MB |
12805 | echo "configure: failed program was:" >&5 |
12806 | cat conftest.$ac_ext >&5 | |
12807 | rm -fr conftest* | |
12808 | no_gtk=yes | |
21d1c967 | 12809 | fi |
a0b9e27f | 12810 | rm -fr conftest* |
21d1c967 | 12811 | fi |
a0b9e27f | 12812 | |
21d1c967 GD |
12813 | CFLAGS="$ac_save_CFLAGS" |
12814 | LIBS="$ac_save_LIBS" | |
12815 | fi | |
12816 | fi | |
12817 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12818 | echo "$ac_t""yes" 1>&6 |
12819 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 12820 | else |
a0b9e27f | 12821 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12822 | if test "$GTK_CONFIG" = "no" ; then |
12823 | echo "*** The gtk-config script installed by GTK could not be found" | |
12824 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12825 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12826 | echo "*** full path to gtk-config." | |
12827 | else | |
12828 | if test -f conf.gtktest ; then | |
12829 | : | |
12830 | else | |
12831 | echo "*** Could not run GTK test program, checking why..." | |
12832 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12833 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12834 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 12835 | #line 12836 "configure" |
21d1c967 GD |
12836 | #include "confdefs.h" |
12837 | ||
12838 | #include <gtk/gtk.h> | |
12839 | #include <stdio.h> | |
12840 | ||
a0b9e27f MB |
12841 | int main() { |
12842 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12843 | ; return 0; } | |
12844 | EOF | |
3c907f20 | 12845 | if { (eval echo configure:12846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12846 | rm -rf conftest* |
21d1c967 GD |
12847 | echo "*** The test program compiled, but did not run. This usually means" |
12848 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12849 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12850 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12851 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12852 | echo "*** is required on your system" | |
12853 | echo "***" | |
12854 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12855 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12856 | echo "***" | |
12857 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12858 | echo "*** came with the system with the command" | |
12859 | echo "***" | |
a0b9e27f | 12860 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 12861 | else |
a0b9e27f MB |
12862 | echo "configure: failed program was:" >&5 |
12863 | cat conftest.$ac_ext >&5 | |
12864 | rm -rf conftest* | |
12865 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
12866 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
12867 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 12868 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 12869 | fi |
a0b9e27f | 12870 | rm -f conftest* |
21d1c967 GD |
12871 | CFLAGS="$ac_save_CFLAGS" |
12872 | LIBS="$ac_save_LIBS" | |
12873 | fi | |
12874 | fi | |
12875 | GTK_CFLAGS="" | |
12876 | GTK_LIBS="" | |
12877 | : | |
12878 | fi | |
a0b9e27f MB |
12879 | |
12880 | ||
21d1c967 GD |
12881 | rm -f conf.gtktest |
12882 | ||
21d1c967 | 12883 | |
2b5f62a0 VZ |
12884 | if test -z "$wx_cv_lib_gtk"; then |
12885 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
12886 | if test "${with_gtk_prefix+set}" = set; then |
12887 | withval="$with_gtk_prefix" | |
12888 | gtk_config_prefix="$withval" | |
12889 | else | |
12890 | gtk_config_prefix="" | |
a0b9e27f | 12891 | fi |
f79bd02d | 12892 | |
21d1c967 GD |
12893 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12894 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12895 | withval="$with_gtk_exec_prefix" | |
12896 | gtk_config_exec_prefix="$withval" | |
12897 | else | |
12898 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12899 | fi |
12900 | ||
21d1c967 GD |
12901 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12902 | if test "${enable_gtktest+set}" = set; then | |
12903 | enableval="$enable_gtktest" | |
a0b9e27f | 12904 | : |
90dd450c | 12905 | else |
21d1c967 | 12906 | enable_gtktest=yes |
a0b9e27f MB |
12907 | fi |
12908 | ||
21d1c967 GD |
12909 | |
12910 | for module in . $GTK_MODULES | |
12911 | do | |
12912 | case "$module" in | |
a0b9e27f | 12913 | gthread) |
21d1c967 GD |
12914 | gtk_config_args="$gtk_config_args gthread" |
12915 | ;; | |
12916 | esac | |
12917 | done | |
12918 | ||
12919 | if test x$gtk_config_exec_prefix != x ; then | |
12920 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12921 | if test x${GTK_CONFIG+set} != xset ; then | |
12922 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12923 | fi | |
12924 | fi | |
12925 | if test x$gtk_config_prefix != x ; then | |
12926 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12927 | if test x${GTK_CONFIG+set} != xset ; then | |
12928 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12929 | fi | |
12930 | fi | |
12931 | ||
12932 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12933 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12934 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3c907f20 | 12935 | echo "configure:12936: checking for $ac_word" >&5 |
a0b9e27f MB |
12936 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12937 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 12938 | else |
a0b9e27f MB |
12939 | case "$GTK_CONFIG" in |
12940 | /*) | |
21d1c967 GD |
12941 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12942 | ;; | |
a0b9e27f MB |
12943 | ?:/*) |
12944 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12945 | ;; | |
21d1c967 | 12946 | *) |
a0b9e27f MB |
12947 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12948 | ac_dummy="$PATH" | |
12949 | for ac_dir in $ac_dummy; do | |
12950 | test -z "$ac_dir" && ac_dir=. | |
12951 | if test -f $ac_dir/$ac_word; then | |
12952 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12953 | break | |
12954 | fi | |
12955 | done | |
12956 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12957 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12958 | ;; | |
12959 | esac | |
12960 | fi | |
a0b9e27f | 12961 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12962 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12963 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12964 | else |
a0b9e27f | 12965 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12966 | fi |
12967 | ||
12968 | min_gtk_version=1.2.3 | |
a0b9e27f | 12969 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
3c907f20 | 12970 | echo "configure:12971: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12971 | no_gtk="" |
12972 | if test "$GTK_CONFIG" = "no" ; then | |
12973 | no_gtk=yes | |
12974 | else | |
12975 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12976 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12977 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12978 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12979 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12980 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12981 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12982 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12983 | if test "x$enable_gtktest" = "xyes" ; then | |
12984 | ac_save_CFLAGS="$CFLAGS" | |
12985 | ac_save_LIBS="$LIBS" | |
12986 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12987 | LIBS="$GTK_LIBS $LIBS" | |
12988 | rm -f conf.gtktest | |
12989 | if test "$cross_compiling" = yes; then | |
12990 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12991 | else | |
a0b9e27f | 12992 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 12993 | #line 12994 "configure" |
f79bd02d | 12994 | #include "confdefs.h" |
21d1c967 GD |
12995 | |
12996 | #include <gtk/gtk.h> | |
12997 | #include <stdio.h> | |
12998 | #include <stdlib.h> | |
12999 | ||
a0b9e27f | 13000 | int |
21d1c967 GD |
13001 | main () |
13002 | { | |
13003 | int major, minor, micro; | |
13004 | char *tmp_version; | |
13005 | ||
13006 | system ("touch conf.gtktest"); | |
13007 | ||
13008 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
13009 | tmp_version = g_strdup("$min_gtk_version"); | |
13010 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
13011 | printf("%s, bad version string\n", "$min_gtk_version"); | |
13012 | exit(1); | |
13013 | } | |
13014 | ||
13015 | if ((gtk_major_version != $gtk_config_major_version) || | |
13016 | (gtk_minor_version != $gtk_config_minor_version) || | |
13017 | (gtk_micro_version != $gtk_config_micro_version)) | |
13018 | { | |
a0b9e27f | 13019 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
13020 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
13021 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13022 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
13023 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
13024 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
13025 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
13026 | printf("*** required on your system.\n"); | |
13027 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
13028 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
13029 | printf("*** before re-running configure\n"); | |
a0b9e27f | 13030 | } |
21d1c967 GD |
13031 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
13032 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
13033 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
13034 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
13035 | { | |
13036 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
13037 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
13038 | printf("*** library (version %d.%d.%d)\n", | |
13039 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13040 | } | |
13041 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
13042 | else | |
13043 | { | |
13044 | if ((gtk_major_version > major) || | |
13045 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
13046 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
13047 | { | |
13048 | return 0; | |
13049 | } | |
13050 | else | |
13051 | { | |
13052 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
13053 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13054 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
13055 | major, minor, micro); | |
13056 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
13057 | printf("***\n"); | |
13058 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
13059 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
13060 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
13061 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
13062 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
13063 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
13064 | printf("*** so that the correct libraries are found at run-time))\n"); | |
13065 | } | |
13066 | } | |
13067 | return 1; | |
13068 | } | |
13069 | ||
a0b9e27f | 13070 | EOF |
3c907f20 | 13071 | if { (eval echo configure:13072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 13072 | then |
21d1c967 GD |
13073 | : |
13074 | else | |
a0b9e27f MB |
13075 | echo "configure: failed program was:" >&5 |
13076 | cat conftest.$ac_ext >&5 | |
13077 | rm -fr conftest* | |
13078 | no_gtk=yes | |
21d1c967 | 13079 | fi |
a0b9e27f | 13080 | rm -fr conftest* |
21d1c967 | 13081 | fi |
a0b9e27f | 13082 | |
21d1c967 GD |
13083 | CFLAGS="$ac_save_CFLAGS" |
13084 | LIBS="$ac_save_LIBS" | |
13085 | fi | |
13086 | fi | |
13087 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
13088 | echo "$ac_t""yes" 1>&6 |
13089 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 13090 | else |
a0b9e27f | 13091 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
13092 | if test "$GTK_CONFIG" = "no" ; then |
13093 | echo "*** The gtk-config script installed by GTK could not be found" | |
13094 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
13095 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
13096 | echo "*** full path to gtk-config." | |
13097 | else | |
13098 | if test -f conf.gtktest ; then | |
13099 | : | |
13100 | else | |
13101 | echo "*** Could not run GTK test program, checking why..." | |
13102 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
13103 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 13104 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 13105 | #line 13106 "configure" |
21d1c967 GD |
13106 | #include "confdefs.h" |
13107 | ||
13108 | #include <gtk/gtk.h> | |
13109 | #include <stdio.h> | |
f79bd02d | 13110 | |
a0b9e27f MB |
13111 | int main() { |
13112 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
13113 | ; return 0; } | |
13114 | EOF | |
3c907f20 | 13115 | if { (eval echo configure:13116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13116 | rm -rf conftest* |
21d1c967 GD |
13117 | echo "*** The test program compiled, but did not run. This usually means" |
13118 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
13119 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
13120 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
13121 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
13122 | echo "*** is required on your system" | |
13123 | echo "***" | |
13124 | echo "*** If you have an old version installed, it is best to remove it, although" | |
13125 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
13126 | echo "***" | |
13127 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
13128 | echo "*** came with the system with the command" | |
13129 | echo "***" | |
a0b9e27f | 13130 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 13131 | else |
a0b9e27f MB |
13132 | echo "configure: failed program was:" >&5 |
13133 | cat conftest.$ac_ext >&5 | |
13134 | rm -rf conftest* | |
13135 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
13136 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
13137 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 13138 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 13139 | fi |
a0b9e27f | 13140 | rm -f conftest* |
21d1c967 GD |
13141 | CFLAGS="$ac_save_CFLAGS" |
13142 | LIBS="$ac_save_LIBS" | |
13143 | fi | |
13144 | fi | |
13145 | GTK_CFLAGS="" | |
13146 | GTK_LIBS="" | |
13147 | : | |
13148 | fi | |
a0b9e27f MB |
13149 | |
13150 | ||
21d1c967 | 13151 | rm -f conf.gtktest |
f79bd02d | 13152 | |
2b5f62a0 | 13153 | fi |
21d1c967 GD |
13154 | fi |
13155 | ||
13156 | if test -z "$wx_cv_lib_gtk"; then | |
13157 | wx_cv_lib_gtk=none | |
13158 | else | |
13159 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
13160 | wx_cv_libs_gtk=$GTK_LIBS | |
13161 | fi | |
a0b9e27f MB |
13162 | |
13163 | ||
5c6fa7d2 | 13164 | fi |
52127426 | 13165 | |
8284b0c5 | 13166 | |
21d1c967 | 13167 | if test "$gtk_version_cached" = 1; then |
a0b9e27f | 13168 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 |
21d1c967 GD |
13169 | fi |
13170 | ||
13171 | case "$wx_cv_lib_gtk" in | |
13172 | 2.0) WXGTK20=1 | |
2b5f62a0 | 13173 | TOOLKIT_VERSION=2 |
21d1c967 GD |
13174 | ;; |
13175 | 1.2.7) WXGTK127=1 | |
13176 | WXGTK12=1 | |
13177 | ;; | |
13178 | 1.2.3) WXGTK12=1 | |
13179 | ;; | |
a0b9e27f | 13180 | *) { echo "configure: error: |
247f5006 VZ |
13181 | Please check that gtk-config is in path, the directory |
13182 | where GTK+ libraries are installed (returned by | |
13183 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
13184 | equivalent variable and GTK+ is version 1.2.3 or above. | |
a0b9e27f | 13185 | " 1>&2; exit 1; } |
21d1c967 GD |
13186 | ;; |
13187 | esac | |
13188 | ||
b13cd66e VZ |
13189 | if test "$WXGTK20" = 1; then |
13190 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 13191 | |
f09359cf VS |
13192 | succeeded=no |
13193 | ||
13194 | if test -z "$PKG_CONFIG"; then | |
13195 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
13196 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 13197 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3c907f20 | 13198 | echo "configure:13199: checking for $ac_word" >&5 |
a0b9e27f MB |
13199 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
13200 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf | 13201 | else |
a0b9e27f MB |
13202 | case "$PKG_CONFIG" in |
13203 | /*) | |
f09359cf VS |
13204 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
13205 | ;; | |
a0b9e27f MB |
13206 | ?:/*) |
13207 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
13208 | ;; | |
f09359cf | 13209 | *) |
a0b9e27f MB |
13210 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
13211 | ac_dummy="$PATH" | |
13212 | for ac_dir in $ac_dummy; do | |
13213 | test -z "$ac_dir" && ac_dir=. | |
13214 | if test -f $ac_dir/$ac_word; then | |
13215 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
13216 | break | |
13217 | fi | |
13218 | done | |
13219 | IFS="$ac_save_ifs" | |
f09359cf VS |
13220 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
13221 | ;; | |
13222 | esac | |
13223 | fi | |
a0b9e27f | 13224 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
f09359cf | 13225 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 13226 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f09359cf | 13227 | else |
a0b9e27f | 13228 | echo "$ac_t""no" 1>&6 |
f09359cf VS |
13229 | fi |
13230 | ||
13231 | fi | |
13232 | ||
13233 | if test "$PKG_CONFIG" = "no" ; then | |
13234 | echo "*** The pkg-config script could not be found. Make sure it is" | |
13235 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
13236 | echo "*** to the full path to pkg-config." | |
13237 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
13238 | else | |
13239 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
13240 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
a0b9e27f | 13241 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 |
3c907f20 | 13242 | echo "configure:13243: checking for pangoft2" >&5 |
f09359cf VS |
13243 | |
13244 | if $PKG_CONFIG --exists "pangoft2" ; then | |
a0b9e27f | 13245 | echo "$ac_t""yes" 1>&6 |
f09359cf VS |
13246 | succeeded=yes |
13247 | ||
a0b9e27f | 13248 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 |
3c907f20 | 13249 | echo "configure:13250: checking PANGOFT2_CFLAGS" >&5 |
f09359cf | 13250 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
a0b9e27f | 13251 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 |
f09359cf | 13252 | |
a0b9e27f | 13253 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 |
3c907f20 | 13254 | echo "configure:13255: checking PANGOFT2_LIBS" >&5 |
f09359cf | 13255 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
a0b9e27f | 13256 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 |
f09359cf VS |
13257 | else |
13258 | PANGOFT2_CFLAGS="" | |
13259 | PANGOFT2_LIBS="" | |
a0b9e27f | 13260 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
13261 | ## do set a variable so people can do so. |
13262 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
a0b9e27f | 13263 | |
f09359cf VS |
13264 | fi |
13265 | ||
a0b9e27f MB |
13266 | |
13267 | ||
f09359cf VS |
13268 | else |
13269 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
13270 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
13271 | fi | |
13272 | fi | |
13273 | ||
13274 | if test $succeeded = yes; then | |
a0b9e27f | 13275 | |
b13cd66e VZ |
13276 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
13277 | LIBS="$LIBS $PANGOFT2_LIBS" | |
a0b9e27f | 13278 | |
f09359cf | 13279 | else |
a0b9e27f MB |
13280 | |
13281 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
b13cd66e | 13282 | wxUSE_PRINTING_ARCHITECTURE="no" |
a0b9e27f MB |
13283 | |
13284 | ||
f09359cf VS |
13285 | fi |
13286 | ||
b13cd66e | 13287 | fi |
2b5f62a0 VZ |
13288 | else |
13289 | if test "$wxUSE_UNICODE" = "yes"; then | |
13290 | echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2 | |
13291 | wxUSE_UNICODE=no | |
13292 | fi | |
13293 | fi | |
13294 | ||
13295 | if test "$USE_DARWIN" != 1; then | |
13296 | for ac_func in poll | |
13297 | do | |
13298 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3c907f20 | 13299 | echo "configure:13300: checking for $ac_func" >&5 |
2b5f62a0 VZ |
13300 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13301 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13302 | else | |
13303 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 13304 | #line 13305 "configure" |
2b5f62a0 VZ |
13305 | #include "confdefs.h" |
13306 | /* System header to define __stub macros and hopefully few prototypes, | |
13307 | which can conflict with char $ac_func(); below. */ | |
13308 | #include <assert.h> | |
13309 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13310 | /* We use char because int might match the return type of a gcc2 | |
13311 | builtin and then its argument prototype would still apply. */ | |
13312 | char $ac_func(); | |
13313 | ||
13314 | int main() { | |
13315 | ||
13316 | /* The GNU C library defines this for functions which it implements | |
13317 | to always fail with ENOSYS. Some functions are actually named | |
13318 | something starting with __ and the normal name is an alias. */ | |
13319 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13320 | choke me | |
13321 | #else | |
13322 | $ac_func(); | |
13323 | #endif | |
13324 | ||
13325 | ; return 0; } | |
13326 | EOF | |
3c907f20 | 13327 | if { (eval echo configure:13328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
13328 | rm -rf conftest* |
13329 | eval "ac_cv_func_$ac_func=yes" | |
13330 | else | |
13331 | echo "configure: failed program was:" >&5 | |
13332 | cat conftest.$ac_ext >&5 | |
13333 | rm -rf conftest* | |
13334 | eval "ac_cv_func_$ac_func=no" | |
13335 | fi | |
13336 | rm -f conftest* | |
13337 | fi | |
13338 | ||
13339 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13340 | echo "$ac_t""yes" 1>&6 | |
13341 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13342 | cat >> confdefs.h <<EOF | |
13343 | #define $ac_tr_func 1 | |
13344 | EOF | |
13345 | ||
13346 | else | |
13347 | echo "$ac_t""no" 1>&6 | |
13348 | fi | |
13349 | done | |
13350 | ||
f09359cf VS |
13351 | fi |
13352 | ||
21d1c967 GD |
13353 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
13354 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
13355 | ||
13356 | AFMINSTALL=afminstall | |
13357 | TOOLKIT=GTK | |
13358 | GUIDIST=GTK_DIST | |
13359 | ||
a0b9e27f | 13360 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
3c907f20 | 13361 | echo "configure:13362: checking for gdk_im_open in -lgdk" >&5 |
a0b9e27f MB |
13362 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
13363 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13364 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13365 | else |
a0b9e27f | 13366 | ac_save_LIBS="$LIBS" |
21d1c967 | 13367 | LIBS="-lgdk $LIBS" |
a0b9e27f | 13368 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 13369 | #line 13370 "configure" |
90dd450c | 13370 | #include "confdefs.h" |
5c6fa7d2 | 13371 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 13372 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13373 | builtin and then its argument prototype would still apply. */ |
13374 | char gdk_im_open(); | |
13375 | ||
13376 | int main() { | |
13377 | gdk_im_open() | |
13378 | ; return 0; } | |
13379 | EOF | |
3c907f20 | 13380 | if { (eval echo configure:13381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13381 | rm -rf conftest* |
13382 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13383 | else | |
13384 | echo "configure: failed program was:" >&5 | |
13385 | cat conftest.$ac_ext >&5 | |
13386 | rm -rf conftest* | |
13387 | eval "ac_cv_lib_$ac_lib_var=no" | |
13388 | fi | |
13389 | rm -f conftest* | |
13390 | LIBS="$ac_save_LIBS" | |
13391 | ||
13392 | fi | |
13393 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13394 | echo "$ac_t""yes" 1>&6 | |
13395 | cat >> confdefs.h <<\EOF | |
21d1c967 | 13396 | #define HAVE_XIM 1 |
a0b9e27f | 13397 | EOF |
21d1c967 | 13398 | |
a0b9e27f MB |
13399 | else |
13400 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13401 | fi |
1e6feb95 | 13402 | |
21d1c967 | 13403 | fi |
1e6feb95 | 13404 | |
21d1c967 | 13405 | if test "$wxUSE_MGL" = 1; then |
63a76696 | 13406 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
3c907f20 | 13407 | echo "configure:13408: checking for SciTech MGL library" >&5 |
21d1c967 | 13408 | if test "x$MGL_ROOT" = x ; then |
a0b9e27f MB |
13409 | echo "$ac_t""not found" 1>&6 |
13410 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
21d1c967 | 13411 | else |
a0b9e27f | 13412 | echo "$ac_t""$MGL_ROOT" 1>&6 |
21d1c967 GD |
13413 | fi |
13414 | ||
63a76696 | 13415 | echo $ac_n "checking for libmgl location""... $ac_c" 1>&6 |
3c907f20 | 13416 | echo "configure:13417: checking for libmgl location" >&5 |
21d1c967 GD |
13417 | case "${host}" in |
13418 | *-*-linux* ) | |
63a76696 VS |
13419 | if test "x$wxUSE_SHARED" = xyes ; then |
13420 | mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc" | |
13421 | else | |
13422 | mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so" | |
13423 | fi | |
21d1c967 GD |
13424 | ;; |
13425 | *-pc-msdosdjgpp ) | |
63a76696 | 13426 | mgl_os_candidates="dos32/dj2" |
21d1c967 GD |
13427 | ;; |
13428 | *) | |
a0b9e27f | 13429 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } |
21d1c967 | 13430 | esac |
1e6feb95 | 13431 | |
21d1c967 | 13432 | mgl_lib_type="" |
63a76696 VS |
13433 | mgl_os="" |
13434 | ||
13435 | for mgl_os_i in $mgl_os_candidates ; do | |
13436 | if test "x$mgl_os" = x ; then | |
13437 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
13438 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
13439 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
13440 | mgl_lib_type=debug | |
13441 | mgl_os=$mgl_os_i | |
13442 | fi | |
13443 | fi | |
13444 | if test "x$mgl_lib_type" = x ; then | |
13445 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
13446 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
13447 | mgl_lib_type=release | |
13448 | mgl_os=$mgl_os_i | |
13449 | fi | |
13450 | fi | |
21d1c967 | 13451 | fi |
63a76696 | 13452 | done |
2224580a | 13453 | |
63a76696 VS |
13454 | if test "x$mgl_os" = x ; then |
13455 | echo "$ac_t""not found" 1>&6 | |
13456 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
13457 | fi | |
13458 | echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6 | |
1542ea39 | 13459 | |
1d1b75ac VZ |
13460 | wxUSE_UNIVERSAL="yes" |
13461 | ||
21d1c967 GD |
13462 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
13463 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
13464 | ||
90dd450c | 13465 | AFMINSTALL=afminstall |
21d1c967 GD |
13466 | TOOLKIT=MGL |
13467 | GUIDIST=MGL_DIST | |
13468 | fi | |
dad6c0ea | 13469 | |
21d1c967 | 13470 | if test "$wxUSE_MICROWIN" = 1; then |
a0b9e27f | 13471 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 |
3c907f20 | 13472 | echo "configure:13473: checking for MicroWindows" >&5 |
21d1c967 | 13473 | if test "x$MICROWINDOWS" = x ; then |
a0b9e27f MB |
13474 | echo "$ac_t""not found" 1>&6 |
13475 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
21d1c967 | 13476 | else |
a0b9e27f | 13477 | echo "$ac_t""$MICROWINDOWS" 1>&6 |
21d1c967 | 13478 | fi |
f6bcfd97 | 13479 | |
21d1c967 | 13480 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
a0b9e27f | 13481 | echo "$ac_t""MicroWindows' libraries found." 1>&6 |
21d1c967 | 13482 | else |
a0b9e27f | 13483 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } |
90dd450c | 13484 | fi |
0b2effe9 | 13485 | |
21d1c967 GD |
13486 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
13487 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
13488 | ||
1d1b75ac VZ |
13489 | wxUSE_UNIVERSAL="yes" |
13490 | ||
21d1c967 GD |
13491 | AFMINSTALL=afminstall |
13492 | TOOLKIT=MICROWIN | |
13493 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
13494 | |
13495 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 13496 | fi |
f6bcfd97 | 13497 | |
21d1c967 | 13498 | if test "$wxUSE_X11" = 1; then |
a0b9e27f MB |
13499 | # If we find X, set shell vars x_includes and x_libraries to the |
13500 | # paths, otherwise set no_x=yes. | |
13501 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
13502 | # --without-x overrides everything else, but does not touch the cache. | |
13503 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
3c907f20 | 13504 | echo "configure:13505: checking for X" >&5 |
d8356fa3 | 13505 | |
21d1c967 GD |
13506 | # Check whether --with-x or --without-x was given. |
13507 | if test "${with_x+set}" = set; then | |
13508 | withval="$with_x" | |
a0b9e27f MB |
13509 | : |
13510 | fi | |
2224580a | 13511 | |
21d1c967 GD |
13512 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
13513 | if test "x$with_x" = xno; then | |
13514 | # The user explicitly disabled X. | |
13515 | have_x=disabled | |
13516 | else | |
13517 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
13518 | # Both variables are already set. | |
13519 | have_x=yes | |
13520 | else | |
a0b9e27f MB |
13521 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
13522 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 GD |
13523 | else |
13524 | # One or both of the vars are not set, and there is no cached value. | |
a0b9e27f MB |
13525 | ac_x_includes=NO ac_x_libraries=NO |
13526 | rm -fr conftestdir | |
13527 | if mkdir conftestdir; then | |
13528 | cd conftestdir | |
21d1c967 | 13529 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
a0b9e27f | 13530 | cat > Imakefile <<'EOF' |
21d1c967 GD |
13531 | acfindx: |
13532 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
a0b9e27f | 13533 | EOF |
21d1c967 GD |
13534 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
13535 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
13536 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
13537 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
13538 | for ac_extension in a so sl; do | |
13539 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
a0b9e27f | 13540 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
13541 | ac_im_usrlibdir=$ac_im_libdir; break |
13542 | fi | |
13543 | done | |
13544 | # Screen out bogus values from the imake configuration. They are | |
13545 | # bogus both because they are the default anyway, and because | |
13546 | # using them would break gcc on systems where it needs fixed includes. | |
a0b9e27f | 13547 | case "$ac_im_incroot" in |
21d1c967 | 13548 | /usr/include) ;; |
a0b9e27f | 13549 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
21d1c967 | 13550 | esac |
a0b9e27f | 13551 | case "$ac_im_usrlibdir" in |
21d1c967 | 13552 | /usr/lib | /lib) ;; |
a0b9e27f | 13553 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
21d1c967 GD |
13554 | esac |
13555 | fi | |
13556 | cd .. | |
a0b9e27f | 13557 | rm -fr conftestdir |
21d1c967 | 13558 | fi |
10f2d63a | 13559 | |
a0b9e27f MB |
13560 | if test "$ac_x_includes" = NO; then |
13561 | # Guess where to find include files, by looking for this one X11 .h file. | |
13562 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
13563 | ||
21d1c967 | 13564 | # First, try using that file with no special directory specified. |
a0b9e27f | 13565 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 13566 | #line 13567 "configure" |
21d1c967 | 13567 | #include "confdefs.h" |
a0b9e27f MB |
13568 | #include <$x_direct_test_include> |
13569 | EOF | |
13570 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c907f20 | 13571 | { (eval echo configure:13572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
13572 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13573 | if test -z "$ac_err"; then | |
13574 | rm -rf conftest* | |
21d1c967 GD |
13575 | # We can compile using X headers with no special include directory. |
13576 | ac_x_includes= | |
90dd450c | 13577 | else |
a0b9e27f MB |
13578 | echo "$ac_err" >&5 |
13579 | echo "configure: failed program was:" >&5 | |
90dd450c | 13580 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
13581 | rm -rf conftest* |
13582 | # Look for the header file in a standard set of common directories. | |
13583 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13584 | for ac_dir in \ | |
13585 | /usr/X11/include \ | |
13586 | /usr/X11R6/include \ | |
13587 | /usr/X11R5/include \ | |
13588 | /usr/X11R4/include \ | |
13589 | \ | |
13590 | /usr/include/X11 \ | |
13591 | /usr/include/X11R6 \ | |
13592 | /usr/include/X11R5 \ | |
13593 | /usr/include/X11R4 \ | |
13594 | \ | |
13595 | /usr/local/X11/include \ | |
13596 | /usr/local/X11R6/include \ | |
13597 | /usr/local/X11R5/include \ | |
13598 | /usr/local/X11R4/include \ | |
13599 | \ | |
13600 | /usr/local/include/X11 \ | |
13601 | /usr/local/include/X11R6 \ | |
13602 | /usr/local/include/X11R5 \ | |
13603 | /usr/local/include/X11R4 \ | |
13604 | \ | |
13605 | /usr/X386/include \ | |
13606 | /usr/x386/include \ | |
13607 | /usr/XFree86/include/X11 \ | |
13608 | \ | |
13609 | /usr/include \ | |
13610 | /usr/local/include \ | |
13611 | /usr/unsupported/include \ | |
13612 | /usr/athena/include \ | |
13613 | /usr/local/x11r5/include \ | |
13614 | /usr/lpp/Xamples/include \ | |
13615 | \ | |
13616 | /usr/openwin/include \ | |
13617 | /usr/openwin/share/include \ | |
13618 | ; \ | |
13619 | do | |
13620 | if test -r "$ac_dir/$x_direct_test_include"; then | |
13621 | ac_x_includes=$ac_dir | |
13622 | break | |
13623 | fi | |
13624 | done | |
3a922bb4 | 13625 | fi |
a0b9e27f MB |
13626 | rm -f conftest* |
13627 | fi # $ac_x_includes = NO | |
10f2d63a | 13628 | |
a0b9e27f | 13629 | if test "$ac_x_libraries" = NO; then |
21d1c967 | 13630 | # Check for the libraries. |
a0b9e27f MB |
13631 | |
13632 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
13633 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
13634 | ||
21d1c967 GD |
13635 | # See if we find them without any special options. |
13636 | # Don't add to $LIBS permanently. | |
a0b9e27f MB |
13637 | ac_save_LIBS="$LIBS" |
13638 | LIBS="-l$x_direct_test_library $LIBS" | |
13639 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 13640 | #line 13641 "configure" |
3a922bb4 | 13641 | #include "confdefs.h" |
a0b9e27f MB |
13642 | |
13643 | int main() { | |
13644 | ${x_direct_test_function}() | |
13645 | ; return 0; } | |
13646 | EOF | |
3c907f20 | 13647 | if { (eval echo configure:13648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13648 | rm -rf conftest* |
13649 | LIBS="$ac_save_LIBS" | |
21d1c967 GD |
13650 | # We can link X programs with no special library path. |
13651 | ac_x_libraries= | |
3a922bb4 | 13652 | else |
a0b9e27f MB |
13653 | echo "configure: failed program was:" >&5 |
13654 | cat conftest.$ac_ext >&5 | |
13655 | rm -rf conftest* | |
13656 | LIBS="$ac_save_LIBS" | |
13657 | # First see if replacing the include by lib works. | |
13658 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13659 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
13660 | /usr/X11/lib \ | |
13661 | /usr/X11R6/lib \ | |
13662 | /usr/X11R5/lib \ | |
13663 | /usr/X11R4/lib \ | |
13664 | \ | |
13665 | /usr/lib/X11 \ | |
13666 | /usr/lib/X11R6 \ | |
13667 | /usr/lib/X11R5 \ | |
13668 | /usr/lib/X11R4 \ | |
13669 | \ | |
13670 | /usr/local/X11/lib \ | |
13671 | /usr/local/X11R6/lib \ | |
13672 | /usr/local/X11R5/lib \ | |
13673 | /usr/local/X11R4/lib \ | |
13674 | \ | |
13675 | /usr/local/lib/X11 \ | |
13676 | /usr/local/lib/X11R6 \ | |
13677 | /usr/local/lib/X11R5 \ | |
13678 | /usr/local/lib/X11R4 \ | |
13679 | \ | |
13680 | /usr/X386/lib \ | |
13681 | /usr/x386/lib \ | |
13682 | /usr/XFree86/lib/X11 \ | |
13683 | \ | |
13684 | /usr/lib \ | |
13685 | /usr/local/lib \ | |
13686 | /usr/unsupported/lib \ | |
13687 | /usr/athena/lib \ | |
13688 | /usr/local/x11r5/lib \ | |
13689 | /usr/lpp/Xamples/lib \ | |
13690 | /lib/usr/lib/X11 \ | |
13691 | \ | |
13692 | /usr/openwin/lib \ | |
13693 | /usr/openwin/share/lib \ | |
13694 | ; \ | |
21d1c967 GD |
13695 | do |
13696 | for ac_extension in a so sl; do | |
a0b9e27f | 13697 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
21d1c967 GD |
13698 | ac_x_libraries=$ac_dir |
13699 | break 2 | |
13700 | fi | |
13701 | done | |
13702 | done | |
3a922bb4 | 13703 | fi |
a0b9e27f MB |
13704 | rm -f conftest* |
13705 | fi # $ac_x_libraries = NO | |
90dd450c | 13706 | |
a0b9e27f | 13707 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
21d1c967 GD |
13708 | # Didn't find X anywhere. Cache the known absence of X. |
13709 | ac_cv_have_x="have_x=no" | |
13710 | else | |
13711 | # Record where we found X for the cache. | |
13712 | ac_cv_have_x="have_x=yes \ | |
13713 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 13714 | fi |
21d1c967 GD |
13715 | fi |
13716 | fi | |
13717 | eval "$ac_cv_have_x" | |
13718 | fi # $with_x != no | |
90dd450c | 13719 | |
21d1c967 | 13720 | if test "$have_x" != yes; then |
a0b9e27f | 13721 | echo "$ac_t""$have_x" 1>&6 |
21d1c967 GD |
13722 | no_x=yes |
13723 | else | |
13724 | # If each of the values was on the command line, it overrides each guess. | |
13725 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
13726 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
13727 | # Update the cache value to reflect the command line values. | |
13728 | ac_cv_have_x="have_x=yes \ | |
13729 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
a0b9e27f | 13730 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
21d1c967 | 13731 | fi |
90dd450c | 13732 | |
21d1c967 | 13733 | if test "$no_x" = yes; then |
90dd450c | 13734 | # Not all programs may use this symbol, but it does not hurt to define it. |
a0b9e27f | 13735 | cat >> confdefs.h <<\EOF |
90dd450c | 13736 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 13737 | EOF |
90dd450c VZ |
13738 | |
13739 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13740 | else | |
13741 | if test -n "$x_includes"; then | |
13742 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 13743 | fi |
3a922bb4 | 13744 | |
90dd450c VZ |
13745 | # It would also be nice to do this for all -L options, not just this one. |
13746 | if test -n "$x_libraries"; then | |
13747 | X_LIBS="$X_LIBS -L$x_libraries" | |
13748 | # For Solaris; some versions of Sun CC require a space after -R and | |
13749 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 13750 | case "`(uname -sr) 2>/dev/null`" in |
90dd450c | 13751 | "SunOS 5"*) |
a0b9e27f | 13752 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
3c907f20 | 13753 | echo "configure:13754: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
13754 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
13755 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 13756 | #line 13757 "configure" |
90dd450c VZ |
13757 | #include "confdefs.h" |
13758 | ||
a0b9e27f | 13759 | int main() { |
90dd450c | 13760 | |
a0b9e27f MB |
13761 | ; return 0; } |
13762 | EOF | |
3c907f20 | 13763 | if { (eval echo configure:13764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13764 | rm -rf conftest* |
90dd450c | 13765 | ac_R_nospace=yes |
3a922bb4 | 13766 | else |
a0b9e27f MB |
13767 | echo "configure: failed program was:" >&5 |
13768 | cat conftest.$ac_ext >&5 | |
13769 | rm -rf conftest* | |
13770 | ac_R_nospace=no | |
3a922bb4 | 13771 | fi |
a0b9e27f | 13772 | rm -f conftest* |
90dd450c | 13773 | if test $ac_R_nospace = yes; then |
a0b9e27f | 13774 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
13775 | X_LIBS="$X_LIBS -R$x_libraries" |
13776 | else | |
13777 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 13778 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 13779 | #line 13780 "configure" |
90dd450c | 13780 | #include "confdefs.h" |
3a922bb4 | 13781 | |
a0b9e27f | 13782 | int main() { |
6f754473 | 13783 | |
a0b9e27f MB |
13784 | ; return 0; } |
13785 | EOF | |
3c907f20 | 13786 | if { (eval echo configure:13787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13787 | rm -rf conftest* |
90dd450c VZ |
13788 | ac_R_space=yes |
13789 | else | |
a0b9e27f MB |
13790 | echo "configure: failed program was:" >&5 |
13791 | cat conftest.$ac_ext >&5 | |
13792 | rm -rf conftest* | |
13793 | ac_R_space=no | |
90dd450c | 13794 | fi |
a0b9e27f | 13795 | rm -f conftest* |
90dd450c | 13796 | if test $ac_R_space = yes; then |
a0b9e27f | 13797 | echo "$ac_t""yes" 1>&6 |
90dd450c VZ |
13798 | X_LIBS="$X_LIBS -R $x_libraries" |
13799 | else | |
a0b9e27f | 13800 | echo "$ac_t""neither works" 1>&6 |
90dd450c VZ |
13801 | fi |
13802 | fi | |
a0b9e27f | 13803 | LIBS="$ac_xsave_LIBS" |
90dd450c VZ |
13804 | esac |
13805 | fi | |
13806 | ||
13807 | # Check for system-dependent libraries X programs must link with. | |
13808 | # Do this before checking for the system-independent R6 libraries | |
13809 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 13810 | |
90dd450c VZ |
13811 | if test "$ISC" = yes; then |
13812 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13813 | else | |
a0b9e27f MB |
13814 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
13815 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
90dd450c | 13816 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 13817 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
3c907f20 | 13818 | echo "configure:13819: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
13819 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13820 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13821 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 13822 | else |
a0b9e27f | 13823 | ac_save_LIBS="$LIBS" |
247f5006 | 13824 | LIBS="-ldnet $LIBS" |
a0b9e27f | 13825 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 13826 | #line 13827 "configure" |
247f5006 | 13827 | #include "confdefs.h" |
247f5006 | 13828 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 13829 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13830 | builtin and then its argument prototype would still apply. */ |
13831 | char dnet_ntoa(); | |
13832 | ||
13833 | int main() { | |
13834 | dnet_ntoa() | |
13835 | ; return 0; } | |
13836 | EOF | |
3c907f20 | 13837 | if { (eval echo configure:13838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13838 | rm -rf conftest* |
13839 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13840 | else | |
13841 | echo "configure: failed program was:" >&5 | |
13842 | cat conftest.$ac_ext >&5 | |
13843 | rm -rf conftest* | |
13844 | eval "ac_cv_lib_$ac_lib_var=no" | |
13845 | fi | |
13846 | rm -f conftest* | |
13847 | LIBS="$ac_save_LIBS" | |
13848 | ||
13849 | fi | |
13850 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13851 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13852 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
13853 | else |
13854 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13855 | fi |
13856 | ||
90dd450c | 13857 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 13858 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
3c907f20 | 13859 | echo "configure:13860: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
13860 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13861 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13862 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13863 | else |
a0b9e27f | 13864 | ac_save_LIBS="$LIBS" |
90dd450c | 13865 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 13866 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 13867 | #line 13868 "configure" |
90dd450c VZ |
13868 | #include "confdefs.h" |
13869 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13870 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13871 | builtin and then its argument prototype would still apply. */ |
13872 | char dnet_ntoa(); | |
13873 | ||
13874 | int main() { | |
13875 | dnet_ntoa() | |
13876 | ; return 0; } | |
13877 | EOF | |
3c907f20 | 13878 | if { (eval echo configure:13879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13879 | rm -rf conftest* |
13880 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13881 | else | |
13882 | echo "configure: failed program was:" >&5 | |
13883 | cat conftest.$ac_ext >&5 | |
13884 | rm -rf conftest* | |
13885 | eval "ac_cv_lib_$ac_lib_var=no" | |
13886 | fi | |
13887 | rm -f conftest* | |
13888 | LIBS="$ac_save_LIBS" | |
13889 | ||
13890 | fi | |
13891 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13892 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13893 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
13894 | else |
13895 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13896 | fi |
13897 | ||
90dd450c | 13898 | fi |
978f1259 | 13899 | |
90dd450c VZ |
13900 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13901 | # to get the SysV transport functions. | |
a0b9e27f | 13902 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
13903 | # needs -lnsl. |
13904 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
13905 | # on Irix 5.2, according to dickey@clark.net. |
13906 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
3c907f20 | 13907 | echo "configure:13908: checking for gethostbyname" >&5 |
a0b9e27f MB |
13908 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13909 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13910 | else | |
13911 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 13912 | #line 13913 "configure" |
90dd450c VZ |
13913 | #include "confdefs.h" |
13914 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 13915 | which can conflict with char gethostbyname(); below. */ |
90dd450c VZ |
13916 | #include <assert.h> |
13917 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13918 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13919 | builtin and then its argument prototype would still apply. */ |
13920 | char gethostbyname(); | |
13921 | ||
13922 | int main() { | |
13923 | ||
90dd450c VZ |
13924 | /* The GNU C library defines this for functions which it implements |
13925 | to always fail with ENOSYS. Some functions are actually named | |
13926 | something starting with __ and the normal name is an alias. */ | |
13927 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13928 | choke me | |
13929 | #else | |
a0b9e27f | 13930 | gethostbyname(); |
90dd450c | 13931 | #endif |
978f1259 | 13932 | |
a0b9e27f MB |
13933 | ; return 0; } |
13934 | EOF | |
3c907f20 | 13935 | if { (eval echo configure:13936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13936 | rm -rf conftest* |
13937 | eval "ac_cv_func_gethostbyname=yes" | |
13938 | else | |
13939 | echo "configure: failed program was:" >&5 | |
13940 | cat conftest.$ac_ext >&5 | |
13941 | rm -rf conftest* | |
13942 | eval "ac_cv_func_gethostbyname=no" | |
13943 | fi | |
13944 | rm -f conftest* | |
13945 | fi | |
13946 | ||
13947 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
13948 | echo "$ac_t""yes" 1>&6 | |
13949 | : | |
13950 | else | |
13951 | echo "$ac_t""no" 1>&6 | |
13952 | fi | |
698dcdb6 | 13953 | |
90dd450c | 13954 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 13955 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
3c907f20 | 13956 | echo "configure:13957: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
13957 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13958 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13959 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13960 | else |
a0b9e27f | 13961 | ac_save_LIBS="$LIBS" |
90dd450c | 13962 | LIBS="-lnsl $LIBS" |
a0b9e27f | 13963 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 13964 | #line 13965 "configure" |
90dd450c VZ |
13965 | #include "confdefs.h" |
13966 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13967 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13968 | builtin and then its argument prototype would still apply. */ |
13969 | char gethostbyname(); | |
5c6fa7d2 | 13970 | |
a0b9e27f MB |
13971 | int main() { |
13972 | gethostbyname() | |
13973 | ; return 0; } | |
13974 | EOF | |
3c907f20 | 13975 | if { (eval echo configure:13976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13976 | rm -rf conftest* |
13977 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 13978 | else |
a0b9e27f MB |
13979 | echo "configure: failed program was:" >&5 |
13980 | cat conftest.$ac_ext >&5 | |
13981 | rm -rf conftest* | |
13982 | eval "ac_cv_lib_$ac_lib_var=no" | |
13983 | fi | |
13984 | rm -f conftest* | |
13985 | LIBS="$ac_save_LIBS" | |
247f5006 | 13986 | |
a0b9e27f MB |
13987 | fi |
13988 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13989 | echo "$ac_t""yes" 1>&6 | |
13990 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13991 | else | |
13992 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13993 | fi |
b12915c1 | 13994 | |
90dd450c VZ |
13995 | fi |
13996 | ||
13997 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
13998 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13999 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
14000 | # on later versions), says simon@lia.di.epfl.ch: it contains |
14001 | # gethostby* variants that don't use the nameserver (or something). | |
14002 | # -lsocket must be given before -lnsl if both are needed. | |
14003 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
14004 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
3c907f20 | 14005 | echo "configure:14006: checking for connect" >&5 |
a0b9e27f MB |
14006 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
14007 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14008 | else | |
14009 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 14010 | #line 14011 "configure" |
55e80573 | 14011 | #include "confdefs.h" |
90dd450c | 14012 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 14013 | which can conflict with char connect(); below. */ |
90dd450c VZ |
14014 | #include <assert.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 connect(); | |
14019 | ||
14020 | int main() { | |
14021 | ||
90dd450c VZ |
14022 | /* The GNU C library defines this for functions which it implements |
14023 | to always fail with ENOSYS. Some functions are actually named | |
14024 | something starting with __ and the normal name is an alias. */ | |
14025 | #if defined (__stub_connect) || defined (__stub___connect) | |
14026 | choke me | |
14027 | #else | |
a0b9e27f | 14028 | connect(); |
90dd450c VZ |
14029 | #endif |
14030 | ||
a0b9e27f MB |
14031 | ; return 0; } |
14032 | EOF | |
3c907f20 | 14033 | if { (eval echo configure:14034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14034 | rm -rf conftest* |
14035 | eval "ac_cv_func_connect=yes" | |
14036 | else | |
14037 | echo "configure: failed program was:" >&5 | |
14038 | cat conftest.$ac_ext >&5 | |
14039 | rm -rf conftest* | |
14040 | eval "ac_cv_func_connect=no" | |
14041 | fi | |
14042 | rm -f conftest* | |
14043 | fi | |
14044 | ||
14045 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
14046 | echo "$ac_t""yes" 1>&6 | |
14047 | : | |
14048 | else | |
14049 | echo "$ac_t""no" 1>&6 | |
14050 | fi | |
55e80573 | 14051 | |
90dd450c | 14052 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 14053 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
3c907f20 | 14054 | echo "configure:14055: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
14055 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
14056 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14057 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14058 | else |
a0b9e27f | 14059 | ac_save_LIBS="$LIBS" |
90dd450c | 14060 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14061 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 14062 | #line 14063 "configure" |
90dd450c VZ |
14063 | #include "confdefs.h" |
14064 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14065 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14066 | builtin and then its argument prototype would still apply. */ |
14067 | char connect(); | |
14068 | ||
14069 | int main() { | |
14070 | connect() | |
14071 | ; return 0; } | |
14072 | EOF | |
3c907f20 | 14073 | if { (eval echo configure:14074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14074 | rm -rf conftest* |
14075 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14076 | else | |
14077 | echo "configure: failed program was:" >&5 | |
14078 | cat conftest.$ac_ext >&5 | |
14079 | rm -rf conftest* | |
14080 | eval "ac_cv_lib_$ac_lib_var=no" | |
14081 | fi | |
14082 | rm -f conftest* | |
14083 | LIBS="$ac_save_LIBS" | |
14084 | ||
14085 | fi | |
14086 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14087 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14088 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
14089 | else |
14090 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14091 | fi |
77e13408 | 14092 | |
90dd450c | 14093 | fi |
25d0687a | 14094 | |
a0b9e27f MB |
14095 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
14096 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
3c907f20 | 14097 | echo "configure:14098: checking for remove" >&5 |
a0b9e27f MB |
14098 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
14099 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14100 | else |
a0b9e27f | 14101 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 14102 | #line 14103 "configure" |
90dd450c VZ |
14103 | #include "confdefs.h" |
14104 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14105 | which can conflict with char remove(); below. */ |
90dd450c VZ |
14106 | #include <assert.h> |
14107 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14108 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14109 | builtin and then its argument prototype would still apply. */ |
14110 | char remove(); | |
14111 | ||
14112 | int main() { | |
14113 | ||
90dd450c VZ |
14114 | /* The GNU C library defines this for functions which it implements |
14115 | to always fail with ENOSYS. Some functions are actually named | |
14116 | something starting with __ and the normal name is an alias. */ | |
14117 | #if defined (__stub_remove) || defined (__stub___remove) | |
14118 | choke me | |
14119 | #else | |
a0b9e27f | 14120 | remove(); |
90dd450c | 14121 | #endif |
55e80573 | 14122 | |
a0b9e27f MB |
14123 | ; return 0; } |
14124 | EOF | |
3c907f20 | 14125 | if { (eval echo configure:14126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14126 | rm -rf conftest* |
14127 | eval "ac_cv_func_remove=yes" | |
14128 | else | |
14129 | echo "configure: failed program was:" >&5 | |
14130 | cat conftest.$ac_ext >&5 | |
14131 | rm -rf conftest* | |
14132 | eval "ac_cv_func_remove=no" | |
14133 | fi | |
14134 | rm -f conftest* | |
14135 | fi | |
14136 | ||
14137 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
14138 | echo "$ac_t""yes" 1>&6 | |
14139 | : | |
14140 | else | |
14141 | echo "$ac_t""no" 1>&6 | |
14142 | fi | |
10f2d63a | 14143 | |
90dd450c | 14144 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 14145 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
3c907f20 | 14146 | echo "configure:14147: checking for remove in -lposix" >&5 |
a0b9e27f MB |
14147 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
14148 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14149 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14150 | else |
a0b9e27f | 14151 | ac_save_LIBS="$LIBS" |
90dd450c | 14152 | LIBS="-lposix $LIBS" |
a0b9e27f | 14153 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 14154 | #line 14155 "configure" |
90dd450c VZ |
14155 | #include "confdefs.h" |
14156 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14157 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14158 | builtin and then its argument prototype would still apply. */ |
14159 | char remove(); | |
14160 | ||
14161 | int main() { | |
14162 | remove() | |
14163 | ; return 0; } | |
14164 | EOF | |
3c907f20 | 14165 | if { (eval echo configure:14166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14166 | rm -rf conftest* |
14167 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14168 | else | |
14169 | echo "configure: failed program was:" >&5 | |
14170 | cat conftest.$ac_ext >&5 | |
14171 | rm -rf conftest* | |
14172 | eval "ac_cv_lib_$ac_lib_var=no" | |
14173 | fi | |
14174 | rm -f conftest* | |
14175 | LIBS="$ac_save_LIBS" | |
14176 | ||
14177 | fi | |
14178 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14179 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14180 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
14181 | else |
14182 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14183 | fi |
f6bcfd97 | 14184 | |
6fa882bd RR |
14185 | fi |
14186 | ||
90dd450c | 14187 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 14188 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
3c907f20 | 14189 | echo "configure:14190: checking for shmat" >&5 |
a0b9e27f MB |
14190 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
14191 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14192 | else |
a0b9e27f | 14193 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 14194 | #line 14195 "configure" |
90dd450c VZ |
14195 | #include "confdefs.h" |
14196 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14197 | which can conflict with char shmat(); below. */ |
90dd450c VZ |
14198 | #include <assert.h> |
14199 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14200 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14201 | builtin and then its argument prototype would still apply. */ |
14202 | char shmat(); | |
14203 | ||
14204 | int main() { | |
14205 | ||
90dd450c VZ |
14206 | /* The GNU C library defines this for functions which it implements |
14207 | to always fail with ENOSYS. Some functions are actually named | |
14208 | something starting with __ and the normal name is an alias. */ | |
14209 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14210 | choke me | |
14211 | #else | |
a0b9e27f | 14212 | shmat(); |
90dd450c | 14213 | #endif |
10f2d63a | 14214 | |
a0b9e27f MB |
14215 | ; return 0; } |
14216 | EOF | |
3c907f20 | 14217 | if { (eval echo configure:14218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14218 | rm -rf conftest* |
14219 | eval "ac_cv_func_shmat=yes" | |
14220 | else | |
14221 | echo "configure: failed program was:" >&5 | |
14222 | cat conftest.$ac_ext >&5 | |
14223 | rm -rf conftest* | |
14224 | eval "ac_cv_func_shmat=no" | |
14225 | fi | |
14226 | rm -f conftest* | |
14227 | fi | |
14228 | ||
14229 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14230 | echo "$ac_t""yes" 1>&6 | |
14231 | : | |
14232 | else | |
14233 | echo "$ac_t""no" 1>&6 | |
14234 | fi | |
d08b457b | 14235 | |
90dd450c | 14236 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 14237 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
3c907f20 | 14238 | echo "configure:14239: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
14239 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
14240 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14241 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d08b457b | 14242 | else |
a0b9e27f | 14243 | ac_save_LIBS="$LIBS" |
90dd450c | 14244 | LIBS="-lipc $LIBS" |
a0b9e27f | 14245 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 14246 | #line 14247 "configure" |
90dd450c | 14247 | #include "confdefs.h" |
8284b0c5 | 14248 | /* Override any gcc2 internal prototype to avoid an error. */ |
90dd450c | 14249 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14250 | builtin and then its argument prototype would still apply. */ |
14251 | char shmat(); | |
14252 | ||
14253 | int main() { | |
14254 | shmat() | |
14255 | ; return 0; } | |
14256 | EOF | |
3c907f20 | 14257 | if { (eval echo configure:14258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14258 | rm -rf conftest* |
14259 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14260 | else | |
14261 | echo "configure: failed program was:" >&5 | |
14262 | cat conftest.$ac_ext >&5 | |
14263 | rm -rf conftest* | |
14264 | eval "ac_cv_lib_$ac_lib_var=no" | |
14265 | fi | |
14266 | rm -f conftest* | |
14267 | LIBS="$ac_save_LIBS" | |
14268 | ||
14269 | fi | |
14270 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14271 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14272 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
14273 | else |
14274 | echo "$ac_t""no" 1>&6 | |
d08b457b GD |
14275 | fi |
14276 | ||
d558c907 | 14277 | fi |
90dd450c | 14278 | fi |
3a922bb4 | 14279 | |
90dd450c | 14280 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 14281 | ac_save_LDFLAGS="$LDFLAGS" |
90dd450c VZ |
14282 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
14283 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14284 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14285 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14286 | # These have to be linked with before -lX11, unlike the other | |
14287 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
14288 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
14289 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
3c907f20 | 14290 | echo "configure:14291: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
14291 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
14292 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14293 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14294 | else | |
14295 | ac_save_LIBS="$LIBS" | |
f09359cf | 14296 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14297 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 14298 | #line 14299 "configure" |
9cfadba2 | 14299 | #include "confdefs.h" |
90dd450c VZ |
14300 | /* Override any gcc2 internal prototype to avoid an error. */ |
14301 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14302 | builtin and then its argument prototype would still apply. */ |
14303 | char IceConnectionNumber(); | |
14304 | ||
14305 | int main() { | |
14306 | IceConnectionNumber() | |
14307 | ; return 0; } | |
14308 | EOF | |
3c907f20 | 14309 | if { (eval echo configure:14310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14310 | rm -rf conftest* |
14311 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14312 | else | |
14313 | echo "configure: failed program was:" >&5 | |
14314 | cat conftest.$ac_ext >&5 | |
14315 | rm -rf conftest* | |
14316 | eval "ac_cv_lib_$ac_lib_var=no" | |
14317 | fi | |
14318 | rm -f conftest* | |
14319 | LIBS="$ac_save_LIBS" | |
14320 | ||
14321 | fi | |
14322 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14323 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14324 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
14325 | else |
14326 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 14327 | fi |
10f2d63a | 14328 | |
a0b9e27f | 14329 | LDFLAGS="$ac_save_LDFLAGS" |
90dd450c VZ |
14330 | |
14331 | fi | |
14332 | ||
8284b0c5 | 14333 | |
90dd450c | 14334 | if test "$no_x" = "yes"; then |
a0b9e27f | 14335 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
90dd450c VZ |
14336 | fi |
14337 | ||
14338 | GUI_TK_LIBRARY="$X_LIBS" | |
14339 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14340 | AFMINSTALL=afminstall | |
14341 | COMPILED_X_PROGRAM=0 | |
14342 | ||
21d1c967 | 14343 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 14344 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 |
3c907f20 | 14345 | echo "configure:14346: checking for MicroWindows/NanoX distribution" >&5 |
21d1c967 | 14346 | if test "x$MICROWIN" = x ; then |
a0b9e27f MB |
14347 | echo "$ac_t""not found" 1>&6 |
14348 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
90dd450c | 14349 | else |
a0b9e27f MB |
14350 | echo "$ac_t""$MICROWIN" 1>&6 |
14351 | cat >> confdefs.h <<\EOF | |
21d1c967 | 14352 | #define wxUSE_NANOX 1 |
a0b9e27f | 14353 | EOF |
21d1c967 | 14354 | |
90dd450c VZ |
14355 | fi |
14356 | fi | |
14357 | ||
14358 | xpm_link= | |
a0b9e27f | 14359 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
3c907f20 | 14360 | echo "configure:14361: checking for Xpm library" >&5 |
a0b9e27f | 14361 | |
90dd450c | 14362 | ac_find_libraries= |
2b5f62a0 | 14363 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
14364 | do |
14365 | for ac_extension in a so sl dylib; do | |
14366 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14367 | ac_find_libraries=$ac_dir | |
14368 | break 2 | |
14369 | fi | |
14370 | done | |
14371 | done | |
14372 | ||
14373 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 14374 | |
90dd450c VZ |
14375 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14376 | result=$? | |
14377 | if test $result = 0; then | |
14378 | ac_path_to_link="" | |
14379 | else | |
14380 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 14381 | fi |
90dd450c | 14382 | |
21d1c967 GD |
14383 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
14384 | xpm_link=" -lXpm" | |
a0b9e27f | 14385 | cat >> confdefs.h <<\EOF |
21d1c967 | 14386 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14387 | EOF |
90dd450c | 14388 | |
a0b9e27f | 14389 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14390 | else |
a0b9e27f | 14391 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 14392 | #line 14393 "configure" |
21d1c967 | 14393 | #include "confdefs.h" |
90dd450c | 14394 | |
21d1c967 | 14395 | #include <X11/xpm.h> |
a0b9e27f MB |
14396 | |
14397 | int main() { | |
6f72b082 | 14398 | |
21d1c967 GD |
14399 | int version; |
14400 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
14401 | |
14402 | ; return 0; } | |
14403 | EOF | |
3c907f20 | 14404 | if { (eval echo configure:14405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
14405 | rm -rf conftest* |
14406 | ||
21d1c967 | 14407 | xpm_link=" -lXpm" |
a0b9e27f | 14408 | cat >> confdefs.h <<\EOF |
21d1c967 | 14409 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14410 | EOF |
90dd450c | 14411 | |
a0b9e27f | 14412 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 14413 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 14414 | |
21d1c967 | 14415 | else |
a0b9e27f MB |
14416 | echo "configure: failed program was:" >&5 |
14417 | cat conftest.$ac_ext >&5 | |
14418 | rm -rf conftest* | |
14419 | ||
14420 | echo "$ac_t""no" 1>&6 | |
14421 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14422 | ||
14423 | ||
6f72b082 | 14424 | fi |
a0b9e27f | 14425 | rm -f conftest* |
21d1c967 | 14426 | fi |
90dd450c | 14427 | |
f7f78039 | 14428 | echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6 |
3c907f20 | 14429 | echo "configure:14430: checking for XShapeQueryExtension in -lXext" >&5 |
f7f78039 MB |
14430 | ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'` |
14431 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14432 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14433 | else | |
14434 | ac_save_LIBS="$LIBS" | |
14435 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
14436 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 14437 | #line 14438 "configure" |
f7f78039 MB |
14438 | #include "confdefs.h" |
14439 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14440 | /* We use char because int might match the return type of a gcc2 | |
14441 | builtin and then its argument prototype would still apply. */ | |
14442 | char XShapeQueryExtension(); | |
14443 | ||
14444 | int main() { | |
14445 | XShapeQueryExtension() | |
14446 | ; return 0; } | |
14447 | EOF | |
3c907f20 | 14448 | if { (eval echo configure:14449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f7f78039 MB |
14449 | rm -rf conftest* |
14450 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14451 | else | |
14452 | echo "configure: failed program was:" >&5 | |
14453 | cat conftest.$ac_ext >&5 | |
14454 | rm -rf conftest* | |
14455 | eval "ac_cv_lib_$ac_lib_var=no" | |
14456 | fi | |
14457 | rm -f conftest* | |
14458 | LIBS="$ac_save_LIBS" | |
14459 | ||
14460 | fi | |
14461 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14462 | echo "$ac_t""yes" 1>&6 | |
14463 | ||
14464 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
14465 | wxHAVE_XEXT_LIB=1 | |
14466 | ||
14467 | else | |
14468 | echo "$ac_t""no" 1>&6 | |
14469 | fi | |
14470 | ||
14471 | ||
2b5f62a0 VZ |
14472 | if test "$wxUSE_UNICODE" = "yes"; then |
14473 | ||
14474 | succeeded=no | |
90dd450c | 14475 | |
2b5f62a0 VZ |
14476 | if test -z "$PKG_CONFIG"; then |
14477 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14478 | set dummy pkg-config; ac_word=$2 | |
14479 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3c907f20 | 14480 | echo "configure:14481: checking for $ac_word" >&5 |
2b5f62a0 | 14481 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
a0b9e27f MB |
14482 | echo $ac_n "(cached) $ac_c" 1>&6 |
14483 | else | |
2b5f62a0 VZ |
14484 | case "$PKG_CONFIG" in |
14485 | /*) | |
14486 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14487 | ;; | |
14488 | ?:/*) | |
14489 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14490 | ;; | |
14491 | *) | |
14492 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14493 | ac_dummy="$PATH" | |
14494 | for ac_dir in $ac_dummy; do | |
14495 | test -z "$ac_dir" && ac_dir=. | |
14496 | if test -f $ac_dir/$ac_word; then | |
14497 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14498 | break | |
14499 | fi | |
14500 | done | |
14501 | IFS="$ac_save_ifs" | |
14502 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14503 | ;; | |
14504 | esac | |
14505 | fi | |
14506 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14507 | if test -n "$PKG_CONFIG"; then | |
14508 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14509 | else | |
14510 | echo "$ac_t""no" 1>&6 | |
14511 | fi | |
14512 | ||
14513 | fi | |
14514 | ||
14515 | if test "$PKG_CONFIG" = "no" ; then | |
14516 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14517 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14518 | echo "*** to the full path to pkg-config." | |
14519 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14520 | else | |
14521 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14522 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14523 | echo $ac_n "checking for pangox""... $ac_c" 1>&6 | |
3c907f20 | 14524 | echo "configure:14525: checking for pangox" >&5 |
2b5f62a0 VZ |
14525 | |
14526 | if $PKG_CONFIG --exists "pangox" ; then | |
14527 | echo "$ac_t""yes" 1>&6 | |
14528 | succeeded=yes | |
14529 | ||
14530 | echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6 | |
3c907f20 | 14531 | echo "configure:14532: checking PANGOX_CFLAGS" >&5 |
2b5f62a0 VZ |
14532 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
14533 | echo "$ac_t""$PANGOX_CFLAGS" 1>&6 | |
14534 | ||
14535 | echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6 | |
3c907f20 | 14536 | echo "configure:14537: checking PANGOX_LIBS" >&5 |
2b5f62a0 VZ |
14537 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
14538 | echo "$ac_t""$PANGOX_LIBS" 1>&6 | |
14539 | else | |
14540 | PANGOX_CFLAGS="" | |
14541 | PANGOX_LIBS="" | |
14542 | ## If we have a custom action on failure, don't print errors, but | |
14543 | ## do set a variable so people can do so. | |
14544 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
14545 | ||
14546 | fi | |
14547 | ||
14548 | ||
14549 | ||
14550 | else | |
14551 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14552 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14553 | fi | |
14554 | fi | |
14555 | ||
14556 | if test $succeeded = yes; then | |
14557 | ||
14558 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
14559 | LIBS="$LIBS $PANGOX_LIBS" | |
14560 | ||
14561 | else | |
14562 | ||
14563 | { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; } | |
14564 | ||
14565 | ||
14566 | fi | |
14567 | ||
14568 | ||
14569 | succeeded=no | |
14570 | ||
14571 | if test -z "$PKG_CONFIG"; then | |
14572 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14573 | set dummy pkg-config; ac_word=$2 | |
14574 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3c907f20 | 14575 | echo "configure:14576: checking for $ac_word" >&5 |
2b5f62a0 VZ |
14576 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
14577 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14578 | else | |
14579 | case "$PKG_CONFIG" in | |
14580 | /*) | |
14581 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14582 | ;; | |
14583 | ?:/*) | |
14584 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14585 | ;; | |
14586 | *) | |
14587 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14588 | ac_dummy="$PATH" | |
14589 | for ac_dir in $ac_dummy; do | |
14590 | test -z "$ac_dir" && ac_dir=. | |
14591 | if test -f $ac_dir/$ac_word; then | |
14592 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14593 | break | |
14594 | fi | |
14595 | done | |
14596 | IFS="$ac_save_ifs" | |
14597 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14598 | ;; | |
14599 | esac | |
14600 | fi | |
14601 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14602 | if test -n "$PKG_CONFIG"; then | |
14603 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14604 | else | |
14605 | echo "$ac_t""no" 1>&6 | |
14606 | fi | |
14607 | ||
14608 | fi | |
14609 | ||
14610 | if test "$PKG_CONFIG" = "no" ; then | |
14611 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14612 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14613 | echo "*** to the full path to pkg-config." | |
14614 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14615 | else | |
14616 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14617 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14618 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 | |
3c907f20 | 14619 | echo "configure:14620: checking for pangoft2" >&5 |
2b5f62a0 VZ |
14620 | |
14621 | if $PKG_CONFIG --exists "pangoft2" ; then | |
14622 | echo "$ac_t""yes" 1>&6 | |
14623 | succeeded=yes | |
14624 | ||
14625 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 | |
3c907f20 | 14626 | echo "configure:14627: checking PANGOFT2_CFLAGS" >&5 |
2b5f62a0 VZ |
14627 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
14628 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 | |
14629 | ||
14630 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 | |
3c907f20 | 14631 | echo "configure:14632: checking PANGOFT2_LIBS" >&5 |
2b5f62a0 VZ |
14632 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
14633 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 | |
14634 | else | |
14635 | PANGOFT2_CFLAGS="" | |
14636 | PANGOFT2_LIBS="" | |
14637 | ## If we have a custom action on failure, don't print errors, but | |
14638 | ## do set a variable so people can do so. | |
14639 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
14640 | ||
14641 | fi | |
14642 | ||
14643 | ||
14644 | ||
14645 | else | |
14646 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14647 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14648 | fi | |
14649 | fi | |
14650 | ||
14651 | if test $succeeded = yes; then | |
14652 | ||
14653 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
14654 | LIBS="$LIBS $PANGOFT2_LIBS" | |
14655 | ||
14656 | else | |
14657 | ||
14658 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
14659 | wxUSE_PRINTING_ARCHITECTURE="no" | |
14660 | ||
14661 | ||
14662 | fi | |
14663 | ||
14664 | ||
14665 | succeeded=no | |
14666 | ||
14667 | if test -z "$PKG_CONFIG"; then | |
14668 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14669 | set dummy pkg-config; ac_word=$2 | |
14670 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3c907f20 | 14671 | echo "configure:14672: checking for $ac_word" >&5 |
2b5f62a0 VZ |
14672 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
14673 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14674 | else | |
14675 | case "$PKG_CONFIG" in | |
14676 | /*) | |
14677 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14678 | ;; | |
14679 | ?:/*) | |
14680 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14681 | ;; | |
14682 | *) | |
14683 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14684 | ac_dummy="$PATH" | |
14685 | for ac_dir in $ac_dummy; do | |
14686 | test -z "$ac_dir" && ac_dir=. | |
14687 | if test -f $ac_dir/$ac_word; then | |
14688 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14689 | break | |
14690 | fi | |
14691 | done | |
14692 | IFS="$ac_save_ifs" | |
14693 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14694 | ;; | |
14695 | esac | |
14696 | fi | |
14697 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14698 | if test -n "$PKG_CONFIG"; then | |
14699 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14700 | else | |
14701 | echo "$ac_t""no" 1>&6 | |
14702 | fi | |
14703 | ||
14704 | fi | |
14705 | ||
14706 | if test "$PKG_CONFIG" = "no" ; then | |
14707 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14708 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14709 | echo "*** to the full path to pkg-config." | |
14710 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14711 | else | |
14712 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14713 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14714 | echo $ac_n "checking for pangoxft""... $ac_c" 1>&6 | |
3c907f20 | 14715 | echo "configure:14716: checking for pangoxft" >&5 |
2b5f62a0 VZ |
14716 | |
14717 | if $PKG_CONFIG --exists "pangoxft" ; then | |
14718 | echo "$ac_t""yes" 1>&6 | |
14719 | succeeded=yes | |
14720 | ||
14721 | echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6 | |
3c907f20 | 14722 | echo "configure:14723: checking PANGOXFT_CFLAGS" >&5 |
2b5f62a0 VZ |
14723 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
14724 | echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6 | |
14725 | ||
14726 | echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6 | |
3c907f20 | 14727 | echo "configure:14728: checking PANGOXFT_LIBS" >&5 |
2b5f62a0 VZ |
14728 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
14729 | echo "$ac_t""$PANGOXFT_LIBS" 1>&6 | |
14730 | else | |
14731 | PANGOXFT_CFLAGS="" | |
14732 | PANGOXFT_LIBS="" | |
14733 | ## If we have a custom action on failure, don't print errors, but | |
14734 | ## do set a variable so people can do so. | |
14735 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
14736 | ||
14737 | fi | |
14738 | ||
14739 | ||
14740 | ||
14741 | else | |
14742 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14743 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14744 | fi | |
14745 | fi | |
14746 | ||
14747 | if test $succeeded = yes; then | |
14748 | ||
14749 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
14750 | LIBS="$LIBS $PANGOXFT_LIBS" | |
14751 | ||
14752 | else | |
14753 | ||
14754 | echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2 | |
14755 | ||
14756 | ||
14757 | fi | |
14758 | ||
14759 | fi | |
14760 | ||
14761 | wxUSE_UNIVERSAL="yes" | |
14762 | ||
14763 | if test "$wxUSE_NANOX" = "yes"; then | |
14764 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
14765 | 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" | |
14766 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
14767 | else | |
14768 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
14769 | fi | |
14770 | ||
14771 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
14772 | TOOLKIT=X11 | |
14773 | GUIDIST=X11_DIST | |
14774 | fi | |
14775 | ||
21d1c967 GD |
14776 | if test "$wxUSE_MOTIF" = 1; then |
14777 | if test "$no_x" = yes; then | |
14778 | # Not all programs may use this symbol, but it does not hurt to define it. | |
a0b9e27f | 14779 | cat >> confdefs.h <<\EOF |
21d1c967 | 14780 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 14781 | EOF |
21d1c967 GD |
14782 | |
14783 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
14784 | else | |
14785 | if test -n "$x_includes"; then | |
14786 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
14787 | fi |
14788 | ||
21d1c967 GD |
14789 | # It would also be nice to do this for all -L options, not just this one. |
14790 | if test -n "$x_libraries"; then | |
14791 | X_LIBS="$X_LIBS -L$x_libraries" | |
14792 | # For Solaris; some versions of Sun CC require a space after -R and | |
14793 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 14794 | case "`(uname -sr) 2>/dev/null`" in |
21d1c967 | 14795 | "SunOS 5"*) |
a0b9e27f | 14796 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
3c907f20 | 14797 | echo "configure:14798: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
14798 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
14799 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 14800 | #line 14801 "configure" |
21d1c967 GD |
14801 | #include "confdefs.h" |
14802 | ||
a0b9e27f | 14803 | int main() { |
21d1c967 | 14804 | |
a0b9e27f MB |
14805 | ; return 0; } |
14806 | EOF | |
3c907f20 | 14807 | if { (eval echo configure:14808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14808 | rm -rf conftest* |
21d1c967 | 14809 | ac_R_nospace=yes |
698dcdb6 | 14810 | else |
a0b9e27f MB |
14811 | echo "configure: failed program was:" >&5 |
14812 | cat conftest.$ac_ext >&5 | |
14813 | rm -rf conftest* | |
14814 | ac_R_nospace=no | |
10f2d63a | 14815 | fi |
a0b9e27f | 14816 | rm -f conftest* |
21d1c967 | 14817 | if test $ac_R_nospace = yes; then |
a0b9e27f | 14818 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
14819 | X_LIBS="$X_LIBS -R$x_libraries" |
14820 | else | |
14821 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 14822 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 14823 | #line 14824 "configure" |
21d1c967 | 14824 | #include "confdefs.h" |
10f2d63a | 14825 | |
a0b9e27f | 14826 | int main() { |
f0c87536 | 14827 | |
a0b9e27f MB |
14828 | ; return 0; } |
14829 | EOF | |
3c907f20 | 14830 | if { (eval echo configure:14831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14831 | rm -rf conftest* |
21d1c967 GD |
14832 | ac_R_space=yes |
14833 | else | |
a0b9e27f MB |
14834 | echo "configure: failed program was:" >&5 |
14835 | cat conftest.$ac_ext >&5 | |
14836 | rm -rf conftest* | |
14837 | ac_R_space=no | |
21d1c967 | 14838 | fi |
a0b9e27f | 14839 | rm -f conftest* |
21d1c967 | 14840 | if test $ac_R_space = yes; then |
a0b9e27f | 14841 | echo "$ac_t""yes" 1>&6 |
21d1c967 GD |
14842 | X_LIBS="$X_LIBS -R $x_libraries" |
14843 | else | |
a0b9e27f | 14844 | echo "$ac_t""neither works" 1>&6 |
21d1c967 GD |
14845 | fi |
14846 | fi | |
a0b9e27f | 14847 | LIBS="$ac_xsave_LIBS" |
21d1c967 GD |
14848 | esac |
14849 | fi | |
90dd450c | 14850 | |
21d1c967 GD |
14851 | # Check for system-dependent libraries X programs must link with. |
14852 | # Do this before checking for the system-independent R6 libraries | |
14853 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
14854 | ||
14855 | if test "$ISC" = yes; then | |
14856 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
14857 | else | |
a0b9e27f MB |
14858 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
14859 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
21d1c967 | 14860 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 14861 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
3c907f20 | 14862 | echo "configure:14863: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
14863 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14864 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14865 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 14866 | else |
a0b9e27f | 14867 | ac_save_LIBS="$LIBS" |
247f5006 | 14868 | LIBS="-ldnet $LIBS" |
a0b9e27f | 14869 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 14870 | #line 14871 "configure" |
247f5006 | 14871 | #include "confdefs.h" |
247f5006 | 14872 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 14873 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14874 | builtin and then its argument prototype would still apply. */ |
14875 | char dnet_ntoa(); | |
14876 | ||
14877 | int main() { | |
14878 | dnet_ntoa() | |
14879 | ; return 0; } | |
14880 | EOF | |
3c907f20 | 14881 | if { (eval echo configure:14882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14882 | rm -rf conftest* |
14883 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14884 | else | |
14885 | echo "configure: failed program was:" >&5 | |
14886 | cat conftest.$ac_ext >&5 | |
14887 | rm -rf conftest* | |
14888 | eval "ac_cv_lib_$ac_lib_var=no" | |
14889 | fi | |
14890 | rm -f conftest* | |
14891 | LIBS="$ac_save_LIBS" | |
14892 | ||
14893 | fi | |
14894 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14895 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14896 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
14897 | else |
14898 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 | 14899 | fi |
0fb0dd83 | 14900 | |
21d1c967 | 14901 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 14902 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
3c907f20 | 14903 | echo "configure:14904: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
14904 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14905 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14906 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14907 | else |
a0b9e27f | 14908 | ac_save_LIBS="$LIBS" |
21d1c967 | 14909 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 14910 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 14911 | #line 14912 "configure" |
21d1c967 GD |
14912 | #include "confdefs.h" |
14913 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14914 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14915 | builtin and then its argument prototype would still apply. */ |
14916 | char dnet_ntoa(); | |
14917 | ||
14918 | int main() { | |
14919 | dnet_ntoa() | |
14920 | ; return 0; } | |
14921 | EOF | |
3c907f20 | 14922 | if { (eval echo configure:14923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14923 | rm -rf conftest* |
14924 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14925 | else | |
14926 | echo "configure: failed program was:" >&5 | |
14927 | cat conftest.$ac_ext >&5 | |
14928 | rm -rf conftest* | |
14929 | eval "ac_cv_lib_$ac_lib_var=no" | |
14930 | fi | |
14931 | rm -f conftest* | |
14932 | LIBS="$ac_save_LIBS" | |
14933 | ||
14934 | fi | |
14935 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14936 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14937 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
14938 | else |
14939 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
14940 | fi |
14941 | ||
21d1c967 | 14942 | fi |
90dd450c | 14943 | |
21d1c967 GD |
14944 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
14945 | # to get the SysV transport functions. | |
a0b9e27f | 14946 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
14947 | # needs -lnsl. |
14948 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
14949 | # on Irix 5.2, according to dickey@clark.net. |
14950 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
3c907f20 | 14951 | echo "configure:14952: checking for gethostbyname" >&5 |
a0b9e27f MB |
14952 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
14953 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14954 | else | |
14955 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 14956 | #line 14957 "configure" |
21d1c967 GD |
14957 | #include "confdefs.h" |
14958 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14959 | which can conflict with char gethostbyname(); below. */ |
21d1c967 GD |
14960 | #include <assert.h> |
14961 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14962 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14963 | builtin and then its argument prototype would still apply. */ |
14964 | char gethostbyname(); | |
14965 | ||
14966 | int main() { | |
14967 | ||
21d1c967 GD |
14968 | /* The GNU C library defines this for functions which it implements |
14969 | to always fail with ENOSYS. Some functions are actually named | |
14970 | something starting with __ and the normal name is an alias. */ | |
14971 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
14972 | choke me | |
14973 | #else | |
a0b9e27f | 14974 | gethostbyname(); |
21d1c967 | 14975 | #endif |
90dd450c | 14976 | |
a0b9e27f MB |
14977 | ; return 0; } |
14978 | EOF | |
3c907f20 | 14979 | if { (eval echo configure:14980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14980 | rm -rf conftest* |
14981 | eval "ac_cv_func_gethostbyname=yes" | |
14982 | else | |
14983 | echo "configure: failed program was:" >&5 | |
14984 | cat conftest.$ac_ext >&5 | |
14985 | rm -rf conftest* | |
14986 | eval "ac_cv_func_gethostbyname=no" | |
14987 | fi | |
14988 | rm -f conftest* | |
14989 | fi | |
14990 | ||
14991 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
14992 | echo "$ac_t""yes" 1>&6 | |
14993 | : | |
14994 | else | |
14995 | echo "$ac_t""no" 1>&6 | |
14996 | fi | |
90dd450c | 14997 | |
21d1c967 | 14998 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 14999 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
3c907f20 | 15000 | echo "configure:15001: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
15001 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
15002 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15003 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15004 | else |
a0b9e27f | 15005 | ac_save_LIBS="$LIBS" |
21d1c967 | 15006 | LIBS="-lnsl $LIBS" |
a0b9e27f | 15007 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 15008 | #line 15009 "configure" |
21d1c967 GD |
15009 | #include "confdefs.h" |
15010 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15011 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15012 | builtin and then its argument prototype would still apply. */ |
15013 | char gethostbyname(); | |
5c6fa7d2 | 15014 | |
a0b9e27f MB |
15015 | int main() { |
15016 | gethostbyname() | |
15017 | ; return 0; } | |
15018 | EOF | |
3c907f20 | 15019 | if { (eval echo configure:15020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15020 | rm -rf conftest* |
15021 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 15022 | else |
a0b9e27f MB |
15023 | echo "configure: failed program was:" >&5 |
15024 | cat conftest.$ac_ext >&5 | |
15025 | rm -rf conftest* | |
15026 | eval "ac_cv_lib_$ac_lib_var=no" | |
15027 | fi | |
15028 | rm -f conftest* | |
15029 | LIBS="$ac_save_LIBS" | |
247f5006 | 15030 | |
a0b9e27f MB |
15031 | fi |
15032 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15033 | echo "$ac_t""yes" 1>&6 | |
15034 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
15035 | else | |
15036 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15037 | fi |
90dd450c | 15038 | |
90dd450c VZ |
15039 | fi |
15040 | ||
21d1c967 GD |
15041 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
15042 | # socket/setsockopt and other routines are undefined under SCO ODT | |
15043 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
15044 | # on later versions), says simon@lia.di.epfl.ch: it contains |
15045 | # gethostby* variants that don't use the nameserver (or something). | |
15046 | # -lsocket must be given before -lnsl if both are needed. | |
15047 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
15048 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
3c907f20 | 15049 | echo "configure:15050: checking for connect" >&5 |
a0b9e27f MB |
15050 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
15051 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15052 | else | |
15053 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 15054 | #line 15055 "configure" |
21d1c967 GD |
15055 | #include "confdefs.h" |
15056 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15057 | which can conflict with char connect(); below. */ |
21d1c967 GD |
15058 | #include <assert.h> |
15059 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15060 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15061 | builtin and then its argument prototype would still apply. */ |
15062 | char connect(); | |
15063 | ||
15064 | int main() { | |
15065 | ||
21d1c967 GD |
15066 | /* The GNU C library defines this for functions which it implements |
15067 | to always fail with ENOSYS. Some functions are actually named | |
15068 | something starting with __ and the normal name is an alias. */ | |
15069 | #if defined (__stub_connect) || defined (__stub___connect) | |
15070 | choke me | |
15071 | #else | |
a0b9e27f | 15072 | connect(); |
21d1c967 | 15073 | #endif |
90dd450c | 15074 | |
a0b9e27f MB |
15075 | ; return 0; } |
15076 | EOF | |
3c907f20 | 15077 | if { (eval echo configure:15078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15078 | rm -rf conftest* |
15079 | eval "ac_cv_func_connect=yes" | |
15080 | else | |
15081 | echo "configure: failed program was:" >&5 | |
15082 | cat conftest.$ac_ext >&5 | |
15083 | rm -rf conftest* | |
15084 | eval "ac_cv_func_connect=no" | |
15085 | fi | |
15086 | rm -f conftest* | |
15087 | fi | |
15088 | ||
15089 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
15090 | echo "$ac_t""yes" 1>&6 | |
15091 | : | |
15092 | else | |
15093 | echo "$ac_t""no" 1>&6 | |
15094 | fi | |
1f8ae82f | 15095 | |
21d1c967 | 15096 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 15097 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
3c907f20 | 15098 | echo "configure:15099: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
15099 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
15100 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15101 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0fbb762e | 15102 | else |
a0b9e27f | 15103 | ac_save_LIBS="$LIBS" |
21d1c967 | 15104 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 15105 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 15106 | #line 15107 "configure" |
0fbb762e | 15107 | #include "confdefs.h" |
21d1c967 GD |
15108 | /* Override any gcc2 internal prototype to avoid an error. */ |
15109 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15110 | builtin and then its argument prototype would still apply. */ |
15111 | char connect(); | |
15112 | ||
15113 | int main() { | |
15114 | connect() | |
15115 | ; return 0; } | |
15116 | EOF | |
3c907f20 | 15117 | if { (eval echo configure:15118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15118 | rm -rf conftest* |
15119 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15120 | else | |
15121 | echo "configure: failed program was:" >&5 | |
15122 | cat conftest.$ac_ext >&5 | |
15123 | rm -rf conftest* | |
15124 | eval "ac_cv_lib_$ac_lib_var=no" | |
15125 | fi | |
15126 | rm -f conftest* | |
15127 | LIBS="$ac_save_LIBS" | |
15128 | ||
15129 | fi | |
15130 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15131 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15132 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
15133 | else |
15134 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15135 | fi |
90dd450c | 15136 | |
21d1c967 | 15137 | fi |
90dd450c | 15138 | |
a0b9e27f MB |
15139 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
15140 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
3c907f20 | 15141 | echo "configure:15142: checking for remove" >&5 |
a0b9e27f MB |
15142 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
15143 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15144 | else |
a0b9e27f | 15145 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 15146 | #line 15147 "configure" |
21d1c967 GD |
15147 | #include "confdefs.h" |
15148 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15149 | which can conflict with char remove(); below. */ |
21d1c967 GD |
15150 | #include <assert.h> |
15151 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15152 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15153 | builtin and then its argument prototype would still apply. */ |
15154 | char remove(); | |
15155 | ||
15156 | int main() { | |
15157 | ||
21d1c967 GD |
15158 | /* The GNU C library defines this for functions which it implements |
15159 | to always fail with ENOSYS. Some functions are actually named | |
15160 | something starting with __ and the normal name is an alias. */ | |
15161 | #if defined (__stub_remove) || defined (__stub___remove) | |
15162 | choke me | |
15163 | #else | |
a0b9e27f | 15164 | remove(); |
21d1c967 | 15165 | #endif |
90dd450c | 15166 | |
a0b9e27f MB |
15167 | ; return 0; } |
15168 | EOF | |
3c907f20 | 15169 | if { (eval echo configure:15170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15170 | rm -rf conftest* |
15171 | eval "ac_cv_func_remove=yes" | |
15172 | else | |
15173 | echo "configure: failed program was:" >&5 | |
15174 | cat conftest.$ac_ext >&5 | |
15175 | rm -rf conftest* | |
15176 | eval "ac_cv_func_remove=no" | |
15177 | fi | |
15178 | rm -f conftest* | |
15179 | fi | |
15180 | ||
15181 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
15182 | echo "$ac_t""yes" 1>&6 | |
15183 | : | |
15184 | else | |
15185 | echo "$ac_t""no" 1>&6 | |
15186 | fi | |
90dd450c | 15187 | |
21d1c967 | 15188 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 15189 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
3c907f20 | 15190 | echo "configure:15191: checking for remove in -lposix" >&5 |
a0b9e27f MB |
15191 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
15192 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15193 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15194 | else |
a0b9e27f | 15195 | ac_save_LIBS="$LIBS" |
21d1c967 | 15196 | LIBS="-lposix $LIBS" |
a0b9e27f | 15197 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 15198 | #line 15199 "configure" |
21d1c967 GD |
15199 | #include "confdefs.h" |
15200 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15201 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15202 | builtin and then its argument prototype would still apply. */ |
15203 | char remove(); | |
15204 | ||
15205 | int main() { | |
15206 | remove() | |
15207 | ; return 0; } | |
15208 | EOF | |
3c907f20 | 15209 | if { (eval echo configure:15210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15210 | rm -rf conftest* |
15211 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15212 | else | |
15213 | echo "configure: failed program was:" >&5 | |
15214 | cat conftest.$ac_ext >&5 | |
15215 | rm -rf conftest* | |
15216 | eval "ac_cv_lib_$ac_lib_var=no" | |
15217 | fi | |
15218 | rm -f conftest* | |
15219 | LIBS="$ac_save_LIBS" | |
15220 | ||
15221 | fi | |
15222 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15223 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15224 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
15225 | else |
15226 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15227 | fi |
19bc6aad | 15228 | |
90dd450c | 15229 | fi |
19bc6aad | 15230 | |
21d1c967 | 15231 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 15232 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
3c907f20 | 15233 | echo "configure:15234: checking for shmat" >&5 |
a0b9e27f MB |
15234 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
15235 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15236 | else |
a0b9e27f | 15237 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 15238 | #line 15239 "configure" |
21d1c967 GD |
15239 | #include "confdefs.h" |
15240 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15241 | which can conflict with char shmat(); below. */ |
21d1c967 GD |
15242 | #include <assert.h> |
15243 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15244 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15245 | builtin and then its argument prototype would still apply. */ |
15246 | char shmat(); | |
15247 | ||
15248 | int main() { | |
15249 | ||
21d1c967 GD |
15250 | /* The GNU C library defines this for functions which it implements |
15251 | to always fail with ENOSYS. Some functions are actually named | |
15252 | something starting with __ and the normal name is an alias. */ | |
15253 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
15254 | choke me | |
15255 | #else | |
a0b9e27f | 15256 | shmat(); |
21d1c967 | 15257 | #endif |
90dd450c | 15258 | |
a0b9e27f MB |
15259 | ; return 0; } |
15260 | EOF | |
3c907f20 | 15261 | if { (eval echo configure:15262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15262 | rm -rf conftest* |
15263 | eval "ac_cv_func_shmat=yes" | |
15264 | else | |
15265 | echo "configure: failed program was:" >&5 | |
15266 | cat conftest.$ac_ext >&5 | |
15267 | rm -rf conftest* | |
15268 | eval "ac_cv_func_shmat=no" | |
15269 | fi | |
15270 | rm -f conftest* | |
15271 | fi | |
15272 | ||
15273 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
15274 | echo "$ac_t""yes" 1>&6 | |
15275 | : | |
15276 | else | |
15277 | echo "$ac_t""no" 1>&6 | |
15278 | fi | |
19bc6aad | 15279 | |
21d1c967 | 15280 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 15281 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
3c907f20 | 15282 | echo "configure:15283: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
15283 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
15284 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15285 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 | 15286 | else |
a0b9e27f | 15287 | ac_save_LIBS="$LIBS" |
5c6fa7d2 | 15288 | LIBS="-lipc $LIBS" |
a0b9e27f | 15289 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 15290 | #line 15291 "configure" |
5c6fa7d2 | 15291 | #include "confdefs.h" |
5c6fa7d2 | 15292 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 15293 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
15294 | builtin and then its argument prototype would still apply. */ |
15295 | char shmat(); | |
15296 | ||
15297 | int main() { | |
15298 | shmat() | |
15299 | ; return 0; } | |
15300 | EOF | |
3c907f20 | 15301 | if { (eval echo configure:15302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15302 | rm -rf conftest* |
15303 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15304 | else | |
15305 | echo "configure: failed program was:" >&5 | |
15306 | cat conftest.$ac_ext >&5 | |
15307 | rm -rf conftest* | |
15308 | eval "ac_cv_lib_$ac_lib_var=no" | |
15309 | fi | |
15310 | rm -f conftest* | |
15311 | LIBS="$ac_save_LIBS" | |
15312 | ||
15313 | fi | |
15314 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15315 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15316 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
15317 | else |
15318 | echo "$ac_t""no" 1>&6 | |
9f8148b1 | 15319 | fi |
90dd450c | 15320 | |
90dd450c | 15321 | fi |
21d1c967 | 15322 | fi |
10f2d63a | 15323 | |
21d1c967 | 15324 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 15325 | ac_save_LDFLAGS="$LDFLAGS" |
21d1c967 GD |
15326 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
15327 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
15328 | # check for ICE first), but we must link in the order -lSM -lICE or | |
15329 | # we get undefined symbols. So assume we have SM if we have ICE. | |
15330 | # These have to be linked with before -lX11, unlike the other | |
15331 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
15332 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
15333 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
3c907f20 | 15334 | echo "configure:15335: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
15335 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
15336 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15337 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15338 | else | |
15339 | ac_save_LIBS="$LIBS" | |
f09359cf | 15340 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 15341 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 15342 | #line 15343 "configure" |
29fd3c0c | 15343 | #include "confdefs.h" |
21d1c967 GD |
15344 | /* Override any gcc2 internal prototype to avoid an error. */ |
15345 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15346 | builtin and then its argument prototype would still apply. */ |
15347 | char IceConnectionNumber(); | |
15348 | ||
15349 | int main() { | |
15350 | IceConnectionNumber() | |
15351 | ; return 0; } | |
15352 | EOF | |
3c907f20 | 15353 | if { (eval echo configure:15354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15354 | rm -rf conftest* |
15355 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15356 | else | |
15357 | echo "configure: failed program was:" >&5 | |
15358 | cat conftest.$ac_ext >&5 | |
15359 | rm -rf conftest* | |
15360 | eval "ac_cv_lib_$ac_lib_var=no" | |
15361 | fi | |
15362 | rm -f conftest* | |
15363 | LIBS="$ac_save_LIBS" | |
15364 | ||
15365 | fi | |
15366 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15367 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15368 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
15369 | else |
15370 | echo "$ac_t""no" 1>&6 | |
29fd3c0c | 15371 | fi |
21d1c967 | 15372 | |
a0b9e27f | 15373 | LDFLAGS="$ac_save_LDFLAGS" |
29fd3c0c | 15374 | |
10f2d63a VZ |
15375 | fi |
15376 | ||
8284b0c5 | 15377 | |
21d1c967 | 15378 | if test "$no_x" = "yes"; then |
a0b9e27f | 15379 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
21d1c967 GD |
15380 | fi |
15381 | ||
2b5f62a0 VZ |
15382 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
15383 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
15384 | AFMINSTALL=afminstall |
15385 | COMPILED_X_PROGRAM=0 | |
15386 | ||
a0b9e27f | 15387 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
3c907f20 | 15388 | echo "configure:15389: checking for Motif/Lesstif headers" >&5 |
a0b9e27f | 15389 | |
21d1c967 | 15390 | ac_find_includes= |
2b5f62a0 | 15391 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
15392 | do |
15393 | if test -f "$ac_dir/Xm/Xm.h"; then | |
15394 | ac_find_includes=$ac_dir | |
15395 | break | |
15396 | fi | |
15397 | done | |
15398 | ||
15399 | if test "$ac_find_includes" != "" ; then | |
a0b9e27f MB |
15400 | echo "$ac_t""found in $ac_find_includes" 1>&6 |
15401 | ||
2b5f62a0 | 15402 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
15403 | ac_path_to_include="" |
15404 | else | |
2b5f62a0 VZ |
15405 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
15406 | result=$? | |
15407 | if test $result = 0; then | |
15408 | ac_path_to_include="" | |
15409 | else | |
15410 | ac_path_to_include=" -I$ac_find_includes" | |
15411 | fi | |
dd0e4a90 VZ |
15412 | fi |
15413 | ||
15414 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 15415 | else |
a0b9e27f | 15416 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 15417 | #line 15418 "configure" |
10f2d63a | 15418 | #include "confdefs.h" |
21d1c967 GD |
15419 | |
15420 | #include <Xm/Xm.h> | |
a0b9e27f MB |
15421 | |
15422 | int main() { | |
21d1c967 GD |
15423 | |
15424 | int version; | |
15425 | version = xmUseVersion; | |
a0b9e27f MB |
15426 | |
15427 | ; return 0; } | |
15428 | EOF | |
3c907f20 | 15429 | if { (eval echo configure:15430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15430 | rm -rf conftest* |
15431 | ||
15432 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 15433 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 15434 | |
10f2d63a | 15435 | else |
a0b9e27f MB |
15436 | echo "configure: failed program was:" >&5 |
15437 | cat conftest.$ac_ext >&5 | |
15438 | rm -rf conftest* | |
15439 | ||
15440 | echo "$ac_t""no" 1>&6 | |
15441 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
15442 | ||
15443 | ||
10f2d63a | 15444 | fi |
a0b9e27f | 15445 | rm -f conftest* |
21d1c967 | 15446 | fi |
10f2d63a | 15447 | |
21d1c967 | 15448 | if test "$COMPILED_X_PROGRAM" = 0; then |
a0b9e27f | 15449 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 |
3c907f20 | 15450 | echo "configure:15451: checking for Motif/Lesstif library" >&5 |
a0b9e27f | 15451 | |
21d1c967 | 15452 | ac_find_libraries= |
2b5f62a0 | 15453 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15454 | do |
15455 | for ac_extension in a so sl dylib; do | |
15456 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
15457 | ac_find_libraries=$ac_dir | |
15458 | break 2 | |
15459 | fi | |
15460 | done | |
15461 | done | |
15462 | ||
15463 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15464 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15465 | |
a0b9e27f | 15466 | |
21d1c967 GD |
15467 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15468 | result=$? | |
15469 | if test $result = 0; then | |
15470 | ac_path_to_link="" | |
15471 | else | |
15472 | ac_path_to_link=" -L$ac_find_libraries" | |
15473 | fi | |
15474 | ||
21d1c967 | 15475 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 15476 | else |
dd0e4a90 VZ |
15477 | save_CFLAGS=$CFLAGS |
15478 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15479 | ||
a0b9e27f | 15480 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 15481 | #line 15482 "configure" |
d836ee96 | 15482 | #include "confdefs.h" |
21d1c967 GD |
15483 | |
15484 | #include <Xm/Xm.h> | |
a0b9e27f MB |
15485 | |
15486 | int main() { | |
21d1c967 GD |
15487 | |
15488 | int version; | |
15489 | version = xmUseVersion; | |
a0b9e27f MB |
15490 | |
15491 | ; return 0; } | |
15492 | EOF | |
3c907f20 | 15493 | if { (eval echo configure:15494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15494 | rm -rf conftest* |
15495 | ||
15496 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 15497 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 15498 | |
d836ee96 | 15499 | else |
a0b9e27f MB |
15500 | echo "configure: failed program was:" >&5 |
15501 | cat conftest.$ac_ext >&5 | |
15502 | rm -rf conftest* | |
15503 | ||
15504 | echo "$ac_t""no" 1>&6 | |
15505 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
15506 | ||
15507 | ||
d836ee96 | 15508 | fi |
a0b9e27f | 15509 | rm -f conftest* |
dd0e4a90 VZ |
15510 | |
15511 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15512 | fi |
15513 | fi | |
15514 | ||
15515 | xpm_link= | |
a0b9e27f | 15516 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
3c907f20 | 15517 | echo "configure:15518: checking for Xpm library" >&5 |
a0b9e27f | 15518 | |
21d1c967 | 15519 | ac_find_libraries= |
2b5f62a0 | 15520 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15521 | do |
15522 | for ac_extension in a so sl dylib; do | |
15523 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
15524 | ac_find_libraries=$ac_dir | |
15525 | break 2 | |
15526 | fi | |
15527 | done | |
15528 | done | |
15529 | ||
15530 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15531 | |
21d1c967 GD |
15532 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15533 | result=$? | |
15534 | if test $result = 0; then | |
15535 | ac_path_to_link="" | |
15536 | else | |
15537 | ac_path_to_link=" -L$ac_find_libraries" | |
15538 | fi | |
15539 | ||
15540 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 15541 | |
21d1c967 | 15542 | xpm_link=" -lXpm" |
a0b9e27f | 15543 | cat >> confdefs.h <<\EOF |
21d1c967 | 15544 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15545 | EOF |
90dd450c | 15546 | |
a0b9e27f | 15547 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15548 | else |
dd0e4a90 VZ |
15549 | save_CFLAGS=$CFLAGS |
15550 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15551 | ||
a0b9e27f | 15552 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 15553 | #line 15554 "configure" |
d836ee96 | 15554 | #include "confdefs.h" |
21d1c967 GD |
15555 | |
15556 | #include <X11/xpm.h> | |
a0b9e27f MB |
15557 | |
15558 | int main() { | |
21d1c967 GD |
15559 | |
15560 | int version; | |
15561 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
15562 | |
15563 | ; return 0; } | |
15564 | EOF | |
3c907f20 | 15565 | if { (eval echo configure:15566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15566 | rm -rf conftest* |
15567 | ||
21d1c967 | 15568 | xpm_link=" -lXpm" |
a0b9e27f | 15569 | cat >> confdefs.h <<\EOF |
21d1c967 | 15570 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15571 | EOF |
21d1c967 | 15572 | |
a0b9e27f | 15573 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 15574 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 15575 | |
d836ee96 | 15576 | else |
a0b9e27f MB |
15577 | echo "configure: failed program was:" >&5 |
15578 | cat conftest.$ac_ext >&5 | |
15579 | rm -rf conftest* | |
15580 | ||
15581 | echo "$ac_t""no" 1>&6 | |
15582 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
15583 | ||
15584 | ||
d836ee96 | 15585 | fi |
a0b9e27f | 15586 | rm -f conftest* |
dd0e4a90 VZ |
15587 | |
15588 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15589 | fi |
15590 | ||
a0b9e27f | 15591 | echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6 |
3c907f20 | 15592 | echo "configure:15593: checking if we need -lXp and/or -lSM -lICE" >&5 |
6a30f1c8 MB |
15593 | libp_link="" |
15594 | libsm_ice_link="" | |
15595 | libs_found=0 | |
15596 | for libp in "" " -lXp"; do | |
15597 | if test "$libs_found" = "0"; then | |
15598 | for libsm_ice in " -lSM -lICE"; do | |
e26c13cf | 15599 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
15600 | save_LIBS="$LIBS" |
15601 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
15602 | save_CFLAGS=$CFLAGS |
15603 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15604 | ||
a0b9e27f | 15605 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 15606 | #line 15607 "configure" |
6a30f1c8 | 15607 | #include "confdefs.h" |
17234b26 | 15608 | |
6a30f1c8 MB |
15609 | #include <Xm/Xm.h> |
15610 | #include <Xm/List.h> | |
a0b9e27f MB |
15611 | |
15612 | int main() { | |
6a30f1c8 MB |
15613 | |
15614 | XmString string = NULL; | |
15615 | Widget w = NULL; | |
15616 | int position = 0; | |
15617 | XmListAddItem(w, string, position); | |
a0b9e27f MB |
15618 | |
15619 | ; return 0; } | |
15620 | EOF | |
3c907f20 | 15621 | if { (eval echo configure:15622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15622 | rm -rf conftest* |
15623 | ||
6a30f1c8 MB |
15624 | libp_link="$libp" |
15625 | libsm_ice_link="$libsm_ice" | |
a0b9e27f | 15626 | echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6 |
6a30f1c8 | 15627 | libs_found=1 |
a0b9e27f | 15628 | |
6a30f1c8 | 15629 | else |
a0b9e27f MB |
15630 | echo "configure: failed program was:" >&5 |
15631 | cat conftest.$ac_ext >&5 | |
15632 | rm -rf conftest* | |
15633 | ||
15634 | ||
6a30f1c8 | 15635 | fi |
a0b9e27f | 15636 | rm -f conftest* |
dd0e4a90 | 15637 | |
6a30f1c8 | 15638 | LIBS="$save_LIBS" |
dd0e4a90 | 15639 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
15640 | fi |
15641 | done | |
15642 | fi | |
15643 | done | |
15644 | ||
15645 | if test "$libs_found" = "0"; then | |
a0b9e27f MB |
15646 | echo "$ac_t""can't find the right libraries" 1>&6 |
15647 | { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; } | |
6a30f1c8 MB |
15648 | fi |
15649 | ||
da494b40 MB |
15650 | save_CFLAGS=$CFLAGS |
15651 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15652 | echo $ac_n "checking for Motif 2""... $ac_c" 1>&6 | |
3c907f20 | 15653 | echo "configure:15654: checking for Motif 2" >&5 |
da494b40 | 15654 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 15655 | #line 15656 "configure" |
da494b40 MB |
15656 | #include "confdefs.h" |
15657 | ||
15658 | #include <Xm/Xm.h> | |
15659 | ||
15660 | int main() { | |
15661 | ||
15662 | #if XmVersion < 2000 | |
15663 | #error "Not Motif 2" | |
15664 | #endif | |
15665 | ||
15666 | ; return 0; } | |
15667 | EOF | |
3c907f20 | 15668 | if { (eval echo configure:15669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
da494b40 MB |
15669 | rm -rf conftest* |
15670 | ||
15671 | cat >> confdefs.h <<\EOF | |
15672 | #define __WXMOTIF20__ 1 | |
15673 | EOF | |
15674 | ||
15675 | echo "$ac_t""found" 1>&6 | |
15676 | ||
15677 | else | |
15678 | echo "configure: failed program was:" >&5 | |
15679 | cat conftest.$ac_ext >&5 | |
15680 | rm -rf conftest* | |
15681 | ||
15682 | cat >> confdefs.h <<\EOF | |
15683 | #define __WXMOTIF20__ 0 | |
15684 | EOF | |
15685 | ||
15686 | echo "$ac_t""not found" 1>&6 | |
15687 | ||
15688 | fi | |
15689 | rm -f conftest* | |
15690 | CFLAGS=$save_CFLAGS | |
15691 | ||
6a30f1c8 | 15692 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
69c44812 | 15693 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" |
21d1c967 GD |
15694 | TOOLKIT=MOTIF |
15695 | GUIDIST=MOTIF_DIST | |
f7f78039 MB |
15696 | wxHAVE_XEXT_LIB=1 |
15697 | fi | |
15698 | ||
15699 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 && | |
15700 | test "$wxHAVE_XEXT_LIB" = 1; then | |
15701 | save_CFLAGS="$CFLAGS" | |
15702 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15703 | ||
15704 | echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6 | |
3c907f20 | 15705 | echo "configure:15706: checking for X11/extensions/shape.h" >&5 |
f7f78039 | 15706 | cat > conftest.$ac_ext <<EOF |
3c907f20 | 15707 | #line 15708 "configure" |
f7f78039 MB |
15708 | #include "confdefs.h" |
15709 | ||
15710 | #include <X11/Xlib.h> | |
15711 | #include <X11/extensions/shape.h> | |
15712 | ||
15713 | int main() { | |
15714 | ||
15715 | int dummy1, dummy2; | |
15716 | XShapeQueryExtension((Display*)NULL, | |
15717 | (int*)NULL, (int*)NULL); | |
15718 | ||
15719 | ; return 0; } | |
15720 | EOF | |
3c907f20 | 15721 | if { (eval echo configure:15722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f7f78039 MB |
15722 | rm -rf conftest* |
15723 | ||
15724 | cat >> confdefs.h <<\EOF | |
15725 | #define HAVE_XSHAPE 1 | |
15726 | EOF | |
15727 | ||
15728 | echo "$ac_t""found" 1>&6 | |
15729 | ||
15730 | else | |
15731 | echo "configure: failed program was:" >&5 | |
15732 | cat conftest.$ac_ext >&5 | |
15733 | rm -rf conftest* | |
15734 | ||
15735 | echo "$ac_t""not found" 1>&6 | |
15736 | ||
15737 | fi | |
15738 | rm -f conftest* | |
15739 | CFLAGS="$save_CFLAGS" | |
21d1c967 GD |
15740 | fi |
15741 | ||
15742 | if test "$wxUSE_MAC" = 1; then | |
0c98a14e | 15743 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" |
21d1c967 | 15744 | |
0c98a14e | 15745 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
15746 | TOOLKIT=MAC |
15747 | GUIDIST=MACX_DIST | |
15748 | fi | |
15749 | ||
ac0c4cc3 DE |
15750 | if test "$wxUSE_COCOA" = 1; then |
15751 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
15752 | TOOLKIT=COCOA | |
15753 | GUIDIST=COCOA_DIST | |
15754 | fi | |
15755 | ||
21d1c967 GD |
15756 | if test "$wxUSE_PM" = 1; then |
15757 | TOOLKIT=PM | |
15758 | GUIDIST=GTK_DIST | |
2b5f62a0 | 15759 | echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2 |
f657dbe7 | 15760 | wxUSE_THREADS="no" |
21d1c967 GD |
15761 | fi |
15762 | ||
15763 | if test "$TOOLKIT" = "PM" ; then | |
15764 | TOOLKIT_DIR="os2" | |
15765 | else | |
15766 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
15767 | fi | |
15768 | ||
15769 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
15770 | ||
15771 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
15772 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
15773 | ||
15774 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
15775 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
15776 | ||
15777 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
15778 | if test "$wxUSE_X11" = 1; then | |
15779 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
15780 | else | |
15781 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
15782 | fi | |
15783 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
15784 | WIDGET_SET=univ | |
15785 | else | |
15786 | ALL_OBJECTS="\$(GUIOBJS)" | |
15787 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15788 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15789 | fi | |
15790 | ||
15791 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
15792 | ||
15793 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
15794 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
15795 | fi | |
15796 | ||
15797 | if test "$wxUSE_HTML" = "yes"; then | |
15798 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
15799 | fi | |
15800 | ||
15801 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
15802 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
15803 | fi | |
15804 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
15805 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
15806 | fi | |
15807 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
15808 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
15809 | fi | |
15810 | ||
15811 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
15812 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 15813 | else |
21d1c967 GD |
15814 | USE_GUI=0 |
15815 | ||
15816 | TOOLKIT_DIR="base" | |
15817 | ||
15818 | if test "$USE_WIN32" = 1 ; then | |
15819 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
15820 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
15821 | ||
15822 | TOOLKIT="MSW" | |
15823 | else | |
15824 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
15825 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
15826 | fi | |
15827 | ||
15828 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15829 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15830 | ||
15831 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
15832 | ||
15833 | GUIDIST="BASE_DIST" | |
15834 | DISTDIR="wxBase" | |
d836ee96 VZ |
15835 | fi |
15836 | ||
8284b0c5 | 15837 | |
8647bec6 RG |
15838 | |
15839 | ||
15840 | IODBC_C_SRC="" | |
15841 | ||
15842 | ||
15843 | if test "$TOOLKIT" != "MSW" ; then | |
15844 | ||
15845 | if test "$wxUSE_ODBC" != "no" ; then | |
15846 | cat >> confdefs.h <<\EOF | |
15847 | #define wxUSE_ODBC 1 | |
15848 | EOF | |
15849 | ||
15850 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
15851 | ||
15852 | WXODBCFLAG="-D_IODBC_" | |
15853 | ||
15854 | ||
15855 | if test "$wxUSE_ODBC" = "sys" ; then | |
15856 | ||
15857 | ac_safe=`echo "sql.h" | sed 'y%./+-%__p_%'` | |
15858 | echo $ac_n "checking for sql.h""... $ac_c" 1>&6 | |
3c907f20 | 15859 | echo "configure:15860: checking for sql.h" >&5 |
8647bec6 RG |
15860 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15861 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15862 | else | |
15863 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 15864 | #line 15865 "configure" |
8647bec6 RG |
15865 | #include "confdefs.h" |
15866 | #include <sql.h> | |
15867 | EOF | |
15868 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c907f20 | 15869 | { (eval echo configure:15870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8647bec6 RG |
15870 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15871 | if test -z "$ac_err"; then | |
15872 | rm -rf conftest* | |
15873 | eval "ac_cv_header_$ac_safe=yes" | |
15874 | else | |
15875 | echo "$ac_err" >&5 | |
15876 | echo "configure: failed program was:" >&5 | |
15877 | cat conftest.$ac_ext >&5 | |
15878 | rm -rf conftest* | |
15879 | eval "ac_cv_header_$ac_safe=no" | |
15880 | fi | |
15881 | rm -f conftest* | |
15882 | fi | |
15883 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
15884 | echo "$ac_t""yes" 1>&6 | |
15885 | : | |
15886 | else | |
15887 | echo "$ac_t""no" 1>&6 | |
15888 | fi | |
15889 | ||
15890 | ||
15891 | echo $ac_n "checking for library containing SQLAllocEnv""... $ac_c" 1>&6 | |
3c907f20 | 15892 | echo "configure:15893: checking for library containing SQLAllocEnv" >&5 |
8647bec6 RG |
15893 | if eval "test \"`echo '$''{'ac_cv_search_SQLAllocEnv'+set}'`\" = set"; then |
15894 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15895 | else | |
15896 | ac_func_search_save_LIBS="$LIBS" | |
15897 | ac_cv_search_SQLAllocEnv="no" | |
15898 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 15899 | #line 15900 "configure" |
8647bec6 RG |
15900 | #include "confdefs.h" |
15901 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15902 | /* We use char because int might match the return type of a gcc2 | |
15903 | builtin and then its argument prototype would still apply. */ | |
15904 | char SQLAllocEnv(); | |
15905 | ||
15906 | int main() { | |
15907 | SQLAllocEnv() | |
15908 | ; return 0; } | |
15909 | EOF | |
3c907f20 | 15910 | if { (eval echo configure:15911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8647bec6 RG |
15911 | rm -rf conftest* |
15912 | ac_cv_search_SQLAllocEnv="none required" | |
15913 | else | |
15914 | echo "configure: failed program was:" >&5 | |
15915 | cat conftest.$ac_ext >&5 | |
15916 | fi | |
15917 | rm -f conftest* | |
15918 | test "$ac_cv_search_SQLAllocEnv" = "no" && for i in iodbc unixodbc odbc ; do | |
15919 | LIBS="-l$i $ac_func_search_save_LIBS" | |
15920 | cat > conftest.$ac_ext <<EOF | |
3c907f20 | 15921 | #line 15922 "configure" |
8647bec6 RG |
15922 | #include "confdefs.h" |
15923 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15924 | /* We use char because int might match the return type of a gcc2 | |
15925 | builtin and then its argument prototype would still apply. */ | |
15926 | char SQLAllocEnv(); | |
15927 | ||
15928 | int main() { | |
15929 | SQLAllocEnv() | |
15930 | ; return 0; } | |
15931 | EOF | |
3c907f20 | 15932 | if { (eval echo configure:15933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8647bec6 RG |
15933 | rm -rf conftest* |
15934 | ac_cv_search_SQLAllocEnv="-l$i" | |
15935 | break | |
15936 | else | |
15937 | echo "configure: failed program was:" >&5 | |
15938 | cat conftest.$ac_ext >&5 | |
15939 | fi | |
15940 | rm -f conftest* | |
15941 | done | |
15942 | LIBS="$ac_func_search_save_LIBS" | |
15943 | fi | |
15944 | ||
15945 | echo "$ac_t""$ac_cv_search_SQLAllocEnv" 1>&6 | |
15946 | if test "$ac_cv_search_SQLAllocEnv" != "no"; then | |
15947 | test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS" | |
15948 | ||
15949 | else : | |
fd3d7534 RG |
15950 | |
15951 | wxUSE_ODBC=builtin; | |
15952 | echo "configure: warning: can't find system Odbc library falling back to builtin " 1>&2 | |
15953 | ||
8647bec6 | 15954 | fi |
fd3d7534 RG |
15955 | fi |
15956 | if test "$wxUSE_ODBC" != "sys" ; then | |
15957 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
8647bec6 RG |
15958 | fi |
15959 | ||
15960 | fi | |
15961 | ||
6232543b | 15962 | fi |
21d1c967 GD |
15963 | |
15964 | if test "$wxUSE_REGEX" = "builtin" ; then | |
15965 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 15966 | fi |
21d1c967 GD |
15967 | if test "$wxUSE_ZLIB" = "builtin" ; then |
15968 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
15969 | fi |
15970 | ||
8284b0c5 | 15971 | |
21d1c967 | 15972 | if test "$wxUSE_OPENGL" = "yes"; then |
ac0c4cc3 | 15973 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
21d1c967 GD |
15974 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
15975 | elif test "$wxUSE_MSW" = 1; then | |
15976 | OPENGL_LIBS="-lopengl32 -lglu32" | |
15977 | else | |
a0b9e27f MB |
15978 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
15979 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
fd3d7534 | 15980 | echo "configure:15981: checking for GL/gl.h" >&5 |
a0b9e27f MB |
15981 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15982 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15983 | else | |
15984 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 15985 | #line 15986 "configure" |
10f2d63a | 15986 | #include "confdefs.h" |
21d1c967 | 15987 | #include <GL/gl.h> |
a0b9e27f MB |
15988 | EOF |
15989 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
fd3d7534 | 15990 | { (eval echo configure:15991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
15991 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15992 | if test -z "$ac_err"; then | |
15993 | rm -rf conftest* | |
15994 | eval "ac_cv_header_$ac_safe=yes" | |
15995 | else | |
15996 | echo "$ac_err" >&5 | |
15997 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 15998 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
15999 | rm -rf conftest* |
16000 | eval "ac_cv_header_$ac_safe=no" | |
703e0a69 | 16001 | fi |
a0b9e27f | 16002 | rm -f conftest* |
698dcdb6 | 16003 | fi |
a0b9e27f MB |
16004 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16005 | echo "$ac_t""yes" 1>&6 | |
16006 | ||
89e3b3e4 VZ |
16007 | found_gl=0 |
16008 | ||
a0b9e27f | 16009 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 |
fd3d7534 | 16010 | echo "configure:16011: checking for -lGL" >&5 |
a0b9e27f | 16011 | |
21d1c967 | 16012 | ac_find_libraries= |
2b5f62a0 | 16013 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
16014 | do |
16015 | for ac_extension in a so sl dylib; do | |
16016 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
16017 | ac_find_libraries=$ac_dir | |
16018 | break 2 | |
16019 | fi | |
16020 | done | |
16021 | done | |
16022 | ||
16023 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 16024 | |
21d1c967 GD |
16025 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
16026 | result=$? | |
16027 | if test $result = 0; then | |
16028 | ac_path_to_link="" | |
16029 | else | |
16030 | ac_path_to_link=" -L$ac_find_libraries" | |
16031 | fi | |
16032 | ||
89e3b3e4 VZ |
16033 | if test "$ac_path_to_link" != " -L/usr/lib" ; then |
16034 | LDFLAGS_GL="$ac_path_to_link" | |
21d1c967 | 16035 | fi |
89e3b3e4 VZ |
16036 | |
16037 | ||
16038 | ac_find_libraries= | |
16039 | for ac_dir in $SEARCH_LIB /usr/lib; | |
16040 | do | |
16041 | for ac_extension in a so sl dylib; do | |
16042 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
16043 | ac_find_libraries=$ac_dir | |
16044 | break 2 | |
16045 | fi | |
16046 | done | |
16047 | done | |
16048 | ||
16049 | if test "$ac_find_libraries" != "" ; then | |
16050 | ||
16051 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
16052 | result=$? | |
16053 | if test $result = 0; then | |
16054 | ac_path_to_link="" | |
16055 | else | |
16056 | ac_path_to_link=" -L$ac_find_libraries" | |
16057 | fi | |
16058 | ||
16059 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
16060 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
16061 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
16062 | fi | |
16063 | ||
16064 | found_gl=1 | |
16065 | OPENGL_LIBS="-lGL -lGLU" | |
16066 | echo "$ac_t""yes" 1>&6 | |
16067 | fi | |
16068 | fi | |
16069 | ||
16070 | if "$found_gl" != 1; then | |
a0b9e27f MB |
16071 | echo "$ac_t""no" 1>&6 |
16072 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
fd3d7534 | 16073 | echo "configure:16074: checking for -lMesaGL" >&5 |
a0b9e27f | 16074 | |
21d1c967 | 16075 | ac_find_libraries= |
2b5f62a0 | 16076 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
16077 | do |
16078 | for ac_extension in a so sl dylib; do | |
16079 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
16080 | ac_find_libraries=$ac_dir | |
16081 | break 2 | |
16082 | fi | |
16083 | done | |
16084 | done | |
16085 | ||
16086 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 16087 | |
21d1c967 GD |
16088 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
16089 | result=$? | |
16090 | if test $result = 0; then | |
16091 | ac_path_to_link="" | |
16092 | else | |
16093 | ac_path_to_link=" -L$ac_find_libraries" | |
16094 | fi | |
16095 | ||
16096 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
16097 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
a0b9e27f | 16098 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 16099 | else |
a0b9e27f | 16100 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
16101 | fi |
16102 | fi | |
a0b9e27f MB |
16103 | |
16104 | else | |
16105 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 16106 | fi |
52127426 | 16107 | |
8284b0c5 | 16108 | |
21d1c967 | 16109 | if test "x$OPENGL_LIBS" = "x"; then |
a0b9e27f | 16110 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } |
21d1c967 GD |
16111 | fi |
16112 | fi | |
90dd450c | 16113 | |
21d1c967 | 16114 | if test "$wxUSE_OPENGL" = "yes"; then |
a0b9e27f | 16115 | cat >> confdefs.h <<\EOF |
21d1c967 | 16116 | #define wxUSE_OPENGL 1 |
a0b9e27f | 16117 | EOF |
21d1c967 | 16118 | |
a0b9e27f | 16119 | cat >> confdefs.h <<\EOF |
21d1c967 | 16120 | #define wxUSE_GLCANVAS 1 |
a0b9e27f | 16121 | EOF |
21d1c967 GD |
16122 | |
16123 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
16124 | fi | |
10f2d63a | 16125 | fi |
21d1c967 GD |
16126 | |
16127 | if test -z "$TOOLKIT_VPATH" ; then | |
16128 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 16129 | fi |
21d1c967 GD |
16130 | |
16131 | if test -n "$TOOLKIT" ; then | |
16132 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
16133 | fi | |
16134 | ||
16135 | lib_unicode_suffix= | |
16136 | if test "$wxUSE_UNICODE" = "yes"; then | |
16137 | lib_unicode_suffix=u | |
90dd450c | 16138 | fi |
698dcdb6 | 16139 | |
21d1c967 GD |
16140 | lib_debug_suffix= |
16141 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
16142 | lib_debug_suffix=d | |
16143 | fi | |
698dcdb6 | 16144 | |
2b5f62a0 VZ |
16145 | WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
16146 | ||
16147 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
16148 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
16149 | |
16150 | if test "$cross_compiling" = "yes"; then | |
16151 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
16152 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
16153 | fi | |
16154 | ||
16155 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
16156 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
2b5f62a0 | 16157 | WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" |
21d1c967 GD |
16158 | |
16159 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
16160 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
16161 | ||
16162 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
16163 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
16164 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
16165 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16166 | ||
16167 | case "${host}" in | |
16168 | *-*-cygwin* | *-*-mingw32* ) | |
16169 | ||
a0b9e27f MB |
16170 | |
16171 | ||
17234b26 | 16172 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
16173 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
16174 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
16175 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
16176 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16177 | else | |
16178 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
16179 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16180 | fi | |
16181 | ;; | |
16182 | ||
16183 | *-*-darwin* ) | |
1542ea39 | 16184 | |
05159a27 GD |
16185 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
16186 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
16187 | ||
16188 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
16189 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
16190 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
16191 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16192 | ||
21d1c967 | 16193 | if test "$wxUSE_MAC" = 1; then |
f346733b GD |
16194 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" |
16195 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
21d1c967 GD |
16196 | fi |
16197 | ;; | |
16198 | esac | |
16199 | ||
16200 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
16201 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
16202 | ||
16203 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
16204 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
16205 | ||
16206 | if test "$wxUSE_OPENGL" = "yes"; then | |
16207 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
16208 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
16209 | fi | |
16210 | ||
8284b0c5 MB |
16211 | |
16212 | ||
21d1c967 GD |
16213 | if test "$wxUSE_SHARED" = "yes"; then |
16214 | case "${host}" in | |
16215 | *-pc-os2_emx | *-pc-os2-emx | \ | |
16216 | *-pc-msdosdjgpp ) | |
16217 | wxUSE_SHARED=no | |
a0b9e27f | 16218 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 |
21d1c967 GD |
16219 | ;; |
16220 | esac | |
16221 | fi | |
16222 | ||
2b5f62a0 VZ |
16223 | if test "$wxUSE_SHARED" = "yes"; then |
16224 | ||
16225 | if test "$wxUSE_OPENGL" = "yes"; then | |
16226 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
16227 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
16228 | else | |
16229 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
16230 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
16231 | fi | |
16232 | ||
16233 | if test "$GCC" = "yes"; then | |
16234 | PIC_FLAG="-fPIC" | |
16235 | fi | |
16236 | ||
16237 | ||
16238 | ||
16239 | found_versioning=no | |
16240 | ||
b4eecb7e | 16241 | |
2b5f62a0 VZ |
16242 | if test $found_versioning = no ; then |
16243 | echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6 | |
fd3d7534 | 16244 | echo "configure:16245: checking if the linker accepts --version-script" >&5 |
2b5f62a0 VZ |
16245 | if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then |
16246 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16247 | else | |
16248 | ||
16249 | echo "VER_1 { *; };" >conftest.sym | |
16250 | echo "int main() { return 0; }" >conftest.cpp | |
16251 | ||
16252 | if { ac_try=' | |
16253 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
fd3d7534 | 16254 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then |
2b5f62a0 VZ |
16255 | if test -s conftest.stderr ; then |
16256 | wx_cv_version_script=no | |
16257 | else | |
16258 | wx_cv_version_script=yes | |
16259 | fi | |
16260 | else | |
16261 | wx_cv_version_script=no | |
16262 | fi | |
16263 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
16264 | ||
16265 | fi | |
16266 | ||
16267 | echo "$ac_t""$wx_cv_version_script" 1>&6 | |
16268 | if test $wx_cv_version_script = yes ; then | |
16269 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script" | |
16270 | fi | |
16271 | fi | |
21d1c967 | 16272 | |
21d1c967 GD |
16273 | |
16274 | SHARED_LD="${CXX} -shared -o" | |
16275 | ||
16276 | case "${host}" in | |
16277 | *-hp-hpux* ) | |
ad2622f1 | 16278 | if test "$GCC" = "yes"; then |
85d5e282 | 16279 | SHARED_LD="${CXX} -shared ${PIC_FLAG} -o" |
21d1c967 GD |
16280 | else |
16281 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
16282 | ||
16283 | SHARED_LD="${CXX} -b -o" | |
16284 | PIC_FLAG="+Z" | |
16285 | fi | |
16286 | ||
16287 | if test "$wxUSE_OPENGL" = "yes"; then | |
16288 | WX_ALL_INSTALLED="preinstall_gl" | |
16289 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
16290 | else | |
16291 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
16292 | fi | |
16293 | ;; | |
16294 | ||
16295 | *-*-linux* ) | |
16296 | if test "$GCC" != "yes"; then | |
a0b9e27f | 16297 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 |
fd3d7534 | 16298 | echo "configure:16299: checking for Intel compiler" >&5 |
a0b9e27f MB |
16299 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
16300 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16301 | else | |
16302 | ||
16303 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 16304 | #line 16305 "configure" |
698dcdb6 | 16305 | #include "confdefs.h" |
90dd450c | 16306 | |
a0b9e27f | 16307 | int main() { |
90dd450c | 16308 | |
21d1c967 GD |
16309 | #ifndef __INTEL_COMPILER |
16310 | #error Not icc | |
16311 | #endif | |
a0b9e27f MB |
16312 | |
16313 | ; return 0; } | |
16314 | EOF | |
fd3d7534 | 16315 | if { (eval echo configure:16316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16316 | rm -rf conftest* |
21d1c967 | 16317 | wx_cv_prog_icc=yes |
6232543b | 16318 | else |
a0b9e27f MB |
16319 | echo "configure: failed program was:" >&5 |
16320 | cat conftest.$ac_ext >&5 | |
16321 | rm -rf conftest* | |
16322 | wx_cv_prog_icc=no | |
16323 | ||
5c6fa7d2 | 16324 | fi |
a0b9e27f MB |
16325 | rm -f conftest* |
16326 | ||
247f5006 | 16327 | fi |
a0b9e27f MB |
16328 | |
16329 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
21d1c967 GD |
16330 | if test "$wx_cv_prog_icc" = "yes"; then |
16331 | PIC_FLAG="-KPIC" | |
16332 | fi | |
16333 | fi | |
16334 | ||
16335 | if test "$wxUSE_SONAME" = "yes" ; then | |
16336 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
16337 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
16338 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
16339 | fi | |
16340 | ;; | |
16341 | ||
16342 | *-*-solaris2* ) | |
16343 | if test "$GCC" = yes ; then | |
16344 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
16345 | else | |
16346 | SHARED_LD="${CXX} -G -o" | |
16347 | PIC_FLAG="-KPIC" | |
16348 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
16349 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
16350 | fi | |
16351 | ;; | |
16352 | ||
16353 | *-*-darwin* ) | |
b2fee376 GD |
16354 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL" |
16355 | CFLAGS="$CFLAGS -fno-common" | |
16356 | CXXFLAGS="$CXXFLAGS -fno-common" | |
21d1c967 GD |
16357 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" |
16358 | PIC_FLAG="-dynamic -fPIC" | |
f346733b | 16359 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}" |
05159a27 | 16360 | SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}" |
21d1c967 GD |
16361 | ;; |
16362 | ||
16363 | *-*-aix* ) | |
2b5f62a0 VZ |
16364 | if test "$GCC" != "yes"; then |
16365 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
321d2b14 | 16366 | set dummy makeC++SharedLib; ac_word=$2 |
a0b9e27f | 16367 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
fd3d7534 | 16368 | echo "configure:16369: checking for $ac_word" >&5 |
a0b9e27f MB |
16369 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then |
16370 | echo $ac_n "(cached) $ac_c" 1>&6 | |
321d2b14 VZ |
16371 | else |
16372 | if test -n "$AIX_CXX_LD"; then | |
16373 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
16374 | else | |
a0b9e27f MB |
16375 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16376 | ac_dummy="$PATH" | |
16377 | for ac_dir in $ac_dummy; do | |
16378 | test -z "$ac_dir" && ac_dir=. | |
16379 | if test -f $ac_dir/$ac_word; then | |
16380 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
16381 | break | |
16382 | fi | |
16383 | done | |
16384 | IFS="$ac_save_ifs" | |
321d2b14 VZ |
16385 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
16386 | fi | |
16387 | fi | |
a0b9e27f | 16388 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" |
321d2b14 | 16389 | if test -n "$AIX_CXX_LD"; then |
a0b9e27f | 16390 | echo "$ac_t""$AIX_CXX_LD" 1>&6 |
321d2b14 | 16391 | else |
a0b9e27f | 16392 | echo "$ac_t""no" 1>&6 |
321d2b14 VZ |
16393 | fi |
16394 | ||
8284b0c5 | 16395 | |
2b5f62a0 VZ |
16396 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" |
16397 | fi | |
21d1c967 GD |
16398 | ;; |
16399 | ||
16400 | *-*-cygwin* | *-*-mingw32* ) | |
21d1c967 GD |
16401 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
16402 | ||
16403 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
16404 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
16405 | ||
16406 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
16407 | ||
f657dbe7 MB |
16408 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
16409 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
16410 | ||
16411 | if test "$wxUSE_OPENGL" = "yes"; then | |
16412 | LIBS="${LIBS} ${OPENGL_LIBS}" | |
21d1c967 GD |
16413 | fi |
16414 | ;; | |
16415 | ||
16416 | *-*-beos* ) | |
16417 | SHARED_LD="${LD} -shared -o" | |
16418 | ;; | |
16419 | ||
2b5f62a0 VZ |
16420 | *-*-irix* ) |
16421 | if test "$GCC" != "yes"; then | |
16422 | PIC_FLAG="-KPIC" | |
16423 | fi | |
16424 | ;; | |
16425 | ||
21d1c967 GD |
16426 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
16427 | *-*-sunos4* | \ | |
21d1c967 GD |
16428 | *-*-osf* | \ |
16429 | *-*-dgux5* | \ | |
16430 | *-*-sysv5* ) | |
16431 | ;; | |
16432 | ||
16433 | *) | |
a0b9e27f | 16434 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
21d1c967 GD |
16435 | esac |
16436 | ||
16437 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
16438 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
16439 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
16440 | fi | |
16441 | ||
16442 | WX_TARGET_LIBRARY_TYPE="so" | |
16443 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 16444 | fi |
10f2d63a | 16445 | |
21d1c967 GD |
16446 | if test "$wxUSE_SHARED" = "no"; then |
16447 | ||
16448 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
16449 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
16450 | fi | |
16451 | ||
ac0c4cc3 | 16452 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
21d1c967 GD |
16453 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
16454 | fi | |
16455 | ||
16456 | if test "$wxUSE_OPENGL" = "yes"; then | |
16457 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
16458 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
16459 | else | |
16460 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
16461 | fi | |
16462 | ||
16463 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
16464 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
16465 | ||
16466 | WX_TARGET_LIBRARY_TYPE="a" | |
16467 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
16468 | |
16469 | STATIC_FLAG="yes" | |
16470 | else | |
16471 | STATIC_FLAG="no" | |
90dd450c | 16472 | fi |
1e487827 | 16473 | |
93fac604 VZ |
16474 | MACRESCOMP="@#" |
16475 | MACSETFILE="@#" | |
36825681 | 16476 | MACRESWXCONFIG="#" |
21d1c967 GD |
16477 | if test "$wxUSE_MAC" = 1; then |
16478 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
16479 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
16480 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
16481 | # Extract the first word of "Rez", so it can be a program name with args. | |
16482 | set dummy Rez; ac_word=$2 | |
a0b9e27f | 16483 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
fd3d7534 | 16484 | echo "configure:16485: checking for $ac_word" >&5 |
a0b9e27f MB |
16485 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
16486 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b93d0d08 | 16487 | else |
21d1c967 GD |
16488 | if test -n "$RESCOMP"; then |
16489 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 16490 | else |
a0b9e27f MB |
16491 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16492 | ac_dummy="$PATH" | |
16493 | for ac_dir in $ac_dummy; do | |
16494 | test -z "$ac_dir" && ac_dir=. | |
16495 | if test -f $ac_dir/$ac_word; then | |
16496 | ac_cv_prog_RESCOMP="Rez" | |
16497 | break | |
16498 | fi | |
16499 | done | |
16500 | IFS="$ac_save_ifs" | |
21d1c967 | 16501 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 16502 | fi |
b93d0d08 | 16503 | fi |
a0b9e27f | 16504 | RESCOMP="$ac_cv_prog_RESCOMP" |
21d1c967 | 16505 | if test -n "$RESCOMP"; then |
a0b9e27f | 16506 | echo "$ac_t""$RESCOMP" 1>&6 |
90dd450c | 16507 | else |
a0b9e27f | 16508 | echo "$ac_t""no" 1>&6 |
90dd450c | 16509 | fi |
b93d0d08 | 16510 | |
21d1c967 GD |
16511 | # Extract the first word of "DeRez", so it can be a program name with args. |
16512 | set dummy DeRez; ac_word=$2 | |
a0b9e27f | 16513 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
fd3d7534 | 16514 | echo "configure:16515: checking for $ac_word" >&5 |
a0b9e27f MB |
16515 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
16516 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3a922bb4 | 16517 | else |
21d1c967 GD |
16518 | if test -n "$DEREZ"; then |
16519 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 16520 | else |
a0b9e27f MB |
16521 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16522 | ac_dummy="$PATH" | |
16523 | for ac_dir in $ac_dummy; do | |
16524 | test -z "$ac_dir" && ac_dir=. | |
16525 | if test -f $ac_dir/$ac_word; then | |
16526 | ac_cv_prog_DEREZ="DeRez" | |
16527 | break | |
16528 | fi | |
16529 | done | |
16530 | IFS="$ac_save_ifs" | |
21d1c967 | 16531 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 16532 | fi |
90dd450c | 16533 | fi |
a0b9e27f | 16534 | DEREZ="$ac_cv_prog_DEREZ" |
21d1c967 | 16535 | if test -n "$DEREZ"; then |
a0b9e27f | 16536 | echo "$ac_t""$DEREZ" 1>&6 |
90dd450c | 16537 | else |
a0b9e27f | 16538 | echo "$ac_t""no" 1>&6 |
3a922bb4 | 16539 | fi |
698dcdb6 | 16540 | |
36825681 GD |
16541 | # Extract the first word of "SetFile", so it can be a program name with args. |
16542 | set dummy SetFile; ac_word=$2 | |
16543 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fd3d7534 | 16544 | echo "configure:16545: checking for $ac_word" >&5 |
36825681 GD |
16545 | if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then |
16546 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16547 | else | |
16548 | if test -n "$SETFILE"; then | |
16549 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
16550 | else | |
16551 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
16552 | ac_dummy="$PATH" | |
16553 | for ac_dir in $ac_dummy; do | |
16554 | test -z "$ac_dir" && ac_dir=. | |
16555 | if test -f $ac_dir/$ac_word; then | |
16556 | ac_cv_prog_SETFILE="SetFile" | |
16557 | break | |
16558 | fi | |
16559 | done | |
16560 | IFS="$ac_save_ifs" | |
16561 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
16562 | fi | |
16563 | fi | |
16564 | SETFILE="$ac_cv_prog_SETFILE" | |
16565 | if test -n "$SETFILE"; then | |
16566 | echo "$ac_t""$SETFILE" 1>&6 | |
16567 | else | |
16568 | echo "$ac_t""no" 1>&6 | |
16569 | fi | |
16570 | ||
21d1c967 | 16571 | MACOSX_BUNDLE="bundle" |
36825681 GD |
16572 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" |
16573 | MACSETFILE="\$(SETFILE)" | |
16574 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o" | |
64440d77 DE |
16575 | elif test "$wxUSE_COCOA" = 1; then |
16576 | # Extract the first word of "Rez", so it can be a program name with args. | |
16577 | set dummy Rez; ac_word=$2 | |
16578 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fd3d7534 | 16579 | echo "configure:16580: checking for $ac_word" >&5 |
64440d77 DE |
16580 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
16581 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16582 | else | |
16583 | if test -n "$RESCOMP"; then | |
16584 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
16585 | else | |
16586 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
16587 | ac_dummy="$PATH" | |
16588 | for ac_dir in $ac_dummy; do | |
16589 | test -z "$ac_dir" && ac_dir=. | |
16590 | if test -f $ac_dir/$ac_word; then | |
16591 | ac_cv_prog_RESCOMP="Rez" | |
16592 | break | |
16593 | fi | |
16594 | done | |
16595 | IFS="$ac_save_ifs" | |
16596 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
16597 | fi | |
16598 | fi | |
16599 | RESCOMP="$ac_cv_prog_RESCOMP" | |
16600 | if test -n "$RESCOMP"; then | |
16601 | echo "$ac_t""$RESCOMP" 1>&6 | |
16602 | else | |
16603 | echo "$ac_t""no" 1>&6 | |
16604 | fi | |
16605 | ||
16606 | # Extract the first word of "DeRez", so it can be a program name with args. | |
16607 | set dummy DeRez; ac_word=$2 | |
16608 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fd3d7534 | 16609 | echo "configure:16610: checking for $ac_word" >&5 |
64440d77 DE |
16610 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
16611 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16612 | else | |
16613 | if test -n "$DEREZ"; then | |
16614 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
16615 | else | |
16616 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
16617 | ac_dummy="$PATH" | |
16618 | for ac_dir in $ac_dummy; do | |
16619 | test -z "$ac_dir" && ac_dir=. | |
16620 | if test -f $ac_dir/$ac_word; then | |
16621 | ac_cv_prog_DEREZ="DeRez" | |
16622 | break | |
16623 | fi | |
16624 | done | |
16625 | IFS="$ac_save_ifs" | |
16626 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
16627 | fi | |
16628 | fi | |
16629 | DEREZ="$ac_cv_prog_DEREZ" | |
16630 | if test -n "$DEREZ"; then | |
16631 | echo "$ac_t""$DEREZ" 1>&6 | |
16632 | else | |
16633 | echo "$ac_t""no" 1>&6 | |
16634 | fi | |
16635 | ||
16636 | # Extract the first word of "SetFile", so it can be a program name with args. | |
16637 | set dummy SetFile; ac_word=$2 | |
16638 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
fd3d7534 | 16639 | echo "configure:16640: checking for $ac_word" >&5 |
64440d77 DE |
16640 | if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then |
16641 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16642 | else | |
16643 | if test -n "$SETFILE"; then | |
16644 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
16645 | else | |
16646 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
16647 | ac_dummy="$PATH" | |
16648 | for ac_dir in $ac_dummy; do | |
16649 | test -z "$ac_dir" && ac_dir=. | |
16650 | if test -f $ac_dir/$ac_word; then | |
16651 | ac_cv_prog_SETFILE="SetFile" | |
16652 | break | |
16653 | fi | |
16654 | done | |
16655 | IFS="$ac_save_ifs" | |
16656 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
16657 | fi | |
16658 | fi | |
16659 | SETFILE="$ac_cv_prog_SETFILE" | |
16660 | if test -n "$SETFILE"; then | |
16661 | echo "$ac_t""$SETFILE" 1>&6 | |
16662 | else | |
16663 | echo "$ac_t""no" 1>&6 | |
16664 | fi | |
16665 | ||
16666 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
16667 | MACSETFILE="\$(SETFILE)" | |
16668 | MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o" | |
21d1c967 GD |
16669 | else |
16670 | if test "$wxUSE_PM" = 1; then | |
36825681 | 16671 | MACRESCOMP="emxbind -ep" |
90dd450c | 16672 | fi |
4f14bcd8 | 16673 | fi |
10f2d63a | 16674 | |
8284b0c5 | 16675 | |
a0b9e27f | 16676 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
fd3d7534 | 16677 | echo "configure:16678: checking for ANSI C header files" >&5 |
a0b9e27f MB |
16678 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
16679 | echo $ac_n "(cached) $ac_c" 1>&6 | |
52127426 | 16680 | else |
a0b9e27f | 16681 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 16682 | #line 16683 "configure" |
52127426 | 16683 | #include "confdefs.h" |
a0b9e27f MB |
16684 | #include <stdlib.h> |
16685 | #include <stdarg.h> | |
16686 | #include <string.h> | |
16687 | #include <float.h> | |
16688 | EOF | |
16689 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
fd3d7534 | 16690 | { (eval echo configure:16691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
16691 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16692 | if test -z "$ac_err"; then | |
16693 | rm -rf conftest* | |
16694 | ac_cv_header_stdc=yes | |
16695 | else | |
16696 | echo "$ac_err" >&5 | |
16697 | echo "configure: failed program was:" >&5 | |
16698 | cat conftest.$ac_ext >&5 | |
16699 | rm -rf conftest* | |
16700 | ac_cv_header_stdc=no | |
16701 | fi | |
16702 | rm -f conftest* | |
16703 | ||
16704 | if test $ac_cv_header_stdc = yes; then | |
16705 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
16706 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 16707 | #line 16708 "configure" |
a0b9e27f MB |
16708 | #include "confdefs.h" |
16709 | #include <string.h> | |
16710 | EOF | |
16711 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16712 | egrep "memchr" >/dev/null 2>&1; then | |
16713 | : | |
16714 | else | |
16715 | rm -rf conftest* | |
16716 | ac_cv_header_stdc=no | |
16717 | fi | |
16718 | rm -f conftest* | |
16719 | ||
16720 | fi | |
16721 | ||
16722 | if test $ac_cv_header_stdc = yes; then | |
16723 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
16724 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 16725 | #line 16726 "configure" |
a0b9e27f MB |
16726 | #include "confdefs.h" |
16727 | #include <stdlib.h> | |
16728 | EOF | |
16729 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16730 | egrep "free" >/dev/null 2>&1; then | |
16731 | : | |
7b4a847f | 16732 | else |
a0b9e27f MB |
16733 | rm -rf conftest* |
16734 | ac_cv_header_stdc=no | |
52127426 | 16735 | fi |
a0b9e27f MB |
16736 | rm -f conftest* |
16737 | ||
52127426 | 16738 | fi |
a0b9e27f MB |
16739 | |
16740 | if test $ac_cv_header_stdc = yes; then | |
16741 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
16742 | if test "$cross_compiling" = yes; then | |
247f5006 VZ |
16743 | : |
16744 | else | |
a0b9e27f | 16745 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 16746 | #line 16747 "configure" |
a0b9e27f MB |
16747 | #include "confdefs.h" |
16748 | #include <ctype.h> | |
16749 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
16750 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
16751 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
16752 | int main () { int i; for (i = 0; i < 256; i++) | |
16753 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
16754 | exit (0); } | |
247f5006 | 16755 | |
a0b9e27f | 16756 | EOF |
fd3d7534 | 16757 | if { (eval echo configure:16758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
16758 | then |
16759 | : | |
16760 | else | |
16761 | echo "configure: failed program was:" >&5 | |
16762 | cat conftest.$ac_ext >&5 | |
16763 | rm -fr conftest* | |
16764 | ac_cv_header_stdc=no | |
16765 | fi | |
16766 | rm -fr conftest* | |
16767 | fi | |
16768 | ||
16769 | fi | |
16770 | fi | |
16771 | ||
16772 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
16773 | if test $ac_cv_header_stdc = yes; then | |
16774 | cat >> confdefs.h <<\EOF | |
16775 | #define STDC_HEADERS 1 | |
16776 | EOF | |
8284b0c5 MB |
16777 | |
16778 | fi | |
16779 | ||
a0b9e27f | 16780 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
fd3d7534 | 16781 | echo "configure:16782: checking for mode_t" >&5 |
a0b9e27f MB |
16782 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
16783 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16784 | else |
a0b9e27f | 16785 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 16786 | #line 16787 "configure" |
8284b0c5 | 16787 | #include "confdefs.h" |
a0b9e27f MB |
16788 | #include <sys/types.h> |
16789 | #if STDC_HEADERS | |
16790 | #include <stdlib.h> | |
16791 | #include <stddef.h> | |
8284b0c5 | 16792 | #endif |
a0b9e27f MB |
16793 | EOF |
16794 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16795 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16796 | rm -rf conftest* | |
16797 | ac_cv_type_mode_t=yes | |
5c6fa7d2 | 16798 | else |
a0b9e27f MB |
16799 | rm -rf conftest* |
16800 | ac_cv_type_mode_t=no | |
16801 | fi | |
16802 | rm -f conftest* | |
16803 | ||
8284b0c5 | 16804 | fi |
a0b9e27f MB |
16805 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
16806 | if test $ac_cv_type_mode_t = no; then | |
16807 | cat >> confdefs.h <<\EOF | |
16808 | #define mode_t int | |
16809 | EOF | |
16810 | ||
8284b0c5 | 16811 | fi |
a0b9e27f MB |
16812 | |
16813 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
fd3d7534 | 16814 | echo "configure:16815: checking for off_t" >&5 |
a0b9e27f MB |
16815 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
16816 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16817 | else | |
16818 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 16819 | #line 16820 "configure" |
a0b9e27f MB |
16820 | #include "confdefs.h" |
16821 | #include <sys/types.h> | |
16822 | #if STDC_HEADERS | |
16823 | #include <stdlib.h> | |
16824 | #include <stddef.h> | |
16825 | #endif | |
16826 | EOF | |
16827 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16828 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16829 | rm -rf conftest* | |
16830 | ac_cv_type_off_t=yes | |
247f5006 | 16831 | else |
a0b9e27f MB |
16832 | rm -rf conftest* |
16833 | ac_cv_type_off_t=no | |
16834 | fi | |
16835 | rm -f conftest* | |
247f5006 | 16836 | |
a0b9e27f MB |
16837 | fi |
16838 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
16839 | if test $ac_cv_type_off_t = no; then | |
16840 | cat >> confdefs.h <<\EOF | |
90dd450c | 16841 | #define off_t long |
a0b9e27f | 16842 | EOF |
10f2d63a | 16843 | |
90dd450c | 16844 | fi |
10f2d63a | 16845 | |
a0b9e27f | 16846 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
fd3d7534 | 16847 | echo "configure:16848: checking for pid_t" >&5 |
a0b9e27f MB |
16848 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
16849 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 16850 | else |
a0b9e27f | 16851 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 16852 | #line 16853 "configure" |
10f2d63a | 16853 | #include "confdefs.h" |
a0b9e27f MB |
16854 | #include <sys/types.h> |
16855 | #if STDC_HEADERS | |
16856 | #include <stdlib.h> | |
16857 | #include <stddef.h> | |
8284b0c5 | 16858 | #endif |
a0b9e27f MB |
16859 | EOF |
16860 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16861 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16862 | rm -rf conftest* | |
90dd450c | 16863 | ac_cv_type_pid_t=yes |
698dcdb6 | 16864 | else |
a0b9e27f MB |
16865 | rm -rf conftest* |
16866 | ac_cv_type_pid_t=no | |
8284b0c5 | 16867 | fi |
a0b9e27f | 16868 | rm -f conftest* |
247f5006 | 16869 | |
a0b9e27f MB |
16870 | fi |
16871 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
16872 | if test $ac_cv_type_pid_t = no; then | |
16873 | cat >> confdefs.h <<\EOF | |
90dd450c | 16874 | #define pid_t int |
a0b9e27f | 16875 | EOF |
10f2d63a | 16876 | |
7b4a847f RR |
16877 | fi |
16878 | ||
a0b9e27f | 16879 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
fd3d7534 | 16880 | echo "configure:16881: checking for size_t" >&5 |
a0b9e27f MB |
16881 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
16882 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 16883 | else |
a0b9e27f | 16884 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 16885 | #line 16886 "configure" |
7b4a847f | 16886 | #include "confdefs.h" |
a0b9e27f MB |
16887 | #include <sys/types.h> |
16888 | #if STDC_HEADERS | |
16889 | #include <stdlib.h> | |
16890 | #include <stddef.h> | |
8284b0c5 | 16891 | #endif |
a0b9e27f MB |
16892 | EOF |
16893 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16894 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16895 | rm -rf conftest* | |
90dd450c | 16896 | ac_cv_type_size_t=yes |
18dbb1f6 | 16897 | else |
a0b9e27f MB |
16898 | rm -rf conftest* |
16899 | ac_cv_type_size_t=no | |
52127426 | 16900 | fi |
a0b9e27f | 16901 | rm -f conftest* |
247f5006 | 16902 | |
a0b9e27f MB |
16903 | fi |
16904 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
16905 | if test $ac_cv_type_size_t = no; then | |
16906 | cat >> confdefs.h <<\EOF | |
90dd450c | 16907 | #define size_t unsigned |
a0b9e27f | 16908 | EOF |
90dd450c VZ |
16909 | |
16910 | fi | |
16911 | ||
a0b9e27f | 16912 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
fd3d7534 | 16913 | echo "configure:16914: checking for uid_t in sys/types.h" >&5 |
a0b9e27f MB |
16914 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
16915 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a | 16916 | else |
a0b9e27f | 16917 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 16918 | #line 16919 "configure" |
b3e8d00a | 16919 | #include "confdefs.h" |
90dd450c | 16920 | #include <sys/types.h> |
a0b9e27f | 16921 | EOF |
90dd450c VZ |
16922 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
16923 | egrep "uid_t" >/dev/null 2>&1; then | |
a0b9e27f | 16924 | rm -rf conftest* |
90dd450c | 16925 | ac_cv_type_uid_t=yes |
b3e8d00a | 16926 | else |
a0b9e27f | 16927 | rm -rf conftest* |
90dd450c | 16928 | ac_cv_type_uid_t=no |
b3e8d00a | 16929 | fi |
90dd450c | 16930 | rm -f conftest* |
b3e8d00a | 16931 | |
4f14bcd8 | 16932 | fi |
247f5006 | 16933 | |
a0b9e27f MB |
16934 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
16935 | if test $ac_cv_type_uid_t = no; then | |
16936 | cat >> confdefs.h <<\EOF | |
90dd450c | 16937 | #define uid_t int |
a0b9e27f | 16938 | EOF |
247f5006 | 16939 | |
a0b9e27f | 16940 | cat >> confdefs.h <<\EOF |
90dd450c | 16941 | #define gid_t int |
a0b9e27f | 16942 | EOF |
4f14bcd8 | 16943 | |
b3e8d00a | 16944 | fi |
b3e8d00a | 16945 | |
8284b0c5 MB |
16946 | |
16947 | ||
a0b9e27f MB |
16948 | ac_ext=C |
16949 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 16950 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16951 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16952 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16953 | cross_compiling=$ac_cv_prog_cxx_cross | |
90dd450c | 16954 | |
a0b9e27f | 16955 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
fd3d7534 | 16956 | echo "configure:16957: checking if size_t is unsigned int" >&5 |
a0b9e27f MB |
16957 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
16958 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 16959 | else |
ef33c576 VZ |
16960 | |
16961 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 16962 | #line 16963 "configure" |
10f2d63a | 16963 | #include "confdefs.h" |
90dd450c | 16964 | #include <stddef.h> |
a0b9e27f | 16965 | int main() { |
90dd450c VZ |
16966 | |
16967 | return 0; } | |
16968 | ||
16969 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
16970 | ||
16971 | int bar() { | |
a0b9e27f MB |
16972 | |
16973 | ; return 0; } | |
16974 | EOF | |
fd3d7534 | 16975 | if { (eval echo configure:16976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16976 | rm -rf conftest* |
90dd450c | 16977 | wx_cv_size_t_is_uint=no |
698dcdb6 | 16978 | else |
a0b9e27f MB |
16979 | echo "configure: failed program was:" >&5 |
16980 | cat conftest.$ac_ext >&5 | |
16981 | rm -rf conftest* | |
16982 | wx_cv_size_t_is_uint=yes | |
16983 | ||
5c6fa7d2 | 16984 | fi |
a0b9e27f | 16985 | rm -f conftest* |
ef33c576 | 16986 | |
8284b0c5 | 16987 | |
247f5006 | 16988 | fi |
a0b9e27f MB |
16989 | |
16990 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
4f14bcd8 | 16991 | |
90dd450c | 16992 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
a0b9e27f | 16993 | cat >> confdefs.h <<\EOF |
90dd450c | 16994 | #define wxSIZE_T_IS_UINT 1 |
a0b9e27f | 16995 | EOF |
698dcdb6 | 16996 | |
90dd450c | 16997 | else |
a0b9e27f | 16998 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 |
fd3d7534 | 16999 | echo "configure:17000: checking if size_t is unsigned long" >&5 |
a0b9e27f MB |
17000 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
17001 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 17002 | else |
a0b9e27f | 17003 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 17004 | #line 17005 "configure" |
10f2d63a | 17005 | #include "confdefs.h" |
90dd450c | 17006 | #include <stddef.h> |
a0b9e27f | 17007 | int main() { |
90dd450c VZ |
17008 | |
17009 | return 0; } | |
17010 | ||
17011 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
17012 | ||
17013 | int bar() { | |
a0b9e27f MB |
17014 | |
17015 | ; return 0; } | |
17016 | EOF | |
fd3d7534 | 17017 | if { (eval echo configure:17018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 17018 | rm -rf conftest* |
90dd450c | 17019 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 17020 | else |
a0b9e27f MB |
17021 | echo "configure: failed program was:" >&5 |
17022 | cat conftest.$ac_ext >&5 | |
17023 | rm -rf conftest* | |
17024 | wx_cv_size_t_is_ulong=yes | |
17025 | ||
5c6fa7d2 | 17026 | fi |
a0b9e27f MB |
17027 | rm -f conftest* |
17028 | ||
247f5006 | 17029 | fi |
a0b9e27f MB |
17030 | |
17031 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
10f2d63a | 17032 | |
90dd450c | 17033 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
a0b9e27f | 17034 | cat >> confdefs.h <<\EOF |
90dd450c | 17035 | #define wxSIZE_T_IS_ULONG 1 |
a0b9e27f | 17036 | EOF |
4f14bcd8 GD |
17037 | |
17038 | fi | |
90dd450c | 17039 | fi |
1e487827 | 17040 | |
90dd450c | 17041 | ac_ext=c |
a0b9e27f | 17042 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17043 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17044 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17045 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17046 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 17047 | |
5c6fa7d2 | 17048 | |
8284b0c5 | 17049 | |
a0b9e27f | 17050 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
fd3d7534 | 17051 | echo "configure:17052: checking for pw_gecos in struct passwd" >&5 |
a0b9e27f MB |
17052 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
17053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 17054 | else |
a0b9e27f MB |
17055 | |
17056 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 17057 | #line 17058 "configure" |
4f14bcd8 | 17058 | #include "confdefs.h" |
90dd450c | 17059 | #include <pwd.h> |
a0b9e27f | 17060 | int main() { |
f6bcfd97 | 17061 | |
90dd450c VZ |
17062 | char *p; |
17063 | struct passwd *pw; | |
17064 | p = pw->pw_gecos; | |
a0b9e27f MB |
17065 | |
17066 | ; return 0; } | |
17067 | EOF | |
fd3d7534 | 17068 | if { (eval echo configure:17069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17069 | rm -rf conftest* |
17070 | ||
90dd450c | 17071 | wx_cv_struct_pw_gecos=yes |
a0b9e27f | 17072 | |
10f2d63a | 17073 | else |
a0b9e27f MB |
17074 | echo "configure: failed program was:" >&5 |
17075 | cat conftest.$ac_ext >&5 | |
17076 | rm -rf conftest* | |
17077 | ||
90dd450c | 17078 | wx_cv_struct_pw_gecos=no |
a0b9e27f MB |
17079 | |
17080 | ||
5c6fa7d2 | 17081 | fi |
a0b9e27f MB |
17082 | rm -f conftest* |
17083 | ||
247f5006 VZ |
17084 | |
17085 | fi | |
a0b9e27f MB |
17086 | |
17087 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
c521c494 | 17088 | |
90dd450c | 17089 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
a0b9e27f | 17090 | cat >> confdefs.h <<\EOF |
90dd450c | 17091 | #define HAVE_PW_GECOS 1 |
a0b9e27f | 17092 | EOF |
c521c494 | 17093 | |
90dd450c | 17094 | fi |
4f14bcd8 | 17095 | |
8284b0c5 | 17096 | |
d29b553b | 17097 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
a0b9e27f | 17098 | cat >> confdefs.h <<\EOF |
d74f4b5a | 17099 | #define wxUSE_WCHAR_T 1 |
a0b9e27f | 17100 | EOF |
d74f4b5a | 17101 | |
8284b0c5 | 17102 | |
d74f4b5a VZ |
17103 | WCSLEN_FOUND=0 |
17104 | WCHAR_LINK= | |
a0b9e27f | 17105 | for ac_func in wcslen |
7a30264c | 17106 | do |
a0b9e27f | 17107 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
fd3d7534 | 17108 | echo "configure:17109: checking for $ac_func" >&5 |
a0b9e27f MB |
17109 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17110 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17111 | else | |
17112 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 17113 | #line 17114 "configure" |
4f14bcd8 | 17114 | #include "confdefs.h" |
7a30264c | 17115 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17116 | which can conflict with char $ac_func(); below. */ |
7a30264c | 17117 | #include <assert.h> |
4f14bcd8 GD |
17118 | /* Override any gcc2 internal prototype to avoid an error. */ |
17119 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17120 | builtin and then its argument prototype would still apply. */ |
17121 | char $ac_func(); | |
17122 | ||
17123 | int main() { | |
17124 | ||
7a30264c VZ |
17125 | /* The GNU C library defines this for functions which it implements |
17126 | to always fail with ENOSYS. Some functions are actually named | |
17127 | something starting with __ and the normal name is an alias. */ | |
17128 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17129 | choke me | |
17130 | #else | |
a0b9e27f | 17131 | $ac_func(); |
7a30264c VZ |
17132 | #endif |
17133 | ||
a0b9e27f MB |
17134 | ; return 0; } |
17135 | EOF | |
fd3d7534 | 17136 | if { (eval echo configure:17137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17137 | rm -rf conftest* |
17138 | eval "ac_cv_func_$ac_func=yes" | |
17139 | else | |
17140 | echo "configure: failed program was:" >&5 | |
17141 | cat conftest.$ac_ext >&5 | |
17142 | rm -rf conftest* | |
17143 | eval "ac_cv_func_$ac_func=no" | |
17144 | fi | |
17145 | rm -f conftest* | |
17146 | fi | |
17147 | ||
17148 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17149 | echo "$ac_t""yes" 1>&6 | |
17150 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17151 | cat >> confdefs.h <<EOF | |
17152 | #define $ac_tr_func 1 | |
17153 | EOF | |
d74f4b5a | 17154 | WCSLEN_FOUND=1 |
a0b9e27f MB |
17155 | else |
17156 | echo "$ac_t""no" 1>&6 | |
7a30264c VZ |
17157 | fi |
17158 | done | |
9d8deca0 | 17159 | |
8284b0c5 | 17160 | |
d74f4b5a | 17161 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 17162 | if test "$TOOLKIT" = "MSW"; then |
a0b9e27f | 17163 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
fd3d7534 | 17164 | echo "configure:17165: checking for wcslen in -lmsvcrt" >&5 |
a0b9e27f MB |
17165 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
17166 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17167 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17168 | else |
a0b9e27f | 17169 | ac_save_LIBS="$LIBS" |
7a30264c | 17170 | LIBS="-lmsvcrt $LIBS" |
a0b9e27f | 17171 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 17172 | #line 17173 "configure" |
10f2d63a | 17173 | #include "confdefs.h" |
4f14bcd8 GD |
17174 | /* Override any gcc2 internal prototype to avoid an error. */ |
17175 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17176 | builtin and then its argument prototype would still apply. */ |
17177 | char wcslen(); | |
17178 | ||
17179 | int main() { | |
17180 | wcslen() | |
17181 | ; return 0; } | |
17182 | EOF | |
fd3d7534 | 17183 | if { (eval echo configure:17184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17184 | rm -rf conftest* |
17185 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17186 | else | |
17187 | echo "configure: failed program was:" >&5 | |
17188 | cat conftest.$ac_ext >&5 | |
17189 | rm -rf conftest* | |
17190 | eval "ac_cv_lib_$ac_lib_var=no" | |
17191 | fi | |
17192 | rm -f conftest* | |
17193 | LIBS="$ac_save_LIBS" | |
17194 | ||
17195 | fi | |
17196 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17197 | echo "$ac_t""yes" 1>&6 | |
d74f4b5a | 17198 | WCHAR_OK=1 |
a0b9e27f MB |
17199 | else |
17200 | echo "$ac_t""no" 1>&6 | |
d29b553b | 17201 | fi |
698dcdb6 | 17202 | |
7a30264c | 17203 | else |
a0b9e27f | 17204 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
fd3d7534 | 17205 | echo "configure:17206: checking for wcslen in -lw" >&5 |
a0b9e27f MB |
17206 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
17207 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17208 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 17209 | else |
a0b9e27f | 17210 | ac_save_LIBS="$LIBS" |
7a30264c | 17211 | LIBS="-lw $LIBS" |
a0b9e27f | 17212 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 17213 | #line 17214 "configure" |
95c8801c | 17214 | #include "confdefs.h" |
4f14bcd8 GD |
17215 | /* Override any gcc2 internal prototype to avoid an error. */ |
17216 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17217 | builtin and then its argument prototype would still apply. */ |
17218 | char wcslen(); | |
52127426 | 17219 | |
a0b9e27f MB |
17220 | int main() { |
17221 | wcslen() | |
17222 | ; return 0; } | |
17223 | EOF | |
fd3d7534 | 17224 | if { (eval echo configure:17225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17225 | rm -rf conftest* |
17226 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17227 | else | |
17228 | echo "configure: failed program was:" >&5 | |
17229 | cat conftest.$ac_ext >&5 | |
17230 | rm -rf conftest* | |
17231 | eval "ac_cv_lib_$ac_lib_var=no" | |
17232 | fi | |
17233 | rm -f conftest* | |
17234 | LIBS="$ac_save_LIBS" | |
17235 | ||
17236 | fi | |
17237 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17238 | echo "$ac_t""yes" 1>&6 | |
17239 | ||
7a30264c | 17240 | WCHAR_LINK=" -lw" |
d74f4b5a | 17241 | WCSLEN_FOUND=1 |
a0b9e27f MB |
17242 | |
17243 | else | |
17244 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17245 | fi |
10f2d63a | 17246 | |
7a30264c | 17247 | fi |
d29b553b | 17248 | fi |
95c8801c | 17249 | |
d74f4b5a | 17250 | if test "$WCSLEN_FOUND" = 1; then |
a0b9e27f | 17251 | cat >> confdefs.h <<\EOF |
d74f4b5a | 17252 | #define HAVE_WCSLEN 1 |
a0b9e27f | 17253 | EOF |
10f2d63a | 17254 | |
d74f4b5a | 17255 | fi |
52127426 | 17256 | |
a0b9e27f | 17257 | for ac_func in wcsrtombs |
eb4efbdc | 17258 | do |
a0b9e27f | 17259 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
fd3d7534 | 17260 | echo "configure:17261: checking for $ac_func" >&5 |
a0b9e27f MB |
17261 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17262 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17263 | else | |
17264 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 17265 | #line 17266 "configure" |
eb4efbdc VZ |
17266 | #include "confdefs.h" |
17267 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17268 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
17269 | #include <assert.h> |
17270 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4f14bcd8 | 17271 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17272 | builtin and then its argument prototype would still apply. */ |
17273 | char $ac_func(); | |
17274 | ||
17275 | int main() { | |
17276 | ||
10f2d63a VZ |
17277 | /* The GNU C library defines this for functions which it implements |
17278 | to always fail with ENOSYS. Some functions are actually named | |
17279 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 17280 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
17281 | choke me |
17282 | #else | |
a0b9e27f | 17283 | $ac_func(); |
10f2d63a VZ |
17284 | #endif |
17285 | ||
a0b9e27f MB |
17286 | ; return 0; } |
17287 | EOF | |
fd3d7534 | 17288 | if { (eval echo configure:17289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17289 | rm -rf conftest* |
17290 | eval "ac_cv_func_$ac_func=yes" | |
17291 | else | |
17292 | echo "configure: failed program was:" >&5 | |
17293 | cat conftest.$ac_ext >&5 | |
17294 | rm -rf conftest* | |
17295 | eval "ac_cv_func_$ac_func=no" | |
17296 | fi | |
17297 | rm -f conftest* | |
17298 | fi | |
270a909e | 17299 | |
a0b9e27f MB |
17300 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17301 | echo "$ac_t""yes" 1>&6 | |
17302 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17303 | cat >> confdefs.h <<EOF | |
17304 | #define $ac_tr_func 1 | |
17305 | EOF | |
17306 | ||
17307 | else | |
17308 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17309 | fi |
247f5006 | 17310 | done |
1e487827 | 17311 | |
af15babd | 17312 | else |
a0b9e27f | 17313 | echo "configure: warning: Wide character support is unavailable" 1>&2 |
7b4a847f | 17314 | fi |
52127426 | 17315 | |
8284b0c5 | 17316 | |
a0b9e27f MB |
17317 | ac_ext=C |
17318 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
247f5006 | 17319 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17320 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17321 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17322 | cross_compiling=$ac_cv_prog_cxx_cross | |
af15babd | 17323 | |
247f5006 VZ |
17324 | |
17325 | for ac_func in vsnprintf | |
17326 | do | |
a0b9e27f | 17327 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
fd3d7534 | 17328 | echo "configure:17329: checking for $ac_func" >&5 |
a0b9e27f MB |
17329 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17330 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17331 | else | |
17332 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 17333 | #line 17334 "configure" |
af15babd | 17334 | #include "confdefs.h" |
247f5006 | 17335 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17336 | which can conflict with char $ac_func(); below. */ |
247f5006 VZ |
17337 | #include <assert.h> |
17338 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17339 | #ifdef __cplusplus | |
17340 | extern "C" | |
17341 | #endif | |
17342 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17343 | builtin and then its argument prototype would still apply. */ |
17344 | char $ac_func(); | |
17345 | ||
17346 | int main() { | |
17347 | ||
247f5006 VZ |
17348 | /* The GNU C library defines this for functions which it implements |
17349 | to always fail with ENOSYS. Some functions are actually named | |
17350 | something starting with __ and the normal name is an alias. */ | |
17351 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17352 | choke me | |
17353 | #else | |
a0b9e27f | 17354 | $ac_func(); |
247f5006 | 17355 | #endif |
af15babd | 17356 | |
a0b9e27f MB |
17357 | ; return 0; } |
17358 | EOF | |
fd3d7534 | 17359 | if { (eval echo configure:17360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17360 | rm -rf conftest* |
17361 | eval "ac_cv_func_$ac_func=yes" | |
17362 | else | |
17363 | echo "configure: failed program was:" >&5 | |
17364 | cat conftest.$ac_ext >&5 | |
17365 | rm -rf conftest* | |
17366 | eval "ac_cv_func_$ac_func=no" | |
17367 | fi | |
17368 | rm -f conftest* | |
17369 | fi | |
52127426 | 17370 | |
a0b9e27f MB |
17371 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17372 | echo "$ac_t""yes" 1>&6 | |
17373 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17374 | cat >> confdefs.h <<EOF | |
17375 | #define $ac_tr_func 1 | |
17376 | EOF | |
17377 | ||
17378 | else | |
17379 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 17380 | fi |
247f5006 | 17381 | done |
8284b0c5 | 17382 | |
4f14bcd8 | 17383 | |
8d90d2f2 VZ |
17384 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
17385 | echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6 | |
fd3d7534 | 17386 | echo "configure:17387: checking for vsnprintf declaration" >&5 |
8d90d2f2 VZ |
17387 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then |
17388 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17389 | else | |
17390 | ||
17391 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 17392 | #line 17393 "configure" |
8d90d2f2 VZ |
17393 | #include "confdefs.h" |
17394 | ||
17395 | #include <stdio.h> | |
17396 | #include <stdarg.h> | |
17397 | ||
17398 | int main() { | |
17399 | ||
17400 | char *buf; | |
17401 | va_list ap; | |
17402 | vsnprintf(buf, 10u, "%s", ap); | |
17403 | ||
17404 | ; return 0; } | |
17405 | EOF | |
fd3d7534 | 17406 | if { (eval echo configure:17407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
8d90d2f2 VZ |
17407 | rm -rf conftest* |
17408 | wx_cv_func_vsnprintf_decl=yes | |
17409 | else | |
17410 | echo "configure: failed program was:" >&5 | |
17411 | cat conftest.$ac_ext >&5 | |
17412 | rm -rf conftest* | |
17413 | wx_cv_func_vsnprintf_decl=no | |
17414 | ||
17415 | fi | |
17416 | rm -f conftest* | |
17417 | ||
17418 | ||
17419 | fi | |
17420 | ||
17421 | echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6 | |
17422 | ||
17423 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
17424 | cat >> confdefs.h <<\EOF | |
17425 | #define HAVE_VSNPRINTF_DECL 1 | |
17426 | EOF | |
17427 | ||
17428 | fi | |
17429 | fi | |
17430 | ||
247f5006 | 17431 | if test "$wxUSE_UNICODE" = yes; then |
a0b9e27f | 17432 | for ac_func in fputwc wprintf vswprintf |
d74f4b5a | 17433 | do |
a0b9e27f | 17434 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
fd3d7534 | 17435 | echo "configure:17436: checking for $ac_func" >&5 |
a0b9e27f MB |
17436 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17437 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17438 | else | |
17439 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 17440 | #line 17441 "configure" |
d74f4b5a VZ |
17441 | #include "confdefs.h" |
17442 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17443 | which can conflict with char $ac_func(); below. */ |
d74f4b5a VZ |
17444 | #include <assert.h> |
17445 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
17446 | #ifdef __cplusplus |
17447 | extern "C" | |
17448 | #endif | |
d74f4b5a | 17449 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17450 | builtin and then its argument prototype would still apply. */ |
17451 | char $ac_func(); | |
17452 | ||
17453 | int main() { | |
17454 | ||
d74f4b5a VZ |
17455 | /* The GNU C library defines this for functions which it implements |
17456 | to always fail with ENOSYS. Some functions are actually named | |
17457 | something starting with __ and the normal name is an alias. */ | |
17458 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17459 | choke me | |
17460 | #else | |
a0b9e27f | 17461 | $ac_func(); |
d74f4b5a VZ |
17462 | #endif |
17463 | ||
a0b9e27f MB |
17464 | ; return 0; } |
17465 | EOF | |
fd3d7534 | 17466 | if { (eval echo configure:17467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17467 | rm -rf conftest* |
17468 | eval "ac_cv_func_$ac_func=yes" | |
17469 | else | |
17470 | echo "configure: failed program was:" >&5 | |
17471 | cat conftest.$ac_ext >&5 | |
17472 | rm -rf conftest* | |
17473 | eval "ac_cv_func_$ac_func=no" | |
17474 | fi | |
17475 | rm -f conftest* | |
17476 | fi | |
d74f4b5a | 17477 | |
a0b9e27f MB |
17478 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17479 | echo "$ac_t""yes" 1>&6 | |
17480 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17481 | cat >> confdefs.h <<EOF | |
17482 | #define $ac_tr_func 1 | |
17483 | EOF | |
17484 | ||
17485 | else | |
17486 | echo "$ac_t""no" 1>&6 | |
d74f4b5a VZ |
17487 | fi |
17488 | done | |
17489 | ||
8d90d2f2 | 17490 | |
79668cae | 17491 | echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6 |
fd3d7534 | 17492 | echo "configure:17493: checking for _vsnwprintf" >&5 |
79668cae | 17493 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 17494 | #line 17495 "configure" |
79668cae MB |
17495 | #include "confdefs.h" |
17496 | #include <wchar.h> | |
17497 | int main() { | |
17498 | &_vsnwprintf; | |
17499 | ; return 0; } | |
17500 | EOF | |
fd3d7534 | 17501 | if { (eval echo configure:17502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
79668cae MB |
17502 | rm -rf conftest* |
17503 | echo "$ac_t""yes" 1>&6 | |
17504 | cat >> confdefs.h <<\EOF | |
17505 | #define HAVE__VSNWPRINTF 1 | |
17506 | EOF | |
17507 | ||
17508 | else | |
17509 | echo "configure: failed program was:" >&5 | |
17510 | cat conftest.$ac_ext >&5 | |
17511 | rm -rf conftest* | |
17512 | echo "$ac_t""no" 1>&6 | |
17513 | fi | |
17514 | rm -f conftest*; | |
d74f4b5a VZ |
17515 | fi |
17516 | ||
247f5006 | 17517 | ac_ext=c |
a0b9e27f | 17518 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
247f5006 | 17519 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17520 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17521 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17522 | cross_compiling=$ac_cv_prog_cc_cross | |
247f5006 VZ |
17523 | |
17524 | ||
17525 | ||
17526 | ||
4f14bcd8 | 17527 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 17528 | |
8284b0c5 MB |
17529 | |
17530 | ||
a0b9e27f MB |
17531 | ac_ext=C |
17532 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 17533 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17534 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17535 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17536 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 17537 | |
52127426 | 17538 | |
a0b9e27f MB |
17539 | |
17540 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
17541 | if test "${with_libiconv_prefix+set}" = set; then |
17542 | withval="$with_libiconv_prefix" | |
a0b9e27f | 17543 | |
b040e242 VS |
17544 | for dir in `echo "$withval" | tr : ' '`; do |
17545 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
17546 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
17547 | done | |
a0b9e27f MB |
17548 | |
17549 | fi | |
b040e242 VS |
17550 | |
17551 | ||
a0b9e27f | 17552 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
fd3d7534 | 17553 | echo "configure:17554: checking for iconv" >&5 |
a0b9e27f MB |
17554 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
17555 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 17556 | else |
a0b9e27f | 17557 | |
b040e242 VS |
17558 | am_cv_func_iconv="no, consider installing GNU libiconv" |
17559 | am_cv_lib_iconv=no | |
a0b9e27f | 17560 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 17561 | #line 17562 "configure" |
af15babd | 17562 | #include "confdefs.h" |
b040e242 | 17563 | #include <stdlib.h> |
4f14bcd8 | 17564 | #include <iconv.h> |
a0b9e27f | 17565 | int main() { |
b040e242 VS |
17566 | iconv_t cd = iconv_open("",""); |
17567 | iconv(cd,NULL,NULL,NULL,NULL); | |
17568 | iconv_close(cd); | |
a0b9e27f MB |
17569 | ; return 0; } |
17570 | EOF | |
fd3d7534 | 17571 | if { (eval echo configure:17572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17572 | rm -rf conftest* |
b040e242 | 17573 | am_cv_func_iconv=yes |
af15babd | 17574 | else |
a0b9e27f MB |
17575 | echo "configure: failed program was:" >&5 |
17576 | cat conftest.$ac_ext >&5 | |
b040e242 | 17577 | fi |
a0b9e27f | 17578 | rm -f conftest* |
b040e242 VS |
17579 | if test "$am_cv_func_iconv" != yes; then |
17580 | am_save_LIBS="$LIBS" | |
17581 | LIBS="$LIBS -liconv" | |
a0b9e27f | 17582 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 17583 | #line 17584 "configure" |
b040e242 VS |
17584 | #include "confdefs.h" |
17585 | #include <stdlib.h> | |
17586 | #include <iconv.h> | |
a0b9e27f | 17587 | int main() { |
b040e242 VS |
17588 | iconv_t cd = iconv_open("",""); |
17589 | iconv(cd,NULL,NULL,NULL,NULL); | |
17590 | iconv_close(cd); | |
a0b9e27f MB |
17591 | ; return 0; } |
17592 | EOF | |
fd3d7534 | 17593 | if { (eval echo configure:17594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17594 | rm -rf conftest* |
b040e242 VS |
17595 | am_cv_lib_iconv=yes |
17596 | am_cv_func_iconv=yes | |
17597 | else | |
a0b9e27f MB |
17598 | echo "configure: failed program was:" >&5 |
17599 | cat conftest.$ac_ext >&5 | |
af15babd | 17600 | fi |
a0b9e27f | 17601 | rm -f conftest* |
b040e242 VS |
17602 | LIBS="$am_save_LIBS" |
17603 | fi | |
a0b9e27f | 17604 | |
247f5006 | 17605 | fi |
247f5006 | 17606 | |
a0b9e27f MB |
17607 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
17608 | if test "$am_cv_func_iconv" = yes; then | |
17609 | cat >> confdefs.h <<\EOF | |
b040e242 | 17610 | #define HAVE_ICONV 1 |
a0b9e27f | 17611 | EOF |
b040e242 | 17612 | |
a0b9e27f | 17613 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
fd3d7534 | 17614 | echo "configure:17615: checking if iconv needs const" >&5 |
a0b9e27f MB |
17615 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
17616 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b040e242 | 17617 | else |
a0b9e27f | 17618 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 17619 | #line 17620 "configure" |
b040e242 VS |
17620 | #include "confdefs.h" |
17621 | ||
17622 | #include <stdlib.h> | |
17623 | #include <iconv.h> | |
17624 | extern | |
17625 | #ifdef __cplusplus | |
17626 | "C" | |
17627 | #endif | |
17628 | #if defined(__STDC__) || defined(__cplusplus) | |
17629 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
17630 | #else | |
17631 | size_t iconv(); | |
17632 | #endif | |
a0b9e27f MB |
17633 | |
17634 | int main() { | |
af15babd | 17635 | |
a0b9e27f MB |
17636 | ; return 0; } |
17637 | EOF | |
fd3d7534 | 17638 | if { (eval echo configure:17639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 17639 | rm -rf conftest* |
b7043674 | 17640 | wx_cv_func_iconv_const="no" |
b040e242 | 17641 | else |
a0b9e27f MB |
17642 | echo "configure: failed program was:" >&5 |
17643 | cat conftest.$ac_ext >&5 | |
17644 | rm -rf conftest* | |
17645 | wx_cv_func_iconv_const="yes" | |
17646 | ||
5c6fa7d2 | 17647 | fi |
a0b9e27f MB |
17648 | rm -f conftest* |
17649 | ||
247f5006 | 17650 | fi |
a0b9e27f MB |
17651 | |
17652 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 | |
b7043674 VZ |
17653 | |
17654 | iconv_const= | |
1c405bb5 | 17655 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
17656 | iconv_const="const" |
17657 | fi | |
17658 | ||
a0b9e27f | 17659 | cat >> confdefs.h <<EOF |
f09359cf | 17660 | #define ICONV_CONST $iconv_const |
a0b9e27f | 17661 | EOF |
b040e242 VS |
17662 | |
17663 | fi | |
17664 | LIBICONV= | |
17665 | if test "$am_cv_lib_iconv" = yes; then | |
17666 | LIBICONV="-liconv" | |
17667 | fi | |
a0b9e27f | 17668 | |
b040e242 VS |
17669 | |
17670 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 17671 | ac_ext=c |
a0b9e27f | 17672 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17673 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17674 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17675 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17676 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 17677 | |
5c6fa7d2 | 17678 | |
8284b0c5 | 17679 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 17680 | for ac_func in sigaction |
af15babd | 17681 | do |
a0b9e27f | 17682 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
fd3d7534 | 17683 | echo "configure:17684: checking for $ac_func" >&5 |
a0b9e27f MB |
17684 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17686 | else | |
17687 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 17688 | #line 17689 "configure" |
af15babd VZ |
17689 | #include "confdefs.h" |
17690 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17691 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17692 | #include <assert.h> |
17693 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17694 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17695 | builtin and then its argument prototype would still apply. */ |
17696 | char $ac_func(); | |
17697 | ||
17698 | int main() { | |
17699 | ||
af15babd VZ |
17700 | /* The GNU C library defines this for functions which it implements |
17701 | to always fail with ENOSYS. Some functions are actually named | |
17702 | something starting with __ and the normal name is an alias. */ | |
17703 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17704 | choke me | |
17705 | #else | |
a0b9e27f | 17706 | $ac_func(); |
af15babd VZ |
17707 | #endif |
17708 | ||
a0b9e27f MB |
17709 | ; return 0; } |
17710 | EOF | |
fd3d7534 | 17711 | if { (eval echo configure:17712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17712 | rm -rf conftest* |
17713 | eval "ac_cv_func_$ac_func=yes" | |
17714 | else | |
17715 | echo "configure: failed program was:" >&5 | |
17716 | cat conftest.$ac_ext >&5 | |
17717 | rm -rf conftest* | |
17718 | eval "ac_cv_func_$ac_func=no" | |
17719 | fi | |
17720 | rm -f conftest* | |
17721 | fi | |
7b4a847f | 17722 | |
a0b9e27f MB |
17723 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17724 | echo "$ac_t""yes" 1>&6 | |
17725 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17726 | cat >> confdefs.h <<EOF | |
17727 | #define $ac_tr_func 1 | |
17728 | EOF | |
17729 | ||
17730 | else | |
17731 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
17732 | fi |
17733 | done | |
17734 | ||
8284b0c5 | 17735 | |
4f14bcd8 | 17736 | if test "$ac_cv_func_sigaction" = "no"; then |
a0b9e27f | 17737 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
4f14bcd8 GD |
17738 | wxUSE_ON_FATAL_EXCEPTION=no |
17739 | fi | |
17740 | ||
17741 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a0b9e27f MB |
17742 | |
17743 | ac_ext=C | |
17744 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 17745 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17746 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17747 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17748 | cross_compiling=$ac_cv_prog_cxx_cross | |
7b4a847f | 17749 | |
5c6fa7d2 | 17750 | |
a0b9e27f | 17751 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
fd3d7534 | 17752 | echo "configure:17753: checking for sa_handler type" >&5 |
a0b9e27f MB |
17753 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
17754 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 17755 | else |
a0b9e27f MB |
17756 | |
17757 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 17758 | #line 17759 "configure" |
af15babd | 17759 | #include "confdefs.h" |
4f14bcd8 | 17760 | #include <signal.h> |
a0b9e27f | 17761 | int main() { |
4f14bcd8 GD |
17762 | |
17763 | extern void testSigHandler(int); | |
17764 | ||
17765 | struct sigaction sa; | |
17766 | sa.sa_handler = testSigHandler; | |
a0b9e27f MB |
17767 | |
17768 | ; return 0; } | |
17769 | EOF | |
fd3d7534 | 17770 | if { (eval echo configure:17771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17771 | rm -rf conftest* |
17772 | ||
4f14bcd8 | 17773 | wx_cv_type_sa_handler=int |
a0b9e27f | 17774 | |
af15babd | 17775 | else |
a0b9e27f MB |
17776 | echo "configure: failed program was:" >&5 |
17777 | cat conftest.$ac_ext >&5 | |
17778 | rm -rf conftest* | |
17779 | ||
4f14bcd8 | 17780 | wx_cv_type_sa_handler=void |
a0b9e27f | 17781 | |
5c6fa7d2 | 17782 | fi |
a0b9e27f MB |
17783 | rm -f conftest* |
17784 | ||
247f5006 | 17785 | fi |
a0b9e27f MB |
17786 | |
17787 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
4f14bcd8 GD |
17788 | |
17789 | ac_ext=c | |
a0b9e27f | 17790 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17791 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17792 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17793 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17794 | cross_compiling=$ac_cv_prog_cc_cross | |
579d8138 | 17795 | |
8284b0c5 | 17796 | |
a0b9e27f | 17797 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17798 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
a0b9e27f | 17799 | EOF |
af15babd | 17800 | |
4f14bcd8 GD |
17801 | fi |
17802 | fi | |
af15babd | 17803 | |
a1d22ad7 | 17804 | for ac_func in mkstemp mktemp |
af15babd | 17805 | do |
a0b9e27f | 17806 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
fd3d7534 | 17807 | echo "configure:17808: checking for $ac_func" >&5 |
a0b9e27f MB |
17808 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17809 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17810 | else | |
17811 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 17812 | #line 17813 "configure" |
af15babd VZ |
17813 | #include "confdefs.h" |
17814 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17815 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17816 | #include <assert.h> |
17817 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17818 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17819 | builtin and then its argument prototype would still apply. */ |
17820 | char $ac_func(); | |
17821 | ||
17822 | int main() { | |
17823 | ||
af15babd VZ |
17824 | /* The GNU C library defines this for functions which it implements |
17825 | to always fail with ENOSYS. Some functions are actually named | |
17826 | something starting with __ and the normal name is an alias. */ | |
17827 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17828 | choke me | |
17829 | #else | |
a0b9e27f | 17830 | $ac_func(); |
af15babd VZ |
17831 | #endif |
17832 | ||
a0b9e27f MB |
17833 | ; return 0; } |
17834 | EOF | |
fd3d7534 | 17835 | if { (eval echo configure:17836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17836 | rm -rf conftest* |
17837 | eval "ac_cv_func_$ac_func=yes" | |
17838 | else | |
17839 | echo "configure: failed program was:" >&5 | |
17840 | cat conftest.$ac_ext >&5 | |
17841 | rm -rf conftest* | |
17842 | eval "ac_cv_func_$ac_func=no" | |
17843 | fi | |
17844 | rm -f conftest* | |
17845 | fi | |
af15babd | 17846 | |
a0b9e27f MB |
17847 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17848 | echo "$ac_t""yes" 1>&6 | |
17849 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17850 | cat >> confdefs.h <<EOF | |
17851 | #define $ac_tr_func 1 | |
17852 | EOF | |
ade35f11 | 17853 | break |
a0b9e27f MB |
17854 | else |
17855 | echo "$ac_t""no" 1>&6 | |
ade35f11 VZ |
17856 | fi |
17857 | done | |
17858 | ||
8284b0c5 | 17859 | |
a0b9e27f | 17860 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
fd3d7534 | 17861 | echo "configure:17862: checking for statfs" >&5 |
a0b9e27f MB |
17862 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
17863 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 17864 | else |
a0b9e27f | 17865 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 17866 | #line 17867 "configure" |
4f14bcd8 GD |
17867 | #include "confdefs.h" |
17868 | ||
17869 | #if defined(__BSD__) | |
17870 | #include <sys/param.h> | |
17871 | #include <sys/mount.h> | |
17872 | #else | |
17873 | #include <sys/vfs.h> | |
17874 | #endif | |
a0b9e27f MB |
17875 | |
17876 | int main() { | |
4f14bcd8 GD |
17877 | |
17878 | long l; | |
17879 | struct statfs fs; | |
17880 | statfs("/", &fs); | |
17881 | l = fs.f_bsize; | |
17882 | l += fs.f_blocks; | |
17883 | l += fs.f_bavail; | |
a0b9e27f MB |
17884 | |
17885 | ; return 0; } | |
17886 | EOF | |
fd3d7534 | 17887 | if { (eval echo configure:17888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17888 | rm -rf conftest* |
17889 | ||
4f14bcd8 | 17890 | wx_cv_func_statfs=yes |
a0b9e27f | 17891 | |
4f14bcd8 | 17892 | else |
a0b9e27f MB |
17893 | echo "configure: failed program was:" >&5 |
17894 | cat conftest.$ac_ext >&5 | |
17895 | rm -rf conftest* | |
17896 | ||
4f14bcd8 | 17897 | wx_cv_func_statfs=no |
a0b9e27f MB |
17898 | |
17899 | ||
5c6fa7d2 | 17900 | fi |
a0b9e27f | 17901 | rm -f conftest* |
8284b0c5 | 17902 | |
247f5006 | 17903 | fi |
a0b9e27f MB |
17904 | |
17905 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
4f14bcd8 GD |
17906 | |
17907 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 17908 | wx_cv_type_statvfs_t="struct statfs" |
a0b9e27f | 17909 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17910 | #define HAVE_STATFS 1 |
a0b9e27f | 17911 | EOF |
4f14bcd8 GD |
17912 | |
17913 | else | |
a0b9e27f | 17914 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 |
fd3d7534 | 17915 | echo "configure:17916: checking for statvfs" >&5 |
a0b9e27f MB |
17916 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
17917 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 17918 | else |
a0b9e27f | 17919 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 17920 | #line 17921 "configure" |
af15babd | 17921 | #include "confdefs.h" |
af15babd | 17922 | |
54ab82b3 VZ |
17923 | #include <stddef.h> |
17924 | #include <sys/statvfs.h> | |
a0b9e27f MB |
17925 | |
17926 | int main() { | |
af15babd | 17927 | |
54ab82b3 | 17928 | statvfs("/", NULL); |
a0b9e27f MB |
17929 | |
17930 | ; return 0; } | |
17931 | EOF | |
fd3d7534 | 17932 | if { (eval echo configure:17933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 17933 | rm -rf conftest* |
54ab82b3 | 17934 | wx_cv_func_statvfs=yes |
af15babd | 17935 | else |
a0b9e27f MB |
17936 | echo "configure: failed program was:" >&5 |
17937 | cat conftest.$ac_ext >&5 | |
17938 | rm -rf conftest* | |
54ab82b3 | 17939 | wx_cv_func_statvfs=no |
a0b9e27f | 17940 | |
5c6fa7d2 | 17941 | fi |
a0b9e27f MB |
17942 | rm -f conftest* |
17943 | ||
247f5006 | 17944 | fi |
a0b9e27f MB |
17945 | |
17946 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 | |
af15babd | 17947 | |
4f14bcd8 | 17948 | if test "$wx_cv_func_statvfs" = "yes"; then |
54ab82b3 VZ |
17949 | |
17950 | ac_ext=C | |
17951 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17952 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17953 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17954 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17955 | cross_compiling=$ac_cv_prog_cxx_cross | |
17956 | ||
17957 | ||
17958 | echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6 | |
fd3d7534 | 17959 | echo "configure:17960: checking for statvfs argument type" >&5 |
54ab82b3 VZ |
17960 | if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then |
17961 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17962 | else | |
17963 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 17964 | #line 17965 "configure" |
54ab82b3 VZ |
17965 | #include "confdefs.h" |
17966 | ||
17967 | #include <sys/statvfs.h> | |
17968 | ||
17969 | int main() { | |
17970 | ||
17971 | long l; | |
17972 | statvfs_t fs; | |
17973 | statvfs("/", &fs); | |
17974 | l = fs.f_bsize; | |
17975 | l += fs.f_blocks; | |
17976 | l += fs.f_bavail; | |
17977 | ||
17978 | ; return 0; } | |
17979 | EOF | |
fd3d7534 | 17980 | if { (eval echo configure:17981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54ab82b3 VZ |
17981 | rm -rf conftest* |
17982 | wx_cv_type_statvfs_t=statvfs_t | |
17983 | else | |
17984 | echo "configure: failed program was:" >&5 | |
17985 | cat conftest.$ac_ext >&5 | |
17986 | rm -rf conftest* | |
17987 | ||
17988 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 17989 | #line 17990 "configure" |
54ab82b3 VZ |
17990 | #include "confdefs.h" |
17991 | ||
17992 | #include <sys/statvfs.h> | |
17993 | ||
17994 | int main() { | |
17995 | ||
17996 | long l; | |
65d8ef1e | 17997 | struct statvfs fs; |
54ab82b3 VZ |
17998 | statvfs("/", &fs); |
17999 | l = fs.f_bsize; | |
18000 | l += fs.f_blocks; | |
18001 | l += fs.f_bavail; | |
18002 | ||
18003 | ; return 0; } | |
18004 | EOF | |
fd3d7534 | 18005 | if { (eval echo configure:18006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54ab82b3 VZ |
18006 | rm -rf conftest* |
18007 | wx_cv_type_statvfs_t="struct statvfs" | |
18008 | else | |
18009 | echo "configure: failed program was:" >&5 | |
18010 | cat conftest.$ac_ext >&5 | |
18011 | rm -rf conftest* | |
18012 | wx_cv_type_statvfs_t="unknown" | |
18013 | ||
18014 | fi | |
18015 | rm -f conftest* | |
18016 | ||
18017 | ||
18018 | fi | |
18019 | rm -f conftest* | |
18020 | ||
18021 | fi | |
18022 | ||
18023 | echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6 | |
18024 | ||
18025 | ac_ext=c | |
18026 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
18027 | ac_cpp='$CPP $CPPFLAGS' | |
18028 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
18029 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18030 | cross_compiling=$ac_cv_prog_cc_cross | |
18031 | ||
18032 | ||
18033 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
18034 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18035 | #define HAVE_STATVFS 1 |
a0b9e27f | 18036 | EOF |
af15babd | 18037 | |
54ab82b3 | 18038 | fi |
4f14bcd8 | 18039 | else |
54ab82b3 | 18040 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
18041 | fi |
18042 | fi | |
af15babd | 18043 | |
54ab82b3 VZ |
18044 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
18045 | cat >> confdefs.h <<EOF | |
18046 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
18047 | EOF | |
18048 | ||
18049 | else | |
18050 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
18051 | fi | |
18052 | ||
4f14bcd8 | 18053 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 18054 | for ac_func in fcntl flock |
af15babd | 18055 | do |
a0b9e27f | 18056 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
fd3d7534 | 18057 | echo "configure:18058: checking for $ac_func" >&5 |
a0b9e27f MB |
18058 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18059 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18060 | else | |
18061 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 18062 | #line 18063 "configure" |
af15babd VZ |
18063 | #include "confdefs.h" |
18064 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 18065 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
18066 | #include <assert.h> |
18067 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd | 18068 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18069 | builtin and then its argument prototype would still apply. */ |
18070 | char $ac_func(); | |
18071 | ||
18072 | int main() { | |
18073 | ||
af15babd VZ |
18074 | /* The GNU C library defines this for functions which it implements |
18075 | to always fail with ENOSYS. Some functions are actually named | |
18076 | something starting with __ and the normal name is an alias. */ | |
18077 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18078 | choke me | |
18079 | #else | |
a0b9e27f | 18080 | $ac_func(); |
af15babd VZ |
18081 | #endif |
18082 | ||
a0b9e27f MB |
18083 | ; return 0; } |
18084 | EOF | |
fd3d7534 | 18085 | if { (eval echo configure:18086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18086 | rm -rf conftest* |
18087 | eval "ac_cv_func_$ac_func=yes" | |
18088 | else | |
18089 | echo "configure: failed program was:" >&5 | |
18090 | cat conftest.$ac_ext >&5 | |
18091 | rm -rf conftest* | |
18092 | eval "ac_cv_func_$ac_func=no" | |
18093 | fi | |
18094 | rm -f conftest* | |
18095 | fi | |
18096 | ||
18097 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18098 | echo "$ac_t""yes" 1>&6 | |
18099 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18100 | cat >> confdefs.h <<EOF | |
18101 | #define $ac_tr_func 1 | |
18102 | EOF | |
4f14bcd8 | 18103 | break |
a0b9e27f MB |
18104 | else |
18105 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
18106 | fi |
18107 | done | |
18108 | ||
8284b0c5 | 18109 | |
4f14bcd8 | 18110 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
a0b9e27f | 18111 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f14bcd8 GD |
18112 | wxUSE_SNGLINST_CHECKER=no |
18113 | fi | |
18114 | fi | |
af15babd | 18115 | |
4f14bcd8 | 18116 | for ac_func in timegm |
af15babd | 18117 | do |
a0b9e27f | 18118 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
fd3d7534 | 18119 | echo "configure:18120: checking for $ac_func" >&5 |
a0b9e27f MB |
18120 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18121 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18122 | else | |
18123 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 18124 | #line 18125 "configure" |
af15babd VZ |
18125 | #include "confdefs.h" |
18126 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 18127 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
18128 | #include <assert.h> |
18129 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18130 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18131 | builtin and then its argument prototype would still apply. */ |
18132 | char $ac_func(); | |
18133 | ||
18134 | int main() { | |
18135 | ||
af15babd VZ |
18136 | /* The GNU C library defines this for functions which it implements |
18137 | to always fail with ENOSYS. Some functions are actually named | |
18138 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
18139 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
18140 | choke me | |
18141 | #else | |
a0b9e27f | 18142 | $ac_func(); |
247f5006 VZ |
18143 | #endif |
18144 | ||
a0b9e27f MB |
18145 | ; return 0; } |
18146 | EOF | |
fd3d7534 | 18147 | if { (eval echo configure:18148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18148 | rm -rf conftest* |
18149 | eval "ac_cv_func_$ac_func=yes" | |
18150 | else | |
18151 | echo "configure: failed program was:" >&5 | |
18152 | cat conftest.$ac_ext >&5 | |
18153 | rm -rf conftest* | |
18154 | eval "ac_cv_func_$ac_func=no" | |
18155 | fi | |
18156 | rm -f conftest* | |
18157 | fi | |
703e0a69 | 18158 | |
a0b9e27f MB |
18159 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18160 | echo "$ac_t""yes" 1>&6 | |
18161 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18162 | cat >> confdefs.h <<EOF | |
18163 | #define $ac_tr_func 1 | |
18164 | EOF | |
18165 | ||
18166 | else | |
18167 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
18168 | fi |
18169 | done | |
18170 | ||
8284b0c5 | 18171 | |
4f14bcd8 | 18172 | for ac_func in putenv setenv |
10f2d63a | 18173 | do |
a0b9e27f | 18174 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
fd3d7534 | 18175 | echo "configure:18176: checking for $ac_func" >&5 |
a0b9e27f MB |
18176 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18177 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18178 | else | |
18179 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 18180 | #line 18181 "configure" |
af15babd VZ |
18181 | #include "confdefs.h" |
18182 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 18183 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
18184 | #include <assert.h> |
18185 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18186 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18187 | builtin and then its argument prototype would still apply. */ |
18188 | char $ac_func(); | |
18189 | ||
18190 | int main() { | |
18191 | ||
af15babd VZ |
18192 | /* The GNU C library defines this for functions which it implements |
18193 | to always fail with ENOSYS. Some functions are actually named | |
18194 | something starting with __ and the normal name is an alias. */ | |
18195 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18196 | choke me | |
18197 | #else | |
a0b9e27f | 18198 | $ac_func(); |
af15babd VZ |
18199 | #endif |
18200 | ||
a0b9e27f MB |
18201 | ; return 0; } |
18202 | EOF | |
fd3d7534 | 18203 | if { (eval echo configure:18204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18204 | rm -rf conftest* |
18205 | eval "ac_cv_func_$ac_func=yes" | |
18206 | else | |
18207 | echo "configure: failed program was:" >&5 | |
18208 | cat conftest.$ac_ext >&5 | |
18209 | rm -rf conftest* | |
18210 | eval "ac_cv_func_$ac_func=no" | |
18211 | fi | |
18212 | rm -f conftest* | |
18213 | fi | |
18214 | ||
18215 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18216 | echo "$ac_t""yes" 1>&6 | |
18217 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18218 | cat >> confdefs.h <<EOF | |
18219 | #define $ac_tr_func 1 | |
18220 | EOF | |
4f14bcd8 | 18221 | break |
a0b9e27f MB |
18222 | else |
18223 | echo "$ac_t""no" 1>&6 | |
af15babd | 18224 | fi |
af15babd VZ |
18225 | done |
18226 | ||
8284b0c5 | 18227 | |
4f14bcd8 GD |
18228 | HAVE_SOME_SLEEP_FUNC=0 |
18229 | if test "$USE_BEOS" = 1; then | |
a0b9e27f | 18230 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18231 | #define HAVE_SLEEP 1 |
a0b9e27f | 18232 | EOF |
af15babd | 18233 | |
4f14bcd8 | 18234 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
18235 | fi |
18236 | ||
4f14bcd8 | 18237 | if test "$USE_DARWIN" = 1; then |
a0b9e27f | 18238 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18239 | #define HAVE_USLEEP 1 |
a0b9e27f | 18240 | EOF |
10f2d63a | 18241 | |
4f14bcd8 | 18242 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
18243 | fi |
18244 | ||
4f14bcd8 GD |
18245 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
18246 | POSIX4_LINK= | |
a0b9e27f | 18247 | for ac_func in nanosleep |
4f14bcd8 | 18248 | do |
a0b9e27f | 18249 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
fd3d7534 | 18250 | echo "configure:18251: checking for $ac_func" >&5 |
a0b9e27f MB |
18251 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18252 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18253 | else | |
18254 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 18255 | #line 18256 "configure" |
10f2d63a | 18256 | #include "confdefs.h" |
4f14bcd8 | 18257 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18258 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18259 | #include <assert.h> |
10f2d63a VZ |
18260 | /* Override any gcc2 internal prototype to avoid an error. */ |
18261 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18262 | builtin and then its argument prototype would still apply. */ |
18263 | char $ac_func(); | |
18264 | ||
18265 | int main() { | |
18266 | ||
4f14bcd8 GD |
18267 | /* The GNU C library defines this for functions which it implements |
18268 | to always fail with ENOSYS. Some functions are actually named | |
18269 | something starting with __ and the normal name is an alias. */ | |
18270 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18271 | choke me | |
18272 | #else | |
a0b9e27f | 18273 | $ac_func(); |
4f14bcd8 GD |
18274 | #endif |
18275 | ||
a0b9e27f MB |
18276 | ; return 0; } |
18277 | EOF | |
fd3d7534 | 18278 | if { (eval echo configure:18279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18279 | rm -rf conftest* |
18280 | eval "ac_cv_func_$ac_func=yes" | |
18281 | else | |
18282 | echo "configure: failed program was:" >&5 | |
18283 | cat conftest.$ac_ext >&5 | |
18284 | rm -rf conftest* | |
18285 | eval "ac_cv_func_$ac_func=no" | |
18286 | fi | |
18287 | rm -f conftest* | |
18288 | fi | |
18289 | ||
18290 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18291 | echo "$ac_t""yes" 1>&6 | |
18292 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18293 | cat >> confdefs.h <<EOF | |
18294 | #define $ac_tr_func 1 | |
18295 | EOF | |
18296 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18297 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 18298 | EOF |
4f14bcd8 | 18299 | |
10f2d63a | 18300 | else |
a0b9e27f MB |
18301 | echo "$ac_t""no" 1>&6 |
18302 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
fd3d7534 | 18303 | echo "configure:18304: checking for nanosleep in -lposix4" >&5 |
a0b9e27f MB |
18304 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
18305 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18306 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18307 | else |
a0b9e27f | 18308 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18309 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 18310 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 18311 | #line 18312 "configure" |
10f2d63a VZ |
18312 | #include "confdefs.h" |
18313 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18314 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18315 | builtin and then its argument prototype would still apply. */ |
18316 | char nanosleep(); | |
18317 | ||
18318 | int main() { | |
18319 | nanosleep() | |
18320 | ; return 0; } | |
18321 | EOF | |
fd3d7534 | 18322 | if { (eval echo configure:18323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18323 | rm -rf conftest* |
18324 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18325 | else | |
18326 | echo "configure: failed program was:" >&5 | |
18327 | cat conftest.$ac_ext >&5 | |
18328 | rm -rf conftest* | |
18329 | eval "ac_cv_lib_$ac_lib_var=no" | |
18330 | fi | |
18331 | rm -f conftest* | |
18332 | LIBS="$ac_save_LIBS" | |
18333 | ||
18334 | fi | |
18335 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18336 | echo "$ac_t""yes" 1>&6 | |
18337 | ||
18338 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18339 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 18340 | EOF |
4f14bcd8 | 18341 | |
3d63bc3a | 18342 | POSIX4_LINK=" -lposix4" |
a0b9e27f | 18343 | |
10f2d63a | 18344 | else |
a0b9e27f | 18345 | echo "$ac_t""no" 1>&6 |
10f2d63a | 18346 | |
a0b9e27f | 18347 | for ac_func in usleep |
4f14bcd8 | 18348 | do |
a0b9e27f | 18349 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
fd3d7534 | 18350 | echo "configure:18351: checking for $ac_func" >&5 |
a0b9e27f MB |
18351 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18352 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18353 | else | |
18354 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 18355 | #line 18356 "configure" |
10f2d63a | 18356 | #include "confdefs.h" |
4f14bcd8 | 18357 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18358 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18359 | #include <assert.h> |
18360 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18361 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18362 | builtin and then its argument prototype would still apply. */ |
18363 | char $ac_func(); | |
18364 | ||
18365 | int main() { | |
18366 | ||
4f14bcd8 GD |
18367 | /* The GNU C library defines this for functions which it implements |
18368 | to always fail with ENOSYS. Some functions are actually named | |
18369 | something starting with __ and the normal name is an alias. */ | |
18370 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18371 | choke me | |
18372 | #else | |
a0b9e27f | 18373 | $ac_func(); |
4f14bcd8 GD |
18374 | #endif |
18375 | ||
a0b9e27f MB |
18376 | ; return 0; } |
18377 | EOF | |
fd3d7534 | 18378 | if { (eval echo configure:18379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18379 | rm -rf conftest* |
18380 | eval "ac_cv_func_$ac_func=yes" | |
18381 | else | |
18382 | echo "configure: failed program was:" >&5 | |
18383 | cat conftest.$ac_ext >&5 | |
18384 | rm -rf conftest* | |
18385 | eval "ac_cv_func_$ac_func=no" | |
18386 | fi | |
18387 | rm -f conftest* | |
18388 | fi | |
18389 | ||
18390 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18391 | echo "$ac_t""yes" 1>&6 | |
18392 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18393 | cat >> confdefs.h <<EOF | |
18394 | #define $ac_tr_func 1 | |
18395 | EOF | |
18396 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18397 | #define HAVE_USLEEP 1 |
a0b9e27f | 18398 | EOF |
4f14bcd8 | 18399 | |
698dcdb6 | 18400 | else |
a0b9e27f MB |
18401 | echo "$ac_t""no" 1>&6 |
18402 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
18403 | ||
10f2d63a | 18404 | fi |
4f14bcd8 | 18405 | done |
10f2d63a | 18406 | |
a0b9e27f MB |
18407 | |
18408 | ||
6232543b | 18409 | fi |
10f2d63a | 18410 | |
a0b9e27f MB |
18411 | |
18412 | ||
1e487827 | 18413 | fi |
4f14bcd8 | 18414 | done |
703e0a69 | 18415 | |
10f2d63a VZ |
18416 | fi |
18417 | ||
4f14bcd8 | 18418 | for ac_func in uname gethostname |
70846f0a | 18419 | do |
a0b9e27f | 18420 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
fd3d7534 | 18421 | echo "configure:18422: checking for $ac_func" >&5 |
a0b9e27f MB |
18422 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18423 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18424 | else | |
18425 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 18426 | #line 18427 "configure" |
70846f0a VZ |
18427 | #include "confdefs.h" |
18428 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 18429 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
18430 | #include <assert.h> |
18431 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18432 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18433 | builtin and then its argument prototype would still apply. */ |
18434 | char $ac_func(); | |
18435 | ||
18436 | int main() { | |
18437 | ||
70846f0a VZ |
18438 | /* The GNU C library defines this for functions which it implements |
18439 | to always fail with ENOSYS. Some functions are actually named | |
18440 | something starting with __ and the normal name is an alias. */ | |
18441 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18442 | choke me | |
18443 | #else | |
a0b9e27f | 18444 | $ac_func(); |
70846f0a VZ |
18445 | #endif |
18446 | ||
a0b9e27f MB |
18447 | ; return 0; } |
18448 | EOF | |
fd3d7534 | 18449 | if { (eval echo configure:18450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18450 | rm -rf conftest* |
18451 | eval "ac_cv_func_$ac_func=yes" | |
18452 | else | |
18453 | echo "configure: failed program was:" >&5 | |
18454 | cat conftest.$ac_ext >&5 | |
18455 | rm -rf conftest* | |
18456 | eval "ac_cv_func_$ac_func=no" | |
18457 | fi | |
18458 | rm -f conftest* | |
18459 | fi | |
18460 | ||
18461 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18462 | echo "$ac_t""yes" 1>&6 | |
18463 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18464 | cat >> confdefs.h <<EOF | |
18465 | #define $ac_tr_func 1 | |
18466 | EOF | |
4f14bcd8 | 18467 | break |
a0b9e27f MB |
18468 | else |
18469 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
18470 | fi |
18471 | done | |
18472 | ||
8284b0c5 MB |
18473 | |
18474 | ||
a0b9e27f MB |
18475 | ac_ext=C |
18476 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 18477 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
18478 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18479 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18480 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 18481 | |
4f14bcd8 GD |
18482 | |
18483 | for ac_func in strtok_r | |
10f2d63a | 18484 | do |
a0b9e27f | 18485 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
fd3d7534 | 18486 | echo "configure:18487: checking for $ac_func" >&5 |
a0b9e27f MB |
18487 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18488 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18489 | else | |
18490 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 18491 | #line 18492 "configure" |
10f2d63a | 18492 | #include "confdefs.h" |
4f14bcd8 | 18493 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18494 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18495 | #include <assert.h> |
18496 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18497 | #ifdef __cplusplus | |
18498 | extern "C" | |
18499 | #endif | |
18500 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18501 | builtin and then its argument prototype would still apply. */ |
18502 | char $ac_func(); | |
18503 | ||
18504 | int main() { | |
18505 | ||
4f14bcd8 GD |
18506 | /* The GNU C library defines this for functions which it implements |
18507 | to always fail with ENOSYS. Some functions are actually named | |
18508 | something starting with __ and the normal name is an alias. */ | |
18509 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18510 | choke me | |
18511 | #else | |
a0b9e27f | 18512 | $ac_func(); |
4f14bcd8 GD |
18513 | #endif |
18514 | ||
a0b9e27f MB |
18515 | ; return 0; } |
18516 | EOF | |
fd3d7534 | 18517 | if { (eval echo configure:18518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18518 | rm -rf conftest* |
18519 | eval "ac_cv_func_$ac_func=yes" | |
18520 | else | |
18521 | echo "configure: failed program was:" >&5 | |
18522 | cat conftest.$ac_ext >&5 | |
18523 | rm -rf conftest* | |
18524 | eval "ac_cv_func_$ac_func=no" | |
18525 | fi | |
18526 | rm -f conftest* | |
18527 | fi | |
4f14bcd8 | 18528 | |
a0b9e27f MB |
18529 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18530 | echo "$ac_t""yes" 1>&6 | |
18531 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18532 | cat >> confdefs.h <<EOF | |
18533 | #define $ac_tr_func 1 | |
18534 | EOF | |
18535 | ||
18536 | else | |
18537 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
18538 | fi |
18539 | done | |
18540 | ||
8284b0c5 | 18541 | |
4f14bcd8 | 18542 | ac_ext=c |
a0b9e27f | 18543 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 18544 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
18545 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18546 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18547 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 18548 | |
5c6fa7d2 | 18549 | |
8284b0c5 | 18550 | INET_LINK= |
4f14bcd8 GD |
18551 | for ac_func in inet_addr |
18552 | do | |
a0b9e27f | 18553 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
fd3d7534 | 18554 | echo "configure:18555: checking for $ac_func" >&5 |
a0b9e27f MB |
18555 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18556 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18557 | else | |
18558 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 18559 | #line 18560 "configure" |
10f2d63a | 18560 | #include "confdefs.h" |
4f14bcd8 | 18561 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18562 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18563 | #include <assert.h> |
10f2d63a VZ |
18564 | /* Override any gcc2 internal prototype to avoid an error. */ |
18565 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18566 | builtin and then its argument prototype would still apply. */ |
18567 | char $ac_func(); | |
18568 | ||
18569 | int main() { | |
18570 | ||
4f14bcd8 GD |
18571 | /* The GNU C library defines this for functions which it implements |
18572 | to always fail with ENOSYS. Some functions are actually named | |
18573 | something starting with __ and the normal name is an alias. */ | |
18574 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18575 | choke me | |
18576 | #else | |
a0b9e27f | 18577 | $ac_func(); |
4f14bcd8 GD |
18578 | #endif |
18579 | ||
a0b9e27f MB |
18580 | ; return 0; } |
18581 | EOF | |
fd3d7534 | 18582 | if { (eval echo configure:18583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18583 | rm -rf conftest* |
18584 | eval "ac_cv_func_$ac_func=yes" | |
18585 | else | |
18586 | echo "configure: failed program was:" >&5 | |
18587 | cat conftest.$ac_ext >&5 | |
18588 | rm -rf conftest* | |
18589 | eval "ac_cv_func_$ac_func=no" | |
18590 | fi | |
18591 | rm -f conftest* | |
18592 | fi | |
18593 | ||
18594 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18595 | echo "$ac_t""yes" 1>&6 | |
18596 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18597 | cat >> confdefs.h <<EOF | |
18598 | #define $ac_tr_func 1 | |
18599 | EOF | |
18600 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18601 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 18602 | EOF |
10f2d63a VZ |
18603 | |
18604 | else | |
a0b9e27f MB |
18605 | echo "$ac_t""no" 1>&6 |
18606 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
fd3d7534 | 18607 | echo "configure:18608: checking for inet_addr in -lnsl" >&5 |
a0b9e27f MB |
18608 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
18609 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18610 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18611 | else |
a0b9e27f | 18612 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18613 | LIBS="-lnsl $LIBS" |
a0b9e27f | 18614 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 18615 | #line 18616 "configure" |
10f2d63a VZ |
18616 | #include "confdefs.h" |
18617 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18618 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18619 | builtin and then its argument prototype would still apply. */ |
18620 | char inet_addr(); | |
18621 | ||
18622 | int main() { | |
18623 | inet_addr() | |
18624 | ; return 0; } | |
18625 | EOF | |
fd3d7534 | 18626 | if { (eval echo configure:18627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18627 | rm -rf conftest* |
18628 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18629 | else | |
18630 | echo "configure: failed program was:" >&5 | |
18631 | cat conftest.$ac_ext >&5 | |
18632 | rm -rf conftest* | |
18633 | eval "ac_cv_lib_$ac_lib_var=no" | |
18634 | fi | |
18635 | rm -f conftest* | |
18636 | LIBS="$ac_save_LIBS" | |
18637 | ||
18638 | fi | |
18639 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18640 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 18641 | INET_LINK="nsl" |
10f2d63a | 18642 | else |
a0b9e27f MB |
18643 | echo "$ac_t""no" 1>&6 |
18644 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
fd3d7534 | 18645 | echo "configure:18646: checking for inet_addr in -lresolv" >&5 |
a0b9e27f MB |
18646 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
18647 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18648 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18649 | else |
a0b9e27f | 18650 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18651 | LIBS="-lresolv $LIBS" |
a0b9e27f | 18652 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 18653 | #line 18654 "configure" |
7b4a847f | 18654 | #include "confdefs.h" |
5c6fa7d2 | 18655 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 18656 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18657 | builtin and then its argument prototype would still apply. */ |
18658 | char inet_addr(); | |
18659 | ||
18660 | int main() { | |
18661 | inet_addr() | |
18662 | ; return 0; } | |
18663 | EOF | |
fd3d7534 | 18664 | if { (eval echo configure:18665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18665 | rm -rf conftest* |
18666 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18667 | else | |
18668 | echo "configure: failed program was:" >&5 | |
18669 | cat conftest.$ac_ext >&5 | |
18670 | rm -rf conftest* | |
18671 | eval "ac_cv_lib_$ac_lib_var=no" | |
18672 | fi | |
18673 | rm -f conftest* | |
18674 | LIBS="$ac_save_LIBS" | |
18675 | ||
18676 | fi | |
18677 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18678 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 18679 | INET_LINK="resolv" |
698dcdb6 | 18680 | else |
a0b9e27f MB |
18681 | echo "$ac_t""no" 1>&6 |
18682 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 | |
fd3d7534 | 18683 | echo "configure:18684: checking for inet_addr in -lsocket" >&5 |
a0b9e27f MB |
18684 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
18685 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18686 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3c011993 | 18687 | else |
a0b9e27f | 18688 | ac_save_LIBS="$LIBS" |
3c011993 | 18689 | LIBS="-lsocket $LIBS" |
a0b9e27f | 18690 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 18691 | #line 18692 "configure" |
3c011993 VZ |
18692 | #include "confdefs.h" |
18693 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18694 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18695 | builtin and then its argument prototype would still apply. */ |
18696 | char inet_addr(); | |
4f14bcd8 | 18697 | |
a0b9e27f MB |
18698 | int main() { |
18699 | inet_addr() | |
18700 | ; return 0; } | |
18701 | EOF | |
fd3d7534 | 18702 | if { (eval echo configure:18703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18703 | rm -rf conftest* |
18704 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18705 | else | |
18706 | echo "configure: failed program was:" >&5 | |
18707 | cat conftest.$ac_ext >&5 | |
18708 | rm -rf conftest* | |
18709 | eval "ac_cv_lib_$ac_lib_var=no" | |
8284b0c5 | 18710 | fi |
a0b9e27f MB |
18711 | rm -f conftest* |
18712 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 18713 | |
7b4a847f | 18714 | fi |
a0b9e27f MB |
18715 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18716 | echo "$ac_t""yes" 1>&6 | |
18717 | INET_LINK="socket" | |
18718 | ||
18719 | else | |
18720 | echo "$ac_t""no" 1>&6 | |
18721 | fi | |
579d8138 | 18722 | |
a0b9e27f | 18723 | |
5c6fa7d2 | 18724 | fi |
52127426 | 18725 | |
a0b9e27f MB |
18726 | |
18727 | fi | |
247f5006 | 18728 | |
a0b9e27f | 18729 | |
8284b0c5 | 18730 | |
698dcdb6 | 18731 | fi |
4f14bcd8 GD |
18732 | done |
18733 | ||
8284b0c5 | 18734 | |
4f14bcd8 GD |
18735 | for ac_func in inet_aton |
18736 | do | |
a0b9e27f | 18737 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
fd3d7534 | 18738 | echo "configure:18739: checking for $ac_func" >&5 |
a0b9e27f MB |
18739 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18740 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18741 | else | |
18742 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 18743 | #line 18744 "configure" |
f6bcfd97 | 18744 | #include "confdefs.h" |
4f14bcd8 | 18745 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18746 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18747 | #include <assert.h> |
f6bcfd97 BP |
18748 | /* Override any gcc2 internal prototype to avoid an error. */ |
18749 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18750 | builtin and then its argument prototype would still apply. */ |
18751 | char $ac_func(); | |
18752 | ||
18753 | int main() { | |
18754 | ||
4f14bcd8 GD |
18755 | /* The GNU C library defines this for functions which it implements |
18756 | to always fail with ENOSYS. Some functions are actually named | |
18757 | something starting with __ and the normal name is an alias. */ | |
18758 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18759 | choke me | |
18760 | #else | |
a0b9e27f | 18761 | $ac_func(); |
4f14bcd8 GD |
18762 | #endif |
18763 | ||
a0b9e27f MB |
18764 | ; return 0; } |
18765 | EOF | |
fd3d7534 | 18766 | if { (eval echo configure:18767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18767 | rm -rf conftest* |
18768 | eval "ac_cv_func_$ac_func=yes" | |
18769 | else | |
18770 | echo "configure: failed program was:" >&5 | |
18771 | cat conftest.$ac_ext >&5 | |
18772 | rm -rf conftest* | |
18773 | eval "ac_cv_func_$ac_func=no" | |
18774 | fi | |
18775 | rm -f conftest* | |
18776 | fi | |
18777 | ||
18778 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18779 | echo "$ac_t""yes" 1>&6 | |
18780 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18781 | cat >> confdefs.h <<EOF | |
18782 | #define $ac_tr_func 1 | |
18783 | EOF | |
18784 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18785 | #define HAVE_INET_ATON 1 |
a0b9e27f | 18786 | EOF |
4f14bcd8 | 18787 | |
10f2d63a | 18788 | else |
a0b9e27f MB |
18789 | echo "$ac_t""no" 1>&6 |
18790 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
fd3d7534 | 18791 | echo "configure:18792: checking for inet_aton in -l$INET_LINK" >&5 |
a0b9e27f MB |
18792 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
18793 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18794 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 18795 | else |
a0b9e27f | 18796 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18797 | LIBS="-l$INET_LINK $LIBS" |
a0b9e27f | 18798 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 18799 | #line 18800 "configure" |
10f2d63a | 18800 | #include "confdefs.h" |
6232543b | 18801 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 18802 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18803 | builtin and then its argument prototype would still apply. */ |
18804 | char inet_aton(); | |
18805 | ||
18806 | int main() { | |
18807 | inet_aton() | |
18808 | ; return 0; } | |
18809 | EOF | |
fd3d7534 | 18810 | if { (eval echo configure:18811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18811 | rm -rf conftest* |
18812 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18813 | else | |
18814 | echo "configure: failed program was:" >&5 | |
18815 | cat conftest.$ac_ext >&5 | |
18816 | rm -rf conftest* | |
18817 | eval "ac_cv_lib_$ac_lib_var=no" | |
18818 | fi | |
18819 | rm -f conftest* | |
18820 | LIBS="$ac_save_LIBS" | |
4f14bcd8 | 18821 | |
10f2d63a | 18822 | fi |
a0b9e27f MB |
18823 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18824 | echo "$ac_t""yes" 1>&6 | |
18825 | cat >> confdefs.h <<\EOF | |
18826 | #define HAVE_INET_ATON 1 | |
18827 | EOF | |
10f2d63a | 18828 | |
a0b9e27f MB |
18829 | else |
18830 | echo "$ac_t""no" 1>&6 | |
18831 | fi | |
247f5006 | 18832 | |
a0b9e27f | 18833 | |
10f2d63a | 18834 | fi |
4f14bcd8 | 18835 | done |
10f2d63a | 18836 | |
8284b0c5 | 18837 | |
4f14bcd8 | 18838 | if test "x$INET_LINK" != "x"; then |
a0b9e27f | 18839 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18840 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 18841 | EOF |
4f14bcd8 | 18842 | |
3d63bc3a | 18843 | INET_LINK=" -l$INET_LINK" |
6232543b | 18844 | fi |
10f2d63a | 18845 | |
1e487827 | 18846 | fi |
703e0a69 | 18847 | |
8284b0c5 | 18848 | |
a0b9e27f | 18849 | cat > confcache <<\EOF |
4f14bcd8 GD |
18850 | # This file is a shell script that caches the results of configure |
18851 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
18852 | # scripts and configure runs. It is not useful on other systems. |
18853 | # If it contains results you don't want to keep, you may remove or edit it. | |
4f14bcd8 | 18854 | # |
a0b9e27f MB |
18855 | # By default, configure uses ./config.cache as the cache file, |
18856 | # creating it if it does not exist already. You can give configure | |
18857 | # the --cache-file=FILE option to use a different cache file; that is | |
18858 | # what configure does when it calls configure scripts in | |
18859 | # subdirectories, so they share the cache. | |
18860 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
18861 | # config.status only pays attention to the cache file if you give it the | |
18862 | # --recheck option to rerun configure. | |
4f14bcd8 | 18863 | # |
a0b9e27f | 18864 | EOF |
4f14bcd8 GD |
18865 | # The following way of writing the cache mishandles newlines in values, |
18866 | # but we know of no workaround that is simple, portable, and efficient. | |
18867 | # So, don't put newlines in cache variables' values. | |
18868 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18869 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
18870 | (set) 2>&1 | |
18871 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18872 | *ac_space=\ *) | |
18873 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
18874 | # turns \\\\ into \\, and sed turns \\ into \). | |
18875 | sed -n \ | |
18876 | -e "s/'/'\\\\''/g" \ | |
18877 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
18878 | ;; | |
18879 | *) | |
18880 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18881 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
18882 | ;; | |
18883 | esac >> confcache | |
18884 | if cmp -s $cache_file confcache; then | |
18885 | : | |
18886 | else | |
4f14bcd8 | 18887 | if test -w $cache_file; then |
a0b9e27f MB |
18888 | echo "updating cache $cache_file" |
18889 | cat confcache > $cache_file | |
f6bcfd97 | 18890 | else |
4f14bcd8 | 18891 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 18892 | fi |
4f14bcd8 GD |
18893 | fi |
18894 | rm -f confcache | |
f6bcfd97 | 18895 | |
8284b0c5 | 18896 | |
a0b9e27f | 18897 | |
009fead0 | 18898 | CPP_MT_FLAG= |
4f14bcd8 GD |
18899 | if test "$TOOLKIT" != "MSW"; then |
18900 | ||
a0b9e27f | 18901 | |
7274f1c7 | 18902 | THREADS_LINK= |
009fead0 | 18903 | THREADS_CFLAGS= |
7274f1c7 RL |
18904 | |
18905 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 18906 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 18907 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
18908 | wxUSE_THREADS="no" |
18909 | fi | |
4f14bcd8 | 18910 | fi |
4f14bcd8 | 18911 | |
7274f1c7 | 18912 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f MB |
18913 | |
18914 | ||
009fead0 VZ |
18915 | THREAD_OPTS="-pthread" |
18916 | case "${host}" in | |
18917 | *-*-solaris2* | *-*-sunos4* ) | |
18918 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 18919 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
18920 | else |
18921 | THREAD_OPTS="-mt $THREAD_OPTS" | |
18922 | fi | |
18923 | ;; | |
18924 | *-*-freebsd*) | |
18925 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
18926 | ;; | |
17234b26 MB |
18927 | *-*-darwin* | *-*-cygwin* ) |
18928 | THREAD_OPTS="" | |
4101db81 | 18929 | ;; |
8f4a9a10 | 18930 | *-*-aix*) |
009fead0 VZ |
18931 | THREAD_OPTS="pthreads" |
18932 | ;; | |
4f5a7f74 VZ |
18933 | *-hp-hpux* ) |
18934 | if test "x$GCC" != "xyes"; then | |
18935 | THREAD_OPTS="" | |
18936 | fi | |
89e3b3e4 VZ |
18937 | ;; |
18938 | ||
18939 | *-*-irix* ) | |
18940 | if test "x$GCC" = "xyes"; then | |
18941 | THREAD_OPTS="" | |
18942 | fi | |
18943 | ;; | |
18944 | ||
18945 | *-*-*UnixWare*) | |
18946 | if test "x$GCC" != "xyes"; then | |
18947 | THREAD_OPTS="-Ethread" | |
18948 | fi | |
18949 | ;; | |
009fead0 | 18950 | esac |
4f14bcd8 | 18951 | |
02a1dfba | 18952 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 18953 | |
009fead0 VZ |
18954 | THREADS_OK=no |
18955 | for flag in $THREAD_OPTS; do | |
18956 | case $flag in | |
18957 | none) | |
a0b9e27f | 18958 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 |
fd3d7534 | 18959 | echo "configure:18960: checking whether pthreads work without any flags" >&5 |
009fead0 | 18960 | ;; |
698dcdb6 | 18961 | |
009fead0 | 18962 | -*) |
a0b9e27f | 18963 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 |
fd3d7534 | 18964 | echo "configure:18965: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
18965 | THREADS_CFLAGS="$flag" |
18966 | ;; | |
698dcdb6 | 18967 | |
009fead0 | 18968 | *) |
a0b9e27f | 18969 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 |
fd3d7534 | 18970 | echo "configure:18971: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
18971 | THREADS_LINK="-l$flag" |
18972 | ;; | |
18973 | esac | |
10f2d63a | 18974 | |
009fead0 VZ |
18975 | save_LIBS="$LIBS" |
18976 | save_CFLAGS="$CFLAGS" | |
18977 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 18978 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 18979 | |
a0b9e27f | 18980 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 18981 | #line 18982 "configure" |
009fead0 VZ |
18982 | #include "confdefs.h" |
18983 | #include <pthread.h> | |
a0b9e27f | 18984 | int main() { |
009fead0 | 18985 | pthread_create(0,0,0,0); |
a0b9e27f MB |
18986 | ; return 0; } |
18987 | EOF | |
fd3d7534 | 18988 | if { (eval echo configure:18989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 18989 | rm -rf conftest* |
009fead0 | 18990 | THREADS_OK=yes |
10f2d63a | 18991 | else |
a0b9e27f MB |
18992 | echo "configure: failed program was:" >&5 |
18993 | cat conftest.$ac_ext >&5 | |
6232543b | 18994 | fi |
a0b9e27f | 18995 | rm -f conftest* |
698dcdb6 | 18996 | |
009fead0 VZ |
18997 | LIBS="$save_LIBS" |
18998 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 18999 | |
a0b9e27f | 19000 | echo "$ac_t""$THREADS_OK" 1>&6 |
009fead0 VZ |
19001 | if test "x$THREADS_OK" = "xyes"; then |
19002 | break; | |
19003 | fi | |
d9b9876f | 19004 | |
009fead0 VZ |
19005 | THREADS_LINK="" |
19006 | THREADS_CFLAGS="" | |
19007 | done | |
4f14bcd8 | 19008 | |
009fead0 VZ |
19009 | if test "x$THREADS_OK" != "xyes"; then |
19010 | wxUSE_THREADS=no | |
a0b9e27f | 19011 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
009fead0 | 19012 | else |
db82f09e VZ |
19013 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
19014 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 19015 | |
a0b9e27f | 19016 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
fd3d7534 | 19017 | echo "configure:19018: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
19018 | flag=no |
19019 | case "${host}" in | |
2b5f62a0 VZ |
19020 | *-aix*) |
19021 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
19022 | flag="-D_THREAD_SAFE" | |
19023 | ;; | |
19024 | *-freebsd*) | |
009fead0 VZ |
19025 | flag="-D_THREAD_SAFE" |
19026 | ;; | |
06313569 GD |
19027 | *-hp-hpux* ) |
19028 | flag="-D_REENTRANT" | |
4f5a7f74 VZ |
19029 | if test "x$GCC" != "xyes"; then |
19030 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
19031 | fi | |
06313569 | 19032 | ;; |
009fead0 VZ |
19033 | *solaris* | alpha*-osf*) |
19034 | flag="-D_REENTRANT" | |
19035 | ;; | |
19036 | esac | |
a0b9e27f | 19037 | echo "$ac_t""${flag}" 1>&6 |
009fead0 | 19038 | if test "x$flag" != xno; then |
04727afd | 19039 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
19040 | fi |
19041 | ||
009fead0 | 19042 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 19043 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
19044 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
19045 | fi | |
19046 | fi | |
4f14bcd8 | 19047 | fi |
4f14bcd8 | 19048 | |
7274f1c7 | 19049 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f | 19050 | for ac_func in thr_setconcurrency |
4f14bcd8 | 19051 | do |
a0b9e27f | 19052 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
fd3d7534 | 19053 | echo "configure:19054: checking for $ac_func" >&5 |
a0b9e27f MB |
19054 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19055 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19056 | else | |
19057 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 19058 | #line 19059 "configure" |
d9b9876f | 19059 | #include "confdefs.h" |
4f14bcd8 | 19060 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19061 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
19062 | #include <assert.h> |
19063 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19064 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19065 | builtin and then its argument prototype would still apply. */ |
19066 | char $ac_func(); | |
19067 | ||
19068 | int main() { | |
19069 | ||
4f14bcd8 GD |
19070 | /* The GNU C library defines this for functions which it implements |
19071 | to always fail with ENOSYS. Some functions are actually named | |
19072 | something starting with __ and the normal name is an alias. */ | |
19073 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19074 | choke me | |
19075 | #else | |
a0b9e27f | 19076 | $ac_func(); |
4f14bcd8 GD |
19077 | #endif |
19078 | ||
a0b9e27f MB |
19079 | ; return 0; } |
19080 | EOF | |
fd3d7534 | 19081 | if { (eval echo configure:19082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19082 | rm -rf conftest* |
19083 | eval "ac_cv_func_$ac_func=yes" | |
19084 | else | |
19085 | echo "configure: failed program was:" >&5 | |
19086 | cat conftest.$ac_ext >&5 | |
19087 | rm -rf conftest* | |
19088 | eval "ac_cv_func_$ac_func=no" | |
19089 | fi | |
19090 | rm -f conftest* | |
19091 | fi | |
698dcdb6 | 19092 | |
a0b9e27f MB |
19093 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
19094 | echo "$ac_t""yes" 1>&6 | |
19095 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19096 | cat >> confdefs.h <<EOF | |
19097 | #define $ac_tr_func 1 | |
19098 | EOF | |
19099 | ||
19100 | else | |
19101 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 19102 | fi |
4f14bcd8 | 19103 | done |
10f2d63a | 19104 | |
8284b0c5 | 19105 | |
a0b9e27f | 19106 | for ac_hdr in sched.h |
4f14bcd8 | 19107 | do |
a0b9e27f MB |
19108 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19109 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
fd3d7534 | 19110 | echo "configure:19111: checking for $ac_hdr" >&5 |
a0b9e27f MB |
19111 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19112 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19113 | else | |
19114 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 19115 | #line 19116 "configure" |
247f5006 | 19116 | #include "confdefs.h" |
a0b9e27f MB |
19117 | #include <$ac_hdr> |
19118 | EOF | |
19119 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
fd3d7534 | 19120 | { (eval echo configure:19121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
19121 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19122 | if test -z "$ac_err"; then | |
19123 | rm -rf conftest* | |
19124 | eval "ac_cv_header_$ac_safe=yes" | |
19125 | else | |
19126 | echo "$ac_err" >&5 | |
19127 | echo "configure: failed program was:" >&5 | |
4f14bcd8 | 19128 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
19129 | rm -rf conftest* |
19130 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 19131 | fi |
a0b9e27f | 19132 | rm -f conftest* |
10f2d63a | 19133 | fi |
a0b9e27f MB |
19134 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19135 | echo "$ac_t""yes" 1>&6 | |
19136 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19137 | cat >> confdefs.h <<EOF | |
19138 | #define $ac_tr_hdr 1 | |
19139 | EOF | |
19140 | ||
19141 | else | |
19142 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 19143 | fi |
4f14bcd8 | 19144 | done |
f6bcfd97 | 19145 | |
009fead0 | 19146 | if test "$ac_cv_header_sched_h" = "yes"; then |
a0b9e27f | 19147 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 |
fd3d7534 | 19148 | echo "configure:19149: checking for sched_yield" >&5 |
a0b9e27f MB |
19149 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
19150 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 19151 | else |
a0b9e27f | 19152 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 19153 | #line 19154 "configure" |
4f14bcd8 | 19154 | #include "confdefs.h" |
009fead0 | 19155 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19156 | which can conflict with char sched_yield(); below. */ |
009fead0 | 19157 | #include <assert.h> |
4f14bcd8 GD |
19158 | /* Override any gcc2 internal prototype to avoid an error. */ |
19159 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19160 | builtin and then its argument prototype would still apply. */ |
19161 | char sched_yield(); | |
19162 | ||
19163 | int main() { | |
19164 | ||
009fead0 VZ |
19165 | /* The GNU C library defines this for functions which it implements |
19166 | to always fail with ENOSYS. Some functions are actually named | |
19167 | something starting with __ and the normal name is an alias. */ | |
19168 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
19169 | choke me | |
19170 | #else | |
a0b9e27f | 19171 | sched_yield(); |
009fead0 VZ |
19172 | #endif |
19173 | ||
a0b9e27f MB |
19174 | ; return 0; } |
19175 | EOF | |
fd3d7534 | 19176 | if { (eval echo configure:19177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19177 | rm -rf conftest* |
19178 | eval "ac_cv_func_sched_yield=yes" | |
19179 | else | |
19180 | echo "configure: failed program was:" >&5 | |
19181 | cat conftest.$ac_ext >&5 | |
19182 | rm -rf conftest* | |
19183 | eval "ac_cv_func_sched_yield=no" | |
19184 | fi | |
19185 | rm -f conftest* | |
19186 | fi | |
19187 | ||
19188 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
19189 | echo "$ac_t""yes" 1>&6 | |
19190 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 19191 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 19192 | EOF |
10f2d63a | 19193 | |
4f14bcd8 | 19194 | else |
a0b9e27f | 19195 | echo "$ac_t""no" 1>&6 |
009fead0 | 19196 | |
a0b9e27f | 19197 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 |
fd3d7534 | 19198 | echo "configure:19199: checking for sched_yield in -lposix4" >&5 |
a0b9e27f MB |
19199 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
19200 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19201 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 19202 | else |
a0b9e27f | 19203 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 19204 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 19205 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 19206 | #line 19207 "configure" |
4f14bcd8 GD |
19207 | #include "confdefs.h" |
19208 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19209 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19210 | builtin and then its argument prototype would still apply. */ |
19211 | char sched_yield(); | |
19212 | ||
19213 | int main() { | |
19214 | sched_yield() | |
19215 | ; return 0; } | |
19216 | EOF | |
fd3d7534 | 19217 | if { (eval echo configure:19218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19218 | rm -rf conftest* |
19219 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19220 | else | |
19221 | echo "configure: failed program was:" >&5 | |
19222 | cat conftest.$ac_ext >&5 | |
19223 | rm -rf conftest* | |
19224 | eval "ac_cv_lib_$ac_lib_var=no" | |
19225 | fi | |
19226 | rm -f conftest* | |
19227 | LIBS="$ac_save_LIBS" | |
19228 | ||
19229 | fi | |
19230 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19231 | echo "$ac_t""yes" 1>&6 | |
19232 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 19233 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 19234 | EOF |
3d63bc3a | 19235 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 19236 | else |
a0b9e27f MB |
19237 | echo "$ac_t""no" 1>&6 |
19238 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
19239 | ||
54276ccf VZ |
19240 | fi |
19241 | ||
a0b9e27f MB |
19242 | |
19243 | ||
4f14bcd8 | 19244 | fi |
698dcdb6 | 19245 | |
009fead0 | 19246 | fi |
10f2d63a | 19247 | |
7274f1c7 | 19248 | HAVE_PRIOR_FUNCS=0 |
a0b9e27f | 19249 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
fd3d7534 | 19250 | echo "configure:19251: checking for pthread_attr_getschedpolicy" >&5 |
a0b9e27f MB |
19251 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
19252 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 19253 | else |
a0b9e27f | 19254 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 19255 | #line 19256 "configure" |
422107f9 | 19256 | #include "confdefs.h" |
009fead0 | 19257 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19258 | which can conflict with char pthread_attr_getschedpolicy(); below. */ |
009fead0 | 19259 | #include <assert.h> |
4f14bcd8 GD |
19260 | /* Override any gcc2 internal prototype to avoid an error. */ |
19261 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19262 | builtin and then its argument prototype would still apply. */ |
19263 | char pthread_attr_getschedpolicy(); | |
19264 | ||
19265 | int main() { | |
19266 | ||
009fead0 VZ |
19267 | /* The GNU C library defines this for functions which it implements |
19268 | to always fail with ENOSYS. Some functions are actually named | |
19269 | something starting with __ and the normal name is an alias. */ | |
19270 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
19271 | choke me | |
19272 | #else | |
a0b9e27f | 19273 | pthread_attr_getschedpolicy(); |
009fead0 VZ |
19274 | #endif |
19275 | ||
a0b9e27f MB |
19276 | ; return 0; } |
19277 | EOF | |
fd3d7534 | 19278 | if { (eval echo configure:19279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19279 | rm -rf conftest* |
19280 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" | |
19281 | else | |
19282 | echo "configure: failed program was:" >&5 | |
19283 | cat conftest.$ac_ext >&5 | |
19284 | rm -rf conftest* | |
19285 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" | |
19286 | fi | |
19287 | rm -f conftest* | |
19288 | fi | |
19289 | ||
19290 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
19291 | echo "$ac_t""yes" 1>&6 | |
19292 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 | |
fd3d7534 | 19293 | echo "configure:19294: checking for pthread_attr_setschedparam" >&5 |
a0b9e27f MB |
19294 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
19295 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 19296 | else |
a0b9e27f | 19297 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 19298 | #line 19299 "configure" |
a0b9e27f MB |
19299 | #include "confdefs.h" |
19300 | /* System header to define __stub macros and hopefully few prototypes, | |
19301 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
009fead0 | 19302 | #include <assert.h> |
422107f9 VZ |
19303 | /* Override any gcc2 internal prototype to avoid an error. */ |
19304 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19305 | builtin and then its argument prototype would still apply. */ |
19306 | char pthread_attr_setschedparam(); | |
19307 | ||
19308 | int main() { | |
19309 | ||
009fead0 VZ |
19310 | /* The GNU C library defines this for functions which it implements |
19311 | to always fail with ENOSYS. Some functions are actually named | |
19312 | something starting with __ and the normal name is an alias. */ | |
19313 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
19314 | choke me | |
19315 | #else | |
a0b9e27f | 19316 | pthread_attr_setschedparam(); |
009fead0 VZ |
19317 | #endif |
19318 | ||
a0b9e27f MB |
19319 | ; return 0; } |
19320 | EOF | |
fd3d7534 | 19321 | if { (eval echo configure:19322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19322 | rm -rf conftest* |
19323 | eval "ac_cv_func_pthread_attr_setschedparam=yes" | |
19324 | else | |
19325 | echo "configure: failed program was:" >&5 | |
19326 | cat conftest.$ac_ext >&5 | |
19327 | rm -rf conftest* | |
19328 | eval "ac_cv_func_pthread_attr_setschedparam=no" | |
19329 | fi | |
19330 | rm -f conftest* | |
19331 | fi | |
19332 | ||
19333 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
19334 | echo "$ac_t""yes" 1>&6 | |
19335 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 | |
fd3d7534 | 19336 | echo "configure:19337: checking for sched_get_priority_max" >&5 |
a0b9e27f MB |
19337 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
19338 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19339 | else | |
19340 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 19341 | #line 19342 "configure" |
422107f9 | 19342 | #include "confdefs.h" |
ef33c576 VZ |
19343 | /* System header to define __stub macros and hopefully few prototypes, |
19344 | which can conflict with char sched_get_priority_max(); below. */ | |
009fead0 | 19345 | #include <assert.h> |
4f14bcd8 GD |
19346 | /* Override any gcc2 internal prototype to avoid an error. */ |
19347 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19348 | builtin and then its argument prototype would still apply. */ |
19349 | char sched_get_priority_max(); | |
19350 | ||
19351 | int main() { | |
19352 | ||
009fead0 VZ |
19353 | /* The GNU C library defines this for functions which it implements |
19354 | to always fail with ENOSYS. Some functions are actually named | |
19355 | something starting with __ and the normal name is an alias. */ | |
19356 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
19357 | choke me | |
19358 | #else | |
a0b9e27f | 19359 | sched_get_priority_max(); |
009fead0 VZ |
19360 | #endif |
19361 | ||
a0b9e27f MB |
19362 | ; return 0; } |
19363 | EOF | |
fd3d7534 | 19364 | if { (eval echo configure:19365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19365 | rm -rf conftest* |
19366 | eval "ac_cv_func_sched_get_priority_max=yes" | |
19367 | else | |
19368 | echo "configure: failed program was:" >&5 | |
19369 | cat conftest.$ac_ext >&5 | |
19370 | rm -rf conftest* | |
19371 | eval "ac_cv_func_sched_get_priority_max=no" | |
19372 | fi | |
19373 | rm -f conftest* | |
19374 | fi | |
19375 | ||
19376 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
19377 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
19378 | HAVE_PRIOR_FUNCS=1 |
19379 | else | |
a0b9e27f MB |
19380 | echo "$ac_t""no" 1>&6 |
19381 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
fd3d7534 | 19382 | echo "configure:19383: checking for sched_get_priority_max in -lposix4" >&5 |
a0b9e27f MB |
19383 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
19384 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19385 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 19386 | else |
a0b9e27f | 19387 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 19388 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 19389 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 19390 | #line 19391 "configure" |
422107f9 VZ |
19391 | #include "confdefs.h" |
19392 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19393 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19394 | builtin and then its argument prototype would still apply. */ |
19395 | char sched_get_priority_max(); | |
19396 | ||
19397 | int main() { | |
19398 | sched_get_priority_max() | |
19399 | ; return 0; } | |
19400 | EOF | |
fd3d7534 | 19401 | if { (eval echo configure:19402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19402 | rm -rf conftest* |
19403 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19404 | else | |
19405 | echo "configure: failed program was:" >&5 | |
19406 | cat conftest.$ac_ext >&5 | |
19407 | rm -rf conftest* | |
19408 | eval "ac_cv_lib_$ac_lib_var=no" | |
19409 | fi | |
19410 | rm -f conftest* | |
19411 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 19412 | |
a0b9e27f MB |
19413 | fi |
19414 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19415 | echo "$ac_t""yes" 1>&6 | |
19416 | ||
7274f1c7 RL |
19417 | HAVE_PRIOR_FUNCS=1 |
19418 | POSIX4_LINK=" -lposix4" | |
a0b9e27f MB |
19419 | |
19420 | else | |
19421 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 19422 | fi |
463abc64 | 19423 | |
a0b9e27f | 19424 | |
328a083c | 19425 | fi |
463abc64 | 19426 | |
a0b9e27f MB |
19427 | |
19428 | else | |
19429 | echo "$ac_t""no" 1>&6 | |
7b4a847f | 19430 | fi |
579d8138 | 19431 | |
a0b9e27f | 19432 | |
ef33c576 VZ |
19433 | else |
19434 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 19435 | fi |
52127426 | 19436 | |
8284b0c5 | 19437 | |
7274f1c7 | 19438 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
a0b9e27f | 19439 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19440 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
a0b9e27f | 19441 | EOF |
463abc64 | 19442 | |
7274f1c7 | 19443 | else |
a0b9e27f | 19444 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
7274f1c7 | 19445 | fi |
463abc64 | 19446 | |
a0b9e27f | 19447 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
fd3d7534 | 19448 | echo "configure:19449: checking for pthread_cancel" >&5 |
a0b9e27f MB |
19449 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
19450 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 19451 | else |
a0b9e27f | 19452 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 19453 | #line 19454 "configure" |
422107f9 | 19454 | #include "confdefs.h" |
009fead0 | 19455 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19456 | which can conflict with char pthread_cancel(); below. */ |
009fead0 | 19457 | #include <assert.h> |
422107f9 VZ |
19458 | /* Override any gcc2 internal prototype to avoid an error. */ |
19459 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19460 | builtin and then its argument prototype would still apply. */ |
19461 | char pthread_cancel(); | |
19462 | ||
19463 | int main() { | |
19464 | ||
009fead0 VZ |
19465 | /* The GNU C library defines this for functions which it implements |
19466 | to always fail with ENOSYS. Some functions are actually named | |
19467 | something starting with __ and the normal name is an alias. */ | |
19468 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
19469 | choke me | |
19470 | #else | |
a0b9e27f | 19471 | pthread_cancel(); |
009fead0 VZ |
19472 | #endif |
19473 | ||
a0b9e27f MB |
19474 | ; return 0; } |
19475 | EOF | |
fd3d7534 | 19476 | if { (eval echo configure:19477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19477 | rm -rf conftest* |
19478 | eval "ac_cv_func_pthread_cancel=yes" | |
19479 | else | |
19480 | echo "configure: failed program was:" >&5 | |
19481 | cat conftest.$ac_ext >&5 | |
19482 | rm -rf conftest* | |
19483 | eval "ac_cv_func_pthread_cancel=no" | |
19484 | fi | |
19485 | rm -f conftest* | |
19486 | fi | |
19487 | ||
19488 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
19489 | echo "$ac_t""yes" 1>&6 | |
19490 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 19491 | #define HAVE_PTHREAD_CANCEL 1 |
a0b9e27f | 19492 | EOF |
4f14bcd8 | 19493 | |
698dcdb6 | 19494 | else |
a0b9e27f MB |
19495 | echo "$ac_t""no" 1>&6 |
19496 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
422107f9 VZ |
19497 | fi |
19498 | ||
5c6fa7d2 | 19499 | |
a0b9e27f | 19500 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
fd3d7534 | 19501 | echo "configure:19502: checking for pthread_cleanup_push/pop" >&5 |
a0b9e27f MB |
19502 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
19503 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 19504 | else |
a0b9e27f MB |
19505 | |
19506 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 19507 | #line 19508 "configure" |
4f14bcd8 GD |
19508 | #include "confdefs.h" |
19509 | #include <pthread.h> | |
a0b9e27f | 19510 | int main() { |
4f14bcd8 | 19511 | |
7274f1c7 RL |
19512 | pthread_cleanup_push(NULL, NULL); |
19513 | pthread_cleanup_pop(0); | |
a0b9e27f MB |
19514 | |
19515 | ; return 0; } | |
19516 | EOF | |
fd3d7534 | 19517 | if { (eval echo configure:19518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19518 | rm -rf conftest* |
19519 | ||
7274f1c7 | 19520 | wx_cv_func_pthread_cleanup_push=yes |
a0b9e27f | 19521 | |
4f14bcd8 | 19522 | else |
a0b9e27f MB |
19523 | echo "configure: failed program was:" >&5 |
19524 | cat conftest.$ac_ext >&5 | |
19525 | rm -rf conftest* | |
19526 | ||
7274f1c7 | 19527 | wx_cv_func_pthread_cleanup_push=no |
a0b9e27f | 19528 | |
5c6fa7d2 | 19529 | fi |
a0b9e27f MB |
19530 | rm -f conftest* |
19531 | ||
247f5006 | 19532 | fi |
a0b9e27f MB |
19533 | |
19534 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
4f14bcd8 | 19535 | |
7274f1c7 | 19536 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
a0b9e27f | 19537 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19538 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
a0b9e27f | 19539 | EOF |
c7a2bf27 | 19540 | |
7274f1c7 | 19541 | fi |
4f14bcd8 | 19542 | |
a0b9e27f MB |
19543 | |
19544 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
fd3d7534 | 19545 | echo "configure:19546: checking for pthread_mutexattr_t" >&5 |
a0b9e27f MB |
19546 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
19547 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 19548 | else |
a0b9e27f MB |
19549 | |
19550 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 19551 | #line 19552 "configure" |
0dcf9893 | 19552 | #include "confdefs.h" |
4f14bcd8 | 19553 | #include <pthread.h> |
a0b9e27f | 19554 | int main() { |
4f14bcd8 | 19555 | |
7274f1c7 RL |
19556 | pthread_mutexattr_t attr; |
19557 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
a0b9e27f MB |
19558 | |
19559 | ; return 0; } | |
19560 | EOF | |
fd3d7534 | 19561 | if { (eval echo configure:19562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19562 | rm -rf conftest* |
19563 | ||
7274f1c7 | 19564 | wx_cv_type_pthread_mutexattr_t=yes |
a0b9e27f | 19565 | |
3fed1840 | 19566 | else |
a0b9e27f MB |
19567 | echo "configure: failed program was:" >&5 |
19568 | cat conftest.$ac_ext >&5 | |
19569 | rm -rf conftest* | |
19570 | ||
7274f1c7 | 19571 | wx_cv_type_pthread_mutexattr_t=no |
a0b9e27f MB |
19572 | |
19573 | ||
5c6fa7d2 | 19574 | fi |
a0b9e27f MB |
19575 | rm -f conftest* |
19576 | ||
247f5006 | 19577 | fi |
a0b9e27f MB |
19578 | |
19579 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
4f14bcd8 | 19580 | |
7274f1c7 | 19581 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
a0b9e27f | 19582 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19583 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
a0b9e27f | 19584 | EOF |
4f14bcd8 | 19585 | |
7274f1c7 | 19586 | else |
a0b9e27f | 19587 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
fd3d7534 | 19588 | echo "configure:19589: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
a0b9e27f MB |
19589 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
19590 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19591 | else | |
19592 | ||
19593 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 19594 | #line 19595 "configure" |
3fed1840 | 19595 | #include "confdefs.h" |
4f14bcd8 | 19596 | #include <pthread.h> |
a0b9e27f | 19597 | int main() { |
4f14bcd8 | 19598 | |
7274f1c7 | 19599 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
a0b9e27f MB |
19600 | |
19601 | ; return 0; } | |
19602 | EOF | |
fd3d7534 | 19603 | if { (eval echo configure:19604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19604 | rm -rf conftest* |
19605 | ||
7274f1c7 | 19606 | wx_cv_type_pthread_rec_mutex_init=yes |
a0b9e27f | 19607 | |
698dcdb6 | 19608 | else |
a0b9e27f MB |
19609 | echo "configure: failed program was:" >&5 |
19610 | cat conftest.$ac_ext >&5 | |
19611 | rm -rf conftest* | |
19612 | ||
7274f1c7 | 19613 | wx_cv_type_pthread_rec_mutex_init=no |
a0b9e27f MB |
19614 | |
19615 | ||
5c6fa7d2 | 19616 | fi |
a0b9e27f MB |
19617 | rm -f conftest* |
19618 | ||
247f5006 | 19619 | fi |
a0b9e27f MB |
19620 | |
19621 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
7274f1c7 | 19622 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
a0b9e27f | 19623 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19624 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
a0b9e27f | 19625 | EOF |
3fed1840 | 19626 | |
7274f1c7 | 19627 | else |
a0b9e27f | 19628 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
7274f1c7 RL |
19629 | fi |
19630 | fi | |
7274f1c7 | 19631 | fi |
3fed1840 | 19632 | |
a0b9e27f MB |
19633 | else |
19634 | if test "$wxUSE_THREADS" = "yes" ; then | |
19635 | case "${host}" in | |
19636 | *-*-mingw32* ) | |
ca8e52b3 | 19637 | echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6 |
fd3d7534 | 19638 | echo "configure:19639: checking if compiler supports -mthreads" >&5 |
ca8e52b3 VZ |
19639 | if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then |
19640 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19641 | else | |
19642 | ||
19643 | CFLAGS_OLD="$CFLAGS" | |
19644 | CFLAGS="$CFLAGS -mthreads" | |
19645 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 19646 | #line 19647 "configure" |
ca8e52b3 VZ |
19647 | #include "confdefs.h" |
19648 | ||
19649 | int main() { | |
19650 | ||
19651 | ; return 0; } | |
19652 | EOF | |
fd3d7534 | 19653 | if { (eval echo configure:19654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ca8e52b3 VZ |
19654 | rm -rf conftest* |
19655 | wx_cv_cflags_mthread=yes | |
19656 | else | |
19657 | echo "configure: failed program was:" >&5 | |
19658 | cat conftest.$ac_ext >&5 | |
19659 | rm -rf conftest* | |
19660 | wx_cv_cflags_mthread=no | |
19661 | ||
19662 | fi | |
19663 | rm -f conftest* | |
19664 | ||
19665 | ||
19666 | fi | |
19667 | ||
19668 | echo "$ac_t""$wx_cv_cflags_mthread" 1>&6 | |
19669 | ||
19670 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
19671 | CXXFLAGS="$CXXFLAGS -mthreads" | |
19672 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
19673 | LDFLAGS="$LDFLAGS -mthreads" | |
19674 | else | |
19675 | CFLAGS="$CFLAGS_OLD" | |
19676 | fi | |
a0b9e27f MB |
19677 | ;; |
19678 | esac | |
19679 | fi | |
4f14bcd8 GD |
19680 | fi |
19681 | ||
19682 | if test "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 19683 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19684 | #define wxUSE_THREADS 1 |
a0b9e27f | 19685 | EOF |
7b6058cd | 19686 | |
8284b0c5 | 19687 | |
4f14bcd8 | 19688 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 19689 | else |
4f14bcd8 | 19690 | if test "$ac_cv_func_strtok_r" = "yes"; then |
a0b9e27f | 19691 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
fd3d7534 | 19692 | echo "configure:19693: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
19693 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
19694 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
a0b9e27f | 19695 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 19696 | else |
a0b9e27f | 19697 | echo "$ac_t""no" 1>&6 |
4f14bcd8 GD |
19698 | fi |
19699 | fi | |
19700 | fi | |
19701 | ||
19702 | if test "$WXGTK20" = 1 ; then | |
a0b9e27f | 19703 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19704 | #define __WXGTK20__ $WXGTK20 |
a0b9e27f | 19705 | EOF |
4f14bcd8 GD |
19706 | |
19707 | WXGTK12=1 | |
10f2d63a | 19708 | fi |
4f14bcd8 GD |
19709 | |
19710 | if test "$WXGTK12" = 1 ; then | |
a0b9e27f | 19711 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19712 | #define __WXGTK12__ $WXGTK12 |
a0b9e27f | 19713 | EOF |
4f14bcd8 | 19714 | |
10f2d63a | 19715 | fi |
698dcdb6 | 19716 | |
4f14bcd8 | 19717 | if test "$WXGTK127" = 1 ; then |
a0b9e27f | 19718 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19719 | #define __WXGTK127__ $WXGTK127 |
a0b9e27f | 19720 | EOF |
4f14bcd8 | 19721 | |
698dcdb6 | 19722 | fi |
10f2d63a | 19723 | |
4f14bcd8 GD |
19724 | WXDEBUG= |
19725 | ||
19726 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
19727 | WXDEBUG="-g" | |
19728 | wxUSE_OPTIMISE=no | |
698dcdb6 | 19729 | fi |
4f14bcd8 GD |
19730 | |
19731 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
19732 | wxUSE_DEBUG_INFO=yes | |
19733 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
19734 | fi |
19735 | ||
4f14bcd8 | 19736 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
a0b9e27f | 19737 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19738 | #define WXDEBUG 1 |
a0b9e27f | 19739 | EOF |
4f14bcd8 GD |
19740 | |
19741 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 19742 | else |
4f14bcd8 GD |
19743 | if test "$wxUSE_GTK" = 1 ; then |
19744 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
19745 | fi | |
19746 | fi | |
19747 | ||
19748 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
a0b9e27f | 19749 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19750 | #define wxUSE_MEMORY_TRACING 1 |
a0b9e27f | 19751 | EOF |
4f14bcd8 | 19752 | |
a0b9e27f | 19753 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19754 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
a0b9e27f | 19755 | EOF |
4f14bcd8 | 19756 | |
a0b9e27f | 19757 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19758 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
a0b9e27f | 19759 | EOF |
4f14bcd8 GD |
19760 | |
19761 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
19762 | fi | |
19763 | ||
19764 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 19765 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
19766 | fi |
19767 | ||
19768 | PROFILE= | |
19769 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 19770 | PROFILE=" -pg" |
10f2d63a VZ |
19771 | fi |
19772 | ||
009fead0 VZ |
19773 | CODE_GEN_FLAGS= |
19774 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 19775 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
19776 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
19777 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 19778 | fi |
4f14bcd8 GD |
19779 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
19780 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
19781 | fi | |
19782 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
19783 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
19784 | fi | |
4f14bcd8 GD |
19785 | if test "$USE_WIN32" = 1 ; then |
19786 | # I'm not even really sure what this was ever added to solve, | |
19787 | # but someone added it for mingw native builds, so I guess | |
19788 | # they had a reason, right?? | |
19789 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
19790 | fi | |
1d1b75ac | 19791 | |
2b5f62a0 | 19792 | case "${host}" in |
1d1b75ac VZ |
19793 | powerpc*-*-aix* ) |
19794 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
19795 | ;; | |
2b5f62a0 VZ |
19796 | *-hppa* ) |
19797 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
19798 | ;; | |
1d1b75ac | 19799 | esac |
4f14bcd8 GD |
19800 | fi |
19801 | ||
af7b5345 | 19802 | OPTIMISE= |
4f14bcd8 | 19803 | if test "$wxUSE_OPTIMISE" = "no" ; then |
af7b5345 VZ |
19804 | if test "$GCC" = yes ; then |
19805 | OPTIMISE="-O0" | |
19806 | fi | |
4f14bcd8 GD |
19807 | else |
19808 | if test "$GCC" = yes ; then | |
19809 | OPTIMISE="-O2" | |
af7b5345 VZ |
19810 | |
19811 | case "${host}" in | |
4f14bcd8 GD |
19812 | i586-*-*|i686-*-* ) |
19813 | OPTIMISE="${OPTIMISE} " | |
19814 | ;; | |
19815 | esac | |
19816 | else | |
19817 | OPTIMISE="-O" | |
19818 | fi | |
19819 | fi | |
19820 | ||
8d90d2f2 | 19821 | |
4f14bcd8 | 19822 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
a0b9e27f | 19823 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19824 | #define WXWIN_COMPATIBILITY_2 1 |
a0b9e27f | 19825 | EOF |
4f14bcd8 | 19826 | |
8284b0c5 | 19827 | |
4f14bcd8 GD |
19828 | WXWIN_COMPATIBILITY_2_2="yes" |
19829 | fi | |
19830 | ||
65d8ef1e | 19831 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
a0b9e27f | 19832 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19833 | #define WXWIN_COMPATIBILITY_2_2 1 |
a0b9e27f | 19834 | EOF |
4f14bcd8 | 19835 | |
8d90d2f2 VZ |
19836 | |
19837 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
19838 | fi |
19839 | ||
65d8ef1e VS |
19840 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
19841 | cat >> confdefs.h <<\EOF | |
19842 | #define WXWIN_COMPATIBILITY_2_4 1 | |
19843 | EOF | |
19844 | ||
19845 | fi | |
19846 | ||
8284b0c5 | 19847 | |
10f2d63a | 19848 | if test "$wxUSE_GUI" = "yes"; then |
a0b9e27f | 19849 | cat >> confdefs.h <<\EOF |
10f2d63a | 19850 | #define wxUSE_GUI 1 |
a0b9e27f | 19851 | EOF |
10f2d63a | 19852 | |
8284b0c5 | 19853 | |
10f2d63a | 19854 | else |
a0b9e27f | 19855 | cat >> confdefs.h <<\EOF |
10f2d63a | 19856 | #define wxUSE_NOGUI 1 |
a0b9e27f | 19857 | EOF |
10f2d63a VZ |
19858 | |
19859 | fi | |
19860 | ||
8284b0c5 | 19861 | |
10f2d63a | 19862 | if test "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 19863 | cat >> confdefs.h <<\EOF |
10f2d63a | 19864 | #define wxUSE_UNIX 1 |
a0b9e27f | 19865 | EOF |
10f2d63a VZ |
19866 | |
19867 | fi | |
19868 | ||
8284b0c5 | 19869 | |
10f2d63a | 19870 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
a0b9e27f | 19871 | cat >> confdefs.h <<\EOF |
10f2d63a | 19872 | #define wxUSE_APPLE_IEEE 1 |
a0b9e27f | 19873 | EOF |
10f2d63a VZ |
19874 | |
19875 | fi | |
19876 | ||
1e6feb95 | 19877 | if test "$wxUSE_TIMER" = "yes"; then |
a0b9e27f | 19878 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19879 | #define wxUSE_TIMER 1 |
a0b9e27f | 19880 | EOF |
1e6feb95 VZ |
19881 | |
19882 | fi | |
19883 | ||
10f2d63a | 19884 | if test "$wxUSE_WAVE" = "yes"; then |
a0b9e27f | 19885 | cat >> confdefs.h <<\EOF |
10f2d63a | 19886 | #define wxUSE_WAVE 1 |
a0b9e27f | 19887 | EOF |
10f2d63a VZ |
19888 | |
19889 | fi | |
19890 | ||
1e6feb95 | 19891 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
a0b9e27f | 19892 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19893 | #define wxUSE_CMDLINE_PARSER 1 |
a0b9e27f | 19894 | EOF |
1e6feb95 VZ |
19895 | |
19896 | fi | |
19897 | ||
19898 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
a0b9e27f | 19899 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19900 | #define wxUSE_STOPWATCH 1 |
a0b9e27f | 19901 | EOF |
1e6feb95 VZ |
19902 | |
19903 | fi | |
19904 | ||
19905 | if test "$wxUSE_DATETIME" = "yes"; then | |
a0b9e27f | 19906 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19907 | #define wxUSE_DATETIME 1 |
a0b9e27f | 19908 | EOF |
1e6feb95 VZ |
19909 | |
19910 | fi | |
19911 | ||
10f2d63a | 19912 | if test "$wxUSE_FILE" = "yes"; then |
a0b9e27f | 19913 | cat >> confdefs.h <<\EOF |
10f2d63a | 19914 | #define wxUSE_FILE 1 |
a0b9e27f | 19915 | EOF |
10f2d63a VZ |
19916 | |
19917 | fi | |
19918 | ||
1e6feb95 | 19919 | if test "$wxUSE_FFILE" = "yes"; then |
a0b9e27f | 19920 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19921 | #define wxUSE_FFILE 1 |
a0b9e27f | 19922 | EOF |
1e6feb95 VZ |
19923 | |
19924 | fi | |
19925 | ||
24528b0c | 19926 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
a0b9e27f | 19927 | cat >> confdefs.h <<\EOF |
24528b0c | 19928 | #define wxUSE_FILESYSTEM 1 |
a0b9e27f | 19929 | EOF |
24528b0c VS |
19930 | |
19931 | fi | |
19932 | ||
10f2d63a | 19933 | if test "$wxUSE_FS_INET" = "yes"; then |
a0b9e27f | 19934 | cat >> confdefs.h <<\EOF |
10f2d63a | 19935 | #define wxUSE_FS_INET 1 |
a0b9e27f | 19936 | EOF |
10f2d63a VZ |
19937 | |
19938 | fi | |
19939 | ||
19940 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
a0b9e27f | 19941 | cat >> confdefs.h <<\EOF |
10f2d63a | 19942 | #define wxUSE_FS_ZIP 1 |
a0b9e27f | 19943 | EOF |
10f2d63a VZ |
19944 | |
19945 | fi | |
19946 | ||
19947 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
a0b9e27f | 19948 | cat >> confdefs.h <<\EOF |
10f2d63a | 19949 | #define wxUSE_ZIPSTREAM 1 |
a0b9e27f | 19950 | EOF |
10f2d63a VZ |
19951 | |
19952 | fi | |
19953 | ||
eb4efbdc | 19954 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
a0b9e27f | 19955 | cat >> confdefs.h <<\EOF |
eb4efbdc | 19956 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
a0b9e27f | 19957 | EOF |
eb4efbdc VZ |
19958 | |
19959 | fi | |
19960 | ||
4f3c5f06 | 19961 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 19962 | cat >> confdefs.h <<\EOF |
4f3c5f06 | 19963 | #define wxUSE_SNGLINST_CHECKER 1 |
a0b9e27f | 19964 | EOF |
4f3c5f06 VZ |
19965 | |
19966 | fi | |
19967 | ||
10f2d63a | 19968 | if test "$wxUSE_BUSYINFO" = "yes"; then |
a0b9e27f | 19969 | cat >> confdefs.h <<\EOF |
10f2d63a | 19970 | #define wxUSE_BUSYINFO 1 |
a0b9e27f | 19971 | EOF |
10f2d63a VZ |
19972 | |
19973 | fi | |
19974 | ||
19975 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
a0b9e27f | 19976 | cat >> confdefs.h <<\EOF |
10f2d63a | 19977 | #define wxUSE_STD_IOSTREAM 1 |
a0b9e27f | 19978 | EOF |
10f2d63a VZ |
19979 | |
19980 | fi | |
19981 | ||
a3a584a7 | 19982 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
a0b9e27f | 19983 | cat >> confdefs.h <<\EOF |
a3a584a7 | 19984 | #define wxUSE_TEXTBUFFER 1 |
a0b9e27f | 19985 | EOF |
a3a584a7 VZ |
19986 | |
19987 | fi | |
19988 | ||
10f2d63a | 19989 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 19990 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
a0b9e27f | 19991 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 19992 | else |
a0b9e27f | 19993 | cat >> confdefs.h <<\EOF |
10f2d63a | 19994 | #define wxUSE_TEXTFILE 1 |
a0b9e27f | 19995 | EOF |
10f2d63a VZ |
19996 | |
19997 | fi | |
19998 | fi | |
19999 | ||
20000 | if test "$wxUSE_CONFIG" = "yes" ; then | |
20001 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
a0b9e27f | 20002 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 20003 | else |
a0b9e27f | 20004 | cat >> confdefs.h <<\EOF |
10f2d63a | 20005 | #define wxUSE_CONFIG 1 |
a0b9e27f | 20006 | EOF |
10f2d63a VZ |
20007 | |
20008 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
20009 | fi | |
20010 | fi | |
20011 | ||
20012 | if test "$wxUSE_INTL" = "yes" ; then | |
20013 | if test "$wxUSE_FILE" != "yes"; then | |
a0b9e27f | 20014 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 20015 | else |
a0b9e27f | 20016 | cat >> confdefs.h <<\EOF |
10f2d63a | 20017 | #define wxUSE_INTL 1 |
a0b9e27f | 20018 | EOF |
10f2d63a VZ |
20019 | |
20020 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 20021 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
20022 | fi |
20023 | fi | |
20024 | ||
20025 | if test "$wxUSE_LOG" = "yes"; then | |
a0b9e27f | 20026 | cat >> confdefs.h <<\EOF |
10f2d63a | 20027 | #define wxUSE_LOG 1 |
a0b9e27f | 20028 | EOF |
10f2d63a | 20029 | |
8284b0c5 | 20030 | |
d73be714 | 20031 | if test "$wxUSE_LOGGUI" = "yes"; then |
a0b9e27f | 20032 | cat >> confdefs.h <<\EOF |
d73be714 | 20033 | #define wxUSE_LOGGUI 1 |
a0b9e27f | 20034 | EOF |
d73be714 VZ |
20035 | |
20036 | fi | |
20037 | ||
20038 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
a0b9e27f | 20039 | cat >> confdefs.h <<\EOF |
d73be714 | 20040 | #define wxUSE_LOGWINDOW 1 |
a0b9e27f | 20041 | EOF |
69d27ff7 MB |
20042 | |
20043 | fi | |
20044 | ||
20045 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
a0b9e27f | 20046 | cat >> confdefs.h <<\EOF |
69d27ff7 | 20047 | #define wxUSE_LOG_DIALOG 1 |
a0b9e27f | 20048 | EOF |
d73be714 VZ |
20049 | |
20050 | fi | |
10f2d63a VZ |
20051 | fi |
20052 | ||
20053 | if test "$wxUSE_LONGLONG" = "yes"; then | |
a0b9e27f | 20054 | cat >> confdefs.h <<\EOF |
10f2d63a | 20055 | #define wxUSE_LONGLONG 1 |
a0b9e27f | 20056 | EOF |
10f2d63a VZ |
20057 | |
20058 | fi | |
20059 | ||
e8f65ba6 | 20060 | if test "$wxUSE_GEOMETRY" = "yes"; then |
a0b9e27f | 20061 | cat >> confdefs.h <<\EOF |
e8f65ba6 | 20062 | #define wxUSE_GEOMETRY 1 |
a0b9e27f | 20063 | EOF |
e8f65ba6 RR |
20064 | |
20065 | fi | |
20066 | ||
10f2d63a | 20067 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
a0b9e27f | 20068 | cat >> confdefs.h <<\EOF |
10f2d63a | 20069 | #define wxUSE_DIALUP_MANAGER 1 |
a0b9e27f | 20070 | EOF |
10f2d63a | 20071 | |
70f7a477 | 20072 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
20073 | fi |
20074 | ||
20075 | if test "$wxUSE_STREAMS" = "yes" ; then | |
a0b9e27f | 20076 | cat >> confdefs.h <<\EOF |
10f2d63a | 20077 | #define wxUSE_STREAMS 1 |
a0b9e27f | 20078 | EOF |
10f2d63a VZ |
20079 | |
20080 | fi | |
20081 | ||
5c6fa7d2 | 20082 | |
8284b0c5 | 20083 | if test "$wxUSE_DATETIME" = "yes"; then |
a0b9e27f | 20084 | for ac_func in strptime |
83307f33 | 20085 | do |
a0b9e27f | 20086 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
fd3d7534 | 20087 | echo "configure:20088: checking for $ac_func" >&5 |
a0b9e27f MB |
20088 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20089 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20090 | else | |
20091 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 20092 | #line 20093 "configure" |
83307f33 VZ |
20093 | #include "confdefs.h" |
20094 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20095 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
20096 | #include <assert.h> |
20097 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20098 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20099 | builtin and then its argument prototype would still apply. */ |
20100 | char $ac_func(); | |
20101 | ||
20102 | int main() { | |
20103 | ||
83307f33 VZ |
20104 | /* The GNU C library defines this for functions which it implements |
20105 | to always fail with ENOSYS. Some functions are actually named | |
20106 | something starting with __ and the normal name is an alias. */ | |
20107 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20108 | choke me | |
20109 | #else | |
a0b9e27f | 20110 | $ac_func(); |
83307f33 VZ |
20111 | #endif |
20112 | ||
a0b9e27f MB |
20113 | ; return 0; } |
20114 | EOF | |
fd3d7534 | 20115 | if { (eval echo configure:20116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20116 | rm -rf conftest* |
20117 | eval "ac_cv_func_$ac_func=yes" | |
20118 | else | |
20119 | echo "configure: failed program was:" >&5 | |
20120 | cat conftest.$ac_ext >&5 | |
20121 | rm -rf conftest* | |
20122 | eval "ac_cv_func_$ac_func=no" | |
20123 | fi | |
20124 | rm -f conftest* | |
20125 | fi | |
83307f33 | 20126 | |
a0b9e27f MB |
20127 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
20128 | echo "$ac_t""yes" 1>&6 | |
20129 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20130 | cat >> confdefs.h <<EOF | |
20131 | #define $ac_tr_func 1 | |
20132 | EOF | |
20133 | ||
20134 | else | |
20135 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
20136 | fi |
20137 | done | |
20138 | ||
5c6fa7d2 | 20139 | |
a0b9e27f | 20140 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
fd3d7534 | 20141 | echo "configure:20142: checking for timezone variable in <time.h>" >&5 |
a0b9e27f MB |
20142 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
20143 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 20144 | else |
a0b9e27f MB |
20145 | |
20146 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 20147 | #line 20148 "configure" |
360d6699 VZ |
20148 | #include "confdefs.h" |
20149 | ||
b4085ce6 | 20150 | #include <time.h> |
a0b9e27f MB |
20151 | |
20152 | int main() { | |
360d6699 VZ |
20153 | |
20154 | int tz; | |
4f11a343 | 20155 | tz = timezone; |
a0b9e27f MB |
20156 | |
20157 | ; return 0; } | |
20158 | EOF | |
fd3d7534 | 20159 | if { (eval echo configure:20160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
20160 | rm -rf conftest* |
20161 | ||
4f11a343 | 20162 | wx_cv_var_timezone=timezone |
a0b9e27f | 20163 | |
360d6699 | 20164 | else |
a0b9e27f MB |
20165 | echo "configure: failed program was:" >&5 |
20166 | cat conftest.$ac_ext >&5 | |
20167 | rm -rf conftest* | |
20168 | ||
20169 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 20170 | #line 20171 "configure" |
360d6699 VZ |
20171 | #include "confdefs.h" |
20172 | ||
b4085ce6 | 20173 | #include <time.h> |
a0b9e27f MB |
20174 | |
20175 | int main() { | |
360d6699 VZ |
20176 | |
20177 | int tz; | |
20178 | tz = _timezone; | |
a0b9e27f MB |
20179 | |
20180 | ; return 0; } | |
20181 | EOF | |
fd3d7534 | 20182 | if { (eval echo configure:20183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
20183 | rm -rf conftest* |
20184 | ||
360d6699 | 20185 | wx_cv_var_timezone=_timezone |
a0b9e27f | 20186 | |
5357c8e8 | 20187 | else |
a0b9e27f MB |
20188 | echo "configure: failed program was:" >&5 |
20189 | cat conftest.$ac_ext >&5 | |
20190 | rm -rf conftest* | |
20191 | ||
20192 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 20193 | #line 20194 "configure" |
5357c8e8 VZ |
20194 | #include "confdefs.h" |
20195 | ||
b4085ce6 | 20196 | #include <time.h> |
a0b9e27f MB |
20197 | |
20198 | int main() { | |
5357c8e8 VZ |
20199 | |
20200 | int tz; | |
4f11a343 | 20201 | tz = __timezone; |
a0b9e27f MB |
20202 | |
20203 | ; return 0; } | |
20204 | EOF | |
fd3d7534 | 20205 | if { (eval echo configure:20206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
20206 | rm -rf conftest* |
20207 | ||
4f11a343 | 20208 | wx_cv_var_timezone=__timezone |
a0b9e27f | 20209 | |
360d6699 | 20210 | else |
a0b9e27f MB |
20211 | echo "configure: failed program was:" >&5 |
20212 | cat conftest.$ac_ext >&5 | |
20213 | rm -rf conftest* | |
20214 | ||
f9bc1684 | 20215 | if test "$USE_DOS" = 0 ; then |
a0b9e27f | 20216 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 | 20217 | fi |
a0b9e27f MB |
20218 | |
20219 | ||
328a083c | 20220 | fi |
a0b9e27f MB |
20221 | rm -f conftest* |
20222 | ||
20223 | ||
7b4a847f | 20224 | fi |
a0b9e27f MB |
20225 | rm -f conftest* |
20226 | ||
20227 | ||
5c6fa7d2 | 20228 | fi |
a0b9e27f MB |
20229 | rm -f conftest* |
20230 | ||
20231 | ||
247f5006 | 20232 | fi |
a0b9e27f MB |
20233 | |
20234 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
698dcdb6 | 20235 | |
f9bc1684 | 20236 | if test "x$wx_cv_var_timezone" != x ; then |
a0b9e27f | 20237 | cat >> confdefs.h <<EOF |
360d6699 | 20238 | #define WX_TIMEZONE $wx_cv_var_timezone |
a0b9e27f | 20239 | EOF |
360d6699 | 20240 | |
f9bc1684 | 20241 | fi |
698dcdb6 | 20242 | |
a0b9e27f | 20243 | for ac_func in localtime |
afc31813 | 20244 | do |
a0b9e27f | 20245 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
fd3d7534 | 20246 | echo "configure:20247: checking for $ac_func" >&5 |
a0b9e27f MB |
20247 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20248 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20249 | else | |
20250 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 20251 | #line 20252 "configure" |
10f2d63a | 20252 | #include "confdefs.h" |
afc31813 | 20253 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 20254 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
20255 | #include <assert.h> |
20256 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20257 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20258 | builtin and then its argument prototype would still apply. */ |
20259 | char $ac_func(); | |
20260 | ||
20261 | int main() { | |
20262 | ||
afc31813 VZ |
20263 | /* The GNU C library defines this for functions which it implements |
20264 | to always fail with ENOSYS. Some functions are actually named | |
20265 | something starting with __ and the normal name is an alias. */ | |
20266 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20267 | choke me | |
20268 | #else | |
a0b9e27f | 20269 | $ac_func(); |
afc31813 VZ |
20270 | #endif |
20271 | ||
a0b9e27f MB |
20272 | ; return 0; } |
20273 | EOF | |
fd3d7534 | 20274 | if { (eval echo configure:20275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20275 | rm -rf conftest* |
20276 | eval "ac_cv_func_$ac_func=yes" | |
20277 | else | |
20278 | echo "configure: failed program was:" >&5 | |
20279 | cat conftest.$ac_ext >&5 | |
20280 | rm -rf conftest* | |
20281 | eval "ac_cv_func_$ac_func=no" | |
20282 | fi | |
20283 | rm -f conftest* | |
20284 | fi | |
afc31813 | 20285 | |
a0b9e27f MB |
20286 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
20287 | echo "$ac_t""yes" 1>&6 | |
20288 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20289 | cat >> confdefs.h <<EOF | |
20290 | #define $ac_tr_func 1 | |
20291 | EOF | |
20292 | ||
20293 | else | |
20294 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
20295 | fi |
20296 | done | |
20297 | ||
5c6fa7d2 | 20298 | |
8284b0c5 | 20299 | if test "$ac_cv_func_localtime" = "yes"; then |
a0b9e27f | 20300 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
fd3d7534 | 20301 | echo "configure:20302: checking for tm_gmtoff in struct tm" >&5 |
a0b9e27f MB |
20302 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
20303 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20304 | else | |
20305 | ||
20306 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 20307 | #line 20308 "configure" |
0470b1e6 VZ |
20308 | #include "confdefs.h" |
20309 | ||
b4085ce6 | 20310 | #include <time.h> |
a0b9e27f MB |
20311 | |
20312 | int main() { | |
0470b1e6 VZ |
20313 | |
20314 | struct tm tm; | |
20315 | tm.tm_gmtoff++; | |
a0b9e27f MB |
20316 | |
20317 | ; return 0; } | |
20318 | EOF | |
fd3d7534 | 20319 | if { (eval echo configure:20320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
20320 | rm -rf conftest* |
20321 | ||
f03a98d8 | 20322 | wx_cv_struct_tm_has_gmtoff=yes |
a0b9e27f | 20323 | |
0470b1e6 | 20324 | else |
a0b9e27f MB |
20325 | echo "configure: failed program was:" >&5 |
20326 | cat conftest.$ac_ext >&5 | |
20327 | rm -rf conftest* | |
20328 | wx_cv_struct_tm_has_gmtoff=no | |
20329 | ||
5c6fa7d2 | 20330 | fi |
a0b9e27f MB |
20331 | rm -f conftest* |
20332 | ||
247f5006 | 20333 | fi |
a0b9e27f MB |
20334 | |
20335 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
20336 | fi |
20337 | ||
20338 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
a0b9e27f | 20339 | cat >> confdefs.h <<\EOF |
6232543b | 20340 | #define WX_GMTOFF_IN_TM 1 |
a0b9e27f | 20341 | EOF |
0470b1e6 | 20342 | |
3fcdd07b VZ |
20343 | fi |
20344 | ||
a0b9e27f | 20345 | for ac_func in gettimeofday ftime |
3fcdd07b | 20346 | do |
a0b9e27f | 20347 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
fd3d7534 | 20348 | echo "configure:20349: checking for $ac_func" >&5 |
a0b9e27f MB |
20349 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20350 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20351 | else | |
20352 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 20353 | #line 20354 "configure" |
3fcdd07b VZ |
20354 | #include "confdefs.h" |
20355 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20356 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
20357 | #include <assert.h> |
20358 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20359 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20360 | builtin and then its argument prototype would still apply. */ |
20361 | char $ac_func(); | |
20362 | ||
20363 | int main() { | |
20364 | ||
3fcdd07b VZ |
20365 | /* The GNU C library defines this for functions which it implements |
20366 | to always fail with ENOSYS. Some functions are actually named | |
20367 | something starting with __ and the normal name is an alias. */ | |
20368 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20369 | choke me | |
20370 | #else | |
a0b9e27f | 20371 | $ac_func(); |
3fcdd07b VZ |
20372 | #endif |
20373 | ||
a0b9e27f MB |
20374 | ; return 0; } |
20375 | EOF | |
fd3d7534 | 20376 | if { (eval echo configure:20377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20377 | rm -rf conftest* |
20378 | eval "ac_cv_func_$ac_func=yes" | |
20379 | else | |
20380 | echo "configure: failed program was:" >&5 | |
20381 | cat conftest.$ac_ext >&5 | |
20382 | rm -rf conftest* | |
20383 | eval "ac_cv_func_$ac_func=no" | |
20384 | fi | |
20385 | rm -f conftest* | |
20386 | fi | |
20387 | ||
20388 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20389 | echo "$ac_t""yes" 1>&6 | |
20390 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20391 | cat >> confdefs.h <<EOF | |
20392 | #define $ac_tr_func 1 | |
20393 | EOF | |
3fcdd07b | 20394 | break |
a0b9e27f MB |
20395 | else |
20396 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
20397 | fi |
20398 | done | |
20399 | ||
698dcdb6 | 20400 | |
8284b0c5 | 20401 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
a0b9e27f | 20402 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
fd3d7534 | 20403 | echo "configure:20404: checking whether gettimeofday takes two arguments" >&5 |
a0b9e27f MB |
20404 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
20405 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20406 | else | |
20407 | ||
20408 | ||
20409 | ac_ext=C | |
20410 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 20411 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20412 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20413 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20414 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 20415 | |
8284b0c5 | 20416 | |
a0b9e27f | 20417 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 20418 | #line 20419 "configure" |
10f2d63a | 20419 | #include "confdefs.h" |
afc31813 VZ |
20420 | |
20421 | #include <sys/time.h> | |
20422 | #include <unistd.h> | |
a0b9e27f MB |
20423 | |
20424 | int main() { | |
afc31813 VZ |
20425 | |
20426 | struct timeval tv; | |
776862b4 | 20427 | gettimeofday(&tv, NULL); |
a0b9e27f MB |
20428 | |
20429 | ; return 0; } | |
20430 | EOF | |
fd3d7534 | 20431 | if { (eval echo configure:20432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20432 | rm -rf conftest* |
afc31813 | 20433 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 20434 | else |
a0b9e27f MB |
20435 | echo "configure: failed program was:" >&5 |
20436 | cat conftest.$ac_ext >&5 | |
20437 | rm -rf conftest* | |
20438 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 20439 | #line 20440 "configure" |
10f2d63a | 20440 | #include "confdefs.h" |
afc31813 VZ |
20441 | |
20442 | #include <sys/time.h> | |
20443 | #include <unistd.h> | |
a0b9e27f MB |
20444 | |
20445 | int main() { | |
afc31813 VZ |
20446 | |
20447 | struct timeval tv; | |
20448 | gettimeofday(&tv); | |
a0b9e27f MB |
20449 | |
20450 | ; return 0; } | |
20451 | EOF | |
fd3d7534 | 20452 | if { (eval echo configure:20453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20453 | rm -rf conftest* |
afc31813 | 20454 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 20455 | else |
a0b9e27f MB |
20456 | echo "configure: failed program was:" >&5 |
20457 | cat conftest.$ac_ext >&5 | |
20458 | rm -rf conftest* | |
20459 | ||
20460 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
776862b4 | 20461 | wx_cv_func_gettimeofday_has_2_args=unknown |
a0b9e27f MB |
20462 | |
20463 | ||
10f2d63a | 20464 | fi |
a0b9e27f MB |
20465 | rm -f conftest* |
20466 | ||
10f2d63a | 20467 | fi |
a0b9e27f | 20468 | rm -f conftest* |
afc31813 | 20469 | ac_ext=c |
a0b9e27f | 20470 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 20471 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20472 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20473 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20474 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20475 | |
a0b9e27f | 20476 | |
247f5006 | 20477 | fi |
a0b9e27f MB |
20478 | |
20479 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 20480 | |
afc31813 | 20481 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
a0b9e27f | 20482 | cat >> confdefs.h <<\EOF |
afc31813 | 20483 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
a0b9e27f | 20484 | EOF |
afc31813 VZ |
20485 | |
20486 | fi | |
20487 | fi | |
20488 | ||
afc31813 VZ |
20489 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" |
20490 | fi | |
20491 | ||
8284b0c5 | 20492 | |
52127426 | 20493 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 20494 | if test "$wxUSE_MGL" = "1"; then |
a0b9e27f | 20495 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
20496 | wxUSE_SOCKETS="no" |
20497 | fi | |
0feee163 | 20498 | fi |
b089607b | 20499 | |
0feee163 VZ |
20500 | if test "$wxUSE_SOCKETS" = "yes"; then |
20501 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 20502 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
fd3d7534 | 20503 | echo "configure:20504: checking for socket" >&5 |
a0b9e27f MB |
20504 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
20505 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 20506 | else |
a0b9e27f | 20507 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 20508 | #line 20509 "configure" |
c63c7106 VZ |
20509 | #include "confdefs.h" |
20510 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20511 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
20512 | #include <assert.h> |
20513 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20514 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20515 | builtin and then its argument prototype would still apply. */ |
20516 | char socket(); | |
20517 | ||
20518 | int main() { | |
20519 | ||
c63c7106 VZ |
20520 | /* The GNU C library defines this for functions which it implements |
20521 | to always fail with ENOSYS. Some functions are actually named | |
20522 | something starting with __ and the normal name is an alias. */ | |
20523 | #if defined (__stub_socket) || defined (__stub___socket) | |
20524 | choke me | |
20525 | #else | |
a0b9e27f | 20526 | socket(); |
c63c7106 VZ |
20527 | #endif |
20528 | ||
a0b9e27f MB |
20529 | ; return 0; } |
20530 | EOF | |
fd3d7534 | 20531 | if { (eval echo configure:20532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20532 | rm -rf conftest* |
20533 | eval "ac_cv_func_socket=yes" | |
20534 | else | |
20535 | echo "configure: failed program was:" >&5 | |
20536 | cat conftest.$ac_ext >&5 | |
20537 | rm -rf conftest* | |
20538 | eval "ac_cv_func_socket=no" | |
20539 | fi | |
20540 | rm -f conftest* | |
20541 | fi | |
20542 | ||
20543 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
20544 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
20545 | : |
20546 | else | |
a0b9e27f MB |
20547 | echo "$ac_t""no" 1>&6 |
20548 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
fd3d7534 | 20549 | echo "configure:20550: checking for socket in -lsocket" >&5 |
a0b9e27f MB |
20550 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
20551 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20552 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 20553 | else |
a0b9e27f | 20554 | ac_save_LIBS="$LIBS" |
c63c7106 | 20555 | LIBS="-lsocket $LIBS" |
a0b9e27f | 20556 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 20557 | #line 20558 "configure" |
c63c7106 VZ |
20558 | #include "confdefs.h" |
20559 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20560 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20561 | builtin and then its argument prototype would still apply. */ |
20562 | char socket(); | |
20563 | ||
20564 | int main() { | |
20565 | socket() | |
20566 | ; return 0; } | |
20567 | EOF | |
fd3d7534 | 20568 | if { (eval echo configure:20569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20569 | rm -rf conftest* |
20570 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20571 | else | |
20572 | echo "configure: failed program was:" >&5 | |
20573 | cat conftest.$ac_ext >&5 | |
20574 | rm -rf conftest* | |
20575 | eval "ac_cv_lib_$ac_lib_var=no" | |
20576 | fi | |
20577 | rm -f conftest* | |
20578 | LIBS="$ac_save_LIBS" | |
20579 | ||
20580 | fi | |
20581 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20582 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
20583 | if test "$INET_LINK" != " -lsocket"; then |
20584 | INET_LINK="$INET_LINK -lsocket" | |
20585 | fi | |
c63c7106 | 20586 | else |
a0b9e27f | 20587 | echo "$ac_t""no" 1>&6 |
afc31813 | 20588 | |
a0b9e27f | 20589 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
3a922bb4 | 20590 | wxUSE_SOCKETS=no |
a0b9e27f MB |
20591 | |
20592 | ||
6232543b | 20593 | fi |
b089607b | 20594 | |
a0b9e27f | 20595 | |
1e487827 | 20596 | fi |
afc31813 | 20597 | |
3a922bb4 | 20598 | fi |
0feee163 | 20599 | fi |
51a9faba | 20600 | |
0feee163 VZ |
20601 | if test "$wxUSE_SOCKETS" = "yes" ; then |
20602 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 20603 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
fd3d7534 | 20604 | echo "configure:20605: checking what is the type of the third argument of getsockname" >&5 |
a0b9e27f MB |
20605 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
20606 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20607 | else | |
20608 | ||
20609 | ||
20610 | ac_ext=C | |
20611 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 20612 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20613 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20614 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20615 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 20616 | |
8284b0c5 | 20617 | |
a0b9e27f | 20618 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 20619 | #line 20620 "configure" |
afc31813 | 20620 | #include "confdefs.h" |
51a9faba | 20621 | |
3a922bb4 RL |
20622 | #include <sys/types.h> |
20623 | #include <sys/socket.h> | |
a0b9e27f MB |
20624 | |
20625 | int main() { | |
51a9faba | 20626 | |
3a922bb4 RL |
20627 | socklen_t len; |
20628 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20629 | |
20630 | ; return 0; } | |
20631 | EOF | |
fd3d7534 | 20632 | if { (eval echo configure:20633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20633 | rm -rf conftest* |
51a9faba | 20634 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 20635 | else |
a0b9e27f MB |
20636 | echo "configure: failed program was:" >&5 |
20637 | cat conftest.$ac_ext >&5 | |
20638 | rm -rf conftest* | |
20639 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 20640 | #line 20641 "configure" |
afc31813 | 20641 | #include "confdefs.h" |
51a9faba | 20642 | |
3a922bb4 RL |
20643 | #include <sys/types.h> |
20644 | #include <sys/socket.h> | |
a0b9e27f MB |
20645 | |
20646 | int main() { | |
51a9faba | 20647 | |
3a922bb4 RL |
20648 | size_t len; |
20649 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20650 | |
20651 | ; return 0; } | |
20652 | EOF | |
fd3d7534 | 20653 | if { (eval echo configure:20654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20654 | rm -rf conftest* |
51a9faba | 20655 | wx_cv_type_getsockname3=size_t |
afc31813 | 20656 | else |
a0b9e27f MB |
20657 | echo "configure: failed program was:" >&5 |
20658 | cat conftest.$ac_ext >&5 | |
20659 | rm -rf conftest* | |
20660 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 20661 | #line 20662 "configure" |
afc31813 | 20662 | #include "confdefs.h" |
51a9faba | 20663 | |
3a922bb4 RL |
20664 | #include <sys/types.h> |
20665 | #include <sys/socket.h> | |
a0b9e27f MB |
20666 | |
20667 | int main() { | |
51a9faba | 20668 | |
3a922bb4 RL |
20669 | int len; |
20670 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20671 | |
20672 | ; return 0; } | |
20673 | EOF | |
fd3d7534 | 20674 | if { (eval echo configure:20675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20675 | rm -rf conftest* |
51a9faba | 20676 | wx_cv_type_getsockname3=int |
afc31813 | 20677 | else |
a0b9e27f MB |
20678 | echo "configure: failed program was:" >&5 |
20679 | cat conftest.$ac_ext >&5 | |
20680 | rm -rf conftest* | |
20681 | wx_cv_type_getsockname3=unknown | |
20682 | ||
afc31813 | 20683 | fi |
a0b9e27f MB |
20684 | rm -f conftest* |
20685 | ||
afc31813 | 20686 | fi |
a0b9e27f MB |
20687 | rm -f conftest* |
20688 | ||
afc31813 | 20689 | fi |
a0b9e27f | 20690 | rm -f conftest* |
51a9faba | 20691 | |
3a922bb4 | 20692 | ac_ext=c |
a0b9e27f | 20693 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 20694 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20695 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20696 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20697 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20698 | |
a0b9e27f | 20699 | |
247f5006 | 20700 | fi |
a0b9e27f MB |
20701 | |
20702 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 20703 | |
3a922bb4 RL |
20704 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
20705 | wxUSE_SOCKETS=no | |
a0b9e27f | 20706 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
3a922bb4 | 20707 | else |
a0b9e27f | 20708 | cat >> confdefs.h <<EOF |
51a9faba | 20709 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
a0b9e27f | 20710 | EOF |
51a9faba | 20711 | |
3a922bb4 | 20712 | fi |
51a9faba VZ |
20713 | fi |
20714 | fi | |
afc31813 | 20715 | |
51a9faba | 20716 | if test "$wxUSE_SOCKETS" = "yes" ; then |
a0b9e27f | 20717 | cat >> confdefs.h <<\EOF |
afc31813 | 20718 | #define wxUSE_SOCKETS 1 |
a0b9e27f | 20719 | EOF |
afc31813 | 20720 | |
70f7a477 | 20721 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
20722 | fi |
20723 | ||
8284b0c5 | 20724 | |
dc3d889d VZ |
20725 | if test "$wxUSE_GUI" = "yes"; then |
20726 | ||
ac0c4cc3 | 20727 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then |
a0b9e27f | 20728 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
20729 | wxUSE_JOYSTICK=no |
20730 | fi | |
20731 | if test "$TOOLKIT" = "MOTIF"; then | |
a0b9e27f | 20732 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 |
156b2523 | 20733 | wxUSE_JOYSTICK=no |
f79bd02d JS |
20734 | fi |
20735 | if test "$TOOLKIT" = "X11"; then | |
a0b9e27f | 20736 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 |
f79bd02d | 20737 | wxUSE_JOYSTICK=no |
156b2523 GD |
20738 | fi |
20739 | ||
3a922bb4 RL |
20740 | if test "$TOOLKIT" != "MSW"; then |
20741 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
a0b9e27f | 20742 | for ac_hdr in linux/joystick.h |
10f2d63a | 20743 | do |
a0b9e27f MB |
20744 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
20745 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
fd3d7534 | 20746 | echo "configure:20747: checking for $ac_hdr" >&5 |
a0b9e27f MB |
20747 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20748 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20749 | else | |
20750 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 20751 | #line 20752 "configure" |
247f5006 | 20752 | #include "confdefs.h" |
a0b9e27f MB |
20753 | #include <$ac_hdr> |
20754 | EOF | |
20755 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
fd3d7534 | 20756 | { (eval echo configure:20757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
20757 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20758 | if test -z "$ac_err"; then | |
20759 | rm -rf conftest* | |
20760 | eval "ac_cv_header_$ac_safe=yes" | |
20761 | else | |
20762 | echo "$ac_err" >&5 | |
20763 | echo "configure: failed program was:" >&5 | |
247f5006 | 20764 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
20765 | rm -rf conftest* |
20766 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 20767 | fi |
a0b9e27f | 20768 | rm -f conftest* |
10f2d63a | 20769 | fi |
a0b9e27f MB |
20770 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
20771 | echo "$ac_t""yes" 1>&6 | |
20772 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20773 | cat >> confdefs.h <<EOF | |
20774 | #define $ac_tr_hdr 1 | |
20775 | EOF | |
20776 | ||
20777 | else | |
20778 | echo "$ac_t""no" 1>&6 | |
247f5006 | 20779 | fi |
10f2d63a VZ |
20780 | done |
20781 | ||
3a922bb4 RL |
20782 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
20783 | wxUSE_JOYSTICK=no | |
a0b9e27f | 20784 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
20785 | fi |
20786 | fi | |
20787 | fi | |
b089607b | 20788 | |
3a922bb4 | 20789 | if test "$wxUSE_JOYSTICK" = "yes"; then |
a0b9e27f | 20790 | cat >> confdefs.h <<\EOF |
10f2d63a | 20791 | #define wxUSE_JOYSTICK 1 |
a0b9e27f | 20792 | EOF |
10f2d63a | 20793 | |
3a922bb4 RL |
20794 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
20795 | fi | |
dc3d889d VZ |
20796 | fi |
20797 | ||
8284b0c5 | 20798 | |
b089607b VZ |
20799 | if test "$TOOLKIT" != "MSW"; then |
20800 | ||
3a922bb4 RL |
20801 | HAVE_DL_FUNCS=0 |
20802 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 20803 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
20804 | if test "$USE_DARWIN" = 1; then |
20805 | HAVE_DL_FUNCS=1 | |
20806 | else | |
a0b9e27f | 20807 | for ac_func in dlopen |
10f2d63a | 20808 | do |
a0b9e27f | 20809 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
fd3d7534 | 20810 | echo "configure:20811: checking for $ac_func" >&5 |
a0b9e27f MB |
20811 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20812 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20813 | else | |
20814 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 20815 | #line 20816 "configure" |
10f2d63a VZ |
20816 | #include "confdefs.h" |
20817 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20818 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
20819 | #include <assert.h> |
20820 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20821 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20822 | builtin and then its argument prototype would still apply. */ |
20823 | char $ac_func(); | |
20824 | ||
20825 | int main() { | |
20826 | ||
10f2d63a VZ |
20827 | /* The GNU C library defines this for functions which it implements |
20828 | to always fail with ENOSYS. Some functions are actually named | |
20829 | something starting with __ and the normal name is an alias. */ | |
20830 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20831 | choke me | |
20832 | #else | |
a0b9e27f | 20833 | $ac_func(); |
10f2d63a VZ |
20834 | #endif |
20835 | ||
a0b9e27f MB |
20836 | ; return 0; } |
20837 | EOF | |
fd3d7534 | 20838 | if { (eval echo configure:20839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20839 | rm -rf conftest* |
20840 | eval "ac_cv_func_$ac_func=yes" | |
20841 | else | |
20842 | echo "configure: failed program was:" >&5 | |
20843 | cat conftest.$ac_ext >&5 | |
20844 | rm -rf conftest* | |
20845 | eval "ac_cv_func_$ac_func=no" | |
20846 | fi | |
20847 | rm -f conftest* | |
20848 | fi | |
20849 | ||
20850 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20851 | echo "$ac_t""yes" 1>&6 | |
20852 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20853 | cat >> confdefs.h <<EOF | |
20854 | #define $ac_tr_func 1 | |
20855 | EOF | |
20856 | ||
20857 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20858 | #define HAVE_DLOPEN 1 |
a0b9e27f | 20859 | EOF |
10f2d63a | 20860 | |
3a922bb4 | 20861 | HAVE_DL_FUNCS=1 |
a0b9e27f | 20862 | |
10f2d63a | 20863 | else |
a0b9e27f MB |
20864 | echo "$ac_t""no" 1>&6 |
20865 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
fd3d7534 | 20866 | echo "configure:20867: checking for dlopen in -ldl" >&5 |
a0b9e27f MB |
20867 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
20868 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20869 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20870 | else |
a0b9e27f | 20871 | ac_save_LIBS="$LIBS" |
10f2d63a | 20872 | LIBS="-ldl $LIBS" |
a0b9e27f | 20873 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 20874 | #line 20875 "configure" |
10f2d63a VZ |
20875 | #include "confdefs.h" |
20876 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20877 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20878 | builtin and then its argument prototype would still apply. */ |
20879 | char dlopen(); | |
20880 | ||
20881 | int main() { | |
20882 | dlopen() | |
20883 | ; return 0; } | |
20884 | EOF | |
fd3d7534 | 20885 | if { (eval echo configure:20886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20886 | rm -rf conftest* |
20887 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20888 | else | |
20889 | echo "configure: failed program was:" >&5 | |
20890 | cat conftest.$ac_ext >&5 | |
20891 | rm -rf conftest* | |
20892 | eval "ac_cv_lib_$ac_lib_var=no" | |
20893 | fi | |
20894 | rm -f conftest* | |
20895 | LIBS="$ac_save_LIBS" | |
20896 | ||
20897 | fi | |
20898 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20899 | echo "$ac_t""yes" 1>&6 | |
20900 | ||
20901 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20902 | #define HAVE_DLOPEN 1 |
a0b9e27f | 20903 | EOF |
10f2d63a | 20904 | |
3a922bb4 | 20905 | HAVE_DL_FUNCS=1 |
3d63bc3a | 20906 | DL_LINK=" -ldl$DL_LINK" |
a0b9e27f | 20907 | |
10f2d63a | 20908 | else |
a0b9e27f | 20909 | echo "$ac_t""no" 1>&6 |
10f2d63a | 20910 | |
a0b9e27f | 20911 | for ac_func in shl_load |
10f2d63a | 20912 | do |
a0b9e27f | 20913 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
fd3d7534 | 20914 | echo "configure:20915: checking for $ac_func" >&5 |
a0b9e27f MB |
20915 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20916 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20917 | else | |
20918 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 20919 | #line 20920 "configure" |
10f2d63a VZ |
20920 | #include "confdefs.h" |
20921 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20922 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
20923 | #include <assert.h> |
20924 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20925 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20926 | builtin and then its argument prototype would still apply. */ |
20927 | char $ac_func(); | |
20928 | ||
20929 | int main() { | |
20930 | ||
10f2d63a VZ |
20931 | /* The GNU C library defines this for functions which it implements |
20932 | to always fail with ENOSYS. Some functions are actually named | |
20933 | something starting with __ and the normal name is an alias. */ | |
20934 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20935 | choke me | |
20936 | #else | |
a0b9e27f | 20937 | $ac_func(); |
10f2d63a VZ |
20938 | #endif |
20939 | ||
a0b9e27f MB |
20940 | ; return 0; } |
20941 | EOF | |
fd3d7534 | 20942 | if { (eval echo configure:20943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20943 | rm -rf conftest* |
20944 | eval "ac_cv_func_$ac_func=yes" | |
20945 | else | |
20946 | echo "configure: failed program was:" >&5 | |
20947 | cat conftest.$ac_ext >&5 | |
20948 | rm -rf conftest* | |
20949 | eval "ac_cv_func_$ac_func=no" | |
20950 | fi | |
20951 | rm -f conftest* | |
20952 | fi | |
20953 | ||
20954 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20955 | echo "$ac_t""yes" 1>&6 | |
20956 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20957 | cat >> confdefs.h <<EOF | |
20958 | #define $ac_tr_func 1 | |
20959 | EOF | |
20960 | ||
20961 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20962 | #define HAVE_SHL_LOAD 1 |
a0b9e27f | 20963 | EOF |
10f2d63a | 20964 | |
3a922bb4 | 20965 | HAVE_SHL_FUNCS=1 |
a0b9e27f | 20966 | |
10f2d63a | 20967 | else |
a0b9e27f MB |
20968 | echo "$ac_t""no" 1>&6 |
20969 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
fd3d7534 | 20970 | echo "configure:20971: checking for dld in -lshl_load" >&5 |
a0b9e27f MB |
20971 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
20972 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20973 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 20974 | else |
a0b9e27f | 20975 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 20976 | LIBS="-lshl_load $LIBS" |
a0b9e27f | 20977 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 20978 | #line 20979 "configure" |
f6bcfd97 | 20979 | #include "confdefs.h" |
8284b0c5 | 20980 | /* Override any gcc2 internal prototype to avoid an error. */ |
f6bcfd97 | 20981 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
20982 | builtin and then its argument prototype would still apply. */ |
20983 | char dld(); | |
20984 | ||
20985 | int main() { | |
20986 | dld() | |
20987 | ; return 0; } | |
20988 | EOF | |
fd3d7534 | 20989 | if { (eval echo configure:20990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20990 | rm -rf conftest* |
20991 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20992 | else | |
20993 | echo "configure: failed program was:" >&5 | |
20994 | cat conftest.$ac_ext >&5 | |
20995 | rm -rf conftest* | |
20996 | eval "ac_cv_lib_$ac_lib_var=no" | |
20997 | fi | |
20998 | rm -f conftest* | |
20999 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 21000 | |
a0b9e27f MB |
21001 | fi |
21002 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
21003 | echo "$ac_t""yes" 1>&6 | |
21004 | ||
3a922bb4 | 21005 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 21006 | DL_LINK=" -ldld$DL_LINK" |
a0b9e27f MB |
21007 | |
21008 | else | |
21009 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
21010 | fi |
21011 | ||
a0b9e27f | 21012 | |
10f2d63a VZ |
21013 | fi |
21014 | done | |
21015 | ||
a0b9e27f | 21016 | |
10f2d63a VZ |
21017 | fi |
21018 | ||
a0b9e27f | 21019 | |
10f2d63a VZ |
21020 | fi |
21021 | done | |
21022 | ||
5c6fa7d2 | 21023 | |
8284b0c5 | 21024 | if test "$HAVE_DL_FUNCS" = 1; then |
a0b9e27f | 21025 | for ac_func in dlerror |
f6bcfd97 | 21026 | do |
a0b9e27f | 21027 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
fd3d7534 | 21028 | echo "configure:21029: checking for $ac_func" >&5 |
a0b9e27f MB |
21029 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
21030 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21031 | else | |
21032 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 21033 | #line 21034 "configure" |
f6bcfd97 BP |
21034 | #include "confdefs.h" |
21035 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 21036 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
21037 | #include <assert.h> |
21038 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21039 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
21040 | builtin and then its argument prototype would still apply. */ |
21041 | char $ac_func(); | |
21042 | ||
21043 | int main() { | |
21044 | ||
f6bcfd97 BP |
21045 | /* The GNU C library defines this for functions which it implements |
21046 | to always fail with ENOSYS. Some functions are actually named | |
21047 | something starting with __ and the normal name is an alias. */ | |
21048 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21049 | choke me | |
21050 | #else | |
a0b9e27f | 21051 | $ac_func(); |
f6bcfd97 BP |
21052 | #endif |
21053 | ||
a0b9e27f MB |
21054 | ; return 0; } |
21055 | EOF | |
fd3d7534 | 21056 | if { (eval echo configure:21057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
21057 | rm -rf conftest* |
21058 | eval "ac_cv_func_$ac_func=yes" | |
21059 | else | |
21060 | echo "configure: failed program was:" >&5 | |
21061 | cat conftest.$ac_ext >&5 | |
21062 | rm -rf conftest* | |
21063 | eval "ac_cv_func_$ac_func=no" | |
21064 | fi | |
21065 | rm -f conftest* | |
21066 | fi | |
21067 | ||
21068 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
21069 | echo "$ac_t""yes" 1>&6 | |
21070 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
21071 | cat >> confdefs.h <<EOF | |
21072 | #define $ac_tr_func 1 | |
21073 | EOF | |
21074 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 21075 | #define HAVE_DLERROR 1 |
a0b9e27f | 21076 | EOF |
f6bcfd97 BP |
21077 | |
21078 | else | |
a0b9e27f MB |
21079 | echo "$ac_t""no" 1>&6 |
21080 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
fd3d7534 | 21081 | echo "configure:21082: checking for dlerror in -ldl" >&5 |
a0b9e27f MB |
21082 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
21083 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
21084 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 21085 | else |
a0b9e27f | 21086 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 21087 | LIBS="-ldl $LIBS" |
a0b9e27f | 21088 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 21089 | #line 21090 "configure" |
f6bcfd97 BP |
21090 | #include "confdefs.h" |
21091 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21092 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
21093 | builtin and then its argument prototype would still apply. */ |
21094 | char dlerror(); | |
21095 | ||
21096 | int main() { | |
21097 | dlerror() | |
21098 | ; return 0; } | |
21099 | EOF | |
fd3d7534 | 21100 | if { (eval echo configure:21101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
21101 | rm -rf conftest* |
21102 | eval "ac_cv_lib_$ac_lib_var=yes" | |
21103 | else | |
21104 | echo "configure: failed program was:" >&5 | |
21105 | cat conftest.$ac_ext >&5 | |
21106 | rm -rf conftest* | |
21107 | eval "ac_cv_lib_$ac_lib_var=no" | |
21108 | fi | |
21109 | rm -f conftest* | |
21110 | LIBS="$ac_save_LIBS" | |
21111 | ||
21112 | fi | |
21113 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
21114 | echo "$ac_t""yes" 1>&6 | |
21115 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 21116 | #define HAVE_DLERROR 1 |
a0b9e27f | 21117 | EOF |
f6bcfd97 | 21118 | |
a0b9e27f MB |
21119 | else |
21120 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
21121 | fi |
21122 | ||
21123 | fi | |
21124 | done | |
21125 | ||
3a922bb4 RL |
21126 | fi |
21127 | fi | |
f6bcfd97 | 21128 | |
3a922bb4 RL |
21129 | if test "$HAVE_DL_FUNCS" = 0; then |
21130 | if test "$HAVE_SHL_FUNCS" = 0; then | |
21131 | if test "$USE_UNIX" = 1; then | |
a0b9e27f | 21132 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
0b9ab0bd | 21133 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
21134 | wxUSE_DYNLIB_CLASS=no |
21135 | else | |
a0b9e27f | 21136 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
3a922bb4 RL |
21137 | fi |
21138 | fi | |
10f2d63a VZ |
21139 | fi |
21140 | fi | |
21141 | fi | |
21142 | ||
0b9ab0bd | 21143 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
a0b9e27f | 21144 | cat >> confdefs.h <<\EOF |
0b9ab0bd | 21145 | #define wxUSE_DYNAMIC_LOADER 1 |
a0b9e27f | 21146 | EOF |
0b9ab0bd RL |
21147 | |
21148 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
a0b9e27f | 21149 | cat >> confdefs.h <<\EOF |
10f2d63a | 21150 | #define wxUSE_DYNLIB_CLASS 1 |
a0b9e27f | 21151 | EOF |
10f2d63a VZ |
21152 | |
21153 | fi | |
21154 | ||
8284b0c5 | 21155 | |
1e6feb95 | 21156 | if test "$wxUSE_FONTMAP" = "yes" ; then |
a0b9e27f | 21157 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21158 | #define wxUSE_FONTMAP 1 |
a0b9e27f | 21159 | EOF |
1e6feb95 VZ |
21160 | |
21161 | fi | |
21162 | ||
10f2d63a | 21163 | if test "$wxUSE_UNICODE" = "yes" ; then |
a0b9e27f | 21164 | cat >> confdefs.h <<\EOF |
10f2d63a | 21165 | #define wxUSE_UNICODE 1 |
a0b9e27f | 21166 | EOF |
10f2d63a | 21167 | |
8284b0c5 | 21168 | |
bbc3925a VS |
21169 | if test "$wxUSE_MSW" != 1; then |
21170 | wxUSE_UNICODE_MSLU=no | |
21171 | fi | |
a72a4bfa VS |
21172 | |
21173 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
a0b9e27f | 21174 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 |
fd3d7534 | 21175 | echo "configure:21176: checking for main in -lunicows" >&5 |
a0b9e27f MB |
21176 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
21177 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
21178 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a72a4bfa | 21179 | else |
a0b9e27f | 21180 | ac_save_LIBS="$LIBS" |
a72a4bfa | 21181 | LIBS="-lunicows $LIBS" |
a0b9e27f | 21182 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 21183 | #line 21184 "configure" |
a72a4bfa VS |
21184 | #include "confdefs.h" |
21185 | ||
a0b9e27f MB |
21186 | int main() { |
21187 | main() | |
21188 | ; return 0; } | |
21189 | EOF | |
fd3d7534 | 21190 | if { (eval echo configure:21191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
21191 | rm -rf conftest* |
21192 | eval "ac_cv_lib_$ac_lib_var=yes" | |
21193 | else | |
21194 | echo "configure: failed program was:" >&5 | |
21195 | cat conftest.$ac_ext >&5 | |
21196 | rm -rf conftest* | |
21197 | eval "ac_cv_lib_$ac_lib_var=no" | |
21198 | fi | |
21199 | rm -f conftest* | |
21200 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 21201 | |
a0b9e27f MB |
21202 | fi |
21203 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
21204 | echo "$ac_t""yes" 1>&6 | |
21205 | ||
21206 | cat >> confdefs.h <<\EOF | |
a72a4bfa | 21207 | #define wxUSE_UNICODE_MSLU 1 |
a0b9e27f | 21208 | EOF |
a72a4bfa | 21209 | |
a0b9e27f | 21210 | |
a72a4bfa | 21211 | else |
a0b9e27f | 21212 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 21213 | |
a0b9e27f MB |
21214 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. |
21215 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
a72a4bfa | 21216 | wxUSE_UNICODE_MSLU=no |
a0b9e27f | 21217 | |
a72a4bfa VS |
21218 | fi |
21219 | ||
21220 | fi | |
10f2d63a VZ |
21221 | fi |
21222 | ||
10f2d63a | 21223 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
a0b9e27f | 21224 | cat >> confdefs.h <<\EOF |
10f2d63a | 21225 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
a0b9e27f | 21226 | EOF |
10f2d63a VZ |
21227 | |
21228 | fi | |
21229 | ||
8284b0c5 | 21230 | |
10f2d63a | 21231 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
a0b9e27f | 21232 | cat >> confdefs.h <<\EOF |
10f2d63a | 21233 | #define wxUSE_POSTSCRIPT 1 |
a0b9e27f | 21234 | EOF |
10f2d63a VZ |
21235 | |
21236 | fi | |
21237 | ||
a0b9e27f | 21238 | cat >> confdefs.h <<\EOF |
10f2d63a | 21239 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
a0b9e27f | 21240 | EOF |
10f2d63a | 21241 | |
8284b0c5 | 21242 | |
a0b9e27f | 21243 | cat >> confdefs.h <<\EOF |
10f2d63a | 21244 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
a0b9e27f | 21245 | EOF |
10f2d63a | 21246 | |
8284b0c5 MB |
21247 | |
21248 | ||
10f2d63a | 21249 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
a0b9e27f | 21250 | cat >> confdefs.h <<\EOF |
10f2d63a | 21251 | #define wxUSE_CONSTRAINTS 1 |
a0b9e27f | 21252 | EOF |
10f2d63a VZ |
21253 | |
21254 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
21255 | fi | |
21256 | ||
21257 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 21258 | |
8284b0c5 | 21259 | |
bb811f17 | 21260 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
a0b9e27f | 21261 | cat >> confdefs.h <<\EOF |
10f2d63a | 21262 | #define wxUSE_MDI_ARCHITECTURE 1 |
a0b9e27f | 21263 | EOF |
10f2d63a | 21264 | |
bb811f17 JS |
21265 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
21266 | fi | |
10f2d63a VZ |
21267 | fi |
21268 | ||
21269 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 21270 | cat >> confdefs.h <<\EOF |
10f2d63a | 21271 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
a0b9e27f | 21272 | EOF |
10f2d63a VZ |
21273 | |
21274 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
21275 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
21276 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
21277 | fi | |
21278 | fi | |
21279 | ||
21280 | if test "$wxUSE_HELP" = "yes"; then | |
a0b9e27f | 21281 | cat >> confdefs.h <<\EOF |
10f2d63a | 21282 | #define wxUSE_HELP 1 |
a0b9e27f | 21283 | EOF |
10f2d63a VZ |
21284 | |
21285 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 21286 | |
77e13408 | 21287 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 21288 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
a0b9e27f | 21289 | cat >> confdefs.h <<\EOF |
29fd3c0c | 21290 | #define wxUSE_MS_HTML_HELP 1 |
a0b9e27f | 21291 | EOF |
29fd3c0c | 21292 | |
3e44f09d | 21293 | fi |
3379ed37 | 21294 | fi |
031d8228 VS |
21295 | |
21296 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
21297 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 21298 | cat >> confdefs.h <<\EOF |
031d8228 | 21299 | #define wxUSE_WXHTML_HELP 1 |
a0b9e27f | 21300 | EOF |
031d8228 VS |
21301 | |
21302 | else | |
a0b9e27f | 21303 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 |
031d8228 VS |
21304 | wxUSE_WXHTML_HELP=no |
21305 | fi | |
21306 | fi | |
10f2d63a VZ |
21307 | fi |
21308 | ||
21309 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
21310 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21311 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 21312 | else |
a0b9e27f | 21313 | cat >> confdefs.h <<\EOF |
10f2d63a | 21314 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
a0b9e27f | 21315 | EOF |
10f2d63a VZ |
21316 | |
21317 | fi | |
21318 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
21319 | fi | |
21320 | ||
fd3d7534 | 21321 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then |
3c907f20 | 21322 | { echo "configure: error: wxExpr and old-style resources are now available in contrib only" 1>&2; exit 1; } |
10f2d63a VZ |
21323 | fi |
21324 | ||
8284b0c5 | 21325 | |
77e13408 RL |
21326 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
21327 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
3bce6687 | 21328 | -o "$wxUSE_OLE" = "yes" \ |
77e13408 | 21329 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then |
a0b9e27f | 21330 | for ac_hdr in ole2.h |
10f2d63a | 21331 | do |
a0b9e27f MB |
21332 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
21333 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
fd3d7534 | 21334 | echo "configure:21335: checking for $ac_hdr" >&5 |
a0b9e27f MB |
21335 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
21336 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21337 | else | |
21338 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 21339 | #line 21340 "configure" |
10f2d63a | 21340 | #include "confdefs.h" |
a0b9e27f MB |
21341 | #include <$ac_hdr> |
21342 | EOF | |
21343 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
fd3d7534 | 21344 | { (eval echo configure:21345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
21345 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
21346 | if test -z "$ac_err"; then | |
21347 | rm -rf conftest* | |
21348 | eval "ac_cv_header_$ac_safe=yes" | |
21349 | else | |
21350 | echo "$ac_err" >&5 | |
21351 | echo "configure: failed program was:" >&5 | |
10f2d63a | 21352 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
21353 | rm -rf conftest* |
21354 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 21355 | fi |
a0b9e27f | 21356 | rm -f conftest* |
10f2d63a | 21357 | fi |
a0b9e27f MB |
21358 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
21359 | echo "$ac_t""yes" 1>&6 | |
21360 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
21361 | cat >> confdefs.h <<EOF | |
21362 | #define $ac_tr_hdr 1 | |
21363 | EOF | |
21364 | ||
21365 | else | |
21366 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
21367 | fi |
21368 | done | |
21369 | ||
8284b0c5 | 21370 | |
2b9bdf71 VZ |
21371 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
21372 | if test "$GCC" = yes ; then | |
a0b9e27f MB |
21373 | |
21374 | ac_ext=C | |
21375 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8284b0c5 | 21376 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
21377 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
21378 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
21379 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 MB |
21380 | |
21381 | ||
a0b9e27f | 21382 | echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6 |
fd3d7534 | 21383 | echo "configure:21384: checking if g++ requires -fvtable-thunks" >&5 |
a0b9e27f | 21384 | cat > conftest.$ac_ext <<EOF |
fd3d7534 | 21385 | #line 21386 "configure" |
8284b0c5 MB |
21386 | #include "confdefs.h" |
21387 | #include <windows.h> | |
21388 | #include <ole2.h> | |
a0b9e27f | 21389 | int main() { |
8284b0c5 | 21390 | |
a0b9e27f MB |
21391 | ; return 0; } |
21392 | EOF | |
fd3d7534 | 21393 | if { (eval echo configure:21394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
21394 | rm -rf conftest* |
21395 | echo "$ac_t""no" 1>&6 | |
21396 | else | |
21397 | echo "configure: failed program was:" >&5 | |
21398 | cat conftest.$ac_ext >&5 | |
21399 | rm -rf conftest* | |
21400 | echo "$ac_t""yes" 1>&6 | |
8284b0c5 MB |
21401 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
21402 | fi | |
a0b9e27f | 21403 | rm -f conftest* |
8284b0c5 | 21404 | ac_ext=c |
a0b9e27f | 21405 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8284b0c5 | 21406 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
21407 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
21408 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
21409 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 21410 | |
2b9bdf71 | 21411 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 21412 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
a0b9e27f | 21413 | cat >> confdefs.h <<\EOF |
4f11a343 | 21414 | #define wxUSE_OLE 1 |
a0b9e27f | 21415 | EOF |
4f11a343 | 21416 | |
8284b0c5 | 21417 | |
2b9bdf71 VZ |
21418 | fi |
21419 | ||
a0b9e27f | 21420 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21421 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 21422 | EOF |
2b9bdf71 VZ |
21423 | |
21424 | else | |
a0b9e27f | 21425 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 |
2b9bdf71 VZ |
21426 | |
21427 | wxUSE_CLIPBOARD=no | |
21428 | wxUSE_DRAG_AND_DROP=no | |
21429 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
21430 | wxUSE_OLE=no |
21431 | fi | |
21432 | ||
21433 | if test "$wxUSE_METAFILE" = "yes"; then | |
21434 | cat >> confdefs.h <<\EOF | |
21435 | #define wxUSE_METAFILE 1 | |
21436 | EOF | |
21437 | ||
21438 | ||
21439 | cat >> confdefs.h <<\EOF | |
21440 | #define wxUSE_ENH_METAFILE 1 | |
21441 | EOF | |
21442 | ||
21443 | fi | |
21444 | fi | |
21445 | ||
2b9bdf71 VZ |
21446 | if test "$wxUSE_IPC" = "yes"; then |
21447 | if test "$wxUSE_SOCKETS" != "yes"; then | |
a0b9e27f | 21448 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
21449 | fi |
21450 | ||
a0b9e27f | 21451 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21452 | #define wxUSE_IPC 1 |
a0b9e27f | 21453 | EOF |
2b9bdf71 VZ |
21454 | |
21455 | fi | |
21456 | ||
21457 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 21458 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 21459 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
21460 | wxUSE_CLIPBOARD=no |
21461 | fi | |
21462 | ||
21463 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
a0b9e27f | 21464 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21465 | #define wxUSE_CLIPBOARD 1 |
a0b9e27f | 21466 | EOF |
2b9bdf71 | 21467 | |
8284b0c5 | 21468 | |
a0b9e27f | 21469 | cat >> confdefs.h <<\EOF |
673f4220 | 21470 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 21471 | EOF |
673f4220 | 21472 | |
6c657b52 | 21473 | fi |
2b9bdf71 VZ |
21474 | fi |
21475 | ||
21476 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
21477 | if test "$wxUSE_GTK" = 1; then | |
21478 | if test "$WXGTK12" != 1; then | |
a0b9e27f | 21479 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
21480 | wxUSE_DRAG_AND_DROP=no |
21481 | fi | |
21482 | fi | |
21483 | ||
2b9bdf71 | 21484 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 21485 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
21486 | wxUSE_DRAG_AND_DROP=no |
21487 | fi | |
21488 | ||
f79bd02d | 21489 | if test "$wxUSE_X11" = 1; then |
a0b9e27f | 21490 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 |
f79bd02d JS |
21491 | wxUSE_DRAG_AND_DROP=no |
21492 | fi | |
21493 | ||
6c657b52 | 21494 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 21495 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
21496 | wxUSE_DRAG_AND_DROP=no |
21497 | fi | |
21498 | ||
10f2d63a | 21499 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
a0b9e27f | 21500 | cat >> confdefs.h <<\EOF |
10f2d63a | 21501 | #define wxUSE_DRAG_AND_DROP 1 |
a0b9e27f | 21502 | EOF |
10f2d63a VZ |
21503 | |
21504 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
21505 | fi | |
21506 | ||
21507 | fi | |
21508 | ||
21509 | if test "$wxUSE_SPLINES" = "yes" ; then | |
a0b9e27f | 21510 | cat >> confdefs.h <<\EOF |
10f2d63a | 21511 | #define wxUSE_SPLINES 1 |
a0b9e27f | 21512 | EOF |
10f2d63a VZ |
21513 | |
21514 | fi | |
21515 | ||
8284b0c5 | 21516 | |
1e6feb95 VZ |
21517 | USES_CONTROLS=0 |
21518 | if test "$wxUSE_CONTROLS" = "yes"; then | |
21519 | USES_CONTROLS=1 | |
21520 | fi | |
21521 | ||
10f2d63a | 21522 | if test "$wxUSE_ACCEL" = "yes"; then |
a0b9e27f | 21523 | cat >> confdefs.h <<\EOF |
10f2d63a | 21524 | #define wxUSE_ACCEL 1 |
a0b9e27f | 21525 | EOF |
10f2d63a | 21526 | |
1e6feb95 VZ |
21527 | USES_CONTROLS=1 |
21528 | fi | |
21529 | ||
21530 | if test "$wxUSE_BUTTON" = "yes"; then | |
a0b9e27f | 21531 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21532 | #define wxUSE_BUTTON 1 |
a0b9e27f | 21533 | EOF |
1e6feb95 VZ |
21534 | |
21535 | USES_CONTROLS=1 | |
21536 | fi | |
21537 | ||
21538 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
a0b9e27f | 21539 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21540 | #define wxUSE_BMPBUTTON 1 |
a0b9e27f | 21541 | EOF |
1e6feb95 VZ |
21542 | |
21543 | USES_CONTROLS=1 | |
21544 | fi | |
21545 | ||
21546 | if test "$wxUSE_CALCTRL" = "yes"; then | |
a0b9e27f | 21547 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21548 | #define wxUSE_CALENDARCTRL 1 |
a0b9e27f | 21549 | EOF |
1e6feb95 VZ |
21550 | |
21551 | USES_CONTROLS=1 | |
21552 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
21553 | fi |
21554 | ||
21555 | if test "$wxUSE_CARET" = "yes"; then | |
a0b9e27f | 21556 | cat >> confdefs.h <<\EOF |
10f2d63a | 21557 | #define wxUSE_CARET 1 |
a0b9e27f | 21558 | EOF |
10f2d63a | 21559 | |
1e6feb95 | 21560 | USES_CONTROLS=1 |
10f2d63a VZ |
21561 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
21562 | fi | |
21563 | ||
21564 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
a0b9e27f | 21565 | cat >> confdefs.h <<\EOF |
10f2d63a | 21566 | #define wxUSE_COMBOBOX 1 |
a0b9e27f | 21567 | EOF |
10f2d63a | 21568 | |
1e6feb95 | 21569 | USES_CONTROLS=1 |
10f2d63a VZ |
21570 | fi |
21571 | ||
21572 | if test "$wxUSE_CHOICE" = "yes"; then | |
a0b9e27f | 21573 | cat >> confdefs.h <<\EOF |
10f2d63a | 21574 | #define wxUSE_CHOICE 1 |
a0b9e27f | 21575 | EOF |
10f2d63a | 21576 | |
1e6feb95 | 21577 | USES_CONTROLS=1 |
10f2d63a VZ |
21578 | fi |
21579 | ||
21580 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
a0b9e27f | 21581 | cat >> confdefs.h <<\EOF |
10f2d63a | 21582 | #define wxUSE_CHECKBOX 1 |
a0b9e27f | 21583 | EOF |
10f2d63a | 21584 | |
1e6feb95 | 21585 | USES_CONTROLS=1 |
10f2d63a VZ |
21586 | fi |
21587 | ||
21588 | if test "$wxUSE_CHECKLST" = "yes"; then | |
a0b9e27f | 21589 | cat >> confdefs.h <<\EOF |
10f2d63a | 21590 | #define wxUSE_CHECKLISTBOX 1 |
a0b9e27f | 21591 | EOF |
10f2d63a | 21592 | |
1e6feb95 | 21593 | USES_CONTROLS=1 |
10f2d63a VZ |
21594 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
21595 | fi | |
21596 | ||
da494b40 MB |
21597 | if test "$wxUSE_DISPLAY" = "yes"; then |
21598 | cat >> confdefs.h <<\EOF | |
21599 | #define wxUSE_DISPLAY 1 | |
21600 | EOF | |
21601 | ||
21602 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
21603 | fi | |
21604 | ||
10f2d63a | 21605 | if test "$wxUSE_GAUGE" = "yes"; then |
a0b9e27f | 21606 | cat >> confdefs.h <<\EOF |
10f2d63a | 21607 | #define wxUSE_GAUGE 1 |
a0b9e27f | 21608 | EOF |
10f2d63a | 21609 | |
1e6feb95 | 21610 | USES_CONTROLS=1 |
10f2d63a VZ |
21611 | fi |
21612 | ||
d6a55c4b | 21613 | if test "$wxUSE_GRID" = "yes"; then |
a0b9e27f | 21614 | cat >> confdefs.h <<\EOF |
d6a55c4b | 21615 | #define wxUSE_GRID 1 |
a0b9e27f | 21616 | EOF |
10f2d63a | 21617 | |
1e6feb95 | 21618 | USES_CONTROLS=1 |
d6a55c4b | 21619 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
21620 | fi |
21621 | ||
21622 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21623 | cat >> confdefs.h <<\EOF |
10f2d63a | 21624 | #define wxUSE_IMAGLIST 1 |
a0b9e27f | 21625 | EOF |
10f2d63a VZ |
21626 | |
21627 | fi | |
21628 | ||
21629 | if test "$wxUSE_LISTBOX" = "yes"; then | |
a0b9e27f | 21630 | cat >> confdefs.h <<\EOF |
10f2d63a | 21631 | #define wxUSE_LISTBOX 1 |
a0b9e27f | 21632 | EOF |
10f2d63a | 21633 | |
1e6feb95 | 21634 | USES_CONTROLS=1 |
10f2d63a VZ |
21635 | fi |
21636 | ||
21637 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
21638 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21639 | cat >> confdefs.h <<\EOF |
10f2d63a | 21640 | #define wxUSE_LISTCTRL 1 |
a0b9e27f | 21641 | EOF |
10f2d63a | 21642 | |
1e6feb95 | 21643 | USES_CONTROLS=1 |
10f2d63a VZ |
21644 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
21645 | else | |
a0b9e27f | 21646 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
21647 | fi |
21648 | fi | |
21649 | ||
21650 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
a0b9e27f | 21651 | cat >> confdefs.h <<\EOF |
10f2d63a | 21652 | #define wxUSE_NOTEBOOK 1 |
a0b9e27f | 21653 | EOF |
10f2d63a | 21654 | |
1e6feb95 | 21655 | USES_CONTROLS=1 |
10f2d63a VZ |
21656 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
21657 | fi | |
21658 | ||
24176f2c | 21659 | |
10f2d63a | 21660 | if test "$wxUSE_RADIOBOX" = "yes"; then |
a0b9e27f | 21661 | cat >> confdefs.h <<\EOF |
10f2d63a | 21662 | #define wxUSE_RADIOBOX 1 |
a0b9e27f | 21663 | EOF |
10f2d63a | 21664 | |
1e6feb95 | 21665 | USES_CONTROLS=1 |
10f2d63a VZ |
21666 | fi |
21667 | ||
21668 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
a0b9e27f | 21669 | cat >> confdefs.h <<\EOF |
10f2d63a | 21670 | #define wxUSE_RADIOBTN 1 |
a0b9e27f | 21671 | EOF |
10f2d63a | 21672 | |
1e6feb95 | 21673 | USES_CONTROLS=1 |
10f2d63a VZ |
21674 | fi |
21675 | ||
21676 | if test "$wxUSE_SASH" = "yes"; then | |
a0b9e27f | 21677 | cat >> confdefs.h <<\EOF |
10f2d63a | 21678 | #define wxUSE_SASH 1 |
a0b9e27f | 21679 | EOF |
10f2d63a VZ |
21680 | |
21681 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
21682 | fi | |
21683 | ||
21684 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
a0b9e27f | 21685 | cat >> confdefs.h <<\EOF |
10f2d63a | 21686 | #define wxUSE_SCROLLBAR 1 |
a0b9e27f | 21687 | EOF |
10f2d63a | 21688 | |
1e6feb95 | 21689 | USES_CONTROLS=1 |
741a9306 | 21690 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
21691 | fi |
21692 | ||
21693 | if test "$wxUSE_SLIDER" = "yes"; then | |
a0b9e27f | 21694 | cat >> confdefs.h <<\EOF |
10f2d63a | 21695 | #define wxUSE_SLIDER 1 |
a0b9e27f | 21696 | EOF |
10f2d63a | 21697 | |
1e6feb95 | 21698 | USES_CONTROLS=1 |
10f2d63a VZ |
21699 | fi |
21700 | ||
21701 | if test "$wxUSE_SPINBTN" = "yes"; then | |
a0b9e27f | 21702 | cat >> confdefs.h <<\EOF |
10f2d63a | 21703 | #define wxUSE_SPINBTN 1 |
a0b9e27f | 21704 | EOF |
10f2d63a | 21705 | |
1e6feb95 | 21706 | USES_CONTROLS=1 |
10f2d63a VZ |
21707 | fi |
21708 | ||
56cfaa52 | 21709 | if test "$wxUSE_SPINCTRL" = "yes"; then |
a0b9e27f | 21710 | cat >> confdefs.h <<\EOF |
56cfaa52 | 21711 | #define wxUSE_SPINCTRL 1 |
a0b9e27f | 21712 | EOF |
56cfaa52 | 21713 | |
1e6feb95 | 21714 | USES_CONTROLS=1 |
56cfaa52 RR |
21715 | fi |
21716 | ||
10f2d63a | 21717 | if test "$wxUSE_SPLITTER" = "yes"; then |
a0b9e27f | 21718 | cat >> confdefs.h <<\EOF |
10f2d63a | 21719 | #define wxUSE_SPLITTER 1 |
a0b9e27f | 21720 | EOF |
10f2d63a VZ |
21721 | |
21722 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
21723 | fi | |
21724 | ||
21725 | if test "$wxUSE_STATBMP" = "yes"; then | |
a0b9e27f | 21726 | cat >> confdefs.h <<\EOF |
10f2d63a | 21727 | #define wxUSE_STATBMP 1 |
a0b9e27f | 21728 | EOF |
10f2d63a | 21729 | |
1e6feb95 | 21730 | USES_CONTROLS=1 |
10f2d63a VZ |
21731 | fi |
21732 | ||
21733 | if test "$wxUSE_STATBOX" = "yes"; then | |
a0b9e27f | 21734 | cat >> confdefs.h <<\EOF |
10f2d63a | 21735 | #define wxUSE_STATBOX 1 |
a0b9e27f | 21736 | EOF |
10f2d63a | 21737 | |
1e6feb95 VZ |
21738 | USES_CONTROLS=1 |
21739 | fi | |
21740 | ||
21741 | if test "$wxUSE_STATTEXT" = "yes"; then | |
a0b9e27f | 21742 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21743 | #define wxUSE_STATTEXT 1 |
a0b9e27f | 21744 | EOF |
1e6feb95 VZ |
21745 | |
21746 | USES_CONTROLS=1 | |
10f2d63a VZ |
21747 | fi |
21748 | ||
21749 | if test "$wxUSE_STATLINE" = "yes"; then | |
89e6bf6d | 21750 | cat >> confdefs.h <<\EOF |
10f2d63a | 21751 | #define wxUSE_STATLINE 1 |
a0b9e27f | 21752 | EOF |
10f2d63a | 21753 | |
89e6bf6d | 21754 | USES_CONTROLS=1 |
10f2d63a VZ |
21755 | fi |
21756 | ||
21757 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
a0b9e27f | 21758 | cat >> confdefs.h <<\EOF |
10f2d63a | 21759 | #define wxUSE_STATUSBAR 1 |
a0b9e27f | 21760 | EOF |
10f2d63a | 21761 | |
1e6feb95 | 21762 | USES_CONTROLS=1 |
698dcdb6 | 21763 | |
2286341c | 21764 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
21765 | fi |
21766 | ||
21767 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
a0b9e27f | 21768 | cat >> confdefs.h <<\EOF |
10f2d63a | 21769 | #define wxUSE_TAB_DIALOG 1 |
a0b9e27f | 21770 | EOF |
10f2d63a VZ |
21771 | |
21772 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
21773 | fi | |
21774 | ||
1e6feb95 | 21775 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
a0b9e27f | 21776 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21777 | #define wxUSE_TEXTCTRL 1 |
a0b9e27f | 21778 | EOF |
1e6feb95 VZ |
21779 | |
21780 | USES_CONTROLS=1 | |
21781 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
21782 | fi | |
21783 | ||
1db8dc4a | 21784 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
ac0c4cc3 | 21785 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
a0b9e27f | 21786 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
21787 | wxUSE_TOGGLEBTN=no |
21788 | fi | |
21789 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
a0b9e27f | 21790 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
21791 | wxUSE_TOGGLEBTN=no |
21792 | fi | |
21793 | ||
21794 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
a0b9e27f | 21795 | cat >> confdefs.h <<\EOF |
1db8dc4a | 21796 | #define wxUSE_TOGGLEBTN 1 |
a0b9e27f | 21797 | EOF |
1db8dc4a | 21798 | |
1e6feb95 | 21799 | USES_CONTROLS=1 |
a45d7ab7 | 21800 | fi |
1db8dc4a VZ |
21801 | fi |
21802 | ||
360d6699 | 21803 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
a0b9e27f | 21804 | cat >> confdefs.h <<\EOF |
360d6699 | 21805 | #define wxUSE_TOOLBAR_SIMPLE 1 |
a0b9e27f | 21806 | EOF |
360d6699 VZ |
21807 | |
21808 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 21809 | USES_CONTROLS=1 |
360d6699 VZ |
21810 | fi |
21811 | ||
10f2d63a | 21812 | if test "$wxUSE_TOOLBAR" = "yes"; then |
a0b9e27f | 21813 | cat >> confdefs.h <<\EOF |
10f2d63a | 21814 | #define wxUSE_TOOLBAR 1 |
a0b9e27f | 21815 | EOF |
10f2d63a | 21816 | |
1e6feb95 | 21817 | USES_CONTROLS=1 |
698dcdb6 | 21818 | |
360d6699 VZ |
21819 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
21820 | wxUSE_TOOLBAR_NATIVE="yes" | |
21821 | fi | |
21822 | ||
1e6feb95 | 21823 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
a0b9e27f | 21824 | cat >> confdefs.h <<\EOF |
360d6699 | 21825 | #define wxUSE_TOOLBAR_NATIVE 1 |
a0b9e27f | 21826 | EOF |
360d6699 | 21827 | |
1e6feb95 VZ |
21828 | USES_CONTROLS=1 |
21829 | fi | |
21830 | ||
21831 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
21832 | fi |
21833 | ||
10f2d63a VZ |
21834 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
21835 | if test "$wxUSE_MOTIF" = 1; then | |
a0b9e27f | 21836 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a | 21837 | else |
89e6bf6d VZ |
21838 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
21839 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 | |
10f2d63a | 21840 | else |
89e6bf6d | 21841 | cat >> confdefs.h <<\EOF |
10f2d63a | 21842 | #define wxUSE_TOOLTIPS 1 |
a0b9e27f | 21843 | EOF |
10f2d63a VZ |
21844 | |
21845 | fi | |
21846 | fi | |
21847 | fi | |
21848 | ||
21849 | if test "$wxUSE_TREECTRL" = "yes"; then | |
21850 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21851 | cat >> confdefs.h <<\EOF |
10f2d63a | 21852 | #define wxUSE_TREECTRL 1 |
a0b9e27f | 21853 | EOF |
10f2d63a | 21854 | |
1e6feb95 | 21855 | USES_CONTROLS=1 |
10f2d63a VZ |
21856 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
21857 | else | |
a0b9e27f | 21858 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
21859 | fi |
21860 | fi | |
21861 | ||
9f41d601 | 21862 | if test "$wxUSE_POPUPWIN" = "yes"; then |
ac0c4cc3 | 21863 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
a0b9e27f | 21864 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 21865 | else |
485cf710 | 21866 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 21867 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 |
485cf710 | 21868 | else |
3c011993 | 21869 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 21870 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 21871 | else |
a0b9e27f | 21872 | cat >> confdefs.h <<\EOF |
9f41d601 | 21873 | #define wxUSE_POPUPWIN 1 |
a0b9e27f | 21874 | EOF |
9f41d601 | 21875 | |
8284b0c5 | 21876 | |
3c011993 VZ |
21877 | USES_CONTROLS=1 |
21878 | fi | |
485cf710 | 21879 | fi |
6abe4b65 | 21880 | fi |
9f41d601 RR |
21881 | fi |
21882 | ||
dd964dcc | 21883 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 21884 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 21885 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 21886 | else |
a0b9e27f | 21887 | cat >> confdefs.h <<\EOF |
dd964dcc | 21888 | #define wxUSE_TIPWINDOW 1 |
a0b9e27f | 21889 | EOF |
dd964dcc | 21890 | |
3c011993 | 21891 | fi |
dd964dcc VZ |
21892 | fi |
21893 | ||
1e6feb95 | 21894 | if test "$USES_CONTROLS" = 1; then |
a0b9e27f | 21895 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21896 | #define wxUSE_CONTROLS 1 |
a0b9e27f | 21897 | EOF |
10f2d63a | 21898 | |
10f2d63a VZ |
21899 | fi |
21900 | ||
8284b0c5 | 21901 | |
1e6feb95 | 21902 | |
24fd6d87 | 21903 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
a0b9e27f | 21904 | cat >> confdefs.h <<\EOF |
24fd6d87 | 21905 | #define wxUSE_DRAGIMAGE 1 |
a0b9e27f | 21906 | EOF |
24fd6d87 VZ |
21907 | |
21908 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
21909 | fi | |
21910 | ||
7bb2947d MB |
21911 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then |
21912 | cat >> confdefs.h <<\EOF | |
21913 | #define wxUSE_ACCESSIBILITY 1 | |
21914 | EOF | |
21915 | ||
21916 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
21917 | fi | |
21918 | ||
1e6feb95 | 21919 | if test "$wxUSE_MENUS" = "yes"; then |
a0b9e27f | 21920 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21921 | #define wxUSE_MENUS 1 |
a0b9e27f | 21922 | EOF |
10f2d63a | 21923 | |
1e6feb95 | 21924 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
21925 | fi |
21926 | ||
1e6feb95 | 21927 | if test "$wxUSE_METAFILE" = "yes"; then |
a0b9e27f | 21928 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21929 | #define wxUSE_METAFILE 1 |
a0b9e27f | 21930 | EOF |
10f2d63a | 21931 | |
10f2d63a VZ |
21932 | fi |
21933 | ||
1e6feb95 | 21934 | if test "$wxUSE_MIMETYPE" = "yes"; then |
a0b9e27f | 21935 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21936 | #define wxUSE_MIMETYPE 1 |
a0b9e27f | 21937 | EOF |
10f2d63a | 21938 | |
10f2d63a VZ |
21939 | fi |
21940 | ||
3e44f09d | 21941 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
a0b9e27f | 21942 | cat >> confdefs.h <<\EOF |
3e44f09d | 21943 | #define wxUSE_SYSTEM_OPTIONS 1 |
a0b9e27f | 21944 | EOF |
3e44f09d | 21945 | |
321d2b14 VZ |
21946 | if test "$TOOLKIT" = "MSW"; then |
21947 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
21948 | fi | |
21949 | ||
3e44f09d VZ |
21950 | fi |
21951 | ||
4cdb0ab0 | 21952 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca | 21953 | if test "$wxUSE_SOCKETS" != "yes"; then |
a0b9e27f | 21954 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 |
3954f9ca VS |
21955 | wxUSE_PROTOCOL=no |
21956 | fi | |
21957 | ||
21958 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
a0b9e27f | 21959 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21960 | #define wxUSE_PROTOCOL 1 |
a0b9e27f | 21961 | EOF |
4cdb0ab0 | 21962 | |
8284b0c5 | 21963 | |
3954f9ca | 21964 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
a0b9e27f | 21965 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21966 | #define wxUSE_PROTOCOL_HTTP 1 |
a0b9e27f | 21967 | EOF |
4cdb0ab0 | 21968 | |
3954f9ca VS |
21969 | fi |
21970 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
a0b9e27f | 21971 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21972 | #define wxUSE_PROTOCOL_FTP 1 |
a0b9e27f | 21973 | EOF |
4cdb0ab0 | 21974 | |
3954f9ca VS |
21975 | fi |
21976 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
a0b9e27f | 21977 | cat >> confdefs.h <<\EOF |
3954f9ca | 21978 | #define wxUSE_PROTOCOL_FILE 1 |
a0b9e27f | 21979 | EOF |
3954f9ca VS |
21980 | |
21981 | fi | |
4cdb0ab0 | 21982 | fi |
3954f9ca VS |
21983 | fi |
21984 | ||
21985 | if test "$wxUSE_URL" = "yes"; then | |
21986 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
a0b9e27f | 21987 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 |
3954f9ca VS |
21988 | wxUSE_URL=no |
21989 | fi | |
21990 | if test "$wxUSE_URL" = "yes"; then | |
a0b9e27f | 21991 | cat >> confdefs.h <<\EOF |
3954f9ca | 21992 | #define wxUSE_URL 1 |
a0b9e27f | 21993 | EOF |
4cdb0ab0 VS |
21994 | |
21995 | fi | |
21996 | fi | |
21997 | ||
10f2d63a | 21998 | if test "$wxUSE_MINIFRAME" = "yes"; then |
a0b9e27f | 21999 | cat >> confdefs.h <<\EOF |
10f2d63a | 22000 | #define wxUSE_MINIFRAME 1 |
a0b9e27f | 22001 | EOF |
10f2d63a VZ |
22002 | |
22003 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
22004 | fi | |
22005 | ||
22006 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 22007 | cat >> confdefs.h <<\EOF |
10f2d63a | 22008 | #define wxUSE_HTML 1 |
a0b9e27f | 22009 | EOF |
10f2d63a VZ |
22010 | |
22011 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
22012 | fi |
22013 | ||
22014 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
a0b9e27f | 22015 | cat >> confdefs.h <<\EOF |
1e487827 | 22016 | #define wxUSE_VALIDATORS 1 |
a0b9e27f | 22017 | EOF |
703e0a69 | 22018 | |
698dcdb6 VZ |
22019 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
22020 | fi | |
22021 | ||
edae8572 | 22022 | if test "$wxUSE_PALETTE" = "yes" ; then |
a0b9e27f | 22023 | cat >> confdefs.h <<\EOF |
edae8572 | 22024 | #define wxUSE_PALETTE 1 |
a0b9e27f | 22025 | EOF |
edae8572 VZ |
22026 | |
22027 | fi | |
22028 | ||
698dcdb6 | 22029 | if test "$wxUSE_IMAGE" = "yes" ; then |
a0b9e27f | 22030 | cat >> confdefs.h <<\EOF |
698dcdb6 | 22031 | #define wxUSE_IMAGE 1 |
a0b9e27f | 22032 | EOF |
698dcdb6 VZ |
22033 | |
22034 | fi | |
22035 | ||
22036 | if test "$wxUSE_GIF" = "yes" ; then | |
a0b9e27f | 22037 | cat >> confdefs.h <<\EOF |
698dcdb6 | 22038 | #define wxUSE_GIF 1 |
a0b9e27f | 22039 | EOF |
698dcdb6 VZ |
22040 | |
22041 | fi | |
22042 | ||
22043 | if test "$wxUSE_PCX" = "yes" ; then | |
a0b9e27f | 22044 | cat >> confdefs.h <<\EOF |
698dcdb6 | 22045 | #define wxUSE_PCX 1 |
a0b9e27f | 22046 | EOF |
698dcdb6 VZ |
22047 | |
22048 | fi | |
22049 | ||
4b6b4dfc | 22050 | if test "$wxUSE_IFF" = "yes" ; then |
a0b9e27f | 22051 | cat >> confdefs.h <<\EOF |
4b6b4dfc | 22052 | #define wxUSE_IFF 1 |
a0b9e27f | 22053 | EOF |
4b6b4dfc RR |
22054 | |
22055 | fi | |
22056 | ||
698dcdb6 | 22057 | if test "$wxUSE_PNM" = "yes" ; then |
a0b9e27f | 22058 | cat >> confdefs.h <<\EOF |
698dcdb6 | 22059 | #define wxUSE_PNM 1 |
a0b9e27f | 22060 | EOF |
698dcdb6 VZ |
22061 | |
22062 | fi | |
22063 | ||
22064 | if test "$wxUSE_XPM" = "yes" ; then | |
a0b9e27f | 22065 | cat >> confdefs.h <<\EOF |
698dcdb6 | 22066 | #define wxUSE_XPM 1 |
a0b9e27f | 22067 | EOF |
698dcdb6 VZ |
22068 | |
22069 | fi | |
22070 | ||
658974ae | 22071 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
a0b9e27f | 22072 | cat >> confdefs.h <<\EOF |
658974ae | 22073 | #define wxUSE_ICO_CUR 1 |
a0b9e27f | 22074 | EOF |
658974ae VS |
22075 | |
22076 | fi | |
22077 | ||
a72a4bfa VS |
22078 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
22079 | LIBS=" -lunicows $LIBS" | |
22080 | fi | |
22081 | ||
8284b0c5 | 22082 | |
1e6feb95 | 22083 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
a0b9e27f | 22084 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22085 | #define wxUSE_CHOICEDLG 1 |
a0b9e27f | 22086 | EOF |
1e6feb95 VZ |
22087 | |
22088 | fi | |
22089 | ||
22090 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
a0b9e27f | 22091 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22092 | #define wxUSE_COLOURDLG 1 |
a0b9e27f | 22093 | EOF |
1e6feb95 VZ |
22094 | |
22095 | fi | |
22096 | ||
22097 | if test "$wxUSE_FILEDLG" = "yes"; then | |
a0b9e27f | 22098 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22099 | #define wxUSE_FILEDLG 1 |
a0b9e27f | 22100 | EOF |
1e6feb95 VZ |
22101 | |
22102 | fi | |
22103 | ||
8db37e06 | 22104 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
a0b9e27f | 22105 | cat >> confdefs.h <<\EOF |
8db37e06 | 22106 | #define wxUSE_FINDREPLDLG 1 |
a0b9e27f | 22107 | EOF |
8db37e06 VZ |
22108 | |
22109 | fi | |
22110 | ||
1e6feb95 | 22111 | if test "$wxUSE_FONTDLG" = "yes"; then |
a0b9e27f | 22112 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22113 | #define wxUSE_FONTDLG 1 |
a0b9e27f | 22114 | EOF |
1e6feb95 VZ |
22115 | |
22116 | fi | |
22117 | ||
22118 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 22119 | if test "$wxUSE_TREECTRL" != "yes"; then |
a0b9e27f | 22120 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 |
1e6feb95 | 22121 | else |
a0b9e27f | 22122 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22123 | #define wxUSE_DIRDLG 1 |
a0b9e27f | 22124 | EOF |
1e6feb95 | 22125 | |
1e6feb95 VZ |
22126 | fi |
22127 | fi | |
22128 | ||
22129 | if test "$wxUSE_MSGDLG" = "yes"; then | |
a0b9e27f | 22130 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22131 | #define wxUSE_MSGDLG 1 |
a0b9e27f | 22132 | EOF |
1e6feb95 VZ |
22133 | |
22134 | fi | |
22135 | ||
22136 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
a0b9e27f | 22137 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22138 | #define wxUSE_NUMBERDLG 1 |
a0b9e27f | 22139 | EOF |
1e6feb95 VZ |
22140 | |
22141 | fi | |
22142 | ||
22143 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
22144 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 22145 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 |
1e6feb95 | 22146 | else |
a0b9e27f | 22147 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22148 | #define wxUSE_PROGRESSDLG 1 |
a0b9e27f | 22149 | EOF |
1e6feb95 VZ |
22150 | |
22151 | fi | |
22152 | fi | |
22153 | ||
cbca9943 | 22154 | if test "$wxUSE_SPLASH" = "yes"; then |
a0b9e27f | 22155 | cat >> confdefs.h <<\EOF |
cbca9943 | 22156 | #define wxUSE_SPLASH 1 |
a0b9e27f | 22157 | EOF |
cbca9943 VZ |
22158 | |
22159 | fi | |
22160 | ||
1e6feb95 VZ |
22161 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
22162 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 22163 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 |
1e6feb95 | 22164 | else |
a0b9e27f | 22165 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22166 | #define wxUSE_STARTUP_TIPS 1 |
a0b9e27f | 22167 | EOF |
1e6feb95 | 22168 | |
7b4a847f RR |
22169 | fi |
22170 | fi | |
579d8138 | 22171 | |
8284b0c5 | 22172 | if test "$wxUSE_TEXTDLG" = "yes"; then |
a0b9e27f | 22173 | cat >> confdefs.h <<\EOF |
8284b0c5 | 22174 | #define wxUSE_TEXTDLG 1 |
a0b9e27f | 22175 | EOF |
8284b0c5 MB |
22176 | |
22177 | fi | |
22178 | ||
22179 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
a0b9e27f | 22180 | cat >> confdefs.h <<\EOF |
8284b0c5 | 22181 | #define wxUSE_WIZARDDLG 1 |
a0b9e27f | 22182 | EOF |
8284b0c5 MB |
22183 | |
22184 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
22185 | fi | |
22186 | ||
22187 | ||
22188 | if test "$cross_compiling" = "yes"; then | |
22189 | OSINFO="\"$host\"" | |
22190 | else | |
22191 | OSINFO=`uname -s -r -m` | |
22192 | OSINFO="\"$OSINFO\"" | |
22193 | fi | |
22194 | ||
a0b9e27f | 22195 | cat >> confdefs.h <<EOF |
8284b0c5 | 22196 | #define WXWIN_OS_DESCRIPTION $OSINFO |
a0b9e27f | 22197 | EOF |
8284b0c5 MB |
22198 | |
22199 | ||
22200 | ||
22201 | if test "x$prefix" != "xNONE"; then | |
22202 | wxPREFIX=$prefix | |
22203 | else | |
22204 | wxPREFIX=$ac_default_prefix | |
22205 | fi | |
22206 | ||
a0b9e27f | 22207 | cat >> confdefs.h <<EOF |
8284b0c5 | 22208 | #define wxINSTALL_PREFIX "$wxPREFIX" |
a0b9e27f | 22209 | EOF |
8284b0c5 MB |
22210 | |
22211 | ||
52c71b80 VZ |
22212 | top_builddir=`pwd` |
22213 | ||
8284b0c5 MB |
22214 | |
22215 | ||
22216 | ||
22217 | if test "$wxUSE_MAC" = 1 ; then | |
22218 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
22219 | fi | |
ac0c4cc3 DE |
22220 | if test "$wxUSE_COCOA" = 1 ; then |
22221 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
22222 | fi | |
8284b0c5 MB |
22223 | |
22224 | ||
2b5f62a0 VZ |
22225 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
22226 | ||
22227 | have_cos=0 | |
22228 | have_floor=0 | |
22229 | for ac_func in cos | |
22230 | do | |
22231 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
fd3d7534 | 22232 | echo "configure:22233: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22233 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22234 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22235 | else | |
22236 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 22237 | #line 22238 "configure" |
2b5f62a0 VZ |
22238 | #include "confdefs.h" |
22239 | /* System header to define __stub macros and hopefully few prototypes, | |
22240 | which can conflict with char $ac_func(); below. */ | |
22241 | #include <assert.h> | |
22242 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22243 | /* We use char because int might match the return type of a gcc2 | |
22244 | builtin and then its argument prototype would still apply. */ | |
22245 | char $ac_func(); | |
22246 | ||
22247 | int main() { | |
22248 | ||
22249 | /* The GNU C library defines this for functions which it implements | |
22250 | to always fail with ENOSYS. Some functions are actually named | |
22251 | something starting with __ and the normal name is an alias. */ | |
22252 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22253 | choke me | |
22254 | #else | |
22255 | $ac_func(); | |
22256 | #endif | |
22257 | ||
22258 | ; return 0; } | |
22259 | EOF | |
fd3d7534 | 22260 | if { (eval echo configure:22261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22261 | rm -rf conftest* |
22262 | eval "ac_cv_func_$ac_func=yes" | |
22263 | else | |
22264 | echo "configure: failed program was:" >&5 | |
22265 | cat conftest.$ac_ext >&5 | |
22266 | rm -rf conftest* | |
22267 | eval "ac_cv_func_$ac_func=no" | |
22268 | fi | |
22269 | rm -f conftest* | |
22270 | fi | |
22271 | ||
22272 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22273 | echo "$ac_t""yes" 1>&6 | |
22274 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22275 | cat >> confdefs.h <<EOF | |
22276 | #define $ac_tr_func 1 | |
22277 | EOF | |
22278 | have_cos=1 | |
22279 | else | |
22280 | echo "$ac_t""no" 1>&6 | |
22281 | fi | |
22282 | done | |
22283 | ||
22284 | for ac_func in floor | |
22285 | do | |
22286 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
fd3d7534 | 22287 | echo "configure:22288: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22288 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22289 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22290 | else | |
22291 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 22292 | #line 22293 "configure" |
2b5f62a0 VZ |
22293 | #include "confdefs.h" |
22294 | /* System header to define __stub macros and hopefully few prototypes, | |
22295 | which can conflict with char $ac_func(); below. */ | |
22296 | #include <assert.h> | |
22297 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22298 | /* We use char because int might match the return type of a gcc2 | |
22299 | builtin and then its argument prototype would still apply. */ | |
22300 | char $ac_func(); | |
22301 | ||
22302 | int main() { | |
22303 | ||
22304 | /* The GNU C library defines this for functions which it implements | |
22305 | to always fail with ENOSYS. Some functions are actually named | |
22306 | something starting with __ and the normal name is an alias. */ | |
22307 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22308 | choke me | |
22309 | #else | |
22310 | $ac_func(); | |
22311 | #endif | |
22312 | ||
22313 | ; return 0; } | |
22314 | EOF | |
fd3d7534 | 22315 | if { (eval echo configure:22316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22316 | rm -rf conftest* |
22317 | eval "ac_cv_func_$ac_func=yes" | |
22318 | else | |
22319 | echo "configure: failed program was:" >&5 | |
22320 | cat conftest.$ac_ext >&5 | |
22321 | rm -rf conftest* | |
22322 | eval "ac_cv_func_$ac_func=no" | |
22323 | fi | |
22324 | rm -f conftest* | |
22325 | fi | |
22326 | ||
22327 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22328 | echo "$ac_t""yes" 1>&6 | |
22329 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22330 | cat >> confdefs.h <<EOF | |
22331 | #define $ac_tr_func 1 | |
22332 | EOF | |
22333 | have_floor=1 | |
22334 | else | |
22335 | echo "$ac_t""no" 1>&6 | |
22336 | fi | |
22337 | done | |
22338 | ||
22339 | echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6 | |
fd3d7534 | 22340 | echo "configure:22341: checking if floating point functions link without -lm" >&5 |
2b5f62a0 VZ |
22341 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
22342 | echo "$ac_t""yes" 1>&6 | |
22343 | else | |
22344 | echo "$ac_t""no" 1>&6 | |
22345 | LIBS="$LIBS -lm" | |
22346 | # use different functions to avoid configure caching | |
22347 | have_sin=0 | |
22348 | have_ceil=0 | |
22349 | for ac_func in sin | |
22350 | do | |
22351 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
fd3d7534 | 22352 | echo "configure:22353: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22353 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22354 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22355 | else | |
22356 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 22357 | #line 22358 "configure" |
2b5f62a0 VZ |
22358 | #include "confdefs.h" |
22359 | /* System header to define __stub macros and hopefully few prototypes, | |
22360 | which can conflict with char $ac_func(); below. */ | |
22361 | #include <assert.h> | |
22362 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22363 | /* We use char because int might match the return type of a gcc2 | |
22364 | builtin and then its argument prototype would still apply. */ | |
22365 | char $ac_func(); | |
22366 | ||
22367 | int main() { | |
22368 | ||
22369 | /* The GNU C library defines this for functions which it implements | |
22370 | to always fail with ENOSYS. Some functions are actually named | |
22371 | something starting with __ and the normal name is an alias. */ | |
22372 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22373 | choke me | |
22374 | #else | |
22375 | $ac_func(); | |
22376 | #endif | |
22377 | ||
22378 | ; return 0; } | |
22379 | EOF | |
fd3d7534 | 22380 | if { (eval echo configure:22381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22381 | rm -rf conftest* |
22382 | eval "ac_cv_func_$ac_func=yes" | |
22383 | else | |
22384 | echo "configure: failed program was:" >&5 | |
22385 | cat conftest.$ac_ext >&5 | |
22386 | rm -rf conftest* | |
22387 | eval "ac_cv_func_$ac_func=no" | |
22388 | fi | |
22389 | rm -f conftest* | |
22390 | fi | |
22391 | ||
22392 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22393 | echo "$ac_t""yes" 1>&6 | |
22394 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22395 | cat >> confdefs.h <<EOF | |
22396 | #define $ac_tr_func 1 | |
22397 | EOF | |
22398 | have_sin=1 | |
22399 | else | |
22400 | echo "$ac_t""no" 1>&6 | |
22401 | fi | |
22402 | done | |
22403 | ||
22404 | for ac_func in ceil | |
22405 | do | |
22406 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
fd3d7534 | 22407 | echo "configure:22408: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22408 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22409 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22410 | else | |
22411 | cat > conftest.$ac_ext <<EOF | |
fd3d7534 | 22412 | #line 22413 "configure" |
2b5f62a0 VZ |
22413 | #include "confdefs.h" |
22414 | /* System header to define __stub macros and hopefully few prototypes, | |
22415 | which can conflict with char $ac_func(); below. */ | |
22416 | #include <assert.h> | |
22417 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22418 | /* We use char because int might match the return type of a gcc2 | |
22419 | builtin and then its argument prototype would still apply. */ | |
22420 | char $ac_func(); | |
22421 | ||
22422 | int main() { | |
22423 | ||
22424 | /* The GNU C library defines this for functions which it implements | |
22425 | to always fail with ENOSYS. Some functions are actually named | |
22426 | something starting with __ and the normal name is an alias. */ | |
22427 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22428 | choke me | |
22429 | #else | |
22430 | $ac_func(); | |
22431 | #endif | |
22432 | ||
22433 | ; return 0; } | |
22434 | EOF | |
fd3d7534 | 22435 | if { (eval echo configure:22436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22436 | rm -rf conftest* |
22437 | eval "ac_cv_func_$ac_func=yes" | |
22438 | else | |
22439 | echo "configure: failed program was:" >&5 | |
22440 | cat conftest.$ac_ext >&5 | |
22441 | rm -rf conftest* | |
22442 | eval "ac_cv_func_$ac_func=no" | |
22443 | fi | |
22444 | rm -f conftest* | |
22445 | fi | |
22446 | ||
22447 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22448 | echo "$ac_t""yes" 1>&6 | |
22449 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22450 | cat >> confdefs.h <<EOF | |
22451 | #define $ac_tr_func 1 | |
22452 | EOF | |
22453 | have_ceil=1 | |
22454 | else | |
22455 | echo "$ac_t""no" 1>&6 | |
22456 | fi | |
22457 | done | |
22458 | ||
22459 | echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6 | |
fd3d7534 | 22460 | echo "configure:22461: checking if floating point functions link with -lm" >&5 |
2b5f62a0 VZ |
22461 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
22462 | echo "$ac_t""yes" 1>&6 | |
22463 | else | |
22464 | echo "$ac_t""no" 1>&6 | |
22465 | # not sure we should warn the user, crash, etc. | |
22466 | fi | |
22467 | fi | |
8284b0c5 MB |
22468 | |
22469 | if test "$wxUSE_GUI" = "yes"; then | |
22470 | ||
22471 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" | |
22472 | ||
a0b9e27f | 22473 | |
8284b0c5 MB |
22474 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
22475 | drawing dynamic erase event exec font image \ | |
1542ea39 | 22476 | minimal propsize rotate shaped widgets" |
8284b0c5 MB |
22477 | |
22478 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
22479 | else | |
22480 | SAMPLES_SUBDIRS="console" | |
22481 | fi | |
22482 | ||
22483 | ||
22484 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ | |
22485 | -I\${top_srcdir}/include \ | |
22486 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
22487 | $TOOLKIT_INCLUDE" | |
22488 | ||
22489 | if test "$wxUSE_GTK" = 1; then | |
22490 | WXCONFIG_INCLUDE= | |
22491 | else | |
22492 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
22493 | fi | |
22494 | ||
22495 | if test "$GXX" = yes ; then | |
22496 | CXXWARNINGS="-Wall" | |
a0b9e27f | 22497 | |
8284b0c5 MB |
22498 | if test "$wxUSE_NO_DEPS" = "no" ; then |
22499 | CFLAGS="-MMD $CFLAGS" | |
22500 | CXXFLAGS="-MMD $CXXFLAGS" | |
22501 | fi | |
22502 | fi | |
22503 | ||
b2fee376 | 22504 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" |
8284b0c5 | 22505 | |
b2fee376 | 22506 | CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
8284b0c5 MB |
22507 | CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
22508 | CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
22509 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
22510 | ||
22511 | LDFLAGS="$LDFLAGS $PROFILE" | |
22512 | ||
22513 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
22514 | ||
22515 | ||
22516 | ||
22517 | ||
22518 | ||
22519 | ||
22520 | ||
22521 | ||
22522 | ||
22523 | ||
22524 | ||
22525 | ||
22526 | ||
22527 | ||
22528 | ||
22529 | ||
22530 | ||
22531 | ||
22532 | ||
22533 | ||
22534 | ||
22535 | ||
22536 | ||
22537 | ||
22538 | ||
22539 | ||
22540 | ||
22541 | ||
22542 | ||
22543 | ||
22544 | ||
22545 | ||
22546 | ||
22547 | ||
22548 | ||
22549 | ||
22550 | ||
22551 | ||
22552 | ||
22553 | ||
22554 | ||
22555 | ||
22556 | ||
22557 | ||
22558 | ||
22559 | ||
22560 | ||
22561 | ||
22562 | ||
22563 | ||
22564 | ||
22565 | ||
22566 | ||
22567 | ||
22568 | ||
22569 | ||
22570 | ||
22571 | ||
22572 | ||
22573 | ||
22574 | ||
22575 | ||
22576 | ||
22577 | ||
22578 | ||
22579 | ||
22580 | ||
22581 | ||
2f51a9ec GD |
22582 | |
22583 | ||
22584 | ||
22585 | ||
f6bcfd97 | 22586 | |
dad6c0ea | 22587 | |
caa2c79b | 22588 | |
3711412e | 22589 | |
1e6feb95 VZ |
22590 | |
22591 | ||
885d4bf5 VS |
22592 | |
22593 | ||
22594 | ||
22595 | ||
9b695262 VZ |
22596 | |
22597 | ||
62d0491b | 22598 | |
ef7f2189 | 22599 | |
40f7145c | 22600 | |
2b5f62a0 VZ |
22601 | |
22602 | ||
22603 | ||
22604 | ||
22605 | ||
2bffed64 VZ |
22606 | |
22607 | ||
3bd8fb5f | 22608 | |
e26c13cf | 22609 | |
52c71b80 | 22610 | |
36825681 | 22611 | |
4f5a7f74 | 22612 | |
10f2d63a | 22613 | |
a0b9e27f MB |
22614 | |
22615 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
fd3d7534 | 22616 | echo "configure:22617: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
a0b9e27f MB |
22617 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
22618 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
22619 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 22620 | else |
a0b9e27f | 22621 | cat > conftestmake <<\EOF |
10f2d63a VZ |
22622 | all: |
22623 | @echo 'ac_maketemp="${MAKE}"' | |
a0b9e27f | 22624 | EOF |
10f2d63a | 22625 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
a0b9e27f | 22626 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
22627 | if test -n "$ac_maketemp"; then |
22628 | eval ac_cv_prog_make_${ac_make}_set=yes | |
22629 | else | |
22630 | eval ac_cv_prog_make_${ac_make}_set=no | |
22631 | fi | |
a0b9e27f | 22632 | rm -f conftestmake |
10f2d63a VZ |
22633 | fi |
22634 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
a0b9e27f | 22635 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
22636 | SET_MAKE= |
22637 | else | |
a0b9e27f | 22638 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
22639 | SET_MAKE="MAKE=${MAKE-make}" |
22640 | fi | |
22641 | ||
8284b0c5 | 22642 | |
3a922bb4 RL |
22643 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
22644 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 22645 | fi |
665bbe97 | 22646 | |
8284b0c5 | 22647 | |
10f2d63a | 22648 | |
57973b9c VZ |
22649 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
22650 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
22651 | wx_cv_path_ifs=$PATH_IFS | |
22652 | wx_cv_program_ext=$PROGRAM_EXT | |
22653 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
22654 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
22655 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
2b5f62a0 VZ |
22656 | wx_cv_library_basename=${WX_LIBRARY_BASENAME} |
22657 | wx_cv_release=${WX_RELEASE} | |
22658 | wx_cv_current=${WX_CURRENT} | |
22659 | wx_cv_revision=${WX_REVISION} | |
22660 | wx_cv_age=${WX_AGE} | |
27635a90 | 22661 | wx_cv_use_gui=${USE_GUI} |
5e66eee1 | 22662 | wx_cv_use_resources=${wxUSE_RESOURCES} |
57973b9c VZ |
22663 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ |
22664 | wx_cv_path_ifs wx_cv_program_ext \ | |
2b5f62a0 | 22665 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \ |
27635a90 | 22666 | wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \ |
5e66eee1 | 22667 | wx_cv_use_gui wx_cv_use_resources |
57973b9c | 22668 | |
a0b9e27f | 22669 | subdirs="demos samples utils contrib" |
8284b0c5 | 22670 | |
10f2d63a | 22671 | |
a0b9e27f MB |
22672 | trap '' 1 2 15 |
22673 | cat > confcache <<\EOF | |
10f2d63a VZ |
22674 | # This file is a shell script that caches the results of configure |
22675 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
22676 | # scripts and configure runs. It is not useful on other systems. |
22677 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 22678 | # |
a0b9e27f MB |
22679 | # By default, configure uses ./config.cache as the cache file, |
22680 | # creating it if it does not exist already. You can give configure | |
22681 | # the --cache-file=FILE option to use a different cache file; that is | |
22682 | # what configure does when it calls configure scripts in | |
22683 | # subdirectories, so they share the cache. | |
22684 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
22685 | # config.status only pays attention to the cache file if you give it the | |
22686 | # --recheck option to rerun configure. | |
10f2d63a | 22687 | # |
a0b9e27f | 22688 | EOF |
10f2d63a VZ |
22689 | # The following way of writing the cache mishandles newlines in values, |
22690 | # but we know of no workaround that is simple, portable, and efficient. | |
22691 | # So, don't put newlines in cache variables' values. | |
22692 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
22693 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
22694 | (set) 2>&1 | |
22695 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
22696 | *ac_space=\ *) | |
22697 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
22698 | # turns \\\\ into \\, and sed turns \\ into \). | |
22699 | sed -n \ | |
22700 | -e "s/'/'\\\\''/g" \ | |
22701 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
22702 | ;; | |
22703 | *) | |
22704 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
22705 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
22706 | ;; | |
22707 | esac >> confcache | |
22708 | if cmp -s $cache_file confcache; then | |
22709 | : | |
22710 | else | |
10f2d63a | 22711 | if test -w $cache_file; then |
a0b9e27f MB |
22712 | echo "updating cache $cache_file" |
22713 | cat confcache > $cache_file | |
10f2d63a VZ |
22714 | else |
22715 | echo "not updating unwritable cache $cache_file" | |
22716 | fi | |
22717 | fi | |
22718 | rm -f confcache | |
22719 | ||
a0b9e27f MB |
22720 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
22721 | ||
10f2d63a VZ |
22722 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
22723 | # Let make expand exec_prefix. | |
22724 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
22725 | ||
a0b9e27f MB |
22726 | # Any assignment to VPATH causes Sun make to only execute |
22727 | # the first set of double-colon rules, so remove it if not needed. | |
22728 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 22729 | if test "x$srcdir" = x.; then |
a0b9e27f | 22730 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
22731 | fi |
22732 | ||
a0b9e27f | 22733 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
10f2d63a | 22734 | |
a0b9e27f | 22735 | DEFS=-DHAVE_CONFIG_H |
8284b0c5 | 22736 | |
a0b9e27f | 22737 | # Without the "./", some shells look in PATH for config.status. |
247f5006 | 22738 | : ${CONFIG_STATUS=./config.status} |
52127426 | 22739 | |
a0b9e27f MB |
22740 | echo creating $CONFIG_STATUS |
22741 | rm -f $CONFIG_STATUS | |
22742 | cat > $CONFIG_STATUS <<EOF | |
22743 | #! /bin/sh | |
22744 | # Generated automatically by configure. | |
22745 | # Run this file to recreate the current configuration. | |
22746 | # This directory was configured as follows, | |
22747 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
247f5006 | 22748 | # |
a0b9e27f | 22749 | # $0 $ac_configure_args |
247f5006 | 22750 | # |
a0b9e27f MB |
22751 | # Compiler output produced by configure, useful for debugging |
22752 | # configure, is in ./config.log if it exists. | |
247f5006 | 22753 | |
a0b9e27f MB |
22754 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
22755 | for ac_option | |
247f5006 | 22756 | do |
a0b9e27f MB |
22757 | case "\$ac_option" in |
22758 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22759 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
22760 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
22761 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
22762 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
22763 | exit 0 ;; | |
22764 | -help | --help | --hel | --he | --h) | |
22765 | echo "\$ac_cs_usage"; exit 0 ;; | |
22766 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
247f5006 VZ |
22767 | esac |
22768 | done | |
22769 | ||
a0b9e27f MB |
22770 | ac_given_srcdir=$srcdir |
22771 | ac_given_INSTALL="$INSTALL" | |
247f5006 | 22772 | |
a0b9e27f MB |
22773 | trap 'rm -fr `echo " |
22774 | wx-config | |
2b5f62a0 | 22775 | version-script |
a0b9e27f MB |
22776 | src/make.env |
22777 | src/makeprog.env | |
22778 | src/makelib.env | |
22779 | Makefile | |
22780 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
22781 | EOF | |
22782 | cat >> $CONFIG_STATUS <<EOF | |
247f5006 | 22783 | |
a0b9e27f MB |
22784 | # Protect against being on the right side of a sed subst in config.status. |
22785 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
22786 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
22787 | $ac_vpsub | |
22788 | $extrasub | |
22789 | s%@SHELL@%$SHELL%g | |
22790 | s%@CFLAGS@%$CFLAGS%g | |
22791 | s%@CPPFLAGS@%$CPPFLAGS%g | |
22792 | s%@CXXFLAGS@%$CXXFLAGS%g | |
22793 | s%@FFLAGS@%$FFLAGS%g | |
22794 | s%@DEFS@%$DEFS%g | |
22795 | s%@LDFLAGS@%$LDFLAGS%g | |
22796 | s%@LIBS@%$LIBS%g | |
22797 | s%@exec_prefix@%$exec_prefix%g | |
22798 | s%@prefix@%$prefix%g | |
22799 | s%@program_transform_name@%$program_transform_name%g | |
22800 | s%@bindir@%$bindir%g | |
22801 | s%@sbindir@%$sbindir%g | |
22802 | s%@libexecdir@%$libexecdir%g | |
22803 | s%@datadir@%$datadir%g | |
22804 | s%@sysconfdir@%$sysconfdir%g | |
22805 | s%@sharedstatedir@%$sharedstatedir%g | |
22806 | s%@localstatedir@%$localstatedir%g | |
22807 | s%@libdir@%$libdir%g | |
22808 | s%@includedir@%$includedir%g | |
22809 | s%@oldincludedir@%$oldincludedir%g | |
22810 | s%@infodir@%$infodir%g | |
22811 | s%@mandir@%$mandir%g | |
22812 | s%@host@%$host%g | |
22813 | s%@host_alias@%$host_alias%g | |
22814 | s%@host_cpu@%$host_cpu%g | |
22815 | s%@host_vendor@%$host_vendor%g | |
22816 | s%@host_os@%$host_os%g | |
22817 | s%@target@%$target%g | |
22818 | s%@target_alias@%$target_alias%g | |
22819 | s%@target_cpu@%$target_cpu%g | |
22820 | s%@target_vendor@%$target_vendor%g | |
22821 | s%@target_os@%$target_os%g | |
22822 | s%@build@%$build%g | |
22823 | s%@build_alias@%$build_alias%g | |
22824 | s%@build_cpu@%$build_cpu%g | |
22825 | s%@build_vendor@%$build_vendor%g | |
22826 | s%@build_os@%$build_os%g | |
22827 | s%@CC@%$CC%g | |
22828 | s%@CPP@%$CPP%g | |
22829 | s%@CXX@%$CXX%g | |
22830 | s%@RANLIB@%$RANLIB%g | |
22831 | s%@AR@%$AR%g | |
22832 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
22833 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
22834 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
22835 | s%@STRIP@%$STRIP%g | |
22836 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g | |
22837 | s%@YACC@%$YACC%g | |
22838 | s%@LEX@%$LEX%g | |
22839 | s%@LEXLIB@%$LEXLIB%g | |
22840 | s%@LN_S@%$LN_S%g | |
22841 | s%@CXXCPP@%$CXXCPP%g | |
22842 | s%@PKG_CONFIG@%$PKG_CONFIG%g | |
22843 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
22844 | s%@GTK_LIBS@%$GTK_LIBS%g | |
22845 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
22846 | s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g | |
22847 | s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g | |
22848 | s%@X_CFLAGS@%$X_CFLAGS%g | |
22849 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
22850 | s%@X_LIBS@%$X_LIBS%g | |
22851 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
2b5f62a0 VZ |
22852 | s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g |
22853 | s%@PANGOX_LIBS@%$PANGOX_LIBS%g | |
22854 | s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g | |
22855 | s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g | |
a0b9e27f MB |
22856 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g |
22857 | s%@RESCOMP@%$RESCOMP%g | |
22858 | s%@DEREZ@%$DEREZ%g | |
36825681 | 22859 | s%@SETFILE@%$SETFILE%g |
a0b9e27f MB |
22860 | s%@LIBICONV@%$LIBICONV%g |
22861 | s%@LEX_STEM@%$LEX_STEM%g | |
22862 | s%@PATH_IFS@%$PATH_IFS%g | |
22863 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
22864 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
22865 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
22866 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
22867 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
2b5f62a0 | 22868 | s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g |
a0b9e27f MB |
22869 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
22870 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
22871 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
22872 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
22873 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
22874 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
22875 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
22876 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
22877 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
22878 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
22879 | s%@WX_ALL@%$WX_ALL%g | |
22880 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
22881 | s%@SHARED_LD@%$SHARED_LD%g | |
22882 | s%@PIC_FLAG@%$PIC_FLAG%g | |
22883 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
22884 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
22885 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g | |
22886 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
22887 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
22888 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
2bffed64 | 22889 | s%@STATIC_FLAG@%$STATIC_FLAG%g |
a0b9e27f MB |
22890 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
22891 | s%@USE_GUI@%$USE_GUI%g | |
22892 | s%@AFMINSTALL@%$AFMINSTALL%g | |
2b5f62a0 | 22893 | s%@WIN32INSTALL@%$WIN32INSTALL%g |
a0b9e27f MB |
22894 | s%@TOOLKIT@%$TOOLKIT%g |
22895 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
22896 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g | |
22897 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g | |
22898 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
22899 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g | |
52c71b80 | 22900 | s%@top_builddir@%$top_builddir%g |
a0b9e27f MB |
22901 | s%@cross_compiling@%$cross_compiling%g |
22902 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
22903 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
22904 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g | |
22905 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
22906 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
22907 | s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g | |
e26c13cf | 22908 | s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g |
a0b9e27f MB |
22909 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g |
22910 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
22911 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
22912 | s%@GUIDIST@%$GUIDIST%g | |
22913 | s%@PORT_FILES@%$PORT_FILES%g | |
22914 | s%@DISTDIR@%$DISTDIR%g | |
a0b9e27f MB |
22915 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
22916 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g | |
2b5f62a0 | 22917 | s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g |
a0b9e27f MB |
22918 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g |
22919 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
22920 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g | |
22921 | s%@EXTRADEFS@%$EXTRADEFS%g | |
2b5f62a0 | 22922 | s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g |
a0b9e27f MB |
22923 | s%@RESFLAGS@%$RESFLAGS%g |
22924 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g | |
22925 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g | |
22926 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
22927 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g | |
22928 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
36825681 GD |
22929 | s%@MACRESCOMP@%$MACRESCOMP%g |
22930 | s%@MACSETFILE@%$MACSETFILE%g | |
22931 | s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g | |
2b5f62a0 | 22932 | s%@GCC@%$GCC%g |
a0b9e27f MB |
22933 | s%@DLLTOOL@%$DLLTOOL%g |
22934 | s%@AS@%$AS%g | |
22935 | s%@NM@%$NM%g | |
22936 | s%@LD@%$LD%g | |
22937 | s%@MAKEINFO@%$MAKEINFO%g | |
22938 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g | |
4f5a7f74 | 22939 | s%@INSTALL_DIR@%$INSTALL_DIR%g |
a0b9e27f MB |
22940 | s%@SET_MAKE@%$SET_MAKE%g |
22941 | s%@subdirs@%$subdirs%g | |
247f5006 | 22942 | |
247f5006 | 22943 | CEOF |
a0b9e27f | 22944 | EOF |
247f5006 | 22945 | |
a0b9e27f MB |
22946 | cat >> $CONFIG_STATUS <<\EOF |
22947 | ||
22948 | # Split the substitutions into bite-sized pieces for seds with | |
22949 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
22950 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
22951 | ac_file=1 # Number of current file. | |
22952 | ac_beg=1 # First line for current file. | |
22953 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
22954 | ac_more_lines=: | |
22955 | ac_sed_cmds="" | |
22956 | while $ac_more_lines; do | |
22957 | if test $ac_beg -gt 1; then | |
22958 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
22959 | else | |
22960 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
22961 | fi | |
22962 | if test ! -s conftest.s$ac_file; then | |
22963 | ac_more_lines=false | |
22964 | rm -f conftest.s$ac_file | |
22965 | else | |
22966 | if test -z "$ac_sed_cmds"; then | |
22967 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
247f5006 | 22968 | else |
a0b9e27f | 22969 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
247f5006 | 22970 | fi |
a0b9e27f MB |
22971 | ac_file=`expr $ac_file + 1` |
22972 | ac_beg=$ac_end | |
22973 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 22974 | fi |
a0b9e27f MB |
22975 | done |
22976 | if test -z "$ac_sed_cmds"; then | |
22977 | ac_sed_cmds=cat | |
22978 | fi | |
22979 | EOF | |
10f2d63a | 22980 | |
a0b9e27f | 22981 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 22982 | |
a0b9e27f | 22983 | CONFIG_FILES=\${CONFIG_FILES-"wx-config |
2b5f62a0 | 22984 | version-script |
a0b9e27f MB |
22985 | src/make.env |
22986 | src/makeprog.env | |
22987 | src/makelib.env | |
22988 | Makefile | |
22989 | "} | |
22990 | EOF | |
22991 | cat >> $CONFIG_STATUS <<\EOF | |
22992 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
22993 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
22994 | case "$ac_file" in | |
22995 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
22996 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22997 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a | 22998 | esac |
247f5006 | 22999 | |
a0b9e27f | 23000 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
247f5006 | 23001 | |
a0b9e27f MB |
23002 | # Remove last slash and all that follows it. Not all systems have dirname. |
23003 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
23004 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
23005 | # The file is in a subdirectory. | |
23006 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
23007 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
23008 | # A "../" for each directory in $ac_dir_suffix. | |
23009 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
23010 | else | |
23011 | ac_dir_suffix= ac_dots= | |
23012 | fi | |
247f5006 | 23013 | |
a0b9e27f MB |
23014 | case "$ac_given_srcdir" in |
23015 | .) srcdir=. | |
23016 | if test -z "$ac_dots"; then top_srcdir=. | |
23017 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
23018 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
247f5006 | 23019 | *) # Relative path. |
a0b9e27f MB |
23020 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
23021 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8284b0c5 | 23022 | esac |
10f2d63a | 23023 | |
a0b9e27f MB |
23024 | case "$ac_given_INSTALL" in |
23025 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
23026 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
23027 | esac | |
247f5006 | 23028 | |
a0b9e27f MB |
23029 | echo creating "$ac_file" |
23030 | rm -f "$ac_file" | |
23031 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
23032 | case "$ac_file" in | |
23033 | *Makefile*) ac_comsub="1i\\ | |
23034 | # $configure_input" ;; | |
23035 | *) ac_comsub= ;; | |
23036 | esac | |
247f5006 | 23037 | |
a0b9e27f MB |
23038 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
23039 | sed -e "$ac_comsub | |
23040 | s%@configure_input@%$configure_input%g | |
23041 | s%@srcdir@%$srcdir%g | |
23042 | s%@top_srcdir@%$top_srcdir%g | |
23043 | s%@INSTALL@%$INSTALL%g | |
23044 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
23045 | fi; done | |
23046 | rm -f conftest.s* | |
10f2d63a VZ |
23047 | |
23048 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
23049 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
23050 | # | |
23051 | # ac_d sets the value in "#define NAME VALUE" lines. | |
a0b9e27f MB |
23052 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
23053 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
23054 | ac_dC='\3' | |
23055 | ac_dD='%g' | |
23056 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
23057 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
23058 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 23059 | ac_uC=' ' |
a0b9e27f MB |
23060 | ac_uD='\4%g' |
23061 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
23062 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
23063 | ac_eB='$%\1#\2define\3' | |
23064 | ac_eC=' ' | |
23065 | ac_eD='%g' | |
23066 | ||
23067 | if test "${CONFIG_HEADERS+set}" != set; then | |
23068 | EOF | |
23069 | cat >> $CONFIG_STATUS <<EOF | |
23070 | CONFIG_HEADERS="setup.h:setup.h.in" | |
23071 | EOF | |
23072 | cat >> $CONFIG_STATUS <<\EOF | |
23073 | fi | |
23074 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 23075 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
a0b9e27f MB |
23076 | case "$ac_file" in |
23077 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
23078 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
23079 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
23080 | esac |
23081 | ||
a0b9e27f MB |
23082 | echo creating $ac_file |
23083 | ||
23084 | rm -f conftest.frag conftest.in conftest.out | |
23085 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
23086 | cat $ac_file_inputs > conftest.in | |
23087 | ||
23088 | EOF | |
23089 | ||
23090 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
23091 | # the proper values into config.h.in to produce config.h. And first: | |
23092 | # Protect against being on the right side of a sed subst in config.status. | |
23093 | # Protect against being in an unquoted here document in config.status. | |
23094 | rm -f conftest.vals | |
23095 | cat > conftest.hdr <<\EOF | |
23096 | s/[\\&%]/\\&/g | |
23097 | s%[\\$`]%\\&%g | |
23098 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
23099 | s%ac_d%ac_u%gp | |
23100 | s%ac_u%ac_e%gp | |
23101 | EOF | |
23102 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
23103 | rm -f conftest.hdr | |
10f2d63a VZ |
23104 | |
23105 | # This sed command replaces #undef with comments. This is necessary, for | |
23106 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
23107 | # on some systems where configure will not decide to define it. | |
a0b9e27f MB |
23108 | cat >> conftest.vals <<\EOF |
23109 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
23110 | EOF | |
23111 | ||
23112 | # Break up conftest.vals because some shells have a limit on | |
23113 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
23114 | |
23115 | rm -f conftest.tail | |
a0b9e27f | 23116 | while : |
10f2d63a | 23117 | do |
a0b9e27f MB |
23118 | ac_lines=`grep -c . conftest.vals` |
23119 | # grep -c gives empty output for an empty file on some AIX systems. | |
23120 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
23121 | # Write a limited-size here document to conftest.frag. | |
23122 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
23123 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 23124 | echo 'CEOF |
a0b9e27f MB |
23125 | sed -f conftest.frag conftest.in > conftest.out |
23126 | rm -f conftest.in | |
23127 | mv conftest.out conftest.in | |
23128 | ' >> $CONFIG_STATUS | |
23129 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
23130 | rm -f conftest.vals | |
23131 | mv conftest.tail conftest.vals | |
10f2d63a | 23132 | done |
a0b9e27f MB |
23133 | rm -f conftest.vals |
23134 | ||
23135 | cat >> $CONFIG_STATUS <<\EOF | |
23136 | rm -f conftest.frag conftest.h | |
23137 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
23138 | cat conftest.in >> conftest.h | |
23139 | rm -f conftest.in | |
23140 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
23141 | echo "$ac_file is unchanged" | |
23142 | rm -f conftest.h | |
10f2d63a | 23143 | else |
a0b9e27f MB |
23144 | # Remove last slash and all that follows it. Not all systems have dirname. |
23145 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
23146 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
23147 | # The file is in a subdirectory. | |
23148 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
247f5006 | 23149 | fi |
a0b9e27f MB |
23150 | rm -f $ac_file |
23151 | mv conftest.h $ac_file | |
247f5006 | 23152 | fi |
a0b9e27f MB |
23153 | fi; done |
23154 | ||
23155 | EOF | |
23156 | cat >> $CONFIG_STATUS <<EOF | |
23157 | ||
23158 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
23159 | LN_S="${LN_S}" | |
23160 | ||
23161 | ||
23162 | EOF | |
23163 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 23164 | |
652d930d | 23165 | if test ! -h wx-config; then |
991a5759 | 23166 | chmod +x wx-config |
3a922bb4 RL |
23167 | mv wx-config wx${TOOLCHAIN_NAME}-config |
23168 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 23169 | fi |
665bbe97 | 23170 | |
00cf1208 RR |
23171 | if test ! -d lib; then |
23172 | mkdir lib | |
23173 | fi | |
23174 | if test ! -d lib/wx; then | |
23175 | mkdir lib/wx | |
23176 | fi | |
23177 | if test ! -d lib/wx/include; then | |
23178 | mkdir lib/wx/include | |
23179 | fi | |
3a922bb4 RL |
23180 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
23181 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 23182 | fi |
3a922bb4 RL |
23183 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
23184 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
23185 | fi |
23186 | if test -f setup.h; then | |
3a922bb4 | 23187 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 23188 | fi |
a0b9e27f MB |
23189 | |
23190 | exit 0 | |
23191 | EOF | |
10f2d63a | 23192 | chmod +x $CONFIG_STATUS |
a0b9e27f MB |
23193 | rm -fr confdefs* $ac_clean_files |
23194 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 23195 | |
2224580a VZ |
23196 | if test "$no_recursion" != yes; then |
23197 | ||
23198 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
23199 | ac_sub_configure_args= | |
23200 | ac_prev= | |
23201 | for ac_arg in $ac_configure_args; do | |
23202 | if test -n "$ac_prev"; then | |
23203 | ac_prev= | |
23204 | continue | |
23205 | fi | |
a0b9e27f | 23206 | case "$ac_arg" in |
2224580a VZ |
23207 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
23208 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
23209 | ac_prev=cache_file ;; | |
23210 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
a0b9e27f | 23211 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
23212 | ;; |
23213 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
23214 | ac_prev=srcdir ;; | |
23215 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
23216 | ;; | |
23217 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
23218 | esac | |
23219 | done | |
23220 | ||
a0b9e27f | 23221 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
23222 | |
23223 | # Do not complain, so a configure script can configure whichever | |
23224 | # parts of a large source tree are present. | |
a0b9e27f MB |
23225 | if test ! -d $srcdir/$ac_config_dir; then |
23226 | continue | |
23227 | fi | |
2224580a | 23228 | |
a0b9e27f | 23229 | echo configuring in $ac_config_dir |
2224580a | 23230 | |
a0b9e27f MB |
23231 | case "$srcdir" in |
23232 | .) ;; | |
23233 | *) | |
23234 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
23235 | else | |
23236 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
23237 | fi | |
23238 | ;; | |
23239 | esac | |
2224580a | 23240 | |
a0b9e27f MB |
23241 | ac_popdir=`pwd` |
23242 | cd $ac_config_dir | |
247f5006 | 23243 | |
a0b9e27f MB |
23244 | # A "../" for each directory in /$ac_config_dir. |
23245 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
247f5006 | 23246 | |
a0b9e27f MB |
23247 | case "$srcdir" in |
23248 | .) # No --srcdir option. We are building in place. | |
23249 | ac_sub_srcdir=$srcdir ;; | |
23250 | /*) # Absolute path. | |
23251 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
23252 | *) # Relative path. | |
23253 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
23254 | esac | |
2224580a VZ |
23255 | |
23256 | # Check for guested configure; otherwise get Cygnus style configure. | |
a0b9e27f MB |
23257 | if test -f $ac_sub_srcdir/configure; then |
23258 | ac_sub_configure=$ac_sub_srcdir/configure | |
23259 | elif test -f $ac_sub_srcdir/configure.in; then | |
2224580a VZ |
23260 | ac_sub_configure=$ac_configure |
23261 | else | |
a0b9e27f | 23262 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
23263 | ac_sub_configure= |
23264 | fi | |
23265 | ||
23266 | # The recursion is here. | |
23267 | if test -n "$ac_sub_configure"; then | |
a0b9e27f | 23268 | |
2224580a | 23269 | # Make the cache file name correct relative to the subdirectory. |
a0b9e27f MB |
23270 | case "$cache_file" in |
23271 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 23272 | *) # Relative path. |
a0b9e27f | 23273 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 23274 | esac |
a0b9e27f MB |
23275 | case "$ac_given_INSTALL" in |
23276 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
23277 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
23278 | esac | |
2224580a | 23279 | |
a0b9e27f | 23280 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 23281 | # The eval makes quoting arguments work. |
a0b9e27f MB |
23282 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
23283 | then : | |
23284 | else | |
23285 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
23286 | fi | |
2224580a VZ |
23287 | fi |
23288 | ||
23289 | cd $ac_popdir | |
23290 | done | |
23291 | fi | |
23292 | ||
8284b0c5 | 23293 | |
2b5f62a0 VZ |
23294 | echo |
23295 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
23296 | echo "" | |
23297 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}" | |
23298 | ||
23299 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
23300 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
23301 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
23302 | ||
0c98a14e GD |
23303 | echo " What level of wxWindows compatibility should be enabled?" |
23304 | echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}" | |
65d8ef1e VS |
23305 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
23306 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 23307 | |
2b5f62a0 VZ |
23308 | echo " Which libraries should wxWindows use?" |
23309 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
23310 | echo " png ${wxUSE_LIBPNG-none}" | |
23311 | echo " regex ${wxUSE_REGEX}" | |
23312 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
23313 | echo " zlib ${wxUSE_ZLIB}" | |
fd3d7534 | 23314 | echo " odbc ${wxUSE_ODBC}" |
2b5f62a0 VZ |
23315 | |
23316 | echo "" | |
23317 |