]>
Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | ||
3 | # From configure.in Id: configure.in | |
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
37 | ||
38 | ||
39 | ||
40 | ||
41 | ||
42 | ||
43 | ||
44 | ||
45 | ||
46 | ||
47 | ||
48 | ||
49 | ||
50 | ||
51 | ||
52 | ||
53 | ||
54 | ||
55 | ||
56 | ||
57 | ||
58 | ||
59 | ||
60 | ||
61 | ||
62 | ||
63 | ||
64 | ||
65 | # Configure paths for GTK+ | |
66 | # Owen Taylor 1997-2001 | |
67 | ||
68 | ||
69 | ||
70 | # Configure paths for GTK+ | |
71 | # Owen Taylor 97-11-3 | |
72 | ||
73 | ||
74 | ||
75 | ||
76 | ||
77 | ||
78 | ||
79 | ||
80 | # Guess values for system-dependent variables and create Makefiles. | |
81 | # Generated automatically using autoconf version 2.13 | |
82 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
83 | # | |
84 | # This configure script is free software; the Free Software Foundation | |
85 | # gives unlimited permission to copy, distribute and modify it. | |
86 | ||
87 | # Defaults: | |
88 | ac_help= | |
89 | ac_default_prefix=/usr/local | |
90 | # Any additions from configure.in: | |
91 | ac_help="$ac_help | |
92 | --enable-gui use GUI classes" | |
93 | ac_help="$ac_help | |
94 | --enable-universal use wxWindows GUI controls instead of native ones" | |
95 | ac_help="$ac_help | |
96 | --with-gtk use GTK+" | |
97 | ac_help="$ac_help | |
98 | --with-motif use Motif/Lesstif" | |
99 | ac_help="$ac_help | |
100 | --with-mac use Mac OS X" | |
101 | ac_help="$ac_help | |
102 | --with-wine use Wine" | |
103 | ac_help="$ac_help | |
104 | --with-msw use MS-Windows" | |
105 | ac_help="$ac_help | |
106 | --with-pm use OS/2 Presentation Manager" | |
107 | ac_help="$ac_help | |
108 | --with-mgl use SciTech MGL" | |
109 | ac_help="$ac_help | |
110 | --with-microwin use MicroWindows" | |
111 | ac_help="$ac_help | |
112 | --with-x11 use X11" | |
113 | ac_help="$ac_help | |
114 | --enable-nanox use NanoX" | |
115 | ac_help="$ac_help | |
116 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" | |
117 | ac_help="$ac_help | |
118 | --with-libpng use libpng (PNG image format)" | |
119 | ac_help="$ac_help | |
120 | --with-libjpeg use libjpeg (JPEG file format)" | |
121 | ac_help="$ac_help | |
122 | --with-libtiff use libtiff (TIFF file format)" | |
123 | ac_help="$ac_help | |
124 | --with-opengl use OpenGL (or Mesa)" | |
125 | ac_help="$ac_help | |
126 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" | |
127 | ac_help="$ac_help | |
128 | --with-regex enable support for wxRegEx class" | |
129 | ac_help="$ac_help | |
130 | --with-zlib use zlib for LZW compression" | |
131 | ac_help="$ac_help | |
132 | --with-odbc use the IODBC and wxODBC classes" | |
133 | ac_help="$ac_help | |
134 | --enable-shared create shared library code" | |
135 | ac_help="$ac_help | |
136 | --enable-soname set the DT_SONAME field in ELF shared libraries" | |
137 | ac_help="$ac_help | |
138 | --enable-optimise create optimised code" | |
139 | ac_help="$ac_help | |
140 | --enable-debug same as debug_flag and debug_info" | |
141 | ac_help="$ac_help | |
142 | --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)" | |
143 | ac_help="$ac_help | |
144 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
145 | ac_help="$ac_help | |
146 | --enable-debug_info create code with debugging information" | |
147 | ac_help="$ac_help | |
148 | --enable-debug_gdb create code with extra GDB debugging information" | |
149 | ac_help="$ac_help | |
150 | --enable-debug_cntxt use wxDebugContext" | |
151 | ac_help="$ac_help | |
152 | --enable-mem_tracing create code with memory tracing" | |
153 | ac_help="$ac_help | |
154 | --enable-profile create code with profiling information" | |
155 | ac_help="$ac_help | |
156 | --enable-no_rtti create code without RTTI information" | |
157 | ac_help="$ac_help | |
158 | --enable-no_exceptions create code without C++ exceptions handling" | |
159 | ac_help="$ac_help | |
160 | --enable-permissive compile code disregarding strict ANSI" | |
161 | ac_help="$ac_help | |
162 | --enable-no_deps create code without dependency information" | |
163 | ac_help="$ac_help | |
164 | --enable-compat20 enable wxWindows 2.0 compatibility" | |
165 | ac_help="$ac_help | |
166 | --enable-compat22 enable wxWindows 2.2 compatibility" | |
167 | ac_help="$ac_help | |
168 | --disable-compat24 disable wxWindows 2.4 compatibility" | |
169 | ac_help="$ac_help | |
170 | --enable-rpath=DIR output the rpath flag from wx-config" | |
171 | ac_help="$ac_help | |
172 | --enable-intl use internationalization system" | |
173 | ac_help="$ac_help | |
174 | --enable-config use wxConfig (and derived) classes" | |
175 | ac_help="$ac_help | |
176 | --enable-protocols use wxProtocol and derived classes" | |
177 | ac_help="$ac_help | |
178 | --enable-ftp use wxFTP (requires wxProtocol" | |
179 | ac_help="$ac_help | |
180 | --enable-http use wxHTTP (requires wxProtocol" | |
181 | ac_help="$ac_help | |
182 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
183 | ac_help="$ac_help | |
184 | --enable-sockets use socket/network classes" | |
185 | ac_help="$ac_help | |
186 | --enable-ole use OLE classes" | |
187 | ac_help="$ac_help | |
188 | --enable-dataobj use data object classes" | |
189 | ac_help="$ac_help | |
190 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
191 | ac_help="$ac_help | |
192 | --enable-cmdline use wxCmdLineParser class" | |
193 | ac_help="$ac_help | |
194 | --enable-datetime use wxDateTime class" | |
195 | ac_help="$ac_help | |
196 | --enable-timedate use obsolete wxDate/wxTime classes" | |
197 | ac_help="$ac_help | |
198 | --enable-stopwatch use wxStopWatch class" | |
199 | ac_help="$ac_help | |
200 | --enable-dialupman use dialup network classes" | |
201 | ac_help="$ac_help | |
202 | --enable-apple_ieee use the Apple IEEE codec" | |
203 | ac_help="$ac_help | |
204 | --enable-timer use wxTimer class" | |
205 | ac_help="$ac_help | |
206 | --enable-wave use wxWave class" | |
207 | ac_help="$ac_help | |
208 | --enable-fraction use wxFraction class" | |
209 | ac_help="$ac_help | |
210 | --enable-dynlib use wxLibrary class for DLL loading" | |
211 | ac_help="$ac_help | |
212 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
213 | ac_help="$ac_help | |
214 | --enable-longlong use wxLongLong class" | |
215 | ac_help="$ac_help | |
216 | --enable-geometry use geometry class" | |
217 | ac_help="$ac_help | |
218 | --enable-log use logging system" | |
219 | ac_help="$ac_help | |
220 | --enable-streams use wxStream etc classes" | |
221 | ac_help="$ac_help | |
222 | --enable-file use wxFile classes" | |
223 | ac_help="$ac_help | |
224 | --enable-ffile use wxFFile classes" | |
225 | ac_help="$ac_help | |
226 | --enable-textbuf use wxTextBuffer class" | |
227 | ac_help="$ac_help | |
228 | --enable-textfile use wxTextFile class" | |
229 | ac_help="$ac_help | |
230 | --enable-fontmap use font encodings conversion classes" | |
231 | ac_help="$ac_help | |
232 | --enable-unicode compile wxString with Unicode support" | |
233 | ac_help="$ac_help | |
234 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
235 | ac_help="$ac_help | |
236 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
237 | ac_help="$ac_help | |
238 | --enable-std_iostreams use standard C++ stream classes" | |
239 | ac_help="$ac_help | |
240 | --enable-filesystem use virtual file systems classes" | |
241 | ac_help="$ac_help | |
242 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
243 | ac_help="$ac_help | |
244 | --enable-fs_zip use virtual ZIP filesystems" | |
245 | ac_help="$ac_help | |
246 | --enable-zipstream use wxZipInputStream" | |
247 | ac_help="$ac_help | |
248 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" | |
249 | ac_help="$ac_help | |
250 | --enable-snglinst use wxSingleInstanceChecker class" | |
251 | ac_help="$ac_help | |
252 | --enable-mimetype use wxMimeTypesManager" | |
253 | ac_help="$ac_help | |
254 | --enable-sysoptions use wxSystemOptions" | |
255 | ac_help="$ac_help | |
256 | --enable-url use wxURL class" | |
257 | ac_help="$ac_help | |
258 | --enable-protocol use wxProtocol class" | |
259 | ac_help="$ac_help | |
260 | --enable-protocol-http HTTP support in wxProtocol" | |
261 | ac_help="$ac_help | |
262 | --enable-protocol-ftp FTP support in wxProtocol" | |
263 | ac_help="$ac_help | |
264 | --enable-protocol-file FILE support in wxProtocol" | |
265 | ac_help="$ac_help | |
266 | --enable-threads use threads" | |
267 | ac_help="$ac_help | |
268 | --enable-docview use document view architecture" | |
269 | ac_help="$ac_help | |
270 | --enable-help use help subsystem" | |
271 | ac_help="$ac_help | |
272 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
273 | ac_help="$ac_help | |
274 | --enable-html use wxHTML sub-library" | |
275 | ac_help="$ac_help | |
276 | --enable-htmlhelp use wxHTML-based help" | |
277 | ac_help="$ac_help | |
278 | --enable-constraints use layout-constraints system" | |
279 | ac_help="$ac_help | |
280 | --enable-printarch use printing architecture" | |
281 | ac_help="$ac_help | |
282 | --enable-mdi use multiple document interface architecture" | |
283 | ac_help="$ac_help | |
284 | --enable-loggui use standard GUI logger" | |
285 | ac_help="$ac_help | |
286 | --enable-logwin use wxLogWindow" | |
287 | ac_help="$ac_help | |
288 | --enable-logdialog use wxLogDialog" | |
289 | ac_help="$ac_help | |
290 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
291 | ac_help="$ac_help | |
292 | --enable-prologio use Prolog IO library" | |
293 | ac_help="$ac_help | |
294 | --enable-resources use wxWindows resources" | |
295 | ac_help="$ac_help | |
296 | --enable-xresources use X resources for save (default for gtk+)" | |
297 | ac_help="$ac_help | |
298 | --enable-clipboard use wxClipboard class" | |
299 | ac_help="$ac_help | |
300 | --enable-dnd use Drag'n'Drop classes" | |
301 | ac_help="$ac_help | |
302 | --enable-metafile use win32 metafiles" | |
303 | ac_help="$ac_help | |
304 | --enable-treelayout use wxTreeLayout class" | |
305 | ac_help="$ac_help | |
306 | --enable-controls use all usual controls" | |
307 | ac_help="$ac_help | |
308 | --enable-accel use accelerators" | |
309 | ac_help="$ac_help | |
310 | --enable-button use wxButton class" | |
311 | ac_help="$ac_help | |
312 | --enable-bmpbutton use wxBitmapButton class" | |
313 | ac_help="$ac_help | |
314 | --enable-calendar use wxCalendarCtrl class" | |
315 | ac_help="$ac_help | |
316 | --enable-caret use wxCaret class" | |
317 | ac_help="$ac_help | |
318 | --enable-checkbox use wxCheckBox class" | |
319 | ac_help="$ac_help | |
320 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
321 | ac_help="$ac_help | |
322 | --enable-choice use wxChoice class" | |
323 | ac_help="$ac_help | |
324 | --enable-combobox use wxComboBox class" | |
325 | ac_help="$ac_help | |
326 | --enable-display use wxDisplay class" | |
327 | ac_help="$ac_help | |
328 | --enable-gauge use wxGauge class" | |
329 | ac_help="$ac_help | |
330 | --enable-grid use wxGrid class" | |
331 | ac_help="$ac_help | |
332 | --enable-newgrid use new wxGrid class" | |
333 | ac_help="$ac_help | |
334 | --enable-imaglist use wxImageList class" | |
335 | ac_help="$ac_help | |
336 | --enable-listbox use wxListBox class" | |
337 | ac_help="$ac_help | |
338 | --enable-listctrl use wxListCtrl class" | |
339 | ac_help="$ac_help | |
340 | --enable-notebook use wxNotebook class" | |
341 | ac_help="$ac_help | |
342 | --enable-propsheet use wxPropertySheet class" | |
343 | ac_help="$ac_help | |
344 | --enable-radiobox use wxRadioBox class" | |
345 | ac_help="$ac_help | |
346 | --enable-radiobtn use wxRadioButton class" | |
347 | ac_help="$ac_help | |
348 | --enable-sash use wxSashWindow class" | |
349 | ac_help="$ac_help | |
350 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
351 | ac_help="$ac_help | |
352 | --enable-slider use wxSlider class" | |
353 | ac_help="$ac_help | |
354 | --enable-spinbtn use wxSpinButton class" | |
355 | ac_help="$ac_help | |
356 | --enable-spinctrl use wxSpinCtrl class" | |
357 | ac_help="$ac_help | |
358 | --enable-splitter use wxSplitterWindow class" | |
359 | ac_help="$ac_help | |
360 | --enable-statbmp use wxStaticBitmap class" | |
361 | ac_help="$ac_help | |
362 | --enable-statbox use wxStaticBox class" | |
363 | ac_help="$ac_help | |
364 | --enable-statline use wxStaticLine class" | |
365 | ac_help="$ac_help | |
366 | --enable-stattext use wxStaticText class" | |
367 | ac_help="$ac_help | |
368 | --enable-statusbar use wxStatusBar class" | |
369 | ac_help="$ac_help | |
370 | --enable-tabdialog use wxTabControl class" | |
371 | ac_help="$ac_help | |
372 | --enable-textctrl use wxTextCtrl class" | |
373 | ac_help="$ac_help | |
374 | --enable-togglebtn use wxToggleButton class" | |
375 | ac_help="$ac_help | |
376 | --enable-toolbar use wxToolBar class" | |
377 | ac_help="$ac_help | |
378 | --enable-tbarnative use native wxToolBar class" | |
379 | ac_help="$ac_help | |
380 | --enable-tbarsmpl use wxToolBarSimple class" | |
381 | ac_help="$ac_help | |
382 | --enable-treectrl use wxTreeCtrl class" | |
383 | ac_help="$ac_help | |
384 | --enable-tipwindow use wxTipWindow class" | |
385 | ac_help="$ac_help | |
386 | --enable-popupwin use wxPopUpWindow class" | |
387 | ac_help="$ac_help | |
388 | --enable-commondlg use all common dialogs" | |
389 | ac_help="$ac_help | |
390 | --enable-choicedlg use wxChoiceDialog" | |
391 | ac_help="$ac_help | |
392 | --enable-coldlg use wxColourDialog" | |
393 | ac_help="$ac_help | |
394 | --enable-filedlg use wxFileDialog" | |
395 | ac_help="$ac_help | |
396 | --enable-finddlg use wxFindReplaceDialog" | |
397 | ac_help="$ac_help | |
398 | --enable-fontdlg use wxFontDialog" | |
399 | ac_help="$ac_help | |
400 | --enable-dirdlg use wxDirDialog" | |
401 | ac_help="$ac_help | |
402 | --enable-msgdlg use wxMessageDialog" | |
403 | ac_help="$ac_help | |
404 | --enable-numberdlg use wxNumberEntryDialog" | |
405 | ac_help="$ac_help | |
406 | --enable-splash use wxSplashScreen" | |
407 | ac_help="$ac_help | |
408 | --enable-textdlg use wxTextDialog" | |
409 | ac_help="$ac_help | |
410 | --enable-tipdlg use startup tips" | |
411 | ac_help="$ac_help | |
412 | --enable-progressdlg use wxProgressDialog" | |
413 | ac_help="$ac_help | |
414 | --enable-wizarddlg use wxWizard" | |
415 | ac_help="$ac_help | |
416 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" | |
417 | ac_help="$ac_help | |
418 | --enable-miniframe use wxMiniFrame class" | |
419 | ac_help="$ac_help | |
420 | --enable-tooltips use wxToolTip class" | |
421 | ac_help="$ac_help | |
422 | --enable-splines use spline drawing code" | |
423 | ac_help="$ac_help | |
424 | --enable-validators use wxValidator and derived classes" | |
425 | ac_help="$ac_help | |
426 | --enable-busyinfo use wxBusyInfo" | |
427 | ac_help="$ac_help | |
428 | --enable-joystick use wxJoystick (Linux only)" | |
429 | ac_help="$ac_help | |
430 | --enable-metafiles use wxMetaFile (Windows only)" | |
431 | ac_help="$ac_help | |
432 | --enable-dragimage use wxDragImage" | |
433 | ac_help="$ac_help | |
434 | --enable-palette use wxPalette class" | |
435 | ac_help="$ac_help | |
436 | --enable-image use wxImage class" | |
437 | ac_help="$ac_help | |
438 | --enable-gif use gif images (GIF file format)" | |
439 | ac_help="$ac_help | |
440 | --enable-pcx use pcx images (PCX file format)" | |
441 | ac_help="$ac_help | |
442 | --enable-iff use iff images (IFF file format)" | |
443 | ac_help="$ac_help | |
444 | --enable-pnm use pnm images (PNM file format)" | |
445 | ac_help="$ac_help | |
446 | --enable-xpm use xpm images (XPM file format)" | |
447 | ac_help="$ac_help | |
448 | --enable-icocur use Windows ICO and CUR formats" | |
449 | ac_help="$ac_help | |
450 | --disable-largefile omit support for large files" | |
451 | ac_help="$ac_help | |
452 | --disable-gtktest do not try to compile and run a test GTK+ program" | |
453 | ac_help="$ac_help | |
454 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
455 | ac_help="$ac_help | |
456 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
457 | ac_help="$ac_help | |
458 | --disable-gtktest Do not try to compile and run a test GTK program" | |
459 | ac_help="$ac_help | |
460 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
461 | ac_help="$ac_help | |
462 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
463 | ac_help="$ac_help | |
464 | --disable-gtktest Do not try to compile and run a test GTK program" | |
465 | ac_help="$ac_help | |
466 | --with-x use the X Window System" | |
467 | ac_help="$ac_help | |
468 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
469 | ||
470 | # Initialize some variables set by options. | |
471 | # The variables have the same names as the options, with | |
472 | # dashes changed to underlines. | |
473 | build=NONE | |
474 | cache_file=./config.cache | |
475 | exec_prefix=NONE | |
476 | host=NONE | |
477 | no_create= | |
478 | nonopt=NONE | |
479 | no_recursion= | |
480 | prefix=NONE | |
481 | program_prefix=NONE | |
482 | program_suffix=NONE | |
483 | program_transform_name=s,x,x, | |
484 | silent= | |
485 | site= | |
486 | srcdir= | |
487 | target=NONE | |
488 | verbose= | |
489 | x_includes=NONE | |
490 | x_libraries=NONE | |
491 | bindir='${exec_prefix}/bin' | |
492 | sbindir='${exec_prefix}/sbin' | |
493 | libexecdir='${exec_prefix}/libexec' | |
494 | datadir='${prefix}/share' | |
495 | sysconfdir='${prefix}/etc' | |
496 | sharedstatedir='${prefix}/com' | |
497 | localstatedir='${prefix}/var' | |
498 | libdir='${exec_prefix}/lib' | |
499 | includedir='${prefix}/include' | |
500 | oldincludedir='/usr/include' | |
501 | infodir='${prefix}/info' | |
502 | mandir='${prefix}/man' | |
503 | ||
504 | # Initialize some other variables. | |
505 | subdirs= | |
506 | MFLAGS= MAKEFLAGS= | |
507 | SHELL=${CONFIG_SHELL-/bin/sh} | |
508 | # Maximum number of lines to put in a shell here document. | |
509 | ac_max_here_lines=12 | |
510 | ||
511 | ac_prev= | |
512 | for ac_option | |
513 | do | |
514 | ||
515 | # If the previous option needs an argument, assign it. | |
516 | if test -n "$ac_prev"; then | |
517 | eval "$ac_prev=\$ac_option" | |
518 | ac_prev= | |
519 | continue | |
520 | fi | |
521 | ||
522 | case "$ac_option" in | |
523 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
524 | *) ac_optarg= ;; | |
525 | esac | |
526 | ||
527 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
528 | ||
529 | case "$ac_option" in | |
530 | ||
531 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
532 | ac_prev=bindir ;; | |
533 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
534 | bindir="$ac_optarg" ;; | |
535 | ||
536 | -build | --build | --buil | --bui | --bu) | |
537 | ac_prev=build ;; | |
538 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
539 | build="$ac_optarg" ;; | |
540 | ||
541 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
542 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
543 | ac_prev=cache_file ;; | |
544 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
545 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
546 | cache_file="$ac_optarg" ;; | |
547 | ||
548 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
549 | ac_prev=datadir ;; | |
550 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
551 | | --da=*) | |
552 | datadir="$ac_optarg" ;; | |
553 | ||
554 | -disable-* | --disable-*) | |
555 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
556 | # Reject names that are not valid shell variable names. | |
557 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
558 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
559 | fi | |
560 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
561 | eval "enable_${ac_feature}=no" ;; | |
562 | ||
563 | -enable-* | --enable-*) | |
564 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
565 | # Reject names that are not valid shell variable names. | |
566 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
567 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
568 | fi | |
569 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
570 | case "$ac_option" in | |
571 | *=*) ;; | |
572 | *) ac_optarg=yes ;; | |
573 | esac | |
574 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
575 | ||
576 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
577 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
578 | | --exec | --exe | --ex) | |
579 | ac_prev=exec_prefix ;; | |
580 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
581 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
582 | | --exec=* | --exe=* | --ex=*) | |
583 | exec_prefix="$ac_optarg" ;; | |
584 | ||
585 | -gas | --gas | --ga | --g) | |
586 | # Obsolete; use --with-gas. | |
587 | with_gas=yes ;; | |
588 | ||
589 | -help | --help | --hel | --he) | |
590 | # Omit some internal or obsolete options to make the list less imposing. | |
591 | # This message is too long to be a string in the A/UX 3.1 sh. | |
592 | cat << EOF | |
593 | Usage: configure [options] [host] | |
594 | Options: [defaults in brackets after descriptions] | |
595 | Configuration: | |
596 | --cache-file=FILE cache test results in FILE | |
597 | --help print this message | |
598 | --no-create do not create output files | |
599 | --quiet, --silent do not print \`checking...' messages | |
600 | --version print the version of autoconf that created configure | |
601 | Directory and file names: | |
602 | --prefix=PREFIX install architecture-independent files in PREFIX | |
603 | [$ac_default_prefix] | |
604 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
605 | [same as prefix] | |
606 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
607 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
608 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
609 | --datadir=DIR read-only architecture-independent data in DIR | |
610 | [PREFIX/share] | |
611 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
612 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
613 | [PREFIX/com] | |
614 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
615 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
616 | --includedir=DIR C header files in DIR [PREFIX/include] | |
617 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
618 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
619 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
620 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
621 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
622 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
623 | --program-transform-name=PROGRAM | |
624 | run sed PROGRAM on installed program names | |
625 | EOF | |
626 | cat << EOF | |
627 | Host type: | |
628 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
629 | --host=HOST configure for HOST [guessed] | |
630 | --target=TARGET configure for TARGET [TARGET=HOST] | |
631 | Features and packages: | |
632 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
633 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
634 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
635 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
636 | --x-includes=DIR X include files are in DIR | |
637 | --x-libraries=DIR X library files are in DIR | |
638 | EOF | |
639 | if test -n "$ac_help"; then | |
640 | echo "--enable and --with options recognized:$ac_help" | |
641 | fi | |
642 | exit 0 ;; | |
643 | ||
644 | -host | --host | --hos | --ho) | |
645 | ac_prev=host ;; | |
646 | -host=* | --host=* | --hos=* | --ho=*) | |
647 | host="$ac_optarg" ;; | |
648 | ||
649 | -includedir | --includedir | --includedi | --included | --include \ | |
650 | | --includ | --inclu | --incl | --inc) | |
651 | ac_prev=includedir ;; | |
652 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
653 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
654 | includedir="$ac_optarg" ;; | |
655 | ||
656 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
657 | ac_prev=infodir ;; | |
658 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
659 | infodir="$ac_optarg" ;; | |
660 | ||
661 | -libdir | --libdir | --libdi | --libd) | |
662 | ac_prev=libdir ;; | |
663 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
664 | libdir="$ac_optarg" ;; | |
665 | ||
666 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
667 | | --libexe | --libex | --libe) | |
668 | ac_prev=libexecdir ;; | |
669 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
670 | | --libexe=* | --libex=* | --libe=*) | |
671 | libexecdir="$ac_optarg" ;; | |
672 | ||
673 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
674 | | --localstate | --localstat | --localsta | --localst \ | |
675 | | --locals | --local | --loca | --loc | --lo) | |
676 | ac_prev=localstatedir ;; | |
677 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
678 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
679 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
680 | localstatedir="$ac_optarg" ;; | |
681 | ||
682 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
683 | ac_prev=mandir ;; | |
684 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
685 | mandir="$ac_optarg" ;; | |
686 | ||
687 | -nfp | --nfp | --nf) | |
688 | # Obsolete; use --without-fp. | |
689 | with_fp=no ;; | |
690 | ||
691 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
692 | | --no-cr | --no-c) | |
693 | no_create=yes ;; | |
694 | ||
695 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
696 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
697 | no_recursion=yes ;; | |
698 | ||
699 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
700 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
701 | | --oldin | --oldi | --old | --ol | --o) | |
702 | ac_prev=oldincludedir ;; | |
703 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
704 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
705 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
706 | oldincludedir="$ac_optarg" ;; | |
707 | ||
708 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
709 | ac_prev=prefix ;; | |
710 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
711 | prefix="$ac_optarg" ;; | |
712 | ||
713 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
714 | | --program-pre | --program-pr | --program-p) | |
715 | ac_prev=program_prefix ;; | |
716 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
717 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
718 | program_prefix="$ac_optarg" ;; | |
719 | ||
720 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
721 | | --program-suf | --program-su | --program-s) | |
722 | ac_prev=program_suffix ;; | |
723 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
724 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
725 | program_suffix="$ac_optarg" ;; | |
726 | ||
727 | -program-transform-name | --program-transform-name \ | |
728 | | --program-transform-nam | --program-transform-na \ | |
729 | | --program-transform-n | --program-transform- \ | |
730 | | --program-transform | --program-transfor \ | |
731 | | --program-transfo | --program-transf \ | |
732 | | --program-trans | --program-tran \ | |
733 | | --progr-tra | --program-tr | --program-t) | |
734 | ac_prev=program_transform_name ;; | |
735 | -program-transform-name=* | --program-transform-name=* \ | |
736 | | --program-transform-nam=* | --program-transform-na=* \ | |
737 | | --program-transform-n=* | --program-transform-=* \ | |
738 | | --program-transform=* | --program-transfor=* \ | |
739 | | --program-transfo=* | --program-transf=* \ | |
740 | | --program-trans=* | --program-tran=* \ | |
741 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
742 | program_transform_name="$ac_optarg" ;; | |
743 | ||
744 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
745 | | -silent | --silent | --silen | --sile | --sil) | |
746 | silent=yes ;; | |
747 | ||
748 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
749 | ac_prev=sbindir ;; | |
750 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
751 | | --sbi=* | --sb=*) | |
752 | sbindir="$ac_optarg" ;; | |
753 | ||
754 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
755 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
756 | | --sharedst | --shareds | --shared | --share | --shar \ | |
757 | | --sha | --sh) | |
758 | ac_prev=sharedstatedir ;; | |
759 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
760 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
761 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
762 | | --sha=* | --sh=*) | |
763 | sharedstatedir="$ac_optarg" ;; | |
764 | ||
765 | -site | --site | --sit) | |
766 | ac_prev=site ;; | |
767 | -site=* | --site=* | --sit=*) | |
768 | site="$ac_optarg" ;; | |
769 | ||
770 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
771 | ac_prev=srcdir ;; | |
772 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
773 | srcdir="$ac_optarg" ;; | |
774 | ||
775 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
776 | | --syscon | --sysco | --sysc | --sys | --sy) | |
777 | ac_prev=sysconfdir ;; | |
778 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
779 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
780 | sysconfdir="$ac_optarg" ;; | |
781 | ||
782 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
783 | ac_prev=target ;; | |
784 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
785 | target="$ac_optarg" ;; | |
786 | ||
787 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
788 | verbose=yes ;; | |
789 | ||
790 | -version | --version | --versio | --versi | --vers) | |
791 | echo "configure generated by autoconf version 2.13" | |
792 | exit 0 ;; | |
793 | ||
794 | -with-* | --with-*) | |
795 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
796 | # Reject names that are not valid shell variable names. | |
797 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
798 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
799 | fi | |
800 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
801 | case "$ac_option" in | |
802 | *=*) ;; | |
803 | *) ac_optarg=yes ;; | |
804 | esac | |
805 | eval "with_${ac_package}='$ac_optarg'" ;; | |
806 | ||
807 | -without-* | --without-*) | |
808 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
809 | # Reject names that are not valid shell variable names. | |
810 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
811 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
812 | fi | |
813 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
814 | eval "with_${ac_package}=no" ;; | |
815 | ||
816 | --x) | |
817 | # Obsolete; use --with-x. | |
818 | with_x=yes ;; | |
819 | ||
820 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
821 | | --x-incl | --x-inc | --x-in | --x-i) | |
822 | ac_prev=x_includes ;; | |
823 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
824 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
825 | x_includes="$ac_optarg" ;; | |
826 | ||
827 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
828 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
829 | ac_prev=x_libraries ;; | |
830 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
831 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
832 | x_libraries="$ac_optarg" ;; | |
833 | ||
834 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
835 | ;; | |
836 | ||
837 | *) | |
838 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
839 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
840 | fi | |
841 | if test "x$nonopt" != xNONE; then | |
842 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
843 | fi | |
844 | nonopt="$ac_option" | |
845 | ;; | |
846 | ||
847 | esac | |
848 | done | |
849 | ||
850 | if test -n "$ac_prev"; then | |
851 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
852 | fi | |
853 | ||
854 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
855 | ||
856 | # File descriptor usage: | |
857 | # 0 standard input | |
858 | # 1 file creation | |
859 | # 2 errors and warnings | |
860 | # 3 some systems may open it to /dev/tty | |
861 | # 4 used on the Kubota Titan | |
862 | # 6 checking for... messages and results | |
863 | # 5 compiler messages saved in config.log | |
864 | if test "$silent" = yes; then | |
865 | exec 6>/dev/null | |
866 | else | |
867 | exec 6>&1 | |
868 | fi | |
869 | exec 5>./config.log | |
870 | ||
871 | echo "\ | |
872 | This file contains any messages produced by compilers while | |
873 | running configure, to aid debugging if configure makes a mistake. | |
874 | " 1>&5 | |
875 | ||
876 | # Strip out --no-create and --no-recursion so they do not pile up. | |
877 | # Also quote any args containing shell metacharacters. | |
878 | ac_configure_args= | |
879 | for ac_arg | |
880 | do | |
881 | case "$ac_arg" in | |
882 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
883 | | --no-cr | --no-c) ;; | |
884 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
885 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
886 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
887 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
888 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
889 | esac | |
890 | done | |
891 | ||
892 | # NLS nuisances. | |
893 | # Only set these to C if already set. These must not be set unconditionally | |
894 | # because not all systems understand e.g. LANG=C (notably SCO). | |
895 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
896 | # Non-C LC_CTYPE values break the ctype check. | |
897 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
898 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
899 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
900 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
901 | ||
902 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
903 | rm -rf conftest* confdefs.h | |
904 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
905 | echo > confdefs.h | |
906 | ||
907 | # A filename unique to this package, relative to the directory that | |
908 | # configure is in, which we can look for to find out if srcdir is correct. | |
909 | ac_unique_file=wx-config.in | |
910 | ||
911 | # Find the source files, if location was not specified. | |
912 | if test -z "$srcdir"; then | |
913 | ac_srcdir_defaulted=yes | |
914 | # Try the directory containing this script, then its parent. | |
915 | ac_prog=$0 | |
916 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
917 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
918 | srcdir=$ac_confdir | |
919 | if test ! -r $srcdir/$ac_unique_file; then | |
920 | srcdir=.. | |
921 | fi | |
922 | else | |
923 | ac_srcdir_defaulted=no | |
924 | fi | |
925 | if test ! -r $srcdir/$ac_unique_file; then | |
926 | if test "$ac_srcdir_defaulted" = yes; then | |
927 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
928 | else | |
929 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
930 | fi | |
931 | fi | |
932 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
933 | ||
934 | # Prefer explicitly selected file to automatically selected ones. | |
935 | if test -z "$CONFIG_SITE"; then | |
936 | if test "x$prefix" != xNONE; then | |
937 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
938 | else | |
939 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
940 | fi | |
941 | fi | |
942 | for ac_site_file in $CONFIG_SITE; do | |
943 | if test -r "$ac_site_file"; then | |
944 | echo "loading site script $ac_site_file" | |
945 | . "$ac_site_file" | |
946 | fi | |
947 | done | |
948 | ||
949 | if test -r "$cache_file"; then | |
950 | echo "loading cache $cache_file" | |
951 | . $cache_file | |
952 | else | |
953 | echo "creating cache $cache_file" | |
954 | > $cache_file | |
955 | fi | |
956 | ||
957 | ac_ext=c | |
958 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
959 | ac_cpp='$CPP $CPPFLAGS' | |
960 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
961 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
962 | cross_compiling=$ac_cv_prog_cc_cross | |
963 | ||
964 | ac_exeext= | |
965 | ac_objext=o | |
966 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
967 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
968 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
969 | ac_n= ac_c=' | |
970 | ' ac_t=' ' | |
971 | else | |
972 | ac_n=-n ac_c= ac_t= | |
973 | fi | |
974 | else | |
975 | ac_n= ac_c='\c' ac_t= | |
976 | fi | |
977 | ||
978 | ||
979 | ||
980 | ac_aux_dir= | |
981 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
982 | if test -f $ac_dir/install-sh; then | |
983 | ac_aux_dir=$ac_dir | |
984 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
985 | break | |
986 | elif test -f $ac_dir/install.sh; then | |
987 | ac_aux_dir=$ac_dir | |
988 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
989 | break | |
990 | fi | |
991 | done | |
992 | if test -z "$ac_aux_dir"; then | |
993 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
994 | fi | |
995 | ac_config_guess=$ac_aux_dir/config.guess | |
996 | ac_config_sub=$ac_aux_dir/config.sub | |
997 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
998 | ||
999 | ||
1000 | # Do some error checking and defaulting for the host and target type. | |
1001 | # The inputs are: | |
1002 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
1003 | # | |
1004 | # The rules are: | |
1005 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
1006 | # same time. | |
1007 | # 2. Host defaults to nonopt. | |
1008 | # 3. If nonopt is not specified, then host defaults to the current host, | |
1009 | # as determined by config.guess. | |
1010 | # 4. Target and build default to nonopt. | |
1011 | # 5. If nonopt is not specified, then target and build default to host. | |
1012 | ||
1013 | # The aliases save the names the user supplied, while $host etc. | |
1014 | # will get canonicalized. | |
1015 | case $host---$target---$nonopt in | |
1016 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
1017 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
1018 | esac | |
1019 | ||
1020 | ||
1021 | # Make sure we can run config.sub. | |
1022 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1023 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1024 | fi | |
1025 | ||
1026 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
1027 | echo "configure:1028: checking host system type" >&5 | |
1028 | ||
1029 | host_alias=$host | |
1030 | case "$host_alias" in | |
1031 | NONE) | |
1032 | case $nonopt in | |
1033 | NONE) | |
1034 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1035 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1036 | fi ;; | |
1037 | *) host_alias=$nonopt ;; | |
1038 | esac ;; | |
1039 | esac | |
1040 | ||
1041 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1042 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1043 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1044 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1045 | echo "$ac_t""$host" 1>&6 | |
1046 | ||
1047 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
1048 | echo "configure:1049: checking target system type" >&5 | |
1049 | ||
1050 | target_alias=$target | |
1051 | case "$target_alias" in | |
1052 | NONE) | |
1053 | case $nonopt in | |
1054 | NONE) target_alias=$host_alias ;; | |
1055 | *) target_alias=$nonopt ;; | |
1056 | esac ;; | |
1057 | esac | |
1058 | ||
1059 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1060 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1061 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1062 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1063 | echo "$ac_t""$target" 1>&6 | |
1064 | ||
1065 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
1066 | echo "configure:1067: checking build system type" >&5 | |
1067 | ||
1068 | build_alias=$build | |
1069 | case "$build_alias" in | |
1070 | NONE) | |
1071 | case $nonopt in | |
1072 | NONE) build_alias=$host_alias ;; | |
1073 | *) build_alias=$nonopt ;; | |
1074 | esac ;; | |
1075 | esac | |
1076 | ||
1077 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1078 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1079 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1080 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1081 | echo "$ac_t""$build" 1>&6 | |
1082 | ||
1083 | test "$host_alias" != "$target_alias" && | |
1084 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1085 | NONENONEs,x,x, && | |
1086 | program_prefix=${target_alias}- | |
1087 | ||
1088 | ||
1089 | ||
1090 | WX_MAJOR_VERSION_NUMBER=2 | |
1091 | WX_MINOR_VERSION_NUMBER=5 | |
1092 | WX_RELEASE_NUMBER=0 | |
1093 | ||
1094 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
1095 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
1096 | ||
1097 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER | |
1098 | ||
1099 | WX_CURRENT=0 | |
1100 | WX_REVISION=0 | |
1101 | WX_AGE=0 | |
1102 | ||
1103 | ||
1104 | ||
1105 | USE_UNIX=1 | |
1106 | USE_WIN32=0 | |
1107 | USE_DOS=0 | |
1108 | USE_BEOS=0 | |
1109 | USE_MAC=0 | |
1110 | ||
1111 | USE_LINUX= | |
1112 | USE_SGI= | |
1113 | USE_HPUX= | |
1114 | USE_SYSV= | |
1115 | USE_SVR4= | |
1116 | USE_AIX= | |
1117 | USE_SUN= | |
1118 | USE_SOLARIS= | |
1119 | USE_SUNOS= | |
1120 | USE_ALPHA= | |
1121 | USE_OSF= | |
1122 | USE_BSD= | |
1123 | USE_DARWIN= | |
1124 | USE_FREEBSD= | |
1125 | USE_OPENBSD= | |
1126 | USE_NETBSD= | |
1127 | USE_VMS= | |
1128 | USE_ULTRIX= | |
1129 | USE_DATA_GENERAL= | |
1130 | ||
1131 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1132 | ||
1133 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1134 | ||
1135 | DEFAULT_wxUSE_GTK=0 | |
1136 | DEFAULT_wxUSE_MAC=0 | |
1137 | DEFAULT_wxUSE_MGL=0 | |
1138 | DEFAULT_wxUSE_MICROWIN=0 | |
1139 | DEFAULT_wxUSE_MOTIF=0 | |
1140 | DEFAULT_wxUSE_MSW=0 | |
1141 | DEFAULT_wxUSE_PM=0 | |
1142 | DEFAULT_wxUSE_X11=0 | |
1143 | ||
1144 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1145 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1146 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1147 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1148 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1149 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1150 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1151 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1152 | ||
1153 | PROGRAM_EXT= | |
1154 | SO_SUFFIX=so | |
1155 | ||
1156 | case "${host}" in | |
1157 | *-hp-hpux* ) | |
1158 | USE_HPUX=1 | |
1159 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1160 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1161 | SO_SUFFIX=sl | |
1162 | cat >> confdefs.h <<\EOF | |
1163 | #define __HPUX__ 1 | |
1164 | EOF | |
1165 | ||
1166 | ;; | |
1167 | *-*-linux* ) | |
1168 | USE_LINUX=1 | |
1169 | cat >> confdefs.h <<\EOF | |
1170 | #define __LINUX__ 1 | |
1171 | EOF | |
1172 | ||
1173 | TMP=`uname -m` | |
1174 | if test "x$TMP" = "xalpha"; then | |
1175 | USE_ALPHA=1 | |
1176 | cat >> confdefs.h <<\EOF | |
1177 | #define __ALPHA__ 1 | |
1178 | EOF | |
1179 | ||
1180 | fi | |
1181 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1182 | ;; | |
1183 | *-*-irix5* | *-*-irix6* ) | |
1184 | USE_SGI=1 | |
1185 | USE_SVR4=1 | |
1186 | cat >> confdefs.h <<\EOF | |
1187 | #define __SGI__ 1 | |
1188 | EOF | |
1189 | ||
1190 | cat >> confdefs.h <<\EOF | |
1191 | #define __SVR4__ 1 | |
1192 | EOF | |
1193 | ||
1194 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1195 | ;; | |
1196 | *-*-solaris2* ) | |
1197 | USE_SUN=1 | |
1198 | USE_SOLARIS=1 | |
1199 | USE_SVR4=1 | |
1200 | cat >> confdefs.h <<\EOF | |
1201 | #define __SUN__ 1 | |
1202 | EOF | |
1203 | ||
1204 | cat >> confdefs.h <<\EOF | |
1205 | #define __SOLARIS__ 1 | |
1206 | EOF | |
1207 | ||
1208 | cat >> confdefs.h <<\EOF | |
1209 | #define __SVR4__ 1 | |
1210 | EOF | |
1211 | ||
1212 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1213 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1214 | ;; | |
1215 | *-*-sunos4* ) | |
1216 | USE_SUN=1 | |
1217 | USE_SUNOS=1 | |
1218 | USE_BSD=1 | |
1219 | cat >> confdefs.h <<\EOF | |
1220 | #define __SUN__ 1 | |
1221 | EOF | |
1222 | ||
1223 | cat >> confdefs.h <<\EOF | |
1224 | #define __SUNOS__ 1 | |
1225 | EOF | |
1226 | ||
1227 | cat >> confdefs.h <<\EOF | |
1228 | #define __BSD__ 1 | |
1229 | EOF | |
1230 | ||
1231 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1232 | ;; | |
1233 | *-*-freebsd*) | |
1234 | USE_BSD=1 | |
1235 | USE_FREEBSD=1 | |
1236 | cat >> confdefs.h <<\EOF | |
1237 | #define __FREEBSD__ 1 | |
1238 | EOF | |
1239 | ||
1240 | cat >> confdefs.h <<\EOF | |
1241 | #define __BSD__ 1 | |
1242 | EOF | |
1243 | ||
1244 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1245 | ;; | |
1246 | *-*-openbsd*) | |
1247 | USE_BSD=1 | |
1248 | USE_OPENBSD=1 | |
1249 | cat >> confdefs.h <<\EOF | |
1250 | #define __OPENBSD__ 1 | |
1251 | EOF | |
1252 | ||
1253 | cat >> confdefs.h <<\EOF | |
1254 | #define __BSD__ 1 | |
1255 | EOF | |
1256 | ||
1257 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1258 | ;; | |
1259 | *-*-netbsd*) | |
1260 | USE_BSD=1 | |
1261 | USE_NETBSD=1 | |
1262 | cat >> confdefs.h <<\EOF | |
1263 | #define __NETBSD__ 1 | |
1264 | EOF | |
1265 | ||
1266 | cat >> confdefs.h <<\EOF | |
1267 | #define __BSD__ 1 | |
1268 | EOF | |
1269 | ||
1270 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1271 | ;; | |
1272 | *-*-osf* ) | |
1273 | USE_ALPHA=1 | |
1274 | USE_OSF=1 | |
1275 | cat >> confdefs.h <<\EOF | |
1276 | #define __ALPHA__ 1 | |
1277 | EOF | |
1278 | ||
1279 | cat >> confdefs.h <<\EOF | |
1280 | #define __OSF__ 1 | |
1281 | EOF | |
1282 | ||
1283 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1284 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1285 | ;; | |
1286 | *-*-dgux5* ) | |
1287 | USE_ALPHA=1 | |
1288 | USE_SVR4=1 | |
1289 | cat >> confdefs.h <<\EOF | |
1290 | #define __ALPHA__ 1 | |
1291 | EOF | |
1292 | ||
1293 | cat >> confdefs.h <<\EOF | |
1294 | #define __SVR4__ 1 | |
1295 | EOF | |
1296 | ||
1297 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1298 | ;; | |
1299 | *-*-sysv5* ) | |
1300 | USE_SYSV=1 | |
1301 | USE_SVR4=1 | |
1302 | cat >> confdefs.h <<\EOF | |
1303 | #define __SYSV__ 1 | |
1304 | EOF | |
1305 | ||
1306 | cat >> confdefs.h <<\EOF | |
1307 | #define __SVR4__ 1 | |
1308 | EOF | |
1309 | ||
1310 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1311 | ;; | |
1312 | *-*-aix* ) | |
1313 | USE_AIX=1 | |
1314 | USE_SYSV=1 | |
1315 | USE_SVR4=1 | |
1316 | SO_SUFFIX=a | |
1317 | cat >> confdefs.h <<\EOF | |
1318 | #define __AIX__ 1 | |
1319 | EOF | |
1320 | ||
1321 | cat >> confdefs.h <<\EOF | |
1322 | #define __SYSV__ 1 | |
1323 | EOF | |
1324 | ||
1325 | cat >> confdefs.h <<\EOF | |
1326 | #define __SVR4__ 1 | |
1327 | EOF | |
1328 | ||
1329 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1330 | ;; | |
1331 | ||
1332 | *-*-cygwin* | *-*-mingw32* ) | |
1333 | SO_SUFFIX=dll | |
1334 | PROGRAM_EXT=".exe" | |
1335 | RESCOMP=windres | |
1336 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1337 | ;; | |
1338 | ||
1339 | *-pc-msdosdjgpp ) | |
1340 | USE_UNIX=0 | |
1341 | USE_DOS=1 | |
1342 | cat >> confdefs.h <<\EOF | |
1343 | #define __DOS__ 1 | |
1344 | EOF | |
1345 | ||
1346 | PROGRAM_EXT=".exe" | |
1347 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1348 | LIBS="$LIBS -lstdc++" | |
1349 | ;; | |
1350 | ||
1351 | *-pc-os2_emx | *-pc-os2-emx ) | |
1352 | cat >> confdefs.h <<\EOF | |
1353 | #define __EMX__ 1 | |
1354 | EOF | |
1355 | ||
1356 | PROGRAM_EXT=".exe" | |
1357 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1358 | ;; | |
1359 | ||
1360 | powerpc-*-darwin* ) | |
1361 | USE_BSD=1 | |
1362 | USE_DARWIN=1 | |
1363 | SO_SUFFIX=dylib | |
1364 | cat >> confdefs.h <<\EOF | |
1365 | #define __BSD__ 1 | |
1366 | EOF | |
1367 | ||
1368 | cat >> confdefs.h <<\EOF | |
1369 | #define __DARWIN__ 1 | |
1370 | EOF | |
1371 | ||
1372 | cat >> confdefs.h <<\EOF | |
1373 | #define __POWERPC__ 1 | |
1374 | EOF | |
1375 | ||
1376 | cat >> confdefs.h <<\EOF | |
1377 | #define TARGET_CARBON 1 | |
1378 | EOF | |
1379 | ||
1380 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1381 | ;; | |
1382 | ||
1383 | *-*-beos* ) | |
1384 | USE_BEOS=1 | |
1385 | cat >> confdefs.h <<\EOF | |
1386 | #define __BEOS__ 1 | |
1387 | EOF | |
1388 | ||
1389 | ;; | |
1390 | ||
1391 | *) | |
1392 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
1393 | esac | |
1394 | ||
1395 | ||
1396 | ||
1397 | ||
1398 | wx_arg_cache_file="configarg.cache" | |
1399 | echo "loading argument cache $wx_arg_cache_file" | |
1400 | rm -f ${wx_arg_cache_file}.tmp | |
1401 | touch ${wx_arg_cache_file}.tmp | |
1402 | touch ${wx_arg_cache_file} | |
1403 | ||
1404 | ||
1405 | DEBUG_CONFIGURE=0 | |
1406 | if test $DEBUG_CONFIGURE = 1; then | |
1407 | DEFAULT_wxUSE_UNIVERSAL=no | |
1408 | ||
1409 | DEFAULT_wxUSE_NANOX=no | |
1410 | ||
1411 | DEFAULT_wxUSE_THREADS=yes | |
1412 | ||
1413 | DEFAULT_wxUSE_SHARED=yes | |
1414 | DEFAULT_wxUSE_SONAME=no | |
1415 | DEFAULT_wxUSE_OPTIMISE=no | |
1416 | DEFAULT_wxUSE_PROFILE=no | |
1417 | DEFAULT_wxUSE_NO_DEPS=no | |
1418 | DEFAULT_wxUSE_NO_RTTI=no | |
1419 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1420 | DEFAULT_wxUSE_PERMISSIVE=no | |
1421 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1422 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1423 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1424 | DEFAULT_wxUSE_MEM_TRACING=no | |
1425 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1426 | DEFAULT_wxUSE_DMALLOC=no | |
1427 | DEFAULT_wxUSE_PRECOMP=no | |
1428 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1429 | ||
1430 | DEFAULT_wxUSE_LOG=yes | |
1431 | DEFAULT_wxUSE_LOGWINDOW=no | |
1432 | DEFAULT_wxUSE_LOGGUI=no | |
1433 | DEFAULT_wxUSE_LOGDIALOG=no | |
1434 | ||
1435 | DEFAULT_wxUSE_GUI=yes | |
1436 | DEFAULT_wxUSE_CONTROLS=no | |
1437 | ||
1438 | DEFAULT_wxUSE_REGEX=no | |
1439 | DEFAULT_wxUSE_ZLIB=no | |
1440 | DEFAULT_wxUSE_LIBPNG=no | |
1441 | DEFAULT_wxUSE_LIBJPEG=no | |
1442 | DEFAULT_wxUSE_LIBTIFF=no | |
1443 | DEFAULT_wxUSE_ODBC=no | |
1444 | DEFAULT_wxUSE_OPENGL=no | |
1445 | ||
1446 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
1447 | DEFAULT_wxUSE_SNGLINST_CHECKER=no | |
1448 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1449 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
1450 | DEFAULT_wxUSE_DATETIME=no | |
1451 | DEFAULT_wxUSE_TIMEDATE=no | |
1452 | DEFAULT_wxUSE_TIMER=no | |
1453 | DEFAULT_wxUSE_STOPWATCH=no | |
1454 | DEFAULT_wxUSE_FILE=no | |
1455 | DEFAULT_wxUSE_FFILE=no | |
1456 | DEFAULT_wxUSE_TEXTBUFFER=no | |
1457 | DEFAULT_wxUSE_TEXTFILE=no | |
1458 | DEFAULT_wxUSE_WAVE=no | |
1459 | DEFAULT_wxUSE_INTL=no | |
1460 | DEFAULT_wxUSE_CONFIG=no | |
1461 | DEFAULT_wxUSE_FONTMAP=no | |
1462 | DEFAULT_wxUSE_STREAMS=no | |
1463 | DEFAULT_wxUSE_SOCKETS=no | |
1464 | DEFAULT_wxUSE_OLE=no | |
1465 | DEFAULT_wxUSE_DATAOBJ=no | |
1466 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1467 | DEFAULT_wxUSE_JOYSTICK=no | |
1468 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1469 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
1470 | DEFAULT_wxUSE_LONGLONG=no | |
1471 | DEFAULT_wxUSE_GEOMETRY=no | |
1472 | ||
1473 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1474 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1475 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1476 | ||
1477 | DEFAULT_wxUSE_X_RESOURCES=no | |
1478 | DEFAULT_wxUSE_CLIPBOARD=no | |
1479 | DEFAULT_wxUSE_TOOLTIPS=no | |
1480 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1481 | DEFAULT_wxUSE_DRAGIMAGE=no | |
1482 | DEFAULT_wxUSE_SPLINES=no | |
1483 | ||
1484 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1485 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1486 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1487 | ||
1488 | DEFAULT_wxUSE_PROLOGIO=no | |
1489 | DEFAULT_wxUSE_RESOURCES=no | |
1490 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1491 | DEFAULT_wxUSE_IPC=no | |
1492 | DEFAULT_wxUSE_HELP=no | |
1493 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
1494 | DEFAULT_wxUSE_WXHTML_HELP=no | |
1495 | DEFAULT_wxUSE_TREELAYOUT=no | |
1496 | DEFAULT_wxUSE_METAFILE=no | |
1497 | DEFAULT_wxUSE_MIMETYPE=no | |
1498 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
1499 | DEFAULT_wxUSE_PROTOCOL=no | |
1500 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1501 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1502 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1503 | DEFAULT_wxUSE_URL=no | |
1504 | ||
1505 | DEFAULT_wxUSE_COMMONDLGS=no | |
1506 | DEFAULT_wxUSE_CHOICEDLG=no | |
1507 | DEFAULT_wxUSE_COLOURDLG=no | |
1508 | DEFAULT_wxUSE_DIRDLG=no | |
1509 | DEFAULT_wxUSE_FILEDLG=no | |
1510 | DEFAULT_wxUSE_FINDREPLDLG=no | |
1511 | DEFAULT_wxUSE_FONTDLG=no | |
1512 | DEFAULT_wxUSE_MSGDLG=no | |
1513 | DEFAULT_wxUSE_NUMBERDLG=no | |
1514 | DEFAULT_wxUSE_TEXTDLG=no | |
1515 | DEFAULT_wxUSE_SPLASH=no | |
1516 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1517 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1518 | DEFAULT_wxUSE_WIZARDDLG=no | |
1519 | ||
1520 | DEFAULT_wxUSE_MENUS=no | |
1521 | DEFAULT_wxUSE_MINIFRAME=no | |
1522 | DEFAULT_wxUSE_HTML=no | |
1523 | DEFAULT_wxUSE_FILESYSTEM=no | |
1524 | DEFAULT_wxUSE_FS_INET=no | |
1525 | DEFAULT_wxUSE_FS_ZIP=no | |
1526 | DEFAULT_wxUSE_BUSYINFO=no | |
1527 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1528 | DEFAULT_wxUSE_VALIDATORS=no | |
1529 | ||
1530 | DEFAULT_wxUSE_ACCEL=no | |
1531 | DEFAULT_wxUSE_BUTTON=no | |
1532 | DEFAULT_wxUSE_BMPBUTTON=no | |
1533 | DEFAULT_wxUSE_CALCTRL=no | |
1534 | DEFAULT_wxUSE_CARET=no | |
1535 | DEFAULT_wxUSE_CHECKBOX=no | |
1536 | DEFAULT_wxUSE_CHECKLST=no | |
1537 | DEFAULT_wxUSE_CHOICE=no | |
1538 | DEFAULT_wxUSE_COMBOBOX=no | |
1539 | DEFAULT_wxUSE_DISPLAY=no | |
1540 | DEFAULT_wxUSE_GAUGE=no | |
1541 | DEFAULT_wxUSE_GRID=no | |
1542 | DEFAULT_wxUSE_NEW_GRID=no | |
1543 | DEFAULT_wxUSE_IMAGLIST=no | |
1544 | DEFAULT_wxUSE_LISTBOX=no | |
1545 | DEFAULT_wxUSE_LISTCTRL=no | |
1546 | DEFAULT_wxUSE_NOTEBOOK=no | |
1547 | DEFAULT_wxUSE_PROPSHEET=no | |
1548 | DEFAULT_wxUSE_RADIOBOX=no | |
1549 | DEFAULT_wxUSE_RADIOBTN=no | |
1550 | DEFAULT_wxUSE_SASH=no | |
1551 | DEFAULT_wxUSE_SCROLLBAR=no | |
1552 | DEFAULT_wxUSE_SLIDER=no | |
1553 | DEFAULT_wxUSE_SPINBTN=no | |
1554 | DEFAULT_wxUSE_SPINCTRL=no | |
1555 | DEFAULT_wxUSE_SPLITTER=no | |
1556 | DEFAULT_wxUSE_STATBMP=no | |
1557 | DEFAULT_wxUSE_STATBOX=no | |
1558 | DEFAULT_wxUSE_STATLINE=no | |
1559 | DEFAULT_wxUSE_STATTEXT=no | |
1560 | DEFAULT_wxUSE_STATUSBAR=yes | |
1561 | DEFAULT_wxUSE_TABDIALOG=no | |
1562 | DEFAULT_wxUSE_TEXTCTRL=no | |
1563 | DEFAULT_wxUSE_TOGGLEBTN=no | |
1564 | DEFAULT_wxUSE_TOOLBAR=no | |
1565 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
1566 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
1567 | DEFAULT_wxUSE_TREECTRL=no | |
1568 | DEFAULT_wxUSE_POPUPWIN=no | |
1569 | DEFAULT_wxUSE_TIPWINDOW=no | |
1570 | ||
1571 | DEFAULT_wxUSE_UNICODE=no | |
1572 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
1573 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1574 | ||
1575 | DEFAULT_wxUSE_PALETTE=no | |
1576 | DEFAULT_wxUSE_IMAGE=no | |
1577 | DEFAULT_wxUSE_GIF=no | |
1578 | DEFAULT_wxUSE_PCX=no | |
1579 | DEFAULT_wxUSE_PNM=no | |
1580 | DEFAULT_wxUSE_IFF=no | |
1581 | DEFAULT_wxUSE_XPM=no | |
1582 | DEFAULT_wxUSE_ICO_CUR=no | |
1583 | else | |
1584 | DEFAULT_wxUSE_UNIVERSAL=no | |
1585 | ||
1586 | DEFAULT_wxUSE_NANOX=no | |
1587 | ||
1588 | DEFAULT_wxUSE_THREADS=yes | |
1589 | ||
1590 | DEFAULT_wxUSE_SHARED=yes | |
1591 | DEFAULT_wxUSE_SONAME=no | |
1592 | DEFAULT_wxUSE_OPTIMISE=yes | |
1593 | DEFAULT_wxUSE_PROFILE=no | |
1594 | DEFAULT_wxUSE_NO_DEPS=no | |
1595 | DEFAULT_wxUSE_NO_RTTI=no | |
1596 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1597 | DEFAULT_wxUSE_PERMISSIVE=no | |
1598 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1599 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1600 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1601 | DEFAULT_wxUSE_MEM_TRACING=no | |
1602 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1603 | DEFAULT_wxUSE_DMALLOC=no | |
1604 | DEFAULT_wxUSE_PRECOMP=no | |
1605 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1606 | ||
1607 | DEFAULT_wxUSE_LOG=yes | |
1608 | DEFAULT_wxUSE_LOGWINDOW=yes | |
1609 | DEFAULT_wxUSE_LOGGUI=yes | |
1610 | DEFAULT_wxUSE_LOGDIALOG=yes | |
1611 | ||
1612 | DEFAULT_wxUSE_GUI=yes | |
1613 | ||
1614 | DEFAULT_wxUSE_REGEX=yes | |
1615 | DEFAULT_wxUSE_ZLIB=yes | |
1616 | DEFAULT_wxUSE_LIBPNG=yes | |
1617 | DEFAULT_wxUSE_LIBJPEG=yes | |
1618 | DEFAULT_wxUSE_LIBTIFF=yes | |
1619 | DEFAULT_wxUSE_ODBC=no | |
1620 | DEFAULT_wxUSE_OPENGL=no | |
1621 | ||
1622 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
1623 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes | |
1624 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1625 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
1626 | DEFAULT_wxUSE_DATETIME=yes | |
1627 | DEFAULT_wxUSE_TIMEDATE=no | |
1628 | DEFAULT_wxUSE_TIMER=yes | |
1629 | DEFAULT_wxUSE_STOPWATCH=yes | |
1630 | DEFAULT_wxUSE_FILE=yes | |
1631 | DEFAULT_wxUSE_FFILE=yes | |
1632 | DEFAULT_wxUSE_TEXTBUFFER=yes | |
1633 | DEFAULT_wxUSE_TEXTFILE=yes | |
1634 | DEFAULT_wxUSE_WAVE=no | |
1635 | DEFAULT_wxUSE_INTL=yes | |
1636 | DEFAULT_wxUSE_CONFIG=yes | |
1637 | DEFAULT_wxUSE_FONTMAP=yes | |
1638 | DEFAULT_wxUSE_STREAMS=yes | |
1639 | DEFAULT_wxUSE_SOCKETS=yes | |
1640 | DEFAULT_wxUSE_OLE=yes | |
1641 | DEFAULT_wxUSE_DATAOBJ=yes | |
1642 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1643 | DEFAULT_wxUSE_JOYSTICK=yes | |
1644 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
1645 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
1646 | DEFAULT_wxUSE_LONGLONG=yes | |
1647 | DEFAULT_wxUSE_GEOMETRY=yes | |
1648 | ||
1649 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1650 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1651 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1652 | ||
1653 | DEFAULT_wxUSE_X_RESOURCES=no | |
1654 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1655 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1656 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1657 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
1658 | DEFAULT_wxUSE_SPLINES=yes | |
1659 | ||
1660 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1661 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1662 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1663 | ||
1664 | DEFAULT_wxUSE_PROLOGIO=no | |
1665 | DEFAULT_wxUSE_RESOURCES=no | |
1666 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1667 | DEFAULT_wxUSE_IPC=yes | |
1668 | DEFAULT_wxUSE_HELP=yes | |
1669 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
1670 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
1671 | DEFAULT_wxUSE_TREELAYOUT=yes | |
1672 | DEFAULT_wxUSE_METAFILE=yes | |
1673 | DEFAULT_wxUSE_MIMETYPE=yes | |
1674 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
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 | |
1680 | ||
1681 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1682 | DEFAULT_wxUSE_CHOICEDLG=yes | |
1683 | DEFAULT_wxUSE_COLOURDLG=yes | |
1684 | DEFAULT_wxUSE_DIRDLG=yes | |
1685 | DEFAULT_wxUSE_FILEDLG=yes | |
1686 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
1687 | DEFAULT_wxUSE_FONTDLG=yes | |
1688 | DEFAULT_wxUSE_MSGDLG=yes | |
1689 | DEFAULT_wxUSE_NUMBERDLG=yes | |
1690 | DEFAULT_wxUSE_TEXTDLG=yes | |
1691 | DEFAULT_wxUSE_SPLASH=yes | |
1692 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1693 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1694 | DEFAULT_wxUSE_WIZARDDLG=yes | |
1695 | ||
1696 | DEFAULT_wxUSE_MENUS=yes | |
1697 | DEFAULT_wxUSE_MINIFRAME=yes | |
1698 | DEFAULT_wxUSE_HTML=yes | |
1699 | DEFAULT_wxUSE_FILESYSTEM=yes | |
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 | |
1707 | DEFAULT_wxUSE_BUTTON=yes | |
1708 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1709 | DEFAULT_wxUSE_CALCTRL=yes | |
1710 | DEFAULT_wxUSE_CARET=yes | |
1711 | DEFAULT_wxUSE_CHECKBOX=yes | |
1712 | DEFAULT_wxUSE_CHECKLST=yes | |
1713 | DEFAULT_wxUSE_CHOICE=yes | |
1714 | DEFAULT_wxUSE_COMBOBOX=yes | |
1715 | DEFAULT_wxUSE_DISPLAY=no | |
1716 | DEFAULT_wxUSE_GAUGE=yes | |
1717 | DEFAULT_wxUSE_GRID=yes | |
1718 | DEFAULT_wxUSE_NEW_GRID=yes | |
1719 | DEFAULT_wxUSE_IMAGLIST=yes | |
1720 | DEFAULT_wxUSE_LISTBOX=yes | |
1721 | DEFAULT_wxUSE_LISTCTRL=yes | |
1722 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1723 | DEFAULT_wxUSE_PROPSHEET=yes | |
1724 | DEFAULT_wxUSE_RADIOBOX=yes | |
1725 | DEFAULT_wxUSE_RADIOBTN=yes | |
1726 | DEFAULT_wxUSE_SASH=yes | |
1727 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1728 | DEFAULT_wxUSE_SLIDER=yes | |
1729 | DEFAULT_wxUSE_SPINBTN=yes | |
1730 | DEFAULT_wxUSE_SPINCTRL=yes | |
1731 | DEFAULT_wxUSE_SPLITTER=yes | |
1732 | DEFAULT_wxUSE_STATBMP=yes | |
1733 | DEFAULT_wxUSE_STATBOX=yes | |
1734 | DEFAULT_wxUSE_STATLINE=yes | |
1735 | DEFAULT_wxUSE_STATTEXT=yes | |
1736 | DEFAULT_wxUSE_STATUSBAR=yes | |
1737 | DEFAULT_wxUSE_TABDIALOG=no | |
1738 | DEFAULT_wxUSE_TEXTCTRL=yes | |
1739 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
1740 | DEFAULT_wxUSE_TOOLBAR=yes | |
1741 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
1742 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
1743 | DEFAULT_wxUSE_TREECTRL=yes | |
1744 | DEFAULT_wxUSE_POPUPWIN=yes | |
1745 | DEFAULT_wxUSE_TIPWINDOW=yes | |
1746 | ||
1747 | DEFAULT_wxUSE_UNICODE=no | |
1748 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
1749 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1750 | ||
1751 | DEFAULT_wxUSE_PALETTE=yes | |
1752 | DEFAULT_wxUSE_IMAGE=yes | |
1753 | DEFAULT_wxUSE_GIF=yes | |
1754 | DEFAULT_wxUSE_PCX=yes | |
1755 | DEFAULT_wxUSE_IFF=no | |
1756 | DEFAULT_wxUSE_PNM=yes | |
1757 | DEFAULT_wxUSE_XPM=yes | |
1758 | DEFAULT_wxUSE_ICO_CUR=yes | |
1759 | fi | |
1760 | ||
1761 | ||
1762 | ||
1763 | for toolkit in `echo $ALL_TOOLKITS`; do | |
1764 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
1765 | if test "x$LINE" != "x" ; then | |
1766 | has_toolkit_in_cache=1 | |
1767 | eval "DEFAULT_$LINE" | |
1768 | eval "CACHE_$toolkit=1" | |
1769 | fi | |
1770 | done | |
1771 | ||
1772 | ||
1773 | ||
1774 | enablestring= | |
1775 | echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6 | |
1776 | echo "configure:1777: checking for --${enablestring:-enable}-gui" >&5 | |
1777 | no_cache=0 | |
1778 | # Check whether --enable-gui or --disable-gui was given. | |
1779 | if test "${enable_gui+set}" = set; then | |
1780 | enableval="$enable_gui" | |
1781 | ||
1782 | if test "$enableval" = yes; then | |
1783 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1784 | else | |
1785 | ac_cv_use_gui='wxUSE_GUI=no' | |
1786 | fi | |
1787 | ||
1788 | else | |
1789 | ||
1790 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
1791 | if test "x$LINE" != x ; then | |
1792 | eval "DEFAULT_$LINE" | |
1793 | else | |
1794 | no_cache=1 | |
1795 | fi | |
1796 | ||
1797 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
1798 | ||
1799 | fi | |
1800 | ||
1801 | ||
1802 | eval "$ac_cv_use_gui" | |
1803 | if test "$no_cache" != 1; then | |
1804 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1805 | fi | |
1806 | ||
1807 | if test "$wxUSE_GUI" = yes; then | |
1808 | echo "$ac_t""yes" 1>&6 | |
1809 | else | |
1810 | echo "$ac_t""no" 1>&6 | |
1811 | fi | |
1812 | ||
1813 | ||
1814 | if test "$wxUSE_GUI" = "yes"; then | |
1815 | ||
1816 | ||
1817 | enablestring= | |
1818 | echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6 | |
1819 | echo "configure:1820: checking for --${enablestring:-enable}-universal" >&5 | |
1820 | no_cache=0 | |
1821 | # Check whether --enable-universal or --disable-universal was given. | |
1822 | if test "${enable_universal+set}" = set; then | |
1823 | enableval="$enable_universal" | |
1824 | ||
1825 | if test "$enableval" = yes; then | |
1826 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1827 | else | |
1828 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1829 | fi | |
1830 | ||
1831 | else | |
1832 | ||
1833 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1834 | if test "x$LINE" != x ; then | |
1835 | eval "DEFAULT_$LINE" | |
1836 | else | |
1837 | no_cache=1 | |
1838 | fi | |
1839 | ||
1840 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1841 | ||
1842 | fi | |
1843 | ||
1844 | ||
1845 | eval "$ac_cv_use_universal" | |
1846 | if test "$no_cache" != 1; then | |
1847 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1848 | fi | |
1849 | ||
1850 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1851 | echo "$ac_t""yes" 1>&6 | |
1852 | else | |
1853 | echo "$ac_t""no" 1>&6 | |
1854 | fi | |
1855 | ||
1856 | # Check whether --with-gtk or --without-gtk was given. | |
1857 | if test "${with_gtk+set}" = set; then | |
1858 | withval="$with_gtk" | |
1859 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
1860 | fi | |
1861 | ||
1862 | # Check whether --with-motif or --without-motif was given. | |
1863 | if test "${with_motif+set}" = set; then | |
1864 | withval="$with_motif" | |
1865 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
1866 | fi | |
1867 | ||
1868 | # Check whether --with-mac or --without-mac was given. | |
1869 | if test "${with_mac+set}" = set; then | |
1870 | withval="$with_mac" | |
1871 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
1872 | fi | |
1873 | ||
1874 | # Check whether --with-wine or --without-wine was given. | |
1875 | if test "${with_wine+set}" = set; then | |
1876 | withval="$with_wine" | |
1877 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
1878 | fi | |
1879 | ||
1880 | # Check whether --with-msw or --without-msw was given. | |
1881 | if test "${with_msw+set}" = set; then | |
1882 | withval="$with_msw" | |
1883 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
1884 | fi | |
1885 | ||
1886 | # Check whether --with-pm or --without-pm was given. | |
1887 | if test "${with_pm+set}" = set; then | |
1888 | withval="$with_pm" | |
1889 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
1890 | fi | |
1891 | ||
1892 | # Check whether --with-mgl or --without-mgl was given. | |
1893 | if test "${with_mgl+set}" = set; then | |
1894 | withval="$with_mgl" | |
1895 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1896 | fi | |
1897 | ||
1898 | # Check whether --with-microwin or --without-microwin was given. | |
1899 | if test "${with_microwin+set}" = set; then | |
1900 | withval="$with_microwin" | |
1901 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
1902 | fi | |
1903 | ||
1904 | # Check whether --with-x11 or --without-x11 was given. | |
1905 | if test "${with_x11+set}" = set; then | |
1906 | withval="$with_x11" | |
1907 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
1908 | fi | |
1909 | ||
1910 | ||
1911 | enablestring= | |
1912 | echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6 | |
1913 | echo "configure:1914: checking for --${enablestring:-enable}-nanox" >&5 | |
1914 | no_cache=0 | |
1915 | # Check whether --enable-nanox or --disable-nanox was given. | |
1916 | if test "${enable_nanox+set}" = set; then | |
1917 | enableval="$enable_nanox" | |
1918 | ||
1919 | if test "$enableval" = yes; then | |
1920 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
1921 | else | |
1922 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
1923 | fi | |
1924 | ||
1925 | else | |
1926 | ||
1927 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
1928 | if test "x$LINE" != x ; then | |
1929 | eval "DEFAULT_$LINE" | |
1930 | else | |
1931 | no_cache=1 | |
1932 | fi | |
1933 | ||
1934 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
1935 | ||
1936 | fi | |
1937 | ||
1938 | ||
1939 | eval "$ac_cv_use_nanox" | |
1940 | if test "$no_cache" != 1; then | |
1941 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
1942 | fi | |
1943 | ||
1944 | if test "$wxUSE_NANOX" = yes; then | |
1945 | echo "$ac_t""yes" 1>&6 | |
1946 | else | |
1947 | echo "$ac_t""no" 1>&6 | |
1948 | fi | |
1949 | ||
1950 | ||
1951 | ||
1952 | enablestring= | |
1953 | echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6 | |
1954 | echo "configure:1955: checking for --${enablestring:-enable}-gtk2" >&5 | |
1955 | no_cache=0 | |
1956 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
1957 | if test "${enable_gtk2+set}" = set; then | |
1958 | enableval="$enable_gtk2" | |
1959 | ||
1960 | if test "$enableval" = yes; then | |
1961 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
1962 | else | |
1963 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
1964 | fi | |
1965 | ||
1966 | else | |
1967 | ||
1968 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` | |
1969 | if test "x$LINE" != x ; then | |
1970 | eval "DEFAULT_$LINE" | |
1971 | else | |
1972 | no_cache=1 | |
1973 | fi | |
1974 | ||
1975 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
1976 | ||
1977 | fi | |
1978 | ||
1979 | ||
1980 | eval "$ac_cv_use_gtk2" | |
1981 | if test "$no_cache" != 1; then | |
1982 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
1983 | fi | |
1984 | ||
1985 | if test "$wxUSE_GTK2" = yes; then | |
1986 | echo "$ac_t""yes" 1>&6 | |
1987 | else | |
1988 | echo "$ac_t""no" 1>&6 | |
1989 | fi | |
1990 | ||
1991 | ||
1992 | ||
1993 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 | |
1994 | echo "configure:1995: checking for --with-libpng" >&5 | |
1995 | no_cache=0 | |
1996 | # Check whether --with-libpng or --without-libpng was given. | |
1997 | if test "${with_libpng+set}" = set; then | |
1998 | withval="$with_libpng" | |
1999 | ||
2000 | if test "$withval" = yes; then | |
2001 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2002 | elif test "$withval" = no; then | |
2003 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2004 | elif test "$withval" = sys; then | |
2005 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2006 | elif test "$withval" = builtin; then | |
2007 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2008 | else | |
2009 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2010 | fi | |
2011 | ||
2012 | else | |
2013 | ||
2014 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2015 | if test "x$LINE" != x ; then | |
2016 | eval "DEFAULT_$LINE" | |
2017 | else | |
2018 | no_cache=1 | |
2019 | fi | |
2020 | ||
2021 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2022 | ||
2023 | fi | |
2024 | ||
2025 | ||
2026 | eval "$ac_cv_use_libpng" | |
2027 | if test "$no_cache" != 1; then | |
2028 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2029 | fi | |
2030 | ||
2031 | if test "$wxUSE_LIBPNG" = yes; then | |
2032 | echo "$ac_t""yes" 1>&6 | |
2033 | elif test "$wxUSE_LIBPNG" = no; then | |
2034 | echo "$ac_t""no" 1>&6 | |
2035 | elif test "$wxUSE_LIBPNG" = sys; then | |
2036 | echo "$ac_t""system version" 1>&6 | |
2037 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2038 | echo "$ac_t""builtin version" 1>&6 | |
2039 | else | |
2040 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2041 | fi | |
2042 | ||
2043 | ||
2044 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 | |
2045 | echo "configure:2046: checking for --with-libjpeg" >&5 | |
2046 | no_cache=0 | |
2047 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2048 | if test "${with_libjpeg+set}" = set; then | |
2049 | withval="$with_libjpeg" | |
2050 | ||
2051 | if test "$withval" = yes; then | |
2052 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2053 | elif test "$withval" = no; then | |
2054 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2055 | elif test "$withval" = sys; then | |
2056 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2057 | elif test "$withval" = builtin; then | |
2058 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2059 | else | |
2060 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2061 | fi | |
2062 | ||
2063 | else | |
2064 | ||
2065 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2066 | if test "x$LINE" != x ; then | |
2067 | eval "DEFAULT_$LINE" | |
2068 | else | |
2069 | no_cache=1 | |
2070 | fi | |
2071 | ||
2072 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2073 | ||
2074 | fi | |
2075 | ||
2076 | ||
2077 | eval "$ac_cv_use_libjpeg" | |
2078 | if test "$no_cache" != 1; then | |
2079 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2080 | fi | |
2081 | ||
2082 | if test "$wxUSE_LIBJPEG" = yes; then | |
2083 | echo "$ac_t""yes" 1>&6 | |
2084 | elif test "$wxUSE_LIBJPEG" = no; then | |
2085 | echo "$ac_t""no" 1>&6 | |
2086 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2087 | echo "$ac_t""system version" 1>&6 | |
2088 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2089 | echo "$ac_t""builtin version" 1>&6 | |
2090 | else | |
2091 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2092 | fi | |
2093 | ||
2094 | ||
2095 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 | |
2096 | echo "configure:2097: checking for --with-libtiff" >&5 | |
2097 | no_cache=0 | |
2098 | # Check whether --with-libtiff or --without-libtiff was given. | |
2099 | if test "${with_libtiff+set}" = set; then | |
2100 | withval="$with_libtiff" | |
2101 | ||
2102 | if test "$withval" = yes; then | |
2103 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2104 | elif test "$withval" = no; then | |
2105 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2106 | elif test "$withval" = sys; then | |
2107 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2108 | elif test "$withval" = builtin; then | |
2109 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2110 | else | |
2111 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2112 | fi | |
2113 | ||
2114 | else | |
2115 | ||
2116 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2117 | if test "x$LINE" != x ; then | |
2118 | eval "DEFAULT_$LINE" | |
2119 | else | |
2120 | no_cache=1 | |
2121 | fi | |
2122 | ||
2123 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2124 | ||
2125 | fi | |
2126 | ||
2127 | ||
2128 | eval "$ac_cv_use_libtiff" | |
2129 | if test "$no_cache" != 1; then | |
2130 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2131 | fi | |
2132 | ||
2133 | if test "$wxUSE_LIBTIFF" = yes; then | |
2134 | echo "$ac_t""yes" 1>&6 | |
2135 | elif test "$wxUSE_LIBTIFF" = no; then | |
2136 | echo "$ac_t""no" 1>&6 | |
2137 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2138 | echo "$ac_t""system version" 1>&6 | |
2139 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2140 | echo "$ac_t""builtin version" 1>&6 | |
2141 | else | |
2142 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2143 | fi | |
2144 | ||
2145 | ||
2146 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 | |
2147 | echo "configure:2148: checking for --with-opengl" >&5 | |
2148 | no_cache=0 | |
2149 | # Check whether --with-opengl or --without-opengl was given. | |
2150 | if test "${with_opengl+set}" = set; then | |
2151 | withval="$with_opengl" | |
2152 | ||
2153 | if test "$withval" = yes; then | |
2154 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
2155 | else | |
2156 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
2157 | fi | |
2158 | ||
2159 | else | |
2160 | ||
2161 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
2162 | if test "x$LINE" != x ; then | |
2163 | eval "DEFAULT_$LINE" | |
2164 | else | |
2165 | no_cache=1 | |
2166 | fi | |
2167 | ||
2168 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
2169 | ||
2170 | fi | |
2171 | ||
2172 | ||
2173 | eval "$ac_cv_use_opengl" | |
2174 | if test "$no_cache" != 1; then | |
2175 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
2176 | fi | |
2177 | ||
2178 | if test "$wxUSE_OPENGL" = yes; then | |
2179 | echo "$ac_t""yes" 1>&6 | |
2180 | else | |
2181 | echo "$ac_t""no" 1>&6 | |
2182 | fi | |
2183 | ||
2184 | ||
2185 | fi | |
2186 | ||
2187 | ||
2188 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 | |
2189 | echo "configure:2190: checking for --with-dmalloc" >&5 | |
2190 | no_cache=0 | |
2191 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
2192 | if test "${with_dmalloc+set}" = set; then | |
2193 | withval="$with_dmalloc" | |
2194 | ||
2195 | if test "$withval" = yes; then | |
2196 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
2197 | else | |
2198 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
2199 | fi | |
2200 | ||
2201 | else | |
2202 | ||
2203 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
2204 | if test "x$LINE" != x ; then | |
2205 | eval "DEFAULT_$LINE" | |
2206 | else | |
2207 | no_cache=1 | |
2208 | fi | |
2209 | ||
2210 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
2211 | ||
2212 | fi | |
2213 | ||
2214 | ||
2215 | eval "$ac_cv_use_dmalloc" | |
2216 | if test "$no_cache" != 1; then | |
2217 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
2218 | fi | |
2219 | ||
2220 | if test "$wxUSE_DMALLOC" = yes; then | |
2221 | echo "$ac_t""yes" 1>&6 | |
2222 | else | |
2223 | echo "$ac_t""no" 1>&6 | |
2224 | fi | |
2225 | ||
2226 | ||
2227 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 | |
2228 | echo "configure:2229: checking for --with-regex" >&5 | |
2229 | no_cache=0 | |
2230 | # Check whether --with-regex or --without-regex was given. | |
2231 | if test "${with_regex+set}" = set; then | |
2232 | withval="$with_regex" | |
2233 | ||
2234 | if test "$withval" = yes; then | |
2235 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2236 | elif test "$withval" = no; then | |
2237 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2238 | elif test "$withval" = sys; then | |
2239 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
2240 | elif test "$withval" = builtin; then | |
2241 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
2242 | else | |
2243 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2244 | fi | |
2245 | ||
2246 | else | |
2247 | ||
2248 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2249 | if test "x$LINE" != x ; then | |
2250 | eval "DEFAULT_$LINE" | |
2251 | else | |
2252 | no_cache=1 | |
2253 | fi | |
2254 | ||
2255 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2256 | ||
2257 | fi | |
2258 | ||
2259 | ||
2260 | eval "$ac_cv_use_regex" | |
2261 | if test "$no_cache" != 1; then | |
2262 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2263 | fi | |
2264 | ||
2265 | if test "$wxUSE_REGEX" = yes; then | |
2266 | echo "$ac_t""yes" 1>&6 | |
2267 | elif test "$wxUSE_REGEX" = no; then | |
2268 | echo "$ac_t""no" 1>&6 | |
2269 | elif test "$wxUSE_REGEX" = sys; then | |
2270 | echo "$ac_t""system version" 1>&6 | |
2271 | elif test "$wxUSE_REGEX" = builtin; then | |
2272 | echo "$ac_t""builtin version" 1>&6 | |
2273 | else | |
2274 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2275 | fi | |
2276 | ||
2277 | ||
2278 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 | |
2279 | echo "configure:2280: checking for --with-zlib" >&5 | |
2280 | no_cache=0 | |
2281 | # Check whether --with-zlib or --without-zlib was given. | |
2282 | if test "${with_zlib+set}" = set; then | |
2283 | withval="$with_zlib" | |
2284 | ||
2285 | if test "$withval" = yes; then | |
2286 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
2287 | elif test "$withval" = no; then | |
2288 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
2289 | elif test "$withval" = sys; then | |
2290 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
2291 | elif test "$withval" = builtin; then | |
2292 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
2293 | else | |
2294 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2295 | fi | |
2296 | ||
2297 | else | |
2298 | ||
2299 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
2300 | if test "x$LINE" != x ; then | |
2301 | eval "DEFAULT_$LINE" | |
2302 | else | |
2303 | no_cache=1 | |
2304 | fi | |
2305 | ||
2306 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
2307 | ||
2308 | fi | |
2309 | ||
2310 | ||
2311 | eval "$ac_cv_use_zlib" | |
2312 | if test "$no_cache" != 1; then | |
2313 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
2314 | fi | |
2315 | ||
2316 | if test "$wxUSE_ZLIB" = yes; then | |
2317 | echo "$ac_t""yes" 1>&6 | |
2318 | elif test "$wxUSE_ZLIB" = no; then | |
2319 | echo "$ac_t""no" 1>&6 | |
2320 | elif test "$wxUSE_ZLIB" = sys; then | |
2321 | echo "$ac_t""system version" 1>&6 | |
2322 | elif test "$wxUSE_ZLIB" = builtin; then | |
2323 | echo "$ac_t""builtin version" 1>&6 | |
2324 | else | |
2325 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2326 | fi | |
2327 | ||
2328 | ||
2329 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 | |
2330 | echo "configure:2331: checking for --with-odbc" >&5 | |
2331 | no_cache=0 | |
2332 | # Check whether --with-odbc or --without-odbc was given. | |
2333 | if test "${with_odbc+set}" = set; then | |
2334 | withval="$with_odbc" | |
2335 | ||
2336 | if test "$withval" = yes; then | |
2337 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2338 | else | |
2339 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2340 | fi | |
2341 | ||
2342 | else | |
2343 | ||
2344 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
2345 | if test "x$LINE" != x ; then | |
2346 | eval "DEFAULT_$LINE" | |
2347 | else | |
2348 | no_cache=1 | |
2349 | fi | |
2350 | ||
2351 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
2352 | ||
2353 | fi | |
2354 | ||
2355 | ||
2356 | eval "$ac_cv_use_odbc" | |
2357 | if test "$no_cache" != 1; then | |
2358 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2359 | fi | |
2360 | ||
2361 | if test "$wxUSE_ODBC" = yes; then | |
2362 | echo "$ac_t""yes" 1>&6 | |
2363 | else | |
2364 | echo "$ac_t""no" 1>&6 | |
2365 | fi | |
2366 | ||
2367 | ||
2368 | ||
2369 | ||
2370 | enablestring= | |
2371 | echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6 | |
2372 | echo "configure:2373: checking for --${enablestring:-enable}-shared" >&5 | |
2373 | no_cache=0 | |
2374 | # Check whether --enable-shared or --disable-shared was given. | |
2375 | if test "${enable_shared+set}" = set; then | |
2376 | enableval="$enable_shared" | |
2377 | ||
2378 | if test "$enableval" = yes; then | |
2379 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2380 | else | |
2381 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2382 | fi | |
2383 | ||
2384 | else | |
2385 | ||
2386 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
2387 | if test "x$LINE" != x ; then | |
2388 | eval "DEFAULT_$LINE" | |
2389 | else | |
2390 | no_cache=1 | |
2391 | fi | |
2392 | ||
2393 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
2394 | ||
2395 | fi | |
2396 | ||
2397 | ||
2398 | eval "$ac_cv_use_shared" | |
2399 | if test "$no_cache" != 1; then | |
2400 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2401 | fi | |
2402 | ||
2403 | if test "$wxUSE_SHARED" = yes; then | |
2404 | echo "$ac_t""yes" 1>&6 | |
2405 | else | |
2406 | echo "$ac_t""no" 1>&6 | |
2407 | fi | |
2408 | ||
2409 | ||
2410 | enablestring= | |
2411 | echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6 | |
2412 | echo "configure:2413: checking for --${enablestring:-enable}-soname" >&5 | |
2413 | no_cache=0 | |
2414 | # Check whether --enable-soname or --disable-soname was given. | |
2415 | if test "${enable_soname+set}" = set; then | |
2416 | enableval="$enable_soname" | |
2417 | ||
2418 | if test "$enableval" = yes; then | |
2419 | ac_cv_use_soname='wxUSE_SONAME=yes' | |
2420 | else | |
2421 | ac_cv_use_soname='wxUSE_SONAME=no' | |
2422 | fi | |
2423 | ||
2424 | else | |
2425 | ||
2426 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` | |
2427 | if test "x$LINE" != x ; then | |
2428 | eval "DEFAULT_$LINE" | |
2429 | else | |
2430 | no_cache=1 | |
2431 | fi | |
2432 | ||
2433 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME | |
2434 | ||
2435 | fi | |
2436 | ||
2437 | ||
2438 | eval "$ac_cv_use_soname" | |
2439 | if test "$no_cache" != 1; then | |
2440 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp | |
2441 | fi | |
2442 | ||
2443 | if test "$wxUSE_SONAME" = yes; then | |
2444 | echo "$ac_t""yes" 1>&6 | |
2445 | else | |
2446 | echo "$ac_t""no" 1>&6 | |
2447 | fi | |
2448 | ||
2449 | ||
2450 | enablestring= | |
2451 | echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6 | |
2452 | echo "configure:2453: checking for --${enablestring:-enable}-optimise" >&5 | |
2453 | no_cache=0 | |
2454 | # Check whether --enable-optimise or --disable-optimise was given. | |
2455 | if test "${enable_optimise+set}" = set; then | |
2456 | enableval="$enable_optimise" | |
2457 | ||
2458 | if test "$enableval" = yes; then | |
2459 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2460 | else | |
2461 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2462 | fi | |
2463 | ||
2464 | else | |
2465 | ||
2466 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
2467 | if test "x$LINE" != x ; then | |
2468 | eval "DEFAULT_$LINE" | |
2469 | else | |
2470 | no_cache=1 | |
2471 | fi | |
2472 | ||
2473 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
2474 | ||
2475 | fi | |
2476 | ||
2477 | ||
2478 | eval "$ac_cv_use_optimise" | |
2479 | if test "$no_cache" != 1; then | |
2480 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2481 | fi | |
2482 | ||
2483 | if test "$wxUSE_OPTIMISE" = yes; then | |
2484 | echo "$ac_t""yes" 1>&6 | |
2485 | else | |
2486 | echo "$ac_t""no" 1>&6 | |
2487 | fi | |
2488 | ||
2489 | ||
2490 | enablestring= | |
2491 | echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6 | |
2492 | echo "configure:2493: checking for --${enablestring:-enable}-debug" >&5 | |
2493 | no_cache=0 | |
2494 | # Check whether --enable-debug or --disable-debug was given. | |
2495 | if test "${enable_debug+set}" = set; then | |
2496 | enableval="$enable_debug" | |
2497 | ||
2498 | if test "$enableval" = yes; then | |
2499 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2500 | else | |
2501 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2502 | fi | |
2503 | ||
2504 | else | |
2505 | ||
2506 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
2507 | if test "x$LINE" != x ; then | |
2508 | eval "DEFAULT_$LINE" | |
2509 | else | |
2510 | no_cache=1 | |
2511 | fi | |
2512 | ||
2513 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
2514 | ||
2515 | fi | |
2516 | ||
2517 | ||
2518 | eval "$ac_cv_use_debug" | |
2519 | if test "$no_cache" != 1; then | |
2520 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2521 | fi | |
2522 | ||
2523 | if test "$wxUSE_DEBUG" = yes; then | |
2524 | echo "$ac_t""yes" 1>&6 | |
2525 | else | |
2526 | echo "$ac_t""no" 1>&6 | |
2527 | fi | |
2528 | ||
2529 | ||
2530 | ||
2531 | enablestring= | |
2532 | echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6 | |
2533 | echo "configure:2534: checking for --${enablestring:-enable}-precomp" >&5 | |
2534 | no_cache=0 | |
2535 | # Check whether --enable-precomp or --disable-precomp was given. | |
2536 | if test "${enable_precomp+set}" = set; then | |
2537 | enableval="$enable_precomp" | |
2538 | ||
2539 | if test "$enableval" = yes; then | |
2540 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2541 | else | |
2542 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2543 | fi | |
2544 | ||
2545 | else | |
2546 | ||
2547 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2548 | if test "x$LINE" != x ; then | |
2549 | eval "DEFAULT_$LINE" | |
2550 | else | |
2551 | no_cache=1 | |
2552 | fi | |
2553 | ||
2554 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2555 | ||
2556 | fi | |
2557 | ||
2558 | ||
2559 | eval "$ac_cv_use_precomp" | |
2560 | if test "$no_cache" != 1; then | |
2561 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2562 | fi | |
2563 | ||
2564 | if test "$wxUSE_PRECOMP" = yes; then | |
2565 | echo "$ac_t""yes" 1>&6 | |
2566 | else | |
2567 | echo "$ac_t""no" 1>&6 | |
2568 | fi | |
2569 | ||
2570 | ||
2571 | if test "$wxUSE_DEBUG" = "yes"; then | |
2572 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2573 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2574 | elif test "$wxUSE_DEBUG" = "no"; then | |
2575 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2576 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2577 | fi | |
2578 | ||
2579 | ||
2580 | enablestring= | |
2581 | echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6 | |
2582 | echo "configure:2583: checking for --${enablestring:-enable}-debug_flag" >&5 | |
2583 | no_cache=0 | |
2584 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2585 | if test "${enable_debug_flag+set}" = set; then | |
2586 | enableval="$enable_debug_flag" | |
2587 | ||
2588 | if test "$enableval" = yes; then | |
2589 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2590 | else | |
2591 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2592 | fi | |
2593 | ||
2594 | else | |
2595 | ||
2596 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
2597 | if test "x$LINE" != x ; then | |
2598 | eval "DEFAULT_$LINE" | |
2599 | else | |
2600 | no_cache=1 | |
2601 | fi | |
2602 | ||
2603 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
2604 | ||
2605 | fi | |
2606 | ||
2607 | ||
2608 | eval "$ac_cv_use_debug_flag" | |
2609 | if test "$no_cache" != 1; then | |
2610 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2611 | fi | |
2612 | ||
2613 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
2614 | echo "$ac_t""yes" 1>&6 | |
2615 | else | |
2616 | echo "$ac_t""no" 1>&6 | |
2617 | fi | |
2618 | ||
2619 | ||
2620 | enablestring= | |
2621 | echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6 | |
2622 | echo "configure:2623: checking for --${enablestring:-enable}-debug_info" >&5 | |
2623 | no_cache=0 | |
2624 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2625 | if test "${enable_debug_info+set}" = set; then | |
2626 | enableval="$enable_debug_info" | |
2627 | ||
2628 | if test "$enableval" = yes; then | |
2629 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2630 | else | |
2631 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2632 | fi | |
2633 | ||
2634 | else | |
2635 | ||
2636 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
2637 | if test "x$LINE" != x ; then | |
2638 | eval "DEFAULT_$LINE" | |
2639 | else | |
2640 | no_cache=1 | |
2641 | fi | |
2642 | ||
2643 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
2644 | ||
2645 | fi | |
2646 | ||
2647 | ||
2648 | eval "$ac_cv_use_debug_info" | |
2649 | if test "$no_cache" != 1; then | |
2650 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2651 | fi | |
2652 | ||
2653 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
2654 | echo "$ac_t""yes" 1>&6 | |
2655 | else | |
2656 | echo "$ac_t""no" 1>&6 | |
2657 | fi | |
2658 | ||
2659 | ||
2660 | enablestring= | |
2661 | echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6 | |
2662 | echo "configure:2663: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
2663 | no_cache=0 | |
2664 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2665 | if test "${enable_debug_gdb+set}" = set; then | |
2666 | enableval="$enable_debug_gdb" | |
2667 | ||
2668 | if test "$enableval" = yes; then | |
2669 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2670 | else | |
2671 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2672 | fi | |
2673 | ||
2674 | else | |
2675 | ||
2676 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
2677 | if test "x$LINE" != x ; then | |
2678 | eval "DEFAULT_$LINE" | |
2679 | else | |
2680 | no_cache=1 | |
2681 | fi | |
2682 | ||
2683 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
2684 | ||
2685 | fi | |
2686 | ||
2687 | ||
2688 | eval "$ac_cv_use_debug_gdb" | |
2689 | if test "$no_cache" != 1; then | |
2690 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2691 | fi | |
2692 | ||
2693 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
2694 | echo "$ac_t""yes" 1>&6 | |
2695 | else | |
2696 | echo "$ac_t""no" 1>&6 | |
2697 | fi | |
2698 | ||
2699 | ||
2700 | enablestring= | |
2701 | echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6 | |
2702 | echo "configure:2703: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
2703 | no_cache=0 | |
2704 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2705 | if test "${enable_debug_cntxt+set}" = set; then | |
2706 | enableval="$enable_debug_cntxt" | |
2707 | ||
2708 | if test "$enableval" = yes; then | |
2709 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2710 | else | |
2711 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2712 | fi | |
2713 | ||
2714 | else | |
2715 | ||
2716 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
2717 | if test "x$LINE" != x ; then | |
2718 | eval "DEFAULT_$LINE" | |
2719 | else | |
2720 | no_cache=1 | |
2721 | fi | |
2722 | ||
2723 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
2724 | ||
2725 | fi | |
2726 | ||
2727 | ||
2728 | eval "$ac_cv_use_debug_cntxt" | |
2729 | if test "$no_cache" != 1; then | |
2730 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2731 | fi | |
2732 | ||
2733 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
2734 | echo "$ac_t""yes" 1>&6 | |
2735 | else | |
2736 | echo "$ac_t""no" 1>&6 | |
2737 | fi | |
2738 | ||
2739 | ||
2740 | enablestring= | |
2741 | echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6 | |
2742 | echo "configure:2743: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
2743 | no_cache=0 | |
2744 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2745 | if test "${enable_mem_tracing+set}" = set; then | |
2746 | enableval="$enable_mem_tracing" | |
2747 | ||
2748 | if test "$enableval" = yes; then | |
2749 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2750 | else | |
2751 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2752 | fi | |
2753 | ||
2754 | else | |
2755 | ||
2756 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
2757 | if test "x$LINE" != x ; then | |
2758 | eval "DEFAULT_$LINE" | |
2759 | else | |
2760 | no_cache=1 | |
2761 | fi | |
2762 | ||
2763 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
2764 | ||
2765 | fi | |
2766 | ||
2767 | ||
2768 | eval "$ac_cv_use_mem_tracing" | |
2769 | if test "$no_cache" != 1; then | |
2770 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2771 | fi | |
2772 | ||
2773 | if test "$wxUSE_MEM_TRACING" = yes; then | |
2774 | echo "$ac_t""yes" 1>&6 | |
2775 | else | |
2776 | echo "$ac_t""no" 1>&6 | |
2777 | fi | |
2778 | ||
2779 | ||
2780 | enablestring= | |
2781 | echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6 | |
2782 | echo "configure:2783: checking for --${enablestring:-enable}-profile" >&5 | |
2783 | no_cache=0 | |
2784 | # Check whether --enable-profile or --disable-profile was given. | |
2785 | if test "${enable_profile+set}" = set; then | |
2786 | enableval="$enable_profile" | |
2787 | ||
2788 | if test "$enableval" = yes; then | |
2789 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2790 | else | |
2791 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2792 | fi | |
2793 | ||
2794 | else | |
2795 | ||
2796 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
2797 | if test "x$LINE" != x ; then | |
2798 | eval "DEFAULT_$LINE" | |
2799 | else | |
2800 | no_cache=1 | |
2801 | fi | |
2802 | ||
2803 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
2804 | ||
2805 | fi | |
2806 | ||
2807 | ||
2808 | eval "$ac_cv_use_profile" | |
2809 | if test "$no_cache" != 1; then | |
2810 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2811 | fi | |
2812 | ||
2813 | if test "$wxUSE_PROFILE" = yes; then | |
2814 | echo "$ac_t""yes" 1>&6 | |
2815 | else | |
2816 | echo "$ac_t""no" 1>&6 | |
2817 | fi | |
2818 | ||
2819 | ||
2820 | enablestring= | |
2821 | echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6 | |
2822 | echo "configure:2823: checking for --${enablestring:-enable}-no_rtti" >&5 | |
2823 | no_cache=0 | |
2824 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2825 | if test "${enable_no_rtti+set}" = set; then | |
2826 | enableval="$enable_no_rtti" | |
2827 | ||
2828 | if test "$enableval" = yes; then | |
2829 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2830 | else | |
2831 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2832 | fi | |
2833 | ||
2834 | else | |
2835 | ||
2836 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
2837 | if test "x$LINE" != x ; then | |
2838 | eval "DEFAULT_$LINE" | |
2839 | else | |
2840 | no_cache=1 | |
2841 | fi | |
2842 | ||
2843 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
2844 | ||
2845 | fi | |
2846 | ||
2847 | ||
2848 | eval "$ac_cv_use_no_rtti" | |
2849 | if test "$no_cache" != 1; then | |
2850 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2851 | fi | |
2852 | ||
2853 | if test "$wxUSE_NO_RTTI" = yes; then | |
2854 | echo "$ac_t""yes" 1>&6 | |
2855 | else | |
2856 | echo "$ac_t""no" 1>&6 | |
2857 | fi | |
2858 | ||
2859 | ||
2860 | enablestring= | |
2861 | echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6 | |
2862 | echo "configure:2863: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
2863 | no_cache=0 | |
2864 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2865 | if test "${enable_no_exceptions+set}" = set; then | |
2866 | enableval="$enable_no_exceptions" | |
2867 | ||
2868 | if test "$enableval" = yes; then | |
2869 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2870 | else | |
2871 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2872 | fi | |
2873 | ||
2874 | else | |
2875 | ||
2876 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
2877 | if test "x$LINE" != x ; then | |
2878 | eval "DEFAULT_$LINE" | |
2879 | else | |
2880 | no_cache=1 | |
2881 | fi | |
2882 | ||
2883 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
2884 | ||
2885 | fi | |
2886 | ||
2887 | ||
2888 | eval "$ac_cv_use_no_exceptions" | |
2889 | if test "$no_cache" != 1; then | |
2890 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2891 | fi | |
2892 | ||
2893 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
2894 | echo "$ac_t""yes" 1>&6 | |
2895 | else | |
2896 | echo "$ac_t""no" 1>&6 | |
2897 | fi | |
2898 | ||
2899 | ||
2900 | enablestring= | |
2901 | echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6 | |
2902 | echo "configure:2903: checking for --${enablestring:-enable}-permissive" >&5 | |
2903 | no_cache=0 | |
2904 | # Check whether --enable-permissive or --disable-permissive was given. | |
2905 | if test "${enable_permissive+set}" = set; then | |
2906 | enableval="$enable_permissive" | |
2907 | ||
2908 | if test "$enableval" = yes; then | |
2909 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2910 | else | |
2911 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2912 | fi | |
2913 | ||
2914 | else | |
2915 | ||
2916 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
2917 | if test "x$LINE" != x ; then | |
2918 | eval "DEFAULT_$LINE" | |
2919 | else | |
2920 | no_cache=1 | |
2921 | fi | |
2922 | ||
2923 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
2924 | ||
2925 | fi | |
2926 | ||
2927 | ||
2928 | eval "$ac_cv_use_permissive" | |
2929 | if test "$no_cache" != 1; then | |
2930 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2931 | fi | |
2932 | ||
2933 | if test "$wxUSE_PERMISSIVE" = yes; then | |
2934 | echo "$ac_t""yes" 1>&6 | |
2935 | else | |
2936 | echo "$ac_t""no" 1>&6 | |
2937 | fi | |
2938 | ||
2939 | ||
2940 | enablestring= | |
2941 | echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6 | |
2942 | echo "configure:2943: checking for --${enablestring:-enable}-no_deps" >&5 | |
2943 | no_cache=0 | |
2944 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2945 | if test "${enable_no_deps+set}" = set; then | |
2946 | enableval="$enable_no_deps" | |
2947 | ||
2948 | if test "$enableval" = yes; then | |
2949 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2950 | else | |
2951 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2952 | fi | |
2953 | ||
2954 | else | |
2955 | ||
2956 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
2957 | if test "x$LINE" != x ; then | |
2958 | eval "DEFAULT_$LINE" | |
2959 | else | |
2960 | no_cache=1 | |
2961 | fi | |
2962 | ||
2963 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
2964 | ||
2965 | fi | |
2966 | ||
2967 | ||
2968 | eval "$ac_cv_use_no_deps" | |
2969 | if test "$no_cache" != 1; then | |
2970 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2971 | fi | |
2972 | ||
2973 | if test "$wxUSE_NO_DEPS" = yes; then | |
2974 | echo "$ac_t""yes" 1>&6 | |
2975 | else | |
2976 | echo "$ac_t""no" 1>&6 | |
2977 | fi | |
2978 | ||
2979 | ||
2980 | ||
2981 | enablestring= | |
2982 | echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6 | |
2983 | echo "configure:2984: checking for --${enablestring:-enable}-compat20" >&5 | |
2984 | no_cache=0 | |
2985 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2986 | if test "${enable_compat20+set}" = set; then | |
2987 | enableval="$enable_compat20" | |
2988 | ||
2989 | if test "$enableval" = yes; then | |
2990 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2991 | else | |
2992 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2993 | fi | |
2994 | ||
2995 | else | |
2996 | ||
2997 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2998 | if test "x$LINE" != x ; then | |
2999 | eval "DEFAULT_$LINE" | |
3000 | else | |
3001 | no_cache=1 | |
3002 | fi | |
3003 | ||
3004 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
3005 | ||
3006 | fi | |
3007 | ||
3008 | ||
3009 | eval "$ac_cv_use_compat20" | |
3010 | if test "$no_cache" != 1; then | |
3011 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3012 | fi | |
3013 | ||
3014 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
3015 | echo "$ac_t""yes" 1>&6 | |
3016 | else | |
3017 | echo "$ac_t""no" 1>&6 | |
3018 | fi | |
3019 | ||
3020 | ||
3021 | enablestring= | |
3022 | echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6 | |
3023 | echo "configure:3024: checking for --${enablestring:-enable}-compat22" >&5 | |
3024 | no_cache=0 | |
3025 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3026 | if test "${enable_compat22+set}" = set; then | |
3027 | enableval="$enable_compat22" | |
3028 | ||
3029 | if test "$enableval" = yes; then | |
3030 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3031 | else | |
3032 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3033 | fi | |
3034 | ||
3035 | else | |
3036 | ||
3037 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
3038 | if test "x$LINE" != x ; then | |
3039 | eval "DEFAULT_$LINE" | |
3040 | else | |
3041 | no_cache=1 | |
3042 | fi | |
3043 | ||
3044 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
3045 | ||
3046 | fi | |
3047 | ||
3048 | ||
3049 | eval "$ac_cv_use_compat22" | |
3050 | if test "$no_cache" != 1; then | |
3051 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3052 | fi | |
3053 | ||
3054 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
3055 | echo "$ac_t""yes" 1>&6 | |
3056 | else | |
3057 | echo "$ac_t""no" 1>&6 | |
3058 | fi | |
3059 | ||
3060 | ||
3061 | enablestring=disable | |
3062 | echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6 | |
3063 | echo "configure:3064: checking for --${enablestring:-enable}-compat24" >&5 | |
3064 | no_cache=0 | |
3065 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
3066 | if test "${enable_compat24+set}" = set; then | |
3067 | enableval="$enable_compat24" | |
3068 | ||
3069 | if test "$enableval" = yes; then | |
3070 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
3071 | else | |
3072 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
3073 | fi | |
3074 | ||
3075 | else | |
3076 | ||
3077 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
3078 | if test "x$LINE" != x ; then | |
3079 | eval "DEFAULT_$LINE" | |
3080 | else | |
3081 | no_cache=1 | |
3082 | fi | |
3083 | ||
3084 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
3085 | ||
3086 | fi | |
3087 | ||
3088 | ||
3089 | eval "$ac_cv_use_compat24" | |
3090 | if test "$no_cache" != 1; then | |
3091 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
3092 | fi | |
3093 | ||
3094 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
3095 | echo "$ac_t""yes" 1>&6 | |
3096 | else | |
3097 | echo "$ac_t""no" 1>&6 | |
3098 | fi | |
3099 | ||
3100 | ||
3101 | # Check whether --enable-rpath or --disable-rpath was given. | |
3102 | if test "${enable_rpath+set}" = set; then | |
3103 | enableval="$enable_rpath" | |
3104 | wxRPATH_DIR="$enableval" | |
3105 | fi | |
3106 | ||
3107 | ||
3108 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3109 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3110 | fi | |
3111 | ||
3112 | ||
3113 | ||
3114 | ||
3115 | enablestring= | |
3116 | echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6 | |
3117 | echo "configure:3118: checking for --${enablestring:-enable}-intl" >&5 | |
3118 | no_cache=0 | |
3119 | # Check whether --enable-intl or --disable-intl was given. | |
3120 | if test "${enable_intl+set}" = set; then | |
3121 | enableval="$enable_intl" | |
3122 | ||
3123 | if test "$enableval" = yes; then | |
3124 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3125 | else | |
3126 | ac_cv_use_intl='wxUSE_INTL=no' | |
3127 | fi | |
3128 | ||
3129 | else | |
3130 | ||
3131 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
3132 | if test "x$LINE" != x ; then | |
3133 | eval "DEFAULT_$LINE" | |
3134 | else | |
3135 | no_cache=1 | |
3136 | fi | |
3137 | ||
3138 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
3139 | ||
3140 | fi | |
3141 | ||
3142 | ||
3143 | eval "$ac_cv_use_intl" | |
3144 | if test "$no_cache" != 1; then | |
3145 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3146 | fi | |
3147 | ||
3148 | if test "$wxUSE_INTL" = yes; then | |
3149 | echo "$ac_t""yes" 1>&6 | |
3150 | else | |
3151 | echo "$ac_t""no" 1>&6 | |
3152 | fi | |
3153 | ||
3154 | ||
3155 | enablestring= | |
3156 | echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6 | |
3157 | echo "configure:3158: checking for --${enablestring:-enable}-config" >&5 | |
3158 | no_cache=0 | |
3159 | # Check whether --enable-config or --disable-config was given. | |
3160 | if test "${enable_config+set}" = set; then | |
3161 | enableval="$enable_config" | |
3162 | ||
3163 | if test "$enableval" = yes; then | |
3164 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3165 | else | |
3166 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3167 | fi | |
3168 | ||
3169 | else | |
3170 | ||
3171 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
3172 | if test "x$LINE" != x ; then | |
3173 | eval "DEFAULT_$LINE" | |
3174 | else | |
3175 | no_cache=1 | |
3176 | fi | |
3177 | ||
3178 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
3179 | ||
3180 | fi | |
3181 | ||
3182 | ||
3183 | eval "$ac_cv_use_config" | |
3184 | if test "$no_cache" != 1; then | |
3185 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3186 | fi | |
3187 | ||
3188 | if test "$wxUSE_CONFIG" = yes; then | |
3189 | echo "$ac_t""yes" 1>&6 | |
3190 | else | |
3191 | echo "$ac_t""no" 1>&6 | |
3192 | fi | |
3193 | ||
3194 | ||
3195 | ||
3196 | enablestring= | |
3197 | echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6 | |
3198 | echo "configure:3199: checking for --${enablestring:-enable}-protocols" >&5 | |
3199 | no_cache=0 | |
3200 | # Check whether --enable-protocols or --disable-protocols was given. | |
3201 | if test "${enable_protocols+set}" = set; then | |
3202 | enableval="$enable_protocols" | |
3203 | ||
3204 | if test "$enableval" = yes; then | |
3205 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3206 | else | |
3207 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3208 | fi | |
3209 | ||
3210 | else | |
3211 | ||
3212 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
3213 | if test "x$LINE" != x ; then | |
3214 | eval "DEFAULT_$LINE" | |
3215 | else | |
3216 | no_cache=1 | |
3217 | fi | |
3218 | ||
3219 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
3220 | ||
3221 | fi | |
3222 | ||
3223 | ||
3224 | eval "$ac_cv_use_protocols" | |
3225 | if test "$no_cache" != 1; then | |
3226 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3227 | fi | |
3228 | ||
3229 | if test "$wxUSE_PROTOCOL" = yes; then | |
3230 | echo "$ac_t""yes" 1>&6 | |
3231 | else | |
3232 | echo "$ac_t""no" 1>&6 | |
3233 | fi | |
3234 | ||
3235 | ||
3236 | enablestring= | |
3237 | echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6 | |
3238 | echo "configure:3239: checking for --${enablestring:-enable}-ftp" >&5 | |
3239 | no_cache=0 | |
3240 | # Check whether --enable-ftp or --disable-ftp was given. | |
3241 | if test "${enable_ftp+set}" = set; then | |
3242 | enableval="$enable_ftp" | |
3243 | ||
3244 | if test "$enableval" = yes; then | |
3245 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3246 | else | |
3247 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3248 | fi | |
3249 | ||
3250 | else | |
3251 | ||
3252 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
3253 | if test "x$LINE" != x ; then | |
3254 | eval "DEFAULT_$LINE" | |
3255 | else | |
3256 | no_cache=1 | |
3257 | fi | |
3258 | ||
3259 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
3260 | ||
3261 | fi | |
3262 | ||
3263 | ||
3264 | eval "$ac_cv_use_ftp" | |
3265 | if test "$no_cache" != 1; then | |
3266 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3267 | fi | |
3268 | ||
3269 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
3270 | echo "$ac_t""yes" 1>&6 | |
3271 | else | |
3272 | echo "$ac_t""no" 1>&6 | |
3273 | fi | |
3274 | ||
3275 | ||
3276 | enablestring= | |
3277 | echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6 | |
3278 | echo "configure:3279: checking for --${enablestring:-enable}-http" >&5 | |
3279 | no_cache=0 | |
3280 | # Check whether --enable-http or --disable-http was given. | |
3281 | if test "${enable_http+set}" = set; then | |
3282 | enableval="$enable_http" | |
3283 | ||
3284 | if test "$enableval" = yes; then | |
3285 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3286 | else | |
3287 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3288 | fi | |
3289 | ||
3290 | else | |
3291 | ||
3292 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
3293 | if test "x$LINE" != x ; then | |
3294 | eval "DEFAULT_$LINE" | |
3295 | else | |
3296 | no_cache=1 | |
3297 | fi | |
3298 | ||
3299 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
3300 | ||
3301 | fi | |
3302 | ||
3303 | ||
3304 | eval "$ac_cv_use_http" | |
3305 | if test "$no_cache" != 1; then | |
3306 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3307 | fi | |
3308 | ||
3309 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
3310 | echo "$ac_t""yes" 1>&6 | |
3311 | else | |
3312 | echo "$ac_t""no" 1>&6 | |
3313 | fi | |
3314 | ||
3315 | ||
3316 | enablestring= | |
3317 | echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6 | |
3318 | echo "configure:3319: checking for --${enablestring:-enable}-fileproto" >&5 | |
3319 | no_cache=0 | |
3320 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3321 | if test "${enable_fileproto+set}" = set; then | |
3322 | enableval="$enable_fileproto" | |
3323 | ||
3324 | if test "$enableval" = yes; then | |
3325 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3326 | else | |
3327 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3328 | fi | |
3329 | ||
3330 | else | |
3331 | ||
3332 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
3333 | if test "x$LINE" != x ; then | |
3334 | eval "DEFAULT_$LINE" | |
3335 | else | |
3336 | no_cache=1 | |
3337 | fi | |
3338 | ||
3339 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
3340 | ||
3341 | fi | |
3342 | ||
3343 | ||
3344 | eval "$ac_cv_use_fileproto" | |
3345 | if test "$no_cache" != 1; then | |
3346 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3347 | fi | |
3348 | ||
3349 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
3350 | echo "$ac_t""yes" 1>&6 | |
3351 | else | |
3352 | echo "$ac_t""no" 1>&6 | |
3353 | fi | |
3354 | ||
3355 | ||
3356 | enablestring= | |
3357 | echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6 | |
3358 | echo "configure:3359: checking for --${enablestring:-enable}-sockets" >&5 | |
3359 | no_cache=0 | |
3360 | # Check whether --enable-sockets or --disable-sockets was given. | |
3361 | if test "${enable_sockets+set}" = set; then | |
3362 | enableval="$enable_sockets" | |
3363 | ||
3364 | if test "$enableval" = yes; then | |
3365 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3366 | else | |
3367 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3368 | fi | |
3369 | ||
3370 | else | |
3371 | ||
3372 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
3373 | if test "x$LINE" != x ; then | |
3374 | eval "DEFAULT_$LINE" | |
3375 | else | |
3376 | no_cache=1 | |
3377 | fi | |
3378 | ||
3379 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
3380 | ||
3381 | fi | |
3382 | ||
3383 | ||
3384 | eval "$ac_cv_use_sockets" | |
3385 | if test "$no_cache" != 1; then | |
3386 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3387 | fi | |
3388 | ||
3389 | if test "$wxUSE_SOCKETS" = yes; then | |
3390 | echo "$ac_t""yes" 1>&6 | |
3391 | else | |
3392 | echo "$ac_t""no" 1>&6 | |
3393 | fi | |
3394 | ||
3395 | ||
3396 | enablestring= | |
3397 | echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6 | |
3398 | echo "configure:3399: checking for --${enablestring:-enable}-ole" >&5 | |
3399 | no_cache=0 | |
3400 | # Check whether --enable-ole or --disable-ole was given. | |
3401 | if test "${enable_ole+set}" = set; then | |
3402 | enableval="$enable_ole" | |
3403 | ||
3404 | if test "$enableval" = yes; then | |
3405 | ac_cv_use_ole='wxUSE_OLE=yes' | |
3406 | else | |
3407 | ac_cv_use_ole='wxUSE_OLE=no' | |
3408 | fi | |
3409 | ||
3410 | else | |
3411 | ||
3412 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
3413 | if test "x$LINE" != x ; then | |
3414 | eval "DEFAULT_$LINE" | |
3415 | else | |
3416 | no_cache=1 | |
3417 | fi | |
3418 | ||
3419 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3420 | ||
3421 | fi | |
3422 | ||
3423 | ||
3424 | eval "$ac_cv_use_ole" | |
3425 | if test "$no_cache" != 1; then | |
3426 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
3427 | fi | |
3428 | ||
3429 | if test "$wxUSE_OLE" = yes; then | |
3430 | echo "$ac_t""yes" 1>&6 | |
3431 | else | |
3432 | echo "$ac_t""no" 1>&6 | |
3433 | fi | |
3434 | ||
3435 | ||
3436 | enablestring= | |
3437 | echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6 | |
3438 | echo "configure:3439: checking for --${enablestring:-enable}-dataobj" >&5 | |
3439 | no_cache=0 | |
3440 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
3441 | if test "${enable_dataobj+set}" = set; then | |
3442 | enableval="$enable_dataobj" | |
3443 | ||
3444 | if test "$enableval" = yes; then | |
3445 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
3446 | else | |
3447 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
3448 | fi | |
3449 | ||
3450 | else | |
3451 | ||
3452 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
3453 | if test "x$LINE" != x ; then | |
3454 | eval "DEFAULT_$LINE" | |
3455 | else | |
3456 | no_cache=1 | |
3457 | fi | |
3458 | ||
3459 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3460 | ||
3461 | fi | |
3462 | ||
3463 | ||
3464 | eval "$ac_cv_use_dataobj" | |
3465 | if test "$no_cache" != 1; then | |
3466 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
3467 | fi | |
3468 | ||
3469 | if test "$wxUSE_DATAOBJ" = yes; then | |
3470 | echo "$ac_t""yes" 1>&6 | |
3471 | else | |
3472 | echo "$ac_t""no" 1>&6 | |
3473 | fi | |
3474 | ||
3475 | ||
3476 | ||
3477 | enablestring= | |
3478 | echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6 | |
3479 | echo "configure:3480: checking for --${enablestring:-enable}-ipc" >&5 | |
3480 | no_cache=0 | |
3481 | # Check whether --enable-ipc or --disable-ipc was given. | |
3482 | if test "${enable_ipc+set}" = set; then | |
3483 | enableval="$enable_ipc" | |
3484 | ||
3485 | if test "$enableval" = yes; then | |
3486 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
3487 | else | |
3488 | ac_cv_use_ipc='wxUSE_IPC=no' | |
3489 | fi | |
3490 | ||
3491 | else | |
3492 | ||
3493 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
3494 | if test "x$LINE" != x ; then | |
3495 | eval "DEFAULT_$LINE" | |
3496 | else | |
3497 | no_cache=1 | |
3498 | fi | |
3499 | ||
3500 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
3501 | ||
3502 | fi | |
3503 | ||
3504 | ||
3505 | eval "$ac_cv_use_ipc" | |
3506 | if test "$no_cache" != 1; then | |
3507 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
3508 | fi | |
3509 | ||
3510 | if test "$wxUSE_IPC" = yes; then | |
3511 | echo "$ac_t""yes" 1>&6 | |
3512 | else | |
3513 | echo "$ac_t""no" 1>&6 | |
3514 | fi | |
3515 | ||
3516 | ||
3517 | ||
3518 | enablestring= | |
3519 | echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6 | |
3520 | echo "configure:3521: checking for --${enablestring:-enable}-cmdline" >&5 | |
3521 | no_cache=0 | |
3522 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3523 | if test "${enable_cmdline+set}" = set; then | |
3524 | enableval="$enable_cmdline" | |
3525 | ||
3526 | if test "$enableval" = yes; then | |
3527 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3528 | else | |
3529 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3530 | fi | |
3531 | ||
3532 | else | |
3533 | ||
3534 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3535 | if test "x$LINE" != x ; then | |
3536 | eval "DEFAULT_$LINE" | |
3537 | else | |
3538 | no_cache=1 | |
3539 | fi | |
3540 | ||
3541 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3542 | ||
3543 | fi | |
3544 | ||
3545 | ||
3546 | eval "$ac_cv_use_cmdline" | |
3547 | if test "$no_cache" != 1; then | |
3548 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3549 | fi | |
3550 | ||
3551 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3552 | echo "$ac_t""yes" 1>&6 | |
3553 | else | |
3554 | echo "$ac_t""no" 1>&6 | |
3555 | fi | |
3556 | ||
3557 | ||
3558 | enablestring= | |
3559 | echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6 | |
3560 | echo "configure:3561: checking for --${enablestring:-enable}-datetime" >&5 | |
3561 | no_cache=0 | |
3562 | # Check whether --enable-datetime or --disable-datetime was given. | |
3563 | if test "${enable_datetime+set}" = set; then | |
3564 | enableval="$enable_datetime" | |
3565 | ||
3566 | if test "$enableval" = yes; then | |
3567 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3568 | else | |
3569 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3570 | fi | |
3571 | ||
3572 | else | |
3573 | ||
3574 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3575 | if test "x$LINE" != x ; then | |
3576 | eval "DEFAULT_$LINE" | |
3577 | else | |
3578 | no_cache=1 | |
3579 | fi | |
3580 | ||
3581 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3582 | ||
3583 | fi | |
3584 | ||
3585 | ||
3586 | eval "$ac_cv_use_datetime" | |
3587 | if test "$no_cache" != 1; then | |
3588 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3589 | fi | |
3590 | ||
3591 | if test "$wxUSE_DATETIME" = yes; then | |
3592 | echo "$ac_t""yes" 1>&6 | |
3593 | else | |
3594 | echo "$ac_t""no" 1>&6 | |
3595 | fi | |
3596 | ||
3597 | ||
3598 | enablestring= | |
3599 | echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6 | |
3600 | echo "configure:3601: checking for --${enablestring:-enable}-timedate" >&5 | |
3601 | no_cache=0 | |
3602 | # Check whether --enable-timedate or --disable-timedate was given. | |
3603 | if test "${enable_timedate+set}" = set; then | |
3604 | enableval="$enable_timedate" | |
3605 | ||
3606 | if test "$enableval" = yes; then | |
3607 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3608 | else | |
3609 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3610 | fi | |
3611 | ||
3612 | else | |
3613 | ||
3614 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3615 | if test "x$LINE" != x ; then | |
3616 | eval "DEFAULT_$LINE" | |
3617 | else | |
3618 | no_cache=1 | |
3619 | fi | |
3620 | ||
3621 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3622 | ||
3623 | fi | |
3624 | ||
3625 | ||
3626 | eval "$ac_cv_use_timedate" | |
3627 | if test "$no_cache" != 1; then | |
3628 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3629 | fi | |
3630 | ||
3631 | if test "$wxUSE_TIMEDATE" = yes; then | |
3632 | echo "$ac_t""yes" 1>&6 | |
3633 | else | |
3634 | echo "$ac_t""no" 1>&6 | |
3635 | fi | |
3636 | ||
3637 | ||
3638 | enablestring= | |
3639 | echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6 | |
3640 | echo "configure:3641: checking for --${enablestring:-enable}-stopwatch" >&5 | |
3641 | no_cache=0 | |
3642 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3643 | if test "${enable_stopwatch+set}" = set; then | |
3644 | enableval="$enable_stopwatch" | |
3645 | ||
3646 | if test "$enableval" = yes; then | |
3647 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3648 | else | |
3649 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3650 | fi | |
3651 | ||
3652 | else | |
3653 | ||
3654 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3655 | if test "x$LINE" != x ; then | |
3656 | eval "DEFAULT_$LINE" | |
3657 | else | |
3658 | no_cache=1 | |
3659 | fi | |
3660 | ||
3661 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3662 | ||
3663 | fi | |
3664 | ||
3665 | ||
3666 | eval "$ac_cv_use_stopwatch" | |
3667 | if test "$no_cache" != 1; then | |
3668 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3669 | fi | |
3670 | ||
3671 | if test "$wxUSE_STOPWATCH" = yes; then | |
3672 | echo "$ac_t""yes" 1>&6 | |
3673 | else | |
3674 | echo "$ac_t""no" 1>&6 | |
3675 | fi | |
3676 | ||
3677 | ||
3678 | enablestring= | |
3679 | echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6 | |
3680 | echo "configure:3681: checking for --${enablestring:-enable}-dialupman" >&5 | |
3681 | no_cache=0 | |
3682 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
3683 | if test "${enable_dialupman+set}" = set; then | |
3684 | enableval="$enable_dialupman" | |
3685 | ||
3686 | if test "$enableval" = yes; then | |
3687 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
3688 | else | |
3689 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
3690 | fi | |
3691 | ||
3692 | else | |
3693 | ||
3694 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
3695 | if test "x$LINE" != x ; then | |
3696 | eval "DEFAULT_$LINE" | |
3697 | else | |
3698 | no_cache=1 | |
3699 | fi | |
3700 | ||
3701 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
3702 | ||
3703 | fi | |
3704 | ||
3705 | ||
3706 | eval "$ac_cv_use_dialupman" | |
3707 | if test "$no_cache" != 1; then | |
3708 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
3709 | fi | |
3710 | ||
3711 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
3712 | echo "$ac_t""yes" 1>&6 | |
3713 | else | |
3714 | echo "$ac_t""no" 1>&6 | |
3715 | fi | |
3716 | ||
3717 | ||
3718 | enablestring= | |
3719 | echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6 | |
3720 | echo "configure:3721: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
3721 | no_cache=0 | |
3722 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3723 | if test "${enable_apple_ieee+set}" = set; then | |
3724 | enableval="$enable_apple_ieee" | |
3725 | ||
3726 | if test "$enableval" = yes; then | |
3727 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3728 | else | |
3729 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3730 | fi | |
3731 | ||
3732 | else | |
3733 | ||
3734 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
3735 | if test "x$LINE" != x ; then | |
3736 | eval "DEFAULT_$LINE" | |
3737 | else | |
3738 | no_cache=1 | |
3739 | fi | |
3740 | ||
3741 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
3742 | ||
3743 | fi | |
3744 | ||
3745 | ||
3746 | eval "$ac_cv_use_apple_ieee" | |
3747 | if test "$no_cache" != 1; then | |
3748 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3749 | fi | |
3750 | ||
3751 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
3752 | echo "$ac_t""yes" 1>&6 | |
3753 | else | |
3754 | echo "$ac_t""no" 1>&6 | |
3755 | fi | |
3756 | ||
3757 | ||
3758 | enablestring= | |
3759 | echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6 | |
3760 | echo "configure:3761: checking for --${enablestring:-enable}-timer" >&5 | |
3761 | no_cache=0 | |
3762 | # Check whether --enable-timer or --disable-timer was given. | |
3763 | if test "${enable_timer+set}" = set; then | |
3764 | enableval="$enable_timer" | |
3765 | ||
3766 | if test "$enableval" = yes; then | |
3767 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
3768 | else | |
3769 | ac_cv_use_timer='wxUSE_TIMER=no' | |
3770 | fi | |
3771 | ||
3772 | else | |
3773 | ||
3774 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
3775 | if test "x$LINE" != x ; then | |
3776 | eval "DEFAULT_$LINE" | |
3777 | else | |
3778 | no_cache=1 | |
3779 | fi | |
3780 | ||
3781 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
3782 | ||
3783 | fi | |
3784 | ||
3785 | ||
3786 | eval "$ac_cv_use_timer" | |
3787 | if test "$no_cache" != 1; then | |
3788 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
3789 | fi | |
3790 | ||
3791 | if test "$wxUSE_TIMER" = yes; then | |
3792 | echo "$ac_t""yes" 1>&6 | |
3793 | else | |
3794 | echo "$ac_t""no" 1>&6 | |
3795 | fi | |
3796 | ||
3797 | ||
3798 | enablestring= | |
3799 | echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6 | |
3800 | echo "configure:3801: checking for --${enablestring:-enable}-wave" >&5 | |
3801 | no_cache=0 | |
3802 | # Check whether --enable-wave or --disable-wave was given. | |
3803 | if test "${enable_wave+set}" = set; then | |
3804 | enableval="$enable_wave" | |
3805 | ||
3806 | if test "$enableval" = yes; then | |
3807 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3808 | else | |
3809 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3810 | fi | |
3811 | ||
3812 | else | |
3813 | ||
3814 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
3815 | if test "x$LINE" != x ; then | |
3816 | eval "DEFAULT_$LINE" | |
3817 | else | |
3818 | no_cache=1 | |
3819 | fi | |
3820 | ||
3821 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
3822 | ||
3823 | fi | |
3824 | ||
3825 | ||
3826 | eval "$ac_cv_use_wave" | |
3827 | if test "$no_cache" != 1; then | |
3828 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3829 | fi | |
3830 | ||
3831 | if test "$wxUSE_WAVE" = yes; then | |
3832 | echo "$ac_t""yes" 1>&6 | |
3833 | else | |
3834 | echo "$ac_t""no" 1>&6 | |
3835 | fi | |
3836 | ||
3837 | ||
3838 | enablestring= | |
3839 | echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6 | |
3840 | echo "configure:3841: checking for --${enablestring:-enable}-fraction" >&5 | |
3841 | no_cache=0 | |
3842 | # Check whether --enable-fraction or --disable-fraction was given. | |
3843 | if test "${enable_fraction+set}" = set; then | |
3844 | enableval="$enable_fraction" | |
3845 | ||
3846 | if test "$enableval" = yes; then | |
3847 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3848 | else | |
3849 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3850 | fi | |
3851 | ||
3852 | else | |
3853 | ||
3854 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` | |
3855 | if test "x$LINE" != x ; then | |
3856 | eval "DEFAULT_$LINE" | |
3857 | else | |
3858 | no_cache=1 | |
3859 | fi | |
3860 | ||
3861 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
3862 | ||
3863 | fi | |
3864 | ||
3865 | ||
3866 | eval "$ac_cv_use_fraction" | |
3867 | if test "$no_cache" != 1; then | |
3868 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3869 | fi | |
3870 | ||
3871 | if test "$wxUSE_FRACTION" = yes; then | |
3872 | echo "$ac_t""yes" 1>&6 | |
3873 | else | |
3874 | echo "$ac_t""no" 1>&6 | |
3875 | fi | |
3876 | ||
3877 | ||
3878 | enablestring= | |
3879 | echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6 | |
3880 | echo "configure:3881: checking for --${enablestring:-enable}-dynlib" >&5 | |
3881 | no_cache=0 | |
3882 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3883 | if test "${enable_dynlib+set}" = set; then | |
3884 | enableval="$enable_dynlib" | |
3885 | ||
3886 | if test "$enableval" = yes; then | |
3887 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3888 | else | |
3889 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3890 | fi | |
3891 | ||
3892 | else | |
3893 | ||
3894 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
3895 | if test "x$LINE" != x ; then | |
3896 | eval "DEFAULT_$LINE" | |
3897 | else | |
3898 | no_cache=1 | |
3899 | fi | |
3900 | ||
3901 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
3902 | ||
3903 | fi | |
3904 | ||
3905 | ||
3906 | eval "$ac_cv_use_dynlib" | |
3907 | if test "$no_cache" != 1; then | |
3908 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3909 | fi | |
3910 | ||
3911 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
3912 | echo "$ac_t""yes" 1>&6 | |
3913 | else | |
3914 | echo "$ac_t""no" 1>&6 | |
3915 | fi | |
3916 | ||
3917 | ||
3918 | enablestring= | |
3919 | echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6 | |
3920 | echo "configure:3921: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
3921 | no_cache=0 | |
3922 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3923 | if test "${enable_dynamicloader+set}" = set; then | |
3924 | enableval="$enable_dynamicloader" | |
3925 | ||
3926 | if test "$enableval" = yes; then | |
3927 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3928 | else | |
3929 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3930 | fi | |
3931 | ||
3932 | else | |
3933 | ||
3934 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
3935 | if test "x$LINE" != x ; then | |
3936 | eval "DEFAULT_$LINE" | |
3937 | else | |
3938 | no_cache=1 | |
3939 | fi | |
3940 | ||
3941 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
3942 | ||
3943 | fi | |
3944 | ||
3945 | ||
3946 | eval "$ac_cv_use_dynamicloader" | |
3947 | if test "$no_cache" != 1; then | |
3948 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3949 | fi | |
3950 | ||
3951 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
3952 | echo "$ac_t""yes" 1>&6 | |
3953 | else | |
3954 | echo "$ac_t""no" 1>&6 | |
3955 | fi | |
3956 | ||
3957 | ||
3958 | enablestring= | |
3959 | echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6 | |
3960 | echo "configure:3961: checking for --${enablestring:-enable}-longlong" >&5 | |
3961 | no_cache=0 | |
3962 | # Check whether --enable-longlong or --disable-longlong was given. | |
3963 | if test "${enable_longlong+set}" = set; then | |
3964 | enableval="$enable_longlong" | |
3965 | ||
3966 | if test "$enableval" = yes; then | |
3967 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3968 | else | |
3969 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3970 | fi | |
3971 | ||
3972 | else | |
3973 | ||
3974 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
3975 | if test "x$LINE" != x ; then | |
3976 | eval "DEFAULT_$LINE" | |
3977 | else | |
3978 | no_cache=1 | |
3979 | fi | |
3980 | ||
3981 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
3982 | ||
3983 | fi | |
3984 | ||
3985 | ||
3986 | eval "$ac_cv_use_longlong" | |
3987 | if test "$no_cache" != 1; then | |
3988 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3989 | fi | |
3990 | ||
3991 | if test "$wxUSE_LONGLONG" = yes; then | |
3992 | echo "$ac_t""yes" 1>&6 | |
3993 | else | |
3994 | echo "$ac_t""no" 1>&6 | |
3995 | fi | |
3996 | ||
3997 | ||
3998 | enablestring= | |
3999 | echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6 | |
4000 | echo "configure:4001: checking for --${enablestring:-enable}-geometry" >&5 | |
4001 | no_cache=0 | |
4002 | # Check whether --enable-geometry or --disable-geometry was given. | |
4003 | if test "${enable_geometry+set}" = set; then | |
4004 | enableval="$enable_geometry" | |
4005 | ||
4006 | if test "$enableval" = yes; then | |
4007 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
4008 | else | |
4009 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
4010 | fi | |
4011 | ||
4012 | else | |
4013 | ||
4014 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
4015 | if test "x$LINE" != x ; then | |
4016 | eval "DEFAULT_$LINE" | |
4017 | else | |
4018 | no_cache=1 | |
4019 | fi | |
4020 | ||
4021 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
4022 | ||
4023 | fi | |
4024 | ||
4025 | ||
4026 | eval "$ac_cv_use_geometry" | |
4027 | if test "$no_cache" != 1; then | |
4028 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
4029 | fi | |
4030 | ||
4031 | if test "$wxUSE_GEOMETRY" = yes; then | |
4032 | echo "$ac_t""yes" 1>&6 | |
4033 | else | |
4034 | echo "$ac_t""no" 1>&6 | |
4035 | fi | |
4036 | ||
4037 | ||
4038 | enablestring= | |
4039 | echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6 | |
4040 | echo "configure:4041: checking for --${enablestring:-enable}-log" >&5 | |
4041 | no_cache=0 | |
4042 | # Check whether --enable-log or --disable-log was given. | |
4043 | if test "${enable_log+set}" = set; then | |
4044 | enableval="$enable_log" | |
4045 | ||
4046 | if test "$enableval" = yes; then | |
4047 | ac_cv_use_log='wxUSE_LOG=yes' | |
4048 | else | |
4049 | ac_cv_use_log='wxUSE_LOG=no' | |
4050 | fi | |
4051 | ||
4052 | else | |
4053 | ||
4054 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
4055 | if test "x$LINE" != x ; then | |
4056 | eval "DEFAULT_$LINE" | |
4057 | else | |
4058 | no_cache=1 | |
4059 | fi | |
4060 | ||
4061 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
4062 | ||
4063 | fi | |
4064 | ||
4065 | ||
4066 | eval "$ac_cv_use_log" | |
4067 | if test "$no_cache" != 1; then | |
4068 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4069 | fi | |
4070 | ||
4071 | if test "$wxUSE_LOG" = yes; then | |
4072 | echo "$ac_t""yes" 1>&6 | |
4073 | else | |
4074 | echo "$ac_t""no" 1>&6 | |
4075 | fi | |
4076 | ||
4077 | ||
4078 | enablestring= | |
4079 | echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6 | |
4080 | echo "configure:4081: checking for --${enablestring:-enable}-streams" >&5 | |
4081 | no_cache=0 | |
4082 | # Check whether --enable-streams or --disable-streams was given. | |
4083 | if test "${enable_streams+set}" = set; then | |
4084 | enableval="$enable_streams" | |
4085 | ||
4086 | if test "$enableval" = yes; then | |
4087 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4088 | else | |
4089 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4090 | fi | |
4091 | ||
4092 | else | |
4093 | ||
4094 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
4095 | if test "x$LINE" != x ; then | |
4096 | eval "DEFAULT_$LINE" | |
4097 | else | |
4098 | no_cache=1 | |
4099 | fi | |
4100 | ||
4101 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
4102 | ||
4103 | fi | |
4104 | ||
4105 | ||
4106 | eval "$ac_cv_use_streams" | |
4107 | if test "$no_cache" != 1; then | |
4108 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4109 | fi | |
4110 | ||
4111 | if test "$wxUSE_STREAMS" = yes; then | |
4112 | echo "$ac_t""yes" 1>&6 | |
4113 | else | |
4114 | echo "$ac_t""no" 1>&6 | |
4115 | fi | |
4116 | ||
4117 | ||
4118 | enablestring= | |
4119 | echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6 | |
4120 | echo "configure:4121: checking for --${enablestring:-enable}-file" >&5 | |
4121 | no_cache=0 | |
4122 | # Check whether --enable-file or --disable-file was given. | |
4123 | if test "${enable_file+set}" = set; then | |
4124 | enableval="$enable_file" | |
4125 | ||
4126 | if test "$enableval" = yes; then | |
4127 | ac_cv_use_file='wxUSE_FILE=yes' | |
4128 | else | |
4129 | ac_cv_use_file='wxUSE_FILE=no' | |
4130 | fi | |
4131 | ||
4132 | else | |
4133 | ||
4134 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
4135 | if test "x$LINE" != x ; then | |
4136 | eval "DEFAULT_$LINE" | |
4137 | else | |
4138 | no_cache=1 | |
4139 | fi | |
4140 | ||
4141 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
4142 | ||
4143 | fi | |
4144 | ||
4145 | ||
4146 | eval "$ac_cv_use_file" | |
4147 | if test "$no_cache" != 1; then | |
4148 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4149 | fi | |
4150 | ||
4151 | if test "$wxUSE_FILE" = yes; then | |
4152 | echo "$ac_t""yes" 1>&6 | |
4153 | else | |
4154 | echo "$ac_t""no" 1>&6 | |
4155 | fi | |
4156 | ||
4157 | ||
4158 | enablestring= | |
4159 | echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6 | |
4160 | echo "configure:4161: checking for --${enablestring:-enable}-ffile" >&5 | |
4161 | no_cache=0 | |
4162 | # Check whether --enable-ffile or --disable-ffile was given. | |
4163 | if test "${enable_ffile+set}" = set; then | |
4164 | enableval="$enable_ffile" | |
4165 | ||
4166 | if test "$enableval" = yes; then | |
4167 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
4168 | else | |
4169 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
4170 | fi | |
4171 | ||
4172 | else | |
4173 | ||
4174 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
4175 | if test "x$LINE" != x ; then | |
4176 | eval "DEFAULT_$LINE" | |
4177 | else | |
4178 | no_cache=1 | |
4179 | fi | |
4180 | ||
4181 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
4182 | ||
4183 | fi | |
4184 | ||
4185 | ||
4186 | eval "$ac_cv_use_ffile" | |
4187 | if test "$no_cache" != 1; then | |
4188 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
4189 | fi | |
4190 | ||
4191 | if test "$wxUSE_FFILE" = yes; then | |
4192 | echo "$ac_t""yes" 1>&6 | |
4193 | else | |
4194 | echo "$ac_t""no" 1>&6 | |
4195 | fi | |
4196 | ||
4197 | ||
4198 | enablestring= | |
4199 | echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6 | |
4200 | echo "configure:4201: checking for --${enablestring:-enable}-textbuf" >&5 | |
4201 | no_cache=0 | |
4202 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4203 | if test "${enable_textbuf+set}" = set; then | |
4204 | enableval="$enable_textbuf" | |
4205 | ||
4206 | if test "$enableval" = yes; then | |
4207 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4208 | else | |
4209 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4210 | fi | |
4211 | ||
4212 | else | |
4213 | ||
4214 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
4215 | if test "x$LINE" != x ; then | |
4216 | eval "DEFAULT_$LINE" | |
4217 | else | |
4218 | no_cache=1 | |
4219 | fi | |
4220 | ||
4221 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
4222 | ||
4223 | fi | |
4224 | ||
4225 | ||
4226 | eval "$ac_cv_use_textbuf" | |
4227 | if test "$no_cache" != 1; then | |
4228 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4229 | fi | |
4230 | ||
4231 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
4232 | echo "$ac_t""yes" 1>&6 | |
4233 | else | |
4234 | echo "$ac_t""no" 1>&6 | |
4235 | fi | |
4236 | ||
4237 | ||
4238 | enablestring= | |
4239 | echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6 | |
4240 | echo "configure:4241: checking for --${enablestring:-enable}-textfile" >&5 | |
4241 | no_cache=0 | |
4242 | # Check whether --enable-textfile or --disable-textfile was given. | |
4243 | if test "${enable_textfile+set}" = set; then | |
4244 | enableval="$enable_textfile" | |
4245 | ||
4246 | if test "$enableval" = yes; then | |
4247 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
4248 | else | |
4249 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
4250 | fi | |
4251 | ||
4252 | else | |
4253 | ||
4254 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
4255 | if test "x$LINE" != x ; then | |
4256 | eval "DEFAULT_$LINE" | |
4257 | else | |
4258 | no_cache=1 | |
4259 | fi | |
4260 | ||
4261 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
4262 | ||
4263 | fi | |
4264 | ||
4265 | ||
4266 | eval "$ac_cv_use_textfile" | |
4267 | if test "$no_cache" != 1; then | |
4268 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
4269 | fi | |
4270 | ||
4271 | if test "$wxUSE_TEXTFILE" = yes; then | |
4272 | echo "$ac_t""yes" 1>&6 | |
4273 | else | |
4274 | echo "$ac_t""no" 1>&6 | |
4275 | fi | |
4276 | ||
4277 | ||
4278 | enablestring= | |
4279 | echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6 | |
4280 | echo "configure:4281: checking for --${enablestring:-enable}-fontmap" >&5 | |
4281 | no_cache=0 | |
4282 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
4283 | if test "${enable_fontmap+set}" = set; then | |
4284 | enableval="$enable_fontmap" | |
4285 | ||
4286 | if test "$enableval" = yes; then | |
4287 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
4288 | else | |
4289 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
4290 | fi | |
4291 | ||
4292 | else | |
4293 | ||
4294 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
4295 | if test "x$LINE" != x ; then | |
4296 | eval "DEFAULT_$LINE" | |
4297 | else | |
4298 | no_cache=1 | |
4299 | fi | |
4300 | ||
4301 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
4302 | ||
4303 | fi | |
4304 | ||
4305 | ||
4306 | eval "$ac_cv_use_fontmap" | |
4307 | if test "$no_cache" != 1; then | |
4308 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
4309 | fi | |
4310 | ||
4311 | if test "$wxUSE_FONTMAP" = yes; then | |
4312 | echo "$ac_t""yes" 1>&6 | |
4313 | else | |
4314 | echo "$ac_t""no" 1>&6 | |
4315 | fi | |
4316 | ||
4317 | ||
4318 | enablestring= | |
4319 | echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6 | |
4320 | echo "configure:4321: checking for --${enablestring:-enable}-unicode" >&5 | |
4321 | no_cache=0 | |
4322 | # Check whether --enable-unicode or --disable-unicode was given. | |
4323 | if test "${enable_unicode+set}" = set; then | |
4324 | enableval="$enable_unicode" | |
4325 | ||
4326 | if test "$enableval" = yes; then | |
4327 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4328 | else | |
4329 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4330 | fi | |
4331 | ||
4332 | else | |
4333 | ||
4334 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
4335 | if test "x$LINE" != x ; then | |
4336 | eval "DEFAULT_$LINE" | |
4337 | else | |
4338 | no_cache=1 | |
4339 | fi | |
4340 | ||
4341 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
4342 | ||
4343 | fi | |
4344 | ||
4345 | ||
4346 | eval "$ac_cv_use_unicode" | |
4347 | if test "$no_cache" != 1; then | |
4348 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4349 | fi | |
4350 | ||
4351 | if test "$wxUSE_UNICODE" = yes; then | |
4352 | echo "$ac_t""yes" 1>&6 | |
4353 | else | |
4354 | echo "$ac_t""no" 1>&6 | |
4355 | fi | |
4356 | ||
4357 | ||
4358 | enablestring= | |
4359 | echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6 | |
4360 | echo "configure:4361: checking for --${enablestring:-enable}-mslu" >&5 | |
4361 | no_cache=0 | |
4362 | # Check whether --enable-mslu or --disable-mslu was given. | |
4363 | if test "${enable_mslu+set}" = set; then | |
4364 | enableval="$enable_mslu" | |
4365 | ||
4366 | if test "$enableval" = yes; then | |
4367 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4368 | else | |
4369 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4370 | fi | |
4371 | ||
4372 | else | |
4373 | ||
4374 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
4375 | if test "x$LINE" != x ; then | |
4376 | eval "DEFAULT_$LINE" | |
4377 | else | |
4378 | no_cache=1 | |
4379 | fi | |
4380 | ||
4381 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
4382 | ||
4383 | fi | |
4384 | ||
4385 | ||
4386 | eval "$ac_cv_use_mslu" | |
4387 | if test "$no_cache" != 1; then | |
4388 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4389 | fi | |
4390 | ||
4391 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
4392 | echo "$ac_t""yes" 1>&6 | |
4393 | else | |
4394 | echo "$ac_t""no" 1>&6 | |
4395 | fi | |
4396 | ||
4397 | ||
4398 | enablestring= | |
4399 | echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6 | |
4400 | echo "configure:4401: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
4401 | no_cache=0 | |
4402 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4403 | if test "${enable_wxprintfv+set}" = set; then | |
4404 | enableval="$enable_wxprintfv" | |
4405 | ||
4406 | if test "$enableval" = yes; then | |
4407 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
4408 | else | |
4409 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4410 | fi | |
4411 | ||
4412 | else | |
4413 | ||
4414 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
4415 | if test "x$LINE" != x ; then | |
4416 | eval "DEFAULT_$LINE" | |
4417 | else | |
4418 | no_cache=1 | |
4419 | fi | |
4420 | ||
4421 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
4422 | ||
4423 | fi | |
4424 | ||
4425 | ||
4426 | eval "$ac_cv_use_wxprintfv" | |
4427 | if test "$no_cache" != 1; then | |
4428 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4429 | fi | |
4430 | ||
4431 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
4432 | echo "$ac_t""yes" 1>&6 | |
4433 | else | |
4434 | echo "$ac_t""no" 1>&6 | |
4435 | fi | |
4436 | ||
4437 | ||
4438 | enablestring= | |
4439 | echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6 | |
4440 | echo "configure:4441: checking for --${enablestring:-enable}-std_iostreams" >&5 | |
4441 | no_cache=0 | |
4442 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4443 | if test "${enable_std_iostreams+set}" = set; then | |
4444 | enableval="$enable_std_iostreams" | |
4445 | ||
4446 | if test "$enableval" = yes; then | |
4447 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4448 | else | |
4449 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4450 | fi | |
4451 | ||
4452 | else | |
4453 | ||
4454 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
4455 | if test "x$LINE" != x ; then | |
4456 | eval "DEFAULT_$LINE" | |
4457 | else | |
4458 | no_cache=1 | |
4459 | fi | |
4460 | ||
4461 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
4462 | ||
4463 | fi | |
4464 | ||
4465 | ||
4466 | eval "$ac_cv_use_std_iostreams" | |
4467 | if test "$no_cache" != 1; then | |
4468 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4469 | fi | |
4470 | ||
4471 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
4472 | echo "$ac_t""yes" 1>&6 | |
4473 | else | |
4474 | echo "$ac_t""no" 1>&6 | |
4475 | fi | |
4476 | ||
4477 | ||
4478 | enablestring= | |
4479 | echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6 | |
4480 | echo "configure:4481: checking for --${enablestring:-enable}-filesystem" >&5 | |
4481 | no_cache=0 | |
4482 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4483 | if test "${enable_filesystem+set}" = set; then | |
4484 | enableval="$enable_filesystem" | |
4485 | ||
4486 | if test "$enableval" = yes; then | |
4487 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4488 | else | |
4489 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4490 | fi | |
4491 | ||
4492 | else | |
4493 | ||
4494 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
4495 | if test "x$LINE" != x ; then | |
4496 | eval "DEFAULT_$LINE" | |
4497 | else | |
4498 | no_cache=1 | |
4499 | fi | |
4500 | ||
4501 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
4502 | ||
4503 | fi | |
4504 | ||
4505 | ||
4506 | eval "$ac_cv_use_filesystem" | |
4507 | if test "$no_cache" != 1; then | |
4508 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4509 | fi | |
4510 | ||
4511 | if test "$wxUSE_FILESYSTEM" = yes; then | |
4512 | echo "$ac_t""yes" 1>&6 | |
4513 | else | |
4514 | echo "$ac_t""no" 1>&6 | |
4515 | fi | |
4516 | ||
4517 | ||
4518 | enablestring= | |
4519 | echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6 | |
4520 | echo "configure:4521: checking for --${enablestring:-enable}-fs_inet" >&5 | |
4521 | no_cache=0 | |
4522 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4523 | if test "${enable_fs_inet+set}" = set; then | |
4524 | enableval="$enable_fs_inet" | |
4525 | ||
4526 | if test "$enableval" = yes; then | |
4527 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4528 | else | |
4529 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4530 | fi | |
4531 | ||
4532 | else | |
4533 | ||
4534 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
4535 | if test "x$LINE" != x ; then | |
4536 | eval "DEFAULT_$LINE" | |
4537 | else | |
4538 | no_cache=1 | |
4539 | fi | |
4540 | ||
4541 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
4542 | ||
4543 | fi | |
4544 | ||
4545 | ||
4546 | eval "$ac_cv_use_fs_inet" | |
4547 | if test "$no_cache" != 1; then | |
4548 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4549 | fi | |
4550 | ||
4551 | if test "$wxUSE_FS_INET" = yes; then | |
4552 | echo "$ac_t""yes" 1>&6 | |
4553 | else | |
4554 | echo "$ac_t""no" 1>&6 | |
4555 | fi | |
4556 | ||
4557 | ||
4558 | enablestring= | |
4559 | echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6 | |
4560 | echo "configure:4561: checking for --${enablestring:-enable}-fs_zip" >&5 | |
4561 | no_cache=0 | |
4562 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4563 | if test "${enable_fs_zip+set}" = set; then | |
4564 | enableval="$enable_fs_zip" | |
4565 | ||
4566 | if test "$enableval" = yes; then | |
4567 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4568 | else | |
4569 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4570 | fi | |
4571 | ||
4572 | else | |
4573 | ||
4574 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
4575 | if test "x$LINE" != x ; then | |
4576 | eval "DEFAULT_$LINE" | |
4577 | else | |
4578 | no_cache=1 | |
4579 | fi | |
4580 | ||
4581 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
4582 | ||
4583 | fi | |
4584 | ||
4585 | ||
4586 | eval "$ac_cv_use_fs_zip" | |
4587 | if test "$no_cache" != 1; then | |
4588 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4589 | fi | |
4590 | ||
4591 | if test "$wxUSE_FS_ZIP" = yes; then | |
4592 | echo "$ac_t""yes" 1>&6 | |
4593 | else | |
4594 | echo "$ac_t""no" 1>&6 | |
4595 | fi | |
4596 | ||
4597 | ||
4598 | enablestring= | |
4599 | echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6 | |
4600 | echo "configure:4601: checking for --${enablestring:-enable}-zipstream" >&5 | |
4601 | no_cache=0 | |
4602 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4603 | if test "${enable_zipstream+set}" = set; then | |
4604 | enableval="$enable_zipstream" | |
4605 | ||
4606 | if test "$enableval" = yes; then | |
4607 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4608 | else | |
4609 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4610 | fi | |
4611 | ||
4612 | else | |
4613 | ||
4614 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
4615 | if test "x$LINE" != x ; then | |
4616 | eval "DEFAULT_$LINE" | |
4617 | else | |
4618 | no_cache=1 | |
4619 | fi | |
4620 | ||
4621 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
4622 | ||
4623 | fi | |
4624 | ||
4625 | ||
4626 | eval "$ac_cv_use_zipstream" | |
4627 | if test "$no_cache" != 1; then | |
4628 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4629 | fi | |
4630 | ||
4631 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
4632 | echo "$ac_t""yes" 1>&6 | |
4633 | else | |
4634 | echo "$ac_t""no" 1>&6 | |
4635 | fi | |
4636 | ||
4637 | ||
4638 | ||
4639 | enablestring= | |
4640 | echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6 | |
4641 | echo "configure:4642: checking for --${enablestring:-enable}-catch_segvs" >&5 | |
4642 | no_cache=0 | |
4643 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4644 | if test "${enable_catch_segvs+set}" = set; then | |
4645 | enableval="$enable_catch_segvs" | |
4646 | ||
4647 | if test "$enableval" = yes; then | |
4648 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4649 | else | |
4650 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4651 | fi | |
4652 | ||
4653 | else | |
4654 | ||
4655 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4656 | if test "x$LINE" != x ; then | |
4657 | eval "DEFAULT_$LINE" | |
4658 | else | |
4659 | no_cache=1 | |
4660 | fi | |
4661 | ||
4662 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4663 | ||
4664 | fi | |
4665 | ||
4666 | ||
4667 | eval "$ac_cv_use_catch_segvs" | |
4668 | if test "$no_cache" != 1; then | |
4669 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4670 | fi | |
4671 | ||
4672 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4673 | echo "$ac_t""yes" 1>&6 | |
4674 | else | |
4675 | echo "$ac_t""no" 1>&6 | |
4676 | fi | |
4677 | ||
4678 | ||
4679 | enablestring= | |
4680 | echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6 | |
4681 | echo "configure:4682: checking for --${enablestring:-enable}-snglinst" >&5 | |
4682 | no_cache=0 | |
4683 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4684 | if test "${enable_snglinst+set}" = set; then | |
4685 | enableval="$enable_snglinst" | |
4686 | ||
4687 | if test "$enableval" = yes; then | |
4688 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4689 | else | |
4690 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4691 | fi | |
4692 | ||
4693 | else | |
4694 | ||
4695 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
4696 | if test "x$LINE" != x ; then | |
4697 | eval "DEFAULT_$LINE" | |
4698 | else | |
4699 | no_cache=1 | |
4700 | fi | |
4701 | ||
4702 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
4703 | ||
4704 | fi | |
4705 | ||
4706 | ||
4707 | eval "$ac_cv_use_snglinst" | |
4708 | if test "$no_cache" != 1; then | |
4709 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4710 | fi | |
4711 | ||
4712 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
4713 | echo "$ac_t""yes" 1>&6 | |
4714 | else | |
4715 | echo "$ac_t""no" 1>&6 | |
4716 | fi | |
4717 | ||
4718 | ||
4719 | ||
4720 | enablestring= | |
4721 | echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6 | |
4722 | echo "configure:4723: checking for --${enablestring:-enable}-mimetype" >&5 | |
4723 | no_cache=0 | |
4724 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4725 | if test "${enable_mimetype+set}" = set; then | |
4726 | enableval="$enable_mimetype" | |
4727 | ||
4728 | if test "$enableval" = yes; then | |
4729 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4730 | else | |
4731 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4732 | fi | |
4733 | ||
4734 | else | |
4735 | ||
4736 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4737 | if test "x$LINE" != x ; then | |
4738 | eval "DEFAULT_$LINE" | |
4739 | else | |
4740 | no_cache=1 | |
4741 | fi | |
4742 | ||
4743 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4744 | ||
4745 | fi | |
4746 | ||
4747 | ||
4748 | eval "$ac_cv_use_mimetype" | |
4749 | if test "$no_cache" != 1; then | |
4750 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4751 | fi | |
4752 | ||
4753 | if test "$wxUSE_MIMETYPE" = yes; then | |
4754 | echo "$ac_t""yes" 1>&6 | |
4755 | else | |
4756 | echo "$ac_t""no" 1>&6 | |
4757 | fi | |
4758 | ||
4759 | ||
4760 | enablestring= | |
4761 | echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6 | |
4762 | echo "configure:4763: checking for --${enablestring:-enable}-system_options" >&5 | |
4763 | no_cache=0 | |
4764 | # Check whether --enable-system_options or --disable-system_options was given. | |
4765 | if test "${enable_system_options+set}" = set; then | |
4766 | enableval="$enable_system_options" | |
4767 | ||
4768 | if test "$enableval" = yes; then | |
4769 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4770 | else | |
4771 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4772 | fi | |
4773 | ||
4774 | else | |
4775 | ||
4776 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4777 | if test "x$LINE" != x ; then | |
4778 | eval "DEFAULT_$LINE" | |
4779 | else | |
4780 | no_cache=1 | |
4781 | fi | |
4782 | ||
4783 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4784 | ||
4785 | fi | |
4786 | ||
4787 | ||
4788 | eval "$ac_cv_use_system_options" | |
4789 | if test "$no_cache" != 1; then | |
4790 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4791 | fi | |
4792 | ||
4793 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4794 | echo "$ac_t""yes" 1>&6 | |
4795 | else | |
4796 | echo "$ac_t""no" 1>&6 | |
4797 | fi | |
4798 | ||
4799 | ||
4800 | ||
4801 | enablestring= | |
4802 | echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6 | |
4803 | echo "configure:4804: checking for --${enablestring:-enable}-url" >&5 | |
4804 | no_cache=0 | |
4805 | # Check whether --enable-url or --disable-url was given. | |
4806 | if test "${enable_url+set}" = set; then | |
4807 | enableval="$enable_url" | |
4808 | ||
4809 | if test "$enableval" = yes; then | |
4810 | ac_cv_use_url='wxUSE_URL=yes' | |
4811 | else | |
4812 | ac_cv_use_url='wxUSE_URL=no' | |
4813 | fi | |
4814 | ||
4815 | else | |
4816 | ||
4817 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
4818 | if test "x$LINE" != x ; then | |
4819 | eval "DEFAULT_$LINE" | |
4820 | else | |
4821 | no_cache=1 | |
4822 | fi | |
4823 | ||
4824 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4825 | ||
4826 | fi | |
4827 | ||
4828 | ||
4829 | eval "$ac_cv_use_url" | |
4830 | if test "$no_cache" != 1; then | |
4831 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4832 | fi | |
4833 | ||
4834 | if test "$wxUSE_URL" = yes; then | |
4835 | echo "$ac_t""yes" 1>&6 | |
4836 | else | |
4837 | echo "$ac_t""no" 1>&6 | |
4838 | fi | |
4839 | ||
4840 | ||
4841 | enablestring= | |
4842 | echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6 | |
4843 | echo "configure:4844: checking for --${enablestring:-enable}-protocol" >&5 | |
4844 | no_cache=0 | |
4845 | # Check whether --enable-protocol or --disable-protocol was given. | |
4846 | if test "${enable_protocol+set}" = set; then | |
4847 | enableval="$enable_protocol" | |
4848 | ||
4849 | if test "$enableval" = yes; then | |
4850 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4851 | else | |
4852 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4853 | fi | |
4854 | ||
4855 | else | |
4856 | ||
4857 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4858 | if test "x$LINE" != x ; then | |
4859 | eval "DEFAULT_$LINE" | |
4860 | else | |
4861 | no_cache=1 | |
4862 | fi | |
4863 | ||
4864 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4865 | ||
4866 | fi | |
4867 | ||
4868 | ||
4869 | eval "$ac_cv_use_protocol" | |
4870 | if test "$no_cache" != 1; then | |
4871 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4872 | fi | |
4873 | ||
4874 | if test "$wxUSE_PROTOCOL" = yes; then | |
4875 | echo "$ac_t""yes" 1>&6 | |
4876 | else | |
4877 | echo "$ac_t""no" 1>&6 | |
4878 | fi | |
4879 | ||
4880 | ||
4881 | enablestring= | |
4882 | echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6 | |
4883 | echo "configure:4884: checking for --${enablestring:-enable}-protocol_http" >&5 | |
4884 | no_cache=0 | |
4885 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4886 | if test "${enable_protocol_http+set}" = set; then | |
4887 | enableval="$enable_protocol_http" | |
4888 | ||
4889 | if test "$enableval" = yes; then | |
4890 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4891 | else | |
4892 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4893 | fi | |
4894 | ||
4895 | else | |
4896 | ||
4897 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4898 | if test "x$LINE" != x ; then | |
4899 | eval "DEFAULT_$LINE" | |
4900 | else | |
4901 | no_cache=1 | |
4902 | fi | |
4903 | ||
4904 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4905 | ||
4906 | fi | |
4907 | ||
4908 | ||
4909 | eval "$ac_cv_use_protocol_http" | |
4910 | if test "$no_cache" != 1; then | |
4911 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4912 | fi | |
4913 | ||
4914 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4915 | echo "$ac_t""yes" 1>&6 | |
4916 | else | |
4917 | echo "$ac_t""no" 1>&6 | |
4918 | fi | |
4919 | ||
4920 | ||
4921 | enablestring= | |
4922 | echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6 | |
4923 | echo "configure:4924: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
4924 | no_cache=0 | |
4925 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4926 | if test "${enable_protocol_ftp+set}" = set; then | |
4927 | enableval="$enable_protocol_ftp" | |
4928 | ||
4929 | if test "$enableval" = yes; then | |
4930 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4931 | else | |
4932 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4933 | fi | |
4934 | ||
4935 | else | |
4936 | ||
4937 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4938 | if test "x$LINE" != x ; then | |
4939 | eval "DEFAULT_$LINE" | |
4940 | else | |
4941 | no_cache=1 | |
4942 | fi | |
4943 | ||
4944 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4945 | ||
4946 | fi | |
4947 | ||
4948 | ||
4949 | eval "$ac_cv_use_protocol_ftp" | |
4950 | if test "$no_cache" != 1; then | |
4951 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4952 | fi | |
4953 | ||
4954 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4955 | echo "$ac_t""yes" 1>&6 | |
4956 | else | |
4957 | echo "$ac_t""no" 1>&6 | |
4958 | fi | |
4959 | ||
4960 | ||
4961 | enablestring= | |
4962 | echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6 | |
4963 | echo "configure:4964: checking for --${enablestring:-enable}-protocol_file" >&5 | |
4964 | no_cache=0 | |
4965 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4966 | if test "${enable_protocol_file+set}" = set; then | |
4967 | enableval="$enable_protocol_file" | |
4968 | ||
4969 | if test "$enableval" = yes; then | |
4970 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4971 | else | |
4972 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4973 | fi | |
4974 | ||
4975 | else | |
4976 | ||
4977 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4978 | if test "x$LINE" != x ; then | |
4979 | eval "DEFAULT_$LINE" | |
4980 | else | |
4981 | no_cache=1 | |
4982 | fi | |
4983 | ||
4984 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4985 | ||
4986 | fi | |
4987 | ||
4988 | ||
4989 | eval "$ac_cv_use_protocol_file" | |
4990 | if test "$no_cache" != 1; then | |
4991 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4992 | fi | |
4993 | ||
4994 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4995 | echo "$ac_t""yes" 1>&6 | |
4996 | else | |
4997 | echo "$ac_t""no" 1>&6 | |
4998 | fi | |
4999 | ||
5000 | ||
5001 | ||
5002 | ||
5003 | ||
5004 | enablestring= | |
5005 | echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6 | |
5006 | echo "configure:5007: checking for --${enablestring:-enable}-threads" >&5 | |
5007 | no_cache=0 | |
5008 | # Check whether --enable-threads or --disable-threads was given. | |
5009 | if test "${enable_threads+set}" = set; then | |
5010 | enableval="$enable_threads" | |
5011 | ||
5012 | if test "$enableval" = yes; then | |
5013 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
5014 | else | |
5015 | ac_cv_use_threads='wxUSE_THREADS=no' | |
5016 | fi | |
5017 | ||
5018 | else | |
5019 | ||
5020 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
5021 | if test "x$LINE" != x ; then | |
5022 | eval "DEFAULT_$LINE" | |
5023 | else | |
5024 | no_cache=1 | |
5025 | fi | |
5026 | ||
5027 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
5028 | ||
5029 | fi | |
5030 | ||
5031 | ||
5032 | eval "$ac_cv_use_threads" | |
5033 | if test "$no_cache" != 1; then | |
5034 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5035 | fi | |
5036 | ||
5037 | if test "$wxUSE_THREADS" = yes; then | |
5038 | echo "$ac_t""yes" 1>&6 | |
5039 | else | |
5040 | echo "$ac_t""no" 1>&6 | |
5041 | fi | |
5042 | ||
5043 | ||
5044 | if test "$wxUSE_GUI" = "yes"; then | |
5045 | ||
5046 | ||
5047 | ||
5048 | enablestring= | |
5049 | echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6 | |
5050 | echo "configure:5051: checking for --${enablestring:-enable}-docview" >&5 | |
5051 | no_cache=0 | |
5052 | # Check whether --enable-docview or --disable-docview was given. | |
5053 | if test "${enable_docview+set}" = set; then | |
5054 | enableval="$enable_docview" | |
5055 | ||
5056 | if test "$enableval" = yes; then | |
5057 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5058 | else | |
5059 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5060 | fi | |
5061 | ||
5062 | else | |
5063 | ||
5064 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
5065 | if test "x$LINE" != x ; then | |
5066 | eval "DEFAULT_$LINE" | |
5067 | else | |
5068 | no_cache=1 | |
5069 | fi | |
5070 | ||
5071 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
5072 | ||
5073 | fi | |
5074 | ||
5075 | ||
5076 | eval "$ac_cv_use_docview" | |
5077 | if test "$no_cache" != 1; then | |
5078 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5079 | fi | |
5080 | ||
5081 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
5082 | echo "$ac_t""yes" 1>&6 | |
5083 | else | |
5084 | echo "$ac_t""no" 1>&6 | |
5085 | fi | |
5086 | ||
5087 | ||
5088 | enablestring= | |
5089 | echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6 | |
5090 | echo "configure:5091: checking for --${enablestring:-enable}-help" >&5 | |
5091 | no_cache=0 | |
5092 | # Check whether --enable-help or --disable-help was given. | |
5093 | if test "${enable_help+set}" = set; then | |
5094 | enableval="$enable_help" | |
5095 | ||
5096 | if test "$enableval" = yes; then | |
5097 | ac_cv_use_help='wxUSE_HELP=yes' | |
5098 | else | |
5099 | ac_cv_use_help='wxUSE_HELP=no' | |
5100 | fi | |
5101 | ||
5102 | else | |
5103 | ||
5104 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
5105 | if test "x$LINE" != x ; then | |
5106 | eval "DEFAULT_$LINE" | |
5107 | else | |
5108 | no_cache=1 | |
5109 | fi | |
5110 | ||
5111 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
5112 | ||
5113 | fi | |
5114 | ||
5115 | ||
5116 | eval "$ac_cv_use_help" | |
5117 | if test "$no_cache" != 1; then | |
5118 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5119 | fi | |
5120 | ||
5121 | if test "$wxUSE_HELP" = yes; then | |
5122 | echo "$ac_t""yes" 1>&6 | |
5123 | else | |
5124 | echo "$ac_t""no" 1>&6 | |
5125 | fi | |
5126 | ||
5127 | ||
5128 | enablestring= | |
5129 | echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6 | |
5130 | echo "configure:5131: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
5131 | no_cache=0 | |
5132 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5133 | if test "${enable_mshtmlhelp+set}" = set; then | |
5134 | enableval="$enable_mshtmlhelp" | |
5135 | ||
5136 | if test "$enableval" = yes; then | |
5137 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5138 | else | |
5139 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5140 | fi | |
5141 | ||
5142 | else | |
5143 | ||
5144 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
5145 | if test "x$LINE" != x ; then | |
5146 | eval "DEFAULT_$LINE" | |
5147 | else | |
5148 | no_cache=1 | |
5149 | fi | |
5150 | ||
5151 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
5152 | ||
5153 | fi | |
5154 | ||
5155 | ||
5156 | eval "$ac_cv_use_mshtmlhelp" | |
5157 | if test "$no_cache" != 1; then | |
5158 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5159 | fi | |
5160 | ||
5161 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
5162 | echo "$ac_t""yes" 1>&6 | |
5163 | else | |
5164 | echo "$ac_t""no" 1>&6 | |
5165 | fi | |
5166 | ||
5167 | ||
5168 | enablestring= | |
5169 | echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6 | |
5170 | echo "configure:5171: checking for --${enablestring:-enable}-html" >&5 | |
5171 | no_cache=0 | |
5172 | # Check whether --enable-html or --disable-html was given. | |
5173 | if test "${enable_html+set}" = set; then | |
5174 | enableval="$enable_html" | |
5175 | ||
5176 | if test "$enableval" = yes; then | |
5177 | ac_cv_use_html='wxUSE_HTML=yes' | |
5178 | else | |
5179 | ac_cv_use_html='wxUSE_HTML=no' | |
5180 | fi | |
5181 | ||
5182 | else | |
5183 | ||
5184 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
5185 | if test "x$LINE" != x ; then | |
5186 | eval "DEFAULT_$LINE" | |
5187 | else | |
5188 | no_cache=1 | |
5189 | fi | |
5190 | ||
5191 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5192 | ||
5193 | fi | |
5194 | ||
5195 | ||
5196 | eval "$ac_cv_use_html" | |
5197 | if test "$no_cache" != 1; then | |
5198 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5199 | fi | |
5200 | ||
5201 | if test "$wxUSE_HTML" = yes; then | |
5202 | echo "$ac_t""yes" 1>&6 | |
5203 | else | |
5204 | echo "$ac_t""no" 1>&6 | |
5205 | fi | |
5206 | ||
5207 | ||
5208 | enablestring= | |
5209 | echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6 | |
5210 | echo "configure:5211: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
5211 | no_cache=0 | |
5212 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5213 | if test "${enable_htmlhelp+set}" = set; then | |
5214 | enableval="$enable_htmlhelp" | |
5215 | ||
5216 | if test "$enableval" = yes; then | |
5217 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5218 | else | |
5219 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5220 | fi | |
5221 | ||
5222 | else | |
5223 | ||
5224 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
5225 | if test "x$LINE" != x ; then | |
5226 | eval "DEFAULT_$LINE" | |
5227 | else | |
5228 | no_cache=1 | |
5229 | fi | |
5230 | ||
5231 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
5232 | ||
5233 | fi | |
5234 | ||
5235 | ||
5236 | eval "$ac_cv_use_htmlhelp" | |
5237 | if test "$no_cache" != 1; then | |
5238 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5239 | fi | |
5240 | ||
5241 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
5242 | echo "$ac_t""yes" 1>&6 | |
5243 | else | |
5244 | echo "$ac_t""no" 1>&6 | |
5245 | fi | |
5246 | ||
5247 | ||
5248 | enablestring= | |
5249 | echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6 | |
5250 | echo "configure:5251: checking for --${enablestring:-enable}-constraints" >&5 | |
5251 | no_cache=0 | |
5252 | # Check whether --enable-constraints or --disable-constraints was given. | |
5253 | if test "${enable_constraints+set}" = set; then | |
5254 | enableval="$enable_constraints" | |
5255 | ||
5256 | if test "$enableval" = yes; then | |
5257 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5258 | else | |
5259 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5260 | fi | |
5261 | ||
5262 | else | |
5263 | ||
5264 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
5265 | if test "x$LINE" != x ; then | |
5266 | eval "DEFAULT_$LINE" | |
5267 | else | |
5268 | no_cache=1 | |
5269 | fi | |
5270 | ||
5271 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
5272 | ||
5273 | fi | |
5274 | ||
5275 | ||
5276 | eval "$ac_cv_use_constraints" | |
5277 | if test "$no_cache" != 1; then | |
5278 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5279 | fi | |
5280 | ||
5281 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
5282 | echo "$ac_t""yes" 1>&6 | |
5283 | else | |
5284 | echo "$ac_t""no" 1>&6 | |
5285 | fi | |
5286 | ||
5287 | ||
5288 | enablestring= | |
5289 | echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6 | |
5290 | echo "configure:5291: checking for --${enablestring:-enable}-printarch" >&5 | |
5291 | no_cache=0 | |
5292 | # Check whether --enable-printarch or --disable-printarch was given. | |
5293 | if test "${enable_printarch+set}" = set; then | |
5294 | enableval="$enable_printarch" | |
5295 | ||
5296 | if test "$enableval" = yes; then | |
5297 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5298 | else | |
5299 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5300 | fi | |
5301 | ||
5302 | else | |
5303 | ||
5304 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
5305 | if test "x$LINE" != x ; then | |
5306 | eval "DEFAULT_$LINE" | |
5307 | else | |
5308 | no_cache=1 | |
5309 | fi | |
5310 | ||
5311 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
5312 | ||
5313 | fi | |
5314 | ||
5315 | ||
5316 | eval "$ac_cv_use_printarch" | |
5317 | if test "$no_cache" != 1; then | |
5318 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5319 | fi | |
5320 | ||
5321 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
5322 | echo "$ac_t""yes" 1>&6 | |
5323 | else | |
5324 | echo "$ac_t""no" 1>&6 | |
5325 | fi | |
5326 | ||
5327 | ||
5328 | enablestring= | |
5329 | echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6 | |
5330 | echo "configure:5331: checking for --${enablestring:-enable}-mdi" >&5 | |
5331 | no_cache=0 | |
5332 | # Check whether --enable-mdi or --disable-mdi was given. | |
5333 | if test "${enable_mdi+set}" = set; then | |
5334 | enableval="$enable_mdi" | |
5335 | ||
5336 | if test "$enableval" = yes; then | |
5337 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5338 | else | |
5339 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5340 | fi | |
5341 | ||
5342 | else | |
5343 | ||
5344 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
5345 | if test "x$LINE" != x ; then | |
5346 | eval "DEFAULT_$LINE" | |
5347 | else | |
5348 | no_cache=1 | |
5349 | fi | |
5350 | ||
5351 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
5352 | ||
5353 | fi | |
5354 | ||
5355 | ||
5356 | eval "$ac_cv_use_mdi" | |
5357 | if test "$no_cache" != 1; then | |
5358 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5359 | fi | |
5360 | ||
5361 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
5362 | echo "$ac_t""yes" 1>&6 | |
5363 | else | |
5364 | echo "$ac_t""no" 1>&6 | |
5365 | fi | |
5366 | ||
5367 | ||
5368 | enablestring= | |
5369 | echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6 | |
5370 | echo "configure:5371: checking for --${enablestring:-enable}-loggui" >&5 | |
5371 | no_cache=0 | |
5372 | # Check whether --enable-loggui or --disable-loggui was given. | |
5373 | if test "${enable_loggui+set}" = set; then | |
5374 | enableval="$enable_loggui" | |
5375 | ||
5376 | if test "$enableval" = yes; then | |
5377 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5378 | else | |
5379 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5380 | fi | |
5381 | ||
5382 | else | |
5383 | ||
5384 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
5385 | if test "x$LINE" != x ; then | |
5386 | eval "DEFAULT_$LINE" | |
5387 | else | |
5388 | no_cache=1 | |
5389 | fi | |
5390 | ||
5391 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
5392 | ||
5393 | fi | |
5394 | ||
5395 | ||
5396 | eval "$ac_cv_use_loggui" | |
5397 | if test "$no_cache" != 1; then | |
5398 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5399 | fi | |
5400 | ||
5401 | if test "$wxUSE_LOGGUI" = yes; then | |
5402 | echo "$ac_t""yes" 1>&6 | |
5403 | else | |
5404 | echo "$ac_t""no" 1>&6 | |
5405 | fi | |
5406 | ||
5407 | ||
5408 | enablestring= | |
5409 | echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6 | |
5410 | echo "configure:5411: checking for --${enablestring:-enable}-logwin" >&5 | |
5411 | no_cache=0 | |
5412 | # Check whether --enable-logwin or --disable-logwin was given. | |
5413 | if test "${enable_logwin+set}" = set; then | |
5414 | enableval="$enable_logwin" | |
5415 | ||
5416 | if test "$enableval" = yes; then | |
5417 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5418 | else | |
5419 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5420 | fi | |
5421 | ||
5422 | else | |
5423 | ||
5424 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
5425 | if test "x$LINE" != x ; then | |
5426 | eval "DEFAULT_$LINE" | |
5427 | else | |
5428 | no_cache=1 | |
5429 | fi | |
5430 | ||
5431 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
5432 | ||
5433 | fi | |
5434 | ||
5435 | ||
5436 | eval "$ac_cv_use_logwin" | |
5437 | if test "$no_cache" != 1; then | |
5438 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5439 | fi | |
5440 | ||
5441 | if test "$wxUSE_LOGWINDOW" = yes; then | |
5442 | echo "$ac_t""yes" 1>&6 | |
5443 | else | |
5444 | echo "$ac_t""no" 1>&6 | |
5445 | fi | |
5446 | ||
5447 | ||
5448 | enablestring= | |
5449 | echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6 | |
5450 | echo "configure:5451: checking for --${enablestring:-enable}-logdialog" >&5 | |
5451 | no_cache=0 | |
5452 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5453 | if test "${enable_logdialog+set}" = set; then | |
5454 | enableval="$enable_logdialog" | |
5455 | ||
5456 | if test "$enableval" = yes; then | |
5457 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5458 | else | |
5459 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5460 | fi | |
5461 | ||
5462 | else | |
5463 | ||
5464 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
5465 | if test "x$LINE" != x ; then | |
5466 | eval "DEFAULT_$LINE" | |
5467 | else | |
5468 | no_cache=1 | |
5469 | fi | |
5470 | ||
5471 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
5472 | ||
5473 | fi | |
5474 | ||
5475 | ||
5476 | eval "$ac_cv_use_logdialog" | |
5477 | if test "$no_cache" != 1; then | |
5478 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5479 | fi | |
5480 | ||
5481 | if test "$wxUSE_LOGDIALOG" = yes; then | |
5482 | echo "$ac_t""yes" 1>&6 | |
5483 | else | |
5484 | echo "$ac_t""no" 1>&6 | |
5485 | fi | |
5486 | ||
5487 | ||
5488 | ||
5489 | enablestring= | |
5490 | echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6 | |
5491 | echo "configure:5492: checking for --${enablestring:-enable}-postscript" >&5 | |
5492 | no_cache=0 | |
5493 | # Check whether --enable-postscript or --disable-postscript was given. | |
5494 | if test "${enable_postscript+set}" = set; then | |
5495 | enableval="$enable_postscript" | |
5496 | ||
5497 | if test "$enableval" = yes; then | |
5498 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5499 | else | |
5500 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5501 | fi | |
5502 | ||
5503 | else | |
5504 | ||
5505 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
5506 | if test "x$LINE" != x ; then | |
5507 | eval "DEFAULT_$LINE" | |
5508 | else | |
5509 | no_cache=1 | |
5510 | fi | |
5511 | ||
5512 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
5513 | ||
5514 | fi | |
5515 | ||
5516 | ||
5517 | eval "$ac_cv_use_postscript" | |
5518 | if test "$no_cache" != 1; then | |
5519 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5520 | fi | |
5521 | ||
5522 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
5523 | echo "$ac_t""yes" 1>&6 | |
5524 | else | |
5525 | echo "$ac_t""no" 1>&6 | |
5526 | fi | |
5527 | ||
5528 | ||
5529 | ||
5530 | ||
5531 | ||
5532 | enablestring= | |
5533 | echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6 | |
5534 | echo "configure:5535: checking for --${enablestring:-enable}-prologio" >&5 | |
5535 | no_cache=0 | |
5536 | # Check whether --enable-prologio or --disable-prologio was given. | |
5537 | if test "${enable_prologio+set}" = set; then | |
5538 | enableval="$enable_prologio" | |
5539 | ||
5540 | if test "$enableval" = yes; then | |
5541 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5542 | else | |
5543 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5544 | fi | |
5545 | ||
5546 | else | |
5547 | ||
5548 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
5549 | if test "x$LINE" != x ; then | |
5550 | eval "DEFAULT_$LINE" | |
5551 | else | |
5552 | no_cache=1 | |
5553 | fi | |
5554 | ||
5555 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
5556 | ||
5557 | fi | |
5558 | ||
5559 | ||
5560 | eval "$ac_cv_use_prologio" | |
5561 | if test "$no_cache" != 1; then | |
5562 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5563 | fi | |
5564 | ||
5565 | if test "$wxUSE_PROLOGIO" = yes; then | |
5566 | echo "$ac_t""yes" 1>&6 | |
5567 | else | |
5568 | echo "$ac_t""no" 1>&6 | |
5569 | fi | |
5570 | ||
5571 | ||
5572 | enablestring= | |
5573 | echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6 | |
5574 | echo "configure:5575: checking for --${enablestring:-enable}-resources" >&5 | |
5575 | no_cache=0 | |
5576 | # Check whether --enable-resources or --disable-resources was given. | |
5577 | if test "${enable_resources+set}" = set; then | |
5578 | enableval="$enable_resources" | |
5579 | ||
5580 | if test "$enableval" = yes; then | |
5581 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5582 | else | |
5583 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5584 | fi | |
5585 | ||
5586 | else | |
5587 | ||
5588 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
5589 | if test "x$LINE" != x ; then | |
5590 | eval "DEFAULT_$LINE" | |
5591 | else | |
5592 | no_cache=1 | |
5593 | fi | |
5594 | ||
5595 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
5596 | ||
5597 | fi | |
5598 | ||
5599 | ||
5600 | eval "$ac_cv_use_resources" | |
5601 | if test "$no_cache" != 1; then | |
5602 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5603 | fi | |
5604 | ||
5605 | if test "$wxUSE_RESOURCES" = yes; then | |
5606 | echo "$ac_t""yes" 1>&6 | |
5607 | else | |
5608 | echo "$ac_t""no" 1>&6 | |
5609 | fi | |
5610 | ||
5611 | ||
5612 | ||
5613 | enablestring= | |
5614 | echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6 | |
5615 | echo "configure:5616: checking for --${enablestring:-enable}-xresources" >&5 | |
5616 | no_cache=0 | |
5617 | # Check whether --enable-xresources or --disable-xresources was given. | |
5618 | if test "${enable_xresources+set}" = set; then | |
5619 | enableval="$enable_xresources" | |
5620 | ||
5621 | if test "$enableval" = yes; then | |
5622 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5623 | else | |
5624 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5625 | fi | |
5626 | ||
5627 | else | |
5628 | ||
5629 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` | |
5630 | if test "x$LINE" != x ; then | |
5631 | eval "DEFAULT_$LINE" | |
5632 | else | |
5633 | no_cache=1 | |
5634 | fi | |
5635 | ||
5636 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
5637 | ||
5638 | fi | |
5639 | ||
5640 | ||
5641 | eval "$ac_cv_use_xresources" | |
5642 | if test "$no_cache" != 1; then | |
5643 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5644 | fi | |
5645 | ||
5646 | if test "$wxUSE_X_RESOURCES" = yes; then | |
5647 | echo "$ac_t""yes" 1>&6 | |
5648 | else | |
5649 | echo "$ac_t""no" 1>&6 | |
5650 | fi | |
5651 | ||
5652 | ||
5653 | ||
5654 | ||
5655 | enablestring= | |
5656 | echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6 | |
5657 | echo "configure:5658: checking for --${enablestring:-enable}-clipboard" >&5 | |
5658 | no_cache=0 | |
5659 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5660 | if test "${enable_clipboard+set}" = set; then | |
5661 | enableval="$enable_clipboard" | |
5662 | ||
5663 | if test "$enableval" = yes; then | |
5664 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5665 | else | |
5666 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5667 | fi | |
5668 | ||
5669 | else | |
5670 | ||
5671 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
5672 | if test "x$LINE" != x ; then | |
5673 | eval "DEFAULT_$LINE" | |
5674 | else | |
5675 | no_cache=1 | |
5676 | fi | |
5677 | ||
5678 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
5679 | ||
5680 | fi | |
5681 | ||
5682 | ||
5683 | eval "$ac_cv_use_clipboard" | |
5684 | if test "$no_cache" != 1; then | |
5685 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5686 | fi | |
5687 | ||
5688 | if test "$wxUSE_CLIPBOARD" = yes; then | |
5689 | echo "$ac_t""yes" 1>&6 | |
5690 | else | |
5691 | echo "$ac_t""no" 1>&6 | |
5692 | fi | |
5693 | ||
5694 | ||
5695 | enablestring= | |
5696 | echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6 | |
5697 | echo "configure:5698: checking for --${enablestring:-enable}-dnd" >&5 | |
5698 | no_cache=0 | |
5699 | # Check whether --enable-dnd or --disable-dnd was given. | |
5700 | if test "${enable_dnd+set}" = set; then | |
5701 | enableval="$enable_dnd" | |
5702 | ||
5703 | if test "$enableval" = yes; then | |
5704 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5705 | else | |
5706 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5707 | fi | |
5708 | ||
5709 | else | |
5710 | ||
5711 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
5712 | if test "x$LINE" != x ; then | |
5713 | eval "DEFAULT_$LINE" | |
5714 | else | |
5715 | no_cache=1 | |
5716 | fi | |
5717 | ||
5718 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
5719 | ||
5720 | fi | |
5721 | ||
5722 | ||
5723 | eval "$ac_cv_use_dnd" | |
5724 | if test "$no_cache" != 1; then | |
5725 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5726 | fi | |
5727 | ||
5728 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
5729 | echo "$ac_t""yes" 1>&6 | |
5730 | else | |
5731 | echo "$ac_t""no" 1>&6 | |
5732 | fi | |
5733 | ||
5734 | ||
5735 | enablestring= | |
5736 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
5737 | echo "configure:5738: checking for --${enablestring:-enable}-metafile" >&5 | |
5738 | no_cache=0 | |
5739 | # Check whether --enable-metafile or --disable-metafile was given. | |
5740 | if test "${enable_metafile+set}" = set; then | |
5741 | enableval="$enable_metafile" | |
5742 | ||
5743 | if test "$enableval" = yes; then | |
5744 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5745 | else | |
5746 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5747 | fi | |
5748 | ||
5749 | else | |
5750 | ||
5751 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
5752 | if test "x$LINE" != x ; then | |
5753 | eval "DEFAULT_$LINE" | |
5754 | else | |
5755 | no_cache=1 | |
5756 | fi | |
5757 | ||
5758 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
5759 | ||
5760 | fi | |
5761 | ||
5762 | ||
5763 | eval "$ac_cv_use_metafile" | |
5764 | if test "$no_cache" != 1; then | |
5765 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5766 | fi | |
5767 | ||
5768 | if test "$wxUSE_METAFILE" = yes; then | |
5769 | echo "$ac_t""yes" 1>&6 | |
5770 | else | |
5771 | echo "$ac_t""no" 1>&6 | |
5772 | fi | |
5773 | ||
5774 | ||
5775 | ||
5776 | enablestring= | |
5777 | echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6 | |
5778 | echo "configure:5779: checking for --${enablestring:-enable}-treelayout" >&5 | |
5779 | no_cache=0 | |
5780 | # Check whether --enable-treelayout or --disable-treelayout was given. | |
5781 | if test "${enable_treelayout+set}" = set; then | |
5782 | enableval="$enable_treelayout" | |
5783 | ||
5784 | if test "$enableval" = yes; then | |
5785 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' | |
5786 | else | |
5787 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' | |
5788 | fi | |
5789 | ||
5790 | else | |
5791 | ||
5792 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` | |
5793 | if test "x$LINE" != x ; then | |
5794 | eval "DEFAULT_$LINE" | |
5795 | else | |
5796 | no_cache=1 | |
5797 | fi | |
5798 | ||
5799 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT | |
5800 | ||
5801 | fi | |
5802 | ||
5803 | ||
5804 | eval "$ac_cv_use_treelayout" | |
5805 | if test "$no_cache" != 1; then | |
5806 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp | |
5807 | fi | |
5808 | ||
5809 | if test "$wxUSE_TREELAYOUT" = yes; then | |
5810 | echo "$ac_t""yes" 1>&6 | |
5811 | else | |
5812 | echo "$ac_t""no" 1>&6 | |
5813 | fi | |
5814 | ||
5815 | ||
5816 | ||
5817 | ||
5818 | enablestring= | |
5819 | echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6 | |
5820 | echo "configure:5821: checking for --${enablestring:-enable}-controls" >&5 | |
5821 | no_cache=0 | |
5822 | # Check whether --enable-controls or --disable-controls was given. | |
5823 | if test "${enable_controls+set}" = set; then | |
5824 | enableval="$enable_controls" | |
5825 | ||
5826 | if test "$enableval" = yes; then | |
5827 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5828 | else | |
5829 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5830 | fi | |
5831 | ||
5832 | else | |
5833 | ||
5834 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
5835 | if test "x$LINE" != x ; then | |
5836 | eval "DEFAULT_$LINE" | |
5837 | else | |
5838 | no_cache=1 | |
5839 | fi | |
5840 | ||
5841 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
5842 | ||
5843 | fi | |
5844 | ||
5845 | ||
5846 | eval "$ac_cv_use_controls" | |
5847 | if test "$no_cache" != 1; then | |
5848 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5849 | fi | |
5850 | ||
5851 | if test "$wxUSE_CONTROLS" = yes; then | |
5852 | echo "$ac_t""yes" 1>&6 | |
5853 | else | |
5854 | echo "$ac_t""no" 1>&6 | |
5855 | fi | |
5856 | ||
5857 | ||
5858 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5859 | DEFAULT_wxUSE_ACCEL=yes | |
5860 | DEFAULT_wxUSE_BMPBUTTON=yes | |
5861 | DEFAULT_wxUSE_BUTTON=yes | |
5862 | DEFAULT_wxUSE_CALCTRL=no | |
5863 | DEFAULT_wxUSE_CARET=yes | |
5864 | DEFAULT_wxUSE_COMBOBOX=yes | |
5865 | DEFAULT_wxUSE_CHECKBOX=yes | |
5866 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5867 | DEFAULT_wxUSE_CHOICE=yes | |
5868 | DEFAULT_wxUSE_GAUGE=yes | |
5869 | DEFAULT_wxUSE_GRID=yes | |
5870 | DEFAULT_wxUSE_NEW_GRID=yes | |
5871 | DEFAULT_wxUSE_IMAGLIST=yes | |
5872 | DEFAULT_wxUSE_LISTBOX=yes | |
5873 | DEFAULT_wxUSE_LISTCTRL=yes | |
5874 | DEFAULT_wxUSE_NOTEBOOK=yes | |
5875 | DEFAULT_wxUSE_PROPSHEET=yes | |
5876 | DEFAULT_wxUSE_RADIOBOX=yes | |
5877 | DEFAULT_wxUSE_RADIOBTN=yes | |
5878 | DEFAULT_wxUSE_SASH=yes | |
5879 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5880 | DEFAULT_wxUSE_SLIDER=yes | |
5881 | DEFAULT_wxUSE_SPINBTN=yes | |
5882 | DEFAULT_wxUSE_SPINCTRL=yes | |
5883 | DEFAULT_wxUSE_SPLITTER=yes | |
5884 | DEFAULT_wxUSE_STATBMP=yes | |
5885 | DEFAULT_wxUSE_STATBOX=yes | |
5886 | DEFAULT_wxUSE_STATLINE=yes | |
5887 | DEFAULT_wxUSE_STATUSBAR=yes | |
5888 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
5889 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
5890 | DEFAULT_wxUSE_TOOLBAR=yes | |
5891 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
5892 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
5893 | DEFAULT_wxUSE_TOOLTIPS=yes | |
5894 | DEFAULT_wxUSE_TREECTRL=yes | |
5895 | DEFAULT_wxUSE_POPUPWIN=yes | |
5896 | DEFAULT_wxUSE_TIPWINDOW=yes | |
5897 | elif test "$wxUSE_CONTROLS" = "no"; then | |
5898 | DEFAULT_wxUSE_ACCEL=no | |
5899 | DEFAULT_wxUSE_BMPBUTTON=no | |
5900 | DEFAULT_wxUSE_BUTTON=no | |
5901 | DEFAULT_wxUSE_CALCTRL=no | |
5902 | DEFAULT_wxUSE_CARET=no | |
5903 | DEFAULT_wxUSE_COMBOBOX=no | |
5904 | DEFAULT_wxUSE_CHECKBOX=no | |
5905 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5906 | DEFAULT_wxUSE_CHOICE=no | |
5907 | DEFAULT_wxUSE_GAUGE=no | |
5908 | DEFAULT_wxUSE_GRID=no | |
5909 | DEFAULT_wxUSE_NEW_GRID=no | |
5910 | DEFAULT_wxUSE_IMAGLIST=no | |
5911 | DEFAULT_wxUSE_LISTBOX=no | |
5912 | DEFAULT_wxUSE_LISTCTRL=no | |
5913 | DEFAULT_wxUSE_NOTEBOOK=no | |
5914 | DEFAULT_wxUSE_PROPSHEET=no | |
5915 | DEFAULT_wxUSE_RADIOBOX=no | |
5916 | DEFAULT_wxUSE_RADIOBTN=no | |
5917 | DEFAULT_wxUSE_SASH=no | |
5918 | DEFAULT_wxUSE_SCROLLBAR=no | |
5919 | DEFAULT_wxUSE_SLIDER=no | |
5920 | DEFAULT_wxUSE_SPINBTN=no | |
5921 | DEFAULT_wxUSE_SPINCTRL=no | |
5922 | DEFAULT_wxUSE_SPLITTER=no | |
5923 | DEFAULT_wxUSE_STATBMP=no | |
5924 | DEFAULT_wxUSE_STATBOX=no | |
5925 | DEFAULT_wxUSE_STATLINE=no | |
5926 | DEFAULT_wxUSE_STATUSBAR=no | |
5927 | DEFAULT_wxUSE_TAB_DIALOG=no | |
5928 | DEFAULT_wxUSE_TOGGLEBTN=no | |
5929 | DEFAULT_wxUSE_TOOLBAR=no | |
5930 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
5931 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
5932 | DEFAULT_wxUSE_TOOLTIPS=no | |
5933 | DEFAULT_wxUSE_TREECTRL=no | |
5934 | DEFAULT_wxUSE_POPUPWIN=no | |
5935 | DEFAULT_wxUSE_TIPWINDOW=no | |
5936 | fi | |
5937 | ||
5938 | ||
5939 | enablestring= | |
5940 | echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6 | |
5941 | echo "configure:5942: checking for --${enablestring:-enable}-accel" >&5 | |
5942 | no_cache=0 | |
5943 | # Check whether --enable-accel or --disable-accel was given. | |
5944 | if test "${enable_accel+set}" = set; then | |
5945 | enableval="$enable_accel" | |
5946 | ||
5947 | if test "$enableval" = yes; then | |
5948 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5949 | else | |
5950 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5951 | fi | |
5952 | ||
5953 | else | |
5954 | ||
5955 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
5956 | if test "x$LINE" != x ; then | |
5957 | eval "DEFAULT_$LINE" | |
5958 | else | |
5959 | no_cache=1 | |
5960 | fi | |
5961 | ||
5962 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
5963 | ||
5964 | fi | |
5965 | ||
5966 | ||
5967 | eval "$ac_cv_use_accel" | |
5968 | if test "$no_cache" != 1; then | |
5969 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5970 | fi | |
5971 | ||
5972 | if test "$wxUSE_ACCEL" = yes; then | |
5973 | echo "$ac_t""yes" 1>&6 | |
5974 | else | |
5975 | echo "$ac_t""no" 1>&6 | |
5976 | fi | |
5977 | ||
5978 | ||
5979 | enablestring= | |
5980 | echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6 | |
5981 | echo "configure:5982: checking for --${enablestring:-enable}-button" >&5 | |
5982 | no_cache=0 | |
5983 | # Check whether --enable-button or --disable-button was given. | |
5984 | if test "${enable_button+set}" = set; then | |
5985 | enableval="$enable_button" | |
5986 | ||
5987 | if test "$enableval" = yes; then | |
5988 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
5989 | else | |
5990 | ac_cv_use_button='wxUSE_BUTTON=no' | |
5991 | fi | |
5992 | ||
5993 | else | |
5994 | ||
5995 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
5996 | if test "x$LINE" != x ; then | |
5997 | eval "DEFAULT_$LINE" | |
5998 | else | |
5999 | no_cache=1 | |
6000 | fi | |
6001 | ||
6002 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
6003 | ||
6004 | fi | |
6005 | ||
6006 | ||
6007 | eval "$ac_cv_use_button" | |
6008 | if test "$no_cache" != 1; then | |
6009 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
6010 | fi | |
6011 | ||
6012 | if test "$wxUSE_BUTTON" = yes; then | |
6013 | echo "$ac_t""yes" 1>&6 | |
6014 | else | |
6015 | echo "$ac_t""no" 1>&6 | |
6016 | fi | |
6017 | ||
6018 | ||
6019 | enablestring= | |
6020 | echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6 | |
6021 | echo "configure:6022: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
6022 | no_cache=0 | |
6023 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6024 | if test "${enable_bmpbutton+set}" = set; then | |
6025 | enableval="$enable_bmpbutton" | |
6026 | ||
6027 | if test "$enableval" = yes; then | |
6028 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6029 | else | |
6030 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6031 | fi | |
6032 | ||
6033 | else | |
6034 | ||
6035 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
6036 | if test "x$LINE" != x ; then | |
6037 | eval "DEFAULT_$LINE" | |
6038 | else | |
6039 | no_cache=1 | |
6040 | fi | |
6041 | ||
6042 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
6043 | ||
6044 | fi | |
6045 | ||
6046 | ||
6047 | eval "$ac_cv_use_bmpbutton" | |
6048 | if test "$no_cache" != 1; then | |
6049 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6050 | fi | |
6051 | ||
6052 | if test "$wxUSE_BMPBUTTON" = yes; then | |
6053 | echo "$ac_t""yes" 1>&6 | |
6054 | else | |
6055 | echo "$ac_t""no" 1>&6 | |
6056 | fi | |
6057 | ||
6058 | ||
6059 | enablestring= | |
6060 | echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6 | |
6061 | echo "configure:6062: checking for --${enablestring:-enable}-calendar" >&5 | |
6062 | no_cache=0 | |
6063 | # Check whether --enable-calendar or --disable-calendar was given. | |
6064 | if test "${enable_calendar+set}" = set; then | |
6065 | enableval="$enable_calendar" | |
6066 | ||
6067 | if test "$enableval" = yes; then | |
6068 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6069 | else | |
6070 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6071 | fi | |
6072 | ||
6073 | else | |
6074 | ||
6075 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
6076 | if test "x$LINE" != x ; then | |
6077 | eval "DEFAULT_$LINE" | |
6078 | else | |
6079 | no_cache=1 | |
6080 | fi | |
6081 | ||
6082 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
6083 | ||
6084 | fi | |
6085 | ||
6086 | ||
6087 | eval "$ac_cv_use_calendar" | |
6088 | if test "$no_cache" != 1; then | |
6089 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6090 | fi | |
6091 | ||
6092 | if test "$wxUSE_CALCTRL" = yes; then | |
6093 | echo "$ac_t""yes" 1>&6 | |
6094 | else | |
6095 | echo "$ac_t""no" 1>&6 | |
6096 | fi | |
6097 | ||
6098 | ||
6099 | enablestring= | |
6100 | echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6 | |
6101 | echo "configure:6102: checking for --${enablestring:-enable}-caret" >&5 | |
6102 | no_cache=0 | |
6103 | # Check whether --enable-caret or --disable-caret was given. | |
6104 | if test "${enable_caret+set}" = set; then | |
6105 | enableval="$enable_caret" | |
6106 | ||
6107 | if test "$enableval" = yes; then | |
6108 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6109 | else | |
6110 | ac_cv_use_caret='wxUSE_CARET=no' | |
6111 | fi | |
6112 | ||
6113 | else | |
6114 | ||
6115 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
6116 | if test "x$LINE" != x ; then | |
6117 | eval "DEFAULT_$LINE" | |
6118 | else | |
6119 | no_cache=1 | |
6120 | fi | |
6121 | ||
6122 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
6123 | ||
6124 | fi | |
6125 | ||
6126 | ||
6127 | eval "$ac_cv_use_caret" | |
6128 | if test "$no_cache" != 1; then | |
6129 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6130 | fi | |
6131 | ||
6132 | if test "$wxUSE_CARET" = yes; then | |
6133 | echo "$ac_t""yes" 1>&6 | |
6134 | else | |
6135 | echo "$ac_t""no" 1>&6 | |
6136 | fi | |
6137 | ||
6138 | ||
6139 | enablestring= | |
6140 | echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6 | |
6141 | echo "configure:6142: checking for --${enablestring:-enable}-checkbox" >&5 | |
6142 | no_cache=0 | |
6143 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6144 | if test "${enable_checkbox+set}" = set; then | |
6145 | enableval="$enable_checkbox" | |
6146 | ||
6147 | if test "$enableval" = yes; then | |
6148 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6149 | else | |
6150 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6151 | fi | |
6152 | ||
6153 | else | |
6154 | ||
6155 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
6156 | if test "x$LINE" != x ; then | |
6157 | eval "DEFAULT_$LINE" | |
6158 | else | |
6159 | no_cache=1 | |
6160 | fi | |
6161 | ||
6162 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
6163 | ||
6164 | fi | |
6165 | ||
6166 | ||
6167 | eval "$ac_cv_use_checkbox" | |
6168 | if test "$no_cache" != 1; then | |
6169 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6170 | fi | |
6171 | ||
6172 | if test "$wxUSE_CHECKBOX" = yes; then | |
6173 | echo "$ac_t""yes" 1>&6 | |
6174 | else | |
6175 | echo "$ac_t""no" 1>&6 | |
6176 | fi | |
6177 | ||
6178 | ||
6179 | enablestring= | |
6180 | echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6 | |
6181 | echo "configure:6182: checking for --${enablestring:-enable}-checklst" >&5 | |
6182 | no_cache=0 | |
6183 | # Check whether --enable-checklst or --disable-checklst was given. | |
6184 | if test "${enable_checklst+set}" = set; then | |
6185 | enableval="$enable_checklst" | |
6186 | ||
6187 | if test "$enableval" = yes; then | |
6188 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6189 | else | |
6190 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6191 | fi | |
6192 | ||
6193 | else | |
6194 | ||
6195 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
6196 | if test "x$LINE" != x ; then | |
6197 | eval "DEFAULT_$LINE" | |
6198 | else | |
6199 | no_cache=1 | |
6200 | fi | |
6201 | ||
6202 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
6203 | ||
6204 | fi | |
6205 | ||
6206 | ||
6207 | eval "$ac_cv_use_checklst" | |
6208 | if test "$no_cache" != 1; then | |
6209 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6210 | fi | |
6211 | ||
6212 | if test "$wxUSE_CHECKLST" = yes; then | |
6213 | echo "$ac_t""yes" 1>&6 | |
6214 | else | |
6215 | echo "$ac_t""no" 1>&6 | |
6216 | fi | |
6217 | ||
6218 | ||
6219 | enablestring= | |
6220 | echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6 | |
6221 | echo "configure:6222: checking for --${enablestring:-enable}-choice" >&5 | |
6222 | no_cache=0 | |
6223 | # Check whether --enable-choice or --disable-choice was given. | |
6224 | if test "${enable_choice+set}" = set; then | |
6225 | enableval="$enable_choice" | |
6226 | ||
6227 | if test "$enableval" = yes; then | |
6228 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6229 | else | |
6230 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6231 | fi | |
6232 | ||
6233 | else | |
6234 | ||
6235 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
6236 | if test "x$LINE" != x ; then | |
6237 | eval "DEFAULT_$LINE" | |
6238 | else | |
6239 | no_cache=1 | |
6240 | fi | |
6241 | ||
6242 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
6243 | ||
6244 | fi | |
6245 | ||
6246 | ||
6247 | eval "$ac_cv_use_choice" | |
6248 | if test "$no_cache" != 1; then | |
6249 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6250 | fi | |
6251 | ||
6252 | if test "$wxUSE_CHOICE" = yes; then | |
6253 | echo "$ac_t""yes" 1>&6 | |
6254 | else | |
6255 | echo "$ac_t""no" 1>&6 | |
6256 | fi | |
6257 | ||
6258 | ||
6259 | enablestring= | |
6260 | echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6 | |
6261 | echo "configure:6262: checking for --${enablestring:-enable}-combobox" >&5 | |
6262 | no_cache=0 | |
6263 | # Check whether --enable-combobox or --disable-combobox was given. | |
6264 | if test "${enable_combobox+set}" = set; then | |
6265 | enableval="$enable_combobox" | |
6266 | ||
6267 | if test "$enableval" = yes; then | |
6268 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6269 | else | |
6270 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6271 | fi | |
6272 | ||
6273 | else | |
6274 | ||
6275 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
6276 | if test "x$LINE" != x ; then | |
6277 | eval "DEFAULT_$LINE" | |
6278 | else | |
6279 | no_cache=1 | |
6280 | fi | |
6281 | ||
6282 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
6283 | ||
6284 | fi | |
6285 | ||
6286 | ||
6287 | eval "$ac_cv_use_combobox" | |
6288 | if test "$no_cache" != 1; then | |
6289 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6290 | fi | |
6291 | ||
6292 | if test "$wxUSE_COMBOBOX" = yes; then | |
6293 | echo "$ac_t""yes" 1>&6 | |
6294 | else | |
6295 | echo "$ac_t""no" 1>&6 | |
6296 | fi | |
6297 | ||
6298 | ||
6299 | enablestring= | |
6300 | echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6 | |
6301 | echo "configure:6302: checking for --${enablestring:-enable}-display" >&5 | |
6302 | no_cache=0 | |
6303 | # Check whether --enable-display or --disable-display was given. | |
6304 | if test "${enable_display+set}" = set; then | |
6305 | enableval="$enable_display" | |
6306 | ||
6307 | if test "$enableval" = yes; then | |
6308 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
6309 | else | |
6310 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
6311 | fi | |
6312 | ||
6313 | else | |
6314 | ||
6315 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
6316 | if test "x$LINE" != x ; then | |
6317 | eval "DEFAULT_$LINE" | |
6318 | else | |
6319 | no_cache=1 | |
6320 | fi | |
6321 | ||
6322 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
6323 | ||
6324 | fi | |
6325 | ||
6326 | ||
6327 | eval "$ac_cv_use_display" | |
6328 | if test "$no_cache" != 1; then | |
6329 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
6330 | fi | |
6331 | ||
6332 | if test "$wxUSE_DISPLAY" = yes; then | |
6333 | echo "$ac_t""yes" 1>&6 | |
6334 | else | |
6335 | echo "$ac_t""no" 1>&6 | |
6336 | fi | |
6337 | ||
6338 | ||
6339 | enablestring= | |
6340 | echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6 | |
6341 | echo "configure:6342: checking for --${enablestring:-enable}-gauge" >&5 | |
6342 | no_cache=0 | |
6343 | # Check whether --enable-gauge or --disable-gauge was given. | |
6344 | if test "${enable_gauge+set}" = set; then | |
6345 | enableval="$enable_gauge" | |
6346 | ||
6347 | if test "$enableval" = yes; then | |
6348 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6349 | else | |
6350 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6351 | fi | |
6352 | ||
6353 | else | |
6354 | ||
6355 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
6356 | if test "x$LINE" != x ; then | |
6357 | eval "DEFAULT_$LINE" | |
6358 | else | |
6359 | no_cache=1 | |
6360 | fi | |
6361 | ||
6362 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
6363 | ||
6364 | fi | |
6365 | ||
6366 | ||
6367 | eval "$ac_cv_use_gauge" | |
6368 | if test "$no_cache" != 1; then | |
6369 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6370 | fi | |
6371 | ||
6372 | if test "$wxUSE_GAUGE" = yes; then | |
6373 | echo "$ac_t""yes" 1>&6 | |
6374 | else | |
6375 | echo "$ac_t""no" 1>&6 | |
6376 | fi | |
6377 | ||
6378 | ||
6379 | enablestring= | |
6380 | echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6 | |
6381 | echo "configure:6382: checking for --${enablestring:-enable}-grid" >&5 | |
6382 | no_cache=0 | |
6383 | # Check whether --enable-grid or --disable-grid was given. | |
6384 | if test "${enable_grid+set}" = set; then | |
6385 | enableval="$enable_grid" | |
6386 | ||
6387 | if test "$enableval" = yes; then | |
6388 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6389 | else | |
6390 | ac_cv_use_grid='wxUSE_GRID=no' | |
6391 | fi | |
6392 | ||
6393 | else | |
6394 | ||
6395 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
6396 | if test "x$LINE" != x ; then | |
6397 | eval "DEFAULT_$LINE" | |
6398 | else | |
6399 | no_cache=1 | |
6400 | fi | |
6401 | ||
6402 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
6403 | ||
6404 | fi | |
6405 | ||
6406 | ||
6407 | eval "$ac_cv_use_grid" | |
6408 | if test "$no_cache" != 1; then | |
6409 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6410 | fi | |
6411 | ||
6412 | if test "$wxUSE_GRID" = yes; then | |
6413 | echo "$ac_t""yes" 1>&6 | |
6414 | else | |
6415 | echo "$ac_t""no" 1>&6 | |
6416 | fi | |
6417 | ||
6418 | ||
6419 | enablestring= | |
6420 | echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6 | |
6421 | echo "configure:6422: checking for --${enablestring:-enable}-newgrid" >&5 | |
6422 | no_cache=0 | |
6423 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6424 | if test "${enable_newgrid+set}" = set; then | |
6425 | enableval="$enable_newgrid" | |
6426 | ||
6427 | if test "$enableval" = yes; then | |
6428 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6429 | else | |
6430 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6431 | fi | |
6432 | ||
6433 | else | |
6434 | ||
6435 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` | |
6436 | if test "x$LINE" != x ; then | |
6437 | eval "DEFAULT_$LINE" | |
6438 | else | |
6439 | no_cache=1 | |
6440 | fi | |
6441 | ||
6442 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
6443 | ||
6444 | fi | |
6445 | ||
6446 | ||
6447 | eval "$ac_cv_use_newgrid" | |
6448 | if test "$no_cache" != 1; then | |
6449 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6450 | fi | |
6451 | ||
6452 | if test "$wxUSE_NEW_GRID" = yes; then | |
6453 | echo "$ac_t""yes" 1>&6 | |
6454 | else | |
6455 | echo "$ac_t""no" 1>&6 | |
6456 | fi | |
6457 | ||
6458 | ||
6459 | enablestring= | |
6460 | echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6 | |
6461 | echo "configure:6462: checking for --${enablestring:-enable}-imaglist" >&5 | |
6462 | no_cache=0 | |
6463 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6464 | if test "${enable_imaglist+set}" = set; then | |
6465 | enableval="$enable_imaglist" | |
6466 | ||
6467 | if test "$enableval" = yes; then | |
6468 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6469 | else | |
6470 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6471 | fi | |
6472 | ||
6473 | else | |
6474 | ||
6475 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
6476 | if test "x$LINE" != x ; then | |
6477 | eval "DEFAULT_$LINE" | |
6478 | else | |
6479 | no_cache=1 | |
6480 | fi | |
6481 | ||
6482 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
6483 | ||
6484 | fi | |
6485 | ||
6486 | ||
6487 | eval "$ac_cv_use_imaglist" | |
6488 | if test "$no_cache" != 1; then | |
6489 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6490 | fi | |
6491 | ||
6492 | if test "$wxUSE_IMAGLIST" = yes; then | |
6493 | echo "$ac_t""yes" 1>&6 | |
6494 | else | |
6495 | echo "$ac_t""no" 1>&6 | |
6496 | fi | |
6497 | ||
6498 | ||
6499 | enablestring= | |
6500 | echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6 | |
6501 | echo "configure:6502: checking for --${enablestring:-enable}-listbox" >&5 | |
6502 | no_cache=0 | |
6503 | # Check whether --enable-listbox or --disable-listbox was given. | |
6504 | if test "${enable_listbox+set}" = set; then | |
6505 | enableval="$enable_listbox" | |
6506 | ||
6507 | if test "$enableval" = yes; then | |
6508 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6509 | else | |
6510 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6511 | fi | |
6512 | ||
6513 | else | |
6514 | ||
6515 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
6516 | if test "x$LINE" != x ; then | |
6517 | eval "DEFAULT_$LINE" | |
6518 | else | |
6519 | no_cache=1 | |
6520 | fi | |
6521 | ||
6522 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
6523 | ||
6524 | fi | |
6525 | ||
6526 | ||
6527 | eval "$ac_cv_use_listbox" | |
6528 | if test "$no_cache" != 1; then | |
6529 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6530 | fi | |
6531 | ||
6532 | if test "$wxUSE_LISTBOX" = yes; then | |
6533 | echo "$ac_t""yes" 1>&6 | |
6534 | else | |
6535 | echo "$ac_t""no" 1>&6 | |
6536 | fi | |
6537 | ||
6538 | ||
6539 | enablestring= | |
6540 | echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6 | |
6541 | echo "configure:6542: checking for --${enablestring:-enable}-listctrl" >&5 | |
6542 | no_cache=0 | |
6543 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6544 | if test "${enable_listctrl+set}" = set; then | |
6545 | enableval="$enable_listctrl" | |
6546 | ||
6547 | if test "$enableval" = yes; then | |
6548 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6549 | else | |
6550 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6551 | fi | |
6552 | ||
6553 | else | |
6554 | ||
6555 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
6556 | if test "x$LINE" != x ; then | |
6557 | eval "DEFAULT_$LINE" | |
6558 | else | |
6559 | no_cache=1 | |
6560 | fi | |
6561 | ||
6562 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
6563 | ||
6564 | fi | |
6565 | ||
6566 | ||
6567 | eval "$ac_cv_use_listctrl" | |
6568 | if test "$no_cache" != 1; then | |
6569 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6570 | fi | |
6571 | ||
6572 | if test "$wxUSE_LISTCTRL" = yes; then | |
6573 | echo "$ac_t""yes" 1>&6 | |
6574 | else | |
6575 | echo "$ac_t""no" 1>&6 | |
6576 | fi | |
6577 | ||
6578 | ||
6579 | enablestring= | |
6580 | echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6 | |
6581 | echo "configure:6582: checking for --${enablestring:-enable}-notebook" >&5 | |
6582 | no_cache=0 | |
6583 | # Check whether --enable-notebook or --disable-notebook was given. | |
6584 | if test "${enable_notebook+set}" = set; then | |
6585 | enableval="$enable_notebook" | |
6586 | ||
6587 | if test "$enableval" = yes; then | |
6588 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6589 | else | |
6590 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6591 | fi | |
6592 | ||
6593 | else | |
6594 | ||
6595 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
6596 | if test "x$LINE" != x ; then | |
6597 | eval "DEFAULT_$LINE" | |
6598 | else | |
6599 | no_cache=1 | |
6600 | fi | |
6601 | ||
6602 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
6603 | ||
6604 | fi | |
6605 | ||
6606 | ||
6607 | eval "$ac_cv_use_notebook" | |
6608 | if test "$no_cache" != 1; then | |
6609 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6610 | fi | |
6611 | ||
6612 | if test "$wxUSE_NOTEBOOK" = yes; then | |
6613 | echo "$ac_t""yes" 1>&6 | |
6614 | else | |
6615 | echo "$ac_t""no" 1>&6 | |
6616 | fi | |
6617 | ||
6618 | ||
6619 | enablestring= | |
6620 | echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6 | |
6621 | echo "configure:6622: checking for --${enablestring:-enable}-propsheet" >&5 | |
6622 | no_cache=0 | |
6623 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6624 | if test "${enable_propsheet+set}" = set; then | |
6625 | enableval="$enable_propsheet" | |
6626 | ||
6627 | if test "$enableval" = yes; then | |
6628 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6629 | else | |
6630 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6631 | fi | |
6632 | ||
6633 | else | |
6634 | ||
6635 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
6636 | if test "x$LINE" != x ; then | |
6637 | eval "DEFAULT_$LINE" | |
6638 | else | |
6639 | no_cache=1 | |
6640 | fi | |
6641 | ||
6642 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
6643 | ||
6644 | fi | |
6645 | ||
6646 | ||
6647 | eval "$ac_cv_use_propsheet" | |
6648 | if test "$no_cache" != 1; then | |
6649 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6650 | fi | |
6651 | ||
6652 | if test "$wxUSE_PROPSHEET" = yes; then | |
6653 | echo "$ac_t""yes" 1>&6 | |
6654 | else | |
6655 | echo "$ac_t""no" 1>&6 | |
6656 | fi | |
6657 | ||
6658 | ||
6659 | enablestring= | |
6660 | echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6 | |
6661 | echo "configure:6662: checking for --${enablestring:-enable}-radiobox" >&5 | |
6662 | no_cache=0 | |
6663 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6664 | if test "${enable_radiobox+set}" = set; then | |
6665 | enableval="$enable_radiobox" | |
6666 | ||
6667 | if test "$enableval" = yes; then | |
6668 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6669 | else | |
6670 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6671 | fi | |
6672 | ||
6673 | else | |
6674 | ||
6675 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
6676 | if test "x$LINE" != x ; then | |
6677 | eval "DEFAULT_$LINE" | |
6678 | else | |
6679 | no_cache=1 | |
6680 | fi | |
6681 | ||
6682 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
6683 | ||
6684 | fi | |
6685 | ||
6686 | ||
6687 | eval "$ac_cv_use_radiobox" | |
6688 | if test "$no_cache" != 1; then | |
6689 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6690 | fi | |
6691 | ||
6692 | if test "$wxUSE_RADIOBOX" = yes; then | |
6693 | echo "$ac_t""yes" 1>&6 | |
6694 | else | |
6695 | echo "$ac_t""no" 1>&6 | |
6696 | fi | |
6697 | ||
6698 | ||
6699 | enablestring= | |
6700 | echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6 | |
6701 | echo "configure:6702: checking for --${enablestring:-enable}-radiobtn" >&5 | |
6702 | no_cache=0 | |
6703 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6704 | if test "${enable_radiobtn+set}" = set; then | |
6705 | enableval="$enable_radiobtn" | |
6706 | ||
6707 | if test "$enableval" = yes; then | |
6708 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6709 | else | |
6710 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6711 | fi | |
6712 | ||
6713 | else | |
6714 | ||
6715 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
6716 | if test "x$LINE" != x ; then | |
6717 | eval "DEFAULT_$LINE" | |
6718 | else | |
6719 | no_cache=1 | |
6720 | fi | |
6721 | ||
6722 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
6723 | ||
6724 | fi | |
6725 | ||
6726 | ||
6727 | eval "$ac_cv_use_radiobtn" | |
6728 | if test "$no_cache" != 1; then | |
6729 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6730 | fi | |
6731 | ||
6732 | if test "$wxUSE_RADIOBTN" = yes; then | |
6733 | echo "$ac_t""yes" 1>&6 | |
6734 | else | |
6735 | echo "$ac_t""no" 1>&6 | |
6736 | fi | |
6737 | ||
6738 | ||
6739 | enablestring= | |
6740 | echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6 | |
6741 | echo "configure:6742: checking for --${enablestring:-enable}-sash" >&5 | |
6742 | no_cache=0 | |
6743 | # Check whether --enable-sash or --disable-sash was given. | |
6744 | if test "${enable_sash+set}" = set; then | |
6745 | enableval="$enable_sash" | |
6746 | ||
6747 | if test "$enableval" = yes; then | |
6748 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6749 | else | |
6750 | ac_cv_use_sash='wxUSE_SASH=no' | |
6751 | fi | |
6752 | ||
6753 | else | |
6754 | ||
6755 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
6756 | if test "x$LINE" != x ; then | |
6757 | eval "DEFAULT_$LINE" | |
6758 | else | |
6759 | no_cache=1 | |
6760 | fi | |
6761 | ||
6762 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
6763 | ||
6764 | fi | |
6765 | ||
6766 | ||
6767 | eval "$ac_cv_use_sash" | |
6768 | if test "$no_cache" != 1; then | |
6769 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6770 | fi | |
6771 | ||
6772 | if test "$wxUSE_SASH" = yes; then | |
6773 | echo "$ac_t""yes" 1>&6 | |
6774 | else | |
6775 | echo "$ac_t""no" 1>&6 | |
6776 | fi | |
6777 | ||
6778 | ||
6779 | enablestring= | |
6780 | echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6 | |
6781 | echo "configure:6782: checking for --${enablestring:-enable}-scrollbar" >&5 | |
6782 | no_cache=0 | |
6783 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6784 | if test "${enable_scrollbar+set}" = set; then | |
6785 | enableval="$enable_scrollbar" | |
6786 | ||
6787 | if test "$enableval" = yes; then | |
6788 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6789 | else | |
6790 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6791 | fi | |
6792 | ||
6793 | else | |
6794 | ||
6795 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
6796 | if test "x$LINE" != x ; then | |
6797 | eval "DEFAULT_$LINE" | |
6798 | else | |
6799 | no_cache=1 | |
6800 | fi | |
6801 | ||
6802 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
6803 | ||
6804 | fi | |
6805 | ||
6806 | ||
6807 | eval "$ac_cv_use_scrollbar" | |
6808 | if test "$no_cache" != 1; then | |
6809 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6810 | fi | |
6811 | ||
6812 | if test "$wxUSE_SCROLLBAR" = yes; then | |
6813 | echo "$ac_t""yes" 1>&6 | |
6814 | else | |
6815 | echo "$ac_t""no" 1>&6 | |
6816 | fi | |
6817 | ||
6818 | ||
6819 | enablestring= | |
6820 | echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6 | |
6821 | echo "configure:6822: checking for --${enablestring:-enable}-slider" >&5 | |
6822 | no_cache=0 | |
6823 | # Check whether --enable-slider or --disable-slider was given. | |
6824 | if test "${enable_slider+set}" = set; then | |
6825 | enableval="$enable_slider" | |
6826 | ||
6827 | if test "$enableval" = yes; then | |
6828 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6829 | else | |
6830 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6831 | fi | |
6832 | ||
6833 | else | |
6834 | ||
6835 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
6836 | if test "x$LINE" != x ; then | |
6837 | eval "DEFAULT_$LINE" | |
6838 | else | |
6839 | no_cache=1 | |
6840 | fi | |
6841 | ||
6842 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
6843 | ||
6844 | fi | |
6845 | ||
6846 | ||
6847 | eval "$ac_cv_use_slider" | |
6848 | if test "$no_cache" != 1; then | |
6849 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6850 | fi | |
6851 | ||
6852 | if test "$wxUSE_SLIDER" = yes; then | |
6853 | echo "$ac_t""yes" 1>&6 | |
6854 | else | |
6855 | echo "$ac_t""no" 1>&6 | |
6856 | fi | |
6857 | ||
6858 | ||
6859 | enablestring= | |
6860 | echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6 | |
6861 | echo "configure:6862: checking for --${enablestring:-enable}-spinbtn" >&5 | |
6862 | no_cache=0 | |
6863 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6864 | if test "${enable_spinbtn+set}" = set; then | |
6865 | enableval="$enable_spinbtn" | |
6866 | ||
6867 | if test "$enableval" = yes; then | |
6868 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6869 | else | |
6870 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6871 | fi | |
6872 | ||
6873 | else | |
6874 | ||
6875 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
6876 | if test "x$LINE" != x ; then | |
6877 | eval "DEFAULT_$LINE" | |
6878 | else | |
6879 | no_cache=1 | |
6880 | fi | |
6881 | ||
6882 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
6883 | ||
6884 | fi | |
6885 | ||
6886 | ||
6887 | eval "$ac_cv_use_spinbtn" | |
6888 | if test "$no_cache" != 1; then | |
6889 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6890 | fi | |
6891 | ||
6892 | if test "$wxUSE_SPINBTN" = yes; then | |
6893 | echo "$ac_t""yes" 1>&6 | |
6894 | else | |
6895 | echo "$ac_t""no" 1>&6 | |
6896 | fi | |
6897 | ||
6898 | ||
6899 | enablestring= | |
6900 | echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6 | |
6901 | echo "configure:6902: checking for --${enablestring:-enable}-spinctrl" >&5 | |
6902 | no_cache=0 | |
6903 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6904 | if test "${enable_spinctrl+set}" = set; then | |
6905 | enableval="$enable_spinctrl" | |
6906 | ||
6907 | if test "$enableval" = yes; then | |
6908 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6909 | else | |
6910 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6911 | fi | |
6912 | ||
6913 | else | |
6914 | ||
6915 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
6916 | if test "x$LINE" != x ; then | |
6917 | eval "DEFAULT_$LINE" | |
6918 | else | |
6919 | no_cache=1 | |
6920 | fi | |
6921 | ||
6922 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
6923 | ||
6924 | fi | |
6925 | ||
6926 | ||
6927 | eval "$ac_cv_use_spinctrl" | |
6928 | if test "$no_cache" != 1; then | |
6929 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6930 | fi | |
6931 | ||
6932 | if test "$wxUSE_SPINCTRL" = yes; then | |
6933 | echo "$ac_t""yes" 1>&6 | |
6934 | else | |
6935 | echo "$ac_t""no" 1>&6 | |
6936 | fi | |
6937 | ||
6938 | ||
6939 | enablestring= | |
6940 | echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6 | |
6941 | echo "configure:6942: checking for --${enablestring:-enable}-splitter" >&5 | |
6942 | no_cache=0 | |
6943 | # Check whether --enable-splitter or --disable-splitter was given. | |
6944 | if test "${enable_splitter+set}" = set; then | |
6945 | enableval="$enable_splitter" | |
6946 | ||
6947 | if test "$enableval" = yes; then | |
6948 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6949 | else | |
6950 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6951 | fi | |
6952 | ||
6953 | else | |
6954 | ||
6955 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
6956 | if test "x$LINE" != x ; then | |
6957 | eval "DEFAULT_$LINE" | |
6958 | else | |
6959 | no_cache=1 | |
6960 | fi | |
6961 | ||
6962 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
6963 | ||
6964 | fi | |
6965 | ||
6966 | ||
6967 | eval "$ac_cv_use_splitter" | |
6968 | if test "$no_cache" != 1; then | |
6969 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6970 | fi | |
6971 | ||
6972 | if test "$wxUSE_SPLITTER" = yes; then | |
6973 | echo "$ac_t""yes" 1>&6 | |
6974 | else | |
6975 | echo "$ac_t""no" 1>&6 | |
6976 | fi | |
6977 | ||
6978 | ||
6979 | enablestring= | |
6980 | echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6 | |
6981 | echo "configure:6982: checking for --${enablestring:-enable}-statbmp" >&5 | |
6982 | no_cache=0 | |
6983 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6984 | if test "${enable_statbmp+set}" = set; then | |
6985 | enableval="$enable_statbmp" | |
6986 | ||
6987 | if test "$enableval" = yes; then | |
6988 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6989 | else | |
6990 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6991 | fi | |
6992 | ||
6993 | else | |
6994 | ||
6995 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
6996 | if test "x$LINE" != x ; then | |
6997 | eval "DEFAULT_$LINE" | |
6998 | else | |
6999 | no_cache=1 | |
7000 | fi | |
7001 | ||
7002 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
7003 | ||
7004 | fi | |
7005 | ||
7006 | ||
7007 | eval "$ac_cv_use_statbmp" | |
7008 | if test "$no_cache" != 1; then | |
7009 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7010 | fi | |
7011 | ||
7012 | if test "$wxUSE_STATBMP" = yes; then | |
7013 | echo "$ac_t""yes" 1>&6 | |
7014 | else | |
7015 | echo "$ac_t""no" 1>&6 | |
7016 | fi | |
7017 | ||
7018 | ||
7019 | enablestring= | |
7020 | echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6 | |
7021 | echo "configure:7022: checking for --${enablestring:-enable}-statbox" >&5 | |
7022 | no_cache=0 | |
7023 | # Check whether --enable-statbox or --disable-statbox was given. | |
7024 | if test "${enable_statbox+set}" = set; then | |
7025 | enableval="$enable_statbox" | |
7026 | ||
7027 | if test "$enableval" = yes; then | |
7028 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7029 | else | |
7030 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7031 | fi | |
7032 | ||
7033 | else | |
7034 | ||
7035 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
7036 | if test "x$LINE" != x ; then | |
7037 | eval "DEFAULT_$LINE" | |
7038 | else | |
7039 | no_cache=1 | |
7040 | fi | |
7041 | ||
7042 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
7043 | ||
7044 | fi | |
7045 | ||
7046 | ||
7047 | eval "$ac_cv_use_statbox" | |
7048 | if test "$no_cache" != 1; then | |
7049 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7050 | fi | |
7051 | ||
7052 | if test "$wxUSE_STATBOX" = yes; then | |
7053 | echo "$ac_t""yes" 1>&6 | |
7054 | else | |
7055 | echo "$ac_t""no" 1>&6 | |
7056 | fi | |
7057 | ||
7058 | ||
7059 | enablestring= | |
7060 | echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6 | |
7061 | echo "configure:7062: checking for --${enablestring:-enable}-statline" >&5 | |
7062 | no_cache=0 | |
7063 | # Check whether --enable-statline or --disable-statline was given. | |
7064 | if test "${enable_statline+set}" = set; then | |
7065 | enableval="$enable_statline" | |
7066 | ||
7067 | if test "$enableval" = yes; then | |
7068 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7069 | else | |
7070 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
7071 | fi | |
7072 | ||
7073 | else | |
7074 | ||
7075 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
7076 | if test "x$LINE" != x ; then | |
7077 | eval "DEFAULT_$LINE" | |
7078 | else | |
7079 | no_cache=1 | |
7080 | fi | |
7081 | ||
7082 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
7083 | ||
7084 | fi | |
7085 | ||
7086 | ||
7087 | eval "$ac_cv_use_statline" | |
7088 | if test "$no_cache" != 1; then | |
7089 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
7090 | fi | |
7091 | ||
7092 | if test "$wxUSE_STATLINE" = yes; then | |
7093 | echo "$ac_t""yes" 1>&6 | |
7094 | else | |
7095 | echo "$ac_t""no" 1>&6 | |
7096 | fi | |
7097 | ||
7098 | ||
7099 | enablestring= | |
7100 | echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6 | |
7101 | echo "configure:7102: checking for --${enablestring:-enable}-stattext" >&5 | |
7102 | no_cache=0 | |
7103 | # Check whether --enable-stattext or --disable-stattext was given. | |
7104 | if test "${enable_stattext+set}" = set; then | |
7105 | enableval="$enable_stattext" | |
7106 | ||
7107 | if test "$enableval" = yes; then | |
7108 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7109 | else | |
7110 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7111 | fi | |
7112 | ||
7113 | else | |
7114 | ||
7115 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
7116 | if test "x$LINE" != x ; then | |
7117 | eval "DEFAULT_$LINE" | |
7118 | else | |
7119 | no_cache=1 | |
7120 | fi | |
7121 | ||
7122 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
7123 | ||
7124 | fi | |
7125 | ||
7126 | ||
7127 | eval "$ac_cv_use_stattext" | |
7128 | if test "$no_cache" != 1; then | |
7129 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7130 | fi | |
7131 | ||
7132 | if test "$wxUSE_STATTEXT" = yes; then | |
7133 | echo "$ac_t""yes" 1>&6 | |
7134 | else | |
7135 | echo "$ac_t""no" 1>&6 | |
7136 | fi | |
7137 | ||
7138 | ||
7139 | enablestring= | |
7140 | echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6 | |
7141 | echo "configure:7142: checking for --${enablestring:-enable}-statusbar" >&5 | |
7142 | no_cache=0 | |
7143 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7144 | if test "${enable_statusbar+set}" = set; then | |
7145 | enableval="$enable_statusbar" | |
7146 | ||
7147 | if test "$enableval" = yes; then | |
7148 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7149 | else | |
7150 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7151 | fi | |
7152 | ||
7153 | else | |
7154 | ||
7155 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
7156 | if test "x$LINE" != x ; then | |
7157 | eval "DEFAULT_$LINE" | |
7158 | else | |
7159 | no_cache=1 | |
7160 | fi | |
7161 | ||
7162 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
7163 | ||
7164 | fi | |
7165 | ||
7166 | ||
7167 | eval "$ac_cv_use_statusbar" | |
7168 | if test "$no_cache" != 1; then | |
7169 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7170 | fi | |
7171 | ||
7172 | if test "$wxUSE_STATUSBAR" = yes; then | |
7173 | echo "$ac_t""yes" 1>&6 | |
7174 | else | |
7175 | echo "$ac_t""no" 1>&6 | |
7176 | fi | |
7177 | ||
7178 | ||
7179 | enablestring= | |
7180 | echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6 | |
7181 | echo "configure:7182: checking for --${enablestring:-enable}-tabdialog" >&5 | |
7182 | no_cache=0 | |
7183 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7184 | if test "${enable_tabdialog+set}" = set; then | |
7185 | enableval="$enable_tabdialog" | |
7186 | ||
7187 | if test "$enableval" = yes; then | |
7188 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7189 | else | |
7190 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7191 | fi | |
7192 | ||
7193 | else | |
7194 | ||
7195 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
7196 | if test "x$LINE" != x ; then | |
7197 | eval "DEFAULT_$LINE" | |
7198 | else | |
7199 | no_cache=1 | |
7200 | fi | |
7201 | ||
7202 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
7203 | ||
7204 | fi | |
7205 | ||
7206 | ||
7207 | eval "$ac_cv_use_tabdialog" | |
7208 | if test "$no_cache" != 1; then | |
7209 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7210 | fi | |
7211 | ||
7212 | if test "$wxUSE_TABDIALOG" = yes; then | |
7213 | echo "$ac_t""yes" 1>&6 | |
7214 | else | |
7215 | echo "$ac_t""no" 1>&6 | |
7216 | fi | |
7217 | ||
7218 | ||
7219 | enablestring= | |
7220 | echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6 | |
7221 | echo "configure:7222: checking for --${enablestring:-enable}-textctrl" >&5 | |
7222 | no_cache=0 | |
7223 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7224 | if test "${enable_textctrl+set}" = set; then | |
7225 | enableval="$enable_textctrl" | |
7226 | ||
7227 | if test "$enableval" = yes; then | |
7228 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7229 | else | |
7230 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7231 | fi | |
7232 | ||
7233 | else | |
7234 | ||
7235 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
7236 | if test "x$LINE" != x ; then | |
7237 | eval "DEFAULT_$LINE" | |
7238 | else | |
7239 | no_cache=1 | |
7240 | fi | |
7241 | ||
7242 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
7243 | ||
7244 | fi | |
7245 | ||
7246 | ||
7247 | eval "$ac_cv_use_textctrl" | |
7248 | if test "$no_cache" != 1; then | |
7249 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7250 | fi | |
7251 | ||
7252 | if test "$wxUSE_TEXTCTRL" = yes; then | |
7253 | echo "$ac_t""yes" 1>&6 | |
7254 | else | |
7255 | echo "$ac_t""no" 1>&6 | |
7256 | fi | |
7257 | ||
7258 | ||
7259 | enablestring= | |
7260 | echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6 | |
7261 | echo "configure:7262: checking for --${enablestring:-enable}-togglebtn" >&5 | |
7262 | no_cache=0 | |
7263 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7264 | if test "${enable_togglebtn+set}" = set; then | |
7265 | enableval="$enable_togglebtn" | |
7266 | ||
7267 | if test "$enableval" = yes; then | |
7268 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7269 | else | |
7270 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7271 | fi | |
7272 | ||
7273 | else | |
7274 | ||
7275 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
7276 | if test "x$LINE" != x ; then | |
7277 | eval "DEFAULT_$LINE" | |
7278 | else | |
7279 | no_cache=1 | |
7280 | fi | |
7281 | ||
7282 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
7283 | ||
7284 | fi | |
7285 | ||
7286 | ||
7287 | eval "$ac_cv_use_togglebtn" | |
7288 | if test "$no_cache" != 1; then | |
7289 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7290 | fi | |
7291 | ||
7292 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
7293 | echo "$ac_t""yes" 1>&6 | |
7294 | else | |
7295 | echo "$ac_t""no" 1>&6 | |
7296 | fi | |
7297 | ||
7298 | ||
7299 | enablestring= | |
7300 | echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6 | |
7301 | echo "configure:7302: checking for --${enablestring:-enable}-toolbar" >&5 | |
7302 | no_cache=0 | |
7303 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7304 | if test "${enable_toolbar+set}" = set; then | |
7305 | enableval="$enable_toolbar" | |
7306 | ||
7307 | if test "$enableval" = yes; then | |
7308 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7309 | else | |
7310 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7311 | fi | |
7312 | ||
7313 | else | |
7314 | ||
7315 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
7316 | if test "x$LINE" != x ; then | |
7317 | eval "DEFAULT_$LINE" | |
7318 | else | |
7319 | no_cache=1 | |
7320 | fi | |
7321 | ||
7322 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
7323 | ||
7324 | fi | |
7325 | ||
7326 | ||
7327 | eval "$ac_cv_use_toolbar" | |
7328 | if test "$no_cache" != 1; then | |
7329 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7330 | fi | |
7331 | ||
7332 | if test "$wxUSE_TOOLBAR" = yes; then | |
7333 | echo "$ac_t""yes" 1>&6 | |
7334 | else | |
7335 | echo "$ac_t""no" 1>&6 | |
7336 | fi | |
7337 | ||
7338 | ||
7339 | enablestring= | |
7340 | echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6 | |
7341 | echo "configure:7342: checking for --${enablestring:-enable}-tbarnative" >&5 | |
7342 | no_cache=0 | |
7343 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7344 | if test "${enable_tbarnative+set}" = set; then | |
7345 | enableval="$enable_tbarnative" | |
7346 | ||
7347 | if test "$enableval" = yes; then | |
7348 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7349 | else | |
7350 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7351 | fi | |
7352 | ||
7353 | else | |
7354 | ||
7355 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
7356 | if test "x$LINE" != x ; then | |
7357 | eval "DEFAULT_$LINE" | |
7358 | else | |
7359 | no_cache=1 | |
7360 | fi | |
7361 | ||
7362 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
7363 | ||
7364 | fi | |
7365 | ||
7366 | ||
7367 | eval "$ac_cv_use_tbarnative" | |
7368 | if test "$no_cache" != 1; then | |
7369 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7370 | fi | |
7371 | ||
7372 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
7373 | echo "$ac_t""yes" 1>&6 | |
7374 | else | |
7375 | echo "$ac_t""no" 1>&6 | |
7376 | fi | |
7377 | ||
7378 | ||
7379 | enablestring= | |
7380 | echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6 | |
7381 | echo "configure:7382: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
7382 | no_cache=0 | |
7383 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7384 | if test "${enable_tbarsmpl+set}" = set; then | |
7385 | enableval="$enable_tbarsmpl" | |
7386 | ||
7387 | if test "$enableval" = yes; then | |
7388 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7389 | else | |
7390 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7391 | fi | |
7392 | ||
7393 | else | |
7394 | ||
7395 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
7396 | if test "x$LINE" != x ; then | |
7397 | eval "DEFAULT_$LINE" | |
7398 | else | |
7399 | no_cache=1 | |
7400 | fi | |
7401 | ||
7402 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
7403 | ||
7404 | fi | |
7405 | ||
7406 | ||
7407 | eval "$ac_cv_use_tbarsmpl" | |
7408 | if test "$no_cache" != 1; then | |
7409 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7410 | fi | |
7411 | ||
7412 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
7413 | echo "$ac_t""yes" 1>&6 | |
7414 | else | |
7415 | echo "$ac_t""no" 1>&6 | |
7416 | fi | |
7417 | ||
7418 | ||
7419 | enablestring= | |
7420 | echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6 | |
7421 | echo "configure:7422: checking for --${enablestring:-enable}-treectrl" >&5 | |
7422 | no_cache=0 | |
7423 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7424 | if test "${enable_treectrl+set}" = set; then | |
7425 | enableval="$enable_treectrl" | |
7426 | ||
7427 | if test "$enableval" = yes; then | |
7428 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7429 | else | |
7430 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7431 | fi | |
7432 | ||
7433 | else | |
7434 | ||
7435 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
7436 | if test "x$LINE" != x ; then | |
7437 | eval "DEFAULT_$LINE" | |
7438 | else | |
7439 | no_cache=1 | |
7440 | fi | |
7441 | ||
7442 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
7443 | ||
7444 | fi | |
7445 | ||
7446 | ||
7447 | eval "$ac_cv_use_treectrl" | |
7448 | if test "$no_cache" != 1; then | |
7449 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7450 | fi | |
7451 | ||
7452 | if test "$wxUSE_TREECTRL" = yes; then | |
7453 | echo "$ac_t""yes" 1>&6 | |
7454 | else | |
7455 | echo "$ac_t""no" 1>&6 | |
7456 | fi | |
7457 | ||
7458 | ||
7459 | enablestring= | |
7460 | echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6 | |
7461 | echo "configure:7462: checking for --${enablestring:-enable}-tipwindow" >&5 | |
7462 | no_cache=0 | |
7463 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7464 | if test "${enable_tipwindow+set}" = set; then | |
7465 | enableval="$enable_tipwindow" | |
7466 | ||
7467 | if test "$enableval" = yes; then | |
7468 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7469 | else | |
7470 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7471 | fi | |
7472 | ||
7473 | else | |
7474 | ||
7475 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
7476 | if test "x$LINE" != x ; then | |
7477 | eval "DEFAULT_$LINE" | |
7478 | else | |
7479 | no_cache=1 | |
7480 | fi | |
7481 | ||
7482 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
7483 | ||
7484 | fi | |
7485 | ||
7486 | ||
7487 | eval "$ac_cv_use_tipwindow" | |
7488 | if test "$no_cache" != 1; then | |
7489 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7490 | fi | |
7491 | ||
7492 | if test "$wxUSE_TIPWINDOW" = yes; then | |
7493 | echo "$ac_t""yes" 1>&6 | |
7494 | else | |
7495 | echo "$ac_t""no" 1>&6 | |
7496 | fi | |
7497 | ||
7498 | ||
7499 | enablestring= | |
7500 | echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6 | |
7501 | echo "configure:7502: checking for --${enablestring:-enable}-popupwin" >&5 | |
7502 | no_cache=0 | |
7503 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7504 | if test "${enable_popupwin+set}" = set; then | |
7505 | enableval="$enable_popupwin" | |
7506 | ||
7507 | if test "$enableval" = yes; then | |
7508 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7509 | else | |
7510 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7511 | fi | |
7512 | ||
7513 | else | |
7514 | ||
7515 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
7516 | if test "x$LINE" != x ; then | |
7517 | eval "DEFAULT_$LINE" | |
7518 | else | |
7519 | no_cache=1 | |
7520 | fi | |
7521 | ||
7522 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
7523 | ||
7524 | fi | |
7525 | ||
7526 | ||
7527 | eval "$ac_cv_use_popupwin" | |
7528 | if test "$no_cache" != 1; then | |
7529 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7530 | fi | |
7531 | ||
7532 | if test "$wxUSE_POPUPWIN" = yes; then | |
7533 | echo "$ac_t""yes" 1>&6 | |
7534 | else | |
7535 | echo "$ac_t""no" 1>&6 | |
7536 | fi | |
7537 | ||
7538 | ||
7539 | ||
7540 | ||
7541 | enablestring= | |
7542 | echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6 | |
7543 | echo "configure:7544: checking for --${enablestring:-enable}-commondlg" >&5 | |
7544 | no_cache=0 | |
7545 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7546 | if test "${enable_commondlg+set}" = set; then | |
7547 | enableval="$enable_commondlg" | |
7548 | ||
7549 | if test "$enableval" = yes; then | |
7550 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7551 | else | |
7552 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7553 | fi | |
7554 | ||
7555 | else | |
7556 | ||
7557 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
7558 | if test "x$LINE" != x ; then | |
7559 | eval "DEFAULT_$LINE" | |
7560 | else | |
7561 | no_cache=1 | |
7562 | fi | |
7563 | ||
7564 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
7565 | ||
7566 | fi | |
7567 | ||
7568 | ||
7569 | eval "$ac_cv_use_commondlg" | |
7570 | if test "$no_cache" != 1; then | |
7571 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7572 | fi | |
7573 | ||
7574 | if test "$wxUSE_COMMONDLGS" = yes; then | |
7575 | echo "$ac_t""yes" 1>&6 | |
7576 | else | |
7577 | echo "$ac_t""no" 1>&6 | |
7578 | fi | |
7579 | ||
7580 | ||
7581 | enablestring= | |
7582 | echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6 | |
7583 | echo "configure:7584: checking for --${enablestring:-enable}-choicedlg" >&5 | |
7584 | no_cache=0 | |
7585 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7586 | if test "${enable_choicedlg+set}" = set; then | |
7587 | enableval="$enable_choicedlg" | |
7588 | ||
7589 | if test "$enableval" = yes; then | |
7590 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7591 | else | |
7592 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7593 | fi | |
7594 | ||
7595 | else | |
7596 | ||
7597 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
7598 | if test "x$LINE" != x ; then | |
7599 | eval "DEFAULT_$LINE" | |
7600 | else | |
7601 | no_cache=1 | |
7602 | fi | |
7603 | ||
7604 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
7605 | ||
7606 | fi | |
7607 | ||
7608 | ||
7609 | eval "$ac_cv_use_choicedlg" | |
7610 | if test "$no_cache" != 1; then | |
7611 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7612 | fi | |
7613 | ||
7614 | if test "$wxUSE_CHOICEDLG" = yes; then | |
7615 | echo "$ac_t""yes" 1>&6 | |
7616 | else | |
7617 | echo "$ac_t""no" 1>&6 | |
7618 | fi | |
7619 | ||
7620 | ||
7621 | enablestring= | |
7622 | echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6 | |
7623 | echo "configure:7624: checking for --${enablestring:-enable}-coldlg" >&5 | |
7624 | no_cache=0 | |
7625 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7626 | if test "${enable_coldlg+set}" = set; then | |
7627 | enableval="$enable_coldlg" | |
7628 | ||
7629 | if test "$enableval" = yes; then | |
7630 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7631 | else | |
7632 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7633 | fi | |
7634 | ||
7635 | else | |
7636 | ||
7637 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
7638 | if test "x$LINE" != x ; then | |
7639 | eval "DEFAULT_$LINE" | |
7640 | else | |
7641 | no_cache=1 | |
7642 | fi | |
7643 | ||
7644 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
7645 | ||
7646 | fi | |
7647 | ||
7648 | ||
7649 | eval "$ac_cv_use_coldlg" | |
7650 | if test "$no_cache" != 1; then | |
7651 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7652 | fi | |
7653 | ||
7654 | if test "$wxUSE_COLOURDLG" = yes; then | |
7655 | echo "$ac_t""yes" 1>&6 | |
7656 | else | |
7657 | echo "$ac_t""no" 1>&6 | |
7658 | fi | |
7659 | ||
7660 | ||
7661 | enablestring= | |
7662 | echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6 | |
7663 | echo "configure:7664: checking for --${enablestring:-enable}-filedlg" >&5 | |
7664 | no_cache=0 | |
7665 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7666 | if test "${enable_filedlg+set}" = set; then | |
7667 | enableval="$enable_filedlg" | |
7668 | ||
7669 | if test "$enableval" = yes; then | |
7670 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7671 | else | |
7672 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7673 | fi | |
7674 | ||
7675 | else | |
7676 | ||
7677 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
7678 | if test "x$LINE" != x ; then | |
7679 | eval "DEFAULT_$LINE" | |
7680 | else | |
7681 | no_cache=1 | |
7682 | fi | |
7683 | ||
7684 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
7685 | ||
7686 | fi | |
7687 | ||
7688 | ||
7689 | eval "$ac_cv_use_filedlg" | |
7690 | if test "$no_cache" != 1; then | |
7691 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7692 | fi | |
7693 | ||
7694 | if test "$wxUSE_FILEDLG" = yes; then | |
7695 | echo "$ac_t""yes" 1>&6 | |
7696 | else | |
7697 | echo "$ac_t""no" 1>&6 | |
7698 | fi | |
7699 | ||
7700 | ||
7701 | enablestring= | |
7702 | echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6 | |
7703 | echo "configure:7704: checking for --${enablestring:-enable}-finddlg" >&5 | |
7704 | no_cache=0 | |
7705 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
7706 | if test "${enable_finddlg+set}" = set; then | |
7707 | enableval="$enable_finddlg" | |
7708 | ||
7709 | if test "$enableval" = yes; then | |
7710 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
7711 | else | |
7712 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
7713 | fi | |
7714 | ||
7715 | else | |
7716 | ||
7717 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
7718 | if test "x$LINE" != x ; then | |
7719 | eval "DEFAULT_$LINE" | |
7720 | else | |
7721 | no_cache=1 | |
7722 | fi | |
7723 | ||
7724 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
7725 | ||
7726 | fi | |
7727 | ||
7728 | ||
7729 | eval "$ac_cv_use_finddlg" | |
7730 | if test "$no_cache" != 1; then | |
7731 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
7732 | fi | |
7733 | ||
7734 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
7735 | echo "$ac_t""yes" 1>&6 | |
7736 | else | |
7737 | echo "$ac_t""no" 1>&6 | |
7738 | fi | |
7739 | ||
7740 | ||
7741 | enablestring= | |
7742 | echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6 | |
7743 | echo "configure:7744: checking for --${enablestring:-enable}-fontdlg" >&5 | |
7744 | no_cache=0 | |
7745 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7746 | if test "${enable_fontdlg+set}" = set; then | |
7747 | enableval="$enable_fontdlg" | |
7748 | ||
7749 | if test "$enableval" = yes; then | |
7750 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7751 | else | |
7752 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7753 | fi | |
7754 | ||
7755 | else | |
7756 | ||
7757 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
7758 | if test "x$LINE" != x ; then | |
7759 | eval "DEFAULT_$LINE" | |
7760 | else | |
7761 | no_cache=1 | |
7762 | fi | |
7763 | ||
7764 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
7765 | ||
7766 | fi | |
7767 | ||
7768 | ||
7769 | eval "$ac_cv_use_fontdlg" | |
7770 | if test "$no_cache" != 1; then | |
7771 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7772 | fi | |
7773 | ||
7774 | if test "$wxUSE_FONTDLG" = yes; then | |
7775 | echo "$ac_t""yes" 1>&6 | |
7776 | else | |
7777 | echo "$ac_t""no" 1>&6 | |
7778 | fi | |
7779 | ||
7780 | ||
7781 | enablestring= | |
7782 | echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6 | |
7783 | echo "configure:7784: checking for --${enablestring:-enable}-dirdlg" >&5 | |
7784 | no_cache=0 | |
7785 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7786 | if test "${enable_dirdlg+set}" = set; then | |
7787 | enableval="$enable_dirdlg" | |
7788 | ||
7789 | if test "$enableval" = yes; then | |
7790 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7791 | else | |
7792 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7793 | fi | |
7794 | ||
7795 | else | |
7796 | ||
7797 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
7798 | if test "x$LINE" != x ; then | |
7799 | eval "DEFAULT_$LINE" | |
7800 | else | |
7801 | no_cache=1 | |
7802 | fi | |
7803 | ||
7804 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
7805 | ||
7806 | fi | |
7807 | ||
7808 | ||
7809 | eval "$ac_cv_use_dirdlg" | |
7810 | if test "$no_cache" != 1; then | |
7811 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
7812 | fi | |
7813 | ||
7814 | if test "$wxUSE_DIRDLG" = yes; then | |
7815 | echo "$ac_t""yes" 1>&6 | |
7816 | else | |
7817 | echo "$ac_t""no" 1>&6 | |
7818 | fi | |
7819 | ||
7820 | ||
7821 | enablestring= | |
7822 | echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6 | |
7823 | echo "configure:7824: checking for --${enablestring:-enable}-msgdlg" >&5 | |
7824 | no_cache=0 | |
7825 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
7826 | if test "${enable_msgdlg+set}" = set; then | |
7827 | enableval="$enable_msgdlg" | |
7828 | ||
7829 | if test "$enableval" = yes; then | |
7830 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
7831 | else | |
7832 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
7833 | fi | |
7834 | ||
7835 | else | |
7836 | ||
7837 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
7838 | if test "x$LINE" != x ; then | |
7839 | eval "DEFAULT_$LINE" | |
7840 | else | |
7841 | no_cache=1 | |
7842 | fi | |
7843 | ||
7844 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
7845 | ||
7846 | fi | |
7847 | ||
7848 | ||
7849 | eval "$ac_cv_use_msgdlg" | |
7850 | if test "$no_cache" != 1; then | |
7851 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
7852 | fi | |
7853 | ||
7854 | if test "$wxUSE_MSGDLG" = yes; then | |
7855 | echo "$ac_t""yes" 1>&6 | |
7856 | else | |
7857 | echo "$ac_t""no" 1>&6 | |
7858 | fi | |
7859 | ||
7860 | ||
7861 | enablestring= | |
7862 | echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6 | |
7863 | echo "configure:7864: checking for --${enablestring:-enable}-numberdlg" >&5 | |
7864 | no_cache=0 | |
7865 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
7866 | if test "${enable_numberdlg+set}" = set; then | |
7867 | enableval="$enable_numberdlg" | |
7868 | ||
7869 | if test "$enableval" = yes; then | |
7870 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
7871 | else | |
7872 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
7873 | fi | |
7874 | ||
7875 | else | |
7876 | ||
7877 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
7878 | if test "x$LINE" != x ; then | |
7879 | eval "DEFAULT_$LINE" | |
7880 | else | |
7881 | no_cache=1 | |
7882 | fi | |
7883 | ||
7884 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
7885 | ||
7886 | fi | |
7887 | ||
7888 | ||
7889 | eval "$ac_cv_use_numberdlg" | |
7890 | if test "$no_cache" != 1; then | |
7891 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
7892 | fi | |
7893 | ||
7894 | if test "$wxUSE_NUMBERDLG" = yes; then | |
7895 | echo "$ac_t""yes" 1>&6 | |
7896 | else | |
7897 | echo "$ac_t""no" 1>&6 | |
7898 | fi | |
7899 | ||
7900 | ||
7901 | enablestring= | |
7902 | echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6 | |
7903 | echo "configure:7904: checking for --${enablestring:-enable}-splash" >&5 | |
7904 | no_cache=0 | |
7905 | # Check whether --enable-splash or --disable-splash was given. | |
7906 | if test "${enable_splash+set}" = set; then | |
7907 | enableval="$enable_splash" | |
7908 | ||
7909 | if test "$enableval" = yes; then | |
7910 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7911 | else | |
7912 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7913 | fi | |
7914 | ||
7915 | else | |
7916 | ||
7917 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7918 | if test "x$LINE" != x ; then | |
7919 | eval "DEFAULT_$LINE" | |
7920 | else | |
7921 | no_cache=1 | |
7922 | fi | |
7923 | ||
7924 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7925 | ||
7926 | fi | |
7927 | ||
7928 | ||
7929 | eval "$ac_cv_use_splash" | |
7930 | if test "$no_cache" != 1; then | |
7931 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7932 | fi | |
7933 | ||
7934 | if test "$wxUSE_SPLASH" = yes; then | |
7935 | echo "$ac_t""yes" 1>&6 | |
7936 | else | |
7937 | echo "$ac_t""no" 1>&6 | |
7938 | fi | |
7939 | ||
7940 | ||
7941 | enablestring= | |
7942 | echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6 | |
7943 | echo "configure:7944: checking for --${enablestring:-enable}-textdlg" >&5 | |
7944 | no_cache=0 | |
7945 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7946 | if test "${enable_textdlg+set}" = set; then | |
7947 | enableval="$enable_textdlg" | |
7948 | ||
7949 | if test "$enableval" = yes; then | |
7950 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7951 | else | |
7952 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7953 | fi | |
7954 | ||
7955 | else | |
7956 | ||
7957 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
7958 | if test "x$LINE" != x ; then | |
7959 | eval "DEFAULT_$LINE" | |
7960 | else | |
7961 | no_cache=1 | |
7962 | fi | |
7963 | ||
7964 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
7965 | ||
7966 | fi | |
7967 | ||
7968 | ||
7969 | eval "$ac_cv_use_textdlg" | |
7970 | if test "$no_cache" != 1; then | |
7971 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7972 | fi | |
7973 | ||
7974 | if test "$wxUSE_TEXTDLG" = yes; then | |
7975 | echo "$ac_t""yes" 1>&6 | |
7976 | else | |
7977 | echo "$ac_t""no" 1>&6 | |
7978 | fi | |
7979 | ||
7980 | ||
7981 | enablestring= | |
7982 | echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6 | |
7983 | echo "configure:7984: checking for --${enablestring:-enable}-tipdlg" >&5 | |
7984 | no_cache=0 | |
7985 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7986 | if test "${enable_tipdlg+set}" = set; then | |
7987 | enableval="$enable_tipdlg" | |
7988 | ||
7989 | if test "$enableval" = yes; then | |
7990 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7991 | else | |
7992 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7993 | fi | |
7994 | ||
7995 | else | |
7996 | ||
7997 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
7998 | if test "x$LINE" != x ; then | |
7999 | eval "DEFAULT_$LINE" | |
8000 | else | |
8001 | no_cache=1 | |
8002 | fi | |
8003 | ||
8004 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
8005 | ||
8006 | fi | |
8007 | ||
8008 | ||
8009 | eval "$ac_cv_use_tipdlg" | |
8010 | if test "$no_cache" != 1; then | |
8011 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8012 | fi | |
8013 | ||
8014 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
8015 | echo "$ac_t""yes" 1>&6 | |
8016 | else | |
8017 | echo "$ac_t""no" 1>&6 | |
8018 | fi | |
8019 | ||
8020 | ||
8021 | enablestring= | |
8022 | echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6 | |
8023 | echo "configure:8024: checking for --${enablestring:-enable}-progressdlg" >&5 | |
8024 | no_cache=0 | |
8025 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8026 | if test "${enable_progressdlg+set}" = set; then | |
8027 | enableval="$enable_progressdlg" | |
8028 | ||
8029 | if test "$enableval" = yes; then | |
8030 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8031 | else | |
8032 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8033 | fi | |
8034 | ||
8035 | else | |
8036 | ||
8037 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
8038 | if test "x$LINE" != x ; then | |
8039 | eval "DEFAULT_$LINE" | |
8040 | else | |
8041 | no_cache=1 | |
8042 | fi | |
8043 | ||
8044 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
8045 | ||
8046 | fi | |
8047 | ||
8048 | ||
8049 | eval "$ac_cv_use_progressdlg" | |
8050 | if test "$no_cache" != 1; then | |
8051 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
8052 | fi | |
8053 | ||
8054 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
8055 | echo "$ac_t""yes" 1>&6 | |
8056 | else | |
8057 | echo "$ac_t""no" 1>&6 | |
8058 | fi | |
8059 | ||
8060 | ||
8061 | enablestring= | |
8062 | echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6 | |
8063 | echo "configure:8064: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
8064 | no_cache=0 | |
8065 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
8066 | if test "${enable_wizarddlg+set}" = set; then | |
8067 | enableval="$enable_wizarddlg" | |
8068 | ||
8069 | if test "$enableval" = yes; then | |
8070 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
8071 | else | |
8072 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
8073 | fi | |
8074 | ||
8075 | else | |
8076 | ||
8077 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
8078 | if test "x$LINE" != x ; then | |
8079 | eval "DEFAULT_$LINE" | |
8080 | else | |
8081 | no_cache=1 | |
8082 | fi | |
8083 | ||
8084 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
8085 | ||
8086 | fi | |
8087 | ||
8088 | ||
8089 | eval "$ac_cv_use_wizarddlg" | |
8090 | if test "$no_cache" != 1; then | |
8091 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
8092 | fi | |
8093 | ||
8094 | if test "$wxUSE_WIZARDDLG" = yes; then | |
8095 | echo "$ac_t""yes" 1>&6 | |
8096 | else | |
8097 | echo "$ac_t""no" 1>&6 | |
8098 | fi | |
8099 | ||
8100 | ||
8101 | ||
8102 | ||
8103 | enablestring= | |
8104 | echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6 | |
8105 | echo "configure:8106: checking for --${enablestring:-enable}-menus" >&5 | |
8106 | no_cache=0 | |
8107 | # Check whether --enable-menus or --disable-menus was given. | |
8108 | if test "${enable_menus+set}" = set; then | |
8109 | enableval="$enable_menus" | |
8110 | ||
8111 | if test "$enableval" = yes; then | |
8112 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8113 | else | |
8114 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8115 | fi | |
8116 | ||
8117 | else | |
8118 | ||
8119 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
8120 | if test "x$LINE" != x ; then | |
8121 | eval "DEFAULT_$LINE" | |
8122 | else | |
8123 | no_cache=1 | |
8124 | fi | |
8125 | ||
8126 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
8127 | ||
8128 | fi | |
8129 | ||
8130 | ||
8131 | eval "$ac_cv_use_menus" | |
8132 | if test "$no_cache" != 1; then | |
8133 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8134 | fi | |
8135 | ||
8136 | if test "$wxUSE_MENUS" = yes; then | |
8137 | echo "$ac_t""yes" 1>&6 | |
8138 | else | |
8139 | echo "$ac_t""no" 1>&6 | |
8140 | fi | |
8141 | ||
8142 | ||
8143 | enablestring= | |
8144 | echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6 | |
8145 | echo "configure:8146: checking for --${enablestring:-enable}-miniframe" >&5 | |
8146 | no_cache=0 | |
8147 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8148 | if test "${enable_miniframe+set}" = set; then | |
8149 | enableval="$enable_miniframe" | |
8150 | ||
8151 | if test "$enableval" = yes; then | |
8152 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8153 | else | |
8154 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8155 | fi | |
8156 | ||
8157 | else | |
8158 | ||
8159 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
8160 | if test "x$LINE" != x ; then | |
8161 | eval "DEFAULT_$LINE" | |
8162 | else | |
8163 | no_cache=1 | |
8164 | fi | |
8165 | ||
8166 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
8167 | ||
8168 | fi | |
8169 | ||
8170 | ||
8171 | eval "$ac_cv_use_miniframe" | |
8172 | if test "$no_cache" != 1; then | |
8173 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8174 | fi | |
8175 | ||
8176 | if test "$wxUSE_MINIFRAME" = yes; then | |
8177 | echo "$ac_t""yes" 1>&6 | |
8178 | else | |
8179 | echo "$ac_t""no" 1>&6 | |
8180 | fi | |
8181 | ||
8182 | ||
8183 | enablestring= | |
8184 | echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6 | |
8185 | echo "configure:8186: checking for --${enablestring:-enable}-tooltips" >&5 | |
8186 | no_cache=0 | |
8187 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8188 | if test "${enable_tooltips+set}" = set; then | |
8189 | enableval="$enable_tooltips" | |
8190 | ||
8191 | if test "$enableval" = yes; then | |
8192 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8193 | else | |
8194 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8195 | fi | |
8196 | ||
8197 | else | |
8198 | ||
8199 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
8200 | if test "x$LINE" != x ; then | |
8201 | eval "DEFAULT_$LINE" | |
8202 | else | |
8203 | no_cache=1 | |
8204 | fi | |
8205 | ||
8206 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
8207 | ||
8208 | fi | |
8209 | ||
8210 | ||
8211 | eval "$ac_cv_use_tooltips" | |
8212 | if test "$no_cache" != 1; then | |
8213 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8214 | fi | |
8215 | ||
8216 | if test "$wxUSE_TOOLTIPS" = yes; then | |
8217 | echo "$ac_t""yes" 1>&6 | |
8218 | else | |
8219 | echo "$ac_t""no" 1>&6 | |
8220 | fi | |
8221 | ||
8222 | ||
8223 | enablestring= | |
8224 | echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6 | |
8225 | echo "configure:8226: checking for --${enablestring:-enable}-splines" >&5 | |
8226 | no_cache=0 | |
8227 | # Check whether --enable-splines or --disable-splines was given. | |
8228 | if test "${enable_splines+set}" = set; then | |
8229 | enableval="$enable_splines" | |
8230 | ||
8231 | if test "$enableval" = yes; then | |
8232 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8233 | else | |
8234 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8235 | fi | |
8236 | ||
8237 | else | |
8238 | ||
8239 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
8240 | if test "x$LINE" != x ; then | |
8241 | eval "DEFAULT_$LINE" | |
8242 | else | |
8243 | no_cache=1 | |
8244 | fi | |
8245 | ||
8246 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
8247 | ||
8248 | fi | |
8249 | ||
8250 | ||
8251 | eval "$ac_cv_use_splines" | |
8252 | if test "$no_cache" != 1; then | |
8253 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8254 | fi | |
8255 | ||
8256 | if test "$wxUSE_SPLINES" = yes; then | |
8257 | echo "$ac_t""yes" 1>&6 | |
8258 | else | |
8259 | echo "$ac_t""no" 1>&6 | |
8260 | fi | |
8261 | ||
8262 | ||
8263 | enablestring= | |
8264 | echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6 | |
8265 | echo "configure:8266: checking for --${enablestring:-enable}-validators" >&5 | |
8266 | no_cache=0 | |
8267 | # Check whether --enable-validators or --disable-validators was given. | |
8268 | if test "${enable_validators+set}" = set; then | |
8269 | enableval="$enable_validators" | |
8270 | ||
8271 | if test "$enableval" = yes; then | |
8272 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8273 | else | |
8274 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8275 | fi | |
8276 | ||
8277 | else | |
8278 | ||
8279 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
8280 | if test "x$LINE" != x ; then | |
8281 | eval "DEFAULT_$LINE" | |
8282 | else | |
8283 | no_cache=1 | |
8284 | fi | |
8285 | ||
8286 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
8287 | ||
8288 | fi | |
8289 | ||
8290 | ||
8291 | eval "$ac_cv_use_validators" | |
8292 | if test "$no_cache" != 1; then | |
8293 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8294 | fi | |
8295 | ||
8296 | if test "$wxUSE_VALIDATORS" = yes; then | |
8297 | echo "$ac_t""yes" 1>&6 | |
8298 | else | |
8299 | echo "$ac_t""no" 1>&6 | |
8300 | fi | |
8301 | ||
8302 | ||
8303 | enablestring= | |
8304 | echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6 | |
8305 | echo "configure:8306: checking for --${enablestring:-enable}-busyinfo" >&5 | |
8306 | no_cache=0 | |
8307 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8308 | if test "${enable_busyinfo+set}" = set; then | |
8309 | enableval="$enable_busyinfo" | |
8310 | ||
8311 | if test "$enableval" = yes; then | |
8312 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8313 | else | |
8314 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8315 | fi | |
8316 | ||
8317 | else | |
8318 | ||
8319 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
8320 | if test "x$LINE" != x ; then | |
8321 | eval "DEFAULT_$LINE" | |
8322 | else | |
8323 | no_cache=1 | |
8324 | fi | |
8325 | ||
8326 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
8327 | ||
8328 | fi | |
8329 | ||
8330 | ||
8331 | eval "$ac_cv_use_busyinfo" | |
8332 | if test "$no_cache" != 1; then | |
8333 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8334 | fi | |
8335 | ||
8336 | if test "$wxUSE_BUSYINFO" = yes; then | |
8337 | echo "$ac_t""yes" 1>&6 | |
8338 | else | |
8339 | echo "$ac_t""no" 1>&6 | |
8340 | fi | |
8341 | ||
8342 | ||
8343 | enablestring= | |
8344 | echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6 | |
8345 | echo "configure:8346: checking for --${enablestring:-enable}-joystick" >&5 | |
8346 | no_cache=0 | |
8347 | # Check whether --enable-joystick or --disable-joystick was given. | |
8348 | if test "${enable_joystick+set}" = set; then | |
8349 | enableval="$enable_joystick" | |
8350 | ||
8351 | if test "$enableval" = yes; then | |
8352 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8353 | else | |
8354 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8355 | fi | |
8356 | ||
8357 | else | |
8358 | ||
8359 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
8360 | if test "x$LINE" != x ; then | |
8361 | eval "DEFAULT_$LINE" | |
8362 | else | |
8363 | no_cache=1 | |
8364 | fi | |
8365 | ||
8366 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
8367 | ||
8368 | fi | |
8369 | ||
8370 | ||
8371 | eval "$ac_cv_use_joystick" | |
8372 | if test "$no_cache" != 1; then | |
8373 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8374 | fi | |
8375 | ||
8376 | if test "$wxUSE_JOYSTICK" = yes; then | |
8377 | echo "$ac_t""yes" 1>&6 | |
8378 | else | |
8379 | echo "$ac_t""no" 1>&6 | |
8380 | fi | |
8381 | ||
8382 | ||
8383 | enablestring= | |
8384 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
8385 | echo "configure:8386: checking for --${enablestring:-enable}-metafile" >&5 | |
8386 | no_cache=0 | |
8387 | # Check whether --enable-metafile or --disable-metafile was given. | |
8388 | if test "${enable_metafile+set}" = set; then | |
8389 | enableval="$enable_metafile" | |
8390 | ||
8391 | if test "$enableval" = yes; then | |
8392 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8393 | else | |
8394 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8395 | fi | |
8396 | ||
8397 | else | |
8398 | ||
8399 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
8400 | if test "x$LINE" != x ; then | |
8401 | eval "DEFAULT_$LINE" | |
8402 | else | |
8403 | no_cache=1 | |
8404 | fi | |
8405 | ||
8406 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
8407 | ||
8408 | fi | |
8409 | ||
8410 | ||
8411 | eval "$ac_cv_use_metafile" | |
8412 | if test "$no_cache" != 1; then | |
8413 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8414 | fi | |
8415 | ||
8416 | if test "$wxUSE_METAFILE" = yes; then | |
8417 | echo "$ac_t""yes" 1>&6 | |
8418 | else | |
8419 | echo "$ac_t""no" 1>&6 | |
8420 | fi | |
8421 | ||
8422 | ||
8423 | enablestring= | |
8424 | echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6 | |
8425 | echo "configure:8426: checking for --${enablestring:-enable}-dragimage" >&5 | |
8426 | no_cache=0 | |
8427 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8428 | if test "${enable_dragimage+set}" = set; then | |
8429 | enableval="$enable_dragimage" | |
8430 | ||
8431 | if test "$enableval" = yes; then | |
8432 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8433 | else | |
8434 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8435 | fi | |
8436 | ||
8437 | else | |
8438 | ||
8439 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
8440 | if test "x$LINE" != x ; then | |
8441 | eval "DEFAULT_$LINE" | |
8442 | else | |
8443 | no_cache=1 | |
8444 | fi | |
8445 | ||
8446 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
8447 | ||
8448 | fi | |
8449 | ||
8450 | ||
8451 | eval "$ac_cv_use_dragimage" | |
8452 | if test "$no_cache" != 1; then | |
8453 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8454 | fi | |
8455 | ||
8456 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
8457 | echo "$ac_t""yes" 1>&6 | |
8458 | else | |
8459 | echo "$ac_t""no" 1>&6 | |
8460 | fi | |
8461 | ||
8462 | ||
8463 | ||
8464 | ||
8465 | enablestring= | |
8466 | echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6 | |
8467 | echo "configure:8468: checking for --${enablestring:-enable}-palette" >&5 | |
8468 | no_cache=0 | |
8469 | # Check whether --enable-palette or --disable-palette was given. | |
8470 | if test "${enable_palette+set}" = set; then | |
8471 | enableval="$enable_palette" | |
8472 | ||
8473 | if test "$enableval" = yes; then | |
8474 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8475 | else | |
8476 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8477 | fi | |
8478 | ||
8479 | else | |
8480 | ||
8481 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
8482 | if test "x$LINE" != x ; then | |
8483 | eval "DEFAULT_$LINE" | |
8484 | else | |
8485 | no_cache=1 | |
8486 | fi | |
8487 | ||
8488 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
8489 | ||
8490 | fi | |
8491 | ||
8492 | ||
8493 | eval "$ac_cv_use_palette" | |
8494 | if test "$no_cache" != 1; then | |
8495 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8496 | fi | |
8497 | ||
8498 | if test "$wxUSE_PALETTE" = yes; then | |
8499 | echo "$ac_t""yes" 1>&6 | |
8500 | else | |
8501 | echo "$ac_t""no" 1>&6 | |
8502 | fi | |
8503 | ||
8504 | ||
8505 | enablestring= | |
8506 | echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6 | |
8507 | echo "configure:8508: checking for --${enablestring:-enable}-image" >&5 | |
8508 | no_cache=0 | |
8509 | # Check whether --enable-image or --disable-image was given. | |
8510 | if test "${enable_image+set}" = set; then | |
8511 | enableval="$enable_image" | |
8512 | ||
8513 | if test "$enableval" = yes; then | |
8514 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8515 | else | |
8516 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8517 | fi | |
8518 | ||
8519 | else | |
8520 | ||
8521 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
8522 | if test "x$LINE" != x ; then | |
8523 | eval "DEFAULT_$LINE" | |
8524 | else | |
8525 | no_cache=1 | |
8526 | fi | |
8527 | ||
8528 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
8529 | ||
8530 | fi | |
8531 | ||
8532 | ||
8533 | eval "$ac_cv_use_image" | |
8534 | if test "$no_cache" != 1; then | |
8535 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8536 | fi | |
8537 | ||
8538 | if test "$wxUSE_IMAGE" = yes; then | |
8539 | echo "$ac_t""yes" 1>&6 | |
8540 | else | |
8541 | echo "$ac_t""no" 1>&6 | |
8542 | fi | |
8543 | ||
8544 | ||
8545 | enablestring= | |
8546 | echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6 | |
8547 | echo "configure:8548: checking for --${enablestring:-enable}-gif" >&5 | |
8548 | no_cache=0 | |
8549 | # Check whether --enable-gif or --disable-gif was given. | |
8550 | if test "${enable_gif+set}" = set; then | |
8551 | enableval="$enable_gif" | |
8552 | ||
8553 | if test "$enableval" = yes; then | |
8554 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8555 | else | |
8556 | ac_cv_use_gif='wxUSE_GIF=no' | |
8557 | fi | |
8558 | ||
8559 | else | |
8560 | ||
8561 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
8562 | if test "x$LINE" != x ; then | |
8563 | eval "DEFAULT_$LINE" | |
8564 | else | |
8565 | no_cache=1 | |
8566 | fi | |
8567 | ||
8568 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
8569 | ||
8570 | fi | |
8571 | ||
8572 | ||
8573 | eval "$ac_cv_use_gif" | |
8574 | if test "$no_cache" != 1; then | |
8575 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8576 | fi | |
8577 | ||
8578 | if test "$wxUSE_GIF" = yes; then | |
8579 | echo "$ac_t""yes" 1>&6 | |
8580 | else | |
8581 | echo "$ac_t""no" 1>&6 | |
8582 | fi | |
8583 | ||
8584 | ||
8585 | enablestring= | |
8586 | echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6 | |
8587 | echo "configure:8588: checking for --${enablestring:-enable}-pcx" >&5 | |
8588 | no_cache=0 | |
8589 | # Check whether --enable-pcx or --disable-pcx was given. | |
8590 | if test "${enable_pcx+set}" = set; then | |
8591 | enableval="$enable_pcx" | |
8592 | ||
8593 | if test "$enableval" = yes; then | |
8594 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8595 | else | |
8596 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8597 | fi | |
8598 | ||
8599 | else | |
8600 | ||
8601 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
8602 | if test "x$LINE" != x ; then | |
8603 | eval "DEFAULT_$LINE" | |
8604 | else | |
8605 | no_cache=1 | |
8606 | fi | |
8607 | ||
8608 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
8609 | ||
8610 | fi | |
8611 | ||
8612 | ||
8613 | eval "$ac_cv_use_pcx" | |
8614 | if test "$no_cache" != 1; then | |
8615 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8616 | fi | |
8617 | ||
8618 | if test "$wxUSE_PCX" = yes; then | |
8619 | echo "$ac_t""yes" 1>&6 | |
8620 | else | |
8621 | echo "$ac_t""no" 1>&6 | |
8622 | fi | |
8623 | ||
8624 | ||
8625 | enablestring= | |
8626 | echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6 | |
8627 | echo "configure:8628: checking for --${enablestring:-enable}-iff" >&5 | |
8628 | no_cache=0 | |
8629 | # Check whether --enable-iff or --disable-iff was given. | |
8630 | if test "${enable_iff+set}" = set; then | |
8631 | enableval="$enable_iff" | |
8632 | ||
8633 | if test "$enableval" = yes; then | |
8634 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8635 | else | |
8636 | ac_cv_use_iff='wxUSE_IFF=no' | |
8637 | fi | |
8638 | ||
8639 | else | |
8640 | ||
8641 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
8642 | if test "x$LINE" != x ; then | |
8643 | eval "DEFAULT_$LINE" | |
8644 | else | |
8645 | no_cache=1 | |
8646 | fi | |
8647 | ||
8648 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
8649 | ||
8650 | fi | |
8651 | ||
8652 | ||
8653 | eval "$ac_cv_use_iff" | |
8654 | if test "$no_cache" != 1; then | |
8655 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8656 | fi | |
8657 | ||
8658 | if test "$wxUSE_IFF" = yes; then | |
8659 | echo "$ac_t""yes" 1>&6 | |
8660 | else | |
8661 | echo "$ac_t""no" 1>&6 | |
8662 | fi | |
8663 | ||
8664 | ||
8665 | enablestring= | |
8666 | echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6 | |
8667 | echo "configure:8668: checking for --${enablestring:-enable}-pnm" >&5 | |
8668 | no_cache=0 | |
8669 | # Check whether --enable-pnm or --disable-pnm was given. | |
8670 | if test "${enable_pnm+set}" = set; then | |
8671 | enableval="$enable_pnm" | |
8672 | ||
8673 | if test "$enableval" = yes; then | |
8674 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8675 | else | |
8676 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8677 | fi | |
8678 | ||
8679 | else | |
8680 | ||
8681 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
8682 | if test "x$LINE" != x ; then | |
8683 | eval "DEFAULT_$LINE" | |
8684 | else | |
8685 | no_cache=1 | |
8686 | fi | |
8687 | ||
8688 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
8689 | ||
8690 | fi | |
8691 | ||
8692 | ||
8693 | eval "$ac_cv_use_pnm" | |
8694 | if test "$no_cache" != 1; then | |
8695 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8696 | fi | |
8697 | ||
8698 | if test "$wxUSE_PNM" = yes; then | |
8699 | echo "$ac_t""yes" 1>&6 | |
8700 | else | |
8701 | echo "$ac_t""no" 1>&6 | |
8702 | fi | |
8703 | ||
8704 | ||
8705 | enablestring= | |
8706 | echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6 | |
8707 | echo "configure:8708: checking for --${enablestring:-enable}-xpm" >&5 | |
8708 | no_cache=0 | |
8709 | # Check whether --enable-xpm or --disable-xpm was given. | |
8710 | if test "${enable_xpm+set}" = set; then | |
8711 | enableval="$enable_xpm" | |
8712 | ||
8713 | if test "$enableval" = yes; then | |
8714 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
8715 | else | |
8716 | ac_cv_use_xpm='wxUSE_XPM=no' | |
8717 | fi | |
8718 | ||
8719 | else | |
8720 | ||
8721 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
8722 | if test "x$LINE" != x ; then | |
8723 | eval "DEFAULT_$LINE" | |
8724 | else | |
8725 | no_cache=1 | |
8726 | fi | |
8727 | ||
8728 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
8729 | ||
8730 | fi | |
8731 | ||
8732 | ||
8733 | eval "$ac_cv_use_xpm" | |
8734 | if test "$no_cache" != 1; then | |
8735 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
8736 | fi | |
8737 | ||
8738 | if test "$wxUSE_XPM" = yes; then | |
8739 | echo "$ac_t""yes" 1>&6 | |
8740 | else | |
8741 | echo "$ac_t""no" 1>&6 | |
8742 | fi | |
8743 | ||
8744 | ||
8745 | enablestring= | |
8746 | echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6 | |
8747 | echo "configure:8748: checking for --${enablestring:-enable}-ico_cur" >&5 | |
8748 | no_cache=0 | |
8749 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
8750 | if test "${enable_ico_cur+set}" = set; then | |
8751 | enableval="$enable_ico_cur" | |
8752 | ||
8753 | if test "$enableval" = yes; then | |
8754 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
8755 | else | |
8756 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
8757 | fi | |
8758 | ||
8759 | else | |
8760 | ||
8761 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
8762 | if test "x$LINE" != x ; then | |
8763 | eval "DEFAULT_$LINE" | |
8764 | else | |
8765 | no_cache=1 | |
8766 | fi | |
8767 | ||
8768 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
8769 | ||
8770 | fi | |
8771 | ||
8772 | ||
8773 | eval "$ac_cv_use_ico_cur" | |
8774 | if test "$no_cache" != 1; then | |
8775 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
8776 | fi | |
8777 | ||
8778 | if test "$wxUSE_ICO_CUR" = yes; then | |
8779 | echo "$ac_t""yes" 1>&6 | |
8780 | else | |
8781 | echo "$ac_t""no" 1>&6 | |
8782 | fi | |
8783 | ||
8784 | ||
8785 | fi | |
8786 | ||
8787 | case "${host}" in | |
8788 | *-pc-os2_emx | *-pc-os2-emx ) | |
8789 | PATH_IFS=';' | |
8790 | LEX_STEM="lexyy" | |
8791 | ;; | |
8792 | *) | |
8793 | PATH_IFS=':' | |
8794 | LEX_STEM="lex.yy" | |
8795 | ;; | |
8796 | esac | |
8797 | ||
8798 | ||
8799 | ||
8800 | echo "saving argument cache $wx_arg_cache_file" | |
8801 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
8802 | ||
8803 | ||
8804 | ||
8805 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
8806 | echo "configure:8807: checking for toolkit" >&5 | |
8807 | ||
8808 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
8809 | if test "$wxUSE_WINE" = "yes"; then | |
8810 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
8811 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
8812 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
8813 | fi | |
8814 | ||
8815 | if test "$wxUSE_GUI" = "yes"; then | |
8816 | ||
8817 | if test "$USE_BEOS" = 1; then | |
8818 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
8819 | fi | |
8820 | ||
8821 | if test "$TOOLKIT_GIVEN" = 1; then | |
8822 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8823 | var=wxUSE_$toolkit | |
8824 | eval "value=\$${var}" | |
8825 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8826 | done | |
8827 | else | |
8828 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8829 | if test "$has_toolkit_in_cache" != 1; then | |
8830 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8831 | else | |
8832 | var=DEFAULT_wxUSE_$toolkit | |
8833 | fi | |
8834 | eval "wxUSE_$toolkit=\$${var}" | |
8835 | done | |
8836 | fi | |
8837 | ||
8838 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ | |
8839 | + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` | |
8840 | ||
8841 | case "${host}" in | |
8842 | *-pc-os2_emx | *-pc-os2-emx ) | |
8843 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
8844 | esac | |
8845 | ||
8846 | case "$NUM_TOOLKITS" in | |
8847 | 1) | |
8848 | ;; | |
8849 | 0) | |
8850 | { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; } | |
8851 | ;; | |
8852 | *) | |
8853 | { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; } | |
8854 | esac | |
8855 | ||
8856 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8857 | var=wxUSE_$toolkit | |
8858 | eval "value=\$${var}" | |
8859 | if test "x$value" != x; then | |
8860 | cache_var=CACHE_$toolkit | |
8861 | eval "cache=\$${cache_var}" | |
8862 | if test "$cache" = 1; then | |
8863 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8864 | fi | |
8865 | if test "$value" = 1; then | |
8866 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
8867 | echo "$ac_t""$toolkit_echo" 1>&6 | |
8868 | fi | |
8869 | fi | |
8870 | done | |
8871 | else | |
8872 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 | |
8873 | fi | |
8874 | ||
8875 | wants_win32=0 | |
8876 | doesnt_want_win32=0 | |
8877 | case "${host}" in | |
8878 | *-*-cygwin*) | |
8879 | if test "$wxUSE_MSW" = 1 ; then | |
8880 | wants_win32=1 | |
8881 | else | |
8882 | doesnt_want_win32=1 | |
8883 | fi | |
8884 | ;; | |
8885 | *-*-mingw*) | |
8886 | wants_win32=1 | |
8887 | ;; | |
8888 | esac | |
8889 | ||
8890 | if test "$wxUSE_WINE" = "yes"; then | |
8891 | wants_win32=1 | |
8892 | CC=winegcc | |
8893 | CXX=wineg++ | |
8894 | RESCOMP=wrc | |
8895 | fi | |
8896 | ||
8897 | if test "$wants_win32" = 1 ; then | |
8898 | USE_UNIX=0 | |
8899 | USE_WIN32=1 | |
8900 | cat >> confdefs.h <<\EOF | |
8901 | #define __WIN32__ 1 | |
8902 | EOF | |
8903 | ||
8904 | cat >> confdefs.h <<\EOF | |
8905 | #define __WIN95__ 1 | |
8906 | EOF | |
8907 | ||
8908 | cat >> confdefs.h <<\EOF | |
8909 | #define __WINDOWS__ 1 | |
8910 | EOF | |
8911 | ||
8912 | cat >> confdefs.h <<\EOF | |
8913 | #define __GNUWIN32__ 1 | |
8914 | EOF | |
8915 | ||
8916 | cat >> confdefs.h <<\EOF | |
8917 | #define STRICT 1 | |
8918 | EOF | |
8919 | ||
8920 | cat >> confdefs.h <<\EOF | |
8921 | #define WINVER 0x0400 | |
8922 | EOF | |
8923 | ||
8924 | fi | |
8925 | if test "$doesnt_want_win32" = 1 ; then | |
8926 | USE_UNIX=1 | |
8927 | USE_WIN32=0 | |
8928 | fi | |
8929 | ||
8930 | if test "$USE_UNIX" = 1 ; then | |
8931 | wxUSE_UNIX=yes | |
8932 | cat >> confdefs.h <<\EOF | |
8933 | #define __UNIX__ 1 | |
8934 | EOF | |
8935 | ||
8936 | fi | |
8937 | ||
8938 | ||
8939 | cat > confcache <<\EOF | |
8940 | # This file is a shell script that caches the results of configure | |
8941 | # tests run on this system so they can be shared between configure | |
8942 | # scripts and configure runs. It is not useful on other systems. | |
8943 | # If it contains results you don't want to keep, you may remove or edit it. | |
8944 | # | |
8945 | # By default, configure uses ./config.cache as the cache file, | |
8946 | # creating it if it does not exist already. You can give configure | |
8947 | # the --cache-file=FILE option to use a different cache file; that is | |
8948 | # what configure does when it calls configure scripts in | |
8949 | # subdirectories, so they share the cache. | |
8950 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8951 | # config.status only pays attention to the cache file if you give it the | |
8952 | # --recheck option to rerun configure. | |
8953 | # | |
8954 | EOF | |
8955 | # The following way of writing the cache mishandles newlines in values, | |
8956 | # but we know of no workaround that is simple, portable, and efficient. | |
8957 | # So, don't put newlines in cache variables' values. | |
8958 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8959 | # and sets the high bit in the cache file unless we assign to the vars. | |
8960 | (set) 2>&1 | | |
8961 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8962 | *ac_space=\ *) | |
8963 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8964 | # turns \\\\ into \\, and sed turns \\ into \). | |
8965 | sed -n \ | |
8966 | -e "s/'/'\\\\''/g" \ | |
8967 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8968 | ;; | |
8969 | *) | |
8970 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8971 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8972 | ;; | |
8973 | esac >> confcache | |
8974 | if cmp -s $cache_file confcache; then | |
8975 | : | |
8976 | else | |
8977 | if test -w $cache_file; then | |
8978 | echo "updating cache $cache_file" | |
8979 | cat confcache > $cache_file | |
8980 | else | |
8981 | echo "not updating unwritable cache $cache_file" | |
8982 | fi | |
8983 | fi | |
8984 | rm -f confcache | |
8985 | ||
8986 | ||
8987 | if test "$build" != "$host" ; then | |
8988 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then | |
8989 | CC=$host_alias-gcc | |
8990 | CXX=$host_alias-c++ | |
8991 | AR=$host_alias-ar | |
8992 | RANLIB=$host_alias-ranlib | |
8993 | DLLTOOL=$host_alias-dlltool | |
8994 | RESCOMP=$host_alias-windres | |
8995 | LD=$host_alias-ld | |
8996 | NM=$host_alias-nm | |
8997 | STRIP=$host_alias-strip | |
8998 | else | |
8999 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
9000 | fi | |
9001 | fi | |
9002 | ||
9003 | CFLAGS=${CFLAGS:=} | |
9004 | # Extract the first word of "gcc", so it can be a program name with args. | |
9005 | set dummy gcc; ac_word=$2 | |
9006 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9007 | echo "configure:9008: checking for $ac_word" >&5 | |
9008 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
9009 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9010 | else | |
9011 | if test -n "$CC"; then | |
9012 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9013 | else | |
9014 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
9015 | ac_dummy="$PATH" | |
9016 | for ac_dir in $ac_dummy; do | |
9017 | test -z "$ac_dir" && ac_dir=. | |
9018 | if test -f $ac_dir/$ac_word; then | |
9019 | ac_cv_prog_CC="gcc" | |
9020 | break | |
9021 | fi | |
9022 | done | |
9023 | IFS="$ac_save_ifs" | |
9024 | fi | |
9025 | fi | |
9026 | CC="$ac_cv_prog_CC" | |
9027 | if test -n "$CC"; then | |
9028 | echo "$ac_t""$CC" 1>&6 | |
9029 | else | |
9030 | echo "$ac_t""no" 1>&6 | |
9031 | fi | |
9032 | ||
9033 | if test -z "$CC"; then | |
9034 | # Extract the first word of "cc", so it can be a program name with args. | |
9035 | set dummy cc; ac_word=$2 | |
9036 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9037 | echo "configure:9038: checking for $ac_word" >&5 | |
9038 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
9039 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9040 | else | |
9041 | if test -n "$CC"; then | |
9042 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9043 | else | |
9044 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
9045 | ac_prog_rejected=no | |
9046 | ac_dummy="$PATH" | |
9047 | for ac_dir in $ac_dummy; do | |
9048 | test -z "$ac_dir" && ac_dir=. | |
9049 | if test -f $ac_dir/$ac_word; then | |
9050 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
9051 | ac_prog_rejected=yes | |
9052 | continue | |
9053 | fi | |
9054 | ac_cv_prog_CC="cc" | |
9055 | break | |
9056 | fi | |
9057 | done | |
9058 | IFS="$ac_save_ifs" | |
9059 | if test $ac_prog_rejected = yes; then | |
9060 | # We found a bogon in the path, so make sure we never use it. | |
9061 | set dummy $ac_cv_prog_CC | |
9062 | shift | |
9063 | if test $# -gt 0; then | |
9064 | # We chose a different compiler from the bogus one. | |
9065 | # However, it has the same basename, so the bogon will be chosen | |
9066 | # first if we set CC to just the basename; use the full file name. | |
9067 | shift | |
9068 | set dummy "$ac_dir/$ac_word" "$@" | |
9069 | shift | |
9070 | ac_cv_prog_CC="$@" | |
9071 | fi | |
9072 | fi | |
9073 | fi | |
9074 | fi | |
9075 | CC="$ac_cv_prog_CC" | |
9076 | if test -n "$CC"; then | |
9077 | echo "$ac_t""$CC" 1>&6 | |
9078 | else | |
9079 | echo "$ac_t""no" 1>&6 | |
9080 | fi | |
9081 | ||
9082 | if test -z "$CC"; then | |
9083 | case "`uname -s`" in | |
9084 | *win32* | *WIN32*) | |
9085 | # Extract the first word of "cl", so it can be a program name with args. | |
9086 | set dummy cl; ac_word=$2 | |
9087 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9088 | echo "configure:9089: checking for $ac_word" >&5 | |
9089 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
9090 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9091 | else | |
9092 | if test -n "$CC"; then | |
9093 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9094 | else | |
9095 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
9096 | ac_dummy="$PATH" | |
9097 | for ac_dir in $ac_dummy; do | |
9098 | test -z "$ac_dir" && ac_dir=. | |
9099 | if test -f $ac_dir/$ac_word; then | |
9100 | ac_cv_prog_CC="cl" | |
9101 | break | |
9102 | fi | |
9103 | done | |
9104 | IFS="$ac_save_ifs" | |
9105 | fi | |
9106 | fi | |
9107 | CC="$ac_cv_prog_CC" | |
9108 | if test -n "$CC"; then | |
9109 | echo "$ac_t""$CC" 1>&6 | |
9110 | else | |
9111 | echo "$ac_t""no" 1>&6 | |
9112 | fi | |
9113 | ;; | |
9114 | esac | |
9115 | fi | |
9116 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
9117 | fi | |
9118 | ||
9119 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
9120 | echo "configure:9121: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
9121 | ||
9122 | ac_ext=c | |
9123 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9124 | ac_cpp='$CPP $CPPFLAGS' | |
9125 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9126 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9127 | cross_compiling=$ac_cv_prog_cc_cross | |
9128 | ||
9129 | cat > conftest.$ac_ext << EOF | |
9130 | ||
9131 | #line 9132 "configure" | |
9132 | #include "confdefs.h" | |
9133 | ||
9134 | main(){return(0);} | |
9135 | EOF | |
9136 | if { (eval echo configure:9137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9137 | ac_cv_prog_cc_works=yes | |
9138 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9139 | if (./conftest; exit) 2>/dev/null; then | |
9140 | ac_cv_prog_cc_cross=no | |
9141 | else | |
9142 | ac_cv_prog_cc_cross=yes | |
9143 | fi | |
9144 | else | |
9145 | echo "configure: failed program was:" >&5 | |
9146 | cat conftest.$ac_ext >&5 | |
9147 | ac_cv_prog_cc_works=no | |
9148 | fi | |
9149 | rm -fr conftest* | |
9150 | ac_ext=c | |
9151 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9152 | ac_cpp='$CPP $CPPFLAGS' | |
9153 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9154 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9155 | cross_compiling=$ac_cv_prog_cc_cross | |
9156 | ||
9157 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
9158 | if test $ac_cv_prog_cc_works = no; then | |
9159 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
9160 | fi | |
9161 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
9162 | echo "configure:9163: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
9163 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
9164 | cross_compiling=$ac_cv_prog_cc_cross | |
9165 | ||
9166 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
9167 | echo "configure:9168: checking whether we are using GNU C" >&5 | |
9168 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
9169 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9170 | else | |
9171 | cat > conftest.c <<EOF | |
9172 | #ifdef __GNUC__ | |
9173 | yes; | |
9174 | #endif | |
9175 | EOF | |
9176 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
9177 | ac_cv_prog_gcc=yes | |
9178 | else | |
9179 | ac_cv_prog_gcc=no | |
9180 | fi | |
9181 | fi | |
9182 | ||
9183 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
9184 | ||
9185 | if test $ac_cv_prog_gcc = yes; then | |
9186 | GCC=yes | |
9187 | else | |
9188 | GCC= | |
9189 | fi | |
9190 | ||
9191 | ac_test_CFLAGS="${CFLAGS+set}" | |
9192 | ac_save_CFLAGS="$CFLAGS" | |
9193 | CFLAGS= | |
9194 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
9195 | echo "configure:9196: checking whether ${CC-cc} accepts -g" >&5 | |
9196 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | |
9197 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9198 | else | |
9199 | echo 'void f(){}' > conftest.c | |
9200 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
9201 | ac_cv_prog_cc_g=yes | |
9202 | else | |
9203 | ac_cv_prog_cc_g=no | |
9204 | fi | |
9205 | rm -f conftest* | |
9206 | ||
9207 | fi | |
9208 | ||
9209 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
9210 | if test "$ac_test_CFLAGS" = set; then | |
9211 | CFLAGS="$ac_save_CFLAGS" | |
9212 | elif test $ac_cv_prog_cc_g = yes; then | |
9213 | if test "$GCC" = yes; then | |
9214 | CFLAGS="-g -O2" | |
9215 | else | |
9216 | CFLAGS="-g" | |
9217 | fi | |
9218 | else | |
9219 | if test "$GCC" = yes; then | |
9220 | CFLAGS="-O2" | |
9221 | else | |
9222 | CFLAGS= | |
9223 | fi | |
9224 | fi | |
9225 | ||
9226 | ||
9227 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
9228 | echo "configure:9229: checking how to run the C preprocessor" >&5 | |
9229 | # On Suns, sometimes $CPP names a directory. | |
9230 | if test -n "$CPP" && test -d "$CPP"; then | |
9231 | CPP= | |
9232 | fi | |
9233 | if test -z "$CPP"; then | |
9234 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
9235 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9236 | else | |
9237 | # This must be in double quotes, not single quotes, because CPP may get | |
9238 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
9239 | CPP="${CC-cc} -E" | |
9240 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
9241 | # not just through cpp. | |
9242 | cat > conftest.$ac_ext <<EOF | |
9243 | #line 9244 "configure" | |
9244 | #include "confdefs.h" | |
9245 | #include <assert.h> | |
9246 | Syntax Error | |
9247 | EOF | |
9248 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9249 | { (eval echo configure:9250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9250 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9251 | if test -z "$ac_err"; then | |
9252 | : | |
9253 | else | |
9254 | echo "$ac_err" >&5 | |
9255 | echo "configure: failed program was:" >&5 | |
9256 | cat conftest.$ac_ext >&5 | |
9257 | rm -rf conftest* | |
9258 | CPP="${CC-cc} -E -traditional-cpp" | |
9259 | cat > conftest.$ac_ext <<EOF | |
9260 | #line 9261 "configure" | |
9261 | #include "confdefs.h" | |
9262 | #include <assert.h> | |
9263 | Syntax Error | |
9264 | EOF | |
9265 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9266 | { (eval echo configure:9267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9267 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9268 | if test -z "$ac_err"; then | |
9269 | : | |
9270 | else | |
9271 | echo "$ac_err" >&5 | |
9272 | echo "configure: failed program was:" >&5 | |
9273 | cat conftest.$ac_ext >&5 | |
9274 | rm -rf conftest* | |
9275 | CPP="${CC-cc} -nologo -E" | |
9276 | cat > conftest.$ac_ext <<EOF | |
9277 | #line 9278 "configure" | |
9278 | #include "confdefs.h" | |
9279 | #include <assert.h> | |
9280 | Syntax Error | |
9281 | EOF | |
9282 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9283 | { (eval echo configure:9284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9284 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9285 | if test -z "$ac_err"; then | |
9286 | : | |
9287 | else | |
9288 | echo "$ac_err" >&5 | |
9289 | echo "configure: failed program was:" >&5 | |
9290 | cat conftest.$ac_ext >&5 | |
9291 | rm -rf conftest* | |
9292 | CPP=/lib/cpp | |
9293 | fi | |
9294 | rm -f conftest* | |
9295 | fi | |
9296 | rm -f conftest* | |
9297 | fi | |
9298 | rm -f conftest* | |
9299 | ac_cv_prog_CPP="$CPP" | |
9300 | fi | |
9301 | CPP="$ac_cv_prog_CPP" | |
9302 | else | |
9303 | ac_cv_prog_CPP="$CPP" | |
9304 | fi | |
9305 | echo "$ac_t""$CPP" 1>&6 | |
9306 | ||
9307 | if test $ac_cv_prog_gcc = yes; then | |
9308 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
9309 | echo "configure:9310: checking whether ${CC-cc} needs -traditional" >&5 | |
9310 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then | |
9311 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9312 | else | |
9313 | ac_pattern="Autoconf.*'x'" | |
9314 | cat > conftest.$ac_ext <<EOF | |
9315 | #line 9316 "configure" | |
9316 | #include "confdefs.h" | |
9317 | #include <sgtty.h> | |
9318 | Autoconf TIOCGETP | |
9319 | EOF | |
9320 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9321 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
9322 | rm -rf conftest* | |
9323 | ac_cv_prog_gcc_traditional=yes | |
9324 | else | |
9325 | rm -rf conftest* | |
9326 | ac_cv_prog_gcc_traditional=no | |
9327 | fi | |
9328 | rm -f conftest* | |
9329 | ||
9330 | ||
9331 | if test $ac_cv_prog_gcc_traditional = no; then | |
9332 | cat > conftest.$ac_ext <<EOF | |
9333 | #line 9334 "configure" | |
9334 | #include "confdefs.h" | |
9335 | #include <termio.h> | |
9336 | Autoconf TCGETA | |
9337 | EOF | |
9338 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9339 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
9340 | rm -rf conftest* | |
9341 | ac_cv_prog_gcc_traditional=yes | |
9342 | fi | |
9343 | rm -f conftest* | |
9344 | ||
9345 | fi | |
9346 | fi | |
9347 | ||
9348 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
9349 | if test $ac_cv_prog_gcc_traditional = yes; then | |
9350 | CC="$CC -traditional" | |
9351 | fi | |
9352 | fi | |
9353 | ||
9354 | ||
9355 | ||
9356 | ac_ext=C | |
9357 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9358 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9359 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9360 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9361 | cross_compiling=$ac_cv_prog_cxx_cross | |
9362 | ||
9363 | ||
9364 | CXXFLAGS=${CXXFLAGS:=} | |
9365 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
9366 | do | |
9367 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9368 | set dummy $ac_prog; ac_word=$2 | |
9369 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9370 | echo "configure:9371: checking for $ac_word" >&5 | |
9371 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then | |
9372 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9373 | else | |
9374 | if test -n "$CXX"; then | |
9375 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
9376 | else | |
9377 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
9378 | ac_dummy="$PATH" | |
9379 | for ac_dir in $ac_dummy; do | |
9380 | test -z "$ac_dir" && ac_dir=. | |
9381 | if test -f $ac_dir/$ac_word; then | |
9382 | ac_cv_prog_CXX="$ac_prog" | |
9383 | break | |
9384 | fi | |
9385 | done | |
9386 | IFS="$ac_save_ifs" | |
9387 | fi | |
9388 | fi | |
9389 | CXX="$ac_cv_prog_CXX" | |
9390 | if test -n "$CXX"; then | |
9391 | echo "$ac_t""$CXX" 1>&6 | |
9392 | else | |
9393 | echo "$ac_t""no" 1>&6 | |
9394 | fi | |
9395 | ||
9396 | test -n "$CXX" && break | |
9397 | done | |
9398 | test -n "$CXX" || CXX="gcc" | |
9399 | ||
9400 | ||
9401 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
9402 | echo "configure:9403: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 | |
9403 | ||
9404 | ac_ext=C | |
9405 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9406 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9407 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9408 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9409 | cross_compiling=$ac_cv_prog_cxx_cross | |
9410 | ||
9411 | cat > conftest.$ac_ext << EOF | |
9412 | ||
9413 | #line 9414 "configure" | |
9414 | #include "confdefs.h" | |
9415 | ||
9416 | int main(){return(0);} | |
9417 | EOF | |
9418 | if { (eval echo configure:9419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9419 | ac_cv_prog_cxx_works=yes | |
9420 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9421 | if (./conftest; exit) 2>/dev/null; then | |
9422 | ac_cv_prog_cxx_cross=no | |
9423 | else | |
9424 | ac_cv_prog_cxx_cross=yes | |
9425 | fi | |
9426 | else | |
9427 | echo "configure: failed program was:" >&5 | |
9428 | cat conftest.$ac_ext >&5 | |
9429 | ac_cv_prog_cxx_works=no | |
9430 | fi | |
9431 | rm -fr conftest* | |
9432 | ac_ext=C | |
9433 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9434 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9435 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9436 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9437 | cross_compiling=$ac_cv_prog_cxx_cross | |
9438 | ||
9439 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
9440 | if test $ac_cv_prog_cxx_works = no; then | |
9441 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9442 | fi | |
9443 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
9444 | echo "configure:9445: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
9445 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 | |
9446 | cross_compiling=$ac_cv_prog_cxx_cross | |
9447 | ||
9448 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
9449 | echo "configure:9450: checking whether we are using GNU C++" >&5 | |
9450 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then | |
9451 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9452 | else | |
9453 | cat > conftest.C <<EOF | |
9454 | #ifdef __GNUC__ | |
9455 | yes; | |
9456 | #endif | |
9457 | EOF | |
9458 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
9459 | ac_cv_prog_gxx=yes | |
9460 | else | |
9461 | ac_cv_prog_gxx=no | |
9462 | fi | |
9463 | fi | |
9464 | ||
9465 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
9466 | ||
9467 | if test $ac_cv_prog_gxx = yes; then | |
9468 | GXX=yes | |
9469 | else | |
9470 | GXX= | |
9471 | fi | |
9472 | ||
9473 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
9474 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9475 | CXXFLAGS= | |
9476 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
9477 | echo "configure:9478: checking whether ${CXX-g++} accepts -g" >&5 | |
9478 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then | |
9479 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9480 | else | |
9481 | echo 'void f(){}' > conftest.cc | |
9482 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
9483 | ac_cv_prog_cxx_g=yes | |
9484 | else | |
9485 | ac_cv_prog_cxx_g=no | |
9486 | fi | |
9487 | rm -f conftest* | |
9488 | ||
9489 | fi | |
9490 | ||
9491 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
9492 | if test "$ac_test_CXXFLAGS" = set; then | |
9493 | CXXFLAGS="$ac_save_CXXFLAGS" | |
9494 | elif test $ac_cv_prog_cxx_g = yes; then | |
9495 | if test "$GXX" = yes; then | |
9496 | CXXFLAGS="-g -O2" | |
9497 | else | |
9498 | CXXFLAGS="-g" | |
9499 | fi | |
9500 | else | |
9501 | if test "$GXX" = yes; then | |
9502 | CXXFLAGS="-O2" | |
9503 | else | |
9504 | CXXFLAGS= | |
9505 | fi | |
9506 | fi | |
9507 | ||
9508 | ||
9509 | ac_ext=c | |
9510 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9511 | ac_cpp='$CPP $CPPFLAGS' | |
9512 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9513 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9514 | cross_compiling=$ac_cv_prog_cc_cross | |
9515 | ||
9516 | ||
9517 | # Extract the first word of "ranlib", so it can be a program name with args. | |
9518 | set dummy ranlib; ac_word=$2 | |
9519 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9520 | echo "configure:9521: checking for $ac_word" >&5 | |
9521 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | |
9522 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9523 | else | |
9524 | if test -n "$RANLIB"; then | |
9525 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9526 | else | |
9527 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
9528 | ac_dummy="$PATH" | |
9529 | for ac_dir in $ac_dummy; do | |
9530 | test -z "$ac_dir" && ac_dir=. | |
9531 | if test -f $ac_dir/$ac_word; then | |
9532 | ac_cv_prog_RANLIB="ranlib" | |
9533 | break | |
9534 | fi | |
9535 | done | |
9536 | IFS="$ac_save_ifs" | |
9537 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
9538 | fi | |
9539 | fi | |
9540 | RANLIB="$ac_cv_prog_RANLIB" | |
9541 | if test -n "$RANLIB"; then | |
9542 | echo "$ac_t""$RANLIB" 1>&6 | |
9543 | else | |
9544 | echo "$ac_t""no" 1>&6 | |
9545 | fi | |
9546 | ||
9547 | ||
9548 | # Extract the first word of "ar", so it can be a program name with args. | |
9549 | set dummy ar; ac_word=$2 | |
9550 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9551 | echo "configure:9552: checking for $ac_word" >&5 | |
9552 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | |
9553 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9554 | else | |
9555 | if test -n "$AR"; then | |
9556 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9557 | else | |
9558 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
9559 | ac_dummy="$PATH" | |
9560 | for ac_dir in $ac_dummy; do | |
9561 | test -z "$ac_dir" && ac_dir=. | |
9562 | if test -f $ac_dir/$ac_word; then | |
9563 | ac_cv_prog_AR="ar" | |
9564 | break | |
9565 | fi | |
9566 | done | |
9567 | IFS="$ac_save_ifs" | |
9568 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
9569 | fi | |
9570 | fi | |
9571 | AR="$ac_cv_prog_AR" | |
9572 | if test -n "$AR"; then | |
9573 | echo "$ac_t""$AR" 1>&6 | |
9574 | else | |
9575 | echo "$ac_t""no" 1>&6 | |
9576 | fi | |
9577 | ||
9578 | ||
9579 | # Find a good install program. We prefer a C program (faster), | |
9580 | # so one script is as good as another. But avoid the broken or | |
9581 | # incompatible versions: | |
9582 | # SysV /etc/install, /usr/sbin/install | |
9583 | # SunOS /usr/etc/install | |
9584 | # IRIX /sbin/install | |
9585 | # AIX /bin/install | |
9586 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
9587 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
9588 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9589 | # ./install, which can be erroneously created by make from ./install.sh. | |
9590 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
9591 | echo "configure:9592: checking for a BSD compatible install" >&5 | |
9592 | if test -z "$INSTALL"; then | |
9593 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
9594 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9595 | else | |
9596 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
9597 | for ac_dir in $PATH; do | |
9598 | # Account for people who put trailing slashes in PATH elements. | |
9599 | case "$ac_dir/" in | |
9600 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
9601 | *) | |
9602 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9603 | # Don't use installbsd from OSF since it installs stuff as root | |
9604 | # by default. | |
9605 | for ac_prog in ginstall scoinst install; do | |
9606 | if test -f $ac_dir/$ac_prog; then | |
9607 | if test $ac_prog = install && | |
9608 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
9609 | # AIX install. It has an incompatible calling convention. | |
9610 | : | |
9611 | else | |
9612 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9613 | break 2 | |
9614 | fi | |
9615 | fi | |
9616 | done | |
9617 | ;; | |
9618 | esac | |
9619 | done | |
9620 | IFS="$ac_save_IFS" | |
9621 | ||
9622 | fi | |
9623 | if test "${ac_cv_path_install+set}" = set; then | |
9624 | INSTALL="$ac_cv_path_install" | |
9625 | else | |
9626 | # As a last resort, use the slow shell script. We don't cache a | |
9627 | # path for INSTALL within a source directory, because that will | |
9628 | # break other packages using the cache if that directory is | |
9629 | # removed, or if the path is relative. | |
9630 | INSTALL="$ac_install_sh" | |
9631 | fi | |
9632 | fi | |
9633 | echo "$ac_t""$INSTALL" 1>&6 | |
9634 | ||
9635 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9636 | # It thinks the first close brace ends the variable substitution. | |
9637 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9638 | ||
9639 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
9640 | ||
9641 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
9642 | ||
9643 | ||
9644 | case ${INSTALL} in | |
9645 | /* ) # Absolute | |
9646 | ;; | |
9647 | ?:* ) # Drive letter, considered as absolute. | |
9648 | ;; | |
9649 | *) | |
9650 | INSTALL=`pwd`/${INSTALL} ;; | |
9651 | esac | |
9652 | ||
9653 | case ${host} in | |
9654 | *-hp-hpux* ) | |
9655 | INSTALL_DIR="mkdir" | |
9656 | ;; | |
9657 | ||
9658 | *) INSTALL_DIR="$INSTALL -d" | |
9659 | ;; | |
9660 | esac | |
9661 | ||
9662 | ||
9663 | case "${host}" in | |
9664 | ||
9665 | powerpc-*-darwin* ) | |
9666 | INSTALL_PROGRAM="cp -fp" | |
9667 | INSTALL_DATA="cp -fp" | |
9668 | ;; | |
9669 | *) | |
9670 | ;; | |
9671 | esac | |
9672 | ||
9673 | # Extract the first word of "strip", so it can be a program name with args. | |
9674 | set dummy strip; ac_word=$2 | |
9675 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9676 | echo "configure:9677: checking for $ac_word" >&5 | |
9677 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | |
9678 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9679 | else | |
9680 | if test -n "$STRIP"; then | |
9681 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9682 | else | |
9683 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
9684 | ac_dummy="$PATH" | |
9685 | for ac_dir in $ac_dummy; do | |
9686 | test -z "$ac_dir" && ac_dir=. | |
9687 | if test -f $ac_dir/$ac_word; then | |
9688 | ac_cv_prog_STRIP="strip" | |
9689 | break | |
9690 | fi | |
9691 | done | |
9692 | IFS="$ac_save_ifs" | |
9693 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
9694 | fi | |
9695 | fi | |
9696 | STRIP="$ac_cv_prog_STRIP" | |
9697 | if test -n "$STRIP"; then | |
9698 | echo "$ac_t""$STRIP" 1>&6 | |
9699 | else | |
9700 | echo "$ac_t""no" 1>&6 | |
9701 | fi | |
9702 | ||
9703 | ||
9704 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 | |
9705 | echo "configure:9706: checking if make is GNU make" >&5 | |
9706 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then | |
9707 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9708 | else | |
9709 | ||
9710 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
9711 | egrep -s GNU > /dev/null); then | |
9712 | wx_cv_prog_makeisgnu="yes" | |
9713 | else | |
9714 | wx_cv_prog_makeisgnu="no" | |
9715 | fi | |
9716 | ||
9717 | fi | |
9718 | ||
9719 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
9720 | ||
9721 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9722 | IF_GNU_MAKE="" | |
9723 | else | |
9724 | IF_GNU_MAKE="#" | |
9725 | fi | |
9726 | ||
9727 | ||
9728 | ||
9729 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
9730 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 | |
9731 | echo "configure:9732: checking if make supports VPATH" >&5 | |
9732 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then | |
9733 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9734 | else | |
9735 | ||
9736 | cat - << EOF > confMake | |
9737 | check : file | |
9738 | cp \$? \$@ | |
9739 | cp \$? final_file | |
9740 | EOF | |
9741 | ||
9742 | if test ! -d sub ; then | |
9743 | mkdir sub | |
9744 | fi | |
9745 | echo dummy > sub/file | |
9746 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
9747 | RESULT=$? | |
9748 | rm -f sub/file check final_file confMake | |
9749 | rmdir sub | |
9750 | if test "$RESULT" = 0; then | |
9751 | wx_cv_prog_makevpath="yes" | |
9752 | else | |
9753 | wx_cv_prog_makevpath="no" | |
9754 | fi | |
9755 | ||
9756 | fi | |
9757 | ||
9758 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
9759 | ||
9760 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
9761 | { echo "configure: error: | |
9762 | You need a make-utility that is able to use the variable | |
9763 | VPATH correctly. | |
9764 | If your version of make does not support VPATH correctly, | |
9765 | please install GNU-make (possibly as gmake), and start | |
9766 | configure with the following command: | |
9767 | export MAKE=gmake; ./configure for sh-type shells | |
9768 | setenv MAKE gmake; ./configure for csh-type shells | |
9769 | Also please do remember to use gmake in this case every time | |
9770 | you are trying to compile. | |
9771 | " 1>&2; exit 1; } | |
9772 | fi fi | |
9773 | for ac_prog in 'bison -y' byacc | |
9774 | do | |
9775 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9776 | set dummy $ac_prog; ac_word=$2 | |
9777 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9778 | echo "configure:9779: checking for $ac_word" >&5 | |
9779 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then | |
9780 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9781 | else | |
9782 | if test -n "$YACC"; then | |
9783 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9784 | else | |
9785 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
9786 | ac_dummy="$PATH" | |
9787 | for ac_dir in $ac_dummy; do | |
9788 | test -z "$ac_dir" && ac_dir=. | |
9789 | if test -f $ac_dir/$ac_word; then | |
9790 | ac_cv_prog_YACC="$ac_prog" | |
9791 | break | |
9792 | fi | |
9793 | done | |
9794 | IFS="$ac_save_ifs" | |
9795 | fi | |
9796 | fi | |
9797 | YACC="$ac_cv_prog_YACC" | |
9798 | if test -n "$YACC"; then | |
9799 | echo "$ac_t""$YACC" 1>&6 | |
9800 | else | |
9801 | echo "$ac_t""no" 1>&6 | |
9802 | fi | |
9803 | ||
9804 | test -n "$YACC" && break | |
9805 | done | |
9806 | test -n "$YACC" || YACC="yacc" | |
9807 | ||
9808 | ||
9809 | # Extract the first word of "flex", so it can be a program name with args. | |
9810 | set dummy flex; ac_word=$2 | |
9811 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9812 | echo "configure:9813: checking for $ac_word" >&5 | |
9813 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then | |
9814 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9815 | else | |
9816 | if test -n "$LEX"; then | |
9817 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9818 | else | |
9819 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
9820 | ac_dummy="$PATH" | |
9821 | for ac_dir in $ac_dummy; do | |
9822 | test -z "$ac_dir" && ac_dir=. | |
9823 | if test -f $ac_dir/$ac_word; then | |
9824 | ac_cv_prog_LEX="flex" | |
9825 | break | |
9826 | fi | |
9827 | done | |
9828 | IFS="$ac_save_ifs" | |
9829 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
9830 | fi | |
9831 | fi | |
9832 | LEX="$ac_cv_prog_LEX" | |
9833 | if test -n "$LEX"; then | |
9834 | echo "$ac_t""$LEX" 1>&6 | |
9835 | else | |
9836 | echo "$ac_t""no" 1>&6 | |
9837 | fi | |
9838 | ||
9839 | if test -z "$LEXLIB" | |
9840 | then | |
9841 | case "$LEX" in | |
9842 | flex*) ac_lib=fl ;; | |
9843 | *) ac_lib=l ;; | |
9844 | esac | |
9845 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
9846 | echo "configure:9847: checking for yywrap in -l$ac_lib" >&5 | |
9847 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` | |
9848 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9849 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9850 | else | |
9851 | ac_save_LIBS="$LIBS" | |
9852 | LIBS="-l$ac_lib $LIBS" | |
9853 | cat > conftest.$ac_ext <<EOF | |
9854 | #line 9855 "configure" | |
9855 | #include "confdefs.h" | |
9856 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9857 | /* We use char because int might match the return type of a gcc2 | |
9858 | builtin and then its argument prototype would still apply. */ | |
9859 | char yywrap(); | |
9860 | ||
9861 | int main() { | |
9862 | yywrap() | |
9863 | ; return 0; } | |
9864 | EOF | |
9865 | if { (eval echo configure:9866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9866 | rm -rf conftest* | |
9867 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9868 | else | |
9869 | echo "configure: failed program was:" >&5 | |
9870 | cat conftest.$ac_ext >&5 | |
9871 | rm -rf conftest* | |
9872 | eval "ac_cv_lib_$ac_lib_var=no" | |
9873 | fi | |
9874 | rm -f conftest* | |
9875 | LIBS="$ac_save_LIBS" | |
9876 | ||
9877 | fi | |
9878 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9879 | echo "$ac_t""yes" 1>&6 | |
9880 | LEXLIB="-l$ac_lib" | |
9881 | else | |
9882 | echo "$ac_t""no" 1>&6 | |
9883 | fi | |
9884 | ||
9885 | fi | |
9886 | ||
9887 | ||
9888 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
9889 | echo "configure:9890: checking whether ln -s works" >&5 | |
9890 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | |
9891 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9892 | else | |
9893 | rm -f conftestdata | |
9894 | if ln -s X conftestdata 2>/dev/null | |
9895 | then | |
9896 | rm -f conftestdata | |
9897 | ac_cv_prog_LN_S="ln -s" | |
9898 | else | |
9899 | ac_cv_prog_LN_S=ln | |
9900 | fi | |
9901 | fi | |
9902 | LN_S="$ac_cv_prog_LN_S" | |
9903 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9904 | echo "$ac_t""yes" 1>&6 | |
9905 | else | |
9906 | echo "$ac_t""no" 1>&6 | |
9907 | fi | |
9908 | ||
9909 | ||
9910 | case "${host}" in | |
9911 | *-pc-os2_emx | *-pc-os2-emx ) | |
9912 | LIBS="$LIBS -lstdcpp" | |
9913 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
9914 | echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6 | |
9915 | echo "configure:9916: checking for drand48 in -lcExt" >&5 | |
9916 | ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'` | |
9917 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9918 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9919 | else | |
9920 | ac_save_LIBS="$LIBS" | |
9921 | LIBS="-lcExt $LIBS" | |
9922 | cat > conftest.$ac_ext <<EOF | |
9923 | #line 9924 "configure" | |
9924 | #include "confdefs.h" | |
9925 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9926 | /* We use char because int might match the return type of a gcc2 | |
9927 | builtin and then its argument prototype would still apply. */ | |
9928 | char drand48(); | |
9929 | ||
9930 | int main() { | |
9931 | drand48() | |
9932 | ; return 0; } | |
9933 | EOF | |
9934 | if { (eval echo configure:9935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9935 | rm -rf conftest* | |
9936 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9937 | else | |
9938 | echo "configure: failed program was:" >&5 | |
9939 | cat conftest.$ac_ext >&5 | |
9940 | rm -rf conftest* | |
9941 | eval "ac_cv_lib_$ac_lib_var=no" | |
9942 | fi | |
9943 | rm -f conftest* | |
9944 | LIBS="$ac_save_LIBS" | |
9945 | ||
9946 | fi | |
9947 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9948 | echo "$ac_t""yes" 1>&6 | |
9949 | LIBS="$LIBS -lcExt" | |
9950 | else | |
9951 | echo "$ac_t""no" 1>&6 | |
9952 | fi | |
9953 | ||
9954 | else | |
9955 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
9956 | fi | |
9957 | ;; | |
9958 | esac | |
9959 | ||
9960 | ||
9961 | if test "$wxUSE_MAC" != 1; then | |
9962 | for ac_hdr in strings.h | |
9963 | do | |
9964 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9965 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9966 | echo "configure:9967: checking for $ac_hdr" >&5 | |
9967 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9968 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9969 | else | |
9970 | cat > conftest.$ac_ext <<EOF | |
9971 | #line 9972 "configure" | |
9972 | #include "confdefs.h" | |
9973 | #include <$ac_hdr> | |
9974 | EOF | |
9975 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9976 | { (eval echo configure:9977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9977 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9978 | if test -z "$ac_err"; then | |
9979 | rm -rf conftest* | |
9980 | eval "ac_cv_header_$ac_safe=yes" | |
9981 | else | |
9982 | echo "$ac_err" >&5 | |
9983 | echo "configure: failed program was:" >&5 | |
9984 | cat conftest.$ac_ext >&5 | |
9985 | rm -rf conftest* | |
9986 | eval "ac_cv_header_$ac_safe=no" | |
9987 | fi | |
9988 | rm -f conftest* | |
9989 | fi | |
9990 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9991 | echo "$ac_t""yes" 1>&6 | |
9992 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9993 | cat >> confdefs.h <<EOF | |
9994 | #define $ac_tr_hdr 1 | |
9995 | EOF | |
9996 | ||
9997 | else | |
9998 | echo "$ac_t""no" 1>&6 | |
9999 | fi | |
10000 | done | |
10001 | ||
10002 | fi | |
10003 | ||
10004 | for ac_hdr in stdlib.h | |
10005 | do | |
10006 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10007 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
10008 | echo "configure:10009: checking for $ac_hdr" >&5 | |
10009 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10010 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10011 | else | |
10012 | cat > conftest.$ac_ext <<EOF | |
10013 | #line 10014 "configure" | |
10014 | #include "confdefs.h" | |
10015 | #include <$ac_hdr> | |
10016 | EOF | |
10017 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10018 | { (eval echo configure:10019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10019 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10020 | if test -z "$ac_err"; then | |
10021 | rm -rf conftest* | |
10022 | eval "ac_cv_header_$ac_safe=yes" | |
10023 | else | |
10024 | echo "$ac_err" >&5 | |
10025 | echo "configure: failed program was:" >&5 | |
10026 | cat conftest.$ac_ext >&5 | |
10027 | rm -rf conftest* | |
10028 | eval "ac_cv_header_$ac_safe=no" | |
10029 | fi | |
10030 | rm -f conftest* | |
10031 | fi | |
10032 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10033 | echo "$ac_t""yes" 1>&6 | |
10034 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10035 | cat >> confdefs.h <<EOF | |
10036 | #define $ac_tr_hdr 1 | |
10037 | EOF | |
10038 | ||
10039 | else | |
10040 | echo "$ac_t""no" 1>&6 | |
10041 | fi | |
10042 | done | |
10043 | ||
10044 | for ac_hdr in malloc.h | |
10045 | do | |
10046 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10047 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
10048 | echo "configure:10049: checking for $ac_hdr" >&5 | |
10049 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10050 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10051 | else | |
10052 | cat > conftest.$ac_ext <<EOF | |
10053 | #line 10054 "configure" | |
10054 | #include "confdefs.h" | |
10055 | #include <$ac_hdr> | |
10056 | EOF | |
10057 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10058 | { (eval echo configure:10059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10059 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10060 | if test -z "$ac_err"; then | |
10061 | rm -rf conftest* | |
10062 | eval "ac_cv_header_$ac_safe=yes" | |
10063 | else | |
10064 | echo "$ac_err" >&5 | |
10065 | echo "configure: failed program was:" >&5 | |
10066 | cat conftest.$ac_ext >&5 | |
10067 | rm -rf conftest* | |
10068 | eval "ac_cv_header_$ac_safe=no" | |
10069 | fi | |
10070 | rm -f conftest* | |
10071 | fi | |
10072 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10073 | echo "$ac_t""yes" 1>&6 | |
10074 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10075 | cat >> confdefs.h <<EOF | |
10076 | #define $ac_tr_hdr 1 | |
10077 | EOF | |
10078 | ||
10079 | else | |
10080 | echo "$ac_t""no" 1>&6 | |
10081 | fi | |
10082 | done | |
10083 | ||
10084 | for ac_hdr in unistd.h | |
10085 | do | |
10086 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10087 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
10088 | echo "configure:10089: checking for $ac_hdr" >&5 | |
10089 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10090 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10091 | else | |
10092 | cat > conftest.$ac_ext <<EOF | |
10093 | #line 10094 "configure" | |
10094 | #include "confdefs.h" | |
10095 | #include <$ac_hdr> | |
10096 | EOF | |
10097 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10098 | { (eval echo configure:10099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10099 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10100 | if test -z "$ac_err"; then | |
10101 | rm -rf conftest* | |
10102 | eval "ac_cv_header_$ac_safe=yes" | |
10103 | else | |
10104 | echo "$ac_err" >&5 | |
10105 | echo "configure: failed program was:" >&5 | |
10106 | cat conftest.$ac_ext >&5 | |
10107 | rm -rf conftest* | |
10108 | eval "ac_cv_header_$ac_safe=no" | |
10109 | fi | |
10110 | rm -f conftest* | |
10111 | fi | |
10112 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10113 | echo "$ac_t""yes" 1>&6 | |
10114 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10115 | cat >> confdefs.h <<EOF | |
10116 | #define $ac_tr_hdr 1 | |
10117 | EOF | |
10118 | ||
10119 | else | |
10120 | echo "$ac_t""no" 1>&6 | |
10121 | fi | |
10122 | done | |
10123 | ||
10124 | for ac_hdr in wchar.h | |
10125 | do | |
10126 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10127 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
10128 | echo "configure:10129: checking for $ac_hdr" >&5 | |
10129 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10130 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10131 | else | |
10132 | cat > conftest.$ac_ext <<EOF | |
10133 | #line 10134 "configure" | |
10134 | #include "confdefs.h" | |
10135 | #include <$ac_hdr> | |
10136 | EOF | |
10137 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10138 | { (eval echo configure:10139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10139 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10140 | if test -z "$ac_err"; then | |
10141 | rm -rf conftest* | |
10142 | eval "ac_cv_header_$ac_safe=yes" | |
10143 | else | |
10144 | echo "$ac_err" >&5 | |
10145 | echo "configure: failed program was:" >&5 | |
10146 | cat conftest.$ac_ext >&5 | |
10147 | rm -rf conftest* | |
10148 | eval "ac_cv_header_$ac_safe=no" | |
10149 | fi | |
10150 | rm -f conftest* | |
10151 | fi | |
10152 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10153 | echo "$ac_t""yes" 1>&6 | |
10154 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10155 | cat >> confdefs.h <<EOF | |
10156 | #define $ac_tr_hdr 1 | |
10157 | EOF | |
10158 | ||
10159 | else | |
10160 | echo "$ac_t""no" 1>&6 | |
10161 | fi | |
10162 | done | |
10163 | ||
10164 | ||
10165 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
10166 | for ac_hdr in wcstr.h | |
10167 | do | |
10168 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10169 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
10170 | echo "configure:10171: checking for $ac_hdr" >&5 | |
10171 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10172 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10173 | else | |
10174 | cat > conftest.$ac_ext <<EOF | |
10175 | #line 10176 "configure" | |
10176 | #include "confdefs.h" | |
10177 | #include <$ac_hdr> | |
10178 | EOF | |
10179 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10180 | { (eval echo configure:10181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10181 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10182 | if test -z "$ac_err"; then | |
10183 | rm -rf conftest* | |
10184 | eval "ac_cv_header_$ac_safe=yes" | |
10185 | else | |
10186 | echo "$ac_err" >&5 | |
10187 | echo "configure: failed program was:" >&5 | |
10188 | cat conftest.$ac_ext >&5 | |
10189 | rm -rf conftest* | |
10190 | eval "ac_cv_header_$ac_safe=no" | |
10191 | fi | |
10192 | rm -f conftest* | |
10193 | fi | |
10194 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10195 | echo "$ac_t""yes" 1>&6 | |
10196 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10197 | cat >> confdefs.h <<EOF | |
10198 | #define $ac_tr_hdr 1 | |
10199 | EOF | |
10200 | ||
10201 | else | |
10202 | echo "$ac_t""no" 1>&6 | |
10203 | fi | |
10204 | done | |
10205 | ||
10206 | fi | |
10207 | ||
10208 | for ac_hdr in fnmatch.h | |
10209 | do | |
10210 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10211 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
10212 | echo "configure:10213: checking for $ac_hdr" >&5 | |
10213 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10214 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10215 | else | |
10216 | cat > conftest.$ac_ext <<EOF | |
10217 | #line 10218 "configure" | |
10218 | #include "confdefs.h" | |
10219 | #include <$ac_hdr> | |
10220 | EOF | |
10221 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10222 | { (eval echo configure:10223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10223 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10224 | if test -z "$ac_err"; then | |
10225 | rm -rf conftest* | |
10226 | eval "ac_cv_header_$ac_safe=yes" | |
10227 | else | |
10228 | echo "$ac_err" >&5 | |
10229 | echo "configure: failed program was:" >&5 | |
10230 | cat conftest.$ac_ext >&5 | |
10231 | rm -rf conftest* | |
10232 | eval "ac_cv_header_$ac_safe=no" | |
10233 | fi | |
10234 | rm -f conftest* | |
10235 | fi | |
10236 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10237 | echo "$ac_t""yes" 1>&6 | |
10238 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10239 | cat >> confdefs.h <<EOF | |
10240 | #define $ac_tr_hdr 1 | |
10241 | EOF | |
10242 | ||
10243 | else | |
10244 | echo "$ac_t""no" 1>&6 | |
10245 | fi | |
10246 | done | |
10247 | ||
10248 | ||
10249 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
10250 | for ac_func in fnmatch | |
10251 | do | |
10252 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
10253 | echo "configure:10254: checking for $ac_func" >&5 | |
10254 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
10255 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10256 | else | |
10257 | cat > conftest.$ac_ext <<EOF | |
10258 | #line 10259 "configure" | |
10259 | #include "confdefs.h" | |
10260 | /* System header to define __stub macros and hopefully few prototypes, | |
10261 | which can conflict with char $ac_func(); below. */ | |
10262 | #include <assert.h> | |
10263 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10264 | /* We use char because int might match the return type of a gcc2 | |
10265 | builtin and then its argument prototype would still apply. */ | |
10266 | char $ac_func(); | |
10267 | ||
10268 | int main() { | |
10269 | ||
10270 | /* The GNU C library defines this for functions which it implements | |
10271 | to always fail with ENOSYS. Some functions are actually named | |
10272 | something starting with __ and the normal name is an alias. */ | |
10273 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10274 | choke me | |
10275 | #else | |
10276 | $ac_func(); | |
10277 | #endif | |
10278 | ||
10279 | ; return 0; } | |
10280 | EOF | |
10281 | if { (eval echo configure:10282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10282 | rm -rf conftest* | |
10283 | eval "ac_cv_func_$ac_func=yes" | |
10284 | else | |
10285 | echo "configure: failed program was:" >&5 | |
10286 | cat conftest.$ac_ext >&5 | |
10287 | rm -rf conftest* | |
10288 | eval "ac_cv_func_$ac_func=no" | |
10289 | fi | |
10290 | rm -f conftest* | |
10291 | fi | |
10292 | ||
10293 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10294 | echo "$ac_t""yes" 1>&6 | |
10295 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10296 | cat >> confdefs.h <<EOF | |
10297 | #define $ac_tr_func 1 | |
10298 | EOF | |
10299 | ||
10300 | else | |
10301 | echo "$ac_t""no" 1>&6 | |
10302 | fi | |
10303 | done | |
10304 | ||
10305 | fi | |
10306 | ||
10307 | for ac_hdr in langinfo.h | |
10308 | do | |
10309 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10310 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
10311 | echo "configure:10312: checking for $ac_hdr" >&5 | |
10312 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10313 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10314 | else | |
10315 | cat > conftest.$ac_ext <<EOF | |
10316 | #line 10317 "configure" | |
10317 | #include "confdefs.h" | |
10318 | #include <$ac_hdr> | |
10319 | EOF | |
10320 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10321 | { (eval echo configure:10322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10322 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10323 | if test -z "$ac_err"; then | |
10324 | rm -rf conftest* | |
10325 | eval "ac_cv_header_$ac_safe=yes" | |
10326 | else | |
10327 | echo "$ac_err" >&5 | |
10328 | echo "configure: failed program was:" >&5 | |
10329 | cat conftest.$ac_ext >&5 | |
10330 | rm -rf conftest* | |
10331 | eval "ac_cv_header_$ac_safe=no" | |
10332 | fi | |
10333 | rm -f conftest* | |
10334 | fi | |
10335 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10336 | echo "$ac_t""yes" 1>&6 | |
10337 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10338 | cat >> confdefs.h <<EOF | |
10339 | #define $ac_tr_hdr 1 | |
10340 | EOF | |
10341 | ||
10342 | else | |
10343 | echo "$ac_t""no" 1>&6 | |
10344 | fi | |
10345 | done | |
10346 | ||
10347 | ||
10348 | case "${host}" in | |
10349 | *-pc-os2_emx | *-pc-os2-emx ) | |
10350 | if test $ac_cv_header_langinfo_h = "yes"; then | |
10351 | LIBS="$LIBS -lintl" | |
10352 | fi | |
10353 | ;; | |
10354 | esac | |
10355 | ||
10356 | if test "$wxUSE_GUI" = "yes"; then | |
10357 | if test "$wxUSE_UNIX" = "yes"; then | |
10358 | for ac_hdr in X11/XKBlib.h | |
10359 | do | |
10360 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10361 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
10362 | echo "configure:10363: checking for $ac_hdr" >&5 | |
10363 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10364 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10365 | else | |
10366 | cat > conftest.$ac_ext <<EOF | |
10367 | #line 10368 "configure" | |
10368 | #include "confdefs.h" | |
10369 | #include <$ac_hdr> | |
10370 | EOF | |
10371 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10372 | { (eval echo configure:10373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10373 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10374 | if test -z "$ac_err"; then | |
10375 | rm -rf conftest* | |
10376 | eval "ac_cv_header_$ac_safe=yes" | |
10377 | else | |
10378 | echo "$ac_err" >&5 | |
10379 | echo "configure: failed program was:" >&5 | |
10380 | cat conftest.$ac_ext >&5 | |
10381 | rm -rf conftest* | |
10382 | eval "ac_cv_header_$ac_safe=no" | |
10383 | fi | |
10384 | rm -f conftest* | |
10385 | fi | |
10386 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10387 | echo "$ac_t""yes" 1>&6 | |
10388 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10389 | cat >> confdefs.h <<EOF | |
10390 | #define $ac_tr_hdr 1 | |
10391 | EOF | |
10392 | ||
10393 | else | |
10394 | echo "$ac_t""no" 1>&6 | |
10395 | fi | |
10396 | done | |
10397 | ||
10398 | fi | |
10399 | fi | |
10400 | ||
10401 | ||
10402 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
10403 | echo "configure:10404: checking for working const" >&5 | |
10404 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | |
10405 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10406 | else | |
10407 | cat > conftest.$ac_ext <<EOF | |
10408 | #line 10409 "configure" | |
10409 | #include "confdefs.h" | |
10410 | ||
10411 | int main() { | |
10412 | ||
10413 | /* Ultrix mips cc rejects this. */ | |
10414 | typedef int charset[2]; const charset x; | |
10415 | /* SunOS 4.1.1 cc rejects this. */ | |
10416 | char const *const *ccp; | |
10417 | char **p; | |
10418 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
10419 | struct point {int x, y;}; | |
10420 | static struct point const zero = {0,0}; | |
10421 | /* AIX XL C 1.02.0.0 rejects this. | |
10422 | It does not let you subtract one const X* pointer from another in an arm | |
10423 | of an if-expression whose if-part is not a constant expression */ | |
10424 | const char *g = "string"; | |
10425 | ccp = &g + (g ? g-g : 0); | |
10426 | /* HPUX 7.0 cc rejects these. */ | |
10427 | ++ccp; | |
10428 | p = (char**) ccp; | |
10429 | ccp = (char const *const *) p; | |
10430 | { /* SCO 3.2v4 cc rejects this. */ | |
10431 | char *t; | |
10432 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
10433 | ||
10434 | *t++ = 0; | |
10435 | } | |
10436 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
10437 | int x[] = {25, 17}; | |
10438 | const int *foo = &x[0]; | |
10439 | ++foo; | |
10440 | } | |
10441 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
10442 | typedef const int *iptr; | |
10443 | iptr p = 0; | |
10444 | ++p; | |
10445 | } | |
10446 | { /* AIX XL C 1.02.0.0 rejects this saying | |
10447 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
10448 | struct s { int j; const int *ap[3]; }; | |
10449 | struct s *b; b->j = 5; | |
10450 | } | |
10451 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
10452 | const int foo = 10; | |
10453 | } | |
10454 | ||
10455 | ; return 0; } | |
10456 | EOF | |
10457 | if { (eval echo configure:10458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10458 | rm -rf conftest* | |
10459 | ac_cv_c_const=yes | |
10460 | else | |
10461 | echo "configure: failed program was:" >&5 | |
10462 | cat conftest.$ac_ext >&5 | |
10463 | rm -rf conftest* | |
10464 | ac_cv_c_const=no | |
10465 | fi | |
10466 | rm -f conftest* | |
10467 | fi | |
10468 | ||
10469 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
10470 | if test $ac_cv_c_const = no; then | |
10471 | cat >> confdefs.h <<\EOF | |
10472 | #define const | |
10473 | EOF | |
10474 | ||
10475 | fi | |
10476 | ||
10477 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
10478 | echo "configure:10479: checking for inline" >&5 | |
10479 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | |
10480 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10481 | else | |
10482 | ac_cv_c_inline=no | |
10483 | for ac_kw in inline __inline__ __inline; do | |
10484 | cat > conftest.$ac_ext <<EOF | |
10485 | #line 10486 "configure" | |
10486 | #include "confdefs.h" | |
10487 | ||
10488 | int main() { | |
10489 | } $ac_kw foo() { | |
10490 | ; return 0; } | |
10491 | EOF | |
10492 | if { (eval echo configure:10493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10493 | rm -rf conftest* | |
10494 | ac_cv_c_inline=$ac_kw; break | |
10495 | else | |
10496 | echo "configure: failed program was:" >&5 | |
10497 | cat conftest.$ac_ext >&5 | |
10498 | fi | |
10499 | rm -f conftest* | |
10500 | done | |
10501 | ||
10502 | fi | |
10503 | ||
10504 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
10505 | case "$ac_cv_c_inline" in | |
10506 | inline | yes) ;; | |
10507 | no) cat >> confdefs.h <<\EOF | |
10508 | #define inline | |
10509 | EOF | |
10510 | ;; | |
10511 | *) cat >> confdefs.h <<EOF | |
10512 | #define inline $ac_cv_c_inline | |
10513 | EOF | |
10514 | ;; | |
10515 | esac | |
10516 | ||
10517 | ||
10518 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
10519 | echo "configure:10520: checking size of char" >&5 | |
10520 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then | |
10521 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10522 | else | |
10523 | if test "$cross_compiling" = yes; then | |
10524 | ac_cv_sizeof_char=1 | |
10525 | else | |
10526 | cat > conftest.$ac_ext <<EOF | |
10527 | #line 10528 "configure" | |
10528 | #include "confdefs.h" | |
10529 | #include <stdio.h> | |
10530 | #include <sys/types.h> | |
10531 | main() | |
10532 | { | |
10533 | FILE *f=fopen("conftestval", "w"); | |
10534 | if (!f) exit(1); | |
10535 | fprintf(f, "%d\n", sizeof(char)); | |
10536 | exit(0); | |
10537 | } | |
10538 | EOF | |
10539 | if { (eval echo configure:10540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10540 | then | |
10541 | ac_cv_sizeof_char=`cat conftestval` | |
10542 | else | |
10543 | echo "configure: failed program was:" >&5 | |
10544 | cat conftest.$ac_ext >&5 | |
10545 | rm -fr conftest* | |
10546 | ac_cv_sizeof_char=0 | |
10547 | fi | |
10548 | rm -fr conftest* | |
10549 | fi | |
10550 | ||
10551 | fi | |
10552 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | |
10553 | cat >> confdefs.h <<EOF | |
10554 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10555 | EOF | |
10556 | ||
10557 | ||
10558 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
10559 | echo "configure:10560: checking size of short" >&5 | |
10560 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then | |
10561 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10562 | else | |
10563 | if test "$cross_compiling" = yes; then | |
10564 | ac_cv_sizeof_short=2 | |
10565 | else | |
10566 | cat > conftest.$ac_ext <<EOF | |
10567 | #line 10568 "configure" | |
10568 | #include "confdefs.h" | |
10569 | #include <stdio.h> | |
10570 | #include <sys/types.h> | |
10571 | main() | |
10572 | { | |
10573 | FILE *f=fopen("conftestval", "w"); | |
10574 | if (!f) exit(1); | |
10575 | fprintf(f, "%d\n", sizeof(short)); | |
10576 | exit(0); | |
10577 | } | |
10578 | EOF | |
10579 | if { (eval echo configure:10580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10580 | then | |
10581 | ac_cv_sizeof_short=`cat conftestval` | |
10582 | else | |
10583 | echo "configure: failed program was:" >&5 | |
10584 | cat conftest.$ac_ext >&5 | |
10585 | rm -fr conftest* | |
10586 | ac_cv_sizeof_short=0 | |
10587 | fi | |
10588 | rm -fr conftest* | |
10589 | fi | |
10590 | ||
10591 | fi | |
10592 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
10593 | cat >> confdefs.h <<EOF | |
10594 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10595 | EOF | |
10596 | ||
10597 | ||
10598 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 | |
10599 | echo "configure:10600: checking size of void *" >&5 | |
10600 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then | |
10601 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10602 | else | |
10603 | if test "$cross_compiling" = yes; then | |
10604 | ac_cv_sizeof_void_p=4 | |
10605 | else | |
10606 | cat > conftest.$ac_ext <<EOF | |
10607 | #line 10608 "configure" | |
10608 | #include "confdefs.h" | |
10609 | #include <stdio.h> | |
10610 | #include <sys/types.h> | |
10611 | main() | |
10612 | { | |
10613 | FILE *f=fopen("conftestval", "w"); | |
10614 | if (!f) exit(1); | |
10615 | fprintf(f, "%d\n", sizeof(void *)); | |
10616 | exit(0); | |
10617 | } | |
10618 | EOF | |
10619 | if { (eval echo configure:10620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10620 | then | |
10621 | ac_cv_sizeof_void_p=`cat conftestval` | |
10622 | else | |
10623 | echo "configure: failed program was:" >&5 | |
10624 | cat conftest.$ac_ext >&5 | |
10625 | rm -fr conftest* | |
10626 | ac_cv_sizeof_void_p=0 | |
10627 | fi | |
10628 | rm -fr conftest* | |
10629 | fi | |
10630 | ||
10631 | fi | |
10632 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 | |
10633 | cat >> confdefs.h <<EOF | |
10634 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
10635 | EOF | |
10636 | ||
10637 | ||
10638 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
10639 | echo "configure:10640: checking size of int" >&5 | |
10640 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then | |
10641 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10642 | else | |
10643 | if test "$cross_compiling" = yes; then | |
10644 | ac_cv_sizeof_int=4 | |
10645 | else | |
10646 | cat > conftest.$ac_ext <<EOF | |
10647 | #line 10648 "configure" | |
10648 | #include "confdefs.h" | |
10649 | #include <stdio.h> | |
10650 | #include <sys/types.h> | |
10651 | main() | |
10652 | { | |
10653 | FILE *f=fopen("conftestval", "w"); | |
10654 | if (!f) exit(1); | |
10655 | fprintf(f, "%d\n", sizeof(int)); | |
10656 | exit(0); | |
10657 | } | |
10658 | EOF | |
10659 | if { (eval echo configure:10660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10660 | then | |
10661 | ac_cv_sizeof_int=`cat conftestval` | |
10662 | else | |
10663 | echo "configure: failed program was:" >&5 | |
10664 | cat conftest.$ac_ext >&5 | |
10665 | rm -fr conftest* | |
10666 | ac_cv_sizeof_int=0 | |
10667 | fi | |
10668 | rm -fr conftest* | |
10669 | fi | |
10670 | ||
10671 | fi | |
10672 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
10673 | cat >> confdefs.h <<EOF | |
10674 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10675 | EOF | |
10676 | ||
10677 | ||
10678 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
10679 | echo "configure:10680: checking size of long" >&5 | |
10680 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then | |
10681 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10682 | else | |
10683 | if test "$cross_compiling" = yes; then | |
10684 | ac_cv_sizeof_long=4 | |
10685 | else | |
10686 | cat > conftest.$ac_ext <<EOF | |
10687 | #line 10688 "configure" | |
10688 | #include "confdefs.h" | |
10689 | #include <stdio.h> | |
10690 | #include <sys/types.h> | |
10691 | main() | |
10692 | { | |
10693 | FILE *f=fopen("conftestval", "w"); | |
10694 | if (!f) exit(1); | |
10695 | fprintf(f, "%d\n", sizeof(long)); | |
10696 | exit(0); | |
10697 | } | |
10698 | EOF | |
10699 | if { (eval echo configure:10700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10700 | then | |
10701 | ac_cv_sizeof_long=`cat conftestval` | |
10702 | else | |
10703 | echo "configure: failed program was:" >&5 | |
10704 | cat conftest.$ac_ext >&5 | |
10705 | rm -fr conftest* | |
10706 | ac_cv_sizeof_long=0 | |
10707 | fi | |
10708 | rm -fr conftest* | |
10709 | fi | |
10710 | ||
10711 | fi | |
10712 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
10713 | cat >> confdefs.h <<EOF | |
10714 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10715 | EOF | |
10716 | ||
10717 | ||
10718 | ||
10719 | case "${host}" in | |
10720 | arm-*-linux* ) | |
10721 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
10722 | echo "configure:10723: checking size of long long" >&5 | |
10723 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | |
10724 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10725 | else | |
10726 | if test "$cross_compiling" = yes; then | |
10727 | ac_cv_sizeof_long_long=8 | |
10728 | else | |
10729 | cat > conftest.$ac_ext <<EOF | |
10730 | #line 10731 "configure" | |
10731 | #include "confdefs.h" | |
10732 | #include <stdio.h> | |
10733 | #include <sys/types.h> | |
10734 | main() | |
10735 | { | |
10736 | FILE *f=fopen("conftestval", "w"); | |
10737 | if (!f) exit(1); | |
10738 | fprintf(f, "%d\n", sizeof(long long)); | |
10739 | exit(0); | |
10740 | } | |
10741 | EOF | |
10742 | if { (eval echo configure:10743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10743 | then | |
10744 | ac_cv_sizeof_long_long=`cat conftestval` | |
10745 | else | |
10746 | echo "configure: failed program was:" >&5 | |
10747 | cat conftest.$ac_ext >&5 | |
10748 | rm -fr conftest* | |
10749 | ac_cv_sizeof_long_long=0 | |
10750 | fi | |
10751 | rm -fr conftest* | |
10752 | fi | |
10753 | ||
10754 | fi | |
10755 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10756 | cat >> confdefs.h <<EOF | |
10757 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10758 | EOF | |
10759 | ||
10760 | ||
10761 | ;; | |
10762 | *-hp-hpux* ) | |
10763 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
10764 | echo "configure:10765: checking size of long long" >&5 | |
10765 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | |
10766 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10767 | else | |
10768 | if test "$cross_compiling" = yes; then | |
10769 | ac_cv_sizeof_long_long=0 | |
10770 | else | |
10771 | cat > conftest.$ac_ext <<EOF | |
10772 | #line 10773 "configure" | |
10773 | #include "confdefs.h" | |
10774 | #include <stdio.h> | |
10775 | #include <sys/types.h> | |
10776 | main() | |
10777 | { | |
10778 | FILE *f=fopen("conftestval", "w"); | |
10779 | if (!f) exit(1); | |
10780 | fprintf(f, "%d\n", sizeof(long long)); | |
10781 | exit(0); | |
10782 | } | |
10783 | EOF | |
10784 | if { (eval echo configure:10785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10785 | then | |
10786 | ac_cv_sizeof_long_long=`cat conftestval` | |
10787 | else | |
10788 | echo "configure: failed program was:" >&5 | |
10789 | cat conftest.$ac_ext >&5 | |
10790 | rm -fr conftest* | |
10791 | ac_cv_sizeof_long_long=0 | |
10792 | fi | |
10793 | rm -fr conftest* | |
10794 | fi | |
10795 | ||
10796 | fi | |
10797 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10798 | cat >> confdefs.h <<EOF | |
10799 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10800 | EOF | |
10801 | ||
10802 | ||
10803 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
10804 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
10805 | fi | |
10806 | ;; | |
10807 | * ) | |
10808 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
10809 | echo "configure:10810: checking size of long long" >&5 | |
10810 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | |
10811 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10812 | else | |
10813 | if test "$cross_compiling" = yes; then | |
10814 | ac_cv_sizeof_long_long=0 | |
10815 | else | |
10816 | cat > conftest.$ac_ext <<EOF | |
10817 | #line 10818 "configure" | |
10818 | #include "confdefs.h" | |
10819 | #include <stdio.h> | |
10820 | #include <sys/types.h> | |
10821 | main() | |
10822 | { | |
10823 | FILE *f=fopen("conftestval", "w"); | |
10824 | if (!f) exit(1); | |
10825 | fprintf(f, "%d\n", sizeof(long long)); | |
10826 | exit(0); | |
10827 | } | |
10828 | EOF | |
10829 | if { (eval echo configure:10830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10830 | then | |
10831 | ac_cv_sizeof_long_long=`cat conftestval` | |
10832 | else | |
10833 | echo "configure: failed program was:" >&5 | |
10834 | cat conftest.$ac_ext >&5 | |
10835 | rm -fr conftest* | |
10836 | ac_cv_sizeof_long_long=0 | |
10837 | fi | |
10838 | rm -fr conftest* | |
10839 | fi | |
10840 | ||
10841 | fi | |
10842 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10843 | cat >> confdefs.h <<EOF | |
10844 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10845 | EOF | |
10846 | ||
10847 | ||
10848 | esac | |
10849 | ||
10850 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
10851 | echo "configure:10852: checking size of wchar_t" >&5 | |
10852 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then | |
10853 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10854 | else | |
10855 | ||
10856 | if test "$cross_compiling" = yes; then | |
10857 | ||
10858 | case "${host}" in | |
10859 | *-pc-msdosdjgpp ) | |
10860 | wx_cv_sizeof_wchar_t=0 | |
10861 | ;; | |
10862 | * ) | |
10863 | wx_cv_sizeof_wchar_t=4 | |
10864 | ;; | |
10865 | esac | |
10866 | ||
10867 | ||
10868 | else | |
10869 | cat > conftest.$ac_ext <<EOF | |
10870 | #line 10871 "configure" | |
10871 | #include "confdefs.h" | |
10872 | ||
10873 | /* DJGPP only has fake wchar_t: */ | |
10874 | #ifdef __DJGPP__ | |
10875 | # error "fake wchar_t" | |
10876 | #endif | |
10877 | #ifdef HAVE_WCHAR_H | |
10878 | # ifdef __CYGWIN__ | |
10879 | # include <stddef.h> | |
10880 | # endif | |
10881 | # include <wchar.h> | |
10882 | #endif | |
10883 | #ifdef HAVE_STDLIB_H | |
10884 | # include <stdlib.h> | |
10885 | #endif | |
10886 | #include <stdio.h> | |
10887 | int main() | |
10888 | { | |
10889 | FILE *f=fopen("conftestval", "w"); | |
10890 | if (!f) exit(1); | |
10891 | fprintf(f, "%i", sizeof(wchar_t)); | |
10892 | exit(0); | |
10893 | } | |
10894 | ||
10895 | EOF | |
10896 | if { (eval echo configure:10897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10897 | then | |
10898 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
10899 | else | |
10900 | echo "configure: failed program was:" >&5 | |
10901 | cat conftest.$ac_ext >&5 | |
10902 | rm -fr conftest* | |
10903 | wx_cv_sizeof_wchar_t=0 | |
10904 | fi | |
10905 | rm -fr conftest* | |
10906 | fi | |
10907 | ||
10908 | ||
10909 | fi | |
10910 | ||
10911 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 | |
10912 | ||
10913 | cat >> confdefs.h <<EOF | |
10914 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10915 | EOF | |
10916 | ||
10917 | ||
10918 | # Check whether --enable-largefile or --disable-largefile was given. | |
10919 | if test "${enable_largefile+set}" = set; then | |
10920 | enableval="$enable_largefile" | |
10921 | : | |
10922 | fi | |
10923 | ||
10924 | if test "$enable_largefile" != no; then | |
10925 | wx_largefile=no | |
10926 | ||
10927 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
10928 | echo "configure:10929: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
10929 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then | |
10930 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10931 | else | |
10932 | ||
10933 | cat > conftest.$ac_ext <<EOF | |
10934 | #line 10935 "configure" | |
10935 | #include "confdefs.h" | |
10936 | #define _FILE_OFFSET_BITS 64 | |
10937 | #include <sys/types.h> | |
10938 | int main() { | |
10939 | typedef struct { | |
10940 | unsigned int field: sizeof(off_t) == 8; | |
10941 | } wxlf; | |
10942 | ||
10943 | ; return 0; } | |
10944 | EOF | |
10945 | if { (eval echo configure:10946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10946 | rm -rf conftest* | |
10947 | ac_cv_sys_file_offset_bits=64 | |
10948 | else | |
10949 | echo "configure: failed program was:" >&5 | |
10950 | cat conftest.$ac_ext >&5 | |
10951 | rm -rf conftest* | |
10952 | ac_cv_sys_file_offset_bits=no | |
10953 | fi | |
10954 | rm -f conftest* | |
10955 | ||
10956 | ||
10957 | fi | |
10958 | ||
10959 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
10960 | ||
10961 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
10962 | wx_largefile=yes | |
10963 | cat >> confdefs.h <<EOF | |
10964 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
10965 | EOF | |
10966 | ||
10967 | fi | |
10968 | ||
10969 | if test "x$wx_largefile" != "xyes"; then | |
10970 | ||
10971 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
10972 | echo "configure:10973: checking for _LARGE_FILES value needed for large files" >&5 | |
10973 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then | |
10974 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10975 | else | |
10976 | ||
10977 | cat > conftest.$ac_ext <<EOF | |
10978 | #line 10979 "configure" | |
10979 | #include "confdefs.h" | |
10980 | #define _LARGE_FILES 1 | |
10981 | #include <sys/types.h> | |
10982 | int main() { | |
10983 | typedef struct { | |
10984 | unsigned int field: sizeof(off_t) == 8; | |
10985 | } wxlf; | |
10986 | ||
10987 | ; return 0; } | |
10988 | EOF | |
10989 | if { (eval echo configure:10990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10990 | rm -rf conftest* | |
10991 | ac_cv_sys_large_files=1 | |
10992 | else | |
10993 | echo "configure: failed program was:" >&5 | |
10994 | cat conftest.$ac_ext >&5 | |
10995 | rm -rf conftest* | |
10996 | ac_cv_sys_large_files=no | |
10997 | fi | |
10998 | rm -f conftest* | |
10999 | ||
11000 | ||
11001 | fi | |
11002 | ||
11003 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
11004 | ||
11005 | if test "$ac_cv_sys_large_files" != no; then | |
11006 | wx_largefile=yes | |
11007 | cat >> confdefs.h <<EOF | |
11008 | #define _LARGE_FILES $ac_cv_sys_large_files | |
11009 | EOF | |
11010 | ||
11011 | fi | |
11012 | ||
11013 | fi | |
11014 | ||
11015 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 | |
11016 | echo "configure:11017: checking if large file support is available" >&5 | |
11017 | if test "x$wx_largefile" = "xyes"; then | |
11018 | cat >> confdefs.h <<\EOF | |
11019 | #define HAVE_LARGEFILE_SUPPORT 1 | |
11020 | EOF | |
11021 | ||
11022 | fi | |
11023 | echo "$ac_t""$wx_largefile" 1>&6 | |
11024 | fi | |
11025 | ||
11026 | ||
11027 | if test "x$wx_largefile" = "xyes"; then | |
11028 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
11029 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
11030 | else | |
11031 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
11032 | fi | |
11033 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
11034 | fi | |
11035 | ||
11036 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
11037 | echo "configure:11038: checking whether byte ordering is bigendian" >&5 | |
11038 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then | |
11039 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11040 | else | |
11041 | ac_cv_c_bigendian=unknown | |
11042 | # See if sys/param.h defines the BYTE_ORDER macro. | |
11043 | cat > conftest.$ac_ext <<EOF | |
11044 | #line 11045 "configure" | |
11045 | #include "confdefs.h" | |
11046 | #include <sys/types.h> | |
11047 | #include <sys/param.h> | |
11048 | int main() { | |
11049 | ||
11050 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
11051 | bogus endian macros | |
11052 | #endif | |
11053 | ; return 0; } | |
11054 | EOF | |
11055 | if { (eval echo configure:11056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11056 | rm -rf conftest* | |
11057 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
11058 | cat > conftest.$ac_ext <<EOF | |
11059 | #line 11060 "configure" | |
11060 | #include "confdefs.h" | |
11061 | #include <sys/types.h> | |
11062 | #include <sys/param.h> | |
11063 | int main() { | |
11064 | ||
11065 | #if BYTE_ORDER != BIG_ENDIAN | |
11066 | not big endian | |
11067 | #endif | |
11068 | ; return 0; } | |
11069 | EOF | |
11070 | if { (eval echo configure:11071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11071 | rm -rf conftest* | |
11072 | ac_cv_c_bigendian=yes | |
11073 | else | |
11074 | echo "configure: failed program was:" >&5 | |
11075 | cat conftest.$ac_ext >&5 | |
11076 | rm -rf conftest* | |
11077 | ac_cv_c_bigendian=no | |
11078 | fi | |
11079 | rm -f conftest* | |
11080 | else | |
11081 | echo "configure: failed program was:" >&5 | |
11082 | cat conftest.$ac_ext >&5 | |
11083 | fi | |
11084 | rm -f conftest* | |
11085 | if test $ac_cv_c_bigendian = unknown; then | |
11086 | if test "$cross_compiling" = yes; then | |
11087 | ac_cv_c_bigendian=unknown | |
11088 | else | |
11089 | cat > conftest.$ac_ext <<EOF | |
11090 | #line 11091 "configure" | |
11091 | #include "confdefs.h" | |
11092 | main () { | |
11093 | /* Are we little or big endian? From Harbison&Steele. */ | |
11094 | union | |
11095 | { | |
11096 | long l; | |
11097 | char c[sizeof (long)]; | |
11098 | } u; | |
11099 | u.l = 1; | |
11100 | exit (u.c[sizeof (long) - 1] == 1); | |
11101 | } | |
11102 | EOF | |
11103 | if { (eval echo configure:11104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
11104 | then | |
11105 | ac_cv_c_bigendian=no | |
11106 | else | |
11107 | echo "configure: failed program was:" >&5 | |
11108 | cat conftest.$ac_ext >&5 | |
11109 | rm -fr conftest* | |
11110 | ac_cv_c_bigendian=yes | |
11111 | fi | |
11112 | rm -fr conftest* | |
11113 | fi | |
11114 | ||
11115 | fi | |
11116 | fi | |
11117 | ||
11118 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
11119 | if test $ac_cv_c_bigendian = unknown; then | |
11120 | echo "configure: warning: Assuming little-endian target machine - this may be overriden by adding the line "ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}" to config.cache file" 1>&2 | |
11121 | fi | |
11122 | if test $ac_cv_c_bigendian = yes; then | |
11123 | cat >> confdefs.h <<\EOF | |
11124 | #define WORDS_BIGENDIAN 1 | |
11125 | EOF | |
11126 | ||
11127 | fi | |
11128 | ||
11129 | ||
11130 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
11131 | echo "configure:11132: checking how to run the C++ preprocessor" >&5 | |
11132 | if test -z "$CXXCPP"; then | |
11133 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
11134 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11135 | else | |
11136 | ac_ext=C | |
11137 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11138 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11139 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11140 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11141 | cross_compiling=$ac_cv_prog_cxx_cross | |
11142 | CXXCPP="${CXX-g++} -E" | |
11143 | cat > conftest.$ac_ext <<EOF | |
11144 | #line 11145 "configure" | |
11145 | #include "confdefs.h" | |
11146 | #include <stdlib.h> | |
11147 | EOF | |
11148 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11149 | { (eval echo configure:11150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11150 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11151 | if test -z "$ac_err"; then | |
11152 | : | |
11153 | else | |
11154 | echo "$ac_err" >&5 | |
11155 | echo "configure: failed program was:" >&5 | |
11156 | cat conftest.$ac_ext >&5 | |
11157 | rm -rf conftest* | |
11158 | CXXCPP=/lib/cpp | |
11159 | fi | |
11160 | rm -f conftest* | |
11161 | ac_cv_prog_CXXCPP="$CXXCPP" | |
11162 | ac_ext=C | |
11163 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11164 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11165 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11166 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11167 | cross_compiling=$ac_cv_prog_cxx_cross | |
11168 | fi | |
11169 | fi | |
11170 | CXXCPP="$ac_cv_prog_CXXCPP" | |
11171 | echo "$ac_t""$CXXCPP" 1>&6 | |
11172 | ||
11173 | ||
11174 | if test "$cross_compiling" = "yes"; then | |
11175 | cat >> confdefs.h <<\EOF | |
11176 | #define wxUSE_IOSTREAMH 1 | |
11177 | EOF | |
11178 | ||
11179 | else | |
11180 | ||
11181 | ac_ext=C | |
11182 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11183 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11184 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11185 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11186 | cross_compiling=$ac_cv_prog_cxx_cross | |
11187 | ||
11188 | ||
11189 | for ac_hdr in iostream | |
11190 | do | |
11191 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11192 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
11193 | echo "configure:11194: checking for $ac_hdr" >&5 | |
11194 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11195 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11196 | else | |
11197 | cat > conftest.$ac_ext <<EOF | |
11198 | #line 11199 "configure" | |
11199 | #include "confdefs.h" | |
11200 | #include <$ac_hdr> | |
11201 | EOF | |
11202 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11203 | { (eval echo configure:11204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11204 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11205 | if test -z "$ac_err"; then | |
11206 | rm -rf conftest* | |
11207 | eval "ac_cv_header_$ac_safe=yes" | |
11208 | else | |
11209 | echo "$ac_err" >&5 | |
11210 | echo "configure: failed program was:" >&5 | |
11211 | cat conftest.$ac_ext >&5 | |
11212 | rm -rf conftest* | |
11213 | eval "ac_cv_header_$ac_safe=no" | |
11214 | fi | |
11215 | rm -f conftest* | |
11216 | fi | |
11217 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11218 | echo "$ac_t""yes" 1>&6 | |
11219 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11220 | cat >> confdefs.h <<EOF | |
11221 | #define $ac_tr_hdr 1 | |
11222 | EOF | |
11223 | ||
11224 | else | |
11225 | echo "$ac_t""no" 1>&6 | |
11226 | fi | |
11227 | done | |
11228 | ||
11229 | ||
11230 | if test "$ac_cv_header_iostream" = "yes" ; then | |
11231 | : | |
11232 | else | |
11233 | cat >> confdefs.h <<\EOF | |
11234 | #define wxUSE_IOSTREAMH 1 | |
11235 | EOF | |
11236 | ||
11237 | fi | |
11238 | ||
11239 | ac_ext=c | |
11240 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11241 | ac_cpp='$CPP $CPPFLAGS' | |
11242 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11243 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11244 | cross_compiling=$ac_cv_prog_cc_cross | |
11245 | ||
11246 | fi | |
11247 | ||
11248 | ||
11249 | ||
11250 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
11251 | echo "configure:11252: checking if C++ compiler supports bool" >&5 | |
11252 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then | |
11253 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11254 | else | |
11255 | ||
11256 | ||
11257 | ac_ext=C | |
11258 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11259 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11260 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11261 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11262 | cross_compiling=$ac_cv_prog_cxx_cross | |
11263 | ||
11264 | ||
11265 | cat > conftest.$ac_ext <<EOF | |
11266 | #line 11267 "configure" | |
11267 | #include "confdefs.h" | |
11268 | ||
11269 | ||
11270 | int main() { | |
11271 | ||
11272 | bool b = true; | |
11273 | ||
11274 | return 0; | |
11275 | ||
11276 | ; return 0; } | |
11277 | EOF | |
11278 | if { (eval echo configure:11279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11279 | rm -rf conftest* | |
11280 | ||
11281 | wx_cv_cpp_bool=yes | |
11282 | ||
11283 | else | |
11284 | echo "configure: failed program was:" >&5 | |
11285 | cat conftest.$ac_ext >&5 | |
11286 | rm -rf conftest* | |
11287 | ||
11288 | wx_cv_cpp_bool=no | |
11289 | ||
11290 | ||
11291 | fi | |
11292 | rm -f conftest* | |
11293 | ||
11294 | ac_ext=c | |
11295 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11296 | ac_cpp='$CPP $CPPFLAGS' | |
11297 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11298 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11299 | cross_compiling=$ac_cv_prog_cc_cross | |
11300 | ||
11301 | ||
11302 | fi | |
11303 | ||
11304 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
11305 | ||
11306 | if test "$wx_cv_cpp_bool" = "yes"; then | |
11307 | cat >> confdefs.h <<\EOF | |
11308 | #define HAVE_BOOL 1 | |
11309 | EOF | |
11310 | ||
11311 | fi | |
11312 | ||
11313 | ||
11314 | ||
11315 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 | |
11316 | echo "configure:11317: checking if C++ compiler supports the explicit keyword" >&5 | |
11317 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then | |
11318 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11319 | else | |
11320 | ||
11321 | ||
11322 | ac_ext=C | |
11323 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11324 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11325 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11326 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11327 | cross_compiling=$ac_cv_prog_cxx_cross | |
11328 | ||
11329 | ||
11330 | cat > conftest.$ac_ext <<EOF | |
11331 | #line 11332 "configure" | |
11332 | #include "confdefs.h" | |
11333 | ||
11334 | class Foo { public: explicit Foo(int) {} }; | |
11335 | ||
11336 | int main() { | |
11337 | ||
11338 | return 0; | |
11339 | ||
11340 | ; return 0; } | |
11341 | EOF | |
11342 | if { (eval echo configure:11343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11343 | rm -rf conftest* | |
11344 | ||
11345 | cat > conftest.$ac_ext <<EOF | |
11346 | #line 11347 "configure" | |
11347 | #include "confdefs.h" | |
11348 | ||
11349 | class Foo { public: explicit Foo(int) {} }; | |
11350 | static void TakeFoo(const Foo& foo) { } | |
11351 | ||
11352 | int main() { | |
11353 | ||
11354 | TakeFoo(17); | |
11355 | return 0; | |
11356 | ||
11357 | ; return 0; } | |
11358 | EOF | |
11359 | if { (eval echo configure:11360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11360 | rm -rf conftest* | |
11361 | wx_cv_explicit=no | |
11362 | else | |
11363 | echo "configure: failed program was:" >&5 | |
11364 | cat conftest.$ac_ext >&5 | |
11365 | rm -rf conftest* | |
11366 | wx_cv_explicit=yes | |
11367 | ||
11368 | fi | |
11369 | rm -f conftest* | |
11370 | ||
11371 | else | |
11372 | echo "configure: failed program was:" >&5 | |
11373 | cat conftest.$ac_ext >&5 | |
11374 | rm -rf conftest* | |
11375 | wx_cv_explicit=no | |
11376 | ||
11377 | fi | |
11378 | rm -f conftest* | |
11379 | ||
11380 | ac_ext=c | |
11381 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11382 | ac_cpp='$CPP $CPPFLAGS' | |
11383 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11384 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11385 | cross_compiling=$ac_cv_prog_cc_cross | |
11386 | ||
11387 | ||
11388 | fi | |
11389 | ||
11390 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
11391 | ||
11392 | if test "$wx_cv_explicit" = "yes"; then | |
11393 | cat >> confdefs.h <<\EOF | |
11394 | #define HAVE_EXPLICIT 1 | |
11395 | EOF | |
11396 | ||
11397 | fi | |
11398 | ||
11399 | ||
11400 | echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6 | |
11401 | echo "configure:11402: checking whether the compiler supports const_cast<>" >&5 | |
11402 | if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then | |
11403 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11404 | else | |
11405 | ||
11406 | ac_ext=C | |
11407 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11408 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11409 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11410 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11411 | cross_compiling=$ac_cv_prog_cxx_cross | |
11412 | ||
11413 | cat > conftest.$ac_ext <<EOF | |
11414 | #line 11415 "configure" | |
11415 | #include "confdefs.h" | |
11416 | ||
11417 | int main() { | |
11418 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
11419 | ; return 0; } | |
11420 | EOF | |
11421 | if { (eval echo configure:11422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11422 | rm -rf conftest* | |
11423 | ac_cv_cxx_const_cast=yes | |
11424 | else | |
11425 | echo "configure: failed program was:" >&5 | |
11426 | cat conftest.$ac_ext >&5 | |
11427 | rm -rf conftest* | |
11428 | ac_cv_cxx_const_cast=no | |
11429 | fi | |
11430 | rm -f conftest* | |
11431 | ac_ext=c | |
11432 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11433 | ac_cpp='$CPP $CPPFLAGS' | |
11434 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11435 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11436 | cross_compiling=$ac_cv_prog_cc_cross | |
11437 | ||
11438 | ||
11439 | fi | |
11440 | ||
11441 | echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6 | |
11442 | if test "$ac_cv_cxx_const_cast" = yes; then | |
11443 | cat >> confdefs.h <<\EOF | |
11444 | #define HAVE_CONST_CAST | |
11445 | EOF | |
11446 | ||
11447 | fi | |
11448 | ||
11449 | ||
11450 | ||
11451 | SEARCH_INCLUDE="\ | |
11452 | /usr/local/include \ | |
11453 | \ | |
11454 | /usr/Motif-1.2/include \ | |
11455 | /usr/Motif-2.1/include \ | |
11456 | \ | |
11457 | /usr/include/Motif1.2 \ | |
11458 | /opt/xpm/include/X11 \ | |
11459 | /opt/GBxpm/include/ \ | |
11460 | /opt/GBxpm/X11/include/ \ | |
11461 | \ | |
11462 | /usr/Motif1.2/include \ | |
11463 | /usr/dt/include \ | |
11464 | /usr/openwin/include \ | |
11465 | \ | |
11466 | /usr/include/Xm \ | |
11467 | \ | |
11468 | /usr/X11R6/include \ | |
11469 | /usr/X11R6.4/include \ | |
11470 | /usr/X11R5/include \ | |
11471 | /usr/X11R4/include \ | |
11472 | \ | |
11473 | /usr/include/X11R6 \ | |
11474 | /usr/include/X11R5 \ | |
11475 | /usr/include/X11R4 \ | |
11476 | \ | |
11477 | /usr/local/X11R6/include \ | |
11478 | /usr/local/X11R5/include \ | |
11479 | /usr/local/X11R4/include \ | |
11480 | \ | |
11481 | /usr/local/include/X11R6 \ | |
11482 | /usr/local/include/X11R5 \ | |
11483 | /usr/local/include/X11R4 \ | |
11484 | \ | |
11485 | /usr/X11/include \ | |
11486 | /usr/include/X11 \ | |
11487 | /usr/local/X11/include \ | |
11488 | /usr/local/include/X11 \ | |
11489 | \ | |
11490 | /usr/X386/include \ | |
11491 | /usr/x386/include \ | |
11492 | /usr/XFree86/include/X11 \ | |
11493 | \ | |
11494 | X:/XFree86/include \ | |
11495 | X:/XFree86/include/X11 \ | |
11496 | \ | |
11497 | /usr/include/gtk \ | |
11498 | /usr/local/include/gtk \ | |
11499 | /usr/include/glib \ | |
11500 | /usr/local/include/glib \ | |
11501 | \ | |
11502 | /usr/include/qt \ | |
11503 | /usr/local/include/qt \ | |
11504 | \ | |
11505 | /usr/include/windows \ | |
11506 | /usr/include/wine \ | |
11507 | /usr/local/include/wine \ | |
11508 | \ | |
11509 | /usr/unsupported/include \ | |
11510 | /usr/athena/include \ | |
11511 | /usr/local/x11r5/include \ | |
11512 | /usr/lpp/Xamples/include \ | |
11513 | \ | |
11514 | /usr/openwin/share/include" | |
11515 | ||
11516 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
11517 | ||
11518 | ||
11519 | cat > confcache <<\EOF | |
11520 | # This file is a shell script that caches the results of configure | |
11521 | # tests run on this system so they can be shared between configure | |
11522 | # scripts and configure runs. It is not useful on other systems. | |
11523 | # If it contains results you don't want to keep, you may remove or edit it. | |
11524 | # | |
11525 | # By default, configure uses ./config.cache as the cache file, | |
11526 | # creating it if it does not exist already. You can give configure | |
11527 | # the --cache-file=FILE option to use a different cache file; that is | |
11528 | # what configure does when it calls configure scripts in | |
11529 | # subdirectories, so they share the cache. | |
11530 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
11531 | # config.status only pays attention to the cache file if you give it the | |
11532 | # --recheck option to rerun configure. | |
11533 | # | |
11534 | EOF | |
11535 | # The following way of writing the cache mishandles newlines in values, | |
11536 | # but we know of no workaround that is simple, portable, and efficient. | |
11537 | # So, don't put newlines in cache variables' values. | |
11538 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11539 | # and sets the high bit in the cache file unless we assign to the vars. | |
11540 | (set) 2>&1 | | |
11541 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11542 | *ac_space=\ *) | |
11543 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11544 | # turns \\\\ into \\, and sed turns \\ into \). | |
11545 | sed -n \ | |
11546 | -e "s/'/'\\\\''/g" \ | |
11547 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11548 | ;; | |
11549 | *) | |
11550 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11551 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11552 | ;; | |
11553 | esac >> confcache | |
11554 | if cmp -s $cache_file confcache; then | |
11555 | : | |
11556 | else | |
11557 | if test -w $cache_file; then | |
11558 | echo "updating cache $cache_file" | |
11559 | cat confcache > $cache_file | |
11560 | else | |
11561 | echo "not updating unwritable cache $cache_file" | |
11562 | fi | |
11563 | fi | |
11564 | rm -f confcache | |
11565 | ||
11566 | ||
11567 | if test "$USE_LINUX" = 1; then | |
11568 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
11569 | echo "configure:11570: checking for glibc 2.1 or later" >&5 | |
11570 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then | |
11571 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11572 | else | |
11573 | ||
11574 | cat > conftest.$ac_ext <<EOF | |
11575 | #line 11576 "configure" | |
11576 | #include "confdefs.h" | |
11577 | #include <features.h> | |
11578 | int main() { | |
11579 | ||
11580 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
11581 | #error not glibc2.1 | |
11582 | #endif | |
11583 | ||
11584 | ; return 0; } | |
11585 | EOF | |
11586 | if { (eval echo configure:11587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11587 | rm -rf conftest* | |
11588 | ||
11589 | wx_cv_lib_glibc21=yes | |
11590 | ||
11591 | else | |
11592 | echo "configure: failed program was:" >&5 | |
11593 | cat conftest.$ac_ext >&5 | |
11594 | rm -rf conftest* | |
11595 | ||
11596 | wx_cv_lib_glibc21=no | |
11597 | ||
11598 | ||
11599 | fi | |
11600 | rm -f conftest* | |
11601 | ||
11602 | fi | |
11603 | ||
11604 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 | |
11605 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
11606 | cat >> confdefs.h <<\EOF | |
11607 | #define wxHAVE_GLIBC2 1 | |
11608 | EOF | |
11609 | ||
11610 | fi | |
11611 | fi | |
11612 | ||
11613 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
11614 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
11615 | cat >> confdefs.h <<\EOF | |
11616 | #define _GNU_SOURCE 1 | |
11617 | EOF | |
11618 | ||
11619 | fi | |
11620 | fi | |
11621 | ||
11622 | ||
11623 | ||
11624 | REGEX_INCLUDE= | |
11625 | if test "$wxUSE_REGEX" != "no"; then | |
11626 | cat >> confdefs.h <<\EOF | |
11627 | #define wxUSE_REGEX 1 | |
11628 | EOF | |
11629 | ||
11630 | ||
11631 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
11632 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
11633 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
11634 | echo "configure:11635: checking for regex.h" >&5 | |
11635 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11636 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11637 | else | |
11638 | cat > conftest.$ac_ext <<EOF | |
11639 | #line 11640 "configure" | |
11640 | #include "confdefs.h" | |
11641 | #include <regex.h> | |
11642 | EOF | |
11643 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11644 | { (eval echo configure:11645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11645 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11646 | if test -z "$ac_err"; then | |
11647 | rm -rf conftest* | |
11648 | eval "ac_cv_header_$ac_safe=yes" | |
11649 | else | |
11650 | echo "$ac_err" >&5 | |
11651 | echo "configure: failed program was:" >&5 | |
11652 | cat conftest.$ac_ext >&5 | |
11653 | rm -rf conftest* | |
11654 | eval "ac_cv_header_$ac_safe=no" | |
11655 | fi | |
11656 | rm -f conftest* | |
11657 | fi | |
11658 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11659 | echo "$ac_t""yes" 1>&6 | |
11660 | for ac_func in regcomp | |
11661 | do | |
11662 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
11663 | echo "configure:11664: checking for $ac_func" >&5 | |
11664 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
11665 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11666 | else | |
11667 | cat > conftest.$ac_ext <<EOF | |
11668 | #line 11669 "configure" | |
11669 | #include "confdefs.h" | |
11670 | /* System header to define __stub macros and hopefully few prototypes, | |
11671 | which can conflict with char $ac_func(); below. */ | |
11672 | #include <assert.h> | |
11673 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11674 | /* We use char because int might match the return type of a gcc2 | |
11675 | builtin and then its argument prototype would still apply. */ | |
11676 | char $ac_func(); | |
11677 | ||
11678 | int main() { | |
11679 | ||
11680 | /* The GNU C library defines this for functions which it implements | |
11681 | to always fail with ENOSYS. Some functions are actually named | |
11682 | something starting with __ and the normal name is an alias. */ | |
11683 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11684 | choke me | |
11685 | #else | |
11686 | $ac_func(); | |
11687 | #endif | |
11688 | ||
11689 | ; return 0; } | |
11690 | EOF | |
11691 | if { (eval echo configure:11692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11692 | rm -rf conftest* | |
11693 | eval "ac_cv_func_$ac_func=yes" | |
11694 | else | |
11695 | echo "configure: failed program was:" >&5 | |
11696 | cat conftest.$ac_ext >&5 | |
11697 | rm -rf conftest* | |
11698 | eval "ac_cv_func_$ac_func=no" | |
11699 | fi | |
11700 | rm -f conftest* | |
11701 | fi | |
11702 | ||
11703 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11704 | echo "$ac_t""yes" 1>&6 | |
11705 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11706 | cat >> confdefs.h <<EOF | |
11707 | #define $ac_tr_func 1 | |
11708 | EOF | |
11709 | ||
11710 | else | |
11711 | echo "$ac_t""no" 1>&6 | |
11712 | fi | |
11713 | done | |
11714 | ||
11715 | else | |
11716 | echo "$ac_t""no" 1>&6 | |
11717 | fi | |
11718 | ||
11719 | ||
11720 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
11721 | if test "$wxUSE_REGEX" = "sys" ; then | |
11722 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
11723 | else | |
11724 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 | |
11725 | wxUSE_REGEX=builtin | |
11726 | fi | |
11727 | else | |
11728 | wxUSE_REGEX=sys | |
11729 | fi | |
11730 | fi | |
11731 | ||
11732 | if test "$wxUSE_REGEX" = "builtin" ; then | |
11733 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
11734 | fi | |
11735 | fi | |
11736 | ||
11737 | ||
11738 | ZLIB_INCLUDE= | |
11739 | ZLIB_LINK= | |
11740 | if test "$wxUSE_ZLIB" != "no" ; then | |
11741 | cat >> confdefs.h <<\EOF | |
11742 | #define wxUSE_ZLIB 1 | |
11743 | EOF | |
11744 | ||
11745 | ||
11746 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
11747 | if test "$USE_DARWIN" = 1; then | |
11748 | system_zlib_h_ok="yes" | |
11749 | else | |
11750 | echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6 | |
11751 | echo "configure:11752: checking for zlib.h >= 1.1.4" >&5 | |
11752 | if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then | |
11753 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11754 | else | |
11755 | if test "$cross_compiling" = yes; then | |
11756 | unset ac_cv_header_zlib_h | |
11757 | ||
11758 | else | |
11759 | cat > conftest.$ac_ext <<EOF | |
11760 | #line 11761 "configure" | |
11761 | #include "confdefs.h" | |
11762 | ||
11763 | #include <zlib.h> | |
11764 | #include <stdio.h> | |
11765 | ||
11766 | ||
11767 | int main() | |
11768 | { | |
11769 | FILE *f=fopen("conftestval", "w"); | |
11770 | if (!f) exit(1); | |
11771 | fprintf(f, "%s", | |
11772 | ZLIB_VERSION[0] == '1' && | |
11773 | (ZLIB_VERSION[2] > '1' || | |
11774 | (ZLIB_VERSION[2] == '1' && | |
11775 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
11776 | exit(0); | |
11777 | } | |
11778 | ||
11779 | ||
11780 | EOF | |
11781 | if { (eval echo configure:11782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
11782 | then | |
11783 | ac_cv_header_zlib_h=`cat conftestval` | |
11784 | else | |
11785 | echo "configure: failed program was:" >&5 | |
11786 | cat conftest.$ac_ext >&5 | |
11787 | rm -fr conftest* | |
11788 | ac_cv_header_zlib_h=no | |
11789 | fi | |
11790 | rm -fr conftest* | |
11791 | fi | |
11792 | ||
11793 | ||
11794 | fi | |
11795 | ||
11796 | echo "$ac_t""$ac_cv_header_zlib_h" 1>&6 | |
11797 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
11798 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
11799 | echo "configure:11800: checking for zlib.h" >&5 | |
11800 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11801 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11802 | else | |
11803 | cat > conftest.$ac_ext <<EOF | |
11804 | #line 11805 "configure" | |
11805 | #include "confdefs.h" | |
11806 | #include <zlib.h> | |
11807 | EOF | |
11808 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11809 | { (eval echo configure:11810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11810 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11811 | if test -z "$ac_err"; then | |
11812 | rm -rf conftest* | |
11813 | eval "ac_cv_header_$ac_safe=yes" | |
11814 | else | |
11815 | echo "$ac_err" >&5 | |
11816 | echo "configure: failed program was:" >&5 | |
11817 | cat conftest.$ac_ext >&5 | |
11818 | rm -rf conftest* | |
11819 | eval "ac_cv_header_$ac_safe=no" | |
11820 | fi | |
11821 | rm -f conftest* | |
11822 | fi | |
11823 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11824 | echo "$ac_t""yes" 1>&6 | |
11825 | : | |
11826 | else | |
11827 | echo "$ac_t""no" 1>&6 | |
11828 | fi | |
11829 | ||
11830 | ||
11831 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
11832 | fi | |
11833 | ||
11834 | if test "$system_zlib_h_ok" = "yes"; then | |
11835 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
11836 | echo "configure:11837: checking for deflate in -lz" >&5 | |
11837 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` | |
11838 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11839 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11840 | else | |
11841 | ac_save_LIBS="$LIBS" | |
11842 | LIBS="-lz $LIBS" | |
11843 | cat > conftest.$ac_ext <<EOF | |
11844 | #line 11845 "configure" | |
11845 | #include "confdefs.h" | |
11846 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11847 | /* We use char because int might match the return type of a gcc2 | |
11848 | builtin and then its argument prototype would still apply. */ | |
11849 | char deflate(); | |
11850 | ||
11851 | int main() { | |
11852 | deflate() | |
11853 | ; return 0; } | |
11854 | EOF | |
11855 | if { (eval echo configure:11856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11856 | rm -rf conftest* | |
11857 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11858 | else | |
11859 | echo "configure: failed program was:" >&5 | |
11860 | cat conftest.$ac_ext >&5 | |
11861 | rm -rf conftest* | |
11862 | eval "ac_cv_lib_$ac_lib_var=no" | |
11863 | fi | |
11864 | rm -f conftest* | |
11865 | LIBS="$ac_save_LIBS" | |
11866 | ||
11867 | fi | |
11868 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11869 | echo "$ac_t""yes" 1>&6 | |
11870 | ZLIB_LINK=" -lz" | |
11871 | else | |
11872 | echo "$ac_t""no" 1>&6 | |
11873 | fi | |
11874 | ||
11875 | fi | |
11876 | ||
11877 | if test "x$ZLIB_LINK" = "x" ; then | |
11878 | if test "$wxUSE_ZLIB" = "sys" ; then | |
11879 | { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
11880 | else | |
11881 | echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2 | |
11882 | wxUSE_ZLIB=builtin | |
11883 | fi | |
11884 | else | |
11885 | wxUSE_ZLIB=sys | |
11886 | fi | |
11887 | fi | |
11888 | ||
11889 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11890 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11891 | fi | |
11892 | fi | |
11893 | ||
11894 | ||
11895 | PNG_INCLUDE= | |
11896 | PNG_LINK= | |
11897 | if test "$wxUSE_LIBPNG" != "no" ; then | |
11898 | cat >> confdefs.h <<\EOF | |
11899 | #define wxUSE_LIBPNG 1 | |
11900 | EOF | |
11901 | ||
11902 | ||
11903 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
11904 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 | |
11905 | wxUSE_LIBPNG=sys | |
11906 | fi | |
11907 | ||
11908 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
11909 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 | |
11910 | wxUSE_LIBPNG=builtin | |
11911 | fi | |
11912 | ||
11913 | if test "$wxUSE_MGL" != 1 ; then | |
11914 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
11915 | echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6 | |
11916 | echo "configure:11917: checking for png.h > 0.90" >&5 | |
11917 | if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then | |
11918 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11919 | else | |
11920 | if test "$cross_compiling" = yes; then | |
11921 | unset ac_cv_header_png_h | |
11922 | ||
11923 | else | |
11924 | cat > conftest.$ac_ext <<EOF | |
11925 | #line 11926 "configure" | |
11926 | #include "confdefs.h" | |
11927 | ||
11928 | #include <png.h> | |
11929 | #include <stdio.h> | |
11930 | ||
11931 | int main() | |
11932 | { | |
11933 | FILE *f=fopen("conftestval", "w"); | |
11934 | if (!f) exit(1); | |
11935 | fprintf(f, "%s", | |
11936 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
11937 | exit(0); | |
11938 | } | |
11939 | ||
11940 | EOF | |
11941 | if { (eval echo configure:11942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
11942 | then | |
11943 | ac_cv_header_png_h=`cat conftestval` | |
11944 | else | |
11945 | echo "configure: failed program was:" >&5 | |
11946 | cat conftest.$ac_ext >&5 | |
11947 | rm -fr conftest* | |
11948 | ac_cv_header_png_h=no | |
11949 | fi | |
11950 | rm -fr conftest* | |
11951 | fi | |
11952 | ||
11953 | ||
11954 | fi | |
11955 | ||
11956 | echo "$ac_t""$ac_cv_header_png_h" 1>&6 | |
11957 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
11958 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
11959 | echo "configure:11960: checking for png.h" >&5 | |
11960 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11961 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11962 | else | |
11963 | cat > conftest.$ac_ext <<EOF | |
11964 | #line 11965 "configure" | |
11965 | #include "confdefs.h" | |
11966 | #include <png.h> | |
11967 | EOF | |
11968 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11969 | { (eval echo configure:11970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11970 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11971 | if test -z "$ac_err"; then | |
11972 | rm -rf conftest* | |
11973 | eval "ac_cv_header_$ac_safe=yes" | |
11974 | else | |
11975 | echo "$ac_err" >&5 | |
11976 | echo "configure: failed program was:" >&5 | |
11977 | cat conftest.$ac_ext >&5 | |
11978 | rm -rf conftest* | |
11979 | eval "ac_cv_header_$ac_safe=no" | |
11980 | fi | |
11981 | rm -f conftest* | |
11982 | fi | |
11983 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11984 | echo "$ac_t""yes" 1>&6 | |
11985 | : | |
11986 | else | |
11987 | echo "$ac_t""no" 1>&6 | |
11988 | fi | |
11989 | ||
11990 | ||
11991 | if test "$ac_cv_header_png_h" = "yes"; then | |
11992 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
11993 | echo "configure:11994: checking for png_check_sig in -lpng" >&5 | |
11994 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` | |
11995 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11996 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11997 | else | |
11998 | ac_save_LIBS="$LIBS" | |
11999 | LIBS="-lpng -lz -lm $LIBS" | |
12000 | cat > conftest.$ac_ext <<EOF | |
12001 | #line 12002 "configure" | |
12002 | #include "confdefs.h" | |
12003 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12004 | /* We use char because int might match the return type of a gcc2 | |
12005 | builtin and then its argument prototype would still apply. */ | |
12006 | char png_check_sig(); | |
12007 | ||
12008 | int main() { | |
12009 | png_check_sig() | |
12010 | ; return 0; } | |
12011 | EOF | |
12012 | if { (eval echo configure:12013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12013 | rm -rf conftest* | |
12014 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12015 | else | |
12016 | echo "configure: failed program was:" >&5 | |
12017 | cat conftest.$ac_ext >&5 | |
12018 | rm -rf conftest* | |
12019 | eval "ac_cv_lib_$ac_lib_var=no" | |
12020 | fi | |
12021 | rm -f conftest* | |
12022 | LIBS="$ac_save_LIBS" | |
12023 | ||
12024 | fi | |
12025 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12026 | echo "$ac_t""yes" 1>&6 | |
12027 | PNG_LINK=" -lpng" | |
12028 | else | |
12029 | echo "$ac_t""no" 1>&6 | |
12030 | fi | |
12031 | ||
12032 | fi | |
12033 | ||
12034 | if test "x$PNG_LINK" = "x" ; then | |
12035 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
12036 | { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
12037 | else | |
12038 | echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2 | |
12039 | wxUSE_LIBPNG=builtin | |
12040 | fi | |
12041 | else | |
12042 | wxUSE_LIBPNG=sys | |
12043 | fi | |
12044 | fi | |
12045 | fi | |
12046 | ||
12047 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
12048 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
12049 | fi | |
12050 | ||
12051 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
12052 | fi | |
12053 | ||
12054 | ||
12055 | JPEG_INCLUDE= | |
12056 | JPEG_LINK= | |
12057 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
12058 | cat >> confdefs.h <<\EOF | |
12059 | #define wxUSE_LIBJPEG 1 | |
12060 | EOF | |
12061 | ||
12062 | ||
12063 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
12064 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 | |
12065 | wxUSE_LIBJPEG=sys | |
12066 | fi | |
12067 | ||
12068 | if test "$wxUSE_MGL" != 1 ; then | |
12069 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
12070 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
12071 | echo "configure:12072: checking for jpeglib.h" >&5 | |
12072 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then | |
12073 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12074 | else | |
12075 | cat > conftest.$ac_ext <<EOF | |
12076 | #line 12077 "configure" | |
12077 | #include "confdefs.h" | |
12078 | ||
12079 | #undef HAVE_STDLIB_H | |
12080 | #include <stdio.h> | |
12081 | #include <jpeglib.h> | |
12082 | ||
12083 | int main() { | |
12084 | ||
12085 | ||
12086 | ; return 0; } | |
12087 | EOF | |
12088 | if { (eval echo configure:12089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
12089 | rm -rf conftest* | |
12090 | ac_cv_header_jpeglib_h=yes | |
12091 | else | |
12092 | echo "configure: failed program was:" >&5 | |
12093 | cat conftest.$ac_ext >&5 | |
12094 | rm -rf conftest* | |
12095 | ac_cv_header_jpeglib_h=no | |
12096 | ||
12097 | fi | |
12098 | rm -f conftest* | |
12099 | ||
12100 | fi | |
12101 | ||
12102 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 | |
12103 | ||
12104 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
12105 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
12106 | echo "configure:12107: checking for jpeg_read_header in -ljpeg" >&5 | |
12107 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` | |
12108 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12109 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12110 | else | |
12111 | ac_save_LIBS="$LIBS" | |
12112 | LIBS="-ljpeg $LIBS" | |
12113 | cat > conftest.$ac_ext <<EOF | |
12114 | #line 12115 "configure" | |
12115 | #include "confdefs.h" | |
12116 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12117 | /* We use char because int might match the return type of a gcc2 | |
12118 | builtin and then its argument prototype would still apply. */ | |
12119 | char jpeg_read_header(); | |
12120 | ||
12121 | int main() { | |
12122 | jpeg_read_header() | |
12123 | ; return 0; } | |
12124 | EOF | |
12125 | if { (eval echo configure:12126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12126 | rm -rf conftest* | |
12127 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12128 | else | |
12129 | echo "configure: failed program was:" >&5 | |
12130 | cat conftest.$ac_ext >&5 | |
12131 | rm -rf conftest* | |
12132 | eval "ac_cv_lib_$ac_lib_var=no" | |
12133 | fi | |
12134 | rm -f conftest* | |
12135 | LIBS="$ac_save_LIBS" | |
12136 | ||
12137 | fi | |
12138 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12139 | echo "$ac_t""yes" 1>&6 | |
12140 | JPEG_LINK=" -ljpeg" | |
12141 | else | |
12142 | echo "$ac_t""no" 1>&6 | |
12143 | fi | |
12144 | ||
12145 | fi | |
12146 | ||
12147 | if test "x$JPEG_LINK" = "x" ; then | |
12148 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
12149 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
12150 | else | |
12151 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 | |
12152 | wxUSE_LIBJPEG=builtin | |
12153 | fi | |
12154 | else | |
12155 | wxUSE_LIBJPEG=sys | |
12156 | fi | |
12157 | fi | |
12158 | fi | |
12159 | ||
12160 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
12161 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
12162 | fi | |
12163 | fi | |
12164 | ||
12165 | ||
12166 | TIFF_INCLUDE= | |
12167 | TIFF_LINK= | |
12168 | TIFF_PREREQ_LINKS=-lm | |
12169 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
12170 | cat >> confdefs.h <<\EOF | |
12171 | #define wxUSE_LIBTIFF 1 | |
12172 | EOF | |
12173 | ||
12174 | ||
12175 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
12176 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
12177 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
12178 | fi | |
12179 | if test "$wxUSE_ZLIB" = "sys"; then | |
12180 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
12181 | fi | |
12182 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
12183 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
12184 | echo "configure:12185: checking for tiffio.h" >&5 | |
12185 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
12186 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12187 | else | |
12188 | cat > conftest.$ac_ext <<EOF | |
12189 | #line 12190 "configure" | |
12190 | #include "confdefs.h" | |
12191 | #include <tiffio.h> | |
12192 | EOF | |
12193 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12194 | { (eval echo configure:12195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12195 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12196 | if test -z "$ac_err"; then | |
12197 | rm -rf conftest* | |
12198 | eval "ac_cv_header_$ac_safe=yes" | |
12199 | else | |
12200 | echo "$ac_err" >&5 | |
12201 | echo "configure: failed program was:" >&5 | |
12202 | cat conftest.$ac_ext >&5 | |
12203 | rm -rf conftest* | |
12204 | eval "ac_cv_header_$ac_safe=no" | |
12205 | fi | |
12206 | rm -f conftest* | |
12207 | fi | |
12208 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12209 | echo "$ac_t""yes" 1>&6 | |
12210 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
12211 | echo "configure:12212: checking for TIFFError in -ltiff" >&5 | |
12212 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` | |
12213 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12214 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12215 | else | |
12216 | ac_save_LIBS="$LIBS" | |
12217 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
12218 | cat > conftest.$ac_ext <<EOF | |
12219 | #line 12220 "configure" | |
12220 | #include "confdefs.h" | |
12221 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12222 | /* We use char because int might match the return type of a gcc2 | |
12223 | builtin and then its argument prototype would still apply. */ | |
12224 | char TIFFError(); | |
12225 | ||
12226 | int main() { | |
12227 | TIFFError() | |
12228 | ; return 0; } | |
12229 | EOF | |
12230 | if { (eval echo configure:12231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12231 | rm -rf conftest* | |
12232 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12233 | else | |
12234 | echo "configure: failed program was:" >&5 | |
12235 | cat conftest.$ac_ext >&5 | |
12236 | rm -rf conftest* | |
12237 | eval "ac_cv_lib_$ac_lib_var=no" | |
12238 | fi | |
12239 | rm -f conftest* | |
12240 | LIBS="$ac_save_LIBS" | |
12241 | ||
12242 | fi | |
12243 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12244 | echo "$ac_t""yes" 1>&6 | |
12245 | TIFF_LINK=" -ltiff" | |
12246 | else | |
12247 | echo "$ac_t""no" 1>&6 | |
12248 | fi | |
12249 | ||
12250 | ||
12251 | else | |
12252 | echo "$ac_t""no" 1>&6 | |
12253 | fi | |
12254 | ||
12255 | ||
12256 | if test "x$TIFF_LINK" = "x" ; then | |
12257 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
12258 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
12259 | else | |
12260 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 | |
12261 | wxUSE_LIBTIFF=builtin | |
12262 | fi | |
12263 | else | |
12264 | wxUSE_LIBTIFF=sys | |
12265 | fi | |
12266 | fi | |
12267 | ||
12268 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
12269 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
12270 | fi | |
12271 | fi | |
12272 | ||
12273 | ||
12274 | AFMINSTALL= | |
12275 | WIN32INSTALL= | |
12276 | ||
12277 | TOOLKIT= | |
12278 | TOOLKIT_INCLUDE= | |
12279 | WIDGET_SET= | |
12280 | ||
12281 | if test "$USE_WIN32" = 1 ; then | |
12282 | for ac_hdr in w32api.h | |
12283 | do | |
12284 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12285 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
12286 | echo "configure:12287: checking for $ac_hdr" >&5 | |
12287 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
12288 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12289 | else | |
12290 | cat > conftest.$ac_ext <<EOF | |
12291 | #line 12292 "configure" | |
12292 | #include "confdefs.h" | |
12293 | #include <$ac_hdr> | |
12294 | EOF | |
12295 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12296 | { (eval echo configure:12297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12297 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12298 | if test -z "$ac_err"; then | |
12299 | rm -rf conftest* | |
12300 | eval "ac_cv_header_$ac_safe=yes" | |
12301 | else | |
12302 | echo "$ac_err" >&5 | |
12303 | echo "configure: failed program was:" >&5 | |
12304 | cat conftest.$ac_ext >&5 | |
12305 | rm -rf conftest* | |
12306 | eval "ac_cv_header_$ac_safe=no" | |
12307 | fi | |
12308 | rm -f conftest* | |
12309 | fi | |
12310 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12311 | echo "$ac_t""yes" 1>&6 | |
12312 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12313 | cat >> confdefs.h <<EOF | |
12314 | #define $ac_tr_hdr 1 | |
12315 | EOF | |
12316 | ||
12317 | else | |
12318 | echo "$ac_t""no" 1>&6 | |
12319 | fi | |
12320 | done | |
12321 | ||
12322 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
12323 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
12324 | echo "configure:12325: checking for windows.h" >&5 | |
12325 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
12326 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12327 | else | |
12328 | cat > conftest.$ac_ext <<EOF | |
12329 | #line 12330 "configure" | |
12330 | #include "confdefs.h" | |
12331 | #include <windows.h> | |
12332 | EOF | |
12333 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12334 | { (eval echo configure:12335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12335 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12336 | if test -z "$ac_err"; then | |
12337 | rm -rf conftest* | |
12338 | eval "ac_cv_header_$ac_safe=yes" | |
12339 | else | |
12340 | echo "$ac_err" >&5 | |
12341 | echo "configure: failed program was:" >&5 | |
12342 | cat conftest.$ac_ext >&5 | |
12343 | rm -rf conftest* | |
12344 | eval "ac_cv_header_$ac_safe=no" | |
12345 | fi | |
12346 | rm -f conftest* | |
12347 | fi | |
12348 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12349 | echo "$ac_t""yes" 1>&6 | |
12350 | : | |
12351 | else | |
12352 | echo "$ac_t""no" 1>&6 | |
12353 | ||
12354 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
12355 | ||
12356 | fi | |
12357 | ||
12358 | ||
12359 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 | |
12360 | echo "configure:12361: checking if w32api has good enough MSIE support" >&5 | |
12361 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then | |
12362 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12363 | else | |
12364 | ||
12365 | cat > conftest.$ac_ext <<EOF | |
12366 | #line 12367 "configure" | |
12367 | #include "confdefs.h" | |
12368 | #include <w32api.h> | |
12369 | int main() { | |
12370 | ||
12371 | #define wxCHECK_W32API_VERSION( major, minor ) \ | |
12372 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
12373 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
12374 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
12375 | ||
12376 | #if !wxCHECK_W32API_VERSION(1,1) | |
12377 | #error You need w32api 1.1 or newer | |
12378 | #endif | |
12379 | ||
12380 | ; return 0; } | |
12381 | EOF | |
12382 | if { (eval echo configure:12383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
12383 | rm -rf conftest* | |
12384 | ||
12385 | wx_cv_w32api_win32_ie=yes | |
12386 | ||
12387 | else | |
12388 | echo "configure: failed program was:" >&5 | |
12389 | cat conftest.$ac_ext >&5 | |
12390 | rm -rf conftest* | |
12391 | ||
12392 | wx_cv_w32api_win32_ie=no | |
12393 | ||
12394 | fi | |
12395 | rm -f conftest* | |
12396 | ||
12397 | fi | |
12398 | ||
12399 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 | |
12400 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
12401 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
12402 | fi | |
12403 | ||
12404 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" | |
12405 | ||
12406 | case "${host}" in | |
12407 | *-*-cygwin* ) | |
12408 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
12409 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
12410 | esac | |
12411 | ||
12412 | if test "$wxUSE_ODBC" = "yes" ; then | |
12413 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
12414 | fi | |
12415 | ||
12416 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
12417 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
12418 | ||
12419 | WIN32INSTALL=win32install | |
12420 | fi | |
12421 | ||
12422 | if test "$USE_DARWIN" = 1; then | |
12423 | if test "$wxUSE_PRECOMP" = "yes"; then | |
12424 | CPPFLAGS="$CPPFLAGS -cpp-precomp" | |
12425 | else | |
12426 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
12427 | fi | |
12428 | fi | |
12429 | ||
12430 | if test "$wxUSE_GUI" = "yes"; then | |
12431 | USE_GUI=1 | |
12432 | ||
12433 | GUI_TK_LIBRARY= | |
12434 | ||
12435 | WXGTK12= | |
12436 | WXGTK127= | |
12437 | WXGTK20= | |
12438 | ||
12439 | if test "$wxUSE_MSW" = 1 ; then | |
12440 | TOOLKIT=MSW | |
12441 | GUIDIST=MSW_DIST | |
12442 | ||
12443 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
12444 | fi | |
12445 | ||
12446 | if test "$wxUSE_GTK" = 1; then | |
12447 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
12448 | echo "configure:12449: checking for GTK+ version" >&5 | |
12449 | ||
12450 | gtk_version_cached=1 | |
12451 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
12452 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12453 | else | |
12454 | ||
12455 | gtk_version_cached=0 | |
12456 | echo "$ac_t""" 1>&6 | |
12457 | ||
12458 | GTK_MODULES= | |
12459 | if test "$wxUSE_THREADS" = "yes"; then | |
12460 | GTK_MODULES=gthread | |
12461 | fi | |
12462 | ||
12463 | wx_cv_lib_gtk= | |
12464 | if test "x$wxUSE_GTK2" = "xyes"; then | |
12465 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12466 | if test "${enable_gtktest+set}" = set; then | |
12467 | enableval="$enable_gtktest" | |
12468 | : | |
12469 | else | |
12470 | enable_gtktest=yes | |
12471 | fi | |
12472 | ||
12473 | ||
12474 | pkg_config_args=gtk+-2.0 | |
12475 | for module in . $GTK_MODULES | |
12476 | do | |
12477 | case "$module" in | |
12478 | gthread) | |
12479 | pkg_config_args="$pkg_config_args gthread-2.0" | |
12480 | ;; | |
12481 | esac | |
12482 | done | |
12483 | ||
12484 | no_gtk="" | |
12485 | ||
12486 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
12487 | set dummy pkg-config; ac_word=$2 | |
12488 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
12489 | echo "configure:12490: checking for $ac_word" >&5 | |
12490 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then | |
12491 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12492 | else | |
12493 | case "$PKG_CONFIG" in | |
12494 | /*) | |
12495 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
12496 | ;; | |
12497 | ?:/*) | |
12498 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
12499 | ;; | |
12500 | *) | |
12501 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12502 | ac_dummy="$PATH" | |
12503 | for ac_dir in $ac_dummy; do | |
12504 | test -z "$ac_dir" && ac_dir=. | |
12505 | if test -f $ac_dir/$ac_word; then | |
12506 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
12507 | break | |
12508 | fi | |
12509 | done | |
12510 | IFS="$ac_save_ifs" | |
12511 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
12512 | ;; | |
12513 | esac | |
12514 | fi | |
12515 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
12516 | if test -n "$PKG_CONFIG"; then | |
12517 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
12518 | else | |
12519 | echo "$ac_t""no" 1>&6 | |
12520 | fi | |
12521 | ||
12522 | ||
12523 | if test x$PKG_CONFIG != xno ; then | |
12524 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
12525 | : | |
12526 | else | |
12527 | echo *** pkg-config too old; version 0.7 or better required. | |
12528 | no_gtk=yes | |
12529 | PKG_CONFIG=no | |
12530 | fi | |
12531 | else | |
12532 | no_gtk=yes | |
12533 | fi | |
12534 | ||
12535 | min_gtk_version=2.0.0 | |
12536 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 | |
12537 | echo "configure:12538: checking for GTK+ - version >= $min_gtk_version" >&5 | |
12538 | ||
12539 | if test x$PKG_CONFIG != xno ; then | |
12540 | ## don't try to run the test against uninstalled libtool libs | |
12541 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
12542 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
12543 | enable_gtktest=no | |
12544 | fi | |
12545 | ||
12546 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
12547 | : | |
12548 | else | |
12549 | no_gtk=yes | |
12550 | fi | |
12551 | fi | |
12552 | ||
12553 | if test x"$no_gtk" = x ; then | |
12554 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
12555 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
12556 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12557 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12558 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12559 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12560 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12561 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12562 | if test "x$enable_gtktest" = "xyes" ; then | |
12563 | ac_save_CFLAGS="$CFLAGS" | |
12564 | ac_save_LIBS="$LIBS" | |
12565 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12566 | LIBS="$GTK_LIBS $LIBS" | |
12567 | rm -f conf.gtktest | |
12568 | if test "$cross_compiling" = yes; then | |
12569 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12570 | else | |
12571 | cat > conftest.$ac_ext <<EOF | |
12572 | #line 12573 "configure" | |
12573 | #include "confdefs.h" | |
12574 | ||
12575 | #include <gtk/gtk.h> | |
12576 | #include <stdio.h> | |
12577 | #include <stdlib.h> | |
12578 | ||
12579 | int | |
12580 | main () | |
12581 | { | |
12582 | int major, minor, micro; | |
12583 | char *tmp_version; | |
12584 | ||
12585 | system ("touch conf.gtktest"); | |
12586 | ||
12587 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12588 | tmp_version = g_strdup("$min_gtk_version"); | |
12589 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12590 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12591 | exit(1); | |
12592 | } | |
12593 | ||
12594 | if ((gtk_major_version != $gtk_config_major_version) || | |
12595 | (gtk_minor_version != $gtk_config_minor_version) || | |
12596 | (gtk_micro_version != $gtk_config_micro_version)) | |
12597 | { | |
12598 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
12599 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
12600 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12601 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
12602 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12603 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12604 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12605 | printf("*** required on your system.\n"); | |
12606 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
12607 | printf("*** to point to the correct configuration files\n"); | |
12608 | } | |
12609 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12610 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12611 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12612 | { | |
12613 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12614 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12615 | printf("*** library (version %d.%d.%d)\n", | |
12616 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12617 | } | |
12618 | else | |
12619 | { | |
12620 | if ((gtk_major_version > major) || | |
12621 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12622 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12623 | { | |
12624 | return 0; | |
12625 | } | |
12626 | else | |
12627 | { | |
12628 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12629 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12630 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12631 | major, minor, micro); | |
12632 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12633 | printf("***\n"); | |
12634 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12635 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
12636 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12637 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
12638 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
12639 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12640 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12641 | } | |
12642 | } | |
12643 | return 1; | |
12644 | } | |
12645 | ||
12646 | EOF | |
12647 | if { (eval echo configure:12648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
12648 | then | |
12649 | : | |
12650 | else | |
12651 | echo "configure: failed program was:" >&5 | |
12652 | cat conftest.$ac_ext >&5 | |
12653 | rm -fr conftest* | |
12654 | no_gtk=yes | |
12655 | fi | |
12656 | rm -fr conftest* | |
12657 | fi | |
12658 | ||
12659 | CFLAGS="$ac_save_CFLAGS" | |
12660 | LIBS="$ac_save_LIBS" | |
12661 | fi | |
12662 | fi | |
12663 | if test "x$no_gtk" = x ; then | |
12664 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 | |
12665 | wx_cv_lib_gtk=2.0 | |
12666 | else | |
12667 | echo "$ac_t""no" 1>&6 | |
12668 | if test "$PKG_CONFIG" = "no" ; then | |
12669 | echo "*** A new enough version of pkg-config was not found." | |
12670 | echo "*** See http://pkgconfig.sourceforge.net" | |
12671 | else | |
12672 | if test -f conf.gtktest ; then | |
12673 | : | |
12674 | else | |
12675 | echo "*** Could not run GTK+ test program, checking why..." | |
12676 | ac_save_CFLAGS="$CFLAGS" | |
12677 | ac_save_LIBS="$LIBS" | |
12678 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12679 | LIBS="$LIBS $GTK_LIBS" | |
12680 | cat > conftest.$ac_ext <<EOF | |
12681 | #line 12682 "configure" | |
12682 | #include "confdefs.h" | |
12683 | ||
12684 | #include <gtk/gtk.h> | |
12685 | #include <stdio.h> | |
12686 | ||
12687 | int main() { | |
12688 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12689 | ; return 0; } | |
12690 | EOF | |
12691 | if { (eval echo configure:12692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12692 | rm -rf conftest* | |
12693 | echo "*** The test program compiled, but did not run. This usually means" | |
12694 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
12695 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
12696 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12697 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12698 | echo "*** is required on your system" | |
12699 | echo "***" | |
12700 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12701 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12702 | else | |
12703 | echo "configure: failed program was:" >&5 | |
12704 | cat conftest.$ac_ext >&5 | |
12705 | rm -rf conftest* | |
12706 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
12707 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
12708 | fi | |
12709 | rm -f conftest* | |
12710 | CFLAGS="$ac_save_CFLAGS" | |
12711 | LIBS="$ac_save_LIBS" | |
12712 | fi | |
12713 | fi | |
12714 | GTK_CFLAGS="" | |
12715 | GTK_LIBS="" | |
12716 | : | |
12717 | fi | |
12718 | ||
12719 | ||
12720 | rm -f conf.gtktest | |
12721 | ||
12722 | else | |
12723 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
12724 | if test "${with_gtk_prefix+set}" = set; then | |
12725 | withval="$with_gtk_prefix" | |
12726 | gtk_config_prefix="$withval" | |
12727 | else | |
12728 | gtk_config_prefix="" | |
12729 | fi | |
12730 | ||
12731 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
12732 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12733 | withval="$with_gtk_exec_prefix" | |
12734 | gtk_config_exec_prefix="$withval" | |
12735 | else | |
12736 | gtk_config_exec_prefix="" | |
12737 | fi | |
12738 | ||
12739 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12740 | if test "${enable_gtktest+set}" = set; then | |
12741 | enableval="$enable_gtktest" | |
12742 | : | |
12743 | else | |
12744 | enable_gtktest=yes | |
12745 | fi | |
12746 | ||
12747 | ||
12748 | for module in . $GTK_MODULES | |
12749 | do | |
12750 | case "$module" in | |
12751 | gthread) | |
12752 | gtk_config_args="$gtk_config_args gthread" | |
12753 | ;; | |
12754 | esac | |
12755 | done | |
12756 | ||
12757 | if test x$gtk_config_exec_prefix != x ; then | |
12758 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12759 | if test x${GTK_CONFIG+set} != xset ; then | |
12760 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12761 | fi | |
12762 | fi | |
12763 | if test x$gtk_config_prefix != x ; then | |
12764 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12765 | if test x${GTK_CONFIG+set} != xset ; then | |
12766 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12767 | fi | |
12768 | fi | |
12769 | ||
12770 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12771 | set dummy gtk-config; ac_word=$2 | |
12772 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
12773 | echo "configure:12774: checking for $ac_word" >&5 | |
12774 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then | |
12775 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12776 | else | |
12777 | case "$GTK_CONFIG" in | |
12778 | /*) | |
12779 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
12780 | ;; | |
12781 | ?:/*) | |
12782 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12783 | ;; | |
12784 | *) | |
12785 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12786 | ac_dummy="$PATH" | |
12787 | for ac_dir in $ac_dummy; do | |
12788 | test -z "$ac_dir" && ac_dir=. | |
12789 | if test -f $ac_dir/$ac_word; then | |
12790 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12791 | break | |
12792 | fi | |
12793 | done | |
12794 | IFS="$ac_save_ifs" | |
12795 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
12796 | ;; | |
12797 | esac | |
12798 | fi | |
12799 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
12800 | if test -n "$GTK_CONFIG"; then | |
12801 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
12802 | else | |
12803 | echo "$ac_t""no" 1>&6 | |
12804 | fi | |
12805 | ||
12806 | min_gtk_version=1.2.7 | |
12807 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
12808 | echo "configure:12809: checking for GTK - version >= $min_gtk_version" >&5 | |
12809 | no_gtk="" | |
12810 | if test "$GTK_CONFIG" = "no" ; then | |
12811 | no_gtk=yes | |
12812 | else | |
12813 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12814 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12815 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12816 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12817 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12818 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12819 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12820 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12821 | if test "x$enable_gtktest" = "xyes" ; then | |
12822 | ac_save_CFLAGS="$CFLAGS" | |
12823 | ac_save_LIBS="$LIBS" | |
12824 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12825 | LIBS="$GTK_LIBS $LIBS" | |
12826 | rm -f conf.gtktest | |
12827 | if test "$cross_compiling" = yes; then | |
12828 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12829 | else | |
12830 | cat > conftest.$ac_ext <<EOF | |
12831 | #line 12832 "configure" | |
12832 | #include "confdefs.h" | |
12833 | ||
12834 | #include <gtk/gtk.h> | |
12835 | #include <stdio.h> | |
12836 | #include <stdlib.h> | |
12837 | ||
12838 | int | |
12839 | main () | |
12840 | { | |
12841 | int major, minor, micro; | |
12842 | char *tmp_version; | |
12843 | ||
12844 | system ("touch conf.gtktest"); | |
12845 | ||
12846 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12847 | tmp_version = g_strdup("$min_gtk_version"); | |
12848 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12849 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12850 | exit(1); | |
12851 | } | |
12852 | ||
12853 | if ((gtk_major_version != $gtk_config_major_version) || | |
12854 | (gtk_minor_version != $gtk_config_minor_version) || | |
12855 | (gtk_micro_version != $gtk_config_micro_version)) | |
12856 | { | |
12857 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
12858 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
12859 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12860 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12861 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12862 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12863 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12864 | printf("*** required on your system.\n"); | |
12865 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12866 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12867 | printf("*** before re-running configure\n"); | |
12868 | } | |
12869 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
12870 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12871 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12872 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12873 | { | |
12874 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12875 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12876 | printf("*** library (version %d.%d.%d)\n", | |
12877 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12878 | } | |
12879 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12880 | else | |
12881 | { | |
12882 | if ((gtk_major_version > major) || | |
12883 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12884 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12885 | { | |
12886 | return 0; | |
12887 | } | |
12888 | else | |
12889 | { | |
12890 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12891 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12892 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12893 | major, minor, micro); | |
12894 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12895 | printf("***\n"); | |
12896 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12897 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12898 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12899 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12900 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12901 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12902 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12903 | } | |
12904 | } | |
12905 | return 1; | |
12906 | } | |
12907 | ||
12908 | EOF | |
12909 | if { (eval echo configure:12910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
12910 | then | |
12911 | : | |
12912 | else | |
12913 | echo "configure: failed program was:" >&5 | |
12914 | cat conftest.$ac_ext >&5 | |
12915 | rm -fr conftest* | |
12916 | no_gtk=yes | |
12917 | fi | |
12918 | rm -fr conftest* | |
12919 | fi | |
12920 | ||
12921 | CFLAGS="$ac_save_CFLAGS" | |
12922 | LIBS="$ac_save_LIBS" | |
12923 | fi | |
12924 | fi | |
12925 | if test "x$no_gtk" = x ; then | |
12926 | echo "$ac_t""yes" 1>&6 | |
12927 | wx_cv_lib_gtk=1.2.7 | |
12928 | else | |
12929 | echo "$ac_t""no" 1>&6 | |
12930 | if test "$GTK_CONFIG" = "no" ; then | |
12931 | echo "*** The gtk-config script installed by GTK could not be found" | |
12932 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12933 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12934 | echo "*** full path to gtk-config." | |
12935 | else | |
12936 | if test -f conf.gtktest ; then | |
12937 | : | |
12938 | else | |
12939 | echo "*** Could not run GTK test program, checking why..." | |
12940 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12941 | LIBS="$LIBS $GTK_LIBS" | |
12942 | cat > conftest.$ac_ext <<EOF | |
12943 | #line 12944 "configure" | |
12944 | #include "confdefs.h" | |
12945 | ||
12946 | #include <gtk/gtk.h> | |
12947 | #include <stdio.h> | |
12948 | ||
12949 | int main() { | |
12950 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12951 | ; return 0; } | |
12952 | EOF | |
12953 | if { (eval echo configure:12954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12954 | rm -rf conftest* | |
12955 | echo "*** The test program compiled, but did not run. This usually means" | |
12956 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12957 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12958 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12959 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12960 | echo "*** is required on your system" | |
12961 | echo "***" | |
12962 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12963 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12964 | echo "***" | |
12965 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12966 | echo "*** came with the system with the command" | |
12967 | echo "***" | |
12968 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
12969 | else | |
12970 | echo "configure: failed program was:" >&5 | |
12971 | cat conftest.$ac_ext >&5 | |
12972 | rm -rf conftest* | |
12973 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
12974 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
12975 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
12976 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
12977 | fi | |
12978 | rm -f conftest* | |
12979 | CFLAGS="$ac_save_CFLAGS" | |
12980 | LIBS="$ac_save_LIBS" | |
12981 | fi | |
12982 | fi | |
12983 | GTK_CFLAGS="" | |
12984 | GTK_LIBS="" | |
12985 | : | |
12986 | fi | |
12987 | ||
12988 | ||
12989 | rm -f conf.gtktest | |
12990 | ||
12991 | ||
12992 | if test -z "$wx_cv_lib_gtk"; then | |
12993 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
12994 | if test "${with_gtk_prefix+set}" = set; then | |
12995 | withval="$with_gtk_prefix" | |
12996 | gtk_config_prefix="$withval" | |
12997 | else | |
12998 | gtk_config_prefix="" | |
12999 | fi | |
13000 | ||
13001 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
13002 | if test "${with_gtk_exec_prefix+set}" = set; then | |
13003 | withval="$with_gtk_exec_prefix" | |
13004 | gtk_config_exec_prefix="$withval" | |
13005 | else | |
13006 | gtk_config_exec_prefix="" | |
13007 | fi | |
13008 | ||
13009 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
13010 | if test "${enable_gtktest+set}" = set; then | |
13011 | enableval="$enable_gtktest" | |
13012 | : | |
13013 | else | |
13014 | enable_gtktest=yes | |
13015 | fi | |
13016 | ||
13017 | ||
13018 | for module in . $GTK_MODULES | |
13019 | do | |
13020 | case "$module" in | |
13021 | gthread) | |
13022 | gtk_config_args="$gtk_config_args gthread" | |
13023 | ;; | |
13024 | esac | |
13025 | done | |
13026 | ||
13027 | if test x$gtk_config_exec_prefix != x ; then | |
13028 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
13029 | if test x${GTK_CONFIG+set} != xset ; then | |
13030 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
13031 | fi | |
13032 | fi | |
13033 | if test x$gtk_config_prefix != x ; then | |
13034 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
13035 | if test x${GTK_CONFIG+set} != xset ; then | |
13036 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
13037 | fi | |
13038 | fi | |
13039 | ||
13040 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
13041 | set dummy gtk-config; ac_word=$2 | |
13042 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
13043 | echo "configure:13044: checking for $ac_word" >&5 | |
13044 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then | |
13045 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13046 | else | |
13047 | case "$GTK_CONFIG" in | |
13048 | /*) | |
13049 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
13050 | ;; | |
13051 | ?:/*) | |
13052 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
13053 | ;; | |
13054 | *) | |
13055 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
13056 | ac_dummy="$PATH" | |
13057 | for ac_dir in $ac_dummy; do | |
13058 | test -z "$ac_dir" && ac_dir=. | |
13059 | if test -f $ac_dir/$ac_word; then | |
13060 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
13061 | break | |
13062 | fi | |
13063 | done | |
13064 | IFS="$ac_save_ifs" | |
13065 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
13066 | ;; | |
13067 | esac | |
13068 | fi | |
13069 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
13070 | if test -n "$GTK_CONFIG"; then | |
13071 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
13072 | else | |
13073 | echo "$ac_t""no" 1>&6 | |
13074 | fi | |
13075 | ||
13076 | min_gtk_version=1.2.3 | |
13077 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
13078 | echo "configure:13079: checking for GTK - version >= $min_gtk_version" >&5 | |
13079 | no_gtk="" | |
13080 | if test "$GTK_CONFIG" = "no" ; then | |
13081 | no_gtk=yes | |
13082 | else | |
13083 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
13084 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
13085 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
13086 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
13087 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
13088 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
13089 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
13090 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
13091 | if test "x$enable_gtktest" = "xyes" ; then | |
13092 | ac_save_CFLAGS="$CFLAGS" | |
13093 | ac_save_LIBS="$LIBS" | |
13094 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
13095 | LIBS="$GTK_LIBS $LIBS" | |
13096 | rm -f conf.gtktest | |
13097 | if test "$cross_compiling" = yes; then | |
13098 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
13099 | else | |
13100 | cat > conftest.$ac_ext <<EOF | |
13101 | #line 13102 "configure" | |
13102 | #include "confdefs.h" | |
13103 | ||
13104 | #include <gtk/gtk.h> | |
13105 | #include <stdio.h> | |
13106 | #include <stdlib.h> | |
13107 | ||
13108 | int | |
13109 | main () | |
13110 | { | |
13111 | int major, minor, micro; | |
13112 | char *tmp_version; | |
13113 | ||
13114 | system ("touch conf.gtktest"); | |
13115 | ||
13116 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
13117 | tmp_version = g_strdup("$min_gtk_version"); | |
13118 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
13119 | printf("%s, bad version string\n", "$min_gtk_version"); | |
13120 | exit(1); | |
13121 | } | |
13122 | ||
13123 | if ((gtk_major_version != $gtk_config_major_version) || | |
13124 | (gtk_minor_version != $gtk_config_minor_version) || | |
13125 | (gtk_micro_version != $gtk_config_micro_version)) | |
13126 | { | |
13127 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
13128 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
13129 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13130 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
13131 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
13132 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
13133 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
13134 | printf("*** required on your system.\n"); | |
13135 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
13136 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
13137 | printf("*** before re-running configure\n"); | |
13138 | } | |
13139 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
13140 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
13141 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
13142 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
13143 | { | |
13144 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
13145 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
13146 | printf("*** library (version %d.%d.%d)\n", | |
13147 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13148 | } | |
13149 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
13150 | else | |
13151 | { | |
13152 | if ((gtk_major_version > major) || | |
13153 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
13154 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
13155 | { | |
13156 | return 0; | |
13157 | } | |
13158 | else | |
13159 | { | |
13160 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
13161 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13162 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
13163 | major, minor, micro); | |
13164 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
13165 | printf("***\n"); | |
13166 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
13167 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
13168 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
13169 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
13170 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
13171 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
13172 | printf("*** so that the correct libraries are found at run-time))\n"); | |
13173 | } | |
13174 | } | |
13175 | return 1; | |
13176 | } | |
13177 | ||
13178 | EOF | |
13179 | if { (eval echo configure:13180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
13180 | then | |
13181 | : | |
13182 | else | |
13183 | echo "configure: failed program was:" >&5 | |
13184 | cat conftest.$ac_ext >&5 | |
13185 | rm -fr conftest* | |
13186 | no_gtk=yes | |
13187 | fi | |
13188 | rm -fr conftest* | |
13189 | fi | |
13190 | ||
13191 | CFLAGS="$ac_save_CFLAGS" | |
13192 | LIBS="$ac_save_LIBS" | |
13193 | fi | |
13194 | fi | |
13195 | if test "x$no_gtk" = x ; then | |
13196 | echo "$ac_t""yes" 1>&6 | |
13197 | wx_cv_lib_gtk=1.2.3 | |
13198 | else | |
13199 | echo "$ac_t""no" 1>&6 | |
13200 | if test "$GTK_CONFIG" = "no" ; then | |
13201 | echo "*** The gtk-config script installed by GTK could not be found" | |
13202 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
13203 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
13204 | echo "*** full path to gtk-config." | |
13205 | else | |
13206 | if test -f conf.gtktest ; then | |
13207 | : | |
13208 | else | |
13209 | echo "*** Could not run GTK test program, checking why..." | |
13210 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
13211 | LIBS="$LIBS $GTK_LIBS" | |
13212 | cat > conftest.$ac_ext <<EOF | |
13213 | #line 13214 "configure" | |
13214 | #include "confdefs.h" | |
13215 | ||
13216 | #include <gtk/gtk.h> | |
13217 | #include <stdio.h> | |
13218 | ||
13219 | int main() { | |
13220 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
13221 | ; return 0; } | |
13222 | EOF | |
13223 | if { (eval echo configure:13224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13224 | rm -rf conftest* | |
13225 | echo "*** The test program compiled, but did not run. This usually means" | |
13226 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
13227 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
13228 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
13229 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
13230 | echo "*** is required on your system" | |
13231 | echo "***" | |
13232 | echo "*** If you have an old version installed, it is best to remove it, although" | |
13233 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
13234 | echo "***" | |
13235 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
13236 | echo "*** came with the system with the command" | |
13237 | echo "***" | |
13238 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
13239 | else | |
13240 | echo "configure: failed program was:" >&5 | |
13241 | cat conftest.$ac_ext >&5 | |
13242 | rm -rf conftest* | |
13243 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
13244 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
13245 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
13246 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
13247 | fi | |
13248 | rm -f conftest* | |
13249 | CFLAGS="$ac_save_CFLAGS" | |
13250 | LIBS="$ac_save_LIBS" | |
13251 | fi | |
13252 | fi | |
13253 | GTK_CFLAGS="" | |
13254 | GTK_LIBS="" | |
13255 | : | |
13256 | fi | |
13257 | ||
13258 | ||
13259 | rm -f conf.gtktest | |
13260 | ||
13261 | fi | |
13262 | fi | |
13263 | ||
13264 | if test -z "$wx_cv_lib_gtk"; then | |
13265 | wx_cv_lib_gtk=none | |
13266 | else | |
13267 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
13268 | wx_cv_libs_gtk=$GTK_LIBS | |
13269 | fi | |
13270 | ||
13271 | ||
13272 | fi | |
13273 | ||
13274 | ||
13275 | if test "$gtk_version_cached" = 1; then | |
13276 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
13277 | fi | |
13278 | ||
13279 | case "$wx_cv_lib_gtk" in | |
13280 | 2.0) WXGTK20=1 | |
13281 | TOOLKIT_VERSION=2 | |
13282 | ;; | |
13283 | 1.2.7) WXGTK127=1 | |
13284 | WXGTK12=1 | |
13285 | ;; | |
13286 | 1.2.3) WXGTK12=1 | |
13287 | ;; | |
13288 | *) { echo "configure: error: | |
13289 | Please check that gtk-config is in path, the directory | |
13290 | where GTK+ libraries are installed (returned by | |
13291 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
13292 | equivalent variable and GTK+ is version 1.2.3 or above. | |
13293 | " 1>&2; exit 1; } | |
13294 | ;; | |
13295 | esac | |
13296 | ||
13297 | if test "$WXGTK20" = 1; then | |
13298 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
13299 | ||
13300 | succeeded=no | |
13301 | ||
13302 | if test -z "$PKG_CONFIG"; then | |
13303 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
13304 | set dummy pkg-config; ac_word=$2 | |
13305 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
13306 | echo "configure:13307: checking for $ac_word" >&5 | |
13307 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then | |
13308 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13309 | else | |
13310 | case "$PKG_CONFIG" in | |
13311 | /*) | |
13312 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
13313 | ;; | |
13314 | ?:/*) | |
13315 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
13316 | ;; | |
13317 | *) | |
13318 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
13319 | ac_dummy="$PATH" | |
13320 | for ac_dir in $ac_dummy; do | |
13321 | test -z "$ac_dir" && ac_dir=. | |
13322 | if test -f $ac_dir/$ac_word; then | |
13323 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
13324 | break | |
13325 | fi | |
13326 | done | |
13327 | IFS="$ac_save_ifs" | |
13328 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
13329 | ;; | |
13330 | esac | |
13331 | fi | |
13332 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
13333 | if test -n "$PKG_CONFIG"; then | |
13334 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
13335 | else | |
13336 | echo "$ac_t""no" 1>&6 | |
13337 | fi | |
13338 | ||
13339 | fi | |
13340 | ||
13341 | if test "$PKG_CONFIG" = "no" ; then | |
13342 | echo "*** The pkg-config script could not be found. Make sure it is" | |
13343 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
13344 | echo "*** to the full path to pkg-config." | |
13345 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
13346 | else | |
13347 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
13348 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
13349 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 | |
13350 | echo "configure:13351: checking for pangoft2" >&5 | |
13351 | ||
13352 | if $PKG_CONFIG --exists "pangoft2" ; then | |
13353 | echo "$ac_t""yes" 1>&6 | |
13354 | succeeded=yes | |
13355 | ||
13356 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 | |
13357 | echo "configure:13358: checking PANGOFT2_CFLAGS" >&5 | |
13358 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
13359 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 | |
13360 | ||
13361 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 | |
13362 | echo "configure:13363: checking PANGOFT2_LIBS" >&5 | |
13363 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
13364 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 | |
13365 | else | |
13366 | PANGOFT2_CFLAGS="" | |
13367 | PANGOFT2_LIBS="" | |
13368 | ## If we have a custom action on failure, don't print errors, but | |
13369 | ## do set a variable so people can do so. | |
13370 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
13371 | ||
13372 | fi | |
13373 | ||
13374 | ||
13375 | ||
13376 | else | |
13377 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
13378 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
13379 | fi | |
13380 | fi | |
13381 | ||
13382 | if test $succeeded = yes; then | |
13383 | ||
13384 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
13385 | LIBS="$LIBS $PANGOFT2_LIBS" | |
13386 | ||
13387 | else | |
13388 | ||
13389 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
13390 | wxUSE_PRINTING_ARCHITECTURE="no" | |
13391 | ||
13392 | ||
13393 | fi | |
13394 | ||
13395 | fi | |
13396 | else | |
13397 | if test "$wxUSE_UNICODE" = "yes"; then | |
13398 | echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2 | |
13399 | wxUSE_UNICODE=no | |
13400 | fi | |
13401 | fi | |
13402 | ||
13403 | if test "$USE_DARWIN" != 1; then | |
13404 | for ac_func in poll | |
13405 | do | |
13406 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
13407 | echo "configure:13408: checking for $ac_func" >&5 | |
13408 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
13409 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13410 | else | |
13411 | cat > conftest.$ac_ext <<EOF | |
13412 | #line 13413 "configure" | |
13413 | #include "confdefs.h" | |
13414 | /* System header to define __stub macros and hopefully few prototypes, | |
13415 | which can conflict with char $ac_func(); below. */ | |
13416 | #include <assert.h> | |
13417 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13418 | /* We use char because int might match the return type of a gcc2 | |
13419 | builtin and then its argument prototype would still apply. */ | |
13420 | char $ac_func(); | |
13421 | ||
13422 | int main() { | |
13423 | ||
13424 | /* The GNU C library defines this for functions which it implements | |
13425 | to always fail with ENOSYS. Some functions are actually named | |
13426 | something starting with __ and the normal name is an alias. */ | |
13427 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13428 | choke me | |
13429 | #else | |
13430 | $ac_func(); | |
13431 | #endif | |
13432 | ||
13433 | ; return 0; } | |
13434 | EOF | |
13435 | if { (eval echo configure:13436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13436 | rm -rf conftest* | |
13437 | eval "ac_cv_func_$ac_func=yes" | |
13438 | else | |
13439 | echo "configure: failed program was:" >&5 | |
13440 | cat conftest.$ac_ext >&5 | |
13441 | rm -rf conftest* | |
13442 | eval "ac_cv_func_$ac_func=no" | |
13443 | fi | |
13444 | rm -f conftest* | |
13445 | fi | |
13446 | ||
13447 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13448 | echo "$ac_t""yes" 1>&6 | |
13449 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13450 | cat >> confdefs.h <<EOF | |
13451 | #define $ac_tr_func 1 | |
13452 | EOF | |
13453 | ||
13454 | else | |
13455 | echo "$ac_t""no" 1>&6 | |
13456 | fi | |
13457 | done | |
13458 | ||
13459 | fi | |
13460 | ||
13461 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
13462 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
13463 | ||
13464 | AFMINSTALL=afminstall | |
13465 | TOOLKIT=GTK | |
13466 | GUIDIST=GTK_DIST | |
13467 | ||
13468 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 | |
13469 | echo "configure:13470: checking for gdk_im_open in -lgdk" >&5 | |
13470 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` | |
13471 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13472 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13473 | else | |
13474 | ac_save_LIBS="$LIBS" | |
13475 | LIBS="-lgdk $LIBS" | |
13476 | cat > conftest.$ac_ext <<EOF | |
13477 | #line 13478 "configure" | |
13478 | #include "confdefs.h" | |
13479 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13480 | /* We use char because int might match the return type of a gcc2 | |
13481 | builtin and then its argument prototype would still apply. */ | |
13482 | char gdk_im_open(); | |
13483 | ||
13484 | int main() { | |
13485 | gdk_im_open() | |
13486 | ; return 0; } | |
13487 | EOF | |
13488 | if { (eval echo configure:13489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13489 | rm -rf conftest* | |
13490 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13491 | else | |
13492 | echo "configure: failed program was:" >&5 | |
13493 | cat conftest.$ac_ext >&5 | |
13494 | rm -rf conftest* | |
13495 | eval "ac_cv_lib_$ac_lib_var=no" | |
13496 | fi | |
13497 | rm -f conftest* | |
13498 | LIBS="$ac_save_LIBS" | |
13499 | ||
13500 | fi | |
13501 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13502 | echo "$ac_t""yes" 1>&6 | |
13503 | cat >> confdefs.h <<\EOF | |
13504 | #define HAVE_XIM 1 | |
13505 | EOF | |
13506 | ||
13507 | else | |
13508 | echo "$ac_t""no" 1>&6 | |
13509 | fi | |
13510 | ||
13511 | fi | |
13512 | ||
13513 | if test "$wxUSE_MGL" = 1; then | |
13514 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
13515 | echo "configure:13516: checking for SciTech MGL library" >&5 | |
13516 | if test "x$MGL_ROOT" = x ; then | |
13517 | echo "$ac_t""not found" 1>&6 | |
13518 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
13519 | else | |
13520 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
13521 | fi | |
13522 | ||
13523 | echo $ac_n "checking for libmgl location""... $ac_c" 1>&6 | |
13524 | echo "configure:13525: checking for libmgl location" >&5 | |
13525 | case "${host}" in | |
13526 | *-*-linux* ) | |
13527 | if test "x$wxUSE_SHARED" = xyes ; then | |
13528 | mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc" | |
13529 | else | |
13530 | mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so" | |
13531 | fi | |
13532 | ;; | |
13533 | *-pc-msdosdjgpp ) | |
13534 | mgl_os_candidates="dos32/dj2" | |
13535 | ;; | |
13536 | *) | |
13537 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } | |
13538 | esac | |
13539 | ||
13540 | mgl_lib_type="" | |
13541 | mgl_os="" | |
13542 | ||
13543 | for mgl_os_i in $mgl_os_candidates ; do | |
13544 | if test "x$mgl_os" = x ; then | |
13545 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
13546 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
13547 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
13548 | mgl_lib_type=debug | |
13549 | mgl_os=$mgl_os_i | |
13550 | fi | |
13551 | fi | |
13552 | if test "x$mgl_lib_type" = x ; then | |
13553 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
13554 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
13555 | mgl_lib_type=release | |
13556 | mgl_os=$mgl_os_i | |
13557 | fi | |
13558 | fi | |
13559 | fi | |
13560 | done | |
13561 | ||
13562 | if test "x$mgl_os" = x ; then | |
13563 | echo "$ac_t""not found" 1>&6 | |
13564 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
13565 | fi | |
13566 | echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6 | |
13567 | ||
13568 | wxUSE_UNIVERSAL="yes" | |
13569 | ||
13570 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
13571 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
13572 | ||
13573 | AFMINSTALL=afminstall | |
13574 | TOOLKIT=MGL | |
13575 | GUIDIST=MGL_DIST | |
13576 | fi | |
13577 | ||
13578 | if test "$wxUSE_MICROWIN" = 1; then | |
13579 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 | |
13580 | echo "configure:13581: checking for MicroWindows" >&5 | |
13581 | if test "x$MICROWINDOWS" = x ; then | |
13582 | echo "$ac_t""not found" 1>&6 | |
13583 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
13584 | else | |
13585 | echo "$ac_t""$MICROWINDOWS" 1>&6 | |
13586 | fi | |
13587 | ||
13588 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
13589 | echo "$ac_t""MicroWindows' libraries found." 1>&6 | |
13590 | else | |
13591 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } | |
13592 | fi | |
13593 | ||
13594 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
13595 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
13596 | ||
13597 | wxUSE_UNIVERSAL="yes" | |
13598 | ||
13599 | AFMINSTALL=afminstall | |
13600 | TOOLKIT=MICROWIN | |
13601 | GUIDIST=MICROWIN_DIST | |
13602 | ||
13603 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
13604 | fi | |
13605 | ||
13606 | if test "$wxUSE_X11" = 1; then | |
13607 | # If we find X, set shell vars x_includes and x_libraries to the | |
13608 | # paths, otherwise set no_x=yes. | |
13609 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
13610 | # --without-x overrides everything else, but does not touch the cache. | |
13611 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
13612 | echo "configure:13613: checking for X" >&5 | |
13613 | ||
13614 | # Check whether --with-x or --without-x was given. | |
13615 | if test "${with_x+set}" = set; then | |
13616 | withval="$with_x" | |
13617 | : | |
13618 | fi | |
13619 | ||
13620 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
13621 | if test "x$with_x" = xno; then | |
13622 | # The user explicitly disabled X. | |
13623 | have_x=disabled | |
13624 | else | |
13625 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
13626 | # Both variables are already set. | |
13627 | have_x=yes | |
13628 | else | |
13629 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
13630 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13631 | else | |
13632 | # One or both of the vars are not set, and there is no cached value. | |
13633 | ac_x_includes=NO ac_x_libraries=NO | |
13634 | rm -fr conftestdir | |
13635 | if mkdir conftestdir; then | |
13636 | cd conftestdir | |
13637 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
13638 | cat > Imakefile <<'EOF' | |
13639 | acfindx: | |
13640 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
13641 | EOF | |
13642 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
13643 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
13644 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
13645 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
13646 | for ac_extension in a so sl; do | |
13647 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
13648 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
13649 | ac_im_usrlibdir=$ac_im_libdir; break | |
13650 | fi | |
13651 | done | |
13652 | # Screen out bogus values from the imake configuration. They are | |
13653 | # bogus both because they are the default anyway, and because | |
13654 | # using them would break gcc on systems where it needs fixed includes. | |
13655 | case "$ac_im_incroot" in | |
13656 | /usr/include) ;; | |
13657 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
13658 | esac | |
13659 | case "$ac_im_usrlibdir" in | |
13660 | /usr/lib | /lib) ;; | |
13661 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
13662 | esac | |
13663 | fi | |
13664 | cd .. | |
13665 | rm -fr conftestdir | |
13666 | fi | |
13667 | ||
13668 | if test "$ac_x_includes" = NO; then | |
13669 | # Guess where to find include files, by looking for this one X11 .h file. | |
13670 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
13671 | ||
13672 | # First, try using that file with no special directory specified. | |
13673 | cat > conftest.$ac_ext <<EOF | |
13674 | #line 13675 "configure" | |
13675 | #include "confdefs.h" | |
13676 | #include <$x_direct_test_include> | |
13677 | EOF | |
13678 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
13679 | { (eval echo configure:13680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
13680 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
13681 | if test -z "$ac_err"; then | |
13682 | rm -rf conftest* | |
13683 | # We can compile using X headers with no special include directory. | |
13684 | ac_x_includes= | |
13685 | else | |
13686 | echo "$ac_err" >&5 | |
13687 | echo "configure: failed program was:" >&5 | |
13688 | cat conftest.$ac_ext >&5 | |
13689 | rm -rf conftest* | |
13690 | # Look for the header file in a standard set of common directories. | |
13691 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13692 | for ac_dir in \ | |
13693 | /usr/X11/include \ | |
13694 | /usr/X11R6/include \ | |
13695 | /usr/X11R5/include \ | |
13696 | /usr/X11R4/include \ | |
13697 | \ | |
13698 | /usr/include/X11 \ | |
13699 | /usr/include/X11R6 \ | |
13700 | /usr/include/X11R5 \ | |
13701 | /usr/include/X11R4 \ | |
13702 | \ | |
13703 | /usr/local/X11/include \ | |
13704 | /usr/local/X11R6/include \ | |
13705 | /usr/local/X11R5/include \ | |
13706 | /usr/local/X11R4/include \ | |
13707 | \ | |
13708 | /usr/local/include/X11 \ | |
13709 | /usr/local/include/X11R6 \ | |
13710 | /usr/local/include/X11R5 \ | |
13711 | /usr/local/include/X11R4 \ | |
13712 | \ | |
13713 | /usr/X386/include \ | |
13714 | /usr/x386/include \ | |
13715 | /usr/XFree86/include/X11 \ | |
13716 | \ | |
13717 | /usr/include \ | |
13718 | /usr/local/include \ | |
13719 | /usr/unsupported/include \ | |
13720 | /usr/athena/include \ | |
13721 | /usr/local/x11r5/include \ | |
13722 | /usr/lpp/Xamples/include \ | |
13723 | \ | |
13724 | /usr/openwin/include \ | |
13725 | /usr/openwin/share/include \ | |
13726 | ; \ | |
13727 | do | |
13728 | if test -r "$ac_dir/$x_direct_test_include"; then | |
13729 | ac_x_includes=$ac_dir | |
13730 | break | |
13731 | fi | |
13732 | done | |
13733 | fi | |
13734 | rm -f conftest* | |
13735 | fi # $ac_x_includes = NO | |
13736 | ||
13737 | if test "$ac_x_libraries" = NO; then | |
13738 | # Check for the libraries. | |
13739 | ||
13740 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
13741 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
13742 | ||
13743 | # See if we find them without any special options. | |
13744 | # Don't add to $LIBS permanently. | |
13745 | ac_save_LIBS="$LIBS" | |
13746 | LIBS="-l$x_direct_test_library $LIBS" | |
13747 | cat > conftest.$ac_ext <<EOF | |
13748 | #line 13749 "configure" | |
13749 | #include "confdefs.h" | |
13750 | ||
13751 | int main() { | |
13752 | ${x_direct_test_function}() | |
13753 | ; return 0; } | |
13754 | EOF | |
13755 | if { (eval echo configure:13756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13756 | rm -rf conftest* | |
13757 | LIBS="$ac_save_LIBS" | |
13758 | # We can link X programs with no special library path. | |
13759 | ac_x_libraries= | |
13760 | else | |
13761 | echo "configure: failed program was:" >&5 | |
13762 | cat conftest.$ac_ext >&5 | |
13763 | rm -rf conftest* | |
13764 | LIBS="$ac_save_LIBS" | |
13765 | # First see if replacing the include by lib works. | |
13766 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13767 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
13768 | /usr/X11/lib \ | |
13769 | /usr/X11R6/lib \ | |
13770 | /usr/X11R5/lib \ | |
13771 | /usr/X11R4/lib \ | |
13772 | \ | |
13773 | /usr/lib/X11 \ | |
13774 | /usr/lib/X11R6 \ | |
13775 | /usr/lib/X11R5 \ | |
13776 | /usr/lib/X11R4 \ | |
13777 | \ | |
13778 | /usr/local/X11/lib \ | |
13779 | /usr/local/X11R6/lib \ | |
13780 | /usr/local/X11R5/lib \ | |
13781 | /usr/local/X11R4/lib \ | |
13782 | \ | |
13783 | /usr/local/lib/X11 \ | |
13784 | /usr/local/lib/X11R6 \ | |
13785 | /usr/local/lib/X11R5 \ | |
13786 | /usr/local/lib/X11R4 \ | |
13787 | \ | |
13788 | /usr/X386/lib \ | |
13789 | /usr/x386/lib \ | |
13790 | /usr/XFree86/lib/X11 \ | |
13791 | \ | |
13792 | /usr/lib \ | |
13793 | /usr/local/lib \ | |
13794 | /usr/unsupported/lib \ | |
13795 | /usr/athena/lib \ | |
13796 | /usr/local/x11r5/lib \ | |
13797 | /usr/lpp/Xamples/lib \ | |
13798 | /lib/usr/lib/X11 \ | |
13799 | \ | |
13800 | /usr/openwin/lib \ | |
13801 | /usr/openwin/share/lib \ | |
13802 | ; \ | |
13803 | do | |
13804 | for ac_extension in a so sl; do | |
13805 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
13806 | ac_x_libraries=$ac_dir | |
13807 | break 2 | |
13808 | fi | |
13809 | done | |
13810 | done | |
13811 | fi | |
13812 | rm -f conftest* | |
13813 | fi # $ac_x_libraries = NO | |
13814 | ||
13815 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
13816 | # Didn't find X anywhere. Cache the known absence of X. | |
13817 | ac_cv_have_x="have_x=no" | |
13818 | else | |
13819 | # Record where we found X for the cache. | |
13820 | ac_cv_have_x="have_x=yes \ | |
13821 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
13822 | fi | |
13823 | fi | |
13824 | fi | |
13825 | eval "$ac_cv_have_x" | |
13826 | fi # $with_x != no | |
13827 | ||
13828 | if test "$have_x" != yes; then | |
13829 | echo "$ac_t""$have_x" 1>&6 | |
13830 | no_x=yes | |
13831 | else | |
13832 | # If each of the values was on the command line, it overrides each guess. | |
13833 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
13834 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
13835 | # Update the cache value to reflect the command line values. | |
13836 | ac_cv_have_x="have_x=yes \ | |
13837 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
13838 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
13839 | fi | |
13840 | ||
13841 | if test "$no_x" = yes; then | |
13842 | # Not all programs may use this symbol, but it does not hurt to define it. | |
13843 | cat >> confdefs.h <<\EOF | |
13844 | #define X_DISPLAY_MISSING 1 | |
13845 | EOF | |
13846 | ||
13847 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13848 | else | |
13849 | if test -n "$x_includes"; then | |
13850 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
13851 | fi | |
13852 | ||
13853 | # It would also be nice to do this for all -L options, not just this one. | |
13854 | if test -n "$x_libraries"; then | |
13855 | X_LIBS="$X_LIBS -L$x_libraries" | |
13856 | # For Solaris; some versions of Sun CC require a space after -R and | |
13857 | # others require no space. Words are not sufficient . . . . | |
13858 | case "`(uname -sr) 2>/dev/null`" in | |
13859 | "SunOS 5"*) | |
13860 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
13861 | echo "configure:13862: checking whether -R must be followed by a space" >&5 | |
13862 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | |
13863 | cat > conftest.$ac_ext <<EOF | |
13864 | #line 13865 "configure" | |
13865 | #include "confdefs.h" | |
13866 | ||
13867 | int main() { | |
13868 | ||
13869 | ; return 0; } | |
13870 | EOF | |
13871 | if { (eval echo configure:13872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13872 | rm -rf conftest* | |
13873 | ac_R_nospace=yes | |
13874 | else | |
13875 | echo "configure: failed program was:" >&5 | |
13876 | cat conftest.$ac_ext >&5 | |
13877 | rm -rf conftest* | |
13878 | ac_R_nospace=no | |
13879 | fi | |
13880 | rm -f conftest* | |
13881 | if test $ac_R_nospace = yes; then | |
13882 | echo "$ac_t""no" 1>&6 | |
13883 | X_LIBS="$X_LIBS -R$x_libraries" | |
13884 | else | |
13885 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
13886 | cat > conftest.$ac_ext <<EOF | |
13887 | #line 13888 "configure" | |
13888 | #include "confdefs.h" | |
13889 | ||
13890 | int main() { | |
13891 | ||
13892 | ; return 0; } | |
13893 | EOF | |
13894 | if { (eval echo configure:13895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13895 | rm -rf conftest* | |
13896 | ac_R_space=yes | |
13897 | else | |
13898 | echo "configure: failed program was:" >&5 | |
13899 | cat conftest.$ac_ext >&5 | |
13900 | rm -rf conftest* | |
13901 | ac_R_space=no | |
13902 | fi | |
13903 | rm -f conftest* | |
13904 | if test $ac_R_space = yes; then | |
13905 | echo "$ac_t""yes" 1>&6 | |
13906 | X_LIBS="$X_LIBS -R $x_libraries" | |
13907 | else | |
13908 | echo "$ac_t""neither works" 1>&6 | |
13909 | fi | |
13910 | fi | |
13911 | LIBS="$ac_xsave_LIBS" | |
13912 | esac | |
13913 | fi | |
13914 | ||
13915 | # Check for system-dependent libraries X programs must link with. | |
13916 | # Do this before checking for the system-independent R6 libraries | |
13917 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
13918 | ||
13919 | if test "$ISC" = yes; then | |
13920 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13921 | else | |
13922 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
13923 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
13924 | # the Alpha needs dnet_stub (dnet does not exist). | |
13925 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
13926 | echo "configure:13927: checking for dnet_ntoa in -ldnet" >&5 | |
13927 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
13928 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13929 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13930 | else | |
13931 | ac_save_LIBS="$LIBS" | |
13932 | LIBS="-ldnet $LIBS" | |
13933 | cat > conftest.$ac_ext <<EOF | |
13934 | #line 13935 "configure" | |
13935 | #include "confdefs.h" | |
13936 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13937 | /* We use char because int might match the return type of a gcc2 | |
13938 | builtin and then its argument prototype would still apply. */ | |
13939 | char dnet_ntoa(); | |
13940 | ||
13941 | int main() { | |
13942 | dnet_ntoa() | |
13943 | ; return 0; } | |
13944 | EOF | |
13945 | if { (eval echo configure:13946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13946 | rm -rf conftest* | |
13947 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13948 | else | |
13949 | echo "configure: failed program was:" >&5 | |
13950 | cat conftest.$ac_ext >&5 | |
13951 | rm -rf conftest* | |
13952 | eval "ac_cv_lib_$ac_lib_var=no" | |
13953 | fi | |
13954 | rm -f conftest* | |
13955 | LIBS="$ac_save_LIBS" | |
13956 | ||
13957 | fi | |
13958 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13959 | echo "$ac_t""yes" 1>&6 | |
13960 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
13961 | else | |
13962 | echo "$ac_t""no" 1>&6 | |
13963 | fi | |
13964 | ||
13965 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
13966 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
13967 | echo "configure:13968: checking for dnet_ntoa in -ldnet_stub" >&5 | |
13968 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
13969 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13970 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13971 | else | |
13972 | ac_save_LIBS="$LIBS" | |
13973 | LIBS="-ldnet_stub $LIBS" | |
13974 | cat > conftest.$ac_ext <<EOF | |
13975 | #line 13976 "configure" | |
13976 | #include "confdefs.h" | |
13977 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13978 | /* We use char because int might match the return type of a gcc2 | |
13979 | builtin and then its argument prototype would still apply. */ | |
13980 | char dnet_ntoa(); | |
13981 | ||
13982 | int main() { | |
13983 | dnet_ntoa() | |
13984 | ; return 0; } | |
13985 | EOF | |
13986 | if { (eval echo configure:13987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13987 | rm -rf conftest* | |
13988 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13989 | else | |
13990 | echo "configure: failed program was:" >&5 | |
13991 | cat conftest.$ac_ext >&5 | |
13992 | rm -rf conftest* | |
13993 | eval "ac_cv_lib_$ac_lib_var=no" | |
13994 | fi | |
13995 | rm -f conftest* | |
13996 | LIBS="$ac_save_LIBS" | |
13997 | ||
13998 | fi | |
13999 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14000 | echo "$ac_t""yes" 1>&6 | |
14001 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
14002 | else | |
14003 | echo "$ac_t""no" 1>&6 | |
14004 | fi | |
14005 | ||
14006 | fi | |
14007 | ||
14008 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
14009 | # to get the SysV transport functions. | |
14010 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
14011 | # needs -lnsl. | |
14012 | # The nsl library prevents programs from opening the X display | |
14013 | # on Irix 5.2, according to dickey@clark.net. | |
14014 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
14015 | echo "configure:14016: checking for gethostbyname" >&5 | |
14016 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then | |
14017 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14018 | else | |
14019 | cat > conftest.$ac_ext <<EOF | |
14020 | #line 14021 "configure" | |
14021 | #include "confdefs.h" | |
14022 | /* System header to define __stub macros and hopefully few prototypes, | |
14023 | which can conflict with char gethostbyname(); below. */ | |
14024 | #include <assert.h> | |
14025 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14026 | /* We use char because int might match the return type of a gcc2 | |
14027 | builtin and then its argument prototype would still apply. */ | |
14028 | char gethostbyname(); | |
14029 | ||
14030 | int main() { | |
14031 | ||
14032 | /* The GNU C library defines this for functions which it implements | |
14033 | to always fail with ENOSYS. Some functions are actually named | |
14034 | something starting with __ and the normal name is an alias. */ | |
14035 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
14036 | choke me | |
14037 | #else | |
14038 | gethostbyname(); | |
14039 | #endif | |
14040 | ||
14041 | ; return 0; } | |
14042 | EOF | |
14043 | if { (eval echo configure:14044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14044 | rm -rf conftest* | |
14045 | eval "ac_cv_func_gethostbyname=yes" | |
14046 | else | |
14047 | echo "configure: failed program was:" >&5 | |
14048 | cat conftest.$ac_ext >&5 | |
14049 | rm -rf conftest* | |
14050 | eval "ac_cv_func_gethostbyname=no" | |
14051 | fi | |
14052 | rm -f conftest* | |
14053 | fi | |
14054 | ||
14055 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
14056 | echo "$ac_t""yes" 1>&6 | |
14057 | : | |
14058 | else | |
14059 | echo "$ac_t""no" 1>&6 | |
14060 | fi | |
14061 | ||
14062 | if test $ac_cv_func_gethostbyname = no; then | |
14063 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
14064 | echo "configure:14065: checking for gethostbyname in -lnsl" >&5 | |
14065 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | |
14066 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14067 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14068 | else | |
14069 | ac_save_LIBS="$LIBS" | |
14070 | LIBS="-lnsl $LIBS" | |
14071 | cat > conftest.$ac_ext <<EOF | |
14072 | #line 14073 "configure" | |
14073 | #include "confdefs.h" | |
14074 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14075 | /* We use char because int might match the return type of a gcc2 | |
14076 | builtin and then its argument prototype would still apply. */ | |
14077 | char gethostbyname(); | |
14078 | ||
14079 | int main() { | |
14080 | gethostbyname() | |
14081 | ; return 0; } | |
14082 | EOF | |
14083 | if { (eval echo configure:14084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14084 | rm -rf conftest* | |
14085 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14086 | else | |
14087 | echo "configure: failed program was:" >&5 | |
14088 | cat conftest.$ac_ext >&5 | |
14089 | rm -rf conftest* | |
14090 | eval "ac_cv_lib_$ac_lib_var=no" | |
14091 | fi | |
14092 | rm -f conftest* | |
14093 | LIBS="$ac_save_LIBS" | |
14094 | ||
14095 | fi | |
14096 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14097 | echo "$ac_t""yes" 1>&6 | |
14098 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
14099 | else | |
14100 | echo "$ac_t""no" 1>&6 | |
14101 | fi | |
14102 | ||
14103 | fi | |
14104 | ||
14105 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
14106 | # socket/setsockopt and other routines are undefined under SCO ODT | |
14107 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
14108 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
14109 | # gethostby* variants that don't use the nameserver (or something). | |
14110 | # -lsocket must be given before -lnsl if both are needed. | |
14111 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
14112 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
14113 | echo "configure:14114: checking for connect" >&5 | |
14114 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then | |
14115 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14116 | else | |
14117 | cat > conftest.$ac_ext <<EOF | |
14118 | #line 14119 "configure" | |
14119 | #include "confdefs.h" | |
14120 | /* System header to define __stub macros and hopefully few prototypes, | |
14121 | which can conflict with char connect(); below. */ | |
14122 | #include <assert.h> | |
14123 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14124 | /* We use char because int might match the return type of a gcc2 | |
14125 | builtin and then its argument prototype would still apply. */ | |
14126 | char connect(); | |
14127 | ||
14128 | int main() { | |
14129 | ||
14130 | /* The GNU C library defines this for functions which it implements | |
14131 | to always fail with ENOSYS. Some functions are actually named | |
14132 | something starting with __ and the normal name is an alias. */ | |
14133 | #if defined (__stub_connect) || defined (__stub___connect) | |
14134 | choke me | |
14135 | #else | |
14136 | connect(); | |
14137 | #endif | |
14138 | ||
14139 | ; return 0; } | |
14140 | EOF | |
14141 | if { (eval echo configure:14142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14142 | rm -rf conftest* | |
14143 | eval "ac_cv_func_connect=yes" | |
14144 | else | |
14145 | echo "configure: failed program was:" >&5 | |
14146 | cat conftest.$ac_ext >&5 | |
14147 | rm -rf conftest* | |
14148 | eval "ac_cv_func_connect=no" | |
14149 | fi | |
14150 | rm -f conftest* | |
14151 | fi | |
14152 | ||
14153 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
14154 | echo "$ac_t""yes" 1>&6 | |
14155 | : | |
14156 | else | |
14157 | echo "$ac_t""no" 1>&6 | |
14158 | fi | |
14159 | ||
14160 | if test $ac_cv_func_connect = no; then | |
14161 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
14162 | echo "configure:14163: checking for connect in -lsocket" >&5 | |
14163 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` | |
14164 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14165 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14166 | else | |
14167 | ac_save_LIBS="$LIBS" | |
14168 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
14169 | cat > conftest.$ac_ext <<EOF | |
14170 | #line 14171 "configure" | |
14171 | #include "confdefs.h" | |
14172 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14173 | /* We use char because int might match the return type of a gcc2 | |
14174 | builtin and then its argument prototype would still apply. */ | |
14175 | char connect(); | |
14176 | ||
14177 | int main() { | |
14178 | connect() | |
14179 | ; return 0; } | |
14180 | EOF | |
14181 | if { (eval echo configure:14182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14182 | rm -rf conftest* | |
14183 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14184 | else | |
14185 | echo "configure: failed program was:" >&5 | |
14186 | cat conftest.$ac_ext >&5 | |
14187 | rm -rf conftest* | |
14188 | eval "ac_cv_lib_$ac_lib_var=no" | |
14189 | fi | |
14190 | rm -f conftest* | |
14191 | LIBS="$ac_save_LIBS" | |
14192 | ||
14193 | fi | |
14194 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14195 | echo "$ac_t""yes" 1>&6 | |
14196 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
14197 | else | |
14198 | echo "$ac_t""no" 1>&6 | |
14199 | fi | |
14200 | ||
14201 | fi | |
14202 | ||
14203 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
14204 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
14205 | echo "configure:14206: checking for remove" >&5 | |
14206 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then | |
14207 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14208 | else | |
14209 | cat > conftest.$ac_ext <<EOF | |
14210 | #line 14211 "configure" | |
14211 | #include "confdefs.h" | |
14212 | /* System header to define __stub macros and hopefully few prototypes, | |
14213 | which can conflict with char remove(); below. */ | |
14214 | #include <assert.h> | |
14215 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14216 | /* We use char because int might match the return type of a gcc2 | |
14217 | builtin and then its argument prototype would still apply. */ | |
14218 | char remove(); | |
14219 | ||
14220 | int main() { | |
14221 | ||
14222 | /* The GNU C library defines this for functions which it implements | |
14223 | to always fail with ENOSYS. Some functions are actually named | |
14224 | something starting with __ and the normal name is an alias. */ | |
14225 | #if defined (__stub_remove) || defined (__stub___remove) | |
14226 | choke me | |
14227 | #else | |
14228 | remove(); | |
14229 | #endif | |
14230 | ||
14231 | ; return 0; } | |
14232 | EOF | |
14233 | if { (eval echo configure:14234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14234 | rm -rf conftest* | |
14235 | eval "ac_cv_func_remove=yes" | |
14236 | else | |
14237 | echo "configure: failed program was:" >&5 | |
14238 | cat conftest.$ac_ext >&5 | |
14239 | rm -rf conftest* | |
14240 | eval "ac_cv_func_remove=no" | |
14241 | fi | |
14242 | rm -f conftest* | |
14243 | fi | |
14244 | ||
14245 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
14246 | echo "$ac_t""yes" 1>&6 | |
14247 | : | |
14248 | else | |
14249 | echo "$ac_t""no" 1>&6 | |
14250 | fi | |
14251 | ||
14252 | if test $ac_cv_func_remove = no; then | |
14253 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
14254 | echo "configure:14255: checking for remove in -lposix" >&5 | |
14255 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` | |
14256 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14257 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14258 | else | |
14259 | ac_save_LIBS="$LIBS" | |
14260 | LIBS="-lposix $LIBS" | |
14261 | cat > conftest.$ac_ext <<EOF | |
14262 | #line 14263 "configure" | |
14263 | #include "confdefs.h" | |
14264 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14265 | /* We use char because int might match the return type of a gcc2 | |
14266 | builtin and then its argument prototype would still apply. */ | |
14267 | char remove(); | |
14268 | ||
14269 | int main() { | |
14270 | remove() | |
14271 | ; return 0; } | |
14272 | EOF | |
14273 | if { (eval echo configure:14274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14274 | rm -rf conftest* | |
14275 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14276 | else | |
14277 | echo "configure: failed program was:" >&5 | |
14278 | cat conftest.$ac_ext >&5 | |
14279 | rm -rf conftest* | |
14280 | eval "ac_cv_lib_$ac_lib_var=no" | |
14281 | fi | |
14282 | rm -f conftest* | |
14283 | LIBS="$ac_save_LIBS" | |
14284 | ||
14285 | fi | |
14286 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14287 | echo "$ac_t""yes" 1>&6 | |
14288 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
14289 | else | |
14290 | echo "$ac_t""no" 1>&6 | |
14291 | fi | |
14292 | ||
14293 | fi | |
14294 | ||
14295 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
14296 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
14297 | echo "configure:14298: checking for shmat" >&5 | |
14298 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then | |
14299 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14300 | else | |
14301 | cat > conftest.$ac_ext <<EOF | |
14302 | #line 14303 "configure" | |
14303 | #include "confdefs.h" | |
14304 | /* System header to define __stub macros and hopefully few prototypes, | |
14305 | which can conflict with char shmat(); below. */ | |
14306 | #include <assert.h> | |
14307 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14308 | /* We use char because int might match the return type of a gcc2 | |
14309 | builtin and then its argument prototype would still apply. */ | |
14310 | char shmat(); | |
14311 | ||
14312 | int main() { | |
14313 | ||
14314 | /* The GNU C library defines this for functions which it implements | |
14315 | to always fail with ENOSYS. Some functions are actually named | |
14316 | something starting with __ and the normal name is an alias. */ | |
14317 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14318 | choke me | |
14319 | #else | |
14320 | shmat(); | |
14321 | #endif | |
14322 | ||
14323 | ; return 0; } | |
14324 | EOF | |
14325 | if { (eval echo configure:14326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14326 | rm -rf conftest* | |
14327 | eval "ac_cv_func_shmat=yes" | |
14328 | else | |
14329 | echo "configure: failed program was:" >&5 | |
14330 | cat conftest.$ac_ext >&5 | |
14331 | rm -rf conftest* | |
14332 | eval "ac_cv_func_shmat=no" | |
14333 | fi | |
14334 | rm -f conftest* | |
14335 | fi | |
14336 | ||
14337 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14338 | echo "$ac_t""yes" 1>&6 | |
14339 | : | |
14340 | else | |
14341 | echo "$ac_t""no" 1>&6 | |
14342 | fi | |
14343 | ||
14344 | if test $ac_cv_func_shmat = no; then | |
14345 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
14346 | echo "configure:14347: checking for shmat in -lipc" >&5 | |
14347 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` | |
14348 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14349 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14350 | else | |
14351 | ac_save_LIBS="$LIBS" | |
14352 | LIBS="-lipc $LIBS" | |
14353 | cat > conftest.$ac_ext <<EOF | |
14354 | #line 14355 "configure" | |
14355 | #include "confdefs.h" | |
14356 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14357 | /* We use char because int might match the return type of a gcc2 | |
14358 | builtin and then its argument prototype would still apply. */ | |
14359 | char shmat(); | |
14360 | ||
14361 | int main() { | |
14362 | shmat() | |
14363 | ; return 0; } | |
14364 | EOF | |
14365 | if { (eval echo configure:14366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14366 | rm -rf conftest* | |
14367 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14368 | else | |
14369 | echo "configure: failed program was:" >&5 | |
14370 | cat conftest.$ac_ext >&5 | |
14371 | rm -rf conftest* | |
14372 | eval "ac_cv_lib_$ac_lib_var=no" | |
14373 | fi | |
14374 | rm -f conftest* | |
14375 | LIBS="$ac_save_LIBS" | |
14376 | ||
14377 | fi | |
14378 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14379 | echo "$ac_t""yes" 1>&6 | |
14380 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
14381 | else | |
14382 | echo "$ac_t""no" 1>&6 | |
14383 | fi | |
14384 | ||
14385 | fi | |
14386 | fi | |
14387 | ||
14388 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
14389 | ac_save_LDFLAGS="$LDFLAGS" | |
14390 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
14391 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14392 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14393 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14394 | # These have to be linked with before -lX11, unlike the other | |
14395 | # libraries we check for below, so use a different variable. | |
14396 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
14397 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
14398 | echo "configure:14399: checking for IceConnectionNumber in -lICE" >&5 | |
14399 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` | |
14400 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14401 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14402 | else | |
14403 | ac_save_LIBS="$LIBS" | |
14404 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
14405 | cat > conftest.$ac_ext <<EOF | |
14406 | #line 14407 "configure" | |
14407 | #include "confdefs.h" | |
14408 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14409 | /* We use char because int might match the return type of a gcc2 | |
14410 | builtin and then its argument prototype would still apply. */ | |
14411 | char IceConnectionNumber(); | |
14412 | ||
14413 | int main() { | |
14414 | IceConnectionNumber() | |
14415 | ; return 0; } | |
14416 | EOF | |
14417 | if { (eval echo configure:14418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14418 | rm -rf conftest* | |
14419 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14420 | else | |
14421 | echo "configure: failed program was:" >&5 | |
14422 | cat conftest.$ac_ext >&5 | |
14423 | rm -rf conftest* | |
14424 | eval "ac_cv_lib_$ac_lib_var=no" | |
14425 | fi | |
14426 | rm -f conftest* | |
14427 | LIBS="$ac_save_LIBS" | |
14428 | ||
14429 | fi | |
14430 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14431 | echo "$ac_t""yes" 1>&6 | |
14432 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
14433 | else | |
14434 | echo "$ac_t""no" 1>&6 | |
14435 | fi | |
14436 | ||
14437 | LDFLAGS="$ac_save_LDFLAGS" | |
14438 | ||
14439 | fi | |
14440 | ||
14441 | ||
14442 | if test "$no_x" = "yes"; then | |
14443 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
14444 | fi | |
14445 | ||
14446 | GUI_TK_LIBRARY="$X_LIBS" | |
14447 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14448 | AFMINSTALL=afminstall | |
14449 | COMPILED_X_PROGRAM=0 | |
14450 | ||
14451 | if test "$wxUSE_NANOX" = "yes"; then | |
14452 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 | |
14453 | echo "configure:14454: checking for MicroWindows/NanoX distribution" >&5 | |
14454 | if test "x$MICROWIN" = x ; then | |
14455 | echo "$ac_t""not found" 1>&6 | |
14456 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
14457 | else | |
14458 | echo "$ac_t""$MICROWIN" 1>&6 | |
14459 | cat >> confdefs.h <<\EOF | |
14460 | #define wxUSE_NANOX 1 | |
14461 | EOF | |
14462 | ||
14463 | fi | |
14464 | fi | |
14465 | ||
14466 | xpm_link= | |
14467 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
14468 | echo "configure:14469: checking for Xpm library" >&5 | |
14469 | ||
14470 | ac_find_libraries= | |
14471 | for ac_dir in $SEARCH_LIB /usr/lib; | |
14472 | do | |
14473 | for ac_extension in a so sl dylib; do | |
14474 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14475 | ac_find_libraries=$ac_dir | |
14476 | break 2 | |
14477 | fi | |
14478 | done | |
14479 | done | |
14480 | ||
14481 | if test "$ac_find_libraries" != "" ; then | |
14482 | ||
14483 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
14484 | result=$? | |
14485 | if test $result = 0; then | |
14486 | ac_path_to_link="" | |
14487 | else | |
14488 | ac_path_to_link=" -L$ac_find_libraries" | |
14489 | fi | |
14490 | ||
14491 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
14492 | xpm_link=" -lXpm" | |
14493 | cat >> confdefs.h <<\EOF | |
14494 | #define wxHAVE_LIB_XPM 1 | |
14495 | EOF | |
14496 | ||
14497 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
14498 | else | |
14499 | cat > conftest.$ac_ext <<EOF | |
14500 | #line 14501 "configure" | |
14501 | #include "confdefs.h" | |
14502 | ||
14503 | #include <X11/xpm.h> | |
14504 | ||
14505 | int main() { | |
14506 | ||
14507 | int version; | |
14508 | version = XpmLibraryVersion(); | |
14509 | ||
14510 | ; return 0; } | |
14511 | EOF | |
14512 | if { (eval echo configure:14513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14513 | rm -rf conftest* | |
14514 | ||
14515 | xpm_link=" -lXpm" | |
14516 | cat >> confdefs.h <<\EOF | |
14517 | #define wxHAVE_LIB_XPM 1 | |
14518 | EOF | |
14519 | ||
14520 | echo "$ac_t""found in default search path" 1>&6 | |
14521 | COMPILED_X_PROGRAM=0 | |
14522 | ||
14523 | else | |
14524 | echo "configure: failed program was:" >&5 | |
14525 | cat conftest.$ac_ext >&5 | |
14526 | rm -rf conftest* | |
14527 | ||
14528 | echo "$ac_t""no" 1>&6 | |
14529 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14530 | ||
14531 | ||
14532 | fi | |
14533 | rm -f conftest* | |
14534 | fi | |
14535 | ||
14536 | if test "$wxUSE_UNICODE" = "yes"; then | |
14537 | ||
14538 | succeeded=no | |
14539 | ||
14540 | if test -z "$PKG_CONFIG"; then | |
14541 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14542 | set dummy pkg-config; ac_word=$2 | |
14543 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
14544 | echo "configure:14545: checking for $ac_word" >&5 | |
14545 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then | |
14546 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14547 | else | |
14548 | case "$PKG_CONFIG" in | |
14549 | /*) | |
14550 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14551 | ;; | |
14552 | ?:/*) | |
14553 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14554 | ;; | |
14555 | *) | |
14556 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14557 | ac_dummy="$PATH" | |
14558 | for ac_dir in $ac_dummy; do | |
14559 | test -z "$ac_dir" && ac_dir=. | |
14560 | if test -f $ac_dir/$ac_word; then | |
14561 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14562 | break | |
14563 | fi | |
14564 | done | |
14565 | IFS="$ac_save_ifs" | |
14566 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14567 | ;; | |
14568 | esac | |
14569 | fi | |
14570 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14571 | if test -n "$PKG_CONFIG"; then | |
14572 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14573 | else | |
14574 | echo "$ac_t""no" 1>&6 | |
14575 | fi | |
14576 | ||
14577 | fi | |
14578 | ||
14579 | if test "$PKG_CONFIG" = "no" ; then | |
14580 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14581 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14582 | echo "*** to the full path to pkg-config." | |
14583 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14584 | else | |
14585 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14586 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14587 | echo $ac_n "checking for pangox""... $ac_c" 1>&6 | |
14588 | echo "configure:14589: checking for pangox" >&5 | |
14589 | ||
14590 | if $PKG_CONFIG --exists "pangox" ; then | |
14591 | echo "$ac_t""yes" 1>&6 | |
14592 | succeeded=yes | |
14593 | ||
14594 | echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6 | |
14595 | echo "configure:14596: checking PANGOX_CFLAGS" >&5 | |
14596 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
14597 | echo "$ac_t""$PANGOX_CFLAGS" 1>&6 | |
14598 | ||
14599 | echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6 | |
14600 | echo "configure:14601: checking PANGOX_LIBS" >&5 | |
14601 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
14602 | echo "$ac_t""$PANGOX_LIBS" 1>&6 | |
14603 | else | |
14604 | PANGOX_CFLAGS="" | |
14605 | PANGOX_LIBS="" | |
14606 | ## If we have a custom action on failure, don't print errors, but | |
14607 | ## do set a variable so people can do so. | |
14608 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
14609 | ||
14610 | fi | |
14611 | ||
14612 | ||
14613 | ||
14614 | else | |
14615 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14616 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14617 | fi | |
14618 | fi | |
14619 | ||
14620 | if test $succeeded = yes; then | |
14621 | ||
14622 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
14623 | LIBS="$LIBS $PANGOX_LIBS" | |
14624 | ||
14625 | else | |
14626 | ||
14627 | { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; } | |
14628 | ||
14629 | ||
14630 | fi | |
14631 | ||
14632 | ||
14633 | succeeded=no | |
14634 | ||
14635 | if test -z "$PKG_CONFIG"; then | |
14636 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14637 | set dummy pkg-config; ac_word=$2 | |
14638 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
14639 | echo "configure:14640: checking for $ac_word" >&5 | |
14640 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then | |
14641 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14642 | else | |
14643 | case "$PKG_CONFIG" in | |
14644 | /*) | |
14645 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14646 | ;; | |
14647 | ?:/*) | |
14648 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14649 | ;; | |
14650 | *) | |
14651 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14652 | ac_dummy="$PATH" | |
14653 | for ac_dir in $ac_dummy; do | |
14654 | test -z "$ac_dir" && ac_dir=. | |
14655 | if test -f $ac_dir/$ac_word; then | |
14656 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14657 | break | |
14658 | fi | |
14659 | done | |
14660 | IFS="$ac_save_ifs" | |
14661 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14662 | ;; | |
14663 | esac | |
14664 | fi | |
14665 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14666 | if test -n "$PKG_CONFIG"; then | |
14667 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14668 | else | |
14669 | echo "$ac_t""no" 1>&6 | |
14670 | fi | |
14671 | ||
14672 | fi | |
14673 | ||
14674 | if test "$PKG_CONFIG" = "no" ; then | |
14675 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14676 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14677 | echo "*** to the full path to pkg-config." | |
14678 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14679 | else | |
14680 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14681 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14682 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 | |
14683 | echo "configure:14684: checking for pangoft2" >&5 | |
14684 | ||
14685 | if $PKG_CONFIG --exists "pangoft2" ; then | |
14686 | echo "$ac_t""yes" 1>&6 | |
14687 | succeeded=yes | |
14688 | ||
14689 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 | |
14690 | echo "configure:14691: checking PANGOFT2_CFLAGS" >&5 | |
14691 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
14692 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 | |
14693 | ||
14694 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 | |
14695 | echo "configure:14696: checking PANGOFT2_LIBS" >&5 | |
14696 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
14697 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 | |
14698 | else | |
14699 | PANGOFT2_CFLAGS="" | |
14700 | PANGOFT2_LIBS="" | |
14701 | ## If we have a custom action on failure, don't print errors, but | |
14702 | ## do set a variable so people can do so. | |
14703 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
14704 | ||
14705 | fi | |
14706 | ||
14707 | ||
14708 | ||
14709 | else | |
14710 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14711 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14712 | fi | |
14713 | fi | |
14714 | ||
14715 | if test $succeeded = yes; then | |
14716 | ||
14717 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
14718 | LIBS="$LIBS $PANGOFT2_LIBS" | |
14719 | ||
14720 | else | |
14721 | ||
14722 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
14723 | wxUSE_PRINTING_ARCHITECTURE="no" | |
14724 | ||
14725 | ||
14726 | fi | |
14727 | ||
14728 | ||
14729 | succeeded=no | |
14730 | ||
14731 | if test -z "$PKG_CONFIG"; then | |
14732 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14733 | set dummy pkg-config; ac_word=$2 | |
14734 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
14735 | echo "configure:14736: checking for $ac_word" >&5 | |
14736 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then | |
14737 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14738 | else | |
14739 | case "$PKG_CONFIG" in | |
14740 | /*) | |
14741 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14742 | ;; | |
14743 | ?:/*) | |
14744 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14745 | ;; | |
14746 | *) | |
14747 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14748 | ac_dummy="$PATH" | |
14749 | for ac_dir in $ac_dummy; do | |
14750 | test -z "$ac_dir" && ac_dir=. | |
14751 | if test -f $ac_dir/$ac_word; then | |
14752 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14753 | break | |
14754 | fi | |
14755 | done | |
14756 | IFS="$ac_save_ifs" | |
14757 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14758 | ;; | |
14759 | esac | |
14760 | fi | |
14761 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14762 | if test -n "$PKG_CONFIG"; then | |
14763 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14764 | else | |
14765 | echo "$ac_t""no" 1>&6 | |
14766 | fi | |
14767 | ||
14768 | fi | |
14769 | ||
14770 | if test "$PKG_CONFIG" = "no" ; then | |
14771 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14772 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14773 | echo "*** to the full path to pkg-config." | |
14774 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14775 | else | |
14776 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14777 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14778 | echo $ac_n "checking for pangoxft""... $ac_c" 1>&6 | |
14779 | echo "configure:14780: checking for pangoxft" >&5 | |
14780 | ||
14781 | if $PKG_CONFIG --exists "pangoxft" ; then | |
14782 | echo "$ac_t""yes" 1>&6 | |
14783 | succeeded=yes | |
14784 | ||
14785 | echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6 | |
14786 | echo "configure:14787: checking PANGOXFT_CFLAGS" >&5 | |
14787 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
14788 | echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6 | |
14789 | ||
14790 | echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6 | |
14791 | echo "configure:14792: checking PANGOXFT_LIBS" >&5 | |
14792 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
14793 | echo "$ac_t""$PANGOXFT_LIBS" 1>&6 | |
14794 | else | |
14795 | PANGOXFT_CFLAGS="" | |
14796 | PANGOXFT_LIBS="" | |
14797 | ## If we have a custom action on failure, don't print errors, but | |
14798 | ## do set a variable so people can do so. | |
14799 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
14800 | ||
14801 | fi | |
14802 | ||
14803 | ||
14804 | ||
14805 | else | |
14806 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14807 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14808 | fi | |
14809 | fi | |
14810 | ||
14811 | if test $succeeded = yes; then | |
14812 | ||
14813 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
14814 | LIBS="$LIBS $PANGOXFT_LIBS" | |
14815 | ||
14816 | else | |
14817 | ||
14818 | echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2 | |
14819 | ||
14820 | ||
14821 | fi | |
14822 | ||
14823 | fi | |
14824 | ||
14825 | wxUSE_UNIVERSAL="yes" | |
14826 | ||
14827 | if test "$wxUSE_NANOX" = "yes"; then | |
14828 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
14829 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1" | |
14830 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
14831 | else | |
14832 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
14833 | fi | |
14834 | ||
14835 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
14836 | TOOLKIT=X11 | |
14837 | GUIDIST=X11_DIST | |
14838 | fi | |
14839 | ||
14840 | if test "$wxUSE_MOTIF" = 1; then | |
14841 | if test "$no_x" = yes; then | |
14842 | # Not all programs may use this symbol, but it does not hurt to define it. | |
14843 | cat >> confdefs.h <<\EOF | |
14844 | #define X_DISPLAY_MISSING 1 | |
14845 | EOF | |
14846 | ||
14847 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
14848 | else | |
14849 | if test -n "$x_includes"; then | |
14850 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
14851 | fi | |
14852 | ||
14853 | # It would also be nice to do this for all -L options, not just this one. | |
14854 | if test -n "$x_libraries"; then | |
14855 | X_LIBS="$X_LIBS -L$x_libraries" | |
14856 | # For Solaris; some versions of Sun CC require a space after -R and | |
14857 | # others require no space. Words are not sufficient . . . . | |
14858 | case "`(uname -sr) 2>/dev/null`" in | |
14859 | "SunOS 5"*) | |
14860 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
14861 | echo "configure:14862: checking whether -R must be followed by a space" >&5 | |
14862 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | |
14863 | cat > conftest.$ac_ext <<EOF | |
14864 | #line 14865 "configure" | |
14865 | #include "confdefs.h" | |
14866 | ||
14867 | int main() { | |
14868 | ||
14869 | ; return 0; } | |
14870 | EOF | |
14871 | if { (eval echo configure:14872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14872 | rm -rf conftest* | |
14873 | ac_R_nospace=yes | |
14874 | else | |
14875 | echo "configure: failed program was:" >&5 | |
14876 | cat conftest.$ac_ext >&5 | |
14877 | rm -rf conftest* | |
14878 | ac_R_nospace=no | |
14879 | fi | |
14880 | rm -f conftest* | |
14881 | if test $ac_R_nospace = yes; then | |
14882 | echo "$ac_t""no" 1>&6 | |
14883 | X_LIBS="$X_LIBS -R$x_libraries" | |
14884 | else | |
14885 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
14886 | cat > conftest.$ac_ext <<EOF | |
14887 | #line 14888 "configure" | |
14888 | #include "confdefs.h" | |
14889 | ||
14890 | int main() { | |
14891 | ||
14892 | ; return 0; } | |
14893 | EOF | |
14894 | if { (eval echo configure:14895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14895 | rm -rf conftest* | |
14896 | ac_R_space=yes | |
14897 | else | |
14898 | echo "configure: failed program was:" >&5 | |
14899 | cat conftest.$ac_ext >&5 | |
14900 | rm -rf conftest* | |
14901 | ac_R_space=no | |
14902 | fi | |
14903 | rm -f conftest* | |
14904 | if test $ac_R_space = yes; then | |
14905 | echo "$ac_t""yes" 1>&6 | |
14906 | X_LIBS="$X_LIBS -R $x_libraries" | |
14907 | else | |
14908 | echo "$ac_t""neither works" 1>&6 | |
14909 | fi | |
14910 | fi | |
14911 | LIBS="$ac_xsave_LIBS" | |
14912 | esac | |
14913 | fi | |
14914 | ||
14915 | # Check for system-dependent libraries X programs must link with. | |
14916 | # Do this before checking for the system-independent R6 libraries | |
14917 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
14918 | ||
14919 | if test "$ISC" = yes; then | |
14920 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
14921 | else | |
14922 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
14923 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
14924 | # the Alpha needs dnet_stub (dnet does not exist). | |
14925 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
14926 | echo "configure:14927: checking for dnet_ntoa in -ldnet" >&5 | |
14927 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
14928 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14929 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14930 | else | |
14931 | ac_save_LIBS="$LIBS" | |
14932 | LIBS="-ldnet $LIBS" | |
14933 | cat > conftest.$ac_ext <<EOF | |
14934 | #line 14935 "configure" | |
14935 | #include "confdefs.h" | |
14936 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14937 | /* We use char because int might match the return type of a gcc2 | |
14938 | builtin and then its argument prototype would still apply. */ | |
14939 | char dnet_ntoa(); | |
14940 | ||
14941 | int main() { | |
14942 | dnet_ntoa() | |
14943 | ; return 0; } | |
14944 | EOF | |
14945 | if { (eval echo configure:14946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14946 | rm -rf conftest* | |
14947 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14948 | else | |
14949 | echo "configure: failed program was:" >&5 | |
14950 | cat conftest.$ac_ext >&5 | |
14951 | rm -rf conftest* | |
14952 | eval "ac_cv_lib_$ac_lib_var=no" | |
14953 | fi | |
14954 | rm -f conftest* | |
14955 | LIBS="$ac_save_LIBS" | |
14956 | ||
14957 | fi | |
14958 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14959 | echo "$ac_t""yes" 1>&6 | |
14960 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
14961 | else | |
14962 | echo "$ac_t""no" 1>&6 | |
14963 | fi | |
14964 | ||
14965 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
14966 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
14967 | echo "configure:14968: checking for dnet_ntoa in -ldnet_stub" >&5 | |
14968 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
14969 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14970 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14971 | else | |
14972 | ac_save_LIBS="$LIBS" | |
14973 | LIBS="-ldnet_stub $LIBS" | |
14974 | cat > conftest.$ac_ext <<EOF | |
14975 | #line 14976 "configure" | |
14976 | #include "confdefs.h" | |
14977 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14978 | /* We use char because int might match the return type of a gcc2 | |
14979 | builtin and then its argument prototype would still apply. */ | |
14980 | char dnet_ntoa(); | |
14981 | ||
14982 | int main() { | |
14983 | dnet_ntoa() | |
14984 | ; return 0; } | |
14985 | EOF | |
14986 | if { (eval echo configure:14987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14987 | rm -rf conftest* | |
14988 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14989 | else | |
14990 | echo "configure: failed program was:" >&5 | |
14991 | cat conftest.$ac_ext >&5 | |
14992 | rm -rf conftest* | |
14993 | eval "ac_cv_lib_$ac_lib_var=no" | |
14994 | fi | |
14995 | rm -f conftest* | |
14996 | LIBS="$ac_save_LIBS" | |
14997 | ||
14998 | fi | |
14999 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15000 | echo "$ac_t""yes" 1>&6 | |
15001 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
15002 | else | |
15003 | echo "$ac_t""no" 1>&6 | |
15004 | fi | |
15005 | ||
15006 | fi | |
15007 | ||
15008 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
15009 | # to get the SysV transport functions. | |
15010 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
15011 | # needs -lnsl. | |
15012 | # The nsl library prevents programs from opening the X display | |
15013 | # on Irix 5.2, according to dickey@clark.net. | |
15014 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
15015 | echo "configure:15016: checking for gethostbyname" >&5 | |
15016 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then | |
15017 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15018 | else | |
15019 | cat > conftest.$ac_ext <<EOF | |
15020 | #line 15021 "configure" | |
15021 | #include "confdefs.h" | |
15022 | /* System header to define __stub macros and hopefully few prototypes, | |
15023 | which can conflict with char gethostbyname(); below. */ | |
15024 | #include <assert.h> | |
15025 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15026 | /* We use char because int might match the return type of a gcc2 | |
15027 | builtin and then its argument prototype would still apply. */ | |
15028 | char gethostbyname(); | |
15029 | ||
15030 | int main() { | |
15031 | ||
15032 | /* The GNU C library defines this for functions which it implements | |
15033 | to always fail with ENOSYS. Some functions are actually named | |
15034 | something starting with __ and the normal name is an alias. */ | |
15035 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
15036 | choke me | |
15037 | #else | |
15038 | gethostbyname(); | |
15039 | #endif | |
15040 | ||
15041 | ; return 0; } | |
15042 | EOF | |
15043 | if { (eval echo configure:15044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15044 | rm -rf conftest* | |
15045 | eval "ac_cv_func_gethostbyname=yes" | |
15046 | else | |
15047 | echo "configure: failed program was:" >&5 | |
15048 | cat conftest.$ac_ext >&5 | |
15049 | rm -rf conftest* | |
15050 | eval "ac_cv_func_gethostbyname=no" | |
15051 | fi | |
15052 | rm -f conftest* | |
15053 | fi | |
15054 | ||
15055 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
15056 | echo "$ac_t""yes" 1>&6 | |
15057 | : | |
15058 | else | |
15059 | echo "$ac_t""no" 1>&6 | |
15060 | fi | |
15061 | ||
15062 | if test $ac_cv_func_gethostbyname = no; then | |
15063 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
15064 | echo "configure:15065: checking for gethostbyname in -lnsl" >&5 | |
15065 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | |
15066 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15067 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15068 | else | |
15069 | ac_save_LIBS="$LIBS" | |
15070 | LIBS="-lnsl $LIBS" | |
15071 | cat > conftest.$ac_ext <<EOF | |
15072 | #line 15073 "configure" | |
15073 | #include "confdefs.h" | |
15074 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15075 | /* We use char because int might match the return type of a gcc2 | |
15076 | builtin and then its argument prototype would still apply. */ | |
15077 | char gethostbyname(); | |
15078 | ||
15079 | int main() { | |
15080 | gethostbyname() | |
15081 | ; return 0; } | |
15082 | EOF | |
15083 | if { (eval echo configure:15084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15084 | rm -rf conftest* | |
15085 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15086 | else | |
15087 | echo "configure: failed program was:" >&5 | |
15088 | cat conftest.$ac_ext >&5 | |
15089 | rm -rf conftest* | |
15090 | eval "ac_cv_lib_$ac_lib_var=no" | |
15091 | fi | |
15092 | rm -f conftest* | |
15093 | LIBS="$ac_save_LIBS" | |
15094 | ||
15095 | fi | |
15096 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15097 | echo "$ac_t""yes" 1>&6 | |
15098 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
15099 | else | |
15100 | echo "$ac_t""no" 1>&6 | |
15101 | fi | |
15102 | ||
15103 | fi | |
15104 | ||
15105 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
15106 | # socket/setsockopt and other routines are undefined under SCO ODT | |
15107 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
15108 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
15109 | # gethostby* variants that don't use the nameserver (or something). | |
15110 | # -lsocket must be given before -lnsl if both are needed. | |
15111 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
15112 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
15113 | echo "configure:15114: checking for connect" >&5 | |
15114 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then | |
15115 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15116 | else | |
15117 | cat > conftest.$ac_ext <<EOF | |
15118 | #line 15119 "configure" | |
15119 | #include "confdefs.h" | |
15120 | /* System header to define __stub macros and hopefully few prototypes, | |
15121 | which can conflict with char connect(); below. */ | |
15122 | #include <assert.h> | |
15123 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15124 | /* We use char because int might match the return type of a gcc2 | |
15125 | builtin and then its argument prototype would still apply. */ | |
15126 | char connect(); | |
15127 | ||
15128 | int main() { | |
15129 | ||
15130 | /* The GNU C library defines this for functions which it implements | |
15131 | to always fail with ENOSYS. Some functions are actually named | |
15132 | something starting with __ and the normal name is an alias. */ | |
15133 | #if defined (__stub_connect) || defined (__stub___connect) | |
15134 | choke me | |
15135 | #else | |
15136 | connect(); | |
15137 | #endif | |
15138 | ||
15139 | ; return 0; } | |
15140 | EOF | |
15141 | if { (eval echo configure:15142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15142 | rm -rf conftest* | |
15143 | eval "ac_cv_func_connect=yes" | |
15144 | else | |
15145 | echo "configure: failed program was:" >&5 | |
15146 | cat conftest.$ac_ext >&5 | |
15147 | rm -rf conftest* | |
15148 | eval "ac_cv_func_connect=no" | |
15149 | fi | |
15150 | rm -f conftest* | |
15151 | fi | |
15152 | ||
15153 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
15154 | echo "$ac_t""yes" 1>&6 | |
15155 | : | |
15156 | else | |
15157 | echo "$ac_t""no" 1>&6 | |
15158 | fi | |
15159 | ||
15160 | if test $ac_cv_func_connect = no; then | |
15161 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
15162 | echo "configure:15163: checking for connect in -lsocket" >&5 | |
15163 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` | |
15164 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15165 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15166 | else | |
15167 | ac_save_LIBS="$LIBS" | |
15168 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
15169 | cat > conftest.$ac_ext <<EOF | |
15170 | #line 15171 "configure" | |
15171 | #include "confdefs.h" | |
15172 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15173 | /* We use char because int might match the return type of a gcc2 | |
15174 | builtin and then its argument prototype would still apply. */ | |
15175 | char connect(); | |
15176 | ||
15177 | int main() { | |
15178 | connect() | |
15179 | ; return 0; } | |
15180 | EOF | |
15181 | if { (eval echo configure:15182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15182 | rm -rf conftest* | |
15183 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15184 | else | |
15185 | echo "configure: failed program was:" >&5 | |
15186 | cat conftest.$ac_ext >&5 | |
15187 | rm -rf conftest* | |
15188 | eval "ac_cv_lib_$ac_lib_var=no" | |
15189 | fi | |
15190 | rm -f conftest* | |
15191 | LIBS="$ac_save_LIBS" | |
15192 | ||
15193 | fi | |
15194 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15195 | echo "$ac_t""yes" 1>&6 | |
15196 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
15197 | else | |
15198 | echo "$ac_t""no" 1>&6 | |
15199 | fi | |
15200 | ||
15201 | fi | |
15202 | ||
15203 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
15204 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
15205 | echo "configure:15206: checking for remove" >&5 | |
15206 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then | |
15207 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15208 | else | |
15209 | cat > conftest.$ac_ext <<EOF | |
15210 | #line 15211 "configure" | |
15211 | #include "confdefs.h" | |
15212 | /* System header to define __stub macros and hopefully few prototypes, | |
15213 | which can conflict with char remove(); below. */ | |
15214 | #include <assert.h> | |
15215 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15216 | /* We use char because int might match the return type of a gcc2 | |
15217 | builtin and then its argument prototype would still apply. */ | |
15218 | char remove(); | |
15219 | ||
15220 | int main() { | |
15221 | ||
15222 | /* The GNU C library defines this for functions which it implements | |
15223 | to always fail with ENOSYS. Some functions are actually named | |
15224 | something starting with __ and the normal name is an alias. */ | |
15225 | #if defined (__stub_remove) || defined (__stub___remove) | |
15226 | choke me | |
15227 | #else | |
15228 | remove(); | |
15229 | #endif | |
15230 | ||
15231 | ; return 0; } | |
15232 | EOF | |
15233 | if { (eval echo configure:15234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15234 | rm -rf conftest* | |
15235 | eval "ac_cv_func_remove=yes" | |
15236 | else | |
15237 | echo "configure: failed program was:" >&5 | |
15238 | cat conftest.$ac_ext >&5 | |
15239 | rm -rf conftest* | |
15240 | eval "ac_cv_func_remove=no" | |
15241 | fi | |
15242 | rm -f conftest* | |
15243 | fi | |
15244 | ||
15245 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
15246 | echo "$ac_t""yes" 1>&6 | |
15247 | : | |
15248 | else | |
15249 | echo "$ac_t""no" 1>&6 | |
15250 | fi | |
15251 | ||
15252 | if test $ac_cv_func_remove = no; then | |
15253 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
15254 | echo "configure:15255: checking for remove in -lposix" >&5 | |
15255 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` | |
15256 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15257 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15258 | else | |
15259 | ac_save_LIBS="$LIBS" | |
15260 | LIBS="-lposix $LIBS" | |
15261 | cat > conftest.$ac_ext <<EOF | |
15262 | #line 15263 "configure" | |
15263 | #include "confdefs.h" | |
15264 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15265 | /* We use char because int might match the return type of a gcc2 | |
15266 | builtin and then its argument prototype would still apply. */ | |
15267 | char remove(); | |
15268 | ||
15269 | int main() { | |
15270 | remove() | |
15271 | ; return 0; } | |
15272 | EOF | |
15273 | if { (eval echo configure:15274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15274 | rm -rf conftest* | |
15275 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15276 | else | |
15277 | echo "configure: failed program was:" >&5 | |
15278 | cat conftest.$ac_ext >&5 | |
15279 | rm -rf conftest* | |
15280 | eval "ac_cv_lib_$ac_lib_var=no" | |
15281 | fi | |
15282 | rm -f conftest* | |
15283 | LIBS="$ac_save_LIBS" | |
15284 | ||
15285 | fi | |
15286 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15287 | echo "$ac_t""yes" 1>&6 | |
15288 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
15289 | else | |
15290 | echo "$ac_t""no" 1>&6 | |
15291 | fi | |
15292 | ||
15293 | fi | |
15294 | ||
15295 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
15296 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
15297 | echo "configure:15298: checking for shmat" >&5 | |
15298 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then | |
15299 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15300 | else | |
15301 | cat > conftest.$ac_ext <<EOF | |
15302 | #line 15303 "configure" | |
15303 | #include "confdefs.h" | |
15304 | /* System header to define __stub macros and hopefully few prototypes, | |
15305 | which can conflict with char shmat(); below. */ | |
15306 | #include <assert.h> | |
15307 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15308 | /* We use char because int might match the return type of a gcc2 | |
15309 | builtin and then its argument prototype would still apply. */ | |
15310 | char shmat(); | |
15311 | ||
15312 | int main() { | |
15313 | ||
15314 | /* The GNU C library defines this for functions which it implements | |
15315 | to always fail with ENOSYS. Some functions are actually named | |
15316 | something starting with __ and the normal name is an alias. */ | |
15317 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
15318 | choke me | |
15319 | #else | |
15320 | shmat(); | |
15321 | #endif | |
15322 | ||
15323 | ; return 0; } | |
15324 | EOF | |
15325 | if { (eval echo configure:15326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15326 | rm -rf conftest* | |
15327 | eval "ac_cv_func_shmat=yes" | |
15328 | else | |
15329 | echo "configure: failed program was:" >&5 | |
15330 | cat conftest.$ac_ext >&5 | |
15331 | rm -rf conftest* | |
15332 | eval "ac_cv_func_shmat=no" | |
15333 | fi | |
15334 | rm -f conftest* | |
15335 | fi | |
15336 | ||
15337 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
15338 | echo "$ac_t""yes" 1>&6 | |
15339 | : | |
15340 | else | |
15341 | echo "$ac_t""no" 1>&6 | |
15342 | fi | |
15343 | ||
15344 | if test $ac_cv_func_shmat = no; then | |
15345 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
15346 | echo "configure:15347: checking for shmat in -lipc" >&5 | |
15347 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` | |
15348 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15349 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15350 | else | |
15351 | ac_save_LIBS="$LIBS" | |
15352 | LIBS="-lipc $LIBS" | |
15353 | cat > conftest.$ac_ext <<EOF | |
15354 | #line 15355 "configure" | |
15355 | #include "confdefs.h" | |
15356 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15357 | /* We use char because int might match the return type of a gcc2 | |
15358 | builtin and then its argument prototype would still apply. */ | |
15359 | char shmat(); | |
15360 | ||
15361 | int main() { | |
15362 | shmat() | |
15363 | ; return 0; } | |
15364 | EOF | |
15365 | if { (eval echo configure:15366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15366 | rm -rf conftest* | |
15367 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15368 | else | |
15369 | echo "configure: failed program was:" >&5 | |
15370 | cat conftest.$ac_ext >&5 | |
15371 | rm -rf conftest* | |
15372 | eval "ac_cv_lib_$ac_lib_var=no" | |
15373 | fi | |
15374 | rm -f conftest* | |
15375 | LIBS="$ac_save_LIBS" | |
15376 | ||
15377 | fi | |
15378 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15379 | echo "$ac_t""yes" 1>&6 | |
15380 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
15381 | else | |
15382 | echo "$ac_t""no" 1>&6 | |
15383 | fi | |
15384 | ||
15385 | fi | |
15386 | fi | |
15387 | ||
15388 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
15389 | ac_save_LDFLAGS="$LDFLAGS" | |
15390 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
15391 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
15392 | # check for ICE first), but we must link in the order -lSM -lICE or | |
15393 | # we get undefined symbols. So assume we have SM if we have ICE. | |
15394 | # These have to be linked with before -lX11, unlike the other | |
15395 | # libraries we check for below, so use a different variable. | |
15396 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
15397 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
15398 | echo "configure:15399: checking for IceConnectionNumber in -lICE" >&5 | |
15399 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` | |
15400 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15401 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15402 | else | |
15403 | ac_save_LIBS="$LIBS" | |
15404 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
15405 | cat > conftest.$ac_ext <<EOF | |
15406 | #line 15407 "configure" | |
15407 | #include "confdefs.h" | |
15408 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15409 | /* We use char because int might match the return type of a gcc2 | |
15410 | builtin and then its argument prototype would still apply. */ | |
15411 | char IceConnectionNumber(); | |
15412 | ||
15413 | int main() { | |
15414 | IceConnectionNumber() | |
15415 | ; return 0; } | |
15416 | EOF | |
15417 | if { (eval echo configure:15418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15418 | rm -rf conftest* | |
15419 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15420 | else | |
15421 | echo "configure: failed program was:" >&5 | |
15422 | cat conftest.$ac_ext >&5 | |
15423 | rm -rf conftest* | |
15424 | eval "ac_cv_lib_$ac_lib_var=no" | |
15425 | fi | |
15426 | rm -f conftest* | |
15427 | LIBS="$ac_save_LIBS" | |
15428 | ||
15429 | fi | |
15430 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15431 | echo "$ac_t""yes" 1>&6 | |
15432 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
15433 | else | |
15434 | echo "$ac_t""no" 1>&6 | |
15435 | fi | |
15436 | ||
15437 | LDFLAGS="$ac_save_LDFLAGS" | |
15438 | ||
15439 | fi | |
15440 | ||
15441 | ||
15442 | if test "$no_x" = "yes"; then | |
15443 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
15444 | fi | |
15445 | ||
15446 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` | |
15447 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
15448 | AFMINSTALL=afminstall | |
15449 | COMPILED_X_PROGRAM=0 | |
15450 | ||
15451 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
15452 | echo "configure:15453: checking for Motif/Lesstif headers" >&5 | |
15453 | ||
15454 | ac_find_includes= | |
15455 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
15456 | do | |
15457 | if test -f "$ac_dir/Xm/Xm.h"; then | |
15458 | ac_find_includes=$ac_dir | |
15459 | break | |
15460 | fi | |
15461 | done | |
15462 | ||
15463 | if test "$ac_find_includes" != "" ; then | |
15464 | echo "$ac_t""found in $ac_find_includes" 1>&6 | |
15465 | ||
15466 | if test "x$ac_find_includes" = "x/usr/include"; then | |
15467 | ac_path_to_include="" | |
15468 | else | |
15469 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
15470 | result=$? | |
15471 | if test $result = 0; then | |
15472 | ac_path_to_include="" | |
15473 | else | |
15474 | ac_path_to_include=" -I$ac_find_includes" | |
15475 | fi | |
15476 | fi | |
15477 | ||
15478 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
15479 | else | |
15480 | cat > conftest.$ac_ext <<EOF | |
15481 | #line 15482 "configure" | |
15482 | #include "confdefs.h" | |
15483 | ||
15484 | #include <Xm/Xm.h> | |
15485 | ||
15486 | int main() { | |
15487 | ||
15488 | int version; | |
15489 | version = xmUseVersion; | |
15490 | ||
15491 | ; return 0; } | |
15492 | EOF | |
15493 | if { (eval echo configure:15494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15494 | rm -rf conftest* | |
15495 | ||
15496 | echo "$ac_t""found in default search path" 1>&6 | |
15497 | COMPILED_X_PROGRAM=1 | |
15498 | ||
15499 | else | |
15500 | echo "configure: failed program was:" >&5 | |
15501 | cat conftest.$ac_ext >&5 | |
15502 | rm -rf conftest* | |
15503 | ||
15504 | echo "$ac_t""no" 1>&6 | |
15505 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
15506 | ||
15507 | ||
15508 | fi | |
15509 | rm -f conftest* | |
15510 | fi | |
15511 | ||
15512 | if test "$COMPILED_X_PROGRAM" = 0; then | |
15513 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
15514 | echo "configure:15515: checking for Motif/Lesstif library" >&5 | |
15515 | ||
15516 | ac_find_libraries= | |
15517 | for ac_dir in $SEARCH_LIB /usr/lib; | |
15518 | do | |
15519 | for ac_extension in a so sl dylib; do | |
15520 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
15521 | ac_find_libraries=$ac_dir | |
15522 | break 2 | |
15523 | fi | |
15524 | done | |
15525 | done | |
15526 | ||
15527 | if test "$ac_find_libraries" != "" ; then | |
15528 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
15529 | ||
15530 | ||
15531 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
15532 | result=$? | |
15533 | if test $result = 0; then | |
15534 | ac_path_to_link="" | |
15535 | else | |
15536 | ac_path_to_link=" -L$ac_find_libraries" | |
15537 | fi | |
15538 | ||
15539 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
15540 | else | |
15541 | save_CFLAGS=$CFLAGS | |
15542 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15543 | ||
15544 | cat > conftest.$ac_ext <<EOF | |
15545 | #line 15546 "configure" | |
15546 | #include "confdefs.h" | |
15547 | ||
15548 | #include <Xm/Xm.h> | |
15549 | ||
15550 | int main() { | |
15551 | ||
15552 | int version; | |
15553 | version = xmUseVersion; | |
15554 | ||
15555 | ; return 0; } | |
15556 | EOF | |
15557 | if { (eval echo configure:15558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15558 | rm -rf conftest* | |
15559 | ||
15560 | echo "$ac_t""found in default search path" 1>&6 | |
15561 | COMPILED_X_PROGRAM=1 | |
15562 | ||
15563 | else | |
15564 | echo "configure: failed program was:" >&5 | |
15565 | cat conftest.$ac_ext >&5 | |
15566 | rm -rf conftest* | |
15567 | ||
15568 | echo "$ac_t""no" 1>&6 | |
15569 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
15570 | ||
15571 | ||
15572 | fi | |
15573 | rm -f conftest* | |
15574 | ||
15575 | CFLAGS=$save_CFLAGS | |
15576 | fi | |
15577 | fi | |
15578 | ||
15579 | xpm_link= | |
15580 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
15581 | echo "configure:15582: checking for Xpm library" >&5 | |
15582 | ||
15583 | ac_find_libraries= | |
15584 | for ac_dir in $SEARCH_LIB /usr/lib; | |
15585 | do | |
15586 | for ac_extension in a so sl dylib; do | |
15587 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
15588 | ac_find_libraries=$ac_dir | |
15589 | break 2 | |
15590 | fi | |
15591 | done | |
15592 | done | |
15593 | ||
15594 | if test "$ac_find_libraries" != "" ; then | |
15595 | ||
15596 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
15597 | result=$? | |
15598 | if test $result = 0; then | |
15599 | ac_path_to_link="" | |
15600 | else | |
15601 | ac_path_to_link=" -L$ac_find_libraries" | |
15602 | fi | |
15603 | ||
15604 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
15605 | ||
15606 | xpm_link=" -lXpm" | |
15607 | cat >> confdefs.h <<\EOF | |
15608 | #define wxHAVE_LIB_XPM 1 | |
15609 | EOF | |
15610 | ||
15611 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
15612 | else | |
15613 | save_CFLAGS=$CFLAGS | |
15614 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15615 | ||
15616 | cat > conftest.$ac_ext <<EOF | |
15617 | #line 15618 "configure" | |
15618 | #include "confdefs.h" | |
15619 | ||
15620 | #include <X11/xpm.h> | |
15621 | ||
15622 | int main() { | |
15623 | ||
15624 | int version; | |
15625 | version = XpmLibraryVersion(); | |
15626 | ||
15627 | ; return 0; } | |
15628 | EOF | |
15629 | if { (eval echo configure:15630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15630 | rm -rf conftest* | |
15631 | ||
15632 | xpm_link=" -lXpm" | |
15633 | cat >> confdefs.h <<\EOF | |
15634 | #define wxHAVE_LIB_XPM 1 | |
15635 | EOF | |
15636 | ||
15637 | echo "$ac_t""found in default search path" 1>&6 | |
15638 | COMPILED_X_PROGRAM=0 | |
15639 | ||
15640 | else | |
15641 | echo "configure: failed program was:" >&5 | |
15642 | cat conftest.$ac_ext >&5 | |
15643 | rm -rf conftest* | |
15644 | ||
15645 | echo "$ac_t""no" 1>&6 | |
15646 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
15647 | ||
15648 | ||
15649 | fi | |
15650 | rm -f conftest* | |
15651 | ||
15652 | CFLAGS=$save_CFLAGS | |
15653 | fi | |
15654 | ||
15655 | echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6 | |
15656 | echo "configure:15657: checking if we need -lXp and/or -lSM -lICE" >&5 | |
15657 | libp_link="" | |
15658 | libsm_ice_link="" | |
15659 | libs_found=0 | |
15660 | for libp in "" " -lXp"; do | |
15661 | if test "$libs_found" = "0"; then | |
15662 | for libsm_ice in " -lSM -lICE"; do | |
15663 | if test "$libs_found" = "0"; then | |
15664 | save_LIBS="$LIBS" | |
15665 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
15666 | save_CFLAGS=$CFLAGS | |
15667 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15668 | ||
15669 | cat > conftest.$ac_ext <<EOF | |
15670 | #line 15671 "configure" | |
15671 | #include "confdefs.h" | |
15672 | ||
15673 | #include <Xm/Xm.h> | |
15674 | #include <Xm/List.h> | |
15675 | ||
15676 | int main() { | |
15677 | ||
15678 | XmString string = NULL; | |
15679 | Widget w = NULL; | |
15680 | int position = 0; | |
15681 | XmListAddItem(w, string, position); | |
15682 | ||
15683 | ; return 0; } | |
15684 | EOF | |
15685 | if { (eval echo configure:15686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15686 | rm -rf conftest* | |
15687 | ||
15688 | libp_link="$libp" | |
15689 | libsm_ice_link="$libsm_ice" | |
15690 | echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6 | |
15691 | libs_found=1 | |
15692 | ||
15693 | else | |
15694 | echo "configure: failed program was:" >&5 | |
15695 | cat conftest.$ac_ext >&5 | |
15696 | rm -rf conftest* | |
15697 | ||
15698 | ||
15699 | fi | |
15700 | rm -f conftest* | |
15701 | ||
15702 | LIBS="$save_LIBS" | |
15703 | CFLAGS=$save_CFLAGS | |
15704 | fi | |
15705 | done | |
15706 | fi | |
15707 | done | |
15708 | ||
15709 | if test "$libs_found" = "0"; then | |
15710 | echo "$ac_t""can't find the right libraries" 1>&6 | |
15711 | { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; } | |
15712 | fi | |
15713 | ||
15714 | save_CFLAGS=$CFLAGS | |
15715 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15716 | echo $ac_n "checking for Motif 2""... $ac_c" 1>&6 | |
15717 | echo "configure:15718: checking for Motif 2" >&5 | |
15718 | cat > conftest.$ac_ext <<EOF | |
15719 | #line 15720 "configure" | |
15720 | #include "confdefs.h" | |
15721 | ||
15722 | #include <Xm/Xm.h> | |
15723 | ||
15724 | int main() { | |
15725 | ||
15726 | #if XmVersion < 2000 | |
15727 | #error "Not Motif 2" | |
15728 | #endif | |
15729 | ||
15730 | ; return 0; } | |
15731 | EOF | |
15732 | if { (eval echo configure:15733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15733 | rm -rf conftest* | |
15734 | ||
15735 | cat >> confdefs.h <<\EOF | |
15736 | #define __WXMOTIF20__ 1 | |
15737 | EOF | |
15738 | ||
15739 | echo "$ac_t""found" 1>&6 | |
15740 | ||
15741 | else | |
15742 | echo "configure: failed program was:" >&5 | |
15743 | cat conftest.$ac_ext >&5 | |
15744 | rm -rf conftest* | |
15745 | ||
15746 | cat >> confdefs.h <<\EOF | |
15747 | #define __WXMOTIF20__ 0 | |
15748 | EOF | |
15749 | ||
15750 | echo "$ac_t""not found" 1>&6 | |
15751 | ||
15752 | fi | |
15753 | rm -f conftest* | |
15754 | CFLAGS=$save_CFLAGS | |
15755 | ||
15756 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
15757 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" | |
15758 | TOOLKIT=MOTIF | |
15759 | GUIDIST=MOTIF_DIST | |
15760 | fi | |
15761 | ||
15762 | if test "$wxUSE_MAC" = 1; then | |
15763 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" | |
15764 | ||
15765 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" | |
15766 | TOOLKIT=MAC | |
15767 | GUIDIST=MACX_DIST | |
15768 | fi | |
15769 | ||
15770 | if test "$wxUSE_PM" = 1; then | |
15771 | TOOLKIT=PM | |
15772 | GUIDIST=GTK_DIST | |
15773 | echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2 | |
15774 | wxUSE_PROLOGIO="yes" | |
15775 | wxUSE_RESOURCES="yes" | |
15776 | echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2 | |
15777 | wxUSE_THREADS="no" | |
15778 | fi | |
15779 | ||
15780 | if test "$TOOLKIT" = "PM" ; then | |
15781 | TOOLKIT_DIR="os2" | |
15782 | else | |
15783 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
15784 | fi | |
15785 | ||
15786 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
15787 | ||
15788 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
15789 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
15790 | ||
15791 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
15792 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
15793 | ||
15794 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
15795 | if test "$wxUSE_X11" = 1; then | |
15796 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
15797 | else | |
15798 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
15799 | fi | |
15800 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
15801 | WIDGET_SET=univ | |
15802 | else | |
15803 | ALL_OBJECTS="\$(GUIOBJS)" | |
15804 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15805 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15806 | fi | |
15807 | ||
15808 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
15809 | ||
15810 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
15811 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
15812 | fi | |
15813 | ||
15814 | if test "$wxUSE_HTML" = "yes"; then | |
15815 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
15816 | fi | |
15817 | ||
15818 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
15819 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
15820 | fi | |
15821 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
15822 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
15823 | fi | |
15824 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
15825 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
15826 | fi | |
15827 | ||
15828 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
15829 | DISTDIR="wx\$(TOOLKIT)" | |
15830 | else | |
15831 | USE_GUI=0 | |
15832 | ||
15833 | TOOLKIT_DIR="base" | |
15834 | ||
15835 | if test "$USE_WIN32" = 1 ; then | |
15836 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
15837 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
15838 | ||
15839 | TOOLKIT="MSW" | |
15840 | else | |
15841 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
15842 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
15843 | fi | |
15844 | ||
15845 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15846 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15847 | ||
15848 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
15849 | ||
15850 | GUIDIST="BASE_DIST" | |
15851 | DISTDIR="wxBase" | |
15852 | fi | |
15853 | ||
15854 | ||
15855 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then | |
15856 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
15857 | fi | |
15858 | ||
15859 | if test "$wxUSE_REGEX" = "builtin" ; then | |
15860 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
15861 | fi | |
15862 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
15863 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
15864 | fi | |
15865 | ||
15866 | ||
15867 | if test "$wxUSE_OPENGL" = "yes"; then | |
15868 | if test "$wxUSE_MAC" = 1; then | |
15869 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
15870 | elif test "$wxUSE_MSW" = 1; then | |
15871 | OPENGL_LIBS="-lopengl32 -lglu32" | |
15872 | else | |
15873 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
15874 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
15875 | echo "configure:15876: checking for GL/gl.h" >&5 | |
15876 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
15877 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15878 | else | |
15879 | cat > conftest.$ac_ext <<EOF | |
15880 | #line 15881 "configure" | |
15881 | #include "confdefs.h" | |
15882 | #include <GL/gl.h> | |
15883 | EOF | |
15884 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
15885 | { (eval echo configure:15886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
15886 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
15887 | if test -z "$ac_err"; then | |
15888 | rm -rf conftest* | |
15889 | eval "ac_cv_header_$ac_safe=yes" | |
15890 | else | |
15891 | echo "$ac_err" >&5 | |
15892 | echo "configure: failed program was:" >&5 | |
15893 | cat conftest.$ac_ext >&5 | |
15894 | rm -rf conftest* | |
15895 | eval "ac_cv_header_$ac_safe=no" | |
15896 | fi | |
15897 | rm -f conftest* | |
15898 | fi | |
15899 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
15900 | echo "$ac_t""yes" 1>&6 | |
15901 | ||
15902 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
15903 | echo "configure:15904: checking for -lGL" >&5 | |
15904 | ||
15905 | ac_find_libraries= | |
15906 | for ac_dir in $SEARCH_LIB /usr/lib; | |
15907 | do | |
15908 | for ac_extension in a so sl dylib; do | |
15909 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
15910 | ac_find_libraries=$ac_dir | |
15911 | break 2 | |
15912 | fi | |
15913 | done | |
15914 | done | |
15915 | ||
15916 | if test "$ac_find_libraries" != "" ; then | |
15917 | ||
15918 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
15919 | result=$? | |
15920 | if test $result = 0; then | |
15921 | ac_path_to_link="" | |
15922 | else | |
15923 | ac_path_to_link=" -L$ac_find_libraries" | |
15924 | fi | |
15925 | ||
15926 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
15927 | LDFLAGS_GL="$LDFLAGS" | |
15928 | else | |
15929 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15930 | fi | |
15931 | OPENGL_LIBS="-lGL -lGLU" | |
15932 | echo "$ac_t""yes" 1>&6 | |
15933 | else | |
15934 | echo "$ac_t""no" 1>&6 | |
15935 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
15936 | echo "configure:15937: checking for -lMesaGL" >&5 | |
15937 | ||
15938 | ac_find_libraries= | |
15939 | for ac_dir in $SEARCH_LIB /usr/lib; | |
15940 | do | |
15941 | for ac_extension in a so sl dylib; do | |
15942 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
15943 | ac_find_libraries=$ac_dir | |
15944 | break 2 | |
15945 | fi | |
15946 | done | |
15947 | done | |
15948 | ||
15949 | if test "$ac_find_libraries" != "" ; then | |
15950 | ||
15951 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
15952 | result=$? | |
15953 | if test $result = 0; then | |
15954 | ac_path_to_link="" | |
15955 | else | |
15956 | ac_path_to_link=" -L$ac_find_libraries" | |
15957 | fi | |
15958 | ||
15959 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15960 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
15961 | echo "$ac_t""yes" 1>&6 | |
15962 | else | |
15963 | echo "$ac_t""no" 1>&6 | |
15964 | fi | |
15965 | fi | |
15966 | ||
15967 | else | |
15968 | echo "$ac_t""no" 1>&6 | |
15969 | fi | |
15970 | ||
15971 | ||
15972 | if test "x$OPENGL_LIBS" = "x"; then | |
15973 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
15974 | fi | |
15975 | fi | |
15976 | ||
15977 | if test "$wxUSE_OPENGL" = "yes"; then | |
15978 | cat >> confdefs.h <<\EOF | |
15979 | #define wxUSE_OPENGL 1 | |
15980 | EOF | |
15981 | ||
15982 | cat >> confdefs.h <<\EOF | |
15983 | #define wxUSE_GLCANVAS 1 | |
15984 | EOF | |
15985 | ||
15986 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
15987 | fi | |
15988 | fi | |
15989 | ||
15990 | if test -z "$TOOLKIT_VPATH" ; then | |
15991 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
15992 | fi | |
15993 | ||
15994 | if test -n "$TOOLKIT" ; then | |
15995 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
15996 | fi | |
15997 | ||
15998 | lib_unicode_suffix= | |
15999 | if test "$wxUSE_UNICODE" = "yes"; then | |
16000 | lib_unicode_suffix=u | |
16001 | fi | |
16002 | ||
16003 | lib_debug_suffix= | |
16004 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
16005 | lib_debug_suffix=d | |
16006 | fi | |
16007 | ||
16008 | WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` | |
16009 | ||
16010 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
16011 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
16012 | ||
16013 | if test "$cross_compiling" = "yes"; then | |
16014 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
16015 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
16016 | fi | |
16017 | ||
16018 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
16019 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
16020 | WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" | |
16021 | ||
16022 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
16023 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
16024 | ||
16025 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
16026 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
16027 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
16028 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16029 | ||
16030 | case "${host}" in | |
16031 | *-*-cygwin* | *-*-mingw32* ) | |
16032 | ||
16033 | ||
16034 | ||
16035 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then | |
16036 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
16037 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
16038 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
16039 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16040 | else | |
16041 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
16042 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16043 | fi | |
16044 | ;; | |
16045 | ||
16046 | *-*-darwin* ) | |
16047 | ||
16048 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
16049 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
16050 | ||
16051 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
16052 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
16053 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
16054 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16055 | ||
16056 | if test "$wxUSE_MAC" = 1; then | |
16057 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" | |
16058 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
16059 | fi | |
16060 | ;; | |
16061 | esac | |
16062 | ||
16063 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
16064 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
16065 | ||
16066 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
16067 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
16068 | ||
16069 | if test "$wxUSE_OPENGL" = "yes"; then | |
16070 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
16071 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
16072 | fi | |
16073 | ||
16074 | ||
16075 | ||
16076 | if test "$wxUSE_SHARED" = "yes"; then | |
16077 | case "${host}" in | |
16078 | *-pc-os2_emx | *-pc-os2-emx | \ | |
16079 | *-pc-msdosdjgpp ) | |
16080 | wxUSE_SHARED=no | |
16081 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 | |
16082 | ;; | |
16083 | esac | |
16084 | fi | |
16085 | ||
16086 | if test "$wxUSE_SHARED" = "yes"; then | |
16087 | ||
16088 | if test "$wxUSE_OPENGL" = "yes"; then | |
16089 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
16090 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
16091 | else | |
16092 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
16093 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
16094 | fi | |
16095 | ||
16096 | if test "$GCC" = "yes"; then | |
16097 | PIC_FLAG="-fPIC" | |
16098 | fi | |
16099 | ||
16100 | ||
16101 | ||
16102 | found_versioning=no | |
16103 | ||
16104 | ||
16105 | if test $found_versioning = no ; then | |
16106 | echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6 | |
16107 | echo "configure:16108: checking if the linker accepts --version-script" >&5 | |
16108 | if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then | |
16109 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16110 | else | |
16111 | ||
16112 | echo "VER_1 { *; };" >conftest.sym | |
16113 | echo "int main() { return 0; }" >conftest.cpp | |
16114 | ||
16115 | if { ac_try=' | |
16116 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
16117 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then | |
16118 | if test -s conftest.stderr ; then | |
16119 | wx_cv_version_script=no | |
16120 | else | |
16121 | wx_cv_version_script=yes | |
16122 | fi | |
16123 | else | |
16124 | wx_cv_version_script=no | |
16125 | fi | |
16126 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
16127 | ||
16128 | fi | |
16129 | ||
16130 | echo "$ac_t""$wx_cv_version_script" 1>&6 | |
16131 | if test $wx_cv_version_script = yes ; then | |
16132 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script" | |
16133 | fi | |
16134 | fi | |
16135 | ||
16136 | ||
16137 | SHARED_LD="${CXX} -shared -o" | |
16138 | ||
16139 | case "${host}" in | |
16140 | *-hp-hpux* ) | |
16141 | if test "$GCC" = "yes"; then | |
16142 | SHARED_LD="${CXX} -shared ${PIC_FLAG} -o" | |
16143 | else | |
16144 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
16145 | ||
16146 | SHARED_LD="${CXX} -b -o" | |
16147 | PIC_FLAG="+Z" | |
16148 | fi | |
16149 | ||
16150 | if test "$wxUSE_OPENGL" = "yes"; then | |
16151 | WX_ALL_INSTALLED="preinstall_gl" | |
16152 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
16153 | else | |
16154 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
16155 | fi | |
16156 | ;; | |
16157 | ||
16158 | *-*-linux* ) | |
16159 | if test "$GCC" != "yes"; then | |
16160 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
16161 | echo "configure:16162: checking for Intel compiler" >&5 | |
16162 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then | |
16163 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16164 | else | |
16165 | ||
16166 | cat > conftest.$ac_ext <<EOF | |
16167 | #line 16168 "configure" | |
16168 | #include "confdefs.h" | |
16169 | ||
16170 | int main() { | |
16171 | ||
16172 | #ifndef __INTEL_COMPILER | |
16173 | #error Not icc | |
16174 | #endif | |
16175 | ||
16176 | ; return 0; } | |
16177 | EOF | |
16178 | if { (eval echo configure:16179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16179 | rm -rf conftest* | |
16180 | wx_cv_prog_icc=yes | |
16181 | else | |
16182 | echo "configure: failed program was:" >&5 | |
16183 | cat conftest.$ac_ext >&5 | |
16184 | rm -rf conftest* | |
16185 | wx_cv_prog_icc=no | |
16186 | ||
16187 | fi | |
16188 | rm -f conftest* | |
16189 | ||
16190 | fi | |
16191 | ||
16192 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
16193 | if test "$wx_cv_prog_icc" = "yes"; then | |
16194 | PIC_FLAG="-KPIC" | |
16195 | fi | |
16196 | fi | |
16197 | ||
16198 | if test "$wxUSE_SONAME" = "yes" ; then | |
16199 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
16200 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
16201 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
16202 | fi | |
16203 | ;; | |
16204 | ||
16205 | *-*-solaris2* ) | |
16206 | if test "$GCC" = yes ; then | |
16207 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
16208 | else | |
16209 | SHARED_LD="${CXX} -G -o" | |
16210 | PIC_FLAG="-KPIC" | |
16211 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
16212 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
16213 | fi | |
16214 | ;; | |
16215 | ||
16216 | *-*-darwin* ) | |
16217 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL" | |
16218 | CFLAGS="$CFLAGS -fno-common" | |
16219 | CXXFLAGS="$CXXFLAGS -fno-common" | |
16220 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" | |
16221 | PIC_FLAG="-dynamic -fPIC" | |
16222 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}" | |
16223 | SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}" | |
16224 | ;; | |
16225 | ||
16226 | *-*-aix* ) | |
16227 | if test "$GCC" != "yes"; then | |
16228 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
16229 | set dummy makeC++SharedLib; ac_word=$2 | |
16230 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
16231 | echo "configure:16232: checking for $ac_word" >&5 | |
16232 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then | |
16233 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16234 | else | |
16235 | if test -n "$AIX_CXX_LD"; then | |
16236 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
16237 | else | |
16238 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
16239 | ac_dummy="$PATH" | |
16240 | for ac_dir in $ac_dummy; do | |
16241 | test -z "$ac_dir" && ac_dir=. | |
16242 | if test -f $ac_dir/$ac_word; then | |
16243 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
16244 | break | |
16245 | fi | |
16246 | done | |
16247 | IFS="$ac_save_ifs" | |
16248 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
16249 | fi | |
16250 | fi | |
16251 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" | |
16252 | if test -n "$AIX_CXX_LD"; then | |
16253 | echo "$ac_t""$AIX_CXX_LD" 1>&6 | |
16254 | else | |
16255 | echo "$ac_t""no" 1>&6 | |
16256 | fi | |
16257 | ||
16258 | ||
16259 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" | |
16260 | fi | |
16261 | ;; | |
16262 | ||
16263 | *-*-cygwin* | *-*-mingw32* ) | |
16264 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" | |
16265 | ||
16266 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
16267 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
16268 | ||
16269 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
16270 | ||
16271 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
16272 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
16273 | ||
16274 | if test "$wxUSE_OPENGL" = "yes"; then | |
16275 | LIBS="${LIBS} ${OPENGL_LIBS}" | |
16276 | fi | |
16277 | ;; | |
16278 | ||
16279 | *-*-beos* ) | |
16280 | SHARED_LD="${LD} -shared -o" | |
16281 | ;; | |
16282 | ||
16283 | *-*-irix* ) | |
16284 | if test "$GCC" != "yes"; then | |
16285 | PIC_FLAG="-KPIC" | |
16286 | fi | |
16287 | ;; | |
16288 | ||
16289 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
16290 | *-*-sunos4* | \ | |
16291 | *-*-osf* | \ | |
16292 | *-*-dgux5* | \ | |
16293 | *-*-sysv5* ) | |
16294 | ;; | |
16295 | ||
16296 | *) | |
16297 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } | |
16298 | esac | |
16299 | ||
16300 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
16301 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
16302 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
16303 | fi | |
16304 | ||
16305 | WX_TARGET_LIBRARY_TYPE="so" | |
16306 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
16307 | fi | |
16308 | ||
16309 | if test "$wxUSE_SHARED" = "no"; then | |
16310 | ||
16311 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
16312 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
16313 | fi | |
16314 | ||
16315 | if test "$wxUSE_MAC" = 1; then | |
16316 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
16317 | fi | |
16318 | ||
16319 | if test "$wxUSE_OPENGL" = "yes"; then | |
16320 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
16321 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
16322 | else | |
16323 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
16324 | fi | |
16325 | ||
16326 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
16327 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
16328 | ||
16329 | WX_TARGET_LIBRARY_TYPE="a" | |
16330 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
16331 | ||
16332 | STATIC_FLAG="yes" | |
16333 | else | |
16334 | STATIC_FLAG="no" | |
16335 | fi | |
16336 | ||
16337 | MACRESCOMP="@#" | |
16338 | MACSETFILE="@#" | |
16339 | MACRESWXCONFIG="#" | |
16340 | if test "$wxUSE_MAC" = 1; then | |
16341 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
16342 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
16343 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
16344 | # Extract the first word of "Rez", so it can be a program name with args. | |
16345 | set dummy Rez; ac_word=$2 | |
16346 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
16347 | echo "configure:16348: checking for $ac_word" >&5 | |
16348 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then | |
16349 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16350 | else | |
16351 | if test -n "$RESCOMP"; then | |
16352 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
16353 | else | |
16354 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
16355 | ac_dummy="$PATH" | |
16356 | for ac_dir in $ac_dummy; do | |
16357 | test -z "$ac_dir" && ac_dir=. | |
16358 | if test -f $ac_dir/$ac_word; then | |
16359 | ac_cv_prog_RESCOMP="Rez" | |
16360 | break | |
16361 | fi | |
16362 | done | |
16363 | IFS="$ac_save_ifs" | |
16364 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
16365 | fi | |
16366 | fi | |
16367 | RESCOMP="$ac_cv_prog_RESCOMP" | |
16368 | if test -n "$RESCOMP"; then | |
16369 | echo "$ac_t""$RESCOMP" 1>&6 | |
16370 | else | |
16371 | echo "$ac_t""no" 1>&6 | |
16372 | fi | |
16373 | ||
16374 | # Extract the first word of "DeRez", so it can be a program name with args. | |
16375 | set dummy DeRez; ac_word=$2 | |
16376 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
16377 | echo "configure:16378: checking for $ac_word" >&5 | |
16378 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then | |
16379 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16380 | else | |
16381 | if test -n "$DEREZ"; then | |
16382 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
16383 | else | |
16384 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
16385 | ac_dummy="$PATH" | |
16386 | for ac_dir in $ac_dummy; do | |
16387 | test -z "$ac_dir" && ac_dir=. | |
16388 | if test -f $ac_dir/$ac_word; then | |
16389 | ac_cv_prog_DEREZ="DeRez" | |
16390 | break | |
16391 | fi | |
16392 | done | |
16393 | IFS="$ac_save_ifs" | |
16394 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
16395 | fi | |
16396 | fi | |
16397 | DEREZ="$ac_cv_prog_DEREZ" | |
16398 | if test -n "$DEREZ"; then | |
16399 | echo "$ac_t""$DEREZ" 1>&6 | |
16400 | else | |
16401 | echo "$ac_t""no" 1>&6 | |
16402 | fi | |
16403 | ||
16404 | # Extract the first word of "SetFile", so it can be a program name with args. | |
16405 | set dummy SetFile; ac_word=$2 | |
16406 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
16407 | echo "configure:16408: checking for $ac_word" >&5 | |
16408 | if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then | |
16409 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16410 | else | |
16411 | if test -n "$SETFILE"; then | |
16412 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
16413 | else | |
16414 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
16415 | ac_dummy="$PATH" | |
16416 | for ac_dir in $ac_dummy; do | |
16417 | test -z "$ac_dir" && ac_dir=. | |
16418 | if test -f $ac_dir/$ac_word; then | |
16419 | ac_cv_prog_SETFILE="SetFile" | |
16420 | break | |
16421 | fi | |
16422 | done | |
16423 | IFS="$ac_save_ifs" | |
16424 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
16425 | fi | |
16426 | fi | |
16427 | SETFILE="$ac_cv_prog_SETFILE" | |
16428 | if test -n "$SETFILE"; then | |
16429 | echo "$ac_t""$SETFILE" 1>&6 | |
16430 | else | |
16431 | echo "$ac_t""no" 1>&6 | |
16432 | fi | |
16433 | ||
16434 | MACOSX_BUNDLE="bundle" | |
16435 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
16436 | MACSETFILE="\$(SETFILE)" | |
16437 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o" | |
16438 | else | |
16439 | if test "$wxUSE_PM" = 1; then | |
16440 | MACRESCOMP="emxbind -ep" | |
16441 | fi | |
16442 | fi | |
16443 | ||
16444 | ||
16445 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
16446 | echo "configure:16447: checking for ANSI C header files" >&5 | |
16447 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | |
16448 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16449 | else | |
16450 | cat > conftest.$ac_ext <<EOF | |
16451 | #line 16452 "configure" | |
16452 | #include "confdefs.h" | |
16453 | #include <stdlib.h> | |
16454 | #include <stdarg.h> | |
16455 | #include <string.h> | |
16456 | #include <float.h> | |
16457 | EOF | |
16458 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
16459 | { (eval echo configure:16460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
16460 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
16461 | if test -z "$ac_err"; then | |
16462 | rm -rf conftest* | |
16463 | ac_cv_header_stdc=yes | |
16464 | else | |
16465 | echo "$ac_err" >&5 | |
16466 | echo "configure: failed program was:" >&5 | |
16467 | cat conftest.$ac_ext >&5 | |
16468 | rm -rf conftest* | |
16469 | ac_cv_header_stdc=no | |
16470 | fi | |
16471 | rm -f conftest* | |
16472 | ||
16473 | if test $ac_cv_header_stdc = yes; then | |
16474 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
16475 | cat > conftest.$ac_ext <<EOF | |
16476 | #line 16477 "configure" | |
16477 | #include "confdefs.h" | |
16478 | #include <string.h> | |
16479 | EOF | |
16480 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16481 | egrep "memchr" >/dev/null 2>&1; then | |
16482 | : | |
16483 | else | |
16484 | rm -rf conftest* | |
16485 | ac_cv_header_stdc=no | |
16486 | fi | |
16487 | rm -f conftest* | |
16488 | ||
16489 | fi | |
16490 | ||
16491 | if test $ac_cv_header_stdc = yes; then | |
16492 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
16493 | cat > conftest.$ac_ext <<EOF | |
16494 | #line 16495 "configure" | |
16495 | #include "confdefs.h" | |
16496 | #include <stdlib.h> | |
16497 | EOF | |
16498 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16499 | egrep "free" >/dev/null 2>&1; then | |
16500 | : | |
16501 | else | |
16502 | rm -rf conftest* | |
16503 | ac_cv_header_stdc=no | |
16504 | fi | |
16505 | rm -f conftest* | |
16506 | ||
16507 | fi | |
16508 | ||
16509 | if test $ac_cv_header_stdc = yes; then | |
16510 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
16511 | if test "$cross_compiling" = yes; then | |
16512 | : | |
16513 | else | |
16514 | cat > conftest.$ac_ext <<EOF | |
16515 | #line 16516 "configure" | |
16516 | #include "confdefs.h" | |
16517 | #include <ctype.h> | |
16518 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
16519 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
16520 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
16521 | int main () { int i; for (i = 0; i < 256; i++) | |
16522 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
16523 | exit (0); } | |
16524 | ||
16525 | EOF | |
16526 | if { (eval echo configure:16527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
16527 | then | |
16528 | : | |
16529 | else | |
16530 | echo "configure: failed program was:" >&5 | |
16531 | cat conftest.$ac_ext >&5 | |
16532 | rm -fr conftest* | |
16533 | ac_cv_header_stdc=no | |
16534 | fi | |
16535 | rm -fr conftest* | |
16536 | fi | |
16537 | ||
16538 | fi | |
16539 | fi | |
16540 | ||
16541 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
16542 | if test $ac_cv_header_stdc = yes; then | |
16543 | cat >> confdefs.h <<\EOF | |
16544 | #define STDC_HEADERS 1 | |
16545 | EOF | |
16546 | ||
16547 | fi | |
16548 | ||
16549 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
16550 | echo "configure:16551: checking for mode_t" >&5 | |
16551 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then | |
16552 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16553 | else | |
16554 | cat > conftest.$ac_ext <<EOF | |
16555 | #line 16556 "configure" | |
16556 | #include "confdefs.h" | |
16557 | #include <sys/types.h> | |
16558 | #if STDC_HEADERS | |
16559 | #include <stdlib.h> | |
16560 | #include <stddef.h> | |
16561 | #endif | |
16562 | EOF | |
16563 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16564 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16565 | rm -rf conftest* | |
16566 | ac_cv_type_mode_t=yes | |
16567 | else | |
16568 | rm -rf conftest* | |
16569 | ac_cv_type_mode_t=no | |
16570 | fi | |
16571 | rm -f conftest* | |
16572 | ||
16573 | fi | |
16574 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
16575 | if test $ac_cv_type_mode_t = no; then | |
16576 | cat >> confdefs.h <<\EOF | |
16577 | #define mode_t int | |
16578 | EOF | |
16579 | ||
16580 | fi | |
16581 | ||
16582 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
16583 | echo "configure:16584: checking for off_t" >&5 | |
16584 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then | |
16585 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16586 | else | |
16587 | cat > conftest.$ac_ext <<EOF | |
16588 | #line 16589 "configure" | |
16589 | #include "confdefs.h" | |
16590 | #include <sys/types.h> | |
16591 | #if STDC_HEADERS | |
16592 | #include <stdlib.h> | |
16593 | #include <stddef.h> | |
16594 | #endif | |
16595 | EOF | |
16596 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16597 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16598 | rm -rf conftest* | |
16599 | ac_cv_type_off_t=yes | |
16600 | else | |
16601 | rm -rf conftest* | |
16602 | ac_cv_type_off_t=no | |
16603 | fi | |
16604 | rm -f conftest* | |
16605 | ||
16606 | fi | |
16607 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
16608 | if test $ac_cv_type_off_t = no; then | |
16609 | cat >> confdefs.h <<\EOF | |
16610 | #define off_t long | |
16611 | EOF | |
16612 | ||
16613 | fi | |
16614 | ||
16615 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
16616 | echo "configure:16617: checking for pid_t" >&5 | |
16617 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | |
16618 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16619 | else | |
16620 | cat > conftest.$ac_ext <<EOF | |
16621 | #line 16622 "configure" | |
16622 | #include "confdefs.h" | |
16623 | #include <sys/types.h> | |
16624 | #if STDC_HEADERS | |
16625 | #include <stdlib.h> | |
16626 | #include <stddef.h> | |
16627 | #endif | |
16628 | EOF | |
16629 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16630 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16631 | rm -rf conftest* | |
16632 | ac_cv_type_pid_t=yes | |
16633 | else | |
16634 | rm -rf conftest* | |
16635 | ac_cv_type_pid_t=no | |
16636 | fi | |
16637 | rm -f conftest* | |
16638 | ||
16639 | fi | |
16640 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
16641 | if test $ac_cv_type_pid_t = no; then | |
16642 | cat >> confdefs.h <<\EOF | |
16643 | #define pid_t int | |
16644 | EOF | |
16645 | ||
16646 | fi | |
16647 | ||
16648 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
16649 | echo "configure:16650: checking for size_t" >&5 | |
16650 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | |
16651 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16652 | else | |
16653 | cat > conftest.$ac_ext <<EOF | |
16654 | #line 16655 "configure" | |
16655 | #include "confdefs.h" | |
16656 | #include <sys/types.h> | |
16657 | #if STDC_HEADERS | |
16658 | #include <stdlib.h> | |
16659 | #include <stddef.h> | |
16660 | #endif | |
16661 | EOF | |
16662 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16663 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16664 | rm -rf conftest* | |
16665 | ac_cv_type_size_t=yes | |
16666 | else | |
16667 | rm -rf conftest* | |
16668 | ac_cv_type_size_t=no | |
16669 | fi | |
16670 | rm -f conftest* | |
16671 | ||
16672 | fi | |
16673 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
16674 | if test $ac_cv_type_size_t = no; then | |
16675 | cat >> confdefs.h <<\EOF | |
16676 | #define size_t unsigned | |
16677 | EOF | |
16678 | ||
16679 | fi | |
16680 | ||
16681 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
16682 | echo "configure:16683: checking for uid_t in sys/types.h" >&5 | |
16683 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then | |
16684 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16685 | else | |
16686 | cat > conftest.$ac_ext <<EOF | |
16687 | #line 16688 "configure" | |
16688 | #include "confdefs.h" | |
16689 | #include <sys/types.h> | |
16690 | EOF | |
16691 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16692 | egrep "uid_t" >/dev/null 2>&1; then | |
16693 | rm -rf conftest* | |
16694 | ac_cv_type_uid_t=yes | |
16695 | else | |
16696 | rm -rf conftest* | |
16697 | ac_cv_type_uid_t=no | |
16698 | fi | |
16699 | rm -f conftest* | |
16700 | ||
16701 | fi | |
16702 | ||
16703 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
16704 | if test $ac_cv_type_uid_t = no; then | |
16705 | cat >> confdefs.h <<\EOF | |
16706 | #define uid_t int | |
16707 | EOF | |
16708 | ||
16709 | cat >> confdefs.h <<\EOF | |
16710 | #define gid_t int | |
16711 | EOF | |
16712 | ||
16713 | fi | |
16714 | ||
16715 | ||
16716 | ||
16717 | ac_ext=C | |
16718 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16719 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16720 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16721 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16722 | cross_compiling=$ac_cv_prog_cxx_cross | |
16723 | ||
16724 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 | |
16725 | echo "configure:16726: checking if size_t is unsigned int" >&5 | |
16726 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then | |
16727 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16728 | else | |
16729 | cat > conftest.$ac_ext <<EOF | |
16730 | #line 16731 "configure" | |
16731 | #include "confdefs.h" | |
16732 | #include <stddef.h> | |
16733 | int main() { | |
16734 | ||
16735 | return 0; } | |
16736 | ||
16737 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
16738 | ||
16739 | int bar() { | |
16740 | ||
16741 | ; return 0; } | |
16742 | EOF | |
16743 | if { (eval echo configure:16744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16744 | rm -rf conftest* | |
16745 | wx_cv_size_t_is_uint=no | |
16746 | else | |
16747 | echo "configure: failed program was:" >&5 | |
16748 | cat conftest.$ac_ext >&5 | |
16749 | rm -rf conftest* | |
16750 | wx_cv_size_t_is_uint=yes | |
16751 | ||
16752 | fi | |
16753 | rm -f conftest* | |
16754 | ||
16755 | fi | |
16756 | ||
16757 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
16758 | ||
16759 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
16760 | cat >> confdefs.h <<\EOF | |
16761 | #define wxSIZE_T_IS_UINT 1 | |
16762 | EOF | |
16763 | ||
16764 | else | |
16765 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
16766 | echo "configure:16767: checking if size_t is unsigned long" >&5 | |
16767 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then | |
16768 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16769 | else | |
16770 | cat > conftest.$ac_ext <<EOF | |
16771 | #line 16772 "configure" | |
16772 | #include "confdefs.h" | |
16773 | #include <stddef.h> | |
16774 | int main() { | |
16775 | ||
16776 | return 0; } | |
16777 | ||
16778 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
16779 | ||
16780 | int bar() { | |
16781 | ||
16782 | ; return 0; } | |
16783 | EOF | |
16784 | if { (eval echo configure:16785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16785 | rm -rf conftest* | |
16786 | wx_cv_size_t_is_ulong=no | |
16787 | else | |
16788 | echo "configure: failed program was:" >&5 | |
16789 | cat conftest.$ac_ext >&5 | |
16790 | rm -rf conftest* | |
16791 | wx_cv_size_t_is_ulong=yes | |
16792 | ||
16793 | fi | |
16794 | rm -f conftest* | |
16795 | ||
16796 | fi | |
16797 | ||
16798 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
16799 | ||
16800 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
16801 | cat >> confdefs.h <<\EOF | |
16802 | #define wxSIZE_T_IS_ULONG 1 | |
16803 | EOF | |
16804 | ||
16805 | fi | |
16806 | fi | |
16807 | ||
16808 | ac_ext=c | |
16809 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16810 | ac_cpp='$CPP $CPPFLAGS' | |
16811 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16812 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16813 | cross_compiling=$ac_cv_prog_cc_cross | |
16814 | ||
16815 | ||
16816 | ||
16817 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 | |
16818 | echo "configure:16819: checking for pw_gecos in struct passwd" >&5 | |
16819 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then | |
16820 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16821 | else | |
16822 | ||
16823 | cat > conftest.$ac_ext <<EOF | |
16824 | #line 16825 "configure" | |
16825 | #include "confdefs.h" | |
16826 | #include <pwd.h> | |
16827 | int main() { | |
16828 | ||
16829 | char *p; | |
16830 | struct passwd *pw; | |
16831 | p = pw->pw_gecos; | |
16832 | ||
16833 | ; return 0; } | |
16834 | EOF | |
16835 | if { (eval echo configure:16836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16836 | rm -rf conftest* | |
16837 | ||
16838 | wx_cv_struct_pw_gecos=yes | |
16839 | ||
16840 | else | |
16841 | echo "configure: failed program was:" >&5 | |
16842 | cat conftest.$ac_ext >&5 | |
16843 | rm -rf conftest* | |
16844 | ||
16845 | wx_cv_struct_pw_gecos=no | |
16846 | ||
16847 | ||
16848 | fi | |
16849 | rm -f conftest* | |
16850 | ||
16851 | ||
16852 | fi | |
16853 | ||
16854 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
16855 | ||
16856 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
16857 | cat >> confdefs.h <<\EOF | |
16858 | #define HAVE_PW_GECOS 1 | |
16859 | EOF | |
16860 | ||
16861 | fi | |
16862 | ||
16863 | ||
16864 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
16865 | cat >> confdefs.h <<\EOF | |
16866 | #define wxUSE_WCHAR_T 1 | |
16867 | EOF | |
16868 | ||
16869 | ||
16870 | WCSLEN_FOUND=0 | |
16871 | WCHAR_LINK= | |
16872 | for ac_func in wcslen | |
16873 | do | |
16874 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16875 | echo "configure:16876: checking for $ac_func" >&5 | |
16876 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16877 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16878 | else | |
16879 | cat > conftest.$ac_ext <<EOF | |
16880 | #line 16881 "configure" | |
16881 | #include "confdefs.h" | |
16882 | /* System header to define __stub macros and hopefully few prototypes, | |
16883 | which can conflict with char $ac_func(); below. */ | |
16884 | #include <assert.h> | |
16885 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16886 | /* We use char because int might match the return type of a gcc2 | |
16887 | builtin and then its argument prototype would still apply. */ | |
16888 | char $ac_func(); | |
16889 | ||
16890 | int main() { | |
16891 | ||
16892 | /* The GNU C library defines this for functions which it implements | |
16893 | to always fail with ENOSYS. Some functions are actually named | |
16894 | something starting with __ and the normal name is an alias. */ | |
16895 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16896 | choke me | |
16897 | #else | |
16898 | $ac_func(); | |
16899 | #endif | |
16900 | ||
16901 | ; return 0; } | |
16902 | EOF | |
16903 | if { (eval echo configure:16904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16904 | rm -rf conftest* | |
16905 | eval "ac_cv_func_$ac_func=yes" | |
16906 | else | |
16907 | echo "configure: failed program was:" >&5 | |
16908 | cat conftest.$ac_ext >&5 | |
16909 | rm -rf conftest* | |
16910 | eval "ac_cv_func_$ac_func=no" | |
16911 | fi | |
16912 | rm -f conftest* | |
16913 | fi | |
16914 | ||
16915 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16916 | echo "$ac_t""yes" 1>&6 | |
16917 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16918 | cat >> confdefs.h <<EOF | |
16919 | #define $ac_tr_func 1 | |
16920 | EOF | |
16921 | WCSLEN_FOUND=1 | |
16922 | else | |
16923 | echo "$ac_t""no" 1>&6 | |
16924 | fi | |
16925 | done | |
16926 | ||
16927 | ||
16928 | if test "$WCSLEN_FOUND" = 0; then | |
16929 | if test "$TOOLKIT" = "MSW"; then | |
16930 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 | |
16931 | echo "configure:16932: checking for wcslen in -lmsvcrt" >&5 | |
16932 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` | |
16933 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16934 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16935 | else | |
16936 | ac_save_LIBS="$LIBS" | |
16937 | LIBS="-lmsvcrt $LIBS" | |
16938 | cat > conftest.$ac_ext <<EOF | |
16939 | #line 16940 "configure" | |
16940 | #include "confdefs.h" | |
16941 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16942 | /* We use char because int might match the return type of a gcc2 | |
16943 | builtin and then its argument prototype would still apply. */ | |
16944 | char wcslen(); | |
16945 | ||
16946 | int main() { | |
16947 | wcslen() | |
16948 | ; return 0; } | |
16949 | EOF | |
16950 | if { (eval echo configure:16951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16951 | rm -rf conftest* | |
16952 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16953 | else | |
16954 | echo "configure: failed program was:" >&5 | |
16955 | cat conftest.$ac_ext >&5 | |
16956 | rm -rf conftest* | |
16957 | eval "ac_cv_lib_$ac_lib_var=no" | |
16958 | fi | |
16959 | rm -f conftest* | |
16960 | LIBS="$ac_save_LIBS" | |
16961 | ||
16962 | fi | |
16963 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16964 | echo "$ac_t""yes" 1>&6 | |
16965 | WCHAR_OK=1 | |
16966 | else | |
16967 | echo "$ac_t""no" 1>&6 | |
16968 | fi | |
16969 | ||
16970 | else | |
16971 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
16972 | echo "configure:16973: checking for wcslen in -lw" >&5 | |
16973 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` | |
16974 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16975 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16976 | else | |
16977 | ac_save_LIBS="$LIBS" | |
16978 | LIBS="-lw $LIBS" | |
16979 | cat > conftest.$ac_ext <<EOF | |
16980 | #line 16981 "configure" | |
16981 | #include "confdefs.h" | |
16982 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16983 | /* We use char because int might match the return type of a gcc2 | |
16984 | builtin and then its argument prototype would still apply. */ | |
16985 | char wcslen(); | |
16986 | ||
16987 | int main() { | |
16988 | wcslen() | |
16989 | ; return 0; } | |
16990 | EOF | |
16991 | if { (eval echo configure:16992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16992 | rm -rf conftest* | |
16993 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16994 | else | |
16995 | echo "configure: failed program was:" >&5 | |
16996 | cat conftest.$ac_ext >&5 | |
16997 | rm -rf conftest* | |
16998 | eval "ac_cv_lib_$ac_lib_var=no" | |
16999 | fi | |
17000 | rm -f conftest* | |
17001 | LIBS="$ac_save_LIBS" | |
17002 | ||
17003 | fi | |
17004 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17005 | echo "$ac_t""yes" 1>&6 | |
17006 | ||
17007 | WCHAR_LINK=" -lw" | |
17008 | WCSLEN_FOUND=1 | |
17009 | ||
17010 | else | |
17011 | echo "$ac_t""no" 1>&6 | |
17012 | fi | |
17013 | ||
17014 | fi | |
17015 | fi | |
17016 | ||
17017 | if test "$WCSLEN_FOUND" = 1; then | |
17018 | cat >> confdefs.h <<\EOF | |
17019 | #define HAVE_WCSLEN 1 | |
17020 | EOF | |
17021 | ||
17022 | fi | |
17023 | ||
17024 | for ac_func in wcsrtombs | |
17025 | do | |
17026 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17027 | echo "configure:17028: checking for $ac_func" >&5 | |
17028 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
17029 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17030 | else | |
17031 | cat > conftest.$ac_ext <<EOF | |
17032 | #line 17033 "configure" | |
17033 | #include "confdefs.h" | |
17034 | /* System header to define __stub macros and hopefully few prototypes, | |
17035 | which can conflict with char $ac_func(); below. */ | |
17036 | #include <assert.h> | |
17037 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17038 | /* We use char because int might match the return type of a gcc2 | |
17039 | builtin and then its argument prototype would still apply. */ | |
17040 | char $ac_func(); | |
17041 | ||
17042 | int main() { | |
17043 | ||
17044 | /* The GNU C library defines this for functions which it implements | |
17045 | to always fail with ENOSYS. Some functions are actually named | |
17046 | something starting with __ and the normal name is an alias. */ | |
17047 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17048 | choke me | |
17049 | #else | |
17050 | $ac_func(); | |
17051 | #endif | |
17052 | ||
17053 | ; return 0; } | |
17054 | EOF | |
17055 | if { (eval echo configure:17056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17056 | rm -rf conftest* | |
17057 | eval "ac_cv_func_$ac_func=yes" | |
17058 | else | |
17059 | echo "configure: failed program was:" >&5 | |
17060 | cat conftest.$ac_ext >&5 | |
17061 | rm -rf conftest* | |
17062 | eval "ac_cv_func_$ac_func=no" | |
17063 | fi | |
17064 | rm -f conftest* | |
17065 | fi | |
17066 | ||
17067 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17068 | echo "$ac_t""yes" 1>&6 | |
17069 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17070 | cat >> confdefs.h <<EOF | |
17071 | #define $ac_tr_func 1 | |
17072 | EOF | |
17073 | ||
17074 | else | |
17075 | echo "$ac_t""no" 1>&6 | |
17076 | fi | |
17077 | done | |
17078 | ||
17079 | else | |
17080 | echo "configure: warning: Wide character support is unavailable" 1>&2 | |
17081 | fi | |
17082 | ||
17083 | ||
17084 | ac_ext=C | |
17085 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17086 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17087 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17088 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17089 | cross_compiling=$ac_cv_prog_cxx_cross | |
17090 | ||
17091 | ||
17092 | for ac_func in vsnprintf | |
17093 | do | |
17094 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17095 | echo "configure:17096: checking for $ac_func" >&5 | |
17096 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
17097 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17098 | else | |
17099 | cat > conftest.$ac_ext <<EOF | |
17100 | #line 17101 "configure" | |
17101 | #include "confdefs.h" | |
17102 | /* System header to define __stub macros and hopefully few prototypes, | |
17103 | which can conflict with char $ac_func(); below. */ | |
17104 | #include <assert.h> | |
17105 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17106 | #ifdef __cplusplus | |
17107 | extern "C" | |
17108 | #endif | |
17109 | /* We use char because int might match the return type of a gcc2 | |
17110 | builtin and then its argument prototype would still apply. */ | |
17111 | char $ac_func(); | |
17112 | ||
17113 | int main() { | |
17114 | ||
17115 | /* The GNU C library defines this for functions which it implements | |
17116 | to always fail with ENOSYS. Some functions are actually named | |
17117 | something starting with __ and the normal name is an alias. */ | |
17118 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17119 | choke me | |
17120 | #else | |
17121 | $ac_func(); | |
17122 | #endif | |
17123 | ||
17124 | ; return 0; } | |
17125 | EOF | |
17126 | if { (eval echo configure:17127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17127 | rm -rf conftest* | |
17128 | eval "ac_cv_func_$ac_func=yes" | |
17129 | else | |
17130 | echo "configure: failed program was:" >&5 | |
17131 | cat conftest.$ac_ext >&5 | |
17132 | rm -rf conftest* | |
17133 | eval "ac_cv_func_$ac_func=no" | |
17134 | fi | |
17135 | rm -f conftest* | |
17136 | fi | |
17137 | ||
17138 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17139 | echo "$ac_t""yes" 1>&6 | |
17140 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17141 | cat >> confdefs.h <<EOF | |
17142 | #define $ac_tr_func 1 | |
17143 | EOF | |
17144 | ||
17145 | else | |
17146 | echo "$ac_t""no" 1>&6 | |
17147 | fi | |
17148 | done | |
17149 | ||
17150 | ||
17151 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
17152 | echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6 | |
17153 | echo "configure:17154: checking for vsnprintf declaration" >&5 | |
17154 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then | |
17155 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17156 | else | |
17157 | ||
17158 | cat > conftest.$ac_ext <<EOF | |
17159 | #line 17160 "configure" | |
17160 | #include "confdefs.h" | |
17161 | ||
17162 | #include <stdio.h> | |
17163 | #include <stdarg.h> | |
17164 | ||
17165 | int main() { | |
17166 | ||
17167 | char *buf; | |
17168 | va_list ap; | |
17169 | vsnprintf(buf, 10u, "%s", ap); | |
17170 | ||
17171 | ; return 0; } | |
17172 | EOF | |
17173 | if { (eval echo configure:17174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
17174 | rm -rf conftest* | |
17175 | wx_cv_func_vsnprintf_decl=yes | |
17176 | else | |
17177 | echo "configure: failed program was:" >&5 | |
17178 | cat conftest.$ac_ext >&5 | |
17179 | rm -rf conftest* | |
17180 | wx_cv_func_vsnprintf_decl=no | |
17181 | ||
17182 | fi | |
17183 | rm -f conftest* | |
17184 | ||
17185 | ||
17186 | fi | |
17187 | ||
17188 | echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6 | |
17189 | ||
17190 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
17191 | cat >> confdefs.h <<\EOF | |
17192 | #define HAVE_VSNPRINTF_DECL 1 | |
17193 | EOF | |
17194 | ||
17195 | fi | |
17196 | fi | |
17197 | ||
17198 | if test "$wxUSE_UNICODE" = yes; then | |
17199 | for ac_func in fputwc wprintf vswprintf | |
17200 | do | |
17201 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17202 | echo "configure:17203: checking for $ac_func" >&5 | |
17203 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
17204 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17205 | else | |
17206 | cat > conftest.$ac_ext <<EOF | |
17207 | #line 17208 "configure" | |
17208 | #include "confdefs.h" | |
17209 | /* System header to define __stub macros and hopefully few prototypes, | |
17210 | which can conflict with char $ac_func(); below. */ | |
17211 | #include <assert.h> | |
17212 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17213 | #ifdef __cplusplus | |
17214 | extern "C" | |
17215 | #endif | |
17216 | /* We use char because int might match the return type of a gcc2 | |
17217 | builtin and then its argument prototype would still apply. */ | |
17218 | char $ac_func(); | |
17219 | ||
17220 | int main() { | |
17221 | ||
17222 | /* The GNU C library defines this for functions which it implements | |
17223 | to always fail with ENOSYS. Some functions are actually named | |
17224 | something starting with __ and the normal name is an alias. */ | |
17225 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17226 | choke me | |
17227 | #else | |
17228 | $ac_func(); | |
17229 | #endif | |
17230 | ||
17231 | ; return 0; } | |
17232 | EOF | |
17233 | if { (eval echo configure:17234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17234 | rm -rf conftest* | |
17235 | eval "ac_cv_func_$ac_func=yes" | |
17236 | else | |
17237 | echo "configure: failed program was:" >&5 | |
17238 | cat conftest.$ac_ext >&5 | |
17239 | rm -rf conftest* | |
17240 | eval "ac_cv_func_$ac_func=no" | |
17241 | fi | |
17242 | rm -f conftest* | |
17243 | fi | |
17244 | ||
17245 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17246 | echo "$ac_t""yes" 1>&6 | |
17247 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17248 | cat >> confdefs.h <<EOF | |
17249 | #define $ac_tr_func 1 | |
17250 | EOF | |
17251 | ||
17252 | else | |
17253 | echo "$ac_t""no" 1>&6 | |
17254 | fi | |
17255 | done | |
17256 | ||
17257 | ||
17258 | echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6 | |
17259 | echo "configure:17260: checking for _vsnwprintf" >&5 | |
17260 | cat > conftest.$ac_ext <<EOF | |
17261 | #line 17262 "configure" | |
17262 | #include "confdefs.h" | |
17263 | #include <wchar.h> | |
17264 | int main() { | |
17265 | &_vsnwprintf; | |
17266 | ; return 0; } | |
17267 | EOF | |
17268 | if { (eval echo configure:17269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
17269 | rm -rf conftest* | |
17270 | echo "$ac_t""yes" 1>&6 | |
17271 | cat >> confdefs.h <<\EOF | |
17272 | #define HAVE__VSNWPRINTF 1 | |
17273 | EOF | |
17274 | ||
17275 | else | |
17276 | echo "configure: failed program was:" >&5 | |
17277 | cat conftest.$ac_ext >&5 | |
17278 | rm -rf conftest* | |
17279 | echo "$ac_t""no" 1>&6 | |
17280 | fi | |
17281 | rm -f conftest*; | |
17282 | fi | |
17283 | ||
17284 | ac_ext=c | |
17285 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17286 | ac_cpp='$CPP $CPPFLAGS' | |
17287 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17288 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17289 | cross_compiling=$ac_cv_prog_cc_cross | |
17290 | ||
17291 | ||
17292 | ||
17293 | ||
17294 | if test "$TOOLKIT" != "MSW"; then | |
17295 | ||
17296 | ||
17297 | ||
17298 | ac_ext=C | |
17299 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17300 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17301 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17302 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17303 | cross_compiling=$ac_cv_prog_cxx_cross | |
17304 | ||
17305 | ||
17306 | ||
17307 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
17308 | if test "${with_libiconv_prefix+set}" = set; then | |
17309 | withval="$with_libiconv_prefix" | |
17310 | ||
17311 | for dir in `echo "$withval" | tr : ' '`; do | |
17312 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
17313 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
17314 | done | |
17315 | ||
17316 | fi | |
17317 | ||
17318 | ||
17319 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 | |
17320 | echo "configure:17321: checking for iconv" >&5 | |
17321 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then | |
17322 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17323 | else | |
17324 | ||
17325 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
17326 | am_cv_lib_iconv=no | |
17327 | cat > conftest.$ac_ext <<EOF | |
17328 | #line 17329 "configure" | |
17329 | #include "confdefs.h" | |
17330 | #include <stdlib.h> | |
17331 | #include <iconv.h> | |
17332 | int main() { | |
17333 | iconv_t cd = iconv_open("",""); | |
17334 | iconv(cd,NULL,NULL,NULL,NULL); | |
17335 | iconv_close(cd); | |
17336 | ; return 0; } | |
17337 | EOF | |
17338 | if { (eval echo configure:17339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17339 | rm -rf conftest* | |
17340 | am_cv_func_iconv=yes | |
17341 | else | |
17342 | echo "configure: failed program was:" >&5 | |
17343 | cat conftest.$ac_ext >&5 | |
17344 | fi | |
17345 | rm -f conftest* | |
17346 | if test "$am_cv_func_iconv" != yes; then | |
17347 | am_save_LIBS="$LIBS" | |
17348 | LIBS="$LIBS -liconv" | |
17349 | cat > conftest.$ac_ext <<EOF | |
17350 | #line 17351 "configure" | |
17351 | #include "confdefs.h" | |
17352 | #include <stdlib.h> | |
17353 | #include <iconv.h> | |
17354 | int main() { | |
17355 | iconv_t cd = iconv_open("",""); | |
17356 | iconv(cd,NULL,NULL,NULL,NULL); | |
17357 | iconv_close(cd); | |
17358 | ; return 0; } | |
17359 | EOF | |
17360 | if { (eval echo configure:17361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17361 | rm -rf conftest* | |
17362 | am_cv_lib_iconv=yes | |
17363 | am_cv_func_iconv=yes | |
17364 | else | |
17365 | echo "configure: failed program was:" >&5 | |
17366 | cat conftest.$ac_ext >&5 | |
17367 | fi | |
17368 | rm -f conftest* | |
17369 | LIBS="$am_save_LIBS" | |
17370 | fi | |
17371 | ||
17372 | fi | |
17373 | ||
17374 | echo "$ac_t""$am_cv_func_iconv" 1>&6 | |
17375 | if test "$am_cv_func_iconv" = yes; then | |
17376 | cat >> confdefs.h <<\EOF | |
17377 | #define HAVE_ICONV 1 | |
17378 | EOF | |
17379 | ||
17380 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 | |
17381 | echo "configure:17382: checking if iconv needs const" >&5 | |
17382 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then | |
17383 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17384 | else | |
17385 | cat > conftest.$ac_ext <<EOF | |
17386 | #line 17387 "configure" | |
17387 | #include "confdefs.h" | |
17388 | ||
17389 | #include <stdlib.h> | |
17390 | #include <iconv.h> | |
17391 | extern | |
17392 | #ifdef __cplusplus | |
17393 | "C" | |
17394 | #endif | |
17395 | #if defined(__STDC__) || defined(__cplusplus) | |
17396 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
17397 | #else | |
17398 | size_t iconv(); | |
17399 | #endif | |
17400 | ||
17401 | int main() { | |
17402 | ||
17403 | ; return 0; } | |
17404 | EOF | |
17405 | if { (eval echo configure:17406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
17406 | rm -rf conftest* | |
17407 | wx_cv_func_iconv_const="no" | |
17408 | else | |
17409 | echo "configure: failed program was:" >&5 | |
17410 | cat conftest.$ac_ext >&5 | |
17411 | rm -rf conftest* | |
17412 | wx_cv_func_iconv_const="yes" | |
17413 | ||
17414 | fi | |
17415 | rm -f conftest* | |
17416 | ||
17417 | fi | |
17418 | ||
17419 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 | |
17420 | ||
17421 | iconv_const= | |
17422 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
17423 | iconv_const="const" | |
17424 | fi | |
17425 | ||
17426 | cat >> confdefs.h <<EOF | |
17427 | #define ICONV_CONST $iconv_const | |
17428 | EOF | |
17429 | ||
17430 | fi | |
17431 | LIBICONV= | |
17432 | if test "$am_cv_lib_iconv" = yes; then | |
17433 | LIBICONV="-liconv" | |
17434 | fi | |
17435 | ||
17436 | ||
17437 | LIBS="$LIBICONV $LIBS" | |
17438 | ac_ext=c | |
17439 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17440 | ac_cpp='$CPP $CPPFLAGS' | |
17441 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17442 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17443 | cross_compiling=$ac_cv_prog_cc_cross | |
17444 | ||
17445 | ||
17446 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
17447 | for ac_func in sigaction | |
17448 | do | |
17449 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17450 | echo "configure:17451: checking for $ac_func" >&5 | |
17451 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
17452 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17453 | else | |
17454 | cat > conftest.$ac_ext <<EOF | |
17455 | #line 17456 "configure" | |
17456 | #include "confdefs.h" | |
17457 | /* System header to define __stub macros and hopefully few prototypes, | |
17458 | which can conflict with char $ac_func(); below. */ | |
17459 | #include <assert.h> | |
17460 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17461 | /* We use char because int might match the return type of a gcc2 | |
17462 | builtin and then its argument prototype would still apply. */ | |
17463 | char $ac_func(); | |
17464 | ||
17465 | int main() { | |
17466 | ||
17467 | /* The GNU C library defines this for functions which it implements | |
17468 | to always fail with ENOSYS. Some functions are actually named | |
17469 | something starting with __ and the normal name is an alias. */ | |
17470 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17471 | choke me | |
17472 | #else | |
17473 | $ac_func(); | |
17474 | #endif | |
17475 | ||
17476 | ; return 0; } | |
17477 | EOF | |
17478 | if { (eval echo configure:17479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17479 | rm -rf conftest* | |
17480 | eval "ac_cv_func_$ac_func=yes" | |
17481 | else | |
17482 | echo "configure: failed program was:" >&5 | |
17483 | cat conftest.$ac_ext >&5 | |
17484 | rm -rf conftest* | |
17485 | eval "ac_cv_func_$ac_func=no" | |
17486 | fi | |
17487 | rm -f conftest* | |
17488 | fi | |
17489 | ||
17490 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17491 | echo "$ac_t""yes" 1>&6 | |
17492 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17493 | cat >> confdefs.h <<EOF | |
17494 | #define $ac_tr_func 1 | |
17495 | EOF | |
17496 | ||
17497 | else | |
17498 | echo "$ac_t""no" 1>&6 | |
17499 | fi | |
17500 | done | |
17501 | ||
17502 | ||
17503 | if test "$ac_cv_func_sigaction" = "no"; then | |
17504 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
17505 | wxUSE_ON_FATAL_EXCEPTION=no | |
17506 | fi | |
17507 | ||
17508 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
17509 | ||
17510 | ac_ext=C | |
17511 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17512 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17513 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17514 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17515 | cross_compiling=$ac_cv_prog_cxx_cross | |
17516 | ||
17517 | ||
17518 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
17519 | echo "configure:17520: checking for sa_handler type" >&5 | |
17520 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then | |
17521 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17522 | else | |
17523 | ||
17524 | cat > conftest.$ac_ext <<EOF | |
17525 | #line 17526 "configure" | |
17526 | #include "confdefs.h" | |
17527 | #include <signal.h> | |
17528 | int main() { | |
17529 | ||
17530 | extern void testSigHandler(int); | |
17531 | ||
17532 | struct sigaction sa; | |
17533 | sa.sa_handler = testSigHandler; | |
17534 | ||
17535 | ; return 0; } | |
17536 | EOF | |
17537 | if { (eval echo configure:17538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
17538 | rm -rf conftest* | |
17539 | ||
17540 | wx_cv_type_sa_handler=int | |
17541 | ||
17542 | else | |
17543 | echo "configure: failed program was:" >&5 | |
17544 | cat conftest.$ac_ext >&5 | |
17545 | rm -rf conftest* | |
17546 | ||
17547 | wx_cv_type_sa_handler=void | |
17548 | ||
17549 | fi | |
17550 | rm -f conftest* | |
17551 | ||
17552 | fi | |
17553 | ||
17554 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
17555 | ||
17556 | ac_ext=c | |
17557 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17558 | ac_cpp='$CPP $CPPFLAGS' | |
17559 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17560 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17561 | cross_compiling=$ac_cv_prog_cc_cross | |
17562 | ||
17563 | ||
17564 | cat >> confdefs.h <<EOF | |
17565 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
17566 | EOF | |
17567 | ||
17568 | fi | |
17569 | fi | |
17570 | ||
17571 | for ac_func in mkstemp mktemp | |
17572 | do | |
17573 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17574 | echo "configure:17575: checking for $ac_func" >&5 | |
17575 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
17576 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17577 | else | |
17578 | cat > conftest.$ac_ext <<EOF | |
17579 | #line 17580 "configure" | |
17580 | #include "confdefs.h" | |
17581 | /* System header to define __stub macros and hopefully few prototypes, | |
17582 | which can conflict with char $ac_func(); below. */ | |
17583 | #include <assert.h> | |
17584 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17585 | /* We use char because int might match the return type of a gcc2 | |
17586 | builtin and then its argument prototype would still apply. */ | |
17587 | char $ac_func(); | |
17588 | ||
17589 | int main() { | |
17590 | ||
17591 | /* The GNU C library defines this for functions which it implements | |
17592 | to always fail with ENOSYS. Some functions are actually named | |
17593 | something starting with __ and the normal name is an alias. */ | |
17594 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17595 | choke me | |
17596 | #else | |
17597 | $ac_func(); | |
17598 | #endif | |
17599 | ||
17600 | ; return 0; } | |
17601 | EOF | |
17602 | if { (eval echo configure:17603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17603 | rm -rf conftest* | |
17604 | eval "ac_cv_func_$ac_func=yes" | |
17605 | else | |
17606 | echo "configure: failed program was:" >&5 | |
17607 | cat conftest.$ac_ext >&5 | |
17608 | rm -rf conftest* | |
17609 | eval "ac_cv_func_$ac_func=no" | |
17610 | fi | |
17611 | rm -f conftest* | |
17612 | fi | |
17613 | ||
17614 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17615 | echo "$ac_t""yes" 1>&6 | |
17616 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17617 | cat >> confdefs.h <<EOF | |
17618 | #define $ac_tr_func 1 | |
17619 | EOF | |
17620 | break | |
17621 | else | |
17622 | echo "$ac_t""no" 1>&6 | |
17623 | fi | |
17624 | done | |
17625 | ||
17626 | ||
17627 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 | |
17628 | echo "configure:17629: checking for statfs" >&5 | |
17629 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then | |
17630 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17631 | else | |
17632 | cat > conftest.$ac_ext <<EOF | |
17633 | #line 17634 "configure" | |
17634 | #include "confdefs.h" | |
17635 | ||
17636 | #if defined(__BSD__) | |
17637 | #include <sys/param.h> | |
17638 | #include <sys/mount.h> | |
17639 | #else | |
17640 | #include <sys/vfs.h> | |
17641 | #endif | |
17642 | ||
17643 | int main() { | |
17644 | ||
17645 | long l; | |
17646 | struct statfs fs; | |
17647 | statfs("/", &fs); | |
17648 | l = fs.f_bsize; | |
17649 | l += fs.f_blocks; | |
17650 | l += fs.f_bavail; | |
17651 | ||
17652 | ; return 0; } | |
17653 | EOF | |
17654 | if { (eval echo configure:17655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
17655 | rm -rf conftest* | |
17656 | ||
17657 | wx_cv_func_statfs=yes | |
17658 | ||
17659 | else | |
17660 | echo "configure: failed program was:" >&5 | |
17661 | cat conftest.$ac_ext >&5 | |
17662 | rm -rf conftest* | |
17663 | ||
17664 | wx_cv_func_statfs=no | |
17665 | ||
17666 | ||
17667 | fi | |
17668 | rm -f conftest* | |
17669 | ||
17670 | fi | |
17671 | ||
17672 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
17673 | ||
17674 | if test "$wx_cv_func_statfs" = "yes"; then | |
17675 | wx_cv_type_statvfs_t="struct statfs" | |
17676 | cat >> confdefs.h <<\EOF | |
17677 | #define HAVE_STATFS 1 | |
17678 | EOF | |
17679 | ||
17680 | else | |
17681 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
17682 | echo "configure:17683: checking for statvfs" >&5 | |
17683 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then | |
17684 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17685 | else | |
17686 | cat > conftest.$ac_ext <<EOF | |
17687 | #line 17688 "configure" | |
17688 | #include "confdefs.h" | |
17689 | ||
17690 | #include <stddef.h> | |
17691 | #include <sys/statvfs.h> | |
17692 | ||
17693 | int main() { | |
17694 | ||
17695 | statvfs("/", NULL); | |
17696 | ||
17697 | ; return 0; } | |
17698 | EOF | |
17699 | if { (eval echo configure:17700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
17700 | rm -rf conftest* | |
17701 | wx_cv_func_statvfs=yes | |
17702 | else | |
17703 | echo "configure: failed program was:" >&5 | |
17704 | cat conftest.$ac_ext >&5 | |
17705 | rm -rf conftest* | |
17706 | wx_cv_func_statvfs=no | |
17707 | ||
17708 | fi | |
17709 | rm -f conftest* | |
17710 | ||
17711 | fi | |
17712 | ||
17713 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 | |
17714 | ||
17715 | if test "$wx_cv_func_statvfs" = "yes"; then | |
17716 | ||
17717 | ac_ext=C | |
17718 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17719 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17720 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17721 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17722 | cross_compiling=$ac_cv_prog_cxx_cross | |
17723 | ||
17724 | ||
17725 | echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6 | |
17726 | echo "configure:17727: checking for statvfs argument type" >&5 | |
17727 | if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then | |
17728 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17729 | else | |
17730 | cat > conftest.$ac_ext <<EOF | |
17731 | #line 17732 "configure" | |
17732 | #include "confdefs.h" | |
17733 | ||
17734 | #include <sys/statvfs.h> | |
17735 | ||
17736 | int main() { | |
17737 | ||
17738 | long l; | |
17739 | statvfs_t fs; | |
17740 | statvfs("/", &fs); | |
17741 | l = fs.f_bsize; | |
17742 | l += fs.f_blocks; | |
17743 | l += fs.f_bavail; | |
17744 | ||
17745 | ; return 0; } | |
17746 | EOF | |
17747 | if { (eval echo configure:17748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
17748 | rm -rf conftest* | |
17749 | wx_cv_type_statvfs_t=statvfs_t | |
17750 | else | |
17751 | echo "configure: failed program was:" >&5 | |
17752 | cat conftest.$ac_ext >&5 | |
17753 | rm -rf conftest* | |
17754 | ||
17755 | cat > conftest.$ac_ext <<EOF | |
17756 | #line 17757 "configure" | |
17757 | #include "confdefs.h" | |
17758 | ||
17759 | #include <sys/statvfs.h> | |
17760 | ||
17761 | int main() { | |
17762 | ||
17763 | long l; | |
17764 | struct statvfs fs; | |
17765 | statvfs("/", &fs); | |
17766 | l = fs.f_bsize; | |
17767 | l += fs.f_blocks; | |
17768 | l += fs.f_bavail; | |
17769 | ||
17770 | ; return 0; } | |
17771 | EOF | |
17772 | if { (eval echo configure:17773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
17773 | rm -rf conftest* | |
17774 | wx_cv_type_statvfs_t="struct statvfs" | |
17775 | else | |
17776 | echo "configure: failed program was:" >&5 | |
17777 | cat conftest.$ac_ext >&5 | |
17778 | rm -rf conftest* | |
17779 | wx_cv_type_statvfs_t="unknown" | |
17780 | ||
17781 | fi | |
17782 | rm -f conftest* | |
17783 | ||
17784 | ||
17785 | fi | |
17786 | rm -f conftest* | |
17787 | ||
17788 | fi | |
17789 | ||
17790 | echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6 | |
17791 | ||
17792 | ac_ext=c | |
17793 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17794 | ac_cpp='$CPP $CPPFLAGS' | |
17795 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17796 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17797 | cross_compiling=$ac_cv_prog_cc_cross | |
17798 | ||
17799 | ||
17800 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
17801 | cat >> confdefs.h <<\EOF | |
17802 | #define HAVE_STATVFS 1 | |
17803 | EOF | |
17804 | ||
17805 | fi | |
17806 | else | |
17807 | wx_cv_type_statvfs_t="unknown" | |
17808 | fi | |
17809 | fi | |
17810 | ||
17811 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
17812 | cat >> confdefs.h <<EOF | |
17813 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
17814 | EOF | |
17815 | ||
17816 | else | |
17817 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
17818 | fi | |
17819 | ||
17820 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
17821 | for ac_func in fcntl flock | |
17822 | do | |
17823 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17824 | echo "configure:17825: checking for $ac_func" >&5 | |
17825 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
17826 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17827 | else | |
17828 | cat > conftest.$ac_ext <<EOF | |
17829 | #line 17830 "configure" | |
17830 | #include "confdefs.h" | |
17831 | /* System header to define __stub macros and hopefully few prototypes, | |
17832 | which can conflict with char $ac_func(); below. */ | |
17833 | #include <assert.h> | |
17834 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17835 | /* We use char because int might match the return type of a gcc2 | |
17836 | builtin and then its argument prototype would still apply. */ | |
17837 | char $ac_func(); | |
17838 | ||
17839 | int main() { | |
17840 | ||
17841 | /* The GNU C library defines this for functions which it implements | |
17842 | to always fail with ENOSYS. Some functions are actually named | |
17843 | something starting with __ and the normal name is an alias. */ | |
17844 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17845 | choke me | |
17846 | #else | |
17847 | $ac_func(); | |
17848 | #endif | |
17849 | ||
17850 | ; return 0; } | |
17851 | EOF | |
17852 | if { (eval echo configure:17853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17853 | rm -rf conftest* | |
17854 | eval "ac_cv_func_$ac_func=yes" | |
17855 | else | |
17856 | echo "configure: failed program was:" >&5 | |
17857 | cat conftest.$ac_ext >&5 | |
17858 | rm -rf conftest* | |
17859 | eval "ac_cv_func_$ac_func=no" | |
17860 | fi | |
17861 | rm -f conftest* | |
17862 | fi | |
17863 | ||
17864 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17865 | echo "$ac_t""yes" 1>&6 | |
17866 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17867 | cat >> confdefs.h <<EOF | |
17868 | #define $ac_tr_func 1 | |
17869 | EOF | |
17870 | break | |
17871 | else | |
17872 | echo "$ac_t""no" 1>&6 | |
17873 | fi | |
17874 | done | |
17875 | ||
17876 | ||
17877 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
17878 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
17879 | wxUSE_SNGLINST_CHECKER=no | |
17880 | fi | |
17881 | fi | |
17882 | ||
17883 | for ac_func in timegm | |
17884 | do | |
17885 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17886 | echo "configure:17887: checking for $ac_func" >&5 | |
17887 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
17888 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17889 | else | |
17890 | cat > conftest.$ac_ext <<EOF | |
17891 | #line 17892 "configure" | |
17892 | #include "confdefs.h" | |
17893 | /* System header to define __stub macros and hopefully few prototypes, | |
17894 | which can conflict with char $ac_func(); below. */ | |
17895 | #include <assert.h> | |
17896 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17897 | /* We use char because int might match the return type of a gcc2 | |
17898 | builtin and then its argument prototype would still apply. */ | |
17899 | char $ac_func(); | |
17900 | ||
17901 | int main() { | |
17902 | ||
17903 | /* The GNU C library defines this for functions which it implements | |
17904 | to always fail with ENOSYS. Some functions are actually named | |
17905 | something starting with __ and the normal name is an alias. */ | |
17906 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17907 | choke me | |
17908 | #else | |
17909 | $ac_func(); | |
17910 | #endif | |
17911 | ||
17912 | ; return 0; } | |
17913 | EOF | |
17914 | if { (eval echo configure:17915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17915 | rm -rf conftest* | |
17916 | eval "ac_cv_func_$ac_func=yes" | |
17917 | else | |
17918 | echo "configure: failed program was:" >&5 | |
17919 | cat conftest.$ac_ext >&5 | |
17920 | rm -rf conftest* | |
17921 | eval "ac_cv_func_$ac_func=no" | |
17922 | fi | |
17923 | rm -f conftest* | |
17924 | fi | |
17925 | ||
17926 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17927 | echo "$ac_t""yes" 1>&6 | |
17928 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17929 | cat >> confdefs.h <<EOF | |
17930 | #define $ac_tr_func 1 | |
17931 | EOF | |
17932 | ||
17933 | else | |
17934 | echo "$ac_t""no" 1>&6 | |
17935 | fi | |
17936 | done | |
17937 | ||
17938 | ||
17939 | for ac_func in putenv setenv | |
17940 | do | |
17941 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17942 | echo "configure:17943: checking for $ac_func" >&5 | |
17943 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
17944 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17945 | else | |
17946 | cat > conftest.$ac_ext <<EOF | |
17947 | #line 17948 "configure" | |
17948 | #include "confdefs.h" | |
17949 | /* System header to define __stub macros and hopefully few prototypes, | |
17950 | which can conflict with char $ac_func(); below. */ | |
17951 | #include <assert.h> | |
17952 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17953 | /* We use char because int might match the return type of a gcc2 | |
17954 | builtin and then its argument prototype would still apply. */ | |
17955 | char $ac_func(); | |
17956 | ||
17957 | int main() { | |
17958 | ||
17959 | /* The GNU C library defines this for functions which it implements | |
17960 | to always fail with ENOSYS. Some functions are actually named | |
17961 | something starting with __ and the normal name is an alias. */ | |
17962 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17963 | choke me | |
17964 | #else | |
17965 | $ac_func(); | |
17966 | #endif | |
17967 | ||
17968 | ; return 0; } | |
17969 | EOF | |
17970 | if { (eval echo configure:17971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17971 | rm -rf conftest* | |
17972 | eval "ac_cv_func_$ac_func=yes" | |
17973 | else | |
17974 | echo "configure: failed program was:" >&5 | |
17975 | cat conftest.$ac_ext >&5 | |
17976 | rm -rf conftest* | |
17977 | eval "ac_cv_func_$ac_func=no" | |
17978 | fi | |
17979 | rm -f conftest* | |
17980 | fi | |
17981 | ||
17982 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17983 | echo "$ac_t""yes" 1>&6 | |
17984 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17985 | cat >> confdefs.h <<EOF | |
17986 | #define $ac_tr_func 1 | |
17987 | EOF | |
17988 | break | |
17989 | else | |
17990 | echo "$ac_t""no" 1>&6 | |
17991 | fi | |
17992 | done | |
17993 | ||
17994 | ||
17995 | HAVE_SOME_SLEEP_FUNC=0 | |
17996 | if test "$USE_BEOS" = 1; then | |
17997 | cat >> confdefs.h <<\EOF | |
17998 | #define HAVE_SLEEP 1 | |
17999 | EOF | |
18000 | ||
18001 | HAVE_SOME_SLEEP_FUNC=1 | |
18002 | fi | |
18003 | ||
18004 | if test "$USE_DARWIN" = 1; then | |
18005 | cat >> confdefs.h <<\EOF | |
18006 | #define HAVE_USLEEP 1 | |
18007 | EOF | |
18008 | ||
18009 | HAVE_SOME_SLEEP_FUNC=1 | |
18010 | fi | |
18011 | ||
18012 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
18013 | POSIX4_LINK= | |
18014 | for ac_func in nanosleep | |
18015 | do | |
18016 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
18017 | echo "configure:18018: checking for $ac_func" >&5 | |
18018 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
18019 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18020 | else | |
18021 | cat > conftest.$ac_ext <<EOF | |
18022 | #line 18023 "configure" | |
18023 | #include "confdefs.h" | |
18024 | /* System header to define __stub macros and hopefully few prototypes, | |
18025 | which can conflict with char $ac_func(); below. */ | |
18026 | #include <assert.h> | |
18027 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18028 | /* We use char because int might match the return type of a gcc2 | |
18029 | builtin and then its argument prototype would still apply. */ | |
18030 | char $ac_func(); | |
18031 | ||
18032 | int main() { | |
18033 | ||
18034 | /* The GNU C library defines this for functions which it implements | |
18035 | to always fail with ENOSYS. Some functions are actually named | |
18036 | something starting with __ and the normal name is an alias. */ | |
18037 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18038 | choke me | |
18039 | #else | |
18040 | $ac_func(); | |
18041 | #endif | |
18042 | ||
18043 | ; return 0; } | |
18044 | EOF | |
18045 | if { (eval echo configure:18046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18046 | rm -rf conftest* | |
18047 | eval "ac_cv_func_$ac_func=yes" | |
18048 | else | |
18049 | echo "configure: failed program was:" >&5 | |
18050 | cat conftest.$ac_ext >&5 | |
18051 | rm -rf conftest* | |
18052 | eval "ac_cv_func_$ac_func=no" | |
18053 | fi | |
18054 | rm -f conftest* | |
18055 | fi | |
18056 | ||
18057 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18058 | echo "$ac_t""yes" 1>&6 | |
18059 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18060 | cat >> confdefs.h <<EOF | |
18061 | #define $ac_tr_func 1 | |
18062 | EOF | |
18063 | cat >> confdefs.h <<\EOF | |
18064 | #define HAVE_NANOSLEEP 1 | |
18065 | EOF | |
18066 | ||
18067 | else | |
18068 | echo "$ac_t""no" 1>&6 | |
18069 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
18070 | echo "configure:18071: checking for nanosleep in -lposix4" >&5 | |
18071 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` | |
18072 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18073 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18074 | else | |
18075 | ac_save_LIBS="$LIBS" | |
18076 | LIBS="-lposix4 $LIBS" | |
18077 | cat > conftest.$ac_ext <<EOF | |
18078 | #line 18079 "configure" | |
18079 | #include "confdefs.h" | |
18080 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18081 | /* We use char because int might match the return type of a gcc2 | |
18082 | builtin and then its argument prototype would still apply. */ | |
18083 | char nanosleep(); | |
18084 | ||
18085 | int main() { | |
18086 | nanosleep() | |
18087 | ; return 0; } | |
18088 | EOF | |
18089 | if { (eval echo configure:18090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18090 | rm -rf conftest* | |
18091 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18092 | else | |
18093 | echo "configure: failed program was:" >&5 | |
18094 | cat conftest.$ac_ext >&5 | |
18095 | rm -rf conftest* | |
18096 | eval "ac_cv_lib_$ac_lib_var=no" | |
18097 | fi | |
18098 | rm -f conftest* | |
18099 | LIBS="$ac_save_LIBS" | |
18100 | ||
18101 | fi | |
18102 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18103 | echo "$ac_t""yes" 1>&6 | |
18104 | ||
18105 | cat >> confdefs.h <<\EOF | |
18106 | #define HAVE_NANOSLEEP 1 | |
18107 | EOF | |
18108 | ||
18109 | POSIX4_LINK=" -lposix4" | |
18110 | ||
18111 | else | |
18112 | echo "$ac_t""no" 1>&6 | |
18113 | ||
18114 | for ac_func in usleep | |
18115 | do | |
18116 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
18117 | echo "configure:18118: checking for $ac_func" >&5 | |
18118 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
18119 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18120 | else | |
18121 | cat > conftest.$ac_ext <<EOF | |
18122 | #line 18123 "configure" | |
18123 | #include "confdefs.h" | |
18124 | /* System header to define __stub macros and hopefully few prototypes, | |
18125 | which can conflict with char $ac_func(); below. */ | |
18126 | #include <assert.h> | |
18127 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18128 | /* We use char because int might match the return type of a gcc2 | |
18129 | builtin and then its argument prototype would still apply. */ | |
18130 | char $ac_func(); | |
18131 | ||
18132 | int main() { | |
18133 | ||
18134 | /* The GNU C library defines this for functions which it implements | |
18135 | to always fail with ENOSYS. Some functions are actually named | |
18136 | something starting with __ and the normal name is an alias. */ | |
18137 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18138 | choke me | |
18139 | #else | |
18140 | $ac_func(); | |
18141 | #endif | |
18142 | ||
18143 | ; return 0; } | |
18144 | EOF | |
18145 | if { (eval echo configure:18146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18146 | rm -rf conftest* | |
18147 | eval "ac_cv_func_$ac_func=yes" | |
18148 | else | |
18149 | echo "configure: failed program was:" >&5 | |
18150 | cat conftest.$ac_ext >&5 | |
18151 | rm -rf conftest* | |
18152 | eval "ac_cv_func_$ac_func=no" | |
18153 | fi | |
18154 | rm -f conftest* | |
18155 | fi | |
18156 | ||
18157 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18158 | echo "$ac_t""yes" 1>&6 | |
18159 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18160 | cat >> confdefs.h <<EOF | |
18161 | #define $ac_tr_func 1 | |
18162 | EOF | |
18163 | cat >> confdefs.h <<\EOF | |
18164 | #define HAVE_USLEEP 1 | |
18165 | EOF | |
18166 | ||
18167 | else | |
18168 | echo "$ac_t""no" 1>&6 | |
18169 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
18170 | ||
18171 | fi | |
18172 | done | |
18173 | ||
18174 | ||
18175 | ||
18176 | fi | |
18177 | ||
18178 | ||
18179 | ||
18180 | fi | |
18181 | done | |
18182 | ||
18183 | fi | |
18184 | ||
18185 | for ac_func in uname gethostname | |
18186 | do | |
18187 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
18188 | echo "configure:18189: checking for $ac_func" >&5 | |
18189 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
18190 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18191 | else | |
18192 | cat > conftest.$ac_ext <<EOF | |
18193 | #line 18194 "configure" | |
18194 | #include "confdefs.h" | |
18195 | /* System header to define __stub macros and hopefully few prototypes, | |
18196 | which can conflict with char $ac_func(); below. */ | |
18197 | #include <assert.h> | |
18198 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18199 | /* We use char because int might match the return type of a gcc2 | |
18200 | builtin and then its argument prototype would still apply. */ | |
18201 | char $ac_func(); | |
18202 | ||
18203 | int main() { | |
18204 | ||
18205 | /* The GNU C library defines this for functions which it implements | |
18206 | to always fail with ENOSYS. Some functions are actually named | |
18207 | something starting with __ and the normal name is an alias. */ | |
18208 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18209 | choke me | |
18210 | #else | |
18211 | $ac_func(); | |
18212 | #endif | |
18213 | ||
18214 | ; return 0; } | |
18215 | EOF | |
18216 | if { (eval echo configure:18217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18217 | rm -rf conftest* | |
18218 | eval "ac_cv_func_$ac_func=yes" | |
18219 | else | |
18220 | echo "configure: failed program was:" >&5 | |
18221 | cat conftest.$ac_ext >&5 | |
18222 | rm -rf conftest* | |
18223 | eval "ac_cv_func_$ac_func=no" | |
18224 | fi | |
18225 | rm -f conftest* | |
18226 | fi | |
18227 | ||
18228 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18229 | echo "$ac_t""yes" 1>&6 | |
18230 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18231 | cat >> confdefs.h <<EOF | |
18232 | #define $ac_tr_func 1 | |
18233 | EOF | |
18234 | break | |
18235 | else | |
18236 | echo "$ac_t""no" 1>&6 | |
18237 | fi | |
18238 | done | |
18239 | ||
18240 | ||
18241 | ||
18242 | ac_ext=C | |
18243 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
18244 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18245 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
18246 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18247 | cross_compiling=$ac_cv_prog_cxx_cross | |
18248 | ||
18249 | ||
18250 | for ac_func in strtok_r | |
18251 | do | |
18252 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
18253 | echo "configure:18254: checking for $ac_func" >&5 | |
18254 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
18255 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18256 | else | |
18257 | cat > conftest.$ac_ext <<EOF | |
18258 | #line 18259 "configure" | |
18259 | #include "confdefs.h" | |
18260 | /* System header to define __stub macros and hopefully few prototypes, | |
18261 | which can conflict with char $ac_func(); below. */ | |
18262 | #include <assert.h> | |
18263 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18264 | #ifdef __cplusplus | |
18265 | extern "C" | |
18266 | #endif | |
18267 | /* We use char because int might match the return type of a gcc2 | |
18268 | builtin and then its argument prototype would still apply. */ | |
18269 | char $ac_func(); | |
18270 | ||
18271 | int main() { | |
18272 | ||
18273 | /* The GNU C library defines this for functions which it implements | |
18274 | to always fail with ENOSYS. Some functions are actually named | |
18275 | something starting with __ and the normal name is an alias. */ | |
18276 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18277 | choke me | |
18278 | #else | |
18279 | $ac_func(); | |
18280 | #endif | |
18281 | ||
18282 | ; return 0; } | |
18283 | EOF | |
18284 | if { (eval echo configure:18285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18285 | rm -rf conftest* | |
18286 | eval "ac_cv_func_$ac_func=yes" | |
18287 | else | |
18288 | echo "configure: failed program was:" >&5 | |
18289 | cat conftest.$ac_ext >&5 | |
18290 | rm -rf conftest* | |
18291 | eval "ac_cv_func_$ac_func=no" | |
18292 | fi | |
18293 | rm -f conftest* | |
18294 | fi | |
18295 | ||
18296 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18297 | echo "$ac_t""yes" 1>&6 | |
18298 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18299 | cat >> confdefs.h <<EOF | |
18300 | #define $ac_tr_func 1 | |
18301 | EOF | |
18302 | ||
18303 | else | |
18304 | echo "$ac_t""no" 1>&6 | |
18305 | fi | |
18306 | done | |
18307 | ||
18308 | ||
18309 | ac_ext=c | |
18310 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
18311 | ac_cpp='$CPP $CPPFLAGS' | |
18312 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
18313 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18314 | cross_compiling=$ac_cv_prog_cc_cross | |
18315 | ||
18316 | ||
18317 | INET_LINK= | |
18318 | for ac_func in inet_addr | |
18319 | do | |
18320 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
18321 | echo "configure:18322: checking for $ac_func" >&5 | |
18322 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
18323 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18324 | else | |
18325 | cat > conftest.$ac_ext <<EOF | |
18326 | #line 18327 "configure" | |
18327 | #include "confdefs.h" | |
18328 | /* System header to define __stub macros and hopefully few prototypes, | |
18329 | which can conflict with char $ac_func(); below. */ | |
18330 | #include <assert.h> | |
18331 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18332 | /* We use char because int might match the return type of a gcc2 | |
18333 | builtin and then its argument prototype would still apply. */ | |
18334 | char $ac_func(); | |
18335 | ||
18336 | int main() { | |
18337 | ||
18338 | /* The GNU C library defines this for functions which it implements | |
18339 | to always fail with ENOSYS. Some functions are actually named | |
18340 | something starting with __ and the normal name is an alias. */ | |
18341 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18342 | choke me | |
18343 | #else | |
18344 | $ac_func(); | |
18345 | #endif | |
18346 | ||
18347 | ; return 0; } | |
18348 | EOF | |
18349 | if { (eval echo configure:18350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18350 | rm -rf conftest* | |
18351 | eval "ac_cv_func_$ac_func=yes" | |
18352 | else | |
18353 | echo "configure: failed program was:" >&5 | |
18354 | cat conftest.$ac_ext >&5 | |
18355 | rm -rf conftest* | |
18356 | eval "ac_cv_func_$ac_func=no" | |
18357 | fi | |
18358 | rm -f conftest* | |
18359 | fi | |
18360 | ||
18361 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18362 | echo "$ac_t""yes" 1>&6 | |
18363 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18364 | cat >> confdefs.h <<EOF | |
18365 | #define $ac_tr_func 1 | |
18366 | EOF | |
18367 | cat >> confdefs.h <<\EOF | |
18368 | #define HAVE_INET_ADDR 1 | |
18369 | EOF | |
18370 | ||
18371 | else | |
18372 | echo "$ac_t""no" 1>&6 | |
18373 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
18374 | echo "configure:18375: checking for inet_addr in -lnsl" >&5 | |
18375 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` | |
18376 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18377 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18378 | else | |
18379 | ac_save_LIBS="$LIBS" | |
18380 | LIBS="-lnsl $LIBS" | |
18381 | cat > conftest.$ac_ext <<EOF | |
18382 | #line 18383 "configure" | |
18383 | #include "confdefs.h" | |
18384 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18385 | /* We use char because int might match the return type of a gcc2 | |
18386 | builtin and then its argument prototype would still apply. */ | |
18387 | char inet_addr(); | |
18388 | ||
18389 | int main() { | |
18390 | inet_addr() | |
18391 | ; return 0; } | |
18392 | EOF | |
18393 | if { (eval echo configure:18394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18394 | rm -rf conftest* | |
18395 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18396 | else | |
18397 | echo "configure: failed program was:" >&5 | |
18398 | cat conftest.$ac_ext >&5 | |
18399 | rm -rf conftest* | |
18400 | eval "ac_cv_lib_$ac_lib_var=no" | |
18401 | fi | |
18402 | rm -f conftest* | |
18403 | LIBS="$ac_save_LIBS" | |
18404 | ||
18405 | fi | |
18406 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18407 | echo "$ac_t""yes" 1>&6 | |
18408 | INET_LINK="nsl" | |
18409 | else | |
18410 | echo "$ac_t""no" 1>&6 | |
18411 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
18412 | echo "configure:18413: checking for inet_addr in -lresolv" >&5 | |
18413 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` | |
18414 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18415 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18416 | else | |
18417 | ac_save_LIBS="$LIBS" | |
18418 | LIBS="-lresolv $LIBS" | |
18419 | cat > conftest.$ac_ext <<EOF | |
18420 | #line 18421 "configure" | |
18421 | #include "confdefs.h" | |
18422 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18423 | /* We use char because int might match the return type of a gcc2 | |
18424 | builtin and then its argument prototype would still apply. */ | |
18425 | char inet_addr(); | |
18426 | ||
18427 | int main() { | |
18428 | inet_addr() | |
18429 | ; return 0; } | |
18430 | EOF | |
18431 | if { (eval echo configure:18432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18432 | rm -rf conftest* | |
18433 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18434 | else | |
18435 | echo "configure: failed program was:" >&5 | |
18436 | cat conftest.$ac_ext >&5 | |
18437 | rm -rf conftest* | |
18438 | eval "ac_cv_lib_$ac_lib_var=no" | |
18439 | fi | |
18440 | rm -f conftest* | |
18441 | LIBS="$ac_save_LIBS" | |
18442 | ||
18443 | fi | |
18444 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18445 | echo "$ac_t""yes" 1>&6 | |
18446 | INET_LINK="resolv" | |
18447 | else | |
18448 | echo "$ac_t""no" 1>&6 | |
18449 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 | |
18450 | echo "configure:18451: checking for inet_addr in -lsocket" >&5 | |
18451 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` | |
18452 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18453 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18454 | else | |
18455 | ac_save_LIBS="$LIBS" | |
18456 | LIBS="-lsocket $LIBS" | |
18457 | cat > conftest.$ac_ext <<EOF | |
18458 | #line 18459 "configure" | |
18459 | #include "confdefs.h" | |
18460 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18461 | /* We use char because int might match the return type of a gcc2 | |
18462 | builtin and then its argument prototype would still apply. */ | |
18463 | char inet_addr(); | |
18464 | ||
18465 | int main() { | |
18466 | inet_addr() | |
18467 | ; return 0; } | |
18468 | EOF | |
18469 | if { (eval echo configure:18470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18470 | rm -rf conftest* | |
18471 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18472 | else | |
18473 | echo "configure: failed program was:" >&5 | |
18474 | cat conftest.$ac_ext >&5 | |
18475 | rm -rf conftest* | |
18476 | eval "ac_cv_lib_$ac_lib_var=no" | |
18477 | fi | |
18478 | rm -f conftest* | |
18479 | LIBS="$ac_save_LIBS" | |
18480 | ||
18481 | fi | |
18482 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18483 | echo "$ac_t""yes" 1>&6 | |
18484 | INET_LINK="socket" | |
18485 | ||
18486 | else | |
18487 | echo "$ac_t""no" 1>&6 | |
18488 | fi | |
18489 | ||
18490 | ||
18491 | fi | |
18492 | ||
18493 | ||
18494 | fi | |
18495 | ||
18496 | ||
18497 | ||
18498 | fi | |
18499 | done | |
18500 | ||
18501 | ||
18502 | for ac_func in inet_aton | |
18503 | do | |
18504 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
18505 | echo "configure:18506: checking for $ac_func" >&5 | |
18506 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
18507 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18508 | else | |
18509 | cat > conftest.$ac_ext <<EOF | |
18510 | #line 18511 "configure" | |
18511 | #include "confdefs.h" | |
18512 | /* System header to define __stub macros and hopefully few prototypes, | |
18513 | which can conflict with char $ac_func(); below. */ | |
18514 | #include <assert.h> | |
18515 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18516 | /* We use char because int might match the return type of a gcc2 | |
18517 | builtin and then its argument prototype would still apply. */ | |
18518 | char $ac_func(); | |
18519 | ||
18520 | int main() { | |
18521 | ||
18522 | /* The GNU C library defines this for functions which it implements | |
18523 | to always fail with ENOSYS. Some functions are actually named | |
18524 | something starting with __ and the normal name is an alias. */ | |
18525 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18526 | choke me | |
18527 | #else | |
18528 | $ac_func(); | |
18529 | #endif | |
18530 | ||
18531 | ; return 0; } | |
18532 | EOF | |
18533 | if { (eval echo configure:18534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18534 | rm -rf conftest* | |
18535 | eval "ac_cv_func_$ac_func=yes" | |
18536 | else | |
18537 | echo "configure: failed program was:" >&5 | |
18538 | cat conftest.$ac_ext >&5 | |
18539 | rm -rf conftest* | |
18540 | eval "ac_cv_func_$ac_func=no" | |
18541 | fi | |
18542 | rm -f conftest* | |
18543 | fi | |
18544 | ||
18545 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18546 | echo "$ac_t""yes" 1>&6 | |
18547 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18548 | cat >> confdefs.h <<EOF | |
18549 | #define $ac_tr_func 1 | |
18550 | EOF | |
18551 | cat >> confdefs.h <<\EOF | |
18552 | #define HAVE_INET_ATON 1 | |
18553 | EOF | |
18554 | ||
18555 | else | |
18556 | echo "$ac_t""no" 1>&6 | |
18557 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
18558 | echo "configure:18559: checking for inet_aton in -l$INET_LINK" >&5 | |
18559 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` | |
18560 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18561 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18562 | else | |
18563 | ac_save_LIBS="$LIBS" | |
18564 | LIBS="-l$INET_LINK $LIBS" | |
18565 | cat > conftest.$ac_ext <<EOF | |
18566 | #line 18567 "configure" | |
18567 | #include "confdefs.h" | |
18568 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18569 | /* We use char because int might match the return type of a gcc2 | |
18570 | builtin and then its argument prototype would still apply. */ | |
18571 | char inet_aton(); | |
18572 | ||
18573 | int main() { | |
18574 | inet_aton() | |
18575 | ; return 0; } | |
18576 | EOF | |
18577 | if { (eval echo configure:18578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18578 | rm -rf conftest* | |
18579 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18580 | else | |
18581 | echo "configure: failed program was:" >&5 | |
18582 | cat conftest.$ac_ext >&5 | |
18583 | rm -rf conftest* | |
18584 | eval "ac_cv_lib_$ac_lib_var=no" | |
18585 | fi | |
18586 | rm -f conftest* | |
18587 | LIBS="$ac_save_LIBS" | |
18588 | ||
18589 | fi | |
18590 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18591 | echo "$ac_t""yes" 1>&6 | |
18592 | cat >> confdefs.h <<\EOF | |
18593 | #define HAVE_INET_ATON 1 | |
18594 | EOF | |
18595 | ||
18596 | else | |
18597 | echo "$ac_t""no" 1>&6 | |
18598 | fi | |
18599 | ||
18600 | ||
18601 | fi | |
18602 | done | |
18603 | ||
18604 | ||
18605 | if test "x$INET_LINK" != "x"; then | |
18606 | cat >> confdefs.h <<\EOF | |
18607 | #define HAVE_INET_ADDR 1 | |
18608 | EOF | |
18609 | ||
18610 | INET_LINK=" -l$INET_LINK" | |
18611 | fi | |
18612 | ||
18613 | fi | |
18614 | ||
18615 | ||
18616 | cat > confcache <<\EOF | |
18617 | # This file is a shell script that caches the results of configure | |
18618 | # tests run on this system so they can be shared between configure | |
18619 | # scripts and configure runs. It is not useful on other systems. | |
18620 | # If it contains results you don't want to keep, you may remove or edit it. | |
18621 | # | |
18622 | # By default, configure uses ./config.cache as the cache file, | |
18623 | # creating it if it does not exist already. You can give configure | |
18624 | # the --cache-file=FILE option to use a different cache file; that is | |
18625 | # what configure does when it calls configure scripts in | |
18626 | # subdirectories, so they share the cache. | |
18627 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
18628 | # config.status only pays attention to the cache file if you give it the | |
18629 | # --recheck option to rerun configure. | |
18630 | # | |
18631 | EOF | |
18632 | # The following way of writing the cache mishandles newlines in values, | |
18633 | # but we know of no workaround that is simple, portable, and efficient. | |
18634 | # So, don't put newlines in cache variables' values. | |
18635 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18636 | # and sets the high bit in the cache file unless we assign to the vars. | |
18637 | (set) 2>&1 | | |
18638 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18639 | *ac_space=\ *) | |
18640 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
18641 | # turns \\\\ into \\, and sed turns \\ into \). | |
18642 | sed -n \ | |
18643 | -e "s/'/'\\\\''/g" \ | |
18644 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
18645 | ;; | |
18646 | *) | |
18647 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18648 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
18649 | ;; | |
18650 | esac >> confcache | |
18651 | if cmp -s $cache_file confcache; then | |
18652 | : | |
18653 | else | |
18654 | if test -w $cache_file; then | |
18655 | echo "updating cache $cache_file" | |
18656 | cat confcache > $cache_file | |
18657 | else | |
18658 | echo "not updating unwritable cache $cache_file" | |
18659 | fi | |
18660 | fi | |
18661 | rm -f confcache | |
18662 | ||
18663 | ||
18664 | ||
18665 | CPP_MT_FLAG= | |
18666 | if test "$TOOLKIT" != "MSW"; then | |
18667 | ||
18668 | ||
18669 | THREADS_LINK= | |
18670 | THREADS_CFLAGS= | |
18671 | ||
18672 | if test "$wxUSE_THREADS" = "yes" ; then | |
18673 | if test "$USE_BEOS" = 1; then | |
18674 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 | |
18675 | wxUSE_THREADS="no" | |
18676 | fi | |
18677 | fi | |
18678 | ||
18679 | if test "$wxUSE_THREADS" = "yes" ; then | |
18680 | ||
18681 | ||
18682 | THREAD_OPTS="-pthread" | |
18683 | case "${host}" in | |
18684 | *-*-solaris2* | *-*-sunos4* ) | |
18685 | if test "x$GCC" = "xyes"; then | |
18686 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
18687 | else | |
18688 | THREAD_OPTS="-mt $THREAD_OPTS" | |
18689 | fi | |
18690 | ;; | |
18691 | *-*-freebsd*) | |
18692 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
18693 | ;; | |
18694 | *-*-darwin* | *-*-cygwin* ) | |
18695 | THREAD_OPTS="" | |
18696 | ;; | |
18697 | *-*-aix*) | |
18698 | THREAD_OPTS="pthreads" | |
18699 | ;; | |
18700 | *-hp-hpux* ) | |
18701 | if test "x$GCC" != "xyes"; then | |
18702 | THREAD_OPTS="" | |
18703 | fi | |
18704 | esac | |
18705 | ||
18706 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
18707 | ||
18708 | THREADS_OK=no | |
18709 | for flag in $THREAD_OPTS; do | |
18710 | case $flag in | |
18711 | none) | |
18712 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 | |
18713 | echo "configure:18714: checking whether pthreads work without any flags" >&5 | |
18714 | ;; | |
18715 | ||
18716 | -*) | |
18717 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 | |
18718 | echo "configure:18719: checking whether pthreads work with $flag" >&5 | |
18719 | THREADS_CFLAGS="$flag" | |
18720 | ;; | |
18721 | ||
18722 | *) | |
18723 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 | |
18724 | echo "configure:18725: checking for the pthreads library -l$flag" >&5 | |
18725 | THREADS_LINK="-l$flag" | |
18726 | ;; | |
18727 | esac | |
18728 | ||
18729 | save_LIBS="$LIBS" | |
18730 | save_CFLAGS="$CFLAGS" | |
18731 | LIBS="$THREADS_LINK $LIBS" | |
18732 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
18733 | ||
18734 | cat > conftest.$ac_ext <<EOF | |
18735 | #line 18736 "configure" | |
18736 | #include "confdefs.h" | |
18737 | #include <pthread.h> | |
18738 | int main() { | |
18739 | pthread_create(0,0,0,0); | |
18740 | ; return 0; } | |
18741 | EOF | |
18742 | if { (eval echo configure:18743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18743 | rm -rf conftest* | |
18744 | THREADS_OK=yes | |
18745 | else | |
18746 | echo "configure: failed program was:" >&5 | |
18747 | cat conftest.$ac_ext >&5 | |
18748 | fi | |
18749 | rm -f conftest* | |
18750 | ||
18751 | LIBS="$save_LIBS" | |
18752 | CFLAGS="$save_CFLAGS" | |
18753 | ||
18754 | echo "$ac_t""$THREADS_OK" 1>&6 | |
18755 | if test "x$THREADS_OK" = "xyes"; then | |
18756 | break; | |
18757 | fi | |
18758 | ||
18759 | THREADS_LINK="" | |
18760 | THREADS_CFLAGS="" | |
18761 | done | |
18762 | ||
18763 | if test "x$THREADS_OK" != "xyes"; then | |
18764 | wxUSE_THREADS=no | |
18765 | echo "configure: warning: No thread support on this system... disabled" 1>&2 | |
18766 | else | |
18767 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
18768 | LIBS="$THREADS_LINK $LIBS" | |
18769 | ||
18770 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 | |
18771 | echo "configure:18772: checking if more special flags are required for pthreads" >&5 | |
18772 | flag=no | |
18773 | case "${host}" in | |
18774 | *-aix*) | |
18775 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
18776 | flag="-D_THREAD_SAFE" | |
18777 | ;; | |
18778 | *-freebsd*) | |
18779 | flag="-D_THREAD_SAFE" | |
18780 | ;; | |
18781 | *-hp-hpux* ) | |
18782 | flag="-D_REENTRANT" | |
18783 | if test "x$GCC" != "xyes"; then | |
18784 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
18785 | fi | |
18786 | ;; | |
18787 | *solaris* | alpha*-osf*) | |
18788 | flag="-D_REENTRANT" | |
18789 | ;; | |
18790 | esac | |
18791 | echo "$ac_t""${flag}" 1>&6 | |
18792 | if test "x$flag" != xno; then | |
18793 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
18794 | fi | |
18795 | ||
18796 | if test "x$THREADS_CFLAGS" != "x"; then | |
18797 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
18798 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
18799 | fi | |
18800 | fi | |
18801 | fi | |
18802 | ||
18803 | if test "$wxUSE_THREADS" = "yes" ; then | |
18804 | for ac_func in thr_setconcurrency | |
18805 | do | |
18806 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
18807 | echo "configure:18808: checking for $ac_func" >&5 | |
18808 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
18809 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18810 | else | |
18811 | cat > conftest.$ac_ext <<EOF | |
18812 | #line 18813 "configure" | |
18813 | #include "confdefs.h" | |
18814 | /* System header to define __stub macros and hopefully few prototypes, | |
18815 | which can conflict with char $ac_func(); below. */ | |
18816 | #include <assert.h> | |
18817 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18818 | /* We use char because int might match the return type of a gcc2 | |
18819 | builtin and then its argument prototype would still apply. */ | |
18820 | char $ac_func(); | |
18821 | ||
18822 | int main() { | |
18823 | ||
18824 | /* The GNU C library defines this for functions which it implements | |
18825 | to always fail with ENOSYS. Some functions are actually named | |
18826 | something starting with __ and the normal name is an alias. */ | |
18827 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18828 | choke me | |
18829 | #else | |
18830 | $ac_func(); | |
18831 | #endif | |
18832 | ||
18833 | ; return 0; } | |
18834 | EOF | |
18835 | if { (eval echo configure:18836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18836 | rm -rf conftest* | |
18837 | eval "ac_cv_func_$ac_func=yes" | |
18838 | else | |
18839 | echo "configure: failed program was:" >&5 | |
18840 | cat conftest.$ac_ext >&5 | |
18841 | rm -rf conftest* | |
18842 | eval "ac_cv_func_$ac_func=no" | |
18843 | fi | |
18844 | rm -f conftest* | |
18845 | fi | |
18846 | ||
18847 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18848 | echo "$ac_t""yes" 1>&6 | |
18849 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18850 | cat >> confdefs.h <<EOF | |
18851 | #define $ac_tr_func 1 | |
18852 | EOF | |
18853 | ||
18854 | else | |
18855 | echo "$ac_t""no" 1>&6 | |
18856 | fi | |
18857 | done | |
18858 | ||
18859 | ||
18860 | for ac_hdr in sched.h | |
18861 | do | |
18862 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
18863 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
18864 | echo "configure:18865: checking for $ac_hdr" >&5 | |
18865 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
18866 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18867 | else | |
18868 | cat > conftest.$ac_ext <<EOF | |
18869 | #line 18870 "configure" | |
18870 | #include "confdefs.h" | |
18871 | #include <$ac_hdr> | |
18872 | EOF | |
18873 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18874 | { (eval echo configure:18875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
18875 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
18876 | if test -z "$ac_err"; then | |
18877 | rm -rf conftest* | |
18878 | eval "ac_cv_header_$ac_safe=yes" | |
18879 | else | |
18880 | echo "$ac_err" >&5 | |
18881 | echo "configure: failed program was:" >&5 | |
18882 | cat conftest.$ac_ext >&5 | |
18883 | rm -rf conftest* | |
18884 | eval "ac_cv_header_$ac_safe=no" | |
18885 | fi | |
18886 | rm -f conftest* | |
18887 | fi | |
18888 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
18889 | echo "$ac_t""yes" 1>&6 | |
18890 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18891 | cat >> confdefs.h <<EOF | |
18892 | #define $ac_tr_hdr 1 | |
18893 | EOF | |
18894 | ||
18895 | else | |
18896 | echo "$ac_t""no" 1>&6 | |
18897 | fi | |
18898 | done | |
18899 | ||
18900 | if test "$ac_cv_header_sched_h" = "yes"; then | |
18901 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 | |
18902 | echo "configure:18903: checking for sched_yield" >&5 | |
18903 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then | |
18904 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18905 | else | |
18906 | cat > conftest.$ac_ext <<EOF | |
18907 | #line 18908 "configure" | |
18908 | #include "confdefs.h" | |
18909 | /* System header to define __stub macros and hopefully few prototypes, | |
18910 | which can conflict with char sched_yield(); below. */ | |
18911 | #include <assert.h> | |
18912 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18913 | /* We use char because int might match the return type of a gcc2 | |
18914 | builtin and then its argument prototype would still apply. */ | |
18915 | char sched_yield(); | |
18916 | ||
18917 | int main() { | |
18918 | ||
18919 | /* The GNU C library defines this for functions which it implements | |
18920 | to always fail with ENOSYS. Some functions are actually named | |
18921 | something starting with __ and the normal name is an alias. */ | |
18922 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
18923 | choke me | |
18924 | #else | |
18925 | sched_yield(); | |
18926 | #endif | |
18927 | ||
18928 | ; return 0; } | |
18929 | EOF | |
18930 | if { (eval echo configure:18931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18931 | rm -rf conftest* | |
18932 | eval "ac_cv_func_sched_yield=yes" | |
18933 | else | |
18934 | echo "configure: failed program was:" >&5 | |
18935 | cat conftest.$ac_ext >&5 | |
18936 | rm -rf conftest* | |
18937 | eval "ac_cv_func_sched_yield=no" | |
18938 | fi | |
18939 | rm -f conftest* | |
18940 | fi | |
18941 | ||
18942 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
18943 | echo "$ac_t""yes" 1>&6 | |
18944 | cat >> confdefs.h <<\EOF | |
18945 | #define HAVE_SCHED_YIELD 1 | |
18946 | EOF | |
18947 | ||
18948 | else | |
18949 | echo "$ac_t""no" 1>&6 | |
18950 | ||
18951 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
18952 | echo "configure:18953: checking for sched_yield in -lposix4" >&5 | |
18953 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` | |
18954 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18955 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18956 | else | |
18957 | ac_save_LIBS="$LIBS" | |
18958 | LIBS="-lposix4 $LIBS" | |
18959 | cat > conftest.$ac_ext <<EOF | |
18960 | #line 18961 "configure" | |
18961 | #include "confdefs.h" | |
18962 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18963 | /* We use char because int might match the return type of a gcc2 | |
18964 | builtin and then its argument prototype would still apply. */ | |
18965 | char sched_yield(); | |
18966 | ||
18967 | int main() { | |
18968 | sched_yield() | |
18969 | ; return 0; } | |
18970 | EOF | |
18971 | if { (eval echo configure:18972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18972 | rm -rf conftest* | |
18973 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18974 | else | |
18975 | echo "configure: failed program was:" >&5 | |
18976 | cat conftest.$ac_ext >&5 | |
18977 | rm -rf conftest* | |
18978 | eval "ac_cv_lib_$ac_lib_var=no" | |
18979 | fi | |
18980 | rm -f conftest* | |
18981 | LIBS="$ac_save_LIBS" | |
18982 | ||
18983 | fi | |
18984 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18985 | echo "$ac_t""yes" 1>&6 | |
18986 | cat >> confdefs.h <<\EOF | |
18987 | #define HAVE_SCHED_YIELD 1 | |
18988 | EOF | |
18989 | POSIX4_LINK=" -lposix4" | |
18990 | else | |
18991 | echo "$ac_t""no" 1>&6 | |
18992 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
18993 | ||
18994 | fi | |
18995 | ||
18996 | ||
18997 | ||
18998 | fi | |
18999 | ||
19000 | fi | |
19001 | ||
19002 | HAVE_PRIOR_FUNCS=0 | |
19003 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 | |
19004 | echo "configure:19005: checking for pthread_attr_getschedpolicy" >&5 | |
19005 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then | |
19006 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19007 | else | |
19008 | cat > conftest.$ac_ext <<EOF | |
19009 | #line 19010 "configure" | |
19010 | #include "confdefs.h" | |
19011 | /* System header to define __stub macros and hopefully few prototypes, | |
19012 | which can conflict with char pthread_attr_getschedpolicy(); below. */ | |
19013 | #include <assert.h> | |
19014 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19015 | /* We use char because int might match the return type of a gcc2 | |
19016 | builtin and then its argument prototype would still apply. */ | |
19017 | char pthread_attr_getschedpolicy(); | |
19018 | ||
19019 | int main() { | |
19020 | ||
19021 | /* The GNU C library defines this for functions which it implements | |
19022 | to always fail with ENOSYS. Some functions are actually named | |
19023 | something starting with __ and the normal name is an alias. */ | |
19024 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
19025 | choke me | |
19026 | #else | |
19027 | pthread_attr_getschedpolicy(); | |
19028 | #endif | |
19029 | ||
19030 | ; return 0; } | |
19031 | EOF | |
19032 | if { (eval echo configure:19033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19033 | rm -rf conftest* | |
19034 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" | |
19035 | else | |
19036 | echo "configure: failed program was:" >&5 | |
19037 | cat conftest.$ac_ext >&5 | |
19038 | rm -rf conftest* | |
19039 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" | |
19040 | fi | |
19041 | rm -f conftest* | |
19042 | fi | |
19043 | ||
19044 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
19045 | echo "$ac_t""yes" 1>&6 | |
19046 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 | |
19047 | echo "configure:19048: checking for pthread_attr_setschedparam" >&5 | |
19048 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then | |
19049 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19050 | else | |
19051 | cat > conftest.$ac_ext <<EOF | |
19052 | #line 19053 "configure" | |
19053 | #include "confdefs.h" | |
19054 | /* System header to define __stub macros and hopefully few prototypes, | |
19055 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
19056 | #include <assert.h> | |
19057 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19058 | /* We use char because int might match the return type of a gcc2 | |
19059 | builtin and then its argument prototype would still apply. */ | |
19060 | char pthread_attr_setschedparam(); | |
19061 | ||
19062 | int main() { | |
19063 | ||
19064 | /* The GNU C library defines this for functions which it implements | |
19065 | to always fail with ENOSYS. Some functions are actually named | |
19066 | something starting with __ and the normal name is an alias. */ | |
19067 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
19068 | choke me | |
19069 | #else | |
19070 | pthread_attr_setschedparam(); | |
19071 | #endif | |
19072 | ||
19073 | ; return 0; } | |
19074 | EOF | |
19075 | if { (eval echo configure:19076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19076 | rm -rf conftest* | |
19077 | eval "ac_cv_func_pthread_attr_setschedparam=yes" | |
19078 | else | |
19079 | echo "configure: failed program was:" >&5 | |
19080 | cat conftest.$ac_ext >&5 | |
19081 | rm -rf conftest* | |
19082 | eval "ac_cv_func_pthread_attr_setschedparam=no" | |
19083 | fi | |
19084 | rm -f conftest* | |
19085 | fi | |
19086 | ||
19087 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
19088 | echo "$ac_t""yes" 1>&6 | |
19089 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 | |
19090 | echo "configure:19091: checking for sched_get_priority_max" >&5 | |
19091 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then | |
19092 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19093 | else | |
19094 | cat > conftest.$ac_ext <<EOF | |
19095 | #line 19096 "configure" | |
19096 | #include "confdefs.h" | |
19097 | /* System header to define __stub macros and hopefully few prototypes | |
19098 | else | |
19099 | echo "$ac_t""no" 1>&6 | |
19100 | which can conflict with char sched_get_priority_max(); below. */ | |
19101 | #include <assert.h> | |
19102 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19103 | /* We use char because int might match the return type of a gcc2 | |
19104 | builtin and then its argument prototype would still apply. */ | |
19105 | char sched_get_priority_max(); | |
19106 | ||
19107 | int main() { | |
19108 | ||
19109 | /* The GNU C library defines this for functions which it implements | |
19110 | to always fail with ENOSYS. Some functions are actually named | |
19111 | something starting with __ and the normal name is an alias. */ | |
19112 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
19113 | choke me | |
19114 | #else | |
19115 | sched_get_priority_max(); | |
19116 | #endif | |
19117 | ||
19118 | ; return 0; } | |
19119 | EOF | |
19120 | if { (eval echo configure:19121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19121 | rm -rf conftest* | |
19122 | eval "ac_cv_func_sched_get_priority_max=yes" | |
19123 | else | |
19124 | echo "configure: failed program was:" >&5 | |
19125 | cat conftest.$ac_ext >&5 | |
19126 | rm -rf conftest* | |
19127 | eval "ac_cv_func_sched_get_priority_max=no" | |
19128 | fi | |
19129 | rm -f conftest* | |
19130 | fi | |
19131 | ||
19132 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
19133 | echo "$ac_t""yes" 1>&6 | |
19134 | HAVE_PRIOR_FUNCS=1 | |
19135 | else | |
19136 | echo "$ac_t""no" 1>&6 | |
19137 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
19138 | echo "configure:19139: checking for sched_get_priority_max in -lposix4" >&5 | |
19139 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` | |
19140 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19141 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19142 | else | |
19143 | ac_save_LIBS="$LIBS" | |
19144 | LIBS="-lposix4 $LIBS" | |
19145 | cat > conftest.$ac_ext <<EOF | |
19146 | #line 19147 "configure" | |
19147 | #include "confdefs.h" | |
19148 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19149 | /* We use char because int might match the return type of a gcc2 | |
19150 | builtin and then its argument prototype would still apply. */ | |
19151 | char sched_get_priority_max(); | |
19152 | ||
19153 | int main() { | |
19154 | sched_get_priority_max() | |
19155 | ; return 0; } | |
19156 | EOF | |
19157 | if { (eval echo configure:19158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19158 | rm -rf conftest* | |
19159 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19160 | else | |
19161 | echo "configure: failed program was:" >&5 | |
19162 | cat conftest.$ac_ext >&5 | |
19163 | rm -rf conftest* | |
19164 | eval "ac_cv_lib_$ac_lib_var=no" | |
19165 | fi | |
19166 | rm -f conftest* | |
19167 | LIBS="$ac_save_LIBS" | |
19168 | ||
19169 | fi | |
19170 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19171 | echo "$ac_t""yes" 1>&6 | |
19172 | ||
19173 | HAVE_PRIOR_FUNCS=1 | |
19174 | POSIX4_LINK=" -lposix4" | |
19175 | ||
19176 | else | |
19177 | echo "$ac_t""no" 1>&6 | |
19178 | fi | |
19179 | ||
19180 | ||
19181 | fi | |
19182 | ||
19183 | ||
19184 | else | |
19185 | echo "$ac_t""no" 1>&6 | |
19186 | fi | |
19187 | ||
19188 | ||
19189 | fi | |
19190 | ||
19191 | ||
19192 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
19193 | cat >> confdefs.h <<\EOF | |
19194 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
19195 | EOF | |
19196 | ||
19197 | else | |
19198 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
19199 | fi | |
19200 | ||
19201 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 | |
19202 | echo "configure:19203: checking for pthread_cancel" >&5 | |
19203 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then | |
19204 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19205 | else | |
19206 | cat > conftest.$ac_ext <<EOF | |
19207 | #line 19208 "configure" | |
19208 | #include "confdefs.h" | |
19209 | /* System header to define __stub macros and hopefully few prototypes, | |
19210 | which can conflict with char pthread_cancel(); below. */ | |
19211 | #include <assert.h> | |
19212 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19213 | /* We use char because int might match the return type of a gcc2 | |
19214 | builtin and then its argument prototype would still apply. */ | |
19215 | char pthread_cancel(); | |
19216 | ||
19217 | int main() { | |
19218 | ||
19219 | /* The GNU C library defines this for functions which it implements | |
19220 | to always fail with ENOSYS. Some functions are actually named | |
19221 | something starting with __ and the normal name is an alias. */ | |
19222 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
19223 | choke me | |
19224 | #else | |
19225 | pthread_cancel(); | |
19226 | #endif | |
19227 | ||
19228 | ; return 0; } | |
19229 | EOF | |
19230 | if { (eval echo configure:19231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19231 | rm -rf conftest* | |
19232 | eval "ac_cv_func_pthread_cancel=yes" | |
19233 | else | |
19234 | echo "configure: failed program was:" >&5 | |
19235 | cat conftest.$ac_ext >&5 | |
19236 | rm -rf conftest* | |
19237 | eval "ac_cv_func_pthread_cancel=no" | |
19238 | fi | |
19239 | rm -f conftest* | |
19240 | fi | |
19241 | ||
19242 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
19243 | echo "$ac_t""yes" 1>&6 | |
19244 | cat >> confdefs.h <<\EOF | |
19245 | #define HAVE_PTHREAD_CANCEL 1 | |
19246 | EOF | |
19247 | ||
19248 | else | |
19249 | echo "$ac_t""no" 1>&6 | |
19250 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
19251 | fi | |
19252 | ||
19253 | ||
19254 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 | |
19255 | echo "configure:19256: checking for pthread_cleanup_push/pop" >&5 | |
19256 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then | |
19257 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19258 | else | |
19259 | ||
19260 | cat > conftest.$ac_ext <<EOF | |
19261 | #line 19262 "configure" | |
19262 | #include "confdefs.h" | |
19263 | #include <pthread.h> | |
19264 | int main() { | |
19265 | ||
19266 | pthread_cleanup_push(NULL, NULL); | |
19267 | pthread_cleanup_pop(0); | |
19268 | ||
19269 | ; return 0; } | |
19270 | EOF | |
19271 | if { (eval echo configure:19272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
19272 | rm -rf conftest* | |
19273 | ||
19274 | wx_cv_func_pthread_cleanup_push=yes | |
19275 | ||
19276 | else | |
19277 | echo "configure: failed program was:" >&5 | |
19278 | cat conftest.$ac_ext >&5 | |
19279 | rm -rf conftest* | |
19280 | ||
19281 | wx_cv_func_pthread_cleanup_push=no | |
19282 | ||
19283 | fi | |
19284 | rm -f conftest* | |
19285 | ||
19286 | fi | |
19287 | ||
19288 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
19289 | ||
19290 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then | |
19291 | cat >> confdefs.h <<\EOF | |
19292 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
19293 | EOF | |
19294 | ||
19295 | fi | |
19296 | ||
19297 | ||
19298 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
19299 | echo "configure:19300: checking for pthread_mutexattr_t" >&5 | |
19300 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then | |
19301 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19302 | else | |
19303 | ||
19304 | cat > conftest.$ac_ext <<EOF | |
19305 | #line 19306 "configure" | |
19306 | #include "confdefs.h" | |
19307 | #include <pthread.h> | |
19308 | int main() { | |
19309 | ||
19310 | pthread_mutexattr_t attr; | |
19311 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
19312 | ||
19313 | ; return 0; } | |
19314 | EOF | |
19315 | if { (eval echo configure:19316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
19316 | rm -rf conftest* | |
19317 | ||
19318 | wx_cv_type_pthread_mutexattr_t=yes | |
19319 | ||
19320 | else | |
19321 | echo "configure: failed program was:" >&5 | |
19322 | cat conftest.$ac_ext >&5 | |
19323 | rm -rf conftest* | |
19324 | ||
19325 | wx_cv_type_pthread_mutexattr_t=no | |
19326 | ||
19327 | ||
19328 | fi | |
19329 | rm -f conftest* | |
19330 | ||
19331 | fi | |
19332 | ||
19333 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
19334 | ||
19335 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
19336 | cat >> confdefs.h <<\EOF | |
19337 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
19338 | EOF | |
19339 | ||
19340 | else | |
19341 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
19342 | echo "configure:19343: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
19343 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then | |
19344 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19345 | else | |
19346 | ||
19347 | cat > conftest.$ac_ext <<EOF | |
19348 | #line 19349 "configure" | |
19349 | #include "confdefs.h" | |
19350 | #include <pthread.h> | |
19351 | int main() { | |
19352 | ||
19353 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
19354 | ||
19355 | ; return 0; } | |
19356 | EOF | |
19357 | if { (eval echo configure:19358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
19358 | rm -rf conftest* | |
19359 | ||
19360 | wx_cv_type_pthread_rec_mutex_init=yes | |
19361 | ||
19362 | else | |
19363 | echo "configure: failed program was:" >&5 | |
19364 | cat conftest.$ac_ext >&5 | |
19365 | rm -rf conftest* | |
19366 | ||
19367 | wx_cv_type_pthread_rec_mutex_init=no | |
19368 | ||
19369 | ||
19370 | fi | |
19371 | rm -f conftest* | |
19372 | ||
19373 | fi | |
19374 | ||
19375 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
19376 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
19377 | cat >> confdefs.h <<\EOF | |
19378 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
19379 | EOF | |
19380 | ||
19381 | else | |
19382 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
19383 | fi | |
19384 | fi | |
19385 | fi | |
19386 | ||
19387 | else | |
19388 | if test "$wxUSE_THREADS" = "yes" ; then | |
19389 | case "${host}" in | |
19390 | *-*-mingw32* ) | |
19391 | echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6 | |
19392 | echo "configure:19393: checking if compiler supports -mthreads" >&5 | |
19393 | if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then | |
19394 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19395 | else | |
19396 | ||
19397 | CFLAGS_OLD="$CFLAGS" | |
19398 | CFLAGS="$CFLAGS -mthreads" | |
19399 | cat > conftest.$ac_ext <<EOF | |
19400 | #line 19401 "configure" | |
19401 | #include "confdefs.h" | |
19402 | ||
19403 | int main() { | |
19404 | ||
19405 | ; return 0; } | |
19406 | EOF | |
19407 | if { (eval echo configure:19408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
19408 | rm -rf conftest* | |
19409 | wx_cv_cflags_mthread=yes | |
19410 | else | |
19411 | echo "configure: failed program was:" >&5 | |
19412 | cat conftest.$ac_ext >&5 | |
19413 | rm -rf conftest* | |
19414 | wx_cv_cflags_mthread=no | |
19415 | ||
19416 | fi | |
19417 | rm -f conftest* | |
19418 | ||
19419 | ||
19420 | fi | |
19421 | ||
19422 | echo "$ac_t""$wx_cv_cflags_mthread" 1>&6 | |
19423 | ||
19424 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
19425 | CXXFLAGS="$CXXFLAGS -mthreads" | |
19426 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
19427 | LDFLAGS="$LDFLAGS -mthreads" | |
19428 | else | |
19429 | CFLAGS="$CFLAGS_OLD" | |
19430 | fi | |
19431 | ;; | |
19432 | esac | |
19433 | fi | |
19434 | fi | |
19435 | ||
19436 | if test "$wxUSE_THREADS" = "yes"; then | |
19437 | cat >> confdefs.h <<\EOF | |
19438 | #define wxUSE_THREADS 1 | |
19439 | EOF | |
19440 | ||
19441 | ||
19442 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
19443 | else | |
19444 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
19445 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
19446 | echo "configure:19447: checking if -D_REENTRANT is needed" >&5 | |
19447 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
19448 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
19449 | echo "$ac_t""yes" 1>&6 | |
19450 | else | |
19451 | echo "$ac_t""no" 1>&6 | |
19452 | fi | |
19453 | fi | |
19454 | fi | |
19455 | ||
19456 | if test "$WXGTK20" = 1 ; then | |
19457 | cat >> confdefs.h <<EOF | |
19458 | #define __WXGTK20__ $WXGTK20 | |
19459 | EOF | |
19460 | ||
19461 | WXGTK12=1 | |
19462 | fi | |
19463 | ||
19464 | if test "$WXGTK12" = 1 ; then | |
19465 | cat >> confdefs.h <<EOF | |
19466 | #define __WXGTK12__ $WXGTK12 | |
19467 | EOF | |
19468 | ||
19469 | fi | |
19470 | ||
19471 | if test "$WXGTK127" = 1 ; then | |
19472 | cat >> confdefs.h <<EOF | |
19473 | #define __WXGTK127__ $WXGTK127 | |
19474 | EOF | |
19475 | ||
19476 | fi | |
19477 | ||
19478 | WXDEBUG= | |
19479 | ||
19480 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
19481 | WXDEBUG="-g" | |
19482 | wxUSE_OPTIMISE=no | |
19483 | fi | |
19484 | ||
19485 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
19486 | wxUSE_DEBUG_INFO=yes | |
19487 | WXDEBUG="-ggdb" | |
19488 | fi | |
19489 | ||
19490 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
19491 | cat >> confdefs.h <<\EOF | |
19492 | #define WXDEBUG 1 | |
19493 | EOF | |
19494 | ||
19495 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
19496 | else | |
19497 | if test "$wxUSE_GTK" = 1 ; then | |
19498 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
19499 | fi | |
19500 | fi | |
19501 | ||
19502 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
19503 | cat >> confdefs.h <<\EOF | |
19504 | #define wxUSE_MEMORY_TRACING 1 | |
19505 | EOF | |
19506 | ||
19507 | cat >> confdefs.h <<\EOF | |
19508 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
19509 | EOF | |
19510 | ||
19511 | cat >> confdefs.h <<\EOF | |
19512 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
19513 | EOF | |
19514 | ||
19515 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
19516 | fi | |
19517 | ||
19518 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
19519 | DMALLOC_LIBS="-ldmalloc" | |
19520 | fi | |
19521 | ||
19522 | PROFILE= | |
19523 | if test "$wxUSE_PROFILE" = "yes" ; then | |
19524 | PROFILE=" -pg" | |
19525 | fi | |
19526 | ||
19527 | CODE_GEN_FLAGS= | |
19528 | CODE_GEN_FLAGS_CXX= | |
19529 | if test "$GCC" = "yes" ; then | |
19530 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
19531 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
19532 | fi | |
19533 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
19534 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
19535 | fi | |
19536 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
19537 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
19538 | fi | |
19539 | if test "$USE_WIN32" = 1 ; then | |
19540 | # I'm not even really sure what this was ever added to solve, | |
19541 | # but someone added it for mingw native builds, so I guess | |
19542 | # they had a reason, right?? | |
19543 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
19544 | fi | |
19545 | ||
19546 | case "${host}" in | |
19547 | powerpc*-*-aix* ) | |
19548 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
19549 | ;; | |
19550 | *-hppa* ) | |
19551 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
19552 | ;; | |
19553 | esac | |
19554 | fi | |
19555 | ||
19556 | OPTIMISE= | |
19557 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
19558 | if test "$GCC" = yes ; then | |
19559 | OPTIMISE="-O0" | |
19560 | fi | |
19561 | else | |
19562 | if test "$GCC" = yes ; then | |
19563 | OPTIMISE="-O2" | |
19564 | ||
19565 | case "${host}" in | |
19566 | i586-*-*|i686-*-* ) | |
19567 | OPTIMISE="${OPTIMISE} " | |
19568 | ;; | |
19569 | esac | |
19570 | else | |
19571 | OPTIMISE="-O" | |
19572 | fi | |
19573 | fi | |
19574 | ||
19575 | ||
19576 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
19577 | cat >> confdefs.h <<\EOF | |
19578 | #define WXWIN_COMPATIBILITY_2 1 | |
19579 | EOF | |
19580 | ||
19581 | ||
19582 | WXWIN_COMPATIBILITY_2_2="yes" | |
19583 | fi | |
19584 | ||
19585 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
19586 | cat >> confdefs.h <<\EOF | |
19587 | #define WXWIN_COMPATIBILITY_2_2 1 | |
19588 | EOF | |
19589 | ||
19590 | ||
19591 | WXWIN_COMPATIBILITY_2_4="yes" | |
19592 | fi | |
19593 | ||
19594 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
19595 | cat >> confdefs.h <<\EOF | |
19596 | #define WXWIN_COMPATIBILITY_2_4 1 | |
19597 | EOF | |
19598 | ||
19599 | fi | |
19600 | ||
19601 | ||
19602 | if test "$wxUSE_GUI" = "yes"; then | |
19603 | cat >> confdefs.h <<\EOF | |
19604 | #define wxUSE_GUI 1 | |
19605 | EOF | |
19606 | ||
19607 | ||
19608 | else | |
19609 | cat >> confdefs.h <<\EOF | |
19610 | #define wxUSE_NOGUI 1 | |
19611 | EOF | |
19612 | ||
19613 | fi | |
19614 | ||
19615 | ||
19616 | if test "$wxUSE_UNIX" = "yes"; then | |
19617 | cat >> confdefs.h <<\EOF | |
19618 | #define wxUSE_UNIX 1 | |
19619 | EOF | |
19620 | ||
19621 | fi | |
19622 | ||
19623 | ||
19624 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
19625 | cat >> confdefs.h <<\EOF | |
19626 | #define wxUSE_APPLE_IEEE 1 | |
19627 | EOF | |
19628 | ||
19629 | fi | |
19630 | ||
19631 | if test "$wxUSE_TIMER" = "yes"; then | |
19632 | cat >> confdefs.h <<\EOF | |
19633 | #define wxUSE_TIMER 1 | |
19634 | EOF | |
19635 | ||
19636 | fi | |
19637 | ||
19638 | if test "$wxUSE_WAVE" = "yes"; then | |
19639 | cat >> confdefs.h <<\EOF | |
19640 | #define wxUSE_WAVE 1 | |
19641 | EOF | |
19642 | ||
19643 | fi | |
19644 | ||
19645 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then | |
19646 | cat >> confdefs.h <<\EOF | |
19647 | #define wxUSE_CMDLINE_PARSER 1 | |
19648 | EOF | |
19649 | ||
19650 | fi | |
19651 | ||
19652 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
19653 | cat >> confdefs.h <<\EOF | |
19654 | #define wxUSE_STOPWATCH 1 | |
19655 | EOF | |
19656 | ||
19657 | fi | |
19658 | ||
19659 | if test "$wxUSE_DATETIME" = "yes"; then | |
19660 | cat >> confdefs.h <<\EOF | |
19661 | #define wxUSE_DATETIME 1 | |
19662 | EOF | |
19663 | ||
19664 | fi | |
19665 | ||
19666 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
19667 | cat >> confdefs.h <<\EOF | |
19668 | #define wxUSE_TIMEDATE 1 | |
19669 | EOF | |
19670 | ||
19671 | fi | |
19672 | ||
19673 | if test "$wxUSE_FILE" = "yes"; then | |
19674 | cat >> confdefs.h <<\EOF | |
19675 | #define wxUSE_FILE 1 | |
19676 | EOF | |
19677 | ||
19678 | fi | |
19679 | ||
19680 | if test "$wxUSE_FFILE" = "yes"; then | |
19681 | cat >> confdefs.h <<\EOF | |
19682 | #define wxUSE_FFILE 1 | |
19683 | EOF | |
19684 | ||
19685 | fi | |
19686 | ||
19687 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
19688 | cat >> confdefs.h <<\EOF | |
19689 | #define wxUSE_FILESYSTEM 1 | |
19690 | EOF | |
19691 | ||
19692 | fi | |
19693 | ||
19694 | if test "$wxUSE_FS_INET" = "yes"; then | |
19695 | cat >> confdefs.h <<\EOF | |
19696 | #define wxUSE_FS_INET 1 | |
19697 | EOF | |
19698 | ||
19699 | fi | |
19700 | ||
19701 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
19702 | cat >> confdefs.h <<\EOF | |
19703 | #define wxUSE_FS_ZIP 1 | |
19704 | EOF | |
19705 | ||
19706 | fi | |
19707 | ||
19708 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
19709 | cat >> confdefs.h <<\EOF | |
19710 | #define wxUSE_ZIPSTREAM 1 | |
19711 | EOF | |
19712 | ||
19713 | fi | |
19714 | ||
19715 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
19716 | cat >> confdefs.h <<\EOF | |
19717 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
19718 | EOF | |
19719 | ||
19720 | fi | |
19721 | ||
19722 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
19723 | cat >> confdefs.h <<\EOF | |
19724 | #define wxUSE_SNGLINST_CHECKER 1 | |
19725 | EOF | |
19726 | ||
19727 | fi | |
19728 | ||
19729 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
19730 | cat >> confdefs.h <<\EOF | |
19731 | #define wxUSE_BUSYINFO 1 | |
19732 | EOF | |
19733 | ||
19734 | fi | |
19735 | ||
19736 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
19737 | cat >> confdefs.h <<\EOF | |
19738 | #define wxUSE_STD_IOSTREAM 1 | |
19739 | EOF | |
19740 | ||
19741 | fi | |
19742 | ||
19743 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
19744 | cat >> confdefs.h <<\EOF | |
19745 | #define wxUSE_TEXTBUFFER 1 | |
19746 | EOF | |
19747 | ||
19748 | fi | |
19749 | ||
19750 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
19751 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
19752 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 | |
19753 | else | |
19754 | cat >> confdefs.h <<\EOF | |
19755 | #define wxUSE_TEXTFILE 1 | |
19756 | EOF | |
19757 | ||
19758 | fi | |
19759 | fi | |
19760 | ||
19761 | if test "$wxUSE_CONFIG" = "yes" ; then | |
19762 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
19763 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 | |
19764 | else | |
19765 | cat >> confdefs.h <<\EOF | |
19766 | #define wxUSE_CONFIG 1 | |
19767 | EOF | |
19768 | ||
19769 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
19770 | fi | |
19771 | fi | |
19772 | ||
19773 | if test "$wxUSE_INTL" = "yes" ; then | |
19774 | if test "$wxUSE_FILE" != "yes"; then | |
19775 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 | |
19776 | else | |
19777 | cat >> confdefs.h <<\EOF | |
19778 | #define wxUSE_INTL 1 | |
19779 | EOF | |
19780 | ||
19781 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
19782 | GUIDIST="$GUIDIST INTL_DIST" | |
19783 | fi | |
19784 | fi | |
19785 | ||
19786 | if test "$wxUSE_LOG" = "yes"; then | |
19787 | cat >> confdefs.h <<\EOF | |
19788 | #define wxUSE_LOG 1 | |
19789 | EOF | |
19790 | ||
19791 | ||
19792 | if test "$wxUSE_LOGGUI" = "yes"; then | |
19793 | cat >> confdefs.h <<\EOF | |
19794 | #define wxUSE_LOGGUI 1 | |
19795 | EOF | |
19796 | ||
19797 | fi | |
19798 | ||
19799 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
19800 | cat >> confdefs.h <<\EOF | |
19801 | #define wxUSE_LOGWINDOW 1 | |
19802 | EOF | |
19803 | ||
19804 | fi | |
19805 | ||
19806 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
19807 | cat >> confdefs.h <<\EOF | |
19808 | #define wxUSE_LOG_DIALOG 1 | |
19809 | EOF | |
19810 | ||
19811 | fi | |
19812 | fi | |
19813 | ||
19814 | if test "$wxUSE_LONGLONG" = "yes"; then | |
19815 | cat >> confdefs.h <<\EOF | |
19816 | #define wxUSE_LONGLONG 1 | |
19817 | EOF | |
19818 | ||
19819 | fi | |
19820 | ||
19821 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
19822 | cat >> confdefs.h <<\EOF | |
19823 | #define wxUSE_GEOMETRY 1 | |
19824 | EOF | |
19825 | ||
19826 | fi | |
19827 | ||
19828 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
19829 | cat >> confdefs.h <<\EOF | |
19830 | #define wxUSE_DIALUP_MANAGER 1 | |
19831 | EOF | |
19832 | ||
19833 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
19834 | fi | |
19835 | ||
19836 | if test "$wxUSE_STREAMS" = "yes" ; then | |
19837 | cat >> confdefs.h <<\EOF | |
19838 | #define wxUSE_STREAMS 1 | |
19839 | EOF | |
19840 | ||
19841 | fi | |
19842 | ||
19843 | ||
19844 | if test "$wxUSE_DATETIME" = "yes"; then | |
19845 | for ac_func in strptime | |
19846 | do | |
19847 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
19848 | echo "configure:19849: checking for $ac_func" >&5 | |
19849 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
19850 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19851 | else | |
19852 | cat > conftest.$ac_ext <<EOF | |
19853 | #line 19854 "configure" | |
19854 | #include "confdefs.h" | |
19855 | /* System header to define __stub macros and hopefully few prototypes, | |
19856 | which can conflict with char $ac_func(); below. */ | |
19857 | #include <assert.h> | |
19858 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19859 | /* We use char because int might match the return type of a gcc2 | |
19860 | builtin and then its argument prototype would still apply. */ | |
19861 | char $ac_func(); | |
19862 | ||
19863 | int main() { | |
19864 | ||
19865 | /* The GNU C library defines this for functions which it implements | |
19866 | to always fail with ENOSYS. Some functions are actually named | |
19867 | something starting with __ and the normal name is an alias. */ | |
19868 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19869 | choke me | |
19870 | #else | |
19871 | $ac_func(); | |
19872 | #endif | |
19873 | ||
19874 | ; return 0; } | |
19875 | EOF | |
19876 | if { (eval echo configure:19877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19877 | rm -rf conftest* | |
19878 | eval "ac_cv_func_$ac_func=yes" | |
19879 | else | |
19880 | echo "configure: failed program was:" >&5 | |
19881 | cat conftest.$ac_ext >&5 | |
19882 | rm -rf conftest* | |
19883 | eval "ac_cv_func_$ac_func=no" | |
19884 | fi | |
19885 | rm -f conftest* | |
19886 | fi | |
19887 | ||
19888 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19889 | echo "$ac_t""yes" 1>&6 | |
19890 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19891 | cat >> confdefs.h <<EOF | |
19892 | #define $ac_tr_func 1 | |
19893 | EOF | |
19894 | ||
19895 | else | |
19896 | echo "$ac_t""no" 1>&6 | |
19897 | fi | |
19898 | done | |
19899 | ||
19900 | ||
19901 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 | |
19902 | echo "configure:19903: checking for timezone variable in <time.h>" >&5 | |
19903 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then | |
19904 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19905 | else | |
19906 | ||
19907 | cat > conftest.$ac_ext <<EOF | |
19908 | #line 19909 "configure" | |
19909 | #include "confdefs.h" | |
19910 | ||
19911 | #include <time.h> | |
19912 | ||
19913 | int main() { | |
19914 | ||
19915 | int tz; | |
19916 | tz = timezone; | |
19917 | ||
19918 | ; return 0; } | |
19919 | EOF | |
19920 | if { (eval echo configure:19921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
19921 | rm -rf conftest* | |
19922 | ||
19923 | wx_cv_var_timezone=timezone | |
19924 | ||
19925 | else | |
19926 | echo "configure: failed program was:" >&5 | |
19927 | cat conftest.$ac_ext >&5 | |
19928 | rm -rf conftest* | |
19929 | ||
19930 | cat > conftest.$ac_ext <<EOF | |
19931 | #line 19932 "configure" | |
19932 | #include "confdefs.h" | |
19933 | ||
19934 | #include <time.h> | |
19935 | ||
19936 | int main() { | |
19937 | ||
19938 | int tz; | |
19939 | tz = _timezone; | |
19940 | ||
19941 | ; return 0; } | |
19942 | EOF | |
19943 | if { (eval echo configure:19944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
19944 | rm -rf conftest* | |
19945 | ||
19946 | wx_cv_var_timezone=_timezone | |
19947 | ||
19948 | else | |
19949 | echo "configure: failed program was:" >&5 | |
19950 | cat conftest.$ac_ext >&5 | |
19951 | rm -rf conftest* | |
19952 | ||
19953 | cat > conftest.$ac_ext <<EOF | |
19954 | #line 19955 "configure" | |
19955 | #include "confdefs.h" | |
19956 | ||
19957 | #include <time.h> | |
19958 | ||
19959 | int main() { | |
19960 | ||
19961 | int tz; | |
19962 | tz = __timezone; | |
19963 | ||
19964 | ; return 0; } | |
19965 | EOF | |
19966 | if { (eval echo configure:19967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
19967 | rm -rf conftest* | |
19968 | ||
19969 | wx_cv_var_timezone=__timezone | |
19970 | ||
19971 | else | |
19972 | echo "configure: failed program was:" >&5 | |
19973 | cat conftest.$ac_ext >&5 | |
19974 | rm -rf conftest* | |
19975 | ||
19976 | if test "$USE_DOS" = 0 ; then | |
19977 | echo "configure: warning: no timezone variable" 1>&2 | |
19978 | fi | |
19979 | ||
19980 | ||
19981 | fi | |
19982 | rm -f conftest* | |
19983 | ||
19984 | ||
19985 | fi | |
19986 | rm -f conftest* | |
19987 | ||
19988 | ||
19989 | fi | |
19990 | rm -f conftest* | |
19991 | ||
19992 | ||
19993 | fi | |
19994 | ||
19995 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
19996 | ||
19997 | if test "x$wx_cv_var_timezone" != x ; then | |
19998 | cat >> confdefs.h <<EOF | |
19999 | #define WX_TIMEZONE $wx_cv_var_timezone | |
20000 | EOF | |
20001 | ||
20002 | fi | |
20003 | ||
20004 | for ac_func in localtime | |
20005 | do | |
20006 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
20007 | echo "configure:20008: checking for $ac_func" >&5 | |
20008 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
20009 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20010 | else | |
20011 | cat > conftest.$ac_ext <<EOF | |
20012 | #line 20013 "configure" | |
20013 | #include "confdefs.h" | |
20014 | /* System header to define __stub macros and hopefully few prototypes, | |
20015 | which can conflict with char $ac_func(); below. */ | |
20016 | #include <assert.h> | |
20017 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20018 | /* We use char because int might match the return type of a gcc2 | |
20019 | builtin and then its argument prototype would still apply. */ | |
20020 | char $ac_func(); | |
20021 | ||
20022 | int main() { | |
20023 | ||
20024 | /* The GNU C library defines this for functions which it implements | |
20025 | to always fail with ENOSYS. Some functions are actually named | |
20026 | something starting with __ and the normal name is an alias. */ | |
20027 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20028 | choke me | |
20029 | #else | |
20030 | $ac_func(); | |
20031 | #endif | |
20032 | ||
20033 | ; return 0; } | |
20034 | EOF | |
20035 | if { (eval echo configure:20036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
20036 | rm -rf conftest* | |
20037 | eval "ac_cv_func_$ac_func=yes" | |
20038 | else | |
20039 | echo "configure: failed program was:" >&5 | |
20040 | cat conftest.$ac_ext >&5 | |
20041 | rm -rf conftest* | |
20042 | eval "ac_cv_func_$ac_func=no" | |
20043 | fi | |
20044 | rm -f conftest* | |
20045 | fi | |
20046 | ||
20047 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20048 | echo "$ac_t""yes" 1>&6 | |
20049 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20050 | cat >> confdefs.h <<EOF | |
20051 | #define $ac_tr_func 1 | |
20052 | EOF | |
20053 | ||
20054 | else | |
20055 | echo "$ac_t""no" 1>&6 | |
20056 | fi | |
20057 | done | |
20058 | ||
20059 | ||
20060 | if test "$ac_cv_func_localtime" = "yes"; then | |
20061 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
20062 | echo "configure:20063: checking for tm_gmtoff in struct tm" >&5 | |
20063 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then | |
20064 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20065 | else | |
20066 | ||
20067 | cat > conftest.$ac_ext <<EOF | |
20068 | #line 20069 "configure" | |
20069 | #include "confdefs.h" | |
20070 | ||
20071 | #include <time.h> | |
20072 | ||
20073 | int main() { | |
20074 | ||
20075 | struct tm tm; | |
20076 | tm.tm_gmtoff++; | |
20077 | ||
20078 | ; return 0; } | |
20079 | EOF | |
20080 | if { (eval echo configure:20081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
20081 | rm -rf conftest* | |
20082 | ||
20083 | wx_cv_struct_tm_has_gmtoff=yes | |
20084 | ||
20085 | else | |
20086 | echo "configure: failed program was:" >&5 | |
20087 | cat conftest.$ac_ext >&5 | |
20088 | rm -rf conftest* | |
20089 | wx_cv_struct_tm_has_gmtoff=no | |
20090 | ||
20091 | fi | |
20092 | rm -f conftest* | |
20093 | ||
20094 | fi | |
20095 | ||
20096 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
20097 | fi | |
20098 | ||
20099 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
20100 | cat >> confdefs.h <<\EOF | |
20101 | #define WX_GMTOFF_IN_TM 1 | |
20102 | EOF | |
20103 | ||
20104 | fi | |
20105 | ||
20106 | for ac_func in gettimeofday ftime | |
20107 | do | |
20108 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
20109 | echo "configure:20110: checking for $ac_func" >&5 | |
20110 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
20111 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20112 | else | |
20113 | cat > conftest.$ac_ext <<EOF | |
20114 | #line 20115 "configure" | |
20115 | #include "confdefs.h" | |
20116 | /* System header to define __stub macros and hopefully few prototypes, | |
20117 | which can conflict with char $ac_func(); below. */ | |
20118 | #include <assert.h> | |
20119 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20120 | /* We use char because int might match the return type of a gcc2 | |
20121 | builtin and then its argument prototype would still apply. */ | |
20122 | char $ac_func(); | |
20123 | ||
20124 | int main() { | |
20125 | ||
20126 | /* The GNU C library defines this for functions which it implements | |
20127 | to always fail with ENOSYS. Some functions are actually named | |
20128 | something starting with __ and the normal name is an alias. */ | |
20129 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20130 | choke me | |
20131 | #else | |
20132 | $ac_func(); | |
20133 | #endif | |
20134 | ||
20135 | ; return 0; } | |
20136 | EOF | |
20137 | if { (eval echo configure:20138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
20138 | rm -rf conftest* | |
20139 | eval "ac_cv_func_$ac_func=yes" | |
20140 | else | |
20141 | echo "configure: failed program was:" >&5 | |
20142 | cat conftest.$ac_ext >&5 | |
20143 | rm -rf conftest* | |
20144 | eval "ac_cv_func_$ac_func=no" | |
20145 | fi | |
20146 | rm -f conftest* | |
20147 | fi | |
20148 | ||
20149 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20150 | echo "$ac_t""yes" 1>&6 | |
20151 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20152 | cat >> confdefs.h <<EOF | |
20153 | #define $ac_tr_func 1 | |
20154 | EOF | |
20155 | break | |
20156 | else | |
20157 | echo "$ac_t""no" 1>&6 | |
20158 | fi | |
20159 | done | |
20160 | ||
20161 | ||
20162 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
20163 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
20164 | echo "configure:20165: checking whether gettimeofday takes two arguments" >&5 | |
20165 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then | |
20166 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20167 | else | |
20168 | ||
20169 | ||
20170 | ac_ext=C | |
20171 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
20172 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20173 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
20174 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20175 | cross_compiling=$ac_cv_prog_cxx_cross | |
20176 | ||
20177 | ||
20178 | cat > conftest.$ac_ext <<EOF | |
20179 | #line 20180 "configure" | |
20180 | #include "confdefs.h" | |
20181 | ||
20182 | #include <sys/time.h> | |
20183 | #include <unistd.h> | |
20184 | ||
20185 | int main() { | |
20186 | ||
20187 | struct timeval tv; | |
20188 | gettimeofday(&tv, NULL); | |
20189 | ||
20190 | ; return 0; } | |
20191 | EOF | |
20192 | if { (eval echo configure:20193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
20193 | rm -rf conftest* | |
20194 | wx_cv_func_gettimeofday_has_2_args=yes | |
20195 | else | |
20196 | echo "configure: failed program was:" >&5 | |
20197 | cat conftest.$ac_ext >&5 | |
20198 | rm -rf conftest* | |
20199 | cat > conftest.$ac_ext <<EOF | |
20200 | #line 20201 "configure" | |
20201 | #include "confdefs.h" | |
20202 | ||
20203 | #include <sys/time.h> | |
20204 | #include <unistd.h> | |
20205 | ||
20206 | int main() { | |
20207 | ||
20208 | struct timeval tv; | |
20209 | gettimeofday(&tv); | |
20210 | ||
20211 | ; return 0; } | |
20212 | EOF | |
20213 | if { (eval echo configure:20214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
20214 | rm -rf conftest* | |
20215 | wx_cv_func_gettimeofday_has_2_args=no | |
20216 | else | |
20217 | echo "configure: failed program was:" >&5 | |
20218 | cat conftest.$ac_ext >&5 | |
20219 | rm -rf conftest* | |
20220 | ||
20221 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
20222 | wx_cv_func_gettimeofday_has_2_args=unknown | |
20223 | ||
20224 | ||
20225 | fi | |
20226 | rm -f conftest* | |
20227 | ||
20228 | fi | |
20229 | rm -f conftest* | |
20230 | ac_ext=c | |
20231 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
20232 | ac_cpp='$CPP $CPPFLAGS' | |
20233 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
20234 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20235 | cross_compiling=$ac_cv_prog_cc_cross | |
20236 | ||
20237 | ||
20238 | fi | |
20239 | ||
20240 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
20241 | ||
20242 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
20243 | cat >> confdefs.h <<\EOF | |
20244 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
20245 | EOF | |
20246 | ||
20247 | fi | |
20248 | fi | |
20249 | ||
20250 | cat >> confdefs.h <<\EOF | |
20251 | #define wxUSE_TIMEDATE 1 | |
20252 | EOF | |
20253 | ||
20254 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
20255 | fi | |
20256 | ||
20257 | ||
20258 | if test "$wxUSE_SOCKETS" = "yes"; then | |
20259 | if test "$wxUSE_MGL" = "1"; then | |
20260 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 | |
20261 | wxUSE_SOCKETS="no" | |
20262 | fi | |
20263 | fi | |
20264 | ||
20265 | if test "$wxUSE_SOCKETS" = "yes"; then | |
20266 | if test "$TOOLKIT" != "MSW"; then | |
20267 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
20268 | echo "configure:20269: checking for socket" >&5 | |
20269 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then | |
20270 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20271 | else | |
20272 | cat > conftest.$ac_ext <<EOF | |
20273 | #line 20274 "configure" | |
20274 | #include "confdefs.h" | |
20275 | /* System header to define __stub macros and hopefully few prototypes, | |
20276 | which can conflict with char socket(); below. */ | |
20277 | #include <assert.h> | |
20278 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20279 | /* We use char because int might match the return type of a gcc2 | |
20280 | builtin and then its argument prototype would still apply. */ | |
20281 | char socket(); | |
20282 | ||
20283 | int main() { | |
20284 | ||
20285 | /* The GNU C library defines this for functions which it implements | |
20286 | to always fail with ENOSYS. Some functions are actually named | |
20287 | something starting with __ and the normal name is an alias. */ | |
20288 | #if defined (__stub_socket) || defined (__stub___socket) | |
20289 | choke me | |
20290 | #else | |
20291 | socket(); | |
20292 | #endif | |
20293 | ||
20294 | ; return 0; } | |
20295 | EOF | |
20296 | if { (eval echo configure:20297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
20297 | rm -rf conftest* | |
20298 | eval "ac_cv_func_socket=yes" | |
20299 | else | |
20300 | echo "configure: failed program was:" >&5 | |
20301 | cat conftest.$ac_ext >&5 | |
20302 | rm -rf conftest* | |
20303 | eval "ac_cv_func_socket=no" | |
20304 | fi | |
20305 | rm -f conftest* | |
20306 | fi | |
20307 | ||
20308 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
20309 | echo "$ac_t""yes" 1>&6 | |
20310 | : | |
20311 | else | |
20312 | echo "$ac_t""no" 1>&6 | |
20313 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
20314 | echo "configure:20315: checking for socket in -lsocket" >&5 | |
20315 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` | |
20316 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20317 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20318 | else | |
20319 | ac_save_LIBS="$LIBS" | |
20320 | LIBS="-lsocket $LIBS" | |
20321 | cat > conftest.$ac_ext <<EOF | |
20322 | #line 20323 "configure" | |
20323 | #include "confdefs.h" | |
20324 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20325 | /* We use char because int might match the return type of a gcc2 | |
20326 | builtin and then its argument prototype would still apply. */ | |
20327 | char socket(); | |
20328 | ||
20329 | int main() { | |
20330 | socket() | |
20331 | ; return 0; } | |
20332 | EOF | |
20333 | if { (eval echo configure:20334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
20334 | rm -rf conftest* | |
20335 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20336 | else | |
20337 | echo "configure: failed program was:" >&5 | |
20338 | cat conftest.$ac_ext >&5 | |
20339 | rm -rf conftest* | |
20340 | eval "ac_cv_lib_$ac_lib_var=no" | |
20341 | fi | |
20342 | rm -f conftest* | |
20343 | LIBS="$ac_save_LIBS" | |
20344 | ||
20345 | fi | |
20346 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20347 | echo "$ac_t""yes" 1>&6 | |
20348 | if test "$INET_LINK" != " -lsocket"; then | |
20349 | INET_LINK="$INET_LINK -lsocket" | |
20350 | fi | |
20351 | else | |
20352 | echo "$ac_t""no" 1>&6 | |
20353 | ||
20354 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 | |
20355 | wxUSE_SOCKETS=no | |
20356 | ||
20357 | ||
20358 | fi | |
20359 | ||
20360 | ||
20361 | fi | |
20362 | ||
20363 | fi | |
20364 | fi | |
20365 | ||
20366 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
20367 | if test "$TOOLKIT" != "MSW"; then | |
20368 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
20369 | echo "configure:20370: checking what is the type of the third argument of getsockname" >&5 | |
20370 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then | |
20371 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20372 | else | |
20373 | ||
20374 | ||
20375 | ac_ext=C | |
20376 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
20377 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20378 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
20379 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20380 | cross_compiling=$ac_cv_prog_cxx_cross | |
20381 | ||
20382 | ||
20383 | cat > conftest.$ac_ext <<EOF | |
20384 | #line 20385 "configure" | |
20385 | #include "confdefs.h" | |
20386 | ||
20387 | #include <sys/types.h> | |
20388 | #include <sys/socket.h> | |
20389 | ||
20390 | int main() { | |
20391 | ||
20392 | socklen_t len; | |
20393 | getsockname(0, 0, &len); | |
20394 | ||
20395 | ; return 0; } | |
20396 | EOF | |
20397 | if { (eval echo configure:20398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
20398 | rm -rf conftest* | |
20399 | wx_cv_type_getsockname3=socklen_t | |
20400 | else | |
20401 | echo "configure: failed program was:" >&5 | |
20402 | cat conftest.$ac_ext >&5 | |
20403 | rm -rf conftest* | |
20404 | cat > conftest.$ac_ext <<EOF | |
20405 | #line 20406 "configure" | |
20406 | #include "confdefs.h" | |
20407 | ||
20408 | #include <sys/types.h> | |
20409 | #include <sys/socket.h> | |
20410 | ||
20411 | int main() { | |
20412 | ||
20413 | size_t len; | |
20414 | getsockname(0, 0, &len); | |
20415 | ||
20416 | ; return 0; } | |
20417 | EOF | |
20418 | if { (eval echo configure:20419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
20419 | rm -rf conftest* | |
20420 | wx_cv_type_getsockname3=size_t | |
20421 | else | |
20422 | echo "configure: failed program was:" >&5 | |
20423 | cat conftest.$ac_ext >&5 | |
20424 | rm -rf conftest* | |
20425 | cat > conftest.$ac_ext <<EOF | |
20426 | #line 20427 "configure" | |
20427 | #include "confdefs.h" | |
20428 | ||
20429 | #include <sys/types.h> | |
20430 | #include <sys/socket.h> | |
20431 | ||
20432 | int main() { | |
20433 | ||
20434 | int len; | |
20435 | getsockname(0, 0, &len); | |
20436 | ||
20437 | ; return 0; } | |
20438 | EOF | |
20439 | if { (eval echo configure:20440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
20440 | rm -rf conftest* | |
20441 | wx_cv_type_getsockname3=int | |
20442 | else | |
20443 | echo "configure: failed program was:" >&5 | |
20444 | cat conftest.$ac_ext >&5 | |
20445 | rm -rf conftest* | |
20446 | wx_cv_type_getsockname3=unknown | |
20447 | ||
20448 | fi | |
20449 | rm -f conftest* | |
20450 | ||
20451 | fi | |
20452 | rm -f conftest* | |
20453 | ||
20454 | fi | |
20455 | rm -f conftest* | |
20456 | ||
20457 | ac_ext=c | |
20458 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
20459 | ac_cpp='$CPP $CPPFLAGS' | |
20460 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
20461 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20462 | cross_compiling=$ac_cv_prog_cc_cross | |
20463 | ||
20464 | ||
20465 | fi | |
20466 | ||
20467 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
20468 | ||
20469 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
20470 | wxUSE_SOCKETS=no | |
20471 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
20472 | else | |
20473 | cat >> confdefs.h <<EOF | |
20474 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
20475 | EOF | |
20476 | ||
20477 | fi | |
20478 | fi | |
20479 | fi | |
20480 | ||
20481 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
20482 | cat >> confdefs.h <<\EOF | |
20483 | #define wxUSE_SOCKETS 1 | |
20484 | EOF | |
20485 | ||
20486 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
20487 | fi | |
20488 | ||
20489 | ||
20490 | if test "$wxUSE_GUI" = "yes"; then | |
20491 | ||
20492 | if test "$TOOLKIT" = "MAC"; then | |
20493 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 | |
20494 | wxUSE_JOYSTICK=no | |
20495 | fi | |
20496 | if test "$TOOLKIT" = "MOTIF"; then | |
20497 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 | |
20498 | wxUSE_JOYSTICK=no | |
20499 | fi | |
20500 | if test "$TOOLKIT" = "X11"; then | |
20501 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 | |
20502 | wxUSE_JOYSTICK=no | |
20503 | fi | |
20504 | ||
20505 | if test "$TOOLKIT" != "MSW"; then | |
20506 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
20507 | for ac_hdr in linux/joystick.h | |
20508 | do | |
20509 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
20510 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
20511 | echo "configure:20512: checking for $ac_hdr" >&5 | |
20512 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
20513 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20514 | else | |
20515 | cat > conftest.$ac_ext <<EOF | |
20516 | #line 20517 "configure" | |
20517 | #include "confdefs.h" | |
20518 | #include <$ac_hdr> | |
20519 | EOF | |
20520 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
20521 | { (eval echo configure:20522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
20522 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
20523 | if test -z "$ac_err"; then | |
20524 | rm -rf conftest* | |
20525 | eval "ac_cv_header_$ac_safe=yes" | |
20526 | else | |
20527 | echo "$ac_err" >&5 | |
20528 | echo "configure: failed program was:" >&5 | |
20529 | cat conftest.$ac_ext >&5 | |
20530 | rm -rf conftest* | |
20531 | eval "ac_cv_header_$ac_safe=no" | |
20532 | fi | |
20533 | rm -f conftest* | |
20534 | fi | |
20535 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
20536 | echo "$ac_t""yes" 1>&6 | |
20537 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20538 | cat >> confdefs.h <<EOF | |
20539 | #define $ac_tr_hdr 1 | |
20540 | EOF | |
20541 | ||
20542 | else | |
20543 | echo "$ac_t""no" 1>&6 | |
20544 | fi | |
20545 | done | |
20546 | ||
20547 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
20548 | wxUSE_JOYSTICK=no | |
20549 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 | |
20550 | fi | |
20551 | fi | |
20552 | fi | |
20553 | ||
20554 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
20555 | cat >> confdefs.h <<\EOF | |
20556 | #define wxUSE_JOYSTICK 1 | |
20557 | EOF | |
20558 | ||
20559 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
20560 | fi | |
20561 | fi | |
20562 | ||
20563 | ||
20564 | if test "$TOOLKIT" != "MSW"; then | |
20565 | ||
20566 | HAVE_DL_FUNCS=0 | |
20567 | HAVE_SHL_FUNCS=0 | |
20568 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
20569 | if test "$USE_DARWIN" = 1; then | |
20570 | HAVE_DL_FUNCS=1 | |
20571 | else | |
20572 | for ac_func in dlopen | |
20573 | do | |
20574 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
20575 | echo "configure:20576: checking for $ac_func" >&5 | |
20576 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
20577 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20578 | else | |
20579 | cat > conftest.$ac_ext <<EOF | |
20580 | #line 20581 "configure" | |
20581 | #include "confdefs.h" | |
20582 | /* System header to define __stub macros and hopefully few prototypes, | |
20583 | which can conflict with char $ac_func(); below. */ | |
20584 | #include <assert.h> | |
20585 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20586 | /* We use char because int might match the return type of a gcc2 | |
20587 | builtin and then its argument prototype would still apply. */ | |
20588 | char $ac_func(); | |
20589 | ||
20590 | int main() { | |
20591 | ||
20592 | /* The GNU C library defines this for functions which it implements | |
20593 | to always fail with ENOSYS. Some functions are actually named | |
20594 | something starting with __ and the normal name is an alias. */ | |
20595 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20596 | choke me | |
20597 | #else | |
20598 | $ac_func(); | |
20599 | #endif | |
20600 | ||
20601 | ; return 0; } | |
20602 | EOF | |
20603 | if { (eval echo configure:20604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
20604 | rm -rf conftest* | |
20605 | eval "ac_cv_func_$ac_func=yes" | |
20606 | else | |
20607 | echo "configure: failed program was:" >&5 | |
20608 | cat conftest.$ac_ext >&5 | |
20609 | rm -rf conftest* | |
20610 | eval "ac_cv_func_$ac_func=no" | |
20611 | fi | |
20612 | rm -f conftest* | |
20613 | fi | |
20614 | ||
20615 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20616 | echo "$ac_t""yes" 1>&6 | |
20617 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20618 | cat >> confdefs.h <<EOF | |
20619 | #define $ac_tr_func 1 | |
20620 | EOF | |
20621 | ||
20622 | cat >> confdefs.h <<\EOF | |
20623 | #define HAVE_DLOPEN 1 | |
20624 | EOF | |
20625 | ||
20626 | HAVE_DL_FUNCS=1 | |
20627 | ||
20628 | else | |
20629 | echo "$ac_t""no" 1>&6 | |
20630 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
20631 | echo "configure:20632: checking for dlopen in -ldl" >&5 | |
20632 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` | |
20633 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20634 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20635 | else | |
20636 | ac_save_LIBS="$LIBS" | |
20637 | LIBS="-ldl $LIBS" | |
20638 | cat > conftest.$ac_ext <<EOF | |
20639 | #line 20640 "configure" | |
20640 | #include "confdefs.h" | |
20641 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20642 | /* We use char because int might match the return type of a gcc2 | |
20643 | builtin and then its argument prototype would still apply. */ | |
20644 | char dlopen(); | |
20645 | ||
20646 | int main() { | |
20647 | dlopen() | |
20648 | ; return 0; } | |
20649 | EOF | |
20650 | if { (eval echo configure:20651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
20651 | rm -rf conftest* | |
20652 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20653 | else | |
20654 | echo "configure: failed program was:" >&5 | |
20655 | cat conftest.$ac_ext >&5 | |
20656 | rm -rf conftest* | |
20657 | eval "ac_cv_lib_$ac_lib_var=no" | |
20658 | fi | |
20659 | rm -f conftest* | |
20660 | LIBS="$ac_save_LIBS" | |
20661 | ||
20662 | fi | |
20663 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20664 | echo "$ac_t""yes" 1>&6 | |
20665 | ||
20666 | cat >> confdefs.h <<\EOF | |
20667 | #define HAVE_DLOPEN 1 | |
20668 | EOF | |
20669 | ||
20670 | HAVE_DL_FUNCS=1 | |
20671 | DL_LINK=" -ldl$DL_LINK" | |
20672 | ||
20673 | else | |
20674 | echo "$ac_t""no" 1>&6 | |
20675 | ||
20676 | for ac_func in shl_load | |
20677 | do | |
20678 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
20679 | echo "configure:20680: checking for $ac_func" >&5 | |
20680 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
20681 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20682 | else | |
20683 | cat > conftest.$ac_ext <<EOF | |
20684 | #line 20685 "configure" | |
20685 | #include "confdefs.h" | |
20686 | /* System header to define __stub macros and hopefully few prototypes, | |
20687 | which can conflict with char $ac_func(); below. */ | |
20688 | #include <assert.h> | |
20689 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20690 | /* We use char because int might match the return type of a gcc2 | |
20691 | builtin and then its argument prototype would still apply. */ | |
20692 | char $ac_func(); | |
20693 | ||
20694 | int main() { | |
20695 | ||
20696 | /* The GNU C library defines this for functions which it implements | |
20697 | to always fail with ENOSYS. Some functions are actually named | |
20698 | something starting with __ and the normal name is an alias. */ | |
20699 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20700 | choke me | |
20701 | #else | |
20702 | $ac_func(); | |
20703 | #endif | |
20704 | ||
20705 | ; return 0; } | |
20706 | EOF | |
20707 | if { (eval echo configure:20708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
20708 | rm -rf conftest* | |
20709 | eval "ac_cv_func_$ac_func=yes" | |
20710 | else | |
20711 | echo "configure: failed program was:" >&5 | |
20712 | cat conftest.$ac_ext >&5 | |
20713 | rm -rf conftest* | |
20714 | eval "ac_cv_func_$ac_func=no" | |
20715 | fi | |
20716 | rm -f conftest* | |
20717 | fi | |
20718 | ||
20719 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20720 | echo "$ac_t""yes" 1>&6 | |
20721 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20722 | cat >> confdefs.h <<EOF | |
20723 | #define $ac_tr_func 1 | |
20724 | EOF | |
20725 | ||
20726 | cat >> confdefs.h <<\EOF | |
20727 | #define HAVE_SHL_LOAD 1 | |
20728 | EOF | |
20729 | ||
20730 | HAVE_SHL_FUNCS=1 | |
20731 | ||
20732 | else | |
20733 | echo "$ac_t""no" 1>&6 | |
20734 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
20735 | echo "configure:20736: checking for dld in -lshl_load" >&5 | |
20736 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` | |
20737 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20738 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20739 | else | |
20740 | ac_save_LIBS="$LIBS" | |
20741 | LIBS="-lshl_load $LIBS" | |
20742 | cat > conftest.$ac_ext <<EOF | |
20743 | #line 20744 "configure" | |
20744 | #include "confdefs.h" | |
20745 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20746 | /* We use char because int might match the return type of a gcc2 | |
20747 | builtin and then its argument prototype would still apply. */ | |
20748 | char dld(); | |
20749 | ||
20750 | int main() { | |
20751 | dld() | |
20752 | ; return 0; } | |
20753 | EOF | |
20754 | if { (eval echo configure:20755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
20755 | rm -rf conftest* | |
20756 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20757 | else | |
20758 | echo "configure: failed program was:" >&5 | |
20759 | cat conftest.$ac_ext >&5 | |
20760 | rm -rf conftest* | |
20761 | eval "ac_cv_lib_$ac_lib_var=no" | |
20762 | fi | |
20763 | rm -f conftest* | |
20764 | LIBS="$ac_save_LIBS" | |
20765 | ||
20766 | fi | |
20767 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20768 | echo "$ac_t""yes" 1>&6 | |
20769 | ||
20770 | HAVE_SHL_FUNCS=1 | |
20771 | DL_LINK=" -ldld$DL_LINK" | |
20772 | ||
20773 | else | |
20774 | echo "$ac_t""no" 1>&6 | |
20775 | fi | |
20776 | ||
20777 | ||
20778 | fi | |
20779 | done | |
20780 | ||
20781 | ||
20782 | fi | |
20783 | ||
20784 | ||
20785 | fi | |
20786 | done | |
20787 | ||
20788 | ||
20789 | if test "$HAVE_DL_FUNCS" = 1; then | |
20790 | for ac_func in dlerror | |
20791 | do | |
20792 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
20793 | echo "configure:20794: checking for $ac_func" >&5 | |
20794 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
20795 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20796 | else | |
20797 | cat > conftest.$ac_ext <<EOF | |
20798 | #line 20799 "configure" | |
20799 | #include "confdefs.h" | |
20800 | /* System header to define __stub macros and hopefully few prototypes, | |
20801 | which can conflict with char $ac_func(); below. */ | |
20802 | #include <assert.h> | |
20803 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20804 | /* We use char because int might match the return type of a gcc2 | |
20805 | builtin and then its argument prototype would still apply. */ | |
20806 | char $ac_func(); | |
20807 | ||
20808 | int main() { | |
20809 | ||
20810 | /* The GNU C library defines this for functions which it implements | |
20811 | to always fail with ENOSYS. Some functions are actually named | |
20812 | something starting with __ and the normal name is an alias. */ | |
20813 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20814 | choke me | |
20815 | #else | |
20816 | $ac_func(); | |
20817 | #endif | |
20818 | ||
20819 | ; return 0; } | |
20820 | EOF | |
20821 | if { (eval echo configure:20822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
20822 | rm -rf conftest* | |
20823 | eval "ac_cv_func_$ac_func=yes" | |
20824 | else | |
20825 | echo "configure: failed program was:" >&5 | |
20826 | cat conftest.$ac_ext >&5 | |
20827 | rm -rf conftest* | |
20828 | eval "ac_cv_func_$ac_func=no" | |
20829 | fi | |
20830 | rm -f conftest* | |
20831 | fi | |
20832 | ||
20833 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20834 | echo "$ac_t""yes" 1>&6 | |
20835 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20836 | cat >> confdefs.h <<EOF | |
20837 | #define $ac_tr_func 1 | |
20838 | EOF | |
20839 | cat >> confdefs.h <<\EOF | |
20840 | #define HAVE_DLERROR 1 | |
20841 | EOF | |
20842 | ||
20843 | else | |
20844 | echo "$ac_t""no" 1>&6 | |
20845 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
20846 | echo "configure:20847: checking for dlerror in -ldl" >&5 | |
20847 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` | |
20848 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20849 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20850 | else | |
20851 | ac_save_LIBS="$LIBS" | |
20852 | LIBS="-ldl $LIBS" | |
20853 | cat > conftest.$ac_ext <<EOF | |
20854 | #line 20855 "configure" | |
20855 | #include "confdefs.h" | |
20856 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20857 | /* We use char because int might match the return type of a gcc2 | |
20858 | builtin and then its argument prototype would still apply. */ | |
20859 | char dlerror(); | |
20860 | ||
20861 | int main() { | |
20862 | dlerror() | |
20863 | ; return 0; } | |
20864 | EOF | |
20865 | if { (eval echo configure:20866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
20866 | rm -rf conftest* | |
20867 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20868 | else | |
20869 | echo "configure: failed program was:" >&5 | |
20870 | cat conftest.$ac_ext >&5 | |
20871 | rm -rf conftest* | |
20872 | eval "ac_cv_lib_$ac_lib_var=no" | |
20873 | fi | |
20874 | rm -f conftest* | |
20875 | LIBS="$ac_save_LIBS" | |
20876 | ||
20877 | fi | |
20878 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20879 | echo "$ac_t""yes" 1>&6 | |
20880 | cat >> confdefs.h <<\EOF | |
20881 | #define HAVE_DLERROR 1 | |
20882 | EOF | |
20883 | ||
20884 | else | |
20885 | echo "$ac_t""no" 1>&6 | |
20886 | fi | |
20887 | ||
20888 | fi | |
20889 | done | |
20890 | ||
20891 | fi | |
20892 | fi | |
20893 | ||
20894 | if test "$HAVE_DL_FUNCS" = 0; then | |
20895 | if test "$HAVE_SHL_FUNCS" = 0; then | |
20896 | if test "$USE_UNIX" = 1; then | |
20897 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
20898 | wxUSE_DYNAMIC_LOADER=no | |
20899 | wxUSE_DYNLIB_CLASS=no | |
20900 | else | |
20901 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
20902 | fi | |
20903 | fi | |
20904 | fi | |
20905 | fi | |
20906 | fi | |
20907 | ||
20908 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
20909 | cat >> confdefs.h <<\EOF | |
20910 | #define wxUSE_DYNAMIC_LOADER 1 | |
20911 | EOF | |
20912 | ||
20913 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
20914 | cat >> confdefs.h <<\EOF | |
20915 | #define wxUSE_DYNLIB_CLASS 1 | |
20916 | EOF | |
20917 | ||
20918 | fi | |
20919 | ||
20920 | ||
20921 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
20922 | cat >> confdefs.h <<\EOF | |
20923 | #define wxUSE_FONTMAP 1 | |
20924 | EOF | |
20925 | ||
20926 | fi | |
20927 | ||
20928 | if test "$wxUSE_UNICODE" = "yes" ; then | |
20929 | cat >> confdefs.h <<\EOF | |
20930 | #define wxUSE_UNICODE 1 | |
20931 | EOF | |
20932 | ||
20933 | ||
20934 | if test "$wxUSE_MSW" != 1; then | |
20935 | wxUSE_UNICODE_MSLU=no | |
20936 | fi | |
20937 | ||
20938 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
20939 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 | |
20940 | echo "configure:20941: checking for main in -lunicows" >&5 | |
20941 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` | |
20942 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20943 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20944 | else | |
20945 | ac_save_LIBS="$LIBS" | |
20946 | LIBS="-lunicows $LIBS" | |
20947 | cat > conftest.$ac_ext <<EOF | |
20948 | #line 20949 "configure" | |
20949 | #include "confdefs.h" | |
20950 | ||
20951 | int main() { | |
20952 | main() | |
20953 | ; return 0; } | |
20954 | EOF | |
20955 | if { (eval echo configure:20956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
20956 | rm -rf conftest* | |
20957 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20958 | else | |
20959 | echo "configure: failed program was:" >&5 | |
20960 | cat conftest.$ac_ext >&5 | |
20961 | rm -rf conftest* | |
20962 | eval "ac_cv_lib_$ac_lib_var=no" | |
20963 | fi | |
20964 | rm -f conftest* | |
20965 | LIBS="$ac_save_LIBS" | |
20966 | ||
20967 | fi | |
20968 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20969 | echo "$ac_t""yes" 1>&6 | |
20970 | ||
20971 | cat >> confdefs.h <<\EOF | |
20972 | #define wxUSE_UNICODE_MSLU 1 | |
20973 | EOF | |
20974 | ||
20975 | ||
20976 | else | |
20977 | echo "$ac_t""no" 1>&6 | |
20978 | ||
20979 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. | |
20980 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
20981 | wxUSE_UNICODE_MSLU=no | |
20982 | ||
20983 | fi | |
20984 | ||
20985 | fi | |
20986 | fi | |
20987 | ||
20988 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
20989 | cat >> confdefs.h <<\EOF | |
20990 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
20991 | EOF | |
20992 | ||
20993 | fi | |
20994 | ||
20995 | ||
20996 | ||
20997 | IODBC_C_SRC="" | |
20998 | if test "$wxUSE_ODBC" = "yes" ; then | |
20999 | cat >> confdefs.h <<\EOF | |
21000 | #define wxUSE_ODBC 1 | |
21001 | EOF | |
21002 | ||
21003 | WXODBCFLAG="-D_IODBC_" | |
21004 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
21005 | fi | |
21006 | ||
21007 | ||
21008 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
21009 | cat >> confdefs.h <<\EOF | |
21010 | #define wxUSE_POSTSCRIPT 1 | |
21011 | EOF | |
21012 | ||
21013 | fi | |
21014 | ||
21015 | cat >> confdefs.h <<\EOF | |
21016 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
21017 | EOF | |
21018 | ||
21019 | ||
21020 | cat >> confdefs.h <<\EOF | |
21021 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
21022 | EOF | |
21023 | ||
21024 | ||
21025 | ||
21026 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
21027 | cat >> confdefs.h <<\EOF | |
21028 | #define wxUSE_CONSTRAINTS 1 | |
21029 | EOF | |
21030 | ||
21031 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
21032 | fi | |
21033 | ||
21034 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
21035 | ||
21036 | ||
21037 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
21038 | cat >> confdefs.h <<\EOF | |
21039 | #define wxUSE_MDI_ARCHITECTURE 1 | |
21040 | EOF | |
21041 | ||
21042 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
21043 | fi | |
21044 | fi | |
21045 | ||
21046 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
21047 | cat >> confdefs.h <<\EOF | |
21048 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
21049 | EOF | |
21050 | ||
21051 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
21052 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
21053 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
21054 | fi | |
21055 | fi | |
21056 | ||
21057 | if test "$wxUSE_HELP" = "yes"; then | |
21058 | cat >> confdefs.h <<\EOF | |
21059 | #define wxUSE_HELP 1 | |
21060 | EOF | |
21061 | ||
21062 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
21063 | ||
21064 | if test "$wxUSE_MSW" = 1; then | |
21065 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
21066 | cat >> confdefs.h <<\EOF | |
21067 | #define wxUSE_MS_HTML_HELP 1 | |
21068 | EOF | |
21069 | ||
21070 | fi | |
21071 | fi | |
21072 | ||
21073 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
21074 | if test "$wxUSE_HTML" = "yes"; then | |
21075 | cat >> confdefs.h <<\EOF | |
21076 | #define wxUSE_WXHTML_HELP 1 | |
21077 | EOF | |
21078 | ||
21079 | else | |
21080 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
21081 | wxUSE_WXHTML_HELP=no | |
21082 | fi | |
21083 | fi | |
21084 | fi | |
21085 | ||
21086 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
21087 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
21088 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 | |
21089 | else | |
21090 | cat >> confdefs.h <<\EOF | |
21091 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
21092 | EOF | |
21093 | ||
21094 | fi | |
21095 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
21096 | fi | |
21097 | ||
21098 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
21099 | cat >> confdefs.h <<\EOF | |
21100 | #define wxUSE_PROLOGIO 1 | |
21101 | EOF | |
21102 | ||
21103 | ALL_OBJECTS="$ALL_OBJECTS parser.o" | |
21104 | fi | |
21105 | ||
21106 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
21107 | if test "$wxUSE_NANOX" = "yes"; then | |
21108 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 | |
21109 | else | |
21110 | cat >> confdefs.h <<\EOF | |
21111 | #define wxUSE_RESOURCES 1 | |
21112 | EOF | |
21113 | ||
21114 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
21115 | fi | |
21116 | if test "$wxUSE_PROLOGIO" != "yes" ; then | |
21117 | ALL_OBJECTS="$ALL_OBJECTS parser.o" | |
21118 | fi | |
21119 | fi | |
21120 | ||
21121 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
21122 | cat >> confdefs.h <<\EOF | |
21123 | #define wxUSE_X_RESOURCES 1 | |
21124 | EOF | |
21125 | ||
21126 | fi | |
21127 | ||
21128 | ||
21129 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
21130 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
21131 | -o "$wxUSE_OLE" = "yes" \ | |
21132 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
21133 | for ac_hdr in ole2.h | |
21134 | do | |
21135 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
21136 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
21137 | echo "configure:21138: checking for $ac_hdr" >&5 | |
21138 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
21139 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21140 | else | |
21141 | cat > conftest.$ac_ext <<EOF | |
21142 | #line 21143 "configure" | |
21143 | #include "confdefs.h" | |
21144 | #include <$ac_hdr> | |
21145 | EOF | |
21146 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
21147 | { (eval echo configure:21148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
21148 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
21149 | if test -z "$ac_err"; then | |
21150 | rm -rf conftest* | |
21151 | eval "ac_cv_header_$ac_safe=yes" | |
21152 | else | |
21153 | echo "$ac_err" >&5 | |
21154 | echo "configure: failed program was:" >&5 | |
21155 | cat conftest.$ac_ext >&5 | |
21156 | rm -rf conftest* | |
21157 | eval "ac_cv_header_$ac_safe=no" | |
21158 | fi | |
21159 | rm -f conftest* | |
21160 | fi | |
21161 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
21162 | echo "$ac_t""yes" 1>&6 | |
21163 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
21164 | cat >> confdefs.h <<EOF | |
21165 | #define $ac_tr_hdr 1 | |
21166 | EOF | |
21167 | ||
21168 | else | |
21169 | echo "$ac_t""no" 1>&6 | |
21170 | fi | |
21171 | done | |
21172 | ||
21173 | ||
21174 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
21175 | if test "$GCC" = yes ; then | |
21176 | ||
21177 | ac_ext=C | |
21178 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
21179 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21180 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
21181 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
21182 | cross_compiling=$ac_cv_prog_cxx_cross | |
21183 | ||
21184 | ||
21185 | echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6 | |
21186 | echo "configure:21187: checking if g++ requires -fvtable-thunks" >&5 | |
21187 | cat > conftest.$ac_ext <<EOF | |
21188 | #line 21189 "configure" | |
21189 | #include "confdefs.h" | |
21190 | #include <windows.h> | |
21191 | #include <ole2.h> | |
21192 | int main() { | |
21193 | ||
21194 | ; return 0; } | |
21195 | EOF | |
21196 | if { (eval echo configure:21197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
21197 | rm -rf conftest* | |
21198 | echo "$ac_t""no" 1>&6 | |
21199 | else | |
21200 | echo "configure: failed program was:" >&5 | |
21201 | cat conftest.$ac_ext >&5 | |
21202 | rm -rf conftest* | |
21203 | echo "$ac_t""yes" 1>&6 | |
21204 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
21205 | fi | |
21206 | rm -f conftest* | |
21207 | ac_ext=c | |
21208 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
21209 | ac_cpp='$CPP $CPPFLAGS' | |
21210 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
21211 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
21212 | cross_compiling=$ac_cv_prog_cc_cross | |
21213 | ||
21214 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
21215 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" | |
21216 | cat >> confdefs.h <<\EOF | |
21217 | #define wxUSE_OLE 1 | |
21218 | EOF | |
21219 | ||
21220 | ||
21221 | fi | |
21222 | ||
21223 | cat >> confdefs.h <<\EOF | |
21224 | #define wxUSE_DATAOBJ 1 | |
21225 | EOF | |
21226 | ||
21227 | else | |
21228 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
21229 | ||
21230 | wxUSE_CLIPBOARD=no | |
21231 | wxUSE_DRAG_AND_DROP=no | |
21232 | wxUSE_DATAOBJ=no | |
21233 | wxUSE_OLE=no | |
21234 | fi | |
21235 | ||
21236 | if test "$wxUSE_METAFILE" = "yes"; then | |
21237 | cat >> confdefs.h <<\EOF | |
21238 | #define wxUSE_METAFILE 1 | |
21239 | EOF | |
21240 | ||
21241 | ||
21242 | cat >> confdefs.h <<\EOF | |
21243 | #define wxUSE_ENH_METAFILE 1 | |
21244 | EOF | |
21245 | ||
21246 | fi | |
21247 | fi | |
21248 | ||
21249 | if test "$wxUSE_IPC" = "yes"; then | |
21250 | if test "$wxUSE_SOCKETS" != "yes"; then | |
21251 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 | |
21252 | fi | |
21253 | ||
21254 | cat >> confdefs.h <<\EOF | |
21255 | #define wxUSE_IPC 1 | |
21256 | EOF | |
21257 | ||
21258 | fi | |
21259 | ||
21260 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
21261 | if test "$wxUSE_MGL" = 1; then | |
21262 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 | |
21263 | wxUSE_CLIPBOARD=no | |
21264 | fi | |
21265 | ||
21266 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
21267 | cat >> confdefs.h <<\EOF | |
21268 | #define wxUSE_CLIPBOARD 1 | |
21269 | EOF | |
21270 | ||
21271 | ||
21272 | cat >> confdefs.h <<\EOF | |
21273 | #define wxUSE_DATAOBJ 1 | |
21274 | EOF | |
21275 | ||
21276 | fi | |
21277 | fi | |
21278 | ||
21279 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
21280 | if test "$wxUSE_GTK" = 1; then | |
21281 | if test "$WXGTK12" != 1; then | |
21282 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 | |
21283 | wxUSE_DRAG_AND_DROP=no | |
21284 | fi | |
21285 | fi | |
21286 | ||
21287 | if test "$wxUSE_MOTIF" = 1; then | |
21288 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 | |
21289 | wxUSE_DRAG_AND_DROP=no | |
21290 | fi | |
21291 | ||
21292 | if test "$wxUSE_X11" = 1; then | |
21293 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 | |
21294 | wxUSE_DRAG_AND_DROP=no | |
21295 | fi | |
21296 | ||
21297 | if test "$wxUSE_MGL" = 1; then | |
21298 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 | |
21299 | wxUSE_DRAG_AND_DROP=no | |
21300 | fi | |
21301 | ||
21302 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
21303 | cat >> confdefs.h <<\EOF | |
21304 | #define wxUSE_DRAG_AND_DROP 1 | |
21305 | EOF | |
21306 | ||
21307 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
21308 | fi | |
21309 | ||
21310 | fi | |
21311 | ||
21312 | if test "$wxUSE_SPLINES" = "yes" ; then | |
21313 | cat >> confdefs.h <<\EOF | |
21314 | #define wxUSE_SPLINES 1 | |
21315 | EOF | |
21316 | ||
21317 | fi | |
21318 | ||
21319 | ||
21320 | USES_CONTROLS=0 | |
21321 | if test "$wxUSE_CONTROLS" = "yes"; then | |
21322 | USES_CONTROLS=1 | |
21323 | fi | |
21324 | ||
21325 | if test "$wxUSE_ACCEL" = "yes"; then | |
21326 | cat >> confdefs.h <<\EOF | |
21327 | #define wxUSE_ACCEL 1 | |
21328 | EOF | |
21329 | ||
21330 | USES_CONTROLS=1 | |
21331 | fi | |
21332 | ||
21333 | if test "$wxUSE_BUTTON" = "yes"; then | |
21334 | cat >> confdefs.h <<\EOF | |
21335 | #define wxUSE_BUTTON 1 | |
21336 | EOF | |
21337 | ||
21338 | USES_CONTROLS=1 | |
21339 | fi | |
21340 | ||
21341 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
21342 | cat >> confdefs.h <<\EOF | |
21343 | #define wxUSE_BMPBUTTON 1 | |
21344 | EOF | |
21345 | ||
21346 | USES_CONTROLS=1 | |
21347 | fi | |
21348 | ||
21349 | if test "$wxUSE_CALCTRL" = "yes"; then | |
21350 | cat >> confdefs.h <<\EOF | |
21351 | #define wxUSE_CALENDARCTRL 1 | |
21352 | EOF | |
21353 | ||
21354 | USES_CONTROLS=1 | |
21355 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
21356 | fi | |
21357 | ||
21358 | if test "$wxUSE_CARET" = "yes"; then | |
21359 | cat >> confdefs.h <<\EOF | |
21360 | #define wxUSE_CARET 1 | |
21361 | EOF | |
21362 | ||
21363 | USES_CONTROLS=1 | |
21364 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
21365 | fi | |
21366 | ||
21367 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
21368 | cat >> confdefs.h <<\EOF | |
21369 | #define wxUSE_COMBOBOX 1 | |
21370 | EOF | |
21371 | ||
21372 | USES_CONTROLS=1 | |
21373 | fi | |
21374 | ||
21375 | if test "$wxUSE_CHOICE" = "yes"; then | |
21376 | cat >> confdefs.h <<\EOF | |
21377 | #define wxUSE_CHOICE 1 | |
21378 | EOF | |
21379 | ||
21380 | USES_CONTROLS=1 | |
21381 | fi | |
21382 | ||
21383 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
21384 | cat >> confdefs.h <<\EOF | |
21385 | #define wxUSE_CHECKBOX 1 | |
21386 | EOF | |
21387 | ||
21388 | USES_CONTROLS=1 | |
21389 | fi | |
21390 | ||
21391 | if test "$wxUSE_CHECKLST" = "yes"; then | |
21392 | cat >> confdefs.h <<\EOF | |
21393 | #define wxUSE_CHECKLISTBOX 1 | |
21394 | EOF | |
21395 | ||
21396 | USES_CONTROLS=1 | |
21397 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
21398 | fi | |
21399 | ||
21400 | if test "$wxUSE_DISPLAY" = "yes"; then | |
21401 | cat >> confdefs.h <<\EOF | |
21402 | #define wxUSE_DISPLAY 1 | |
21403 | EOF | |
21404 | ||
21405 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
21406 | fi | |
21407 | ||
21408 | if test "$wxUSE_GAUGE" = "yes"; then | |
21409 | cat >> confdefs.h <<\EOF | |
21410 | #define wxUSE_GAUGE 1 | |
21411 | EOF | |
21412 | ||
21413 | USES_CONTROLS=1 | |
21414 | fi | |
21415 | ||
21416 | if test "$wxUSE_NEW_GRID" = "yes"; then | |
21417 | wxUSE_GRID="yes" | |
21418 | cat >> confdefs.h <<\EOF | |
21419 | #define wxUSE_NEW_GRID 1 | |
21420 | EOF | |
21421 | ||
21422 | USES_CONTROLS=1 | |
21423 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" | |
21424 | fi | |
21425 | ||
21426 | if test "$wxUSE_GRID" = "yes"; then | |
21427 | cat >> confdefs.h <<\EOF | |
21428 | #define wxUSE_GRID 1 | |
21429 | EOF | |
21430 | ||
21431 | USES_CONTROLS=1 | |
21432 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
21433 | fi | |
21434 | ||
21435 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
21436 | cat >> confdefs.h <<\EOF | |
21437 | #define wxUSE_IMAGLIST 1 | |
21438 | EOF | |
21439 | ||
21440 | fi | |
21441 | ||
21442 | if test "$wxUSE_LISTBOX" = "yes"; then | |
21443 | cat >> confdefs.h <<\EOF | |
21444 | #define wxUSE_LISTBOX 1 | |
21445 | EOF | |
21446 | ||
21447 | USES_CONTROLS=1 | |
21448 | fi | |
21449 | ||
21450 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
21451 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
21452 | cat >> confdefs.h <<\EOF | |
21453 | #define wxUSE_LISTCTRL 1 | |
21454 | EOF | |
21455 | ||
21456 | USES_CONTROLS=1 | |
21457 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
21458 | else | |
21459 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
21460 | fi | |
21461 | fi | |
21462 | ||
21463 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
21464 | cat >> confdefs.h <<\EOF | |
21465 | #define wxUSE_NOTEBOOK 1 | |
21466 | EOF | |
21467 | ||
21468 | USES_CONTROLS=1 | |
21469 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
21470 | fi | |
21471 | ||
21472 | if test "$wxUSE_PROPSHEET" = "yes"; then | |
21473 | cat >> confdefs.h <<\EOF | |
21474 | #define wxUSE_PROPSHEET 1 | |
21475 | EOF | |
21476 | ||
21477 | USES_CONTROLS=1 | |
21478 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
21479 | fi | |
21480 | ||
21481 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
21482 | cat >> confdefs.h <<\EOF | |
21483 | #define wxUSE_RADIOBOX 1 | |
21484 | EOF | |
21485 | ||
21486 | USES_CONTROLS=1 | |
21487 | fi | |
21488 | ||
21489 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
21490 | cat >> confdefs.h <<\EOF | |
21491 | #define wxUSE_RADIOBTN 1 | |
21492 | EOF | |
21493 | ||
21494 | USES_CONTROLS=1 | |
21495 | fi | |
21496 | ||
21497 | if test "$wxUSE_SASH" = "yes"; then | |
21498 | cat >> confdefs.h <<\EOF | |
21499 | #define wxUSE_SASH 1 | |
21500 | EOF | |
21501 | ||
21502 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
21503 | fi | |
21504 | ||
21505 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
21506 | cat >> confdefs.h <<\EOF | |
21507 | #define wxUSE_SCROLLBAR 1 | |
21508 | EOF | |
21509 | ||
21510 | USES_CONTROLS=1 | |
21511 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
21512 | fi | |
21513 | ||
21514 | if test "$wxUSE_SLIDER" = "yes"; then | |
21515 | cat >> confdefs.h <<\EOF | |
21516 | #define wxUSE_SLIDER 1 | |
21517 | EOF | |
21518 | ||
21519 | USES_CONTROLS=1 | |
21520 | fi | |
21521 | ||
21522 | if test "$wxUSE_SPINBTN" = "yes"; then | |
21523 | cat >> confdefs.h <<\EOF | |
21524 | #define wxUSE_SPINBTN 1 | |
21525 | EOF | |
21526 | ||
21527 | USES_CONTROLS=1 | |
21528 | fi | |
21529 | ||
21530 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
21531 | cat >> confdefs.h <<\EOF | |
21532 | #define wxUSE_SPINCTRL 1 | |
21533 | EOF | |
21534 | ||
21535 | USES_CONTROLS=1 | |
21536 | fi | |
21537 | ||
21538 | if test "$wxUSE_SPLITTER" = "yes"; then | |
21539 | cat >> confdefs.h <<\EOF | |
21540 | #define wxUSE_SPLITTER 1 | |
21541 | EOF | |
21542 | ||
21543 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
21544 | fi | |
21545 | ||
21546 | if test "$wxUSE_STATBMP" = "yes"; then | |
21547 | cat >> confdefs.h <<\EOF | |
21548 | #define wxUSE_STATBMP 1 | |
21549 | EOF | |
21550 | ||
21551 | USES_CONTROLS=1 | |
21552 | fi | |
21553 | ||
21554 | if test "$wxUSE_STATBOX" = "yes"; then | |
21555 | cat >> confdefs.h <<\EOF | |
21556 | #define wxUSE_STATBOX 1 | |
21557 | EOF | |
21558 | ||
21559 | USES_CONTROLS=1 | |
21560 | fi | |
21561 | ||
21562 | if test "$wxUSE_STATTEXT" = "yes"; then | |
21563 | cat >> confdefs.h <<\EOF | |
21564 | #define wxUSE_STATTEXT 1 | |
21565 | EOF | |
21566 | ||
21567 | USES_CONTROLS=1 | |
21568 | fi | |
21569 | ||
21570 | if test "$wxUSE_STATLINE" = "yes"; then | |
21571 | cat >> confdefs.h <<\EOF | |
21572 | #define wxUSE_STATLINE 1 | |
21573 | EOF | |
21574 | ||
21575 | USES_CONTROLS=1 | |
21576 | fi | |
21577 | ||
21578 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
21579 | cat >> confdefs.h <<\EOF | |
21580 | #define wxUSE_STATUSBAR 1 | |
21581 | EOF | |
21582 | ||
21583 | USES_CONTROLS=1 | |
21584 | ||
21585 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
21586 | fi | |
21587 | ||
21588 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
21589 | cat >> confdefs.h <<\EOF | |
21590 | #define wxUSE_TAB_DIALOG 1 | |
21591 | EOF | |
21592 | ||
21593 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
21594 | fi | |
21595 | ||
21596 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
21597 | cat >> confdefs.h <<\EOF | |
21598 | #define wxUSE_TEXTCTRL 1 | |
21599 | EOF | |
21600 | ||
21601 | USES_CONTROLS=1 | |
21602 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
21603 | fi | |
21604 | ||
21605 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
21606 | if test "$wxUSE_MAC" = 1; then | |
21607 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 | |
21608 | wxUSE_TOGGLEBTN=no | |
21609 | fi | |
21610 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
21611 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 | |
21612 | wxUSE_TOGGLEBTN=no | |
21613 | fi | |
21614 | ||
21615 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
21616 | cat >> confdefs.h <<\EOF | |
21617 | #define wxUSE_TOGGLEBTN 1 | |
21618 | EOF | |
21619 | ||
21620 | USES_CONTROLS=1 | |
21621 | fi | |
21622 | fi | |
21623 | ||
21624 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
21625 | cat >> confdefs.h <<\EOF | |
21626 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
21627 | EOF | |
21628 | ||
21629 | wxUSE_TOOLBAR="yes" | |
21630 | USES_CONTROLS=1 | |
21631 | fi | |
21632 | ||
21633 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
21634 | cat >> confdefs.h <<\EOF | |
21635 | #define wxUSE_TOOLBAR 1 | |
21636 | EOF | |
21637 | ||
21638 | USES_CONTROLS=1 | |
21639 | ||
21640 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
21641 | wxUSE_TOOLBAR_NATIVE="yes" | |
21642 | fi | |
21643 | ||
21644 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
21645 | cat >> confdefs.h <<\EOF | |
21646 | #define wxUSE_TOOLBAR_NATIVE 1 | |
21647 | EOF | |
21648 | ||
21649 | USES_CONTROLS=1 | |
21650 | fi | |
21651 | ||
21652 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
21653 | fi | |
21654 | ||
21655 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
21656 | if test "$wxUSE_MOTIF" = 1; then | |
21657 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 | |
21658 | else | |
21659 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
21660 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 | |
21661 | else | |
21662 | cat >> confdefs.h <<\EOF | |
21663 | #define wxUSE_TOOLTIPS 1 | |
21664 | EOF | |
21665 | ||
21666 | fi | |
21667 | fi | |
21668 | fi | |
21669 | ||
21670 | if test "$wxUSE_TREECTRL" = "yes"; then | |
21671 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
21672 | cat >> confdefs.h <<\EOF | |
21673 | #define wxUSE_TREECTRL 1 | |
21674 | EOF | |
21675 | ||
21676 | USES_CONTROLS=1 | |
21677 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
21678 | else | |
21679 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
21680 | fi | |
21681 | fi | |
21682 | ||
21683 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
21684 | if test "$wxUSE_MAC" = 1; then | |
21685 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 | |
21686 | else | |
21687 | if test "$wxUSE_MOTIF" = 1; then | |
21688 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 | |
21689 | else | |
21690 | if test "$wxUSE_PM" = 1; then | |
21691 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 | |
21692 | else | |
21693 | cat >> confdefs.h <<\EOF | |
21694 | #define wxUSE_POPUPWIN 1 | |
21695 | EOF | |
21696 | ||
21697 | ||
21698 | USES_CONTROLS=1 | |
21699 | fi | |
21700 | fi | |
21701 | fi | |
21702 | fi | |
21703 | ||
21704 | if test "$wxUSE_TIPWINDOW" = "yes"; then | |
21705 | if test "$wxUSE_PM" = 1; then | |
21706 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 | |
21707 | else | |
21708 | cat >> confdefs.h <<\EOF | |
21709 | #define wxUSE_TIPWINDOW 1 | |
21710 | EOF | |
21711 | ||
21712 | fi | |
21713 | fi | |
21714 | ||
21715 | if test "$USES_CONTROLS" = 1; then | |
21716 | cat >> confdefs.h <<\EOF | |
21717 | #define wxUSE_CONTROLS 1 | |
21718 | EOF | |
21719 | ||
21720 | fi | |
21721 | ||
21722 | ||
21723 | if test "$wxUSE_TREELAYOUT" = "yes"; then | |
21724 | cat >> confdefs.h <<\EOF | |
21725 | #define wxUSE_TREELAYOUT 1 | |
21726 | EOF | |
21727 | ||
21728 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
21729 | fi | |
21730 | ||
21731 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
21732 | cat >> confdefs.h <<\EOF | |
21733 | #define wxUSE_DRAGIMAGE 1 | |
21734 | EOF | |
21735 | ||
21736 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
21737 | fi | |
21738 | ||
21739 | if test "$wxUSE_MENUS" = "yes"; then | |
21740 | cat >> confdefs.h <<\EOF | |
21741 | #define wxUSE_MENUS 1 | |
21742 | EOF | |
21743 | ||
21744 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
21745 | fi | |
21746 | ||
21747 | if test "$wxUSE_METAFILE" = "yes"; then | |
21748 | cat >> confdefs.h <<\EOF | |
21749 | #define wxUSE_METAFILE 1 | |
21750 | EOF | |
21751 | ||
21752 | fi | |
21753 | ||
21754 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
21755 | cat >> confdefs.h <<\EOF | |
21756 | #define wxUSE_MIMETYPE 1 | |
21757 | EOF | |
21758 | ||
21759 | fi | |
21760 | ||
21761 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
21762 | cat >> confdefs.h <<\EOF | |
21763 | #define wxUSE_SYSTEM_OPTIONS 1 | |
21764 | EOF | |
21765 | ||
21766 | if test "$TOOLKIT" = "MSW"; then | |
21767 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
21768 | fi | |
21769 | ||
21770 | fi | |
21771 | ||
21772 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
21773 | if test "$wxUSE_SOCKETS" != "yes"; then | |
21774 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 | |
21775 | wxUSE_PROTOCOL=no | |
21776 | fi | |
21777 | ||
21778 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
21779 | cat >> confdefs.h <<\EOF | |
21780 | #define wxUSE_PROTOCOL 1 | |
21781 | EOF | |
21782 | ||
21783 | ||
21784 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
21785 | cat >> confdefs.h <<\EOF | |
21786 | #define wxUSE_PROTOCOL_HTTP 1 | |
21787 | EOF | |
21788 | ||
21789 | fi | |
21790 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
21791 | cat >> confdefs.h <<\EOF | |
21792 | #define wxUSE_PROTOCOL_FTP 1 | |
21793 | EOF | |
21794 | ||
21795 | fi | |
21796 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
21797 | cat >> confdefs.h <<\EOF | |
21798 | #define wxUSE_PROTOCOL_FILE 1 | |
21799 | EOF | |
21800 | ||
21801 | fi | |
21802 | fi | |
21803 | fi | |
21804 | ||
21805 | if test "$wxUSE_URL" = "yes"; then | |
21806 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
21807 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 | |
21808 | wxUSE_URL=no | |
21809 | fi | |
21810 | if test "$wxUSE_URL" = "yes"; then | |
21811 | cat >> confdefs.h <<\EOF | |
21812 | #define wxUSE_URL 1 | |
21813 | EOF | |
21814 | ||
21815 | fi | |
21816 | fi | |
21817 | ||
21818 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
21819 | cat >> confdefs.h <<\EOF | |
21820 | #define wxUSE_MINIFRAME 1 | |
21821 | EOF | |
21822 | ||
21823 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
21824 | fi | |
21825 | ||
21826 | if test "$wxUSE_HTML" = "yes"; then | |
21827 | cat >> confdefs.h <<\EOF | |
21828 | #define wxUSE_HTML 1 | |
21829 | EOF | |
21830 | ||
21831 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
21832 | fi | |
21833 | ||
21834 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
21835 | cat >> confdefs.h <<\EOF | |
21836 | #define wxUSE_VALIDATORS 1 | |
21837 | EOF | |
21838 | ||
21839 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
21840 | fi | |
21841 | ||
21842 | if test "$wxUSE_PALETTE" = "yes" ; then | |
21843 | cat >> confdefs.h <<\EOF | |
21844 | #define wxUSE_PALETTE 1 | |
21845 | EOF | |
21846 | ||
21847 | fi | |
21848 | ||
21849 | if test "$wxUSE_IMAGE" = "yes" ; then | |
21850 | cat >> confdefs.h <<\EOF | |
21851 | #define wxUSE_IMAGE 1 | |
21852 | EOF | |
21853 | ||
21854 | fi | |
21855 | ||
21856 | if test "$wxUSE_GIF" = "yes" ; then | |
21857 | cat >> confdefs.h <<\EOF | |
21858 | #define wxUSE_GIF 1 | |
21859 | EOF | |
21860 | ||
21861 | fi | |
21862 | ||
21863 | if test "$wxUSE_PCX" = "yes" ; then | |
21864 | cat >> confdefs.h <<\EOF | |
21865 | #define wxUSE_PCX 1 | |
21866 | EOF | |
21867 | ||
21868 | fi | |
21869 | ||
21870 | if test "$wxUSE_IFF" = "yes" ; then | |
21871 | cat >> confdefs.h <<\EOF | |
21872 | #define wxUSE_IFF 1 | |
21873 | EOF | |
21874 | ||
21875 | fi | |
21876 | ||
21877 | if test "$wxUSE_PNM" = "yes" ; then | |
21878 | cat >> confdefs.h <<\EOF | |
21879 | #define wxUSE_PNM 1 | |
21880 | EOF | |
21881 | ||
21882 | fi | |
21883 | ||
21884 | if test "$wxUSE_XPM" = "yes" ; then | |
21885 | cat >> confdefs.h <<\EOF | |
21886 | #define wxUSE_XPM 1 | |
21887 | EOF | |
21888 | ||
21889 | fi | |
21890 | ||
21891 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
21892 | cat >> confdefs.h <<\EOF | |
21893 | #define wxUSE_ICO_CUR 1 | |
21894 | EOF | |
21895 | ||
21896 | fi | |
21897 | ||
21898 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
21899 | LIBS=" -lunicows $LIBS" | |
21900 | fi | |
21901 | ||
21902 | ||
21903 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
21904 | cat >> confdefs.h <<\EOF | |
21905 | #define wxUSE_CHOICEDLG 1 | |
21906 | EOF | |
21907 | ||
21908 | fi | |
21909 | ||
21910 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
21911 | cat >> confdefs.h <<\EOF | |
21912 | #define wxUSE_COLOURDLG 1 | |
21913 | EOF | |
21914 | ||
21915 | fi | |
21916 | ||
21917 | if test "$wxUSE_FILEDLG" = "yes"; then | |
21918 | cat >> confdefs.h <<\EOF | |
21919 | #define wxUSE_FILEDLG 1 | |
21920 | EOF | |
21921 | ||
21922 | fi | |
21923 | ||
21924 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
21925 | cat >> confdefs.h <<\EOF | |
21926 | #define wxUSE_FINDREPLDLG 1 | |
21927 | EOF | |
21928 | ||
21929 | fi | |
21930 | ||
21931 | if test "$wxUSE_FONTDLG" = "yes"; then | |
21932 | cat >> confdefs.h <<\EOF | |
21933 | #define wxUSE_FONTDLG 1 | |
21934 | EOF | |
21935 | ||
21936 | fi | |
21937 | ||
21938 | if test "$wxUSE_DIRDLG" = "yes"; then | |
21939 | if test "$wxUSE_TREECTRL" != "yes"; then | |
21940 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
21941 | else | |
21942 | cat >> confdefs.h <<\EOF | |
21943 | #define wxUSE_DIRDLG 1 | |
21944 | EOF | |
21945 | ||
21946 | fi | |
21947 | fi | |
21948 | ||
21949 | if test "$wxUSE_MSGDLG" = "yes"; then | |
21950 | cat >> confdefs.h <<\EOF | |
21951 | #define wxUSE_MSGDLG 1 | |
21952 | EOF | |
21953 | ||
21954 | fi | |
21955 | ||
21956 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
21957 | cat >> confdefs.h <<\EOF | |
21958 | #define wxUSE_NUMBERDLG 1 | |
21959 | EOF | |
21960 | ||
21961 | fi | |
21962 | ||
21963 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
21964 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
21965 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
21966 | else | |
21967 | cat >> confdefs.h <<\EOF | |
21968 | #define wxUSE_PROGRESSDLG 1 | |
21969 | EOF | |
21970 | ||
21971 | fi | |
21972 | fi | |
21973 | ||
21974 | if test "$wxUSE_SPLASH" = "yes"; then | |
21975 | cat >> confdefs.h <<\EOF | |
21976 | #define wxUSE_SPLASH 1 | |
21977 | EOF | |
21978 | ||
21979 | fi | |
21980 | ||
21981 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
21982 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
21983 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
21984 | else | |
21985 | cat >> confdefs.h <<\EOF | |
21986 | #define wxUSE_STARTUP_TIPS 1 | |
21987 | EOF | |
21988 | ||
21989 | fi | |
21990 | fi | |
21991 | ||
21992 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
21993 | cat >> confdefs.h <<\EOF | |
21994 | #define wxUSE_TEXTDLG 1 | |
21995 | EOF | |
21996 | ||
21997 | fi | |
21998 | ||
21999 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
22000 | cat >> confdefs.h <<\EOF | |
22001 | #define wxUSE_WIZARDDLG 1 | |
22002 | EOF | |
22003 | ||
22004 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
22005 | fi | |
22006 | ||
22007 | ||
22008 | if test "$cross_compiling" = "yes"; then | |
22009 | OSINFO="\"$host\"" | |
22010 | else | |
22011 | OSINFO=`uname -s -r -m` | |
22012 | OSINFO="\"$OSINFO\"" | |
22013 | fi | |
22014 | ||
22015 | cat >> confdefs.h <<EOF | |
22016 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
22017 | EOF | |
22018 | ||
22019 | ||
22020 | ||
22021 | if test "x$prefix" != "xNONE"; then | |
22022 | wxPREFIX=$prefix | |
22023 | else | |
22024 | wxPREFIX=$ac_default_prefix | |
22025 | fi | |
22026 | ||
22027 | cat >> confdefs.h <<EOF | |
22028 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
22029 | EOF | |
22030 | ||
22031 | ||
22032 | top_builddir=`pwd` | |
22033 | ||
22034 | ||
22035 | ||
22036 | ||
22037 | if test "$wxUSE_MAC" = 1 ; then | |
22038 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
22039 | fi | |
22040 | ||
22041 | ||
22042 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
22043 | ||
22044 | have_cos=0 | |
22045 | have_floor=0 | |
22046 | for ac_func in cos | |
22047 | do | |
22048 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
22049 | echo "configure:22050: checking for $ac_func" >&5 | |
22050 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
22051 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22052 | else | |
22053 | cat > conftest.$ac_ext <<EOF | |
22054 | #line 22055 "configure" | |
22055 | #include "confdefs.h" | |
22056 | /* System header to define __stub macros and hopefully few prototypes, | |
22057 | which can conflict with char $ac_func(); below. */ | |
22058 | #include <assert.h> | |
22059 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22060 | /* We use char because int might match the return type of a gcc2 | |
22061 | builtin and then its argument prototype would still apply. */ | |
22062 | char $ac_func(); | |
22063 | ||
22064 | int main() { | |
22065 | ||
22066 | /* The GNU C library defines this for functions which it implements | |
22067 | to always fail with ENOSYS. Some functions are actually named | |
22068 | something starting with __ and the normal name is an alias. */ | |
22069 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22070 | choke me | |
22071 | #else | |
22072 | $ac_func(); | |
22073 | #endif | |
22074 | ||
22075 | ; return 0; } | |
22076 | EOF | |
22077 | if { (eval echo configure:22078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
22078 | rm -rf conftest* | |
22079 | eval "ac_cv_func_$ac_func=yes" | |
22080 | else | |
22081 | echo "configure: failed program was:" >&5 | |
22082 | cat conftest.$ac_ext >&5 | |
22083 | rm -rf conftest* | |
22084 | eval "ac_cv_func_$ac_func=no" | |
22085 | fi | |
22086 | rm -f conftest* | |
22087 | fi | |
22088 | ||
22089 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22090 | echo "$ac_t""yes" 1>&6 | |
22091 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22092 | cat >> confdefs.h <<EOF | |
22093 | #define $ac_tr_func 1 | |
22094 | EOF | |
22095 | have_cos=1 | |
22096 | else | |
22097 | echo "$ac_t""no" 1>&6 | |
22098 | fi | |
22099 | done | |
22100 | ||
22101 | for ac_func in floor | |
22102 | do | |
22103 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
22104 | echo "configure:22105: checking for $ac_func" >&5 | |
22105 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
22106 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22107 | else | |
22108 | cat > conftest.$ac_ext <<EOF | |
22109 | #line 22110 "configure" | |
22110 | #include "confdefs.h" | |
22111 | /* System header to define __stub macros and hopefully few prototypes, | |
22112 | which can conflict with char $ac_func(); below. */ | |
22113 | #include <assert.h> | |
22114 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22115 | /* We use char because int might match the return type of a gcc2 | |
22116 | builtin and then its argument prototype would still apply. */ | |
22117 | char $ac_func(); | |
22118 | ||
22119 | int main() { | |
22120 | ||
22121 | /* The GNU C library defines this for functions which it implements | |
22122 | to always fail with ENOSYS. Some functions are actually named | |
22123 | something starting with __ and the normal name is an alias. */ | |
22124 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22125 | choke me | |
22126 | #else | |
22127 | $ac_func(); | |
22128 | #endif | |
22129 | ||
22130 | ; return 0; } | |
22131 | EOF | |
22132 | if { (eval echo configure:22133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
22133 | rm -rf conftest* | |
22134 | eval "ac_cv_func_$ac_func=yes" | |
22135 | else | |
22136 | echo "configure: failed program was:" >&5 | |
22137 | cat conftest.$ac_ext >&5 | |
22138 | rm -rf conftest* | |
22139 | eval "ac_cv_func_$ac_func=no" | |
22140 | fi | |
22141 | rm -f conftest* | |
22142 | fi | |
22143 | ||
22144 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22145 | echo "$ac_t""yes" 1>&6 | |
22146 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22147 | cat >> confdefs.h <<EOF | |
22148 | #define $ac_tr_func 1 | |
22149 | EOF | |
22150 | have_floor=1 | |
22151 | else | |
22152 | echo "$ac_t""no" 1>&6 | |
22153 | fi | |
22154 | done | |
22155 | ||
22156 | echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6 | |
22157 | echo "configure:22158: checking if floating point functions link without -lm" >&5 | |
22158 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
22159 | echo "$ac_t""yes" 1>&6 | |
22160 | else | |
22161 | echo "$ac_t""no" 1>&6 | |
22162 | LIBS="$LIBS -lm" | |
22163 | # use different functions to avoid configure caching | |
22164 | have_sin=0 | |
22165 | have_ceil=0 | |
22166 | for ac_func in sin | |
22167 | do | |
22168 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
22169 | echo "configure:22170: checking for $ac_func" >&5 | |
22170 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
22171 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22172 | else | |
22173 | cat > conftest.$ac_ext <<EOF | |
22174 | #line 22175 "configure" | |
22175 | #include "confdefs.h" | |
22176 | /* System header to define __stub macros and hopefully few prototypes, | |
22177 | which can conflict with char $ac_func(); below. */ | |
22178 | #include <assert.h> | |
22179 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22180 | /* We use char because int might match the return type of a gcc2 | |
22181 | builtin and then its argument prototype would still apply. */ | |
22182 | char $ac_func(); | |
22183 | ||
22184 | int main() { | |
22185 | ||
22186 | /* The GNU C library defines this for functions which it implements | |
22187 | to always fail with ENOSYS. Some functions are actually named | |
22188 | something starting with __ and the normal name is an alias. */ | |
22189 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22190 | choke me | |
22191 | #else | |
22192 | $ac_func(); | |
22193 | #endif | |
22194 | ||
22195 | ; return 0; } | |
22196 | EOF | |
22197 | if { (eval echo configure:22198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
22198 | rm -rf conftest* | |
22199 | eval "ac_cv_func_$ac_func=yes" | |
22200 | else | |
22201 | echo "configure: failed program was:" >&5 | |
22202 | cat conftest.$ac_ext >&5 | |
22203 | rm -rf conftest* | |
22204 | eval "ac_cv_func_$ac_func=no" | |
22205 | fi | |
22206 | rm -f conftest* | |
22207 | fi | |
22208 | ||
22209 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22210 | echo "$ac_t""yes" 1>&6 | |
22211 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22212 | cat >> confdefs.h <<EOF | |
22213 | #define $ac_tr_func 1 | |
22214 | EOF | |
22215 | have_sin=1 | |
22216 | else | |
22217 | echo "$ac_t""no" 1>&6 | |
22218 | fi | |
22219 | done | |
22220 | ||
22221 | for ac_func in ceil | |
22222 | do | |
22223 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
22224 | echo "configure:22225: checking for $ac_func" >&5 | |
22225 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
22226 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22227 | else | |
22228 | cat > conftest.$ac_ext <<EOF | |
22229 | #line 22230 "configure" | |
22230 | #include "confdefs.h" | |
22231 | /* System header to define __stub macros and hopefully few prototypes, | |
22232 | which can conflict with char $ac_func(); below. */ | |
22233 | #include <assert.h> | |
22234 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22235 | /* We use char because int might match the return type of a gcc2 | |
22236 | builtin and then its argument prototype would still apply. */ | |
22237 | char $ac_func(); | |
22238 | ||
22239 | int main() { | |
22240 | ||
22241 | /* The GNU C library defines this for functions which it implements | |
22242 | to always fail with ENOSYS. Some functions are actually named | |
22243 | something starting with __ and the normal name is an alias. */ | |
22244 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22245 | choke me | |
22246 | #else | |
22247 | $ac_func(); | |
22248 | #endif | |
22249 | ||
22250 | ; return 0; } | |
22251 | EOF | |
22252 | if { (eval echo configure:22253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
22253 | rm -rf conftest* | |
22254 | eval "ac_cv_func_$ac_func=yes" | |
22255 | else | |
22256 | echo "configure: failed program was:" >&5 | |
22257 | cat conftest.$ac_ext >&5 | |
22258 | rm -rf conftest* | |
22259 | eval "ac_cv_func_$ac_func=no" | |
22260 | fi | |
22261 | rm -f conftest* | |
22262 | fi | |
22263 | ||
22264 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22265 | echo "$ac_t""yes" 1>&6 | |
22266 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22267 | cat >> confdefs.h <<EOF | |
22268 | #define $ac_tr_func 1 | |
22269 | EOF | |
22270 | have_ceil=1 | |
22271 | else | |
22272 | echo "$ac_t""no" 1>&6 | |
22273 | fi | |
22274 | done | |
22275 | ||
22276 | echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6 | |
22277 | echo "configure:22278: checking if floating point functions link with -lm" >&5 | |
22278 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
22279 | echo "$ac_t""yes" 1>&6 | |
22280 | else | |
22281 | echo "$ac_t""no" 1>&6 | |
22282 | # not sure we should warn the user, crash, etc. | |
22283 | fi | |
22284 | fi | |
22285 | ||
22286 | if test "$wxUSE_GUI" = "yes"; then | |
22287 | ||
22288 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" | |
22289 | ||
22290 | ||
22291 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
22292 | drawing dynamic erase event exec font image \ | |
22293 | minimal propsize rotate widgets" | |
22294 | ||
22295 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
22296 | else | |
22297 | SAMPLES_SUBDIRS="console" | |
22298 | fi | |
22299 | ||
22300 | ||
22301 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ | |
22302 | -I\${top_srcdir}/include \ | |
22303 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
22304 | $TOOLKIT_INCLUDE" | |
22305 | ||
22306 | if test "$wxUSE_GTK" = 1; then | |
22307 | WXCONFIG_INCLUDE= | |
22308 | else | |
22309 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
22310 | fi | |
22311 | ||
22312 | if test "$GXX" = yes ; then | |
22313 | CXXWARNINGS="-Wall" | |
22314 | ||
22315 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
22316 | CFLAGS="-MMD $CFLAGS" | |
22317 | CXXFLAGS="-MMD $CXXFLAGS" | |
22318 | fi | |
22319 | fi | |
22320 | ||
22321 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
22322 | ||
22323 | CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` | |
22324 | CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
22325 | CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
22326 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
22327 | ||
22328 | LDFLAGS="$LDFLAGS $PROFILE" | |
22329 | ||
22330 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
22331 | ||
22332 | ||
22333 | ||
22334 | ||
22335 | ||
22336 | ||
22337 | ||
22338 | ||
22339 | ||
22340 | ||
22341 | ||
22342 | ||
22343 | ||
22344 | ||
22345 | ||
22346 | ||
22347 | ||
22348 | ||
22349 | ||
22350 | ||
22351 | ||
22352 | ||
22353 | ||
22354 | ||
22355 | ||
22356 | ||
22357 | ||
22358 | ||
22359 | ||
22360 | ||
22361 | ||
22362 | ||
22363 | ||
22364 | ||
22365 | ||
22366 | ||
22367 | ||
22368 | ||
22369 | ||
22370 | ||
22371 | ||
22372 | ||
22373 | ||
22374 | ||
22375 | ||
22376 | ||
22377 | ||
22378 | ||
22379 | ||
22380 | ||
22381 | ||
22382 | ||
22383 | ||
22384 | ||
22385 | ||
22386 | ||
22387 | ||
22388 | ||
22389 | ||
22390 | ||
22391 | ||
22392 | ||
22393 | ||
22394 | ||
22395 | ||
22396 | ||
22397 | ||
22398 | ||
22399 | ||
22400 | ||
22401 | ||
22402 | ||
22403 | ||
22404 | ||
22405 | ||
22406 | ||
22407 | ||
22408 | ||
22409 | ||
22410 | ||
22411 | ||
22412 | ||
22413 | ||
22414 | ||
22415 | ||
22416 | ||
22417 | ||
22418 | ||
22419 | ||
22420 | ||
22421 | ||
22422 | ||
22423 | ||
22424 | ||
22425 | ||
22426 | ||
22427 | ||
22428 | ||
22429 | ||
22430 | ||
22431 | ||
22432 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
22433 | echo "configure:22434: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
22434 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | |
22435 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
22436 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22437 | else | |
22438 | cat > conftestmake <<\EOF | |
22439 | all: | |
22440 | @echo 'ac_maketemp="${MAKE}"' | |
22441 | EOF | |
22442 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
22443 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
22444 | if test -n "$ac_maketemp"; then | |
22445 | eval ac_cv_prog_make_${ac_make}_set=yes | |
22446 | else | |
22447 | eval ac_cv_prog_make_${ac_make}_set=no | |
22448 | fi | |
22449 | rm -f conftestmake | |
22450 | fi | |
22451 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
22452 | echo "$ac_t""yes" 1>&6 | |
22453 | SET_MAKE= | |
22454 | else | |
22455 | echo "$ac_t""no" 1>&6 | |
22456 | SET_MAKE="MAKE=${MAKE-make}" | |
22457 | fi | |
22458 | ||
22459 | ||
22460 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
22461 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
22462 | fi | |
22463 | ||
22464 | ||
22465 | ||
22466 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS | |
22467 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
22468 | wx_cv_path_ifs=$PATH_IFS | |
22469 | wx_cv_program_ext=$PROGRAM_EXT | |
22470 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
22471 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
22472 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
22473 | wx_cv_library_basename=${WX_LIBRARY_BASENAME} | |
22474 | wx_cv_release=${WX_RELEASE} | |
22475 | wx_cv_current=${WX_CURRENT} | |
22476 | wx_cv_revision=${WX_REVISION} | |
22477 | wx_cv_age=${WX_AGE} | |
22478 | wx_cv_use_gui=${USE_GUI} | |
22479 | wx_cv_use_resources=${wxUSE_RESOURCES} | |
22480 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ | |
22481 | wx_cv_path_ifs wx_cv_program_ext \ | |
22482 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \ | |
22483 | wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \ | |
22484 | wx_cv_use_gui wx_cv_use_resources | |
22485 | ||
22486 | subdirs="demos samples utils contrib" | |
22487 | ||
22488 | ||
22489 | trap '' 1 2 15 | |
22490 | cat > confcache <<\EOF | |
22491 | # This file is a shell script that caches the results of configure | |
22492 | # tests run on this system so they can be shared between configure | |
22493 | # scripts and configure runs. It is not useful on other systems. | |
22494 | # If it contains results you don't want to keep, you may remove or edit it. | |
22495 | # | |
22496 | # By default, configure uses ./config.cache as the cache file, | |
22497 | # creating it if it does not exist already. You can give configure | |
22498 | # the --cache-file=FILE option to use a different cache file; that is | |
22499 | # what configure does when it calls configure scripts in | |
22500 | # subdirectories, so they share the cache. | |
22501 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
22502 | # config.status only pays attention to the cache file if you give it the | |
22503 | # --recheck option to rerun configure. | |
22504 | # | |
22505 | EOF | |
22506 | # The following way of writing the cache mishandles newlines in values, | |
22507 | # but we know of no workaround that is simple, portable, and efficient. | |
22508 | # So, don't put newlines in cache variables' values. | |
22509 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
22510 | # and sets the high bit in the cache file unless we assign to the vars. | |
22511 | (set) 2>&1 | | |
22512 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
22513 | *ac_space=\ *) | |
22514 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
22515 | # turns \\\\ into \\, and sed turns \\ into \). | |
22516 | sed -n \ | |
22517 | -e "s/'/'\\\\''/g" \ | |
22518 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
22519 | ;; | |
22520 | *) | |
22521 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
22522 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
22523 | ;; | |
22524 | esac >> confcache | |
22525 | if cmp -s $cache_file confcache; then | |
22526 | : | |
22527 | else | |
22528 | if test -w $cache_file; then | |
22529 | echo "updating cache $cache_file" | |
22530 | cat confcache > $cache_file | |
22531 | else | |
22532 | echo "not updating unwritable cache $cache_file" | |
22533 | fi | |
22534 | fi | |
22535 | rm -f confcache | |
22536 | ||
22537 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
22538 | ||
22539 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
22540 | # Let make expand exec_prefix. | |
22541 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
22542 | ||
22543 | # Any assignment to VPATH causes Sun make to only execute | |
22544 | # the first set of double-colon rules, so remove it if not needed. | |
22545 | # If there is a colon in the path, we need to keep it. | |
22546 | if test "x$srcdir" = x.; then | |
22547 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
22548 | fi | |
22549 | ||
22550 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
22551 | ||
22552 | DEFS=-DHAVE_CONFIG_H | |
22553 | ||
22554 | # Without the "./", some shells look in PATH for config.status. | |
22555 | : ${CONFIG_STATUS=./config.status} | |
22556 | ||
22557 | echo creating $CONFIG_STATUS | |
22558 | rm -f $CONFIG_STATUS | |
22559 | cat > $CONFIG_STATUS <<EOF | |
22560 | #! /bin/sh | |
22561 | # Generated automatically by configure. | |
22562 | # Run this file to recreate the current configuration. | |
22563 | # This directory was configured as follows, | |
22564 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
22565 | # | |
22566 | # $0 $ac_configure_args | |
22567 | # | |
22568 | # Compiler output produced by configure, useful for debugging | |
22569 | # configure, is in ./config.log if it exists. | |
22570 | ||
22571 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
22572 | for ac_option | |
22573 | do | |
22574 | case "\$ac_option" in | |
22575 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22576 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
22577 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
22578 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
22579 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
22580 | exit 0 ;; | |
22581 | -help | --help | --hel | --he | --h) | |
22582 | echo "\$ac_cs_usage"; exit 0 ;; | |
22583 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
22584 | esac | |
22585 | done | |
22586 | ||
22587 | ac_given_srcdir=$srcdir | |
22588 | ac_given_INSTALL="$INSTALL" | |
22589 | ||
22590 | trap 'rm -fr `echo " | |
22591 | wx-config | |
22592 | version-script | |
22593 | src/make.env | |
22594 | src/makeprog.env | |
22595 | src/makelib.env | |
22596 | Makefile | |
22597 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
22598 | EOF | |
22599 | cat >> $CONFIG_STATUS <<EOF | |
22600 | ||
22601 | # Protect against being on the right side of a sed subst in config.status. | |
22602 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
22603 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
22604 | $ac_vpsub | |
22605 | $extrasub | |
22606 | s%@SHELL@%$SHELL%g | |
22607 | s%@CFLAGS@%$CFLAGS%g | |
22608 | s%@CPPFLAGS@%$CPPFLAGS%g | |
22609 | s%@CXXFLAGS@%$CXXFLAGS%g | |
22610 | s%@FFLAGS@%$FFLAGS%g | |
22611 | s%@DEFS@%$DEFS%g | |
22612 | s%@LDFLAGS@%$LDFLAGS%g | |
22613 | s%@LIBS@%$LIBS%g | |
22614 | s%@exec_prefix@%$exec_prefix%g | |
22615 | s%@prefix@%$prefix%g | |
22616 | s%@program_transform_name@%$program_transform_name%g | |
22617 | s%@bindir@%$bindir%g | |
22618 | s%@sbindir@%$sbindir%g | |
22619 | s%@libexecdir@%$libexecdir%g | |
22620 | s%@datadir@%$datadir%g | |
22621 | s%@sysconfdir@%$sysconfdir%g | |
22622 | s%@sharedstatedir@%$sharedstatedir%g | |
22623 | s%@localstatedir@%$localstatedir%g | |
22624 | s%@libdir@%$libdir%g | |
22625 | s%@includedir@%$includedir%g | |
22626 | s%@oldincludedir@%$oldincludedir%g | |
22627 | s%@infodir@%$infodir%g | |
22628 | s%@mandir@%$mandir%g | |
22629 | s%@host@%$host%g | |
22630 | s%@host_alias@%$host_alias%g | |
22631 | s%@host_cpu@%$host_cpu%g | |
22632 | s%@host_vendor@%$host_vendor%g | |
22633 | s%@host_os@%$host_os%g | |
22634 | s%@target@%$target%g | |
22635 | s%@target_alias@%$target_alias%g | |
22636 | s%@target_cpu@%$target_cpu%g | |
22637 | s%@target_vendor@%$target_vendor%g | |
22638 | s%@target_os@%$target_os%g | |
22639 | s%@build@%$build%g | |
22640 | s%@build_alias@%$build_alias%g | |
22641 | s%@build_cpu@%$build_cpu%g | |
22642 | s%@build_vendor@%$build_vendor%g | |
22643 | s%@build_os@%$build_os%g | |
22644 | s%@CC@%$CC%g | |
22645 | s%@CPP@%$CPP%g | |
22646 | s%@CXX@%$CXX%g | |
22647 | s%@RANLIB@%$RANLIB%g | |
22648 | s%@AR@%$AR%g | |
22649 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
22650 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
22651 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
22652 | s%@STRIP@%$STRIP%g | |
22653 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g | |
22654 | s%@YACC@%$YACC%g | |
22655 | s%@LEX@%$LEX%g | |
22656 | s%@LEXLIB@%$LEXLIB%g | |
22657 | s%@LN_S@%$LN_S%g | |
22658 | s%@CXXCPP@%$CXXCPP%g | |
22659 | s%@PKG_CONFIG@%$PKG_CONFIG%g | |
22660 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
22661 | s%@GTK_LIBS@%$GTK_LIBS%g | |
22662 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
22663 | s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g | |
22664 | s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g | |
22665 | s%@X_CFLAGS@%$X_CFLAGS%g | |
22666 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
22667 | s%@X_LIBS@%$X_LIBS%g | |
22668 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
22669 | s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g | |
22670 | s%@PANGOX_LIBS@%$PANGOX_LIBS%g | |
22671 | s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g | |
22672 | s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g | |
22673 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g | |
22674 | s%@RESCOMP@%$RESCOMP%g | |
22675 | s%@DEREZ@%$DEREZ%g | |
22676 | s%@SETFILE@%$SETFILE%g | |
22677 | s%@LIBICONV@%$LIBICONV%g | |
22678 | s%@LEX_STEM@%$LEX_STEM%g | |
22679 | s%@PATH_IFS@%$PATH_IFS%g | |
22680 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
22681 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
22682 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
22683 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
22684 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
22685 | s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g | |
22686 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g | |
22687 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
22688 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
22689 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
22690 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
22691 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
22692 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
22693 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
22694 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
22695 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
22696 | s%@WX_ALL@%$WX_ALL%g | |
22697 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
22698 | s%@SHARED_LD@%$SHARED_LD%g | |
22699 | s%@PIC_FLAG@%$PIC_FLAG%g | |
22700 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
22701 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
22702 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g | |
22703 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
22704 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
22705 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
22706 | s%@STATIC_FLAG@%$STATIC_FLAG%g | |
22707 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
22708 | s%@USE_GUI@%$USE_GUI%g | |
22709 | s%@AFMINSTALL@%$AFMINSTALL%g | |
22710 | s%@WIN32INSTALL@%$WIN32INSTALL%g | |
22711 | s%@TOOLKIT@%$TOOLKIT%g | |
22712 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
22713 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g | |
22714 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g | |
22715 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
22716 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g | |
22717 | s%@top_builddir@%$top_builddir%g | |
22718 | s%@cross_compiling@%$cross_compiling%g | |
22719 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
22720 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
22721 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g | |
22722 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
22723 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
22724 | s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g | |
22725 | s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g | |
22726 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
22727 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
22728 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
22729 | s%@GUIDIST@%$GUIDIST%g | |
22730 | s%@PORT_FILES@%$PORT_FILES%g | |
22731 | s%@DISTDIR@%$DISTDIR%g | |
22732 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
22733 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g | |
22734 | s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g | |
22735 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g | |
22736 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
22737 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g | |
22738 | s%@EXTRADEFS@%$EXTRADEFS%g | |
22739 | s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g | |
22740 | s%@RESFLAGS@%$RESFLAGS%g | |
22741 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g | |
22742 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g | |
22743 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
22744 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g | |
22745 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
22746 | s%@MACRESCOMP@%$MACRESCOMP%g | |
22747 | s%@MACSETFILE@%$MACSETFILE%g | |
22748 | s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g | |
22749 | s%@GCC@%$GCC%g | |
22750 | s%@DLLTOOL@%$DLLTOOL%g | |
22751 | s%@AS@%$AS%g | |
22752 | s%@NM@%$NM%g | |
22753 | s%@LD@%$LD%g | |
22754 | s%@MAKEINFO@%$MAKEINFO%g | |
22755 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g | |
22756 | s%@INSTALL_DIR@%$INSTALL_DIR%g | |
22757 | s%@SET_MAKE@%$SET_MAKE%g | |
22758 | s%@subdirs@%$subdirs%g | |
22759 | ||
22760 | CEOF | |
22761 | EOF | |
22762 | ||
22763 | cat >> $CONFIG_STATUS <<\EOF | |
22764 | ||
22765 | # Split the substitutions into bite-sized pieces for seds with | |
22766 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
22767 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
22768 | ac_file=1 # Number of current file. | |
22769 | ac_beg=1 # First line for current file. | |
22770 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
22771 | ac_more_lines=: | |
22772 | ac_sed_cmds="" | |
22773 | while $ac_more_lines; do | |
22774 | if test $ac_beg -gt 1; then | |
22775 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
22776 | else | |
22777 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
22778 | fi | |
22779 | if test ! -s conftest.s$ac_file; then | |
22780 | ac_more_lines=false | |
22781 | rm -f conftest.s$ac_file | |
22782 | else | |
22783 | if test -z "$ac_sed_cmds"; then | |
22784 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
22785 | else | |
22786 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
22787 | fi | |
22788 | ac_file=`expr $ac_file + 1` | |
22789 | ac_beg=$ac_end | |
22790 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
22791 | fi | |
22792 | done | |
22793 | if test -z "$ac_sed_cmds"; then | |
22794 | ac_sed_cmds=cat | |
22795 | fi | |
22796 | EOF | |
22797 | ||
22798 | cat >> $CONFIG_STATUS <<EOF | |
22799 | ||
22800 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
22801 | version-script | |
22802 | src/make.env | |
22803 | src/makeprog.env | |
22804 | src/makelib.env | |
22805 | Makefile | |
22806 | "} | |
22807 | EOF | |
22808 | cat >> $CONFIG_STATUS <<\EOF | |
22809 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
22810 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
22811 | case "$ac_file" in | |
22812 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
22813 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22814 | *) ac_file_in="${ac_file}.in" ;; | |
22815 | esac | |
22816 | ||
22817 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
22818 | ||
22819 | # Remove last slash and all that follows it. Not all systems have dirname. | |
22820 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
22821 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
22822 | # The file is in a subdirectory. | |
22823 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
22824 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
22825 | # A "../" for each directory in $ac_dir_suffix. | |
22826 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
22827 | else | |
22828 | ac_dir_suffix= ac_dots= | |
22829 | fi | |
22830 | ||
22831 | case "$ac_given_srcdir" in | |
22832 | .) srcdir=. | |
22833 | if test -z "$ac_dots"; then top_srcdir=. | |
22834 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
22835 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
22836 | *) # Relative path. | |
22837 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
22838 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
22839 | esac | |
22840 | ||
22841 | case "$ac_given_INSTALL" in | |
22842 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
22843 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
22844 | esac | |
22845 | ||
22846 | echo creating "$ac_file" | |
22847 | rm -f "$ac_file" | |
22848 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
22849 | case "$ac_file" in | |
22850 | *Makefile*) ac_comsub="1i\\ | |
22851 | # $configure_input" ;; | |
22852 | *) ac_comsub= ;; | |
22853 | esac | |
22854 | ||
22855 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
22856 | sed -e "$ac_comsub | |
22857 | s%@configure_input@%$configure_input%g | |
22858 | s%@srcdir@%$srcdir%g | |
22859 | s%@top_srcdir@%$top_srcdir%g | |
22860 | s%@INSTALL@%$INSTALL%g | |
22861 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
22862 | fi; done | |
22863 | rm -f conftest.s* | |
22864 | ||
22865 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
22866 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
22867 | # | |
22868 | # ac_d sets the value in "#define NAME VALUE" lines. | |
22869 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
22870 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
22871 | ac_dC='\3' | |
22872 | ac_dD='%g' | |
22873 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
22874 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22875 | ac_uB='\([ ]\)%\1#\2define\3' | |
22876 | ac_uC=' ' | |
22877 | ac_uD='\4%g' | |
22878 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
22879 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22880 | ac_eB='$%\1#\2define\3' | |
22881 | ac_eC=' ' | |
22882 | ac_eD='%g' | |
22883 | ||
22884 | if test "${CONFIG_HEADERS+set}" != set; then | |
22885 | EOF | |
22886 | cat >> $CONFIG_STATUS <<EOF | |
22887 | CONFIG_HEADERS="setup.h:setup.h.in" | |
22888 | EOF | |
22889 | cat >> $CONFIG_STATUS <<\EOF | |
22890 | fi | |
22891 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
22892 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
22893 | case "$ac_file" in | |
22894 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
22895 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22896 | *) ac_file_in="${ac_file}.in" ;; | |
22897 | esac | |
22898 | ||
22899 | echo creating $ac_file | |
22900 | ||
22901 | rm -f conftest.frag conftest.in conftest.out | |
22902 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
22903 | cat $ac_file_inputs > conftest.in | |
22904 | ||
22905 | EOF | |
22906 | ||
22907 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
22908 | # the proper values into config.h.in to produce config.h. And first: | |
22909 | # Protect against being on the right side of a sed subst in config.status. | |
22910 | # Protect against being in an unquoted here document in config.status. | |
22911 | rm -f conftest.vals | |
22912 | cat > conftest.hdr <<\EOF | |
22913 | s/[\\&%]/\\&/g | |
22914 | s%[\\$`]%\\&%g | |
22915 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
22916 | s%ac_d%ac_u%gp | |
22917 | s%ac_u%ac_e%gp | |
22918 | EOF | |
22919 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
22920 | rm -f conftest.hdr | |
22921 | ||
22922 | # This sed command replaces #undef with comments. This is necessary, for | |
22923 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
22924 | # on some systems where configure will not decide to define it. | |
22925 | cat >> conftest.vals <<\EOF | |
22926 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
22927 | EOF | |
22928 | ||
22929 | # Break up conftest.vals because some shells have a limit on | |
22930 | # the size of here documents, and old seds have small limits too. | |
22931 | ||
22932 | rm -f conftest.tail | |
22933 | while : | |
22934 | do | |
22935 | ac_lines=`grep -c . conftest.vals` | |
22936 | # grep -c gives empty output for an empty file on some AIX systems. | |
22937 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
22938 | # Write a limited-size here document to conftest.frag. | |
22939 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
22940 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
22941 | echo 'CEOF | |
22942 | sed -f conftest.frag conftest.in > conftest.out | |
22943 | rm -f conftest.in | |
22944 | mv conftest.out conftest.in | |
22945 | ' >> $CONFIG_STATUS | |
22946 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
22947 | rm -f conftest.vals | |
22948 | mv conftest.tail conftest.vals | |
22949 | done | |
22950 | rm -f conftest.vals | |
22951 | ||
22952 | cat >> $CONFIG_STATUS <<\EOF | |
22953 | rm -f conftest.frag conftest.h | |
22954 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
22955 | cat conftest.in >> conftest.h | |
22956 | rm -f conftest.in | |
22957 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
22958 | echo "$ac_file is unchanged" | |
22959 | rm -f conftest.h | |
22960 | else | |
22961 | # Remove last slash and all that follows it. Not all systems have dirname. | |
22962 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
22963 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
22964 | # The file is in a subdirectory. | |
22965 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
22966 | fi | |
22967 | rm -f $ac_file | |
22968 | mv conftest.h $ac_file | |
22969 | fi | |
22970 | fi; done | |
22971 | ||
22972 | EOF | |
22973 | cat >> $CONFIG_STATUS <<EOF | |
22974 | ||
22975 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
22976 | LN_S="${LN_S}" | |
22977 | ||
22978 | ||
22979 | EOF | |
22980 | cat >> $CONFIG_STATUS <<\EOF | |
22981 | ||
22982 | if test ! -h wx-config; then | |
22983 | chmod +x wx-config | |
22984 | mv wx-config wx${TOOLCHAIN_NAME}-config | |
22985 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
22986 | fi | |
22987 | ||
22988 | if test ! -d lib; then | |
22989 | mkdir lib | |
22990 | fi | |
22991 | if test ! -d lib/wx; then | |
22992 | mkdir lib/wx | |
22993 | fi | |
22994 | if test ! -d lib/wx/include; then | |
22995 | mkdir lib/wx/include | |
22996 | fi | |
22997 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then | |
22998 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
22999 | fi | |
23000 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then | |
23001 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
23002 | fi | |
23003 | if test -f setup.h; then | |
23004 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h | |
23005 | fi | |
23006 | ||
23007 | exit 0 | |
23008 | EOF | |
23009 | chmod +x $CONFIG_STATUS | |
23010 | rm -fr confdefs* $ac_clean_files | |
23011 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
23012 | ||
23013 | if test "$no_recursion" != yes; then | |
23014 | ||
23015 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
23016 | ac_sub_configure_args= | |
23017 | ac_prev= | |
23018 | for ac_arg in $ac_configure_args; do | |
23019 | if test -n "$ac_prev"; then | |
23020 | ac_prev= | |
23021 | continue | |
23022 | fi | |
23023 | case "$ac_arg" in | |
23024 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
23025 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
23026 | ac_prev=cache_file ;; | |
23027 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
23028 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
23029 | ;; | |
23030 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
23031 | ac_prev=srcdir ;; | |
23032 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
23033 | ;; | |
23034 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
23035 | esac | |
23036 | done | |
23037 | ||
23038 | for ac_config_dir in demos samples utils contrib; do | |
23039 | ||
23040 | # Do not complain, so a configure script can configure whichever | |
23041 | # parts of a large source tree are present. | |
23042 | if test ! -d $srcdir/$ac_config_dir; then | |
23043 | continue | |
23044 | fi | |
23045 | ||
23046 | echo configuring in $ac_config_dir | |
23047 | ||
23048 | case "$srcdir" in | |
23049 | .) ;; | |
23050 | *) | |
23051 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
23052 | else | |
23053 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
23054 | fi | |
23055 | ;; | |
23056 | esac | |
23057 | ||
23058 | ac_popdir=`pwd` | |
23059 | cd $ac_config_dir | |
23060 | ||
23061 | # A "../" for each directory in /$ac_config_dir. | |
23062 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
23063 | ||
23064 | case "$srcdir" in | |
23065 | .) # No --srcdir option. We are building in place. | |
23066 | ac_sub_srcdir=$srcdir ;; | |
23067 | /*) # Absolute path. | |
23068 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
23069 | *) # Relative path. | |
23070 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
23071 | esac | |
23072 | ||
23073 | # Check for guested configure; otherwise get Cygnus style configure. | |
23074 | if test -f $ac_sub_srcdir/configure; then | |
23075 | ac_sub_configure=$ac_sub_srcdir/configure | |
23076 | elif test -f $ac_sub_srcdir/configure.in; then | |
23077 | ac_sub_configure=$ac_configure | |
23078 | else | |
23079 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
23080 | ac_sub_configure= | |
23081 | fi | |
23082 | ||
23083 | # The recursion is here. | |
23084 | if test -n "$ac_sub_configure"; then | |
23085 | ||
23086 | # Make the cache file name correct relative to the subdirectory. | |
23087 | case "$cache_file" in | |
23088 | /*) ac_sub_cache_file=$cache_file ;; | |
23089 | *) # Relative path. | |
23090 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
23091 | esac | |
23092 | case "$ac_given_INSTALL" in | |
23093 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
23094 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
23095 | esac | |
23096 | ||
23097 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
23098 | # The eval makes quoting arguments work. | |
23099 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
23100 | then : | |
23101 | else | |
23102 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
23103 | fi | |
23104 | fi | |
23105 | ||
23106 | cd $ac_popdir | |
23107 | done | |
23108 | fi | |
23109 | ||
23110 | ||
23111 | echo | |
23112 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
23113 | echo "" | |
23114 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}" | |
23115 | ||
23116 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
23117 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
23118 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
23119 | ||
23120 | echo " What level of wxWindows compatibility should be enabled?" | |
23121 | echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}" | |
23122 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
23123 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
23124 | ||
23125 | echo " Which libraries should wxWindows use?" | |
23126 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
23127 | echo " png ${wxUSE_LIBPNG-none}" | |
23128 | echo " regex ${wxUSE_REGEX}" | |
23129 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
23130 | echo " zlib ${wxUSE_ZLIB}" | |
23131 | ||
23132 | echo "" | |
23133 |