]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
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 | ||
10f2d63a | 36 | |
422107f9 VZ |
37 | |
38 | ||
10f2d63a VZ |
39 | |
40 | ||
41 | ||
42 | # Guess values for system-dependent variables and create Makefiles. | |
e8482f24 | 43 | # Generated automatically using autoconf version 2.13 |
10f2d63a VZ |
44 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
45 | # | |
46 | # This configure script is free software; the Free Software Foundation | |
47 | # gives unlimited permission to copy, distribute and modify it. | |
48 | ||
49 | # Defaults: | |
50 | ac_help= | |
51 | ac_default_prefix=/usr/local | |
52 | # Any additions from configure.in: | |
53 | ac_help="$ac_help | |
54 | --enable-gui use GUI classes" | |
55 | ac_help="$ac_help | |
56 | --with-gtk use GTK+" | |
57 | ac_help="$ac_help | |
58 | --with-motif use Motif/Lesstif" | |
59 | ac_help="$ac_help | |
60 | --with-wine use WINE" | |
61 | ac_help="$ac_help | |
62 | --with-cygwin use Cygwin for MS-Windows" | |
63 | ac_help="$ac_help | |
64 | --with-mingw use GCC Minimal MS-Windows" | |
e07802fc VZ |
65 | ac_help="$ac_help |
66 | --with-pm use OS/2 Presentation Manager" | |
10f2d63a VZ |
67 | ac_help="$ac_help |
68 | --with-gtk-prefix=PFX Prefix where GTK is installed" | |
69 | ac_help="$ac_help | |
70 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed" | |
71 | ac_help="$ac_help | |
10f2d63a VZ |
72 | --with-libpng use libpng (PNG image format)" |
73 | ac_help="$ac_help | |
74 | --with-libjpeg use libjpeg (JPEG file format)" | |
75 | ac_help="$ac_help | |
c7a2bf27 RR |
76 | --with-libtiff use libtiff (TIFF file format)" |
77 | ac_help="$ac_help | |
10f2d63a VZ |
78 | --with-opengl use OpenGL (or Mesa)" |
79 | ac_help="$ac_help | |
b12915c1 VZ |
80 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" |
81 | ac_help="$ac_help | |
82 | --with-zlib use zlib for LZW compression" | |
83 | ac_help="$ac_help | |
10f2d63a VZ |
84 | --with-odbc use the IODBC and wxODBC classes" |
85 | ac_help="$ac_help | |
86 | --enable-shared create shared library code" | |
87 | ac_help="$ac_help | |
00cf1208 RR |
88 | --enable-burnt_name create set name in shared library " |
89 | ac_help="$ac_help | |
10f2d63a VZ |
90 | --enable-optimise create optimised code" |
91 | ac_help="$ac_help | |
92 | --enable-debug same as debug_flag and debug_info" | |
93 | ac_help="$ac_help | |
94 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
95 | ac_help="$ac_help | |
96 | --enable-debug_info create code with debugging information" | |
97 | ac_help="$ac_help | |
98 | --enable-debug_gdb create code with extra GDB debugging information" | |
99 | ac_help="$ac_help | |
100 | --enable-debug_cntxt use wxDebugContext" | |
101 | ac_help="$ac_help | |
102 | --enable-mem_tracing create code with memory tracing" | |
103 | ac_help="$ac_help | |
104 | --enable-profile create code with profiling information" | |
105 | ac_help="$ac_help | |
106 | --enable-no_rtti create code without RTTI information" | |
107 | ac_help="$ac_help | |
108 | --enable-no_exceptions create code without exceptions information" | |
109 | ac_help="$ac_help | |
110 | --enable-permissive compile code disregarding strict ANSI" | |
111 | ac_help="$ac_help | |
112 | --enable-no_deps create code without dependency information" | |
113 | ac_help="$ac_help | |
114 | --enable-intl use internationalization system" | |
115 | ac_help="$ac_help | |
116 | --enable-config use wxConfig (and derived) classes" | |
117 | ac_help="$ac_help | |
118 | --enable-sockets use socket/network classes" | |
119 | ac_help="$ac_help | |
120 | --enable-dialupman use dialup network classes" | |
121 | ac_help="$ac_help | |
122 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
123 | ac_help="$ac_help | |
124 | --enable-apple_ieee use the Apple IEEE codec" | |
125 | ac_help="$ac_help | |
126 | --enable-timedate use date/time classes" | |
127 | ac_help="$ac_help | |
128 | --enable-wave use wxWave class" | |
129 | ac_help="$ac_help | |
130 | --enable-fraction use wxFraction class" | |
131 | ac_help="$ac_help | |
132 | --enable-dynlib use wxLibrary class for DLL loading" | |
133 | ac_help="$ac_help | |
134 | --enable-longlong use wxLongLong class" | |
135 | ac_help="$ac_help | |
136 | --enable-log use logging system" | |
137 | ac_help="$ac_help | |
138 | --enable-streams use wxStream etc classes" | |
139 | ac_help="$ac_help | |
140 | --enable-file use wxFile classes" | |
141 | ac_help="$ac_help | |
142 | --enable-textfile use wxTextFile classes" | |
143 | ac_help="$ac_help | |
144 | --enable-unicode compile wxString with Unicode support" | |
145 | ac_help="$ac_help | |
146 | --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs" | |
147 | ac_help="$ac_help | |
148 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
149 | ac_help="$ac_help | |
150 | --enable-joystick compile in joystick support (Linux only)" | |
151 | ac_help="$ac_help | |
152 | --enable-std_iostreams use standard C++ stream classes" | |
153 | ac_help="$ac_help | |
24528b0c VS |
154 | --enable-filesystem use virtual file systems classes" |
155 | ac_help="$ac_help | |
10f2d63a VZ |
156 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
157 | ac_help="$ac_help | |
158 | --enable-fs_zip use virtual ZIP filesystems" | |
159 | ac_help="$ac_help | |
160 | --enable-zipstream use wxZipInputStream" | |
161 | ac_help="$ac_help | |
162 | --enable-threads use threads" | |
163 | ac_help="$ac_help | |
164 | --enable-serial use class serialization" | |
165 | ac_help="$ac_help | |
166 | --enable-docview use document view architecture" | |
167 | ac_help="$ac_help | |
168 | --enable-help use help (using external browser at present)" | |
169 | ac_help="$ac_help | |
170 | --enable-constraints use layout-constraints system" | |
171 | ac_help="$ac_help | |
172 | --enable-printarch use printing architecture" | |
173 | ac_help="$ac_help | |
174 | --enable-mdi use multiple document interface architecture" | |
175 | ac_help="$ac_help | |
176 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
177 | ac_help="$ac_help | |
178 | --enable-prologio use Prolog IO library" | |
179 | ac_help="$ac_help | |
180 | --enable-resources use wxWindows resources" | |
181 | ac_help="$ac_help | |
182 | --enable-xresources use X resources for save (default for gtk+)" | |
183 | ac_help="$ac_help | |
184 | --enable-clipboard use wxClipboard classes" | |
185 | ac_help="$ac_help | |
186 | --enable-dnd use Drag'n'Drop classes" | |
187 | ac_help="$ac_help | |
188 | --enable-wxtree make wxTree library" | |
189 | ac_help="$ac_help | |
190 | --enable-controls use all usual controls" | |
191 | ac_help="$ac_help | |
192 | --enable-accel use accelerators" | |
193 | ac_help="$ac_help | |
194 | --enable-caret use wxCaret class" | |
195 | ac_help="$ac_help | |
196 | --enable-bmpbutton use wxBitmapButton class" | |
197 | ac_help="$ac_help | |
198 | --enable-checkbox use wxCheckBox class" | |
199 | ac_help="$ac_help | |
200 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
201 | ac_help="$ac_help | |
202 | --enable-choice use wxChoice class" | |
203 | ac_help="$ac_help | |
204 | --enable-combobox use wxComboBox classes" | |
205 | ac_help="$ac_help | |
206 | --enable-gauge use wxGauge class" | |
207 | ac_help="$ac_help | |
208 | --enable-grid use wxGrid class" | |
209 | ac_help="$ac_help | |
210 | --enable-newgrid use new wxGrid class" | |
211 | ac_help="$ac_help | |
212 | --enable-imaglist use wxImageList class" | |
213 | ac_help="$ac_help | |
214 | --enable-listbox use wxListBox class" | |
215 | ac_help="$ac_help | |
216 | --enable-listctrl use wxListCtrl class" | |
217 | ac_help="$ac_help | |
218 | --enable-notebook use wxNotebook class" | |
219 | ac_help="$ac_help | |
220 | --enable-radiobox use wxRadioBox class" | |
221 | ac_help="$ac_help | |
222 | --enable-radiobtn use wxRadioButton class" | |
223 | ac_help="$ac_help | |
224 | --enable-sash use wxSashWindow class" | |
225 | ac_help="$ac_help | |
226 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
227 | ac_help="$ac_help | |
228 | --enable-slider use wxSlider class" | |
229 | ac_help="$ac_help | |
230 | --enable-spinbtn use wxSpinButton class" | |
231 | ac_help="$ac_help | |
56cfaa52 RR |
232 | --enable-spinctrl use wxSpinCtrl class" |
233 | ac_help="$ac_help | |
10f2d63a VZ |
234 | --enable-splitter use wxSplitterWindow class" |
235 | ac_help="$ac_help | |
236 | --enable-statbmp use wxStaticBitmap class" | |
237 | ac_help="$ac_help | |
238 | --enable-statbox use wxStaticBox class" | |
239 | ac_help="$ac_help | |
240 | --enable-statline use wxStaticLine class" | |
241 | ac_help="$ac_help | |
242 | --enable-statusbar use wxStatusBar class" | |
243 | ac_help="$ac_help | |
244 | --enable-tabdialog use wxTabControl class" | |
245 | ac_help="$ac_help | |
246 | --enable-toolbar use wxToolBar class" | |
247 | ac_help="$ac_help | |
360d6699 VZ |
248 | --enable-tbarnative use native wxToolBar class" |
249 | ac_help="$ac_help | |
250 | --enable-tbarsmpl use wxToolBarSimple class" | |
251 | ac_help="$ac_help | |
10f2d63a VZ |
252 | --enable-treectrl use wxTreeCtrl class" |
253 | ac_help="$ac_help | |
254 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" | |
255 | ac_help="$ac_help | |
256 | --enable-dirdlg use wxDirDialog" | |
257 | ac_help="$ac_help | |
258 | --enable-textdlg use wxTextDialog" | |
259 | ac_help="$ac_help | |
260 | --enable-tipdlg use startup tips" | |
261 | ac_help="$ac_help | |
262 | --enable-progressdlg use wxProgressDialog" | |
263 | ac_help="$ac_help | |
264 | --enable-miniframe use wxMiniFrame class" | |
265 | ac_help="$ac_help | |
266 | --enable-html use wxHTML sub-library" | |
267 | ac_help="$ac_help | |
268 | --enable-tooltips use wxToolTip class" | |
269 | ac_help="$ac_help | |
270 | --enable-splines use spline drawing code" | |
271 | ac_help="$ac_help | |
272 | --enable-validators use wxValidator and derived classes" | |
273 | ac_help="$ac_help | |
274 | --enable-busyinfo use wxBusyInfo" | |
275 | ac_help="$ac_help | |
9b33fe02 VZ |
276 | --enable-plot use wxPlot" |
277 | ac_help="$ac_help | |
10f2d63a VZ |
278 | --enable-gif use gif images (GIF file format)" |
279 | ac_help="$ac_help | |
280 | --enable-pcx use pcx images (PCX file format)" | |
281 | ac_help="$ac_help | |
282 | --enable-pnm use pnm images (PNM file format)" | |
ab9b9eab VZ |
283 | ac_help="$ac_help |
284 | --with-x use the X Window System" | |
10f2d63a VZ |
285 | |
286 | # Initialize some variables set by options. | |
287 | # The variables have the same names as the options, with | |
288 | # dashes changed to underlines. | |
289 | build=NONE | |
290 | cache_file=./config.cache | |
291 | exec_prefix=NONE | |
292 | host=NONE | |
293 | no_create= | |
294 | nonopt=NONE | |
295 | no_recursion= | |
296 | prefix=NONE | |
297 | program_prefix=NONE | |
298 | program_suffix=NONE | |
299 | program_transform_name=s,x,x, | |
300 | silent= | |
301 | site= | |
302 | srcdir= | |
303 | target=NONE | |
304 | verbose= | |
305 | x_includes=NONE | |
306 | x_libraries=NONE | |
307 | bindir='${exec_prefix}/bin' | |
308 | sbindir='${exec_prefix}/sbin' | |
309 | libexecdir='${exec_prefix}/libexec' | |
310 | datadir='${prefix}/share' | |
311 | sysconfdir='${prefix}/etc' | |
312 | sharedstatedir='${prefix}/com' | |
313 | localstatedir='${prefix}/var' | |
314 | libdir='${exec_prefix}/lib' | |
315 | includedir='${prefix}/include' | |
316 | oldincludedir='/usr/include' | |
317 | infodir='${prefix}/info' | |
318 | mandir='${prefix}/man' | |
319 | ||
320 | # Initialize some other variables. | |
321 | subdirs= | |
322 | MFLAGS= MAKEFLAGS= | |
323 | SHELL=${CONFIG_SHELL-/bin/sh} | |
324 | # Maximum number of lines to put in a shell here document. | |
325 | ac_max_here_lines=12 | |
326 | ||
327 | ac_prev= | |
328 | for ac_option | |
329 | do | |
330 | ||
331 | # If the previous option needs an argument, assign it. | |
332 | if test -n "$ac_prev"; then | |
333 | eval "$ac_prev=\$ac_option" | |
334 | ac_prev= | |
335 | continue | |
336 | fi | |
337 | ||
338 | case "$ac_option" in | |
339 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
340 | *) ac_optarg= ;; | |
341 | esac | |
342 | ||
343 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
344 | ||
345 | case "$ac_option" in | |
346 | ||
347 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
348 | ac_prev=bindir ;; | |
349 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
350 | bindir="$ac_optarg" ;; | |
351 | ||
352 | -build | --build | --buil | --bui | --bu) | |
353 | ac_prev=build ;; | |
354 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
355 | build="$ac_optarg" ;; | |
356 | ||
357 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
358 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
359 | ac_prev=cache_file ;; | |
360 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
361 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
362 | cache_file="$ac_optarg" ;; | |
363 | ||
364 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
365 | ac_prev=datadir ;; | |
366 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
367 | | --da=*) | |
368 | datadir="$ac_optarg" ;; | |
369 | ||
370 | -disable-* | --disable-*) | |
371 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
372 | # Reject names that are not valid shell variable names. | |
373 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
374 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
375 | fi | |
376 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
377 | eval "enable_${ac_feature}=no" ;; | |
378 | ||
379 | -enable-* | --enable-*) | |
380 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
381 | # Reject names that are not valid shell variable names. | |
382 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
383 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
384 | fi | |
385 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
386 | case "$ac_option" in | |
387 | *=*) ;; | |
388 | *) ac_optarg=yes ;; | |
389 | esac | |
390 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
391 | ||
392 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
393 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
394 | | --exec | --exe | --ex) | |
395 | ac_prev=exec_prefix ;; | |
396 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
397 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
398 | | --exec=* | --exe=* | --ex=*) | |
399 | exec_prefix="$ac_optarg" ;; | |
400 | ||
401 | -gas | --gas | --ga | --g) | |
402 | # Obsolete; use --with-gas. | |
403 | with_gas=yes ;; | |
404 | ||
405 | -help | --help | --hel | --he) | |
406 | # Omit some internal or obsolete options to make the list less imposing. | |
407 | # This message is too long to be a string in the A/UX 3.1 sh. | |
408 | cat << EOF | |
409 | Usage: configure [options] [host] | |
410 | Options: [defaults in brackets after descriptions] | |
411 | Configuration: | |
412 | --cache-file=FILE cache test results in FILE | |
413 | --help print this message | |
414 | --no-create do not create output files | |
415 | --quiet, --silent do not print \`checking...' messages | |
416 | --version print the version of autoconf that created configure | |
417 | Directory and file names: | |
418 | --prefix=PREFIX install architecture-independent files in PREFIX | |
419 | [$ac_default_prefix] | |
420 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
421 | [same as prefix] | |
422 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
423 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
424 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
425 | --datadir=DIR read-only architecture-independent data in DIR | |
426 | [PREFIX/share] | |
427 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
428 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
429 | [PREFIX/com] | |
430 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
431 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
432 | --includedir=DIR C header files in DIR [PREFIX/include] | |
433 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
434 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
435 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
436 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
437 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
438 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
439 | --program-transform-name=PROGRAM | |
440 | run sed PROGRAM on installed program names | |
441 | EOF | |
442 | cat << EOF | |
443 | Host type: | |
444 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
445 | --host=HOST configure for HOST [guessed] | |
446 | --target=TARGET configure for TARGET [TARGET=HOST] | |
447 | Features and packages: | |
448 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
449 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
450 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
451 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
452 | --x-includes=DIR X include files are in DIR | |
453 | --x-libraries=DIR X library files are in DIR | |
454 | EOF | |
455 | if test -n "$ac_help"; then | |
456 | echo "--enable and --with options recognized:$ac_help" | |
457 | fi | |
458 | exit 0 ;; | |
459 | ||
460 | -host | --host | --hos | --ho) | |
461 | ac_prev=host ;; | |
462 | -host=* | --host=* | --hos=* | --ho=*) | |
463 | host="$ac_optarg" ;; | |
464 | ||
465 | -includedir | --includedir | --includedi | --included | --include \ | |
466 | | --includ | --inclu | --incl | --inc) | |
467 | ac_prev=includedir ;; | |
468 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
469 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
470 | includedir="$ac_optarg" ;; | |
471 | ||
472 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
473 | ac_prev=infodir ;; | |
474 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
475 | infodir="$ac_optarg" ;; | |
476 | ||
477 | -libdir | --libdir | --libdi | --libd) | |
478 | ac_prev=libdir ;; | |
479 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
480 | libdir="$ac_optarg" ;; | |
481 | ||
482 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
483 | | --libexe | --libex | --libe) | |
484 | ac_prev=libexecdir ;; | |
485 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
486 | | --libexe=* | --libex=* | --libe=*) | |
487 | libexecdir="$ac_optarg" ;; | |
488 | ||
489 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
490 | | --localstate | --localstat | --localsta | --localst \ | |
491 | | --locals | --local | --loca | --loc | --lo) | |
492 | ac_prev=localstatedir ;; | |
493 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
494 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
495 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
496 | localstatedir="$ac_optarg" ;; | |
497 | ||
498 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
499 | ac_prev=mandir ;; | |
500 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
501 | mandir="$ac_optarg" ;; | |
502 | ||
503 | -nfp | --nfp | --nf) | |
504 | # Obsolete; use --without-fp. | |
505 | with_fp=no ;; | |
506 | ||
507 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
508 | | --no-cr | --no-c) | |
509 | no_create=yes ;; | |
510 | ||
511 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
512 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
513 | no_recursion=yes ;; | |
514 | ||
515 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
516 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
517 | | --oldin | --oldi | --old | --ol | --o) | |
518 | ac_prev=oldincludedir ;; | |
519 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
520 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
521 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
522 | oldincludedir="$ac_optarg" ;; | |
523 | ||
524 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
525 | ac_prev=prefix ;; | |
526 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
527 | prefix="$ac_optarg" ;; | |
528 | ||
529 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
530 | | --program-pre | --program-pr | --program-p) | |
531 | ac_prev=program_prefix ;; | |
532 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
533 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
534 | program_prefix="$ac_optarg" ;; | |
535 | ||
536 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
537 | | --program-suf | --program-su | --program-s) | |
538 | ac_prev=program_suffix ;; | |
539 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
540 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
541 | program_suffix="$ac_optarg" ;; | |
542 | ||
543 | -program-transform-name | --program-transform-name \ | |
544 | | --program-transform-nam | --program-transform-na \ | |
545 | | --program-transform-n | --program-transform- \ | |
546 | | --program-transform | --program-transfor \ | |
547 | | --program-transfo | --program-transf \ | |
548 | | --program-trans | --program-tran \ | |
549 | | --progr-tra | --program-tr | --program-t) | |
550 | ac_prev=program_transform_name ;; | |
551 | -program-transform-name=* | --program-transform-name=* \ | |
552 | | --program-transform-nam=* | --program-transform-na=* \ | |
553 | | --program-transform-n=* | --program-transform-=* \ | |
554 | | --program-transform=* | --program-transfor=* \ | |
555 | | --program-transfo=* | --program-transf=* \ | |
556 | | --program-trans=* | --program-tran=* \ | |
557 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
558 | program_transform_name="$ac_optarg" ;; | |
559 | ||
560 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
561 | | -silent | --silent | --silen | --sile | --sil) | |
562 | silent=yes ;; | |
563 | ||
564 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
565 | ac_prev=sbindir ;; | |
566 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
567 | | --sbi=* | --sb=*) | |
568 | sbindir="$ac_optarg" ;; | |
569 | ||
570 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
571 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
572 | | --sharedst | --shareds | --shared | --share | --shar \ | |
573 | | --sha | --sh) | |
574 | ac_prev=sharedstatedir ;; | |
575 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
576 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
577 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
578 | | --sha=* | --sh=*) | |
579 | sharedstatedir="$ac_optarg" ;; | |
580 | ||
581 | -site | --site | --sit) | |
582 | ac_prev=site ;; | |
583 | -site=* | --site=* | --sit=*) | |
584 | site="$ac_optarg" ;; | |
585 | ||
586 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
587 | ac_prev=srcdir ;; | |
588 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
589 | srcdir="$ac_optarg" ;; | |
590 | ||
591 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
592 | | --syscon | --sysco | --sysc | --sys | --sy) | |
593 | ac_prev=sysconfdir ;; | |
594 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
595 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
596 | sysconfdir="$ac_optarg" ;; | |
597 | ||
598 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
599 | ac_prev=target ;; | |
600 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
601 | target="$ac_optarg" ;; | |
602 | ||
603 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
604 | verbose=yes ;; | |
605 | ||
606 | -version | --version | --versio | --versi | --vers) | |
e8482f24 | 607 | echo "configure generated by autoconf version 2.13" |
10f2d63a VZ |
608 | exit 0 ;; |
609 | ||
610 | -with-* | --with-*) | |
611 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
612 | # Reject names that are not valid shell variable names. | |
613 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
614 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
615 | fi | |
616 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
617 | case "$ac_option" in | |
618 | *=*) ;; | |
619 | *) ac_optarg=yes ;; | |
620 | esac | |
621 | eval "with_${ac_package}='$ac_optarg'" ;; | |
622 | ||
623 | -without-* | --without-*) | |
624 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
625 | # Reject names that are not valid shell variable names. | |
626 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
627 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
628 | fi | |
629 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
630 | eval "with_${ac_package}=no" ;; | |
631 | ||
632 | --x) | |
633 | # Obsolete; use --with-x. | |
634 | with_x=yes ;; | |
635 | ||
636 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
637 | | --x-incl | --x-inc | --x-in | --x-i) | |
638 | ac_prev=x_includes ;; | |
639 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
640 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
641 | x_includes="$ac_optarg" ;; | |
642 | ||
643 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
644 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
645 | ac_prev=x_libraries ;; | |
646 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
647 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
648 | x_libraries="$ac_optarg" ;; | |
649 | ||
650 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
651 | ;; | |
652 | ||
653 | *) | |
654 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
655 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
656 | fi | |
657 | if test "x$nonopt" != xNONE; then | |
658 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
659 | fi | |
660 | nonopt="$ac_option" | |
661 | ;; | |
662 | ||
663 | esac | |
664 | done | |
665 | ||
666 | if test -n "$ac_prev"; then | |
667 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
668 | fi | |
669 | ||
670 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
671 | ||
672 | # File descriptor usage: | |
673 | # 0 standard input | |
674 | # 1 file creation | |
675 | # 2 errors and warnings | |
676 | # 3 some systems may open it to /dev/tty | |
677 | # 4 used on the Kubota Titan | |
678 | # 6 checking for... messages and results | |
679 | # 5 compiler messages saved in config.log | |
680 | if test "$silent" = yes; then | |
681 | exec 6>/dev/null | |
682 | else | |
683 | exec 6>&1 | |
684 | fi | |
685 | exec 5>./config.log | |
686 | ||
687 | echo "\ | |
688 | This file contains any messages produced by compilers while | |
689 | running configure, to aid debugging if configure makes a mistake. | |
690 | " 1>&5 | |
691 | ||
692 | # Strip out --no-create and --no-recursion so they do not pile up. | |
693 | # Also quote any args containing shell metacharacters. | |
694 | ac_configure_args= | |
695 | for ac_arg | |
696 | do | |
697 | case "$ac_arg" in | |
698 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
699 | | --no-cr | --no-c) ;; | |
700 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
701 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
702 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
703 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
704 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
705 | esac | |
706 | done | |
707 | ||
708 | # NLS nuisances. | |
709 | # Only set these to C if already set. These must not be set unconditionally | |
710 | # because not all systems understand e.g. LANG=C (notably SCO). | |
711 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
712 | # Non-C LC_CTYPE values break the ctype check. | |
713 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
714 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
715 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
716 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
717 | ||
718 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
719 | rm -rf conftest* confdefs.h | |
720 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
721 | echo > confdefs.h | |
722 | ||
723 | # A filename unique to this package, relative to the directory that | |
724 | # configure is in, which we can look for to find out if srcdir is correct. | |
725 | ac_unique_file=wx-config.in | |
726 | ||
727 | # Find the source files, if location was not specified. | |
728 | if test -z "$srcdir"; then | |
729 | ac_srcdir_defaulted=yes | |
730 | # Try the directory containing this script, then its parent. | |
731 | ac_prog=$0 | |
732 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
733 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
734 | srcdir=$ac_confdir | |
735 | if test ! -r $srcdir/$ac_unique_file; then | |
736 | srcdir=.. | |
737 | fi | |
738 | else | |
739 | ac_srcdir_defaulted=no | |
740 | fi | |
741 | if test ! -r $srcdir/$ac_unique_file; then | |
742 | if test "$ac_srcdir_defaulted" = yes; then | |
743 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
744 | else | |
745 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
746 | fi | |
747 | fi | |
748 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
749 | ||
750 | # Prefer explicitly selected file to automatically selected ones. | |
751 | if test -z "$CONFIG_SITE"; then | |
752 | if test "x$prefix" != xNONE; then | |
753 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
754 | else | |
755 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
756 | fi | |
757 | fi | |
758 | for ac_site_file in $CONFIG_SITE; do | |
759 | if test -r "$ac_site_file"; then | |
760 | echo "loading site script $ac_site_file" | |
761 | . "$ac_site_file" | |
762 | fi | |
763 | done | |
764 | ||
765 | if test -r "$cache_file"; then | |
766 | echo "loading cache $cache_file" | |
767 | . $cache_file | |
768 | else | |
769 | echo "creating cache $cache_file" | |
770 | > $cache_file | |
771 | fi | |
772 | ||
773 | ac_ext=c | |
774 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
775 | ac_cpp='$CPP $CPPFLAGS' | |
776 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
777 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
778 | cross_compiling=$ac_cv_prog_cc_cross | |
779 | ||
780 | ac_exeext= | |
781 | ac_objext=o | |
782 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
783 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
784 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
785 | ac_n= ac_c=' | |
786 | ' ac_t=' ' | |
787 | else | |
788 | ac_n=-n ac_c= ac_t= | |
789 | fi | |
790 | else | |
791 | ac_n= ac_c='\c' ac_t= | |
792 | fi | |
793 | ||
794 | ||
795 | ||
7c66a493 VZ |
796 | ac_aux_dir= |
797 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
798 | if test -f $ac_dir/install-sh; then | |
799 | ac_aux_dir=$ac_dir | |
800 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
801 | break | |
802 | elif test -f $ac_dir/install.sh; then | |
803 | ac_aux_dir=$ac_dir | |
804 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
805 | break | |
806 | fi | |
807 | done | |
808 | if test -z "$ac_aux_dir"; then | |
809 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
810 | fi | |
811 | ac_config_guess=$ac_aux_dir/config.guess | |
812 | ac_config_sub=$ac_aux_dir/config.sub | |
813 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
814 | ||
815 | ||
816 | # Do some error checking and defaulting for the host and target type. | |
817 | # The inputs are: | |
818 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
819 | # | |
820 | # The rules are: | |
821 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
822 | # same time. | |
823 | # 2. Host defaults to nonopt. | |
824 | # 3. If nonopt is not specified, then host defaults to the current host, | |
825 | # as determined by config.guess. | |
826 | # 4. Target and build default to nonopt. | |
827 | # 5. If nonopt is not specified, then target and build default to host. | |
828 | ||
829 | # The aliases save the names the user supplied, while $host etc. | |
830 | # will get canonicalized. | |
831 | case $host---$target---$nonopt in | |
832 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
833 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
834 | esac | |
835 | ||
836 | ||
837 | # Make sure we can run config.sub. | |
838 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
839 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
840 | fi | |
841 | ||
842 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
422107f9 | 843 | echo "configure:844: checking host system type" >&5 |
7c66a493 VZ |
844 | |
845 | host_alias=$host | |
846 | case "$host_alias" in | |
847 | NONE) | |
848 | case $nonopt in | |
849 | NONE) | |
850 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
851 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
852 | fi ;; | |
853 | *) host_alias=$nonopt ;; | |
854 | esac ;; | |
855 | esac | |
856 | ||
857 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
858 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
859 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
860 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
861 | echo "$ac_t""$host" 1>&6 | |
862 | ||
863 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
422107f9 | 864 | echo "configure:865: checking target system type" >&5 |
7c66a493 VZ |
865 | |
866 | target_alias=$target | |
867 | case "$target_alias" in | |
868 | NONE) | |
869 | case $nonopt in | |
870 | NONE) target_alias=$host_alias ;; | |
871 | *) target_alias=$nonopt ;; | |
872 | esac ;; | |
873 | esac | |
874 | ||
875 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
876 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
877 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
878 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
879 | echo "$ac_t""$target" 1>&6 | |
880 | ||
881 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
422107f9 | 882 | echo "configure:883: checking build system type" >&5 |
7c66a493 VZ |
883 | |
884 | build_alias=$build | |
885 | case "$build_alias" in | |
886 | NONE) | |
887 | case $nonopt in | |
888 | NONE) build_alias=$host_alias ;; | |
889 | *) build_alias=$nonopt ;; | |
890 | esac ;; | |
891 | esac | |
892 | ||
893 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
894 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
895 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
896 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
897 | echo "$ac_t""$build" 1>&6 | |
898 | ||
899 | test "$host_alias" != "$target_alias" && | |
900 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
901 | NONENONEs,x,x, && | |
902 | program_prefix=${target_alias}- | |
903 | ||
904 | ||
10f2d63a VZ |
905 | |
906 | WX_MAJOR_VERSION_NUMBER=2 | |
907 | WX_MINOR_VERSION_NUMBER=1 | |
cc977e5f | 908 | WX_RELEASE_NUMBER=14 |
10f2d63a VZ |
909 | |
910 | WX_INTERFACE_AGE=0 | |
911 | WX_BINARY_AGE=0 | |
912 | ||
913 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
914 | ||
915 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
916 | WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE` | |
917 | WX_REVISION=$WX_INTERFACE_AGE | |
918 | WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE` | |
919 | ||
920 | ||
921 | USE_UNIX=1 | |
922 | USE_WIN32=0 | |
b12915c1 VZ |
923 | USE_BEOS=0 |
924 | ||
10f2d63a VZ |
925 | USE_LINUX= |
926 | USE_SGI= | |
927 | USE_HPUX= | |
928 | USE_SYSV= | |
929 | USE_SVR4= | |
930 | USE_AIX= | |
931 | USE_SUN= | |
932 | USE_SOLARIS= | |
933 | USE_SUNOS= | |
934 | USE_ALPHA= | |
935 | USE_OSF= | |
936 | USE_BSD= | |
937 | USE_FREEBSD= | |
938 | USE_VMS= | |
939 | USE_ULTRIX= | |
940 | USE_CYGWIN= | |
941 | USE_MINGW= | |
942 | USE_DATA_GENERAL= | |
943 | ||
ab9b9eab VZ |
944 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
945 | ||
e07802fc | 946 | ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM" |
10f2d63a VZ |
947 | |
948 | DEFAULT_wxUSE_GTK=0 | |
949 | DEFAULT_wxUSE_MOTIF=0 | |
950 | DEFAULT_wxUSE_MSW=0 | |
951 | DEFAULT_wxUSE_WINE=0 | |
e07802fc | 952 | DEFAULT_wxUSE_PM=0 |
10f2d63a VZ |
953 | |
954 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
955 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
956 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
957 | DEFAULT_DEFAULT_wxUSE_WINE=0 | |
e07802fc | 958 | DEFAULT_DEFAULT_wxUSE_PM=0 |
10f2d63a | 959 | |
d6a55c4b VZ |
960 | PROGRAM_EXT= |
961 | ||
10f2d63a VZ |
962 | case "${host}" in |
963 | *-hp-hpux* ) | |
964 | USE_HPUX=1 | |
965 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 966 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
967 | cat >> confdefs.h <<\EOF |
968 | #define __HPUX__ 1 | |
969 | EOF | |
970 | ||
971 | ;; | |
972 | *-*-linux* ) | |
973 | USE_LINUX=1 | |
974 | cat >> confdefs.h <<\EOF | |
975 | #define __LINUX__ 1 | |
976 | EOF | |
977 | ||
978 | TMP=`uname -m` | |
979 | if test "x$TMP" = "xalpha"; then | |
980 | USE_ALPHA=1 | |
981 | cat >> confdefs.h <<\EOF | |
982 | #define __ALPHA__ 1 | |
983 | EOF | |
984 | ||
985 | fi | |
986 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
987 | ;; | |
988 | *-*-irix5* | *-*-irix6* ) | |
989 | USE_SGI=1 | |
990 | USE_SVR4=1 | |
991 | cat >> confdefs.h <<\EOF | |
992 | #define __SGI__ 1 | |
993 | EOF | |
994 | ||
995 | cat >> confdefs.h <<\EOF | |
996 | #define __SVR4__ 1 | |
997 | EOF | |
998 | ||
999 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1000 | ;; | |
1001 | *-*-solaris2* ) | |
1002 | USE_SUN=1 | |
1003 | USE_SOLARIS=1 | |
1004 | USE_SVR4=1 | |
1005 | cat >> confdefs.h <<\EOF | |
1006 | #define __SUN__ 1 | |
1007 | EOF | |
1008 | ||
1009 | cat >> confdefs.h <<\EOF | |
1010 | #define __SOLARIS__ 1 | |
1011 | EOF | |
1012 | ||
1013 | cat >> confdefs.h <<\EOF | |
1014 | #define __SVR4__ 1 | |
1015 | EOF | |
1016 | ||
1017 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1018 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1019 | ;; |
1020 | *-*-sunos4* ) | |
1021 | USE_SUN=1 | |
1022 | USE_SUNOS=1 | |
1023 | USE_BSD=1 | |
1024 | cat >> confdefs.h <<\EOF | |
1025 | #define __SUN__ 1 | |
1026 | EOF | |
1027 | ||
1028 | cat >> confdefs.h <<\EOF | |
1029 | #define __SUNOS__ 1 | |
1030 | EOF | |
1031 | ||
1032 | cat >> confdefs.h <<\EOF | |
1033 | #define __BSD__ 1 | |
1034 | EOF | |
1035 | ||
1036 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1037 | ;; | |
1038 | *-*-freebsd* | *-*-netbsd*) | |
1039 | USE_BSD=1 | |
1040 | USE_FREEBSD=1 | |
1041 | cat >> confdefs.h <<\EOF | |
1042 | #define __FREEBSD__ 1 | |
1043 | EOF | |
1044 | ||
1045 | cat >> confdefs.h <<\EOF | |
1046 | #define __BSD__ 1 | |
1047 | EOF | |
1048 | ||
1049 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1050 | ;; | |
1051 | *-*-osf* ) | |
1052 | USE_ALPHA=1 | |
1053 | USE_OSF=1 | |
1054 | cat >> confdefs.h <<\EOF | |
1055 | #define __ALPHA__ 1 | |
1056 | EOF | |
1057 | ||
1058 | cat >> confdefs.h <<\EOF | |
1059 | #define __OSF__ 1 | |
1060 | EOF | |
1061 | ||
1062 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1063 | ;; | |
1064 | *-*-dgux5* ) | |
1065 | USE_ALPHA=1 | |
1066 | USE_SVR4=1 | |
1067 | cat >> confdefs.h <<\EOF | |
1068 | #define __ALPHA__ 1 | |
1069 | EOF | |
1070 | ||
1071 | cat >> confdefs.h <<\EOF | |
1072 | #define __SVR4__ 1 | |
1073 | EOF | |
1074 | ||
1075 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1076 | ;; | |
1077 | *-*-sysv5* ) | |
1078 | USE_SYSV=1 | |
1079 | USE_SVR4=1 | |
1080 | cat >> confdefs.h <<\EOF | |
1081 | #define __SYSV__ 1 | |
1082 | EOF | |
1083 | ||
1084 | cat >> confdefs.h <<\EOF | |
1085 | #define __SVR4__ 1 | |
1086 | EOF | |
1087 | ||
1088 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1089 | ;; | |
1090 | *-*-aix* ) | |
1091 | USE_AIX=1 | |
1092 | USE_SYSV=1 | |
1093 | USE_SVR4=1 | |
1094 | cat >> confdefs.h <<\EOF | |
1095 | #define __AIX__ 1 | |
1096 | EOF | |
1097 | ||
1098 | cat >> confdefs.h <<\EOF | |
1099 | #define __SYSV__ 1 | |
1100 | EOF | |
1101 | ||
1102 | cat >> confdefs.h <<\EOF | |
1103 | #define __SVR4__ 1 | |
1104 | EOF | |
1105 | ||
1106 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1107 | ;; | |
1108 | ||
7eef8db2 | 1109 | *-*-cygwin32* | *-*-mingw32* ) |
10f2d63a VZ |
1110 | USE_UNIX=0 |
1111 | USE_WIN32=1 | |
1112 | cat >> confdefs.h <<\EOF | |
1113 | #define __WIN32__ 1 | |
1114 | EOF | |
1115 | ||
1116 | cat >> confdefs.h <<\EOF | |
1117 | #define __WIN95__ 1 | |
1118 | EOF | |
1119 | ||
1120 | cat >> confdefs.h <<\EOF | |
1121 | #define __WINDOWS__ 1 | |
1122 | EOF | |
1123 | ||
1124 | cat >> confdefs.h <<\EOF | |
1125 | #define __GNUWIN32__ 1 | |
1126 | EOF | |
1127 | ||
1128 | cat >> confdefs.h <<\EOF | |
1129 | #define STRICT 1 | |
1130 | EOF | |
1131 | ||
1132 | cat >> confdefs.h <<\EOF | |
1133 | #define WINVER 0x0400 | |
1134 | EOF | |
1135 | ||
cf27ef00 | 1136 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1137 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1138 | ;; | |
1139 | ||
1140 | *-pc-os2_emx ) | |
1141 | cat >> confdefs.h <<\EOF | |
1142 | #define __EMX__ 1 | |
1143 | EOF | |
1144 | ||
cf27ef00 | 1145 | PROGRAM_EXT=".exe" |
e07802fc | 1146 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1147 | ;; |
1148 | ||
b12915c1 VZ |
1149 | *-*-beos* ) |
1150 | USE_BEOS=1 | |
1151 | cat >> confdefs.h <<\EOF | |
1152 | #define __BEOS__ 1 | |
1153 | EOF | |
1154 | ||
1155 | ;; | |
1156 | ||
10f2d63a VZ |
1157 | *) |
1158 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
1159 | esac | |
1160 | ||
1161 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 VZ |
1162 | wxUSE_UNIX=yes |
1163 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
1164 | #define __UNIX__ 1 |
1165 | EOF | |
1166 | ||
b12915c1 VZ |
1167 | |
1168 | SRC_SUBDIRS="$SRC_SUBDIRS unix" | |
1169 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1170 | fi | |
1171 | ||
1172 | if test "$USE_BEOS" = 1; then | |
1173 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1174 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
10f2d63a VZ |
1175 | fi |
1176 | ||
1177 | if test "$USE_LINUX" = 1; then | |
1178 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 | |
422107f9 | 1179 | echo "configure:1180: checking for gettext in -lc" >&5 |
10f2d63a VZ |
1180 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1181 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1182 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1183 | else | |
1184 | ac_save_LIBS="$LIBS" | |
1185 | LIBS="-lc $LIBS" | |
1186 | cat > conftest.$ac_ext <<EOF | |
422107f9 | 1187 | #line 1188 "configure" |
10f2d63a VZ |
1188 | #include "confdefs.h" |
1189 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1190 | /* We use char because int might match the return type of a gcc2 | |
1191 | builtin and then its argument prototype would still apply. */ | |
1192 | char gettext(); | |
1193 | ||
1194 | int main() { | |
1195 | gettext() | |
1196 | ; return 0; } | |
1197 | EOF | |
422107f9 | 1198 | if { (eval echo configure:1199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
1199 | rm -rf conftest* |
1200 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1201 | else | |
1202 | echo "configure: failed program was:" >&5 | |
1203 | cat conftest.$ac_ext >&5 | |
1204 | rm -rf conftest* | |
1205 | eval "ac_cv_lib_$ac_lib_var=no" | |
1206 | fi | |
1207 | rm -f conftest* | |
1208 | LIBS="$ac_save_LIBS" | |
1209 | ||
1210 | fi | |
1211 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1212 | echo "$ac_t""yes" 1>&6 | |
1213 | cat >> confdefs.h <<\EOF | |
1214 | #define wxHAVE_GLIBC2 1 | |
1215 | EOF | |
1216 | ||
1217 | else | |
1218 | echo "$ac_t""no" 1>&6 | |
1219 | fi | |
1220 | ||
1221 | fi | |
1222 | ||
1223 | ||
1224 | ||
1225 | ||
1226 | wx_arg_cache_file="configarg.cache" | |
1227 | echo "loading argument cache $wx_arg_cache_file" | |
1228 | rm -f ${wx_arg_cache_file}.tmp | |
1229 | touch ${wx_arg_cache_file}.tmp | |
1230 | touch ${wx_arg_cache_file} | |
1231 | ||
1232 | ||
1233 | DEBUG_CONFIGURE=0 | |
1234 | if test $DEBUG_CONFIGURE = 1; then | |
1235 | DEFAULT_wxUSE_THREADS=yes | |
1236 | ||
1237 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1238 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1239 | DEFAULT_wxUSE_OPTIMISE=yes |
1240 | DEFAULT_wxUSE_PROFILE=no | |
1241 | DEFAULT_wxUSE_NO_DEPS=no | |
1242 | DEFAULT_wxUSE_NO_RTTI=no | |
1243 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1244 | DEFAULT_wxUSE_PERMISSIVE=no | |
1245 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1246 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1247 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1248 | DEFAULT_wxUSE_MEM_TRACING=no | |
1249 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1250 | DEFAULT_wxUSE_DMALLOC=no | |
1251 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1252 | ||
1253 | DEFAULT_wxUSE_LOG=yes | |
1254 | ||
1255 | DEFAULT_wxUSE_GUI=yes | |
1256 | ||
1257 | DEFAULT_wxUSE_ZLIB=no | |
1258 | DEFAULT_wxUSE_LIBPNG=no | |
1259 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1260 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1261 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1262 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a VZ |
1263 | |
1264 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1265 | DEFAULT_wxUSE_FILE=no | |
1266 | DEFAULT_wxUSE_TEXTFILE=no | |
1267 | DEFAULT_wxUSE_TIMEDATE=no | |
1268 | DEFAULT_wxUSE_WAVE=no | |
1269 | DEFAULT_wxUSE_INTL=no | |
1270 | DEFAULT_wxUSE_CONFIG=no | |
1271 | DEFAULT_wxUSE_STREAMS=no | |
1272 | DEFAULT_wxUSE_SOCKETS=no | |
1273 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1274 | DEFAULT_wxUSE_SERIAL=no | |
1275 | DEFAULT_wxUSE_JOYSTICK=no | |
1276 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1277 | DEFAULT_wxUSE_LONGLONG=no | |
1278 | ||
1279 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1280 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1281 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1282 | ||
1283 | DEFAULT_wxUSE_X_RESOURCES=no | |
1284 | DEFAULT_wxUSE_CLIPBOARD=no | |
1285 | DEFAULT_wxUSE_TOOLTIPS=no | |
1286 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1287 | DEFAULT_wxUSE_SPLINES=no | |
1288 | ||
1289 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1290 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1291 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1292 | ||
1293 | DEFAULT_wxUSE_PROLOGIO=no | |
1294 | DEFAULT_wxUSE_RESOURCES=no | |
1295 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1296 | DEFAULT_wxUSE_IPC=no | |
1297 | DEFAULT_wxUSE_HELP=no | |
1298 | DEFAULT_wxUSE_WXTREE=no | |
1299 | DEFAULT_wxUSE_METAFILE=no | |
1300 | ||
1301 | DEFAULT_wxUSE_COMMONDLGS=no | |
1302 | DEFAULT_wxUSE_DIRDLG=no | |
1303 | DEFAULT_wxUSE_TEXTDLG=no | |
1304 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1305 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1306 | DEFAULT_wxUSE_MINIFRAME=no | |
1307 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1308 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1309 | DEFAULT_wxUSE_FS_INET=no |
1310 | DEFAULT_wxUSE_FS_ZIP=no | |
1311 | DEFAULT_wxUSE_BUSYINFO=no | |
1312 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1313 | DEFAULT_wxUSE_VALIDATORS=yes | |
1314 | ||
1315 | DEFAULT_wxUSE_ACCEL=no | |
1316 | DEFAULT_wxUSE_CARET=no | |
1317 | DEFAULT_wxUSE_BMPBUTTON=no | |
1318 | DEFAULT_wxUSE_CHECKBOX=no | |
1319 | DEFAULT_wxUSE_CHECKLST=no | |
1320 | DEFAULT_wxUSE_CHOICE=yes | |
1321 | DEFAULT_wxUSE_COMBOBOX=no | |
1322 | DEFAULT_wxUSE_GAUGE=no | |
1323 | DEFAULT_wxUSE_GRID=no | |
1324 | DEFAULT_wxUSE_NEW_GRID=no | |
1325 | DEFAULT_wxUSE_IMAGLIST=no | |
1326 | DEFAULT_wxUSE_LISTBOX=no | |
1327 | DEFAULT_wxUSE_LISTCTRL=no | |
1328 | DEFAULT_wxUSE_NOTEBOOK=no | |
9b33fe02 | 1329 | DEFAULT_wxUSE_PLOT=no |
10f2d63a VZ |
1330 | DEFAULT_wxUSE_RADIOBOX=no |
1331 | DEFAULT_wxUSE_RADIOBTN=no | |
1332 | DEFAULT_wxUSE_SASH=no | |
1333 | DEFAULT_wxUSE_SCROLLBAR=no | |
1334 | DEFAULT_wxUSE_SLIDER=no | |
1335 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1336 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1337 | DEFAULT_wxUSE_SPLITTER=no |
1338 | DEFAULT_wxUSE_STATBMP=no | |
1339 | DEFAULT_wxUSE_STATBOX=no | |
1340 | DEFAULT_wxUSE_STATLINE=no | |
1341 | DEFAULT_wxUSE_STATUSBAR=yes | |
1342 | DEFAULT_wxUSE_TABDIALOG=no | |
1343 | DEFAULT_wxUSE_TOOLBAR=no | |
360d6699 VZ |
1344 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1345 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
1346 | DEFAULT_wxUSE_TREECTRL=no |
1347 | ||
1348 | DEFAULT_wxUSE_UNICODE=no | |
1349 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1350 | ||
1351 | DEFAULT_wxUSE_GIF=no | |
1352 | DEFAULT_wxUSE_PCX=no | |
1353 | DEFAULT_wxUSE_PNM=no | |
1354 | else | |
1355 | DEFAULT_wxUSE_THREADS=yes | |
1356 | ||
1357 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1358 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1359 | DEFAULT_wxUSE_OPTIMISE=yes |
1360 | DEFAULT_wxUSE_PROFILE=no | |
1361 | DEFAULT_wxUSE_NO_DEPS=no | |
1362 | DEFAULT_wxUSE_NO_RTTI=no | |
1363 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1364 | DEFAULT_wxUSE_PERMISSIVE=no | |
1365 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1366 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1367 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1368 | DEFAULT_wxUSE_MEM_TRACING=no | |
1369 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1370 | DEFAULT_wxUSE_DMALLOC=no | |
1371 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1372 | ||
1373 | DEFAULT_wxUSE_LOG=yes | |
1374 | ||
1375 | DEFAULT_wxUSE_GUI=yes | |
1376 | ||
1377 | DEFAULT_wxUSE_ZLIB=yes | |
1378 | DEFAULT_wxUSE_LIBPNG=yes | |
1379 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1380 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1381 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1382 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a VZ |
1383 | |
1384 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1385 | DEFAULT_wxUSE_FILE=yes | |
1386 | DEFAULT_wxUSE_TEXTFILE=yes | |
1387 | DEFAULT_wxUSE_TIMEDATE=yes | |
1388 | DEFAULT_wxUSE_WAVE=no | |
1389 | DEFAULT_wxUSE_INTL=yes | |
1390 | DEFAULT_wxUSE_CONFIG=yes | |
1391 | DEFAULT_wxUSE_STREAMS=yes | |
1392 | DEFAULT_wxUSE_SOCKETS=yes | |
1393 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1394 | DEFAULT_wxUSE_SERIAL=yes | |
1395 | DEFAULT_wxUSE_JOYSTICK=yes | |
1396 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1397 | DEFAULT_wxUSE_LONGLONG=yes |
10f2d63a VZ |
1398 | |
1399 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1400 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1401 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1402 | ||
1403 | DEFAULT_wxUSE_X_RESOURCES=no | |
1404 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1405 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1406 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1407 | DEFAULT_wxUSE_SPLINES=yes | |
1408 | ||
1409 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1410 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1411 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1412 | ||
1413 | DEFAULT_wxUSE_PROLOGIO=yes | |
1414 | DEFAULT_wxUSE_RESOURCES=yes | |
1415 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1416 | DEFAULT_wxUSE_IPC=yes | |
1417 | DEFAULT_wxUSE_HELP=yes | |
1418 | DEFAULT_wxUSE_WXTREE=yes | |
1419 | DEFAULT_wxUSE_METAFILE=yes | |
1420 | ||
1421 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1422 | DEFAULT_wxUSE_DIRDLG=yes | |
1423 | DEFAULT_wxUSE_TEXTDLG=yes | |
1424 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1425 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1426 | DEFAULT_wxUSE_MINIFRAME=yes | |
1427 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1428 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1429 | DEFAULT_wxUSE_FS_INET=yes |
1430 | DEFAULT_wxUSE_FS_ZIP=yes | |
1431 | DEFAULT_wxUSE_BUSYINFO=yes | |
1432 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1433 | DEFAULT_wxUSE_VALIDATORS=yes | |
1434 | ||
1435 | DEFAULT_wxUSE_ACCEL=yes | |
1436 | DEFAULT_wxUSE_CARET=yes | |
1437 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1438 | DEFAULT_wxUSE_CHECKBOX=yes | |
1439 | DEFAULT_wxUSE_CHECKLST=yes | |
1440 | DEFAULT_wxUSE_CHOICE=yes | |
1441 | DEFAULT_wxUSE_COMBOBOX=yes | |
1442 | DEFAULT_wxUSE_GAUGE=yes | |
1443 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1444 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1445 | DEFAULT_wxUSE_IMAGLIST=yes |
1446 | DEFAULT_wxUSE_LISTBOX=yes | |
1447 | DEFAULT_wxUSE_LISTCTRL=yes | |
1448 | DEFAULT_wxUSE_NOTEBOOK=yes | |
9b33fe02 | 1449 | DEFAULT_wxUSE_PLOT=yes |
10f2d63a VZ |
1450 | DEFAULT_wxUSE_RADIOBOX=yes |
1451 | DEFAULT_wxUSE_RADIOBTN=yes | |
1452 | DEFAULT_wxUSE_SASH=yes | |
1453 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1454 | DEFAULT_wxUSE_SLIDER=yes | |
1455 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1456 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1457 | DEFAULT_wxUSE_SPLITTER=yes |
1458 | DEFAULT_wxUSE_STATBMP=yes | |
1459 | DEFAULT_wxUSE_STATBOX=yes | |
1460 | DEFAULT_wxUSE_STATLINE=yes | |
1461 | DEFAULT_wxUSE_STATUSBAR=yes | |
1462 | DEFAULT_wxUSE_TABDIALOG=no | |
1463 | DEFAULT_wxUSE_TOOLBAR=yes | |
360d6699 VZ |
1464 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1465 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
1466 | DEFAULT_wxUSE_TREECTRL=yes |
1467 | ||
1468 | DEFAULT_wxUSE_UNICODE=no | |
1469 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1470 | ||
1471 | DEFAULT_wxUSE_GIF=yes | |
1472 | DEFAULT_wxUSE_PCX=yes | |
1473 | DEFAULT_wxUSE_PNM=yes | |
1474 | fi | |
1475 | ||
1476 | ||
1477 | ||
1478 | for toolkit in `echo $ALL_TOOLKITS`; do | |
1479 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1480 | if test "x$LINE" != x ; then | |
1481 | has_toolkit_in_cache=1 | |
1482 | eval "DEFAULT_$LINE" | |
1483 | eval "CACHE_$toolkit=1" | |
1484 | fi | |
1485 | done | |
1486 | ||
1487 | ||
1488 | ||
1489 | echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6 | |
422107f9 | 1490 | echo "configure:1491: checking "for --enable-gui"" >&5 |
10f2d63a VZ |
1491 | no_cache=0 |
1492 | # Check whether --enable-gui or --disable-gui was given. | |
1493 | if test "${enable_gui+set}" = set; then | |
1494 | enableval="$enable_gui" | |
1495 | ||
1496 | if test "$enableval" = yes; then | |
1497 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1498 | else | |
1499 | ac_cv_use_gui='wxUSE_GUI=no' | |
1500 | fi | |
1501 | ||
1502 | else | |
1503 | ||
1504 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
1505 | if test "x$LINE" != x ; then | |
1506 | eval "DEFAULT_$LINE" | |
1507 | else | |
1508 | no_cache=1 | |
1509 | fi | |
1510 | ||
1511 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
1512 | ||
1513 | fi | |
1514 | ||
1515 | ||
1516 | eval "$ac_cv_use_gui" | |
1517 | if test "$no_cache" != 1; then | |
1518 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1519 | fi | |
1520 | ||
1521 | if test "$wxUSE_GUI" = yes; then | |
1522 | echo "$ac_t""yes" 1>&6 | |
1523 | else | |
1524 | echo "$ac_t""no" 1>&6 | |
1525 | fi | |
1526 | ||
1527 | ||
b12915c1 | 1528 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a VZ |
1529 | |
1530 | # Check whether --with-gtk or --without-gtk was given. | |
1531 | if test "${with_gtk+set}" = set; then | |
1532 | withval="$with_gtk" | |
1533 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
1534 | fi | |
1535 | ||
1536 | # Check whether --with-motif or --without-motif was given. | |
1537 | if test "${with_motif+set}" = set; then | |
1538 | withval="$with_motif" | |
1539 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
1540 | fi | |
1541 | ||
1542 | # Check whether --with-wine or --without-wine was given. | |
1543 | if test "${with_wine+set}" = set; then | |
1544 | withval="$with_wine" | |
1545 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
1546 | fi | |
1547 | ||
1548 | # Check whether --with-cygwin or --without-cygwin was given. | |
1549 | if test "${with_cygwin+set}" = set; then | |
1550 | withval="$with_cygwin" | |
1551 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
1552 | fi | |
1553 | ||
1554 | # Check whether --with-mingw or --without-mingw was given. | |
1555 | if test "${with_mingw+set}" = set; then | |
1556 | withval="$with_mingw" | |
1557 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
1558 | fi | |
1559 | ||
e07802fc VZ |
1560 | # Check whether --with-pm or --without-pm was given. |
1561 | if test "${with_pm+set}" = set; then | |
1562 | withval="$with_pm" | |
1563 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
1564 | fi | |
1565 | ||
10f2d63a VZ |
1566 | |
1567 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
1568 | if test "${with_gtk_prefix+set}" = set; then | |
1569 | withval="$with_gtk_prefix" | |
1570 | gtk_config_prefix="$withval" | |
1571 | else | |
1572 | gtk_config_prefix="" | |
1573 | fi | |
1574 | ||
1575 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
1576 | if test "${with_gtk_exec_prefix+set}" = set; then | |
1577 | withval="$with_gtk_exec_prefix" | |
1578 | gtk_config_exec_prefix="$withval" | |
1579 | else | |
1580 | gtk_config_exec_prefix="" | |
1581 | fi | |
1582 | ||
1583 | ||
1584 | ||
b12915c1 | 1585 | echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6 |
422107f9 | 1586 | echo "configure:1587: checking "for --with-libpng"" >&5 |
10f2d63a | 1587 | no_cache=0 |
b12915c1 VZ |
1588 | # Check whether --with-libpng or --without-libpng was given. |
1589 | if test "${with_libpng+set}" = set; then | |
1590 | withval="$with_libpng" | |
10f2d63a VZ |
1591 | |
1592 | if test "$withval" = yes; then | |
b12915c1 | 1593 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1594 | elif test "$withval" = no; then |
b12915c1 | 1595 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1596 | elif test "$withval" = sys; then |
1597 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1598 | else | |
1599 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1600 | fi |
1601 | ||
1602 | else | |
1603 | ||
b12915c1 | 1604 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1605 | if test "x$LINE" != x ; then |
1606 | eval "DEFAULT_$LINE" | |
1607 | else | |
1608 | no_cache=1 | |
1609 | fi | |
1610 | ||
b12915c1 | 1611 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a VZ |
1612 | |
1613 | fi | |
1614 | ||
1615 | ||
b12915c1 | 1616 | eval "$ac_cv_use_libpng" |
10f2d63a | 1617 | if test "$no_cache" != 1; then |
b12915c1 | 1618 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1619 | fi |
1620 | ||
b12915c1 | 1621 | if test "$wxUSE_LIBPNG" = yes; then |
10f2d63a | 1622 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1623 | elif test "$wxUSE_LIBPNG" = no; then |
10f2d63a | 1624 | echo "$ac_t""no" 1>&6 |
422107f9 VZ |
1625 | elif test "$wxUSE_LIBPNG" = sys; then |
1626 | echo "$ac_t""system version" 1>&6 | |
1627 | else | |
1628 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1629 | fi |
1630 | ||
1631 | ||
b12915c1 | 1632 | echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6 |
422107f9 | 1633 | echo "configure:1634: checking "for --with-libjpeg"" >&5 |
10f2d63a | 1634 | no_cache=0 |
b12915c1 VZ |
1635 | # Check whether --with-libjpeg or --without-libjpeg was given. |
1636 | if test "${with_libjpeg+set}" = set; then | |
1637 | withval="$with_libjpeg" | |
10f2d63a VZ |
1638 | |
1639 | if test "$withval" = yes; then | |
b12915c1 | 1640 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1641 | elif test "$withval" = no; then |
b12915c1 | 1642 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1643 | elif test "$withval" = sys; then |
1644 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1645 | else | |
1646 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1647 | fi |
1648 | ||
1649 | else | |
1650 | ||
b12915c1 | 1651 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1652 | if test "x$LINE" != x ; then |
1653 | eval "DEFAULT_$LINE" | |
1654 | else | |
1655 | no_cache=1 | |
1656 | fi | |
1657 | ||
b12915c1 | 1658 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a VZ |
1659 | |
1660 | fi | |
1661 | ||
1662 | ||
b12915c1 | 1663 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1664 | if test "$no_cache" != 1; then |
b12915c1 | 1665 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1666 | fi |
1667 | ||
b12915c1 | 1668 | if test "$wxUSE_LIBJPEG" = yes; then |
10f2d63a | 1669 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1670 | elif test "$wxUSE_LIBJPEG" = no; then |
10f2d63a | 1671 | echo "$ac_t""no" 1>&6 |
422107f9 VZ |
1672 | elif test "$wxUSE_LIBJPEG" = sys; then |
1673 | echo "$ac_t""system version" 1>&6 | |
1674 | else | |
1675 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1676 | fi |
1677 | ||
1678 | ||
b12915c1 | 1679 | echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6 |
422107f9 | 1680 | echo "configure:1681: checking "for --with-libtiff"" >&5 |
10f2d63a | 1681 | no_cache=0 |
b12915c1 VZ |
1682 | # Check whether --with-libtiff or --without-libtiff was given. |
1683 | if test "${with_libtiff+set}" = set; then | |
1684 | withval="$with_libtiff" | |
10f2d63a VZ |
1685 | |
1686 | if test "$withval" = yes; then | |
b12915c1 | 1687 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1688 | elif test "$withval" = no; then |
b12915c1 | 1689 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1690 | elif test "$withval" = sys; then |
1691 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1692 | else | |
1693 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1694 | fi |
1695 | ||
1696 | else | |
1697 | ||
b12915c1 | 1698 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1699 | if test "x$LINE" != x ; then |
1700 | eval "DEFAULT_$LINE" | |
1701 | else | |
1702 | no_cache=1 | |
1703 | fi | |
1704 | ||
b12915c1 | 1705 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a VZ |
1706 | |
1707 | fi | |
1708 | ||
1709 | ||
b12915c1 | 1710 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1711 | if test "$no_cache" != 1; then |
b12915c1 | 1712 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1713 | fi |
1714 | ||
b12915c1 | 1715 | if test "$wxUSE_LIBTIFF" = yes; then |
10f2d63a | 1716 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1717 | elif test "$wxUSE_LIBTIFF" = no; then |
10f2d63a | 1718 | echo "$ac_t""no" 1>&6 |
0dcf9893 VZ |
1719 | elif test "$wxUSE_LIBTIFF" = sys; then |
1720 | echo "$ac_t""system version" 1>&6 | |
1721 | else | |
1722 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1723 | fi |
1724 | ||
1725 | ||
b12915c1 | 1726 | echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6 |
0dcf9893 | 1727 | echo "configure:1728: checking "for --with-opengl"" >&5 |
10f2d63a | 1728 | no_cache=0 |
b12915c1 VZ |
1729 | # Check whether --with-opengl or --without-opengl was given. |
1730 | if test "${with_opengl+set}" = set; then | |
1731 | withval="$with_opengl" | |
10f2d63a VZ |
1732 | |
1733 | if test "$withval" = yes; then | |
b12915c1 | 1734 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 1735 | else |
b12915c1 | 1736 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a VZ |
1737 | fi |
1738 | ||
1739 | else | |
1740 | ||
b12915c1 | 1741 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
1742 | if test "x$LINE" != x ; then |
1743 | eval "DEFAULT_$LINE" | |
1744 | else | |
1745 | no_cache=1 | |
1746 | fi | |
1747 | ||
b12915c1 | 1748 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a VZ |
1749 | |
1750 | fi | |
1751 | ||
1752 | ||
b12915c1 | 1753 | eval "$ac_cv_use_opengl" |
10f2d63a | 1754 | if test "$no_cache" != 1; then |
b12915c1 | 1755 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1756 | fi |
1757 | ||
b12915c1 | 1758 | if test "$wxUSE_OPENGL" = yes; then |
10f2d63a VZ |
1759 | echo "$ac_t""yes" 1>&6 |
1760 | else | |
1761 | echo "$ac_t""no" 1>&6 | |
1762 | fi | |
1763 | ||
1764 | ||
b12915c1 VZ |
1765 | fi |
1766 | ||
1767 | ||
1768 | echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6 | |
0dcf9893 | 1769 | echo "configure:1770: checking "for --with-dmalloc"" >&5 |
c7a2bf27 | 1770 | no_cache=0 |
b12915c1 VZ |
1771 | # Check whether --with-dmalloc or --without-dmalloc was given. |
1772 | if test "${with_dmalloc+set}" = set; then | |
1773 | withval="$with_dmalloc" | |
c7a2bf27 RR |
1774 | |
1775 | if test "$withval" = yes; then | |
b12915c1 | 1776 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 1777 | else |
b12915c1 | 1778 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 RR |
1779 | fi |
1780 | ||
1781 | else | |
1782 | ||
b12915c1 | 1783 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
1784 | if test "x$LINE" != x ; then |
1785 | eval "DEFAULT_$LINE" | |
1786 | else | |
1787 | no_cache=1 | |
1788 | fi | |
1789 | ||
b12915c1 | 1790 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 RR |
1791 | |
1792 | fi | |
1793 | ||
1794 | ||
b12915c1 | 1795 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 1796 | if test "$no_cache" != 1; then |
b12915c1 | 1797 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
1798 | fi |
1799 | ||
b12915c1 | 1800 | if test "$wxUSE_DMALLOC" = yes; then |
c7a2bf27 RR |
1801 | echo "$ac_t""yes" 1>&6 |
1802 | else | |
1803 | echo "$ac_t""no" 1>&6 | |
1804 | fi | |
1805 | ||
1806 | ||
b12915c1 | 1807 | echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6 |
0dcf9893 | 1808 | echo "configure:1809: checking "for --with-zlib"" >&5 |
10f2d63a | 1809 | no_cache=0 |
b12915c1 VZ |
1810 | # Check whether --with-zlib or --without-zlib was given. |
1811 | if test "${with_zlib+set}" = set; then | |
1812 | withval="$with_zlib" | |
10f2d63a VZ |
1813 | |
1814 | if test "$withval" = yes; then | |
b12915c1 | 1815 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 1816 | elif test "$withval" = no; then |
b12915c1 | 1817 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
1818 | elif test "$withval" = sys; then |
1819 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
1820 | else | |
1821 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1822 | fi |
1823 | ||
1824 | else | |
1825 | ||
b12915c1 | 1826 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
1827 | if test "x$LINE" != x ; then |
1828 | eval "DEFAULT_$LINE" | |
1829 | else | |
1830 | no_cache=1 | |
1831 | fi | |
1832 | ||
b12915c1 | 1833 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a VZ |
1834 | |
1835 | fi | |
1836 | ||
1837 | ||
b12915c1 | 1838 | eval "$ac_cv_use_zlib" |
10f2d63a | 1839 | if test "$no_cache" != 1; then |
b12915c1 | 1840 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1841 | fi |
1842 | ||
b12915c1 | 1843 | if test "$wxUSE_ZLIB" = yes; then |
10f2d63a | 1844 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1845 | elif test "$wxUSE_ZLIB" = no; then |
bdad4e7e | 1846 | echo "$ac_t""no" 1>&6 |
422107f9 VZ |
1847 | elif test "$wxUSE_ZLIB" = sys; then |
1848 | echo "$ac_t""system version" 1>&6 | |
1849 | else | |
1850 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1851 | fi |
1852 | ||
1853 | ||
1854 | echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6 | |
0dcf9893 | 1855 | echo "configure:1856: checking "for --with-odbc"" >&5 |
10f2d63a VZ |
1856 | no_cache=0 |
1857 | # Check whether --with-odbc or --without-odbc was given. | |
1858 | if test "${with_odbc+set}" = set; then | |
1859 | withval="$with_odbc" | |
1860 | ||
1861 | if test "$withval" = yes; then | |
1862 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
1863 | else | |
1864 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
1865 | fi | |
1866 | ||
1867 | else | |
1868 | ||
1869 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
1870 | if test "x$LINE" != x ; then | |
1871 | eval "DEFAULT_$LINE" | |
1872 | else | |
1873 | no_cache=1 | |
1874 | fi | |
1875 | ||
1876 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
1877 | ||
1878 | fi | |
1879 | ||
1880 | ||
1881 | eval "$ac_cv_use_odbc" | |
1882 | if test "$no_cache" != 1; then | |
1883 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
1884 | fi | |
1885 | ||
1886 | if test "$wxUSE_ODBC" = yes; then | |
1887 | echo "$ac_t""yes" 1>&6 | |
1888 | else | |
1889 | echo "$ac_t""no" 1>&6 | |
1890 | fi | |
1891 | ||
1892 | ||
1893 | ||
1894 | ||
1895 | ||
1896 | echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6 | |
0dcf9893 | 1897 | echo "configure:1898: checking "for --enable-shared"" >&5 |
10f2d63a VZ |
1898 | no_cache=0 |
1899 | # Check whether --enable-shared or --disable-shared was given. | |
1900 | if test "${enable_shared+set}" = set; then | |
1901 | enableval="$enable_shared" | |
1902 | ||
1903 | if test "$enableval" = yes; then | |
1904 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
1905 | else | |
1906 | ac_cv_use_shared='wxUSE_SHARED=no' | |
1907 | fi | |
1908 | ||
1909 | else | |
1910 | ||
1911 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
1912 | if test "x$LINE" != x ; then | |
1913 | eval "DEFAULT_$LINE" | |
1914 | else | |
1915 | no_cache=1 | |
1916 | fi | |
1917 | ||
1918 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
1919 | ||
1920 | fi | |
1921 | ||
1922 | ||
1923 | eval "$ac_cv_use_shared" | |
1924 | if test "$no_cache" != 1; then | |
1925 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
1926 | fi | |
1927 | ||
1928 | if test "$wxUSE_SHARED" = yes; then | |
1929 | echo "$ac_t""yes" 1>&6 | |
1930 | else | |
1931 | echo "$ac_t""no" 1>&6 | |
1932 | fi | |
1933 | ||
1934 | ||
00cf1208 | 1935 | echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6 |
0dcf9893 | 1936 | echo "configure:1937: checking "for --enable-burnt_name"" >&5 |
00cf1208 RR |
1937 | no_cache=0 |
1938 | # Check whether --enable-burnt_name or --disable-burnt_name was given. | |
1939 | if test "${enable_burnt_name+set}" = set; then | |
1940 | enableval="$enable_burnt_name" | |
1941 | ||
1942 | if test "$enableval" = yes; then | |
1943 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes' | |
1944 | else | |
1945 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no' | |
1946 | fi | |
1947 | ||
1948 | else | |
1949 | ||
1950 | LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}` | |
1951 | if test "x$LINE" != x ; then | |
1952 | eval "DEFAULT_$LINE" | |
1953 | else | |
1954 | no_cache=1 | |
1955 | fi | |
1956 | ||
1957 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME | |
1958 | ||
1959 | fi | |
1960 | ||
1961 | ||
1962 | eval "$ac_cv_use_burnt_name" | |
1963 | if test "$no_cache" != 1; then | |
1964 | echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp | |
1965 | fi | |
1966 | ||
1967 | if test "$wxUSE_BURNT_NAME" = yes; then | |
1968 | echo "$ac_t""yes" 1>&6 | |
1969 | else | |
1970 | echo "$ac_t""no" 1>&6 | |
1971 | fi | |
1972 | ||
1973 | ||
10f2d63a | 1974 | echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6 |
0dcf9893 | 1975 | echo "configure:1976: checking "for --enable-optimise"" >&5 |
10f2d63a VZ |
1976 | no_cache=0 |
1977 | # Check whether --enable-optimise or --disable-optimise was given. | |
1978 | if test "${enable_optimise+set}" = set; then | |
1979 | enableval="$enable_optimise" | |
1980 | ||
1981 | if test "$enableval" = yes; then | |
1982 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
1983 | else | |
1984 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
1985 | fi | |
1986 | ||
1987 | else | |
1988 | ||
1989 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
1990 | if test "x$LINE" != x ; then | |
1991 | eval "DEFAULT_$LINE" | |
1992 | else | |
1993 | no_cache=1 | |
1994 | fi | |
1995 | ||
1996 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
1997 | ||
1998 | fi | |
1999 | ||
2000 | ||
2001 | eval "$ac_cv_use_optimise" | |
2002 | if test "$no_cache" != 1; then | |
2003 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2004 | fi | |
2005 | ||
2006 | if test "$wxUSE_OPTIMISE" = yes; then | |
2007 | echo "$ac_t""yes" 1>&6 | |
2008 | else | |
2009 | echo "$ac_t""no" 1>&6 | |
2010 | fi | |
2011 | ||
2012 | ||
2013 | echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6 | |
0dcf9893 | 2014 | echo "configure:2015: checking "for --enable-debug"" >&5 |
10f2d63a VZ |
2015 | no_cache=0 |
2016 | # Check whether --enable-debug or --disable-debug was given. | |
2017 | if test "${enable_debug+set}" = set; then | |
2018 | enableval="$enable_debug" | |
2019 | ||
2020 | if test "$enableval" = yes; then | |
2021 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2022 | else | |
2023 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2024 | fi | |
2025 | ||
2026 | else | |
2027 | ||
2028 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
2029 | if test "x$LINE" != x ; then | |
2030 | eval "DEFAULT_$LINE" | |
2031 | else | |
2032 | no_cache=1 | |
2033 | fi | |
2034 | ||
2035 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
2036 | ||
2037 | fi | |
2038 | ||
2039 | ||
2040 | eval "$ac_cv_use_debug" | |
2041 | if test "$no_cache" != 1; then | |
2042 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2043 | fi | |
2044 | ||
2045 | if test "$wxUSE_DEBUG" = yes; then | |
2046 | echo "$ac_t""yes" 1>&6 | |
2047 | else | |
2048 | echo "$ac_t""no" 1>&6 | |
2049 | fi | |
2050 | ||
2051 | ||
2052 | if test "$wxUSE_DEBUG" = "yes"; then | |
2053 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2054 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2055 | elif test "$wxUSE_DEBUG" = "no"; then | |
2056 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2057 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2058 | fi | |
2059 | ||
2060 | ||
2061 | echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6 | |
0dcf9893 | 2062 | echo "configure:2063: checking "for --enable-debug_flag"" >&5 |
10f2d63a VZ |
2063 | no_cache=0 |
2064 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2065 | if test "${enable_debug_flag+set}" = set; then | |
2066 | enableval="$enable_debug_flag" | |
2067 | ||
2068 | if test "$enableval" = yes; then | |
2069 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2070 | else | |
2071 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2072 | fi | |
2073 | ||
2074 | else | |
2075 | ||
2076 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
2077 | if test "x$LINE" != x ; then | |
2078 | eval "DEFAULT_$LINE" | |
2079 | else | |
2080 | no_cache=1 | |
2081 | fi | |
2082 | ||
2083 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
2084 | ||
2085 | fi | |
2086 | ||
2087 | ||
2088 | eval "$ac_cv_use_debug_flag" | |
2089 | if test "$no_cache" != 1; then | |
2090 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2091 | fi | |
2092 | ||
2093 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
2094 | echo "$ac_t""yes" 1>&6 | |
2095 | else | |
2096 | echo "$ac_t""no" 1>&6 | |
2097 | fi | |
2098 | ||
2099 | ||
2100 | echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6 | |
0dcf9893 | 2101 | echo "configure:2102: checking "for --enable-debug_info"" >&5 |
10f2d63a VZ |
2102 | no_cache=0 |
2103 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2104 | if test "${enable_debug_info+set}" = set; then | |
2105 | enableval="$enable_debug_info" | |
2106 | ||
2107 | if test "$enableval" = yes; then | |
2108 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2109 | else | |
2110 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2111 | fi | |
2112 | ||
2113 | else | |
2114 | ||
2115 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
2116 | if test "x$LINE" != x ; then | |
2117 | eval "DEFAULT_$LINE" | |
2118 | else | |
2119 | no_cache=1 | |
2120 | fi | |
2121 | ||
2122 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
2123 | ||
2124 | fi | |
2125 | ||
2126 | ||
2127 | eval "$ac_cv_use_debug_info" | |
2128 | if test "$no_cache" != 1; then | |
2129 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2130 | fi | |
2131 | ||
2132 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
2133 | echo "$ac_t""yes" 1>&6 | |
2134 | else | |
2135 | echo "$ac_t""no" 1>&6 | |
2136 | fi | |
2137 | ||
2138 | ||
2139 | echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6 | |
0dcf9893 | 2140 | echo "configure:2141: checking "for --enable-debug_gdb"" >&5 |
10f2d63a VZ |
2141 | no_cache=0 |
2142 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2143 | if test "${enable_debug_gdb+set}" = set; then | |
2144 | enableval="$enable_debug_gdb" | |
2145 | ||
2146 | if test "$enableval" = yes; then | |
2147 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2148 | else | |
2149 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2150 | fi | |
2151 | ||
2152 | else | |
2153 | ||
2154 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
2155 | if test "x$LINE" != x ; then | |
2156 | eval "DEFAULT_$LINE" | |
2157 | else | |
2158 | no_cache=1 | |
2159 | fi | |
2160 | ||
2161 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
2162 | ||
2163 | fi | |
2164 | ||
2165 | ||
2166 | eval "$ac_cv_use_debug_gdb" | |
2167 | if test "$no_cache" != 1; then | |
2168 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2169 | fi | |
2170 | ||
2171 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
2172 | echo "$ac_t""yes" 1>&6 | |
2173 | else | |
2174 | echo "$ac_t""no" 1>&6 | |
2175 | fi | |
2176 | ||
2177 | ||
2178 | echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6 | |
0dcf9893 | 2179 | echo "configure:2180: checking "for --enable-debug_cntxt"" >&5 |
10f2d63a VZ |
2180 | no_cache=0 |
2181 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2182 | if test "${enable_debug_cntxt+set}" = set; then | |
2183 | enableval="$enable_debug_cntxt" | |
2184 | ||
2185 | if test "$enableval" = yes; then | |
2186 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2187 | else | |
2188 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2189 | fi | |
2190 | ||
2191 | else | |
2192 | ||
2193 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
2194 | if test "x$LINE" != x ; then | |
2195 | eval "DEFAULT_$LINE" | |
2196 | else | |
2197 | no_cache=1 | |
2198 | fi | |
2199 | ||
2200 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
2201 | ||
2202 | fi | |
2203 | ||
2204 | ||
2205 | eval "$ac_cv_use_debug_cntxt" | |
2206 | if test "$no_cache" != 1; then | |
2207 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2208 | fi | |
2209 | ||
2210 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
2211 | echo "$ac_t""yes" 1>&6 | |
2212 | else | |
2213 | echo "$ac_t""no" 1>&6 | |
2214 | fi | |
2215 | ||
2216 | ||
2217 | echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6 | |
0dcf9893 | 2218 | echo "configure:2219: checking "for --enable-mem_tracing"" >&5 |
10f2d63a VZ |
2219 | no_cache=0 |
2220 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2221 | if test "${enable_mem_tracing+set}" = set; then | |
2222 | enableval="$enable_mem_tracing" | |
2223 | ||
2224 | if test "$enableval" = yes; then | |
2225 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2226 | else | |
2227 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2228 | fi | |
2229 | ||
2230 | else | |
2231 | ||
2232 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
2233 | if test "x$LINE" != x ; then | |
2234 | eval "DEFAULT_$LINE" | |
2235 | else | |
2236 | no_cache=1 | |
2237 | fi | |
2238 | ||
2239 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
2240 | ||
2241 | fi | |
2242 | ||
2243 | ||
2244 | eval "$ac_cv_use_mem_tracing" | |
2245 | if test "$no_cache" != 1; then | |
2246 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2247 | fi | |
2248 | ||
2249 | if test "$wxUSE_MEM_TRACING" = yes; then | |
2250 | echo "$ac_t""yes" 1>&6 | |
2251 | else | |
2252 | echo "$ac_t""no" 1>&6 | |
2253 | fi | |
2254 | ||
2255 | ||
2256 | echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6 | |
0dcf9893 | 2257 | echo "configure:2258: checking "for --enable-profile"" >&5 |
10f2d63a VZ |
2258 | no_cache=0 |
2259 | # Check whether --enable-profile or --disable-profile was given. | |
2260 | if test "${enable_profile+set}" = set; then | |
2261 | enableval="$enable_profile" | |
2262 | ||
2263 | if test "$enableval" = yes; then | |
2264 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2265 | else | |
2266 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2267 | fi | |
2268 | ||
2269 | else | |
2270 | ||
2271 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
2272 | if test "x$LINE" != x ; then | |
2273 | eval "DEFAULT_$LINE" | |
2274 | else | |
2275 | no_cache=1 | |
2276 | fi | |
2277 | ||
2278 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
2279 | ||
2280 | fi | |
2281 | ||
2282 | ||
2283 | eval "$ac_cv_use_profile" | |
2284 | if test "$no_cache" != 1; then | |
2285 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2286 | fi | |
2287 | ||
2288 | if test "$wxUSE_PROFILE" = yes; then | |
2289 | echo "$ac_t""yes" 1>&6 | |
2290 | else | |
2291 | echo "$ac_t""no" 1>&6 | |
2292 | fi | |
2293 | ||
2294 | ||
2295 | echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6 | |
0dcf9893 | 2296 | echo "configure:2297: checking "for --enable-no_rtti"" >&5 |
10f2d63a VZ |
2297 | no_cache=0 |
2298 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2299 | if test "${enable_no_rtti+set}" = set; then | |
2300 | enableval="$enable_no_rtti" | |
2301 | ||
2302 | if test "$enableval" = yes; then | |
2303 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2304 | else | |
2305 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2306 | fi | |
2307 | ||
2308 | else | |
2309 | ||
2310 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
2311 | if test "x$LINE" != x ; then | |
2312 | eval "DEFAULT_$LINE" | |
2313 | else | |
2314 | no_cache=1 | |
2315 | fi | |
2316 | ||
2317 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
2318 | ||
2319 | fi | |
2320 | ||
2321 | ||
2322 | eval "$ac_cv_use_no_rtti" | |
2323 | if test "$no_cache" != 1; then | |
2324 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2325 | fi | |
2326 | ||
2327 | if test "$wxUSE_NO_RTTI" = yes; then | |
2328 | echo "$ac_t""yes" 1>&6 | |
2329 | else | |
2330 | echo "$ac_t""no" 1>&6 | |
2331 | fi | |
2332 | ||
2333 | ||
2334 | echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6 | |
0dcf9893 | 2335 | echo "configure:2336: checking "for --enable-no_exceptions"" >&5 |
10f2d63a VZ |
2336 | no_cache=0 |
2337 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2338 | if test "${enable_no_exceptions+set}" = set; then | |
2339 | enableval="$enable_no_exceptions" | |
2340 | ||
2341 | if test "$enableval" = yes; then | |
2342 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2343 | else | |
2344 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2345 | fi | |
2346 | ||
2347 | else | |
2348 | ||
2349 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
2350 | if test "x$LINE" != x ; then | |
2351 | eval "DEFAULT_$LINE" | |
2352 | else | |
2353 | no_cache=1 | |
2354 | fi | |
2355 | ||
2356 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
2357 | ||
2358 | fi | |
2359 | ||
2360 | ||
2361 | eval "$ac_cv_use_no_exceptions" | |
2362 | if test "$no_cache" != 1; then | |
2363 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2364 | fi | |
2365 | ||
2366 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
2367 | echo "$ac_t""yes" 1>&6 | |
2368 | else | |
2369 | echo "$ac_t""no" 1>&6 | |
2370 | fi | |
2371 | ||
2372 | ||
2373 | echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6 | |
0dcf9893 | 2374 | echo "configure:2375: checking "for --enable-permissive"" >&5 |
10f2d63a VZ |
2375 | no_cache=0 |
2376 | # Check whether --enable-permissive or --disable-permissive was given. | |
2377 | if test "${enable_permissive+set}" = set; then | |
2378 | enableval="$enable_permissive" | |
2379 | ||
2380 | if test "$enableval" = yes; then | |
2381 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2382 | else | |
2383 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2384 | fi | |
2385 | ||
2386 | else | |
2387 | ||
2388 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
2389 | if test "x$LINE" != x ; then | |
2390 | eval "DEFAULT_$LINE" | |
2391 | else | |
2392 | no_cache=1 | |
2393 | fi | |
2394 | ||
2395 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
2396 | ||
2397 | fi | |
2398 | ||
2399 | ||
2400 | eval "$ac_cv_use_permissive" | |
2401 | if test "$no_cache" != 1; then | |
2402 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2403 | fi | |
2404 | ||
2405 | if test "$wxUSE_PERMISSIVE" = yes; then | |
2406 | echo "$ac_t""yes" 1>&6 | |
2407 | else | |
2408 | echo "$ac_t""no" 1>&6 | |
2409 | fi | |
2410 | ||
2411 | ||
2412 | echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6 | |
0dcf9893 | 2413 | echo "configure:2414: checking "for --enable-no_deps"" >&5 |
10f2d63a VZ |
2414 | no_cache=0 |
2415 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2416 | if test "${enable_no_deps+set}" = set; then | |
2417 | enableval="$enable_no_deps" | |
2418 | ||
2419 | if test "$enableval" = yes; then | |
2420 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2421 | else | |
2422 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2423 | fi | |
2424 | ||
2425 | else | |
2426 | ||
2427 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
2428 | if test "x$LINE" != x ; then | |
2429 | eval "DEFAULT_$LINE" | |
2430 | else | |
2431 | no_cache=1 | |
2432 | fi | |
2433 | ||
2434 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
2435 | ||
2436 | fi | |
2437 | ||
2438 | ||
2439 | eval "$ac_cv_use_no_deps" | |
2440 | if test "$no_cache" != 1; then | |
2441 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2442 | fi | |
2443 | ||
2444 | if test "$wxUSE_NO_DEPS" = yes; then | |
2445 | echo "$ac_t""yes" 1>&6 | |
2446 | else | |
2447 | echo "$ac_t""no" 1>&6 | |
2448 | fi | |
2449 | ||
2450 | ||
2451 | ||
2452 | ||
2453 | echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6 | |
0dcf9893 | 2454 | echo "configure:2455: checking "for --enable-intl"" >&5 |
10f2d63a VZ |
2455 | no_cache=0 |
2456 | # Check whether --enable-intl or --disable-intl was given. | |
2457 | if test "${enable_intl+set}" = set; then | |
2458 | enableval="$enable_intl" | |
2459 | ||
2460 | if test "$enableval" = yes; then | |
2461 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2462 | else | |
2463 | ac_cv_use_intl='wxUSE_INTL=no' | |
2464 | fi | |
2465 | ||
2466 | else | |
2467 | ||
2468 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
2469 | if test "x$LINE" != x ; then | |
2470 | eval "DEFAULT_$LINE" | |
2471 | else | |
2472 | no_cache=1 | |
2473 | fi | |
2474 | ||
2475 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
2476 | ||
2477 | fi | |
2478 | ||
2479 | ||
2480 | eval "$ac_cv_use_intl" | |
2481 | if test "$no_cache" != 1; then | |
2482 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2483 | fi | |
2484 | ||
2485 | if test "$wxUSE_INTL" = yes; then | |
2486 | echo "$ac_t""yes" 1>&6 | |
2487 | else | |
2488 | echo "$ac_t""no" 1>&6 | |
2489 | fi | |
2490 | ||
2491 | ||
2492 | echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6 | |
0dcf9893 | 2493 | echo "configure:2494: checking "for --enable-config"" >&5 |
10f2d63a VZ |
2494 | no_cache=0 |
2495 | # Check whether --enable-config or --disable-config was given. | |
2496 | if test "${enable_config+set}" = set; then | |
2497 | enableval="$enable_config" | |
2498 | ||
2499 | if test "$enableval" = yes; then | |
2500 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2501 | else | |
2502 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2503 | fi | |
2504 | ||
2505 | else | |
2506 | ||
2507 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
2508 | if test "x$LINE" != x ; then | |
2509 | eval "DEFAULT_$LINE" | |
2510 | else | |
2511 | no_cache=1 | |
2512 | fi | |
2513 | ||
2514 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
2515 | ||
2516 | fi | |
2517 | ||
2518 | ||
2519 | eval "$ac_cv_use_config" | |
2520 | if test "$no_cache" != 1; then | |
2521 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2522 | fi | |
2523 | ||
2524 | if test "$wxUSE_CONFIG" = yes; then | |
2525 | echo "$ac_t""yes" 1>&6 | |
2526 | else | |
2527 | echo "$ac_t""no" 1>&6 | |
2528 | fi | |
2529 | ||
2530 | ||
b12915c1 VZ |
2531 | if test "$wxUSE_GUI" = "yes"; then |
2532 | ||
10f2d63a | 2533 | echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6 |
0dcf9893 | 2534 | echo "configure:2535: checking "for --enable-sockets"" >&5 |
10f2d63a VZ |
2535 | no_cache=0 |
2536 | # Check whether --enable-sockets or --disable-sockets was given. | |
2537 | if test "${enable_sockets+set}" = set; then | |
2538 | enableval="$enable_sockets" | |
2539 | ||
2540 | if test "$enableval" = yes; then | |
2541 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2542 | else | |
2543 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2544 | fi | |
2545 | ||
2546 | else | |
2547 | ||
2548 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
2549 | if test "x$LINE" != x ; then | |
2550 | eval "DEFAULT_$LINE" | |
2551 | else | |
2552 | no_cache=1 | |
2553 | fi | |
2554 | ||
2555 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
2556 | ||
2557 | fi | |
2558 | ||
2559 | ||
2560 | eval "$ac_cv_use_sockets" | |
2561 | if test "$no_cache" != 1; then | |
2562 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2563 | fi | |
2564 | ||
2565 | if test "$wxUSE_SOCKETS" = yes; then | |
2566 | echo "$ac_t""yes" 1>&6 | |
2567 | else | |
2568 | echo "$ac_t""no" 1>&6 | |
2569 | fi | |
2570 | ||
b12915c1 VZ |
2571 | else |
2572 | wxUSE_SOCKETS=no | |
2573 | fi | |
2574 | ||
10f2d63a VZ |
2575 | |
2576 | echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6 | |
0dcf9893 | 2577 | echo "configure:2578: checking "for --enable-dialupman"" >&5 |
10f2d63a VZ |
2578 | no_cache=0 |
2579 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
2580 | if test "${enable_dialupman+set}" = set; then | |
2581 | enableval="$enable_dialupman" | |
2582 | ||
2583 | if test "$enableval" = yes; then | |
2584 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
2585 | else | |
2586 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
2587 | fi | |
2588 | ||
2589 | else | |
2590 | ||
2591 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
2592 | if test "x$LINE" != x ; then | |
2593 | eval "DEFAULT_$LINE" | |
2594 | else | |
2595 | no_cache=1 | |
2596 | fi | |
2597 | ||
2598 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
2599 | ||
2600 | fi | |
2601 | ||
2602 | ||
2603 | eval "$ac_cv_use_dialupman" | |
2604 | if test "$no_cache" != 1; then | |
2605 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
2606 | fi | |
2607 | ||
2608 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
2609 | echo "$ac_t""yes" 1>&6 | |
2610 | else | |
2611 | echo "$ac_t""no" 1>&6 | |
2612 | fi | |
2613 | ||
2614 | ||
2615 | echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6 | |
0dcf9893 | 2616 | echo "configure:2617: checking "for --enable-ipc"" >&5 |
10f2d63a VZ |
2617 | no_cache=0 |
2618 | # Check whether --enable-ipc or --disable-ipc was given. | |
2619 | if test "${enable_ipc+set}" = set; then | |
2620 | enableval="$enable_ipc" | |
2621 | ||
2622 | if test "$enableval" = yes; then | |
2623 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
2624 | else | |
2625 | ac_cv_use_ipc='wxUSE_IPC=no' | |
2626 | fi | |
2627 | ||
2628 | else | |
2629 | ||
2630 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
2631 | if test "x$LINE" != x ; then | |
2632 | eval "DEFAULT_$LINE" | |
2633 | else | |
2634 | no_cache=1 | |
2635 | fi | |
2636 | ||
2637 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
2638 | ||
2639 | fi | |
2640 | ||
2641 | ||
2642 | eval "$ac_cv_use_ipc" | |
2643 | if test "$no_cache" != 1; then | |
2644 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
2645 | fi | |
2646 | ||
2647 | if test "$wxUSE_IPC" = yes; then | |
2648 | echo "$ac_t""yes" 1>&6 | |
2649 | else | |
2650 | echo "$ac_t""no" 1>&6 | |
2651 | fi | |
2652 | ||
2653 | ||
2654 | echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6 | |
0dcf9893 | 2655 | echo "configure:2656: checking "for --enable-apple_ieee"" >&5 |
10f2d63a VZ |
2656 | no_cache=0 |
2657 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
2658 | if test "${enable_apple_ieee+set}" = set; then | |
2659 | enableval="$enable_apple_ieee" | |
2660 | ||
2661 | if test "$enableval" = yes; then | |
2662 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
2663 | else | |
2664 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
2665 | fi | |
2666 | ||
2667 | else | |
2668 | ||
2669 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
2670 | if test "x$LINE" != x ; then | |
2671 | eval "DEFAULT_$LINE" | |
2672 | else | |
2673 | no_cache=1 | |
2674 | fi | |
2675 | ||
2676 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
2677 | ||
2678 | fi | |
2679 | ||
2680 | ||
2681 | eval "$ac_cv_use_apple_ieee" | |
2682 | if test "$no_cache" != 1; then | |
2683 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
2684 | fi | |
2685 | ||
2686 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
2687 | echo "$ac_t""yes" 1>&6 | |
2688 | else | |
2689 | echo "$ac_t""no" 1>&6 | |
2690 | fi | |
2691 | ||
2692 | ||
2693 | echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6 | |
0dcf9893 | 2694 | echo "configure:2695: checking "for --enable-timedate"" >&5 |
10f2d63a VZ |
2695 | no_cache=0 |
2696 | # Check whether --enable-timedate or --disable-timedate was given. | |
2697 | if test "${enable_timedate+set}" = set; then | |
2698 | enableval="$enable_timedate" | |
2699 | ||
2700 | if test "$enableval" = yes; then | |
2701 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
2702 | else | |
2703 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
2704 | fi | |
2705 | ||
2706 | else | |
2707 | ||
2708 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
2709 | if test "x$LINE" != x ; then | |
2710 | eval "DEFAULT_$LINE" | |
2711 | else | |
2712 | no_cache=1 | |
2713 | fi | |
2714 | ||
2715 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
2716 | ||
2717 | fi | |
2718 | ||
2719 | ||
2720 | eval "$ac_cv_use_timedate" | |
2721 | if test "$no_cache" != 1; then | |
2722 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
2723 | fi | |
2724 | ||
2725 | if test "$wxUSE_TIMEDATE" = yes; then | |
2726 | echo "$ac_t""yes" 1>&6 | |
2727 | else | |
2728 | echo "$ac_t""no" 1>&6 | |
2729 | fi | |
2730 | ||
2731 | ||
2732 | echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6 | |
0dcf9893 | 2733 | echo "configure:2734: checking "for --enable-wave"" >&5 |
10f2d63a VZ |
2734 | no_cache=0 |
2735 | # Check whether --enable-wave or --disable-wave was given. | |
2736 | if test "${enable_wave+set}" = set; then | |
2737 | enableval="$enable_wave" | |
2738 | ||
2739 | if test "$enableval" = yes; then | |
2740 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
2741 | else | |
2742 | ac_cv_use_wave='wxUSE_WAVE=no' | |
2743 | fi | |
2744 | ||
2745 | else | |
2746 | ||
2747 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
2748 | if test "x$LINE" != x ; then | |
2749 | eval "DEFAULT_$LINE" | |
2750 | else | |
2751 | no_cache=1 | |
2752 | fi | |
2753 | ||
2754 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
2755 | ||
2756 | fi | |
2757 | ||
2758 | ||
2759 | eval "$ac_cv_use_wave" | |
2760 | if test "$no_cache" != 1; then | |
2761 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
2762 | fi | |
2763 | ||
2764 | if test "$wxUSE_WAVE" = yes; then | |
2765 | echo "$ac_t""yes" 1>&6 | |
2766 | else | |
2767 | echo "$ac_t""no" 1>&6 | |
2768 | fi | |
2769 | ||
2770 | ||
2771 | echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6 | |
0dcf9893 | 2772 | echo "configure:2773: checking "for --enable-fraction"" >&5 |
10f2d63a VZ |
2773 | no_cache=0 |
2774 | # Check whether --enable-fraction or --disable-fraction was given. | |
2775 | if test "${enable_fraction+set}" = set; then | |
2776 | enableval="$enable_fraction" | |
2777 | ||
2778 | if test "$enableval" = yes; then | |
2779 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
2780 | else | |
2781 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
2782 | fi | |
2783 | ||
2784 | else | |
2785 | ||
2786 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` | |
2787 | if test "x$LINE" != x ; then | |
2788 | eval "DEFAULT_$LINE" | |
2789 | else | |
2790 | no_cache=1 | |
2791 | fi | |
2792 | ||
2793 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
2794 | ||
2795 | fi | |
2796 | ||
2797 | ||
2798 | eval "$ac_cv_use_fraction" | |
2799 | if test "$no_cache" != 1; then | |
2800 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
2801 | fi | |
2802 | ||
2803 | if test "$wxUSE_FRACTION" = yes; then | |
2804 | echo "$ac_t""yes" 1>&6 | |
2805 | else | |
2806 | echo "$ac_t""no" 1>&6 | |
2807 | fi | |
2808 | ||
2809 | ||
2810 | echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6 | |
0dcf9893 | 2811 | echo "configure:2812: checking "for --enable-dynlib"" >&5 |
10f2d63a VZ |
2812 | no_cache=0 |
2813 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
2814 | if test "${enable_dynlib+set}" = set; then | |
2815 | enableval="$enable_dynlib" | |
2816 | ||
2817 | if test "$enableval" = yes; then | |
2818 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
2819 | else | |
2820 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
2821 | fi | |
2822 | ||
2823 | else | |
2824 | ||
2825 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
2826 | if test "x$LINE" != x ; then | |
2827 | eval "DEFAULT_$LINE" | |
2828 | else | |
2829 | no_cache=1 | |
2830 | fi | |
2831 | ||
2832 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
2833 | ||
2834 | fi | |
2835 | ||
2836 | ||
2837 | eval "$ac_cv_use_dynlib" | |
2838 | if test "$no_cache" != 1; then | |
2839 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
2840 | fi | |
2841 | ||
2842 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
2843 | echo "$ac_t""yes" 1>&6 | |
2844 | else | |
2845 | echo "$ac_t""no" 1>&6 | |
2846 | fi | |
2847 | ||
2848 | ||
2849 | echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6 | |
0dcf9893 | 2850 | echo "configure:2851: checking "for --enable-longlong"" >&5 |
10f2d63a VZ |
2851 | no_cache=0 |
2852 | # Check whether --enable-longlong or --disable-longlong was given. | |
2853 | if test "${enable_longlong+set}" = set; then | |
2854 | enableval="$enable_longlong" | |
2855 | ||
2856 | if test "$enableval" = yes; then | |
2857 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
2858 | else | |
2859 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
2860 | fi | |
2861 | ||
2862 | else | |
2863 | ||
2864 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
2865 | if test "x$LINE" != x ; then | |
2866 | eval "DEFAULT_$LINE" | |
2867 | else | |
2868 | no_cache=1 | |
2869 | fi | |
2870 | ||
2871 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
2872 | ||
2873 | fi | |
2874 | ||
2875 | ||
2876 | eval "$ac_cv_use_longlong" | |
2877 | if test "$no_cache" != 1; then | |
2878 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
2879 | fi | |
2880 | ||
2881 | if test "$wxUSE_LONGLONG" = yes; then | |
2882 | echo "$ac_t""yes" 1>&6 | |
2883 | else | |
2884 | echo "$ac_t""no" 1>&6 | |
2885 | fi | |
2886 | ||
2887 | ||
2888 | echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6 | |
0dcf9893 | 2889 | echo "configure:2890: checking "for --enable-log"" >&5 |
10f2d63a VZ |
2890 | no_cache=0 |
2891 | # Check whether --enable-log or --disable-log was given. | |
2892 | if test "${enable_log+set}" = set; then | |
2893 | enableval="$enable_log" | |
2894 | ||
2895 | if test "$enableval" = yes; then | |
2896 | ac_cv_use_log='wxUSE_LOG=yes' | |
2897 | else | |
2898 | ac_cv_use_log='wxUSE_LOG=no' | |
2899 | fi | |
2900 | ||
2901 | else | |
2902 | ||
2903 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
2904 | if test "x$LINE" != x ; then | |
2905 | eval "DEFAULT_$LINE" | |
2906 | else | |
2907 | no_cache=1 | |
2908 | fi | |
2909 | ||
2910 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
2911 | ||
2912 | fi | |
2913 | ||
2914 | ||
2915 | eval "$ac_cv_use_log" | |
2916 | if test "$no_cache" != 1; then | |
2917 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
2918 | fi | |
2919 | ||
2920 | if test "$wxUSE_LOG" = yes; then | |
2921 | echo "$ac_t""yes" 1>&6 | |
2922 | else | |
2923 | echo "$ac_t""no" 1>&6 | |
2924 | fi | |
2925 | ||
2926 | ||
2927 | echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6 | |
0dcf9893 | 2928 | echo "configure:2929: checking "for --enable-streams"" >&5 |
10f2d63a VZ |
2929 | no_cache=0 |
2930 | # Check whether --enable-streams or --disable-streams was given. | |
2931 | if test "${enable_streams+set}" = set; then | |
2932 | enableval="$enable_streams" | |
2933 | ||
2934 | if test "$enableval" = yes; then | |
2935 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
2936 | else | |
2937 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
2938 | fi | |
2939 | ||
2940 | else | |
2941 | ||
2942 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
2943 | if test "x$LINE" != x ; then | |
2944 | eval "DEFAULT_$LINE" | |
2945 | else | |
2946 | no_cache=1 | |
2947 | fi | |
2948 | ||
2949 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
2950 | ||
2951 | fi | |
2952 | ||
2953 | ||
2954 | eval "$ac_cv_use_streams" | |
2955 | if test "$no_cache" != 1; then | |
2956 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
2957 | fi | |
2958 | ||
2959 | if test "$wxUSE_STREAMS" = yes; then | |
2960 | echo "$ac_t""yes" 1>&6 | |
2961 | else | |
2962 | echo "$ac_t""no" 1>&6 | |
2963 | fi | |
2964 | ||
2965 | ||
2966 | echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6 | |
0dcf9893 | 2967 | echo "configure:2968: checking "for --enable-file"" >&5 |
10f2d63a VZ |
2968 | no_cache=0 |
2969 | # Check whether --enable-file or --disable-file was given. | |
2970 | if test "${enable_file+set}" = set; then | |
2971 | enableval="$enable_file" | |
2972 | ||
2973 | if test "$enableval" = yes; then | |
2974 | ac_cv_use_file='wxUSE_FILE=yes' | |
2975 | else | |
2976 | ac_cv_use_file='wxUSE_FILE=no' | |
2977 | fi | |
2978 | ||
2979 | else | |
2980 | ||
2981 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
2982 | if test "x$LINE" != x ; then | |
2983 | eval "DEFAULT_$LINE" | |
2984 | else | |
2985 | no_cache=1 | |
2986 | fi | |
2987 | ||
2988 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
2989 | ||
2990 | fi | |
2991 | ||
2992 | ||
2993 | eval "$ac_cv_use_file" | |
2994 | if test "$no_cache" != 1; then | |
2995 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
2996 | fi | |
2997 | ||
2998 | if test "$wxUSE_FILE" = yes; then | |
2999 | echo "$ac_t""yes" 1>&6 | |
3000 | else | |
3001 | echo "$ac_t""no" 1>&6 | |
3002 | fi | |
3003 | ||
3004 | ||
3005 | echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6 | |
0dcf9893 | 3006 | echo "configure:3007: checking "for --enable-textfile"" >&5 |
10f2d63a VZ |
3007 | no_cache=0 |
3008 | # Check whether --enable-textfile or --disable-textfile was given. | |
3009 | if test "${enable_textfile+set}" = set; then | |
3010 | enableval="$enable_textfile" | |
3011 | ||
3012 | if test "$enableval" = yes; then | |
3013 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
3014 | else | |
3015 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
3016 | fi | |
3017 | ||
3018 | else | |
3019 | ||
3020 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
3021 | if test "x$LINE" != x ; then | |
3022 | eval "DEFAULT_$LINE" | |
3023 | else | |
3024 | no_cache=1 | |
3025 | fi | |
3026 | ||
3027 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
3028 | ||
3029 | fi | |
3030 | ||
3031 | ||
3032 | eval "$ac_cv_use_textfile" | |
3033 | if test "$no_cache" != 1; then | |
3034 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
3035 | fi | |
3036 | ||
3037 | if test "$wxUSE_TEXTFILE" = yes; then | |
3038 | echo "$ac_t""yes" 1>&6 | |
3039 | else | |
3040 | echo "$ac_t""no" 1>&6 | |
3041 | fi | |
3042 | ||
3043 | ||
3044 | echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6 | |
0dcf9893 | 3045 | echo "configure:3046: checking "for --enable-unicode"" >&5 |
10f2d63a VZ |
3046 | no_cache=0 |
3047 | # Check whether --enable-unicode or --disable-unicode was given. | |
3048 | if test "${enable_unicode+set}" = set; then | |
3049 | enableval="$enable_unicode" | |
3050 | ||
3051 | if test "$enableval" = yes; then | |
3052 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3053 | else | |
3054 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3055 | fi | |
3056 | ||
3057 | else | |
3058 | ||
3059 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3060 | if test "x$LINE" != x ; then | |
3061 | eval "DEFAULT_$LINE" | |
3062 | else | |
3063 | no_cache=1 | |
3064 | fi | |
3065 | ||
3066 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3067 | ||
3068 | fi | |
3069 | ||
3070 | ||
3071 | eval "$ac_cv_use_unicode" | |
3072 | if test "$no_cache" != 1; then | |
3073 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3074 | fi | |
3075 | ||
3076 | if test "$wxUSE_UNICODE" = yes; then | |
3077 | echo "$ac_t""yes" 1>&6 | |
3078 | else | |
3079 | echo "$ac_t""no" 1>&6 | |
3080 | fi | |
3081 | ||
3082 | ||
3083 | echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6 | |
0dcf9893 | 3084 | echo "configure:3085: checking "for --enable-wcsrtombs"" >&5 |
10f2d63a VZ |
3085 | no_cache=0 |
3086 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3087 | if test "${enable_wcsrtombs+set}" = set; then | |
3088 | enableval="$enable_wcsrtombs" | |
3089 | ||
3090 | if test "$enableval" = yes; then | |
3091 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3092 | else | |
3093 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3094 | fi | |
3095 | ||
3096 | else | |
3097 | ||
3098 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3099 | if test "x$LINE" != x ; then | |
3100 | eval "DEFAULT_$LINE" | |
3101 | else | |
3102 | no_cache=1 | |
3103 | fi | |
3104 | ||
3105 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3106 | ||
3107 | fi | |
3108 | ||
3109 | ||
3110 | eval "$ac_cv_use_wcsrtombs" | |
3111 | if test "$no_cache" != 1; then | |
3112 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3113 | fi | |
3114 | ||
3115 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3116 | echo "$ac_t""yes" 1>&6 | |
3117 | else | |
3118 | echo "$ac_t""no" 1>&6 | |
3119 | fi | |
3120 | ||
3121 | ||
3122 | echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6 | |
0dcf9893 | 3123 | echo "configure:3124: checking "for --enable-wxprintfv"" >&5 |
10f2d63a VZ |
3124 | no_cache=0 |
3125 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3126 | if test "${enable_wxprintfv+set}" = set; then | |
3127 | enableval="$enable_wxprintfv" | |
3128 | ||
3129 | if test "$enableval" = yes; then | |
3130 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
3131 | else | |
3132 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3133 | fi | |
3134 | ||
3135 | else | |
3136 | ||
3137 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
3138 | if test "x$LINE" != x ; then | |
3139 | eval "DEFAULT_$LINE" | |
3140 | else | |
3141 | no_cache=1 | |
3142 | fi | |
3143 | ||
3144 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
3145 | ||
3146 | fi | |
3147 | ||
3148 | ||
3149 | eval "$ac_cv_use_wxprintfv" | |
3150 | if test "$no_cache" != 1; then | |
3151 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3152 | fi | |
3153 | ||
3154 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
3155 | echo "$ac_t""yes" 1>&6 | |
3156 | else | |
3157 | echo "$ac_t""no" 1>&6 | |
3158 | fi | |
3159 | ||
3160 | ||
3161 | echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6 | |
0dcf9893 | 3162 | echo "configure:3163: checking "for --enable-joystick"" >&5 |
10f2d63a VZ |
3163 | no_cache=0 |
3164 | # Check whether --enable-joystick or --disable-joystick was given. | |
3165 | if test "${enable_joystick+set}" = set; then | |
3166 | enableval="$enable_joystick" | |
3167 | ||
3168 | if test "$enableval" = yes; then | |
3169 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
3170 | else | |
3171 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
3172 | fi | |
3173 | ||
3174 | else | |
3175 | ||
3176 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
3177 | if test "x$LINE" != x ; then | |
3178 | eval "DEFAULT_$LINE" | |
3179 | else | |
3180 | no_cache=1 | |
3181 | fi | |
3182 | ||
3183 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
3184 | ||
3185 | fi | |
3186 | ||
3187 | ||
3188 | eval "$ac_cv_use_joystick" | |
3189 | if test "$no_cache" != 1; then | |
3190 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
3191 | fi | |
3192 | ||
3193 | if test "$wxUSE_JOYSTICK" = yes; then | |
3194 | echo "$ac_t""yes" 1>&6 | |
3195 | else | |
3196 | echo "$ac_t""no" 1>&6 | |
3197 | fi | |
3198 | ||
3199 | ||
3200 | echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6 | |
0dcf9893 | 3201 | echo "configure:3202: checking "for --enable-std_iostreams"" >&5 |
10f2d63a VZ |
3202 | no_cache=0 |
3203 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3204 | if test "${enable_std_iostreams+set}" = set; then | |
3205 | enableval="$enable_std_iostreams" | |
3206 | ||
3207 | if test "$enableval" = yes; then | |
3208 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3209 | else | |
3210 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3211 | fi | |
3212 | ||
3213 | else | |
3214 | ||
3215 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
3216 | if test "x$LINE" != x ; then | |
3217 | eval "DEFAULT_$LINE" | |
3218 | else | |
3219 | no_cache=1 | |
3220 | fi | |
3221 | ||
3222 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
3223 | ||
3224 | fi | |
3225 | ||
3226 | ||
3227 | eval "$ac_cv_use_std_iostreams" | |
3228 | if test "$no_cache" != 1; then | |
3229 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3230 | fi | |
3231 | ||
3232 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
3233 | echo "$ac_t""yes" 1>&6 | |
3234 | else | |
3235 | echo "$ac_t""no" 1>&6 | |
3236 | fi | |
3237 | ||
3238 | ||
24528b0c | 3239 | echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6 |
0dcf9893 | 3240 | echo "configure:3241: checking "for --enable-filesystem"" >&5 |
24528b0c VS |
3241 | no_cache=0 |
3242 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3243 | if test "${enable_filesystem+set}" = set; then | |
3244 | enableval="$enable_filesystem" | |
3245 | ||
3246 | if test "$enableval" = yes; then | |
3247 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3248 | else | |
3249 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3250 | fi | |
3251 | ||
3252 | else | |
3253 | ||
3254 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
3255 | if test "x$LINE" != x ; then | |
3256 | eval "DEFAULT_$LINE" | |
3257 | else | |
3258 | no_cache=1 | |
3259 | fi | |
3260 | ||
3261 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
3262 | ||
3263 | fi | |
3264 | ||
3265 | ||
3266 | eval "$ac_cv_use_filesystem" | |
3267 | if test "$no_cache" != 1; then | |
3268 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3269 | fi | |
3270 | ||
3271 | if test "$wxUSE_FILESYSTEM" = yes; then | |
3272 | echo "$ac_t""yes" 1>&6 | |
3273 | else | |
3274 | echo "$ac_t""no" 1>&6 | |
3275 | fi | |
3276 | ||
3277 | ||
10f2d63a | 3278 | echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6 |
0dcf9893 | 3279 | echo "configure:3280: checking "for --enable-fs_inet"" >&5 |
10f2d63a VZ |
3280 | no_cache=0 |
3281 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3282 | if test "${enable_fs_inet+set}" = set; then | |
3283 | enableval="$enable_fs_inet" | |
3284 | ||
3285 | if test "$enableval" = yes; then | |
3286 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3287 | else | |
3288 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3289 | fi | |
3290 | ||
3291 | else | |
3292 | ||
3293 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
3294 | if test "x$LINE" != x ; then | |
3295 | eval "DEFAULT_$LINE" | |
3296 | else | |
3297 | no_cache=1 | |
3298 | fi | |
3299 | ||
3300 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
3301 | ||
3302 | fi | |
3303 | ||
3304 | ||
3305 | eval "$ac_cv_use_fs_inet" | |
3306 | if test "$no_cache" != 1; then | |
3307 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3308 | fi | |
3309 | ||
3310 | if test "$wxUSE_FS_INET" = yes; then | |
3311 | echo "$ac_t""yes" 1>&6 | |
3312 | else | |
3313 | echo "$ac_t""no" 1>&6 | |
3314 | fi | |
3315 | ||
3316 | ||
3317 | echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6 | |
0dcf9893 | 3318 | echo "configure:3319: checking "for --enable-fs_zip"" >&5 |
10f2d63a VZ |
3319 | no_cache=0 |
3320 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3321 | if test "${enable_fs_zip+set}" = set; then | |
3322 | enableval="$enable_fs_zip" | |
3323 | ||
3324 | if test "$enableval" = yes; then | |
3325 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3326 | else | |
3327 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3328 | fi | |
3329 | ||
3330 | else | |
3331 | ||
3332 | LINE=`grep "wxUSE_FS_ZIP" ${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_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
3340 | ||
3341 | fi | |
3342 | ||
3343 | ||
3344 | eval "$ac_cv_use_fs_zip" | |
3345 | if test "$no_cache" != 1; then | |
3346 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3347 | fi | |
3348 | ||
3349 | if test "$wxUSE_FS_ZIP" = yes; then | |
3350 | echo "$ac_t""yes" 1>&6 | |
3351 | else | |
3352 | echo "$ac_t""no" 1>&6 | |
3353 | fi | |
3354 | ||
3355 | ||
3356 | echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6 | |
0dcf9893 | 3357 | echo "configure:3358: checking "for --enable-zipstream"" >&5 |
10f2d63a VZ |
3358 | no_cache=0 |
3359 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3360 | if test "${enable_zipstream+set}" = set; then | |
3361 | enableval="$enable_zipstream" | |
3362 | ||
3363 | if test "$enableval" = yes; then | |
3364 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3365 | else | |
3366 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3367 | fi | |
3368 | ||
3369 | else | |
3370 | ||
3371 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
3372 | if test "x$LINE" != x ; then | |
3373 | eval "DEFAULT_$LINE" | |
3374 | else | |
3375 | no_cache=1 | |
3376 | fi | |
3377 | ||
3378 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
3379 | ||
3380 | fi | |
3381 | ||
3382 | ||
3383 | eval "$ac_cv_use_zipstream" | |
3384 | if test "$no_cache" != 1; then | |
3385 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3386 | fi | |
3387 | ||
3388 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
3389 | echo "$ac_t""yes" 1>&6 | |
3390 | else | |
3391 | echo "$ac_t""no" 1>&6 | |
3392 | fi | |
3393 | ||
3394 | ||
3395 | ||
3396 | ||
3397 | echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6 | |
0dcf9893 | 3398 | echo "configure:3399: checking "for --enable-threads"" >&5 |
10f2d63a VZ |
3399 | no_cache=0 |
3400 | # Check whether --enable-threads or --disable-threads was given. | |
3401 | if test "${enable_threads+set}" = set; then | |
3402 | enableval="$enable_threads" | |
3403 | ||
3404 | if test "$enableval" = yes; then | |
3405 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
3406 | else | |
3407 | ac_cv_use_threads='wxUSE_THREADS=no' | |
3408 | fi | |
3409 | ||
3410 | else | |
3411 | ||
3412 | LINE=`grep "wxUSE_THREADS" ${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_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
3420 | ||
3421 | fi | |
3422 | ||
3423 | ||
3424 | eval "$ac_cv_use_threads" | |
3425 | if test "$no_cache" != 1; then | |
3426 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
3427 | fi | |
3428 | ||
3429 | if test "$wxUSE_THREADS" = yes; then | |
3430 | echo "$ac_t""yes" 1>&6 | |
3431 | else | |
3432 | echo "$ac_t""no" 1>&6 | |
3433 | fi | |
3434 | ||
3435 | ||
3436 | echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6 | |
0dcf9893 | 3437 | echo "configure:3438: checking "for --enable-serial"" >&5 |
10f2d63a VZ |
3438 | no_cache=0 |
3439 | # Check whether --enable-serial or --disable-serial was given. | |
3440 | if test "${enable_serial+set}" = set; then | |
3441 | enableval="$enable_serial" | |
3442 | ||
3443 | if test "$enableval" = yes; then | |
3444 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
3445 | else | |
3446 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
3447 | fi | |
3448 | ||
3449 | else | |
3450 | ||
3451 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` | |
3452 | if test "x$LINE" != x ; then | |
3453 | eval "DEFAULT_$LINE" | |
3454 | else | |
3455 | no_cache=1 | |
3456 | fi | |
3457 | ||
3458 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
3459 | ||
3460 | fi | |
3461 | ||
3462 | ||
3463 | eval "$ac_cv_use_serial" | |
3464 | if test "$no_cache" != 1; then | |
3465 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
3466 | fi | |
3467 | ||
3468 | if test "$wxUSE_SERIAL" = yes; then | |
3469 | echo "$ac_t""yes" 1>&6 | |
3470 | else | |
3471 | echo "$ac_t""no" 1>&6 | |
3472 | fi | |
3473 | ||
3474 | ||
b12915c1 VZ |
3475 | if test "$wxUSE_GUI" = "yes"; then |
3476 | ||
10f2d63a VZ |
3477 | |
3478 | ||
3479 | echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6 | |
0dcf9893 | 3480 | echo "configure:3481: checking "for --enable-docview"" >&5 |
10f2d63a VZ |
3481 | no_cache=0 |
3482 | # Check whether --enable-docview or --disable-docview was given. | |
3483 | if test "${enable_docview+set}" = set; then | |
3484 | enableval="$enable_docview" | |
3485 | ||
3486 | if test "$enableval" = yes; then | |
3487 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
3488 | else | |
3489 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
3490 | fi | |
3491 | ||
3492 | else | |
3493 | ||
3494 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
3495 | if test "x$LINE" != x ; then | |
3496 | eval "DEFAULT_$LINE" | |
3497 | else | |
3498 | no_cache=1 | |
3499 | fi | |
3500 | ||
3501 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
3502 | ||
3503 | fi | |
3504 | ||
3505 | ||
3506 | eval "$ac_cv_use_docview" | |
3507 | if test "$no_cache" != 1; then | |
3508 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
3509 | fi | |
3510 | ||
3511 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
3512 | echo "$ac_t""yes" 1>&6 | |
3513 | else | |
3514 | echo "$ac_t""no" 1>&6 | |
3515 | fi | |
3516 | ||
3517 | ||
3518 | echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6 | |
0dcf9893 | 3519 | echo "configure:3520: checking "for --enable-help"" >&5 |
10f2d63a VZ |
3520 | no_cache=0 |
3521 | # Check whether --enable-help or --disable-help was given. | |
3522 | if test "${enable_help+set}" = set; then | |
3523 | enableval="$enable_help" | |
3524 | ||
3525 | if test "$enableval" = yes; then | |
3526 | ac_cv_use_help='wxUSE_HELP=yes' | |
3527 | else | |
3528 | ac_cv_use_help='wxUSE_HELP=no' | |
3529 | fi | |
3530 | ||
3531 | else | |
3532 | ||
3533 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
3534 | if test "x$LINE" != x ; then | |
3535 | eval "DEFAULT_$LINE" | |
3536 | else | |
3537 | no_cache=1 | |
3538 | fi | |
3539 | ||
3540 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
3541 | ||
3542 | fi | |
3543 | ||
3544 | ||
3545 | eval "$ac_cv_use_help" | |
3546 | if test "$no_cache" != 1; then | |
3547 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
3548 | fi | |
3549 | ||
3550 | if test "$wxUSE_HELP" = yes; then | |
3551 | echo "$ac_t""yes" 1>&6 | |
3552 | else | |
3553 | echo "$ac_t""no" 1>&6 | |
3554 | fi | |
3555 | ||
3556 | ||
3557 | echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6 | |
0dcf9893 | 3558 | echo "configure:3559: checking "for --enable-constraints"" >&5 |
10f2d63a VZ |
3559 | no_cache=0 |
3560 | # Check whether --enable-constraints or --disable-constraints was given. | |
3561 | if test "${enable_constraints+set}" = set; then | |
3562 | enableval="$enable_constraints" | |
3563 | ||
3564 | if test "$enableval" = yes; then | |
3565 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
3566 | else | |
3567 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
3568 | fi | |
3569 | ||
3570 | else | |
3571 | ||
3572 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
3573 | if test "x$LINE" != x ; then | |
3574 | eval "DEFAULT_$LINE" | |
3575 | else | |
3576 | no_cache=1 | |
3577 | fi | |
3578 | ||
3579 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
3580 | ||
3581 | fi | |
3582 | ||
3583 | ||
3584 | eval "$ac_cv_use_constraints" | |
3585 | if test "$no_cache" != 1; then | |
3586 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
3587 | fi | |
3588 | ||
3589 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
3590 | echo "$ac_t""yes" 1>&6 | |
3591 | else | |
3592 | echo "$ac_t""no" 1>&6 | |
3593 | fi | |
3594 | ||
3595 | ||
3596 | echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6 | |
0dcf9893 | 3597 | echo "configure:3598: checking "for --enable-printarch"" >&5 |
10f2d63a VZ |
3598 | no_cache=0 |
3599 | # Check whether --enable-printarch or --disable-printarch was given. | |
3600 | if test "${enable_printarch+set}" = set; then | |
3601 | enableval="$enable_printarch" | |
3602 | ||
3603 | if test "$enableval" = yes; then | |
3604 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
3605 | else | |
3606 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
3607 | fi | |
3608 | ||
3609 | else | |
3610 | ||
3611 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
3612 | if test "x$LINE" != x ; then | |
3613 | eval "DEFAULT_$LINE" | |
3614 | else | |
3615 | no_cache=1 | |
3616 | fi | |
3617 | ||
3618 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
3619 | ||
3620 | fi | |
3621 | ||
3622 | ||
3623 | eval "$ac_cv_use_printarch" | |
3624 | if test "$no_cache" != 1; then | |
3625 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
3626 | fi | |
3627 | ||
3628 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
3629 | echo "$ac_t""yes" 1>&6 | |
3630 | else | |
3631 | echo "$ac_t""no" 1>&6 | |
3632 | fi | |
3633 | ||
3634 | ||
3635 | echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6 | |
0dcf9893 | 3636 | echo "configure:3637: checking "for --enable-mdi"" >&5 |
10f2d63a VZ |
3637 | no_cache=0 |
3638 | # Check whether --enable-mdi or --disable-mdi was given. | |
3639 | if test "${enable_mdi+set}" = set; then | |
3640 | enableval="$enable_mdi" | |
3641 | ||
3642 | if test "$enableval" = yes; then | |
3643 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
3644 | else | |
3645 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
3646 | fi | |
3647 | ||
3648 | else | |
3649 | ||
3650 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
3651 | if test "x$LINE" != x ; then | |
3652 | eval "DEFAULT_$LINE" | |
3653 | else | |
3654 | no_cache=1 | |
3655 | fi | |
3656 | ||
3657 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
3658 | ||
3659 | fi | |
3660 | ||
3661 | ||
3662 | eval "$ac_cv_use_mdi" | |
3663 | if test "$no_cache" != 1; then | |
3664 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
3665 | fi | |
3666 | ||
3667 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
3668 | echo "$ac_t""yes" 1>&6 | |
3669 | else | |
3670 | echo "$ac_t""no" 1>&6 | |
3671 | fi | |
3672 | ||
3673 | ||
3674 | ||
3675 | echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6 | |
0dcf9893 | 3676 | echo "configure:3677: checking "for --enable-postscript"" >&5 |
10f2d63a VZ |
3677 | no_cache=0 |
3678 | # Check whether --enable-postscript or --disable-postscript was given. | |
3679 | if test "${enable_postscript+set}" = set; then | |
3680 | enableval="$enable_postscript" | |
3681 | ||
3682 | if test "$enableval" = yes; then | |
3683 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
3684 | else | |
3685 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
3686 | fi | |
3687 | ||
3688 | else | |
3689 | ||
3690 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
3691 | if test "x$LINE" != x ; then | |
3692 | eval "DEFAULT_$LINE" | |
3693 | else | |
3694 | no_cache=1 | |
3695 | fi | |
3696 | ||
3697 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
3698 | ||
3699 | fi | |
3700 | ||
3701 | ||
3702 | eval "$ac_cv_use_postscript" | |
3703 | if test "$no_cache" != 1; then | |
3704 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
3705 | fi | |
3706 | ||
3707 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
3708 | echo "$ac_t""yes" 1>&6 | |
3709 | else | |
3710 | echo "$ac_t""no" 1>&6 | |
3711 | fi | |
3712 | ||
3713 | ||
3714 | ||
3715 | ||
3716 | echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6 | |
0dcf9893 | 3717 | echo "configure:3718: checking "for --enable-prologio"" >&5 |
10f2d63a VZ |
3718 | no_cache=0 |
3719 | # Check whether --enable-prologio or --disable-prologio was given. | |
3720 | if test "${enable_prologio+set}" = set; then | |
3721 | enableval="$enable_prologio" | |
3722 | ||
3723 | if test "$enableval" = yes; then | |
3724 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
3725 | else | |
3726 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
3727 | fi | |
3728 | ||
3729 | else | |
3730 | ||
3731 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
3732 | if test "x$LINE" != x ; then | |
3733 | eval "DEFAULT_$LINE" | |
3734 | else | |
3735 | no_cache=1 | |
3736 | fi | |
3737 | ||
3738 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
3739 | ||
3740 | fi | |
3741 | ||
3742 | ||
3743 | eval "$ac_cv_use_prologio" | |
3744 | if test "$no_cache" != 1; then | |
3745 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
3746 | fi | |
3747 | ||
3748 | if test "$wxUSE_PROLOGIO" = yes; then | |
3749 | echo "$ac_t""yes" 1>&6 | |
3750 | else | |
3751 | echo "$ac_t""no" 1>&6 | |
3752 | fi | |
3753 | ||
3754 | ||
3755 | echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6 | |
0dcf9893 | 3756 | echo "configure:3757: checking "for --enable-resources"" >&5 |
10f2d63a VZ |
3757 | no_cache=0 |
3758 | # Check whether --enable-resources or --disable-resources was given. | |
3759 | if test "${enable_resources+set}" = set; then | |
3760 | enableval="$enable_resources" | |
3761 | ||
3762 | if test "$enableval" = yes; then | |
3763 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
3764 | else | |
3765 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
3766 | fi | |
3767 | ||
3768 | else | |
3769 | ||
3770 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
3771 | if test "x$LINE" != x ; then | |
3772 | eval "DEFAULT_$LINE" | |
3773 | else | |
3774 | no_cache=1 | |
3775 | fi | |
3776 | ||
3777 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
3778 | ||
3779 | fi | |
3780 | ||
3781 | ||
3782 | eval "$ac_cv_use_resources" | |
3783 | if test "$no_cache" != 1; then | |
3784 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
3785 | fi | |
3786 | ||
3787 | if test "$wxUSE_RESOURCES" = yes; then | |
3788 | echo "$ac_t""yes" 1>&6 | |
3789 | else | |
3790 | echo "$ac_t""no" 1>&6 | |
3791 | fi | |
3792 | ||
3793 | ||
3794 | ||
3795 | echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6 | |
0dcf9893 | 3796 | echo "configure:3797: checking "for --enable-xresources"" >&5 |
10f2d63a VZ |
3797 | no_cache=0 |
3798 | # Check whether --enable-xresources or --disable-xresources was given. | |
3799 | if test "${enable_xresources+set}" = set; then | |
3800 | enableval="$enable_xresources" | |
3801 | ||
3802 | if test "$enableval" = yes; then | |
3803 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
3804 | else | |
3805 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
3806 | fi | |
3807 | ||
3808 | else | |
3809 | ||
3810 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` | |
3811 | if test "x$LINE" != x ; then | |
3812 | eval "DEFAULT_$LINE" | |
3813 | else | |
3814 | no_cache=1 | |
3815 | fi | |
3816 | ||
3817 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
3818 | ||
3819 | fi | |
3820 | ||
3821 | ||
3822 | eval "$ac_cv_use_xresources" | |
3823 | if test "$no_cache" != 1; then | |
3824 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
3825 | fi | |
3826 | ||
3827 | if test "$wxUSE_X_RESOURCES" = yes; then | |
3828 | echo "$ac_t""yes" 1>&6 | |
3829 | else | |
3830 | echo "$ac_t""no" 1>&6 | |
3831 | fi | |
3832 | ||
3833 | ||
3834 | ||
3835 | ||
3836 | echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6 | |
0dcf9893 | 3837 | echo "configure:3838: checking "for --enable-clipboard"" >&5 |
10f2d63a VZ |
3838 | no_cache=0 |
3839 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
3840 | if test "${enable_clipboard+set}" = set; then | |
3841 | enableval="$enable_clipboard" | |
3842 | ||
3843 | if test "$enableval" = yes; then | |
3844 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
3845 | else | |
3846 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
3847 | fi | |
3848 | ||
3849 | else | |
3850 | ||
3851 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
3852 | if test "x$LINE" != x ; then | |
3853 | eval "DEFAULT_$LINE" | |
3854 | else | |
3855 | no_cache=1 | |
3856 | fi | |
3857 | ||
3858 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
3859 | ||
3860 | fi | |
3861 | ||
3862 | ||
3863 | eval "$ac_cv_use_clipboard" | |
3864 | if test "$no_cache" != 1; then | |
3865 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
3866 | fi | |
3867 | ||
3868 | if test "$wxUSE_CLIPBOARD" = yes; then | |
3869 | echo "$ac_t""yes" 1>&6 | |
3870 | else | |
3871 | echo "$ac_t""no" 1>&6 | |
3872 | fi | |
3873 | ||
3874 | ||
3875 | echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6 | |
0dcf9893 | 3876 | echo "configure:3877: checking "for --enable-dnd"" >&5 |
10f2d63a VZ |
3877 | no_cache=0 |
3878 | # Check whether --enable-dnd or --disable-dnd was given. | |
3879 | if test "${enable_dnd+set}" = set; then | |
3880 | enableval="$enable_dnd" | |
3881 | ||
3882 | if test "$enableval" = yes; then | |
3883 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
3884 | else | |
3885 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
3886 | fi | |
3887 | ||
3888 | else | |
3889 | ||
3890 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
3891 | if test "x$LINE" != x ; then | |
3892 | eval "DEFAULT_$LINE" | |
3893 | else | |
3894 | no_cache=1 | |
3895 | fi | |
3896 | ||
3897 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
3898 | ||
3899 | fi | |
3900 | ||
3901 | ||
3902 | eval "$ac_cv_use_dnd" | |
3903 | if test "$no_cache" != 1; then | |
3904 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
3905 | fi | |
3906 | ||
3907 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
3908 | echo "$ac_t""yes" 1>&6 | |
3909 | else | |
3910 | echo "$ac_t""no" 1>&6 | |
3911 | fi | |
3912 | ||
3913 | ||
3914 | ||
3915 | echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6 | |
0dcf9893 | 3916 | echo "configure:3917: checking "for --enable-wxtree"" >&5 |
10f2d63a VZ |
3917 | no_cache=0 |
3918 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
3919 | if test "${enable_wxtree+set}" = set; then | |
3920 | enableval="$enable_wxtree" | |
3921 | ||
3922 | if test "$enableval" = yes; then | |
3923 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
3924 | else | |
3925 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
3926 | fi | |
3927 | ||
3928 | else | |
3929 | ||
3930 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` | |
3931 | if test "x$LINE" != x ; then | |
3932 | eval "DEFAULT_$LINE" | |
3933 | else | |
3934 | no_cache=1 | |
3935 | fi | |
3936 | ||
3937 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
3938 | ||
3939 | fi | |
3940 | ||
3941 | ||
3942 | eval "$ac_cv_use_wxtree" | |
3943 | if test "$no_cache" != 1; then | |
3944 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
3945 | fi | |
3946 | ||
3947 | if test "$wxUSE_WXTREE" = yes; then | |
3948 | echo "$ac_t""yes" 1>&6 | |
3949 | else | |
3950 | echo "$ac_t""no" 1>&6 | |
3951 | fi | |
3952 | ||
3953 | ||
3954 | ||
3955 | ||
3956 | echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6 | |
0dcf9893 | 3957 | echo "configure:3958: checking "for --enable-controls"" >&5 |
10f2d63a VZ |
3958 | no_cache=0 |
3959 | # Check whether --enable-controls or --disable-controls was given. | |
3960 | if test "${enable_controls+set}" = set; then | |
3961 | enableval="$enable_controls" | |
3962 | ||
3963 | if test "$enableval" = yes; then | |
3964 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
3965 | else | |
3966 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
3967 | fi | |
3968 | ||
3969 | else | |
3970 | ||
3971 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
3972 | if test "x$LINE" != x ; then | |
3973 | eval "DEFAULT_$LINE" | |
3974 | else | |
3975 | no_cache=1 | |
3976 | fi | |
3977 | ||
3978 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
3979 | ||
3980 | fi | |
3981 | ||
3982 | ||
3983 | eval "$ac_cv_use_controls" | |
3984 | if test "$no_cache" != 1; then | |
3985 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
3986 | fi | |
3987 | ||
3988 | if test "$wxUSE_CONTROLS" = yes; then | |
3989 | echo "$ac_t""yes" 1>&6 | |
3990 | else | |
3991 | echo "$ac_t""no" 1>&6 | |
3992 | fi | |
3993 | ||
3994 | ||
3995 | if test "$wxUSE_CONTROLS" = "yes"; then | |
3996 | DEFAULT_wxUSE_ACCEL=yes | |
3997 | DEFAULT_wxUSE_CARET=yes | |
3998 | DEFAULT_wxUSE_COMBOBOX=yes | |
3999 | DEFAULT_wxUSE_BMPBUTTON=yes | |
4000 | DEFAULT_wxUSE_CHECKBOX=yes | |
4001 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
4002 | DEFAULT_wxUSE_CHOICE=yes | |
4003 | DEFAULT_wxUSE_GAUGE=yes | |
4004 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 4005 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
4006 | DEFAULT_wxUSE_IMAGLIST=yes |
4007 | DEFAULT_wxUSE_LISTBOX=yes | |
4008 | DEFAULT_wxUSE_LISTCTRL=yes | |
4009 | DEFAULT_wxUSE_NOTEBOOK=yes | |
4010 | DEFAULT_wxUSE_RADIOBOX=yes | |
4011 | DEFAULT_wxUSE_RADIOBTN=yes | |
4012 | DEFAULT_wxUSE_SASH=yes | |
4013 | DEFAULT_wxUSE_SCROLLBAR=yes | |
4014 | DEFAULT_wxUSE_SLIDER=yes | |
4015 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 4016 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
4017 | DEFAULT_wxUSE_SPLITTER=yes |
4018 | DEFAULT_wxUSE_STATBMP=yes | |
4019 | DEFAULT_wxUSE_STATBOX=yes | |
4020 | DEFAULT_wxUSE_STATLINE=yes | |
4021 | DEFAULT_wxUSE_STATUSBAR=yes | |
4022 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
4023 | DEFAULT_wxUSE_TOOLBAR=yes | |
360d6699 VZ |
4024 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
4025 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
4026 | DEFAULT_wxUSE_TOOLTIPS=yes |
4027 | DEFAULT_wxUSE_TREECTRL=yes | |
4028 | elif test "$wxUSE_CONTROLS" = "no"; then | |
4029 | DEFAULT_wxUSE_ACCEL=no | |
4030 | DEFAULT_wxUSE_CARET=no | |
4031 | DEFAULT_wxUSE_COMBOBOX=no | |
4032 | DEFAULT_wxUSE_BMPBUTTON=no | |
4033 | DEFAULT_wxUSE_CHECKBOX=no | |
4034 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
4035 | DEFAULT_wxUSE_CHOICE=no | |
4036 | DEFAULT_wxUSE_GAUGE=no | |
4037 | DEFAULT_wxUSE_GRID=no | |
4038 | DEFAULT_wxUSE_NEW_GRID=no | |
4039 | DEFAULT_wxUSE_IMAGLIST=no | |
4040 | DEFAULT_wxUSE_LISTBOX=no | |
4041 | DEFAULT_wxUSE_LISTCTRL=no | |
4042 | DEFAULT_wxUSE_NOTEBOOK=no | |
4043 | DEFAULT_wxUSE_RADIOBOX=no | |
4044 | DEFAULT_wxUSE_RADIOBTN=no | |
4045 | DEFAULT_wxUSE_SASH=no | |
4046 | DEFAULT_wxUSE_SCROLLBAR=no | |
4047 | DEFAULT_wxUSE_SLIDER=no | |
4048 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 4049 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
4050 | DEFAULT_wxUSE_SPLITTER=no |
4051 | DEFAULT_wxUSE_STATBMP=no | |
4052 | DEFAULT_wxUSE_STATBOX=no | |
4053 | DEFAULT_wxUSE_STATLINE=no | |
4054 | DEFAULT_wxUSE_STATUSBAR=no | |
4055 | DEFAULT_wxUSE_TAB_DIALOG=no | |
4056 | DEFAULT_wxUSE_TOOLBAR=no | |
360d6699 VZ |
4057 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
4058 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
4059 | DEFAULT_wxUSE_TOOLTIPS=no |
4060 | DEFAULT_wxUSE_TREECTRL=no | |
4061 | fi | |
4062 | ||
4063 | ||
4064 | echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6 | |
0dcf9893 | 4065 | echo "configure:4066: checking "for --enable-accel"" >&5 |
10f2d63a VZ |
4066 | no_cache=0 |
4067 | # Check whether --enable-accel or --disable-accel was given. | |
4068 | if test "${enable_accel+set}" = set; then | |
4069 | enableval="$enable_accel" | |
4070 | ||
4071 | if test "$enableval" = yes; then | |
4072 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
4073 | else | |
4074 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
4075 | fi | |
4076 | ||
4077 | else | |
4078 | ||
4079 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
4080 | if test "x$LINE" != x ; then | |
4081 | eval "DEFAULT_$LINE" | |
4082 | else | |
4083 | no_cache=1 | |
4084 | fi | |
4085 | ||
4086 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
4087 | ||
4088 | fi | |
4089 | ||
4090 | ||
4091 | eval "$ac_cv_use_accel" | |
4092 | if test "$no_cache" != 1; then | |
4093 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
4094 | fi | |
4095 | ||
4096 | if test "$wxUSE_ACCEL" = yes; then | |
4097 | echo "$ac_t""yes" 1>&6 | |
4098 | else | |
4099 | echo "$ac_t""no" 1>&6 | |
4100 | fi | |
4101 | ||
4102 | ||
4103 | echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6 | |
0dcf9893 | 4104 | echo "configure:4105: checking "for --enable-caret"" >&5 |
10f2d63a VZ |
4105 | no_cache=0 |
4106 | # Check whether --enable-caret or --disable-caret was given. | |
4107 | if test "${enable_caret+set}" = set; then | |
4108 | enableval="$enable_caret" | |
4109 | ||
4110 | if test "$enableval" = yes; then | |
4111 | ac_cv_use_caret='wxUSE_CARET=yes' | |
4112 | else | |
4113 | ac_cv_use_caret='wxUSE_CARET=no' | |
4114 | fi | |
4115 | ||
4116 | else | |
4117 | ||
4118 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
4119 | if test "x$LINE" != x ; then | |
4120 | eval "DEFAULT_$LINE" | |
4121 | else | |
4122 | no_cache=1 | |
4123 | fi | |
4124 | ||
4125 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
4126 | ||
4127 | fi | |
4128 | ||
4129 | ||
4130 | eval "$ac_cv_use_caret" | |
4131 | if test "$no_cache" != 1; then | |
4132 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
4133 | fi | |
4134 | ||
4135 | if test "$wxUSE_CARET" = yes; then | |
4136 | echo "$ac_t""yes" 1>&6 | |
4137 | else | |
4138 | echo "$ac_t""no" 1>&6 | |
4139 | fi | |
4140 | ||
4141 | ||
4142 | echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6 | |
0dcf9893 | 4143 | echo "configure:4144: checking "for --enable-bmpbutton"" >&5 |
10f2d63a VZ |
4144 | no_cache=0 |
4145 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
4146 | if test "${enable_bmpbutton+set}" = set; then | |
4147 | enableval="$enable_bmpbutton" | |
4148 | ||
4149 | if test "$enableval" = yes; then | |
4150 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
4151 | else | |
4152 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
4153 | fi | |
4154 | ||
4155 | else | |
4156 | ||
4157 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
4158 | if test "x$LINE" != x ; then | |
4159 | eval "DEFAULT_$LINE" | |
4160 | else | |
4161 | no_cache=1 | |
4162 | fi | |
4163 | ||
4164 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
4165 | ||
4166 | fi | |
4167 | ||
4168 | ||
4169 | eval "$ac_cv_use_bmpbutton" | |
4170 | if test "$no_cache" != 1; then | |
4171 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
4172 | fi | |
4173 | ||
4174 | if test "$wxUSE_BMPBUTTON" = yes; then | |
4175 | echo "$ac_t""yes" 1>&6 | |
4176 | else | |
4177 | echo "$ac_t""no" 1>&6 | |
4178 | fi | |
4179 | ||
4180 | ||
4181 | echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6 | |
0dcf9893 | 4182 | echo "configure:4183: checking "for --enable-checkbox"" >&5 |
10f2d63a VZ |
4183 | no_cache=0 |
4184 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
4185 | if test "${enable_checkbox+set}" = set; then | |
4186 | enableval="$enable_checkbox" | |
4187 | ||
4188 | if test "$enableval" = yes; then | |
4189 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
4190 | else | |
4191 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
4192 | fi | |
4193 | ||
4194 | else | |
4195 | ||
4196 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
4197 | if test "x$LINE" != x ; then | |
4198 | eval "DEFAULT_$LINE" | |
4199 | else | |
4200 | no_cache=1 | |
4201 | fi | |
4202 | ||
4203 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
4204 | ||
4205 | fi | |
4206 | ||
4207 | ||
4208 | eval "$ac_cv_use_checkbox" | |
4209 | if test "$no_cache" != 1; then | |
4210 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
4211 | fi | |
4212 | ||
4213 | if test "$wxUSE_CHECKBOX" = yes; then | |
4214 | echo "$ac_t""yes" 1>&6 | |
4215 | else | |
4216 | echo "$ac_t""no" 1>&6 | |
4217 | fi | |
4218 | ||
4219 | ||
4220 | echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6 | |
0dcf9893 | 4221 | echo "configure:4222: checking "for --enable-checklst"" >&5 |
10f2d63a VZ |
4222 | no_cache=0 |
4223 | # Check whether --enable-checklst or --disable-checklst was given. | |
4224 | if test "${enable_checklst+set}" = set; then | |
4225 | enableval="$enable_checklst" | |
4226 | ||
4227 | if test "$enableval" = yes; then | |
4228 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
4229 | else | |
4230 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
4231 | fi | |
4232 | ||
4233 | else | |
4234 | ||
4235 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
4236 | if test "x$LINE" != x ; then | |
4237 | eval "DEFAULT_$LINE" | |
4238 | else | |
4239 | no_cache=1 | |
4240 | fi | |
4241 | ||
4242 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
4243 | ||
4244 | fi | |
4245 | ||
4246 | ||
4247 | eval "$ac_cv_use_checklst" | |
4248 | if test "$no_cache" != 1; then | |
4249 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
4250 | fi | |
4251 | ||
4252 | if test "$wxUSE_CHECKLST" = yes; then | |
4253 | echo "$ac_t""yes" 1>&6 | |
4254 | else | |
4255 | echo "$ac_t""no" 1>&6 | |
4256 | fi | |
4257 | ||
4258 | ||
4259 | echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6 | |
0dcf9893 | 4260 | echo "configure:4261: checking "for --enable-choice"" >&5 |
10f2d63a VZ |
4261 | no_cache=0 |
4262 | # Check whether --enable-choice or --disable-choice was given. | |
4263 | if test "${enable_choice+set}" = set; then | |
4264 | enableval="$enable_choice" | |
4265 | ||
4266 | if test "$enableval" = yes; then | |
4267 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
4268 | else | |
4269 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
4270 | fi | |
4271 | ||
4272 | else | |
4273 | ||
4274 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
4275 | if test "x$LINE" != x ; then | |
4276 | eval "DEFAULT_$LINE" | |
4277 | else | |
4278 | no_cache=1 | |
4279 | fi | |
4280 | ||
4281 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
4282 | ||
4283 | fi | |
4284 | ||
4285 | ||
4286 | eval "$ac_cv_use_choice" | |
4287 | if test "$no_cache" != 1; then | |
4288 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
4289 | fi | |
4290 | ||
4291 | if test "$wxUSE_CHOICE" = yes; then | |
4292 | echo "$ac_t""yes" 1>&6 | |
4293 | else | |
4294 | echo "$ac_t""no" 1>&6 | |
4295 | fi | |
4296 | ||
4297 | ||
4298 | echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6 | |
0dcf9893 | 4299 | echo "configure:4300: checking "for --enable-combobox"" >&5 |
10f2d63a VZ |
4300 | no_cache=0 |
4301 | # Check whether --enable-combobox or --disable-combobox was given. | |
4302 | if test "${enable_combobox+set}" = set; then | |
4303 | enableval="$enable_combobox" | |
4304 | ||
4305 | if test "$enableval" = yes; then | |
4306 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
4307 | else | |
4308 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
4309 | fi | |
4310 | ||
4311 | else | |
4312 | ||
4313 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
4314 | if test "x$LINE" != x ; then | |
4315 | eval "DEFAULT_$LINE" | |
4316 | else | |
4317 | no_cache=1 | |
4318 | fi | |
4319 | ||
4320 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
4321 | ||
4322 | fi | |
4323 | ||
4324 | ||
4325 | eval "$ac_cv_use_combobox" | |
4326 | if test "$no_cache" != 1; then | |
4327 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
4328 | fi | |
4329 | ||
4330 | if test "$wxUSE_COMBOBOX" = yes; then | |
4331 | echo "$ac_t""yes" 1>&6 | |
4332 | else | |
4333 | echo "$ac_t""no" 1>&6 | |
4334 | fi | |
4335 | ||
4336 | ||
4337 | echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6 | |
0dcf9893 | 4338 | echo "configure:4339: checking "for --enable-gauge"" >&5 |
10f2d63a VZ |
4339 | no_cache=0 |
4340 | # Check whether --enable-gauge or --disable-gauge was given. | |
4341 | if test "${enable_gauge+set}" = set; then | |
4342 | enableval="$enable_gauge" | |
4343 | ||
4344 | if test "$enableval" = yes; then | |
4345 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
4346 | else | |
4347 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
4348 | fi | |
4349 | ||
4350 | else | |
4351 | ||
4352 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
4353 | if test "x$LINE" != x ; then | |
4354 | eval "DEFAULT_$LINE" | |
4355 | else | |
4356 | no_cache=1 | |
4357 | fi | |
4358 | ||
4359 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
4360 | ||
4361 | fi | |
4362 | ||
4363 | ||
4364 | eval "$ac_cv_use_gauge" | |
4365 | if test "$no_cache" != 1; then | |
4366 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
4367 | fi | |
4368 | ||
4369 | if test "$wxUSE_GAUGE" = yes; then | |
4370 | echo "$ac_t""yes" 1>&6 | |
4371 | else | |
4372 | echo "$ac_t""no" 1>&6 | |
4373 | fi | |
4374 | ||
4375 | ||
4376 | echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6 | |
0dcf9893 | 4377 | echo "configure:4378: checking "for --enable-grid"" >&5 |
10f2d63a VZ |
4378 | no_cache=0 |
4379 | # Check whether --enable-grid or --disable-grid was given. | |
4380 | if test "${enable_grid+set}" = set; then | |
4381 | enableval="$enable_grid" | |
4382 | ||
4383 | if test "$enableval" = yes; then | |
4384 | ac_cv_use_grid='wxUSE_GRID=yes' | |
4385 | else | |
4386 | ac_cv_use_grid='wxUSE_GRID=no' | |
4387 | fi | |
4388 | ||
4389 | else | |
4390 | ||
4391 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
4392 | if test "x$LINE" != x ; then | |
4393 | eval "DEFAULT_$LINE" | |
4394 | else | |
4395 | no_cache=1 | |
4396 | fi | |
4397 | ||
4398 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
4399 | ||
4400 | fi | |
4401 | ||
4402 | ||
4403 | eval "$ac_cv_use_grid" | |
4404 | if test "$no_cache" != 1; then | |
4405 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
4406 | fi | |
4407 | ||
4408 | if test "$wxUSE_GRID" = yes; then | |
4409 | echo "$ac_t""yes" 1>&6 | |
4410 | else | |
4411 | echo "$ac_t""no" 1>&6 | |
4412 | fi | |
4413 | ||
4414 | ||
4415 | echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6 | |
0dcf9893 | 4416 | echo "configure:4417: checking "for --enable-newgrid"" >&5 |
10f2d63a VZ |
4417 | no_cache=0 |
4418 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
4419 | if test "${enable_newgrid+set}" = set; then | |
4420 | enableval="$enable_newgrid" | |
4421 | ||
4422 | if test "$enableval" = yes; then | |
4423 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
4424 | else | |
4425 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
4426 | fi | |
4427 | ||
4428 | else | |
4429 | ||
4430 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` | |
4431 | if test "x$LINE" != x ; then | |
4432 | eval "DEFAULT_$LINE" | |
4433 | else | |
4434 | no_cache=1 | |
4435 | fi | |
4436 | ||
4437 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
4438 | ||
4439 | fi | |
4440 | ||
4441 | ||
4442 | eval "$ac_cv_use_newgrid" | |
4443 | if test "$no_cache" != 1; then | |
4444 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
4445 | fi | |
4446 | ||
4447 | if test "$wxUSE_NEW_GRID" = yes; then | |
4448 | echo "$ac_t""yes" 1>&6 | |
4449 | else | |
4450 | echo "$ac_t""no" 1>&6 | |
4451 | fi | |
4452 | ||
4453 | ||
4454 | echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6 | |
0dcf9893 | 4455 | echo "configure:4456: checking "for --enable-imaglist"" >&5 |
10f2d63a VZ |
4456 | no_cache=0 |
4457 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
4458 | if test "${enable_imaglist+set}" = set; then | |
4459 | enableval="$enable_imaglist" | |
4460 | ||
4461 | if test "$enableval" = yes; then | |
4462 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
4463 | else | |
4464 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
4465 | fi | |
4466 | ||
4467 | else | |
4468 | ||
4469 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
4470 | if test "x$LINE" != x ; then | |
4471 | eval "DEFAULT_$LINE" | |
4472 | else | |
4473 | no_cache=1 | |
4474 | fi | |
4475 | ||
4476 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
4477 | ||
4478 | fi | |
4479 | ||
4480 | ||
4481 | eval "$ac_cv_use_imaglist" | |
4482 | if test "$no_cache" != 1; then | |
4483 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
4484 | fi | |
4485 | ||
4486 | if test "$wxUSE_IMAGLIST" = yes; then | |
4487 | echo "$ac_t""yes" 1>&6 | |
4488 | else | |
4489 | echo "$ac_t""no" 1>&6 | |
4490 | fi | |
4491 | ||
4492 | ||
4493 | echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6 | |
0dcf9893 | 4494 | echo "configure:4495: checking "for --enable-listbox"" >&5 |
10f2d63a VZ |
4495 | no_cache=0 |
4496 | # Check whether --enable-listbox or --disable-listbox was given. | |
4497 | if test "${enable_listbox+set}" = set; then | |
4498 | enableval="$enable_listbox" | |
4499 | ||
4500 | if test "$enableval" = yes; then | |
4501 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
4502 | else | |
4503 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
4504 | fi | |
4505 | ||
4506 | else | |
4507 | ||
4508 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
4509 | if test "x$LINE" != x ; then | |
4510 | eval "DEFAULT_$LINE" | |
4511 | else | |
4512 | no_cache=1 | |
4513 | fi | |
4514 | ||
4515 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
4516 | ||
4517 | fi | |
4518 | ||
4519 | ||
4520 | eval "$ac_cv_use_listbox" | |
4521 | if test "$no_cache" != 1; then | |
4522 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
4523 | fi | |
4524 | ||
4525 | if test "$wxUSE_LISTBOX" = yes; then | |
4526 | echo "$ac_t""yes" 1>&6 | |
4527 | else | |
4528 | echo "$ac_t""no" 1>&6 | |
4529 | fi | |
4530 | ||
4531 | ||
4532 | echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6 | |
0dcf9893 | 4533 | echo "configure:4534: checking "for --enable-listctrl"" >&5 |
10f2d63a VZ |
4534 | no_cache=0 |
4535 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
4536 | if test "${enable_listctrl+set}" = set; then | |
4537 | enableval="$enable_listctrl" | |
4538 | ||
4539 | if test "$enableval" = yes; then | |
4540 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
4541 | else | |
4542 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
4543 | fi | |
4544 | ||
4545 | else | |
4546 | ||
4547 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
4548 | if test "x$LINE" != x ; then | |
4549 | eval "DEFAULT_$LINE" | |
4550 | else | |
4551 | no_cache=1 | |
4552 | fi | |
4553 | ||
4554 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
4555 | ||
4556 | fi | |
4557 | ||
4558 | ||
4559 | eval "$ac_cv_use_listctrl" | |
4560 | if test "$no_cache" != 1; then | |
4561 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
4562 | fi | |
4563 | ||
4564 | if test "$wxUSE_LISTCTRL" = yes; then | |
4565 | echo "$ac_t""yes" 1>&6 | |
4566 | else | |
4567 | echo "$ac_t""no" 1>&6 | |
4568 | fi | |
4569 | ||
4570 | ||
4571 | echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6 | |
0dcf9893 | 4572 | echo "configure:4573: checking "for --enable-notebook"" >&5 |
10f2d63a VZ |
4573 | no_cache=0 |
4574 | # Check whether --enable-notebook or --disable-notebook was given. | |
4575 | if test "${enable_notebook+set}" = set; then | |
4576 | enableval="$enable_notebook" | |
4577 | ||
4578 | if test "$enableval" = yes; then | |
4579 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
4580 | else | |
4581 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
4582 | fi | |
4583 | ||
4584 | else | |
4585 | ||
4586 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
4587 | if test "x$LINE" != x ; then | |
4588 | eval "DEFAULT_$LINE" | |
4589 | else | |
4590 | no_cache=1 | |
4591 | fi | |
4592 | ||
4593 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
4594 | ||
4595 | fi | |
4596 | ||
4597 | ||
4598 | eval "$ac_cv_use_notebook" | |
4599 | if test "$no_cache" != 1; then | |
4600 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
4601 | fi | |
4602 | ||
4603 | if test "$wxUSE_NOTEBOOK" = yes; then | |
4604 | echo "$ac_t""yes" 1>&6 | |
4605 | else | |
4606 | echo "$ac_t""no" 1>&6 | |
4607 | fi | |
4608 | ||
4609 | ||
4610 | echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6 | |
0dcf9893 | 4611 | echo "configure:4612: checking "for --enable-radiobox"" >&5 |
10f2d63a VZ |
4612 | no_cache=0 |
4613 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
4614 | if test "${enable_radiobox+set}" = set; then | |
4615 | enableval="$enable_radiobox" | |
4616 | ||
4617 | if test "$enableval" = yes; then | |
4618 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
4619 | else | |
4620 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
4621 | fi | |
4622 | ||
4623 | else | |
4624 | ||
4625 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
4626 | if test "x$LINE" != x ; then | |
4627 | eval "DEFAULT_$LINE" | |
4628 | else | |
4629 | no_cache=1 | |
4630 | fi | |
4631 | ||
4632 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
4633 | ||
4634 | fi | |
4635 | ||
4636 | ||
4637 | eval "$ac_cv_use_radiobox" | |
4638 | if test "$no_cache" != 1; then | |
4639 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
4640 | fi | |
4641 | ||
4642 | if test "$wxUSE_RADIOBOX" = yes; then | |
4643 | echo "$ac_t""yes" 1>&6 | |
4644 | else | |
4645 | echo "$ac_t""no" 1>&6 | |
4646 | fi | |
4647 | ||
4648 | ||
4649 | echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6 | |
0dcf9893 | 4650 | echo "configure:4651: checking "for --enable-radiobtn"" >&5 |
10f2d63a VZ |
4651 | no_cache=0 |
4652 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
4653 | if test "${enable_radiobtn+set}" = set; then | |
4654 | enableval="$enable_radiobtn" | |
4655 | ||
4656 | if test "$enableval" = yes; then | |
4657 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
4658 | else | |
4659 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
4660 | fi | |
4661 | ||
4662 | else | |
4663 | ||
4664 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
4665 | if test "x$LINE" != x ; then | |
4666 | eval "DEFAULT_$LINE" | |
4667 | else | |
4668 | no_cache=1 | |
4669 | fi | |
4670 | ||
4671 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
4672 | ||
4673 | fi | |
4674 | ||
4675 | ||
4676 | eval "$ac_cv_use_radiobtn" | |
4677 | if test "$no_cache" != 1; then | |
4678 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
4679 | fi | |
4680 | ||
4681 | if test "$wxUSE_RADIOBTN" = yes; then | |
4682 | echo "$ac_t""yes" 1>&6 | |
4683 | else | |
4684 | echo "$ac_t""no" 1>&6 | |
4685 | fi | |
4686 | ||
4687 | ||
4688 | echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6 | |
0dcf9893 | 4689 | echo "configure:4690: checking "for --enable-sash"" >&5 |
10f2d63a VZ |
4690 | no_cache=0 |
4691 | # Check whether --enable-sash or --disable-sash was given. | |
4692 | if test "${enable_sash+set}" = set; then | |
4693 | enableval="$enable_sash" | |
4694 | ||
4695 | if test "$enableval" = yes; then | |
4696 | ac_cv_use_sash='wxUSE_SASH=yes' | |
4697 | else | |
4698 | ac_cv_use_sash='wxUSE_SASH=no' | |
4699 | fi | |
4700 | ||
4701 | else | |
4702 | ||
4703 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
4704 | if test "x$LINE" != x ; then | |
4705 | eval "DEFAULT_$LINE" | |
4706 | else | |
4707 | no_cache=1 | |
4708 | fi | |
4709 | ||
4710 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
4711 | ||
4712 | fi | |
4713 | ||
4714 | ||
4715 | eval "$ac_cv_use_sash" | |
4716 | if test "$no_cache" != 1; then | |
4717 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
4718 | fi | |
4719 | ||
4720 | if test "$wxUSE_SASH" = yes; then | |
4721 | echo "$ac_t""yes" 1>&6 | |
4722 | else | |
4723 | echo "$ac_t""no" 1>&6 | |
4724 | fi | |
4725 | ||
4726 | ||
4727 | echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6 | |
0dcf9893 | 4728 | echo "configure:4729: checking "for --enable-scrollbar"" >&5 |
10f2d63a VZ |
4729 | no_cache=0 |
4730 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
4731 | if test "${enable_scrollbar+set}" = set; then | |
4732 | enableval="$enable_scrollbar" | |
4733 | ||
4734 | if test "$enableval" = yes; then | |
4735 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
4736 | else | |
4737 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
4738 | fi | |
4739 | ||
4740 | else | |
4741 | ||
4742 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
4743 | if test "x$LINE" != x ; then | |
4744 | eval "DEFAULT_$LINE" | |
4745 | else | |
4746 | no_cache=1 | |
4747 | fi | |
4748 | ||
4749 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
4750 | ||
4751 | fi | |
4752 | ||
4753 | ||
4754 | eval "$ac_cv_use_scrollbar" | |
4755 | if test "$no_cache" != 1; then | |
4756 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
4757 | fi | |
4758 | ||
4759 | if test "$wxUSE_SCROLLBAR" = yes; then | |
4760 | echo "$ac_t""yes" 1>&6 | |
4761 | else | |
4762 | echo "$ac_t""no" 1>&6 | |
4763 | fi | |
4764 | ||
4765 | ||
4766 | echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6 | |
0dcf9893 | 4767 | echo "configure:4768: checking "for --enable-slider"" >&5 |
10f2d63a VZ |
4768 | no_cache=0 |
4769 | # Check whether --enable-slider or --disable-slider was given. | |
4770 | if test "${enable_slider+set}" = set; then | |
4771 | enableval="$enable_slider" | |
4772 | ||
4773 | if test "$enableval" = yes; then | |
4774 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
4775 | else | |
4776 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
4777 | fi | |
4778 | ||
4779 | else | |
4780 | ||
4781 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
4782 | if test "x$LINE" != x ; then | |
4783 | eval "DEFAULT_$LINE" | |
4784 | else | |
4785 | no_cache=1 | |
4786 | fi | |
4787 | ||
4788 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
4789 | ||
4790 | fi | |
4791 | ||
4792 | ||
4793 | eval "$ac_cv_use_slider" | |
4794 | if test "$no_cache" != 1; then | |
4795 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
4796 | fi | |
4797 | ||
4798 | if test "$wxUSE_SLIDER" = yes; then | |
4799 | echo "$ac_t""yes" 1>&6 | |
4800 | else | |
4801 | echo "$ac_t""no" 1>&6 | |
4802 | fi | |
4803 | ||
4804 | ||
4805 | echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6 | |
0dcf9893 | 4806 | echo "configure:4807: checking "for --enable-spinbtn"" >&5 |
10f2d63a VZ |
4807 | no_cache=0 |
4808 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
4809 | if test "${enable_spinbtn+set}" = set; then | |
4810 | enableval="$enable_spinbtn" | |
4811 | ||
4812 | if test "$enableval" = yes; then | |
4813 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
4814 | else | |
4815 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
4816 | fi | |
4817 | ||
4818 | else | |
4819 | ||
4820 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
4821 | if test "x$LINE" != x ; then | |
4822 | eval "DEFAULT_$LINE" | |
4823 | else | |
4824 | no_cache=1 | |
4825 | fi | |
4826 | ||
4827 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
4828 | ||
4829 | fi | |
4830 | ||
4831 | ||
4832 | eval "$ac_cv_use_spinbtn" | |
4833 | if test "$no_cache" != 1; then | |
4834 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
4835 | fi | |
4836 | ||
4837 | if test "$wxUSE_SPINBTN" = yes; then | |
4838 | echo "$ac_t""yes" 1>&6 | |
4839 | else | |
4840 | echo "$ac_t""no" 1>&6 | |
4841 | fi | |
4842 | ||
4843 | ||
56cfaa52 | 4844 | echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6 |
0dcf9893 | 4845 | echo "configure:4846: checking "for --enable-spinctrl"" >&5 |
56cfaa52 RR |
4846 | no_cache=0 |
4847 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
4848 | if test "${enable_spinctrl+set}" = set; then | |
4849 | enableval="$enable_spinctrl" | |
4850 | ||
4851 | if test "$enableval" = yes; then | |
4852 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
4853 | else | |
4854 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
4855 | fi | |
4856 | ||
4857 | else | |
4858 | ||
4859 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
4860 | if test "x$LINE" != x ; then | |
4861 | eval "DEFAULT_$LINE" | |
4862 | else | |
4863 | no_cache=1 | |
4864 | fi | |
4865 | ||
4866 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
4867 | ||
4868 | fi | |
4869 | ||
4870 | ||
4871 | eval "$ac_cv_use_spinctrl" | |
4872 | if test "$no_cache" != 1; then | |
4873 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
4874 | fi | |
4875 | ||
4876 | if test "$wxUSE_SPINCTRL" = yes; then | |
4877 | echo "$ac_t""yes" 1>&6 | |
4878 | else | |
4879 | echo "$ac_t""no" 1>&6 | |
4880 | fi | |
4881 | ||
4882 | ||
10f2d63a | 4883 | echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6 |
0dcf9893 | 4884 | echo "configure:4885: checking "for --enable-splitter"" >&5 |
10f2d63a VZ |
4885 | no_cache=0 |
4886 | # Check whether --enable-splitter or --disable-splitter was given. | |
4887 | if test "${enable_splitter+set}" = set; then | |
4888 | enableval="$enable_splitter" | |
4889 | ||
4890 | if test "$enableval" = yes; then | |
4891 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
4892 | else | |
4893 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
4894 | fi | |
4895 | ||
4896 | else | |
4897 | ||
4898 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
4899 | if test "x$LINE" != x ; then | |
4900 | eval "DEFAULT_$LINE" | |
4901 | else | |
4902 | no_cache=1 | |
4903 | fi | |
4904 | ||
4905 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
4906 | ||
4907 | fi | |
4908 | ||
4909 | ||
4910 | eval "$ac_cv_use_splitter" | |
4911 | if test "$no_cache" != 1; then | |
4912 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
4913 | fi | |
4914 | ||
4915 | if test "$wxUSE_SPLITTER" = yes; then | |
4916 | echo "$ac_t""yes" 1>&6 | |
4917 | else | |
4918 | echo "$ac_t""no" 1>&6 | |
4919 | fi | |
4920 | ||
4921 | ||
4922 | echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6 | |
0dcf9893 | 4923 | echo "configure:4924: checking "for --enable-statbmp"" >&5 |
10f2d63a VZ |
4924 | no_cache=0 |
4925 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
4926 | if test "${enable_statbmp+set}" = set; then | |
4927 | enableval="$enable_statbmp" | |
4928 | ||
4929 | if test "$enableval" = yes; then | |
4930 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
4931 | else | |
4932 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
4933 | fi | |
4934 | ||
4935 | else | |
4936 | ||
4937 | LINE=`grep "wxUSE_STATBMP" ${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_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
4945 | ||
4946 | fi | |
4947 | ||
4948 | ||
4949 | eval "$ac_cv_use_statbmp" | |
4950 | if test "$no_cache" != 1; then | |
4951 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
4952 | fi | |
4953 | ||
4954 | if test "$wxUSE_STATBMP" = yes; then | |
4955 | echo "$ac_t""yes" 1>&6 | |
4956 | else | |
4957 | echo "$ac_t""no" 1>&6 | |
4958 | fi | |
4959 | ||
4960 | ||
4961 | echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6 | |
0dcf9893 | 4962 | echo "configure:4963: checking "for --enable-statbox"" >&5 |
10f2d63a VZ |
4963 | no_cache=0 |
4964 | # Check whether --enable-statbox or --disable-statbox was given. | |
4965 | if test "${enable_statbox+set}" = set; then | |
4966 | enableval="$enable_statbox" | |
4967 | ||
4968 | if test "$enableval" = yes; then | |
4969 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
4970 | else | |
4971 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
4972 | fi | |
4973 | ||
4974 | else | |
4975 | ||
4976 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
4977 | if test "x$LINE" != x ; then | |
4978 | eval "DEFAULT_$LINE" | |
4979 | else | |
4980 | no_cache=1 | |
4981 | fi | |
4982 | ||
4983 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
4984 | ||
4985 | fi | |
4986 | ||
4987 | ||
4988 | eval "$ac_cv_use_statbox" | |
4989 | if test "$no_cache" != 1; then | |
4990 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
4991 | fi | |
4992 | ||
4993 | if test "$wxUSE_STATBOX" = yes; then | |
4994 | echo "$ac_t""yes" 1>&6 | |
4995 | else | |
4996 | echo "$ac_t""no" 1>&6 | |
4997 | fi | |
4998 | ||
4999 | ||
5000 | echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6 | |
0dcf9893 | 5001 | echo "configure:5002: checking "for --enable-statline"" >&5 |
10f2d63a VZ |
5002 | no_cache=0 |
5003 | # Check whether --enable-statline or --disable-statline was given. | |
5004 | if test "${enable_statline+set}" = set; then | |
5005 | enableval="$enable_statline" | |
5006 | ||
5007 | if test "$enableval" = yes; then | |
5008 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
5009 | else | |
5010 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
5011 | fi | |
5012 | ||
5013 | else | |
5014 | ||
5015 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
5016 | if test "x$LINE" != x ; then | |
5017 | eval "DEFAULT_$LINE" | |
5018 | else | |
5019 | no_cache=1 | |
5020 | fi | |
5021 | ||
5022 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
5023 | ||
5024 | fi | |
5025 | ||
5026 | ||
5027 | eval "$ac_cv_use_statline" | |
5028 | if test "$no_cache" != 1; then | |
5029 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
5030 | fi | |
5031 | ||
5032 | if test "$wxUSE_STATLINE" = yes; then | |
5033 | echo "$ac_t""yes" 1>&6 | |
5034 | else | |
5035 | echo "$ac_t""no" 1>&6 | |
5036 | fi | |
5037 | ||
5038 | ||
5039 | echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6 | |
0dcf9893 | 5040 | echo "configure:5041: checking "for --enable-statusbar"" >&5 |
10f2d63a VZ |
5041 | no_cache=0 |
5042 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
5043 | if test "${enable_statusbar+set}" = set; then | |
5044 | enableval="$enable_statusbar" | |
5045 | ||
5046 | if test "$enableval" = yes; then | |
5047 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
5048 | else | |
5049 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
5050 | fi | |
5051 | ||
5052 | else | |
5053 | ||
5054 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
5055 | if test "x$LINE" != x ; then | |
5056 | eval "DEFAULT_$LINE" | |
5057 | else | |
5058 | no_cache=1 | |
5059 | fi | |
5060 | ||
5061 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
5062 | ||
5063 | fi | |
5064 | ||
5065 | ||
5066 | eval "$ac_cv_use_statusbar" | |
5067 | if test "$no_cache" != 1; then | |
5068 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
5069 | fi | |
5070 | ||
5071 | if test "$wxUSE_STATUSBAR" = yes; then | |
5072 | echo "$ac_t""yes" 1>&6 | |
5073 | else | |
5074 | echo "$ac_t""no" 1>&6 | |
5075 | fi | |
5076 | ||
5077 | ||
5078 | echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6 | |
0dcf9893 | 5079 | echo "configure:5080: checking "for --enable-tabdialog"" >&5 |
10f2d63a VZ |
5080 | no_cache=0 |
5081 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
5082 | if test "${enable_tabdialog+set}" = set; then | |
5083 | enableval="$enable_tabdialog" | |
5084 | ||
5085 | if test "$enableval" = yes; then | |
5086 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
5087 | else | |
5088 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
5089 | fi | |
5090 | ||
5091 | else | |
5092 | ||
5093 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
5094 | if test "x$LINE" != x ; then | |
5095 | eval "DEFAULT_$LINE" | |
5096 | else | |
5097 | no_cache=1 | |
5098 | fi | |
5099 | ||
5100 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
5101 | ||
5102 | fi | |
5103 | ||
5104 | ||
5105 | eval "$ac_cv_use_tabdialog" | |
5106 | if test "$no_cache" != 1; then | |
5107 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
5108 | fi | |
5109 | ||
5110 | if test "$wxUSE_TABDIALOG" = yes; then | |
5111 | echo "$ac_t""yes" 1>&6 | |
5112 | else | |
5113 | echo "$ac_t""no" 1>&6 | |
5114 | fi | |
5115 | ||
5116 | ||
5117 | echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6 | |
0dcf9893 | 5118 | echo "configure:5119: checking "for --enable-toolbar"" >&5 |
10f2d63a VZ |
5119 | no_cache=0 |
5120 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
5121 | if test "${enable_toolbar+set}" = set; then | |
5122 | enableval="$enable_toolbar" | |
5123 | ||
5124 | if test "$enableval" = yes; then | |
5125 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
5126 | else | |
5127 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
5128 | fi | |
5129 | ||
5130 | else | |
5131 | ||
5132 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
5133 | if test "x$LINE" != x ; then | |
5134 | eval "DEFAULT_$LINE" | |
5135 | else | |
5136 | no_cache=1 | |
5137 | fi | |
5138 | ||
5139 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
5140 | ||
5141 | fi | |
5142 | ||
5143 | ||
5144 | eval "$ac_cv_use_toolbar" | |
5145 | if test "$no_cache" != 1; then | |
5146 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
5147 | fi | |
5148 | ||
5149 | if test "$wxUSE_TOOLBAR" = yes; then | |
5150 | echo "$ac_t""yes" 1>&6 | |
5151 | else | |
5152 | echo "$ac_t""no" 1>&6 | |
5153 | fi | |
5154 | ||
5155 | ||
360d6699 | 5156 | echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6 |
0dcf9893 | 5157 | echo "configure:5158: checking "for --enable-tbarnative"" >&5 |
360d6699 VZ |
5158 | no_cache=0 |
5159 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
5160 | if test "${enable_tbarnative+set}" = set; then | |
5161 | enableval="$enable_tbarnative" | |
5162 | ||
5163 | if test "$enableval" = yes; then | |
5164 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
5165 | else | |
5166 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
5167 | fi | |
5168 | ||
5169 | else | |
5170 | ||
5171 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
5172 | if test "x$LINE" != x ; then | |
5173 | eval "DEFAULT_$LINE" | |
5174 | else | |
5175 | no_cache=1 | |
5176 | fi | |
5177 | ||
5178 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
5179 | ||
5180 | fi | |
5181 | ||
5182 | ||
5183 | eval "$ac_cv_use_tbarnative" | |
5184 | if test "$no_cache" != 1; then | |
5185 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
5186 | fi | |
5187 | ||
5188 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
5189 | echo "$ac_t""yes" 1>&6 | |
5190 | else | |
5191 | echo "$ac_t""no" 1>&6 | |
5192 | fi | |
5193 | ||
5194 | ||
5195 | echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6 | |
0dcf9893 | 5196 | echo "configure:5197: checking "for --enable-tbarsmpl"" >&5 |
360d6699 VZ |
5197 | no_cache=0 |
5198 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
5199 | if test "${enable_tbarsmpl+set}" = set; then | |
5200 | enableval="$enable_tbarsmpl" | |
5201 | ||
5202 | if test "$enableval" = yes; then | |
5203 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
5204 | else | |
5205 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
5206 | fi | |
5207 | ||
5208 | else | |
5209 | ||
5210 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
5211 | if test "x$LINE" != x ; then | |
5212 | eval "DEFAULT_$LINE" | |
5213 | else | |
5214 | no_cache=1 | |
5215 | fi | |
5216 | ||
5217 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
5218 | ||
5219 | fi | |
5220 | ||
5221 | ||
5222 | eval "$ac_cv_use_tbarsmpl" | |
5223 | if test "$no_cache" != 1; then | |
5224 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
5225 | fi | |
5226 | ||
5227 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
5228 | echo "$ac_t""yes" 1>&6 | |
5229 | else | |
5230 | echo "$ac_t""no" 1>&6 | |
5231 | fi | |
5232 | ||
5233 | ||
10f2d63a | 5234 | echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6 |
0dcf9893 | 5235 | echo "configure:5236: checking "for --enable-treectrl"" >&5 |
10f2d63a VZ |
5236 | no_cache=0 |
5237 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
5238 | if test "${enable_treectrl+set}" = set; then | |
5239 | enableval="$enable_treectrl" | |
5240 | ||
5241 | if test "$enableval" = yes; then | |
5242 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
5243 | else | |
5244 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
5245 | fi | |
5246 | ||
5247 | else | |
5248 | ||
5249 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
5250 | if test "x$LINE" != x ; then | |
5251 | eval "DEFAULT_$LINE" | |
5252 | else | |
5253 | no_cache=1 | |
5254 | fi | |
5255 | ||
5256 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
5257 | ||
5258 | fi | |
5259 | ||
5260 | ||
5261 | eval "$ac_cv_use_treectrl" | |
5262 | if test "$no_cache" != 1; then | |
5263 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
5264 | fi | |
5265 | ||
5266 | if test "$wxUSE_TREECTRL" = yes; then | |
5267 | echo "$ac_t""yes" 1>&6 | |
5268 | else | |
5269 | echo "$ac_t""no" 1>&6 | |
5270 | fi | |
5271 | ||
5272 | ||
5273 | ||
5274 | ||
5275 | echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6 | |
0dcf9893 | 5276 | echo "configure:5277: checking "for --enable-commondlg"" >&5 |
10f2d63a VZ |
5277 | no_cache=0 |
5278 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
5279 | if test "${enable_commondlg+set}" = set; then | |
5280 | enableval="$enable_commondlg" | |
5281 | ||
5282 | if test "$enableval" = yes; then | |
5283 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
5284 | else | |
5285 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
5286 | fi | |
5287 | ||
5288 | else | |
5289 | ||
5290 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
5291 | if test "x$LINE" != x ; then | |
5292 | eval "DEFAULT_$LINE" | |
5293 | else | |
5294 | no_cache=1 | |
5295 | fi | |
5296 | ||
5297 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
5298 | ||
5299 | fi | |
5300 | ||
5301 | ||
5302 | eval "$ac_cv_use_commondlg" | |
5303 | if test "$no_cache" != 1; then | |
5304 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
5305 | fi | |
5306 | ||
5307 | if test "$wxUSE_COMMONDLGS" = yes; then | |
5308 | echo "$ac_t""yes" 1>&6 | |
5309 | else | |
5310 | echo "$ac_t""no" 1>&6 | |
5311 | fi | |
5312 | ||
5313 | ||
5314 | echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6 | |
0dcf9893 | 5315 | echo "configure:5316: checking "for --enable-dirdlg"" >&5 |
10f2d63a VZ |
5316 | no_cache=0 |
5317 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
5318 | if test "${enable_dirdlg+set}" = set; then | |
5319 | enableval="$enable_dirdlg" | |
5320 | ||
5321 | if test "$enableval" = yes; then | |
5322 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
5323 | else | |
5324 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
5325 | fi | |
5326 | ||
5327 | else | |
5328 | ||
5329 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
5330 | if test "x$LINE" != x ; then | |
5331 | eval "DEFAULT_$LINE" | |
5332 | else | |
5333 | no_cache=1 | |
5334 | fi | |
5335 | ||
5336 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
5337 | ||
5338 | fi | |
5339 | ||
5340 | ||
5341 | eval "$ac_cv_use_dirdlg" | |
5342 | if test "$no_cache" != 1; then | |
5343 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
5344 | fi | |
5345 | ||
5346 | if test "$wxUSE_DIRDLG" = yes; then | |
5347 | echo "$ac_t""yes" 1>&6 | |
5348 | else | |
5349 | echo "$ac_t""no" 1>&6 | |
5350 | fi | |
5351 | ||
5352 | ||
5353 | echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6 | |
0dcf9893 | 5354 | echo "configure:5355: checking "for --enable-textdlg"" >&5 |
10f2d63a VZ |
5355 | no_cache=0 |
5356 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
5357 | if test "${enable_textdlg+set}" = set; then | |
5358 | enableval="$enable_textdlg" | |
5359 | ||
5360 | if test "$enableval" = yes; then | |
5361 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
5362 | else | |
5363 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
5364 | fi | |
5365 | ||
5366 | else | |
5367 | ||
5368 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
5369 | if test "x$LINE" != x ; then | |
5370 | eval "DEFAULT_$LINE" | |
5371 | else | |
5372 | no_cache=1 | |
5373 | fi | |
5374 | ||
5375 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
5376 | ||
5377 | fi | |
5378 | ||
5379 | ||
5380 | eval "$ac_cv_use_textdlg" | |
5381 | if test "$no_cache" != 1; then | |
5382 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
5383 | fi | |
5384 | ||
5385 | if test "$wxUSE_TEXTDLG" = yes; then | |
5386 | echo "$ac_t""yes" 1>&6 | |
5387 | else | |
5388 | echo "$ac_t""no" 1>&6 | |
5389 | fi | |
5390 | ||
5391 | ||
5392 | echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6 | |
0dcf9893 | 5393 | echo "configure:5394: checking "for --enable-tipdlg"" >&5 |
10f2d63a VZ |
5394 | no_cache=0 |
5395 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
5396 | if test "${enable_tipdlg+set}" = set; then | |
5397 | enableval="$enable_tipdlg" | |
5398 | ||
5399 | if test "$enableval" = yes; then | |
5400 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
5401 | else | |
5402 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
5403 | fi | |
5404 | ||
5405 | else | |
5406 | ||
5407 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
5408 | if test "x$LINE" != x ; then | |
5409 | eval "DEFAULT_$LINE" | |
5410 | else | |
5411 | no_cache=1 | |
5412 | fi | |
5413 | ||
5414 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
5415 | ||
5416 | fi | |
5417 | ||
5418 | ||
5419 | eval "$ac_cv_use_tipdlg" | |
5420 | if test "$no_cache" != 1; then | |
5421 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
5422 | fi | |
5423 | ||
5424 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
5425 | echo "$ac_t""yes" 1>&6 | |
5426 | else | |
5427 | echo "$ac_t""no" 1>&6 | |
5428 | fi | |
5429 | ||
5430 | ||
5431 | echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6 | |
0dcf9893 | 5432 | echo "configure:5433: checking "for --enable-progressdlg"" >&5 |
10f2d63a VZ |
5433 | no_cache=0 |
5434 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
5435 | if test "${enable_progressdlg+set}" = set; then | |
5436 | enableval="$enable_progressdlg" | |
5437 | ||
5438 | if test "$enableval" = yes; then | |
5439 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
5440 | else | |
5441 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
5442 | fi | |
5443 | ||
5444 | else | |
5445 | ||
5446 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
5447 | if test "x$LINE" != x ; then | |
5448 | eval "DEFAULT_$LINE" | |
5449 | else | |
5450 | no_cache=1 | |
5451 | fi | |
5452 | ||
5453 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
5454 | ||
5455 | fi | |
5456 | ||
5457 | ||
5458 | eval "$ac_cv_use_progressdlg" | |
5459 | if test "$no_cache" != 1; then | |
5460 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
5461 | fi | |
5462 | ||
5463 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
5464 | echo "$ac_t""yes" 1>&6 | |
5465 | else | |
5466 | echo "$ac_t""no" 1>&6 | |
5467 | fi | |
5468 | ||
5469 | ||
5470 | echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6 | |
0dcf9893 | 5471 | echo "configure:5472: checking "for --enable-miniframe"" >&5 |
10f2d63a VZ |
5472 | no_cache=0 |
5473 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
5474 | if test "${enable_miniframe+set}" = set; then | |
5475 | enableval="$enable_miniframe" | |
5476 | ||
5477 | if test "$enableval" = yes; then | |
5478 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
5479 | else | |
5480 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
5481 | fi | |
5482 | ||
5483 | else | |
5484 | ||
5485 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
5486 | if test "x$LINE" != x ; then | |
5487 | eval "DEFAULT_$LINE" | |
5488 | else | |
5489 | no_cache=1 | |
5490 | fi | |
5491 | ||
5492 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
5493 | ||
5494 | fi | |
5495 | ||
5496 | ||
5497 | eval "$ac_cv_use_miniframe" | |
5498 | if test "$no_cache" != 1; then | |
5499 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
5500 | fi | |
5501 | ||
5502 | if test "$wxUSE_MINIFRAME" = yes; then | |
5503 | echo "$ac_t""yes" 1>&6 | |
5504 | else | |
5505 | echo "$ac_t""no" 1>&6 | |
5506 | fi | |
5507 | ||
5508 | ||
5509 | echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6 | |
0dcf9893 | 5510 | echo "configure:5511: checking "for --enable-html"" >&5 |
10f2d63a VZ |
5511 | no_cache=0 |
5512 | # Check whether --enable-html or --disable-html was given. | |
5513 | if test "${enable_html+set}" = set; then | |
5514 | enableval="$enable_html" | |
5515 | ||
5516 | if test "$enableval" = yes; then | |
5517 | ac_cv_use_html='wxUSE_HTML=yes' | |
5518 | else | |
5519 | ac_cv_use_html='wxUSE_HTML=no' | |
5520 | fi | |
5521 | ||
5522 | else | |
5523 | ||
5524 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
5525 | if test "x$LINE" != x ; then | |
5526 | eval "DEFAULT_$LINE" | |
5527 | else | |
5528 | no_cache=1 | |
5529 | fi | |
5530 | ||
5531 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5532 | ||
5533 | fi | |
5534 | ||
5535 | ||
5536 | eval "$ac_cv_use_html" | |
5537 | if test "$no_cache" != 1; then | |
5538 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5539 | fi | |
5540 | ||
5541 | if test "$wxUSE_HTML" = yes; then | |
5542 | echo "$ac_t""yes" 1>&6 | |
5543 | else | |
5544 | echo "$ac_t""no" 1>&6 | |
5545 | fi | |
5546 | ||
5547 | ||
5548 | echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6 | |
0dcf9893 | 5549 | echo "configure:5550: checking "for --enable-tooltips"" >&5 |
10f2d63a VZ |
5550 | no_cache=0 |
5551 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
5552 | if test "${enable_tooltips+set}" = set; then | |
5553 | enableval="$enable_tooltips" | |
5554 | ||
5555 | if test "$enableval" = yes; then | |
5556 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
5557 | else | |
5558 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
5559 | fi | |
5560 | ||
5561 | else | |
5562 | ||
5563 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
5564 | if test "x$LINE" != x ; then | |
5565 | eval "DEFAULT_$LINE" | |
5566 | else | |
5567 | no_cache=1 | |
5568 | fi | |
5569 | ||
5570 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
5571 | ||
5572 | fi | |
5573 | ||
5574 | ||
5575 | eval "$ac_cv_use_tooltips" | |
5576 | if test "$no_cache" != 1; then | |
5577 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
5578 | fi | |
5579 | ||
5580 | if test "$wxUSE_TOOLTIPS" = yes; then | |
5581 | echo "$ac_t""yes" 1>&6 | |
5582 | else | |
5583 | echo "$ac_t""no" 1>&6 | |
5584 | fi | |
5585 | ||
5586 | ||
5587 | echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6 | |
0dcf9893 | 5588 | echo "configure:5589: checking "for --enable-splines"" >&5 |
10f2d63a VZ |
5589 | no_cache=0 |
5590 | # Check whether --enable-splines or --disable-splines was given. | |
5591 | if test "${enable_splines+set}" = set; then | |
5592 | enableval="$enable_splines" | |
5593 | ||
5594 | if test "$enableval" = yes; then | |
5595 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
5596 | else | |
5597 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
5598 | fi | |
5599 | ||
5600 | else | |
5601 | ||
5602 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
5603 | if test "x$LINE" != x ; then | |
5604 | eval "DEFAULT_$LINE" | |
5605 | else | |
5606 | no_cache=1 | |
5607 | fi | |
5608 | ||
5609 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
5610 | ||
5611 | fi | |
5612 | ||
5613 | ||
5614 | eval "$ac_cv_use_splines" | |
5615 | if test "$no_cache" != 1; then | |
5616 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
5617 | fi | |
5618 | ||
5619 | if test "$wxUSE_SPLINES" = yes; then | |
5620 | echo "$ac_t""yes" 1>&6 | |
5621 | else | |
5622 | echo "$ac_t""no" 1>&6 | |
5623 | fi | |
5624 | ||
5625 | ||
5626 | echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6 | |
0dcf9893 | 5627 | echo "configure:5628: checking "for --enable-validators"" >&5 |
10f2d63a VZ |
5628 | no_cache=0 |
5629 | # Check whether --enable-validators or --disable-validators was given. | |
5630 | if test "${enable_validators+set}" = set; then | |
5631 | enableval="$enable_validators" | |
5632 | ||
5633 | if test "$enableval" = yes; then | |
5634 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
5635 | else | |
5636 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
5637 | fi | |
5638 | ||
5639 | else | |
5640 | ||
5641 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
5642 | if test "x$LINE" != x ; then | |
5643 | eval "DEFAULT_$LINE" | |
5644 | else | |
5645 | no_cache=1 | |
5646 | fi | |
5647 | ||
5648 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
5649 | ||
5650 | fi | |
5651 | ||
5652 | ||
5653 | eval "$ac_cv_use_validators" | |
5654 | if test "$no_cache" != 1; then | |
5655 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
5656 | fi | |
5657 | ||
5658 | if test "$wxUSE_VALIDATORS" = yes; then | |
5659 | echo "$ac_t""yes" 1>&6 | |
5660 | else | |
5661 | echo "$ac_t""no" 1>&6 | |
5662 | fi | |
5663 | ||
5664 | ||
5665 | echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6 | |
0dcf9893 | 5666 | echo "configure:5667: checking "for --enable-busyinfo"" >&5 |
10f2d63a VZ |
5667 | no_cache=0 |
5668 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
5669 | if test "${enable_busyinfo+set}" = set; then | |
5670 | enableval="$enable_busyinfo" | |
5671 | ||
5672 | if test "$enableval" = yes; then | |
5673 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
5674 | else | |
5675 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
5676 | fi | |
5677 | ||
5678 | else | |
5679 | ||
5680 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
5681 | if test "x$LINE" != x ; then | |
5682 | eval "DEFAULT_$LINE" | |
5683 | else | |
5684 | no_cache=1 | |
5685 | fi | |
5686 | ||
5687 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
5688 | ||
5689 | fi | |
5690 | ||
5691 | ||
5692 | eval "$ac_cv_use_busyinfo" | |
5693 | if test "$no_cache" != 1; then | |
5694 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
5695 | fi | |
5696 | ||
5697 | if test "$wxUSE_BUSYINFO" = yes; then | |
5698 | echo "$ac_t""yes" 1>&6 | |
5699 | else | |
5700 | echo "$ac_t""no" 1>&6 | |
5701 | fi | |
5702 | ||
5703 | ||
9b33fe02 | 5704 | echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6 |
0dcf9893 | 5705 | echo "configure:5706: checking "for --enable-plot"" >&5 |
9b33fe02 VZ |
5706 | no_cache=0 |
5707 | # Check whether --enable-plot or --disable-plot was given. | |
5708 | if test "${enable_plot+set}" = set; then | |
5709 | enableval="$enable_plot" | |
5710 | ||
5711 | if test "$enableval" = yes; then | |
5712 | ac_cv_use_plot='wxUSE_PLOT=yes' | |
5713 | else | |
5714 | ac_cv_use_plot='wxUSE_PLOT=no' | |
5715 | fi | |
5716 | ||
5717 | else | |
5718 | ||
5719 | LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}` | |
5720 | if test "x$LINE" != x ; then | |
5721 | eval "DEFAULT_$LINE" | |
5722 | else | |
5723 | no_cache=1 | |
5724 | fi | |
5725 | ||
5726 | ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT | |
5727 | ||
5728 | fi | |
5729 | ||
5730 | ||
5731 | eval "$ac_cv_use_plot" | |
5732 | if test "$no_cache" != 1; then | |
5733 | echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp | |
5734 | fi | |
5735 | ||
5736 | if test "$wxUSE_PLOT" = yes; then | |
5737 | echo "$ac_t""yes" 1>&6 | |
5738 | else | |
5739 | echo "$ac_t""no" 1>&6 | |
5740 | fi | |
5741 | ||
5742 | ||
10f2d63a VZ |
5743 | |
5744 | ||
5745 | echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6 | |
0dcf9893 | 5746 | echo "configure:5747: checking "for --enable-gif"" >&5 |
10f2d63a VZ |
5747 | no_cache=0 |
5748 | # Check whether --enable-gif or --disable-gif was given. | |
5749 | if test "${enable_gif+set}" = set; then | |
5750 | enableval="$enable_gif" | |
5751 | ||
5752 | if test "$enableval" = yes; then | |
5753 | ac_cv_use_gif='wxUSE_GIF=yes' | |
5754 | else | |
5755 | ac_cv_use_gif='wxUSE_GIF=no' | |
5756 | fi | |
5757 | ||
5758 | else | |
5759 | ||
5760 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
5761 | if test "x$LINE" != x ; then | |
5762 | eval "DEFAULT_$LINE" | |
5763 | else | |
5764 | no_cache=1 | |
5765 | fi | |
5766 | ||
5767 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
5768 | ||
5769 | fi | |
5770 | ||
5771 | ||
5772 | eval "$ac_cv_use_gif" | |
5773 | if test "$no_cache" != 1; then | |
5774 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
5775 | fi | |
5776 | ||
5777 | if test "$wxUSE_GIF" = yes; then | |
5778 | echo "$ac_t""yes" 1>&6 | |
5779 | else | |
5780 | echo "$ac_t""no" 1>&6 | |
5781 | fi | |
5782 | ||
5783 | ||
5784 | echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6 | |
0dcf9893 | 5785 | echo "configure:5786: checking "for --enable-pcx"" >&5 |
10f2d63a VZ |
5786 | no_cache=0 |
5787 | # Check whether --enable-pcx or --disable-pcx was given. | |
5788 | if test "${enable_pcx+set}" = set; then | |
5789 | enableval="$enable_pcx" | |
5790 | ||
5791 | if test "$enableval" = yes; then | |
5792 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
5793 | else | |
5794 | ac_cv_use_pcx='wxUSE_PCX=no' | |
5795 | fi | |
5796 | ||
5797 | else | |
5798 | ||
5799 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
5800 | if test "x$LINE" != x ; then | |
5801 | eval "DEFAULT_$LINE" | |
5802 | else | |
5803 | no_cache=1 | |
5804 | fi | |
5805 | ||
5806 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
5807 | ||
5808 | fi | |
5809 | ||
5810 | ||
5811 | eval "$ac_cv_use_pcx" | |
5812 | if test "$no_cache" != 1; then | |
5813 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
5814 | fi | |
5815 | ||
5816 | if test "$wxUSE_PCX" = yes; then | |
5817 | echo "$ac_t""yes" 1>&6 | |
5818 | else | |
5819 | echo "$ac_t""no" 1>&6 | |
5820 | fi | |
5821 | ||
5822 | ||
5823 | echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6 | |
0dcf9893 | 5824 | echo "configure:5825: checking "for --enable-pnm"" >&5 |
10f2d63a VZ |
5825 | no_cache=0 |
5826 | # Check whether --enable-pnm or --disable-pnm was given. | |
5827 | if test "${enable_pnm+set}" = set; then | |
5828 | enableval="$enable_pnm" | |
5829 | ||
5830 | if test "$enableval" = yes; then | |
5831 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
5832 | else | |
5833 | ac_cv_use_pnm='wxUSE_PNM=no' | |
5834 | fi | |
5835 | ||
5836 | else | |
5837 | ||
5838 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
5839 | if test "x$LINE" != x ; then | |
5840 | eval "DEFAULT_$LINE" | |
5841 | else | |
5842 | no_cache=1 | |
5843 | fi | |
5844 | ||
5845 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
5846 | ||
5847 | fi | |
5848 | ||
5849 | ||
5850 | eval "$ac_cv_use_pnm" | |
5851 | if test "$no_cache" != 1; then | |
5852 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
5853 | fi | |
5854 | ||
5855 | if test "$wxUSE_PNM" = yes; then | |
5856 | echo "$ac_t""yes" 1>&6 | |
5857 | else | |
5858 | echo "$ac_t""no" 1>&6 | |
5859 | fi | |
5860 | ||
5861 | ||
b12915c1 VZ |
5862 | fi |
5863 | ||
10f2d63a VZ |
5864 | |
5865 | echo "saving argument cache $wx_arg_cache_file" | |
5866 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
5867 | ||
5868 | ||
5869 | ||
5870 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
0dcf9893 | 5871 | echo "configure:5872: checking for toolkit" >&5 |
10f2d63a VZ |
5872 | |
5873 | if test "$wxUSE_GUI" = "yes"; then | |
5874 | ||
b12915c1 VZ |
5875 | if test "$USE_BEOS" = 1; then |
5876 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
5877 | fi | |
5878 | ||
10f2d63a VZ |
5879 | if test "$TOOLKIT_GIVEN" = 1; then |
5880 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5881 | var=wxUSE_$toolkit | |
5882 | eval "value=\$${var}" | |
5883 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
5884 | done | |
5885 | else | |
5886 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5887 | if test "$has_toolkit_in_cache" != 1; then | |
5888 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
5889 | else | |
5890 | var=DEFAULT_wxUSE_$toolkit | |
5891 | fi | |
5892 | eval "wxUSE_$toolkit=\$${var}" | |
5893 | done | |
5894 | fi | |
5895 | ||
ec14dd32 | 5896 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}` |
cf27ef00 | 5897 | |
ec14dd32 VZ |
5898 | case "${host}" in |
5899 | *-pc-os2_emx ) | |
5900 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
5901 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
5902 | LEX_STEM="lexyy" | |
5903 | ;; | |
5904 | *) | |
5905 | PATH_IFS=':' | |
5906 | LEX_STEM="lex.yy" | |
5907 | ;; | |
5908 | esac | |
10f2d63a VZ |
5909 | |
5910 | case "$NUM_TOOLKITS" in | |
5911 | 1) | |
5912 | ;; | |
5913 | 0) | |
5914 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
5915 | ;; | |
5916 | *) | |
5917 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
5918 | esac | |
5919 | ||
5920 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5921 | var=wxUSE_$toolkit | |
5922 | eval "value=\$${var}" | |
5923 | if test "x$value" != x; then | |
5924 | cache_var=CACHE_$toolkit | |
5925 | eval "cache=\$${cache_var}" | |
5926 | if test "$cache" = 1; then | |
5927 | echo "$var=$value" >> ${wx_arg_cache_file} | |
5928 | fi | |
5929 | if test "$value" = 1; then | |
5930 | echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6 | |
5931 | fi | |
5932 | fi | |
5933 | done | |
5934 | ||
5935 | else | |
cf27ef00 | 5936 | PATH_IFS=':' |
10f2d63a VZ |
5937 | echo "$ac_t""base only" 1>&6 |
5938 | fi | |
5939 | ||
5940 | ||
5941 | cat > confcache <<\EOF | |
5942 | # This file is a shell script that caches the results of configure | |
5943 | # tests run on this system so they can be shared between configure | |
5944 | # scripts and configure runs. It is not useful on other systems. | |
5945 | # If it contains results you don't want to keep, you may remove or edit it. | |
5946 | # | |
5947 | # By default, configure uses ./config.cache as the cache file, | |
5948 | # creating it if it does not exist already. You can give configure | |
5949 | # the --cache-file=FILE option to use a different cache file; that is | |
5950 | # what configure does when it calls configure scripts in | |
5951 | # subdirectories, so they share the cache. | |
5952 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
5953 | # config.status only pays attention to the cache file if you give it the | |
5954 | # --recheck option to rerun configure. | |
5955 | # | |
5956 | EOF | |
5957 | # The following way of writing the cache mishandles newlines in values, | |
5958 | # but we know of no workaround that is simple, portable, and efficient. | |
5959 | # So, don't put newlines in cache variables' values. | |
5960 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
5961 | # and sets the high bit in the cache file unless we assign to the vars. | |
5962 | (set) 2>&1 | | |
5963 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
5964 | *ac_space=\ *) | |
5965 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
5966 | # turns \\\\ into \\, and sed turns \\ into \). | |
5967 | sed -n \ | |
5968 | -e "s/'/'\\\\''/g" \ | |
5969 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
5970 | ;; | |
5971 | *) | |
5972 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5973 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
5974 | ;; | |
5975 | esac >> confcache | |
5976 | if cmp -s $cache_file confcache; then | |
5977 | : | |
5978 | else | |
5979 | if test -w $cache_file; then | |
5980 | echo "updating cache $cache_file" | |
5981 | cat confcache > $cache_file | |
5982 | else | |
5983 | echo "not updating unwritable cache $cache_file" | |
5984 | fi | |
5985 | fi | |
5986 | rm -f confcache | |
5987 | ||
5988 | ||
e59890c3 | 5989 | if test "$build" != "$host" ; then |
10f2d63a VZ |
5990 | CC=$host_alias-gcc |
5991 | CXX=$host_alias-c++ | |
5992 | AR=$host_alias-ar | |
5993 | RANLIB=$host_alias-ranlib | |
5994 | DLLTOOL=$host_alias-dlltool | |
32832908 | 5995 | RESCOMP=$host_alias-windres |
10f2d63a VZ |
5996 | LD=$host_alias-ld |
5997 | NM=$host_alias-nm | |
5998 | STRIP=$host_alias-strip | |
10f2d63a VZ |
5999 | fi |
6000 | ||
6001 | # Extract the first word of "gcc", so it can be a program name with args. | |
6002 | set dummy gcc; ac_word=$2 | |
6003 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b0a09421 | 6004 | echo "configure:6005: checking for $ac_word" >&5 |
10f2d63a VZ |
6005 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
6006 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6007 | else | |
6008 | if test -n "$CC"; then | |
6009 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6010 | else | |
6011 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6012 | ac_dummy="$PATH" | |
6013 | for ac_dir in $ac_dummy; do | |
6014 | test -z "$ac_dir" && ac_dir=. | |
6015 | if test -f $ac_dir/$ac_word; then | |
6016 | ac_cv_prog_CC="gcc" | |
6017 | break | |
6018 | fi | |
6019 | done | |
6020 | IFS="$ac_save_ifs" | |
6021 | fi | |
6022 | fi | |
6023 | CC="$ac_cv_prog_CC" | |
6024 | if test -n "$CC"; then | |
6025 | echo "$ac_t""$CC" 1>&6 | |
6026 | else | |
6027 | echo "$ac_t""no" 1>&6 | |
6028 | fi | |
6029 | ||
6030 | if test -z "$CC"; then | |
6031 | # Extract the first word of "cc", so it can be a program name with args. | |
6032 | set dummy cc; ac_word=$2 | |
6033 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b0a09421 | 6034 | echo "configure:6035: checking for $ac_word" >&5 |
10f2d63a VZ |
6035 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
6036 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6037 | else | |
6038 | if test -n "$CC"; then | |
6039 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6040 | else | |
6041 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6042 | ac_prog_rejected=no | |
6043 | ac_dummy="$PATH" | |
6044 | for ac_dir in $ac_dummy; do | |
6045 | test -z "$ac_dir" && ac_dir=. | |
6046 | if test -f $ac_dir/$ac_word; then | |
6047 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
6048 | ac_prog_rejected=yes | |
6049 | continue | |
6050 | fi | |
6051 | ac_cv_prog_CC="cc" | |
6052 | break | |
6053 | fi | |
6054 | done | |
6055 | IFS="$ac_save_ifs" | |
6056 | if test $ac_prog_rejected = yes; then | |
6057 | # We found a bogon in the path, so make sure we never use it. | |
6058 | set dummy $ac_cv_prog_CC | |
6059 | shift | |
6060 | if test $# -gt 0; then | |
6061 | # We chose a different compiler from the bogus one. | |
6062 | # However, it has the same basename, so the bogon will be chosen | |
6063 | # first if we set CC to just the basename; use the full file name. | |
6064 | shift | |
6065 | set dummy "$ac_dir/$ac_word" "$@" | |
6066 | shift | |
6067 | ac_cv_prog_CC="$@" | |
6068 | fi | |
6069 | fi | |
6070 | fi | |
6071 | fi | |
6072 | CC="$ac_cv_prog_CC" | |
6073 | if test -n "$CC"; then | |
6074 | echo "$ac_t""$CC" 1>&6 | |
6075 | else | |
6076 | echo "$ac_t""no" 1>&6 | |
6077 | fi | |
6078 | ||
6079 | if test -z "$CC"; then | |
6080 | case "`uname -s`" in | |
6081 | *win32* | *WIN32*) | |
6082 | # Extract the first word of "cl", so it can be a program name with args. | |
6083 | set dummy cl; ac_word=$2 | |
6084 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b0a09421 | 6085 | echo "configure:6086: checking for $ac_word" >&5 |
10f2d63a VZ |
6086 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
6087 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6088 | else | |
6089 | if test -n "$CC"; then | |
6090 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6091 | else | |
6092 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6093 | ac_dummy="$PATH" | |
6094 | for ac_dir in $ac_dummy; do | |
6095 | test -z "$ac_dir" && ac_dir=. | |
6096 | if test -f $ac_dir/$ac_word; then | |
6097 | ac_cv_prog_CC="cl" | |
6098 | break | |
6099 | fi | |
6100 | done | |
6101 | IFS="$ac_save_ifs" | |
6102 | fi | |
6103 | fi | |
6104 | CC="$ac_cv_prog_CC" | |
6105 | if test -n "$CC"; then | |
6106 | echo "$ac_t""$CC" 1>&6 | |
6107 | else | |
6108 | echo "$ac_t""no" 1>&6 | |
6109 | fi | |
6110 | ;; | |
6111 | esac | |
6112 | fi | |
6113 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
6114 | fi | |
6115 | ||
6116 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
b0a09421 | 6117 | echo "configure:6118: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
10f2d63a VZ |
6118 | |
6119 | ac_ext=c | |
6120 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6121 | ac_cpp='$CPP $CPPFLAGS' | |
6122 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6123 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6124 | cross_compiling=$ac_cv_prog_cc_cross | |
6125 | ||
6126 | cat > conftest.$ac_ext << EOF | |
6127 | ||
b0a09421 | 6128 | #line 6129 "configure" |
10f2d63a VZ |
6129 | #include "confdefs.h" |
6130 | ||
6131 | main(){return(0);} | |
6132 | EOF | |
b0a09421 | 6133 | if { (eval echo configure:6134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6134 | ac_cv_prog_cc_works=yes |
6135 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6136 | if (./conftest; exit) 2>/dev/null; then | |
6137 | ac_cv_prog_cc_cross=no | |
6138 | else | |
6139 | ac_cv_prog_cc_cross=yes | |
6140 | fi | |
6141 | else | |
6142 | echo "configure: failed program was:" >&5 | |
6143 | cat conftest.$ac_ext >&5 | |
6144 | ac_cv_prog_cc_works=no | |
6145 | fi | |
6146 | rm -fr conftest* | |
6147 | ac_ext=c | |
6148 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6149 | ac_cpp='$CPP $CPPFLAGS' | |
6150 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6151 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6152 | cross_compiling=$ac_cv_prog_cc_cross | |
6153 | ||
6154 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
6155 | if test $ac_cv_prog_cc_works = no; then | |
6156 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
6157 | fi | |
6158 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
b0a09421 | 6159 | echo "configure:6160: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
10f2d63a VZ |
6160 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
6161 | cross_compiling=$ac_cv_prog_cc_cross | |
6162 | ||
6163 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
b0a09421 | 6164 | echo "configure:6165: checking whether we are using GNU C" >&5 |
10f2d63a VZ |
6165 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
6166 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6167 | else | |
6168 | cat > conftest.c <<EOF | |
6169 | #ifdef __GNUC__ | |
6170 | yes; | |
6171 | #endif | |
6172 | EOF | |
b0a09421 | 6173 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
10f2d63a VZ |
6174 | ac_cv_prog_gcc=yes |
6175 | else | |
6176 | ac_cv_prog_gcc=no | |
6177 | fi | |
6178 | fi | |
6179 | ||
6180 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
6181 | ||
6182 | if test $ac_cv_prog_gcc = yes; then | |
6183 | GCC=yes | |
6184 | else | |
6185 | GCC= | |
6186 | fi | |
6187 | ||
6188 | ac_test_CFLAGS="${CFLAGS+set}" | |
6189 | ac_save_CFLAGS="$CFLAGS" | |
6190 | CFLAGS= | |
6191 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
b0a09421 | 6192 | echo "configure:6193: checking whether ${CC-cc} accepts -g" >&5 |
10f2d63a VZ |
6193 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
6194 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6195 | else | |
6196 | echo 'void f(){}' > conftest.c | |
6197 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
6198 | ac_cv_prog_cc_g=yes | |
6199 | else | |
6200 | ac_cv_prog_cc_g=no | |
6201 | fi | |
6202 | rm -f conftest* | |
6203 | ||
6204 | fi | |
6205 | ||
6206 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
6207 | if test "$ac_test_CFLAGS" = set; then | |
6208 | CFLAGS="$ac_save_CFLAGS" | |
6209 | elif test $ac_cv_prog_cc_g = yes; then | |
6210 | if test "$GCC" = yes; then | |
6211 | CFLAGS="-g -O2" | |
6212 | else | |
6213 | CFLAGS="-g" | |
6214 | fi | |
6215 | else | |
6216 | if test "$GCC" = yes; then | |
6217 | CFLAGS="-O2" | |
6218 | else | |
6219 | CFLAGS= | |
6220 | fi | |
6221 | fi | |
6222 | ||
6223 | ||
6224 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
6225 | ||
6226 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
b0a09421 | 6227 | echo "configure:6228: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
6228 | # On Suns, sometimes $CPP names a directory. |
6229 | if test -n "$CPP" && test -d "$CPP"; then | |
6230 | CPP= | |
6231 | fi | |
6232 | if test -z "$CPP"; then | |
6233 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
6234 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6235 | else | |
6236 | # This must be in double quotes, not single quotes, because CPP may get | |
6237 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
6238 | CPP="${CC-cc} -E" | |
6239 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6240 | # not just through cpp. | |
6241 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 6242 | #line 6243 "configure" |
10f2d63a VZ |
6243 | #include "confdefs.h" |
6244 | #include <assert.h> | |
6245 | Syntax Error | |
6246 | EOF | |
6247 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b0a09421 | 6248 | { (eval echo configure:6249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6249 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6250 | if test -z "$ac_err"; then | |
6251 | : | |
6252 | else | |
6253 | echo "$ac_err" >&5 | |
6254 | echo "configure: failed program was:" >&5 | |
6255 | cat conftest.$ac_ext >&5 | |
6256 | rm -rf conftest* | |
6257 | CPP="${CC-cc} -E -traditional-cpp" | |
6258 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 6259 | #line 6260 "configure" |
10f2d63a VZ |
6260 | #include "confdefs.h" |
6261 | #include <assert.h> | |
6262 | Syntax Error | |
6263 | EOF | |
6264 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b0a09421 | 6265 | { (eval echo configure:6266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6266 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6267 | if test -z "$ac_err"; then | |
6268 | : | |
6269 | else | |
6270 | echo "$ac_err" >&5 | |
6271 | echo "configure: failed program was:" >&5 | |
6272 | cat conftest.$ac_ext >&5 | |
6273 | rm -rf conftest* | |
6274 | CPP="${CC-cc} -nologo -E" | |
6275 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 6276 | #line 6277 "configure" |
10f2d63a VZ |
6277 | #include "confdefs.h" |
6278 | #include <assert.h> | |
6279 | Syntax Error | |
6280 | EOF | |
6281 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b0a09421 | 6282 | { (eval echo configure:6283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6283 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6284 | if test -z "$ac_err"; then | |
6285 | : | |
6286 | else | |
6287 | echo "$ac_err" >&5 | |
6288 | echo "configure: failed program was:" >&5 | |
6289 | cat conftest.$ac_ext >&5 | |
6290 | rm -rf conftest* | |
6291 | CPP=/lib/cpp | |
6292 | fi | |
6293 | rm -f conftest* | |
6294 | fi | |
6295 | rm -f conftest* | |
6296 | fi | |
6297 | rm -f conftest* | |
6298 | ac_cv_prog_CPP="$CPP" | |
6299 | fi | |
6300 | CPP="$ac_cv_prog_CPP" | |
6301 | else | |
6302 | ac_cv_prog_CPP="$CPP" | |
6303 | fi | |
6304 | echo "$ac_t""$CPP" 1>&6 | |
6305 | ||
6306 | ||
6307 | if test $ac_cv_prog_gcc = yes; then | |
6308 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
b0a09421 | 6309 | echo "configure:6310: checking whether ${CC-cc} needs -traditional" >&5 |
10f2d63a VZ |
6310 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
6311 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6312 | else | |
6313 | ac_pattern="Autoconf.*'x'" | |
6314 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 6315 | #line 6316 "configure" |
10f2d63a VZ |
6316 | #include "confdefs.h" |
6317 | #include <sgtty.h> | |
6318 | Autoconf TIOCGETP | |
6319 | EOF | |
6320 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6321 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6322 | rm -rf conftest* | |
6323 | ac_cv_prog_gcc_traditional=yes | |
6324 | else | |
6325 | rm -rf conftest* | |
6326 | ac_cv_prog_gcc_traditional=no | |
6327 | fi | |
6328 | rm -f conftest* | |
6329 | ||
6330 | ||
6331 | if test $ac_cv_prog_gcc_traditional = no; then | |
6332 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 6333 | #line 6334 "configure" |
10f2d63a VZ |
6334 | #include "confdefs.h" |
6335 | #include <termio.h> | |
6336 | Autoconf TCGETA | |
6337 | EOF | |
6338 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6339 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6340 | rm -rf conftest* | |
6341 | ac_cv_prog_gcc_traditional=yes | |
6342 | fi | |
6343 | rm -f conftest* | |
6344 | ||
6345 | fi | |
6346 | fi | |
6347 | ||
6348 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
6349 | if test $ac_cv_prog_gcc_traditional = yes; then | |
6350 | CC="$CC -traditional" | |
6351 | fi | |
6352 | fi | |
6353 | ||
6354 | ||
6355 | ||
6356 | ac_ext=C | |
6357 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6358 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6359 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6360 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6361 | cross_compiling=$ac_cv_prog_cxx_cross | |
6362 | ||
6363 | ||
6364 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
6365 | do | |
6366 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6367 | set dummy $ac_prog; ac_word=$2 | |
6368 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b0a09421 | 6369 | echo "configure:6370: checking for $ac_word" >&5 |
10f2d63a VZ |
6370 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
6371 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6372 | else | |
6373 | if test -n "$CXX"; then | |
6374 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
6375 | else | |
6376 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6377 | ac_dummy="$PATH" | |
6378 | for ac_dir in $ac_dummy; do | |
6379 | test -z "$ac_dir" && ac_dir=. | |
6380 | if test -f $ac_dir/$ac_word; then | |
6381 | ac_cv_prog_CXX="$ac_prog" | |
6382 | break | |
6383 | fi | |
6384 | done | |
6385 | IFS="$ac_save_ifs" | |
6386 | fi | |
6387 | fi | |
6388 | CXX="$ac_cv_prog_CXX" | |
6389 | if test -n "$CXX"; then | |
6390 | echo "$ac_t""$CXX" 1>&6 | |
6391 | else | |
6392 | echo "$ac_t""no" 1>&6 | |
6393 | fi | |
6394 | ||
6395 | test -n "$CXX" && break | |
6396 | done | |
6397 | test -n "$CXX" || CXX="gcc" | |
6398 | ||
6399 | ||
6400 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
b0a09421 | 6401 | echo "configure:6402: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a VZ |
6402 | |
6403 | ac_ext=C | |
6404 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6405 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6406 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6407 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6408 | cross_compiling=$ac_cv_prog_cxx_cross | |
6409 | ||
6410 | cat > conftest.$ac_ext << EOF | |
6411 | ||
b0a09421 | 6412 | #line 6413 "configure" |
10f2d63a VZ |
6413 | #include "confdefs.h" |
6414 | ||
6415 | int main(){return(0);} | |
6416 | EOF | |
b0a09421 | 6417 | if { (eval echo configure:6418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6418 | ac_cv_prog_cxx_works=yes |
6419 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6420 | if (./conftest; exit) 2>/dev/null; then | |
6421 | ac_cv_prog_cxx_cross=no | |
6422 | else | |
6423 | ac_cv_prog_cxx_cross=yes | |
6424 | fi | |
6425 | else | |
6426 | echo "configure: failed program was:" >&5 | |
6427 | cat conftest.$ac_ext >&5 | |
6428 | ac_cv_prog_cxx_works=no | |
6429 | fi | |
6430 | rm -fr conftest* | |
6431 | ac_ext=C | |
6432 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6433 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6434 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6435 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6436 | cross_compiling=$ac_cv_prog_cxx_cross | |
6437 | ||
6438 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
6439 | if test $ac_cv_prog_cxx_works = no; then | |
6440 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
6441 | fi | |
6442 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
b0a09421 | 6443 | echo "configure:6444: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
10f2d63a VZ |
6444 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
6445 | cross_compiling=$ac_cv_prog_cxx_cross | |
6446 | ||
6447 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
b0a09421 | 6448 | echo "configure:6449: checking whether we are using GNU C++" >&5 |
10f2d63a VZ |
6449 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
6450 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6451 | else | |
6452 | cat > conftest.C <<EOF | |
6453 | #ifdef __GNUC__ | |
6454 | yes; | |
6455 | #endif | |
6456 | EOF | |
b0a09421 | 6457 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
10f2d63a VZ |
6458 | ac_cv_prog_gxx=yes |
6459 | else | |
6460 | ac_cv_prog_gxx=no | |
6461 | fi | |
6462 | fi | |
6463 | ||
6464 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
6465 | ||
6466 | if test $ac_cv_prog_gxx = yes; then | |
6467 | GXX=yes | |
6468 | else | |
6469 | GXX= | |
6470 | fi | |
6471 | ||
6472 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
6473 | ac_save_CXXFLAGS="$CXXFLAGS" | |
6474 | CXXFLAGS= | |
6475 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
b0a09421 | 6476 | echo "configure:6477: checking whether ${CXX-g++} accepts -g" >&5 |
10f2d63a VZ |
6477 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
6478 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6479 | else | |
6480 | echo 'void f(){}' > conftest.cc | |
6481 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
6482 | ac_cv_prog_cxx_g=yes | |
6483 | else | |
6484 | ac_cv_prog_cxx_g=no | |
6485 | fi | |
6486 | rm -f conftest* | |
6487 | ||
6488 | fi | |
6489 | ||
6490 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
6491 | if test "$ac_test_CXXFLAGS" = set; then | |
6492 | CXXFLAGS="$ac_save_CXXFLAGS" | |
6493 | elif test $ac_cv_prog_cxx_g = yes; then | |
6494 | if test "$GXX" = yes; then | |
6495 | CXXFLAGS="-g -O2" | |
6496 | else | |
6497 | CXXFLAGS="-g" | |
6498 | fi | |
6499 | else | |
6500 | if test "$GXX" = yes; then | |
6501 | CXXFLAGS="-O2" | |
6502 | else | |
6503 | CXXFLAGS= | |
6504 | fi | |
6505 | fi | |
6506 | ||
6507 | ||
6508 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
b0a09421 | 6509 | echo "configure:6510: checking how to run the C++ preprocessor" >&5 |
10f2d63a VZ |
6510 | if test -z "$CXXCPP"; then |
6511 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
6512 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6513 | else | |
6514 | ac_ext=C | |
6515 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6516 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6517 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6518 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6519 | cross_compiling=$ac_cv_prog_cxx_cross | |
6520 | CXXCPP="${CXX-g++} -E" | |
6521 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 6522 | #line 6523 "configure" |
10f2d63a VZ |
6523 | #include "confdefs.h" |
6524 | #include <stdlib.h> | |
6525 | EOF | |
6526 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b0a09421 | 6527 | { (eval echo configure:6528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6528 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6529 | if test -z "$ac_err"; then | |
6530 | : | |
6531 | else | |
6532 | echo "$ac_err" >&5 | |
6533 | echo "configure: failed program was:" >&5 | |
6534 | cat conftest.$ac_ext >&5 | |
6535 | rm -rf conftest* | |
6536 | CXXCPP=/lib/cpp | |
6537 | fi | |
6538 | rm -f conftest* | |
6539 | ac_cv_prog_CXXCPP="$CXXCPP" | |
6540 | ac_ext=C | |
6541 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6542 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6543 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6544 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6545 | cross_compiling=$ac_cv_prog_cxx_cross | |
6546 | fi | |
6547 | fi | |
6548 | CXXCPP="$ac_cv_prog_CXXCPP" | |
6549 | echo "$ac_t""$CXXCPP" 1>&6 | |
6550 | ||
6551 | ||
6552 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
6553 | ||
6554 | ac_ext=c | |
6555 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6556 | ac_cpp='$CPP $CPPFLAGS' | |
6557 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6558 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6559 | cross_compiling=$ac_cv_prog_cc_cross | |
6560 | ||
6561 | ||
6562 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6563 | set dummy ranlib; ac_word=$2 | |
6564 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b0a09421 | 6565 | echo "configure:6566: checking for $ac_word" >&5 |
10f2d63a VZ |
6566 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
6567 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6568 | else | |
6569 | if test -n "$RANLIB"; then | |
6570 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6571 | else | |
6572 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6573 | ac_dummy="$PATH" | |
6574 | for ac_dir in $ac_dummy; do | |
6575 | test -z "$ac_dir" && ac_dir=. | |
6576 | if test -f $ac_dir/$ac_word; then | |
6577 | ac_cv_prog_RANLIB="ranlib" | |
6578 | break | |
6579 | fi | |
6580 | done | |
6581 | IFS="$ac_save_ifs" | |
6582 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
6583 | fi | |
6584 | fi | |
6585 | RANLIB="$ac_cv_prog_RANLIB" | |
6586 | if test -n "$RANLIB"; then | |
6587 | echo "$ac_t""$RANLIB" 1>&6 | |
6588 | else | |
6589 | echo "$ac_t""no" 1>&6 | |
6590 | fi | |
6591 | ||
6592 | ||
6593 | # Extract the first word of "ar", so it can be a program name with args. | |
6594 | set dummy ar; ac_word=$2 | |
6595 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b0a09421 | 6596 | echo "configure:6597: checking for $ac_word" >&5 |
10f2d63a VZ |
6597 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
6598 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6599 | else | |
6600 | if test -n "$AR"; then | |
6601 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6602 | else | |
6603 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6604 | ac_dummy="$PATH" | |
6605 | for ac_dir in $ac_dummy; do | |
6606 | test -z "$ac_dir" && ac_dir=. | |
6607 | if test -f $ac_dir/$ac_word; then | |
6608 | ac_cv_prog_AR="ar" | |
6609 | break | |
6610 | fi | |
6611 | done | |
6612 | IFS="$ac_save_ifs" | |
6613 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
6614 | fi | |
6615 | fi | |
6616 | AR="$ac_cv_prog_AR" | |
6617 | if test -n "$AR"; then | |
6618 | echo "$ac_t""$AR" 1>&6 | |
6619 | else | |
6620 | echo "$ac_t""no" 1>&6 | |
6621 | fi | |
6622 | ||
6623 | ||
6624 | # Find a good install program. We prefer a C program (faster), | |
6625 | # so one script is as good as another. But avoid the broken or | |
6626 | # incompatible versions: | |
6627 | # SysV /etc/install, /usr/sbin/install | |
6628 | # SunOS /usr/etc/install | |
6629 | # IRIX /sbin/install | |
6630 | # AIX /bin/install | |
6631 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6632 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6633 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6634 | # ./install, which can be erroneously created by make from ./install.sh. | |
6635 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
b0a09421 | 6636 | echo "configure:6637: checking for a BSD compatible install" >&5 |
10f2d63a VZ |
6637 | if test -z "$INSTALL"; then |
6638 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
6639 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6640 | else | |
6641 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
6642 | for ac_dir in $PATH; do | |
6643 | # Account for people who put trailing slashes in PATH elements. | |
6644 | case "$ac_dir/" in | |
6645 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
6646 | *) | |
6647 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
6648 | # Don't use installbsd from OSF since it installs stuff as root | |
6649 | # by default. | |
6650 | for ac_prog in ginstall scoinst install; do | |
6651 | if test -f $ac_dir/$ac_prog; then | |
6652 | if test $ac_prog = install && | |
6653 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
6654 | # AIX install. It has an incompatible calling convention. | |
6655 | : | |
6656 | else | |
6657 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
6658 | break 2 | |
6659 | fi | |
6660 | fi | |
6661 | done | |
6662 | ;; | |
6663 | esac | |
6664 | done | |
6665 | IFS="$ac_save_IFS" | |
6666 | ||
6667 | fi | |
6668 | if test "${ac_cv_path_install+set}" = set; then | |
6669 | INSTALL="$ac_cv_path_install" | |
6670 | else | |
6671 | # As a last resort, use the slow shell script. We don't cache a | |
6672 | # path for INSTALL within a source directory, because that will | |
6673 | # break other packages using the cache if that directory is | |
6674 | # removed, or if the path is relative. | |
6675 | INSTALL="$ac_install_sh" | |
6676 | fi | |
6677 | fi | |
6678 | echo "$ac_t""$INSTALL" 1>&6 | |
6679 | ||
6680 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
6681 | # It thinks the first close brace ends the variable substitution. | |
6682 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6683 | ||
6684 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
6685 | ||
6686 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
6687 | ||
6688 | ||
6689 | # Extract the first word of "strip", so it can be a program name with args. | |
6690 | set dummy strip; ac_word=$2 | |
6691 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b0a09421 | 6692 | echo "configure:6693: checking for $ac_word" >&5 |
10f2d63a VZ |
6693 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
6694 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6695 | else | |
6696 | if test -n "$STRIP"; then | |
6697 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6698 | else | |
6699 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6700 | ac_dummy="$PATH" | |
6701 | for ac_dir in $ac_dummy; do | |
6702 | test -z "$ac_dir" && ac_dir=. | |
6703 | if test -f $ac_dir/$ac_word; then | |
6704 | ac_cv_prog_STRIP="strip" | |
6705 | break | |
6706 | fi | |
6707 | done | |
6708 | IFS="$ac_save_ifs" | |
6709 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
6710 | fi | |
6711 | fi | |
6712 | STRIP="$ac_cv_prog_STRIP" | |
6713 | if test -n "$STRIP"; then | |
6714 | echo "$ac_t""$STRIP" 1>&6 | |
6715 | else | |
6716 | echo "$ac_t""no" 1>&6 | |
6717 | fi | |
6718 | ||
6719 | ||
6720 | echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6 | |
b0a09421 | 6721 | echo "configure:6722: checking "make for VPATH support"" >&5 |
10f2d63a VZ |
6722 | cat - << EOF > confMake |
6723 | check : file | |
6724 | cp \$? \$@ | |
6725 | cp \$? final_file | |
6726 | EOF | |
6727 | ||
6728 | if test ! -d sub ; then | |
6729 | mkdir sub | |
6730 | fi | |
6731 | echo dummy > sub/file | |
6732 | ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null | |
6733 | RESULT=$? | |
6734 | rm -f sub/file check final_file confMake | |
6735 | rmdir sub | |
6736 | if test "$RESULT" = 0; then | |
6737 | echo "$ac_t""yes" 1>&6 | |
6738 | else | |
6739 | echo "$ac_t""no" 1>&6 | |
6740 | { echo "configure: error: You need a make-utility that is able to use the variable | |
6741 | VPATH correctly. | |
6742 | If your version of make does not support VPATH correctly" 1>&2; exit 1; } | |
6743 | fi | |
6744 | ||
6745 | for ac_prog in 'bison -y' byacc | |
6746 | do | |
6747 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6748 | set dummy $ac_prog; ac_word=$2 | |
6749 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b0a09421 | 6750 | echo "configure:6751: checking for $ac_word" >&5 |
10f2d63a VZ |
6751 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
6752 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6753 | else | |
6754 | if test -n "$YACC"; then | |
6755 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
6756 | else | |
6757 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6758 | ac_dummy="$PATH" | |
6759 | for ac_dir in $ac_dummy; do | |
6760 | test -z "$ac_dir" && ac_dir=. | |
6761 | if test -f $ac_dir/$ac_word; then | |
6762 | ac_cv_prog_YACC="$ac_prog" | |
6763 | break | |
6764 | fi | |
6765 | done | |
6766 | IFS="$ac_save_ifs" | |
6767 | fi | |
6768 | fi | |
6769 | YACC="$ac_cv_prog_YACC" | |
6770 | if test -n "$YACC"; then | |
6771 | echo "$ac_t""$YACC" 1>&6 | |
6772 | else | |
6773 | echo "$ac_t""no" 1>&6 | |
6774 | fi | |
6775 | ||
6776 | test -n "$YACC" && break | |
6777 | done | |
6778 | test -n "$YACC" || YACC="yacc" | |
6779 | ||
6780 | ||
6781 | # Extract the first word of "flex", so it can be a program name with args. | |
6782 | set dummy flex; ac_word=$2 | |
6783 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b0a09421 | 6784 | echo "configure:6785: checking for $ac_word" >&5 |
10f2d63a VZ |
6785 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
6786 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6787 | else | |
6788 | if test -n "$LEX"; then | |
6789 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
6790 | else | |
6791 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6792 | ac_dummy="$PATH" | |
6793 | for ac_dir in $ac_dummy; do | |
6794 | test -z "$ac_dir" && ac_dir=. | |
6795 | if test -f $ac_dir/$ac_word; then | |
6796 | ac_cv_prog_LEX="flex" | |
6797 | break | |
6798 | fi | |
6799 | done | |
6800 | IFS="$ac_save_ifs" | |
6801 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
6802 | fi | |
6803 | fi | |
6804 | LEX="$ac_cv_prog_LEX" | |
6805 | if test -n "$LEX"; then | |
6806 | echo "$ac_t""$LEX" 1>&6 | |
6807 | else | |
6808 | echo "$ac_t""no" 1>&6 | |
6809 | fi | |
6810 | ||
6811 | if test -z "$LEXLIB" | |
6812 | then | |
6813 | case "$LEX" in | |
6814 | flex*) ac_lib=fl ;; | |
6815 | *) ac_lib=l ;; | |
6816 | esac | |
6817 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
b0a09421 | 6818 | echo "configure:6819: checking for yywrap in -l$ac_lib" >&5 |
10f2d63a VZ |
6819 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
6820 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6821 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6822 | else | |
6823 | ac_save_LIBS="$LIBS" | |
6824 | LIBS="-l$ac_lib $LIBS" | |
6825 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 6826 | #line 6827 "configure" |
10f2d63a VZ |
6827 | #include "confdefs.h" |
6828 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6829 | /* We use char because int might match the return type of a gcc2 | |
6830 | builtin and then its argument prototype would still apply. */ | |
6831 | char yywrap(); | |
6832 | ||
6833 | int main() { | |
6834 | yywrap() | |
6835 | ; return 0; } | |
6836 | EOF | |
b0a09421 | 6837 | if { (eval echo configure:6838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6838 | rm -rf conftest* |
6839 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6840 | else | |
6841 | echo "configure: failed program was:" >&5 | |
6842 | cat conftest.$ac_ext >&5 | |
6843 | rm -rf conftest* | |
6844 | eval "ac_cv_lib_$ac_lib_var=no" | |
6845 | fi | |
6846 | rm -f conftest* | |
6847 | LIBS="$ac_save_LIBS" | |
6848 | ||
6849 | fi | |
6850 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6851 | echo "$ac_t""yes" 1>&6 | |
6852 | LEXLIB="-l$ac_lib" | |
6853 | else | |
6854 | echo "$ac_t""no" 1>&6 | |
6855 | fi | |
6856 | ||
6857 | fi | |
6858 | ||
6859 | ||
6860 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
b0a09421 | 6861 | echo "configure:6862: checking whether ln -s works" >&5 |
10f2d63a VZ |
6862 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
6863 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6864 | else | |
6865 | rm -f conftestdata | |
6866 | if ln -s X conftestdata 2>/dev/null | |
6867 | then | |
6868 | rm -f conftestdata | |
6869 | ac_cv_prog_LN_S="ln -s" | |
6870 | else | |
6871 | ac_cv_prog_LN_S=ln | |
6872 | fi | |
6873 | fi | |
6874 | LN_S="$ac_cv_prog_LN_S" | |
6875 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
6876 | echo "$ac_t""yes" 1>&6 | |
6877 | else | |
6878 | echo "$ac_t""no" 1>&6 | |
6879 | fi | |
6880 | ||
6881 | ||
6882 | ||
6883 | SEARCH_INCLUDE="\ | |
6884 | /usr/local/include \ | |
6885 | \ | |
6886 | /usr/Motif-1.2/include \ | |
6887 | /usr/Motif-2.1/include \ | |
6888 | \ | |
6889 | /usr/include/Motif1.2 \ | |
6890 | /opt/xpm/include/X11 \ | |
6891 | /opt/GBxpm/include/ \ | |
6892 | /opt/GBxpm/X11/include/ \ | |
6893 | \ | |
6894 | /usr/Motif1.2/include \ | |
6895 | /usr/dt/include \ | |
afc31813 VZ |
6896 | /usr/openwin/include \ |
6897 | \ | |
10f2d63a VZ |
6898 | /usr/include/Xm \ |
6899 | \ | |
6900 | /usr/X11R6/include \ | |
afc31813 | 6901 | /usr/X11R6.4/include \ |
10f2d63a VZ |
6902 | /usr/X11R5/include \ |
6903 | /usr/X11R4/include \ | |
6904 | \ | |
10f2d63a VZ |
6905 | /usr/include/X11R6 \ |
6906 | /usr/include/X11R5 \ | |
6907 | /usr/include/X11R4 \ | |
6908 | \ | |
6909 | /usr/local/X11R6/include \ | |
6910 | /usr/local/X11R5/include \ | |
6911 | /usr/local/X11R4/include \ | |
6912 | \ | |
6913 | /usr/local/include/X11R6 \ | |
6914 | /usr/local/include/X11R5 \ | |
6915 | /usr/local/include/X11R4 \ | |
6916 | \ | |
6917 | /usr/X11/include \ | |
6918 | /usr/include/X11 \ | |
6919 | /usr/local/X11/include \ | |
6920 | /usr/local/include/X11 \ | |
6921 | \ | |
6922 | /usr/X386/include \ | |
6923 | /usr/x386/include \ | |
6924 | /usr/XFree86/include/X11 \ | |
6925 | \ | |
cf27ef00 | 6926 | X:/XFree86/include \ |
ec14dd32 VZ |
6927 | X:/XFree86/include/X11 \ |
6928 | \ | |
10f2d63a VZ |
6929 | /usr/include/gtk \ |
6930 | /usr/local/include/gtk \ | |
6931 | /usr/include/glib \ | |
6932 | /usr/local/include/glib \ | |
6933 | \ | |
6934 | /usr/include/qt \ | |
6935 | /usr/local/include/qt \ | |
6936 | \ | |
6937 | /usr/include/windows \ | |
6938 | /usr/include/wine \ | |
6939 | /usr/local/include/wine \ | |
6940 | \ | |
6941 | /usr/unsupported/include \ | |
6942 | /usr/athena/include \ | |
6943 | /usr/local/x11r5/include \ | |
6944 | /usr/lpp/Xamples/include \ | |
6945 | \ | |
10f2d63a | 6946 | /usr/openwin/share/include \ |
928b5c08 VZ |
6947 | \ |
6948 | /usr/include" | |
10f2d63a VZ |
6949 | |
6950 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
6951 | ||
6952 | ||
6953 | cat > confcache <<\EOF | |
6954 | # This file is a shell script that caches the results of configure | |
6955 | # tests run on this system so they can be shared between configure | |
6956 | # scripts and configure runs. It is not useful on other systems. | |
6957 | # If it contains results you don't want to keep, you may remove or edit it. | |
6958 | # | |
6959 | # By default, configure uses ./config.cache as the cache file, | |
6960 | # creating it if it does not exist already. You can give configure | |
6961 | # the --cache-file=FILE option to use a different cache file; that is | |
6962 | # what configure does when it calls configure scripts in | |
6963 | # subdirectories, so they share the cache. | |
6964 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6965 | # config.status only pays attention to the cache file if you give it the | |
6966 | # --recheck option to rerun configure. | |
6967 | # | |
6968 | EOF | |
6969 | # The following way of writing the cache mishandles newlines in values, | |
6970 | # but we know of no workaround that is simple, portable, and efficient. | |
6971 | # So, don't put newlines in cache variables' values. | |
6972 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6973 | # and sets the high bit in the cache file unless we assign to the vars. | |
6974 | (set) 2>&1 | | |
6975 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6976 | *ac_space=\ *) | |
6977 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6978 | # turns \\\\ into \\, and sed turns \\ into \). | |
6979 | sed -n \ | |
6980 | -e "s/'/'\\\\''/g" \ | |
6981 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6982 | ;; | |
6983 | *) | |
6984 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6985 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6986 | ;; | |
6987 | esac >> confcache | |
6988 | if cmp -s $cache_file confcache; then | |
6989 | : | |
6990 | else | |
6991 | if test -w $cache_file; then | |
6992 | echo "updating cache $cache_file" | |
6993 | cat confcache > $cache_file | |
6994 | else | |
6995 | echo "not updating unwritable cache $cache_file" | |
6996 | fi | |
6997 | fi | |
6998 | rm -f confcache | |
6999 | ||
7000 | ||
7001 | ||
dad6c0ea VZ |
7002 | AFMINSTALL= |
7003 | ||
10f2d63a VZ |
7004 | if test "$wxUSE_GUI" = "yes"; then |
7005 | ||
dad6c0ea VZ |
7006 | USE_GUI=1 |
7007 | ||
10f2d63a VZ |
7008 | TOOLKIT= |
7009 | TOOLKIT_INCLUDE= | |
7010 | ||
7011 | GUIOBJS= | |
7012 | COMMONOBJS= | |
7013 | GENERICOBJS= | |
7014 | ||
7015 | GUI_TK_LIBRARY= | |
7016 | GUI_TK_LINK= | |
7017 | ||
7018 | WXGTK12= | |
13111b2a | 7019 | WXGTK13= |
10f2d63a VZ |
7020 | |
7021 | WXWINE= | |
7022 | ||
10f2d63a VZ |
7023 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
7024 | if test "$cross_compiling" = "yes" ; then | |
e59890c3 | 7025 | echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2 |
10f2d63a VZ |
7026 | else |
7027 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 | |
b0a09421 | 7028 | echo "configure:7029: checking for Windows headers" >&5 |
10f2d63a VZ |
7029 | |
7030 | ac_find_includes= | |
7031 | for ac_dir in $SEARCH_INCLUDE; | |
7032 | do | |
7033 | if test -f "$ac_dir/windows.h"; then | |
7034 | ac_find_includes=$ac_dir | |
7035 | break | |
7036 | fi | |
7037 | done | |
7038 | ||
7039 | if test "$ac_find_includes" != "" ; then | |
7040 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
7041 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
7042 | else | |
7043 | echo "$ac_t""no" 1>&6 | |
7044 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
7045 | fi | |
7046 | fi | |
7047 | ||
7048 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" | |
7049 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
7050 | ||
32832908 VZ |
7051 | if test "$wxUSE_ODBC" = "yes" ; then |
7052 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
7053 | fi | |
7054 | ||
10f2d63a VZ |
7055 | if test "$wxUSE_MINGW" = 1; then |
7056 | LDFLAGS="$LDFLAGS -mwindows" | |
7057 | fi | |
7058 | ||
7059 | TOOLKIT=MSW | |
7060 | ||
7061 | GUIOBJS="\$(MSW_GUIOBJS)" | |
7062 | GUIHEADERS="\$(MSW_HEADERS)" | |
7063 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
7064 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
7065 | UNIXOBJS= | |
7066 | GUIDIST=MSW_DIST | |
32832908 VZ |
7067 | |
7068 | RCINCSWITCH="--include-dir" | |
7069 | RCDEFSWITCH="--define" | |
7070 | RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\"" | |
7071 | RCINPUTSWITCH="-i" | |
7072 | RCOUTPUTSWITCH="-o" | |
7073 | RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__" | |
7074 | ||
7075 | RESPROGRAM="\$(RES_PROGRAM)" | |
7076 | ||
10f2d63a VZ |
7077 | fi |
7078 | ||
7079 | if test "$wxUSE_GTK" = 1; then | |
7080 | ||
7081 | if test x$gtk_config_exec_prefix != x ; then | |
7082 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
7083 | if test x${GTK_CONFIG+set} != xset ; then | |
7084 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
7085 | fi | |
7086 | fi | |
7087 | if test x$gtk_config_prefix != x ; then | |
7088 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
7089 | if test x${GTK_CONFIG+set} != xset ; then | |
7090 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
7091 | fi | |
7092 | fi | |
7093 | ||
7094 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
7095 | set dummy gtk-config; ac_word=$2 | |
7096 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b0a09421 | 7097 | echo "configure:7098: checking for $ac_word" >&5 |
10f2d63a VZ |
7098 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
7099 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7100 | else | |
7101 | case "$GTK_CONFIG" in | |
7102 | /*) | |
7103 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
7104 | ;; | |
7105 | ?:/*) | |
7106 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
7107 | ;; | |
7108 | *) | |
7109 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7110 | ac_dummy="$PATH" | |
7111 | for ac_dir in $ac_dummy; do | |
7112 | test -z "$ac_dir" && ac_dir=. | |
7113 | if test -f $ac_dir/$ac_word; then | |
7114 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
7115 | break | |
7116 | fi | |
7117 | done | |
7118 | IFS="$ac_save_ifs" | |
7119 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
7120 | ;; | |
7121 | esac | |
7122 | fi | |
7123 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
7124 | if test -n "$GTK_CONFIG"; then | |
7125 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
7126 | else | |
7127 | echo "$ac_t""no" 1>&6 | |
7128 | fi | |
7129 | ||
04165bec | 7130 | min_gtk_version=1.2.3 |
10f2d63a | 7131 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
b0a09421 | 7132 | echo "configure:7133: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
7133 | no_gtk="" |
7134 | if test "$GTK_CONFIG" != "no" ; then | |
7135 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 7136 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
7137 | ac_save_CFLAGS="$CFLAGS" |
7138 | ac_save_LIBS="$LIBS" | |
7139 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7140 | LIBS="$LIBS $GTK_LIBS" | |
7141 | if test "$cross_compiling" = yes; then | |
7142 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
7143 | else | |
7144 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 7145 | #line 7146 "configure" |
10f2d63a VZ |
7146 | #include "confdefs.h" |
7147 | ||
7148 | #include <gtk/gtk.h> | |
f49f2b0c | 7149 | #include <gtk/gtkfeatures.h> |
10f2d63a | 7150 | #include <stdio.h> |
32832908 | 7151 | #include <stdlib.h> |
10f2d63a VZ |
7152 | |
7153 | int | |
7154 | main () | |
7155 | { | |
7156 | int major, minor, micro; | |
7157 | ||
7158 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
7159 | printf("%s, bad version string\n", "$min_gtk_version"); | |
7160 | exit(1); | |
7161 | } | |
7162 | ||
f49f2b0c RR |
7163 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
7164 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
7165 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
7166 | printf("Headers vs. library version mismatch!\n"); | |
7167 | exit(1); | |
7168 | } | |
7169 | ||
10f2d63a VZ |
7170 | if (gtk_minor_version == 1) return FALSE; |
7171 | ||
7172 | return !((gtk_major_version > major) || | |
7173 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
7174 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
7175 | } | |
7176 | ||
7177 | EOF | |
b0a09421 | 7178 | if { (eval echo configure:7179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
7179 | then |
7180 | : | |
7181 | else | |
7182 | echo "configure: failed program was:" >&5 | |
7183 | cat conftest.$ac_ext >&5 | |
7184 | rm -fr conftest* | |
7185 | no_gtk=yes | |
7186 | fi | |
7187 | rm -fr conftest* | |
7188 | fi | |
7189 | ||
7190 | CFLAGS="$ac_save_CFLAGS" | |
7191 | LIBS="$ac_save_LIBS" | |
7192 | else | |
7193 | no_gtk=yes | |
7194 | fi | |
7195 | if test "x$no_gtk" = x ; then | |
7196 | echo "$ac_t""yes" 1>&6 | |
7197 | WXGTK12=1 | |
7198 | else | |
7199 | echo "$ac_t""no" 1>&6 | |
7200 | GTK_CFLAGS="" | |
7201 | GTK_LIBS="" | |
7e99ad86 | 7202 | : |
10f2d63a VZ |
7203 | fi |
7204 | ||
7205 | ||
7206 | ||
7207 | ||
7e99ad86 VZ |
7208 | if test "$WXGTK12" != 1; then |
7209 | { echo "configure: error: | |
7210 | Please check that gtk-config is in path, the directory | |
7211 | where GTK+ libraries are installed (returned by | |
7212 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
7213 | equivalent variable and GTK+ is version 1.2.3 or above. | |
7214 | " 1>&2; exit 1; } | |
7215 | fi | |
7216 | ||
7217 | ||
10f2d63a | 7218 | TOOLKIT_INCLUDE="$GTK_CFLAGS" |
2224580a VZ |
7219 | |
7220 | ||
7221 | GUI_TK_LIBRARY="$GTK_LIBS" | |
7222 | ||
10f2d63a VZ |
7223 | TOOLKIT=GTK |
7224 | ||
dad6c0ea VZ |
7225 | AFMINSTALL=afminstall |
7226 | ||
10f2d63a VZ |
7227 | GUIOBJS="\$(GTK_GUIOBJS)" |
7228 | GUIHEADERS="\$(GTK_HEADERS)" | |
7229 | COMMONOBJS="\$(GTK_COMMONOBJS)" | |
7230 | GENERICOBJS="\$(GTK_GENERICOBJS)" | |
7231 | GUIDEPS="\$(GTK_GUIDEPS)" | |
7232 | COMMONDEPS="\$(GTK_COMMONDEPS)" | |
7233 | GENERICDEPS="\$(GTK_GENERICDEPS)" | |
7234 | UNIXOBJS="\$(UNIX_OBJS)" | |
d9d8273d | 7235 | UNIXDEPS="\$(UNIX_DEPS)" |
10f2d63a | 7236 | GUIDIST=GTK_DIST |
7ec2881a | 7237 | |
2224580a | 7238 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
b0a09421 | 7239 | echo "configure:7240: checking for gdk_im_open in -lgdk" >&5 |
7ec2881a RR |
7240 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
7241 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7242 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7243 | else | |
7244 | ac_save_LIBS="$LIBS" | |
7245 | LIBS="-lgdk $LIBS" | |
7246 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 7247 | #line 7248 "configure" |
7ec2881a RR |
7248 | #include "confdefs.h" |
7249 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7250 | /* We use char because int might match the return type of a gcc2 | |
7251 | builtin and then its argument prototype would still apply. */ | |
7252 | char gdk_im_open(); | |
7253 | ||
7254 | int main() { | |
7255 | gdk_im_open() | |
7256 | ; return 0; } | |
7257 | EOF | |
b0a09421 | 7258 | if { (eval echo configure:7259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7ec2881a RR |
7259 | rm -rf conftest* |
7260 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7261 | else | |
7262 | echo "configure: failed program was:" >&5 | |
7263 | cat conftest.$ac_ext >&5 | |
7264 | rm -rf conftest* | |
7265 | eval "ac_cv_lib_$ac_lib_var=no" | |
7266 | fi | |
7267 | rm -f conftest* | |
7268 | LIBS="$ac_save_LIBS" | |
7269 | ||
7270 | fi | |
7271 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7272 | echo "$ac_t""yes" 1>&6 | |
7273 | cat >> confdefs.h <<\EOF | |
7274 | #define HAVE_XIM 1 | |
7275 | EOF | |
7276 | ||
7277 | else | |
7278 | echo "$ac_t""no" 1>&6 | |
7279 | fi | |
7280 | ||
10f2d63a VZ |
7281 | fi |
7282 | ||
7283 | if test "$wxUSE_WINE" = 1; then | |
7284 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
b0a09421 | 7285 | echo "configure:7286: checking for WINE includes" >&5 |
10f2d63a VZ |
7286 | |
7287 | ac_find_includes= | |
7288 | for ac_dir in $SEARCH_INCLUDE; | |
7289 | do | |
7290 | if test -f "$ac_dir/windows.h"; then | |
7291 | ac_find_includes=$ac_dir | |
7292 | break | |
7293 | fi | |
7294 | done | |
7295 | ||
7296 | if test "$ac_find_includes" != "" ; then | |
7297 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
7298 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
7299 | else | |
7300 | echo "$ac_t""no" 1>&6 | |
7301 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
7302 | fi | |
7303 | ||
7304 | XPM_LINK="" | |
7305 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
b0a09421 | 7306 | echo "configure:7307: checking for Xpm library" >&5 |
10f2d63a VZ |
7307 | |
7308 | ac_find_libraries= | |
7309 | for ac_dir in $SEARCH_LIB; | |
7310 | do | |
7311 | for ac_extension in a so sl; do | |
7312 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
7313 | ac_find_libraries=$ac_dir | |
7314 | break 2 | |
7315 | fi | |
7316 | done | |
7317 | done | |
7318 | ||
7319 | if test "$ac_find_libraries" != "" ; then | |
7320 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
7321 | XPM_LINK="-lXpm" | |
7322 | cat >> confdefs.h <<\EOF | |
7323 | #define wxHAVE_LIB_XPM 1 | |
7324 | EOF | |
7325 | ||
7326 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7327 | else | |
7328 | echo "$ac_t""no" 1>&6 | |
7329 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
7330 | fi | |
7331 | ||
7332 | MESA_LINK="" | |
7333 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
b0a09421 | 7334 | echo "configure:7335: checking for Mesa library" >&5 |
10f2d63a VZ |
7335 | |
7336 | ac_find_libraries= | |
7337 | for ac_dir in $SEARCH_LIB; | |
7338 | do | |
7339 | for ac_extension in a so sl; do | |
7340 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
7341 | ac_find_libraries=$ac_dir | |
7342 | break 2 | |
7343 | fi | |
7344 | done | |
7345 | done | |
7346 | ||
7347 | if test "$ac_find_libraries" != "" ; then | |
7348 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
7349 | MESA_LINK="-lMesaGL" | |
7350 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7351 | else | |
7352 | { echo "configure: error: no" 1>&2; exit 1; } | |
7353 | fi | |
7354 | ||
7355 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm" | |
7356 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
7357 | WXWINE=1 | |
7358 | TOOLKIT=MSW | |
7359 | ||
7360 | GUIHEADERS="\$(MSW_HEADERS)" | |
7361 | GUIOBJS="\$(MSW_GUIOBJS)" | |
7362 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
7363 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
7364 | GUIDEPS="\$(MSW_GUIDEPS)" | |
7365 | COMMONDEPS="\$(MSW_COMMONDEPS)" | |
7366 | GENERICDEPS="\$(MSW_GENERICDEPS)" | |
7367 | UNIXOBJS="\$(UNIX_OBJS)" | |
d9d8273d | 7368 | UNIXDEPS="\$(UNIX_DEPS)" |
10f2d63a VZ |
7369 | GUIDIST=MSW_DIST |
7370 | fi | |
7371 | ||
7372 | if test "$wxUSE_MOTIF" = 1; then | |
ab9b9eab VZ |
7373 | # If we find X, set shell vars x_includes and x_libraries to the |
7374 | # paths, otherwise set no_x=yes. | |
7375 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
7376 | # --without-x overrides everything else, but does not touch the cache. | |
7377 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
b0a09421 | 7378 | echo "configure:7379: checking for X" >&5 |
ab9b9eab VZ |
7379 | |
7380 | # Check whether --with-x or --without-x was given. | |
7381 | if test "${with_x+set}" = set; then | |
7382 | withval="$with_x" | |
7383 | : | |
7384 | fi | |
ba337fe7 | 7385 | |
ab9b9eab VZ |
7386 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
7387 | if test "x$with_x" = xno; then | |
7388 | # The user explicitly disabled X. | |
7389 | have_x=disabled | |
7390 | else | |
7391 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
7392 | # Both variables are already set. | |
7393 | have_x=yes | |
7394 | else | |
7395 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
7396 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7397 | else | |
7398 | # One or both of the vars are not set, and there is no cached value. | |
7399 | ac_x_includes=NO ac_x_libraries=NO | |
7400 | rm -fr conftestdir | |
7401 | if mkdir conftestdir; then | |
7402 | cd conftestdir | |
7403 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
7404 | cat > Imakefile <<'EOF' | |
7405 | acfindx: | |
7406 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
7407 | EOF | |
7408 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
7409 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
7410 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
7411 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 7412 | for ac_extension in a so sl; do |
ab9b9eab VZ |
7413 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
7414 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
7415 | ac_im_usrlibdir=$ac_im_libdir; break | |
10f2d63a VZ |
7416 | fi |
7417 | done | |
ab9b9eab VZ |
7418 | # Screen out bogus values from the imake configuration. They are |
7419 | # bogus both because they are the default anyway, and because | |
7420 | # using them would break gcc on systems where it needs fixed includes. | |
7421 | case "$ac_im_incroot" in | |
7422 | /usr/include) ;; | |
7423 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
7424 | esac | |
7425 | case "$ac_im_usrlibdir" in | |
7426 | /usr/lib | /lib) ;; | |
7427 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
7428 | esac | |
ba337fe7 | 7429 | fi |
ab9b9eab VZ |
7430 | cd .. |
7431 | rm -fr conftestdir | |
7432 | fi | |
10f2d63a | 7433 | |
ab9b9eab VZ |
7434 | if test "$ac_x_includes" = NO; then |
7435 | # Guess where to find include files, by looking for this one X11 .h file. | |
7436 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
ba337fe7 | 7437 | |
ab9b9eab VZ |
7438 | # First, try using that file with no special directory specified. |
7439 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 7440 | #line 7441 "configure" |
ab9b9eab VZ |
7441 | #include "confdefs.h" |
7442 | #include <$x_direct_test_include> | |
7443 | EOF | |
7444 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b0a09421 | 7445 | { (eval echo configure:7446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
ab9b9eab VZ |
7446 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7447 | if test -z "$ac_err"; then | |
7448 | rm -rf conftest* | |
7449 | # We can compile using X headers with no special include directory. | |
7450 | ac_x_includes= | |
7451 | else | |
7452 | echo "$ac_err" >&5 | |
7453 | echo "configure: failed program was:" >&5 | |
7454 | cat conftest.$ac_ext >&5 | |
7455 | rm -rf conftest* | |
7456 | # Look for the header file in a standard set of common directories. | |
7457 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7458 | for ac_dir in \ | |
7459 | /usr/X11/include \ | |
7460 | /usr/X11R6/include \ | |
7461 | /usr/X11R5/include \ | |
7462 | /usr/X11R4/include \ | |
7463 | \ | |
7464 | /usr/include/X11 \ | |
7465 | /usr/include/X11R6 \ | |
7466 | /usr/include/X11R5 \ | |
7467 | /usr/include/X11R4 \ | |
7468 | \ | |
7469 | /usr/local/X11/include \ | |
7470 | /usr/local/X11R6/include \ | |
7471 | /usr/local/X11R5/include \ | |
7472 | /usr/local/X11R4/include \ | |
7473 | \ | |
7474 | /usr/local/include/X11 \ | |
7475 | /usr/local/include/X11R6 \ | |
7476 | /usr/local/include/X11R5 \ | |
7477 | /usr/local/include/X11R4 \ | |
7478 | \ | |
7479 | /usr/X386/include \ | |
7480 | /usr/x386/include \ | |
7481 | /usr/XFree86/include/X11 \ | |
7482 | \ | |
7483 | /usr/include \ | |
7484 | /usr/local/include \ | |
7485 | /usr/unsupported/include \ | |
7486 | /usr/athena/include \ | |
7487 | /usr/local/x11r5/include \ | |
7488 | /usr/lpp/Xamples/include \ | |
7489 | \ | |
7490 | /usr/openwin/include \ | |
7491 | /usr/openwin/share/include \ | |
7492 | ; \ | |
10f2d63a | 7493 | do |
ab9b9eab VZ |
7494 | if test -r "$ac_dir/$x_direct_test_include"; then |
7495 | ac_x_includes=$ac_dir | |
10f2d63a VZ |
7496 | break |
7497 | fi | |
7498 | done | |
ab9b9eab VZ |
7499 | fi |
7500 | rm -f conftest* | |
7501 | fi # $ac_x_includes = NO | |
10f2d63a | 7502 | |
ab9b9eab VZ |
7503 | if test "$ac_x_libraries" = NO; then |
7504 | # Check for the libraries. | |
10f2d63a | 7505 | |
ab9b9eab VZ |
7506 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
7507 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
10f2d63a | 7508 | |
ab9b9eab VZ |
7509 | # See if we find them without any special options. |
7510 | # Don't add to $LIBS permanently. | |
7511 | ac_save_LIBS="$LIBS" | |
7512 | LIBS="-l$x_direct_test_library $LIBS" | |
7513 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 7514 | #line 7515 "configure" |
ab9b9eab | 7515 | #include "confdefs.h" |
10f2d63a | 7516 | |
ab9b9eab VZ |
7517 | int main() { |
7518 | ${x_direct_test_function}() | |
7519 | ; return 0; } | |
7520 | EOF | |
b0a09421 | 7521 | if { (eval echo configure:7522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7522 | rm -rf conftest* |
7523 | LIBS="$ac_save_LIBS" | |
7524 | # We can link X programs with no special library path. | |
7525 | ac_x_libraries= | |
7526 | else | |
7527 | echo "configure: failed program was:" >&5 | |
7528 | cat conftest.$ac_ext >&5 | |
7529 | rm -rf conftest* | |
7530 | LIBS="$ac_save_LIBS" | |
7531 | # First see if replacing the include by lib works. | |
7532 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7533 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
7534 | /usr/X11/lib \ | |
7535 | /usr/X11R6/lib \ | |
7536 | /usr/X11R5/lib \ | |
7537 | /usr/X11R4/lib \ | |
7538 | \ | |
7539 | /usr/lib/X11 \ | |
7540 | /usr/lib/X11R6 \ | |
7541 | /usr/lib/X11R5 \ | |
7542 | /usr/lib/X11R4 \ | |
7543 | \ | |
7544 | /usr/local/X11/lib \ | |
7545 | /usr/local/X11R6/lib \ | |
7546 | /usr/local/X11R5/lib \ | |
7547 | /usr/local/X11R4/lib \ | |
7548 | \ | |
7549 | /usr/local/lib/X11 \ | |
7550 | /usr/local/lib/X11R6 \ | |
7551 | /usr/local/lib/X11R5 \ | |
7552 | /usr/local/lib/X11R4 \ | |
7553 | \ | |
7554 | /usr/X386/lib \ | |
7555 | /usr/x386/lib \ | |
7556 | /usr/XFree86/lib/X11 \ | |
7557 | \ | |
7558 | /usr/lib \ | |
7559 | /usr/local/lib \ | |
7560 | /usr/unsupported/lib \ | |
7561 | /usr/athena/lib \ | |
7562 | /usr/local/x11r5/lib \ | |
7563 | /usr/lpp/Xamples/lib \ | |
7564 | /lib/usr/lib/X11 \ | |
7565 | \ | |
7566 | /usr/openwin/lib \ | |
7567 | /usr/openwin/share/lib \ | |
7568 | ; \ | |
7569 | do | |
7570 | for ac_extension in a so sl; do | |
7571 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
7572 | ac_x_libraries=$ac_dir | |
7573 | break 2 | |
10f2d63a | 7574 | fi |
10f2d63a | 7575 | done |
ab9b9eab VZ |
7576 | done |
7577 | fi | |
7578 | rm -f conftest* | |
7579 | fi # $ac_x_libraries = NO | |
10f2d63a | 7580 | |
ab9b9eab VZ |
7581 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
7582 | # Didn't find X anywhere. Cache the known absence of X. | |
7583 | ac_cv_have_x="have_x=no" | |
7584 | else | |
7585 | # Record where we found X for the cache. | |
7586 | ac_cv_have_x="have_x=yes \ | |
7587 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
7588 | fi | |
7589 | fi | |
10f2d63a | 7590 | fi |
ab9b9eab VZ |
7591 | eval "$ac_cv_have_x" |
7592 | fi # $with_x != no | |
10f2d63a | 7593 | |
ab9b9eab VZ |
7594 | if test "$have_x" != yes; then |
7595 | echo "$ac_t""$have_x" 1>&6 | |
7596 | no_x=yes | |
7597 | else | |
7598 | # If each of the values was on the command line, it overrides each guess. | |
7599 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
7600 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
7601 | # Update the cache value to reflect the command line values. | |
7602 | ac_cv_have_x="have_x=yes \ | |
7603 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
7604 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
7605 | fi | |
10f2d63a | 7606 | |
ab9b9eab VZ |
7607 | if test "$no_x" = yes; then |
7608 | # Not all programs may use this symbol, but it does not hurt to define it. | |
7609 | cat >> confdefs.h <<\EOF | |
7610 | #define X_DISPLAY_MISSING 1 | |
7611 | EOF | |
10f2d63a | 7612 | |
ab9b9eab VZ |
7613 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
7614 | else | |
7615 | if test -n "$x_includes"; then | |
7616 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
7617 | fi |
7618 | ||
ab9b9eab VZ |
7619 | # It would also be nice to do this for all -L options, not just this one. |
7620 | if test -n "$x_libraries"; then | |
7621 | X_LIBS="$X_LIBS -L$x_libraries" | |
7622 | # For Solaris; some versions of Sun CC require a space after -R and | |
7623 | # others require no space. Words are not sufficient . . . . | |
7624 | case "`(uname -sr) 2>/dev/null`" in | |
7625 | "SunOS 5"*) | |
7626 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
b0a09421 | 7627 | echo "configure:7628: checking whether -R must be followed by a space" >&5 |
ab9b9eab VZ |
7628 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
7629 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 7630 | #line 7631 "configure" |
ab9b9eab | 7631 | #include "confdefs.h" |
10f2d63a | 7632 | |
ab9b9eab | 7633 | int main() { |
788deba1 | 7634 | |
ab9b9eab VZ |
7635 | ; return 0; } |
7636 | EOF | |
b0a09421 | 7637 | if { (eval echo configure:7638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7638 | rm -rf conftest* |
7639 | ac_R_nospace=yes | |
7640 | else | |
7641 | echo "configure: failed program was:" >&5 | |
7642 | cat conftest.$ac_ext >&5 | |
7643 | rm -rf conftest* | |
7644 | ac_R_nospace=no | |
7645 | fi | |
7646 | rm -f conftest* | |
7647 | if test $ac_R_nospace = yes; then | |
7648 | echo "$ac_t""no" 1>&6 | |
7649 | X_LIBS="$X_LIBS -R$x_libraries" | |
7650 | else | |
7651 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
7652 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 7653 | #line 7654 "configure" |
ab9b9eab | 7654 | #include "confdefs.h" |
788deba1 | 7655 | |
ab9b9eab VZ |
7656 | int main() { |
7657 | ||
7658 | ; return 0; } | |
7659 | EOF | |
b0a09421 | 7660 | if { (eval echo configure:7661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7661 | rm -rf conftest* |
7662 | ac_R_space=yes | |
7663 | else | |
7664 | echo "configure: failed program was:" >&5 | |
7665 | cat conftest.$ac_ext >&5 | |
7666 | rm -rf conftest* | |
7667 | ac_R_space=no | |
7668 | fi | |
7669 | rm -f conftest* | |
7670 | if test $ac_R_space = yes; then | |
7671 | echo "$ac_t""yes" 1>&6 | |
7672 | X_LIBS="$X_LIBS -R $x_libraries" | |
7673 | else | |
7674 | echo "$ac_t""neither works" 1>&6 | |
7675 | fi | |
7676 | fi | |
7677 | LIBS="$ac_xsave_LIBS" | |
7678 | esac | |
7679 | fi | |
7680 | ||
7681 | # Check for system-dependent libraries X programs must link with. | |
7682 | # Do this before checking for the system-independent R6 libraries | |
7683 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
7684 | ||
7685 | if test "$ISC" = yes; then | |
7686 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
7687 | else | |
7688 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
7689 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
7690 | # the Alpha needs dnet_stub (dnet does not exist). | |
7691 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
b0a09421 | 7692 | echo "configure:7693: checking for dnet_ntoa in -ldnet" >&5 |
ab9b9eab VZ |
7693 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
7694 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7695 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7696 | else | |
7697 | ac_save_LIBS="$LIBS" | |
7698 | LIBS="-ldnet $LIBS" | |
7699 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 7700 | #line 7701 "configure" |
ab9b9eab VZ |
7701 | #include "confdefs.h" |
7702 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7703 | /* We use char because int might match the return type of a gcc2 | |
7704 | builtin and then its argument prototype would still apply. */ | |
7705 | char dnet_ntoa(); | |
7706 | ||
7707 | int main() { | |
7708 | dnet_ntoa() | |
7709 | ; return 0; } | |
7710 | EOF | |
b0a09421 | 7711 | if { (eval echo configure:7712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7712 | rm -rf conftest* |
7713 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7714 | else | |
7715 | echo "configure: failed program was:" >&5 | |
7716 | cat conftest.$ac_ext >&5 | |
7717 | rm -rf conftest* | |
7718 | eval "ac_cv_lib_$ac_lib_var=no" | |
7719 | fi | |
7720 | rm -f conftest* | |
7721 | LIBS="$ac_save_LIBS" | |
7722 | ||
7723 | fi | |
7724 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7725 | echo "$ac_t""yes" 1>&6 | |
7726 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
7727 | else | |
7728 | echo "$ac_t""no" 1>&6 | |
7729 | fi | |
7730 | ||
7731 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
7732 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
b0a09421 | 7733 | echo "configure:7734: checking for dnet_ntoa in -ldnet_stub" >&5 |
ab9b9eab VZ |
7734 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
7735 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7736 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7737 | else | |
7738 | ac_save_LIBS="$LIBS" | |
7739 | LIBS="-ldnet_stub $LIBS" | |
7740 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 7741 | #line 7742 "configure" |
ab9b9eab VZ |
7742 | #include "confdefs.h" |
7743 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7744 | /* We use char because int might match the return type of a gcc2 | |
7745 | builtin and then its argument prototype would still apply. */ | |
7746 | char dnet_ntoa(); | |
7747 | ||
7748 | int main() { | |
7749 | dnet_ntoa() | |
7750 | ; return 0; } | |
7751 | EOF | |
b0a09421 | 7752 | if { (eval echo configure:7753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7753 | rm -rf conftest* |
7754 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7755 | else | |
7756 | echo "configure: failed program was:" >&5 | |
7757 | cat conftest.$ac_ext >&5 | |
7758 | rm -rf conftest* | |
7759 | eval "ac_cv_lib_$ac_lib_var=no" | |
7760 | fi | |
7761 | rm -f conftest* | |
7762 | LIBS="$ac_save_LIBS" | |
7763 | ||
7764 | fi | |
7765 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7766 | echo "$ac_t""yes" 1>&6 | |
7767 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
7768 | else | |
7769 | echo "$ac_t""no" 1>&6 | |
7770 | fi | |
7771 | ||
7772 | fi | |
7773 | ||
7774 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
7775 | # to get the SysV transport functions. | |
7776 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
7777 | # needs -lnsl. | |
7778 | # The nsl library prevents programs from opening the X display | |
7779 | # on Irix 5.2, according to dickey@clark.net. | |
7780 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
b0a09421 | 7781 | echo "configure:7782: checking for gethostbyname" >&5 |
ab9b9eab VZ |
7782 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
7783 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7784 | else | |
7785 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 7786 | #line 7787 "configure" |
ab9b9eab VZ |
7787 | #include "confdefs.h" |
7788 | /* System header to define __stub macros and hopefully few prototypes, | |
7789 | which can conflict with char gethostbyname(); below. */ | |
7790 | #include <assert.h> | |
7791 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7792 | /* We use char because int might match the return type of a gcc2 | |
7793 | builtin and then its argument prototype would still apply. */ | |
7794 | char gethostbyname(); | |
7795 | ||
7796 | int main() { | |
7797 | ||
7798 | /* The GNU C library defines this for functions which it implements | |
7799 | to always fail with ENOSYS. Some functions are actually named | |
7800 | something starting with __ and the normal name is an alias. */ | |
7801 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
7802 | choke me | |
7803 | #else | |
e8482f24 | 7804 | gethostbyname(); |
ab9b9eab VZ |
7805 | #endif |
7806 | ||
7807 | ; return 0; } | |
7808 | EOF | |
b0a09421 | 7809 | if { (eval echo configure:7810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7810 | rm -rf conftest* |
7811 | eval "ac_cv_func_gethostbyname=yes" | |
7812 | else | |
7813 | echo "configure: failed program was:" >&5 | |
7814 | cat conftest.$ac_ext >&5 | |
7815 | rm -rf conftest* | |
7816 | eval "ac_cv_func_gethostbyname=no" | |
7817 | fi | |
7818 | rm -f conftest* | |
7819 | fi | |
7820 | ||
7821 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
7822 | echo "$ac_t""yes" 1>&6 | |
7823 | : | |
7824 | else | |
7825 | echo "$ac_t""no" 1>&6 | |
7826 | fi | |
7827 | ||
7828 | if test $ac_cv_func_gethostbyname = no; then | |
7829 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
b0a09421 | 7830 | echo "configure:7831: checking for gethostbyname in -lnsl" >&5 |
ab9b9eab VZ |
7831 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
7832 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7833 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7834 | else | |
7835 | ac_save_LIBS="$LIBS" | |
7836 | LIBS="-lnsl $LIBS" | |
7837 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 7838 | #line 7839 "configure" |
ab9b9eab VZ |
7839 | #include "confdefs.h" |
7840 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7841 | /* We use char because int might match the return type of a gcc2 | |
7842 | builtin and then its argument prototype would still apply. */ | |
7843 | char gethostbyname(); | |
7844 | ||
7845 | int main() { | |
7846 | gethostbyname() | |
7847 | ; return 0; } | |
7848 | EOF | |
b0a09421 | 7849 | if { (eval echo configure:7850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7850 | rm -rf conftest* |
7851 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7852 | else | |
7853 | echo "configure: failed program was:" >&5 | |
7854 | cat conftest.$ac_ext >&5 | |
7855 | rm -rf conftest* | |
7856 | eval "ac_cv_lib_$ac_lib_var=no" | |
7857 | fi | |
7858 | rm -f conftest* | |
7859 | LIBS="$ac_save_LIBS" | |
7860 | ||
7861 | fi | |
7862 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7863 | echo "$ac_t""yes" 1>&6 | |
7864 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
7865 | else | |
7866 | echo "$ac_t""no" 1>&6 | |
7867 | fi | |
7868 | ||
7869 | fi | |
7870 | ||
7871 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
7872 | # socket/setsockopt and other routines are undefined under SCO ODT | |
7873 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
7874 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
7875 | # gethostby* variants that don't use the nameserver (or something). | |
7876 | # -lsocket must be given before -lnsl if both are needed. | |
7877 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
7878 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
b0a09421 | 7879 | echo "configure:7880: checking for connect" >&5 |
ab9b9eab VZ |
7880 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
7881 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7882 | else | |
7883 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 7884 | #line 7885 "configure" |
ab9b9eab VZ |
7885 | #include "confdefs.h" |
7886 | /* System header to define __stub macros and hopefully few prototypes, | |
7887 | which can conflict with char connect(); below. */ | |
7888 | #include <assert.h> | |
7889 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7890 | /* We use char because int might match the return type of a gcc2 | |
7891 | builtin and then its argument prototype would still apply. */ | |
7892 | char connect(); | |
7893 | ||
7894 | int main() { | |
7895 | ||
7896 | /* The GNU C library defines this for functions which it implements | |
7897 | to always fail with ENOSYS. Some functions are actually named | |
7898 | something starting with __ and the normal name is an alias. */ | |
7899 | #if defined (__stub_connect) || defined (__stub___connect) | |
7900 | choke me | |
7901 | #else | |
e8482f24 | 7902 | connect(); |
ab9b9eab VZ |
7903 | #endif |
7904 | ||
7905 | ; return 0; } | |
7906 | EOF | |
b0a09421 | 7907 | if { (eval echo configure:7908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7908 | rm -rf conftest* |
7909 | eval "ac_cv_func_connect=yes" | |
7910 | else | |
7911 | echo "configure: failed program was:" >&5 | |
7912 | cat conftest.$ac_ext >&5 | |
7913 | rm -rf conftest* | |
7914 | eval "ac_cv_func_connect=no" | |
7915 | fi | |
7916 | rm -f conftest* | |
7917 | fi | |
7918 | ||
7919 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
7920 | echo "$ac_t""yes" 1>&6 | |
7921 | : | |
7922 | else | |
7923 | echo "$ac_t""no" 1>&6 | |
7924 | fi | |
7925 | ||
7926 | if test $ac_cv_func_connect = no; then | |
7927 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
b0a09421 | 7928 | echo "configure:7929: checking for connect in -lsocket" >&5 |
ab9b9eab VZ |
7929 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
7930 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7931 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7932 | else | |
7933 | ac_save_LIBS="$LIBS" | |
7934 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
7935 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 7936 | #line 7937 "configure" |
ab9b9eab VZ |
7937 | #include "confdefs.h" |
7938 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7939 | /* We use char because int might match the return type of a gcc2 | |
7940 | builtin and then its argument prototype would still apply. */ | |
7941 | char connect(); | |
7942 | ||
7943 | int main() { | |
7944 | connect() | |
7945 | ; return 0; } | |
7946 | EOF | |
b0a09421 | 7947 | if { (eval echo configure:7948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7948 | rm -rf conftest* |
7949 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7950 | else | |
7951 | echo "configure: failed program was:" >&5 | |
7952 | cat conftest.$ac_ext >&5 | |
7953 | rm -rf conftest* | |
7954 | eval "ac_cv_lib_$ac_lib_var=no" | |
7955 | fi | |
7956 | rm -f conftest* | |
7957 | LIBS="$ac_save_LIBS" | |
7958 | ||
7959 | fi | |
7960 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7961 | echo "$ac_t""yes" 1>&6 | |
7962 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
7963 | else | |
7964 | echo "$ac_t""no" 1>&6 | |
7965 | fi | |
7966 | ||
7967 | fi | |
7968 | ||
7969 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
7970 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
b0a09421 | 7971 | echo "configure:7972: checking for remove" >&5 |
ab9b9eab VZ |
7972 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
7973 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7974 | else | |
7975 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 7976 | #line 7977 "configure" |
ab9b9eab VZ |
7977 | #include "confdefs.h" |
7978 | /* System header to define __stub macros and hopefully few prototypes, | |
7979 | which can conflict with char remove(); below. */ | |
7980 | #include <assert.h> | |
7981 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7982 | /* We use char because int might match the return type of a gcc2 | |
7983 | builtin and then its argument prototype would still apply. */ | |
7984 | char remove(); | |
7985 | ||
7986 | int main() { | |
7987 | ||
7988 | /* The GNU C library defines this for functions which it implements | |
7989 | to always fail with ENOSYS. Some functions are actually named | |
7990 | something starting with __ and the normal name is an alias. */ | |
7991 | #if defined (__stub_remove) || defined (__stub___remove) | |
7992 | choke me | |
7993 | #else | |
e8482f24 | 7994 | remove(); |
ab9b9eab VZ |
7995 | #endif |
7996 | ||
7997 | ; return 0; } | |
7998 | EOF | |
b0a09421 | 7999 | if { (eval echo configure:8000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8000 | rm -rf conftest* |
8001 | eval "ac_cv_func_remove=yes" | |
8002 | else | |
8003 | echo "configure: failed program was:" >&5 | |
8004 | cat conftest.$ac_ext >&5 | |
8005 | rm -rf conftest* | |
8006 | eval "ac_cv_func_remove=no" | |
8007 | fi | |
8008 | rm -f conftest* | |
8009 | fi | |
8010 | ||
8011 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
8012 | echo "$ac_t""yes" 1>&6 | |
8013 | : | |
8014 | else | |
8015 | echo "$ac_t""no" 1>&6 | |
8016 | fi | |
8017 | ||
8018 | if test $ac_cv_func_remove = no; then | |
8019 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
b0a09421 | 8020 | echo "configure:8021: checking for remove in -lposix" >&5 |
ab9b9eab VZ |
8021 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
8022 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8023 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8024 | else | |
8025 | ac_save_LIBS="$LIBS" | |
8026 | LIBS="-lposix $LIBS" | |
8027 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 8028 | #line 8029 "configure" |
ab9b9eab VZ |
8029 | #include "confdefs.h" |
8030 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8031 | /* We use char because int might match the return type of a gcc2 | |
8032 | builtin and then its argument prototype would still apply. */ | |
8033 | char remove(); | |
8034 | ||
8035 | int main() { | |
8036 | remove() | |
8037 | ; return 0; } | |
8038 | EOF | |
b0a09421 | 8039 | if { (eval echo configure:8040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8040 | rm -rf conftest* |
8041 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8042 | else | |
8043 | echo "configure: failed program was:" >&5 | |
8044 | cat conftest.$ac_ext >&5 | |
8045 | rm -rf conftest* | |
8046 | eval "ac_cv_lib_$ac_lib_var=no" | |
8047 | fi | |
8048 | rm -f conftest* | |
8049 | LIBS="$ac_save_LIBS" | |
8050 | ||
8051 | fi | |
8052 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8053 | echo "$ac_t""yes" 1>&6 | |
8054 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
8055 | else | |
8056 | echo "$ac_t""no" 1>&6 | |
8057 | fi | |
8058 | ||
8059 | fi | |
8060 | ||
8061 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
8062 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
b0a09421 | 8063 | echo "configure:8064: checking for shmat" >&5 |
ab9b9eab VZ |
8064 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
8065 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8066 | else | |
8067 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 8068 | #line 8069 "configure" |
ab9b9eab VZ |
8069 | #include "confdefs.h" |
8070 | /* System header to define __stub macros and hopefully few prototypes, | |
8071 | which can conflict with char shmat(); below. */ | |
8072 | #include <assert.h> | |
8073 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8074 | /* We use char because int might match the return type of a gcc2 | |
8075 | builtin and then its argument prototype would still apply. */ | |
8076 | char shmat(); | |
8077 | ||
8078 | int main() { | |
8079 | ||
8080 | /* The GNU C library defines this for functions which it implements | |
8081 | to always fail with ENOSYS. Some functions are actually named | |
8082 | something starting with __ and the normal name is an alias. */ | |
8083 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
8084 | choke me | |
8085 | #else | |
e8482f24 | 8086 | shmat(); |
ab9b9eab VZ |
8087 | #endif |
8088 | ||
8089 | ; return 0; } | |
8090 | EOF | |
b0a09421 | 8091 | if { (eval echo configure:8092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8092 | rm -rf conftest* |
8093 | eval "ac_cv_func_shmat=yes" | |
8094 | else | |
8095 | echo "configure: failed program was:" >&5 | |
8096 | cat conftest.$ac_ext >&5 | |
8097 | rm -rf conftest* | |
8098 | eval "ac_cv_func_shmat=no" | |
8099 | fi | |
8100 | rm -f conftest* | |
8101 | fi | |
8102 | ||
8103 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
8104 | echo "$ac_t""yes" 1>&6 | |
8105 | : | |
8106 | else | |
8107 | echo "$ac_t""no" 1>&6 | |
8108 | fi | |
8109 | ||
8110 | if test $ac_cv_func_shmat = no; then | |
8111 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
b0a09421 | 8112 | echo "configure:8113: checking for shmat in -lipc" >&5 |
ab9b9eab VZ |
8113 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
8114 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8115 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8116 | else | |
8117 | ac_save_LIBS="$LIBS" | |
8118 | LIBS="-lipc $LIBS" | |
8119 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 8120 | #line 8121 "configure" |
ab9b9eab VZ |
8121 | #include "confdefs.h" |
8122 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8123 | /* We use char because int might match the return type of a gcc2 | |
8124 | builtin and then its argument prototype would still apply. */ | |
8125 | char shmat(); | |
8126 | ||
8127 | int main() { | |
8128 | shmat() | |
8129 | ; return 0; } | |
8130 | EOF | |
b0a09421 | 8131 | if { (eval echo configure:8132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8132 | rm -rf conftest* |
8133 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8134 | else | |
8135 | echo "configure: failed program was:" >&5 | |
8136 | cat conftest.$ac_ext >&5 | |
8137 | rm -rf conftest* | |
8138 | eval "ac_cv_lib_$ac_lib_var=no" | |
8139 | fi | |
8140 | rm -f conftest* | |
8141 | LIBS="$ac_save_LIBS" | |
8142 | ||
8143 | fi | |
8144 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8145 | echo "$ac_t""yes" 1>&6 | |
8146 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
8147 | else | |
8148 | echo "$ac_t""no" 1>&6 | |
8149 | fi | |
8150 | ||
8151 | fi | |
8152 | fi | |
8153 | ||
8154 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
8155 | ac_save_LDFLAGS="$LDFLAGS" | |
8156 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
8157 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
8158 | # check for ICE first), but we must link in the order -lSM -lICE or | |
8159 | # we get undefined symbols. So assume we have SM if we have ICE. | |
8160 | # These have to be linked with before -lX11, unlike the other | |
8161 | # libraries we check for below, so use a different variable. | |
8162 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
8163 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
b0a09421 | 8164 | echo "configure:8165: checking for IceConnectionNumber in -lICE" >&5 |
ab9b9eab VZ |
8165 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
8166 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8167 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8168 | else | |
8169 | ac_save_LIBS="$LIBS" | |
8170 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
8171 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 8172 | #line 8173 "configure" |
ab9b9eab VZ |
8173 | #include "confdefs.h" |
8174 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8175 | /* We use char because int might match the return type of a gcc2 | |
8176 | builtin and then its argument prototype would still apply. */ | |
8177 | char IceConnectionNumber(); | |
8178 | ||
8179 | int main() { | |
8180 | IceConnectionNumber() | |
8181 | ; return 0; } | |
8182 | EOF | |
b0a09421 | 8183 | if { (eval echo configure:8184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8184 | rm -rf conftest* |
8185 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8186 | else | |
8187 | echo "configure: failed program was:" >&5 | |
8188 | cat conftest.$ac_ext >&5 | |
8189 | rm -rf conftest* | |
8190 | eval "ac_cv_lib_$ac_lib_var=no" | |
8191 | fi | |
8192 | rm -f conftest* | |
8193 | LIBS="$ac_save_LIBS" | |
8194 | ||
8195 | fi | |
8196 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8197 | echo "$ac_t""yes" 1>&6 | |
8198 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
8199 | else | |
8200 | echo "$ac_t""no" 1>&6 | |
8201 | fi | |
8202 | ||
8203 | LDFLAGS="$ac_save_LDFLAGS" | |
8204 | ||
8205 | fi | |
8206 | ||
8207 | ||
8208 | if test "$no_x" = "yes"; then | |
8209 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
8210 | fi | |
8211 | ||
8212 | GUI_TK_LIBRARY="$X_LIBS" | |
8213 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
8214 | ||
dad6c0ea VZ |
8215 | AFMINSTALL=afminstall |
8216 | ||
ab9b9eab | 8217 | |
cd6d6d5b VZ |
8218 | COMPILED_X_PROGRAM=0 |
8219 | ||
ab9b9eab | 8220 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
b0a09421 | 8221 | echo "configure:8222: checking for Motif/Lesstif headers" >&5 |
ab9b9eab VZ |
8222 | |
8223 | ac_find_includes= | |
8224 | for ac_dir in $SEARCH_INCLUDE; | |
8225 | do | |
8226 | if test -f "$ac_dir/Xm/Xm.h"; then | |
8227 | ac_find_includes=$ac_dir | |
8228 | break | |
8229 | fi | |
8230 | done | |
8231 | ||
8232 | if test "$ac_find_includes" != "" ; then | |
8233 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
8234 | else | |
cd6d6d5b | 8235 | cat > conftest.$ac_ext <<EOF |
b0a09421 | 8236 | #line 8237 "configure" |
cd6d6d5b VZ |
8237 | #include "confdefs.h" |
8238 | ||
8239 | #include <Xm/Xm.h> | |
8240 | ||
8241 | int main() { | |
8242 | ||
8243 | int version; | |
8244 | ||
8245 | version = xmUseVersion; | |
8246 | ||
8247 | ; return 0; } | |
8248 | EOF | |
b0a09421 | 8249 | if { (eval echo configure:8250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6d6d5b VZ |
8250 | rm -rf conftest* |
8251 | ||
8252 | echo "$ac_t""found in default search path" 1>&6 | |
8253 | COMPILED_X_PROGRAM=1 | |
8254 | ||
8255 | else | |
8256 | echo "configure: failed program was:" >&5 | |
8257 | cat conftest.$ac_ext >&5 | |
8258 | rm -rf conftest* | |
8259 | ||
8260 | echo "$ac_t""no" 1>&6 | |
8261 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
8262 | ||
8263 | ||
8264 | fi | |
8265 | rm -f conftest* | |
ab9b9eab VZ |
8266 | fi |
8267 | ||
cd6d6d5b VZ |
8268 | if test "$COMPILED_X_PROGRAM" = 0; then |
8269 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
b0a09421 | 8270 | echo "configure:8271: checking for Motif/Lesstif library" >&5 |
cd6d6d5b | 8271 | |
ab9b9eab VZ |
8272 | ac_find_libraries= |
8273 | for ac_dir in $SEARCH_LIB; | |
8274 | do | |
8275 | for ac_extension in a so sl; do | |
8276 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
8277 | ac_find_libraries=$ac_dir | |
8278 | break 2 | |
8279 | fi | |
8280 | done | |
8281 | done | |
8282 | ||
cd6d6d5b VZ |
8283 | if test "$ac_find_libraries" != "" ; then |
8284 | ||
ab9b9eab VZ |
8285 | ac_path_to_include=$ac_find_includes |
8286 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
8287 | result=$? | |
8288 | if test $result = 0; then | |
8289 | ac_path_to_include="" | |
8290 | else | |
8291 | ac_path_to_include="-I$ac_find_includes" | |
8292 | fi | |
8293 | ||
cd6d6d5b | 8294 | |
ab9b9eab VZ |
8295 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
8296 | result=$? | |
8297 | if test $result = 0; then | |
8298 | ac_path_to_link="" | |
8299 | else | |
8300 | ac_path_to_link="-L$ac_find_libraries" | |
8301 | fi | |
8302 | ||
8303 | ||
cd6d6d5b VZ |
8304 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
8305 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
8306 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8307 | else | |
8308 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 8309 | #line 8310 "configure" |
cd6d6d5b | 8310 | #include "confdefs.h" |
ab9b9eab | 8311 | |
cd6d6d5b VZ |
8312 | #include <Xm/Xm.h> |
8313 | ||
8314 | int main() { | |
ab9b9eab | 8315 | |
cd6d6d5b | 8316 | int version; |
ab9b9eab | 8317 | |
cd6d6d5b VZ |
8318 | version = xmUseVersion; |
8319 | ||
8320 | ; return 0; } | |
8321 | EOF | |
b0a09421 | 8322 | if { (eval echo configure:8323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6d6d5b VZ |
8323 | rm -rf conftest* |
8324 | ||
8325 | echo "$ac_t""found in default search path" 1>&6 | |
8326 | COMPILED_X_PROGRAM=1 | |
8327 | ||
8328 | else | |
8329 | echo "configure: failed program was:" >&5 | |
8330 | cat conftest.$ac_ext >&5 | |
8331 | rm -rf conftest* | |
8332 | ||
8333 | echo "$ac_t""no" 1>&6 | |
8334 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
8335 | ||
8336 | ||
8337 | fi | |
8338 | rm -f conftest* | |
8339 | fi | |
ab9b9eab VZ |
8340 | fi |
8341 | ||
cd6d6d5b | 8342 | |
ab9b9eab VZ |
8343 | XPM_LINK="" |
8344 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
b0a09421 | 8345 | echo "configure:8346: checking for Xpm library" >&5 |
ab9b9eab VZ |
8346 | |
8347 | ac_find_libraries= | |
8348 | for ac_dir in $SEARCH_LIB; | |
8349 | do | |
8350 | for ac_extension in a so sl; do | |
8351 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
8352 | ac_find_libraries=$ac_dir | |
8353 | break 2 | |
8354 | fi | |
8355 | done | |
8356 | done | |
8357 | ||
8358 | if test "$ac_find_libraries" != "" ; then | |
8359 | ||
8360 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
8361 | result=$? | |
8362 | if test $result = 0; then | |
8363 | ac_path_to_link="" | |
8364 | else | |
8365 | ac_path_to_link="-L$ac_find_libraries" | |
8366 | fi | |
8367 | ||
8368 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
8369 | XPM_LINK="-lXpm " | |
8370 | cat >> confdefs.h <<\EOF | |
8371 | #define wxHAVE_LIB_XPM 1 | |
8372 | EOF | |
8373 | ||
8374 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8375 | else | |
cd6d6d5b | 8376 | cat > conftest.$ac_ext <<EOF |
b0a09421 | 8377 | #line 8378 "configure" |
cd6d6d5b VZ |
8378 | #include "confdefs.h" |
8379 | ||
8380 | #include <X11/xpm.h> | |
8381 | ||
8382 | int main() { | |
8383 | ||
8384 | int version; | |
8385 | ||
8386 | version = XpmLibraryVersion(); | |
8387 | ||
8388 | ; return 0; } | |
8389 | EOF | |
b0a09421 | 8390 | if { (eval echo configure:8391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6d6d5b VZ |
8391 | rm -rf conftest* |
8392 | ||
bdad4e7e RR |
8393 | XPM_LINK="-lXpm " |
8394 | cat >> confdefs.h <<\EOF | |
3ace2e6d SN |
8395 | #define wxHAVE_LIB_XPM 1 |
8396 | EOF | |
8397 | ||
8398 | echo "$ac_t""found in default search path" 1>&6 | |
cd6d6d5b VZ |
8399 | COMPILED_X_PROGRAM=0 |
8400 | ||
8401 | else | |
8402 | echo "configure: failed program was:" >&5 | |
8403 | cat conftest.$ac_ext >&5 | |
8404 | rm -rf conftest* | |
8405 | ||
8406 | echo "$ac_t""no" 1>&6 | |
8407 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
8408 | ||
8409 | ||
8410 | fi | |
8411 | rm -f conftest* | |
ab9b9eab VZ |
8412 | fi |
8413 | ||
8414 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm" | |
8415 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
8416 | TOOLKIT=MOTIF | |
8417 | ||
8418 | GUIHEADERS="\$(MOTIF_HEADERS)" | |
8419 | GUIOBJS="\$(MOTIF_GUIOBJS)" | |
8420 | COMMONOBJS="\$(MOTIF_COMMONOBJS)" | |
788deba1 VZ |
8421 | GENERICOBJS="\$(MOTIF_GENERICOBJS)" |
8422 | GUIDEPS="\$(MOTIF_GUIDEPS)" | |
8423 | COMMONDEPS="\$(MOTIF_COMMONDEPS)" | |
10f2d63a VZ |
8424 | GENERICDEPS="\$(MOTIF_GENERICDEPS)" |
8425 | UNIXOBJS="\$(UNIX_OBJS)" | |
d9d8273d | 8426 | UNIXDEPS="\$(UNIX_DEPS)" |
10f2d63a VZ |
8427 | GUIDIST=MOTIF_DIST |
8428 | fi | |
8429 | ||
e07802fc VZ |
8430 | if test "$wxUSE_PM" = 1; then |
8431 | TOOLKIT=PM | |
8432 | ||
8433 | GUIOBJS="\$(PM_GUIOBJS)" | |
8434 | GUIHEADERS="\$(PM_HEADERS)" | |
8435 | COMMONOBJS="\$(PM_COMMONOBJS)" | |
8436 | GENERICOBJS="\$(PM_GENERICOBJS)" | |
8437 | GUIDEPS="\$(PM_GUIDEPS)" | |
8438 | COMMONDEPS="\$(PM_COMMONDEPS)" | |
8439 | GENERICDEPS="\$(PM_GENERICDEPS)" | |
8440 | UNIXOBJS= | |
8441 | UNIXDEPS= | |
8442 | GUIDIST=GTK_DIST | |
8443 | fi | |
8444 | ||
8445 | if test "$TOOLKIT" != "PM" ; then | |
ec14dd32 | 8446 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` |
e07802fc VZ |
8447 | else |
8448 | TOOLKIT_DIR="os2" | |
8449 | fi | |
10f2d63a | 8450 | |
2224580a | 8451 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" |
10f2d63a | 8452 | |
2224580a | 8453 | WX_LIBRARY="wx_${TOOLKIT_DIR}" |
10f2d63a | 8454 | |
bdad4e7e | 8455 | ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)" |
3fcdd07b | 8456 | |
b089607b | 8457 | if test "$TOOLKIT" != "MSW"; then |
cc977e5f RR |
8458 | if test "$wxUSE_ODBC" = "yes" ; then |
8459 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
8460 | fi | |
3fcdd07b VZ |
8461 | fi |
8462 | ||
d9d8273d | 8463 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 8464 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
8465 | fi |
8466 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
8467 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
8468 | fi | |
8469 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
8470 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
8471 | fi | |
8472 | if test "$wxUSE_ZLIB" = "yes" ; then | |
8473 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
8474 | fi | |
bdad4e7e | 8475 | ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)" |
2224580a VZ |
8476 | |
8477 | PORT_FILES="src/\$(TOOLKITDIR)/files.lst" | |
8478 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" | |
8479 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
8480 | ||
8481 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
8482 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 8483 | else |
dad6c0ea VZ |
8484 | USE_GUI=0 |
8485 | ||
07eb77a6 RL |
8486 | TOOLKIT_DIR="base" |
8487 | TOOLKIT_DEF="-D__WXBASE__" | |
8488 | ||
2224580a VZ |
8489 | ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}" |
8490 | ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}" | |
10f2d63a VZ |
8491 | |
8492 | WX_LIBRARY="wxbase" | |
2224580a VZ |
8493 | |
8494 | PORT_FILES="src/files.lst" | |
8495 | RPM_FILES="src/rpmfiles.lst" | |
8496 | RPM_SPEC="wxBase.spec" | |
8497 | ||
8498 | GUIDIST="BASE_DIST" | |
8499 | DISTDIR="wxBase" | |
10f2d63a VZ |
8500 | fi |
8501 | ||
8502 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
bdad4e7e | 8503 | WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la" |
10f2d63a VZ |
8504 | |
8505 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
bdad4e7e | 8506 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a" |
10f2d63a VZ |
8507 | |
8508 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
bdad4e7e | 8509 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
10f2d63a VZ |
8510 | |
8511 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
8512 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
8513 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
bdad4e7e RR |
8514 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}" |
8515 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so" | |
8516 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so" | |
10f2d63a VZ |
8517 | |
8518 | SHARED_LD= | |
8519 | PIC_FLAG= | |
8520 | WX_ALL= | |
8521 | WX_ALL_INSTALLED= | |
1d62a8b4 | 8522 | BURNT_LIBRARY_NAME= |
10f2d63a | 8523 | |
b12915c1 | 8524 | |
10f2d63a VZ |
8525 | if test "$wxUSE_SHARED" = "yes"; then |
8526 | case "${host}" in | |
8527 | *-hp-hpux* ) | |
8528 | if test "$GCC" = yes ; then | |
69ffe1d2 | 8529 | SHARED_LD="${CC} -shared -fPIC -o" |
10f2d63a VZ |
8530 | PIC_FLAG="-fPIC" |
8531 | else | |
8532 | SHARED_LD="${CXX} -b -o" | |
8533 | PIC_FLAG="+Z" | |
8534 | fi | |
8535 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl" | |
bdad4e7e | 8536 | WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_DIR}_gl.sl" |
c661ecca RR |
8537 | if test "$wxUSE_OPENGL" = "yes"; then |
8538 | WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" | |
8539 | else | |
8540 | WX_ALL="${WX_LIBRARY_NAME_SHARED}" | |
8541 | fi | |
10f2d63a | 8542 | ;; |
b12915c1 VZ |
8543 | |
8544 | *-*-linux* ) | |
10f2d63a VZ |
8545 | SHARED_LD="${CC} -shared -o" |
8546 | PIC_FLAG="-fPIC" | |
00cf1208 | 8547 | if test "$wxUSE_BURNT_NAME" = "yes" ; then |
05cdfc6f | 8548 | BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}" |
bdad4e7e | 8549 | BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" |
00cf1208 | 8550 | fi |
c661ecca RR |
8551 | if test "$wxUSE_OPENGL" = "yes"; then |
8552 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
8553 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
8554 | else | |
8555 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8556 | WX_ALL="CREATE_LINKS" | |
422107f9 | 8557 | fi |
00cf1208 | 8558 | ;; |
10f2d63a VZ |
8559 | *-*-irix5* | *-*-irix6* ) |
8560 | if test "$GCC" = yes ; then | |
8561 | SHARED_LD="${CC} -shared -o" | |
8562 | PIC_FLAG="-fPIC" | |
8563 | else | |
8564 | SHARED_LD="${CXX} -shared -o" | |
8565 | fi | |
c661ecca RR |
8566 | if test "$wxUSE_OPENGL" = "yes"; then |
8567 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
8568 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
8569 | else | |
8570 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8571 | WX_ALL="CREATE_LINKS" | |
422107f9 | 8572 | fi |
10f2d63a VZ |
8573 | ;; |
8574 | *-*-solaris2* ) | |
8575 | if test "$GCC" = yes ; then | |
8576 | SHARED_LD="${CC} -shared -o" | |
8577 | PIC_FLAG="-fPIC" | |
8578 | else | |
8579 | SHARED_LD="${CXX} -G -o" | |
8580 | PIC_FLAG="-KPIC" | |
8581 | fi | |
c661ecca RR |
8582 | if test "$wxUSE_OPENGL" = "yes"; then |
8583 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
8584 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
8585 | else | |
8586 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8587 | WX_ALL="CREATE_LINKS" | |
8588 | fi | |
10f2d63a VZ |
8589 | ;; |
8590 | *-*-sunos4* ) | |
8591 | SHARED_LD="${CC} -shared -o" | |
8592 | PIC_FLAG="-fPIC" | |
8593 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8594 | WX_ALL="CREATE_LINKS" | |
8595 | ;; | |
8596 | *-*-freebsd* | *-*-netbsd*) | |
8597 | SHARED_LD="${CC} -shared -o" | |
8598 | PIC_FLAG="-fPIC" | |
8599 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8600 | WX_ALL="CREATE_LINKS" | |
8601 | ;; | |
8602 | *-*-osf* ) | |
8603 | SHARED_LD="${CXX} -shared -o" | |
8604 | PIC_FLAG="-fPIC" | |
8605 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8606 | WX_ALL="CREATE_LINKS" | |
8607 | ;; | |
8608 | *-*-dgux5* ) | |
8609 | SHARED_LD="${CXX} -shared -o" | |
8610 | PIC_FLAG="-fPIC" | |
8611 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8612 | WX_ALL="CREATE_LINKS" | |
8613 | ;; | |
8614 | *-*-sysv5* ) | |
8615 | SHARED_LD="${CC} -shared -o" | |
8616 | PIC_FLAG="-fPIC" | |
8617 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8618 | WX_ALL="CREATE_LINKS" | |
8619 | ;; | |
8620 | *-*-aix* ) | |
8621 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
8622 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
8623 | ;; | |
8624 | *-*-cygwin32* ) | |
8625 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 8626 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
10f2d63a VZ |
8627 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" |
8628 | ;; | |
b12915c1 | 8629 | *-*-mingw32* ) |
10f2d63a | 8630 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 8631 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
10f2d63a VZ |
8632 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" |
8633 | ;; | |
8634 | *-pc-os2_emx ) | |
e07802fc VZ |
8635 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
8636 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10f2d63a | 8637 | ;; |
b12915c1 | 8638 | *-*-beos* ) |
e2b8b066 | 8639 | SHARED_LD="${LD} -shared -o" |
b12915c1 VZ |
8640 | PIC_FLAG="-fPIC" |
8641 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8642 | WX_ALL="CREATE_LINKS" | |
8643 | ;; | |
10f2d63a VZ |
8644 | *) |
8645 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
8646 | esac | |
8647 | ||
8648 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
8649 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 8650 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a VZ |
8651 | fi |
8652 | else | |
8653 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 8654 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
10f2d63a VZ |
8655 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" |
8656 | fi | |
8657 | ||
8658 | ||
8659 | for ac_hdr in strings.h | |
8660 | do | |
8661 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8662 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b0a09421 | 8663 | echo "configure:8664: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8664 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8665 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8666 | else | |
8667 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 8668 | #line 8669 "configure" |
10f2d63a VZ |
8669 | #include "confdefs.h" |
8670 | #include <$ac_hdr> | |
8671 | EOF | |
8672 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b0a09421 | 8673 | { (eval echo configure:8674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8674 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8675 | if test -z "$ac_err"; then | |
8676 | rm -rf conftest* | |
8677 | eval "ac_cv_header_$ac_safe=yes" | |
8678 | else | |
8679 | echo "$ac_err" >&5 | |
8680 | echo "configure: failed program was:" >&5 | |
8681 | cat conftest.$ac_ext >&5 | |
8682 | rm -rf conftest* | |
8683 | eval "ac_cv_header_$ac_safe=no" | |
8684 | fi | |
8685 | rm -f conftest* | |
8686 | fi | |
8687 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8688 | echo "$ac_t""yes" 1>&6 | |
8689 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8690 | cat >> confdefs.h <<EOF | |
8691 | #define $ac_tr_hdr 1 | |
8692 | EOF | |
8693 | ||
8694 | else | |
8695 | echo "$ac_t""no" 1>&6 | |
8696 | fi | |
8697 | done | |
8698 | ||
8699 | for ac_hdr in unistd.h | |
8700 | do | |
8701 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8702 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b0a09421 | 8703 | echo "configure:8704: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8704 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8705 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8706 | else | |
8707 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 8708 | #line 8709 "configure" |
10f2d63a VZ |
8709 | #include "confdefs.h" |
8710 | #include <$ac_hdr> | |
8711 | EOF | |
8712 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b0a09421 | 8713 | { (eval echo configure:8714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8714 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8715 | if test -z "$ac_err"; then | |
8716 | rm -rf conftest* | |
8717 | eval "ac_cv_header_$ac_safe=yes" | |
8718 | else | |
8719 | echo "$ac_err" >&5 | |
8720 | echo "configure: failed program was:" >&5 | |
8721 | cat conftest.$ac_ext >&5 | |
8722 | rm -rf conftest* | |
8723 | eval "ac_cv_header_$ac_safe=no" | |
8724 | fi | |
8725 | rm -f conftest* | |
8726 | fi | |
8727 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8728 | echo "$ac_t""yes" 1>&6 | |
8729 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8730 | cat >> confdefs.h <<EOF | |
8731 | #define $ac_tr_hdr 1 | |
8732 | EOF | |
8733 | ||
8734 | else | |
8735 | echo "$ac_t""no" 1>&6 | |
8736 | fi | |
8737 | done | |
8738 | ||
8739 | for ac_hdr in wchar.h | |
8740 | do | |
8741 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8742 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b0a09421 | 8743 | echo "configure:8744: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8744 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8745 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8746 | else | |
8747 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 8748 | #line 8749 "configure" |
10f2d63a VZ |
8749 | #include "confdefs.h" |
8750 | #include <$ac_hdr> | |
8751 | EOF | |
8752 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b0a09421 | 8753 | { (eval echo configure:8754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8754 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8755 | if test -z "$ac_err"; then | |
8756 | rm -rf conftest* | |
8757 | eval "ac_cv_header_$ac_safe=yes" | |
8758 | else | |
8759 | echo "$ac_err" >&5 | |
8760 | echo "configure: failed program was:" >&5 | |
8761 | cat conftest.$ac_ext >&5 | |
8762 | rm -rf conftest* | |
8763 | eval "ac_cv_header_$ac_safe=no" | |
8764 | fi | |
8765 | rm -f conftest* | |
8766 | fi | |
8767 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8768 | echo "$ac_t""yes" 1>&6 | |
8769 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8770 | cat >> confdefs.h <<EOF | |
8771 | #define $ac_tr_hdr 1 | |
8772 | EOF | |
8773 | ||
8774 | else | |
8775 | echo "$ac_t""no" 1>&6 | |
8776 | fi | |
8777 | done | |
8778 | ||
8779 | for ac_hdr in wcstr.h | |
8780 | do | |
8781 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8782 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b0a09421 | 8783 | echo "configure:8784: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8784 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8785 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8786 | else | |
8787 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 8788 | #line 8789 "configure" |
10f2d63a VZ |
8789 | #include "confdefs.h" |
8790 | #include <$ac_hdr> | |
8791 | EOF | |
8792 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b0a09421 | 8793 | { (eval echo configure:8794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8794 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8795 | if test -z "$ac_err"; then | |
8796 | rm -rf conftest* | |
8797 | eval "ac_cv_header_$ac_safe=yes" | |
8798 | else | |
8799 | echo "$ac_err" >&5 | |
8800 | echo "configure: failed program was:" >&5 | |
8801 | cat conftest.$ac_ext >&5 | |
8802 | rm -rf conftest* | |
8803 | eval "ac_cv_header_$ac_safe=no" | |
8804 | fi | |
8805 | rm -f conftest* | |
8806 | fi | |
8807 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8808 | echo "$ac_t""yes" 1>&6 | |
8809 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8810 | cat >> confdefs.h <<EOF | |
8811 | #define $ac_tr_hdr 1 | |
8812 | EOF | |
8813 | ||
8814 | else | |
8815 | echo "$ac_t""no" 1>&6 | |
8816 | fi | |
8817 | done | |
8818 | ||
8819 | for ac_hdr in fnmatch.h | |
8820 | do | |
8821 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8822 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b0a09421 | 8823 | echo "configure:8824: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8824 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8825 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8826 | else | |
8827 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 8828 | #line 8829 "configure" |
10f2d63a VZ |
8829 | #include "confdefs.h" |
8830 | #include <$ac_hdr> | |
8831 | EOF | |
8832 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b0a09421 | 8833 | { (eval echo configure:8834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8834 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8835 | if test -z "$ac_err"; then | |
8836 | rm -rf conftest* | |
8837 | eval "ac_cv_header_$ac_safe=yes" | |
8838 | else | |
8839 | echo "$ac_err" >&5 | |
8840 | echo "configure: failed program was:" >&5 | |
8841 | cat conftest.$ac_ext >&5 | |
8842 | rm -rf conftest* | |
8843 | eval "ac_cv_header_$ac_safe=no" | |
8844 | fi | |
8845 | rm -f conftest* | |
8846 | fi | |
8847 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8848 | echo "$ac_t""yes" 1>&6 | |
8849 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8850 | cat >> confdefs.h <<EOF | |
8851 | #define $ac_tr_hdr 1 | |
8852 | EOF | |
8853 | ||
8854 | else | |
8855 | echo "$ac_t""no" 1>&6 | |
8856 | fi | |
8857 | done | |
8858 | ||
8859 | ||
e59890c3 | 8860 | if test "$wxUSE_GUI" = "yes" -a test "$wxUSE_UNIX" = "yes"; then |
10f2d63a VZ |
8861 | for ac_hdr in X11/XKBlib.h |
8862 | do | |
8863 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8864 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b0a09421 | 8865 | echo "configure:8866: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8866 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8867 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8868 | else | |
8869 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 8870 | #line 8871 "configure" |
10f2d63a VZ |
8871 | #include "confdefs.h" |
8872 | #include <$ac_hdr> | |
8873 | EOF | |
8874 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b0a09421 | 8875 | { (eval echo configure:8876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8876 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8877 | if test -z "$ac_err"; then | |
8878 | rm -rf conftest* | |
8879 | eval "ac_cv_header_$ac_safe=yes" | |
8880 | else | |
8881 | echo "$ac_err" >&5 | |
8882 | echo "configure: failed program was:" >&5 | |
8883 | cat conftest.$ac_ext >&5 | |
8884 | rm -rf conftest* | |
8885 | eval "ac_cv_header_$ac_safe=no" | |
8886 | fi | |
8887 | rm -f conftest* | |
8888 | fi | |
8889 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8890 | echo "$ac_t""yes" 1>&6 | |
8891 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8892 | cat >> confdefs.h <<EOF | |
8893 | #define $ac_tr_hdr 1 | |
8894 | EOF | |
8895 | ||
8896 | else | |
8897 | echo "$ac_t""no" 1>&6 | |
8898 | fi | |
8899 | done | |
8900 | ||
8901 | fi | |
8902 | ||
8903 | ||
8904 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
b0a09421 | 8905 | echo "configure:8906: checking for ANSI C header files" >&5 |
10f2d63a VZ |
8906 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
8907 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8908 | else | |
8909 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 8910 | #line 8911 "configure" |
10f2d63a VZ |
8911 | #include "confdefs.h" |
8912 | #include <stdlib.h> | |
8913 | #include <stdarg.h> | |
8914 | #include <string.h> | |
8915 | #include <float.h> | |
8916 | EOF | |
8917 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b0a09421 | 8918 | { (eval echo configure:8919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8919 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8920 | if test -z "$ac_err"; then | |
8921 | rm -rf conftest* | |
8922 | ac_cv_header_stdc=yes | |
8923 | else | |
8924 | echo "$ac_err" >&5 | |
8925 | echo "configure: failed program was:" >&5 | |
8926 | cat conftest.$ac_ext >&5 | |
8927 | rm -rf conftest* | |
8928 | ac_cv_header_stdc=no | |
8929 | fi | |
8930 | rm -f conftest* | |
8931 | ||
8932 | if test $ac_cv_header_stdc = yes; then | |
8933 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8934 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 8935 | #line 8936 "configure" |
10f2d63a VZ |
8936 | #include "confdefs.h" |
8937 | #include <string.h> | |
8938 | EOF | |
8939 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8940 | egrep "memchr" >/dev/null 2>&1; then | |
8941 | : | |
8942 | else | |
8943 | rm -rf conftest* | |
8944 | ac_cv_header_stdc=no | |
8945 | fi | |
8946 | rm -f conftest* | |
8947 | ||
8948 | fi | |
8949 | ||
8950 | if test $ac_cv_header_stdc = yes; then | |
8951 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8952 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 8953 | #line 8954 "configure" |
10f2d63a VZ |
8954 | #include "confdefs.h" |
8955 | #include <stdlib.h> | |
8956 | EOF | |
8957 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8958 | egrep "free" >/dev/null 2>&1; then | |
8959 | : | |
8960 | else | |
8961 | rm -rf conftest* | |
8962 | ac_cv_header_stdc=no | |
8963 | fi | |
8964 | rm -f conftest* | |
8965 | ||
8966 | fi | |
8967 | ||
8968 | if test $ac_cv_header_stdc = yes; then | |
8969 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8970 | if test "$cross_compiling" = yes; then | |
8971 | : | |
8972 | else | |
8973 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 8974 | #line 8975 "configure" |
10f2d63a VZ |
8975 | #include "confdefs.h" |
8976 | #include <ctype.h> | |
8977 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8978 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8979 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8980 | int main () { int i; for (i = 0; i < 256; i++) | |
8981 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
8982 | exit (0); } | |
8983 | ||
8984 | EOF | |
b0a09421 | 8985 | if { (eval echo configure:8986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
8986 | then |
8987 | : | |
8988 | else | |
8989 | echo "configure: failed program was:" >&5 | |
8990 | cat conftest.$ac_ext >&5 | |
8991 | rm -fr conftest* | |
8992 | ac_cv_header_stdc=no | |
8993 | fi | |
8994 | rm -fr conftest* | |
8995 | fi | |
8996 | ||
8997 | fi | |
8998 | fi | |
8999 | ||
9000 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
9001 | if test $ac_cv_header_stdc = yes; then | |
9002 | cat >> confdefs.h <<\EOF | |
9003 | #define STDC_HEADERS 1 | |
9004 | EOF | |
9005 | ||
9006 | fi | |
9007 | ||
9008 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
b0a09421 | 9009 | echo "configure:9010: checking for mode_t" >&5 |
10f2d63a VZ |
9010 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
9011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9012 | else | |
9013 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9014 | #line 9015 "configure" |
10f2d63a VZ |
9015 | #include "confdefs.h" |
9016 | #include <sys/types.h> | |
9017 | #if STDC_HEADERS | |
9018 | #include <stdlib.h> | |
9019 | #include <stddef.h> | |
9020 | #endif | |
9021 | EOF | |
9022 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9023 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9024 | rm -rf conftest* | |
9025 | ac_cv_type_mode_t=yes | |
9026 | else | |
9027 | rm -rf conftest* | |
9028 | ac_cv_type_mode_t=no | |
9029 | fi | |
9030 | rm -f conftest* | |
9031 | ||
9032 | fi | |
9033 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
9034 | if test $ac_cv_type_mode_t = no; then | |
9035 | cat >> confdefs.h <<\EOF | |
9036 | #define mode_t int | |
9037 | EOF | |
9038 | ||
9039 | fi | |
9040 | ||
9041 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
b0a09421 | 9042 | echo "configure:9043: checking for off_t" >&5 |
10f2d63a VZ |
9043 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
9044 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9045 | else | |
9046 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9047 | #line 9048 "configure" |
10f2d63a VZ |
9048 | #include "confdefs.h" |
9049 | #include <sys/types.h> | |
9050 | #if STDC_HEADERS | |
9051 | #include <stdlib.h> | |
9052 | #include <stddef.h> | |
9053 | #endif | |
9054 | EOF | |
9055 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9056 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9057 | rm -rf conftest* | |
9058 | ac_cv_type_off_t=yes | |
9059 | else | |
9060 | rm -rf conftest* | |
9061 | ac_cv_type_off_t=no | |
9062 | fi | |
9063 | rm -f conftest* | |
9064 | ||
9065 | fi | |
9066 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
9067 | if test $ac_cv_type_off_t = no; then | |
9068 | cat >> confdefs.h <<\EOF | |
9069 | #define off_t long | |
9070 | EOF | |
9071 | ||
9072 | fi | |
9073 | ||
9074 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
b0a09421 | 9075 | echo "configure:9076: checking for pid_t" >&5 |
10f2d63a VZ |
9076 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
9077 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9078 | else | |
9079 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9080 | #line 9081 "configure" |
10f2d63a VZ |
9081 | #include "confdefs.h" |
9082 | #include <sys/types.h> | |
9083 | #if STDC_HEADERS | |
9084 | #include <stdlib.h> | |
9085 | #include <stddef.h> | |
9086 | #endif | |
9087 | EOF | |
9088 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9089 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9090 | rm -rf conftest* | |
9091 | ac_cv_type_pid_t=yes | |
9092 | else | |
9093 | rm -rf conftest* | |
9094 | ac_cv_type_pid_t=no | |
9095 | fi | |
9096 | rm -f conftest* | |
9097 | ||
9098 | fi | |
9099 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
9100 | if test $ac_cv_type_pid_t = no; then | |
9101 | cat >> confdefs.h <<\EOF | |
9102 | #define pid_t int | |
9103 | EOF | |
9104 | ||
9105 | fi | |
9106 | ||
9107 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
b0a09421 | 9108 | echo "configure:9109: checking for size_t" >&5 |
10f2d63a VZ |
9109 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
9110 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9111 | else | |
9112 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9113 | #line 9114 "configure" |
10f2d63a VZ |
9114 | #include "confdefs.h" |
9115 | #include <sys/types.h> | |
9116 | #if STDC_HEADERS | |
9117 | #include <stdlib.h> | |
9118 | #include <stddef.h> | |
9119 | #endif | |
9120 | EOF | |
9121 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9122 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9123 | rm -rf conftest* | |
9124 | ac_cv_type_size_t=yes | |
9125 | else | |
9126 | rm -rf conftest* | |
9127 | ac_cv_type_size_t=no | |
9128 | fi | |
9129 | rm -f conftest* | |
9130 | ||
9131 | fi | |
9132 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
9133 | if test $ac_cv_type_size_t = no; then | |
9134 | cat >> confdefs.h <<\EOF | |
9135 | #define size_t unsigned | |
9136 | EOF | |
9137 | ||
9138 | fi | |
9139 | ||
9140 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
b0a09421 | 9141 | echo "configure:9142: checking for uid_t in sys/types.h" >&5 |
10f2d63a VZ |
9142 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
9143 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9144 | else | |
9145 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9146 | #line 9147 "configure" |
10f2d63a VZ |
9147 | #include "confdefs.h" |
9148 | #include <sys/types.h> | |
9149 | EOF | |
9150 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9151 | egrep "uid_t" >/dev/null 2>&1; then | |
9152 | rm -rf conftest* | |
9153 | ac_cv_type_uid_t=yes | |
9154 | else | |
9155 | rm -rf conftest* | |
9156 | ac_cv_type_uid_t=no | |
9157 | fi | |
9158 | rm -f conftest* | |
9159 | ||
9160 | fi | |
9161 | ||
9162 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
9163 | if test $ac_cv_type_uid_t = no; then | |
9164 | cat >> confdefs.h <<\EOF | |
9165 | #define uid_t int | |
9166 | EOF | |
9167 | ||
9168 | cat >> confdefs.h <<\EOF | |
9169 | #define gid_t int | |
9170 | EOF | |
9171 | ||
9172 | fi | |
9173 | ||
9174 | ||
9175 | ||
b12915c1 | 9176 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
b0a09421 | 9177 | echo "configure:9178: checking for pw_gecos in struct passwd" >&5 |
b12915c1 VZ |
9178 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
9179 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9180 | else | |
9181 | ||
9182 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9183 | #line 9184 "configure" |
b12915c1 VZ |
9184 | #include "confdefs.h" |
9185 | #include <pwd.h> | |
9186 | int main() { | |
9187 | ||
9188 | char *p; | |
9189 | struct passwd *pw; | |
9190 | p = pw->pw_gecos; | |
9191 | ||
9192 | ; return 0; } | |
9193 | EOF | |
b0a09421 | 9194 | if { (eval echo configure:9195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b12915c1 VZ |
9195 | rm -rf conftest* |
9196 | ||
9197 | wx_cv_struct_pw_gecos=yes | |
9198 | cat >> confdefs.h <<\EOF | |
9199 | #define HAVE_PW_GECOS 1 | |
9200 | EOF | |
9201 | ||
9202 | ||
9203 | else | |
9204 | echo "configure: failed program was:" >&5 | |
9205 | cat conftest.$ac_ext >&5 | |
9206 | rm -rf conftest* | |
9207 | ||
9208 | wx_cv_struct_pw_gecos=no | |
9209 | ||
9210 | ||
9211 | fi | |
9212 | rm -f conftest* | |
9213 | ||
9214 | ||
9215 | fi | |
9216 | ||
9217 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
9218 | ||
10f2d63a VZ |
9219 | |
9220 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
b0a09421 | 9221 | echo "configure:9222: checking for working const" >&5 |
10f2d63a VZ |
9222 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
9223 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9224 | else | |
9225 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9226 | #line 9227 "configure" |
10f2d63a VZ |
9227 | #include "confdefs.h" |
9228 | ||
9229 | int main() { | |
9230 | ||
9231 | /* Ultrix mips cc rejects this. */ | |
24528b0c | 9232 | typedef int charset[2]; const charset x; |
10f2d63a VZ |
9233 | /* SunOS 4.1.1 cc rejects this. */ |
9234 | char const *const *ccp; | |
9235 | char **p; | |
9236 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
9237 | struct point {int x, y;}; | |
9238 | static struct point const zero = {0,0}; | |
9239 | /* AIX XL C 1.02.0.0 rejects this. | |
9240 | It does not let you subtract one const X* pointer from another in an arm | |
9241 | of an if-expression whose if-part is not a constant expression */ | |
9242 | const char *g = "string"; | |
9243 | ccp = &g + (g ? g-g : 0); | |
9244 | /* HPUX 7.0 cc rejects these. */ | |
9245 | ++ccp; | |
9246 | p = (char**) ccp; | |
9247 | ccp = (char const *const *) p; | |
9248 | { /* SCO 3.2v4 cc rejects this. */ | |
9249 | char *t; | |
9250 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
9251 | ||
9252 | *t++ = 0; | |
9253 | } | |
9254 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
9255 | int x[] = {25, 17}; | |
9256 | const int *foo = &x[0]; | |
9257 | ++foo; | |
9258 | } | |
9259 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
9260 | typedef const int *iptr; | |
9261 | iptr p = 0; | |
9262 | ++p; | |
9263 | } | |
9264 | { /* AIX XL C 1.02.0.0 rejects this saying | |
9265 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
9266 | struct s { int j; const int *ap[3]; }; | |
9267 | struct s *b; b->j = 5; | |
9268 | } | |
9269 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
9270 | const int foo = 10; | |
9271 | } | |
9272 | ||
9273 | ; return 0; } | |
9274 | EOF | |
b0a09421 | 9275 | if { (eval echo configure:9276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9276 | rm -rf conftest* |
9277 | ac_cv_c_const=yes | |
9278 | else | |
9279 | echo "configure: failed program was:" >&5 | |
9280 | cat conftest.$ac_ext >&5 | |
9281 | rm -rf conftest* | |
9282 | ac_cv_c_const=no | |
9283 | fi | |
9284 | rm -f conftest* | |
9285 | fi | |
9286 | ||
9287 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
9288 | if test $ac_cv_c_const = no; then | |
9289 | cat >> confdefs.h <<\EOF | |
9290 | #define const | |
9291 | EOF | |
9292 | ||
9293 | fi | |
9294 | ||
9295 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
b0a09421 | 9296 | echo "configure:9297: checking for inline" >&5 |
10f2d63a VZ |
9297 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
9298 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9299 | else | |
9300 | ac_cv_c_inline=no | |
9301 | for ac_kw in inline __inline__ __inline; do | |
9302 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9303 | #line 9304 "configure" |
10f2d63a VZ |
9304 | #include "confdefs.h" |
9305 | ||
9306 | int main() { | |
24528b0c | 9307 | } $ac_kw foo() { |
10f2d63a VZ |
9308 | ; return 0; } |
9309 | EOF | |
b0a09421 | 9310 | if { (eval echo configure:9311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9311 | rm -rf conftest* |
9312 | ac_cv_c_inline=$ac_kw; break | |
9313 | else | |
9314 | echo "configure: failed program was:" >&5 | |
9315 | cat conftest.$ac_ext >&5 | |
9316 | fi | |
9317 | rm -f conftest* | |
9318 | done | |
9319 | ||
9320 | fi | |
9321 | ||
9322 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
9323 | case "$ac_cv_c_inline" in | |
9324 | inline | yes) ;; | |
9325 | no) cat >> confdefs.h <<\EOF | |
9326 | #define inline | |
9327 | EOF | |
9328 | ;; | |
9329 | *) cat >> confdefs.h <<EOF | |
9330 | #define inline $ac_cv_c_inline | |
9331 | EOF | |
9332 | ;; | |
9333 | esac | |
9334 | ||
9335 | ||
9336 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
b0a09421 | 9337 | echo "configure:9338: checking size of char" >&5 |
10f2d63a VZ |
9338 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
9339 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9340 | else | |
9341 | if test "$cross_compiling" = yes; then | |
9342 | ac_cv_sizeof_char=1 | |
9343 | else | |
9344 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9345 | #line 9346 "configure" |
10f2d63a VZ |
9346 | #include "confdefs.h" |
9347 | #include <stdio.h> | |
9348 | main() | |
9349 | { | |
9350 | FILE *f=fopen("conftestval", "w"); | |
9351 | if (!f) exit(1); | |
9352 | fprintf(f, "%d\n", sizeof(char)); | |
9353 | exit(0); | |
9354 | } | |
9355 | EOF | |
b0a09421 | 9356 | if { (eval echo configure:9357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9357 | then |
9358 | ac_cv_sizeof_char=`cat conftestval` | |
9359 | else | |
9360 | echo "configure: failed program was:" >&5 | |
9361 | cat conftest.$ac_ext >&5 | |
9362 | rm -fr conftest* | |
9363 | ac_cv_sizeof_char=0 | |
9364 | fi | |
9365 | rm -fr conftest* | |
9366 | fi | |
9367 | ||
9368 | fi | |
9369 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | |
9370 | cat >> confdefs.h <<EOF | |
9371 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
9372 | EOF | |
9373 | ||
9374 | ||
9375 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
b0a09421 | 9376 | echo "configure:9377: checking size of short" >&5 |
10f2d63a VZ |
9377 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
9378 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9379 | else | |
9380 | if test "$cross_compiling" = yes; then | |
9381 | ac_cv_sizeof_short=2 | |
9382 | else | |
9383 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9384 | #line 9385 "configure" |
10f2d63a VZ |
9385 | #include "confdefs.h" |
9386 | #include <stdio.h> | |
9387 | main() | |
9388 | { | |
9389 | FILE *f=fopen("conftestval", "w"); | |
9390 | if (!f) exit(1); | |
9391 | fprintf(f, "%d\n", sizeof(short)); | |
9392 | exit(0); | |
9393 | } | |
9394 | EOF | |
b0a09421 | 9395 | if { (eval echo configure:9396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9396 | then |
9397 | ac_cv_sizeof_short=`cat conftestval` | |
9398 | else | |
9399 | echo "configure: failed program was:" >&5 | |
9400 | cat conftest.$ac_ext >&5 | |
9401 | rm -fr conftest* | |
9402 | ac_cv_sizeof_short=0 | |
9403 | fi | |
9404 | rm -fr conftest* | |
9405 | fi | |
9406 | ||
9407 | fi | |
9408 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
9409 | cat >> confdefs.h <<EOF | |
9410 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
9411 | EOF | |
9412 | ||
9413 | ||
9414 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
b0a09421 | 9415 | echo "configure:9416: checking size of int *" >&5 |
10f2d63a VZ |
9416 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
9417 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9418 | else | |
9419 | if test "$cross_compiling" = yes; then | |
9420 | ac_cv_sizeof_int_p=4 | |
9421 | else | |
9422 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9423 | #line 9424 "configure" |
10f2d63a VZ |
9424 | #include "confdefs.h" |
9425 | #include <stdio.h> | |
9426 | main() | |
9427 | { | |
9428 | FILE *f=fopen("conftestval", "w"); | |
9429 | if (!f) exit(1); | |
9430 | fprintf(f, "%d\n", sizeof(int *)); | |
9431 | exit(0); | |
9432 | } | |
9433 | EOF | |
b0a09421 | 9434 | if { (eval echo configure:9435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9435 | then |
9436 | ac_cv_sizeof_int_p=`cat conftestval` | |
9437 | else | |
9438 | echo "configure: failed program was:" >&5 | |
9439 | cat conftest.$ac_ext >&5 | |
9440 | rm -fr conftest* | |
9441 | ac_cv_sizeof_int_p=0 | |
9442 | fi | |
9443 | rm -fr conftest* | |
9444 | fi | |
9445 | ||
9446 | fi | |
9447 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
9448 | cat >> confdefs.h <<EOF | |
9449 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
9450 | EOF | |
9451 | ||
9452 | ||
9453 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
b0a09421 | 9454 | echo "configure:9455: checking size of int" >&5 |
10f2d63a VZ |
9455 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
9456 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9457 | else | |
9458 | if test "$cross_compiling" = yes; then | |
9459 | ac_cv_sizeof_int=4 | |
9460 | else | |
9461 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9462 | #line 9463 "configure" |
10f2d63a VZ |
9463 | #include "confdefs.h" |
9464 | #include <stdio.h> | |
9465 | main() | |
9466 | { | |
9467 | FILE *f=fopen("conftestval", "w"); | |
9468 | if (!f) exit(1); | |
9469 | fprintf(f, "%d\n", sizeof(int)); | |
9470 | exit(0); | |
9471 | } | |
9472 | EOF | |
b0a09421 | 9473 | if { (eval echo configure:9474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9474 | then |
9475 | ac_cv_sizeof_int=`cat conftestval` | |
9476 | else | |
9477 | echo "configure: failed program was:" >&5 | |
9478 | cat conftest.$ac_ext >&5 | |
9479 | rm -fr conftest* | |
9480 | ac_cv_sizeof_int=0 | |
9481 | fi | |
9482 | rm -fr conftest* | |
9483 | fi | |
9484 | ||
9485 | fi | |
9486 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
9487 | cat >> confdefs.h <<EOF | |
9488 | #define SIZEOF_INT $ac_cv_sizeof_int | |
9489 | EOF | |
9490 | ||
9491 | ||
9492 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
b0a09421 | 9493 | echo "configure:9494: checking size of long" >&5 |
10f2d63a VZ |
9494 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
9495 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9496 | else | |
9497 | if test "$cross_compiling" = yes; then | |
9498 | ac_cv_sizeof_long=4 | |
9499 | else | |
9500 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9501 | #line 9502 "configure" |
10f2d63a VZ |
9502 | #include "confdefs.h" |
9503 | #include <stdio.h> | |
9504 | main() | |
9505 | { | |
9506 | FILE *f=fopen("conftestval", "w"); | |
9507 | if (!f) exit(1); | |
9508 | fprintf(f, "%d\n", sizeof(long)); | |
9509 | exit(0); | |
9510 | } | |
9511 | EOF | |
b0a09421 | 9512 | if { (eval echo configure:9513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9513 | then |
9514 | ac_cv_sizeof_long=`cat conftestval` | |
9515 | else | |
9516 | echo "configure: failed program was:" >&5 | |
9517 | cat conftest.$ac_ext >&5 | |
9518 | rm -fr conftest* | |
9519 | ac_cv_sizeof_long=0 | |
9520 | fi | |
9521 | rm -fr conftest* | |
9522 | fi | |
9523 | ||
9524 | fi | |
9525 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
9526 | cat >> confdefs.h <<EOF | |
9527 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
9528 | EOF | |
9529 | ||
9530 | ||
9531 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
b0a09421 | 9532 | echo "configure:9533: checking size of long long" >&5 |
10f2d63a VZ |
9533 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
9534 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9535 | else | |
9536 | if test "$cross_compiling" = yes; then | |
9537 | ac_cv_sizeof_long_long=0 | |
9538 | else | |
9539 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9540 | #line 9541 "configure" |
10f2d63a VZ |
9541 | #include "confdefs.h" |
9542 | #include <stdio.h> | |
9543 | main() | |
9544 | { | |
9545 | FILE *f=fopen("conftestval", "w"); | |
9546 | if (!f) exit(1); | |
9547 | fprintf(f, "%d\n", sizeof(long long)); | |
9548 | exit(0); | |
9549 | } | |
9550 | EOF | |
b0a09421 | 9551 | if { (eval echo configure:9552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9552 | then |
9553 | ac_cv_sizeof_long_long=`cat conftestval` | |
9554 | else | |
9555 | echo "configure: failed program was:" >&5 | |
9556 | cat conftest.$ac_ext >&5 | |
9557 | rm -fr conftest* | |
9558 | ac_cv_sizeof_long_long=0 | |
9559 | fi | |
9560 | rm -fr conftest* | |
9561 | fi | |
9562 | ||
9563 | fi | |
9564 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
9565 | cat >> confdefs.h <<EOF | |
9566 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
9567 | EOF | |
9568 | ||
9569 | ||
9570 | ||
9571 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
b0a09421 | 9572 | echo "configure:9573: checking whether byte ordering is bigendian" >&5 |
10f2d63a VZ |
9573 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
9574 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9575 | else | |
9576 | ac_cv_c_bigendian=unknown | |
9577 | # See if sys/param.h defines the BYTE_ORDER macro. | |
9578 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9579 | #line 9580 "configure" |
10f2d63a VZ |
9580 | #include "confdefs.h" |
9581 | #include <sys/types.h> | |
9582 | #include <sys/param.h> | |
9583 | int main() { | |
9584 | ||
9585 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
9586 | bogus endian macros | |
9587 | #endif | |
9588 | ; return 0; } | |
9589 | EOF | |
b0a09421 | 9590 | if { (eval echo configure:9591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9591 | rm -rf conftest* |
9592 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
9593 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9594 | #line 9595 "configure" |
10f2d63a VZ |
9595 | #include "confdefs.h" |
9596 | #include <sys/types.h> | |
9597 | #include <sys/param.h> | |
9598 | int main() { | |
9599 | ||
9600 | #if BYTE_ORDER != BIG_ENDIAN | |
9601 | not big endian | |
9602 | #endif | |
9603 | ; return 0; } | |
9604 | EOF | |
b0a09421 | 9605 | if { (eval echo configure:9606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9606 | rm -rf conftest* |
9607 | ac_cv_c_bigendian=yes | |
9608 | else | |
9609 | echo "configure: failed program was:" >&5 | |
9610 | cat conftest.$ac_ext >&5 | |
9611 | rm -rf conftest* | |
9612 | ac_cv_c_bigendian=no | |
9613 | fi | |
9614 | rm -f conftest* | |
9615 | else | |
9616 | echo "configure: failed program was:" >&5 | |
9617 | cat conftest.$ac_ext >&5 | |
9618 | fi | |
9619 | rm -f conftest* | |
9620 | if test $ac_cv_c_bigendian = unknown; then | |
9621 | if test "$cross_compiling" = yes; then | |
9622 | ac_cv_c_bigendian=unknown | |
9623 | else | |
9624 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9625 | #line 9626 "configure" |
10f2d63a VZ |
9626 | #include "confdefs.h" |
9627 | main () { | |
9628 | /* Are we little or big endian? From Harbison&Steele. */ | |
9629 | union | |
9630 | { | |
9631 | long l; | |
9632 | char c[sizeof (long)]; | |
9633 | } u; | |
9634 | u.l = 1; | |
9635 | exit (u.c[sizeof (long) - 1] == 1); | |
9636 | } | |
9637 | EOF | |
b0a09421 | 9638 | if { (eval echo configure:9639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9639 | then |
9640 | ac_cv_c_bigendian=no | |
9641 | else | |
9642 | echo "configure: failed program was:" >&5 | |
9643 | cat conftest.$ac_ext >&5 | |
9644 | rm -fr conftest* | |
9645 | ac_cv_c_bigendian=yes | |
9646 | fi | |
9647 | rm -fr conftest* | |
9648 | fi | |
9649 | ||
9650 | fi | |
9651 | fi | |
9652 | ||
9653 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
9654 | if test $ac_cv_c_bigendian = unknown; then | |
9655 | 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 | |
9656 | fi | |
9657 | if test $ac_cv_c_bigendian = yes; then | |
9658 | cat >> confdefs.h <<\EOF | |
9659 | #define WORDS_BIGENDIAN 1 | |
9660 | EOF | |
9661 | ||
9662 | fi | |
9663 | ||
9664 | ||
9665 | ||
9666 | if test "$cross_compiling" = "yes"; then | |
9667 | cat >> confdefs.h <<\EOF | |
9668 | #define wxUSE_IOSTREAMH 1 | |
9669 | EOF | |
9670 | ||
9671 | else | |
9672 | ||
9673 | ac_ext=C | |
9674 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9675 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9676 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9677 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9678 | cross_compiling=$ac_cv_prog_cxx_cross | |
9679 | ||
9680 | ||
9681 | for ac_hdr in iostream | |
9682 | do | |
9683 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9684 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b0a09421 | 9685 | echo "configure:9686: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9686 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9687 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9688 | else | |
9689 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9690 | #line 9691 "configure" |
10f2d63a VZ |
9691 | #include "confdefs.h" |
9692 | #include <$ac_hdr> | |
9693 | EOF | |
9694 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b0a09421 | 9695 | { (eval echo configure:9696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9696 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9697 | if test -z "$ac_err"; then | |
9698 | rm -rf conftest* | |
9699 | eval "ac_cv_header_$ac_safe=yes" | |
9700 | else | |
9701 | echo "$ac_err" >&5 | |
9702 | echo "configure: failed program was:" >&5 | |
9703 | cat conftest.$ac_ext >&5 | |
9704 | rm -rf conftest* | |
9705 | eval "ac_cv_header_$ac_safe=no" | |
9706 | fi | |
9707 | rm -f conftest* | |
9708 | fi | |
9709 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9710 | echo "$ac_t""yes" 1>&6 | |
9711 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9712 | cat >> confdefs.h <<EOF | |
9713 | #define $ac_tr_hdr 1 | |
9714 | EOF | |
9715 | ||
9716 | else | |
9717 | echo "$ac_t""no" 1>&6 | |
9718 | fi | |
9719 | done | |
9720 | ||
9721 | ||
9722 | if test "x$HAVE_IOSTREAM" = x ; then | |
9723 | cat >> confdefs.h <<\EOF | |
9724 | #define wxUSE_IOSTREAMH 1 | |
9725 | EOF | |
9726 | ||
9727 | else | |
9728 | : | |
9729 | fi | |
9730 | ||
9731 | ac_ext=c | |
9732 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9733 | ac_cpp='$CPP $CPPFLAGS' | |
9734 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9735 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9736 | cross_compiling=$ac_cv_prog_cc_cross | |
9737 | ||
9738 | fi | |
9739 | ||
9740 | ||
9741 | ||
9742 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
b0a09421 | 9743 | echo "configure:9744: checking if C++ compiler supports bool" >&5 |
10f2d63a VZ |
9744 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
9745 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9746 | else | |
9747 | ||
9748 | ||
9749 | ac_ext=C | |
9750 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9751 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9752 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9753 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9754 | cross_compiling=$ac_cv_prog_cxx_cross | |
9755 | ||
9756 | ||
9757 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9758 | #line 9759 "configure" |
10f2d63a VZ |
9759 | #include "confdefs.h" |
9760 | ||
9761 | ||
9762 | int main() { | |
9763 | ||
9764 | bool b = true; | |
9765 | ||
9766 | return 0; | |
9767 | ||
9768 | ; return 0; } | |
9769 | EOF | |
b0a09421 | 9770 | if { (eval echo configure:9771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9771 | rm -rf conftest* |
9772 | ||
9773 | cat >> confdefs.h <<\EOF | |
9774 | #define HAVE_BOOL 1 | |
9775 | EOF | |
9776 | ||
9777 | wx_cv_cpp_bool=yes | |
9778 | ||
9779 | else | |
9780 | echo "configure: failed program was:" >&5 | |
9781 | cat conftest.$ac_ext >&5 | |
9782 | rm -rf conftest* | |
9783 | ||
9784 | wx_cv_cpp_bool=no | |
9785 | ||
9786 | ||
9787 | fi | |
9788 | rm -f conftest* | |
9789 | ||
9790 | ac_ext=c | |
9791 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9792 | ac_cpp='$CPP $CPPFLAGS' | |
9793 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9794 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9795 | cross_compiling=$ac_cv_prog_cc_cross | |
9796 | ||
9797 | ||
9798 | fi | |
9799 | ||
9800 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
9801 | ||
9802 | if test "$wx_cv_cpp_bool" = "yes"; then | |
9803 | cat >> confdefs.h <<\EOF | |
9804 | #define HAVE_BOOL 1 | |
9805 | EOF | |
9806 | ||
9807 | fi | |
9808 | ||
9809 | ||
9810 | ||
10f2d63a | 9811 | echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6 |
b0a09421 | 9812 | echo "configure:9813: checking if you need GNU extensions" >&5 |
10f2d63a VZ |
9813 | if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then |
9814 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9815 | else | |
9816 | ||
9817 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9818 | #line 9819 "configure" |
10f2d63a VZ |
9819 | #include "confdefs.h" |
9820 | #include <features.h> | |
9821 | int main() { | |
9822 | ||
9823 | ||
9824 | #ifndef __GNU_LIBRARY__ | |
9825 | Compile error wanted | |
9826 | #endif | |
9827 | ||
9828 | ||
9829 | ; return 0; } | |
9830 | EOF | |
b0a09421 | 9831 | if { (eval echo configure:9832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9832 | rm -rf conftest* |
9833 | wx_cv_gnu_extensions=yes | |
9834 | else | |
9835 | echo "configure: failed program was:" >&5 | |
9836 | cat conftest.$ac_ext >&5 | |
9837 | rm -rf conftest* | |
9838 | wx_cv_gnu_extensions=no | |
9839 | fi | |
9840 | rm -f conftest* | |
9841 | ||
9842 | fi | |
9843 | ||
9844 | ||
9845 | echo "$ac_t""$wx_cv_gnu_extensions" 1>&6 | |
9846 | if test "$wx_cv_gnu_extensions" = "yes"; then | |
9847 | cat >> confdefs.h <<EOF | |
9848 | #define _GNU_SOURCE 1 | |
9849 | EOF | |
9850 | ||
9851 | fi | |
9852 | ||
9853 | ||
9854 | ||
9855 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
b0a09421 | 9856 | echo "configure:9857: checking for wcslen in -lc" >&5 |
10f2d63a VZ |
9857 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
9858 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9859 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9860 | else | |
9861 | ac_save_LIBS="$LIBS" | |
9862 | LIBS="-lc $LIBS" | |
9863 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9864 | #line 9865 "configure" |
10f2d63a VZ |
9865 | #include "confdefs.h" |
9866 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9867 | /* We use char because int might match the return type of a gcc2 | |
9868 | builtin and then its argument prototype would still apply. */ | |
9869 | char wcslen(); | |
9870 | ||
9871 | int main() { | |
9872 | wcslen() | |
9873 | ; return 0; } | |
9874 | EOF | |
b0a09421 | 9875 | if { (eval echo configure:9876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9876 | rm -rf conftest* |
9877 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9878 | else | |
9879 | echo "configure: failed program was:" >&5 | |
9880 | cat conftest.$ac_ext >&5 | |
9881 | rm -rf conftest* | |
9882 | eval "ac_cv_lib_$ac_lib_var=no" | |
9883 | fi | |
9884 | rm -f conftest* | |
9885 | LIBS="$ac_save_LIBS" | |
9886 | ||
9887 | fi | |
9888 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9889 | echo "$ac_t""yes" 1>&6 | |
9890 | ||
9891 | cat >> confdefs.h <<\EOF | |
9892 | #define HAVE_WCSLEN 1 | |
9893 | EOF | |
9894 | ||
9895 | WCHAR_LINK="" | |
9896 | ||
9897 | else | |
9898 | echo "$ac_t""no" 1>&6 | |
9899 | ||
9900 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
b0a09421 | 9901 | echo "configure:9902: checking for wcslen in -lw" >&5 |
10f2d63a VZ |
9902 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
9903 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9904 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9905 | else | |
9906 | ac_save_LIBS="$LIBS" | |
9907 | LIBS="-lw $LIBS" | |
9908 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9909 | #line 9910 "configure" |
10f2d63a VZ |
9910 | #include "confdefs.h" |
9911 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9912 | /* We use char because int might match the return type of a gcc2 | |
9913 | builtin and then its argument prototype would still apply. */ | |
9914 | char wcslen(); | |
9915 | ||
9916 | int main() { | |
9917 | wcslen() | |
9918 | ; return 0; } | |
9919 | EOF | |
b0a09421 | 9920 | if { (eval echo configure:9921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9921 | rm -rf conftest* |
9922 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9923 | else | |
9924 | echo "configure: failed program was:" >&5 | |
9925 | cat conftest.$ac_ext >&5 | |
9926 | rm -rf conftest* | |
9927 | eval "ac_cv_lib_$ac_lib_var=no" | |
9928 | fi | |
9929 | rm -f conftest* | |
9930 | LIBS="$ac_save_LIBS" | |
9931 | ||
9932 | fi | |
9933 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9934 | echo "$ac_t""yes" 1>&6 | |
9935 | ||
9936 | cat >> confdefs.h <<\EOF | |
9937 | #define HAVE_WCSLEN 1 | |
9938 | EOF | |
9939 | ||
9940 | WCHAR_LINK="-lw" | |
9941 | ||
9942 | else | |
9943 | echo "$ac_t""no" 1>&6 | |
9944 | fi | |
9945 | ||
9946 | ||
9947 | fi | |
9948 | ||
9949 | ||
9950 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
b0a09421 | 9951 | echo "configure:9952: checking for vprintf" >&5 |
10f2d63a VZ |
9952 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
9953 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9954 | else | |
9955 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 9956 | #line 9957 "configure" |
10f2d63a VZ |
9957 | #include "confdefs.h" |
9958 | /* System header to define __stub macros and hopefully few prototypes, | |
9959 | which can conflict with char vprintf(); below. */ | |
9960 | #include <assert.h> | |
9961 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9962 | /* We use char because int might match the return type of a gcc2 | |
9963 | builtin and then its argument prototype would still apply. */ | |
9964 | char vprintf(); | |
9965 | ||
9966 | int main() { | |
9967 | ||
9968 | /* The GNU C library defines this for functions which it implements | |
9969 | to always fail with ENOSYS. Some functions are actually named | |
9970 | something starting with __ and the normal name is an alias. */ | |
9971 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
9972 | choke me | |
9973 | #else | |
e8482f24 | 9974 | vprintf(); |
10f2d63a VZ |
9975 | #endif |
9976 | ||
9977 | ; return 0; } | |
9978 | EOF | |
b0a09421 | 9979 | if { (eval echo configure:9980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9980 | rm -rf conftest* |
9981 | eval "ac_cv_func_vprintf=yes" | |
9982 | else | |
9983 | echo "configure: failed program was:" >&5 | |
9984 | cat conftest.$ac_ext >&5 | |
9985 | rm -rf conftest* | |
9986 | eval "ac_cv_func_vprintf=no" | |
9987 | fi | |
9988 | rm -f conftest* | |
9989 | fi | |
9990 | ||
9991 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
9992 | echo "$ac_t""yes" 1>&6 | |
9993 | cat >> confdefs.h <<\EOF | |
9994 | #define HAVE_VPRINTF 1 | |
9995 | EOF | |
9996 | ||
9997 | else | |
9998 | echo "$ac_t""no" 1>&6 | |
9999 | fi | |
10000 | ||
10001 | if test "$ac_cv_func_vprintf" != yes; then | |
10002 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
b0a09421 | 10003 | echo "configure:10004: checking for _doprnt" >&5 |
10f2d63a VZ |
10004 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
10005 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10006 | else | |
10007 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 10008 | #line 10009 "configure" |
10f2d63a VZ |
10009 | #include "confdefs.h" |
10010 | /* System header to define __stub macros and hopefully few prototypes, | |
10011 | which can conflict with char _doprnt(); below. */ | |
10012 | #include <assert.h> | |
10013 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10014 | /* We use char because int might match the return type of a gcc2 | |
10015 | builtin and then its argument prototype would still apply. */ | |
10016 | char _doprnt(); | |
10017 | ||
10018 | int main() { | |
10019 | ||
10020 | /* The GNU C library defines this for functions which it implements | |
10021 | to always fail with ENOSYS. Some functions are actually named | |
10022 | something starting with __ and the normal name is an alias. */ | |
10023 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
10024 | choke me | |
10025 | #else | |
e8482f24 | 10026 | _doprnt(); |
10f2d63a VZ |
10027 | #endif |
10028 | ||
10029 | ; return 0; } | |
10030 | EOF | |
b0a09421 | 10031 | if { (eval echo configure:10032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10032 | rm -rf conftest* |
10033 | eval "ac_cv_func__doprnt=yes" | |
10034 | else | |
10035 | echo "configure: failed program was:" >&5 | |
10036 | cat conftest.$ac_ext >&5 | |
10037 | rm -rf conftest* | |
10038 | eval "ac_cv_func__doprnt=no" | |
10039 | fi | |
10040 | rm -f conftest* | |
10041 | fi | |
10042 | ||
10043 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
10044 | echo "$ac_t""yes" 1>&6 | |
10045 | cat >> confdefs.h <<\EOF | |
10046 | #define HAVE_DOPRNT 1 | |
10047 | EOF | |
10048 | ||
10049 | else | |
10050 | echo "$ac_t""no" 1>&6 | |
10051 | fi | |
10052 | ||
10053 | fi | |
10054 | ||
10055 | ||
10056 | for ac_func in vsnprintf | |
10057 | do | |
10058 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b0a09421 | 10059 | echo "configure:10060: checking for $ac_func" >&5 |
10f2d63a VZ |
10060 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10061 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10062 | else | |
10063 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 10064 | #line 10065 "configure" |
10f2d63a VZ |
10065 | #include "confdefs.h" |
10066 | /* System header to define __stub macros and hopefully few prototypes, | |
10067 | which can conflict with char $ac_func(); below. */ | |
10068 | #include <assert.h> | |
10069 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10070 | /* We use char because int might match the return type of a gcc2 | |
10071 | builtin and then its argument prototype would still apply. */ | |
10072 | char $ac_func(); | |
10073 | ||
10074 | int main() { | |
10075 | ||
10076 | /* The GNU C library defines this for functions which it implements | |
10077 | to always fail with ENOSYS. Some functions are actually named | |
10078 | something starting with __ and the normal name is an alias. */ | |
10079 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10080 | choke me | |
10081 | #else | |
e8482f24 | 10082 | $ac_func(); |
10f2d63a VZ |
10083 | #endif |
10084 | ||
10085 | ; return 0; } | |
10086 | EOF | |
b0a09421 | 10087 | if { (eval echo configure:10088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10088 | rm -rf conftest* |
10089 | eval "ac_cv_func_$ac_func=yes" | |
10090 | else | |
10091 | echo "configure: failed program was:" >&5 | |
10092 | cat conftest.$ac_ext >&5 | |
10093 | rm -rf conftest* | |
10094 | eval "ac_cv_func_$ac_func=no" | |
10095 | fi | |
10096 | rm -f conftest* | |
10097 | fi | |
10098 | ||
10099 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10100 | echo "$ac_t""yes" 1>&6 | |
10101 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10102 | cat >> confdefs.h <<EOF | |
10103 | #define $ac_tr_func 1 | |
10104 | EOF | |
10105 | cat >> confdefs.h <<\EOF | |
10106 | #define HAVE_VSNPRINTF 1 | |
10107 | EOF | |
10108 | ||
10109 | else | |
10110 | echo "$ac_t""no" 1>&6 | |
10111 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
10112 | ||
10113 | fi | |
10114 | done | |
10115 | ||
10116 | ||
10117 | ||
10118 | ac_ext=C | |
10119 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10120 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10121 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10122 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10123 | cross_compiling=$ac_cv_prog_cxx_cross | |
10124 | ||
10125 | ||
10126 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 | |
b0a09421 | 10127 | echo "configure:10128: checking for vsscanf" >&5 |
10f2d63a VZ |
10128 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
10129 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10130 | else | |
10131 | ||
10132 | if test "$cross_compiling" = yes; then | |
10133 | wx_cv_func_vsscanf=no | |
10134 | ||
10135 | else | |
10136 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 10137 | #line 10138 "configure" |
10f2d63a VZ |
10138 | #include "confdefs.h" |
10139 | #ifdef __cplusplus | |
10140 | extern "C" void exit(int); | |
10141 | #endif | |
10142 | ||
10143 | #include <stdio.h> | |
10144 | #include <stdarg.h> | |
10145 | ||
10146 | int try_vsscanf(const char *format, ...) | |
10147 | { | |
10148 | va_list ap; | |
10149 | va_start(ap, format); | |
10150 | ||
10151 | vsscanf("17", format, ap); | |
10152 | ||
10153 | va_end(ap); | |
10154 | } | |
10155 | ||
10156 | int main() | |
10157 | { | |
10158 | int i; | |
10159 | try_vsscanf("%d", &i); | |
10160 | return i == 17 ? 0 : 1; | |
10161 | } | |
10162 | ||
10163 | EOF | |
b0a09421 | 10164 | if { (eval echo configure:10165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10165 | then |
10166 | ||
10167 | cat >> confdefs.h <<\EOF | |
10168 | #define HAVE_VSSCANF 1 | |
10169 | EOF | |
10170 | ||
10171 | wx_cv_func_vsscanf=yes | |
10172 | ||
10173 | else | |
10174 | echo "configure: failed program was:" >&5 | |
10175 | cat conftest.$ac_ext >&5 | |
10176 | rm -fr conftest* | |
10177 | wx_cv_func_vsscanf=no | |
10178 | fi | |
10179 | rm -fr conftest* | |
10180 | fi | |
10181 | ||
10182 | ||
10183 | fi | |
10184 | ||
10185 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
10186 | ||
10187 | ac_ext=c | |
10188 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10189 | ac_cpp='$CPP $CPPFLAGS' | |
10190 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10191 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10192 | cross_compiling=$ac_cv_prog_cc_cross | |
10193 | ||
10194 | ||
b089607b | 10195 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a VZ |
10196 | |
10197 | for ac_func in vfork | |
10198 | do | |
10199 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b0a09421 | 10200 | echo "configure:10201: checking for $ac_func" >&5 |
10f2d63a VZ |
10201 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10202 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10203 | else | |
10204 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 10205 | #line 10206 "configure" |
10f2d63a VZ |
10206 | #include "confdefs.h" |
10207 | /* System header to define __stub macros and hopefully few prototypes, | |
10208 | which can conflict with char $ac_func(); below. */ | |
10209 | #include <assert.h> | |
10210 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10211 | /* We use char because int might match the return type of a gcc2 | |
10212 | builtin and then its argument prototype would still apply. */ | |
10213 | char $ac_func(); | |
10214 | ||
10215 | int main() { | |
10216 | ||
10217 | /* The GNU C library defines this for functions which it implements | |
10218 | to always fail with ENOSYS. Some functions are actually named | |
10219 | something starting with __ and the normal name is an alias. */ | |
10220 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10221 | choke me | |
10222 | #else | |
e8482f24 | 10223 | $ac_func(); |
10f2d63a VZ |
10224 | #endif |
10225 | ||
10226 | ; return 0; } | |
10227 | EOF | |
b0a09421 | 10228 | if { (eval echo configure:10229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
270a909e VZ |
10229 | rm -rf conftest* |
10230 | eval "ac_cv_func_$ac_func=yes" | |
10231 | else | |
10232 | echo "configure: failed program was:" >&5 | |
10233 | cat conftest.$ac_ext >&5 | |
10234 | rm -rf conftest* | |
10235 | eval "ac_cv_func_$ac_func=no" | |
10236 | fi | |
10237 | rm -f conftest* | |
10238 | fi | |
10239 | ||
10240 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10241 | echo "$ac_t""yes" 1>&6 | |
10242 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10243 | cat >> confdefs.h <<EOF | |
10244 | #define $ac_tr_func 1 | |
10245 | EOF | |
10246 | ||
10247 | else | |
10248 | echo "$ac_t""no" 1>&6 | |
10249 | fi | |
10250 | done | |
10251 | ||
10252 | ||
10253 | for ac_func in timegm | |
10254 | do | |
10255 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b0a09421 | 10256 | echo "configure:10257: checking for $ac_func" >&5 |
270a909e VZ |
10257 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10258 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10259 | else | |
10260 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 10261 | #line 10262 "configure" |
270a909e VZ |
10262 | #include "confdefs.h" |
10263 | /* System header to define __stub macros and hopefully few prototypes, | |
10264 | which can conflict with char $ac_func(); below. */ | |
10265 | #include <assert.h> | |
10266 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10267 | /* We use char because int might match the return type of a gcc2 | |
10268 | builtin and then its argument prototype would still apply. */ | |
10269 | char $ac_func(); | |
10270 | ||
10271 | int main() { | |
10272 | ||
10273 | /* The GNU C library defines this for functions which it implements | |
10274 | to always fail with ENOSYS. Some functions are actually named | |
10275 | something starting with __ and the normal name is an alias. */ | |
10276 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10277 | choke me | |
10278 | #else | |
e8482f24 | 10279 | $ac_func(); |
270a909e VZ |
10280 | #endif |
10281 | ||
10282 | ; return 0; } | |
10283 | EOF | |
b0a09421 | 10284 | if { (eval echo configure:10285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10285 | rm -rf conftest* |
10286 | eval "ac_cv_func_$ac_func=yes" | |
10287 | else | |
10288 | echo "configure: failed program was:" >&5 | |
10289 | cat conftest.$ac_ext >&5 | |
10290 | rm -rf conftest* | |
10291 | eval "ac_cv_func_$ac_func=no" | |
10292 | fi | |
10293 | rm -f conftest* | |
10294 | fi | |
10295 | ||
10296 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10297 | echo "$ac_t""yes" 1>&6 | |
10298 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10299 | cat >> confdefs.h <<EOF | |
10300 | #define $ac_tr_func 1 | |
10301 | EOF | |
10302 | ||
10303 | else | |
10304 | echo "$ac_t""no" 1>&6 | |
10305 | fi | |
10306 | done | |
10307 | ||
10308 | ||
b12915c1 VZ |
10309 | HAVE_SOME_SLEEP_FUNC=0 |
10310 | if test "$USE_BEOS" = 1; then | |
10311 | cat >> confdefs.h <<\EOF | |
10312 | #define HAVE_SLEEP 1 | |
10313 | EOF | |
10314 | ||
10315 | HAVE_SOME_SLEEP_FUNC=1 | |
10316 | fi | |
10317 | ||
10318 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
10319 | POSIX4_LINK= | |
10320 | for ac_func in nanosleep | |
10f2d63a VZ |
10321 | do |
10322 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b0a09421 | 10323 | echo "configure:10324: checking for $ac_func" >&5 |
10f2d63a VZ |
10324 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10325 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10326 | else | |
10327 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 10328 | #line 10329 "configure" |
10f2d63a VZ |
10329 | #include "confdefs.h" |
10330 | /* System header to define __stub macros and hopefully few prototypes, | |
10331 | which can conflict with char $ac_func(); below. */ | |
10332 | #include <assert.h> | |
10333 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10334 | /* We use char because int might match the return type of a gcc2 | |
10335 | builtin and then its argument prototype would still apply. */ | |
10336 | char $ac_func(); | |
10337 | ||
10338 | int main() { | |
10339 | ||
10340 | /* The GNU C library defines this for functions which it implements | |
10341 | to always fail with ENOSYS. Some functions are actually named | |
10342 | something starting with __ and the normal name is an alias. */ | |
10343 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10344 | choke me | |
10345 | #else | |
e8482f24 | 10346 | $ac_func(); |
10f2d63a VZ |
10347 | #endif |
10348 | ||
10349 | ; return 0; } | |
10350 | EOF | |
b0a09421 | 10351 | if { (eval echo configure:10352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10352 | rm -rf conftest* |
10353 | eval "ac_cv_func_$ac_func=yes" | |
10354 | else | |
10355 | echo "configure: failed program was:" >&5 | |
10356 | cat conftest.$ac_ext >&5 | |
10357 | rm -rf conftest* | |
10358 | eval "ac_cv_func_$ac_func=no" | |
10359 | fi | |
10360 | rm -f conftest* | |
10361 | fi | |
10362 | ||
10363 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10364 | echo "$ac_t""yes" 1>&6 | |
10365 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10366 | cat >> confdefs.h <<EOF | |
10367 | #define $ac_tr_func 1 | |
10368 | EOF | |
10369 | cat >> confdefs.h <<\EOF | |
10370 | #define HAVE_NANOSLEEP 1 | |
10371 | EOF | |
10372 | ||
10373 | else | |
10374 | echo "$ac_t""no" 1>&6 | |
10375 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
b0a09421 | 10376 | echo "configure:10377: checking for nanosleep in -lposix4" >&5 |
10f2d63a VZ |
10377 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
10378 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10379 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10380 | else | |
10381 | ac_save_LIBS="$LIBS" | |
10382 | LIBS="-lposix4 $LIBS" | |
10383 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 10384 | #line 10385 "configure" |
10f2d63a VZ |
10385 | #include "confdefs.h" |
10386 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10387 | /* We use char because int might match the return type of a gcc2 | |
10388 | builtin and then its argument prototype would still apply. */ | |
10389 | char nanosleep(); | |
10390 | ||
10391 | int main() { | |
10392 | nanosleep() | |
10393 | ; return 0; } | |
10394 | EOF | |
b0a09421 | 10395 | if { (eval echo configure:10396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10396 | rm -rf conftest* |
10397 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10398 | else | |
10399 | echo "configure: failed program was:" >&5 | |
10400 | cat conftest.$ac_ext >&5 | |
10401 | rm -rf conftest* | |
10402 | eval "ac_cv_lib_$ac_lib_var=no" | |
10403 | fi | |
10404 | rm -f conftest* | |
10405 | LIBS="$ac_save_LIBS" | |
10406 | ||
10407 | fi | |
10408 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10409 | echo "$ac_t""yes" 1>&6 | |
10410 | ||
b12915c1 | 10411 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
10412 | #define HAVE_NANOSLEEP 1 |
10413 | EOF | |
10414 | ||
b12915c1 VZ |
10415 | POSIX4_LINK="-lposix4" |
10416 | ||
10f2d63a VZ |
10417 | else |
10418 | echo "$ac_t""no" 1>&6 | |
10419 | ||
b12915c1 | 10420 | for ac_func in usleep |
10f2d63a VZ |
10421 | do |
10422 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b0a09421 | 10423 | echo "configure:10424: checking for $ac_func" >&5 |
10f2d63a VZ |
10424 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10425 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10426 | else | |
10427 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 10428 | #line 10429 "configure" |
10f2d63a VZ |
10429 | #include "confdefs.h" |
10430 | /* System header to define __stub macros and hopefully few prototypes, | |
10431 | which can conflict with char $ac_func(); below. */ | |
10432 | #include <assert.h> | |
10433 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10434 | /* We use char because int might match the return type of a gcc2 | |
10435 | builtin and then its argument prototype would still apply. */ | |
10436 | char $ac_func(); | |
10437 | ||
10438 | int main() { | |
10439 | ||
10440 | /* The GNU C library defines this for functions which it implements | |
10441 | to always fail with ENOSYS. Some functions are actually named | |
10442 | something starting with __ and the normal name is an alias. */ | |
10443 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10444 | choke me | |
10445 | #else | |
e8482f24 | 10446 | $ac_func(); |
10f2d63a VZ |
10447 | #endif |
10448 | ||
10449 | ; return 0; } | |
10450 | EOF | |
b0a09421 | 10451 | if { (eval echo configure:10452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10452 | rm -rf conftest* |
10453 | eval "ac_cv_func_$ac_func=yes" | |
10454 | else | |
10455 | echo "configure: failed program was:" >&5 | |
10456 | cat conftest.$ac_ext >&5 | |
10457 | rm -rf conftest* | |
10458 | eval "ac_cv_func_$ac_func=no" | |
10459 | fi | |
10460 | rm -f conftest* | |
10461 | fi | |
10462 | ||
10463 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10464 | echo "$ac_t""yes" 1>&6 | |
10465 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10466 | cat >> confdefs.h <<EOF | |
10467 | #define $ac_tr_func 1 | |
10468 | EOF | |
b12915c1 | 10469 | |
10f2d63a VZ |
10470 | else |
10471 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10472 | fi |
10473 | done | |
10474 | ||
b12915c1 VZ |
10475 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
10476 | ||
10477 | ||
10f2d63a VZ |
10478 | fi |
10479 | ||
b12915c1 VZ |
10480 | |
10481 | ||
10f2d63a VZ |
10482 | fi |
10483 | done | |
10484 | ||
b12915c1 | 10485 | fi |
10f2d63a VZ |
10486 | |
10487 | for ac_func in uname gethostname | |
10488 | do | |
10489 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b0a09421 | 10490 | echo "configure:10491: checking for $ac_func" >&5 |
10f2d63a VZ |
10491 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10492 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10493 | else | |
10494 | cat > conftest.$ac_ext <<EOF | |
b0a09421 | 10495 | #line 10496 "configure" |
10f2d63a VZ |
10496 | #include "confdefs.h" |
10497 | /* System header to define __stub macros and hopefully few prototypes, | |
10498 | which can conflict with char $ac_func(); below. */ | |
10499 | #include <assert.h> | |
10500 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10501 | /* We use char because int might match the return type of a gcc2 | |
10502 | builtin and then its argument prototype would still apply. */ | |
10503 | char $ac_func(); | |
10504 | ||
10505 | int main() { | |
10506 | ||
10507 | /* The GNU C library defines this for functions which it implements | |
10508 | to always fail with ENOSYS. Some functions are actually named | |
10509 | something starting with __ and the normal name is an alias. */ | |
10510 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10511 | choke me | |
10512 | #else | |
e8482f24 | 10513 | $ac_func(); |
10f2d63a VZ |
10514 | #endif |
10515 | ||
10516 | ; return 0; } | |
10517 | EOF | |
b0a09421 | 10518 | if { (eval echo configure:10519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10519 | rm -rf conftest* |
10520 | eval "ac_cv_func_$ac_func=yes" | |
10521 | else | |
10522 | echo "configure: failed program was:" >&5 | |
10523 | cat conftest.$ac_ext >&5 | |
10524 | rm -rf conftest* | |
10525 | eval "ac_cv_func_$ac_func=no" | |
10526 | fi | |
10527 | rm -f conftest* | |
10528 | fi | |
10529 | ||
10530 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10531 | echo "$ac_t""yes" 1>&6 | |
10532 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10533 | cat >> confdefs.h <<EOF | |
10534 | #define $ac_tr_func 1 | |
10535 | EOF | |
10536 | break | |
10537 | else | |
10538 | echo "$ac_t""no" 1>&6 | |
10539 | fi | |
10540 | done | |
10541 | ||
10542 | ||
6098c7f9 VZ |
10543 | |
10544 | ac_ext=C | |
10545 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10546 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10547 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10548 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10549 | cross_compiling=$ac_cv_prog_cxx_cross | |
10550 | ||
10551 | ||
10f2d63a VZ |
10552 | for ac_func in strtok_r |
10553 | do | |
10554 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
6098c7f9 | 10555 | echo "configure:10556: checking for $ac_func" >&5 |
10f2d63a VZ |
10556 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10557 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10558 | else | |
10559 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 10560 | #line 10561 "configure" |
10f2d63a VZ |
10561 | #include "confdefs.h" |
10562 | /* System header to define __stub macros and hopefully few prototypes, | |
10563 | which can conflict with char $ac_func(); below. */ | |
10564 | #include <assert.h> | |
10565 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6098c7f9 VZ |
10566 | #ifdef __cplusplus |
10567 | extern "C" | |
10568 | #endif | |
10f2d63a VZ |
10569 | /* We use char because int might match the return type of a gcc2 |
10570 | builtin and then its argument prototype would still apply. */ | |
10571 | char $ac_func(); | |
10572 | ||
10573 | int main() { | |
10574 | ||
10575 | /* The GNU C library defines this for functions which it implements | |
10576 | to always fail with ENOSYS. Some functions are actually named | |
10577 | something starting with __ and the normal name is an alias. */ | |
10578 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10579 | choke me | |
10580 | #else | |
e8482f24 | 10581 | $ac_func(); |
10f2d63a VZ |
10582 | #endif |
10583 | ||
10584 | ; return 0; } | |
10585 | EOF | |
6098c7f9 | 10586 | if { (eval echo configure:10587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10587 | rm -rf conftest* |
10588 | eval "ac_cv_func_$ac_func=yes" | |
10589 | else | |
10590 | echo "configure: failed program was:" >&5 | |
10591 | cat conftest.$ac_ext >&5 | |
10592 | rm -rf conftest* | |
10593 | eval "ac_cv_func_$ac_func=no" | |
10594 | fi | |
10595 | rm -f conftest* | |
10596 | fi | |
10597 | ||
10598 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10599 | echo "$ac_t""yes" 1>&6 | |
10600 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10601 | cat >> confdefs.h <<EOF | |
10602 | #define $ac_tr_func 1 | |
10603 | EOF | |
10604 | ||
10605 | else | |
10606 | echo "$ac_t""no" 1>&6 | |
10607 | fi | |
10608 | done | |
10609 | ||
10610 | ||
6098c7f9 VZ |
10611 | ac_ext=c |
10612 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10613 | ac_cpp='$CPP $CPPFLAGS' | |
10614 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10615 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10616 | cross_compiling=$ac_cv_prog_cc_cross | |
10617 | ||
10618 | ||
c63c7106 | 10619 | INET_LINK= |
10f2d63a VZ |
10620 | for ac_func in inet_addr |
10621 | do | |
10622 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
6098c7f9 | 10623 | echo "configure:10624: checking for $ac_func" >&5 |
10f2d63a VZ |
10624 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10625 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10626 | else | |
10627 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 10628 | #line 10629 "configure" |
10f2d63a VZ |
10629 | #include "confdefs.h" |
10630 | /* System header to define __stub macros and hopefully few prototypes, | |
10631 | which can conflict with char $ac_func(); below. */ | |
10632 | #include <assert.h> | |
10633 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10634 | /* We use char because int might match the return type of a gcc2 | |
10635 | builtin and then its argument prototype would still apply. */ | |
10636 | char $ac_func(); | |
10637 | ||
10638 | int main() { | |
10639 | ||
10640 | /* The GNU C library defines this for functions which it implements | |
10641 | to always fail with ENOSYS. Some functions are actually named | |
10642 | something starting with __ and the normal name is an alias. */ | |
10643 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10644 | choke me | |
10645 | #else | |
e8482f24 | 10646 | $ac_func(); |
10f2d63a VZ |
10647 | #endif |
10648 | ||
10649 | ; return 0; } | |
10650 | EOF | |
6098c7f9 | 10651 | if { (eval echo configure:10652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10652 | rm -rf conftest* |
10653 | eval "ac_cv_func_$ac_func=yes" | |
10654 | else | |
10655 | echo "configure: failed program was:" >&5 | |
10656 | cat conftest.$ac_ext >&5 | |
10657 | rm -rf conftest* | |
10658 | eval "ac_cv_func_$ac_func=no" | |
10659 | fi | |
10660 | rm -f conftest* | |
10661 | fi | |
10662 | ||
10663 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10664 | echo "$ac_t""yes" 1>&6 | |
10665 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10666 | cat >> confdefs.h <<EOF | |
10667 | #define $ac_tr_func 1 | |
10668 | EOF | |
c63c7106 VZ |
10669 | cat >> confdefs.h <<\EOF |
10670 | #define HAVE_INET_ADDR 1 | |
10671 | EOF | |
10672 | ||
10f2d63a VZ |
10673 | else |
10674 | echo "$ac_t""no" 1>&6 | |
c63c7106 | 10675 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
6098c7f9 | 10676 | echo "configure:10677: checking for inet_addr in -lnsl" >&5 |
c63c7106 VZ |
10677 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
10678 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10679 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10680 | else | |
10681 | ac_save_LIBS="$LIBS" | |
10682 | LIBS="-lnsl $LIBS" | |
10683 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 10684 | #line 10685 "configure" |
c63c7106 VZ |
10685 | #include "confdefs.h" |
10686 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10687 | /* We use char because int might match the return type of a gcc2 | |
10688 | builtin and then its argument prototype would still apply. */ | |
10689 | char inet_addr(); | |
10690 | ||
10691 | int main() { | |
10692 | inet_addr() | |
10693 | ; return 0; } | |
10694 | EOF | |
6098c7f9 | 10695 | if { (eval echo configure:10696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
10696 | rm -rf conftest* |
10697 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10698 | else | |
10699 | echo "configure: failed program was:" >&5 | |
10700 | cat conftest.$ac_ext >&5 | |
10701 | rm -rf conftest* | |
10702 | eval "ac_cv_lib_$ac_lib_var=no" | |
10703 | fi | |
10704 | rm -f conftest* | |
10705 | LIBS="$ac_save_LIBS" | |
10706 | ||
10707 | fi | |
10708 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10709 | echo "$ac_t""yes" 1>&6 | |
10710 | INET_LINK="nsl" | |
10711 | else | |
10712 | echo "$ac_t""no" 1>&6 | |
10713 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
6098c7f9 | 10714 | echo "configure:10715: checking for inet_addr in -lresolv" >&5 |
c63c7106 VZ |
10715 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
10716 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10717 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10718 | else | |
10719 | ac_save_LIBS="$LIBS" | |
10720 | LIBS="-lresolv $LIBS" | |
10721 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 10722 | #line 10723 "configure" |
c63c7106 VZ |
10723 | #include "confdefs.h" |
10724 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10725 | /* We use char because int might match the return type of a gcc2 | |
10726 | builtin and then its argument prototype would still apply. */ | |
10727 | char inet_addr(); | |
10728 | ||
10729 | int main() { | |
10730 | inet_addr() | |
10731 | ; return 0; } | |
10732 | EOF | |
6098c7f9 | 10733 | if { (eval echo configure:10734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
10734 | rm -rf conftest* |
10735 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10736 | else | |
10737 | echo "configure: failed program was:" >&5 | |
10738 | cat conftest.$ac_ext >&5 | |
10739 | rm -rf conftest* | |
10740 | eval "ac_cv_lib_$ac_lib_var=no" | |
10741 | fi | |
10742 | rm -f conftest* | |
10743 | LIBS="$ac_save_LIBS" | |
10744 | ||
10745 | fi | |
10746 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10747 | echo "$ac_t""yes" 1>&6 | |
10748 | INET_LINK="resolv" | |
10749 | ||
10750 | else | |
10751 | echo "$ac_t""no" 1>&6 | |
10752 | fi | |
10753 | ||
10754 | ||
10755 | fi | |
10756 | ||
10757 | ||
10758 | ||
10f2d63a VZ |
10759 | fi |
10760 | done | |
10761 | ||
c63c7106 | 10762 | |
10f2d63a VZ |
10763 | for ac_func in inet_aton |
10764 | do | |
10765 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
6098c7f9 | 10766 | echo "configure:10767: checking for $ac_func" >&5 |
10f2d63a VZ |
10767 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10768 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10769 | else | |
10770 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 10771 | #line 10772 "configure" |
10f2d63a VZ |
10772 | #include "confdefs.h" |
10773 | /* System header to define __stub macros and hopefully few prototypes, | |
10774 | which can conflict with char $ac_func(); below. */ | |
10775 | #include <assert.h> | |
10776 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10777 | /* We use char because int might match the return type of a gcc2 | |
10778 | builtin and then its argument prototype would still apply. */ | |
10779 | char $ac_func(); | |
10780 | ||
10781 | int main() { | |
10782 | ||
10783 | /* The GNU C library defines this for functions which it implements | |
10784 | to always fail with ENOSYS. Some functions are actually named | |
10785 | something starting with __ and the normal name is an alias. */ | |
10786 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10787 | choke me | |
10788 | #else | |
e8482f24 | 10789 | $ac_func(); |
10f2d63a VZ |
10790 | #endif |
10791 | ||
10792 | ; return 0; } | |
10793 | EOF | |
6098c7f9 | 10794 | if { (eval echo configure:10795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10795 | rm -rf conftest* |
10796 | eval "ac_cv_func_$ac_func=yes" | |
10797 | else | |
10798 | echo "configure: failed program was:" >&5 | |
10799 | cat conftest.$ac_ext >&5 | |
10800 | rm -rf conftest* | |
10801 | eval "ac_cv_func_$ac_func=no" | |
10802 | fi | |
10803 | rm -f conftest* | |
10804 | fi | |
10805 | ||
10806 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10807 | echo "$ac_t""yes" 1>&6 | |
10808 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10809 | cat >> confdefs.h <<EOF | |
10810 | #define $ac_tr_func 1 | |
10811 | EOF | |
c63c7106 VZ |
10812 | cat >> confdefs.h <<\EOF |
10813 | #define HAVE_INET_ATON 1 | |
10814 | EOF | |
10815 | ||
10f2d63a VZ |
10816 | else |
10817 | echo "$ac_t""no" 1>&6 | |
c63c7106 | 10818 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
6098c7f9 | 10819 | echo "configure:10820: checking for inet_aton in -l$INET_LINK" >&5 |
c63c7106 | 10820 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
10821 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
10822 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10823 | else | |
10824 | ac_save_LIBS="$LIBS" | |
c63c7106 | 10825 | LIBS="-l$INET_LINK $LIBS" |
10f2d63a | 10826 | cat > conftest.$ac_ext <<EOF |
6098c7f9 | 10827 | #line 10828 "configure" |
10f2d63a VZ |
10828 | #include "confdefs.h" |
10829 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10830 | /* We use char because int might match the return type of a gcc2 | |
10831 | builtin and then its argument prototype would still apply. */ | |
10832 | char inet_aton(); | |
10833 | ||
10834 | int main() { | |
10835 | inet_aton() | |
10836 | ; return 0; } | |
10837 | EOF | |
6098c7f9 | 10838 | if { (eval echo configure:10839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10839 | rm -rf conftest* |
10840 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10841 | else | |
10842 | echo "configure: failed program was:" >&5 | |
10843 | cat conftest.$ac_ext >&5 | |
10844 | rm -rf conftest* | |
10845 | eval "ac_cv_lib_$ac_lib_var=no" | |
10846 | fi | |
10847 | rm -f conftest* | |
10848 | LIBS="$ac_save_LIBS" | |
10849 | ||
10850 | fi | |
10851 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10852 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
10853 | cat >> confdefs.h <<\EOF |
10854 | #define HAVE_INET_ATON 1 | |
10f2d63a VZ |
10855 | EOF |
10856 | ||
10f2d63a VZ |
10857 | else |
10858 | echo "$ac_t""no" 1>&6 | |
10859 | fi | |
10860 | ||
c63c7106 VZ |
10861 | |
10862 | fi | |
10863 | done | |
10864 | ||
10865 | ||
10866 | if test "x$INET_LINK" != "x"; then | |
10867 | cat >> confdefs.h <<\EOF | |
10868 | #define HAVE_INET_ADDR 1 | |
10869 | EOF | |
10870 | ||
10871 | INET_LINK="-l$INET_LINK" | |
10872 | fi | |
10f2d63a VZ |
10873 | |
10874 | fi | |
10875 | ||
10876 | ||
10877 | cat > confcache <<\EOF | |
10878 | # This file is a shell script that caches the results of configure | |
10879 | # tests run on this system so they can be shared between configure | |
10880 | # scripts and configure runs. It is not useful on other systems. | |
10881 | # If it contains results you don't want to keep, you may remove or edit it. | |
10882 | # | |
10883 | # By default, configure uses ./config.cache as the cache file, | |
10884 | # creating it if it does not exist already. You can give configure | |
10885 | # the --cache-file=FILE option to use a different cache file; that is | |
10886 | # what configure does when it calls configure scripts in | |
10887 | # subdirectories, so they share the cache. | |
10888 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
10889 | # config.status only pays attention to the cache file if you give it the | |
10890 | # --recheck option to rerun configure. | |
10891 | # | |
10892 | EOF | |
10893 | # The following way of writing the cache mishandles newlines in values, | |
10894 | # but we know of no workaround that is simple, portable, and efficient. | |
10895 | # So, don't put newlines in cache variables' values. | |
10896 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10897 | # and sets the high bit in the cache file unless we assign to the vars. | |
10898 | (set) 2>&1 | | |
10899 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10900 | *ac_space=\ *) | |
10901 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
10902 | # turns \\\\ into \\, and sed turns \\ into \). | |
10903 | sed -n \ | |
10904 | -e "s/'/'\\\\''/g" \ | |
10905 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
10906 | ;; | |
10907 | *) | |
10908 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10909 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
10910 | ;; | |
10911 | esac >> confcache | |
10912 | if cmp -s $cache_file confcache; then | |
10913 | : | |
10914 | else | |
10915 | if test -w $cache_file; then | |
10916 | echo "updating cache $cache_file" | |
10917 | cat confcache > $cache_file | |
10918 | else | |
10919 | echo "not updating unwritable cache $cache_file" | |
10920 | fi | |
10921 | fi | |
10922 | rm -f confcache | |
10923 | ||
10924 | ||
10925 | ||
b089607b | 10926 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a VZ |
10927 | |
10928 | ||
10929 | THREADS_LINK="" | |
10930 | THREADS_OBJ="" | |
10931 | ||
10932 | if test "$wxUSE_THREADS" = "yes" ; then | |
10933 | if test "$wxUSE_WINE" = 1 ; then | |
10934 | echo "configure: warning: Threads are not supported under WINE" 1>&2 | |
10935 | wxUSE_THREADS="no" | |
b12915c1 VZ |
10936 | elif test "$USE_BEOS" = 1; then |
10937 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 | |
10938 | wxUSE_THREADS="no" | |
10f2d63a VZ |
10939 | fi |
10940 | fi | |
10941 | ||
10942 | if test "$wxUSE_THREADS" = "yes" ; then | |
10943 | ||
10944 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 | |
6098c7f9 | 10945 | echo "configure:10946: checking for pthread_create in -lpthread" >&5 |
10f2d63a VZ |
10946 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
10947 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10948 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10949 | else | |
10950 | ac_save_LIBS="$LIBS" | |
10951 | LIBS="-lpthread $LIBS" | |
10952 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 10953 | #line 10954 "configure" |
10f2d63a VZ |
10954 | #include "confdefs.h" |
10955 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10956 | /* We use char because int might match the return type of a gcc2 | |
10957 | builtin and then its argument prototype would still apply. */ | |
10958 | char pthread_create(); | |
10959 | ||
10960 | int main() { | |
10961 | pthread_create() | |
10962 | ; return 0; } | |
10963 | EOF | |
6098c7f9 | 10964 | if { (eval echo configure:10965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10965 | rm -rf conftest* |
10966 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10967 | else | |
10968 | echo "configure: failed program was:" >&5 | |
10969 | cat conftest.$ac_ext >&5 | |
10970 | rm -rf conftest* | |
10971 | eval "ac_cv_lib_$ac_lib_var=no" | |
10972 | fi | |
10973 | rm -f conftest* | |
10974 | LIBS="$ac_save_LIBS" | |
10975 | ||
10976 | fi | |
10977 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10978 | echo "$ac_t""yes" 1>&6 | |
10979 | ||
10980 | THREADS_OBJ="threadpsx.lo" | |
10981 | THREADS_LINK="pthread" | |
10982 | ||
10983 | else | |
10984 | echo "$ac_t""no" 1>&6 | |
10985 | ||
10986 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 | |
6098c7f9 | 10987 | echo "configure:10988: checking for pthread_create in -lc_r" >&5 |
10f2d63a VZ |
10988 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
10989 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10990 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10991 | else | |
10992 | ac_save_LIBS="$LIBS" | |
10993 | LIBS="-lc_r $LIBS" | |
10994 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 10995 | #line 10996 "configure" |
10f2d63a VZ |
10996 | #include "confdefs.h" |
10997 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10998 | /* We use char because int might match the return type of a gcc2 | |
10999 | builtin and then its argument prototype would still apply. */ | |
11000 | char pthread_create(); | |
11001 | ||
11002 | int main() { | |
11003 | pthread_create() | |
11004 | ; return 0; } | |
11005 | EOF | |
6098c7f9 | 11006 | if { (eval echo configure:11007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11007 | rm -rf conftest* |
11008 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11009 | else | |
11010 | echo "configure: failed program was:" >&5 | |
11011 | cat conftest.$ac_ext >&5 | |
11012 | rm -rf conftest* | |
11013 | eval "ac_cv_lib_$ac_lib_var=no" | |
11014 | fi | |
11015 | rm -f conftest* | |
11016 | LIBS="$ac_save_LIBS" | |
11017 | ||
11018 | fi | |
11019 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11020 | echo "$ac_t""yes" 1>&6 | |
11021 | ||
11022 | THREADS_OBJ="threadpsx.lo" | |
11023 | THREADS_LINK="c_r" | |
11024 | ||
11025 | else | |
11026 | echo "$ac_t""no" 1>&6 | |
11027 | ||
11028 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` | |
11029 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
6098c7f9 | 11030 | echo "configure:11031: checking for sys/prctl.h" >&5 |
10f2d63a VZ |
11031 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11032 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11033 | else | |
11034 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 11035 | #line 11036 "configure" |
10f2d63a VZ |
11036 | #include "confdefs.h" |
11037 | #include <sys/prctl.h> | |
11038 | EOF | |
11039 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6098c7f9 | 11040 | { (eval echo configure:11041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
11041 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11042 | if test -z "$ac_err"; then | |
11043 | rm -rf conftest* | |
11044 | eval "ac_cv_header_$ac_safe=yes" | |
11045 | else | |
11046 | echo "$ac_err" >&5 | |
11047 | echo "configure: failed program was:" >&5 | |
11048 | cat conftest.$ac_ext >&5 | |
11049 | rm -rf conftest* | |
11050 | eval "ac_cv_header_$ac_safe=no" | |
11051 | fi | |
11052 | rm -f conftest* | |
11053 | fi | |
11054 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11055 | echo "$ac_t""yes" 1>&6 | |
11056 | ||
11057 | THREADS_OBJ="threadsgi.lo" | |
11058 | ||
11059 | else | |
11060 | echo "$ac_t""no" 1>&6 | |
11061 | fi | |
11062 | ||
11063 | ||
11064 | fi | |
11065 | ||
11066 | ||
11067 | fi | |
11068 | ||
11069 | ||
11070 | if test -z "$THREADS_OBJ" ; then | |
11071 | wxUSE_THREADS=no | |
11072 | echo "configure: warning: No thread support on this system" 1>&2 | |
11073 | fi | |
11074 | fi | |
11075 | ||
11076 | if test "$wxUSE_THREADS" = "yes" ; then | |
70846f0a VZ |
11077 | for ac_func in thr_setconcurrency |
11078 | do | |
11079 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
6098c7f9 | 11080 | echo "configure:11081: checking for $ac_func" >&5 |
70846f0a VZ |
11081 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11082 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11083 | else | |
11084 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 11085 | #line 11086 "configure" |
70846f0a VZ |
11086 | #include "confdefs.h" |
11087 | /* System header to define __stub macros and hopefully few prototypes, | |
11088 | which can conflict with char $ac_func(); below. */ | |
11089 | #include <assert.h> | |
11090 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11091 | /* We use char because int might match the return type of a gcc2 | |
11092 | builtin and then its argument prototype would still apply. */ | |
11093 | char $ac_func(); | |
11094 | ||
11095 | int main() { | |
11096 | ||
11097 | /* The GNU C library defines this for functions which it implements | |
11098 | to always fail with ENOSYS. Some functions are actually named | |
11099 | something starting with __ and the normal name is an alias. */ | |
11100 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11101 | choke me | |
11102 | #else | |
e8482f24 | 11103 | $ac_func(); |
70846f0a VZ |
11104 | #endif |
11105 | ||
11106 | ; return 0; } | |
11107 | EOF | |
6098c7f9 | 11108 | if { (eval echo configure:11109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
70846f0a VZ |
11109 | rm -rf conftest* |
11110 | eval "ac_cv_func_$ac_func=yes" | |
11111 | else | |
11112 | echo "configure: failed program was:" >&5 | |
11113 | cat conftest.$ac_ext >&5 | |
11114 | rm -rf conftest* | |
11115 | eval "ac_cv_func_$ac_func=no" | |
11116 | fi | |
11117 | rm -f conftest* | |
11118 | fi | |
11119 | ||
11120 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11121 | echo "$ac_t""yes" 1>&6 | |
11122 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11123 | cat >> confdefs.h <<EOF | |
11124 | #define $ac_tr_func 1 | |
11125 | EOF | |
11126 | ||
11127 | else | |
11128 | echo "$ac_t""no" 1>&6 | |
11129 | fi | |
11130 | done | |
11131 | ||
11132 | ||
10f2d63a VZ |
11133 | |
11134 | for ac_hdr in sched.h | |
11135 | do | |
11136 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11137 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6098c7f9 | 11138 | echo "configure:11139: checking for $ac_hdr" >&5 |
10f2d63a VZ |
11139 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11140 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11141 | else | |
11142 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 11143 | #line 11144 "configure" |
10f2d63a VZ |
11144 | #include "confdefs.h" |
11145 | #include <$ac_hdr> | |
11146 | EOF | |
11147 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6098c7f9 | 11148 | { (eval echo configure:11149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
11149 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11150 | if test -z "$ac_err"; then | |
11151 | rm -rf conftest* | |
11152 | eval "ac_cv_header_$ac_safe=yes" | |
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 | eval "ac_cv_header_$ac_safe=no" | |
11159 | fi | |
11160 | rm -f conftest* | |
11161 | fi | |
11162 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11163 | echo "$ac_t""yes" 1>&6 | |
11164 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11165 | cat >> confdefs.h <<EOF | |
11166 | #define $ac_tr_hdr 1 | |
11167 | EOF | |
11168 | ||
11169 | else | |
11170 | echo "$ac_t""no" 1>&6 | |
11171 | fi | |
11172 | done | |
11173 | ||
11174 | ||
11175 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
6098c7f9 | 11176 | echo "configure:11177: checking for sched_yield in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
11177 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
11178 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11179 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11180 | else | |
11181 | ac_save_LIBS="$LIBS" | |
11182 | LIBS="-l$THREADS_LINK $LIBS" | |
11183 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 11184 | #line 11185 "configure" |
10f2d63a VZ |
11185 | #include "confdefs.h" |
11186 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11187 | /* We use char because int might match the return type of a gcc2 | |
11188 | builtin and then its argument prototype would still apply. */ | |
11189 | char sched_yield(); | |
11190 | ||
11191 | int main() { | |
11192 | sched_yield() | |
11193 | ; return 0; } | |
11194 | EOF | |
6098c7f9 | 11195 | if { (eval echo configure:11196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11196 | rm -rf conftest* |
11197 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11198 | else | |
11199 | echo "configure: failed program was:" >&5 | |
11200 | cat conftest.$ac_ext >&5 | |
11201 | rm -rf conftest* | |
11202 | eval "ac_cv_lib_$ac_lib_var=no" | |
11203 | fi | |
11204 | rm -f conftest* | |
11205 | LIBS="$ac_save_LIBS" | |
11206 | ||
11207 | fi | |
11208 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11209 | echo "$ac_t""yes" 1>&6 | |
11210 | cat >> confdefs.h <<\EOF | |
11211 | #define HAVE_SCHED_YIELD 1 | |
11212 | EOF | |
11213 | ||
11214 | else | |
11215 | echo "$ac_t""no" 1>&6 | |
11216 | echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6 | |
6098c7f9 | 11217 | echo "configure:11218: checking for sched_yield in -l"posix4"" >&5 |
10f2d63a VZ |
11218 | ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'` |
11219 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11220 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11221 | else | |
11222 | ac_save_LIBS="$LIBS" | |
11223 | LIBS="-l"posix4" $LIBS" | |
11224 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 11225 | #line 11226 "configure" |
10f2d63a VZ |
11226 | #include "confdefs.h" |
11227 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11228 | /* We use char because int might match the return type of a gcc2 | |
11229 | builtin and then its argument prototype would still apply. */ | |
11230 | char sched_yield(); | |
11231 | ||
11232 | int main() { | |
11233 | sched_yield() | |
11234 | ; return 0; } | |
11235 | EOF | |
6098c7f9 | 11236 | if { (eval echo configure:11237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11237 | rm -rf conftest* |
11238 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11239 | else | |
11240 | echo "configure: failed program was:" >&5 | |
11241 | cat conftest.$ac_ext >&5 | |
11242 | rm -rf conftest* | |
11243 | eval "ac_cv_lib_$ac_lib_var=no" | |
11244 | fi | |
11245 | rm -f conftest* | |
11246 | LIBS="$ac_save_LIBS" | |
11247 | ||
11248 | fi | |
11249 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11250 | echo "$ac_t""yes" 1>&6 | |
11251 | cat >> confdefs.h <<\EOF | |
11252 | #define HAVE_SCHED_YIELD 1 | |
11253 | EOF | |
11254 | POSIX4_LINK="-lposix4" | |
11255 | else | |
11256 | echo "$ac_t""no" 1>&6 | |
11257 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
11258 | ||
11259 | fi | |
11260 | ||
11261 | ||
11262 | fi | |
11263 | ||
11264 | ||
11265 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
6098c7f9 | 11266 | echo "configure:11267: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
11267 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
11268 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11269 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11270 | else | |
11271 | ac_save_LIBS="$LIBS" | |
11272 | LIBS="-l$THREADS_LINK $LIBS" | |
11273 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 11274 | #line 11275 "configure" |
10f2d63a VZ |
11275 | #include "confdefs.h" |
11276 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11277 | /* We use char because int might match the return type of a gcc2 | |
11278 | builtin and then its argument prototype would still apply. */ | |
11279 | char pthread_attr_getschedpolicy(); | |
11280 | ||
11281 | int main() { | |
11282 | pthread_attr_getschedpolicy() | |
11283 | ; return 0; } | |
11284 | EOF | |
6098c7f9 | 11285 | if { (eval echo configure:11286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11286 | rm -rf conftest* |
11287 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11288 | else | |
11289 | echo "configure: failed program was:" >&5 | |
11290 | cat conftest.$ac_ext >&5 | |
11291 | rm -rf conftest* | |
11292 | eval "ac_cv_lib_$ac_lib_var=no" | |
11293 | fi | |
11294 | rm -f conftest* | |
11295 | LIBS="$ac_save_LIBS" | |
11296 | ||
11297 | fi | |
11298 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11299 | echo "$ac_t""yes" 1>&6 | |
11300 | cat >> confdefs.h <<\EOF | |
11301 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
11302 | EOF | |
11303 | ||
11304 | else | |
11305 | echo "$ac_t""no" 1>&6 | |
11306 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6 | |
6098c7f9 | 11307 | echo "configure:11308: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5 |
10f2d63a VZ |
11308 | ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
11309 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11310 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11311 | else | |
11312 | ac_save_LIBS="$LIBS" | |
11313 | LIBS="-l"posix4" $LIBS" | |
11314 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 11315 | #line 11316 "configure" |
10f2d63a VZ |
11316 | #include "confdefs.h" |
11317 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11318 | /* We use char because int might match the return type of a gcc2 | |
11319 | builtin and then its argument prototype would still apply. */ | |
11320 | char pthread_attr_getschedpolicy(); | |
11321 | ||
11322 | int main() { | |
11323 | pthread_attr_getschedpolicy() | |
11324 | ; return 0; } | |
11325 | EOF | |
6098c7f9 | 11326 | if { (eval echo configure:11327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11327 | rm -rf conftest* |
11328 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11329 | else | |
11330 | echo "configure: failed program was:" >&5 | |
11331 | cat conftest.$ac_ext >&5 | |
11332 | rm -rf conftest* | |
11333 | eval "ac_cv_lib_$ac_lib_var=no" | |
11334 | fi | |
11335 | rm -f conftest* | |
11336 | LIBS="$ac_save_LIBS" | |
11337 | ||
11338 | fi | |
11339 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11340 | echo "$ac_t""yes" 1>&6 | |
11341 | cat >> confdefs.h <<\EOF | |
11342 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
11343 | EOF | |
11344 | POSIX4_LINK="-lposix4" | |
11345 | else | |
11346 | echo "$ac_t""no" 1>&6 | |
11347 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
11348 | ||
11349 | fi | |
11350 | ||
11351 | ||
11352 | fi | |
11353 | ||
11354 | ||
11355 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 | |
6098c7f9 | 11356 | echo "configure:11357: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
11357 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
11358 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11359 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11360 | else | |
11361 | ac_save_LIBS="$LIBS" | |
11362 | LIBS="-l$THREADS_LINK $LIBS" | |
11363 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 11364 | #line 11365 "configure" |
10f2d63a VZ |
11365 | #include "confdefs.h" |
11366 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11367 | /* We use char because int might match the return type of a gcc2 | |
11368 | builtin and then its argument prototype would still apply. */ | |
11369 | char pthread_cancel(); | |
11370 | ||
11371 | int main() { | |
11372 | pthread_cancel() | |
11373 | ; return 0; } | |
11374 | EOF | |
6098c7f9 | 11375 | if { (eval echo configure:11376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11376 | rm -rf conftest* |
11377 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11378 | else | |
11379 | echo "configure: failed program was:" >&5 | |
11380 | cat conftest.$ac_ext >&5 | |
11381 | rm -rf conftest* | |
11382 | eval "ac_cv_lib_$ac_lib_var=no" | |
11383 | fi | |
11384 | rm -f conftest* | |
11385 | LIBS="$ac_save_LIBS" | |
11386 | ||
11387 | fi | |
11388 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11389 | echo "$ac_t""yes" 1>&6 | |
11390 | cat >> confdefs.h <<\EOF | |
11391 | #define HAVE_PTHREAD_CANCEL 1 | |
11392 | EOF | |
11393 | ||
11394 | else | |
11395 | echo "$ac_t""no" 1>&6 | |
11396 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
11397 | fi | |
11398 | ||
11399 | ||
11400 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 | |
6098c7f9 | 11401 | echo "configure:11402: checking for pthread_cleanup_push/pop" >&5 |
10f2d63a VZ |
11402 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
11403 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11404 | else | |
11405 | ||
11406 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 11407 | #line 11408 "configure" |
10f2d63a VZ |
11408 | #include "confdefs.h" |
11409 | #include <pthread.h> | |
11410 | int main() { | |
11411 | ||
11412 | pthread_cleanup_push(NULL, NULL); | |
11413 | pthread_cleanup_pop(0); | |
11414 | ||
11415 | ; return 0; } | |
11416 | EOF | |
6098c7f9 | 11417 | if { (eval echo configure:11418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
11418 | rm -rf conftest* |
11419 | ||
11420 | wx_cv_func_pthread_cleanup_push=yes | |
11421 | cat >> confdefs.h <<\EOF | |
11422 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
11423 | EOF | |
11424 | ||
11425 | ||
11426 | else | |
11427 | echo "configure: failed program was:" >&5 | |
11428 | cat conftest.$ac_ext >&5 | |
11429 | rm -rf conftest* | |
11430 | ||
11431 | wx_cv_func_pthread_cleanup_push=no | |
11432 | ||
11433 | fi | |
11434 | rm -f conftest* | |
11435 | ||
11436 | fi | |
11437 | ||
11438 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
11439 | ||
11440 | THREADS_LINK="-l$THREADS_LINK" | |
11441 | fi | |
11442 | ||
11443 | fi | |
11444 | ||
11445 | if test "$wxUSE_THREADS" = "yes"; then | |
11446 | cat >> confdefs.h <<\EOF | |
11447 | #define wxUSE_THREADS 1 | |
11448 | EOF | |
11449 | ||
11450 | ||
11451 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
11452 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
11453 | ||
11454 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
11455 | else | |
11456 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
ab9b9eab | 11457 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
6098c7f9 | 11458 | echo "configure:11459: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab VZ |
11459 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
11460 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
11461 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
11462 | echo "$ac_t""yes" 1>&6 | |
11463 | else | |
11464 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11465 | fi |
11466 | fi | |
11467 | fi | |
11468 | ||
13111b2a VZ |
11469 | if test "$WXGTK13" = 1 ; then |
11470 | cat >> confdefs.h <<EOF | |
11471 | #define __WXGTK13__ $WXGTK13 | |
11472 | EOF | |
11473 | ||
11474 | WXGTK12=1 | |
11475 | fi | |
11476 | ||
10f2d63a VZ |
11477 | if test "$WXGTK12" = 1 ; then |
11478 | cat >> confdefs.h <<EOF | |
11479 | #define __WXGTK12__ $WXGTK12 | |
11480 | EOF | |
11481 | ||
11482 | fi | |
11483 | ||
11484 | if test "$WXWINE" = 1 ; then | |
11485 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
11486 | fi | |
11487 | ||
11488 | if test "$wxUSE_CYGWIN" = 1 ; then | |
11489 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
11490 | fi | |
11491 | ||
11492 | WXDEBUG= | |
11493 | ||
11494 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
11495 | WXDEBUG="-g" | |
11496 | wxUSE_OPTIMISE=no | |
11497 | fi | |
11498 | ||
11499 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
11500 | wxUSE_DEBUG_INFO=yes | |
11501 | WXDEBUG="-ggdb" | |
11502 | fi | |
11503 | ||
11504 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
11505 | cat >> confdefs.h <<\EOF | |
11506 | #define WXDEBUG 1 | |
11507 | EOF | |
11508 | ||
11509 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
11510 | else | |
11511 | if test "$wxUSE_GTK" = 1 ; then | |
11512 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
11513 | fi | |
11514 | fi | |
11515 | ||
11516 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
11517 | cat >> confdefs.h <<\EOF | |
11518 | #define wxUSE_MEMORY_TRACING 1 | |
11519 | EOF | |
11520 | ||
11521 | cat >> confdefs.h <<\EOF | |
11522 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
47c13eb7 VS |
11523 | EOF |
11524 | ||
11525 | cat >> confdefs.h <<\EOF | |
11526 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
10f2d63a VZ |
11527 | EOF |
11528 | ||
11529 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
11530 | fi | |
11531 | ||
11532 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
11533 | DMALLOC_LINK="-ldmalloc" | |
11534 | fi | |
11535 | ||
11536 | PROFILE= | |
11537 | if test "$wxUSE_PROFILE" = "yes" ; then | |
11538 | PROFILE="-pg" | |
11539 | fi | |
11540 | ||
11541 | DEP_INFO_FLAGS= | |
caa2c79b | 11542 | CODE_GEN_FLAGS= |
10f2d63a VZ |
11543 | if test "$GCC" = yes ; then |
11544 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
caa2c79b | 11545 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti" |
10f2d63a VZ |
11546 | fi |
11547 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
caa2c79b | 11548 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions" |
10f2d63a VZ |
11549 | fi |
11550 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
caa2c79b | 11551 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
11552 | fi |
11553 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
11554 | DEP_INFO_FLAGS="-MMD" | |
11555 | fi | |
11556 | fi | |
11557 | ||
11558 | ||
11559 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
11560 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
11561 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
11562 | OPTIMISE= | |
11563 | else | |
11564 | if test "$GCC" = yes ; then | |
11565 | OPTIMISE="-O2" | |
11566 | case "${host}" in | |
11567 | i586-*-*|i686-*-* ) | |
11568 | OPTIMISE="${OPTIMISE} " | |
11569 | ;; | |
11570 | esac | |
11571 | else | |
11572 | OPTIMISE="-O" | |
11573 | fi | |
11574 | fi | |
11575 | ||
11576 | ||
11577 | ZLIB_INCLUDE= | |
422107f9 | 11578 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then |
10f2d63a VZ |
11579 | cat >> confdefs.h <<\EOF |
11580 | #define wxUSE_ZLIB 1 | |
11581 | EOF | |
11582 | ||
422107f9 VZ |
11583 | if test "$wxUSE_ZLIB" = "yes" ; then |
11584 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11585 | else | |
11586 | ZLIB_LINK= | |
11587 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
11588 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
6098c7f9 | 11589 | echo "configure:11590: checking for zlib.h" >&5 |
422107f9 VZ |
11590 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11591 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11592 | else | |
11593 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 11594 | #line 11595 "configure" |
422107f9 VZ |
11595 | #include "confdefs.h" |
11596 | #include <zlib.h> | |
11597 | EOF | |
11598 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6098c7f9 | 11599 | { (eval echo configure:11600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
422107f9 VZ |
11600 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11601 | if test -z "$ac_err"; then | |
11602 | rm -rf conftest* | |
11603 | eval "ac_cv_header_$ac_safe=yes" | |
11604 | else | |
11605 | echo "$ac_err" >&5 | |
11606 | echo "configure: failed program was:" >&5 | |
11607 | cat conftest.$ac_ext >&5 | |
11608 | rm -rf conftest* | |
11609 | eval "ac_cv_header_$ac_safe=no" | |
11610 | fi | |
11611 | rm -f conftest* | |
11612 | fi | |
11613 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11614 | echo "$ac_t""yes" 1>&6 | |
11615 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
6098c7f9 | 11616 | echo "configure:11617: checking for deflate in -lz" >&5 |
422107f9 VZ |
11617 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
11618 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11619 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11620 | else | |
11621 | ac_save_LIBS="$LIBS" | |
11622 | LIBS="-lz $LIBS" | |
11623 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 11624 | #line 11625 "configure" |
422107f9 VZ |
11625 | #include "confdefs.h" |
11626 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11627 | /* We use char because int might match the return type of a gcc2 | |
11628 | builtin and then its argument prototype would still apply. */ | |
11629 | char deflate(); | |
11630 | ||
11631 | int main() { | |
11632 | deflate() | |
11633 | ; return 0; } | |
11634 | EOF | |
6098c7f9 | 11635 | if { (eval echo configure:11636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
422107f9 VZ |
11636 | rm -rf conftest* |
11637 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11638 | else | |
11639 | echo "configure: failed program was:" >&5 | |
11640 | cat conftest.$ac_ext >&5 | |
11641 | rm -rf conftest* | |
11642 | eval "ac_cv_lib_$ac_lib_var=no" | |
11643 | fi | |
11644 | rm -f conftest* | |
11645 | LIBS="$ac_save_LIBS" | |
11646 | ||
11647 | fi | |
11648 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11649 | echo "$ac_t""yes" 1>&6 | |
11650 | ZLIB_LINK="-lz" | |
11651 | else | |
11652 | echo "$ac_t""no" 1>&6 | |
11653 | fi | |
11654 | ||
11655 | else | |
11656 | echo "$ac_t""no" 1>&6 | |
11657 | fi | |
11658 | ||
11659 | if test "x$ZLIB_LINK" = "x" ; then | |
11660 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; } | |
11661 | fi | |
11662 | fi | |
10f2d63a VZ |
11663 | fi |
11664 | ||
11665 | PNG_INCLUDE= | |
422107f9 | 11666 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then |
10f2d63a VZ |
11667 | cat >> confdefs.h <<\EOF |
11668 | #define wxUSE_LIBPNG 1 | |
11669 | EOF | |
11670 | ||
41fd4136 | 11671 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
422107f9 VZ |
11672 | echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2 |
11673 | wxUSE_LIBPNG=yes | |
11674 | fi | |
11675 | ||
11676 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
11677 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11678 | else | |
11679 | PNG_LINK= | |
11680 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
11681 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
6098c7f9 | 11682 | echo "configure:11683: checking for png.h" >&5 |
422107f9 VZ |
11683 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11684 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11685 | else | |
11686 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 11687 | #line 11688 "configure" |
422107f9 VZ |
11688 | #include "confdefs.h" |
11689 | #include <png.h> | |
11690 | EOF | |
11691 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6098c7f9 | 11692 | { (eval echo configure:11693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
422107f9 VZ |
11693 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11694 | if test -z "$ac_err"; then | |
11695 | rm -rf conftest* | |
11696 | eval "ac_cv_header_$ac_safe=yes" | |
11697 | else | |
11698 | echo "$ac_err" >&5 | |
11699 | echo "configure: failed program was:" >&5 | |
11700 | cat conftest.$ac_ext >&5 | |
11701 | rm -rf conftest* | |
11702 | eval "ac_cv_header_$ac_safe=no" | |
11703 | fi | |
11704 | rm -f conftest* | |
11705 | fi | |
11706 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11707 | echo "$ac_t""yes" 1>&6 | |
11708 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
6098c7f9 | 11709 | echo "configure:11710: checking for png_check_sig in -lpng" >&5 |
422107f9 VZ |
11710 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
11711 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11712 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11713 | else | |
11714 | ac_save_LIBS="$LIBS" | |
11715 | LIBS="-lpng -lz -lm $LIBS" | |
11716 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 11717 | #line 11718 "configure" |
422107f9 VZ |
11718 | #include "confdefs.h" |
11719 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11720 | /* We use char because int might match the return type of a gcc2 | |
11721 | builtin and then its argument prototype would still apply. */ | |
11722 | char png_check_sig(); | |
11723 | ||
11724 | int main() { | |
11725 | png_check_sig() | |
11726 | ; return 0; } | |
11727 | EOF | |
6098c7f9 | 11728 | if { (eval echo configure:11729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
422107f9 VZ |
11729 | rm -rf conftest* |
11730 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11731 | else | |
11732 | echo "configure: failed program was:" >&5 | |
11733 | cat conftest.$ac_ext >&5 | |
11734 | rm -rf conftest* | |
11735 | eval "ac_cv_lib_$ac_lib_var=no" | |
11736 | fi | |
11737 | rm -f conftest* | |
11738 | LIBS="$ac_save_LIBS" | |
11739 | ||
11740 | fi | |
11741 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11742 | echo "$ac_t""yes" 1>&6 | |
11743 | PNG_LINK="-lpng" | |
11744 | else | |
11745 | echo "$ac_t""no" 1>&6 | |
11746 | fi | |
11747 | ||
11748 | ||
11749 | else | |
11750 | echo "$ac_t""no" 1>&6 | |
11751 | fi | |
11752 | ||
11753 | if test "x$PNG_LINK" = "x" ; then | |
0dcf9893 | 11754 | { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; } |
422107f9 VZ |
11755 | fi |
11756 | fi | |
11757 | ||
10f2d63a VZ |
11758 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
11759 | fi | |
11760 | ||
11761 | JPEG_INCLUDE= | |
422107f9 | 11762 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then |
10f2d63a VZ |
11763 | cat >> confdefs.h <<\EOF |
11764 | #define wxUSE_LIBJPEG 1 | |
11765 | EOF | |
11766 | ||
422107f9 VZ |
11767 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
11768 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
11769 | else | |
11770 | JPEG_LINK= | |
11771 | ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` | |
11772 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
6098c7f9 | 11773 | echo "configure:11774: checking for jpeglib.h" >&5 |
422107f9 VZ |
11774 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11775 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11776 | else | |
11777 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 11778 | #line 11779 "configure" |
422107f9 VZ |
11779 | #include "confdefs.h" |
11780 | #include <jpeglib.h> | |
11781 | EOF | |
11782 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6098c7f9 | 11783 | { (eval echo configure:11784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
422107f9 VZ |
11784 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11785 | if test -z "$ac_err"; then | |
11786 | rm -rf conftest* | |
11787 | eval "ac_cv_header_$ac_safe=yes" | |
11788 | else | |
11789 | echo "$ac_err" >&5 | |
11790 | echo "configure: failed program was:" >&5 | |
11791 | cat conftest.$ac_ext >&5 | |
11792 | rm -rf conftest* | |
11793 | eval "ac_cv_header_$ac_safe=no" | |
11794 | fi | |
11795 | rm -f conftest* | |
11796 | fi | |
11797 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11798 | echo "$ac_t""yes" 1>&6 | |
11799 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
6098c7f9 | 11800 | echo "configure:11801: checking for jpeg_read_header in -ljpeg" >&5 |
422107f9 VZ |
11801 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
11802 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11803 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11804 | else | |
11805 | ac_save_LIBS="$LIBS" | |
11806 | LIBS="-ljpeg $LIBS" | |
11807 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 11808 | #line 11809 "configure" |
422107f9 VZ |
11809 | #include "confdefs.h" |
11810 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11811 | /* We use char because int might match the return type of a gcc2 | |
11812 | builtin and then its argument prototype would still apply. */ | |
11813 | char jpeg_read_header(); | |
11814 | ||
11815 | int main() { | |
11816 | jpeg_read_header() | |
11817 | ; return 0; } | |
11818 | EOF | |
6098c7f9 | 11819 | if { (eval echo configure:11820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
422107f9 VZ |
11820 | rm -rf conftest* |
11821 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11822 | else | |
11823 | echo "configure: failed program was:" >&5 | |
11824 | cat conftest.$ac_ext >&5 | |
11825 | rm -rf conftest* | |
11826 | eval "ac_cv_lib_$ac_lib_var=no" | |
11827 | fi | |
11828 | rm -f conftest* | |
11829 | LIBS="$ac_save_LIBS" | |
11830 | ||
11831 | fi | |
11832 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11833 | echo "$ac_t""yes" 1>&6 | |
11834 | JPEG_LINK="-ljpeg" | |
11835 | else | |
11836 | echo "$ac_t""no" 1>&6 | |
11837 | fi | |
11838 | ||
11839 | else | |
11840 | echo "$ac_t""no" 1>&6 | |
11841 | fi | |
11842 | ||
11843 | if test "x$JPEG_LINK" = "x" ; then | |
0dcf9893 | 11844 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; } |
422107f9 VZ |
11845 | fi |
11846 | fi | |
10f2d63a VZ |
11847 | fi |
11848 | ||
c7a2bf27 | 11849 | TIFF_INCLUDE= |
0dcf9893 | 11850 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then |
c7a2bf27 RR |
11851 | cat >> confdefs.h <<\EOF |
11852 | #define wxUSE_LIBTIFF 1 | |
11853 | EOF | |
11854 | ||
0dcf9893 VZ |
11855 | if test "$wxUSE_LIBTIFF" = "yes" ; then |
11856 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
11857 | else | |
11858 | TIFF_LINK= | |
11859 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
11860 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
6098c7f9 | 11861 | echo "configure:11862: checking for tiffio.h" >&5 |
0dcf9893 VZ |
11862 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11863 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11864 | else | |
11865 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 11866 | #line 11867 "configure" |
0dcf9893 VZ |
11867 | #include "confdefs.h" |
11868 | #include <tiffio.h> | |
11869 | EOF | |
11870 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6098c7f9 | 11871 | { (eval echo configure:11872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0dcf9893 VZ |
11872 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11873 | if test -z "$ac_err"; then | |
11874 | rm -rf conftest* | |
11875 | eval "ac_cv_header_$ac_safe=yes" | |
11876 | else | |
11877 | echo "$ac_err" >&5 | |
11878 | echo "configure: failed program was:" >&5 | |
11879 | cat conftest.$ac_ext >&5 | |
11880 | rm -rf conftest* | |
11881 | eval "ac_cv_header_$ac_safe=no" | |
11882 | fi | |
11883 | rm -f conftest* | |
11884 | fi | |
11885 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11886 | echo "$ac_t""yes" 1>&6 | |
11887 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
6098c7f9 | 11888 | echo "configure:11889: checking for TIFFError in -ltiff" >&5 |
0dcf9893 VZ |
11889 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
11890 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11891 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11892 | else | |
11893 | ac_save_LIBS="$LIBS" | |
11894 | LIBS="-ltiff -lm $LIBS" | |
11895 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 11896 | #line 11897 "configure" |
0dcf9893 VZ |
11897 | #include "confdefs.h" |
11898 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11899 | /* We use char because int might match the return type of a gcc2 | |
11900 | builtin and then its argument prototype would still apply. */ | |
11901 | char TIFFError(); | |
11902 | ||
11903 | int main() { | |
11904 | TIFFError() | |
11905 | ; return 0; } | |
11906 | EOF | |
6098c7f9 | 11907 | if { (eval echo configure:11908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0dcf9893 VZ |
11908 | rm -rf conftest* |
11909 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11910 | else | |
11911 | echo "configure: failed program was:" >&5 | |
11912 | cat conftest.$ac_ext >&5 | |
11913 | rm -rf conftest* | |
11914 | eval "ac_cv_lib_$ac_lib_var=no" | |
11915 | fi | |
11916 | rm -f conftest* | |
11917 | LIBS="$ac_save_LIBS" | |
11918 | ||
11919 | fi | |
11920 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11921 | echo "$ac_t""yes" 1>&6 | |
11922 | TIFF_LINK="-ltiff" | |
11923 | else | |
11924 | echo "$ac_t""no" 1>&6 | |
11925 | fi | |
11926 | ||
11927 | else | |
11928 | echo "$ac_t""no" 1>&6 | |
11929 | fi | |
11930 | ||
11931 | if test "x$TIFF_LINK" = "x" ; then | |
11932 | { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; } | |
11933 | fi | |
11934 | fi | |
c7a2bf27 RR |
11935 | fi |
11936 | ||
10f2d63a VZ |
11937 | if test "$wxUSE_OPENGL" = "yes"; then |
11938 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
11939 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
6098c7f9 | 11940 | echo "configure:11941: checking for GL/gl.h" >&5 |
10f2d63a VZ |
11941 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11942 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11943 | else | |
11944 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 11945 | #line 11946 "configure" |
10f2d63a VZ |
11946 | #include "confdefs.h" |
11947 | #include <GL/gl.h> | |
11948 | EOF | |
11949 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6098c7f9 | 11950 | { (eval echo configure:11951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
11951 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11952 | if test -z "$ac_err"; then | |
11953 | rm -rf conftest* | |
11954 | eval "ac_cv_header_$ac_safe=yes" | |
11955 | else | |
11956 | echo "$ac_err" >&5 | |
11957 | echo "configure: failed program was:" >&5 | |
11958 | cat conftest.$ac_ext >&5 | |
11959 | rm -rf conftest* | |
11960 | eval "ac_cv_header_$ac_safe=no" | |
11961 | fi | |
11962 | rm -f conftest* | |
11963 | fi | |
11964 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11965 | echo "$ac_t""yes" 1>&6 | |
11966 | ||
bdad4e7e RR |
11967 | cat >> confdefs.h <<\EOF |
11968 | #define wxUSE_OPENGL 1 | |
11969 | EOF | |
11970 | ||
11971 | cat >> confdefs.h <<\EOF | |
11972 | #define wxUSE_GLCANVAS 1 | |
11973 | EOF | |
11974 | ||
11975 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 | |
6098c7f9 | 11976 | echo "configure:11977: checking for glFlush in -lGL" >&5 |
bdad4e7e | 11977 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
11978 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
11979 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11980 | else | |
11981 | ac_save_LIBS="$LIBS" | |
bdad4e7e | 11982 | LIBS="-lGL $LIBS" |
10f2d63a | 11983 | cat > conftest.$ac_ext <<EOF |
6098c7f9 | 11984 | #line 11985 "configure" |
10f2d63a VZ |
11985 | #include "confdefs.h" |
11986 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11987 | /* We use char because int might match the return type of a gcc2 | |
11988 | builtin and then its argument prototype would still apply. */ | |
bdad4e7e | 11989 | char glFlush(); |
10f2d63a VZ |
11990 | |
11991 | int main() { | |
bdad4e7e | 11992 | glFlush() |
10f2d63a VZ |
11993 | ; return 0; } |
11994 | EOF | |
6098c7f9 | 11995 | if { (eval echo configure:11996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11996 | rm -rf conftest* |
11997 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11998 | else | |
11999 | echo "configure: failed program was:" >&5 | |
12000 | cat conftest.$ac_ext >&5 | |
12001 | rm -rf conftest* | |
12002 | eval "ac_cv_lib_$ac_lib_var=no" | |
12003 | fi | |
12004 | rm -f conftest* | |
12005 | LIBS="$ac_save_LIBS" | |
12006 | ||
12007 | fi | |
12008 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12009 | echo "$ac_t""yes" 1>&6 | |
12010 | ||
12011 | OPENGL_LINK="-lGL" | |
10f2d63a VZ |
12012 | |
12013 | else | |
12014 | echo "$ac_t""no" 1>&6 | |
12015 | ||
bdad4e7e | 12016 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 |
6098c7f9 | 12017 | echo "configure:12018: checking for glFlush in -lMesaGL" >&5 |
bdad4e7e | 12018 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
12019 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
12020 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12021 | else | |
12022 | ac_save_LIBS="$LIBS" | |
12023 | LIBS="-lMesaGL $LIBS" | |
12024 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 12025 | #line 12026 "configure" |
10f2d63a VZ |
12026 | #include "confdefs.h" |
12027 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12028 | /* We use char because int might match the return type of a gcc2 | |
12029 | builtin and then its argument prototype would still apply. */ | |
bdad4e7e | 12030 | char glFlush(); |
10f2d63a VZ |
12031 | |
12032 | int main() { | |
bdad4e7e | 12033 | glFlush() |
10f2d63a VZ |
12034 | ; return 0; } |
12035 | EOF | |
6098c7f9 | 12036 | if { (eval echo configure:12037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12037 | rm -rf conftest* |
12038 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12039 | else | |
12040 | echo "configure: failed program was:" >&5 | |
12041 | cat conftest.$ac_ext >&5 | |
12042 | rm -rf conftest* | |
12043 | eval "ac_cv_lib_$ac_lib_var=no" | |
12044 | fi | |
12045 | rm -f conftest* | |
12046 | LIBS="$ac_save_LIBS" | |
12047 | ||
12048 | fi | |
12049 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12050 | echo "$ac_t""yes" 1>&6 | |
12051 | ||
12052 | OPENGL_LINK="-lMesaGL" | |
10f2d63a VZ |
12053 | |
12054 | else | |
12055 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12056 | fi |
12057 | ||
12058 | ||
12059 | fi | |
12060 | ||
12061 | ||
12062 | else | |
12063 | echo "$ac_t""no" 1>&6 | |
12064 | wxUSE_OPENGL=0 | |
12065 | fi | |
12066 | ||
12067 | fi | |
12068 | ||
12069 | ||
12070 | if test "$wxUSE_GUI" = "yes"; then | |
12071 | cat >> confdefs.h <<\EOF | |
12072 | #define wxUSE_GUI 1 | |
12073 | EOF | |
12074 | ||
12075 | ||
12076 | else | |
12077 | cat >> confdefs.h <<\EOF | |
12078 | #define wxUSE_NOGUI 1 | |
12079 | EOF | |
12080 | ||
12081 | fi | |
12082 | ||
12083 | ||
12084 | if test "$wxUSE_UNIX" = "yes"; then | |
12085 | cat >> confdefs.h <<\EOF | |
12086 | #define wxUSE_UNIX 1 | |
12087 | EOF | |
12088 | ||
12089 | fi | |
12090 | ||
12091 | ||
12092 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
12093 | cat >> confdefs.h <<\EOF | |
12094 | #define wxUSE_APPLE_IEEE 1 | |
12095 | EOF | |
12096 | ||
12097 | fi | |
12098 | ||
10f2d63a VZ |
12099 | if test "$wxUSE_WAVE" = "yes"; then |
12100 | cat >> confdefs.h <<\EOF | |
12101 | #define wxUSE_WAVE 1 | |
12102 | EOF | |
12103 | ||
12104 | fi | |
12105 | ||
12106 | if test "$wxUSE_FILE" = "yes"; then | |
12107 | cat >> confdefs.h <<\EOF | |
12108 | #define wxUSE_FILE 1 | |
12109 | EOF | |
12110 | ||
12111 | fi | |
12112 | ||
24528b0c VS |
12113 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
12114 | cat >> confdefs.h <<\EOF | |
12115 | #define wxUSE_FILESYSTEM 1 | |
12116 | EOF | |
12117 | ||
12118 | fi | |
12119 | ||
10f2d63a VZ |
12120 | if test "$wxUSE_FS_INET" = "yes"; then |
12121 | cat >> confdefs.h <<\EOF | |
12122 | #define wxUSE_FS_INET 1 | |
12123 | EOF | |
12124 | ||
12125 | fi | |
12126 | ||
12127 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
12128 | cat >> confdefs.h <<\EOF | |
12129 | #define wxUSE_FS_ZIP 1 | |
12130 | EOF | |
12131 | ||
12132 | fi | |
12133 | ||
12134 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
12135 | cat >> confdefs.h <<\EOF | |
12136 | #define wxUSE_ZIPSTREAM 1 | |
12137 | EOF | |
12138 | ||
12139 | fi | |
12140 | ||
12141 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
12142 | cat >> confdefs.h <<\EOF | |
12143 | #define wxUSE_BUSYINFO 1 | |
12144 | EOF | |
12145 | ||
12146 | fi | |
12147 | ||
12148 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
12149 | cat >> confdefs.h <<\EOF | |
12150 | #define wxUSE_STD_IOSTREAM 1 | |
12151 | EOF | |
12152 | ||
12153 | fi | |
12154 | ||
12155 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
12156 | if test "$wxUSE_FILE" != "yes"; then | |
12157 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 | |
12158 | else | |
12159 | cat >> confdefs.h <<\EOF | |
12160 | #define wxUSE_TEXTFILE 1 | |
12161 | EOF | |
12162 | ||
12163 | fi | |
12164 | fi | |
12165 | ||
12166 | if test "$wxUSE_CONFIG" = "yes" ; then | |
12167 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
12168 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 | |
12169 | else | |
12170 | cat >> confdefs.h <<\EOF | |
12171 | #define wxUSE_CONFIG 1 | |
12172 | EOF | |
12173 | ||
12174 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
12175 | fi | |
12176 | fi | |
12177 | ||
12178 | if test "$wxUSE_INTL" = "yes" ; then | |
12179 | if test "$wxUSE_FILE" != "yes"; then | |
12180 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 | |
12181 | else | |
12182 | cat >> confdefs.h <<\EOF | |
12183 | #define wxUSE_INTL 1 | |
12184 | EOF | |
12185 | ||
12186 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
12187 | fi | |
12188 | fi | |
12189 | ||
12190 | if test "$wxUSE_LOG" = "yes"; then | |
12191 | cat >> confdefs.h <<\EOF | |
12192 | #define wxUSE_LOG 1 | |
12193 | EOF | |
12194 | ||
12195 | fi | |
12196 | ||
12197 | if test "$wxUSE_LONGLONG" = "yes"; then | |
12198 | cat >> confdefs.h <<\EOF | |
12199 | #define wxUSE_LONGLONG 1 | |
12200 | EOF | |
12201 | ||
12202 | fi | |
12203 | ||
9b33fe02 VZ |
12204 | if test "$wxUSE_PLOT" = "yes"; then |
12205 | cat >> confdefs.h <<\EOF | |
12206 | #define wxUSE_PLOT 1 | |
12207 | EOF | |
12208 | ||
12209 | fi | |
12210 | ||
10f2d63a VZ |
12211 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
12212 | cat >> confdefs.h <<\EOF | |
12213 | #define wxUSE_DIALUP_MANAGER 1 | |
12214 | EOF | |
12215 | ||
70f7a477 | 12216 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
12217 | fi |
12218 | ||
12219 | if test "$wxUSE_STREAMS" = "yes" ; then | |
12220 | cat >> confdefs.h <<\EOF | |
12221 | #define wxUSE_STREAMS 1 | |
12222 | EOF | |
12223 | ||
12224 | fi | |
12225 | ||
10f2d63a | 12226 | |
afc31813 | 12227 | if test "$wxUSE_TIMEDATE" = "yes"; then |
83307f33 VZ |
12228 | for ac_func in strptime |
12229 | do | |
12230 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
6098c7f9 | 12231 | echo "configure:12232: checking for $ac_func" >&5 |
83307f33 VZ |
12232 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12233 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12234 | else | |
12235 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 12236 | #line 12237 "configure" |
83307f33 VZ |
12237 | #include "confdefs.h" |
12238 | /* System header to define __stub macros and hopefully few prototypes, | |
12239 | which can conflict with char $ac_func(); below. */ | |
12240 | #include <assert.h> | |
12241 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12242 | /* We use char because int might match the return type of a gcc2 | |
12243 | builtin and then its argument prototype would still apply. */ | |
12244 | char $ac_func(); | |
12245 | ||
12246 | int main() { | |
12247 | ||
12248 | /* The GNU C library defines this for functions which it implements | |
12249 | to always fail with ENOSYS. Some functions are actually named | |
12250 | something starting with __ and the normal name is an alias. */ | |
12251 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12252 | choke me | |
12253 | #else | |
e8482f24 | 12254 | $ac_func(); |
83307f33 VZ |
12255 | #endif |
12256 | ||
12257 | ; return 0; } | |
12258 | EOF | |
6098c7f9 | 12259 | if { (eval echo configure:12260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
83307f33 VZ |
12260 | rm -rf conftest* |
12261 | eval "ac_cv_func_$ac_func=yes" | |
12262 | else | |
12263 | echo "configure: failed program was:" >&5 | |
12264 | cat conftest.$ac_ext >&5 | |
12265 | rm -rf conftest* | |
12266 | eval "ac_cv_func_$ac_func=no" | |
12267 | fi | |
12268 | rm -f conftest* | |
12269 | fi | |
12270 | ||
12271 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12272 | echo "$ac_t""yes" 1>&6 | |
12273 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12274 | cat >> confdefs.h <<EOF | |
12275 | #define $ac_tr_func 1 | |
12276 | EOF | |
12277 | ||
12278 | else | |
12279 | echo "$ac_t""no" 1>&6 | |
12280 | fi | |
12281 | done | |
12282 | ||
12283 | ||
360d6699 | 12284 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
6098c7f9 | 12285 | echo "configure:12286: checking for timezone variable in <time.h>" >&5 |
360d6699 VZ |
12286 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
12287 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12288 | else | |
12289 | ||
12290 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 12291 | #line 12292 "configure" |
360d6699 VZ |
12292 | #include "confdefs.h" |
12293 | ||
12294 | #include <time.h> | |
12295 | ||
12296 | int main() { | |
12297 | ||
12298 | int tz; | |
12299 | tz = __timezone; | |
12300 | ||
12301 | ; return 0; } | |
12302 | EOF | |
6098c7f9 | 12303 | if { (eval echo configure:12304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
360d6699 VZ |
12304 | rm -rf conftest* |
12305 | ||
12306 | wx_cv_var_timezone=__timezone | |
12307 | ||
12308 | else | |
12309 | echo "configure: failed program was:" >&5 | |
12310 | cat conftest.$ac_ext >&5 | |
12311 | rm -rf conftest* | |
12312 | ||
12313 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 12314 | #line 12315 "configure" |
360d6699 VZ |
12315 | #include "confdefs.h" |
12316 | ||
12317 | #include <time.h> | |
12318 | ||
12319 | int main() { | |
12320 | ||
12321 | int tz; | |
12322 | tz = _timezone; | |
12323 | ||
12324 | ; return 0; } | |
12325 | EOF | |
6098c7f9 | 12326 | if { (eval echo configure:12327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
360d6699 VZ |
12327 | rm -rf conftest* |
12328 | ||
12329 | wx_cv_var_timezone=_timezone | |
12330 | ||
5357c8e8 VZ |
12331 | else |
12332 | echo "configure: failed program was:" >&5 | |
12333 | cat conftest.$ac_ext >&5 | |
12334 | rm -rf conftest* | |
12335 | ||
12336 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 12337 | #line 12338 "configure" |
5357c8e8 VZ |
12338 | #include "confdefs.h" |
12339 | ||
12340 | #include <time.h> | |
12341 | ||
12342 | int main() { | |
12343 | ||
12344 | int tz; | |
12345 | tz = timezone; | |
12346 | ||
12347 | ; return 0; } | |
12348 | EOF | |
6098c7f9 | 12349 | if { (eval echo configure:12350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5357c8e8 VZ |
12350 | rm -rf conftest* |
12351 | ||
12352 | wx_cv_var_timezone=timezone | |
12353 | ||
360d6699 VZ |
12354 | else |
12355 | echo "configure: failed program was:" >&5 | |
12356 | cat conftest.$ac_ext >&5 | |
12357 | rm -rf conftest* | |
12358 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
5357c8e8 VZ |
12359 | |
12360 | fi | |
12361 | rm -f conftest* | |
12362 | ||
360d6699 VZ |
12363 | |
12364 | fi | |
12365 | rm -f conftest* | |
12366 | ||
12367 | ||
12368 | fi | |
12369 | rm -f conftest* | |
12370 | ||
12371 | ||
12372 | fi | |
12373 | ||
12374 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
12375 | ||
12376 | cat >> confdefs.h <<EOF | |
12377 | #define WX_TIMEZONE $wx_cv_var_timezone | |
12378 | EOF | |
12379 | ||
12380 | ||
3fcdd07b | 12381 | for ac_func in localtime |
afc31813 VZ |
12382 | do |
12383 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
6098c7f9 | 12384 | echo "configure:12385: checking for $ac_func" >&5 |
afc31813 VZ |
12385 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12386 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12387 | else | |
12388 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 12389 | #line 12390 "configure" |
10f2d63a | 12390 | #include "confdefs.h" |
afc31813 VZ |
12391 | /* System header to define __stub macros and hopefully few prototypes, |
12392 | which can conflict with char $ac_func(); below. */ | |
12393 | #include <assert.h> | |
12394 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12395 | /* We use char because int might match the return type of a gcc2 | |
12396 | builtin and then its argument prototype would still apply. */ | |
12397 | char $ac_func(); | |
12398 | ||
10f2d63a | 12399 | int main() { |
afc31813 VZ |
12400 | |
12401 | /* The GNU C library defines this for functions which it implements | |
12402 | to always fail with ENOSYS. Some functions are actually named | |
12403 | something starting with __ and the normal name is an alias. */ | |
12404 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12405 | choke me | |
12406 | #else | |
e8482f24 | 12407 | $ac_func(); |
afc31813 VZ |
12408 | #endif |
12409 | ||
10f2d63a VZ |
12410 | ; return 0; } |
12411 | EOF | |
6098c7f9 | 12412 | if { (eval echo configure:12413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a | 12413 | rm -rf conftest* |
afc31813 | 12414 | eval "ac_cv_func_$ac_func=yes" |
10f2d63a VZ |
12415 | else |
12416 | echo "configure: failed program was:" >&5 | |
12417 | cat conftest.$ac_ext >&5 | |
12418 | rm -rf conftest* | |
afc31813 VZ |
12419 | eval "ac_cv_func_$ac_func=no" |
12420 | fi | |
12421 | rm -f conftest* | |
12422 | fi | |
12423 | ||
12424 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12425 | echo "$ac_t""yes" 1>&6 | |
12426 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12427 | cat >> confdefs.h <<EOF | |
12428 | #define $ac_tr_func 1 | |
12429 | EOF | |
3fcdd07b | 12430 | |
afc31813 VZ |
12431 | else |
12432 | echo "$ac_t""no" 1>&6 | |
12433 | fi | |
12434 | done | |
12435 | ||
12436 | ||
0470b1e6 VZ |
12437 | if test "$ac_cv_func_localtime" = "yes"; then |
12438 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
6098c7f9 | 12439 | echo "configure:12440: checking for tm_gmtoff in struct tm" >&5 |
0470b1e6 VZ |
12440 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
12441 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12442 | else | |
12443 | ||
12444 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 12445 | #line 12446 "configure" |
0470b1e6 VZ |
12446 | #include "confdefs.h" |
12447 | ||
12448 | #include <time.h> | |
12449 | ||
12450 | int main() { | |
12451 | ||
12452 | struct tm tm; | |
12453 | tm.tm_gmtoff++; | |
12454 | ||
12455 | ; return 0; } | |
12456 | EOF | |
6098c7f9 | 12457 | if { (eval echo configure:12458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0470b1e6 VZ |
12458 | rm -rf conftest* |
12459 | ||
f03a98d8 | 12460 | wx_cv_struct_tm_has_gmtoff=yes |
0470b1e6 VZ |
12461 | cat >> confdefs.h <<\EOF |
12462 | #define WX_GMTOFF_IN_TM 1 | |
12463 | EOF | |
12464 | ||
12465 | ||
12466 | else | |
12467 | echo "configure: failed program was:" >&5 | |
12468 | cat conftest.$ac_ext >&5 | |
12469 | rm -rf conftest* | |
12470 | wx_cv_struct_tm_has_gmtoff=no | |
12471 | ||
12472 | fi | |
12473 | rm -f conftest* | |
12474 | ||
12475 | fi | |
12476 | ||
12477 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
3fcdd07b VZ |
12478 | fi |
12479 | ||
12480 | for ac_func in gettimeofday ftime | |
12481 | do | |
12482 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
6098c7f9 | 12483 | echo "configure:12484: checking for $ac_func" >&5 |
3fcdd07b VZ |
12484 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12485 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12486 | else | |
12487 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 12488 | #line 12489 "configure" |
3fcdd07b VZ |
12489 | #include "confdefs.h" |
12490 | /* System header to define __stub macros and hopefully few prototypes, | |
12491 | which can conflict with char $ac_func(); below. */ | |
12492 | #include <assert.h> | |
12493 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12494 | /* We use char because int might match the return type of a gcc2 | |
12495 | builtin and then its argument prototype would still apply. */ | |
12496 | char $ac_func(); | |
12497 | ||
12498 | int main() { | |
12499 | ||
12500 | /* The GNU C library defines this for functions which it implements | |
12501 | to always fail with ENOSYS. Some functions are actually named | |
12502 | something starting with __ and the normal name is an alias. */ | |
12503 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12504 | choke me | |
12505 | #else | |
e8482f24 | 12506 | $ac_func(); |
3fcdd07b VZ |
12507 | #endif |
12508 | ||
12509 | ; return 0; } | |
12510 | EOF | |
6098c7f9 | 12511 | if { (eval echo configure:12512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3fcdd07b VZ |
12512 | rm -rf conftest* |
12513 | eval "ac_cv_func_$ac_func=yes" | |
12514 | else | |
12515 | echo "configure: failed program was:" >&5 | |
12516 | cat conftest.$ac_ext >&5 | |
12517 | rm -rf conftest* | |
12518 | eval "ac_cv_func_$ac_func=no" | |
12519 | fi | |
12520 | rm -f conftest* | |
12521 | fi | |
12522 | ||
12523 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12524 | echo "$ac_t""yes" 1>&6 | |
12525 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12526 | cat >> confdefs.h <<EOF | |
12527 | #define $ac_tr_func 1 | |
12528 | EOF | |
12529 | break | |
12530 | else | |
12531 | echo "$ac_t""no" 1>&6 | |
12532 | fi | |
12533 | done | |
12534 | ||
12535 | ||
12536 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
afc31813 | 12537 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
6098c7f9 | 12538 | echo "configure:12539: checking whether gettimeofday takes two arguments" >&5 |
afc31813 VZ |
12539 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
12540 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12541 | else | |
12542 | ||
12543 | ||
12544 | ac_ext=C | |
12545 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12546 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12547 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12548 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12549 | cross_compiling=$ac_cv_prog_cxx_cross | |
12550 | ||
12551 | ||
12552 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 12553 | #line 12554 "configure" |
10f2d63a | 12554 | #include "confdefs.h" |
afc31813 VZ |
12555 | |
12556 | #include <sys/time.h> | |
12557 | #include <unistd.h> | |
12558 | ||
10f2d63a | 12559 | int main() { |
afc31813 VZ |
12560 | |
12561 | struct timeval tv; | |
12562 | struct timezone tz; | |
12563 | gettimeofday(&tv, &tz); | |
12564 | ||
10f2d63a VZ |
12565 | ; return 0; } |
12566 | EOF | |
6098c7f9 | 12567 | if { (eval echo configure:12568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 12568 | rm -rf conftest* |
afc31813 | 12569 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a VZ |
12570 | else |
12571 | echo "configure: failed program was:" >&5 | |
12572 | cat conftest.$ac_ext >&5 | |
12573 | rm -rf conftest* | |
12574 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 12575 | #line 12576 "configure" |
10f2d63a | 12576 | #include "confdefs.h" |
afc31813 VZ |
12577 | |
12578 | #include <sys/time.h> | |
12579 | #include <unistd.h> | |
12580 | ||
10f2d63a | 12581 | int main() { |
afc31813 VZ |
12582 | |
12583 | struct timeval tv; | |
12584 | gettimeofday(&tv); | |
12585 | ||
10f2d63a VZ |
12586 | ; return 0; } |
12587 | EOF | |
6098c7f9 | 12588 | if { (eval echo configure:12589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 12589 | rm -rf conftest* |
afc31813 | 12590 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a VZ |
12591 | else |
12592 | echo "configure: failed program was:" >&5 | |
12593 | cat conftest.$ac_ext >&5 | |
12594 | rm -rf conftest* | |
afc31813 VZ |
12595 | wx_cv_func_gettimeofday_has_2_args=unknown |
12596 | ||
10f2d63a VZ |
12597 | fi |
12598 | rm -f conftest* | |
afc31813 | 12599 | |
10f2d63a VZ |
12600 | fi |
12601 | rm -f conftest* | |
afc31813 | 12602 | ac_ext=c |
10f2d63a VZ |
12603 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12604 | ac_cpp='$CPP $CPPFLAGS' | |
12605 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12606 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12607 | cross_compiling=$ac_cv_prog_cc_cross | |
12608 | ||
afc31813 VZ |
12609 | |
12610 | fi | |
12611 | ||
12612 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 12613 | |
afc31813 VZ |
12614 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
12615 | cat >> confdefs.h <<\EOF | |
12616 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
12617 | EOF | |
12618 | ||
12619 | fi | |
12620 | fi | |
12621 | ||
12622 | cat >> confdefs.h <<\EOF | |
12623 | #define wxUSE_TIMEDATE 1 | |
12624 | EOF | |
12625 | ||
12626 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
12627 | fi | |
12628 | ||
12629 | ||
b089607b VZ |
12630 | if test "$TOOLKIT" != "MSW"; then |
12631 | ||
afc31813 | 12632 | if test "$wxUSE_SOCKETS" = "yes"; then |
c63c7106 | 12633 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
6098c7f9 | 12634 | echo "configure:12635: checking for socket" >&5 |
c63c7106 VZ |
12635 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
12636 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12637 | else | |
12638 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 12639 | #line 12640 "configure" |
c63c7106 VZ |
12640 | #include "confdefs.h" |
12641 | /* System header to define __stub macros and hopefully few prototypes, | |
12642 | which can conflict with char socket(); below. */ | |
12643 | #include <assert.h> | |
12644 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12645 | /* We use char because int might match the return type of a gcc2 | |
12646 | builtin and then its argument prototype would still apply. */ | |
12647 | char socket(); | |
12648 | ||
12649 | int main() { | |
12650 | ||
12651 | /* The GNU C library defines this for functions which it implements | |
12652 | to always fail with ENOSYS. Some functions are actually named | |
12653 | something starting with __ and the normal name is an alias. */ | |
12654 | #if defined (__stub_socket) || defined (__stub___socket) | |
12655 | choke me | |
12656 | #else | |
e8482f24 | 12657 | socket(); |
c63c7106 VZ |
12658 | #endif |
12659 | ||
12660 | ; return 0; } | |
12661 | EOF | |
6098c7f9 | 12662 | if { (eval echo configure:12663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
12663 | rm -rf conftest* |
12664 | eval "ac_cv_func_socket=yes" | |
12665 | else | |
12666 | echo "configure: failed program was:" >&5 | |
12667 | cat conftest.$ac_ext >&5 | |
12668 | rm -rf conftest* | |
12669 | eval "ac_cv_func_socket=no" | |
12670 | fi | |
12671 | rm -f conftest* | |
12672 | fi | |
12673 | ||
12674 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
12675 | echo "$ac_t""yes" 1>&6 | |
12676 | : | |
12677 | else | |
12678 | echo "$ac_t""no" 1>&6 | |
12679 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
6098c7f9 | 12680 | echo "configure:12681: checking for socket in -lsocket" >&5 |
c63c7106 VZ |
12681 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
12682 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12683 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12684 | else | |
12685 | ac_save_LIBS="$LIBS" | |
12686 | LIBS="-lsocket $LIBS" | |
12687 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 12688 | #line 12689 "configure" |
c63c7106 VZ |
12689 | #include "confdefs.h" |
12690 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12691 | /* We use char because int might match the return type of a gcc2 | |
12692 | builtin and then its argument prototype would still apply. */ | |
12693 | char socket(); | |
12694 | ||
12695 | int main() { | |
12696 | socket() | |
12697 | ; return 0; } | |
12698 | EOF | |
6098c7f9 | 12699 | if { (eval echo configure:12700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
12700 | rm -rf conftest* |
12701 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12702 | else | |
12703 | echo "configure: failed program was:" >&5 | |
12704 | cat conftest.$ac_ext >&5 | |
12705 | rm -rf conftest* | |
12706 | eval "ac_cv_lib_$ac_lib_var=no" | |
12707 | fi | |
12708 | rm -f conftest* | |
12709 | LIBS="$ac_save_LIBS" | |
12710 | ||
12711 | fi | |
12712 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12713 | echo "$ac_t""yes" 1>&6 | |
12714 | INET_LINK="$INET_LINK -lsocket" | |
c63c7106 VZ |
12715 | else |
12716 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
12717 | |
12718 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 | |
12719 | wxUSE_SOCKETS=no | |
12720 | ||
12721 | ||
c63c7106 VZ |
12722 | fi |
12723 | ||
12724 | ||
12725 | fi | |
12726 | ||
10f2d63a VZ |
12727 | fi |
12728 | ||
b089607b VZ |
12729 | fi |
12730 | ||
afc31813 | 12731 | if test "$wxUSE_SOCKETS" = "yes" ; then |
51a9faba | 12732 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
6098c7f9 | 12733 | echo "configure:12734: checking what is the type of the third argument of getsockname" >&5 |
51a9faba VZ |
12734 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
12735 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12736 | else | |
12737 | ||
12738 | ||
12739 | ac_ext=C | |
afc31813 VZ |
12740 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12741 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12742 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12743 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12744 | cross_compiling=$ac_cv_prog_cxx_cross | |
12745 | ||
51a9faba VZ |
12746 | |
12747 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 12748 | #line 12749 "configure" |
afc31813 | 12749 | #include "confdefs.h" |
51a9faba | 12750 | |
3ace2e6d | 12751 | #include <sys/types.h> |
51a9faba VZ |
12752 | #include <sys/socket.h> |
12753 | ||
afc31813 | 12754 | int main() { |
51a9faba VZ |
12755 | |
12756 | socklen_t len; | |
12757 | getsockname(0, 0, &len); | |
12758 | ||
afc31813 VZ |
12759 | ; return 0; } |
12760 | EOF | |
6098c7f9 | 12761 | if { (eval echo configure:12762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 | 12762 | rm -rf conftest* |
51a9faba | 12763 | wx_cv_type_getsockname3=socklen_t |
afc31813 VZ |
12764 | else |
12765 | echo "configure: failed program was:" >&5 | |
12766 | cat conftest.$ac_ext >&5 | |
12767 | rm -rf conftest* | |
12768 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 12769 | #line 12770 "configure" |
afc31813 | 12770 | #include "confdefs.h" |
51a9faba | 12771 | |
3ace2e6d | 12772 | #include <sys/types.h> |
51a9faba VZ |
12773 | #include <sys/socket.h> |
12774 | ||
afc31813 | 12775 | int main() { |
51a9faba VZ |
12776 | |
12777 | size_t len; | |
12778 | getsockname(0, 0, &len); | |
12779 | ||
afc31813 VZ |
12780 | ; return 0; } |
12781 | EOF | |
6098c7f9 | 12782 | if { (eval echo configure:12783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 | 12783 | rm -rf conftest* |
51a9faba | 12784 | wx_cv_type_getsockname3=size_t |
afc31813 VZ |
12785 | else |
12786 | echo "configure: failed program was:" >&5 | |
12787 | cat conftest.$ac_ext >&5 | |
12788 | rm -rf conftest* | |
12789 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 12790 | #line 12791 "configure" |
afc31813 | 12791 | #include "confdefs.h" |
51a9faba | 12792 | |
3ace2e6d | 12793 | #include <sys/types.h> |
51a9faba VZ |
12794 | #include <sys/socket.h> |
12795 | ||
afc31813 | 12796 | int main() { |
51a9faba VZ |
12797 | |
12798 | int len; | |
12799 | getsockname(0, 0, &len); | |
12800 | ||
afc31813 VZ |
12801 | ; return 0; } |
12802 | EOF | |
6098c7f9 | 12803 | if { (eval echo configure:12804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 | 12804 | rm -rf conftest* |
51a9faba | 12805 | wx_cv_type_getsockname3=int |
afc31813 VZ |
12806 | else |
12807 | echo "configure: failed program was:" >&5 | |
12808 | cat conftest.$ac_ext >&5 | |
3ace2e6d SN |
12809 | rm -rf conftest* |
12810 | wx_cv_type_getsockname3=unknown | |
12811 | ||
afc31813 VZ |
12812 | fi |
12813 | rm -f conftest* | |
51a9faba | 12814 | |
afc31813 VZ |
12815 | fi |
12816 | rm -f conftest* | |
51a9faba | 12817 | |
afc31813 VZ |
12818 | fi |
12819 | rm -f conftest* | |
51a9faba VZ |
12820 | |
12821 | ac_ext=c | |
afc31813 VZ |
12822 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12823 | ac_cpp='$CPP $CPPFLAGS' | |
12824 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12825 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12826 | cross_compiling=$ac_cv_prog_cc_cross | |
12827 | ||
51a9faba VZ |
12828 | |
12829 | fi | |
12830 | ||
12831 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
12832 | ||
12833 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
12834 | wxUSE_SOCKETS=no | |
12835 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
12836 | else | |
12837 | cat >> confdefs.h <<EOF | |
12838 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
12839 | EOF | |
12840 | ||
12841 | fi | |
12842 | fi | |
afc31813 | 12843 | |
51a9faba | 12844 | if test "$wxUSE_SOCKETS" = "yes" ; then |
afc31813 VZ |
12845 | cat >> confdefs.h <<\EOF |
12846 | #define wxUSE_SOCKETS 1 | |
12847 | EOF | |
12848 | ||
70f7a477 | 12849 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
12850 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" |
12851 | fi | |
12852 | ||
10f2d63a | 12853 | |
b089607b VZ |
12854 | if test "$TOOLKIT" != "MSW"; then |
12855 | ||
10f2d63a VZ |
12856 | if test "$wxUSE_JOYSTICK" = 1; then |
12857 | for ac_hdr in linux/joystick.h | |
12858 | do | |
12859 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12860 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6098c7f9 | 12861 | echo "configure:12862: checking for $ac_hdr" >&5 |
10f2d63a VZ |
12862 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12863 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12864 | else | |
12865 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 12866 | #line 12867 "configure" |
10f2d63a VZ |
12867 | #include "confdefs.h" |
12868 | #include <$ac_hdr> | |
12869 | EOF | |
12870 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6098c7f9 | 12871 | { (eval echo configure:12872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
12872 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12873 | if test -z "$ac_err"; then | |
12874 | rm -rf conftest* | |
12875 | eval "ac_cv_header_$ac_safe=yes" | |
12876 | else | |
12877 | echo "$ac_err" >&5 | |
12878 | echo "configure: failed program was:" >&5 | |
12879 | cat conftest.$ac_ext >&5 | |
12880 | rm -rf conftest* | |
12881 | eval "ac_cv_header_$ac_safe=no" | |
12882 | fi | |
12883 | rm -f conftest* | |
12884 | fi | |
12885 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12886 | echo "$ac_t""yes" 1>&6 | |
12887 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12888 | cat >> confdefs.h <<EOF | |
12889 | #define $ac_tr_hdr 1 | |
12890 | EOF | |
12891 | ||
12892 | else | |
12893 | echo "$ac_t""no" 1>&6 | |
12894 | fi | |
12895 | done | |
12896 | ||
b089607b VZ |
12897 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
12898 | wxUSE_JOYSTICK=0 | |
12899 | echo "configure: warning: Joystick not supported yb this system" 1>&2 | |
12900 | fi | |
12901 | fi | |
12902 | ||
12903 | fi | |
12904 | ||
12905 | if test "$wxUSE_JOYSTICK" = 1; then | |
10f2d63a VZ |
12906 | cat >> confdefs.h <<\EOF |
12907 | #define wxUSE_JOYSTICK 1 | |
12908 | EOF | |
12909 | ||
12910 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
10f2d63a VZ |
12911 | fi |
12912 | ||
12913 | ||
b089607b VZ |
12914 | if test "$TOOLKIT" != "MSW"; then |
12915 | ||
10f2d63a VZ |
12916 | HAVE_DL_FUNCS=0 |
12917 | HAVE_SHL_FUNCS=0 | |
12918 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
12919 | for ac_func in dlopen | |
12920 | do | |
12921 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
6098c7f9 | 12922 | echo "configure:12923: checking for $ac_func" >&5 |
10f2d63a VZ |
12923 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12924 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12925 | else | |
12926 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 12927 | #line 12928 "configure" |
10f2d63a VZ |
12928 | #include "confdefs.h" |
12929 | /* System header to define __stub macros and hopefully few prototypes, | |
12930 | which can conflict with char $ac_func(); below. */ | |
12931 | #include <assert.h> | |
12932 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12933 | /* We use char because int might match the return type of a gcc2 | |
12934 | builtin and then its argument prototype would still apply. */ | |
12935 | char $ac_func(); | |
12936 | ||
12937 | int main() { | |
12938 | ||
12939 | /* The GNU C library defines this for functions which it implements | |
12940 | to always fail with ENOSYS. Some functions are actually named | |
12941 | something starting with __ and the normal name is an alias. */ | |
12942 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12943 | choke me | |
12944 | #else | |
e8482f24 | 12945 | $ac_func(); |
10f2d63a VZ |
12946 | #endif |
12947 | ||
12948 | ; return 0; } | |
12949 | EOF | |
6098c7f9 | 12950 | if { (eval echo configure:12951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12951 | rm -rf conftest* |
12952 | eval "ac_cv_func_$ac_func=yes" | |
12953 | else | |
12954 | echo "configure: failed program was:" >&5 | |
12955 | cat conftest.$ac_ext >&5 | |
12956 | rm -rf conftest* | |
12957 | eval "ac_cv_func_$ac_func=no" | |
12958 | fi | |
12959 | rm -f conftest* | |
12960 | fi | |
12961 | ||
12962 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12963 | echo "$ac_t""yes" 1>&6 | |
12964 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12965 | cat >> confdefs.h <<EOF | |
12966 | #define $ac_tr_func 1 | |
12967 | EOF | |
12968 | ||
12969 | cat >> confdefs.h <<\EOF | |
12970 | #define HAVE_DLOPEN 1 | |
12971 | EOF | |
12972 | ||
12973 | HAVE_DL_FUNCS=1 | |
12974 | ||
12975 | else | |
12976 | echo "$ac_t""no" 1>&6 | |
12977 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
6098c7f9 | 12978 | echo "configure:12979: checking for dlopen in -ldl" >&5 |
10f2d63a VZ |
12979 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
12980 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12981 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12982 | else | |
12983 | ac_save_LIBS="$LIBS" | |
12984 | LIBS="-ldl $LIBS" | |
12985 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 12986 | #line 12987 "configure" |
10f2d63a VZ |
12987 | #include "confdefs.h" |
12988 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12989 | /* We use char because int might match the return type of a gcc2 | |
12990 | builtin and then its argument prototype would still apply. */ | |
12991 | char dlopen(); | |
12992 | ||
12993 | int main() { | |
12994 | dlopen() | |
12995 | ; return 0; } | |
12996 | EOF | |
6098c7f9 | 12997 | if { (eval echo configure:12998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12998 | rm -rf conftest* |
12999 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13000 | else | |
13001 | echo "configure: failed program was:" >&5 | |
13002 | cat conftest.$ac_ext >&5 | |
13003 | rm -rf conftest* | |
13004 | eval "ac_cv_lib_$ac_lib_var=no" | |
13005 | fi | |
13006 | rm -f conftest* | |
13007 | LIBS="$ac_save_LIBS" | |
13008 | ||
13009 | fi | |
13010 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13011 | echo "$ac_t""yes" 1>&6 | |
13012 | ||
13013 | cat >> confdefs.h <<\EOF | |
13014 | #define HAVE_DLOPEN 1 | |
13015 | EOF | |
13016 | ||
13017 | HAVE_DL_FUNCS=1 | |
13018 | LIBS="$LIBS -ldl" | |
13019 | ||
13020 | else | |
13021 | echo "$ac_t""no" 1>&6 | |
13022 | ||
13023 | for ac_func in shl_load | |
13024 | do | |
13025 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
6098c7f9 | 13026 | echo "configure:13027: checking for $ac_func" >&5 |
10f2d63a VZ |
13027 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13028 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13029 | else | |
13030 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 13031 | #line 13032 "configure" |
10f2d63a VZ |
13032 | #include "confdefs.h" |
13033 | /* System header to define __stub macros and hopefully few prototypes, | |
13034 | which can conflict with char $ac_func(); below. */ | |
13035 | #include <assert.h> | |
13036 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13037 | /* We use char because int might match the return type of a gcc2 | |
13038 | builtin and then its argument prototype would still apply. */ | |
13039 | char $ac_func(); | |
13040 | ||
13041 | int main() { | |
13042 | ||
13043 | /* The GNU C library defines this for functions which it implements | |
13044 | to always fail with ENOSYS. Some functions are actually named | |
13045 | something starting with __ and the normal name is an alias. */ | |
13046 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13047 | choke me | |
13048 | #else | |
e8482f24 | 13049 | $ac_func(); |
10f2d63a VZ |
13050 | #endif |
13051 | ||
13052 | ; return 0; } | |
13053 | EOF | |
6098c7f9 | 13054 | if { (eval echo configure:13055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
13055 | rm -rf conftest* |
13056 | eval "ac_cv_func_$ac_func=yes" | |
13057 | else | |
13058 | echo "configure: failed program was:" >&5 | |
13059 | cat conftest.$ac_ext >&5 | |
13060 | rm -rf conftest* | |
13061 | eval "ac_cv_func_$ac_func=no" | |
13062 | fi | |
13063 | rm -f conftest* | |
13064 | fi | |
13065 | ||
13066 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13067 | echo "$ac_t""yes" 1>&6 | |
13068 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13069 | cat >> confdefs.h <<EOF | |
13070 | #define $ac_tr_func 1 | |
13071 | EOF | |
13072 | ||
13073 | cat >> confdefs.h <<\EOF | |
13074 | #define HAVE_SHL_LOAD 1 | |
13075 | EOF | |
13076 | ||
13077 | HAVE_SHL_FUNCS=1 | |
13078 | ||
13079 | else | |
13080 | echo "$ac_t""no" 1>&6 | |
13081 | fi | |
13082 | done | |
13083 | ||
13084 | ||
13085 | fi | |
13086 | ||
13087 | ||
13088 | fi | |
13089 | done | |
13090 | ||
13091 | ||
13092 | if test "$HAVE_DL_FUNCS" = 0; then | |
13093 | if test "$HAVE_SHL_FUNCS" = 0; then | |
13094 | if test "$USE_UNIX" = 1; then | |
b12915c1 | 13095 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
10f2d63a VZ |
13096 | wxUSE_DYNLIB_CLASS=no |
13097 | else | |
b12915c1 | 13098 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
10f2d63a VZ |
13099 | fi |
13100 | fi | |
13101 | fi | |
13102 | fi | |
13103 | ||
b089607b VZ |
13104 | fi |
13105 | ||
10f2d63a | 13106 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
b12915c1 | 13107 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13108 | #define wxUSE_DYNLIB_CLASS 1 |
13109 | EOF | |
13110 | ||
b12915c1 VZ |
13111 | else |
13112 | wxUSE_ODBC=no | |
13113 | wxUSE_SERIAL=no | |
10f2d63a VZ |
13114 | fi |
13115 | ||
13116 | ||
13117 | if test "$wxUSE_UNICODE" = "yes" ; then | |
13118 | cat >> confdefs.h <<\EOF | |
13119 | #define wxUSE_UNICODE 1 | |
13120 | EOF | |
13121 | ||
13122 | fi | |
13123 | ||
13124 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
13125 | cat >> confdefs.h <<\EOF | |
13126 | #define wxUSE_WCSRTOMBS 1 | |
13127 | EOF | |
13128 | ||
13129 | fi | |
13130 | ||
13131 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
13132 | cat >> confdefs.h <<\EOF | |
13133 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
13134 | EOF | |
13135 | ||
13136 | fi | |
13137 | ||
13138 | ||
b12915c1 VZ |
13139 | if test "$wxUSE_SERIAL" = "yes" ; then |
13140 | cat >> confdefs.h <<\EOF | |
13141 | #define wxUSE_SERIAL 1 | |
13142 | EOF | |
13143 | ||
13144 | fi | |
13145 | ||
13146 | ||
10f2d63a VZ |
13147 | IODBC_C_SRC="" |
13148 | if test "$wxUSE_ODBC" = "yes" ; then | |
13149 | cat >> confdefs.h <<\EOF | |
13150 | #define wxUSE_ODBC 1 | |
13151 | EOF | |
13152 | ||
13153 | WXODBCFLAG="-D_IODBC_" | |
13154 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
13155 | IODBCOBJS="\$(IODBC_OBJS)" | |
13156 | else | |
13157 | IODBCOBJS= | |
13158 | fi | |
13159 | ||
13160 | ||
13161 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
13162 | cat >> confdefs.h <<\EOF | |
13163 | #define wxUSE_POSTSCRIPT 1 | |
13164 | EOF | |
13165 | ||
13166 | fi | |
13167 | ||
13168 | cat >> confdefs.h <<\EOF | |
13169 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
13170 | EOF | |
13171 | ||
13172 | ||
13173 | cat >> confdefs.h <<\EOF | |
13174 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
13175 | EOF | |
13176 | ||
13177 | ||
13178 | ||
13179 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
13180 | cat >> confdefs.h <<\EOF | |
13181 | #define wxUSE_CONSTRAINTS 1 | |
13182 | EOF | |
13183 | ||
13184 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
13185 | fi | |
13186 | ||
13187 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
13188 | cat >> confdefs.h <<\EOF | |
13189 | #define wxUSE_MDI_ARCHITECTURE 1 | |
13190 | EOF | |
13191 | ||
13192 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
13193 | fi | |
13194 | ||
13195 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
13196 | cat >> confdefs.h <<\EOF | |
13197 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
13198 | EOF | |
13199 | ||
13200 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
13201 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
13202 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
13203 | fi | |
13204 | fi | |
13205 | ||
13206 | if test "$wxUSE_HELP" = "yes"; then | |
13207 | cat >> confdefs.h <<\EOF | |
13208 | #define wxUSE_HELP 1 | |
13209 | EOF | |
13210 | ||
13211 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
13212 | fi | |
13213 | ||
13214 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
13215 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
13216 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 | |
13217 | else | |
13218 | cat >> confdefs.h <<\EOF | |
13219 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
13220 | EOF | |
13221 | ||
13222 | fi | |
13223 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
13224 | fi | |
13225 | ||
13226 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
13227 | cat >> confdefs.h <<\EOF | |
13228 | #define wxUSE_PROLOGIO 1 | |
13229 | EOF | |
13230 | ||
13231 | fi | |
13232 | ||
13233 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
13234 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
13235 | cat >> confdefs.h <<\EOF | |
13236 | #define wxUSE_RESOURCES 1 | |
13237 | EOF | |
13238 | ||
13239 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
13240 | else | |
13241 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 | |
13242 | fi | |
13243 | fi | |
13244 | ||
13245 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
13246 | cat >> confdefs.h <<\EOF | |
13247 | #define wxUSE_X_RESOURCES 1 | |
13248 | EOF | |
13249 | ||
13250 | fi | |
13251 | ||
13252 | ||
13253 | if test "$wxUSE_IPC" = "yes"; then | |
13254 | cat >> confdefs.h <<\EOF | |
13255 | #define wxUSE_IPC 1 | |
13256 | EOF | |
13257 | ||
13258 | fi | |
13259 | ||
13260 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
13261 | cat >> confdefs.h <<\EOF | |
13262 | #define wxUSE_CLIPBOARD 1 | |
13263 | EOF | |
13264 | ||
13265 | fi | |
13266 | ||
13267 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
13268 | if test "$wxUSE_GTK" = 1; then | |
13269 | if test "$WXGTK12" != 1; then | |
13270 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
13271 | wxUSE_DRAG_AND_DROP=no | |
13272 | fi | |
13273 | fi | |
13274 | ||
13275 | if test "$wxUSE_MOTIF" = 1; then | |
13276 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
13277 | wxUSE_DRAG_AND_DROP=no | |
13278 | fi | |
13279 | ||
13280 | if test "$USE_WIN32" = 1; then | |
13281 | for ac_hdr in ole2.h | |
13282 | do | |
13283 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13284 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6098c7f9 | 13285 | echo "configure:13286: checking for $ac_hdr" >&5 |
10f2d63a VZ |
13286 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13287 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13288 | else | |
13289 | cat > conftest.$ac_ext <<EOF | |
6098c7f9 | 13290 | #line 13291 "configure" |
10f2d63a VZ |
13291 | #include "confdefs.h" |
13292 | #include <$ac_hdr> | |
13293 | EOF | |
13294 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6098c7f9 | 13295 | { (eval echo configure:13296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
13296 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13297 | if test -z "$ac_err"; then | |
13298 | rm -rf conftest* | |
13299 | eval "ac_cv_header_$ac_safe=yes" | |
13300 | else | |
13301 | echo "$ac_err" >&5 | |
13302 | echo "configure: failed program was:" >&5 | |
13303 | cat conftest.$ac_ext >&5 | |
13304 | rm -rf conftest* | |
13305 | eval "ac_cv_header_$ac_safe=no" | |
13306 | fi | |
13307 | rm -f conftest* | |
13308 | fi | |
13309 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13310 | echo "$ac_t""yes" 1>&6 | |
13311 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13312 | cat >> confdefs.h <<EOF | |
13313 | #define $ac_tr_hdr 1 | |
13314 | EOF | |
13315 | ||
13316 | else | |
13317 | echo "$ac_t""no" 1>&6 | |
13318 | fi | |
13319 | done | |
13320 | ||
13321 | if test "x$HAVE_OLE2_H" = x ; then | |
13322 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 | |
13323 | wxUSE_DRAG_AND_DROP=no | |
13324 | fi | |
13325 | fi | |
13326 | ||
13327 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
13328 | cat >> confdefs.h <<\EOF | |
13329 | #define wxUSE_DRAG_AND_DROP 1 | |
13330 | EOF | |
13331 | ||
13332 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
13333 | fi | |
13334 | ||
13335 | fi | |
13336 | ||
13337 | if test "$wxUSE_SPLINES" = "yes" ; then | |
13338 | cat >> confdefs.h <<\EOF | |
13339 | #define wxUSE_SPLINES 1 | |
13340 | EOF | |
13341 | ||
13342 | fi | |
13343 | ||
13344 | ||
13345 | if test "$wxUSE_ACCEL" = "yes"; then | |
13346 | cat >> confdefs.h <<\EOF | |
13347 | #define wxUSE_ACCEL 1 | |
13348 | EOF | |
13349 | ||
13350 | fi | |
13351 | ||
13352 | if test "$wxUSE_CARET" = "yes"; then | |
13353 | cat >> confdefs.h <<\EOF | |
13354 | #define wxUSE_CARET 1 | |
13355 | EOF | |
13356 | ||
13357 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
13358 | fi | |
13359 | ||
13360 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
13361 | cat >> confdefs.h <<\EOF | |
13362 | #define wxUSE_COMBOBOX 1 | |
13363 | EOF | |
13364 | ||
13365 | fi | |
13366 | ||
13367 | if test "$wxUSE_CHOICE" = "yes"; then | |
13368 | cat >> confdefs.h <<\EOF | |
13369 | #define wxUSE_CHOICE 1 | |
13370 | EOF | |
13371 | ||
13372 | fi | |
13373 | ||
13374 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
13375 | cat >> confdefs.h <<\EOF | |
13376 | #define wxUSE_BMPBUTTON 1 | |
13377 | EOF | |
13378 | ||
13379 | fi | |
13380 | ||
13381 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
13382 | cat >> confdefs.h <<\EOF | |
13383 | #define wxUSE_CHECKBOX 1 | |
13384 | EOF | |
13385 | ||
13386 | fi | |
13387 | ||
13388 | if test "$wxUSE_CHECKLST" = "yes"; then | |
13389 | cat >> confdefs.h <<\EOF | |
13390 | #define wxUSE_CHECKLISTBOX 1 | |
13391 | EOF | |
13392 | ||
13393 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
13394 | fi | |
13395 | ||
13396 | if test "$wxUSE_GAUGE" = "yes"; then | |
13397 | cat >> confdefs.h <<\EOF | |
13398 | #define wxUSE_GAUGE 1 | |
13399 | EOF | |
13400 | ||
13401 | fi | |
13402 | ||
d6a55c4b VZ |
13403 | if test "$wxUSE_NEW_GRID" = "yes"; then |
13404 | wxUSE_GRID="yes" | |
10f2d63a | 13405 | cat >> confdefs.h <<\EOF |
d6a55c4b | 13406 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
13407 | EOF |
13408 | ||
d6a55c4b | 13409 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
13410 | fi |
13411 | ||
d6a55c4b | 13412 | if test "$wxUSE_GRID" = "yes"; then |
10f2d63a | 13413 | cat >> confdefs.h <<\EOF |
d6a55c4b | 13414 | #define wxUSE_GRID 1 |
10f2d63a VZ |
13415 | EOF |
13416 | ||
d6a55c4b | 13417 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
13418 | fi |
13419 | ||
13420 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
13421 | cat >> confdefs.h <<\EOF | |
13422 | #define wxUSE_IMAGLIST 1 | |
13423 | EOF | |
13424 | ||
13425 | fi | |
13426 | ||
13427 | if test "$wxUSE_LISTBOX" = "yes"; then | |
13428 | cat >> confdefs.h <<\EOF | |
13429 | #define wxUSE_LISTBOX 1 | |
13430 | EOF | |
13431 | ||
13432 | fi | |
13433 | ||
13434 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
13435 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
13436 | cat >> confdefs.h <<\EOF | |
13437 | #define wxUSE_LISTCTRL 1 | |
13438 | EOF | |
13439 | ||
13440 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
13441 | else | |
13442 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
13443 | fi | |
13444 | fi | |
13445 | ||
13446 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
13447 | cat >> confdefs.h <<\EOF | |
13448 | #define wxUSE_NOTEBOOK 1 | |
13449 | EOF | |
13450 | ||
13451 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
13452 | fi | |
13453 | ||
13454 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
13455 | cat >> confdefs.h <<\EOF | |
13456 | #define wxUSE_RADIOBOX 1 | |
13457 | EOF | |
13458 | ||
13459 | fi | |
13460 | ||
13461 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
13462 | cat >> confdefs.h <<\EOF | |
13463 | #define wxUSE_RADIOBTN 1 | |
13464 | EOF | |
13465 | ||
13466 | fi | |
13467 | ||
13468 | if test "$wxUSE_SASH" = "yes"; then | |
13469 | cat >> confdefs.h <<\EOF | |
13470 | #define wxUSE_SASH 1 | |
13471 | EOF | |
13472 | ||
13473 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
13474 | fi | |
13475 | ||
13476 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
13477 | cat >> confdefs.h <<\EOF | |
13478 | #define wxUSE_SCROLLBAR 1 | |
13479 | EOF | |
13480 | ||
741a9306 | 13481 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
13482 | fi |
13483 | ||
13484 | if test "$wxUSE_SLIDER" = "yes"; then | |
13485 | cat >> confdefs.h <<\EOF | |
13486 | #define wxUSE_SLIDER 1 | |
13487 | EOF | |
13488 | ||
13489 | fi | |
13490 | ||
13491 | if test "$wxUSE_SPINBTN" = "yes"; then | |
13492 | cat >> confdefs.h <<\EOF | |
13493 | #define wxUSE_SPINBTN 1 | |
13494 | EOF | |
13495 | ||
13496 | fi | |
13497 | ||
56cfaa52 RR |
13498 | if test "$wxUSE_SPINCTRL" = "yes"; then |
13499 | cat >> confdefs.h <<\EOF | |
13500 | #define wxUSE_SPINCTRL 1 | |
13501 | EOF | |
13502 | ||
13503 | fi | |
13504 | ||
10f2d63a VZ |
13505 | if test "$wxUSE_SPLITTER" = "yes"; then |
13506 | cat >> confdefs.h <<\EOF | |
13507 | #define wxUSE_SPLITTER 1 | |
13508 | EOF | |
13509 | ||
13510 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
13511 | fi | |
13512 | ||
13513 | if test "$wxUSE_STATBMP" = "yes"; then | |
13514 | cat >> confdefs.h <<\EOF | |
13515 | #define wxUSE_STATBMP 1 | |
13516 | EOF | |
13517 | ||
13518 | fi | |
13519 | ||
13520 | if test "$wxUSE_STATBOX" = "yes"; then | |
13521 | cat >> confdefs.h <<\EOF | |
13522 | #define wxUSE_STATBOX 1 | |
13523 | EOF | |
13524 | ||
13525 | fi | |
13526 | ||
13527 | if test "$wxUSE_STATLINE" = "yes"; then | |
13528 | if test "$wxUSE_WINE" = 1 ; then | |
13529 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 | |
13530 | else | |
13531 | cat >> confdefs.h <<\EOF | |
13532 | #define wxUSE_STATLINE 1 | |
13533 | EOF | |
13534 | ||
13535 | fi | |
13536 | fi | |
13537 | ||
13538 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
13539 | cat >> confdefs.h <<\EOF | |
13540 | #define wxUSE_STATUSBAR 1 | |
13541 | EOF | |
13542 | ||
2286341c VZ |
13543 | |
13544 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
10f2d63a VZ |
13545 | fi |
13546 | ||
13547 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
13548 | cat >> confdefs.h <<\EOF | |
13549 | #define wxUSE_TAB_DIALOG 1 | |
13550 | EOF | |
13551 | ||
13552 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
13553 | fi | |
13554 | ||
360d6699 VZ |
13555 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
13556 | cat >> confdefs.h <<\EOF | |
13557 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
13558 | EOF | |
13559 | ||
13560 | wxUSE_TOOLBAR="yes" | |
13561 | fi | |
13562 | ||
10f2d63a VZ |
13563 | if test "$wxUSE_TOOLBAR" = "yes"; then |
13564 | cat >> confdefs.h <<\EOF | |
13565 | #define wxUSE_TOOLBAR 1 | |
13566 | EOF | |
13567 | ||
360d6699 VZ |
13568 | |
13569 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
13570 | wxUSE_TOOLBAR_NATIVE="yes" | |
13571 | fi | |
13572 | ||
10f2d63a VZ |
13573 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" |
13574 | fi | |
13575 | ||
360d6699 VZ |
13576 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
13577 | cat >> confdefs.h <<\EOF | |
13578 | #define wxUSE_TOOLBAR_NATIVE 1 | |
13579 | EOF | |
13580 | ||
13581 | fi | |
13582 | ||
10f2d63a VZ |
13583 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
13584 | if test "$wxUSE_MOTIF" = 1; then | |
13585 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 | |
13586 | else | |
13587 | if test "$wxUSE_WINE" = 1; then | |
13588 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 | |
13589 | else | |
13590 | cat >> confdefs.h <<\EOF | |
13591 | #define wxUSE_TOOLTIPS 1 | |
13592 | EOF | |
13593 | ||
13594 | fi | |
13595 | fi | |
13596 | fi | |
13597 | ||
13598 | if test "$wxUSE_TREECTRL" = "yes"; then | |
13599 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
13600 | cat >> confdefs.h <<\EOF | |
13601 | #define wxUSE_TREECTRL 1 | |
13602 | EOF | |
13603 | ||
13604 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
13605 | else | |
13606 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
13607 | fi | |
13608 | fi | |
13609 | ||
13610 | ||
13611 | ||
13612 | if test "$wxUSE_METAFILE" = "yes"; then | |
13613 | cat >> confdefs.h <<\EOF | |
13614 | #define wxUSE_METAFILE 1 | |
13615 | EOF | |
13616 | ||
13617 | fi | |
13618 | ||
13619 | if test "$wxUSE_DIRDLG" = "yes"; then | |
13620 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
13621 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
13622 | else | |
13623 | if test "$wxUSE_TREECTRL" != "yes"; then | |
13624 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
13625 | else | |
13626 | cat >> confdefs.h <<\EOF | |
13627 | #define wxUSE_DIRDLG 1 | |
13628 | EOF | |
13629 | ||
13630 | fi | |
13631 | fi | |
13632 | fi | |
13633 | ||
13634 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
13635 | cat >> confdefs.h <<\EOF | |
13636 | #define wxUSE_TEXTDLG 1 | |
13637 | EOF | |
13638 | ||
13639 | fi | |
13640 | ||
13641 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
13642 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
13643 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
13644 | else | |
13645 | cat >> confdefs.h <<\EOF | |
13646 | #define wxUSE_STARTUP_TIPS 1 | |
13647 | EOF | |
13648 | ||
13649 | fi | |
13650 | fi | |
13651 | ||
13652 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
13653 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
13654 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
13655 | else | |
13656 | cat >> confdefs.h <<\EOF | |
13657 | #define wxUSE_PROGRESSDLG 1 | |
13658 | EOF | |
13659 | ||
13660 | fi | |
13661 | fi | |
13662 | ||
13663 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
13664 | cat >> confdefs.h <<\EOF | |
13665 | #define wxUSE_MINIFRAME 1 | |
13666 | EOF | |
13667 | ||
13668 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
13669 | fi | |
13670 | ||
13671 | if test "$wxUSE_HTML" = "yes"; then | |
13672 | cat >> confdefs.h <<\EOF | |
13673 | #define wxUSE_HTML 1 | |
13674 | EOF | |
13675 | ||
13676 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
13677 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
13678 | fi | |
13679 | ||
13680 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
13681 | cat >> confdefs.h <<\EOF | |
13682 | #define wxUSE_VALIDATORS 1 | |
13683 | EOF | |
13684 | ||
13685 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
13686 | fi | |
13687 | ||
13688 | if test "$wxUSE_GIF" = "yes" ; then | |
13689 | cat >> confdefs.h <<\EOF | |
13690 | #define wxUSE_GIF 1 | |
13691 | EOF | |
13692 | ||
13693 | fi | |
13694 | ||
13695 | if test "$wxUSE_PCX" = "yes" ; then | |
13696 | cat >> confdefs.h <<\EOF | |
13697 | #define wxUSE_PCX 1 | |
13698 | EOF | |
13699 | ||
13700 | fi | |
13701 | ||
13702 | if test "$wxUSE_PNM" = "yes" ; then | |
13703 | cat >> confdefs.h <<\EOF | |
13704 | #define wxUSE_PNM 1 | |
13705 | EOF | |
13706 | ||
13707 | fi | |
13708 | ||
13709 | ||
32832908 VZ |
13710 | if test "$cross_compiling" = "yes"; then |
13711 | OSINFO="\"$host\"" | |
13712 | else | |
13713 | OSINFO=`uname -s -r -m` | |
13714 | OSINFO="\"$OSINFO\"" | |
13715 | fi | |
13716 | ||
aaa37c0d VZ |
13717 | cat >> confdefs.h <<EOF |
13718 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
13719 | EOF | |
13720 | ||
13721 | ||
13722 | ||
bdad4e7e | 13723 | GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $TOOLKIT_LINK" |
10f2d63a | 13724 | |
422107f9 | 13725 | EXTRA_LIBS="$LIBS $ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK" |
10f2d63a | 13726 | if test "$wxUSE_GUI" = "yes"; then |
0dcf9893 | 13727 | EXTRA_LIBS="$EXTRA_LIBS $GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK" |
10f2d63a VZ |
13728 | fi |
13729 | ||
13730 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
13731 | ||
e8482f24 | 13732 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include -I\${top_srcdir}/contrib/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE" |
10f2d63a VZ |
13733 | |
13734 | if test "$GXX" = yes ; then | |
13735 | CXXWARNINGS="-Wall" | |
d6a55c4b | 13736 | fi |
10f2d63a VZ |
13737 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
13738 | ||
13739 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'` | |
13740 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
13741 | ||
e694c22c VZ |
13742 | LDFLAGS="$LDFLAGS $PROFILE" |
13743 | ||
10f2d63a VZ |
13744 | if test "$wxUSE_GUI" = "yes"; then |
13745 | ||
bdad4e7e | 13746 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag drawing dynamic \ |
bc9027cc | 13747 | font fractal image menu minimal richedit" |
b12915c1 | 13748 | |
88d3a15c | 13749 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
10f2d63a VZ |
13750 | else |
13751 | SAMPLES_SUBDIRS="" | |
13752 | fi | |
13753 | ||
ec14dd32 VZ |
13754 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
13755 | ||
13756 | ||
13757 | ||
10f2d63a VZ |
13758 | |
13759 | ||
13760 | ||
13761 | ||
13762 | ||
13763 | ||
13764 | ||
13765 | ||
13766 | ||
13767 | ||
13768 | ||
13769 | ||
13770 | ||
13771 | ||
13772 | ||
13773 | ||
13774 | ||
13775 | ||
13776 | ||
13777 | ||
13778 | ||
13779 | ||
13780 | ||
13781 | ||
13782 | ||
13783 | ||
13784 | ||
13785 | ||
13786 | ||
13787 | ||
13788 | ||
13789 | ||
13790 | ||
13791 | ||
13792 | ||
13793 | ||
13794 | ||
13795 | ||
13796 | ||
13797 | ||
13798 | ||
13799 | ||
13800 | ||
13801 | ||
13802 | ||
13803 | ||
13804 | ||
13805 | ||
13806 | ||
13807 | ||
13808 | ||
13809 | ||
1d62a8b4 | 13810 | |
bdad4e7e RR |
13811 | |
13812 | ||
13813 | ||
13814 | ||
13815 | ||
13816 | ||
13817 | ||
32832908 VZ |
13818 | |
13819 | ||
13820 | ||
13821 | ||
13822 | ||
13823 | ||
13824 | ||
13825 | ||
13826 | ||
13827 | ||
13828 | ||
13829 | ||
13830 | ||
bdad4e7e RR |
13831 | |
13832 | ||
13833 | ||
e694c22c | 13834 | |
b12915c1 | 13835 | |
2224580a VZ |
13836 | |
13837 | ||
13838 | ||
13839 | ||
dad6c0ea VZ |
13840 | |
13841 | ||
caa2c79b | 13842 | |
10f2d63a VZ |
13843 | |
13844 | ||
13845 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
6098c7f9 | 13846 | echo "configure:13847: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
10f2d63a VZ |
13847 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
13848 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
13849 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13850 | else | |
13851 | cat > conftestmake <<\EOF | |
13852 | all: | |
13853 | @echo 'ac_maketemp="${MAKE}"' | |
13854 | EOF | |
13855 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
13856 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
13857 | if test -n "$ac_maketemp"; then | |
13858 | eval ac_cv_prog_make_${ac_make}_set=yes | |
13859 | else | |
13860 | eval ac_cv_prog_make_${ac_make}_set=no | |
13861 | fi | |
13862 | rm -f conftestmake | |
13863 | fi | |
13864 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
13865 | echo "$ac_t""yes" 1>&6 | |
13866 | SET_MAKE= | |
13867 | else | |
13868 | echo "$ac_t""no" 1>&6 | |
13869 | SET_MAKE="MAKE=${MAKE-make}" | |
13870 | fi | |
13871 | ||
13872 | ||
00cf1208 RR |
13873 | if test -d include; then |
13874 | if test -d include/wx; then | |
13875 | if test -d include/wx/${TOOLKIT_DIR}; then | |
13876 | if test -f include/wx/${TOOLKIT_DIR}/setup.h; then | |
13877 | mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h | |
13878 | fi | |
13879 | fi | |
13880 | fi | |
13881 | fi | |
13882 | ||
10f2d63a VZ |
13883 | |
13884 | ||
2224580a | 13885 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 13886 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
13887 | wx_cv_path_ifs=$PATH_IFS |
13888 | wx_cv_program_ext=$PROGRAM_EXT | |
13889 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
13890 | subdirs="demos samples utils contrib" | |
2224580a VZ |
13891 | |
13892 | fi | |
10f2d63a VZ |
13893 | |
13894 | trap '' 1 2 15 | |
13895 | cat > confcache <<\EOF | |
13896 | # This file is a shell script that caches the results of configure | |
13897 | # tests run on this system so they can be shared between configure | |
13898 | # scripts and configure runs. It is not useful on other systems. | |
13899 | # If it contains results you don't want to keep, you may remove or edit it. | |
13900 | # | |
13901 | # By default, configure uses ./config.cache as the cache file, | |
13902 | # creating it if it does not exist already. You can give configure | |
13903 | # the --cache-file=FILE option to use a different cache file; that is | |
13904 | # what configure does when it calls configure scripts in | |
13905 | # subdirectories, so they share the cache. | |
13906 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
13907 | # config.status only pays attention to the cache file if you give it the | |
13908 | # --recheck option to rerun configure. | |
13909 | # | |
13910 | EOF | |
13911 | # The following way of writing the cache mishandles newlines in values, | |
13912 | # but we know of no workaround that is simple, portable, and efficient. | |
13913 | # So, don't put newlines in cache variables' values. | |
13914 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
13915 | # and sets the high bit in the cache file unless we assign to the vars. | |
13916 | (set) 2>&1 | | |
13917 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
13918 | *ac_space=\ *) | |
13919 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
13920 | # turns \\\\ into \\, and sed turns \\ into \). | |
13921 | sed -n \ | |
13922 | -e "s/'/'\\\\''/g" \ | |
13923 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
13924 | ;; | |
13925 | *) | |
13926 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13927 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
13928 | ;; | |
13929 | esac >> confcache | |
13930 | if cmp -s $cache_file confcache; then | |
13931 | : | |
13932 | else | |
13933 | if test -w $cache_file; then | |
13934 | echo "updating cache $cache_file" | |
13935 | cat confcache > $cache_file | |
13936 | else | |
13937 | echo "not updating unwritable cache $cache_file" | |
13938 | fi | |
13939 | fi | |
13940 | rm -f confcache | |
13941 | ||
13942 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
13943 | ||
13944 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
13945 | # Let make expand exec_prefix. | |
13946 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
13947 | ||
13948 | # Any assignment to VPATH causes Sun make to only execute | |
13949 | # the first set of double-colon rules, so remove it if not needed. | |
13950 | # If there is a colon in the path, we need to keep it. | |
13951 | if test "x$srcdir" = x.; then | |
13952 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
13953 | fi | |
13954 | ||
13955 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
13956 | ||
13957 | DEFS=-DHAVE_CONFIG_H | |
13958 | ||
13959 | # Without the "./", some shells look in PATH for config.status. | |
13960 | : ${CONFIG_STATUS=./config.status} | |
13961 | ||
13962 | echo creating $CONFIG_STATUS | |
13963 | rm -f $CONFIG_STATUS | |
13964 | cat > $CONFIG_STATUS <<EOF | |
13965 | #! /bin/sh | |
13966 | # Generated automatically by configure. | |
13967 | # Run this file to recreate the current configuration. | |
13968 | # This directory was configured as follows, | |
13969 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
13970 | # | |
13971 | # $0 $ac_configure_args | |
13972 | # | |
13973 | # Compiler output produced by configure, useful for debugging | |
13974 | # configure, is in ./config.log if it exists. | |
13975 | ||
13976 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
13977 | for ac_option | |
13978 | do | |
13979 | case "\$ac_option" in | |
13980 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
13981 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
13982 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
13983 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
e8482f24 | 13984 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
10f2d63a VZ |
13985 | exit 0 ;; |
13986 | -help | --help | --hel | --he | --h) | |
13987 | echo "\$ac_cs_usage"; exit 0 ;; | |
13988 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
13989 | esac | |
13990 | done | |
13991 | ||
13992 | ac_given_srcdir=$srcdir | |
13993 | ac_given_INSTALL="$INSTALL" | |
13994 | ||
13995 | trap 'rm -fr `echo " | |
13996 | wx-config | |
13997 | src/make.env | |
13998 | src/makeprog.env | |
13999 | src/makelib.env | |
14000 | Makefile | |
10f2d63a VZ |
14001 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
14002 | EOF | |
14003 | cat >> $CONFIG_STATUS <<EOF | |
14004 | ||
14005 | # Protect against being on the right side of a sed subst in config.status. | |
14006 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
14007 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
14008 | $ac_vpsub | |
14009 | $extrasub | |
14010 | s%@SHELL@%$SHELL%g | |
14011 | s%@CFLAGS@%$CFLAGS%g | |
14012 | s%@CPPFLAGS@%$CPPFLAGS%g | |
14013 | s%@CXXFLAGS@%$CXXFLAGS%g | |
14014 | s%@FFLAGS@%$FFLAGS%g | |
14015 | s%@DEFS@%$DEFS%g | |
14016 | s%@LDFLAGS@%$LDFLAGS%g | |
14017 | s%@LIBS@%$LIBS%g | |
14018 | s%@exec_prefix@%$exec_prefix%g | |
14019 | s%@prefix@%$prefix%g | |
14020 | s%@program_transform_name@%$program_transform_name%g | |
14021 | s%@bindir@%$bindir%g | |
14022 | s%@sbindir@%$sbindir%g | |
14023 | s%@libexecdir@%$libexecdir%g | |
14024 | s%@datadir@%$datadir%g | |
14025 | s%@sysconfdir@%$sysconfdir%g | |
14026 | s%@sharedstatedir@%$sharedstatedir%g | |
14027 | s%@localstatedir@%$localstatedir%g | |
14028 | s%@libdir@%$libdir%g | |
14029 | s%@includedir@%$includedir%g | |
14030 | s%@oldincludedir@%$oldincludedir%g | |
14031 | s%@infodir@%$infodir%g | |
14032 | s%@mandir@%$mandir%g | |
7c66a493 VZ |
14033 | s%@host@%$host%g |
14034 | s%@host_alias@%$host_alias%g | |
14035 | s%@host_cpu@%$host_cpu%g | |
14036 | s%@host_vendor@%$host_vendor%g | |
14037 | s%@host_os@%$host_os%g | |
14038 | s%@target@%$target%g | |
14039 | s%@target_alias@%$target_alias%g | |
14040 | s%@target_cpu@%$target_cpu%g | |
14041 | s%@target_vendor@%$target_vendor%g | |
14042 | s%@target_os@%$target_os%g | |
14043 | s%@build@%$build%g | |
14044 | s%@build_alias@%$build_alias%g | |
14045 | s%@build_cpu@%$build_cpu%g | |
14046 | s%@build_vendor@%$build_vendor%g | |
14047 | s%@build_os@%$build_os%g | |
10f2d63a VZ |
14048 | s%@CC@%$CC%g |
14049 | s%@CPP@%$CPP%g | |
14050 | s%@CXX@%$CXX%g | |
14051 | s%@CXXCPP@%$CXXCPP%g | |
14052 | s%@RANLIB@%$RANLIB%g | |
14053 | s%@AR@%$AR%g | |
14054 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
14055 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
14056 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
14057 | s%@STRIP@%$STRIP%g | |
14058 | s%@YACC@%$YACC%g | |
14059 | s%@LEX@%$LEX%g | |
14060 | s%@LEXLIB@%$LEXLIB%g | |
14061 | s%@LN_S@%$LN_S%g | |
14062 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
14063 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
14064 | s%@GTK_LIBS@%$GTK_LIBS%g | |
ab9b9eab VZ |
14065 | s%@X_CFLAGS@%$X_CFLAGS%g |
14066 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
14067 | s%@X_LIBS@%$X_LIBS%g | |
14068 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
ec14dd32 VZ |
14069 | s%@LEX_STEM@%$LEX_STEM%g |
14070 | s%@PATH_IFS@%$PATH_IFS%g | |
10f2d63a VZ |
14071 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g |
14072 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
14073 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
14074 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
14075 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
14076 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
14077 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
14078 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
14079 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
14080 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
14081 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
14082 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
bdad4e7e RR |
14083 | s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g |
14084 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
14085 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
14086 | s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g | |
14087 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
14088 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
14089 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
14090 | s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g | |
10f2d63a VZ |
14091 | s%@WX_ALL@%$WX_ALL%g |
14092 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
14093 | s%@SHARED_LD@%$SHARED_LD%g | |
14094 | s%@PIC_FLAG@%$PIC_FLAG%g | |
14095 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
caa2c79b | 14096 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
1d62a8b4 | 14097 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g |
bdad4e7e | 14098 | s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g |
10f2d63a | 14099 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
dad6c0ea VZ |
14100 | s%@USE_GUI@%$USE_GUI%g |
14101 | s%@AFMINSTALL@%$AFMINSTALL%g | |
10f2d63a VZ |
14102 | s%@TOOLKIT@%$TOOLKIT%g |
14103 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
14104 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
14105 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
14106 | s%@GUIHEADERS@%$GUIHEADERS%g | |
14107 | s%@GUIOBJS@%$GUIOBJS%g | |
14108 | s%@COMMONOBJS@%$COMMONOBJS%g | |
14109 | s%@GENERICOBJS@%$GENERICOBJS%g | |
14110 | s%@GUIDEPS@%$GUIDEPS%g | |
14111 | s%@COMMONDEPS@%$COMMONDEPS%g | |
14112 | s%@GENERICDEPS@%$GENERICDEPS%g | |
14113 | s%@IODBCOBJS@%$IODBCOBJS%g | |
14114 | s%@UNIXOBJS@%$UNIXOBJS%g | |
14115 | s%@UNIXDEPS@%$UNIXDEPS%g | |
14116 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
14117 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
10f2d63a | 14118 | s%@GUIDIST@%$GUIDIST%g |
2224580a VZ |
14119 | s%@PORT_FILES@%$PORT_FILES%g |
14120 | s%@DISTDIR@%$DISTDIR%g | |
14121 | s%@RPM_SPEC@%$RPM_SPEC%g | |
14122 | s%@RPM_FILES@%$RPM_FILES%g | |
10f2d63a VZ |
14123 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g |
14124 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
14125 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
14126 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
14127 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
14128 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
14129 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
b12915c1 | 14130 | s%@EXTRADEFS@%$EXTRADEFS%g |
10f2d63a | 14131 | s%@LD_LIBS@%$LD_LIBS%g |
32832908 VZ |
14132 | s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g |
14133 | s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g | |
14134 | s%@RESPROGRAM@%$RESPROGRAM%g | |
14135 | s%@RESCOMP@%$RESCOMP%g | |
14136 | s%@RESFLAGS@%$RESFLAGS%g | |
14137 | s%@DLLTOOL@%$DLLTOOL%g | |
14138 | s%@AS@%$AS%g | |
14139 | s%@NM@%$NM%g | |
14140 | s%@LD@%$LD%g | |
14141 | s%@MAKEINFO@%$MAKEINFO%g | |
10f2d63a | 14142 | s%@SET_MAKE@%$SET_MAKE%g |
2224580a | 14143 | s%@subdirs@%$subdirs%g |
10f2d63a VZ |
14144 | |
14145 | CEOF | |
14146 | EOF | |
14147 | ||
14148 | cat >> $CONFIG_STATUS <<\EOF | |
14149 | ||
14150 | # Split the substitutions into bite-sized pieces for seds with | |
14151 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
14152 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
14153 | ac_file=1 # Number of current file. | |
14154 | ac_beg=1 # First line for current file. | |
14155 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
14156 | ac_more_lines=: | |
14157 | ac_sed_cmds="" | |
14158 | while $ac_more_lines; do | |
14159 | if test $ac_beg -gt 1; then | |
14160 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
14161 | else | |
14162 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
14163 | fi | |
14164 | if test ! -s conftest.s$ac_file; then | |
14165 | ac_more_lines=false | |
14166 | rm -f conftest.s$ac_file | |
14167 | else | |
14168 | if test -z "$ac_sed_cmds"; then | |
14169 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
14170 | else | |
14171 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
14172 | fi | |
14173 | ac_file=`expr $ac_file + 1` | |
14174 | ac_beg=$ac_end | |
14175 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
14176 | fi | |
14177 | done | |
14178 | if test -z "$ac_sed_cmds"; then | |
14179 | ac_sed_cmds=cat | |
14180 | fi | |
14181 | EOF | |
14182 | ||
14183 | cat >> $CONFIG_STATUS <<EOF | |
14184 | ||
14185 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
14186 | src/make.env | |
14187 | src/makeprog.env | |
14188 | src/makelib.env | |
14189 | Makefile | |
10f2d63a VZ |
14190 | "} |
14191 | EOF | |
14192 | cat >> $CONFIG_STATUS <<\EOF | |
14193 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
14194 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
14195 | case "$ac_file" in | |
14196 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
14197 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
14198 | *) ac_file_in="${ac_file}.in" ;; | |
14199 | esac | |
14200 | ||
14201 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
14202 | ||
14203 | # Remove last slash and all that follows it. Not all systems have dirname. | |
14204 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
14205 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
14206 | # The file is in a subdirectory. | |
14207 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
14208 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
14209 | # A "../" for each directory in $ac_dir_suffix. | |
14210 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
14211 | else | |
14212 | ac_dir_suffix= ac_dots= | |
14213 | fi | |
14214 | ||
14215 | case "$ac_given_srcdir" in | |
14216 | .) srcdir=. | |
14217 | if test -z "$ac_dots"; then top_srcdir=. | |
14218 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
14219 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
14220 | *) # Relative path. | |
14221 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
14222 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
14223 | esac | |
14224 | ||
14225 | case "$ac_given_INSTALL" in | |
14226 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
14227 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
14228 | esac | |
14229 | ||
14230 | echo creating "$ac_file" | |
14231 | rm -f "$ac_file" | |
14232 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
14233 | case "$ac_file" in | |
14234 | *Makefile*) ac_comsub="1i\\ | |
14235 | # $configure_input" ;; | |
14236 | *) ac_comsub= ;; | |
14237 | esac | |
14238 | ||
14239 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
14240 | sed -e "$ac_comsub | |
14241 | s%@configure_input@%$configure_input%g | |
14242 | s%@srcdir@%$srcdir%g | |
14243 | s%@top_srcdir@%$top_srcdir%g | |
14244 | s%@INSTALL@%$INSTALL%g | |
14245 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
14246 | fi; done | |
14247 | rm -f conftest.s* | |
14248 | ||
14249 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
14250 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
14251 | # | |
14252 | # ac_d sets the value in "#define NAME VALUE" lines. | |
14253 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
14254 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
14255 | ac_dC='\3' | |
14256 | ac_dD='%g' | |
14257 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
14258 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
14259 | ac_uB='\([ ]\)%\1#\2define\3' | |
14260 | ac_uC=' ' | |
14261 | ac_uD='\4%g' | |
14262 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
14263 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
14264 | ac_eB='$%\1#\2define\3' | |
14265 | ac_eC=' ' | |
14266 | ac_eD='%g' | |
14267 | ||
14268 | if test "${CONFIG_HEADERS+set}" != set; then | |
14269 | EOF | |
14270 | cat >> $CONFIG_STATUS <<EOF | |
14271 | CONFIG_HEADERS="setup.h:setup.h.in" | |
14272 | EOF | |
14273 | cat >> $CONFIG_STATUS <<\EOF | |
14274 | fi | |
14275 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
14276 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
14277 | case "$ac_file" in | |
14278 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
14279 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
14280 | *) ac_file_in="${ac_file}.in" ;; | |
14281 | esac | |
14282 | ||
14283 | echo creating $ac_file | |
14284 | ||
14285 | rm -f conftest.frag conftest.in conftest.out | |
14286 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
14287 | cat $ac_file_inputs > conftest.in | |
14288 | ||
14289 | EOF | |
14290 | ||
14291 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
14292 | # the proper values into config.h.in to produce config.h. And first: | |
14293 | # Protect against being on the right side of a sed subst in config.status. | |
14294 | # Protect against being in an unquoted here document in config.status. | |
14295 | rm -f conftest.vals | |
14296 | cat > conftest.hdr <<\EOF | |
14297 | s/[\\&%]/\\&/g | |
14298 | s%[\\$`]%\\&%g | |
14299 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
14300 | s%ac_d%ac_u%gp | |
14301 | s%ac_u%ac_e%gp | |
14302 | EOF | |
14303 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
14304 | rm -f conftest.hdr | |
14305 | ||
14306 | # This sed command replaces #undef with comments. This is necessary, for | |
14307 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
14308 | # on some systems where configure will not decide to define it. | |
14309 | cat >> conftest.vals <<\EOF | |
14310 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
14311 | EOF | |
14312 | ||
14313 | # Break up conftest.vals because some shells have a limit on | |
14314 | # the size of here documents, and old seds have small limits too. | |
14315 | ||
14316 | rm -f conftest.tail | |
14317 | while : | |
14318 | do | |
14319 | ac_lines=`grep -c . conftest.vals` | |
14320 | # grep -c gives empty output for an empty file on some AIX systems. | |
14321 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
14322 | # Write a limited-size here document to conftest.frag. | |
14323 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
14324 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
14325 | echo 'CEOF | |
14326 | sed -f conftest.frag conftest.in > conftest.out | |
14327 | rm -f conftest.in | |
14328 | mv conftest.out conftest.in | |
14329 | ' >> $CONFIG_STATUS | |
14330 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
14331 | rm -f conftest.vals | |
14332 | mv conftest.tail conftest.vals | |
14333 | done | |
14334 | rm -f conftest.vals | |
14335 | ||
14336 | cat >> $CONFIG_STATUS <<\EOF | |
14337 | rm -f conftest.frag conftest.h | |
14338 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
14339 | cat conftest.in >> conftest.h | |
14340 | rm -f conftest.in | |
14341 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
14342 | echo "$ac_file is unchanged" | |
14343 | rm -f conftest.h | |
14344 | else | |
14345 | # Remove last slash and all that follows it. Not all systems have dirname. | |
14346 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
14347 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
14348 | # The file is in a subdirectory. | |
14349 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
14350 | fi | |
14351 | rm -f $ac_file | |
14352 | mv conftest.h $ac_file | |
14353 | fi | |
14354 | fi; done | |
14355 | ||
14356 | EOF | |
14357 | cat >> $CONFIG_STATUS <<EOF | |
14358 | ||
14359 | TOOLKIT_DIR="${TOOLKIT_DIR}" | |
07eb77a6 | 14360 | LN_S="${LN_S}" |
10f2d63a VZ |
14361 | |
14362 | ||
14363 | EOF | |
14364 | cat >> $CONFIG_STATUS <<\EOF | |
14365 | ||
14366 | chmod +x wx-config | |
07eb77a6 RL |
14367 | mv wx-config wx${TOOLKIT_DIR}-config |
14368 | ${LN_S} wx${TOOLKIT_DIR}-config wx-config | |
00cf1208 RR |
14369 | |
14370 | ||
14371 | if test ! -d lib; then | |
14372 | mkdir lib | |
14373 | fi | |
14374 | if test ! -d lib/wx; then | |
14375 | mkdir lib/wx | |
14376 | fi | |
14377 | if test ! -d lib/wx/include; then | |
14378 | mkdir lib/wx/include | |
14379 | fi | |
14380 | if test ! -d lib/wx/include/wx; then | |
14381 | mkdir lib/wx/include/wx | |
14382 | fi | |
14383 | if test ! -d lib/wx/include/wx/${TOOLKIT_DIR}; then | |
14384 | mkdir lib/wx/include/wx/${TOOLKIT_DIR} | |
14385 | fi | |
14386 | if test -f setup.h; then | |
14387 | cp -f setup.h lib/wx/include/wx/${TOOLKIT_DIR}/setup.h | |
14388 | fi | |
07eb77a6 | 14389 | |
00cf1208 | 14390 | |
10f2d63a VZ |
14391 | if test ! -d include; then |
14392 | mkdir include | |
14393 | fi | |
14394 | if test ! -d include/wx; then | |
14395 | mkdir include/wx | |
14396 | fi | |
14397 | if test ! -d include/wx/${TOOLKIT_DIR}; then | |
14398 | mkdir include/wx/${TOOLKIT_DIR} | |
14399 | fi | |
afc31813 VZ |
14400 | if test -f setup.h; then |
14401 | mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h | |
14402 | fi | |
00cf1208 | 14403 | |
10f2d63a VZ |
14404 | |
14405 | exit 0 | |
14406 | EOF | |
14407 | chmod +x $CONFIG_STATUS | |
14408 | rm -fr confdefs* $ac_clean_files | |
14409 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
14410 | ||
2224580a VZ |
14411 | if test "$no_recursion" != yes; then |
14412 | ||
14413 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
14414 | ac_sub_configure_args= | |
14415 | ac_prev= | |
14416 | for ac_arg in $ac_configure_args; do | |
14417 | if test -n "$ac_prev"; then | |
14418 | ac_prev= | |
14419 | continue | |
14420 | fi | |
14421 | case "$ac_arg" in | |
14422 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
14423 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
14424 | ac_prev=cache_file ;; | |
14425 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
14426 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
14427 | ;; | |
14428 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
14429 | ac_prev=srcdir ;; | |
14430 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
14431 | ;; | |
14432 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
14433 | esac | |
14434 | done | |
14435 | ||
e8482f24 | 14436 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
14437 | |
14438 | # Do not complain, so a configure script can configure whichever | |
14439 | # parts of a large source tree are present. | |
14440 | if test ! -d $srcdir/$ac_config_dir; then | |
14441 | continue | |
14442 | fi | |
14443 | ||
14444 | echo configuring in $ac_config_dir | |
14445 | ||
14446 | case "$srcdir" in | |
14447 | .) ;; | |
14448 | *) | |
14449 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
14450 | else | |
14451 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
14452 | fi | |
14453 | ;; | |
14454 | esac | |
14455 | ||
14456 | ac_popdir=`pwd` | |
14457 | cd $ac_config_dir | |
14458 | ||
14459 | # A "../" for each directory in /$ac_config_dir. | |
14460 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
14461 | ||
14462 | case "$srcdir" in | |
14463 | .) # No --srcdir option. We are building in place. | |
14464 | ac_sub_srcdir=$srcdir ;; | |
14465 | /*) # Absolute path. | |
14466 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
14467 | *) # Relative path. | |
14468 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
14469 | esac | |
14470 | ||
14471 | # Check for guested configure; otherwise get Cygnus style configure. | |
14472 | if test -f $ac_sub_srcdir/configure; then | |
14473 | ac_sub_configure=$ac_sub_srcdir/configure | |
14474 | elif test -f $ac_sub_srcdir/configure.in; then | |
14475 | ac_sub_configure=$ac_configure | |
14476 | else | |
14477 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
14478 | ac_sub_configure= | |
14479 | fi | |
14480 | ||
14481 | # The recursion is here. | |
14482 | if test -n "$ac_sub_configure"; then | |
14483 | ||
14484 | # Make the cache file name correct relative to the subdirectory. | |
14485 | case "$cache_file" in | |
14486 | /*) ac_sub_cache_file=$cache_file ;; | |
14487 | *) # Relative path. | |
14488 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
14489 | esac | |
14490 | case "$ac_given_INSTALL" in | |
14491 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
14492 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
14493 | esac | |
14494 | ||
14495 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
14496 | # The eval makes quoting arguments work. | |
14497 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
14498 | then : | |
14499 | else | |
14500 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
14501 | fi | |
14502 | fi | |
14503 | ||
14504 | cd $ac_popdir | |
14505 | done | |
14506 | fi | |
14507 | ||
10f2d63a | 14508 |